vendor: 5,158 bytes, lines 1-6
1import{ab as ze,v as Ge,i as oe,s as C,a as W,a2 as Br,b as Ht,f as yr,u as xt,ap as ae,l as N,W as Tr,aq as he,ar as Ae,n as Be,e as Ut,as as Ze,at as _e,au as Se}from"./phantom-ui-gBKV8nCw.js";var se={},Fr={};Fr.byteLength=Ve;Fr.toByteArray=Xe;Fr.fromByteArray=Qe;var Jt=[],Zt=[],Ke=typeof Uint8Array<"u"?Uint8Array:Array,Qr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var vr=0,We=Qr.length;vr<We;++vr)Jt[vr]=Qr[vr],Zt[Qr.charCodeAt(vr)]=vr;Zt[45]=62;Zt[95]=63;function Ne(h){var v=h.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=h.indexOf("=");A===-1&&(A=v);var I=A===v?0:4-A%4;return[A,I]}function Ve(h){var v=Ne(h),A=v[0],I=v[1];return(A+I)*3/4-I}function Je(h,v,A){return(v+A)*3/4-A}function Xe(h){var v,A=Ne(h),I=A[0],R=A[1],p=new Ke(Je(h,I,R)),T=0,w=R>0?I-4:I,O;for(O=0;O<w;O+=4)v=Zt[h.charCodeAt(O)]<<18|Zt[h.charCodeAt(O+1)]<<12|Zt[h.charCodeAt(O+2)]<<6|Zt[h.charCodeAt(O+3)],p[T++]=v>>16&255,p[T++]=v>>8&255,p[T++]=v&255;return R===2&&(v=Zt[h.charCodeAt(O)]<<2|Zt[h.charCodeAt(O+1)]>>4,p[T++]=v&255),R===1&&(v=Zt[h.charCodeAt(O)]<<10|Zt[h.charCodeAt(O+1)]<<4|Zt[h.charCodeAt(O+2)]>>2,p[T++]=v>>8&255,p[T++]=v&255),p}function Ye(h){return Jt[h>>18&63]+Jt[h>>12&63]+Jt[h>>6&63]+Jt[h&63]}function je(h,v,A){for(var I,R=[],p=v;p<A;p+=3)I=(h[p]<<16&16711680)+(h[p+1]<<8&65280)+(h[p+2]&255),R.push(Ye(I));return R.join("")}function Qe(h){for(var v,A=h.length,I=A%3,R=[],p=16383,T=0,w=A-I;T<w;T+=p)R.push(je(h,T,T+p>w?w:T+p));return I===1?(v=h[A-1],R.push(Jt[v>>2]+Jt[v<<4&63]+"==")):I===2&&(v=(h[A-2]<<8)+h[A-1],R.push(Jt[v>>10]+Jt[v>>4&63]+Jt[v<<2&63]+"=")),R.join("")}var ue={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ue.read=function(h,v,A,I,R){var p,T,w=R*8-I-1,O=(1<<w)-1,J=O>>1,G=-7,X=A?R-1:0,Ot=A?-1:1,V=h[v+X];for(X+=Ot,p=V&(1<<-G)-1,V>>=-G,G+=w;G>0;p=p*256+h[v+X],X+=Ot,G-=8);for(T=p&(1<<-G)-1,p>>=-G,G+=I;G>0;T=T*256+h[v+X],X+=Ot,G-=8);if(p===0)p=1-J;else{if(p===O)return T?NaN:(V?-1:1)*(1/0);T=T+Math.pow(2,I),p=p-J}return(V?-1:1)*T*Math.pow(2,p-I)};ue.write=function(h,v,A,I,R,p){var T,w,O,J=p*8-R-1,G=(1<<J)-1,X=G>>1,Ot=R===23?Math.pow(2,-24)-Math.pow(2,-77):0,V=I?0:p-1,Nt=I?1:-1,rt=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(w=isNaN(v)?1:0,T=G):(T=Math.floor(Math.log(v)/Math.LN2),v*(O=Math.pow(2,-T))<1&&(T--,O*=2),T+X>=1?v+=Ot/O:v+=Ot*Math.pow(2,1-X),v*O>=2&&(T++,O/=2),T+X>=G?(w=0,T=G):T+X>=1?(w=(v*O-1)*Math.pow(2,R),T=T+X):(w=v*Math.pow(2,X-1)*Math.pow(2,R),T=0));R>=8;h[A+V]=w&255,V+=Nt,w/=256,R-=8);for(T=T<<R|w,J+=R;J>0;h[A+V]=T&255,V+=Nt,T/=256,J-=8);h[A+V-Nt]|=rt*128};(function(h){/*! 2 * The buffer module from node.js, for the browser. 3 * 4 * @author Feross Aboukhadijeh <https://feross.org> 5 * @license MIT 6 */const v=Fr,A=ue,I=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;h.Buffer=w,h.SlowBuffer=Ct,h.INSPECT_MAX_BYTES=50;const R=2147483647;h.kMaxLength=R,w.TYPED_ARRAY_SUPPORT=p(),!w.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 p(){try{const a=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(a,r),a.foo()===42}catch{return!1}}Object.defineProperty(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}});function T(a){if(a>R)throw new RangeError('The value "'+a+'" is invalid for option "size"');const r=new Uint8Array(a);return Object.setPrototypeOf(r,w.prototype),r}function w(a,r,e){if(typeof a=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return X(a)}return O(a,r,e)}w.poolSize=8192;function O(a,r,e){if(typeof a=="string")return Ot(a,r);if(ArrayBuffer.isView(a))return Nt(a);if(a==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(Lt(a,ArrayBuffer)||a&&Lt(a.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Lt(a,SharedArrayBuffer)||a&&Lt(a.buffer,SharedArrayBuffer)))return rt(a,r,e);if(typeof a=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const u=a.valueOf&&a.valueOf();if(u!=null&&u!==a)return w.from(u,r,e);const y=Ft(a);if(y)return y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof a[Symbol.toPrimitive]=="function")return w.from(a[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}w.from=function(a,r,e){return O(a,r,e)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array);function J(a){if(typeof a!="number")throw new TypeError('"size" argument must be of type number');
6if(a<0)throw new RangeError('The value "'+a+'" is invalid for option "size"')}function G(a,r,e){return J(a),a<=0?T(a):r!==void 0?typeof e=="string"?T(a).fill(r,e):T(a).fill(r):T(a)}w.alloc=function(a,r,e){return G(a,r,e)};function X(a){return J(a),T(a<0?0:kt(a)|0)}w.allocUnsafe=function(a){return X(a)},w.allocUnsafeSlow=function(a){return X(a)};function Ot(a,r){if((typeof r!="string"||r==="")&&(r="utf8"),!w.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const e=qt(a,r)|0;let u=T(e);const y=u.write(a,r);return y!==e&&(u=u.slice(0,y)),u}function V(a){const r=a.length<0?0:kt(a.length)|0,e=T(r);for(let u=0;u<r;u+=1)e[u]=a[u]&255;return e}function Nt(a){if(Lt(a,Uint8Array)){const r=new Uint8Array(a);return rt(r.buffer,r.byteOffset,r.byteLength)}return V(a)}function rt(a,r,e){if(r<0||a.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(a.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');let u;return r===void 0&&e===void 0?u=new Uint8Array(a):e===void 0?u=new Uint8Array(a,r):u=new Uint8Array(a,r,e),Object.setPrototypeOf(u,w.prototype),u}function Ft(a){if(w.isBuffer(a)){const r=kt(a.length)|0,e=T(r);return e.length===0||a.copy(e,0,0,r),e}if(a.length!==void 0)return typeof a.length!="number"||tt(a.length)?T(0):V(a);if(a.type==="Buffer"&&Array.isArray(a.data))return V(a.data)}function kt(a){if(a>=R)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R.toString(16)+" bytes");return a|0}function Ct(a){return+a!=a&&(a=0),w.alloc(+a)}w.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==w.prototype},w.compare=function(r,e){if(Lt(r,Uint8Array)&&(r=w.from(r,r.offset,r.byteLength)),Lt(e,Uint8Array)&&(e=w.from(e,e.offset,e.byteLength)),!w.isBuffer(r)||!w.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;let u=r.length,y=e.length;for(let M=0,b=Math.min(u,y);M<b;++M)if(r[M]!==e[M]){u=r[M],y=e[M];break}return u<y?-1:y<u?1:0},w.isEncoding=function(r){switch(String(r).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}},w.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return w.alloc(0);let u;if(e===void 0)for(e=0,u=0;u<r.length;++u)e+=r[u].length;const y=w.allocUnsafe(e);let M=0;for(u=0;u<r.length;++u){let b=r[u];if(Lt(b,Uint8Array))M+b.length>y.length?(w.isBuffer(b)||(b=w.from(b)),b.copy(y,M)):Uint8Array.prototype.set.call(y,b,M);else if(w.isBuffer(b))b.copy(y,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=b.length}return y};function qt(a,r){if(w.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||Lt(a,ArrayBuffer))return a.byteLength;if(typeof a!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);const e=a.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&e===0)return 0;let y=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Q(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return it(a).length;default:if(y)return u?-1:Q(a).length;r=(""+r).toLowerCase(),y=!0}}w.byteLength=qt;function Tt(a,r,e){let u=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(a||(a="utf8");;)switch(a){case"hex":return g(this,r,e);case"utf8":case"utf-8":return t(this,r,e);case"ascii":return c(this,r,e);case"latin1":case"binary":return d(this,r,e);case"base64":return m(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,r,e);default:if(u)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),u=!0}}w.prototype._isBuffer=!0;function Rt(a,r,e){const u=a[r];a[r]=a[e],a[e]=u}w.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<r;e+=2)Rt(this,e,e+1);return this},w.prototype.swap32=function(){const r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<r;e+=4)Rt(this,e,e+3),Rt(this,e+1,e+2);return this},w.prototype.swap64=function(){const r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<r;e+=8)Rt(this,e,e+7),Rt(this,e+1,e+6),Rt(this,e+2,e+5),Rt(this,e+3,e+4);return this},w.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?t(this,0,r):Tt.apply(this,arguments)}
6,w.prototype.toLocaleString=w.prototype.toString,w.prototype.equals=function(r){if(!w.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:w.compare(this,r)===0},w.prototype.inspect=function(){let r="";const e=h.INSPECT_MAX_BYTES;return r=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(r+=" ... "),"<Buffer "+r+">"},I&&(w.prototype[I]=w.prototype.inspect),w.prototype.compare=function(r,e,u,y,M){if(Lt(r,Uint8Array)&&(r=w.from(r,r.offset,r.byteLength)),!w.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),u===void 0&&(u=r?r.length:0),y===void 0&&(y=0),M===void 0&&(M=this.length),e<0||u>r.length||y<0||M>this.length)throw new RangeError("out of range index");if(y>=M&&e>=u)return 0;if(y>=M)return-1;if(e>=u)return 1;if(e>>>=0,u>>>=0,y>>>=0,M>>>=0,this===r)return 0;let b=M-y,K=u-e;const q=Math.min(b,K),$=this.slice(y,M),j=r.slice(e,u);for(let L=0;L<q;++L)if($[L]!==j[L]){b=$[L],K=j[L];break}return b<K?-1:K<b?1:0};function et(a,r,e,u,y){if(a.length===0)return-1;if(typeof e=="string"?(u=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,tt(e)&&(e=y?0:a.length-1),e<0&&(e=a.length+e),e>=a.length){if(y)return-1;e=a.length-1}else if(e<0)if(y)e=0;else return-1;if(typeof r=="string"&&(r=w.from(r,u)),w.isBuffer(r))return r.length===0?-1:_t(a,r,e,u,y);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?y?Uint8Array.prototype.indexOf.call(a,r,e):Uint8Array.prototype.lastIndexOf.call(a,r,e):_t(a,[r],e,u,y);throw new TypeError("val must be string, number or Buffer")}function _t(a,r,e,u,y){let M=1,b=a.length,K=r.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(a.length<2||r.length<2)return-1;M=2,b/=2,K/=2,e/=2}function q(j,L){return M===1?j[L]:j.readUInt16BE(L*M)}let $;if(y){let j=-1;for($=e;$<b;$++)if(q(a,$)===q(r,j===-1?0:$-j)){if(j===-1&&(j=$),$-j+1===K)return j*M}else j!==-1&&($-=$-j),j=-1}else for(e+K>b&&(e=b-K),$=e;$>=0;$--){let j=!0;for(let L=0;L<K;L++)if(q(a,$+L)!==q(r,L)){j=!1;break}if(j)return $}return-1}w.prototype.includes=function(r,e,u){return this.indexOf(r,e,u)!==-1},w.prototype.indexOf=function(r,e,u){return et(this,r,e,u,!0)},w.prototype.lastIndexOf=function(r,e,u){return et(this,r,e,u,!1)};function Gt(a,r,e,u){e=Number(e)||0;const y=a.length-e;u?(u=Number(u),u>y&&(u=y)):u=y;const M=r.length;u>M/2&&(u=M/2);let b;for(b=0;b<u;++b){const K=parseInt(r.substr(b*2,2),16);if(tt(K))return b;a[e+b]=K}return b}function Kt(a,r,e,u){return Y(Q(r,a.length-e),a,e,u)}function jt(a,r,e,u){return Y(ot(r),a,e,u)}function st(a,r,e,u){return Y(it(r),a,e,u)}function Wt(a,r,e,u){return Y(Yt(r,a.length-e),a,e,u)}w.prototype.write=function(r,e,u,y){if(e===void 0)y="utf8",u=this.length,e=0;else if(u===void 0&&typeof e=="string")y=e,u=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(u)?(u=u>>>0,y===void 0&&(y="utf8")):(y=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-e;if((u===void 0||u>M)&&(u=M),r.length>0&&(u<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");let b=!1;for(;;)switch(y){case"hex":return Gt(this,r,e,u);case"utf8":case"utf-8":return Kt(this,r,e,u);case"ascii":case"latin1":case"binary":return jt(this,r,e,u);case"base64":return st(this,r,e,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt(this,r,e,u);default:if(b)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),b=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(a,r,e){return r===0&&e===a.length?v.fromByteArray(a):v.fromByteArray(a.slice(r,e))}function t(a,r,e){e=Math.min(a.length,e);const u=[];let y=r;for(;y<e;){const M=a[y];let b=null,K=M>239?4:M>223?3:M>191?2:1;if(y+K<=e){let q,$,j,L;switch(K){case 1:M<128&&(b=M);break;case 2:q=a[y+1],(q&192)===128&&(L=(M&31)<<6|q&63,L>127&&(b=L));break;
6case 3:q=a[y+1],$=a[y+2],(q&192)===128&&($&192)===128&&(L=(M&15)<<12|(q&63)<<6|$&63,L>2047&&(L<55296||L>57343)&&(b=L));break;case 4:q=a[y+1],$=a[y+2],j=a[y+3],(q&192)===128&&($&192)===128&&(j&192)===128&&(L=(M&15)<<18|(q&63)<<12|($&63)<<6|j&63,L>65535&&L<1114112&&(b=L))}}b===null?(b=65533,K=1):b>65535&&(b-=65536,u.push(b>>>10&1023|55296),b=56320|b&1023),u.push(b),y+=K}return s(u)}const n=4096;function s(a){const r=a.length;if(r<=n)return String.fromCharCode.apply(String,a);let e="",u=0;for(;u<r;)e+=String.fromCharCode.apply(String,a.slice(u,u+=n));return e}function c(a,r,e){let u="";e=Math.min(a.length,e);for(let y=r;y<e;++y)u+=String.fromCharCode(a[y]&127);return u}function d(a,r,e){let u="";e=Math.min(a.length,e);for(let y=r;y<e;++y)u+=String.fromCharCode(a[y]);return u}function g(a,r,e){const u=a.length;(!r||r<0)&&(r=0),(!e||e<0||e>u)&&(e=u);let y="";for(let M=r;M<e;++M)y+=at[a[M]];return y}function E(a,r,e){const u=a.slice(r,e);let y="";for(let M=0;M<u.length-1;M+=2)y+=String.fromCharCode(u[M]+u[M+1]*256);return y}w.prototype.slice=function(r,e){const u=this.length;r=~~r,e=e===void 0?u:~~e,r<0?(r+=u,r<0&&(r=0)):r>u&&(r=u),e<0?(e+=u,e<0&&(e=0)):e>u&&(e=u),e<r&&(e=r);const y=this.subarray(r,e);return Object.setPrototypeOf(y,w.prototype),y};function l(a,r,e){if(a%1!==0||a<0)throw new RangeError("offset is not uint");if(a+r>e)throw new RangeError("Trying to access beyond buffer length")}w.prototype.readUintLE=w.prototype.readUIntLE=function(r,e,u){r=r>>>0,e=e>>>0,u||l(r,e,this.length);let y=this[r],M=1,b=0;for(;++b<e&&(M*=256);)y+=this[r+b]*M;return y},w.prototype.readUintBE=w.prototype.readUIntBE=function(r,e,u){r=r>>>0,e=e>>>0,u||l(r,e,this.length);let y=this[r+--e],M=1;for(;e>0&&(M*=256);)y+=this[r+--e]*M;return y},w.prototype.readUint8=w.prototype.readUInt8=function(r,e){return r=r>>>0,e||l(r,1,this.length),this[r]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||l(r,2,this.length),this[r]|this[r+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||l(r,2,this.length),this[r]<<8|this[r+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||l(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||l(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},w.prototype.readBigUInt64LE=zt(function(r){r=r>>>0,D(r,"offset");const e=this[r],u=this[r+7];(e===void 0||u===void 0)&&z(r,this.length-8);const y=e+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,M=this[++r]+this[++r]*2**8+this[++r]*2**16+u*2**24;return BigInt(y)+(BigInt(M)<<BigInt(32))}),w.prototype.readBigUInt64BE=zt(function(r){r=r>>>0,D(r,"offset");const e=this[r],u=this[r+7];(e===void 0||u===void 0)&&z(r,this.length-8);const y=e*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],M=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+u;return(BigInt(y)<<BigInt(32))+BigInt(M)}),w.prototype.readIntLE=function(r,e,u){r=r>>>0,e=e>>>0,u||l(r,e,this.length);let y=this[r],M=1,b=0;for(;++b<e&&(M*=256);)y+=this[r+b]*M;return M*=128,y>=M&&(y-=Math.pow(2,8*e)),y},w.prototype.readIntBE=function(r,e,u){r=r>>>0,e=e>>>0,u||l(r,e,this.length);let y=e,M=1,b=this[r+--y];for(;y>0&&(M*=256);)b+=this[r+--y]*M;return M*=128,b>=M&&(b-=Math.pow(2,8*e)),b},w.prototype.readInt8=function(r,e){return r=r>>>0,e||l(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},w.prototype.readInt16LE=function(r,e){r=r>>>0,e||l(r,2,this.length);const u=this[r]|this[r+1]<<8;return u&32768?u|4294901760:u},w.prototype.readInt16BE=function(r,e){r=r>>>0,e||l(r,2,this.length);const u=this[r+1]|this[r]<<8;return u&32768?u|4294901760:u},w.prototype.readInt32LE=function(r,e){return r=r>>>0,e||l(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},w.prototype.readInt32BE=function(r,e){return r=r>>>0,e||l(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},w.prototype.readBigInt64LE=zt(function(r){r=r>>>0,D(r,"offset");const e=this[r],u=this[r+7];(e===void 0||u===void 0)&&z(r,this.length-8);const y=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(u<<24);return(BigInt(y)<<BigInt(32))+BigInt(e+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),w.prototype.readBigInt64BE=zt(function(r){r=r>>>0,D(r,"offset");const e=this[r],u=this[r+7];(e===void 0||u===void 0)&&z(r,this.length-8);const y=(e<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(y)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+u)}),w.prototype.readFloatLE=function(r,e){return r=r>>>0,e||l(r,4,this.length),A.read(this,r,!0,23,4)},w.prototype.readFloatBE=function(r,e){return r=r>>>0,e||l(r,4,this.length),A.read(this,r,!1,23,4)},w.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||l(r,8,this.length),A.read(this,r,!0,52,8)},w.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||l(r,8,this.length),A.read(this,r,!1,52,8)};function i(a,r,e,u,y,M){if(!w.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>y||r<M)throw new RangeError('"value" argument is out of bounds');if(e+u>a.length)throw new RangeError("Index out of range")}w.prototype.writeUintLE=w.prototype.writeUIntLE=function(r,e,u,y){if(r=+r,e=e>>>0,u=u>>>0,!y){const K=Math.pow(2,8*u)-1;i(this,r,e,u,K,0)}let M=1,b=0;for(this[e]=r&255;++b<u&&(M*=256);)this[e+b]=r/M&255;return e+u},w.prototype.writeUintBE=w.prototype.writeUIntBE=function(r,e,u,y){if(r=+r,e=e>>>0,u=u>>>0,!y){const K=Math.pow(2,8*u)-1;i(this,r,e,u,K,0)}let M=u-1,b=1;for(this[e+M]=r&255;--M>=0&&(b*=256);)this[e+M]=r/b&255;return e+u},w.prototype.writeUint8=w.prototype.writeUInt8=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,1,255,0),this[e]=r&255,e+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function f(a,r,e,u,y){U(r,u,y,a,e,7);let M=Number(r&BigInt(4294967295));a[e++]=M,M=M>>8,a[e++]=M,M=M>>8,a[e++]=M,M=M>>8,a[e++]=M;let b=Number(r>>BigInt(32)&BigInt(4294967295));return a[e++]=b,b=b>>8,a[e++]=b,b=b>>8,a[e++]=b,b=b>>8,a[e++]=b,e}function H(a,r,e,u,y){U(r,u,y,a,e,7);let M=Number(r&BigInt(4294967295));a[e+7]=M,M=M>>8,a[e+6]=M,M=M>>8,a[e+5]=M,M=M>>8,a[e+4]=M;let b=Number(r>>BigInt(32)&BigInt(4294967295));return a[e+3]=b,b=b>>8,a[e+2]=b,b=b>>8,a[e+1]=b,b=b>>8,a[e]=b,e+8}w.prototype.writeBigUInt64LE=zt(function(r,e=0){return f(this,r,e,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=zt(function(r,e=0){return H(this,r,e,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(r,e,u,y){if(r=+r,e=e>>>0,!y){const q=Math.pow(2,8*u-1);i(this,r,e,u,q-1,-q)}let M=0,b=1,K=0;for(this[e]=r&255;++M<u&&(b*=256);)r<0&&K===0&&this[e+M-1]!==0&&(K=1),this[e+M]=(r/b>>0)-K&255;return e+u},w.prototype.writeIntBE=function(r,e,u,y){if(r=+r,e=e>>>0,!y){const q=Math.pow(2,8*u-1);i(this,r,e,u,q-1,-q)}let M=u-1,b=1,K=0;for(this[e+M]=r&255;--M>=0&&(b*=256);)r<0&&K===0&&this[e+M+1]!==0&&(K=1),this[e+M]=(r/b>>0)-K&255;return e+u},w.prototype.writeInt8=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1},w.prototype.writeInt16LE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2},w.prototype.writeInt16BE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2},w.prototype.writeInt32LE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4},w.prototype.writeInt32BE=function(r,e,u){return r=+r,e=e>>>0,u||i(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4},w.prototype.writeBigInt64LE=zt(function(r,e=0){return f(this,r,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=zt(function(r,e=0){return H(this,r,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function F(a,r,e,u,y,M){if(e+u>a.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function o(a,r,e,u,y){return r=+r,e=e>>>0,y||F(a,r,e,4),A.write(a,r,e,u,23,4),e+4}w.prototype.writeFloatLE=function(r,e,u){return o(this,r,e,!0,u)},w.prototype.writeFloatBE=function(r,e,u){return o(this,r,e,!1,u)};function _(a,r,e,u,y){return r=+r,e=e>>>0,y||F(a,r,e,8),A.write(a,r,e,u,52,8),e+8}w.prototype.writeDoubleLE=function(r,e,u){return _(this,r,e,!0,u)},w.prototype.writeDoubleBE=function(r,e,u){return _(this,r,e,!1,u)},w.prototype.copy=function(r,e,u,y){if(!w.isBuffer(r))throw new TypeError("argument should be a Buffer");if(u||(u=0),!y&&y!==0&&(y=this.length),e>=r.length&&(e=r.length),e||(e=0),y>0&&y<u&&(y=u),y===u||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("sourceEnd out of bounds");y>this.length&&(y=this.length),r.length-e<y-u&&(y=r.length-e+u);const M=y-u;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,u,y):Uint8Array.prototype.set.call(r,this.subarray(u,y),e),M},w.prototype.fill=function(r,e,u,y){if(typeof r=="string"){if(typeof e=="string"?(y=e,e=0,u=this.length):typeof u=="string"&&(y=u,u=this.length),y!==void 0&&typeof y!="str
6ing")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!w.isEncoding(y))throw new TypeError("Unknown encoding: "+y);if(r.length===1){const b=r.charCodeAt(0);(y==="utf8"&&b<128||y==="latin1")&&(r=b)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length<e||this.length<u)throw new RangeError("Out of range index");if(u<=e)return this;e=e>>>0,u=u===void 0?this.length:u>>>0,r||(r=0);let M;if(typeof r=="number")for(M=e;M<u;++M)this[M]=r;else{const b=w.isBuffer(r)?r:w.from(r,y),K=b.length;if(K===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(M=0;M<u-e;++M)this[M+e]=b[M%K]}return this};const B={};function S(a,r,e){B[a]=class extends e{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${a}]`,this.stack,delete this.name}get code(){return a}set code(y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:y,writable:!0})}toString(){return`${this.name} [${a}]: ${this.message}`}}}S("ERR_BUFFER_OUT_OF_BOUNDS",function(a){return a?`${a} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),S("ERR_INVALID_ARG_TYPE",function(a,r){return`The "${a}" argument must be of type number. Received type ${typeof r}`},TypeError),S("ERR_OUT_OF_RANGE",function(a,r,e){let u=`The value of "${a}" is out of range.`,y=e;return Number.isInteger(e)&&Math.abs(e)>2**32?y=P(String(e)):typeof e=="bigint"&&(y=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(y=P(y)),y+="n"),u+=` It must be ${r}. Received ${y}`,u},RangeError);function P(a){let r="",e=a.length;const u=a[0]==="-"?1:0;for(;e>=u+4;e-=3)r=`_${a.slice(e-3,e)}${r}`;return`${a.slice(0,e)}${r}`}function x(a,r,e){D(r,"offset"),(a[r]===void 0||a[r+e]===void 0)&&z(r,a.length-(e+1))}function U(a,r,e,u,y,M){if(a>e||a<r){const b=typeof r=="bigint"?"n":"";let K;throw r===0||r===BigInt(0)?K=`>= 0${b} and < 2${b} ** ${(M+1)*8}${b}`:K=`>= -(2${b} ** ${(M+1)*8-1}${b}) and < 2 ** ${(M+1)*8-1}${b}`,new B.ERR_OUT_OF_RANGE("value",K,a)}x(u,y,M)}function D(a,r){if(typeof a!="number")throw new B.ERR_INVALID_ARG_TYPE(r,"number",a)}function z(a,r,e){throw Math.floor(a)!==a?(D(a,e),new B.ERR_OUT_OF_RANGE("offset","an integer",a)):r<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,a)}const k=/[^+/0-9A-Za-z-_]/g;function nt(a){if(a=a.split("=")[0],a=a.trim().replace(k,""),a.length<2)return"";for(;a.length%4!==0;)a=a+"=";return a}function Q(a,r){r=r||1/0;let e;const u=a.length;let y=null;const M=[];for(let b=0;b<u;++b){if(e=a.charCodeAt(b),e>55295&&e<57344){if(!y){if(e>56319){(r-=3)>-1&&M.push(239,191,189);continue}else if(b+1===u){(r-=3)>-1&&M.push(239,191,189);continue}y=e;continue}if(e<56320){(r-=3)>-1&&M.push(239,191,189),y=e;continue}e=(y-55296<<10|e-56320)+65536}else y&&(r-=3)>-1&&M.push(239,191,189);if(y=null,e<128){if((r-=1)<0)break;M.push(e)}else if(e<2048){if((r-=2)<0)break;M.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;M.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;M.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return M}function ot(a){const r=[];for(let e=0;e<a.length;++e)r.push(a.charCodeAt(e)&255);return r}function Yt(a,r){let e,u,y;const M=[];for(let b=0;b<a.length&&!((r-=2)<0);
6++b)e=a.charCodeAt(b),u=e>>8,y=e%256,M.push(y),M.push(u);return M}function it(a){return v.toByteArray(nt(a))}function Y(a,r,e,u){let y;for(y=0;y<u&&!(y+e>=r.length||y>=a.length);++y)r[y+e]=a[y];return y}function Lt(a,r){return a instanceof r||a!=null&&a.constructor!=null&&a.constructor.name!=null&&a.constructor.name===r.name}function tt(a){return a!==a}const at=function(){const a="0123456789abcdef",r=new Array(256);for(let e=0;e<16;++e){const u=e*16;for(let y=0;y<16;++y)r[u+y]=a[e]+a[y]}return r}();function zt(a){return typeof BigInt>"u"?ht:a}function ht(){throw new Error("BigInt not supported")}})(se);const ti="logger/5.7.0";let me=!1,ve=!1;const Sr={debug:1,default:2,info:2,warning:3,error:4,off:5};let ye=Sr.default,te=null;function ri(){try{const h=[];if(["NFD","NFC","NFKD","NFKC"].forEach(v=>{try{if("test".normalize(v)!=="test")throw new Error("bad normalize")}catch{h.push(v)}}),h.length)throw new Error("missing "+h.join(", "));if("é".normalize("NFD")!=="eÌ")throw new Error("broken implementation")}catch(h){return h.message}return null}const ge=ri();var ee;(function(h){h.DEBUG="DEBUG",h.INFO="INFO",h.WARNING="WARNING",h.ERROR="ERROR",h.OFF="OFF"})(ee||(ee={}));var Vt;(function(h){h.UNKNOWN_ERROR="UNKNOWN_ERROR",h.NOT_IMPLEMENTED="NOT_IMPLEMENTED",h.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",h.NETWORK_ERROR="NETWORK_ERROR",h.SERVER_ERROR="SERVER_ERROR",h.TIMEOUT="TIMEOUT",h.BUFFER_OVERRUN="BUFFER_OVERRUN",h.NUMERIC_FAULT="NUMERIC_FAULT",h.MISSING_NEW="MISSING_NEW",h.INVALID_ARGUMENT="INVALID_ARGUMENT",h.MISSING_ARGUMENT="MISSING_ARGUMENT",h.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",h.CALL_EXCEPTION="CALL_EXCEPTION",h.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",h.NONCE_EXPIRED="NONCE_EXPIRED",h.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",h.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",h.TRANSACTION_REPLACED="TRANSACTION_REPLACED",h.ACTION_REJECTED="ACTION_REJECTED"})(Vt||(Vt={}));const we="0123456789abcdef";class St{constructor(v){Object.defineProperty(this,"version",{enumerable:!0,value:v,writable:!1})}_log(v,A){const I=v.toLowerCase();Sr[I]==null&&this.throwArgumentError("invalid log level name","logLevel",v),!(ye>Sr[I])&&console.log.apply(console,A)}debug(...v){this._log(St.levels.DEBUG,v)}info(...v){this._log(St.levels.INFO,v)}warn(...v){this._log(St.levels.WARNING,v)}makeError(v,A,I){if(ve)return this.makeError("censored error",A,{});A||(A=St.errors.UNKNOWN_ERROR),I||(I={});const R=[];Object.keys(I).forEach(O=>{const J=I[O];try{if(J instanceof Uint8Array){let G="";for(let X=0;X<J.length;X++)G+=we[J[X]>>4],G+=we[J[X]&15];R.push(O+"=Uint8Array(0x"+G+")")}else R.push(O+"="+JSON.stringify(J))}catch{R.push(O+"="+JSON.stringify(I[O].toString()))}}),R.push(`code=${A}`),R.push(`version=${this.version}`);const p=v;let T="";switch(A){case Vt.NUMERIC_FAULT:{T="NUMERIC_FAULT";const O=v;switch(O){case"overflow":case"underflow":case"division-by-zero":T+="-"+O;break;case"negative-power":case"negative-width":T+="-unsupported";break;case"unbound-bitwise-result":T+="-unbound-result";break}break}case Vt.CALL_EXCEPTION:case Vt.INSUFFICIENT_FUNDS:case Vt.MISSING_NEW:case Vt.NONCE_EXPIRED:case Vt.REPLACEMENT_UNDERPRICED:case Vt.TRANSACTION_REPLACED:case Vt.UNPREDICTABLE_GAS_LIMIT:T=A;break}T&&(v+=" [ See: https://links.ethers.org/v5-errors-"+T+" ]"),R.length&&(v+=" ("+R.join(", ")+")");const w=new Error(v);return w.reason=p,w.code=A,Object.keys(I).forEach(function(O){w[O]=I[O]}),w}throwError(v,A,I){throw this.makeError(v,A,I)}throwArgumentError(v,A,I){return this.throwError(v,St.errors.INVALID_ARGUMENT,{argument:A,value:I})}assert(v,A,I,R){v||this.throwError(A,I,R)}assertArgument(v,A,I,R){v||this.throwArgumentError(A,I,R)}checkNormalize(v){ge&&this.throwError("platform missing String.prototype.normalize",St.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ge})}checkSafeUint53(v,A){typeof v=="number"&&(A==null&&(A="value not safe"),(v<0||v>=9007199254740991)&&this.throwError(A,St.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:v}),v%1&&this.throwError(A,St.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:v}))}checkArgumentCount(v,A,I){I?I=": "+I:I="",v<A&&this.throwError("missing argument"+I,St.errors.MISSING_ARGUMENT,{count:v,expectedCount:A}),v>A&&this.throwError("too many arguments"+I,St.errors.UNEXPECTED_ARGUMENT,{count:v,expectedCount:A})}checkNew(v,A){(v===Object||v==null)&&this.throwError("missing new",St.errors.MISSING_NEW,{name:A.name})}checkAbstract(v,A){v===A?this.throwError("cannot instantiate abstract class "+JSON.stringify(A.name)+" directly; use a sub-class",St.errors.UNSUPPORTED_OPERATION,{name:v.name,operation:"new"}):(v===Object||v==null)&&this.throwError("missing new",St.errors.MISSING_NEW,{name:A.name})}static globalLogger(){return te||(te=new St(ti)),te}static setCensorship(v,A){if(!v&&A&&this.globalLogger().throwError("cannot permanently disable censorship",St.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),me){if(!v)return;this.globalLogger().throwError("error censorship permanent",St.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ve=!!v,me=!!A}static setLogLevel(v){const A=Sr[v.toLowerCase()];if(A==null){St.globalLogger().warn("invalid log level - "+v);return}ye=A}static from(v){return new St(v)}}St.errors=Vt;St.levels=ee;const ei="bytes/5.7.0",re=new St(ei);function ii(h){return!!h.toHexString}function Nr(h){return h.slice||(h.slice=function(){const v=Array.prototype.slice.call(arguments);return Nr(new Uint8Array(Array.prototype.slice.apply(h,v)))}),h}function Me(h){return typeof h=="number"&&h==h&&h%1===0}function ni(h){if(h==null)return!1;if(h.constructor===Uint8Array)return!0;
6if(typeof h=="string"||!Me(h.length)||h.length<0)return!1;for(let v=0;v<h.length;v++){const A=h[v];if(!Me(A)||A<0||A>=256)return!1}return!0}function Te(h,v){if(v||(v={}),typeof h=="number"){re.checkSafeUint53(h,"invalid arrayify value");const A=[];for(;h;)A.unshift(h&255),h=parseInt(String(h/256));return A.length===0&&A.push(0),Nr(new Uint8Array(A))}if(v.allowMissingPrefix&&typeof h=="string"&&h.substring(0,2)!=="0x"&&(h="0x"+h),ii(h)&&(h=h.toHexString()),Re(h)){let A=h.substring(2);A.length%2&&(v.hexPad==="left"?A="0"+A:v.hexPad==="right"?A+="0":re.throwArgumentError("hex data is odd-length","value",h));const I=[];for(let R=0;R<A.length;R+=2)I.push(parseInt(A.substring(R,R+2),16));return Nr(new Uint8Array(I))}return ni(h)?Nr(new Uint8Array(h)):re.throwArgumentError("invalid arrayify value","value",h)}function Re(h,v){return!(typeof h!="string"||!h.match(/^0x[0-9A-Fa-f]*$/)||v&&h.length!==2+2*v)}var le={exports:{}};const oi={},ai=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),hi=ze(ai);le.exports;(function(h){(function(v,A){function I(m,t){if(!m)throw new Error(t||"Assertion failed")}function R(m,t){m.super_=t;var n=function(){};n.prototype=t.prototype,m.prototype=new n,m.prototype.constructor=m}function p(m,t,n){if(p.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((t==="le"||t==="be")&&(n=t,t=10),this._init(m||0,t||10,n||"be"))}typeof v=="object"?v.exports=p:A.BN=p,p.BN=p,p.wordSize=26;var T;try{typeof window<"u"&&typeof window.Buffer<"u"?T=window.Buffer:T=hi.Buffer}catch{}p.isBN=function(t){return t instanceof p?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===p.wordSize&&Array.isArray(t.words)},p.max=function(t,n){return t.cmp(n)>0?t:n},p.min=function(t,n){return t.cmp(n)<0?t:n},p.prototype._init=function(t,n,s){if(typeof t=="number")return this._initNumber(t,n,s);if(typeof t=="object")return this._initArray(t,n,s);n==="hex"&&(n=16),I(n===(n|0)&&n>=2&&n<=36),t=t.toString().replace(/\s+/g,"");var c=0;t[0]==="-"&&(c++,this.negative=1),c<t.length&&(n===16?this._parseHex(t,c,s):(this._parseBase(t,n,c),s==="le"&&this._initArray(this.toArray(),n,s)))},p.prototype._initNumber=function(t,n,s){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[t&67108863],this.length=1):t<4503599627370496?(this.words=[t&67108863,t/67108864&67108863],this.length=2):(I(t<9007199254740992),this.words=[t&67108863,t/67108864&67108863,1],this.length=3),s==="le"&&this._initArray(this.toArray(),n,s)},p.prototype._initArray=function(t,n,s){if(I(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var d,g,E=0;if(s==="be")for(c=t.length-1,d=0;c>=0;c-=3)g=t[c]|t[c-1]<<8|t[c-2]<<16,this.words[d]|=g<<E&67108863,this.words[d+1]=g>>>26-E&67108863,E+=24,E>=26&&(E-=26,d++);else if(s==="le")for(c=0,d=0;c<t.length;c+=3)g=t[c]|t[c+1]<<8|t[c+2]<<16,this.words[d]|=g<<E&67108863,this.words[d+1]=g>>>26-E&67108863,E+=24,E>=26&&(E-=26,d++);return this._strip()};function w(m,t){var n=m.charCodeAt(t);if(n>=48&&n<=57)return n-48;if(n>=65&&n<=70)return n-55;if(n>=97&&n<=102)return n-87;I(!1,"Invalid character in "+m)}function O(m,t,n){var s=w(m,n);return n-1>=t&&(s|=w(m,n-1)<<4),s}p.prototype._parseHex=function(t,n,s){this.length=Math.ceil((t.length-n)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var d=0,g=0,E;if(s==="be")for(c=t.length-1;c>=n;c-=2)E=O(t,n,c)<<d,this.words[g]|=E&67108863,d>=18?(d-=18,g+=1,this.words[g]|=E>>>26):d+=8;else{var l=t.length-n;for(c=l%2===0?n+1:n;c<t.length;c+=2)E=O(t,n,c)<<d,this.words[g]|=E&67108863,d>=18?(d-=18,g+=1,this.words[g]|=E>>>26):d+=8}this._strip()};function J(m,t,n,s){for(var c=0,d=0,g=Math.min(m.length,n),E=t;E<g;E++){var l=m.charCodeAt(E)-48;c*=s,l>=49?d=l-49+10:l>=17?d=l-17+10:d=l,I(l>=0&&d<s,"Invalid character"),c+=d}return c}p.prototype._parseBase=function(t,n,s){this.words=[0],this.length=1;for(var c=0,d=1;d<=67108863;d*=n)c++;c--,d=d/n|0;for(var g=t.length-s,E=g%c,l=Math.min(g,g-E)+s,i=0,f=s;f<l;f+=c)i=J(t,f,f+c,n),this.imuln(d),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i);if(E!==0){var H=1;for(i=J(t,f,t.length,n),f=0;f<E;f++)H*=n;this.imuln(H),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i)}this._strip()},p.prototype.copy=function(t){t.words=new Array(this.length);for(var n=0;n<this.length;n++)t.words[n]=this.words[n];t.length=this.length,t.negative=this.negative,t.red=this.red};function G(m,t){m.words=t.words,m.length=t.length,m.negative=t.negative,m.red=t.red}if(p.prototype._move=function(t){G(t,this)},p.prototype.clone=function(){var t=new p(null);return this.copy(t),t},p.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},p.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},p.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{p.prototype[Symbol.for("nodejs.util.inspect.custom")]=X}catch{p.prototype.inspect=X}else p.prototype.inspect=X;function X(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var Ot=["","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"],V=[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],Nt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 38,016 bytes, lines 6-12
6777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];p.prototype.toString=function(t,n){t=t||10,n=n|0||1;var s;if(t===16||t==="hex"){s="";for(var c=0,d=0,g=0;g<this.length;g++){var E=this.words[g],l=((E<<c|d)&16777215).toString(16);d=E>>>24-c&16777215,c+=2,c>=26&&(c-=26,g--),d!==0||g!==this.length-1?s=Ot[6-l.length]+l+s:s=l+s}for(d!==0&&(s=d.toString(16)+s);s.length%n!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}if(t===(t|0)&&t>=2&&t<=36){var i=V[t],f=Nt[t];s="";var H=this.clone();for(H.negative=0;!H.isZero();){var F=H.modrn(f).toString(t);H=H.idivn(f),H.isZero()?s=F+s:s=Ot[i-F.length]+F+s}for(this.isZero()&&(s="0"+s);s.length%n!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}I(!1,"Base should be between 2 and 36")},p.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=this.words[1]*67108864:this.length===3&&this.words[2]===1?t+=4503599627370496+this.words[1]*67108864:this.length>2&&I(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},p.prototype.toJSON=function(){return this.toString(16,2)},T&&(p.prototype.toBuffer=function(t,n){return this.toArrayLike(T,t,n)}),p.prototype.toArray=function(t,n){return this.toArrayLike(Array,t,n)};var rt=function(t,n){return t.allocUnsafe?t.allocUnsafe(n):new t(n)};p.prototype.toArrayLike=function(t,n,s){this._strip();var c=this.byteLength(),d=s||Math.max(1,c);I(c<=d,"byte array longer than desired length"),I(d>0,"Requested array length <= 0");var g=rt(t,d),E=n==="le"?"LE":"BE";return this["_toArrayLike"+E](g,c),g},p.prototype._toArrayLikeLE=function(t,n){for(var s=0,c=0,d=0,g=0;d<this.length;d++){var E=this.words[d]<<g|c;t[s++]=E&255,s<t.length&&(t[s++]=E>>8&255),s<t.length&&(t[s++]=E>>16&255),g===6?(s<t.length&&(t[s++]=E>>24&255),c=0,g=0):(c=E>>>24,g+=2)}if(s<t.length)for(t[s++]=c;s<t.length;)t[s++]=0},p.prototype._toArrayLikeBE=function(t,n){for(var s=t.length-1,c=0,d=0,g=0;d<this.length;d++){var E=this.words[d]<<g|c;t[s--]=E&255,s>=0&&(t[s--]=E>>8&255),s>=0&&(t[s--]=E>>16&255),g===6?(s>=0&&(t[s--]=E>>24&255),c=0,g=0):(c=E>>>24,g+=2)}if(s>=0)for(t[s--]=c;s>=0;)t[s--]=0},Math.clz32?p.prototype._countBits=function(t){return 32-Math.clz32(t)}:p.prototype._countBits=function(t){var n=t,s=0;return n>=4096&&(s+=13,n>>>=13),n>=64&&(s+=7,n>>>=7),n>=8&&(s+=4,n>>>=4),n>=2&&(s+=2,n>>>=2),s+n},p.prototype._zeroBits=function(t){if(t===0)return 26;var n=t,s=0;return n&8191||(s+=13,n>>>=13),n&127||(s+=7,n>>>=7),n&15||(s+=4,n>>>=4),n&3||(s+=2,n>>>=2),n&1||s++,s},p.prototype.bitLength=function(){var t=this.words[this.length-1],n=this._countBits(t);return(this.length-1)*26+n};function Ft(m){for(var t=new Array(m.bitLength()),n=0;n<t.length;n++){var s=n/26|0,c=n%26;t[n]=m.words[s]>>>c&1}return t}p.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,n=0;n<this.length;n++){var s=this._zeroBits(this.words[n]);if(t+=s,s!==26)break}return t},p.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},p.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},p.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},p.prototype.isNeg=function(){return this.negative!==0},p.prototype.neg=function(){return this.clone().ineg()},p.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},p.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]|t.words[n];return this._strip()},p.prototype.ior=function(t){return I((this.negative|t.negative)===0),this.iuor(t)},p.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},p.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},p.prototype.iuand=function(t){var n;this.length>t.length?n=t:n=this;for(var s=0;s<n.length;s++)this.words[s]=this.words[s]&t.words[s];return this.length=n.length,this._strip()},p.prototype.iand=function(t){return I((this.negative|t.negative)===0),this.iuand(t)},p.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},p.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},p.prototype.iuxor=function(t){var n,s;this.length>t.length?(n=this,s=t):(n=t,s=this);for(var c=0;c<s.length;c++)this.words[c]=n.words[c]^s.words[c];if(this!==n)for(;c<n.length;c++)this.words[c]=n.words[c];return this.length=n.length,this._strip()},p.prototype.ixor=function(t){return I((this.negative|t.negative)===0),this.iuxor(t)},p.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},p.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},p.prototype.inotn=function(t){I(typeof t=="number"&&t>=0);var n=Math.ceil(t/26)|0,s=t%26;this._expand(n),s>0&&n--;for(var c=0;c<n;c++)this.words[c]=~this.words[c]&67108863;return s>0&&(this.words[c]=~this.words[c]&67108863>>26-s),this._strip()},p.prototype.notn=function(t){return this.clone().inotn(t)},p.prototype.setn=function(t,n){I(typeof t=="number"&&t>=0);var s=t/26|0,c=t%26;return this._expand(s+1),n?this.words[s]=this.words[s]|1<<c:this.words[s]=this.words[s]&~(1<<c),this._strip()},p.prototype.iadd=function(t){var n;if(this.negative!==0&&t.negative===0)return this.negative=0,n=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,n=this.isub(t),t.negative=1,n._normSign();var s,c;this.length>t.length?(s=this,c=t):(s=t,c=this);for(var d=0,g=0;g<c.length;g++)n=(s.words[g]|0)+(c.words[g]|0)+d,this.words[g]=n&67108863,d=n>>>26;for(;d!==0&&g<s.length;g++)n=(s.words[g]|0)+d,this.words[g]=n&67108863,d=n>>>26;if(this.length=s.length,d!==0)this.words[this.length]=d,this.length++;else if(s!==this)for(;g<s.length;g++)this.words[g]=s.words[g];return this},p.prototype.add=function(t){var n;return t.negative!==0&&this.negative===0?(t.negative=0,n=this.sub(t),t.negative^=1,n):t.negative===0&&this.negative!==0?(this.negative=0,n=t.sub(this),this.negative=1,n):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},p.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var n=this.iadd(t);return t.negative=1,n._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var s=this.cmp(t);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,d;s>0?(c=this,d=t):(c=t,d=this);for(var g=0,E=0;E<d.length;E++)n=(c.words[E]|0)-(d.words[E]|0)+g,g=n>>26,this.words[E]=n&67108863;for(;g!==0&&E<c.length;E++)n=(c.words[E]|0)+g,g=n>>26,this.words[E]=n&67108863;if(g===0&&E<c.length&&c!==this)for(;E<c.length;E++)this.words[E]=c.words[E];return this.length=Math.max(this.length,E),c!==this&&(this.negative=1),this._strip()},p.prototype.sub=function(t){return this.clone().isub(t)};function kt(m,t,n){n.negative=t.negative^m.negative;var s=m.length+t.length|0;n.length=s,s=s-1|0;var c=m.words[0]|0,d=t.words[0]|0,g=c*d,E=g&67108863,l=g/67108864|0;n.words[0]=E;for(var i=1;i<s;i++){for(var f=l>>>26,H=l&67108863,F=Math.min(i,t.length-1),o=Math.max(0,i-m.length+1);o<=F;o++){var _=i-o|0;c=m.words[_]|0,d=t.words[o]|0,g=c*d+H,f+=g/67108864|0,H=g&67108863}n.words[i]=H|0,l=f|0}return l!==0?n.words[i]=l|0:n.length--,n._strip()}var Ct=function(t,n,s){var c=t.words,d=n.words,g=s.words,E=0,l,i,f,H=c[0]|0,F=H&8191,o=H>>>13,_=c[1]|0,B=_&8191,S=_>>>13,P=c[2]|0,x=P&8191,U=P>>>13,D=c[3]|0,z=D&8191,k=D>>>13,nt=c[4]|0,Q=nt&8191,ot=nt>>>13,Yt=c[5]|0,it=Yt&8191,Y=Yt>>>13,Lt=c[6]|0,tt=Lt&8191,at=Lt>>>13,zt=c[7]|0,ht=zt&8191,a=zt>>>13,r=c[8]|0,e=r&8191,u=r>>>13,y=c[9]|0,M=y&8191,b=y>>>13,K=d[0]|0,q=K&8191,$=K>>>13,j=d[1]|0,L=j&8191,ut=j>>>13,ar=d[2]|0,lt=ar&8191,ft=ar>>>13,hr=d[3]|0,ct=hr&8191,pt=hr>>>13,sr=d[4]|0,dt=sr&8191,mt=sr>>>13,ur=d[5]|0,vt=ur&8191,yt=ur>>>13,lr=d[6]|0,gt=lr&8191,wt=lr>>>13,fr=d[7]|0,Mt=fr&8191,Et=fr>>>13,cr=d[8]|0,It=cr&8191,bt=cr>>>13,pr=d[9]|0,At=pr&8191,Bt=pr>>>13;s.negative=t.negative^n.negative,s.length=19,l=Math.imul(F,q),i=Math.imul(F,$),i=i+Math.imul(o,q)|0,f=Math.imul(o,$);var Qt=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,l=Math.imul(B,q),i=Math.imul(B,$),i=i+Math.imul(S,q)|0,f=Math.imul(S,$),l=l+Math.imul(F,L)|0,i=i+Math.imul(F,ut)|0,i=i+Math.imul(o,L)|0,f=f+Math.imul(o,ut)|0;var tr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(tr>>>26)|0,tr&=67108863,l=Math.imul(x,q),i=Math.imul(x,$),i=i+Math.imul(U,q)|0,f=Math.imul(U,$),l=l+Math.imul(B,L)|0,i=i+Math.imul(B,ut)|0,i=i+Math.imul(S,L)|0,f=f+Math.imul(S,ut)|0,l=l+Math.imul(F,lt)|0,i=i+Math.imul(F,ft)|0,i=i+Math.imul(o,lt)|0,f=f+Math.imul(o,ft)|0;var rr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(rr>>>26)|0,rr&=67108863,l=Math.imul(z,q),i=Math.imul(z,$),i=i+Math.imul(k,q)|0,f=Math.imul(k,$),l=l+Math.imul(x,L)|0,i=i+Math.imul(x,ut)|0,i=i+Math.imul(U,L)|0,f=f+Math.imul(U,ut)|0,l=l+Math.imul(B,lt)|0,i=i+Math.imul(B,ft)|0,i=i+Math.imul(S,lt)|0,f=f+Math.imul(S,ft)|0,l=l+Math.imul(F,ct)|0,i=i+Math.imul(F,pt)|0,i=i+Math.imul(o,ct)|0,f=f+Math.imul(o,pt)|0;var er=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(er>>>26)|0,er&=67108863,l=Math.imul(Q,q),i=Math.imul(Q,$),i=i+Math.imul(ot,q)|0,f=Math.imul(ot,$),l=l+Math.imul(z,L)|0,i=i+Math.imul(z,ut)|0,i=i+Math.imul(k,L)|0,f=f+Math.imul(k,ut)|0,l=l+Math.imul(x,lt)|0,i=i+Math.imul(x,ft)|0,i=i+Math.imul(U,lt)|0,f=f+Math.imul(U,ft)|0,l=l+Math.imul(B,ct)|0,i=i+Math.imul(B,pt)|0,i=i+Math.imul(S,ct)|0,f=f+Math.imul(S,pt)|0,l=l+Math.imul(F,dt)|0,i=i+Math.imul(F,mt)|0,i=i+Math.imul(o,dt)|0,f=f+Math.imul(o,mt)|0;var ir=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(ir>>>26)|0,ir&=67108863,l=Math.imul(it,q),i=Math.imul(it,$),i=i+Math.imul(Y,q)|0,f=Math.imul(Y,$),l=l+Math.imul(Q,L)|0,i=i+Math.imul(Q,ut)|0,i=i+Math.imul(ot,L)|0,f=f+Math.imul(ot,ut)|0,l=l+Math.imul(z,lt)|0,i=i+Math.imul(z,ft)|0,i=i+Math.imul(k,lt)|0,f=f+Math.imul(k,ft)|0,l=l+Math.imul(x,ct)|0,i=i+Math.imul(x,pt)|0,i=i+Math.imul(U,ct)|0,f=f+Math.imul(U,pt)|0,l=l+Math.imul(B,dt)|0,i=i+Math.imul(B,mt)|0,i=i+Math.imul(S,dt)|0,f=f+Math.imul(S,mt)|0,l=l+Math.imul(F,vt)|0,i=i+Math.imul(F,yt)|0,i=i+Math.imul(o,vt)|0,f=f+Math.imul(o,yt)|0;var nr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(nr>>>26)|0,nr&=67108863,l=Math.imul(tt,q),i=Math.imul(tt,$),i=i+Math.imul(at,q)|0,f=Math.imul(at,$),l=l+Math.imul(it,L)|0,i=i+Math.imul(it,ut)|0,i=i+Math.imul(Y,L)|0,f=f+Math.imul(Y,ut)|0,l=l+Math.imul(Q,lt)|0,i=i+Math.imul(Q,ft)|0,i=i+Math.imul(ot,lt)|0,f=f+Math.imul(ot,ft)|0,l=l+Math.imul(z,ct)|0,i=i+Math.imul(z,pt)|0,i=i+Math.imul(k,ct)|0,f=f+Math.imul(k,pt)|0,l=l+Math.imul(x,dt)|0,i=i+Math.imul(x,mt)|0,i=i+Math.imul(U,dt)|0,f=f+Math.imul(U,mt)|0,l=l+Math.imul(B,vt)|0,i=i+Math.imul(B,yt)|0,i=i+Math.imul(S,vt)|0,f=f+Math.imul(S,yt)|0,l=l+Math.imul(F,gt)|0,i=i+Math.imul(F,wt)|0,i=i+Math.imul(o,gt)|0,f=f+Math.imul(o,wt)|0;var Hr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,l=Math.imul(ht,q),i=Math.imul(ht,$),i=i+Math.imul(a,q)|0,f=Math.imul(a,$),l=l+Math.imul(tt,L)|0,i=i+Math.imul(tt,ut)|0,i=i+Math.imul(at,L)|0,f=f+Math.imul(at,ut)|0,l=l+Math.imul(it,lt)|0,i=i+Math.imul(it,ft)|0,i=i+Math.imul(Y,lt)|0,f=f+Math.imul(Y,ft)|0,l=l+Math.imul(Q,ct)|0,i=i+Math.imul(Q,pt)|0,i=i+Math.imul(ot,ct)|0,f=f+Math.imul(ot,pt)|0,l=l+Math.imul(z,dt)|0,i=i+Math.imul(z,mt)|0,i=i+Math.imul(k,dt)|0,f=f+Math.imul(k,mt)|0,l=l+Math.imul(x,vt)|0,i=i+Math.imul(x,yt)|0,i=i+Math.imul(U,vt)|0,f=f+Math.imul(U,yt)|0,l=l+Math.imul(B,gt)|0,i=i+Math.imul(B,wt)|0,i=i+Math.imul(S,gt)|0,f=f+Math.imul(S,wt)|0,l=l+Math.imul(F,Mt)|0,i=i+Math.imul(F,Et)|0,i=i+Math.imul(o,Mt)|0,f=f+Math.imul(o,Et)|0;var $r=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+($r>>>26)|0,$r&=67108863,l=Math.imul(e,q),i=Math.imul(e,$),i=i+Math.imul(u,q)|0,f=Math.imul(u,$),l=l+Math.imul(ht,L)|0,i=i+Math.imul(ht,ut)|0,i=i+Math.imul(a,L)|0,f=f+Math.imul(a,ut)|0,l=l+Math.imul(tt,lt)|0,i=i+Math.imul(tt,ft)|0,i=i+Math.imul(at,lt)|0,f=f+Math.imul(at,ft)|0,l=l+Math.imul(it,ct)|0,i=i+Math.imul(it,pt)|0,i=i+Math.imul(Y,ct)|0,f=f+Math.imul(Y,pt)|0,l=l+Math.imul(Q,dt)|0,i=i+Math.imul(Q,mt)|0,i=i+Math.imul(ot,dt)|0,f=f+Math.imul(ot,mt)|0,l=l+Math.imul(z,vt)|0,i=i+Math.imul(z,yt)|0,i=i+Math.imul(k,vt)|0,f=f+Math.imul(k,yt)|0,l=l+Math.imul(x,gt)|0,i=i+Math.imul(x,wt)|0,i=i+Math.imul(U,gt)|0,f=f+Math.imul(U,wt)|0,l=l+Math.imul(B,Mt)|0,i=i+Math.imul(B,Et)|0,i=i+Math.imul(S,Mt)|0,f=f+Math.imul(S,Et)|0,l=l+Math.imul(F,It)|0,i=i+Math.imul(F,bt)|0,i=i+Math.imul(o,It)|0,f=f+Math.imul(o,bt)|0;var qr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(qr>>>26)|0,qr&=67108863,l=Math.imul(M,q),i=Math.imul(M,$),i=i+Math.imul(b,q)|0,f=Math.imul(b,$),l=l+Math.imul(e,L)|0,i=i+Math.imul(e,ut)|0,i=i+Math.imul(u,L)|0,f=f+Math.imul(u,ut)|0,l=l+Math.imul(ht,lt)|0,i=i+Math.imul(ht,ft)|0,i=i+Math.imul(a,lt)|0,f=f+Math.imul(a,ft)|0,l=l+Math.imul(tt,ct)|0,i=i+Math.imul(tt,pt)|0,i=i+Math.imul(at,ct)|0,f=f+Math.imul(at,pt)|0,l=l+Math.imul(it,dt)|0,i=i+Math.imul(it,mt)|0,i=i+Math.imul(Y,dt)|0,f=f+Math.imul(Y,mt)|0,l=l+Math.imul(Q,vt)|0,i=i+Math.imul(Q,yt)|0,i=i+Math.imul(ot,vt)|0,f=f+Math.imul(ot,yt)|0,l=l+Math.imul(z,gt)|0,i=i+Math.imul(z,wt)|0,i=i+Math.imul(k,gt)|0,f=f+Math.imul(k,wt)|0,l=l+Math.imul(x,Mt)|0,i=i+Math.imul(x,Et)|0,i=i+Math.imul(U,Mt)|0,f=f+Math.imul(U,Et)|0,l=l+Math.imul(B,It)|0,i=i+Math.imul(B,bt)|0,i=i+Math.imul(S,It)|0,f=f+Math.imul(S,bt)|0,l=l+Math.imul(F,At)|0,i=i+Math.imul(F,Bt)|0,i=i+Math.imul(o,At)|0,f=f+Math.imul(o,Bt)|0;var zr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(zr>>>26)|0,zr&=67108863,l=Math.imul(M,L),i=Math.imul(M,ut),i=i+Math.imul(b,L)|0,f=Math.imul(b,ut),l=l+Math.imul(e,lt)|0,i=i+Math.imul(e,ft)|0,i=i+Math.imul(u,lt)|0,f=f+Math.imul(u,ft)|0,l=l+Math.imul(ht,ct)|0,i=i+Math.imul(ht,pt)|0,i=i+Math.imul(a,ct)|0,f=f+Math.imul(a,pt)|0,l=l+Math.imul(tt,dt)|0,i=i+Math.imul(tt,mt)|0,i=i+Math.imul(at,dt)|0,f=f+Math.imul(at,mt)|0,l=l+Math.imul(it,vt)|0,i=i+Math.imul(it,yt)|0,i=i+Math.imul(Y,vt)|0,f=f+Math.imul(Y,yt)|0,l=l+Math.imul(Q,gt)|0,i=i+Math.imul(Q,wt)|0,i=i+Math.imul(ot,gt)|0,f=f+Math.imul(ot,wt)|0,l=l+Math.imul(z,Mt)|0,i=i+Math.imul(z,Et)|0,i=i+Math.imul(k,Mt)|0,f=f+Math.imul(k,Et)|0,l=l+Math.imul(x,It)|0,i=i+Math.imul(x,bt)|0,i=i+Math.imul(U,It)|0,f=f+Math.imul(U,bt)|0,l=l+Math.imul(B,At)|0,i=i+Math.imul(B,Bt)|0,i=i+Math.imul(S,At)|0,f=f+Math.imul(S,Bt)|0;var Gr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,l=Math.imul(M,lt),i=Math.imul(M,ft),i=i+Math.imul(b,lt)|0,f=Math.imul(b,ft),l=l+Math.imul(e,ct)|0,i=i+Math.imul(e,pt)|0,i=i+Math.imul(u,ct)|0,f=f+Math.imul(u,pt)|0,l=l+Math.imul(ht,dt)|0,i=i+Math.imul(ht,mt)|0,i=i+Math.imul(a,dt)|0,f=f+Math.imul(a,mt)|0,l=l+Math.imul(tt,vt)|0,i=i+Math.imul(tt,yt)|0,i=i+Math.imul(at,vt)|0,f=f+Math.imul(at,yt)|0,l=l+Math.imul(it,gt)|0,i=i+Math.imul(it,wt)|0,i=i+Math.imul(Y,gt)|0,f=f+Math.imul(Y,wt)|0,l=l+Math.imul(Q,Mt)|0,i=i+Math.imul(Q,Et)|0,i=i+Math.imul(ot,Mt)|0,f=f+Math.imul(ot,Et)|0,l=l+Math.imul(z,It)|0,i=i+Math.imul(z,bt)|0,i=i+Math.imul(k,It)|0,f=f+Math.imul(k,bt)|0,l=l+Math.imul(x,At)|0,i=i+Math.imul(x,Bt)|0,i=i+Math.imul(U,At)|0,f=f+Math.imul(U,Bt)|0;var Zr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,l=Math.imul(M,ct),i=Math.imul(M,pt),i=i+Math.imul(b,ct)|0,f=Math.imul(b,pt),l=l+Math.imul(e,dt)|0,i=i+Math.imul(e,mt)|0,i=i+Math.imul(u,dt)|0,f=f+Math.imul(u,mt)|0,l=l+Math.imul(ht,vt)|0,i=i+Math.imul(ht,yt)|0,i=i+Math.imul(a,vt)|0,f=f+Math.imul(a,yt)|0,l=l+Math.imul(tt,gt)|0,i=i+Math.imul(tt,wt)|0,i=i+Math.imul(at,gt)|0,f=f+Math.imul(at,wt)|0,l=l+Math.imul(it,Mt)|0,i=i+Math.imul(it,Et)|0,i=i+Math.imul(Y,Mt)|0,f=f+Math.imul(Y,Et)|0,l=l+Math.imul(Q,It)|0,i=i+Math.imul(Q,bt)|0,i=i+Math.imul(ot,It)|0,f=f+Math.imul(ot,bt)|0,l=l+Math.imul(z,At)|0,i=i+Math.imul(z,Bt)|0,i=i+Math.imul(k,At)|0,f=f+Math.imul(k,Bt)|0;var Kr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,l=Math.imul(M,dt),i=Math.imul(M,mt),i=i+Math.imul(b,dt)|0,f=Math.imul(b,mt),l=l+Math.imul(e,vt)|0,i=i+Math.imul(e,yt)|0,i=i+Math.imul(u,vt)|0,f=f+Math.imul(u,yt)|0,l=l+Math.imul(ht,gt)|0,i=i+Math.imul(ht,wt)|0,i=i+Math.imul(a,gt)|0,f=f+Math.imul(a,wt)|0,l=l+Math.imul(tt,Mt)|0,i=i+Math.imul(tt,Et)|0,i=i+Math.imul(at,Mt)|0,f=f+Math.imul(at,Et)|0,l=l+Math.imul(it,It)|0,i=i+Math.imul(it,bt)|0,i=i+Math.imul(Y,It)|0,f=f+Math.imul(Y,bt)|0,l=l+Math.imul(Q,At)|0,i=i+Math.imul(Q,Bt)|0,i=i+Math.imul(ot,At)|0,f=f+Math.imul(ot,Bt)|0;var Wr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,l=Math.imul(M,vt),i=Math.imul(M,yt),i=i+Math.imul(b,vt)|0,f=Math.imul(b,yt),l=l+Math.imul(e,gt)|0,i=i+Math.imul(e,wt)|0,i=i+Math.imul(u,gt)|0,f=f+Math.imul(u,wt)|0,l=l+Math.imul(ht,Mt)|0,i=i+Math.imul(ht,Et)|0,i=i+Math.imul(a,Mt)|0,f=f+Math.imul(a,Et)|0,l=l+Math.imul(tt,It)|0,i=i+Math.imul(tt,bt)|0,i=i+Math.imul(at,It)|0,f=f+Math.imul(at,bt)|0,l=l+Math.imul(it,At)|0,i=i+Math.imul(it,Bt)|0,i=i+Math.imul(Y,At)|0,f=f+Math.imul(Y,Bt)|0;var Vr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,l=Math.imul(M,gt),i=Math.imul(M,wt),i=i+Math.imul(b,gt)|0,f=Math.imul(b,wt),l=l+Math.imul(e,Mt)|0,i=i+Math.imul(e,Et)|0,i=i+Math.imul(u,Mt)|0,f=f+Math.imul(u,Et)|0,l=l+Math.imul(ht,It)|0,i=i+Math.imul(ht,bt)|0,i=i+Math.imul(a,It)|0,f=f+Math.imul(a,bt)|0,l=l+Math.imul(tt,At)|0,i=i+Math.imul(tt,Bt)|0,i=i+Math.imul(at,At)|0,f=f+Math.imul(at,Bt)|0;var Jr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,l=Math.imul(M,Mt),i=Math.imul(M,Et),i=i+Math.imul(b,Mt)|0,f=Math.imul(b,Et),l=l+Math.imul(e,It)|0,i=i+Math.imul(e,bt)|0,i=i+Math.imul(u,It)|0,f=f+Math.imul(u,bt)|0,l=l+Math.imul(ht,At)|0,i=i+Math.imul(ht,Bt)|0,i=i+Math.imul(a,At)|0,f=f+Math.imul(a,Bt)|0;var Xr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,l=Math.imul(M,It),i=Math.imul(M,bt),i=i+Math.imul(b,It)|0,f=Math.imul(b,bt),l=l+Math.imul(e,At)|0,i=i+Math.imul(e,Bt)|0,i=i+Math.imul(u,At)|0,f=f+Math.imul(u,Bt)|0;var Yr=(E+l|0)+((i&8191)<<13)|0;E=(f+(i>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,l=Math.imul(M,At),i=Math.imul(M,Bt),i=i+Math.imul(b,At)|0,f=Math.imul(b,Bt);var jr=(E+l|0)+((i&8191)<<13)|0;return E=(f+(i>>>13)|0)+(jr>>>26)|0,jr&=67108863,g[0]=Qt,g[1]=tr,g[2]=rr,g[3]=er,g[4]=ir,g[5]=nr,g[6]=Hr,g[7]=$r,g[8]=qr,g[9]=zr,g[10]=Gr,g[11]=Zr,g[12]=Kr,g[13]=Wr,g[14]=Vr,g[15]=Jr,g[16]=Xr,g[17]=Yr,g[18]=jr,E!==0&&(g[19]=E,s.length++),s};Math.imul||(Ct=kt);function qt(m,t,n){n.negative=t.negative^m.negative,n.length=m.length+t.length;for(var s=0,c=0,d=0;d<n.length-1;d++){var g=c;c=0;for(var E=s&67108863,l=Math.min(d,t.length-1),i=Math.max(0,d-m.length+1);i<=l;i++){var f=d-i,H=m.words[f]|0,F=t.words[i]|0,o=H*F,_=o&67108863;g=g+(o/67108864|0)|0,_=_+E|0,E=_&67108863,g=g+(_>>>26)|0,c+=g>>>26,g&=67108863}n.words[d]=E,s=g,g=c}return s!==0?n.words[d]=s:n.length--,n._strip()}function Tt(m,t,n){return qt(m,t,n)}p.prototype.mulTo=function(t,n){var s,c=this.length+t.length;return this.length===10&&t.length===10?s=Ct(this,t,n):c<63?s=kt(this,t,n):c<1024?s=qt(this,t,n):s=Tt(this,t,n),s},p.prototype.mul=function(t){var n=new p(null);return n.words=new Array(this.length+t.length),this.mulTo(t,n)},p.prototype.mulf=function(t){var n=new p(null);return n.words=new Array(this.length+t.length),Tt(this,t,n)},p.prototype.imul=function(t){return this.clone().mulTo(t,this)},p.prototype.imuln=function(t){var n=t<0;n&&(t=-t),I(typeof t=="number"),I(t<67108864);for(var s=0,c=0;c<this.length;c++){var d=(this.words[c]|0)*t,g=(d&67108863)+(s&67108863);s>>=26,s+=d/67108864|0,s+=g>>>26,this.words[c]=g&67108863}return s!==0&&(this.words[c]=s,this.length++),n?this.ineg():this},p.prototype.muln=function(t){return this.clone().imuln(t)},p.prototype.sqr=function(){return this.mul(this)},p.prototype.isqr=function(){return this.imul(this.clone())},p.prototype.pow=function(t){var n=Ft(t);if(n.length===0)return new p(1);for(var s=this,c=0;c<n.length&&n[c]===0;c++,s=s.sqr());if(++c<n.length)for(var d=s.sqr();c<n.length;c++,d=d.sqr())n[c]!==0&&(s=s.mul(d));return s},p.prototype.iushln=function(t){I(typeof t=="number"&&t>=0);var n=t%26,s=(t-n)/26,c=67108863>>>26-n<<26-n,d;if(n!==0){var g=0;for(d=0;d<this.length;d++){var E=this.words[d]&c,l=(this.words[d]|0)-E<<n;this.words[d]=l|g,g=E>>>26-n}g&&(this.words[d]=g,this.length++)}if(s!==0){for(d=this.length-1;d>=0;d--)this.words[d+s]=this.words[d];for(d=0;d<s;d++)this.words[d]=0;this.length+=s}return this._strip()},p.prototype.ishln=function(t){return I(this.negative===0),this.iushln(t)},p.prototype.iushrn=function(t,n,s){I(typeof t=="number"&&t>=0);var c;n?c=(n-n%26)/26:c=0;var d=t%26,g=Math.min((t-d)/26,this.length),E=67108863^67108863>>>d<<d,l=s;if(c-=g,c=Math.max(0,c),l){for(var i=0;i<g;i++)l.words[i]=this.words[i];l.length=g}if(g!==0)if(this.length>g)for(this.length-=g,i=0;i<this.length;i++)this.words[i]=this.words[i+g];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(f!==0||i>=c);i--){var H=this.words[i]|0;this.words[i]=f<<26-d|H>>>d,f=H&E}return l&&f!==0&&(l.words[l.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},p.prototype.ishrn=function(t,n,s){return I(this.negative===0),this.iushrn(t,n,s)},p.prototype.shln=function(t){return this.clone().ishln(t)},p.prototype.ushln=function(t){return this.clone().iushln(t)},p.prototype.shrn=function(t){return this.clone().ishrn(t)},p.prototype.ushrn=function(t){return this.clone().iushrn(t)},p.prototype.testn=function(t){I(typeof t=="number"&&t>=0);var n=t%26,s=(t-n)/26,c=1<<n;if(this.length<=s)return!1;var d=this.words[s];return!!(d&c)},p.prototype.imaskn=function(t){I(typeof t=="number"&&t>=0);var n=t%26,s=(t-n)/26;if(I(this.negative===0,"imaskn works only with positive numbers"),this.length<=s)return this;if(n!==0&&s++,this.length=Math.min(s,this.length),n!==0){var c=67108863^67108863>>>n<<n;this.words[this.length-1]&=c}return this._strip()},p.prototype.maskn=function(t){return this.clone().imaskn(t)},p.prototype.iaddn=function(t){return I(typeof t=="number"),I(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(this.words[0]|0)<=t?(this.words[0]=t-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},p.prototype._iaddn=function(t){this.words[0]+=t;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},p.prototype.isubn=function(t){if(I(typeof t=="number"),I(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this._strip()},p.prototype.addn=function(t){return this.clone().iaddn(t)},p.prototype.subn=function(t){return this.clone().isubn(t)},p.prototype.iabs=function(){return this.negative=0,this},p.prototype.abs=function(){return this.clone().iabs()},p.prototype._ishlnsubmul=function(t,n,s){var c=t.length+s,d;this._expand(c);var g,E=0;for(d=0;d<t.length;d++){g=(this.words[d+s]|0)+E;var l=(t.words[d]|0)*n;g-=l&67108863,E=(g>>26)-(l/67108864|0),this.words[d+s]=g&67108863}for(;d<this.length-s;d++)g=(this.words[d+s]|0)+E,E=g>>26,this.words[d+s]=g&67108863;if(E===0)return this._strip();for(I(E===-1),E=0,d=0;d<this.length;d++)g=-(this.words[d]|0)+E,E=g>>26,this.words[d]=g&67108863;return this.negative=1,this._strip()},p.prototype._wordDiv=function(t,n){var s=this.length-t.length,c=this.clone(),d=t,g=d.words[d.length-1]|0,E=this._countBits(g);s=26-E,s!==0&&(d=d.ushln(s),c.iushln(s),g=d.words[d.length-1]|0);var l=c.length-d.length,i;if(n!=="mod"){i=new p(null),i.length=l+1,i.words=new Array(i.length);for(var f=0;f<i.length;f++)i.words[f]=0}var H=c.clone()._ishlnsubmul(d,1,l);H.negative===0&&(c=H,i&&(i.words[l]=1));for(var F=l-1;F>=0;F--){var o=(c.words[d.length+F]|0)*67108864+(c.words[d.length+F-1]|0);for(o=Math.min(o/g|0,67108863),c._ishlnsubmul(d,o,F);c.negative!==0;)o--,c.negative=0,c._ishlnsubmul(d,1,F),c.isZero()||(c.negative^=1);i&&(i.words[F]=o)}return i&&i._strip(),c._strip(),n!=="div"&&s!==0&&c.iushrn(s),{div:i||null,mod:c}},p.prototype.divmod=function(t,n,s){if(I(!t.isZero()),this.isZero())return{div:new p(0),mod:new p(0)};var c,d,g;return this.negative!==0&&t.negative===0?(g=this.neg().divmod(t,n),n!=="mod"&&(c=g.div.neg()),n!=="div"&&(d=g.mod.neg(),s&&d.negative!==0&&d.iadd(t)),{div:c,mod:d}):this.negative===0&&t.negative!==0?(g=this.divmod(t.neg(),n),n!=="mod"&&(c=g.div.neg()),{div:c,mod:g.mod}):this.negative&t.negative?(g=this.neg().divmod(t.neg(),n),n!=="div"&&(d=g.mod.neg(),s&&d.negative!==0&&d.isub(t)),{div:g.div,mod:d}):t.length>this.length||this.cmp(t)<0?{div:new p(0),mod:this}:t.length===1?n==="div"?{div:this.divn(t.words[0]),mod:null}:n==="mod"?{div:null,mod:new p(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new p(this.modrn(t.words[0]))}:this._wordDiv(t,n)},p.prototype.div=function(t){return this.divmod(t,"div",!1).div},p.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},p.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},p.prototype.divRound=function(t){var n=this.divmod(t);if(n.mod.isZero())return n.div;var s=n.div.negative!==0?n.mod.isub(t):n.mod,c=t.ushrn(1),d=t.andln(1),g=s.cmp(c);return g<0||d===1&&g===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},p.prototype.modrn=function(t){var n=t<0;n&&(t=-t),I(t<=67108863);for(var s=(1<<26)%t,c=0,d=this.length-1;d>=0;d--)c=(s*c+(this.words[d]|0))%t;return n?-c:c},p.prototype.modn=function(t){return this.modrn(t)},p.prototype.idivn=function(t){var n=t<0;n&&(t=-t),I(t<=67108863);for(var s=0,c=this.length-1;c>=0;c--){var d=(this.words[c]|0)+s*67108864;this.words[c]=d/t|0,s=d%t}return this._strip(),n?this.ineg():this},p.prototype.divn=function(t){return this.clone().idivn(t)},p.prototype.egcd=function(t){I(t.negative===0),I(!t.isZero());var n=this,s=t.clone();n.negative!==0?n=n.umod(t):n=n.clone();for(var c=new p(1),d=new p(0),g=new p(0),E=new p(1),l=0;n.isEven()&&s.isEven();)n.iushrn(1),s.iushrn(1),++l;for(var i=s.clone(),f=n.clone();!n.isZero();){for(var H=0,F=1;!(n.words[0]&F)&&H<26;++H,F<<=1);if(H>0)for(n.iushrn(H);H-- >0;)(c.isOdd()||d.isOdd())&&(c.iadd(i),d.isub(f)),c.iushrn(1),d.iushrn(1);for(var o=0,_=1;!(s.words[0]&_)&&o<26;++o,_<<=1);if(o>0)for(s.iushrn(o);o-- >0;)(g.isOdd()||E.isOdd())&&(g.iadd(i),E.isub(f)),g.iushrn(1),E.iushrn(1);n.cmp(s)>=0?(n.isub(s),c.isub(g),d.isub(E)):(s.isub(n),g.isub(c),E.isub(d))}return{a:g,b:E,gcd:s.iushln(l)}},p.prototype._invmp=function(t){I(t.negative===0),I(!t.isZero());var n=this,s=t.clone();n.negative!==0?n=n.umod(t):n=n.clone();for(var c=new p(1),d=new p(0),g=s.clone();n.cmpn(1)>0&&s.cmpn(1)>0;){for(var E=0,l=1;!(n.words[0]&l)&&E<26;++E,l<<=1);if(E>0)for(n.iushrn(E);E-- >0;)c.isOdd()&&c.iadd(g),c.iushrn(1);for(var i=0,f=1;!(s.words[0]&f)&&i<26;++i,f<<=1);if(i>0)for(s.iushrn(i);i-- >0;)d.isOdd()&&d.iadd(g),d.iushrn(1);n.cmp(s)>=0?(n.isub(s),c.isub(d)):(s.isub(n),d.isub(c))}var H;return n.cmpn(1)===0?H=c:H=d,H.cmpn(0)<0&&H.iadd(t),H},p.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var n=this.clone(),s=t.clone();n.negative=0,s.negative=0;for(var c=0;n.isEven()&&s.isEven();c++)n.iushrn(1),s.iushrn(1);do{for(;n.isEven();)n.iushrn(1);for(;s.isEven();)s.iushrn(1);var d=n.cmp(s);if(d<0){var g=n;n=s,s=g}else if(d===0||s.cmpn(1)===0)break;n.isub(s)}while(!0);return s.iushln(c)},p.prototype.invm=function(t){return this.egcd(t).a.umod(t)},p.prototype.isEven=function(){return(this.words[0]&1)===0},p.prototype.isOdd=function(){return(this.words[0]&1)===1},p.prototype.andln=function(t){return this.words[0]&t},p.prototype.bincn=function(t){I(typeof t=="number");var n=t%26,s=(t-n)/26,c=1<<n;if(this.length<=s)return this._expand(s+1),this.words[s]|=c,this;for(var d=c,g=s;d!==0&&g<this.length;g++){var E=this.words[g]|0;E+=d,d=E>>>26,E&=67108863,this.words[g]=E}return d!==0&&(this.words[g]=d,this.length++),this},p.prototype.isZero=function(){return this.length===1&&this.words[0]===0},p.prototype.cmpn=function(t){var n=t<0;if(this.negative!==0&&!n)return-1;if(this.negative===0&&n)return 1;this._strip();var s;if(this.length>1)s=1;else{n&&(t=-t),I(t<=67108863,"Number is too big");var c=this.words[0]|0;s=c===t?0:c<t?-1:1}return this.negative!==0?-s|0:s},p.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var n=this.ucmp(t);return this.negative!==0?-n|0:n},p.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var n=0,s=this.length-1;s>=0;s--){var c=this.words[s]|0,d=t.words[s]|0;if(c!==d){c<d?n=-1:c>d&&(n=1);break}}return n},p.prototype.gtn=function(t){return this.cmpn(t)===1},p.prototype.gt=function(t){return this.cmp(t)===1},p.prototype.gten=function(t){return this.cmpn(t)>=0},p.prototype.gte=function(t){return this.cmp(t)>=0},p.prototype.ltn=function(t){return this.cmpn(t)===-1},p.prototype.lt=function(t){return this.cmp(t)===-1},p.prototype.lten=function(t){return this.cmpn(t)<=0},p.prototype.lte=function(t){return this.cmp(t)<=0},p.prototype.eqn=function(t){return this.cmpn(t)===0},p.prototype.eq=function(t){return this.cmp(t)===0},p.red=function(t){return new st(t)},p.prototype.toRed=function(t){return I(!this.red,"Already a number in reduction context"),I(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},p.prototype.fromRed=function(){return I(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},p.prototype._forceRed=function(t){return this.red=t,this},p.prototype.forceRed=function(t){return I(!this.red,"Already a number in reduction context"),this._forceRed(t)},p.prototype.redAdd=function(t){return I(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},p.prototype.redIAdd=function(t){return I(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},p.prototype.redSub=function(t){return I(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},p.prototype.redISub=function(t){return I(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},p.prototype.redShl=function(t){return I(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},p.prototype.redMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},p.prototype.redIMul=function(t){return I(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},p.prototype.redSqr=function(){return I(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},p.prototype.redISqr=function(){return I(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},p.prototype.redSqrt=function(){return I(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},p.prototype.redInvm=function(){return I(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},p.prototype.redNeg=function(){return I(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},p.prototype.redPow=function(t){return I(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Rt={k256:null,p224:null,p192:null,p25519:null};function et(m,t){this.name=m,this.p=new p(t,16),this.n=this.p.bitLength(),this.k=new p(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}et.prototype._tmp=function(){var t=new p(null);return t.words=new Array(Math.ceil(this.n/13)),t},et.prototype.ireduce=function(t){var n=t,s;do this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),s=n.bitLength();while(s>this.n);var c=s<this.n?-1:n.ucmp(this.p);return c===0?(n.words[0]=0,n.length=1):c>0?n.isub(this.p):n.strip!==void 0?n.strip():n._strip(),n},et.prototype.split=function(t,n){t.iushrn(this.n,0,n)},et.prototype.imulK=function(t){return t.imul(this.k)};function _t(){et.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(_t,et),_t.prototype.split=function(t,n){for(var s=4194303,c=Math.min(t.length,9),d=0;d<c;d++)n.words[d]=t.words[d];if(n.length=c,t.length<=9){t.words[0]=0,t.length=1;return}var g=t.words[9];for(n.words[n.length++]=g&s,d=10;d<t.length;d++){var E=t.words[d]|0;t.words[d-10]=(E&s)<<4|g>>>22,g=E}g>>>=22,t.words[d-10]=g,g===0&&t.length>10?t.length-=10:t.length-=9},_t.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var n=0,s=0;s<t.length;s++){var c=t.words[s]|0;n+=c*977,t.words[s]=n&67108863,n=c*64+(n/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function Gt(){et.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(Gt,et);function Kt(){et.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(Kt,et);function jt(){et.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(jt,et),jt.prototype.imulK=function(t){for(var n=0,s=0;s<t.length;s++){var c=(t.words[s]|0)*19+n,d=c&67108863;c>>>=26,t.words[s]=d,n=c}return n!==0&&(t.words[t.length++]=n),t},p._prime=function(t){if(Rt[t])return Rt[t];var n;if(t==="k256")n=new _t;else if(t==="p224")n=new Gt;else if(t==="p192")n=new Kt;else if(t==="p25519")n=new jt;else throw new Error("Unknown prime "+t);return Rt[t]=n,n};function st(m){if(typeof m=="string"){var t=p._prime(m);this.m=t.p,this.prime=t}else I(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}st.prototype._verify1=function(t){I(t.negative===0,"red works only with positives"),I(t.red,"red works only with red numbers")},st.prototype._verify2=function(t,n){I((t.negative|n.negative)===0,"red works only with positives"),I(t.red&&t.red===n.red,"red works only with red numbers")},st.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(G(t,t.umod(this.m)._forceRed(this)),t)},st.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},st.prototype.add=function(t,n){this._verify2(t,n);var s=t.add(n);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},st.prototype.iadd=function(t,n){this._verify2(t,n);var s=t.iadd(n);return s.cmp(this.m)>=0&&s.isub(this.m),s},st.prototype.sub=function(t,n){this._verify2(t,n);var s=t.sub(n);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},st.prototype.isub=function(t,n){this._verify2(t,n);var s=t.isub(n);return s.cmpn(0)<0&&s.iadd(this.m),s},st.prototype.shl=function(t,n){return this._verify1(t),this.imod(t.ushln(n))},st.prototype.imul=function(t,n){return this._verify2(t,n),this.imod(t.imul(n))},st.prototype.mul=function(t,n){return this._verify2(t,n),this.imod(t.mul(n))},st.prototype.isqr=function(t){return this.imul(t,t.clone())},st.prototype.sqr=function(t){return this.mul(t,t)},st.prototype.sqrt=function(t){if(t.isZero())return t.clone();var n=this.m.andln(3);if(I(n%2===1),n===3){var s=this.m.add(new p(1)).iushrn(2);return this.pow(t,s)}for(var c=this.m.subn(1),d=0;!c.isZero()&&c.andln(1)===0;)d++,c.iushrn(1);I(!c.isZero());var g=new p(1).toRed(this),E=g.redNeg(),l=this.m.subn(1).iushrn(1),i=this.m.bitLength();for(i=new p(2*i*i).toRed(this);this.pow(i,l).cmp(E)!==0;)i.redIAdd(E);for(var f=this.pow(i,c),H=this.pow(t,c.addn(1).iushrn(1)),F=this.pow(t,c),o=d;F.cmp(g)!==0;){for(var _=F,B=0;_.cmp(g)!==0;B++)_=_.redSqr();I(B<o);var S=this.pow(f,new p(1).iushln(o-B-1));H=H.redMul(S),f=S.redSqr(),F=F.redMul(f),o=B}return H},st.prototype.invm=function(t){var n=t._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},st.prototype.pow=function(t,n){if(n.isZero())return new p(1).toRed(this);if(n.cmpn(1)===0)return t.clone();var s=4,c=new Array(1<<s);c[0]=new p(1).toRed(this),c[1]=t;for(var d=2;d<c.length;d++)c[d]=this.mul(c[d-1],t);var g=c[0],E=0,l=0,i=n.bitLength()%26;for(i===0&&(i=26),d=n.length-1;d>=0;d--){for(var f=n.words[d],H=i-1;H>=0;H--){var F=f>>H&1;if(g!==c[0]&&(g=this.sqr(g)),F===0&&E===0){l=0;continue}E<<=1,E|=F,l++,!(l!==s&&(d!==0||H!==0))&&(g=this.mul(g,c[E]),l=0,E=0)}i=26}return g},st.prototype.convertTo=function(t){var n=t.umod(this.m);return n===t?n.clone():n},st.prototype.convertFrom=function(t){var n=t.clone();return n.red=null,n},p.mont=function(t){return new Wt(t)};function Wt(m){st.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new p(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)}R(Wt,st),Wt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Wt.prototype.convertFrom=function(t){var n=this.imod(t.mul(this.rinv));return n.red=null,n},Wt.prototype.imul=function(t,n){if(t.isZero()||n.isZero())return t.words[0]=0,t.length=1,t;var s=t.imul(n),c=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=s.isub(c).iushrn(this.shift),g=d;return d.cmp(this.m)>=0?g=d.isub(this.m):d.cmpn(0)<0&&(g=d.iadd(this.m)),g._forceRed(this)},Wt.prototype.mul=function(t,n){if(t.isZero()||n.isZero())return new p(0)._forceRed(this);var s=t.mul(n),c=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=s.isub(c).iushrn(this.shift),g=d;return d.cmp(this.m)>=0?g=d.isub(this.m):d.cmpn(0)<0&&(g=d.iadd(this.m)),g._forceRed(this)},Wt.prototype.invm=function(t){var n=this.imod(t._invmp(this.m).mul(this.r2));return n._forceRed(this)}})(h,Ge)})(le);var si=le.exports;const ui=oe(si);var li=ui.BN;function fi(h){return new li(h,36).toString(16)}var xe={exports:{}};(function(h){var v={};/** 7 * [js-sha3]{@link https://github.com/emn178/js-sha3} 8 * 9 * @version 0.8.0 10 * @author Chen, Yi-Cyuan [[email protected]] 11 * @copyright Chen, Yi-Cyuan 2015-2018 12 * @license MIT
13 */(function(){var A="input is invalid type",I="finalize already called",R=typeof window=="object",p=R?window:{};p.JS_SHA3_NO_WINDOW&&(R=!1);var T=!R&&typeof globalThis=="object",w=!p.JS_SHA3_NO_NODE_JS&&typeof v=="object"&&v.versions&&v.versions.node;(w||T)&&(p=globalThis);var O=!p.JS_SHA3_NO_COMMON_JS&&!0&&h.exports,J=!p.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",G="0123456789abcdef".split(""),X=[31,7936,2031616,520093696],Ot=[4,1024,262144,67108864],V=[1,256,65536,16777216],Nt=[6,1536,393216,100663296],rt=[0,8,16,24],Ft=[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],kt=[224,256,384,512],Ct=[128,256],qt=["hex","buffer","arrayBuffer","array","digest"],Tt={128:168,256:136};(p.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(o){return Object.prototype.toString.call(o)==="[object Array]"}),J&&(p.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(o){return typeof o=="object"&&o.buffer&&o.buffer.constructor===ArrayBuffer});for(var Rt=function(o,_,B){return function(S){return new f(o,_,o).update(S)[B]()}},et=function(o,_,B){return function(S,P){return new f(o,_,P).update(S)[B]()}},_t=function(o,_,B){return function(S,P,x,U){return n["cshake"+o].update(S,P,x,U)[B]()}},Gt=function(o,_,B){return function(S,P,x,U){return n["kmac"+o].update(S,P,x,U)[B]()}},Kt=function(o,_,B,S){for(var P=0;P<qt.length;++P){var x=qt[P];o[x]=_(B,S,x)}return o},jt=function(o,_){var B=Rt(o,_,"hex");return B.create=function(){return new f(o,_,o)},B.update=function(S){return B.create().update(S)},Kt(B,Rt,o,_)},st=function(o,_){var B=et(o,_,"hex");return B.create=function(S){return new f(o,_,S)},B.update=function(S,P){return B.create(P).update(S)},Kt(B,et,o,_)},Wt=function(o,_){var B=Tt[o],S=_t(o,_,"hex");return S.create=function(P,x,U){return!x&&!U?n["shake"+o].create(P):new f(o,_,P).bytepad([x,U],B)},S.update=function(P,x,U,D){return S.create(x,U,D).update(P)},Kt(S,_t,o,_)},m=function(o,_){var B=Tt[o],S=Gt(o,_,"hex");return S.create=function(P,x,U){return new H(o,_,x).bytepad(["KMAC",U],B).bytepad([P],B)},S.update=function(P,x,U,D){return S.create(P,U,D).update(x)},Kt(S,Gt,o,_)},t=[{name:"keccak",padding:V,bits:kt,createMethod:jt},{name:"sha3",padding:Nt,bits:kt,createMethod:jt},{name:"shake",padding:X,bits:Ct,createMethod:st},{name:"cshake",padding:Ot,bits:Ct,createMethod:Wt},{name:"kmac",padding:Ot,bits:Ct,createMethod:m}],n={},s=[],c=0;c<t.length;++c)for(var d=t[c],g=d.bits,E=0;E<g.length;++E){var l=d.name+"_"+g[E];if(s.push(l),n[l]=d.createMethod(g[E],d.padding),d.name!=="sha3"){var i=d.name+g[E];s.push(i),n[i]=n[l]}}function f(o,_,B){this.blocks=[],this.s=[],this.padding=_,this.outputBits=B,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(o<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=B>>5,this.extraBytes=(B&31)>>3;for(var S=0;S<50;++S)this.s[S]=0}f.prototype.update=function(o){if(this.finalized)throw new Error(I);var _,B=typeof o;if(B!=="string"){if(B==="object"){if(o===null)throw new Error(A);if(J&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!J||!ArrayBuffer.isView(o)))throw new Error(A)}else throw new Error(A);_=!0}for(var S=this.blocks,P=this.byteCount,x=o.length,U=this.blockCount,D=0,z=this.s,k,nt;D<x;){if(this.reset)for(this.reset=!1,S[0]=this.block,k=1;k<U+1;++k)S[k]=0;if(_)for(k=this.start;D<x&&k<P;++D)S[k>>2]|=o[D]<<rt[k++&3];else for(k=this.start;D<x&&k<P;++D)nt=o.charCodeAt(D),nt<128?S[k>>2]|=nt<<rt[k++&3]:nt<2048?(S[k>>2]|=(192|nt>>6)<<rt[k++&3],S[k>>2]|=(128|nt&63)<<rt[k++&3]):nt<55296||nt>=57344?(S[k>>2]|=(224|nt>>12)<<rt[k++&3],S[k>>2]|=(128|nt>>6&63)<<rt[k++&3],S[k>>2]|=(128|nt&63)<<rt[k++&3]):(nt=65536+((nt&1023)<<10|o.charCodeAt(++D)&1023),S[k>>2]|=(240|nt>>18)<<rt[k++&3],S[k>>2]|=(128|nt>>12&63)<<rt[k++&3],S[k>>2]|=(128|nt>>6&63)<<rt[k++&3],S[k>>2]|=(128|nt&63)<<rt[k++&3]);if(this.lastByteIndex=k,k>=P){for(this.start=k-P,this.block=S[U],k=0;k<U;++k)z[k]^=S[k];F(z),this.reset=!0}else this.start=k}return this},f.prototype.encode=function(o,_){var B=o&255,S=1,P=[B];for(o=o>>8,B=o&255;B>0;)P.unshift(B),o=o>>8,B=o&255,++S;return _?P.push(S):P.unshift(S),this.update(P),P.length},f.prototype.encodeString=function(o){var _,B=typeof o;if(B!=="string"){if(B==="object"){if(o===null)throw new Error(A);if(J&&o.constructor===ArrayBuffer)o=new Uint8Array(o);else if(!Array.isArray(o)&&(!J||!ArrayBuffer.isView(o)))throw new Error(A)}else throw new Error(A);_=!0}var S=0,P=o.length;if(_)S=P;else for(var x=0;x<o.length;
13++x){var U=o.charCodeAt(x);U<128?S+=1:U<2048?S+=2:U<55296||U>=57344?S+=3:(U=65536+((U&1023)<<10|o.charCodeAt(++x)&1023),S+=4)}return S+=this.encode(S*8),this.update(o),S},f.prototype.bytepad=function(o,_){for(var B=this.encode(_),S=0;S<o.length;++S)B+=this.encodeString(o[S]);var P=_-B%_,x=[];return x.length=P,this.update(x),this},f.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var o=this.blocks,_=this.lastByteIndex,B=this.blockCount,S=this.s;if(o[_>>2]|=this.padding[_&3],this.lastByteIndex===this.byteCount)for(o[0]=o[B],_=1;_<B+1;++_)o[_]=0;for(o[B-1]|=2147483648,_=0;_<B;++_)S[_]^=o[_];F(S)}},f.prototype.toString=f.prototype.hex=function(){this.finalize();for(var o=this.blockCount,_=this.s,B=this.outputBlocks,S=this.extraBytes,P=0,x=0,U="",D;x<B;){for(P=0;P<o&&x<B;++P,++x)D=_[P],U+=G[D>>4&15]+G[D&15]+G[D>>12&15]+G[D>>8&15]+G[D>>20&15]+G[D>>16&15]+G[D>>28&15]+G[D>>24&15];x%o===0&&(F(_),P=0)}return S&&(D=_[P],U+=G[D>>4&15]+G[D&15],S>1&&(U+=G[D>>12&15]+G[D>>8&15]),S>2&&(U+=G[D>>20&15]+G[D>>16&15])),U},f.prototype.arrayBuffer=function(){this.finalize();var o=this.blockCount,_=this.s,B=this.outputBlocks,S=this.extraBytes,P=0,x=0,U=this.outputBits>>3,D;S?D=new ArrayBuffer(B+1<<2):D=new ArrayBuffer(U);for(var z=new Uint32Array(D);x<B;){for(P=0;P<o&&x<B;++P,++x)z[x]=_[P];x%o===0&&F(_)}return S&&(z[P]=_[P],D=D.slice(0,U)),D},f.prototype.buffer=f.prototype.arrayBuffer,f.prototype.digest=f.prototype.array=function(){this.finalize();for(var o=this.blockCount,_=this.s,B=this.outputBlocks,S=this.extraBytes,P=0,x=0,U=[],D,z;x<B;){for(P=0;P<o&&x<B;++P,++x)D=x<<2,z=_[P],U[D]=z&255,U[D+1]=z>>8&255,U[D+2]=z>>16&255,U[D+3]=z>>24&255;x%o===0&&F(_)}return S&&(D=x<<2,z=_[P],U[D]=z&255,S>1&&(U[D+1]=z>>8&255),S>2&&(U[D+2]=z>>16&255)),U};function H(o,_,B){f.call(this,o,_,B)}H.prototype=new f,H.prototype.finalize=function(){return this.encode(this.outputBits,!0),f.prototype.finalize.call(this)};var F=function(o){var _,B,S,P,x,U,D,z,k,nt,Q,ot,Yt,it,Y,Lt,tt,at,zt,ht,a,r,e,u,y,M,b,K,q,$,j,L,ut,ar,lt,ft,hr,ct,pt,sr,dt,mt,ur,vt,yt,lr,gt,wt,fr,Mt,Et,cr,It,bt,pr,At,Bt,Qt,tr,rr,er,ir,nr;for(S=0;S<48;S+=2)P=o[0]^o[10]^o[20]^o[30]^o[40],x=o[1]^o[11]^o[21]^o[31]^o[41],U=o[2]^o[12]^o[22]^o[32]^o[42],D=o[3]^o[13]^o[23]^o[33]^o[43],z=o[4]^o[14]^o[24]^o[34]^o[44],k=o[5]^o[15]^o[25]^o[35]^o[45],nt=o[6]^o[16]^o[26]^o[36]^o[46],Q=o[7]^o[17]^o[27]^o[37]^o[47],ot=o[8]^o[18]^o[28]^o[38]^o[48],Yt=o[9]^o[19]^o[29]^o[39]^o[49],_=ot^(U<<1|D>>>31),B=Yt^(D<<1|U>>>31),o[0]^=_,o[1]^=B,o[10]^=_,o[11]^=B,o[20]^=_,o[21]^=B,o[30]^=_,o[31]^=B,o[40]^=_,o[41]^=B,_=P^(z<<1|k>>>31),B=x^(k<<1|z>>>31),o[2]^=_,o[3]^=B,o[12]^=_,o[13]^=B,o[22]^=_,o[23]^=B,o[32]^=_,o[33]^=B,o[42]^=_,o[43]^=B,_=U^(nt<<1|Q>>>31),B=D^(Q<<1|nt>>>31),o[4]^=_,o[5]^=B,o[14]^=_,o[15]^=B,o[24]^=_,o[25]^=B,o[34]^=_,o[35]^=B,o[44]^=_,o[45]^=B,_=z^(ot<<1|Yt>>>31),B=k^(Yt<<1|ot>>>31),o[6]^=_,o[7]^=B,o[16]^=_,o[17]^=B,o[26]^=_,o[27]^=B,o[36]^=_,o[37]^=B,o[46]^=_,o[47]^=B,_=nt^(P<<1|x>>>31),B=Q^(x<<1|P>>>31),o[8]^=_,o[9]^=B,o[18]^=_,o[19]^=B,o[28]^=_,o[29]^=B,o[38]^=_,o[39]^=B,o[48]^=_,o[49]^=B,it=o[0],Y=o[1],lr=o[11]<<4|o[10]>>>28,gt=o[10]<<4|o[11]>>>28,K=o[20]<<3|o[21]>>>29,q=o[21]<<3|o[20]>>>29,rr=o[31]<<9|o[30]>>>23,er=o[30]<<9|o[31]>>>23,mt=o[40]<<18|o[41]>>>14,ur=o[41]<<18|o[40]>>>14,ar=o[2]<<1|o[3]>>>31,lt=o[3]<<1|o[2]>>>31,Lt=o[13]<<12|o[12]>>>20,tt=o[12]<<12|o[13]>>>20,wt=o[22]<<10|o[23]>>>22,fr=o[23]<<10|o[22]>>>22,$=o[33]<<13|o[32]>>>19,j=o[32]<<13|o[33]>>>19,ir=o[42]<<2|o[43]>>>30,nr=o[43]<<2|o[42]>>>30,bt=o[5]<<30|o[4]>>>2,pr=o[4]<<30|o[5]>>>2,ft=o[14]<<6|o[15]>>>26,hr=o[15]<<6|o[14]>>>26,at=o[25]<<11|o[24]>>>21,zt=o[24]<<11|o[25]>>>21,Mt=o[34]<<15|o[35]>>>17,Et=o[35]<<15|o[34]>>>17,L=o[45]<<29|o[44]>>>3,ut=o[44]<<29|o[45]>>>3,u=o[6]<<28|o[7]>>>4,y=o[7]<<28|o[6]>>>4,At=o[17]<<23|o[16]>>>9,Bt=o[16]<<23|o[17]>>>9,ct=o[26]<<25|o[27]>>>7,pt=o[27]<<25|o[26]>>>7,ht=o[36]<<21|o[37]>>>11,a=o[37]<<21|o[36]>>>11,cr=o[47]<<24|o[46]>>>8,It=o[46]<<24|o[47]>>>8,vt=o[8]<<27|o[9]>>>5,yt=o[9]<<27|o[8]>>>5,M=o[18]<<20|o[19]>>>12,b=o[19]<<20|o[18]>>>12,Qt=o[29]<<7|o[28]>>>25,tr=o[28]<<7|o[29]>>>25,sr=o[38]<<8|o[39]>>>24,dt=o[39]<<8|o[38]>>>24,r=o[48]<<14|o[49]>>>18,e=o[49]<<14|o[48]>>>18,o[0]=it^~Lt&at,o[1]=Y^~tt&zt,o[10]=u^~M&K,o[11]=y^~b&q,o[20]=ar^~ft&ct,o[21]=lt^~hr&pt,o[30]=vt^~lr&wt,o[31]=yt^~gt&fr,o[40]=bt^~At&Qt,o[41]=pr^~Bt&tr,o[2]=Lt^~at&ht,o[3]=tt^~zt&a,o[12]=M^~K&$,o[13]=b^~q&j,o[22]=ft^~ct&sr,o[23]=hr^~pt&dt,o[32]=lr^~wt&Mt,o[33]=gt^~fr&Et,o[42]=At^~Qt&rr,o[43]=Bt^~tr&er,o[4]=at^~ht&r,o[5]=zt^~a&e,o[14]=K^~$&L,o[15]=q^~j&ut,o[24]=ct^~sr&mt,o[25]=pt^~dt&ur,o[34]=wt^~Mt&cr,o[35]=fr^~Et&It,o[44]=Qt^~rr&ir,o[45]=tr^~er&nr,o[6]=ht^~r&it,o[7]=a^~e&Y,o[16]=$^~L&u,o[17]=j^~ut&y,o[26]=sr^~mt&ar,o[27]=dt^~ur<,o[36]=Mt^~cr&vt,o[37]=Et^~It&yt,o[46]=rr^~ir&bt,o[47]=er^~nr&pr,o[8]=r^~it&Lt,o[9]=e^~Y&tt,o[18]=L^~u&M,o[19]=ut^~y&b,o[28]=mt^~ar&ft,o[29]=ur^~lt&hr,o[38]=cr^~vt&lr,o[39]=It^~yt>,o[48]=ir^~bt&At,o[49]=nr^~pr&Bt,o[0]^=Ft[S],o[1]^=Ft[S+1]};if(O)h.exports=n;else for(c=0;c<s.length;++c)p[s[c]]=n[s[c]]})()})(xe);var ci=xe.exports;const pi=oe(ci);function di(h){return"0x"+pi.keccak_256(Te(h))}const mi="address/5.7.0",wr=new St(mi);function Ee(h){Re(h,20)||wr.throwArgumentError("invalid address","address",h),h=h.toLowerCase();const v=h.substring(2).split(""),A=new Uint8Array(40);for(let R=0;R<40;
13R++)A[R]=v[R].charCodeAt(0);const I=Te(di(A));for(let R=0;R<40;R+=2)I[R>>1]>>4>=8&&(v[R]=v[R].toUpperCase()),(I[R>>1]&15)>=8&&(v[R+1]=v[R+1].toUpperCase());return"0x"+v.join("")}const vi=9007199254740991;function yi(h){return Math.log10?Math.log10(h):Math.log(h)/Math.LN10}const fe={};for(let h=0;h<10;h++)fe[String(h)]=String(h);for(let h=0;h<26;h++)fe[String.fromCharCode(65+h)]=String(10+h);const Ie=Math.floor(yi(vi));function gi(h){h=h.toUpperCase(),h=h.substring(4)+h.substring(0,2)+"00";let v=h.split("").map(I=>fe[I]).join("");for(;v.length>=Ie;){let I=v.substring(0,Ie);v=parseInt(I,10)%97+v.substring(I.length)}let A=String(98-parseInt(v,10)%97);for(;A.length<2;)A="0"+A;return A}function wi(h){let v=null;if(typeof h!="string"&&wr.throwArgumentError("invalid address","address",h),h.match(/^(0x)?[0-9a-fA-F]{40}$/))h.substring(0,2)!=="0x"&&(h="0x"+h),v=Ee(h),h.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&v!==h&&wr.throwArgumentError("bad address checksum","address",h);else if(h.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(h.substring(2,4)!==gi(h)&&wr.throwArgumentError("bad icap checksum","address",h),v=fi(h.substring(4));v.length<40;)v="0"+v;v=Ee("0x"+v)}else wr.throwArgumentError("invalid address","address",h);return v}function gr(h){try{return wi(h),!0}catch{}return!1}var ie={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(h,v){var A=se,I=A.Buffer;function R(T,w){for(var O in T)w[O]=T[O]}I.from&&I.alloc&&I.allocUnsafe&&I.allocUnsafeSlow?h.exports=A:(R(A,v),v.Buffer=p);function p(T,w,O){return I(T,w,O)}p.prototype=Object.create(I.prototype),R(I,p),p.from=function(T,w,O){if(typeof T=="number")throw new TypeError("Argument must not be a number");return I(T,w,O)},p.alloc=function(T,w,O){if(typeof T!="number")throw new TypeError("Argument must be a number");var J=I(T);return w!==void 0?typeof O=="string"?J.fill(w,O):J.fill(w):J.fill(0),J},p.allocUnsafe=function(T){if(typeof T!="number")throw new TypeError("Argument must be a number");return I(T)},p.allocUnsafeSlow=function(T){if(typeof T!="number")throw new TypeError("Argument must be a number");return A.SlowBuffer(T)}})(ie,ie.exports);var Mi=ie.exports,_r=Mi.Buffer;function Ei(h){if(h.length>=255)throw new TypeError("Alphabet too long");for(var v=new Uint8Array(256),A=0;A<v.length;A++)v[A]=255;for(var I=0;I<h.length;I++){var R=h.charAt(I),p=R.charCodeAt(0);if(v[p]!==255)throw new TypeError(R+" is ambiguous");v[p]=I}var T=h.length,w=h.charAt(0),O=Math.log(T)/Math.log(256),J=Math.log(256)/Math.log(T);function G(V){if((Array.isArray(V)||V instanceof Uint8Array)&&(V=_r.from(V)),!_r.isBuffer(V))throw new TypeError("Expected Buffer");if(V.length===0)return"";for(var Nt=0,rt=0,Ft=0,kt=V.length;Ft!==kt&&V[Ft]===0;)Ft++,Nt++;for(var Ct=(kt-Ft)*J+1>>>0,qt=new Uint8Array(Ct);Ft!==kt;){for(var Tt=V[Ft],Rt=0,et=Ct-1;(Tt!==0||Rt<rt)&&et!==-1;et--,Rt++)Tt+=256*qt[et]>>>0,qt[et]=Tt%T>>>0,Tt=Tt/T>>>0;if(Tt!==0)throw new Error("Non-zero carry");rt=Rt,Ft++}for(var _t=Ct-rt;_t!==Ct&&qt[_t]===0;)_t++;for(var Gt=w.repeat(Nt);_t<Ct;++_t)Gt+=h.charAt(qt[_t]);return Gt}function X(V){if(typeof V!="string")throw new TypeError("Expected String");if(V.length===0)return _r.alloc(0);for(var Nt=0,rt=0,Ft=0;V[Nt]===w;)rt++,Nt++;for(var kt=(V.length-Nt)*O+1>>>0,Ct=new Uint8Array(kt);Nt<V.length;){var qt=V.charCodeAt(Nt);if(qt>255)return;var Tt=v[qt];if(Tt===255)return;for(var Rt=0,et=kt-1;(Tt!==0||Rt<Ft)&&et!==-1;et--,Rt++)Tt+=T*Ct[et]>>>0,Ct[et]=Tt%256>>>0,Tt=Tt/256>>>0;if(Tt!==0)throw new Error("Non-zero carry");Ft=Rt,Nt++}for(var _t=kt-Ft;_t!==kt&&Ct[_t]===0;)_t++;var Gt=_r.allocUnsafe(rt+(kt-_t));Gt.fill(0,0,rt);for(var Kt=rt;_t!==kt;)Gt[Kt++]=Ct[_t++];return Gt}function Ot(V){var Nt=X(V);if(Nt)return Nt;throw new Error("Non-base"+T+" character")}return{encode:G,decodeUnsafe:X,decode:Ot}}var Ii=Ei,bi=Ii,Ai="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Bi=bi(Ai);const Ue=oe(Bi),Xt=C().min(2,{message:"Must be 2 or more characters long"}).regex(/^0x[0-9A-Fa-f]*$/,{message:"String must be '0x'-prefixed and followed by valid hex characters"}),Z=yr().transform(h=>`0x${h.toString(16)}`).or(Xt.min(3,{message:"Must be 3 or more characters long (should always have at least one digit - zero is '0x0')."})).refine(h=>h==="0x0"?!0:h[2]!=="0",{message:"Invalid hex quantity: leading zero digits are not allowed."}),mr=Xt.refine(h=>h.length%2===0,{message:"Invalid hex-encoded data: must be even number of digits"});C().transform(h=>{const v=mr.safeParse(h);return v.success?v.data:`0x${se.Buffer.from(h).toString("hex")}`});xt([C(),yr()]).transform((h,v)=>{if(typeof h=="number")return h;const A=h.startsWith("0x")?16:10,I=parseInt(h,A);return Number.isNaN(I)&&v.addIssue({code:ae.custom,message:"Could not parse as LenientInteger"}),I}
13);const ce=h=>mr.refine(v=>v.length===h*2+2,{message:`Invalid byte length. (Expected ${h} bytes)`}),$t=Xt.refine(gr,{message:"Invalid Ethereum address."}),Pt=ce(32),ke=ce(256),_i=W({blockHash:Pt,address:$t,logIndex:Z,data:mr,removed:Br().optional(),topics:Ht(Pt),blockNumber:Z.nullish().default(null),transactionIndex:Z,transactionHash:Pt});W({transactionHash:Pt,transactionIndex:Z,blockHash:Pt,blockNumber:Z,from:$t,to:$t.nullish().default(null).optional(),root:Pt.optional(),status:N("0x1").or(N("0x0")).optional(),cumulativeGasUsed:Z,gasUsed:Z,contractAddress:$t.nullish().default(null),logs:Ht(_i),logsBloom:ke,effectiveGasPrice:Z.optional(),type:Z.optional()});W({from:$t.optional(),chainId:Z.optional(),to:$t.optional(),gas:Z.optional(),gasPrice:Z.optional(),value:Z.optional(),data:mr.optional(),nonce:Z.optional()});const or=W({name:C(),type:C()}),pe=Ht(or),Si=/^0x[0-9a-fA-F]+$/;function Ni(h){if(typeof h!="string")throw new Error("EIP-712 address must be a string");if(!Si.test(h))throw new Error("EIP-712 address must be a non-empty 0x-prefixed hex string");const v=h.slice(2);if(v.length>40)throw new Error("EIP-712 address exceeds 20 bytes");return`0x${v.padStart(40,"0")}`}const be=/\[\d*\]$/,Ti=/(?:\[\d*\])+$/,Ri=/^(u?)int(\d{1,3})$/,xi=/^u?int\d*$/,Pe=/^(?:0x(?:[\da-fA-F]{2})+|\d+)$/,Ui=/^(?:-?\d+|0x(?:[\da-fA-F]{2})+)$/,Ce=xt([yr(),C().regex(Pe)]).transform(h=>typeof h=="number"?h:Number(h)).refine(h=>Number.isSafeInteger(h)&&h>=0,{message:"EIP-712 chainId must be a safe unsigned integer"}),ki=32;function De(h){const v=Ri.exec(h);if(!v)return null;const A=Number(v[2]);return A>=8&&A<=256&&A%8===0?v:null}function Rr(h,v,A,I){if(I>ki)throw new Error("EIP-712 typed data nesting exceeds maximum depth");if(be.test(v)){if(!Array.isArray(h))throw new Error(`Expected array for EIP-712 type "${v}"`);const w=v.replace(be,"");return h.map(O=>Rr(O,w,A,I+1))}if(v==="address")return Ni(h);const R=De(v);if(R){const w=R[1]==="u",O=typeof h=="number"&&Number.isSafeInteger(h)&&(!w||h>=0),J=typeof h=="string"&&(w?Pe:Ui).test(h);if(!O&&!J)throw new Error(`EIP-712 ${v} value must be an integer`);const G=BigInt(R[2]),X=BigInt(h),Ot=w?0n:-(1n<<G-1n),V=w?(1n<<G)-1n:(1n<<G-1n)-1n;if(X<Ot||X>V)throw new Error(`EIP-712 ${v} value is out of range`);return h}const p=A[v];if(!p)return h;if(typeof h!="object"||h===null||Array.isArray(h))throw new Error(`Expected object for EIP-712 type "${v}"`);const T={...h};for(const w of p)w.name in T&&(T[w.name]=Rr(T[w.name],w.type,A,I+1));return T}function Pi(h){for(const v of Object.values(h.types))for(const A of v){const I=A.type.replace(Ti,"");if(xi.test(I)&&!De(I))throw new Error(`Unsupported EIP-712 integer type "${I}
13"`)}return{...h,domain:Rr(h.domain,"EIP712Domain",h.types,0),message:Rr(h.message,h.primaryType,h.types,0)}}const Oe=(h,v)=>{try{return Pi(h)}catch(A){return v.addIssue({code:ae.custom,message:`EIP-712 normalization failed: ${A.message}`,fatal:!0}),_e}},Ci=W({chainId:Ce.optional(),name:C(),verifyingContract:$t,version:C().optional()});W({type:C(),name:C(),value:C()}).array();W({domain:Ci,message:Tr(he()),primaryType:C(),types:W({EIP712Domain:pe}).and(Tr(or.array()))}).transform(Oe);const Fe=W({chainId:Ce.optional(),name:C().optional(),verifyingContract:$t.optional(),version:C().optional(),salt:C().optional()});W({domain:Fe,message:Tr(he()),primaryType:C(),types:W({EIP712Domain:pe}).and(Tr(or.array()))}).transform(Oe);const Di=W({name:N("owner"),type:N("address")}),Oi=W({name:N("spender"),type:N("address")}),Fi=W({name:N("value"),type:N("uint256")}),Li=W({name:N("value"),type:N("uint256")}),Hi=W({name:N("deadline"),type:N("uint256")}),$i=Ae([or,or,or,or,or]).refine(h=>{const v=[Di,Oi,Fi,Li,Hi],A=new Set(["owner","spender","value","nonce","deadline"]);for(const I of h)for(const R of v){const p=R.safeParse(I);p.success&&A.delete(p.data.name)}return A.size===0}).transform(()=>[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]),qi=N("Permit"),zi=W({EIP712Domain:pe,Permit:$i}),Gi=W({owner:$t,spender:$t,value:Z,nonce:Z,deadline:Z});W({domain:Fe,primaryType:qi,types:zi,message:Gi});var ne;(function(h){h.legacy="0x0",h.eip2930="0x1",h.eip1559="0x2"})(ne||(ne={}));const Zi=Ae([$t,Ht(Pt)]);W({chainId:Z.optional(),data:mr.optional(),from:$t,gas:Z.optional(),gasPrice:Z.optional(),nonce:Z.optional(),to:$t.optional(),value:Z.optional(),type:Be(ne).optional(),accessList:Ht(Zi).optional(),maxPriorityFeePerGas:Z.optional(),maxFeePerGas:Z.optional(),gasLimit:Z.optional()}).transform(h=>(h.gas==null&&h.gasLimit!=null&&(h.gas=h.gasLimit,delete h.gasLimit),h)).brand("EthUnsignedTransactionObject");const Ki=W({blockHash:Pt.nullish(),blockNumber:Z.nullish(),from:$t,gas:Z,gasPrice:Z.nullish(),hash:Pt,input:mr,nonce:Z,to:$t.nullish().default(null),transactionIndex:Z.nullish(),value:Z,v:Z,r:Z,s:Z});W({address:$t.optional(),balance:Z,codeHash:Pt,nonce:Z,storageHash:Pt,accountProof:Ht(Xt),storageProof:Ht(W({key:Z,value:Z,proof:Ht(Xt)}))});N("latest").or(N("earliest")).or(N("pending")).or(N("finalized"));W({number:Z.nullish().default(null),hash:Pt.nullish().default(null),parentHash:Pt,nonce:ce(8).nullish().default(null),sha3Uncles:Pt,logsBloom:ke.nullish().default(null),transactionsRoot:Pt,stateRoot:Pt,receiptsRoot:Pt,miner:$t.nullish().default(null),mixHash:Pt.optional(),difficulty:Z,totalDifficulty:Z.nullish().default(null),extraData:mr,size:Z,gasLimit:Z,gasUsed:Z,timestamp:Z,transactions:Ht(Ki).or(Ht(Pt)),uncles:Ht(Pt),baseFeePerGas:Z.optional()});Ut(["CONTINUE_WITH_PHANTOM","CONTINUE_WITH_METAMASK","ALWAYS_USE_PHANTOM","ALWAYS_USE_METAMASK"]);const Mo=C().refine(h=>{try{return Ue.decode(h).byteLength===32&&h.match(/^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$/)}catch{return!1}},{message:"String must be a valid solana public key of 32 bytes"}),Wi=xt([N("bip122_p2tr"),N("bip122_p2wpkh"),N("bip122_p2sh"),N("bip122_p2pkh")]),Vi=W({address:C(),publicKey:C(),addressType:Wi});Vi.and(W({purpose:xt([N("payment"),N("ordinals")])}));const Ji=C().refine(h=>Yi(h),{message:"Invalid Sui address format"}),Xi=/^0x[a-fA-F0-9]{64}$/;function Yi(h){return h?Xi.test(h):!1}W({address:Ji,publicKey:C()});const Eo=Xt.refine(gr,{message:"Invalid Hypercore address."}),Io=Xt.refine(gr,{message:"Invalid Hyperevm address."});Xt.refine(gr,{message:"Invalid BNB Chain address."});Xt.refine(gr,{message:"Invalid Arc address."});Xt.refine(gr,{message:"Invalid Robinhood address."});C().refine(h=>{try{return Ue.decode(h).byteLength===64}catch{return!1}},{message:"String must be a valid solana address of 64 bytes"});const Lr=C().regex(/^[123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ]*$/);W({url:C().url(),icon:C().nullish().default(null),mwaIdentityVerified:Br().optional()});const ji=Ht(he()),Qi=Ze().transform((h,v)=>typeof h=="object"&&h!==null?h:(v.addIssue({code:ae.custom,message:"Not an object"}),_e)),de=xt([Se(),C(),yr(),Br(),ji,Qi]);N("2.0");const Le=xt([C(),yr(),Se()]),tn=W({jsonrpc:N("2.0"),id:Le,method:C(),params:de.optional()});Ht(tn);W({jsonrpc:N("2.0"),method:C(),params:de});var Dt;(function(h){h[h.ParseError=-32700]="ParseError",h[h.InternalError=-32603]="InternalError",h[h.InvalidParams=-32602]="InvalidParams",h[h.MethodNotFound=-32601]="MethodNotFound",h[h.InvalidRequest=-32600]="InvalidRequest",h[h.RequestCancelled=-32800]="RequestCancelled",h[h.TransactionRejected=-32003]="TransactionRejected",h[h.ResourceUnavailable=-32002]="ResourceUnavailable",h[h.InvalidInput
13=-32e3]="InvalidInput",h[h.UserRejectedRequest=4001]="UserRejectedRequest",h[h.Unauthorized=4100]="Unauthorized",h[h.UnsupportedMethod=4200]="UnsupportedMethod",h[h.RateLimited=4290]="RateLimited",h[h.Disconnected=4900]="Disconnected",h[h.ChainDisconnected=4901]="ChainDisconnected",h[h.ExecutionReverted=3]="ExecutionReverted"})(Dt||(Dt={}));Dt.UserRejectedRequest+"",Dt.InternalError+"",Dt.MethodNotFound+"",Dt.InvalidInput+"",Dt.Unauthorized+"",Dt.UnsupportedMethod+"",Dt.RateLimited+"",Dt.Disconnected+"",Dt.ChainDisconnected+"",Dt.TransactionRejected+"",Dt.ResourceUnavailable+"",Dt.ParseError+"",Dt.InvalidParams+"",Dt.InvalidRequest+"",Dt.ExecutionReverted+"",Dt.RequestCancelled+"";const rn=W({code:Be(Dt).or(yr()),message:C()}),en=W({error:rn}).or(W({result:de})),nn=W({jsonrpc:N("2.0"),id:Le}).and(en);Ht(nn);W({domain:C().optional(),address:C().optional(),statement:C().optional(),uri:C().optional(),version:C().optional(),chainId:C().optional(),nonce:C().optional(),issuedAt:C().optional(),expirationTime:C().optional(),notBefore:C().optional(),requestId:C().optional(),resources:Ht(C()).optional()});const on=N("mainnet"),an=N("testnet"),hn=N("devnet"),sn=N("localnet");Ut([on.value,an.value,hn.value,sn.value]);const un=N("1"),ln=N("11155111");Ut([un.value,ln.value]);const fn=N("0x1"),cn=N("0xaa36a7");Ut([fn.value,cn.value]);const pn=N("137"),dn=N("80002");Ut([pn.value,dn.value]);const mn=N("0x89"),vn=N("0x13882");Ut([mn.value,vn.value]);const yn=N("8453"),gn=N("84532");Ut([yn.value,gn.value]);const wn=N("0x2105"),Mn=N("0x14a34");Ut([wn.value,Mn.value]);const En=N("143"),In=N("10143"),bn=N("41454");Ut([En.value,In.value,bn.value]);const An=N("0x8f"),Bn=N("0x279f"),_n=N("0xa1ee");Ut([An.value,Bn.value,_n.value]);const Sn=N("999"),Nn=N("998");Ut([Sn.value,Nn.value]);const Tn=N("0x3e7"),Rn=N("0x3e6");Ut([Tn.value,Rn.value]);const xn=N("56"),Un=N("97");Ut([xn.value,Un.value]);const kn=N("0x38"),Pn=N("0x61");Ut([kn.value,Pn.value]);const Cn=N("5042"),Dn=N("5042002");Ut([Cn.value,Dn.value]);const On=N("0x13b2"),Fn=N("0x4cef52");Ut([On.value,Fn.value]);const Ln=N("4663"),Hn=N("46630");Ut([Ln.value,Hn.value]);const $n=N("0x1237"),qn=N("0xb626");Ut([$n.value,qn.value]);const zn=N("mainnet"),Gn=N("testnet");Ut([zn.value,Gn.value]);const Zn=N("sui:mainnet"),Kn=N("sui:testnet");Ut([Zn.value,Kn.value]);const Wn=N("mainnet-beta"),Vn=N("testnet"),Jn=N("devnet"),Xn=Lr,He=Lr,Yn=Lr,jn=Lr;C().url();const Qn=C().url();Ut([Wn.value,Vn.value,Jn.value]);W({dapp_encryption_public_key:Xn,nonce:He,redirect_link:Qn,payload:Yn});W({nonce:He,data:jn});const to=W({name:C(),label:C().optional(),required:Br().optional()}),ro=W({message:C()}),eo=W({href:C(),label:C(),parameters:Ht(to).optional()}),io=W({label:C(),url:C()}),no=W({successMessage:C().optional(),failureMessage:C().optional(),pendingMessage:C().optional(),onSuccessAction:io.optional()}),bo=W({domain:C(),name:C(),category:C(),actionUrl:C(),icon:C(),title:C(),description:C(),label:C(),disabled:Br().optional(),links:W({actions:Ht(eo)}).optional(),error:ro.optional(),postAction:no.optional()});var dr;(function(h){h.Mainnet="solana:101",h.Testnet="solana:102",h.Devnet="solana:103",h.Localnet="solana:localnet"})(dr||(dr={}));
13const oo=xt([N(dr.Mainnet),N(dr.Testnet),N(dr.Devnet),N(dr.Localnet)]);var Mr;(function(h){h.Mainnet="eip155:1",h.Sepolia="eip155:11155111"})(Mr||(Mr={}));const ao=xt([N(Mr.Mainnet),N(Mr.Sepolia)]);var Er;(function(h){h.Mainnet="eip155:137",h.Amoy="eip155:80002"})(Er||(Er={}));const ho=xt([N(Er.Mainnet),N(Er.Amoy)]);var Ir;(function(h){h.Mainnet="eip155:8453",h.Sepolia="eip155:84532"})(Ir||(Ir={}));const so=xt([N(Ir.Mainnet),N(Ir.Sepolia)]);var xr;(function(h){h.Mainnet="eip155:42161",h.Sepolia="eip155:421614"})(xr||(xr={}));const uo=xt([N(xr.Mainnet),N(xr.Sepolia)]);var Ur;(function(h){h.Mainnet="eip155:143",h.Testnet="eip155:10143"})(Ur||(Ur={}));const lo=xt([N(Ur.Mainnet),N(Ur.Testnet)]);var br;(function(h){h.Mainnet="bip122:000000000019d6689c085ae165831e93",h.Testnet="bip122:000000000933ea01ad0ee984209779ba"})(br||(br={}));const fo=xt([N(br.Mainnet),N(br.Testnet)]);var kr;(function(h){h.Mainnet="sui:mainnet",h.Testnet="sui:testnet"})(kr||(kr={}));const co=xt([N(kr.Mainnet),N(kr.Testnet)]);var Pr;(function(h){h.Mainnet="hypercore:mainnet",h.Testnet="hypercore:testnet"})(Pr||(Pr={}));const $e=xt([N(Pr.Mainnet),N(Pr.Testnet)]);var Cr;(function(h){h.Mainnet="eip155:999",h.Testnet="eip155:998"})(Cr||(Cr={}));const qe=xt([N(Cr.Mainnet),N(Cr.Testnet)]);var Dr;(function(h){h.Mainnet="eip155:56",h.Testnet="eip155:97"})(Dr||(Dr={}));const po=xt([N(Dr.Mainnet),N(Dr.Testnet)]);var Or;(function(h){h.Mainnet="eip155:5042",h.Testnet="eip155:5042002"})(Or||(Or={}));const mo=xt([N(Or.Mainnet),N(Or.Testnet)]);var Ar;(function(h){h.Mainnet="eip155:4663",h.Testnet="eip155:46630"})(Ar||(Ar={}));const vo=xt([N(Ar.Mainnet),N(Ar.Testnet)]),yo=xt([ao,ho,so,lo,uo,$e,qe,po,mo,vo]),Ao=xt([fo,yo,oo,co,$e,qe]),Bo={Bitcoin:br,Ethereum:Mr,Polygon:Er,Solana:dr,Base:Ir,Robinhood:Ar};export{xr as A,Ir as B,$t as E,bo as F,Eo as H,Ur as M,Ao as N,Er as P,Ar as R,dr as S,oo as Z,Mo as a,se as b,yo as c,fo as d,Ji as e,co as f,$e as g,Io as h,qe as i,Or as j,Dr as k,si as l,br as m,Mr as n,Pr as o,Cr as p,kr as q,hi as r,Mi as s,Bo as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.