@ottocode/openclaw-setu 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,119 @@
1
+ import{s as xX,t as JA,u as L$}from"./chunk-k1btvkaq.mjs";import{$ as b0,$a as rD,$b as LT,A as xY,Aa as hI,Ab as c0,Ac as ZZ,B as GZ,Ba as aC,Bb as z4,Bc as HZ,C as CH,Ca as vI,Cb as E9,Cc as kA,D as SX,Da as iC,Db as iH,Dc as xA,E as d6,Ea as mY,Eb as z$,Ec as EY,F as f9,Fa as kY,Fb as UJ,Fc as YI,G as _1,Ga as fY,Gb as CY,Gc as GI,H as dp,Ha as bA,Hb as uH,Hc as O7,I as aZ,Ia as hA,Ib as F8,Ic as bY,J as sC,Ja as IX,Jb as AH,Jc as R4,K as f3,Ka as lV,Kb as w$,Kc as RI,L as rC,La as TC,Lb as pH,Lc as nX,M as tC,Ma as u3,Mb as v9,Mc as qp,N as LD,Na as F7,Nb as IY,Nc as W$,O as iI,Oa as TX,Ob as cH,P as N7,Pa as DH,Pb as m7,Q as J$,Qa as uD,Qb as aT,R as Up,Ra as aD,Rb as A7,S as P8,Sa as iD,Sb as rT,Sc as j4,T as j2,Ta as cD,Tb as p7,U as XZ,Ua as a3,Ub as aH,V as Z0,Va as M8,Vb as D2,W as s1,Wa as nD,Wb as NY,X as U0,Xa as oD,Xb as VT,Y as D1,Ya as sD,Yb as GJ,Z as O8,Za as QJ,Zb as HT,_ as U6,_a as ZY,_b as DJ,aa as E5,ab as HY,ac as RT,ba as $T,bb as tD,bc as PT,ca as G0,cb as eD,cc as O4,da as l3,db as $H,dc as OT,ea as g0,eb as VH,ec as FT,fa as A5,fb as JH,fc as JT,ga as fV,gb as rV,gc as w0,ha as b6,hb as QH,hc as H$,ia as I0,ib as XH,ic as OY,ja as Q9,jb as YH,jc as S9,ka as a9,kb as GH,kc as E0,la as TI,lb as WH,lc as Z$,ma as hD,mb as tV,mc as I7,na as cI,nb as KH,nc as C7,oa as nI,ob as bI,oc as K0,pa as z7,pb as WY,pc as X9,qa as _X,qb as AI,qc as sH,ra as X2,rb as c3,rc as MA,sa as a2,sb as n3,sc as YJ,ta as eC,tb as w4,tc as BT,ua as mX,ub as o3,uc as SA,va as TD,vb as k9,vc as P7,wa as J0,wb as Hp,wc as VY,xa as EC,xb as fX,xc as NI,ya as i3,yb as Dp,yc as lD,z as TT,za as vC,zb as KY,zc as xD}from"./chunk-2pmp70f4.mjs";import{Yc as hT,hd as $A,kd as VA}from"./chunk-w1g9nypz.mjs";import{ld as CB,md as bB}from"./chunk-gr14hnnm.mjs";import{nd as _3,od as M1,pd as ND,qd as k1}from"./chunk-enz73nmb.mjs";var gz=M1((yz)=>{Object.defineProperty(yz,"__esModule",{value:!0});yz.crypto=void 0;var J5=k1("node:crypto");yz.crypto=J5&&typeof J5==="object"&&"webcrypto"in J5?J5.webcrypto:J5&&typeof J5==="object"&&("randomBytes"in J5)?J5:void 0});var o6=M1((sz)=>{/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(sz,"__esModule",{value:!0});sz.wrapXOFConstructorWithOpts=sz.wrapConstructorWithOpts=sz.wrapConstructor=sz.Hash=sz.nextTick=sz.swap32IfBE=sz.byteSwapIfBE=sz.swap8IfBE=sz.isLE=void 0;sz.isBytes=fz;sz.anumber=MW;sz.abytes=s7;sz.ahash=kd;sz.aexists=Ed;sz.aoutput=vd;sz.u8=hd;sz.u32=xd;sz.clean=dd;sz.createView=yd;sz.rotr=bd;sz.rotl=gd;sz.byteSwap=LW;sz.byteSwap32=uz;sz.bytesToHex=fd;sz.hexToBytes=ud;sz.asyncLoop=id;sz.utf8ToBytes=RW;sz.bytesToUtf8=cd;sz.toBytes=eJ;sz.kdfInputToBytes=nd;sz.concatBytes=od;sz.checkOpts=sd;sz.createHasher=cz;sz.createOptHasher=nz;sz.createXOFer=oz;sz.randomBytes=rd;var o7=gz();function fz($){return $ instanceof Uint8Array||ArrayBuffer.isView($)&&$.constructor.name==="Uint8Array"}function MW($){if(!Number.isSafeInteger($)||$<0)throw Error("positive integer expected, got "+$)}function s7($,...V){if(!fz($))throw Error("Uint8Array expected");if(V.length>0&&!V.includes($.length))throw Error("Uint8Array expected of length "+V+", got length="+$.length)}function kd($){if(typeof $!=="function"||typeof $.create!=="function")throw Error("Hash should be wrapped by utils.createHasher");MW($.outputLen),MW($.blockLen)}function Ed($,V=!0){if($.destroyed)throw Error("Hash instance has been destroyed");if(V&&$.finished)throw Error("Hash#digest() has already been called")}function vd($,V){s7($);let J=V.outputLen;if($.length<J)throw Error("digestInto() expects output buffer of length at least "+J)}function hd($){return new Uint8Array($.buffer,$.byteOffset,$.byteLength)}function xd($){return new Uint32Array($.buffer,$.byteOffset,Math.floor($.byteLength/4))}function dd(...$){for(let V=0;V<$.length;V++)$[V].fill(0)}function yd($){return new DataView($.buffer,$.byteOffset,$.byteLength)}function bd($,V){return $<<32-V|$>>>V}function gd($,V){return $<<V|$>>>32-V>>>0}sz.isLE=(()=>new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68)();function LW($){return $<<24&4278190080|$<<8&16711680|$>>>8&65280|$>>>24&255}sz.swap8IfBE=sz.isLE?($)=>$:($)=>LW($);sz.byteSwapIfBE=sz.swap8IfBE;function uz($){for(let V=0;V<$.length;V++)$[V]=LW($[V]);return $}sz.swap32IfBE=sz.isLE?($)=>$:uz;var az=(()=>typeof Uint8Array.from([]).toHex==="function"&&typeof Uint8Array.fromHex==="function")(),ld=Array.from({length:256},($,V)=>V.toString(16).padStart(2,"0"));function fd($){if(s7($),az)return $.toHex();let V="";for(let J=0;J<$.length;J++)V+=ld[$[J]];return V}var r4={_0:48,_9:57,A:65,F:70,a:97,f:102};function lz($){if($>=r4._0&&$<=r4._9)return $-r4._0;if($>=r4.A&&$<=r4.F)return $-(r4.A-10);if($>=r4.a&&$<=r4.f)return $-(r4.a-10);return}function ud($){if(typeof $!=="string")throw Error("hex string expected, got "+typeof $);if(az)return Uint8Array.fromHex($);let V=$.length,J=V/2;if(V%2)throw Error("hex string expected, got unpadded hex of length "+V);let Q=new Uint8Array(J);for(let X=0,Y=0;X<J;X++,Y+=2){let G=lz($.charCodeAt(Y)),W=lz($.charCodeAt(Y+1));if(G===void 0||W===void 0){let K=$[Y]+$[Y+1];throw Error('hex string expected, got non-hex character "'+K+'" at index '+Y)}Q[X]=G*16+W}return Q}var ad=async()=>{};sz.nextTick=ad;async function id($,V,J){let Q=Date.now();for(let X=0;X<$;X++){J(X);let Y=Date.now()-Q;if(Y>=0&&Y<V)continue;await sz.nextTick(),Q+=Y}}function RW($){if(typeof $!=="string")throw Error("string expected");return new Uint8Array(new TextEncoder().encode($))}function cd($){return new TextDecoder().decode($)}function eJ($){if(typeof $==="string")$=RW($);return s7($),$}function nd($){if(typeof $==="string")$=RW($);return s7($),$}function od(...$){let V=0;for(let Q=0;Q<$.length;Q++){let X=$[Q];s7(X),V+=X.length}let J=new Uint8Array(V);for(let Q=0,X=0;Q<$.length;Q++){let Y=$[Q];J.set(Y,X),X+=Y.length}return J}function sd($,V){if(V!==void 0&&{}.toString.call(V)!=="[object Object]")throw Error("options should be object or undefined");return Object.assign($,V)}class iz{}sz.Hash=iz;function cz($){let V=(Q)=>$().update(eJ(Q)).digest(),J=$();return V.outputLen=J.outputLen,V.blockLen=J.blockLen,V.create=()=>$(),V}function nz($){let V=(Q,X)=>$(X).update(eJ(Q)).digest(),J=$({});return V.outputLen=J.outputLen,V.blockLen=J.blockLen,V.create=(Q)=>$(Q),V}function oz($){let V=(Q,X)=>$(X).update(eJ(Q)).digest(),J=$({});return V.outputLen=J.outputLen,V.blockLen=J.blockLen,V.create=(Q)=>$(Q),V}sz.wrapConstructor=cz;sz.wrapConstructorWithOpts=nz;sz.wrapXOFConstructorWithOpts=oz;function rd($=32){if(o7.crypto&&typeof o7.crypto.getRandomValues==="function")return o7.crypto.getRandomValues(new Uint8Array($));if(o7.crypto&&typeof o7.crypto.randomBytes==="function")return Uint8Array.from(o7.crypto.randomBytes($));throw Error("crypto.getRandomValues must be defined")}});var Xj=M1((Jj)=>{Object.defineProperty(Jj,"__esModule",{value:!0});Jj.SHA512_IV=Jj.SHA384_IV=Jj.SHA224_IV=Jj.SHA256_IV=Jj.HashMD=void 0;Jj.setBigUint64=$j;Jj.Chi=Ay;Jj.Maj=py;var s6=o6();function $j($,V,J,Q){if(typeof $.setBigUint64==="function")return $.setBigUint64(V,J,Q);let X=BigInt(32),Y=BigInt(4294967295),G=Number(J>>X&Y),W=Number(J&Y),K=Q?4:0,D=Q?0:4;$.setUint32(V+K,G,Q),$.setUint32(V+D,W,Q)}function Ay($,V,J){return $&V^~$&J}function py($,V,J){return $&V^$&J^V&J}class Vj extends s6.Hash{constructor($,V,J,Q){super();this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=$,this.outputLen=V,this.padOffset=J,this.isLE=Q,this.buffer=new Uint8Array($),this.view=(0,s6.createView)(this.buffer)}update($){(0,s6.aexists)(this),$=(0,s6.toBytes)($),(0,s6.abytes)($);let{view:V,buffer:J,blockLen:Q}=this,X=$.length;for(let Y=0;Y<X;){let G=Math.min(Q-this.pos,X-Y);if(G===Q){let W=(0,s6.createView)($);for(;Q<=X-Y;Y+=Q)this.process(W,Y);continue}if(J.set($.subarray(Y,Y+G),this.pos),this.pos+=G,Y+=G,this.pos===Q)this.process(V,0),this.pos=0}return this.length+=$.length,this.roundClean(),this}digestInto($){(0,s6.aexists)(this),(0,s6.aoutput)($,this),this.finished=!0;let{buffer:V,view:J,blockLen:Q,isLE:X}=this,{pos:Y}=this;if(V[Y++]=128,(0,s6.clean)(this.buffer.subarray(Y)),this.padOffset>Q-Y)this.process(J,0),Y=0;for(let H=Y;H<Q;H++)V[H]=0;$j(J,Q-8,BigInt(this.length*8),X),this.process(J,0);let G=(0,s6.createView)($),W=this.outputLen;if(W%4)throw Error("_sha2: outputLen should be aligned to 32bit");let K=W/4,D=this.get();if(K>D.length)throw Error("_sha2: outputLen bigger than state");for(let H=0;H<K;H++)G.setUint32(4*H,D[H],X)}digest(){let{buffer:$,outputLen:V}=this;this.digestInto($);let J=$.slice(0,V);return this.destroy(),J}_cloneInto($){$||($=new this.constructor),$.set(...this.get());let{blockLen:V,buffer:J,length:Q,finished:X,destroyed:Y,pos:G}=this;if($.destroyed=Y,$.finished=X,$.length=Q,$.pos=G,Q%V)$.buffer.set(J);return $}clone(){return this._cloneInto()}}Jj.HashMD=Vj;Jj.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);Jj.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);Jj.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]);Jj.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});var BW=M1((_j)=>{Object.defineProperty(_j,"__esModule",{value:!0});_j.toBig=_j.shrSL=_j.shrSH=_j.rotrSL=_j.rotrSH=_j.rotrBL=_j.rotrBH=_j.rotr32L=_j.rotr32H=_j.rotlSL=_j.rotlSH=_j.rotlBL=_j.rotlBH=_j.add5L=_j.add5H=_j.add4L=_j.add4H=_j.add3L=_j.add3H=void 0;_j.add=Lj;_j.fromBig=FW;_j.split=Yj;var $Q=BigInt(4294967295),OW=BigInt(32);function FW($,V=!1){if(V)return{h:Number($&$Q),l:Number($>>OW&$Q)};return{h:Number($>>OW&$Q)|0,l:Number($&$Q)|0}}function Yj($,V=!1){let J=$.length,Q=new Uint32Array(J),X=new Uint32Array(J);for(let Y=0;Y<J;Y++){let{h:G,l:W}=FW($[Y],V);[Q[Y],X[Y]]=[G,W]}return[Q,X]}var Gj=($,V)=>BigInt($>>>0)<<OW|BigInt(V>>>0);_j.toBig=Gj;var Wj=($,V,J)=>$>>>J;_j.shrSH=Wj;var Kj=($,V,J)=>$<<32-J|V>>>J;_j.shrSL=Kj;var qj=($,V,J)=>$>>>J|V<<32-J;_j.rotrSH=qj;var Dj=($,V,J)=>$<<32-J|V>>>J;_j.rotrSL=Dj;var Hj=($,V,J)=>$<<64-J|V>>>J-32;_j.rotrBH=Hj;var Zj=($,V,J)=>$>>>J-32|V<<64-J;_j.rotrBL=Zj;var Uj=($,V)=>V;_j.rotr32H=Uj;var wj=($,V)=>$;_j.rotr32L=wj;var zj=($,V,J)=>$<<J|V>>>32-J;_j.rotlSH=zj;var jj=($,V,J)=>V<<J|$>>>32-J;_j.rotlSL=jj;var Nj=($,V,J)=>V<<J-32|$>>>64-J;_j.rotlBH=Nj;var Mj=($,V,J)=>$<<J-32|V>>>64-J;_j.rotlBL=Mj;function Lj($,V,J,Q){let X=(V>>>0)+(Q>>>0);return{h:$+J+(X/4294967296|0)|0,l:X|0}}var Rj=($,V,J)=>($>>>0)+(V>>>0)+(J>>>0);_j.add3L=Rj;var Pj=($,V,J,Q)=>V+J+Q+($/4294967296|0)|0;_j.add3H=Pj;var Oj=($,V,J,Q)=>($>>>0)+(V>>>0)+(J>>>0)+(Q>>>0);_j.add4L=Oj;var Fj=($,V,J,Q,X)=>V+J+Q+X+($/4294967296|0)|0;_j.add4H=Fj;var Bj=($,V,J,Q,X)=>($>>>0)+(V>>>0)+(J>>>0)+(Q>>>0)+(X>>>0);_j.add5L=Bj;var Sj=($,V,J,Q,X,Y)=>V+J+Q+X+Y+($/4294967296|0)|0;_j.add5H=Sj;var yy={fromBig:FW,split:Yj,toBig:Gj,shrSH:Wj,shrSL:Kj,rotrSH:qj,rotrSL:Dj,rotrBH:Hj,rotrBL:Zj,rotr32H:Uj,rotr32L:wj,rotlSH:zj,rotlSL:jj,rotlBH:Nj,rotlBL:Mj,add:Lj,add3L:Rj,add3H:Pj,add4L:Oj,add4H:Fj,add5H:Sj,add5L:Bj};_j.default=yy});var JQ=M1((Tj)=>{Object.defineProperty(Tj,"__esModule",{value:!0});Tj.sha512_224=Tj.sha512_256=Tj.sha384=Tj.sha512=Tj.sha224=Tj.sha256=Tj.SHA512_256=Tj.SHA512_224=Tj.SHA384=Tj.SHA512=Tj.SHA224=Tj.SHA256=void 0;var l1=Xj(),U2=BW(),A0=o6(),Kb=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q5=new Uint32Array(64);class VQ extends l1.HashMD{constructor($=32){super(64,$,8,!1);this.A=l1.SHA256_IV[0]|0,this.B=l1.SHA256_IV[1]|0,this.C=l1.SHA256_IV[2]|0,this.D=l1.SHA256_IV[3]|0,this.E=l1.SHA256_IV[4]|0,this.F=l1.SHA256_IV[5]|0,this.G=l1.SHA256_IV[6]|0,this.H=l1.SHA256_IV[7]|0}get(){let{A:$,B:V,C:J,D:Q,E:X,F:Y,G,H:W}=this;return[$,V,J,Q,X,Y,G,W]}set($,V,J,Q,X,Y,G,W){this.A=$|0,this.B=V|0,this.C=J|0,this.D=Q|0,this.E=X|0,this.F=Y|0,this.G=G|0,this.H=W|0}process($,V){for(let H=0;H<16;H++,V+=4)Q5[H]=$.getUint32(V,!1);for(let H=16;H<64;H++){let U=Q5[H-15],z=Q5[H-2],M=(0,A0.rotr)(U,7)^(0,A0.rotr)(U,18)^U>>>3,L=(0,A0.rotr)(z,17)^(0,A0.rotr)(z,19)^z>>>10;Q5[H]=L+Q5[H-7]+M+Q5[H-16]|0}let{A:J,B:Q,C:X,D:Y,E:G,F:W,G:K,H:D}=this;for(let H=0;H<64;H++){let U=(0,A0.rotr)(G,6)^(0,A0.rotr)(G,11)^(0,A0.rotr)(G,25),z=D+U+(0,l1.Chi)(G,W,K)+Kb[H]+Q5[H]|0,L=((0,A0.rotr)(J,2)^(0,A0.rotr)(J,13)^(0,A0.rotr)(J,22))+(0,l1.Maj)(J,Q,X)|0;D=K,K=W,W=G,G=Y+z|0,Y=X,X=Q,Q=J,J=z+L|0}J=J+this.A|0,Q=Q+this.B|0,X=X+this.C|0,Y=Y+this.D|0,G=G+this.E|0,W=W+this.F|0,K=K+this.G|0,D=D+this.H|0,this.set(J,Q,X,Y,G,W,K,D)}roundClean(){(0,A0.clean)(Q5)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,A0.clean)(this.buffer)}}Tj.SHA256=VQ;class SW extends VQ{constructor(){super(28);this.A=l1.SHA224_IV[0]|0,this.B=l1.SHA224_IV[1]|0,this.C=l1.SHA224_IV[2]|0,this.D=l1.SHA224_IV[3]|0,this.E=l1.SHA224_IV[4]|0,this.F=l1.SHA224_IV[5]|0,this.G=l1.SHA224_IV[6]|0,this.H=l1.SHA224_IV[7]|0}}Tj.SHA224=SW;var Ij=(()=>U2.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(($)=>BigInt($))))(),qb=(()=>Ij[0])(),Db=(()=>Ij[1])(),X5=new Uint32Array(80),Y5=new Uint32Array(80);class r7 extends l1.HashMD{constructor($=64){super(128,$,16,!1);this.Ah=l1.SHA512_IV[0]|0,this.Al=l1.SHA512_IV[1]|0,this.Bh=l1.SHA512_IV[2]|0,this.Bl=l1.SHA512_IV[3]|0,this.Ch=l1.SHA512_IV[4]|0,this.Cl=l1.SHA512_IV[5]|0,this.Dh=l1.SHA512_IV[6]|0,this.Dl=l1.SHA512_IV[7]|0,this.Eh=l1.SHA512_IV[8]|0,this.El=l1.SHA512_IV[9]|0,this.Fh=l1.SHA512_IV[10]|0,this.Fl=l1.SHA512_IV[11]|0,this.Gh=l1.SHA512_IV[12]|0,this.Gl=l1.SHA512_IV[13]|0,this.Hh=l1.SHA512_IV[14]|0,this.Hl=l1.SHA512_IV[15]|0}get(){let{Ah:$,Al:V,Bh:J,Bl:Q,Ch:X,Cl:Y,Dh:G,Dl:W,Eh:K,El:D,Fh:H,Fl:U,Gh:z,Gl:M,Hh:L,Hl:B}=this;return[$,V,J,Q,X,Y,G,W,K,D,H,U,z,M,L,B]}set($,V,J,Q,X,Y,G,W,K,D,H,U,z,M,L,B){this.Ah=$|0,this.Al=V|0,this.Bh=J|0,this.Bl=Q|0,this.Ch=X|0,this.Cl=Y|0,this.Dh=G|0,this.Dl=W|0,this.Eh=K|0,this.El=D|0,this.Fh=H|0,this.Fl=U|0,this.Gh=z|0,this.Gl=M|0,this.Hh=L|0,this.Hl=B|0}process($,V){for(let h=0;h<16;h++,V+=4)X5[h]=$.getUint32(V),Y5[h]=$.getUint32(V+=4);for(let h=16;h<80;h++){let A=X5[h-15]|0,E=Y5[h-15]|0,y=U2.rotrSH(A,E,1)^U2.rotrSH(A,E,8)^U2.shrSH(A,E,7),l=U2.rotrSL(A,E,1)^U2.rotrSL(A,E,8)^U2.shrSL(A,E,7),f=X5[h-2]|0,o=Y5[h-2]|0,u=U2.rotrSH(f,o,19)^U2.rotrBH(f,o,61)^U2.shrSH(f,o,6),i=U2.rotrSL(f,o,19)^U2.rotrBL(f,o,61)^U2.shrSL(f,o,6),t=U2.add4L(l,i,Y5[h-7],Y5[h-16]),g=U2.add4H(t,y,u,X5[h-7],X5[h-16]);X5[h]=g|0,Y5[h]=t|0}let{Ah:J,Al:Q,Bh:X,Bl:Y,Ch:G,Cl:W,Dh:K,Dl:D,Eh:H,El:U,Fh:z,Fl:M,Gh:L,Gl:B,Hh:_,Hl:T}=this;for(let h=0;h<80;h++){let A=U2.rotrSH(H,U,14)^U2.rotrSH(H,U,18)^U2.rotrBH(H,U,41),E=U2.rotrSL(H,U,14)^U2.rotrSL(H,U,18)^U2.rotrBL(H,U,41),y=H&z^~H&L,l=U&M^~U&B,f=U2.add5L(T,E,l,Db[h],Y5[h]),o=U2.add5H(f,_,A,y,qb[h],X5[h]),u=f|0,i=U2.rotrSH(J,Q,28)^U2.rotrBH(J,Q,34)^U2.rotrBH(J,Q,39),t=U2.rotrSL(J,Q,28)^U2.rotrBL(J,Q,34)^U2.rotrBL(J,Q,39),g=J&X^J&G^X&G,S=Q&Y^Q&W^Y&W;_=L|0,T=B|0,L=z|0,B=M|0,z=H|0,M=U|0,{h:H,l:U}=U2.add(K|0,D|0,o|0,u|0),K=G|0,D=W|0,G=X|0,W=Y|0,X=J|0,Y=Q|0;let q=U2.add3L(u,t,S);J=U2.add3H(q,o,i,g),Q=q|0}({h:J,l:Q}=U2.add(this.Ah|0,this.Al|0,J|0,Q|0)),{h:X,l:Y}=U2.add(this.Bh|0,this.Bl|0,X|0,Y|0),{h:G,l:W}=U2.add(this.Ch|0,this.Cl|0,G|0,W|0),{h:K,l:D}=U2.add(this.Dh|0,this.Dl|0,K|0,D|0),{h:H,l:U}=U2.add(this.Eh|0,this.El|0,H|0,U|0),{h:z,l:M}=U2.add(this.Fh|0,this.Fl|0,z|0,M|0),{h:L,l:B}=U2.add(this.Gh|0,this.Gl|0,L|0,B|0),{h:_,l:T}=U2.add(this.Hh|0,this.Hl|0,_|0,T|0),this.set(J,Q,X,Y,G,W,K,D,H,U,z,M,L,B,_,T)}roundClean(){(0,A0.clean)(X5,Y5)}destroy(){(0,A0.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}Tj.SHA512=r7;class _W extends r7{constructor(){super(48);this.Ah=l1.SHA384_IV[0]|0,this.Al=l1.SHA384_IV[1]|0,this.Bh=l1.SHA384_IV[2]|0,this.Bl=l1.SHA384_IV[3]|0,this.Ch=l1.SHA384_IV[4]|0,this.Cl=l1.SHA384_IV[5]|0,this.Dh=l1.SHA384_IV[6]|0,this.Dl=l1.SHA384_IV[7]|0,this.Eh=l1.SHA384_IV[8]|0,this.El=l1.SHA384_IV[9]|0,this.Fh=l1.SHA384_IV[10]|0,this.Fl=l1.SHA384_IV[11]|0,this.Gh=l1.SHA384_IV[12]|0,this.Gl=l1.SHA384_IV[13]|0,this.Hh=l1.SHA384_IV[14]|0,this.Hl=l1.SHA384_IV[15]|0}}Tj.SHA384=_W;var q9=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),D9=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class CW extends r7{constructor(){super(28);this.Ah=q9[0]|0,this.Al=q9[1]|0,this.Bh=q9[2]|0,this.Bl=q9[3]|0,this.Ch=q9[4]|0,this.Cl=q9[5]|0,this.Dh=q9[6]|0,this.Dl=q9[7]|0,this.Eh=q9[8]|0,this.El=q9[9]|0,this.Fh=q9[10]|0,this.Fl=q9[11]|0,this.Gh=q9[12]|0,this.Gl=q9[13]|0,this.Hh=q9[14]|0,this.Hl=q9[15]|0}}Tj.SHA512_224=CW;class IW extends r7{constructor(){super(32);this.Ah=D9[0]|0,this.Al=D9[1]|0,this.Bh=D9[2]|0,this.Bl=D9[3]|0,this.Ch=D9[4]|0,this.Cl=D9[5]|0,this.Dh=D9[6]|0,this.Dl=D9[7]|0,this.Eh=D9[8]|0,this.El=D9[9]|0,this.Fh=D9[10]|0,this.Fl=D9[11]|0,this.Gh=D9[12]|0,this.Gl=D9[13]|0,this.Hh=D9[14]|0,this.Hl=D9[15]|0}}Tj.SHA512_256=IW;Tj.sha256=(0,A0.createHasher)(()=>new VQ);Tj.sha224=(0,A0.createHasher)(()=>new SW);Tj.sha512=(0,A0.createHasher)(()=>new r7);Tj.sha384=(0,A0.createHasher)(()=>new _W);Tj.sha512_256=(0,A0.createHasher)(()=>new IW);Tj.sha512_224=(0,A0.createHasher)(()=>new CW)});var e4=M1((O6)=>{Object.defineProperty(O6,"__esModule",{value:!0});O6.notImplemented=O6.bitMask=O6.utf8ToBytes=O6.randomBytes=O6.isBytes=O6.hexToBytes=O6.concatBytes=O6.bytesToUtf8=O6.bytesToHex=O6.anumber=O6.abytes=void 0;O6.abool=Ob;O6._abool2=Fb;O6._abytes2=Bb;O6.numberToHexUnpadded=pj;O6.hexToNumber=AW;O6.bytesToNumberBE=Sb;O6.bytesToNumberLE=_b;O6.numberToBytesBE=mj;O6.numberToBytesLE=Cb;O6.numberToVarBytesBE=Ib;O6.ensureBytes=Tb;O6.equalBytes=Ab;O6.copyBytes=pb;O6.asciiToBytes=mb;O6.inRange=kj;O6.aInRange=kb;O6.bitLen=Eb;O6.bitGet=vb;O6.bitSet=hb;O6.createHmacDrbg=db;O6.validateObject=bb;O6.isHash=gb;O6._validateObject=lb;O6.memoized=ub;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var r6=o6(),t4=o6();Object.defineProperty(O6,"abytes",{enumerable:!0,get:function(){return t4.abytes}});Object.defineProperty(O6,"anumber",{enumerable:!0,get:function(){return t4.anumber}});Object.defineProperty(O6,"bytesToHex",{enumerable:!0,get:function(){return t4.bytesToHex}});Object.defineProperty(O6,"bytesToUtf8",{enumerable:!0,get:function(){return t4.bytesToUtf8}});Object.defineProperty(O6,"concatBytes",{enumerable:!0,get:function(){return t4.concatBytes}});Object.defineProperty(O6,"hexToBytes",{enumerable:!0,get:function(){return t4.hexToBytes}});Object.defineProperty(O6,"isBytes",{enumerable:!0,get:function(){return t4.isBytes}});Object.defineProperty(O6,"randomBytes",{enumerable:!0,get:function(){return t4.randomBytes}});Object.defineProperty(O6,"utf8ToBytes",{enumerable:!0,get:function(){return t4.utf8ToBytes}});var QQ=BigInt(0),c$=BigInt(1);function Ob($,V){if(typeof V!=="boolean")throw Error($+" boolean expected, got "+V)}function Fb($,V=""){if(typeof $!=="boolean"){let J=V&&`"${V}"`;throw Error(J+"expected boolean, got type="+typeof $)}return $}function Bb($,V,J=""){let Q=(0,r6.isBytes)($),X=$?.length,Y=V!==void 0;if(!Q||Y&&X!==V){let G=J&&`"${J}" `,W=Y?` of length ${V}`:"",K=Q?`length=${X}`:`type=${typeof $}`;throw Error(G+"expected Uint8Array"+W+", got "+K)}return $}function pj($){let V=$.toString(16);return V.length&1?"0"+V:V}function AW($){if(typeof $!=="string")throw Error("hex string expected, got "+typeof $);return $===""?QQ:BigInt("0x"+$)}function Sb($){return AW((0,r6.bytesToHex)($))}function _b($){return(0,r6.abytes)($),AW((0,r6.bytesToHex)(Uint8Array.from($).reverse()))}function mj($,V){return(0,r6.hexToBytes)($.toString(16).padStart(V*2,"0"))}function Cb($,V){return mj($,V).reverse()}function Ib($){return(0,r6.hexToBytes)(pj($))}function Tb($,V,J){let Q;if(typeof V==="string")try{Q=(0,r6.hexToBytes)(V)}catch(Y){throw Error($+" must be hex string or Uint8Array, cause: "+Y)}else if((0,r6.isBytes)(V))Q=Uint8Array.from(V);else throw Error($+" must be hex string or Uint8Array");let X=Q.length;if(typeof J==="number"&&X!==J)throw Error($+" of length "+J+" expected, got "+X);return Q}function Ab($,V){if($.length!==V.length)return!1;let J=0;for(let Q=0;Q<$.length;Q++)J|=$[Q]^V[Q];return J===0}function pb($){return Uint8Array.from($)}function mb($){return Uint8Array.from($,(V,J)=>{let Q=V.charCodeAt(0);if(V.length!==1||Q>127)throw Error(`string contains non-ASCII character "${$[J]}" with code ${Q} at position ${J}`);return Q})}var TW=($)=>typeof $==="bigint"&&QQ<=$;function kj($,V,J){return TW($)&&TW(V)&&TW(J)&&V<=$&&$<J}function kb($,V,J,Q){if(!kj(V,J,Q))throw Error("expected valid "+$+": "+J+" <= n < "+Q+", got "+V)}function Eb($){let V;for(V=0;$>QQ;$>>=c$,V+=1);return V}function vb($,V){return $>>BigInt(V)&c$}function hb($,V,J){return $|(J?c$:QQ)<<BigInt(V)}var xb=($)=>(c$<<BigInt($))-c$;O6.bitMask=xb;function db($,V,J){if(typeof $!=="number"||$<2)throw Error("hashLen must be a number");if(typeof V!=="number"||V<2)throw Error("qByteLen must be a number");if(typeof J!=="function")throw Error("hmacFn must be a function");let Q=(M)=>new Uint8Array(M),X=(M)=>Uint8Array.of(M),Y=Q($),G=Q($),W=0,K=()=>{Y.fill(1),G.fill(0),W=0},D=(...M)=>J(G,Y,...M),H=(M=Q(0))=>{if(G=D(X(0),M),Y=D(),M.length===0)return;G=D(X(1),M),Y=D()},U=()=>{if(W++>=1000)throw Error("drbg: tried 1000 values");let M=0,L=[];while(M<V){Y=D();let B=Y.slice();L.push(B),M+=Y.length}return(0,r6.concatBytes)(...L)};return(M,L)=>{K(),H(M);let B=void 0;while(!(B=L(U())))H();return K(),B}}var yb={bigint:($)=>typeof $==="bigint",function:($)=>typeof $==="function",boolean:($)=>typeof $==="boolean",string:($)=>typeof $==="string",stringOrUint8Array:($)=>typeof $==="string"||(0,r6.isBytes)($),isSafeInteger:($)=>Number.isSafeInteger($),array:($)=>Array.isArray($),field:($,V)=>V.Fp.isValid($),hash:($)=>typeof $==="function"&&Number.isSafeInteger($.outputLen)};function bb($,V,J={}){let Q=(X,Y,G)=>{let W=yb[Y];if(typeof W!=="function")throw Error("invalid validator function");let K=$[X];if(G&&K===void 0)return;if(!W(K,$))throw Error("param "+String(X)+" is invalid. Expected "+Y+", got "+K)};for(let[X,Y]of Object.entries(V))Q(X,Y,!1);for(let[X,Y]of Object.entries(J))Q(X,Y,!0);return $}function gb($){return typeof $==="function"&&Number.isSafeInteger($.outputLen)}function lb($,V,J={}){if(!$||typeof $!=="object")throw Error("expected valid options object");function Q(X,Y,G){let W=$[X];if(G&&W===void 0)return;let K=typeof W;if(K!==Y||W===null)throw Error(`param "${X}" is invalid: expected ${Y}, got ${K}`)}Object.entries(V).forEach(([X,Y])=>Q(X,Y,!1)),Object.entries(J).forEach(([X,Y])=>Q(X,Y,!0))}var fb=()=>{throw Error("not implemented")};O6.notImplemented=fb;function ub($){let V=new WeakMap;return(J,...Q)=>{let X=V.get(J);if(X!==void 0)return X;let Y=$(J,...Q);return V.set(J,Y),Y}}});var G5=M1((uj)=>{Object.defineProperty(uj,"__esModule",{value:!0});uj.isNegativeLE=void 0;uj.mod=I9;uj.pow=Mg;uj.pow2=Lg;uj.invert=XQ;uj.tonelliShanks=mW;uj.FpSqrt=gj;uj.validateField=Bg;uj.FpPow=kW;uj.FpInvertBatch=lj;uj.FpDiv=Sg;uj.FpLegendre=YQ;uj.FpIsSquare=_g;uj.nLength=EW;uj.Field=GQ;uj.FpSqrtOdd=Cg;uj.FpSqrtEven=Ig;uj.hashToPrivateScalar=Tg;uj.getFieldBytesLength=vW;uj.getMinHashLength=fj;uj.mapHashToField=Ag;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var T9=e4(),P9=BigInt(0),p0=BigInt(1),c5=BigInt(2),vj=BigInt(3),hj=BigInt(4),xj=BigInt(5),jg=BigInt(7),dj=BigInt(8),Ng=BigInt(9),yj=BigInt(16);function I9($,V){let J=$%V;return J>=P9?J:V+J}function Mg($,V,J){return kW(GQ(J),$,V)}function Lg($,V,J){let Q=$;while(V-- >P9)Q*=Q,Q%=J;return Q}function XQ($,V){if($===P9)throw Error("invert: expected non-zero number");if(V<=P9)throw Error("invert: expected positive modulus, got "+V);let J=I9($,V),Q=V,X=P9,Y=p0,G=p0,W=P9;while(J!==P9){let D=Q/J,H=Q%J,U=X-G*D,z=Y-W*D;Q=J,J=H,X=G,Y=W,G=U,W=z}if(Q!==p0)throw Error("invert: does not exist");return I9(X,V)}function pW($,V,J){if(!$.eql($.sqr(V),J))throw Error("Cannot find square root")}function bj($,V){let J=($.ORDER+p0)/hj,Q=$.pow(V,J);return pW($,Q,V),Q}function Rg($,V){let J=($.ORDER-xj)/dj,Q=$.mul(V,c5),X=$.pow(Q,J),Y=$.mul(V,X),G=$.mul($.mul(Y,c5),X),W=$.mul(Y,$.sub(G,$.ONE));return pW($,W,V),W}function Pg($){let V=GQ($),J=mW($),Q=J(V,V.neg(V.ONE)),X=J(V,Q),Y=J(V,V.neg(Q)),G=($+jg)/yj;return(W,K)=>{let D=W.pow(K,G),H=W.mul(D,Q),U=W.mul(D,X),z=W.mul(D,Y),M=W.eql(W.sqr(H),K),L=W.eql(W.sqr(U),K);D=W.cmov(D,H,M),H=W.cmov(z,U,L);let B=W.eql(W.sqr(H),K),_=W.cmov(D,H,B);return pW(W,_,K),_}}function mW($){if($<vj)throw Error("sqrt is not defined for small field");let V=$-p0,J=0;while(V%c5===P9)V/=c5,J++;let Q=c5,X=GQ($);while(YQ(X,Q)===1)if(Q++>1000)throw Error("Cannot find square root: probably non-prime P");if(J===1)return bj;let Y=X.pow(Q,V),G=(V+p0)/c5;return function(K,D){if(K.is0(D))return D;if(YQ(K,D)!==1)throw Error("Cannot find square root");let H=J,U=K.mul(K.ONE,Y),z=K.pow(D,V),M=K.pow(D,G);while(!K.eql(z,K.ONE)){if(K.is0(z))return K.ZERO;let L=1,B=K.sqr(z);while(!K.eql(B,K.ONE))if(L++,B=K.sqr(B),L===H)throw Error("Cannot find square root");let _=p0<<BigInt(H-L-1),T=K.pow(U,_);H=L,U=K.sqr(T),z=K.mul(z,U),M=K.mul(M,T)}return M}}function gj($){if($%hj===vj)return bj;if($%dj===xj)return Rg;if($%yj===Ng)return Pg($);return mW($)}var Og=($,V)=>(I9($,V)&p0)===p0;uj.isNegativeLE=Og;var Fg=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Bg($){let V={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},J=Fg.reduce((Q,X)=>{return Q[X]="function",Q},V);return(0,T9._validateObject)($,J),$}function kW($,V,J){if(J<P9)throw Error("invalid exponent, negatives unsupported");if(J===P9)return $.ONE;if(J===p0)return V;let Q=$.ONE,X=V;while(J>P9){if(J&p0)Q=$.mul(Q,X);X=$.sqr(X),J>>=p0}return Q}function lj($,V,J=!1){let Q=Array(V.length).fill(J?$.ZERO:void 0),X=V.reduce((G,W,K)=>{if($.is0(W))return G;return Q[K]=G,$.mul(G,W)},$.ONE),Y=$.inv(X);return V.reduceRight((G,W,K)=>{if($.is0(W))return G;return Q[K]=$.mul(G,Q[K]),$.mul(G,W)},Y),Q}function Sg($,V,J){return $.mul(V,typeof J==="bigint"?XQ(J,$.ORDER):$.inv(J))}function YQ($,V){let J=($.ORDER-p0)/c5,Q=$.pow(V,J),X=$.eql(Q,$.ONE),Y=$.eql(Q,$.ZERO),G=$.eql(Q,$.neg($.ONE));if(!X&&!Y&&!G)throw Error("invalid Legendre symbol result");return X?1:Y?0:-1}function _g($,V){return YQ($,V)===1}function EW($,V){if(V!==void 0)(0,T9.anumber)(V);let J=V!==void 0?V:$.toString(2).length,Q=Math.ceil(J/8);return{nBitLength:J,nByteLength:Q}}function GQ($,V,J=!1,Q={}){if($<=P9)throw Error("invalid field: expected ORDER > 0, got "+$);let X=void 0,Y=void 0,G=!1,W=void 0;if(typeof V==="object"&&V!=null){if(Q.sqrt||J)throw Error("cannot specify opts in two arguments");let z=V;if(z.BITS)X=z.BITS;if(z.sqrt)Y=z.sqrt;if(typeof z.isLE==="boolean")J=z.isLE;if(typeof z.modFromBytes==="boolean")G=z.modFromBytes;W=z.allowedLengths}else{if(typeof V==="number")X=V;if(Q.sqrt)Y=Q.sqrt}let{nBitLength:K,nByteLength:D}=EW($,X);if(D>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let H,U=Object.freeze({ORDER:$,isLE:J,BITS:K,BYTES:D,MASK:(0,T9.bitMask)(K),ZERO:P9,ONE:p0,allowedLengths:W,create:(z)=>I9(z,$),isValid:(z)=>{if(typeof z!=="bigint")throw Error("invalid field element: expected bigint, got "+typeof z);return P9<=z&&z<$},is0:(z)=>z===P9,isValidNot0:(z)=>!U.is0(z)&&U.isValid(z),isOdd:(z)=>(z&p0)===p0,neg:(z)=>I9(-z,$),eql:(z,M)=>z===M,sqr:(z)=>I9(z*z,$),add:(z,M)=>I9(z+M,$),sub:(z,M)=>I9(z-M,$),mul:(z,M)=>I9(z*M,$),pow:(z,M)=>kW(U,z,M),div:(z,M)=>I9(z*XQ(M,$),$),sqrN:(z)=>z*z,addN:(z,M)=>z+M,subN:(z,M)=>z-M,mulN:(z,M)=>z*M,inv:(z)=>XQ(z,$),sqrt:Y||((z)=>{if(!H)H=gj($);return H(U,z)}),toBytes:(z)=>J?(0,T9.numberToBytesLE)(z,D):(0,T9.numberToBytesBE)(z,D),fromBytes:(z,M=!0)=>{if(W){if(!W.includes(z.length)||z.length>D)throw Error("Field.fromBytes: expected "+W+" bytes, got "+z.length);let B=new Uint8Array(D);B.set(z,J?0:B.length-z.length),z=B}if(z.length!==D)throw Error("Field.fromBytes: expected "+D+" bytes, got "+z.length);let L=J?(0,T9.bytesToNumberLE)(z):(0,T9.bytesToNumberBE)(z);if(G)L=I9(L,$);if(!M){if(!U.isValid(L))throw Error("invalid field element: outside of range 0..ORDER")}return L},invertBatch:(z)=>lj(U,z),cmov:(z,M,L)=>L?M:z});return Object.freeze(U)}function Cg($,V){if(!$.isOdd)throw Error("Field doesn't have isOdd");let J=$.sqrt(V);return $.isOdd(J)?J:$.neg(J)}function Ig($,V){if(!$.isOdd)throw Error("Field doesn't have isOdd");let J=$.sqrt(V);return $.isOdd(J)?$.neg(J):J}function Tg($,V,J=!1){$=(0,T9.ensureBytes)("privateHash",$);let Q=$.length,X=EW(V).nByteLength+8;if(X<24||Q<X||Q>1024)throw Error("hashToPrivateScalar: expected "+X+"-1024 bytes of input, got "+Q);let Y=J?(0,T9.bytesToNumberLE)($):(0,T9.bytesToNumberBE)($);return I9(Y,V-p0)+p0}function vW($){if(typeof $!=="bigint")throw Error("field order must be bigint");let V=$.toString(2).length;return Math.ceil(V/8)}function fj($){let V=vW($);return V+Math.ceil(V/2)}function Ag($,V,J=!1){let Q=$.length,X=vW(V),Y=fj(V);if(Q<16||Q<Y||Q>1024)throw Error("expected "+Y+"-1024 bytes of input, got "+Q);let G=J?(0,T9.bytesToNumberLE)($):(0,T9.bytesToNumberBE)($),W=I9(G,V-p0)+p0;return J?(0,T9.numberToBytesLE)(W,X):(0,T9.numberToBytesBE)(W,X)}});var WQ=M1((ej)=>{Object.defineProperty(ej,"__esModule",{value:!0});ej.wNAF=void 0;ej.negateCt=yW;ej.normalizeZ=rg;ej.mulEndoUnsafe=tg;ej.pippenger=eg;ej.precomputeMSMUnsafe=$l;ej.validateBasic=Vl;ej._createCurveFields=Jl;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var n$=e4(),o$=G5(),t7=BigInt(0),n5=BigInt(1);function yW($,V){let J=V.negate();return $?J:V}function rg($,V){let J=(0,o$.FpInvertBatch)($.Fp,V.map((Q)=>Q.Z));return V.map((Q,X)=>$.fromAffine(Q.toAffine(J[X])))}function bW($,V){if(!Number.isSafeInteger($)||$<=0||$>V)throw Error("invalid window size, expected [1.."+V+"], got W="+$)}function hW($,V){bW($,V);let J=Math.ceil(V/$)+1,Q=2**($-1),X=2**$,Y=(0,n$.bitMask)($),G=BigInt($);return{windows:J,windowSize:Q,mask:Y,maxNumber:X,shiftBy:G}}function ij($,V,J){let{windowSize:Q,mask:X,maxNumber:Y,shiftBy:G}=J,W=Number($&X),K=$>>G;if(W>Q)W-=Y,K+=n5;let D=V*Q,H=D+Math.abs(W)-1,U=W===0,z=W<0,M=V%2!==0;return{nextN:K,offset:H,isZero:U,isNeg:z,isNegF:M,offsetF:D}}function oj($,V){if(!Array.isArray($))throw Error("array expected");$.forEach((J,Q)=>{if(!(J instanceof V))throw Error("invalid point at index "+Q)})}function sj($,V){if(!Array.isArray($))throw Error("array of scalars expected");$.forEach((J,Q)=>{if(!V.isValid(J))throw Error("invalid scalar at index "+Q)})}var xW=new WeakMap,rj=new WeakMap;function dW($){return rj.get($)||1}function cj($){if($!==t7)throw Error("invalid wNAF")}class tj{constructor($,V){this.BASE=$.BASE,this.ZERO=$.ZERO,this.Fn=$.Fn,this.bits=V}_unsafeLadder($,V,J=this.ZERO){let Q=$;while(V>t7){if(V&n5)J=J.add(Q);Q=Q.double(),V>>=n5}return J}precomputeWindow($,V){let{windows:J,windowSize:Q}=hW(V,this.bits),X=[],Y=$,G=Y;for(let W=0;W<J;W++){G=Y,X.push(G);for(let K=1;K<Q;K++)G=G.add(Y),X.push(G);Y=G.double()}return X}wNAF($,V,J){if(!this.Fn.isValid(J))throw Error("invalid scalar");let Q=this.ZERO,X=this.BASE,Y=hW($,this.bits);for(let G=0;G<Y.windows;G++){let{nextN:W,offset:K,isZero:D,isNeg:H,isNegF:U,offsetF:z}=ij(J,G,Y);if(J=W,D)X=X.add(yW(U,V[z]));else Q=Q.add(yW(H,V[K]))}return cj(J),{p:Q,f:X}}wNAFUnsafe($,V,J,Q=this.ZERO){let X=hW($,this.bits);for(let Y=0;Y<X.windows;Y++){if(J===t7)break;let{nextN:G,offset:W,isZero:K,isNeg:D}=ij(J,Y,X);if(J=G,K)continue;else{let H=V[W];Q=Q.add(D?H.negate():H)}}return cj(J),Q}getPrecomputes($,V,J){let Q=xW.get(V);if(!Q){if(Q=this.precomputeWindow(V,$),$!==1){if(typeof J==="function")Q=J(Q);xW.set(V,Q)}}return Q}cached($,V,J){let Q=dW($);return this.wNAF(Q,this.getPrecomputes(Q,$,J),V)}unsafe($,V,J,Q){let X=dW($);if(X===1)return this._unsafeLadder($,V,Q);return this.wNAFUnsafe(X,this.getPrecomputes(X,$,J),V,Q)}createCache($,V){bW(V,this.bits),rj.set($,V),xW.delete($)}hasCache($){return dW($)!==1}}ej.wNAF=tj;function tg($,V,J,Q){let X=V,Y=$.ZERO,G=$.ZERO;while(J>t7||Q>t7){if(J&n5)Y=Y.add(X);if(Q&n5)G=G.add(X);X=X.double(),J>>=n5,Q>>=n5}return{p1:Y,p2:G}}function eg($,V,J,Q){oj(J,$),sj(Q,V);let X=J.length,Y=Q.length;if(X!==Y)throw Error("arrays of points and scalars must have equal length");let G=$.ZERO,W=(0,n$.bitLen)(BigInt(X)),K=1;if(W>12)K=W-3;else if(W>4)K=W-2;else if(W>0)K=2;let D=(0,n$.bitMask)(K),H=Array(Number(D)+1).fill(G),U=Math.floor((V.BITS-1)/K)*K,z=G;for(let M=U;M>=0;M-=K){H.fill(G);for(let B=0;B<Y;B++){let _=Q[B],T=Number(_>>BigInt(M)&D);H[T]=H[T].add(J[B])}let L=G;for(let B=H.length-1,_=G;B>0;B--)_=_.add(H[B]),L=L.add(_);if(z=z.add(L),M!==0)for(let B=0;B<K;B++)z=z.double()}return z}function $l($,V,J,Q){bW(Q,V.BITS),oj(J,$);let X=$.ZERO,Y=2**Q-1,G=Math.ceil(V.BITS/Q),W=(0,n$.bitMask)(Q),K=J.map((D)=>{let H=[];for(let U=0,z=D;U<Y;U++)H.push(z),z=z.add(D);return H});return(D)=>{if(sj(D,V),D.length>J.length)throw Error("array of scalars must be smaller than array of points");let H=X;for(let U=0;U<G;U++){if(H!==X)for(let M=0;M<Q;M++)H=H.double();let z=BigInt(G*Q-(U+1)*Q);for(let M=0;M<D.length;M++){let L=D[M],B=Number(L>>z&W);if(!B)continue;H=H.add(K[M][B-1])}}return H}}function Vl($){return(0,o$.validateField)($.Fp),(0,n$.validateObject)($,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,o$.nLength)($.n,$.nBitLength),...$,...{p:$.Fp.ORDER}})}function nj($,V,J){if(V){if(V.ORDER!==$)throw Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,o$.validateField)(V),V}else return(0,o$.Field)($,{isLE:J})}function Jl($,V,J={},Q){if(Q===void 0)Q=$==="edwards";if(!V||typeof V!=="object")throw Error(`expected valid ${$} CURVE object`);for(let K of["p","n","h"]){let D=V[K];if(!(typeof D==="bigint"&&D>t7))throw Error(`CURVE.${K} must be positive bigint`)}let X=nj(V.p,J.Fp,Q),Y=nj(V.n,J.Fn,Q),W=["Gx","Gy","a",$==="weierstrass"?"b":"d"];for(let K of W)if(!X.isValid(V[K]))throw Error(`CURVE.${K} must be valid field element of CURVE.Fp`);return V=Object.freeze(Object.assign({},V)),{CURVE:V,Fp:X,Fn:Y}}});var GN=M1((XN)=>{Object.defineProperty(XN,"__esModule",{value:!0});XN.PrimeEdwardsPoint=void 0;XN.edwards=VN;XN.eddsa=QN;XN.twistedEdwards=zl;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var C2=e4(),o5=WQ(),Dl=G5(),W5=BigInt(0),l0=BigInt(1),gW=BigInt(2),Hl=BigInt(8);function Zl($,V,J,Q){let X=$.sqr(J),Y=$.sqr(Q),G=$.add($.mul(V.a,X),Y),W=$.add($.ONE,$.mul(V.d,$.mul(X,Y)));return $.eql(G,W)}function VN($,V={}){let J=(0,o5._createCurveFields)("edwards",$,V,V.FpFnLE),{Fp:Q,Fn:X}=J,Y=J.CURVE,{h:G}=Y;(0,C2._validateObject)(V,{},{uvRatio:"function"});let W=gW<<BigInt(X.BYTES*8)-l0,K=(_)=>Q.create(_),D=V.uvRatio||((_,T)=>{try{return{isValid:!0,value:Q.sqrt(Q.div(_,T))}}catch(h){return{isValid:!1,value:W5}}});if(!Zl(Q,Y,Y.Gx,Y.Gy))throw Error("bad curve params: generator point");function H(_,T,h=!1){let A=h?l0:W5;return(0,C2.aInRange)("coordinate "+_,T,A,W),T}function U(_){if(!(_ instanceof L))throw Error("ExtendedPoint expected")}let z=(0,C2.memoized)((_,T)=>{let{X:h,Y:A,Z:E}=_,y=_.is0();if(T==null)T=y?Hl:Q.inv(E);let l=K(h*T),f=K(A*T),o=Q.mul(E,T);if(y)return{x:W5,y:l0};if(o!==l0)throw Error("invZ was invalid");return{x:l,y:f}}),M=(0,C2.memoized)((_)=>{let{a:T,d:h}=Y;if(_.is0())throw Error("bad point: ZERO");let{X:A,Y:E,Z:y,T:l}=_,f=K(A*A),o=K(E*E),u=K(y*y),i=K(u*u),t=K(f*T),g=K(u*K(t+o)),S=K(i+K(h*K(f*o)));if(g!==S)throw Error("bad point: equation left != right (1)");let q=K(A*E),Z=K(y*l);if(q!==Z)throw Error("bad point: equation left != right (2)");return!0});class L{constructor(_,T,h,A){this.X=H("x",_),this.Y=H("y",T),this.Z=H("z",h,!0),this.T=H("t",A),Object.freeze(this)}static CURVE(){return Y}static fromAffine(_){if(_ instanceof L)throw Error("extended point not allowed");let{x:T,y:h}=_||{};return H("x",T),H("y",h),new L(T,h,l0,K(T*h))}static fromBytes(_,T=!1){let h=Q.BYTES,{a:A,d:E}=Y;_=(0,C2.copyBytes)((0,C2._abytes2)(_,h,"point")),(0,C2._abool2)(T,"zip215");let y=(0,C2.copyBytes)(_),l=_[h-1];y[h-1]=l&-129;let f=(0,C2.bytesToNumberLE)(y),o=T?W:Q.ORDER;(0,C2.aInRange)("point.y",f,W5,o);let u=K(f*f),i=K(u-l0),t=K(E*u-A),{isValid:g,value:S}=D(i,t);if(!g)throw Error("bad point: invalid y coordinate");let q=(S&l0)===l0,Z=(l&128)!==0;if(!T&&S===W5&&Z)throw Error("bad point: x=0 and x_0=1");if(Z!==q)S=K(-S);return L.fromAffine({x:S,y:f})}static fromHex(_,T=!1){return L.fromBytes((0,C2.ensureBytes)("point",_),T)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(_=8,T=!0){if(B.createCache(this,_),!T)this.multiply(gW);return this}assertValidity(){M(this)}equals(_){U(_);let{X:T,Y:h,Z:A}=this,{X:E,Y:y,Z:l}=_,f=K(T*l),o=K(E*A),u=K(h*l),i=K(y*A);return f===o&&u===i}is0(){return this.equals(L.ZERO)}negate(){return new L(K(-this.X),this.Y,this.Z,K(-this.T))}double(){let{a:_}=Y,{X:T,Y:h,Z:A}=this,E=K(T*T),y=K(h*h),l=K(gW*K(A*A)),f=K(_*E),o=T+h,u=K(K(o*o)-E-y),i=f+y,t=i-l,g=f-y,S=K(u*t),q=K(i*g),Z=K(u*g),R=K(t*i);return new L(S,q,R,Z)}add(_){U(_);let{a:T,d:h}=Y,{X:A,Y:E,Z:y,T:l}=this,{X:f,Y:o,Z:u,T:i}=_,t=K(A*f),g=K(E*o),S=K(l*h*i),q=K(y*u),Z=K((A+E)*(f+o)-t-g),R=q-S,O=q+S,F=K(g-T*t),m=K(Z*R),x=K(O*F),p=K(Z*F),N=K(R*O);return new L(m,x,N,p)}subtract(_){return this.add(_.negate())}multiply(_){if(!X.isValidNot0(_))throw Error("invalid scalar: expected 1 <= sc < curve.n");let{p:T,f:h}=B.cached(this,_,(A)=>(0,o5.normalizeZ)(L,A));return(0,o5.normalizeZ)(L,[T,h])[0]}multiplyUnsafe(_,T=L.ZERO){if(!X.isValid(_))throw Error("invalid scalar: expected 0 <= sc < curve.n");if(_===W5)return L.ZERO;if(this.is0()||_===l0)return this;return B.unsafe(this,_,(h)=>(0,o5.normalizeZ)(L,h),T)}isSmallOrder(){return this.multiplyUnsafe(G).is0()}isTorsionFree(){return B.unsafe(this,Y.n).is0()}toAffine(_){return z(this,_)}clearCofactor(){if(G===l0)return this;return this.multiplyUnsafe(G)}toBytes(){let{x:_,y:T}=this.toAffine(),h=Q.toBytes(T);return h[h.length-1]|=_&l0?128:0,h}toHex(){return(0,C2.bytesToHex)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(_){return(0,o5.normalizeZ)(L,_)}static msm(_,T){return(0,o5.pippenger)(L,X,_,T)}_setWindowSize(_){this.precompute(_)}toRawBytes(){return this.toBytes()}}L.BASE=new L(Y.Gx,Y.Gy,l0,K(Y.Gx*Y.Gy)),L.ZERO=new L(W5,l0,l0,W5),L.Fp=Q,L.Fn=X;let B=new o5.wNAF(L,X.BITS);return L.BASE.precompute(8),L}class JN{constructor($){this.ep=$}static fromBytes($){(0,C2.notImplemented)()}static fromHex($){(0,C2.notImplemented)()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine($){return this.ep.toAffine($)}toHex(){return(0,C2.bytesToHex)(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add($){return this.assertSame($),this.init(this.ep.add($.ep))}subtract($){return this.assertSame($),this.init(this.ep.subtract($.ep))}multiply($){return this.init(this.ep.multiply($))}multiplyUnsafe($){return this.init(this.ep.multiplyUnsafe($))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute($,V){return this.init(this.ep.precompute($,V))}toRawBytes(){return this.toBytes()}}XN.PrimeEdwardsPoint=JN;function QN($,V,J={}){if(typeof V!=="function")throw Error('"hash" function param is required');(0,C2._validateObject)(J,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});let{prehash:Q}=J,{BASE:X,Fp:Y,Fn:G}=$,W=J.randomBytes||C2.randomBytes,K=J.adjustScalarBytes||((u)=>u),D=J.domain||((u,i,t)=>{if((0,C2._abool2)(t,"phflag"),i.length||t)throw Error("Contexts/pre-hash are not supported");return u});function H(u){return G.create((0,C2.bytesToNumberLE)(u))}function U(u){let i=A.secretKey;u=(0,C2.ensureBytes)("private key",u,i);let t=(0,C2.ensureBytes)("hashed private key",V(u),2*i),g=K(t.slice(0,i)),S=t.slice(i,2*i),q=H(g);return{head:g,prefix:S,scalar:q}}function z(u){let{head:i,prefix:t,scalar:g}=U(u),S=X.multiply(g),q=S.toBytes();return{head:i,prefix:t,scalar:g,point:S,pointBytes:q}}function M(u){return z(u).pointBytes}function L(u=Uint8Array.of(),...i){let t=(0,C2.concatBytes)(...i);return H(V(D(t,(0,C2.ensureBytes)("context",u),!!Q)))}function B(u,i,t={}){if(u=(0,C2.ensureBytes)("message",u),Q)u=Q(u);let{prefix:g,scalar:S,pointBytes:q}=z(i),Z=L(t.context,g,u),R=X.multiply(Z).toBytes(),O=L(t.context,R,q,u),F=G.create(Z+O*S);if(!G.isValid(F))throw Error("sign failed: invalid s");let m=(0,C2.concatBytes)(R,G.toBytes(F));return(0,C2._abytes2)(m,A.signature,"result")}let _={zip215:!0};function T(u,i,t,g=_){let{context:S,zip215:q}=g,Z=A.signature;if(u=(0,C2.ensureBytes)("signature",u,Z),i=(0,C2.ensureBytes)("message",i),t=(0,C2.ensureBytes)("publicKey",t,A.publicKey),q!==void 0)(0,C2._abool2)(q,"zip215");if(Q)i=Q(i);let R=Z/2,O=u.subarray(0,R),F=(0,C2.bytesToNumberLE)(u.subarray(R,Z)),m,x,p;try{m=$.fromBytes(t,q),x=$.fromBytes(O,q),p=X.multiplyUnsafe(F)}catch($1){return!1}if(!q&&m.isSmallOrder())return!1;let N=L(S,x.toBytes(),m.toBytes(),i);return x.add(m.multiplyUnsafe(N)).subtract(p).clearCofactor().is0()}let h=Y.BYTES,A={secretKey:h,publicKey:h,signature:2*h,seed:h};function E(u=W(A.seed)){return(0,C2._abytes2)(u,A.seed,"seed")}function y(u){let i=o.randomSecretKey(u);return{secretKey:i,publicKey:M(i)}}function l(u){return(0,C2.isBytes)(u)&&u.length===G.BYTES}function f(u,i){try{return!!$.fromBytes(u,i)}catch(t){return!1}}let o={getExtendedPublicKey:z,randomSecretKey:E,isValidSecretKey:l,isValidPublicKey:f,toMontgomery(u){let{y:i}=$.fromBytes(u),t=A.publicKey,g=t===32;if(!g&&t!==57)throw Error("only defined for 25519 and 448");let S=g?Y.div(l0+i,l0-i):Y.div(i-l0,i+l0);return Y.toBytes(S)},toMontgomerySecret(u){let i=A.secretKey;(0,C2._abytes2)(u,i);let t=V(u.subarray(0,i));return K(t).subarray(0,i)},randomPrivateKey:E,precompute(u=8,i=$.BASE){return i.precompute(u,!1)}};return Object.freeze({keygen:y,getPublicKey:M,sign:B,verify:T,utils:o,Point:$,lengths:A})}function Ul($){let V={a:$.a,d:$.d,p:$.Fp.ORDER,n:$.n,h:$.h,Gx:$.Gx,Gy:$.Gy},J=$.Fp,Q=(0,Dl.Field)(V.n,$.nBitLength,!0),X={Fp:J,Fn:Q,uvRatio:$.uvRatio},Y={randomBytes:$.randomBytes,adjustScalarBytes:$.adjustScalarBytes,domain:$.domain,prehash:$.prehash,mapToCurve:$.mapToCurve};return{CURVE:V,curveOpts:X,hash:$.hash,eddsaOpts:Y}}function wl($,V){let J=V.Point;return Object.assign({},V,{ExtendedPoint:J,CURVE:$,nBitLength:J.Fn.BITS,nByteLength:J.Fn.BYTES})}function zl($){let{CURVE:V,curveOpts:J,hash:Q,eddsaOpts:X}=Ul($),Y=VN(V,J),G=QN(Y,Q,X);return wl($,G)}});var fW=M1((HN)=>{Object.defineProperty(HN,"__esModule",{value:!0});HN._DST_scalar=void 0;HN.expand_message_xmd=qN;HN.expand_message_xof=DN;HN.hash_to_field=KQ;HN.isogenyMap=Pl;HN.createHasher=Ol;var r0=e4(),WN=G5(),Ll=r0.bytesToNumberBE;function K5($,V){if(s$($),s$(V),$<0||$>=1<<8*V)throw Error("invalid I2OSP input: "+$);let J=Array.from({length:V}).fill(0);for(let Q=V-1;Q>=0;Q--)J[Q]=$&255,$>>>=8;return new Uint8Array(J)}function Rl($,V){let J=new Uint8Array($.length);for(let Q=0;Q<$.length;Q++)J[Q]=$[Q]^V[Q];return J}function s$($){if(!Number.isSafeInteger($))throw Error("number expected")}function KN($){if(!(0,r0.isBytes)($)&&typeof $!=="string")throw Error("DST must be Uint8Array or string");return typeof $==="string"?(0,r0.utf8ToBytes)($):$}function qN($,V,J,Q){if((0,r0.abytes)($),s$(J),V=KN(V),V.length>255)V=Q((0,r0.concatBytes)((0,r0.utf8ToBytes)("H2C-OVERSIZE-DST-"),V));let{outputLen:X,blockLen:Y}=Q,G=Math.ceil(J/X);if(J>65535||G>255)throw Error("expand_message_xmd: invalid lenInBytes");let W=(0,r0.concatBytes)(V,K5(V.length,1)),K=K5(0,Y),D=K5(J,2),H=Array(G),U=Q((0,r0.concatBytes)(K,$,D,K5(0,1),W));H[0]=Q((0,r0.concatBytes)(U,K5(1,1),W));for(let M=1;M<=G;M++){let L=[Rl(U,H[M-1]),K5(M+1,1),W];H[M]=Q((0,r0.concatBytes)(...L))}return(0,r0.concatBytes)(...H).slice(0,J)}function DN($,V,J,Q,X){if((0,r0.abytes)($),s$(J),V=KN(V),V.length>255){let Y=Math.ceil(2*Q/8);V=X.create({dkLen:Y}).update((0,r0.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(V).digest()}if(J>65535||V.length>255)throw Error("expand_message_xof: invalid lenInBytes");return X.create({dkLen:J}).update($).update(K5(J,2)).update(V).update(K5(V.length,1)).digest()}function KQ($,V,J){(0,r0._validateObject)(J,{p:"bigint",m:"number",k:"number",hash:"function"});let{p:Q,k:X,m:Y,hash:G,expand:W,DST:K}=J;if(!(0,r0.isHash)(J.hash))throw Error("expected valid hash");(0,r0.abytes)($),s$(V);let D=Q.toString(2).length,H=Math.ceil((D+X)/8),U=V*Y*H,z;if(W==="xmd")z=qN($,K,U,G);else if(W==="xof")z=DN($,K,U,X,G);else if(W==="_internal_pass")z=$;else throw Error('expand must be "xmd" or "xof"');let M=Array(V);for(let L=0;L<V;L++){let B=Array(Y);for(let _=0;_<Y;_++){let T=H*(_+L*Y),h=z.subarray(T,T+H);B[_]=(0,WN.mod)(Ll(h),Q)}M[L]=B}return M}function Pl($,V){let J=V.map((Q)=>Array.from(Q).reverse());return(Q,X)=>{let[Y,G,W,K]=J.map((U)=>U.reduce((z,M)=>$.add($.mul(z,Q),M))),[D,H]=(0,WN.FpInvertBatch)($,[G,K],!0);return Q=$.mul(Y,D),X=$.mul(X,$.mul(W,H)),{x:Q,y:X}}}HN._DST_scalar=(0,r0.utf8ToBytes)("HashToScalar-");function Ol($,V,J){if(typeof V!=="function")throw Error("mapToCurve() must be defined");function Q(Y){return $.fromAffine(V(Y))}function X(Y){let G=Y.clearCofactor();if(G.equals($.ZERO))return $.ZERO;return G.assertValidity(),G}return{defaults:J,hashToCurve(Y,G){let W=Object.assign({},J,G),K=KQ(Y,2,W),D=Q(K[0]),H=Q(K[1]);return X(D.add(H))},encodeToCurve(Y,G){let W=J.encodeDST?{DST:J.encodeDST}:{},K=Object.assign({},J,W,G),D=KQ(Y,1,K),H=Q(D[0]);return X(H)},mapToCurve(Y){if(!Array.isArray(Y))throw Error("expected array of bigints");for(let G of Y)if(typeof G!=="bigint")throw Error("expected array of bigints");return X(Q(Y))},hashToScalar(Y,G){let W=$.Fn.ORDER,K=Object.assign({},J,{p:W,m:1,DST:HN._DST_scalar},G);return KQ(Y,1,K)[0][0]}}}});var UN=M1((ZN)=>{Object.defineProperty(ZN,"__esModule",{value:!0});ZN.montgomery=Al;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var t6=e4(),Il=G5(),r$=BigInt(0),e7=BigInt(1),qQ=BigInt(2);function Tl($){return(0,t6._validateObject)($,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...$})}function Al($){let V=Tl($),{P:J,type:Q,adjustScalarBytes:X,powPminus2:Y,randomBytes:G}=V,W=Q==="x25519";if(!W&&Q!=="x448")throw Error("invalid type");let K=G||t6.randomBytes,D=W?255:448,H=W?32:56,U=W?BigInt(9):BigInt(5),z=W?BigInt(121665):BigInt(39081),M=W?qQ**BigInt(254):qQ**BigInt(447),L=W?BigInt(8)*qQ**BigInt(251)-e7:BigInt(4)*qQ**BigInt(445)-e7,B=M+L+e7,_=(S)=>(0,Il.mod)(S,J),T=h(U);function h(S){return(0,t6.numberToBytesLE)(_(S),H)}function A(S){let q=(0,t6.ensureBytes)("u coordinate",S,H);if(W)q[31]&=127;return _((0,t6.bytesToNumberLE)(q))}function E(S){return(0,t6.bytesToNumberLE)(X((0,t6.ensureBytes)("scalar",S,H)))}function y(S,q){let Z=o(A(q),E(S));if(Z===r$)throw Error("invalid private or public key received");return h(Z)}function l(S){return y(S,T)}function f(S,q,Z){let R=_(S*(q-Z));return q=_(q-R),Z=_(Z+R),{x_2:q,x_3:Z}}function o(S,q){(0,t6.aInRange)("u",S,r$,J),(0,t6.aInRange)("scalar",q,M,B);let Z=q,R=S,O=e7,F=r$,m=S,x=e7,p=r$;for(let v=BigInt(D-1);v>=r$;v--){let $1=Z>>v&e7;p^=$1,{x_2:O,x_3:m}=f(p,O,m),{x_2:F,x_3:x}=f(p,F,x),p=$1;let G1=O+F,H1=_(G1*G1),B1=O-F,A1=_(B1*B1),m1=H1-A1,y2=m+x,V2=m-x,$2=_(V2*G1),T0=_(y2*B1),O2=$2+T0,R2=$2-T0;m=_(O2*O2),x=_(R*_(R2*R2)),O=_(H1*A1),F=_(m1*(H1+_(z*m1)))}({x_2:O,x_3:m}=f(p,O,m)),{x_2:F,x_3:x}=f(p,F,x);let N=Y(F);return _(O*N)}let u={secretKey:H,publicKey:H,seed:H},i=(S=K(H))=>{return(0,t6.abytes)(S,u.seed),S};function t(S){let q=i(S);return{secretKey:q,publicKey:l(q)}}return{keygen:t,getSharedSecret:(S,q)=>y(S,q),getPublicKey:(S)=>l(S),scalarMult:y,scalarMultBase:l,utils:{randomSecretKey:i,randomPrivateKey:i},GuBytes:T.slice(),lengths:u}}});var CN=M1((SN)=>{Object.defineProperty(SN,"__esModule",{value:!0});SN.hash_to_ristretto255=SN.hashToRistretto255=SN.encodeToCurve=SN.hashToCurve=SN.RistrettoPoint=SN.edwardsToMontgomery=SN.ED25519_TORSION_SUBGROUP=SN.ristretto255_hasher=SN.ristretto255=SN.ed25519_hasher=SN.x25519=SN.ed25519ph=SN.ed25519ctx=SN.ed25519=void 0;SN.edwardsToMontgomeryPub=BN;SN.edwardsToMontgomeryPriv=al;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var t$=JQ(),HQ=o6(),ml=WQ(),UQ=GN(),DQ=fW(),m2=G5(),kl=UN(),s5=e4(),El=BigInt(0),e6=BigInt(1),ZQ=BigInt(2),NN=BigInt(3),MN=BigInt(5),cW=BigInt(8),$8=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),e$=(()=>({p:$8,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:cW,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")}))();function LN($){let V=BigInt(10),J=BigInt(20),Q=BigInt(40),X=BigInt(80),Y=$8,W=$*$%Y*$%Y,K=(0,m2.pow2)(W,ZQ,Y)*W%Y,D=(0,m2.pow2)(K,e6,Y)*$%Y,H=(0,m2.pow2)(D,MN,Y)*D%Y,U=(0,m2.pow2)(H,V,Y)*H%Y,z=(0,m2.pow2)(U,J,Y)*U%Y,M=(0,m2.pow2)(z,Q,Y)*z%Y,L=(0,m2.pow2)(M,X,Y)*M%Y,B=(0,m2.pow2)(L,X,Y)*M%Y,_=(0,m2.pow2)(B,V,Y)*H%Y;return{pow_p_5_8:(0,m2.pow2)(_,ZQ,Y)*$%Y,b2:W}}function RN($){return $[0]&=248,$[31]&=127,$[31]|=64,$}var uW=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function nW($,V){let J=$8,Q=(0,m2.mod)(V*V*V,J),X=(0,m2.mod)(Q*Q*V,J),Y=LN($*X).pow_p_5_8,G=(0,m2.mod)($*Q*Y,J),W=(0,m2.mod)(V*G*G,J),K=G,D=(0,m2.mod)(G*uW,J),H=W===$,U=W===(0,m2.mod)(-$,J),z=W===(0,m2.mod)(-$*uW,J);if(H)G=K;if(U||z)G=D;if((0,m2.isNegativeLE)(G,J))G=(0,m2.mod)(-G,J);return{isValid:H||U,value:G}}var F1=(()=>(0,m2.Field)(e$.p,{isLE:!0}))(),PN=(()=>(0,m2.Field)(e$.n,{isLE:!0}))(),oW=(()=>({...e$,Fp:F1,hash:t$.sha512,adjustScalarBytes:RN,uvRatio:nW}))();SN.ed25519=(()=>(0,UQ.twistedEdwards)(oW))();function ON($,V,J){if(V.length>255)throw Error("Context is too big");return(0,HQ.concatBytes)((0,HQ.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([J?1:0,V.length]),V,$)}SN.ed25519ctx=(()=>(0,UQ.twistedEdwards)({...oW,domain:ON}))();SN.ed25519ph=(()=>(0,UQ.twistedEdwards)(Object.assign({},oW,{domain:ON,prehash:t$.sha512})))();SN.x25519=(()=>{let $=F1.ORDER;return(0,kl.montgomery)({P:$,type:"x25519",powPminus2:(V)=>{let{pow_p_5_8:J,b2:Q}=LN(V);return(0,m2.mod)((0,m2.pow2)(J,NN,$)*Q,$)},adjustScalarBytes:RN})})();var vl=(()=>($8+NN)/cW)(),hl=(()=>F1.pow(ZQ,vl))(),wN=(()=>F1.sqrt(F1.neg(F1.ONE)))();function xl($){let V=($8-MN)/cW,J=BigInt(486662),Q=F1.sqr($);Q=F1.mul(Q,ZQ);let X=F1.add(Q,F1.ONE),Y=F1.neg(J),G=F1.sqr(X),W=F1.mul(G,X),K=F1.mul(Q,J);K=F1.mul(K,Y),K=F1.add(K,G),K=F1.mul(K,Y);let D=F1.sqr(W);G=F1.sqr(D),D=F1.mul(D,W),D=F1.mul(D,K),G=F1.mul(G,D);let H=F1.pow(G,V);H=F1.mul(H,D);let U=F1.mul(H,wN);G=F1.sqr(H),G=F1.mul(G,W);let z=F1.eql(G,K),M=F1.cmov(U,H,z),L=F1.mul(Y,Q),B=F1.mul(H,$);B=F1.mul(B,hl);let _=F1.mul(B,wN),T=F1.mul(K,Q);G=F1.sqr(B),G=F1.mul(G,W);let h=F1.eql(G,T),A=F1.cmov(_,B,h);G=F1.sqr(M),G=F1.mul(G,W);let E=F1.eql(G,K),y=F1.cmov(L,Y,E),l=F1.cmov(A,M,E),f=F1.isOdd(l);return l=F1.cmov(l,F1.neg(l),E!==f),{xMn:y,xMd:X,yMn:l,yMd:e6}}var dl=(()=>(0,m2.FpSqrtEven)(F1,F1.neg(BigInt(486664))))();function yl($){let{xMn:V,xMd:J,yMn:Q,yMd:X}=xl($),Y=F1.mul(V,X);Y=F1.mul(Y,dl);let G=F1.mul(J,Q),W=F1.sub(V,J),K=F1.add(V,J),D=F1.mul(G,K),H=F1.eql(D,F1.ZERO);Y=F1.cmov(Y,F1.ZERO,H),G=F1.cmov(G,F1.ONE,H),W=F1.cmov(W,F1.ONE,H),K=F1.cmov(K,F1.ONE,H);let[U,z]=(0,m2.FpInvertBatch)(F1,[G,K],!0);return{x:F1.mul(Y,U),y:F1.mul(W,z)}}SN.ed25519_hasher=(()=>(0,DQ.createHasher)(SN.ed25519.Point,($)=>yl($[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:$8,m:1,k:128,expand:"xmd",hash:t$.sha512}))();var aW=uW,bl=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),gl=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),ll=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),fl=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),zN=($)=>nW(e6,$),ul=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),iW=($)=>SN.ed25519.Point.Fp.create((0,s5.bytesToNumberLE)($)&ul);function jN($){let{d:V}=e$,J=$8,Q=(T)=>F1.create(T),X=Q(aW*$*$),Y=Q((X+e6)*ll),G=BigInt(-1),W=Q((G-V*X)*Q(X+V)),{isValid:K,value:D}=nW(Y,W),H=Q(D*$);if(!(0,m2.isNegativeLE)(H,J))H=Q(-H);if(!K)D=H;if(!K)G=X;let U=Q(G*(X-e6)*fl-W),z=D*D,M=Q((D+D)*W),L=Q(U*bl),B=Q(e6-z),_=Q(e6+z);return new SN.ed25519.Point(Q(M*_),Q(B*L),Q(L*_),Q(M*B))}function FN($){(0,HQ.abytes)($,64);let V=iW($.subarray(0,32)),J=jN(V),Q=iW($.subarray(32,64)),X=jN(Q);return new t0(J.add(X))}class t0 extends UQ.PrimeEdwardsPoint{constructor($){super($)}static fromAffine($){return new t0(SN.ed25519.Point.fromAffine($))}assertSame($){if(!($ instanceof t0))throw Error("RistrettoPoint expected")}init($){return new t0($)}static hashToCurve($){return FN((0,s5.ensureBytes)("ristrettoHash",$,64))}static fromBytes($){(0,HQ.abytes)($,32);let{a:V,d:J}=e$,Q=$8,X=(A)=>F1.create(A),Y=iW($);if(!(0,s5.equalBytes)(F1.toBytes(Y),$)||(0,m2.isNegativeLE)(Y,Q))throw Error("invalid ristretto255 encoding 1");let G=X(Y*Y),W=X(e6+V*G),K=X(e6-V*G),D=X(W*W),H=X(K*K),U=X(V*J*D-H),{isValid:z,value:M}=zN(X(U*H)),L=X(M*K),B=X(M*L*U),_=X((Y+Y)*L);if((0,m2.isNegativeLE)(_,Q))_=X(-_);let T=X(W*B),h=X(_*T);if(!z||(0,m2.isNegativeLE)(h,Q)||T===El)throw Error("invalid ristretto255 encoding 2");return new t0(new SN.ed25519.Point(_,T,e6,h))}static fromHex($){return t0.fromBytes((0,s5.ensureBytes)("ristrettoHex",$,32))}static msm($,V){return(0,ml.pippenger)(t0,SN.ed25519.Point.Fn,$,V)}toBytes(){let{X:$,Y:V,Z:J,T:Q}=this.ep,X=$8,Y=(B)=>F1.create(B),G=Y(Y(J+V)*Y(J-V)),W=Y($*V),K=Y(W*W),{value:D}=zN(Y(G*K)),H=Y(D*G),U=Y(D*W),z=Y(H*U*Q),M;if((0,m2.isNegativeLE)(Q*z,X)){let B=Y(V*aW),_=Y($*aW);$=B,V=_,M=Y(H*gl)}else M=U;if((0,m2.isNegativeLE)($*z,X))V=Y(-V);let L=Y((J-V)*M);if((0,m2.isNegativeLE)(L,X))L=Y(-L);return F1.toBytes(L)}equals($){this.assertSame($);let{X:V,Y:J}=this.ep,{X:Q,Y:X}=$.ep,Y=(K)=>F1.create(K),G=Y(V*X)===Y(J*Q),W=Y(J*X)===Y(V*Q);return G||W}is0(){return this.equals(t0.ZERO)}}t0.BASE=(()=>new t0(SN.ed25519.Point.BASE))();t0.ZERO=(()=>new t0(SN.ed25519.Point.ZERO))();t0.Fp=(()=>F1)();t0.Fn=(()=>PN)();SN.ristretto255={Point:t0};SN.ristretto255_hasher={hashToCurve($,V){let J=V?.DST||"ristretto255_XMD:SHA-512_R255MAP_RO_",Q=(0,DQ.expand_message_xmd)($,J,64,t$.sha512);return FN(Q)},hashToScalar($,V={DST:DQ._DST_scalar}){let J=(0,DQ.expand_message_xmd)($,V.DST,64,t$.sha512);return PN.create((0,s5.bytesToNumberLE)(J))}};SN.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];function BN($){return SN.ed25519.utils.toMontgomery((0,s5.ensureBytes)("pub",$))}SN.edwardsToMontgomery=BN;function al($){return SN.ed25519.utils.toMontgomerySecret((0,s5.ensureBytes)("pub",$))}SN.RistrettoPoint=t0;SN.hashToCurve=(()=>SN.ed25519_hasher.hashToCurve)();SN.encodeToCurve=(()=>SN.ed25519_hasher.encodeToCurve)();SN.hashToRistretto255=(()=>SN.ristretto255_hasher.hashToCurve)();SN.hash_to_ristretto255=(()=>SN.ristretto255_hasher.hashToCurve)()});var eW=M1((IN,tW)=>{(function($,V){function J(S,q){if(!S)throw Error(q||"Assertion failed")}function Q(S,q){S.super_=q;var Z=function(){};Z.prototype=q.prototype,S.prototype=new Z,S.prototype.constructor=S}function X(S,q,Z){if(X.isBN(S))return S;if(this.negative=0,this.words=null,this.length=0,this.red=null,S!==null){if(q==="le"||q==="be")Z=q,q=10;this._init(S||0,q||10,Z||"be")}}if(typeof $==="object")$.exports=X;else V.BN=X;X.BN=X,X.wordSize=26;var Y;try{if(typeof window<"u"&&typeof window.Buffer<"u")Y=window.Buffer;else Y=k1("buffer").Buffer}catch(S){}X.isBN=function(q){if(q instanceof X)return!0;return q!==null&&typeof q==="object"&&q.constructor.wordSize===X.wordSize&&Array.isArray(q.words)},X.max=function(q,Z){if(q.cmp(Z)>0)return q;return Z},X.min=function(q,Z){if(q.cmp(Z)<0)return q;return Z},X.prototype._init=function(q,Z,R){if(typeof q==="number")return this._initNumber(q,Z,R);if(typeof q==="object")return this._initArray(q,Z,R);if(Z==="hex")Z=16;J(Z===(Z|0)&&Z>=2&&Z<=36),q=q.toString().replace(/\s+/g,"");var O=0;if(q[0]==="-")O++,this.negative=1;if(O<q.length){if(Z===16)this._parseHex(q,O,R);else if(this._parseBase(q,Z,O),R==="le")this._initArray(this.toArray(),Z,R)}},X.prototype._initNumber=function(q,Z,R){if(q<0)this.negative=1,q=-q;if(q<67108864)this.words=[q&67108863],this.length=1;else if(q<4503599627370496)this.words=[q&67108863,q/67108864&67108863],this.length=2;else J(q<9007199254740992),this.words=[q&67108863,q/67108864&67108863,1],this.length=3;if(R!=="le")return;this._initArray(this.toArray(),Z,R)},X.prototype._initArray=function(q,Z,R){if(J(typeof q.length==="number"),q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(q.length/3),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F,m,x=0;if(R==="be"){for(O=q.length-1,F=0;O>=0;O-=3)if(m=q[O]|q[O-1]<<8|q[O-2]<<16,this.words[F]|=m<<x&67108863,this.words[F+1]=m>>>26-x&67108863,x+=24,x>=26)x-=26,F++}else if(R==="le"){for(O=0,F=0;O<q.length;O+=3)if(m=q[O]|q[O+1]<<8|q[O+2]<<16,this.words[F]|=m<<x&67108863,this.words[F+1]=m>>>26-x&67108863,x+=24,x>=26)x-=26,F++}return this._strip()};function G(S,q){var Z=S.charCodeAt(q);if(Z>=48&&Z<=57)return Z-48;else if(Z>=65&&Z<=70)return Z-55;else if(Z>=97&&Z<=102)return Z-87;else J(!1,"Invalid character in "+S)}function W(S,q,Z){var R=G(S,Z);if(Z-1>=q)R|=G(S,Z-1)<<4;return R}X.prototype._parseHex=function(q,Z,R){this.length=Math.ceil((q.length-Z)/6),this.words=Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var F=0,m=0,x;if(R==="be")for(O=q.length-1;O>=Z;O-=2)if(x=W(q,Z,O)<<F,this.words[m]|=x&67108863,F>=18)F-=18,m+=1,this.words[m]|=x>>>26;else F+=8;else{var p=q.length-Z;for(O=p%2===0?Z+1:Z;O<q.length;O+=2)if(x=W(q,Z,O)<<F,this.words[m]|=x&67108863,F>=18)F-=18,m+=1,this.words[m]|=x>>>26;else F+=8}this._strip()};function K(S,q,Z,R){var O=0,F=0,m=Math.min(S.length,Z);for(var x=q;x<m;x++){var p=S.charCodeAt(x)-48;if(O*=R,p>=49)F=p-49+10;else if(p>=17)F=p-17+10;else F=p;J(p>=0&&F<R,"Invalid character"),O+=F}return O}X.prototype._parseBase=function(q,Z,R){this.words=[0],this.length=1;for(var O=0,F=1;F<=67108863;F*=Z)O++;O--,F=F/Z|0;var m=q.length-R,x=m%O,p=Math.min(m,m-x)+R,N=0;for(var v=R;v<p;v+=O)if(N=K(q,v,v+O,Z),this.imuln(F),this.words[0]+N<67108864)this.words[0]+=N;else this._iaddn(N);if(x!==0){var $1=1;N=K(q,v,q.length,Z);for(v=0;v<x;v++)$1*=Z;if(this.imuln($1),this.words[0]+N<67108864)this.words[0]+=N;else this._iaddn(N)}this._strip()},X.prototype.copy=function(q){q.words=Array(this.length);for(var Z=0;Z<this.length;Z++)q.words[Z]=this.words[Z];q.length=this.length,q.negative=this.negative,q.red=this.red};function D(S,q){S.words=q.words,S.length=q.length,S.negative=q.negative,S.red=q.red}if(X.prototype._move=function(q){D(q,this)},X.prototype.clone=function(){var q=new X(null);return this.copy(q),q},X.prototype._expand=function(q){while(this.length<q)this.words[this.length++]=0;return this},X.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},X.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{X.prototype[Symbol.for("nodejs.util.inspect.custom")]=H}catch(S){X.prototype.inspect=H}else X.prototype.inspect=H;function H(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var U=["","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"],z=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(X.prototype.toString=function(q,Z){q=q||10,Z=Z|0||1;var R;if(q===16||q==="hex"){R="";var O=0,F=0;for(var m=0;m<this.length;m++){var x=this.words[m],p=((x<<O|F)&16777215).toString(16);if(F=x>>>24-O&16777215,O+=2,O>=26)O-=26,m--;if(F!==0||m!==this.length-1)R=U[6-p.length]+p+R;else R=p+R}if(F!==0)R=F.toString(16)+R;while(R.length%Z!==0)R="0"+R;if(this.negative!==0)R="-"+R;return R}if(q===(q|0)&&q>=2&&q<=36){var N=z[q],v=M[q];R="";var $1=this.clone();$1.negative=0;while(!$1.isZero()){var G1=$1.modrn(v).toString(q);if($1=$1.idivn(v),!$1.isZero())R=U[N-G1.length]+G1+R;else R=G1+R}if(this.isZero())R="0"+R;while(R.length%Z!==0)R="0"+R;if(this.negative!==0)R="-"+R;return R}J(!1,"Base should be between 2 and 36")},X.prototype.toNumber=function(){var q=this.words[0];if(this.length===2)q+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)q+=4503599627370496+this.words[1]*67108864;else if(this.length>2)J(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-q:q},X.prototype.toJSON=function(){return this.toString(16,2)},Y)X.prototype.toBuffer=function(q,Z){return this.toArrayLike(Y,q,Z)};X.prototype.toArray=function(q,Z){return this.toArrayLike(Array,q,Z)};var L=function(q,Z){if(q.allocUnsafe)return q.allocUnsafe(Z);return new q(Z)};if(X.prototype.toArrayLike=function(q,Z,R){this._strip();var O=this.byteLength(),F=R||Math.max(1,O);J(O<=F,"byte array longer than desired length"),J(F>0,"Requested array length <= 0");var m=L(q,F),x=Z==="le"?"LE":"BE";return this["_toArrayLike"+x](m,O),m},X.prototype._toArrayLikeLE=function(q,Z){var R=0,O=0;for(var F=0,m=0;F<this.length;F++){var x=this.words[F]<<m|O;if(q[R++]=x&255,R<q.length)q[R++]=x>>8&255;if(R<q.length)q[R++]=x>>16&255;if(m===6){if(R<q.length)q[R++]=x>>24&255;O=0,m=0}else O=x>>>24,m+=2}if(R<q.length){q[R++]=O;while(R<q.length)q[R++]=0}},X.prototype._toArrayLikeBE=function(q,Z){var R=q.length-1,O=0;for(var F=0,m=0;F<this.length;F++){var x=this.words[F]<<m|O;if(q[R--]=x&255,R>=0)q[R--]=x>>8&255;if(R>=0)q[R--]=x>>16&255;if(m===6){if(R>=0)q[R--]=x>>24&255;O=0,m=0}else O=x>>>24,m+=2}if(R>=0){q[R--]=O;while(R>=0)q[R--]=0}},Math.clz32)X.prototype._countBits=function(q){return 32-Math.clz32(q)};else X.prototype._countBits=function(q){var Z=q,R=0;if(Z>=4096)R+=13,Z>>>=13;if(Z>=64)R+=7,Z>>>=7;if(Z>=8)R+=4,Z>>>=4;if(Z>=2)R+=2,Z>>>=2;return R+Z};X.prototype._zeroBits=function(q){if(q===0)return 26;var Z=q,R=0;if((Z&8191)===0)R+=13,Z>>>=13;if((Z&127)===0)R+=7,Z>>>=7;if((Z&15)===0)R+=4,Z>>>=4;if((Z&3)===0)R+=2,Z>>>=2;if((Z&1)===0)R++;return R},X.prototype.bitLength=function(){var q=this.words[this.length-1],Z=this._countBits(q);return(this.length-1)*26+Z};function B(S){var q=Array(S.bitLength());for(var Z=0;Z<q.length;Z++){var R=Z/26|0,O=Z%26;q[Z]=S.words[R]>>>O&1}return q}X.prototype.zeroBits=function(){if(this.isZero())return 0;var q=0;for(var Z=0;Z<this.length;Z++){var R=this._zeroBits(this.words[Z]);if(q+=R,R!==26)break}return q},X.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},X.prototype.toTwos=function(q){if(this.negative!==0)return this.abs().inotn(q).iaddn(1);return this.clone()},X.prototype.fromTwos=function(q){if(this.testn(q-1))return this.notn(q).iaddn(1).ineg();return this.clone()},X.prototype.isNeg=function(){return this.negative!==0},X.prototype.neg=function(){return this.clone().ineg()},X.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},X.prototype.iuor=function(q){while(this.length<q.length)this.words[this.length++]=0;for(var Z=0;Z<q.length;Z++)this.words[Z]=this.words[Z]|q.words[Z];return this._strip()},X.prototype.ior=function(q){return J((this.negative|q.negative)===0),this.iuor(q)},X.prototype.or=function(q){if(this.length>q.length)return this.clone().ior(q);return q.clone().ior(this)},X.prototype.uor=function(q){if(this.length>q.length)return this.clone().iuor(q);return q.clone().iuor(this)},X.prototype.iuand=function(q){var Z;if(this.length>q.length)Z=q;else Z=this;for(var R=0;R<Z.length;R++)this.words[R]=this.words[R]&q.words[R];return this.length=Z.length,this._strip()},X.prototype.iand=function(q){return J((this.negative|q.negative)===0),this.iuand(q)},X.prototype.and=function(q){if(this.length>q.length)return this.clone().iand(q);return q.clone().iand(this)},X.prototype.uand=function(q){if(this.length>q.length)return this.clone().iuand(q);return q.clone().iuand(this)},X.prototype.iuxor=function(q){var Z,R;if(this.length>q.length)Z=this,R=q;else Z=q,R=this;for(var O=0;O<R.length;O++)this.words[O]=Z.words[O]^R.words[O];if(this!==Z)for(;O<Z.length;O++)this.words[O]=Z.words[O];return this.length=Z.length,this._strip()},X.prototype.ixor=function(q){return J((this.negative|q.negative)===0),this.iuxor(q)},X.prototype.xor=function(q){if(this.length>q.length)return this.clone().ixor(q);return q.clone().ixor(this)},X.prototype.uxor=function(q){if(this.length>q.length)return this.clone().iuxor(q);return q.clone().iuxor(this)},X.prototype.inotn=function(q){J(typeof q==="number"&&q>=0);var Z=Math.ceil(q/26)|0,R=q%26;if(this._expand(Z),R>0)Z--;for(var O=0;O<Z;O++)this.words[O]=~this.words[O]&67108863;if(R>0)this.words[O]=~this.words[O]&67108863>>26-R;return this._strip()},X.prototype.notn=function(q){return this.clone().inotn(q)},X.prototype.setn=function(q,Z){J(typeof q==="number"&&q>=0);var R=q/26|0,O=q%26;if(this._expand(R+1),Z)this.words[R]=this.words[R]|1<<O;else this.words[R]=this.words[R]&~(1<<O);return this._strip()},X.prototype.iadd=function(q){var Z;if(this.negative!==0&&q.negative===0)return this.negative=0,Z=this.isub(q),this.negative^=1,this._normSign();else if(this.negative===0&&q.negative!==0)return q.negative=0,Z=this.isub(q),q.negative=1,Z._normSign();var R,O;if(this.length>q.length)R=this,O=q;else R=q,O=this;var F=0;for(var m=0;m<O.length;m++)Z=(R.words[m]|0)+(O.words[m]|0)+F,this.words[m]=Z&67108863,F=Z>>>26;for(;F!==0&&m<R.length;m++)Z=(R.words[m]|0)+F,this.words[m]=Z&67108863,F=Z>>>26;if(this.length=R.length,F!==0)this.words[this.length]=F,this.length++;else if(R!==this)for(;m<R.length;m++)this.words[m]=R.words[m];return this},X.prototype.add=function(q){var Z;if(q.negative!==0&&this.negative===0)return q.negative=0,Z=this.sub(q),q.negative^=1,Z;else if(q.negative===0&&this.negative!==0)return this.negative=0,Z=q.sub(this),this.negative=1,Z;if(this.length>q.length)return this.clone().iadd(q);return q.clone().iadd(this)},X.prototype.isub=function(q){if(q.negative!==0){q.negative=0;var Z=this.iadd(q);return q.negative=1,Z._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(q),this.negative=1,this._normSign();var R=this.cmp(q);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,F;if(R>0)O=this,F=q;else O=q,F=this;var m=0;for(var x=0;x<F.length;x++)Z=(O.words[x]|0)-(F.words[x]|0)+m,m=Z>>26,this.words[x]=Z&67108863;for(;m!==0&&x<O.length;x++)Z=(O.words[x]|0)+m,m=Z>>26,this.words[x]=Z&67108863;if(m===0&&x<O.length&&O!==this)for(;x<O.length;x++)this.words[x]=O.words[x];if(this.length=Math.max(this.length,x),O!==this)this.negative=1;return this._strip()},X.prototype.sub=function(q){return this.clone().isub(q)};function _(S,q,Z){Z.negative=q.negative^S.negative;var R=S.length+q.length|0;Z.length=R,R=R-1|0;var O=S.words[0]|0,F=q.words[0]|0,m=O*F,x=m&67108863,p=m/67108864|0;Z.words[0]=x;for(var N=1;N<R;N++){var v=p>>>26,$1=p&67108863,G1=Math.min(N,q.length-1);for(var H1=Math.max(0,N-S.length+1);H1<=G1;H1++){var B1=N-H1|0;O=S.words[B1]|0,F=q.words[H1]|0,m=O*F+$1,v+=m/67108864|0,$1=m&67108863}Z.words[N]=$1|0,p=v|0}if(p!==0)Z.words[N]=p|0;else Z.length--;return Z._strip()}var T=function(q,Z,R){var O=q.words,F=Z.words,m=R.words,x=0,p,N,v,$1=O[0]|0,G1=$1&8191,H1=$1>>>13,B1=O[1]|0,A1=B1&8191,m1=B1>>>13,y2=O[2]|0,V2=y2&8191,$2=y2>>>13,T0=O[3]|0,O2=T0&8191,R2=T0>>>13,i6=O[4]|0,Q0=i6&8191,x2=i6>>>13,c6=O[5]|0,X0=c6&8191,s2=c6>>>13,V5=O[6]|0,c2=V5&8191,r2=V5>>>13,R9=O[7]|0,d=R9&8191,n=R9>>>13,s=O[8]|0,e=s&8191,w1=s>>>13,b1=O[9]|0,h1=b1&8191,d1=b1>>>13,t2=F[0]|0,J2=t2&8191,F2=t2>>>13,n6=F[1]|0,l2=n6&8191,b2=n6>>>13,i$=F[2]|0,z0=i$&8191,j0=i$>>>13,Q6=F[3]|0,f2=Q6&8191,n2=Q6>>>13,n7=F[4]|0,W0=n7&8191,q0=n7>>>13,tJ=F[5]|0,B2=tJ&8191,D0=tJ>>>13,P=F[6]|0,I=P&8191,C=P>>>13,w=F[7]|0,k=w&8191,c=w>>>13,r=F[8]|0,Q1=r&8191,W1=r>>>13,p1=F[9]|0,j1=p1&8191,y1=p1>>>13;R.negative=q.negative^Z.negative,R.length=19,p=Math.imul(G1,J2),N=Math.imul(G1,F2),N=N+Math.imul(H1,J2)|0,v=Math.imul(H1,F2);var S1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(S1>>>26)|0,S1&=67108863,p=Math.imul(A1,J2),N=Math.imul(A1,F2),N=N+Math.imul(m1,J2)|0,v=Math.imul(m1,F2),p=p+Math.imul(G1,l2)|0,N=N+Math.imul(G1,b2)|0,N=N+Math.imul(H1,l2)|0,v=v+Math.imul(H1,b2)|0;var f1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(f1>>>26)|0,f1&=67108863,p=Math.imul(V2,J2),N=Math.imul(V2,F2),N=N+Math.imul($2,J2)|0,v=Math.imul($2,F2),p=p+Math.imul(A1,l2)|0,N=N+Math.imul(A1,b2)|0,N=N+Math.imul(m1,l2)|0,v=v+Math.imul(m1,b2)|0,p=p+Math.imul(G1,z0)|0,N=N+Math.imul(G1,j0)|0,N=N+Math.imul(H1,z0)|0,v=v+Math.imul(H1,j0)|0;var a1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(a1>>>26)|0,a1&=67108863,p=Math.imul(O2,J2),N=Math.imul(O2,F2),N=N+Math.imul(R2,J2)|0,v=Math.imul(R2,F2),p=p+Math.imul(V2,l2)|0,N=N+Math.imul(V2,b2)|0,N=N+Math.imul($2,l2)|0,v=v+Math.imul($2,b2)|0,p=p+Math.imul(A1,z0)|0,N=N+Math.imul(A1,j0)|0,N=N+Math.imul(m1,z0)|0,v=v+Math.imul(m1,j0)|0,p=p+Math.imul(G1,f2)|0,N=N+Math.imul(G1,n2)|0,N=N+Math.imul(H1,f2)|0,v=v+Math.imul(H1,n2)|0;var t1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(t1>>>26)|0,t1&=67108863,p=Math.imul(Q0,J2),N=Math.imul(Q0,F2),N=N+Math.imul(x2,J2)|0,v=Math.imul(x2,F2),p=p+Math.imul(O2,l2)|0,N=N+Math.imul(O2,b2)|0,N=N+Math.imul(R2,l2)|0,v=v+Math.imul(R2,b2)|0,p=p+Math.imul(V2,z0)|0,N=N+Math.imul(V2,j0)|0,N=N+Math.imul($2,z0)|0,v=v+Math.imul($2,j0)|0,p=p+Math.imul(A1,f2)|0,N=N+Math.imul(A1,n2)|0,N=N+Math.imul(m1,f2)|0,v=v+Math.imul(m1,n2)|0,p=p+Math.imul(G1,W0)|0,N=N+Math.imul(G1,q0)|0,N=N+Math.imul(H1,W0)|0,v=v+Math.imul(H1,q0)|0;var r1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(r1>>>26)|0,r1&=67108863,p=Math.imul(X0,J2),N=Math.imul(X0,F2),N=N+Math.imul(s2,J2)|0,v=Math.imul(s2,F2),p=p+Math.imul(Q0,l2)|0,N=N+Math.imul(Q0,b2)|0,N=N+Math.imul(x2,l2)|0,v=v+Math.imul(x2,b2)|0,p=p+Math.imul(O2,z0)|0,N=N+Math.imul(O2,j0)|0,N=N+Math.imul(R2,z0)|0,v=v+Math.imul(R2,j0)|0,p=p+Math.imul(V2,f2)|0,N=N+Math.imul(V2,n2)|0,N=N+Math.imul($2,f2)|0,v=v+Math.imul($2,n2)|0,p=p+Math.imul(A1,W0)|0,N=N+Math.imul(A1,q0)|0,N=N+Math.imul(m1,W0)|0,v=v+Math.imul(m1,q0)|0,p=p+Math.imul(G1,B2)|0,N=N+Math.imul(G1,D0)|0,N=N+Math.imul(H1,B2)|0,v=v+Math.imul(H1,D0)|0;var i1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(i1>>>26)|0,i1&=67108863,p=Math.imul(c2,J2),N=Math.imul(c2,F2),N=N+Math.imul(r2,J2)|0,v=Math.imul(r2,F2),p=p+Math.imul(X0,l2)|0,N=N+Math.imul(X0,b2)|0,N=N+Math.imul(s2,l2)|0,v=v+Math.imul(s2,b2)|0,p=p+Math.imul(Q0,z0)|0,N=N+Math.imul(Q0,j0)|0,N=N+Math.imul(x2,z0)|0,v=v+Math.imul(x2,j0)|0,p=p+Math.imul(O2,f2)|0,N=N+Math.imul(O2,n2)|0,N=N+Math.imul(R2,f2)|0,v=v+Math.imul(R2,n2)|0,p=p+Math.imul(V2,W0)|0,N=N+Math.imul(V2,q0)|0,N=N+Math.imul($2,W0)|0,v=v+Math.imul($2,q0)|0,p=p+Math.imul(A1,B2)|0,N=N+Math.imul(A1,D0)|0,N=N+Math.imul(m1,B2)|0,v=v+Math.imul(m1,D0)|0,p=p+Math.imul(G1,I)|0,N=N+Math.imul(G1,C)|0,N=N+Math.imul(H1,I)|0,v=v+Math.imul(H1,C)|0;var n1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(n1>>>26)|0,n1&=67108863,p=Math.imul(d,J2),N=Math.imul(d,F2),N=N+Math.imul(n,J2)|0,v=Math.imul(n,F2),p=p+Math.imul(c2,l2)|0,N=N+Math.imul(c2,b2)|0,N=N+Math.imul(r2,l2)|0,v=v+Math.imul(r2,b2)|0,p=p+Math.imul(X0,z0)|0,N=N+Math.imul(X0,j0)|0,N=N+Math.imul(s2,z0)|0,v=v+Math.imul(s2,j0)|0,p=p+Math.imul(Q0,f2)|0,N=N+Math.imul(Q0,n2)|0,N=N+Math.imul(x2,f2)|0,v=v+Math.imul(x2,n2)|0,p=p+Math.imul(O2,W0)|0,N=N+Math.imul(O2,q0)|0,N=N+Math.imul(R2,W0)|0,v=v+Math.imul(R2,q0)|0,p=p+Math.imul(V2,B2)|0,N=N+Math.imul(V2,D0)|0,N=N+Math.imul($2,B2)|0,v=v+Math.imul($2,D0)|0,p=p+Math.imul(A1,I)|0,N=N+Math.imul(A1,C)|0,N=N+Math.imul(m1,I)|0,v=v+Math.imul(m1,C)|0,p=p+Math.imul(G1,k)|0,N=N+Math.imul(G1,c)|0,N=N+Math.imul(H1,k)|0,v=v+Math.imul(H1,c)|0;var c1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(c1>>>26)|0,c1&=67108863,p=Math.imul(e,J2),N=Math.imul(e,F2),N=N+Math.imul(w1,J2)|0,v=Math.imul(w1,F2),p=p+Math.imul(d,l2)|0,N=N+Math.imul(d,b2)|0,N=N+Math.imul(n,l2)|0,v=v+Math.imul(n,b2)|0,p=p+Math.imul(c2,z0)|0,N=N+Math.imul(c2,j0)|0,N=N+Math.imul(r2,z0)|0,v=v+Math.imul(r2,j0)|0,p=p+Math.imul(X0,f2)|0,N=N+Math.imul(X0,n2)|0,N=N+Math.imul(s2,f2)|0,v=v+Math.imul(s2,n2)|0,p=p+Math.imul(Q0,W0)|0,N=N+Math.imul(Q0,q0)|0,N=N+Math.imul(x2,W0)|0,v=v+Math.imul(x2,q0)|0,p=p+Math.imul(O2,B2)|0,N=N+Math.imul(O2,D0)|0,N=N+Math.imul(R2,B2)|0,v=v+Math.imul(R2,D0)|0,p=p+Math.imul(V2,I)|0,N=N+Math.imul(V2,C)|0,N=N+Math.imul($2,I)|0,v=v+Math.imul($2,C)|0,p=p+Math.imul(A1,k)|0,N=N+Math.imul(A1,c)|0,N=N+Math.imul(m1,k)|0,v=v+Math.imul(m1,c)|0,p=p+Math.imul(G1,Q1)|0,N=N+Math.imul(G1,W1)|0,N=N+Math.imul(H1,Q1)|0,v=v+Math.imul(H1,W1)|0;var C1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(C1>>>26)|0,C1&=67108863,p=Math.imul(h1,J2),N=Math.imul(h1,F2),N=N+Math.imul(d1,J2)|0,v=Math.imul(d1,F2),p=p+Math.imul(e,l2)|0,N=N+Math.imul(e,b2)|0,N=N+Math.imul(w1,l2)|0,v=v+Math.imul(w1,b2)|0,p=p+Math.imul(d,z0)|0,N=N+Math.imul(d,j0)|0,N=N+Math.imul(n,z0)|0,v=v+Math.imul(n,j0)|0,p=p+Math.imul(c2,f2)|0,N=N+Math.imul(c2,n2)|0,N=N+Math.imul(r2,f2)|0,v=v+Math.imul(r2,n2)|0,p=p+Math.imul(X0,W0)|0,N=N+Math.imul(X0,q0)|0,N=N+Math.imul(s2,W0)|0,v=v+Math.imul(s2,q0)|0,p=p+Math.imul(Q0,B2)|0,N=N+Math.imul(Q0,D0)|0,N=N+Math.imul(x2,B2)|0,v=v+Math.imul(x2,D0)|0,p=p+Math.imul(O2,I)|0,N=N+Math.imul(O2,C)|0,N=N+Math.imul(R2,I)|0,v=v+Math.imul(R2,C)|0,p=p+Math.imul(V2,k)|0,N=N+Math.imul(V2,c)|0,N=N+Math.imul($2,k)|0,v=v+Math.imul($2,c)|0,p=p+Math.imul(A1,Q1)|0,N=N+Math.imul(A1,W1)|0,N=N+Math.imul(m1,Q1)|0,v=v+Math.imul(m1,W1)|0,p=p+Math.imul(G1,j1)|0,N=N+Math.imul(G1,y1)|0,N=N+Math.imul(H1,j1)|0,v=v+Math.imul(H1,y1)|0;var E1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(E1>>>26)|0,E1&=67108863,p=Math.imul(h1,l2),N=Math.imul(h1,b2),N=N+Math.imul(d1,l2)|0,v=Math.imul(d1,b2),p=p+Math.imul(e,z0)|0,N=N+Math.imul(e,j0)|0,N=N+Math.imul(w1,z0)|0,v=v+Math.imul(w1,j0)|0,p=p+Math.imul(d,f2)|0,N=N+Math.imul(d,n2)|0,N=N+Math.imul(n,f2)|0,v=v+Math.imul(n,n2)|0,p=p+Math.imul(c2,W0)|0,N=N+Math.imul(c2,q0)|0,N=N+Math.imul(r2,W0)|0,v=v+Math.imul(r2,q0)|0,p=p+Math.imul(X0,B2)|0,N=N+Math.imul(X0,D0)|0,N=N+Math.imul(s2,B2)|0,v=v+Math.imul(s2,D0)|0,p=p+Math.imul(Q0,I)|0,N=N+Math.imul(Q0,C)|0,N=N+Math.imul(x2,I)|0,v=v+Math.imul(x2,C)|0,p=p+Math.imul(O2,k)|0,N=N+Math.imul(O2,c)|0,N=N+Math.imul(R2,k)|0,v=v+Math.imul(R2,c)|0,p=p+Math.imul(V2,Q1)|0,N=N+Math.imul(V2,W1)|0,N=N+Math.imul($2,Q1)|0,v=v+Math.imul($2,W1)|0,p=p+Math.imul(A1,j1)|0,N=N+Math.imul(A1,y1)|0,N=N+Math.imul(m1,j1)|0,v=v+Math.imul(m1,y1)|0;var O1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(O1>>>26)|0,O1&=67108863,p=Math.imul(h1,z0),N=Math.imul(h1,j0),N=N+Math.imul(d1,z0)|0,v=Math.imul(d1,j0),p=p+Math.imul(e,f2)|0,N=N+Math.imul(e,n2)|0,N=N+Math.imul(w1,f2)|0,v=v+Math.imul(w1,n2)|0,p=p+Math.imul(d,W0)|0,N=N+Math.imul(d,q0)|0,N=N+Math.imul(n,W0)|0,v=v+Math.imul(n,q0)|0,p=p+Math.imul(c2,B2)|0,N=N+Math.imul(c2,D0)|0,N=N+Math.imul(r2,B2)|0,v=v+Math.imul(r2,D0)|0,p=p+Math.imul(X0,I)|0,N=N+Math.imul(X0,C)|0,N=N+Math.imul(s2,I)|0,v=v+Math.imul(s2,C)|0,p=p+Math.imul(Q0,k)|0,N=N+Math.imul(Q0,c)|0,N=N+Math.imul(x2,k)|0,v=v+Math.imul(x2,c)|0,p=p+Math.imul(O2,Q1)|0,N=N+Math.imul(O2,W1)|0,N=N+Math.imul(R2,Q1)|0,v=v+Math.imul(R2,W1)|0,p=p+Math.imul(V2,j1)|0,N=N+Math.imul(V2,y1)|0,N=N+Math.imul($2,j1)|0,v=v+Math.imul($2,y1)|0;var I1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(I1>>>26)|0,I1&=67108863,p=Math.imul(h1,f2),N=Math.imul(h1,n2),N=N+Math.imul(d1,f2)|0,v=Math.imul(d1,n2),p=p+Math.imul(e,W0)|0,N=N+Math.imul(e,q0)|0,N=N+Math.imul(w1,W0)|0,v=v+Math.imul(w1,q0)|0,p=p+Math.imul(d,B2)|0,N=N+Math.imul(d,D0)|0,N=N+Math.imul(n,B2)|0,v=v+Math.imul(n,D0)|0,p=p+Math.imul(c2,I)|0,N=N+Math.imul(c2,C)|0,N=N+Math.imul(r2,I)|0,v=v+Math.imul(r2,C)|0,p=p+Math.imul(X0,k)|0,N=N+Math.imul(X0,c)|0,N=N+Math.imul(s2,k)|0,v=v+Math.imul(s2,c)|0,p=p+Math.imul(Q0,Q1)|0,N=N+Math.imul(Q0,W1)|0,N=N+Math.imul(x2,Q1)|0,v=v+Math.imul(x2,W1)|0,p=p+Math.imul(O2,j1)|0,N=N+Math.imul(O2,y1)|0,N=N+Math.imul(R2,j1)|0,v=v+Math.imul(R2,y1)|0;var T1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(T1>>>26)|0,T1&=67108863,p=Math.imul(h1,W0),N=Math.imul(h1,q0),N=N+Math.imul(d1,W0)|0,v=Math.imul(d1,q0),p=p+Math.imul(e,B2)|0,N=N+Math.imul(e,D0)|0,N=N+Math.imul(w1,B2)|0,v=v+Math.imul(w1,D0)|0,p=p+Math.imul(d,I)|0,N=N+Math.imul(d,C)|0,N=N+Math.imul(n,I)|0,v=v+Math.imul(n,C)|0,p=p+Math.imul(c2,k)|0,N=N+Math.imul(c2,c)|0,N=N+Math.imul(r2,k)|0,v=v+Math.imul(r2,c)|0,p=p+Math.imul(X0,Q1)|0,N=N+Math.imul(X0,W1)|0,N=N+Math.imul(s2,Q1)|0,v=v+Math.imul(s2,W1)|0,p=p+Math.imul(Q0,j1)|0,N=N+Math.imul(Q0,y1)|0,N=N+Math.imul(x2,j1)|0,v=v+Math.imul(x2,y1)|0;var R1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(R1>>>26)|0,R1&=67108863,p=Math.imul(h1,B2),N=Math.imul(h1,D0),N=N+Math.imul(d1,B2)|0,v=Math.imul(d1,D0),p=p+Math.imul(e,I)|0,N=N+Math.imul(e,C)|0,N=N+Math.imul(w1,I)|0,v=v+Math.imul(w1,C)|0,p=p+Math.imul(d,k)|0,N=N+Math.imul(d,c)|0,N=N+Math.imul(n,k)|0,v=v+Math.imul(n,c)|0,p=p+Math.imul(c2,Q1)|0,N=N+Math.imul(c2,W1)|0,N=N+Math.imul(r2,Q1)|0,v=v+Math.imul(r2,W1)|0,p=p+Math.imul(X0,j1)|0,N=N+Math.imul(X0,y1)|0,N=N+Math.imul(s2,j1)|0,v=v+Math.imul(s2,y1)|0;var V1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(V1>>>26)|0,V1&=67108863,p=Math.imul(h1,I),N=Math.imul(h1,C),N=N+Math.imul(d1,I)|0,v=Math.imul(d1,C),p=p+Math.imul(e,k)|0,N=N+Math.imul(e,c)|0,N=N+Math.imul(w1,k)|0,v=v+Math.imul(w1,c)|0,p=p+Math.imul(d,Q1)|0,N=N+Math.imul(d,W1)|0,N=N+Math.imul(n,Q1)|0,v=v+Math.imul(n,W1)|0,p=p+Math.imul(c2,j1)|0,N=N+Math.imul(c2,y1)|0,N=N+Math.imul(r2,j1)|0,v=v+Math.imul(r2,y1)|0;var J1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(J1>>>26)|0,J1&=67108863,p=Math.imul(h1,k),N=Math.imul(h1,c),N=N+Math.imul(d1,k)|0,v=Math.imul(d1,c),p=p+Math.imul(e,Q1)|0,N=N+Math.imul(e,W1)|0,N=N+Math.imul(w1,Q1)|0,v=v+Math.imul(w1,W1)|0,p=p+Math.imul(d,j1)|0,N=N+Math.imul(d,y1)|0,N=N+Math.imul(n,j1)|0,v=v+Math.imul(n,y1)|0;var q1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(q1>>>26)|0,q1&=67108863,p=Math.imul(h1,Q1),N=Math.imul(h1,W1),N=N+Math.imul(d1,Q1)|0,v=Math.imul(d1,W1),p=p+Math.imul(e,j1)|0,N=N+Math.imul(e,y1)|0,N=N+Math.imul(w1,j1)|0,v=v+Math.imul(w1,y1)|0;var X1=(x+p|0)+((N&8191)<<13)|0;x=(v+(N>>>13)|0)+(X1>>>26)|0,X1&=67108863,p=Math.imul(h1,j1),N=Math.imul(h1,y1),N=N+Math.imul(d1,j1)|0,v=Math.imul(d1,y1);var Y1=(x+p|0)+((N&8191)<<13)|0;if(x=(v+(N>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,m[0]=S1,m[1]=f1,m[2]=a1,m[3]=t1,m[4]=r1,m[5]=i1,m[6]=n1,m[7]=c1,m[8]=C1,m[9]=E1,m[10]=O1,m[11]=I1,m[12]=T1,m[13]=R1,m[14]=V1,m[15]=J1,m[16]=q1,m[17]=X1,m[18]=Y1,x!==0)m[19]=x,R.length++;return R};if(!Math.imul)T=_;function h(S,q,Z){Z.negative=q.negative^S.negative,Z.length=S.length+q.length;var R=0,O=0;for(var F=0;F<Z.length-1;F++){var m=O;O=0;var x=R&67108863,p=Math.min(F,q.length-1);for(var N=Math.max(0,F-S.length+1);N<=p;N++){var v=F-N,$1=S.words[v]|0,G1=q.words[N]|0,H1=$1*G1,B1=H1&67108863;m=m+(H1/67108864|0)|0,B1=B1+x|0,x=B1&67108863,m=m+(B1>>>26)|0,O+=m>>>26,m&=67108863}Z.words[F]=x,R=m,m=O}if(R!==0)Z.words[F]=R;else Z.length--;return Z._strip()}function A(S,q,Z){return h(S,q,Z)}X.prototype.mulTo=function(q,Z){var R,O=this.length+q.length;if(this.length===10&&q.length===10)R=T(this,q,Z);else if(O<63)R=_(this,q,Z);else if(O<1024)R=h(this,q,Z);else R=A(this,q,Z);return R};function E(S,q){this.x=S,this.y=q}E.prototype.makeRBT=function(q){var Z=Array(q),R=X.prototype._countBits(q)-1;for(var O=0;O<q;O++)Z[O]=this.revBin(O,R,q);return Z},E.prototype.revBin=function(q,Z,R){if(q===0||q===R-1)return q;var O=0;for(var F=0;F<Z;F++)O|=(q&1)<<Z-F-1,q>>=1;return O},E.prototype.permute=function(q,Z,R,O,F,m){for(var x=0;x<m;x++)O[x]=Z[q[x]],F[x]=R[q[x]]},E.prototype.transform=function(q,Z,R,O,F,m){this.permute(m,q,Z,R,O,F);for(var x=1;x<F;x<<=1){var p=x<<1,N=Math.cos(2*Math.PI/p),v=Math.sin(2*Math.PI/p);for(var $1=0;$1<F;$1+=p){var G1=N,H1=v;for(var B1=0;B1<x;B1++){var A1=R[$1+B1],m1=O[$1+B1],y2=R[$1+B1+x],V2=O[$1+B1+x],$2=G1*y2-H1*V2;if(V2=G1*V2+H1*y2,y2=$2,R[$1+B1]=A1+y2,O[$1+B1]=m1+V2,R[$1+B1+x]=A1-y2,O[$1+B1+x]=m1-V2,B1!==p)$2=N*G1-v*H1,H1=N*H1+v*G1,G1=$2}}}},E.prototype.guessLen13b=function(q,Z){var R=Math.max(Z,q)|1,O=R&1,F=0;for(R=R/2|0;R;R=R>>>1)F++;return 1<<F+1+O},E.prototype.conjugate=function(q,Z,R){if(R<=1)return;for(var O=0;O<R/2;O++){var F=q[O];q[O]=q[R-O-1],q[R-O-1]=F,F=Z[O],Z[O]=-Z[R-O-1],Z[R-O-1]=-F}},E.prototype.normalize13b=function(q,Z){var R=0;for(var O=0;O<Z/2;O++){var F=Math.round(q[2*O+1]/Z)*8192+Math.round(q[2*O]/Z)+R;if(q[O]=F&67108863,F<67108864)R=0;else R=F/67108864|0}return q},E.prototype.convert13b=function(q,Z,R,O){var F=0;for(var m=0;m<Z;m++)F=F+(q[m]|0),R[2*m]=F&8191,F=F>>>13,R[2*m+1]=F&8191,F=F>>>13;for(m=2*Z;m<O;++m)R[m]=0;J(F===0),J((F&-8192)===0)},E.prototype.stub=function(q){var Z=Array(q);for(var R=0;R<q;R++)Z[R]=0;return Z},E.prototype.mulp=function(q,Z,R){var O=2*this.guessLen13b(q.length,Z.length),F=this.makeRBT(O),m=this.stub(O),x=Array(O),p=Array(O),N=Array(O),v=Array(O),$1=Array(O),G1=Array(O),H1=R.words;H1.length=O,this.convert13b(q.words,q.length,x,O),this.convert13b(Z.words,Z.length,v,O),this.transform(x,m,p,N,O,F),this.transform(v,m,$1,G1,O,F);for(var B1=0;B1<O;B1++){var A1=p[B1]*$1[B1]-N[B1]*G1[B1];N[B1]=p[B1]*G1[B1]+N[B1]*$1[B1],p[B1]=A1}return this.conjugate(p,N,O),this.transform(p,N,H1,m,O,F),this.conjugate(H1,m,O),this.normalize13b(H1,O),R.negative=q.negative^Z.negative,R.length=q.length+Z.length,R._strip()},X.prototype.mul=function(q){var Z=new X(null);return Z.words=Array(this.length+q.length),this.mulTo(q,Z)},X.prototype.mulf=function(q){var Z=new X(null);return Z.words=Array(this.length+q.length),A(this,q,Z)},X.prototype.imul=function(q){return this.clone().mulTo(q,this)},X.prototype.imuln=function(q){var Z=q<0;if(Z)q=-q;J(typeof q==="number"),J(q<67108864);var R=0;for(var O=0;O<this.length;O++){var F=(this.words[O]|0)*q,m=(F&67108863)+(R&67108863);R>>=26,R+=F/67108864|0,R+=m>>>26,this.words[O]=m&67108863}if(R!==0)this.words[O]=R,this.length++;return this.length=q===0?1:this.length,Z?this.ineg():this},X.prototype.muln=function(q){return this.clone().imuln(q)},X.prototype.sqr=function(){return this.mul(this)},X.prototype.isqr=function(){return this.imul(this.clone())},X.prototype.pow=function(q){var Z=B(q);if(Z.length===0)return new X(1);var R=this;for(var O=0;O<Z.length;O++,R=R.sqr())if(Z[O]!==0)break;if(++O<Z.length)for(var F=R.sqr();O<Z.length;O++,F=F.sqr()){if(Z[O]===0)continue;R=R.mul(F)}return R},X.prototype.iushln=function(q){J(typeof q==="number"&&q>=0);var Z=q%26,R=(q-Z)/26,O=67108863>>>26-Z<<26-Z,F;if(Z!==0){var m=0;for(F=0;F<this.length;F++){var x=this.words[F]&O,p=(this.words[F]|0)-x<<Z;this.words[F]=p|m,m=x>>>26-Z}if(m)this.words[F]=m,this.length++}if(R!==0){for(F=this.length-1;F>=0;F--)this.words[F+R]=this.words[F];for(F=0;F<R;F++)this.words[F]=0;this.length+=R}return this._strip()},X.prototype.ishln=function(q){return J(this.negative===0),this.iushln(q)},X.prototype.iushrn=function(q,Z,R){J(typeof q==="number"&&q>=0);var O;if(Z)O=(Z-Z%26)/26;else O=0;var F=q%26,m=Math.min((q-F)/26,this.length),x=67108863^67108863>>>F<<F,p=R;if(O-=m,O=Math.max(0,O),p){for(var N=0;N<m;N++)p.words[N]=this.words[N];p.length=m}if(m===0);else if(this.length>m){this.length-=m;for(N=0;N<this.length;N++)this.words[N]=this.words[N+m]}else this.words[0]=0,this.length=1;var v=0;for(N=this.length-1;N>=0&&(v!==0||N>=O);N--){var $1=this.words[N]|0;this.words[N]=v<<26-F|$1>>>F,v=$1&x}if(p&&v!==0)p.words[p.length++]=v;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},X.prototype.ishrn=function(q,Z,R){return J(this.negative===0),this.iushrn(q,Z,R)},X.prototype.shln=function(q){return this.clone().ishln(q)},X.prototype.ushln=function(q){return this.clone().iushln(q)},X.prototype.shrn=function(q){return this.clone().ishrn(q)},X.prototype.ushrn=function(q){return this.clone().iushrn(q)},X.prototype.testn=function(q){J(typeof q==="number"&&q>=0);var Z=q%26,R=(q-Z)/26,O=1<<Z;if(this.length<=R)return!1;var F=this.words[R];return!!(F&O)},X.prototype.imaskn=function(q){J(typeof q==="number"&&q>=0);var Z=q%26,R=(q-Z)/26;if(J(this.negative===0,"imaskn works only with positive numbers"),this.length<=R)return this;if(Z!==0)R++;if(this.length=Math.min(R,this.length),Z!==0){var O=67108863^67108863>>>Z<<Z;this.words[this.length-1]&=O}return this._strip()},X.prototype.maskn=function(q){return this.clone().imaskn(q)},X.prototype.iaddn=function(q){if(J(typeof q==="number"),J(q<67108864),q<0)return this.isubn(-q);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=q)return this.words[0]=q-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(q),this.negative=1,this}return this._iaddn(q)},X.prototype._iaddn=function(q){this.words[0]+=q;for(var Z=0;Z<this.length&&this.words[Z]>=67108864;Z++)if(this.words[Z]-=67108864,Z===this.length-1)this.words[Z+1]=1;else this.words[Z+1]++;return this.length=Math.max(this.length,Z+1),this},X.prototype.isubn=function(q){if(J(typeof q==="number"),J(q<67108864),q<0)return this.iaddn(-q);if(this.negative!==0)return this.negative=0,this.iaddn(q),this.negative=1,this;if(this.words[0]-=q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Z=0;Z<this.length&&this.words[Z]<0;Z++)this.words[Z]+=67108864,this.words[Z+1]-=1;return this._strip()},X.prototype.addn=function(q){return this.clone().iaddn(q)},X.prototype.subn=function(q){return this.clone().isubn(q)},X.prototype.iabs=function(){return this.negative=0,this},X.prototype.abs=function(){return this.clone().iabs()},X.prototype._ishlnsubmul=function(q,Z,R){var O=q.length+R,F;this._expand(O);var m,x=0;for(F=0;F<q.length;F++){m=(this.words[F+R]|0)+x;var p=(q.words[F]|0)*Z;m-=p&67108863,x=(m>>26)-(p/67108864|0),this.words[F+R]=m&67108863}for(;F<this.length-R;F++)m=(this.words[F+R]|0)+x,x=m>>26,this.words[F+R]=m&67108863;if(x===0)return this._strip();J(x===-1),x=0;for(F=0;F<this.length;F++)m=-(this.words[F]|0)+x,x=m>>26,this.words[F]=m&67108863;return this.negative=1,this._strip()},X.prototype._wordDiv=function(q,Z){var R=this.length-q.length,O=this.clone(),F=q,m=F.words[F.length-1]|0,x=this._countBits(m);if(R=26-x,R!==0)F=F.ushln(R),O.iushln(R),m=F.words[F.length-1]|0;var p=O.length-F.length,N;if(Z!=="mod"){N=new X(null),N.length=p+1,N.words=Array(N.length);for(var v=0;v<N.length;v++)N.words[v]=0}var $1=O.clone()._ishlnsubmul(F,1,p);if($1.negative===0){if(O=$1,N)N.words[p]=1}for(var G1=p-1;G1>=0;G1--){var H1=(O.words[F.length+G1]|0)*67108864+(O.words[F.length+G1-1]|0);H1=Math.min(H1/m|0,67108863),O._ishlnsubmul(F,H1,G1);while(O.negative!==0)if(H1--,O.negative=0,O._ishlnsubmul(F,1,G1),!O.isZero())O.negative^=1;if(N)N.words[G1]=H1}if(N)N._strip();if(O._strip(),Z!=="div"&&R!==0)O.iushrn(R);return{div:N||null,mod:O}},X.prototype.divmod=function(q,Z,R){if(J(!q.isZero()),this.isZero())return{div:new X(0),mod:new X(0)};var O,F,m;if(this.negative!==0&&q.negative===0){if(m=this.neg().divmod(q,Z),Z!=="mod")O=m.div.neg();if(Z!=="div"){if(F=m.mod.neg(),R&&F.negative!==0)F.iadd(q)}return{div:O,mod:F}}if(this.negative===0&&q.negative!==0){if(m=this.divmod(q.neg(),Z),Z!=="mod")O=m.div.neg();return{div:O,mod:m.mod}}if((this.negative&q.negative)!==0){if(m=this.neg().divmod(q.neg(),Z),Z!=="div"){if(F=m.mod.neg(),R&&F.negative!==0)F.isub(q)}return{div:m.div,mod:F}}if(q.length>this.length||this.cmp(q)<0)return{div:new X(0),mod:this};if(q.length===1){if(Z==="div")return{div:this.divn(q.words[0]),mod:null};if(Z==="mod")return{div:null,mod:new X(this.modrn(q.words[0]))};return{div:this.divn(q.words[0]),mod:new X(this.modrn(q.words[0]))}}return this._wordDiv(q,Z)},X.prototype.div=function(q){return this.divmod(q,"div",!1).div},X.prototype.mod=function(q){return this.divmod(q,"mod",!1).mod},X.prototype.umod=function(q){return this.divmod(q,"mod",!0).mod},X.prototype.divRound=function(q){var Z=this.divmod(q);if(Z.mod.isZero())return Z.div;var R=Z.div.negative!==0?Z.mod.isub(q):Z.mod,O=q.ushrn(1),F=q.andln(1),m=R.cmp(O);if(m<0||F===1&&m===0)return Z.div;return Z.div.negative!==0?Z.div.isubn(1):Z.div.iaddn(1)},X.prototype.modrn=function(q){var Z=q<0;if(Z)q=-q;J(q<=67108863);var R=67108864%q,O=0;for(var F=this.length-1;F>=0;F--)O=(R*O+(this.words[F]|0))%q;return Z?-O:O},X.prototype.modn=function(q){return this.modrn(q)},X.prototype.idivn=function(q){var Z=q<0;if(Z)q=-q;J(q<=67108863);var R=0;for(var O=this.length-1;O>=0;O--){var F=(this.words[O]|0)+R*67108864;this.words[O]=F/q|0,R=F%q}return this._strip(),Z?this.ineg():this},X.prototype.divn=function(q){return this.clone().idivn(q)},X.prototype.egcd=function(q){J(q.negative===0),J(!q.isZero());var Z=this,R=q.clone();if(Z.negative!==0)Z=Z.umod(q);else Z=Z.clone();var O=new X(1),F=new X(0),m=new X(0),x=new X(1),p=0;while(Z.isEven()&&R.isEven())Z.iushrn(1),R.iushrn(1),++p;var N=R.clone(),v=Z.clone();while(!Z.isZero()){for(var $1=0,G1=1;(Z.words[0]&G1)===0&&$1<26;++$1,G1<<=1);if($1>0){Z.iushrn($1);while($1-- >0){if(O.isOdd()||F.isOdd())O.iadd(N),F.isub(v);O.iushrn(1),F.iushrn(1)}}for(var H1=0,B1=1;(R.words[0]&B1)===0&&H1<26;++H1,B1<<=1);if(H1>0){R.iushrn(H1);while(H1-- >0){if(m.isOdd()||x.isOdd())m.iadd(N),x.isub(v);m.iushrn(1),x.iushrn(1)}}if(Z.cmp(R)>=0)Z.isub(R),O.isub(m),F.isub(x);else R.isub(Z),m.isub(O),x.isub(F)}return{a:m,b:x,gcd:R.iushln(p)}},X.prototype._invmp=function(q){J(q.negative===0),J(!q.isZero());var Z=this,R=q.clone();if(Z.negative!==0)Z=Z.umod(q);else Z=Z.clone();var O=new X(1),F=new X(0),m=R.clone();while(Z.cmpn(1)>0&&R.cmpn(1)>0){for(var x=0,p=1;(Z.words[0]&p)===0&&x<26;++x,p<<=1);if(x>0){Z.iushrn(x);while(x-- >0){if(O.isOdd())O.iadd(m);O.iushrn(1)}}for(var N=0,v=1;(R.words[0]&v)===0&&N<26;++N,v<<=1);if(N>0){R.iushrn(N);while(N-- >0){if(F.isOdd())F.iadd(m);F.iushrn(1)}}if(Z.cmp(R)>=0)Z.isub(R),O.isub(F);else R.isub(Z),F.isub(O)}var $1;if(Z.cmpn(1)===0)$1=O;else $1=F;if($1.cmpn(0)<0)$1.iadd(q);return $1},X.prototype.gcd=function(q){if(this.isZero())return q.abs();if(q.isZero())return this.abs();var Z=this.clone(),R=q.clone();Z.negative=0,R.negative=0;for(var O=0;Z.isEven()&&R.isEven();O++)Z.iushrn(1),R.iushrn(1);do{while(Z.isEven())Z.iushrn(1);while(R.isEven())R.iushrn(1);var F=Z.cmp(R);if(F<0){var m=Z;Z=R,R=m}else if(F===0||R.cmpn(1)===0)break;Z.isub(R)}while(!0);return R.iushln(O)},X.prototype.invm=function(q){return this.egcd(q).a.umod(q)},X.prototype.isEven=function(){return(this.words[0]&1)===0},X.prototype.isOdd=function(){return(this.words[0]&1)===1},X.prototype.andln=function(q){return this.words[0]&q},X.prototype.bincn=function(q){J(typeof q==="number");var Z=q%26,R=(q-Z)/26,O=1<<Z;if(this.length<=R)return this._expand(R+1),this.words[R]|=O,this;var F=O;for(var m=R;F!==0&&m<this.length;m++){var x=this.words[m]|0;x+=F,F=x>>>26,x&=67108863,this.words[m]=x}if(F!==0)this.words[m]=F,this.length++;return this},X.prototype.isZero=function(){return this.length===1&&this.words[0]===0},X.prototype.cmpn=function(q){var Z=q<0;if(this.negative!==0&&!Z)return-1;if(this.negative===0&&Z)return 1;this._strip();var R;if(this.length>1)R=1;else{if(Z)q=-q;J(q<=67108863,"Number is too big");var O=this.words[0]|0;R=O===q?0:O<q?-1:1}if(this.negative!==0)return-R|0;return R},X.prototype.cmp=function(q){if(this.negative!==0&&q.negative===0)return-1;if(this.negative===0&&q.negative!==0)return 1;var Z=this.ucmp(q);if(this.negative!==0)return-Z|0;return Z},X.prototype.ucmp=function(q){if(this.length>q.length)return 1;if(this.length<q.length)return-1;var Z=0;for(var R=this.length-1;R>=0;R--){var O=this.words[R]|0,F=q.words[R]|0;if(O===F)continue;if(O<F)Z=-1;else if(O>F)Z=1;break}return Z},X.prototype.gtn=function(q){return this.cmpn(q)===1},X.prototype.gt=function(q){return this.cmp(q)===1},X.prototype.gten=function(q){return this.cmpn(q)>=0},X.prototype.gte=function(q){return this.cmp(q)>=0},X.prototype.ltn=function(q){return this.cmpn(q)===-1},X.prototype.lt=function(q){return this.cmp(q)===-1},X.prototype.lten=function(q){return this.cmpn(q)<=0},X.prototype.lte=function(q){return this.cmp(q)<=0},X.prototype.eqn=function(q){return this.cmpn(q)===0},X.prototype.eq=function(q){return this.cmp(q)===0},X.red=function(q){return new t(q)},X.prototype.toRed=function(q){return J(!this.red,"Already a number in reduction context"),J(this.negative===0,"red works only with positives"),q.convertTo(this)._forceRed(q)},X.prototype.fromRed=function(){return J(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},X.prototype._forceRed=function(q){return this.red=q,this},X.prototype.forceRed=function(q){return J(!this.red,"Already a number in reduction context"),this._forceRed(q)},X.prototype.redAdd=function(q){return J(this.red,"redAdd works only with red numbers"),this.red.add(this,q)},X.prototype.redIAdd=function(q){return J(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,q)},X.prototype.redSub=function(q){return J(this.red,"redSub works only with red numbers"),this.red.sub(this,q)},X.prototype.redISub=function(q){return J(this.red,"redISub works only with red numbers"),this.red.isub(this,q)},X.prototype.redShl=function(q){return J(this.red,"redShl works only with red numbers"),this.red.shl(this,q)},X.prototype.redMul=function(q){return J(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.mul(this,q)},X.prototype.redIMul=function(q){return J(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.imul(this,q)},X.prototype.redSqr=function(){return J(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},X.prototype.redISqr=function(){return J(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},X.prototype.redSqrt=function(){return J(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},X.prototype.redInvm=function(){return J(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},X.prototype.redNeg=function(){return J(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},X.prototype.redPow=function(q){return J(this.red&&!q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,q)};var y={k256:null,p224:null,p192:null,p25519:null};function l(S,q){this.name=S,this.p=new X(q,16),this.n=this.p.bitLength(),this.k=new X(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}l.prototype._tmp=function(){var q=new X(null);return q.words=Array(Math.ceil(this.n/13)),q},l.prototype.ireduce=function(q){var Z=q,R;do this.split(Z,this.tmp),Z=this.imulK(Z),Z=Z.iadd(this.tmp),R=Z.bitLength();while(R>this.n);var O=R<this.n?-1:Z.ucmp(this.p);if(O===0)Z.words[0]=0,Z.length=1;else if(O>0)Z.isub(this.p);else if(Z.strip!==void 0)Z.strip();else Z._strip();return Z},l.prototype.split=function(q,Z){q.iushrn(this.n,0,Z)},l.prototype.imulK=function(q){return q.imul(this.k)};function f(){l.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}Q(f,l),f.prototype.split=function(q,Z){var R=4194303,O=Math.min(q.length,9);for(var F=0;F<O;F++)Z.words[F]=q.words[F];if(Z.length=O,q.length<=9){q.words[0]=0,q.length=1;return}var m=q.words[9];Z.words[Z.length++]=m&R;for(F=10;F<q.length;F++){var x=q.words[F]|0;q.words[F-10]=(x&R)<<4|m>>>22,m=x}if(m>>>=22,q.words[F-10]=m,m===0&&q.length>10)q.length-=10;else q.length-=9},f.prototype.imulK=function(q){q.words[q.length]=0,q.words[q.length+1]=0,q.length+=2;var Z=0;for(var R=0;R<q.length;R++){var O=q.words[R]|0;Z+=O*977,q.words[R]=Z&67108863,Z=O*64+(Z/67108864|0)}if(q.words[q.length-1]===0){if(q.length--,q.words[q.length-1]===0)q.length--}return q};function o(){l.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}Q(o,l);function u(){l.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}Q(u,l);function i(){l.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}Q(i,l),i.prototype.imulK=function(q){var Z=0;for(var R=0;R<q.length;R++){var O=(q.words[R]|0)*19+Z,F=O&67108863;O>>>=26,q.words[R]=F,Z=O}if(Z!==0)q.words[q.length++]=Z;return q},X._prime=function(q){if(y[q])return y[q];var Z;if(q==="k256")Z=new f;else if(q==="p224")Z=new o;else if(q==="p192")Z=new u;else if(q==="p25519")Z=new i;else throw Error("Unknown prime "+q);return y[q]=Z,Z};function t(S){if(typeof S==="string"){var q=X._prime(S);this.m=q.p,this.prime=q}else J(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}t.prototype._verify1=function(q){J(q.negative===0,"red works only with positives"),J(q.red,"red works only with red numbers")},t.prototype._verify2=function(q,Z){J((q.negative|Z.negative)===0,"red works only with positives"),J(q.red&&q.red===Z.red,"red works only with red numbers")},t.prototype.imod=function(q){if(this.prime)return this.prime.ireduce(q)._forceRed(this);return D(q,q.umod(this.m)._forceRed(this)),q},t.prototype.neg=function(q){if(q.isZero())return q.clone();return this.m.sub(q)._forceRed(this)},t.prototype.add=function(q,Z){this._verify2(q,Z);var R=q.add(Z);if(R.cmp(this.m)>=0)R.isub(this.m);return R._forceRed(this)},t.prototype.iadd=function(q,Z){this._verify2(q,Z);var R=q.iadd(Z);if(R.cmp(this.m)>=0)R.isub(this.m);return R},t.prototype.sub=function(q,Z){this._verify2(q,Z);var R=q.sub(Z);if(R.cmpn(0)<0)R.iadd(this.m);return R._forceRed(this)},t.prototype.isub=function(q,Z){this._verify2(q,Z);var R=q.isub(Z);if(R.cmpn(0)<0)R.iadd(this.m);return R},t.prototype.shl=function(q,Z){return this._verify1(q),this.imod(q.ushln(Z))},t.prototype.imul=function(q,Z){return this._verify2(q,Z),this.imod(q.imul(Z))},t.prototype.mul=function(q,Z){return this._verify2(q,Z),this.imod(q.mul(Z))},t.prototype.isqr=function(q){return this.imul(q,q.clone())},t.prototype.sqr=function(q){return this.mul(q,q)},t.prototype.sqrt=function(q){if(q.isZero())return q.clone();var Z=this.m.andln(3);if(J(Z%2===1),Z===3){var R=this.m.add(new X(1)).iushrn(2);return this.pow(q,R)}var O=this.m.subn(1),F=0;while(!O.isZero()&&O.andln(1)===0)F++,O.iushrn(1);J(!O.isZero());var m=new X(1).toRed(this),x=m.redNeg(),p=this.m.subn(1).iushrn(1),N=this.m.bitLength();N=new X(2*N*N).toRed(this);while(this.pow(N,p).cmp(x)!==0)N.redIAdd(x);var v=this.pow(N,O),$1=this.pow(q,O.addn(1).iushrn(1)),G1=this.pow(q,O),H1=F;while(G1.cmp(m)!==0){var B1=G1;for(var A1=0;B1.cmp(m)!==0;A1++)B1=B1.redSqr();J(A1<H1);var m1=this.pow(v,new X(1).iushln(H1-A1-1));$1=$1.redMul(m1),v=m1.redSqr(),G1=G1.redMul(v),H1=A1}return $1},t.prototype.invm=function(q){var Z=q._invmp(this.m);if(Z.negative!==0)return Z.negative=0,this.imod(Z).redNeg();else return this.imod(Z)},t.prototype.pow=function(q,Z){if(Z.isZero())return new X(1).toRed(this);if(Z.cmpn(1)===0)return q.clone();var R=4,O=Array(1<<R);O[0]=new X(1).toRed(this),O[1]=q;for(var F=2;F<O.length;F++)O[F]=this.mul(O[F-1],q);var m=O[0],x=0,p=0,N=Z.bitLength()%26;if(N===0)N=26;for(F=Z.length-1;F>=0;F--){var v=Z.words[F];for(var $1=N-1;$1>=0;$1--){var G1=v>>$1&1;if(m!==O[0])m=this.sqr(m);if(G1===0&&x===0){p=0;continue}if(x<<=1,x|=G1,p++,p!==R&&(F!==0||$1!==0))continue;m=this.mul(m,O[x]),p=0,x=0}N=26}return m},t.prototype.convertTo=function(q){var Z=q.umod(this.m);return Z===q?Z.clone():Z},t.prototype.convertFrom=function(q){var Z=q.clone();return Z.red=null,Z},X.mont=function(q){return new g(q)};function g(S){if(t.call(this,S),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new X(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)}Q(g,t),g.prototype.convertTo=function(q){return this.imod(q.ushln(this.shift))},g.prototype.convertFrom=function(q){var Z=this.imod(q.mul(this.rinv));return Z.red=null,Z},g.prototype.imul=function(q,Z){if(q.isZero()||Z.isZero())return q.words[0]=0,q.length=1,q;var R=q.imul(Z),O=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=R.isub(O).iushrn(this.shift),m=F;if(F.cmp(this.m)>=0)m=F.isub(this.m);else if(F.cmpn(0)<0)m=F.iadd(this.m);return m._forceRed(this)},g.prototype.mul=function(q,Z){if(q.isZero()||Z.isZero())return new X(0)._forceRed(this);var R=q.mul(Z),O=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=R.isub(O).iushrn(this.shift),m=F;if(F.cmp(this.m)>=0)m=F.isub(this.m);else if(F.cmpn(0)<0)m=F.iadd(this.m);return m._forceRed(this)},g.prototype.invm=function(q){var Z=this.imod(q._invmp(this.m).mul(this.r2));return Z._forceRed(this)}})(typeof tW>"u"||tW,IN)});var VK=M1(($K,AN)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var wQ=k1("buffer"),$4=wQ.Buffer;function TN($,V){for(var J in $)V[J]=$[J]}if($4.from&&$4.alloc&&$4.allocUnsafe&&$4.allocUnsafeSlow)AN.exports=wQ;else TN(wQ,$K),$K.Buffer=r5;function r5($,V,J){return $4($,V,J)}r5.prototype=Object.create($4.prototype);TN($4,r5);r5.from=function($,V,J){if(typeof $==="number")throw TypeError("Argument must not be a number");return $4($,V,J)};r5.alloc=function($,V,J){if(typeof $!=="number")throw TypeError("Argument must be a number");var Q=$4($);if(V!==void 0)if(typeof J==="string")Q.fill(V,J);else Q.fill(V);else Q.fill(0);return Q};r5.allocUnsafe=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return $4($)};r5.allocUnsafeSlow=function($){if(typeof $!=="number")throw TypeError("Argument must be a number");return wQ.SlowBuffer($)}});var mN=M1((Tb2,pN)=>{var zQ=VK().Buffer;function Xf($){if($.length>=255)throw TypeError("Alphabet too long");var V=new Uint8Array(256);for(var J=0;J<V.length;J++)V[J]=255;for(var Q=0;Q<$.length;Q++){var X=$.charAt(Q),Y=X.charCodeAt(0);if(V[Y]!==255)throw TypeError(X+" is ambiguous");V[Y]=Q}var G=$.length,W=$.charAt(0),K=Math.log(G)/Math.log(256),D=Math.log(256)/Math.log(G);function H(M){if(Array.isArray(M)||M instanceof Uint8Array)M=zQ.from(M);if(!zQ.isBuffer(M))throw TypeError("Expected Buffer");if(M.length===0)return"";var L=0,B=0,_=0,T=M.length;while(_!==T&&M[_]===0)_++,L++;var h=(T-_)*D+1>>>0,A=new Uint8Array(h);while(_!==T){var E=M[_],y=0;for(var l=h-1;(E!==0||y<B)&&l!==-1;l--,y++)E+=256*A[l]>>>0,A[l]=E%G>>>0,E=E/G>>>0;if(E!==0)throw Error("Non-zero carry");B=y,_++}var f=h-B;while(f!==h&&A[f]===0)f++;var o=W.repeat(L);for(;f<h;++f)o+=$.charAt(A[f]);return o}function U(M){if(typeof M!=="string")throw TypeError("Expected String");if(M.length===0)return zQ.alloc(0);var L=0,B=0,_=0;while(M[L]===W)B++,L++;var T=(M.length-L)*K+1>>>0,h=new Uint8Array(T);while(L<M.length){var A=M.charCodeAt(L);if(A>255)return;var E=V[A];if(E===255)return;var y=0;for(var l=T-1;(E!==0||y<_)&&l!==-1;l--,y++)E+=G*h[l]>>>0,h[l]=E%256>>>0,E=E/256>>>0;if(E!==0)throw Error("Non-zero carry");_=y,L++}var f=T-_;while(f!==T&&h[f]===0)f++;var o=zQ.allocUnsafe(B+(T-f));o.fill(0,0,B);var u=B;while(f!==T)o[u++]=h[f++];return o}function z(M){var L=U(M);if(L)return L;throw Error("Non-base"+G+" character")}return{encode:H,decodeUnsafe:U,decode:z}}pN.exports=Xf});var EN=M1((Ab2,kN)=>{var Yf=mN(),Gf="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";kN.exports=Yf(Gf)});var xN=M1((vN)=>{Object.defineProperty(vN,"__esModule",{value:!0});vN.sha224=vN.SHA224=vN.sha256=vN.SHA256=void 0;var jQ=JQ();vN.SHA256=jQ.SHA256;vN.sha256=jQ.sha256;vN.SHA224=jQ.SHA224;vN.sha224=jQ.sha224});var yN=M1((mb2,dN)=>{var NQ=VK().Buffer;function Df($){if($.length>=255)throw TypeError("Alphabet too long");var V=new Uint8Array(256);for(var J=0;J<V.length;J++)V[J]=255;for(var Q=0;Q<$.length;Q++){var X=$.charAt(Q),Y=X.charCodeAt(0);if(V[Y]!==255)throw TypeError(X+" is ambiguous");V[Y]=Q}var G=$.length,W=$.charAt(0),K=Math.log(G)/Math.log(256),D=Math.log(256)/Math.log(G);function H(M){if(Array.isArray(M)||M instanceof Uint8Array)M=NQ.from(M);if(!NQ.isBuffer(M))throw TypeError("Expected Buffer");if(M.length===0)return"";var L=0,B=0,_=0,T=M.length;while(_!==T&&M[_]===0)_++,L++;var h=(T-_)*D+1>>>0,A=new Uint8Array(h);while(_!==T){var E=M[_],y=0;for(var l=h-1;(E!==0||y<B)&&l!==-1;l--,y++)E+=256*A[l]>>>0,A[l]=E%G>>>0,E=E/G>>>0;if(E!==0)throw Error("Non-zero carry");B=y,_++}var f=h-B;while(f!==h&&A[f]===0)f++;var o=W.repeat(L);for(;f<h;++f)o+=$.charAt(A[f]);return o}function U(M){if(typeof M!=="string")throw TypeError("Expected String");if(M.length===0)return NQ.alloc(0);var L=0,B=0,_=0;while(M[L]===W)B++,L++;var T=(M.length-L)*K+1>>>0,h=new Uint8Array(T);while(L<M.length){var A=M.charCodeAt(L);if(A>255)return;var E=V[A];if(E===255)return;var y=0;for(var l=T-1;(E!==0||y<_)&&l!==-1;l--,y++)E+=G*h[l]>>>0,h[l]=E%256>>>0,E=E/256>>>0;if(E!==0)throw Error("Non-zero carry");_=y,L++}var f=T-_;while(f!==T&&h[f]===0)f++;var o=NQ.allocUnsafe(B+(T-f));o.fill(0,0,B);var u=B;while(f!==T)o[u++]=h[f++];return o}function z(M){var L=U(M);if(L)return L;throw Error("Non-base"+G+" character")}return{encode:H,decodeUnsafe:U,decode:z}}dN.exports=Df});var gN=M1((kb2,bN)=>{var Hf=yN(),Zf="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";bN.exports=Hf(Zf)});var lN=M1((Nf)=>{function V8($,V,J){return V<=$&&$<=J}function OQ($){if($===void 0)return{};if($===Object($))return $;throw TypeError("Could not convert argument to dictionary")}function Uf($){var V=String($),J=V.length,Q=0,X=[];while(Q<J){var Y=V.charCodeAt(Q);if(Y<55296||Y>57343)X.push(Y);else if(56320<=Y&&Y<=57343)X.push(65533);else if(55296<=Y&&Y<=56319)if(Q===J-1)X.push(65533);else{var G=$.charCodeAt(Q+1);if(56320<=G&&G<=57343){var W=Y&1023,K=G&1023;X.push(65536+(W<<10)+K),Q+=1}else X.push(65533)}Q+=1}return X}function wf($){var V="";for(var J=0;J<$.length;++J){var Q=$[J];if(Q<=65535)V+=String.fromCharCode(Q);else Q-=65536,V+=String.fromCharCode((Q>>10)+55296,(Q&1023)+56320)}return V}var MQ=-1;function QK($){this.tokens=[].slice.call($)}QK.prototype={endOfStream:function(){return!this.tokens.length},read:function(){if(!this.tokens.length)return MQ;return this.tokens.shift()},prepend:function($){if(Array.isArray($)){var V=$;while(V.length)this.tokens.unshift(V.pop())}else this.tokens.unshift($)},push:function($){if(Array.isArray($)){var V=$;while(V.length)this.tokens.push(V.shift())}else this.tokens.push($)}};var $3=-1;function JK($,V){if($)throw TypeError("Decoder error");return V||65533}var LQ="utf-8";function RQ($,V){if(!(this instanceof RQ))return new RQ($,V);if($=$!==void 0?String($).toLowerCase():LQ,$!==LQ)throw Error("Encoding not supported. Only utf-8 is supported");V=OQ(V),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(V.fatal),this._ignoreBOM=Boolean(V.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}RQ.prototype={decode:function(V,J){var Q;if(typeof V==="object"&&V instanceof ArrayBuffer)Q=new Uint8Array(V);else if(typeof V==="object"&&"buffer"in V&&V.buffer instanceof ArrayBuffer)Q=new Uint8Array(V.buffer,V.byteOffset,V.byteLength);else Q=new Uint8Array(0);if(J=OQ(J),!this._streaming)this._decoder=new zf({fatal:this._fatal}),this._BOMseen=!1;this._streaming=Boolean(J.stream);var X=new QK(Q),Y=[],G;while(!X.endOfStream()){if(G=this._decoder.handler(X,X.read()),G===$3)break;if(G===null)continue;if(Array.isArray(G))Y.push.apply(Y,G);else Y.push(G)}if(!this._streaming){do{if(G=this._decoder.handler(X,X.read()),G===$3)break;if(G===null)continue;if(Array.isArray(G))Y.push.apply(Y,G);else Y.push(G)}while(!X.endOfStream());this._decoder=null}if(Y.length){if(["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen)if(Y[0]===65279)this._BOMseen=!0,Y.shift();else this._BOMseen=!0}return wf(Y)}};function PQ($,V){if(!(this instanceof PQ))return new PQ($,V);if($=$!==void 0?String($).toLowerCase():LQ,$!==LQ)throw Error("Encoding not supported. Only utf-8 is supported");V=OQ(V),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(V.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}PQ.prototype={encode:function(V,J){if(V=V?String(V):"",J=OQ(J),!this._streaming)this._encoder=new jf(this._options);this._streaming=Boolean(J.stream);var Q=[],X=new QK(Uf(V)),Y;while(!X.endOfStream()){if(Y=this._encoder.handler(X,X.read()),Y===$3)break;if(Array.isArray(Y))Q.push.apply(Q,Y);else Q.push(Y)}if(!this._streaming){while(!0){if(Y=this._encoder.handler(X,X.read()),Y===$3)break;if(Array.isArray(Y))Q.push.apply(Q,Y);else Q.push(Y)}this._encoder=null}return new Uint8Array(Q)}};function zf($){var V=$.fatal,J=0,Q=0,X=0,Y=128,G=191;this.handler=function(W,K){if(K===MQ&&X!==0)return X=0,JK(V);if(K===MQ)return $3;if(X===0){if(V8(K,0,127))return K;if(V8(K,194,223))X=1,J=K-192;else if(V8(K,224,239)){if(K===224)Y=160;if(K===237)G=159;X=2,J=K-224}else if(V8(K,240,244)){if(K===240)Y=144;if(K===244)G=143;X=3,J=K-240}else return JK(V);return J=J<<6*X,null}if(!V8(K,Y,G))return J=X=Q=0,Y=128,G=191,W.prepend(K),JK(V);if(Y=128,G=191,Q+=1,J+=K-128<<6*(X-Q),Q!==X)return null;var D=J;return J=X=Q=0,D}}function jf($){var V=$.fatal;this.handler=function(J,Q){if(Q===MQ)return $3;if(V8(Q,0,127))return Q;var X,Y;if(V8(Q,128,2047))X=1,Y=192;else if(V8(Q,2048,65535))X=2,Y=224;else if(V8(Q,65536,1114111))X=3,Y=240;var G=[(Q>>6*X)+Y];while(X>0){var W=Q>>6*(X-1);G.push(128|W&63),X-=1}return G}}Nf.TextEncoder=PQ;Nf.TextDecoder=RQ});var cN=M1((u2)=>{var Rf=u2&&u2.__createBinding||(Object.create?function($,V,J,Q){if(Q===void 0)Q=J;Object.defineProperty($,Q,{enumerable:!0,get:function(){return V[J]}})}:function($,V,J,Q){if(Q===void 0)Q=J;$[Q]=V[J]}),Pf=u2&&u2.__setModuleDefault||(Object.create?function($,V){Object.defineProperty($,"default",{enumerable:!0,value:V})}:function($,V){$.default=V}),V4=u2&&u2.__decorate||function($,V,J,Q){var X=arguments.length,Y=X<3?V:Q===null?Q=Object.getOwnPropertyDescriptor(V,J):Q,G;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")Y=Reflect.decorate($,V,J,Q);else for(var W=$.length-1;W>=0;W--)if(G=$[W])Y=(X<3?G(Y):X>3?G(V,J,Y):G(V,J))||Y;return X>3&&Y&&Object.defineProperty(V,J,Y),Y},Of=u2&&u2.__importStar||function($){if($&&$.__esModule)return $;var V={};if($!=null){for(var J in $)if(J!=="default"&&Object.hasOwnProperty.call($,J))Rf(V,$,J)}return Pf(V,$),V},fN=u2&&u2.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(u2,"__esModule",{value:!0});u2.deserializeUnchecked=u2.deserialize=u2.serialize=u2.BinaryReader=u2.BinaryWriter=u2.BorshError=u2.baseDecode=u2.baseEncode=void 0;var q5=fN(eW()),uN=fN(gN()),Ff=Of(lN()),Bf=typeof TextDecoder!=="function"?Ff.TextDecoder:TextDecoder,Sf=new Bf("utf-8",{fatal:!0});function _f($){if(typeof $==="string")$=Buffer.from($,"utf8");return uN.default.encode(Buffer.from($))}u2.baseEncode=_f;function Cf($){return Buffer.from(uN.default.decode($))}u2.baseDecode=Cf;var XK=1024;class H9 extends Error{constructor($){super($);this.fieldPath=[],this.originalMessage=$}addToFieldPath($){this.fieldPath.splice(0,0,$),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}u2.BorshError=H9;class YK{constructor(){this.buf=Buffer.alloc(XK),this.length=0}maybeResize(){if(this.buf.length<16+this.length)this.buf=Buffer.concat([this.buf,Buffer.alloc(XK)])}writeU8($){this.maybeResize(),this.buf.writeUInt8($,this.length),this.length+=1}writeU16($){this.maybeResize(),this.buf.writeUInt16LE($,this.length),this.length+=2}writeU32($){this.maybeResize(),this.buf.writeUInt32LE($,this.length),this.length+=4}writeU64($){this.maybeResize(),this.writeBuffer(Buffer.from(new q5.default($).toArray("le",8)))}writeU128($){this.maybeResize(),this.writeBuffer(Buffer.from(new q5.default($).toArray("le",16)))}writeU256($){this.maybeResize(),this.writeBuffer(Buffer.from(new q5.default($).toArray("le",32)))}writeU512($){this.maybeResize(),this.writeBuffer(Buffer.from(new q5.default($).toArray("le",64)))}writeBuffer($){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),$,Buffer.alloc(XK)]),this.length+=$.length}writeString($){this.maybeResize();let V=Buffer.from($,"utf8");this.writeU32(V.length),this.writeBuffer(V)}writeFixedArray($){this.writeBuffer(Buffer.from($))}writeArray($,V){this.maybeResize(),this.writeU32($.length);for(let J of $)this.maybeResize(),V(J)}toArray(){return this.buf.subarray(0,this.length)}}u2.BinaryWriter=YK;function J4($,V,J){let Q=J.value;J.value=function(...X){try{return Q.apply(this,X)}catch(Y){if(Y instanceof RangeError){let G=Y.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(G)>=0)throw new H9("Reached the end of buffer when deserializing")}throw Y}}}class A9{constructor($){this.buf=$,this.offset=0}readU8(){let $=this.buf.readUInt8(this.offset);return this.offset+=1,$}readU16(){let $=this.buf.readUInt16LE(this.offset);return this.offset+=2,$}readU32(){let $=this.buf.readUInt32LE(this.offset);return this.offset+=4,$}readU64(){let $=this.readBuffer(8);return new q5.default($,"le")}readU128(){let $=this.readBuffer(16);return new q5.default($,"le")}readU256(){let $=this.readBuffer(32);return new q5.default($,"le")}readU512(){let $=this.readBuffer(64);return new q5.default($,"le")}readBuffer($){if(this.offset+$>this.buf.length)throw new H9(`Expected buffer length ${$} isn't within bounds`);let V=this.buf.slice(this.offset,this.offset+$);return this.offset+=$,V}readString(){let $=this.readU32(),V=this.readBuffer($);try{return Sf.decode(V)}catch(J){throw new H9(`Error decoding UTF-8 string: ${J}`)}}readFixedArray($){return new Uint8Array(this.readBuffer($))}readArray($){let V=this.readU32(),J=Array();for(let Q=0;Q<V;++Q)J.push($());return J}}V4([J4],A9.prototype,"readU8",null);V4([J4],A9.prototype,"readU16",null);V4([J4],A9.prototype,"readU32",null);V4([J4],A9.prototype,"readU64",null);V4([J4],A9.prototype,"readU128",null);V4([J4],A9.prototype,"readU256",null);V4([J4],A9.prototype,"readU512",null);V4([J4],A9.prototype,"readString",null);V4([J4],A9.prototype,"readFixedArray",null);V4([J4],A9.prototype,"readArray",null);u2.BinaryReader=A9;function aN($){return $.charAt(0).toUpperCase()+$.slice(1)}function t5($,V,J,Q,X){try{if(typeof Q==="string")X[`write${aN(Q)}`](J);else if(Q instanceof Array)if(typeof Q[0]==="number"){if(J.length!==Q[0])throw new H9(`Expecting byte array of length ${Q[0]}, but got ${J.length} bytes`);X.writeFixedArray(J)}else if(Q.length===2&&typeof Q[1]==="number"){if(J.length!==Q[1])throw new H9(`Expecting byte array of length ${Q[1]}, but got ${J.length} bytes`);for(let Y=0;Y<Q[1];Y++)t5($,null,J[Y],Q[0],X)}else X.writeArray(J,(Y)=>{t5($,V,Y,Q[0],X)});else if(Q.kind!==void 0)switch(Q.kind){case"option":{if(J===null||J===void 0)X.writeU8(0);else X.writeU8(1),t5($,V,J,Q.type,X);break}case"map":{X.writeU32(J.size),J.forEach((Y,G)=>{t5($,V,G,Q.key,X),t5($,V,Y,Q.value,X)});break}default:throw new H9(`FieldType ${Q} unrecognized`)}else iN($,J,X)}catch(Y){if(Y instanceof H9)Y.addToFieldPath(V);throw Y}}function iN($,V,J){if(typeof V.borshSerialize==="function"){V.borshSerialize(J);return}let Q=$.get(V.constructor);if(!Q)throw new H9(`Class ${V.constructor.name} is missing in schema`);if(Q.kind==="struct")Q.fields.map(([X,Y])=>{t5($,X,V[X],Y,J)});else if(Q.kind==="enum"){let X=V[Q.field];for(let Y=0;Y<Q.values.length;++Y){let[G,W]=Q.values[Y];if(G===X){J.writeU8(Y),t5($,G,V[G],W,J);break}}}else throw new H9(`Unexpected schema kind: ${Q.kind} for ${V.constructor.name}`)}function If($,V,J=YK){let Q=new J;return iN($,V,Q),Q.toArray()}u2.serialize=If;function e5($,V,J,Q){try{if(typeof J==="string")return Q[`read${aN(J)}`]();if(J instanceof Array)if(typeof J[0]==="number")return Q.readFixedArray(J[0]);else if(typeof J[1]==="number"){let X=[];for(let Y=0;Y<J[1];Y++)X.push(e5($,null,J[0],Q));return X}else return Q.readArray(()=>e5($,V,J[0],Q));if(J.kind==="option"){if(Q.readU8())return e5($,V,J.type,Q);return}if(J.kind==="map"){let X=new Map,Y=Q.readU32();for(let G=0;G<Y;G++){let W=e5($,V,J.key,Q),K=e5($,V,J.value,Q);X.set(W,K)}return X}return GK($,J,Q)}catch(X){if(X instanceof H9)X.addToFieldPath(V);throw X}}function GK($,V,J){if(typeof V.borshDeserialize==="function")return V.borshDeserialize(J);let Q=$.get(V);if(!Q)throw new H9(`Class ${V.name} is missing in schema`);if(Q.kind==="struct"){let X={};for(let[Y,G]of $.get(V).fields)X[Y]=e5($,Y,G,J);return new V(X)}if(Q.kind==="enum"){let X=J.readU8();if(X>=Q.values.length)throw new H9(`Enum index: ${X} is out of range`);let[Y,G]=Q.values[X],W=e5($,Y,G,J);return new V({[Y]:W})}throw new H9(`Unexpected schema kind: ${Q.kind} for ${V.constructor.name}`)}function Tf($,V,J,Q=A9){let X=new Q(J),Y=GK($,V,X);if(X.offset<J.length)throw new H9(`Unexpected ${J.length-X.offset} bytes after deserialized data`);return Y}u2.deserialize=Tf;function Af($,V,J,Q=A9){let X=new Q(J);return GK($,V,X)}u2.deserializeUnchecked=Af});var rN=M1((nN)=>{Object.defineProperty(nN,"__esModule",{value:!0});nN.s16=nN.s8=nN.nu64be=nN.u48be=nN.u40be=nN.u32be=nN.u24be=nN.u16be=nN.nu64=nN.u48=nN.u40=nN.u32=nN.u24=nN.u16=nN.u8=nN.offset=nN.greedy=nN.Constant=nN.UTF8=nN.CString=nN.Blob=nN.Boolean=nN.BitField=nN.BitStructure=nN.VariantLayout=nN.Union=nN.UnionLayoutDiscriminator=nN.UnionDiscriminator=nN.Structure=nN.Sequence=nN.DoubleBE=nN.Double=nN.FloatBE=nN.Float=nN.NearInt64BE=nN.NearInt64=nN.NearUInt64BE=nN.NearUInt64=nN.IntBE=nN.Int=nN.UIntBE=nN.UInt=nN.OffsetLayout=nN.GreedyCount=nN.ExternalLayout=nN.bindConstructorLayout=nN.nameWithProperty=nN.Layout=nN.uint8ArrayToBuffer=nN.checkUint8Array=void 0;nN.constant=nN.utf8=nN.cstr=nN.blob=nN.unionLayoutDiscriminator=nN.union=nN.seq=nN.bits=nN.struct=nN.f64be=nN.f64=nN.f32be=nN.f32=nN.ns64be=nN.s48be=nN.s40be=nN.s32be=nN.s24be=nN.s16be=nN.ns64=nN.s48=nN.s40=nN.s32=nN.s24=void 0;var KK=k1("buffer");function J3($){if(!($ instanceof Uint8Array))throw TypeError("b must be a Uint8Array")}nN.checkUint8Array=J3;function k2($){return J3($),KK.Buffer.from($.buffer,$.byteOffset,$.length)}nN.uint8ArrayToBuffer=k2;class d2{constructor($,V){if(!Number.isInteger($))throw TypeError("span must be an integer");this.span=$,this.property=V}makeDestinationObject(){return{}}getSpan($,V){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate($){let V=Object.create(this.constructor.prototype);return Object.assign(V,this),V.property=$,V}fromArray($){return}}nN.Layout=d2;function qK($,V){if(V.property)return $+"["+V.property+"]";return $}nN.nameWithProperty=qK;function pf($,V){if(typeof $!=="function")throw TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call($,"layout_"))throw Error("Class is already bound to a layout");if(!(V&&V instanceof d2))throw TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(V,"boundConstructor_"))throw Error("layout is already bound to a constructor");$.layout_=V,V.boundConstructor_=$,V.makeDestinationObject=()=>new $,Object.defineProperty($.prototype,"encode",{value(J,Q){return V.encode(this,J,Q)},writable:!0}),Object.defineProperty($,"decode",{value(J,Q){return V.decode(J,Q)},writable:!0})}nN.bindConstructorLayout=pf;class O9 extends d2{isCount(){throw Error("ExternalLayout is abstract")}}nN.ExternalLayout=O9;class DK extends O9{constructor($=1,V){if(!Number.isInteger($)||0>=$)throw TypeError("elementSpan must be a (positive) integer");super(-1,V);this.elementSpan=$}isCount(){return!0}decode($,V=0){J3($);let J=$.length-V;return Math.floor(J/this.elementSpan)}encode($,V,J){return 0}}nN.GreedyCount=DK;class FQ extends O9{constructor($,V=0,J){if(!($ instanceof d2))throw TypeError("layout must be a Layout");if(!Number.isInteger(V))throw TypeError("offset must be integer or undefined");super($.span,J||$.property);this.layout=$,this.offset=V}isCount(){return this.layout instanceof x9||this.layout instanceof X6}decode($,V=0){return this.layout.decode($,V+this.offset)}encode($,V,J=0){return this.layout.encode($,V,J+this.offset)}}nN.OffsetLayout=FQ;class x9 extends d2{constructor($,V){super($,V);if(6<this.span)throw RangeError("span must not exceed 6 bytes")}decode($,V=0){return k2($).readUIntLE(V,this.span)}encode($,V,J=0){return k2(V).writeUIntLE($,J,this.span),this.span}}nN.UInt=x9;class X6 extends d2{constructor($,V){super($,V);if(6<this.span)throw RangeError("span must not exceed 6 bytes")}decode($,V=0){return k2($).readUIntBE(V,this.span)}encode($,V,J=0){return k2(V).writeUIntBE($,J,this.span),this.span}}nN.UIntBE=X6;class D5 extends d2{constructor($,V){super($,V);if(6<this.span)throw RangeError("span must not exceed 6 bytes")}decode($,V=0){return k2($).readIntLE(V,this.span)}encode($,V,J=0){return k2(V).writeIntLE($,J,this.span),this.span}}nN.Int=D5;class $7 extends d2{constructor($,V){super($,V);if(6<this.span)throw RangeError("span must not exceed 6 bytes")}decode($,V=0){return k2($).readIntBE(V,this.span)}encode($,V,J=0){return k2(V).writeIntBE($,J,this.span),this.span}}nN.IntBE=$7;var WK=Math.pow(2,32);function BQ($){let V=Math.floor($/WK),J=$-V*WK;return{hi32:V,lo32:J}}function SQ($,V){return $*WK+V}class HK extends d2{constructor($){super(8,$)}decode($,V=0){let J=k2($),Q=J.readUInt32LE(V),X=J.readUInt32LE(V+4);return SQ(X,Q)}encode($,V,J=0){let Q=BQ($),X=k2(V);return X.writeUInt32LE(Q.lo32,J),X.writeUInt32LE(Q.hi32,J+4),8}}nN.NearUInt64=HK;class ZK extends d2{constructor($){super(8,$)}decode($,V=0){let J=k2($),Q=J.readUInt32BE(V),X=J.readUInt32BE(V+4);return SQ(Q,X)}encode($,V,J=0){let Q=BQ($),X=k2(V);return X.writeUInt32BE(Q.hi32,J),X.writeUInt32BE(Q.lo32,J+4),8}}nN.NearUInt64BE=ZK;class UK extends d2{constructor($){super(8,$)}decode($,V=0){let J=k2($),Q=J.readUInt32LE(V),X=J.readInt32LE(V+4);return SQ(X,Q)}encode($,V,J=0){let Q=BQ($),X=k2(V);return X.writeUInt32LE(Q.lo32,J),X.writeInt32LE(Q.hi32,J+4),8}}nN.NearInt64=UK;class wK extends d2{constructor($){super(8,$)}decode($,V=0){let J=k2($),Q=J.readInt32BE(V),X=J.readUInt32BE(V+4);return SQ(Q,X)}encode($,V,J=0){let Q=BQ($),X=k2(V);return X.writeInt32BE(Q.hi32,J),X.writeUInt32BE(Q.lo32,J+4),8}}nN.NearInt64BE=wK;class zK extends d2{constructor($){super(4,$)}decode($,V=0){return k2($).readFloatLE(V)}encode($,V,J=0){return k2(V).writeFloatLE($,J),4}}nN.Float=zK;class jK extends d2{constructor($){super(4,$)}decode($,V=0){return k2($).readFloatBE(V)}encode($,V,J=0){return k2(V).writeFloatBE($,J),4}}nN.FloatBE=jK;class NK extends d2{constructor($){super(8,$)}decode($,V=0){return k2($).readDoubleLE(V)}encode($,V,J=0){return k2(V).writeDoubleLE($,J),8}}nN.Double=NK;class MK extends d2{constructor($){super(8,$)}decode($,V=0){return k2($).readDoubleBE(V)}encode($,V,J=0){return k2(V).writeDoubleBE($,J),8}}nN.DoubleBE=MK;class LK extends d2{constructor($,V,J){if(!($ instanceof d2))throw TypeError("elementLayout must be a Layout");if(!(V instanceof O9&&V.isCount()||Number.isInteger(V)&&0<=V))throw TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let Q=-1;if(!(V instanceof O9)&&0<$.span)Q=V*$.span;super(Q,J);this.elementLayout=$,this.count=V}getSpan($,V=0){if(0<=this.span)return this.span;let J=0,Q=this.count;if(Q instanceof O9)Q=Q.decode($,V);if(0<this.elementLayout.span)J=Q*this.elementLayout.span;else{let X=0;while(X<Q)J+=this.elementLayout.getSpan($,V+J),++X}return J}decode($,V=0){let J=[],Q=0,X=this.count;if(X instanceof O9)X=X.decode($,V);while(Q<X)J.push(this.elementLayout.decode($,V)),V+=this.elementLayout.getSpan($,V),Q+=1;return J}encode($,V,J=0){let Q=this.elementLayout,X=$.reduce((Y,G)=>{return Y+Q.encode(G,V,J+Y)},0);if(this.count instanceof O9)this.count.encode($.length,V,J);return X}}nN.Sequence=LK;class RK extends d2{constructor($,V,J){if(!(Array.isArray($)&&$.reduce((X,Y)=>X&&Y instanceof d2,!0)))throw TypeError("fields must be array of Layout instances");if(typeof V==="boolean"&&J===void 0)J=V,V=void 0;for(let X of $)if(0>X.span&&X.property===void 0)throw Error("fields cannot contain unnamed variable-length layout");let Q=-1;try{Q=$.reduce((X,Y)=>X+Y.getSpan(),0)}catch(X){}super(Q,V);this.fields=$,this.decodePrefixes=!!J}getSpan($,V=0){if(0<=this.span)return this.span;let J=0;try{J=this.fields.reduce((Q,X)=>{let Y=X.getSpan($,V);return V+=Y,Q+Y},0)}catch(Q){throw RangeError("indeterminate span")}return J}decode($,V=0){J3($);let J=this.makeDestinationObject();for(let Q of this.fields){if(Q.property!==void 0)J[Q.property]=Q.decode($,V);if(V+=Q.getSpan($,V),this.decodePrefixes&&$.length===V)break}return J}encode($,V,J=0){let Q=J,X=0,Y=0;for(let G of this.fields){let W=G.span;if(Y=0<W?W:0,G.property!==void 0){let K=$[G.property];if(K!==void 0){if(Y=G.encode(K,V,J),0>W)W=G.getSpan(V,J)}}X=J,J+=W}return X+Y-Q}fromArray($){let V=this.makeDestinationObject();for(let J of this.fields)if(J.property!==void 0&&0<$.length)V[J.property]=$.shift();return V}layoutFor($){if(typeof $!=="string")throw TypeError("property must be string");for(let V of this.fields)if(V.property===$)return V;return}offsetOf($){if(typeof $!=="string")throw TypeError("property must be string");let V=0;for(let J of this.fields){if(J.property===$)return V;if(0>J.span)V=-1;else if(0<=V)V+=J.span}return}}nN.Structure=RK;class _Q{constructor($){this.property=$}decode($,V){throw Error("UnionDiscriminator is abstract")}encode($,V,J){throw Error("UnionDiscriminator is abstract")}}nN.UnionDiscriminator=_Q;class $V extends _Q{constructor($,V){if(!($ instanceof O9&&$.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(V||$.property||"variant");this.layout=$}decode($,V){return this.layout.decode($,V)}encode($,V,J){return this.layout.encode($,V,J)}}nN.UnionLayoutDiscriminator=$V;class CQ extends d2{constructor($,V,J){let Q;if($ instanceof x9||$ instanceof X6)Q=new $V(new FQ($));else if($ instanceof O9&&$.isCount())Q=new $V($);else if(!($ instanceof _Q))throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");else Q=$;if(V===void 0)V=null;if(!(V===null||V instanceof d2))throw TypeError("defaultLayout must be null or a Layout");if(V!==null){if(0>V.span)throw Error("defaultLayout must have constant span");if(V.property===void 0)V=V.replicate("content")}let X=-1;if(V){if(X=V.span,0<=X&&($ instanceof x9||$ instanceof X6))X+=Q.layout.span}super(X,J);this.discriminator=Q,this.usesPrefixDiscriminator=$ instanceof x9||$ instanceof X6,this.defaultLayout=V,this.registry={};let Y=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(G){return Y(G)},this.configGetSourceVariant=function(G){Y=G.bind(this)}}getSpan($,V=0){if(0<=this.span)return this.span;let J=this.getVariant($,V);if(!J)throw Error("unable to determine span for unrecognized variant");return J.getSpan($,V)}defaultGetSourceVariant($){if(Object.prototype.hasOwnProperty.call($,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call($,this.defaultLayout.property))return;let V=this.registry[$[this.discriminator.property]];if(V&&(!V.layout||V.property&&Object.prototype.hasOwnProperty.call($,V.property)))return V}else for(let V in this.registry){let J=this.registry[V];if(J.property&&Object.prototype.hasOwnProperty.call($,J.property))return J}throw Error("unable to infer src variant")}decode($,V=0){let J,Q=this.discriminator,X=Q.decode($,V),Y=this.registry[X];if(Y===void 0){let G=this.defaultLayout,W=0;if(this.usesPrefixDiscriminator)W=Q.layout.span;J=this.makeDestinationObject(),J[Q.property]=X,J[G.property]=G.decode($,V+W)}else J=Y.decode($,V);return J}encode($,V,J=0){let Q=this.getSourceVariant($);if(Q===void 0){let X=this.discriminator,Y=this.defaultLayout,G=0;if(this.usesPrefixDiscriminator)G=X.layout.span;return X.encode($[X.property],V,J),G+Y.encode($[Y.property],V,J+G)}return Q.encode($,V,J)}addVariant($,V,J){let Q=new PK(this,$,V,J);return this.registry[$]=Q,Q}getVariant($,V=0){let J;if($ instanceof Uint8Array)J=this.discriminator.decode($,V);else J=$;return this.registry[J]}}nN.Union=CQ;class PK extends d2{constructor($,V,J,Q){if(!($ instanceof CQ))throw TypeError("union must be a Union");if(!Number.isInteger(V)||0>V)throw TypeError("variant must be a (non-negative) integer");if(typeof J==="string"&&Q===void 0)Q=J,J=null;if(J){if(!(J instanceof d2))throw TypeError("layout must be a Layout");if($.defaultLayout!==null&&0<=J.span&&J.span>$.defaultLayout.span)throw Error("variant span exceeds span of containing union");if(typeof Q!=="string")throw TypeError("variant must have a String property")}let X=$.span;if(0>$.span){if(X=J?J.span:0,0<=X&&$.usesPrefixDiscriminator)X+=$.discriminator.layout.span}super(X,Q);this.union=$,this.variant=V,this.layout=J||null}getSpan($,V=0){if(0<=this.span)return this.span;let J=0;if(this.union.usesPrefixDiscriminator)J=this.union.discriminator.layout.span;let Q=0;if(this.layout)Q=this.layout.getSpan($,V+J);return J+Q}decode($,V=0){let J=this.makeDestinationObject();if(this!==this.union.getVariant($,V))throw Error("variant mismatch");let Q=0;if(this.union.usesPrefixDiscriminator)Q=this.union.discriminator.layout.span;if(this.layout)J[this.property]=this.layout.decode($,V+Q);else if(this.property)J[this.property]=!0;else if(this.union.usesPrefixDiscriminator)J[this.union.discriminator.property]=this.variant;return J}encode($,V,J=0){let Q=0;if(this.union.usesPrefixDiscriminator)Q=this.union.discriminator.layout.span;if(this.layout&&!Object.prototype.hasOwnProperty.call($,this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,V,J);let X=Q;if(this.layout){if(this.layout.encode($[this.property],V,J+Q),X+=this.layout.getSpan(V,J+Q),0<=this.union.span&&X>this.union.span)throw Error("encoded variant overruns containing union")}return X}fromArray($){if(this.layout)return this.layout.fromArray($);return}}nN.VariantLayout=PK;function V3($){if(0>$)$+=4294967296;return $}class IQ extends d2{constructor($,V,J){if(!($ instanceof x9||$ instanceof X6))throw TypeError("word must be a UInt or UIntBE layout");if(typeof V==="string"&&J===void 0)J=V,V=!1;if(4<$.span)throw RangeError("word cannot exceed 32 bits");super($.span,J);this.word=$,this.msb=!!V,this.fields=[];let Q=0;this._packedSetValue=function(X){return Q=V3(X),this},this._packedGetValue=function(){return Q}}decode($,V=0){let J=this.makeDestinationObject(),Q=this.word.decode($,V);this._packedSetValue(Q);for(let X of this.fields)if(X.property!==void 0)J[X.property]=X.decode($);return J}encode($,V,J=0){let Q=this.word.decode(V,J);this._packedSetValue(Q);for(let X of this.fields)if(X.property!==void 0){let Y=$[X.property];if(Y!==void 0)X.encode(Y)}return this.word.encode(this._packedGetValue(),V,J)}addField($,V){let J=new TQ(this,$,V);return this.fields.push(J),J}addBoolean($){let V=new OK(this,$);return this.fields.push(V),V}fieldFor($){if(typeof $!=="string")throw TypeError("property must be string");for(let V of this.fields)if(V.property===$)return V;return}}nN.BitStructure=IQ;class TQ{constructor($,V,J){if(!($ instanceof IQ))throw TypeError("container must be a BitStructure");if(!Number.isInteger(V)||0>=V)throw TypeError("bits must be positive integer");let Q=8*$.span,X=$.fields.reduce((Y,G)=>Y+G.bits,0);if(V+X>Q)throw Error("bits too long for span remainder ("+(Q-X)+" of "+Q+" remain)");if(this.container=$,this.bits=V,this.valueMask=(1<<V)-1,V===32)this.valueMask=4294967295;if(this.start=X,this.container.msb)this.start=Q-X-V;this.wordMask=V3(this.valueMask<<this.start),this.property=J}decode($,V){let J=this.container._packedGetValue();return V3(J&this.wordMask)>>>this.start}encode($){if(typeof $!=="number"||!Number.isInteger($)||$!==V3($&this.valueMask))throw TypeError(qK("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let V=this.container._packedGetValue(),J=V3($<<this.start);this.container._packedSetValue(V3(V&~this.wordMask)|J)}}nN.BitField=TQ;class OK extends TQ{constructor($,V){super($,1,V)}decode($,V){return!!super.decode($,V)}encode($){if(typeof $==="boolean")$=+$;super.encode($)}}nN.Boolean=OK;class FK extends d2{constructor($,V){if(!($ instanceof O9&&$.isCount()||Number.isInteger($)&&0<=$))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let J=-1;if(!($ instanceof O9))J=$;super(J,V);this.length=$}getSpan($,V){let J=this.span;if(0>J)J=this.length.decode($,V);return J}decode($,V=0){let J=this.span;if(0>J)J=this.length.decode($,V);return k2($).slice(V,V+J)}encode($,V,J){let Q=this.length;if(this.length instanceof O9)Q=$.length;if(!($ instanceof Uint8Array&&Q===$.length))throw TypeError(qK("Blob.encode",this)+" requires (length "+Q+") Uint8Array as src");if(J+Q>V.length)throw RangeError("encoding overruns Uint8Array");let X=k2($);if(k2(V).write(X.toString("hex"),J,Q,"hex"),this.length instanceof O9)this.length.encode(Q,V,J);return Q}}nN.Blob=FK;class BK extends d2{constructor($){super(-1,$)}getSpan($,V=0){J3($);let J=V;while(J<$.length&&$[J]!==0)J+=1;return 1+J-V}decode($,V=0){let J=this.getSpan($,V);return k2($).slice(V,V+J-1).toString("utf-8")}encode($,V,J=0){if(typeof $!=="string")$=String($);let Q=KK.Buffer.from($,"utf8"),X=Q.length;if(J+X>V.length)throw RangeError("encoding overruns Buffer");let Y=k2(V);return Q.copy(Y,J),Y[J+X]=0,X+1}}nN.CString=BK;class SK extends d2{constructor($,V){if(typeof $==="string"&&V===void 0)V=$,$=void 0;if($===void 0)$=-1;else if(!Number.isInteger($))throw TypeError("maxSpan must be an integer");super(-1,V);this.maxSpan=$}getSpan($,V=0){return J3($),$.length-V}decode($,V=0){let J=this.getSpan($,V);if(0<=this.maxSpan&&this.maxSpan<J)throw RangeError("text length exceeds maxSpan");return k2($).slice(V,V+J).toString("utf-8")}encode($,V,J=0){if(typeof $!=="string")$=String($);let Q=KK.Buffer.from($,"utf8"),X=Q.length;if(0<=this.maxSpan&&this.maxSpan<X)throw RangeError("text length exceeds maxSpan");if(J+X>V.length)throw RangeError("encoding overruns Buffer");return Q.copy(k2(V),J),X}}nN.UTF8=SK;class _K extends d2{constructor($,V){super(0,V);this.value=$}decode($,V){return this.value}encode($,V,J){return 0}}nN.Constant=_K;nN.greedy=($,V)=>new DK($,V);nN.offset=($,V,J)=>new FQ($,V,J);nN.u8=($)=>new x9(1,$);nN.u16=($)=>new x9(2,$);nN.u24=($)=>new x9(3,$);nN.u32=($)=>new x9(4,$);nN.u40=($)=>new x9(5,$);nN.u48=($)=>new x9(6,$);nN.nu64=($)=>new HK($);nN.u16be=($)=>new X6(2,$);nN.u24be=($)=>new X6(3,$);nN.u32be=($)=>new X6(4,$);nN.u40be=($)=>new X6(5,$);nN.u48be=($)=>new X6(6,$);nN.nu64be=($)=>new ZK($);nN.s8=($)=>new D5(1,$);nN.s16=($)=>new D5(2,$);nN.s24=($)=>new D5(3,$);nN.s32=($)=>new D5(4,$);nN.s40=($)=>new D5(5,$);nN.s48=($)=>new D5(6,$);nN.ns64=($)=>new UK($);nN.s16be=($)=>new $7(2,$);nN.s24be=($)=>new $7(3,$);nN.s32be=($)=>new $7(4,$);nN.s40be=($)=>new $7(5,$);nN.s48be=($)=>new $7(6,$);nN.ns64be=($)=>new wK($);nN.f32=($)=>new zK($);nN.f32be=($)=>new jK($);nN.f64=($)=>new NK($);nN.f64be=($)=>new MK($);nN.struct=($,V,J)=>new RK($,V,J);nN.bits=($,V,J)=>new IQ($,V,J);nN.seq=($,V,J)=>new LK($,V,J);nN.union=($,V,J)=>new CQ($,V,J);nN.unionLayoutDiscriminator=($,V)=>new $V($,V);nN.blob=($,V)=>new FK($,V);nN.cstr=($)=>new BK($);nN.utf8=($,V)=>new SK($,V);nN.constant=($,V)=>new _K($,V)});var tK=M1((Xa)=>{var tN=1,eN=2,$M=3,VM=4,JM=5,QM=6,XM=7,YM=8,GM=9,CK=10,IK=-32700,TK=-32603,AK=-32602,pK=-32601,mK=-32600,WM=-32016,kK=-32015,EK=-32014,KM=-32013,vK=-32012,qM=-32011,hK=-32010,xK=-32009,DM=-32008,dK=-32007,yK=-32006,HM=-32005,bK=-32004,ZM=-32003,AQ=-32002,gK=-32001,UM=2800000,wM=2800001,zM=2800002,jM=2800003,NM=2800004,MM=2800005,LM=2800006,RM=2800007,PM=2800008,OM=2800009,FM=2800010,BM=2800011,SM=3230000,_M=32300001,CM=3230002,IM=3230003,TM=3230004,AM=3610000,pM=3610001,mM=3610002,kM=3610003,EM=3610004,vM=3610005,hM=3610006,xM=3610007,dM=3611000,yM=3704000,bM=3704001,gM=3704002,lM=3704003,fM=3704004,uM=4128000,aM=4128001,iM=4128002,lK=4615000,cM=4615001,nM=4615002,oM=4615003,sM=4615004,rM=4615005,tM=4615006,eM=4615007,$L=4615008,VL=4615009,JL=4615010,QL=4615011,XL=4615012,YL=4615013,GL=4615014,WL=4615015,KL=4615016,qL=4615017,DL=4615018,HL=4615019,ZL=4615020,UL=4615021,wL=4615022,zL=4615023,jL=4615024,NL=4615025,fK=4615026,ML=4615027,LL=4615028,RL=4615029,PL=4615030,OL=4615031,FL=4615032,BL=4615033,SL=4615034,_L=4615035,CL=4615036,IL=4615037,TL=4615038,AL=4615039,pL=4615040,mL=4615041,kL=4615042,EL=4615043,vL=4615044,uK=4615045,hL=4615046,xL=4615047,dL=4615048,yL=4615049,bL=4615050,gL=4615051,lL=4615052,fL=4615053,uL=4615054,aL=5508000,iL=5508001,cL=5508002,nL=5508003,oL=5508004,sL=5508005,rL=5508006,tL=5508007,eL=5508008,$R=5508009,VR=5508010,JR=5508011,QR=5663000,XR=5663001,YR=5663002,GR=5663003,WR=5663004,KR=5663005,qR=5663006,DR=5663007,HR=5663008,ZR=5663009,UR=5663010,wR=5663011,zR=5663012,jR=5663013,NR=5663014,MR=5663015,LR=5663016,RR=5663017,PR=5663018,OR=5663019,FR=5663020,aK=7050000,BR=7050001,SR=7050002,_R=7050003,CR=7050004,IR=7050005,TR=7050006,AR=7050007,pR=7050008,mR=7050009,kR=7050010,ER=7050011,vR=7050012,hR=7050013,xR=7050014,dR=7050015,yR=7050016,bR=7050017,gR=7050018,lR=7050019,fR=7050020,uR=7050021,aR=7050022,iR=7050023,cR=7050024,nR=7050025,oR=7050026,sR=7050027,rR=7050028,tR=7050029,iK=7050030,cK=7050031,eR=7050032,$P=7050033,VP=7050034,nK=7050035,JP=7050036,QP=8078000,XP=8078001,YP=8078002,GP=8078003,WP=8078004,KP=8078005,qP=8078006,DP=8078007,HP=8078008,ZP=8078009,UP=8078010,wP=8078011,zP=8078012,jP=8078013,NP=8078014,MP=8078015,LP=8078016,RP=8078017,PP=8078018,OP=8078019,FP=8078020,BP=8078021,SP=8078022,_P=8100000,CP=8100001,IP=8100002,TP=8100003,AP=8190000,pP=8190001,mP=8190002,kP=8190003,EP=8190004,vP=9900000,hP=9900001,xP=9900002,dP=9900003,yP=9900004,ru={[SM]:"Account not found at address: $address",[TM]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[IM]:"Expected decoded account at address: $address",[CM]:"Failed to decode account data at address: $address",[_M]:"Accounts not found at addresses: $addresses",[OM]:"Unable to find a viable program address bump seed.",[zM]:"$putativeAddress is not a base58-encoded address.",[UM]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[jM]:"The `CryptoKey` must be an `Ed25519` public key.",[BM]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[PM]:"Invalid seeds; point must fall off the Ed25519 curve.",[NM]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[LM]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[RM]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[MM]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[FM]:"Program address cannot end with PDA marker.",[wM]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[VM]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[tN]:"The network has progressed past the last block for which this transaction could have been committed.",[QP]:"Codec [$codecDescription] cannot decode empty byte arrays.",[SP]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[FP]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[KP]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[qP]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[WP]:"Encoder and decoder must either both be fixed-size or variable-size.",[HP]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[YP]:"Expected a fixed-size codec, got a variable-size one.",[jP]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[GP]:"Expected a variable-size codec, got a fixed-size one.",[OP]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[XP]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[PP]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[ZP]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[UP]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[MP]:"Invalid literal union variant. Expected one of [$variants], got $value.",[DP]:"Expected [$codecDescription] to have $expected items, got $actual.",[zP]:"Invalid value $value for base $base with alphabet $alphabet.",[LP]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[wP]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[NP]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[BP]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[RP]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[dM]:"No random values implementation could be found.",[VL]:"instruction requires an uninitialized account",[zL]:"instruction tries to borrow reference for an account which is already borrowed",[jL]:"instruction left account with an outstanding borrowed reference",[UL]:"program other than the account's owner changed the size of the account data",[rM]:"account data too small for instruction",[wL]:"instruction expected an executable account",[hL]:"An account does not have enough lamports to be rent-exempt",[dL]:"Program arithmetic overflowed",[uK]:"Failed to serialize or deserialize account data: $encodedData",[uL]:"Builtin programs must consume compute units",[FL]:"Cross-program invocation call depth too deep",[TL]:"Computational budget exceeded",[fK]:"custom program error: #$code",[qL]:"instruction contains duplicate accounts",[NL]:"instruction modifications of multiply-passed account differ",[PL]:"executable accounts must be rent exempt",[LL]:"instruction changed executable accounts data",[RL]:"instruction changed the balance of an executable account",[DL]:"instruction changed executable bit of an account",[GL]:"instruction modified data of an account it does not own",[YL]:"instruction spent from the balance of an account it does not own",[cM]:"generic instruction error",[bL]:"Provided owner is not allowed",[EL]:"Account is immutable",[vL]:"Incorrect authority provided",[eM]:"incorrect program id for instruction",[tM]:"insufficient funds for instruction",[sM]:"invalid account data for instruction",[xL]:"Invalid account owner",[nM]:"invalid program argument",[ML]:"program returned invalid error code",[oM]:"invalid instruction data",[IL]:"Failed to reallocate account data",[CL]:"Provided seeds do not result in a valid address",[gL]:"Accounts data allocations exceeded the maximum allowed per transaction",[lL]:"Max accounts exceeded",[fL]:"Max instruction trace length exceeded",[_L]:"Length of the seed is too long for address generation",[BL]:"An account required by the instruction is missing",[$L]:"missing required signature for instruction",[XL]:"instruction illegally modified the program id of an account",[ZL]:"insufficient account keys for instruction",[AL]:"Cross-program invocation with unauthorized signer or writable account",[pL]:"Failed to create program execution environment",[kL]:"Program failed to compile",[mL]:"Program failed to complete",[KL]:"instruction modified data of a read-only account",[WL]:"instruction changed the balance of a read-only account",[SL]:"Cross-program invocation reentrancy not allowed for this instruction",[HL]:"instruction modified rent epoch of an account",[QL]:"sum of account balances before and after instruction do not match",[JL]:"instruction requires an initialized account",[lK]:"",[OL]:"Unsupported program id",[yL]:"Unsupported sysvar",[uM]:"The instruction does not have any accounts.",[aM]:"The instruction does not have any data.",[iM]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[JM]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[eN]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[xP]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[yP]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[hP]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[vP]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[dP]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[TK]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[AK]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[mK]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[pK]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[IK]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[vK]:"$__serverMessage",[gK]:"$__serverMessage",[bK]:"$__serverMessage",[EK]:"$__serverMessage",[hK]:"$__serverMessage",[xK]:"$__serverMessage",[WM]:"Minimum context slot has not been reached",[HM]:"Node is unhealthy; behind by $numSlotsBehind slots",[DM]:"No snapshot",[AQ]:"Transaction simulation failed",[dK]:"$__serverMessage",[qM]:"Transaction history is not available from this node",[yK]:"$__serverMessage",[KM]:"Transaction signature length mismatch",[ZM]:"Transaction signature verification failure",[kK]:"$__serverMessage",[yM]:"Key pair bytes must be of length 64, got $byteLength.",[bM]:"Expected private key bytes with length 32. Actual length: $actualLength.",[gM]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[fM]:"The provided private key does not match the provided public key.",[lM]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[QM]:"Lamports value must be in the range [0, 2e64-1]",[XM]:"`$value` cannot be parsed as a `BigInt`",[CK]:"$message",[YM]:"`$value` cannot be parsed as a `Number`",[$M]:"No nonce account could be found at address `$nonceAccountAddress`",[AP]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[mP]:"WebSocket was closed before payload could be added to the send buffer",[kP]:"WebSocket connection closed",[EP]:"WebSocket failed to connect",[pP]:"Failed to obtain a subscription id from the server",[TP]:"Could not find an API plan for RPC method: `$method`",[_P]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[IP]:"HTTP error ($statusCode): $message",[CP]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[aL]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[iL]:"The provided value does not implement the `KeyPairSigner` interface",[nL]:"The provided value does not implement the `MessageModifyingSigner` interface",[oL]:"The provided value does not implement the `MessagePartialSigner` interface",[cL]:"The provided value does not implement any of the `MessageSigner` interfaces",[rL]:"The provided value does not implement the `TransactionModifyingSigner` interface",[tL]:"The provided value does not implement the `TransactionPartialSigner` interface",[eL]:"The provided value does not implement the `TransactionSendingSigner` interface",[sL]:"The provided value does not implement any of the `TransactionSigner` interfaces",[$R]:"More than one `TransactionSendingSigner` was identified.",[VR]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[JR]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[xM]:"Cannot export a non-extractable key.",[pM]:"No digest implementation could be found.",[AM]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[mM]:`This runtime does not support the generation of Ed25519 key pairs.
2
+
3
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
4
+
5
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[kM]:"No signature verification implementation could be found.",[EM]:"No key generation implementation could be found.",[vM]:"No signing implementation could be found.",[hM]:"No key export implementation could be found.",[GM]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[yR]:"Transaction processing left an account with an outstanding borrowed reference",[BR]:"Account in use",[SR]:"Account loaded twice",[_R]:"Attempt to debit an account but found no record of a prior credit.",[iR]:"Transaction loads an address table account that doesn't exist",[AR]:"This transaction has already been processed",[pR]:"Blockhash not found",[mR]:"Loader call chain is too deep",[dR]:"Transactions are currently disabled due to cluster maintenance",[iK]:"Transaction contains a duplicate instruction ($index) that is not allowed",[IR]:"Insufficient funds for fee",[cK]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[TR]:"This account may not be used to pay transaction fees",[ER]:"Transaction contains an invalid account reference",[nR]:"Transaction loads an address table account with invalid data",[oR]:"Transaction address table lookup uses an invalid index",[cR]:"Transaction loads an address table account with an invalid owner",[$P]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[hR]:"This program may not be used for executing instructions",[sR]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[lR]:"Transaction loads a writable account that cannot be written",[eR]:"Transaction exceeded max loaded accounts data size cap",[kR]:"Transaction requires a fee but has no signature present",[CR]:"Attempt to load a program that does not exist",[nK]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[VP]:"ResanitizationNeeded",[xR]:"Transaction failed to sanitize accounts offsets correctly",[vR]:"Transaction did not pass signature verification",[aR]:"Transaction locked too many accounts",[JP]:"Sum of account balances before and after transaction do not match",[aK]:"The transaction failed with the error `$errorName`",[gR]:"Transaction version is unsupported",[uR]:"Transaction would exceed account data limit within the block",[tR]:"Transaction would exceed total account data limit",[fR]:"Transaction would exceed max account limit within the block",[bR]:"Transaction would exceed max Block Cost Limit",[rR]:"Transaction would exceed max Vote Cost Limit",[MR]:"Attempted to sign a transaction with an address that is not a signer for it",[UR]:"Transaction is missing an address at index: $index.",[LR]:"Transaction has no expected signers therefore it cannot be encoded",[FR]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[YR]:"Transaction does not have a blockhash lifetime",[GR]:"Transaction is not a durable nonce transaction",[KR]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[qR]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[HR]:"No fee payer set in CompiledTransaction",[DR]:"Could not find program address at index $index",[PR]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[OR]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[wR]:"Transaction is missing a fee payer.",[zR]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[NR]:"Transaction first instruction is not advance nonce account instruction.",[jR]:"Transaction with no instructions cannot be durable nonce transaction.",[QR]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[XR]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[RR]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[ZR]:"Transaction is missing signatures for addresses: $addresses.",[WR]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},J8="i",Q4="t";function tu($,V={}){let J=ru[$];if(J.length===0)return"";let Q;function X(G){if(Q[Q4]===2){let W=J.slice(Q[J8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[Q4]===1)Y.push(J.slice(Q[J8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[J8]:0,[Q4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[Q4]){case 0:K={[J8]:W,[Q4]:1};break;case 1:if(G==="\\")K={[J8]:W,[Q4]:0};else if(G==="$")K={[J8]:W,[Q4]:2};break;case 2:if(G==="\\")K={[J8]:W,[Q4]:0};else if(G==="$")K={[J8]:W,[Q4]:2};else if(!G.match(/\w/))K={[J8]:W,[Q4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function eu($,V={}){return tu($,V)}function $a($,V){if($ instanceof Error&&$.name==="SolanaError"){if(V!==void 0)return $.context.__code===V;return!0}return!1}var VV=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V){let{cause:Y,...G}=V;if(Y)Q={cause:Y};if(Object.keys(G).length>0)J=G}let X=eu($,J);super(X,Q);this.context={__code:$,...J},this.name="SolanaError"}};function oK(...$){if("captureStackTrace"in Error&&typeof Error.captureStackTrace==="function")Error.captureStackTrace(...$)}function bP({errorCodeBaseOffset:$,getErrorContext:V,orderedErrorNames:J,rpcEnumError:Q},X){let Y,G;if(typeof Q==="string")Y=Q;else Y=Object.keys(Q)[0],G=Q[Y];let W=J.indexOf(Y),K=$+W,D=V(K,Y,G),H=new VV(K,D);return oK(H,X),H}var Va=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function sK($,V){let J=Number($);return bP({errorCodeBaseOffset:4615001,getErrorContext(Q,X,Y){if(Q===lK)return{errorName:X,index:J,...Y!==void 0?{instructionErrorContext:Y}:null};else if(Q===fK)return{code:Number(Y),index:J};else if(Q===uK)return{encodedData:Y,index:J};return{index:J}},orderedErrorNames:Va,rpcEnumError:V},sK)}var Ja=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function rK($){if(typeof $==="object"&&"InstructionError"in $)return sK(...$.InstructionError);return bP({errorCodeBaseOffset:7050001,getErrorContext(V,J,Q){if(V===aK)return{errorName:J,...Q!==void 0?{transactionErrorContext:Q}:null};else if(V===iK)return{index:Number(Q)};else if(V===cK||V===nK)return{accountIndex:Number(Q.account_index)}},orderedErrorNames:Ja,rpcEnumError:$},rK)}function gP($){let V;if(Qa($)){let{code:J,data:Q,message:X}=$,Y=Number(J);if(Y===AQ){let{err:G,...W}=Q,K=G?{cause:rK(G)}:null;V=new VV(AQ,{...W,...K})}else{let G;switch(Y){case TK:case AK:case mK:case pK:case IK:case vK:case gK:case bK:case EK:case hK:case xK:case dK:case yK:case kK:G={__serverMessage:X};break;default:if(typeof Q==="object"&&!Array.isArray(Q))G=Q}V=new VV(Y,G)}}else{let J=typeof $==="object"&&$!==null&&"message"in $&&typeof $.message==="string"?$.message:"Malformed JSON-RPC error with no message attribute";V=new VV(CK,{error:$,message:J})}return oK(V,gP),V}function Qa($){return typeof $==="object"&&$!==null&&"code"in $&&"message"in $&&(typeof $.code==="number"||typeof $.code==="bigint")&&typeof $.message==="string"}Xa.SOLANA_ERROR__ACCOUNTS__ACCOUNT_NOT_FOUND=SM;Xa.SOLANA_ERROR__ACCOUNTS__EXPECTED_ALL_ACCOUNTS_TO_BE_DECODED=TM;Xa.SOLANA_ERROR__ACCOUNTS__EXPECTED_DECODED_ACCOUNT=IM;Xa.SOLANA_ERROR__ACCOUNTS__FAILED_TO_DECODE_ACCOUNT=CM;Xa.SOLANA_ERROR__ACCOUNTS__ONE_OR_MORE_ACCOUNTS_NOT_FOUND=_M;Xa.SOLANA_ERROR__ADDRESSES__FAILED_TO_FIND_VIABLE_PDA_BUMP_SEED=OM;Xa.SOLANA_ERROR__ADDRESSES__INVALID_BASE58_ENCODED_ADDRESS=zM;Xa.SOLANA_ERROR__ADDRESSES__INVALID_BYTE_LENGTH=UM;Xa.SOLANA_ERROR__ADDRESSES__INVALID_ED25519_PUBLIC_KEY=jM;Xa.SOLANA_ERROR__ADDRESSES__INVALID_OFF_CURVE_ADDRESS=BM;Xa.SOLANA_ERROR__ADDRESSES__INVALID_SEEDS_POINT_ON_CURVE=PM;Xa.SOLANA_ERROR__ADDRESSES__MALFORMED_PDA=NM;Xa.SOLANA_ERROR__ADDRESSES__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED=LM;Xa.SOLANA_ERROR__ADDRESSES__MAX_PDA_SEED_LENGTH_EXCEEDED=RM;Xa.SOLANA_ERROR__ADDRESSES__PDA_BUMP_SEED_OUT_OF_RANGE=MM;Xa.SOLANA_ERROR__ADDRESSES__PDA_ENDS_WITH_PDA_MARKER=FM;Xa.SOLANA_ERROR__ADDRESSES__STRING_LENGTH_OUT_OF_RANGE=wM;Xa.SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE=VM;Xa.SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED=tN;Xa.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY=QP;Xa.SOLANA_ERROR__CODECS__CANNOT_USE_LEXICAL_VALUES_AS_ENUM_DISCRIMINATORS=SP;Xa.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL=FP;Xa.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH=KP;Xa.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH=qP;Xa.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH=WP;Xa.SOLANA_ERROR__CODECS__ENUM_DISCRIMINATOR_OUT_OF_RANGE=HP;Xa.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH=YP;Xa.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH=jP;Xa.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH=GP;Xa.SOLANA_ERROR__CODECS__EXPECTED_ZERO_VALUE_TO_MATCH_ITEM_FIXED_SIZE=OP;Xa.SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH=XP;Xa.SOLANA_ERROR__CODECS__INVALID_CONSTANT=PP;Xa.SOLANA_ERROR__CODECS__INVALID_DISCRIMINATED_UNION_VARIANT=ZP;Xa.SOLANA_ERROR__CODECS__INVALID_ENUM_VARIANT=UP;Xa.SOLANA_ERROR__CODECS__INVALID_LITERAL_UNION_VARIANT=MP;Xa.SOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMS=DP;Xa.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE=zP;Xa.SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE=LP;Xa.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE=wP;Xa.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE=NP;Xa.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES=BP;Xa.SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE=RP;Xa.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED=dM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_ALREADY_INITIALIZED=VL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_FAILED=zL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=jL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_SIZE_CHANGED=UL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_TOO_SMALL=rM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_EXECUTABLE=wL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_RENT_EXEMPT=hL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ARITHMETIC_OVERFLOW=dL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR=uK;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS=uL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__CALL_DEPTH=FL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__COMPUTATIONAL_BUDGET_EXCEEDED=TL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM=fK;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_INDEX=qL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_OUT_OF_SYNC=NL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT=PL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_DATA_MODIFIED=LL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_LAMPORT_CHANGE=RL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_MODIFIED=DL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED=GL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_LAMPORT_SPEND=YL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__GENERIC_ERROR=cM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__ILLEGAL_OWNER=bL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__IMMUTABLE=EL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_AUTHORITY=vL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_PROGRAM_ID=eM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INSUFFICIENT_FUNDS=tM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_DATA=sM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_OWNER=xL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ARGUMENT=nM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ERROR=ML;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_INSTRUCTION_DATA=oM;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_REALLOC=IL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_SEEDS=CL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED=gL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_EXCEEDED=lL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED=fL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_SEED_LENGTH_EXCEEDED=_L;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_ACCOUNT=BL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_REQUIRED_SIGNATURE=$L;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__MODIFIED_PROGRAM_ID=XL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__NOT_ENOUGH_ACCOUNT_KEYS=ZL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__PRIVILEGE_ESCALATION=AL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_ENVIRONMENT_SETUP_FAILURE=pL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPILE=kL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPLETE=mL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_DATA_MODIFIED=KL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE=WL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__REENTRANCY_NOT_ALLOWED=SL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__RENT_EPOCH_MODIFIED=HL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__UNBALANCED_INSTRUCTION=QL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__UNINITIALIZED_ACCOUNT=JL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN=lK;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_PROGRAM_ID=OL;Xa.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_SYSVAR=yL;Xa.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_ACCOUNTS=uM;Xa.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_DATA=aM;Xa.SOLANA_ERROR__INSTRUCTION__PROGRAM_ID_MISMATCH=iM;Xa.SOLANA_ERROR__INVALID_BLOCKHASH_BYTE_LENGTH=JM;Xa.SOLANA_ERROR__INVALID_NONCE=eN;Xa.SOLANA_ERROR__INVARIANT_VIOLATION__CACHED_ABORTABLE_ITERABLE_CACHE_ENTRY_MISSING=xP;Xa.SOLANA_ERROR__INVARIANT_VIOLATION__DATA_PUBLISHER_CHANNEL_UNIMPLEMENTED=yP;Xa.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_MUST_NOT_POLL_BEFORE_RESOLVING_EXISTING_MESSAGE_PROMISE=hP;Xa.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_STATE_MISSING=vP;Xa.SOLANA_ERROR__INVARIANT_VIOLATION__SWITCH_MUST_BE_EXHAUSTIVE=dP;Xa.SOLANA_ERROR__JSON_RPC__INTERNAL_ERROR=TK;Xa.SOLANA_ERROR__JSON_RPC__INVALID_PARAMS=AK;Xa.SOLANA_ERROR__JSON_RPC__INVALID_REQUEST=mK;Xa.SOLANA_ERROR__JSON_RPC__METHOD_NOT_FOUND=pK;Xa.SOLANA_ERROR__JSON_RPC__PARSE_ERROR=IK;Xa.SOLANA_ERROR__JSON_RPC__SCAN_ERROR=vK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_CLEANED_UP=gK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_NOT_AVAILABLE=bK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET=EK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX=hK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED=xK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED=WM;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NODE_UNHEALTHY=HM;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NO_SNAPSHOT=DM;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE=AQ;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_SKIPPED=dK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE=qM;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE=yK;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH=KM;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE=ZM;Xa.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION=kK;Xa.SOLANA_ERROR__KEYS__INVALID_KEY_PAIR_BYTE_LENGTH=yM;Xa.SOLANA_ERROR__KEYS__INVALID_PRIVATE_KEY_BYTE_LENGTH=bM;Xa.SOLANA_ERROR__KEYS__INVALID_SIGNATURE_BYTE_LENGTH=gM;Xa.SOLANA_ERROR__KEYS__PUBLIC_KEY_MUST_MATCH_PRIVATE_KEY=fM;Xa.SOLANA_ERROR__KEYS__SIGNATURE_STRING_LENGTH_OUT_OF_RANGE=lM;Xa.SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE=QM;Xa.SOLANA_ERROR__MALFORMED_BIGINT_STRING=XM;Xa.SOLANA_ERROR__MALFORMED_JSON_RPC_ERROR=CK;Xa.SOLANA_ERROR__MALFORMED_NUMBER_STRING=YM;Xa.SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND=$M;Xa.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CANNOT_CREATE_SUBSCRIPTION_PLAN=AP;Xa.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CLOSED_BEFORE_MESSAGE_BUFFERED=mP;Xa.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CONNECTION_CLOSED=kP;Xa.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_FAILED_TO_CONNECT=EP;Xa.SOLANA_ERROR__RPC_SUBSCRIPTIONS__EXPECTED_SERVER_SUBSCRIPTION_ID=pP;Xa.SOLANA_ERROR__RPC__API_PLAN_MISSING_FOR_RPC_METHOD=TP;Xa.SOLANA_ERROR__RPC__INTEGER_OVERFLOW=_P;Xa.SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR=IP;Xa.SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN=CP;Xa.SOLANA_ERROR__SIGNER__ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS=aL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_KEY_PAIR_SIGNER=iL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_MODIFYING_SIGNER=nL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_PARTIAL_SIGNER=oL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_SIGNER=cL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_MODIFYING_SIGNER=rL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_PARTIAL_SIGNER=tL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SENDING_SIGNER=eL;Xa.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SIGNER=sL;Xa.SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS=$R;Xa.SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING=VR;Xa.SOLANA_ERROR__SIGNER__WALLET_MULTISIGN_UNIMPLEMENTED=JR;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__CANNOT_EXPORT_NON_EXTRACTABLE_KEY=xM;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED=pM;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT=AM;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED=mM;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED=kM;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED=EM;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED=vM;Xa.SOLANA_ERROR__SUBTLE_CRYPTO__VERIFY_FUNCTION_UNIMPLEMENTED=hM;Xa.SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE=GM;Xa.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=yR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_IN_USE=BR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_LOADED_TWICE=SR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_NOT_FOUND=_R;Xa.SOLANA_ERROR__TRANSACTION_ERROR__ADDRESS_LOOKUP_TABLE_NOT_FOUND=iR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__ALREADY_PROCESSED=AR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND=pR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__CALL_CHAIN_TOO_DEEP=mR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__CLUSTER_MAINTENANCE=dR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__DUPLICATE_INSTRUCTION=iK;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_FEE=IR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_RENT=cK;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_FOR_FEE=TR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_INDEX=ER;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_DATA=nR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_INDEX=oR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_OWNER=cR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT=$P;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_PROGRAM_FOR_EXECUTION=hR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_RENT_PAYING_ACCOUNT=sR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_WRITABLE_ACCOUNT=lR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED=eR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__MISSING_SIGNATURE_FOR_FEE=kR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_ACCOUNT_NOT_FOUND=CR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED=nK;Xa.SOLANA_ERROR__TRANSACTION_ERROR__RESANITIZATION_NEEDED=VP;Xa.SOLANA_ERROR__TRANSACTION_ERROR__SANITIZE_FAILURE=xR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__SIGNATURE_FAILURE=vR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__TOO_MANY_ACCOUNT_LOCKS=aR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__UNBALANCED_TRANSACTION=JP;Xa.SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN=aK;Xa.SOLANA_ERROR__TRANSACTION_ERROR__UNSUPPORTED_VERSION=gR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT=uR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT=tR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT=fR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_BLOCK_COST_LIMIT=bR;Xa.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_VOTE_COST_LIMIT=rR;Xa.SOLANA_ERROR__TRANSACTION__ADDRESSES_CANNOT_SIGN_TRANSACTION=MR;Xa.SOLANA_ERROR__TRANSACTION__ADDRESS_MISSING=UR;Xa.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES=LR;Xa.SOLANA_ERROR__TRANSACTION__EXCEEDS_SIZE_LIMIT=FR;Xa.SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME=YR;Xa.SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME=GR;Xa.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_CONTENTS_MISSING=KR;Xa.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_INDEX_OUT_OF_RANGE=qR;Xa.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_FEE_PAYER_MISSING=HR;Xa.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NOT_FOUND=DR;Xa.SOLANA_ERROR__TRANSACTION__FAILED_TO_ESTIMATE_COMPUTE_LIMIT=PR;Xa.SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_COMPUTE_LIMIT=OR;Xa.SOLANA_ERROR__TRANSACTION__FEE_PAYER_MISSING=wR;Xa.SOLANA_ERROR__TRANSACTION__FEE_PAYER_SIGNATURE_MISSING=zR;Xa.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_MUST_BE_ADVANCE_NONCE=NR;Xa.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_INSTRUCTIONS_MISSING=jR;Xa.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES=QR;Xa.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE=XR;Xa.SOLANA_ERROR__TRANSACTION__MESSAGE_SIGNATURES_MISMATCH=RR;Xa.SOLANA_ERROR__TRANSACTION__SIGNATURES_MISSING=ZR;Xa.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE=WR;Xa.SolanaError=VV;Xa.getSolanaErrorFromInstructionError=sK;Xa.getSolanaErrorFromJsonRpcError=gP;Xa.getSolanaErrorFromTransactionError=rK;Xa.isSolanaError=$a;Xa.safeCaptureStackTrace=oK});var qO=M1((vo)=>{var e2=tK(),Fo=($)=>{let V=$.filter((Y)=>Y.length);if(V.length===0)return $.length?$[0]:new Uint8Array;if(V.length===1)return V[0];let J=V.reduce((Y,G)=>Y+G.length,0),Q=new Uint8Array(J),X=0;return V.forEach((Y)=>{Q.set(Y,X),X+=Y.length}),Q},lP=($,V)=>{if($.length>=V)return $;let J=new Uint8Array(V).fill(0);return J.set($),J},fP=($,V)=>lP($.length<=V?$:$.slice(0,V),V);function uP($,V,J){let Q=J===0&&$.length===V.length?$:$.slice(J,J+V.length);if(Q.length!==V.length)return!1;return V.every((X,Y)=>X===Q[Y])}function JV($,V){return"fixedSize"in V?V.fixedSize:V.getSizeFromValue($)}function B6($){return Object.freeze({...$,encode:(V)=>{let J=new Uint8Array(JV(V,$));return $.write(V,J,0),J}})}function X4($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function aP($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0],encode:(V)=>{let J=new Uint8Array(JV(V,$));return $.write(V,J,0),J}})}function R0($){return"fixedSize"in $&&typeof $.fixedSize==="number"}function eK($){if(!R0($))throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH)}function $q($){return!R0($)}function Bo($){if(!$q($))throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH)}function Q8($,V){if(R0($)!==R0(V))throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH);if(R0($)&&R0(V)&&$.fixedSize!==V.fixedSize)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH,{decoderFixedSize:V.fixedSize,encoderFixedSize:$.fixedSize});if(!R0($)&&!R0(V)&&$.maxSize!==V.maxSize)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH,{decoderMaxSize:V.maxSize,encoderMaxSize:$.maxSize});return{...V,...$,decode:V.decode,encode:$.encode,read:V.read,write:$.write}}function iP($,V){let J=(Q,X,Y)=>{let G=$.encode(Q);if(nP(G,V)>=0)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL,{encodedBytes:G,hexEncodedBytes:pQ(G),hexSentinel:pQ(V),sentinel:V});return X.set(G,Y),Y+=G.length,X.set(V,Y),Y+=V.length,Y};if(R0($))return B6({...$,fixedSize:$.fixedSize+V.length,write:J});return B6({...$,...$.maxSize!=null?{maxSize:$.maxSize+V.length}:{},getSizeFromValue:(Q)=>$.getSizeFromValue(Q)+V.length,write:J})}function cP($,V){let J=(Q,X)=>{let Y=X===0?Q:Q.slice(X),G=nP(Y,V);if(G===-1)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES,{decodedBytes:Y,hexDecodedBytes:pQ(Y),hexSentinel:pQ(V),sentinel:V});let W=Y.slice(0,G);return[$.decode(W),X+W.length+V.length]};if(R0($))return X4({...$,fixedSize:$.fixedSize+V.length,read:J});return X4({...$,...$.maxSize!=null?{maxSize:$.maxSize+V.length}:{},read:J})}function So($,V){return Q8(iP($,V),cP($,V))}function nP($,V){return $.findIndex((J,Q,X)=>{if(V.length===1)return J===V[0];return uP(X,V,Q)})}function pQ($){return $.reduce((V,J)=>V+J.toString(16).padStart(2,"0"),"")}function _o($,V,J=0){if(V.length-J<=0)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY,{codecDescription:$})}function Vq($,V,J,Q=0){let X=J.length-Q;if(X<V)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH,{bytesLength:X,codecDescription:$,expected:V})}function QV($,V,J){if(V<0||V>J)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE,{bytesLength:J,codecDescription:$,offset:V})}function oP($,V){let J=(G,W,K)=>{let D=$.encode(G);return K=V.write(D.length,W,K),W.set(D,K),K+D.length};if(R0(V)&&R0($))return B6({...$,fixedSize:V.fixedSize+$.fixedSize,write:J});let Q=R0(V)?V.fixedSize:V.maxSize??null,X=R0($)?$.fixedSize:$.maxSize??null,Y=Q!==null&&X!==null?Q+X:null;return B6({...$,...Y!==null?{maxSize:Y}:{},getSizeFromValue:(G)=>{let W=JV(G,$);return JV(W,V)+W},write:J})}function sP($,V){let J=(G,W)=>{let[K,D]=V.read(G,W),H=Number(K);if(W=D,W>0||G.length>H)G=G.slice(W,W+H);return Vq("addDecoderSizePrefix",H,G),[$.decode(G),W+H]};if(R0(V)&&R0($))return X4({...$,fixedSize:V.fixedSize+$.fixedSize,read:J});let Q=R0(V)?V.fixedSize:V.maxSize??null,X=R0($)?$.fixedSize:$.maxSize??null,Y=Q!==null&&X!==null?Q+X:null;return X4({...$,...Y!==null?{maxSize:Y}:{},read:J})}function Co($,V){return Q8(oP($,V),sP($,V))}function rP($,V){return B6({fixedSize:V,write:(J,Q,X)=>{let Y=$.encode(J),G=Y.length>V?Y.slice(0,V):Y;return Q.set(G,X),X+V}})}function tP($,V){return X4({fixedSize:V,read:(J,Q)=>{if(Vq("fixCodecSize",V,J,Q),Q>0||J.length>V)J=J.slice(Q,Q+V);if(R0($))J=fP(J,$.fixedSize);let[X]=$.read(J,0);return[X,Q+V]}})}function Io($,V){return Q8(rP($,V),tP($,V))}function mQ($,V){return B6({...$,write:(J,Q,X)=>{let Y=(D)=>eP(D,Q.length),G=V.preOffset?V.preOffset({bytes:Q,preOffset:X,wrapBytes:Y}):X;QV("offsetEncoder",G,Q.length);let W=$.write(J,Q,G),K=V.postOffset?V.postOffset({bytes:Q,newPreOffset:G,postOffset:W,preOffset:X,wrapBytes:Y}):W;return QV("offsetEncoder",K,Q.length),K}})}function kQ($,V){return X4({...$,read:(J,Q)=>{let X=(D)=>eP(D,J.length),Y=V.preOffset?V.preOffset({bytes:J,preOffset:Q,wrapBytes:X}):Q;QV("offsetDecoder",Y,J.length);let[G,W]=$.read(J,Y),K=V.postOffset?V.postOffset({bytes:J,newPreOffset:Y,postOffset:W,preOffset:Q,wrapBytes:X}):W;return QV("offsetDecoder",K,J.length),[G,K]}})}function To($,V){return Q8(mQ($,V),kQ($,V))}function eP($,V){if(V===0)return 0;return($%V+V)%V}function EQ($,V){if(R0($)){let J=V($.fixedSize);if(J<0)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:J,codecDescription:"resizeEncoder"});return B6({...$,fixedSize:J})}return B6({...$,getSizeFromValue:(J)=>{let Q=V($.getSizeFromValue(J));if(Q<0)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:Q,codecDescription:"resizeEncoder"});return Q}})}function vQ($,V){if(R0($)){let J=V($.fixedSize);if(J<0)throw new e2.SolanaError(e2.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:J,codecDescription:"resizeDecoder"});return X4({...$,fixedSize:J})}return $}function Ao($,V){return Q8(EQ($,V),vQ($,V))}function $O($,V){return mQ(EQ($,(J)=>J+V),{preOffset:({preOffset:J})=>J+V})}function VO($,V){return mQ(EQ($,(J)=>J+V),{postOffset:({postOffset:J})=>J+V})}function JO($,V){return kQ(vQ($,(J)=>J+V),{preOffset:({preOffset:J})=>J+V})}function QO($,V){return kQ(vQ($,(J)=>J+V),{postOffset:({postOffset:J})=>J+V})}function po($,V){return Q8($O($,V),JO($,V))}function mo($,V){return Q8(VO($,V),QO($,V))}function XO($,V,J,Q,X=0){while(J<--Q){let Y=$[J];V[J+X]=$[Q],V[Q+X]=Y,J++}if(J===Q)V[J+X]=$[J]}function YO($){return eK($),B6({...$,write:(V,J,Q)=>{let X=$.write(V,J,Q);return XO(J,J,Q,Q+$.fixedSize),X}})}function GO($){return eK($),X4({...$,read:(V,J)=>{let Q=V.slice();return XO(V,Q,J,J+$.fixedSize),$.read(Q,J)}})}function ko($){return Q8(YO($),GO($))}function WO($,V){return B6({...$q($)?{...$,getSizeFromValue:(J)=>$.getSizeFromValue(V(J))}:$,write:(J,Q,X)=>$.write(V(J),Q,X)})}function KO($,V){return X4({...$,read:(J,Q)=>{let[X,Y]=$.read(J,Q);return[V(X,J,Q),Y]}})}function Eo($,V,J){return aP({...WO($,V),read:J?KO($,J).read:$.read})}vo.addCodecSentinel=So;vo.addCodecSizePrefix=Co;vo.addDecoderSentinel=cP;vo.addDecoderSizePrefix=sP;vo.addEncoderSentinel=iP;vo.addEncoderSizePrefix=oP;vo.assertByteArrayHasEnoughBytesForCodec=Vq;vo.assertByteArrayIsNotEmptyForCodec=_o;vo.assertByteArrayOffsetIsNotOutOfRange=QV;vo.assertIsFixedSize=eK;vo.assertIsVariableSize=Bo;vo.combineCodec=Q8;vo.containsBytes=uP;vo.createCodec=aP;vo.createDecoder=X4;vo.createEncoder=B6;vo.fixBytes=fP;vo.fixCodecSize=Io;vo.fixDecoderSize=tP;vo.fixEncoderSize=rP;vo.getEncodedSize=JV;vo.isFixedSize=R0;vo.isVariableSize=$q;vo.mergeBytes=Fo;vo.offsetCodec=To;vo.offsetDecoder=kQ;vo.offsetEncoder=mQ;vo.padBytes=lP;vo.padLeftCodec=po;vo.padLeftDecoder=JO;vo.padLeftEncoder=$O;vo.padRightCodec=mo;vo.padRightDecoder=QO;vo.padRightEncoder=VO;vo.resizeCodec=Ao;vo.resizeDecoder=vQ;vo.resizeEncoder=EQ;vo.reverseCodec=ko;vo.reverseDecoder=GO;vo.reverseEncoder=YO;vo.transformCodec=Eo;vo.transformDecoder=KO;vo.transformEncoder=WO});var yO=M1((bs)=>{var DO=tK(),x0=qO();function Jq($,V,J,Q){if(Q<V||Q>J)throw new DO.SolanaError(DO.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE,{codecDescription:$,max:J,min:V,value:Q})}var HO=(($)=>{return $[$.Little=0]="Little",$[$.Big=1]="Big",$})(HO||{});function ZO($){return $?.endian===1?!1:!0}function Y6($){return x0.createEncoder({fixedSize:$.size,write(V,J,Q){if($.range)Jq($.name,$.range[0],$.range[1],V);let X=new ArrayBuffer($.size);return $.set(new DataView(X),V,ZO($.config)),J.set(new Uint8Array(X),Q),Q+$.size}})}function G6($){return x0.createDecoder({fixedSize:$.size,read(V,J=0){x0.assertByteArrayIsNotEmptyForCodec($.name,V,J),x0.assertByteArrayHasEnoughBytesForCodec($.name,$.size,V,J);let Q=new DataView(_s(V,J,$.size));return[$.get(Q,ZO($.config)),J+$.size]}})}function _s($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength;return $.buffer.slice(Q,Q+X)}var UO=($={})=>Y6({config:$,name:"f32",set:(V,J,Q)=>V.setFloat32(0,Number(J),Q),size:4}),wO=($={})=>G6({config:$,get:(V,J)=>V.getFloat32(0,J),name:"f32",size:4}),Cs=($={})=>x0.combineCodec(UO($),wO($)),zO=($={})=>Y6({config:$,name:"f64",set:(V,J,Q)=>V.setFloat64(0,Number(J),Q),size:8}),jO=($={})=>G6({config:$,get:(V,J)=>V.getFloat64(0,J),name:"f64",size:8}),Is=($={})=>x0.combineCodec(zO($),jO($)),NO=($={})=>Y6({config:$,name:"i128",range:[-BigInt("0x7fffffffffffffffffffffffffffffff")-1n,BigInt("0x7fffffffffffffffffffffffffffffff")],set:(V,J,Q)=>{let X=Q?8:0,Y=Q?0:8,G=0xffffffffffffffffn;V.setBigInt64(X,BigInt(J)>>64n,Q),V.setBigUint64(Y,BigInt(J)&G,Q)},size:16}),MO=($={})=>G6({config:$,get:(V,J)=>{let Q=J?8:0,X=J?0:8,Y=V.getBigInt64(Q,J),G=V.getBigUint64(X,J);return(Y<<64n)+G},name:"i128",size:16}),Ts=($={})=>x0.combineCodec(NO($),MO($)),LO=($={})=>Y6({config:$,name:"i16",range:[-Number("0x7fff")-1,Number("0x7fff")],set:(V,J,Q)=>V.setInt16(0,Number(J),Q),size:2}),RO=($={})=>G6({config:$,get:(V,J)=>V.getInt16(0,J),name:"i16",size:2}),As=($={})=>x0.combineCodec(LO($),RO($)),PO=($={})=>Y6({config:$,name:"i32",range:[-Number("0x7fffffff")-1,Number("0x7fffffff")],set:(V,J,Q)=>V.setInt32(0,Number(J),Q),size:4}),OO=($={})=>G6({config:$,get:(V,J)=>V.getInt32(0,J),name:"i32",size:4}),ps=($={})=>x0.combineCodec(PO($),OO($)),FO=($={})=>Y6({config:$,name:"i64",range:[-BigInt("0x7fffffffffffffff")-1n,BigInt("0x7fffffffffffffff")],set:(V,J,Q)=>V.setBigInt64(0,BigInt(J),Q),size:8}),BO=($={})=>G6({config:$,get:(V,J)=>V.getBigInt64(0,J),name:"i64",size:8}),ms=($={})=>x0.combineCodec(FO($),BO($)),SO=()=>Y6({name:"i8",range:[-Number("0x7f")-1,Number("0x7f")],set:($,V)=>$.setInt8(0,Number(V)),size:1}),_O=()=>G6({get:($)=>$.getInt8(0),name:"i8",size:1}),ks=()=>x0.combineCodec(SO(),_O()),CO=()=>x0.createEncoder({getSizeFromValue:($)=>{if($<=127)return 1;if($<=16383)return 2;return 3},maxSize:3,write:($,V,J)=>{Jq("shortU16",0,65535,$);let Q=[0];for(let X=0;;X+=1){let Y=Number($)>>X*7;if(Y===0)break;let G=127&Y;if(Q[X]=G,X>0)Q[X-1]|=128}return V.set(Q,J),J+Q.length}}),IO=()=>x0.createDecoder({maxSize:3,read:($,V)=>{let J=0,Q=0;while(++Q){let X=Q-1,Y=$[V+X],G=127&Y;if(J|=G<<X*7,(Y&128)===0)break}return[J,V+Q]}}),Es=()=>x0.combineCodec(CO(),IO()),TO=($={})=>Y6({config:$,name:"u128",range:[0n,BigInt("0xffffffffffffffffffffffffffffffff")],set:(V,J,Q)=>{let X=Q?8:0,Y=Q?0:8,G=0xffffffffffffffffn;V.setBigUint64(X,BigInt(J)>>64n,Q),V.setBigUint64(Y,BigInt(J)&G,Q)},size:16}),AO=($={})=>G6({config:$,get:(V,J)=>{let Q=J?8:0,X=J?0:8,Y=V.getBigUint64(Q,J),G=V.getBigUint64(X,J);return(Y<<64n)+G},name:"u128",size:16}),vs=($={})=>x0.combineCodec(TO($),AO($)),pO=($={})=>Y6({config:$,name:"u16",range:[0,Number("0xffff")],set:(V,J,Q)=>V.setUint16(0,Number(J),Q),size:2}),mO=($={})=>G6({config:$,get:(V,J)=>V.getUint16(0,J),name:"u16",size:2}),hs=($={})=>x0.combineCodec(pO($),mO($)),kO=($={})=>Y6({config:$,name:"u32",range:[0,Number("0xffffffff")],set:(V,J,Q)=>V.setUint32(0,Number(J),Q),size:4}),EO=($={})=>G6({config:$,get:(V,J)=>V.getUint32(0,J),name:"u32",size:4}),xs=($={})=>x0.combineCodec(kO($),EO($)),vO=($={})=>Y6({config:$,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(V,J,Q)=>V.setBigUint64(0,BigInt(J),Q),size:8}),hO=($={})=>G6({config:$,get:(V,J)=>V.getBigUint64(0,J),name:"u64",size:8}),ds=($={})=>x0.combineCodec(vO($),hO($)),xO=()=>Y6({name:"u8",range:[0,Number("0xff")],set:($,V)=>$.setUint8(0,Number(V)),size:1}),dO=()=>G6({get:($)=>$.getUint8(0),name:"u8",size:1}),ys=()=>x0.combineCodec(xO(),dO());bs.Endian=HO;bs.assertNumberIsBetweenForCodec=Jq;bs.getF32Codec=Cs;bs.getF32Decoder=wO;bs.getF32Encoder=UO;bs.getF64Codec=Is;bs.getF64Decoder=jO;bs.getF64Encoder=zO;bs.getI128Codec=Ts;bs.getI128Decoder=MO;bs.getI128Encoder=NO;bs.getI16Codec=As;bs.getI16Decoder=RO;bs.getI16Encoder=LO;bs.getI32Codec=ps;bs.getI32Decoder=OO;bs.getI32Encoder=PO;bs.getI64Codec=ms;bs.getI64Decoder=BO;bs.getI64Encoder=FO;bs.getI8Codec=ks;bs.getI8Decoder=_O;bs.getI8Encoder=SO;bs.getShortU16Codec=Es;bs.getShortU16Decoder=IO;bs.getShortU16Encoder=CO;bs.getU128Codec=vs;bs.getU128Decoder=AO;bs.getU128Encoder=TO;bs.getU16Codec=hs;bs.getU16Decoder=mO;bs.getU16Encoder=pO;bs.getU32Codec=xs;bs.getU32Decoder=EO;bs.getU32Encoder=kO;bs.getU64Codec=ds;bs.getU64Decoder=hO;bs.getU64Encoder=vO;bs.getU8Codec=ys;bs.getU8Decoder=dO;bs.getU8Encoder=xO});var gO=M1((hQ,bO)=>{(function($,V){typeof hQ==="object"&&typeof bO<"u"?V(hQ):typeof define==="function"&&define.amd?define(["exports"],V):($=typeof globalThis<"u"?globalThis:$||self,V($.Superstruct={}))})(hQ,function($){class V extends TypeError{constructor(d,n){let s,{message:e,explanation:w1,...b1}=d,{path:h1}=d,d1=h1.length===0?e:`At path: ${h1.join(".")} -- ${e}`;super(w1??d1);if(w1!=null)this.cause=d1;Object.assign(this,b1),this.name=this.constructor.name,this.failures=()=>{return s??(s=[d,...n()])}}}function J(d){return Q(d)&&typeof d[Symbol.iterator]==="function"}function Q(d){return typeof d==="object"&&d!=null}function X(d){return Q(d)&&!Array.isArray(d)}function Y(d){if(Object.prototype.toString.call(d)!=="[object Object]")return!1;let n=Object.getPrototypeOf(d);return n===null||n===Object.prototype}function G(d){if(typeof d==="symbol")return d.toString();return typeof d==="string"?JSON.stringify(d):`${d}`}function W(d){let{done:n,value:s}=d.next();return n?void 0:s}function K(d,n,s,e){if(d===!0)return;else if(d===!1)d={};else if(typeof d==="string")d={message:d};let{path:w1,branch:b1}=n,{type:h1}=s,{refinement:d1,message:t2=`Expected a value of type \`${h1}\`${d1?` with refinement \`${d1}\``:""}, but received: \`${G(e)}\``}=d;return{value:e,type:h1,refinement:d1,key:w1[w1.length-1],path:w1,branch:b1,...d,message:t2}}function*D(d,n,s,e){if(!J(d))d=[d];for(let w1 of d){let b1=K(w1,n,s,e);if(b1)yield b1}}function*H(d,n,s={}){let{path:e=[],branch:w1=[d],coerce:b1=!1,mask:h1=!1}=s,d1={path:e,branch:w1,mask:h1};if(b1)d=n.coercer(d,d1);let t2="valid";for(let J2 of n.validator(d,d1))J2.explanation=s.message,t2="not_valid",yield[J2,void 0];for(let[J2,F2,n6]of n.entries(d,d1)){let l2=H(F2,n6,{path:J2===void 0?e:[...e,J2],branch:J2===void 0?w1:[...w1,F2],coerce:b1,mask:h1,message:s.message});for(let b2 of l2)if(b2[0])t2=b2[0].refinement!=null?"not_refined":"not_valid",yield[b2[0],void 0];else if(b1){if(F2=b2[1],J2===void 0)d=F2;else if(d instanceof Map)d.set(J2,F2);else if(d instanceof Set)d.add(F2);else if(Q(d)){if(F2!==void 0||J2 in d)d[J2]=F2}}}if(t2!=="not_valid")for(let J2 of n.refiner(d,d1))J2.explanation=s.message,t2="not_refined",yield[J2,void 0];if(t2==="valid")yield[void 0,d]}class U{constructor(d){let{type:n,schema:s,validator:e,refiner:w1,coercer:b1=(d1)=>d1,entries:h1=function*(){}}=d;if(this.type=n,this.schema=s,this.entries=h1,this.coercer=b1,e)this.validator=(d1,t2)=>{let J2=e(d1,t2);return D(J2,t2,this,d1)};else this.validator=()=>[];if(w1)this.refiner=(d1,t2)=>{let J2=w1(d1,t2);return D(J2,t2,this,d1)};else this.refiner=()=>[]}assert(d,n){return z(d,this,n)}create(d,n){return M(d,this,n)}is(d){return B(d,this)}mask(d,n){return L(d,this,n)}validate(d,n={}){return _(d,this,n)}}function z(d,n,s){let e=_(d,n,{message:s});if(e[0])throw e[0]}function M(d,n,s){let e=_(d,n,{coerce:!0,message:s});if(e[0])throw e[0];else return e[1]}function L(d,n,s){let e=_(d,n,{coerce:!0,mask:!0,message:s});if(e[0])throw e[0];else return e[1]}function B(d,n){return!_(d,n)[0]}function _(d,n,s={}){let e=H(d,n,s),w1=W(e);if(w1[0])return[new V(w1[0],function*(){for(let h1 of e)if(h1[0])yield h1[0]}),void 0];else return[void 0,w1[1]]}function T(...d){let n=d[0].type==="type",s=d.map((w1)=>w1.schema),e=Object.assign({},...s);return n?$2(e):G1(e)}function h(d,n){return new U({type:d,schema:null,validator:n})}function A(d,n){return new U({...d,refiner:(s,e)=>s===void 0||d.refiner(s,e),validator(s,e){if(s===void 0)return!0;else return n(s,e),d.validator(s,e)}})}function E(d){return new U({type:"dynamic",schema:null,*entries(n,s){yield*d(n,s).entries(n,s)},validator(n,s){return d(n,s).validator(n,s)},coercer(n,s){return d(n,s).coercer(n,s)},refiner(n,s){return d(n,s).refiner(n,s)}})}function y(d){let n;return new U({type:"lazy",schema:null,*entries(s,e){n??(n=d()),yield*n.entries(s,e)},validator(s,e){return n??(n=d()),n.validator(s,e)},coercer(s,e){return n??(n=d()),n.coercer(s,e)},refiner(s,e){return n??(n=d()),n.refiner(s,e)}})}function l(d,n){let{schema:s}=d,e={...s};for(let w1 of n)delete e[w1];switch(d.type){case"type":return $2(e);default:return G1(e)}}function f(d){let n=d instanceof U,s=n?{...d.schema}:{...d};for(let e in s)s[e]=H1(s[e]);if(n&&d.type==="type")return $2(s);return G1(s)}function o(d,n){let{schema:s}=d,e={};for(let w1 of n)e[w1]=s[w1];switch(d.type){case"type":return $2(e);default:return G1(e)}}function u(d,n){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),h(d,n)}function i(){return h("any",()=>!0)}function t(d){return new U({type:"array",schema:d,*entries(n){if(d&&Array.isArray(n))for(let[s,e]of n.entries())yield[s,e,d]},coercer(n){return Array.isArray(n)?n.slice():n},validator(n){return Array.isArray(n)||`Expected an array value, but received: ${G(n)}`}})}function g(){return h("bigint",(d)=>{return typeof d==="bigint"})}function S(){return h("boolean",(d)=>{return typeof d==="boolean"})}function q(){return h("date",(d)=>{return d instanceof Date&&!isNaN(d.getTime())||`Expected a valid \`Date\` object, but received: ${G(d)}`})}function Z(d){let n={},s=d.map((e)=>G(e)).join();for(let e of d)n[e]=e;return new U({type:"enums",schema:n,validator(e){return d.includes(e)||`Expected one of \`${s}\`, but received: ${G(e)}`}})}function R(){return h("func",(d)=>{return typeof d==="function"||`Expected a function, but received: ${G(d)}`})}function O(d){return h("instance",(n)=>{return n instanceof d||`Expected a \`${d.name}\` instance, but received: ${G(n)}`})}function F(){return h("integer",(d)=>{return typeof d==="number"&&!isNaN(d)&&Number.isInteger(d)||`Expected an integer, but received: ${G(d)}`})}function m(d){return new U({type:"intersection",schema:null,*entries(n,s){for(let e of d)yield*e.entries(n,s)},*validator(n,s){for(let e of d)yield*e.validator(n,s)},*refiner(n,s){for(let e of d)yield*e.refiner(n,s)}})}function x(d){let n=G(d),s=typeof d;return new U({type:"literal",schema:s==="string"||s==="number"||s==="boolean"?d:null,validator(e){return e===d||`Expected the literal \`${n}\`, but received: ${G(e)}`}})}function p(d,n){return new U({type:"map",schema:null,*entries(s){if(d&&n&&s instanceof Map)for(let[e,w1]of s.entries())yield[e,e,d],yield[e,w1,n]},coercer(s){return s instanceof Map?new Map(s):s},validator(s){return s instanceof Map||`Expected a \`Map\` object, but received: ${G(s)}`}})}function N(){return h("never",()=>!1)}function v(d){return new U({...d,validator:(n,s)=>n===null||d.validator(n,s),refiner:(n,s)=>n===null||d.refiner(n,s)})}function $1(){return h("number",(d)=>{return typeof d==="number"&&!isNaN(d)||`Expected a number, but received: ${G(d)}`})}function G1(d){let n=d?Object.keys(d):[],s=N();return new U({type:"object",schema:d?d:null,*entries(e){if(d&&Q(e)){let w1=new Set(Object.keys(e));for(let b1 of n)w1.delete(b1),yield[b1,e[b1],d[b1]];for(let b1 of w1)yield[b1,e[b1],s]}},validator(e){return X(e)||`Expected an object, but received: ${G(e)}`},coercer(e,w1){if(!X(e))return e;let b1={...e};if(w1.mask&&d){for(let h1 in b1)if(d[h1]===void 0)delete b1[h1]}return b1}})}function H1(d){return new U({...d,validator:(n,s)=>n===void 0||d.validator(n,s),refiner:(n,s)=>n===void 0||d.refiner(n,s)})}function B1(d,n){return new U({type:"record",schema:null,*entries(s){if(Q(s))for(let e in s){let w1=s[e];yield[e,e,d],yield[e,w1,n]}},validator(s){return X(s)||`Expected an object, but received: ${G(s)}`},coercer(s){return X(s)?{...s}:s}})}function A1(){return h("regexp",(d)=>{return d instanceof RegExp})}function m1(d){return new U({type:"set",schema:null,*entries(n){if(d&&n instanceof Set)for(let s of n)yield[s,s,d]},coercer(n){return n instanceof Set?new Set(n):n},validator(n){return n instanceof Set||`Expected a \`Set\` object, but received: ${G(n)}`}})}function y2(){return h("string",(d)=>{return typeof d==="string"||`Expected a string, but received: ${G(d)}`})}function V2(d){let n=N();return new U({type:"tuple",schema:null,*entries(s){if(Array.isArray(s)){let e=Math.max(d.length,s.length);for(let w1=0;w1<e;w1++)yield[w1,s[w1],d[w1]||n]}},validator(s){return Array.isArray(s)||`Expected an array, but received: ${G(s)}`},coercer(s){return Array.isArray(s)?s.slice():s}})}function $2(d){let n=Object.keys(d);return new U({type:"type",schema:d,*entries(s){if(Q(s))for(let e of n)yield[e,s[e],d[e]]},validator(s){return X(s)||`Expected an object, but received: ${G(s)}`},coercer(s){return X(s)?{...s}:s}})}function T0(d){let n=d.map((s)=>s.type).join(" | ");return new U({type:"union",schema:null,coercer(s,e){for(let w1 of d){let[b1,h1]=w1.validate(s,{coerce:!0,mask:e.mask});if(!b1)return h1}return s},validator(s,e){let w1=[];for(let b1 of d){let[...h1]=H(s,b1,e),[d1]=h1;if(!d1[0])return[];else for(let[t2]of h1)if(t2)w1.push(t2)}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${G(s)}`,...w1]}})}function O2(){return h("unknown",()=>!0)}function R2(d,n,s){return new U({...d,coercer:(e,w1)=>{return B(e,n)?d.coercer(s(e,w1),w1):d.coercer(e,w1)}})}function i6(d,n,s={}){return R2(d,O2(),(e)=>{let w1=typeof n==="function"?n():n;if(e===void 0)return w1;if(!s.strict&&Y(e)&&Y(w1)){let b1={...e},h1=!1;for(let d1 in w1)if(b1[d1]===void 0)b1[d1]=w1[d1],h1=!0;if(h1)return b1}return e})}function Q0(d){return R2(d,y2(),(n)=>n.trim())}function x2(d){return R9(d,"empty",(n)=>{let s=c6(n);return s===0||`Expected an empty ${d.type} but received one with a size of \`${s}\``})}function c6(d){if(d instanceof Map||d instanceof Set)return d.size;else return d.length}function X0(d,n,s={}){let{exclusive:e}=s;return R9(d,"max",(w1)=>{return e?w1<n:w1<=n||`Expected a ${d.type} less than ${e?"":"or equal to "}${n} but received \`${w1}\``})}function s2(d,n,s={}){let{exclusive:e}=s;return R9(d,"min",(w1)=>{return e?w1>n:w1>=n||`Expected a ${d.type} greater than ${e?"":"or equal to "}${n} but received \`${w1}\``})}function V5(d){return R9(d,"nonempty",(n)=>{return c6(n)>0||`Expected a nonempty ${d.type} but received an empty one`})}function c2(d,n){return R9(d,"pattern",(s)=>{return n.test(s)||`Expected a ${d.type} matching \`/${n.source}/\` but received "${s}"`})}function r2(d,n,s=n){let e=`Expected a ${d.type}`,w1=n===s?`of \`${n}\``:`between \`${n}\` and \`${s}\``;return R9(d,"size",(b1)=>{if(typeof b1==="number"||b1 instanceof Date)return n<=b1&&b1<=s||`${e} ${w1} but received \`${b1}\``;else if(b1 instanceof Map||b1 instanceof Set){let{size:h1}=b1;return n<=h1&&h1<=s||`${e} with a size ${w1} but received one with a size of \`${h1}\``}else{let{length:h1}=b1;return n<=h1&&h1<=s||`${e} with a length ${w1} but received one with a length of \`${h1}\``}})}function R9(d,n,s){return new U({...d,*refiner(e,w1){yield*d.refiner(e,w1);let b1=s(e,w1),h1=D(b1,w1,d,e);for(let d1 of h1)yield{...d1,refinement:n}}})}$.Struct=U,$.StructError=V,$.any=i,$.array=t,$.assert=z,$.assign=T,$.bigint=g,$.boolean=S,$.coerce=R2,$.create=M,$.date=q,$.defaulted=i6,$.define=h,$.deprecated=A,$.dynamic=E,$.empty=x2,$.enums=Z,$.func=R,$.instance=O,$.integer=F,$.intersection=m,$.is=B,$.lazy=y,$.literal=x,$.map=p,$.mask=L,$.max=X0,$.min=s2,$.never=N,$.nonempty=V5,$.nullable=v,$.number=$1,$.object=G1,$.omit=l,$.optional=H1,$.partial=f,$.pattern=c2,$.pick=o,$.record=B1,$.refine=R9,$.regexp=A1,$.set=m1,$.size=r2,$.string=y2,$.struct=u,$.trimmed=Q0,$.tuple=V2,$.type=$2,$.union=T0,$.unknown=O2,$.validate=_})});var Qq=M1((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.default=Ar;var Ir=Tr(k1("crypto"));function Tr($){return $&&$.__esModule?$:{default:$}}var dQ=new Uint8Array(256),xQ=dQ.length;function Ar(){if(xQ>dQ.length-16)Ir.default.randomFillSync(dQ),xQ=0;return dQ.slice(xQ,xQ+=16)}});var aO=M1((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.default=void 0;var mr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;fO.default=mr});var XV=M1((iO)=>{Object.defineProperty(iO,"__esModule",{value:!0});iO.default=void 0;var kr=Er(aO());function Er($){return $&&$.__esModule?$:{default:$}}function vr($){return typeof $==="string"&&kr.default.test($)}var hr=vr;iO.default=hr});var YV=M1((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.default=void 0;var xr=dr(XV());function dr($){return $&&$.__esModule?$:{default:$}}var e0=[];for(let $=0;$<256;++$)e0.push(($+256).toString(16).substr(1));function yr($,V=0){let J=(e0[$[V+0]]+e0[$[V+1]]+e0[$[V+2]]+e0[$[V+3]]+"-"+e0[$[V+4]]+e0[$[V+5]]+"-"+e0[$[V+6]]+e0[$[V+7]]+"-"+e0[$[V+8]]+e0[$[V+9]]+"-"+e0[$[V+10]]+e0[$[V+11]]+e0[$[V+12]]+e0[$[V+13]]+e0[$[V+14]]+e0[$[V+15]]).toLowerCase();if(!(0,xr.default)(J))throw TypeError("Stringified UUID is invalid");return J}var br=yr;nO.default=br});var $F=M1((tO)=>{Object.defineProperty(tO,"__esModule",{value:!0});tO.default=void 0;var gr=rO(Qq()),lr=rO(YV());function rO($){return $&&$.__esModule?$:{default:$}}var sO,Xq,Yq=0,Gq=0;function fr($,V,J){let Q=V&&J||0,X=V||Array(16);$=$||{};let Y=$.node||sO,G=$.clockseq!==void 0?$.clockseq:Xq;if(Y==null||G==null){let z=$.random||($.rng||gr.default)();if(Y==null)Y=sO=[z[0]|1,z[1],z[2],z[3],z[4],z[5]];if(G==null)G=Xq=(z[6]<<8|z[7])&16383}let W=$.msecs!==void 0?$.msecs:Date.now(),K=$.nsecs!==void 0?$.nsecs:Gq+1,D=W-Yq+(K-Gq)/1e4;if(D<0&&$.clockseq===void 0)G=G+1&16383;if((D<0||W>Yq)&&$.nsecs===void 0)K=0;if(K>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Yq=W,Gq=K,Xq=G,W+=12219292800000;let H=((W&268435455)*1e4+K)%4294967296;X[Q++]=H>>>24&255,X[Q++]=H>>>16&255,X[Q++]=H>>>8&255,X[Q++]=H&255;let U=W/4294967296*1e4&268435455;X[Q++]=U>>>8&255,X[Q++]=U&255,X[Q++]=U>>>24&15|16,X[Q++]=U>>>16&255,X[Q++]=G>>>8|128,X[Q++]=G&255;for(let z=0;z<6;++z)X[Q+z]=Y[z];return V||(0,lr.default)(X)}var ur=fr;tO.default=ur});var Wq=M1((VF)=>{Object.defineProperty(VF,"__esModule",{value:!0});VF.default=void 0;var ar=ir(XV());function ir($){return $&&$.__esModule?$:{default:$}}function cr($){if(!(0,ar.default)($))throw TypeError("Invalid UUID");let V,J=new Uint8Array(16);return J[0]=(V=parseInt($.slice(0,8),16))>>>24,J[1]=V>>>16&255,J[2]=V>>>8&255,J[3]=V&255,J[4]=(V=parseInt($.slice(9,13),16))>>>8,J[5]=V&255,J[6]=(V=parseInt($.slice(14,18),16))>>>8,J[7]=V&255,J[8]=(V=parseInt($.slice(19,23),16))>>>8,J[9]=V&255,J[10]=(V=parseInt($.slice(24,36),16))/1099511627776&255,J[11]=V/4294967296&255,J[12]=V>>>24&255,J[13]=V>>>16&255,J[14]=V>>>8&255,J[15]=V&255,J}var nr=cr;VF.default=nr});var Kq=M1((GF)=>{Object.defineProperty(GF,"__esModule",{value:!0});GF.default=tr;GF.URL=GF.DNS=void 0;var or=QF(YV()),sr=QF(Wq());function QF($){return $&&$.__esModule?$:{default:$}}function rr($){$=unescape(encodeURIComponent($));let V=[];for(let J=0;J<$.length;++J)V.push($.charCodeAt(J));return V}var XF="6ba7b810-9dad-11d1-80b4-00c04fd430c8";GF.DNS=XF;var YF="6ba7b811-9dad-11d1-80b4-00c04fd430c8";GF.URL=YF;function tr($,V,J){function Q(X,Y,G,W){if(typeof X==="string")X=rr(X);if(typeof Y==="string")Y=(0,sr.default)(Y);if(Y.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let K=new Uint8Array(16+X.length);if(K.set(Y),K.set(X,Y.length),K=J(K),K[6]=K[6]&15|V,K[8]=K[8]&63|128,G){W=W||0;for(let D=0;D<16;++D)G[W+D]=K[D];return G}return(0,or.default)(K)}try{Q.name=$}catch(X){}return Q.DNS=XF,Q.URL=YF,Q}});var DF=M1((KF)=>{Object.defineProperty(KF,"__esModule",{value:!0});KF.default=void 0;var Vt=Jt(k1("crypto"));function Jt($){return $&&$.__esModule?$:{default:$}}function Qt($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return Vt.default.createHash("md5").update($).digest()}var Xt=Qt;KF.default=Xt});var wF=M1((ZF)=>{Object.defineProperty(ZF,"__esModule",{value:!0});ZF.default=void 0;var Yt=HF(Kq()),Gt=HF(DF());function HF($){return $&&$.__esModule?$:{default:$}}var Wt=(0,Yt.default)("v3",48,Gt.default),Kt=Wt;ZF.default=Kt});var MF=M1((jF)=>{Object.defineProperty(jF,"__esModule",{value:!0});jF.default=void 0;var qt=zF(Qq()),Dt=zF(YV());function zF($){return $&&$.__esModule?$:{default:$}}function Ht($,V,J){$=$||{};let Q=$.random||($.rng||qt.default)();if(Q[6]=Q[6]&15|64,Q[8]=Q[8]&63|128,V){J=J||0;for(let X=0;X<16;++X)V[J+X]=Q[X];return V}return(0,Dt.default)(Q)}var Zt=Ht;jF.default=Zt});var PF=M1((LF)=>{Object.defineProperty(LF,"__esModule",{value:!0});LF.default=void 0;var Ut=wt(k1("crypto"));function wt($){return $&&$.__esModule?$:{default:$}}function zt($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return Ut.default.createHash("sha1").update($).digest()}var jt=zt;LF.default=jt});var SF=M1((FF)=>{Object.defineProperty(FF,"__esModule",{value:!0});FF.default=void 0;var Nt=OF(Kq()),Mt=OF(PF());function OF($){return $&&$.__esModule?$:{default:$}}var Lt=(0,Nt.default)("v5",80,Mt.default),Rt=Lt;FF.default=Rt});var IF=M1((_F)=>{Object.defineProperty(_F,"__esModule",{value:!0});_F.default=void 0;var Pt="00000000-0000-0000-0000-000000000000";_F.default=Pt});var pF=M1((TF)=>{Object.defineProperty(TF,"__esModule",{value:!0});TF.default=void 0;var Ot=Ft(XV());function Ft($){return $&&$.__esModule?$:{default:$}}function Bt($){if(!(0,Ot.default)($))throw TypeError("Invalid UUID");return parseInt($.substr(14,1),16)}var St=Bt;TF.default=St});var yQ=M1((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});Object.defineProperty(S6,"v1",{enumerable:!0,get:function(){return _t.default}});Object.defineProperty(S6,"v3",{enumerable:!0,get:function(){return Ct.default}});Object.defineProperty(S6,"v4",{enumerable:!0,get:function(){return It.default}});Object.defineProperty(S6,"v5",{enumerable:!0,get:function(){return Tt.default}});Object.defineProperty(S6,"NIL",{enumerable:!0,get:function(){return At.default}});Object.defineProperty(S6,"version",{enumerable:!0,get:function(){return pt.default}});Object.defineProperty(S6,"validate",{enumerable:!0,get:function(){return mt.default}});Object.defineProperty(S6,"stringify",{enumerable:!0,get:function(){return kt.default}});Object.defineProperty(S6,"parse",{enumerable:!0,get:function(){return Et.default}});var _t=X8($F()),Ct=X8(wF()),It=X8(MF()),Tt=X8(SF()),At=X8(IF()),pt=X8(pF()),mt=X8(XV()),kt=X8(YV()),Et=X8(Wq());function X8($){return $&&$.__esModule?$:{default:$}}});var kF=M1((Jg2,mF)=>{var vt=yQ().v4,ht=function($,V,J,Q){if(typeof $!=="string")throw TypeError($+" must be a string");Q=Q||{};let X=typeof Q.version==="number"?Q.version:2;if(X!==1&&X!==2)throw TypeError(X+" must be 1 or 2");let Y={method:$};if(X===2)Y.jsonrpc="2.0";if(V){if(typeof V!=="object"&&!Array.isArray(V))throw TypeError(V+" must be an object, array or omitted");Y.params=V}if(typeof J>"u"){let G=typeof Q.generator==="function"?Q.generator:function(){return vt()};Y.id=G(Y,Q)}else if(X===2&&J===null){if(Q.notificationIdNull)Y.id=null}else Y.id=J;return Y};mF.exports=ht});var vF=M1((Qg2,EF)=>{var xt=yQ().v4,dt=kF(),GV=function($,V){if(!(this instanceof GV))return new GV($,V);if(!V)V={};this.options={reviver:typeof V.reviver<"u"?V.reviver:null,replacer:typeof V.replacer<"u"?V.replacer:null,generator:typeof V.generator<"u"?V.generator:function(){return xt()},version:typeof V.version<"u"?V.version:2,notificationIdNull:typeof V.notificationIdNull==="boolean"?V.notificationIdNull:!1},this.callServer=$};EF.exports=GV;GV.prototype.request=function($,V,J,Q){let X=this,Y=null,G=Array.isArray($)&&typeof V==="function";if(this.options.version===1&&G)throw TypeError("JSON-RPC 1.0 does not support batching");if(G||!G&&$&&typeof $==="object"&&typeof V==="function")Q=V,Y=$;else{if(typeof J==="function")Q=J,J=void 0;let D=typeof Q==="function";try{Y=dt($,V,J,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(H){if(D){Q(H);return}throw H}if(!D)return Y}let K;try{K=JSON.stringify(Y,this.options.replacer)}catch(D){Q(D);return}return this.callServer(K,function(D,H){X._parseResponse(D,H,Q)}),Y};GV.prototype._parseResponse=function($,V,J){if($){J($);return}if(!V){J();return}let Q;try{Q=JSON.parse(V,this.options.reviver)}catch(X){J(X);return}if(J.length===3)if(Array.isArray(Q)){let X=function(G){return typeof G.error<"u"},Y=function(G){return!X(G)};J(null,Q.filter(X),Q.filter(Y));return}else{J(null,Q.error,Q.result);return}J(null,Q)}});var dF=M1((Xg2,xF)=>{var P0={};xF.exports=P0;function hF($){return $<0?-1:1}function yt($){if($%1===0.5&&($&1)===0)return Math.floor($);else return Math.round($)}function H5($,V){if(!V.unsigned)--$;let J=V.unsigned?0:-Math.pow(2,$),Q=Math.pow(2,$)-1,X=V.moduloBitLength?Math.pow(2,V.moduloBitLength):Math.pow(2,$),Y=V.moduloBitLength?Math.pow(2,V.moduloBitLength-1):Math.pow(2,$-1);return function(G,W){if(!W)W={};let K=+G;if(W.enforceRange){if(!Number.isFinite(K))throw TypeError("Argument is not a finite number");if(K=hF(K)*Math.floor(Math.abs(K)),K<J||K>Q)throw TypeError("Argument is not in byte range");return K}if(!isNaN(K)&&W.clamp){if(K=yt(K),K<J)K=J;if(K>Q)K=Q;return K}if(!Number.isFinite(K)||K===0)return 0;if(K=hF(K)*Math.floor(Math.abs(K)),K=K%X,!V.unsigned&&K>=Y)return K-X;else if(V.unsigned){if(K<0)K+=X;else if(K===-0)return 0}return K}}P0.void=function(){return};P0.boolean=function($){return!!$};P0.byte=H5(8,{unsigned:!1});P0.octet=H5(8,{unsigned:!0});P0.short=H5(16,{unsigned:!1});P0["unsigned short"]=H5(16,{unsigned:!0});P0.long=H5(32,{unsigned:!1});P0["unsigned long"]=H5(32,{unsigned:!0});P0["long long"]=H5(32,{unsigned:!1,moduloBitLength:64});P0["unsigned long long"]=H5(32,{unsigned:!0,moduloBitLength:64});P0.double=function($){let V=+$;if(!Number.isFinite(V))throw TypeError("Argument is not a finite floating-point value");return V};P0["unrestricted double"]=function($){let V=+$;if(isNaN(V))throw TypeError("Argument is NaN");return V};P0.float=P0.double;P0["unrestricted float"]=P0["unrestricted double"];P0.DOMString=function($,V){if(!V)V={};if(V.treatNullAsEmptyString&&$===null)return"";return String($)};P0.ByteString=function($,V){let J=String($),Q=void 0;for(let X=0;(Q=J.codePointAt(X))!==void 0;++X)if(Q>255)throw TypeError("Argument is not a valid bytestring");return J};P0.USVString=function($){let V=String($),J=V.length,Q=[];for(let X=0;X<J;++X){let Y=V.charCodeAt(X);if(Y<55296||Y>57343)Q.push(String.fromCodePoint(Y));else if(56320<=Y&&Y<=57343)Q.push(String.fromCodePoint(65533));else if(X===J-1)Q.push(String.fromCodePoint(65533));else{let G=V.charCodeAt(X+1);if(56320<=G&&G<=57343){let W=Y&1023,K=G&1023;Q.push(String.fromCodePoint(65536+1024*W+K)),++X}else Q.push(String.fromCodePoint(65533))}}return Q.join("")};P0.Date=function($,V){if(!($ instanceof Date))throw TypeError("Argument is not a Date object");if(isNaN($))return;return $};P0.RegExp=function($,V){if(!($ instanceof RegExp))$=new RegExp($);return $}});var gF=M1((bt,Z5)=>{bt.mixin=function(V,J){let Q=Object.getOwnPropertyNames(J);for(let X=0;X<Q.length;++X)Object.defineProperty(V,Q[X],Object.getOwnPropertyDescriptor(J,Q[X]))};bt.wrapperSymbol=Symbol("wrapper");bt.implSymbol=Symbol("impl");bt.wrapperForImpl=function($){return $[bt.wrapperSymbol]};bt.implForWrapper=function($){return $[bt.implSymbol]}});var lF=M1((Yg2,ut)=>{ut.exports=[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]});var nF=M1((ot,gQ)=>{var uF=k1("punycode"),fF=lF(),Q3={TRANSITIONAL:0,NONTRANSITIONAL:1};function aF($){return $.split("\x00").map(function(V){return V.normalize("NFC")}).join("\x00")}function iF($){var V=0,J=fF.length-1;while(V<=J){var Q=Math.floor((V+J)/2),X=fF[Q];if(X[0][0]<=$&&X[0][1]>=$)return X;else if(X[0][0]>$)J=Q-1;else V=Q+1}return null}var at=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function cF($){return $.replace(at,"_").length}function it($,V,J){var Q=!1,X="",Y=cF($);for(var G=0;G<Y;++G){var W=$.codePointAt(G),K=iF(W);switch(K[1]){case"disallowed":Q=!0,X+=String.fromCodePoint(W);break;case"ignored":break;case"mapped":X+=String.fromCodePoint.apply(String,K[2]);break;case"deviation":if(J===Q3.TRANSITIONAL)X+=String.fromCodePoint.apply(String,K[2]);else X+=String.fromCodePoint(W);break;case"valid":X+=String.fromCodePoint(W);break;case"disallowed_STD3_mapped":if(V)Q=!0,X+=String.fromCodePoint(W);else X+=String.fromCodePoint.apply(String,K[2]);break;case"disallowed_STD3_valid":if(V)Q=!0;X+=String.fromCodePoint(W);break}}return{string:X,error:Q}}var ct=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function nt($,V){if($.substr(0,4)==="xn--")$=uF.toUnicode($),V=Q3.NONTRANSITIONAL;var J=!1;if(aF($)!==$||$[3]==="-"&&$[4]==="-"||$[0]==="-"||$[$.length-1]==="-"||$.indexOf(".")!==-1||$.search(ct)===0)J=!0;var Q=cF($);for(var X=0;X<Q;++X){var Y=iF($.codePointAt(X));if(bQ===Q3.TRANSITIONAL&&Y[1]!=="valid"||bQ===Q3.NONTRANSITIONAL&&Y[1]!=="valid"&&Y[1]!=="deviation"){J=!0;break}}return{label:$,error:J}}function bQ($,V,J){var Q=it($,V,J);Q.string=aF(Q.string);var X=Q.string.split(".");for(var Y=0;Y<X.length;++Y)try{var G=nt(X[Y]);X[Y]=G.label,Q.error=Q.error||G.error}catch(W){Q.error=!0}return{string:X.join("."),error:Q.error}}ot.toASCII=function($,V,J,Q){var X=bQ($,V,J),Y=X.string.split(".");if(Y=Y.map(function(K){try{return uF.toASCII(K)}catch(D){return X.error=!0,K}}),Q){var G=Y.slice(0,Y.length-1).join(".").length;if(G.length>253||G.length===0)X.error=!0;for(var W=0;W<Y.length;++W)if(Y.length>63||Y.length===0){X.error=!0;break}}if(X.error)return null;return Y.join(".")};ot.toUnicode=function($,V){var J=bQ($,V,Q3.NONTRANSITIONAL);return{domain:J.string,error:J.error}};ot.PROCESSING_OPTIONS=Q3});var Y4=M1((Be,d9)=>{var X3=k1("punycode"),oF=nF(),$B={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},N2=Symbol("failure");function sF($){return X3.ucs2.decode($).length}function rF($,V){let J=$[V];return isNaN(J)?void 0:String.fromCodePoint(J)}function WV($){return $>=48&&$<=57}function KV($){return $>=65&&$<=90||$>=97&&$<=122}function et($){return KV($)||WV($)}function _6($){return WV($)||$>=65&&$<=70||$>=97&&$<=102}function tF($){return $==="."||$.toLowerCase()==="%2e"}function $e($){return $=$.toLowerCase(),$===".."||$==="%2e."||$===".%2e"||$==="%2e%2e"}function Ve($,V){return KV($)&&(V===58||V===124)}function VB($){return $.length===2&&KV($.codePointAt(0))&&($[1]===":"||$[1]==="|")}function Je($){return $.length===2&&KV($.codePointAt(0))&&$[1]===":"}function Qe($){return $.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function Xe($){return $.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function qq($){return $B[$]!==void 0}function d0($){return qq($.scheme)}function Ye($){return $B[$]}function JB($){let V=$.toString(16).toUpperCase();if(V.length===1)V="0"+V;return"%"+V}function Ge($){let V=new Buffer($),J="";for(let Q=0;Q<V.length;++Q)J+=JB(V[Q]);return J}function We($){let V=new Buffer($),J=[];for(let Q=0;Q<V.length;++Q)if(V[Q]!==37)J.push(V[Q]);else if(V[Q]===37&&_6(V[Q+1])&&_6(V[Q+2]))J.push(parseInt(V.slice(Q+1,Q+3).toString(),16)),Q+=2;else J.push(V[Q]);return new Buffer(J).toString()}function lQ($){return $<=31||$>126}var Ke=new Set([32,34,35,60,62,63,96,123,125]);function QB($){return lQ($)||Ke.has($)}var qe=new Set([47,58,59,61,64,91,92,93,94,124]);function Hq($){return QB($)||qe.has($)}function V7($,V){let J=String.fromCodePoint($);if(V($))return Ge(J);return J}function De($){let V=10;if($.length>=2&&$.charAt(0)==="0"&&$.charAt(1).toLowerCase()==="x")$=$.substring(2),V=16;else if($.length>=2&&$.charAt(0)==="0")$=$.substring(1),V=8;if($==="")return 0;if((V===10?/[^0-9]/:V===16?/[^0-9A-Fa-f]/:/[^0-7]/).test($))return N2;return parseInt($,V)}function He($){let V=$.split(".");if(V[V.length-1]===""){if(V.length>1)V.pop()}if(V.length>4)return $;let J=[];for(let Y of V){if(Y==="")return $;let G=De(Y);if(G===N2)return $;J.push(G)}for(let Y=0;Y<J.length-1;++Y)if(J[Y]>255)return N2;if(J[J.length-1]>=Math.pow(256,5-J.length))return N2;let Q=J.pop(),X=0;for(let Y of J)Q+=Y*Math.pow(256,3-X),++X;return Q}function Ze($){let V="",J=$;for(let Q=1;Q<=4;++Q){if(V=String(J%256)+V,Q!==4)V="."+V;J=Math.floor(J/256)}return V}function Ue($){let V=[0,0,0,0,0,0,0,0],J=0,Q=null,X=0;if($=X3.ucs2.decode($),$[X]===58){if($[X+1]!==58)return N2;X+=2,++J,Q=J}while(X<$.length){if(J===8)return N2;if($[X]===58){if(Q!==null)return N2;++X,++J,Q=J;continue}let Y=0,G=0;while(G<4&&_6($[X]))Y=Y*16+parseInt(rF($,X),16),++X,++G;if($[X]===46){if(G===0)return N2;if(X-=G,J>6)return N2;let W=0;while($[X]!==void 0){let K=null;if(W>0)if($[X]===46&&W<4)++X;else return N2;if(!WV($[X]))return N2;while(WV($[X])){let D=parseInt(rF($,X));if(K===null)K=D;else if(K===0)return N2;else K=K*10+D;if(K>255)return N2;++X}if(V[J]=V[J]*256+K,++W,W===2||W===4)++J}if(W!==4)return N2;break}else if($[X]===58){if(++X,$[X]===void 0)return N2}else if($[X]!==void 0)return N2;V[J]=Y,++J}if(Q!==null){let Y=J-Q;J=7;while(J!==0&&Y>0){let G=V[Q+Y-1];V[Q+Y-1]=V[J],V[J]=G,--J,--Y}}else if(Q===null&&J!==8)return N2;return V}function we($){let V="",Q=je($).idx,X=!1;for(let Y=0;Y<=7;++Y){if(X&&$[Y]===0)continue;else if(X)X=!1;if(Q===Y){V+=Y===0?"::":":",X=!0;continue}if(V+=$[Y].toString(16),Y!==7)V+=":"}return V}function Dq($,V){if($[0]==="["){if($[$.length-1]!=="]")return N2;return Ue($.substring(1,$.length-1))}if(!V)return ze($);let J=We($),Q=oF.toASCII(J,!1,oF.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(Q===null)return N2;if(Qe(Q))return N2;let X=He(Q);if(typeof X==="number"||X===N2)return X;return Q}function ze($){if(Xe($))return N2;let V="",J=X3.ucs2.decode($);for(let Q=0;Q<J.length;++Q)V+=V7(J[Q],lQ);return V}function je($){let V=null,J=1,Q=null,X=0;for(let Y=0;Y<$.length;++Y)if($[Y]!==0){if(X>J)V=Q,J=X;Q=null,X=0}else{if(Q===null)Q=Y;++X}if(X>J)V=Q,J=X;return{idx:V,len:J}}function Zq($){if(typeof $==="number")return Ze($);if($ instanceof Array)return"["+we($)+"]";return $}function Ne($){return $.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function Me($){return $.replace(/\u0009|\u000A|\u000D/g,"")}function XB($){let V=$.path;if(V.length===0)return;if($.scheme==="file"&&V.length===1&&Re(V[0]))return;V.pop()}function YB($){return $.username!==""||$.password!==""}function Le($){return $.host===null||$.host===""||$.cannotBeABaseURL||$.scheme==="file"}function Re($){return/^[A-Za-z]:$/.test($)}function O0($,V,J,Q,X){if(this.pointer=0,this.input=$,this.base=V||null,this.encodingOverride=J||"utf-8",this.stateOverride=X,this.url=Q,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};let G=Ne(this.input);if(G!==this.input)this.parseError=!0;this.input=G}let Y=Me(this.input);if(Y!==this.input)this.parseError=!0;this.input=Y,this.state=X||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=X3.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){let G=this.input[this.pointer],W=isNaN(G)?void 0:String.fromCodePoint(G),K=this["parse "+this.state](G,W);if(!K)break;else if(K===N2){this.failure=!0;break}}}O0.prototype["parse scheme start"]=function(V,J){if(KV(V))this.buffer+=J.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,N2;return!0};O0.prototype["parse scheme"]=function(V,J){if(et(V)||V===43||V===45||V===46)this.buffer+=J.toLowerCase();else if(V===58){if(this.stateOverride){if(d0(this.url)&&!qq(this.buffer))return!1;if(!d0(this.url)&&qq(this.buffer))return!1;if((YB(this.url)||this.url.port!==null)&&this.buffer==="file")return!1;if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47)this.parseError=!0;this.state="file"}else if(d0(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(d0(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===47)this.state="path or authority",++this.pointer;else this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path"}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,N2;return!0};O0.prototype["parse no scheme"]=function(V){if(this.base===null||this.base.cannotBeABaseURL&&V!==35)return N2;else if(this.base.cannotBeABaseURL&&V===35)this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment";else if(this.base.scheme==="file")this.state="file",--this.pointer;else this.state="relative",--this.pointer;return!0};O0.prototype["parse special relative or authority"]=function(V){if(V===47&&this.input[this.pointer+1]===47)this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};O0.prototype["parse path or authority"]=function(V){if(V===47)this.state="authority";else this.state="path",--this.pointer;return!0};O0.prototype["parse relative"]=function(V){if(this.url.scheme=this.base.scheme,isNaN(V))this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query;else if(V===47)this.state="relative slash";else if(V===63)this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query";else if(V===35)this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else if(d0(this.url)&&V===92)this.parseError=!0,this.state="relative slash";else this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer;return!0};O0.prototype["parse relative slash"]=function(V){if(d0(this.url)&&(V===47||V===92)){if(V===92)this.parseError=!0;this.state="special authority ignore slashes"}else if(V===47)this.state="authority";else this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer;return!0};O0.prototype["parse special authority slashes"]=function(V){if(V===47&&this.input[this.pointer+1]===47)this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};O0.prototype["parse special authority ignore slashes"]=function(V){if(V!==47&&V!==92)this.state="authority",--this.pointer;else this.parseError=!0;return!0};O0.prototype["parse authority"]=function(V,J){if(V===64){if(this.parseError=!0,this.atFlag)this.buffer="%40"+this.buffer;this.atFlag=!0;let Q=sF(this.buffer);for(let X=0;X<Q;++X){let Y=this.buffer.codePointAt(X);if(Y===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}let G=V7(Y,Hq);if(this.passwordTokenSeenFlag)this.url.password+=G;else this.url.username+=G}this.buffer=""}else if(isNaN(V)||V===47||V===63||V===35||d0(this.url)&&V===92){if(this.atFlag&&this.buffer==="")return this.parseError=!0,N2;this.pointer-=sF(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=J;return!0};O0.prototype["parse hostname"]=O0.prototype["parse host"]=function(V,J){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(V===58&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,N2;let Q=Dq(this.buffer,d0(this.url));if(Q===N2)return N2;if(this.url.host=Q,this.buffer="",this.state="port",this.stateOverride==="hostname")return!1}else if(isNaN(V)||V===47||V===63||V===35||d0(this.url)&&V===92){if(--this.pointer,d0(this.url)&&this.buffer==="")return this.parseError=!0,N2;else if(this.stateOverride&&this.buffer===""&&(YB(this.url)||this.url.port!==null))return this.parseError=!0,!1;let Q=Dq(this.buffer,d0(this.url));if(Q===N2)return N2;if(this.url.host=Q,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(V===91)this.arrFlag=!0;else if(V===93)this.arrFlag=!1;this.buffer+=J}return!0};O0.prototype["parse port"]=function(V,J){if(WV(V))this.buffer+=J;else if(isNaN(V)||V===47||V===63||V===35||d0(this.url)&&V===92||this.stateOverride){if(this.buffer!==""){let Q=parseInt(this.buffer);if(Q>Math.pow(2,16)-1)return this.parseError=!0,N2;this.url.port=Q===Ye(this.url.scheme)?null:Q,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,N2;return!0};var Pe=new Set([47,92,63,35]);O0.prototype["parse file"]=function(V){if(this.url.scheme="file",V===47||V===92){if(V===92)this.parseError=!0;this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file")if(isNaN(V))this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query;else if(V===63)this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query";else if(V===35)this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else{if(this.input.length-this.pointer-1===0||!Ve(V,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!Pe.has(this.input[this.pointer+2]))this.url.host=this.base.host,this.url.path=this.base.path.slice(),XB(this.url);else this.parseError=!0;this.state="path",--this.pointer}else this.state="path",--this.pointer;return!0};O0.prototype["parse file slash"]=function(V){if(V===47||V===92){if(V===92)this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file")if(Je(this.base.path[0]))this.url.path.push(this.base.path[0]);else this.url.host=this.base.host;this.state="path",--this.pointer}return!0};O0.prototype["parse file host"]=function(V,J){if(isNaN(V)||V===47||V===92||V===63||V===35)if(--this.pointer,!this.stateOverride&&VB(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let Q=Dq(this.buffer,d0(this.url));if(Q===N2)return N2;if(Q==="localhost")Q="";if(this.url.host=Q,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=J;return!0};O0.prototype["parse path start"]=function(V){if(d0(this.url)){if(V===92)this.parseError=!0;if(this.state="path",V!==47&&V!==92)--this.pointer}else if(!this.stateOverride&&V===63)this.url.query="",this.state="query";else if(!this.stateOverride&&V===35)this.url.fragment="",this.state="fragment";else if(V!==void 0){if(this.state="path",V!==47)--this.pointer}return!0};O0.prototype["parse path"]=function(V){if(isNaN(V)||V===47||d0(this.url)&&V===92||!this.stateOverride&&(V===63||V===35)){if(d0(this.url)&&V===92)this.parseError=!0;if($e(this.buffer)){if(XB(this.url),V!==47&&!(d0(this.url)&&V===92))this.url.path.push("")}else if(tF(this.buffer)&&V!==47&&!(d0(this.url)&&V===92))this.url.path.push("");else if(!tF(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&VB(this.buffer)){if(this.url.host!==""&&this.url.host!==null)this.parseError=!0,this.url.host="";this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}if(this.buffer="",this.url.scheme==="file"&&(V===void 0||V===63||V===35))while(this.url.path.length>1&&this.url.path[0]==="")this.parseError=!0,this.url.path.shift();if(V===63)this.url.query="",this.state="query";if(V===35)this.url.fragment="",this.state="fragment"}else{if(V===37&&(!_6(this.input[this.pointer+1])||!_6(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=V7(V,QB)}return!0};O0.prototype["parse cannot-be-a-base-URL path"]=function(V){if(V===63)this.url.query="",this.state="query";else if(V===35)this.url.fragment="",this.state="fragment";else{if(!isNaN(V)&&V!==37)this.parseError=!0;if(V===37&&(!_6(this.input[this.pointer+1])||!_6(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(V))this.url.path[0]=this.url.path[0]+V7(V,lQ)}return!0};O0.prototype["parse query"]=function(V,J){if(isNaN(V)||!this.stateOverride&&V===35){if(!d0(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";let Q=new Buffer(this.buffer);for(let X=0;X<Q.length;++X)if(Q[X]<33||Q[X]>126||Q[X]===34||Q[X]===35||Q[X]===60||Q[X]===62)this.url.query+=JB(Q[X]);else this.url.query+=String.fromCodePoint(Q[X]);if(this.buffer="",V===35)this.url.fragment="",this.state="fragment"}else{if(V===37&&(!_6(this.input[this.pointer+1])||!_6(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=J}return!0};O0.prototype["parse fragment"]=function(V){if(isNaN(V));else if(V===0)this.parseError=!0;else{if(V===37&&(!_6(this.input[this.pointer+1])||!_6(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=V7(V,lQ)}return!0};function Oe($,V){let J=$.scheme+":";if($.host!==null){if(J+="//",$.username!==""||$.password!==""){if(J+=$.username,$.password!=="")J+=":"+$.password;J+="@"}if(J+=Zq($.host),$.port!==null)J+=":"+$.port}else if($.host===null&&$.scheme==="file")J+="//";if($.cannotBeABaseURL)J+=$.path[0];else for(let Q of $.path)J+="/"+Q;if($.query!==null)J+="?"+$.query;if(!V&&$.fragment!==null)J+="#"+$.fragment;return J}function Fe($){let V=$.scheme+"://";if(V+=Zq($.host),$.port!==null)V+=":"+$.port;return V}Be.serializeURL=Oe;Be.serializeURLOrigin=function($){switch($.scheme){case"blob":try{return Be.serializeURLOrigin(Be.parseURL($.path[0]))}catch(V){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return Fe({scheme:$.scheme,host:$.host,port:$.port});case"file":return"file://";default:return"null"}};Be.basicURLParse=function($,V){if(V===void 0)V={};let J=new O0($,V.baseURL,V.encodingOverride,V.url,V.stateOverride);if(J.failure)return"failure";return J.url};Be.setTheUsername=function($,V){$.username="";let J=X3.ucs2.decode(V);for(let Q=0;Q<J.length;++Q)$.username+=V7(J[Q],Hq)};Be.setThePassword=function($,V){$.password="";let J=X3.ucs2.decode(V);for(let Q=0;Q<J.length;++Q)$.password+=V7(J[Q],Hq)};Be.serializeHost=Zq;Be.cannotHaveAUsernamePasswordPort=Le;Be.serializeInteger=function($){return String($)};Be.parseURL=function($,V){if(V===void 0)V={};return Be.basicURLParse($,{baseURL:V.baseURL,encodingOverride:V.encodingOverride})}});var WB=M1((me)=>{var F0=Y4();me.implementation=class{constructor(V){let J=V[0],Q=V[1],X=null;if(Q!==void 0){if(X=F0.basicURLParse(Q),X==="failure")throw TypeError("Invalid base URL")}let Y=F0.basicURLParse(J,{baseURL:X});if(Y==="failure")throw TypeError("Invalid URL");this._url=Y}get href(){return F0.serializeURL(this._url)}set href(V){let J=F0.basicURLParse(V);if(J==="failure")throw TypeError("Invalid URL");this._url=J}get origin(){return F0.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(V){F0.basicURLParse(V+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(V){if(F0.cannotHaveAUsernamePasswordPort(this._url))return;F0.setTheUsername(this._url,V)}get password(){return this._url.password}set password(V){if(F0.cannotHaveAUsernamePasswordPort(this._url))return;F0.setThePassword(this._url,V)}get host(){let V=this._url;if(V.host===null)return"";if(V.port===null)return F0.serializeHost(V.host);return F0.serializeHost(V.host)+":"+F0.serializeInteger(V.port)}set host(V){if(this._url.cannotBeABaseURL)return;F0.basicURLParse(V,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return F0.serializeHost(this._url.host)}set hostname(V){if(this._url.cannotBeABaseURL)return;F0.basicURLParse(V,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return F0.serializeInteger(this._url.port)}set port(V){if(F0.cannotHaveAUsernamePasswordPort(this._url))return;if(V==="")this._url.port=null;else F0.basicURLParse(V,{url:this._url,stateOverride:"port"})}get pathname(){if(this._url.cannotBeABaseURL)return this._url.path[0];if(this._url.path.length===0)return"";return"/"+this._url.path.join("/")}set pathname(V){if(this._url.cannotBeABaseURL)return;this._url.path=[],F0.basicURLParse(V,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return"?"+this._url.query}set search(V){let J=this._url;if(V===""){J.query=null;return}let Q=V[0]==="?"?V.substring(1):V;J.query="",F0.basicURLParse(Q,{url:J,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return"#"+this._url.fragment}set hash(V){if(V===""){this._url.fragment=null;return}let J=V[0]==="#"?V.substring(1):V;this._url.fragment="",F0.basicURLParse(J,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}});var DB=M1((Wg2,qV)=>{var W6=dF(),qB=gF(),KB=WB(),o2=qB.implSymbol;function f0($){if(!this||this[o2]||!(this instanceof f0))throw TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");let V=[];for(let J=0;J<arguments.length&&J<2;++J)V[J]=arguments[J];if(V[0]=W6.USVString(V[0]),V[1]!==void 0)V[1]=W6.USVString(V[1]);qV.exports.setup(this,V)}f0.prototype.toJSON=function(){if(!this||!qV.exports.is(this))throw TypeError("Illegal invocation");let V=[];for(let J=0;J<arguments.length&&J<0;++J)V[J]=arguments[J];return this[o2].toJSON.apply(this[o2],V)};Object.defineProperty(f0.prototype,"href",{get(){return this[o2].href},set($){$=W6.USVString($),this[o2].href=$},enumerable:!0,configurable:!0});f0.prototype.toString=function(){if(!this||!qV.exports.is(this))throw TypeError("Illegal invocation");return this.href};Object.defineProperty(f0.prototype,"origin",{get(){return this[o2].origin},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"protocol",{get(){return this[o2].protocol},set($){$=W6.USVString($),this[o2].protocol=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"username",{get(){return this[o2].username},set($){$=W6.USVString($),this[o2].username=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"password",{get(){return this[o2].password},set($){$=W6.USVString($),this[o2].password=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"host",{get(){return this[o2].host},set($){$=W6.USVString($),this[o2].host=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"hostname",{get(){return this[o2].hostname},set($){$=W6.USVString($),this[o2].hostname=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"port",{get(){return this[o2].port},set($){$=W6.USVString($),this[o2].port=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"pathname",{get(){return this[o2].pathname},set($){$=W6.USVString($),this[o2].pathname=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"search",{get(){return this[o2].search},set($){$=W6.USVString($),this[o2].search=$},enumerable:!0,configurable:!0});Object.defineProperty(f0.prototype,"hash",{get(){return this[o2].hash},set($){$=W6.USVString($),this[o2].hash=$},enumerable:!0,configurable:!0});qV.exports={is($){return!!$&&$[o2]instanceof KB.implementation},create($,V){let J=Object.create(f0.prototype);return this.setup(J,$,V),J},setup($,V,J){if(!J)J={};J.wrapper=$,$[o2]=new KB.implementation(V,J),$[o2][qB.wrapperSymbol]=$},interface:f0,expose:{Window:{URL:f0},Worker:{URL:f0}}}});var HB=M1((ve)=>{ve.URL=DB().interface;ve.serializeURL=Y4().serializeURL;ve.serializeURLOrigin=Y4().serializeURLOrigin;ve.basicURLParse=Y4().basicURLParse;ve.setTheUsername=Y4().setTheUsername;ve.setThePassword=Y4().setThePassword;ve.serializeHost=Y4().serializeHost;ve.serializeInteger=Y4().serializeInteger;ve.parseURL=Y4().parseURL});var FB=M1((I6,OB)=>{Object.defineProperty(I6,"__esModule",{value:!0});function q3($){return $&&typeof $==="object"&&"default"in $?$.default:$}var C6=q3(k1("stream")),zB=q3(k1("http")),uQ=q3(k1("url")),jB=q3(HB()),ae=q3(k1("https")),J7=q3(k1("zlib")),ie=C6.Readable,Y8=Symbol("buffer"),Uq=Symbol("type");class W3{constructor(){this[Uq]="";let $=arguments[0],V=arguments[1],J=[],Q=0;if($){let Y=$,G=Number(Y.length);for(let W=0;W<G;W++){let K=Y[W],D;if(K instanceof Buffer)D=K;else if(ArrayBuffer.isView(K))D=Buffer.from(K.buffer,K.byteOffset,K.byteLength);else if(K instanceof ArrayBuffer)D=Buffer.from(K);else if(K instanceof W3)D=K[Y8];else D=Buffer.from(typeof K==="string"?K:String(K));Q+=D.length,J.push(D)}}this[Y8]=Buffer.concat(J);let X=V&&V.type!==void 0&&String(V.type).toLowerCase();if(X&&!/[^\u0020-\u007E]/.test(X))this[Uq]=X}get size(){return this[Y8].length}get type(){return this[Uq]}text(){return Promise.resolve(this[Y8].toString())}arrayBuffer(){let $=this[Y8],V=$.buffer.slice($.byteOffset,$.byteOffset+$.byteLength);return Promise.resolve(V)}stream(){let $=new ie;return $._read=function(){},$.push(this[Y8]),$.push(null),$}toString(){return"[object Blob]"}slice(){let $=this.size,V=arguments[0],J=arguments[1],Q,X;if(V===void 0)Q=0;else if(V<0)Q=Math.max($+V,0);else Q=Math.min(V,$);if(J===void 0)X=$;else if(J<0)X=Math.max($+J,0);else X=Math.min(J,$);let Y=Math.max(X-Q,0),W=this[Y8].slice(Q,Q+Y),K=new W3([],{type:arguments[2]});return K[Y8]=W,K}}Object.defineProperties(W3.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});Object.defineProperty(W3.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0});function $9($,V,J){if(Error.call(this,$),this.message=$,this.type=V,J)this.code=this.errno=J.code;Error.captureStackTrace(this,this.constructor)}$9.prototype=Object.create(Error.prototype);$9.prototype.constructor=$9;$9.prototype.name="FetchError";var Nq;try{Nq=(()=>{throw new Error("Cannot require module "+"encoding");})().convert}catch($){}var W8=Symbol("Body internals"),ZB=C6.PassThrough;function u0($){var V=this,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=J.size;let X=Q===void 0?0:Q;var Y=J.timeout;let G=Y===void 0?0:Y;if($==null)$=null;else if(NB($))$=Buffer.from($.toString());else if(ZV($));else if(Buffer.isBuffer($));else if(Object.prototype.toString.call($)==="[object ArrayBuffer]")$=Buffer.from($);else if(ArrayBuffer.isView($))$=Buffer.from($.buffer,$.byteOffset,$.byteLength);else if($ instanceof C6);else $=Buffer.from(String($));if(this[W8]={body:$,disturbed:!1,error:null},this.size=X,this.timeout=G,$ instanceof C6)$.on("error",function(W){let K=W.name==="AbortError"?W:new $9(`Invalid response body while trying to fetch ${V.url}: ${W.message}`,"system",W);V[W8].error=K})}u0.prototype={get body(){return this[W8].body},get bodyUsed(){return this[W8].disturbed},arrayBuffer(){return Y3.call(this).then(function($){return $.buffer.slice($.byteOffset,$.byteOffset+$.byteLength)})},blob(){let $=this.headers&&this.headers.get("content-type")||"";return Y3.call(this).then(function(V){return Object.assign(new W3([],{type:$.toLowerCase()}),{[Y8]:V})})},json(){var $=this;return Y3.call(this).then(function(V){try{return JSON.parse(V.toString())}catch(J){return u0.Promise.reject(new $9(`invalid json response body at ${$.url} reason: ${J.message}`,"invalid-json"))}})},text(){return Y3.call(this).then(function($){return $.toString()})},buffer(){return Y3.call(this)},textConverted(){var $=this;return Y3.call(this).then(function(V){return ce(V,$.headers)})}};Object.defineProperties(u0.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}});u0.mixIn=function($){for(let V of Object.getOwnPropertyNames(u0.prototype))if(!(V in $)){let J=Object.getOwnPropertyDescriptor(u0.prototype,V);Object.defineProperty($,V,J)}};function Y3(){var $=this;if(this[W8].disturbed)return u0.Promise.reject(TypeError(`body used already for: ${this.url}`));if(this[W8].disturbed=!0,this[W8].error)return u0.Promise.reject(this[W8].error);let V=this.body;if(V===null)return u0.Promise.resolve(Buffer.alloc(0));if(ZV(V))V=V.stream();if(Buffer.isBuffer(V))return u0.Promise.resolve(V);if(!(V instanceof C6))return u0.Promise.resolve(Buffer.alloc(0));let J=[],Q=0,X=!1;return new u0.Promise(function(Y,G){let W;if($.timeout)W=setTimeout(function(){X=!0,G(new $9(`Response timeout while trying to fetch ${$.url} (over ${$.timeout}ms)`,"body-timeout"))},$.timeout);V.on("error",function(K){if(K.name==="AbortError")X=!0,G(K);else G(new $9(`Invalid response body while trying to fetch ${$.url}: ${K.message}`,"system",K))}),V.on("data",function(K){if(X||K===null)return;if($.size&&Q+K.length>$.size){X=!0,G(new $9(`content size at ${$.url} over limit: ${$.size}`,"max-size"));return}Q+=K.length,J.push(K)}),V.on("end",function(){if(X)return;clearTimeout(W);try{Y(Buffer.concat(J,Q))}catch(K){G(new $9(`Could not create Buffer from response body for ${$.url}: ${K.message}`,"system",K))}})})}function ce($,V){if(typeof Nq!=="function")throw Error("The package `encoding` must be installed to use the textConverted() function");let J=V.get("content-type"),Q="utf-8",X,Y;if(J)X=/charset=([^;]*)/i.exec(J);if(Y=$.slice(0,1024).toString(),!X&&Y)X=/<meta.+?charset=(['"])(.+?)\1/i.exec(Y);if(!X&&Y){if(X=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(Y),!X){if(X=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(Y),X)X.pop()}if(X)X=/charset=(.*)/i.exec(X.pop())}if(!X&&Y)X=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(Y);if(X){if(Q=X.pop(),Q==="gb2312"||Q==="gbk")Q="gb18030"}return Nq($,"UTF-8",Q).toString()}function NB($){if(typeof $!=="object"||typeof $.append!=="function"||typeof $.delete!=="function"||typeof $.get!=="function"||typeof $.getAll!=="function"||typeof $.has!=="function"||typeof $.set!=="function")return!1;return $.constructor.name==="URLSearchParams"||Object.prototype.toString.call($)==="[object URLSearchParams]"||typeof $.sort==="function"}function ZV($){return typeof $==="object"&&typeof $.arrayBuffer==="function"&&typeof $.type==="string"&&typeof $.stream==="function"&&typeof $.constructor==="function"&&typeof $.constructor.name==="string"&&/^(Blob|File)$/.test($.constructor.name)&&/^(Blob|File)$/.test($[Symbol.toStringTag])}function MB($){let V,J,Q=$.body;if($.bodyUsed)throw Error("cannot clone body after it is used");if(Q instanceof C6&&typeof Q.getBoundary!=="function")V=new ZB,J=new ZB,Q.pipe(V),Q.pipe(J),$[W8].body=V,Q=J;return Q}function LB($){if($===null)return null;else if(typeof $==="string")return"text/plain;charset=UTF-8";else if(NB($))return"application/x-www-form-urlencoded;charset=UTF-8";else if(ZV($))return $.type||null;else if(Buffer.isBuffer($))return null;else if(Object.prototype.toString.call($)==="[object ArrayBuffer]")return null;else if(ArrayBuffer.isView($))return null;else if(typeof $.getBoundary==="function")return`multipart/form-data;boundary=${$.getBoundary()}`;else if($ instanceof C6)return null;else return"text/plain;charset=UTF-8"}function RB($){let V=$.body;if(V===null)return 0;else if(ZV(V))return V.size;else if(Buffer.isBuffer(V))return V.length;else if(V&&typeof V.getLengthSync==="function"){if(V._lengthRetrievers&&V._lengthRetrievers.length==0||V.hasKnownLength&&V.hasKnownLength())return V.getLengthSync();return null}else return null}function ne($,V){let J=V.body;if(J===null)$.end();else if(ZV(J))J.stream().pipe($);else if(Buffer.isBuffer(J))$.write(J),$.end();else J.pipe($)}u0.Promise=global.Promise;var PB=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,Mq=/[^\t\x20-\x7e\x80-\xff]/;function DV($){if($=`${$}`,PB.test($)||$==="")throw TypeError(`${$} is not a legal HTTP header name`)}function UB($){if($=`${$}`,Mq.test($))throw TypeError(`${$} is not a legal HTTP header value`)}function G3($,V){V=V.toLowerCase();for(let J in $)if(J.toLowerCase()===V)return J;return}var _0=Symbol("map");class q6{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(this[_0]=Object.create(null),$ instanceof q6){let V=$.raw(),J=Object.keys(V);for(let Q of J)for(let X of V[Q])this.append(Q,X);return}if($==null);else if(typeof $==="object"){let V=$[Symbol.iterator];if(V!=null){if(typeof V!=="function")throw TypeError("Header pairs must be iterable");let J=[];for(let Q of $){if(typeof Q!=="object"||typeof Q[Symbol.iterator]!=="function")throw TypeError("Each header pair must be iterable");J.push(Array.from(Q))}for(let Q of J){if(Q.length!==2)throw TypeError("Each header pair must be a name/value tuple");this.append(Q[0],Q[1])}}else for(let J of Object.keys($)){let Q=$[J];this.append(J,Q)}}else throw TypeError("Provided initializer must be an object")}get($){$=`${$}`,DV($);let V=G3(this[_0],$);if(V===void 0)return null;return this[_0][V].join(", ")}forEach($){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,J=Lq(this),Q=0;while(Q<J.length){var X=J[Q];let Y=X[0],G=X[1];$.call(V,G,Y,this),J=Lq(this),Q++}}set($,V){$=`${$}`,V=`${V}`,DV($),UB(V);let J=G3(this[_0],$);this[_0][J!==void 0?J:$]=[V]}append($,V){$=`${$}`,V=`${V}`,DV($),UB(V);let J=G3(this[_0],$);if(J!==void 0)this[_0][J].push(V);else this[_0][$]=[V]}has($){return $=`${$}`,DV($),G3(this[_0],$)!==void 0}delete($){$=`${$}`,DV($);let V=G3(this[_0],$);if(V!==void 0)delete this[_0][V]}raw(){return this[_0]}keys(){return wq(this,"key")}values(){return wq(this,"value")}[Symbol.iterator](){return wq(this,"key+value")}}q6.prototype.entries=q6.prototype[Symbol.iterator];Object.defineProperty(q6.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(q6.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});function Lq($){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key+value";return Object.keys($[_0]).sort().map(V==="key"?function(Q){return Q.toLowerCase()}:V==="value"?function(Q){return $[_0][Q].join(", ")}:function(Q){return[Q.toLowerCase(),$[_0][Q].join(", ")]})}var Rq=Symbol("internal");function wq($,V){let J=Object.create(Pq);return J[Rq]={target:$,kind:V,index:0},J}var Pq=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Pq)throw TypeError("Value of `this` is not a HeadersIterator");var $=this[Rq];let{target:V,kind:J,index:Q}=$,X=Lq(V,J),Y=X.length;if(Q>=Y)return{value:void 0,done:!0};return this[Rq].index=Q+1,{value:X[Q],done:!1}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(Pq,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});function oe($){let V=Object.assign({__proto__:null},$[_0]),J=G3($[_0],"Host");if(J!==void 0)V[J]=V[J][0];return V}function se($){let V=new q6;for(let J of Object.keys($)){if(PB.test(J))continue;if(Array.isArray($[J]))for(let Q of $[J]){if(Mq.test(Q))continue;if(V[_0][J]===void 0)V[_0][J]=[Q];else V[_0][J].push(Q)}else if(!Mq.test($[J]))V[_0][J]=[$[J]]}return V}var U5=Symbol("Response internals"),re=zB.STATUS_CODES;class K6{constructor(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u0.call(this,$,V);let J=V.status||200,Q=new q6(V.headers);if($!=null&&!Q.has("Content-Type")){let X=LB($);if(X)Q.append("Content-Type",X)}this[U5]={url:V.url,status:J,statusText:V.statusText||re[J],headers:Q,counter:V.counter}}get url(){return this[U5].url||""}get status(){return this[U5].status}get ok(){return this[U5].status>=200&&this[U5].status<300}get redirected(){return this[U5].counter>0}get statusText(){return this[U5].statusText}get headers(){return this[U5].headers}clone(){return new K6(MB(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}u0.mixIn(K6.prototype);Object.defineProperties(K6.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});Object.defineProperty(K6.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});var G8=Symbol("Request internals"),te=uQ.URL||jB.URL,ee=uQ.parse,$11=uQ.format;function zq($){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec($))$=new te($).toString();return ee($)}var V11="destroy"in C6.Readable.prototype;function fQ($){return typeof $==="object"&&typeof $[G8]==="object"}function J11($){let V=$&&typeof $==="object"&&Object.getPrototypeOf($);return!!(V&&V.constructor.name==="AbortSignal")}class z5{constructor($){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J;if(!fQ($)){if($&&$.href)J=zq($.href);else J=zq(`${$}`);$={}}else J=zq($.url);let Q=V.method||$.method||"GET";if(Q=Q.toUpperCase(),(V.body!=null||fQ($)&&$.body!==null)&&(Q==="GET"||Q==="HEAD"))throw TypeError("Request with GET/HEAD method cannot have body");let X=V.body!=null?V.body:fQ($)&&$.body!==null?MB($):null;u0.call(this,X,{timeout:V.timeout||$.timeout||0,size:V.size||$.size||0});let Y=new q6(V.headers||$.headers||{});if(X!=null&&!Y.has("Content-Type")){let W=LB(X);if(W)Y.append("Content-Type",W)}let G=fQ($)?$.signal:null;if("signal"in V)G=V.signal;if(G!=null&&!J11(G))throw TypeError("Expected signal to be an instanceof AbortSignal");this[G8]={method:Q,redirect:V.redirect||$.redirect||"follow",headers:Y,parsedURL:J,signal:G},this.follow=V.follow!==void 0?V.follow:$.follow!==void 0?$.follow:20,this.compress=V.compress!==void 0?V.compress:$.compress!==void 0?$.compress:!0,this.counter=V.counter||$.counter||0,this.agent=V.agent||$.agent}get method(){return this[G8].method}get url(){return $11(this[G8].parsedURL)}get headers(){return this[G8].headers}get redirect(){return this[G8].redirect}get signal(){return this[G8].signal}clone(){return new z5(this)}}u0.mixIn(z5.prototype);Object.defineProperty(z5.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(z5.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}});function Q11($){let V=$[G8].parsedURL,J=new q6($[G8].headers);if(!J.has("Accept"))J.set("Accept","*/*");if(!V.protocol||!V.hostname)throw TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(V.protocol))throw TypeError("Only HTTP(S) protocols are supported");if($.signal&&$.body instanceof C6.Readable&&!V11)throw Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let Q=null;if($.body==null&&/^(POST|PUT)$/i.test($.method))Q="0";if($.body!=null){let Y=RB($);if(typeof Y==="number")Q=String(Y)}if(Q)J.set("Content-Length",Q);if(!J.has("User-Agent"))J.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)");if($.compress&&!J.has("Accept-Encoding"))J.set("Accept-Encoding","gzip,deflate");let X=$.agent;if(typeof X==="function")X=X(V);return Object.assign({},V,{method:$.method,headers:oe(J),agent:X})}function K3($){Error.call(this,$),this.type="aborted",this.message=$,Error.captureStackTrace(this,this.constructor)}K3.prototype=Object.create(Error.prototype);K3.prototype.constructor=K3;K3.prototype.name="AbortError";var HV=uQ.URL||jB.URL,wB=C6.PassThrough,X11=function(V,J){let Q=new HV(J).hostname,X=new HV(V).hostname;return Q===X||Q[Q.length-X.length-1]==="."&&Q.endsWith(X)},Y11=function(V,J){let Q=new HV(J).protocol,X=new HV(V).protocol;return Q===X};function w5($,V){if(!w5.Promise)throw Error("native promise missing, set fetch.Promise to your favorite alternative");return u0.Promise=w5.Promise,new w5.Promise(function(J,Q){let X=new z5($,V),Y=Q11(X),G=(Y.protocol==="https:"?ae:zB).request,W=X.signal,K=null,D=function(){let B=new K3("The user aborted a request.");if(Q(B),X.body&&X.body instanceof C6.Readable)jq(X.body,B);if(!K||!K.body)return;K.body.emit("error",B)};if(W&&W.aborted){D();return}let H=function(){D(),M()},U=G(Y),z;if(W)W.addEventListener("abort",H);function M(){if(U.abort(),W)W.removeEventListener("abort",H);clearTimeout(z)}if(X.timeout)U.once("socket",function(L){z=setTimeout(function(){Q(new $9(`network timeout at: ${X.url}`,"request-timeout")),M()},X.timeout)});if(U.on("error",function(L){if(Q(new $9(`request to ${X.url} failed, reason: ${L.message}`,"system",L)),K&&K.body)jq(K.body,L);M()}),G11(U,function(L){if(W&&W.aborted)return;if(K&&K.body)jq(K.body,L)}),parseInt(process.version.substring(1))<14)U.on("socket",function(L){L.addListener("close",function(B){let _=L.listenerCount("data")>0;if(K&&_&&!B&&!(W&&W.aborted)){let T=Error("Premature close");T.code="ERR_STREAM_PREMATURE_CLOSE",K.body.emit("error",T)}})});U.on("response",function(L){clearTimeout(z);let B=se(L.headers);if(w5.isRedirect(L.statusCode)){let E=B.get("Location"),y=null;try{y=E===null?null:new HV(E,X.url).toString()}catch(l){if(X.redirect!=="manual"){Q(new $9(`uri requested responds with an invalid redirect URL: ${E}`,"invalid-redirect")),M();return}}switch(X.redirect){case"error":Q(new $9(`uri requested responds with a redirect, redirect mode is set to error: ${X.url}`,"no-redirect")),M();return;case"manual":if(y!==null)try{B.set("Location",y)}catch(f){Q(f)}break;case"follow":if(y===null)break;if(X.counter>=X.follow){Q(new $9(`maximum redirect reached at: ${X.url}`,"max-redirect")),M();return}let l={headers:new q6(X.headers),follow:X.follow,counter:X.counter+1,agent:X.agent,compress:X.compress,method:X.method,body:X.body,signal:X.signal,timeout:X.timeout,size:X.size};if(!X11(X.url,y)||!Y11(X.url,y))for(let f of["authorization","www-authenticate","cookie","cookie2"])l.headers.delete(f);if(L.statusCode!==303&&X.body&&RB(X)===null){Q(new $9("Cannot follow redirect with body being a readable stream","unsupported-redirect")),M();return}if(L.statusCode===303||(L.statusCode===301||L.statusCode===302)&&X.method==="POST")l.method="GET",l.body=void 0,l.headers.delete("content-length");J(w5(new z5(y,l))),M();return}}L.once("end",function(){if(W)W.removeEventListener("abort",H)});let _=L.pipe(new wB),T={url:X.url,status:L.statusCode,statusText:L.statusMessage,headers:B,size:X.size,timeout:X.timeout,counter:X.counter},h=B.get("Content-Encoding");if(!X.compress||X.method==="HEAD"||h===null||L.statusCode===204||L.statusCode===304){K=new K6(_,T),J(K);return}let A={flush:J7.Z_SYNC_FLUSH,finishFlush:J7.Z_SYNC_FLUSH};if(h=="gzip"||h=="x-gzip"){_=_.pipe(J7.createGunzip(A)),K=new K6(_,T),J(K);return}if(h=="deflate"||h=="x-deflate"){let E=L.pipe(new wB);E.once("data",function(y){if((y[0]&15)===8)_=_.pipe(J7.createInflate());else _=_.pipe(J7.createInflateRaw());K=new K6(_,T),J(K)}),E.on("end",function(){if(!K)K=new K6(_,T),J(K)});return}if(h=="br"&&typeof J7.createBrotliDecompress==="function"){_=_.pipe(J7.createBrotliDecompress()),K=new K6(_,T),J(K);return}K=new K6(_,T),J(K)}),ne(U,X)})}function G11($,V){let J;$.on("socket",function(Q){J=Q}),$.on("response",function(Q){let X=Q.headers;if(X["transfer-encoding"]==="chunked"&&!X["content-length"])Q.once("close",function(Y){if(J&&J.listenerCount("data")>0&&!Y){let W=Error("Premature close");W.code="ERR_STREAM_PREMATURE_CLOSE",V(W)}})})}function jq($,V){if($.destroy)$.destroy(V);else $.emit("error",V),$.end()}w5.isRedirect=function($){return $===301||$===302||$===303||$===307||$===308};w5.Promise=global.Promise;OB.exports=I6=w5;Object.defineProperty(I6,"__esModule",{value:!0});I6.default=I6;I6.Headers=q6;I6.Request=z5;I6.Response=K6;I6.FetchError=$9;I6.AbortError=K3});var K8=M1((Dg2,_B)=>{var BB=["nodebuffer","arraybuffer","fragments"],SB=typeof Blob<"u";if(SB)BB.push("blob");_B.exports={BINARY_TYPES:BB,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:SB,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var UV=M1((Hg2,aQ)=>{var{EMPTY_BUFFER:W11}=K8(),Oq=Buffer[Symbol.species];function K11($,V){if($.length===0)return W11;if($.length===1)return $[0];let J=Buffer.allocUnsafe(V),Q=0;for(let X=0;X<$.length;X++){let Y=$[X];J.set(Y,Q),Q+=Y.length}if(Q<V)return new Oq(J.buffer,J.byteOffset,Q);return J}function IB($,V,J,Q,X){for(let Y=0;Y<X;Y++)J[Q+Y]=$[Y]^V[Y&3]}function TB($,V){for(let J=0;J<$.length;J++)$[J]^=V[J&3]}function q11($){if($.length===$.buffer.byteLength)return $.buffer;return $.buffer.slice($.byteOffset,$.byteOffset+$.length)}function Fq($){if(Fq.readOnly=!0,Buffer.isBuffer($))return $;let V;if($ instanceof ArrayBuffer)V=new Oq($);else if(ArrayBuffer.isView($))V=new Oq($.buffer,$.byteOffset,$.byteLength);else V=Buffer.from($),Fq.readOnly=!1;return V}aQ.exports={concat:K11,mask:IB,toArrayBuffer:q11,toBuffer:Fq,unmask:TB};if(!process.env.WS_NO_BUFFER_UTIL)try{let $=CB();aQ.exports.mask=function(V,J,Q,X,Y){if(Y<48)IB(V,J,Q,X,Y);else $.mask(V,J,Q,X,Y)},aQ.exports.unmask=function(V,J){if(V.length<32)TB(V,J);else $.unmask(V,J)}}catch($){}});var kB=M1((Zg2,mB)=>{var AB=Symbol("kDone"),Bq=Symbol("kRun");class pB{constructor($){this[AB]=()=>{this.pending--,this[Bq]()},this.concurrency=$||1/0,this.jobs=[],this.pending=0}add($){this.jobs.push($),this[Bq]()}[Bq](){if(this.pending===this.concurrency)return;if(this.jobs.length){let $=this.jobs.shift();this.pending++,$(this[AB])}}}mB.exports=pB});var zV=M1((Ug2,dB)=>{var wV=k1("zlib"),EB=UV(),D11=kB(),{kStatusCode:vB}=K8(),H11=Buffer[Symbol.species],Z11=Buffer.from([0,0,255,255]),cQ=Symbol("permessage-deflate"),q8=Symbol("total-length"),D3=Symbol("callback"),j5=Symbol("buffers"),H3=Symbol("error"),iQ;class hB{constructor($,V,J){if(this._maxPayload=J|0,this._options=$||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!V,this._deflate=null,this._inflate=null,this.params=null,!iQ){let Q=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;iQ=new D11(Q)}}static get extensionName(){return"permessage-deflate"}offer(){let $={};if(this._options.serverNoContextTakeover)$.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)$.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)$.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)$.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)$.client_max_window_bits=!0;return $}accept($){return $=this.normalizeParams($),this.params=this._isServer?this.acceptAsServer($):this.acceptAsClient($),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let $=this._deflate[D3];if(this._deflate.close(),this._deflate=null,$)$(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer($){let V=this._options,J=$.find((Q)=>{if(V.serverNoContextTakeover===!1&&Q.server_no_context_takeover||Q.server_max_window_bits&&(V.serverMaxWindowBits===!1||typeof V.serverMaxWindowBits==="number"&&V.serverMaxWindowBits>Q.server_max_window_bits)||typeof V.clientMaxWindowBits==="number"&&!Q.client_max_window_bits)return!1;return!0});if(!J)throw Error("None of the extension offers can be accepted");if(V.serverNoContextTakeover)J.server_no_context_takeover=!0;if(V.clientNoContextTakeover)J.client_no_context_takeover=!0;if(typeof V.serverMaxWindowBits==="number")J.server_max_window_bits=V.serverMaxWindowBits;if(typeof V.clientMaxWindowBits==="number")J.client_max_window_bits=V.clientMaxWindowBits;else if(J.client_max_window_bits===!0||V.clientMaxWindowBits===!1)delete J.client_max_window_bits;return J}acceptAsClient($){let V=$[0];if(this._options.clientNoContextTakeover===!1&&V.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!V.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")V.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&V.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return V}normalizeParams($){return $.forEach((V)=>{Object.keys(V).forEach((J)=>{let Q=V[J];if(Q.length>1)throw Error(`Parameter "${J}" must have only a single value`);if(Q=Q[0],J==="client_max_window_bits"){if(Q!==!0){let X=+Q;if(!Number.isInteger(X)||X<8||X>15)throw TypeError(`Invalid value for parameter "${J}": ${Q}`);Q=X}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${J}": ${Q}`)}else if(J==="server_max_window_bits"){let X=+Q;if(!Number.isInteger(X)||X<8||X>15)throw TypeError(`Invalid value for parameter "${J}": ${Q}`);Q=X}else if(J==="client_no_context_takeover"||J==="server_no_context_takeover"){if(Q!==!0)throw TypeError(`Invalid value for parameter "${J}": ${Q}`)}else throw Error(`Unknown parameter "${J}"`);V[J]=Q})}),$}decompress($,V,J){iQ.add((Q)=>{this._decompress($,V,(X,Y)=>{Q(),J(X,Y)})})}compress($,V,J){iQ.add((Q)=>{this._compress($,V,(X,Y)=>{Q(),J(X,Y)})})}_decompress($,V,J){let Q=this._isServer?"client":"server";if(!this._inflate){let X=`${Q}_max_window_bits`,Y=typeof this.params[X]!=="number"?wV.Z_DEFAULT_WINDOWBITS:this.params[X];this._inflate=wV.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Y}),this._inflate[cQ]=this,this._inflate[q8]=0,this._inflate[j5]=[],this._inflate.on("error",w11),this._inflate.on("data",xB)}if(this._inflate[D3]=J,this._inflate.write($),V)this._inflate.write(Z11);this._inflate.flush(()=>{let X=this._inflate[H3];if(X){this._inflate.close(),this._inflate=null,J(X);return}let Y=EB.concat(this._inflate[j5],this._inflate[q8]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[q8]=0,this._inflate[j5]=[],V&&this.params[`${Q}_no_context_takeover`])this._inflate.reset();J(null,Y)})}_compress($,V,J){let Q=this._isServer?"server":"client";if(!this._deflate){let X=`${Q}_max_window_bits`,Y=typeof this.params[X]!=="number"?wV.Z_DEFAULT_WINDOWBITS:this.params[X];this._deflate=wV.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Y}),this._deflate[q8]=0,this._deflate[j5]=[],this._deflate.on("data",U11)}this._deflate[D3]=J,this._deflate.write($),this._deflate.flush(wV.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let X=EB.concat(this._deflate[j5],this._deflate[q8]);if(V)X=new H11(X.buffer,X.byteOffset,X.length-4);if(this._deflate[D3]=null,this._deflate[q8]=0,this._deflate[j5]=[],V&&this.params[`${Q}_no_context_takeover`])this._deflate.reset();J(null,X)})}}dB.exports=hB;function U11($){this[j5].push($),this[q8]+=$.length}function xB($){if(this[q8]+=$.length,this[cQ]._maxPayload<1||this[q8]<=this[cQ]._maxPayload){this[j5].push($);return}this[H3]=RangeError("Max payload size exceeded"),this[H3].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[H3][vB]=1009,this.removeListener("data",xB),this.reset()}function w11($){if(this[cQ]._inflate=null,this[H3]){this[D3](this[H3]);return}$[vB]=1007,this[D3]($)}});var Z3=M1((wg2,nQ)=>{var{isUtf8:yB}=k1("buffer"),{hasBlob:z11}=K8(),j11=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function N11($){return $>=1000&&$<=1014&&$!==1004&&$!==1005&&$!==1006||$>=3000&&$<=4999}function Sq($){let V=$.length,J=0;while(J<V)if(($[J]&128)===0)J++;else if(($[J]&224)===192){if(J+1===V||($[J+1]&192)!==128||($[J]&254)===192)return!1;J+=2}else if(($[J]&240)===224){if(J+2>=V||($[J+1]&192)!==128||($[J+2]&192)!==128||$[J]===224&&($[J+1]&224)===128||$[J]===237&&($[J+1]&224)===160)return!1;J+=3}else if(($[J]&248)===240){if(J+3>=V||($[J+1]&192)!==128||($[J+2]&192)!==128||($[J+3]&192)!==128||$[J]===240&&($[J+1]&240)===128||$[J]===244&&$[J+1]>143||$[J]>244)return!1;J+=4}else return!1;return!0}function M11($){return z11&&typeof $==="object"&&typeof $.arrayBuffer==="function"&&typeof $.type==="string"&&typeof $.stream==="function"&&($[Symbol.toStringTag]==="Blob"||$[Symbol.toStringTag]==="File")}nQ.exports={isBlob:M11,isValidStatusCode:N11,isValidUTF8:Sq,tokenChars:j11};if(yB)nQ.exports.isValidUTF8=function($){return $.length<24?Sq($):yB($)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let $=bB();nQ.exports.isValidUTF8=function(V){return V.length<32?Sq(V):$(V)}}catch($){}});var Cq=M1((zg2,aB)=>{var{Writable:L11}=k1("stream"),gB=zV(),{BINARY_TYPES:R11,EMPTY_BUFFER:lB,kStatusCode:P11,kWebSocket:O11}=K8(),{concat:_q,toArrayBuffer:F11,unmask:B11}=UV(),{isValidStatusCode:S11,isValidUTF8:fB}=Z3(),oQ=Buffer[Symbol.species];class uB extends L11{constructor($={}){super();this._allowSynchronousEvents=$.allowSynchronousEvents!==void 0?$.allowSynchronousEvents:!0,this._binaryType=$.binaryType||R11[0],this._extensions=$.extensions||{},this._isServer=!!$.isServer,this._maxPayload=$.maxPayload|0,this._skipUTF8Validation=!!$.skipUTF8Validation,this[O11]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write($,V,J){if(this._opcode===8&&this._state==0)return J();this._bufferedBytes+=$.length,this._buffers.push($),this.startLoop(J)}consume($){if(this._bufferedBytes-=$,$===this._buffers[0].length)return this._buffers.shift();if($<this._buffers[0].length){let J=this._buffers[0];return this._buffers[0]=new oQ(J.buffer,J.byteOffset+$,J.length-$),new oQ(J.buffer,J.byteOffset,$)}let V=Buffer.allocUnsafe($);do{let J=this._buffers[0],Q=V.length-$;if($>=J.length)V.set(this._buffers.shift(),Q);else V.set(new Uint8Array(J.buffer,J.byteOffset,$),Q),this._buffers[0]=new oQ(J.buffer,J.byteOffset+$,J.length-$);$-=J.length}while($>0);return V}startLoop($){this._loop=!0;do switch(this._state){case 0:this.getInfo($);break;case 1:this.getPayloadLength16($);break;case 2:this.getPayloadLength64($);break;case 3:this.getMask();break;case 4:this.getData($);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)$()}getInfo($){if(this._bufferedBytes<2){this._loop=!1;return}let V=this.consume(2);if((V[0]&48)!==0){let Q=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");$(Q);return}let J=(V[0]&64)===64;if(J&&!this._extensions[gB.extensionName]){let Q=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(Q);return}if(this._fin=(V[0]&128)===128,this._opcode=V[0]&15,this._payloadLength=V[1]&127,this._opcode===0){if(J){let Q=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(Q);return}if(!this._fragmented){let Q=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");$(Q);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Q=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(Q);return}this._compressed=J}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Q=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");$(Q);return}if(J){let Q=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(Q);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Q=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");$(Q);return}}else{let Q=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(Q);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(V[1]&128)===128,this._isServer){if(!this._masked){let Q=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");$(Q);return}}else if(this._masked){let Q=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");$(Q);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength($)}getPayloadLength16($){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength($)}getPayloadLength64($){if(this._bufferedBytes<8){this._loop=!1;return}let V=this.consume(8),J=V.readUInt32BE(0);if(J>Math.pow(2,21)-1){let Q=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");$(Q);return}this._payloadLength=J*Math.pow(2,32)+V.readUInt32BE(4),this.haveLength($)}haveLength($){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let V=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");$(V);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData($){let V=lB;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(V=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)B11(V,this._mask)}if(this._opcode>7){this.controlMessage(V,$);return}if(this._compressed){this._state=5,this.decompress(V,$);return}if(V.length)this._messageLength=this._totalPayloadLength,this._fragments.push(V);this.dataMessage($)}decompress($,V){this._extensions[gB.extensionName].decompress($,this._fin,(Q,X)=>{if(Q)return V(Q);if(X.length){if(this._messageLength+=X.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Y=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");V(Y);return}this._fragments.push(X)}if(this.dataMessage(V),this._state===0)this.startLoop(V)})}dataMessage($){if(!this._fin){this._state=0;return}let V=this._messageLength,J=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Q;if(this._binaryType==="nodebuffer")Q=_q(J,V);else if(this._binaryType==="arraybuffer")Q=F11(_q(J,V));else if(this._binaryType==="blob")Q=new Blob(J);else Q=J;if(this._allowSynchronousEvents)this.emit("message",Q,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Q,!0),this._state=0,this.startLoop($)})}else{let Q=_q(J,V);if(!this._skipUTF8Validation&&!fB(Q)){let X=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");$(X);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Q,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Q,!1),this._state=0,this.startLoop($)})}}controlMessage($,V){if(this._opcode===8){if($.length===0)this._loop=!1,this.emit("conclude",1005,lB),this.end();else{let J=$.readUInt16BE(0);if(!S11(J)){let X=this.createError(RangeError,`invalid status code ${J}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");V(X);return}let Q=new oQ($.buffer,$.byteOffset+2,$.length-2);if(!this._skipUTF8Validation&&!fB(Q)){let X=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");V(X);return}this._loop=!1,this.emit("conclude",J,Q),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",$),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",$),this._state=0,this.startLoop(V)})}createError($,V,J,Q,X){this._loop=!1,this._errored=!0;let Y=new $(J?`Invalid WebSocket frame: ${V}`:V);return Error.captureStackTrace(Y,this.createError),Y.code=X,Y[P11]=Q,Y}}aB.exports=uB});var Tq=M1((Ng2,nB)=>{var{Duplex:jg2}=k1("stream"),{randomFillSync:_11}=k1("crypto"),iB=zV(),{EMPTY_BUFFER:C11,kWebSocket:I11,NOOP:T11}=K8(),{isBlob:U3,isValidStatusCode:A11}=Z3(),{mask:cB,toBuffer:Q7}=UV(),D6=Symbol("kByteLength"),p11=Buffer.alloc(4),X7,w3=8192,T6=0,m11=1,k11=2;class N5{constructor($,V,J){if(this._extensions=V||{},J)this._generateMask=J,this._maskBuffer=Buffer.alloc(4);this._socket=$,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=T6,this.onerror=T11,this[I11]=void 0}static frame($,V){let J,Q=!1,X=2,Y=!1;if(V.mask){if(J=V.maskBuffer||p11,V.generateMask)V.generateMask(J);else{if(w3===8192){if(X7===void 0)X7=Buffer.alloc(8192);_11(X7,0,8192),w3=0}J[0]=X7[w3++],J[1]=X7[w3++],J[2]=X7[w3++],J[3]=X7[w3++]}Y=(J[0]|J[1]|J[2]|J[3])===0,X=6}let G;if(typeof $==="string")if((!V.mask||Y)&&V[D6]!==void 0)G=V[D6];else $=Buffer.from($),G=$.length;else G=$.length,Q=V.mask&&V.readOnly&&!Y;let W=G;if(G>=65536)X+=8,W=127;else if(G>125)X+=2,W=126;let K=Buffer.allocUnsafe(Q?G+X:X);if(K[0]=V.fin?V.opcode|128:V.opcode,V.rsv1)K[0]|=64;if(K[1]=W,W===126)K.writeUInt16BE(G,2);else if(W===127)K[2]=K[3]=0,K.writeUIntBE(G,4,6);if(!V.mask)return[K,$];if(K[1]|=128,K[X-4]=J[0],K[X-3]=J[1],K[X-2]=J[2],K[X-1]=J[3],Y)return[K,$];if(Q)return cB($,J,K,X,G),[K];return cB($,J,$,0,G),[K,$]}close($,V,J,Q){let X;if($===void 0)X=C11;else if(typeof $!=="number"||!A11($))throw TypeError("First argument must be a valid error code number");else if(V===void 0||!V.length)X=Buffer.allocUnsafe(2),X.writeUInt16BE($,0);else{let G=Buffer.byteLength(V);if(G>123)throw RangeError("The message must not be greater than 123 bytes");if(X=Buffer.allocUnsafe(2+G),X.writeUInt16BE($,0),typeof V==="string")X.write(V,2);else X.set(V,2)}let Y={[D6]:X.length,fin:!0,generateMask:this._generateMask,mask:J,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==T6)this.enqueue([this.dispatch,X,!1,Y,Q]);else this.sendFrame(N5.frame(X,Y),Q)}ping($,V,J){let Q,X;if(typeof $==="string")Q=Buffer.byteLength($),X=!1;else if(U3($))Q=$.size,X=!1;else $=Q7($),Q=$.length,X=Q7.readOnly;if(Q>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[D6]:Q,fin:!0,generateMask:this._generateMask,mask:V,maskBuffer:this._maskBuffer,opcode:9,readOnly:X,rsv1:!1};if(U3($))if(this._state!==T6)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==T6)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(N5.frame($,Y),J)}pong($,V,J){let Q,X;if(typeof $==="string")Q=Buffer.byteLength($),X=!1;else if(U3($))Q=$.size,X=!1;else $=Q7($),Q=$.length,X=Q7.readOnly;if(Q>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[D6]:Q,fin:!0,generateMask:this._generateMask,mask:V,maskBuffer:this._maskBuffer,opcode:10,readOnly:X,rsv1:!1};if(U3($))if(this._state!==T6)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==T6)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(N5.frame($,Y),J)}send($,V,J){let Q=this._extensions[iB.extensionName],X=V.binary?2:1,Y=V.compress,G,W;if(typeof $==="string")G=Buffer.byteLength($),W=!1;else if(U3($))G=$.size,W=!1;else $=Q7($),G=$.length,W=Q7.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Y&&Q&&Q.params[Q._isServer?"server_no_context_takeover":"client_no_context_takeover"])Y=G>=Q._threshold;this._compress=Y}else Y=!1,X=0;if(V.fin)this._firstFragment=!0;let K={[D6]:G,fin:V.fin,generateMask:this._generateMask,mask:V.mask,maskBuffer:this._maskBuffer,opcode:X,readOnly:W,rsv1:Y};if(U3($))if(this._state!==T6)this.enqueue([this.getBlobData,$,this._compress,K,J]);else this.getBlobData($,this._compress,K,J);else if(this._state!==T6)this.enqueue([this.dispatch,$,this._compress,K,J]);else this.dispatch($,this._compress,K,J)}getBlobData($,V,J,Q){this._bufferedBytes+=J[D6],this._state=k11,$.arrayBuffer().then((X)=>{if(this._socket.destroyed){let G=Error("The socket was closed while the blob was being read");process.nextTick(Iq,this,G,Q);return}this._bufferedBytes-=J[D6];let Y=Q7(X);if(!V)this._state=T6,this.sendFrame(N5.frame(Y,J),Q),this.dequeue();else this.dispatch(Y,V,J,Q)}).catch((X)=>{process.nextTick(E11,this,X,Q)})}dispatch($,V,J,Q){if(!V){this.sendFrame(N5.frame($,J),Q);return}let X=this._extensions[iB.extensionName];this._bufferedBytes+=J[D6],this._state=m11,X.compress($,J.fin,(Y,G)=>{if(this._socket.destroyed){let W=Error("The socket was closed while data was being compressed");Iq(this,W,Q);return}this._bufferedBytes-=J[D6],this._state=T6,J.readOnly=!1,this.sendFrame(N5.frame(G,J),Q),this.dequeue()})}dequeue(){while(this._state===T6&&this._queue.length){let $=this._queue.shift();this._bufferedBytes-=$[3][D6],Reflect.apply($[0],this,$.slice(1))}}enqueue($){this._bufferedBytes+=$[3][D6],this._queue.push($)}sendFrame($,V){if($.length===2)this._socket.cork(),this._socket.write($[0]),this._socket.write($[1],V),this._socket.uncork();else this._socket.write($[0],V)}}nB.exports=N5;function Iq($,V,J){if(typeof J==="function")J(V);for(let Q=0;Q<$._queue.length;Q++){let X=$._queue[Q],Y=X[X.length-1];if(typeof Y==="function")Y(V)}}function E11($,V,J){Iq($,V,J),$.onerror(V)}});var QS=M1((Mg2,JS)=>{var{kForOnEventAttribute:jV,kListener:Aq}=K8(),oB=Symbol("kCode"),sB=Symbol("kData"),rB=Symbol("kError"),tB=Symbol("kMessage"),eB=Symbol("kReason"),z3=Symbol("kTarget"),$S=Symbol("kType"),VS=Symbol("kWasClean");class M5{constructor($){this[z3]=null,this[$S]=$}get target(){return this[z3]}get type(){return this[$S]}}Object.defineProperty(M5.prototype,"target",{enumerable:!0});Object.defineProperty(M5.prototype,"type",{enumerable:!0});class j3 extends M5{constructor($,V={}){super($);this[oB]=V.code===void 0?0:V.code,this[eB]=V.reason===void 0?"":V.reason,this[VS]=V.wasClean===void 0?!1:V.wasClean}get code(){return this[oB]}get reason(){return this[eB]}get wasClean(){return this[VS]}}Object.defineProperty(j3.prototype,"code",{enumerable:!0});Object.defineProperty(j3.prototype,"reason",{enumerable:!0});Object.defineProperty(j3.prototype,"wasClean",{enumerable:!0});class NV extends M5{constructor($,V={}){super($);this[rB]=V.error===void 0?null:V.error,this[tB]=V.message===void 0?"":V.message}get error(){return this[rB]}get message(){return this[tB]}}Object.defineProperty(NV.prototype,"error",{enumerable:!0});Object.defineProperty(NV.prototype,"message",{enumerable:!0});class rQ extends M5{constructor($,V={}){super($);this[sB]=V.data===void 0?null:V.data}get data(){return this[sB]}}Object.defineProperty(rQ.prototype,"data",{enumerable:!0});var v11={addEventListener($,V,J={}){for(let X of this.listeners($))if(!J[jV]&&X[Aq]===V&&!X[jV])return;let Q;if($==="message")Q=function(Y,G){let W=new rQ("message",{data:G?Y:Y.toString()});W[z3]=this,sQ(V,this,W)};else if($==="close")Q=function(Y,G){let W=new j3("close",{code:Y,reason:G.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});W[z3]=this,sQ(V,this,W)};else if($==="error")Q=function(Y){let G=new NV("error",{error:Y,message:Y.message});G[z3]=this,sQ(V,this,G)};else if($==="open")Q=function(){let Y=new M5("open");Y[z3]=this,sQ(V,this,Y)};else return;if(Q[jV]=!!J[jV],Q[Aq]=V,J.once)this.once($,Q);else this.on($,Q)},removeEventListener($,V){for(let J of this.listeners($))if(J[Aq]===V&&!J[jV]){this.removeListener($,J);break}}};JS.exports={CloseEvent:j3,ErrorEvent:NV,Event:M5,EventTarget:v11,MessageEvent:rQ};function sQ($,V,J){if(typeof $==="object"&&$.handleEvent)$.handleEvent.call($,J);else $.call(V,J)}});var pq=M1((Lg2,XS)=>{var{tokenChars:MV}=Z3();function G4($,V,J){if($[V]===void 0)$[V]=[J];else $[V].push(J)}function h11($){let V=Object.create(null),J=Object.create(null),Q=!1,X=!1,Y=!1,G,W,K=-1,D=-1,H=-1,U=0;for(;U<$.length;U++)if(D=$.charCodeAt(U),G===void 0)if(H===-1&&MV[D]===1){if(K===-1)K=U}else if(U!==0&&(D===32||D===9)){if(H===-1&&K!==-1)H=U}else if(D===59||D===44){if(K===-1)throw SyntaxError(`Unexpected character at index ${U}`);if(H===-1)H=U;let M=$.slice(K,H);if(D===44)G4(V,M,J),J=Object.create(null);else G=M;K=H=-1}else throw SyntaxError(`Unexpected character at index ${U}`);else if(W===void 0)if(H===-1&&MV[D]===1){if(K===-1)K=U}else if(D===32||D===9){if(H===-1&&K!==-1)H=U}else if(D===59||D===44){if(K===-1)throw SyntaxError(`Unexpected character at index ${U}`);if(H===-1)H=U;if(G4(J,$.slice(K,H),!0),D===44)G4(V,G,J),J=Object.create(null),G=void 0;K=H=-1}else if(D===61&&K!==-1&&H===-1)W=$.slice(K,U),K=H=-1;else throw SyntaxError(`Unexpected character at index ${U}`);else if(X){if(MV[D]!==1)throw SyntaxError(`Unexpected character at index ${U}`);if(K===-1)K=U;else if(!Q)Q=!0;X=!1}else if(Y)if(MV[D]===1){if(K===-1)K=U}else if(D===34&&K!==-1)Y=!1,H=U;else if(D===92)X=!0;else throw SyntaxError(`Unexpected character at index ${U}`);else if(D===34&&$.charCodeAt(U-1)===61)Y=!0;else if(H===-1&&MV[D]===1){if(K===-1)K=U}else if(K!==-1&&(D===32||D===9)){if(H===-1)H=U}else if(D===59||D===44){if(K===-1)throw SyntaxError(`Unexpected character at index ${U}`);if(H===-1)H=U;let M=$.slice(K,H);if(Q)M=M.replace(/\\/g,""),Q=!1;if(G4(J,W,M),D===44)G4(V,G,J),J=Object.create(null),G=void 0;W=void 0,K=H=-1}else throw SyntaxError(`Unexpected character at index ${U}`);if(K===-1||Y||D===32||D===9)throw SyntaxError("Unexpected end of input");if(H===-1)H=U;let z=$.slice(K,H);if(G===void 0)G4(V,z,J);else{if(W===void 0)G4(J,z,!0);else if(Q)G4(J,W,z.replace(/\\/g,""));else G4(J,W,z);G4(V,G,J)}return V}function x11($){return Object.keys($).map((V)=>{let J=$[V];if(!Array.isArray(J))J=[J];return J.map((Q)=>{return[V].concat(Object.keys(Q).map((X)=>{let Y=Q[X];if(!Array.isArray(Y))Y=[Y];return Y.map((G)=>G===!0?X:`${X}=${G}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}XS.exports={format:x11,parse:h11}});var VX=M1((Og2,jS)=>{var d11=k1("events"),y11=k1("https"),b11=k1("http"),WS=k1("net"),g11=k1("tls"),{randomBytes:l11,createHash:f11}=k1("crypto"),{Duplex:Rg2,Readable:Pg2}=k1("stream"),{URL:mq}=k1("url"),L5=zV(),u11=Cq(),a11=Tq(),{isBlob:i11}=Z3(),{BINARY_TYPES:YS,CLOSE_TIMEOUT:c11,EMPTY_BUFFER:tQ,GUID:n11,kForOnEventAttribute:kq,kListener:o11,kStatusCode:s11,kWebSocket:a0,NOOP:KS}=K8(),{EventTarget:{addEventListener:r11,removeEventListener:t11}}=QS(),{format:e11,parse:$21}=pq(),{toBuffer:V21}=UV(),qS=Symbol("kAborted"),Eq=[8,13],D8=["CONNECTING","OPEN","CLOSING","CLOSED"],J21=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class Q2 extends d11{constructor($,V,J){super();if(this._binaryType=YS[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=tQ,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=Q2.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,$!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,V===void 0)V=[];else if(!Array.isArray(V))if(typeof V==="object"&&V!==null)J=V,V=[];else V=[V];DS(this,$,V,J)}else this._autoPong=J.autoPong,this._closeTimeout=J.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType($){if(!YS.includes($))return;if(this._binaryType=$,this._receiver)this._receiver._binaryType=$}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket($,V,J){let Q=new u11({allowSynchronousEvents:J.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:J.maxPayload,skipUTF8Validation:J.skipUTF8Validation}),X=new a11($,this._extensions,J.generateMask);if(this._receiver=Q,this._sender=X,this._socket=$,Q[a0]=this,X[a0]=this,$[a0]=this,Q.on("conclude",Y21),Q.on("drain",G21),Q.on("error",W21),Q.on("message",K21),Q.on("ping",q21),Q.on("pong",D21),X.onerror=H21,$.setTimeout)$.setTimeout(0);if($.setNoDelay)$.setNoDelay();if(V.length>0)$.unshift(V);$.on("close",US),$.on("data",$X),$.on("end",wS),$.on("error",zS),this._readyState=Q2.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=Q2.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[L5.extensionName])this._extensions[L5.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=Q2.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close($,V){if(this.readyState===Q2.CLOSED)return;if(this.readyState===Q2.CONNECTING){y9(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===Q2.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=Q2.CLOSING,this._sender.close($,V,!this._isServer,(J)=>{if(J)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),ZS(this)}pause(){if(this.readyState===Q2.CONNECTING||this.readyState===Q2.CLOSED)return;this._paused=!0,this._socket.pause()}ping($,V,J){if(this.readyState===Q2.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=V=void 0;else if(typeof V==="function")J=V,V=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==Q2.OPEN){vq(this,$,J);return}if(V===void 0)V=!this._isServer;this._sender.ping($||tQ,V,J)}pong($,V,J){if(this.readyState===Q2.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=V=void 0;else if(typeof V==="function")J=V,V=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==Q2.OPEN){vq(this,$,J);return}if(V===void 0)V=!this._isServer;this._sender.pong($||tQ,V,J)}resume(){if(this.readyState===Q2.CONNECTING||this.readyState===Q2.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send($,V,J){if(this.readyState===Q2.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof V==="function")J=V,V={};if(typeof $==="number")$=$.toString();if(this.readyState!==Q2.OPEN){vq(this,$,J);return}let Q={binary:typeof $!=="string",mask:!this._isServer,compress:!0,fin:!0,...V};if(!this._extensions[L5.extensionName])Q.compress=!1;this._sender.send($||tQ,Q,J)}terminate(){if(this.readyState===Q2.CLOSED)return;if(this.readyState===Q2.CONNECTING){y9(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=Q2.CLOSING,this._socket.destroy()}}Object.defineProperty(Q2,"CONNECTING",{enumerable:!0,value:D8.indexOf("CONNECTING")});Object.defineProperty(Q2.prototype,"CONNECTING",{enumerable:!0,value:D8.indexOf("CONNECTING")});Object.defineProperty(Q2,"OPEN",{enumerable:!0,value:D8.indexOf("OPEN")});Object.defineProperty(Q2.prototype,"OPEN",{enumerable:!0,value:D8.indexOf("OPEN")});Object.defineProperty(Q2,"CLOSING",{enumerable:!0,value:D8.indexOf("CLOSING")});Object.defineProperty(Q2.prototype,"CLOSING",{enumerable:!0,value:D8.indexOf("CLOSING")});Object.defineProperty(Q2,"CLOSED",{enumerable:!0,value:D8.indexOf("CLOSED")});Object.defineProperty(Q2.prototype,"CLOSED",{enumerable:!0,value:D8.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(($)=>{Object.defineProperty(Q2.prototype,$,{enumerable:!0})});["open","error","close","message"].forEach(($)=>{Object.defineProperty(Q2.prototype,`on${$}`,{enumerable:!0,get(){for(let V of this.listeners($))if(V[kq])return V[o11];return null},set(V){for(let J of this.listeners($))if(J[kq]){this.removeListener($,J);break}if(typeof V!=="function")return;this.addEventListener($,V,{[kq]:!0})}})});Q2.prototype.addEventListener=r11;Q2.prototype.removeEventListener=t11;jS.exports=Q2;function DS($,V,J,Q){let X={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:c11,protocolVersion:Eq[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Q,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if($._autoPong=X.autoPong,$._closeTimeout=X.closeTimeout,!Eq.includes(X.protocolVersion))throw RangeError(`Unsupported protocol version: ${X.protocolVersion} (supported versions: ${Eq.join(", ")})`);let Y;if(V instanceof mq)Y=V;else try{Y=new mq(V)}catch(B){throw SyntaxError(`Invalid URL: ${V}`)}if(Y.protocol==="http:")Y.protocol="ws:";else if(Y.protocol==="https:")Y.protocol="wss:";$._url=Y.href;let G=Y.protocol==="wss:",W=Y.protocol==="ws+unix:",K;if(Y.protocol!=="ws:"&&!G&&!W)K=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(W&&!Y.pathname)K="The URL's pathname is empty";else if(Y.hash)K="The URL contains a fragment identifier";if(K){let B=SyntaxError(K);if($._redirects===0)throw B;else{eQ($,B);return}}let D=G?443:80,H=l11(16).toString("base64"),U=G?y11.request:b11.request,z=new Set,M;if(X.createConnection=X.createConnection||(G?X21:Q21),X.defaultPort=X.defaultPort||D,X.port=Y.port||D,X.host=Y.hostname.startsWith("[")?Y.hostname.slice(1,-1):Y.hostname,X.headers={...X.headers,"Sec-WebSocket-Version":X.protocolVersion,"Sec-WebSocket-Key":H,Connection:"Upgrade",Upgrade:"websocket"},X.path=Y.pathname+Y.search,X.timeout=X.handshakeTimeout,X.perMessageDeflate)M=new L5(X.perMessageDeflate!==!0?X.perMessageDeflate:{},!1,X.maxPayload),X.headers["Sec-WebSocket-Extensions"]=e11({[L5.extensionName]:M.offer()});if(J.length){for(let B of J){if(typeof B!=="string"||!J21.test(B)||z.has(B))throw SyntaxError("An invalid or duplicated subprotocol was specified");z.add(B)}X.headers["Sec-WebSocket-Protocol"]=J.join(",")}if(X.origin)if(X.protocolVersion<13)X.headers["Sec-WebSocket-Origin"]=X.origin;else X.headers.Origin=X.origin;if(Y.username||Y.password)X.auth=`${Y.username}:${Y.password}`;if(W){let B=X.path.split(":");X.socketPath=B[0],X.path=B[1]}let L;if(X.followRedirects){if($._redirects===0){$._originalIpc=W,$._originalSecure=G,$._originalHostOrSocketPath=W?X.socketPath:Y.host;let B=Q&&Q.headers;if(Q={...Q,headers:{}},B)for(let[_,T]of Object.entries(B))Q.headers[_.toLowerCase()]=T}else if($.listenerCount("redirect")===0){let B=W?$._originalIpc?X.socketPath===$._originalHostOrSocketPath:!1:$._originalIpc?!1:Y.host===$._originalHostOrSocketPath;if(!B||$._originalSecure&&!G){if(delete X.headers.authorization,delete X.headers.cookie,!B)delete X.headers.host;X.auth=void 0}}if(X.auth&&!Q.headers.authorization)Q.headers.authorization="Basic "+Buffer.from(X.auth).toString("base64");if(L=$._req=U(X),$._redirects)$.emit("redirect",$.url,L)}else L=$._req=U(X);if(X.timeout)L.on("timeout",()=>{y9($,L,"Opening handshake has timed out")});if(L.on("error",(B)=>{if(L===null||L[qS])return;L=$._req=null,eQ($,B)}),L.on("response",(B)=>{let _=B.headers.location,T=B.statusCode;if(_&&X.followRedirects&&T>=300&&T<400){if(++$._redirects>X.maxRedirects){y9($,L,"Maximum redirects exceeded");return}L.abort();let h;try{h=new mq(_,V)}catch(A){let E=SyntaxError(`Invalid URL: ${_}`);eQ($,E);return}DS($,h,J,Q)}else if(!$.emit("unexpected-response",L,B))y9($,L,`Unexpected server response: ${B.statusCode}`)}),L.on("upgrade",(B,_,T)=>{if($.emit("upgrade",B),$.readyState!==Q2.CONNECTING)return;L=$._req=null;let h=B.headers.upgrade;if(h===void 0||h.toLowerCase()!=="websocket"){y9($,_,"Invalid Upgrade header");return}let A=f11("sha1").update(H+n11).digest("base64");if(B.headers["sec-websocket-accept"]!==A){y9($,_,"Invalid Sec-WebSocket-Accept header");return}let E=B.headers["sec-websocket-protocol"],y;if(E!==void 0){if(!z.size)y="Server sent a subprotocol but none was requested";else if(!z.has(E))y="Server sent an invalid subprotocol"}else if(z.size)y="Server sent no subprotocol";if(y){y9($,_,y);return}if(E)$._protocol=E;let l=B.headers["sec-websocket-extensions"];if(l!==void 0){if(!M){y9($,_,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let f;try{f=$21(l)}catch(u){y9($,_,"Invalid Sec-WebSocket-Extensions header");return}let o=Object.keys(f);if(o.length!==1||o[0]!==L5.extensionName){y9($,_,"Server indicated an extension that was not requested");return}try{M.accept(f[L5.extensionName])}catch(u){y9($,_,"Invalid Sec-WebSocket-Extensions header");return}$._extensions[L5.extensionName]=M}$.setSocket(_,T,{allowSynchronousEvents:X.allowSynchronousEvents,generateMask:X.generateMask,maxPayload:X.maxPayload,skipUTF8Validation:X.skipUTF8Validation})}),X.finishRequest)X.finishRequest(L,$);else L.end()}function eQ($,V){$._readyState=Q2.CLOSING,$._errorEmitted=!0,$.emit("error",V),$.emitClose()}function Q21($){return $.path=$.socketPath,WS.connect($)}function X21($){if($.path=void 0,!$.servername&&$.servername!=="")$.servername=WS.isIP($.host)?"":$.host;return g11.connect($)}function y9($,V,J){$._readyState=Q2.CLOSING;let Q=Error(J);if(Error.captureStackTrace(Q,y9),V.setHeader){if(V[qS]=!0,V.abort(),V.socket&&!V.socket.destroyed)V.socket.destroy();process.nextTick(eQ,$,Q)}else V.destroy(Q),V.once("error",$.emit.bind($,"error")),V.once("close",$.emitClose.bind($))}function vq($,V,J){if(V){let Q=i11(V)?V.size:V21(V).length;if($._socket)$._sender._bufferedBytes+=Q;else $._bufferedAmount+=Q}if(J){let Q=Error(`WebSocket is not open: readyState ${$.readyState} (${D8[$.readyState]})`);process.nextTick(J,Q)}}function Y21($,V){let J=this[a0];if(J._closeFrameReceived=!0,J._closeMessage=V,J._closeCode=$,J._socket[a0]===void 0)return;if(J._socket.removeListener("data",$X),process.nextTick(HS,J._socket),$===1005)J.close();else J.close($,V)}function G21(){let $=this[a0];if(!$.isPaused)$._socket.resume()}function W21($){let V=this[a0];if(V._socket[a0]!==void 0)V._socket.removeListener("data",$X),process.nextTick(HS,V._socket),V.close($[s11]);if(!V._errorEmitted)V._errorEmitted=!0,V.emit("error",$)}function GS(){this[a0].emitClose()}function K21($,V){this[a0].emit("message",$,V)}function q21($){let V=this[a0];if(V._autoPong)V.pong($,!this._isServer,KS);V.emit("ping",$)}function D21($){this[a0].emit("pong",$)}function HS($){$.resume()}function H21($){let V=this[a0];if(V.readyState===Q2.CLOSED)return;if(V.readyState===Q2.OPEN)V._readyState=Q2.CLOSING,ZS(V);if(this._socket.end(),!V._errorEmitted)V._errorEmitted=!0,V.emit("error",$)}function ZS($){$._closeTimer=setTimeout($._socket.destroy.bind($._socket),$._closeTimeout)}function US(){let $=this[a0];if(this.removeListener("close",US),this.removeListener("data",$X),this.removeListener("end",wS),$._readyState=Q2.CLOSING,!this._readableState.endEmitted&&!$._closeFrameReceived&&!$._receiver._writableState.errorEmitted&&this._readableState.length!==0){let V=this.read(this._readableState.length);$._receiver.write(V)}if($._receiver.end(),this[a0]=void 0,clearTimeout($._closeTimer),$._receiver._writableState.finished||$._receiver._writableState.errorEmitted)$.emitClose();else $._receiver.on("error",GS),$._receiver.on("finish",GS)}function $X($){if(!this[a0]._receiver.write($))this.pause()}function wS(){let $=this[a0];$._readyState=Q2.CLOSING,$._receiver.end(),this.end()}function zS(){let $=this[a0];if(this.removeListener("error",zS),this.on("error",KS),$)$._readyState=Q2.CLOSING,this.destroy()}});var RS=M1((Bg2,LS)=>{var Fg2=VX(),{Duplex:Z21}=k1("stream");function NS($){$.emit("close")}function U21(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function MS($){if(this.removeListener("error",MS),this.destroy(),this.listenerCount("error")===0)this.emit("error",$)}function w21($,V){let J=!0,Q=new Z21({...V,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return $.on("message",function(Y,G){let W=!G&&Q._readableState.objectMode?Y.toString():Y;if(!Q.push(W))$.pause()}),$.once("error",function(Y){if(Q.destroyed)return;J=!1,Q.destroy(Y)}),$.once("close",function(){if(Q.destroyed)return;Q.push(null)}),Q._destroy=function(X,Y){if($.readyState===$.CLOSED){Y(X),process.nextTick(NS,Q);return}let G=!1;if($.once("error",function(K){G=!0,Y(K)}),$.once("close",function(){if(!G)Y(X);process.nextTick(NS,Q)}),J)$.terminate()},Q._final=function(X){if($.readyState===$.CONNECTING){$.once("open",function(){Q._final(X)});return}if($._socket===null)return;if($._socket._writableState.finished){if(X(),Q._readableState.endEmitted)Q.destroy()}else $._socket.once("finish",function(){X()}),$.close()},Q._read=function(){if($.isPaused)$.resume()},Q._write=function(X,Y,G){if($.readyState===$.CONNECTING){$.once("open",function(){Q._write(X,Y,G)});return}$.send(X,G)},Q.on("end",U21),Q.on("error",MS),Q}LS.exports=w21});var OS=M1((Sg2,PS)=>{var{tokenChars:z21}=Z3();function j21($){let V=new Set,J=-1,Q=-1,X=0;for(X;X<$.length;X++){let G=$.charCodeAt(X);if(Q===-1&&z21[G]===1){if(J===-1)J=X}else if(X!==0&&(G===32||G===9)){if(Q===-1&&J!==-1)Q=X}else if(G===44){if(J===-1)throw SyntaxError(`Unexpected character at index ${X}`);if(Q===-1)Q=X;let W=$.slice(J,Q);if(V.has(W))throw SyntaxError(`The "${W}" subprotocol is duplicated`);V.add(W),J=Q=-1}else throw SyntaxError(`Unexpected character at index ${X}`)}if(J===-1||Q!==-1)throw SyntaxError("Unexpected end of input");let Y=$.slice(J,X);if(V.has(Y))throw SyntaxError(`The "${Y}" subprotocol is duplicated`);return V.add(Y),V}PS.exports={parse:j21}});var CS=M1((Cg2,_S)=>{var N21=k1("events"),JX=k1("http"),{Duplex:_g2}=k1("stream"),{createHash:M21}=k1("crypto"),FS=pq(),Y7=zV(),L21=OS(),R21=VX(),{CLOSE_TIMEOUT:P21,GUID:O21,kWebSocket:F21}=K8(),B21=/^[+/0-9A-Za-z]{22}==$/;class SS extends N21{constructor($,V){super();if($={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:P21,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:R21,...$},$.port==null&&!$.server&&!$.noServer||$.port!=null&&($.server||$.noServer)||$.server&&$.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if($.port!=null)this._server=JX.createServer((J,Q)=>{let X=JX.STATUS_CODES[426];Q.writeHead(426,{"Content-Length":X.length,"Content-Type":"text/plain"}),Q.end(X)}),this._server.listen($.port,$.host,$.backlog,V);else if($.server)this._server=$.server;if(this._server){let J=this.emit.bind(this,"connection");this._removeListeners=S21(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Q,X,Y)=>{this.handleUpgrade(Q,X,Y,J)}})}if($.perMessageDeflate===!0)$.perMessageDeflate={};if($.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=$,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close($){if(this._state===2){if($)this.once("close",()=>{$(Error("The server is not running"))});process.nextTick(LV,this);return}if($)this.once("close",$);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(LV,this);else this._shouldEmitClose=!0;else process.nextTick(LV,this)}else{let V=this._server;this._removeListeners(),this._removeListeners=this._server=null,V.close(()=>{LV(this)})}}shouldHandle($){if(this.options.path){let V=$.url.indexOf("?");if((V!==-1?$.url.slice(0,V):$.url)!==this.options.path)return!1}return!0}handleUpgrade($,V,J,Q){V.on("error",BS);let X=$.headers["sec-websocket-key"],Y=$.headers.upgrade,G=+$.headers["sec-websocket-version"];if($.method!=="GET"){G7(this,$,V,405,"Invalid HTTP method");return}if(Y===void 0||Y.toLowerCase()!=="websocket"){G7(this,$,V,400,"Invalid Upgrade header");return}if(X===void 0||!B21.test(X)){G7(this,$,V,400,"Missing or invalid Sec-WebSocket-Key header");return}if(G!==13&&G!==8){G7(this,$,V,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle($)){RV(V,400);return}let W=$.headers["sec-websocket-protocol"],K=new Set;if(W!==void 0)try{K=L21.parse(W)}catch(U){G7(this,$,V,400,"Invalid Sec-WebSocket-Protocol header");return}let D=$.headers["sec-websocket-extensions"],H={};if(this.options.perMessageDeflate&&D!==void 0){let U=new Y7(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let z=FS.parse(D);if(z[Y7.extensionName])U.accept(z[Y7.extensionName]),H[Y7.extensionName]=U}catch(z){G7(this,$,V,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let U={origin:$.headers[`${G===8?"sec-websocket-origin":"origin"}`],secure:!!($.socket.authorized||$.socket.encrypted),req:$};if(this.options.verifyClient.length===2){this.options.verifyClient(U,(z,M,L,B)=>{if(!z)return RV(V,M||401,L,B);this.completeUpgrade(H,X,K,$,V,J,Q)});return}if(!this.options.verifyClient(U))return RV(V,401)}this.completeUpgrade(H,X,K,$,V,J,Q)}completeUpgrade($,V,J,Q,X,Y,G){if(!X.readable||!X.writable)return X.destroy();if(X[F21])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return RV(X,503);let K=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${M21("sha1").update(V+O21).digest("base64")}`],D=new this.options.WebSocket(null,void 0,this.options);if(J.size){let H=this.options.handleProtocols?this.options.handleProtocols(J,Q):J.values().next().value;if(H)K.push(`Sec-WebSocket-Protocol: ${H}`),D._protocol=H}if($[Y7.extensionName]){let H=$[Y7.extensionName].params,U=FS.format({[Y7.extensionName]:[H]});K.push(`Sec-WebSocket-Extensions: ${U}`),D._extensions=$}if(this.emit("headers",K,Q),X.write(K.concat(`\r
6
+ `).join(`\r
7
+ `)),X.removeListener("error",BS),D.setSocket(X,Y,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(D),D.on("close",()=>{if(this.clients.delete(D),this._shouldEmitClose&&!this.clients.size)process.nextTick(LV,this)});G(D,Q)}}_S.exports=SS;function S21($,V){for(let J of Object.keys(V))$.on(J,V[J]);return function(){for(let Q of Object.keys(V))$.removeListener(Q,V[Q])}}function LV($){$._state=2,$.emit("close")}function BS(){this.destroy()}function RV($,V,J,Q){J=J||JX.STATUS_CODES[V],Q={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(J),...Q},$.once("finish",$.destroy),$.end(`HTTP/1.1 ${V} ${JX.STATUS_CODES[V]}\r
8
+ `+Object.keys(Q).map((X)=>`${X}: ${Q[X]}`).join(`\r
9
+ `)+`\r
10
+ \r
11
+ `+J)}function G7($,V,J,Q,X,Y){if($.listenerCount("wsClientError")){let G=Error(X);Error.captureStackTrace(G,G7),$.emit("wsClientError",G,J,V)}else RV(J,Q,X,Y)}});var TS=M1((Ig2,IS)=>{var H8=VX();H8.createWebSocketStream=RS();H8.Server=CS();H8.Receiver=Cq();H8.Sender=Tq();H8.WebSocket=H8;H8.WebSocketServer=H8.Server;IS.exports=H8});var pS=M1((Tg2,hq)=>{var _21=Object.prototype.hasOwnProperty,F9="~";function PV(){}if(Object.create){if(PV.prototype=Object.create(null),!new PV().__proto__)F9=!1}function C21($,V,J){this.fn=$,this.context=V,this.once=J||!1}function AS($,V,J,Q,X){if(typeof J!=="function")throw TypeError("The listener must be a function");var Y=new C21(J,Q||$,X),G=F9?F9+V:V;if(!$._events[G])$._events[G]=Y,$._eventsCount++;else if(!$._events[G].fn)$._events[G].push(Y);else $._events[G]=[$._events[G],Y];return $}function QX($,V){if(--$._eventsCount===0)$._events=new PV;else delete $._events[V]}function Z9(){this._events=new PV,this._eventsCount=0}Z9.prototype.eventNames=function(){var V=[],J,Q;if(this._eventsCount===0)return V;for(Q in J=this._events)if(_21.call(J,Q))V.push(F9?Q.slice(1):Q);if(Object.getOwnPropertySymbols)return V.concat(Object.getOwnPropertySymbols(J));return V};Z9.prototype.listeners=function(V){var J=F9?F9+V:V,Q=this._events[J];if(!Q)return[];if(Q.fn)return[Q.fn];for(var X=0,Y=Q.length,G=Array(Y);X<Y;X++)G[X]=Q[X].fn;return G};Z9.prototype.listenerCount=function(V){var J=F9?F9+V:V,Q=this._events[J];if(!Q)return 0;if(Q.fn)return 1;return Q.length};Z9.prototype.emit=function(V,J,Q,X,Y,G){var W=F9?F9+V:V;if(!this._events[W])return!1;var K=this._events[W],D=arguments.length,H,U;if(K.fn){if(K.once)this.removeListener(V,K.fn,void 0,!0);switch(D){case 1:return K.fn.call(K.context),!0;case 2:return K.fn.call(K.context,J),!0;case 3:return K.fn.call(K.context,J,Q),!0;case 4:return K.fn.call(K.context,J,Q,X),!0;case 5:return K.fn.call(K.context,J,Q,X,Y),!0;case 6:return K.fn.call(K.context,J,Q,X,Y,G),!0}for(U=1,H=Array(D-1);U<D;U++)H[U-1]=arguments[U];K.fn.apply(K.context,H)}else{var z=K.length,M;for(U=0;U<z;U++){if(K[U].once)this.removeListener(V,K[U].fn,void 0,!0);switch(D){case 1:K[U].fn.call(K[U].context);break;case 2:K[U].fn.call(K[U].context,J);break;case 3:K[U].fn.call(K[U].context,J,Q);break;case 4:K[U].fn.call(K[U].context,J,Q,X);break;default:if(!H)for(M=1,H=Array(D-1);M<D;M++)H[M-1]=arguments[M];K[U].fn.apply(K[U].context,H)}}}return!0};Z9.prototype.on=function(V,J,Q){return AS(this,V,J,Q,!1)};Z9.prototype.once=function(V,J,Q){return AS(this,V,J,Q,!0)};Z9.prototype.removeListener=function(V,J,Q,X){var Y=F9?F9+V:V;if(!this._events[Y])return this;if(!J)return QX(this,Y),this;var G=this._events[Y];if(G.fn){if(G.fn===J&&(!X||G.once)&&(!Q||G.context===Q))QX(this,Y)}else{for(var W=0,K=[],D=G.length;W<D;W++)if(G[W].fn!==J||X&&!G[W].once||Q&&G[W].context!==Q)K.push(G[W]);if(K.length)this._events[Y]=K.length===1?K[0]:K;else QX(this,Y)}return this};Z9.prototype.removeAllListeners=function(V){var J;if(V){if(J=F9?F9+V:V,this._events[J])QX(this,J)}else this._events=new PV,this._eventsCount=0;return this};Z9.prototype.off=Z9.prototype.removeListener;Z9.prototype.addListener=Z9.prototype.on;Z9.prefixed=F9;Z9.EventEmitter=Z9;if(typeof hq<"u")hq.exports=Z9});var xS=M1((v21)=>{var mS=TS(),kS=pS(),I21=k1("url"),T21=yQ();function ES($){return $&&$.__esModule?$:{default:$}}var A21=ES(mS),p21=ES(I21);function vS($,V){return new A21.default($,V)}var xq=class{encode($){return JSON.stringify($)}decode($){return JSON.parse($)}},hS=class extends kS.EventEmitter{address;rpc_id;queue;options;autoconnect;ready;reconnect;reconnect_timer_id;reconnect_interval;max_reconnects;rest_options;current_reconnects;generate_request_id;socket;webSocketFactory;dataPack;constructor($,V="ws://localhost:8080",{autoconnect:J=!0,reconnect:Q=!0,reconnect_interval:X=1000,max_reconnects:Y=5,...G}={},W,K){super();if(this.webSocketFactory=$,this.queue={},this.rpc_id=0,this.address=V,this.autoconnect=J,this.ready=!1,this.reconnect=Q,this.reconnect_timer_id=void 0,this.reconnect_interval=X,this.max_reconnects=Y,this.rest_options=G,this.current_reconnects=0,this.generate_request_id=W||(()=>typeof this.rpc_id==="number"?++this.rpc_id:Number(this.rpc_id)+1),!K)this.dataPack=new xq;else this.dataPack=K;if(this.autoconnect)this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){if(this.socket)return;this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call($,V,J,Q){if(!Q&&typeof J==="object")Q=J,J=null;return new Promise((X,Y)=>{if(!this.ready)return Y(Error("socket not ready"));let G=this.generate_request_id($,V),W={jsonrpc:"2.0",method:$,params:V||void 0,id:G};this.socket.send(this.dataPack.encode(W),Q,(K)=>{if(K)return Y(K);if(this.queue[G]={promise:[X,Y]},J)this.queue[G].timeout=setTimeout(()=>{delete this.queue[G],Y(Error("reply timeout"))},J)})})}async login($){let V=await this.call("rpc.login",$);if(!V)throw Error("authentication failed");return V}async listMethods(){return await this.call("__listMethods")}notify($,V){return new Promise((J,Q)=>{if(!this.ready)return Q(Error("socket not ready"));let X={jsonrpc:"2.0",method:$,params:V};this.socket.send(this.dataPack.encode(X),(Y)=>{if(Y)return Q(Y);J()})})}async subscribe($){if(typeof $==="string")$=[$];let V=await this.call("rpc.on",$);if(typeof $==="string"&&V[$]!=="ok")throw Error("Failed subscribing to an event '"+$+"' with: "+V[$]);return V}async unsubscribe($){if(typeof $==="string")$=[$];let V=await this.call("rpc.off",$);if(typeof $==="string"&&V[$]!=="ok")throw Error("Failed unsubscribing from an event with: "+V);return V}close($,V){if(this.socket)this.socket.close($||1000,V)}setAutoReconnect($){this.reconnect=$}setReconnectInterval($){this.reconnect_interval=$}setMaxReconnects($){this.max_reconnects=$}getCurrentReconnects(){return this.current_reconnects}getMaxReconnects(){return this.max_reconnects}isReconnecting(){return this.reconnect_timer_id!==void 0}willReconnect(){return this.reconnect&&(this.max_reconnects===0||this.current_reconnects<this.max_reconnects)}_connect($,V){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory($,V),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:J})=>{if(J instanceof ArrayBuffer)J=Buffer.from(J).toString();try{J=this.dataPack.decode(J)}catch(Q){return}if(J.notification&&this.listeners(J.notification).length){if(!Object.keys(J.params).length)return this.emit(J.notification);let Q=[J.notification];if(J.params.constructor===Object)Q.push(J.params);else for(let X=0;X<J.params.length;X++)Q.push(J.params[X]);return Promise.resolve().then(()=>{this.emit.apply(this,Q)})}if(!this.queue[J.id]){if(J.method)return Promise.resolve().then(()=>{this.emit(J.method,J?.params)});return}if("error"in J==="result"in J)this.queue[J.id].promise[1](Error('Server response malformed. Response must include either "result" or "error", but not both.'));if(this.queue[J.id].timeout)clearTimeout(this.queue[J.id].timeout);if(J.error)this.queue[J.id].promise[1](J.error);else this.queue[J.id].promise[0](J.result);delete this.queue[J.id]}),this.socket.addEventListener("error",(J)=>this.emit("error",J)),this.socket.addEventListener("close",({code:J,reason:Q})=>{if(this.ready)setTimeout(()=>this.emit("close",J,Q),0);if(this.ready=!1,this.socket=void 0,J===1000)return;if(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0))this.reconnect_timer_id=setTimeout(()=>this._connect($,V),this.reconnect_interval);else if(this.reconnect&&this.max_reconnects>0&&this.current_reconnects>=this.max_reconnects)setTimeout(()=>this.emit("max_reconnects_reached",J,Q),1)})}},m21=class extends kS.EventEmitter{namespaces;dataPack;wss;constructor($,V){super();if(this.namespaces={},!V)this.dataPack=new xq;else this.dataPack=V;this.wss=new mS.WebSocketServer($),this.wss.on("listening",()=>this.emit("listening")),this.wss.on("connection",(J,Q)=>{let X=p21.default.parse(Q.url,!0),Y=X.pathname;if(X.query.socket_id)J._id=X.query.socket_id;else J._id=T21.v1();if(J._authenticated=!1,J.on("error",(G)=>this.emit("socket-error",J,G)),J.on("close",()=>{this.namespaces[Y].clients.delete(J._id);for(let G of Object.keys(this.namespaces[Y].events)){let W=this.namespaces[Y].events[G].sockets.indexOf(J._id);if(W>=0)this.namespaces[Y].events[G].sockets.splice(W,1)}this.emit("disconnection",J)}),!this.namespaces[Y])this._generateNamespace(Y);return this.namespaces[Y].clients.set(J._id,J),this.emit("connection",J,Q),this._handleRPC(J,Y)}),this.wss.on("error",(J)=>this.emit("error",J))}register($,V,J="/"){if(!this.namespaces[J])this._generateNamespace(J);return this.namespaces[J].rpc_methods[$]={fn:V,protected:!1},{protected:()=>this._makeProtectedMethod($,J),public:()=>this._makePublicMethod($,J)}}setAuth($,V="/"){this.register("rpc.login",$,V)}_makeProtectedMethod($,V="/"){this.namespaces[V].rpc_methods[$].protected=!0}_makePublicMethod($,V="/"){this.namespaces[V].rpc_methods[$].protected=!1}_makeProtectedEvent($,V="/"){this.namespaces[V].events[$].protected=!0}_makePublicEvent($,V="/"){this.namespaces[V].events[$].protected=!1}closeNamespace($){let V=this.namespaces[$];if(V){delete V.rpc_methods,delete V.events;for(let J of V.clients.values())J.close();delete this.namespaces[$]}}event($,V="/"){if(!this.namespaces[V])this._generateNamespace(V);else if(this.namespaces[V].events[$]!==void 0)throw Error(`Already registered event ${V}${$}`);return this.namespaces[V].events[$]={sockets:[],protected:!1},this.on($,(...J)=>{if(J.length===1&&J[0]instanceof Object)J=J[0];for(let Q of this.namespaces[V].events[$].sockets){let X=this.namespaces[V].clients.get(Q);if(!X)continue;X.send(this.dataPack.encode({notification:$,params:J}))}}),{protected:()=>this._makeProtectedEvent($,V),public:()=>this._makePublicEvent($,V)}}of($){if(!this.namespaces[$])this._generateNamespace($);let V=this;return{register(J,Q){if(arguments.length!==2)throw Error("must provide exactly two arguments");if(typeof J!=="string")throw Error("name must be a string");if(typeof Q!=="function")throw Error("handler must be a function");return V.register(J,Q,$)},event(J){if(arguments.length!==1)throw Error("must provide exactly one argument");if(typeof J!=="string")throw Error("name must be a string");return V.event(J,$)},get eventList(){return Object.keys(V.namespaces[$].events)},emit(J,...Q){let X=V.namespaces[$].events[J];if(X)for(let Y of X.sockets){let G=V.namespaces[$].clients.get(Y);if(!G)continue;G.send(V.dataPack.encode({notification:J,params:Q}))}},get name(){return $},connected(){return[...V.namespaces[$].clients.keys()].reduce((Q,X)=>({...Q,[X]:V.namespaces[$].clients.get(X)}),{})},clients(){return V.namespaces[$]}}}eventList($="/"){if(!this.namespaces[$])return[];return Object.keys(this.namespaces[$].events)}createError($,V,J){return{code:$,message:V,data:J||null}}close(){return new Promise(($,V)=>{try{this.wss.close(),this.emit("close"),$()}catch(J){V(J)}})}_handleRPC($,V="/"){$.on("message",async(J)=>{let Q={};if(J instanceof ArrayBuffer)Q.binary=!0,J=Buffer.from(J).toString();if($.readyState!==1)return;let X;try{X=this.dataPack.decode(J)}catch(G){return $.send(this.dataPack.encode({jsonrpc:"2.0",error:p9(-32700,G.toString()),id:null}),Q)}if(Array.isArray(X)){if(!X.length)return $.send(this.dataPack.encode({jsonrpc:"2.0",error:p9(-32600,"Invalid array"),id:null}),Q);let G=[];for(let W of X){let K=await this._runMethod(W,$._id,V);if(!K)continue;G.push(K)}if(!G.length)return;return $.send(this.dataPack.encode(G),Q)}let Y=await this._runMethod(X,$._id,V);if(!Y)return;return $.send(this.dataPack.encode(Y),Q)})}async _runMethod($,V,J="/"){if(typeof $!=="object"||$===null)return{jsonrpc:"2.0",error:p9(-32600),id:null};if($.jsonrpc!=="2.0")return{jsonrpc:"2.0",error:p9(-32600,"Invalid JSON RPC version"),id:$.id||null};if(!$.method)return{jsonrpc:"2.0",error:p9(-32602,"Method not specified"),id:$.id||null};if(typeof $.method!=="string")return{jsonrpc:"2.0",error:p9(-32600,"Invalid method name"),id:$.id||null};if($.params&&typeof $.params==="string")return{jsonrpc:"2.0",error:p9(-32600),id:$.id||null};if($.method==="rpc.on"){if(!$.params)return{jsonrpc:"2.0",error:p9(-32000),id:$.id||null};let X={},Y=Object.keys(this.namespaces[J].events);for(let G of $.params){let W=Y.indexOf(G),K=this.namespaces[J];if(W===-1){X[G]="provided event invalid";continue}if(K.events[Y[W]].protected===!0&&K.clients.get(V)._authenticated===!1)return{jsonrpc:"2.0",error:p9(-32606),id:$.id||null};if(K.events[Y[W]].sockets.indexOf(V)>=0){X[G]="socket has already been subscribed to event";continue}K.events[Y[W]].sockets.push(V),X[G]="ok"}return{jsonrpc:"2.0",result:X,id:$.id||null}}else if($.method==="rpc.off"){if(!$.params)return{jsonrpc:"2.0",error:p9(-32000),id:$.id||null};let X={};for(let Y of $.params){if(!this.namespaces[J].events[Y]){X[Y]="provided event invalid";continue}let G=this.namespaces[J].events[Y].sockets.indexOf(V);if(G===-1){X[Y]="not subscribed";continue}this.namespaces[J].events[Y].sockets.splice(G,1),X[Y]="ok"}return{jsonrpc:"2.0",result:X,id:$.id||null}}else if($.method==="rpc.login"){if(!$.params)return{jsonrpc:"2.0",error:p9(-32604),id:$.id||null}}if(!this.namespaces[J].rpc_methods[$.method])return{jsonrpc:"2.0",error:p9(-32601),id:$.id||null};let Q=null;if(this.namespaces[J].rpc_methods[$.method].protected===!0&&this.namespaces[J].clients.get(V)._authenticated===!1)return{jsonrpc:"2.0",error:p9(-32605),id:$.id||null};try{Q=await this.namespaces[J].rpc_methods[$.method].fn($.params,V)}catch(X){if(!$.id)return;if(X instanceof Error)return{jsonrpc:"2.0",error:{code:-32000,message:X.name,data:X.message},id:$.id};return{jsonrpc:"2.0",error:X,id:$.id}}if(!$.id)return;if($.method==="rpc.login"&&Q===!0){let X=this.namespaces[J].clients.get(V);X._authenticated=!0,this.namespaces[J].clients.set(V,X)}return{jsonrpc:"2.0",result:Q,id:$.id}}_generateNamespace($){this.namespaces[$]={rpc_methods:{__listMethods:{fn:()=>Object.keys(this.namespaces[$].rpc_methods),protected:!1}},clients:new Map,events:{}}}},k21=new Map([[-32000,"Event not provided"],[-32600,"Invalid Request"],[-32601,"Method not found"],[-32602,"Invalid params"],[-32603,"Internal error"],[-32604,"Params not found"],[-32605,"Method forbidden"],[-32606,"Event forbidden"],[-32700,"Parse error"]]);function p9($,V){let J={code:$,message:k21.get($)||"Internal Server Error"};if(V)J.data=V;return J}var E21=class extends hS{constructor($="ws://localhost:8080",{autoconnect:V=!0,reconnect:J=!0,reconnect_interval:Q=1000,max_reconnects:X=5,...Y}={},G){super(vS,$,{autoconnect:V,reconnect:J,reconnect_interval:Q,max_reconnects:X,...Y},G)}};v21.Client=E21;v21.CommonClient=hS;v21.DefaultDataPack=xq;v21.Server=m21;v21.WebSocket=vS;v21.createError=p9});var nS=M1((iS)=>{Object.defineProperty(iS,"__esModule",{value:!0});iS.shake256=iS.shake128=iS.keccak_512=iS.keccak_384=iS.keccak_256=iS.keccak_224=iS.sha3_512=iS.sha3_384=iS.sha3_256=iS.sha3_224=iS.Keccak=void 0;iS.keccakP=uS;var FV=BW(),U9=o6(),l21=BigInt(0),OV=BigInt(1),f21=BigInt(2),u21=BigInt(7),a21=BigInt(256),i21=BigInt(113),bS=[],gS=[],lS=[];for(let $=0,V=OV,J=1,Q=0;$<24;$++){[J,Q]=[Q,(2*J+3*Q)%5],bS.push(2*(5*Q+J)),gS.push(($+1)*($+2)/2%64);let X=l21;for(let Y=0;Y<7;Y++)if(V=(V<<OV^(V>>u21)*i21)%a21,V&f21)X^=OV<<(OV<<BigInt(Y))-OV;lS.push(X)}var fS=(0,FV.split)(lS,!0),c21=fS[0],n21=fS[1],dS=($,V,J)=>J>32?(0,FV.rotlBH)($,V,J):(0,FV.rotlSH)($,V,J),yS=($,V,J)=>J>32?(0,FV.rotlBL)($,V,J):(0,FV.rotlSL)($,V,J);function uS($,V=24){let J=new Uint32Array(10);for(let Q=24-V;Q<24;Q++){for(let G=0;G<10;G++)J[G]=$[G]^$[G+10]^$[G+20]^$[G+30]^$[G+40];for(let G=0;G<10;G+=2){let W=(G+8)%10,K=(G+2)%10,D=J[K],H=J[K+1],U=dS(D,H,1)^J[W],z=yS(D,H,1)^J[W+1];for(let M=0;M<50;M+=10)$[G+M]^=U,$[G+M+1]^=z}let X=$[2],Y=$[3];for(let G=0;G<24;G++){let W=gS[G],K=dS(X,Y,W),D=yS(X,Y,W),H=bS[G];X=$[H],Y=$[H+1],$[H]=K,$[H+1]=D}for(let G=0;G<50;G+=10){for(let W=0;W<10;W++)J[W]=$[G+W];for(let W=0;W<10;W++)$[G+W]^=~J[(W+2)%10]&J[(W+4)%10]}$[0]^=c21[Q],$[1]^=n21[Q]}(0,U9.clean)(J)}class BV extends U9.Hash{constructor($,V,J,Q=!1,X=24){super();if(this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=$,this.suffix=V,this.outputLen=J,this.enableXOF=Q,this.rounds=X,(0,U9.anumber)(J),!(0<$&&$<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,U9.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,U9.swap32IfBE)(this.state32),uS(this.state32,this.rounds),(0,U9.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update($){(0,U9.aexists)(this),$=(0,U9.toBytes)($),(0,U9.abytes)($);let{blockLen:V,state:J}=this,Q=$.length;for(let X=0;X<Q;){let Y=Math.min(V-this.pos,Q-X);for(let G=0;G<Y;G++)J[this.pos++]^=$[X++];if(this.pos===V)this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:$,suffix:V,pos:J,blockLen:Q}=this;if($[J]^=V,(V&128)!==0&&J===Q-1)this.keccak();$[Q-1]^=128,this.keccak()}writeInto($){(0,U9.aexists)(this,!1),(0,U9.abytes)($),this.finish();let V=this.state,{blockLen:J}=this;for(let Q=0,X=$.length;Q<X;){if(this.posOut>=J)this.keccak();let Y=Math.min(J-this.posOut,X-Q);$.set(V.subarray(this.posOut,this.posOut+Y),Q),this.posOut+=Y,Q+=Y}return $}xofInto($){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto($)}xof($){return(0,U9.anumber)($),this.xofInto(new Uint8Array($))}digestInto($){if((0,U9.aoutput)($,this),this.finished)throw Error("digest() was already called");return this.writeInto($),this.destroy(),$}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,U9.clean)(this.state)}_cloneInto($){let{blockLen:V,suffix:J,outputLen:Q,rounds:X,enableXOF:Y}=this;return $||($=new BV(V,J,Q,Y,X)),$.state32.set(this.state32),$.pos=this.pos,$.posOut=this.posOut,$.finished=this.finished,$.rounds=X,$.suffix=J,$.outputLen=Q,$.enableXOF=Y,$.destroyed=this.destroyed,$}}iS.Keccak=BV;var R5=($,V,J)=>(0,U9.createHasher)(()=>new BV(V,$,J));iS.sha3_224=(()=>R5(6,144,28))();iS.sha3_256=(()=>R5(6,136,32))();iS.sha3_384=(()=>R5(6,104,48))();iS.sha3_512=(()=>R5(6,72,64))();iS.keccak_224=(()=>R5(1,144,28))();iS.keccak_256=(()=>R5(1,136,32))();iS.keccak_384=(()=>R5(1,104,48))();iS.keccak_512=(()=>R5(1,72,64))();var aS=($,V,J)=>(0,U9.createXOFer)((Q={})=>new BV(V,$,Q.dkLen===void 0?J:Q.dkLen,!0));iS.shake128=(()=>aS(31,168,16))();iS.shake256=(()=>aS(31,136,32))()});var sS=M1((oS)=>{Object.defineProperty(oS,"__esModule",{value:!0});oS.hmac=oS.HMAC=void 0;var W7=o6();class XX extends W7.Hash{constructor($,V){super();this.finished=!1,this.destroyed=!1,(0,W7.ahash)($);let J=(0,W7.toBytes)(V);if(this.iHash=$.create(),typeof this.iHash.update!=="function")throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let Q=this.blockLen,X=new Uint8Array(Q);X.set(J.length>Q?$.create().update(J).digest():J);for(let Y=0;Y<X.length;Y++)X[Y]^=54;this.iHash.update(X),this.oHash=$.create();for(let Y=0;Y<X.length;Y++)X[Y]^=106;this.oHash.update(X),(0,W7.clean)(X)}update($){return(0,W7.aexists)(this),this.iHash.update($),this}digestInto($){(0,W7.aexists)(this),(0,W7.abytes)($,this.outputLen),this.finished=!0,this.iHash.digestInto($),this.oHash.update($),this.oHash.digestInto($),this.destroy()}digest(){let $=new Uint8Array(this.oHash.outputLen);return this.digestInto($),$}_cloneInto($){$||($=Object.create(Object.getPrototypeOf(this),{}));let{oHash:V,iHash:J,finished:Q,destroyed:X,blockLen:Y,outputLen:G}=this;return $=$,$.finished=Q,$.destroyed=X,$.blockLen=Y,$.outputLen=G,$.oHash=V._cloneInto($.oHash),$.iHash=J._cloneInto($.iHash),$}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}oS.HMAC=XX;var G01=($,V,J)=>new XX($,V).update(J).digest();oS.hmac=G01;oS.hmac.create=($,V)=>new XX($,V)});var uq=M1((G_)=>{Object.defineProperty(G_,"__esModule",{value:!0});G_.DER=G_.DERErr=void 0;G_._splitEndoScalar=tS;G_._normFnElement=P5;G_.weierstrassN=fq;G_.SWUFpSqrtRatio=$_;G_.mapToCurveSimpleSWU=D01;G_.ecdh=J_;G_.ecdsa=Q_;G_.weierstrassPoints=H01;G_._legacyHelperEquat=Y_;G_.weierstrass=z01;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var K01=sS(),q01=o6(),x1=e4(),Z8=WQ(),M3=G5(),rS=($,V)=>($+($>=0?V:-V)/W4)/V;function tS($,V,J){let[[Q,X],[Y,G]]=V,W=rS(G*$,J),K=rS(-X*$,J),D=$-W*Q-K*Y,H=-W*X-K*G,U=D<p6,z=H<p6;if(U)D=-D;if(z)H=-H;let M=(0,x1.bitMask)(Math.ceil((0,x1.bitLen)(J)/2))+V9;if(D<p6||D>=M||H<p6||H>=M)throw Error("splitScalar (endomorphism): failed, k="+$);return{k1neg:U,k1:D,k2neg:z,k2:H}}function bq($){if(!["compact","recovered","der"].includes($))throw Error('Signature format must be "compact", "recovered", or "der"');return $}function yq($,V){let J={};for(let Q of Object.keys(V))J[Q]=$[Q]===void 0?V[Q]:$[Q];if((0,x1._abool2)(J.lowS,"lowS"),(0,x1._abool2)(J.prehash,"prehash"),J.format!==void 0)bq(J.format);return J}class lq extends Error{constructor($=""){super($)}}G_.DERErr=lq;G_.DER={Err:lq,_tlv:{encode:($,V)=>{let{Err:J}=G_.DER;if($<0||$>256)throw new J("tlv.encode: wrong tag");if(V.length&1)throw new J("tlv.encode: unpadded data");let Q=V.length/2,X=(0,x1.numberToHexUnpadded)(Q);if(X.length/2&128)throw new J("tlv.encode: long form length too big");let Y=Q>127?(0,x1.numberToHexUnpadded)(X.length/2|128):"";return(0,x1.numberToHexUnpadded)($)+Y+X+V},decode($,V){let{Err:J}=G_.DER,Q=0;if($<0||$>256)throw new J("tlv.encode: wrong tag");if(V.length<2||V[Q++]!==$)throw new J("tlv.decode: wrong tlv");let X=V[Q++],Y=!!(X&128),G=0;if(!Y)G=X;else{let K=X&127;if(!K)throw new J("tlv.decode(long): indefinite length not supported");if(K>4)throw new J("tlv.decode(long): byte length is too big");let D=V.subarray(Q,Q+K);if(D.length!==K)throw new J("tlv.decode: length bytes not complete");if(D[0]===0)throw new J("tlv.decode(long): zero leftmost byte");for(let H of D)G=G<<8|H;if(Q+=K,G<128)throw new J("tlv.decode(long): not minimal encoding")}let W=V.subarray(Q,Q+G);if(W.length!==G)throw new J("tlv.decode: wrong value length");return{v:W,l:V.subarray(Q+G)}}},_int:{encode($){let{Err:V}=G_.DER;if($<p6)throw new V("integer: negative integers are not allowed");let J=(0,x1.numberToHexUnpadded)($);if(Number.parseInt(J[0],16)&8)J="00"+J;if(J.length&1)throw new V("unexpected DER parsing assertion: unpadded hex");return J},decode($){let{Err:V}=G_.DER;if($[0]&128)throw new V("invalid signature integer: negative");if($[0]===0&&!($[1]&128))throw new V("invalid signature integer: unnecessary leading zero");return(0,x1.bytesToNumberBE)($)}},toSig($){let{Err:V,_int:J,_tlv:Q}=G_.DER,X=(0,x1.ensureBytes)("signature",$),{v:Y,l:G}=Q.decode(48,X);if(G.length)throw new V("invalid signature: left bytes after parsing");let{v:W,l:K}=Q.decode(2,Y),{v:D,l:H}=Q.decode(2,K);if(H.length)throw new V("invalid signature: left bytes after parsing");return{r:J.decode(W),s:J.decode(D)}},hexFromSig($){let{_tlv:V,_int:J}=G_.DER,Q=V.encode(2,J.encode($.r)),X=V.encode(2,J.encode($.s)),Y=Q+X;return V.encode(48,Y)}};var p6=BigInt(0),V9=BigInt(1),W4=BigInt(2),N3=BigInt(3),gq=BigInt(4);function P5($,V){let{BYTES:J}=$,Q;if(typeof V==="bigint")Q=V;else{let X=(0,x1.ensureBytes)("private key",V);try{Q=$.fromBytes(X)}catch(Y){throw Error(`invalid private key: expected ui8a of size ${J}, got ${typeof V}`)}}if(!$.isValidNot0(Q))throw Error("invalid private key: out of range [1..N-1]");return Q}function fq($,V={}){let J=(0,Z8._createCurveFields)("weierstrass",$,V),{Fp:Q,Fn:X}=J,Y=J.CURVE,{h:G,n:W}=Y;(0,x1._validateObject)(V,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:K}=V;if(K){if(!Q.is0(Y.a)||typeof K.beta!=="bigint"||!Array.isArray(K.basises))throw Error('invalid endo: expected "beta": bigint and "basises": array')}let D=V_(Q,X);function H(){if(!Q.isOdd)throw Error("compression is not supported: Field does not have .isOdd()")}function U(g,S,q){let{x:Z,y:R}=S.toAffine(),O=Q.toBytes(Z);if((0,x1._abool2)(q,"isCompressed"),q){H();let F=!Q.isOdd(R);return(0,x1.concatBytes)(eS(F),O)}else return(0,x1.concatBytes)(Uint8Array.of(4),O,Q.toBytes(R))}function z(g){(0,x1._abytes2)(g,void 0,"Point");let{publicKey:S,publicKeyUncompressed:q}=D,Z=g.length,R=g[0],O=g.subarray(1);if(Z===S&&(R===2||R===3)){let F=Q.fromBytes(O);if(!Q.isValid(F))throw Error("bad point: is not on curve, wrong x");let m=B(F),x;try{x=Q.sqrt(m)}catch(v){let $1=v instanceof Error?": "+v.message:"";throw Error("bad point: is not on curve, sqrt error"+$1)}H();let p=Q.isOdd(x);if((R&1)===1!==p)x=Q.neg(x);return{x:F,y:x}}else if(Z===q&&R===4){let F=Q.BYTES,m=Q.fromBytes(O.subarray(0,F)),x=Q.fromBytes(O.subarray(F,F*2));if(!_(m,x))throw Error("bad point: is not on curve");return{x:m,y:x}}else throw Error(`bad point: got length ${Z}, expected compressed=${S} or uncompressed=${q}`)}let M=V.toBytes||U,L=V.fromBytes||z;function B(g){let S=Q.sqr(g),q=Q.mul(S,g);return Q.add(Q.add(q,Q.mul(g,Y.a)),Y.b)}function _(g,S){let q=Q.sqr(S),Z=B(g);return Q.eql(q,Z)}if(!_(Y.Gx,Y.Gy))throw Error("bad curve params: generator point");let T=Q.mul(Q.pow(Y.a,N3),gq),h=Q.mul(Q.sqr(Y.b),BigInt(27));if(Q.is0(Q.add(T,h)))throw Error("bad curve params: a or b");function A(g,S,q=!1){if(!Q.isValid(S)||q&&Q.is0(S))throw Error(`bad point coordinate ${g}`);return S}function E(g){if(!(g instanceof u))throw Error("ProjectivePoint expected")}function y(g){if(!K||!K.basises)throw Error("no endo");return tS(g,K.basises,X.ORDER)}let l=(0,x1.memoized)((g,S)=>{let{X:q,Y:Z,Z:R}=g;if(Q.eql(R,Q.ONE))return{x:q,y:Z};let O=g.is0();if(S==null)S=O?Q.ONE:Q.inv(R);let F=Q.mul(q,S),m=Q.mul(Z,S),x=Q.mul(R,S);if(O)return{x:Q.ZERO,y:Q.ZERO};if(!Q.eql(x,Q.ONE))throw Error("invZ was invalid");return{x:F,y:m}}),f=(0,x1.memoized)((g)=>{if(g.is0()){if(V.allowInfinityPoint&&!Q.is0(g.Y))return;throw Error("bad point: ZERO")}let{x:S,y:q}=g.toAffine();if(!Q.isValid(S)||!Q.isValid(q))throw Error("bad point: x or y not field elements");if(!_(S,q))throw Error("bad point: equation left != right");if(!g.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});function o(g,S,q,Z,R){return q=new u(Q.mul(q.X,g),q.Y,q.Z),S=(0,Z8.negateCt)(Z,S),q=(0,Z8.negateCt)(R,q),S.add(q)}class u{constructor(g,S,q){this.X=A("x",g),this.Y=A("y",S,!0),this.Z=A("z",q),Object.freeze(this)}static CURVE(){return Y}static fromAffine(g){let{x:S,y:q}=g||{};if(!g||!Q.isValid(S)||!Q.isValid(q))throw Error("invalid affine point");if(g instanceof u)throw Error("projective point not allowed");if(Q.is0(S)&&Q.is0(q))return u.ZERO;return new u(S,q,Q.ONE)}static fromBytes(g){let S=u.fromAffine(L((0,x1._abytes2)(g,void 0,"point")));return S.assertValidity(),S}static fromHex(g){return u.fromBytes((0,x1.ensureBytes)("pointHex",g))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(g=8,S=!0){if(t.createCache(this,g),!S)this.multiply(N3);return this}assertValidity(){f(this)}hasEvenY(){let{y:g}=this.toAffine();if(!Q.isOdd)throw Error("Field doesn't support isOdd");return!Q.isOdd(g)}equals(g){E(g);let{X:S,Y:q,Z}=this,{X:R,Y:O,Z:F}=g,m=Q.eql(Q.mul(S,F),Q.mul(R,Z)),x=Q.eql(Q.mul(q,F),Q.mul(O,Z));return m&&x}negate(){return new u(this.X,Q.neg(this.Y),this.Z)}double(){let{a:g,b:S}=Y,q=Q.mul(S,N3),{X:Z,Y:R,Z:O}=this,F=Q.ZERO,m=Q.ZERO,x=Q.ZERO,p=Q.mul(Z,Z),N=Q.mul(R,R),v=Q.mul(O,O),$1=Q.mul(Z,R);return $1=Q.add($1,$1),x=Q.mul(Z,O),x=Q.add(x,x),F=Q.mul(g,x),m=Q.mul(q,v),m=Q.add(F,m),F=Q.sub(N,m),m=Q.add(N,m),m=Q.mul(F,m),F=Q.mul($1,F),x=Q.mul(q,x),v=Q.mul(g,v),$1=Q.sub(p,v),$1=Q.mul(g,$1),$1=Q.add($1,x),x=Q.add(p,p),p=Q.add(x,p),p=Q.add(p,v),p=Q.mul(p,$1),m=Q.add(m,p),v=Q.mul(R,O),v=Q.add(v,v),p=Q.mul(v,$1),F=Q.sub(F,p),x=Q.mul(v,N),x=Q.add(x,x),x=Q.add(x,x),new u(F,m,x)}add(g){E(g);let{X:S,Y:q,Z}=this,{X:R,Y:O,Z:F}=g,m=Q.ZERO,x=Q.ZERO,p=Q.ZERO,N=Y.a,v=Q.mul(Y.b,N3),$1=Q.mul(S,R),G1=Q.mul(q,O),H1=Q.mul(Z,F),B1=Q.add(S,q),A1=Q.add(R,O);B1=Q.mul(B1,A1),A1=Q.add($1,G1),B1=Q.sub(B1,A1),A1=Q.add(S,Z);let m1=Q.add(R,F);return A1=Q.mul(A1,m1),m1=Q.add($1,H1),A1=Q.sub(A1,m1),m1=Q.add(q,Z),m=Q.add(O,F),m1=Q.mul(m1,m),m=Q.add(G1,H1),m1=Q.sub(m1,m),p=Q.mul(N,A1),m=Q.mul(v,H1),p=Q.add(m,p),m=Q.sub(G1,p),p=Q.add(G1,p),x=Q.mul(m,p),G1=Q.add($1,$1),G1=Q.add(G1,$1),H1=Q.mul(N,H1),A1=Q.mul(v,A1),G1=Q.add(G1,H1),H1=Q.sub($1,H1),H1=Q.mul(N,H1),A1=Q.add(A1,H1),$1=Q.mul(G1,A1),x=Q.add(x,$1),$1=Q.mul(m1,A1),m=Q.mul(B1,m),m=Q.sub(m,$1),$1=Q.mul(B1,G1),p=Q.mul(m1,p),p=Q.add(p,$1),new u(m,x,p)}subtract(g){return this.add(g.negate())}is0(){return this.equals(u.ZERO)}multiply(g){let{endo:S}=V;if(!X.isValidNot0(g))throw Error("invalid scalar: out of range");let q,Z,R=(O)=>t.cached(this,O,(F)=>(0,Z8.normalizeZ)(u,F));if(S){let{k1neg:O,k1:F,k2neg:m,k2:x}=y(g),{p,f:N}=R(F),{p:v,f:$1}=R(x);Z=N.add($1),q=o(S.beta,p,v,O,m)}else{let{p:O,f:F}=R(g);q=O,Z=F}return(0,Z8.normalizeZ)(u,[q,Z])[0]}multiplyUnsafe(g){let{endo:S}=V,q=this;if(!X.isValid(g))throw Error("invalid scalar: out of range");if(g===p6||q.is0())return u.ZERO;if(g===V9)return q;if(t.hasCache(this))return this.multiply(g);if(S){let{k1neg:Z,k1:R,k2neg:O,k2:F}=y(g),{p1:m,p2:x}=(0,Z8.mulEndoUnsafe)(u,q,R,F);return o(S.beta,m,x,Z,O)}else return t.unsafe(q,g)}multiplyAndAddUnsafe(g,S,q){let Z=this.multiplyUnsafe(S).add(g.multiplyUnsafe(q));return Z.is0()?void 0:Z}toAffine(g){return l(this,g)}isTorsionFree(){let{isTorsionFree:g}=V;if(G===V9)return!0;if(g)return g(u,this);return t.unsafe(this,W).is0()}clearCofactor(){let{clearCofactor:g}=V;if(G===V9)return this;if(g)return g(u,this);return this.multiplyUnsafe(G)}isSmallOrder(){return this.multiplyUnsafe(G).is0()}toBytes(g=!0){return(0,x1._abool2)(g,"isCompressed"),this.assertValidity(),M(u,this,g)}toHex(g=!0){return(0,x1.bytesToHex)(this.toBytes(g))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(g=!0){return this.toBytes(g)}_setWindowSize(g){this.precompute(g)}static normalizeZ(g){return(0,Z8.normalizeZ)(u,g)}static msm(g,S){return(0,Z8.pippenger)(u,X,g,S)}static fromPrivateKey(g){return u.BASE.multiply(P5(X,g))}}u.BASE=new u(Y.Gx,Y.Gy,Q.ONE),u.ZERO=new u(Q.ZERO,Q.ONE,Q.ZERO),u.Fp=Q,u.Fn=X;let i=X.BITS,t=new Z8.wNAF(u,V.endo?Math.ceil(i/2):i);return u.BASE.precompute(8),u}function eS($){return Uint8Array.of($?2:3)}function $_($,V){let J=$.ORDER,Q=p6;for(let L=J-V9;L%W4===p6;L/=W4)Q+=V9;let X=Q,Y=W4<<X-V9-V9,G=Y*W4,W=(J-V9)/G,K=(W-V9)/W4,D=G-V9,H=Y,U=$.pow(V,W),z=$.pow(V,(W+V9)/W4),M=(L,B)=>{let _=U,T=$.pow(B,D),h=$.sqr(T);h=$.mul(h,B);let A=$.mul(L,h);A=$.pow(A,K),A=$.mul(A,T),T=$.mul(A,B),h=$.mul(A,L);let E=$.mul(h,T);A=$.pow(E,H);let y=$.eql(A,$.ONE);T=$.mul(h,z),A=$.mul(E,_),h=$.cmov(T,h,y),E=$.cmov(A,E,y);for(let l=X;l>V9;l--){let f=l-W4;f=W4<<f-V9;let o=$.pow(E,f),u=$.eql(o,$.ONE);T=$.mul(h,_),_=$.mul(_,_),o=$.mul(E,_),h=$.cmov(T,h,u),E=$.cmov(o,E,u)}return{isValid:y,value:h}};if($.ORDER%gq===N3){let L=($.ORDER-N3)/gq,B=$.sqrt($.neg(V));M=(_,T)=>{let h=$.sqr(T),A=$.mul(_,T);h=$.mul(h,A);let E=$.pow(h,L);E=$.mul(E,A);let y=$.mul(E,B),l=$.mul($.sqr(E),T),f=$.eql(l,_),o=$.cmov(y,E,f);return{isValid:f,value:o}}}return M}function D01($,V){(0,M3.validateField)($);let{A:J,B:Q,Z:X}=V;if(!$.isValid(J)||!$.isValid(Q)||!$.isValid(X))throw Error("mapToCurveSimpleSWU: invalid opts");let Y=$_($,X);if(!$.isOdd)throw Error("Field does not have .isOdd()");return(G)=>{let W,K,D,H,U,z,M,L;W=$.sqr(G),W=$.mul(W,X),K=$.sqr(W),K=$.add(K,W),D=$.add(K,$.ONE),D=$.mul(D,Q),H=$.cmov(X,$.neg(K),!$.eql(K,$.ZERO)),H=$.mul(H,J),K=$.sqr(D),z=$.sqr(H),U=$.mul(z,J),K=$.add(K,U),K=$.mul(K,D),z=$.mul(z,H),U=$.mul(z,Q),K=$.add(K,U),M=$.mul(W,D);let{isValid:B,value:_}=Y(K,z);L=$.mul(W,G),L=$.mul(L,_),M=$.cmov(M,D,B),L=$.cmov(L,_,B);let T=$.isOdd(G)===$.isOdd(L);L=$.cmov($.neg(L),L,T);let h=(0,M3.FpInvertBatch)($,[H],!0)[0];return M=$.mul(M,h),{x:M,y:L}}}function V_($,V){return{secretKey:V.BYTES,publicKey:1+$.BYTES,publicKeyUncompressed:1+2*$.BYTES,publicKeyHasPrefix:!0,signature:2*V.BYTES}}function J_($,V={}){let{Fn:J}=$,Q=V.randomBytes||x1.randomBytes,X=Object.assign(V_($.Fp,J),{seed:(0,M3.getMinHashLength)(J.ORDER)});function Y(M){try{return!!P5(J,M)}catch(L){return!1}}function G(M,L){let{publicKey:B,publicKeyUncompressed:_}=X;try{let T=M.length;if(L===!0&&T!==B)return!1;if(L===!1&&T!==_)return!1;return!!$.fromBytes(M)}catch(T){return!1}}function W(M=Q(X.seed)){return(0,M3.mapHashToField)((0,x1._abytes2)(M,X.seed,"seed"),J.ORDER)}function K(M,L=!0){return $.BASE.multiply(P5(J,M)).toBytes(L)}function D(M){let L=W(M);return{secretKey:L,publicKey:K(L)}}function H(M){if(typeof M==="bigint")return!1;if(M instanceof $)return!0;let{secretKey:L,publicKey:B,publicKeyUncompressed:_}=X;if(J.allowedLengths||L===B)return;let T=(0,x1.ensureBytes)("key",M).length;return T===B||T===_}function U(M,L,B=!0){if(H(M)===!0)throw Error("first arg must be private key");if(H(L)===!1)throw Error("second arg must be public key");let _=P5(J,M);return $.fromHex(L).multiply(_).toBytes(B)}return Object.freeze({getPublicKey:K,getSharedSecret:U,keygen:D,Point:$,utils:{isValidSecretKey:Y,isValidPublicKey:G,randomSecretKey:W,isValidPrivateKey:Y,randomPrivateKey:W,normPrivateKeyToScalar:(M)=>P5(J,M),precompute(M=8,L=$.BASE){return L.precompute(M,!1)}},lengths:X})}function Q_($,V,J={}){(0,q01.ahash)(V),(0,x1._validateObject)(J,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let Q=J.randomBytes||x1.randomBytes,X=J.hmac||((q,...Z)=>(0,K01.hmac)(V,q,(0,x1.concatBytes)(...Z))),{Fp:Y,Fn:G}=$,{ORDER:W,BITS:K}=G,{keygen:D,getPublicKey:H,getSharedSecret:U,utils:z,lengths:M}=J_($,J),L={prehash:!1,lowS:typeof J.lowS==="boolean"?J.lowS:!1,format:void 0,extraEntropy:!1},B="compact";function _(q){let Z=W>>V9;return q>Z}function T(q,Z){if(!G.isValidNot0(Z))throw Error(`invalid signature ${q}: out of range 1..Point.Fn.ORDER`);return Z}function h(q,Z){bq(Z);let R=M.signature,O=Z==="compact"?R:Z==="recovered"?R+1:void 0;return(0,x1._abytes2)(q,O,`${Z} signature`)}class A{constructor(q,Z,R){if(this.r=T("r",q),this.s=T("s",Z),R!=null)this.recovery=R;Object.freeze(this)}static fromBytes(q,Z=B){h(q,Z);let R;if(Z==="der"){let{r:x,s:p}=G_.DER.toSig((0,x1._abytes2)(q));return new A(x,p)}if(Z==="recovered")R=q[0],Z="compact",q=q.subarray(1);let O=G.BYTES,F=q.subarray(0,O),m=q.subarray(O,O*2);return new A(G.fromBytes(F),G.fromBytes(m),R)}static fromHex(q,Z){return this.fromBytes((0,x1.hexToBytes)(q),Z)}addRecoveryBit(q){return new A(this.r,this.s,q)}recoverPublicKey(q){let Z=Y.ORDER,{r:R,s:O,recovery:F}=this;if(F==null||![0,1,2,3].includes(F))throw Error("recovery id invalid");if(W*W4<Z&&F>1)throw Error("recovery id is ambiguous for h>1 curve");let x=F===2||F===3?R+W:R;if(!Y.isValid(x))throw Error("recovery id 2 or 3 invalid");let p=Y.toBytes(x),N=$.fromBytes((0,x1.concatBytes)(eS((F&1)===0),p)),v=G.inv(x),$1=y((0,x1.ensureBytes)("msgHash",q)),G1=G.create(-$1*v),H1=G.create(O*v),B1=$.BASE.multiplyUnsafe(G1).add(N.multiplyUnsafe(H1));if(B1.is0())throw Error("point at infinify");return B1.assertValidity(),B1}hasHighS(){return _(this.s)}toBytes(q=B){if(bq(q),q==="der")return(0,x1.hexToBytes)(G_.DER.hexFromSig(this));let Z=G.toBytes(this.r),R=G.toBytes(this.s);if(q==="recovered"){if(this.recovery==null)throw Error("recovery bit must be present");return(0,x1.concatBytes)(Uint8Array.of(this.recovery),Z,R)}return(0,x1.concatBytes)(Z,R)}toHex(q){return(0,x1.bytesToHex)(this.toBytes(q))}assertValidity(){}static fromCompact(q){return A.fromBytes((0,x1.ensureBytes)("sig",q),"compact")}static fromDER(q){return A.fromBytes((0,x1.ensureBytes)("sig",q),"der")}normalizeS(){return this.hasHighS()?new A(this.r,G.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,x1.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,x1.bytesToHex)(this.toBytes("compact"))}}let E=J.bits2int||function(Z){if(Z.length>8192)throw Error("input is too large");let R=(0,x1.bytesToNumberBE)(Z),O=Z.length*8-K;return O>0?R>>BigInt(O):R},y=J.bits2int_modN||function(Z){return G.create(E(Z))},l=(0,x1.bitMask)(K);function f(q){return(0,x1.aInRange)("num < 2^"+K,q,p6,l),G.toBytes(q)}function o(q,Z){return(0,x1._abytes2)(q,void 0,"message"),Z?(0,x1._abytes2)(V(q),void 0,"prehashed message"):q}function u(q,Z,R){if(["recovered","canonical"].some((H1)=>(H1 in R)))throw Error("sign() legacy options not supported");let{lowS:O,prehash:F,extraEntropy:m}=yq(R,L);q=o(q,F);let x=y(q),p=P5(G,Z),N=[f(p),f(x)];if(m!=null&&m!==!1){let H1=m===!0?Q(M.secretKey):m;N.push((0,x1.ensureBytes)("extraEntropy",H1))}let v=(0,x1.concatBytes)(...N),$1=x;function G1(H1){let B1=E(H1);if(!G.isValidNot0(B1))return;let A1=G.inv(B1),m1=$.BASE.multiply(B1).toAffine(),y2=G.create(m1.x);if(y2===p6)return;let V2=G.create(A1*G.create($1+y2*p));if(V2===p6)return;let $2=(m1.x===y2?0:2)|Number(m1.y&V9),T0=V2;if(O&&_(V2))T0=G.neg(V2),$2^=1;return new A(y2,T0,$2)}return{seed:v,k2sig:G1}}function i(q,Z,R={}){q=(0,x1.ensureBytes)("message",q);let{seed:O,k2sig:F}=u(q,Z,R);return(0,x1.createHmacDrbg)(V.outputLen,G.BYTES,X)(O,F)}function t(q){let Z=void 0,R=typeof q==="string"||(0,x1.isBytes)(q),O=!R&&q!==null&&typeof q==="object"&&typeof q.r==="bigint"&&typeof q.s==="bigint";if(!R&&!O)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(O)Z=new A(q.r,q.s);else if(R){try{Z=A.fromBytes((0,x1.ensureBytes)("sig",q),"der")}catch(F){if(!(F instanceof G_.DER.Err))throw F}if(!Z)try{Z=A.fromBytes((0,x1.ensureBytes)("sig",q),"compact")}catch(F){return!1}}if(!Z)return!1;return Z}function g(q,Z,R,O={}){let{lowS:F,prehash:m,format:x}=yq(O,L);if(R=(0,x1.ensureBytes)("publicKey",R),Z=o((0,x1.ensureBytes)("message",Z),m),"strict"in O)throw Error("options.strict was renamed to lowS");let p=x===void 0?t(q):A.fromBytes((0,x1.ensureBytes)("sig",q),x);if(p===!1)return!1;try{let N=$.fromBytes(R);if(F&&p.hasHighS())return!1;let{r:v,s:$1}=p,G1=y(Z),H1=G.inv($1),B1=G.create(G1*H1),A1=G.create(v*H1),m1=$.BASE.multiplyUnsafe(B1).add(N.multiplyUnsafe(A1));if(m1.is0())return!1;return G.create(m1.x)===v}catch(N){return!1}}function S(q,Z,R={}){let{prehash:O}=yq(R,L);return Z=o(Z,O),A.fromBytes(q,"recovered").recoverPublicKey(Z).toBytes()}return Object.freeze({keygen:D,getPublicKey:H,getSharedSecret:U,utils:z,lengths:M,Point:$,sign:i,verify:g,recoverPublicKey:S,Signature:A,hash:V})}function H01($){let{CURVE:V,curveOpts:J}=X_($),Q=fq(V,J);return U01($,Q)}function X_($){let V={a:$.a,b:$.b,p:$.Fp.ORDER,n:$.n,h:$.h,Gx:$.Gx,Gy:$.Gy},J=$.Fp,Q=$.allowedPrivateKeyLengths?Array.from(new Set($.allowedPrivateKeyLengths.map((G)=>Math.ceil(G/2)))):void 0,X=(0,M3.Field)(V.n,{BITS:$.nBitLength,allowedLengths:Q,modFromBytes:$.wrapPrivateKey}),Y={Fp:J,Fn:X,allowInfinityPoint:$.allowInfinityPoint,endo:$.endo,isTorsionFree:$.isTorsionFree,clearCofactor:$.clearCofactor,fromBytes:$.fromBytes,toBytes:$.toBytes};return{CURVE:V,curveOpts:Y}}function Z01($){let{CURVE:V,curveOpts:J}=X_($),Q={hmac:$.hmac,randomBytes:$.randomBytes,lowS:$.lowS,bits2int:$.bits2int,bits2int_modN:$.bits2int_modN};return{CURVE:V,curveOpts:J,hash:$.hash,ecdsaOpts:Q}}function Y_($,V,J){function Q(X){let Y=$.sqr(X),G=$.mul(Y,X);return $.add($.add(G,$.mul(X,V)),J)}return Q}function U01($,V){let{Fp:J,Fn:Q}=V;function X(G){return(0,x1.inRange)(G,V9,Q.ORDER)}let Y=Y_(J,$.a,$.b);return Object.assign({},{CURVE:$,Point:V,ProjectivePoint:V,normPrivateKeyToScalar:(G)=>P5(Q,G),weierstrassEquation:Y,isWithinCurveOrder:X})}function w01($,V){let J=V.Point;return Object.assign({},V,{ProjectivePoint:J,CURVE:Object.assign({},$,(0,M3.nLength)(J.Fn.ORDER,J.Fn.BITS))})}function z01($){let{CURVE:V,curveOpts:J,hash:Q,ecdsaOpts:X}=Z01($),Y=fq(V,J),G=Q_(Y,Q,X);return w01($,G)}});var K_=M1((W_)=>{Object.defineProperty(W_,"__esModule",{value:!0});W_.getHash=I01;W_.createCurve=T01;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var C01=uq();function I01($){return{hash:$}}function T01($,V){let J=(Q)=>(0,C01.weierstrass)({...$,hash:Q});return{...J(V),create:J}}});var R_=M1((M_)=>{Object.defineProperty(M_,"__esModule",{value:!0});M_.encodeToCurve=M_.hashToCurve=M_.secp256k1_hasher=M_.schnorr=M_.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var YX=JQ(),Z_=o6(),m01=K_(),U_=fW(),B9=G5(),w_=uq(),b9=e4(),L3={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},k01={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},E01=BigInt(0),q_=BigInt(1),aq=BigInt(2);function v01($){let V=L3.p,J=BigInt(3),Q=BigInt(6),X=BigInt(11),Y=BigInt(22),G=BigInt(23),W=BigInt(44),K=BigInt(88),D=$*$*$%V,H=D*D*$%V,U=(0,B9.pow2)(H,J,V)*H%V,z=(0,B9.pow2)(U,J,V)*H%V,M=(0,B9.pow2)(z,aq,V)*D%V,L=(0,B9.pow2)(M,X,V)*M%V,B=(0,B9.pow2)(L,Y,V)*L%V,_=(0,B9.pow2)(B,W,V)*B%V,T=(0,B9.pow2)(_,K,V)*_%V,h=(0,B9.pow2)(T,W,V)*B%V,A=(0,B9.pow2)(h,J,V)*H%V,E=(0,B9.pow2)(A,G,V)*L%V,y=(0,B9.pow2)(E,Q,V)*D%V,l=(0,B9.pow2)(y,aq,V);if(!U8.eql(U8.sqr(l),$))throw Error("Cannot find square root");return l}var U8=(0,B9.Field)(L3.p,{sqrt:v01});M_.secp256k1=(0,m01.createCurve)({...L3,Fp:U8,lowS:!0,endo:k01},YX.sha256);var D_={};function GX($,...V){let J=D_[$];if(J===void 0){let Q=(0,YX.sha256)((0,b9.utf8ToBytes)($));J=(0,b9.concatBytes)(Q,Q),D_[$]=J}return(0,YX.sha256)((0,b9.concatBytes)(J,...V))}var cq=($)=>$.toBytes(!0).slice(1),R3=(()=>M_.secp256k1.Point)(),nq=($)=>$%aq===E01;function iq($){let{Fn:V,BASE:J}=R3,Q=(0,w_._normFnElement)(V,$),X=J.multiply(Q);return{scalar:nq(X.y)?Q:V.neg(Q),bytes:cq(X)}}function z_($){let V=U8;if(!V.isValidNot0($))throw Error("invalid x: Fail if x ≥ p");let J=V.create($*$),Q=V.create(J*$+BigInt(7)),X=V.sqrt(Q);if(!nq(X))X=V.neg(X);let Y=R3.fromAffine({x:$,y:X});return Y.assertValidity(),Y}var SV=b9.bytesToNumberBE;function j_(...$){return R3.Fn.create(SV(GX("BIP0340/challenge",...$)))}function H_($){return iq($).bytes}function h01($,V,J=(0,Z_.randomBytes)(32)){let{Fn:Q}=R3,X=(0,b9.ensureBytes)("message",$),{bytes:Y,scalar:G}=iq(V),W=(0,b9.ensureBytes)("auxRand",J,32),K=Q.toBytes(G^SV(GX("BIP0340/aux",W))),D=GX("BIP0340/nonce",K,Y,X),{bytes:H,scalar:U}=iq(D),z=j_(H,Y,X),M=new Uint8Array(64);if(M.set(H,0),M.set(Q.toBytes(Q.create(U+z*G)),32),!N_(M,X,Y))throw Error("sign: Invalid signature produced");return M}function N_($,V,J){let{Fn:Q,BASE:X}=R3,Y=(0,b9.ensureBytes)("signature",$,64),G=(0,b9.ensureBytes)("message",V),W=(0,b9.ensureBytes)("publicKey",J,32);try{let K=z_(SV(W)),D=SV(Y.subarray(0,32));if(!(0,b9.inRange)(D,q_,L3.p))return!1;let H=SV(Y.subarray(32,64));if(!(0,b9.inRange)(H,q_,L3.n))return!1;let U=j_(Q.toBytes(D),cq(K),G),z=X.multiplyUnsafe(H).add(K.multiplyUnsafe(Q.neg(U))),{x:M,y:L}=z.toAffine();if(z.is0()||!nq(L)||M!==D)return!1;return!0}catch(K){return!1}}M_.schnorr=(()=>{let J=(X=(0,Z_.randomBytes)(48))=>{return(0,B9.mapHashToField)(X,L3.n)};M_.secp256k1.utils.randomSecretKey;function Q(X){let Y=J(X);return{secretKey:Y,publicKey:H_(Y)}}return{keygen:Q,getPublicKey:H_,sign:h01,verify:N_,Point:R3,utils:{randomSecretKey:J,randomPrivateKey:J,taggedHash:GX,lift_x:z_,pointToBytes:cq,numberToBytesBE:b9.numberToBytesBE,bytesToNumberBE:b9.bytesToNumberBE,mod:B9.mod},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();var x01=(()=>(0,U_.isogenyMap)(U8,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(($)=>$.map((V)=>BigInt(V)))))(),d01=(()=>(0,w_.mapToCurveSimpleSWU)(U8,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:U8.create(BigInt("-11"))}))();M_.secp256k1_hasher=(()=>(0,U_.createHasher)(M_.secp256k1.Point,($)=>{let{x:V,y:J}=d01(U8.create($[0]));return x01(V,J)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:U8.ORDER,m:1,k:128,expand:"xmd",hash:YX.sha256}))();M_.hashToCurve=(()=>M_.secp256k1_hasher.hashToCurve)();M_.encodeToCurve=(()=>M_.secp256k1_hasher.encodeToCurve)()});var HC=M1((Xf2,MX)=>{(function($){var V=function(P){var I,C=new Float64Array(16);if(P)for(I=0;I<P.length;I++)C[I]=P[I];return C},J=function(){throw Error("no PRNG")},Q=new Uint8Array(16),X=new Uint8Array(32);X[0]=9;var Y=V(),G=V([1]),W=V([56129,1]),K=V([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),D=V([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),H=V([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),U=V([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),z=V([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function M(P,I,C,w){P[I]=C>>24&255,P[I+1]=C>>16&255,P[I+2]=C>>8&255,P[I+3]=C&255,P[I+4]=w>>24&255,P[I+5]=w>>16&255,P[I+6]=w>>8&255,P[I+7]=w&255}function L(P,I,C,w,k){var c,r=0;for(c=0;c<k;c++)r|=P[I+c]^C[w+c];return(1&r-1>>>8)-1}function B(P,I,C,w){return L(P,I,C,w,16)}function _(P,I,C,w){return L(P,I,C,w,32)}function T(P,I,C,w){var k=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,c=C[0]&255|(C[1]&255)<<8|(C[2]&255)<<16|(C[3]&255)<<24,r=C[4]&255|(C[5]&255)<<8|(C[6]&255)<<16|(C[7]&255)<<24,Q1=C[8]&255|(C[9]&255)<<8|(C[10]&255)<<16|(C[11]&255)<<24,W1=C[12]&255|(C[13]&255)<<8|(C[14]&255)<<16|(C[15]&255)<<24,p1=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,j1=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,y1=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,S1=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,f1=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,a1=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,t1=C[16]&255|(C[17]&255)<<8|(C[18]&255)<<16|(C[19]&255)<<24,r1=C[20]&255|(C[21]&255)<<8|(C[22]&255)<<16|(C[23]&255)<<24,i1=C[24]&255|(C[25]&255)<<8|(C[26]&255)<<16|(C[27]&255)<<24,n1=C[28]&255|(C[29]&255)<<8|(C[30]&255)<<16|(C[31]&255)<<24,c1=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,C1=k,E1=c,O1=r,I1=Q1,T1=W1,R1=p1,V1=j1,J1=y1,q1=S1,X1=f1,Y1=a1,z1=t1,g1=r1,W2=i1,H2=n1,K2=c1,b;for(var w2=0;w2<20;w2+=2)b=C1+g1|0,T1^=b<<7|b>>>25,b=T1+C1|0,q1^=b<<9|b>>>23,b=q1+T1|0,g1^=b<<13|b>>>19,b=g1+q1|0,C1^=b<<18|b>>>14,b=R1+E1|0,X1^=b<<7|b>>>25,b=X1+R1|0,W2^=b<<9|b>>>23,b=W2+X1|0,E1^=b<<13|b>>>19,b=E1+W2|0,R1^=b<<18|b>>>14,b=Y1+V1|0,H2^=b<<7|b>>>25,b=H2+Y1|0,O1^=b<<9|b>>>23,b=O1+H2|0,V1^=b<<13|b>>>19,b=V1+O1|0,Y1^=b<<18|b>>>14,b=K2+z1|0,I1^=b<<7|b>>>25,b=I1+K2|0,J1^=b<<9|b>>>23,b=J1+I1|0,z1^=b<<13|b>>>19,b=z1+J1|0,K2^=b<<18|b>>>14,b=C1+I1|0,E1^=b<<7|b>>>25,b=E1+C1|0,O1^=b<<9|b>>>23,b=O1+E1|0,I1^=b<<13|b>>>19,b=I1+O1|0,C1^=b<<18|b>>>14,b=R1+T1|0,V1^=b<<7|b>>>25,b=V1+R1|0,J1^=b<<9|b>>>23,b=J1+V1|0,T1^=b<<13|b>>>19,b=T1+J1|0,R1^=b<<18|b>>>14,b=Y1+X1|0,z1^=b<<7|b>>>25,b=z1+Y1|0,q1^=b<<9|b>>>23,b=q1+z1|0,X1^=b<<13|b>>>19,b=X1+q1|0,Y1^=b<<18|b>>>14,b=K2+H2|0,g1^=b<<7|b>>>25,b=g1+K2|0,W2^=b<<9|b>>>23,b=W2+g1|0,H2^=b<<13|b>>>19,b=H2+W2|0,K2^=b<<18|b>>>14;C1=C1+k|0,E1=E1+c|0,O1=O1+r|0,I1=I1+Q1|0,T1=T1+W1|0,R1=R1+p1|0,V1=V1+j1|0,J1=J1+y1|0,q1=q1+S1|0,X1=X1+f1|0,Y1=Y1+a1|0,z1=z1+t1|0,g1=g1+r1|0,W2=W2+i1|0,H2=H2+n1|0,K2=K2+c1|0,P[0]=C1>>>0&255,P[1]=C1>>>8&255,P[2]=C1>>>16&255,P[3]=C1>>>24&255,P[4]=E1>>>0&255,P[5]=E1>>>8&255,P[6]=E1>>>16&255,P[7]=E1>>>24&255,P[8]=O1>>>0&255,P[9]=O1>>>8&255,P[10]=O1>>>16&255,P[11]=O1>>>24&255,P[12]=I1>>>0&255,P[13]=I1>>>8&255,P[14]=I1>>>16&255,P[15]=I1>>>24&255,P[16]=T1>>>0&255,P[17]=T1>>>8&255,P[18]=T1>>>16&255,P[19]=T1>>>24&255,P[20]=R1>>>0&255,P[21]=R1>>>8&255,P[22]=R1>>>16&255,P[23]=R1>>>24&255,P[24]=V1>>>0&255,P[25]=V1>>>8&255,P[26]=V1>>>16&255,P[27]=V1>>>24&255,P[28]=J1>>>0&255,P[29]=J1>>>8&255,P[30]=J1>>>16&255,P[31]=J1>>>24&255,P[32]=q1>>>0&255,P[33]=q1>>>8&255,P[34]=q1>>>16&255,P[35]=q1>>>24&255,P[36]=X1>>>0&255,P[37]=X1>>>8&255,P[38]=X1>>>16&255,P[39]=X1>>>24&255,P[40]=Y1>>>0&255,P[41]=Y1>>>8&255,P[42]=Y1>>>16&255,P[43]=Y1>>>24&255,P[44]=z1>>>0&255,P[45]=z1>>>8&255,P[46]=z1>>>16&255,P[47]=z1>>>24&255,P[48]=g1>>>0&255,P[49]=g1>>>8&255,P[50]=g1>>>16&255,P[51]=g1>>>24&255,P[52]=W2>>>0&255,P[53]=W2>>>8&255,P[54]=W2>>>16&255,P[55]=W2>>>24&255,P[56]=H2>>>0&255,P[57]=H2>>>8&255,P[58]=H2>>>16&255,P[59]=H2>>>24&255,P[60]=K2>>>0&255,P[61]=K2>>>8&255,P[62]=K2>>>16&255,P[63]=K2>>>24&255}function h(P,I,C,w){var k=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,c=C[0]&255|(C[1]&255)<<8|(C[2]&255)<<16|(C[3]&255)<<24,r=C[4]&255|(C[5]&255)<<8|(C[6]&255)<<16|(C[7]&255)<<24,Q1=C[8]&255|(C[9]&255)<<8|(C[10]&255)<<16|(C[11]&255)<<24,W1=C[12]&255|(C[13]&255)<<8|(C[14]&255)<<16|(C[15]&255)<<24,p1=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,j1=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,y1=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,S1=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,f1=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,a1=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,t1=C[16]&255|(C[17]&255)<<8|(C[18]&255)<<16|(C[19]&255)<<24,r1=C[20]&255|(C[21]&255)<<8|(C[22]&255)<<16|(C[23]&255)<<24,i1=C[24]&255|(C[25]&255)<<8|(C[26]&255)<<16|(C[27]&255)<<24,n1=C[28]&255|(C[29]&255)<<8|(C[30]&255)<<16|(C[31]&255)<<24,c1=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,C1=k,E1=c,O1=r,I1=Q1,T1=W1,R1=p1,V1=j1,J1=y1,q1=S1,X1=f1,Y1=a1,z1=t1,g1=r1,W2=i1,H2=n1,K2=c1,b;for(var w2=0;w2<20;w2+=2)b=C1+g1|0,T1^=b<<7|b>>>25,b=T1+C1|0,q1^=b<<9|b>>>23,b=q1+T1|0,g1^=b<<13|b>>>19,b=g1+q1|0,C1^=b<<18|b>>>14,b=R1+E1|0,X1^=b<<7|b>>>25,b=X1+R1|0,W2^=b<<9|b>>>23,b=W2+X1|0,E1^=b<<13|b>>>19,b=E1+W2|0,R1^=b<<18|b>>>14,b=Y1+V1|0,H2^=b<<7|b>>>25,b=H2+Y1|0,O1^=b<<9|b>>>23,b=O1+H2|0,V1^=b<<13|b>>>19,b=V1+O1|0,Y1^=b<<18|b>>>14,b=K2+z1|0,I1^=b<<7|b>>>25,b=I1+K2|0,J1^=b<<9|b>>>23,b=J1+I1|0,z1^=b<<13|b>>>19,b=z1+J1|0,K2^=b<<18|b>>>14,b=C1+I1|0,E1^=b<<7|b>>>25,b=E1+C1|0,O1^=b<<9|b>>>23,b=O1+E1|0,I1^=b<<13|b>>>19,b=I1+O1|0,C1^=b<<18|b>>>14,b=R1+T1|0,V1^=b<<7|b>>>25,b=V1+R1|0,J1^=b<<9|b>>>23,b=J1+V1|0,T1^=b<<13|b>>>19,b=T1+J1|0,R1^=b<<18|b>>>14,b=Y1+X1|0,z1^=b<<7|b>>>25,b=z1+Y1|0,q1^=b<<9|b>>>23,b=q1+z1|0,X1^=b<<13|b>>>19,b=X1+q1|0,Y1^=b<<18|b>>>14,b=K2+H2|0,g1^=b<<7|b>>>25,b=g1+K2|0,W2^=b<<9|b>>>23,b=W2+g1|0,H2^=b<<13|b>>>19,b=H2+W2|0,K2^=b<<18|b>>>14;P[0]=C1>>>0&255,P[1]=C1>>>8&255,P[2]=C1>>>16&255,P[3]=C1>>>24&255,P[4]=R1>>>0&255,P[5]=R1>>>8&255,P[6]=R1>>>16&255,P[7]=R1>>>24&255,P[8]=Y1>>>0&255,P[9]=Y1>>>8&255,P[10]=Y1>>>16&255,P[11]=Y1>>>24&255,P[12]=K2>>>0&255,P[13]=K2>>>8&255,P[14]=K2>>>16&255,P[15]=K2>>>24&255,P[16]=V1>>>0&255,P[17]=V1>>>8&255,P[18]=V1>>>16&255,P[19]=V1>>>24&255,P[20]=J1>>>0&255,P[21]=J1>>>8&255,P[22]=J1>>>16&255,P[23]=J1>>>24&255,P[24]=q1>>>0&255,P[25]=q1>>>8&255,P[26]=q1>>>16&255,P[27]=q1>>>24&255,P[28]=X1>>>0&255,P[29]=X1>>>8&255,P[30]=X1>>>16&255,P[31]=X1>>>24&255}function A(P,I,C,w){T(P,I,C,w)}function E(P,I,C,w){h(P,I,C,w)}var y=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function l(P,I,C,w,k,c,r){var Q1=new Uint8Array(16),W1=new Uint8Array(64),p1,j1;for(j1=0;j1<16;j1++)Q1[j1]=0;for(j1=0;j1<8;j1++)Q1[j1]=c[j1];while(k>=64){A(W1,Q1,r,y);for(j1=0;j1<64;j1++)P[I+j1]=C[w+j1]^W1[j1];p1=1;for(j1=8;j1<16;j1++)p1=p1+(Q1[j1]&255)|0,Q1[j1]=p1&255,p1>>>=8;k-=64,I+=64,w+=64}if(k>0){A(W1,Q1,r,y);for(j1=0;j1<k;j1++)P[I+j1]=C[w+j1]^W1[j1]}return 0}function f(P,I,C,w,k){var c=new Uint8Array(16),r=new Uint8Array(64),Q1,W1;for(W1=0;W1<16;W1++)c[W1]=0;for(W1=0;W1<8;W1++)c[W1]=w[W1];while(C>=64){A(r,c,k,y);for(W1=0;W1<64;W1++)P[I+W1]=r[W1];Q1=1;for(W1=8;W1<16;W1++)Q1=Q1+(c[W1]&255)|0,c[W1]=Q1&255,Q1>>>=8;C-=64,I+=64}if(C>0){A(r,c,k,y);for(W1=0;W1<C;W1++)P[I+W1]=r[W1]}return 0}function o(P,I,C,w,k){var c=new Uint8Array(32);E(c,w,k,y);var r=new Uint8Array(8);for(var Q1=0;Q1<8;Q1++)r[Q1]=w[Q1+16];return f(P,I,C,r,c)}function u(P,I,C,w,k,c,r){var Q1=new Uint8Array(32);E(Q1,c,r,y);var W1=new Uint8Array(8);for(var p1=0;p1<8;p1++)W1[p1]=c[p1+16];return l(P,I,C,w,k,W1,Q1)}var i=function(P){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var I,C,w,k,c,r,Q1,W1;I=P[0]&255|(P[1]&255)<<8,this.r[0]=I&8191,C=P[2]&255|(P[3]&255)<<8,this.r[1]=(I>>>13|C<<3)&8191,w=P[4]&255|(P[5]&255)<<8,this.r[2]=(C>>>10|w<<6)&7939,k=P[6]&255|(P[7]&255)<<8,this.r[3]=(w>>>7|k<<9)&8191,c=P[8]&255|(P[9]&255)<<8,this.r[4]=(k>>>4|c<<12)&255,this.r[5]=c>>>1&8190,r=P[10]&255|(P[11]&255)<<8,this.r[6]=(c>>>14|r<<2)&8191,Q1=P[12]&255|(P[13]&255)<<8,this.r[7]=(r>>>11|Q1<<5)&8065,W1=P[14]&255|(P[15]&255)<<8,this.r[8]=(Q1>>>8|W1<<8)&8191,this.r[9]=W1>>>5&127,this.pad[0]=P[16]&255|(P[17]&255)<<8,this.pad[1]=P[18]&255|(P[19]&255)<<8,this.pad[2]=P[20]&255|(P[21]&255)<<8,this.pad[3]=P[22]&255|(P[23]&255)<<8,this.pad[4]=P[24]&255|(P[25]&255)<<8,this.pad[5]=P[26]&255|(P[27]&255)<<8,this.pad[6]=P[28]&255|(P[29]&255)<<8,this.pad[7]=P[30]&255|(P[31]&255)<<8};i.prototype.blocks=function(P,I,C){var w=this.fin?0:2048,k,c,r,Q1,W1,p1,j1,y1,S1,f1,a1,t1,r1,i1,n1,c1,C1,E1,O1,I1=this.h[0],T1=this.h[1],R1=this.h[2],V1=this.h[3],J1=this.h[4],q1=this.h[5],X1=this.h[6],Y1=this.h[7],z1=this.h[8],g1=this.h[9],W2=this.r[0],H2=this.r[1],K2=this.r[2],b=this.r[3],w2=this.r[4],T2=this.r[5],A2=this.r[6],Z2=this.r[7],S2=this.r[8],_2=this.r[9];while(C>=16)k=P[I+0]&255|(P[I+1]&255)<<8,I1+=k&8191,c=P[I+2]&255|(P[I+3]&255)<<8,T1+=(k>>>13|c<<3)&8191,r=P[I+4]&255|(P[I+5]&255)<<8,R1+=(c>>>10|r<<6)&8191,Q1=P[I+6]&255|(P[I+7]&255)<<8,V1+=(r>>>7|Q1<<9)&8191,W1=P[I+8]&255|(P[I+9]&255)<<8,J1+=(Q1>>>4|W1<<12)&8191,q1+=W1>>>1&8191,p1=P[I+10]&255|(P[I+11]&255)<<8,X1+=(W1>>>14|p1<<2)&8191,j1=P[I+12]&255|(P[I+13]&255)<<8,Y1+=(p1>>>11|j1<<5)&8191,y1=P[I+14]&255|(P[I+15]&255)<<8,z1+=(j1>>>8|y1<<8)&8191,g1+=y1>>>5|w,S1=0,f1=S1,f1+=I1*W2,f1+=T1*(5*_2),f1+=R1*(5*S2),f1+=V1*(5*Z2),f1+=J1*(5*A2),S1=f1>>>13,f1&=8191,f1+=q1*(5*T2),f1+=X1*(5*w2),f1+=Y1*(5*b),f1+=z1*(5*K2),f1+=g1*(5*H2),S1+=f1>>>13,f1&=8191,a1=S1,a1+=I1*H2,a1+=T1*W2,a1+=R1*(5*_2),a1+=V1*(5*S2),a1+=J1*(5*Z2),S1=a1>>>13,a1&=8191,a1+=q1*(5*A2),a1+=X1*(5*T2),a1+=Y1*(5*w2),a1+=z1*(5*b),a1+=g1*(5*K2),S1+=a1>>>13,a1&=8191,t1=S1,t1+=I1*K2,t1+=T1*H2,t1+=R1*W2,t1+=V1*(5*_2),t1+=J1*(5*S2),S1=t1>>>13,t1&=8191,t1+=q1*(5*Z2),t1+=X1*(5*A2),t1+=Y1*(5*T2),t1+=z1*(5*w2),t1+=g1*(5*b),S1+=t1>>>13,t1&=8191,r1=S1,r1+=I1*b,r1+=T1*K2,r1+=R1*H2,r1+=V1*W2,r1+=J1*(5*_2),S1=r1>>>13,r1&=8191,r1+=q1*(5*S2),r1+=X1*(5*Z2),r1+=Y1*(5*A2),r1+=z1*(5*T2),r1+=g1*(5*w2),S1+=r1>>>13,r1&=8191,i1=S1,i1+=I1*w2,i1+=T1*b,i1+=R1*K2,i1+=V1*H2,i1+=J1*W2,S1=i1>>>13,i1&=8191,i1+=q1*(5*_2),i1+=X1*(5*S2),i1+=Y1*(5*Z2),i1+=z1*(5*A2),i1+=g1*(5*T2),S1+=i1>>>13,i1&=8191,n1=S1,n1+=I1*T2,n1+=T1*w2,n1+=R1*b,n1+=V1*K2,n1+=J1*H2,S1=n1>>>13,n1&=8191,n1+=q1*W2,n1+=X1*(5*_2),n1+=Y1*(5*S2),n1+=z1*(5*Z2),n1+=g1*(5*A2),S1+=n1>>>13,n1&=8191,c1=S1,c1+=I1*A2,c1+=T1*T2,c1+=R1*w2,c1+=V1*b,c1+=J1*K2,S1=c1>>>13,c1&=8191,c1+=q1*H2,c1+=X1*W2,c1+=Y1*(5*_2),c1+=z1*(5*S2),c1+=g1*(5*Z2),S1+=c1>>>13,c1&=8191,C1=S1,C1+=I1*Z2,C1+=T1*A2,C1+=R1*T2,C1+=V1*w2,C1+=J1*b,S1=C1>>>13,C1&=8191,C1+=q1*K2,C1+=X1*H2,C1+=Y1*W2,C1+=z1*(5*_2),C1+=g1*(5*S2),S1+=C1>>>13,C1&=8191,E1=S1,E1+=I1*S2,E1+=T1*Z2,E1+=R1*A2,E1+=V1*T2,E1+=J1*w2,S1=E1>>>13,E1&=8191,E1+=q1*b,E1+=X1*K2,E1+=Y1*H2,E1+=z1*W2,E1+=g1*(5*_2),S1+=E1>>>13,E1&=8191,O1=S1,O1+=I1*_2,O1+=T1*S2,O1+=R1*Z2,O1+=V1*A2,O1+=J1*T2,S1=O1>>>13,O1&=8191,O1+=q1*w2,O1+=X1*b,O1+=Y1*K2,O1+=z1*H2,O1+=g1*W2,S1+=O1>>>13,O1&=8191,S1=(S1<<2)+S1|0,S1=S1+f1|0,f1=S1&8191,S1=S1>>>13,a1+=S1,I1=f1,T1=a1,R1=t1,V1=r1,J1=i1,q1=n1,X1=c1,Y1=C1,z1=E1,g1=O1,I+=16,C-=16;this.h[0]=I1,this.h[1]=T1,this.h[2]=R1,this.h[3]=V1,this.h[4]=J1,this.h[5]=q1,this.h[6]=X1,this.h[7]=Y1,this.h[8]=z1,this.h[9]=g1},i.prototype.finish=function(P,I){var C=new Uint16Array(10),w,k,c,r;if(this.leftover){r=this.leftover,this.buffer[r++]=1;for(;r<16;r++)this.buffer[r]=0;this.fin=1,this.blocks(this.buffer,0,16)}w=this.h[1]>>>13,this.h[1]&=8191;for(r=2;r<10;r++)this.h[r]+=w,w=this.h[r]>>>13,this.h[r]&=8191;this.h[0]+=w*5,w=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=w,w=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=w,C[0]=this.h[0]+5,w=C[0]>>>13,C[0]&=8191;for(r=1;r<10;r++)C[r]=this.h[r]+w,w=C[r]>>>13,C[r]&=8191;C[9]-=8192,k=(w^1)-1;for(r=0;r<10;r++)C[r]&=k;k=~k;for(r=0;r<10;r++)this.h[r]=this.h[r]&k|C[r];this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,c=this.h[0]+this.pad[0],this.h[0]=c&65535;for(r=1;r<8;r++)c=(this.h[r]+this.pad[r]|0)+(c>>>16)|0,this.h[r]=c&65535;P[I+0]=this.h[0]>>>0&255,P[I+1]=this.h[0]>>>8&255,P[I+2]=this.h[1]>>>0&255,P[I+3]=this.h[1]>>>8&255,P[I+4]=this.h[2]>>>0&255,P[I+5]=this.h[2]>>>8&255,P[I+6]=this.h[3]>>>0&255,P[I+7]=this.h[3]>>>8&255,P[I+8]=this.h[4]>>>0&255,P[I+9]=this.h[4]>>>8&255,P[I+10]=this.h[5]>>>0&255,P[I+11]=this.h[5]>>>8&255,P[I+12]=this.h[6]>>>0&255,P[I+13]=this.h[6]>>>8&255,P[I+14]=this.h[7]>>>0&255,P[I+15]=this.h[7]>>>8&255},i.prototype.update=function(P,I,C){var w,k;if(this.leftover){if(k=16-this.leftover,k>C)k=C;for(w=0;w<k;w++)this.buffer[this.leftover+w]=P[I+w];if(C-=k,I+=k,this.leftover+=k,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(C>=16)k=C-C%16,this.blocks(P,I,k),I+=k,C-=k;if(C){for(w=0;w<C;w++)this.buffer[this.leftover+w]=P[I+w];this.leftover+=C}};function t(P,I,C,w,k,c){var r=new i(c);return r.update(C,w,k),r.finish(P,I),0}function g(P,I,C,w,k,c){var r=new Uint8Array(16);return t(r,0,C,w,k,c),B(P,I,r,0)}function S(P,I,C,w,k){var c;if(C<32)return-1;u(P,0,I,0,C,w,k),t(P,16,P,32,C-32,P);for(c=0;c<16;c++)P[c]=0;return 0}function q(P,I,C,w,k){var c,r=new Uint8Array(32);if(C<32)return-1;if(o(r,0,32,w,k),g(I,16,I,32,C-32,r)!==0)return-1;u(P,0,I,0,C,w,k);for(c=0;c<32;c++)P[c]=0;return 0}function Z(P,I){var C;for(C=0;C<16;C++)P[C]=I[C]|0}function R(P){var I,C,w=1;for(I=0;I<16;I++)C=P[I]+w+65535,w=Math.floor(C/65536),P[I]=C-w*65536;P[0]+=w-1+37*(w-1)}function O(P,I,C){var w,k=~(C-1);for(var c=0;c<16;c++)w=k&(P[c]^I[c]),P[c]^=w,I[c]^=w}function F(P,I){var C,w,k,c=V(),r=V();for(C=0;C<16;C++)r[C]=I[C];R(r),R(r),R(r);for(w=0;w<2;w++){c[0]=r[0]-65517;for(C=1;C<15;C++)c[C]=r[C]-65535-(c[C-1]>>16&1),c[C-1]&=65535;c[15]=r[15]-32767-(c[14]>>16&1),k=c[15]>>16&1,c[14]&=65535,O(r,c,1-k)}for(C=0;C<16;C++)P[2*C]=r[C]&255,P[2*C+1]=r[C]>>8}function m(P,I){var C=new Uint8Array(32),w=new Uint8Array(32);return F(C,P),F(w,I),_(C,0,w,0)}function x(P){var I=new Uint8Array(32);return F(I,P),I[0]&1}function p(P,I){var C;for(C=0;C<16;C++)P[C]=I[2*C]+(I[2*C+1]<<8);P[15]&=32767}function N(P,I,C){for(var w=0;w<16;w++)P[w]=I[w]+C[w]}function v(P,I,C){for(var w=0;w<16;w++)P[w]=I[w]-C[w]}function $1(P,I,C){var w,k,c=0,r=0,Q1=0,W1=0,p1=0,j1=0,y1=0,S1=0,f1=0,a1=0,t1=0,r1=0,i1=0,n1=0,c1=0,C1=0,E1=0,O1=0,I1=0,T1=0,R1=0,V1=0,J1=0,q1=0,X1=0,Y1=0,z1=0,g1=0,W2=0,H2=0,K2=0,b=C[0],w2=C[1],T2=C[2],A2=C[3],Z2=C[4],S2=C[5],_2=C[6],S0=C[7],g2=C[8],N0=C[9],M0=C[10],L0=C[11],h0=C[12],G9=C[13],W9=C[14],K9=C[15];w=I[0],c+=w*b,r+=w*w2,Q1+=w*T2,W1+=w*A2,p1+=w*Z2,j1+=w*S2,y1+=w*_2,S1+=w*S0,f1+=w*g2,a1+=w*N0,t1+=w*M0,r1+=w*L0,i1+=w*h0,n1+=w*G9,c1+=w*W9,C1+=w*K9,w=I[1],r+=w*b,Q1+=w*w2,W1+=w*T2,p1+=w*A2,j1+=w*Z2,y1+=w*S2,S1+=w*_2,f1+=w*S0,a1+=w*g2,t1+=w*N0,r1+=w*M0,i1+=w*L0,n1+=w*h0,c1+=w*G9,C1+=w*W9,E1+=w*K9,w=I[2],Q1+=w*b,W1+=w*w2,p1+=w*T2,j1+=w*A2,y1+=w*Z2,S1+=w*S2,f1+=w*_2,a1+=w*S0,t1+=w*g2,r1+=w*N0,i1+=w*M0,n1+=w*L0,c1+=w*h0,C1+=w*G9,E1+=w*W9,O1+=w*K9,w=I[3],W1+=w*b,p1+=w*w2,j1+=w*T2,y1+=w*A2,S1+=w*Z2,f1+=w*S2,a1+=w*_2,t1+=w*S0,r1+=w*g2,i1+=w*N0,n1+=w*M0,c1+=w*L0,C1+=w*h0,E1+=w*G9,O1+=w*W9,I1+=w*K9,w=I[4],p1+=w*b,j1+=w*w2,y1+=w*T2,S1+=w*A2,f1+=w*Z2,a1+=w*S2,t1+=w*_2,r1+=w*S0,i1+=w*g2,n1+=w*N0,c1+=w*M0,C1+=w*L0,E1+=w*h0,O1+=w*G9,I1+=w*W9,T1+=w*K9,w=I[5],j1+=w*b,y1+=w*w2,S1+=w*T2,f1+=w*A2,a1+=w*Z2,t1+=w*S2,r1+=w*_2,i1+=w*S0,n1+=w*g2,c1+=w*N0,C1+=w*M0,E1+=w*L0,O1+=w*h0,I1+=w*G9,T1+=w*W9,R1+=w*K9,w=I[6],y1+=w*b,S1+=w*w2,f1+=w*T2,a1+=w*A2,t1+=w*Z2,r1+=w*S2,i1+=w*_2,n1+=w*S0,c1+=w*g2,C1+=w*N0,E1+=w*M0,O1+=w*L0,I1+=w*h0,T1+=w*G9,R1+=w*W9,V1+=w*K9,w=I[7],S1+=w*b,f1+=w*w2,a1+=w*T2,t1+=w*A2,r1+=w*Z2,i1+=w*S2,n1+=w*_2,c1+=w*S0,C1+=w*g2,E1+=w*N0,O1+=w*M0,I1+=w*L0,T1+=w*h0,R1+=w*G9,V1+=w*W9,J1+=w*K9,w=I[8],f1+=w*b,a1+=w*w2,t1+=w*T2,r1+=w*A2,i1+=w*Z2,n1+=w*S2,c1+=w*_2,C1+=w*S0,E1+=w*g2,O1+=w*N0,I1+=w*M0,T1+=w*L0,R1+=w*h0,V1+=w*G9,J1+=w*W9,q1+=w*K9,w=I[9],a1+=w*b,t1+=w*w2,r1+=w*T2,i1+=w*A2,n1+=w*Z2,c1+=w*S2,C1+=w*_2,E1+=w*S0,O1+=w*g2,I1+=w*N0,T1+=w*M0,R1+=w*L0,V1+=w*h0,J1+=w*G9,q1+=w*W9,X1+=w*K9,w=I[10],t1+=w*b,r1+=w*w2,i1+=w*T2,n1+=w*A2,c1+=w*Z2,C1+=w*S2,E1+=w*_2,O1+=w*S0,I1+=w*g2,T1+=w*N0,R1+=w*M0,V1+=w*L0,J1+=w*h0,q1+=w*G9,X1+=w*W9,Y1+=w*K9,w=I[11],r1+=w*b,i1+=w*w2,n1+=w*T2,c1+=w*A2,C1+=w*Z2,E1+=w*S2,O1+=w*_2,I1+=w*S0,T1+=w*g2,R1+=w*N0,V1+=w*M0,J1+=w*L0,q1+=w*h0,X1+=w*G9,Y1+=w*W9,z1+=w*K9,w=I[12],i1+=w*b,n1+=w*w2,c1+=w*T2,C1+=w*A2,E1+=w*Z2,O1+=w*S2,I1+=w*_2,T1+=w*S0,R1+=w*g2,V1+=w*N0,J1+=w*M0,q1+=w*L0,X1+=w*h0,Y1+=w*G9,z1+=w*W9,g1+=w*K9,w=I[13],n1+=w*b,c1+=w*w2,C1+=w*T2,E1+=w*A2,O1+=w*Z2,I1+=w*S2,T1+=w*_2,R1+=w*S0,V1+=w*g2,J1+=w*N0,q1+=w*M0,X1+=w*L0,Y1+=w*h0,z1+=w*G9,g1+=w*W9,W2+=w*K9,w=I[14],c1+=w*b,C1+=w*w2,E1+=w*T2,O1+=w*A2,I1+=w*Z2,T1+=w*S2,R1+=w*_2,V1+=w*S0,J1+=w*g2,q1+=w*N0,X1+=w*M0,Y1+=w*L0,z1+=w*h0,g1+=w*G9,W2+=w*W9,H2+=w*K9,w=I[15],C1+=w*b,E1+=w*w2,O1+=w*T2,I1+=w*A2,T1+=w*Z2,R1+=w*S2,V1+=w*_2,J1+=w*S0,q1+=w*g2,X1+=w*N0,Y1+=w*M0,z1+=w*L0,g1+=w*h0,W2+=w*G9,H2+=w*W9,K2+=w*K9,c+=38*E1,r+=38*O1,Q1+=38*I1,W1+=38*T1,p1+=38*R1,j1+=38*V1,y1+=38*J1,S1+=38*q1,f1+=38*X1,a1+=38*Y1,t1+=38*z1,r1+=38*g1,i1+=38*W2,n1+=38*H2,c1+=38*K2,k=1,w=c+k+65535,k=Math.floor(w/65536),c=w-k*65536,w=r+k+65535,k=Math.floor(w/65536),r=w-k*65536,w=Q1+k+65535,k=Math.floor(w/65536),Q1=w-k*65536,w=W1+k+65535,k=Math.floor(w/65536),W1=w-k*65536,w=p1+k+65535,k=Math.floor(w/65536),p1=w-k*65536,w=j1+k+65535,k=Math.floor(w/65536),j1=w-k*65536,w=y1+k+65535,k=Math.floor(w/65536),y1=w-k*65536,w=S1+k+65535,k=Math.floor(w/65536),S1=w-k*65536,w=f1+k+65535,k=Math.floor(w/65536),f1=w-k*65536,w=a1+k+65535,k=Math.floor(w/65536),a1=w-k*65536,w=t1+k+65535,k=Math.floor(w/65536),t1=w-k*65536,w=r1+k+65535,k=Math.floor(w/65536),r1=w-k*65536,w=i1+k+65535,k=Math.floor(w/65536),i1=w-k*65536,w=n1+k+65535,k=Math.floor(w/65536),n1=w-k*65536,w=c1+k+65535,k=Math.floor(w/65536),c1=w-k*65536,w=C1+k+65535,k=Math.floor(w/65536),C1=w-k*65536,c+=k-1+37*(k-1),k=1,w=c+k+65535,k=Math.floor(w/65536),c=w-k*65536,w=r+k+65535,k=Math.floor(w/65536),r=w-k*65536,w=Q1+k+65535,k=Math.floor(w/65536),Q1=w-k*65536,w=W1+k+65535,k=Math.floor(w/65536),W1=w-k*65536,w=p1+k+65535,k=Math.floor(w/65536),p1=w-k*65536,w=j1+k+65535,k=Math.floor(w/65536),j1=w-k*65536,w=y1+k+65535,k=Math.floor(w/65536),y1=w-k*65536,w=S1+k+65535,k=Math.floor(w/65536),S1=w-k*65536,w=f1+k+65535,k=Math.floor(w/65536),f1=w-k*65536,w=a1+k+65535,k=Math.floor(w/65536),a1=w-k*65536,w=t1+k+65535,k=Math.floor(w/65536),t1=w-k*65536,w=r1+k+65535,k=Math.floor(w/65536),r1=w-k*65536,w=i1+k+65535,k=Math.floor(w/65536),i1=w-k*65536,w=n1+k+65535,k=Math.floor(w/65536),n1=w-k*65536,w=c1+k+65535,k=Math.floor(w/65536),c1=w-k*65536,w=C1+k+65535,k=Math.floor(w/65536),C1=w-k*65536,c+=k-1+37*(k-1),P[0]=c,P[1]=r,P[2]=Q1,P[3]=W1,P[4]=p1,P[5]=j1,P[6]=y1,P[7]=S1,P[8]=f1,P[9]=a1,P[10]=t1,P[11]=r1,P[12]=i1,P[13]=n1,P[14]=c1,P[15]=C1}function G1(P,I){$1(P,I,I)}function H1(P,I){var C=V(),w;for(w=0;w<16;w++)C[w]=I[w];for(w=253;w>=0;w--)if(G1(C,C),w!==2&&w!==4)$1(C,C,I);for(w=0;w<16;w++)P[w]=C[w]}function B1(P,I){var C=V(),w;for(w=0;w<16;w++)C[w]=I[w];for(w=250;w>=0;w--)if(G1(C,C),w!==1)$1(C,C,I);for(w=0;w<16;w++)P[w]=C[w]}function A1(P,I,C){var w=new Uint8Array(32),k=new Float64Array(80),c,r,Q1=V(),W1=V(),p1=V(),j1=V(),y1=V(),S1=V();for(r=0;r<31;r++)w[r]=I[r];w[31]=I[31]&127|64,w[0]&=248,p(k,C);for(r=0;r<16;r++)W1[r]=k[r],j1[r]=Q1[r]=p1[r]=0;Q1[0]=j1[0]=1;for(r=254;r>=0;--r)c=w[r>>>3]>>>(r&7)&1,O(Q1,W1,c),O(p1,j1,c),N(y1,Q1,p1),v(Q1,Q1,p1),N(p1,W1,j1),v(W1,W1,j1),G1(j1,y1),G1(S1,Q1),$1(Q1,p1,Q1),$1(p1,W1,y1),N(y1,Q1,p1),v(Q1,Q1,p1),G1(W1,Q1),v(p1,j1,S1),$1(Q1,p1,W),N(Q1,Q1,j1),$1(p1,p1,Q1),$1(Q1,j1,S1),$1(j1,W1,k),G1(W1,y1),O(Q1,W1,c),O(p1,j1,c);for(r=0;r<16;r++)k[r+16]=Q1[r],k[r+32]=p1[r],k[r+48]=W1[r],k[r+64]=j1[r];var f1=k.subarray(32),a1=k.subarray(16);return H1(f1,f1),$1(a1,a1,f1),F(P,a1),0}function m1(P,I){return A1(P,I,X)}function y2(P,I){return J(I,32),m1(P,I)}function V2(P,I,C){var w=new Uint8Array(32);return A1(w,C,I),E(P,Q,w,y)}var $2=S,T0=q;function O2(P,I,C,w,k,c){var r=new Uint8Array(32);return V2(r,k,c),$2(P,I,C,w,r)}function R2(P,I,C,w,k,c){var r=new Uint8Array(32);return V2(r,k,c),T0(P,I,C,w,r)}var i6=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q0(P,I,C,w){var k=new Int32Array(16),c=new Int32Array(16),r,Q1,W1,p1,j1,y1,S1,f1,a1,t1,r1,i1,n1,c1,C1,E1,O1,I1,T1,R1,V1,J1,q1,X1,Y1,z1,g1=P[0],W2=P[1],H2=P[2],K2=P[3],b=P[4],w2=P[5],T2=P[6],A2=P[7],Z2=I[0],S2=I[1],_2=I[2],S0=I[3],g2=I[4],N0=I[5],M0=I[6],L0=I[7],h0=0;while(w>=128){for(T1=0;T1<16;T1++)R1=8*T1+h0,k[T1]=C[R1+0]<<24|C[R1+1]<<16|C[R1+2]<<8|C[R1+3],c[T1]=C[R1+4]<<24|C[R1+5]<<16|C[R1+6]<<8|C[R1+7];for(T1=0;T1<80;T1++)if(r=g1,Q1=W2,W1=H2,p1=K2,j1=b,y1=w2,S1=T2,f1=A2,a1=Z2,t1=S2,r1=_2,i1=S0,n1=g2,c1=N0,C1=M0,E1=L0,V1=A2,J1=L0,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=(b>>>14|g2<<18)^(b>>>18|g2<<14)^(g2>>>9|b<<23),J1=(g2>>>14|b<<18)^(g2>>>18|b<<14)^(b>>>9|g2<<23),q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,V1=b&w2^~b&T2,J1=g2&N0^~g2&M0,q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,V1=i6[T1*2],J1=i6[T1*2+1],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,V1=k[T1%16],J1=c[T1%16],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,O1=Y1&65535|z1<<16,I1=q1&65535|X1<<16,V1=O1,J1=I1,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=(g1>>>28|Z2<<4)^(Z2>>>2|g1<<30)^(Z2>>>7|g1<<25),J1=(Z2>>>28|g1<<4)^(g1>>>2|Z2<<30)^(g1>>>7|Z2<<25),q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,V1=g1&W2^g1&H2^W2&H2,J1=Z2&S2^Z2&_2^S2&_2,q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,f1=Y1&65535|z1<<16,E1=q1&65535|X1<<16,V1=p1,J1=i1,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=O1,J1=I1,q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,p1=Y1&65535|z1<<16,i1=q1&65535|X1<<16,W2=r,H2=Q1,K2=W1,b=p1,w2=j1,T2=y1,A2=S1,g1=f1,S2=a1,_2=t1,S0=r1,g2=i1,N0=n1,M0=c1,L0=C1,Z2=E1,T1%16===15)for(R1=0;R1<16;R1++)V1=k[R1],J1=c[R1],q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=k[(R1+9)%16],J1=c[(R1+9)%16],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,O1=k[(R1+1)%16],I1=c[(R1+1)%16],V1=(O1>>>1|I1<<31)^(O1>>>8|I1<<24)^O1>>>7,J1=(I1>>>1|O1<<31)^(I1>>>8|O1<<24)^(I1>>>7|O1<<25),q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,O1=k[(R1+14)%16],I1=c[(R1+14)%16],V1=(O1>>>19|I1<<13)^(I1>>>29|O1<<3)^O1>>>6,J1=(I1>>>19|O1<<13)^(O1>>>29|I1<<3)^(I1>>>6|O1<<26),q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,k[R1]=Y1&65535|z1<<16,c[R1]=q1&65535|X1<<16;V1=g1,J1=Z2,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[0],J1=I[0],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[0]=g1=Y1&65535|z1<<16,I[0]=Z2=q1&65535|X1<<16,V1=W2,J1=S2,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[1],J1=I[1],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[1]=W2=Y1&65535|z1<<16,I[1]=S2=q1&65535|X1<<16,V1=H2,J1=_2,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[2],J1=I[2],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[2]=H2=Y1&65535|z1<<16,I[2]=_2=q1&65535|X1<<16,V1=K2,J1=S0,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[3],J1=I[3],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[3]=K2=Y1&65535|z1<<16,I[3]=S0=q1&65535|X1<<16,V1=b,J1=g2,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[4],J1=I[4],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[4]=b=Y1&65535|z1<<16,I[4]=g2=q1&65535|X1<<16,V1=w2,J1=N0,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[5],J1=I[5],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[5]=w2=Y1&65535|z1<<16,I[5]=N0=q1&65535|X1<<16,V1=T2,J1=M0,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[6],J1=I[6],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[6]=T2=Y1&65535|z1<<16,I[6]=M0=q1&65535|X1<<16,V1=A2,J1=L0,q1=J1&65535,X1=J1>>>16,Y1=V1&65535,z1=V1>>>16,V1=P[7],J1=I[7],q1+=J1&65535,X1+=J1>>>16,Y1+=V1&65535,z1+=V1>>>16,X1+=q1>>>16,Y1+=X1>>>16,z1+=Y1>>>16,P[7]=A2=Y1&65535|z1<<16,I[7]=L0=q1&65535|X1<<16,h0+=128,w-=128}return w}function x2(P,I,C){var w=new Int32Array(8),k=new Int32Array(8),c=new Uint8Array(256),r,Q1=C;w[0]=1779033703,w[1]=3144134277,w[2]=1013904242,w[3]=2773480762,w[4]=1359893119,w[5]=2600822924,w[6]=528734635,w[7]=1541459225,k[0]=4089235720,k[1]=2227873595,k[2]=4271175723,k[3]=1595750129,k[4]=2917565137,k[5]=725511199,k[6]=4215389547,k[7]=327033209,Q0(w,k,I,C),C%=128;for(r=0;r<C;r++)c[r]=I[Q1-C+r];c[C]=128,C=256-128*(C<112?1:0),c[C-9]=0,M(c,C-8,Q1/536870912|0,Q1<<3),Q0(w,k,c,C);for(r=0;r<8;r++)M(P,8*r,w[r],k[r]);return 0}function c6(P,I){var C=V(),w=V(),k=V(),c=V(),r=V(),Q1=V(),W1=V(),p1=V(),j1=V();v(C,P[1],P[0]),v(j1,I[1],I[0]),$1(C,C,j1),N(w,P[0],P[1]),N(j1,I[0],I[1]),$1(w,w,j1),$1(k,P[3],I[3]),$1(k,k,D),$1(c,P[2],I[2]),N(c,c,c),v(r,w,C),v(Q1,c,k),N(W1,c,k),N(p1,w,C),$1(P[0],r,Q1),$1(P[1],p1,W1),$1(P[2],W1,Q1),$1(P[3],r,p1)}function X0(P,I,C){var w;for(w=0;w<4;w++)O(P[w],I[w],C)}function s2(P,I){var C=V(),w=V(),k=V();H1(k,I[2]),$1(C,I[0],k),$1(w,I[1],k),F(P,w),P[31]^=x(C)<<7}function V5(P,I,C){var w,k;Z(P[0],Y),Z(P[1],G),Z(P[2],G),Z(P[3],Y);for(k=255;k>=0;--k)w=C[k/8|0]>>(k&7)&1,X0(P,I,w),c6(I,P),c6(P,P),X0(P,I,w)}function c2(P,I){var C=[V(),V(),V(),V()];Z(C[0],H),Z(C[1],U),Z(C[2],G),$1(C[3],H,U),V5(P,C,I)}function r2(P,I,C){var w=new Uint8Array(64),k=[V(),V(),V(),V()],c;if(!C)J(I,32);x2(w,I,32),w[0]&=248,w[31]&=127,w[31]|=64,c2(k,w),s2(P,k);for(c=0;c<32;c++)I[c+32]=P[c];return 0}var R9=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function d(P,I){var C,w,k,c;for(w=63;w>=32;--w){C=0;for(k=w-32,c=w-12;k<c;++k)I[k]+=C-16*I[w]*R9[k-(w-32)],C=Math.floor((I[k]+128)/256),I[k]-=C*256;I[k]+=C,I[w]=0}C=0;for(k=0;k<32;k++)I[k]+=C-(I[31]>>4)*R9[k],C=I[k]>>8,I[k]&=255;for(k=0;k<32;k++)I[k]-=C*R9[k];for(w=0;w<32;w++)I[w+1]+=I[w]>>8,P[w]=I[w]&255}function n(P){var I=new Float64Array(64),C;for(C=0;C<64;C++)I[C]=P[C];for(C=0;C<64;C++)P[C]=0;d(P,I)}function s(P,I,C,w){var k=new Uint8Array(64),c=new Uint8Array(64),r=new Uint8Array(64),Q1,W1,p1=new Float64Array(64),j1=[V(),V(),V(),V()];x2(k,w,32),k[0]&=248,k[31]&=127,k[31]|=64;var y1=C+64;for(Q1=0;Q1<C;Q1++)P[64+Q1]=I[Q1];for(Q1=0;Q1<32;Q1++)P[32+Q1]=k[32+Q1];x2(r,P.subarray(32),C+32),n(r),c2(j1,r),s2(P,j1);for(Q1=32;Q1<64;Q1++)P[Q1]=w[Q1];x2(c,P,C+64),n(c);for(Q1=0;Q1<64;Q1++)p1[Q1]=0;for(Q1=0;Q1<32;Q1++)p1[Q1]=r[Q1];for(Q1=0;Q1<32;Q1++)for(W1=0;W1<32;W1++)p1[Q1+W1]+=c[Q1]*k[W1];return d(P.subarray(32),p1),y1}function e(P,I){var C=V(),w=V(),k=V(),c=V(),r=V(),Q1=V(),W1=V();if(Z(P[2],G),p(P[1],I),G1(k,P[1]),$1(c,k,K),v(k,k,P[2]),N(c,P[2],c),G1(r,c),G1(Q1,r),$1(W1,Q1,r),$1(C,W1,k),$1(C,C,c),B1(C,C),$1(C,C,k),$1(C,C,c),$1(C,C,c),$1(P[0],C,c),G1(w,P[0]),$1(w,w,c),m(w,k))$1(P[0],P[0],z);if(G1(w,P[0]),$1(w,w,c),m(w,k))return-1;if(x(P[0])===I[31]>>7)v(P[0],Y,P[0]);return $1(P[3],P[0],P[1]),0}function w1(P,I,C,w){var k,c=new Uint8Array(32),r=new Uint8Array(64),Q1=[V(),V(),V(),V()],W1=[V(),V(),V(),V()];if(C<64)return-1;if(e(W1,w))return-1;for(k=0;k<C;k++)P[k]=I[k];for(k=0;k<32;k++)P[k+32]=w[k];if(x2(r,P,C),n(r),V5(Q1,W1,r),c2(W1,I.subarray(32)),c6(Q1,W1),s2(c,Q1),C-=64,_(I,0,c,0)){for(k=0;k<C;k++)P[k]=0;return-1}for(k=0;k<C;k++)P[k]=I[k+64];return C}var b1=32,h1=24,d1=32,t2=16,J2=32,F2=32,n6=32,l2=32,b2=32,i$=h1,z0=d1,j0=t2,Q6=64,f2=32,n2=64,n7=32,W0=64;$.lowlevel={crypto_core_hsalsa20:E,crypto_stream_xor:u,crypto_stream:o,crypto_stream_salsa20_xor:l,crypto_stream_salsa20:f,crypto_onetimeauth:t,crypto_onetimeauth_verify:g,crypto_verify_16:B,crypto_verify_32:_,crypto_secretbox:S,crypto_secretbox_open:q,crypto_scalarmult:A1,crypto_scalarmult_base:m1,crypto_box_beforenm:V2,crypto_box_afternm:$2,crypto_box:O2,crypto_box_open:R2,crypto_box_keypair:y2,crypto_hash:x2,crypto_sign:s,crypto_sign_keypair:r2,crypto_sign_open:w1,crypto_secretbox_KEYBYTES:b1,crypto_secretbox_NONCEBYTES:h1,crypto_secretbox_ZEROBYTES:d1,crypto_secretbox_BOXZEROBYTES:t2,crypto_scalarmult_BYTES:J2,crypto_scalarmult_SCALARBYTES:F2,crypto_box_PUBLICKEYBYTES:n6,crypto_box_SECRETKEYBYTES:l2,crypto_box_BEFORENMBYTES:b2,crypto_box_NONCEBYTES:i$,crypto_box_ZEROBYTES:z0,crypto_box_BOXZEROBYTES:j0,crypto_sign_BYTES:Q6,crypto_sign_PUBLICKEYBYTES:f2,crypto_sign_SECRETKEYBYTES:n2,crypto_sign_SEEDBYTES:n7,crypto_hash_BYTES:W0,gf:V,D:K,L:R9,pack25519:F,unpack25519:p,M:$1,A:N,S:G1,Z:v,pow2523:B1,add:c6,set25519:Z,modL:d,scalarmult:V5,scalarbase:c2};function q0(P,I){if(P.length!==b1)throw Error("bad key size");if(I.length!==h1)throw Error("bad nonce size")}function tJ(P,I){if(P.length!==n6)throw Error("bad public key size");if(I.length!==l2)throw Error("bad secret key size")}function B2(){for(var P=0;P<arguments.length;P++)if(!(arguments[P]instanceof Uint8Array))throw TypeError("unexpected type, use Uint8Array")}function D0(P){for(var I=0;I<P.length;I++)P[I]=0}$.randomBytes=function(P){var I=new Uint8Array(P);return J(I,P),I},$.secretbox=function(P,I,C){B2(P,I,C),q0(C,I);var w=new Uint8Array(d1+P.length),k=new Uint8Array(w.length);for(var c=0;c<P.length;c++)w[c+d1]=P[c];return S(k,w,w.length,I,C),k.subarray(t2)},$.secretbox.open=function(P,I,C){B2(P,I,C),q0(C,I);var w=new Uint8Array(t2+P.length),k=new Uint8Array(w.length);for(var c=0;c<P.length;c++)w[c+t2]=P[c];if(w.length<32)return null;if(q(k,w,w.length,I,C)!==0)return null;return k.subarray(d1)},$.secretbox.keyLength=b1,$.secretbox.nonceLength=h1,$.secretbox.overheadLength=t2,$.scalarMult=function(P,I){if(B2(P,I),P.length!==F2)throw Error("bad n size");if(I.length!==J2)throw Error("bad p size");var C=new Uint8Array(J2);return A1(C,P,I),C},$.scalarMult.base=function(P){if(B2(P),P.length!==F2)throw Error("bad n size");var I=new Uint8Array(J2);return m1(I,P),I},$.scalarMult.scalarLength=F2,$.scalarMult.groupElementLength=J2,$.box=function(P,I,C,w){var k=$.box.before(C,w);return $.secretbox(P,I,k)},$.box.before=function(P,I){B2(P,I),tJ(P,I);var C=new Uint8Array(b2);return V2(C,P,I),C},$.box.after=$.secretbox,$.box.open=function(P,I,C,w){var k=$.box.before(C,w);return $.secretbox.open(P,I,k)},$.box.open.after=$.secretbox.open,$.box.keyPair=function(){var P=new Uint8Array(n6),I=new Uint8Array(l2);return y2(P,I),{publicKey:P,secretKey:I}},$.box.keyPair.fromSecretKey=function(P){if(B2(P),P.length!==l2)throw Error("bad secret key size");var I=new Uint8Array(n6);return m1(I,P),{publicKey:I,secretKey:new Uint8Array(P)}},$.box.publicKeyLength=n6,$.box.secretKeyLength=l2,$.box.sharedKeyLength=b2,$.box.nonceLength=i$,$.box.overheadLength=$.secretbox.overheadLength,$.sign=function(P,I){if(B2(P,I),I.length!==n2)throw Error("bad secret key size");var C=new Uint8Array(Q6+P.length);return s(C,P,P.length,I),C},$.sign.open=function(P,I){if(B2(P,I),I.length!==f2)throw Error("bad public key size");var C=new Uint8Array(P.length),w=w1(C,P,P.length,I);if(w<0)return null;var k=new Uint8Array(w);for(var c=0;c<k.length;c++)k[c]=C[c];return k},$.sign.detached=function(P,I){var C=$.sign(P,I),w=new Uint8Array(Q6);for(var k=0;k<w.length;k++)w[k]=C[k];return w},$.sign.detached.verify=function(P,I,C){if(B2(P,I,C),I.length!==Q6)throw Error("bad signature size");if(C.length!==f2)throw Error("bad public key size");var w=new Uint8Array(Q6+P.length),k=new Uint8Array(Q6+P.length),c;for(c=0;c<Q6;c++)w[c]=I[c];for(c=0;c<P.length;c++)w[c+Q6]=P[c];return w1(k,w,w.length,C)>=0},$.sign.keyPair=function(){var P=new Uint8Array(f2),I=new Uint8Array(n2);return r2(P,I),{publicKey:P,secretKey:I}},$.sign.keyPair.fromSecretKey=function(P){if(B2(P),P.length!==n2)throw Error("bad secret key size");var I=new Uint8Array(f2);for(var C=0;C<I.length;C++)I[C]=P[32+C];return{publicKey:I,secretKey:new Uint8Array(P)}},$.sign.keyPair.fromSeed=function(P){if(B2(P),P.length!==n7)throw Error("bad seed size");var I=new Uint8Array(f2),C=new Uint8Array(n2);for(var w=0;w<32;w++)C[w]=P[w];return r2(I,C,!0),{publicKey:I,secretKey:C}},$.sign.publicKeyLength=f2,$.sign.secretKeyLength=n2,$.sign.seedLength=n7,$.sign.signatureLength=Q6,$.hash=function(P){B2(P);var I=new Uint8Array(W0);return x2(I,P,P.length),I},$.hash.hashLength=W0,$.verify=function(P,I){if(B2(P,I),P.length===0||I.length===0)return!1;if(P.length!==I.length)return!1;return L(P,0,I,0,P.length)===0?!0:!1},$.setPRNG=function(P){J=P},function(){var P=typeof self<"u"?self.crypto||self.msCrypto:null;if(P&&P.getRandomValues){var I=65536;$.setPRNG(function(C,w){var k,c=new Uint8Array(w);for(k=0;k<w;k+=I)P.getRandomValues(c.subarray(k,k+Math.min(w-k,I)));for(k=0;k<w;k++)C[k]=c[k];D0(c)})}else if(P=k1("crypto"),P&&P.randomBytes)$.setPRNG(function(C,w){var k,c=P.randomBytes(w);for(k=0;k<w;k++)C[k]=c[k];D0(c)})}()})(typeof MX<"u"&&Xf2?Xf2:self.nacl=self.nacl||{})});var r8=M1((uX0,vh)=>{var kh=["nodebuffer","arraybuffer","fragments"],Eh=typeof Blob<"u";if(Eh)kh.push("blob");vh.exports={BINARY_TYPES:kh,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:Eh,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var hJ=M1((aX0,cG)=>{var{EMPTY_BUFFER:Gp2}=r8(),Jz=Buffer[Symbol.species];function Wp2($,V){if($.length===0)return Gp2;if($.length===1)return $[0];let J=Buffer.allocUnsafe(V),Q=0;for(let X=0;X<$.length;X++){let Y=$[X];J.set(Y,Q),Q+=Y.length}if(Q<V)return new Jz(J.buffer,J.byteOffset,Q);return J}function hh($,V,J,Q,X){for(let Y=0;Y<X;Y++)J[Q+Y]=$[Y]^V[Y&3]}function xh($,V){for(let J=0;J<$.length;J++)$[J]^=V[J&3]}function Kp2($){if($.length===$.buffer.byteLength)return $.buffer;return $.buffer.slice($.byteOffset,$.byteOffset+$.length)}function Qz($){if(Qz.readOnly=!0,Buffer.isBuffer($))return $;let V;if($ instanceof ArrayBuffer)V=new Jz($);else if(ArrayBuffer.isView($))V=new Jz($.buffer,$.byteOffset,$.byteLength);else V=Buffer.from($),Qz.readOnly=!1;return V}cG.exports={concat:Wp2,mask:hh,toArrayBuffer:Kp2,toBuffer:Qz,unmask:xh};if(!process.env.WS_NO_BUFFER_UTIL)try{let $=CB();cG.exports.mask=function(V,J,Q,X,Y){if(Y<48)hh(V,J,Q,X,Y);else $.mask(V,J,Q,X,Y)},cG.exports.unmask=function(V,J){if(V.length<32)xh(V,J);else $.unmask(V,J)}}catch($){}});var gh=M1((iX0,bh)=>{var dh=Symbol("kDone"),Xz=Symbol("kRun");class yh{constructor($){this[dh]=()=>{this.pending--,this[Xz]()},this.concurrency=$||1/0,this.jobs=[],this.pending=0}add($){this.jobs.push($),this[Xz]()}[Xz](){if(this.pending===this.concurrency)return;if(this.jobs.length){let $=this.jobs.shift();this.pending++,$(this[dh])}}}bh.exports=yh});var dJ=M1((cX0,ih)=>{var xJ=k1("zlib"),lh=hJ(),qp2=gh(),{kStatusCode:fh}=r8(),Dp2=Buffer[Symbol.species],Hp2=Buffer.from([0,0,255,255]),oG=Symbol("permessage-deflate"),t8=Symbol("total-length"),v$=Symbol("callback"),f5=Symbol("buffers"),h$=Symbol("error"),nG;class uh{constructor($,V,J){if(this._maxPayload=J|0,this._options=$||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!V,this._deflate=null,this._inflate=null,this.params=null,!nG){let Q=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;nG=new qp2(Q)}}static get extensionName(){return"permessage-deflate"}offer(){let $={};if(this._options.serverNoContextTakeover)$.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)$.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)$.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)$.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)$.client_max_window_bits=!0;return $}accept($){return $=this.normalizeParams($),this.params=this._isServer?this.acceptAsServer($):this.acceptAsClient($),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let $=this._deflate[v$];if(this._deflate.close(),this._deflate=null,$)$(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer($){let V=this._options,J=$.find((Q)=>{if(V.serverNoContextTakeover===!1&&Q.server_no_context_takeover||Q.server_max_window_bits&&(V.serverMaxWindowBits===!1||typeof V.serverMaxWindowBits==="number"&&V.serverMaxWindowBits>Q.server_max_window_bits)||typeof V.clientMaxWindowBits==="number"&&!Q.client_max_window_bits)return!1;return!0});if(!J)throw Error("None of the extension offers can be accepted");if(V.serverNoContextTakeover)J.server_no_context_takeover=!0;if(V.clientNoContextTakeover)J.client_no_context_takeover=!0;if(typeof V.serverMaxWindowBits==="number")J.server_max_window_bits=V.serverMaxWindowBits;if(typeof V.clientMaxWindowBits==="number")J.client_max_window_bits=V.clientMaxWindowBits;else if(J.client_max_window_bits===!0||V.clientMaxWindowBits===!1)delete J.client_max_window_bits;return J}acceptAsClient($){let V=$[0];if(this._options.clientNoContextTakeover===!1&&V.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!V.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")V.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&V.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return V}normalizeParams($){return $.forEach((V)=>{Object.keys(V).forEach((J)=>{let Q=V[J];if(Q.length>1)throw Error(`Parameter "${J}" must have only a single value`);if(Q=Q[0],J==="client_max_window_bits"){if(Q!==!0){let X=+Q;if(!Number.isInteger(X)||X<8||X>15)throw TypeError(`Invalid value for parameter "${J}": ${Q}`);Q=X}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${J}": ${Q}`)}else if(J==="server_max_window_bits"){let X=+Q;if(!Number.isInteger(X)||X<8||X>15)throw TypeError(`Invalid value for parameter "${J}": ${Q}`);Q=X}else if(J==="client_no_context_takeover"||J==="server_no_context_takeover"){if(Q!==!0)throw TypeError(`Invalid value for parameter "${J}": ${Q}`)}else throw Error(`Unknown parameter "${J}"`);V[J]=Q})}),$}decompress($,V,J){nG.add((Q)=>{this._decompress($,V,(X,Y)=>{Q(),J(X,Y)})})}compress($,V,J){nG.add((Q)=>{this._compress($,V,(X,Y)=>{Q(),J(X,Y)})})}_decompress($,V,J){let Q=this._isServer?"client":"server";if(!this._inflate){let X=`${Q}_max_window_bits`,Y=typeof this.params[X]!=="number"?xJ.Z_DEFAULT_WINDOWBITS:this.params[X];this._inflate=xJ.createInflateRaw({...this._options.zlibInflateOptions,windowBits:Y}),this._inflate[oG]=this,this._inflate[t8]=0,this._inflate[f5]=[],this._inflate.on("error",Up2),this._inflate.on("data",ah)}if(this._inflate[v$]=J,this._inflate.write($),V)this._inflate.write(Hp2);this._inflate.flush(()=>{let X=this._inflate[h$];if(X){this._inflate.close(),this._inflate=null,J(X);return}let Y=lh.concat(this._inflate[f5],this._inflate[t8]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[t8]=0,this._inflate[f5]=[],V&&this.params[`${Q}_no_context_takeover`])this._inflate.reset();J(null,Y)})}_compress($,V,J){let Q=this._isServer?"server":"client";if(!this._deflate){let X=`${Q}_max_window_bits`,Y=typeof this.params[X]!=="number"?xJ.Z_DEFAULT_WINDOWBITS:this.params[X];this._deflate=xJ.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:Y}),this._deflate[t8]=0,this._deflate[f5]=[],this._deflate.on("data",Zp2)}this._deflate[v$]=J,this._deflate.write($),this._deflate.flush(xJ.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let X=lh.concat(this._deflate[f5],this._deflate[t8]);if(V)X=new Dp2(X.buffer,X.byteOffset,X.length-4);if(this._deflate[v$]=null,this._deflate[t8]=0,this._deflate[f5]=[],V&&this.params[`${Q}_no_context_takeover`])this._deflate.reset();J(null,X)})}}ih.exports=uh;function Zp2($){this[f5].push($),this[t8]+=$.length}function ah($){if(this[t8]+=$.length,this[oG]._maxPayload<1||this[t8]<=this[oG]._maxPayload){this[f5].push($);return}this[h$]=RangeError("Max payload size exceeded"),this[h$].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[h$][fh]=1009,this.removeListener("data",ah),this.reset()}function Up2($){if(this[oG]._inflate=null,this[h$]){this[v$](this[h$]);return}$[fh]=1007,this[v$]($)}});var x$=M1((nX0,sG)=>{var{isUtf8:ch}=k1("buffer"),{hasBlob:wp2}=r8(),zp2=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function jp2($){return $>=1000&&$<=1014&&$!==1004&&$!==1005&&$!==1006||$>=3000&&$<=4999}function Yz($){let V=$.length,J=0;while(J<V)if(($[J]&128)===0)J++;else if(($[J]&224)===192){if(J+1===V||($[J+1]&192)!==128||($[J]&254)===192)return!1;J+=2}else if(($[J]&240)===224){if(J+2>=V||($[J+1]&192)!==128||($[J+2]&192)!==128||$[J]===224&&($[J+1]&224)===128||$[J]===237&&($[J+1]&224)===160)return!1;J+=3}else if(($[J]&248)===240){if(J+3>=V||($[J+1]&192)!==128||($[J+2]&192)!==128||($[J+3]&192)!==128||$[J]===240&&($[J+1]&240)===128||$[J]===244&&$[J+1]>143||$[J]>244)return!1;J+=4}else return!1;return!0}function Np2($){return wp2&&typeof $==="object"&&typeof $.arrayBuffer==="function"&&typeof $.type==="string"&&typeof $.stream==="function"&&($[Symbol.toStringTag]==="Blob"||$[Symbol.toStringTag]==="File")}sG.exports={isBlob:Np2,isValidStatusCode:jp2,isValidUTF8:Yz,tokenChars:zp2};if(ch)sG.exports.isValidUTF8=function($){return $.length<24?Yz($):ch($)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let $=bB();sG.exports.isValidUTF8=function(V){return V.length<32?Yz(V):$(V)}}catch($){}});var Wz=M1((oX0,th)=>{var{Writable:Mp2}=k1("stream"),nh=dJ(),{BINARY_TYPES:Lp2,EMPTY_BUFFER:oh,kStatusCode:Rp2,kWebSocket:Pp2}=r8(),{concat:Gz,toArrayBuffer:Op2,unmask:Fp2}=hJ(),{isValidStatusCode:Bp2,isValidUTF8:sh}=x$(),rG=Buffer[Symbol.species];class rh extends Mp2{constructor($={}){super();this._allowSynchronousEvents=$.allowSynchronousEvents!==void 0?$.allowSynchronousEvents:!0,this._binaryType=$.binaryType||Lp2[0],this._extensions=$.extensions||{},this._isServer=!!$.isServer,this._maxPayload=$.maxPayload|0,this._skipUTF8Validation=!!$.skipUTF8Validation,this[Pp2]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write($,V,J){if(this._opcode===8&&this._state==0)return J();this._bufferedBytes+=$.length,this._buffers.push($),this.startLoop(J)}consume($){if(this._bufferedBytes-=$,$===this._buffers[0].length)return this._buffers.shift();if($<this._buffers[0].length){let J=this._buffers[0];return this._buffers[0]=new rG(J.buffer,J.byteOffset+$,J.length-$),new rG(J.buffer,J.byteOffset,$)}let V=Buffer.allocUnsafe($);do{let J=this._buffers[0],Q=V.length-$;if($>=J.length)V.set(this._buffers.shift(),Q);else V.set(new Uint8Array(J.buffer,J.byteOffset,$),Q),this._buffers[0]=new rG(J.buffer,J.byteOffset+$,J.length-$);$-=J.length}while($>0);return V}startLoop($){this._loop=!0;do switch(this._state){case 0:this.getInfo($);break;case 1:this.getPayloadLength16($);break;case 2:this.getPayloadLength64($);break;case 3:this.getMask();break;case 4:this.getData($);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)$()}getInfo($){if(this._bufferedBytes<2){this._loop=!1;return}let V=this.consume(2);if((V[0]&48)!==0){let Q=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");$(Q);return}let J=(V[0]&64)===64;if(J&&!this._extensions[nh.extensionName]){let Q=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(Q);return}if(this._fin=(V[0]&128)===128,this._opcode=V[0]&15,this._payloadLength=V[1]&127,this._opcode===0){if(J){let Q=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(Q);return}if(!this._fragmented){let Q=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");$(Q);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Q=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(Q);return}this._compressed=J}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Q=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");$(Q);return}if(J){let Q=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");$(Q);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Q=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");$(Q);return}}else{let Q=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");$(Q);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(V[1]&128)===128,this._isServer){if(!this._masked){let Q=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");$(Q);return}}else if(this._masked){let Q=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");$(Q);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength($)}getPayloadLength16($){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength($)}getPayloadLength64($){if(this._bufferedBytes<8){this._loop=!1;return}let V=this.consume(8),J=V.readUInt32BE(0);if(J>Math.pow(2,21)-1){let Q=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");$(Q);return}this._payloadLength=J*Math.pow(2,32)+V.readUInt32BE(4),this.haveLength($)}haveLength($){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let V=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");$(V);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData($){let V=oh;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(V=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)Fp2(V,this._mask)}if(this._opcode>7){this.controlMessage(V,$);return}if(this._compressed){this._state=5,this.decompress(V,$);return}if(V.length)this._messageLength=this._totalPayloadLength,this._fragments.push(V);this.dataMessage($)}decompress($,V){this._extensions[nh.extensionName].decompress($,this._fin,(Q,X)=>{if(Q)return V(Q);if(X.length){if(this._messageLength+=X.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let Y=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");V(Y);return}this._fragments.push(X)}if(this.dataMessage(V),this._state===0)this.startLoop(V)})}dataMessage($){if(!this._fin){this._state=0;return}let V=this._messageLength,J=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Q;if(this._binaryType==="nodebuffer")Q=Gz(J,V);else if(this._binaryType==="arraybuffer")Q=Op2(Gz(J,V));else if(this._binaryType==="blob")Q=new Blob(J);else Q=J;if(this._allowSynchronousEvents)this.emit("message",Q,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Q,!0),this._state=0,this.startLoop($)})}else{let Q=Gz(J,V);if(!this._skipUTF8Validation&&!sh(Q)){let X=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");$(X);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Q,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Q,!1),this._state=0,this.startLoop($)})}}controlMessage($,V){if(this._opcode===8){if($.length===0)this._loop=!1,this.emit("conclude",1005,oh),this.end();else{let J=$.readUInt16BE(0);if(!Bp2(J)){let X=this.createError(RangeError,`invalid status code ${J}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");V(X);return}let Q=new rG($.buffer,$.byteOffset+2,$.length-2);if(!this._skipUTF8Validation&&!sh(Q)){let X=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");V(X);return}this._loop=!1,this.emit("conclude",J,Q),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",$),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",$),this._state=0,this.startLoop(V)})}createError($,V,J,Q,X){this._loop=!1,this._errored=!0;let Y=new $(J?`Invalid WebSocket frame: ${V}`:V);return Error.captureStackTrace(Y,this.createError),Y.code=X,Y[Rp2]=Q,Y}}th.exports=rh});var qz=M1((rX0,Vx)=>{var{Duplex:sX0}=k1("stream"),{randomFillSync:Sp2}=k1("crypto"),eh=dJ(),{EMPTY_BUFFER:_p2,kWebSocket:Cp2,NOOP:Ip2}=r8(),{isBlob:d$,isValidStatusCode:Tp2}=x$(),{mask:$x,toBuffer:l7}=hJ(),P6=Symbol("kByteLength"),Ap2=Buffer.alloc(4),f7,y$=8192,a6=0,pp2=1,mp2=2;class u5{constructor($,V,J){if(this._extensions=V||{},J)this._generateMask=J,this._maskBuffer=Buffer.alloc(4);this._socket=$,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=a6,this.onerror=Ip2,this[Cp2]=void 0}static frame($,V){let J,Q=!1,X=2,Y=!1;if(V.mask){if(J=V.maskBuffer||Ap2,V.generateMask)V.generateMask(J);else{if(y$===8192){if(f7===void 0)f7=Buffer.alloc(8192);Sp2(f7,0,8192),y$=0}J[0]=f7[y$++],J[1]=f7[y$++],J[2]=f7[y$++],J[3]=f7[y$++]}Y=(J[0]|J[1]|J[2]|J[3])===0,X=6}let G;if(typeof $==="string")if((!V.mask||Y)&&V[P6]!==void 0)G=V[P6];else $=Buffer.from($),G=$.length;else G=$.length,Q=V.mask&&V.readOnly&&!Y;let W=G;if(G>=65536)X+=8,W=127;else if(G>125)X+=2,W=126;let K=Buffer.allocUnsafe(Q?G+X:X);if(K[0]=V.fin?V.opcode|128:V.opcode,V.rsv1)K[0]|=64;if(K[1]=W,W===126)K.writeUInt16BE(G,2);else if(W===127)K[2]=K[3]=0,K.writeUIntBE(G,4,6);if(!V.mask)return[K,$];if(K[1]|=128,K[X-4]=J[0],K[X-3]=J[1],K[X-2]=J[2],K[X-1]=J[3],Y)return[K,$];if(Q)return $x($,J,K,X,G),[K];return $x($,J,$,0,G),[K,$]}close($,V,J,Q){let X;if($===void 0)X=_p2;else if(typeof $!=="number"||!Tp2($))throw TypeError("First argument must be a valid error code number");else if(V===void 0||!V.length)X=Buffer.allocUnsafe(2),X.writeUInt16BE($,0);else{let G=Buffer.byteLength(V);if(G>123)throw RangeError("The message must not be greater than 123 bytes");if(X=Buffer.allocUnsafe(2+G),X.writeUInt16BE($,0),typeof V==="string")X.write(V,2);else X.set(V,2)}let Y={[P6]:X.length,fin:!0,generateMask:this._generateMask,mask:J,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==a6)this.enqueue([this.dispatch,X,!1,Y,Q]);else this.sendFrame(u5.frame(X,Y),Q)}ping($,V,J){let Q,X;if(typeof $==="string")Q=Buffer.byteLength($),X=!1;else if(d$($))Q=$.size,X=!1;else $=l7($),Q=$.length,X=l7.readOnly;if(Q>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[P6]:Q,fin:!0,generateMask:this._generateMask,mask:V,maskBuffer:this._maskBuffer,opcode:9,readOnly:X,rsv1:!1};if(d$($))if(this._state!==a6)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==a6)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(u5.frame($,Y),J)}pong($,V,J){let Q,X;if(typeof $==="string")Q=Buffer.byteLength($),X=!1;else if(d$($))Q=$.size,X=!1;else $=l7($),Q=$.length,X=l7.readOnly;if(Q>125)throw RangeError("The data size must not be greater than 125 bytes");let Y={[P6]:Q,fin:!0,generateMask:this._generateMask,mask:V,maskBuffer:this._maskBuffer,opcode:10,readOnly:X,rsv1:!1};if(d$($))if(this._state!==a6)this.enqueue([this.getBlobData,$,!1,Y,J]);else this.getBlobData($,!1,Y,J);else if(this._state!==a6)this.enqueue([this.dispatch,$,!1,Y,J]);else this.sendFrame(u5.frame($,Y),J)}send($,V,J){let Q=this._extensions[eh.extensionName],X=V.binary?2:1,Y=V.compress,G,W;if(typeof $==="string")G=Buffer.byteLength($),W=!1;else if(d$($))G=$.size,W=!1;else $=l7($),G=$.length,W=l7.readOnly;if(this._firstFragment){if(this._firstFragment=!1,Y&&Q&&Q.params[Q._isServer?"server_no_context_takeover":"client_no_context_takeover"])Y=G>=Q._threshold;this._compress=Y}else Y=!1,X=0;if(V.fin)this._firstFragment=!0;let K={[P6]:G,fin:V.fin,generateMask:this._generateMask,mask:V.mask,maskBuffer:this._maskBuffer,opcode:X,readOnly:W,rsv1:Y};if(d$($))if(this._state!==a6)this.enqueue([this.getBlobData,$,this._compress,K,J]);else this.getBlobData($,this._compress,K,J);else if(this._state!==a6)this.enqueue([this.dispatch,$,this._compress,K,J]);else this.dispatch($,this._compress,K,J)}getBlobData($,V,J,Q){this._bufferedBytes+=J[P6],this._state=mp2,$.arrayBuffer().then((X)=>{if(this._socket.destroyed){let G=Error("The socket was closed while the blob was being read");process.nextTick(Kz,this,G,Q);return}this._bufferedBytes-=J[P6];let Y=l7(X);if(!V)this._state=a6,this.sendFrame(u5.frame(Y,J),Q),this.dequeue();else this.dispatch(Y,V,J,Q)}).catch((X)=>{process.nextTick(kp2,this,X,Q)})}dispatch($,V,J,Q){if(!V){this.sendFrame(u5.frame($,J),Q);return}let X=this._extensions[eh.extensionName];this._bufferedBytes+=J[P6],this._state=pp2,X.compress($,J.fin,(Y,G)=>{if(this._socket.destroyed){let W=Error("The socket was closed while data was being compressed");Kz(this,W,Q);return}this._bufferedBytes-=J[P6],this._state=a6,J.readOnly=!1,this.sendFrame(u5.frame(G,J),Q),this.dequeue()})}dequeue(){while(this._state===a6&&this._queue.length){let $=this._queue.shift();this._bufferedBytes-=$[3][P6],Reflect.apply($[0],this,$.slice(1))}}enqueue($){this._bufferedBytes+=$[3][P6],this._queue.push($)}sendFrame($,V){if($.length===2)this._socket.cork(),this._socket.write($[0]),this._socket.write($[1],V),this._socket.uncork();else this._socket.write($[0],V)}}Vx.exports=u5;function Kz($,V,J){if(typeof J==="function")J(V);for(let Q=0;Q<$._queue.length;Q++){let X=$._queue[Q],Y=X[X.length-1];if(typeof Y==="function")Y(V)}}function kp2($,V,J){Kz($,V,J),$.onerror(V)}});var Dx=M1((tX0,qx)=>{var{kForOnEventAttribute:yJ,kListener:Dz}=r8(),Jx=Symbol("kCode"),Qx=Symbol("kData"),Xx=Symbol("kError"),Yx=Symbol("kMessage"),Gx=Symbol("kReason"),b$=Symbol("kTarget"),Wx=Symbol("kType"),Kx=Symbol("kWasClean");class a5{constructor($){this[b$]=null,this[Wx]=$}get target(){return this[b$]}get type(){return this[Wx]}}Object.defineProperty(a5.prototype,"target",{enumerable:!0});Object.defineProperty(a5.prototype,"type",{enumerable:!0});class g$ extends a5{constructor($,V={}){super($);this[Jx]=V.code===void 0?0:V.code,this[Gx]=V.reason===void 0?"":V.reason,this[Kx]=V.wasClean===void 0?!1:V.wasClean}get code(){return this[Jx]}get reason(){return this[Gx]}get wasClean(){return this[Kx]}}Object.defineProperty(g$.prototype,"code",{enumerable:!0});Object.defineProperty(g$.prototype,"reason",{enumerable:!0});Object.defineProperty(g$.prototype,"wasClean",{enumerable:!0});class bJ extends a5{constructor($,V={}){super($);this[Xx]=V.error===void 0?null:V.error,this[Yx]=V.message===void 0?"":V.message}get error(){return this[Xx]}get message(){return this[Yx]}}Object.defineProperty(bJ.prototype,"error",{enumerable:!0});Object.defineProperty(bJ.prototype,"message",{enumerable:!0});class eG extends a5{constructor($,V={}){super($);this[Qx]=V.data===void 0?null:V.data}get data(){return this[Qx]}}Object.defineProperty(eG.prototype,"data",{enumerable:!0});var Ep2={addEventListener($,V,J={}){for(let X of this.listeners($))if(!J[yJ]&&X[Dz]===V&&!X[yJ])return;let Q;if($==="message")Q=function(Y,G){let W=new eG("message",{data:G?Y:Y.toString()});W[b$]=this,tG(V,this,W)};else if($==="close")Q=function(Y,G){let W=new g$("close",{code:Y,reason:G.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});W[b$]=this,tG(V,this,W)};else if($==="error")Q=function(Y){let G=new bJ("error",{error:Y,message:Y.message});G[b$]=this,tG(V,this,G)};else if($==="open")Q=function(){let Y=new a5("open");Y[b$]=this,tG(V,this,Y)};else return;if(Q[yJ]=!!J[yJ],Q[Dz]=V,J.once)this.once($,Q);else this.on($,Q)},removeEventListener($,V){for(let J of this.listeners($))if(J[Dz]===V&&!J[yJ]){this.removeListener($,J);break}}};qx.exports={CloseEvent:g$,ErrorEvent:bJ,Event:a5,EventTarget:Ep2,MessageEvent:eG};function tG($,V,J){if(typeof $==="object"&&$.handleEvent)$.handleEvent.call($,J);else $.call(V,J)}});var Hz=M1((eX0,Hx)=>{var{tokenChars:gJ}=x$();function o4($,V,J){if($[V]===void 0)$[V]=[J];else $[V].push(J)}function vp2($){let V=Object.create(null),J=Object.create(null),Q=!1,X=!1,Y=!1,G,W,K=-1,D=-1,H=-1,U=0;for(;U<$.length;U++)if(D=$.charCodeAt(U),G===void 0)if(H===-1&&gJ[D]===1){if(K===-1)K=U}else if(U!==0&&(D===32||D===9)){if(H===-1&&K!==-1)H=U}else if(D===59||D===44){if(K===-1)throw SyntaxError(`Unexpected character at index ${U}`);if(H===-1)H=U;let M=$.slice(K,H);if(D===44)o4(V,M,J),J=Object.create(null);else G=M;K=H=-1}else throw SyntaxError(`Unexpected character at index ${U}`);else if(W===void 0)if(H===-1&&gJ[D]===1){if(K===-1)K=U}else if(D===32||D===9){if(H===-1&&K!==-1)H=U}else if(D===59||D===44){if(K===-1)throw SyntaxError(`Unexpected character at index ${U}`);if(H===-1)H=U;if(o4(J,$.slice(K,H),!0),D===44)o4(V,G,J),J=Object.create(null),G=void 0;K=H=-1}else if(D===61&&K!==-1&&H===-1)W=$.slice(K,U),K=H=-1;else throw SyntaxError(`Unexpected character at index ${U}`);else if(X){if(gJ[D]!==1)throw SyntaxError(`Unexpected character at index ${U}`);if(K===-1)K=U;else if(!Q)Q=!0;X=!1}else if(Y)if(gJ[D]===1){if(K===-1)K=U}else if(D===34&&K!==-1)Y=!1,H=U;else if(D===92)X=!0;else throw SyntaxError(`Unexpected character at index ${U}`);else if(D===34&&$.charCodeAt(U-1)===61)Y=!0;else if(H===-1&&gJ[D]===1){if(K===-1)K=U}else if(K!==-1&&(D===32||D===9)){if(H===-1)H=U}else if(D===59||D===44){if(K===-1)throw SyntaxError(`Unexpected character at index ${U}`);if(H===-1)H=U;let M=$.slice(K,H);if(Q)M=M.replace(/\\/g,""),Q=!1;if(o4(J,W,M),D===44)o4(V,G,J),J=Object.create(null),G=void 0;W=void 0,K=H=-1}else throw SyntaxError(`Unexpected character at index ${U}`);if(K===-1||Y||D===32||D===9)throw SyntaxError("Unexpected end of input");if(H===-1)H=U;let z=$.slice(K,H);if(G===void 0)o4(V,z,J);else{if(W===void 0)o4(J,z,!0);else if(Q)o4(J,W,z.replace(/\\/g,""));else o4(J,W,z);o4(V,G,J)}return V}function hp2($){return Object.keys($).map((V)=>{let J=$[V];if(!Array.isArray(J))J=[J];return J.map((Q)=>{return[V].concat(Object.keys(Q).map((X)=>{let Y=Q[X];if(!Array.isArray(Y))Y=[Y];return Y.map((G)=>G===!0?X:`${X}=${G}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}Hx.exports={format:hp2,parse:vp2}});var QW=M1((JY0,Fx)=>{var xp2=k1("events"),dp2=k1("https"),yp2=k1("http"),wx=k1("net"),bp2=k1("tls"),{randomBytes:gp2,createHash:lp2}=k1("crypto"),{Duplex:$Y0,Readable:VY0}=k1("stream"),{URL:Zz}=k1("url"),i5=dJ(),fp2=Wz(),up2=qz(),{isBlob:ap2}=x$(),{BINARY_TYPES:Zx,CLOSE_TIMEOUT:ip2,EMPTY_BUFFER:$W,GUID:cp2,kForOnEventAttribute:Uz,kListener:np2,kStatusCode:op2,kWebSocket:s0,NOOP:zx}=r8(),{EventTarget:{addEventListener:sp2,removeEventListener:rp2}}=Dx(),{format:tp2,parse:ep2}=Hz(),{toBuffer:$m2}=hJ(),jx=Symbol("kAborted"),wz=[8,13],e8=["CONNECTING","OPEN","CLOSING","CLOSED"],Vm2=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class Y2 extends xp2{constructor($,V,J){super();if(this._binaryType=Zx[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=$W,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=Y2.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,$!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,V===void 0)V=[];else if(!Array.isArray(V))if(typeof V==="object"&&V!==null)J=V,V=[];else V=[V];Nx(this,$,V,J)}else this._autoPong=J.autoPong,this._closeTimeout=J.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType($){if(!Zx.includes($))return;if(this._binaryType=$,this._receiver)this._receiver._binaryType=$}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket($,V,J){let Q=new fp2({allowSynchronousEvents:J.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:J.maxPayload,skipUTF8Validation:J.skipUTF8Validation}),X=new up2($,this._extensions,J.generateMask);if(this._receiver=Q,this._sender=X,this._socket=$,Q[s0]=this,X[s0]=this,$[s0]=this,Q.on("conclude",Xm2),Q.on("drain",Ym2),Q.on("error",Gm2),Q.on("message",Wm2),Q.on("ping",Km2),Q.on("pong",qm2),X.onerror=Dm2,$.setTimeout)$.setTimeout(0);if($.setNoDelay)$.setNoDelay();if(V.length>0)$.unshift(V);$.on("close",Rx),$.on("data",JW),$.on("end",Px),$.on("error",Ox),this._readyState=Y2.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=Y2.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[i5.extensionName])this._extensions[i5.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=Y2.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close($,V){if(this.readyState===Y2.CLOSED)return;if(this.readyState===Y2.CONNECTING){J6(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===Y2.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=Y2.CLOSING,this._sender.close($,V,!this._isServer,(J)=>{if(J)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),Lx(this)}pause(){if(this.readyState===Y2.CONNECTING||this.readyState===Y2.CLOSED)return;this._paused=!0,this._socket.pause()}ping($,V,J){if(this.readyState===Y2.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=V=void 0;else if(typeof V==="function")J=V,V=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==Y2.OPEN){zz(this,$,J);return}if(V===void 0)V=!this._isServer;this._sender.ping($||$W,V,J)}pong($,V,J){if(this.readyState===Y2.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof $==="function")J=$,$=V=void 0;else if(typeof V==="function")J=V,V=void 0;if(typeof $==="number")$=$.toString();if(this.readyState!==Y2.OPEN){zz(this,$,J);return}if(V===void 0)V=!this._isServer;this._sender.pong($||$W,V,J)}resume(){if(this.readyState===Y2.CONNECTING||this.readyState===Y2.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send($,V,J){if(this.readyState===Y2.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof V==="function")J=V,V={};if(typeof $==="number")$=$.toString();if(this.readyState!==Y2.OPEN){zz(this,$,J);return}let Q={binary:typeof $!=="string",mask:!this._isServer,compress:!0,fin:!0,...V};if(!this._extensions[i5.extensionName])Q.compress=!1;this._sender.send($||$W,Q,J)}terminate(){if(this.readyState===Y2.CLOSED)return;if(this.readyState===Y2.CONNECTING){J6(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=Y2.CLOSING,this._socket.destroy()}}Object.defineProperty(Y2,"CONNECTING",{enumerable:!0,value:e8.indexOf("CONNECTING")});Object.defineProperty(Y2.prototype,"CONNECTING",{enumerable:!0,value:e8.indexOf("CONNECTING")});Object.defineProperty(Y2,"OPEN",{enumerable:!0,value:e8.indexOf("OPEN")});Object.defineProperty(Y2.prototype,"OPEN",{enumerable:!0,value:e8.indexOf("OPEN")});Object.defineProperty(Y2,"CLOSING",{enumerable:!0,value:e8.indexOf("CLOSING")});Object.defineProperty(Y2.prototype,"CLOSING",{enumerable:!0,value:e8.indexOf("CLOSING")});Object.defineProperty(Y2,"CLOSED",{enumerable:!0,value:e8.indexOf("CLOSED")});Object.defineProperty(Y2.prototype,"CLOSED",{enumerable:!0,value:e8.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(($)=>{Object.defineProperty(Y2.prototype,$,{enumerable:!0})});["open","error","close","message"].forEach(($)=>{Object.defineProperty(Y2.prototype,`on${$}`,{enumerable:!0,get(){for(let V of this.listeners($))if(V[Uz])return V[np2];return null},set(V){for(let J of this.listeners($))if(J[Uz]){this.removeListener($,J);break}if(typeof V!=="function")return;this.addEventListener($,V,{[Uz]:!0})}})});Y2.prototype.addEventListener=sp2;Y2.prototype.removeEventListener=rp2;Fx.exports=Y2;function Nx($,V,J,Q){let X={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:ip2,protocolVersion:wz[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Q,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if($._autoPong=X.autoPong,$._closeTimeout=X.closeTimeout,!wz.includes(X.protocolVersion))throw RangeError(`Unsupported protocol version: ${X.protocolVersion} (supported versions: ${wz.join(", ")})`);let Y;if(V instanceof Zz)Y=V;else try{Y=new Zz(V)}catch(B){throw SyntaxError(`Invalid URL: ${V}`)}if(Y.protocol==="http:")Y.protocol="ws:";else if(Y.protocol==="https:")Y.protocol="wss:";$._url=Y.href;let G=Y.protocol==="wss:",W=Y.protocol==="ws+unix:",K;if(Y.protocol!=="ws:"&&!G&&!W)K=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(W&&!Y.pathname)K="The URL's pathname is empty";else if(Y.hash)K="The URL contains a fragment identifier";if(K){let B=SyntaxError(K);if($._redirects===0)throw B;else{VW($,B);return}}let D=G?443:80,H=gp2(16).toString("base64"),U=G?dp2.request:yp2.request,z=new Set,M;if(X.createConnection=X.createConnection||(G?Qm2:Jm2),X.defaultPort=X.defaultPort||D,X.port=Y.port||D,X.host=Y.hostname.startsWith("[")?Y.hostname.slice(1,-1):Y.hostname,X.headers={...X.headers,"Sec-WebSocket-Version":X.protocolVersion,"Sec-WebSocket-Key":H,Connection:"Upgrade",Upgrade:"websocket"},X.path=Y.pathname+Y.search,X.timeout=X.handshakeTimeout,X.perMessageDeflate)M=new i5(X.perMessageDeflate!==!0?X.perMessageDeflate:{},!1,X.maxPayload),X.headers["Sec-WebSocket-Extensions"]=tp2({[i5.extensionName]:M.offer()});if(J.length){for(let B of J){if(typeof B!=="string"||!Vm2.test(B)||z.has(B))throw SyntaxError("An invalid or duplicated subprotocol was specified");z.add(B)}X.headers["Sec-WebSocket-Protocol"]=J.join(",")}if(X.origin)if(X.protocolVersion<13)X.headers["Sec-WebSocket-Origin"]=X.origin;else X.headers.Origin=X.origin;if(Y.username||Y.password)X.auth=`${Y.username}:${Y.password}`;if(W){let B=X.path.split(":");X.socketPath=B[0],X.path=B[1]}let L;if(X.followRedirects){if($._redirects===0){$._originalIpc=W,$._originalSecure=G,$._originalHostOrSocketPath=W?X.socketPath:Y.host;let B=Q&&Q.headers;if(Q={...Q,headers:{}},B)for(let[_,T]of Object.entries(B))Q.headers[_.toLowerCase()]=T}else if($.listenerCount("redirect")===0){let B=W?$._originalIpc?X.socketPath===$._originalHostOrSocketPath:!1:$._originalIpc?!1:Y.host===$._originalHostOrSocketPath;if(!B||$._originalSecure&&!G){if(delete X.headers.authorization,delete X.headers.cookie,!B)delete X.headers.host;X.auth=void 0}}if(X.auth&&!Q.headers.authorization)Q.headers.authorization="Basic "+Buffer.from(X.auth).toString("base64");if(L=$._req=U(X),$._redirects)$.emit("redirect",$.url,L)}else L=$._req=U(X);if(X.timeout)L.on("timeout",()=>{J6($,L,"Opening handshake has timed out")});if(L.on("error",(B)=>{if(L===null||L[jx])return;L=$._req=null,VW($,B)}),L.on("response",(B)=>{let _=B.headers.location,T=B.statusCode;if(_&&X.followRedirects&&T>=300&&T<400){if(++$._redirects>X.maxRedirects){J6($,L,"Maximum redirects exceeded");return}L.abort();let h;try{h=new Zz(_,V)}catch(A){let E=SyntaxError(`Invalid URL: ${_}`);VW($,E);return}Nx($,h,J,Q)}else if(!$.emit("unexpected-response",L,B))J6($,L,`Unexpected server response: ${B.statusCode}`)}),L.on("upgrade",(B,_,T)=>{if($.emit("upgrade",B),$.readyState!==Y2.CONNECTING)return;L=$._req=null;let h=B.headers.upgrade;if(h===void 0||h.toLowerCase()!=="websocket"){J6($,_,"Invalid Upgrade header");return}let A=lp2("sha1").update(H+cp2).digest("base64");if(B.headers["sec-websocket-accept"]!==A){J6($,_,"Invalid Sec-WebSocket-Accept header");return}let E=B.headers["sec-websocket-protocol"],y;if(E!==void 0){if(!z.size)y="Server sent a subprotocol but none was requested";else if(!z.has(E))y="Server sent an invalid subprotocol"}else if(z.size)y="Server sent no subprotocol";if(y){J6($,_,y);return}if(E)$._protocol=E;let l=B.headers["sec-websocket-extensions"];if(l!==void 0){if(!M){J6($,_,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let f;try{f=ep2(l)}catch(u){J6($,_,"Invalid Sec-WebSocket-Extensions header");return}let o=Object.keys(f);if(o.length!==1||o[0]!==i5.extensionName){J6($,_,"Server indicated an extension that was not requested");return}try{M.accept(f[i5.extensionName])}catch(u){J6($,_,"Invalid Sec-WebSocket-Extensions header");return}$._extensions[i5.extensionName]=M}$.setSocket(_,T,{allowSynchronousEvents:X.allowSynchronousEvents,generateMask:X.generateMask,maxPayload:X.maxPayload,skipUTF8Validation:X.skipUTF8Validation})}),X.finishRequest)X.finishRequest(L,$);else L.end()}function VW($,V){$._readyState=Y2.CLOSING,$._errorEmitted=!0,$.emit("error",V),$.emitClose()}function Jm2($){return $.path=$.socketPath,wx.connect($)}function Qm2($){if($.path=void 0,!$.servername&&$.servername!=="")$.servername=wx.isIP($.host)?"":$.host;return bp2.connect($)}function J6($,V,J){$._readyState=Y2.CLOSING;let Q=Error(J);if(Error.captureStackTrace(Q,J6),V.setHeader){if(V[jx]=!0,V.abort(),V.socket&&!V.socket.destroyed)V.socket.destroy();process.nextTick(VW,$,Q)}else V.destroy(Q),V.once("error",$.emit.bind($,"error")),V.once("close",$.emitClose.bind($))}function zz($,V,J){if(V){let Q=ap2(V)?V.size:$m2(V).length;if($._socket)$._sender._bufferedBytes+=Q;else $._bufferedAmount+=Q}if(J){let Q=Error(`WebSocket is not open: readyState ${$.readyState} (${e8[$.readyState]})`);process.nextTick(J,Q)}}function Xm2($,V){let J=this[s0];if(J._closeFrameReceived=!0,J._closeMessage=V,J._closeCode=$,J._socket[s0]===void 0)return;if(J._socket.removeListener("data",JW),process.nextTick(Mx,J._socket),$===1005)J.close();else J.close($,V)}function Ym2(){let $=this[s0];if(!$.isPaused)$._socket.resume()}function Gm2($){let V=this[s0];if(V._socket[s0]!==void 0)V._socket.removeListener("data",JW),process.nextTick(Mx,V._socket),V.close($[op2]);if(!V._errorEmitted)V._errorEmitted=!0,V.emit("error",$)}function Ux(){this[s0].emitClose()}function Wm2($,V){this[s0].emit("message",$,V)}function Km2($){let V=this[s0];if(V._autoPong)V.pong($,!this._isServer,zx);V.emit("ping",$)}function qm2($){this[s0].emit("pong",$)}function Mx($){$.resume()}function Dm2($){let V=this[s0];if(V.readyState===Y2.CLOSED)return;if(V.readyState===Y2.OPEN)V._readyState=Y2.CLOSING,Lx(V);if(this._socket.end(),!V._errorEmitted)V._errorEmitted=!0,V.emit("error",$)}function Lx($){$._closeTimer=setTimeout($._socket.destroy.bind($._socket),$._closeTimeout)}function Rx(){let $=this[s0];if(this.removeListener("close",Rx),this.removeListener("data",JW),this.removeListener("end",Px),$._readyState=Y2.CLOSING,!this._readableState.endEmitted&&!$._closeFrameReceived&&!$._receiver._writableState.errorEmitted&&this._readableState.length!==0){let V=this.read(this._readableState.length);$._receiver.write(V)}if($._receiver.end(),this[s0]=void 0,clearTimeout($._closeTimer),$._receiver._writableState.finished||$._receiver._writableState.errorEmitted)$.emitClose();else $._receiver.on("error",Ux),$._receiver.on("finish",Ux)}function JW($){if(!this[s0]._receiver.write($))this.pause()}function Px(){let $=this[s0];$._readyState=Y2.CLOSING,$._receiver.end(),this.end()}function Ox(){let $=this[s0];if(this.removeListener("error",Ox),this.on("error",zx),$)$._readyState=Y2.CLOSING,this.destroy()}});var Cx=M1((XY0,_x)=>{var QY0=QW(),{Duplex:Hm2}=k1("stream");function Bx($){$.emit("close")}function Zm2(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function Sx($){if(this.removeListener("error",Sx),this.destroy(),this.listenerCount("error")===0)this.emit("error",$)}function Um2($,V){let J=!0,Q=new Hm2({...V,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return $.on("message",function(Y,G){let W=!G&&Q._readableState.objectMode?Y.toString():Y;if(!Q.push(W))$.pause()}),$.once("error",function(Y){if(Q.destroyed)return;J=!1,Q.destroy(Y)}),$.once("close",function(){if(Q.destroyed)return;Q.push(null)}),Q._destroy=function(X,Y){if($.readyState===$.CLOSED){Y(X),process.nextTick(Bx,Q);return}let G=!1;if($.once("error",function(K){G=!0,Y(K)}),$.once("close",function(){if(!G)Y(X);process.nextTick(Bx,Q)}),J)$.terminate()},Q._final=function(X){if($.readyState===$.CONNECTING){$.once("open",function(){Q._final(X)});return}if($._socket===null)return;if($._socket._writableState.finished){if(X(),Q._readableState.endEmitted)Q.destroy()}else $._socket.once("finish",function(){X()}),$.close()},Q._read=function(){if($.isPaused)$.resume()},Q._write=function(X,Y,G){if($.readyState===$.CONNECTING){$.once("open",function(){Q._write(X,Y,G)});return}$.send(X,G)},Q.on("end",Zm2),Q.on("error",Sx),Q}_x.exports=Um2});var Tx=M1((YY0,Ix)=>{var{tokenChars:wm2}=x$();function zm2($){let V=new Set,J=-1,Q=-1,X=0;for(X;X<$.length;X++){let G=$.charCodeAt(X);if(Q===-1&&wm2[G]===1){if(J===-1)J=X}else if(X!==0&&(G===32||G===9)){if(Q===-1&&J!==-1)Q=X}else if(G===44){if(J===-1)throw SyntaxError(`Unexpected character at index ${X}`);if(Q===-1)Q=X;let W=$.slice(J,Q);if(V.has(W))throw SyntaxError(`The "${W}" subprotocol is duplicated`);V.add(W),J=Q=-1}else throw SyntaxError(`Unexpected character at index ${X}`)}if(J===-1||Q!==-1)throw SyntaxError("Unexpected end of input");let Y=$.slice(J,X);if(V.has(Y))throw SyntaxError(`The "${Y}" subprotocol is duplicated`);return V.add(Y),V}Ix.exports={parse:zm2}});var Ex=M1((WY0,kx)=>{var jm2=k1("events"),XW=k1("http"),{Duplex:GY0}=k1("stream"),{createHash:Nm2}=k1("crypto"),Ax=Hz(),u7=dJ(),Mm2=Tx(),Lm2=QW(),{CLOSE_TIMEOUT:Rm2,GUID:Pm2,kWebSocket:Om2}=r8(),Fm2=/^[+/0-9A-Za-z]{22}==$/;class mx extends jm2{constructor($,V){super();if($={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:Rm2,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Lm2,...$},$.port==null&&!$.server&&!$.noServer||$.port!=null&&($.server||$.noServer)||$.server&&$.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if($.port!=null)this._server=XW.createServer((J,Q)=>{let X=XW.STATUS_CODES[426];Q.writeHead(426,{"Content-Length":X.length,"Content-Type":"text/plain"}),Q.end(X)}),this._server.listen($.port,$.host,$.backlog,V);else if($.server)this._server=$.server;if(this._server){let J=this.emit.bind(this,"connection");this._removeListeners=Bm2(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Q,X,Y)=>{this.handleUpgrade(Q,X,Y,J)}})}if($.perMessageDeflate===!0)$.perMessageDeflate={};if($.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=$,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close($){if(this._state===2){if($)this.once("close",()=>{$(Error("The server is not running"))});process.nextTick(lJ,this);return}if($)this.once("close",$);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(lJ,this);else this._shouldEmitClose=!0;else process.nextTick(lJ,this)}else{let V=this._server;this._removeListeners(),this._removeListeners=this._server=null,V.close(()=>{lJ(this)})}}shouldHandle($){if(this.options.path){let V=$.url.indexOf("?");if((V!==-1?$.url.slice(0,V):$.url)!==this.options.path)return!1}return!0}handleUpgrade($,V,J,Q){V.on("error",px);let X=$.headers["sec-websocket-key"],Y=$.headers.upgrade,G=+$.headers["sec-websocket-version"];if($.method!=="GET"){a7(this,$,V,405,"Invalid HTTP method");return}if(Y===void 0||Y.toLowerCase()!=="websocket"){a7(this,$,V,400,"Invalid Upgrade header");return}if(X===void 0||!Fm2.test(X)){a7(this,$,V,400,"Missing or invalid Sec-WebSocket-Key header");return}if(G!==13&&G!==8){a7(this,$,V,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle($)){fJ(V,400);return}let W=$.headers["sec-websocket-protocol"],K=new Set;if(W!==void 0)try{K=Mm2.parse(W)}catch(U){a7(this,$,V,400,"Invalid Sec-WebSocket-Protocol header");return}let D=$.headers["sec-websocket-extensions"],H={};if(this.options.perMessageDeflate&&D!==void 0){let U=new u7(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let z=Ax.parse(D);if(z[u7.extensionName])U.accept(z[u7.extensionName]),H[u7.extensionName]=U}catch(z){a7(this,$,V,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let U={origin:$.headers[`${G===8?"sec-websocket-origin":"origin"}`],secure:!!($.socket.authorized||$.socket.encrypted),req:$};if(this.options.verifyClient.length===2){this.options.verifyClient(U,(z,M,L,B)=>{if(!z)return fJ(V,M||401,L,B);this.completeUpgrade(H,X,K,$,V,J,Q)});return}if(!this.options.verifyClient(U))return fJ(V,401)}this.completeUpgrade(H,X,K,$,V,J,Q)}completeUpgrade($,V,J,Q,X,Y,G){if(!X.readable||!X.writable)return X.destroy();if(X[Om2])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return fJ(X,503);let K=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Nm2("sha1").update(V+Pm2).digest("base64")}`],D=new this.options.WebSocket(null,void 0,this.options);if(J.size){let H=this.options.handleProtocols?this.options.handleProtocols(J,Q):J.values().next().value;if(H)K.push(`Sec-WebSocket-Protocol: ${H}`),D._protocol=H}if($[u7.extensionName]){let H=$[u7.extensionName].params,U=Ax.format({[u7.extensionName]:[H]});K.push(`Sec-WebSocket-Extensions: ${U}`),D._extensions=$}if(this.emit("headers",K,Q),X.write(K.concat(`\r
12
+ `).join(`\r
13
+ `)),X.removeListener("error",px),D.setSocket(X,Y,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(D),D.on("close",()=>{if(this.clients.delete(D),this._shouldEmitClose&&!this.clients.size)process.nextTick(lJ,this)});G(D,Q)}}kx.exports=mx;function Bm2($,V){for(let J of Object.keys(V))$.on(J,V[J]);return function(){for(let Q of Object.keys(V))$.removeListener(Q,V[Q])}}function lJ($){$._state=2,$.emit("close")}function px(){this.destroy()}function fJ($,V,J,Q){J=J||XW.STATUS_CODES[V],Q={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(J),...Q},$.once("finish",$.destroy),$.end(`HTTP/1.1 ${V} ${XW.STATUS_CODES[V]}\r
14
+ `+Object.keys(Q).map((X)=>`${X}: ${Q[X]}`).join(`\r
15
+ `)+`\r
16
+ \r
17
+ `+J)}function a7($,V,J,Q,X,Y){if($.listenerCount("wsClientError")){let G=Error(X);Error.captureStackTrace(G,a7),$.emit("wsClientError",G,J,V)}else fJ(J,Q,X,Y)}});import{readFileSync as Td,writeFileSync as Qb2,mkdirSync as Xb2,existsSync as Ad}from"node:fs";import{join as pd}from"node:path";import{homedir as Yb2}from"node:os";var e1=k1("buffer"),B3=CN(),g01=eW(),l01=EN(),P_=xN(),sq=cN(),x_=rN(),d_=yO(),bg2=k1("util"),gg2=k1("http"),lg2=k1("https"),j=gO(),fg2=vF(),f01=FB(),O_=xS(),F_=nS(),XD=R_();function y_($){return $&&typeof $==="object"&&"default"in $?$:{default:$}}function b_($){if($&&typeof $==="object"&&"default"in $)return $;var V=Object.create(null);if($)Object.keys($).forEach(function(J){if(J!=="default"){var Q=Object.getOwnPropertyDescriptor($,J);Object.defineProperty(V,J,Q.get?Q:{enumerable:!0,get:function(){return $[J]}})}});return V.default=$,Object.freeze(V)}var B_=y_(g01),g9=y_(l01),a=b_(x_);var u01=b_(f01),ug2=B3.ed25519.utils.randomPrivateKey,S_=()=>{let $=B3.ed25519.utils.randomPrivateKey(),V=VD($),J=new Uint8Array(64);return J.set($),J.set(V,32),{publicKey:V,secretKey:J}},VD=B3.ed25519.getPublicKey;function __($){try{return B3.ed25519.ExtendedPoint.fromHex($),!0}catch{return!1}}var g_=($,V)=>B3.ed25519.sign($,V.slice(0,32)),a01=B3.ed25519.verify,E2=($)=>{if(e1.Buffer.isBuffer($))return $;else if($ instanceof Uint8Array)return e1.Buffer.from($.buffer,$.byteOffset,$.byteLength);else return e1.Buffer.from($)};class l_{constructor($){Object.assign(this,$)}encode(){return e1.Buffer.from(sq.serialize(DX,this))}static decode($){return sq.deserialize(DX,this,$)}static decodeUnchecked($){return sq.deserializeUnchecked(DX,this,$)}}var DX=new Map,f_,i01=32,pV=32;function c01($){return $._bn!==void 0}var C_=1;class G2 extends l_{constructor($){super({});if(this._bn=void 0,c01($))this._bn=$._bn;else{if(typeof $==="string"){let V=g9.default.decode($);if(V.length!=pV)throw Error("Invalid public key input");this._bn=new B_.default(V)}else this._bn=new B_.default($);if(this._bn.byteLength()>pV)throw Error("Invalid public key input")}}static unique(){let $=new G2(C_);return C_+=1,new G2($.toBuffer())}equals($){return this._bn.eq($._bn)}toBase58(){return g9.default.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let $=this.toBuffer();return new Uint8Array($.buffer,$.byteOffset,$.byteLength)}toBuffer(){let $=this._bn.toArrayLike(e1.Buffer);if($.length===pV)return $;let V=e1.Buffer.alloc(32);return $.copy(V,32-$.length),V}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed($,V,J){let Q=e1.Buffer.concat([$.toBuffer(),e1.Buffer.from(V),J.toBuffer()]),X=P_.sha256(Q);return new G2(X)}static createProgramAddressSync($,V){let J=e1.Buffer.alloc(0);$.forEach(function(X){if(X.length>i01)throw TypeError("Max seed length exceeded");J=e1.Buffer.concat([J,E2(X)])}),J=e1.Buffer.concat([J,V.toBuffer(),e1.Buffer.from("ProgramDerivedAddress")]);let Q=P_.sha256(J);if(__(Q))throw Error("Invalid seeds, address must fall off the curve");return new G2(Q)}static async createProgramAddress($,V){return this.createProgramAddressSync($,V)}static findProgramAddressSync($,V){let J=255,Q;while(J!=0){try{let X=$.concat(e1.Buffer.from([J]));Q=this.createProgramAddressSync(X,V)}catch(X){if(X instanceof TypeError)throw X;J--;continue}return[Q,J]}throw Error("Unable to find a viable program address nonce")}static async findProgramAddress($,V){return this.findProgramAddressSync($,V)}static isOnCurve($){let V=new G2($);return __(V.toBytes())}}f_=G2;G2.default=new f_("11111111111111111111111111111111");DX.set(G2,{kind:"struct",fields:[["_bn","u256"]]});var ag2=new G2("BPFLoader1111111111111111111111111111111111"),HX=1232,n01=127,u_=64;class a_ extends Error{constructor($){super(`Signature ${$} has expired: block height exceeded.`);this.signature=void 0,this.signature=$}}Object.defineProperty(a_.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class i_ extends Error{constructor($,V){super(`Transaction was not confirmed in ${V.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${$} using the Solana Explorer or CLI tools.`);this.signature=void 0,this.signature=$}}Object.defineProperty(i_.prototype,"name",{value:"TransactionExpiredTimeoutError"});class c_ extends Error{constructor($){super(`Signature ${$} has expired: the nonce is no longer valid.`);this.signature=void 0,this.signature=$}}Object.defineProperty(c_.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class JD{constructor($,V){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=$,this.accountKeysFromLookups=V}keySegments(){let $=[this.staticAccountKeys];if(this.accountKeysFromLookups)$.push(this.accountKeysFromLookups.writable),$.push(this.accountKeysFromLookups.readonly);return $}get($){for(let V of this.keySegments())if($<V.length)return V[$];else $-=V.length;return}get length(){return this.keySegments().flat().length}compileInstructions($){if(this.length>256)throw Error("Account index overflow encountered during compilation");let J=new Map;this.keySegments().flat().forEach((X,Y)=>{J.set(X.toBase58(),Y)});let Q=(X)=>{let Y=J.get(X.toBase58());if(Y===void 0)throw Error("Encountered an unknown instruction account key during compilation");return Y};return $.map((X)=>{return{programIdIndex:Q(X.programId),accountKeyIndexes:X.keys.map((Y)=>Q(Y.pubkey)),data:X.data}})}}var p2=($="publicKey")=>{return a.blob(32,$)};var P3=($="string")=>{let V=a.struct([a.u32("length"),a.u32("lengthPadding"),a.blob(a.offset(a.u32(),-8),"chars")],$),J=V.decode.bind(V),Q=V.encode.bind(V),X=V;return X.decode=(Y,G)=>{return J(Y,G).chars.toString()},X.encode=(Y,G,W)=>{let K={chars:e1.Buffer.from(Y,"utf8")};return Q(K,G,W)},X.alloc=(Y)=>{return a.u32().span+a.u32().span+e1.Buffer.from(Y,"utf8").length},X},o01=($="authorized")=>{return a.struct([p2("staker"),p2("withdrawer")],$)},s01=($="lockup")=>{return a.struct([a.ns64("unixTimestamp"),a.ns64("epoch"),p2("custodian")],$)},r01=($="voteInit")=>{return a.struct([p2("nodePubkey"),p2("authorizedVoter"),p2("authorizedWithdrawer"),a.u8("commission")],$)},t01=($="voteAuthorizeWithSeedArgs")=>{return a.struct([a.u32("voteAuthorizationType"),p2("currentAuthorityDerivedKeyOwnerPubkey"),P3("currentAuthorityDerivedKeySeed"),p2("newAuthorized")],$)};function n_($,V){let J=(X)=>{if(X.span>=0)return X.span;else if(typeof X.alloc==="function")return X.alloc(V[X.property]);else if("count"in X&&"elementLayout"in X){let Y=V[X.property];if(Array.isArray(Y))return Y.length*J(X.elementLayout)}else if("fields"in X)return n_({layout:X},V[X.property]);return 0},Q=0;return $.layout.fields.forEach((X)=>{Q+=J(X)}),Q}function IV($){let V=0,J=0;for(;;){let Q=$.shift();if(V|=(Q&127)<<J*7,J+=1,(Q&128)===0)break}return V}function TV($,V){let J=V;for(;;){let Q=J&127;if(J>>=7,J==0){$.push(Q);break}else Q|=128,$.push(Q)}}function y0($,V){if(!$)throw Error(V||"Assertion failed")}class YD{constructor($,V){this.payer=void 0,this.keyMetaMap=void 0,this.payer=$,this.keyMetaMap=V}static compile($,V){let J=new Map,Q=(Y)=>{let G=Y.toBase58(),W=J.get(G);if(W===void 0)W={isSigner:!1,isWritable:!1,isInvoked:!1},J.set(G,W);return W},X=Q(V);X.isSigner=!0,X.isWritable=!0;for(let Y of $){Q(Y.programId).isInvoked=!0;for(let G of Y.keys){let W=Q(G.pubkey);W.isSigner||=G.isSigner,W.isWritable||=G.isWritable}}return new YD(V,J)}getMessageComponents(){let $=[...this.keyMetaMap.entries()];y0($.length<=256,"Max static account keys length exceeded");let V=$.filter(([,W])=>W.isSigner&&W.isWritable),J=$.filter(([,W])=>W.isSigner&&!W.isWritable),Q=$.filter(([,W])=>!W.isSigner&&W.isWritable),X=$.filter(([,W])=>!W.isSigner&&!W.isWritable),Y={numRequiredSignatures:V.length+J.length,numReadonlySignedAccounts:J.length,numReadonlyUnsignedAccounts:X.length};{y0(V.length>0,"Expected at least one writable signer key");let[W]=V[0];y0(W===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}let G=[...V.map(([W])=>new G2(W)),...J.map(([W])=>new G2(W)),...Q.map(([W])=>new G2(W)),...X.map(([W])=>new G2(W))];return[Y,G]}extractTableLookup($){let[V,J]=this.drainKeysFoundInLookupTable($.state.addresses,(Y)=>!Y.isSigner&&!Y.isInvoked&&Y.isWritable),[Q,X]=this.drainKeysFoundInLookupTable($.state.addresses,(Y)=>!Y.isSigner&&!Y.isInvoked&&!Y.isWritable);if(V.length===0&&Q.length===0)return;return[{accountKey:$.key,writableIndexes:V,readonlyIndexes:Q},{writable:J,readonly:X}]}drainKeysFoundInLookupTable($,V){let J=[],Q=[];for(let[X,Y]of this.keyMetaMap.entries())if(V(Y)){let G=new G2(X),W=$.findIndex((K)=>K.equals(G));if(W>=0)y0(W<256,"Max lookup table index exceeded"),J.push(W),Q.push(G),this.keyMetaMap.delete(X)}return[J,Q]}}var o_="Reached end of buffer unexpectedly";function KX($){if($.length===0)throw Error(o_);return $.shift()}function AV($,...V){let[J]=V;if(V.length===2?J+(V[1]??0)>$.length:J>=$.length)throw Error(o_);return $.splice(...V)}class kV{constructor($){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=$.header,this.accountKeys=$.accountKeys.map((V)=>new G2(V)),this.recentBlockhash=$.recentBlockhash,this.instructions=$.instructions,this.instructions.forEach((V)=>this.indexToProgramIds.set(V.programIdIndex,this.accountKeys[V.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(($)=>({programIdIndex:$.programIdIndex,accountKeyIndexes:$.accounts,data:g9.default.decode($.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new JD(this.staticAccountKeys)}static compile($){let V=YD.compile($.instructions,$.payerKey),[J,Q]=V.getMessageComponents(),Y=new JD(Q).compileInstructions($.instructions).map((G)=>({programIdIndex:G.programIdIndex,accounts:G.accountKeyIndexes,data:g9.default.encode(G.data)}));return new kV({header:J,accountKeys:Q,recentBlockhash:$.recentBlockhash,instructions:Y})}isAccountSigner($){return $<this.header.numRequiredSignatures}isAccountWritable($){let V=this.header.numRequiredSignatures;if($>=this.header.numRequiredSignatures){let J=$-V,X=this.accountKeys.length-V-this.header.numReadonlyUnsignedAccounts;return J<X}else{let J=V-this.header.numReadonlySignedAccounts;return $<J}}isProgramId($){return this.indexToProgramIds.has($)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter(($,V)=>!this.isProgramId(V))}serialize(){let $=this.accountKeys.length,V=[];TV(V,$);let J=this.instructions.map((H)=>{let{accounts:U,programIdIndex:z}=H,M=Array.from(g9.default.decode(H.data)),L=[];TV(L,U.length);let B=[];return TV(B,M.length),{programIdIndex:z,keyIndicesCount:e1.Buffer.from(L),keyIndices:U,dataLength:e1.Buffer.from(B),data:M}}),Q=[];TV(Q,J.length);let X=e1.Buffer.alloc(HX);e1.Buffer.from(Q).copy(X);let Y=Q.length;J.forEach((H)=>{let z=a.struct([a.u8("programIdIndex"),a.blob(H.keyIndicesCount.length,"keyIndicesCount"),a.seq(a.u8("keyIndex"),H.keyIndices.length,"keyIndices"),a.blob(H.dataLength.length,"dataLength"),a.seq(a.u8("userdatum"),H.data.length,"data")]).encode(H,X,Y);Y+=z}),X=X.slice(0,Y);let G=a.struct([a.blob(1,"numRequiredSignatures"),a.blob(1,"numReadonlySignedAccounts"),a.blob(1,"numReadonlyUnsignedAccounts"),a.blob(V.length,"keyCount"),a.seq(p2("key"),$,"keys"),p2("recentBlockhash")]),W={numRequiredSignatures:e1.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:e1.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:e1.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:e1.Buffer.from(V),keys:this.accountKeys.map((H)=>E2(H.toBytes())),recentBlockhash:g9.default.decode(this.recentBlockhash)},K=e1.Buffer.alloc(2048),D=G.encode(W,K);return X.copy(K,D),K.slice(0,D+X.length)}static from($){let V=[...$],J=KX(V);if(J!==(J&n01))throw Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");let Q=KX(V),X=KX(V),Y=IV(V),G=[];for(let U=0;U<Y;U++){let z=AV(V,0,pV);G.push(new G2(e1.Buffer.from(z)))}let W=AV(V,0,pV),K=IV(V),D=[];for(let U=0;U<K;U++){let z=KX(V),M=IV(V),L=AV(V,0,M),B=IV(V),_=AV(V,0,B),T=g9.default.encode(e1.Buffer.from(_));D.push({programIdIndex:z,accounts:L,data:T})}let H={header:{numRequiredSignatures:J,numReadonlySignedAccounts:Q,numReadonlyUnsignedAccounts:X},recentBlockhash:g9.default.encode(e1.Buffer.from(W)),accountKeys:G,instructions:D};return new kV(H)}}var e01=e1.Buffer.alloc(u_).fill(0);class $0{constructor($){if(this.keys=void 0,this.programId=void 0,this.data=e1.Buffer.alloc(0),this.programId=$.programId,this.keys=$.keys,$.data)this.data=$.data}toJSON(){return{keys:this.keys.map(({pubkey:$,isSigner:V,isWritable:J})=>({pubkey:$.toJSON(),isSigner:V,isWritable:J})),programId:this.programId.toJSON(),data:[...this.data]}}}class Y0{get signature(){if(this.signatures.length>0)return this.signatures[0].signature;return null}constructor($){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!$)return;if($.feePayer)this.feePayer=$.feePayer;if($.signatures)this.signatures=$.signatures;if(Object.prototype.hasOwnProperty.call($,"nonceInfo")){let{minContextSlot:V,nonceInfo:J}=$;this.minNonceContextSlot=V,this.nonceInfo=J}else if(Object.prototype.hasOwnProperty.call($,"lastValidBlockHeight")){let{blockhash:V,lastValidBlockHeight:J}=$;this.recentBlockhash=V,this.lastValidBlockHeight=J}else{let{recentBlockhash:V,nonceInfo:J}=$;if(J)this.nonceInfo=J;this.recentBlockhash=V}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(($)=>$.toJSON()),signers:this.signatures.map(({publicKey:$})=>{return $.toJSON()})}}add(...$){if($.length===0)throw Error("No instructions");return $.forEach((V)=>{if("instructions"in V)this.instructions=this.instructions.concat(V.instructions);else if("data"in V&&"programId"in V&&"keys"in V)this.instructions.push(V);else this.instructions.push(new $0(V))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let $,V;if(this.nonceInfo)if($=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction)V=[this.nonceInfo.nonceInstruction,...this.instructions];else V=this.instructions;else $=this.recentBlockhash,V=this.instructions;if(!$)throw Error("Transaction recentBlockhash required");if(V.length<1)console.warn("No instructions provided");let J;if(this.feePayer)J=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)J=this.signatures[0].publicKey;else throw Error("Transaction fee payer required");for(let L=0;L<V.length;L++)if(V[L].programId===void 0)throw Error(`Transaction instruction index ${L} has undefined program id`);let Q=[],X=[];V.forEach((L)=>{L.keys.forEach((_)=>{X.push({..._})});let B=L.programId.toString();if(!Q.includes(B))Q.push(B)}),Q.forEach((L)=>{X.push({pubkey:new G2(L),isSigner:!1,isWritable:!1})});let Y=[];X.forEach((L)=>{let B=L.pubkey.toString(),_=Y.findIndex((T)=>{return T.pubkey.toString()===B});if(_>-1)Y[_].isWritable=Y[_].isWritable||L.isWritable,Y[_].isSigner=Y[_].isSigner||L.isSigner;else Y.push(L)}),Y.sort(function(L,B){if(L.isSigner!==B.isSigner)return L.isSigner?-1:1;if(L.isWritable!==B.isWritable)return L.isWritable?-1:1;let _={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return L.pubkey.toBase58().localeCompare(B.pubkey.toBase58(),"en",_)});let G=Y.findIndex((L)=>{return L.pubkey.equals(J)});if(G>-1){let[L]=Y.splice(G,1);L.isSigner=!0,L.isWritable=!0,Y.unshift(L)}else Y.unshift({pubkey:J,isSigner:!0,isWritable:!0});for(let L of this.signatures){let B=Y.findIndex((_)=>{return _.pubkey.equals(L.publicKey)});if(B>-1){if(!Y[B].isSigner)Y[B].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release.")}else throw Error(`unknown signer: ${L.publicKey.toString()}`)}let W=0,K=0,D=0,H=[],U=[];Y.forEach(({pubkey:L,isSigner:B,isWritable:_})=>{if(B){if(H.push(L.toString()),W+=1,!_)K+=1}else if(U.push(L.toString()),!_)D+=1});let z=H.concat(U),M=V.map((L)=>{let{data:B,programId:_}=L;return{programIdIndex:z.indexOf(_.toString()),accounts:L.keys.map((T)=>z.indexOf(T.pubkey.toString())),data:g9.default.encode(B)}});return M.forEach((L)=>{y0(L.programIdIndex>=0),L.accounts.forEach((B)=>y0(B>=0))}),new kV({header:{numRequiredSignatures:W,numReadonlySignedAccounts:K,numReadonlyUnsignedAccounts:D},accountKeys:z,recentBlockhash:$,instructions:M})}_compile(){let $=this.compileMessage(),V=$.accountKeys.slice(0,$.header.numRequiredSignatures);if(this.signatures.length===V.length){if(this.signatures.every((Q,X)=>{return V[X].equals(Q.publicKey)}))return $}return this.signatures=V.map((J)=>({signature:null,publicKey:J})),$}serializeMessage(){return this._compile().serialize()}async getEstimatedFee($){return(await $.getFeeForMessage(this.compileMessage())).value}setSigners(...$){if($.length===0)throw Error("No signers");let V=new Set;this.signatures=$.filter((J)=>{let Q=J.toString();if(V.has(Q))return!1;else return V.add(Q),!0}).map((J)=>({signature:null,publicKey:J}))}sign(...$){if($.length===0)throw Error("No signers");let V=new Set,J=[];for(let X of $){let Y=X.publicKey.toString();if(V.has(Y))continue;else V.add(Y),J.push(X)}this.signatures=J.map((X)=>({signature:null,publicKey:X.publicKey}));let Q=this._compile();this._partialSign(Q,...J)}partialSign(...$){if($.length===0)throw Error("No signers");let V=new Set,J=[];for(let X of $){let Y=X.publicKey.toString();if(V.has(Y))continue;else V.add(Y),J.push(X)}let Q=this._compile();this._partialSign(Q,...J)}_partialSign($,...V){let J=$.serialize();V.forEach((Q)=>{let X=g_(J,Q.secretKey);this._addSignature(Q.publicKey,E2(X))})}addSignature($,V){this._compile(),this._addSignature($,V)}_addSignature($,V){y0(V.length===64);let J=this.signatures.findIndex((Q)=>$.equals(Q.publicKey));if(J<0)throw Error(`unknown signer: ${$.toString()}`);this.signatures[J].signature=e1.Buffer.from(V)}verifySignatures($=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),$)}_getMessageSignednessErrors($,V){let J={};for(let{signature:Q,publicKey:X}of this.signatures)if(Q===null){if(V)(J.missing||=[]).push(X)}else if(!a01(Q,$,X.toBytes()))(J.invalid||=[]).push(X);return J.invalid||J.missing?J:void 0}serialize($){let{requireAllSignatures:V,verifySignatures:J}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},$),Q=this.serializeMessage();if(J){let X=this._getMessageSignednessErrors(Q,V);if(X){let Y="Signature verification failed.";if(X.invalid)Y+=`
18
+ Invalid signature for public key${X.invalid.length===1?"":"(s)"} [\`${X.invalid.map((G)=>G.toBase58()).join("`, `")}\`].`;if(X.missing)Y+=`
19
+ Missing signature for public key${X.missing.length===1?"":"(s)"} [\`${X.missing.map((G)=>G.toBase58()).join("`, `")}\`].`;throw Error(Y)}}return this._serialize(Q)}_serialize($){let{signatures:V}=this,J=[];TV(J,V.length);let Q=J.length+V.length*64+$.length,X=e1.Buffer.alloc(Q);return y0(V.length<256),e1.Buffer.from(J).copy(X,0),V.forEach(({signature:Y},G)=>{if(Y!==null)y0(Y.length===64,"signature has invalid length"),e1.Buffer.from(Y).copy(X,J.length+G*64)}),$.copy(X,J.length+V.length*64),y0(X.length<=HX,`Transaction too large: ${X.length} > ${HX}`),X}get keys(){return y0(this.instructions.length===1),this.instructions[0].keys.map(($)=>$.pubkey)}get programId(){return y0(this.instructions.length===1),this.instructions[0].programId}get data(){return y0(this.instructions.length===1),this.instructions[0].data}static from($){let V=[...$],J=IV(V),Q=[];for(let X=0;X<J;X++){let Y=AV(V,0,u_);Q.push(g9.default.encode(e1.Buffer.from(Y)))}return Y0.populate(kV.from(V),Q)}static populate($,V=[]){let J=new Y0;if(J.recentBlockhash=$.recentBlockhash,$.header.numRequiredSignatures>0)J.feePayer=$.accountKeys[0];return V.forEach((Q,X)=>{let Y={signature:Q==g9.default.encode(e01)?null:g9.default.decode(Q),publicKey:$.accountKeys[X]};J.signatures.push(Y)}),$.instructions.forEach((Q)=>{let X=Q.accounts.map((Y)=>{let G=$.accountKeys[Y];return{pubkey:G,isSigner:J.signatures.some((W)=>W.publicKey.toString()===G.toString())||$.isAccountSigner(Y),isWritable:$.isAccountWritable(Y)}});J.instructions.push(new $0({keys:X,programId:$.accountKeys[Q.programIdIndex],data:g9.default.decode(Q.data)}))}),J._message=$,J._json=J.toJSON(),J}}var $91=160,V91=64,J91=$91/V91,Q91=1000/J91,w8=new G2("SysvarC1ock11111111111111111111111111111111"),ig2=new G2("SysvarEpochSchedu1e111111111111111111111111"),cg2=new G2("Sysvar1nstructions1111111111111111111111111"),rq=new G2("SysvarRecentB1ockHashes11111111111111111111"),EV=new G2("SysvarRent111111111111111111111111111111111"),ng2=new G2("SysvarRewards111111111111111111111111111111"),og2=new G2("SysvarS1otHashes111111111111111111111111111"),sg2=new G2("SysvarS1otHistory11111111111111111111111111"),tq=new G2("SysvarStakeHistory1111111111111111111111111");class s_ extends Error{constructor({action:$,signature:V,transactionMessage:J,logs:Q}){let X=Q?`Logs:
20
+ ${JSON.stringify(Q.slice(-10),null,2)}. `:"",Y="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.",G;switch($){case"send":G=`Transaction ${V} resulted in an error.
21
+ ${J}. `+X+"\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.";break;case"simulate":G=`Simulation failed.
22
+ Message: ${J}.
23
+ `+X+"\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.";break;default:G=`Unknown action '${((W)=>W)($)}'`}super(G);this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=V,this.transactionMessage=J,this.transactionLogs=Q?Q:void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){let $=this.transactionLogs;if($!=null&&typeof $==="object"&&"then"in $)return;return $}async getLogs($){if(!Array.isArray(this.transactionLogs))this.transactionLogs=new Promise((V,J)=>{$.getTransaction(this.signature).then((Q)=>{if(Q&&Q.meta&&Q.meta.logMessages){let X=Q.meta.logMessages;this.transactionLogs=X,V(X)}else J(Error("Log messages not found"))}).catch(J)});return await this.transactionLogs}}async function I_($,V,J,Q){let X=Q&&{skipPreflight:Q.skipPreflight,preflightCommitment:Q.preflightCommitment||Q.commitment,maxRetries:Q.maxRetries,minContextSlot:Q.minContextSlot},Y=await $.sendTransaction(V,J,X),G;if(V.recentBlockhash!=null&&V.lastValidBlockHeight!=null)G=(await $.confirmTransaction({abortSignal:Q?.abortSignal,signature:Y,blockhash:V.recentBlockhash,lastValidBlockHeight:V.lastValidBlockHeight},Q&&Q.commitment)).value;else if(V.minNonceContextSlot!=null&&V.nonceInfo!=null){let{nonceInstruction:W}=V.nonceInfo,K=W.keys[0].pubkey;G=(await $.confirmTransaction({abortSignal:Q?.abortSignal,minContextSlot:V.minNonceContextSlot,nonceAccountPubkey:K,nonceValue:V.nonceInfo.nonce,signature:Y},Q&&Q.commitment)).value}else{if(Q?.abortSignal!=null)console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable.");G=(await $.confirmTransaction(Y,Q&&Q.commitment)).value}if(G.err){if(Y!=null)throw new s_({action:"send",signature:Y,transactionMessage:`Status: (${JSON.stringify(G)})`});throw Error(`Transaction ${Y} failed (${JSON.stringify(G)})`)}return Y}function X91($){return new Promise((V)=>setTimeout(V,$))}function I2($,V){let J=$.layout.span>=0?$.layout.span:n_($,V),Q=e1.Buffer.alloc(J),X=Object.assign({instruction:$.index},V);return $.layout.encode(X,Q),Q}var Y91=a.nu64("lamportsPerSignature"),G91=a.struct([a.u32("version"),a.u32("state"),p2("authorizedPubkey"),p2("nonce"),a.struct([Y91],"feeCalculator")]),T_=G91.span;function F3($){let V=x_.blob(8,$),J=V.decode.bind(V),Q=V.encode.bind(V),X=V,Y=d_.getU64Codec();return X.decode=(G,W)=>{let K=J(G,W);return Y.decode(K)},X.encode=(G,W,K)=>{let D=Y.encode(G);return Q(D,W,K)},X}var H6=Object.freeze({Create:{index:0,layout:a.struct([a.u32("instruction"),a.ns64("lamports"),a.ns64("space"),p2("programId")])},Assign:{index:1,layout:a.struct([a.u32("instruction"),p2("programId")])},Transfer:{index:2,layout:a.struct([a.u32("instruction"),F3("lamports")])},CreateWithSeed:{index:3,layout:a.struct([a.u32("instruction"),p2("base"),P3("seed"),a.ns64("lamports"),a.ns64("space"),p2("programId")])},AdvanceNonceAccount:{index:4,layout:a.struct([a.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:a.struct([a.u32("instruction"),a.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:a.struct([a.u32("instruction"),p2("authorized")])},AuthorizeNonceAccount:{index:7,layout:a.struct([a.u32("instruction"),p2("authorized")])},Allocate:{index:8,layout:a.struct([a.u32("instruction"),a.ns64("space")])},AllocateWithSeed:{index:9,layout:a.struct([a.u32("instruction"),p2("base"),P3("seed"),a.ns64("space"),p2("programId")])},AssignWithSeed:{index:10,layout:a.struct([a.u32("instruction"),p2("base"),P3("seed"),p2("programId")])},TransferWithSeed:{index:11,layout:a.struct([a.u32("instruction"),F3("lamports"),P3("seed"),p2("programId")])},UpgradeNonceAccount:{index:12,layout:a.struct([a.u32("instruction")])}});class w9{constructor(){}static createAccount($){let V=H6.Create,J=I2(V,{lamports:$.lamports,space:$.space,programId:E2($.programId.toBuffer())});return new $0({keys:[{pubkey:$.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:$.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:J})}static transfer($){let V,J;if("basePubkey"in $){let Q=H6.TransferWithSeed;V=I2(Q,{lamports:BigInt($.lamports),seed:$.seed,programId:E2($.programId.toBuffer())}),J=[{pubkey:$.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:$.basePubkey,isSigner:!0,isWritable:!1},{pubkey:$.toPubkey,isSigner:!1,isWritable:!0}]}else{let Q=H6.Transfer;V=I2(Q,{lamports:BigInt($.lamports)}),J=[{pubkey:$.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:$.toPubkey,isSigner:!1,isWritable:!0}]}return new $0({keys:J,programId:this.programId,data:V})}static assign($){let V,J;if("basePubkey"in $){let Q=H6.AssignWithSeed;V=I2(Q,{base:E2($.basePubkey.toBuffer()),seed:$.seed,programId:E2($.programId.toBuffer())}),J=[{pubkey:$.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:$.basePubkey,isSigner:!0,isWritable:!1}]}else{let Q=H6.Assign;V=I2(Q,{programId:E2($.programId.toBuffer())}),J=[{pubkey:$.accountPubkey,isSigner:!0,isWritable:!0}]}return new $0({keys:J,programId:this.programId,data:V})}static createAccountWithSeed($){let V=H6.CreateWithSeed,J=I2(V,{base:E2($.basePubkey.toBuffer()),seed:$.seed,lamports:$.lamports,space:$.space,programId:E2($.programId.toBuffer())}),Q=[{pubkey:$.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:$.newAccountPubkey,isSigner:!1,isWritable:!0}];if(!$.basePubkey.equals($.fromPubkey))Q.push({pubkey:$.basePubkey,isSigner:!0,isWritable:!1});return new $0({keys:Q,programId:this.programId,data:J})}static createNonceAccount($){let V=new Y0;if("basePubkey"in $&&"seed"in $)V.add(w9.createAccountWithSeed({fromPubkey:$.fromPubkey,newAccountPubkey:$.noncePubkey,basePubkey:$.basePubkey,seed:$.seed,lamports:$.lamports,space:T_,programId:this.programId}));else V.add(w9.createAccount({fromPubkey:$.fromPubkey,newAccountPubkey:$.noncePubkey,lamports:$.lamports,space:T_,programId:this.programId}));let J={noncePubkey:$.noncePubkey,authorizedPubkey:$.authorizedPubkey};return V.add(this.nonceInitialize(J)),V}static nonceInitialize($){let V=H6.InitializeNonceAccount,J=I2(V,{authorized:E2($.authorizedPubkey.toBuffer())}),Q={keys:[{pubkey:$.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:rq,isSigner:!1,isWritable:!1},{pubkey:EV,isSigner:!1,isWritable:!1}],programId:this.programId,data:J};return new $0(Q)}static nonceAdvance($){let V=H6.AdvanceNonceAccount,J=I2(V),Q={keys:[{pubkey:$.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:rq,isSigner:!1,isWritable:!1},{pubkey:$.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:J};return new $0(Q)}static nonceWithdraw($){let V=H6.WithdrawNonceAccount,J=I2(V,{lamports:$.lamports});return new $0({keys:[{pubkey:$.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:$.toPubkey,isSigner:!1,isWritable:!0},{pubkey:rq,isSigner:!1,isWritable:!1},{pubkey:EV,isSigner:!1,isWritable:!1},{pubkey:$.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:J})}static nonceAuthorize($){let V=H6.AuthorizeNonceAccount,J=I2(V,{authorized:E2($.newAuthorizedPubkey.toBuffer())});return new $0({keys:[{pubkey:$.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:$.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:J})}static allocate($){let V,J;if("basePubkey"in $){let Q=H6.AllocateWithSeed;V=I2(Q,{base:E2($.basePubkey.toBuffer()),seed:$.seed,space:$.space,programId:E2($.programId.toBuffer())}),J=[{pubkey:$.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:$.basePubkey,isSigner:!0,isWritable:!1}]}else{let Q=H6.Allocate;V=I2(Q,{space:$.space}),J=[{pubkey:$.accountPubkey,isSigner:!0,isWritable:!0}]}return new $0({keys:J,programId:this.programId,data:V})}}w9.programId=new G2("11111111111111111111111111111111");var W91=HX-300;class ZX{constructor(){}static getMinNumSignatures($){return 2*(Math.ceil($/ZX.chunkSize)+1+1)}static async load($,V,J,Q,X){{let H=await $.getMinimumBalanceForRentExemption(X.length),U=await $.getAccountInfo(J.publicKey,"confirmed"),z=null;if(U!==null){if(U.executable)return console.error("Program load failed, account is already executable"),!1;if(U.data.length!==X.length)z=z||new Y0,z.add(w9.allocate({accountPubkey:J.publicKey,space:X.length}));if(!U.owner.equals(Q))z=z||new Y0,z.add(w9.assign({accountPubkey:J.publicKey,programId:Q}));if(U.lamports<H)z=z||new Y0,z.add(w9.transfer({fromPubkey:V.publicKey,toPubkey:J.publicKey,lamports:H-U.lamports}))}else z=new Y0().add(w9.createAccount({fromPubkey:V.publicKey,newAccountPubkey:J.publicKey,lamports:H>0?H:1,space:X.length,programId:Q}));if(z!==null)await I_($,z,[V,J],{commitment:"confirmed"})}let Y=a.struct([a.u32("instruction"),a.u32("offset"),a.u32("bytesLength"),a.u32("bytesLengthPadding"),a.seq(a.u8("byte"),a.offset(a.u32(),-8),"bytes")]),G=ZX.chunkSize,W=0,K=X,D=[];while(K.length>0){let H=K.slice(0,G),U=e1.Buffer.alloc(G+16);Y.encode({instruction:0,offset:W,bytes:H,bytesLength:0,bytesLengthPadding:0},U);let z=new Y0().add({keys:[{pubkey:J.publicKey,isSigner:!0,isWritable:!0}],programId:Q,data:U});if(D.push(I_($,z,[V,J],{commitment:"confirmed"})),$._rpcEndpoint.includes("solana.com"))await X91(250);W+=G,K=K.slice(G)}await Promise.all(D);{let H=a.struct([a.u32("instruction")]),U=e1.Buffer.alloc(H.span);H.encode({instruction:1},U);let z=new Y0().add({keys:[{pubkey:J.publicKey,isSigner:!0,isWritable:!0},{pubkey:EV,isSigner:!1,isWritable:!1}],programId:Q,data:U}),M="processed",L=await $.sendTransaction(z,[V,J],{preflightCommitment:M}),{context:B,value:_}=await $.confirmTransaction({signature:L,lastValidBlockHeight:z.lastValidBlockHeight,blockhash:z.recentBlockhash},M);if(_.err)throw Error(`Transaction ${L} failed (${JSON.stringify(_)})`);while(!0){try{if(await $.getSlot({commitment:M})>B.slot)break}catch{}await new Promise((T)=>setTimeout(T,Math.round(Q91/2)))}}return!0}}ZX.chunkSize=W91;var rg2=new G2("BPFLoader2111111111111111111111111111111111");/*!
24
+ * humanize-ms - index.js
25
+ * Copyright(c) 2014 dead_horse <dead_horse@qq.com>
26
+ * MIT Licensed
27
+ */var tg2=typeof globalThis.fetch==="function"?globalThis.fetch:async function($,V){let J=typeof $==="string"&&$.slice(0,2)==="//"?"https:"+$:$;return await u01.default(J,V)};class K91 extends O_.CommonClient{constructor($,V,J){let Q=(X)=>{let Y=O_.WebSocket(X,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1000,...V});if("socket"in Y)this.underlyingSocket=Y.socket;else this.underlyingSocket=Y;return Y};super(Q,$,V,J);this.underlyingSocket=void 0}call(...$){let V=this.underlyingSocket?.readyState;if(V===1)return super.call(...$);return Promise.reject(Error("Tried to call a JSON-RPC method `"+$[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+V+")"))}notify(...$){let V=this.underlyingSocket?.readyState;if(V===1)return super.notify(...$);return Promise.reject(Error("Tried to send a JSON-RPC notification `"+$[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+V+")"))}}var eg2={index:1,layout:a.struct([a.u32("typeIndex"),F3("deactivationSlot"),a.nu64("lastExtendedSlot"),a.u8("lastExtendedStartIndex"),a.u8(),a.seq(p2(),a.offset(a.u8(),-1),"authority")])};var B0=j.coerce(j.instance(G2),j.string(),($)=>new G2($)),r_=j.tuple([j.string(),j.literal("base64")]),GD=j.coerce(j.instance(e1.Buffer),r_,($)=>e1.Buffer.from($[0],"base64"));function t_($){return j.union([j.type({jsonrpc:j.literal("2.0"),id:j.string(),result:$}),j.type({jsonrpc:j.literal("2.0"),id:j.string(),error:j.type({code:j.unknown(),message:j.string(),data:j.optional(j.any())})})])}var q91=t_(j.unknown());function V0($){return j.coerce(t_($),q91,(V)=>{if("error"in V)return V;else return{...V,result:j.create(V.result,$)}})}function m6($){return V0(j.type({context:j.type({slot:j.number()}),value:$}))}function wX($){return j.type({context:j.type({slot:j.number()}),value:$})}var D91=j.type({foundation:j.number(),foundationTerm:j.number(),initial:j.number(),taper:j.number(),terminal:j.number()}),$l2=V0(j.array(j.nullable(j.type({epoch:j.number(),effectiveSlot:j.number(),amount:j.number(),postBalance:j.number(),commission:j.optional(j.nullable(j.number()))})))),H91=j.array(j.type({slot:j.number(),prioritizationFee:j.number()})),Z91=j.type({total:j.number(),validator:j.number(),foundation:j.number(),epoch:j.number()}),U91=j.type({epoch:j.number(),slotIndex:j.number(),slotsInEpoch:j.number(),absoluteSlot:j.number(),blockHeight:j.optional(j.number()),transactionCount:j.optional(j.number())}),w91=j.type({slotsPerEpoch:j.number(),leaderScheduleSlotOffset:j.number(),warmup:j.boolean(),firstNormalEpoch:j.number(),firstNormalSlot:j.number()}),z91=j.record(j.string(),j.array(j.number())),K7=j.nullable(j.union([j.type({}),j.string()])),j91=j.type({err:K7}),N91=j.literal("receivedSignature"),Vl2=j.type({"solana-core":j.string(),"feature-set":j.optional(j.number())}),M91=j.type({program:j.string(),programId:B0,parsed:j.unknown()}),L91=j.type({programId:B0,accounts:j.array(B0),data:j.string()}),Jl2=m6(j.type({err:j.nullable(j.union([j.type({}),j.string()])),logs:j.nullable(j.array(j.string())),accounts:j.optional(j.nullable(j.array(j.nullable(j.type({executable:j.boolean(),owner:j.string(),lamports:j.number(),data:j.array(j.string()),rentEpoch:j.optional(j.number())}))))),unitsConsumed:j.optional(j.number()),returnData:j.optional(j.nullable(j.type({programId:j.string(),data:j.tuple([j.string(),j.literal("base64")])}))),innerInstructions:j.optional(j.nullable(j.array(j.type({index:j.number(),instructions:j.array(j.union([M91,L91]))}))))})),Ql2=m6(j.type({byIdentity:j.record(j.string(),j.array(j.number())),range:j.type({firstSlot:j.number(),lastSlot:j.number()})}));var Xl2=V0(D91),Yl2=V0(Z91),Gl2=V0(H91),Wl2=V0(U91),Kl2=V0(w91),ql2=V0(z91),Dl2=V0(j.number()),Hl2=m6(j.type({total:j.number(),circulating:j.number(),nonCirculating:j.number(),nonCirculatingAccounts:j.array(B0)})),R91=j.type({amount:j.string(),uiAmount:j.nullable(j.number()),decimals:j.number(),uiAmountString:j.optional(j.string())}),Zl2=m6(j.array(j.type({address:B0,amount:j.string(),uiAmount:j.nullable(j.number()),decimals:j.number(),uiAmountString:j.optional(j.string())}))),Ul2=m6(j.array(j.type({pubkey:B0,account:j.type({executable:j.boolean(),owner:B0,lamports:j.number(),data:GD,rentEpoch:j.number()})}))),QD=j.type({program:j.string(),parsed:j.unknown(),space:j.number()}),wl2=m6(j.array(j.type({pubkey:B0,account:j.type({executable:j.boolean(),owner:B0,lamports:j.number(),data:QD,rentEpoch:j.number()})}))),zl2=m6(j.array(j.type({lamports:j.number(),address:B0}))),WD=j.type({executable:j.boolean(),owner:B0,lamports:j.number(),data:GD,rentEpoch:j.number()}),jl2=j.type({pubkey:B0,account:WD}),P91=j.coerce(j.union([j.instance(e1.Buffer),QD]),j.union([r_,QD]),($)=>{if(Array.isArray($))return j.create($,GD);else return $}),O91=j.type({executable:j.boolean(),owner:B0,lamports:j.number(),data:P91,rentEpoch:j.number()}),Nl2=j.type({pubkey:B0,account:O91}),Ml2=j.type({state:j.union([j.literal("active"),j.literal("inactive"),j.literal("activating"),j.literal("deactivating")]),active:j.number(),inactive:j.number()}),Ll2=V0(j.array(j.type({signature:j.string(),slot:j.number(),err:K7,memo:j.nullable(j.string()),blockTime:j.optional(j.nullable(j.number()))}))),Rl2=V0(j.array(j.type({signature:j.string(),slot:j.number(),err:K7,memo:j.nullable(j.string()),blockTime:j.optional(j.nullable(j.number()))}))),Pl2=j.type({subscription:j.number(),result:wX(WD)}),F91=j.type({pubkey:B0,account:WD}),Ol2=j.type({subscription:j.number(),result:wX(F91)}),B91=j.type({parent:j.number(),slot:j.number(),root:j.number()}),Fl2=j.type({subscription:j.number(),result:B91}),S91=j.union([j.type({type:j.union([j.literal("firstShredReceived"),j.literal("completed"),j.literal("optimisticConfirmation"),j.literal("root")]),slot:j.number(),timestamp:j.number()}),j.type({type:j.literal("createdBank"),parent:j.number(),slot:j.number(),timestamp:j.number()}),j.type({type:j.literal("frozen"),slot:j.number(),timestamp:j.number(),stats:j.type({numTransactionEntries:j.number(),numSuccessfulTransactions:j.number(),numFailedTransactions:j.number(),maxTransactionsPerEntry:j.number()})}),j.type({type:j.literal("dead"),slot:j.number(),timestamp:j.number(),err:j.string()})]),Bl2=j.type({subscription:j.number(),result:S91}),Sl2=j.type({subscription:j.number(),result:wX(j.union([j91,N91]))}),_l2=j.type({subscription:j.number(),result:j.number()}),Cl2=j.type({pubkey:j.string(),gossip:j.nullable(j.string()),tpu:j.nullable(j.string()),rpc:j.nullable(j.string()),version:j.nullable(j.string())}),A_=j.type({votePubkey:j.string(),nodePubkey:j.string(),activatedStake:j.number(),epochVoteAccount:j.boolean(),epochCredits:j.array(j.tuple([j.number(),j.number(),j.number()])),commission:j.number(),lastVote:j.number(),rootSlot:j.nullable(j.number())}),Il2=V0(j.type({current:j.array(A_),delinquent:j.array(A_)})),_91=j.union([j.literal("processed"),j.literal("confirmed"),j.literal("finalized")]),C91=j.type({slot:j.number(),confirmations:j.nullable(j.number()),err:K7,confirmationStatus:j.optional(_91)}),Tl2=m6(j.array(j.nullable(C91))),Al2=V0(j.number()),e_=j.type({accountKey:B0,writableIndexes:j.array(j.number()),readonlyIndexes:j.array(j.number())}),KD=j.type({signatures:j.array(j.string()),message:j.type({accountKeys:j.array(j.string()),header:j.type({numRequiredSignatures:j.number(),numReadonlySignedAccounts:j.number(),numReadonlyUnsignedAccounts:j.number()}),instructions:j.array(j.type({accounts:j.array(j.number()),data:j.string(),programIdIndex:j.number()})),recentBlockhash:j.string(),addressTableLookups:j.optional(j.array(e_))})}),$C=j.type({pubkey:B0,signer:j.boolean(),writable:j.boolean(),source:j.optional(j.union([j.literal("transaction"),j.literal("lookupTable")]))}),VC=j.type({accountKeys:j.array($C),signatures:j.array(j.string())}),JC=j.type({parsed:j.unknown(),program:j.string(),programId:B0}),QC=j.type({accounts:j.array(B0),data:j.string(),programId:B0}),I91=j.union([QC,JC]),T91=j.union([j.type({parsed:j.unknown(),program:j.string(),programId:j.string()}),j.type({accounts:j.array(j.string()),data:j.string(),programId:j.string()})]),XC=j.coerce(I91,T91,($)=>{if("accounts"in $)return j.create($,QC);else return j.create($,JC)}),YC=j.type({signatures:j.array(j.string()),message:j.type({accountKeys:j.array($C),instructions:j.array(XC),recentBlockhash:j.string(),addressTableLookups:j.optional(j.nullable(j.array(e_)))})}),UX=j.type({accountIndex:j.number(),mint:j.string(),owner:j.optional(j.string()),programId:j.optional(j.string()),uiTokenAmount:R91}),GC=j.type({writable:j.array(B0),readonly:j.array(B0)}),zX=j.type({err:K7,fee:j.number(),innerInstructions:j.optional(j.nullable(j.array(j.type({index:j.number(),instructions:j.array(j.type({accounts:j.array(j.number()),data:j.string(),programIdIndex:j.number()}))})))),preBalances:j.array(j.number()),postBalances:j.array(j.number()),logMessages:j.optional(j.nullable(j.array(j.string()))),preTokenBalances:j.optional(j.nullable(j.array(UX))),postTokenBalances:j.optional(j.nullable(j.array(UX))),loadedAddresses:j.optional(GC),computeUnitsConsumed:j.optional(j.number()),costUnits:j.optional(j.number())}),qD=j.type({err:K7,fee:j.number(),innerInstructions:j.optional(j.nullable(j.array(j.type({index:j.number(),instructions:j.array(XC)})))),preBalances:j.array(j.number()),postBalances:j.array(j.number()),logMessages:j.optional(j.nullable(j.array(j.string()))),preTokenBalances:j.optional(j.nullable(j.array(UX))),postTokenBalances:j.optional(j.nullable(j.array(UX))),loadedAddresses:j.optional(GC),computeUnitsConsumed:j.optional(j.number()),costUnits:j.optional(j.number())}),S3=j.union([j.literal(0),j.literal("legacy")]),q7=j.type({pubkey:j.string(),lamports:j.number(),postBalance:j.nullable(j.number()),rewardType:j.nullable(j.string()),commission:j.optional(j.nullable(j.number()))}),pl2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),transactions:j.array(j.type({transaction:KD,meta:j.nullable(zX),version:j.optional(S3)})),rewards:j.optional(j.array(q7)),blockTime:j.nullable(j.number()),blockHeight:j.nullable(j.number())}))),ml2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),rewards:j.optional(j.array(q7)),blockTime:j.nullable(j.number()),blockHeight:j.nullable(j.number())}))),kl2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),transactions:j.array(j.type({transaction:VC,meta:j.nullable(zX),version:j.optional(S3)})),rewards:j.optional(j.array(q7)),blockTime:j.nullable(j.number()),blockHeight:j.nullable(j.number())}))),El2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),transactions:j.array(j.type({transaction:YC,meta:j.nullable(qD),version:j.optional(S3)})),rewards:j.optional(j.array(q7)),blockTime:j.nullable(j.number()),blockHeight:j.nullable(j.number())}))),vl2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),transactions:j.array(j.type({transaction:VC,meta:j.nullable(qD),version:j.optional(S3)})),rewards:j.optional(j.array(q7)),blockTime:j.nullable(j.number()),blockHeight:j.nullable(j.number())}))),hl2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),rewards:j.optional(j.array(q7)),blockTime:j.nullable(j.number()),blockHeight:j.nullable(j.number())}))),xl2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),transactions:j.array(j.type({transaction:KD,meta:j.nullable(zX)})),rewards:j.optional(j.array(q7)),blockTime:j.nullable(j.number())}))),dl2=V0(j.nullable(j.type({blockhash:j.string(),previousBlockhash:j.string(),parentSlot:j.number(),signatures:j.array(j.string()),blockTime:j.nullable(j.number())}))),yl2=V0(j.nullable(j.type({slot:j.number(),meta:j.nullable(zX),blockTime:j.optional(j.nullable(j.number())),transaction:KD,version:j.optional(S3)}))),bl2=V0(j.nullable(j.type({slot:j.number(),transaction:YC,meta:j.nullable(qD),blockTime:j.optional(j.nullable(j.number())),version:j.optional(S3)}))),gl2=m6(j.type({blockhash:j.string(),lastValidBlockHeight:j.number()})),ll2=m6(j.boolean()),A91=j.type({slot:j.number(),numTransactions:j.number(),numSlots:j.number(),samplePeriodSecs:j.number()}),fl2=V0(j.array(A91)),ul2=m6(j.nullable(j.type({feeCalculator:j.type({lamportsPerSignature:j.number()})}))),al2=V0(j.string()),il2=V0(j.string()),p91=j.type({err:K7,logs:j.array(j.string()),signature:j.string()}),cl2=j.type({result:wX(p91),subscription:j.number()});class O3{constructor($){this._keypair=void 0,this._keypair=$??S_()}static generate(){return new O3(S_())}static fromSecretKey($,V){if($.byteLength!==64)throw Error("bad secret key size");let J=$.slice(32,64);if(!V||!V.skipValidation){let Q=$.slice(0,32),X=VD(Q);for(let Y=0;Y<32;Y++)if(J[Y]!==X[Y])throw Error("provided secretKey is invalid")}return new O3({publicKey:J,secretKey:$})}static fromSeed($){let V=VD($),J=new Uint8Array(64);return J.set($),J.set(V,32),new O3({publicKey:V,secretKey:J})}get publicKey(){return new G2(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}var _V=Object.freeze({CreateLookupTable:{index:0,layout:a.struct([a.u32("instruction"),F3("recentSlot"),a.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:a.struct([a.u32("instruction")])},ExtendLookupTable:{index:2,layout:a.struct([a.u32("instruction"),F3(),a.seq(p2(),a.offset(a.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:a.struct([a.u32("instruction")])},CloseLookupTable:{index:4,layout:a.struct([a.u32("instruction")])}});class WC{constructor(){}static createLookupTable($){let[V,J]=G2.findProgramAddressSync([$.authority.toBuffer(),d_.getU64Encoder().encode($.recentSlot)],this.programId),Q=_V.CreateLookupTable,X=I2(Q,{recentSlot:BigInt($.recentSlot),bumpSeed:J}),Y=[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:$.authority,isSigner:!0,isWritable:!1},{pubkey:$.payer,isSigner:!0,isWritable:!0},{pubkey:w9.programId,isSigner:!1,isWritable:!1}];return[new $0({programId:this.programId,keys:Y,data:X}),V]}static freezeLookupTable($){let V=_V.FreezeLookupTable,J=I2(V),Q=[{pubkey:$.lookupTable,isSigner:!1,isWritable:!0},{pubkey:$.authority,isSigner:!0,isWritable:!1}];return new $0({programId:this.programId,keys:Q,data:J})}static extendLookupTable($){let V=_V.ExtendLookupTable,J=I2(V,{addresses:$.addresses.map((X)=>X.toBytes())}),Q=[{pubkey:$.lookupTable,isSigner:!1,isWritable:!0},{pubkey:$.authority,isSigner:!0,isWritable:!1}];if($.payer)Q.push({pubkey:$.payer,isSigner:!0,isWritable:!0},{pubkey:w9.programId,isSigner:!1,isWritable:!1});return new $0({programId:this.programId,keys:Q,data:J})}static deactivateLookupTable($){let V=_V.DeactivateLookupTable,J=I2(V),Q=[{pubkey:$.lookupTable,isSigner:!1,isWritable:!0},{pubkey:$.authority,isSigner:!0,isWritable:!1}];return new $0({programId:this.programId,keys:Q,data:J})}static closeLookupTable($){let V=_V.CloseLookupTable,J=I2(V),Q=[{pubkey:$.lookupTable,isSigner:!1,isWritable:!0},{pubkey:$.authority,isSigner:!0,isWritable:!1},{pubkey:$.recipient,isSigner:!1,isWritable:!0}];return new $0({programId:this.programId,keys:Q,data:J})}}WC.programId=new G2("AddressLookupTab1e1111111111111111111111111");var qX=Object.freeze({RequestUnits:{index:0,layout:a.struct([a.u8("instruction"),a.u32("units"),a.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:a.struct([a.u8("instruction"),a.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:a.struct([a.u8("instruction"),a.u32("units")])},SetComputeUnitPrice:{index:3,layout:a.struct([a.u8("instruction"),F3("microLamports")])}});class KC{constructor(){}static requestUnits($){let V=qX.RequestUnits,J=I2(V,$);return new $0({keys:[],programId:this.programId,data:J})}static requestHeapFrame($){let V=qX.RequestHeapFrame,J=I2(V,$);return new $0({keys:[],programId:this.programId,data:J})}static setComputeUnitLimit($){let V=qX.SetComputeUnitLimit,J=I2(V,$);return new $0({keys:[],programId:this.programId,data:J})}static setComputeUnitPrice($){let V=qX.SetComputeUnitPrice,J=I2(V,{microLamports:BigInt($.microLamports)});return new $0({keys:[],programId:this.programId,data:J})}}KC.programId=new G2("ComputeBudget111111111111111111111111111111");var p_=64,m_=32,k_=64,E_=a.struct([a.u8("numSignatures"),a.u8("padding"),a.u16("signatureOffset"),a.u16("signatureInstructionIndex"),a.u16("publicKeyOffset"),a.u16("publicKeyInstructionIndex"),a.u16("messageDataOffset"),a.u16("messageDataSize"),a.u16("messageInstructionIndex")]);class DD{constructor(){}static createInstructionWithPublicKey($){let{publicKey:V,message:J,signature:Q,instructionIndex:X}=$;y0(V.length===m_,`Public Key must be ${m_} bytes but received ${V.length} bytes`),y0(Q.length===k_,`Signature must be ${k_} bytes but received ${Q.length} bytes`);let Y=E_.span,G=Y+V.length,W=G+Q.length,K=1,D=e1.Buffer.alloc(W+J.length),H=X==null?65535:X;return E_.encode({numSignatures:K,padding:0,signatureOffset:G,signatureInstructionIndex:H,publicKeyOffset:Y,publicKeyInstructionIndex:H,messageDataOffset:W,messageDataSize:J.length,messageInstructionIndex:H},D),D.fill(V,Y),D.fill(Q,G),D.fill(J,W),new $0({keys:[],programId:DD.programId,data:D})}static createInstructionWithPrivateKey($){let{privateKey:V,message:J,instructionIndex:Q}=$;y0(V.length===p_,`Private key must be ${p_} bytes but received ${V.length} bytes`);try{let X=O3.fromSecretKey(V),Y=X.publicKey.toBytes(),G=g_(J,X.secretKey);return this.createInstructionWithPublicKey({publicKey:Y,message:J,signature:G,instructionIndex:Q})}catch(X){throw Error(`Error creating instruction; ${X}`)}}}DD.programId=new G2("Ed25519SigVerify111111111111111111111111111");var m91=($,V)=>{let J=XD.secp256k1.sign($,V);return[J.toCompactRawBytes(),J.recovery]};XD.secp256k1.utils.isValidPrivateKey;var k91=XD.secp256k1.getPublicKey,v_=32,eq=20,h_=64,E91=11,$D=a.struct([a.u8("numSignatures"),a.u16("signatureOffset"),a.u8("signatureInstructionIndex"),a.u16("ethAddressOffset"),a.u8("ethAddressInstructionIndex"),a.u16("messageDataOffset"),a.u16("messageDataSize"),a.u8("messageInstructionIndex"),a.blob(20,"ethAddress"),a.blob(64,"signature"),a.u8("recoveryId")]);class mV{constructor(){}static publicKeyToEthAddress($){y0($.length===h_,`Public key must be ${h_} bytes but received ${$.length} bytes`);try{return e1.Buffer.from(F_.keccak_256(E2($))).slice(-eq)}catch(V){throw Error(`Error constructing Ethereum address: ${V}`)}}static createInstructionWithPublicKey($){let{publicKey:V,message:J,signature:Q,recoveryId:X,instructionIndex:Y}=$;return mV.createInstructionWithEthAddress({ethAddress:mV.publicKeyToEthAddress(V),message:J,signature:Q,recoveryId:X,instructionIndex:Y})}static createInstructionWithEthAddress($){let{ethAddress:V,message:J,signature:Q,recoveryId:X,instructionIndex:Y=0}=$,G;if(typeof V==="string")if(V.startsWith("0x"))G=e1.Buffer.from(V.substr(2),"hex");else G=e1.Buffer.from(V,"hex");else G=V;y0(G.length===eq,`Address must be ${eq} bytes but received ${G.length} bytes`);let W=1+E91,K=W,D=W+G.length,H=D+Q.length+1,U=1,z=e1.Buffer.alloc($D.span+J.length);return $D.encode({numSignatures:U,signatureOffset:D,signatureInstructionIndex:Y,ethAddressOffset:K,ethAddressInstructionIndex:Y,messageDataOffset:H,messageDataSize:J.length,messageInstructionIndex:Y,signature:E2(Q),ethAddress:E2(G),recoveryId:X},z),z.fill(E2(J),$D.span),new $0({keys:[],programId:mV.programId,data:z})}static createInstructionWithPrivateKey($){let{privateKey:V,message:J,instructionIndex:Q}=$;y0(V.length===v_,`Private key must be ${v_} bytes but received ${V.length} bytes`);try{let X=E2(V),Y=k91(X,!1).slice(1),G=e1.Buffer.from(F_.keccak_256(E2(J))),[W,K]=m91(G,X);return this.createInstructionWithPublicKey({publicKey:Y,message:J,signature:W,recoveryId:K,instructionIndex:Q})}catch(X){throw Error(`Error creating instruction; ${X}`)}}}mV.programId=new G2("KeccakSecp256k11111111111111111111111111111");var qC,v91=new G2("StakeConfig11111111111111111111111111111111");class jX{constructor($,V,J){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=$,this.epoch=V,this.custodian=J}}qC=jX;jX.default=new qC(0,0,G2.default);var O5=Object.freeze({Initialize:{index:0,layout:a.struct([a.u32("instruction"),o01(),s01()])},Authorize:{index:1,layout:a.struct([a.u32("instruction"),p2("newAuthorized"),a.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:a.struct([a.u32("instruction")])},Split:{index:3,layout:a.struct([a.u32("instruction"),a.ns64("lamports")])},Withdraw:{index:4,layout:a.struct([a.u32("instruction"),a.ns64("lamports")])},Deactivate:{index:5,layout:a.struct([a.u32("instruction")])},Merge:{index:7,layout:a.struct([a.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:a.struct([a.u32("instruction"),p2("newAuthorized"),a.u32("stakeAuthorizationType"),P3("authoritySeed"),p2("authorityOwner")])}}),nl2=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class HD{constructor(){}static initialize($){let{stakePubkey:V,authorized:J,lockup:Q}=$,X=Q||jX.default,Y=O5.Initialize,G=I2(Y,{authorized:{staker:E2(J.staker.toBuffer()),withdrawer:E2(J.withdrawer.toBuffer())},lockup:{unixTimestamp:X.unixTimestamp,epoch:X.epoch,custodian:E2(X.custodian.toBuffer())}}),W={keys:[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:EV,isSigner:!1,isWritable:!1}],programId:this.programId,data:G};return new $0(W)}static createAccountWithSeed($){let V=new Y0;V.add(w9.createAccountWithSeed({fromPubkey:$.fromPubkey,newAccountPubkey:$.stakePubkey,basePubkey:$.basePubkey,seed:$.seed,lamports:$.lamports,space:this.space,programId:this.programId}));let{stakePubkey:J,authorized:Q,lockup:X}=$;return V.add(this.initialize({stakePubkey:J,authorized:Q,lockup:X}))}static createAccount($){let V=new Y0;V.add(w9.createAccount({fromPubkey:$.fromPubkey,newAccountPubkey:$.stakePubkey,lamports:$.lamports,space:this.space,programId:this.programId}));let{stakePubkey:J,authorized:Q,lockup:X}=$;return V.add(this.initialize({stakePubkey:J,authorized:Q,lockup:X}))}static delegate($){let{stakePubkey:V,authorizedPubkey:J,votePubkey:Q}=$,X=O5.Delegate,Y=I2(X);return new Y0().add({keys:[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:Q,isSigner:!1,isWritable:!1},{pubkey:w8,isSigner:!1,isWritable:!1},{pubkey:tq,isSigner:!1,isWritable:!1},{pubkey:v91,isSigner:!1,isWritable:!1},{pubkey:J,isSigner:!0,isWritable:!1}],programId:this.programId,data:Y})}static authorize($){let{stakePubkey:V,authorizedPubkey:J,newAuthorizedPubkey:Q,stakeAuthorizationType:X,custodianPubkey:Y}=$,G=O5.Authorize,W=I2(G,{newAuthorized:E2(Q.toBuffer()),stakeAuthorizationType:X.index}),K=[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:w8,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!0,isWritable:!1}];if(Y)K.push({pubkey:Y,isSigner:!0,isWritable:!1});return new Y0().add({keys:K,programId:this.programId,data:W})}static authorizeWithSeed($){let{stakePubkey:V,authorityBase:J,authoritySeed:Q,authorityOwner:X,newAuthorizedPubkey:Y,stakeAuthorizationType:G,custodianPubkey:W}=$,K=O5.AuthorizeWithSeed,D=I2(K,{newAuthorized:E2(Y.toBuffer()),stakeAuthorizationType:G.index,authoritySeed:Q,authorityOwner:E2(X.toBuffer())}),H=[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!0,isWritable:!1},{pubkey:w8,isSigner:!1,isWritable:!1}];if(W)H.push({pubkey:W,isSigner:!0,isWritable:!1});return new Y0().add({keys:H,programId:this.programId,data:D})}static splitInstruction($){let{stakePubkey:V,authorizedPubkey:J,splitStakePubkey:Q,lamports:X}=$,Y=O5.Split,G=I2(Y,{lamports:X});return new $0({keys:[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:Q,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!0,isWritable:!1}],programId:this.programId,data:G})}static split($,V){let J=new Y0;return J.add(w9.createAccount({fromPubkey:$.authorizedPubkey,newAccountPubkey:$.splitStakePubkey,lamports:V,space:this.space,programId:this.programId})),J.add(this.splitInstruction($))}static splitWithSeed($,V){let{stakePubkey:J,authorizedPubkey:Q,splitStakePubkey:X,basePubkey:Y,seed:G,lamports:W}=$,K=new Y0;if(K.add(w9.allocate({accountPubkey:X,basePubkey:Y,seed:G,space:this.space,programId:this.programId})),V&&V>0)K.add(w9.transfer({fromPubkey:$.authorizedPubkey,toPubkey:X,lamports:V}));return K.add(this.splitInstruction({stakePubkey:J,authorizedPubkey:Q,splitStakePubkey:X,lamports:W}))}static merge($){let{stakePubkey:V,sourceStakePubKey:J,authorizedPubkey:Q}=$,X=O5.Merge,Y=I2(X);return new Y0().add({keys:[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!1,isWritable:!0},{pubkey:w8,isSigner:!1,isWritable:!1},{pubkey:tq,isSigner:!1,isWritable:!1},{pubkey:Q,isSigner:!0,isWritable:!1}],programId:this.programId,data:Y})}static withdraw($){let{stakePubkey:V,authorizedPubkey:J,toPubkey:Q,lamports:X,custodianPubkey:Y}=$,G=O5.Withdraw,W=I2(G,{lamports:X}),K=[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:Q,isSigner:!1,isWritable:!0},{pubkey:w8,isSigner:!1,isWritable:!1},{pubkey:tq,isSigner:!1,isWritable:!1},{pubkey:J,isSigner:!0,isWritable:!1}];if(Y)K.push({pubkey:Y,isSigner:!0,isWritable:!1});return new Y0().add({keys:K,programId:this.programId,data:W})}static deactivate($){let{stakePubkey:V,authorizedPubkey:J}=$,Q=O5.Deactivate,X=I2(Q);return new Y0().add({keys:[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:w8,isSigner:!1,isWritable:!1},{pubkey:J,isSigner:!0,isWritable:!1}],programId:this.programId,data:X})}}HD.programId=new G2("Stake11111111111111111111111111111111111111");HD.space=200;var CV=Object.freeze({InitializeAccount:{index:0,layout:a.struct([a.u32("instruction"),r01()])},Authorize:{index:1,layout:a.struct([a.u32("instruction"),p2("newAuthorized"),a.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:a.struct([a.u32("instruction"),a.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:a.struct([a.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:a.struct([a.u32("instruction"),t01()])}}),ol2=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class NX{constructor(){}static initializeAccount($){let{votePubkey:V,nodePubkey:J,voteInit:Q}=$,X=CV.InitializeAccount,Y=I2(X,{voteInit:{nodePubkey:E2(Q.nodePubkey.toBuffer()),authorizedVoter:E2(Q.authorizedVoter.toBuffer()),authorizedWithdrawer:E2(Q.authorizedWithdrawer.toBuffer()),commission:Q.commission}}),G={keys:[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:EV,isSigner:!1,isWritable:!1},{pubkey:w8,isSigner:!1,isWritable:!1},{pubkey:J,isSigner:!0,isWritable:!1}],programId:this.programId,data:Y};return new $0(G)}static createAccount($){let V=new Y0;return V.add(w9.createAccount({fromPubkey:$.fromPubkey,newAccountPubkey:$.votePubkey,lamports:$.lamports,space:this.space,programId:this.programId})),V.add(this.initializeAccount({votePubkey:$.votePubkey,nodePubkey:$.voteInit.nodePubkey,voteInit:$.voteInit}))}static authorize($){let{votePubkey:V,authorizedPubkey:J,newAuthorizedPubkey:Q,voteAuthorizationType:X}=$,Y=CV.Authorize,G=I2(Y,{newAuthorized:E2(Q.toBuffer()),voteAuthorizationType:X.index}),W=[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:w8,isSigner:!1,isWritable:!1},{pubkey:J,isSigner:!0,isWritable:!1}];return new Y0().add({keys:W,programId:this.programId,data:G})}static authorizeWithSeed($){let{currentAuthorityDerivedKeyBasePubkey:V,currentAuthorityDerivedKeyOwnerPubkey:J,currentAuthorityDerivedKeySeed:Q,newAuthorizedPubkey:X,voteAuthorizationType:Y,votePubkey:G}=$,W=CV.AuthorizeWithSeed,K=I2(W,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:E2(J.toBuffer()),currentAuthorityDerivedKeySeed:Q,newAuthorized:E2(X.toBuffer()),voteAuthorizationType:Y.index}}),D=[{pubkey:G,isSigner:!1,isWritable:!0},{pubkey:w8,isSigner:!1,isWritable:!1},{pubkey:V,isSigner:!0,isWritable:!1}];return new Y0().add({keys:D,programId:this.programId,data:K})}static withdraw($){let{votePubkey:V,authorizedWithdrawerPubkey:J,lamports:Q,toPubkey:X}=$,Y=CV.Withdraw,G=I2(Y,{lamports:Q}),W=[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:X,isSigner:!1,isWritable:!0},{pubkey:J,isSigner:!0,isWritable:!1}];return new Y0().add({keys:W,programId:this.programId,data:G})}static safeWithdraw($,V,J){if($.lamports>V-J)throw Error("Withdraw will leave vote account with insufficient funds.");return NX.withdraw($)}static updateValidatorIdentity($){let{votePubkey:V,authorizedWithdrawerPubkey:J,nodePubkey:Q}=$,X=CV.UpdateValidatorIdentity,Y=I2(X),G=[{pubkey:V,isSigner:!1,isWritable:!0},{pubkey:Q,isSigner:!0,isWritable:!1},{pubkey:J,isSigner:!0,isWritable:!1}];return new Y0().add({keys:G,programId:this.programId,data:Y})}}NX.programId=new G2("Vote111111111111111111111111111111111111111");NX.space=3762;var sl2=new G2("Va1idator1nfo111111111111111111111111111111"),rl2=j.type({name:j.string(),website:j.optional(j.string()),details:j.optional(j.string()),iconUrl:j.optional(j.string()),keybaseUsername:j.optional(j.string())});var tl2=new G2("Vote111111111111111111111111111111111111111"),el2=a.struct([p2("nodePubkey"),p2("authorizedWithdrawer"),a.u8("commission"),a.nu64(),a.seq(a.struct([a.nu64("slot"),a.u32("confirmationCount")]),a.offset(a.u32(),-8),"votes"),a.u8("rootSlotValid"),a.nu64("rootSlot"),a.nu64(),a.seq(a.struct([a.nu64("epoch"),p2("authorizedVoter")]),a.offset(a.u32(),-8),"authorizedVoters"),a.struct([a.seq(a.struct([p2("authorizedPubkey"),a.nu64("epochOfLastAuthorizedSwitch"),a.nu64("targetEpoch")]),32,"buf"),a.nu64("idx"),a.u8("isEmpty")],"priorVoters"),a.nu64(),a.seq(a.struct([a.nu64("epoch"),a.nu64("credits"),a.nu64("prevCredits")]),a.offset(a.u32(),-8),"epochCredits"),a.struct([a.nu64("slot"),a.nu64("timestamp")],"lastTimestamp")]);var K4=O3;function h91($){if($.length>=255)throw TypeError("Alphabet too long");let V=new Uint8Array(256);for(let D=0;D<V.length;D++)V[D]=255;for(let D=0;D<$.length;D++){let H=$.charAt(D),U=H.charCodeAt(0);if(V[U]!==255)throw TypeError(H+" is ambiguous");V[U]=D}let J=$.length,Q=$.charAt(0),X=Math.log(J)/Math.log(256),Y=Math.log(256)/Math.log(J);function G(D){if(D instanceof Uint8Array);else if(ArrayBuffer.isView(D))D=new Uint8Array(D.buffer,D.byteOffset,D.byteLength);else if(Array.isArray(D))D=Uint8Array.from(D);if(!(D instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(D.length===0)return"";let H=0,U=0,z=0,M=D.length;while(z!==M&&D[z]===0)z++,H++;let L=(M-z)*Y+1>>>0,B=new Uint8Array(L);while(z!==M){let h=D[z],A=0;for(let E=L-1;(h!==0||A<U)&&E!==-1;E--,A++)h+=256*B[E]>>>0,B[E]=h%J>>>0,h=h/J>>>0;if(h!==0)throw Error("Non-zero carry");U=A,z++}let _=L-U;while(_!==L&&B[_]===0)_++;let T=Q.repeat(H);for(;_<L;++_)T+=$.charAt(B[_]);return T}function W(D){if(typeof D!=="string")throw TypeError("Expected String");if(D.length===0)return new Uint8Array;let H=0,U=0,z=0;while(D[H]===Q)U++,H++;let M=(D.length-H)*X+1>>>0,L=new Uint8Array(M);while(H<D.length){let h=D.charCodeAt(H);if(h>255)return;let A=V[h];if(A===255)return;let E=0;for(let y=M-1;(A!==0||E<z)&&y!==-1;y--,E++)A+=J*L[y]>>>0,L[y]=A%256>>>0,A=A/256>>>0;if(A!==0)throw Error("Non-zero carry");z=E,H++}let B=M-z;while(B!==M&&L[B]===0)B++;let _=new Uint8Array(U+(M-B)),T=U;while(B!==M)_[T++]=L[B++];return _}function K(D){let H=W(D);if(H)return H;throw Error("Non-base"+J+" character")}return{encode:G,decodeUnsafe:W,decode:K}}var DC=h91;var x91="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Z6=DC(x91);var ZC=_3(HC(),1);function UC($){let V=Z6.decode($.privateKey),J=K4.fromSecretKey(V),Q=J.publicKey.toBase58();return{keypair:J,walletAddress:Q,privateKeyBytes:V}}function ZD($,V){let J=new TextEncoder().encode($),Q=ZC.default.sign.detached(J,V);return Z6.encode(Q)}function LX($){let V=Date.now().toString(),J=ZD(V,$.privateKeyBytes);return{"x-wallet-address":$.walletAddress,"x-wallet-nonce":V,"x-wallet-signature":J}}import{Buffer as xy2}from"node:buffer";var d91=Object.defineProperty,wC=(($)=>k1)(function($){return k1.apply(this,arguments)}),RX=($,V)=>{for(var J in V)d91($,J,{get:V[J],enumerable:!0})},UD={"84532":{usdcAddress:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",usdcName:"USDC"},"8453":{usdcAddress:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",usdcName:"USD Coin"},"43113":{usdcAddress:"0x5425890298aed601595a70AB815c96711a31Bc65",usdcName:"USD Coin"},"43114":{usdcAddress:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",usdcName:"USD Coin"},"4689":{usdcAddress:"0xcdf79194c6c285077a58da47641d4dbe51f63542",usdcName:"Bridged USDC"},"103":{usdcAddress:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU",usdcName:"USDC"},"101":{usdcAddress:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",usdcName:"USDC"},"1328":{usdcAddress:"0x4fcf1784b31630811181f670aea7a7bef803eaed",usdcName:"USDC"},"1329":{usdcAddress:"0xe15fc38f6d8c56af07bbcbe3baf5708a2bf42392",usdcName:"USDC"},"137":{usdcAddress:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",usdcName:"USD Coin"},"80002":{usdcAddress:"0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582",usdcName:"USDC"},"3338":{usdcAddress:"0xbbA60da06c2c5424f03f7434542280FCAd453d10",usdcName:"USDC"},"2741":{usdcAddress:"0x84a71ccd554cc1b02749b35d22f684cc8ec987e1",usdcName:"Bridged USDC"},"11124":{usdcAddress:"0xe4C7fBB0a626ed208021ccabA6Be1566905E2dFc",usdcName:"Bridged USDC"},"1514":{usdcAddress:"0xF1815bd50389c46847f0Bda824eC8da914045D14",usdcName:"Bridged USDC"},"41923":{usdcAddress:"0x12a272A581feE5577A5dFa371afEB4b2F3a8C2F8",usdcName:"Bridged USDC (Stargate)"},"324705682":{usdcAddress:"0x2e08028E3C4c2356572E096d8EF835cD5C6030bD",usdcName:"Bridged USDC (SKALE Bridge)"}};var zC=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationUsed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"Blacklisted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newBlacklister",type:"address"}],name:"BlacklisterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"burner",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newMasterMinter",type:"address"}],name:"MasterMinterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!1,internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"MinterConfigured",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldMinter",type:"address"}],name:"MinterRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"PauserChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRescuer",type:"address"}],name:"RescuerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"UnBlacklisted",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{inputs:[],name:"CANCEL_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"RECEIVE_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TRANSFER_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"authorizationState",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"blacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"blacklister",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"cancelAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"cancelAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"},{internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"configureMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"currency",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"decrement",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"increment",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"tokenName",type:"string"},{internalType:"string",name:"tokenSymbol",type:"string"},{internalType:"string",name:"tokenCurrency",type:"string"},{internalType:"uint8",name:"tokenDecimals",type:"uint8"},{internalType:"address",name:"newMasterMinter",type:"address"},{internalType:"address",name:"newPauser",type:"address"},{internalType:"address",name:"newBlacklister",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newName",type:"string"}],name:"initializeV2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"lostAndFound",type:"address"}],name:"initializeV2_1",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"accountsToBlacklist",type:"address[]"},{internalType:"string",name:"newSymbol",type:"string"}],name:"initializeV2_2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"isBlacklisted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"masterMinter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"minterAllowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauser",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"receiveWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"receiveWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"removeMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenContract",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"rescueERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rescuer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"transferWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"transferWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"unBlacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newBlacklister",type:"address"}],name:"updateBlacklister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newMasterMinter",type:"address"}],name:"updateMasterMinter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newPauser",type:"address"}],name:"updatePauser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newRescuer",type:"address"}],name:"updateRescuer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"}];var U1={};ND(U1,{void:()=>O61,util:()=>M2,unknown:()=>R61,union:()=>_61,undefined:()=>N61,tuple:()=>T61,transformer:()=>y61,symbol:()=>j61,string:()=>BC,strictObject:()=>S61,setErrorMap:()=>g91,set:()=>m61,record:()=>A61,quotelessJson:()=>y91,promise:()=>d61,preprocess:()=>l61,pipeline:()=>f61,ostring:()=>u61,optional:()=>b61,onumber:()=>a61,oboolean:()=>i61,objectUtil:()=>wD,object:()=>B61,number:()=>SC,nullable:()=>g61,null:()=>M61,never:()=>P61,nativeEnum:()=>x61,nan:()=>U61,map:()=>p61,makeIssue:()=>vV,literal:()=>v61,lazy:()=>E61,late:()=>H61,isValid:()=>F5,isDirty:()=>OX,isAsync:()=>I3,isAborted:()=>PX,intersection:()=>I61,instanceof:()=>Z61,getParsedType:()=>q4,getErrorMap:()=>C3,function:()=>k61,enum:()=>h61,effect:()=>y61,discriminatedUnion:()=>C61,defaultErrorMap:()=>z8,datetimeRegex:()=>PC,date:()=>z61,custom:()=>FC,coerce:()=>c61,boolean:()=>_C,bigint:()=>w61,array:()=>F61,any:()=>L61,addIssueToContext:()=>P1,ZodVoid:()=>xV,ZodUnknown:()=>B5,ZodUnion:()=>E3,ZodUndefined:()=>m3,ZodType:()=>z2,ZodTuple:()=>H4,ZodTransformer:()=>x6,ZodSymbol:()=>hV,ZodString:()=>k6,ZodSet:()=>U7,ZodSchema:()=>z2,ZodRecord:()=>dV,ZodReadonly:()=>g3,ZodPromise:()=>w7,ZodPipeline:()=>gV,ZodParsedType:()=>L1,ZodOptional:()=>v6,ZodObject:()=>H0,ZodNumber:()=>S5,ZodNullable:()=>N8,ZodNull:()=>k3,ZodNever:()=>D4,ZodNativeEnum:()=>d3,ZodNaN:()=>bV,ZodMap:()=>yV,ZodLiteral:()=>x3,ZodLazy:()=>h3,ZodIssueCode:()=>Z1,ZodIntersection:()=>v3,ZodFunction:()=>A3,ZodFirstPartyTypeKind:()=>o1,ZodError:()=>m9,ZodEnum:()=>C5,ZodEffects:()=>x6,ZodDiscriminatedUnion:()=>FX,ZodDefault:()=>y3,ZodDate:()=>H7,ZodCatch:()=>b3,ZodBranded:()=>BX,ZodBoolean:()=>p3,ZodBigInt:()=>_5,ZodArray:()=>E6,ZodAny:()=>Z7,Schema:()=>z2,ParseStatus:()=>J9,OK:()=>z9,NEVER:()=>n61,INVALID:()=>u1,EMPTY_PATH:()=>l91,DIRTY:()=>D7,BRAND:()=>D61});var M2;(function($){$.assertEqual=(X)=>{};function V(X){}$.assertIs=V;function J(X){throw Error()}$.assertNever=J,$.arrayToEnum=(X)=>{let Y={};for(let G of X)Y[G]=G;return Y},$.getValidEnumValues=(X)=>{let Y=$.objectKeys(X).filter((W)=>typeof X[X[W]]!=="number"),G={};for(let W of Y)G[W]=X[W];return $.objectValues(G)},$.objectValues=(X)=>{return $.objectKeys(X).map(function(Y){return X[Y]})},$.objectKeys=typeof Object.keys==="function"?(X)=>Object.keys(X):(X)=>{let Y=[];for(let G in X)if(Object.prototype.hasOwnProperty.call(X,G))Y.push(G);return Y},$.find=(X,Y)=>{for(let G of X)if(Y(G))return G;return},$.isInteger=typeof Number.isInteger==="function"?(X)=>Number.isInteger(X):(X)=>typeof X==="number"&&Number.isFinite(X)&&Math.floor(X)===X;function Q(X,Y=" | "){return X.map((G)=>typeof G==="string"?`'${G}'`:G).join(Y)}$.joinValues=Q,$.jsonStringifyReplacer=(X,Y)=>{if(typeof Y==="bigint")return Y.toString();return Y}})(M2||(M2={}));var wD;(function($){$.mergeShapes=(V,J)=>{return{...V,...J}}})(wD||(wD={}));var L1=M2.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),q4=($)=>{switch(typeof $){case"undefined":return L1.undefined;case"string":return L1.string;case"number":return Number.isNaN($)?L1.nan:L1.number;case"boolean":return L1.boolean;case"function":return L1.function;case"bigint":return L1.bigint;case"symbol":return L1.symbol;case"object":if(Array.isArray($))return L1.array;if($===null)return L1.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return L1.promise;if(typeof Map<"u"&&$ instanceof Map)return L1.map;if(typeof Set<"u"&&$ instanceof Set)return L1.set;if(typeof Date<"u"&&$ instanceof Date)return L1.date;return L1.object;default:return L1.unknown}};var Z1=M2.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),y91=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class m9 extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(J)=>{this.issues=[...this.issues,J]},this.addIssues=(J=[])=>{this.issues=[...this.issues,...J]};let V=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,V);else this.__proto__=V;this.name="ZodError",this.issues=$}format($){let V=$||function(X){return X.message},J={_errors:[]},Q=(X)=>{for(let Y of X.issues)if(Y.code==="invalid_union")Y.unionErrors.map(Q);else if(Y.code==="invalid_return_type")Q(Y.returnTypeError);else if(Y.code==="invalid_arguments")Q(Y.argumentsError);else if(Y.path.length===0)J._errors.push(V(Y));else{let G=J,W=0;while(W<Y.path.length){let K=Y.path[W];if(W!==Y.path.length-1)G[K]=G[K]||{_errors:[]};else G[K]=G[K]||{_errors:[]},G[K]._errors.push(V(Y));G=G[K],W++}}};return Q(this),J}static assert($){if(!($ instanceof m9))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,M2.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(V)=>V.message){let V={},J=[];for(let Q of this.issues)if(Q.path.length>0){let X=Q.path[0];V[X]=V[X]||[],V[X].push($(Q))}else J.push($(Q));return{formErrors:J,fieldErrors:V}}get formErrors(){return this.flatten()}}m9.create=($)=>{return new m9($)};var b91=($,V)=>{let J;switch($.code){case Z1.invalid_type:if($.received===L1.undefined)J="Required";else J=`Expected ${$.expected}, received ${$.received}`;break;case Z1.invalid_literal:J=`Invalid literal value, expected ${JSON.stringify($.expected,M2.jsonStringifyReplacer)}`;break;case Z1.unrecognized_keys:J=`Unrecognized key(s) in object: ${M2.joinValues($.keys,", ")}`;break;case Z1.invalid_union:J="Invalid input";break;case Z1.invalid_union_discriminator:J=`Invalid discriminator value. Expected ${M2.joinValues($.options)}`;break;case Z1.invalid_enum_value:J=`Invalid enum value. Expected ${M2.joinValues($.options)}, received '${$.received}'`;break;case Z1.invalid_arguments:J="Invalid function arguments";break;case Z1.invalid_return_type:J="Invalid function return type";break;case Z1.invalid_date:J="Invalid date";break;case Z1.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(J=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")J=`${J} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)J=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)J=`Invalid input: must end with "${$.validation.endsWith}"`;else M2.assertNever($.validation);else if($.validation!=="regex")J=`Invalid ${$.validation}`;else J="Invalid";break;case Z1.too_small:if($.type==="array")J=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")J=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")J=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")J=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")J=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else J="Invalid input";break;case Z1.too_big:if($.type==="array")J=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")J=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")J=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")J=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")J=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else J="Invalid input";break;case Z1.custom:J="Invalid input";break;case Z1.invalid_intersection_types:J="Intersection results could not be merged";break;case Z1.not_multiple_of:J=`Number must be a multiple of ${$.multipleOf}`;break;case Z1.not_finite:J="Number must be finite";break;default:J=V.defaultError,M2.assertNever($)}return{message:J}},z8=b91;var jC=z8;function g91($){jC=$}function C3(){return jC}var vV=($)=>{let{data:V,path:J,errorMaps:Q,issueData:X}=$,Y=[...J,...X.path||[]],G={...X,path:Y};if(X.message!==void 0)return{...X,path:Y,message:X.message};let W="",K=Q.filter((D)=>!!D).slice().reverse();for(let D of K)W=D(G,{data:V,defaultError:W}).message;return{...X,path:Y,message:W}},l91=[];function P1($,V){let J=C3(),Q=vV({issueData:V,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,J,J===z8?void 0:z8].filter((X)=>!!X)});$.common.issues.push(Q)}class J9{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,V){let J=[];for(let Q of V){if(Q.status==="aborted")return u1;if(Q.status==="dirty")$.dirty();J.push(Q.value)}return{status:$.value,value:J}}static async mergeObjectAsync($,V){let J=[];for(let Q of V){let X=await Q.key,Y=await Q.value;J.push({key:X,value:Y})}return J9.mergeObjectSync($,J)}static mergeObjectSync($,V){let J={};for(let Q of V){let{key:X,value:Y}=Q;if(X.status==="aborted")return u1;if(Y.status==="aborted")return u1;if(X.status==="dirty")$.dirty();if(Y.status==="dirty")$.dirty();if(X.value!=="__proto__"&&(typeof Y.value<"u"||Q.alwaysSet))J[X.value]=Y.value}return{status:$.value,value:J}}}var u1=Object.freeze({status:"aborted"}),D7=($)=>({status:"dirty",value:$}),z9=($)=>({status:"valid",value:$}),PX=($)=>$.status==="aborted",OX=($)=>$.status==="dirty",F5=($)=>$.status==="valid",I3=($)=>typeof Promise<"u"&&$ instanceof Promise;var v1;(function($){$.errToObj=(V)=>typeof V==="string"?{message:V}:V||{},$.toString=(V)=>typeof V==="string"?V:V?.message})(v1||(v1={}));class h6{constructor($,V,J,Q){this._cachedPath=[],this.parent=$,this.data=V,this._path=J,this._key=Q}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var NC=($,V)=>{if(F5(V))return{success:!0,data:V.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let J=new m9($.common.issues);return this._error=J,this._error}}}};function q2($){if(!$)return{};let{errorMap:V,invalid_type_error:J,required_error:Q,description:X}=$;if(V&&(J||Q))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(V)return{errorMap:V,description:X};return{errorMap:(G,W)=>{let{message:K}=$;if(G.code==="invalid_enum_value")return{message:K??W.defaultError};if(typeof W.data>"u")return{message:K??Q??W.defaultError};if(G.code!=="invalid_type")return{message:W.defaultError};return{message:K??J??W.defaultError}},description:X}}class z2{get description(){return this._def.description}_getType($){return q4($.data)}_getOrReturnCtx($,V){return V||{common:$.parent.common,data:$.data,parsedType:q4($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new J9,ctx:{common:$.parent.common,data:$.data,parsedType:q4($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let V=this._parse($);if(I3(V))throw Error("Synchronous parse encountered promise.");return V}_parseAsync($){let V=this._parse($);return Promise.resolve(V)}parse($,V){let J=this.safeParse($,V);if(J.success)return J.data;throw J.error}safeParse($,V){let J={common:{issues:[],async:V?.async??!1,contextualErrorMap:V?.errorMap},path:V?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:q4($)},Q=this._parseSync({data:$,path:J.path,parent:J});return NC(J,Q)}"~validate"($){let V={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:q4($)};if(!this["~standard"].async)try{let J=this._parseSync({data:$,path:[],parent:V});return F5(J)?{value:J.value}:{issues:V.common.issues}}catch(J){if(J?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;V.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:V}).then((J)=>F5(J)?{value:J.value}:{issues:V.common.issues})}async parseAsync($,V){let J=await this.safeParseAsync($,V);if(J.success)return J.data;throw J.error}async safeParseAsync($,V){let J={common:{issues:[],contextualErrorMap:V?.errorMap,async:!0},path:V?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:q4($)},Q=this._parse({data:$,path:J.path,parent:J}),X=await(I3(Q)?Q:Promise.resolve(Q));return NC(J,X)}refine($,V){let J=(Q)=>{if(typeof V==="string"||typeof V>"u")return{message:V};else if(typeof V==="function")return V(Q);else return V};return this._refinement((Q,X)=>{let Y=$(Q),G=()=>X.addIssue({code:Z1.custom,...J(Q)});if(typeof Promise<"u"&&Y instanceof Promise)return Y.then((W)=>{if(!W)return G(),!1;else return!0});if(!Y)return G(),!1;else return!0})}refinement($,V){return this._refinement((J,Q)=>{if(!$(J))return Q.addIssue(typeof V==="function"?V(J,Q):V),!1;else return!0})}_refinement($){return new x6({schema:this,typeName:o1.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(V)=>this["~validate"](V)}}optional(){return v6.create(this,this._def)}nullable(){return N8.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return E6.create(this)}promise(){return w7.create(this,this._def)}or($){return E3.create([this,$],this._def)}and($){return v3.create(this,$,this._def)}transform($){return new x6({...q2(this._def),schema:this,typeName:o1.ZodEffects,effect:{type:"transform",transform:$}})}default($){let V=typeof $==="function"?$:()=>$;return new y3({...q2(this._def),innerType:this,defaultValue:V,typeName:o1.ZodDefault})}brand(){return new BX({typeName:o1.ZodBranded,type:this,...q2(this._def)})}catch($){let V=typeof $==="function"?$:()=>$;return new b3({...q2(this._def),innerType:this,catchValue:V,typeName:o1.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return gV.create(this,$)}readonly(){return g3.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var f91=/^c[^\s-]{8,}$/i,u91=/^[0-9a-z]+$/,a91=/^[0-9A-HJKMNP-TV-Z]{26}$/i,i91=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,c91=/^[a-z0-9_-]{21}$/i,n91=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,o91=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,s91=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,r91="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",zD,t91=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,e91=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,$61=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,V61=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,J61=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Q61=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,LC="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",X61=new RegExp(`^${LC}$`);function RC($){let V="[0-5]\\d";if($.precision)V=`${V}\\.\\d{${$.precision}}`;else if($.precision==null)V=`${V}(\\.\\d+)?`;let J=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${V})${J}`}function Y61($){return new RegExp(`^${RC($)}$`)}function PC($){let V=`${LC}T${RC($)}`,J=[];if(J.push($.local?"Z?":"Z"),$.offset)J.push("([+-]\\d{2}:?\\d{2})");return V=`${V}(${J.join("|")})`,new RegExp(`^${V}$`)}function G61($,V){if((V==="v4"||!V)&&t91.test($))return!0;if((V==="v6"||!V)&&$61.test($))return!0;return!1}function W61($,V){if(!n91.test($))return!1;try{let[J]=$.split(".");if(!J)return!1;let Q=J.replace(/-/g,"+").replace(/_/g,"/").padEnd(J.length+(4-J.length%4)%4,"="),X=JSON.parse(atob(Q));if(typeof X!=="object"||X===null)return!1;if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(V&&X.alg!==V)return!1;return!0}catch{return!1}}function K61($,V){if((V==="v4"||!V)&&e91.test($))return!0;if((V==="v6"||!V)&&V61.test($))return!0;return!1}class k6 extends z2{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==L1.string){let X=this._getOrReturnCtx($);return P1(X,{code:Z1.invalid_type,expected:L1.string,received:X.parsedType}),u1}let J=new J9,Q=void 0;for(let X of this._def.checks)if(X.kind==="min"){if($.data.length<X.value)Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),J.dirty()}else if(X.kind==="max"){if($.data.length>X.value)Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),J.dirty()}else if(X.kind==="length"){let Y=$.data.length>X.value,G=$.data.length<X.value;if(Y||G){if(Q=this._getOrReturnCtx($,Q),Y)P1(Q,{code:Z1.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});else if(G)P1(Q,{code:Z1.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});J.dirty()}}else if(X.kind==="email"){if(!s91.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"email",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="emoji"){if(!zD)zD=new RegExp(r91,"u");if(!zD.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"emoji",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="uuid"){if(!i91.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"uuid",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="nanoid"){if(!c91.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"nanoid",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="cuid"){if(!f91.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"cuid",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="cuid2"){if(!u91.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"cuid2",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="ulid"){if(!a91.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"ulid",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="url")try{new URL($.data)}catch{Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"url",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="regex"){if(X.regex.lastIndex=0,!X.regex.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"regex",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="trim")$.data=$.data.trim();else if(X.kind==="includes"){if(!$.data.includes(X.value,X.position))Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.invalid_string,validation:{includes:X.value,position:X.position},message:X.message}),J.dirty()}else if(X.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(X.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(X.kind==="startsWith"){if(!$.data.startsWith(X.value))Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.invalid_string,validation:{startsWith:X.value},message:X.message}),J.dirty()}else if(X.kind==="endsWith"){if(!$.data.endsWith(X.value))Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.invalid_string,validation:{endsWith:X.value},message:X.message}),J.dirty()}else if(X.kind==="datetime"){if(!PC(X).test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.invalid_string,validation:"datetime",message:X.message}),J.dirty()}else if(X.kind==="date"){if(!X61.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.invalid_string,validation:"date",message:X.message}),J.dirty()}else if(X.kind==="time"){if(!Y61(X).test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.invalid_string,validation:"time",message:X.message}),J.dirty()}else if(X.kind==="duration"){if(!o91.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"duration",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="ip"){if(!G61($.data,X.version))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"ip",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="jwt"){if(!W61($.data,X.alg))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"jwt",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="cidr"){if(!K61($.data,X.version))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"cidr",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="base64"){if(!J61.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"base64",code:Z1.invalid_string,message:X.message}),J.dirty()}else if(X.kind==="base64url"){if(!Q61.test($.data))Q=this._getOrReturnCtx($,Q),P1(Q,{validation:"base64url",code:Z1.invalid_string,message:X.message}),J.dirty()}else M2.assertNever(X);return{status:J.value,value:$.data}}_regex($,V,J){return this.refinement((Q)=>$.test(Q),{validation:V,code:Z1.invalid_string,...v1.errToObj(J)})}_addCheck($){return new k6({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...v1.errToObj($)})}url($){return this._addCheck({kind:"url",...v1.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...v1.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...v1.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...v1.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...v1.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...v1.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...v1.errToObj($)})}base64($){return this._addCheck({kind:"base64",...v1.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...v1.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...v1.errToObj($)})}ip($){return this._addCheck({kind:"ip",...v1.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...v1.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...v1.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...v1.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...v1.errToObj($)})}regex($,V){return this._addCheck({kind:"regex",regex:$,...v1.errToObj(V)})}includes($,V){return this._addCheck({kind:"includes",value:$,position:V?.position,...v1.errToObj(V?.message)})}startsWith($,V){return this._addCheck({kind:"startsWith",value:$,...v1.errToObj(V)})}endsWith($,V){return this._addCheck({kind:"endsWith",value:$,...v1.errToObj(V)})}min($,V){return this._addCheck({kind:"min",value:$,...v1.errToObj(V)})}max($,V){return this._addCheck({kind:"max",value:$,...v1.errToObj(V)})}length($,V){return this._addCheck({kind:"length",value:$,...v1.errToObj(V)})}nonempty($){return this.min(1,v1.errToObj($))}trim(){return new k6({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new k6({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new k6({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let V of this._def.checks)if(V.kind==="min"){if($===null||V.value>$)$=V.value}return $}get maxLength(){let $=null;for(let V of this._def.checks)if(V.kind==="max"){if($===null||V.value<$)$=V.value}return $}}k6.create=($)=>{return new k6({checks:[],typeName:o1.ZodString,coerce:$?.coerce??!1,...q2($)})};function q61($,V){let J=($.toString().split(".")[1]||"").length,Q=(V.toString().split(".")[1]||"").length,X=J>Q?J:Q,Y=Number.parseInt($.toFixed(X).replace(".","")),G=Number.parseInt(V.toFixed(X).replace(".",""));return Y%G/10**X}class S5 extends z2{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==L1.number){let X=this._getOrReturnCtx($);return P1(X,{code:Z1.invalid_type,expected:L1.number,received:X.parsedType}),u1}let J=void 0,Q=new J9;for(let X of this._def.checks)if(X.kind==="int"){if(!M2.isInteger($.data))J=this._getOrReturnCtx($,J),P1(J,{code:Z1.invalid_type,expected:"integer",received:"float",message:X.message}),Q.dirty()}else if(X.kind==="min"){if(X.inclusive?$.data<X.value:$.data<=X.value)J=this._getOrReturnCtx($,J),P1(J,{code:Z1.too_small,minimum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),Q.dirty()}else if(X.kind==="max"){if(X.inclusive?$.data>X.value:$.data>=X.value)J=this._getOrReturnCtx($,J),P1(J,{code:Z1.too_big,maximum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),Q.dirty()}else if(X.kind==="multipleOf"){if(q61($.data,X.value)!==0)J=this._getOrReturnCtx($,J),P1(J,{code:Z1.not_multiple_of,multipleOf:X.value,message:X.message}),Q.dirty()}else if(X.kind==="finite"){if(!Number.isFinite($.data))J=this._getOrReturnCtx($,J),P1(J,{code:Z1.not_finite,message:X.message}),Q.dirty()}else M2.assertNever(X);return{status:Q.value,value:$.data}}gte($,V){return this.setLimit("min",$,!0,v1.toString(V))}gt($,V){return this.setLimit("min",$,!1,v1.toString(V))}lte($,V){return this.setLimit("max",$,!0,v1.toString(V))}lt($,V){return this.setLimit("max",$,!1,v1.toString(V))}setLimit($,V,J,Q){return new S5({...this._def,checks:[...this._def.checks,{kind:$,value:V,inclusive:J,message:v1.toString(Q)}]})}_addCheck($){return new S5({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:v1.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:v1.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:v1.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:v1.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:v1.toString($)})}multipleOf($,V){return this._addCheck({kind:"multipleOf",value:$,message:v1.toString(V)})}finite($){return this._addCheck({kind:"finite",message:v1.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:v1.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:v1.toString($)})}get minValue(){let $=null;for(let V of this._def.checks)if(V.kind==="min"){if($===null||V.value>$)$=V.value}return $}get maxValue(){let $=null;for(let V of this._def.checks)if(V.kind==="max"){if($===null||V.value<$)$=V.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&M2.isInteger($.value))}get isFinite(){let $=null,V=null;for(let J of this._def.checks)if(J.kind==="finite"||J.kind==="int"||J.kind==="multipleOf")return!0;else if(J.kind==="min"){if(V===null||J.value>V)V=J.value}else if(J.kind==="max"){if($===null||J.value<$)$=J.value}return Number.isFinite(V)&&Number.isFinite($)}}S5.create=($)=>{return new S5({checks:[],typeName:o1.ZodNumber,coerce:$?.coerce||!1,...q2($)})};class _5 extends z2{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==L1.bigint)return this._getInvalidInput($);let J=void 0,Q=new J9;for(let X of this._def.checks)if(X.kind==="min"){if(X.inclusive?$.data<X.value:$.data<=X.value)J=this._getOrReturnCtx($,J),P1(J,{code:Z1.too_small,type:"bigint",minimum:X.value,inclusive:X.inclusive,message:X.message}),Q.dirty()}else if(X.kind==="max"){if(X.inclusive?$.data>X.value:$.data>=X.value)J=this._getOrReturnCtx($,J),P1(J,{code:Z1.too_big,type:"bigint",maximum:X.value,inclusive:X.inclusive,message:X.message}),Q.dirty()}else if(X.kind==="multipleOf"){if($.data%X.value!==BigInt(0))J=this._getOrReturnCtx($,J),P1(J,{code:Z1.not_multiple_of,multipleOf:X.value,message:X.message}),Q.dirty()}else M2.assertNever(X);return{status:Q.value,value:$.data}}_getInvalidInput($){let V=this._getOrReturnCtx($);return P1(V,{code:Z1.invalid_type,expected:L1.bigint,received:V.parsedType}),u1}gte($,V){return this.setLimit("min",$,!0,v1.toString(V))}gt($,V){return this.setLimit("min",$,!1,v1.toString(V))}lte($,V){return this.setLimit("max",$,!0,v1.toString(V))}lt($,V){return this.setLimit("max",$,!1,v1.toString(V))}setLimit($,V,J,Q){return new _5({...this._def,checks:[...this._def.checks,{kind:$,value:V,inclusive:J,message:v1.toString(Q)}]})}_addCheck($){return new _5({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:v1.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:v1.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:v1.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:v1.toString($)})}multipleOf($,V){return this._addCheck({kind:"multipleOf",value:$,message:v1.toString(V)})}get minValue(){let $=null;for(let V of this._def.checks)if(V.kind==="min"){if($===null||V.value>$)$=V.value}return $}get maxValue(){let $=null;for(let V of this._def.checks)if(V.kind==="max"){if($===null||V.value<$)$=V.value}return $}}_5.create=($)=>{return new _5({checks:[],typeName:o1.ZodBigInt,coerce:$?.coerce??!1,...q2($)})};class p3 extends z2{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==L1.boolean){let J=this._getOrReturnCtx($);return P1(J,{code:Z1.invalid_type,expected:L1.boolean,received:J.parsedType}),u1}return z9($.data)}}p3.create=($)=>{return new p3({typeName:o1.ZodBoolean,coerce:$?.coerce||!1,...q2($)})};class H7 extends z2{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==L1.date){let X=this._getOrReturnCtx($);return P1(X,{code:Z1.invalid_type,expected:L1.date,received:X.parsedType}),u1}if(Number.isNaN($.data.getTime())){let X=this._getOrReturnCtx($);return P1(X,{code:Z1.invalid_date}),u1}let J=new J9,Q=void 0;for(let X of this._def.checks)if(X.kind==="min"){if($.data.getTime()<X.value)Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.too_small,message:X.message,inclusive:!0,exact:!1,minimum:X.value,type:"date"}),J.dirty()}else if(X.kind==="max"){if($.data.getTime()>X.value)Q=this._getOrReturnCtx($,Q),P1(Q,{code:Z1.too_big,message:X.message,inclusive:!0,exact:!1,maximum:X.value,type:"date"}),J.dirty()}else M2.assertNever(X);return{status:J.value,value:new Date($.data.getTime())}}_addCheck($){return new H7({...this._def,checks:[...this._def.checks,$]})}min($,V){return this._addCheck({kind:"min",value:$.getTime(),message:v1.toString(V)})}max($,V){return this._addCheck({kind:"max",value:$.getTime(),message:v1.toString(V)})}get minDate(){let $=null;for(let V of this._def.checks)if(V.kind==="min"){if($===null||V.value>$)$=V.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let V of this._def.checks)if(V.kind==="max"){if($===null||V.value<$)$=V.value}return $!=null?new Date($):null}}H7.create=($)=>{return new H7({checks:[],coerce:$?.coerce||!1,typeName:o1.ZodDate,...q2($)})};class hV extends z2{_parse($){if(this._getType($)!==L1.symbol){let J=this._getOrReturnCtx($);return P1(J,{code:Z1.invalid_type,expected:L1.symbol,received:J.parsedType}),u1}return z9($.data)}}hV.create=($)=>{return new hV({typeName:o1.ZodSymbol,...q2($)})};class m3 extends z2{_parse($){if(this._getType($)!==L1.undefined){let J=this._getOrReturnCtx($);return P1(J,{code:Z1.invalid_type,expected:L1.undefined,received:J.parsedType}),u1}return z9($.data)}}m3.create=($)=>{return new m3({typeName:o1.ZodUndefined,...q2($)})};class k3 extends z2{_parse($){if(this._getType($)!==L1.null){let J=this._getOrReturnCtx($);return P1(J,{code:Z1.invalid_type,expected:L1.null,received:J.parsedType}),u1}return z9($.data)}}k3.create=($)=>{return new k3({typeName:o1.ZodNull,...q2($)})};class Z7 extends z2{constructor(){super(...arguments);this._any=!0}_parse($){return z9($.data)}}Z7.create=($)=>{return new Z7({typeName:o1.ZodAny,...q2($)})};class B5 extends z2{constructor(){super(...arguments);this._unknown=!0}_parse($){return z9($.data)}}B5.create=($)=>{return new B5({typeName:o1.ZodUnknown,...q2($)})};class D4 extends z2{_parse($){let V=this._getOrReturnCtx($);return P1(V,{code:Z1.invalid_type,expected:L1.never,received:V.parsedType}),u1}}D4.create=($)=>{return new D4({typeName:o1.ZodNever,...q2($)})};class xV extends z2{_parse($){if(this._getType($)!==L1.undefined){let J=this._getOrReturnCtx($);return P1(J,{code:Z1.invalid_type,expected:L1.void,received:J.parsedType}),u1}return z9($.data)}}xV.create=($)=>{return new xV({typeName:o1.ZodVoid,...q2($)})};class E6 extends z2{_parse($){let{ctx:V,status:J}=this._processInputParams($),Q=this._def;if(V.parsedType!==L1.array)return P1(V,{code:Z1.invalid_type,expected:L1.array,received:V.parsedType}),u1;if(Q.exactLength!==null){let Y=V.data.length>Q.exactLength.value,G=V.data.length<Q.exactLength.value;if(Y||G)P1(V,{code:Y?Z1.too_big:Z1.too_small,minimum:G?Q.exactLength.value:void 0,maximum:Y?Q.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:Q.exactLength.message}),J.dirty()}if(Q.minLength!==null){if(V.data.length<Q.minLength.value)P1(V,{code:Z1.too_small,minimum:Q.minLength.value,type:"array",inclusive:!0,exact:!1,message:Q.minLength.message}),J.dirty()}if(Q.maxLength!==null){if(V.data.length>Q.maxLength.value)P1(V,{code:Z1.too_big,maximum:Q.maxLength.value,type:"array",inclusive:!0,exact:!1,message:Q.maxLength.message}),J.dirty()}if(V.common.async)return Promise.all([...V.data].map((Y,G)=>{return Q.type._parseAsync(new h6(V,Y,V.path,G))})).then((Y)=>{return J9.mergeArray(J,Y)});let X=[...V.data].map((Y,G)=>{return Q.type._parseSync(new h6(V,Y,V.path,G))});return J9.mergeArray(J,X)}get element(){return this._def.type}min($,V){return new E6({...this._def,minLength:{value:$,message:v1.toString(V)}})}max($,V){return new E6({...this._def,maxLength:{value:$,message:v1.toString(V)}})}length($,V){return new E6({...this._def,exactLength:{value:$,message:v1.toString(V)}})}nonempty($){return this.min(1,$)}}E6.create=($,V)=>{return new E6({type:$,minLength:null,maxLength:null,exactLength:null,typeName:o1.ZodArray,...q2(V)})};function T3($){if($ instanceof H0){let V={};for(let J in $.shape){let Q=$.shape[J];V[J]=v6.create(T3(Q))}return new H0({...$._def,shape:()=>V})}else if($ instanceof E6)return new E6({...$._def,type:T3($.element)});else if($ instanceof v6)return v6.create(T3($.unwrap()));else if($ instanceof N8)return N8.create(T3($.unwrap()));else if($ instanceof H4)return H4.create($.items.map((V)=>T3(V)));else return $}class H0 extends z2{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),V=M2.objectKeys($);return this._cached={shape:$,keys:V},this._cached}_parse($){if(this._getType($)!==L1.object){let K=this._getOrReturnCtx($);return P1(K,{code:Z1.invalid_type,expected:L1.object,received:K.parsedType}),u1}let{status:J,ctx:Q}=this._processInputParams($),{shape:X,keys:Y}=this._getCached(),G=[];if(!(this._def.catchall instanceof D4&&this._def.unknownKeys==="strip")){for(let K in Q.data)if(!Y.includes(K))G.push(K)}let W=[];for(let K of Y){let D=X[K],H=Q.data[K];W.push({key:{status:"valid",value:K},value:D._parse(new h6(Q,H,Q.path,K)),alwaysSet:K in Q.data})}if(this._def.catchall instanceof D4){let K=this._def.unknownKeys;if(K==="passthrough")for(let D of G)W.push({key:{status:"valid",value:D},value:{status:"valid",value:Q.data[D]}});else if(K==="strict"){if(G.length>0)P1(Q,{code:Z1.unrecognized_keys,keys:G}),J.dirty()}else if(K==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let K=this._def.catchall;for(let D of G){let H=Q.data[D];W.push({key:{status:"valid",value:D},value:K._parse(new h6(Q,H,Q.path,D)),alwaysSet:D in Q.data})}}if(Q.common.async)return Promise.resolve().then(async()=>{let K=[];for(let D of W){let H=await D.key,U=await D.value;K.push({key:H,value:U,alwaysSet:D.alwaysSet})}return K}).then((K)=>{return J9.mergeObjectSync(J,K)});else return J9.mergeObjectSync(J,W)}get shape(){return this._def.shape()}strict($){return v1.errToObj,new H0({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(V,J)=>{let Q=this._def.errorMap?.(V,J).message??J.defaultError;if(V.code==="unrecognized_keys")return{message:v1.errToObj($).message??Q};return{message:Q}}}:{}})}strip(){return new H0({...this._def,unknownKeys:"strip"})}passthrough(){return new H0({...this._def,unknownKeys:"passthrough"})}extend($){return new H0({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new H0({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:o1.ZodObject})}setKey($,V){return this.augment({[$]:V})}catchall($){return new H0({...this._def,catchall:$})}pick($){let V={};for(let J of M2.objectKeys($))if($[J]&&this.shape[J])V[J]=this.shape[J];return new H0({...this._def,shape:()=>V})}omit($){let V={};for(let J of M2.objectKeys(this.shape))if(!$[J])V[J]=this.shape[J];return new H0({...this._def,shape:()=>V})}deepPartial(){return T3(this)}partial($){let V={};for(let J of M2.objectKeys(this.shape)){let Q=this.shape[J];if($&&!$[J])V[J]=Q;else V[J]=Q.optional()}return new H0({...this._def,shape:()=>V})}required($){let V={};for(let J of M2.objectKeys(this.shape))if($&&!$[J])V[J]=this.shape[J];else{let X=this.shape[J];while(X instanceof v6)X=X._def.innerType;V[J]=X}return new H0({...this._def,shape:()=>V})}keyof(){return OC(M2.objectKeys(this.shape))}}H0.create=($,V)=>{return new H0({shape:()=>$,unknownKeys:"strip",catchall:D4.create(),typeName:o1.ZodObject,...q2(V)})};H0.strictCreate=($,V)=>{return new H0({shape:()=>$,unknownKeys:"strict",catchall:D4.create(),typeName:o1.ZodObject,...q2(V)})};H0.lazycreate=($,V)=>{return new H0({shape:$,unknownKeys:"strip",catchall:D4.create(),typeName:o1.ZodObject,...q2(V)})};class E3 extends z2{_parse($){let{ctx:V}=this._processInputParams($),J=this._def.options;function Q(X){for(let G of X)if(G.result.status==="valid")return G.result;for(let G of X)if(G.result.status==="dirty")return V.common.issues.push(...G.ctx.common.issues),G.result;let Y=X.map((G)=>new m9(G.ctx.common.issues));return P1(V,{code:Z1.invalid_union,unionErrors:Y}),u1}if(V.common.async)return Promise.all(J.map(async(X)=>{let Y={...V,common:{...V.common,issues:[]},parent:null};return{result:await X._parseAsync({data:V.data,path:V.path,parent:Y}),ctx:Y}})).then(Q);else{let X=void 0,Y=[];for(let W of J){let K={...V,common:{...V.common,issues:[]},parent:null},D=W._parseSync({data:V.data,path:V.path,parent:K});if(D.status==="valid")return D;else if(D.status==="dirty"&&!X)X={result:D,ctx:K};if(K.common.issues.length)Y.push(K.common.issues)}if(X)return V.common.issues.push(...X.ctx.common.issues),X.result;let G=Y.map((W)=>new m9(W));return P1(V,{code:Z1.invalid_union,unionErrors:G}),u1}}get options(){return this._def.options}}E3.create=($,V)=>{return new E3({options:$,typeName:o1.ZodUnion,...q2(V)})};var j8=($)=>{if($ instanceof h3)return j8($.schema);else if($ instanceof x6)return j8($.innerType());else if($ instanceof x3)return[$.value];else if($ instanceof C5)return $.options;else if($ instanceof d3)return M2.objectValues($.enum);else if($ instanceof y3)return j8($._def.innerType);else if($ instanceof m3)return[void 0];else if($ instanceof k3)return[null];else if($ instanceof v6)return[void 0,...j8($.unwrap())];else if($ instanceof N8)return[null,...j8($.unwrap())];else if($ instanceof BX)return j8($.unwrap());else if($ instanceof g3)return j8($.unwrap());else if($ instanceof b3)return j8($._def.innerType);else return[]};class FX extends z2{_parse($){let{ctx:V}=this._processInputParams($);if(V.parsedType!==L1.object)return P1(V,{code:Z1.invalid_type,expected:L1.object,received:V.parsedType}),u1;let J=this.discriminator,Q=V.data[J],X=this.optionsMap.get(Q);if(!X)return P1(V,{code:Z1.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[J]}),u1;if(V.common.async)return X._parseAsync({data:V.data,path:V.path,parent:V});else return X._parseSync({data:V.data,path:V.path,parent:V})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,V,J){let Q=new Map;for(let X of V){let Y=j8(X.shape[$]);if(!Y.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let G of Y){if(Q.has(G))throw Error(`Discriminator property ${String($)} has duplicate value ${String(G)}`);Q.set(G,X)}}return new FX({typeName:o1.ZodDiscriminatedUnion,discriminator:$,options:V,optionsMap:Q,...q2(J)})}}function jD($,V){let J=q4($),Q=q4(V);if($===V)return{valid:!0,data:$};else if(J===L1.object&&Q===L1.object){let X=M2.objectKeys(V),Y=M2.objectKeys($).filter((W)=>X.indexOf(W)!==-1),G={...$,...V};for(let W of Y){let K=jD($[W],V[W]);if(!K.valid)return{valid:!1};G[W]=K.data}return{valid:!0,data:G}}else if(J===L1.array&&Q===L1.array){if($.length!==V.length)return{valid:!1};let X=[];for(let Y=0;Y<$.length;Y++){let G=$[Y],W=V[Y],K=jD(G,W);if(!K.valid)return{valid:!1};X.push(K.data)}return{valid:!0,data:X}}else if(J===L1.date&&Q===L1.date&&+$===+V)return{valid:!0,data:$};else return{valid:!1}}class v3 extends z2{_parse($){let{status:V,ctx:J}=this._processInputParams($),Q=(X,Y)=>{if(PX(X)||PX(Y))return u1;let G=jD(X.value,Y.value);if(!G.valid)return P1(J,{code:Z1.invalid_intersection_types}),u1;if(OX(X)||OX(Y))V.dirty();return{status:V.value,value:G.data}};if(J.common.async)return Promise.all([this._def.left._parseAsync({data:J.data,path:J.path,parent:J}),this._def.right._parseAsync({data:J.data,path:J.path,parent:J})]).then(([X,Y])=>Q(X,Y));else return Q(this._def.left._parseSync({data:J.data,path:J.path,parent:J}),this._def.right._parseSync({data:J.data,path:J.path,parent:J}))}}v3.create=($,V,J)=>{return new v3({left:$,right:V,typeName:o1.ZodIntersection,...q2(J)})};class H4 extends z2{_parse($){let{status:V,ctx:J}=this._processInputParams($);if(J.parsedType!==L1.array)return P1(J,{code:Z1.invalid_type,expected:L1.array,received:J.parsedType}),u1;if(J.data.length<this._def.items.length)return P1(J,{code:Z1.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u1;if(!this._def.rest&&J.data.length>this._def.items.length)P1(J,{code:Z1.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),V.dirty();let X=[...J.data].map((Y,G)=>{let W=this._def.items[G]||this._def.rest;if(!W)return null;return W._parse(new h6(J,Y,J.path,G))}).filter((Y)=>!!Y);if(J.common.async)return Promise.all(X).then((Y)=>{return J9.mergeArray(V,Y)});else return J9.mergeArray(V,X)}get items(){return this._def.items}rest($){return new H4({...this._def,rest:$})}}H4.create=($,V)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new H4({items:$,typeName:o1.ZodTuple,rest:null,...q2(V)})};class dV extends z2{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:V,ctx:J}=this._processInputParams($);if(J.parsedType!==L1.object)return P1(J,{code:Z1.invalid_type,expected:L1.object,received:J.parsedType}),u1;let Q=[],X=this._def.keyType,Y=this._def.valueType;for(let G in J.data)Q.push({key:X._parse(new h6(J,G,J.path,G)),value:Y._parse(new h6(J,J.data[G],J.path,G)),alwaysSet:G in J.data});if(J.common.async)return J9.mergeObjectAsync(V,Q);else return J9.mergeObjectSync(V,Q)}get element(){return this._def.valueType}static create($,V,J){if(V instanceof z2)return new dV({keyType:$,valueType:V,typeName:o1.ZodRecord,...q2(J)});return new dV({keyType:k6.create(),valueType:$,typeName:o1.ZodRecord,...q2(V)})}}class yV extends z2{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:V,ctx:J}=this._processInputParams($);if(J.parsedType!==L1.map)return P1(J,{code:Z1.invalid_type,expected:L1.map,received:J.parsedType}),u1;let Q=this._def.keyType,X=this._def.valueType,Y=[...J.data.entries()].map(([G,W],K)=>{return{key:Q._parse(new h6(J,G,J.path,[K,"key"])),value:X._parse(new h6(J,W,J.path,[K,"value"]))}});if(J.common.async){let G=new Map;return Promise.resolve().then(async()=>{for(let W of Y){let K=await W.key,D=await W.value;if(K.status==="aborted"||D.status==="aborted")return u1;if(K.status==="dirty"||D.status==="dirty")V.dirty();G.set(K.value,D.value)}return{status:V.value,value:G}})}else{let G=new Map;for(let W of Y){let{key:K,value:D}=W;if(K.status==="aborted"||D.status==="aborted")return u1;if(K.status==="dirty"||D.status==="dirty")V.dirty();G.set(K.value,D.value)}return{status:V.value,value:G}}}}yV.create=($,V,J)=>{return new yV({valueType:V,keyType:$,typeName:o1.ZodMap,...q2(J)})};class U7 extends z2{_parse($){let{status:V,ctx:J}=this._processInputParams($);if(J.parsedType!==L1.set)return P1(J,{code:Z1.invalid_type,expected:L1.set,received:J.parsedType}),u1;let Q=this._def;if(Q.minSize!==null){if(J.data.size<Q.minSize.value)P1(J,{code:Z1.too_small,minimum:Q.minSize.value,type:"set",inclusive:!0,exact:!1,message:Q.minSize.message}),V.dirty()}if(Q.maxSize!==null){if(J.data.size>Q.maxSize.value)P1(J,{code:Z1.too_big,maximum:Q.maxSize.value,type:"set",inclusive:!0,exact:!1,message:Q.maxSize.message}),V.dirty()}let X=this._def.valueType;function Y(W){let K=new Set;for(let D of W){if(D.status==="aborted")return u1;if(D.status==="dirty")V.dirty();K.add(D.value)}return{status:V.value,value:K}}let G=[...J.data.values()].map((W,K)=>X._parse(new h6(J,W,J.path,K)));if(J.common.async)return Promise.all(G).then((W)=>Y(W));else return Y(G)}min($,V){return new U7({...this._def,minSize:{value:$,message:v1.toString(V)}})}max($,V){return new U7({...this._def,maxSize:{value:$,message:v1.toString(V)}})}size($,V){return this.min($,V).max($,V)}nonempty($){return this.min(1,$)}}U7.create=($,V)=>{return new U7({valueType:$,minSize:null,maxSize:null,typeName:o1.ZodSet,...q2(V)})};class A3 extends z2{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:V}=this._processInputParams($);if(V.parsedType!==L1.function)return P1(V,{code:Z1.invalid_type,expected:L1.function,received:V.parsedType}),u1;function J(G,W){return vV({data:G,path:V.path,errorMaps:[V.common.contextualErrorMap,V.schemaErrorMap,C3(),z8].filter((K)=>!!K),issueData:{code:Z1.invalid_arguments,argumentsError:W}})}function Q(G,W){return vV({data:G,path:V.path,errorMaps:[V.common.contextualErrorMap,V.schemaErrorMap,C3(),z8].filter((K)=>!!K),issueData:{code:Z1.invalid_return_type,returnTypeError:W}})}let X={errorMap:V.common.contextualErrorMap},Y=V.data;if(this._def.returns instanceof w7){let G=this;return z9(async function(...W){let K=new m9([]),D=await G._def.args.parseAsync(W,X).catch((z)=>{throw K.addIssue(J(W,z)),K}),H=await Reflect.apply(Y,this,D);return await G._def.returns._def.type.parseAsync(H,X).catch((z)=>{throw K.addIssue(Q(H,z)),K})})}else{let G=this;return z9(function(...W){let K=G._def.args.safeParse(W,X);if(!K.success)throw new m9([J(W,K.error)]);let D=Reflect.apply(Y,this,K.data),H=G._def.returns.safeParse(D,X);if(!H.success)throw new m9([Q(D,H.error)]);return H.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new A3({...this._def,args:H4.create($).rest(B5.create())})}returns($){return new A3({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,V,J){return new A3({args:$?$:H4.create([]).rest(B5.create()),returns:V||B5.create(),typeName:o1.ZodFunction,...q2(J)})}}class h3 extends z2{get schema(){return this._def.getter()}_parse($){let{ctx:V}=this._processInputParams($);return this._def.getter()._parse({data:V.data,path:V.path,parent:V})}}h3.create=($,V)=>{return new h3({getter:$,typeName:o1.ZodLazy,...q2(V)})};class x3 extends z2{_parse($){if($.data!==this._def.value){let V=this._getOrReturnCtx($);return P1(V,{received:V.data,code:Z1.invalid_literal,expected:this._def.value}),u1}return{status:"valid",value:$.data}}get value(){return this._def.value}}x3.create=($,V)=>{return new x3({value:$,typeName:o1.ZodLiteral,...q2(V)})};function OC($,V){return new C5({values:$,typeName:o1.ZodEnum,...q2(V)})}class C5 extends z2{_parse($){if(typeof $.data!=="string"){let V=this._getOrReturnCtx($),J=this._def.values;return P1(V,{expected:M2.joinValues(J),received:V.parsedType,code:Z1.invalid_type}),u1}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let V=this._getOrReturnCtx($),J=this._def.values;return P1(V,{received:V.data,code:Z1.invalid_enum_value,options:J}),u1}return z9($.data)}get options(){return this._def.values}get enum(){let $={};for(let V of this._def.values)$[V]=V;return $}get Values(){let $={};for(let V of this._def.values)$[V]=V;return $}get Enum(){let $={};for(let V of this._def.values)$[V]=V;return $}extract($,V=this._def){return C5.create($,{...this._def,...V})}exclude($,V=this._def){return C5.create(this.options.filter((J)=>!$.includes(J)),{...this._def,...V})}}C5.create=OC;class d3 extends z2{_parse($){let V=M2.getValidEnumValues(this._def.values),J=this._getOrReturnCtx($);if(J.parsedType!==L1.string&&J.parsedType!==L1.number){let Q=M2.objectValues(V);return P1(J,{expected:M2.joinValues(Q),received:J.parsedType,code:Z1.invalid_type}),u1}if(!this._cache)this._cache=new Set(M2.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let Q=M2.objectValues(V);return P1(J,{received:J.data,code:Z1.invalid_enum_value,options:Q}),u1}return z9($.data)}get enum(){return this._def.values}}d3.create=($,V)=>{return new d3({values:$,typeName:o1.ZodNativeEnum,...q2(V)})};class w7 extends z2{unwrap(){return this._def.type}_parse($){let{ctx:V}=this._processInputParams($);if(V.parsedType!==L1.promise&&V.common.async===!1)return P1(V,{code:Z1.invalid_type,expected:L1.promise,received:V.parsedType}),u1;let J=V.parsedType===L1.promise?V.data:Promise.resolve(V.data);return z9(J.then((Q)=>{return this._def.type.parseAsync(Q,{path:V.path,errorMap:V.common.contextualErrorMap})}))}}w7.create=($,V)=>{return new w7({type:$,typeName:o1.ZodPromise,...q2(V)})};class x6 extends z2{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o1.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:V,ctx:J}=this._processInputParams($),Q=this._def.effect||null,X={addIssue:(Y)=>{if(P1(J,Y),Y.fatal)V.abort();else V.dirty()},get path(){return J.path}};if(X.addIssue=X.addIssue.bind(X),Q.type==="preprocess"){let Y=Q.transform(J.data,X);if(J.common.async)return Promise.resolve(Y).then(async(G)=>{if(V.value==="aborted")return u1;let W=await this._def.schema._parseAsync({data:G,path:J.path,parent:J});if(W.status==="aborted")return u1;if(W.status==="dirty")return D7(W.value);if(V.value==="dirty")return D7(W.value);return W});else{if(V.value==="aborted")return u1;let G=this._def.schema._parseSync({data:Y,path:J.path,parent:J});if(G.status==="aborted")return u1;if(G.status==="dirty")return D7(G.value);if(V.value==="dirty")return D7(G.value);return G}}if(Q.type==="refinement"){let Y=(G)=>{let W=Q.refinement(G,X);if(J.common.async)return Promise.resolve(W);if(W instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return G};if(J.common.async===!1){let G=this._def.schema._parseSync({data:J.data,path:J.path,parent:J});if(G.status==="aborted")return u1;if(G.status==="dirty")V.dirty();return Y(G.value),{status:V.value,value:G.value}}else return this._def.schema._parseAsync({data:J.data,path:J.path,parent:J}).then((G)=>{if(G.status==="aborted")return u1;if(G.status==="dirty")V.dirty();return Y(G.value).then(()=>{return{status:V.value,value:G.value}})})}if(Q.type==="transform")if(J.common.async===!1){let Y=this._def.schema._parseSync({data:J.data,path:J.path,parent:J});if(!F5(Y))return u1;let G=Q.transform(Y.value,X);if(G instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:V.value,value:G}}else return this._def.schema._parseAsync({data:J.data,path:J.path,parent:J}).then((Y)=>{if(!F5(Y))return u1;return Promise.resolve(Q.transform(Y.value,X)).then((G)=>({status:V.value,value:G}))});M2.assertNever(Q)}}x6.create=($,V,J)=>{return new x6({schema:$,typeName:o1.ZodEffects,effect:V,...q2(J)})};x6.createWithPreprocess=($,V,J)=>{return new x6({schema:V,effect:{type:"preprocess",transform:$},typeName:o1.ZodEffects,...q2(J)})};class v6 extends z2{_parse($){if(this._getType($)===L1.undefined)return z9(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}v6.create=($,V)=>{return new v6({innerType:$,typeName:o1.ZodOptional,...q2(V)})};class N8 extends z2{_parse($){if(this._getType($)===L1.null)return z9(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}N8.create=($,V)=>{return new N8({innerType:$,typeName:o1.ZodNullable,...q2(V)})};class y3 extends z2{_parse($){let{ctx:V}=this._processInputParams($),J=V.data;if(V.parsedType===L1.undefined)J=this._def.defaultValue();return this._def.innerType._parse({data:J,path:V.path,parent:V})}removeDefault(){return this._def.innerType}}y3.create=($,V)=>{return new y3({innerType:$,typeName:o1.ZodDefault,defaultValue:typeof V.default==="function"?V.default:()=>V.default,...q2(V)})};class b3 extends z2{_parse($){let{ctx:V}=this._processInputParams($),J={...V,common:{...V.common,issues:[]}},Q=this._def.innerType._parse({data:J.data,path:J.path,parent:{...J}});if(I3(Q))return Q.then((X)=>{return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new m9(J.common.issues)},input:J.data})}});else return{status:"valid",value:Q.status==="valid"?Q.value:this._def.catchValue({get error(){return new m9(J.common.issues)},input:J.data})}}removeCatch(){return this._def.innerType}}b3.create=($,V)=>{return new b3({innerType:$,typeName:o1.ZodCatch,catchValue:typeof V.catch==="function"?V.catch:()=>V.catch,...q2(V)})};class bV extends z2{_parse($){if(this._getType($)!==L1.nan){let J=this._getOrReturnCtx($);return P1(J,{code:Z1.invalid_type,expected:L1.nan,received:J.parsedType}),u1}return{status:"valid",value:$.data}}}bV.create=($)=>{return new bV({typeName:o1.ZodNaN,...q2($)})};var D61=Symbol("zod_brand");class BX extends z2{_parse($){let{ctx:V}=this._processInputParams($),J=V.data;return this._def.type._parse({data:J,path:V.path,parent:V})}unwrap(){return this._def.type}}class gV extends z2{_parse($){let{status:V,ctx:J}=this._processInputParams($);if(J.common.async)return(async()=>{let X=await this._def.in._parseAsync({data:J.data,path:J.path,parent:J});if(X.status==="aborted")return u1;if(X.status==="dirty")return V.dirty(),D7(X.value);else return this._def.out._parseAsync({data:X.value,path:J.path,parent:J})})();else{let Q=this._def.in._parseSync({data:J.data,path:J.path,parent:J});if(Q.status==="aborted")return u1;if(Q.status==="dirty")return V.dirty(),{status:"dirty",value:Q.value};else return this._def.out._parseSync({data:Q.value,path:J.path,parent:J})}}static create($,V){return new gV({in:$,out:V,typeName:o1.ZodPipeline})}}class g3 extends z2{_parse($){let V=this._def.innerType._parse($),J=(Q)=>{if(F5(Q))Q.value=Object.freeze(Q.value);return Q};return I3(V)?V.then((Q)=>J(Q)):J(V)}unwrap(){return this._def.innerType}}g3.create=($,V)=>{return new g3({innerType:$,typeName:o1.ZodReadonly,...q2(V)})};function MC($,V){let J=typeof $==="function"?$(V):typeof $==="string"?{message:$}:$;return typeof J==="string"?{message:J}:J}function FC($,V={},J){if($)return Z7.create().superRefine((Q,X)=>{let Y=$(Q);if(Y instanceof Promise)return Y.then((G)=>{if(!G){let W=MC(V,Q),K=W.fatal??J??!0;X.addIssue({code:"custom",...W,fatal:K})}});if(!Y){let G=MC(V,Q),W=G.fatal??J??!0;X.addIssue({code:"custom",...G,fatal:W})}return});return Z7.create()}var H61={object:H0.lazycreate},o1;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(o1||(o1={}));var Z61=($,V={message:`Input not instance of ${$.name}`})=>FC((J)=>J instanceof $,V),BC=k6.create,SC=S5.create,U61=bV.create,w61=_5.create,_C=p3.create,z61=H7.create,j61=hV.create,N61=m3.create,M61=k3.create,L61=Z7.create,R61=B5.create,P61=D4.create,O61=xV.create,F61=E6.create,B61=H0.create,S61=H0.strictCreate,_61=E3.create,C61=FX.create,I61=v3.create,T61=H4.create,A61=dV.create,p61=yV.create,m61=U7.create,k61=A3.create,E61=h3.create,v61=x3.create,h61=C5.create,x61=d3.create,d61=w7.create,y61=x6.create,b61=v6.create,g61=N8.create,l61=x6.createWithPreprocess,f61=gV.create,u61=()=>BC().optional(),a61=()=>SC().optional(),i61=()=>_C().optional(),c61={string:($)=>k6.create({...$,coerce:!0}),number:($)=>S5.create({...$,coerce:!0}),boolean:($)=>p3.create({...$,coerce:!0}),bigint:($)=>_5.create({...$,coerce:!0}),date:($)=>H7.create({...$,coerce:!0})};var n61=u1;function K1($,V,J){let Q=$[V.name];if(typeof Q==="function")return Q;let X=$[J];if(typeof X==="function")return X;return(Y)=>V($,Y)}class MD extends _1{constructor($){super(`Filter type "${$}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var CC="/docs/contract/encodeEventTopics";function Z4($){let{abi:V,eventName:J,args:Q}=$,X=V[0];if(J){let K=_X({abi:V,name:J});if(!K)throw new LD(J,{docsPath:CC});X=K}if(X.type!=="event")throw new LD(void 0,{docsPath:CC});let Y=SX(X),G=l3(Y),W=[];if(Q&&"inputs"in X){let K=X.inputs?.filter((H)=>("indexed"in H)&&H.indexed),D=Array.isArray(Q)?Q:Object.values(Q).length>0?K?.map((H)=>Q[H.name])??[]:[];if(D.length>0)W=K?.map((H,U)=>{if(Array.isArray(D[U]))return D[U].map((z,M)=>IC({param:H,value:D[U][M]}));return typeof D[U]<"u"&&D[U]!==null?IC({param:H,value:D[U]}):null})??[]}return[G,...W]}function IC({param:$,value:V}){if($.type==="string"||$.type==="bytes")return G0(U6(V));if($.type==="tuple"||$.type.match(/^(.*)\[(\d+)?\]$/))throw new MD($.type);return z7([$],[V])}function I5($,{method:V}){let J={};if($.transport.type==="fallback")$.transport.onResponse?.(({method:Q,response:X,status:Y,transport:G})=>{if(Y==="success"&&V===Q)J[X]=G.request});return(Q)=>J[Q]||$.request}async function CX($,V){let{address:J,abi:Q,args:X,eventName:Y,fromBlock:G,strict:W,toBlock:K}=V,D=I5($,{method:"eth_newFilter"}),H=Y?Z4({abi:Q,args:X,eventName:Y}):void 0,U=await $.request({method:"eth_newFilter",params:[{address:J,fromBlock:typeof G==="bigint"?D1(G):G,toBlock:typeof K==="bigint"?D1(K):K,topics:H}]});return{abi:Q,args:X,eventName:Y,id:U,request:D(U),strict:Boolean(W),type:"event"}}var o61=3;function l9($,{abi:V,address:J,args:Q,docsPath:X,functionName:Y,sender:G}){let W=$ instanceof u3?$:$ instanceof _1?$.walk((L)=>("data"in L))||$.walk():{},{code:K,data:D,details:H,message:U,shortMessage:z}=W,M=(()=>{if($ instanceof f3)return new TC({functionName:Y});if([o61,a3.code].includes(K)&&(D||H||U||z)||K===M8.code&&H==="execution reverted"&&D)return new lV({abi:V,data:typeof D==="object"?D.data:D,functionName:Y,message:W instanceof TX?H:z??U});return $})();return new IX(M,{abi:V,args:Q,contractAddress:J,docsPath:X,functionName:Y,sender:G})}function AX($){let V=G0(`0x${$.substring(4)}`).substring(26);return fV(`0x${V}`)}async function pC({hash:$,signature:V}){let J=d6($)?$:s1($),{secp256k1:Q}=await import("./chunk-kyajbpp1.mjs");return`0x${(()=>{if(typeof V==="object"&&"r"in V&&"s"in V){let{r:D,s:H,v:U,yParity:z}=V,M=Number(z??U),L=AC(M);return new Q.Signature(j2(D),j2(H)).addRecoveryBit(L)}let G=d6(V)?V:s1(V);if(f9(G)!==65)throw Error("invalid signature length");let W=Z0(`0x${G.slice(130)}`),K=AC(W);return Q.Signature.fromCompact(G.substring(2,130)).addRecoveryBit(K)})().recoverPublicKey(J.substring(2)).toHex(!1)}`}function AC($){if($===0||$===1)return $;if($===27)return 0;if($===28)return 1;throw Error("Invalid yParityOrV value")}async function pX({hash:$,signature:V}){return AX(await pC({hash:$,signature:V}))}function u9($,V="hex"){let J=mC($),Q=mX(new Uint8Array(J.length));if(J.encode(Q),V==="hex")return U0(Q.bytes);return Q.bytes}function mC($){if(Array.isArray($))return s61($.map((V)=>mC(V)));return r61($)}function s61($){let V=$.reduce((X,Y)=>X+Y.length,0),J=kC(V);return{length:(()=>{if(V<=55)return 1+V;return 1+J+V})(),encode(X){if(V<=55)X.pushByte(192+V);else if(X.pushByte(247+J),J===1)X.pushUint8(V);else if(J===2)X.pushUint16(V);else if(J===3)X.pushUint24(V);else X.pushUint32(V);for(let{encode:Y}of $)Y(X)}}}function r61($){let V=typeof $==="string"?b0($):$,J=kC(V.length);return{length:(()=>{if(V.length===1&&V[0]<128)return 1;if(V.length<=55)return 1+V.length;return 1+J+V.length})(),encode(X){if(V.length===1&&V[0]<128)X.pushBytes(V);else if(V.length<=55)X.pushByte(128+V.length),X.pushBytes(V);else{if(X.pushByte(183+J),J===1)X.pushUint8(V.length);else if(J===2)X.pushUint16(V.length);else if(J===3)X.pushUint24(V.length);else X.pushUint32(V.length);X.pushBytes(V)}}}}function kC($){if($<256)return 1;if($<65536)return 2;if($<16777216)return 3;if($<4294967296)return 4;throw new _1("Length is too large.")}function kX($){let{chainId:V,nonce:J,to:Q}=$,X=$.contractAddress??$.address,Y=G0(a9(["0x05",u9([V?D1(V):"0x",X,J?D1(J):"0x"])]));if(Q==="bytes")return b0(Y);return Y}async function T5($){let{authorization:V,signature:J}=$;return pX({hash:kX(V),signature:J??V})}class RD extends _1{constructor($,{account:V,docsPath:J,chain:Q,data:X,gas:Y,gasPrice:G,maxFeePerGas:W,maxPriorityFeePerGas:K,nonce:D,to:H,value:U}){let z=vC({from:V?.address,to:H,value:typeof U<"u"&&`${EC(U)} ${Q?.nativeCurrency?.symbol||"ETH"}`,data:X,gas:Y,gasPrice:typeof G<"u"&&`${i3(G)} gwei`,maxFeePerGas:typeof W<"u"&&`${i3(W)} gwei`,maxPriorityFeePerGas:typeof K<"u"&&`${i3(K)} gwei`,nonce:D});super($.shortMessage,{cause:$,docsPath:J,metaMessages:[...$.metaMessages?[...$.metaMessages," "]:[],"Estimate Gas Arguments:",z].filter(Boolean),name:"EstimateGasExecutionError"});Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=$}}function hC($,{docsPath:V,...J}){let Q=(()=>{let X=n3($,J);if(X instanceof c3)return $;return X})();return new RD(Q,{docsPath:V,...J})}class uV extends _1{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class j7 extends _1{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class PD extends _1{constructor({maxPriorityFeePerGas:$}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${i3($)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class aV extends _1{constructor({blockHash:$,blockNumber:V}){let J="Block";if($)J=`Block at hash "${$}"`;if(V)J=`Block at number "${V}"`;super(`${J} could not be found.`,{name:"BlockNotFoundError"})}}var OD={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function L8($,V){let J={...$,blockHash:$.blockHash?$.blockHash:null,blockNumber:$.blockNumber?BigInt($.blockNumber):null,chainId:$.chainId?Z0($.chainId):void 0,gas:$.gas?BigInt($.gas):void 0,gasPrice:$.gasPrice?BigInt($.gasPrice):void 0,maxFeePerBlobGas:$.maxFeePerBlobGas?BigInt($.maxFeePerBlobGas):void 0,maxFeePerGas:$.maxFeePerGas?BigInt($.maxFeePerGas):void 0,maxPriorityFeePerGas:$.maxPriorityFeePerGas?BigInt($.maxPriorityFeePerGas):void 0,nonce:$.nonce?Z0($.nonce):void 0,to:$.to?$.to:null,transactionIndex:$.transactionIndex?Number($.transactionIndex):null,type:$.type?OD[$.type]:void 0,typeHex:$.type?$.type:void 0,value:$.value?BigInt($.value):void 0,v:$.v?BigInt($.v):void 0};if($.authorizationList)J.authorizationList=t61($.authorizationList);if(J.yParity=(()=>{if($.yParity)return Number($.yParity);if(typeof J.v==="bigint"){if(J.v===0n||J.v===27n)return 0;if(J.v===1n||J.v===28n)return 1;if(J.v>=35n)return J.v%2n===0n?1:0}return})(),J.type==="legacy")delete J.accessList,delete J.maxFeePerBlobGas,delete J.maxFeePerGas,delete J.maxPriorityFeePerGas,delete J.yParity;if(J.type==="eip2930")delete J.maxFeePerBlobGas,delete J.maxFeePerGas,delete J.maxPriorityFeePerGas;if(J.type==="eip1559")delete J.maxFeePerBlobGas;return J}var EX=o3("transaction",L8);function t61($){return $.map((V)=>({address:V.address,chainId:Number(V.chainId),nonce:Number(V.nonce),r:V.r,s:V.s,yParity:Number(V.yParity)}))}function iV($,V){let J=($.transactions??[]).map((Q)=>{if(typeof Q==="string")return Q;return L8(Q)});return{...$,baseFeePerGas:$.baseFeePerGas?BigInt($.baseFeePerGas):null,blobGasUsed:$.blobGasUsed?BigInt($.blobGasUsed):void 0,difficulty:$.difficulty?BigInt($.difficulty):void 0,excessBlobGas:$.excessBlobGas?BigInt($.excessBlobGas):void 0,gasLimit:$.gasLimit?BigInt($.gasLimit):void 0,gasUsed:$.gasUsed?BigInt($.gasUsed):void 0,hash:$.hash?$.hash:null,logsBloom:$.logsBloom?$.logsBloom:null,nonce:$.nonce?$.nonce:null,number:$.number?BigInt($.number):null,size:$.size?BigInt($.size):void 0,timestamp:$.timestamp?BigInt($.timestamp):void 0,transactions:J,totalDifficulty:$.totalDifficulty?BigInt($.totalDifficulty):null}}var vX=o3("block",iV);async function i0($,{blockHash:V,blockNumber:J,blockTag:Q=$.experimental_blockTag??"latest",includeTransactions:X}={}){let Y=X??!1,G=J!==void 0?D1(J):void 0,W=null;if(V)W=await $.request({method:"eth_getBlockByHash",params:[V,Y]},{dedupe:!0});else W=await $.request({method:"eth_getBlockByNumber",params:[G||Q,Y]},{dedupe:Boolean(G)});if(!W)throw new aV({blockHash:V,blockNumber:J});return($.chain?.formatters?.block?.format||iV)(W,"getBlock")}async function s3($){let V=await $.request({method:"eth_gasPrice"});return BigInt(V)}async function xC($,V){return FD($,V)}async function FD($,V){let{block:J,chain:Q=$.chain,request:X}=V||{};try{let Y=Q?.fees?.maxPriorityFeePerGas??Q?.fees?.defaultPriorityFee;if(typeof Y==="function"){let W=J||await K1($,i0,"getBlock")({}),K=await Y({block:W,client:$,request:X});if(K===null)throw Error();return K}if(typeof Y<"u")return Y;let G=await $.request({method:"eth_maxPriorityFeePerGas"});return j2(G)}catch{let[Y,G]=await Promise.all([J?Promise.resolve(J):K1($,i0,"getBlock")({}),K1($,s3,"getGasPrice")({})]);if(typeof Y.baseFeePerGas!=="bigint")throw new j7;let W=G-Y.baseFeePerGas;if(W<0n)return 0n;return W}}async function dC($,V){return hX($,V)}async function hX($,V){let{block:J,chain:Q=$.chain,request:X,type:Y="eip1559"}=V||{},G=await(async()=>{if(typeof Q?.fees?.baseFeeMultiplier==="function")return Q.fees.baseFeeMultiplier({block:J,client:$,request:X});return Q?.fees?.baseFeeMultiplier??1.2})();if(G<1)throw new uV;let K=10**(G.toString().split(".")[1]?.length??0),D=(z)=>z*BigInt(Math.ceil(G*K))/BigInt(K),H=J?J:await K1($,i0,"getBlock")({});if(typeof Q?.fees?.estimateFeesPerGas==="function"){let z=await Q.fees.estimateFeesPerGas({block:J,client:$,multiply:D,request:X,type:Y});if(z!==null)return z}if(Y==="eip1559"){if(typeof H.baseFeePerGas!=="bigint")throw new j7;let z=typeof X?.maxPriorityFeePerGas==="bigint"?X.maxPriorityFeePerGas:await FD($,{block:H,chain:Q,request:X}),M=D(H.baseFeePerGas);return{maxFeePerGas:X?.maxFeePerGas??M+z,maxPriorityFeePerGas:z}}return{gasPrice:X?.gasPrice??D(await K1($,s3,"getGasPrice")({}))}}async function r3($,{address:V,blockTag:J="latest",blockNumber:Q}){let X=await $.request({method:"eth_getTransactionCount",params:[V,typeof Q==="bigint"?D1(Q):J]},{dedupe:Boolean(Q)});return Z0(X)}function t3($){let{kzg:V}=$,J=$.to??(typeof $.blobs[0]==="string"?"hex":"bytes"),Q=typeof $.blobs[0]==="string"?$.blobs.map((Y)=>b0(Y)):$.blobs,X=[];for(let Y of Q)X.push(Uint8Array.from(V.blobToKzgCommitment(Y)));return J==="bytes"?X:X.map((Y)=>U0(Y))}function e3($){let{kzg:V}=$,J=$.to??(typeof $.blobs[0]==="string"?"hex":"bytes"),Q=typeof $.blobs[0]==="string"?$.blobs.map((G)=>b0(G)):$.blobs,X=typeof $.commitments[0]==="string"?$.commitments.map((G)=>b0(G)):$.commitments,Y=[];for(let G=0;G<Q.length;G++){let W=Q[G],K=X[G];Y.push(Uint8Array.from(V.computeBlobKzgProof(W,K)))}return J==="bytes"?Y:Y.map((G)=>U0(G))}var yC=xX;function dX($,V){let J=V||"hex",Q=yC(d6($,{strict:!1})?U6($):$);if(J==="bytes")return Q;return s1(Q)}function bC($){let{commitment:V,version:J=1}=$,Q=$.to??(typeof V==="string"?"hex":"bytes"),X=dX(V,"bytes");return X.set([J],0),Q==="bytes"?X:U0(X)}function yX($){let{commitments:V,version:J}=$,Q=$.to??(typeof V[0]==="string"?"hex":"bytes"),X=[];for(let Y of V)X.push(bC({commitment:Y,to:Q,version:J}));return X}var gC=32,lC=4096,fC=131072,BD=761855;var bX=1;class SD extends _1{constructor({maxSize:$,size:V}){super("Blob size is too large.",{metaMessages:[`Max: ${$} bytes`,`Given: ${V} bytes`],name:"BlobSizeTooLargeError"})}}class cV extends _1{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class _D extends _1{constructor({hash:$,size:V}){super(`Versioned hash "${$}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${V}`],name:"InvalidVersionedHashSizeError"})}}class CD extends _1{constructor({hash:$,version:V}){super(`Versioned hash "${$}" version is invalid.`,{metaMessages:[`Expected: ${bX}`,`Received: ${V}`],name:"InvalidVersionedHashVersionError"})}}function uC($){let V=$.to??(typeof $.data==="string"?"hex":"bytes"),J=typeof $.data==="string"?b0($.data):$.data,Q=f9(J);if(!Q)throw new cV;if(Q>BD)throw new SD({maxSize:BD,size:Q});let X=[],Y=!0,G=0;while(Y){let W=mX(new Uint8Array(fC)),K=0;while(K<lC){let D=J.slice(G,G+(gC-1));if(W.pushByte(0),W.pushBytes(D),D.length<31){W.pushByte(128),Y=!1;break}K++,G+=31}X.push(W)}return V==="bytes"?X.map((W)=>W.bytes):X.map((W)=>U0(W.bytes))}function gX($){let{data:V,kzg:J,to:Q}=$,X=$.blobs??uC({data:V,to:Q}),Y=$.commitments??t3({blobs:X,kzg:J,to:Q}),G=$.proofs??e3({blobs:X,commitments:Y,kzg:J,to:Q}),W=[];for(let K=0;K<X.length;K++)W.push({blob:X[K],commitment:Y[K],proof:G[K]});return W}function lX($){if($.type)return $.type;if(typeof $.authorizationList<"u")return"eip7702";if(typeof $.blobs<"u"||typeof $.blobVersionedHashes<"u"||typeof $.maxFeePerBlobGas<"u"||typeof $.sidecars<"u")return"eip4844";if(typeof $.maxFeePerGas<"u"||typeof $.maxPriorityFeePerGas<"u")return"eip1559";if(typeof $.gasPrice<"u"){if(typeof $.accessList<"u")return"eip2930";return"legacy"}throw new aC({transaction:$})}function U4($,{docsPath:V,...J}){let Q=(()=>{let X=n3($,J);if(X instanceof c3)return $;return X})();return new iC(Q,{docsPath:V,...J})}async function m0($){let V=await $.request({method:"eth_chainId"},{dedupe:!0});return Z0(V)}async function $$($,V){let{account:J=$.account,accessList:Q,authorizationList:X,chain:Y=$.chain,blobVersionedHashes:G,blobs:W,data:K,gas:D,gasPrice:H,maxFeePerBlobGas:U,maxFeePerGas:z,maxPriorityFeePerGas:M,nonce:L,nonceManager:B,to:_,type:T,value:h,...A}=V,E=await(async()=>{if(!J)return L;if(!B)return L;if(typeof L<"u")return L;let o=X2(J),u=Y?Y.id:await K1($,m0,"getChainId")({});return await B.consume({address:o.address,chainId:u,client:$})})();c0(V);let y=Y?.formatters?.transactionRequest?.format,f=(y||k9)({...w4(A,{format:y}),account:J?X2(J):void 0,accessList:Q,authorizationList:X,blobs:W,blobVersionedHashes:G,data:K,gas:D,gasPrice:H,maxFeePerBlobGas:U,maxFeePerGas:z,maxPriorityFeePerGas:M,nonce:E,to:_,type:T,value:h},"fillTransaction");try{let o=await $.request({method:"eth_fillTransaction",params:[f]}),i=(Y?.formatters?.transaction?.format||L8)(o.tx);if(delete i.blockHash,delete i.blockNumber,delete i.r,delete i.s,delete i.transactionIndex,delete i.v,delete i.yParity,i.data=i.input,i.gas)i.gas=V.gas??i.gas;if(i.gasPrice)i.gasPrice=V.gasPrice??i.gasPrice;if(i.maxFeePerBlobGas)i.maxFeePerBlobGas=V.maxFeePerBlobGas??i.maxFeePerBlobGas;if(i.maxFeePerGas)i.maxFeePerGas=V.maxFeePerGas??i.maxFeePerGas;if(i.maxPriorityFeePerGas)i.maxPriorityFeePerGas=V.maxPriorityFeePerGas??i.maxPriorityFeePerGas;if(i.nonce)i.nonce=V.nonce??i.nonce;let t=await(async()=>{if(typeof Y?.fees?.baseFeeMultiplier==="function"){let Z=await K1($,i0,"getBlock")({});return Y.fees.baseFeeMultiplier({block:Z,client:$,request:V})}return Y?.fees?.baseFeeMultiplier??1.2})();if(t<1)throw new uV;let S=10**(t.toString().split(".")[1]?.length??0),q=(Z)=>Z*BigInt(Math.ceil(t*S))/BigInt(S);if(i.maxFeePerGas&&!V.maxFeePerGas)i.maxFeePerGas=q(i.maxFeePerGas);if(i.gasPrice&&!V.gasPrice)i.gasPrice=q(i.gasPrice);return{raw:o.raw,transaction:{from:f.from,...i}}}catch(o){throw U4(o,{...V,chain:$.chain})}}var nV=["blobVersionedHashes","chainId","fees","gas","nonce","type"],cC=new Map,ID=new A5(128);async function w6($,V){let J=V;J.account??=$.account,J.parameters??=nV;let{account:Q,chain:X=$.chain,nonceManager:Y,parameters:G}=J,W=(()=>{if(typeof X?.prepareTransactionRequest==="function")return{fn:X.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(X?.prepareTransactionRequest))return{fn:X.prepareTransactionRequest[0],runAt:X.prepareTransactionRequest[1].runAt};return})(),K;async function D(){if(K)return K;if(typeof J.chainId<"u")return J.chainId;if(X)return X.id;return K=await K1($,m0,"getChainId")({}),K}let H=Q?X2(Q):Q,U=J.nonce;if(G.includes("nonce")&&typeof U>"u"&&H&&Y){let E=await D();U=await Y.consume({address:H.address,chainId:E,client:$})}if(W?.fn&&W.runAt?.includes("beforeFillTransaction"))J=await W.fn({...J,chain:X},{phase:"beforeFillTransaction"}),U??=J.nonce;let M=(()=>{if((G.includes("blobVersionedHashes")||G.includes("sidecars"))&&J.kzg&&J.blobs)return!1;if(ID.get($.uid)===!1)return!1;if(!["fees","gas"].some((y)=>G.includes(y)))return!1;if(G.includes("chainId")&&typeof J.chainId!=="number")return!0;if(G.includes("nonce")&&typeof U!=="number")return!0;if(G.includes("fees")&&typeof J.gasPrice!=="bigint"&&(typeof J.maxFeePerGas!=="bigint"||typeof J.maxPriorityFeePerGas!=="bigint"))return!0;if(G.includes("gas")&&typeof J.gas!=="bigint")return!0;return!1})()?await K1($,$$,"fillTransaction")({...J,nonce:U}).then((E)=>{let{chainId:y,from:l,gas:f,gasPrice:o,nonce:u,maxFeePerBlobGas:i,maxFeePerGas:t,maxPriorityFeePerGas:g,type:S,...q}=E.transaction;return ID.set($.uid,!0),{...J,...l?{from:l}:{},...S?{type:S}:{},...typeof y<"u"?{chainId:y}:{},...typeof f<"u"?{gas:f}:{},...typeof o<"u"?{gasPrice:o}:{},...typeof u<"u"?{nonce:u}:{},...typeof i<"u"?{maxFeePerBlobGas:i}:{},...typeof t<"u"?{maxFeePerGas:t}:{},...typeof g<"u"?{maxPriorityFeePerGas:g}:{},..."nonceKey"in q&&typeof q.nonceKey<"u"?{nonceKey:q.nonceKey}:{}}}).catch((E)=>{let y=E;if(y.name!=="TransactionExecutionError")return J;if(y.walk?.((f)=>{let o=f;return o.name==="MethodNotFoundRpcError"||o.name==="MethodNotSupportedRpcError"}))ID.set($.uid,!1);return J}):J;U??=M.nonce,J={...M,...H?{from:H?.address}:{},...U?{nonce:U}:{}};let{blobs:L,gas:B,kzg:_,type:T}=J;if(W?.fn&&W.runAt?.includes("beforeFillParameters"))J=await W.fn({...J,chain:X},{phase:"beforeFillParameters"});let h;async function A(){if(h)return h;return h=await K1($,i0,"getBlock")({blockTag:"latest"}),h}if(G.includes("nonce")&&typeof U>"u"&&H&&!Y)J.nonce=await K1($,r3,"getTransactionCount")({address:H.address,blockTag:"pending"});if((G.includes("blobVersionedHashes")||G.includes("sidecars"))&&L&&_){let E=t3({blobs:L,kzg:_});if(G.includes("blobVersionedHashes")){let y=yX({commitments:E,to:"hex"});J.blobVersionedHashes=y}if(G.includes("sidecars")){let y=e3({blobs:L,commitments:E,kzg:_}),l=gX({blobs:L,commitments:E,proofs:y,to:"hex"});J.sidecars=l}}if(G.includes("chainId"))J.chainId=await D();if((G.includes("fees")||G.includes("type"))&&typeof T>"u")try{J.type=lX(J)}catch{let E=cC.get($.uid);if(typeof E>"u")E=typeof(await A())?.baseFeePerGas==="bigint",cC.set($.uid,E);J.type=E?"eip1559":"legacy"}if(G.includes("fees"))if(J.type!=="legacy"&&J.type!=="eip2930"){if(typeof J.maxFeePerGas>"u"||typeof J.maxPriorityFeePerGas>"u"){let E=await A(),{maxFeePerGas:y,maxPriorityFeePerGas:l}=await hX($,{block:E,chain:X,request:J});if(typeof J.maxPriorityFeePerGas>"u"&&J.maxFeePerGas&&J.maxFeePerGas<l)throw new PD({maxPriorityFeePerGas:l});J.maxPriorityFeePerGas=l,J.maxFeePerGas=y}}else{if(typeof J.maxFeePerGas<"u"||typeof J.maxPriorityFeePerGas<"u")throw new j7;if(typeof J.gasPrice>"u"){let E=await A(),{gasPrice:y}=await hX($,{block:E,chain:X,request:J,type:"legacy"});J.gasPrice=y}}if(G.includes("gas")&&typeof B>"u")J.gas=await K1($,V$,"estimateGas")({...J,account:H,prepare:H?.type==="local"?[]:["blobVersionedHashes"]});if(W?.fn&&W.runAt?.includes("afterFillParameters"))J=await W.fn({...J,chain:X},{phase:"afterFillParameters"});return c0(J),delete J.parameters,J}async function V$($,V){let{account:J=$.account,prepare:Q=!0}=V,X=J?X2(J):void 0,Y=(()=>{if(Array.isArray(Q))return Q;if(X?.type!=="local")return["blobVersionedHashes"];return})();try{let G=await(async()=>{if(V.to)return V.to;if(V.authorizationList&&V.authorizationList.length>0)return await T5({authorization:V.authorizationList[0]}).catch(()=>{throw new _1("`to` is required. Could not infer from `authorizationList`")});return})(),{accessList:W,authorizationList:K,blobs:D,blobVersionedHashes:H,blockNumber:U,blockTag:z,data:M,gas:L,gasPrice:B,maxFeePerBlobGas:_,maxFeePerGas:T,maxPriorityFeePerGas:h,nonce:A,value:E,stateOverride:y,...l}=Q?await w6($,{...V,parameters:Y,to:G}):V;if(L&&V.gas!==L)return L;let o=(typeof U==="bigint"?D1(U):void 0)||z,u=fX(y);c0(V);let i=$.chain?.formatters?.transactionRequest?.format,g=(i||k9)({...w4(l,{format:i}),account:X,accessList:W,authorizationList:K,blobs:D,blobVersionedHashes:H,data:M,gasPrice:B,maxFeePerBlobGas:_,maxFeePerGas:T,maxPriorityFeePerGas:h,nonce:A,to:G,value:E},"estimateGas");return BigInt(await $.request({method:"eth_estimateGas",params:u?[g,o??$.experimental_blockTag??"latest",u]:o?[g,o]:[g]}))}catch(G){throw hC(G,{...V,account:X,chain:$.chain})}}async function nC($,V){let{abi:J,address:Q,args:X,functionName:Y,dataSuffix:G=typeof $.dataSuffix==="string"?$.dataSuffix:$.dataSuffix?.value,...W}=V,K=a2({abi:J,args:X,functionName:Y});try{return await K1($,V$,"estimateGas")({data:`${K}${G?G.replace("0x",""):""}`,to:Q,...W})}catch(D){let H=W.account?X2(W.account):void 0;throw l9(D,{abi:J,address:Q,args:X,docsPath:"/docs/contract/estimateContractGas",functionName:Y,sender:H?.address})}}var oC="/docs/contract/decodeEventLog";function M7($){let{abi:V,data:J,strict:Q,topics:X}=$,Y=Q??!0,[G,...W]=X;if(!G)throw new rC({docsPath:oC});let K=V.find((T)=>T.type==="event"&&G===l3(SX(T)));if(!(K&&("name"in K))||K.type!=="event")throw new tC(G,{docsPath:oC});let{name:D,inputs:H}=K,U=H?.some((T)=>!(("name"in T)&&T.name)),z=U?[]:{},M=H.map((T,h)=>[T,h]).filter(([T])=>("indexed"in T)&&T.indexed),L=[];for(let T=0;T<M.length;T++){let[h,A]=M[T],E=W[T];if(!E){if(Y)throw new J$({abiItem:K,param:h});L.push([h,A]);continue}z[U?A:h.name||A]=e61({param:h,value:E})}let B=H.filter((T)=>!(("indexed"in T)&&T.indexed)),_=Y?B:[...L.map(([T])=>T),...B];if(_.length>0){if(J&&J!=="0x")try{let T=TD(_,J);if(T){let h=0;if(!Y)for(let[A,E]of L)z[U?E:A.name||E]=T[h++];if(U){for(let A=0;A<H.length;A++)if(z[A]===void 0&&h<T.length)z[A]=T[h++]}else for(let A=0;A<B.length;A++)z[B[A].name]=T[h++]}}catch(T){if(Y){if(T instanceof sC||T instanceof eC)throw new N7({abiItem:K,data:J,params:_,size:f9(J)});throw T}}else if(Y)throw new N7({abiItem:K,data:"0x",params:_,size:0})}return{eventName:D,args:Object.values(z).length>0?z:void 0}}function e61({param:$,value:V}){if($.type==="string"||$.type==="bytes"||$.type==="tuple"||$.type.match(/^(.*)\[(\d+)?\]$/))return V;return(TD([$],V)||[])[0]}function Q$($){let{abi:V,args:J,logs:Q,strict:X=!0}=$,Y=(()=>{if(!$.eventName)return;if(Array.isArray($.eventName))return $.eventName;return[$.eventName]})(),G=V.filter((W)=>W.type==="event").map((W)=>({abi:W,selector:l3(W)}));return Q.map((W)=>{let K=G.filter((U)=>W.topics[0]===U.selector);if(K.length===0)return null;let D,H;for(let U of K)try{D=M7({...W,abi:[U.abi],strict:!0}),H=U;break}catch{}if(!D&&!X){H=K[0];try{D=M7({data:W.data,topics:W.topics,abi:[H.abi],strict:!1})}catch{let U=H.abi.inputs?.some((z)=>!(("name"in z)&&z.name));return{...W,args:U?[]:{},eventName:H.abi.name}}}if(!D||!H)return null;if(Y&&!Y.includes(D.eventName))return null;if(!$41({args:D.args,inputs:H.abi.inputs,matchArgs:J}))return null;return{...D,...W}}).filter(Boolean)}function $41($){let{args:V,inputs:J,matchArgs:Q}=$;if(!Q)return!0;if(!V)return!1;function X(Y,G,W){try{if(Y.type==="address")return z4(G,W);if(Y.type==="string"||Y.type==="bytes")return G0(U6(G))===W;return G===W}catch{return!1}}if(Array.isArray(V)&&Array.isArray(Q))return Q.every((Y,G)=>{if(Y===null||Y===void 0)return!0;let W=J[G];if(!W)return!1;return(Array.isArray(Y)?Y:[Y]).some((D)=>X(W,D,V[G]))});if(typeof V==="object"&&!Array.isArray(V)&&typeof Q==="object"&&!Array.isArray(Q))return Object.entries(Q).every(([Y,G])=>{if(G===null||G===void 0)return!0;let W=J.find((D)=>D.name===Y);if(!W)return!1;return(Array.isArray(G)?G:[G]).some((D)=>X(W,D,V[Y]))});return!1}function n0($,{args:V,eventName:J}={}){return{...$,blockHash:$.blockHash?$.blockHash:null,blockNumber:$.blockNumber?BigInt($.blockNumber):null,blockTimestamp:$.blockTimestamp?BigInt($.blockTimestamp):$.blockTimestamp===null?null:void 0,logIndex:$.logIndex?Number($.logIndex):null,transactionHash:$.transactionHash?$.transactionHash:null,transactionIndex:$.transactionIndex?Number($.transactionIndex):null,...J?{args:V,eventName:J}:{}}}async function X$($,{address:V,blockHash:J,fromBlock:Q,toBlock:X,event:Y,events:G,args:W,strict:K}={}){let D=K??!1,H=G??(Y?[Y]:void 0),U=[];if(H){if(U=[H.flatMap((B)=>Z4({abi:[B],eventName:B.name,args:G?void 0:W}))],Y)U=U[0]}let z;if(J)z=await $.request({method:"eth_getLogs",params:[{address:V,topics:U,blockHash:J}]});else z=await $.request({method:"eth_getLogs",params:[{address:V,topics:U,fromBlock:typeof Q==="bigint"?D1(Q):Q,toBlock:typeof X==="bigint"?D1(X):X}]});let M=z.map((L)=>n0(L));if(!H)return M;return Q$({abi:H,args:W,logs:M,strict:D})}async function uX($,V){let{abi:J,address:Q,args:X,blockHash:Y,eventName:G,fromBlock:W,toBlock:K,strict:D}=V,H=G?_X({abi:J,name:G}):void 0,U=!H?J.filter((z)=>z.type==="event"):void 0;return K1($,X$,"getLogs")({address:Q,args:X,blockHash:Y,event:H,events:U,fromBlock:W,toBlock:K,strict:D})}async function k0($,V){let{abi:J,address:Q,args:X,functionName:Y,...G}=V,W=a2({abi:J,args:X,functionName:Y});try{let{data:K}=await K1($,j4,"call")({...G,data:W,to:Q});return E9({abi:J,args:X,functionName:Y,data:K||"0x"})}catch(K){throw l9(K,{abi:J,address:Q,args:X,docsPath:"/docs/contract/readContract",functionName:Y})}}async function $I($,V){let{abi:J,address:Q,args:X,functionName:Y,dataSuffix:G=typeof $.dataSuffix==="string"?$.dataSuffix:$.dataSuffix?.value,...W}=V,K=W.account?X2(W.account):$.account,D=a2({abi:J,args:X,functionName:Y});try{let{data:H}=await K1($,j4,"call")({batch:!1,data:`${D}${G?G.replace("0x",""):""}`,to:Q,...W,account:K}),U=E9({abi:J,args:X,functionName:Y,data:H||"0x"}),z=J.filter((M)=>("name"in M)&&M.name===V.functionName);return{result:U,request:{abi:z,address:Q,args:X,dataSuffix:G,functionName:Y,...W,account:K}}}catch(H){throw l9(H,{abi:J,address:Q,args:X,docsPath:"/docs/contract/simulateContract",functionName:Y,sender:K?.address})}}var AD=new Map,VI=new Map,V41=0;function j9($,V,J){let Q=++V41,X=()=>AD.get($)||[],Y=()=>{let H=X();AD.set($,H.filter((U)=>U.id!==Q))},G=()=>{let H=X();if(!H.some((z)=>z.id===Q))return;let U=VI.get($);if(H.length===1&&U){let z=U();if(z instanceof Promise)z.catch(()=>{})}Y()},W=X();if(AD.set($,[...W,{id:Q,fns:V}]),W&&W.length>0)return G;let K={};for(let H in V)K[H]=(...U)=>{let z=X();if(z.length===0)return;for(let M of z)M.fns[H]?.(...U)};let D=J(K);if(typeof D==="function")VI.set($,D);return G}async function oV($){return new Promise((V)=>setTimeout(V,$))}function z6($,{emitOnBegin:V,initialWaitTime:J,interval:Q}){let X=!0,Y=()=>X=!1;return(async()=>{let W;if(V)W=await $({unpoll:Y});let K=await J?.(W)??Q;await oV(K);let D=async()=>{if(!X)return;await $({unpoll:Y}),await oV(Q),D()};D()})(),Y}var J41=new Map,Q41=new Map;function JI($){let V=(X,Y)=>({clear:()=>Y.delete(X),get:()=>Y.get(X),set:(G)=>Y.set(X,G)}),J=V($,J41),Q=V($,Q41);return{clear:()=>{J.clear(),Q.clear()},promise:J,response:Q}}async function QI($,{cacheKey:V,cacheTime:J=Number.POSITIVE_INFINITY}){let Q=JI(V),X=Q.response.get();if(X&&J>0){if(Date.now()-X.created.getTime()<J)return X.data}let Y=Q.promise.get();if(!Y)Y=$(),Q.promise.set(Y);try{let G=await Y;return Q.response.set({created:new Date,data:G}),G}finally{Q.promise.clear()}}var X41=($)=>`blockNumber.${$}`;async function N4($,{cacheTime:V=$.cacheTime}={}){let J=await QI(()=>$.request({method:"eth_blockNumber"}),{cacheKey:X41($.uid),cacheTime:V});return BigInt(J)}async function p5($,{filter:V}){let J="strict"in V&&V.strict,Q=await V.request({method:"eth_getFilterChanges",params:[V.id]});if(typeof Q[0]==="string")return Q;let X=Q.map((Y)=>n0(Y));if(!("abi"in V)||!V.abi)return X;return Q$({abi:V.abi,logs:X,strict:J})}async function m5($,{filter:V}){return V.request({method:"eth_uninstallFilter",params:[V.id]})}function XI($,V){let{abi:J,address:Q,args:X,batch:Y=!0,eventName:G,fromBlock:W,onError:K,onLogs:D,poll:H,pollingInterval:U=$.pollingInterval,strict:z}=V;return(()=>{if(typeof H<"u")return H;if(typeof W==="bigint")return!0;if($.transport.type==="webSocket"||$.transport.type==="ipc")return!1;if($.transport.type==="fallback"&&($.transport.transports[0].config.type==="webSocket"||$.transport.transports[0].config.type==="ipc"))return!1;return!0})()?(()=>{let _=z??!1,T=J0(["watchContractEvent",Q,X,Y,$.uid,G,U,_,W]);return j9(T,{onLogs:D,onError:K},(h)=>{let A;if(W!==void 0)A=W-1n;let E,y=!1,l=z6(async()=>{if(!y){try{E=await K1($,CX,"createContractEventFilter")({abi:J,address:Q,args:X,eventName:G,strict:_,fromBlock:W})}catch{}y=!0;return}try{let f;if(E)f=await K1($,p5,"getFilterChanges")({filter:E});else{let o=await K1($,N4,"getBlockNumber")({});if(A&&A<o)f=await K1($,uX,"getContractEvents")({abi:J,address:Q,args:X,eventName:G,fromBlock:A+1n,toBlock:o,strict:_});else f=[];A=o}if(f.length===0)return;if(Y)h.onLogs(f);else for(let o of f)h.onLogs([o])}catch(f){if(E&&f instanceof M8)y=!1;h.onError?.(f)}},{emitOnBegin:!0,interval:U});return async()=>{if(E)await K1($,m5,"uninstallFilter")({filter:E});l()}})})():(()=>{let _=z??!1,T=J0(["watchContractEvent",Q,X,Y,$.uid,G,U,_]),h=!0,A=()=>h=!1;return j9(T,{onLogs:D,onError:K},(E)=>{return(async()=>{try{let y=(()=>{if($.transport.type==="fallback"){let o=$.transport.transports.find((u)=>u.config.type==="webSocket"||u.config.type==="ipc");if(!o)return $.transport;return o.value}return $.transport})(),l=G?Z4({abi:J,eventName:G,args:X}):[],{unsubscribe:f}=await y.subscribe({params:["logs",{address:Q,topics:l}],onData(o){if(!h)return;let u=o.result;try{let{eventName:i,args:t}=M7({abi:J,data:u.data,topics:u.topics,strict:z}),g=n0(u,{args:t,eventName:i});E.onLogs([g])}catch(i){let t,g;if(i instanceof N7||i instanceof J$){if(z)return;t=i.abiItem.name,g=i.abiItem.inputs?.some((q)=>!(("name"in q)&&q.name))}let S=n0(u,{args:g?[]:{},eventName:t});E.onLogs([S])}},onError(o){E.onError?.(o)}});if(A=f,!h)A()}catch(y){K?.(y)}})(),()=>A()})})()}class C0 extends _1{constructor({docsPath:$}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
28
+ `),{docsPath:$,docsSlug:"account",name:"AccountNotFoundError"})}}class y6 extends _1{constructor({docsPath:$,metaMessages:V,type:J}){super(`Account type "${J}" is not supported.`,{docsPath:$,metaMessages:V,name:"AccountTypeNotSupportedError"})}}function M4({chain:$,currentChainId:V}){if(!$)throw new GI;if(V!==$.id)throw new YI({chain:$,currentChainId:V})}async function k5($,{serializedTransaction:V}){return $.request({method:"eth_sendRawTransaction",params:[V]},{retryCount:0})}var pD=new A5(128);async function L4($,V){let{account:J=$.account,assertChainId:Q=!0,chain:X=$.chain,accessList:Y,authorizationList:G,blobs:W,data:K,dataSuffix:D=typeof $.dataSuffix==="string"?$.dataSuffix:$.dataSuffix?.value,gas:H,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:M,maxPriorityFeePerGas:L,nonce:B,type:_,value:T,...h}=V;if(typeof J>"u")throw new C0({docsPath:"/docs/actions/wallet/sendTransaction"});let A=J?X2(J):null;try{c0(V);let E=await(async()=>{if(V.to)return V.to;if(V.to===null)return;if(G&&G.length>0)return await T5({authorization:G[0]}).catch(()=>{throw new _1("`to` is required. Could not infer from `authorizationList`.")});return})();if(A?.type==="json-rpc"||A===null){let y;if(X!==null){if(y=await K1($,m0,"getChainId")({}),Q)M4({currentChainId:y,chain:X})}let l=$.chain?.formatters?.transactionRequest?.format,o=(l||k9)({...w4(h,{format:l}),accessList:Y,account:A,authorizationList:G,blobs:W,chainId:y,data:K?Q9([K,D??"0x"]):K,gas:H,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:M,maxPriorityFeePerGas:L,nonce:B,to:E,type:_,value:T},"sendTransaction"),u=pD.get($.uid),i=u?"wallet_sendTransaction":"eth_sendTransaction";try{return await $.request({method:i,params:[o]},{retryCount:0})}catch(t){if(u===!1)throw t;let g=t;if(g.name==="InvalidInputRpcError"||g.name==="InvalidParamsRpcError"||g.name==="MethodNotFoundRpcError"||g.name==="MethodNotSupportedRpcError")return await $.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then((S)=>{return pD.set($.uid,!0),S}).catch((S)=>{let q=S;if(q.name==="MethodNotFoundRpcError"||q.name==="MethodNotSupportedRpcError")throw pD.set($.uid,!1),g;throw q});throw g}}if(A?.type==="local"){let y=await K1($,w6,"prepareTransactionRequest")({account:A,accessList:Y,authorizationList:G,blobs:W,chain:X,data:K?Q9([K,D??"0x"]):K,gas:H,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:M,maxPriorityFeePerGas:L,nonce:B,nonceManager:A.nonceManager,parameters:[...nV,"sidecars"],type:_,value:T,...h,to:E}),l=X?.serializers?.transaction,f=await A.signTransaction(y,{serializer:l});return await K1($,k5,"sendRawTransaction")({serializedTransaction:f})}if(A?.type==="smart")throw new y6({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new y6({docsPath:"/docs/actions/wallet/sendTransaction",type:A?.type})}catch(E){if(E instanceof y6)throw E;throw U4(E,{...V,account:A,chain:V.chain||void 0})}}async function R8($,V){return R8.internal($,L4,"sendTransaction",V)}(function($){async function V(J,Q,X,Y){let{abi:G,account:W=J.account,address:K,args:D,functionName:H,...U}=Y;if(typeof W>"u")throw new C0({docsPath:"/docs/contract/writeContract"});let z=W?X2(W):null,M=a2({abi:G,args:D,functionName:H});try{return await K1(J,Q,X)({data:M,to:K,account:z,...U})}catch(L){throw l9(L,{abi:G,address:K,args:D,docsPath:"/docs/contract/writeContract",functionName:H,sender:z?.address})}}$.internal=V})(R8||(R8={}));class mD extends _1{constructor($){super(`Call bundle failed with status: ${$.statusCode}`,{name:"BundleFailedError"});Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=$}}function L7($,{delay:V=100,retryCount:J=2,shouldRetry:Q=()=>!0}={}){return new Promise((X,Y)=>{let G=async({count:W=0}={})=>{let K=async({error:D})=>{let H=typeof V==="function"?V({count:W,error:D}):V;if(H)await oV(H);G({count:W+1})};try{let D=await $();X(D)}catch(D){if(W<J&&await Q({count:W,error:D}))return K({error:D});Y(D)}};G()})}var kD={"0x0":"reverted","0x1":"success"};function sV($,V){let J={...$,blockNumber:$.blockNumber?BigInt($.blockNumber):null,contractAddress:$.contractAddress?$.contractAddress:null,cumulativeGasUsed:$.cumulativeGasUsed?BigInt($.cumulativeGasUsed):null,effectiveGasPrice:$.effectiveGasPrice?BigInt($.effectiveGasPrice):null,gasUsed:$.gasUsed?BigInt($.gasUsed):null,logs:$.logs?$.logs.map((Q)=>n0(Q)):null,to:$.to?$.to:null,transactionIndex:$.transactionIndex?Z0($.transactionIndex):null,status:$.status?kD[$.status]:null,type:$.type?OD[$.type]||$.type:null};if($.blobGasPrice)J.blobGasPrice=BigInt($.blobGasPrice);if($.blobGasUsed)J.blobGasUsed=BigInt($.blobGasUsed);return J}var aX=o3("transactionReceipt",sV);var ED="0x5792579257925792579257925792579257925792579257925792579257925792",vD=D1(0,{size:32});async function iX($,V){let{account:J=$.account,chain:Q=$.chain,experimental_fallback:X,experimental_fallbackDelay:Y=32,forceAtomic:G=!1,id:W,version:K="2.0.0"}=V,D=J?X2(J):null,H=V.capabilities;if($.dataSuffix&&!V.capabilities?.dataSuffix)if(typeof $.dataSuffix==="string")H={...V.capabilities,dataSuffix:{value:$.dataSuffix,optional:!0}};else H={...V.capabilities,dataSuffix:{value:$.dataSuffix.value,...$.dataSuffix.required?{}:{optional:!0}}};let U=V.calls.map((z)=>{let M=z,L=M.abi?a2({abi:M.abi,functionName:M.functionName,args:M.args}):M.data;return{data:M.dataSuffix&&L?Q9([L,M.dataSuffix]):L,to:M.to,value:M.value?D1(M.value):void 0}});try{let z=await $.request({method:"wallet_sendCalls",params:[{atomicRequired:G,calls:U,capabilities:H,chainId:D1(Q.id),from:D?.address,id:W,version:K}]},{retryCount:0});if(typeof z==="string")return{id:z};return z}catch(z){let M=z;if(X&&(M.name==="MethodNotFoundRpcError"||M.name==="MethodNotSupportedRpcError"||M.name==="UnknownRpcError"||M.details.toLowerCase().includes("does not exist / is not available")||M.details.toLowerCase().includes("missing or invalid. request()")||M.details.toLowerCase().includes("did not match any variant of untagged enum")||M.details.toLowerCase().includes("account upgraded to unsupported contract")||M.details.toLowerCase().includes("eip-7702 not supported")||M.details.toLowerCase().includes("unsupported wc_ method")||M.details.toLowerCase().includes("feature toggled misconfigured")||M.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(H){if(Object.values(H).some((h)=>!h.optional))throw new rV(new _1("non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.",{details:"non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`."}))}if(G&&U.length>1)throw new tV(new _1("`forceAtomic` is not supported on fallback to `eth_sendTransaction`.",{details:"`forceAtomic` is not supported on fallback to `eth_sendTransaction`."}));let L=[];for(let T of U){let h=L4($,{account:D,chain:Q,data:T.data,to:T.to,value:T.value?j2(T.value):void 0});if(L.push(h),Y>0)await new Promise((A)=>setTimeout(A,Y))}let B=await Promise.allSettled(L);if(B.every((T)=>T.status==="rejected"))throw B[0].reason;let _=B.map((T)=>{if(T.status==="fulfilled")return T.value;return vD});return{id:Q9([..._,D1(Q.id,{size:32}),ED])}}throw U4(z,{...V,account:D,chain:V.chain})}}async function cX($,V){async function J(H){if(H.endsWith(ED.slice(2))){let z=P8(hD(H,-64,-32)),M=hD(H,0,-64).slice(2).match(/.{1,64}/g),L=await Promise.all(M.map((_)=>vD.slice(2)!==_?$.request({method:"eth_getTransactionReceipt",params:[`0x${_}`]},{dedupe:!0}):void 0)),B=(()=>{if(L.some((_)=>_===null))return 100;if(L.every((_)=>_?.status==="0x1"))return 200;if(L.every((_)=>_?.status==="0x0"))return 500;return 600})();return{atomic:!1,chainId:Z0(z),receipts:L.filter(Boolean),status:B,version:"2.0.0"}}return $.request({method:"wallet_getCallsStatus",params:[H]})}let{atomic:Q=!1,chainId:X,receipts:Y,version:G="2.0.0",...W}=await J(V.id),[K,D]=(()=>{let H=W.status;if(H>=100&&H<200)return["pending",H];if(H>=200&&H<300)return["success",H];if(H>=300&&H<700)return["failure",H];if(H==="CONFIRMED")return["success",200];if(H==="PENDING")return["pending",100];return[void 0,H]})();return{...W,atomic:Q,chainId:X?Z0(X):void 0,receipts:Y?.map((H)=>({...H,blockNumber:j2(H.blockNumber),gasUsed:j2(H.gasUsed),status:kD[H.status]}))??[],statusCode:D,status:K,version:G}}async function oX($,V){let{id:J,pollingInterval:Q=$.pollingInterval,status:X=({statusCode:B})=>B===200||B>=300,retryCount:Y=4,retryDelay:G=({count:B})=>~~(1<<B)*200,timeout:W=60000,throwOnFailure:K=!1}=V,D=J0(["waitForCallsStatus",$.uid,J]),{promise:H,resolve:U,reject:z}=nX(),M,L=j9(D,{resolve:U,reject:z},(B)=>{let _=z6(async()=>{let T=(h)=>{clearTimeout(M),_(),h(),L()};try{let h=await L7(async()=>{let A=await K1($,cX,"getCallsStatus")({id:J});if(K&&A.status==="failure")throw new mD(A);return A},{retryCount:Y,delay:G});if(!X(h))return;T(()=>B.resolve(h))}catch(h){T(()=>B.reject(h))}},{interval:Q,emitOnBegin:!0});return _});return M=W?setTimeout(()=>{L(),clearTimeout(M),z(new WI({id:J}))},W):void 0,await H}class WI extends _1{constructor({id:$}){super(`Timed out while waiting for call bundle with id "${$}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}var sX=256,rX;function tX($=11){if(!rX||sX+$>512){rX="",sX=0;for(let V=0;V<256;V++)rX+=(256+Math.random()*256|0).toString(16).substring(1)}return rX.substring(sX,sX+++$)}function eX($){let{batch:V,chain:J,ccipRead:Q,dataSuffix:X,key:Y="base",name:G="Base Client",type:W="base"}=$,K=$.experimental_blockTag??(typeof J?.experimental_preconfirmationTime==="number"?"pending":void 0),D=J?.blockTime??12000,H=Math.min(Math.max(Math.floor(D/2),500),4000),U=$.pollingInterval??H,z=$.cacheTime??U,M=$.account?X2($.account):void 0,{config:L,request:B,value:_}=$.transport({account:M,chain:J,pollingInterval:U}),T={...L,..._},h={account:M,batch:V,cacheTime:z,ccipRead:Q,chain:J,dataSuffix:X,key:Y,name:G,pollingInterval:U,request:B,transport:T,type:W,uid:tX(),...K?{experimental_blockTag:K}:{}};function A(E){return(y)=>{let l=y(E);for(let o in h)delete l[o];let f={...E,...l};return Object.assign(f,{extend:A(f)})}}return Object.assign(h,{extend:A(h)})}function Y$($){if(!($ instanceof _1))return!1;let V=$.walk((J)=>J instanceof lV);if(!(V instanceof lV))return!1;if(V.data?.errorName==="HttpError")return!0;if(V.data?.errorName==="ResolverError")return!0;if(V.data?.errorName==="ResolverNotContract")return!0;if(V.data?.errorName==="ResolverNotFound")return!0;if(V.data?.errorName==="ReverseAddressMismatch")return!0;if(V.data?.errorName==="UnsupportedResolverProfile")return!0;return!1}function $Y($){if($.length!==66)return null;if($.indexOf("[")!==0)return null;if($.indexOf("]")!==65)return null;let V=`0x${$.slice(1,65)}`;if(!d6(V))return null;return V}function eV($){let V=new Uint8Array(32).fill(0);if(!$)return U0(V);let J=$.split(".");for(let Q=J.length-1;Q>=0;Q-=1){let X=$Y(J[Q]),Y=X?U6(X):G0(E5(J[Q]),"bytes");V=G0(Q9([V,Y]),"bytes")}return U0(V)}function KI($){return`[${$.slice(2)}]`}function qI($){let V=new Uint8Array(32).fill(0);if(!$)return U0(V);return $Y($)||G0(E5($))}function G$($){let V=$.replace(/^\.|\.$/gm,"");if(V.length===0)return new Uint8Array(1);let J=new Uint8Array(E5(V).byteLength+2),Q=0,X=V.split(".");for(let Y=0;Y<X.length;Y++){let G=E5(X[Y]);if(G.byteLength>255)G=E5(KI(qI(X[Y])));J[Q]=G.length,J.set(G,Q+1),Q+=G.length+1}if(J.byteLength!==Q+1)return J.slice(0,Q+1);return J}async function DI($,V){let{blockNumber:J,blockTag:Q,coinType:X,name:Y,gatewayUrls:G,strict:W}=V,{chain:K}=$,D=(()=>{if(V.universalResolverAddress)return V.universalResolverAddress;if(!K)throw Error("client chain not configured. universalResolverAddress is required.");return R4({blockNumber:J,chain:K,contract:"ensUniversalResolver"})})(),H=K?.ensTlds;if(H&&!H.some((z)=>Y.endsWith(z)))return null;let U=(()=>{if(X!=null)return[eV(Y),BigInt(X)];return[eV(Y)]})();try{let z=a2({abi:xD,functionName:"addr",args:U}),M={address:D,abi:VY,functionName:"resolveWithGateways",args:[s1(G$(Y)),z,G??[W$]],blockNumber:J,blockTag:Q},B=await K1($,k0,"readContract")(M);if(B[0]==="0x")return null;let _=E9({abi:xD,args:U,functionName:"addr",data:B[0]});if(_==="0x")return null;if(P8(_)==="0x00")return null;return _}catch(z){if(W)throw z;if(Y$(z))return null;throw z}}class dD extends _1{constructor({data:$}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify($)}`],name:"EnsAvatarInvalidMetadataError"})}}class R7 extends _1{constructor({reason:$}){super(`ENS NFT avatar URI is invalid. ${$}`,{name:"EnsAvatarInvalidNftUriError"})}}class $J extends _1{constructor({uri:$}){super(`Unable to resolve ENS avatar URI "${$}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class yD extends _1{constructor({namespace:$}){super(`ENS NFT avatar namespace "${$}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}var Y41=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,G41=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,W41=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,K41=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function q41($){try{let V=await fetch($,{method:"HEAD"});if(V.status===200)return V.headers.get("content-type")?.startsWith("image/");return!1}catch(V){if(typeof V==="object"&&typeof V.response<"u")return!1;if(!Object.hasOwn(globalThis,"Image"))return!1;return new Promise((J)=>{let Q=new Image;Q.onload=()=>{J(!0)},Q.onerror=()=>{J(!1)},Q.src=$})}}function HI($,V){if(!$)return V;if($.endsWith("/"))return $.slice(0,-1);return $}function bD({uri:$,gatewayUrls:V}){let J=W41.test($);if(J)return{uri:$,isOnChain:!0,isEncoded:J};let Q=HI(V?.ipfs,"https://ipfs.io"),X=HI(V?.arweave,"https://arweave.net"),Y=$.match(Y41),{protocol:G,subpath:W,target:K,subtarget:D=""}=Y?.groups||{},H=G==="ipns:/"||W==="ipns/",U=G==="ipfs:/"||W==="ipfs/"||G41.test($);if($.startsWith("http")&&!H&&!U){let M=$;if(V?.arweave)M=$.replace(/https:\/\/arweave.net/g,V?.arweave);return{uri:M,isOnChain:!1,isEncoded:!1}}if((H||U)&&K)return{uri:`${Q}/${H?"ipns":"ipfs"}/${K}${D}`,isOnChain:!1,isEncoded:!1};if(G==="ar:/"&&K)return{uri:`${X}/${K}${D||""}`,isOnChain:!1,isEncoded:!1};let z=$.replace(K41,"");if(z.startsWith("<svg"))z=`data:image/svg+xml;base64,${btoa(z)}`;if(z.startsWith("data:")||z.startsWith("{"))return{uri:z,isOnChain:!0,isEncoded:!1};throw new $J({uri:$})}function gD($){if(typeof $!=="object"||!("image"in $)&&!("image_url"in $)&&!("image_data"in $))throw new dD({data:$});return $.image||$.image_url||$.image_data}async function ZI({gatewayUrls:$,uri:V}){try{let J=await fetch(V).then((X)=>X.json());return await JY({gatewayUrls:$,uri:gD(J)})}catch{throw new $J({uri:V})}}async function JY({gatewayUrls:$,uri:V}){let{uri:J,isOnChain:Q}=bD({uri:V,gatewayUrls:$});if(Q)return J;if(await q41(J))return J;throw new $J({uri:V})}function UI($){let V=$;if(V.startsWith("did:nft:"))V=V.replace("did:nft:","").replace(/_/g,"/");let[J,Q,X]=V.split("/"),[Y,G]=J.split(":"),[W,K]=Q.split(":");if(!Y||Y.toLowerCase()!=="eip155")throw new R7({reason:"Only EIP-155 supported"});if(!G)throw new R7({reason:"Chain ID not found"});if(!K)throw new R7({reason:"Contract address not found"});if(!X)throw new R7({reason:"Token ID not found"});if(!W)throw new R7({reason:"ERC namespace not found"});return{chainID:Number.parseInt(G,10),namespace:W.toLowerCase(),contractAddress:K,tokenID:X}}async function wI($,{nft:V}){if(V.namespace==="erc721")return k0($,{address:V.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(V.tokenID)]});if(V.namespace==="erc1155")return k0($,{address:V.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(V.tokenID)]});throw new yD({namespace:V.namespace})}async function zI($,{gatewayUrls:V,record:J}){if(/eip155:/i.test(J))return D41($,{gatewayUrls:V,record:J});return JY({uri:J,gatewayUrls:V})}async function D41($,{gatewayUrls:V,record:J}){let Q=UI(J),X=await wI($,{nft:Q}),{uri:Y,isOnChain:G,isEncoded:W}=bD({uri:X,gatewayUrls:V});if(G&&(Y.includes("data:application/json;base64,")||Y.startsWith("{"))){let D=W?atob(Y.replace("data:application/json;base64,","")):Y,H=JSON.parse(D);return JY({uri:gD(H),gatewayUrls:V})}let K=Q.tokenID;if(Q.namespace==="erc1155")K=K.replace("0x","").padStart(64,"0");return ZI({gatewayUrls:V,uri:Y.replace(/(?:0x)?{id}/,K)})}async function QY($,V){let{blockNumber:J,blockTag:Q,key:X,name:Y,gatewayUrls:G,strict:W}=V,{chain:K}=$,D=(()=>{if(V.universalResolverAddress)return V.universalResolverAddress;if(!K)throw Error("client chain not configured. universalResolverAddress is required.");return R4({blockNumber:J,chain:K,contract:"ensUniversalResolver"})})(),H=K?.ensTlds;if(H&&!H.some((U)=>Y.endsWith(U)))return null;try{let U={address:D,abi:VY,args:[s1(G$(Y)),a2({abi:lD,functionName:"text",args:[eV(Y),X]}),G??[W$]],functionName:"resolveWithGateways",blockNumber:J,blockTag:Q},M=await K1($,k0,"readContract")(U);if(M[0]==="0x")return null;let L=E9({abi:lD,functionName:"text",data:M[0]});return L===""?null:L}catch(U){if(W)throw U;if(Y$(U))return null;throw U}}async function jI($,{blockNumber:V,blockTag:J,assetGatewayUrls:Q,name:X,gatewayUrls:Y,strict:G,universalResolverAddress:W}){let K=await K1($,QY,"getEnsText")({blockNumber:V,blockTag:J,key:"avatar",name:X,universalResolverAddress:W,gatewayUrls:Y,strict:G});if(!K)return null;try{return await zI($,{record:K,gatewayUrls:Q})}catch{return null}}async function MI($,V){let{address:J,blockNumber:Q,blockTag:X,coinType:Y=60n,gatewayUrls:G,strict:W}=V,{chain:K}=$,D=(()=>{if(V.universalResolverAddress)return V.universalResolverAddress;if(!K)throw Error("client chain not configured. universalResolverAddress is required.");return R4({blockNumber:Q,chain:K,contract:"ensUniversalResolver"})})();try{let H={address:D,abi:NI,args:[J,Y,G??[W$]],functionName:"reverseWithGateways",blockNumber:Q,blockTag:X},U=K1($,k0,"readContract"),[z]=await U(H);return z||null}catch(H){if(W)throw H;if(Y$(H))return null;throw H}}async function LI($,V){let{blockNumber:J,blockTag:Q,name:X}=V,{chain:Y}=$,G=(()=>{if(V.universalResolverAddress)return V.universalResolverAddress;if(!Y)throw Error("client chain not configured. universalResolverAddress is required.");return R4({blockNumber:J,chain:Y,contract:"ensUniversalResolver"})})(),W=Y?.ensTlds;if(W&&!W.some((D)=>X.endsWith(D)))throw Error(`${X} is not a valid ENS TLD (${W?.join(", ")}) for chain "${Y.name}" (id: ${Y.id}).`);let[K]=await K1($,k0,"readContract")({address:G,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[s1(G$(X))],blockNumber:J,blockTag:Q});return K}async function XY($,V){let{account:J=$.account,blockNumber:Q,blockTag:X="latest",blobs:Y,data:G,gas:W,gasPrice:K,maxFeePerBlobGas:D,maxFeePerGas:H,maxPriorityFeePerGas:U,to:z,value:M,...L}=V,B=J?X2(J):void 0;try{c0(V);let T=(typeof Q==="bigint"?D1(Q):void 0)||X,h=$.chain?.formatters?.transactionRequest?.format,E=(h||k9)({...w4(L,{format:h}),account:B,blobs:Y,data:G,gas:W,gasPrice:K,maxFeePerBlobGas:D,maxFeePerGas:H,maxPriorityFeePerGas:U,to:z,value:M},"createAccessList"),y=await $.request({method:"eth_createAccessList",params:[E,T]});return{accessList:y.accessList,gasUsed:BigInt(y.gasUsed)}}catch(_){throw RI(_,{...V,account:B,chain:$.chain})}}async function PI($){let V=I5($,{method:"eth_newBlockFilter"}),J=await $.request({method:"eth_newBlockFilter"});return{id:J,request:V(J),type:"block"}}async function YY($,{address:V,args:J,event:Q,events:X,fromBlock:Y,strict:G,toBlock:W}={}){let K=X??(Q?[Q]:void 0),D=I5($,{method:"eth_newFilter"}),H=[];if(K){if(H=[K.flatMap((M)=>Z4({abi:[M],eventName:M.name,args:J}))],Q)H=H[0]}let U=await $.request({method:"eth_newFilter",params:[{address:V,fromBlock:typeof Y==="bigint"?D1(Y):Y,toBlock:typeof W==="bigint"?D1(W):W,...H.length?{topics:H}:{}}]});return{abi:K,args:J,eventName:Q?Q.name:void 0,fromBlock:Y,id:U,request:D(U),strict:Boolean(G),toBlock:W,type:"event"}}async function GY($){let V=I5($,{method:"eth_newPendingTransactionFilter"}),J=await $.request({method:"eth_newPendingTransactionFilter"});return{id:J,request:V(J),type:"transaction"}}async function OI($,{address:V,blockNumber:J,blockTag:Q=$.experimental_blockTag??"latest"}){if($.batch?.multicall&&$.chain?.contracts?.multicall3){let G=$.chain.contracts.multicall3.address,W=a2({abi:P7,functionName:"getEthBalance",args:[V]}),{data:K}=await K1($,j4,"call")({to:G,data:W,blockNumber:J,blockTag:Q});return E9({abi:P7,functionName:"getEthBalance",args:[V],data:K||"0x"})}let X=typeof J==="bigint"?D1(J):void 0,Y=await $.request({method:"eth_getBalance",params:[V,X||Q]});return BigInt(Y)}async function FI($){let V=await $.request({method:"eth_blobBaseFee"});return BigInt(V)}async function BI($,{blockHash:V,blockNumber:J,blockTag:Q="latest"}={}){let X=J!==void 0?D1(J):void 0,Y;if(V)Y=await $.request({method:"eth_getBlockTransactionCountByHash",params:[V]},{dedupe:!0});else Y=await $.request({method:"eth_getBlockTransactionCountByNumber",params:[X||Q]},{dedupe:Boolean(X)});return Z0(Y)}async function VJ($,{address:V,blockNumber:J,blockTag:Q="latest"}){let X=J!==void 0?D1(J):void 0,Y=await $.request({method:"eth_getCode",params:[V,X||Q]},{dedupe:Boolean(X)});if(Y==="0x")return;return Y}class fD extends _1{constructor({address:$}){super(`No EIP-712 domain found on contract "${$}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${$}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function SI($,V){let{address:J,factory:Q,factoryData:X}=V;try{let[Y,G,W,K,D,H,U]=await K1($,k0,"readContract")({abi:H41,address:J,functionName:"eip712Domain",factory:Q,factoryData:X});return{domain:{name:G,version:W,chainId:Number(K),verifyingContract:D,salt:H},extensions:U,fields:Y}}catch(Y){let G=Y;if(G.name==="ContractFunctionExecutionError"&&G.cause.name==="ContractFunctionZeroDataError")throw new fD({address:J});throw G}}var H41=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function _I($){return{baseFeePerGas:$.baseFeePerGas.map((V)=>BigInt(V)),gasUsedRatio:$.gasUsedRatio,oldestBlock:BigInt($.oldestBlock),reward:$.reward?.map((V)=>V.map((J)=>BigInt(J)))}}async function CI($,{blockCount:V,blockNumber:J,blockTag:Q="latest",rewardPercentiles:X}){let Y=typeof J==="bigint"?D1(J):void 0,G=await $.request({method:"eth_feeHistory",params:[D1(V),Y||Q,X]},{dedupe:Boolean(Y)});return _I(G)}async function II($,{filter:V}){let J=V.strict??!1,X=(await V.request({method:"eth_getFilterLogs",params:[V.id]})).map((Y)=>n0(Y));if(!V.abi)return X;return Q$({abi:V.abi,logs:X,strict:J})}function pI($){let{authorizationList:V}=$;if(V)for(let J of V){let{chainId:Q}=J,X=J.address;if(!I0(X))throw new g0({address:X});if(Q<0)throw new O7({chainId:Q})}qY($)}function mI($){let{blobVersionedHashes:V}=$;if(V){if(V.length===0)throw new cV;for(let J of V){let Q=f9(J),X=Z0(TI(J,0,1));if(Q!==32)throw new _D({hash:J,size:Q});if(X!==bX)throw new CD({hash:J,version:X})}}qY($)}function qY($){let{chainId:V,maxPriorityFeePerGas:J,maxFeePerGas:Q,to:X}=$;if(V<=0)throw new O7({chainId:V});if(X&&!I0(X))throw new g0({address:X});if(Q&&Q>KY)throw new WY({maxFeePerGas:Q});if(J&&Q&&J>Q)throw new AI({maxFeePerGas:Q,maxPriorityFeePerGas:J})}function kI($){let{chainId:V,maxPriorityFeePerGas:J,gasPrice:Q,maxFeePerGas:X,to:Y}=$;if(V<=0)throw new O7({chainId:V});if(Y&&!I0(Y))throw new g0({address:Y});if(J||X)throw new _1("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(Q&&Q>KY)throw new WY({maxFeePerGas:Q})}function EI($){let{chainId:V,maxPriorityFeePerGas:J,gasPrice:Q,maxFeePerGas:X,to:Y}=$;if(Y&&!I0(Y))throw new g0({address:Y});if(typeof V<"u"&&V<=0)throw new O7({chainId:V});if(J||X)throw new _1("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(Q&&Q>KY)throw new WY({maxFeePerGas:Q})}function JJ($){if(!$||$.length===0)return[];let V=[];for(let J=0;J<$.length;J++){let{address:Q,storageKeys:X}=$[J];for(let Y=0;Y<X.length;Y++)if(X[Y].length-2!==64)throw new vI({storageKey:X[Y]});if(!I0(Q,{strict:!1}))throw new g0({address:Q});V.push([Q,X])}return V}function K$($,V){let J=lX($);if(J==="eip1559")return w41($,V);if(J==="eip2930")return z41($,V);if(J==="eip4844")return U41($,V);if(J==="eip7702")return Z41($,V);return j41($,V)}function Z41($,V){let{authorizationList:J,chainId:Q,gas:X,nonce:Y,to:G,value:W,maxFeePerGas:K,maxPriorityFeePerGas:D,accessList:H,data:U}=$;pI($);let z=JJ(H),M=xI(J);return a9(["0x04",u9([D1(Q),Y?D1(Y):"0x",D?D1(D):"0x",K?D1(K):"0x",X?D1(X):"0x",G??"0x",W?D1(W):"0x",U??"0x",z,M,...q$($,V)])])}function U41($,V){let{chainId:J,gas:Q,nonce:X,to:Y,value:G,maxFeePerBlobGas:W,maxFeePerGas:K,maxPriorityFeePerGas:D,accessList:H,data:U}=$;mI($);let{blobVersionedHashes:z,sidecars:M}=$;if($.blobs&&(typeof z>"u"||typeof M>"u")){let A=typeof $.blobs[0]==="string"?$.blobs:$.blobs.map((l)=>U0(l)),E=$.kzg,y=t3({blobs:A,kzg:E});if(typeof z>"u")z=yX({commitments:y});if(typeof M>"u"){let l=e3({blobs:A,commitments:y,kzg:E});M=gX({blobs:A,commitments:y,proofs:l})}}let L=JJ(H),B=[D1(J),X?D1(X):"0x",D?D1(D):"0x",K?D1(K):"0x",Q?D1(Q):"0x",Y??"0x",G?D1(G):"0x",U??"0x",L,W?D1(W):"0x",z??[],...q$($,V)],_=[],T=[],h=[];if(M)for(let A=0;A<M.length;A++){let{blob:E,commitment:y,proof:l}=M[A];_.push(E),T.push(y),h.push(l)}return a9(["0x03",M?u9([B,_,T,h]):u9(B)])}function w41($,V){let{chainId:J,gas:Q,nonce:X,to:Y,value:G,maxFeePerGas:W,maxPriorityFeePerGas:K,accessList:D,data:H}=$;qY($);let U=JJ(D),z=[D1(J),X?D1(X):"0x",K?D1(K):"0x",W?D1(W):"0x",Q?D1(Q):"0x",Y??"0x",G?D1(G):"0x",H??"0x",U,...q$($,V)];return a9(["0x02",u9(z)])}function z41($,V){let{chainId:J,gas:Q,data:X,nonce:Y,to:G,value:W,accessList:K,gasPrice:D}=$;kI($);let H=JJ(K),U=[D1(J),Y?D1(Y):"0x",D?D1(D):"0x",Q?D1(Q):"0x",G??"0x",W?D1(W):"0x",X??"0x",H,...q$($,V)];return a9(["0x01",u9(U)])}function j41($,V){let{chainId:J=0,gas:Q,data:X,nonce:Y,to:G,value:W,gasPrice:K}=$;EI($);let D=[Y?D1(Y):"0x",K?D1(K):"0x",Q?D1(Q):"0x",G??"0x",W?D1(W):"0x",X??"0x"];if(V){let H=(()=>{if(V.v>=35n){if((V.v-35n)/2n>0)return V.v;return 27n+(V.v===35n?0n:1n)}if(J>0)return BigInt(J*2)+BigInt(35n+V.v-27n);let M=27n+(V.v===27n?0n:1n);if(V.v!==M)throw new hI({v:V.v});return M})(),U=P8(V.r),z=P8(V.s);D=[...D,D1(H),U==="0x00"?"0x":U,z==="0x00"?"0x":z]}else if(J>0)D=[...D,D1(J),"0x","0x"];return u9(D)}function q$($,V){let J=V??$,{v:Q,yParity:X}=J;if(typeof J.r>"u")return[];if(typeof J.s>"u")return[];if(typeof Q>"u"&&typeof X>"u")return[];let Y=P8(J.r),G=P8(J.s);return[(()=>{if(typeof X==="number")return X?D1(1):"0x";if(Q===0n)return"0x";if(Q===1n)return D1(1);return Q===27n?"0x":D1(1)})(),Y==="0x00"?"0x":Y,G==="0x00"?"0x":G]}function xI($){if(!$||$.length===0)return[];let V=[];for(let J of $){let{chainId:Q,nonce:X,...Y}=J,G=J.address;V.push([Q?s1(Q):"0x",G,X?s1(X):"0x",...q$({},Y)])}return V}async function dI({address:$,authorization:V,signature:J}){return z4(b6($),await T5({authorization:V,signature:J}))}var DY=new A5(8192);function yI($,{enabled:V=!0,id:J}){if(!V||!J)return $();if(DY.get(J))return DY.get(J);let Q=$().finally(()=>DY.delete(J));return DY.set(J,Q),Q}function gI($,V={}){return async(J,Q={})=>{let{dedupe:X=!1,methods:Y,retryDelay:G=150,retryCount:W=3,uid:K}={...V,...Q},{method:D}=J;if(Y?.exclude?.includes(D))throw new QJ(Error("method not supported"),{method:D});if(Y?.include&&!Y.include.includes(D))throw new QJ(Error("method not supported"),{method:D});let H=X?O8(`${K}.${J0(J)}`):void 0;return yI(()=>L7(async()=>{try{return await $(J)}catch(U){let z=U;switch(z.code){case uD.code:throw new uD(z);case aD.code:throw new aD(z);case iD.code:throw new iD(z,{method:J.method});case cD.code:throw new cD(z);case a3.code:throw new a3(z);case M8.code:throw new M8(z);case nD.code:throw new nD(z);case oD.code:throw new oD(z);case sD.code:throw new sD(z);case QJ.code:throw new QJ(z,{method:J.method});case ZY.code:throw new ZY(z);case rD.code:throw new rD(z);case HY.code:throw new HY(z);case tD.code:throw new tD(z);case eD.code:throw new eD(z);case $H.code:throw new $H(z);case VH.code:throw new VH(z);case JH.code:throw new JH(z);case rV.code:throw new rV(z);case QH.code:throw new QH(z);case XH.code:throw new XH(z);case YH.code:throw new YH(z);case GH.code:throw new GH(z);case WH.code:throw new WH(z);case tV.code:throw new tV(z);case 5000:throw new HY(z);case KH.code:throw new KH(z);default:if(U instanceof _1)throw U;throw new bI(z)}}},{delay:({count:U,error:z})=>{if(z&&z instanceof F7){let M=z?.headers?.get("Retry-After");if(M?.match(/\d/))return Number.parseInt(M,10)*1000}return~~(1<<U)*G},retryCount:W,shouldRetry:({error:U})=>N41(U)}),{enabled:X,id:H})}}function N41($){if("code"in $&&typeof $.code==="number"){if($.code===-1)return!0;if($.code===ZY.code)return!0;if($.code===a3.code)return!0;return!1}if($ instanceof F7&&$.status){if($.status===403)return!0;if($.status===408)return!0;if($.status===413)return!0;if($.status===429)return!0;if($.status===500)return!0;if($.status===502)return!0;if($.status===503)return!0;if($.status===504)return!0;return!1}return!0}function v2($){let V={formatters:void 0,fees:void 0,serializers:void 0,...$};function J(Q){return(X)=>{let Y=typeof X==="function"?X(Q):X,G={...Q,...Y};return Object.assign(G,{extend:J(G)})}}return Object.assign(V,{extend:J(V)})}function lI($,{errorInstance:V=Error("timed out"),timeout:J,signal:Q}){return new Promise((X,Y)=>{(async()=>{let G;try{let W=new AbortController;if(J>0)G=setTimeout(()=>{if(Q)W.abort();else Y(V)},J);X(await $({signal:W?.signal||null}))}catch(W){if(W?.name==="AbortError")Y(V);Y(W)}finally{clearTimeout(G)}})()})}function M41(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var qH=M41();function fI($,V={}){let{url:J,headers:Q}=L41($);return{async request(X){let{body:Y,fetchFn:G=V.fetchFn??fetch,onRequest:W=V.onRequest,onResponse:K=V.onResponse,timeout:D=V.timeout??1e4}=X,H={...V.fetchOptions??{},...X.fetchOptions??{}},{headers:U,method:z,signal:M}=H;try{let L=await lI(async({signal:_})=>{let T={...H,body:Array.isArray(Y)?J0(Y.map((y)=>({jsonrpc:"2.0",id:y.id??qH.take(),...y}))):J0({jsonrpc:"2.0",id:Y.id??qH.take(),...Y}),headers:{...Q,"Content-Type":"application/json",...U},method:z||"POST",signal:M||(D>0?_:null)},h=new Request(J,T),A=await W?.(h,T)??{...T,url:J};return await G(A.url??J,A)},{errorInstance:new DH({body:Y,url:J}),timeout:D,signal:!0});if(K)await K(L);let B;if(L.headers.get("Content-Type")?.startsWith("application/json"))B=await L.json();else{B=await L.text();try{B=JSON.parse(B||"{}")}catch(_){if(L.ok)throw _;B={error:B}}}if(!L.ok)throw new F7({body:Y,details:J0(B.error)||L.statusText,headers:L.headers,status:L.status,url:J});return B}catch(L){if(L instanceof F7)throw L;if(L instanceof DH)throw L;throw new F7({body:Y,cause:L,url:J})}}}}function L41($){try{let V=new URL($),J=(()=>{if(V.username){let Q=`${decodeURIComponent(V.username)}:${decodeURIComponent(V.password)}`;return V.username="",V.password="",{url:V.toString(),headers:{Authorization:`Basic ${btoa(Q)}`}}}return})();return{url:V.toString(),...J}}catch{return{url:$}}}var uI=`\x19Ethereum Signed Message:
29
+ `;function aI($){let V=(()=>{if(typeof $==="string")return O8($);if(typeof $.raw==="string")return $.raw;return U0($.raw)})(),J=O8(`${uI}${f9(V)}`);return Q9([J,V])}function D$($,V){return G0(aI($),V)}class HH extends _1{constructor({domain:$}){super(`Invalid domain "${J0($)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class ZH extends _1{constructor({primaryType:$,types:V}){super(`Invalid primary type \`${$}\` must be one of \`${JSON.stringify(Object.keys(V))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class UH extends _1{constructor({type:$}){super(`Struct type "${$}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function oI($){let{domain:V,message:J,primaryType:Q,types:X}=$,Y=(K,D)=>{let H={...D};for(let U of K){let{name:z,type:M}=U;if(M==="address")H[z]=H[z].toLowerCase()}return H},G=(()=>{if(!X.EIP712Domain)return{};if(!V)return{};return Y(X.EIP712Domain,V)})(),W=(()=>{if(Q==="EIP712Domain")return;return Y(X[Q],J)})();return J0({domain:G,message:W,primaryType:Q,types:X})}function UY($){let{domain:V,message:J,primaryType:Q,types:X}=$,Y=(G,W)=>{for(let K of G){let{name:D,type:H}=K,U=W[D],z=H.match(nI);if(z&&(typeof U==="number"||typeof U==="bigint")){let[B,_,T]=z;D1(U,{signed:_==="int",size:Number.parseInt(T,10)/8})}if(H==="address"&&typeof U==="string"&&!I0(U))throw new g0({address:U});let M=H.match(cI);if(M){let[B,_]=M;if(_&&f9(U)!==Number.parseInt(_,10))throw new iI({expectedSize:Number.parseInt(_,10),givenSize:f9(U)})}let L=X[H];if(L)R41(H),Y(L,U)}};if(X.EIP712Domain&&V){if(typeof V!=="object")throw new HH({domain:V});Y(X.EIP712Domain,V)}if(Q!=="EIP712Domain")if(X[Q])Y(X[Q],J);else throw new ZH({primaryType:Q,types:X})}function wY({domain:$}){return[typeof $?.name==="string"&&{name:"name",type:"string"},$?.version&&{name:"version",type:"string"},(typeof $?.chainId==="number"||typeof $?.chainId==="bigint")&&{name:"chainId",type:"uint256"},$?.verifyingContract&&{name:"verifyingContract",type:"address"},$?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function R41($){if($==="address"||$==="bool"||$==="string"||$.startsWith("bytes")||$.startsWith("uint")||$.startsWith("int"))throw new UH({type:$})}function zY($){let{domain:V={},message:J,primaryType:Q}=$,X={EIP712Domain:wY({domain:V}),...$.types};UY({domain:V,message:J,primaryType:Q,types:X});let Y=["0x1901"];if(V)Y.push(P41({domain:V,types:X}));if(Q!=="EIP712Domain")Y.push(sI({data:J,primaryType:Q,types:X}));return G0(Q9(Y))}function P41({domain:$,types:V}){return sI({data:$,primaryType:"EIP712Domain",types:V})}function sI({data:$,primaryType:V,types:J}){let Q=rI({data:$,primaryType:V,types:J});return G0(Q)}function rI({data:$,primaryType:V,types:J}){let Q=[{type:"bytes32"}],X=[O41({primaryType:V,types:J})];for(let Y of J[V]){let[G,W]=eI({types:J,name:Y.name,type:Y.type,value:$[Y.name]});Q.push(G),X.push(W)}return z7(Q,X)}function O41({primaryType:$,types:V}){let J=s1(F41({primaryType:$,types:V}));return G0(J)}function F41({primaryType:$,types:V}){let J="",Q=tI({primaryType:$,types:V});Q.delete($);let X=[$,...Array.from(Q).sort()];for(let Y of X)J+=`${Y}(${V[Y].map(({name:G,type:W})=>`${W} ${G}`).join(",")})`;return J}function tI({primaryType:$,types:V},J=new Set){let X=$.match(/^\w*/u)?.[0];if(J.has(X)||V[X]===void 0)return J;J.add(X);for(let Y of V[X])tI({primaryType:Y.type,types:V},J);return J}function eI({types:$,name:V,type:J,value:Q}){if($[J]!==void 0)return[{type:"bytes32"},G0(rI({data:Q,primaryType:J,types:$}))];if(J==="bytes")return[{type:"bytes32"},G0(Q)];if(J==="string")return[{type:"bytes32"},G0(s1(Q))];if(J.lastIndexOf("]")===J.length-1){let X=J.slice(0,J.lastIndexOf("[")),Y=Q.map((G)=>eI({name:V,type:X,types:$,value:G}));return[{type:"bytes32"},G0(z7(Y.map(([G])=>G),Y.map(([,G])=>G)))]}return[{type:J},Q]}var wH="0x0000000000000000000000000000000000000000000000000000000000000000";var wJ={};ND(wJ,{wrap:()=>F81,validate:()=>B81,unwrap:()=>LA,suffixParameters:()=>JZ,magicBytes:()=>VZ,from:()=>O81,assert:()=>pY,InvalidWrappedSignatureError:()=>QZ});class zH extends Map{constructor($){super();Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=$}get($){let V=super.get($);if(super.has($)&&V!==void 0)this.delete($),super.set($,V);return V}set($,V){if(super.set($,V),this.maxSize&&this.size>this.maxSize){let J=this.keys().next().value;if(J)this.delete(J)}return this}}var B41={checksum:new zH(8192)},jY=B41.checksum;function B7($,V={}){let{as:J=typeof $==="string"?"Hex":"Bytes"}=V,Q=$T(VT($));if(J==="Bytes")return Q;return S9(Q)}function QT($,V={}){let{compressed:J}=V,{prefix:Q,x:X,y:Y}=$;if(J===!1||typeof X==="bigint"&&typeof Y==="bigint"){if(Q!==4)throw new NH({prefix:Q,cause:new KT});return}if(J===!0||typeof X==="bigint"&&typeof Y>"u"){if(Q!==3&&Q!==2)throw new NH({prefix:Q,cause:new WT});return}throw new GT({publicKey:$})}function XT($){let V=(()=>{if(YJ($))return YT($);if(JT($))return C41($);let{prefix:J,x:Q,y:X}=$;if(typeof Q==="bigint"&&typeof X==="bigint")return{prefix:J??4,x:Q,y:X};return{prefix:J,x:Q}})();return QT(V),V}function C41($){return YT(S9($))}function YT($){if($.length!==132&&$.length!==130&&$.length!==68)throw new qT({publicKey:$});if($.length===130){let Q=BigInt(K0($,0,32)),X=BigInt(K0($,32,64));return{prefix:4,x:Q,y:X}}if($.length===132){let Q=Number(K0($,0,1)),X=BigInt(K0($,1,33)),Y=BigInt(K0($,33,65));return{prefix:Q,x:X,y:Y}}let V=Number(K0($,0,1)),J=BigInt(K0($,1,33));return{prefix:V,x:J}}function MH($,V={}){QT($);let{prefix:J,x:Q,y:X}=$,{includePrefix:Y=!0}=V;return w0(Y?E0(J,{size:1}):"0x",E0(Q,{size:32}),typeof X==="bigint"?E0(X,{size:32}):"0x")}class GT extends D2{constructor({publicKey:$}){super(`Value \`${NY($)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]});Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class NH extends D2{constructor({prefix:$,cause:V}){super(`Prefix "${$}" is invalid.`,{cause:V});Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class WT extends D2{constructor(){super("Prefix must be 2 or 3 for compressed public keys.");Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class KT extends D2{constructor(){super("Prefix must be 4 for uncompressed public keys.");Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}class qT extends D2{constructor({publicKey:$}){super(`Value \`${$}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${X9(H$($))} bytes.`]});Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}}var I41=/^0x[a-fA-F0-9]{40}$/;function S7($,V={}){let{strict:J=!0}=V;if(!I41.test($))throw new LH({address:$,cause:new UT});if(J){if($.toLowerCase()===$)return;if(MY($)!==$)throw new LH({address:$,cause:new wT})}}function MY($){if(jY.has($))return jY.get($);S7($,{strict:!1});let V=$.substring(2).toLowerCase(),J=B7(HT(V),{as:"Bytes"}),Q=V.split("");for(let Y=0;Y<40;Y+=2){if(J[Y>>1]>>4>=8&&Q[Y])Q[Y]=Q[Y].toUpperCase();if((J[Y>>1]&15)>=8&&Q[Y+1])Q[Y+1]=Q[Y+1].toUpperCase()}let X=`0x${Q.join("")}`;return jY.set($,X),X}function T41($,V={}){let{checksum:J=!1}=V;if(S7($),J)return MY($);return $}function ZT($,V={}){let J=B7(`0x${MH($).slice(4)}`).substring(26);return T41(`0x${J}`,V)}function LY($,V={}){let{strict:J=!0}=V??{};try{return S7($,{strict:J}),!0}catch{return!1}}class LH extends D2{constructor({address:$,cause:V}){super(`Address "${$}" is invalid.`,{cause:V});Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class UT extends D2{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value.");Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class wT extends D2{constructor(){super("Address does not match its checksum counterpart.");Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}var zT=/^(.*)\[([0-9]*)\]$/,jT=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,PY=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Qe2=2n**(8n-1n)-1n,Xe2=2n**(16n-1n)-1n,Ye2=2n**(24n-1n)-1n,Ge2=2n**(32n-1n)-1n,We2=2n**(40n-1n)-1n,Ke2=2n**(48n-1n)-1n,qe2=2n**(56n-1n)-1n,De2=2n**(64n-1n)-1n,He2=2n**(72n-1n)-1n,Ze2=2n**(80n-1n)-1n,Ue2=2n**(88n-1n)-1n,we2=2n**(96n-1n)-1n,ze2=2n**(104n-1n)-1n,je2=2n**(112n-1n)-1n,Ne2=2n**(120n-1n)-1n,Me2=2n**(128n-1n)-1n,Le2=2n**(136n-1n)-1n,Re2=2n**(144n-1n)-1n,Pe2=2n**(152n-1n)-1n,Oe2=2n**(160n-1n)-1n,Fe2=2n**(168n-1n)-1n,Be2=2n**(176n-1n)-1n,Se2=2n**(184n-1n)-1n,_e2=2n**(192n-1n)-1n,Ce2=2n**(200n-1n)-1n,Ie2=2n**(208n-1n)-1n,Te2=2n**(216n-1n)-1n,Ae2=2n**(224n-1n)-1n,pe2=2n**(232n-1n)-1n,me2=2n**(240n-1n)-1n,ke2=2n**(248n-1n)-1n,Ee2=2n**(256n-1n)-1n,ve2=-(2n**(8n-1n)),he2=-(2n**(16n-1n)),xe2=-(2n**(24n-1n)),de2=-(2n**(32n-1n)),ye2=-(2n**(40n-1n)),be2=-(2n**(48n-1n)),ge2=-(2n**(56n-1n)),le2=-(2n**(64n-1n)),fe2=-(2n**(72n-1n)),ue2=-(2n**(80n-1n)),ae2=-(2n**(88n-1n)),ie2=-(2n**(96n-1n)),ce2=-(2n**(104n-1n)),ne2=-(2n**(112n-1n)),oe2=-(2n**(120n-1n)),se2=-(2n**(128n-1n)),re2=-(2n**(136n-1n)),te2=-(2n**(144n-1n)),ee2=-(2n**(152n-1n)),$10=-(2n**(160n-1n)),V10=-(2n**(168n-1n)),J10=-(2n**(176n-1n)),Q10=-(2n**(184n-1n)),X10=-(2n**(192n-1n)),Y10=-(2n**(200n-1n)),G10=-(2n**(208n-1n)),W10=-(2n**(216n-1n)),K10=-(2n**(224n-1n)),q10=-(2n**(232n-1n)),D10=-(2n**(240n-1n)),H10=-(2n**(248n-1n)),Z10=-(2n**(256n-1n)),U10=2n**8n-1n,w10=2n**16n-1n,z10=2n**24n-1n,j10=2n**32n-1n,N10=2n**40n-1n,M10=2n**48n-1n,L10=2n**56n-1n,R10=2n**64n-1n,P10=2n**72n-1n,O10=2n**80n-1n,F10=2n**88n-1n,B10=2n**96n-1n,S10=2n**104n-1n,_10=2n**112n-1n,C10=2n**120n-1n,I10=2n**128n-1n,T10=2n**136n-1n,A10=2n**144n-1n,p10=2n**152n-1n,m10=2n**160n-1n,k10=2n**168n-1n,E10=2n**176n-1n,v10=2n**184n-1n,h10=2n**192n-1n,x10=2n**200n-1n,d10=2n**208n-1n,y10=2n**216n-1n,b10=2n**224n-1n,g10=2n**232n-1n,l10=2n**240n-1n,f10=2n**248n-1n,RH=2n**256n-1n;function _7($,V,J){let{checksumAddress:Q,staticPosition:X}=J,Y=FH(V.type);if(Y){let[G,W]=Y;return p41($,{...V,type:W},{checksumAddress:Q,length:G,staticPosition:X})}if(V.type==="tuple")return v41($,V,{checksumAddress:Q,staticPosition:X});if(V.type==="address")return A41($,{checksum:Q});if(V.type==="bool")return m41($);if(V.type.startsWith("bytes"))return k41($,V,{staticPosition:X});if(V.type.startsWith("uint")||V.type.startsWith("int"))return E41($,V);if(V.type==="string")return h41($,{staticPosition:X});throw new KJ(V.type)}var MT=32,PH=32;function A41($,V={}){let{checksum:J=!1}=V,Q=$.readBytes(32);return[((Y)=>J?MY(Y):Y)(S9(LT(Q,-20))),32]}function p41($,V,J){let{checksumAddress:Q,length:X,staticPosition:Y}=J;if(!X){let K=O4($.readBytes(PH)),D=Y+K,H=D+MT;$.setPosition(D);let U=O4($.readBytes(MT)),z=WJ(V),M=0,L=[];for(let B=0;B<U;++B){$.setPosition(H+(z?B*32:M));let[_,T]=_7($,V,{checksumAddress:Q,staticPosition:H});M+=T,L.push(_)}return $.setPosition(Y+32),[L,32]}if(WJ(V)){let K=O4($.readBytes(PH)),D=Y+K,H=[];for(let U=0;U<X;++U){$.setPosition(D+U*32);let[z]=_7($,V,{checksumAddress:Q,staticPosition:D});H.push(z)}return $.setPosition(Y+32),[H,32]}let G=0,W=[];for(let K=0;K<X;++K){let[D,H]=_7($,V,{checksumAddress:Q,staticPosition:Y+G});G+=H,W.push(D)}return[W,G]}function m41($){return[PT($.readBytes(32),{size:32}),32]}function k41($,V,{staticPosition:J}){let[Q,X]=V.type.split("bytes");if(!X){let G=O4($.readBytes(32));$.setPosition(J+G);let W=O4($.readBytes(32));if(W===0)return $.setPosition(J+32),["0x",32];let K=$.readBytes(W);return $.setPosition(J+32),[S9(K),32]}return[S9($.readBytes(Number.parseInt(X,10),32)),32]}function E41($,V){let J=V.type.startsWith("int"),Q=Number.parseInt(V.type.split("int")[1]||"256",10),X=$.readBytes(32);return[Q>48?RT(X,{signed:J}):O4(X,{signed:J}),32]}function v41($,V,J){let{checksumAddress:Q,staticPosition:X}=J,Y=V.components.length===0||V.components.some(({name:K})=>!K),G=Y?[]:{},W=0;if(WJ(V)){let K=O4($.readBytes(PH)),D=X+K;for(let H=0;H<V.components.length;++H){let U=V.components[H];$.setPosition(D+W);let[z,M]=_7($,U,{checksumAddress:Q,staticPosition:D});W+=M,G[Y?H:U?.name]=z}return $.setPosition(X+32),[G,32]}for(let K=0;K<V.components.length;++K){let D=V.components[K],[H,U]=_7($,D,{checksumAddress:Q,staticPosition:X});G[Y?K:D?.name]=H,W+=U}return[G,W]}function h41($,{staticPosition:V}){let J=O4($.readBytes(32)),Q=V+J;$.setPosition(Q);let X=O4($.readBytes(32));if(X===0)return $.setPosition(V+32),["",32];let Y=$.readBytes(X,32),G=OT(FT(Y));return $.setPosition(V+32),[G,32]}function ST({checksumAddress:$,parameters:V,values:J}){let Q=[];for(let X=0;X<V.length;X++)Q.push(OH({checksumAddress:$,parameter:V[X],value:J[X]}));return Q}function OH({checksumAddress:$=!1,parameter:V,value:J}){let Q=V,X=FH(Q.type);if(X){let[Y,G]=X;return d41(J,{checksumAddress:$,length:Y,parameter:{...Q,type:G}})}if(Q.type==="tuple")return f41(J,{checksumAddress:$,parameter:Q});if(Q.type==="address")return x41(J,{checksum:$});if(Q.type==="bool")return b41(J);if(Q.type.startsWith("uint")||Q.type.startsWith("int")){let Y=Q.type.startsWith("int"),[,,G="256"]=PY.exec(Q.type)??[];return g41(J,{signed:Y,size:Number(G)})}if(Q.type.startsWith("bytes"))return y41(J,{type:Q.type});if(Q.type==="string")return l41(J);throw new KJ(Q.type)}function FY($){let V=0;for(let Y=0;Y<$.length;Y++){let{dynamic:G,encoded:W}=$[Y];if(G)V+=32;else V+=X9(W)}let J=[],Q=[],X=0;for(let Y=0;Y<$.length;Y++){let{dynamic:G,encoded:W}=$[Y];if(G)J.push(E0(V+X,{size:32})),Q.push(W),X+=X9(W);else J.push(W)}return w0(...J,...Q)}function x41($,V){let{checksum:J=!1}=V;return S7($,{strict:J}),{dynamic:!1,encoded:I7($.toLowerCase())}}function d41($,V){let{checksumAddress:J,length:Q,parameter:X}=V,Y=Q===null;if(!Array.isArray($))throw new SH($);if(!Y&&$.length!==Q)throw new BH({expectedLength:Q,givenLength:$.length,type:`${X.type}[${Q}]`});let G=!1,W=[];for(let K=0;K<$.length;K++){let D=OH({checksumAddress:J,parameter:X,value:$[K]});if(D.dynamic)G=!0;W.push(D)}if(Y||G){let K=FY(W);if(Y){let D=E0(W.length,{size:32});return{dynamic:!0,encoded:W.length>0?w0(D,K):D}}if(G)return{dynamic:!0,encoded:K}}return{dynamic:!1,encoded:w0(...W.map(({encoded:K})=>K))}}function y41($,{type:V}){let[,J]=V.split("bytes"),Q=X9($);if(!J){let X=$;if(Q%32!==0)X=C7(X,Math.ceil(($.length-2)/2/32)*32);return{dynamic:!0,encoded:w0(I7(E0(Q,{size:32})),X)}}if(Q!==Number.parseInt(J,10))throw new BY({expectedSize:Number.parseInt(J,10),value:$});return{dynamic:!1,encoded:C7($)}}function b41($){if(typeof $!=="boolean")throw new D2(`Invalid boolean value: "${$}" (type: ${typeof $}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:I7(OY($))}}function g41($,{signed:V,size:J}){if(typeof J==="number"){let Q=2n**(BigInt(J)-(V?1n:0n))-1n,X=V?-Q-1n:0n;if($>Q||$<X)throw new BT({max:Q.toString(),min:X.toString(),signed:V,size:J/8,value:$.toString()})}return{dynamic:!1,encoded:E0($,{size:32,signed:V})}}function l41($){let V=Z$($),J=Math.ceil(X9(V)/32),Q=[];for(let X=0;X<J;X++)Q.push(C7(K0(V,X*32,(X+1)*32)));return{dynamic:!0,encoded:w0(C7(E0(X9(V),{size:32})),...Q)}}function f41($,V){let{checksumAddress:J,parameter:Q}=V,X=!1,Y=[];for(let G=0;G<Q.components.length;G++){let W=Q.components[G],K=Array.isArray($)?G:W.name,D=OH({checksumAddress:J,parameter:W,value:$[K]});if(Y.push(D),D.dynamic)X=!0}return{dynamic:X,encoded:X?FY(Y):w0(...Y.map(({encoded:G})=>G))}}function FH($){let V=$.match(/^(.*)\[(\d+)?\]$/);return V?[V[2]?Number(V[2]):null,V[1]]:void 0}function WJ($){let{type:V}=$;if(V==="string")return!0;if(V==="bytes")return!0;if(V.endsWith("[]"))return!0;if(V==="tuple")return $.components?.some(WJ);let J=FH($.type);if(J&&WJ({...$,type:J[1]}))return!0;return!1}var a41={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new CT({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition($){if($<0||$>this.bytes.length-1)throw new _T({length:this.bytes.length,position:$})},decrementPosition($){if($<0)throw new _H({offset:$});let V=this.position-$;this.assertPosition(V),this.position=V},getReadCount($){return this.positionReadCount.get($||this.position)||0},incrementPosition($){if($<0)throw new _H({offset:$});let V=this.position+$;this.assertPosition(V),this.position=V},inspectByte($){let V=$??this.position;return this.assertPosition(V),this.bytes[V]},inspectBytes($,V){let J=V??this.position;return this.assertPosition(J+$-1),this.bytes.subarray(J,J+$)},inspectUint8($){let V=$??this.position;return this.assertPosition(V),this.bytes[V]},inspectUint16($){let V=$??this.position;return this.assertPosition(V+1),this.dataView.getUint16(V)},inspectUint24($){let V=$??this.position;return this.assertPosition(V+2),(this.dataView.getUint16(V)<<8)+this.dataView.getUint8(V+2)},inspectUint32($){let V=$??this.position;return this.assertPosition(V+3),this.dataView.getUint32(V)},pushByte($){this.assertPosition(this.position),this.bytes[this.position]=$,this.position++},pushBytes($){this.assertPosition(this.position+$.length-1),this.bytes.set($,this.position),this.position+=$.length},pushUint8($){this.assertPosition(this.position),this.bytes[this.position]=$,this.position++},pushUint16($){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,$),this.position+=2},pushUint24($){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,$>>8),this.dataView.setUint8(this.position+2,$&255),this.position+=3},pushUint32($){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,$),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let $=this.inspectByte();return this.position++,$},readBytes($,V){this.assertReadLimit(),this._touch();let J=this.inspectBytes($);return this.position+=V??$,J},readUint8(){this.assertReadLimit(),this._touch();let $=this.inspectUint8();return this.position+=1,$},readUint16(){this.assertReadLimit(),this._touch();let $=this.inspectUint16();return this.position+=2,$},readUint24(){this.assertReadLimit(),this._touch();let $=this.inspectUint24();return this.position+=3,$},readUint32(){this.assertReadLimit(),this._touch();let $=this.inspectUint32();return this.position+=4,$},get remaining(){return this.bytes.length-this.position},setPosition($){let V=this.position;return this.assertPosition($),this.position=$,()=>this.position=V},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let $=this.getReadCount();if(this.positionReadCount.set(this.position,$+1),$>0)this.recursiveReadCount++}};function SY($,{recursiveReadLimit:V=8192}={}){let J=Object.create(a41);return J.bytes=$,J.dataView=new DataView($.buffer,$.byteOffset,$.byteLength),J.positionReadCount=new Map,J.recursiveReadLimit=V,J}class _H extends D2{constructor({offset:$}){super(`Offset \`${$}\` cannot be negative.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class _T extends D2{constructor({length:$,position:V}){super(`Position \`${V}\` is out of bounds (\`0 < position < ${$}\`).`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class CT extends D2{constructor({count:$,limit:V}){super(`Recursive read limit of \`${V}\` exceeded (recursive read count: \`${$}\`).`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function U$($,V,J={}){let{as:Q="Array",checksumAddress:X=!1}=J,Y=typeof V==="string"?GJ(V):V,G=SY(Y);if(DJ(Y)===0&&$.length>0)throw new pT;if(DJ(Y)&&DJ(Y)<32)throw new AT({data:typeof V==="string"?V:S9(V),parameters:$,size:DJ(Y)});let W=0,K=Q==="Array"?[]:{};for(let D=0;D<$.length;++D){let H=$[D];G.setPosition(W);let[U,z]=_7(G,H,{checksumAddress:X,staticPosition:0});if(W+=z,Q==="Array")K.push(U);else K[H.name??D]=U}return K}function v5($,V,J){let{checksumAddress:Q=!1}=J??{};if($.length!==V.length)throw new TH({expectedLength:$.length,givenLength:V.length});let X=ST({checksumAddress:Q,parameters:$,values:V}),Y=FY(X);if(Y.length===0)return"0x";return Y}function IH($,V){if($.length!==V.length)throw new TH({expectedLength:$.length,givenLength:V.length});let J=[];for(let Q=0;Q<$.length;Q++){let X=$[Q],Y=V[Q];J.push(IH.encode(X,Y))}return w0(...J)}(function($){function V(J,Q,X=!1){if(J==="address"){let K=Q;return S7(K),I7(K.toLowerCase(),X?32:0)}if(J==="string")return Z$(Q);if(J==="bytes")return Q;if(J==="bool")return I7(OY(Q),X?32:1);let Y=J.match(PY);if(Y){let[K,D,H="256"]=Y,U=Number.parseInt(H,10)/8;return E0(Q,{size:X?32:U,signed:D==="int"})}let G=J.match(jT);if(G){let[K,D]=G;if(Number.parseInt(D,10)!==(Q.length-2)/2)throw new BY({expectedSize:Number.parseInt(D,10),value:Q});return C7(Q,X?32:0)}let W=J.match(zT);if(W&&Array.isArray(Q)){let[K,D]=W,H=[];for(let U=0;U<Q.length;U++)H.push(V(D,Q[U],!0));if(H.length===0)return"0x";return w0(...H)}throw new KJ(J)}$.encode=V})(IH||(IH={}));function HJ($){if(Array.isArray($)&&typeof $[0]==="string")return CH($);if(typeof $==="string")return CH($);return $}class AT extends D2{constructor({data:$,parameters:V,size:J}){super(`Data size of ${J} bytes is too small for given parameters.`,{metaMessages:[`Params: (${TT(V)})`,`Data: ${$} (${J} bytes)`]});Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class pT extends D2{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.');Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class BH extends D2{constructor({expectedLength:$,givenLength:V,type:J}){super(`Array length mismatch for type \`${J}\`. Expected: \`${$}\`. Given: \`${V}\`.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class BY extends D2{constructor({expectedSize:$,value:V}){super(`Size of bytes "${V}" (bytes${X9(V)}) does not match expected size (bytes${$}).`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class TH extends D2{constructor({expectedLength:$,givenLength:V}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${$}`,`Given length (values): ${V}`].join(`
30
+ `));Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class SH extends D2{constructor($){super(`Value \`${$}\` is not a valid array.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class KJ extends D2{constructor($){super(`Type \`${$}\` is not a valid ABI Type.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function c41($,V){let{as:J}=V,Q=kT($),X=SY(new Uint8Array(Q.length));if(Q.encode(X),J==="Hex")return S9(X.bytes);return X.bytes}function mT($,V={}){let{as:J="Hex"}=V;return c41($,{as:J})}function kT($){if(Array.isArray($))return n41($.map((V)=>kT(V)));return o41($)}function n41($){let V=$.reduce((X,Y)=>X+Y.length,0),J=ET(V);return{length:(()=>{if(V<=55)return 1+V;return 1+J+V})(),encode(X){if(V<=55)X.pushByte(192+V);else if(X.pushByte(247+J),J===1)X.pushUint8(V);else if(J===2)X.pushUint16(V);else if(J===3)X.pushUint24(V);else X.pushUint32(V);for(let{encode:Y}of $)Y(X)}}}function o41($){let V=typeof $==="string"?GJ($):$,J=ET(V.length);return{length:(()=>{if(V.length===1&&V[0]<128)return 1;if(V.length<=55)return 1+V.length;return 1+J+V.length})(),encode(X){if(V.length===1&&V[0]<128)X.pushBytes(V);else if(V.length<=55)X.pushByte(128+V.length),X.pushBytes(V);else{if(X.pushByte(183+J),J===1)X.pushUint8(V.length);else if(J===2)X.pushUint16(V.length);else if(J===3)X.pushUint24(V.length);else X.pushUint32(V.length);X.pushBytes(V)}}}}function ET($){if($<=255)return 1;if($<=65535)return 2;if($<=16777215)return 3;if($<=4294967295)return 4;throw new D2("Length is too large.")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var _9=BigInt(0),M9=BigInt(1),T7=BigInt(2),r41=BigInt(3),xT=BigInt(4),dT=BigInt(5),yT=BigInt(8);function N9($,V){let J=$%V;return J>=_9?J:V+J}function i9($,V,J){let Q=$;while(V-- >_9)Q*=Q,Q%=J;return Q}function _Y($,V){if($===_9)throw Error("invert: expected non-zero number");if(V<=_9)throw Error("invert: expected positive modulus, got "+V);let J=N9($,V),Q=V,X=_9,Y=M9,G=M9,W=_9;while(J!==_9){let D=Q/J,H=Q%J,U=X-G*D,z=Y-W*D;Q=J,J=H,X=G,Y=W,G=U,W=z}if(Q!==M9)throw Error("invert: does not exist");return N9(X,V)}function bT($,V){let J=($.ORDER+M9)/xT,Q=$.pow(V,J);if(!$.eql($.sqr(Q),V))throw Error("Cannot find square root");return Q}function t41($,V){let J=($.ORDER-dT)/yT,Q=$.mul(V,T7),X=$.pow(Q,J),Y=$.mul(V,X),G=$.mul($.mul(Y,T7),X),W=$.mul(Y,$.sub(G,$.ONE));if(!$.eql($.sqr(W),V))throw Error("Cannot find square root");return W}function e41($){if($<BigInt(3))throw Error("sqrt is not defined for small field");let V=$-M9,J=0;while(V%T7===_9)V/=T7,J++;let Q=T7,X=ZJ($);while(vT(X,Q)===1)if(Q++>1000)throw Error("Cannot find square root: probably non-prime P");if(J===1)return bT;let Y=X.pow(Q,V),G=(V+M9)/T7;return function(K,D){if(K.is0(D))return D;if(vT(K,D)!==1)throw Error("Cannot find square root");let H=J,U=K.mul(K.ONE,Y),z=K.pow(D,V),M=K.pow(D,G);while(!K.eql(z,K.ONE)){if(K.is0(z))return K.ZERO;let L=1,B=K.sqr(z);while(!K.eql(B,K.ONE))if(L++,B=K.sqr(B),L===H)throw Error("Cannot find square root");let _=M9<<BigInt(H-L-1),T=K.pow(U,_);H=L,U=K.sqr(T),z=K.mul(z,U),M=K.mul(M,T)}return M}}function $81($){if($%xT===r41)return bT;if($%yT===dT)return t41;return e41($)}var V81=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function mH($){let V={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},J=V81.reduce((Q,X)=>{return Q[X]="function",Q},V);return p7($,J)}function J81($,V,J){if(J<_9)throw Error("invalid exponent, negatives unsupported");if(J===_9)return $.ONE;if(J===M9)return V;let Q=$.ONE,X=V;while(J>_9){if(J&M9)Q=$.mul(Q,X);X=$.sqr(X),J>>=M9}return Q}function kH($,V,J=!1){let Q=Array(V.length).fill(J?$.ZERO:void 0),X=V.reduce((G,W,K)=>{if($.is0(W))return G;return Q[K]=G,$.mul(G,W)},$.ONE),Y=$.inv(X);return V.reduceRight((G,W,K)=>{if($.is0(W))return G;return Q[K]=$.mul(G,Q[K]),$.mul(G,W)},Y),Q}function vT($,V){let J=($.ORDER-M9)/T7,Q=$.pow(V,J),X=$.eql(Q,$.ONE),Y=$.eql(Q,$.ZERO),G=$.eql(Q,$.neg($.ONE));if(!X&&!Y&&!G)throw Error("invalid Legendre symbol result");return X?1:Y?0:-1}function EH($,V){if(V!==void 0)hT(V);let J=V!==void 0?V:$.toString(2).length,Q=Math.ceil(J/8);return{nBitLength:J,nByteLength:Q}}function ZJ($,V,J=!1,Q={}){if($<=_9)throw Error("invalid field: expected ORDER > 0, got "+$);let{nBitLength:X,nByteLength:Y}=EH($,V);if(Y>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let G,W=Object.freeze({ORDER:$,isLE:J,BITS:X,BYTES:Y,MASK:A7(X),ZERO:_9,ONE:M9,create:(K)=>N9(K,$),isValid:(K)=>{if(typeof K!=="bigint")throw Error("invalid field element: expected bigint, got "+typeof K);return _9<=K&&K<$},is0:(K)=>K===_9,isOdd:(K)=>(K&M9)===M9,neg:(K)=>N9(-K,$),eql:(K,D)=>K===D,sqr:(K)=>N9(K*K,$),add:(K,D)=>N9(K+D,$),sub:(K,D)=>N9(K-D,$),mul:(K,D)=>N9(K*D,$),pow:(K,D)=>J81(W,K,D),div:(K,D)=>N9(K*_Y(D,$),$),sqrN:(K)=>K*K,addN:(K,D)=>K+D,subN:(K,D)=>K-D,mulN:(K,D)=>K*D,inv:(K)=>_Y(K,$),sqrt:Q.sqrt||((K)=>{if(!G)G=$81($);return G(W,K)}),toBytes:(K)=>J?pH(K,Y):w$(K,Y),fromBytes:(K)=>{if(K.length!==Y)throw Error("Field.fromBytes: expected "+Y+" bytes, got "+K.length);return J?AH(K):F8(K)},invertBatch:(K)=>kH(W,K),cmov:(K,D,H)=>H?D:K});return Object.freeze(W)}function gT($){if(typeof $!=="bigint")throw Error("field order must be bigint");let V=$.toString(2).length;return Math.ceil(V/8)}function vH($){let V=gT($);return V+Math.ceil(V/2)}function lT($,V,J=!1){let Q=$.length,X=gT(V),Y=vH(V);if(Q<16||Q<Y||Q>1024)throw Error("expected "+Y+"-1024 bytes of input, got "+Q);let G=J?AH($):F8($),W=N9(G,V-M9)+M9;return J?pH(W,X):w$(W,X)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var fT=BigInt(0),bH=BigInt(1);function hH($,V){let J=V.negate();return $?J:V}function iT($,V){if(!Number.isSafeInteger($)||$<=0||$>V)throw Error("invalid window size, expected [1.."+V+"], got W="+$)}function xH($,V){iT($,V);let J=Math.ceil(V/$)+1,Q=2**($-1),X=2**$,Y=A7($),G=BigInt($);return{windows:J,windowSize:Q,mask:Y,maxNumber:X,shiftBy:G}}function uT($,V,J){let{windowSize:Q,mask:X,maxNumber:Y,shiftBy:G}=J,W=Number($&X),K=$>>G;if(W>Q)W-=Y,K+=bH;let D=V*Q,H=D+Math.abs(W)-1,U=W===0,z=W<0,M=V%2!==0;return{nextN:K,offset:H,isZero:U,isNeg:z,isNegF:M,offsetF:D}}function Q81($,V){if(!Array.isArray($))throw Error("array expected");$.forEach((J,Q)=>{if(!(J instanceof V))throw Error("invalid point at index "+Q)})}function X81($,V){if(!Array.isArray($))throw Error("array of scalars expected");$.forEach((J,Q)=>{if(!V.isValid(J))throw Error("invalid scalar at index "+Q)})}var dH=new WeakMap,cT=new WeakMap;function yH($){return cT.get($)||1}function nT($,V){return{constTimeNegate:hH,hasPrecomputes(J){return yH(J)!==1},unsafeLadder(J,Q,X=$.ZERO){let Y=J;while(Q>fT){if(Q&bH)X=X.add(Y);Y=Y.double(),Q>>=bH}return X},precomputeWindow(J,Q){let{windows:X,windowSize:Y}=xH(Q,V),G=[],W=J,K=W;for(let D=0;D<X;D++){K=W,G.push(K);for(let H=1;H<Y;H++)K=K.add(W),G.push(K);W=K.double()}return G},wNAF(J,Q,X){let{ZERO:Y,BASE:G}=$,W=xH(J,V);for(let K=0;K<W.windows;K++){let{nextN:D,offset:H,isZero:U,isNeg:z,isNegF:M,offsetF:L}=uT(X,K,W);if(X=D,U)G=G.add(hH(M,Q[L]));else Y=Y.add(hH(z,Q[H]))}return{p:Y,f:G}},wNAFUnsafe(J,Q,X,Y=$.ZERO){let G=xH(J,V);for(let W=0;W<G.windows;W++){if(X===fT)break;let{nextN:K,offset:D,isZero:H,isNeg:U}=uT(X,W,G);if(X=K,H)continue;else{let z=Q[D];Y=Y.add(U?z.negate():z)}}return Y},getPrecomputes(J,Q,X){let Y=dH.get(Q);if(!Y){if(Y=this.precomputeWindow(Q,J),J!==1)dH.set(Q,X(Y))}return Y},wNAFCached(J,Q,X){let Y=yH(J);return this.wNAF(Y,this.getPrecomputes(Y,J,X),Q)},wNAFCachedUnsafe(J,Q,X,Y){let G=yH(J);if(G===1)return this.unsafeLadder(J,Q,Y);return this.wNAFUnsafe(G,this.getPrecomputes(G,J,X),Q,Y)},setWindowSize(J,Q){iT(Q,V),cT.set(J,Q),dH.delete(J)}}}function oT($,V,J,Q){Q81(J,$),X81(Q,V);let X=J.length,Y=Q.length;if(X!==Y)throw Error("arrays of points and scalars must have equal length");let G=$.ZERO,W=aT(BigInt(X)),K=1;if(W>12)K=W-3;else if(W>4)K=W-2;else if(W>0)K=2;let D=A7(K),H=Array(Number(D)+1).fill(G),U=Math.floor((V.BITS-1)/K)*K,z=G;for(let M=U;M>=0;M-=K){H.fill(G);for(let B=0;B<Y;B++){let _=Q[B],T=Number(_>>BigInt(M)&D);H[T]=H[T].add(J[B])}let L=G;for(let B=H.length-1,_=G;B>0;B--)_=_.add(H[B]),L=L.add(_);if(z=z.add(L),M!==0)for(let B=0;B<K;B++)z=z.double()}return z}function gH($){return mH($.Fp),p7($,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...EH($.n,$.nBitLength),...$,...{p:$.Fp.ORDER}})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function sT($){if($.lowS!==void 0)z$("lowS",$.lowS);if($.prehash!==void 0)z$("prehash",$.prehash)}function Y81($){let V=gH($);p7(V,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:J,Fp:Q,a:X}=V;if(J){if(!Q.eql(X,Q.ZERO))throw Error("invalid endo: CURVE.a must be 0");if(typeof J!=="object"||typeof J.beta!=="bigint"||typeof J.splitScalar!=="function")throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...V})}class tT extends Error{constructor($=""){super($)}}var B8={Err:tT,_tlv:{encode:($,V)=>{let{Err:J}=B8;if($<0||$>256)throw new J("tlv.encode: wrong tag");if(V.length&1)throw new J("tlv.encode: unpadded data");let Q=V.length/2,X=UJ(Q);if(X.length/2&128)throw new J("tlv.encode: long form length too big");let Y=Q>127?UJ(X.length/2|128):"";return UJ($)+Y+X+V},decode($,V){let{Err:J}=B8,Q=0;if($<0||$>256)throw new J("tlv.encode: wrong tag");if(V.length<2||V[Q++]!==$)throw new J("tlv.decode: wrong tlv");let X=V[Q++],Y=!!(X&128),G=0;if(!Y)G=X;else{let K=X&127;if(!K)throw new J("tlv.decode(long): indefinite length not supported");if(K>4)throw new J("tlv.decode(long): byte length is too big");let D=V.subarray(Q,Q+K);if(D.length!==K)throw new J("tlv.decode: length bytes not complete");if(D[0]===0)throw new J("tlv.decode(long): zero leftmost byte");for(let H of D)G=G<<8|H;if(Q+=K,G<128)throw new J("tlv.decode(long): not minimal encoding")}let W=V.subarray(Q,Q+G);if(W.length!==G)throw new J("tlv.decode: wrong value length");return{v:W,l:V.subarray(Q+G)}}},_int:{encode($){let{Err:V}=B8;if($<S8)throw new V("integer: negative integers are not allowed");let J=UJ($);if(Number.parseInt(J[0],16)&8)J="00"+J;if(J.length&1)throw new V("unexpected DER parsing assertion: unpadded hex");return J},decode($){let{Err:V}=B8;if($[0]&128)throw new V("invalid signature integer: negative");if($[0]===0&&!($[1]&128))throw new V("invalid signature integer: unnecessary leading zero");return F8($)}},toSig($){let{Err:V,_int:J,_tlv:Q}=B8,X=v9("signature",$),{v:Y,l:G}=Q.decode(48,X);if(G.length)throw new V("invalid signature: left bytes after parsing");let{v:W,l:K}=Q.decode(2,Y),{v:D,l:H}=Q.decode(2,K);if(H.length)throw new V("invalid signature: left bytes after parsing");return{r:J.decode(W),s:J.decode(D)}},hexFromSig($){let{_tlv:V,_int:J}=B8,Q=V.encode(2,J.encode($.r)),X=V.encode(2,J.encode($.s)),Y=Q+X;return V.encode(48,Y)}};function lH($,V){return CY(w$($,V))}var S8=BigInt(0),o0=BigInt(1),V20=BigInt(2),fH=BigInt(3),G81=BigInt(4);function W81($){let V=Y81($),{Fp:J}=V,Q=ZJ(V.n,V.nBitLength),X=V.toBytes||((A,E,y)=>{let l=E.toAffine();return IY(Uint8Array.from([4]),J.toBytes(l.x),J.toBytes(l.y))}),Y=V.fromBytes||((A)=>{let E=A.subarray(1),y=J.fromBytes(E.subarray(0,J.BYTES)),l=J.fromBytes(E.subarray(J.BYTES,2*J.BYTES));return{x:y,y:l}});function G(A){let{a:E,b:y}=V,l=J.sqr(A),f=J.mul(l,A);return J.add(J.add(f,J.mul(A,E)),y)}function W(A,E){let y=J.sqr(E),l=G(A);return J.eql(y,l)}if(!W(V.Gx,V.Gy))throw Error("bad curve params: generator point");let K=J.mul(J.pow(V.a,fH),G81),D=J.mul(J.sqr(V.b),BigInt(27));if(J.is0(J.add(K,D)))throw Error("bad curve params: a or b");function H(A){return cH(A,o0,V.n)}function U(A){let{allowedPrivateKeyLengths:E,nByteLength:y,wrapPrivateKey:l,n:f}=V;if(E&&typeof A!=="bigint"){if(iH(A))A=CY(A);if(typeof A!=="string"||!E.includes(A.length))throw Error("invalid private key");A=A.padStart(y*2,"0")}let o;try{o=typeof A==="bigint"?A:F8(v9("private key",A,y))}catch(u){throw Error("invalid private key, expected hex or "+y+" bytes, got "+typeof A)}if(l)o=N9(o,f);return m7("private key",o,o0,f),o}function z(A){if(!(A instanceof B))throw Error("ProjectivePoint expected")}let M=aH((A,E)=>{let{px:y,py:l,pz:f}=A;if(J.eql(f,J.ONE))return{x:y,y:l};let o=A.is0();if(E==null)E=o?J.ONE:J.inv(f);let u=J.mul(y,E),i=J.mul(l,E),t=J.mul(f,E);if(o)return{x:J.ZERO,y:J.ZERO};if(!J.eql(t,J.ONE))throw Error("invZ was invalid");return{x:u,y:i}}),L=aH((A)=>{if(A.is0()){if(V.allowInfinityPoint&&!J.is0(A.py))return;throw Error("bad point: ZERO")}let{x:E,y}=A.toAffine();if(!J.isValid(E)||!J.isValid(y))throw Error("bad point: x or y not FE");if(!W(E,y))throw Error("bad point: equation left != right");if(!A.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class B{constructor(A,E,y){if(A==null||!J.isValid(A))throw Error("x required");if(E==null||!J.isValid(E)||J.is0(E))throw Error("y required");if(y==null||!J.isValid(y))throw Error("z required");this.px=A,this.py=E,this.pz=y,Object.freeze(this)}static fromAffine(A){let{x:E,y}=A||{};if(!A||!J.isValid(E)||!J.isValid(y))throw Error("invalid affine point");if(A instanceof B)throw Error("projective point not allowed");let l=(f)=>J.eql(f,J.ZERO);if(l(E)&&l(y))return B.ZERO;return new B(E,y,J.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(A){let E=kH(J,A.map((y)=>y.pz));return A.map((y,l)=>y.toAffine(E[l])).map(B.fromAffine)}static fromHex(A){let E=B.fromAffine(Y(v9("pointHex",A)));return E.assertValidity(),E}static fromPrivateKey(A){return B.BASE.multiply(U(A))}static msm(A,E){return oT(B,Q,A,E)}_setWindowSize(A){h.setWindowSize(this,A)}assertValidity(){L(this)}hasEvenY(){let{y:A}=this.toAffine();if(J.isOdd)return!J.isOdd(A);throw Error("Field doesn't support isOdd")}equals(A){z(A);let{px:E,py:y,pz:l}=this,{px:f,py:o,pz:u}=A,i=J.eql(J.mul(E,u),J.mul(f,l)),t=J.eql(J.mul(y,u),J.mul(o,l));return i&&t}negate(){return new B(this.px,J.neg(this.py),this.pz)}double(){let{a:A,b:E}=V,y=J.mul(E,fH),{px:l,py:f,pz:o}=this,u=J.ZERO,i=J.ZERO,t=J.ZERO,g=J.mul(l,l),S=J.mul(f,f),q=J.mul(o,o),Z=J.mul(l,f);return Z=J.add(Z,Z),t=J.mul(l,o),t=J.add(t,t),u=J.mul(A,t),i=J.mul(y,q),i=J.add(u,i),u=J.sub(S,i),i=J.add(S,i),i=J.mul(u,i),u=J.mul(Z,u),t=J.mul(y,t),q=J.mul(A,q),Z=J.sub(g,q),Z=J.mul(A,Z),Z=J.add(Z,t),t=J.add(g,g),g=J.add(t,g),g=J.add(g,q),g=J.mul(g,Z),i=J.add(i,g),q=J.mul(f,o),q=J.add(q,q),g=J.mul(q,Z),u=J.sub(u,g),t=J.mul(q,S),t=J.add(t,t),t=J.add(t,t),new B(u,i,t)}add(A){z(A);let{px:E,py:y,pz:l}=this,{px:f,py:o,pz:u}=A,i=J.ZERO,t=J.ZERO,g=J.ZERO,S=V.a,q=J.mul(V.b,fH),Z=J.mul(E,f),R=J.mul(y,o),O=J.mul(l,u),F=J.add(E,y),m=J.add(f,o);F=J.mul(F,m),m=J.add(Z,R),F=J.sub(F,m),m=J.add(E,l);let x=J.add(f,u);return m=J.mul(m,x),x=J.add(Z,O),m=J.sub(m,x),x=J.add(y,l),i=J.add(o,u),x=J.mul(x,i),i=J.add(R,O),x=J.sub(x,i),g=J.mul(S,m),i=J.mul(q,O),g=J.add(i,g),i=J.sub(R,g),g=J.add(R,g),t=J.mul(i,g),R=J.add(Z,Z),R=J.add(R,Z),O=J.mul(S,O),m=J.mul(q,m),R=J.add(R,O),O=J.sub(Z,O),O=J.mul(S,O),m=J.add(m,O),Z=J.mul(R,m),t=J.add(t,Z),Z=J.mul(x,m),i=J.mul(F,i),i=J.sub(i,Z),Z=J.mul(F,R),g=J.mul(x,g),g=J.add(g,Z),new B(i,t,g)}subtract(A){return this.add(A.negate())}is0(){return this.equals(B.ZERO)}wNAF(A){return h.wNAFCached(this,A,B.normalizeZ)}multiplyUnsafe(A){let{endo:E,n:y}=V;m7("scalar",A,S8,y);let l=B.ZERO;if(A===S8)return l;if(this.is0()||A===o0)return this;if(!E||h.hasPrecomputes(this))return h.wNAFCachedUnsafe(this,A,B.normalizeZ);let{k1neg:f,k1:o,k2neg:u,k2:i}=E.splitScalar(A),t=l,g=l,S=this;while(o>S8||i>S8){if(o&o0)t=t.add(S);if(i&o0)g=g.add(S);S=S.double(),o>>=o0,i>>=o0}if(f)t=t.negate();if(u)g=g.negate();return g=new B(J.mul(g.px,E.beta),g.py,g.pz),t.add(g)}multiply(A){let{endo:E,n:y}=V;m7("scalar",A,o0,y);let l,f;if(E){let{k1neg:o,k1:u,k2neg:i,k2:t}=E.splitScalar(A),{p:g,f:S}=this.wNAF(u),{p:q,f:Z}=this.wNAF(t);g=h.constTimeNegate(o,g),q=h.constTimeNegate(i,q),q=new B(J.mul(q.px,E.beta),q.py,q.pz),l=g.add(q),f=S.add(Z)}else{let{p:o,f:u}=this.wNAF(A);l=o,f=u}return B.normalizeZ([l,f])[0]}multiplyAndAddUnsafe(A,E,y){let l=B.BASE,f=(u,i)=>i===S8||i===o0||!u.equals(l)?u.multiplyUnsafe(i):u.multiply(i),o=f(this,E).add(f(A,y));return o.is0()?void 0:o}toAffine(A){return M(this,A)}isTorsionFree(){let{h:A,isTorsionFree:E}=V;if(A===o0)return!0;if(E)return E(B,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:A,clearCofactor:E}=V;if(A===o0)return this;if(E)return E(B,this);return this.multiplyUnsafe(V.h)}toRawBytes(A=!0){return z$("isCompressed",A),this.assertValidity(),X(B,this,A)}toHex(A=!0){return z$("isCompressed",A),CY(this.toRawBytes(A))}}B.BASE=new B(V.Gx,V.Gy,J.ONE),B.ZERO=new B(J.ZERO,J.ONE,J.ZERO);let{endo:_,nBitLength:T}=V,h=nT(B,_?Math.ceil(T/2):T);return{CURVE:V,ProjectivePoint:B,normPrivateKeyToScalar:U,weierstrassEquation:G,isWithinCurveOrder:H}}function K81($){let V=gH($);return p7(V,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...V})}function eT($){let V=K81($),{Fp:J,n:Q,nByteLength:X,nBitLength:Y}=V,G=J.BYTES+1,W=2*J.BYTES+1;function K(Z){return N9(Z,Q)}function D(Z){return _Y(Z,Q)}let{ProjectivePoint:H,normPrivateKeyToScalar:U,weierstrassEquation:z,isWithinCurveOrder:M}=W81({...V,toBytes(Z,R,O){let F=R.toAffine(),m=J.toBytes(F.x),x=IY;if(z$("isCompressed",O),O)return x(Uint8Array.from([R.hasEvenY()?2:3]),m);else return x(Uint8Array.from([4]),m,J.toBytes(F.y))},fromBytes(Z){let R=Z.length,O=Z[0],F=Z.subarray(1);if(R===G&&(O===2||O===3)){let m=F8(F);if(!cH(m,o0,J.ORDER))throw Error("Point is not on curve");let x=z(m),p;try{p=J.sqrt(x)}catch($1){let G1=$1 instanceof Error?": "+$1.message:"";throw Error("Point is not on curve"+G1)}let N=(p&o0)===o0;if((O&1)===1!==N)p=J.neg(p);return{x:m,y:p}}else if(R===W&&O===4){let m=J.fromBytes(F.subarray(0,J.BYTES)),x=J.fromBytes(F.subarray(J.BYTES,2*J.BYTES));return{x:m,y:x}}else{let m=G,x=W;throw Error("invalid Point, expected length of "+m+", or uncompressed "+x+", got "+R)}}});function L(Z){let R=Q>>o0;return Z>R}function B(Z){return L(Z)?K(-Z):Z}let _=(Z,R,O)=>F8(Z.slice(R,O));class T{constructor(Z,R,O){if(m7("r",Z,o0,Q),m7("s",R,o0,Q),this.r=Z,this.s=R,O!=null)this.recovery=O;Object.freeze(this)}static fromCompact(Z){let R=X;return Z=v9("compactSignature",Z,R*2),new T(_(Z,0,R),_(Z,R,2*R))}static fromDER(Z){let{r:R,s:O}=B8.toSig(v9("DER",Z));return new T(R,O)}assertValidity(){}addRecoveryBit(Z){return new T(this.r,this.s,Z)}recoverPublicKey(Z){let{r:R,s:O,recovery:F}=this,m=f(v9("msgHash",Z));if(F==null||![0,1,2,3].includes(F))throw Error("recovery id invalid");let x=F===2||F===3?R+V.n:R;if(x>=J.ORDER)throw Error("recovery id 2 or 3 invalid");let p=(F&1)===0?"02":"03",N=H.fromHex(p+lH(x,J.BYTES)),v=D(x),$1=K(-m*v),G1=K(O*v),H1=H.BASE.multiplyAndAddUnsafe(N,$1,G1);if(!H1)throw Error("point at infinify");return H1.assertValidity(),H1}hasHighS(){return L(this.s)}normalizeS(){return this.hasHighS()?new T(this.r,K(-this.s),this.recovery):this}toDERRawBytes(){return uH(this.toDERHex())}toDERHex(){return B8.hexFromSig(this)}toCompactRawBytes(){return uH(this.toCompactHex())}toCompactHex(){let Z=X;return lH(this.r,Z)+lH(this.s,Z)}}let h={isValidPrivateKey(Z){try{return U(Z),!0}catch(R){return!1}},normPrivateKeyToScalar:U,randomPrivateKey:()=>{let Z=vH(V.n);return lT(V.randomBytes(Z),V.n)},precompute(Z=8,R=H.BASE){return R._setWindowSize(Z),R.multiply(BigInt(3)),R}};function A(Z,R=!0){return H.fromPrivateKey(Z).toRawBytes(R)}function E(Z){if(typeof Z==="bigint")return!1;if(Z instanceof H)return!0;let O=v9("key",Z).length,F=J.BYTES,m=F+1,x=2*F+1;if(V.allowedPrivateKeyLengths||X===m)return;else return O===m||O===x}function y(Z,R,O=!0){if(E(Z)===!0)throw Error("first arg must be private key");if(E(R)===!1)throw Error("second arg must be public key");return H.fromHex(R).multiply(U(Z)).toRawBytes(O)}let l=V.bits2int||function(Z){if(Z.length>8192)throw Error("input is too large");let R=F8(Z),O=Z.length*8-Y;return O>0?R>>BigInt(O):R},f=V.bits2int_modN||function(Z){return K(l(Z))},o=A7(Y);function u(Z){return m7("num < 2^"+Y,Z,S8,o),w$(Z,X)}function i(Z,R,O=t){if(["recovered","canonical"].some((m1)=>(m1 in O)))throw Error("sign() legacy options not supported");let{hash:F,randomBytes:m}=V,{lowS:x,prehash:p,extraEntropy:N}=O;if(x==null)x=!0;if(Z=v9("msgHash",Z),sT(O),p)Z=v9("prehashed msgHash",F(Z));let v=f(Z),$1=U(R),G1=[u($1),u(v)];if(N!=null&&N!==!1){let m1=N===!0?m(J.BYTES):N;G1.push(v9("extraEntropy",m1))}let H1=IY(...G1),B1=v;function A1(m1){let y2=l(m1);if(!M(y2))return;let V2=D(y2),$2=H.BASE.multiply(y2).toAffine(),T0=K($2.x);if(T0===S8)return;let O2=K(V2*K(B1+T0*$1));if(O2===S8)return;let R2=($2.x===T0?0:2)|Number($2.y&o0),i6=O2;if(x&&L(O2))i6=B(O2),R2^=1;return new T(T0,i6,R2)}return{seed:H1,k2sig:A1}}let t={lowS:V.lowS,prehash:!1},g={lowS:V.lowS,prehash:!1};function S(Z,R,O=t){let{seed:F,k2sig:m}=i(Z,R,O),x=V;return rT(x.hash.outputLen,x.nByteLength,x.hmac)(F,m)}H.BASE._setWindowSize(8);function q(Z,R,O,F=g){let m=Z;R=v9("msgHash",R),O=v9("publicKey",O);let{lowS:x,prehash:p,format:N}=F;if(sT(F),"strict"in F)throw Error("options.strict was renamed to lowS");if(N!==void 0&&N!=="compact"&&N!=="der")throw Error("format must be compact or der");let v=typeof m==="string"||iH(m),$1=!v&&!N&&typeof m==="object"&&m!==null&&typeof m.r==="bigint"&&typeof m.s==="bigint";if(!v&&!$1)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");let G1=void 0,H1;try{if($1)G1=new T(m.r,m.s);if(v){try{if(N!=="compact")G1=T.fromDER(m)}catch(R2){if(!(R2 instanceof B8.Err))throw R2}if(!G1&&N!=="der")G1=T.fromCompact(m)}H1=H.fromHex(O)}catch(R2){return!1}if(!G1)return!1;if(x&&G1.hasHighS())return!1;if(p)R=V.hash(R);let{r:B1,s:A1}=G1,m1=f(R),y2=D(A1),V2=K(m1*y2),$2=K(B1*y2),T0=H.BASE.multiplyAndAddUnsafe(H1,V2,$2)?.toAffine();if(!T0)return!1;return K(T0.x)===B1}return{CURVE:V,getPublicKey:A,getSharedSecret:y,sign:S,verify:q,ProjectivePoint:H,Signature:T,utils:h}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function q81($){return{hash:$,hmac:(V,...J)=>JA($,V,$A(...J)),randomBytes:VA}}function QA($,V){let J=(Q)=>eT({...$,...q81(Q)});return{...J(V),create:J}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */var GA=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),XA=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),D81=BigInt(0),H81=BigInt(1),nH=BigInt(2),YA=($,V)=>($+V/nH)/V;function Z81($){let V=GA,J=BigInt(3),Q=BigInt(6),X=BigInt(11),Y=BigInt(22),G=BigInt(23),W=BigInt(44),K=BigInt(88),D=$*$*$%V,H=D*D*$%V,U=i9(H,J,V)*H%V,z=i9(U,J,V)*H%V,M=i9(z,nH,V)*D%V,L=i9(M,X,V)*M%V,B=i9(L,Y,V)*L%V,_=i9(B,W,V)*B%V,T=i9(_,K,V)*_%V,h=i9(T,W,V)*B%V,A=i9(h,J,V)*H%V,E=i9(A,G,V)*L%V,y=i9(E,Q,V)*D%V,l=i9(y,nH,V);if(!oH.eql(oH.sqr(l),$))throw Error("Cannot find square root");return l}var oH=ZJ(GA,void 0,void 0,{sqrt:Z81}),WA=QA({a:D81,b:BigInt(7),Fp:oH,n:XA,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:($)=>{let V=XA,J=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),Q=-H81*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),X=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Y=J,G=BigInt("0x100000000000000000000000000000000"),W=YA(Y*$,V),K=YA(-Q*$,V),D=N9($-W*J-K*X,V),H=N9(-W*Q-K*Y,V),U=D>G,z=H>G;if(U)D=V-D;if(z)H=V-H;if(D>G||H>G)throw Error("splitScalar: Endomorphism failed, k="+$);return{k1neg:U,k1:D,k2neg:z,k2:H}}}},xX);function rH($,V={}){let{recovered:J}=V;if(typeof $.r>"u")throw new TY({signature:$});if(typeof $.s>"u")throw new TY({signature:$});if(J&&typeof $.yParity>"u")throw new TY({signature:$});if($.r<0n||$.r>RH)throw new HA({value:$.r});if($.s<0n||$.s>RH)throw new ZA({value:$.s});if(typeof $.yParity==="number"&&$.yParity!==0&&$.yParity!==1)throw new AY({value:$.yParity})}function U81($){return KA(S9($))}function KA($){if($.length!==130&&$.length!==132)throw new DA({signature:$});let V=BigInt(K0($,0,32)),J=BigInt(K0($,32,64)),Q=(()=>{let X=Number(`0x${$.slice(130)}`);if(Number.isNaN(X))return;try{return $Z(X)}catch{throw new AY({value:X})}})();if(typeof Q>"u")return{r:V,s:J};return{r:V,s:J,yParity:Q}}function tH($){if(typeof $.r>"u")return;if(typeof $.s>"u")return;return eH($)}function eH($){let V=(()=>{if(typeof $==="string")return KA($);if($ instanceof Uint8Array)return U81($);if(typeof $.r==="string")return z81($);if($.v)return w81($);return{r:$.r,s:$.s,...typeof $.yParity<"u"?{yParity:$.yParity}:{}}})();return rH(V),V}function w81($){return{r:$.r,s:$.s,yParity:$Z($.v)}}function z81($){let V=(()=>{let J=$.v?Number($.v):void 0,Q=$.yParity?Number($.yParity):void 0;if(typeof J==="number"&&typeof Q!=="number")Q=$Z(J);if(typeof Q!=="number")throw new AY({value:$.yParity});return Q})();return{r:BigInt($.r),s:BigInt($.s),yParity:V}}function qA($){let{r:V,s:J,yParity:Q}=$;return[Q?"0x01":"0x",V===0n?"0x":sH(E0(V)),J===0n?"0x":sH(E0(J))]}function $Z($){if($===0||$===27)return 0;if($===1||$===28)return 1;if($>=35)return $%2===0?1:0;throw new UA({value:$})}class DA extends D2{constructor({signature:$}){super(`Value \`${$}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${X9(H$($))} bytes.`]});Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class TY extends D2{constructor({signature:$}){super(`Signature \`${NY($)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class HA extends D2{constructor({value:$}){super(`Value \`${$}\` is an invalid r value. r must be a positive integer less than 2^256.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class ZA extends D2{constructor({value:$}){super(`Value \`${$}\` is an invalid s value. s must be a positive integer less than 2^256.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class AY extends D2{constructor({value:$}){super(`Value \`${$}\` is an invalid y-parity value. Y-parity must be 0 or 1.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class UA extends D2{constructor({value:$}){super(`Value \`${$}\` is an invalid v value. v must be 27, 28 or >=35.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function zA($,V={}){if(typeof $.chainId==="string")return j81($);return{...$,...V.signature}}function j81($){let{address:V,chainId:J,nonce:Q}=$,X=tH($);return{address:V,chainId:Number(J),nonce:BigInt(Q),...X}}function jA($){return N81($,{presign:!0})}function N81($,V={}){let{presign:J}=V;return B7(w0("0x05",mT(M81(J?{address:$.address,chainId:$.chainId,nonce:$.nonce}:$))))}function M81($){let{address:V,chainId:J,nonce:Q}=$,X=tH($);return[J?E0(J):"0x",V,Q?E0(Q):"0x",...X?qA(X):[]]}function NA($){return ZT(R81($))}function R81($){let{payload:V,signature:J}=$,{r:Q,s:X,yParity:Y}=J,W=new WA.Signature(BigInt(Q),BigInt(X)).addRecoveryBit(Y).recoverPublicKey(H$(V).substring(2));return XT(W)}var VZ="0x8010801080108010801080108010801080108010801080108010801080108010",JZ=HJ("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function pY($){if(typeof $==="string"){if(K0($,-32)!==VZ)throw new QZ($)}else rH($.authorization)}function O81($){if(typeof $==="string")return LA($);return $}function LA($){pY($);let V=MA(K0($,-64,-32)),J=K0($,-V-64,-64),Q=K0($,0,-V-64),[X,Y,G]=U$(JZ,J);return{authorization:zA({address:X.delegation,chainId:Number(X.chainId),nonce:X.nonce,yParity:X.yParity,r:X.r,s:X.s}),signature:Q,...G&&G!=="0x"?{data:G,to:Y}:{}}}function F81($){let{data:V,signature:J}=$;pY($);let Q=NA({payload:jA($.authorization),signature:eH($.authorization)}),X=v5(JZ,[{...$.authorization,delegation:$.authorization.address,chainId:BigInt($.authorization.chainId)},$.to??Q,V??"0x"]),Y=E0(X9(X),{size:32});return w0(J,X,Y,VZ)}function B81($){try{return pY($),!0}catch{return!1}}class QZ extends D2{constructor($){super(`Value \`${$}\` is an invalid ERC-8010 wrapped signature.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}function _81($){return $.map((V)=>({...V,value:BigInt(V.value)}))}function RA($){return{...$,balance:$.balance?BigInt($.balance):void 0,nonce:$.nonce?Z0($.nonce):void 0,storageProof:$.storageProof?_81($.storageProof):void 0}}async function PA($,{address:V,blockNumber:J,blockTag:Q,storageKeys:X}){let Y=Q??"latest",G=J!==void 0?D1(J):void 0,W=await $.request({method:"eth_getProof",params:[V,X,G||Y]});return RA(W)}async function OA($,{address:V,blockNumber:J,blockTag:Q="latest",slot:X}){let Y=J!==void 0?D1(J):void 0;return await $.request({method:"eth_getStorageAt",params:[V,X,Y||Q]})}async function j$($,{blockHash:V,blockNumber:J,blockTag:Q,hash:X,index:Y,sender:G,nonce:W}){let K=Q||"latest",D=J!==void 0?D1(J):void 0,H=null;if(X)H=await $.request({method:"eth_getTransactionByHash",params:[X]},{dedupe:!0});else if(V)H=await $.request({method:"eth_getTransactionByBlockHashAndIndex",params:[V,D1(Y)]},{dedupe:!0});else if((D||K)&&typeof Y==="number")H=await $.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[D||K,D1(Y)]},{dedupe:Boolean(D)});else if(G&&typeof W==="number")H=await $.request({method:"eth_getTransactionBySenderAndNonce",params:[G,D1(W)]},{dedupe:!0});if(!H)throw new mY({blockHash:V,blockNumber:J,blockTag:K,hash:X,index:Y});return($.chain?.formatters?.transaction?.format||L8)(H,"getTransaction")}async function FA($,{hash:V,transactionReceipt:J}){let[Q,X]=await Promise.all([K1($,N4,"getBlockNumber")({}),V?K1($,j$,"getTransaction")({hash:V}):void 0]),Y=J?.blockNumber||X?.blockNumber;if(!Y)return 0n;return Q-Y+1n}async function N$($,{hash:V}){let J=await $.request({method:"eth_getTransactionReceipt",params:[V]},{dedupe:!0});if(!J)throw new kY({hash:V});return($.chain?.formatters?.transactionReceipt?.format||sV)(J,"getTransactionReceipt")}async function BA($,V){let{account:J,authorizationList:Q,allowFailure:X=!0,blockNumber:Y,blockOverrides:G,blockTag:W,stateOverride:K}=V,D=V.contracts,{batchSize:H=V.batchSize??1024,deployless:U=V.deployless??!1}=typeof $.batch?.multicall==="object"?$.batch.multicall:{},z=(()=>{if(V.multicallAddress)return V.multicallAddress;if(U)return null;if($.chain)return R4({blockNumber:Y,chain:$.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),M=[[]],L=0,B=0;for(let h=0;h<D.length;h++){let{abi:A,address:E,args:y,functionName:l}=D[h];try{let f=a2({abi:A,args:y,functionName:l});if(B+=(f.length-2)/2,H>0&&B>H&&M[L].length>0)L++,B=(f.length-2)/2,M[L]=[];M[L]=[...M[L],{allowFailure:!0,callData:f,target:E}]}catch(f){let o=l9(f,{abi:A,address:E,args:y,docsPath:"/docs/contract/multicall",functionName:l,sender:J});if(!X)throw o;M[L]=[...M[L],{allowFailure:!0,callData:"0x",target:E}]}}let _=await Promise.allSettled(M.map((h)=>K1($,k0,"readContract")({...z===null?{code:EY}:{address:z},abi:P7,account:J,args:[h],authorizationList:Q,blockNumber:Y,blockOverrides:G,blockTag:W,functionName:"aggregate3",stateOverride:K}))),T=[];for(let h=0;h<_.length;h++){let A=_[h];if(A.status==="rejected"){if(!X)throw A.reason;for(let y=0;y<M[h].length;y++)T.push({status:"failure",error:A.reason,result:void 0});continue}let E=A.value;for(let y=0;y<E.length;y++){let{returnData:l,success:f}=E[y],{callData:o}=M[h][y],{abi:u,address:i,functionName:t,args:g}=D[T.length];try{if(o==="0x")throw new f3;if(!f)throw new u3({data:l});let S=E9({abi:u,args:g,data:l,functionName:t});T.push(X?{result:S,status:"success"}:S)}catch(S){let q=l9(S,{abi:u,address:i,args:g,docsPath:"/docs/contract/multicall",functionName:t});if(!X)throw q;T.push({error:q,result:void 0,status:"failure"})}}}if(T.length!==D.length)throw new _1("multicall results mismatch");return T}async function zJ($,V){let{blockNumber:J,blockTag:Q=$.experimental_blockTag??"latest",blocks:X,returnFullTransactions:Y,traceTransfers:G,validation:W}=V;try{let K=[];for(let z of X){let M=z.blockOverrides?SA(z.blockOverrides):void 0,L=z.calls.map((_)=>{let T=_,h=T.account?X2(T.account):void 0,A=T.abi?a2(T):T.data,E={...T,account:h,data:T.dataSuffix?Q9([A||"0x",T.dataSuffix]):A,from:T.from??h?.address};return c0(E),k9(E)}),B=z.stateOverrides?fX(z.stateOverrides):void 0;K.push({blockOverrides:M,calls:L,stateOverrides:B})}let H=(typeof J==="bigint"?D1(J):void 0)||Q;return(await $.request({method:"eth_simulateV1",params:[{blockStateCalls:K,returnFullTransactions:Y,traceTransfers:G,validation:W},H]})).map((z,M)=>({...iV(z),calls:z.calls.map((L,B)=>{let{abi:_,args:T,functionName:h,to:A}=X[M].calls[B],E=L.error?.data??L.returnData,y=BigInt(L.gasUsed),l=L.logs?.map((i)=>n0(i)),f=L.status==="0x1"?"success":"failure",o=_&&f==="success"&&E!=="0x"?E9({abi:_,data:E,functionName:h}):null,u=(()=>{if(f==="success")return;let i;if(E==="0x")i=new f3;else if(E)i=new u3({data:E});if(!i)return;return l9(i,{abi:_??[],address:A??"0x",args:T,functionName:h??"<unknown>"})})();return{data:E,gasUsed:y,logs:l,status:f,...f==="success"?{result:o}:{error:u}}})}))}catch(K){let D=K,H=n3(D,{});if(H instanceof c3)throw D;throw H}}function hY($){let V=!0,J="",Q=0,X="",Y=!1;for(let G=0;G<$.length;G++){let W=$[G];if(["(",")",","].includes(W))V=!0;if(W==="(")Q++;if(W===")")Q--;if(!V)continue;if(Q===0){if(W===" "&&["event","function","error",""].includes(X))X="";else if(X+=W,W===")"){Y=!0;break}continue}if(W===" "){if($[G-1]!==","&&J!==","&&J!==",(")J="",V=!1;continue}X+=W,J+=W}if(!Y)throw new D2("Unable to normalize signature.");return X}function vY($,V){let J=typeof $,Q=V.type;switch(Q){case"address":return LY($,{strict:!1});case"bool":return J==="boolean";case"function":return J==="string";case"string":return J==="string";default:{if(Q==="tuple"&&"components"in V)return Object.values(V.components).every((X,Y)=>{return vY(Object.values($)[Y],X)});if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(Q))return J==="number"||J==="bigint";if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(Q))return J==="string"||$ instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(Q))return Array.isArray($)&&$.every((X)=>vY(X,{...V,type:Q.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}}function YZ($,V,J){for(let Q in $){let X=$[Q],Y=V[Q];if(X.type==="tuple"&&Y.type==="tuple"&&"components"in X&&"components"in Y)return YZ(X.components,Y.components,J[Q]);let G=[X.type,Y.type];if((()=>{if(G.includes("address")&&G.includes("bytes20"))return!0;if(G.includes("address")&&G.includes("string"))return LY(J[Q],{strict:!1});if(G.includes("address")&&G.includes("bytes"))return LY(J[Q],{strict:!1});return!1})())return G}return}function dY($,V={}){let{prepare:J=!0}=V,Q=(()=>{if(Array.isArray($))return GZ($);if(typeof $==="string")return GZ($);return $})();return{...Q,...J?{hash:M$(Q)}:{}}}function jJ($,V,J){let{args:Q=[],prepare:X=!0}=J??{},Y=YJ(V,{strict:!1}),G=$.filter((D)=>{if(Y){if(D.type==="function"||D.type==="error")return WZ(D)===K0(V,0,4);if(D.type==="event")return M$(D)===V;return!1}return"name"in D&&D.name===V});if(G.length===0)throw new k7({name:V});if(G.length===1)return{...G[0],...X?{hash:M$(G[0])}:{}};let W;for(let D of G){if(!("inputs"in D))continue;if(!Q||Q.length===0){if(!D.inputs||D.inputs.length===0)return{...D,...X?{hash:M$(D)}:{}};continue}if(!D.inputs)continue;if(D.inputs.length===0)continue;if(D.inputs.length!==Q.length)continue;if(Q.every((U,z)=>{let M="inputs"in D&&D.inputs[z];if(!M)return!1;return vY(U,M)})){if(W&&"inputs"in W&&W.inputs){let U=YZ(D.inputs,W.inputs,Q);if(U)throw new _A({abiItem:D,type:U[0]},{abiItem:W,type:U[1]})}W=D}}let K=(()=>{if(W)return W;let[D,...H]=G;return{...D,overloads:H}})();if(!K)throw new k7({name:V});return{...K,...X?{hash:M$(K)}:{}}}function WZ(...$){let V=(()=>{if(Array.isArray($[0])){let[J,Q]=$;return jJ(J,Q)}return $[0]})();return K0(M$(V),0,4)}function I81(...$){let V=(()=>{if(Array.isArray($[0])){let[Q,X]=$;return jJ(Q,X)}return $[0]})(),J=(()=>{if(typeof V==="string")return V;return xY(V)})();return hY(J)}function M$(...$){let V=(()=>{if(Array.isArray($[0])){let[J,Q]=$;return jJ(J,Q)}return $[0]})();if(typeof V!=="string"&&"hash"in V&&V.hash)return V.hash;return B7(Z$(I81(V)))}class _A extends D2{constructor($,V){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${$.type}\` in \`${hY(xY($.abiItem))}\`, and`,`\`${V.type}\` in \`${hY(xY(V.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]});Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class k7 extends D2{constructor({name:$,data:V,type:J="item"}){let Q=(()=>{if($)return` with name "${$}"`;if(V)return` with data "${V}"`;return""})();super(`ABI ${J}${Q} not found.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function IA(...$){let[V,J]=(()=>{if(Array.isArray($[0])){let[Y,G]=$;return[T81(Y),G]}return $})(),{bytecode:Q,args:X}=J;return w0(Q,V.inputs?.length&&X?.length?v5(V.inputs,X):"0x")}function TA($){return dY($)}function T81($){let V=$.find((J)=>J.type==="constructor");if(!V)throw new k7({name:"constructor"});return V}function pA(...$){let[V,J=[]]=(()=>{if(Array.isArray($[0])){let[D,H,U]=$;return[AA(D,H,{args:U}),U]}let[W,K]=$;return[W,K]})(),{overloads:Q}=V,X=Q?AA([V,...Q],V.name,{args:J}):V,Y=p81(X),G=J.length>0?v5(X.inputs,J):void 0;return G?w0(Y,G):Y}function E7($,V={}){return dY($,V)}function AA($,V,J){let Q=jJ($,V,J);if(Q.type!=="function")throw new k7({name:V,type:"function"});return Q}function p81($){return WZ($)}var mA="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",g6="0x0000000000000000000000000000000000000000";var k81="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function EA($,V){let{blockNumber:J,blockTag:Q,calls:X,stateOverrides:Y,traceAssetChanges:G,traceTransfers:W,validation:K}=V,D=V.account?X2(V.account):void 0;if(G&&!D)throw new _1("`account` is required when `traceAssetChanges` is true");let H=D?IA(TA("constructor(bytes, bytes)"),{bytecode:kA,args:[k81,pA(E7("function getBalance(address)"),[D.address])]}):void 0,U=G?await Promise.all(V.calls.map(async(F)=>{if(!F.data&&!F.abi)return;let{accessList:m}=await XY($,{account:D.address,...F,data:F.abi?a2(F):F.data});return m.map(({address:x,storageKeys:p})=>p.length>0?x:null)})).then((F)=>F.flat().filter(Boolean)):[],z=await zJ($,{blockNumber:J,blockTag:Q,blocks:[...G?[{calls:[{data:H}],stateOverrides:Y},{calls:U.map((F,m)=>({abi:[E7("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[D.address],to:F,from:g6,nonce:m})),stateOverrides:[{address:g6,nonce:0}]}]:[],{calls:[...X,{}].map((F)=>({...F,from:D?.address})),stateOverrides:Y},...G?[{calls:[{data:H}]},{calls:U.map((F,m)=>({abi:[E7("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[D.address],to:F,from:g6,nonce:m})),stateOverrides:[{address:g6,nonce:0}]},{calls:U.map((F,m)=>({to:F,abi:[E7("function decimals() returns (uint256)")],functionName:"decimals",from:g6,nonce:m})),stateOverrides:[{address:g6,nonce:0}]},{calls:U.map((F,m)=>({to:F,abi:[E7("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:g6,nonce:m})),stateOverrides:[{address:g6,nonce:0}]},{calls:U.map((F,m)=>({to:F,abi:[E7("function symbol() returns (string)")],functionName:"symbol",from:g6,nonce:m})),stateOverrides:[{address:g6,nonce:0}]}]:[]],traceTransfers:W,validation:K}),M=G?z[2]:z[0],[L,B,,_,T,h,A,E]=G?z:[],{calls:y,...l}=M,f=y.slice(0,-1)??[],o=L?.calls??[],u=B?.calls??[],i=[...o,...u].map((F)=>F.status==="success"?j2(F.data):null),t=_?.calls??[],g=T?.calls??[],S=[...t,...g].map((F)=>F.status==="success"?j2(F.data):null),q=(h?.calls??[]).map((F)=>F.status==="success"?F.result:null),Z=(E?.calls??[]).map((F)=>F.status==="success"?F.result:null),R=(A?.calls??[]).map((F)=>F.status==="success"?F.result:null),O=[];for(let[F,m]of S.entries()){let x=i[F];if(typeof m!=="bigint")continue;if(typeof x!=="bigint")continue;let p=q[F-1],N=Z[F-1],v=R[F-1],$1=(()=>{if(F===0)return{address:mA,decimals:18,symbol:"ETH"};return{address:U[F-1],decimals:v||p?Number(p??1):void 0,symbol:N??void 0}})();if(O.some((G1)=>G1.token.address===$1.address))continue;O.push({token:$1,value:{pre:x,post:m,diff:m-x}})}return{assetChanges:O,block:l,results:f}}var NJ={};ND(NJ,{wrap:()=>x81,validate:()=>d81,unwrap:()=>vA,universalSignatureValidatorBytecode:()=>E81,universalSignatureValidatorAbi:()=>v81,magicBytes:()=>KZ,from:()=>h81,assert:()=>qZ,InvalidWrappedSignatureError:()=>DZ});var KZ="0x6492649264926492649264926492649264926492649264926492649264926492",E81="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",v81=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function qZ($){if(K0($,-32)!==KZ)throw new DZ($)}function h81($){if(typeof $==="string")return vA($);return $}function vA($){qZ($);let[V,J,Q]=U$(HJ("address, bytes, bytes"),$);return{data:J,signature:Q,to:V}}function x81($){let{data:V,signature:J,to:Q}=$;return w0(v5(HJ("address, bytes, bytes"),[Q,V,J]),KZ)}function d81($){try{return qZ($),!0}catch{return!1}}class DZ extends D2{constructor($){super(`Value \`${$}\` is an invalid ERC-6492 wrapped signature.`);Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function yY({r:$,s:V,to:J="hex",v:Q,yParity:X}){let Y=(()=>{if(X===0||X===1)return X;if(Q&&(Q===27n||Q===28n||Q>=35n))return Q%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),G=`0x${new L$.Signature(j2($),j2(V)).toCompactHex()}${Y===0?"1b":"1c"}`;if(J==="hex")return G;return b0(G)}async function x5($,V){let{address:J,chain:Q=$.chain,hash:X,erc6492VerifierAddress:Y=V.universalSignatureVerifierAddress??Q?.contracts?.erc6492Verifier?.address,multicallAddress:G=V.multicallAddress??Q?.contracts?.multicall3?.address}=V;if(Q?.verifyHash)return await Q.verifyHash($,V);let W=(()=>{let K=V.signature;if(d6(K))return K;if(typeof K==="object"&&"r"in K&&"s"in K)return yY(K);return U0(K)})();try{if(wJ.validate(W))return await y81($,{...V,multicallAddress:G,signature:W});return await b81($,{...V,verifierAddress:Y,signature:W})}catch(K){try{if(z4(b6(J),await pX({hash:X,signature:W})))return!0}catch{}if(K instanceof h5)return!1;throw K}}async function y81($,V){let{address:J,blockNumber:Q,blockTag:X,hash:Y,multicallAddress:G}=V,{authorization:W,data:K,signature:D,to:H}=wJ.unwrap(V.signature);if(await VJ($,{address:J,blockNumber:Q,blockTag:X})===a9(["0xef0100",W.address]))return await g81($,{address:J,blockNumber:Q,blockTag:X,hash:Y,signature:D});let z={address:W.address,chainId:Number(W.chainId),nonce:Number(W.nonce),r:D1(W.r,{size:32}),s:D1(W.s,{size:32}),yParity:W.yParity};if(!await dI({address:J,authorization:z}))throw new h5;let L=await K1($,k0,"readContract")({...G?{address:G}:{code:EY},authorizationList:[z],abi:P7,blockNumber:Q,blockTag:"pending",functionName:"aggregate3",args:[[...K?[{allowFailure:!0,target:H??J,callData:K}]:[],{allowFailure:!0,target:J,callData:a2({abi:ZZ,functionName:"isValidSignature",args:[Y,D]})}]]});if(L[L.length-1]?.returnData?.startsWith("0x1626ba7e"))return!0;throw new h5}async function b81($,V){let{address:J,factory:Q,factoryData:X,hash:Y,signature:G,verifierAddress:W,...K}=V,D=await(async()=>{if(!Q&&!X)return G;if(NJ.validate(G))return G;return NJ.wrap({data:X,signature:G,to:Q})})(),H=W?{to:W,data:a2({abi:HZ,functionName:"isValidSig",args:[J,Y,D]}),...K}:{data:bY({abi:HZ,args:[J,Y,D],bytecode:xA}),...K},{data:U}=await K1($,j4,"call")(H).catch((z)=>{if(z instanceof hA)throw new h5;throw z});if(XZ(U??"0x0"))return!0;throw new h5}async function g81($,V){let{address:J,blockNumber:Q,blockTag:X,hash:Y,signature:G}=V;if((await K1($,k0,"readContract")({address:J,abi:ZZ,args:[Y,G],blockNumber:Q,blockTag:X,functionName:"isValidSignature"}).catch((K)=>{if(K instanceof IX)throw new h5;throw K})).startsWith("0x1626ba7e"))return!0;throw new h5}class h5 extends Error{}async function dA($,{address:V,message:J,factory:Q,factoryData:X,signature:Y,...G}){let W=D$(J);return K1($,x5,"verifyHash")({address:V,factory:Q,factoryData:X,hash:W,signature:Y,...G})}async function yA($,V){let{address:J,factory:Q,factoryData:X,signature:Y,message:G,primaryType:W,types:K,domain:D,...H}=V,U=zY({message:G,primaryType:W,types:K,domain:D});return K1($,x5,"verifyHash")({address:J,factory:Q,factoryData:X,hash:U,signature:Y,...H})}function gY($,{emitOnBegin:V=!1,emitMissed:J=!1,onBlockNumber:Q,onError:X,poll:Y,pollingInterval:G=$.pollingInterval}){let W=(()=>{if(typeof Y<"u")return Y;if($.transport.type==="webSocket"||$.transport.type==="ipc")return!1;if($.transport.type==="fallback"&&($.transport.transports[0].config.type==="webSocket"||$.transport.transports[0].config.type==="ipc"))return!1;return!0})(),K;return W?(()=>{let U=J0(["watchBlockNumber",$.uid,V,J,G]);return j9(U,{onBlockNumber:Q,onError:X},(z)=>z6(async()=>{try{let M=await K1($,N4,"getBlockNumber")({cacheTime:0});if(K!==void 0){if(M===K)return;if(M-K>1&&J)for(let L=K+1n;L<M;L++)z.onBlockNumber(L,K),K=L}if(K===void 0||M>K)z.onBlockNumber(M,K),K=M}catch(M){z.onError?.(M)}},{emitOnBegin:V,interval:G}))})():(()=>{let U=J0(["watchBlockNumber",$.uid,V,J]);return j9(U,{onBlockNumber:Q,onError:X},(z)=>{let M=!0,L=()=>M=!1;return(async()=>{try{let B=(()=>{if($.transport.type==="fallback"){let T=$.transport.transports.find((h)=>h.config.type==="webSocket"||h.config.type==="ipc");if(!T)return $.transport;return T.value}return $.transport})(),{unsubscribe:_}=await B.subscribe({params:["newHeads"],onData(T){if(!M)return;let h=j2(T.result?.number);z.onBlockNumber(h,K),K=h},onError(T){z.onError?.(T)}});if(L=_,!M)L()}catch(B){X?.(B)}})(),()=>L()})})()}async function lY($,V){let{checkReplacement:J=!0,confirmations:Q=1,hash:X,onReplaced:Y,retryCount:G=6,retryDelay:W=({count:y})=>~~(1<<y)*200,timeout:K=180000}=V,D=J0(["waitForTransactionReceipt",$.uid,X]),H=(()=>{if(V.pollingInterval)return V.pollingInterval;if($.chain?.experimental_preconfirmationTime)return $.chain.experimental_preconfirmationTime;return $.pollingInterval})(),U,z,M,L=!1,B,_,{promise:T,resolve:h,reject:A}=nX(),E=K?setTimeout(()=>{_?.(),B?.(),A(new bA({hash:X}))},K):void 0;return B=j9(D,{onReplaced:Y,resolve:h,reject:A},async(y)=>{if(M=await K1($,N$,"getTransactionReceipt")({hash:X}).catch(()=>{return}),M&&Q<=1){clearTimeout(E),y.resolve(M),B?.();return}_=K1($,gY,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:H,async onBlockNumber(l){let f=(u)=>{clearTimeout(E),_?.(),u(),B?.()},o=l;if(L)return;try{if(M){if(Q>1&&(!M.blockNumber||o-M.blockNumber+1n<Q))return;f(()=>y.resolve(M));return}if(J&&!U)L=!0,await L7(async()=>{if(U=await K1($,j$,"getTransaction")({hash:X}),U.blockNumber)o=U.blockNumber},{delay:W,retryCount:G}),L=!1;if(M=await K1($,N$,"getTransactionReceipt")({hash:X}),Q>1&&(!M.blockNumber||o-M.blockNumber+1n<Q))return;f(()=>y.resolve(M))}catch(u){if(u instanceof mY||u instanceof kY){if(!U){L=!1;return}try{z=U,L=!0;let i=await L7(()=>K1($,i0,"getBlock")({blockNumber:o,includeTransactions:!0}),{delay:W,retryCount:G,shouldRetry:({error:S})=>S instanceof aV});L=!1;let t=i.transactions.find(({from:S,nonce:q})=>S===z.from&&q===z.nonce);if(!t)return;if(M=await K1($,N$,"getTransactionReceipt")({hash:t.hash}),Q>1&&(!M.blockNumber||o-M.blockNumber+1n<Q))return;let g="replaced";if(t.to===z.to&&t.value===z.value&&t.input===z.input)g="repriced";else if(t.from===t.to&&t.value===0n)g="cancelled";f(()=>{y.onReplaced?.({reason:g,replacedTransaction:z,transaction:t,transactionReceipt:M}),y.resolve(M)})}catch(i){f(()=>y.reject(i))}}else f(()=>y.reject(u))}}})}),T}function gA($,{blockTag:V=$.experimental_blockTag??"latest",emitMissed:J=!1,emitOnBegin:Q=!1,onBlock:X,onError:Y,includeTransactions:G,poll:W,pollingInterval:K=$.pollingInterval}){let D=(()=>{if(typeof W<"u")return W;if($.transport.type==="webSocket"||$.transport.type==="ipc")return!1;if($.transport.type==="fallback"&&($.transport.transports[0].config.type==="webSocket"||$.transport.transports[0].config.type==="ipc"))return!1;return!0})(),H=G??!1,U;return D?(()=>{let L=J0(["watchBlocks",$.uid,V,J,Q,H,K]);return j9(L,{onBlock:X,onError:Y},(B)=>z6(async()=>{try{let _=await K1($,i0,"getBlock")({blockTag:V,includeTransactions:H});if(_.number!==null&&U?.number!=null){if(_.number===U.number)return;if(_.number-U.number>1&&J)for(let T=U?.number+1n;T<_.number;T++){let h=await K1($,i0,"getBlock")({blockNumber:T,includeTransactions:H});B.onBlock(h,U),U=h}}if(U?.number==null||V==="pending"&&_?.number==null||_.number!==null&&_.number>U.number)B.onBlock(_,U),U=_}catch(_){B.onError?.(_)}},{emitOnBegin:Q,interval:K}))})():(()=>{let L=!0,B=!0,_=()=>L=!1;return(async()=>{try{if(Q)K1($,i0,"getBlock")({blockTag:V,includeTransactions:H}).then((A)=>{if(!L)return;if(!B)return;X(A,void 0),B=!1}).catch(Y);let T=(()=>{if($.transport.type==="fallback"){let A=$.transport.transports.find((E)=>E.config.type==="webSocket"||E.config.type==="ipc");if(!A)return $.transport;return A.value}return $.transport})(),{unsubscribe:h}=await T.subscribe({params:["newHeads"],async onData(A){if(!L)return;let E=await K1($,i0,"getBlock")({blockNumber:A.result?.number,includeTransactions:H}).catch(()=>{});if(!L)return;X(E,U),B=!1,U=E},onError(A){Y?.(A)}});if(_=h,!L)_()}catch(T){Y?.(T)}})(),()=>_()})()}function lA($,{address:V,args:J,batch:Q=!0,event:X,events:Y,fromBlock:G,onError:W,onLogs:K,poll:D,pollingInterval:H=$.pollingInterval,strict:U}){let z=(()=>{if(typeof D<"u")return D;if(typeof G==="bigint")return!0;if($.transport.type==="webSocket"||$.transport.type==="ipc")return!1;if($.transport.type==="fallback"&&($.transport.transports[0].config.type==="webSocket"||$.transport.transports[0].config.type==="ipc"))return!1;return!0})(),M=U??!1;return z?(()=>{let _=J0(["watchEvent",V,J,Q,$.uid,X,H,G]);return j9(_,{onLogs:K,onError:W},(T)=>{let h;if(G!==void 0)h=G-1n;let A,E=!1,y=z6(async()=>{if(!E){try{A=await K1($,YY,"createEventFilter")({address:V,args:J,event:X,events:Y,strict:M,fromBlock:G})}catch{}E=!0;return}try{let l;if(A)l=await K1($,p5,"getFilterChanges")({filter:A});else{let f=await K1($,N4,"getBlockNumber")({});if(h&&h!==f)l=await K1($,X$,"getLogs")({address:V,args:J,event:X,events:Y,fromBlock:h+1n,toBlock:f});else l=[];h=f}if(l.length===0)return;if(Q)T.onLogs(l);else for(let f of l)T.onLogs([f])}catch(l){if(A&&l instanceof M8)E=!1;T.onError?.(l)}},{emitOnBegin:!0,interval:H});return async()=>{if(A)await K1($,m5,"uninstallFilter")({filter:A});y()}})})():(()=>{let _=!0,T=()=>_=!1;return(async()=>{try{let h=(()=>{if($.transport.type==="fallback"){let l=$.transport.transports.find((f)=>f.config.type==="webSocket"||f.config.type==="ipc");if(!l)return $.transport;return l.value}return $.transport})(),A=Y??(X?[X]:void 0),E=[];if(A){if(E=[A.flatMap((f)=>Z4({abi:[f],eventName:f.name,args:J}))],X)E=E[0]}let{unsubscribe:y}=await h.subscribe({params:["logs",{address:V,topics:E}],onData(l){if(!_)return;let f=l.result;try{let{eventName:o,args:u}=M7({abi:A??[],data:f.data,topics:f.topics,strict:M}),i=n0(f,{args:u,eventName:o});K([i])}catch(o){let u,i;if(o instanceof N7||o instanceof J$){if(U)return;u=o.abiItem.name,i=o.abiItem.inputs?.some((g)=>!(("name"in g)&&g.name))}let t=n0(f,{args:i?[]:{},eventName:u});K([t])}},onError(l){W?.(l)}});if(T=y,!_)T()}catch(h){W?.(h)}})(),()=>T()})()}function fA($,{batch:V=!0,onError:J,onTransactions:Q,poll:X,pollingInterval:Y=$.pollingInterval}){return(typeof X<"u"?X:$.transport.type!=="webSocket"&&$.transport.type!=="ipc")?(()=>{let D=J0(["watchPendingTransactions",$.uid,V,Y]);return j9(D,{onTransactions:Q,onError:J},(H)=>{let U,z=z6(async()=>{try{if(!U)try{U=await K1($,GY,"createPendingTransactionFilter")({});return}catch(L){throw z(),L}let M=await K1($,p5,"getFilterChanges")({filter:U});if(M.length===0)return;if(V)H.onTransactions(M);else for(let L of M)H.onTransactions([L])}catch(M){H.onError?.(M)}},{emitOnBegin:!0,interval:Y});return async()=>{if(U)await K1($,m5,"uninstallFilter")({filter:U});z()}})})():(()=>{let D=!0,H=()=>D=!1;return(async()=>{try{let{unsubscribe:U}=await $.transport.subscribe({params:["newPendingTransactions"],onData(z){if(!D)return;let M=z.result;Q([M])},onError(z){J?.(z)}});if(H=U,!D)H()}catch(U){J?.(U)}})(),()=>H()})()}function uA($){let{scheme:V,statement:J,...Q}=$.match(l81)?.groups??{},{chainId:X,expirationTime:Y,issuedAt:G,notBefore:W,requestId:K,...D}=$.match(f81)?.groups??{},H=$.split("Resources:")[1]?.split(`
31
+ - `).slice(1);return{...Q,...D,...X?{chainId:Number(X)}:{},...Y?{expirationTime:new Date(Y)}:{},...G?{issuedAt:new Date(G)}:{},...W?{notBefore:new Date(W)}:{},...K?{requestId:K}:{},...H?{resources:H}:{},...V?{scheme:V}:{},...J?{statement:J}:{}}}var l81=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,f81=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function aA($){let{address:V,domain:J,message:Q,nonce:X,scheme:Y,time:G=new Date}=$;if(J&&Q.domain!==J)return!1;if(X&&Q.nonce!==X)return!1;if(Y&&Q.scheme!==Y)return!1;if(Q.expirationTime&&G>=Q.expirationTime)return!1;if(Q.notBefore&&G<Q.notBefore)return!1;try{if(!Q.address)return!1;if(!I0(Q.address,{strict:!1}))return!1;if(V&&!z4(Q.address,V))return!1}catch{return!1}return!0}async function iA($,V){let{address:J,domain:Q,message:X,nonce:Y,scheme:G,signature:W,time:K=new Date,...D}=V,H=uA(X);if(!H.address)return!1;if(!aA({address:J,domain:Q,message:H,nonce:Y,scheme:G,time:K}))return!1;let z=D$(X);return x5($,{address:H.address,hash:z,signature:W,...D})}async function R$($,{serializedTransaction:V,throwOnReceiptRevert:J,timeout:Q}){let X=await $.request({method:"eth_sendRawTransactionSync",params:Q?[V,D1(Q)]:[V]},{retryCount:0}),G=($.chain?.formatters?.transactionReceipt?.format||sV)(X);if(G.status==="reverted"&&J)throw new fY({receipt:G});return G}function v7($){return{call:(V)=>j4($,V),createAccessList:(V)=>XY($,V),createBlockFilter:()=>PI($),createContractEventFilter:(V)=>CX($,V),createEventFilter:(V)=>YY($,V),createPendingTransactionFilter:()=>GY($),estimateContractGas:(V)=>nC($,V),estimateGas:(V)=>V$($,V),getBalance:(V)=>OI($,V),getBlobBaseFee:()=>FI($),getBlock:(V)=>i0($,V),getBlockNumber:(V)=>N4($,V),getBlockTransactionCount:(V)=>BI($,V),getBytecode:(V)=>VJ($,V),getChainId:()=>m0($),getCode:(V)=>VJ($,V),getContractEvents:(V)=>uX($,V),getEip712Domain:(V)=>SI($,V),getEnsAddress:(V)=>DI($,V),getEnsAvatar:(V)=>jI($,V),getEnsName:(V)=>MI($,V),getEnsResolver:(V)=>LI($,V),getEnsText:(V)=>QY($,V),getFeeHistory:(V)=>CI($,V),estimateFeesPerGas:(V)=>dC($,V),getFilterChanges:(V)=>p5($,V),getFilterLogs:(V)=>II($,V),getGasPrice:()=>s3($),getLogs:(V)=>X$($,V),getProof:(V)=>PA($,V),estimateMaxPriorityFeePerGas:(V)=>xC($,V),fillTransaction:(V)=>$$($,V),getStorageAt:(V)=>OA($,V),getTransaction:(V)=>j$($,V),getTransactionConfirmations:(V)=>FA($,V),getTransactionCount:(V)=>r3($,V),getTransactionReceipt:(V)=>N$($,V),multicall:(V)=>BA($,V),prepareTransactionRequest:(V)=>w6($,V),readContract:(V)=>k0($,V),sendRawTransaction:(V)=>k5($,V),sendRawTransactionSync:(V)=>R$($,V),simulate:(V)=>zJ($,V),simulateBlocks:(V)=>zJ($,V),simulateCalls:(V)=>EA($,V),simulateContract:(V)=>$I($,V),verifyHash:(V)=>x5($,V),verifyMessage:(V)=>dA($,V),verifySiweMessage:(V)=>iA($,V),verifyTypedData:(V)=>yA($,V),uninstallFilter:(V)=>m5($,V),waitForTransactionReceipt:(V)=>lY($,V),watchBlocks:(V)=>gA($,V),watchBlockNumber:(V)=>gY($,V),watchContractEvent:(V)=>XI($,V),watchEvent:(V)=>lA($,V),watchPendingTransactions:(V)=>fA($,V)}}function UZ($){let{key:V="public",name:J="Public Client"}=$;return eX({...$,key:V,name:J,type:"publicClient"}).extend(v7)}async function cA($,{chain:V}){let{id:J,name:Q,nativeCurrency:X,rpcUrls:Y,blockExplorers:G}=V;await $.request({method:"wallet_addEthereumChain",params:[{chainId:D1(J),chainName:Q,nativeCurrency:X,rpcUrls:Y.default.http,blockExplorerUrls:G?Object.values(G).map(({url:W})=>W):void 0}]},{dedupe:!0,retryCount:0})}function nA($,V){let{abi:J,args:Q,bytecode:X,...Y}=V,G=bY({abi:J,args:Q,bytecode:X});return L4($,{...Y,...Y.authorizationList?{to:null}:{},data:G})}async function oA($){if($.account?.type==="local")return[$.account.address];return(await $.request({method:"eth_accounts"},{dedupe:!0})).map((J)=>fV(J))}async function sA($,V={}){let{account:J=$.account,chainId:Q}=V,X=J?X2(J):void 0,Y=Q?[X?.address,[D1(Q)]]:[X?.address],G=await $.request({method:"wallet_getCapabilities",params:Y}),W={};for(let[K,D]of Object.entries(G)){W[Number(K)]={};for(let[H,U]of Object.entries(D)){if(H==="addSubAccount")H="unstable_addSubAccount";W[Number(K)][H]=U}}return typeof Q==="number"?W[Q]:W}async function rA($){return await $.request({method:"wallet_getPermissions"},{dedupe:!0})}async function uY($,V){let{account:J=$.account,chainId:Q,nonce:X}=V;if(!J)throw new C0({docsPath:"/docs/eip7702/prepareAuthorization"});let Y=X2(J),G=(()=>{if(!V.executor)return;if(V.executor==="self")return V.executor;return X2(V.executor)})(),W={address:V.contractAddress??V.address,chainId:Q,nonce:X};if(typeof W.chainId>"u")W.chainId=$.chain?.id??await K1($,m0,"getChainId")({});if(typeof W.nonce>"u"){if(W.nonce=await K1($,r3,"getTransactionCount")({address:Y.address,blockTag:"pending"}),G==="self"||G?.address&&z4(G.address,Y.address))W.nonce+=1}return W}async function tA($){return(await $.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map((J)=>b6(J))}async function eA($,V){return $.request({method:"wallet_requestPermissions",params:[V]},{retryCount:0})}async function $p($,V){let{chain:J=$.chain}=V,Q=V.timeout??Math.max((J?.blockTime??0)*3,5000),X=await K1($,iX,"sendCalls")(V);return await K1($,oX,"waitForCallsStatus")({...V,id:X.id,timeout:Q})}var wZ=new A5(128);async function aY($,V){let{account:J=$.account,assertChainId:Q=!0,chain:X=$.chain,accessList:Y,authorizationList:G,blobs:W,data:K,dataSuffix:D=typeof $.dataSuffix==="string"?$.dataSuffix:$.dataSuffix?.value,gas:H,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:M,maxPriorityFeePerGas:L,nonce:B,pollingInterval:_,throwOnReceiptRevert:T,type:h,value:A,...E}=V,y=V.timeout??Math.max((X?.blockTime??0)*3,5000);if(typeof J>"u")throw new C0({docsPath:"/docs/actions/wallet/sendTransactionSync"});let l=J?X2(J):null;try{c0(V);let f=await(async()=>{if(V.to)return V.to;if(V.to===null)return;if(G&&G.length>0)return await T5({authorization:G[0]}).catch(()=>{throw new _1("`to` is required. Could not infer from `authorizationList`.")});return})();if(l?.type==="json-rpc"||l===null){let o;if(X!==null){if(o=await K1($,m0,"getChainId")({}),Q)M4({currentChainId:o,chain:X})}let u=$.chain?.formatters?.transactionRequest?.format,t=(u||k9)({...w4(E,{format:u}),accessList:Y,account:l,authorizationList:G,blobs:W,chainId:o,data:K?Q9([K,D??"0x"]):K,gas:H,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:M,maxPriorityFeePerGas:L,nonce:B,to:f,type:h,value:A},"sendTransaction"),g=wZ.get($.uid),S=g?"wallet_sendTransaction":"eth_sendTransaction",q=await(async()=>{try{return await $.request({method:S,params:[t]},{retryCount:0})}catch(R){if(g===!1)throw R;let O=R;if(O.name==="InvalidInputRpcError"||O.name==="InvalidParamsRpcError"||O.name==="MethodNotFoundRpcError"||O.name==="MethodNotSupportedRpcError")return await $.request({method:"wallet_sendTransaction",params:[t]},{retryCount:0}).then((F)=>{return wZ.set($.uid,!0),F}).catch((F)=>{let m=F;if(m.name==="MethodNotFoundRpcError"||m.name==="MethodNotSupportedRpcError")throw wZ.set($.uid,!1),O;throw m});throw O}})(),Z=await K1($,lY,"waitForTransactionReceipt")({checkReplacement:!1,hash:q,pollingInterval:_,timeout:y});if(T&&Z.status==="reverted")throw new fY({receipt:Z});return Z}if(l?.type==="local"){let o=await K1($,w6,"prepareTransactionRequest")({account:l,accessList:Y,authorizationList:G,blobs:W,chain:X,data:K?Q9([K,D??"0x"]):K,gas:H,gasPrice:U,maxFeePerBlobGas:z,maxFeePerGas:M,maxPriorityFeePerGas:L,nonce:B,nonceManager:l.nonceManager,parameters:[...nV,"sidecars"],type:h,value:A,...E,to:f}),u=X?.serializers?.transaction,i=await l.signTransaction(o,{serializer:u});return await K1($,R$,"sendRawTransactionSync")({serializedTransaction:i,throwOnReceiptRevert:T,timeout:V.timeout})}if(l?.type==="smart")throw new y6({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new y6({docsPath:"/docs/actions/wallet/sendTransactionSync",type:l?.type})}catch(f){if(f instanceof y6)throw f;throw U4(f,{...V,account:l,chain:V.chain||void 0})}}async function Vp($,V){let{id:J}=V;await $.request({method:"wallet_showCallsStatus",params:[J]});return}async function Jp($,V){let{account:J=$.account}=V;if(!J)throw new C0({docsPath:"/docs/eip7702/signAuthorization"});let Q=X2(J);if(!Q.signAuthorization)throw new y6({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:Q.type});let X=await uY($,V);return Q.signAuthorization(X)}async function Qp($,{account:V=$.account,message:J}){if(!V)throw new C0({docsPath:"/docs/actions/wallet/signMessage"});let Q=X2(V);if(Q.signMessage)return Q.signMessage({message:J});let X=(()=>{if(typeof J==="string")return O8(J);if(J.raw instanceof Uint8Array)return s1(J.raw);return J.raw})();return $.request({method:"personal_sign",params:[X,Q.address]},{retryCount:0})}async function iY($,V){let{account:J=$.account,chain:Q=$.chain,...X}=V;if(!J)throw new C0({docsPath:"/docs/actions/wallet/signTransaction"});let Y=X2(J);c0({account:Y,...V});let G=await K1($,m0,"getChainId")({});if(Q!==null)M4({currentChainId:G,chain:Q});let K=(Q?.formatters||$.chain?.formatters)?.transactionRequest?.format||k9;if(Y.signTransaction)return Y.signTransaction({...X,chainId:G},{serializer:$.chain?.serializers?.transaction});return await $.request({method:"eth_signTransaction",params:[{...K({...X,account:Y},"signTransaction"),chainId:D1(G),from:Y.address}]},{retryCount:0})}async function cY($,V){let{account:J=$.account,domain:Q,message:X,primaryType:Y}=V;if(!J)throw new C0({docsPath:"/docs/actions/wallet/signTypedData"});let G=X2(J),W={EIP712Domain:wY({domain:Q}),...V.types};if(UY({domain:Q,message:X,primaryType:Y,types:W}),G.signTypedData)return G.signTypedData({domain:Q,message:X,primaryType:Y,types:W});let K=oI({domain:Q,message:X,primaryType:Y,types:W});return $.request({method:"eth_signTypedData_v4",params:[G.address,K]},{retryCount:0})}async function Xp($,{id:V}){await $.request({method:"wallet_switchEthereumChain",params:[{chainId:D1(V)}]},{retryCount:0})}async function Yp($,V){return await $.request({method:"wallet_watchAsset",params:V},{retryCount:0})}async function Gp($,V){return R8.internal($,aY,"sendTransactionSync",V)}function Wp($){return{addChain:(V)=>cA($,V),deployContract:(V)=>nA($,V),fillTransaction:(V)=>$$($,V),getAddresses:()=>oA($),getCallsStatus:(V)=>cX($,V),getCapabilities:(V)=>sA($,V),getChainId:()=>m0($),getPermissions:()=>rA($),prepareAuthorization:(V)=>uY($,V),prepareTransactionRequest:(V)=>w6($,V),requestAddresses:()=>tA($),requestPermissions:(V)=>eA($,V),sendCalls:(V)=>iX($,V),sendCallsSync:(V)=>$p($,V),sendRawTransaction:(V)=>k5($,V),sendRawTransactionSync:(V)=>R$($,V),sendTransaction:(V)=>L4($,V),sendTransactionSync:(V)=>aY($,V),showCallsStatus:(V)=>Vp($,V),signAuthorization:(V)=>Jp($,V),signMessage:(V)=>Qp($,V),signTransaction:(V)=>iY($,V),signTypedData:(V)=>cY($,V),switchChain:(V)=>Xp($,V),waitForCallsStatus:(V)=>oX($,V),watchAsset:(V)=>Yp($,V),writeContract:(V)=>R8($,V),writeContractSync:(V)=>Gp($,V)}}function zZ($){let{key:V="wallet",name:J="Wallet Client",transport:Q}=$;return eX({...$,key:V,name:J,transport:Q,type:"walletClient"}).extend(Wp)}function Kp({key:$,methods:V,name:J,request:Q,retryCount:X=3,retryDelay:Y=150,timeout:G,type:W},K){let D=tX();return{config:{key:$,methods:V,name:J,request:Q,retryCount:X,retryDelay:Y,timeout:G,type:W},request:gI(Q,{methods:V,retryCount:X,retryDelay:Y,uid:D}),value:K}}class jZ extends _1{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function nY($,V={}){let{batch:J,fetchFn:Q,fetchOptions:X,key:Y="http",methods:G,name:W="HTTP JSON-RPC",onFetchRequest:K,onFetchResponse:D,retryDelay:H,raw:U}=V;return({chain:z,retryCount:M,timeout:L})=>{let{batchSize:B=1000,wait:_=0}=typeof J==="object"?J:{},T=V.retryCount??M,h=L??V.timeout??1e4,A=$||z?.rpcUrls.default.http[0];if(!A)throw new jZ;let E=fI(A,{fetchFn:Q,fetchOptions:X,onRequest:K,onResponse:D,timeout:h});return Kp({key:Y,methods:G,name:W,async request({method:y,params:l}){let f={method:y,params:l},{schedule:o}=qp({id:A,wait:_,shouldSplitBatch(g){return g.length>B},fn:(g)=>E.request({body:g}),sort:(g,S)=>g.id-S.id}),u=async(g)=>J?o(g):[await E.request({body:g})],[{error:i,result:t}]=await u(f);if(U)return{error:i,result:t};if(i)throw new TX({body:f,error:i,url:A});return t},retryCount:T,retryDelay:H,timeout:h,type:"http"},{fetchOptions:X,url:A})}}var P$=50000n,NZ=Dp*32n;var MZ={block:vX({format($){let V=$.transactions?.map((J)=>{if(typeof J==="string")return J;let Q=MZ.transaction?.format(J);if(Q.typeHex==="0x71")Q.type="eip712";else if(Q.typeHex==="0xff")Q.type="priority";return Q});return{l1BatchNumber:$.l1BatchNumber?j2($.l1BatchNumber):null,l1BatchTimestamp:$.l1BatchTimestamp?j2($.l1BatchTimestamp):null,transactions:V}}}),transaction:EX({format($){let V={};if($.type==="0x71")V.type="eip712";else if($.type==="0xff")V.type="priority";return{...V,l1BatchNumber:$.l1BatchNumber?j2($.l1BatchNumber):null,l1BatchTxIndex:$.l1BatchTxIndex?j2($.l1BatchTxIndex):null}}}),transactionReceipt:aX({format($){return{l1BatchNumber:$.l1BatchNumber?j2($.l1BatchNumber):null,l1BatchTxIndex:$.l1BatchTxIndex?j2($.l1BatchTxIndex):null,logs:$.logs.map((V)=>{return{...n0(V),l1BatchNumber:V.l1BatchNumber?j2(V.l1BatchNumber):null,transactionLogIndex:Z0(V.transactionLogIndex),logType:V.logType}}),l2ToL1Logs:$.l2ToL1Logs.map((V)=>{return{blockNumber:j2(V.blockHash),blockHash:V.blockHash,l1BatchNumber:V.l1BatchNumber?j2(V.l1BatchNumber):null,transactionIndex:j2(V.transactionIndex),shardId:j2(V.shardId),isService:V.isService,sender:V.sender,key:V.key,value:V.value,transactionHash:V.transactionHash,logIndex:j2(V.logIndex)}})}}}),transactionRequest:Hp({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format($){if($.gasPerPubdata||$.paymaster&&$.paymasterInput||$.factoryDeps||$.customSignature)return{eip712Meta:{...$.gasPerPubdata?{gasPerPubdata:s1($.gasPerPubdata)}:{gasPerPubdata:s1(P$)},...$.paymaster&&$.paymasterInput?{paymasterParams:{paymaster:$.paymaster,paymasterInput:Array.from(b0($.paymasterInput))}}:{},...$.factoryDeps?{factoryDeps:$.factoryDeps.map((V)=>Array.from(b0(V)))}:{},...$.customSignature?{customSignature:Array.from(b0($.customSignature))}:{}},type:"0x71"};return{}}})};class MJ extends _1{constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(`
32
+ `),{name:"InvalidEip712TransactionError"})}}function F4($){if($.type==="eip712")return!0;if("customSignature"in $&&$.customSignature||"paymaster"in $&&$.paymaster||"paymasterInput"in $&&$.paymasterInput||"gasPerPubdata"in $&&typeof $.gasPerPubdata==="bigint"||"factoryDeps"in $&&$.factoryDeps)return!0;return!1}function oY($){let{chainId:V,to:J,from:Q,paymaster:X,paymasterInput:Y}=$;if(!F4($))throw new MJ;if(!V||V<=0)throw new O7({chainId:V});if(J&&!I0(J))throw new g0({address:J});if(Q&&!I0(Q))throw new g0({address:Q});if(X&&!I0(X))throw new g0({address:X});if(X&&!Y)throw new _1("`paymasterInput` must be provided when `paymaster` is defined");if(!X&&Y)throw new _1("`paymaster` must be provided when `paymasterInput` is defined")}function u81($,V){if(F4($))return a81($);return K$($,V)}var Zp={transaction:u81};function a81($){let{chainId:V,gas:J,nonce:Q,to:X,from:Y,value:G,maxFeePerGas:W,maxPriorityFeePerGas:K,customSignature:D,factoryDeps:H,paymaster:U,paymasterInput:z,gasPerPubdata:M,data:L}=$;oY($);let B=[Q?s1(Q):"0x",K?s1(K):"0x",W?s1(W):"0x",J?s1(J):"0x",X??"0x",G?s1(G):"0x",L??"0x",s1(V),s1(""),s1(""),s1(V),Y??"0x",M?s1(M):s1(P$),H??[],D??"0x",U&&z?[U,z]:[]];return a9(["0x71",u9(B)])}class LZ extends _1{constructor({givenLength:$,maxBytecodeSize:V}){super(`Bytecode cannot be longer than ${V} bytes. Given length: ${$}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}class RZ extends _1{constructor({givenLengthInWords:$}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${$}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}class PZ extends _1{constructor({givenLength:$}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${$}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}function LJ($){let V=U6($);if(V.length%32!==0)throw new PZ({givenLength:V.length});if(V.length>NZ)throw new LZ({givenLength:V.length,maxBytecodeSize:NZ});let J=dX(V),Q=U6(J),X=V.length/32;if(X%2===0)throw new RZ({givenLengthInWords:X});let Y=U6(X),G=Up(Y,{size:2}),W=new Uint8Array([1,0]);return Q.set(W,0),Q.set(G,2),Q}var wp=($)=>{oY($);let V=i81($);return{domain:{name:"zkSync",version:"2",chainId:$.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:V}};function i81($){let{gas:V,nonce:J,to:Q,from:X,value:Y,maxFeePerGas:G,maxPriorityFeePerGas:W,factoryDeps:K,paymaster:D,paymasterInput:H,gasPerPubdata:U,data:z}=$;return{txType:113n,from:BigInt(X),to:Q?BigInt(Q):0n,gasLimit:V??0n,gasPerPubdataByteLimit:U??P$,maxFeePerGas:G??0n,maxPriorityFeePerGas:W??0n,paymaster:D?BigInt(D):0n,nonce:J?BigInt(J):0n,value:Y??0n,data:z??"0x",factoryDeps:K?.map((M)=>s1(LJ(M)))??[],paymasterInput:H?H:"0x"}}var sY={blockTime:1000,formatters:MZ,serializers:Zp,custom:{getEip712Domain:wp}};var OZ=v2({...sY,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}});var FZ=v2({...sY,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}});var zp={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}};var jp={block:vX({format($){return{transactions:$.transactions?.map((J)=>{if(typeof J==="string")return J;let Q=L8(J);if(Q.typeHex==="0x7e")Q.isSystemTx=J.isSystemTx,Q.mint=J.mint?j2(J.mint):void 0,Q.sourceHash=J.sourceHash,Q.type="deposit";return Q}),stateRoot:$.stateRoot}}}),transaction:EX({format($){let V={};if($.type==="0x7e")V.isSystemTx=$.isSystemTx,V.mint=$.mint?j2($.mint):void 0,V.sourceHash=$.sourceHash,V.type="deposit";return V}}),transactionReceipt:aX({format($){return{l1GasPrice:$.l1GasPrice?j2($.l1GasPrice):null,l1GasUsed:$.l1GasUsed?j2($.l1GasUsed):null,l1Fee:$.l1Fee?j2($.l1Fee):null,l1FeeScalar:$.l1FeeScalar?Number($.l1FeeScalar):null}}})};function c81($,V){if(o81($))return n81($);return K$($,V)}var Np={transaction:c81};function n81($){s81($);let{sourceHash:V,data:J,from:Q,gas:X,isSystemTx:Y,mint:G,to:W,value:K}=$,D=[V,Q,W??"0x",G?s1(G):"0x",K?s1(K):"0x",X?s1(X):"0x",Y?"0x1":"0x",J??"0x"];return a9(["0x7e",u9(D)])}function o81($){if($.type==="deposit")return!0;if(typeof $.sourceHash<"u")return!0;return!1}function s81($){let{from:V,to:J}=$;if(V&&!I0(V))throw new g0({address:V});if(J&&!I0(J))throw new g0({address:J})}var O$={blockTime:2000,contracts:zp,formatters:jp,serializers:Np};var BZ=v2({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}});var SZ=v2({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0});var RJ=1,rY=v2({...O$,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...O$.contracts,disputeGameFactory:{[RJ]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[RJ]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[RJ]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[RJ]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:RJ}),r81=v2({...rY,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}});var PJ=11155111,tY=v2({...O$,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...O$.contracts,disputeGameFactory:{[PJ]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[PJ]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[PJ]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[PJ]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:PJ}),t81=v2({...tY,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}});var _Z=v2({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.edu-chain.raas.gelato.cloud"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://educhain.blockscout.com/"}},testnet:!1});var CZ=v2({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}});var IZ=v2({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:24347592}},testnet:!0});var TZ=v2({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}});var AZ=v2({id:137,name:"Polygon",blockTime:2000,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}});var pZ=v2({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0});var mZ=v2({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com",apiUrl:"https://seitrace.com/pacific-1/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}});var kZ=v2({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:98697651}},testnet:!0});var EZ=v2({id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story explorer",url:"https://storyscan.io",apiUrl:"https://storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1});/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function QG($){return $ instanceof Uint8Array||ArrayBuffer.isView($)&&$.constructor.name==="Uint8Array"}function xZ($,...V){if(!QG($))throw Error("Uint8Array expected");if(V.length>0&&!V.includes($.length))throw Error("Uint8Array expected of length "+V+", got length="+$.length)}function Op($,V){if(!Array.isArray(V))return!1;if(V.length===0)return!0;if($)return V.every((J)=>typeof J==="string");else return V.every((J)=>Number.isSafeInteger(J))}function Fp($){if(typeof $!=="function")throw Error("function expected");return!0}function d5($,V){if(typeof V!=="string")throw Error(`${$}: string expected`);return!0}function FJ($){if(!Number.isSafeInteger($))throw Error(`invalid integer: ${$}`)}function $G($){if(!Array.isArray($))throw Error("array expected")}function VG($,V){if(!Op(!0,V))throw Error(`${$}: array of strings expected`)}function dZ($,V){if(!Op(!1,V))throw Error(`${$}: array of numbers expected`)}function c9(...$){let V=(Y)=>Y,J=(Y,G)=>(W)=>Y(G(W)),Q=$.map((Y)=>Y.encode).reduceRight(J,V),X=$.map((Y)=>Y.decode).reduce(J,V);return{encode:Q,decode:X}}function n9($){let V=typeof $==="string"?$.split(""):$,J=V.length;VG("alphabet",V);let Q=new Map(V.map((X,Y)=>[X,Y]));return{encode:(X)=>{return $G(X),X.map((Y)=>{if(!Number.isSafeInteger(Y)||Y<0||Y>=J)throw Error(`alphabet.encode: digit index outside alphabet "${Y}". Allowed: ${$}`);return V[Y]})},decode:(X)=>{return $G(X),X.map((Y)=>{d5("alphabet.decode",Y);let G=Q.get(Y);if(G===void 0)throw Error(`Unknown letter: "${Y}". Allowed: ${$}`);return G})}}}function o9($=""){return d5("join",$),{encode:(V)=>{return VG("join.decode",V),V.join($)},decode:(V)=>{return d5("join.decode",V),V.split($)}}}function XG($,V="="){return FJ($),d5("padding",V),{encode(J){VG("padding.encode",J);while(J.length*$%8)J.push(V);return J},decode(J){VG("padding.decode",J);let Q=J.length;if(Q*$%8)throw Error("padding: invalid, string should have whole number of bytes");for(;Q>0&&J[Q-1]===V;Q--)if((Q-1)*$%8===0)throw Error("padding: invalid, string has too much padding");return J.slice(0,Q)}}}function Bp($){return Fp($),{encode:(V)=>V,decode:(V)=>$(V)}}function Mp($,V,J){if(V<2)throw Error(`convertRadix: invalid from=${V}, base cannot be less than 2`);if(J<2)throw Error(`convertRadix: invalid to=${J}, base cannot be less than 2`);if($G($),!$.length)return[];let Q=0,X=[],Y=Array.from($,(W)=>{if(FJ(W),W<0||W>=V)throw Error(`invalid integer: ${W}`);return W}),G=Y.length;while(!0){let W=0,K=!0;for(let D=Q;D<G;D++){let H=Y[D],U=V*W,z=U+H;if(!Number.isSafeInteger(z)||U/V!==W||z-H!==U)throw Error("convertRadix: carry overflow");let M=z/J;W=z%J;let L=Math.floor(M);if(Y[D]=L,!Number.isSafeInteger(L)||L*J+W!==z)throw Error("convertRadix: carry overflow");if(!K)continue;else if(!L)Q=D;else K=!1}if(X.push(W),K)break}for(let W=0;W<$.length-1&&$[W]===0;W++)X.push(0);return X.reverse()}var Sp=($,V)=>V===0?$:Sp(V,$%V),JG=($,V)=>$+(V-Sp($,V)),eY=(()=>{let $=[];for(let V=0;V<40;V++)$.push(2**V);return $})();function vZ($,V,J,Q){if($G($),V<=0||V>32)throw Error(`convertRadix2: wrong from=${V}`);if(J<=0||J>32)throw Error(`convertRadix2: wrong to=${J}`);if(JG(V,J)>32)throw Error(`convertRadix2: carry overflow from=${V} to=${J} carryBits=${JG(V,J)}`);let X=0,Y=0,G=eY[V],W=eY[J]-1,K=[];for(let D of $){if(FJ(D),D>=G)throw Error(`convertRadix2: invalid data word=${D} from=${V}`);if(X=X<<V|D,Y+V>32)throw Error(`convertRadix2: carry overflow pos=${Y} from=${V}`);Y+=V;for(;Y>=J;Y-=J)K.push((X>>Y-J&W)>>>0);let H=eY[Y];if(H===void 0)throw Error("invalid carry");X&=H-1}if(X=X<<J-Y&W,!Q&&Y>=V)throw Error("Excess padding");if(!Q&&X>0)throw Error(`Non-zero padding: ${X}`);if(Q&&Y>0)K.push(X>>>0);return K}function e81($){FJ($);let V=256;return{encode:(J)=>{if(!QG(J))throw Error("radix.encode input should be Uint8Array");return Mp(Array.from(J),V,$)},decode:(J)=>{return dZ("radix.decode",J),Uint8Array.from(Mp(J,$,V))}}}function N6($,V=!1){if(FJ($),$<=0||$>32)throw Error("radix2: bits should be in (0..32]");if(JG(8,$)>32||JG($,8)>32)throw Error("radix2: carry overflow");return{encode:(J)=>{if(!QG(J))throw Error("radix2.encode input should be Uint8Array");return vZ(Array.from(J),8,$,!V)},decode:(J)=>{return dZ("radix2.decode",J),Uint8Array.from(vZ(J,$,8,V))}}}function Lp($){return Fp($),function(...V){try{return $.apply(null,V)}catch(J){}}}var x30=c9(N6(4),n9("0123456789ABCDEF"),o9("")),d30=c9(N6(5),n9("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),XG(5),o9("")),y30=c9(N6(5),n9("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),o9("")),b30=c9(N6(5),n9("0123456789ABCDEFGHIJKLMNOPQRSTUV"),XG(5),o9("")),g30=c9(N6(5),n9("0123456789ABCDEFGHIJKLMNOPQRSTUV"),o9("")),l30=c9(N6(5),n9("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),o9(""),Bp(($)=>$.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),_p=(()=>typeof Uint8Array.from([]).toBase64==="function"&&typeof Uint8Array.fromBase64==="function")(),Cp=($,V)=>{d5("base64",$);let J=V?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,Q=V?"base64url":"base64";if($.length>0&&!J.test($))throw Error("invalid base64");return Uint8Array.fromBase64($,{alphabet:Q,lastChunkHandling:"strict"})},f30=_p?{encode($){return xZ($),$.toBase64()},decode($){return Cp($,!1)}}:c9(N6(6),n9("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),XG(6),o9("")),u30=c9(N6(6),n9("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),o9("")),a30=_p?{encode($){return xZ($),$.toBase64({alphabet:"base64url"})},decode($){return Cp($,!0)}}:c9(N6(6),n9("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),XG(6),o9("")),i30=c9(N6(6),n9("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),o9("")),yZ=($)=>c9(e81(58),n9($),o9("")),Ip=yZ("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),c30=yZ("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),n30=yZ("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");var hZ=c9(n9("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),o9("")),Rp=[996825010,642813549,513874426,1027748829,705979059];function OJ($){let V=$>>25,J=($&33554431)<<5;for(let Q=0;Q<Rp.length;Q++)if((V>>Q&1)===1)J^=Rp[Q];return J}function Pp($,V,J=1){let Q=$.length,X=1;for(let Y=0;Y<Q;Y++){let G=$.charCodeAt(Y);if(G<33||G>126)throw Error(`Invalid prefix (${$})`);X=OJ(X)^G>>5}X=OJ(X);for(let Y=0;Y<Q;Y++)X=OJ(X)^$.charCodeAt(Y)&31;for(let Y of V)X=OJ(X)^Y;for(let Y=0;Y<6;Y++)X=OJ(X);return X^=J,hZ.encode(vZ([X%eY[30]],30,5,!1))}function Tp($){let V=$==="bech32"?1:734539939,J=N6(5),Q=J.decode,X=J.encode,Y=Lp(Q);function G(U,z,M=90){if(d5("bech32.encode prefix",U),QG(z))z=Array.from(z);dZ("bech32.encode",z);let L=U.length;if(L===0)throw TypeError(`Invalid prefix length ${L}`);let B=L+7+z.length;if(M!==!1&&B>M)throw TypeError(`Length ${B} exceeds limit ${M}`);let _=U.toLowerCase(),T=Pp(_,z,V);return`${_}1${hZ.encode(z)}${T}`}function W(U,z=90){d5("bech32.decode input",U);let M=U.length;if(M<8||z!==!1&&M>z)throw TypeError(`invalid string length: ${M} (${U}). Expected (8..${z})`);let L=U.toLowerCase();if(U!==L&&U!==U.toUpperCase())throw Error("String must be lowercase or uppercase");let B=L.lastIndexOf("1");if(B===0||B===-1)throw Error('Letter "1" must be present between prefix and data only');let _=L.slice(0,B),T=L.slice(B+1);if(T.length<6)throw Error("Data must be at least 6 characters long");let h=hZ.decode(T).slice(0,-6),A=Pp(_,h,V);if(!T.endsWith(A))throw Error(`Invalid checksum in ${U}: expected "${A}"`);return{prefix:_,words:h}}let K=Lp(W);function D(U){let{prefix:z,words:M}=W(U,!1);return{prefix:z,words:M,bytes:Q(M)}}function H(U,z){return G(U,X(z))}return{encode:G,decode:W,encodeFromBytes:H,decodeToBytes:D,decodeUnsafe:K,fromWords:Q,fromWordsUnsafe:Y,toWords:X}}var o30=Tp("bech32"),s30=Tp("bech32m");var $51=(()=>typeof Uint8Array.from([]).toHex==="function"&&typeof Uint8Array.fromHex==="function")(),V51={encode($){return xZ($),$.toHex()},decode($){return d5("hex",$),Uint8Array.fromHex($)}},r30=$51?V51:c9(N6(4),n9("0123456789abcdef"),o9(""),Bp(($)=>{if(typeof $!=="string"||$.length%2!==0)throw TypeError(`hex.decode: expected string, got ${typeof $} with length ${$.length}`);return $.toLowerCase()}));function Ap($){if(typeof $==="string"){if(!I0($,{strict:!1}))throw new g0({address:$});return{address:$,type:"json-rpc"}}if(!I0($.address,{strict:!1}))throw new g0({address:$.address});return{address:$.address,nonceManager:$.nonceManager,sign:$.sign,signAuthorization:$.signAuthorization,signMessage:$.signMessage,signTransaction:$.signTransaction,signTypedData:$.signTypedData,source:"custom",type:"local"}}var bZ=!1;async function B4({hash:$,privateKey:V,to:J="object"}){let{r:Q,s:X,recovery:Y}=L$.sign($.slice(2),V.slice(2),{lowS:!0,extraEntropy:d6(bZ,{strict:!1})?b0(bZ):bZ}),G={r:D1(Q,{size:32}),s:D1(X,{size:32}),v:Y?28n:27n,yParity:Y};return(()=>{if(J==="bytes"||J==="hex")return yY({...G,to:J});return G})()}async function pp($){let{chainId:V,nonce:J,privateKey:Q,to:X="object"}=$,Y=$.contractAddress??$.address,G=await B4({hash:kX({address:Y,chainId:V,nonce:J}),privateKey:Q,to:X});if(X==="object")return{address:Y,chainId:V,nonce:J,...G};return G}async function mp({message:$,privateKey:V}){return await B4({hash:D$($),privateKey:V,to:"hex"})}async function kp($){let{privateKey:V,transaction:J,serializer:Q=K$}=$,X=(()=>{if(J.type==="eip4844")return{...J,sidecars:!1};return J})(),Y=await B4({hash:G0(await Q(X)),privateKey:V});return await Q(J,Y)}async function Ep($){let{privateKey:V,...J}=$;return await B4({hash:zY(J),privateKey:V,to:"hex"})}function gZ($,V={}){let{nonceManager:J}=V,Q=s1(L$.getPublicKey($.slice(2),!1)),X=AX(Q);return{...Ap({address:X,nonceManager:J,async sign({hash:G}){return B4({hash:G,privateKey:$,to:"hex"})},async signAuthorization(G){return pp({...G,privateKey:$})},async signMessage({message:G}){return mp({message:G,privateKey:$})},async signTransaction(G,{serializer:W}={}){return kp({privateKey:$,transaction:G,serializer:W})},async signTypedData(G){return Ep({...G,privateKey:$})}}),publicKey:Q,source:"privateKey"}}var vp="0x0000000000000000000000000000000000008006",hp="0x0000000000000000000000000000000000010000";var k$0=2n**160n;var lZ=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"accountAddress",type:"address"},{indexed:!1,internalType:"enum IContractDeployer.AccountNonceOrdering",name:"nonceOrdering",type:"uint8"}],name:"AccountNonceOrderingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"accountAddress",type:"address"},{indexed:!1,internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"aaVersion",type:"uint8"}],name:"AccountVersionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployerAddress",type:"address"},{indexed:!0,internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"contractAddress",type:"address"}],name:"ContractDeployed",type:"event"},{inputs:[{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"}],name:"create",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"}],name:"create2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"},{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"_aaVersion",type:"uint8"}],name:"create2Account",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"},{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"_aaVersion",type:"uint8"}],name:"createAccount",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"extendedAccountVersion",outputs:[{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_keccak256BytecodeHash",type:"bytes32"}],name:"forceDeployKeccak256",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"newAddress",type:"address"},{internalType:"bool",name:"callConstructor",type:"bool"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"input",type:"bytes"}],internalType:"struct ContractDeployer.ForceDeployment",name:"_deployment",type:"tuple"},{internalType:"address",name:"_sender",type:"address"}],name:"forceDeployOnAddress",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"newAddress",type:"address"},{internalType:"bool",name:"callConstructor",type:"bool"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"input",type:"bytes"}],internalType:"struct ContractDeployer.ForceDeployment[]",name:"_deployments",type:"tuple[]"}],name:"forceDeployOnAddresses",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_address",type:"address"}],name:"getAccountInfo",outputs:[{components:[{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"supportedAAVersion",type:"uint8"},{internalType:"enum IContractDeployer.AccountNonceOrdering",name:"nonceOrdering",type:"uint8"}],internalType:"struct IContractDeployer.AccountInfo",name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_sender",type:"address"},{internalType:"uint256",name:"_senderNonce",type:"uint256"}],name:"getNewAddressCreate",outputs:[{internalType:"address",name:"newAddress",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_sender",type:"address"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"bytes32",name:"_salt",type:"bytes32"},{internalType:"bytes",name:"_input",type:"bytes"}],name:"getNewAddressCreate2",outputs:[{internalType:"address",name:"newAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"enum IContractDeployer.AccountAbstractionVersion",name:"_version",type:"uint8"}],name:"updateAccountVersion",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum IContractDeployer.AccountNonceOrdering",name:"_nonceOrdering",type:"uint8"}],name:"updateNonceOrdering",outputs:[],stateMutability:"nonpayable",type:"function"}];var fZ=1;var uZ="/docs/contract/encodeDeployData";function yp($){let{abi:V,args:J,bytecode:Q,deploymentType:X,salt:Y}=$;if(!J||J.length===0){let{functionName:H,argsContractDeployer:U}=xp(X,Y??wH,s1(LJ(Q)),"0x");return a2({abi:lZ,functionName:H,args:U})}let G=V.find((H)=>("type"in H)&&H.type==="constructor");if(!G)throw new dp({docsPath:uZ});if(!("inputs"in G))throw new aZ({docsPath:uZ});if(!G.inputs||G.inputs.length===0)throw new aZ({docsPath:uZ});let W=z7(G.inputs,J),{functionName:K,argsContractDeployer:D}=xp(X,Y??wH,s1(LJ(Q)),W);return a2({abi:lZ,functionName:K,args:D})}function xp($,V,J,Q){let X=[V,J,Q];return{create:{functionName:"create",argsContractDeployer:X},create2:{functionName:"create2",argsContractDeployer:X},createAccount:{functionName:"createAccount",argsContractDeployer:[...X,fZ]},create2Account:{functionName:"create2Account",argsContractDeployer:[...X,fZ]}}[$||"create"]}function YG($){if(!F4($))throw new MJ;c0($)}async function bp($,V){let{account:J=$.account,chain:Q=$.chain,...X}=V,Y=J?X2(J):$.account;if(!Y)throw new C0({docsPath:"/docs/actions/wallet/signTransaction"});if(YG({account:Y,chain:Q,...V}),!Q?.custom?.getEip712Domain)throw new _1("`getEip712Domain` not found on chain.");if(!Q?.serializers?.transaction)throw new _1("transaction serializer not found on chain.");let G=await K1($,m0,"getChainId")({});if(Q!==null)M4({currentChainId:G,chain:Q});let W=Q?.custom.getEip712Domain({...X,chainId:G,from:Y.address,type:"eip712"}),K=await cY($,{...W,account:Y});return Q?.serializers?.transaction({chainId:G,...X,customSignature:K,type:"eip712"},{r:"0x0",s:"0x0",v:0n})}async function GG($,V){if(F4(V))return bp($,V);return await iY($,V)}async function WG($,V){let{account:J=$.account,chain:Q=$.chain}=V,X=J?X2(J):$.account;if(!X)throw new C0({docsPath:"/docs/actions/wallet/sendTransaction"});try{YG(V);let Y=await w6($,{...V,nonceManager:X.nonceManager,parameters:["gas","nonce","fees"]}),G;if(Q!==null)G=await K1($,m0,"getChainId")({}),M4({currentChainId:G,chain:Q});let W=await GG($,{...Y,chainId:G});return await K1($,k5,"sendRawTransaction")({serializedTransaction:W})}catch(Y){throw U4(Y,{...V,account:X,chain:Q})}}function gp($,V){let{abi:J,args:Q,bytecode:X,deploymentType:Y,salt:G,...W}=V,K=yp({abi:J,args:Q,bytecode:X,deploymentType:Y,salt:G});if(W.factoryDeps=W.factoryDeps||[],!W.factoryDeps.includes(X))W.factoryDeps.push(X);return WG($,{...W,data:K,to:Y==="create2"||Y==="create2Account"?hp:vp})}async function iZ($,V){if(F4(V))return WG($,V);return L4($,V)}function cZ(){return($)=>({sendTransaction:(V)=>iZ($,V),signTransaction:(V)=>GG($,V),deployContract:(V)=>gp($,V),writeContract:(V)=>R8(Object.assign($,{sendTransaction:(J)=>iZ($,J)}),V)})}var J51=1,Q51=2,X51=3,Y51=4,G51=5,W51=6,K51=7,q51=8,D51=9,H51=10,Z51=-32700,U51=-32603,w51=-32602,z51=-32601,j51=-32600,N51=-32019,M51=-32018,L51=-32017,R51=-32016,P51=-32015,O51=-32014,F51=-32013,B51=-32012,S51=-32011,_51=-32010,C51=-32009,I51=-32008,T51=-32007,A51=-32006,p51=-32005,m51=-32004,k51=-32003,E51=-32002,v51=-32001,h51=2800000,x51=2800001,d51=2800002,y51=2800003,b51=2800004,g51=2800005,l51=2800006,f51=2800007,u51=2800008,a51=2800009,i51=2800010,c51=2800011,nZ=3230000,lp=32300001,oZ=3230002,fp=3230003,up=3230004,n51=3610000,o51=3610001,s51=3610002,r51=3610003,t51=3610004,e51=3610005,$71=3610006,V71=3610007,J71=3611000,Q71=3704000,X71=3704001,Y71=3704002,G71=3704003,W71=3704004,K71=4128000,q71=4128001,D71=4128002,H71=4615000,Z71=4615001,U71=4615002,w71=4615003,z71=4615004,j71=4615005,N71=4615006,M71=4615007,L71=4615008,R71=4615009,P71=4615010,O71=4615011,F71=4615012,B71=4615013,S71=4615014,_71=4615015,C71=4615016,I71=4615017,T71=4615018,A71=4615019,p71=4615020,m71=4615021,k71=4615022,E71=4615023,v71=4615024,h71=4615025,x71=4615026,d71=4615027,y71=4615028,b71=4615029,g71=4615030,l71=4615031,f71=4615032,u71=4615033,a71=4615034,i71=4615035,c71=4615036,n71=4615037,o71=4615038,s71=4615039,r71=4615040,t71=4615041,e71=4615042,$31=4615043,V31=4615044,J31=4615045,Q31=4615046,X31=4615047,Y31=4615048,G31=4615049,W31=4615050,K31=4615051,q31=4615052,D31=4615053,H31=4615054,Z31=5508000,U31=5508001,w31=5508002,z31=5508003,j31=5508004,N31=5508005,M31=5508006,L31=5508007,R31=5508008,P31=5508009,O31=5508010,F31=5508011,B31=5607000,S31=5607001,_31=5607002,C31=5607003,I31=5607004,T31=5607005,A31=5607006,p31=5607007,m31=5607008,k31=5607009,E31=5607010,v31=5607011,h31=5607012,x31=5607013,d31=5607014,y31=5607015,b31=5607016,g31=5607017,l31=5663000,f31=5663001,u31=5663002,a31=5663003,i31=5663004,c31=5663005,n31=5663006,o31=5663007,s31=5663008,r31=5663009,t31=5663010,e31=5663011,$$1=5663012,V$1=5663013,J$1=5663014,Q$1=5663015,X$1=5663016,Y$1=5663017,G$1=5663018,W$1=5663019,K$1=5663020,q$1=5663021,D$1=5663022,H$1=7050000,Z$1=7050001,U$1=7050002,w$1=7050003,z$1=7050004,j$1=7050005,N$1=7050006,M$1=7050007,L$1=7050008,R$1=7050009,P$1=7050010,O$1=7050011,F$1=7050012,B$1=7050013,S$1=7050014,_$1=7050015,C$1=7050016,I$1=7050017,T$1=7050018,A$1=7050019,p$1=7050020,m$1=7050021,k$1=7050022,E$1=7050023,v$1=7050024,h$1=7050025,x$1=7050026,d$1=7050027,y$1=7050028,b$1=7050029,g$1=7050030,l$1=7050031,f$1=7050032,u$1=7050033,a$1=7050034,i$1=7050035,c$1=7050036,n$1=7618000,o$1=7618001,s$1=7618002,r$1=7618003,t$1=7618004,e$1=7618005,$V1=7618006,VV1=7618007,JV1=7618008,QV1=7618009,XV1=8078000,YV1=8078001,GV1=8078002,WV1=8078003,KV1=8078004,qV1=8078005,DV1=8078006,HV1=8078007,ZV1=8078008,UV1=8078009,wV1=8078010,zV1=8078011,jV1=8078012,NV1=8078013,MV1=8078014,LV1=8078015,RV1=8078016,PV1=8078017,OV1=8078018,FV1=8078019,BV1=8078020,SV1=8078021,_V1=8078022,CV1=8078023,IV1=8100000,TV1=8100001,AV1=8100002,pV1=8100003,mV1=8190000,kV1=8190001,EV1=8190002,vV1=8190003,hV1=8190004,xV1=9900000,dV1=9900001,yV1=9900002,bV1=9900003,gV1=9900004,lV1=9900005,fV1=9900006;var uV1={[nZ]:"Account not found at address: $address",[up]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[fp]:"Expected decoded account at address: $address",[oZ]:"Failed to decode account data at address: $address",[lp]:"Accounts not found at addresses: $addresses",[a51]:"Unable to find a viable program address bump seed.",[d51]:"$putativeAddress is not a base58-encoded address.",[h51]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[y51]:"The `CryptoKey` must be an `Ed25519` public key.",[c51]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[u51]:"Invalid seeds; point must fall off the Ed25519 curve.",[b51]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[l51]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[f51]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[g51]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[i51]:"Program address cannot end with PDA marker.",[x51]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Y51]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[J51]:"The network has progressed past the last block for which this transaction could have been committed.",[XV1]:"Codec [$codecDescription] cannot decode empty byte arrays.",[_V1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[BV1]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[qV1]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[DV1]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[KV1]:"Encoder and decoder must either both be fixed-size or variable-size.",[ZV1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[GV1]:"Expected a fixed-size codec, got a variable-size one.",[NV1]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[WV1]:"Expected a variable-size codec, got a fixed-size one.",[FV1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[YV1]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[OV1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[UV1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[wV1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[LV1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[HV1]:"Expected [$codecDescription] to have $expected items, got $actual.",[jV1]:"Invalid value $value for base $base with alphabet $alphabet.",[RV1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[zV1]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[MV1]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[SV1]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[PV1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[CV1]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[J71]:"No random values implementation could be found.",[R71]:"instruction requires an uninitialized account",[E71]:"instruction tries to borrow reference for an account which is already borrowed",[v71]:"instruction left account with an outstanding borrowed reference",[m71]:"program other than the account's owner changed the size of the account data",[j71]:"account data too small for instruction",[k71]:"instruction expected an executable account",[Q31]:"An account does not have enough lamports to be rent-exempt",[Y31]:"Program arithmetic overflowed",[J31]:"Failed to serialize or deserialize account data: $encodedData",[H31]:"Builtin programs must consume compute units",[f71]:"Cross-program invocation call depth too deep",[o71]:"Computational budget exceeded",[x71]:"custom program error: #$code",[I71]:"instruction contains duplicate accounts",[h71]:"instruction modifications of multiply-passed account differ",[g71]:"executable accounts must be rent exempt",[y71]:"instruction changed executable accounts data",[b71]:"instruction changed the balance of an executable account",[T71]:"instruction changed executable bit of an account",[S71]:"instruction modified data of an account it does not own",[B71]:"instruction spent from the balance of an account it does not own",[Z71]:"generic instruction error",[W31]:"Provided owner is not allowed",[$31]:"Account is immutable",[V31]:"Incorrect authority provided",[M71]:"incorrect program id for instruction",[N71]:"insufficient funds for instruction",[z71]:"invalid account data for instruction",[X31]:"Invalid account owner",[U71]:"invalid program argument",[d71]:"program returned invalid error code",[w71]:"invalid instruction data",[n71]:"Failed to reallocate account data",[c71]:"Provided seeds do not result in a valid address",[K31]:"Accounts data allocations exceeded the maximum allowed per transaction",[q31]:"Max accounts exceeded",[D31]:"Max instruction trace length exceeded",[i71]:"Length of the seed is too long for address generation",[u71]:"An account required by the instruction is missing",[L71]:"missing required signature for instruction",[F71]:"instruction illegally modified the program id of an account",[p71]:"insufficient account keys for instruction",[s71]:"Cross-program invocation with unauthorized signer or writable account",[r71]:"Failed to create program execution environment",[e71]:"Program failed to compile",[t71]:"Program failed to complete",[C71]:"instruction modified data of a read-only account",[_71]:"instruction changed the balance of a read-only account",[a71]:"Cross-program invocation reentrancy not allowed for this instruction",[A71]:"instruction modified rent epoch of an account",[O71]:"sum of account balances before and after instruction do not match",[P71]:"instruction requires an initialized account",[H71]:"",[l71]:"Unsupported program id",[G31]:"Unsupported sysvar",[lV1]:"Invalid instruction plan kind: $kind.",[s$1]:"The provided instruction plan is empty.",[e$1]:"No failed transaction plan result was found in the provided transaction plan result.",[t$1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[r$1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[n$1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[fV1]:"Invalid transaction plan kind: $kind.",[o$1]:"No more instructions to pack; the message packer has completed the instruction plan.",[$V1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[VV1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[JV1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[QV1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[K71]:"The instruction does not have any accounts.",[q71]:"The instruction does not have any data.",[D71]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[G51]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Q51]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[yV1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[gV1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[dV1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[xV1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[bV1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[U51]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[w51]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[j51]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[z51]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Z51]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[B51]:"$__serverMessage",[v51]:"$__serverMessage",[m51]:"$__serverMessage",[O51]:"$__serverMessage",[L51]:"Epoch rewards period still active at slot $slot",[_51]:"$__serverMessage",[C51]:"$__serverMessage",[N51]:"Failed to query long-term storage; please try again",[R51]:"Minimum context slot has not been reached",[p51]:"Node is unhealthy; behind by $numSlotsBehind slots",[I51]:"No snapshot",[E51]:"Transaction simulation failed",[M51]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[T51]:"$__serverMessage",[S51]:"Transaction history is not available from this node",[A51]:"$__serverMessage",[F51]:"Transaction signature length mismatch",[k51]:"Transaction signature verification failure",[P51]:"$__serverMessage",[Q71]:"Key pair bytes must be of length 64, got $byteLength.",[X71]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Y71]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[W71]:"The provided private key does not match the provided public key.",[G71]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[W51]:"Lamports value must be in the range [0, 2e64-1]",[K51]:"`$value` cannot be parsed as a `BigInt`",[H51]:"$message",[q51]:"`$value` cannot be parsed as a `Number`",[X51]:"No nonce account could be found at address `$nonceAccountAddress`",[C31]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[x31]:"Attempted to sign an offchain message with an address that is not a signer for it",[_31]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[h31]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[B31]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[p31]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[m31]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[k31]:"Offchain message content must be non-empty",[T31]:"Offchain message must specify the address of at least one required signer",[E31]:"Offchain message envelope must reserve space for at least one signature",[I31]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[y31]:"The signatories of this offchain message must be listed in lexicographical order",[b31]:"An address must be listed no more than once among the signatories of an offchain message",[v31]:"Offchain message is missing signatures for addresses: $addresses.",[g31]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[S31]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[d31]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[A31]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[mV1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[EV1]:"WebSocket was closed before payload could be added to the send buffer",[vV1]:"WebSocket connection closed",[hV1]:"WebSocket failed to connect",[kV1]:"Failed to obtain a subscription id from the server",[pV1]:"Could not find an API plan for RPC method: `$method`",[IV1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[AV1]:"HTTP error ($statusCode): $message",[TV1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Z31]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[U31]:"The provided value does not implement the `KeyPairSigner` interface",[z31]:"The provided value does not implement the `MessageModifyingSigner` interface",[j31]:"The provided value does not implement the `MessagePartialSigner` interface",[w31]:"The provided value does not implement any of the `MessageSigner` interfaces",[M31]:"The provided value does not implement the `TransactionModifyingSigner` interface",[L31]:"The provided value does not implement the `TransactionPartialSigner` interface",[R31]:"The provided value does not implement the `TransactionSendingSigner` interface",[N31]:"The provided value does not implement any of the `TransactionSigner` interfaces",[P31]:"More than one `TransactionSendingSigner` was identified.",[O31]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[F31]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[V71]:"Cannot export a non-extractable key.",[o51]:"No digest implementation could be found.",[n51]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[s51]:`This runtime does not support the generation of Ed25519 key pairs.
33
+
34
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
35
+
36
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[r51]:"No signature verification implementation could be found.",[t51]:"No key generation implementation could be found.",[e51]:"No signing implementation could be found.",[$71]:"No key export implementation could be found.",[D51]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[C$1]:"Transaction processing left an account with an outstanding borrowed reference",[Z$1]:"Account in use",[U$1]:"Account loaded twice",[w$1]:"Attempt to debit an account but found no record of a prior credit.",[E$1]:"Transaction loads an address table account that doesn't exist",[M$1]:"This transaction has already been processed",[L$1]:"Blockhash not found",[R$1]:"Loader call chain is too deep",[_$1]:"Transactions are currently disabled due to cluster maintenance",[g$1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[j$1]:"Insufficient funds for fee",[l$1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[N$1]:"This account may not be used to pay transaction fees",[O$1]:"Transaction contains an invalid account reference",[h$1]:"Transaction loads an address table account with invalid data",[x$1]:"Transaction address table lookup uses an invalid index",[v$1]:"Transaction loads an address table account with an invalid owner",[u$1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[B$1]:"This program may not be used for executing instructions",[d$1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[A$1]:"Transaction loads a writable account that cannot be written",[f$1]:"Transaction exceeded max loaded accounts data size cap",[P$1]:"Transaction requires a fee but has no signature present",[z$1]:"Attempt to load a program that does not exist",[i$1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[a$1]:"ResanitizationNeeded",[S$1]:"Transaction failed to sanitize accounts offsets correctly",[F$1]:"Transaction did not pass signature verification",[k$1]:"Transaction locked too many accounts",[c$1]:"Sum of account balances before and after transaction do not match",[H$1]:"The transaction failed with the error `$errorName`",[T$1]:"Transaction version is unsupported",[m$1]:"Transaction would exceed account data limit within the block",[b$1]:"Transaction would exceed total account data limit",[p$1]:"Transaction would exceed max account limit within the block",[I$1]:"Transaction would exceed max Block Cost Limit",[y$1]:"Transaction would exceed max Vote Cost Limit",[Q$1]:"Attempted to sign a transaction with an address that is not a signer for it",[t31]:"Transaction is missing an address at index: $index.",[X$1]:"Transaction has no expected signers therefore it cannot be encoded",[K$1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[u31]:"Transaction does not have a blockhash lifetime",[a31]:"Transaction is not a durable nonce transaction",[c31]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[n31]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[s31]:"No fee payer set in CompiledTransaction",[o31]:"Could not find program address at index $index",[G$1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[W$1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[e31]:"Transaction is missing a fee payer.",[$$1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[J$1]:"Transaction first instruction is not advance nonce account instruction.",[V$1]:"Transaction with no instructions cannot be durable nonce transaction.",[l31]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[f31]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Y$1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[r31]:"Transaction is missing signatures for addresses: $addresses.",[i31]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[q$1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[D$1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},_8="i",S4="t";function aV1($,V={}){let J=uV1[$];if(J.length===0)return"";let Q;function X(G){if(Q[S4]===2){let W=J.slice(Q[_8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[S4]===1)Y.push(J.slice(Q[_8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[_8]:0,[S4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[S4]){case 0:K={[_8]:W,[S4]:1};break;case 1:if(G==="\\")K={[_8]:W,[S4]:0};else if(G==="$")K={[_8]:W,[S4]:2};break;case 2:if(G==="\\")K={[_8]:W,[S4]:0};else if(G==="$")K={[_8]:W,[S4]:2};else if(!G.match(/\w/))K={[_8]:W,[S4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function iV1($,V={}){return aV1($,V)}var sZ=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=iV1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};var cV1=1,nV1=2,oV1=3,sV1=4,rV1=5,tV1=6,eV1=7,$J1=8,VJ1=9,JJ1=10,QJ1=-32700,XJ1=-32603,YJ1=-32602,GJ1=-32601,WJ1=-32600,KJ1=-32019,qJ1=-32018,DJ1=-32017,HJ1=-32016,ZJ1=-32015,UJ1=-32014,wJ1=-32013,zJ1=-32012,jJ1=-32011,NJ1=-32010,MJ1=-32009,LJ1=-32008,RJ1=-32007,PJ1=-32006,OJ1=-32005,FJ1=-32004,BJ1=-32003,SJ1=-32002,_J1=-32001,CJ1=2800000,IJ1=2800001,TJ1=2800002,AJ1=2800003,pJ1=2800004,mJ1=2800005,kJ1=2800006,EJ1=2800007,vJ1=2800008,hJ1=2800009,xJ1=2800010,dJ1=2800011,yJ1=3230000,bJ1=32300001,gJ1=3230002,lJ1=3230003,fJ1=3230004,uJ1=3610000,aJ1=3610001,iJ1=3610002,cJ1=3610003,nJ1=3610004,oJ1=3610005,sJ1=3610006,rJ1=3610007,tJ1=3611000,eJ1=3704000,$Q1=3704001,VQ1=3704002,JQ1=3704003,QQ1=3704004,XQ1=4128000,YQ1=4128001,GQ1=4128002,WQ1=4615000,KQ1=4615001,qQ1=4615002,DQ1=4615003,HQ1=4615004,ZQ1=4615005,UQ1=4615006,wQ1=4615007,zQ1=4615008,jQ1=4615009,NQ1=4615010,MQ1=4615011,LQ1=4615012,RQ1=4615013,PQ1=4615014,OQ1=4615015,FQ1=4615016,BQ1=4615017,SQ1=4615018,_Q1=4615019,CQ1=4615020,IQ1=4615021,TQ1=4615022,AQ1=4615023,pQ1=4615024,mQ1=4615025,kQ1=4615026,EQ1=4615027,vQ1=4615028,hQ1=4615029,xQ1=4615030,dQ1=4615031,yQ1=4615032,bQ1=4615033,gQ1=4615034,lQ1=4615035,fQ1=4615036,uQ1=4615037,aQ1=4615038,iQ1=4615039,cQ1=4615040,nQ1=4615041,oQ1=4615042,sQ1=4615043,rQ1=4615044,tQ1=4615045,eQ1=4615046,$X1=4615047,VX1=4615048,JX1=4615049,QX1=4615050,XX1=4615051,YX1=4615052,GX1=4615053,WX1=4615054,KX1=5508000,qX1=5508001,DX1=5508002,HX1=5508003,ZX1=5508004,UX1=5508005,wX1=5508006,zX1=5508007,jX1=5508008,NX1=5508009,MX1=5508010,LX1=5508011,RX1=5607000,PX1=5607001,OX1=5607002,FX1=5607003,BX1=5607004,SX1=5607005,_X1=5607006,CX1=5607007,IX1=5607008,TX1=5607009,AX1=5607010,pX1=5607011,mX1=5607012,kX1=5607013,EX1=5607014,vX1=5607015,hX1=5607016,xX1=5607017,dX1=5663000,yX1=5663001,bX1=5663002,gX1=5663003,lX1=5663004,fX1=5663005,uX1=5663006,aX1=5663007,iX1=5663008,cX1=5663009,nX1=5663010,oX1=5663011,sX1=5663012,rX1=5663013,tX1=5663014,eX1=5663015,$Y1=5663016,VY1=5663017,JY1=5663018,QY1=5663019,XY1=5663020,YY1=5663021,GY1=5663022,WY1=7050000,KY1=7050001,qY1=7050002,DY1=7050003,HY1=7050004,ZY1=7050005,UY1=7050006,wY1=7050007,zY1=7050008,jY1=7050009,NY1=7050010,MY1=7050011,LY1=7050012,RY1=7050013,PY1=7050014,OY1=7050015,FY1=7050016,BY1=7050017,SY1=7050018,_Y1=7050019,CY1=7050020,IY1=7050021,TY1=7050022,AY1=7050023,pY1=7050024,mY1=7050025,kY1=7050026,EY1=7050027,vY1=7050028,hY1=7050029,xY1=7050030,dY1=7050031,yY1=7050032,bY1=7050033,gY1=7050034,lY1=7050035,fY1=7050036,uY1=7618000,aY1=7618001,iY1=7618002,cY1=7618003,nY1=7618004,oY1=7618005,sY1=7618006,rY1=7618007,tY1=7618008,eY1=7618009,$G1=8078000,VG1=8078001,JG1=8078002,QG1=8078003,XG1=8078004,YG1=8078005,GG1=8078006,WG1=8078007,KG1=8078008,qG1=8078009,DG1=8078010,HG1=8078011,rZ=8078012,ZG1=8078013,UG1=8078014,wG1=8078015,zG1=8078016,jG1=8078017,NG1=8078018,MG1=8078019,LG1=8078020,RG1=8078021,PG1=8078022,OG1=8078023,FG1=8100000,BG1=8100001,SG1=8100002,_G1=8100003,CG1=8190000,IG1=8190001,TG1=8190002,AG1=8190003,pG1=8190004,mG1=9900000,kG1=9900001,EG1=9900002,vG1=9900003,hG1=9900004,xG1=9900005,dG1=9900006;var yG1={[yJ1]:"Account not found at address: $address",[fJ1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[lJ1]:"Expected decoded account at address: $address",[gJ1]:"Failed to decode account data at address: $address",[bJ1]:"Accounts not found at addresses: $addresses",[hJ1]:"Unable to find a viable program address bump seed.",[TJ1]:"$putativeAddress is not a base58-encoded address.",[CJ1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[AJ1]:"The `CryptoKey` must be an `Ed25519` public key.",[dJ1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[vJ1]:"Invalid seeds; point must fall off the Ed25519 curve.",[pJ1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[kJ1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[EJ1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[mJ1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[xJ1]:"Program address cannot end with PDA marker.",[IJ1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[sV1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[cV1]:"The network has progressed past the last block for which this transaction could have been committed.",[$G1]:"Codec [$codecDescription] cannot decode empty byte arrays.",[PG1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[LG1]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[YG1]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[GG1]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[XG1]:"Encoder and decoder must either both be fixed-size or variable-size.",[KG1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[JG1]:"Expected a fixed-size codec, got a variable-size one.",[ZG1]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[QG1]:"Expected a variable-size codec, got a fixed-size one.",[MG1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[VG1]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[NG1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[qG1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[DG1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[wG1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[WG1]:"Expected [$codecDescription] to have $expected items, got $actual.",[rZ]:"Invalid value $value for base $base with alphabet $alphabet.",[zG1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[HG1]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[UG1]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[RG1]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[jG1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[OG1]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[tJ1]:"No random values implementation could be found.",[jQ1]:"instruction requires an uninitialized account",[AQ1]:"instruction tries to borrow reference for an account which is already borrowed",[pQ1]:"instruction left account with an outstanding borrowed reference",[IQ1]:"program other than the account's owner changed the size of the account data",[ZQ1]:"account data too small for instruction",[TQ1]:"instruction expected an executable account",[eQ1]:"An account does not have enough lamports to be rent-exempt",[VX1]:"Program arithmetic overflowed",[tQ1]:"Failed to serialize or deserialize account data: $encodedData",[WX1]:"Builtin programs must consume compute units",[yQ1]:"Cross-program invocation call depth too deep",[aQ1]:"Computational budget exceeded",[kQ1]:"custom program error: #$code",[BQ1]:"instruction contains duplicate accounts",[mQ1]:"instruction modifications of multiply-passed account differ",[xQ1]:"executable accounts must be rent exempt",[vQ1]:"instruction changed executable accounts data",[hQ1]:"instruction changed the balance of an executable account",[SQ1]:"instruction changed executable bit of an account",[PQ1]:"instruction modified data of an account it does not own",[RQ1]:"instruction spent from the balance of an account it does not own",[KQ1]:"generic instruction error",[QX1]:"Provided owner is not allowed",[sQ1]:"Account is immutable",[rQ1]:"Incorrect authority provided",[wQ1]:"incorrect program id for instruction",[UQ1]:"insufficient funds for instruction",[HQ1]:"invalid account data for instruction",[$X1]:"Invalid account owner",[qQ1]:"invalid program argument",[EQ1]:"program returned invalid error code",[DQ1]:"invalid instruction data",[uQ1]:"Failed to reallocate account data",[fQ1]:"Provided seeds do not result in a valid address",[XX1]:"Accounts data allocations exceeded the maximum allowed per transaction",[YX1]:"Max accounts exceeded",[GX1]:"Max instruction trace length exceeded",[lQ1]:"Length of the seed is too long for address generation",[bQ1]:"An account required by the instruction is missing",[zQ1]:"missing required signature for instruction",[LQ1]:"instruction illegally modified the program id of an account",[CQ1]:"insufficient account keys for instruction",[iQ1]:"Cross-program invocation with unauthorized signer or writable account",[cQ1]:"Failed to create program execution environment",[oQ1]:"Program failed to compile",[nQ1]:"Program failed to complete",[FQ1]:"instruction modified data of a read-only account",[OQ1]:"instruction changed the balance of a read-only account",[gQ1]:"Cross-program invocation reentrancy not allowed for this instruction",[_Q1]:"instruction modified rent epoch of an account",[MQ1]:"sum of account balances before and after instruction do not match",[NQ1]:"instruction requires an initialized account",[WQ1]:"",[dQ1]:"Unsupported program id",[JX1]:"Unsupported sysvar",[xG1]:"Invalid instruction plan kind: $kind.",[iY1]:"The provided instruction plan is empty.",[oY1]:"No failed transaction plan result was found in the provided transaction plan result.",[nY1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[cY1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[uY1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[dG1]:"Invalid transaction plan kind: $kind.",[aY1]:"No more instructions to pack; the message packer has completed the instruction plan.",[sY1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[rY1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[tY1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[eY1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[XQ1]:"The instruction does not have any accounts.",[YQ1]:"The instruction does not have any data.",[GQ1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[rV1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[nV1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[EG1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[hG1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[kG1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[mG1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[vG1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[XJ1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[YJ1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[WJ1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[GJ1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[QJ1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[zJ1]:"$__serverMessage",[_J1]:"$__serverMessage",[FJ1]:"$__serverMessage",[UJ1]:"$__serverMessage",[DJ1]:"Epoch rewards period still active at slot $slot",[NJ1]:"$__serverMessage",[MJ1]:"$__serverMessage",[KJ1]:"Failed to query long-term storage; please try again",[HJ1]:"Minimum context slot has not been reached",[OJ1]:"Node is unhealthy; behind by $numSlotsBehind slots",[LJ1]:"No snapshot",[SJ1]:"Transaction simulation failed",[qJ1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[RJ1]:"$__serverMessage",[jJ1]:"Transaction history is not available from this node",[PJ1]:"$__serverMessage",[wJ1]:"Transaction signature length mismatch",[BJ1]:"Transaction signature verification failure",[ZJ1]:"$__serverMessage",[eJ1]:"Key pair bytes must be of length 64, got $byteLength.",[$Q1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[VQ1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[QQ1]:"The provided private key does not match the provided public key.",[JQ1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[tV1]:"Lamports value must be in the range [0, 2e64-1]",[eV1]:"`$value` cannot be parsed as a `BigInt`",[JJ1]:"$message",[$J1]:"`$value` cannot be parsed as a `Number`",[oV1]:"No nonce account could be found at address `$nonceAccountAddress`",[FX1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[kX1]:"Attempted to sign an offchain message with an address that is not a signer for it",[OX1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[mX1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[RX1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[CX1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[IX1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[TX1]:"Offchain message content must be non-empty",[SX1]:"Offchain message must specify the address of at least one required signer",[AX1]:"Offchain message envelope must reserve space for at least one signature",[BX1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[vX1]:"The signatories of this offchain message must be listed in lexicographical order",[hX1]:"An address must be listed no more than once among the signatories of an offchain message",[pX1]:"Offchain message is missing signatures for addresses: $addresses.",[xX1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[PX1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[EX1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[_X1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[CG1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[TG1]:"WebSocket was closed before payload could be added to the send buffer",[AG1]:"WebSocket connection closed",[pG1]:"WebSocket failed to connect",[IG1]:"Failed to obtain a subscription id from the server",[_G1]:"Could not find an API plan for RPC method: `$method`",[FG1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[SG1]:"HTTP error ($statusCode): $message",[BG1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[KX1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[qX1]:"The provided value does not implement the `KeyPairSigner` interface",[HX1]:"The provided value does not implement the `MessageModifyingSigner` interface",[ZX1]:"The provided value does not implement the `MessagePartialSigner` interface",[DX1]:"The provided value does not implement any of the `MessageSigner` interfaces",[wX1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[zX1]:"The provided value does not implement the `TransactionPartialSigner` interface",[jX1]:"The provided value does not implement the `TransactionSendingSigner` interface",[UX1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[NX1]:"More than one `TransactionSendingSigner` was identified.",[MX1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[LX1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[rJ1]:"Cannot export a non-extractable key.",[aJ1]:"No digest implementation could be found.",[uJ1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[iJ1]:`This runtime does not support the generation of Ed25519 key pairs.
37
+
38
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
39
+
40
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[cJ1]:"No signature verification implementation could be found.",[nJ1]:"No key generation implementation could be found.",[oJ1]:"No signing implementation could be found.",[sJ1]:"No key export implementation could be found.",[VJ1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[FY1]:"Transaction processing left an account with an outstanding borrowed reference",[KY1]:"Account in use",[qY1]:"Account loaded twice",[DY1]:"Attempt to debit an account but found no record of a prior credit.",[AY1]:"Transaction loads an address table account that doesn't exist",[wY1]:"This transaction has already been processed",[zY1]:"Blockhash not found",[jY1]:"Loader call chain is too deep",[OY1]:"Transactions are currently disabled due to cluster maintenance",[xY1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[ZY1]:"Insufficient funds for fee",[dY1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[UY1]:"This account may not be used to pay transaction fees",[MY1]:"Transaction contains an invalid account reference",[mY1]:"Transaction loads an address table account with invalid data",[kY1]:"Transaction address table lookup uses an invalid index",[pY1]:"Transaction loads an address table account with an invalid owner",[bY1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[RY1]:"This program may not be used for executing instructions",[EY1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[_Y1]:"Transaction loads a writable account that cannot be written",[yY1]:"Transaction exceeded max loaded accounts data size cap",[NY1]:"Transaction requires a fee but has no signature present",[HY1]:"Attempt to load a program that does not exist",[lY1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[gY1]:"ResanitizationNeeded",[PY1]:"Transaction failed to sanitize accounts offsets correctly",[LY1]:"Transaction did not pass signature verification",[TY1]:"Transaction locked too many accounts",[fY1]:"Sum of account balances before and after transaction do not match",[WY1]:"The transaction failed with the error `$errorName`",[SY1]:"Transaction version is unsupported",[IY1]:"Transaction would exceed account data limit within the block",[hY1]:"Transaction would exceed total account data limit",[CY1]:"Transaction would exceed max account limit within the block",[BY1]:"Transaction would exceed max Block Cost Limit",[vY1]:"Transaction would exceed max Vote Cost Limit",[eX1]:"Attempted to sign a transaction with an address that is not a signer for it",[nX1]:"Transaction is missing an address at index: $index.",[$Y1]:"Transaction has no expected signers therefore it cannot be encoded",[XY1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[bX1]:"Transaction does not have a blockhash lifetime",[gX1]:"Transaction is not a durable nonce transaction",[fX1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[uX1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[iX1]:"No fee payer set in CompiledTransaction",[aX1]:"Could not find program address at index $index",[JY1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[QY1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[oX1]:"Transaction is missing a fee payer.",[sX1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[tX1]:"Transaction first instruction is not advance nonce account instruction.",[rX1]:"Transaction with no instructions cannot be durable nonce transaction.",[dX1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[yX1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[VY1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[cX1]:"Transaction is missing signatures for addresses: $addresses.",[lX1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[YY1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[GY1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},C8="i",_4="t";function bG1($,V={}){let J=yG1[$];if(J.length===0)return"";let Q;function X(G){if(Q[_4]===2){let W=J.slice(Q[C8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[_4]===1)Y.push(J.slice(Q[C8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[C8]:0,[_4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[_4]){case 0:K={[C8]:W,[_4]:1};break;case 1:if(G==="\\")K={[C8]:W,[_4]:0};else if(G==="$")K={[C8]:W,[_4]:2};break;case 2:if(G==="\\")K={[C8]:W,[_4]:0};else if(G==="$")K={[C8]:W,[_4]:2};else if(!G.match(/\w/))K={[C8]:W,[_4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function gG1($,V={}){return bG1($,V)}var ap=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=gG1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function lG1($,V){return"fixedSize"in V?V.fixedSize:V.getSizeFromValue($)}function tZ($){return Object.freeze({...$,encode:(V)=>{let J=new Uint8Array(lG1(V,$));return $.write(V,J,0),J}})}function KG($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function ip($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength,Y;if(typeof SharedArrayBuffer>"u")Y=$.buffer;else if($.buffer instanceof SharedArrayBuffer)Y=new ArrayBuffer($.length),new Uint8Array(Y).set(new Uint8Array($));else Y=$.buffer;return(Q===0||Q===-$.byteLength)&&X===$.byteLength?Y:Y.slice(Q,Q+X)}function op($,V,J=V){if(!V.match(new RegExp(`^[${$}]*$`)))throw new ap(rZ,{alphabet:$,base:$.length,value:J})}var fG1=($)=>{return tZ({getSizeFromValue:(V)=>{let[J,Q]=cp(V,$[0]);if(!Q)return V.length;let X=np(Q,$);return J.length+Math.ceil(X.toString(16).length/2)},write(V,J,Q){if(op($,V),V==="")return Q;let[X,Y]=cp(V,$[0]);if(!Y)return J.set(new Uint8Array(X.length).fill(0),Q),Q+X.length;let G=np(Y,$),W=[];while(G>0n)W.unshift(Number(G%256n)),G/=256n;let K=[...Array(X.length).fill(0),...W];return J.set(K,Q),Q+K.length}})},uG1=($)=>{return KG({read(V,J){let Q=J===0?V:V.slice(J);if(Q.length===0)return["",0];let X=Q.findIndex((K)=>K!==0);X=X===-1?Q.length:X;let Y=$[0].repeat(X);if(X===Q.length)return[Y,V.length];let G=Q.slice(X).reduce((K,D)=>K*256n+BigInt(D),0n),W=aG1(G,$);return[Y+W,V.length]}})};function cp($,V){let[J,Q]=$.split(new RegExp(`((?!${V}).*)`));return[J,Q]}function np($,V){let J=BigInt(V.length),Q=0n;for(let X of $)Q*=J,Q+=BigInt(V.indexOf(X));return Q}function aG1($,V){let J=BigInt(V.length),Q=[];while($>0n)Q.unshift(V[Number($%J)]),$/=J;return Q.join("")}var sp="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",eZ=()=>fG1(sp),$U=()=>uG1(sp);var iG1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qG=()=>{return tZ({getSizeFromValue:($)=>Buffer.from($,"base64").length,write($,V,J){op(iG1,$.replace(/=/g,""));let Q=Buffer.from($,"base64");return V.set(Q,J),Q.length+J}})},rp=()=>{return KG({read:($,V=0)=>[Buffer.from(ip($),V).toString("base64"),$.length]})};var cG1=($)=>$.replace(/\u0000/g,"");var{TextDecoder:nG1,TextEncoder:fV0}=globalThis;var F$=()=>{let $;return KG({read(V,J){let Q=($||=new nG1).decode(V.slice(J));return[cG1(Q),V.length]}})};function tp($,V){try{if("exists"in $&&!$.exists)return $;return Object.freeze({...$,data:V.decode($.data)})}catch{throw new sZ(oZ,{address:$.address})}}function oG1($,V){if(!V)return Object.freeze({address:$,exists:!1});let J=qG().encode(V.data[0]);return Object.freeze({...sG1(V),address:$,data:J,exists:!0})}function sG1($){return Object.freeze({executable:$.executable,lamports:$.lamports,programAddress:$.owner,space:$.space})}async function ep($,V,J={}){let{abortSignal:Q,...X}=J,Y=await $.getAccountInfo(V,{...X,encoding:"base64"}).send({abortSignal:Q});return oG1(V,Y.value)}function $m($){if(!$.exists)throw new sZ(nZ,{address:$.address})}var rG1=1,tG1=2,eG1=3,$W1=4,VW1=5,JW1=6,QW1=7,XW1=8,YW1=9,GW1=10,WW1=-32700,KW1=-32603,qW1=-32602,DW1=-32601,HW1=-32600,ZW1=-32019,UW1=-32018,wW1=-32017,zW1=-32016,jW1=-32015,NW1=-32014,MW1=-32013,LW1=-32012,RW1=-32011,PW1=-32010,OW1=-32009,FW1=-32008,BW1=-32007,SW1=-32006,_W1=-32005,CW1=-32004,IW1=-32003,TW1=-32002,AW1=-32001,VU=2800000,JU=2800001,pW1=2800002,QU=2800003,Vm=2800004,Jm=2800005,XU=2800006,YU=2800007,DG=2800008,GU=2800009,Qm=2800010,Xm=2800011,mW1=3230000,kW1=32300001,EW1=3230002,vW1=3230003,hW1=3230004,xW1=3610000,dW1=3610001,yW1=3610002,bW1=3610003,gW1=3610004,lW1=3610005,fW1=3610006,uW1=3610007,aW1=3611000,iW1=3704000,cW1=3704001,nW1=3704002,oW1=3704003,sW1=3704004,rW1=4128000,tW1=4128001,eW1=4128002,$K1=4615000,VK1=4615001,JK1=4615002,QK1=4615003,XK1=4615004,YK1=4615005,GK1=4615006,WK1=4615007,KK1=4615008,qK1=4615009,DK1=4615010,HK1=4615011,ZK1=4615012,UK1=4615013,wK1=4615014,zK1=4615015,jK1=4615016,NK1=4615017,MK1=4615018,LK1=4615019,RK1=4615020,PK1=4615021,OK1=4615022,FK1=4615023,BK1=4615024,SK1=4615025,_K1=4615026,CK1=4615027,IK1=4615028,TK1=4615029,AK1=4615030,pK1=4615031,mK1=4615032,kK1=4615033,EK1=4615034,vK1=4615035,hK1=4615036,xK1=4615037,dK1=4615038,yK1=4615039,bK1=4615040,gK1=4615041,lK1=4615042,fK1=4615043,uK1=4615044,aK1=4615045,iK1=4615046,cK1=4615047,nK1=4615048,oK1=4615049,sK1=4615050,rK1=4615051,tK1=4615052,eK1=4615053,$q1=4615054,Vq1=5508000,Jq1=5508001,Qq1=5508002,Xq1=5508003,Yq1=5508004,Gq1=5508005,Wq1=5508006,Kq1=5508007,qq1=5508008,Dq1=5508009,Hq1=5508010,Zq1=5508011,Uq1=5607000,wq1=5607001,zq1=5607002,jq1=5607003,Nq1=5607004,Mq1=5607005,Lq1=5607006,Rq1=5607007,Pq1=5607008,Oq1=5607009,Fq1=5607010,Bq1=5607011,Sq1=5607012,_q1=5607013,Cq1=5607014,Iq1=5607015,Tq1=5607016,Aq1=5607017,pq1=5663000,mq1=5663001,kq1=5663002,Eq1=5663003,vq1=5663004,hq1=5663005,xq1=5663006,dq1=5663007,yq1=5663008,bq1=5663009,gq1=5663010,lq1=5663011,fq1=5663012,uq1=5663013,aq1=5663014,iq1=5663015,cq1=5663016,nq1=5663017,oq1=5663018,sq1=5663019,rq1=5663020,tq1=5663021,eq1=5663022,$D1=7050000,VD1=7050001,JD1=7050002,QD1=7050003,XD1=7050004,YD1=7050005,GD1=7050006,WD1=7050007,KD1=7050008,qD1=7050009,DD1=7050010,HD1=7050011,ZD1=7050012,UD1=7050013,wD1=7050014,zD1=7050015,jD1=7050016,ND1=7050017,MD1=7050018,LD1=7050019,RD1=7050020,PD1=7050021,OD1=7050022,FD1=7050023,BD1=7050024,SD1=7050025,_D1=7050026,CD1=7050027,ID1=7050028,TD1=7050029,AD1=7050030,pD1=7050031,mD1=7050032,kD1=7050033,ED1=7050034,vD1=7050035,hD1=7050036,xD1=7618000,dD1=7618001,yD1=7618002,bD1=7618003,gD1=7618004,lD1=7618005,fD1=7618006,uD1=7618007,aD1=7618008,iD1=7618009,Ym=8078000,WU=8078001,Gm=8078002,Wm=8078003,KU=8078004,qU=8078005,DU=8078006,cD1=8078007,nD1=8078008,oD1=8078009,sD1=8078010,rD1=8078011,tD1=8078012,Km=8078013,qm=8078014,eD1=8078015,$H1=8078016,VH1=8078017,JH1=8078018,QH1=8078019,Dm=8078020,Hm=8078021,XH1=8078022,Zm=8078023,YH1=8100000,GH1=8100001,WH1=8100002,KH1=8100003,qH1=8190000,DH1=8190001,HH1=8190002,ZH1=8190003,UH1=8190004,wH1=9900000,zH1=9900001,jH1=9900002,NH1=9900003,MH1=9900004,LH1=9900005,RH1=9900006;var PH1={[mW1]:"Account not found at address: $address",[hW1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[vW1]:"Expected decoded account at address: $address",[EW1]:"Failed to decode account data at address: $address",[kW1]:"Accounts not found at addresses: $addresses",[GU]:"Unable to find a viable program address bump seed.",[pW1]:"$putativeAddress is not a base58-encoded address.",[VU]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[QU]:"The `CryptoKey` must be an `Ed25519` public key.",[Xm]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[DG]:"Invalid seeds; point must fall off the Ed25519 curve.",[Vm]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[XU]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[YU]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Jm]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Qm]:"Program address cannot end with PDA marker.",[JU]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[$W1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[rG1]:"The network has progressed past the last block for which this transaction could have been committed.",[Ym]:"Codec [$codecDescription] cannot decode empty byte arrays.",[XH1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Dm]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[qU]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[DU]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[KU]:"Encoder and decoder must either both be fixed-size or variable-size.",[nD1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Gm]:"Expected a fixed-size codec, got a variable-size one.",[Km]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Wm]:"Expected a variable-size codec, got a fixed-size one.",[QH1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[WU]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[JH1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[oD1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[sD1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[eD1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[cD1]:"Expected [$codecDescription] to have $expected items, got $actual.",[tD1]:"Invalid value $value for base $base with alphabet $alphabet.",[$H1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[rD1]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[qm]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Hm]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[VH1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Zm]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[aW1]:"No random values implementation could be found.",[qK1]:"instruction requires an uninitialized account",[FK1]:"instruction tries to borrow reference for an account which is already borrowed",[BK1]:"instruction left account with an outstanding borrowed reference",[PK1]:"program other than the account's owner changed the size of the account data",[YK1]:"account data too small for instruction",[OK1]:"instruction expected an executable account",[iK1]:"An account does not have enough lamports to be rent-exempt",[nK1]:"Program arithmetic overflowed",[aK1]:"Failed to serialize or deserialize account data: $encodedData",[$q1]:"Builtin programs must consume compute units",[mK1]:"Cross-program invocation call depth too deep",[dK1]:"Computational budget exceeded",[_K1]:"custom program error: #$code",[NK1]:"instruction contains duplicate accounts",[SK1]:"instruction modifications of multiply-passed account differ",[AK1]:"executable accounts must be rent exempt",[IK1]:"instruction changed executable accounts data",[TK1]:"instruction changed the balance of an executable account",[MK1]:"instruction changed executable bit of an account",[wK1]:"instruction modified data of an account it does not own",[UK1]:"instruction spent from the balance of an account it does not own",[VK1]:"generic instruction error",[sK1]:"Provided owner is not allowed",[fK1]:"Account is immutable",[uK1]:"Incorrect authority provided",[WK1]:"incorrect program id for instruction",[GK1]:"insufficient funds for instruction",[XK1]:"invalid account data for instruction",[cK1]:"Invalid account owner",[JK1]:"invalid program argument",[CK1]:"program returned invalid error code",[QK1]:"invalid instruction data",[xK1]:"Failed to reallocate account data",[hK1]:"Provided seeds do not result in a valid address",[rK1]:"Accounts data allocations exceeded the maximum allowed per transaction",[tK1]:"Max accounts exceeded",[eK1]:"Max instruction trace length exceeded",[vK1]:"Length of the seed is too long for address generation",[kK1]:"An account required by the instruction is missing",[KK1]:"missing required signature for instruction",[ZK1]:"instruction illegally modified the program id of an account",[RK1]:"insufficient account keys for instruction",[yK1]:"Cross-program invocation with unauthorized signer or writable account",[bK1]:"Failed to create program execution environment",[lK1]:"Program failed to compile",[gK1]:"Program failed to complete",[jK1]:"instruction modified data of a read-only account",[zK1]:"instruction changed the balance of a read-only account",[EK1]:"Cross-program invocation reentrancy not allowed for this instruction",[LK1]:"instruction modified rent epoch of an account",[HK1]:"sum of account balances before and after instruction do not match",[DK1]:"instruction requires an initialized account",[$K1]:"",[pK1]:"Unsupported program id",[oK1]:"Unsupported sysvar",[LH1]:"Invalid instruction plan kind: $kind.",[yD1]:"The provided instruction plan is empty.",[lD1]:"No failed transaction plan result was found in the provided transaction plan result.",[gD1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[bD1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[xD1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[RH1]:"Invalid transaction plan kind: $kind.",[dD1]:"No more instructions to pack; the message packer has completed the instruction plan.",[fD1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[uD1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[aD1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[iD1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[rW1]:"The instruction does not have any accounts.",[tW1]:"The instruction does not have any data.",[eW1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[VW1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[tG1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[jH1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[MH1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[zH1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[wH1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[NH1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[KW1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[qW1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[HW1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[DW1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[WW1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[LW1]:"$__serverMessage",[AW1]:"$__serverMessage",[CW1]:"$__serverMessage",[NW1]:"$__serverMessage",[wW1]:"Epoch rewards period still active at slot $slot",[PW1]:"$__serverMessage",[OW1]:"$__serverMessage",[ZW1]:"Failed to query long-term storage; please try again",[zW1]:"Minimum context slot has not been reached",[_W1]:"Node is unhealthy; behind by $numSlotsBehind slots",[FW1]:"No snapshot",[TW1]:"Transaction simulation failed",[UW1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[BW1]:"$__serverMessage",[RW1]:"Transaction history is not available from this node",[SW1]:"$__serverMessage",[MW1]:"Transaction signature length mismatch",[IW1]:"Transaction signature verification failure",[jW1]:"$__serverMessage",[iW1]:"Key pair bytes must be of length 64, got $byteLength.",[cW1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[nW1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[sW1]:"The provided private key does not match the provided public key.",[oW1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[JW1]:"Lamports value must be in the range [0, 2e64-1]",[QW1]:"`$value` cannot be parsed as a `BigInt`",[GW1]:"$message",[XW1]:"`$value` cannot be parsed as a `Number`",[eG1]:"No nonce account could be found at address `$nonceAccountAddress`",[jq1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[_q1]:"Attempted to sign an offchain message with an address that is not a signer for it",[zq1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[Sq1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Uq1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[Rq1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[Pq1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Oq1]:"Offchain message content must be non-empty",[Mq1]:"Offchain message must specify the address of at least one required signer",[Fq1]:"Offchain message envelope must reserve space for at least one signature",[Nq1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[Iq1]:"The signatories of this offchain message must be listed in lexicographical order",[Tq1]:"An address must be listed no more than once among the signatories of an offchain message",[Bq1]:"Offchain message is missing signatures for addresses: $addresses.",[Aq1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[wq1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Cq1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[Lq1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[qH1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[HH1]:"WebSocket was closed before payload could be added to the send buffer",[ZH1]:"WebSocket connection closed",[UH1]:"WebSocket failed to connect",[DH1]:"Failed to obtain a subscription id from the server",[KH1]:"Could not find an API plan for RPC method: `$method`",[YH1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[WH1]:"HTTP error ($statusCode): $message",[GH1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Vq1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Jq1]:"The provided value does not implement the `KeyPairSigner` interface",[Xq1]:"The provided value does not implement the `MessageModifyingSigner` interface",[Yq1]:"The provided value does not implement the `MessagePartialSigner` interface",[Qq1]:"The provided value does not implement any of the `MessageSigner` interfaces",[Wq1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Kq1]:"The provided value does not implement the `TransactionPartialSigner` interface",[qq1]:"The provided value does not implement the `TransactionSendingSigner` interface",[Gq1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Dq1]:"More than one `TransactionSendingSigner` was identified.",[Hq1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Zq1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[uW1]:"Cannot export a non-extractable key.",[dW1]:"No digest implementation could be found.",[xW1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[yW1]:`This runtime does not support the generation of Ed25519 key pairs.
41
+
42
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
43
+
44
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[bW1]:"No signature verification implementation could be found.",[gW1]:"No key generation implementation could be found.",[lW1]:"No signing implementation could be found.",[fW1]:"No key export implementation could be found.",[YW1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[jD1]:"Transaction processing left an account with an outstanding borrowed reference",[VD1]:"Account in use",[JD1]:"Account loaded twice",[QD1]:"Attempt to debit an account but found no record of a prior credit.",[FD1]:"Transaction loads an address table account that doesn't exist",[WD1]:"This transaction has already been processed",[KD1]:"Blockhash not found",[qD1]:"Loader call chain is too deep",[zD1]:"Transactions are currently disabled due to cluster maintenance",[AD1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[YD1]:"Insufficient funds for fee",[pD1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[GD1]:"This account may not be used to pay transaction fees",[HD1]:"Transaction contains an invalid account reference",[SD1]:"Transaction loads an address table account with invalid data",[_D1]:"Transaction address table lookup uses an invalid index",[BD1]:"Transaction loads an address table account with an invalid owner",[kD1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[UD1]:"This program may not be used for executing instructions",[CD1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[LD1]:"Transaction loads a writable account that cannot be written",[mD1]:"Transaction exceeded max loaded accounts data size cap",[DD1]:"Transaction requires a fee but has no signature present",[XD1]:"Attempt to load a program that does not exist",[vD1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[ED1]:"ResanitizationNeeded",[wD1]:"Transaction failed to sanitize accounts offsets correctly",[ZD1]:"Transaction did not pass signature verification",[OD1]:"Transaction locked too many accounts",[hD1]:"Sum of account balances before and after transaction do not match",[$D1]:"The transaction failed with the error `$errorName`",[MD1]:"Transaction version is unsupported",[PD1]:"Transaction would exceed account data limit within the block",[TD1]:"Transaction would exceed total account data limit",[RD1]:"Transaction would exceed max account limit within the block",[ND1]:"Transaction would exceed max Block Cost Limit",[ID1]:"Transaction would exceed max Vote Cost Limit",[iq1]:"Attempted to sign a transaction with an address that is not a signer for it",[gq1]:"Transaction is missing an address at index: $index.",[cq1]:"Transaction has no expected signers therefore it cannot be encoded",[rq1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[kq1]:"Transaction does not have a blockhash lifetime",[Eq1]:"Transaction is not a durable nonce transaction",[hq1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[xq1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[yq1]:"No fee payer set in CompiledTransaction",[dq1]:"Could not find program address at index $index",[oq1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[sq1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[lq1]:"Transaction is missing a fee payer.",[fq1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[aq1]:"Transaction first instruction is not advance nonce account instruction.",[uq1]:"Transaction with no instructions cannot be durable nonce transaction.",[pq1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[mq1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[nq1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[bq1]:"Transaction is missing signatures for addresses: $addresses.",[vq1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[tq1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[eq1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},I8="i",C4="t";function OH1($,V={}){let J=PH1[$];if(J.length===0)return"";let Q;function X(G){if(Q[C4]===2){let W=J.slice(Q[I8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[C4]===1)Y.push(J.slice(Q[I8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[I8]:0,[C4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[C4]){case 0:K={[I8]:W,[C4]:1};break;case 1:if(G==="\\")K={[I8]:W,[C4]:0};else if(G==="$")K={[I8]:W,[C4]:2};break;case 2:if(G==="\\")K={[I8]:W,[C4]:0};else if(G==="$")K={[I8]:W,[C4]:2};else if(!G.match(/\w/))K={[I8]:W,[C4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function FH1($,V={}){return OH1($,V)}function Um($,V){if($ instanceof Error&&$.name==="SolanaError"){if(V!==void 0)return $.context.__code===V;return!0}return!1}var s9=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=FH1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function BH1($,V){if($.length>=V)return $;let J=new Uint8Array(V).fill(0);return J.set($),J}var SH1=($,V)=>BH1($.length<=V?$:$.slice(0,V),V);function _H1($,V){return"fixedSize"in V?V.fixedSize:V.getSizeFromValue($)}function wm($){return Object.freeze({...$,encode:(V)=>{let J=new Uint8Array(_H1(V,$));return $.write(V,J,0),J}})}function CH1($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function y5($){return"fixedSize"in $&&typeof $.fixedSize==="number"}function IH1($){return!y5($)}function zm($,V){if(y5($)!==y5(V))throw new s9(KU);if(y5($)&&y5(V)&&$.fixedSize!==V.fixedSize)throw new s9(qU,{decoderFixedSize:V.fixedSize,encoderFixedSize:$.fixedSize});if(!y5($)&&!y5(V)&&$.maxSize!==V.maxSize)throw new s9(DU,{decoderMaxSize:V.maxSize,encoderMaxSize:$.maxSize});return{...V,...$,decode:V.decode,encode:$.encode,read:V.read,write:$.write}}function TH1($,V,J,Q=0){let X=J.length-Q;if(X<V)throw new s9(WU,{bytesLength:X,codecDescription:$,expected:V})}function jm($,V){return wm({fixedSize:V,write:(J,Q,X)=>{let Y=$.encode(J),G=Y.length>V?Y.slice(0,V):Y;return Q.set(G,X),X+V}})}function Nm($,V){return CH1({fixedSize:V,read:(J,Q)=>{if(TH1("fixCodecSize",V,J,Q),Q>0||J.length>V)J=J.slice(Q,Q+V);if(y5($))J=SH1(J,$.fixedSize);let[X]=$.read(J,0);return[X,Q+V]}})}function Mm($,V){return wm({...IH1($)?{...$,getSizeFromValue:(J)=>$.getSizeFromValue(V(J))}:$,write:(J,Q,X)=>$.write(V(J),Q,X)})}var AH1=1,pH1=2,mH1=3,kH1=4,EH1=5,vH1=6,hH1=7,xH1=8,dH1=9,yH1=10,bH1=-32700,gH1=-32603,lH1=-32602,fH1=-32601,uH1=-32600,aH1=-32019,iH1=-32018,cH1=-32017,nH1=-32016,oH1=-32015,sH1=-32014,rH1=-32013,tH1=-32012,eH1=-32011,$Z1=-32010,VZ1=-32009,JZ1=-32008,QZ1=-32007,XZ1=-32006,YZ1=-32005,GZ1=-32004,WZ1=-32003,KZ1=-32002,qZ1=-32001,DZ1=2800000,HZ1=2800001,ZZ1=2800002,UZ1=2800003,wZ1=2800004,zZ1=2800005,jZ1=2800006,NZ1=2800007,MZ1=2800008,LZ1=2800009,RZ1=2800010,PZ1=2800011,OZ1=3230000,FZ1=32300001,BZ1=3230002,SZ1=3230003,_Z1=3230004,CZ1=3610000,HU=3610001,Lm=3610002,ZU=3610003,Rm=3610004,UU=3610005,wU=3610006,IZ1=3610007,zU=3611000,TZ1=3704000,AZ1=3704001,pZ1=3704002,mZ1=3704003,kZ1=3704004,EZ1=4128000,vZ1=4128001,hZ1=4128002,xZ1=4615000,dZ1=4615001,yZ1=4615002,bZ1=4615003,gZ1=4615004,lZ1=4615005,fZ1=4615006,uZ1=4615007,aZ1=4615008,iZ1=4615009,cZ1=4615010,nZ1=4615011,oZ1=4615012,sZ1=4615013,rZ1=4615014,tZ1=4615015,eZ1=4615016,$U1=4615017,VU1=4615018,JU1=4615019,QU1=4615020,XU1=4615021,YU1=4615022,GU1=4615023,WU1=4615024,KU1=4615025,qU1=4615026,DU1=4615027,HU1=4615028,ZU1=4615029,UU1=4615030,wU1=4615031,zU1=4615032,jU1=4615033,NU1=4615034,MU1=4615035,LU1=4615036,RU1=4615037,PU1=4615038,OU1=4615039,FU1=4615040,BU1=4615041,SU1=4615042,_U1=4615043,CU1=4615044,IU1=4615045,TU1=4615046,AU1=4615047,pU1=4615048,mU1=4615049,kU1=4615050,EU1=4615051,vU1=4615052,hU1=4615053,xU1=4615054,dU1=5508000,yU1=5508001,bU1=5508002,gU1=5508003,lU1=5508004,fU1=5508005,uU1=5508006,aU1=5508007,iU1=5508008,cU1=5508009,nU1=5508010,oU1=5508011,sU1=5607000,rU1=5607001,tU1=5607002,eU1=5607003,$w1=5607004,Vw1=5607005,Jw1=5607006,Qw1=5607007,Xw1=5607008,Yw1=5607009,Gw1=5607010,Ww1=5607011,Kw1=5607012,qw1=5607013,Dw1=5607014,Hw1=5607015,Zw1=5607016,Uw1=5607017,ww1=5663000,zw1=5663001,jw1=5663002,Nw1=5663003,Mw1=5663004,Lw1=5663005,Rw1=5663006,Pw1=5663007,Ow1=5663008,Fw1=5663009,Bw1=5663010,Sw1=5663011,_w1=5663012,Cw1=5663013,Iw1=5663014,Tw1=5663015,Aw1=5663016,pw1=5663017,mw1=5663018,kw1=5663019,Ew1=5663020,vw1=5663021,hw1=5663022,xw1=7050000,dw1=7050001,yw1=7050002,bw1=7050003,gw1=7050004,lw1=7050005,fw1=7050006,uw1=7050007,aw1=7050008,iw1=7050009,cw1=7050010,nw1=7050011,ow1=7050012,sw1=7050013,rw1=7050014,tw1=7050015,ew1=7050016,$z1=7050017,Vz1=7050018,Jz1=7050019,Qz1=7050020,Xz1=7050021,Yz1=7050022,Gz1=7050023,Wz1=7050024,Kz1=7050025,qz1=7050026,Dz1=7050027,Hz1=7050028,Zz1=7050029,Uz1=7050030,wz1=7050031,zz1=7050032,jz1=7050033,Nz1=7050034,Mz1=7050035,Lz1=7050036,Rz1=7618000,Pz1=7618001,Oz1=7618002,Fz1=7618003,Bz1=7618004,Sz1=7618005,_z1=7618006,Cz1=7618007,Iz1=7618008,Tz1=7618009,Az1=8078000,pz1=8078001,mz1=8078002,kz1=8078003,Ez1=8078004,vz1=8078005,hz1=8078006,xz1=8078007,dz1=8078008,yz1=8078009,bz1=8078010,gz1=8078011,lz1=8078012,fz1=8078013,uz1=8078014,az1=8078015,iz1=8078016,cz1=8078017,nz1=8078018,oz1=8078019,sz1=8078020,rz1=8078021,tz1=8078022,ez1=8078023,$j1=8100000,Vj1=8100001,Jj1=8100002,Qj1=8100003,Xj1=8190000,Yj1=8190001,Gj1=8190002,Wj1=8190003,Kj1=8190004,qj1=9900000,Dj1=9900001,Hj1=9900002,Zj1=9900003,Uj1=9900004,wj1=9900005,zj1=9900006;var jj1={[OZ1]:"Account not found at address: $address",[_Z1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[SZ1]:"Expected decoded account at address: $address",[BZ1]:"Failed to decode account data at address: $address",[FZ1]:"Accounts not found at addresses: $addresses",[LZ1]:"Unable to find a viable program address bump seed.",[ZZ1]:"$putativeAddress is not a base58-encoded address.",[DZ1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[UZ1]:"The `CryptoKey` must be an `Ed25519` public key.",[PZ1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[MZ1]:"Invalid seeds; point must fall off the Ed25519 curve.",[wZ1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[jZ1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[NZ1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[zZ1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[RZ1]:"Program address cannot end with PDA marker.",[HZ1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[kH1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[AH1]:"The network has progressed past the last block for which this transaction could have been committed.",[Az1]:"Codec [$codecDescription] cannot decode empty byte arrays.",[tz1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[sz1]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[vz1]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[hz1]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Ez1]:"Encoder and decoder must either both be fixed-size or variable-size.",[dz1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[mz1]:"Expected a fixed-size codec, got a variable-size one.",[fz1]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[kz1]:"Expected a variable-size codec, got a fixed-size one.",[oz1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[pz1]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[nz1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[yz1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[bz1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[az1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[xz1]:"Expected [$codecDescription] to have $expected items, got $actual.",[lz1]:"Invalid value $value for base $base with alphabet $alphabet.",[iz1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[gz1]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[uz1]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[rz1]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[cz1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[ez1]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[zU]:"No random values implementation could be found.",[iZ1]:"instruction requires an uninitialized account",[GU1]:"instruction tries to borrow reference for an account which is already borrowed",[WU1]:"instruction left account with an outstanding borrowed reference",[XU1]:"program other than the account's owner changed the size of the account data",[lZ1]:"account data too small for instruction",[YU1]:"instruction expected an executable account",[TU1]:"An account does not have enough lamports to be rent-exempt",[pU1]:"Program arithmetic overflowed",[IU1]:"Failed to serialize or deserialize account data: $encodedData",[xU1]:"Builtin programs must consume compute units",[zU1]:"Cross-program invocation call depth too deep",[PU1]:"Computational budget exceeded",[qU1]:"custom program error: #$code",[$U1]:"instruction contains duplicate accounts",[KU1]:"instruction modifications of multiply-passed account differ",[UU1]:"executable accounts must be rent exempt",[HU1]:"instruction changed executable accounts data",[ZU1]:"instruction changed the balance of an executable account",[VU1]:"instruction changed executable bit of an account",[rZ1]:"instruction modified data of an account it does not own",[sZ1]:"instruction spent from the balance of an account it does not own",[dZ1]:"generic instruction error",[kU1]:"Provided owner is not allowed",[_U1]:"Account is immutable",[CU1]:"Incorrect authority provided",[uZ1]:"incorrect program id for instruction",[fZ1]:"insufficient funds for instruction",[gZ1]:"invalid account data for instruction",[AU1]:"Invalid account owner",[yZ1]:"invalid program argument",[DU1]:"program returned invalid error code",[bZ1]:"invalid instruction data",[RU1]:"Failed to reallocate account data",[LU1]:"Provided seeds do not result in a valid address",[EU1]:"Accounts data allocations exceeded the maximum allowed per transaction",[vU1]:"Max accounts exceeded",[hU1]:"Max instruction trace length exceeded",[MU1]:"Length of the seed is too long for address generation",[jU1]:"An account required by the instruction is missing",[aZ1]:"missing required signature for instruction",[oZ1]:"instruction illegally modified the program id of an account",[QU1]:"insufficient account keys for instruction",[OU1]:"Cross-program invocation with unauthorized signer or writable account",[FU1]:"Failed to create program execution environment",[SU1]:"Program failed to compile",[BU1]:"Program failed to complete",[eZ1]:"instruction modified data of a read-only account",[tZ1]:"instruction changed the balance of a read-only account",[NU1]:"Cross-program invocation reentrancy not allowed for this instruction",[JU1]:"instruction modified rent epoch of an account",[nZ1]:"sum of account balances before and after instruction do not match",[cZ1]:"instruction requires an initialized account",[xZ1]:"",[wU1]:"Unsupported program id",[mU1]:"Unsupported sysvar",[wj1]:"Invalid instruction plan kind: $kind.",[Oz1]:"The provided instruction plan is empty.",[Sz1]:"No failed transaction plan result was found in the provided transaction plan result.",[Bz1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[Fz1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[Rz1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[zj1]:"Invalid transaction plan kind: $kind.",[Pz1]:"No more instructions to pack; the message packer has completed the instruction plan.",[_z1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[Cz1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[Iz1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[Tz1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[EZ1]:"The instruction does not have any accounts.",[vZ1]:"The instruction does not have any data.",[hZ1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[EH1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[pH1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Hj1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Uj1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Dj1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[qj1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Zj1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[gH1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[lH1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[uH1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[fH1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[bH1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[tH1]:"$__serverMessage",[qZ1]:"$__serverMessage",[GZ1]:"$__serverMessage",[sH1]:"$__serverMessage",[cH1]:"Epoch rewards period still active at slot $slot",[$Z1]:"$__serverMessage",[VZ1]:"$__serverMessage",[aH1]:"Failed to query long-term storage; please try again",[nH1]:"Minimum context slot has not been reached",[YZ1]:"Node is unhealthy; behind by $numSlotsBehind slots",[JZ1]:"No snapshot",[KZ1]:"Transaction simulation failed",[iH1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[QZ1]:"$__serverMessage",[eH1]:"Transaction history is not available from this node",[XZ1]:"$__serverMessage",[rH1]:"Transaction signature length mismatch",[WZ1]:"Transaction signature verification failure",[oH1]:"$__serverMessage",[TZ1]:"Key pair bytes must be of length 64, got $byteLength.",[AZ1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[pZ1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[kZ1]:"The provided private key does not match the provided public key.",[mZ1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[vH1]:"Lamports value must be in the range [0, 2e64-1]",[hH1]:"`$value` cannot be parsed as a `BigInt`",[yH1]:"$message",[xH1]:"`$value` cannot be parsed as a `Number`",[mH1]:"No nonce account could be found at address `$nonceAccountAddress`",[eU1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[qw1]:"Attempted to sign an offchain message with an address that is not a signer for it",[tU1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[Kw1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[sU1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[Qw1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[Xw1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Yw1]:"Offchain message content must be non-empty",[Vw1]:"Offchain message must specify the address of at least one required signer",[Gw1]:"Offchain message envelope must reserve space for at least one signature",[$w1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[Hw1]:"The signatories of this offchain message must be listed in lexicographical order",[Zw1]:"An address must be listed no more than once among the signatories of an offchain message",[Ww1]:"Offchain message is missing signatures for addresses: $addresses.",[Uw1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[rU1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Dw1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[Jw1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[Xj1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Gj1]:"WebSocket was closed before payload could be added to the send buffer",[Wj1]:"WebSocket connection closed",[Kj1]:"WebSocket failed to connect",[Yj1]:"Failed to obtain a subscription id from the server",[Qj1]:"Could not find an API plan for RPC method: `$method`",[$j1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Jj1]:"HTTP error ($statusCode): $message",[Vj1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[dU1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[yU1]:"The provided value does not implement the `KeyPairSigner` interface",[gU1]:"The provided value does not implement the `MessageModifyingSigner` interface",[lU1]:"The provided value does not implement the `MessagePartialSigner` interface",[bU1]:"The provided value does not implement any of the `MessageSigner` interfaces",[uU1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[aU1]:"The provided value does not implement the `TransactionPartialSigner` interface",[iU1]:"The provided value does not implement the `TransactionSendingSigner` interface",[fU1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[cU1]:"More than one `TransactionSendingSigner` was identified.",[nU1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[oU1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[IZ1]:"Cannot export a non-extractable key.",[HU]:"No digest implementation could be found.",[CZ1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Lm]:`This runtime does not support the generation of Ed25519 key pairs.
45
+
46
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
47
+
48
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[ZU]:"No signature verification implementation could be found.",[Rm]:"No key generation implementation could be found.",[UU]:"No signing implementation could be found.",[wU]:"No key export implementation could be found.",[dH1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[ew1]:"Transaction processing left an account with an outstanding borrowed reference",[dw1]:"Account in use",[yw1]:"Account loaded twice",[bw1]:"Attempt to debit an account but found no record of a prior credit.",[Gz1]:"Transaction loads an address table account that doesn't exist",[uw1]:"This transaction has already been processed",[aw1]:"Blockhash not found",[iw1]:"Loader call chain is too deep",[tw1]:"Transactions are currently disabled due to cluster maintenance",[Uz1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[lw1]:"Insufficient funds for fee",[wz1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[fw1]:"This account may not be used to pay transaction fees",[nw1]:"Transaction contains an invalid account reference",[Kz1]:"Transaction loads an address table account with invalid data",[qz1]:"Transaction address table lookup uses an invalid index",[Wz1]:"Transaction loads an address table account with an invalid owner",[jz1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[sw1]:"This program may not be used for executing instructions",[Dz1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Jz1]:"Transaction loads a writable account that cannot be written",[zz1]:"Transaction exceeded max loaded accounts data size cap",[cw1]:"Transaction requires a fee but has no signature present",[gw1]:"Attempt to load a program that does not exist",[Mz1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Nz1]:"ResanitizationNeeded",[rw1]:"Transaction failed to sanitize accounts offsets correctly",[ow1]:"Transaction did not pass signature verification",[Yz1]:"Transaction locked too many accounts",[Lz1]:"Sum of account balances before and after transaction do not match",[xw1]:"The transaction failed with the error `$errorName`",[Vz1]:"Transaction version is unsupported",[Xz1]:"Transaction would exceed account data limit within the block",[Zz1]:"Transaction would exceed total account data limit",[Qz1]:"Transaction would exceed max account limit within the block",[$z1]:"Transaction would exceed max Block Cost Limit",[Hz1]:"Transaction would exceed max Vote Cost Limit",[Tw1]:"Attempted to sign a transaction with an address that is not a signer for it",[Bw1]:"Transaction is missing an address at index: $index.",[Aw1]:"Transaction has no expected signers therefore it cannot be encoded",[Ew1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[jw1]:"Transaction does not have a blockhash lifetime",[Nw1]:"Transaction is not a durable nonce transaction",[Lw1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Rw1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Ow1]:"No fee payer set in CompiledTransaction",[Pw1]:"Could not find program address at index $index",[mw1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[kw1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Sw1]:"Transaction is missing a fee payer.",[_w1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Iw1]:"Transaction first instruction is not advance nonce account instruction.",[Cw1]:"Transaction with no instructions cannot be durable nonce transaction.",[ww1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[zw1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[pw1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Fw1]:"Transaction is missing signatures for addresses: $addresses.",[Mw1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[vw1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[hw1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},T8="i",I4="t";function Nj1($,V={}){let J=jj1[$];if(J.length===0)return"";let Q;function X(G){if(Q[I4]===2){let W=J.slice(Q[T8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[I4]===1)Y.push(J.slice(Q[T8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[T8]:0,[I4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[I4]){case 0:K={[T8]:W,[I4]:1};break;case 1:if(G==="\\")K={[T8]:W,[I4]:0};else if(G==="$")K={[T8]:W,[I4]:2};break;case 2:if(G==="\\")K={[T8]:W,[I4]:0};else if(G==="$")K={[T8]:W,[I4]:2};else if(!G.match(/\w/))K={[T8]:W,[I4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function Mj1($,V={}){return Nj1($,V)}var B$=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=Mj1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function Pm(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.getRandomValues!=="function")throw new B$(zU)}function Om(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.digest!=="function")throw new B$(HU)}function HG(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.exportKey!=="function")throw new B$(ZU)}function Fm(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.sign!=="function")throw new B$(UU)}function Bm(){if(typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.verify!=="function")throw new B$(wU)}var jU,NU;function MU(){if(!jU)jU=eZ();return jU}function Lj1(){if(!NU)NU=$U();return NU}function ZG($){if($.length<32||$.length>44)return!1;let V=MU();try{return V.encode($).byteLength===32}catch{return!1}}function LU($){if($.length<32||$.length>44)throw new s9(JU,{actualLength:$.length});let Q=MU().encode($).byteLength;if(Q!==32)throw new s9(VU,{actualLength:Q})}function Rj1($){return LU($),$}function A8(){return Mm(jm(MU(),32),($)=>Rj1($))}function L2(){return Nm(Lj1(),32)}function Pj1(){return zm(A8(),L2())}function UG(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}var Oj1=37095705934669439343138083508754565189542113879843219016388785533085940283555n,C9=57896044618658097711785492504343953926634992332820282019728792003956564819949n,Sm=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function M6($){let V=$%C9;return V>=0n?V:C9+V}function T4($,V){let J=$;while(V-- >0n)J*=J,J%=C9;return J}function Fj1($){let J=$*$%C9*$%C9,Q=T4(J,2n)*J%C9,X=T4(Q,1n)*$%C9,Y=T4(X,5n)*X%C9,G=T4(Y,10n)*Y%C9,W=T4(G,20n)*G%C9,K=T4(W,40n)*W%C9,D=T4(K,80n)*K%C9,H=T4(D,80n)*K%C9,U=T4(H,10n)*Y%C9;return T4(U,2n)*$%C9}function Bj1($,V){let J=M6(V*V*V),Q=M6(J*J*V),X=Fj1($*Q),Y=M6($*J*X),G=M6(V*Y*Y),W=Y,K=M6(Y*Sm),D=G===$,H=G===M6(-$),U=G===M6(-$*Sm);if(D)Y=W;if(H||U)Y=K;if((M6(Y)&1n)===1n)Y=M6(-Y);if(!D&&!H)return null;return Y}function Sj1($,V){let J=M6($*$),Q=M6(J-1n),X=M6(Oj1*J+1n),Y=Bj1(Q,X);if(Y===null)return!1;let G=(V&128)!==0;if(Y===0n&&G)return!1;return!0}function _j1($){let V=$.toString(16);if(V.length===1)return`0${V}`;else return V}function Cj1($){let J=`0x${$.reduce((Q,X,Y)=>`${_j1(Y===31?X&-129:X)}${Q}`,"")}`;return BigInt(J)}function Ij1($){if($.byteLength!==32)return!1;let V=Cj1($);return Sj1(V,$[31])}var _m=32,Cm=16,Tj1=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function Aj1({programAddress:$,seeds:V}){if(Om(),V.length>Cm)throw new s9(XU,{actual:V.length,maxSeeds:Cm});let J,Q=V.reduce((K,D,H)=>{let U=typeof D==="string"?(J||=new TextEncoder).encode(D):D;if(U.byteLength>_m)throw new s9(YU,{actual:U.byteLength,index:H,maxSeedLength:_m});return K.push(...U),K},[]),X=Pj1(),Y=X.encode($),G=await crypto.subtle.digest("SHA-256",new Uint8Array([...Q,...Y,...Tj1])),W=new Uint8Array(G);if(Ij1(W))throw new s9(DG);return X.decode(W)}async function Im({programAddress:$,seeds:V}){let J=255;while(J>0)try{return[await Aj1({programAddress:$,seeds:[...V,new Uint8Array([J])]}),J]}catch(Q){if(Um(Q,DG))J--;else throw Q}throw new s9(GU)}async function wG($){if(HG(),$.type!=="public"||$.algorithm.name!=="Ed25519")throw new s9(QU);let V=await crypto.subtle.exportKey("raw",$);return L2().decode(new Uint8Array(V))}var pj1=1,mj1=2,kj1=3,Ej1=4,vj1=5,hj1=6,xj1=7,dj1=8,yj1=9,bj1=10,gj1=-32700,lj1=-32603,fj1=-32602,uj1=-32601,aj1=-32600,ij1=-32019,cj1=-32018,nj1=-32017,oj1=-32016,sj1=-32015,rj1=-32014,tj1=-32013,ej1=-32012,$N1=-32011,VN1=-32010,JN1=-32009,QN1=-32008,XN1=-32007,YN1=-32006,GN1=-32005,WN1=-32004,KN1=-32003,qN1=-32002,DN1=-32001,HN1=2800000,ZN1=2800001,UN1=2800002,wN1=2800003,zN1=2800004,jN1=2800005,NN1=2800006,MN1=2800007,LN1=2800008,RN1=2800009,PN1=2800010,ON1=2800011,FN1=3230000,BN1=32300001,SN1=3230002,_N1=3230003,CN1=3230004,IN1=3610000,TN1=3610001,AN1=3610002,pN1=3610003,mN1=3610004,kN1=3610005,EN1=3610006,vN1=3610007,hN1=3611000,xN1=3704000,dN1=3704001,yN1=3704002,bN1=3704003,gN1=3704004,lN1=4128000,fN1=4128001,uN1=4128002,aN1=4615000,iN1=4615001,cN1=4615002,nN1=4615003,oN1=4615004,sN1=4615005,rN1=4615006,tN1=4615007,eN1=4615008,$M1=4615009,VM1=4615010,JM1=4615011,QM1=4615012,XM1=4615013,YM1=4615014,GM1=4615015,WM1=4615016,KM1=4615017,qM1=4615018,DM1=4615019,HM1=4615020,ZM1=4615021,UM1=4615022,wM1=4615023,zM1=4615024,jM1=4615025,NM1=4615026,MM1=4615027,LM1=4615028,RM1=4615029,PM1=4615030,OM1=4615031,FM1=4615032,BM1=4615033,SM1=4615034,_M1=4615035,CM1=4615036,IM1=4615037,TM1=4615038,AM1=4615039,pM1=4615040,mM1=4615041,kM1=4615042,EM1=4615043,vM1=4615044,hM1=4615045,xM1=4615046,dM1=4615047,yM1=4615048,bM1=4615049,gM1=4615050,lM1=4615051,fM1=4615052,uM1=4615053,aM1=4615054,iM1=5508000,cM1=5508001,nM1=5508002,oM1=5508003,sM1=5508004,rM1=5508005,tM1=5508006,eM1=5508007,$L1=5508008,VL1=5508009,JL1=5508010,QL1=5508011,XL1=5607000,YL1=5607001,GL1=5607002,WL1=5607003,KL1=5607004,qL1=5607005,DL1=5607006,HL1=5607007,ZL1=5607008,UL1=5607009,wL1=5607010,zL1=5607011,jL1=5607012,NL1=5607013,ML1=5607014,LL1=5607015,RL1=5607016,PL1=5607017,OL1=5663000,FL1=5663001,BL1=5663002,SL1=5663003,_L1=5663004,CL1=5663005,IL1=5663006,TL1=5663007,AL1=5663008,pL1=5663009,mL1=5663010,kL1=5663011,EL1=5663012,vL1=5663013,hL1=5663014,xL1=5663015,dL1=5663016,yL1=5663017,bL1=5663018,gL1=5663019,lL1=5663020,fL1=5663021,uL1=5663022,aL1=7050000,iL1=7050001,cL1=7050002,nL1=7050003,oL1=7050004,sL1=7050005,rL1=7050006,tL1=7050007,eL1=7050008,$R1=7050009,VR1=7050010,JR1=7050011,QR1=7050012,XR1=7050013,YR1=7050014,GR1=7050015,WR1=7050016,KR1=7050017,qR1=7050018,DR1=7050019,HR1=7050020,ZR1=7050021,UR1=7050022,wR1=7050023,zR1=7050024,jR1=7050025,NR1=7050026,MR1=7050027,LR1=7050028,RR1=7050029,PR1=7050030,OR1=7050031,FR1=7050032,BR1=7050033,SR1=7050034,_R1=7050035,CR1=7050036,IR1=7618000,TR1=7618001,AR1=7618002,pR1=7618003,mR1=7618004,kR1=7618005,ER1=7618006,vR1=7618007,hR1=7618008,xR1=7618009,RU=8078000,PU=8078001,Tm=8078002,Am=8078003,pm=8078004,mm=8078005,km=8078006,dR1=8078007,yR1=8078008,bR1=8078009,gR1=8078010,lR1=8078011,fR1=8078012,zG=8078013,OU=8078014,uR1=8078015,aR1=8078016,iR1=8078017,cR1=8078018,nR1=8078019,Em=8078020,vm=8078021,oR1=8078022,hm=8078023,sR1=8100000,rR1=8100001,tR1=8100002,eR1=8100003,$P1=8190000,VP1=8190001,JP1=8190002,QP1=8190003,XP1=8190004,YP1=9900000,GP1=9900001,WP1=9900002,KP1=9900003,qP1=9900004,DP1=9900005,HP1=9900006;var ZP1={[FN1]:"Account not found at address: $address",[CN1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[_N1]:"Expected decoded account at address: $address",[SN1]:"Failed to decode account data at address: $address",[BN1]:"Accounts not found at addresses: $addresses",[RN1]:"Unable to find a viable program address bump seed.",[UN1]:"$putativeAddress is not a base58-encoded address.",[HN1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[wN1]:"The `CryptoKey` must be an `Ed25519` public key.",[ON1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[LN1]:"Invalid seeds; point must fall off the Ed25519 curve.",[zN1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[NN1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[MN1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[jN1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[PN1]:"Program address cannot end with PDA marker.",[ZN1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Ej1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[pj1]:"The network has progressed past the last block for which this transaction could have been committed.",[RU]:"Codec [$codecDescription] cannot decode empty byte arrays.",[oR1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Em]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[mm]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[km]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[pm]:"Encoder and decoder must either both be fixed-size or variable-size.",[yR1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Tm]:"Expected a fixed-size codec, got a variable-size one.",[zG]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Am]:"Expected a variable-size codec, got a fixed-size one.",[nR1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[PU]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[cR1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[bR1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[gR1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[uR1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[dR1]:"Expected [$codecDescription] to have $expected items, got $actual.",[fR1]:"Invalid value $value for base $base with alphabet $alphabet.",[aR1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[lR1]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[OU]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[vm]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[iR1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[hm]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[hN1]:"No random values implementation could be found.",[$M1]:"instruction requires an uninitialized account",[wM1]:"instruction tries to borrow reference for an account which is already borrowed",[zM1]:"instruction left account with an outstanding borrowed reference",[ZM1]:"program other than the account's owner changed the size of the account data",[sN1]:"account data too small for instruction",[UM1]:"instruction expected an executable account",[xM1]:"An account does not have enough lamports to be rent-exempt",[yM1]:"Program arithmetic overflowed",[hM1]:"Failed to serialize or deserialize account data: $encodedData",[aM1]:"Builtin programs must consume compute units",[FM1]:"Cross-program invocation call depth too deep",[TM1]:"Computational budget exceeded",[NM1]:"custom program error: #$code",[KM1]:"instruction contains duplicate accounts",[jM1]:"instruction modifications of multiply-passed account differ",[PM1]:"executable accounts must be rent exempt",[LM1]:"instruction changed executable accounts data",[RM1]:"instruction changed the balance of an executable account",[qM1]:"instruction changed executable bit of an account",[YM1]:"instruction modified data of an account it does not own",[XM1]:"instruction spent from the balance of an account it does not own",[iN1]:"generic instruction error",[gM1]:"Provided owner is not allowed",[EM1]:"Account is immutable",[vM1]:"Incorrect authority provided",[tN1]:"incorrect program id for instruction",[rN1]:"insufficient funds for instruction",[oN1]:"invalid account data for instruction",[dM1]:"Invalid account owner",[cN1]:"invalid program argument",[MM1]:"program returned invalid error code",[nN1]:"invalid instruction data",[IM1]:"Failed to reallocate account data",[CM1]:"Provided seeds do not result in a valid address",[lM1]:"Accounts data allocations exceeded the maximum allowed per transaction",[fM1]:"Max accounts exceeded",[uM1]:"Max instruction trace length exceeded",[_M1]:"Length of the seed is too long for address generation",[BM1]:"An account required by the instruction is missing",[eN1]:"missing required signature for instruction",[QM1]:"instruction illegally modified the program id of an account",[HM1]:"insufficient account keys for instruction",[AM1]:"Cross-program invocation with unauthorized signer or writable account",[pM1]:"Failed to create program execution environment",[kM1]:"Program failed to compile",[mM1]:"Program failed to complete",[WM1]:"instruction modified data of a read-only account",[GM1]:"instruction changed the balance of a read-only account",[SM1]:"Cross-program invocation reentrancy not allowed for this instruction",[DM1]:"instruction modified rent epoch of an account",[JM1]:"sum of account balances before and after instruction do not match",[VM1]:"instruction requires an initialized account",[aN1]:"",[OM1]:"Unsupported program id",[bM1]:"Unsupported sysvar",[DP1]:"Invalid instruction plan kind: $kind.",[AR1]:"The provided instruction plan is empty.",[kR1]:"No failed transaction plan result was found in the provided transaction plan result.",[mR1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[pR1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[IR1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[HP1]:"Invalid transaction plan kind: $kind.",[TR1]:"No more instructions to pack; the message packer has completed the instruction plan.",[ER1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[vR1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[hR1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[xR1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[lN1]:"The instruction does not have any accounts.",[fN1]:"The instruction does not have any data.",[uN1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[vj1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[mj1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[WP1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[qP1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[GP1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[YP1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[KP1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[lj1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[fj1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[aj1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[uj1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[gj1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[ej1]:"$__serverMessage",[DN1]:"$__serverMessage",[WN1]:"$__serverMessage",[rj1]:"$__serverMessage",[nj1]:"Epoch rewards period still active at slot $slot",[VN1]:"$__serverMessage",[JN1]:"$__serverMessage",[ij1]:"Failed to query long-term storage; please try again",[oj1]:"Minimum context slot has not been reached",[GN1]:"Node is unhealthy; behind by $numSlotsBehind slots",[QN1]:"No snapshot",[qN1]:"Transaction simulation failed",[cj1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[XN1]:"$__serverMessage",[$N1]:"Transaction history is not available from this node",[YN1]:"$__serverMessage",[tj1]:"Transaction signature length mismatch",[KN1]:"Transaction signature verification failure",[sj1]:"$__serverMessage",[xN1]:"Key pair bytes must be of length 64, got $byteLength.",[dN1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[yN1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[gN1]:"The provided private key does not match the provided public key.",[bN1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[hj1]:"Lamports value must be in the range [0, 2e64-1]",[xj1]:"`$value` cannot be parsed as a `BigInt`",[bj1]:"$message",[dj1]:"`$value` cannot be parsed as a `Number`",[kj1]:"No nonce account could be found at address `$nonceAccountAddress`",[WL1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[NL1]:"Attempted to sign an offchain message with an address that is not a signer for it",[GL1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[jL1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[XL1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[HL1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[ZL1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[UL1]:"Offchain message content must be non-empty",[qL1]:"Offchain message must specify the address of at least one required signer",[wL1]:"Offchain message envelope must reserve space for at least one signature",[KL1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[LL1]:"The signatories of this offchain message must be listed in lexicographical order",[RL1]:"An address must be listed no more than once among the signatories of an offchain message",[zL1]:"Offchain message is missing signatures for addresses: $addresses.",[PL1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[YL1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[ML1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[DL1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[$P1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[JP1]:"WebSocket was closed before payload could be added to the send buffer",[QP1]:"WebSocket connection closed",[XP1]:"WebSocket failed to connect",[VP1]:"Failed to obtain a subscription id from the server",[eR1]:"Could not find an API plan for RPC method: `$method`",[sR1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[tR1]:"HTTP error ($statusCode): $message",[rR1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[iM1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[cM1]:"The provided value does not implement the `KeyPairSigner` interface",[oM1]:"The provided value does not implement the `MessageModifyingSigner` interface",[sM1]:"The provided value does not implement the `MessagePartialSigner` interface",[nM1]:"The provided value does not implement any of the `MessageSigner` interfaces",[tM1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[eM1]:"The provided value does not implement the `TransactionPartialSigner` interface",[$L1]:"The provided value does not implement the `TransactionSendingSigner` interface",[rM1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[VL1]:"More than one `TransactionSendingSigner` was identified.",[JL1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[QL1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[vN1]:"Cannot export a non-extractable key.",[TN1]:"No digest implementation could be found.",[IN1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[AN1]:`This runtime does not support the generation of Ed25519 key pairs.
49
+
50
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
51
+
52
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[pN1]:"No signature verification implementation could be found.",[mN1]:"No key generation implementation could be found.",[kN1]:"No signing implementation could be found.",[EN1]:"No key export implementation could be found.",[yj1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[WR1]:"Transaction processing left an account with an outstanding borrowed reference",[iL1]:"Account in use",[cL1]:"Account loaded twice",[nL1]:"Attempt to debit an account but found no record of a prior credit.",[wR1]:"Transaction loads an address table account that doesn't exist",[tL1]:"This transaction has already been processed",[eL1]:"Blockhash not found",[$R1]:"Loader call chain is too deep",[GR1]:"Transactions are currently disabled due to cluster maintenance",[PR1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[sL1]:"Insufficient funds for fee",[OR1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[rL1]:"This account may not be used to pay transaction fees",[JR1]:"Transaction contains an invalid account reference",[jR1]:"Transaction loads an address table account with invalid data",[NR1]:"Transaction address table lookup uses an invalid index",[zR1]:"Transaction loads an address table account with an invalid owner",[BR1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[XR1]:"This program may not be used for executing instructions",[MR1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[DR1]:"Transaction loads a writable account that cannot be written",[FR1]:"Transaction exceeded max loaded accounts data size cap",[VR1]:"Transaction requires a fee but has no signature present",[oL1]:"Attempt to load a program that does not exist",[_R1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[SR1]:"ResanitizationNeeded",[YR1]:"Transaction failed to sanitize accounts offsets correctly",[QR1]:"Transaction did not pass signature verification",[UR1]:"Transaction locked too many accounts",[CR1]:"Sum of account balances before and after transaction do not match",[aL1]:"The transaction failed with the error `$errorName`",[qR1]:"Transaction version is unsupported",[ZR1]:"Transaction would exceed account data limit within the block",[RR1]:"Transaction would exceed total account data limit",[HR1]:"Transaction would exceed max account limit within the block",[KR1]:"Transaction would exceed max Block Cost Limit",[LR1]:"Transaction would exceed max Vote Cost Limit",[xL1]:"Attempted to sign a transaction with an address that is not a signer for it",[mL1]:"Transaction is missing an address at index: $index.",[dL1]:"Transaction has no expected signers therefore it cannot be encoded",[lL1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[BL1]:"Transaction does not have a blockhash lifetime",[SL1]:"Transaction is not a durable nonce transaction",[CL1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[IL1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[AL1]:"No fee payer set in CompiledTransaction",[TL1]:"Could not find program address at index $index",[bL1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[gL1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[kL1]:"Transaction is missing a fee payer.",[EL1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[hL1]:"Transaction first instruction is not advance nonce account instruction.",[vL1]:"Transaction with no instructions cannot be durable nonce transaction.",[OL1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[FL1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[yL1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[pL1]:"Transaction is missing signatures for addresses: $addresses.",[_L1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[fL1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[uL1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},p8="i",A4="t";function UP1($,V={}){let J=ZP1[$];if(J.length===0)return"";let Q;function X(G){if(Q[A4]===2){let W=J.slice(Q[p8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[A4]===1)Y.push(J.slice(Q[p8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[p8]:0,[A4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[A4]){case 0:K={[p8]:W,[A4]:1};break;case 1:if(G==="\\")K={[p8]:W,[A4]:0};else if(G==="$")K={[p8]:W,[A4]:2};break;case 2:if(G==="\\")K={[p8]:W,[A4]:0};else if(G==="$")K={[p8]:W,[A4]:2};else if(!G.match(/\w/))K={[p8]:W,[A4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function wP1($,V={}){return UP1($,V)}var S$=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=wP1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function zP1($,V){if($.length>=V)return $;let J=new Uint8Array(V).fill(0);return J.set($),J}var jP1=($,V)=>zP1($.length<=V?$:$.slice(0,V),V);function x7($,V,J){let Q=J===0&&$.length===V.length?$:$.slice(J,J+V.length);return NP1(Q,V)}function NP1($,V){return $.length===V.length&&$.every((J,Q)=>J===V[Q])}function MP1($,V){return"fixedSize"in V?V.fixedSize:V.getSizeFromValue($)}function _$($){return Object.freeze({...$,encode:(V)=>{let J=new Uint8Array(MP1(V,$));return $.write(V,J,0),J}})}function BJ($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function h7($){return"fixedSize"in $&&typeof $.fixedSize==="number"}function LP1($){return!h7($)}function dm($,V,J=0){if(V.length-J<=0)throw new S$(RU,{codecDescription:$})}function jG($,V,J,Q=0){let X=J.length-Q;if(X<V)throw new S$(PU,{bytesLength:X,codecDescription:$,expected:V})}function xm($,V,J){if(V<0||V>J)throw new S$(OU,{bytesLength:J,codecDescription:$,offset:V})}function h2($,V){let J=(G,W)=>{let[K,D]=V.read(G,W),H=Number(K);if(W=D,W>0||G.length>H)G=G.slice(W,W+H);return jG("addDecoderSizePrefix",H,G),[$.decode(G),W+H]};if(h7(V)&&h7($))return BJ({...$,fixedSize:V.fixedSize+$.fixedSize,read:J});let Q=h7(V)?V.fixedSize:V.maxSize??null,X=h7($)?$.fixedSize:$.maxSize??null,Y=Q!==null&&X!==null?Q+X:null;return BJ({...$,...Y!==null?{maxSize:Y}:{},read:J})}function ym($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength,Y;if(typeof SharedArrayBuffer>"u")Y=$.buffer;else if($.buffer instanceof SharedArrayBuffer)Y=new ArrayBuffer($.length),new Uint8Array(Y).set(new Uint8Array($));else Y=$.buffer;return(Q===0||Q===-$.byteLength)&&X===$.byteLength?Y:Y.slice(Q,Q+X)}function FU($,V){return BJ({fixedSize:V,read:(J,Q)=>{if(jG("fixCodecSize",V,J,Q),Q>0||J.length>V)J=J.slice(Q,Q+V);if(h7($))J=jP1(J,$.fixedSize);let[X]=$.read(J,0);return[X,Q+V]}})}function RP1($,V){return _$({...$,write:(J,Q,X)=>{let Y=(D)=>PP1(D,Q.length),G=V.preOffset?V.preOffset({bytes:Q,preOffset:X,wrapBytes:Y}):X;xm("offsetEncoder",G,Q.length);let W=$.write(J,Q,G),K=V.postOffset?V.postOffset({bytes:Q,newPreOffset:G,postOffset:W,preOffset:X,wrapBytes:Y}):W;return xm("offsetEncoder",K,Q.length),K}})}function PP1($,V){if(V===0)return 0;return($%V+V)%V}function OP1($,V){if(h7($)){let J=V($.fixedSize);if(J<0)throw new S$(zG,{bytesLength:J,codecDescription:"resizeEncoder"});return _$({...$,fixedSize:J})}return _$({...$,getSizeFromValue:(J)=>{let Q=V($.getSizeFromValue(J));if(Q<0)throw new S$(zG,{bytesLength:Q,codecDescription:"resizeEncoder"});return Q}})}function bm($,V){return RP1(OP1($,(J)=>J+V),{preOffset:({preOffset:J})=>J+V})}function SJ($,V){return _$({...LP1($)?{...$,getSizeFromValue:(J)=>$.getSizeFromValue(V(J))}:$,write:(J,Q,X)=>$.write(V(J),Q,X)})}var FP1=1,BP1=2,SP1=3,_P1=4,CP1=5,IP1=6,TP1=7,AP1=8,pP1=9,mP1=10,kP1=-32700,EP1=-32603,vP1=-32602,hP1=-32601,xP1=-32600,dP1=-32019,yP1=-32018,bP1=-32017,gP1=-32016,lP1=-32015,fP1=-32014,uP1=-32013,aP1=-32012,iP1=-32011,cP1=-32010,nP1=-32009,oP1=-32008,sP1=-32007,rP1=-32006,tP1=-32005,eP1=-32004,$O1=-32003,VO1=-32002,JO1=-32001,QO1=2800000,XO1=2800001,YO1=2800002,GO1=2800003,WO1=2800004,KO1=2800005,qO1=2800006,DO1=2800007,HO1=2800008,ZO1=2800009,UO1=2800010,wO1=2800011,zO1=3230000,jO1=32300001,NO1=3230002,MO1=3230003,LO1=3230004,RO1=3610000,PO1=3610001,OO1=3610002,FO1=3610003,BO1=3610004,SO1=3610005,_O1=3610006,CO1=3610007,IO1=3611000,TO1=3704000,AO1=3704001,pO1=3704002,mO1=3704003,kO1=3704004,EO1=4128000,vO1=4128001,hO1=4128002,xO1=4615000,dO1=4615001,yO1=4615002,bO1=4615003,gO1=4615004,lO1=4615005,fO1=4615006,uO1=4615007,aO1=4615008,iO1=4615009,cO1=4615010,nO1=4615011,oO1=4615012,sO1=4615013,rO1=4615014,tO1=4615015,eO1=4615016,$F1=4615017,VF1=4615018,JF1=4615019,QF1=4615020,XF1=4615021,YF1=4615022,GF1=4615023,WF1=4615024,KF1=4615025,qF1=4615026,DF1=4615027,HF1=4615028,ZF1=4615029,UF1=4615030,wF1=4615031,zF1=4615032,jF1=4615033,NF1=4615034,MF1=4615035,LF1=4615036,RF1=4615037,PF1=4615038,OF1=4615039,FF1=4615040,BF1=4615041,SF1=4615042,_F1=4615043,CF1=4615044,IF1=4615045,TF1=4615046,AF1=4615047,pF1=4615048,mF1=4615049,kF1=4615050,EF1=4615051,vF1=4615052,hF1=4615053,xF1=4615054,dF1=5508000,yF1=5508001,bF1=5508002,gF1=5508003,lF1=5508004,fF1=5508005,uF1=5508006,aF1=5508007,iF1=5508008,cF1=5508009,nF1=5508010,oF1=5508011,sF1=5607000,rF1=5607001,tF1=5607002,eF1=5607003,$B1=5607004,VB1=5607005,JB1=5607006,QB1=5607007,XB1=5607008,YB1=5607009,GB1=5607010,WB1=5607011,KB1=5607012,qB1=5607013,DB1=5607014,HB1=5607015,ZB1=5607016,UB1=5607017,wB1=5663000,zB1=5663001,jB1=5663002,NB1=5663003,MB1=5663004,LB1=5663005,RB1=5663006,PB1=5663007,OB1=5663008,FB1=5663009,BB1=5663010,SB1=5663011,_B1=5663012,CB1=5663013,IB1=5663014,TB1=5663015,AB1=5663016,pB1=5663017,mB1=5663018,kB1=5663019,EB1=5663020,vB1=5663021,hB1=5663022,xB1=7050000,dB1=7050001,yB1=7050002,bB1=7050003,gB1=7050004,lB1=7050005,fB1=7050006,uB1=7050007,aB1=7050008,iB1=7050009,cB1=7050010,nB1=7050011,oB1=7050012,sB1=7050013,rB1=7050014,tB1=7050015,eB1=7050016,$S1=7050017,VS1=7050018,JS1=7050019,QS1=7050020,XS1=7050021,YS1=7050022,GS1=7050023,WS1=7050024,KS1=7050025,qS1=7050026,DS1=7050027,HS1=7050028,ZS1=7050029,US1=7050030,wS1=7050031,zS1=7050032,jS1=7050033,NS1=7050034,MS1=7050035,LS1=7050036,RS1=7618000,PS1=7618001,OS1=7618002,FS1=7618003,BS1=7618004,SS1=7618005,_S1=7618006,CS1=7618007,IS1=7618008,TS1=7618009,BU=8078000,SU=8078001,gm=8078002,lm=8078003,fm=8078004,um=8078005,am=8078006,_U=8078007,CU=8078008,im=8078009,cm=8078010,IU=8078011,AS1=8078012,nm=8078013,om=8078014,sm=8078015,rm=8078016,TU=8078017,AU=8078018,pS1=8078019,tm=8078020,em=8078021,pU=8078022,$k=8078023,mS1=8100000,kS1=8100001,ES1=8100002,vS1=8100003,hS1=8190000,xS1=8190001,dS1=8190002,yS1=8190003,bS1=8190004,gS1=9900000,lS1=9900001,fS1=9900002,uS1=9900003,aS1=9900004,iS1=9900005,cS1=9900006;var nS1={[zO1]:"Account not found at address: $address",[LO1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[MO1]:"Expected decoded account at address: $address",[NO1]:"Failed to decode account data at address: $address",[jO1]:"Accounts not found at addresses: $addresses",[ZO1]:"Unable to find a viable program address bump seed.",[YO1]:"$putativeAddress is not a base58-encoded address.",[QO1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[GO1]:"The `CryptoKey` must be an `Ed25519` public key.",[wO1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[HO1]:"Invalid seeds; point must fall off the Ed25519 curve.",[WO1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[qO1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[DO1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[KO1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[UO1]:"Program address cannot end with PDA marker.",[XO1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[_P1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[FP1]:"The network has progressed past the last block for which this transaction could have been committed.",[BU]:"Codec [$codecDescription] cannot decode empty byte arrays.",[pU]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[tm]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[um]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[am]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[fm]:"Encoder and decoder must either both be fixed-size or variable-size.",[CU]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[gm]:"Expected a fixed-size codec, got a variable-size one.",[nm]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[lm]:"Expected a variable-size codec, got a fixed-size one.",[pS1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[SU]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[AU]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[im]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[cm]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[sm]:"Invalid literal union variant. Expected one of [$variants], got $value.",[_U]:"Expected [$codecDescription] to have $expected items, got $actual.",[AS1]:"Invalid value $value for base $base with alphabet $alphabet.",[rm]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[IU]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[om]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[em]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[TU]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[$k]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[IO1]:"No random values implementation could be found.",[iO1]:"instruction requires an uninitialized account",[GF1]:"instruction tries to borrow reference for an account which is already borrowed",[WF1]:"instruction left account with an outstanding borrowed reference",[XF1]:"program other than the account's owner changed the size of the account data",[lO1]:"account data too small for instruction",[YF1]:"instruction expected an executable account",[TF1]:"An account does not have enough lamports to be rent-exempt",[pF1]:"Program arithmetic overflowed",[IF1]:"Failed to serialize or deserialize account data: $encodedData",[xF1]:"Builtin programs must consume compute units",[zF1]:"Cross-program invocation call depth too deep",[PF1]:"Computational budget exceeded",[qF1]:"custom program error: #$code",[$F1]:"instruction contains duplicate accounts",[KF1]:"instruction modifications of multiply-passed account differ",[UF1]:"executable accounts must be rent exempt",[HF1]:"instruction changed executable accounts data",[ZF1]:"instruction changed the balance of an executable account",[VF1]:"instruction changed executable bit of an account",[rO1]:"instruction modified data of an account it does not own",[sO1]:"instruction spent from the balance of an account it does not own",[dO1]:"generic instruction error",[kF1]:"Provided owner is not allowed",[_F1]:"Account is immutable",[CF1]:"Incorrect authority provided",[uO1]:"incorrect program id for instruction",[fO1]:"insufficient funds for instruction",[gO1]:"invalid account data for instruction",[AF1]:"Invalid account owner",[yO1]:"invalid program argument",[DF1]:"program returned invalid error code",[bO1]:"invalid instruction data",[RF1]:"Failed to reallocate account data",[LF1]:"Provided seeds do not result in a valid address",[EF1]:"Accounts data allocations exceeded the maximum allowed per transaction",[vF1]:"Max accounts exceeded",[hF1]:"Max instruction trace length exceeded",[MF1]:"Length of the seed is too long for address generation",[jF1]:"An account required by the instruction is missing",[aO1]:"missing required signature for instruction",[oO1]:"instruction illegally modified the program id of an account",[QF1]:"insufficient account keys for instruction",[OF1]:"Cross-program invocation with unauthorized signer or writable account",[FF1]:"Failed to create program execution environment",[SF1]:"Program failed to compile",[BF1]:"Program failed to complete",[eO1]:"instruction modified data of a read-only account",[tO1]:"instruction changed the balance of a read-only account",[NF1]:"Cross-program invocation reentrancy not allowed for this instruction",[JF1]:"instruction modified rent epoch of an account",[nO1]:"sum of account balances before and after instruction do not match",[cO1]:"instruction requires an initialized account",[xO1]:"",[wF1]:"Unsupported program id",[mF1]:"Unsupported sysvar",[iS1]:"Invalid instruction plan kind: $kind.",[OS1]:"The provided instruction plan is empty.",[SS1]:"No failed transaction plan result was found in the provided transaction plan result.",[BS1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[FS1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[RS1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[cS1]:"Invalid transaction plan kind: $kind.",[PS1]:"No more instructions to pack; the message packer has completed the instruction plan.",[_S1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[CS1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[IS1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[TS1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[EO1]:"The instruction does not have any accounts.",[vO1]:"The instruction does not have any data.",[hO1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[CP1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[BP1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[fS1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[aS1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[lS1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[gS1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[uS1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[EP1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[vP1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[xP1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[hP1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[kP1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[aP1]:"$__serverMessage",[JO1]:"$__serverMessage",[eP1]:"$__serverMessage",[fP1]:"$__serverMessage",[bP1]:"Epoch rewards period still active at slot $slot",[cP1]:"$__serverMessage",[nP1]:"$__serverMessage",[dP1]:"Failed to query long-term storage; please try again",[gP1]:"Minimum context slot has not been reached",[tP1]:"Node is unhealthy; behind by $numSlotsBehind slots",[oP1]:"No snapshot",[VO1]:"Transaction simulation failed",[yP1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[sP1]:"$__serverMessage",[iP1]:"Transaction history is not available from this node",[rP1]:"$__serverMessage",[uP1]:"Transaction signature length mismatch",[$O1]:"Transaction signature verification failure",[lP1]:"$__serverMessage",[TO1]:"Key pair bytes must be of length 64, got $byteLength.",[AO1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[pO1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[kO1]:"The provided private key does not match the provided public key.",[mO1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[IP1]:"Lamports value must be in the range [0, 2e64-1]",[TP1]:"`$value` cannot be parsed as a `BigInt`",[mP1]:"$message",[AP1]:"`$value` cannot be parsed as a `Number`",[SP1]:"No nonce account could be found at address `$nonceAccountAddress`",[eF1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[qB1]:"Attempted to sign an offchain message with an address that is not a signer for it",[tF1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[KB1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[sF1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[QB1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[XB1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[YB1]:"Offchain message content must be non-empty",[VB1]:"Offchain message must specify the address of at least one required signer",[GB1]:"Offchain message envelope must reserve space for at least one signature",[$B1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[HB1]:"The signatories of this offchain message must be listed in lexicographical order",[ZB1]:"An address must be listed no more than once among the signatories of an offchain message",[WB1]:"Offchain message is missing signatures for addresses: $addresses.",[UB1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[rF1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[DB1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[JB1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[hS1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[dS1]:"WebSocket was closed before payload could be added to the send buffer",[yS1]:"WebSocket connection closed",[bS1]:"WebSocket failed to connect",[xS1]:"Failed to obtain a subscription id from the server",[vS1]:"Could not find an API plan for RPC method: `$method`",[mS1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[ES1]:"HTTP error ($statusCode): $message",[kS1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[dF1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[yF1]:"The provided value does not implement the `KeyPairSigner` interface",[gF1]:"The provided value does not implement the `MessageModifyingSigner` interface",[lF1]:"The provided value does not implement the `MessagePartialSigner` interface",[bF1]:"The provided value does not implement any of the `MessageSigner` interfaces",[uF1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[aF1]:"The provided value does not implement the `TransactionPartialSigner` interface",[iF1]:"The provided value does not implement the `TransactionSendingSigner` interface",[fF1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[cF1]:"More than one `TransactionSendingSigner` was identified.",[nF1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[oF1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[CO1]:"Cannot export a non-extractable key.",[PO1]:"No digest implementation could be found.",[RO1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[OO1]:`This runtime does not support the generation of Ed25519 key pairs.
53
+
54
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
55
+
56
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[FO1]:"No signature verification implementation could be found.",[BO1]:"No key generation implementation could be found.",[SO1]:"No signing implementation could be found.",[_O1]:"No key export implementation could be found.",[pP1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[eB1]:"Transaction processing left an account with an outstanding borrowed reference",[dB1]:"Account in use",[yB1]:"Account loaded twice",[bB1]:"Attempt to debit an account but found no record of a prior credit.",[GS1]:"Transaction loads an address table account that doesn't exist",[uB1]:"This transaction has already been processed",[aB1]:"Blockhash not found",[iB1]:"Loader call chain is too deep",[tB1]:"Transactions are currently disabled due to cluster maintenance",[US1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[lB1]:"Insufficient funds for fee",[wS1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[fB1]:"This account may not be used to pay transaction fees",[nB1]:"Transaction contains an invalid account reference",[KS1]:"Transaction loads an address table account with invalid data",[qS1]:"Transaction address table lookup uses an invalid index",[WS1]:"Transaction loads an address table account with an invalid owner",[jS1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[sB1]:"This program may not be used for executing instructions",[DS1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[JS1]:"Transaction loads a writable account that cannot be written",[zS1]:"Transaction exceeded max loaded accounts data size cap",[cB1]:"Transaction requires a fee but has no signature present",[gB1]:"Attempt to load a program that does not exist",[MS1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[NS1]:"ResanitizationNeeded",[rB1]:"Transaction failed to sanitize accounts offsets correctly",[oB1]:"Transaction did not pass signature verification",[YS1]:"Transaction locked too many accounts",[LS1]:"Sum of account balances before and after transaction do not match",[xB1]:"The transaction failed with the error `$errorName`",[VS1]:"Transaction version is unsupported",[XS1]:"Transaction would exceed account data limit within the block",[ZS1]:"Transaction would exceed total account data limit",[QS1]:"Transaction would exceed max account limit within the block",[$S1]:"Transaction would exceed max Block Cost Limit",[HS1]:"Transaction would exceed max Vote Cost Limit",[TB1]:"Attempted to sign a transaction with an address that is not a signer for it",[BB1]:"Transaction is missing an address at index: $index.",[AB1]:"Transaction has no expected signers therefore it cannot be encoded",[EB1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[jB1]:"Transaction does not have a blockhash lifetime",[NB1]:"Transaction is not a durable nonce transaction",[LB1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[RB1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[OB1]:"No fee payer set in CompiledTransaction",[PB1]:"Could not find program address at index $index",[mB1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[kB1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[SB1]:"Transaction is missing a fee payer.",[_B1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[IB1]:"Transaction first instruction is not advance nonce account instruction.",[CB1]:"Transaction with no instructions cannot be durable nonce transaction.",[wB1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[zB1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[pB1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[FB1]:"Transaction is missing signatures for addresses: $addresses.",[MB1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[vB1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[hB1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},m8="i",p4="t";function oS1($,V={}){let J=nS1[$];if(J.length===0)return"";let Q;function X(G){if(Q[p4]===2){let W=J.slice(Q[m8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[p4]===1)Y.push(J.slice(Q[m8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[m8]:0,[p4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[p4]){case 0:K={[m8]:W,[p4]:1};break;case 1:if(G==="\\")K={[m8]:W,[p4]:0};else if(G==="$")K={[m8]:W,[p4]:2};break;case 2:if(G==="\\")K={[m8]:W,[p4]:0};else if(G==="$")K={[m8]:W,[p4]:2};else if(!G.match(/\w/))K={[m8]:W,[p4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function sS1($,V={}){return oS1($,V)}var l6=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=sS1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function Vk($,V,J){let Q=J===0&&$.length===V.length?$:$.slice(J,J+V.length);return rS1(Q,V)}function rS1($,V){return $.length===V.length&&$.every((J,Q)=>J===V[Q])}function C$($,V){return"fixedSize"in V?V.fixedSize:V.getSizeFromValue($)}function k8($){return Object.freeze({...$,encode:(V)=>{let J=new Uint8Array(C$(V,$));return $.write(V,J,0),J}})}function r9($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function _J($){return"fixedSize"in $&&typeof $.fixedSize==="number"}function Jk($,V,J=0){if(V.length-J<=0)throw new l6(BU,{codecDescription:$})}function mU($,V,J,Q=0){let X=J.length-Q;if(X<V)throw new l6(SU,{bytesLength:X,codecDescription:$,expected:V})}function Qk($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength,Y;if(typeof SharedArrayBuffer>"u")Y=$.buffer;else if($.buffer instanceof SharedArrayBuffer)Y=new ArrayBuffer($.length),new Uint8Array(Y).set(new Uint8Array($));else Y=$.buffer;return(Q===0||Q===-$.byteLength)&&X===$.byteLength?Y:Y.slice(Q,Q+X)}function I$($,V){return r9({...$,read:(J,Q)=>{let[X,Y]=$.read(J,Q);return[V(X,J,Q),Y]}})}function eS1($,V,J,Q){if(Q<V||Q>J)throw new l6(IU,{codecDescription:$,max:J,min:V,value:Q})}function Xk($){return $?.endian===1?!1:!0}function $_1($){return k8({fixedSize:$.size,write(V,J,Q){if($.range)eS1($.name,$.range[0],$.range[1],V);let X=new ArrayBuffer($.size);return $.set(new DataView(X),V,Xk($.config)),J.set(new Uint8Array(X),Q),Q+$.size}})}function Yk($){return r9({fixedSize:$.size,read(V,J=0){Jk($.name,V,J),mU($.name,$.size,V,J);let Q=new DataView(Qk(V,J,$.size));return[$.get(Q,Xk($.config)),J+$.size]}})}var Gk=($={})=>$_1({config:$,name:"u32",range:[0,Number("0xffffffff")],set:(V,J,Q)=>V.setUint32(0,Number(J),Q),size:4}),Wk=($={})=>Yk({config:$,get:(V,J)=>V.getUint32(0,J),name:"u32",size:4});var NG=()=>Yk({get:($)=>$.getUint8(0),name:"u8",size:1});function V_1($,V,J){if(V!==J)throw new l6(_U,{actual:J,codecDescription:$,expected:V})}function J_1($){return $.reduce((V,J)=>V===null||J===null?null:Math.max(V,J),0)}function T$($){return $.reduce((V,J)=>V===null||J===null?null:V+J,0)}function CJ($){return _J($)?$.fixedSize:null}function A$($){return _J($)?$.fixedSize:$.maxSize??null}function E8($,V={}){let J=V.size??Gk(),Q=MG(J,CJ($)),X=MG(J,A$($))??void 0;return k8({...Q!==null?{fixedSize:Q}:{getSizeFromValue:(Y)=>{return(typeof J==="object"?C$(Y.length,J):0)+[...Y].reduce((W,K)=>W+C$(K,$),0)},maxSize:X},write:(Y,G,W)=>{if(typeof J==="number")V_1("array",J,Y.length);if(typeof J==="object")W=J.write(Y.length,G,W);return Y.forEach((K)=>{W=$.write(K,G,W)}),W}})}function L6($,V={}){let J=V.size??Wk(),Q=CJ($),X=MG(J,Q),Y=MG(J,A$($))??void 0;return r9({...X!==null?{fixedSize:X}:{maxSize:Y},read:(G,W)=>{let K=[];if(typeof J==="object"&&G.slice(W).length===0)return[K,W];if(J==="remainder"){while(W<G.length){let[U,z]=$.read(G,W);W=z,K.push(U)}return[K,W]}let[D,H]=typeof J==="number"?[J,W]:J.read(G,W);W=H;for(let U=0;U<D;U+=1){let[z,M]=$.read(G,W);W=M,K.push(z)}return[K,W]}})}function MG($,V){if(typeof $!=="number")return null;if($===0)return 0;return V===null?null:V*$}function t9($={}){return I$($.size??NG(),(V)=>Number(V)===1)}function p$(){return k8({getSizeFromValue:($)=>$.length,write:($,V,J)=>{return V.set($,J),J+$.length}})}function b5(){return r9({read:($,V)=>{let J=$.slice(V);return[J,V+J.length]}})}var Q_1=()=>r9({read($,V){return[$.slice(V).reduce((Q,X)=>Q+X.toString(16).padStart(2,"0"),""),$.length]}});function LG($){return k8({fixedSize:$.length,write:(V,J,Q)=>{return J.set($,Q),Q+$.length}})}function RG($){return r9({fixedSize:$.length,read:(V,J)=>{let Q=Q_1();if(!Vk(V,$,J))throw new l6(AU,{constant:$,data:V,hexConstant:Q.decode($),hexData:Q.decode(V),offset:J});return[void 0,J+$.length]}})}function v8($){let V=T$($.map(CJ)),J=T$($.map(A$))??void 0;return r9({...V===null?{maxSize:J}:{fixedSize:V},read:(Q,X)=>{let Y=[];return $.forEach((G)=>{let[W,K]=G.read(Q,X);Y.push(W),X=K}),[Y,X]}})}function EU($,V){let J=Kk($),Q=(Y,G,W)=>{let K=V(Y);return kU($,K),$[K].write(Y,G,W)};if(J!==null)return k8({fixedSize:J,write:Q});let X=qk($);return k8({...X!==null?{maxSize:X}:{},getSizeFromValue:(Y)=>{let G=V(Y);return kU($,G),C$(Y,$[G])},write:Q})}function vU($,V){let J=Kk($),Q=(Y,G)=>{let W=V(Y,G);return kU($,W),$[W].read(Y,G)};if(J!==null)return r9({fixedSize:J,read:Q});let X=qk($);return r9({...X!==null?{maxSize:X}:{},read:Q})}function kU($,V){if(typeof $[V]>"u")throw new l6(TU,{maxRange:$.length-1,minRange:0,variant:V})}function Kk($){if($.length===0)return 0;if(!_J($[0]))return null;let V=$[0].fixedSize;return $.every((Q)=>_J(Q)&&Q.fixedSize===V)?V:null}function qk($){return J_1($.map((V)=>A$(V)))}function Dk($,V={}){let J=V.discriminator??"__kind",Q=V.size??NG();return vU($.map(([X,Y])=>I$(v8([Q,Y]),([,G])=>({[J]:X,...G}))),(X,Y)=>Number(Q.read(X,Y)[0]))}function X_1($){let V=[...new Set(Object.values($).filter((G)=>typeof G==="number"))].sort(),J=Object.fromEntries(Object.entries($).slice(V.length)),Q=Object.keys(J),X=Object.values(J),Y=[...new Set([...Q,...X.filter((G)=>typeof G==="string")])];return{enumKeys:Q,enumRecord:J,enumValues:X,numericalValues:V,stringValues:Y}}function Y_1({discriminator:$,enumKeys:V,enumValues:J,useValuesAsDiscriminators:Q}){if(!Q)return $>=0&&$<V.length?$:-1;return G_1(J,(X)=>X===$)}function G_1($,V){let J=$.length;while(J--)if(V($[J],J,$))return J;return-1}function W_1($){if($.length===0)return"";let V=[$[0],$[0]],J=[];for(let Q=1;Q<$.length;Q++){let X=$[Q];if(V[1]+1===X)V[1]=X;else J.push(V[0]===V[1]?`${V[0]}`:`${V[0]}-${V[1]}`),V=[X,X]}return J.push(V[0]===V[1]?`${V[0]}`:`${V[0]}-${V[1]}`),J.join(", ")}function Hk($,V={}){let J=V.size??NG(),Q=V.useValuesAsDiscriminators??!1,{enumKeys:X,enumValues:Y,numericalValues:G}=X_1($);if(Q&&Y.some((W)=>typeof W==="string"))throw new l6(pU,{stringValues:Y.filter((W)=>typeof W==="string")});return I$(J,(W)=>{let K=Number(W),D=Y_1({discriminator:K,enumKeys:X,enumValues:Y,useValuesAsDiscriminators:Q});if(D<0){let H=Q?G:[...Array(X.length).keys()];throw new l6(CU,{discriminator:K,formattedValidDiscriminators:W_1(H),validDiscriminators:H})}return Y[D]})}function Zk($,V){return I$(v8([...V,$]),(J)=>J[J.length-1])}function Uk($,V,J={}){return I$(L6(v8([$,V]),J),(Q)=>new Map(Q))}function g5(){return r9({fixedSize:0,read:($,V)=>[void 0,V]})}function e9($){let V=$.map(([,X])=>X),J=T$(V.map(CJ)),Q=T$(V.map(A$))??void 0;return k8({...J===null?{getSizeFromValue:(X)=>$.map(([Y,G])=>C$(X[Y],G)).reduce((Y,G)=>Y+G,0),maxSize:Q}:{fixedSize:J},write:(X,Y,G)=>{return $.forEach(([W,K])=>{G=K.write(X[W],Y,G)}),G}})}function P2($){let V=$.map(([,X])=>X),J=T$(V.map(CJ)),Q=T$(V.map(A$))??void 0;return r9({...J===null?{maxSize:Q}:{fixedSize:J},read:(X,Y)=>{let G={};return $.forEach(([W,K])=>{let[D,H]=K.read(X,Y);Y=H,G[W]=D}),[G,Y]}})}var K_1=1,q_1=2,D_1=3,H_1=4,Z_1=5,U_1=6,w_1=7,z_1=8,j_1=9,N_1=10,M_1=-32700,L_1=-32603,R_1=-32602,P_1=-32601,O_1=-32600,F_1=-32019,B_1=-32018,S_1=-32017,__1=-32016,C_1=-32015,I_1=-32014,T_1=-32013,A_1=-32012,p_1=-32011,m_1=-32010,k_1=-32009,E_1=-32008,v_1=-32007,h_1=-32006,x_1=-32005,d_1=-32004,y_1=-32003,b_1=-32002,g_1=-32001,l_1=2800000,f_1=2800001,u_1=2800002,a_1=2800003,i_1=2800004,c_1=2800005,n_1=2800006,o_1=2800007,s_1=2800008,r_1=2800009,t_1=2800010,e_1=2800011,$C1=3230000,VC1=32300001,JC1=3230002,QC1=3230003,XC1=3230004,YC1=3610000,GC1=3610001,WC1=3610002,KC1=3610003,qC1=3610004,DC1=3610005,HC1=3610006,ZC1=3610007,UC1=3611000,wC1=3704000,zC1=3704001,jC1=3704002,NC1=3704003,MC1=3704004,LC1=4128000,RC1=4128001,PC1=4128002,OC1=4615000,FC1=4615001,BC1=4615002,SC1=4615003,_C1=4615004,CC1=4615005,IC1=4615006,TC1=4615007,AC1=4615008,pC1=4615009,mC1=4615010,kC1=4615011,EC1=4615012,vC1=4615013,hC1=4615014,xC1=4615015,dC1=4615016,yC1=4615017,bC1=4615018,gC1=4615019,lC1=4615020,fC1=4615021,uC1=4615022,aC1=4615023,iC1=4615024,cC1=4615025,nC1=4615026,oC1=4615027,sC1=4615028,rC1=4615029,tC1=4615030,eC1=4615031,$I1=4615032,VI1=4615033,JI1=4615034,QI1=4615035,XI1=4615036,YI1=4615037,GI1=4615038,WI1=4615039,KI1=4615040,qI1=4615041,DI1=4615042,HI1=4615043,ZI1=4615044,UI1=4615045,wI1=4615046,zI1=4615047,jI1=4615048,NI1=4615049,MI1=4615050,LI1=4615051,RI1=4615052,PI1=4615053,OI1=4615054,FI1=5508000,BI1=5508001,SI1=5508002,_I1=5508003,CI1=5508004,II1=5508005,TI1=5508006,AI1=5508007,pI1=5508008,mI1=5508009,kI1=5508010,EI1=5508011,vI1=5607000,hI1=5607001,xI1=5607002,dI1=5607003,yI1=5607004,bI1=5607005,gI1=5607006,lI1=5607007,fI1=5607008,uI1=5607009,aI1=5607010,iI1=5607011,cI1=5607012,nI1=5607013,oI1=5607014,sI1=5607015,rI1=5607016,tI1=5607017,eI1=5663000,$T1=5663001,VT1=5663002,JT1=5663003,QT1=5663004,XT1=5663005,YT1=5663006,GT1=5663007,WT1=5663008,KT1=5663009,qT1=5663010,DT1=5663011,HT1=5663012,ZT1=5663013,UT1=5663014,wT1=5663015,zT1=5663016,jT1=5663017,NT1=5663018,MT1=5663019,LT1=5663020,RT1=5663021,PT1=5663022,OT1=7050000,FT1=7050001,BT1=7050002,ST1=7050003,_T1=7050004,CT1=7050005,IT1=7050006,TT1=7050007,AT1=7050008,pT1=7050009,mT1=7050010,kT1=7050011,ET1=7050012,vT1=7050013,hT1=7050014,xT1=7050015,dT1=7050016,yT1=7050017,bT1=7050018,gT1=7050019,lT1=7050020,fT1=7050021,uT1=7050022,aT1=7050023,iT1=7050024,cT1=7050025,nT1=7050026,oT1=7050027,sT1=7050028,rT1=7050029,tT1=7050030,eT1=7050031,$A1=7050032,VA1=7050033,JA1=7050034,QA1=7050035,XA1=7050036,YA1=7618000,GA1=7618001,WA1=7618002,KA1=7618003,qA1=7618004,DA1=7618005,HA1=7618006,ZA1=7618007,UA1=7618008,wA1=7618009,zA1=8078000,jA1=8078001,NA1=8078002,MA1=8078003,LA1=8078004,RA1=8078005,PA1=8078006,OA1=8078007,FA1=8078008,BA1=8078009,SA1=8078010,hU=8078011,_A1=8078012,CA1=8078013,IA1=8078014,TA1=8078015,AA1=8078016,pA1=8078017,mA1=8078018,kA1=8078019,EA1=8078020,vA1=8078021,hA1=8078022,xA1=8078023,dA1=8100000,yA1=8100001,bA1=8100002,gA1=8100003,lA1=8190000,fA1=8190001,uA1=8190002,aA1=8190003,iA1=8190004,cA1=9900000,nA1=9900001,oA1=9900002,sA1=9900003,rA1=9900004,tA1=9900005,eA1=9900006;var $p1={[$C1]:"Account not found at address: $address",[XC1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[QC1]:"Expected decoded account at address: $address",[JC1]:"Failed to decode account data at address: $address",[VC1]:"Accounts not found at addresses: $addresses",[r_1]:"Unable to find a viable program address bump seed.",[u_1]:"$putativeAddress is not a base58-encoded address.",[l_1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[a_1]:"The `CryptoKey` must be an `Ed25519` public key.",[e_1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[s_1]:"Invalid seeds; point must fall off the Ed25519 curve.",[i_1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[n_1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[o_1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[c_1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[t_1]:"Program address cannot end with PDA marker.",[f_1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[H_1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[K_1]:"The network has progressed past the last block for which this transaction could have been committed.",[zA1]:"Codec [$codecDescription] cannot decode empty byte arrays.",[hA1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[EA1]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[RA1]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[PA1]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[LA1]:"Encoder and decoder must either both be fixed-size or variable-size.",[FA1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[NA1]:"Expected a fixed-size codec, got a variable-size one.",[CA1]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[MA1]:"Expected a variable-size codec, got a fixed-size one.",[kA1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[jA1]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[mA1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[BA1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[SA1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[TA1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[OA1]:"Expected [$codecDescription] to have $expected items, got $actual.",[_A1]:"Invalid value $value for base $base with alphabet $alphabet.",[AA1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[hU]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[IA1]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[vA1]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[pA1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[xA1]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[UC1]:"No random values implementation could be found.",[pC1]:"instruction requires an uninitialized account",[aC1]:"instruction tries to borrow reference for an account which is already borrowed",[iC1]:"instruction left account with an outstanding borrowed reference",[fC1]:"program other than the account's owner changed the size of the account data",[CC1]:"account data too small for instruction",[uC1]:"instruction expected an executable account",[wI1]:"An account does not have enough lamports to be rent-exempt",[jI1]:"Program arithmetic overflowed",[UI1]:"Failed to serialize or deserialize account data: $encodedData",[OI1]:"Builtin programs must consume compute units",[$I1]:"Cross-program invocation call depth too deep",[GI1]:"Computational budget exceeded",[nC1]:"custom program error: #$code",[yC1]:"instruction contains duplicate accounts",[cC1]:"instruction modifications of multiply-passed account differ",[tC1]:"executable accounts must be rent exempt",[sC1]:"instruction changed executable accounts data",[rC1]:"instruction changed the balance of an executable account",[bC1]:"instruction changed executable bit of an account",[hC1]:"instruction modified data of an account it does not own",[vC1]:"instruction spent from the balance of an account it does not own",[FC1]:"generic instruction error",[MI1]:"Provided owner is not allowed",[HI1]:"Account is immutable",[ZI1]:"Incorrect authority provided",[TC1]:"incorrect program id for instruction",[IC1]:"insufficient funds for instruction",[_C1]:"invalid account data for instruction",[zI1]:"Invalid account owner",[BC1]:"invalid program argument",[oC1]:"program returned invalid error code",[SC1]:"invalid instruction data",[YI1]:"Failed to reallocate account data",[XI1]:"Provided seeds do not result in a valid address",[LI1]:"Accounts data allocations exceeded the maximum allowed per transaction",[RI1]:"Max accounts exceeded",[PI1]:"Max instruction trace length exceeded",[QI1]:"Length of the seed is too long for address generation",[VI1]:"An account required by the instruction is missing",[AC1]:"missing required signature for instruction",[EC1]:"instruction illegally modified the program id of an account",[lC1]:"insufficient account keys for instruction",[WI1]:"Cross-program invocation with unauthorized signer or writable account",[KI1]:"Failed to create program execution environment",[DI1]:"Program failed to compile",[qI1]:"Program failed to complete",[dC1]:"instruction modified data of a read-only account",[xC1]:"instruction changed the balance of a read-only account",[JI1]:"Cross-program invocation reentrancy not allowed for this instruction",[gC1]:"instruction modified rent epoch of an account",[kC1]:"sum of account balances before and after instruction do not match",[mC1]:"instruction requires an initialized account",[OC1]:"",[eC1]:"Unsupported program id",[NI1]:"Unsupported sysvar",[tA1]:"Invalid instruction plan kind: $kind.",[WA1]:"The provided instruction plan is empty.",[DA1]:"No failed transaction plan result was found in the provided transaction plan result.",[qA1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[KA1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[YA1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[eA1]:"Invalid transaction plan kind: $kind.",[GA1]:"No more instructions to pack; the message packer has completed the instruction plan.",[HA1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[ZA1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[UA1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[wA1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[LC1]:"The instruction does not have any accounts.",[RC1]:"The instruction does not have any data.",[PC1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Z_1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[q_1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[oA1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[rA1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[nA1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[cA1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[sA1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[L_1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[R_1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[O_1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[P_1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[M_1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[A_1]:"$__serverMessage",[g_1]:"$__serverMessage",[d_1]:"$__serverMessage",[I_1]:"$__serverMessage",[S_1]:"Epoch rewards period still active at slot $slot",[m_1]:"$__serverMessage",[k_1]:"$__serverMessage",[F_1]:"Failed to query long-term storage; please try again",[__1]:"Minimum context slot has not been reached",[x_1]:"Node is unhealthy; behind by $numSlotsBehind slots",[E_1]:"No snapshot",[b_1]:"Transaction simulation failed",[B_1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[v_1]:"$__serverMessage",[p_1]:"Transaction history is not available from this node",[h_1]:"$__serverMessage",[T_1]:"Transaction signature length mismatch",[y_1]:"Transaction signature verification failure",[C_1]:"$__serverMessage",[wC1]:"Key pair bytes must be of length 64, got $byteLength.",[zC1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[jC1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[MC1]:"The provided private key does not match the provided public key.",[NC1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[U_1]:"Lamports value must be in the range [0, 2e64-1]",[w_1]:"`$value` cannot be parsed as a `BigInt`",[N_1]:"$message",[z_1]:"`$value` cannot be parsed as a `Number`",[D_1]:"No nonce account could be found at address `$nonceAccountAddress`",[dI1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[nI1]:"Attempted to sign an offchain message with an address that is not a signer for it",[xI1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[cI1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[vI1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[lI1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[fI1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[uI1]:"Offchain message content must be non-empty",[bI1]:"Offchain message must specify the address of at least one required signer",[aI1]:"Offchain message envelope must reserve space for at least one signature",[yI1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[sI1]:"The signatories of this offchain message must be listed in lexicographical order",[rI1]:"An address must be listed no more than once among the signatories of an offchain message",[iI1]:"Offchain message is missing signatures for addresses: $addresses.",[tI1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[hI1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[oI1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[gI1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[lA1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[uA1]:"WebSocket was closed before payload could be added to the send buffer",[aA1]:"WebSocket connection closed",[iA1]:"WebSocket failed to connect",[fA1]:"Failed to obtain a subscription id from the server",[gA1]:"Could not find an API plan for RPC method: `$method`",[dA1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[bA1]:"HTTP error ($statusCode): $message",[yA1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[FI1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[BI1]:"The provided value does not implement the `KeyPairSigner` interface",[_I1]:"The provided value does not implement the `MessageModifyingSigner` interface",[CI1]:"The provided value does not implement the `MessagePartialSigner` interface",[SI1]:"The provided value does not implement any of the `MessageSigner` interfaces",[TI1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[AI1]:"The provided value does not implement the `TransactionPartialSigner` interface",[pI1]:"The provided value does not implement the `TransactionSendingSigner` interface",[II1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[mI1]:"More than one `TransactionSendingSigner` was identified.",[kI1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[EI1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[ZC1]:"Cannot export a non-extractable key.",[GC1]:"No digest implementation could be found.",[YC1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[WC1]:`This runtime does not support the generation of Ed25519 key pairs.
57
+
58
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
59
+
60
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[KC1]:"No signature verification implementation could be found.",[qC1]:"No key generation implementation could be found.",[DC1]:"No signing implementation could be found.",[HC1]:"No key export implementation could be found.",[j_1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[dT1]:"Transaction processing left an account with an outstanding borrowed reference",[FT1]:"Account in use",[BT1]:"Account loaded twice",[ST1]:"Attempt to debit an account but found no record of a prior credit.",[aT1]:"Transaction loads an address table account that doesn't exist",[TT1]:"This transaction has already been processed",[AT1]:"Blockhash not found",[pT1]:"Loader call chain is too deep",[xT1]:"Transactions are currently disabled due to cluster maintenance",[tT1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[CT1]:"Insufficient funds for fee",[eT1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[IT1]:"This account may not be used to pay transaction fees",[kT1]:"Transaction contains an invalid account reference",[cT1]:"Transaction loads an address table account with invalid data",[nT1]:"Transaction address table lookup uses an invalid index",[iT1]:"Transaction loads an address table account with an invalid owner",[VA1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[vT1]:"This program may not be used for executing instructions",[oT1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[gT1]:"Transaction loads a writable account that cannot be written",[$A1]:"Transaction exceeded max loaded accounts data size cap",[mT1]:"Transaction requires a fee but has no signature present",[_T1]:"Attempt to load a program that does not exist",[QA1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[JA1]:"ResanitizationNeeded",[hT1]:"Transaction failed to sanitize accounts offsets correctly",[ET1]:"Transaction did not pass signature verification",[uT1]:"Transaction locked too many accounts",[XA1]:"Sum of account balances before and after transaction do not match",[OT1]:"The transaction failed with the error `$errorName`",[bT1]:"Transaction version is unsupported",[fT1]:"Transaction would exceed account data limit within the block",[rT1]:"Transaction would exceed total account data limit",[lT1]:"Transaction would exceed max account limit within the block",[yT1]:"Transaction would exceed max Block Cost Limit",[sT1]:"Transaction would exceed max Vote Cost Limit",[wT1]:"Attempted to sign a transaction with an address that is not a signer for it",[qT1]:"Transaction is missing an address at index: $index.",[zT1]:"Transaction has no expected signers therefore it cannot be encoded",[LT1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[VT1]:"Transaction does not have a blockhash lifetime",[JT1]:"Transaction is not a durable nonce transaction",[XT1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[YT1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[WT1]:"No fee payer set in CompiledTransaction",[GT1]:"Could not find program address at index $index",[NT1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[MT1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[DT1]:"Transaction is missing a fee payer.",[HT1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[UT1]:"Transaction first instruction is not advance nonce account instruction.",[ZT1]:"Transaction with no instructions cannot be durable nonce transaction.",[eI1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[$T1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[jT1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[KT1]:"Transaction is missing signatures for addresses: $addresses.",[QT1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[RT1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[PT1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},h8="i",m4="t";function Vp1($,V={}){let J=$p1[$];if(J.length===0)return"";let Q;function X(G){if(Q[m4]===2){let W=J.slice(Q[h8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[m4]===1)Y.push(J.slice(Q[h8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[h8]:0,[m4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[m4]){case 0:K={[h8]:W,[m4]:1};break;case 1:if(G==="\\")K={[h8]:W,[m4]:0};else if(G==="$")K={[h8]:W,[m4]:2};break;case 2:if(G==="\\")K={[h8]:W,[m4]:0};else if(G==="$")K={[h8]:W,[m4]:2};else if(!G.match(/\w/))K={[h8]:W,[m4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function Jp1($,V={}){return Vp1($,V)}var wk=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=Jp1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function Qp1($,V,J,Q){if(Q<V||Q>J)throw new wk(hU,{codecDescription:$,max:J,min:V,value:Q})}function jk($){return $?.endian===1?!1:!0}function xU($){return _$({fixedSize:$.size,write(V,J,Q){if($.range)Qp1($.name,$.range[0],$.range[1],V);let X=new ArrayBuffer($.size);return $.set(new DataView(X),V,jk($.config)),J.set(new Uint8Array(X),Q),Q+$.size}})}function m$($){return BJ({fixedSize:$.size,read(V,J=0){dm($.name,V,J),jG($.name,$.size,V,J);let Q=new DataView(ym(V,J,$.size));return[$.get(Q,jk($.config)),J+$.size]}})}var dU=($={})=>m$({config:$,get:(V,J)=>V.getFloat64(0,J),name:"f64",size:8});var yU=($={})=>m$({config:$,get:(V,J)=>V.getInt16(0,J),name:"i16",size:2});var i2=($={})=>m$({config:$,get:(V,J)=>V.getUint16(0,J),name:"u16",size:2});var bU=($={})=>xU({config:$,name:"u32",range:[0,Number("0xffffffff")],set:(V,J,Q)=>V.setUint32(0,Number(J),Q),size:4}),k4=($={})=>m$({config:$,get:(V,J)=>V.getUint32(0,J),name:"u32",size:4});var PG=($={})=>xU({config:$,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(V,J,Q)=>V.setBigUint64(0,BigInt(J),Q),size:8}),Y9=($={})=>m$({config:$,get:(V,J)=>V.getBigUint64(0,J),name:"u64",size:8});var R6=()=>xU({name:"u8",range:[0,Number("0xff")],set:($,V)=>$.setUint8(0,Number(V)),size:1}),gU=()=>m$({get:($)=>$.getUint8(0),name:"u8",size:1});var Xp1=1,Yp1=2,Gp1=3,Wp1=4,Kp1=5,qp1=6,Dp1=7,Hp1=8,Zp1=9,Up1=10,wp1=-32700,zp1=-32603,jp1=-32602,Np1=-32601,Mp1=-32600,Lp1=-32019,Rp1=-32018,Pp1=-32017,Op1=-32016,Fp1=-32015,Bp1=-32014,Sp1=-32013,_p1=-32012,Cp1=-32011,Ip1=-32010,Tp1=-32009,Ap1=-32008,pp1=-32007,mp1=-32006,kp1=-32005,Ep1=-32004,vp1=-32003,hp1=-32002,xp1=-32001,dp1=2800000,yp1=2800001,bp1=2800002,gp1=2800003,lp1=2800004,fp1=2800005,up1=2800006,ap1=2800007,ip1=2800008,cp1=2800009,np1=2800010,op1=2800011,sp1=3230000,rp1=32300001,tp1=3230002,ep1=3230003,$m1=3230004,Vm1=3610000,Jm1=3610001,Qm1=3610002,Xm1=3610003,Ym1=3610004,Gm1=3610005,Wm1=3610006,Km1=3610007,qm1=3611000,Dm1=3704000,Hm1=3704001,Zm1=3704002,Um1=3704003,wm1=3704004,zm1=4128000,jm1=4128001,Nm1=4128002,Mm1=4615000,Lm1=4615001,Rm1=4615002,Pm1=4615003,Om1=4615004,Fm1=4615005,Bm1=4615006,Sm1=4615007,_m1=4615008,Cm1=4615009,Im1=4615010,Tm1=4615011,Am1=4615012,pm1=4615013,mm1=4615014,km1=4615015,Em1=4615016,vm1=4615017,hm1=4615018,xm1=4615019,dm1=4615020,ym1=4615021,bm1=4615022,gm1=4615023,lm1=4615024,fm1=4615025,um1=4615026,am1=4615027,im1=4615028,cm1=4615029,nm1=4615030,om1=4615031,sm1=4615032,rm1=4615033,tm1=4615034,em1=4615035,$k1=4615036,Vk1=4615037,Jk1=4615038,Qk1=4615039,Xk1=4615040,Yk1=4615041,Gk1=4615042,Wk1=4615043,Kk1=4615044,qk1=4615045,Dk1=4615046,Hk1=4615047,Zk1=4615048,Uk1=4615049,wk1=4615050,zk1=4615051,jk1=4615052,Nk1=4615053,Mk1=4615054,Lk1=5508000,Rk1=5508001,Pk1=5508002,Ok1=5508003,Fk1=5508004,Bk1=5508005,Sk1=5508006,_k1=5508007,Ck1=5508008,Ik1=5508009,Tk1=5508010,Ak1=5508011,pk1=5607000,mk1=5607001,kk1=5607002,Ek1=5607003,vk1=5607004,hk1=5607005,xk1=5607006,dk1=5607007,yk1=5607008,bk1=5607009,gk1=5607010,lk1=5607011,fk1=5607012,uk1=5607013,ak1=5607014,ik1=5607015,ck1=5607016,nk1=5607017,ok1=5663000,sk1=5663001,rk1=5663002,tk1=5663003,ek1=5663004,$E1=5663005,VE1=5663006,JE1=5663007,QE1=5663008,XE1=5663009,YE1=5663010,GE1=5663011,WE1=5663012,KE1=5663013,qE1=5663014,DE1=5663015,HE1=5663016,ZE1=5663017,UE1=5663018,wE1=5663019,zE1=5663020,jE1=5663021,NE1=5663022,ME1=7050000,LE1=7050001,RE1=7050002,PE1=7050003,OE1=7050004,FE1=7050005,BE1=7050006,SE1=7050007,_E1=7050008,CE1=7050009,IE1=7050010,TE1=7050011,AE1=7050012,pE1=7050013,mE1=7050014,kE1=7050015,EE1=7050016,vE1=7050017,hE1=7050018,xE1=7050019,dE1=7050020,yE1=7050021,bE1=7050022,gE1=7050023,lE1=7050024,fE1=7050025,uE1=7050026,aE1=7050027,iE1=7050028,cE1=7050029,nE1=7050030,oE1=7050031,sE1=7050032,rE1=7050033,tE1=7050034,eE1=7050035,$v1=7050036,Vv1=7618000,Jv1=7618001,Qv1=7618002,Xv1=7618003,Yv1=7618004,Gv1=7618005,Wv1=7618006,Kv1=7618007,qv1=7618008,Dv1=7618009,lU=8078000,fU=8078001,uU=8078002,Nk=8078003,Mk=8078004,Lk=8078005,Rk=8078006,Hv1=8078007,Zv1=8078008,Uv1=8078009,wv1=8078010,zv1=8078011,jv1=8078012,Pk=8078013,Ok=8078014,Nv1=8078015,Mv1=8078016,Lv1=8078017,Rv1=8078018,Pv1=8078019,Fk=8078020,Bk=8078021,Ov1=8078022,Sk=8078023,Fv1=8100000,Bv1=8100001,Sv1=8100002,_v1=8100003,Cv1=8190000,Iv1=8190001,Tv1=8190002,Av1=8190003,pv1=8190004,mv1=9900000,kv1=9900001,Ev1=9900002,vv1=9900003,hv1=9900004,xv1=9900005,dv1=9900006;var yv1={[sp1]:"Account not found at address: $address",[$m1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[ep1]:"Expected decoded account at address: $address",[tp1]:"Failed to decode account data at address: $address",[rp1]:"Accounts not found at addresses: $addresses",[cp1]:"Unable to find a viable program address bump seed.",[bp1]:"$putativeAddress is not a base58-encoded address.",[dp1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[gp1]:"The `CryptoKey` must be an `Ed25519` public key.",[op1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[ip1]:"Invalid seeds; point must fall off the Ed25519 curve.",[lp1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[up1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[ap1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[fp1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[np1]:"Program address cannot end with PDA marker.",[yp1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Wp1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Xp1]:"The network has progressed past the last block for which this transaction could have been committed.",[lU]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ov1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Fk]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Lk]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Rk]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Mk]:"Encoder and decoder must either both be fixed-size or variable-size.",[Zv1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[uU]:"Expected a fixed-size codec, got a variable-size one.",[Pk]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Nk]:"Expected a variable-size codec, got a fixed-size one.",[Pv1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[fU]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Rv1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Uv1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[wv1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Nv1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Hv1]:"Expected [$codecDescription] to have $expected items, got $actual.",[jv1]:"Invalid value $value for base $base with alphabet $alphabet.",[Mv1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[zv1]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Ok]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Bk]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Lv1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Sk]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[qm1]:"No random values implementation could be found.",[Cm1]:"instruction requires an uninitialized account",[gm1]:"instruction tries to borrow reference for an account which is already borrowed",[lm1]:"instruction left account with an outstanding borrowed reference",[ym1]:"program other than the account's owner changed the size of the account data",[Fm1]:"account data too small for instruction",[bm1]:"instruction expected an executable account",[Dk1]:"An account does not have enough lamports to be rent-exempt",[Zk1]:"Program arithmetic overflowed",[qk1]:"Failed to serialize or deserialize account data: $encodedData",[Mk1]:"Builtin programs must consume compute units",[sm1]:"Cross-program invocation call depth too deep",[Jk1]:"Computational budget exceeded",[um1]:"custom program error: #$code",[vm1]:"instruction contains duplicate accounts",[fm1]:"instruction modifications of multiply-passed account differ",[nm1]:"executable accounts must be rent exempt",[im1]:"instruction changed executable accounts data",[cm1]:"instruction changed the balance of an executable account",[hm1]:"instruction changed executable bit of an account",[mm1]:"instruction modified data of an account it does not own",[pm1]:"instruction spent from the balance of an account it does not own",[Lm1]:"generic instruction error",[wk1]:"Provided owner is not allowed",[Wk1]:"Account is immutable",[Kk1]:"Incorrect authority provided",[Sm1]:"incorrect program id for instruction",[Bm1]:"insufficient funds for instruction",[Om1]:"invalid account data for instruction",[Hk1]:"Invalid account owner",[Rm1]:"invalid program argument",[am1]:"program returned invalid error code",[Pm1]:"invalid instruction data",[Vk1]:"Failed to reallocate account data",[$k1]:"Provided seeds do not result in a valid address",[zk1]:"Accounts data allocations exceeded the maximum allowed per transaction",[jk1]:"Max accounts exceeded",[Nk1]:"Max instruction trace length exceeded",[em1]:"Length of the seed is too long for address generation",[rm1]:"An account required by the instruction is missing",[_m1]:"missing required signature for instruction",[Am1]:"instruction illegally modified the program id of an account",[dm1]:"insufficient account keys for instruction",[Qk1]:"Cross-program invocation with unauthorized signer or writable account",[Xk1]:"Failed to create program execution environment",[Gk1]:"Program failed to compile",[Yk1]:"Program failed to complete",[Em1]:"instruction modified data of a read-only account",[km1]:"instruction changed the balance of a read-only account",[tm1]:"Cross-program invocation reentrancy not allowed for this instruction",[xm1]:"instruction modified rent epoch of an account",[Tm1]:"sum of account balances before and after instruction do not match",[Im1]:"instruction requires an initialized account",[Mm1]:"",[om1]:"Unsupported program id",[Uk1]:"Unsupported sysvar",[xv1]:"Invalid instruction plan kind: $kind.",[Qv1]:"The provided instruction plan is empty.",[Gv1]:"No failed transaction plan result was found in the provided transaction plan result.",[Yv1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[Xv1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[Vv1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[dv1]:"Invalid transaction plan kind: $kind.",[Jv1]:"No more instructions to pack; the message packer has completed the instruction plan.",[Wv1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[Kv1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[qv1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[Dv1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[zm1]:"The instruction does not have any accounts.",[jm1]:"The instruction does not have any data.",[Nm1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Kp1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Yp1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Ev1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[hv1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[kv1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[mv1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[vv1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[zp1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[jp1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Mp1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Np1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[wp1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[_p1]:"$__serverMessage",[xp1]:"$__serverMessage",[Ep1]:"$__serverMessage",[Bp1]:"$__serverMessage",[Pp1]:"Epoch rewards period still active at slot $slot",[Ip1]:"$__serverMessage",[Tp1]:"$__serverMessage",[Lp1]:"Failed to query long-term storage; please try again",[Op1]:"Minimum context slot has not been reached",[kp1]:"Node is unhealthy; behind by $numSlotsBehind slots",[Ap1]:"No snapshot",[hp1]:"Transaction simulation failed",[Rp1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[pp1]:"$__serverMessage",[Cp1]:"Transaction history is not available from this node",[mp1]:"$__serverMessage",[Sp1]:"Transaction signature length mismatch",[vp1]:"Transaction signature verification failure",[Fp1]:"$__serverMessage",[Dm1]:"Key pair bytes must be of length 64, got $byteLength.",[Hm1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Zm1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[wm1]:"The provided private key does not match the provided public key.",[Um1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[qp1]:"Lamports value must be in the range [0, 2e64-1]",[Dp1]:"`$value` cannot be parsed as a `BigInt`",[Up1]:"$message",[Hp1]:"`$value` cannot be parsed as a `Number`",[Gp1]:"No nonce account could be found at address `$nonceAccountAddress`",[Ek1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[uk1]:"Attempted to sign an offchain message with an address that is not a signer for it",[kk1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[fk1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[pk1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[dk1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[yk1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[bk1]:"Offchain message content must be non-empty",[hk1]:"Offchain message must specify the address of at least one required signer",[gk1]:"Offchain message envelope must reserve space for at least one signature",[vk1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[ik1]:"The signatories of this offchain message must be listed in lexicographical order",[ck1]:"An address must be listed no more than once among the signatories of an offchain message",[lk1]:"Offchain message is missing signatures for addresses: $addresses.",[nk1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[mk1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[ak1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[xk1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[Cv1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Tv1]:"WebSocket was closed before payload could be added to the send buffer",[Av1]:"WebSocket connection closed",[pv1]:"WebSocket failed to connect",[Iv1]:"Failed to obtain a subscription id from the server",[_v1]:"Could not find an API plan for RPC method: `$method`",[Fv1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Sv1]:"HTTP error ($statusCode): $message",[Bv1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Lk1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Rk1]:"The provided value does not implement the `KeyPairSigner` interface",[Ok1]:"The provided value does not implement the `MessageModifyingSigner` interface",[Fk1]:"The provided value does not implement the `MessagePartialSigner` interface",[Pk1]:"The provided value does not implement any of the `MessageSigner` interfaces",[Sk1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[_k1]:"The provided value does not implement the `TransactionPartialSigner` interface",[Ck1]:"The provided value does not implement the `TransactionSendingSigner` interface",[Bk1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Ik1]:"More than one `TransactionSendingSigner` was identified.",[Tk1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Ak1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Km1]:"Cannot export a non-extractable key.",[Jm1]:"No digest implementation could be found.",[Vm1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Qm1]:`This runtime does not support the generation of Ed25519 key pairs.
61
+
62
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
63
+
64
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Xm1]:"No signature verification implementation could be found.",[Ym1]:"No key generation implementation could be found.",[Gm1]:"No signing implementation could be found.",[Wm1]:"No key export implementation could be found.",[Zp1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[EE1]:"Transaction processing left an account with an outstanding borrowed reference",[LE1]:"Account in use",[RE1]:"Account loaded twice",[PE1]:"Attempt to debit an account but found no record of a prior credit.",[gE1]:"Transaction loads an address table account that doesn't exist",[SE1]:"This transaction has already been processed",[_E1]:"Blockhash not found",[CE1]:"Loader call chain is too deep",[kE1]:"Transactions are currently disabled due to cluster maintenance",[nE1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[FE1]:"Insufficient funds for fee",[oE1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[BE1]:"This account may not be used to pay transaction fees",[TE1]:"Transaction contains an invalid account reference",[fE1]:"Transaction loads an address table account with invalid data",[uE1]:"Transaction address table lookup uses an invalid index",[lE1]:"Transaction loads an address table account with an invalid owner",[rE1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[pE1]:"This program may not be used for executing instructions",[aE1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[xE1]:"Transaction loads a writable account that cannot be written",[sE1]:"Transaction exceeded max loaded accounts data size cap",[IE1]:"Transaction requires a fee but has no signature present",[OE1]:"Attempt to load a program that does not exist",[eE1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[tE1]:"ResanitizationNeeded",[mE1]:"Transaction failed to sanitize accounts offsets correctly",[AE1]:"Transaction did not pass signature verification",[bE1]:"Transaction locked too many accounts",[$v1]:"Sum of account balances before and after transaction do not match",[ME1]:"The transaction failed with the error `$errorName`",[hE1]:"Transaction version is unsupported",[yE1]:"Transaction would exceed account data limit within the block",[cE1]:"Transaction would exceed total account data limit",[dE1]:"Transaction would exceed max account limit within the block",[vE1]:"Transaction would exceed max Block Cost Limit",[iE1]:"Transaction would exceed max Vote Cost Limit",[DE1]:"Attempted to sign a transaction with an address that is not a signer for it",[YE1]:"Transaction is missing an address at index: $index.",[HE1]:"Transaction has no expected signers therefore it cannot be encoded",[zE1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[rk1]:"Transaction does not have a blockhash lifetime",[tk1]:"Transaction is not a durable nonce transaction",[$E1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[VE1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[QE1]:"No fee payer set in CompiledTransaction",[JE1]:"Could not find program address at index $index",[UE1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[wE1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[GE1]:"Transaction is missing a fee payer.",[WE1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[qE1]:"Transaction first instruction is not advance nonce account instruction.",[KE1]:"Transaction with no instructions cannot be durable nonce transaction.",[ok1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[sk1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[ZE1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[XE1]:"Transaction is missing signatures for addresses: $addresses.",[ek1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[jE1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[NE1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},x8="i",E4="t";function bv1($,V={}){let J=yv1[$];if(J.length===0)return"";let Q;function X(G){if(Q[E4]===2){let W=J.slice(Q[x8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[E4]===1)Y.push(J.slice(Q[x8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[x8]:0,[E4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[E4]){case 0:K={[x8]:W,[E4]:1};break;case 1:if(G==="\\")K={[x8]:W,[E4]:0};else if(G==="$")K={[x8]:W,[E4]:2};break;case 2:if(G==="\\")K={[x8]:W,[E4]:0};else if(G==="$")K={[x8]:W,[E4]:2};else if(!G.match(/\w/))K={[x8]:W,[E4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function gv1($,V={}){return bv1($,V)}var OG=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=gv1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function lv1($,V){if($.length>=V)return $;let J=new Uint8Array(V).fill(0);return J.set($),J}var fv1=($,V)=>lv1($.length<=V?$:$.slice(0,V),V);function _k($,V,J){let Q=J===0&&$.length===V.length?$:$.slice(J,J+V.length);return uv1(Q,V)}function uv1($,V){return $.length===V.length&&$.every((J,Q)=>J===V[Q])}function FG($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function Ck($){return"fixedSize"in $&&typeof $.fixedSize==="number"}function Ik($){if(!Ck($))throw new OG(uU)}function Tk($,V,J=0){if(V.length-J<=0)throw new OG(lU,{codecDescription:$})}function aU($,V,J,Q=0){let X=J.length-Q;if(X<V)throw new OG(fU,{bytesLength:X,codecDescription:$,expected:V})}function Ak($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength,Y;if(typeof SharedArrayBuffer>"u")Y=$.buffer;else if($.buffer instanceof SharedArrayBuffer)Y=new ArrayBuffer($.length),new Uint8Array(Y).set(new Uint8Array($));else Y=$.buffer;return(Q===0||Q===-$.byteLength)&&X===$.byteLength?Y:Y.slice(Q,Q+X)}function pk($,V){return FG({fixedSize:V,read:(J,Q)=>{if(aU("fixCodecSize",V,J,Q),Q>0||J.length>V)J=J.slice(Q,Q+V);if(Ck($))J=fv1(J,$.fixedSize);let[X]=$.read(J,0);return[X,Q+V]}})}function BG($,V){return FG({...$,read:(J,Q)=>{let[X,Y]=$.read(J,Q);return[V(X,J,Q),Y]}})}function iv1($){return $?.endian===1?!1:!0}function cv1($){return FG({fixedSize:$.size,read(V,J=0){Tk($.name,V,J),aU($.name,$.size,V,J);let Q=new DataView(Ak(V,J,$.size));return[$.get(Q,iv1($.config)),J+$.size]}})}var mk=()=>cv1({get:($)=>$.getUint8(0),name:"u8",size:1});var rv1=($)=>({__option:"Some",value:$}),kk=()=>({__option:"None"});function L9($,V={}){let J=(()=>{if(V.prefix===null)return BG(g5(),()=>!1);return t9({size:V.prefix??mk()})})(),Q=(()=>{if(V.noneValue==="zeroes")return Ik($),pk(g5(),$.fixedSize);if(!V.noneValue)return g5();return RG(V.noneValue)})();return vU([BG(v8([J,Q]),()=>kk()),BG(v8([J,$]),([,X])=>rv1(X))],(X,Y)=>{if(V.prefix===null&&!V.noneValue)return Number(Y<X.length);if(V.prefix===null&&V.noneValue!=null){let G=V.noneValue==="zeroes"?new Uint8Array(Q.fixedSize).fill(0):V.noneValue;return _k(X,G,Y)?0:1}return Number(J.read(X,Y)[0])})}var tv1=1,ev1=2,$h1=3,Vh1=4,Jh1=5,Qh1=6,Xh1=7,Yh1=8,Gh1=9,Wh1=10,Kh1=-32700,qh1=-32603,Dh1=-32602,Hh1=-32601,Zh1=-32600,Uh1=-32019,wh1=-32018,zh1=-32017,jh1=-32016,Nh1=-32015,Mh1=-32014,Lh1=-32013,Rh1=-32012,Ph1=-32011,Oh1=-32010,Fh1=-32009,Bh1=-32008,Sh1=-32007,_h1=-32006,Ch1=-32005,Ih1=-32004,Th1=-32003,Ah1=-32002,ph1=-32001,mh1=2800000,kh1=2800001,Eh1=2800002,vh1=2800003,hh1=2800004,xh1=2800005,dh1=2800006,yh1=2800007,bh1=2800008,gh1=2800009,lh1=2800010,fh1=2800011,uh1=3230000,ah1=32300001,ih1=3230002,ch1=3230003,nh1=3230004,oh1=3610000,sh1=3610001,rh1=3610002,th1=3610003,eh1=3610004,$x1=3610005,Vx1=3610006,Jx1=3610007,Qx1=3611000,Xx1=3704000,Yx1=3704001,Gx1=3704002,Wx1=3704003,Kx1=3704004,qx1=4128000,Dx1=4128001,Hx1=4128002,Zx1=4615000,Ux1=4615001,wx1=4615002,zx1=4615003,jx1=4615004,Nx1=4615005,Mx1=4615006,Lx1=4615007,Rx1=4615008,Px1=4615009,Ox1=4615010,Fx1=4615011,Bx1=4615012,Sx1=4615013,_x1=4615014,Cx1=4615015,Ix1=4615016,Tx1=4615017,Ax1=4615018,px1=4615019,mx1=4615020,kx1=4615021,Ex1=4615022,vx1=4615023,hx1=4615024,xx1=4615025,dx1=4615026,yx1=4615027,bx1=4615028,gx1=4615029,lx1=4615030,fx1=4615031,ux1=4615032,ax1=4615033,ix1=4615034,cx1=4615035,nx1=4615036,ox1=4615037,sx1=4615038,rx1=4615039,tx1=4615040,ex1=4615041,$d1=4615042,Vd1=4615043,Jd1=4615044,Qd1=4615045,Xd1=4615046,Yd1=4615047,Gd1=4615048,Wd1=4615049,Kd1=4615050,qd1=4615051,Dd1=4615052,Hd1=4615053,Zd1=4615054,Ud1=5508000,wd1=5508001,zd1=5508002,jd1=5508003,Nd1=5508004,Md1=5508005,Ld1=5508006,Rd1=5508007,Pd1=5508008,Od1=5508009,Fd1=5508010,Bd1=5508011,Sd1=5607000,_d1=5607001,Cd1=5607002,Id1=5607003,Td1=5607004,Ad1=5607005,pd1=5607006,md1=5607007,kd1=5607008,Ed1=5607009,vd1=5607010,hd1=5607011,xd1=5607012,dd1=5607013,yd1=5607014,bd1=5607015,gd1=5607016,ld1=5607017,fd1=5663000,ud1=5663001,ad1=5663002,id1=5663003,cd1=5663004,nd1=5663005,od1=5663006,sd1=5663007,rd1=5663008,td1=5663009,ed1=5663010,$y1=5663011,Vy1=5663012,Jy1=5663013,Qy1=5663014,Xy1=5663015,Yy1=5663016,Gy1=5663017,SG=5663018,_G=5663019,Wy1=5663020,Ky1=5663021,qy1=5663022,Dy1=7050000,Hy1=7050001,Zy1=7050002,Uy1=7050003,wy1=7050004,zy1=7050005,jy1=7050006,Ny1=7050007,My1=7050008,Ly1=7050009,Ry1=7050010,Py1=7050011,Oy1=7050012,Fy1=7050013,By1=7050014,Sy1=7050015,_y1=7050016,Cy1=7050017,Iy1=7050018,Ty1=7050019,Ay1=7050020,py1=7050021,my1=7050022,ky1=7050023,Ey1=7050024,vy1=7050025,hy1=7050026,xy1=7050027,dy1=7050028,yy1=7050029,by1=7050030,gy1=7050031,ly1=7050032,fy1=7050033,uy1=7050034,ay1=7050035,iy1=7050036,cy1=7618000,ny1=7618001,oy1=7618002,sy1=7618003,ry1=7618004,ty1=7618005,ey1=7618006,$b1=7618007,Vb1=7618008,Jb1=7618009,Qb1=8078000,Xb1=8078001,Yb1=8078002,Gb1=8078003,Wb1=8078004,Kb1=8078005,qb1=8078006,Db1=8078007,Hb1=8078008,Zb1=8078009,Ub1=8078010,wb1=8078011,zb1=8078012,jb1=8078013,Nb1=8078014,Mb1=8078015,Lb1=8078016,Rb1=8078017,Pb1=8078018,Ob1=8078019,Fb1=8078020,Bb1=8078021,Sb1=8078022,_b1=8078023,Cb1=8100000,Ib1=8100001,Tb1=8100002,Ab1=8100003,pb1=8190000,mb1=8190001,kb1=8190002,Eb1=8190003,vb1=8190004,hb1=9900000,xb1=9900001,db1=9900002,yb1=9900003,bb1=9900004,gb1=9900005,lb1=9900006;var fb1={[uh1]:"Account not found at address: $address",[nh1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[ch1]:"Expected decoded account at address: $address",[ih1]:"Failed to decode account data at address: $address",[ah1]:"Accounts not found at addresses: $addresses",[gh1]:"Unable to find a viable program address bump seed.",[Eh1]:"$putativeAddress is not a base58-encoded address.",[mh1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[vh1]:"The `CryptoKey` must be an `Ed25519` public key.",[fh1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[bh1]:"Invalid seeds; point must fall off the Ed25519 curve.",[hh1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[dh1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[yh1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[xh1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[lh1]:"Program address cannot end with PDA marker.",[kh1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Vh1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[tv1]:"The network has progressed past the last block for which this transaction could have been committed.",[Qb1]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Sb1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Fb1]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Kb1]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[qb1]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Wb1]:"Encoder and decoder must either both be fixed-size or variable-size.",[Hb1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Yb1]:"Expected a fixed-size codec, got a variable-size one.",[jb1]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Gb1]:"Expected a variable-size codec, got a fixed-size one.",[Ob1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Xb1]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Pb1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Zb1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Ub1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Mb1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Db1]:"Expected [$codecDescription] to have $expected items, got $actual.",[zb1]:"Invalid value $value for base $base with alphabet $alphabet.",[Lb1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[wb1]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Nb1]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Bb1]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Rb1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[_b1]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Qx1]:"No random values implementation could be found.",[Px1]:"instruction requires an uninitialized account",[vx1]:"instruction tries to borrow reference for an account which is already borrowed",[hx1]:"instruction left account with an outstanding borrowed reference",[kx1]:"program other than the account's owner changed the size of the account data",[Nx1]:"account data too small for instruction",[Ex1]:"instruction expected an executable account",[Xd1]:"An account does not have enough lamports to be rent-exempt",[Gd1]:"Program arithmetic overflowed",[Qd1]:"Failed to serialize or deserialize account data: $encodedData",[Zd1]:"Builtin programs must consume compute units",[ux1]:"Cross-program invocation call depth too deep",[sx1]:"Computational budget exceeded",[dx1]:"custom program error: #$code",[Tx1]:"instruction contains duplicate accounts",[xx1]:"instruction modifications of multiply-passed account differ",[lx1]:"executable accounts must be rent exempt",[bx1]:"instruction changed executable accounts data",[gx1]:"instruction changed the balance of an executable account",[Ax1]:"instruction changed executable bit of an account",[_x1]:"instruction modified data of an account it does not own",[Sx1]:"instruction spent from the balance of an account it does not own",[Ux1]:"generic instruction error",[Kd1]:"Provided owner is not allowed",[Vd1]:"Account is immutable",[Jd1]:"Incorrect authority provided",[Lx1]:"incorrect program id for instruction",[Mx1]:"insufficient funds for instruction",[jx1]:"invalid account data for instruction",[Yd1]:"Invalid account owner",[wx1]:"invalid program argument",[yx1]:"program returned invalid error code",[zx1]:"invalid instruction data",[ox1]:"Failed to reallocate account data",[nx1]:"Provided seeds do not result in a valid address",[qd1]:"Accounts data allocations exceeded the maximum allowed per transaction",[Dd1]:"Max accounts exceeded",[Hd1]:"Max instruction trace length exceeded",[cx1]:"Length of the seed is too long for address generation",[ax1]:"An account required by the instruction is missing",[Rx1]:"missing required signature for instruction",[Bx1]:"instruction illegally modified the program id of an account",[mx1]:"insufficient account keys for instruction",[rx1]:"Cross-program invocation with unauthorized signer or writable account",[tx1]:"Failed to create program execution environment",[$d1]:"Program failed to compile",[ex1]:"Program failed to complete",[Ix1]:"instruction modified data of a read-only account",[Cx1]:"instruction changed the balance of a read-only account",[ix1]:"Cross-program invocation reentrancy not allowed for this instruction",[px1]:"instruction modified rent epoch of an account",[Fx1]:"sum of account balances before and after instruction do not match",[Ox1]:"instruction requires an initialized account",[Zx1]:"",[fx1]:"Unsupported program id",[Wd1]:"Unsupported sysvar",[gb1]:"Invalid instruction plan kind: $kind.",[oy1]:"The provided instruction plan is empty.",[ty1]:"No failed transaction plan result was found in the provided transaction plan result.",[ry1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[sy1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[cy1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[lb1]:"Invalid transaction plan kind: $kind.",[ny1]:"No more instructions to pack; the message packer has completed the instruction plan.",[ey1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[$b1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[Vb1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[Jb1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[qx1]:"The instruction does not have any accounts.",[Dx1]:"The instruction does not have any data.",[Hx1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Jh1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[ev1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[db1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[bb1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[xb1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[hb1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[yb1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[qh1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Dh1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Zh1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Hh1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Kh1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Rh1]:"$__serverMessage",[ph1]:"$__serverMessage",[Ih1]:"$__serverMessage",[Mh1]:"$__serverMessage",[zh1]:"Epoch rewards period still active at slot $slot",[Oh1]:"$__serverMessage",[Fh1]:"$__serverMessage",[Uh1]:"Failed to query long-term storage; please try again",[jh1]:"Minimum context slot has not been reached",[Ch1]:"Node is unhealthy; behind by $numSlotsBehind slots",[Bh1]:"No snapshot",[Ah1]:"Transaction simulation failed",[wh1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Sh1]:"$__serverMessage",[Ph1]:"Transaction history is not available from this node",[_h1]:"$__serverMessage",[Lh1]:"Transaction signature length mismatch",[Th1]:"Transaction signature verification failure",[Nh1]:"$__serverMessage",[Xx1]:"Key pair bytes must be of length 64, got $byteLength.",[Yx1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Gx1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Kx1]:"The provided private key does not match the provided public key.",[Wx1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Qh1]:"Lamports value must be in the range [0, 2e64-1]",[Xh1]:"`$value` cannot be parsed as a `BigInt`",[Wh1]:"$message",[Yh1]:"`$value` cannot be parsed as a `Number`",[$h1]:"No nonce account could be found at address `$nonceAccountAddress`",[Id1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[dd1]:"Attempted to sign an offchain message with an address that is not a signer for it",[Cd1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[xd1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Sd1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[md1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[kd1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Ed1]:"Offchain message content must be non-empty",[Ad1]:"Offchain message must specify the address of at least one required signer",[vd1]:"Offchain message envelope must reserve space for at least one signature",[Td1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[bd1]:"The signatories of this offchain message must be listed in lexicographical order",[gd1]:"An address must be listed no more than once among the signatories of an offchain message",[hd1]:"Offchain message is missing signatures for addresses: $addresses.",[ld1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[_d1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[yd1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[pd1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[pb1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[kb1]:"WebSocket was closed before payload could be added to the send buffer",[Eb1]:"WebSocket connection closed",[vb1]:"WebSocket failed to connect",[mb1]:"Failed to obtain a subscription id from the server",[Ab1]:"Could not find an API plan for RPC method: `$method`",[Cb1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Tb1]:"HTTP error ($statusCode): $message",[Ib1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Ud1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[wd1]:"The provided value does not implement the `KeyPairSigner` interface",[jd1]:"The provided value does not implement the `MessageModifyingSigner` interface",[Nd1]:"The provided value does not implement the `MessagePartialSigner` interface",[zd1]:"The provided value does not implement any of the `MessageSigner` interfaces",[Ld1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Rd1]:"The provided value does not implement the `TransactionPartialSigner` interface",[Pd1]:"The provided value does not implement the `TransactionSendingSigner` interface",[Md1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Od1]:"More than one `TransactionSendingSigner` was identified.",[Fd1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Bd1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Jx1]:"Cannot export a non-extractable key.",[sh1]:"No digest implementation could be found.",[oh1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[rh1]:`This runtime does not support the generation of Ed25519 key pairs.
65
+
66
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
67
+
68
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[th1]:"No signature verification implementation could be found.",[eh1]:"No key generation implementation could be found.",[$x1]:"No signing implementation could be found.",[Vx1]:"No key export implementation could be found.",[Gh1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[_y1]:"Transaction processing left an account with an outstanding borrowed reference",[Hy1]:"Account in use",[Zy1]:"Account loaded twice",[Uy1]:"Attempt to debit an account but found no record of a prior credit.",[ky1]:"Transaction loads an address table account that doesn't exist",[Ny1]:"This transaction has already been processed",[My1]:"Blockhash not found",[Ly1]:"Loader call chain is too deep",[Sy1]:"Transactions are currently disabled due to cluster maintenance",[by1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[zy1]:"Insufficient funds for fee",[gy1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[jy1]:"This account may not be used to pay transaction fees",[Py1]:"Transaction contains an invalid account reference",[vy1]:"Transaction loads an address table account with invalid data",[hy1]:"Transaction address table lookup uses an invalid index",[Ey1]:"Transaction loads an address table account with an invalid owner",[fy1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Fy1]:"This program may not be used for executing instructions",[xy1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Ty1]:"Transaction loads a writable account that cannot be written",[ly1]:"Transaction exceeded max loaded accounts data size cap",[Ry1]:"Transaction requires a fee but has no signature present",[wy1]:"Attempt to load a program that does not exist",[ay1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[uy1]:"ResanitizationNeeded",[By1]:"Transaction failed to sanitize accounts offsets correctly",[Oy1]:"Transaction did not pass signature verification",[my1]:"Transaction locked too many accounts",[iy1]:"Sum of account balances before and after transaction do not match",[Dy1]:"The transaction failed with the error `$errorName`",[Iy1]:"Transaction version is unsupported",[py1]:"Transaction would exceed account data limit within the block",[yy1]:"Transaction would exceed total account data limit",[Ay1]:"Transaction would exceed max account limit within the block",[Cy1]:"Transaction would exceed max Block Cost Limit",[dy1]:"Transaction would exceed max Vote Cost Limit",[Xy1]:"Attempted to sign a transaction with an address that is not a signer for it",[ed1]:"Transaction is missing an address at index: $index.",[Yy1]:"Transaction has no expected signers therefore it cannot be encoded",[Wy1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[ad1]:"Transaction does not have a blockhash lifetime",[id1]:"Transaction is not a durable nonce transaction",[nd1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[od1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[rd1]:"No fee payer set in CompiledTransaction",[sd1]:"Could not find program address at index $index",[SG]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[_G]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[$y1]:"Transaction is missing a fee payer.",[Vy1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Qy1]:"Transaction first instruction is not advance nonce account instruction.",[Jy1]:"Transaction with no instructions cannot be durable nonce transaction.",[fd1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[ud1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Gy1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[td1]:"Transaction is missing signatures for addresses: $addresses.",[cd1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Ky1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[qy1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},d8="i",v4="t";function ub1($,V={}){let J=fb1[$];if(J.length===0)return"";let Q;function X(G){if(Q[v4]===2){let W=J.slice(Q[d8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[v4]===1)Y.push(J.slice(Q[d8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[d8]:0,[v4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[v4]){case 0:K={[d8]:W,[v4]:1};break;case 1:if(G==="\\")K={[d8]:W,[v4]:0};else if(G==="$")K={[d8]:W,[v4]:2};break;case 2:if(G==="\\")K={[d8]:W,[v4]:0};else if(G==="$")K={[d8]:W,[v4]:2};else if(!G.match(/\w/))K={[d8]:W,[v4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function ab1($,V={}){return ub1($,V)}function Ek($,V){if($ instanceof Error&&$.name==="SolanaError"){if(V!==void 0)return $.context.__code===V;return!0}return!1}var CG=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=ab1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function h9($,...V){return V.reduce((J,Q)=>Q(J),$)}var $6=(($)=>{return $[$.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",$[$.READONLY_SIGNER=2]="READONLY_SIGNER",$[$.WRITABLE=1]="WRITABLE",$[$.READONLY=0]="READONLY",$})($6||{}),ib1=2,cb1=1;function d7($){return $>=2}function k$($){return($&cb1)!==0}function iU($,V){return $|V}function vk($){return $|ib1}var nb1=1,ob1=2,sb1=3,rb1=4,tb1=5,eb1=6,$g1=7,Vg1=8,Jg1=9,Qg1=10,Xg1=-32700,Yg1=-32603,Gg1=-32602,Wg1=-32601,Kg1=-32600,qg1=-32019,Dg1=-32018,Hg1=-32017,Zg1=-32016,Ug1=-32015,wg1=-32014,zg1=-32013,jg1=-32012,Ng1=-32011,Mg1=-32010,Lg1=-32009,Rg1=-32008,Pg1=-32007,Og1=-32006,Fg1=-32005,Bg1=-32004,Sg1=-32003,_g1=-32002,Cg1=-32001,Ig1=2800000,Tg1=2800001,Ag1=2800002,pg1=2800003,mg1=2800004,kg1=2800005,Eg1=2800006,vg1=2800007,hg1=2800008,xg1=2800009,dg1=2800010,yg1=2800011,bg1=3230000,gg1=32300001,lg1=3230002,fg1=3230003,ug1=3230004,ag1=3610000,ig1=3610001,cg1=3610002,ng1=3610003,og1=3610004,sg1=3610005,rg1=3610006,tg1=3610007,eg1=3611000,$l1=3704000,Vl1=3704001,Jl1=3704002,Ql1=3704003,Xl1=3704004,Yl1=4128000,Gl1=4128001,Wl1=4128002,Kl1=4615000,ql1=4615001,Dl1=4615002,Hl1=4615003,Zl1=4615004,Ul1=4615005,wl1=4615006,zl1=4615007,jl1=4615008,Nl1=4615009,Ml1=4615010,Ll1=4615011,Rl1=4615012,Pl1=4615013,Ol1=4615014,Fl1=4615015,Bl1=4615016,Sl1=4615017,_l1=4615018,Cl1=4615019,Il1=4615020,Tl1=4615021,Al1=4615022,pl1=4615023,ml1=4615024,kl1=4615025,El1=4615026,vl1=4615027,hl1=4615028,xl1=4615029,dl1=4615030,yl1=4615031,bl1=4615032,gl1=4615033,ll1=4615034,fl1=4615035,ul1=4615036,al1=4615037,il1=4615038,cl1=4615039,nl1=4615040,ol1=4615041,sl1=4615042,rl1=4615043,tl1=4615044,el1=4615045,$f1=4615046,Vf1=4615047,Jf1=4615048,Qf1=4615049,Xf1=4615050,Yf1=4615051,Gf1=4615052,Wf1=4615053,Kf1=4615054,qf1=5508000,Df1=5508001,Hf1=5508002,Zf1=5508003,Uf1=5508004,wf1=5508005,zf1=5508006,jf1=5508007,Nf1=5508008,Mf1=5508009,Lf1=5508010,Rf1=5508011,Pf1=5607000,Of1=5607001,Ff1=5607002,Bf1=5607003,Sf1=5607004,_f1=5607005,Cf1=5607006,If1=5607007,Tf1=5607008,Af1=5607009,pf1=5607010,mf1=5607011,kf1=5607012,Ef1=5607013,vf1=5607014,hf1=5607015,xf1=5607016,df1=5607017,cU=5663000,IG=5663001,hk=5663002,xk=5663003,nU=5663004,dk=5663005,yk=5663006,bk=5663007,gk=5663008,yf1=5663009,bf1=5663010,gf1=5663011,lf1=5663012,ff1=5663013,uf1=5663014,af1=5663015,if1=5663016,cf1=5663017,nf1=5663018,of1=5663019,sf1=5663020,TG=5663021,rf1=5663022,tf1=7050000,ef1=7050001,$u1=7050002,Vu1=7050003,Ju1=7050004,Qu1=7050005,Xu1=7050006,Yu1=7050007,Gu1=7050008,Wu1=7050009,Ku1=7050010,qu1=7050011,Du1=7050012,Hu1=7050013,Zu1=7050014,Uu1=7050015,wu1=7050016,zu1=7050017,ju1=7050018,Nu1=7050019,Mu1=7050020,Lu1=7050021,Ru1=7050022,Pu1=7050023,Ou1=7050024,Fu1=7050025,Bu1=7050026,Su1=7050027,_u1=7050028,Cu1=7050029,Iu1=7050030,Tu1=7050031,Au1=7050032,pu1=7050033,mu1=7050034,ku1=7050035,Eu1=7050036,vu1=7618000,hu1=7618001,xu1=7618002,du1=7618003,yu1=7618004,bu1=7618005,gu1=7618006,lu1=7618007,fu1=7618008,uu1=7618009,oU=8078000,sU=8078001,lk=8078002,fk=8078003,uk=8078004,ak=8078005,ik=8078006,au1=8078007,iu1=8078008,cu1=8078009,nu1=8078010,rU=8078011,tU=8078012,ck=8078013,nk=8078014,ou1=8078015,su1=8078016,ru1=8078017,tu1=8078018,eu1=8078019,ok=8078020,sk=8078021,$a1=8078022,rk=8078023,Va1=8100000,Ja1=8100001,Qa1=8100002,Xa1=8100003,Ya1=8190000,Ga1=8190001,Wa1=8190002,Ka1=8190003,qa1=8190004,Da1=9900000,Ha1=9900001,Za1=9900002,Ua1=9900003,wa1=9900004,za1=9900005,ja1=9900006;var Na1={[bg1]:"Account not found at address: $address",[ug1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[fg1]:"Expected decoded account at address: $address",[lg1]:"Failed to decode account data at address: $address",[gg1]:"Accounts not found at addresses: $addresses",[xg1]:"Unable to find a viable program address bump seed.",[Ag1]:"$putativeAddress is not a base58-encoded address.",[Ig1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[pg1]:"The `CryptoKey` must be an `Ed25519` public key.",[yg1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[hg1]:"Invalid seeds; point must fall off the Ed25519 curve.",[mg1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Eg1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[vg1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[kg1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[dg1]:"Program address cannot end with PDA marker.",[Tg1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[rb1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[nb1]:"The network has progressed past the last block for which this transaction could have been committed.",[oU]:"Codec [$codecDescription] cannot decode empty byte arrays.",[$a1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[ok]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[ak]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[ik]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[uk]:"Encoder and decoder must either both be fixed-size or variable-size.",[iu1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[lk]:"Expected a fixed-size codec, got a variable-size one.",[ck]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[fk]:"Expected a variable-size codec, got a fixed-size one.",[eu1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[sU]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[tu1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[cu1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[nu1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[ou1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[au1]:"Expected [$codecDescription] to have $expected items, got $actual.",[tU]:"Invalid value $value for base $base with alphabet $alphabet.",[su1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[rU]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[nk]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[sk]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[ru1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[rk]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[eg1]:"No random values implementation could be found.",[Nl1]:"instruction requires an uninitialized account",[pl1]:"instruction tries to borrow reference for an account which is already borrowed",[ml1]:"instruction left account with an outstanding borrowed reference",[Tl1]:"program other than the account's owner changed the size of the account data",[Ul1]:"account data too small for instruction",[Al1]:"instruction expected an executable account",[$f1]:"An account does not have enough lamports to be rent-exempt",[Jf1]:"Program arithmetic overflowed",[el1]:"Failed to serialize or deserialize account data: $encodedData",[Kf1]:"Builtin programs must consume compute units",[bl1]:"Cross-program invocation call depth too deep",[il1]:"Computational budget exceeded",[El1]:"custom program error: #$code",[Sl1]:"instruction contains duplicate accounts",[kl1]:"instruction modifications of multiply-passed account differ",[dl1]:"executable accounts must be rent exempt",[hl1]:"instruction changed executable accounts data",[xl1]:"instruction changed the balance of an executable account",[_l1]:"instruction changed executable bit of an account",[Ol1]:"instruction modified data of an account it does not own",[Pl1]:"instruction spent from the balance of an account it does not own",[ql1]:"generic instruction error",[Xf1]:"Provided owner is not allowed",[rl1]:"Account is immutable",[tl1]:"Incorrect authority provided",[zl1]:"incorrect program id for instruction",[wl1]:"insufficient funds for instruction",[Zl1]:"invalid account data for instruction",[Vf1]:"Invalid account owner",[Dl1]:"invalid program argument",[vl1]:"program returned invalid error code",[Hl1]:"invalid instruction data",[al1]:"Failed to reallocate account data",[ul1]:"Provided seeds do not result in a valid address",[Yf1]:"Accounts data allocations exceeded the maximum allowed per transaction",[Gf1]:"Max accounts exceeded",[Wf1]:"Max instruction trace length exceeded",[fl1]:"Length of the seed is too long for address generation",[gl1]:"An account required by the instruction is missing",[jl1]:"missing required signature for instruction",[Rl1]:"instruction illegally modified the program id of an account",[Il1]:"insufficient account keys for instruction",[cl1]:"Cross-program invocation with unauthorized signer or writable account",[nl1]:"Failed to create program execution environment",[sl1]:"Program failed to compile",[ol1]:"Program failed to complete",[Bl1]:"instruction modified data of a read-only account",[Fl1]:"instruction changed the balance of a read-only account",[ll1]:"Cross-program invocation reentrancy not allowed for this instruction",[Cl1]:"instruction modified rent epoch of an account",[Ll1]:"sum of account balances before and after instruction do not match",[Ml1]:"instruction requires an initialized account",[Kl1]:"",[yl1]:"Unsupported program id",[Qf1]:"Unsupported sysvar",[za1]:"Invalid instruction plan kind: $kind.",[xu1]:"The provided instruction plan is empty.",[bu1]:"No failed transaction plan result was found in the provided transaction plan result.",[yu1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[du1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[vu1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[ja1]:"Invalid transaction plan kind: $kind.",[hu1]:"No more instructions to pack; the message packer has completed the instruction plan.",[gu1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[lu1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[fu1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[uu1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[Yl1]:"The instruction does not have any accounts.",[Gl1]:"The instruction does not have any data.",[Wl1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[tb1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[ob1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Za1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[wa1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Ha1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Da1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ua1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yg1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Gg1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Kg1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Wg1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Xg1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[jg1]:"$__serverMessage",[Cg1]:"$__serverMessage",[Bg1]:"$__serverMessage",[wg1]:"$__serverMessage",[Hg1]:"Epoch rewards period still active at slot $slot",[Mg1]:"$__serverMessage",[Lg1]:"$__serverMessage",[qg1]:"Failed to query long-term storage; please try again",[Zg1]:"Minimum context slot has not been reached",[Fg1]:"Node is unhealthy; behind by $numSlotsBehind slots",[Rg1]:"No snapshot",[_g1]:"Transaction simulation failed",[Dg1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Pg1]:"$__serverMessage",[Ng1]:"Transaction history is not available from this node",[Og1]:"$__serverMessage",[zg1]:"Transaction signature length mismatch",[Sg1]:"Transaction signature verification failure",[Ug1]:"$__serverMessage",[$l1]:"Key pair bytes must be of length 64, got $byteLength.",[Vl1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Jl1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Xl1]:"The provided private key does not match the provided public key.",[Ql1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[eb1]:"Lamports value must be in the range [0, 2e64-1]",[$g1]:"`$value` cannot be parsed as a `BigInt`",[Qg1]:"$message",[Vg1]:"`$value` cannot be parsed as a `Number`",[sb1]:"No nonce account could be found at address `$nonceAccountAddress`",[Bf1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[Ef1]:"Attempted to sign an offchain message with an address that is not a signer for it",[Ff1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[kf1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Pf1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[If1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[Tf1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Af1]:"Offchain message content must be non-empty",[_f1]:"Offchain message must specify the address of at least one required signer",[pf1]:"Offchain message envelope must reserve space for at least one signature",[Sf1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[hf1]:"The signatories of this offchain message must be listed in lexicographical order",[xf1]:"An address must be listed no more than once among the signatories of an offchain message",[mf1]:"Offchain message is missing signatures for addresses: $addresses.",[df1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[Of1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[vf1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[Cf1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[Ya1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Wa1]:"WebSocket was closed before payload could be added to the send buffer",[Ka1]:"WebSocket connection closed",[qa1]:"WebSocket failed to connect",[Ga1]:"Failed to obtain a subscription id from the server",[Xa1]:"Could not find an API plan for RPC method: `$method`",[Va1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Qa1]:"HTTP error ($statusCode): $message",[Ja1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[qf1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Df1]:"The provided value does not implement the `KeyPairSigner` interface",[Zf1]:"The provided value does not implement the `MessageModifyingSigner` interface",[Uf1]:"The provided value does not implement the `MessagePartialSigner` interface",[Hf1]:"The provided value does not implement any of the `MessageSigner` interfaces",[zf1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[jf1]:"The provided value does not implement the `TransactionPartialSigner` interface",[Nf1]:"The provided value does not implement the `TransactionSendingSigner` interface",[wf1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Mf1]:"More than one `TransactionSendingSigner` was identified.",[Lf1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Rf1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[tg1]:"Cannot export a non-extractable key.",[ig1]:"No digest implementation could be found.",[ag1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[cg1]:`This runtime does not support the generation of Ed25519 key pairs.
69
+
70
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
71
+
72
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[ng1]:"No signature verification implementation could be found.",[og1]:"No key generation implementation could be found.",[sg1]:"No signing implementation could be found.",[rg1]:"No key export implementation could be found.",[Jg1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[wu1]:"Transaction processing left an account with an outstanding borrowed reference",[ef1]:"Account in use",[$u1]:"Account loaded twice",[Vu1]:"Attempt to debit an account but found no record of a prior credit.",[Pu1]:"Transaction loads an address table account that doesn't exist",[Yu1]:"This transaction has already been processed",[Gu1]:"Blockhash not found",[Wu1]:"Loader call chain is too deep",[Uu1]:"Transactions are currently disabled due to cluster maintenance",[Iu1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Qu1]:"Insufficient funds for fee",[Tu1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Xu1]:"This account may not be used to pay transaction fees",[qu1]:"Transaction contains an invalid account reference",[Fu1]:"Transaction loads an address table account with invalid data",[Bu1]:"Transaction address table lookup uses an invalid index",[Ou1]:"Transaction loads an address table account with an invalid owner",[pu1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Hu1]:"This program may not be used for executing instructions",[Su1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Nu1]:"Transaction loads a writable account that cannot be written",[Au1]:"Transaction exceeded max loaded accounts data size cap",[Ku1]:"Transaction requires a fee but has no signature present",[Ju1]:"Attempt to load a program that does not exist",[ku1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[mu1]:"ResanitizationNeeded",[Zu1]:"Transaction failed to sanitize accounts offsets correctly",[Du1]:"Transaction did not pass signature verification",[Ru1]:"Transaction locked too many accounts",[Eu1]:"Sum of account balances before and after transaction do not match",[tf1]:"The transaction failed with the error `$errorName`",[ju1]:"Transaction version is unsupported",[Lu1]:"Transaction would exceed account data limit within the block",[Cu1]:"Transaction would exceed total account data limit",[Mu1]:"Transaction would exceed max account limit within the block",[zu1]:"Transaction would exceed max Block Cost Limit",[_u1]:"Transaction would exceed max Vote Cost Limit",[af1]:"Attempted to sign a transaction with an address that is not a signer for it",[bf1]:"Transaction is missing an address at index: $index.",[if1]:"Transaction has no expected signers therefore it cannot be encoded",[sf1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[hk]:"Transaction does not have a blockhash lifetime",[xk]:"Transaction is not a durable nonce transaction",[dk]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[yk]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[gk]:"No fee payer set in CompiledTransaction",[bk]:"Could not find program address at index $index",[nf1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[of1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[gf1]:"Transaction is missing a fee payer.",[lf1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[uf1]:"Transaction first instruction is not advance nonce account instruction.",[ff1]:"Transaction with no instructions cannot be durable nonce transaction.",[cU]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[IG]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[cf1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[yf1]:"Transaction is missing signatures for addresses: $addresses.",[nU]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[TG]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[rf1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},y8="i",h4="t";function Ma1($,V={}){let J=Na1[$];if(J.length===0)return"";let Q;function X(G){if(Q[h4]===2){let W=J.slice(Q[y8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[h4]===1)Y.push(J.slice(Q[y8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[y8]:0,[h4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[h4]){case 0:K={[y8]:W,[h4]:1};break;case 1:if(G==="\\")K={[y8]:W,[h4]:0};else if(G==="$")K={[y8]:W,[h4]:2};break;case 2:if(G==="\\")K={[y8]:W,[h4]:0};else if(G==="$")K={[y8]:W,[h4]:2};else if(!G.match(/\w/))K={[y8]:W,[h4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function La1($,V={}){return Ma1($,V)}var V6=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=La1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function tk($){return ZG($)}function AG($){return $}function pG($){return $}var $Q0=-9223372036854775808n;function Ra1($,V){if($.length>=V)return $;let J=new Uint8Array(V).fill(0);return J.set($),J}var Pa1=($,V)=>Ra1($.length<=V?$:$.slice(0,V),V);function eU($,V){return"fixedSize"in V?V.fixedSize:V.getSizeFromValue($)}function f6($){return Object.freeze({...$,encode:(V)=>{let J=new Uint8Array(eU(V,$));return $.write(V,J,0),J}})}function d4($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function x4($){return"fixedSize"in $&&typeof $.fixedSize==="number"}function Oa1($){return!x4($)}function ek($,V,J=0){if(V.length-J<=0)throw new V6(oU,{codecDescription:$})}function mG($,V,J,Q=0){let X=J.length-Q;if(X<V)throw new V6(sU,{bytesLength:X,codecDescription:$,expected:V})}function $E($,V){let J=(G,W,K)=>{let D=$.encode(G);return K=V.write(D.length,W,K),W.set(D,K),K+D.length};if(x4(V)&&x4($))return f6({...$,fixedSize:V.fixedSize+$.fixedSize,write:J});let Q=x4(V)?V.fixedSize:V.maxSize??null,X=x4($)?$.fixedSize:$.maxSize??null,Y=Q!==null&&X!==null?Q+X:null;return f6({...$,...Y!==null?{maxSize:Y}:{},getSizeFromValue:(G)=>{let W=eU(G,$);return eU(W,V)+W},write:J})}function VE($,V){let J=(G,W)=>{let[K,D]=V.read(G,W),H=Number(K);if(W=D,W>0||G.length>H)G=G.slice(W,W+H);return mG("addDecoderSizePrefix",H,G),[$.decode(G),W+H]};if(x4(V)&&x4($))return d4({...$,fixedSize:V.fixedSize+$.fixedSize,read:J});let Q=x4(V)?V.fixedSize:V.maxSize??null,X=x4($)?$.fixedSize:$.maxSize??null,Y=Q!==null&&X!==null?Q+X:null;return d4({...$,...Y!==null?{maxSize:Y}:{},read:J})}function JE($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength,Y;if(typeof SharedArrayBuffer>"u")Y=$.buffer;else if($.buffer instanceof SharedArrayBuffer)Y=new ArrayBuffer($.length),new Uint8Array(Y).set(new Uint8Array($));else Y=$.buffer;return(Q===0||Q===-$.byteLength)&&X===$.byteLength?Y:Y.slice(Q,Q+X)}function QE($,V){return f6({fixedSize:V,write:(J,Q,X)=>{let Y=$.encode(J),G=Y.length>V?Y.slice(0,V):Y;return Q.set(G,X),X+V}})}function XE($,V){return d4({fixedSize:V,read:(J,Q)=>{if(mG("fixCodecSize",V,J,Q),Q>0||J.length>V)J=J.slice(Q,Q+V);if(x4($))J=Pa1(J,$.fixedSize);let[X]=$.read(J,0);return[X,Q+V]}})}function $w($,V){return f6({...Oa1($)?{...$,getSizeFromValue:(J)=>$.getSizeFromValue(V(J))}:$,write:(J,Q,X)=>$.write(V(J),Q,X)})}function Vw($,V){return d4({...$,read:(J,Q)=>{let[X,Y]=$.read(J,Q);return[V(X,J,Q),Y]}})}function YE($,V,J,Q){if(Q<V||Q>J)throw new V6(rU,{codecDescription:$,max:J,min:V,value:Q})}function GE($){return $?.endian===1?!1:!0}function Ba1($){return f6({fixedSize:$.size,write(V,J,Q){if($.range)YE($.name,$.range[0],$.range[1],V);let X=new ArrayBuffer($.size);return $.set(new DataView(X),V,GE($.config)),J.set(new Uint8Array(X),Q),Q+$.size}})}function Sa1($){return d4({fixedSize:$.size,read(V,J=0){ek($.name,V,J),mG($.name,$.size,V,J);let Q=new DataView(JE(V,J,$.size));return[$.get(Q,GE($.config)),J+$.size]}})}var y7=()=>f6({getSizeFromValue:($)=>{if($<=127)return 1;if($<=16383)return 2;return 3},maxSize:3,write:($,V,J)=>{YE("shortU16",0,65535,$);let Q=[0];for(let X=0;;X+=1){let Y=Number($)>>X*7;if(Y===0)break;let G=127&Y;if(Q[X]=G,X>0)Q[X-1]|=128}return V.set(Q,J),J+Q.length}}),b7=()=>d4({maxSize:3,read:($,V)=>{let J=0,Q=0;while(++Q){let X=Q-1,Y=$[V+X],G=127&Y;if(J|=G<<X*7,(Y&128)===0)break}return[J,V+Q]}});var IJ=()=>Ba1({name:"u8",range:[0,Number("0xff")],set:($,V)=>$.setUint8(0,Number(V)),size:1}),TJ=()=>Sa1({get:($)=>$.getUint8(0),name:"u8",size:1});function ZE($){return"lifetimeConstraint"in $&&typeof $.lifetimeConstraint.blockhash==="string"&&typeof $.lifetimeConstraint.lastValidBlockHeight==="bigint"&&tk($.lifetimeConstraint.blockhash)}function UE($,V){if("lifetimeConstraint"in V&&V.lifetimeConstraint&&"blockhash"in V.lifetimeConstraint&&V.lifetimeConstraint.blockhash===$.blockhash&&V.lifetimeConstraint.lastValidBlockHeight===$.lastValidBlockHeight)return V;return Object.freeze({...V,lifetimeConstraint:Object.freeze($)})}function _a1($,V,J=V){if(!V.match(new RegExp(`^[${$}]*$`)))throw new V6(tU,{alphabet:$,base:$.length,value:J})}var Ca1=($)=>{return f6({getSizeFromValue:(V)=>{let[J,Q]=WE(V,$[0]);if(!Q)return V.length;let X=KE(Q,$);return J.length+Math.ceil(X.toString(16).length/2)},write(V,J,Q){if(_a1($,V),V==="")return Q;let[X,Y]=WE(V,$[0]);if(!Y)return J.set(new Uint8Array(X.length).fill(0),Q),Q+X.length;let G=KE(Y,$),W=[];while(G>0n)W.unshift(Number(G%256n)),G/=256n;let K=[...Array(X.length).fill(0),...W];return J.set(K,Q),Q+K.length}})},Ia1=($)=>{return d4({read(V,J){let Q=J===0?V:V.slice(J);if(Q.length===0)return["",0];let X=Q.findIndex((K)=>K!==0);X=X===-1?Q.length:X;let Y=$[0].repeat(X);if(X===Q.length)return[Y,V.length];let G=Q.slice(X).reduce((K,D)=>K*256n+BigInt(D),0n),W=Ta1(G,$);return[Y+W,V.length]}})};function WE($,V){let[J,Q]=$.split(new RegExp(`((?!${V}).*)`));return[J,Q]}function KE($,V){let J=BigInt(V.length),Q=0n;for(let X of $)Q*=J,Q+=BigInt(V.indexOf(X));return Q}function Ta1($,V){let J=BigInt(V.length),Q=[];while($>0n)Q.unshift(V[Number($%J)]),$/=J;return Q.join("")}var wE="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Aa1=()=>Ca1(wE),pa1=()=>Ia1(wE),Jw;function ma1(){if(!Jw){let $=E8(IJ(),{size:y7()});Jw=e9([["lookupTableAddress",A8()],["writableIndexes",$],["readonlyIndexes",$]])}return Jw}var Qw;function ka1(){if(!Qw){let $=L6(TJ(),{size:b7()});Qw=P2([["lookupTableAddress",L2()],["writableIndexes",$],["readonlyIndexes",$]])}return Qw}var Xw;function Yw(){if(!Xw)Xw=IJ();return Xw}var Gw;function Ww(){if(!Gw)Gw=TJ();return Gw}function Ea1(){return e9([["numSignerAccounts",Yw()],["numReadonlySignerAccounts",Yw()],["numReadonlyNonSignerAccounts",Yw()]])}function va1(){return P2([["numSignerAccounts",Ww()],["numReadonlySignerAccounts",Ww()],["numReadonlyNonSignerAccounts",Ww()]])}var Kw;function ha1(){if(!Kw)Kw=$w(e9([["programAddressIndex",IJ()],["accountIndices",E8(IJ(),{size:y7()})],["data",$E(p$(),y7())]]),($)=>{if($.accountIndices!==void 0&&$.data!==void 0)return $;return{...$,accountIndices:$.accountIndices??[],data:$.data??new Uint8Array(0)}});return Kw}var qw;function xa1(){if(!qw)qw=Vw(P2([["programAddressIndex",TJ()],["accountIndices",L6(TJ(),{size:b7()})],["data",VE(b5(),b7())]]),($)=>{if($.accountIndices.length&&$.data.byteLength)return $;let{accountIndices:V,data:J,...Q}=$;return{...Q,...V.length?{accountIndices:V}:null,...J.byteLength?{data:J}:null}});return qw}var zE=0,Dw=128;function da1(){return f6({getSizeFromValue:($)=>$==="legacy"?0:1,maxSize:1,write:($,V,J)=>{if($==="legacy")return J;if($<0||$>127)throw new V6(nU,{actualVersion:$});if($>zE)throw new V6(TG,{unsupportedVersion:$});return V.set([$|Dw],J),J+1}})}function Hw(){return d4({maxSize:1,read:($,V)=>{let J=$[V];if((J&Dw)===0)return["legacy",V];else{let Q=J^Dw;if(Q>zE)throw new V6(TG,{unsupportedVersion:Q});return[Q,V+1]}}})}function qE(){return e9(jE())}function DE(){return $w(e9([...jE(),["addressTableLookups",ba1()]]),($)=>{if($.version==="legacy")return $;return{...$,addressTableLookups:$.addressTableLookups??[]}})}function jE(){let $=EU([LG(new Uint8Array(32)),QE(Aa1(),32)],(V)=>V===void 0?0:1);return[["version",da1()],["header",Ea1()],["staticAccounts",E8(A8(),{size:y7()})],["lifetimeToken",$],["instructions",E8(ha1(),{size:y7()})]]}function ya1(){return[["version",Hw()],["header",va1()],["staticAccounts",L6(L2(),{size:b7()})],["lifetimeToken",XE(pa1(),32)],["instructions",L6(xa1(),{size:b7()})],["addressTableLookups",ga1()]]}function ba1(){return E8(ma1(),{size:y7()})}function ga1(){return L6(ka1(),{size:b7()})}function NE(){return f6({getSizeFromValue:($)=>{if($.version==="legacy")return qE().getSizeFromValue($);else return DE().getSizeFromValue($)},write:($,V,J)=>{if($.version==="legacy")return qE().write($,V,J);else return DE().write($,V,J)}})}function ME(){return Vw(P2(ya1()),({addressTableLookups:$,...V})=>{if(V.version==="legacy"||!$?.length)return V;return{...V,addressTableLookups:$}})}function HE($,V,J){$[V]=J($[V]??{role:$6.READONLY})}var v0=Symbol("AddressMapTypeProperty");function la1($,V){let J={[$]:{[v0]:0,role:$6.WRITABLE_SIGNER}},Q=new Set;for(let X of V){HE(J,X.programAddress,(G)=>{if(Q.add(X.programAddress),v0 in G){if(k$(G.role))switch(G[v0]){case 0:throw new V6(cU,{programAddress:X.programAddress});default:throw new V6(IG,{programAddress:X.programAddress})}if(G[v0]===2)return G}return{[v0]:2,role:$6.READONLY}});let Y;if(!X.accounts)continue;for(let G of X.accounts)HE(J,G.address,(W)=>{let{address:K,...D}=G;if(v0 in W)switch(W[v0]){case 0:return W;case 1:{let H=iU(W.role,D.role);if("lookupTableAddress"in D){if(W.lookupTableAddress!==D.lookupTableAddress&&(Y||=UG())(D.lookupTableAddress,W.lookupTableAddress)<0)return{[v0]:1,...D,role:H}}else if(d7(D.role))return{[v0]:2,role:H};if(W.role!==H)return{...W,role:H};else return W}case 2:{let H=iU(W.role,D.role);if(Q.has(G.address)){if(k$(D.role))throw new V6(IG,{programAddress:G.address});if(W.role!==H)return{...W,role:H};else return W}else if("lookupTableAddress"in D&&!d7(W.role))return{...D,[v0]:1,role:H};else if(W.role!==H)return{...W,role:H};else return W}}if("lookupTableAddress"in D)return{...D,[v0]:1};else return{...D,[v0]:2}})}return J}function fa1($){let V;return Object.entries($).sort(([Q,X],[Y,G])=>{if(X[v0]!==G[v0]){if(X[v0]===0)return-1;else if(G[v0]===0)return 1;else if(X[v0]===2)return-1;else if(G[v0]===2)return 1}let W=d7(X.role);if(W!==d7(G.role))return W?-1:1;let K=k$(X.role);if(K!==k$(G.role))return K?-1:1;if(V||=UG(),X[v0]===1&&G[v0]===1&&X.lookupTableAddress!==G.lookupTableAddress)return V(X.lookupTableAddress,G.lookupTableAddress);else return V(Q,Y)}).map(([Q,X])=>({address:Q,...X}))}function ua1($){let V={};for(let J of $){if(!("lookupTableAddress"in J))continue;let Q=V[J.lookupTableAddress]||={readonlyIndexes:[],writableIndexes:[]};if(J.role===$6.WRITABLE)Q.writableIndexes.push(J.addressIndex);else Q.readonlyIndexes.push(J.addressIndex)}return Object.keys(V).sort(UG()).map((J)=>({lookupTableAddress:J,...V[J]}))}function aa1($){let V=0,J=0,Q=0;for(let X of $){if("lookupTableAddress"in X)break;let Y=k$(X.role);if(d7(X.role)){if(Q++,!Y)J++}else if(!Y)V++}return{numReadonlyNonSignerAccounts:V,numReadonlySignerAccounts:J,numSignerAccounts:Q}}function ia1($){let V={};for(let[J,Q]of $.entries())V[Q.address]=J;return V}function ca1($,V){let J=ia1(V);return $.map(({accounts:Q,data:X,programAddress:Y})=>{return{programAddressIndex:J[Y],...Q?{accountIndices:Q.map(({address:G})=>J[G])}:null,...X?{data:X}:null}})}function na1($){if("nonce"in $)return $.nonce;return $.blockhash}function oa1($){let V=$.findIndex((Q)=>("lookupTableAddress"in Q));return(V===-1?$:$.slice(0,V)).map(({address:Q})=>Q)}function LE($){let V=la1($.feePayer.address,$.instructions),J=fa1(V),Q=$.lifetimeConstraint;return{...$.version!=="legacy"?{addressTableLookups:ua1(J)}:null,...Q?{lifetimeToken:na1(Q)}:null,header:aa1(J),instructions:ca1($.instructions,J),staticAccounts:oa1(J),version:$.version}}function RE($){return Object.freeze({instructions:Object.freeze([]),version:$.version})}var sa1="SysvarRecentB1ockHashes11111111111111111111",ra1="11111111111111111111111111111111";function ta1($){return $.programAddress===ra1&&$.data!=null&&ea1($.data)&&$.accounts?.length===3&&$.accounts[0].address!=null&&$.accounts[0].role===$6.WRITABLE&&$.accounts[1].address===sa1&&$.accounts[1].role===$6.READONLY&&$.accounts[2].address!=null&&d7($.accounts[2].role)}function ea1($){return $.byteLength===4&&$[0]===4&&$[1]===0&&$[2]===0&&$[3]===0}function kG($){return"lifetimeConstraint"in $&&typeof $.lifetimeConstraint.nonce==="string"&&$.instructions[0]!=null&&ta1($.instructions[0])}function PE($,V){if("feePayer"in V&&$===V.feePayer?.address&&$i1(V.feePayer))return V;let J={...V,feePayer:Object.freeze({address:$})};return Object.freeze(J),J}function $i1($){return!!$&&"address"in $&&typeof $.address==="string"&&Object.keys($).length===1}function Zw($,V){return Uw([$],V)}function Uw($,V){return Object.freeze({...V,instructions:Object.freeze([...V.instructions,...$])})}function OE($,V){return Vi1([$],V)}function Vi1($,V){return Object.freeze({...V,instructions:Object.freeze([...$,...V.instructions])})}var Ji1=1,Qi1=2,Xi1=3,Yi1=4,Gi1=5,Wi1=6,Ki1=7,qi1=8,Di1=9,Hi1=10,Zi1=-32700,Ui1=-32603,wi1=-32602,zi1=-32601,ji1=-32600,Ni1=-32019,Mi1=-32018,Li1=-32017,Ri1=-32016,Pi1=-32015,Oi1=-32014,Fi1=-32013,Bi1=-32012,Si1=-32011,_i1=-32010,Ci1=-32009,Ii1=-32008,Ti1=-32007,Ai1=-32006,pi1=-32005,mi1=-32004,ki1=-32003,Ei1=-32002,vi1=-32001,hi1=2800000,xi1=2800001,di1=2800002,yi1=2800003,bi1=2800004,gi1=2800005,li1=2800006,fi1=2800007,ui1=2800008,ai1=2800009,ii1=2800010,ci1=2800011,ni1=3230000,oi1=32300001,si1=3230002,ri1=3230003,ti1=3230004,ei1=3610000,$c1=3610001,Vc1=3610002,Jc1=3610003,Qc1=3610004,Xc1=3610005,Yc1=3610006,Gc1=3610007,Wc1=3611000,Kc1=3704000,qc1=3704001,Dc1=3704002,Hc1=3704003,Zc1=3704004,Uc1=4128000,wc1=4128001,zc1=4128002,jc1=4615000,Nc1=4615001,Mc1=4615002,Lc1=4615003,Rc1=4615004,Pc1=4615005,Oc1=4615006,Fc1=4615007,Bc1=4615008,Sc1=4615009,_c1=4615010,Cc1=4615011,Ic1=4615012,Tc1=4615013,Ac1=4615014,pc1=4615015,mc1=4615016,kc1=4615017,Ec1=4615018,vc1=4615019,hc1=4615020,xc1=4615021,dc1=4615022,yc1=4615023,bc1=4615024,gc1=4615025,lc1=4615026,fc1=4615027,uc1=4615028,ac1=4615029,ic1=4615030,cc1=4615031,nc1=4615032,oc1=4615033,sc1=4615034,rc1=4615035,tc1=4615036,ec1=4615037,$n1=4615038,Vn1=4615039,Jn1=4615040,Qn1=4615041,Xn1=4615042,Yn1=4615043,Gn1=4615044,Wn1=4615045,Kn1=4615046,qn1=4615047,Dn1=4615048,Hn1=4615049,Zn1=4615050,Un1=4615051,wn1=4615052,zn1=4615053,jn1=4615054,Nn1=5508000,Mn1=5508001,Ln1=5508002,Rn1=5508003,Pn1=5508004,On1=5508005,Fn1=5508006,Bn1=5508007,Sn1=5508008,_n1=5508009,Cn1=5508010,In1=5508011,Tn1=5607000,An1=5607001,pn1=5607002,mn1=5607003,kn1=5607004,En1=5607005,vn1=5607006,hn1=5607007,xn1=5607008,dn1=5607009,yn1=5607010,bn1=5607011,gn1=5607012,ln1=5607013,fn1=5607014,un1=5607015,an1=5607016,in1=5607017,cn1=5663000,nn1=5663001,FE=5663002,BE=5663003,on1=5663004,sn1=5663005,rn1=5663006,tn1=5663007,en1=5663008,SE=5663009,$o1=5663010,Vo1=5663011,_E=5663012,Jo1=5663013,Qo1=5663014,ww=5663015,zw=5663016,jw=5663017,Xo1=5663018,Yo1=5663019,CE=5663020,Go1=5663021,IE=5663022,Wo1=7050000,Ko1=7050001,qo1=7050002,Do1=7050003,Ho1=7050004,Zo1=7050005,Uo1=7050006,wo1=7050007,zo1=7050008,jo1=7050009,No1=7050010,Mo1=7050011,Lo1=7050012,Ro1=7050013,Po1=7050014,Oo1=7050015,Fo1=7050016,Bo1=7050017,So1=7050018,_o1=7050019,Co1=7050020,Io1=7050021,To1=7050022,Ao1=7050023,po1=7050024,mo1=7050025,ko1=7050026,Eo1=7050027,vo1=7050028,ho1=7050029,xo1=7050030,do1=7050031,yo1=7050032,bo1=7050033,go1=7050034,lo1=7050035,fo1=7050036,uo1=7618000,ao1=7618001,io1=7618002,co1=7618003,no1=7618004,oo1=7618005,so1=7618006,ro1=7618007,to1=7618008,eo1=7618009,Nw=8078000,Mw=8078001,TE=8078002,AE=8078003,pE=8078004,mE=8078005,kE=8078006,$s1=8078007,Vs1=8078008,Js1=8078009,Qs1=8078010,Lw=8078011,Xs1=8078012,Rw=8078013,Pw=8078014,Ys1=8078015,Gs1=8078016,Ws1=8078017,Ks1=8078018,qs1=8078019,EE=8078020,vE=8078021,Ds1=8078022,hE=8078023,Hs1=8100000,Zs1=8100001,Us1=8100002,ws1=8100003,zs1=8190000,js1=8190001,Ns1=8190002,Ms1=8190003,Ls1=8190004,Rs1=9900000,Ps1=9900001,Os1=9900002,Fs1=9900003,Bs1=9900004,Ss1=9900005,_s1=9900006;var Cs1={[ni1]:"Account not found at address: $address",[ti1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[ri1]:"Expected decoded account at address: $address",[si1]:"Failed to decode account data at address: $address",[oi1]:"Accounts not found at addresses: $addresses",[ai1]:"Unable to find a viable program address bump seed.",[di1]:"$putativeAddress is not a base58-encoded address.",[hi1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[yi1]:"The `CryptoKey` must be an `Ed25519` public key.",[ci1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[ui1]:"Invalid seeds; point must fall off the Ed25519 curve.",[bi1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[li1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[fi1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[gi1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[ii1]:"Program address cannot end with PDA marker.",[xi1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Yi1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Ji1]:"The network has progressed past the last block for which this transaction could have been committed.",[Nw]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ds1]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[EE]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[mE]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[kE]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[pE]:"Encoder and decoder must either both be fixed-size or variable-size.",[Vs1]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[TE]:"Expected a fixed-size codec, got a variable-size one.",[Rw]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[AE]:"Expected a variable-size codec, got a fixed-size one.",[qs1]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Mw]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Ks1]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Js1]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Qs1]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Ys1]:"Invalid literal union variant. Expected one of [$variants], got $value.",[$s1]:"Expected [$codecDescription] to have $expected items, got $actual.",[Xs1]:"Invalid value $value for base $base with alphabet $alphabet.",[Gs1]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Lw]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Pw]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[vE]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Ws1]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[hE]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Wc1]:"No random values implementation could be found.",[Sc1]:"instruction requires an uninitialized account",[yc1]:"instruction tries to borrow reference for an account which is already borrowed",[bc1]:"instruction left account with an outstanding borrowed reference",[xc1]:"program other than the account's owner changed the size of the account data",[Pc1]:"account data too small for instruction",[dc1]:"instruction expected an executable account",[Kn1]:"An account does not have enough lamports to be rent-exempt",[Dn1]:"Program arithmetic overflowed",[Wn1]:"Failed to serialize or deserialize account data: $encodedData",[jn1]:"Builtin programs must consume compute units",[nc1]:"Cross-program invocation call depth too deep",[$n1]:"Computational budget exceeded",[lc1]:"custom program error: #$code",[kc1]:"instruction contains duplicate accounts",[gc1]:"instruction modifications of multiply-passed account differ",[ic1]:"executable accounts must be rent exempt",[uc1]:"instruction changed executable accounts data",[ac1]:"instruction changed the balance of an executable account",[Ec1]:"instruction changed executable bit of an account",[Ac1]:"instruction modified data of an account it does not own",[Tc1]:"instruction spent from the balance of an account it does not own",[Nc1]:"generic instruction error",[Zn1]:"Provided owner is not allowed",[Yn1]:"Account is immutable",[Gn1]:"Incorrect authority provided",[Fc1]:"incorrect program id for instruction",[Oc1]:"insufficient funds for instruction",[Rc1]:"invalid account data for instruction",[qn1]:"Invalid account owner",[Mc1]:"invalid program argument",[fc1]:"program returned invalid error code",[Lc1]:"invalid instruction data",[ec1]:"Failed to reallocate account data",[tc1]:"Provided seeds do not result in a valid address",[Un1]:"Accounts data allocations exceeded the maximum allowed per transaction",[wn1]:"Max accounts exceeded",[zn1]:"Max instruction trace length exceeded",[rc1]:"Length of the seed is too long for address generation",[oc1]:"An account required by the instruction is missing",[Bc1]:"missing required signature for instruction",[Ic1]:"instruction illegally modified the program id of an account",[hc1]:"insufficient account keys for instruction",[Vn1]:"Cross-program invocation with unauthorized signer or writable account",[Jn1]:"Failed to create program execution environment",[Xn1]:"Program failed to compile",[Qn1]:"Program failed to complete",[mc1]:"instruction modified data of a read-only account",[pc1]:"instruction changed the balance of a read-only account",[sc1]:"Cross-program invocation reentrancy not allowed for this instruction",[vc1]:"instruction modified rent epoch of an account",[Cc1]:"sum of account balances before and after instruction do not match",[_c1]:"instruction requires an initialized account",[jc1]:"",[cc1]:"Unsupported program id",[Hn1]:"Unsupported sysvar",[Ss1]:"Invalid instruction plan kind: $kind.",[io1]:"The provided instruction plan is empty.",[oo1]:"No failed transaction plan result was found in the provided transaction plan result.",[no1]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[co1]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[uo1]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[_s1]:"Invalid transaction plan kind: $kind.",[ao1]:"No more instructions to pack; the message packer has completed the instruction plan.",[so1]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[ro1]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[to1]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[eo1]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[Uc1]:"The instruction does not have any accounts.",[wc1]:"The instruction does not have any data.",[zc1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Gi1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Qi1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Os1]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Bs1]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Ps1]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Rs1]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Fs1]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ui1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[wi1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[ji1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[zi1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Zi1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Bi1]:"$__serverMessage",[vi1]:"$__serverMessage",[mi1]:"$__serverMessage",[Oi1]:"$__serverMessage",[Li1]:"Epoch rewards period still active at slot $slot",[_i1]:"$__serverMessage",[Ci1]:"$__serverMessage",[Ni1]:"Failed to query long-term storage; please try again",[Ri1]:"Minimum context slot has not been reached",[pi1]:"Node is unhealthy; behind by $numSlotsBehind slots",[Ii1]:"No snapshot",[Ei1]:"Transaction simulation failed",[Mi1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Ti1]:"$__serverMessage",[Si1]:"Transaction history is not available from this node",[Ai1]:"$__serverMessage",[Fi1]:"Transaction signature length mismatch",[ki1]:"Transaction signature verification failure",[Pi1]:"$__serverMessage",[Kc1]:"Key pair bytes must be of length 64, got $byteLength.",[qc1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Dc1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Zc1]:"The provided private key does not match the provided public key.",[Hc1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Wi1]:"Lamports value must be in the range [0, 2e64-1]",[Ki1]:"`$value` cannot be parsed as a `BigInt`",[Hi1]:"$message",[qi1]:"`$value` cannot be parsed as a `Number`",[Xi1]:"No nonce account could be found at address `$nonceAccountAddress`",[mn1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[ln1]:"Attempted to sign an offchain message with an address that is not a signer for it",[pn1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[gn1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Tn1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[hn1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[xn1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[dn1]:"Offchain message content must be non-empty",[En1]:"Offchain message must specify the address of at least one required signer",[yn1]:"Offchain message envelope must reserve space for at least one signature",[kn1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[un1]:"The signatories of this offchain message must be listed in lexicographical order",[an1]:"An address must be listed no more than once among the signatories of an offchain message",[bn1]:"Offchain message is missing signatures for addresses: $addresses.",[in1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[An1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[fn1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[vn1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[zs1]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Ns1]:"WebSocket was closed before payload could be added to the send buffer",[Ms1]:"WebSocket connection closed",[Ls1]:"WebSocket failed to connect",[js1]:"Failed to obtain a subscription id from the server",[ws1]:"Could not find an API plan for RPC method: `$method`",[Hs1]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Us1]:"HTTP error ($statusCode): $message",[Zs1]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Nn1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Mn1]:"The provided value does not implement the `KeyPairSigner` interface",[Rn1]:"The provided value does not implement the `MessageModifyingSigner` interface",[Pn1]:"The provided value does not implement the `MessagePartialSigner` interface",[Ln1]:"The provided value does not implement any of the `MessageSigner` interfaces",[Fn1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Bn1]:"The provided value does not implement the `TransactionPartialSigner` interface",[Sn1]:"The provided value does not implement the `TransactionSendingSigner` interface",[On1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[_n1]:"More than one `TransactionSendingSigner` was identified.",[Cn1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[In1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Gc1]:"Cannot export a non-extractable key.",[$c1]:"No digest implementation could be found.",[ei1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Vc1]:`This runtime does not support the generation of Ed25519 key pairs.
73
+
74
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
75
+
76
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Jc1]:"No signature verification implementation could be found.",[Qc1]:"No key generation implementation could be found.",[Xc1]:"No signing implementation could be found.",[Yc1]:"No key export implementation could be found.",[Di1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Fo1]:"Transaction processing left an account with an outstanding borrowed reference",[Ko1]:"Account in use",[qo1]:"Account loaded twice",[Do1]:"Attempt to debit an account but found no record of a prior credit.",[Ao1]:"Transaction loads an address table account that doesn't exist",[wo1]:"This transaction has already been processed",[zo1]:"Blockhash not found",[jo1]:"Loader call chain is too deep",[Oo1]:"Transactions are currently disabled due to cluster maintenance",[xo1]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Zo1]:"Insufficient funds for fee",[do1]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Uo1]:"This account may not be used to pay transaction fees",[Mo1]:"Transaction contains an invalid account reference",[mo1]:"Transaction loads an address table account with invalid data",[ko1]:"Transaction address table lookup uses an invalid index",[po1]:"Transaction loads an address table account with an invalid owner",[bo1]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Ro1]:"This program may not be used for executing instructions",[Eo1]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[_o1]:"Transaction loads a writable account that cannot be written",[yo1]:"Transaction exceeded max loaded accounts data size cap",[No1]:"Transaction requires a fee but has no signature present",[Ho1]:"Attempt to load a program that does not exist",[lo1]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[go1]:"ResanitizationNeeded",[Po1]:"Transaction failed to sanitize accounts offsets correctly",[Lo1]:"Transaction did not pass signature verification",[To1]:"Transaction locked too many accounts",[fo1]:"Sum of account balances before and after transaction do not match",[Wo1]:"The transaction failed with the error `$errorName`",[So1]:"Transaction version is unsupported",[Io1]:"Transaction would exceed account data limit within the block",[ho1]:"Transaction would exceed total account data limit",[Co1]:"Transaction would exceed max account limit within the block",[Bo1]:"Transaction would exceed max Block Cost Limit",[vo1]:"Transaction would exceed max Vote Cost Limit",[ww]:"Attempted to sign a transaction with an address that is not a signer for it",[$o1]:"Transaction is missing an address at index: $index.",[zw]:"Transaction has no expected signers therefore it cannot be encoded",[CE]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[FE]:"Transaction does not have a blockhash lifetime",[BE]:"Transaction is not a durable nonce transaction",[sn1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[rn1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[en1]:"No fee payer set in CompiledTransaction",[tn1]:"Could not find program address at index $index",[Xo1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[Yo1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Vo1]:"Transaction is missing a fee payer.",[_E]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Qo1]:"Transaction first instruction is not advance nonce account instruction.",[Jo1]:"Transaction with no instructions cannot be durable nonce transaction.",[cn1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[nn1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[jw]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[SE]:"Transaction is missing signatures for addresses: $addresses.",[on1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Go1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[IE]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},b8="i",y4="t";function Is1($,V={}){let J=Cs1[$];if(J.length===0)return"";let Q;function X(G){if(Q[y4]===2){let W=J.slice(Q[b8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[y4]===1)Y.push(J.slice(Q[b8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[b8]:0,[y4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[y4]){case 0:K={[b8]:W,[y4]:1};break;case 1:if(G==="\\")K={[b8]:W,[y4]:0};else if(G==="$")K={[b8]:W,[y4]:2};break;case 2:if(G==="\\")K={[b8]:W,[y4]:0};else if(G==="$")K={[b8]:W,[y4]:2};else if(!G.match(/\w/))K={[b8]:W,[y4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function Ts1($,V={}){return Is1($,V)}var u6=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=Ts1($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function As1($,V){if($.length>=V)return $;let J=new Uint8Array(V).fill(0);return J.set($),J}var ps1=($,V)=>As1($.length<=V?$:$.slice(0,V),V);function dE($,V){return $.length===V.length&&$.every((J,Q)=>J===V[Q])}function ms1($,V){return"fixedSize"in V?V.fixedSize:V.getSizeFromValue($)}function EG($){return Object.freeze({...$,encode:(V)=>{let J=new Uint8Array(ms1(V,$));return $.write(V,J,0),J}})}function g7($){return Object.freeze({...$,decode:(V,J=0)=>$.read(V,J)[0]})}function Ow($){return"fixedSize"in $&&typeof $.fixedSize==="number"}function ks1($){return!Ow($)}function yE($,V,J=0){if(V.length-J<=0)throw new u6(Nw,{codecDescription:$})}function Fw($,V,J,Q=0){let X=J.length-Q;if(X<V)throw new u6(Mw,{bytesLength:X,codecDescription:$,expected:V})}function xE($,V,J){if(V<0||V>J)throw new u6(Pw,{bytesLength:J,codecDescription:$,offset:V})}function bE($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength,Y;if(typeof SharedArrayBuffer>"u")Y=$.buffer;else if($.buffer instanceof SharedArrayBuffer)Y=new ArrayBuffer($.length),new Uint8Array(Y).set(new Uint8Array($));else Y=$.buffer;return(Q===0||Q===-$.byteLength)&&X===$.byteLength?Y:Y.slice(Q,Q+X)}function gE($,V){return EG({fixedSize:V,write:(J,Q,X)=>{let Y=$.encode(J),G=Y.length>V?Y.slice(0,V):Y;return Q.set(G,X),X+V}})}function lE($,V){return g7({fixedSize:V,read:(J,Q)=>{if(Fw("fixCodecSize",V,J,Q),Q>0||J.length>V)J=J.slice(Q,Q+V);if(Ow($))J=ps1(J,$.fixedSize);let[X]=$.read(J,0);return[X,Q+V]}})}function Es1($,V){return g7({...$,read:(J,Q)=>{let X=(D)=>vs1(D,J.length),Y=V.preOffset?V.preOffset({bytes:J,preOffset:Q,wrapBytes:X}):Q;xE("offsetDecoder",Y,J.length);let[G,W]=$.read(J,Y),K=V.postOffset?V.postOffset({bytes:J,newPreOffset:Y,postOffset:W,preOffset:Q,wrapBytes:X}):W;return xE("offsetDecoder",K,J.length),[G,K]}})}function vs1($,V){if(V===0)return 0;return($%V+V)%V}function hs1($,V){if(Ow($)){let J=V($.fixedSize);if(J<0)throw new u6(Rw,{bytesLength:J,codecDescription:"resizeDecoder"});return g7({...$,fixedSize:J})}return $}function fE($,V){return Es1(hs1($,(J)=>J+V),{postOffset:({postOffset:J})=>J+V})}function uE($,V){return EG({...ks1($)?{...$,getSizeFromValue:(J)=>$.getSizeFromValue(V(J))}:$,write:(J,Q,X)=>$.write(V(J),Q,X)})}function aE($,V){return g7({...$,read:(J,Q)=>{let[X,Y]=$.read(J,Q);return[V(X,J,Q),Y]}})}function ds1($,V,J,Q){if(Q<V||Q>J)throw new u6(Lw,{codecDescription:$,max:J,min:V,value:Q})}function ys1($){return $?.endian===1?!1:!0}function bs1($){return g7({fixedSize:$.size,read(V,J=0){yE($.name,V,J),Fw($.name,$.size,V,J);let Q=new DataView(bE(V,J,$.size));return[$.get(Q,ys1($.config)),J+$.size]}})}var iE=()=>EG({getSizeFromValue:($)=>{if($<=127)return 1;if($<=16383)return 2;return 3},maxSize:3,write:($,V,J)=>{ds1("shortU16",0,65535,$);let Q=[0];for(let X=0;;X+=1){let Y=Number($)>>X*7;if(Y===0)break;let G=127&Y;if(Q[X]=G,X>0)Q[X-1]|=128}return V.set(Q,J),J+Q.length}}),Bw=()=>g7({maxSize:3,read:($,V)=>{let J=0,Q=0;while(++Q){let X=Q-1,Y=$[V+X],G=127&Y;if(J|=G<<X*7,(Y&128)===0)break}return[J,V+Q]}});var cE=()=>bs1({get:($)=>$.getUint8(0),name:"u8",size:1});var gs1=1,ls1=2,fs1=3,us1=4,as1=5,is1=6,cs1=7,ns1=8,os1=9,ss1=10,rs1=-32700,ts1=-32603,es1=-32602,$r1=-32601,Vr1=-32600,Jr1=-32019,Qr1=-32018,Xr1=-32017,Yr1=-32016,Gr1=-32015,Wr1=-32014,Kr1=-32013,qr1=-32012,Dr1=-32011,Hr1=-32010,Zr1=-32009,Ur1=-32008,wr1=-32007,zr1=-32006,jr1=-32005,Nr1=-32004,Mr1=-32003,Lr1=-32002,Rr1=-32001,Pr1=2800000,Or1=2800001,Fr1=2800002,Br1=2800003,Sr1=2800004,_r1=2800005,Cr1=2800006,Ir1=2800007,Tr1=2800008,Ar1=2800009,pr1=2800010,mr1=2800011,kr1=3230000,Er1=32300001,vr1=3230002,hr1=3230003,xr1=3230004,dr1=3610000,yr1=3610001,br1=3610002,gr1=3610003,lr1=3610004,fr1=3610005,ur1=3610006,Sw=3610007,ar1=3611000,_w=3704000,Cw=3704001,nE=3704002,oE=3704003,Iw=3704004,ir1=4128000,cr1=4128001,nr1=4128002,or1=4615000,sr1=4615001,rr1=4615002,tr1=4615003,er1=4615004,$t1=4615005,Vt1=4615006,Jt1=4615007,Qt1=4615008,Xt1=4615009,Yt1=4615010,Gt1=4615011,Wt1=4615012,Kt1=4615013,qt1=4615014,Dt1=4615015,Ht1=4615016,Zt1=4615017,Ut1=4615018,wt1=4615019,zt1=4615020,jt1=4615021,Nt1=4615022,Mt1=4615023,Lt1=4615024,Rt1=4615025,Pt1=4615026,Ot1=4615027,Ft1=4615028,Bt1=4615029,St1=4615030,_t1=4615031,Ct1=4615032,It1=4615033,Tt1=4615034,At1=4615035,pt1=4615036,mt1=4615037,kt1=4615038,Et1=4615039,vt1=4615040,ht1=4615041,xt1=4615042,dt1=4615043,yt1=4615044,bt1=4615045,gt1=4615046,lt1=4615047,ft1=4615048,ut1=4615049,at1=4615050,it1=4615051,ct1=4615052,nt1=4615053,ot1=4615054,st1=5508000,rt1=5508001,tt1=5508002,et1=5508003,$e1=5508004,Ve1=5508005,Je1=5508006,Qe1=5508007,Xe1=5508008,Ye1=5508009,Ge1=5508010,We1=5508011,Ke1=5607000,qe1=5607001,De1=5607002,He1=5607003,Ze1=5607004,Ue1=5607005,we1=5607006,ze1=5607007,je1=5607008,Ne1=5607009,Me1=5607010,Le1=5607011,Re1=5607012,Pe1=5607013,Oe1=5607014,Fe1=5607015,Be1=5607016,Se1=5607017,_e1=5663000,Ce1=5663001,Ie1=5663002,Te1=5663003,Ae1=5663004,pe1=5663005,me1=5663006,ke1=5663007,Ee1=5663008,ve1=5663009,he1=5663010,xe1=5663011,de1=5663012,ye1=5663013,be1=5663014,ge1=5663015,le1=5663016,fe1=5663017,ue1=5663018,ae1=5663019,ie1=5663020,ce1=5663021,ne1=5663022,oe1=7050000,se1=7050001,re1=7050002,te1=7050003,ee1=7050004,$12=7050005,V12=7050006,J12=7050007,Q12=7050008,X12=7050009,Y12=7050010,G12=7050011,W12=7050012,K12=7050013,q12=7050014,D12=7050015,H12=7050016,Z12=7050017,U12=7050018,w12=7050019,z12=7050020,j12=7050021,N12=7050022,M12=7050023,L12=7050024,R12=7050025,P12=7050026,O12=7050027,F12=7050028,B12=7050029,S12=7050030,_12=7050031,C12=7050032,I12=7050033,T12=7050034,A12=7050035,p12=7050036,m12=7618000,k12=7618001,E12=7618002,v12=7618003,h12=7618004,x12=7618005,d12=7618006,y12=7618007,b12=7618008,g12=7618009,l12=8078000,f12=8078001,u12=8078002,a12=8078003,i12=8078004,c12=8078005,n12=8078006,o12=8078007,s12=8078008,r12=8078009,t12=8078010,e12=8078011,$22=8078012,V22=8078013,J22=8078014,Q22=8078015,X22=8078016,Y22=8078017,G22=8078018,W22=8078019,K22=8078020,q22=8078021,D22=8078022,H22=8078023,Z22=8100000,U22=8100001,w22=8100002,z22=8100003,j22=8190000,N22=8190001,M22=8190002,L22=8190003,R22=8190004,P22=9900000,O22=9900001,F22=9900002,B22=9900003,S22=9900004,_22=9900005,C22=9900006;var I22={[kr1]:"Account not found at address: $address",[xr1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[hr1]:"Expected decoded account at address: $address",[vr1]:"Failed to decode account data at address: $address",[Er1]:"Accounts not found at addresses: $addresses",[Ar1]:"Unable to find a viable program address bump seed.",[Fr1]:"$putativeAddress is not a base58-encoded address.",[Pr1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Br1]:"The `CryptoKey` must be an `Ed25519` public key.",[mr1]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Tr1]:"Invalid seeds; point must fall off the Ed25519 curve.",[Sr1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Cr1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Ir1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[_r1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[pr1]:"Program address cannot end with PDA marker.",[Or1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[us1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[gs1]:"The network has progressed past the last block for which this transaction could have been committed.",[l12]:"Codec [$codecDescription] cannot decode empty byte arrays.",[D22]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[K22]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[c12]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[n12]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[i12]:"Encoder and decoder must either both be fixed-size or variable-size.",[s12]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[u12]:"Expected a fixed-size codec, got a variable-size one.",[V22]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[a12]:"Expected a variable-size codec, got a fixed-size one.",[W22]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[f12]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[G22]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[r12]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[t12]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Q22]:"Invalid literal union variant. Expected one of [$variants], got $value.",[o12]:"Expected [$codecDescription] to have $expected items, got $actual.",[$22]:"Invalid value $value for base $base with alphabet $alphabet.",[X22]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[e12]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[J22]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[q22]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Y22]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[H22]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[ar1]:"No random values implementation could be found.",[Xt1]:"instruction requires an uninitialized account",[Mt1]:"instruction tries to borrow reference for an account which is already borrowed",[Lt1]:"instruction left account with an outstanding borrowed reference",[jt1]:"program other than the account's owner changed the size of the account data",[$t1]:"account data too small for instruction",[Nt1]:"instruction expected an executable account",[gt1]:"An account does not have enough lamports to be rent-exempt",[ft1]:"Program arithmetic overflowed",[bt1]:"Failed to serialize or deserialize account data: $encodedData",[ot1]:"Builtin programs must consume compute units",[Ct1]:"Cross-program invocation call depth too deep",[kt1]:"Computational budget exceeded",[Pt1]:"custom program error: #$code",[Zt1]:"instruction contains duplicate accounts",[Rt1]:"instruction modifications of multiply-passed account differ",[St1]:"executable accounts must be rent exempt",[Ft1]:"instruction changed executable accounts data",[Bt1]:"instruction changed the balance of an executable account",[Ut1]:"instruction changed executable bit of an account",[qt1]:"instruction modified data of an account it does not own",[Kt1]:"instruction spent from the balance of an account it does not own",[sr1]:"generic instruction error",[at1]:"Provided owner is not allowed",[dt1]:"Account is immutable",[yt1]:"Incorrect authority provided",[Jt1]:"incorrect program id for instruction",[Vt1]:"insufficient funds for instruction",[er1]:"invalid account data for instruction",[lt1]:"Invalid account owner",[rr1]:"invalid program argument",[Ot1]:"program returned invalid error code",[tr1]:"invalid instruction data",[mt1]:"Failed to reallocate account data",[pt1]:"Provided seeds do not result in a valid address",[it1]:"Accounts data allocations exceeded the maximum allowed per transaction",[ct1]:"Max accounts exceeded",[nt1]:"Max instruction trace length exceeded",[At1]:"Length of the seed is too long for address generation",[It1]:"An account required by the instruction is missing",[Qt1]:"missing required signature for instruction",[Wt1]:"instruction illegally modified the program id of an account",[zt1]:"insufficient account keys for instruction",[Et1]:"Cross-program invocation with unauthorized signer or writable account",[vt1]:"Failed to create program execution environment",[xt1]:"Program failed to compile",[ht1]:"Program failed to complete",[Ht1]:"instruction modified data of a read-only account",[Dt1]:"instruction changed the balance of a read-only account",[Tt1]:"Cross-program invocation reentrancy not allowed for this instruction",[wt1]:"instruction modified rent epoch of an account",[Gt1]:"sum of account balances before and after instruction do not match",[Yt1]:"instruction requires an initialized account",[or1]:"",[_t1]:"Unsupported program id",[ut1]:"Unsupported sysvar",[_22]:"Invalid instruction plan kind: $kind.",[E12]:"The provided instruction plan is empty.",[x12]:"No failed transaction plan result was found in the provided transaction plan result.",[h12]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[v12]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[m12]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[C22]:"Invalid transaction plan kind: $kind.",[k12]:"No more instructions to pack; the message packer has completed the instruction plan.",[d12]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[y12]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[b12]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[g12]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[ir1]:"The instruction does not have any accounts.",[cr1]:"The instruction does not have any data.",[nr1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[as1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[ls1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[F22]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[S22]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[O22]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[P22]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[B22]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[ts1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[es1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Vr1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[$r1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[rs1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[qr1]:"$__serverMessage",[Rr1]:"$__serverMessage",[Nr1]:"$__serverMessage",[Wr1]:"$__serverMessage",[Xr1]:"Epoch rewards period still active at slot $slot",[Hr1]:"$__serverMessage",[Zr1]:"$__serverMessage",[Jr1]:"Failed to query long-term storage; please try again",[Yr1]:"Minimum context slot has not been reached",[jr1]:"Node is unhealthy; behind by $numSlotsBehind slots",[Ur1]:"No snapshot",[Lr1]:"Transaction simulation failed",[Qr1]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[wr1]:"$__serverMessage",[Dr1]:"Transaction history is not available from this node",[zr1]:"$__serverMessage",[Kr1]:"Transaction signature length mismatch",[Mr1]:"Transaction signature verification failure",[Gr1]:"$__serverMessage",[_w]:"Key pair bytes must be of length 64, got $byteLength.",[Cw]:"Expected private key bytes with length 32. Actual length: $actualLength.",[nE]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Iw]:"The provided private key does not match the provided public key.",[oE]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[is1]:"Lamports value must be in the range [0, 2e64-1]",[cs1]:"`$value` cannot be parsed as a `BigInt`",[ss1]:"$message",[ns1]:"`$value` cannot be parsed as a `Number`",[fs1]:"No nonce account could be found at address `$nonceAccountAddress`",[He1]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[Pe1]:"Attempted to sign an offchain message with an address that is not a signer for it",[De1]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[Re1]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Ke1]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[ze1]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[je1]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Ne1]:"Offchain message content must be non-empty",[Ue1]:"Offchain message must specify the address of at least one required signer",[Me1]:"Offchain message envelope must reserve space for at least one signature",[Ze1]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[Fe1]:"The signatories of this offchain message must be listed in lexicographical order",[Be1]:"An address must be listed no more than once among the signatories of an offchain message",[Le1]:"Offchain message is missing signatures for addresses: $addresses.",[Se1]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[qe1]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Oe1]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[we1]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[j22]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[M22]:"WebSocket was closed before payload could be added to the send buffer",[L22]:"WebSocket connection closed",[R22]:"WebSocket failed to connect",[N22]:"Failed to obtain a subscription id from the server",[z22]:"Could not find an API plan for RPC method: `$method`",[Z22]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[w22]:"HTTP error ($statusCode): $message",[U22]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[st1]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[rt1]:"The provided value does not implement the `KeyPairSigner` interface",[et1]:"The provided value does not implement the `MessageModifyingSigner` interface",[$e1]:"The provided value does not implement the `MessagePartialSigner` interface",[tt1]:"The provided value does not implement any of the `MessageSigner` interfaces",[Je1]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Qe1]:"The provided value does not implement the `TransactionPartialSigner` interface",[Xe1]:"The provided value does not implement the `TransactionSendingSigner` interface",[Ve1]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Ye1]:"More than one `TransactionSendingSigner` was identified.",[Ge1]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[We1]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Sw]:"Cannot export a non-extractable key.",[yr1]:"No digest implementation could be found.",[dr1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[br1]:`This runtime does not support the generation of Ed25519 key pairs.
77
+
78
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
79
+
80
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[gr1]:"No signature verification implementation could be found.",[lr1]:"No key generation implementation could be found.",[fr1]:"No signing implementation could be found.",[ur1]:"No key export implementation could be found.",[os1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[H12]:"Transaction processing left an account with an outstanding borrowed reference",[se1]:"Account in use",[re1]:"Account loaded twice",[te1]:"Attempt to debit an account but found no record of a prior credit.",[M12]:"Transaction loads an address table account that doesn't exist",[J12]:"This transaction has already been processed",[Q12]:"Blockhash not found",[X12]:"Loader call chain is too deep",[D12]:"Transactions are currently disabled due to cluster maintenance",[S12]:"Transaction contains a duplicate instruction ($index) that is not allowed",[$12]:"Insufficient funds for fee",[_12]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[V12]:"This account may not be used to pay transaction fees",[G12]:"Transaction contains an invalid account reference",[R12]:"Transaction loads an address table account with invalid data",[P12]:"Transaction address table lookup uses an invalid index",[L12]:"Transaction loads an address table account with an invalid owner",[I12]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[K12]:"This program may not be used for executing instructions",[O12]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[w12]:"Transaction loads a writable account that cannot be written",[C12]:"Transaction exceeded max loaded accounts data size cap",[Y12]:"Transaction requires a fee but has no signature present",[ee1]:"Attempt to load a program that does not exist",[A12]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[T12]:"ResanitizationNeeded",[q12]:"Transaction failed to sanitize accounts offsets correctly",[W12]:"Transaction did not pass signature verification",[N12]:"Transaction locked too many accounts",[p12]:"Sum of account balances before and after transaction do not match",[oe1]:"The transaction failed with the error `$errorName`",[U12]:"Transaction version is unsupported",[j12]:"Transaction would exceed account data limit within the block",[B12]:"Transaction would exceed total account data limit",[z12]:"Transaction would exceed max account limit within the block",[Z12]:"Transaction would exceed max Block Cost Limit",[F12]:"Transaction would exceed max Vote Cost Limit",[ge1]:"Attempted to sign a transaction with an address that is not a signer for it",[he1]:"Transaction is missing an address at index: $index.",[le1]:"Transaction has no expected signers therefore it cannot be encoded",[ie1]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Ie1]:"Transaction does not have a blockhash lifetime",[Te1]:"Transaction is not a durable nonce transaction",[pe1]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[me1]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Ee1]:"No fee payer set in CompiledTransaction",[ke1]:"Could not find program address at index $index",[ue1]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[ae1]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[xe1]:"Transaction is missing a fee payer.",[de1]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[be1]:"Transaction first instruction is not advance nonce account instruction.",[ye1]:"Transaction with no instructions cannot be durable nonce transaction.",[_e1]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Ce1]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[fe1]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[ve1]:"Transaction is missing signatures for addresses: $addresses.",[Ae1]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[ce1]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[ne1]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},g8="i",b4="t";function T22($,V={}){let J=I22[$];if(J.length===0)return"";let Q;function X(G){if(Q[b4]===2){let W=J.slice(Q[g8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[b4]===1)Y.push(J.slice(Q[g8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[g8]:0,[b4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[b4]){case 0:K={[g8]:W,[b4]:1};break;case 1:if(G==="\\")K={[g8]:W,[b4]:0};else if(G==="$")K={[g8]:W,[b4]:2};break;case 2:if(G==="\\")K={[g8]:W,[b4]:0};else if(G==="$")K={[g8]:W,[b4]:2};else if(!G.match(/\w/))K={[g8]:W,[b4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function A22($,V={}){return T22($,V)}var AJ=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=A22($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function vG($,V,J){let Q=$.byteOffset+(V??0),X=J??$.byteLength,Y;if(typeof SharedArrayBuffer>"u")Y=$.buffer;else if($.buffer instanceof SharedArrayBuffer)Y=new ArrayBuffer($.length),new Uint8Array(Y).set(new Uint8Array($));else Y=$.buffer;return(Q===0||Q===-$.byteLength)&&X===$.byteLength?Y:Y.slice(Q,Q+X)}var hG=Object.freeze({name:"Ed25519"});function p22($){return new Uint8Array([48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32,...$])}async function Tw($,V=!1){let J=$.byteLength;if(J!==32)throw new AJ(Cw,{actualLength:J});let Q=p22($);return await crypto.subtle.importKey("pkcs8",Q,hG,V,["sign"])}async function m22($,V=!1){if(HG(),$.extractable===!1)throw new AJ(Sw,{key:$});let J=await crypto.subtle.exportKey("jwk",$);return await crypto.subtle.importKey("jwk",{crv:"Ed25519",ext:V,key_ops:["verify"],kty:"OKP",x:J.x},"Ed25519",V,["verify"])}async function pJ($,V){Fm();let J=await crypto.subtle.sign(hG,$,vG(V));return new Uint8Array(J)}async function k22($,V,J){return Bm(),await crypto.subtle.verify(hG,$,vG(V),vG(J))}async function sE($,V=!1){if(Pm(),$.byteLength!==64)throw new AJ(_w,{byteLength:$.byteLength});let[J,Q]=await Promise.all([crypto.subtle.importKey("raw",$.slice(32),hG,!0,["verify"]),Tw($.slice(0,32),V)]),X=new Uint8Array(32);crypto.getRandomValues(X);let Y=await pJ(Q,X);if(!await k22(J,Y,X))throw new AJ(Iw);return{privateKey:Q,publicKey:J}}async function rE($,V=!1){let J=Tw($,V),[Q,X]=await Promise.all([(V?J:Tw($,!0)).then(async(Y)=>await m22(Y,!0)),J]);return{privateKey:X,publicKey:Q}}function E22($){let V=Object.values($);if(V.length===0)throw new u6(zw);return V.map((J)=>{if(!J)return new Uint8Array(64).fill(0);return J})}function v22(){return uE(E8(gE(p$(),64),{size:iE()}),E22)}function h22(){return e9([["signatures",v22()],["messageBytes",p$()]])}function tE(){return aE(P2([["signatures",L6(lE(b5(),64),{size:Bw()})],["messageBytes",b5()]]),x22)}function x22($){let{messageBytes:V,signatures:J}=$,Q=v8([Hw(),fE(cE(),2),L6(L2(),{size:Bw()})]),[X,Y,G]=Q.decode(V),W=G.slice(0,Y);if(W.length!==J.length)throw new u6(jw,{numRequiredSignatures:Y,signaturesLength:J.length,signerAddresses:W});let K={};return W.forEach((D,H)=>{let U=J[H];if(U.every((z)=>z===0))K[D]=null;else K[D]=U}),{messageBytes:V,signatures:Object.freeze(K)}}function xG($){let V=LE($),J=NE().encode(V),Q=V.staticAccounts.slice(0,V.header.numSignerAccounts),X={};for(let G of Q)X[G]=null;let Y;if(ZE($))Y={blockhash:$.lifetimeConstraint.blockhash,lastValidBlockHeight:$.lifetimeConstraint.lastValidBlockHeight};else if(kG($))Y={nonce:$.lifetimeConstraint.nonce,nonceAccountAddress:$.instructions[0].accounts[0].address};return Object.freeze({...Y?{lifetimeConstraint:Y}:void 0,messageBytes:J,signatures:Object.freeze(X)})}async function eE($,V){let J,Q;if(await Promise.all($.map(async(X)=>{let Y=await wG(X.publicKey),G=V.signatures[Y];if(G===void 0){Q||=new Set,Q.add(Y);return}if(Q)return;let W=await pJ(X.privateKey,V.messageBytes);if(G!==null&&dE(W,G))return;J||={},J[Y]=W})),Q&&Q.size>0){let X=Object.keys(V.signatures);throw new u6(ww,{expectedAddresses:X,unexpectedAddresses:[...Q]})}if(!J)return V;return Object.freeze({...V,signatures:Object.freeze({...V.signatures,...J})})}function E$($){let V=h22().encode($);return rp().decode(V)}var d22=1280,y22=48,dQ0=d22-y22;function $v($){return $!==null&&(typeof $==="object"||typeof $==="function")}function b22($){let V=new Set,J={deferreds:V,settled:!1};return Promise.resolve($).then((Q)=>{for(let{resolve:X}of V)X(Q);V.clear(),J.settled=!0},(Q)=>{for(let{reject:X}of V)X(Q);V.clear(),J.settled=!0}),J}var Aw=new WeakMap;async function Vv($){let V;return await new Promise((Q,X)=>{V={reject:X,resolve:Q};for(let Y of $){if(!$v(Y)){Promise.resolve(Y).then(Q,X);continue}let G=Aw.get(Y);if(G===void 0)G=b22(Y),G.deferreds.add(V),Aw.set(Y,G);else if(G.settled)Promise.resolve(Y).then(Q,X);else G.deferreds.add(V)}}).finally(()=>{for(let Q of $)if($v(Q))Aw.get(Q).deferreds.delete(V)})}var g22=1,l22=2,f22=3,u22=4,a22=5,i22=6,c22=7,n22=8,o22=9,s22=10,r22=-32700,t22=-32603,e22=-32602,$02=-32601,V02=-32600,J02=-32019,Q02=-32018,X02=-32017,Y02=-32016,G02=-32015,W02=-32014,K02=-32013,q02=-32012,D02=-32011,H02=-32010,Z02=-32009,U02=-32008,w02=-32007,z02=-32006,j02=-32005,N02=-32004,M02=-32003,L02=-32002,R02=-32001,P02=2800000,O02=2800001,F02=2800002,B02=2800003,S02=2800004,_02=2800005,C02=2800006,I02=2800007,T02=2800008,A02=2800009,p02=2800010,m02=2800011,k02=3230000,E02=32300001,v02=3230002,h02=3230003,x02=3230004,d02=3610000,y02=3610001,b02=3610002,g02=3610003,l02=3610004,f02=3610005,u02=3610006,a02=3610007,i02=3611000,c02=3704000,n02=3704001,o02=3704002,s02=3704003,r02=3704004,t02=4128000,e02=4128001,$92=4128002,V92=4615000,J92=4615001,Q92=4615002,X92=4615003,Y92=4615004,G92=4615005,W92=4615006,K92=4615007,q92=4615008,D92=4615009,H92=4615010,Z92=4615011,U92=4615012,w92=4615013,z92=4615014,j92=4615015,N92=4615016,M92=4615017,L92=4615018,R92=4615019,P92=4615020,O92=4615021,F92=4615022,B92=4615023,S92=4615024,_92=4615025,C92=4615026,I92=4615027,T92=4615028,A92=4615029,p92=4615030,m92=4615031,k92=4615032,E92=4615033,v92=4615034,h92=4615035,x92=4615036,d92=4615037,y92=4615038,b92=4615039,g92=4615040,l92=4615041,f92=4615042,u92=4615043,a92=4615044,i92=4615045,c92=4615046,n92=4615047,o92=4615048,s92=4615049,r92=4615050,t92=4615051,e92=4615052,$62=4615053,V62=4615054,J62=5508000,Q62=5508001,X62=5508002,Y62=5508003,G62=5508004,W62=5508005,K62=5508006,q62=5508007,D62=5508008,H62=5508009,Z62=5508010,U62=5508011,w62=5607000,z62=5607001,j62=5607002,N62=5607003,M62=5607004,L62=5607005,R62=5607006,P62=5607007,O62=5607008,F62=5607009,B62=5607010,S62=5607011,_62=5607012,C62=5607013,I62=5607014,T62=5607015,A62=5607016,p62=5607017,m62=5663000,k62=5663001,E62=5663002,v62=5663003,h62=5663004,x62=5663005,d62=5663006,y62=5663007,b62=5663008,g62=5663009,l62=5663010,f62=5663011,u62=5663012,a62=5663013,i62=5663014,c62=5663015,n62=5663016,o62=5663017,s62=5663018,r62=5663019,t62=5663020,e62=5663021,$42=5663022,V42=7050000,J42=7050001,Q42=7050002,X42=7050003,Y42=7050004,G42=7050005,W42=7050006,K42=7050007,q42=7050008,D42=7050009,H42=7050010,Z42=7050011,U42=7050012,w42=7050013,z42=7050014,j42=7050015,N42=7050016,M42=7050017,L42=7050018,R42=7050019,P42=7050020,O42=7050021,F42=7050022,B42=7050023,S42=7050024,_42=7050025,C42=7050026,I42=7050027,T42=7050028,A42=7050029,p42=7050030,m42=7050031,k42=7050032,E42=7050033,v42=7050034,h42=7050035,x42=7050036,d42=7618000,y42=7618001,b42=7618002,g42=7618003,l42=7618004,f42=7618005,u42=7618006,a42=7618007,i42=7618008,c42=7618009,n42=8078000,o42=8078001,s42=8078002,r42=8078003,t42=8078004,e42=8078005,$82=8078006,V82=8078007,J82=8078008,Q82=8078009,X82=8078010,Y82=8078011,G82=8078012,W82=8078013,K82=8078014,q82=8078015,D82=8078016,H82=8078017,Z82=8078018,U82=8078019,w82=8078020,z82=8078021,j82=8078022,N82=8078023,M82=8100000,L82=8100001,R82=8100002,pw=8100003,P82=8190000,O82=8190001,F82=8190002,B82=8190003,S82=8190004,_82=9900000,C82=9900001,I82=9900002,T82=9900003,A82=9900004,p82=9900005,m82=9900006;var k82={[k02]:"Account not found at address: $address",[x02]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[h02]:"Expected decoded account at address: $address",[v02]:"Failed to decode account data at address: $address",[E02]:"Accounts not found at addresses: $addresses",[A02]:"Unable to find a viable program address bump seed.",[F02]:"$putativeAddress is not a base58-encoded address.",[P02]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[B02]:"The `CryptoKey` must be an `Ed25519` public key.",[m02]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[T02]:"Invalid seeds; point must fall off the Ed25519 curve.",[S02]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[C02]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[I02]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[_02]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[p02]:"Program address cannot end with PDA marker.",[O02]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[u22]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[g22]:"The network has progressed past the last block for which this transaction could have been committed.",[n42]:"Codec [$codecDescription] cannot decode empty byte arrays.",[j82]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[w82]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[e42]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[$82]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[t42]:"Encoder and decoder must either both be fixed-size or variable-size.",[J82]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[s42]:"Expected a fixed-size codec, got a variable-size one.",[W82]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[r42]:"Expected a variable-size codec, got a fixed-size one.",[U82]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[o42]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Z82]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Q82]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[X82]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[q82]:"Invalid literal union variant. Expected one of [$variants], got $value.",[V82]:"Expected [$codecDescription] to have $expected items, got $actual.",[G82]:"Invalid value $value for base $base with alphabet $alphabet.",[D82]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Y82]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[K82]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[z82]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[H82]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[N82]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[i02]:"No random values implementation could be found.",[D92]:"instruction requires an uninitialized account",[B92]:"instruction tries to borrow reference for an account which is already borrowed",[S92]:"instruction left account with an outstanding borrowed reference",[O92]:"program other than the account's owner changed the size of the account data",[G92]:"account data too small for instruction",[F92]:"instruction expected an executable account",[c92]:"An account does not have enough lamports to be rent-exempt",[o92]:"Program arithmetic overflowed",[i92]:"Failed to serialize or deserialize account data: $encodedData",[V62]:"Builtin programs must consume compute units",[k92]:"Cross-program invocation call depth too deep",[y92]:"Computational budget exceeded",[C92]:"custom program error: #$code",[M92]:"instruction contains duplicate accounts",[_92]:"instruction modifications of multiply-passed account differ",[p92]:"executable accounts must be rent exempt",[T92]:"instruction changed executable accounts data",[A92]:"instruction changed the balance of an executable account",[L92]:"instruction changed executable bit of an account",[z92]:"instruction modified data of an account it does not own",[w92]:"instruction spent from the balance of an account it does not own",[J92]:"generic instruction error",[r92]:"Provided owner is not allowed",[u92]:"Account is immutable",[a92]:"Incorrect authority provided",[K92]:"incorrect program id for instruction",[W92]:"insufficient funds for instruction",[Y92]:"invalid account data for instruction",[n92]:"Invalid account owner",[Q92]:"invalid program argument",[I92]:"program returned invalid error code",[X92]:"invalid instruction data",[d92]:"Failed to reallocate account data",[x92]:"Provided seeds do not result in a valid address",[t92]:"Accounts data allocations exceeded the maximum allowed per transaction",[e92]:"Max accounts exceeded",[$62]:"Max instruction trace length exceeded",[h92]:"Length of the seed is too long for address generation",[E92]:"An account required by the instruction is missing",[q92]:"missing required signature for instruction",[U92]:"instruction illegally modified the program id of an account",[P92]:"insufficient account keys for instruction",[b92]:"Cross-program invocation with unauthorized signer or writable account",[g92]:"Failed to create program execution environment",[f92]:"Program failed to compile",[l92]:"Program failed to complete",[N92]:"instruction modified data of a read-only account",[j92]:"instruction changed the balance of a read-only account",[v92]:"Cross-program invocation reentrancy not allowed for this instruction",[R92]:"instruction modified rent epoch of an account",[Z92]:"sum of account balances before and after instruction do not match",[H92]:"instruction requires an initialized account",[V92]:"",[m92]:"Unsupported program id",[s92]:"Unsupported sysvar",[p82]:"Invalid instruction plan kind: $kind.",[b42]:"The provided instruction plan is empty.",[f42]:"No failed transaction plan result was found in the provided transaction plan result.",[l42]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[g42]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[d42]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[m82]:"Invalid transaction plan kind: $kind.",[y42]:"No more instructions to pack; the message packer has completed the instruction plan.",[u42]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[a42]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[i42]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[c42]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[t02]:"The instruction does not have any accounts.",[e02]:"The instruction does not have any data.",[$92]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[a22]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[l22]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[I82]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[A82]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[C82]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[_82]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[T82]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[t22]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[e22]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[V02]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[$02]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[r22]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[q02]:"$__serverMessage",[R02]:"$__serverMessage",[N02]:"$__serverMessage",[W02]:"$__serverMessage",[X02]:"Epoch rewards period still active at slot $slot",[H02]:"$__serverMessage",[Z02]:"$__serverMessage",[J02]:"Failed to query long-term storage; please try again",[Y02]:"Minimum context slot has not been reached",[j02]:"Node is unhealthy; behind by $numSlotsBehind slots",[U02]:"No snapshot",[L02]:"Transaction simulation failed",[Q02]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[w02]:"$__serverMessage",[D02]:"Transaction history is not available from this node",[z02]:"$__serverMessage",[K02]:"Transaction signature length mismatch",[M02]:"Transaction signature verification failure",[G02]:"$__serverMessage",[c02]:"Key pair bytes must be of length 64, got $byteLength.",[n02]:"Expected private key bytes with length 32. Actual length: $actualLength.",[o02]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[r02]:"The provided private key does not match the provided public key.",[s02]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[i22]:"Lamports value must be in the range [0, 2e64-1]",[c22]:"`$value` cannot be parsed as a `BigInt`",[s22]:"$message",[n22]:"`$value` cannot be parsed as a `Number`",[f22]:"No nonce account could be found at address `$nonceAccountAddress`",[N62]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[C62]:"Attempted to sign an offchain message with an address that is not a signer for it",[j62]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[_62]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[w62]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[P62]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[O62]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[F62]:"Offchain message content must be non-empty",[L62]:"Offchain message must specify the address of at least one required signer",[B62]:"Offchain message envelope must reserve space for at least one signature",[M62]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[T62]:"The signatories of this offchain message must be listed in lexicographical order",[A62]:"An address must be listed no more than once among the signatories of an offchain message",[S62]:"Offchain message is missing signatures for addresses: $addresses.",[p62]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[z62]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[I62]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[R62]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[P82]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[F82]:"WebSocket was closed before payload could be added to the send buffer",[B82]:"WebSocket connection closed",[S82]:"WebSocket failed to connect",[O82]:"Failed to obtain a subscription id from the server",[pw]:"Could not find an API plan for RPC method: `$method`",[M82]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[R82]:"HTTP error ($statusCode): $message",[L82]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[J62]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Q62]:"The provided value does not implement the `KeyPairSigner` interface",[Y62]:"The provided value does not implement the `MessageModifyingSigner` interface",[G62]:"The provided value does not implement the `MessagePartialSigner` interface",[X62]:"The provided value does not implement any of the `MessageSigner` interfaces",[K62]:"The provided value does not implement the `TransactionModifyingSigner` interface",[q62]:"The provided value does not implement the `TransactionPartialSigner` interface",[D62]:"The provided value does not implement the `TransactionSendingSigner` interface",[W62]:"The provided value does not implement any of the `TransactionSigner` interfaces",[H62]:"More than one `TransactionSendingSigner` was identified.",[Z62]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[U62]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[a02]:"Cannot export a non-extractable key.",[y02]:"No digest implementation could be found.",[d02]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[b02]:`This runtime does not support the generation of Ed25519 key pairs.
81
+
82
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
83
+
84
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[g02]:"No signature verification implementation could be found.",[l02]:"No key generation implementation could be found.",[f02]:"No signing implementation could be found.",[u02]:"No key export implementation could be found.",[o22]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[N42]:"Transaction processing left an account with an outstanding borrowed reference",[J42]:"Account in use",[Q42]:"Account loaded twice",[X42]:"Attempt to debit an account but found no record of a prior credit.",[B42]:"Transaction loads an address table account that doesn't exist",[K42]:"This transaction has already been processed",[q42]:"Blockhash not found",[D42]:"Loader call chain is too deep",[j42]:"Transactions are currently disabled due to cluster maintenance",[p42]:"Transaction contains a duplicate instruction ($index) that is not allowed",[G42]:"Insufficient funds for fee",[m42]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[W42]:"This account may not be used to pay transaction fees",[Z42]:"Transaction contains an invalid account reference",[_42]:"Transaction loads an address table account with invalid data",[C42]:"Transaction address table lookup uses an invalid index",[S42]:"Transaction loads an address table account with an invalid owner",[E42]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[w42]:"This program may not be used for executing instructions",[I42]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[R42]:"Transaction loads a writable account that cannot be written",[k42]:"Transaction exceeded max loaded accounts data size cap",[H42]:"Transaction requires a fee but has no signature present",[Y42]:"Attempt to load a program that does not exist",[h42]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[v42]:"ResanitizationNeeded",[z42]:"Transaction failed to sanitize accounts offsets correctly",[U42]:"Transaction did not pass signature verification",[F42]:"Transaction locked too many accounts",[x42]:"Sum of account balances before and after transaction do not match",[V42]:"The transaction failed with the error `$errorName`",[L42]:"Transaction version is unsupported",[O42]:"Transaction would exceed account data limit within the block",[A42]:"Transaction would exceed total account data limit",[P42]:"Transaction would exceed max account limit within the block",[M42]:"Transaction would exceed max Block Cost Limit",[T42]:"Transaction would exceed max Vote Cost Limit",[c62]:"Attempted to sign a transaction with an address that is not a signer for it",[l62]:"Transaction is missing an address at index: $index.",[n62]:"Transaction has no expected signers therefore it cannot be encoded",[t62]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[E62]:"Transaction does not have a blockhash lifetime",[v62]:"Transaction is not a durable nonce transaction",[x62]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[d62]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[b62]:"No fee payer set in CompiledTransaction",[y62]:"Could not find program address at index $index",[s62]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[r62]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[f62]:"Transaction is missing a fee payer.",[u62]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[i62]:"Transaction first instruction is not advance nonce account instruction.",[a62]:"Transaction with no instructions cannot be durable nonce transaction.",[m62]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[k62]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[o62]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[g62]:"Transaction is missing signatures for addresses: $addresses.",[h62]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[e62]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[$42]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},l8="i",g4="t";function E82($,V={}){let J=k82[$];if(J.length===0)return"";let Q;function X(G){if(Q[g4]===2){let W=J.slice(Q[l8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[g4]===1)Y.push(J.slice(Q[l8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[l8]:0,[g4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[g4]){case 0:K={[l8]:W,[g4]:1};break;case 1:if(G==="\\")K={[l8]:W,[g4]:0};else if(G==="$")K={[l8]:W,[g4]:2};break;case 2:if(G==="\\")K={[l8]:W,[g4]:0};else if(G==="$")K={[l8]:W,[g4]:2};else if(!G.match(/\w/))K={[l8]:W,[g4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function v82($,V={}){return E82($,V)}var Jv=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=v82($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function dG($){return JSON.parse(h82($),(V,J)=>{return b82(J)?y82(J):J})}function h82($){let V=[],J=!1;for(let Q=0;Q<$.length;Q++){let X=!1;if($[Q]==="\\")V.push($[Q++]),X=!X;if($[Q]==='"'){if(V.push($[Q]),!X)J=!J;continue}if(!J){let Y=x82($,Q);if(Y?.length){if(Q+=Y.length-1,Y.match(/\.|[eE]-/))V.push(Y);else V.push(d82(Y));continue}}V.push($[Q])}return V.join("")}function x82($,V){let J=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/;if(!$[V]?.match(/[-\d]/))return null;let Q=$.slice(V).match(J);return Q?Q[0]:null}function d82($){return`{"$n":"${$}"}`}function y82({$n:$}){if($.match(/[eE]/)){let[V,J]=$.split(/[eE]/);return BigInt(V)*BigInt(10)**BigInt(J)}return BigInt($)}function b82($){return!!$&&typeof $==="object"&&"$n"in $&&typeof $.$n==="string"}var Qv=0n;function g82(){let $=Qv;return Qv++,$.toString()}function mJ($){return{id:g82(),jsonrpc:"2.0",method:$.methodName,params:$.params}}function yG($,V){return f82(JSON.stringify($,(J,Q)=>typeof Q==="bigint"?l82(Q):Q,V))}function l82($){return{$n:`${$}`}}function f82($){return $.replace(/\{\s*"\$n"\s*:\s*"(-?\d+)"\s*\}/g,"$1")}function Xv($){return u82($)}function u82($){return new Proxy($.api,{defineProperty(){return!1},deleteProperty(){return!1},get(V,J,Q){if(J==="then")return;return function(...X){let Y=J.toString(),G=Reflect.get(V,Y,Q);if(!G)throw new Jv(pw,{method:Y,params:X});let W=G(...X);return a82($,W)}}})}function a82({transport:$},V){return{async send(J){return await V.execute({signal:J?.abortSignal,transport:$})}}}function Yv($){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...V){let[J,Q]=V,X=Q.toString();return function(...Y){let G=Object.freeze({methodName:X,params:Y}),W=$?.requestTransformer?$?.requestTransformer(G):G;return Object.freeze({execute:async({signal:K,transport:D})=>{let H=mJ(W),U=await D({payload:H,signal:K});if(!$?.responseTransformer)return U;return $.responseTransformer(U,W)}})}}})}function bG($){if($==null||typeof $!=="object"||Array.isArray($))return!1;return"jsonrpc"in $&&$.jsonrpc==="2.0"&&"method"in $&&typeof $.method==="string"&&"params"in $}var i82=1,c82=2,n82=3,o82=4,s82=5,r82=6,t82=7,e82=8,$52=9,Gv=10,Wv=-32700,Kv=-32603,qv=-32602,Dv=-32601,Hv=-32600,V52=-32019,J52=-32018,Q52=-32017,X52=-32016,Zv=-32015,Uv=-32014,Y52=-32013,wv=-32012,G52=-32011,zv=-32010,jv=-32009,W52=-32008,Nv=-32007,Mv=-32006,K52=-32005,Lv=-32004,q52=-32003,mw=-32002,Rv=-32001,D52=2800000,H52=2800001,Z52=2800002,U52=2800003,w52=2800004,z52=2800005,j52=2800006,N52=2800007,M52=2800008,L52=2800009,R52=2800010,P52=2800011,O52=3230000,F52=32300001,B52=3230002,S52=3230003,_52=3230004,C52=3610000,I52=3610001,T52=3610002,A52=3610003,p52=3610004,m52=3610005,k52=3610006,E52=3610007,v52=3611000,h52=3704000,x52=3704001,d52=3704002,y52=3704003,b52=3704004,g52=4128000,l52=4128001,f52=4128002,Pv=4615000,u52=4615001,a52=4615002,i52=4615003,c52=4615004,n52=4615005,o52=4615006,s52=4615007,r52=4615008,t52=4615009,e52=4615010,$72=4615011,V72=4615012,J72=4615013,Q72=4615014,X72=4615015,Y72=4615016,G72=4615017,W72=4615018,K72=4615019,q72=4615020,D72=4615021,H72=4615022,Z72=4615023,U72=4615024,w72=4615025,Ov=4615026,z72=4615027,j72=4615028,N72=4615029,M72=4615030,L72=4615031,R72=4615032,P72=4615033,O72=4615034,F72=4615035,B72=4615036,S72=4615037,_72=4615038,C72=4615039,I72=4615040,T72=4615041,A72=4615042,p72=4615043,m72=4615044,k72=4615045,E72=4615046,v72=4615047,h72=4615048,x72=4615049,d72=4615050,y72=4615051,b72=4615052,g72=4615053,l72=4615054,f72=5508000,u72=5508001,a72=5508002,i72=5508003,c72=5508004,n72=5508005,o72=5508006,s72=5508007,r72=5508008,t72=5508009,e72=5508010,$32=5508011,V32=5607000,J32=5607001,Q32=5607002,X32=5607003,Y32=5607004,G32=5607005,W32=5607006,K32=5607007,q32=5607008,D32=5607009,H32=5607010,Z32=5607011,U32=5607012,w32=5607013,z32=5607014,j32=5607015,N32=5607016,M32=5607017,L32=5663000,R32=5663001,P32=5663002,O32=5663003,F32=5663004,B32=5663005,S32=5663006,_32=5663007,C32=5663008,I32=5663009,T32=5663010,A32=5663011,p32=5663012,m32=5663013,k32=5663014,E32=5663015,v32=5663016,h32=5663017,x32=5663018,d32=5663019,y32=5663020,b32=5663021,g32=5663022,Fv=7050000,l32=7050001,f32=7050002,u32=7050003,a32=7050004,i32=7050005,c32=7050006,n32=7050007,o32=7050008,s32=7050009,r32=7050010,t32=7050011,e32=7050012,$$2=7050013,V$2=7050014,J$2=7050015,Q$2=7050016,X$2=7050017,Y$2=7050018,G$2=7050019,W$2=7050020,K$2=7050021,q$2=7050022,D$2=7050023,H$2=7050024,Z$2=7050025,U$2=7050026,w$2=7050027,z$2=7050028,j$2=7050029,Bv=7050030,Sv=7050031,N$2=7050032,M$2=7050033,L$2=7050034,_v=7050035,R$2=7050036,P$2=7618000,O$2=7618001,F$2=7618002,B$2=7618003,S$2=7618004,_$2=7618005,C$2=7618006,I$2=7618007,T$2=7618008,A$2=7618009,p$2=8078000,m$2=8078001,k$2=8078002,E$2=8078003,v$2=8078004,h$2=8078005,x$2=8078006,d$2=8078007,y$2=8078008,b$2=8078009,g$2=8078010,l$2=8078011,f$2=8078012,u$2=8078013,a$2=8078014,i$2=8078015,c$2=8078016,n$2=8078017,o$2=8078018,s$2=8078019,r$2=8078020,t$2=8078021,e$2=8078022,$V2=8078023,VV2=8100000,JV2=8100001,QV2=8100002,XV2=8100003,YV2=8190000,GV2=8190001,WV2=8190002,KV2=8190003,qV2=8190004,DV2=9900000,HV2=9900001,ZV2=9900002,UV2=9900003,wV2=9900004,zV2=9900005,jV2=9900006;var NV2={[O52]:"Account not found at address: $address",[_52]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[S52]:"Expected decoded account at address: $address",[B52]:"Failed to decode account data at address: $address",[F52]:"Accounts not found at addresses: $addresses",[L52]:"Unable to find a viable program address bump seed.",[Z52]:"$putativeAddress is not a base58-encoded address.",[D52]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[U52]:"The `CryptoKey` must be an `Ed25519` public key.",[P52]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[M52]:"Invalid seeds; point must fall off the Ed25519 curve.",[w52]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[j52]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[N52]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[z52]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[R52]:"Program address cannot end with PDA marker.",[H52]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[o82]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[i82]:"The network has progressed past the last block for which this transaction could have been committed.",[p$2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[e$2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[r$2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[h$2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[x$2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[v$2]:"Encoder and decoder must either both be fixed-size or variable-size.",[y$2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[k$2]:"Expected a fixed-size codec, got a variable-size one.",[u$2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[E$2]:"Expected a variable-size codec, got a fixed-size one.",[s$2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[m$2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[o$2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[b$2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[g$2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[i$2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[d$2]:"Expected [$codecDescription] to have $expected items, got $actual.",[f$2]:"Invalid value $value for base $base with alphabet $alphabet.",[c$2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[l$2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[a$2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[t$2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[n$2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[$V2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[v52]:"No random values implementation could be found.",[t52]:"instruction requires an uninitialized account",[Z72]:"instruction tries to borrow reference for an account which is already borrowed",[U72]:"instruction left account with an outstanding borrowed reference",[D72]:"program other than the account's owner changed the size of the account data",[n52]:"account data too small for instruction",[H72]:"instruction expected an executable account",[E72]:"An account does not have enough lamports to be rent-exempt",[h72]:"Program arithmetic overflowed",[k72]:"Failed to serialize or deserialize account data: $encodedData",[l72]:"Builtin programs must consume compute units",[R72]:"Cross-program invocation call depth too deep",[_72]:"Computational budget exceeded",[Ov]:"custom program error: #$code",[G72]:"instruction contains duplicate accounts",[w72]:"instruction modifications of multiply-passed account differ",[M72]:"executable accounts must be rent exempt",[j72]:"instruction changed executable accounts data",[N72]:"instruction changed the balance of an executable account",[W72]:"instruction changed executable bit of an account",[Q72]:"instruction modified data of an account it does not own",[J72]:"instruction spent from the balance of an account it does not own",[u52]:"generic instruction error",[d72]:"Provided owner is not allowed",[p72]:"Account is immutable",[m72]:"Incorrect authority provided",[s52]:"incorrect program id for instruction",[o52]:"insufficient funds for instruction",[c52]:"invalid account data for instruction",[v72]:"Invalid account owner",[a52]:"invalid program argument",[z72]:"program returned invalid error code",[i52]:"invalid instruction data",[S72]:"Failed to reallocate account data",[B72]:"Provided seeds do not result in a valid address",[y72]:"Accounts data allocations exceeded the maximum allowed per transaction",[b72]:"Max accounts exceeded",[g72]:"Max instruction trace length exceeded",[F72]:"Length of the seed is too long for address generation",[P72]:"An account required by the instruction is missing",[r52]:"missing required signature for instruction",[V72]:"instruction illegally modified the program id of an account",[q72]:"insufficient account keys for instruction",[C72]:"Cross-program invocation with unauthorized signer or writable account",[I72]:"Failed to create program execution environment",[A72]:"Program failed to compile",[T72]:"Program failed to complete",[Y72]:"instruction modified data of a read-only account",[X72]:"instruction changed the balance of a read-only account",[O72]:"Cross-program invocation reentrancy not allowed for this instruction",[K72]:"instruction modified rent epoch of an account",[$72]:"sum of account balances before and after instruction do not match",[e52]:"instruction requires an initialized account",[Pv]:"",[L72]:"Unsupported program id",[x72]:"Unsupported sysvar",[zV2]:"Invalid instruction plan kind: $kind.",[F$2]:"The provided instruction plan is empty.",[_$2]:"No failed transaction plan result was found in the provided transaction plan result.",[S$2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[B$2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[P$2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[jV2]:"Invalid transaction plan kind: $kind.",[O$2]:"No more instructions to pack; the message packer has completed the instruction plan.",[C$2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[I$2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[T$2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[A$2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[g52]:"The instruction does not have any accounts.",[l52]:"The instruction does not have any data.",[f52]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[s82]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[c82]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[ZV2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[wV2]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[HV2]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[DV2]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[UV2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Kv]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[qv]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Hv]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Dv]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Wv]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[wv]:"$__serverMessage",[Rv]:"$__serverMessage",[Lv]:"$__serverMessage",[Uv]:"$__serverMessage",[Q52]:"Epoch rewards period still active at slot $slot",[zv]:"$__serverMessage",[jv]:"$__serverMessage",[V52]:"Failed to query long-term storage; please try again",[X52]:"Minimum context slot has not been reached",[K52]:"Node is unhealthy; behind by $numSlotsBehind slots",[W52]:"No snapshot",[mw]:"Transaction simulation failed",[J52]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Nv]:"$__serverMessage",[G52]:"Transaction history is not available from this node",[Mv]:"$__serverMessage",[Y52]:"Transaction signature length mismatch",[q52]:"Transaction signature verification failure",[Zv]:"$__serverMessage",[h52]:"Key pair bytes must be of length 64, got $byteLength.",[x52]:"Expected private key bytes with length 32. Actual length: $actualLength.",[d52]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[b52]:"The provided private key does not match the provided public key.",[y52]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[r82]:"Lamports value must be in the range [0, 2e64-1]",[t82]:"`$value` cannot be parsed as a `BigInt`",[Gv]:"$message",[e82]:"`$value` cannot be parsed as a `Number`",[n82]:"No nonce account could be found at address `$nonceAccountAddress`",[X32]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[w32]:"Attempted to sign an offchain message with an address that is not a signer for it",[Q32]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[U32]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[V32]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[K32]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[q32]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[D32]:"Offchain message content must be non-empty",[G32]:"Offchain message must specify the address of at least one required signer",[H32]:"Offchain message envelope must reserve space for at least one signature",[Y32]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[j32]:"The signatories of this offchain message must be listed in lexicographical order",[N32]:"An address must be listed no more than once among the signatories of an offchain message",[Z32]:"Offchain message is missing signatures for addresses: $addresses.",[M32]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[J32]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[z32]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[W32]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[YV2]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[WV2]:"WebSocket was closed before payload could be added to the send buffer",[KV2]:"WebSocket connection closed",[qV2]:"WebSocket failed to connect",[GV2]:"Failed to obtain a subscription id from the server",[XV2]:"Could not find an API plan for RPC method: `$method`",[VV2]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[QV2]:"HTTP error ($statusCode): $message",[JV2]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[f72]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[u72]:"The provided value does not implement the `KeyPairSigner` interface",[i72]:"The provided value does not implement the `MessageModifyingSigner` interface",[c72]:"The provided value does not implement the `MessagePartialSigner` interface",[a72]:"The provided value does not implement any of the `MessageSigner` interfaces",[o72]:"The provided value does not implement the `TransactionModifyingSigner` interface",[s72]:"The provided value does not implement the `TransactionPartialSigner` interface",[r72]:"The provided value does not implement the `TransactionSendingSigner` interface",[n72]:"The provided value does not implement any of the `TransactionSigner` interfaces",[t72]:"More than one `TransactionSendingSigner` was identified.",[e72]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[$32]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[E52]:"Cannot export a non-extractable key.",[I52]:"No digest implementation could be found.",[C52]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[T52]:`This runtime does not support the generation of Ed25519 key pairs.
85
+
86
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
87
+
88
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[A52]:"No signature verification implementation could be found.",[p52]:"No key generation implementation could be found.",[m52]:"No signing implementation could be found.",[k52]:"No key export implementation could be found.",[$52]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Q$2]:"Transaction processing left an account with an outstanding borrowed reference",[l32]:"Account in use",[f32]:"Account loaded twice",[u32]:"Attempt to debit an account but found no record of a prior credit.",[D$2]:"Transaction loads an address table account that doesn't exist",[n32]:"This transaction has already been processed",[o32]:"Blockhash not found",[s32]:"Loader call chain is too deep",[J$2]:"Transactions are currently disabled due to cluster maintenance",[Bv]:"Transaction contains a duplicate instruction ($index) that is not allowed",[i32]:"Insufficient funds for fee",[Sv]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[c32]:"This account may not be used to pay transaction fees",[t32]:"Transaction contains an invalid account reference",[Z$2]:"Transaction loads an address table account with invalid data",[U$2]:"Transaction address table lookup uses an invalid index",[H$2]:"Transaction loads an address table account with an invalid owner",[M$2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[$$2]:"This program may not be used for executing instructions",[w$2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[G$2]:"Transaction loads a writable account that cannot be written",[N$2]:"Transaction exceeded max loaded accounts data size cap",[r32]:"Transaction requires a fee but has no signature present",[a32]:"Attempt to load a program that does not exist",[_v]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[L$2]:"ResanitizationNeeded",[V$2]:"Transaction failed to sanitize accounts offsets correctly",[e32]:"Transaction did not pass signature verification",[q$2]:"Transaction locked too many accounts",[R$2]:"Sum of account balances before and after transaction do not match",[Fv]:"The transaction failed with the error `$errorName`",[Y$2]:"Transaction version is unsupported",[K$2]:"Transaction would exceed account data limit within the block",[j$2]:"Transaction would exceed total account data limit",[W$2]:"Transaction would exceed max account limit within the block",[X$2]:"Transaction would exceed max Block Cost Limit",[z$2]:"Transaction would exceed max Vote Cost Limit",[E32]:"Attempted to sign a transaction with an address that is not a signer for it",[T32]:"Transaction is missing an address at index: $index.",[v32]:"Transaction has no expected signers therefore it cannot be encoded",[y32]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[P32]:"Transaction does not have a blockhash lifetime",[O32]:"Transaction is not a durable nonce transaction",[B32]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[S32]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[C32]:"No fee payer set in CompiledTransaction",[_32]:"Could not find program address at index $index",[x32]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[d32]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[A32]:"Transaction is missing a fee payer.",[p32]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[k32]:"Transaction first instruction is not advance nonce account instruction.",[m32]:"Transaction with no instructions cannot be durable nonce transaction.",[L32]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[R32]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[h32]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[I32]:"Transaction is missing signatures for addresses: $addresses.",[F32]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[b32]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[g32]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},f8="i",l4="t";function MV2($,V={}){let J=NV2[$];if(J.length===0)return"";let Q;function X(G){if(Q[l4]===2){let W=J.slice(Q[f8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[l4]===1)Y.push(J.slice(Q[f8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[f8]:0,[l4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[l4]){case 0:K={[f8]:W,[l4]:1};break;case 1:if(G==="\\")K={[f8]:W,[l4]:0};else if(G==="$")K={[f8]:W,[l4]:2};break;case 2:if(G==="\\")K={[f8]:W,[l4]:0};else if(G==="$")K={[f8]:W,[l4]:2};else if(!G.match(/\w/))K={[f8]:W,[l4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function LV2($,V={}){return MV2($,V)}var gG=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=LV2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function Cv(...$){if("captureStackTrace"in Error&&typeof Error.captureStackTrace==="function")Error.captureStackTrace(...$)}function Iv({errorCodeBaseOffset:$,getErrorContext:V,orderedErrorNames:J,rpcEnumError:Q},X){let Y,G;if(typeof Q==="string")Y=Q;else Y=Object.keys(Q)[0],G=Q[Y];let W=J.indexOf(Y),K=$+W,D=V(K,Y,G),H=new gG(K,D);return Cv(H,X),H}var RV2=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function Tv($,V){let J=Number($);return Iv({errorCodeBaseOffset:4615001,getErrorContext(Q,X,Y){if(Q===Pv)return{errorName:X,index:J,...Y!==void 0?{instructionErrorContext:Y}:null};else if(Q===Ov)return{code:Number(Y),index:J};return{index:J}},orderedErrorNames:RV2,rpcEnumError:V},Tv)}var PV2=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function Av($){if(typeof $==="object"&&"InstructionError"in $)return Tv(...$.InstructionError);return Iv({errorCodeBaseOffset:7050001,getErrorContext(V,J,Q){if(V===Fv)return{errorName:J,...Q!==void 0?{transactionErrorContext:Q}:null};else if(V===Bv)return{index:Number(Q)};else if(V===Sv||V===_v)return{accountIndex:Number(Q.account_index)}},orderedErrorNames:PV2,rpcEnumError:$},Av)}function lG($){let V;if(OV2($)){let{code:J,data:Q,message:X}=$,Y=Number(J);if(Y===mw){let{err:G,...W}=Q,K=G?{cause:Av(G)}:null;V=new gG(mw,{...W,...K})}else{let G;switch(Y){case Kv:case qv:case Hv:case Dv:case Wv:case wv:case Rv:case Lv:case Uv:case zv:case jv:case Nv:case Mv:case Zv:G={__serverMessage:X};break;default:if(typeof Q==="object"&&!Array.isArray(Q))G=Q}V=new gG(Y,G)}}else{let J=typeof $==="object"&&$!==null&&"message"in $&&typeof $.message==="string"?$.message:"Malformed JSON-RPC error with no message attribute";V=new gG(Gv,{error:$,message:J})}return Cv(V,lG),V}function OV2($){return typeof $==="object"&&$!==null&&"code"in $&&"message"in $&&(typeof $.code==="number"||typeof $.code==="bigint")&&typeof $.message==="string"}function FV2($){return typeof $==="bigint"?Number($):$}var N1={};function pv($){return function V(J,Q){if(Array.isArray(J))return J.map((X,Y)=>{let G={...Q,keyPath:[...Q.keyPath,Y]};return V(X,G)});else if(typeof J==="object"&&J!==null){let X={};for(let Y in J){if(!Object.prototype.hasOwnProperty.call(J,Y))continue;let G={...Q,keyPath:[...Q.keyPath,Y]};X[Y]=V(J[Y],G)}return X}else return $.reduce((X,Y)=>Y(X,Q),J)}}function mv($,V){return(J)=>{let Q=pv($);return Object.freeze({...J,params:Q(J.params,V)})}}function kv($,V){return(J)=>pv($)(J,V)}function BV2(){return mv([FV2],{keyPath:[]})}function SV2({commitmentPropertyName:$,params:V,optionsObjectPositionInParams:J,overrideCommitment:Q}){let X=V[J];if(X===void 0||X&&typeof X==="object"&&!Array.isArray(X)){if(X&&$ in X){if(!X[$]||X[$]==="finalized"){let Y=[...V],{[$]:G,...W}=X;if(Object.keys(W).length>0)Y[J]=W;else if(J===Y.length-1)Y.length--;else Y[J]=void 0;return Y}}else if(Q!=="finalized"){let Y=[...V];return Y[J]={...X,[$]:Q},Y}}return V}function _V2({defaultCommitment:$,optionsObjectPositionByMethod:V}){return(J)=>{let{params:Q,methodName:X}=J;if(!Array.isArray(Q))return J;let Y=V[X];if(Y==null)return J;return Object.freeze({methodName:X,params:SV2({commitmentPropertyName:X==="sendTransaction"?"preflightCommitment":"commitment",optionsObjectPositionInParams:Y,overrideCommitment:$,params:Q})})}}function CV2($){return(V,{keyPath:J})=>{if(typeof V==="bigint"){if($&&(V>Number.MAX_SAFE_INTEGER||V<-Number.MAX_SAFE_INTEGER))$(J,V)}return V}}function IV2($){return(V)=>{return mv([CV2((...Q)=>$(V,...Q))],{keyPath:[]})(V)}}var TV2={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function fG($){let V=$?.onIntegerOverflow;return(J)=>{return h9(J,V?IV2(V):(Q)=>Q,BV2(),_V2({defaultCommitment:$?.defaultCommitment,optionsObjectPositionByMethod:TV2}))}}function Ev($){return function(J,{keyPath:Q}){if(!(typeof J==="number"&&Number.isInteger(J)||typeof J==="bigint"))return J;if(AV2(Q,$))return Number(J);else return BigInt(J)}}function AV2($,V){return V.some((J)=>{if(J.length!==$.length)return!1;for(let Q=$.length-1;Q>=0;Q--){let X=$[Q],Y=J[Q];if(Y!==X&&(Y!==N1||typeof X!=="number"))return!1}return!0})}function vv($){return kv([Ev($)],{keyPath:[]})}function pV2(){return($)=>$.result}var uG=[["data","parsed","info","tokenAmount","decimals"],["data","parsed","info","tokenAmount","uiAmount"],["data","parsed","info","rentExemptReserve","decimals"],["data","parsed","info","rentExemptReserve","uiAmount"],["data","parsed","info","delegatedAmount","decimals"],["data","parsed","info","delegatedAmount","uiAmount"],["data","parsed","info","extensions",N1,"state","olderTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",N1,"state","newerTransferFee","transferFeeBasisPoints"],["data","parsed","info","extensions",N1,"state","preUpdateAverageRate"],["data","parsed","info","extensions",N1,"state","currentRate"]],u8=[...uG,["data","parsed","info","lastExtendedSlotStartIndex"],["data","parsed","info","slashPenalty"],["data","parsed","info","warmupCooldownRate"],["data","parsed","info","decimals"],["data","parsed","info","numRequiredSigners"],["data","parsed","info","numValidSigners"],["data","parsed","info","stake","delegation","warmupCooldownRate"],["data","parsed","info","exemptionThreshold"],["data","parsed","info","burnPercent"],["data","parsed","info","commission"],["data","parsed","info","votes",N1,"confirmationCount"]],kJ=[["index"],["instructions",N1,"accounts",N1],["instructions",N1,"programIdIndex"],["instructions",N1,"stackHeight"]],kw=[["addressTableLookups",N1,"writableIndexes",N1],["addressTableLookups",N1,"readonlyIndexes",N1],["header","numReadonlySignedAccounts"],["header","numReadonlyUnsignedAccounts"],["header","numRequiredSignatures"],["instructions",N1,"accounts",N1],["instructions",N1,"programIdIndex"],["instructions",N1,"stackHeight"]];function mV2(){return[["loadedAccountsDataSize"],...u8.map(($)=>["accounts",N1,...$]),...kJ.map(($)=>["innerInstructions",N1,...$])]}function kV2(){return($,V)=>{let J=$;if("error"in J){let{error:Q}=J;if(Q&&typeof Q==="object"&&"code"in Q&&(Q.code===-32002||Q.code===-32002n)&&"data"in Q&&Q.data){let G=kv([Ev(mV2())],{keyPath:[]})(Q.data,V),W={...Q,data:G};throw lG(W)}throw lG(J.error)}return J}}function hv($){return(V,J)=>{let Q=J.methodName,X=$?.allowedNumericKeyPaths&&Q?$.allowedNumericKeyPaths[Q]:void 0;return h9(V,(Y)=>kV2()(Y,J),(Y)=>pV2()(Y,J),(Y)=>vv(X??[])(Y,J))}}function xv($){return(V,J)=>{let Q=J.methodName,X=$?.allowedNumericKeyPaths&&Q?$.allowedNumericKeyPaths[Q]:void 0;return h9(V,(Y)=>vv(X??[])(Y,J))}}function dv($){return Yv({requestTransformer:fG($),responseTransformer:hv({allowedNumericKeyPaths:EV2()})})}var Ew;function EV2(){if(!Ew)Ew={getAccountInfo:u8.map(($)=>["value",...$]),getBlock:[["transactions",N1,"meta","preTokenBalances",N1,"accountIndex"],["transactions",N1,"meta","preTokenBalances",N1,"uiTokenAmount","decimals"],["transactions",N1,"meta","postTokenBalances",N1,"accountIndex"],["transactions",N1,"meta","postTokenBalances",N1,"uiTokenAmount","decimals"],["transactions",N1,"meta","rewards",N1,"commission"],...kJ.map(($)=>["transactions",N1,"meta","innerInstructions",N1,...$]),...kw.map(($)=>["transactions",N1,"transaction","message",...$]),["rewards",N1,"commission"]],getClusterNodes:[[N1,"featureSet"],[N1,"shredVersion"]],getInflationGovernor:[["initial"],["foundation"],["foundationTerm"],["taper"],["terminal"]],getInflationRate:[["foundation"],["total"],["validator"]],getInflationReward:[[N1,"commission"]],getMultipleAccounts:u8.map(($)=>["value",N1,...$]),getProgramAccounts:u8.flatMap(($)=>[["value",N1,"account",...$],[N1,"account",...$]]),getRecentPerformanceSamples:[[N1,"samplePeriodSecs"]],getTokenAccountBalance:[["value","decimals"],["value","uiAmount"]],getTokenAccountsByDelegate:uG.map(($)=>["value",N1,"account",...$]),getTokenAccountsByOwner:uG.map(($)=>["value",N1,"account",...$]),getTokenLargestAccounts:[["value",N1,"decimals"],["value",N1,"uiAmount"]],getTokenSupply:[["value","decimals"],["value","uiAmount"]],getTransaction:[["meta","preTokenBalances",N1,"accountIndex"],["meta","preTokenBalances",N1,"uiTokenAmount","decimals"],["meta","postTokenBalances",N1,"accountIndex"],["meta","postTokenBalances",N1,"uiTokenAmount","decimals"],["meta","rewards",N1,"commission"],...kJ.map(($)=>["meta","innerInstructions",N1,...$]),...kw.map(($)=>["transaction","message",...$])],getVersion:[["feature-set"]],getVoteAccounts:[["current",N1,"commission"],["delinquent",N1,"commission"]],simulateTransaction:[["value","loadedAccountsDataSize"],...u8.map(($)=>["value","accounts",N1,...$]),...kJ.map(($)=>["value","innerInstructions",N1,...$])]};return Ew}var vV2=1,hV2=2,xV2=3,dV2=4,yV2=5,bV2=6,gV2=7,lV2=8,fV2=9,uV2=10,aV2=-32700,iV2=-32603,cV2=-32602,nV2=-32601,oV2=-32600,sV2=-32019,rV2=-32018,tV2=-32017,eV2=-32016,$J2=-32015,VJ2=-32014,JJ2=-32013,QJ2=-32012,XJ2=-32011,YJ2=-32010,GJ2=-32009,WJ2=-32008,KJ2=-32007,qJ2=-32006,DJ2=-32005,HJ2=-32004,ZJ2=-32003,UJ2=-32002,wJ2=-32001,zJ2=2800000,jJ2=2800001,NJ2=2800002,MJ2=2800003,LJ2=2800004,RJ2=2800005,PJ2=2800006,OJ2=2800007,FJ2=2800008,BJ2=2800009,SJ2=2800010,_J2=2800011,CJ2=3230000,IJ2=32300001,TJ2=3230002,AJ2=3230003,pJ2=3230004,mJ2=3610000,kJ2=3610001,EJ2=3610002,vJ2=3610003,hJ2=3610004,xJ2=3610005,dJ2=3610006,yJ2=3610007,bJ2=3611000,gJ2=3704000,lJ2=3704001,fJ2=3704002,uJ2=3704003,aJ2=3704004,iJ2=4128000,cJ2=4128001,nJ2=4128002,oJ2=4615000,sJ2=4615001,rJ2=4615002,tJ2=4615003,eJ2=4615004,$Q2=4615005,VQ2=4615006,JQ2=4615007,QQ2=4615008,XQ2=4615009,YQ2=4615010,GQ2=4615011,WQ2=4615012,KQ2=4615013,qQ2=4615014,DQ2=4615015,HQ2=4615016,ZQ2=4615017,UQ2=4615018,wQ2=4615019,zQ2=4615020,jQ2=4615021,NQ2=4615022,MQ2=4615023,LQ2=4615024,RQ2=4615025,PQ2=4615026,OQ2=4615027,FQ2=4615028,BQ2=4615029,SQ2=4615030,_Q2=4615031,CQ2=4615032,IQ2=4615033,TQ2=4615034,AQ2=4615035,pQ2=4615036,mQ2=4615037,kQ2=4615038,EQ2=4615039,vQ2=4615040,hQ2=4615041,xQ2=4615042,dQ2=4615043,yQ2=4615044,bQ2=4615045,gQ2=4615046,lQ2=4615047,fQ2=4615048,uQ2=4615049,aQ2=4615050,iQ2=4615051,cQ2=4615052,nQ2=4615053,oQ2=4615054,sQ2=5508000,rQ2=5508001,tQ2=5508002,eQ2=5508003,$X2=5508004,VX2=5508005,JX2=5508006,QX2=5508007,XX2=5508008,YX2=5508009,GX2=5508010,WX2=5508011,KX2=5607000,qX2=5607001,DX2=5607002,HX2=5607003,ZX2=5607004,UX2=5607005,wX2=5607006,zX2=5607007,jX2=5607008,NX2=5607009,MX2=5607010,LX2=5607011,RX2=5607012,PX2=5607013,OX2=5607014,FX2=5607015,BX2=5607016,SX2=5607017,_X2=5663000,CX2=5663001,IX2=5663002,TX2=5663003,AX2=5663004,pX2=5663005,mX2=5663006,kX2=5663007,EX2=5663008,vX2=5663009,hX2=5663010,xX2=5663011,dX2=5663012,yX2=5663013,bX2=5663014,gX2=5663015,lX2=5663016,fX2=5663017,uX2=5663018,aX2=5663019,iX2=5663020,cX2=5663021,nX2=5663022,oX2=7050000,sX2=7050001,rX2=7050002,tX2=7050003,eX2=7050004,$Y2=7050005,VY2=7050006,JY2=7050007,QY2=7050008,XY2=7050009,YY2=7050010,GY2=7050011,WY2=7050012,KY2=7050013,qY2=7050014,DY2=7050015,HY2=7050016,ZY2=7050017,UY2=7050018,wY2=7050019,zY2=7050020,jY2=7050021,NY2=7050022,MY2=7050023,LY2=7050024,RY2=7050025,PY2=7050026,OY2=7050027,FY2=7050028,BY2=7050029,SY2=7050030,_Y2=7050031,CY2=7050032,IY2=7050033,TY2=7050034,AY2=7050035,pY2=7050036,mY2=7618000,kY2=7618001,EY2=7618002,vY2=7618003,hY2=7618004,xY2=7618005,dY2=7618006,yY2=7618007,bY2=7618008,gY2=7618009,lY2=8078000,fY2=8078001,uY2=8078002,aY2=8078003,iY2=8078004,cY2=8078005,nY2=8078006,oY2=8078007,sY2=8078008,rY2=8078009,tY2=8078010,eY2=8078011,$G2=8078012,VG2=8078013,JG2=8078014,QG2=8078015,XG2=8078016,YG2=8078017,GG2=8078018,WG2=8078019,KG2=8078020,qG2=8078021,DG2=8078022,HG2=8078023,vw=8100000,ZG2=8100001,UG2=8100002,wG2=8100003,zG2=8190000,jG2=8190001,NG2=8190002,MG2=8190003,LG2=8190004,RG2=9900000,PG2=9900001,OG2=9900002,FG2=9900003,BG2=9900004,SG2=9900005,_G2=9900006;var CG2={[CJ2]:"Account not found at address: $address",[pJ2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[AJ2]:"Expected decoded account at address: $address",[TJ2]:"Failed to decode account data at address: $address",[IJ2]:"Accounts not found at addresses: $addresses",[BJ2]:"Unable to find a viable program address bump seed.",[NJ2]:"$putativeAddress is not a base58-encoded address.",[zJ2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[MJ2]:"The `CryptoKey` must be an `Ed25519` public key.",[_J2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[FJ2]:"Invalid seeds; point must fall off the Ed25519 curve.",[LJ2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[PJ2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[OJ2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[RJ2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[SJ2]:"Program address cannot end with PDA marker.",[jJ2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[dV2]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[vV2]:"The network has progressed past the last block for which this transaction could have been committed.",[lY2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[DG2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[KG2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[cY2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[nY2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[iY2]:"Encoder and decoder must either both be fixed-size or variable-size.",[sY2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[uY2]:"Expected a fixed-size codec, got a variable-size one.",[VG2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[aY2]:"Expected a variable-size codec, got a fixed-size one.",[WG2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[fY2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[GG2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[rY2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[tY2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[QG2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[oY2]:"Expected [$codecDescription] to have $expected items, got $actual.",[$G2]:"Invalid value $value for base $base with alphabet $alphabet.",[XG2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[eY2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[JG2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[qG2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[YG2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[HG2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[bJ2]:"No random values implementation could be found.",[XQ2]:"instruction requires an uninitialized account",[MQ2]:"instruction tries to borrow reference for an account which is already borrowed",[LQ2]:"instruction left account with an outstanding borrowed reference",[jQ2]:"program other than the account's owner changed the size of the account data",[$Q2]:"account data too small for instruction",[NQ2]:"instruction expected an executable account",[gQ2]:"An account does not have enough lamports to be rent-exempt",[fQ2]:"Program arithmetic overflowed",[bQ2]:"Failed to serialize or deserialize account data: $encodedData",[oQ2]:"Builtin programs must consume compute units",[CQ2]:"Cross-program invocation call depth too deep",[kQ2]:"Computational budget exceeded",[PQ2]:"custom program error: #$code",[ZQ2]:"instruction contains duplicate accounts",[RQ2]:"instruction modifications of multiply-passed account differ",[SQ2]:"executable accounts must be rent exempt",[FQ2]:"instruction changed executable accounts data",[BQ2]:"instruction changed the balance of an executable account",[UQ2]:"instruction changed executable bit of an account",[qQ2]:"instruction modified data of an account it does not own",[KQ2]:"instruction spent from the balance of an account it does not own",[sJ2]:"generic instruction error",[aQ2]:"Provided owner is not allowed",[dQ2]:"Account is immutable",[yQ2]:"Incorrect authority provided",[JQ2]:"incorrect program id for instruction",[VQ2]:"insufficient funds for instruction",[eJ2]:"invalid account data for instruction",[lQ2]:"Invalid account owner",[rJ2]:"invalid program argument",[OQ2]:"program returned invalid error code",[tJ2]:"invalid instruction data",[mQ2]:"Failed to reallocate account data",[pQ2]:"Provided seeds do not result in a valid address",[iQ2]:"Accounts data allocations exceeded the maximum allowed per transaction",[cQ2]:"Max accounts exceeded",[nQ2]:"Max instruction trace length exceeded",[AQ2]:"Length of the seed is too long for address generation",[IQ2]:"An account required by the instruction is missing",[QQ2]:"missing required signature for instruction",[WQ2]:"instruction illegally modified the program id of an account",[zQ2]:"insufficient account keys for instruction",[EQ2]:"Cross-program invocation with unauthorized signer or writable account",[vQ2]:"Failed to create program execution environment",[xQ2]:"Program failed to compile",[hQ2]:"Program failed to complete",[HQ2]:"instruction modified data of a read-only account",[DQ2]:"instruction changed the balance of a read-only account",[TQ2]:"Cross-program invocation reentrancy not allowed for this instruction",[wQ2]:"instruction modified rent epoch of an account",[GQ2]:"sum of account balances before and after instruction do not match",[YQ2]:"instruction requires an initialized account",[oJ2]:"",[_Q2]:"Unsupported program id",[uQ2]:"Unsupported sysvar",[SG2]:"Invalid instruction plan kind: $kind.",[EY2]:"The provided instruction plan is empty.",[xY2]:"No failed transaction plan result was found in the provided transaction plan result.",[hY2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[vY2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[mY2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[_G2]:"Invalid transaction plan kind: $kind.",[kY2]:"No more instructions to pack; the message packer has completed the instruction plan.",[dY2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[yY2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[bY2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[gY2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[iJ2]:"The instruction does not have any accounts.",[cJ2]:"The instruction does not have any data.",[nJ2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[yV2]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[hV2]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[OG2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[BG2]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[PG2]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[RG2]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[FG2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[iV2]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[cV2]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[oV2]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[nV2]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[aV2]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[QJ2]:"$__serverMessage",[wJ2]:"$__serverMessage",[HJ2]:"$__serverMessage",[VJ2]:"$__serverMessage",[tV2]:"Epoch rewards period still active at slot $slot",[YJ2]:"$__serverMessage",[GJ2]:"$__serverMessage",[sV2]:"Failed to query long-term storage; please try again",[eV2]:"Minimum context slot has not been reached",[DJ2]:"Node is unhealthy; behind by $numSlotsBehind slots",[WJ2]:"No snapshot",[UJ2]:"Transaction simulation failed",[rV2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[KJ2]:"$__serverMessage",[XJ2]:"Transaction history is not available from this node",[qJ2]:"$__serverMessage",[JJ2]:"Transaction signature length mismatch",[ZJ2]:"Transaction signature verification failure",[$J2]:"$__serverMessage",[gJ2]:"Key pair bytes must be of length 64, got $byteLength.",[lJ2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[fJ2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[aJ2]:"The provided private key does not match the provided public key.",[uJ2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[bV2]:"Lamports value must be in the range [0, 2e64-1]",[gV2]:"`$value` cannot be parsed as a `BigInt`",[uV2]:"$message",[lV2]:"`$value` cannot be parsed as a `Number`",[xV2]:"No nonce account could be found at address `$nonceAccountAddress`",[HX2]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[PX2]:"Attempted to sign an offchain message with an address that is not a signer for it",[DX2]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[RX2]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[KX2]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[zX2]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[jX2]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[NX2]:"Offchain message content must be non-empty",[UX2]:"Offchain message must specify the address of at least one required signer",[MX2]:"Offchain message envelope must reserve space for at least one signature",[ZX2]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[FX2]:"The signatories of this offchain message must be listed in lexicographical order",[BX2]:"An address must be listed no more than once among the signatories of an offchain message",[LX2]:"Offchain message is missing signatures for addresses: $addresses.",[SX2]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[qX2]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[OX2]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[wX2]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[zG2]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[NG2]:"WebSocket was closed before payload could be added to the send buffer",[MG2]:"WebSocket connection closed",[LG2]:"WebSocket failed to connect",[jG2]:"Failed to obtain a subscription id from the server",[wG2]:"Could not find an API plan for RPC method: `$method`",[vw]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[UG2]:"HTTP error ($statusCode): $message",[ZG2]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[sQ2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[rQ2]:"The provided value does not implement the `KeyPairSigner` interface",[eQ2]:"The provided value does not implement the `MessageModifyingSigner` interface",[$X2]:"The provided value does not implement the `MessagePartialSigner` interface",[tQ2]:"The provided value does not implement any of the `MessageSigner` interfaces",[JX2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[QX2]:"The provided value does not implement the `TransactionPartialSigner` interface",[XX2]:"The provided value does not implement the `TransactionSendingSigner` interface",[VX2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[YX2]:"More than one `TransactionSendingSigner` was identified.",[GX2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[WX2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[yJ2]:"Cannot export a non-extractable key.",[kJ2]:"No digest implementation could be found.",[mJ2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[EJ2]:`This runtime does not support the generation of Ed25519 key pairs.
89
+
90
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
91
+
92
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[vJ2]:"No signature verification implementation could be found.",[hJ2]:"No key generation implementation could be found.",[xJ2]:"No signing implementation could be found.",[dJ2]:"No key export implementation could be found.",[fV2]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[HY2]:"Transaction processing left an account with an outstanding borrowed reference",[sX2]:"Account in use",[rX2]:"Account loaded twice",[tX2]:"Attempt to debit an account but found no record of a prior credit.",[MY2]:"Transaction loads an address table account that doesn't exist",[JY2]:"This transaction has already been processed",[QY2]:"Blockhash not found",[XY2]:"Loader call chain is too deep",[DY2]:"Transactions are currently disabled due to cluster maintenance",[SY2]:"Transaction contains a duplicate instruction ($index) that is not allowed",[$Y2]:"Insufficient funds for fee",[_Y2]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[VY2]:"This account may not be used to pay transaction fees",[GY2]:"Transaction contains an invalid account reference",[RY2]:"Transaction loads an address table account with invalid data",[PY2]:"Transaction address table lookup uses an invalid index",[LY2]:"Transaction loads an address table account with an invalid owner",[IY2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[KY2]:"This program may not be used for executing instructions",[OY2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[wY2]:"Transaction loads a writable account that cannot be written",[CY2]:"Transaction exceeded max loaded accounts data size cap",[YY2]:"Transaction requires a fee but has no signature present",[eX2]:"Attempt to load a program that does not exist",[AY2]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[TY2]:"ResanitizationNeeded",[qY2]:"Transaction failed to sanitize accounts offsets correctly",[WY2]:"Transaction did not pass signature verification",[NY2]:"Transaction locked too many accounts",[pY2]:"Sum of account balances before and after transaction do not match",[oX2]:"The transaction failed with the error `$errorName`",[UY2]:"Transaction version is unsupported",[jY2]:"Transaction would exceed account data limit within the block",[BY2]:"Transaction would exceed total account data limit",[zY2]:"Transaction would exceed max account limit within the block",[ZY2]:"Transaction would exceed max Block Cost Limit",[FY2]:"Transaction would exceed max Vote Cost Limit",[gX2]:"Attempted to sign a transaction with an address that is not a signer for it",[hX2]:"Transaction is missing an address at index: $index.",[lX2]:"Transaction has no expected signers therefore it cannot be encoded",[iX2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[IX2]:"Transaction does not have a blockhash lifetime",[TX2]:"Transaction is not a durable nonce transaction",[pX2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[mX2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[EX2]:"No fee payer set in CompiledTransaction",[kX2]:"Could not find program address at index $index",[uX2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[aX2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[xX2]:"Transaction is missing a fee payer.",[dX2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[bX2]:"Transaction first instruction is not advance nonce account instruction.",[yX2]:"Transaction with no instructions cannot be durable nonce transaction.",[_X2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[CX2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[fX2]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[vX2]:"Transaction is missing signatures for addresses: $addresses.",[AX2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[cX2]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[nX2]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},a8="i",f4="t";function IG2($,V={}){let J=CG2[$];if(J.length===0)return"";let Q;function X(G){if(Q[f4]===2){let W=J.slice(Q[a8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[f4]===1)Y.push(J.slice(Q[a8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[a8]:0,[f4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[f4]){case 0:K={[a8]:W,[f4]:1};break;case 1:if(G==="\\")K={[a8]:W,[f4]:0};else if(G==="$")K={[a8]:W,[f4]:2};break;case 2:if(G==="\\")K={[a8]:W,[f4]:0};else if(G==="$")K={[a8]:W,[f4]:2};else if(!G.match(/\w/))K={[a8]:W,[f4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function TG2($,V={}){return IG2($,V)}var yv=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=TG2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function bv(...$){if("captureStackTrace"in Error&&typeof Error.captureStackTrace==="function")Error.captureStackTrace(...$)}var AG2=1,pG2=2,mG2=3,kG2=4,EG2=5,vG2=6,hG2=7,xG2=8,dG2=9,yG2=10,bG2=-32700,gG2=-32603,lG2=-32602,fG2=-32601,uG2=-32600,aG2=-32019,iG2=-32018,cG2=-32017,nG2=-32016,oG2=-32015,sG2=-32014,rG2=-32013,tG2=-32012,eG2=-32011,$W2=-32010,VW2=-32009,JW2=-32008,QW2=-32007,XW2=-32006,YW2=-32005,GW2=-32004,WW2=-32003,KW2=-32002,qW2=-32001,DW2=2800000,HW2=2800001,ZW2=2800002,UW2=2800003,wW2=2800004,zW2=2800005,jW2=2800006,NW2=2800007,MW2=2800008,LW2=2800009,RW2=2800010,PW2=2800011,OW2=3230000,FW2=32300001,BW2=3230002,SW2=3230003,_W2=3230004,CW2=3610000,IW2=3610001,TW2=3610002,AW2=3610003,pW2=3610004,mW2=3610005,kW2=3610006,EW2=3610007,vW2=3611000,hW2=3704000,xW2=3704001,dW2=3704002,yW2=3704003,bW2=3704004,gW2=4128000,lW2=4128001,fW2=4128002,uW2=4615000,aW2=4615001,iW2=4615002,cW2=4615003,nW2=4615004,oW2=4615005,sW2=4615006,rW2=4615007,tW2=4615008,eW2=4615009,$K2=4615010,VK2=4615011,JK2=4615012,QK2=4615013,XK2=4615014,YK2=4615015,GK2=4615016,WK2=4615017,KK2=4615018,qK2=4615019,DK2=4615020,HK2=4615021,ZK2=4615022,UK2=4615023,wK2=4615024,zK2=4615025,jK2=4615026,NK2=4615027,MK2=4615028,LK2=4615029,RK2=4615030,PK2=4615031,OK2=4615032,FK2=4615033,BK2=4615034,SK2=4615035,_K2=4615036,CK2=4615037,IK2=4615038,TK2=4615039,AK2=4615040,pK2=4615041,mK2=4615042,kK2=4615043,EK2=4615044,vK2=4615045,hK2=4615046,xK2=4615047,dK2=4615048,yK2=4615049,bK2=4615050,gK2=4615051,lK2=4615052,fK2=4615053,uK2=4615054,aK2=5508000,iK2=5508001,cK2=5508002,nK2=5508003,oK2=5508004,sK2=5508005,rK2=5508006,tK2=5508007,eK2=5508008,$q2=5508009,Vq2=5508010,Jq2=5508011,Qq2=5607000,Xq2=5607001,Yq2=5607002,Gq2=5607003,Wq2=5607004,Kq2=5607005,qq2=5607006,Dq2=5607007,Hq2=5607008,Zq2=5607009,Uq2=5607010,wq2=5607011,zq2=5607012,jq2=5607013,Nq2=5607014,Mq2=5607015,Lq2=5607016,Rq2=5607017,Pq2=5663000,Oq2=5663001,Fq2=5663002,Bq2=5663003,Sq2=5663004,_q2=5663005,Cq2=5663006,Iq2=5663007,Tq2=5663008,Aq2=5663009,pq2=5663010,mq2=5663011,kq2=5663012,Eq2=5663013,vq2=5663014,hq2=5663015,xq2=5663016,dq2=5663017,yq2=5663018,bq2=5663019,gq2=5663020,lq2=5663021,fq2=5663022,uq2=7050000,aq2=7050001,iq2=7050002,cq2=7050003,nq2=7050004,oq2=7050005,sq2=7050006,rq2=7050007,tq2=7050008,eq2=7050009,$D2=7050010,VD2=7050011,JD2=7050012,QD2=7050013,XD2=7050014,YD2=7050015,GD2=7050016,WD2=7050017,KD2=7050018,qD2=7050019,DD2=7050020,HD2=7050021,ZD2=7050022,UD2=7050023,wD2=7050024,zD2=7050025,jD2=7050026,ND2=7050027,MD2=7050028,LD2=7050029,RD2=7050030,PD2=7050031,OD2=7050032,FD2=7050033,BD2=7050034,SD2=7050035,_D2=7050036,CD2=7618000,ID2=7618001,TD2=7618002,AD2=7618003,pD2=7618004,mD2=7618005,kD2=7618006,ED2=7618007,vD2=7618008,hD2=7618009,xD2=8078000,dD2=8078001,yD2=8078002,bD2=8078003,gD2=8078004,lD2=8078005,fD2=8078006,uD2=8078007,aD2=8078008,iD2=8078009,cD2=8078010,nD2=8078011,oD2=8078012,sD2=8078013,rD2=8078014,tD2=8078015,eD2=8078016,$H2=8078017,VH2=8078018,JH2=8078019,QH2=8078020,XH2=8078021,YH2=8078022,GH2=8078023,WH2=8100000,hw=8100001,xw=8100002,KH2=8100003,qH2=8190000,DH2=8190001,HH2=8190002,ZH2=8190003,UH2=8190004,wH2=9900000,zH2=9900001,jH2=9900002,NH2=9900003,MH2=9900004,LH2=9900005,RH2=9900006;var PH2={[OW2]:"Account not found at address: $address",[_W2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[SW2]:"Expected decoded account at address: $address",[BW2]:"Failed to decode account data at address: $address",[FW2]:"Accounts not found at addresses: $addresses",[LW2]:"Unable to find a viable program address bump seed.",[ZW2]:"$putativeAddress is not a base58-encoded address.",[DW2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[UW2]:"The `CryptoKey` must be an `Ed25519` public key.",[PW2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[MW2]:"Invalid seeds; point must fall off the Ed25519 curve.",[wW2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[jW2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[NW2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[zW2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[RW2]:"Program address cannot end with PDA marker.",[HW2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[kG2]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[AG2]:"The network has progressed past the last block for which this transaction could have been committed.",[xD2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[YH2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[QH2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[lD2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[fD2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[gD2]:"Encoder and decoder must either both be fixed-size or variable-size.",[aD2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[yD2]:"Expected a fixed-size codec, got a variable-size one.",[sD2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[bD2]:"Expected a variable-size codec, got a fixed-size one.",[JH2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[dD2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[VH2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[iD2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[cD2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[tD2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[uD2]:"Expected [$codecDescription] to have $expected items, got $actual.",[oD2]:"Invalid value $value for base $base with alphabet $alphabet.",[eD2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[nD2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[rD2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[XH2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[$H2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[GH2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[vW2]:"No random values implementation could be found.",[eW2]:"instruction requires an uninitialized account",[UK2]:"instruction tries to borrow reference for an account which is already borrowed",[wK2]:"instruction left account with an outstanding borrowed reference",[HK2]:"program other than the account's owner changed the size of the account data",[oW2]:"account data too small for instruction",[ZK2]:"instruction expected an executable account",[hK2]:"An account does not have enough lamports to be rent-exempt",[dK2]:"Program arithmetic overflowed",[vK2]:"Failed to serialize or deserialize account data: $encodedData",[uK2]:"Builtin programs must consume compute units",[OK2]:"Cross-program invocation call depth too deep",[IK2]:"Computational budget exceeded",[jK2]:"custom program error: #$code",[WK2]:"instruction contains duplicate accounts",[zK2]:"instruction modifications of multiply-passed account differ",[RK2]:"executable accounts must be rent exempt",[MK2]:"instruction changed executable accounts data",[LK2]:"instruction changed the balance of an executable account",[KK2]:"instruction changed executable bit of an account",[XK2]:"instruction modified data of an account it does not own",[QK2]:"instruction spent from the balance of an account it does not own",[aW2]:"generic instruction error",[bK2]:"Provided owner is not allowed",[kK2]:"Account is immutable",[EK2]:"Incorrect authority provided",[rW2]:"incorrect program id for instruction",[sW2]:"insufficient funds for instruction",[nW2]:"invalid account data for instruction",[xK2]:"Invalid account owner",[iW2]:"invalid program argument",[NK2]:"program returned invalid error code",[cW2]:"invalid instruction data",[CK2]:"Failed to reallocate account data",[_K2]:"Provided seeds do not result in a valid address",[gK2]:"Accounts data allocations exceeded the maximum allowed per transaction",[lK2]:"Max accounts exceeded",[fK2]:"Max instruction trace length exceeded",[SK2]:"Length of the seed is too long for address generation",[FK2]:"An account required by the instruction is missing",[tW2]:"missing required signature for instruction",[JK2]:"instruction illegally modified the program id of an account",[DK2]:"insufficient account keys for instruction",[TK2]:"Cross-program invocation with unauthorized signer or writable account",[AK2]:"Failed to create program execution environment",[mK2]:"Program failed to compile",[pK2]:"Program failed to complete",[GK2]:"instruction modified data of a read-only account",[YK2]:"instruction changed the balance of a read-only account",[BK2]:"Cross-program invocation reentrancy not allowed for this instruction",[qK2]:"instruction modified rent epoch of an account",[VK2]:"sum of account balances before and after instruction do not match",[$K2]:"instruction requires an initialized account",[uW2]:"",[PK2]:"Unsupported program id",[yK2]:"Unsupported sysvar",[LH2]:"Invalid instruction plan kind: $kind.",[TD2]:"The provided instruction plan is empty.",[mD2]:"No failed transaction plan result was found in the provided transaction plan result.",[pD2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[AD2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[CD2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[RH2]:"Invalid transaction plan kind: $kind.",[ID2]:"No more instructions to pack; the message packer has completed the instruction plan.",[kD2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[ED2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[vD2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[hD2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[gW2]:"The instruction does not have any accounts.",[lW2]:"The instruction does not have any data.",[fW2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[EG2]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[pG2]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[jH2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[MH2]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[zH2]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[wH2]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[NH2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[gG2]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[lG2]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[uG2]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[fG2]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[bG2]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[tG2]:"$__serverMessage",[qW2]:"$__serverMessage",[GW2]:"$__serverMessage",[sG2]:"$__serverMessage",[cG2]:"Epoch rewards period still active at slot $slot",[$W2]:"$__serverMessage",[VW2]:"$__serverMessage",[aG2]:"Failed to query long-term storage; please try again",[nG2]:"Minimum context slot has not been reached",[YW2]:"Node is unhealthy; behind by $numSlotsBehind slots",[JW2]:"No snapshot",[KW2]:"Transaction simulation failed",[iG2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[QW2]:"$__serverMessage",[eG2]:"Transaction history is not available from this node",[XW2]:"$__serverMessage",[rG2]:"Transaction signature length mismatch",[WW2]:"Transaction signature verification failure",[oG2]:"$__serverMessage",[hW2]:"Key pair bytes must be of length 64, got $byteLength.",[xW2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[dW2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[bW2]:"The provided private key does not match the provided public key.",[yW2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[vG2]:"Lamports value must be in the range [0, 2e64-1]",[hG2]:"`$value` cannot be parsed as a `BigInt`",[yG2]:"$message",[xG2]:"`$value` cannot be parsed as a `Number`",[mG2]:"No nonce account could be found at address `$nonceAccountAddress`",[Gq2]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[jq2]:"Attempted to sign an offchain message with an address that is not a signer for it",[Yq2]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[zq2]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Qq2]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[Dq2]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[Hq2]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Zq2]:"Offchain message content must be non-empty",[Kq2]:"Offchain message must specify the address of at least one required signer",[Uq2]:"Offchain message envelope must reserve space for at least one signature",[Wq2]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[Mq2]:"The signatories of this offchain message must be listed in lexicographical order",[Lq2]:"An address must be listed no more than once among the signatories of an offchain message",[wq2]:"Offchain message is missing signatures for addresses: $addresses.",[Rq2]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[Xq2]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Nq2]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[qq2]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[qH2]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[HH2]:"WebSocket was closed before payload could be added to the send buffer",[ZH2]:"WebSocket connection closed",[UH2]:"WebSocket failed to connect",[DH2]:"Failed to obtain a subscription id from the server",[KH2]:"Could not find an API plan for RPC method: `$method`",[WH2]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[xw]:"HTTP error ($statusCode): $message",[hw]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[aK2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[iK2]:"The provided value does not implement the `KeyPairSigner` interface",[nK2]:"The provided value does not implement the `MessageModifyingSigner` interface",[oK2]:"The provided value does not implement the `MessagePartialSigner` interface",[cK2]:"The provided value does not implement any of the `MessageSigner` interfaces",[rK2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[tK2]:"The provided value does not implement the `TransactionPartialSigner` interface",[eK2]:"The provided value does not implement the `TransactionSendingSigner` interface",[sK2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[$q2]:"More than one `TransactionSendingSigner` was identified.",[Vq2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Jq2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[EW2]:"Cannot export a non-extractable key.",[IW2]:"No digest implementation could be found.",[CW2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[TW2]:`This runtime does not support the generation of Ed25519 key pairs.
93
+
94
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
95
+
96
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[AW2]:"No signature verification implementation could be found.",[pW2]:"No key generation implementation could be found.",[mW2]:"No signing implementation could be found.",[kW2]:"No key export implementation could be found.",[dG2]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[GD2]:"Transaction processing left an account with an outstanding borrowed reference",[aq2]:"Account in use",[iq2]:"Account loaded twice",[cq2]:"Attempt to debit an account but found no record of a prior credit.",[UD2]:"Transaction loads an address table account that doesn't exist",[rq2]:"This transaction has already been processed",[tq2]:"Blockhash not found",[eq2]:"Loader call chain is too deep",[YD2]:"Transactions are currently disabled due to cluster maintenance",[RD2]:"Transaction contains a duplicate instruction ($index) that is not allowed",[oq2]:"Insufficient funds for fee",[PD2]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[sq2]:"This account may not be used to pay transaction fees",[VD2]:"Transaction contains an invalid account reference",[zD2]:"Transaction loads an address table account with invalid data",[jD2]:"Transaction address table lookup uses an invalid index",[wD2]:"Transaction loads an address table account with an invalid owner",[FD2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[QD2]:"This program may not be used for executing instructions",[ND2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[qD2]:"Transaction loads a writable account that cannot be written",[OD2]:"Transaction exceeded max loaded accounts data size cap",[$D2]:"Transaction requires a fee but has no signature present",[nq2]:"Attempt to load a program that does not exist",[SD2]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[BD2]:"ResanitizationNeeded",[XD2]:"Transaction failed to sanitize accounts offsets correctly",[JD2]:"Transaction did not pass signature verification",[ZD2]:"Transaction locked too many accounts",[_D2]:"Sum of account balances before and after transaction do not match",[uq2]:"The transaction failed with the error `$errorName`",[KD2]:"Transaction version is unsupported",[HD2]:"Transaction would exceed account data limit within the block",[LD2]:"Transaction would exceed total account data limit",[DD2]:"Transaction would exceed max account limit within the block",[WD2]:"Transaction would exceed max Block Cost Limit",[MD2]:"Transaction would exceed max Vote Cost Limit",[hq2]:"Attempted to sign a transaction with an address that is not a signer for it",[pq2]:"Transaction is missing an address at index: $index.",[xq2]:"Transaction has no expected signers therefore it cannot be encoded",[gq2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Fq2]:"Transaction does not have a blockhash lifetime",[Bq2]:"Transaction is not a durable nonce transaction",[_q2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Cq2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Tq2]:"No fee payer set in CompiledTransaction",[Iq2]:"Could not find program address at index $index",[yq2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[bq2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[mq2]:"Transaction is missing a fee payer.",[kq2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[vq2]:"Transaction first instruction is not advance nonce account instruction.",[Eq2]:"Transaction with no instructions cannot be durable nonce transaction.",[Pq2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Oq2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[dq2]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Aq2]:"Transaction is missing signatures for addresses: $addresses.",[Sq2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[lq2]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[fq2]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},i8="i",u4="t";function OH2($,V={}){let J=PH2[$];if(J.length===0)return"";let Q;function X(G){if(Q[u4]===2){let W=J.slice(Q[i8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[u4]===1)Y.push(J.slice(Q[i8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[i8]:0,[u4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[u4]){case 0:K={[i8]:W,[u4]:1};break;case 1:if(G==="\\")K={[i8]:W,[u4]:0};else if(G==="$")K={[i8]:W,[u4]:2};break;case 2:if(G==="\\")K={[i8]:W,[u4]:0};else if(G==="$")K={[i8]:W,[u4]:2};else if(!G.match(/\w/))K={[i8]:W,[u4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function FH2($,V={}){return OH2($,V)}var dw=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=FH2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};var BH2={accept:!0,"content-length":!0,"content-type":!0},SH2=Object.assign({"accept-charset":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,"permissions-policy":!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,via:!0},void 0,void 0);function _H2($){let V=Object.keys($).filter((J)=>{let Q=J.toLowerCase();return BH2[J.toLowerCase()]===!0||SH2[J.toLowerCase()]===!0||Q.startsWith("proxy-")||Q.startsWith("sec-")});if(V.length>0)throw new dw(hw,{headers:V})}function CH2($){let V={};for(let J in $)V[J.toLowerCase()]=$[J];return V}function IH2($){let{fromJson:V,headers:J,toJson:Q,url:X}=$;if(J)_H2(J);let Y;if("dispatcher_NODE_ONLY"in $)Y={dispatcher:$.dispatcher_NODE_ONLY};let G=J&&CH2(J);return async function({payload:K,signal:D}){let H=Q?Q(K):JSON.stringify(K),U={...Y,body:H,headers:{...G,accept:"application/json","content-length":H.length.toString(),"content-type":"application/json; charset=utf-8"},method:"POST",signal:D},z=await fetch(X,U);if(!z.ok)throw new dw(xw,{headers:z.headers,message:z.statusText,statusCode:z.status});if(V)return V(await z.text(),K);return await z.json()}}var TH2=["getAccountInfo","getBalance","getBlock","getBlockCommitment","getBlockHeight","getBlockProduction","getBlocks","getBlocksWithLimit","getBlockTime","getClusterNodes","getEpochInfo","getEpochSchedule","getFeeForMessage","getFirstAvailableBlock","getGenesisHash","getHealth","getHighestSnapshotSlot","getIdentity","getInflationGovernor","getInflationRate","getInflationReward","getLargestAccounts","getLatestBlockhash","getLeaderSchedule","getMaxRetransmitSlot","getMaxShredInsertSlot","getMinimumBalanceForRentExemption","getMultipleAccounts","getProgramAccounts","getRecentPerformanceSamples","getRecentPrioritizationFees","getSignaturesForAddress","getSignatureStatuses","getSlot","getSlotLeader","getSlotLeaders","getStakeMinimumDelegation","getSupply","getTokenAccountBalance","getTokenAccountsByDelegate","getTokenAccountsByOwner","getTokenLargestAccounts","getTokenSupply","getTransaction","getTransactionCount","getVersion","getVoteAccounts","index","isBlockhashValid","minimumLedgerSlot","requestAirdrop","sendTransaction","simulateTransaction"];function gv($){return bG($)&&TH2.includes($.method)}function lv($){return IH2({...$,fromJson:(V,J)=>gv(J)?dG(V):JSON.parse(V),toJson:(V)=>gv(V)?yG(V):JSON.stringify(V)})}import{setMaxListeners as mH2}from"events";var AH2=Object.prototype.toString,pH2=Object.keys||function($){let V=[];for(let J in $)V.push(J);return V};function EJ($,V){let J,Q,X,Y,G,W,K;if($===!0)return"true";if($===!1)return"false";switch(typeof $){case"object":if($===null)return null;else if("toJSON"in $&&typeof $.toJSON==="function")return EJ($.toJSON(),V);else if(K=AH2.call($),K==="[object Array]"){X="[",Q=$.length-1;for(J=0;J<Q;J++)X+=EJ($[J],!0)+",";if(Q>-1)X+=EJ($[J],!0);return X+"]"}else if(K==="[object Object]"){Y=pH2($).sort(),Q=Y.length,X="",J=0;while(J<Q){if(G=Y[J],W=EJ($[G],!1),W!==void 0){if(X)X+=",";X+=JSON.stringify(G)+":"+W}J++}return"{"+X+"}"}else return JSON.stringify($);case"function":case"undefined":return V?null:void 0;case"bigint":return`${$.toString()}n`;case"string":return JSON.stringify($);default:return isFinite($)?$:null}}function aG($){let V=EJ($,!1);if(V!==void 0)return""+V}function av($,V,J){let Q="";if(typeof V[0]==="number"){let G=V[0]+1,W=G%10,K=G%100;if(W==1&&K!=11)Q=G+"st";else if(W==2&&K!=12)Q=G+"nd";else if(W==3&&K!=13)Q=G+"rd";else Q=G+"th"}else Q=`\`${V[0].toString()}\``;let X=V.length>1?V.slice(1).map((G)=>typeof G==="number"?`[${G}]`:G).join("."):void 0,Y=new yv(vw,{argumentLabel:Q,keyPath:V,methodName:$,optionalPathLabel:X?` at path \`${X}\``:"",value:J,...X!==void 0?{path:X}:void 0});return bv(Y,av),Y}var kH2={defaultCommitment:"confirmed",onIntegerOverflow($,V,J){throw av($.methodName,V,J)}},EH2=class extends globalThis.AbortController{constructor(...$){super(...$),mH2(Number.MAX_SAFE_INTEGER,this.signal)}},fv;function uv(){return{EXPLICIT_ABORT_TOKEN:"This object is thrown from the request that underlies a series of coalesced requests when the last request in that series aborts"}}function vH2($,V){let J;return async function(X){let{payload:Y,signal:G}=X,W=V(Y);if(W===void 0)return await $(X);if(!J)queueMicrotask(()=>{J=void 0}),J={};if(J[W]==null){let D=new EH2,H=(async()=>{try{return await $({...X,signal:D.signal})}catch(U){if(U===(fv||=uv()))return;throw U}})();J[W]={abortController:D,numConsumers:0,responsePromise:H}}let K=J[W];if(K.numConsumers++,G){let D=K.responsePromise;return await new Promise((H,U)=>{let z=(M)=>{G.removeEventListener("abort",z),K.numConsumers-=1,queueMicrotask(()=>{if(K.numConsumers===0)K.abortController.abort(fv||=uv())}),U(M.target.reason)};G.addEventListener("abort",z),D.then(H).catch(U).finally(()=>{G.removeEventListener("abort",z)})})}else return await K.responsePromise}}function hH2($){return bG($)?aG([$.method,$.params]):void 0}function xH2($){let V={};for(let J in $)V[J.toLowerCase()]=$[J];return V}function dH2($){return h9(lv({...$,headers:{...{"accept-encoding":"br,gzip,deflate"},...$.headers?xH2($.headers):void 0,...{"solana-client":"js/5.5.1"}}}),(V)=>vH2(V,hH2))}function yw($,V){return yH2(dH2({url:$,...V}))}function yH2($){return Xv({api:dv(kH2),transport:$})}var bH2=1,gH2=2,lH2=3,fH2=4,uH2=5,aH2=6,iH2=7,cH2=8,nH2=9,iv=10,cv=-32700,nv=-32603,ov=-32602,sv=-32601,rv=-32600,oH2=-32019,sH2=-32018,rH2=-32017,tH2=-32016,tv=-32015,ev=-32014,eH2=-32013,$h=-32012,$Z2=-32011,Vh=-32010,Jh=-32009,VZ2=-32008,Qh=-32007,Xh=-32006,JZ2=-32005,Yh=-32004,QZ2=-32003,bw=-32002,Gh=-32001,XZ2=2800000,YZ2=2800001,GZ2=2800002,WZ2=2800003,KZ2=2800004,qZ2=2800005,DZ2=2800006,HZ2=2800007,ZZ2=2800008,UZ2=2800009,wZ2=2800010,zZ2=2800011,jZ2=3230000,NZ2=32300001,MZ2=3230002,LZ2=3230003,RZ2=3230004,PZ2=3610000,OZ2=3610001,FZ2=3610002,BZ2=3610003,SZ2=3610004,_Z2=3610005,CZ2=3610006,IZ2=3610007,TZ2=3611000,AZ2=3704000,pZ2=3704001,mZ2=3704002,kZ2=3704003,EZ2=3704004,vZ2=4128000,hZ2=4128001,xZ2=4128002,Wh=4615000,dZ2=4615001,yZ2=4615002,bZ2=4615003,gZ2=4615004,lZ2=4615005,fZ2=4615006,uZ2=4615007,aZ2=4615008,iZ2=4615009,cZ2=4615010,nZ2=4615011,oZ2=4615012,sZ2=4615013,rZ2=4615014,tZ2=4615015,eZ2=4615016,$U2=4615017,VU2=4615018,JU2=4615019,QU2=4615020,XU2=4615021,YU2=4615022,GU2=4615023,WU2=4615024,KU2=4615025,Kh=4615026,qU2=4615027,DU2=4615028,HU2=4615029,ZU2=4615030,UU2=4615031,wU2=4615032,zU2=4615033,jU2=4615034,NU2=4615035,MU2=4615036,LU2=4615037,RU2=4615038,PU2=4615039,OU2=4615040,FU2=4615041,BU2=4615042,SU2=4615043,_U2=4615044,CU2=4615045,IU2=4615046,TU2=4615047,AU2=4615048,pU2=4615049,mU2=4615050,kU2=4615051,EU2=4615052,vU2=4615053,hU2=4615054,xU2=5508000,dU2=5508001,yU2=5508002,bU2=5508003,gU2=5508004,lU2=5508005,fU2=5508006,uU2=5508007,aU2=5508008,iU2=5508009,cU2=5508010,nU2=5508011,oU2=5607000,sU2=5607001,rU2=5607002,tU2=5607003,eU2=5607004,$w2=5607005,Vw2=5607006,Jw2=5607007,Qw2=5607008,Xw2=5607009,Yw2=5607010,Gw2=5607011,Ww2=5607012,Kw2=5607013,qw2=5607014,Dw2=5607015,Hw2=5607016,Zw2=5607017,Uw2=5663000,ww2=5663001,zw2=5663002,jw2=5663003,Nw2=5663004,Mw2=5663005,Lw2=5663006,Rw2=5663007,Pw2=5663008,Ow2=5663009,Fw2=5663010,Bw2=5663011,Sw2=5663012,_w2=5663013,Cw2=5663014,Iw2=5663015,Tw2=5663016,Aw2=5663017,pw2=5663018,mw2=5663019,kw2=5663020,Ew2=5663021,vw2=5663022,qh=7050000,hw2=7050001,xw2=7050002,dw2=7050003,yw2=7050004,bw2=7050005,gw2=7050006,lw2=7050007,fw2=7050008,uw2=7050009,aw2=7050010,iw2=7050011,cw2=7050012,nw2=7050013,ow2=7050014,sw2=7050015,rw2=7050016,tw2=7050017,ew2=7050018,$z2=7050019,Vz2=7050020,Jz2=7050021,Qz2=7050022,Xz2=7050023,Yz2=7050024,Gz2=7050025,Wz2=7050026,Kz2=7050027,qz2=7050028,Dz2=7050029,Dh=7050030,Hh=7050031,Hz2=7050032,Zz2=7050033,Uz2=7050034,Zh=7050035,wz2=7050036,zz2=7618000,jz2=7618001,Nz2=7618002,Mz2=7618003,Lz2=7618004,Rz2=7618005,Pz2=7618006,Oz2=7618007,Fz2=7618008,Bz2=7618009,Sz2=8078000,_z2=8078001,Cz2=8078002,Iz2=8078003,Tz2=8078004,Az2=8078005,pz2=8078006,mz2=8078007,kz2=8078008,Ez2=8078009,vz2=8078010,hz2=8078011,xz2=8078012,dz2=8078013,yz2=8078014,bz2=8078015,gz2=8078016,lz2=8078017,fz2=8078018,uz2=8078019,az2=8078020,iz2=8078021,cz2=8078022,nz2=8078023,oz2=8100000,sz2=8100001,rz2=8100002,tz2=8100003,gw=8190000,lw=8190001,ez2=8190002,$j2=8190003,Vj2=8190004,Jj2=9900000,Qj2=9900001,Xj2=9900002,Yj2=9900003,fw=9900004,Gj2=9900005,Wj2=9900006;var Kj2={[jZ2]:"Account not found at address: $address",[RZ2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[LZ2]:"Expected decoded account at address: $address",[MZ2]:"Failed to decode account data at address: $address",[NZ2]:"Accounts not found at addresses: $addresses",[UZ2]:"Unable to find a viable program address bump seed.",[GZ2]:"$putativeAddress is not a base58-encoded address.",[XZ2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[WZ2]:"The `CryptoKey` must be an `Ed25519` public key.",[zZ2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[ZZ2]:"Invalid seeds; point must fall off the Ed25519 curve.",[KZ2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[DZ2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[HZ2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[qZ2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[wZ2]:"Program address cannot end with PDA marker.",[YZ2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[fH2]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[bH2]:"The network has progressed past the last block for which this transaction could have been committed.",[Sz2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[cz2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[az2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Az2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[pz2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Tz2]:"Encoder and decoder must either both be fixed-size or variable-size.",[kz2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[Cz2]:"Expected a fixed-size codec, got a variable-size one.",[dz2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[Iz2]:"Expected a variable-size codec, got a fixed-size one.",[uz2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[_z2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[fz2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[Ez2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[vz2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[bz2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[mz2]:"Expected [$codecDescription] to have $expected items, got $actual.",[xz2]:"Invalid value $value for base $base with alphabet $alphabet.",[gz2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[hz2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[yz2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[iz2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[lz2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[nz2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[TZ2]:"No random values implementation could be found.",[iZ2]:"instruction requires an uninitialized account",[GU2]:"instruction tries to borrow reference for an account which is already borrowed",[WU2]:"instruction left account with an outstanding borrowed reference",[XU2]:"program other than the account's owner changed the size of the account data",[lZ2]:"account data too small for instruction",[YU2]:"instruction expected an executable account",[IU2]:"An account does not have enough lamports to be rent-exempt",[AU2]:"Program arithmetic overflowed",[CU2]:"Failed to serialize or deserialize account data: $encodedData",[hU2]:"Builtin programs must consume compute units",[wU2]:"Cross-program invocation call depth too deep",[RU2]:"Computational budget exceeded",[Kh]:"custom program error: #$code",[$U2]:"instruction contains duplicate accounts",[KU2]:"instruction modifications of multiply-passed account differ",[ZU2]:"executable accounts must be rent exempt",[DU2]:"instruction changed executable accounts data",[HU2]:"instruction changed the balance of an executable account",[VU2]:"instruction changed executable bit of an account",[rZ2]:"instruction modified data of an account it does not own",[sZ2]:"instruction spent from the balance of an account it does not own",[dZ2]:"generic instruction error",[mU2]:"Provided owner is not allowed",[SU2]:"Account is immutable",[_U2]:"Incorrect authority provided",[uZ2]:"incorrect program id for instruction",[fZ2]:"insufficient funds for instruction",[gZ2]:"invalid account data for instruction",[TU2]:"Invalid account owner",[yZ2]:"invalid program argument",[qU2]:"program returned invalid error code",[bZ2]:"invalid instruction data",[LU2]:"Failed to reallocate account data",[MU2]:"Provided seeds do not result in a valid address",[kU2]:"Accounts data allocations exceeded the maximum allowed per transaction",[EU2]:"Max accounts exceeded",[vU2]:"Max instruction trace length exceeded",[NU2]:"Length of the seed is too long for address generation",[zU2]:"An account required by the instruction is missing",[aZ2]:"missing required signature for instruction",[oZ2]:"instruction illegally modified the program id of an account",[QU2]:"insufficient account keys for instruction",[PU2]:"Cross-program invocation with unauthorized signer or writable account",[OU2]:"Failed to create program execution environment",[BU2]:"Program failed to compile",[FU2]:"Program failed to complete",[eZ2]:"instruction modified data of a read-only account",[tZ2]:"instruction changed the balance of a read-only account",[jU2]:"Cross-program invocation reentrancy not allowed for this instruction",[JU2]:"instruction modified rent epoch of an account",[nZ2]:"sum of account balances before and after instruction do not match",[cZ2]:"instruction requires an initialized account",[Wh]:"",[UU2]:"Unsupported program id",[pU2]:"Unsupported sysvar",[Gj2]:"Invalid instruction plan kind: $kind.",[Nz2]:"The provided instruction plan is empty.",[Rz2]:"No failed transaction plan result was found in the provided transaction plan result.",[Lz2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[Mz2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[zz2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Wj2]:"Invalid transaction plan kind: $kind.",[jz2]:"No more instructions to pack; the message packer has completed the instruction plan.",[Pz2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[Oz2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[Fz2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[Bz2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[vZ2]:"The instruction does not have any accounts.",[hZ2]:"The instruction does not have any data.",[xZ2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[uH2]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[gH2]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Xj2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[fw]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Qj2]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Jj2]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yj2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[nv]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[ov]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[rv]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[sv]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[cv]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[$h]:"$__serverMessage",[Gh]:"$__serverMessage",[Yh]:"$__serverMessage",[ev]:"$__serverMessage",[rH2]:"Epoch rewards period still active at slot $slot",[Vh]:"$__serverMessage",[Jh]:"$__serverMessage",[oH2]:"Failed to query long-term storage; please try again",[tH2]:"Minimum context slot has not been reached",[JZ2]:"Node is unhealthy; behind by $numSlotsBehind slots",[VZ2]:"No snapshot",[bw]:"Transaction simulation failed",[sH2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Qh]:"$__serverMessage",[$Z2]:"Transaction history is not available from this node",[Xh]:"$__serverMessage",[eH2]:"Transaction signature length mismatch",[QZ2]:"Transaction signature verification failure",[tv]:"$__serverMessage",[AZ2]:"Key pair bytes must be of length 64, got $byteLength.",[pZ2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[mZ2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[EZ2]:"The provided private key does not match the provided public key.",[kZ2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[aH2]:"Lamports value must be in the range [0, 2e64-1]",[iH2]:"`$value` cannot be parsed as a `BigInt`",[iv]:"$message",[cH2]:"`$value` cannot be parsed as a `Number`",[lH2]:"No nonce account could be found at address `$nonceAccountAddress`",[tU2]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[Kw2]:"Attempted to sign an offchain message with an address that is not a signer for it",[rU2]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[Ww2]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[oU2]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[Jw2]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[Qw2]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Xw2]:"Offchain message content must be non-empty",[$w2]:"Offchain message must specify the address of at least one required signer",[Yw2]:"Offchain message envelope must reserve space for at least one signature",[eU2]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[Dw2]:"The signatories of this offchain message must be listed in lexicographical order",[Hw2]:"An address must be listed no more than once among the signatories of an offchain message",[Gw2]:"Offchain message is missing signatures for addresses: $addresses.",[Zw2]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[sU2]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[qw2]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[Vw2]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[gw]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[ez2]:"WebSocket was closed before payload could be added to the send buffer",[$j2]:"WebSocket connection closed",[Vj2]:"WebSocket failed to connect",[lw]:"Failed to obtain a subscription id from the server",[tz2]:"Could not find an API plan for RPC method: `$method`",[oz2]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[rz2]:"HTTP error ($statusCode): $message",[sz2]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[xU2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[dU2]:"The provided value does not implement the `KeyPairSigner` interface",[bU2]:"The provided value does not implement the `MessageModifyingSigner` interface",[gU2]:"The provided value does not implement the `MessagePartialSigner` interface",[yU2]:"The provided value does not implement any of the `MessageSigner` interfaces",[fU2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[uU2]:"The provided value does not implement the `TransactionPartialSigner` interface",[aU2]:"The provided value does not implement the `TransactionSendingSigner` interface",[lU2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[iU2]:"More than one `TransactionSendingSigner` was identified.",[cU2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[nU2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[IZ2]:"Cannot export a non-extractable key.",[OZ2]:"No digest implementation could be found.",[PZ2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[FZ2]:`This runtime does not support the generation of Ed25519 key pairs.
97
+
98
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
99
+
100
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[BZ2]:"No signature verification implementation could be found.",[SZ2]:"No key generation implementation could be found.",[_Z2]:"No signing implementation could be found.",[CZ2]:"No key export implementation could be found.",[nH2]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[rw2]:"Transaction processing left an account with an outstanding borrowed reference",[hw2]:"Account in use",[xw2]:"Account loaded twice",[dw2]:"Attempt to debit an account but found no record of a prior credit.",[Xz2]:"Transaction loads an address table account that doesn't exist",[lw2]:"This transaction has already been processed",[fw2]:"Blockhash not found",[uw2]:"Loader call chain is too deep",[sw2]:"Transactions are currently disabled due to cluster maintenance",[Dh]:"Transaction contains a duplicate instruction ($index) that is not allowed",[bw2]:"Insufficient funds for fee",[Hh]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[gw2]:"This account may not be used to pay transaction fees",[iw2]:"Transaction contains an invalid account reference",[Gz2]:"Transaction loads an address table account with invalid data",[Wz2]:"Transaction address table lookup uses an invalid index",[Yz2]:"Transaction loads an address table account with an invalid owner",[Zz2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[nw2]:"This program may not be used for executing instructions",[Kz2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[$z2]:"Transaction loads a writable account that cannot be written",[Hz2]:"Transaction exceeded max loaded accounts data size cap",[aw2]:"Transaction requires a fee but has no signature present",[yw2]:"Attempt to load a program that does not exist",[Zh]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Uz2]:"ResanitizationNeeded",[ow2]:"Transaction failed to sanitize accounts offsets correctly",[cw2]:"Transaction did not pass signature verification",[Qz2]:"Transaction locked too many accounts",[wz2]:"Sum of account balances before and after transaction do not match",[qh]:"The transaction failed with the error `$errorName`",[ew2]:"Transaction version is unsupported",[Jz2]:"Transaction would exceed account data limit within the block",[Dz2]:"Transaction would exceed total account data limit",[Vz2]:"Transaction would exceed max account limit within the block",[tw2]:"Transaction would exceed max Block Cost Limit",[qz2]:"Transaction would exceed max Vote Cost Limit",[Iw2]:"Attempted to sign a transaction with an address that is not a signer for it",[Fw2]:"Transaction is missing an address at index: $index.",[Tw2]:"Transaction has no expected signers therefore it cannot be encoded",[kw2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[zw2]:"Transaction does not have a blockhash lifetime",[jw2]:"Transaction is not a durable nonce transaction",[Mw2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[Lw2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[Pw2]:"No fee payer set in CompiledTransaction",[Rw2]:"Could not find program address at index $index",[pw2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[mw2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[Bw2]:"Transaction is missing a fee payer.",[Sw2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Cw2]:"Transaction first instruction is not advance nonce account instruction.",[_w2]:"Transaction with no instructions cannot be durable nonce transaction.",[Uw2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[ww2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Aw2]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Ow2]:"Transaction is missing signatures for addresses: $addresses.",[Nw2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[Ew2]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[vw2]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},c8="i",a4="t";function qj2($,V={}){let J=Kj2[$];if(J.length===0)return"";let Q;function X(G){if(Q[a4]===2){let W=J.slice(Q[c8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[a4]===1)Y.push(J.slice(Q[c8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[c8]:0,[a4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[a4]){case 0:K={[c8]:W,[a4]:1};break;case 1:if(G==="\\")K={[c8]:W,[a4]:0};else if(G==="$")K={[c8]:W,[a4]:2};break;case 2:if(G==="\\")K={[c8]:W,[a4]:0};else if(G==="$")K={[c8]:W,[a4]:2};else if(!G.match(/\w/))K={[c8]:W,[a4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function Dj2($,V={}){return qj2($,V)}var l5=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=Dj2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function Uh(...$){if("captureStackTrace"in Error&&typeof Error.captureStackTrace==="function")Error.captureStackTrace(...$)}function wh({errorCodeBaseOffset:$,getErrorContext:V,orderedErrorNames:J,rpcEnumError:Q},X){let Y,G;if(typeof Q==="string")Y=Q;else Y=Object.keys(Q)[0],G=Q[Y];let W=J.indexOf(Y),K=$+W,D=V(K,Y,G),H=new l5(K,D);return Uh(H,X),H}var Hj2=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function zh($,V){let J=Number($);return wh({errorCodeBaseOffset:4615001,getErrorContext(Q,X,Y){if(Q===Wh)return{errorName:X,index:J,...Y!==void 0?{instructionErrorContext:Y}:null};else if(Q===Kh)return{code:Number(Y),index:J};return{index:J}},orderedErrorNames:Hj2,rpcEnumError:V},zh)}var Zj2=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function jh($){if(typeof $==="object"&&"InstructionError"in $)return zh(...$.InstructionError);return wh({errorCodeBaseOffset:7050001,getErrorContext(V,J,Q){if(V===qh)return{errorName:J,...Q!==void 0?{transactionErrorContext:Q}:null};else if(V===Dh)return{index:Number(Q)};else if(V===Hh||V===Zh)return{accountIndex:Number(Q.account_index)}},orderedErrorNames:Zj2,rpcEnumError:$},jh)}function uw($){let V;if(Uj2($)){let{code:J,data:Q,message:X}=$,Y=Number(J);if(Y===bw){let{err:G,...W}=Q,K=G?{cause:jh(G)}:null;V=new l5(bw,{...W,...K})}else{let G;switch(Y){case nv:case ov:case rv:case sv:case cv:case $h:case Gh:case Yh:case ev:case Vh:case Jh:case Qh:case Xh:case tv:G={__serverMessage:X};break;default:if(typeof Q==="object"&&!Array.isArray(Q))G=Q}V=new l5(Y,G)}}else{let J=typeof $==="object"&&$!==null&&"message"in $&&typeof $.message==="string"?$.message:"Malformed JSON-RPC error with no message attribute";V=new l5(iv,{error:$,message:J})}return Uh(V,uw),V}function Uj2($){return typeof $==="object"&&$!==null&&"code"in $&&"message"in $&&(typeof $.code==="number"||typeof $.code==="bigint")&&typeof $.message==="string"}var wj2=1,zj2=2,jj2=3,Nj2=4,Mj2=5,Lj2=6,Rj2=7,Pj2=8,Oj2=9,Fj2=10,Bj2=-32700,Sj2=-32603,_j2=-32602,Cj2=-32601,Ij2=-32600,Tj2=-32019,Aj2=-32018,pj2=-32017,mj2=-32016,kj2=-32015,Ej2=-32014,vj2=-32013,hj2=-32012,xj2=-32011,dj2=-32010,yj2=-32009,bj2=-32008,gj2=-32007,lj2=-32006,fj2=-32005,uj2=-32004,aj2=-32003,ij2=-32002,cj2=-32001,nj2=2800000,oj2=2800001,sj2=2800002,rj2=2800003,tj2=2800004,ej2=2800005,$N2=2800006,VN2=2800007,JN2=2800008,QN2=2800009,XN2=2800010,YN2=2800011,GN2=3230000,WN2=32300001,KN2=3230002,qN2=3230003,DN2=3230004,HN2=3610000,ZN2=3610001,UN2=3610002,wN2=3610003,zN2=3610004,jN2=3610005,NN2=3610006,MN2=3610007,LN2=3611000,RN2=3704000,PN2=3704001,ON2=3704002,FN2=3704003,BN2=3704004,SN2=4128000,_N2=4128001,CN2=4128002,IN2=4615000,TN2=4615001,AN2=4615002,pN2=4615003,mN2=4615004,kN2=4615005,EN2=4615006,vN2=4615007,hN2=4615008,xN2=4615009,dN2=4615010,yN2=4615011,bN2=4615012,gN2=4615013,lN2=4615014,fN2=4615015,uN2=4615016,aN2=4615017,iN2=4615018,cN2=4615019,nN2=4615020,oN2=4615021,sN2=4615022,rN2=4615023,tN2=4615024,eN2=4615025,$M2=4615026,VM2=4615027,JM2=4615028,QM2=4615029,XM2=4615030,YM2=4615031,GM2=4615032,WM2=4615033,KM2=4615034,qM2=4615035,DM2=4615036,HM2=4615037,ZM2=4615038,UM2=4615039,wM2=4615040,zM2=4615041,jM2=4615042,NM2=4615043,MM2=4615044,LM2=4615045,RM2=4615046,PM2=4615047,OM2=4615048,FM2=4615049,BM2=4615050,SM2=4615051,_M2=4615052,CM2=4615053,IM2=4615054,TM2=5508000,AM2=5508001,pM2=5508002,mM2=5508003,kM2=5508004,EM2=5508005,vM2=5508006,hM2=5508007,xM2=5508008,dM2=5508009,yM2=5508010,bM2=5508011,gM2=5607000,lM2=5607001,fM2=5607002,uM2=5607003,aM2=5607004,iM2=5607005,cM2=5607006,nM2=5607007,oM2=5607008,sM2=5607009,rM2=5607010,tM2=5607011,eM2=5607012,$L2=5607013,VL2=5607014,JL2=5607015,QL2=5607016,XL2=5607017,YL2=5663000,GL2=5663001,WL2=5663002,KL2=5663003,qL2=5663004,DL2=5663005,HL2=5663006,ZL2=5663007,UL2=5663008,wL2=5663009,zL2=5663010,jL2=5663011,NL2=5663012,ML2=5663013,LL2=5663014,RL2=5663015,PL2=5663016,OL2=5663017,FL2=5663018,BL2=5663019,SL2=5663020,_L2=5663021,CL2=5663022,IL2=7050000,TL2=7050001,AL2=7050002,pL2=7050003,mL2=7050004,kL2=7050005,EL2=7050006,vL2=7050007,hL2=7050008,xL2=7050009,dL2=7050010,yL2=7050011,bL2=7050012,gL2=7050013,lL2=7050014,fL2=7050015,uL2=7050016,aL2=7050017,iL2=7050018,cL2=7050019,nL2=7050020,oL2=7050021,sL2=7050022,rL2=7050023,tL2=7050024,eL2=7050025,$R2=7050026,VR2=7050027,JR2=7050028,QR2=7050029,XR2=7050030,YR2=7050031,GR2=7050032,WR2=7050033,KR2=7050034,qR2=7050035,DR2=7050036,HR2=7618000,ZR2=7618001,UR2=7618002,wR2=7618003,zR2=7618004,jR2=7618005,NR2=7618006,MR2=7618007,LR2=7618008,RR2=7618009,PR2=8078000,OR2=8078001,FR2=8078002,BR2=8078003,SR2=8078004,_R2=8078005,CR2=8078006,IR2=8078007,TR2=8078008,AR2=8078009,pR2=8078010,mR2=8078011,kR2=8078012,ER2=8078013,vR2=8078014,hR2=8078015,xR2=8078016,dR2=8078017,yR2=8078018,bR2=8078019,gR2=8078020,lR2=8078021,fR2=8078022,uR2=8078023,aR2=8100000,iR2=8100001,cR2=8100002,nR2=8100003,oR2=8190000,sR2=8190001,rR2=8190002,tR2=8190003,eR2=8190004,aw=9900000,iw=9900001,$P2=9900002,VP2=9900003,JP2=9900004,QP2=9900005,XP2=9900006;var YP2={[GN2]:"Account not found at address: $address",[DN2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[qN2]:"Expected decoded account at address: $address",[KN2]:"Failed to decode account data at address: $address",[WN2]:"Accounts not found at addresses: $addresses",[QN2]:"Unable to find a viable program address bump seed.",[sj2]:"$putativeAddress is not a base58-encoded address.",[nj2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[rj2]:"The `CryptoKey` must be an `Ed25519` public key.",[YN2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[JN2]:"Invalid seeds; point must fall off the Ed25519 curve.",[tj2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[$N2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[VN2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[ej2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[XN2]:"Program address cannot end with PDA marker.",[oj2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Nj2]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[wj2]:"The network has progressed past the last block for which this transaction could have been committed.",[PR2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[fR2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[gR2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[_R2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[CR2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[SR2]:"Encoder and decoder must either both be fixed-size or variable-size.",[TR2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[FR2]:"Expected a fixed-size codec, got a variable-size one.",[ER2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[BR2]:"Expected a variable-size codec, got a fixed-size one.",[bR2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[OR2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[yR2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[AR2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[pR2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[hR2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[IR2]:"Expected [$codecDescription] to have $expected items, got $actual.",[kR2]:"Invalid value $value for base $base with alphabet $alphabet.",[xR2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[mR2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[vR2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[lR2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[dR2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[uR2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[LN2]:"No random values implementation could be found.",[xN2]:"instruction requires an uninitialized account",[rN2]:"instruction tries to borrow reference for an account which is already borrowed",[tN2]:"instruction left account with an outstanding borrowed reference",[oN2]:"program other than the account's owner changed the size of the account data",[kN2]:"account data too small for instruction",[sN2]:"instruction expected an executable account",[RM2]:"An account does not have enough lamports to be rent-exempt",[OM2]:"Program arithmetic overflowed",[LM2]:"Failed to serialize or deserialize account data: $encodedData",[IM2]:"Builtin programs must consume compute units",[GM2]:"Cross-program invocation call depth too deep",[ZM2]:"Computational budget exceeded",[$M2]:"custom program error: #$code",[aN2]:"instruction contains duplicate accounts",[eN2]:"instruction modifications of multiply-passed account differ",[XM2]:"executable accounts must be rent exempt",[JM2]:"instruction changed executable accounts data",[QM2]:"instruction changed the balance of an executable account",[iN2]:"instruction changed executable bit of an account",[lN2]:"instruction modified data of an account it does not own",[gN2]:"instruction spent from the balance of an account it does not own",[TN2]:"generic instruction error",[BM2]:"Provided owner is not allowed",[NM2]:"Account is immutable",[MM2]:"Incorrect authority provided",[vN2]:"incorrect program id for instruction",[EN2]:"insufficient funds for instruction",[mN2]:"invalid account data for instruction",[PM2]:"Invalid account owner",[AN2]:"invalid program argument",[VM2]:"program returned invalid error code",[pN2]:"invalid instruction data",[HM2]:"Failed to reallocate account data",[DM2]:"Provided seeds do not result in a valid address",[SM2]:"Accounts data allocations exceeded the maximum allowed per transaction",[_M2]:"Max accounts exceeded",[CM2]:"Max instruction trace length exceeded",[qM2]:"Length of the seed is too long for address generation",[WM2]:"An account required by the instruction is missing",[hN2]:"missing required signature for instruction",[bN2]:"instruction illegally modified the program id of an account",[nN2]:"insufficient account keys for instruction",[UM2]:"Cross-program invocation with unauthorized signer or writable account",[wM2]:"Failed to create program execution environment",[jM2]:"Program failed to compile",[zM2]:"Program failed to complete",[uN2]:"instruction modified data of a read-only account",[fN2]:"instruction changed the balance of a read-only account",[KM2]:"Cross-program invocation reentrancy not allowed for this instruction",[cN2]:"instruction modified rent epoch of an account",[yN2]:"sum of account balances before and after instruction do not match",[dN2]:"instruction requires an initialized account",[IN2]:"",[YM2]:"Unsupported program id",[FM2]:"Unsupported sysvar",[QP2]:"Invalid instruction plan kind: $kind.",[UR2]:"The provided instruction plan is empty.",[jR2]:"No failed transaction plan result was found in the provided transaction plan result.",[zR2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[wR2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[HR2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[XP2]:"Invalid transaction plan kind: $kind.",[ZR2]:"No more instructions to pack; the message packer has completed the instruction plan.",[NR2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[MR2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[LR2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[RR2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[SN2]:"The instruction does not have any accounts.",[_N2]:"The instruction does not have any data.",[CN2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Mj2]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[zj2]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[$P2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[JP2]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[iw]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[aw]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[VP2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Sj2]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[_j2]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Ij2]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Cj2]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Bj2]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[hj2]:"$__serverMessage",[cj2]:"$__serverMessage",[uj2]:"$__serverMessage",[Ej2]:"$__serverMessage",[pj2]:"Epoch rewards period still active at slot $slot",[dj2]:"$__serverMessage",[yj2]:"$__serverMessage",[Tj2]:"Failed to query long-term storage; please try again",[mj2]:"Minimum context slot has not been reached",[fj2]:"Node is unhealthy; behind by $numSlotsBehind slots",[bj2]:"No snapshot",[ij2]:"Transaction simulation failed",[Aj2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[gj2]:"$__serverMessage",[xj2]:"Transaction history is not available from this node",[lj2]:"$__serverMessage",[vj2]:"Transaction signature length mismatch",[aj2]:"Transaction signature verification failure",[kj2]:"$__serverMessage",[RN2]:"Key pair bytes must be of length 64, got $byteLength.",[PN2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[ON2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[BN2]:"The provided private key does not match the provided public key.",[FN2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Lj2]:"Lamports value must be in the range [0, 2e64-1]",[Rj2]:"`$value` cannot be parsed as a `BigInt`",[Fj2]:"$message",[Pj2]:"`$value` cannot be parsed as a `Number`",[jj2]:"No nonce account could be found at address `$nonceAccountAddress`",[uM2]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[$L2]:"Attempted to sign an offchain message with an address that is not a signer for it",[fM2]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[eM2]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[gM2]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[nM2]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[oM2]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[sM2]:"Offchain message content must be non-empty",[iM2]:"Offchain message must specify the address of at least one required signer",[rM2]:"Offchain message envelope must reserve space for at least one signature",[aM2]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[JL2]:"The signatories of this offchain message must be listed in lexicographical order",[QL2]:"An address must be listed no more than once among the signatories of an offchain message",[tM2]:"Offchain message is missing signatures for addresses: $addresses.",[XL2]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[lM2]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[VL2]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[cM2]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[oR2]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[rR2]:"WebSocket was closed before payload could be added to the send buffer",[tR2]:"WebSocket connection closed",[eR2]:"WebSocket failed to connect",[sR2]:"Failed to obtain a subscription id from the server",[nR2]:"Could not find an API plan for RPC method: `$method`",[aR2]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[cR2]:"HTTP error ($statusCode): $message",[iR2]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[TM2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[AM2]:"The provided value does not implement the `KeyPairSigner` interface",[mM2]:"The provided value does not implement the `MessageModifyingSigner` interface",[kM2]:"The provided value does not implement the `MessagePartialSigner` interface",[pM2]:"The provided value does not implement any of the `MessageSigner` interfaces",[vM2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[hM2]:"The provided value does not implement the `TransactionPartialSigner` interface",[xM2]:"The provided value does not implement the `TransactionSendingSigner` interface",[EM2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[dM2]:"More than one `TransactionSendingSigner` was identified.",[yM2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[bM2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[MN2]:"Cannot export a non-extractable key.",[ZN2]:"No digest implementation could be found.",[HN2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[UN2]:`This runtime does not support the generation of Ed25519 key pairs.
101
+
102
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
103
+
104
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[wN2]:"No signature verification implementation could be found.",[zN2]:"No key generation implementation could be found.",[jN2]:"No signing implementation could be found.",[NN2]:"No key export implementation could be found.",[Oj2]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[uL2]:"Transaction processing left an account with an outstanding borrowed reference",[TL2]:"Account in use",[AL2]:"Account loaded twice",[pL2]:"Attempt to debit an account but found no record of a prior credit.",[rL2]:"Transaction loads an address table account that doesn't exist",[vL2]:"This transaction has already been processed",[hL2]:"Blockhash not found",[xL2]:"Loader call chain is too deep",[fL2]:"Transactions are currently disabled due to cluster maintenance",[XR2]:"Transaction contains a duplicate instruction ($index) that is not allowed",[kL2]:"Insufficient funds for fee",[YR2]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[EL2]:"This account may not be used to pay transaction fees",[yL2]:"Transaction contains an invalid account reference",[eL2]:"Transaction loads an address table account with invalid data",[$R2]:"Transaction address table lookup uses an invalid index",[tL2]:"Transaction loads an address table account with an invalid owner",[WR2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[gL2]:"This program may not be used for executing instructions",[VR2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[cL2]:"Transaction loads a writable account that cannot be written",[GR2]:"Transaction exceeded max loaded accounts data size cap",[dL2]:"Transaction requires a fee but has no signature present",[mL2]:"Attempt to load a program that does not exist",[qR2]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[KR2]:"ResanitizationNeeded",[lL2]:"Transaction failed to sanitize accounts offsets correctly",[bL2]:"Transaction did not pass signature verification",[sL2]:"Transaction locked too many accounts",[DR2]:"Sum of account balances before and after transaction do not match",[IL2]:"The transaction failed with the error `$errorName`",[iL2]:"Transaction version is unsupported",[oL2]:"Transaction would exceed account data limit within the block",[QR2]:"Transaction would exceed total account data limit",[nL2]:"Transaction would exceed max account limit within the block",[aL2]:"Transaction would exceed max Block Cost Limit",[JR2]:"Transaction would exceed max Vote Cost Limit",[RL2]:"Attempted to sign a transaction with an address that is not a signer for it",[zL2]:"Transaction is missing an address at index: $index.",[PL2]:"Transaction has no expected signers therefore it cannot be encoded",[SL2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[WL2]:"Transaction does not have a blockhash lifetime",[KL2]:"Transaction is not a durable nonce transaction",[DL2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[HL2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[UL2]:"No fee payer set in CompiledTransaction",[ZL2]:"Could not find program address at index $index",[FL2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[BL2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[jL2]:"Transaction is missing a fee payer.",[NL2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[LL2]:"Transaction first instruction is not advance nonce account instruction.",[ML2]:"Transaction with no instructions cannot be durable nonce transaction.",[YL2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[GL2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[OL2]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[wL2]:"Transaction is missing signatures for addresses: $addresses.",[qL2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[_L2]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[CL2]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},n8="i",i4="t";function GP2($,V={}){let J=YP2[$];if(J.length===0)return"";let Q;function X(G){if(Q[i4]===2){let W=J.slice(Q[n8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[i4]===1)Y.push(J.slice(Q[n8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[n8]:0,[i4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[i4]){case 0:K={[n8]:W,[i4]:1};break;case 1:if(G==="\\")K={[n8]:W,[i4]:0};else if(G==="$")K={[n8]:W,[i4]:2};break;case 2:if(G==="\\")K={[n8]:W,[i4]:0};else if(G==="$")K={[n8]:W,[i4]:2};else if(!G.match(/\w/))K={[n8]:W,[i4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function WP2($,V={}){return GP2($,V)}var cw=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=WP2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};import{setMaxListeners as Lh}from"events";var KP2=class extends globalThis.AbortController{constructor(...$){super(...$),Lh(Number.MAX_SAFE_INTEGER,this.signal)}},qP2=class extends globalThis.EventTarget{constructor(...$){super(...$),Lh(Number.MAX_SAFE_INTEGER,this)}},Nh;function Mh(){return Symbol("This symbol is thrown from a socket's iterator when the connection is explicitly aborted by the user")}var nw=Symbol();function Rh({abortSignal:$,dataChannelName:V,dataPublisher:J,errorChannelName:Q}){let X=new Map;function Y(D){for(let[H,U]of X.entries())if(U.__hasPolled)X.delete(H),U.onError(D);else U.publishQueue.push({__type:1,err:D})}let G=new KP2;$.addEventListener("abort",()=>{G.abort(),Y(Nh||=Mh())});let W={signal:G.signal},K=nw;return J.on(Q,(D)=>{if(K===nw)K=D,G.abort(),Y(D)},W),J.on(V,(D)=>{X.forEach((H,U)=>{if(H.__hasPolled){let{onData:z}=H;X.set(U,{__hasPolled:!1,publishQueue:[]}),z(D)}else H.publishQueue.push({__type:0,data:D})})},W),{async*[Symbol.asyncIterator](){if($.aborted)return;if(K!==nw)throw K;let D=Symbol();X.set(D,{__hasPolled:!1,publishQueue:[]});try{while(!0){let H=X.get(D);if(!H)throw new cw(aw);if(H.__hasPolled)throw new cw(iw);let U=H.publishQueue;try{if(U.length){H.publishQueue=[];for(let z of U)if(z.__type===0)yield z.data;else throw z.err}else yield await new Promise((z,M)=>{X.set(D,{__hasPolled:!0,onData:z,onError:M})})}catch(z){if(z===(Nh||=Mh()))return;else throw z}}}finally{X.delete(D)}}}}function ow($){return{on(V,J,Q){function X(Y){if(Y instanceof CustomEvent){let G=Y.detail;J(G)}else J()}return $.addEventListener(V,X,Q),()=>{$.removeEventListener(V,X)}}}}function Ph($,V,J){let Q,X=new qP2,Y=ow(X);return{...Y,on(G,W,K){if(!Q)Q={dispose:$.on(V,(M)=>{let L=J(M);if(!L)return;let[B,_]=L;X.dispatchEvent(new CustomEvent(B,{detail:_}))}),numSubscribers:0};Q.numSubscribers++;let D=Y.on(G,W,K),H=!0;function U(){if(!H)return;if(H=!1,K?.signal.removeEventListener("abort",U),Q.numSubscribers--,Q.numSubscribers===0)Q.dispose(),Q=void 0;D()}return K?.signal.addEventListener("abort",U),U}}}import{setMaxListeners as DP2}from"events";function Fh($){return new Proxy($.api,{defineProperty(){return!1},deleteProperty(){return!1},get(V,J,Q){if(J==="then")return;return function(...X){let Y=J.toString(),G=Reflect.get(V,Y,Q);if(!G)throw new l5(gw,{notificationName:Y});let W=G(...X);return HP2($.transport,W)}}})}function HP2($,V){return{async subscribe({abortSignal:J}){let Q=await $({signal:J,...V});return Rh({abortSignal:J,dataChannelName:"notification",dataPublisher:Q,errorChannelName:"error"})}}}function Bh($){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...V){let[J,Q]=V,X=Q.toString();return function(...Y){let G={methodName:X,params:Y},W=$.requestTransformer?$.requestTransformer(G):G;return{execute(K){return $.planExecutor({...K,request:W})},request:W}}}})}function Sh($,V){return Object.freeze({...$,on(J,Q,X){if(J!=="message")return $.on(J,Q,X);return $.on("message",(Y)=>Q(V(Y)),X)}})}function _h($,V){return Object.freeze({...$,send:(J)=>$.send(V(J))})}var ZP2=class extends globalThis.AbortController{constructor(...$){super(...$),DP2(Number.MAX_SAFE_INTEGER,this.signal)}},sw=new WeakMap;function UP2($,V){return Ch(-1,$,V)}function wP2($,V){Ch(1,$,V)}function zP2($){let V=sw.get($);if(!V)sw.set($,V={});return V}function Ch($,V,J){if(J===void 0)return;let Q=zP2(V);if(!Q[J]&&$>0)Q[J]=0;let X=$+Q[J];if(X<=0)delete Q[J];else Q[J]=X;return X}var Oh=new WeakMap;function jP2($,V,J){let Q=Oh.get($);if(!Q)Oh.set($,Q=new WeakMap);let X=J??$,Y=Q.get(X);if(!Y)Q.set(X,Y=Ph($,"message",(G)=>{let W=G;if(!("method"in W))return;let K=J?J(W.params.result,V):W.params.result;return[`notification:${W.params.subscription}`,K]}));return Y}async function Ih({channel:$,responseTransformer:V,signal:J,subscribeRequest:Q,unsubscribeMethodName:X}){let Y;$.on("error",()=>{Y=void 0,sw.delete($)},{signal:J});let G=new Promise((U,z)=>{function M(){if(UP2($,Y)===0){let L=mJ({methodName:X,params:[Y]});Y=void 0,$.send(L).catch(()=>{})}z(this.reason)}if(J.aborted)M.call(J);else J.addEventListener("abort",M)}),W=mJ(Q);await $.send(W);let K=new Promise((U,z)=>{let M=new ZP2;J.addEventListener("abort",M.abort.bind(M));let L={signal:M.signal};$.on("error",(B)=>{M.abort(),z(B)},L),$.on("message",(B)=>{if(B&&typeof B==="object"&&"id"in B&&B.id===W.id)if(M.abort(),"error"in B)z(uw(B.error));else U(B.result)},L)});if(Y=await Vv([G,K]),Y==null)throw new l5(lw);wP2($,Y);let D=jP2($,Q,V),H=`notification:${Y}`;return{on(U,z,M){switch(U){case"notification":return D.on(H,z,M);case"error":return $.on("error",z,M);default:throw new l5(fw,{channelName:U,supportedChannelNames:["notification","error"]})}}}}function NP2($){let V=fG($),J=xv({allowedNumericKeyPaths:MP2()});return Bh({planExecutor({request:Q,...X}){return Ih({...X,responseTransformer:J,subscribeRequest:{...Q,methodName:Q.methodName.replace(/Notifications$/,"Subscribe")},unsubscribeMethodName:Q.methodName.replace(/Notifications$/,"Unsubscribe")})},requestTransformer:V})}function Th($){return NP2($)}var rw;function MP2(){if(!rw)rw={accountNotifications:u8.map(($)=>["value",...$]),blockNotifications:[["value","block","transactions",N1,"meta","preTokenBalances",N1,"accountIndex"],["value","block","transactions",N1,"meta","preTokenBalances",N1,"uiTokenAmount","decimals"],["value","block","transactions",N1,"meta","postTokenBalances",N1,"accountIndex"],["value","block","transactions",N1,"meta","postTokenBalances",N1,"uiTokenAmount","decimals"],["value","block","transactions",N1,"meta","rewards",N1,"commission"],["value","block","transactions",N1,"meta","innerInstructions",N1,"index"],["value","block","transactions",N1,"meta","innerInstructions",N1,"instructions",N1,"programIdIndex"],["value","block","transactions",N1,"meta","innerInstructions",N1,"instructions",N1,"accounts",N1],["value","block","transactions",N1,"transaction","message","addressTableLookups",N1,"writableIndexes",N1],["value","block","transactions",N1,"transaction","message","addressTableLookups",N1,"readonlyIndexes",N1],["value","block","transactions",N1,"transaction","message","instructions",N1,"programIdIndex"],["value","block","transactions",N1,"transaction","message","instructions",N1,"accounts",N1],["value","block","transactions",N1,"transaction","message","header","numReadonlySignedAccounts"],["value","block","transactions",N1,"transaction","message","header","numReadonlyUnsignedAccounts"],["value","block","transactions",N1,"transaction","message","header","numRequiredSignatures"],["value","block","rewards",N1,"commission"]],programNotifications:u8.flatMap(($)=>[["value",N1,"account",...$],[N1,"account",...$]])};return rw}var LP2=1,RP2=2,PP2=3,OP2=4,FP2=5,BP2=6,SP2=7,_P2=8,CP2=9,IP2=10,TP2=-32700,AP2=-32603,pP2=-32602,mP2=-32601,kP2=-32600,EP2=-32019,vP2=-32018,hP2=-32017,xP2=-32016,dP2=-32015,yP2=-32014,bP2=-32013,gP2=-32012,lP2=-32011,fP2=-32010,uP2=-32009,aP2=-32008,iP2=-32007,cP2=-32006,nP2=-32005,oP2=-32004,sP2=-32003,rP2=-32002,tP2=-32001,eP2=2800000,$O2=2800001,VO2=2800002,JO2=2800003,QO2=2800004,XO2=2800005,YO2=2800006,GO2=2800007,WO2=2800008,KO2=2800009,qO2=2800010,DO2=2800011,HO2=3230000,ZO2=32300001,UO2=3230002,wO2=3230003,zO2=3230004,jO2=3610000,NO2=3610001,MO2=3610002,LO2=3610003,RO2=3610004,PO2=3610005,OO2=3610006,FO2=3610007,BO2=3611000,SO2=3704000,_O2=3704001,CO2=3704002,IO2=3704003,TO2=3704004,AO2=4128000,pO2=4128001,mO2=4128002,kO2=4615000,EO2=4615001,vO2=4615002,hO2=4615003,xO2=4615004,dO2=4615005,yO2=4615006,bO2=4615007,gO2=4615008,lO2=4615009,fO2=4615010,uO2=4615011,aO2=4615012,iO2=4615013,cO2=4615014,nO2=4615015,oO2=4615016,sO2=4615017,rO2=4615018,tO2=4615019,eO2=4615020,$F2=4615021,VF2=4615022,JF2=4615023,QF2=4615024,XF2=4615025,YF2=4615026,GF2=4615027,WF2=4615028,KF2=4615029,qF2=4615030,DF2=4615031,HF2=4615032,ZF2=4615033,UF2=4615034,wF2=4615035,zF2=4615036,jF2=4615037,NF2=4615038,MF2=4615039,LF2=4615040,RF2=4615041,PF2=4615042,OF2=4615043,FF2=4615044,BF2=4615045,SF2=4615046,_F2=4615047,CF2=4615048,IF2=4615049,TF2=4615050,AF2=4615051,pF2=4615052,mF2=4615053,kF2=4615054,EF2=5508000,vF2=5508001,hF2=5508002,xF2=5508003,dF2=5508004,yF2=5508005,bF2=5508006,gF2=5508007,lF2=5508008,fF2=5508009,uF2=5508010,aF2=5508011,iF2=5607000,cF2=5607001,nF2=5607002,oF2=5607003,sF2=5607004,rF2=5607005,tF2=5607006,eF2=5607007,$B2=5607008,VB2=5607009,JB2=5607010,QB2=5607011,XB2=5607012,YB2=5607013,GB2=5607014,WB2=5607015,KB2=5607016,qB2=5607017,DB2=5663000,HB2=5663001,ZB2=5663002,UB2=5663003,wB2=5663004,zB2=5663005,jB2=5663006,NB2=5663007,MB2=5663008,LB2=5663009,RB2=5663010,PB2=5663011,OB2=5663012,FB2=5663013,BB2=5663014,SB2=5663015,_B2=5663016,CB2=5663017,IB2=5663018,TB2=5663019,AB2=5663020,pB2=5663021,mB2=5663022,kB2=7050000,EB2=7050001,vB2=7050002,hB2=7050003,xB2=7050004,dB2=7050005,yB2=7050006,bB2=7050007,gB2=7050008,lB2=7050009,fB2=7050010,uB2=7050011,aB2=7050012,iB2=7050013,cB2=7050014,nB2=7050015,oB2=7050016,sB2=7050017,rB2=7050018,tB2=7050019,eB2=7050020,$S2=7050021,VS2=7050022,JS2=7050023,QS2=7050024,XS2=7050025,YS2=7050026,GS2=7050027,WS2=7050028,KS2=7050029,qS2=7050030,DS2=7050031,HS2=7050032,ZS2=7050033,US2=7050034,wS2=7050035,zS2=7050036,jS2=7618000,NS2=7618001,MS2=7618002,LS2=7618003,RS2=7618004,PS2=7618005,OS2=7618006,FS2=7618007,BS2=7618008,SS2=7618009,_S2=8078000,CS2=8078001,IS2=8078002,TS2=8078003,AS2=8078004,pS2=8078005,mS2=8078006,kS2=8078007,ES2=8078008,vS2=8078009,hS2=8078010,xS2=8078011,dS2=8078012,yS2=8078013,bS2=8078014,gS2=8078015,lS2=8078016,fS2=8078017,uS2=8078018,aS2=8078019,iS2=8078020,cS2=8078021,nS2=8078022,oS2=8078023,tw=8100000,sS2=8100001,rS2=8100002,tS2=8100003,eS2=8190000,$_2=8190001,V_2=8190002,ew=8190003,J_2=8190004,Q_2=9900000,X_2=9900001,Y_2=9900002,G_2=9900003,W_2=9900004,K_2=9900005,q_2=9900006;var D_2={[HO2]:"Account not found at address: $address",[zO2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[wO2]:"Expected decoded account at address: $address",[UO2]:"Failed to decode account data at address: $address",[ZO2]:"Accounts not found at addresses: $addresses",[KO2]:"Unable to find a viable program address bump seed.",[VO2]:"$putativeAddress is not a base58-encoded address.",[eP2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[JO2]:"The `CryptoKey` must be an `Ed25519` public key.",[DO2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[WO2]:"Invalid seeds; point must fall off the Ed25519 curve.",[QO2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[YO2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[GO2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[XO2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[qO2]:"Program address cannot end with PDA marker.",[$O2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[OP2]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[LP2]:"The network has progressed past the last block for which this transaction could have been committed.",[_S2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[nS2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[iS2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[pS2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[mS2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[AS2]:"Encoder and decoder must either both be fixed-size or variable-size.",[ES2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[IS2]:"Expected a fixed-size codec, got a variable-size one.",[yS2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[TS2]:"Expected a variable-size codec, got a fixed-size one.",[aS2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[CS2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[uS2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[vS2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[hS2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[gS2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[kS2]:"Expected [$codecDescription] to have $expected items, got $actual.",[dS2]:"Invalid value $value for base $base with alphabet $alphabet.",[lS2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[xS2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[bS2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[cS2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[fS2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[oS2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[BO2]:"No random values implementation could be found.",[lO2]:"instruction requires an uninitialized account",[JF2]:"instruction tries to borrow reference for an account which is already borrowed",[QF2]:"instruction left account with an outstanding borrowed reference",[$F2]:"program other than the account's owner changed the size of the account data",[dO2]:"account data too small for instruction",[VF2]:"instruction expected an executable account",[SF2]:"An account does not have enough lamports to be rent-exempt",[CF2]:"Program arithmetic overflowed",[BF2]:"Failed to serialize or deserialize account data: $encodedData",[kF2]:"Builtin programs must consume compute units",[HF2]:"Cross-program invocation call depth too deep",[NF2]:"Computational budget exceeded",[YF2]:"custom program error: #$code",[sO2]:"instruction contains duplicate accounts",[XF2]:"instruction modifications of multiply-passed account differ",[qF2]:"executable accounts must be rent exempt",[WF2]:"instruction changed executable accounts data",[KF2]:"instruction changed the balance of an executable account",[rO2]:"instruction changed executable bit of an account",[cO2]:"instruction modified data of an account it does not own",[iO2]:"instruction spent from the balance of an account it does not own",[EO2]:"generic instruction error",[TF2]:"Provided owner is not allowed",[OF2]:"Account is immutable",[FF2]:"Incorrect authority provided",[bO2]:"incorrect program id for instruction",[yO2]:"insufficient funds for instruction",[xO2]:"invalid account data for instruction",[_F2]:"Invalid account owner",[vO2]:"invalid program argument",[GF2]:"program returned invalid error code",[hO2]:"invalid instruction data",[jF2]:"Failed to reallocate account data",[zF2]:"Provided seeds do not result in a valid address",[AF2]:"Accounts data allocations exceeded the maximum allowed per transaction",[pF2]:"Max accounts exceeded",[mF2]:"Max instruction trace length exceeded",[wF2]:"Length of the seed is too long for address generation",[ZF2]:"An account required by the instruction is missing",[gO2]:"missing required signature for instruction",[aO2]:"instruction illegally modified the program id of an account",[eO2]:"insufficient account keys for instruction",[MF2]:"Cross-program invocation with unauthorized signer or writable account",[LF2]:"Failed to create program execution environment",[PF2]:"Program failed to compile",[RF2]:"Program failed to complete",[oO2]:"instruction modified data of a read-only account",[nO2]:"instruction changed the balance of a read-only account",[UF2]:"Cross-program invocation reentrancy not allowed for this instruction",[tO2]:"instruction modified rent epoch of an account",[uO2]:"sum of account balances before and after instruction do not match",[fO2]:"instruction requires an initialized account",[kO2]:"",[DF2]:"Unsupported program id",[IF2]:"Unsupported sysvar",[K_2]:"Invalid instruction plan kind: $kind.",[MS2]:"The provided instruction plan is empty.",[PS2]:"No failed transaction plan result was found in the provided transaction plan result.",[RS2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[LS2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[jS2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[q_2]:"Invalid transaction plan kind: $kind.",[NS2]:"No more instructions to pack; the message packer has completed the instruction plan.",[OS2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[FS2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[BS2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[SS2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[AO2]:"The instruction does not have any accounts.",[pO2]:"The instruction does not have any data.",[mO2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[FP2]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[RP2]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Y_2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[W_2]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[X_2]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Q_2]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[G_2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[AP2]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[pP2]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[kP2]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[mP2]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[TP2]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[gP2]:"$__serverMessage",[tP2]:"$__serverMessage",[oP2]:"$__serverMessage",[yP2]:"$__serverMessage",[hP2]:"Epoch rewards period still active at slot $slot",[fP2]:"$__serverMessage",[uP2]:"$__serverMessage",[EP2]:"Failed to query long-term storage; please try again",[xP2]:"Minimum context slot has not been reached",[nP2]:"Node is unhealthy; behind by $numSlotsBehind slots",[aP2]:"No snapshot",[rP2]:"Transaction simulation failed",[vP2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[iP2]:"$__serverMessage",[lP2]:"Transaction history is not available from this node",[cP2]:"$__serverMessage",[bP2]:"Transaction signature length mismatch",[sP2]:"Transaction signature verification failure",[dP2]:"$__serverMessage",[SO2]:"Key pair bytes must be of length 64, got $byteLength.",[_O2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[CO2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[TO2]:"The provided private key does not match the provided public key.",[IO2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[BP2]:"Lamports value must be in the range [0, 2e64-1]",[SP2]:"`$value` cannot be parsed as a `BigInt`",[IP2]:"$message",[_P2]:"`$value` cannot be parsed as a `Number`",[PP2]:"No nonce account could be found at address `$nonceAccountAddress`",[oF2]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[YB2]:"Attempted to sign an offchain message with an address that is not a signer for it",[nF2]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[XB2]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[iF2]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[eF2]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[$B2]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[VB2]:"Offchain message content must be non-empty",[rF2]:"Offchain message must specify the address of at least one required signer",[JB2]:"Offchain message envelope must reserve space for at least one signature",[sF2]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[WB2]:"The signatories of this offchain message must be listed in lexicographical order",[KB2]:"An address must be listed no more than once among the signatories of an offchain message",[QB2]:"Offchain message is missing signatures for addresses: $addresses.",[qB2]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[cF2]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[GB2]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[tF2]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[eS2]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[V_2]:"WebSocket was closed before payload could be added to the send buffer",[ew]:"WebSocket connection closed",[J_2]:"WebSocket failed to connect",[$_2]:"Failed to obtain a subscription id from the server",[tS2]:"Could not find an API plan for RPC method: `$method`",[tw]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[rS2]:"HTTP error ($statusCode): $message",[sS2]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[EF2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[vF2]:"The provided value does not implement the `KeyPairSigner` interface",[xF2]:"The provided value does not implement the `MessageModifyingSigner` interface",[dF2]:"The provided value does not implement the `MessagePartialSigner` interface",[hF2]:"The provided value does not implement any of the `MessageSigner` interfaces",[bF2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[gF2]:"The provided value does not implement the `TransactionPartialSigner` interface",[lF2]:"The provided value does not implement the `TransactionSendingSigner` interface",[yF2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[fF2]:"More than one `TransactionSendingSigner` was identified.",[uF2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[aF2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[FO2]:"Cannot export a non-extractable key.",[NO2]:"No digest implementation could be found.",[jO2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[MO2]:`This runtime does not support the generation of Ed25519 key pairs.
105
+
106
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
107
+
108
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[LO2]:"No signature verification implementation could be found.",[RO2]:"No key generation implementation could be found.",[PO2]:"No signing implementation could be found.",[OO2]:"No key export implementation could be found.",[CP2]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[oB2]:"Transaction processing left an account with an outstanding borrowed reference",[EB2]:"Account in use",[vB2]:"Account loaded twice",[hB2]:"Attempt to debit an account but found no record of a prior credit.",[JS2]:"Transaction loads an address table account that doesn't exist",[bB2]:"This transaction has already been processed",[gB2]:"Blockhash not found",[lB2]:"Loader call chain is too deep",[nB2]:"Transactions are currently disabled due to cluster maintenance",[qS2]:"Transaction contains a duplicate instruction ($index) that is not allowed",[dB2]:"Insufficient funds for fee",[DS2]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[yB2]:"This account may not be used to pay transaction fees",[uB2]:"Transaction contains an invalid account reference",[XS2]:"Transaction loads an address table account with invalid data",[YS2]:"Transaction address table lookup uses an invalid index",[QS2]:"Transaction loads an address table account with an invalid owner",[ZS2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[iB2]:"This program may not be used for executing instructions",[GS2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[tB2]:"Transaction loads a writable account that cannot be written",[HS2]:"Transaction exceeded max loaded accounts data size cap",[fB2]:"Transaction requires a fee but has no signature present",[xB2]:"Attempt to load a program that does not exist",[wS2]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[US2]:"ResanitizationNeeded",[cB2]:"Transaction failed to sanitize accounts offsets correctly",[aB2]:"Transaction did not pass signature verification",[VS2]:"Transaction locked too many accounts",[zS2]:"Sum of account balances before and after transaction do not match",[kB2]:"The transaction failed with the error `$errorName`",[rB2]:"Transaction version is unsupported",[$S2]:"Transaction would exceed account data limit within the block",[KS2]:"Transaction would exceed total account data limit",[eB2]:"Transaction would exceed max account limit within the block",[sB2]:"Transaction would exceed max Block Cost Limit",[WS2]:"Transaction would exceed max Vote Cost Limit",[SB2]:"Attempted to sign a transaction with an address that is not a signer for it",[RB2]:"Transaction is missing an address at index: $index.",[_B2]:"Transaction has no expected signers therefore it cannot be encoded",[AB2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[ZB2]:"Transaction does not have a blockhash lifetime",[UB2]:"Transaction is not a durable nonce transaction",[zB2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[jB2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[MB2]:"No fee payer set in CompiledTransaction",[NB2]:"Could not find program address at index $index",[IB2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[TB2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[PB2]:"Transaction is missing a fee payer.",[OB2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[BB2]:"Transaction first instruction is not advance nonce account instruction.",[FB2]:"Transaction with no instructions cannot be durable nonce transaction.",[DB2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[HB2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[CB2]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[LB2]:"Transaction is missing signatures for addresses: $addresses.",[wB2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[pB2]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[mB2]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},o8="i",c4="t";function H_2($,V={}){let J=D_2[$];if(J.length===0)return"";let Q;function X(G){if(Q[c4]===2){let W=J.slice(Q[o8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[c4]===1)Y.push(J.slice(Q[o8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[o8]:0,[c4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[c4]){case 0:K={[o8]:W,[c4]:1};break;case 1:if(G==="\\")K={[o8]:W,[c4]:0};else if(G==="$")K={[o8]:W,[c4]:2};break;case 2:if(G==="\\")K={[o8]:W,[c4]:0};else if(G==="$")K={[o8]:W,[c4]:2};else if(!G.match(/\w/))K={[o8]:W,[c4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function Z_2($,V={}){return H_2($,V)}function Ah($,V){if($ instanceof Error&&$.name==="SolanaError"){if(V!==void 0)return $.context.__code===V;return!0}return!1}var ph=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=Z_2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function mh(...$){if("captureStackTrace"in Error&&typeof Error.captureStackTrace==="function")Error.captureStackTrace(...$)}import{setMaxListeners as pm2}from"events";var U_2=1,w_2=2,z_2=3,j_2=4,N_2=5,M_2=6,L_2=7,R_2=8,P_2=9,O_2=10,F_2=-32700,B_2=-32603,S_2=-32602,__2=-32601,C_2=-32600,I_2=-32019,T_2=-32018,A_2=-32017,p_2=-32016,m_2=-32015,k_2=-32014,E_2=-32013,v_2=-32012,h_2=-32011,x_2=-32010,d_2=-32009,y_2=-32008,b_2=-32007,g_2=-32006,l_2=-32005,f_2=-32004,u_2=-32003,a_2=-32002,i_2=-32001,c_2=2800000,n_2=2800001,o_2=2800002,s_2=2800003,r_2=2800004,t_2=2800005,e_2=2800006,$C2=2800007,VC2=2800008,JC2=2800009,QC2=2800010,XC2=2800011,YC2=3230000,GC2=32300001,WC2=3230002,KC2=3230003,qC2=3230004,DC2=3610000,HC2=3610001,ZC2=3610002,UC2=3610003,wC2=3610004,zC2=3610005,jC2=3610006,NC2=3610007,MC2=3611000,LC2=3704000,RC2=3704001,PC2=3704002,OC2=3704003,FC2=3704004,BC2=4128000,SC2=4128001,_C2=4128002,CC2=4615000,IC2=4615001,TC2=4615002,AC2=4615003,pC2=4615004,mC2=4615005,kC2=4615006,EC2=4615007,vC2=4615008,hC2=4615009,xC2=4615010,dC2=4615011,yC2=4615012,bC2=4615013,gC2=4615014,lC2=4615015,fC2=4615016,uC2=4615017,aC2=4615018,iC2=4615019,cC2=4615020,nC2=4615021,oC2=4615022,sC2=4615023,rC2=4615024,tC2=4615025,eC2=4615026,$I2=4615027,VI2=4615028,JI2=4615029,QI2=4615030,XI2=4615031,YI2=4615032,GI2=4615033,WI2=4615034,KI2=4615035,qI2=4615036,DI2=4615037,HI2=4615038,ZI2=4615039,UI2=4615040,wI2=4615041,zI2=4615042,jI2=4615043,NI2=4615044,MI2=4615045,LI2=4615046,RI2=4615047,PI2=4615048,OI2=4615049,FI2=4615050,BI2=4615051,SI2=4615052,_I2=4615053,CI2=4615054,II2=5508000,TI2=5508001,AI2=5508002,pI2=5508003,mI2=5508004,kI2=5508005,EI2=5508006,vI2=5508007,hI2=5508008,xI2=5508009,dI2=5508010,yI2=5508011,bI2=5607000,gI2=5607001,lI2=5607002,fI2=5607003,uI2=5607004,aI2=5607005,iI2=5607006,cI2=5607007,nI2=5607008,oI2=5607009,sI2=5607010,rI2=5607011,tI2=5607012,eI2=5607013,$T2=5607014,VT2=5607015,JT2=5607016,QT2=5607017,XT2=5663000,YT2=5663001,GT2=5663002,WT2=5663003,KT2=5663004,qT2=5663005,DT2=5663006,HT2=5663007,ZT2=5663008,UT2=5663009,wT2=5663010,zT2=5663011,jT2=5663012,NT2=5663013,MT2=5663014,LT2=5663015,RT2=5663016,PT2=5663017,OT2=5663018,FT2=5663019,BT2=5663020,ST2=5663021,_T2=5663022,CT2=7050000,IT2=7050001,TT2=7050002,AT2=7050003,pT2=7050004,mT2=7050005,kT2=7050006,ET2=7050007,vT2=7050008,hT2=7050009,xT2=7050010,dT2=7050011,yT2=7050012,bT2=7050013,gT2=7050014,lT2=7050015,fT2=7050016,uT2=7050017,aT2=7050018,iT2=7050019,cT2=7050020,nT2=7050021,oT2=7050022,sT2=7050023,rT2=7050024,tT2=7050025,eT2=7050026,$A2=7050027,VA2=7050028,JA2=7050029,QA2=7050030,XA2=7050031,YA2=7050032,GA2=7050033,WA2=7050034,KA2=7050035,qA2=7050036,DA2=7618000,HA2=7618001,ZA2=7618002,UA2=7618003,wA2=7618004,zA2=7618005,jA2=7618006,NA2=7618007,MA2=7618008,LA2=7618009,RA2=8078000,PA2=8078001,OA2=8078002,FA2=8078003,BA2=8078004,SA2=8078005,_A2=8078006,CA2=8078007,IA2=8078008,TA2=8078009,AA2=8078010,pA2=8078011,mA2=8078012,kA2=8078013,EA2=8078014,vA2=8078015,hA2=8078016,xA2=8078017,dA2=8078018,yA2=8078019,bA2=8078020,gA2=8078021,lA2=8078022,fA2=8078023,uA2=8100000,aA2=8100001,iA2=8100002,cA2=8100003,nA2=8190000,oA2=8190001,$z=8190002,iG=8190003,Vz=8190004,sA2=9900000,rA2=9900001,tA2=9900002,eA2=9900003,$p2=9900004,Vp2=9900005,Jp2=9900006;var Qp2={[YC2]:"Account not found at address: $address",[qC2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[KC2]:"Expected decoded account at address: $address",[WC2]:"Failed to decode account data at address: $address",[GC2]:"Accounts not found at addresses: $addresses",[JC2]:"Unable to find a viable program address bump seed.",[o_2]:"$putativeAddress is not a base58-encoded address.",[c_2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[s_2]:"The `CryptoKey` must be an `Ed25519` public key.",[XC2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[VC2]:"Invalid seeds; point must fall off the Ed25519 curve.",[r_2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[e_2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[$C2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[t_2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[QC2]:"Program address cannot end with PDA marker.",[n_2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[j_2]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[U_2]:"The network has progressed past the last block for which this transaction could have been committed.",[RA2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[lA2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[bA2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[SA2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[_A2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[BA2]:"Encoder and decoder must either both be fixed-size or variable-size.",[IA2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[OA2]:"Expected a fixed-size codec, got a variable-size one.",[kA2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[FA2]:"Expected a variable-size codec, got a fixed-size one.",[yA2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[PA2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[dA2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[TA2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[AA2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[vA2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[CA2]:"Expected [$codecDescription] to have $expected items, got $actual.",[mA2]:"Invalid value $value for base $base with alphabet $alphabet.",[hA2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[pA2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[EA2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[gA2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[xA2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[fA2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[MC2]:"No random values implementation could be found.",[hC2]:"instruction requires an uninitialized account",[sC2]:"instruction tries to borrow reference for an account which is already borrowed",[rC2]:"instruction left account with an outstanding borrowed reference",[nC2]:"program other than the account's owner changed the size of the account data",[mC2]:"account data too small for instruction",[oC2]:"instruction expected an executable account",[LI2]:"An account does not have enough lamports to be rent-exempt",[PI2]:"Program arithmetic overflowed",[MI2]:"Failed to serialize or deserialize account data: $encodedData",[CI2]:"Builtin programs must consume compute units",[YI2]:"Cross-program invocation call depth too deep",[HI2]:"Computational budget exceeded",[eC2]:"custom program error: #$code",[uC2]:"instruction contains duplicate accounts",[tC2]:"instruction modifications of multiply-passed account differ",[QI2]:"executable accounts must be rent exempt",[VI2]:"instruction changed executable accounts data",[JI2]:"instruction changed the balance of an executable account",[aC2]:"instruction changed executable bit of an account",[gC2]:"instruction modified data of an account it does not own",[bC2]:"instruction spent from the balance of an account it does not own",[IC2]:"generic instruction error",[FI2]:"Provided owner is not allowed",[jI2]:"Account is immutable",[NI2]:"Incorrect authority provided",[EC2]:"incorrect program id for instruction",[kC2]:"insufficient funds for instruction",[pC2]:"invalid account data for instruction",[RI2]:"Invalid account owner",[TC2]:"invalid program argument",[$I2]:"program returned invalid error code",[AC2]:"invalid instruction data",[DI2]:"Failed to reallocate account data",[qI2]:"Provided seeds do not result in a valid address",[BI2]:"Accounts data allocations exceeded the maximum allowed per transaction",[SI2]:"Max accounts exceeded",[_I2]:"Max instruction trace length exceeded",[KI2]:"Length of the seed is too long for address generation",[GI2]:"An account required by the instruction is missing",[vC2]:"missing required signature for instruction",[yC2]:"instruction illegally modified the program id of an account",[cC2]:"insufficient account keys for instruction",[ZI2]:"Cross-program invocation with unauthorized signer or writable account",[UI2]:"Failed to create program execution environment",[zI2]:"Program failed to compile",[wI2]:"Program failed to complete",[fC2]:"instruction modified data of a read-only account",[lC2]:"instruction changed the balance of a read-only account",[WI2]:"Cross-program invocation reentrancy not allowed for this instruction",[iC2]:"instruction modified rent epoch of an account",[dC2]:"sum of account balances before and after instruction do not match",[xC2]:"instruction requires an initialized account",[CC2]:"",[XI2]:"Unsupported program id",[OI2]:"Unsupported sysvar",[Vp2]:"Invalid instruction plan kind: $kind.",[ZA2]:"The provided instruction plan is empty.",[zA2]:"No failed transaction plan result was found in the provided transaction plan result.",[wA2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[UA2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[DA2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Jp2]:"Invalid transaction plan kind: $kind.",[HA2]:"No more instructions to pack; the message packer has completed the instruction plan.",[jA2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[NA2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[MA2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[LA2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[BC2]:"The instruction does not have any accounts.",[SC2]:"The instruction does not have any data.",[_C2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[N_2]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[w_2]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[tA2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[$p2]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[rA2]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[sA2]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[eA2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[B_2]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[S_2]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[C_2]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[__2]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[F_2]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[v_2]:"$__serverMessage",[i_2]:"$__serverMessage",[f_2]:"$__serverMessage",[k_2]:"$__serverMessage",[A_2]:"Epoch rewards period still active at slot $slot",[x_2]:"$__serverMessage",[d_2]:"$__serverMessage",[I_2]:"Failed to query long-term storage; please try again",[p_2]:"Minimum context slot has not been reached",[l_2]:"Node is unhealthy; behind by $numSlotsBehind slots",[y_2]:"No snapshot",[a_2]:"Transaction simulation failed",[T_2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[b_2]:"$__serverMessage",[h_2]:"Transaction history is not available from this node",[g_2]:"$__serverMessage",[E_2]:"Transaction signature length mismatch",[u_2]:"Transaction signature verification failure",[m_2]:"$__serverMessage",[LC2]:"Key pair bytes must be of length 64, got $byteLength.",[RC2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[PC2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[FC2]:"The provided private key does not match the provided public key.",[OC2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[M_2]:"Lamports value must be in the range [0, 2e64-1]",[L_2]:"`$value` cannot be parsed as a `BigInt`",[O_2]:"$message",[R_2]:"`$value` cannot be parsed as a `Number`",[z_2]:"No nonce account could be found at address `$nonceAccountAddress`",[fI2]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[eI2]:"Attempted to sign an offchain message with an address that is not a signer for it",[lI2]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[tI2]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[bI2]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[cI2]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[nI2]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[oI2]:"Offchain message content must be non-empty",[aI2]:"Offchain message must specify the address of at least one required signer",[sI2]:"Offchain message envelope must reserve space for at least one signature",[uI2]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[VT2]:"The signatories of this offchain message must be listed in lexicographical order",[JT2]:"An address must be listed no more than once among the signatories of an offchain message",[rI2]:"Offchain message is missing signatures for addresses: $addresses.",[QT2]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[gI2]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[$T2]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[iI2]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[nA2]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[$z]:"WebSocket was closed before payload could be added to the send buffer",[iG]:"WebSocket connection closed",[Vz]:"WebSocket failed to connect",[oA2]:"Failed to obtain a subscription id from the server",[cA2]:"Could not find an API plan for RPC method: `$method`",[uA2]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[iA2]:"HTTP error ($statusCode): $message",[aA2]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[II2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[TI2]:"The provided value does not implement the `KeyPairSigner` interface",[pI2]:"The provided value does not implement the `MessageModifyingSigner` interface",[mI2]:"The provided value does not implement the `MessagePartialSigner` interface",[AI2]:"The provided value does not implement any of the `MessageSigner` interfaces",[EI2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[vI2]:"The provided value does not implement the `TransactionPartialSigner` interface",[hI2]:"The provided value does not implement the `TransactionSendingSigner` interface",[kI2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[xI2]:"More than one `TransactionSendingSigner` was identified.",[dI2]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[yI2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[NC2]:"Cannot export a non-extractable key.",[HC2]:"No digest implementation could be found.",[DC2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[ZC2]:`This runtime does not support the generation of Ed25519 key pairs.
109
+
110
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
111
+
112
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[UC2]:"No signature verification implementation could be found.",[wC2]:"No key generation implementation could be found.",[zC2]:"No signing implementation could be found.",[jC2]:"No key export implementation could be found.",[P_2]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[fT2]:"Transaction processing left an account with an outstanding borrowed reference",[IT2]:"Account in use",[TT2]:"Account loaded twice",[AT2]:"Attempt to debit an account but found no record of a prior credit.",[sT2]:"Transaction loads an address table account that doesn't exist",[ET2]:"This transaction has already been processed",[vT2]:"Blockhash not found",[hT2]:"Loader call chain is too deep",[lT2]:"Transactions are currently disabled due to cluster maintenance",[QA2]:"Transaction contains a duplicate instruction ($index) that is not allowed",[mT2]:"Insufficient funds for fee",[XA2]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[kT2]:"This account may not be used to pay transaction fees",[dT2]:"Transaction contains an invalid account reference",[tT2]:"Transaction loads an address table account with invalid data",[eT2]:"Transaction address table lookup uses an invalid index",[rT2]:"Transaction loads an address table account with an invalid owner",[GA2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[bT2]:"This program may not be used for executing instructions",[$A2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[iT2]:"Transaction loads a writable account that cannot be written",[YA2]:"Transaction exceeded max loaded accounts data size cap",[xT2]:"Transaction requires a fee but has no signature present",[pT2]:"Attempt to load a program that does not exist",[KA2]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[WA2]:"ResanitizationNeeded",[gT2]:"Transaction failed to sanitize accounts offsets correctly",[yT2]:"Transaction did not pass signature verification",[oT2]:"Transaction locked too many accounts",[qA2]:"Sum of account balances before and after transaction do not match",[CT2]:"The transaction failed with the error `$errorName`",[aT2]:"Transaction version is unsupported",[nT2]:"Transaction would exceed account data limit within the block",[JA2]:"Transaction would exceed total account data limit",[cT2]:"Transaction would exceed max account limit within the block",[uT2]:"Transaction would exceed max Block Cost Limit",[VA2]:"Transaction would exceed max Vote Cost Limit",[LT2]:"Attempted to sign a transaction with an address that is not a signer for it",[wT2]:"Transaction is missing an address at index: $index.",[RT2]:"Transaction has no expected signers therefore it cannot be encoded",[BT2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[GT2]:"Transaction does not have a blockhash lifetime",[WT2]:"Transaction is not a durable nonce transaction",[qT2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[DT2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[ZT2]:"No fee payer set in CompiledTransaction",[HT2]:"Could not find program address at index $index",[OT2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[FT2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[zT2]:"Transaction is missing a fee payer.",[jT2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[MT2]:"Transaction first instruction is not advance nonce account instruction.",[NT2]:"Transaction with no instructions cannot be durable nonce transaction.",[XT2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[YT2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[PT2]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[UT2]:"Transaction is missing signatures for addresses: $addresses.",[KT2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[ST2]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[_T2]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},s8="i",n4="t";function Xp2($,V={}){let J=Qp2[$];if(J.length===0)return"";let Q;function X(G){if(Q[n4]===2){let W=J.slice(Q[s8]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[n4]===1)Y.push(J.slice(Q[s8],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[s8]:0,[n4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[n4]){case 0:K={[s8]:W,[n4]:1};break;case 1:if(G==="\\")K={[s8]:W,[n4]:0};else if(G==="$")K={[s8]:W,[n4]:2};break;case 2:if(G==="\\")K={[s8]:W,[n4]:0};else if(G==="$")K={[s8]:W,[n4]:2};else if(!G.match(/\w/))K={[s8]:W,[n4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function Yp2($,V={}){return Xp2($,V)}var vJ=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=Yp2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};import{setMaxListeners as Tm2}from"events";var Sm2=_3(Cx(),1),_m2=_3(Wz(),1),Cm2=_3(qz(),1),vx=_3(QW(),1),Im2=_3(Ex(),1);var hx=vx.default;var Am2=class extends globalThis.EventTarget{constructor(...$){super(...$),Tm2(Number.MAX_SAFE_INTEGER,this)}},uJ=globalThis.WebSocket?globalThis.WebSocket:hx,xx=1000;function dx({sendBufferHighWatermark:$,signal:V,url:J}){if(V.aborted)return Promise.reject(V.reason);let Q,X=!1,Y=new Set;function G(){Y.forEach((T)=>{T()}),Y.clear()}function W(){if(G(),!X)B(V.reason);if(L.readyState!==uJ.CLOSED&&L.readyState!==uJ.CLOSING)L.close(xx)}function K(T){if(G(),Q?.onCancel(),V.removeEventListener("abort",W),L.removeEventListener("close",K),L.removeEventListener("error",D),L.removeEventListener("message",H),L.removeEventListener("open",M),!V.aborted&&!(T.wasClean&&T.code===xx))U.dispatchEvent(new CustomEvent("error",{detail:new vJ(iG,{cause:T})}))}function D(T){if(V.aborted)return;if(!X){let h=new vJ(Vz,{errorEvent:T});B(h),U.dispatchEvent(new CustomEvent("error",{detail:h}))}}function H(T){if(V.aborted)return;U.dispatchEvent(new CustomEvent("message",{detail:T.data}))}let U=new Am2,z=ow(U);function M(){X=!0,_({...z,async send(T){if(L.readyState!==uJ.OPEN)throw new vJ(iG);if(!Q&&L.bufferedAmount>$){let h,A=new Promise((E,y)=>{let l=setInterval(()=>{if(L.readyState!==uJ.OPEN||!(L.bufferedAmount>$))clearInterval(l),Q=void 0,E()},16);h=()=>{Q=void 0,clearInterval(l),y(new vJ($z))}});Q={onCancel:h,promise:A}}if(Q){if(ArrayBuffer.isView(T)&&!(T instanceof DataView))T=new T.constructor(T);await Q.promise}L.send(T)}})}let L=new uJ(J);V.addEventListener("abort",W),L.addEventListener("close",K),L.addEventListener("error",D),L.addEventListener("message",H),L.addEventListener("open",M);let B,_;return new Promise((T,h)=>{B=h,_=T})}function yx($,V,J){let Q="";if(typeof V[0]==="number"){let G=V[0]+1,W=G%10,K=G%100;if(W==1&&K!=11)Q=G+"st";else if(W==2&&K!=12)Q=G+"nd";else if(W==3&&K!=13)Q=G+"rd";else Q=G+"th"}else Q=`\`${V[0].toString()}\``;let X=V.length>1?V.slice(1).map((G)=>typeof G==="number"?`[${G}]`:G).join("."):void 0,Y=new ph(tw,{argumentLabel:Q,keyPath:V,methodName:$,optionalPathLabel:X?` at path \`${X}\``:"",value:J,...X!==void 0?{path:X}:void 0});return mh(Y,yx),Y}var mm2={defaultCommitment:"confirmed",onIntegerOverflow($,V,J){throw yx($.methodName,V,J)}},jz=class extends globalThis.AbortController{constructor(...$){super(...$),pm2(Number.MAX_SAFE_INTEGER,this.signal)}},km2={jsonrpc:"2.0",method:"ping"};function Em2({abortSignal:$,channel:V,intervalMs:J}){let Q;function X(){V.send(km2).catch((W)=>{if(Ah(W,ew))G.abort()})}function Y(){clearInterval(Q),Q=setInterval(X,J)}let G=new jz;return G.signal.addEventListener("abort",()=>{clearInterval(Q)}),$.addEventListener("abort",()=>{G.abort()}),V.on("error",()=>{G.abort()},{signal:G.signal}),V.on("message",Y,{signal:G.signal}),Y(),{...V,send(...W){if(!G.signal.aborted)Y();return V.send(...W)}}}function vm2(){return{entries:[],freeChannelIndex:-1}}function hm2($,{maxSubscriptionsPerChannel:V,minChannels:J}){let Q=vm2();function X(){if(Q.entries.length<J){Q.freeChannelIndex=-1;return}let Y;for(let G=0;G<Q.entries.length;G++){let W=(Q.freeChannelIndex+G+2)%Q.entries.length,K=Q.entries[W];if(K.subscriptionCount<V&&(!Y||Y.subscriptionCount>=K.subscriptionCount))Y={poolIndex:W,subscriptionCount:K.subscriptionCount}}Q.freeChannelIndex=Y?.poolIndex??-1}return function({abortSignal:G}){let W;function K(){let D=Q.entries.findIndex((H)=>H===W);Q.entries.splice(D,1),W.dispose(),X()}if(Q.freeChannelIndex===-1){let D=new jz,H=$({abortSignal:D.signal});H.then((U)=>{U.on("error",K,{signal:D.signal})}).catch(K),W={channel:H,dispose(){D.abort()},subscriptionCount:0},Q.entries.push(W)}else W=Q.entries[Q.freeChannelIndex];return W.subscriptionCount++,G.addEventListener("abort",function(){if(W.subscriptionCount--,W.subscriptionCount===0)K();else if(Q.freeChannelIndex!==-1)Q.freeChannelIndex--,X()}),X(),W.channel}}function xm2($){return h9($,(V)=>Sh(V,dG),(V)=>_h(V,yG))}function dm2($){return ym2({...$,jsonSerializer:xm2})}function ym2($){if(/^wss?:/i.test($.url)===!1){let X=$.url.match(/^([^:]+):/);throw new DOMException(X?`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${X[1]}:' is not allowed.`:`Failed to construct 'WebSocket': The URL '${$.url}' is invalid.`)}let{intervalMs:V,...J}=$;return hm2(({abortSignal:X})=>{return dx({...J,sendBufferHighWatermark:$.sendBufferHighWatermark??131072,signal:X}).then($.jsonSerializer).then((Y)=>Em2({abortSignal:X,channel:Y,intervalMs:V??5000}))},{maxSubscriptionsPerChannel:$.maxSubscriptionsPerChannel??100,minChannels:$.minChannels??1})}function bm2($){let V=new Map;return function(Q){let{request:X,signal:Y}=Q,G=aG([X.methodName,X.params]),W=V.get(G);if(!W){let K=new jz,D=$({...Q,signal:K.signal});D.then((H)=>{H.on("error",()=>{V.delete(G),K.abort()},{signal:K.signal})}).catch(()=>{}),V.set(G,W={abortController:K,dataPublisherPromise:D,numSubscribers:0})}return W.numSubscribers++,Y.addEventListener("abort",()=>{if(W.numSubscribers--,W.numSubscribers===0)queueMicrotask(()=>{if(W.numSubscribers===0)V.delete(G),W.abortController.abort()})},{signal:W.abortController.signal}),W.dataPublisherPromise}}function gm2({createChannel:$}){return h9(lm2($),(V)=>bm2(V))}function lm2($){return async({execute:V,signal:J})=>{let Q=await $({abortSignal:J});return await V({channel:Q,signal:J})}}function fm2($,V){let J=gm2({createChannel:dm2({...V,url:$})});return um2(J)}function Nz($,V){return fm2($,V)}function um2($){return Fh({api:Th(mm2),transport:$})}var am2=1,im2=2,cm2=3,nm2=4,om2=5,sm2=6,rm2=7,tm2=8,em2=9,$k2=10,Vk2=-32700,Jk2=-32603,Qk2=-32602,Xk2=-32601,Yk2=-32600,Gk2=-32019,Wk2=-32018,Kk2=-32017,qk2=-32016,Dk2=-32015,Hk2=-32014,Zk2=-32013,Uk2=-32012,wk2=-32011,zk2=-32010,jk2=-32009,Nk2=-32008,Mk2=-32007,Lk2=-32006,Rk2=-32005,Pk2=-32004,Ok2=-32003,Fk2=-32002,Bk2=-32001,Sk2=2800000,_k2=2800001,Ck2=2800002,Ik2=2800003,Tk2=2800004,Ak2=2800005,pk2=2800006,mk2=2800007,kk2=2800008,Ek2=2800009,vk2=2800010,hk2=2800011,xk2=3230000,dk2=32300001,yk2=3230002,bk2=3230003,gk2=3230004,lk2=3610000,fk2=3610001,uk2=3610002,ak2=3610003,ik2=3610004,ck2=3610005,nk2=3610006,ok2=3610007,sk2=3611000,rk2=3704000,tk2=3704001,ek2=3704002,$E2=3704003,VE2=3704004,JE2=4128000,QE2=4128001,XE2=4128002,YE2=4615000,GE2=4615001,WE2=4615002,KE2=4615003,qE2=4615004,DE2=4615005,HE2=4615006,ZE2=4615007,UE2=4615008,wE2=4615009,zE2=4615010,jE2=4615011,NE2=4615012,ME2=4615013,LE2=4615014,RE2=4615015,PE2=4615016,OE2=4615017,FE2=4615018,BE2=4615019,SE2=4615020,_E2=4615021,CE2=4615022,IE2=4615023,TE2=4615024,AE2=4615025,pE2=4615026,mE2=4615027,kE2=4615028,EE2=4615029,vE2=4615030,hE2=4615031,xE2=4615032,dE2=4615033,yE2=4615034,bE2=4615035,gE2=4615036,lE2=4615037,fE2=4615038,uE2=4615039,aE2=4615040,iE2=4615041,cE2=4615042,nE2=4615043,oE2=4615044,sE2=4615045,rE2=4615046,tE2=4615047,eE2=4615048,$v2=4615049,Vv2=4615050,Jv2=4615051,Qv2=4615052,Xv2=4615053,Yv2=4615054,Mz=5508000,bx=5508001,gx=5508002,lx=5508003,fx=5508004,ux=5508005,ax=5508006,ix=5508007,cx=5508008,nx=5508009,ox=5508010,Gv2=5508011,Wv2=5607000,Kv2=5607001,qv2=5607002,Dv2=5607003,Hv2=5607004,Zv2=5607005,Uv2=5607006,wv2=5607007,zv2=5607008,jv2=5607009,Nv2=5607010,Mv2=5607011,Lv2=5607012,Rv2=5607013,Pv2=5607014,Ov2=5607015,Fv2=5607016,Bv2=5607017,Sv2=5663000,_v2=5663001,Cv2=5663002,Iv2=5663003,Tv2=5663004,Av2=5663005,pv2=5663006,mv2=5663007,kv2=5663008,Ev2=5663009,vv2=5663010,hv2=5663011,xv2=5663012,dv2=5663013,yv2=5663014,bv2=5663015,gv2=5663016,lv2=5663017,fv2=5663018,uv2=5663019,av2=5663020,iv2=5663021,cv2=5663022,nv2=7050000,ov2=7050001,sv2=7050002,rv2=7050003,tv2=7050004,ev2=7050005,$h2=7050006,Vh2=7050007,Jh2=7050008,Qh2=7050009,Xh2=7050010,Yh2=7050011,Gh2=7050012,Wh2=7050013,Kh2=7050014,qh2=7050015,Dh2=7050016,Hh2=7050017,Zh2=7050018,Uh2=7050019,wh2=7050020,zh2=7050021,jh2=7050022,Nh2=7050023,Mh2=7050024,Lh2=7050025,Rh2=7050026,Ph2=7050027,Oh2=7050028,Fh2=7050029,Bh2=7050030,Sh2=7050031,_h2=7050032,Ch2=7050033,Ih2=7050034,Th2=7050035,Ah2=7050036,ph2=7618000,mh2=7618001,kh2=7618002,Eh2=7618003,vh2=7618004,hh2=7618005,xh2=7618006,dh2=7618007,yh2=7618008,bh2=7618009,gh2=8078000,lh2=8078001,fh2=8078002,uh2=8078003,ah2=8078004,ih2=8078005,ch2=8078006,nh2=8078007,oh2=8078008,sh2=8078009,rh2=8078010,th2=8078011,eh2=8078012,$x2=8078013,Vx2=8078014,Jx2=8078015,Qx2=8078016,Xx2=8078017,Yx2=8078018,Gx2=8078019,Wx2=8078020,Kx2=8078021,qx2=8078022,Dx2=8078023,Hx2=8100000,Zx2=8100001,Ux2=8100002,wx2=8100003,zx2=8190000,jx2=8190001,Nx2=8190002,Mx2=8190003,Lx2=8190004,Rx2=9900000,Px2=9900001,Ox2=9900002,Fx2=9900003,Bx2=9900004,Sx2=9900005,_x2=9900006;var Cx2={[xk2]:"Account not found at address: $address",[gk2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[bk2]:"Expected decoded account at address: $address",[yk2]:"Failed to decode account data at address: $address",[dk2]:"Accounts not found at addresses: $addresses",[Ek2]:"Unable to find a viable program address bump seed.",[Ck2]:"$putativeAddress is not a base58-encoded address.",[Sk2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Ik2]:"The `CryptoKey` must be an `Ed25519` public key.",[hk2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[kk2]:"Invalid seeds; point must fall off the Ed25519 curve.",[Tk2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[pk2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[mk2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Ak2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[vk2]:"Program address cannot end with PDA marker.",[_k2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[nm2]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[am2]:"The network has progressed past the last block for which this transaction could have been committed.",[gh2]:"Codec [$codecDescription] cannot decode empty byte arrays.",[qx2]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Wx2]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[ih2]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[ch2]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[ah2]:"Encoder and decoder must either both be fixed-size or variable-size.",[oh2]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[fh2]:"Expected a fixed-size codec, got a variable-size one.",[$x2]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[uh2]:"Expected a variable-size codec, got a fixed-size one.",[Gx2]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[lh2]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Yx2]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[sh2]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[rh2]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Jx2]:"Invalid literal union variant. Expected one of [$variants], got $value.",[nh2]:"Expected [$codecDescription] to have $expected items, got $actual.",[eh2]:"Invalid value $value for base $base with alphabet $alphabet.",[Qx2]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[th2]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[Vx2]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Kx2]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Xx2]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Dx2]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[sk2]:"No random values implementation could be found.",[wE2]:"instruction requires an uninitialized account",[IE2]:"instruction tries to borrow reference for an account which is already borrowed",[TE2]:"instruction left account with an outstanding borrowed reference",[_E2]:"program other than the account's owner changed the size of the account data",[DE2]:"account data too small for instruction",[CE2]:"instruction expected an executable account",[rE2]:"An account does not have enough lamports to be rent-exempt",[eE2]:"Program arithmetic overflowed",[sE2]:"Failed to serialize or deserialize account data: $encodedData",[Yv2]:"Builtin programs must consume compute units",[xE2]:"Cross-program invocation call depth too deep",[fE2]:"Computational budget exceeded",[pE2]:"custom program error: #$code",[OE2]:"instruction contains duplicate accounts",[AE2]:"instruction modifications of multiply-passed account differ",[vE2]:"executable accounts must be rent exempt",[kE2]:"instruction changed executable accounts data",[EE2]:"instruction changed the balance of an executable account",[FE2]:"instruction changed executable bit of an account",[LE2]:"instruction modified data of an account it does not own",[ME2]:"instruction spent from the balance of an account it does not own",[GE2]:"generic instruction error",[Vv2]:"Provided owner is not allowed",[nE2]:"Account is immutable",[oE2]:"Incorrect authority provided",[ZE2]:"incorrect program id for instruction",[HE2]:"insufficient funds for instruction",[qE2]:"invalid account data for instruction",[tE2]:"Invalid account owner",[WE2]:"invalid program argument",[mE2]:"program returned invalid error code",[KE2]:"invalid instruction data",[lE2]:"Failed to reallocate account data",[gE2]:"Provided seeds do not result in a valid address",[Jv2]:"Accounts data allocations exceeded the maximum allowed per transaction",[Qv2]:"Max accounts exceeded",[Xv2]:"Max instruction trace length exceeded",[bE2]:"Length of the seed is too long for address generation",[dE2]:"An account required by the instruction is missing",[UE2]:"missing required signature for instruction",[NE2]:"instruction illegally modified the program id of an account",[SE2]:"insufficient account keys for instruction",[uE2]:"Cross-program invocation with unauthorized signer or writable account",[aE2]:"Failed to create program execution environment",[cE2]:"Program failed to compile",[iE2]:"Program failed to complete",[PE2]:"instruction modified data of a read-only account",[RE2]:"instruction changed the balance of a read-only account",[yE2]:"Cross-program invocation reentrancy not allowed for this instruction",[BE2]:"instruction modified rent epoch of an account",[jE2]:"sum of account balances before and after instruction do not match",[zE2]:"instruction requires an initialized account",[YE2]:"",[hE2]:"Unsupported program id",[$v2]:"Unsupported sysvar",[Sx2]:"Invalid instruction plan kind: $kind.",[kh2]:"The provided instruction plan is empty.",[hh2]:"No failed transaction plan result was found in the provided transaction plan result.",[vh2]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[Eh2]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[ph2]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[_x2]:"Invalid transaction plan kind: $kind.",[mh2]:"No more instructions to pack; the message packer has completed the instruction plan.",[xh2]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[dh2]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[yh2]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[bh2]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[JE2]:"The instruction does not have any accounts.",[QE2]:"The instruction does not have any data.",[XE2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[om2]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[im2]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Ox2]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Bx2]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Px2]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Rx2]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Fx2]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Jk2]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Qk2]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Yk2]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Xk2]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Vk2]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Uk2]:"$__serverMessage",[Bk2]:"$__serverMessage",[Pk2]:"$__serverMessage",[Hk2]:"$__serverMessage",[Kk2]:"Epoch rewards period still active at slot $slot",[zk2]:"$__serverMessage",[jk2]:"$__serverMessage",[Gk2]:"Failed to query long-term storage; please try again",[qk2]:"Minimum context slot has not been reached",[Rk2]:"Node is unhealthy; behind by $numSlotsBehind slots",[Nk2]:"No snapshot",[Fk2]:"Transaction simulation failed",[Wk2]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[Mk2]:"$__serverMessage",[wk2]:"Transaction history is not available from this node",[Lk2]:"$__serverMessage",[Zk2]:"Transaction signature length mismatch",[Ok2]:"Transaction signature verification failure",[Dk2]:"$__serverMessage",[rk2]:"Key pair bytes must be of length 64, got $byteLength.",[tk2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[ek2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[VE2]:"The provided private key does not match the provided public key.",[$E2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[sm2]:"Lamports value must be in the range [0, 2e64-1]",[rm2]:"`$value` cannot be parsed as a `BigInt`",[$k2]:"$message",[tm2]:"`$value` cannot be parsed as a `Number`",[cm2]:"No nonce account could be found at address `$nonceAccountAddress`",[Dv2]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[Rv2]:"Attempted to sign an offchain message with an address that is not a signer for it",[qv2]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[Lv2]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[Wv2]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[wv2]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[zv2]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[jv2]:"Offchain message content must be non-empty",[Zv2]:"Offchain message must specify the address of at least one required signer",[Nv2]:"Offchain message envelope must reserve space for at least one signature",[Hv2]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[Ov2]:"The signatories of this offchain message must be listed in lexicographical order",[Fv2]:"An address must be listed no more than once among the signatories of an offchain message",[Mv2]:"Offchain message is missing signatures for addresses: $addresses.",[Bv2]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[Kv2]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Pv2]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[Uv2]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[zx2]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Nx2]:"WebSocket was closed before payload could be added to the send buffer",[Mx2]:"WebSocket connection closed",[Lx2]:"WebSocket failed to connect",[jx2]:"Failed to obtain a subscription id from the server",[wx2]:"Could not find an API plan for RPC method: `$method`",[Hx2]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Ux2]:"HTTP error ($statusCode): $message",[Zx2]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Mz]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[bx]:"The provided value does not implement the `KeyPairSigner` interface",[lx]:"The provided value does not implement the `MessageModifyingSigner` interface",[fx]:"The provided value does not implement the `MessagePartialSigner` interface",[gx]:"The provided value does not implement any of the `MessageSigner` interfaces",[ax]:"The provided value does not implement the `TransactionModifyingSigner` interface",[ix]:"The provided value does not implement the `TransactionPartialSigner` interface",[cx]:"The provided value does not implement the `TransactionSendingSigner` interface",[ux]:"The provided value does not implement any of the `TransactionSigner` interfaces",[nx]:"More than one `TransactionSendingSigner` was identified.",[ox]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Gv2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[ok2]:"Cannot export a non-extractable key.",[fk2]:"No digest implementation could be found.",[lk2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[uk2]:`This runtime does not support the generation of Ed25519 key pairs.
113
+
114
+ Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
115
+
116
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[ak2]:"No signature verification implementation could be found.",[ik2]:"No key generation implementation could be found.",[ck2]:"No signing implementation could be found.",[nk2]:"No key export implementation could be found.",[em2]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Dh2]:"Transaction processing left an account with an outstanding borrowed reference",[ov2]:"Account in use",[sv2]:"Account loaded twice",[rv2]:"Attempt to debit an account but found no record of a prior credit.",[Nh2]:"Transaction loads an address table account that doesn't exist",[Vh2]:"This transaction has already been processed",[Jh2]:"Blockhash not found",[Qh2]:"Loader call chain is too deep",[qh2]:"Transactions are currently disabled due to cluster maintenance",[Bh2]:"Transaction contains a duplicate instruction ($index) that is not allowed",[ev2]:"Insufficient funds for fee",[Sh2]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[$h2]:"This account may not be used to pay transaction fees",[Yh2]:"Transaction contains an invalid account reference",[Lh2]:"Transaction loads an address table account with invalid data",[Rh2]:"Transaction address table lookup uses an invalid index",[Mh2]:"Transaction loads an address table account with an invalid owner",[Ch2]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Wh2]:"This program may not be used for executing instructions",[Ph2]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Uh2]:"Transaction loads a writable account that cannot be written",[_h2]:"Transaction exceeded max loaded accounts data size cap",[Xh2]:"Transaction requires a fee but has no signature present",[tv2]:"Attempt to load a program that does not exist",[Th2]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Ih2]:"ResanitizationNeeded",[Kh2]:"Transaction failed to sanitize accounts offsets correctly",[Gh2]:"Transaction did not pass signature verification",[jh2]:"Transaction locked too many accounts",[Ah2]:"Sum of account balances before and after transaction do not match",[nv2]:"The transaction failed with the error `$errorName`",[Zh2]:"Transaction version is unsupported",[zh2]:"Transaction would exceed account data limit within the block",[Fh2]:"Transaction would exceed total account data limit",[wh2]:"Transaction would exceed max account limit within the block",[Hh2]:"Transaction would exceed max Block Cost Limit",[Oh2]:"Transaction would exceed max Vote Cost Limit",[bv2]:"Attempted to sign a transaction with an address that is not a signer for it",[vv2]:"Transaction is missing an address at index: $index.",[gv2]:"Transaction has no expected signers therefore it cannot be encoded",[av2]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Cv2]:"Transaction does not have a blockhash lifetime",[Iv2]:"Transaction is not a durable nonce transaction",[Av2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[pv2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[kv2]:"No fee payer set in CompiledTransaction",[mv2]:"Could not find program address at index $index",[fv2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[uv2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[hv2]:"Transaction is missing a fee payer.",[xv2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[yv2]:"Transaction first instruction is not advance nonce account instruction.",[dv2]:"Transaction with no instructions cannot be durable nonce transaction.",[Sv2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[_v2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[lv2]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Ev2]:"Transaction is missing signatures for addresses: $addresses.",[Tv2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[iv2]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[cv2]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},$5="i",s4="t";function Ix2($,V={}){let J=Cx2[$];if(J.length===0)return"";let Q;function X(G){if(Q[s4]===2){let W=J.slice(Q[$5]+1,G);Y.push(W in V?`${V[W]}`:`$${W}`)}else if(Q[s4]===1)Y.push(J.slice(Q[$5],G))}let Y=[];return J.split("").forEach((G,W)=>{if(W===0){Q={[$5]:0,[s4]:J[0]==="\\"?0:J[0]==="$"?2:1};return}let K;switch(Q[s4]){case 0:K={[$5]:W,[s4]:1};break;case 1:if(G==="\\")K={[$5]:W,[s4]:0};else if(G==="$")K={[$5]:W,[s4]:2};break;case 2:if(G==="\\")K={[$5]:W,[s4]:0};else if(G==="$")K={[$5]:W,[s4]:2};else if(!G.match(/\w/))K={[$5]:W,[s4]:1};break}if(K){if(Q!==K)X(W);Q=K}}),X(),Y.join("")}function Tx2($,V={}){return Ix2($,V)}var sx=class extends Error{cause=this.cause;context;constructor(...[$,V]){let J,Q;if(V)Object.entries(Object.getOwnPropertyDescriptors(V)).forEach(([Y,G])=>{if(Y==="cause")Q={cause:G.value};else{if(J===void 0)J={__code:$};Object.defineProperty(J,Y,G)}});let X=Tx2($,J);super(X,Q);this.context=Object.freeze(J===void 0?{__code:$}:J),this.name="SolanaError"}};function Lz($){let V={};return $.forEach((J)=>{if(!V[J.address])V[J.address]=J;else if(V[J.address]!==J)throw new sx(Mz,{address:J.address})}),Object.values(V)}function l$($){return"modifyAndSignTransactions"in $&&typeof $.modifyAndSignTransactions==="function"}function i7($){return"signTransactions"in $&&typeof $.signTransactions==="function"}function rx($){return"signAndSendTransactions"in $&&typeof $.signAndSendTransactions==="function"}function f$($){return i7($)||l$($)||rx($)}function Ax2($){return Lz(($.accounts??[]).flatMap((V)=>("signer"in V)?V.signer:[]))}function px2($){return Lz([...$.feePayer&&f$($.feePayer)?[$.feePayer]:[],...$.instructions.flatMap(Ax2)])}async function tx($){let V=await wG($.publicKey);return Object.freeze({address:V,keyPair:$,signMessages:(Q)=>Promise.all(Q.map(async(X)=>Object.freeze({[V]:await pJ($.privateKey,X.content)}))),signTransactions:(Q)=>Promise.all(Q.map(async(X)=>{let Y=await eE([$],X);return Object.freeze({[V]:Y.signatures[V]})}))})}async function ex($,V){return await tx(await sE($,V))}async function $d($,V){return await tx(await rE($,V))}async function Vd($,V){let{partialSigners:J,modifyingSigners:Q}=mx2(Lz(px2($).filter(f$)),{identifySendingSigner:!1});return await vx2($,Q,J,V)}function mx2($,V={}){let Q=V.identifySendingSigner??!0?kx2($):null,X=$.filter((W)=>W!==Q&&(l$(W)||i7(W))),Y=Ex2(X),G=X.filter(i7).filter((W)=>!Y.includes(W));return Object.freeze({modifyingSigners:Y,partialSigners:G,sendingSigner:Q})}function kx2($){let V=$.filter(rx);if(V.length===0)return null;let J=V.filter((Q)=>!l$(Q)&&!i7(Q));if(J.length>0)return J[0];return V[0]}function Ex2($){let V=$.filter(l$);if(V.length===0)return[];let J=V.filter((Q)=>!i7(Q));if(J.length>0)return J;return[V[0]]}async function vx2($,V=[],J=[],Q){let X=xG($),Y=await V.reduce(async(W,K)=>{Q?.abortSignal?.throwIfAborted();let[D]=await K.modifyAndSignTransactions([await W],Q);return Object.freeze(D)},Promise.resolve(X));Q?.abortSignal?.throwIfAborted();let G=await Promise.all(J.map(async(W)=>{let[K]=await W.signTransactions([Y],Q);return K}));return Object.freeze({...Y,signatures:Object.freeze(G.reduce((W,K)=>{return{...W,...K}},Y.signatures??{}))})}var vY0=globalThis.TextEncoder;var YW="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";var hx2=0,xx2;xx2={[hx2]:"Associated token account owner does not match address derivation"};var dx2=0,yx2=1,bx2=2,gx2=3,lx2=4,fx2=5,ux2=6,ax2=7,ix2=8,cx2=9,nx2=10,ox2=11,sx2=12,rx2=13,tx2=14,ex2=15,$d2=16,Vd2=17,Jd2=18,Qd2=19,Xd2;Xd2={[Vd2]:"Account is frozen",[ux2]:"Already in use",[ex2]:"Account does not support specified authority type",[fx2]:"Fixed supply",[yx2]:"Insufficient funds",[sx2]:"Invalid instruction",[bx2]:"Invalid Mint",[ax2]:"Invalid number of provided signers",[ix2]:"Invalid number of required signers",[rx2]:"State is invalid for requested operation",[$d2]:"This token mint cannot freeze accounts",[Jd2]:"The provided decimals value different from the Mint decimals",[gx2]:"Account not associated with this Mint",[nx2]:"Instruction does not support native tokens",[ox2]:"Non-native account can only be closed if its balance is zero",[Qd2]:"Instruction does not support non-native tokens",[dx2]:"Lamport balance below rent-exempt threshold",[tx2]:"Operation overflowed",[lx2]:"Owner does not match",[cx2]:"State is unititialized"};var Xd=(($)=>{return $[$.Uninitialized=0]="Uninitialized",$[$.Initialized=1]="Initialized",$[$.Frozen=2]="Frozen",$})(Xd||{});function Yd2(){return Hk(Xd)}function Gd2(){return FU(b5(),36)}function aJ(){return FU(b5(),64)}function Wd2(){return Dk([["Uninitialized",g5()],["TransferFeeConfig",h2(P2([["transferFeeConfigAuthority",L2()],["withdrawWithheldAuthority",L2()],["withheldAmount",Y9()],["olderTransferFee",Jd()],["newerTransferFee",Jd()]]),i2())],["TransferFeeAmount",h2(P2([["withheldAmount",Y9()]]),i2())],["MintCloseAuthority",h2(P2([["closeAuthority",L2()]]),i2())],["ConfidentialTransferMint",h2(P2([["authority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["autoApproveNewAccounts",t9()],["auditorElgamalPubkey",L9(L2(),{prefix:null,noneValue:"zeroes"})]]),i2())],["ConfidentialTransferAccount",h2(P2([["approved",t9()],["elgamalPubkey",L2()],["pendingBalanceLow",aJ()],["pendingBalanceHigh",aJ()],["availableBalance",aJ()],["decryptableAvailableBalance",Gd2()],["allowConfidentialCredits",t9()],["allowNonConfidentialCredits",t9()],["pendingBalanceCreditCounter",Y9()],["maximumPendingBalanceCreditCounter",Y9()],["expectedPendingBalanceCreditCounter",Y9()],["actualPendingBalanceCreditCounter",Y9()]]),i2())],["DefaultAccountState",h2(P2([["state",Yd2()]]),i2())],["ImmutableOwner",h2(P2([]),i2())],["MemoTransfer",h2(P2([["requireIncomingTransferMemos",t9()]]),i2())],["NonTransferable",h2(P2([]),i2())],["InterestBearingConfig",h2(P2([["rateAuthority",L2()],["initializationTimestamp",Y9()],["preUpdateAverageRate",yU()],["lastUpdateTimestamp",Y9()],["currentRate",yU()]]),i2())],["CpiGuard",h2(P2([["lockCpi",t9()]]),i2())],["PermanentDelegate",h2(P2([["delegate",L2()]]),i2())],["NonTransferableAccount",h2(P2([]),i2())],["TransferHook",h2(P2([["authority",L2()],["programId",L2()]]),i2())],["TransferHookAccount",h2(P2([["transferring",t9()]]),i2())],["ConfidentialTransferFee",h2(P2([["authority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["elgamalPubkey",L2()],["harvestToMintEnabled",t9()],["withheldAmount",aJ()]]),i2())],["ConfidentialTransferFeeAmount",h2(P2([["withheldAmount",aJ()]]),i2())],["MetadataPointer",h2(P2([["authority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["metadataAddress",L9(L2(),{prefix:null,noneValue:"zeroes"})]]),i2())],["TokenMetadata",h2(P2([["updateAuthority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["mint",L2()],["name",h2(F$(),k4())],["symbol",h2(F$(),k4())],["uri",h2(F$(),k4())],["additionalMetadata",Uk(h2(F$(),k4()),h2(F$(),k4()))]]),i2())],["GroupPointer",h2(P2([["authority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["groupAddress",L9(L2(),{prefix:null,noneValue:"zeroes"})]]),i2())],["TokenGroup",h2(P2([["updateAuthority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["mint",L2()],["size",Y9()],["maxSize",Y9()]]),i2())],["GroupMemberPointer",h2(P2([["authority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["memberAddress",L9(L2(),{prefix:null,noneValue:"zeroes"})]]),i2())],["TokenGroupMember",h2(P2([["mint",L2()],["group",L2()],["memberNumber",Y9()]]),i2())],["ConfidentialMintBurn",g5()],["ScaledUiAmountConfig",h2(P2([["authority",L2()],["multiplier",dU()],["newMultiplierEffectiveTimestamp",Y9()],["newMultiplier",dU()]]),i2())],["PausableConfig",h2(P2([["authority",L9(L2(),{prefix:null,noneValue:"zeroes"})],["paused",t9()]]),i2())],["PausableAccount",g5()]],{size:i2()})}function Jd(){return P2([["epoch",Y9()],["maximumFee",Y9()],["transferFeeBasisPoints",i2()]])}function Kd2(){return P2([["mintAuthority",L9(L2(),{prefix:k4(),noneValue:"zeroes"})],["supply",Y9()],["decimals",gU()],["isInitialized",t9()],["freezeAuthority",L9(L2(),{prefix:k4(),noneValue:"zeroes"})],["extensions",L9(Zk(L6(Wd2(),{size:"remainder"}),[RG(bm(R6(),83).encode(1))]),{prefix:null})]])}function qd2($){return tp($,Kd2())}async function Yd($,V,J){let Q=await Dd2($,V,J);return $m(Q),Q}async function Dd2($,V,J){let Q=await ep($,V,J);return qd2(Q)}var iJ="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";var Hd2=0,Zd2;Zd2={[Hd2]:"Associated token account owner does not match address derivation"};var Ud2=0,wd2=1,zd2=2,jd2=3,Nd2=4,Md2=5,Ld2=6,Rd2=7,Pd2=8,Od2=9,Fd2=10,Bd2=11,Sd2=12,_d2=13,Cd2=14,Id2=15,Td2=16,Ad2=17,pd2=18,md2=19,kd2;kd2={[Ad2]:"Account is frozen",[Ld2]:"Already in use",[Id2]:"Account does not support specified authority type",[Md2]:"Fixed supply",[wd2]:"Insufficient funds",[Sd2]:"Invalid instruction",[zd2]:"Invalid Mint",[Rd2]:"Invalid number of provided signers",[Pd2]:"Invalid number of required signers",[_d2]:"State is invalid for requested operation",[Td2]:"This token mint cannot freeze accounts",[pd2]:"The provided decimals value different from the Mint decimals",[jd2]:"Account not associated with this Mint",[Fd2]:"Instruction does not support native tokens",[Bd2]:"Non-native account can only be closed if its balance is zero",[md2]:"Instruction does not support non-native tokens",[Ud2]:"Lamport balance below rent-exempt threshold",[Cd2]:"Operation overflowed",[Nd2]:"Owner does not match",[Od2]:"State is unititialized"};function Ed2($){if(!$)throw Error("Expected a Address.");if(typeof $==="object"&&"address"in $)return $.address;if(Array.isArray($))return $[0];return $}function vd2($,V){return(J)=>{if(!J.value)return Object.freeze({address:$,role:$6.READONLY});let Q=J.isWritable?$6.WRITABLE:$6.READONLY;return Object.freeze({address:Ed2(J.value),role:Qd(J.value)?vk(Q):Q,...Qd(J.value)?{signer:J.value}:{}})}}function Qd($){return!!$&&typeof $==="object"&&"address"in $&&f$($)}async function Rz($,V={}){let{programAddress:J="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"}=V;return await Im({programAddress:J,seeds:[A8().encode($.owner),A8().encode($.tokenProgram),A8().encode($.mint)]})}var WG0=new Uint8Array([250,166,180,250,13,12,184,70]);var KG0=new Uint8Array([121,113,108,39,54,51,0,4]);var qG0=new Uint8Array([152,32,222,176,223,237,116,134]);var DG0=new Uint8Array([210,225,30,162,88,184,77,141]);var HG0=new Uint8Array([234,18,32,56,89,141,37,181]);var hd2=12;function xd2(){return SJ(e9([["discriminator",R6()],["amount",PG()],["decimals",R6()]]),($)=>({...$,discriminator:hd2}))}function Gd($,V){let J=V?.programAddress??iJ,X={source:{value:$.source??null,isWritable:!0},mint:{value:$.mint??null,isWritable:!1},destination:{value:$.destination??null,isWritable:!0},authority:{value:$.authority??null,isWritable:!1}},Y={...$},G=(Y.multiSigners??[]).map((K)=>({address:K.address,role:$6.READONLY_SIGNER,signer:K})),W=vd2(J);return Object.freeze({accounts:[W(X.source),W(X.mint),W(X.destination),W(X.authority),...G],data:xd2().encode(Y),programAddress:J})}var ZG0=new Uint8Array([108,37,171,143,248,30,18,110]);var UG0=new Uint8Array([161,105,88,1,237,221,216,203]);var wG0=new Uint8Array([221,233,49,45,181,202,220,200]);var zG0=new Uint8Array([215,228,166,228,84,100,86,123]);var RG0=U1.union([U1.string().transform(($)=>$.replace(/[^0-9.-]+/g,"")),U1.number()]).pipe(U1.coerce.number().min(0.0001).max(999999999)),WW=U1.enum(["abstract","abstract-testnet","base-sepolia","base","avalanche-fuji","avalanche","iotex","solana-devnet","solana","sei","sei-testnet","polygon","polygon-amoy","peaq","story","educhain","skale-base-sepolia"]),cJ=["abstract","abstract-testnet","base-sepolia","base","avalanche-fuji","avalanche","iotex","sei","sei-testnet","polygon","polygon-amoy","peaq","story","educhain","skale-base-sepolia"],Pz=new Map([["abstract",2741],["abstract-testnet",11124],["base-sepolia",84532],["base",8453],["avalanche-fuji",43113],["avalanche",43114],["iotex",4689],["sei",1329],["sei-testnet",1328],["polygon",137],["polygon-amoy",80002],["peaq",3338],["story",1514],["educhain",41923],["skale-base-sepolia",324705682]]),u$=["solana-devnet","solana"],Wd=new Map([["solana-devnet",103],["solana",101]]),OG0=Object.fromEntries([...cJ,...u$].map(($)=>[Pz.get($),$])),yd2={id:324705682,name:"SKALE Base Sepolia",nativeCurrency:{name:"Credits",symbol:"CREDITS",decimals:18},rpcUrls:{default:{http:["https://base-sepolia-testnet.skalenodes.com/v1/jubilant-horrible-ancha"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia-testnet-explorer.skalenodes.com",apiUrl:"https://base-sepolia-testnet-explorer.skalenodes.com/api"}}};function Fz($){let V=Sz($);return UZ({chain:V,transport:nY()}).extend(v7)}function bd2(){return Fz("base-sepolia")}function gd2(){return Fz("avalanche-fuji")}function Bz($,V){let J=Sz($),Q=zZ({chain:J,transport:nY(),account:gZ(V)});if(qd(J))return Q.extend(v7).extend(cZ());return Q.extend(v7)}function ld2($){return Bz("base-sepolia",$)}function fd2($){return Bz("avalanche-fuji",$)}function nJ($){return typeof $==="object"&&$!==null&&"chain"in $&&"transport"in $}function KW($){let V=$;return typeof $==="object"&&$!==null&&typeof V.address==="string"&&typeof V.type==="string"&&typeof V.sign==="function"&&typeof V.signMessage==="function"&&typeof V.signTypedData==="function"&&typeof V.signTransaction==="function"}function Sz($){if(!$)throw Error("NETWORK environment variable is not set");switch($){case"abstract":return OZ;case"abstract-testnet":return FZ;case"base":return rY;case"base-sepolia":return tY;case"avalanche":return BZ;case"avalanche-fuji":return SZ;case"sei":return mZ;case"sei-testnet":return kZ;case"polygon":return AZ;case"polygon-amoy":return pZ;case"peaq":return TZ;case"story":return EZ;case"educhain":return _Z;case"iotex":return CZ;case"iotex-testnet":return IZ;case"skale-base-sepolia":return yd2;default:throw Error(`Unsupported network: ${$}`)}}var ud2=new Set([2741,11124]);function qd($){return ud2.has($.id)}var ad2="https://api.devnet.solana.com",id2="https://api.mainnet-beta.solana.com",cd2="wss://api.devnet.solana.com",nd2="wss://api.mainnet-beta.solana.com";function Dd($){return yw($?pG($):pG(ad2))}function Hd($){return yw($?AG($):AG(id2))}function oJ($,V){if($==="solana-devnet")return Dd(V);else if($==="solana")return Hd(V);else throw Error("Invalid network")}function od2($,V){if($==="solana-devnet")return Nz(pG(V?Kd(V):cd2));else if($==="solana")return Nz(AG(V?Kd(V):nd2));else throw Error("Invalid network")}function Kd($){if($.startsWith("http"))return $.replace("http","ws");return $}function sd2($){if(!u$.find((V)=>V===$))throw Error(`Unsupported SVM network: ${$}`);return oJ($)}async function rd2($){let V=Ip.decode($);if(V.length===64)return await ex(V);if(V.length===32)return await $d(V);throw Error(`Unexpected key length: ${V.length}. Expected 32 or 64 bytes.`)}function Zd($){return typeof $==="object"&&$!==null&&f$($)}function Ud($){return nJ($)||KW($)}function wd($){return Zd($)}function _z($){return"evm"in $&&"svm"in $}var td2={};RX(td2,{authorizationPrimaryType:()=>ed2,authorizationTypes:()=>Cz,config:()=>UD,createClientAvalancheFuji:()=>gd2,createClientSepolia:()=>bd2,createConnectedClient:()=>Fz,createSigner:()=>Bz,createSignerAvalancheFuji:()=>fd2,createSignerSepolia:()=>ld2,getChainFromNetwork:()=>Sz,isAccount:()=>KW,isSignerWallet:()=>nJ,isZkStackChain:()=>qd,usdcABI:()=>zC});var Cz={TransferWithAuthorization:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"validAfter",type:"uint256"},{name:"validBefore",type:"uint256"},{name:"nonce",type:"bytes32"}]},ed2="TransferWithAuthorization",$y2={};RX($y2,{SvmAddressRegex:()=>Iz});var Iz=/^[1-9A-HJ-NP-Za-km-z]{32,44}$/,zd=/^[A-Za-z0-9+/]*={0,2}$/;function qW($){if(typeof globalThis<"u"&&typeof globalThis.btoa==="function")return globalThis.btoa($);return Buffer.from($).toString("base64")}var Vy2=18,Oz=/^0x[0-9a-fA-F]{40}$/,Tz=/^0x[a-fA-F0-9]{40}|[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$/,Jy2=/^0x[0-9a-fA-F]{64}$/,Qy2=/^0x[0-9a-fA-F]+$/,Az=["exact"],sJ=[1],pz=["insufficient_funds","invalid_exact_evm_payload_authorization_valid_after","invalid_exact_evm_payload_authorization_valid_before","invalid_exact_evm_payload_authorization_value","invalid_exact_evm_payload_signature","invalid_exact_evm_payload_undeployed_smart_wallet","invalid_exact_evm_payload_recipient_mismatch","invalid_exact_svm_payload_transaction","invalid_exact_svm_payload_transaction_amount_mismatch","invalid_exact_svm_payload_transaction_create_ata_instruction","invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee","invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset","invalid_exact_svm_payload_transaction_instructions","invalid_exact_svm_payload_transaction_instructions_length","invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction","invalid_exact_svm_payload_transaction_instructions_compute_price_instruction","invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high","invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked","invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked","invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts","invalid_exact_svm_payload_transaction_fee_payer_transferring_funds","invalid_exact_svm_payload_transaction_not_a_transfer_instruction","invalid_exact_svm_payload_transaction_receiver_ata_not_found","invalid_exact_svm_payload_transaction_sender_ata_not_found","invalid_exact_svm_payload_transaction_simulation_failed","invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata","invalid_network","invalid_payload","invalid_payment_requirements","invalid_scheme","invalid_payment","payment_expired","unsupported_scheme","invalid_x402_version","invalid_transaction_state","invalid_x402_version","settle_exact_svm_block_height_exceeded","settle_exact_svm_transaction_confirmation_timed_out","unsupported_scheme","unexpected_settle_error","unexpected_verify_error"],GW=($)=>Number.isInteger(Number($))&&Number($)>=0,Xy2=($)=>(V)=>V.length<=$,mz=U1.string().regex(Oz).or(U1.string().regex(Iz)),Yy2=U1.string().regex(Tz).or(U1.string().regex(Iz)),rJ=U1.object({scheme:U1.enum(Az),network:WW,maxAmountRequired:U1.string().refine(GW),resource:U1.string().url(),description:U1.string(),mimeType:U1.string(),outputSchema:U1.record(U1.any()).optional(),payTo:mz,maxTimeoutSeconds:U1.number().int(),asset:Yy2,extra:U1.record(U1.any()).optional()}),Gy2=U1.object({from:U1.string().regex(Oz),to:U1.string().regex(Oz),value:U1.string().refine(GW).refine(Xy2(Vy2)),validAfter:U1.string().refine(GW),validBefore:U1.string().refine(GW),nonce:U1.string().regex(Jy2)}),Wy2=U1.object({signature:U1.string().regex(Qy2),authorization:Gy2}),Ky2=U1.object({transaction:U1.string().regex(zd)}),kz=U1.object({x402Version:U1.number().refine(($)=>sJ.includes($)),scheme:U1.enum(Az),network:WW,payload:U1.union([Wy2,Ky2])}),pG0=U1.object({x402Version:U1.number().refine(($)=>sJ.includes($)),error:U1.enum(pz).optional(),accepts:U1.array(rJ).optional(),payer:U1.string().regex(Tz).optional()}),qy2=U1.enum(["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD"]),Dy2=U1.object({type:U1.literal("http"),method:qy2,queryParams:U1.record(U1.string(),U1.string()).optional(),bodyType:U1.enum(["json","form-data","multipart-form-data","text","binary"]).optional(),bodyFields:U1.record(U1.string(),U1.any()).optional(),headerFields:U1.record(U1.string(),U1.any()).optional()}),mG0=U1.discriminatedUnion("type",[Dy2]),Hy2=U1.object({resource:U1.string(),type:U1.enum(["http"]),x402Version:U1.number().refine(($)=>sJ.includes($)),accepts:U1.array(rJ),lastUpdated:U1.date(),metadata:U1.record(U1.any()).optional()}),kG0=U1.object({paymentPayload:kz,paymentRequirements:rJ}),EG0=U1.object({paymentPayload:kz,paymentRequirements:rJ}),vG0=U1.object({isValid:U1.boolean(),invalidReason:U1.enum(pz).optional(),payer:mz.optional()}),hG0=U1.object({success:U1.boolean(),errorReason:U1.enum(pz).optional(),payer:mz.optional(),transaction:U1.string().regex(Tz),network:WW}),xG0=U1.object({type:U1.string().optional(),limit:U1.number().optional(),offset:U1.number().optional()}),dG0=U1.object({x402Version:U1.number().refine(($)=>sJ.includes($)),items:U1.array(Hy2),pagination:U1.object({limit:U1.number(),offset:U1.number(),total:U1.number()})}),Zy2=U1.object({x402Version:U1.number().refine(($)=>sJ.includes($)),scheme:U1.enum(Az),network:WW,extra:U1.record(U1.any()).optional()}),yG0=U1.object({kinds:U1.array(Zy2)});function DW($){if(Pz.has($))return Pz.get($);if(Wd.has($))return Wd.get($);throw Error(`Unsupported network: ${$}`)}var HW={};RX(HW,{createDevnetRpcClient:()=>Dd,createMainnetRpcClient:()=>Hd,createSignerFromBase58:()=>rd2,createSvmConnectedClient:()=>sd2,decodeTransactionFromPayload:()=>Uy2,getRpcClient:()=>oJ,getRpcSubscriptions:()=>od2,getTokenPayerFromTransaction:()=>wy2,isSignerWallet:()=>Zd,signAndSimulateTransaction:()=>zy2,signTransactionWithSigner:()=>jd});function Uy2($){try{let J=qG().encode($.transaction);return tE().decode(J)}catch(V){throw console.error("error",V),Error("invalid_exact_svm_payload_transaction")}}function wy2($){let V=ME().decode($.messageBytes),J=V.staticAccounts??[],Q=V.instructions??[];for(let X of Q){let Y=X.programAddressIndex,G=J[Y].toString();if(G===YW.toString()||G===iJ.toString()){let W=X.accountIndices??[];if(W.length>=4){let K=W[3],D=J[K].toString();if(D)return D}}}return""}async function zy2($,V,J){let Q=await jd($,V),X=E$(Q),Y={sigVerify:!0,replaceRecentBlockhash:!1,commitment:"confirmed",encoding:"base64",accounts:void 0,innerInstructions:void 0,minContextSlot:void 0};return await J.simulateTransaction(X,Y).send()}async function jd($,V){if(l$($)){let[J]=await $.modifyAndSignTransactions([V]);if(!J)throw Error("transaction_signer_failed_to_return_transaction");return J}if(i7($)){let[J]=await $.signTransactions([V]);if(!J)throw Error("transaction_signer_failed_to_return_signatures");return jy2(V,J)}throw Error("transaction_signer_must_support_offline_signing")}function jy2($,V){return Object.freeze({...$,signatures:Object.freeze({...$.signatures,...V})})}var uG0=U1.object({paymentHeader:U1.string(),paymentRequirements:rJ});var Ez="ComputeBudget111111111111111111111111111111";function Ny2($){let V="data"in $?$.data:$;if(x7(V,R6().encode(0),0))return 0;if(x7(V,R6().encode(1),0))return 1;if(x7(V,R6().encode(2),0))return 2;if(x7(V,R6().encode(3),0))return 3;if(x7(V,R6().encode(4),0))return 4;throw Error("The provided instruction could not be identified as a computeBudget instruction.")}var My2=2;function Ly2(){return SJ(e9([["discriminator",R6()],["units",bU()]]),($)=>({...$,discriminator:My2}))}function ZW($,V){let J=V?.programAddress??Ez,Q={...$};return Object.freeze({data:Ly2().encode(Q),programAddress:J})}var Ry2=3;function Py2(){return SJ(e9([["discriminator",R6()],["microLamports",PG()]]),($)=>({...$,discriminator:Ry2}))}function Oy2($,V){let J=V?.programAddress??Ez,Q={...$};return Object.freeze({data:Py2().encode(Q),programAddress:J})}var Fy2=1400000;function By2($){let V=Sy2($);if(V<0)return null;let J=k4().decode($.instructions[V].data,1);return{index:V,units:J}}function Sy2($){return $.instructions.findIndex(_y2)}function _y2($){return $.programAddress===Ez&&Ny2($.data)===2}function Cy2($,V){let J=(D)=>typeof $==="function"?$(D):$,Q=By2(V);if(!Q)return Zw(ZW({units:J(null)}),V);let{index:X,units:Y}=Q,G=J(Y);if(G===Y)return V;let W=ZW({units:G}),K=[...V.instructions];return K.splice(X,1,W),Object.freeze({...V,instructions:K})}async function Iy2({transactionMessage:$,...V}){let J=!kG($),Q=h9($,(X)=>Cy2(Fy2,X),xG);return await Ty2({transaction:Q,replaceRecentBlockhash:J,...V})}async function Ty2({abortSignal:$,rpc:V,transaction:J,...Q}){let X=E$(J);try{let{value:{err:Y,unitsConsumed:G}}=await V.simulateTransaction(X,{...Q,encoding:"base64",sigVerify:!1}).send({abortSignal:$});if(G==null)throw new CG(SG);let W=G>4294967295n?4294967295:Number(G);if(Y)throw new CG(_G,{cause:Y,unitsConsumed:W});return W}catch(Y){if(Ek(Y,_G))throw Y;throw new CG(SG,{cause:Y})}}function Nd({rpc:$}){return async function(J,Q){return await Iy2({...Q,rpc:$,transactionMessage:J})}}function Md($,V){return Zw(Oy2({microLamports:$}),V)}function vz($){let V;if(cJ.includes($.network)){let J=$.payload;return V={...$,payload:{...J,authorization:Object.fromEntries(Object.entries(J.authorization).map(([Q,X])=>[Q,typeof X==="bigint"?X.toString():X]))}},qW(JSON.stringify(V))}if(u$.includes($.network))return V={...$,payload:$.payload},qW(JSON.stringify(V));throw Error("Invalid network")}async function py2($,{from:V,to:J,value:Q,validAfter:X,validBefore:Y,nonce:G},{asset:W,network:K,extra:D}){let H=DW(K),U=D?.name,z=D?.version,M={types:Cz,domain:{name:U,version:z,chainId:H,verifyingContract:b6(W)},primaryType:"TransferWithAuthorization",message:{from:b6(V),to:b6(J),value:Q,validAfter:X,validBefore:Y,nonce:G}};if(nJ($))return{signature:await $.signTypedData(M)};else if(KW($)&&$.signTypedData)return{signature:await $.signTypedData(M)};else throw Error("Invalid wallet client provided does not support signTypedData")}function my2(){let $=typeof globalThis.crypto<"u"&&typeof globalThis.crypto.getRandomValues==="function"?globalThis.crypto:wC("crypto").webcrypto;return s1($.getRandomValues(new Uint8Array(32)))}function Ld($,V,J){let Q=my2(),X=BigInt(Math.floor(Date.now()/1000)-600).toString(),Y=BigInt(Math.floor(Date.now()/1000+J.maxTimeoutSeconds)).toString();return{x402Version:V,scheme:J.scheme,network:J.network,payload:{signature:void 0,authorization:{from:$,to:J.payTo,value:J.maxAmountRequired,validAfter:X.toString(),validBefore:Y.toString(),nonce:Q}}}}async function Rd($,V,J){let{signature:Q}=await py2($,J.payload.authorization,V);return{...J,payload:{...J.payload,signature:Q}}}async function ky2($,V,J){let Q=nJ($)?$.account.address:$.address,X=Ld(Q,V,J);return Rd($,J,X)}async function Pd($,V,J){let Q=await ky2($,V,J);return vz(Q)}async function Od($,V,J,Q){let X=await Ey2($,V,J,Q);return vz(X)}async function Ey2($,V,J,Q){let X=await vy2($,J,Q),Y=await Vd(X),G=E$(Y);return{scheme:J.scheme,network:J.network,x402Version:V,payload:{transaction:G}}}async function vy2($,V,J){let Q=oJ(V.network,J?.svmConfig?.rpcUrl),X=await hy2($,V,J),Y=V.extra?.feePayer,G=h9(RE({version:0}),(U)=>Md(1,U),(U)=>PE(Y,U),(U)=>Uw(X,U)),K=await Nd({rpc:Q})(G),{value:D}=await Q.getLatestBlockhash().send();return h9(G,(U)=>OE(ZW({units:K}),U),(U)=>UE(D,U))}async function hy2($,V,J){let{asset:Q,maxAmountRequired:X,payTo:Y}=V,G=oJ(V.network,J?.svmConfig?.rpcUrl),W=await Yd(G,Q),K=W.programAddress;if(K.toString()!==YW.toString()&&K.toString()!==iJ.toString())throw Error("Asset was not created by a known token program");let[D]=await Rz({mint:Q,owner:$.address,tokenProgram:K}),[H]=await Rz({mint:Q,owner:Y,tokenProgram:K});return[Gd({source:D,mint:Q,destination:H,authority:$,amount:BigInt(X),decimals:W.data.decimals},{programAddress:K})]}async function hz($,V,J,Q){if(J.scheme==="exact"){if(cJ.includes(J.network)){let X=_z($)?$.evm:$;if(!Ud(X))throw Error("Invalid evm wallet client provided");return await Pd(X,V,J)}if(u$.includes(J.network)){let X=_z($)?$.svm:$;if(!wd(X))throw Error("Invalid svm wallet client provided");return await Od(X,V,J,Q)}throw Error("Unsupported network")}throw Error("Unsupported scheme")}function dy2($){let V=$.toLowerCase();if(V.includes("insufficient")||V.includes("not enough")||V.includes("balance"))return"Insufficient USDC balance";if(V.includes("simulation")||V.includes("compute unit"))return"Transaction simulation failed";if(V.includes("blockhash")||V.includes("expired"))return"Transaction expired, please retry";if(V.includes("timeout")||V.includes("timed out"))return"Transaction timed out";if(V.includes("rejected")||V.includes("cancelled"))return"Transaction rejected";if(V.includes("network")||V.includes("connection"))return"Network error";let J=($.split(".")[0]??$).slice(0,80);return J.length<$.length?`${J}...`:$}function Fd($){let V=typeof $==="object"&&$!==null?$.accepts:void 0;return(Array.isArray(V)?V:[]).find((Q)=>Q&&Q.scheme==="exact")??null}async function yy2($,V,J){let Q=Z6.encode(V.keypair.secretKey),X=await HW.createSignerFromBase58(Q),Y=await hz(X,1,$,{svmConfig:{rpcUrl:J}}),G=JSON.parse(xy2.from(Y,"base64").toString("utf-8"));return{x402Version:1,scheme:"exact",network:$.network,payload:{transaction:G.payload.transaction}}}async function by2($){$.callbacks.onPaymentSigning?.();let V;try{V=await yy2($.requirement,$.wallet,$.rpcURL)}catch(G){let W=G instanceof Error?G.message:String(G),K=`Payment failed: ${dy2(W)}`;throw $.callbacks.onPaymentError?.(K),Error(`Setu: ${K}`)}let J=LX($.wallet),Q=await $.baseFetch(`${$.baseURL}/v1/topup`,{method:"POST",headers:{"Content-Type":"application/json",...J},body:JSON.stringify({paymentPayload:V,paymentRequirement:$.requirement})}),X=await Q.text().catch(()=>"");if(!Q.ok){if(Q.status===400&&X.toLowerCase().includes("already processed"))return{attempts:1};throw $.callbacks.onPaymentError?.(`Topup failed: ${Q.status}`),Error(`Setu topup failed (${Q.status}): ${X}`)}let Y;try{Y=X?JSON.parse(X):void 0}catch{Y=void 0}if(Y){let G=typeof Y.amount_usd==="string"?parseFloat(Y.amount_usd):Y.amount_usd??Y.amount??0,W=typeof Y.new_balance==="string"?parseFloat(Y.new_balance):Y.new_balance??Y.balance??0;return $.callbacks.onPaymentComplete?.({amountUsd:G,newBalance:W,transactionId:Y.transaction}),{attempts:1,balance:W}}return{attempts:1}}async function Bd($){let V=0;while(V<$.maxAttempts){let J=await by2($);V+=J.attempts;let Q=typeof J.balance==="number"?J.balance:J.balance!=null?Number(J.balance):void 0;if(Q==null||Number.isNaN(Q)||Q>=0)return{attemptsUsed:V}}throw Error(`Setu: payment failed after ${V} additional top-ups.`)}var c7={strategy:"auto",systemBreakpoints:1,messageBreakpoints:1,systemPlacement:"first",messagePlacement:"last",cacheType:"ephemeral"};function gy2($){if(!$)return{...c7};return{strategy:$.strategy??c7.strategy,systemBreakpoints:$.systemBreakpoints??c7.systemBreakpoints,messageBreakpoints:$.messageBreakpoints??c7.messageBreakpoints,systemPlacement:$.systemPlacement??c7.systemPlacement,messagePlacement:$.messagePlacement??c7.messagePlacement,cacheType:$.cacheType??c7.cacheType,transform:$.transform}}function Sd($,V,J,Q){if(J<=0)return!1;switch(Q){case"first":return $<J;case"last":{let X=V-J;return $>=X&&$<V}case"all":return!0}}function ly2($,V,J,Q){let X=0,Y=$.map((W,K)=>Sd(K,$.length,V,J));return{blocks:$.map((W,K)=>{if(W.cache_control)return W;if(X<V&&Y[K])return X++,{...W,cache_control:{type:Q}};return W}),used:X}}function xz($,V){let J=gy2(V);if(J.strategy===!1)return $;if(J.strategy==="manual")return $;if(J.strategy==="custom"&&J.transform)return J.transform($);let Q=0;if($.system&&Array.isArray($.system)){let X=ly2($.system,J.systemBreakpoints,J.systemPlacement,J.cacheType);$.system=X.blocks,Q=X.used}if($.messages&&Array.isArray($.messages)){let X=0,Y=$.messages.length,G=[];for(let W=0;W<Y;W++)if(Sd(W,Y,J.messageBreakpoints,J.messagePlacement))G.push(W);$.messages=$.messages.map((W,K)=>{if(X>=J.messageBreakpoints)return W;if(!G.includes(K))return W;if(Array.isArray(W.content)){let D=W.content,H=D.length-1,U=D.map((z,M)=>{if(z.cache_control)return z;if(M===H&&X<J.messageBreakpoints)return X++,{...z,cache_control:{type:J.cacheType}};return z});return{...W,content:U}}if(typeof W.content==="string"&&X<J.messageBreakpoints)return X++,{...W,content:[{type:"text",text:W.content,cache_control:{type:J.cacheType}}]};return W})}return $}var fy2="https://api.mainnet-beta.solana.com",uy2=3,ay2=20,UW=new Map,_d=new Map;async function iy2($){let V=UW.get($),J=()=>{},X={promise:new Promise((Y)=>{J=Y}),resolve:J};if(UW.set($,X),V)await V.promise;return()=>{if(UW.get($)===X)UW.delete($);J()}}function Cd($,V){let J=$.replace(/\r$/,"");if(!J.startsWith(": setu "))return;try{let Q=JSON.parse(J.slice(7));V({costUsd:parseFloat(Q.cost_usd??"0"),balanceRemaining:parseFloat(Q.balance_remaining??"0"),inputTokens:Q.input_tokens?Number(Q.input_tokens):void 0,outputTokens:Q.output_tokens?Number(Q.output_tokens):void 0})}catch{}}function cy2($,V){if(!V.onBalanceUpdate)return $;let J=$.headers.get("x-balance-remaining"),Q=$.headers.get("x-cost-usd");if(J&&Q)return V.onBalanceUpdate({costUsd:parseFloat(Q),balanceRemaining:parseFloat(J)}),$;if(!$.body)return $;let X=V.onBalanceUpdate,Y="",G=new TextDecoder,W=new TransformStream({transform(K,D){D.enqueue(K),Y+=G.decode(K,{stream:!0});let H=Y.indexOf(`
117
+ `);while(H!==-1){let U=Y.slice(0,H);Y=Y.slice(H+1),Cd(U,X),H=Y.indexOf(`
118
+ `)}},flush(){if(Y.trim())Cd(Y,X)}});return new Response($.body.pipeThrough(W),{status:$.status,statusText:$.statusText,headers:$.headers})}async function ny2($,V){try{let X=V.includes("devnet")?"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",Y=await fetch(V,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"getTokenAccountsByOwner",params:[$,{mint:X},{encoding:"jsonParsed"}]})});if(!Y.ok)return 0;let G=await Y.json(),W=0;for(let K of G.result?.value??[])W+=K.account.data.parsed.info.tokenAmount.uiAmount??0;return W}catch{return 0}}function Id($){let{wallet:V,baseURL:J,rpcURL:Q=fy2,callbacks:X={},cache:Y,payment:G}=$,W=G?.maxRequestAttempts??uy2,K=G?.maxPaymentAttempts??ay2,D=G?.topupApprovalMode??"auto",H=G?.autoPayThresholdUsd??0,U=globalThis.fetch.bind(globalThis);return async(z,M)=>{let L=0;while(L<W){L++;let B=M?.body;if(B&&typeof B==="string")try{let o=JSON.parse(B);if(Y?.promptCacheKey)o.prompt_cache_key=Y.promptCacheKey;if(Y?.promptCacheRetention)o.prompt_cache_retention=Y.promptCacheRetention;let u=Y?.anthropicCaching;if(u!==!1)xz(o,typeof u==="object"?u:void 0);B=JSON.stringify(o)}catch{}let _=new Headers(M?.headers),T=LX(V);_.set("x-wallet-address",T["x-wallet-address"]),_.set("x-wallet-nonce",T["x-wallet-nonce"]),_.set("x-wallet-signature",T["x-wallet-signature"]);let h=await U(z,{...M,body:B,headers:_});if(h.status!==402)return cy2(h,X);let A=await h.json().catch(()=>({})),E=Fd(A);if(!E)throw X.onPaymentError?.("Unsupported payment requirement"),Error("Setu: unsupported payment requirement");if(L>=W)throw X.onPaymentError?.("Payment failed after multiple attempts"),Error("Setu: payment failed after multiple attempts");let y=_d.get(V.walletAddress)??0,l=K-y;if(l<=0)throw X.onPaymentError?.("Maximum payment attempts exceeded"),Error("Setu: payment failed after maximum payment attempts.");let f=await iy2(V.walletAddress);try{let o=parseInt(E.maxAmountRequired,10)/1e6,u=0;if(H>0)u=await ny2(V.walletAddress,Q);let i=H>0&&u>=H,t=async()=>{if(!X.onPaymentApproval)return;let S=await X.onPaymentApproval({amountUsd:o,currentBalance:u});if(S==="cancel")throw X.onPaymentError?.("Payment cancelled by user"),Error("Setu: payment cancelled by user");if(S==="fiat"){let q=Error("Setu: fiat payment selected");throw q.code="SETU_FIAT_SELECTED",q}};if(!i&&D==="approval")await t();X.onPaymentRequired?.(o,u);let g=async()=>{let S=await Bd({requirement:E,wallet:V,rpcURL:Q,baseURL:J,baseFetch:U,maxAttempts:l,callbacks:X}),q=y+S.attemptsUsed;_d.set(V.walletAddress,q)};if(i)try{await g()}catch{await t(),await g()}else await g()}finally{f()}}throw Error("Setu: max attempts exceeded")}}var oy2="https://api.setu.ottocode.io",sy2="https://api.mainnet-beta.solana.com",ry2="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",ty2="4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";function ey2($){return $.endsWith("/")?$.slice(0,-1):$}async function wW($,V){try{let J=Z6.decode($.privateKey),X=K4.fromSecretKey(J).publicKey.toBase58(),Y=ey2(V??oy2),G=Date.now().toString(),W=ZD(G,J),K=await fetch(`${Y}/v1/balance`,{headers:{"x-wallet-address":X,"x-wallet-nonce":G,"x-wallet-signature":W}});if(!K.ok)return null;let D=await K.json();return{walletAddress:D.wallet_address,balance:D.balance_usd,totalSpent:D.total_spent,totalTopups:D.total_topups,requestCount:D.request_count,createdAt:D.created_at,lastRequest:D.last_request}}catch{return null}}async function zW($,V="mainnet"){try{let J=Z6.decode($.privateKey),X=K4.fromSecretKey(J).publicKey.toBase58(),W=await fetch(V==="devnet"?"https://api.devnet.solana.com":sy2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"getTokenAccountsByOwner",params:[X,{mint:V==="devnet"?ty2:ry2},{encoding:"jsonParsed"}]})});if(!W.ok)return null;let K=await W.json(),D=0;for(let H of K.result?.value??[])D+=H.account.data.parsed.info.tokenAmount.uiAmount??0;return{walletAddress:X,usdcBalance:D,network:V}}catch{return null}}function dz(){let $=K4.generate();return{privateKey:Z6.encode($.secretKey),publicKey:$.publicKey.toBase58()}}function jW($){let V=Z6.decode($),J=K4.fromSecretKey(V);return{privateKey:$,publicKey:J.publicKey.toBase58()}}function NW($){try{let V=Z6.decode($);return K4.fromSecretKey(V),!0}catch{return!1}}var md=pd(Yb2(),".openclaw","setu"),a$=pd(md,"wallet.key");function zK0(){return a$}function Gb2(){try{if(!Ad(a$))return null;let $=Td(a$,"utf-8").trim();if(!NW($))return null;return jW($)}catch{return null}}function Wb2($){if(!NW($))throw Error("Invalid Solana private key");let V=jW($);return Xb2(md,{recursive:!0}),Qb2(a$,$,{mode:384}),V}function jK0(){let $=Gb2();if($)return $;let V=dz();return Wb2(V.privateKey),V}function NK0(){try{if(!Ad(a$))return null;return Td(a$,"utf-8").trim()}catch{return null}}async function MK0($){let[V,J]=await Promise.all([wW({privateKey:$}),zW({privateKey:$})]);return{setu:V?{balance:V.balance,totalSpent:V.totalSpent,requestCount:V.requestCount}:null,wallet:J?{usdcBalance:J.usdcBalance,network:J.network}:null}}
119
+ export{UC as j,Id as k,NW as l,zK0 as m,Gb2 as n,Wb2 as o,jK0 as p,NK0 as q,MK0 as r};