1 |
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4242],{47778:(t,e)=>{"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=f(t),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,l=a>0?s-4:s;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)o.push(r[(i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function f(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},41562:(t,e,r)=>{"use strict";let n=r(47778),i=r(3979),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return c(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);let r=0|d(t,e),n=s(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(G(t,Uint8Array)){let e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return l(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(G(t,ArrayBuffer)||t&&G(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(G(t,SharedArrayBuffer)||t&&G(t.buffer,SharedArrayBuffer)))return h(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);let i=function(t){var e;if(a.isBuffer(t)){let e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?s(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),s(t<0?0:0|p(t))}function l(t){let e=t.length<0?0:0|p(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t,e,r){let n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}function p(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||G(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(t).length;default:if(i)return n?-1:R(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=$[t[n]];return i}(this,e,r);case"utf8":case"utf-8":return w(this,e,r);case"ascii":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":var o,s;return o=e,s=r,0===o&&s===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){let n=t.slice(e,r),i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}(this,e,r);default:if(i)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r=+r)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){let o,s=1,a=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,f/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===f)return n*s}else -1!==n&&(o-=o-n),n=-1}else for(r+f>a&&(r=a-f),o=r;o>=0;o--){let r=!0;for(let n=0;n<f;n++)if(u(t,o+n)!==u(e,n)){r=!1;break}if(r)return o}return -1}function w(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let e=t[i],o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,f;switch(s){case 1:e<128&&(o=e);break;case 2:(192&(r=t[i+1]))==128&&(f=(31&e)<<6|63&r)>127&&(o=f);break;case 3:r=t[i+1],n=t[i+2],(192&r)==128&&(192&n)==128&&(f=(15&e)<<12|(63&r)<<6|63&n)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(f=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){let e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function v(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function x(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function B(t,e,r,n,i){T(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function E(t,e,r,n,i){T(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function I(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function P(t,e,r,n,o){return e=+e,r>>>=0,o||I(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function C(t,e,r,n,o){return e=+e,r>>>=0,o||I(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(u(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return c(t)},a.allocUnsafeSlow=function(t){return c(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(G(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),G(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(t){switch(String(t).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}},a.concat=function(t,e){let r;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;let n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){let e=t[r];if(G(e,Uint8Array))i+e.length>n.length?(a.isBuffer(e)||(e=a.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else if(a.isBuffer(e))e.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)g(this,e,e+1);return this},a.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},a.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},a.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?w(this,0,t):y.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){let t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(G(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;let o=i-n,s=r-e,f=Math.min(o,s),u=this.slice(n,i),c=t.slice(e,r);for(let t=0;t<f;++t)if(u[t]!==c[t]){o=u[t],s=c[t];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){var i,o,s,a,f,u,c,l;if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-e;if((void 0===r||r>h)&&(r=h),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let p=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let i;r=Number(r)||0;let o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;let s=e.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){let n=parseInt(e.substr(2*i,2),16);if(n!=n)break;t[r+i]=n}return i}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,N(R(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=e,a=r,N(function(t){let e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,s,a);case"base64":return f=e,u=r,N(M(t),this,f,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=e,l=r,N(function(t,e){let r,n;let i=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-c),this,c,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);let n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||v(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readBigUInt64LE=S(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&_(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=S(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&_(t,this.length-8);let n=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],i=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||v(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||v(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readBigInt64LE=S(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&_(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),a.prototype.readBigInt64BE=S(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&_(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r)}),a.prototype.readFloatLE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,t,e,r,n,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,t,e,r,n,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigUInt64LE=S(function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=S(function(t,e=0){return E(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigInt64LE=S(function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=S(function(t,e=0){return E(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return C(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return C(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);let i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},a.prototype.fill=function(t,e,r,n){let i;if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){let e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{let o=a.isBuffer(t)?t:a.from(t,n),s=o.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};let A={};function U(t,e,r){A[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function L(t){let e="",r=t.length,n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function T(t,e,r,n,i,o){if(t>r||t<e){let n;let i="bigint"==typeof e?"n":"";throw n=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new A.ERR_OUT_OF_RANGE("value",n,t)}O(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&_(i,n.length-(o+1))}function O(t,e){if("number"!=typeof t)throw new A.ERR_INVALID_ARG_TYPE(e,"number",t)}function _(t,e,r){if(Math.floor(t)!==t)throw O(t,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),U("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=L(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=L(i)),i+="n"),n+=` It must be ${e}. Received ${i}`},RangeError);let F=/[^+/0-9A-Za-z-_]/g;function R(t,e){let r;e=e||1/0;let n=t.length,i=null,o=[];for(let s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function M(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function G(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let $=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function S(t){return"undefined"==typeof BigInt?k:t}function k(){throw Error("BigInt not supported")}},31670:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(r,n){var i;function o(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}y(t,e,s,{once:!0}),"error"!==e&&(i={once:!0},"function"==typeof t.on&&y(t,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,r,n){if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=f(t))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,u=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,console&&console.warn&&console.warn(u)}return t}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function h(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):d(i,i.length)}function p(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(t,e){for(var r=Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else if("function"==typeof t.addEventListener)t.addEventListener(e,function i(o){n.once&&t.removeEventListener(e,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var f=o[t];if(void 0===f)return!1;if("function"==typeof f)n(f,this,e);else for(var u=f.length,c=d(f,u),r=0;r<u;++r)n(c[r],this,e);return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,l(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,l(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,s;if(a(e),void 0===(n=this._events)||void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},3979:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,f=(1<<a)-1,u=f>>1,c=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+l],l+=h,c-=8);if(0===o)o=1-u;else{if(o===f)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,f,u=8*o-i-1,c=(1<<u)-1,l=c>>1,h=23===i?5960464477539062e-23:0,p=n?0:o-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+l>=1?e+=h/f:e+=h*Math.pow(2,1-l),e*f>=2&&(s++,f/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(e*f-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+p]=255&s,p+=d,s/=256,u-=8);t[r+p-d]|=128*y}},4242:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},44727:(t,e,r)=>{"use strict";r.d(e,{TQ:()=>s,ol:()=>a,r9:()=>o});var n=r(70312),i=r(94554);let o=(t,e,r)=>t&e^~t&r,s=(t,e,r)=>t&e^t&r^e&r;class a extends i.Vw{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.O8)(this.buffer)}update(t){(0,n.CC)(this);let{view:e,buffer:r,blockLen:o}=this,s=(t=(0,i.ZJ)(t)).length;for(let n=0;n<s;){let a=Math.min(o-this.pos,s-n);if(a===o){let e=(0,i.O8)(t);for(;o<=s-n;n+=o)this.process(e,n);continue}r.set(t.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===o&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,n.CC)(this),(0,n.Ht)(t,this),this.finished=!0;let{buffer:e,view:r,blockLen:o,isLE:s}=this,{pos:a}=this;e[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>o-a&&(this.process(r,0),a=0);for(let t=a;t<o;t++)e[t]=0;!function(t,e,r,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,r,n);let i=BigInt(32),o=BigInt(0xffffffff),s=Number(r>>i&o),a=Number(r&o),f=n?4:0,u=n?0:4;t.setUint32(e+f,s,n),t.setUint32(e+u,a,n)}(r,o-8,BigInt(8*this.length),s),this.process(r,0);let f=(0,i.O8)(t),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=u/4,l=this.get();if(c>l.length)throw Error("_sha2: outputLen bigger than state");for(let t=0;t<c;t++)f.setUint32(4*t,l[t],s)}digest(){let{buffer:t,outputLen:e}=this;this.digestInto(t);let r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:e,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return t.length=n,t.pos=s,t.finished=i,t.destroyed=o,n%e&&t.buffer.set(r),t}}},31890:(t,e,r)=>{"use strict";r.d(e,{sc:()=>u});var n=r(44727),i=r(94554);let o=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),s=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),a=new Uint32Array(64);class f extends n.ol{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){let{A:t,B:e,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[t,e,r,n,i,o,s,a]}set(t,e,r,n,i,o,s,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)a[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){let e=a[t-15],r=a[t-2],n=(0,i.Ow)(e,7)^(0,i.Ow)(e,18)^e>>>3,o=(0,i.Ow)(r,17)^(0,i.Ow)(r,19)^r>>>10;a[t]=o+a[t-7]+n+a[t-16]|0}let{A:r,B:s,C:f,D:u,E:c,F:l,G:h,H:p}=this;for(let t=0;t<64;t++){let e=p+((0,i.Ow)(c,6)^(0,i.Ow)(c,11)^(0,i.Ow)(c,25))+(0,n.r9)(c,l,h)+o[t]+a[t]|0,d=((0,i.Ow)(r,2)^(0,i.Ow)(r,13)^(0,i.Ow)(r,22))+(0,n.TQ)(r,s,f)|0;p=h,h=l,l=c,c=u+e|0,u=f,f=s,s=r,r=e+d|0}r=r+this.A|0,s=s+this.B|0,f=f+this.C|0,u=u+this.D|0,c=c+this.E|0,l=l+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,s,f,u,c,l,h,p)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let u=(0,i.ld)(()=>new f)},36352:(t,e,r)=>{"use strict";r.d(e,{r:()=>f});var n=r(14191),i=r(5512),o=r(17162),s=r(7270),a=r(61282);async function f(t,e={}){let r;if(e.connector){let{connector:n}=e;if("reconnecting"===t.state.status&&!n.getAccounts&&!n.getChainId)throw new a.HF({connector:n});let[i,o]=await Promise.all([n.getAccounts(),n.getChainId()]);r={accounts:i,chainId:o,connector:n}}else r=t.state.connections.get(t.state.current);if(!r)throw new a.gC;let u=e.chainId??r.chainId,c=await r.connector.getChainId();if(c!==r.chainId)throw new a.xU({connectionChainId:r.chainId,connectorChainId:c});let l=r.connector;if(l.getClient)return l.getClient({chainId:u});let h=(0,o.J)(e.account??r.accounts[0]);if(h.address=(0,s.b)(h.address),e.account&&!r.accounts.some(t=>t.toLowerCase()===h.address.toLowerCase()))throw new a.aj({address:h.address,connector:l});let p=t.chains.find(t=>t.id===u),d=await r.connector.getProvider({chainId:u});return(0,n.U)({account:h,chain:p,name:"Connector Client",transport:t=>(function(t,e={}){let{key:r="custom",name:n="Custom Provider",retryDelay:o}=e;return({retryCount:s})=>(0,i.o)({key:r,name:n,request:t.request.bind(t),retryCount:e.retryCount??s,retryDelay:o,type:"custom"})})(d)({...t,retryCount:0})})}},29378:(t,e,r)=>{"use strict";r.d(e,{E:()=>h});var n=r(17162),i=r(74950),o=r(90154),s=r(18105),a=r(45735),f=r(83295);async function u(t,e){let{abi:r,account:u=t.account,address:c,args:l,dataSuffix:h,functionName:p,...d}=e;if(void 0===u)throw new i.T({docsPath:"/docs/contract/writeContract"});let y=u?(0,n.J)(u):null,g=(0,o.p)({abi:r,args:l,functionName:p});try{return await (0,a.T)(t,f.v,"sendTransaction")({data:`${g}${h?h.replace("0x",""):""}`,to:c,account:y,...d})}catch(t){throw(0,s.j)(t,{abi:r,address:c,args:l,docsPath:"/docs/contract/writeContract",functionName:p,sender:y?.address})}}var c=r(66604),l=r(36352);async function h(t,e){let r;let{account:n,chainId:i,connector:o,...s}=e;r="object"==typeof n&&n?.type==="local"?t.getClient({chainId:i}):await (0,l.r)(t,{account:n??void 0,chainId:i,connector:o});let a=(0,c.T)(r,u,"writeContract");return await a({...s,...n?{account:n}:{},chain:i?{id:i}:null})}},61282:(t,e,r)=>{"use strict";r.d(e,{HF:()=>u,aj:()=>a,gC:()=>s,nM:()=>o,nk:()=>i,xU:()=>f});var n=r(11612);class i extends n.C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends n.C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class s extends n.C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class a extends n.C{constructor({address:t,connector:e}){super(`Account "${t}" not found for connector "${e.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class f extends n.C{constructor({connectionChainId:t,connectorChainId:e}){super(`The current chain of the connector (id: ${e}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${e}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class u extends n.C{constructor({connector:t}){super(`Connector "${t.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},99102:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>a});let n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(t,e){if("__proto__"===t||"constructor"===t&&e&&"object"==typeof e&&"prototype"in e){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`);return}return e}function a(t,e={}){if("string"!=typeof t)return t;let r=t.trim();if('"'===t[0]&&t.endsWith('"')&&!t.includes("\\"))return r.slice(1,-1);if(r.length<=9){let t=r.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if("undefined"===t)return;if("null"===t)return null;if("nan"===t)return Number.NaN;if("infinity"===t)return Number.POSITIVE_INFINITY;if("-infinity"===t)return Number.NEGATIVE_INFINITY}if(!o.test(t)){if(e.strict)throw SyntaxError("[destr] Invalid JSON");return t}try{if(n.test(t)||i.test(t)){if(e.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(t,s)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}},95036:(t,e,r)=>{"use strict";r.d(e,{Q:()=>w});var n=r(17162),i=r(33671),o=r(43792),s=r(81867),a=r(33731),f=r(74349),u=r(14005);class c extends i.C{constructor(t,{account:e,docsPath:r,chain:n,data:i,gas:o,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:h,to:p,value:d}){super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",(0,u.aO)({from:e?.address,to:p,value:void 0!==d&&`${(0,a.c)(d)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==s&&`${(0,f.Q)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,f.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,f.Q)(l)} gwei`,nonce:h})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}var l=r(63115),h=r(73611),p=r(96610),d=r(30352),y=r(45736),g=r(498),b=r(40539),m=r(62813);async function w(t,e){let{account:r=t.account}=e,a=r?(0,n.J)(r):void 0;try{let{accessList:r,authorizationList:n,blobs:u,blobVersionedHashes:c,blockNumber:l,blockTag:h,data:w,gas:v,gasPrice:x,maxFeePerBlobGas:B,maxFeePerGas:E,maxPriorityFeePerGas:I,nonce:P,value:C,stateOverride:A,...U}=await (0,b.f)(t,{...e,parameters:a?.type==="local"?void 0:["blobVersionedHashes"]}),L=(l?(0,s.cK)(l):void 0)||h,T=(0,y.yH)(A),O=await (async()=>U.to?U.to:n&&n.length>0?await (0,o.g)({authorization:n[0]}).catch(()=>{throw new i.C("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,g.c)(e);let _=t.chain?.formatters?.transactionRequest?.format,F=(_||d.Bv)({...(0,p.o)(U,{format:_}),from:a?.address,accessList:r,authorizationList:n,blobs:u,blobVersionedHashes:c,data:w,gas:v,gasPrice:x,maxFeePerBlobGas:B,maxFeePerGas:E,maxPriorityFeePerGas:I,nonce:P,to:O,value:C});function f(e){let{block:r,request:n,rpcStateOverride:i}=e;return t.request({method:"eth_estimateGas",params:i?[n,r??"latest",i]:r?[n,r]:[n]})}let R=BigInt(await f({block:L,request:F,rpcStateOverride:T}));if(n){let e=await (0,m.r)(t,{address:F.from}),r=await Promise.all(n.map(async t=>{let{contractAddress:r}=t,n=await f({block:L,request:{authorizationList:void 0,data:w,from:a?.address,to:r,value:(0,s.cK)(e)},rpcStateOverride:T}).catch(()=>100000n);return 2n*BigInt(n)}));R+=r.reduce((t,e)=>t+e,0n)}return R}catch(r){throw function(t,{docsPath:e,...r}){return new c((()=>{let e=(0,h.l)(t,r);return e instanceof l.RM?t:e})(),{docsPath:e,...r})}(r,{...e,account:a,chain:t.chain})}}},27792:(t,e,r)=>{"use strict";r.d(e,{g:()=>s});var n=r(15176),i=r(81867),o=r(62443);async function s(t,{blockHash:e,blockNumber:r,blockTag:a,includeTransactions:f}={}){let u=f??!1,c=void 0!==r?(0,i.cK)(r):void 0,l=null;if(!(l=e?await t.request({method:"eth_getBlockByHash",params:[e,u]},{dedupe:!0}):await t.request({method:"eth_getBlockByNumber",params:[c||(a??"latest"),u]},{dedupe:!!c})))throw new n.l({blockHash:e,blockNumber:r});return(t.chain?.formatters?.block?.format||function(t){let e=(t.transactions??[]).map(t=>"string"==typeof t?t:(0,o.uP)(t));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:e,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}})(l)}},51109:(t,e,r)=>{"use strict";r.d(e,{T:()=>i});var n=r(67900);async function i(t){let e=await t.request({method:"eth_chainId"},{dedupe:!0});return(0,n.ME)(e)}},40539:(t,e,r)=>{"use strict";r.d(e,{M:()=>T,f:()=>O});var n=r(17162),i=r(74349),o=r(33671);class s extends o.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class a extends o.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class f extends o.C{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,i.Q)(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}var u=r(45735),c=r(67900),l=r(27792);async function h(t){return BigInt(await t.request({method:"eth_gasPrice"}))}async function p(t,e){let{block:r,chain:n=t.chain,request:i}=e||{};try{let e=n?.fees?.maxPriorityFeePerGas??n?.fees?.defaultPriorityFee;if("function"==typeof e){let n=r||await (0,u.T)(t,l.g,"getBlock")({}),o=await e({block:n,client:t,request:i});if(null===o)throw Error();return o}if(void 0!==e)return e;let o=await t.request({method:"eth_maxPriorityFeePerGas"});return(0,c.uU)(o)}catch{let[e,n]=await Promise.all([r?Promise.resolve(r):(0,u.T)(t,l.g,"getBlock")({}),(0,u.T)(t,h,"getGasPrice")({})]);if("bigint"!=typeof e.baseFeePerGas)throw new a;let i=n-e.baseFeePerGas;if(i<0n)return 0n;return i}}async function d(t,e){let{block:r,chain:n=t.chain,request:i,type:o="eip1559"}=e||{},f=await (async()=>"function"==typeof n?.fees?.baseFeeMultiplier?n.fees.baseFeeMultiplier({block:r,client:t,request:i}):n?.fees?.baseFeeMultiplier??1.2)();if(f<1)throw new s;let c=f.toString().split(".")[1]?.length??0,d=10**c,y=t=>t*BigInt(Math.ceil(f*d))/BigInt(d),g=r||await (0,u.T)(t,l.g,"getBlock")({});if("function"==typeof n?.fees?.estimateFeesPerGas){let e=await n.fees.estimateFeesPerGas({block:r,client:t,multiply:y,request:i,type:o});if(null!==e)return e}if("eip1559"===o){if("bigint"!=typeof g.baseFeePerGas)throw new a;let e="bigint"==typeof i?.maxPriorityFeePerGas?i.maxPriorityFeePerGas:await p(t,{block:g,chain:n,request:i}),r=y(g.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??r+e,maxPriorityFeePerGas:e}}return{gasPrice:i?.gasPrice??y(await (0,u.T)(t,h,"getGasPrice")({}))}}var y=r(95036),g=r(81867);async function b(t,{address:e,blockTag:r="latest",blockNumber:n}){let i=await t.request({method:"eth_getTransactionCount",params:[e,n?(0,g.cK)(n):r]},{dedupe:!!n});return(0,c.ME)(i)}var m=r(24453);function w(t){let{kzg:e}=t,r=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),n="string"==typeof t.blobs[0]?t.blobs.map(t=>(0,m.aT)(t)):t.blobs,i=[];for(let t of n)i.push(Uint8Array.from(e.blobToKzgCommitment(t)));return"bytes"===r?i:i.map(t=>(0,g.My)(t))}function v(t){let{kzg:e}=t,r=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),n="string"==typeof t.blobs[0]?t.blobs.map(t=>(0,m.aT)(t)):t.blobs,i="string"==typeof t.commitments[0]?t.commitments.map(t=>(0,m.aT)(t)):t.commitments,o=[];for(let t=0;t<n.length;t++){let r=n[t],s=i[t];o.push(Uint8Array.from(e.computeBlobKzgProof(r,s)))}return"bytes"===r?o:o.map(t=>(0,g.My)(t))}var x=r(31890),B=r(14329);class E extends o.C{constructor({maxSize:t,size:e}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${e} bytes`],name:"BlobSizeTooLargeError"})}}class I extends o.C{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}var P=r(52857),C=r(13269),A=r(498),U=r(14005),L=r(51109);let T=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function O(t,e){let r,i;let{account:o=t.account,blobs:s,chain:c,gas:h,kzg:p,nonce:O,nonceManager:_,parameters:F=T,type:R}=e,M=o?(0,n.J)(o):o,N={...e,...M?{from:M?.address}:{}};async function G(){return r||(r=await (0,u.T)(t,l.g,"getBlock")({blockTag:"latest"}))}async function $(){return i||(c?c.id:void 0!==e.chainId?e.chainId:i=await (0,u.T)(t,L.T,"getChainId")({}))}if((F.includes("blobVersionedHashes")||F.includes("sidecars"))&&s&&p){let t=w({blobs:s,kzg:p});if(F.includes("blobVersionedHashes")){let e=function(t){let{commitments:e,version:r}=t,n=t.to??("string"==typeof e[0]?"hex":"bytes"),i=[];for(let t of e)i.push(function(t){let{commitment:e,version:r=1}=t,n=t.to??("string"==typeof e?"hex":"bytes"),i=function(t,e){let r=(0,x.sc)((0,B.q)(t,{strict:!1})?(0,m.ZJ)(t):t);return"bytes"===(e||"hex")?r:(0,g.nj)(r)}(e,"bytes");return i.set([r],0),"bytes"===n?i:(0,g.My)(i)}({commitment:t,to:n,version:r}));return i}({commitments:t,to:"hex"});N.blobVersionedHashes=e}if(F.includes("sidecars")){let e=v({blobs:s,commitments:t,kzg:p}),r=function(t){let{data:e,kzg:r,to:n}=t,i=t.blobs??function(t){let e=t.to??("string"==typeof t.data?"hex":"bytes"),r="string"==typeof t.data?(0,m.aT)(t.data):t.data,n=(0,C.E)(r);if(!n)throw new I;if(n>761855)throw new E({maxSize:761855,size:n});let i=[],o=!0,s=0;for(;o;){let t=(0,P.l)(new Uint8Array(131072)),e=0;for(;e<4096;){let n=r.slice(s,s+31);if(t.pushByte(0),t.pushBytes(n),n.length<31){t.pushByte(128),o=!1;break}e++,s+=31}i.push(t)}return"bytes"===e?i.map(t=>t.bytes):i.map(t=>(0,g.My)(t.bytes))}({data:e,to:n}),o=t.commitments??w({blobs:i,kzg:r,to:n}),s=t.proofs??v({blobs:i,commitments:o,kzg:r,to:n}),a=[];for(let t=0;t<i.length;t++)a.push({blob:i[t],commitment:o[t],proof:s[t]});return a}({blobs:s,commitments:t,proofs:e,to:"hex"});N.sidecars=r}}if(F.includes("chainId")&&(N.chainId=await $()),F.includes("nonce")&&void 0===O&&M){if(_){let e=await $();N.nonce=await _.consume({address:M.address,chainId:e,client:t})}else N.nonce=await (0,u.T)(t,b,"getTransactionCount")({address:M.address,blockTag:"pending"})}if((F.includes("fees")||F.includes("type"))&&void 0===R)try{N.type=function(t){if(t.type)return t.type;if(void 0!==t.authorizationList)return"eip7702";if(void 0!==t.blobs||void 0!==t.blobVersionedHashes||void 0!==t.maxFeePerBlobGas||void 0!==t.sidecars)return"eip4844";if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)return"eip1559";if(void 0!==t.gasPrice)return void 0!==t.accessList?"eip2930":"legacy";throw new U.Vg({transaction:t})}(N)}catch{let t=await G();N.type="bigint"==typeof t?.baseFeePerGas?"eip1559":"legacy"}if(F.includes("fees")){if("legacy"!==N.type&&"eip2930"!==N.type){if(void 0===N.maxFeePerGas||void 0===N.maxPriorityFeePerGas){let r=await G(),{maxFeePerGas:n,maxPriorityFeePerGas:i}=await d(t,{block:r,chain:c,request:N});if(void 0===e.maxPriorityFeePerGas&&e.maxFeePerGas&&e.maxFeePerGas<i)throw new f({maxPriorityFeePerGas:i});N.maxPriorityFeePerGas=i,N.maxFeePerGas=n}}else{if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)throw new a;let r=await G(),{gasPrice:n}=await d(t,{block:r,chain:c,request:N,type:"legacy"});N.gasPrice=n}}return F.includes("gas")&&void 0===h&&(N.gas=await (0,u.T)(t,y.Q,"estimateGas")({...N,account:M?{address:M.address,type:"json-rpc"}:M})),(0,A.c)(N),delete N.parameters,N}},83295:(t,e,r)=>{"use strict";r.d(e,{v:()=>v});var n=r(17162),i=r(74950),o=r(33671),s=r(43792),a=r(83740),f=r(63115),u=r(14005),c=r(73611),l=r(96610),h=r(30352),p=r(45735),d=r(53124),y=r(498),g=r(51109),b=r(40539);async function m(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]},{retryCount:0})}let w=new d.A(128);async function v(t,e){let{account:r=t.account,chain:d=t.chain,accessList:v,authorizationList:x,blobs:B,data:E,gas:I,gasPrice:P,maxFeePerBlobGas:C,maxFeePerGas:A,maxPriorityFeePerGas:U,nonce:L,value:T,...O}=e;if(void 0===r)throw new i.T({docsPath:"/docs/actions/wallet/sendTransaction"});let _=r?(0,n.J)(r):null;try{(0,y.c)(e);let r=await (async()=>e.to?e.to:x&&x.length>0?await (0,s.g)({authorization:x[0]}).catch(()=>{throw new o.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(_?.type==="json-rpc"||null===_){let e;null!==d&&(e=await (0,p.T)(t,g.T,"getChainId")({}),function({chain:t,currentChainId:e}){if(!t)throw new a.jF;if(e!==t.id)throw new a.EH({chain:t,currentChainId:e})}({currentChainId:e,chain:d}));let n=t.chain?.formatters?.transactionRequest?.format,i=(n||h.Bv)({...(0,l.o)(O,{format:n}),accessList:v,authorizationList:x,blobs:B,chainId:e,data:E,from:_?.address,gas:I,gasPrice:P,maxFeePerBlobGas:C,maxFeePerGas:A,maxPriorityFeePerGas:U,nonce:L,to:r,value:T}),o=w.get(t.uid);try{return await t.request({method:o?"wallet_sendTransaction":"eth_sendTransaction",params:[i]},{retryCount:0})}catch(e){if(!1===o)throw e;if("InvalidInputRpcError"===e.name||"InvalidParamsRpcError"===e.name||"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name)return await t.request({method:"wallet_sendTransaction",params:[i]},{retryCount:0}).then(e=>(w.set(t.uid,!0),e)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw w.set(t.uid,!1),e;throw r});throw e}}if(_?.type==="local"){let e=await (0,p.T)(t,b.f,"prepareTransactionRequest")({account:_,accessList:v,authorizationList:x,blobs:B,chain:d,data:E,gas:I,gasPrice:P,maxFeePerBlobGas:C,maxFeePerGas:A,maxPriorityFeePerGas:U,nonce:L,nonceManager:_.nonceManager,parameters:[...b.M,"sidecars"],value:T,...O,to:r}),n=d?.serializers?.transaction,i=await _.signTransaction(e,{serializer:n});return await (0,p.T)(t,m,"sendRawTransaction")({serializedTransaction:i})}if(_?.type==="smart")throw new i.Z({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new i.Z({docsPath:"/docs/actions/wallet/sendTransaction",type:_?.type})}catch(t){if(t instanceof i.Z)throw t;throw function(t,{docsPath:e,...r}){let n=(()=>{let e=(0,c.l)(t,r);return e instanceof f.RM?t:e})();return new u.$s(n,{docsPath:e,...r})}(t,{...e,account:_,chain:e.chain||void 0})}}},14191:(t,e,r)=>{"use strict";r.d(e,{U:()=>o});var n=r(17162),i=r(31911);function o(t){let{batch:e,cacheTime:r=t.pollingInterval??4e3,ccipRead:o,key:s="base",name:a="Base Client",pollingInterval:f=4e3,type:u="base"}=t,c=t.chain,l=t.account?(0,n.J)(t.account):void 0,{config:h,request:p,value:d}=t.transport({chain:c,pollingInterval:f}),y={account:l,batch:e,cacheTime:r,ccipRead:o,chain:c,key:s,name:a,pollingInterval:f,request:p,transport:{...h,...d},type:u,uid:(0,i.L)()};return Object.assign(y,{extend:function t(e){return r=>{let n=r(e);for(let t in y)delete n[t];let i={...e,...n};return Object.assign(i,{extend:t(i)})}}(y)})}},5512:(t,e,r)=>{"use strict";r.d(e,{o:()=>h});var n=r(33671),i=r(36280),o=r(61678),s=r(81867),a=r(99039);let f=new(r(53124)).A(8192);var u=r(41525),c=r(6044),l=r(31911);function h({key:t,name:e,request:r,retryCount:h=3,retryDelay:p=150,timeout:d,type:y},g){return{config:{key:t,name:e,request:r,retryCount:h,retryDelay:p,timeout:d,type:y},request:function(t,e={}){return async(r,l={})=>{let{dedupe:h=!1,retryDelay:p=150,retryCount:d=3,uid:y}={...e,...l},g=h?(0,a.S)((0,s.i3)(`${y}.${(0,c.A)(r)}`)):void 0;return function(t,{enabled:e=!0,id:r}){if(!e||!r)return t();if(f.get(r))return f.get(r);let n=t().finally(()=>f.delete(r));return f.set(r,n),n}(()=>(0,u.b)(async()=>{try{return await t(r)}catch(t){switch(t.code){case o.XU.code:throw new o.XU(t);case o.CL.code:throw new o.CL(t);case o.Gi.code:throw new o.Gi(t,{method:r.method});case o.D5.code:throw new o.D5(t);case o.bq.code:throw new o.bq(t);case o.Di.code:throw new o.Di(t);case o.hA.code:throw new o.hA(t);case o.qZ.code:throw new o.qZ(t);case o.YW.code:throw new o.YW(t);case o.ab.code:throw new o.ab(t,{method:r.method});case o.s0.code:throw new o.s0(t);case o.xQ.code:throw new o.xQ(t);case o.vx.code:throw new o.vx(t);case o.sV.code:throw new o.sV(t);case o.Sf.code:throw new o.Sf(t);case o.RV.code:throw new o.RV(t);case o.xq.code:throw new o.xq(t);case o.ch.code:throw new o.ch(t);case 5e3:throw new o.vx(t);default:if(t instanceof n.C)throw t;throw new o.MI(t)}}},{delay:({count:t,error:e})=>{if(e&&e instanceof i.Ci){let t=e?.headers?.get("Retry-After");if(t?.match(/\d/))return 1e3*Number.parseInt(t)}return~~(1<<t)*p},retryCount:d,shouldRetry:({error:t})=>"code"in t&&"number"==typeof t.code?-1===t.code||t.code===o.s0.code||t.code===o.bq.code:!(t instanceof i.Ci)||!t.status||403===t.status||408===t.status||413===t.status||429===t.status||500===t.status||502===t.status||503===t.status||504===t.status}),{enabled:h,id:g})}}(r,{retryCount:h,retryDelay:p,uid:(0,l.L)()}),value:g}}},74950:(t,e,r)=>{"use strict";r.d(e,{T:()=>i,Z:()=>o});var n=r(33671);class i extends n.C{constructor({docsPath:t}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class o extends n.C{constructor({docsPath:t,metaMessages:e,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:t,metaMessages:e,name:"AccountTypeNotSupportedError"})}}},15176:(t,e,r)=>{"use strict";r.d(e,{l:()=>i});var n=r(33671);class i extends n.C{constructor({blockHash:t,blockNumber:e}){let r="Block";t&&(r=`Block at hash "${t}"`),e&&(r=`Block at number "${e}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}},43792:(t,e,r)=>{"use strict";r.d(e,{g:()=>g});var n=r(7270),i=r(99039),o=r(14329),s=r(67900),a=r(81867);async function f({hash:t,signature:e}){let n=(0,o.q)(t)?t:(0,a.nj)(t),{secp256k1:i}=await r.e(9209).then(r.bind(r,99209)),f=(()=>{if("object"==typeof e&&"r"in e&&"s"in e){let{r:t,s:r,v:n,yParity:o}=e,a=u(Number(o??n));return new i.Signature((0,s.uU)(t),(0,s.uU)(r)).addRecoveryBit(a)}let t=(0,o.q)(e)?e:(0,a.nj)(e),r=u((0,s.ME)(`0x${t.slice(130)}`));return i.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${f}`}function u(t){if(0===t||1===t)return t;if(27===t)return 0;if(28===t)return 1;throw Error("Invalid yParityOrV value")}async function c({hash:t,signature:e}){return function(t){let e=(0,i.S)(`0x${t.substring(4)}`).substring(26);return(0,n.o)(`0x${e}`)}(await f({hash:t,signature:e}))}var l=r(65224),h=r(24453),p=r(33671),d=r(52857);function y(t){if(t<256)return 1;if(t<65536)return 2;if(t<0x1000000)return 3;if(t<0x100000000)return 4;throw new p.C("Length is too large.")}async function g(t){let{authorization:e,signature:r}=t;return c({hash:function(t){let{chainId:e,contractAddress:r,nonce:n,to:o}=t,s=(0,i.S)((0,l.aP)(["0x05",function(t,e="hex"){let r=function t(e){return Array.isArray(e)?function(t){let e=t.reduce((t,e)=>t+e.length,0),r=y(e);return{length:e<=55?1+e:1+r+e,encode(n){for(let{encode:i}of(e<=55?n.pushByte(192+e):(n.pushByte(247+r),1===r?n.pushUint8(e):2===r?n.pushUint16(e):3===r?n.pushUint24(e):n.pushUint32(e)),t))i(n)}}}(e.map(e=>t(e))):function(t){let e="string"==typeof t?(0,h.aT)(t):t,r=y(e.length);return{length:1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+r+e.length,encode(t){1===e.length&&e[0]<128||(e.length<=55?t.pushByte(128+e.length):(t.pushByte(183+r),1===r?t.pushUint8(e.length):2===r?t.pushUint16(e.length):3===r?t.pushUint24(e.length):t.pushUint32(e.length))),t.pushBytes(e)}}}(e)}(t),n=(0,d.l)(new Uint8Array(r.length));return(r.encode(n),"hex"===e)?(0,a.My)(n.bytes):n.bytes}([e?(0,a.cK)(e):"0x",r,n?(0,a.cK)(n):"0x"])]));return"bytes"===o?(0,h.aT)(s):s}(e),signature:r??e})}},62443:(t,e,r)=>{"use strict";r.d(e,{b4:()=>i,uP:()=>o});var n=r(67900);let i={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(t){let e={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?(0,n.ME)(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?(0,n.ME)(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?i[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(e.authorizationList=t.authorizationList.map(t=>({contractAddress:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))),e.yParity=(()=>{if(t.yParity)return Number(t.yParity);if("bigint"==typeof e.v){if(0n===e.v||27n===e.v)return 0;if(1n===e.v||28n===e.v)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),"legacy"===e.type&&(delete e.accessList,delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),"eip2930"===e.type&&(delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),"eip1559"===e.type&&delete e.maxFeePerBlobGas,e}},41525:(t,e,r)=>{"use strict";r.d(e,{b:()=>i});var n=r(38102);function i(t,{delay:e=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((i,s)=>{let a=async({count:f=0}={})=>{let u=async({error:t})=>{let r="function"==typeof e?e({count:f,error:t}):e;r&&await (0,n.u)(r),a({count:f+1})};try{let e=await t();i(e)}catch(t){if(f<r&&await o({count:f,error:t}))return u({error:t});s(t)}};a()})}},31911:(t,e,r)=>{"use strict";let n;r.d(e,{L:()=>o});let i=256;function o(t=11){if(!n||i+t>512){n="",i=0;for(let t=0;t<256;t++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(i,i+++t)}},73963:(t,e,r)=>{"use strict";r.d(e,{X:()=>o});var n=r(33671);class i extends n.C{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function o(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new i({value:t});let[r,n="0"]=t.split("."),o=r.startsWith("-");if(o&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===e)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>e){let[t,i,o]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],s=Math.round(Number(`${i}.${o}`));(n=s>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${s}`).length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${o?"-":""}${r}${n}`)}},38102:(t,e,r)=>{"use strict";async function n(t){return new Promise(e=>setTimeout(e,t))}r.d(e,{u:()=>n})}}]);
|