bsv2 2.0.22 → 2.0.24

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.
package/dist/bsv2.mjs CHANGED
@@ -1,8 +1,8 @@
1
- var vt=Object.defineProperty;var r=(ne,te)=>vt(ne,"name",{value:te,configurable:!0});var yt={4297:ne=>{ne.exports=te;function te(N){this._tables[0][0][0]||this._precompute();var O,J,D,F=this._tables[0][4],d=this._tables[1],p=N.length,b=1;if(p!==4&&p!==6&&p!==8)throw new Error("invalid aes key size");this._key=[J=N.slice(0),D=[]];for(var T=p;T<4*p+28;T++)O=J[T-1],(T%p===0||p===8&&T%p===4)&&(O=F[O>>>24]<<24^F[O>>16&255]<<16^F[O>>8&255]<<8^F[O&255],T%p===0&&(O=O<<8^O>>>24^b<<24,b=b<<1^(b>>7)*283)),J[T]=J[T-p]^O;for(var k=0;T;k++,T--)O=J[k&3?T:T-4],T<=4||k<4?D[k]=O:D[k]=d[0][F[O>>>24]]^d[1][F[O>>16&255]]^d[2][F[O>>8&255]]^d[3][F[O&255]]}r(te,"AES"),te.prototype={encrypt:function(N){return this._crypt(N,0)},decrypt:function(N){return this._crypt(N,1)},_tables:[[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)]],_precompute:function(){var N=this._tables[0],O=this._tables[1],J=N[4],D=O[4],F,d,p,b=new Uint8Array(256),T=new Uint8Array(256),k,h,a,E,l,w;for(F=0;F<256;F++)T[(b[F]=F<<1^(F>>7)*283)^F]=F;for(d=p=0;!J[d];d^=k||1,p=T[p]||1)for(E=p^p<<1^p<<2^p<<3^p<<4,E=E>>8^E&255^99,J[d]=E,D[E]=d,a=b[h=b[k=b[d]]],w=a*16843009^h*65537^k*257^d*16843008,l=b[E]*257^E*16843008,F=0;F<4;F++)N[F][d]=l=l<<24^l>>>8,O[F][E]=w=w<<24^w>>>8},_crypt:function(N,O){if(N.length!==4)throw new Error("invalid aes block size");var J=this._key[O],D=N[0]^J[0],F=N[O?3:1]^J[1],d=N[2]^J[2],p=N[O?1:3]^J[3],b,T,k,h=J.length/4-2,a,E=4,l=new Uint32Array(4),w=this._tables[O],m=w[0],x=w[1],R=w[2],v=w[3],B=w[4];for(a=0;a<h;a++)b=m[D>>>24]^x[F>>16&255]^R[d>>8&255]^v[p&255]^J[E],T=m[F>>>24]^x[d>>16&255]^R[p>>8&255]^v[D&255]^J[E+1],k=m[d>>>24]^x[p>>16&255]^R[D>>8&255]^v[F&255]^J[E+2],p=m[p>>>24]^x[D>>16&255]^R[F>>8&255]^v[d&255]^J[E+3],E+=4,D=b,F=T,d=k;for(a=0;a<4;a++)l[O?3&-a:a]=B[D>>>24]<<24^B[F>>16&255]<<16^B[d>>8&255]<<8^B[p&255]^J[E++],b=D,D=F,F=d,d=p,p=b;return l}}},8162:ne=>{function te(N){if(N.length>=255)throw new TypeError("Alphabet too long");for(var O=new Uint8Array(256),J=0;J<O.length;J++)O[J]=255;for(var D=0;D<N.length;D++){var F=N.charAt(D),d=F.charCodeAt(0);if(O[d]!==255)throw new TypeError(F+" is ambiguous");O[d]=D}var p=N.length,b=N.charAt(0),T=Math.log(p)/Math.log(256),k=Math.log(256)/Math.log(p);function h(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var w=0,m=0,x=0,R=l.length;x!==R&&l[x]===0;)x++,w++;for(var v=(R-x)*k+1>>>0,B=new Uint8Array(v);x!==R;){for(var A=l[x],L=0,V=v-1;(A!==0||L<m)&&V!==-1;V--,L++)A+=256*B[V]>>>0,B[V]=A%p>>>0,A=A/p>>>0;if(A!==0)throw new Error("Non-zero carry");m=L,x++}for(var G=v-m;G!==v&&B[G]===0;)G++;for(var X=b.repeat(w);G<v;++G)X+=N.charAt(B[G]);return X}r(h,"encode");function a(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;for(var w=0,m=0,x=0;l[w]===b;)m++,w++;for(var R=(l.length-w)*T+1>>>0,v=new Uint8Array(R);l[w];){var B=O[l.charCodeAt(w)];if(B===255)return;for(var A=0,L=R-1;(B!==0||A<x)&&L!==-1;L--,A++)B+=p*v[L]>>>0,v[L]=B%256>>>0,B=B/256>>>0;if(B!==0)throw new Error("Non-zero carry");x=A,w++}for(var V=R-x;V!==R&&v[V]===0;)V++;for(var G=new Uint8Array(m+(R-V)),X=m;V!==R;)G[X++]=v[V++];return G}r(a,"decodeUnsafe");function E(l){var w=a(l);if(w)return w;throw new Error("Non-base"+p+" character")}return r(E,"decode"),{encode:h,decodeUnsafe:a,decode:E}}r(te,"base"),ne.exports=te},9742:(ne,te)=>{te.byteLength=b,te.toByteArray=k,te.fromByteArray=E;for(var N=[],O=[],J=typeof Uint8Array<"u"?Uint8Array:Array,D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=0,d=D.length;F<d;++F)N[F]=D[F],O[D.charCodeAt(F)]=F;O[45]=62,O[95]=63;function p(l){var w=l.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=l.indexOf("=");m===-1&&(m=w);var x=m===w?0:4-m%4;return[m,x]}r(p,"getLens");function b(l){var w=p(l),m=w[0],x=w[1];return(m+x)*3/4-x}r(b,"byteLength");function T(l,w,m){return(w+m)*3/4-m}r(T,"_byteLength");function k(l){var w,m=p(l),x=m[0],R=m[1],v=new J(T(l,x,R)),B=0,A=R>0?x-4:x,L;for(L=0;L<A;L+=4)w=O[l.charCodeAt(L)]<<18|O[l.charCodeAt(L+1)]<<12|O[l.charCodeAt(L+2)]<<6|O[l.charCodeAt(L+3)],v[B++]=w>>16&255,v[B++]=w>>8&255,v[B++]=w&255;return R===2&&(w=O[l.charCodeAt(L)]<<2|O[l.charCodeAt(L+1)]>>4,v[B++]=w&255),R===1&&(w=O[l.charCodeAt(L)]<<10|O[l.charCodeAt(L+1)]<<4|O[l.charCodeAt(L+2)]>>2,v[B++]=w>>8&255,v[B++]=w&255),v}r(k,"toByteArray");function h(l){return N[l>>18&63]+N[l>>12&63]+N[l>>6&63]+N[l&63]}r(h,"tripletToBase64");function a(l,w,m){for(var x,R=[],v=w;v<m;v+=3)x=(l[v]<<16&16711680)+(l[v+1]<<8&65280)+(l[v+2]&255),R.push(h(x));return R.join("")}r(a,"encodeChunk");function E(l){for(var w,m=l.length,x=m%3,R=[],v=16383,B=0,A=m-x;B<A;B+=v)R.push(a(l,B,B+v>A?A:B+v));return x===1?(w=l[m-1],R.push(N[w>>2]+N[w<<4&63]+"==")):x===2&&(w=(l[m-2]<<8)+l[m-1],R.push(N[w>>10]+N[w>>4&63]+N[w<<2&63]+"=")),R.join("")}r(E,"fromByteArray")},4666:(ne,te,N)=>{var O=te;O.version=N(2726).i8,O.utils=N(7359),O.rand=N(9931),O.curve=N(5104),O.curves=N(4626),O.ec=N(5630)},8015:(ne,te,N)=>{var O=N(3550),J=N(7359),D=J.getNAF,F=J.getJSF,d=J.assert;function p(T,k){this.type=T,this.p=new O(k.p,16),this.red=k.prime?O.red(k.prime):O.mont(this.p),this.zero=new O(0).toRed(this.red),this.one=new O(1).toRed(this.red),this.two=new O(2).toRed(this.red),this.n=k.n&&new O(k.n,16),this.g=k.g&&this.pointFromJSON(k.g,k.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}r(p,"BaseCurve"),ne.exports=p,p.prototype.point=r(function(){throw new Error("Not implemented")},"point"),p.prototype.validate=r(function(){throw new Error("Not implemented")},"validate"),p.prototype._fixedNafMul=r(function(k,h){d(k.precomputed);var a=k._getDoubles(),E=D(h,1,this._bitLength),l=(1<<a.step+1)-(a.step%2===0?2:1);l/=3;for(var w=[],m=0;m<E.length;m+=a.step){for(var x=0,h=m+a.step-1;h>=m;h--)x=(x<<1)+E[h];w.push(x)}for(var R=this.jpoint(null,null,null),v=this.jpoint(null,null,null),B=l;B>0;B--){for(var m=0;m<w.length;m++){var x=w[m];x===B?v=v.mixedAdd(a.points[m]):x===-B&&(v=v.mixedAdd(a.points[m].neg()))}R=R.add(v)}return R.toP()},"_fixedNafMul"),p.prototype._wnafMul=r(function(k,h){var a=4,E=k._getNAFPoints(a);a=E.wnd;for(var l=E.points,w=D(h,a,this._bitLength),m=this.jpoint(null,null,null),x=w.length-1;x>=0;x--){for(var h=0;x>=0&&w[x]===0;x--)h++;if(x>=0&&h++,m=m.dblp(h),x<0)break;var R=w[x];d(R!==0),k.type==="affine"?R>0?m=m.mixedAdd(l[R-1>>1]):m=m.mixedAdd(l[-R-1>>1].neg()):R>0?m=m.add(l[R-1>>1]):m=m.add(l[-R-1>>1].neg())}return k.type==="affine"?m.toP():m},"_wnafMul"),p.prototype._wnafMulAdd=r(function(k,h,a,E,l){for(var w=this._wnafT1,m=this._wnafT2,x=this._wnafT3,R=0,v=0;v<E;v++){var B=h[v],A=B._getNAFPoints(k);w[v]=A.wnd,m[v]=A.points}for(var v=E-1;v>=1;v-=2){var L=v-1,V=v;if(w[L]!==1||w[V]!==1){x[L]=D(a[L],w[L],this._bitLength),x[V]=D(a[V],w[V],this._bitLength),R=Math.max(x[L].length,R),R=Math.max(x[V].length,R);continue}var G=[h[L],null,null,h[V]];h[L].y.cmp(h[V].y)===0?(G[1]=h[L].add(h[V]),G[2]=h[L].toJ().mixedAdd(h[V].neg())):h[L].y.cmp(h[V].y.redNeg())===0?(G[1]=h[L].toJ().mixedAdd(h[V]),G[2]=h[L].add(h[V].neg())):(G[1]=h[L].toJ().mixedAdd(h[V]),G[2]=h[L].toJ().mixedAdd(h[V].neg()));var X=[-3,-1,-5,-7,0,7,5,1,3],fe=F(a[L],a[V]);R=Math.max(fe[0].length,R),x[L]=new Array(R),x[V]=new Array(R);for(var ae=0;ae<R;ae++){var me=fe[0][ae]|0,ye=fe[1][ae]|0;x[L][ae]=X[(me+1)*3+(ye+1)],x[V][ae]=0,m[L]=G}}for(var ee=this.jpoint(null,null,null),S=this._wnafT4,v=R;v>=0;v--){for(var i=0;v>=0;){for(var f=!0,ae=0;ae<E;ae++)S[ae]=x[ae][v]|0,S[ae]!==0&&(f=!1);if(!f)break;i++,v--}if(v>=0&&i++,ee=ee.dblp(i),v<0)break;for(var ae=0;ae<E;ae++){var s=S[ae],B;s!==0&&(s>0?B=m[ae][s-1>>1]:s<0&&(B=m[ae][-s-1>>1].neg()),B.type==="affine"?ee=ee.mixedAdd(B):ee=ee.add(B))}}for(var v=0;v<E;v++)m[v]=null;return l?ee:ee.toP()},"_wnafMulAdd");function b(T,k){this.curve=T,this.type=k,this.precomputed=null}r(b,"BasePoint"),p.BasePoint=b,b.prototype.eq=r(function(){throw new Error("Not implemented")},"eq"),b.prototype.validate=r(function(){return this.curve.validate(this)},"validate"),p.prototype.decodePoint=r(function(k,h){k=J.toArray(k,h);var a=this.p.byteLength();if((k[0]===4||k[0]===6||k[0]===7)&&k.length-1===2*a){k[0]===6?d(k[k.length-1]%2===0):k[0]===7&&d(k[k.length-1]%2===1);var E=this.point(k.slice(1,1+a),k.slice(1+a,1+2*a));return E}else if((k[0]===2||k[0]===3)&&k.length-1===a)return this.pointFromX(k.slice(1,1+a),k[0]===3);throw new Error("Unknown point format")},"decodePoint"),b.prototype.encodeCompressed=r(function(k){return this.encode(k,!0)},"encodeCompressed"),b.prototype._encode=r(function(k){var h=this.curve.p.byteLength(),a=this.getX().toArray("be",h);return k?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",h))},"_encode"),b.prototype.encode=r(function(k,h){return J.encode(this._encode(h),k)},"encode"),b.prototype.precompute=r(function(k){if(this.precomputed)return this;var h={doubles:null,naf:null,beta:null};return h.naf=this._getNAFPoints(8),h.doubles=this._getDoubles(4,k),h.beta=this._getBeta(),this.precomputed=h,this},"precompute"),b.prototype._hasDoubles=r(function(k){if(!this.precomputed)return!1;var h=this.precomputed.doubles;return h?h.points.length>=Math.ceil((k.bitLength()+1)/h.step):!1},"_hasDoubles"),b.prototype._getDoubles=r(function(k,h){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],E=this,l=0;l<h;l+=k){for(var w=0;w<k;w++)E=E.dbl();a.push(E)}return{step:k,points:a}},"_getDoubles"),b.prototype._getNAFPoints=r(function(k){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var h=[this],a=(1<<k)-1,E=a===1?null:this.dbl(),l=1;l<a;l++)h[l]=h[l-1].add(E);return{wnd:k,points:h}},"_getNAFPoints"),b.prototype._getBeta=r(function(){return null},"_getBeta"),b.prototype.dblp=r(function(k){for(var h=this,a=0;a<k;a++)h=h.dbl();return h},"dblp")},5104:(ne,te,N)=>{var O=te;O.base=N(8015),O.short=N(8505)},8505:(ne,te,N)=>{var O=N(7359),J=N(3550),D=N(5717),F=N(8015),d=O.assert;function p(k){F.call(this,"short",k),this.a=new J(k.a,16).toRed(this.red),this.b=new J(k.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(k),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r(p,"ShortCurve"),D(p,F),ne.exports=p,p.prototype._getEndomorphism=r(function(h){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var a,E;if(h.beta)a=new J(h.beta,16).toRed(this.red);else{var l=this._getEndoRoots(this.p);a=l[0].cmp(l[1])<0?l[0]:l[1],a=a.toRed(this.red)}if(h.lambda)E=new J(h.lambda,16);else{var w=this._getEndoRoots(this.n);this.g.mul(w[0]).x.cmp(this.g.x.redMul(a))===0?E=w[0]:(E=w[1],d(this.g.mul(E).x.cmp(this.g.x.redMul(a))===0))}var m;return h.basis?m=h.basis.map(function(x){return{a:new J(x.a,16),b:new J(x.b,16)}}):m=this._getEndoBasis(E),{beta:a,lambda:E,basis:m}}},"_getEndomorphism"),p.prototype._getEndoRoots=r(function(h){var a=h===this.p?this.red:J.mont(h),E=new J(2).toRed(a).redInvm(),l=E.redNeg(),w=new J(3).toRed(a).redNeg().redSqrt().redMul(E),m=l.redAdd(w).fromRed(),x=l.redSub(w).fromRed();return[m,x]},"_getEndoRoots"),p.prototype._getEndoBasis=r(function(h){for(var a=this.n.ushrn(Math.floor(this.n.bitLength()/2)),E=h,l=this.n.clone(),w=new J(1),m=new J(0),x=new J(0),R=new J(1),v,B,A,L,V,G,X,fe=0,ae,me;E.cmpn(0)!==0;){var ye=l.div(E);ae=l.sub(ye.mul(E)),me=x.sub(ye.mul(w));var ee=R.sub(ye.mul(m));if(!A&&ae.cmp(a)<0)v=X.neg(),B=w,A=ae.neg(),L=me;else if(A&&++fe===2)break;X=ae,l=E,E=ae,x=w,w=me,R=m,m=ee}V=ae.neg(),G=me;var S=A.sqr().add(L.sqr()),i=V.sqr().add(G.sqr());return i.cmp(S)>=0&&(V=v,G=B),A.negative&&(A=A.neg(),L=L.neg()),V.negative&&(V=V.neg(),G=G.neg()),[{a:A,b:L},{a:V,b:G}]},"_getEndoBasis"),p.prototype._endoSplit=r(function(h){var a=this.endo.basis,E=a[0],l=a[1],w=l.b.mul(h).divRound(this.n),m=E.b.neg().mul(h).divRound(this.n),x=w.mul(E.a),R=m.mul(l.a),v=w.mul(E.b),B=m.mul(l.b),A=h.sub(x).sub(R),L=v.add(B).neg();return{k1:A,k2:L}},"_endoSplit"),p.prototype.pointFromX=r(function(h,a){h=new J(h,16),h.red||(h=h.toRed(this.red));var E=h.redSqr().redMul(h).redIAdd(h.redMul(this.a)).redIAdd(this.b),l=E.redSqrt();if(l.redSqr().redSub(E).cmp(this.zero)!==0)throw new Error("invalid point");var w=l.fromRed().isOdd();return(a&&!w||!a&&w)&&(l=l.redNeg()),this.point(h,l)},"pointFromX"),p.prototype.validate=r(function(h){if(h.inf)return!0;var a=h.x,E=h.y,l=this.a.redMul(a),w=a.redSqr().redMul(a).redIAdd(l).redIAdd(this.b);return E.redSqr().redISub(w).cmpn(0)===0},"validate"),p.prototype._endoWnafMulAdd=r(function(h,a,E){for(var l=this._endoWnafT1,w=this._endoWnafT2,m=0;m<h.length;m++){var x=this._endoSplit(a[m]),R=h[m],v=R._getBeta();x.k1.negative&&(x.k1.ineg(),R=R.neg(!0)),x.k2.negative&&(x.k2.ineg(),v=v.neg(!0)),l[m*2]=R,l[m*2+1]=v,w[m*2]=x.k1,w[m*2+1]=x.k2}for(var B=this._wnafMulAdd(1,l,w,m*2,E),A=0;A<m*2;A++)l[A]=null,w[A]=null;return B},"_endoWnafMulAdd");function b(k,h,a,E){F.BasePoint.call(this,k,"affine"),h===null&&a===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new J(h,16),this.y=new J(a,16),E&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r(b,"Point"),D(b,F.BasePoint),p.prototype.point=r(function(h,a,E){return new b(this,h,a,E)},"point"),p.prototype.pointFromJSON=r(function(h,a){return b.fromJSON(this,h,a)},"pointFromJSON"),b.prototype._getBeta=r(function(){if(this.curve.endo){var h=this.precomputed;if(h&&h.beta)return h.beta;var a=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(h){var E=this.curve,l=r(function(w){return E.point(w.x.redMul(E.endo.beta),w.y)},"endoMul");h.beta=a,a.precomputed={beta:null,naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(l)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(l)}}}return a}},"_getBeta"),b.prototype.toJSON=r(function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},"toJSON"),b.fromJSON=r(function(h,a,E){typeof a=="string"&&(a=JSON.parse(a));var l=h.point(a[0],a[1],E);if(!a[2])return l;function w(x){return h.point(x[0],x[1],E)}r(w,"obj2point");var m=a[2];return l.precomputed={beta:null,doubles:m.doubles&&{step:m.doubles.step,points:[l].concat(m.doubles.points.map(w))},naf:m.naf&&{wnd:m.naf.wnd,points:[l].concat(m.naf.points.map(w))}},l},"fromJSON"),b.prototype.inspect=r(function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},"inspect"),b.prototype.isInfinity=r(function(){return this.inf},"isInfinity"),b.prototype.add=r(function(h){if(this.inf)return h;if(h.inf)return this;if(this.eq(h))return this.dbl();if(this.neg().eq(h))return this.curve.point(null,null);if(this.x.cmp(h.x)===0)return this.curve.point(null,null);var a=this.y.redSub(h.y);a.cmpn(0)!==0&&(a=a.redMul(this.x.redSub(h.x).redInvm()));var E=a.redSqr().redISub(this.x).redISub(h.x),l=a.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,l)},"add"),b.prototype.dbl=r(function(){if(this.inf)return this;var h=this.y.redAdd(this.y);if(h.cmpn(0)===0)return this.curve.point(null,null);var a=this.curve.a,E=this.x.redSqr(),l=h.redInvm(),w=E.redAdd(E).redIAdd(E).redIAdd(a).redMul(l),m=w.redSqr().redISub(this.x.redAdd(this.x)),x=w.redMul(this.x.redSub(m)).redISub(this.y);return this.curve.point(m,x)},"dbl"),b.prototype.getX=r(function(){return this.x.fromRed()},"getX"),b.prototype.getY=r(function(){return this.y.fromRed()},"getY"),b.prototype.mul=r(function(h){return h=new J(h,16),this.isInfinity()?this:this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve.endo?this.curve._endoWnafMulAdd([this],[h]):this.curve._wnafMul(this,h)},"mul"),b.prototype.mulAdd=r(function(h,a,E){var l=[this,a],w=[h,E];return this.curve.endo?this.curve._endoWnafMulAdd(l,w):this.curve._wnafMulAdd(1,l,w,2)},"mulAdd"),b.prototype.jmulAdd=r(function(h,a,E){var l=[this,a],w=[h,E];return this.curve.endo?this.curve._endoWnafMulAdd(l,w,!0):this.curve._wnafMulAdd(1,l,w,2,!0)},"jmulAdd"),b.prototype.eq=r(function(h){return this===h||this.inf===h.inf&&(this.inf||this.x.cmp(h.x)===0&&this.y.cmp(h.y)===0)},"eq"),b.prototype.neg=r(function(h){if(this.inf)return this;var a=this.curve.point(this.x,this.y.redNeg());if(h&&this.precomputed){var E=this.precomputed,l=r(function(w){return w.neg()},"negate");a.precomputed={naf:E.naf&&{wnd:E.naf.wnd,points:E.naf.points.map(l)},doubles:E.doubles&&{step:E.doubles.step,points:E.doubles.points.map(l)}}}return a},"neg"),b.prototype.toJ=r(function(){if(this.inf)return this.curve.jpoint(null,null,null);var h=this.curve.jpoint(this.x,this.y,this.curve.one);return h},"toJ");function T(k,h,a,E){F.BasePoint.call(this,k,"jacobian"),h===null&&a===null&&E===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new J(0)):(this.x=new J(h,16),this.y=new J(a,16),this.z=new J(E,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}r(T,"JPoint"),D(T,F.BasePoint),p.prototype.jpoint=r(function(h,a,E){return new T(this,h,a,E)},"jpoint"),T.prototype.toP=r(function(){if(this.isInfinity())return this.curve.point(null,null);var h=this.z.redInvm(),a=h.redSqr(),E=this.x.redMul(a),l=this.y.redMul(a).redMul(h);return this.curve.point(E,l)},"toP"),T.prototype.neg=r(function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},"neg"),T.prototype.add=r(function(h){if(this.isInfinity())return h;if(h.isInfinity())return this;var a=h.z.redSqr(),E=this.z.redSqr(),l=this.x.redMul(a),w=h.x.redMul(E),m=this.y.redMul(a.redMul(h.z)),x=h.y.redMul(E.redMul(this.z)),R=l.redSub(w),v=m.redSub(x);if(R.cmpn(0)===0)return v.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var B=R.redSqr(),A=B.redMul(R),L=l.redMul(B),V=v.redSqr().redIAdd(A).redISub(L).redISub(L),G=v.redMul(L.redISub(V)).redISub(m.redMul(A)),X=this.z.redMul(h.z).redMul(R);return this.curve.jpoint(V,G,X)},"add"),T.prototype.mixedAdd=r(function(h){if(this.isInfinity())return h.toJ();if(h.isInfinity())return this;var a=this.z.redSqr(),E=this.x,l=h.x.redMul(a),w=this.y,m=h.y.redMul(a).redMul(this.z),x=E.redSub(l),R=w.redSub(m);if(x.cmpn(0)===0)return R.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var v=x.redSqr(),B=v.redMul(x),A=E.redMul(v),L=R.redSqr().redIAdd(B).redISub(A).redISub(A),V=R.redMul(A.redISub(L)).redISub(w.redMul(B)),G=this.z.redMul(x);return this.curve.jpoint(L,V,G)},"mixedAdd"),T.prototype.dblp=r(function(h){if(h===0)return this;if(this.isInfinity())return this;if(!h)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var a=this,E=0;E<h;E++)a=a.dbl();return a}for(var l=this.curve.a,w=this.curve.tinv,m=this.x,x=this.y,R=this.z,v=R.redSqr().redSqr(),B=x.redAdd(x),E=0;E<h;E++){var A=m.redSqr(),L=B.redSqr(),V=L.redSqr(),G=A.redAdd(A).redIAdd(A).redIAdd(l.redMul(v)),X=m.redMul(L),fe=G.redSqr().redISub(X.redAdd(X)),ae=X.redISub(fe),me=G.redMul(ae);me=me.redIAdd(me).redISub(V);var ye=B.redMul(R);E+1<h&&(v=v.redMul(V)),m=fe,R=ye,B=me}return this.curve.jpoint(m,B.redMul(w),R)},"dblp"),T.prototype.dbl=r(function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},"dbl"),T.prototype._zeroDbl=r(function(){var h,a,E;if(this.zOne){var l=this.x.redSqr(),w=this.y.redSqr(),m=w.redSqr(),x=this.x.redAdd(w).redSqr().redISub(l).redISub(m);x=x.redIAdd(x);var R=l.redAdd(l).redIAdd(l),v=R.redSqr().redISub(x).redISub(x),B=m.redIAdd(m);B=B.redIAdd(B),B=B.redIAdd(B),h=v,a=R.redMul(x.redISub(v)).redISub(B),E=this.y.redAdd(this.y)}else{var A=this.x.redSqr(),L=this.y.redSqr(),V=L.redSqr(),G=this.x.redAdd(L).redSqr().redISub(A).redISub(V);G=G.redIAdd(G);var X=A.redAdd(A).redIAdd(A),fe=X.redSqr(),ae=V.redIAdd(V);ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),h=fe.redISub(G).redISub(G),a=X.redMul(G.redISub(h)).redISub(ae),E=this.y.redMul(this.z),E=E.redIAdd(E)}return this.curve.jpoint(h,a,E)},"_zeroDbl"),T.prototype._threeDbl=r(function(){var h,a,E;if(this.zOne){var l=this.x.redSqr(),w=this.y.redSqr(),m=w.redSqr(),x=this.x.redAdd(w).redSqr().redISub(l).redISub(m);x=x.redIAdd(x);var R=l.redAdd(l).redIAdd(l).redIAdd(this.curve.a),v=R.redSqr().redISub(x).redISub(x);h=v;var B=m.redIAdd(m);B=B.redIAdd(B),B=B.redIAdd(B),a=R.redMul(x.redISub(v)).redISub(B),E=this.y.redAdd(this.y)}else{var A=this.z.redSqr(),L=this.y.redSqr(),V=this.x.redMul(L),G=this.x.redSub(A).redMul(this.x.redAdd(A));G=G.redAdd(G).redIAdd(G);var X=V.redIAdd(V);X=X.redIAdd(X);var fe=X.redAdd(X);h=G.redSqr().redISub(fe),E=this.y.redAdd(this.z).redSqr().redISub(L).redISub(A);var ae=L.redSqr();ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),a=G.redMul(X.redISub(h)).redISub(ae)}return this.curve.jpoint(h,a,E)},"_threeDbl"),T.prototype._dbl=r(function(){var h=this.curve.a,a=this.x,E=this.y,l=this.z,w=l.redSqr().redSqr(),m=a.redSqr(),x=E.redSqr(),R=m.redAdd(m).redIAdd(m).redIAdd(h.redMul(w)),v=a.redAdd(a);v=v.redIAdd(v);var B=v.redMul(x),A=R.redSqr().redISub(B.redAdd(B)),L=B.redISub(A),V=x.redSqr();V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V);var G=R.redMul(L).redISub(V),X=E.redAdd(E).redMul(l);return this.curve.jpoint(A,G,X)},"_dbl"),T.prototype.trpl=r(function(){if(!this.curve.zeroA)return this.dbl().add(this);var h=this.x.redSqr(),a=this.y.redSqr(),E=this.z.redSqr(),l=a.redSqr(),w=h.redAdd(h).redIAdd(h),m=w.redSqr(),x=this.x.redAdd(a).redSqr().redISub(h).redISub(l);x=x.redIAdd(x),x=x.redAdd(x).redIAdd(x),x=x.redISub(m);var R=x.redSqr(),v=l.redIAdd(l);v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v);var B=w.redIAdd(x).redSqr().redISub(m).redISub(R).redISub(v),A=a.redMul(B);A=A.redIAdd(A),A=A.redIAdd(A);var L=this.x.redMul(R).redISub(A);L=L.redIAdd(L),L=L.redIAdd(L);var V=this.y.redMul(B.redMul(v.redISub(B)).redISub(x.redMul(R)));V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V);var G=this.z.redAdd(x).redSqr().redISub(E).redISub(R);return this.curve.jpoint(L,V,G)},"trpl"),T.prototype.mul=r(function(h,a){return h=new J(h,a),this.curve._wnafMul(this,h)},"mul"),T.prototype.eq=r(function(h){if(h.type==="affine")return this.eq(h.toJ());if(this===h)return!0;var a=this.z.redSqr(),E=h.z.redSqr();if(this.x.redMul(E).redISub(h.x.redMul(a)).cmpn(0)!==0)return!1;var l=a.redMul(this.z),w=E.redMul(h.z);return this.y.redMul(w).redISub(h.y.redMul(l)).cmpn(0)===0},"eq"),T.prototype.eqXToP=r(function(h){var a=this.z.redSqr(),E=h.toRed(this.curve.red).redMul(a);if(this.x.cmp(E)===0)return!0;for(var l=h.clone(),w=this.curve.redN.redMul(a);;){if(l.iadd(this.curve.n),l.cmp(this.curve.p)>=0)return!1;if(E.redIAdd(w),this.x.cmp(E)===0)return!0}},"eqXToP"),T.prototype.inspect=r(function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},"inspect"),T.prototype.isInfinity=r(function(){return this.z.cmpn(0)===0},"isInfinity")},4626:(ne,te,N)=>{var O=te,J=N(3715),D=N(5104),F=N(7359),d=F.assert;function p(k){if(k.type!=="short")throw new Error("invalid curve type");this.curve=new D.short(k),this.g=this.curve.g,this.n=this.curve.n,this.hash=k.hash,d(this.g.validate(),"Invalid curve"),d(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r(p,"PresetCurve"),O.PresetCurve=p;function b(k,h){Object.defineProperty(O,k,{configurable:!0,enumerable:!0,get:function(){var a=new p(h);return Object.defineProperty(O,k,{configurable:!0,enumerable:!0,value:a}),a}})}r(b,"defineCurve");var T;try{T=N(2059)}catch{T=void 0}b("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:J.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",T]})},5630:(ne,te,N)=>{var O=N(3550),J=N(2156),D=N(7359),F=N(4626),d=N(9931),p=D.assert,b=N(1119),T=N(1911);function k(h){if(!(this instanceof k))return new k(h);typeof h=="string"&&(p(F.hasOwnProperty(h),"Unknown curve "+h),h=F[h]),h instanceof F.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}r(k,"EC"),ne.exports=k,k.prototype.keyPair=r(function(a){return new b(this,a)},"keyPair"),k.prototype.keyFromPrivate=r(function(a,E){return b.fromPrivate(this,a,E)},"keyFromPrivate"),k.prototype.keyFromPublic=r(function(a,E){return b.fromPublic(this,a,E)},"keyFromPublic"),k.prototype.genKeyPair=r(function(a){a||(a={});var E=new J({hash:this.hash,pers:a.pers,persEnc:a.persEnc||"utf8",entropy:a.entropy||d(this.hash.hmacStrength),entropyEnc:a.entropy&&a.entropyEnc||"utf8",nonce:this.n.toArray()}),l=this.n.byteLength(),w=this.n.sub(new O(2));do{var m=new O(E.generate(l));if(!(m.cmp(w)>0))return m.iaddn(1),this.keyFromPrivate(m)}while(!0)},"genKeyPair"),k.prototype._truncateToN=r(function(a,E){var l=a.byteLength()*8-this.n.bitLength();return l>0&&(a=a.ushrn(l)),!E&&a.cmp(this.n)>=0?a.sub(this.n):a},"truncateToN"),k.prototype.sign=r(function(a,E,l,w){typeof l=="object"&&(w=l,l=null),w||(w={}),E=this.keyFromPrivate(E,l),a=this._truncateToN(new O(a,16));for(var m=this.n.byteLength(),x=E.getPrivate().toArray("be",m),R=a.toArray("be",m),v=new J({hash:this.hash,entropy:x,nonce:R,pers:w.pers,persEnc:w.persEnc||"utf8"}),B=this.n.sub(new O(1)),A=0;;A++){var L=w.k?w.k(A):new O(v.generate(this.n.byteLength()));if(L=this._truncateToN(L,!0),!(L.cmpn(1)<=0||L.cmp(B)>=0)){var V=this.g.mul(L);if(!V.isInfinity()){var G=V.getX(),X=G.umod(this.n);if(X.cmpn(0)!==0){var fe=L.invm(this.n).mul(X.mul(E.getPrivate()).iadd(a));if(fe=fe.umod(this.n),fe.cmpn(0)!==0){var ae=(V.getY().isOdd()?1:0)|(G.cmp(X)!==0?2:0);return w.canonical&&fe.cmp(this.nh)>0&&(fe=this.n.sub(fe),ae^=1),new T({r:X,s:fe,recoveryParam:ae})}}}}}},"sign"),k.prototype.verify=r(function(a,E,l,w){a=this._truncateToN(new O(a,16)),l=this.keyFromPublic(l,w),E=new T(E,"hex");var m=E.r,x=E.s;if(m.cmpn(1)<0||m.cmp(this.n)>=0||x.cmpn(1)<0||x.cmp(this.n)>=0)return!1;var R=x.invm(this.n),v=R.mul(a).umod(this.n),B=R.mul(m).umod(this.n);if(!this.curve._maxwellTrick){var A=this.g.mulAdd(v,l.getPublic(),B);return A.isInfinity()?!1:A.getX().umod(this.n).cmp(m)===0}var A=this.g.jmulAdd(v,l.getPublic(),B);return A.isInfinity()?!1:A.eqXToP(m)},"verify"),k.prototype.recoverPubKey=function(h,a,E,l){p((3&E)===E,"The recovery param is more than two bits"),a=new T(a,l);var w=this.n,m=new O(h),x=a.r,R=a.s,v=E&1,B=E>>1;if(x.cmp(this.curve.p.umod(this.curve.n))>=0&&B)throw new Error("Unable to find sencond key candinate");B?x=this.curve.pointFromX(x.add(this.curve.n),v):x=this.curve.pointFromX(x,v);var A=a.r.invm(w),L=w.sub(m).mul(A).umod(w),V=R.mul(A).umod(w);return this.g.mulAdd(L,x,V)},k.prototype.getKeyRecoveryParam=function(h,a,E,l){if(a=new T(a,l),a.recoveryParam!==null)return a.recoveryParam;for(var w=0;w<4;w++){var m;try{m=this.recoverPubKey(h,a,w)}catch{continue}if(m.eq(E))return w}throw new Error("Unable to find valid recovery factor")}},1119:(ne,te,N)=>{var O=N(3550),J=N(7359),D=J.assert;function F(d,p){this.ec=d,this.priv=null,this.pub=null,p.priv&&this._importPrivate(p.priv,p.privEnc),p.pub&&this._importPublic(p.pub,p.pubEnc)}r(F,"KeyPair"),ne.exports=F,F.fromPublic=r(function(p,b,T){return b instanceof F?b:new F(p,{pub:b,pubEnc:T})},"fromPublic"),F.fromPrivate=r(function(p,b,T){return b instanceof F?b:new F(p,{priv:b,privEnc:T})},"fromPrivate"),F.prototype.validate=r(function(){var p=this.getPublic();return p.isInfinity()?{result:!1,reason:"Invalid public key"}:p.validate()?p.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},"validate"),F.prototype.getPublic=r(function(p,b){return typeof p=="string"&&(b=p,p=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),b?this.pub.encode(b,p):this.pub},"getPublic"),F.prototype.getPrivate=r(function(p){return p==="hex"?this.priv.toString(16,2):this.priv},"getPrivate"),F.prototype._importPrivate=r(function(p,b){this.priv=new O(p,b||16),this.priv=this.priv.umod(this.ec.curve.n)},"_importPrivate"),F.prototype._importPublic=r(function(p,b){if(p.x||p.y){this.ec.curve.type==="mont"?D(p.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&D(p.x&&p.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(p.x,p.y);return}this.pub=this.ec.curve.decodePoint(p,b)},"_importPublic"),F.prototype.derive=r(function(p){return p.mul(this.priv).getX()},"derive"),F.prototype.sign=r(function(p,b,T){return this.ec.sign(p,this,b,T)},"sign"),F.prototype.verify=r(function(p,b){return this.ec.verify(p,b,this)},"verify"),F.prototype.inspect=r(function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},"inspect")},1911:(ne,te,N)=>{var O=N(3550),J=N(7359),D=J.assert;function F(k,h){if(k instanceof F)return k;this._importDER(k,h)||(D(k.r&&k.s,"Signature without r or s"),this.r=new O(k.r,16),this.s=new O(k.s,16),k.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=k.recoveryParam)}r(F,"Signature"),ne.exports=F;function d(){this.place=0}r(d,"Position");function p(k,h){var a=k[h.place++];if(!(a&128))return a;for(var E=a&15,l=0,w=0,m=h.place;w<E;w++,m++)l<<=8,l|=k[m];return h.place=m,l}r(p,"getLength");function b(k){for(var h=0,a=k.length-1;!k[h]&&!(k[h+1]&128)&&h<a;)h++;return h===0?k:k.slice(h)}r(b,"rmPadding"),F.prototype._importDER=r(function(h,a){h=J.toArray(h,a);var E=new d;if(h[E.place++]!==48)return!1;var l=p(h,E);if(l+E.place!==h.length||h[E.place++]!==2)return!1;var w=p(h,E),m=h.slice(E.place,w+E.place);if(E.place+=w,h[E.place++]!==2)return!1;var x=p(h,E);if(h.length!==x+E.place)return!1;var R=h.slice(E.place,x+E.place);return m[0]===0&&m[1]&128&&(m=m.slice(1)),R[0]===0&&R[1]&128&&(R=R.slice(1)),this.r=new O(m),this.s=new O(R),this.recoveryParam=null,!0},"_importDER");function T(k,h){if(h<128){k.push(h);return}var a=1+(Math.log(h)/Math.LN2>>>3);for(k.push(a|128);--a;)k.push(h>>>(a<<3)&255);k.push(h)}r(T,"constructLength"),F.prototype.toDER=r(function(h){var a=this.r.toArray(),E=this.s.toArray();for(a[0]&128&&(a=[0].concat(a)),E[0]&128&&(E=[0].concat(E)),a=b(a),E=b(E);!E[0]&&!(E[1]&128);)E=E.slice(1);var l=[2];T(l,a.length),l=l.concat(a),l.push(2),T(l,E.length);var w=l.concat(E),m=[48];return T(m,w.length),m=m.concat(w),J.encode(m,h)},"toDER")},2059:ne=>{ne.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},7359:(ne,te,N)=>{var O=te,J=N(3550),D=N(9746),F=N(4504);O.assert=D,O.toArray=F.toArray,O.zero2=F.zero2,O.toHex=F.toHex,O.encode=F.encode;function d(h,a,E){var l=new Array(Math.max(h.bitLength(),E)+1);l.fill(0);for(var w=1<<a+1,m=h.clone(),x=0;x<l.length;x++){var R,v=m.andln(w-1);m.isOdd()?(v>(w>>1)-1?R=(w>>1)-v:R=v,m.isubn(R)):R=0,l[x]=R,m.iushrn(1)}return l}r(d,"getNAF"),O.getNAF=d;function p(h,a){var E=[[],[]];h=h.clone(),a=a.clone();for(var l=0,w=0;h.cmpn(-l)>0||a.cmpn(-w)>0;){var m=h.andln(3)+l&3,x=a.andln(3)+w&3;m===3&&(m=-1),x===3&&(x=-1);var R;if(!(m&1))R=0;else{var v=h.andln(7)+l&7;(v===3||v===5)&&x===2?R=-m:R=m}E[0].push(R);var B;if(!(x&1))B=0;else{var v=a.andln(7)+w&7;(v===3||v===5)&&m===2?B=-x:B=x}E[1].push(B),2*l===R+1&&(l=1-l),2*w===B+1&&(w=1-w),h.iushrn(1),a.iushrn(1)}return E}r(p,"getJSF"),O.getJSF=p;function b(h,a,E){var l="_"+a;h.prototype[a]=r(function(){return this[l]!==void 0?this[l]:this[l]=E.call(this)},"cachedProperty")}r(b,"cachedProperty"),O.cachedProperty=b;function T(h){return typeof h=="string"?O.toArray(h,"hex"):h}r(T,"parseBytes"),O.parseBytes=T;function k(h){return new J(h,"hex","le")}r(k,"intFromLE"),O.intFromLE=k},3550:function(ne,te,N){ne=N.nmd(ne),function(O,J){"use strict";function D(S,i){if(!S)throw new Error(i||"Assertion failed")}r(D,"assert");function F(S,i){S.super_=i;var f=r(function(){},"TempCtor");f.prototype=i.prototype,S.prototype=new f,S.prototype.constructor=S}r(F,"inherits");function d(S,i,f){if(d.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&((i==="le"||i==="be")&&(f=i,i=10),this._init(S||0,i||10,f||"be"))}r(d,"BN"),typeof O=="object"?O.exports=d:J.BN=d,d.BN=d,d.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=N(6601).Buffer}catch{}d.isBN=r(function(i){return i instanceof d?!0:i!==null&&typeof i=="object"&&i.constructor.wordSize===d.wordSize&&Array.isArray(i.words)},"isBN"),d.max=r(function(i,f){return i.cmp(f)>0?i:f},"max"),d.min=r(function(i,f){return i.cmp(f)<0?i:f},"min"),d.prototype._init=r(function(i,f,s){if(typeof i=="number")return this._initNumber(i,f,s);if(typeof i=="object")return this._initArray(i,f,s);f==="hex"&&(f=16),D(f===(f|0)&&f>=2&&f<=36),i=i.toString().replace(/\s+/g,"");var y=0;i[0]==="-"&&(y++,this.negative=1),y<i.length&&(f===16?this._parseHex(i,y,s):(this._parseBase(i,f,y),s==="le"&&this._initArray(this.toArray(),f,s)))},"init"),d.prototype._initNumber=r(function(i,f,s){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[i&67108863],this.length=1):i<4503599627370496?(this.words=[i&67108863,i/67108864&67108863],this.length=2):(D(i<9007199254740992),this.words=[i&67108863,i/67108864&67108863,1],this.length=3),s==="le"&&this._initArray(this.toArray(),f,s)},"_initNumber"),d.prototype._initArray=r(function(i,f,s){if(D(typeof i.length=="number"),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var P,j,Y=0;if(s==="be")for(y=i.length-1,P=0;y>=0;y-=3)j=i[y]|i[y-1]<<8|i[y-2]<<16,this.words[P]|=j<<Y&67108863,this.words[P+1]=j>>>26-Y&67108863,Y+=24,Y>=26&&(Y-=26,P++);else if(s==="le")for(y=0,P=0;y<i.length;y+=3)j=i[y]|i[y+1]<<8|i[y+2]<<16,this.words[P]|=j<<Y&67108863,this.words[P+1]=j>>>26-Y&67108863,Y+=24,Y>=26&&(Y-=26,P++);return this._strip()},"_initArray");function b(S,i){var f=S.charCodeAt(i);if(f>=48&&f<=57)return f-48;if(f>=65&&f<=70)return f-55;if(f>=97&&f<=102)return f-87;D(!1,"Invalid character in "+S)}r(b,"parseHex4Bits");function T(S,i,f){var s=b(S,f);return f-1>=i&&(s|=b(S,f-1)<<4),s}r(T,"parseHexByte"),d.prototype._parseHex=r(function(i,f,s){this.length=Math.ceil((i.length-f)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var P=0,j=0,Y;if(s==="be")for(y=i.length-1;y>=f;y-=2)Y=T(i,f,y)<<P,this.words[j]|=Y&67108863,P>=18?(P-=18,j+=1,this.words[j]|=Y>>>26):P+=8;else{var M=i.length-f;for(y=M%2===0?f+1:f;y<i.length;y+=2)Y=T(i,f,y)<<P,this.words[j]|=Y&67108863,P>=18?(P-=18,j+=1,this.words[j]|=Y>>>26):P+=8}this._strip()},"_parseHex");function k(S,i,f,s){for(var y=0,P=0,j=Math.min(S.length,f),Y=i;Y<j;Y++){var M=S.charCodeAt(Y)-48;y*=s,M>=49?P=M-49+10:M>=17?P=M-17+10:P=M,D(M>=0&&P<s,"Invalid character"),y+=P}return y}r(k,"parseBase"),d.prototype._parseBase=r(function(i,f,s){this.words=[0],this.length=1;for(var y=0,P=1;P<=67108863;P*=f)y++;y--,P=P/f|0;for(var j=i.length-s,Y=j%y,M=Math.min(j,j-Y)+s,u=0,K=s;K<M;K+=y)u=k(i,K,K+y,f),this.imuln(P),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(Y!==0){var ge=1;for(u=k(i,K,i.length,f),K=0;K<Y;K++)ge*=f;this.imuln(ge),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},"_parseBase"),d.prototype.copy=r(function(i){i.words=new Array(this.length);for(var f=0;f<this.length;f++)i.words[f]=this.words[f];i.length=this.length,i.negative=this.negative,i.red=this.red},"copy");function h(S,i){S.words=i.words,S.length=i.length,S.negative=i.negative,S.red=i.red}if(r(h,"move"),d.prototype._move=r(function(i){h(i,this)},"_move"),d.prototype.clone=r(function(){var i=new d(null);return this.copy(i),i},"clone"),d.prototype._expand=r(function(i){for(;this.length<i;)this.words[this.length++]=0;return this},"_expand"),d.prototype._strip=r(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},"strip"),d.prototype._normSign=r(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},"_normSign"),typeof Symbol<"u"&&typeof Symbol.for=="function")try{d.prototype[Symbol.for("nodejs.util.inspect.custom")]=a}catch{d.prototype.inspect=a}else d.prototype.inspect=a;function a(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}r(a,"inspect");var E=["","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"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];d.prototype.toString=r(function(i,f){i=i||10,f=f|0||1;var s;if(i===16||i==="hex"){s="";for(var y=0,P=0,j=0;j<this.length;j++){var Y=this.words[j],M=((Y<<y|P)&16777215).toString(16);P=Y>>>24-y&16777215,y+=2,y>=26&&(y-=26,j--),P!==0||j!==this.length-1?s=E[6-M.length]+M+s:s=M+s}for(P!==0&&(s=P.toString(16)+s);s.length%f!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}if(i===(i|0)&&i>=2&&i<=36){var u=l[i],K=w[i];s="";var ge=this.clone();for(ge.negative=0;!ge.isZero();){var ve=ge.modrn(K).toString(i);ge=ge.idivn(K),ge.isZero()?s=ve+s:s=E[u-ve.length]+ve+s}for(this.isZero()&&(s="0"+s);s.length%f!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}D(!1,"Base should be between 2 and 36")},"toString"),d.prototype.toNumber=r(function(){var i=this.words[0];return this.length===2?i+=this.words[1]*67108864:this.length===3&&this.words[2]===1?i+=4503599627370496+this.words[1]*67108864:this.length>2&&D(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-i:i},"toNumber"),d.prototype.toJSON=r(function(){return this.toString(16,2)},"toJSON"),p&&(d.prototype.toBuffer=r(function(i,f){return this.toArrayLike(p,i,f)},"toBuffer")),d.prototype.toArray=r(function(i,f){return this.toArrayLike(Array,i,f)},"toArray");var m=r(function(i,f){return i.allocUnsafe?i.allocUnsafe(f):new i(f)},"allocate");d.prototype.toArrayLike=r(function(i,f,s){this._strip();var y=this.byteLength(),P=s||Math.max(1,y);D(y<=P,"byte array longer than desired length"),D(P>0,"Requested array length <= 0");var j=m(i,P),Y=f==="le"?"LE":"BE";return this["_toArrayLike"+Y](j,y),j},"toArrayLike"),d.prototype._toArrayLikeLE=r(function(i,f){for(var s=0,y=0,P=0,j=0;P<this.length;P++){var Y=this.words[P]<<j|y;i[s++]=Y&255,s<i.length&&(i[s++]=Y>>8&255),s<i.length&&(i[s++]=Y>>16&255),j===6?(s<i.length&&(i[s++]=Y>>24&255),y=0,j=0):(y=Y>>>24,j+=2)}if(s<i.length)for(i[s++]=y;s<i.length;)i[s++]=0},"_toArrayLikeLE"),d.prototype._toArrayLikeBE=r(function(i,f){for(var s=i.length-1,y=0,P=0,j=0;P<this.length;P++){var Y=this.words[P]<<j|y;i[s--]=Y&255,s>=0&&(i[s--]=Y>>8&255),s>=0&&(i[s--]=Y>>16&255),j===6?(s>=0&&(i[s--]=Y>>24&255),y=0,j=0):(y=Y>>>24,j+=2)}if(s>=0)for(i[s--]=y;s>=0;)i[s--]=0},"_toArrayLikeBE"),Math.clz32?d.prototype._countBits=r(function(i){return 32-Math.clz32(i)},"_countBits"):d.prototype._countBits=r(function(i){var f=i,s=0;return f>=4096&&(s+=13,f>>>=13),f>=64&&(s+=7,f>>>=7),f>=8&&(s+=4,f>>>=4),f>=2&&(s+=2,f>>>=2),s+f},"_countBits"),d.prototype._zeroBits=r(function(i){if(i===0)return 26;var f=i,s=0;return f&8191||(s+=13,f>>>=13),f&127||(s+=7,f>>>=7),f&15||(s+=4,f>>>=4),f&3||(s+=2,f>>>=2),f&1||s++,s},"_zeroBits"),d.prototype.bitLength=r(function(){var i=this.words[this.length-1],f=this._countBits(i);return(this.length-1)*26+f},"bitLength");function x(S){for(var i=new Array(S.bitLength()),f=0;f<i.length;f++){var s=f/26|0,y=f%26;i[f]=S.words[s]>>>y&1}return i}r(x,"toBitArray"),d.prototype.zeroBits=r(function(){if(this.isZero())return 0;for(var i=0,f=0;f<this.length;f++){var s=this._zeroBits(this.words[f]);if(i+=s,s!==26)break}return i},"zeroBits"),d.prototype.byteLength=r(function(){return Math.ceil(this.bitLength()/8)},"byteLength"),d.prototype.toTwos=r(function(i){return this.negative!==0?this.abs().inotn(i).iaddn(1):this.clone()},"toTwos"),d.prototype.fromTwos=r(function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},"fromTwos"),d.prototype.isNeg=r(function(){return this.negative!==0},"isNeg"),d.prototype.neg=r(function(){return this.clone().ineg()},"neg"),d.prototype.ineg=r(function(){return this.isZero()||(this.negative^=1),this},"ineg"),d.prototype.iuor=r(function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var f=0;f<i.length;f++)this.words[f]=this.words[f]|i.words[f];return this._strip()},"iuor"),d.prototype.ior=r(function(i){return D((this.negative|i.negative)===0),this.iuor(i)},"ior"),d.prototype.or=r(function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},"or"),d.prototype.uor=r(function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},"uor"),d.prototype.iuand=r(function(i){var f;this.length>i.length?f=i:f=this;for(var s=0;s<f.length;s++)this.words[s]=this.words[s]&i.words[s];return this.length=f.length,this._strip()},"iuand"),d.prototype.iand=r(function(i){return D((this.negative|i.negative)===0),this.iuand(i)},"iand"),d.prototype.and=r(function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},"and"),d.prototype.uand=r(function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},"uand"),d.prototype.iuxor=r(function(i){var f,s;this.length>i.length?(f=this,s=i):(f=i,s=this);for(var y=0;y<s.length;y++)this.words[y]=f.words[y]^s.words[y];if(this!==f)for(;y<f.length;y++)this.words[y]=f.words[y];return this.length=f.length,this._strip()},"iuxor"),d.prototype.ixor=r(function(i){return D((this.negative|i.negative)===0),this.iuxor(i)},"ixor"),d.prototype.xor=r(function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},"xor"),d.prototype.uxor=r(function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},"uxor"),d.prototype.inotn=r(function(i){D(typeof i=="number"&&i>=0);var f=Math.ceil(i/26)|0,s=i%26;this._expand(f),s>0&&f--;for(var y=0;y<f;y++)this.words[y]=~this.words[y]&67108863;return s>0&&(this.words[y]=~this.words[y]&67108863>>26-s),this._strip()},"inotn"),d.prototype.notn=r(function(i){return this.clone().inotn(i)},"notn"),d.prototype.setn=r(function(i,f){D(typeof i=="number"&&i>=0);var s=i/26|0,y=i%26;return this._expand(s+1),f?this.words[s]=this.words[s]|1<<y:this.words[s]=this.words[s]&~(1<<y),this._strip()},"setn"),d.prototype.iadd=r(function(i){var f;if(this.negative!==0&&i.negative===0)return this.negative=0,f=this.isub(i),this.negative^=1,this._normSign();if(this.negative===0&&i.negative!==0)return i.negative=0,f=this.isub(i),i.negative=1,f._normSign();var s,y;this.length>i.length?(s=this,y=i):(s=i,y=this);for(var P=0,j=0;j<y.length;j++)f=(s.words[j]|0)+(y.words[j]|0)+P,this.words[j]=f&67108863,P=f>>>26;for(;P!==0&&j<s.length;j++)f=(s.words[j]|0)+P,this.words[j]=f&67108863,P=f>>>26;if(this.length=s.length,P!==0)this.words[this.length]=P,this.length++;else if(s!==this)for(;j<s.length;j++)this.words[j]=s.words[j];return this},"iadd"),d.prototype.add=r(function(i){var f;return i.negative!==0&&this.negative===0?(i.negative=0,f=this.sub(i),i.negative^=1,f):i.negative===0&&this.negative!==0?(this.negative=0,f=i.sub(this),this.negative=1,f):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},"add"),d.prototype.isub=r(function(i){if(i.negative!==0){i.negative=0;var f=this.iadd(i);return i.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var s=this.cmp(i);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,P;s>0?(y=this,P=i):(y=i,P=this);for(var j=0,Y=0;Y<P.length;Y++)f=(y.words[Y]|0)-(P.words[Y]|0)+j,j=f>>26,this.words[Y]=f&67108863;for(;j!==0&&Y<y.length;Y++)f=(y.words[Y]|0)+j,j=f>>26,this.words[Y]=f&67108863;if(j===0&&Y<y.length&&y!==this)for(;Y<y.length;Y++)this.words[Y]=y.words[Y];return this.length=Math.max(this.length,Y),y!==this&&(this.negative=1),this._strip()},"isub"),d.prototype.sub=r(function(i){return this.clone().isub(i)},"sub");function R(S,i,f){f.negative=i.negative^S.negative;var s=S.length+i.length|0;f.length=s,s=s-1|0;var y=S.words[0]|0,P=i.words[0]|0,j=y*P,Y=j&67108863,M=j/67108864|0;f.words[0]=Y;for(var u=1;u<s;u++){for(var K=M>>>26,ge=M&67108863,ve=Math.min(u,i.length-1),he=Math.max(0,u-S.length+1);he<=ve;he++){var q=u-he|0;y=S.words[q]|0,P=i.words[he]|0,j=y*P+ge,K+=j/67108864|0,ge=j&67108863}f.words[u]=ge|0,M=K|0}return M!==0?f.words[u]=M|0:f.length--,f._strip()}r(R,"smallMulTo");var v=r(function(i,f,s){var y=i.words,P=f.words,j=s.words,Y=0,M,u,K,ge=y[0]|0,ve=ge&8191,he=ge>>>13,q=y[1]|0,$=q&8191,oe=q>>>13,Se=y[2]|0,_e=Se&8191,U=Se>>>13,z=y[3]|0,se=z&8191,de=z>>>13,Me=y[4]|0,Be=Me&8191,Re=Me>>>13,Je=y[5]|0,Ae=Je&8191,we=Je>>>13,He=y[6]|0,Ne=He&8191,Le=He>>>13,be=y[7]|0,_=be&8191,o=be>>>13,c=y[8]|0,H=c&8191,Q=c>>>13,ie=y[9]|0,re=ie&8191,Ie=ie>>>13,Ue=P[0]|0,Pe=Ue&8191,Ce=Ue>>>13,De=P[1]|0,I=De&8191,e=De>>>13,t=P[2]|0,n=t&8191,g=t>>>13,C=P[3]|0,W=C&8191,Z=C>>>13,pe=P[4]|0,ue=pe&8191,xe=pe>>>13,ke=P[5]|0,Oe=ke&8191,Fe=ke>>>13,ce=P[6]|0,le=ce&8191,Ee=ce>>>13,We=P[7]|0,Ke=We&8191,je=We>>>13,Xe=P[8]|0,ze=Xe&8191,Ve=Xe>>>13,Qe=P[9]|0,Ye=Qe&8191,qe=Qe>>>13;s.negative=i.negative^f.negative,s.length=19,M=Math.imul(ve,Pe),u=Math.imul(ve,Ce),u=u+Math.imul(he,Pe)|0,K=Math.imul(he,Ce);var $e=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+($e>>>26)|0,$e&=67108863,M=Math.imul($,Pe),u=Math.imul($,Ce),u=u+Math.imul(oe,Pe)|0,K=Math.imul(oe,Ce),M=M+Math.imul(ve,I)|0,u=u+Math.imul(ve,e)|0,u=u+Math.imul(he,I)|0,K=K+Math.imul(he,e)|0;var Ze=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,M=Math.imul(_e,Pe),u=Math.imul(_e,Ce),u=u+Math.imul(U,Pe)|0,K=Math.imul(U,Ce),M=M+Math.imul($,I)|0,u=u+Math.imul($,e)|0,u=u+Math.imul(oe,I)|0,K=K+Math.imul(oe,e)|0,M=M+Math.imul(ve,n)|0,u=u+Math.imul(ve,g)|0,u=u+Math.imul(he,n)|0,K=K+Math.imul(he,g)|0;var et=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(et>>>26)|0,et&=67108863,M=Math.imul(se,Pe),u=Math.imul(se,Ce),u=u+Math.imul(de,Pe)|0,K=Math.imul(de,Ce),M=M+Math.imul(_e,I)|0,u=u+Math.imul(_e,e)|0,u=u+Math.imul(U,I)|0,K=K+Math.imul(U,e)|0,M=M+Math.imul($,n)|0,u=u+Math.imul($,g)|0,u=u+Math.imul(oe,n)|0,K=K+Math.imul(oe,g)|0,M=M+Math.imul(ve,W)|0,u=u+Math.imul(ve,Z)|0,u=u+Math.imul(he,W)|0,K=K+Math.imul(he,Z)|0;var tt=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(tt>>>26)|0,tt&=67108863,M=Math.imul(Be,Pe),u=Math.imul(Be,Ce),u=u+Math.imul(Re,Pe)|0,K=Math.imul(Re,Ce),M=M+Math.imul(se,I)|0,u=u+Math.imul(se,e)|0,u=u+Math.imul(de,I)|0,K=K+Math.imul(de,e)|0,M=M+Math.imul(_e,n)|0,u=u+Math.imul(_e,g)|0,u=u+Math.imul(U,n)|0,K=K+Math.imul(U,g)|0,M=M+Math.imul($,W)|0,u=u+Math.imul($,Z)|0,u=u+Math.imul(oe,W)|0,K=K+Math.imul(oe,Z)|0,M=M+Math.imul(ve,ue)|0,u=u+Math.imul(ve,xe)|0,u=u+Math.imul(he,ue)|0,K=K+Math.imul(he,xe)|0;var rt=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(rt>>>26)|0,rt&=67108863,M=Math.imul(Ae,Pe),u=Math.imul(Ae,Ce),u=u+Math.imul(we,Pe)|0,K=Math.imul(we,Ce),M=M+Math.imul(Be,I)|0,u=u+Math.imul(Be,e)|0,u=u+Math.imul(Re,I)|0,K=K+Math.imul(Re,e)|0,M=M+Math.imul(se,n)|0,u=u+Math.imul(se,g)|0,u=u+Math.imul(de,n)|0,K=K+Math.imul(de,g)|0,M=M+Math.imul(_e,W)|0,u=u+Math.imul(_e,Z)|0,u=u+Math.imul(U,W)|0,K=K+Math.imul(U,Z)|0,M=M+Math.imul($,ue)|0,u=u+Math.imul($,xe)|0,u=u+Math.imul(oe,ue)|0,K=K+Math.imul(oe,xe)|0,M=M+Math.imul(ve,Oe)|0,u=u+Math.imul(ve,Fe)|0,u=u+Math.imul(he,Oe)|0,K=K+Math.imul(he,Fe)|0;var it=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(it>>>26)|0,it&=67108863,M=Math.imul(Ne,Pe),u=Math.imul(Ne,Ce),u=u+Math.imul(Le,Pe)|0,K=Math.imul(Le,Ce),M=M+Math.imul(Ae,I)|0,u=u+Math.imul(Ae,e)|0,u=u+Math.imul(we,I)|0,K=K+Math.imul(we,e)|0,M=M+Math.imul(Be,n)|0,u=u+Math.imul(Be,g)|0,u=u+Math.imul(Re,n)|0,K=K+Math.imul(Re,g)|0,M=M+Math.imul(se,W)|0,u=u+Math.imul(se,Z)|0,u=u+Math.imul(de,W)|0,K=K+Math.imul(de,Z)|0,M=M+Math.imul(_e,ue)|0,u=u+Math.imul(_e,xe)|0,u=u+Math.imul(U,ue)|0,K=K+Math.imul(U,xe)|0,M=M+Math.imul($,Oe)|0,u=u+Math.imul($,Fe)|0,u=u+Math.imul(oe,Oe)|0,K=K+Math.imul(oe,Fe)|0,M=M+Math.imul(ve,le)|0,u=u+Math.imul(ve,Ee)|0,u=u+Math.imul(he,le)|0,K=K+Math.imul(he,Ee)|0;var nt=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(nt>>>26)|0,nt&=67108863,M=Math.imul(_,Pe),u=Math.imul(_,Ce),u=u+Math.imul(o,Pe)|0,K=Math.imul(o,Ce),M=M+Math.imul(Ne,I)|0,u=u+Math.imul(Ne,e)|0,u=u+Math.imul(Le,I)|0,K=K+Math.imul(Le,e)|0,M=M+Math.imul(Ae,n)|0,u=u+Math.imul(Ae,g)|0,u=u+Math.imul(we,n)|0,K=K+Math.imul(we,g)|0,M=M+Math.imul(Be,W)|0,u=u+Math.imul(Be,Z)|0,u=u+Math.imul(Re,W)|0,K=K+Math.imul(Re,Z)|0,M=M+Math.imul(se,ue)|0,u=u+Math.imul(se,xe)|0,u=u+Math.imul(de,ue)|0,K=K+Math.imul(de,xe)|0,M=M+Math.imul(_e,Oe)|0,u=u+Math.imul(_e,Fe)|0,u=u+Math.imul(U,Oe)|0,K=K+Math.imul(U,Fe)|0,M=M+Math.imul($,le)|0,u=u+Math.imul($,Ee)|0,u=u+Math.imul(oe,le)|0,K=K+Math.imul(oe,Ee)|0,M=M+Math.imul(ve,Ke)|0,u=u+Math.imul(ve,je)|0,u=u+Math.imul(he,Ke)|0,K=K+Math.imul(he,je)|0;var st=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(st>>>26)|0,st&=67108863,M=Math.imul(H,Pe),u=Math.imul(H,Ce),u=u+Math.imul(Q,Pe)|0,K=Math.imul(Q,Ce),M=M+Math.imul(_,I)|0,u=u+Math.imul(_,e)|0,u=u+Math.imul(o,I)|0,K=K+Math.imul(o,e)|0,M=M+Math.imul(Ne,n)|0,u=u+Math.imul(Ne,g)|0,u=u+Math.imul(Le,n)|0,K=K+Math.imul(Le,g)|0,M=M+Math.imul(Ae,W)|0,u=u+Math.imul(Ae,Z)|0,u=u+Math.imul(we,W)|0,K=K+Math.imul(we,Z)|0,M=M+Math.imul(Be,ue)|0,u=u+Math.imul(Be,xe)|0,u=u+Math.imul(Re,ue)|0,K=K+Math.imul(Re,xe)|0,M=M+Math.imul(se,Oe)|0,u=u+Math.imul(se,Fe)|0,u=u+Math.imul(de,Oe)|0,K=K+Math.imul(de,Fe)|0,M=M+Math.imul(_e,le)|0,u=u+Math.imul(_e,Ee)|0,u=u+Math.imul(U,le)|0,K=K+Math.imul(U,Ee)|0,M=M+Math.imul($,Ke)|0,u=u+Math.imul($,je)|0,u=u+Math.imul(oe,Ke)|0,K=K+Math.imul(oe,je)|0,M=M+Math.imul(ve,ze)|0,u=u+Math.imul(ve,Ve)|0,u=u+Math.imul(he,ze)|0,K=K+Math.imul(he,Ve)|0;var at=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(at>>>26)|0,at&=67108863,M=Math.imul(re,Pe),u=Math.imul(re,Ce),u=u+Math.imul(Ie,Pe)|0,K=Math.imul(Ie,Ce),M=M+Math.imul(H,I)|0,u=u+Math.imul(H,e)|0,u=u+Math.imul(Q,I)|0,K=K+Math.imul(Q,e)|0,M=M+Math.imul(_,n)|0,u=u+Math.imul(_,g)|0,u=u+Math.imul(o,n)|0,K=K+Math.imul(o,g)|0,M=M+Math.imul(Ne,W)|0,u=u+Math.imul(Ne,Z)|0,u=u+Math.imul(Le,W)|0,K=K+Math.imul(Le,Z)|0,M=M+Math.imul(Ae,ue)|0,u=u+Math.imul(Ae,xe)|0,u=u+Math.imul(we,ue)|0,K=K+Math.imul(we,xe)|0,M=M+Math.imul(Be,Oe)|0,u=u+Math.imul(Be,Fe)|0,u=u+Math.imul(Re,Oe)|0,K=K+Math.imul(Re,Fe)|0,M=M+Math.imul(se,le)|0,u=u+Math.imul(se,Ee)|0,u=u+Math.imul(de,le)|0,K=K+Math.imul(de,Ee)|0,M=M+Math.imul(_e,Ke)|0,u=u+Math.imul(_e,je)|0,u=u+Math.imul(U,Ke)|0,K=K+Math.imul(U,je)|0,M=M+Math.imul($,ze)|0,u=u+Math.imul($,Ve)|0,u=u+Math.imul(oe,ze)|0,K=K+Math.imul(oe,Ve)|0,M=M+Math.imul(ve,Ye)|0,u=u+Math.imul(ve,qe)|0,u=u+Math.imul(he,Ye)|0,K=K+Math.imul(he,qe)|0;var ot=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,M=Math.imul(re,I),u=Math.imul(re,e),u=u+Math.imul(Ie,I)|0,K=Math.imul(Ie,e),M=M+Math.imul(H,n)|0,u=u+Math.imul(H,g)|0,u=u+Math.imul(Q,n)|0,K=K+Math.imul(Q,g)|0,M=M+Math.imul(_,W)|0,u=u+Math.imul(_,Z)|0,u=u+Math.imul(o,W)|0,K=K+Math.imul(o,Z)|0,M=M+Math.imul(Ne,ue)|0,u=u+Math.imul(Ne,xe)|0,u=u+Math.imul(Le,ue)|0,K=K+Math.imul(Le,xe)|0,M=M+Math.imul(Ae,Oe)|0,u=u+Math.imul(Ae,Fe)|0,u=u+Math.imul(we,Oe)|0,K=K+Math.imul(we,Fe)|0,M=M+Math.imul(Be,le)|0,u=u+Math.imul(Be,Ee)|0,u=u+Math.imul(Re,le)|0,K=K+Math.imul(Re,Ee)|0,M=M+Math.imul(se,Ke)|0,u=u+Math.imul(se,je)|0,u=u+Math.imul(de,Ke)|0,K=K+Math.imul(de,je)|0,M=M+Math.imul(_e,ze)|0,u=u+Math.imul(_e,Ve)|0,u=u+Math.imul(U,ze)|0,K=K+Math.imul(U,Ve)|0,M=M+Math.imul($,Ye)|0,u=u+Math.imul($,qe)|0,u=u+Math.imul(oe,Ye)|0,K=K+Math.imul(oe,qe)|0;var ft=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ft>>>26)|0,ft&=67108863,M=Math.imul(re,n),u=Math.imul(re,g),u=u+Math.imul(Ie,n)|0,K=Math.imul(Ie,g),M=M+Math.imul(H,W)|0,u=u+Math.imul(H,Z)|0,u=u+Math.imul(Q,W)|0,K=K+Math.imul(Q,Z)|0,M=M+Math.imul(_,ue)|0,u=u+Math.imul(_,xe)|0,u=u+Math.imul(o,ue)|0,K=K+Math.imul(o,xe)|0,M=M+Math.imul(Ne,Oe)|0,u=u+Math.imul(Ne,Fe)|0,u=u+Math.imul(Le,Oe)|0,K=K+Math.imul(Le,Fe)|0,M=M+Math.imul(Ae,le)|0,u=u+Math.imul(Ae,Ee)|0,u=u+Math.imul(we,le)|0,K=K+Math.imul(we,Ee)|0,M=M+Math.imul(Be,Ke)|0,u=u+Math.imul(Be,je)|0,u=u+Math.imul(Re,Ke)|0,K=K+Math.imul(Re,je)|0,M=M+Math.imul(se,ze)|0,u=u+Math.imul(se,Ve)|0,u=u+Math.imul(de,ze)|0,K=K+Math.imul(de,Ve)|0,M=M+Math.imul(_e,Ye)|0,u=u+Math.imul(_e,qe)|0,u=u+Math.imul(U,Ye)|0,K=K+Math.imul(U,qe)|0;var ct=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ct>>>26)|0,ct&=67108863,M=Math.imul(re,W),u=Math.imul(re,Z),u=u+Math.imul(Ie,W)|0,K=Math.imul(Ie,Z),M=M+Math.imul(H,ue)|0,u=u+Math.imul(H,xe)|0,u=u+Math.imul(Q,ue)|0,K=K+Math.imul(Q,xe)|0,M=M+Math.imul(_,Oe)|0,u=u+Math.imul(_,Fe)|0,u=u+Math.imul(o,Oe)|0,K=K+Math.imul(o,Fe)|0,M=M+Math.imul(Ne,le)|0,u=u+Math.imul(Ne,Ee)|0,u=u+Math.imul(Le,le)|0,K=K+Math.imul(Le,Ee)|0,M=M+Math.imul(Ae,Ke)|0,u=u+Math.imul(Ae,je)|0,u=u+Math.imul(we,Ke)|0,K=K+Math.imul(we,je)|0,M=M+Math.imul(Be,ze)|0,u=u+Math.imul(Be,Ve)|0,u=u+Math.imul(Re,ze)|0,K=K+Math.imul(Re,Ve)|0,M=M+Math.imul(se,Ye)|0,u=u+Math.imul(se,qe)|0,u=u+Math.imul(de,Ye)|0,K=K+Math.imul(de,qe)|0;var ht=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ht>>>26)|0,ht&=67108863,M=Math.imul(re,ue),u=Math.imul(re,xe),u=u+Math.imul(Ie,ue)|0,K=Math.imul(Ie,xe),M=M+Math.imul(H,Oe)|0,u=u+Math.imul(H,Fe)|0,u=u+Math.imul(Q,Oe)|0,K=K+Math.imul(Q,Fe)|0,M=M+Math.imul(_,le)|0,u=u+Math.imul(_,Ee)|0,u=u+Math.imul(o,le)|0,K=K+Math.imul(o,Ee)|0,M=M+Math.imul(Ne,Ke)|0,u=u+Math.imul(Ne,je)|0,u=u+Math.imul(Le,Ke)|0,K=K+Math.imul(Le,je)|0,M=M+Math.imul(Ae,ze)|0,u=u+Math.imul(Ae,Ve)|0,u=u+Math.imul(we,ze)|0,K=K+Math.imul(we,Ve)|0,M=M+Math.imul(Be,Ye)|0,u=u+Math.imul(Be,qe)|0,u=u+Math.imul(Re,Ye)|0,K=K+Math.imul(Re,qe)|0;var ut=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ut>>>26)|0,ut&=67108863,M=Math.imul(re,Oe),u=Math.imul(re,Fe),u=u+Math.imul(Ie,Oe)|0,K=Math.imul(Ie,Fe),M=M+Math.imul(H,le)|0,u=u+Math.imul(H,Ee)|0,u=u+Math.imul(Q,le)|0,K=K+Math.imul(Q,Ee)|0,M=M+Math.imul(_,Ke)|0,u=u+Math.imul(_,je)|0,u=u+Math.imul(o,Ke)|0,K=K+Math.imul(o,je)|0,M=M+Math.imul(Ne,ze)|0,u=u+Math.imul(Ne,Ve)|0,u=u+Math.imul(Le,ze)|0,K=K+Math.imul(Le,Ve)|0,M=M+Math.imul(Ae,Ye)|0,u=u+Math.imul(Ae,qe)|0,u=u+Math.imul(we,Ye)|0,K=K+Math.imul(we,qe)|0;var lt=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,M=Math.imul(re,le),u=Math.imul(re,Ee),u=u+Math.imul(Ie,le)|0,K=Math.imul(Ie,Ee),M=M+Math.imul(H,Ke)|0,u=u+Math.imul(H,je)|0,u=u+Math.imul(Q,Ke)|0,K=K+Math.imul(Q,je)|0,M=M+Math.imul(_,ze)|0,u=u+Math.imul(_,Ve)|0,u=u+Math.imul(o,ze)|0,K=K+Math.imul(o,Ve)|0,M=M+Math.imul(Ne,Ye)|0,u=u+Math.imul(Ne,qe)|0,u=u+Math.imul(Le,Ye)|0,K=K+Math.imul(Le,qe)|0;var dt=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(dt>>>26)|0,dt&=67108863,M=Math.imul(re,Ke),u=Math.imul(re,je),u=u+Math.imul(Ie,Ke)|0,K=Math.imul(Ie,je),M=M+Math.imul(H,ze)|0,u=u+Math.imul(H,Ve)|0,u=u+Math.imul(Q,ze)|0,K=K+Math.imul(Q,Ve)|0,M=M+Math.imul(_,Ye)|0,u=u+Math.imul(_,qe)|0,u=u+Math.imul(o,Ye)|0,K=K+Math.imul(o,qe)|0;var pt=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(pt>>>26)|0,pt&=67108863,M=Math.imul(re,ze),u=Math.imul(re,Ve),u=u+Math.imul(Ie,ze)|0,K=Math.imul(Ie,Ve),M=M+Math.imul(H,Ye)|0,u=u+Math.imul(H,qe)|0,u=u+Math.imul(Q,Ye)|0,K=K+Math.imul(Q,qe)|0;var bt=(Y+M|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(bt>>>26)|0,bt&=67108863,M=Math.imul(re,Ye),u=Math.imul(re,qe),u=u+Math.imul(Ie,Ye)|0,K=Math.imul(Ie,qe);var mt=(Y+M|0)+((u&8191)<<13)|0;return Y=(K+(u>>>13)|0)+(mt>>>26)|0,mt&=67108863,j[0]=$e,j[1]=Ze,j[2]=et,j[3]=tt,j[4]=rt,j[5]=it,j[6]=nt,j[7]=st,j[8]=at,j[9]=ot,j[10]=ft,j[11]=ct,j[12]=ht,j[13]=ut,j[14]=lt,j[15]=dt,j[16]=pt,j[17]=bt,j[18]=mt,Y!==0&&(j[19]=Y,s.length++),s},"comb10MulTo");Math.imul||(v=R);function B(S,i,f){f.negative=i.negative^S.negative,f.length=S.length+i.length;for(var s=0,y=0,P=0;P<f.length-1;P++){var j=y;y=0;for(var Y=s&67108863,M=Math.min(P,i.length-1),u=Math.max(0,P-S.length+1);u<=M;u++){var K=P-u,ge=S.words[K]|0,ve=i.words[u]|0,he=ge*ve,q=he&67108863;j=j+(he/67108864|0)|0,q=q+Y|0,Y=q&67108863,j=j+(q>>>26)|0,y+=j>>>26,j&=67108863}f.words[P]=Y,s=j,j=y}return s!==0?f.words[P]=s:f.length--,f._strip()}r(B,"bigMulTo");function A(S,i,f){return B(S,i,f)}r(A,"jumboMulTo"),d.prototype.mulTo=r(function(i,f){var s,y=this.length+i.length;return this.length===10&&i.length===10?s=v(this,i,f):y<63?s=R(this,i,f):y<1024?s=B(this,i,f):s=A(this,i,f),s},"mulTo");function L(S,i){this.x=S,this.y=i}r(L,"FFTM"),L.prototype.makeRBT=r(function(i){for(var f=new Array(i),s=d.prototype._countBits(i)-1,y=0;y<i;y++)f[y]=this.revBin(y,s,i);return f},"makeRBT"),L.prototype.revBin=r(function(i,f,s){if(i===0||i===s-1)return i;for(var y=0,P=0;P<f;P++)y|=(i&1)<<f-P-1,i>>=1;return y},"revBin"),L.prototype.permute=r(function(i,f,s,y,P,j){for(var Y=0;Y<j;Y++)y[Y]=f[i[Y]],P[Y]=s[i[Y]]},"permute"),L.prototype.transform=r(function(i,f,s,y,P,j){this.permute(j,i,f,s,y,P);for(var Y=1;Y<P;Y<<=1)for(var M=Y<<1,u=Math.cos(2*Math.PI/M),K=Math.sin(2*Math.PI/M),ge=0;ge<P;ge+=M)for(var ve=u,he=K,q=0;q<Y;q++){var $=s[ge+q],oe=y[ge+q],Se=s[ge+q+Y],_e=y[ge+q+Y],U=ve*Se-he*_e;_e=ve*_e+he*Se,Se=U,s[ge+q]=$+Se,y[ge+q]=oe+_e,s[ge+q+Y]=$-Se,y[ge+q+Y]=oe-_e,q!==M&&(U=u*ve-K*he,he=u*he+K*ve,ve=U)}},"transform"),L.prototype.guessLen13b=r(function(i,f){var s=Math.max(f,i)|1,y=s&1,P=0;for(s=s/2|0;s;s=s>>>1)P++;return 1<<P+1+y},"guessLen13b"),L.prototype.conjugate=r(function(i,f,s){if(!(s<=1))for(var y=0;y<s/2;y++){var P=i[y];i[y]=i[s-y-1],i[s-y-1]=P,P=f[y],f[y]=-f[s-y-1],f[s-y-1]=-P}},"conjugate"),L.prototype.normalize13b=r(function(i,f){for(var s=0,y=0;y<f/2;y++){var P=Math.round(i[2*y+1]/f)*8192+Math.round(i[2*y]/f)+s;i[y]=P&67108863,P<67108864?s=0:s=P/67108864|0}return i},"normalize13b"),L.prototype.convert13b=r(function(i,f,s,y){for(var P=0,j=0;j<f;j++)P=P+(i[j]|0),s[2*j]=P&8191,P=P>>>13,s[2*j+1]=P&8191,P=P>>>13;for(j=2*f;j<y;++j)s[j]=0;D(P===0),D((P&-8192)===0)},"convert13b"),L.prototype.stub=r(function(i){for(var f=new Array(i),s=0;s<i;s++)f[s]=0;return f},"stub"),L.prototype.mulp=r(function(i,f,s){var y=2*this.guessLen13b(i.length,f.length),P=this.makeRBT(y),j=this.stub(y),Y=new Array(y),M=new Array(y),u=new Array(y),K=new Array(y),ge=new Array(y),ve=new Array(y),he=s.words;he.length=y,this.convert13b(i.words,i.length,Y,y),this.convert13b(f.words,f.length,K,y),this.transform(Y,j,M,u,y,P),this.transform(K,j,ge,ve,y,P);for(var q=0;q<y;q++){var $=M[q]*ge[q]-u[q]*ve[q];u[q]=M[q]*ve[q]+u[q]*ge[q],M[q]=$}return this.conjugate(M,u,y),this.transform(M,u,he,j,y,P),this.conjugate(he,j,y),this.normalize13b(he,y),s.negative=i.negative^f.negative,s.length=i.length+f.length,s._strip()},"mulp"),d.prototype.mul=r(function(i){var f=new d(null);return f.words=new Array(this.length+i.length),this.mulTo(i,f)},"mul"),d.prototype.mulf=r(function(i){var f=new d(null);return f.words=new Array(this.length+i.length),A(this,i,f)},"mulf"),d.prototype.imul=r(function(i){return this.clone().mulTo(i,this)},"imul"),d.prototype.imuln=r(function(i){var f=i<0;f&&(i=-i),D(typeof i=="number"),D(i<67108864);for(var s=0,y=0;y<this.length;y++){var P=(this.words[y]|0)*i,j=(P&67108863)+(s&67108863);s>>=26,s+=P/67108864|0,s+=j>>>26,this.words[y]=j&67108863}return s!==0&&(this.words[y]=s,this.length++),f?this.ineg():this},"imuln"),d.prototype.muln=r(function(i){return this.clone().imuln(i)},"muln"),d.prototype.sqr=r(function(){return this.mul(this)},"sqr"),d.prototype.isqr=r(function(){return this.imul(this.clone())},"isqr"),d.prototype.pow=r(function(i){var f=x(i);if(f.length===0)return new d(1);for(var s=this,y=0;y<f.length&&f[y]===0;y++,s=s.sqr());if(++y<f.length)for(var P=s.sqr();y<f.length;y++,P=P.sqr())f[y]!==0&&(s=s.mul(P));return s},"pow"),d.prototype.iushln=r(function(i){D(typeof i=="number"&&i>=0);var f=i%26,s=(i-f)/26,y=67108863>>>26-f<<26-f,P;if(f!==0){var j=0;for(P=0;P<this.length;P++){var Y=this.words[P]&y,M=(this.words[P]|0)-Y<<f;this.words[P]=M|j,j=Y>>>26-f}j&&(this.words[P]=j,this.length++)}if(s!==0){for(P=this.length-1;P>=0;P--)this.words[P+s]=this.words[P];for(P=0;P<s;P++)this.words[P]=0;this.length+=s}return this._strip()},"iushln"),d.prototype.ishln=r(function(i){return D(this.negative===0),this.iushln(i)},"ishln"),d.prototype.iushrn=r(function(i,f,s){D(typeof i=="number"&&i>=0);var y;f?y=(f-f%26)/26:y=0;var P=i%26,j=Math.min((i-P)/26,this.length),Y=67108863^67108863>>>P<<P,M=s;if(y-=j,y=Math.max(0,y),M){for(var u=0;u<j;u++)M.words[u]=this.words[u];M.length=j}if(j!==0)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var K=0;for(u=this.length-1;u>=0&&(K!==0||u>=y);u--){var ge=this.words[u]|0;this.words[u]=K<<26-P|ge>>>P,K=ge&Y}return M&&K!==0&&(M.words[M.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},"iushrn"),d.prototype.ishrn=r(function(i,f,s){return D(this.negative===0),this.iushrn(i,f,s)},"ishrn"),d.prototype.shln=r(function(i){return this.clone().ishln(i)},"shln"),d.prototype.ushln=r(function(i){return this.clone().iushln(i)},"ushln"),d.prototype.shrn=r(function(i){return this.clone().ishrn(i)},"shrn"),d.prototype.ushrn=r(function(i){return this.clone().iushrn(i)},"ushrn"),d.prototype.testn=r(function(i){D(typeof i=="number"&&i>=0);var f=i%26,s=(i-f)/26,y=1<<f;if(this.length<=s)return!1;var P=this.words[s];return!!(P&y)},"testn"),d.prototype.imaskn=r(function(i){D(typeof i=="number"&&i>=0);var f=i%26,s=(i-f)/26;if(D(this.negative===0,"imaskn works only with positive numbers"),this.length<=s)return this;if(f!==0&&s++,this.length=Math.min(s,this.length),f!==0){var y=67108863^67108863>>>f<<f;this.words[this.length-1]&=y}return this._strip()},"imaskn"),d.prototype.maskn=r(function(i){return this.clone().imaskn(i)},"maskn"),d.prototype.iaddn=r(function(i){return D(typeof i=="number"),D(i<67108864),i<0?this.isubn(-i):this.negative!==0?this.length===1&&(this.words[0]|0)<=i?(this.words[0]=i-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},"iaddn"),d.prototype._iaddn=r(function(i){this.words[0]+=i;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},"_iaddn"),d.prototype.isubn=r(function(i){if(D(typeof i=="number"),D(i<67108864),i<0)return this.iaddn(-i);if(this.negative!==0)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this._strip()},"isubn"),d.prototype.addn=r(function(i){return this.clone().iaddn(i)},"addn"),d.prototype.subn=r(function(i){return this.clone().isubn(i)},"subn"),d.prototype.iabs=r(function(){return this.negative=0,this},"iabs"),d.prototype.abs=r(function(){return this.clone().iabs()},"abs"),d.prototype._ishlnsubmul=r(function(i,f,s){var y=i.length+s,P;this._expand(y);var j,Y=0;for(P=0;P<i.length;P++){j=(this.words[P+s]|0)+Y;var M=(i.words[P]|0)*f;j-=M&67108863,Y=(j>>26)-(M/67108864|0),this.words[P+s]=j&67108863}for(;P<this.length-s;P++)j=(this.words[P+s]|0)+Y,Y=j>>26,this.words[P+s]=j&67108863;if(Y===0)return this._strip();for(D(Y===-1),Y=0,P=0;P<this.length;P++)j=-(this.words[P]|0)+Y,Y=j>>26,this.words[P]=j&67108863;return this.negative=1,this._strip()},"_ishlnsubmul"),d.prototype._wordDiv=r(function(i,f){var s=this.length-i.length,y=this.clone(),P=i,j=P.words[P.length-1]|0,Y=this._countBits(j);s=26-Y,s!==0&&(P=P.ushln(s),y.iushln(s),j=P.words[P.length-1]|0);var M=y.length-P.length,u;if(f!=="mod"){u=new d(null),u.length=M+1,u.words=new Array(u.length);for(var K=0;K<u.length;K++)u.words[K]=0}var ge=y.clone()._ishlnsubmul(P,1,M);ge.negative===0&&(y=ge,u&&(u.words[M]=1));for(var ve=M-1;ve>=0;ve--){var he=(y.words[P.length+ve]|0)*67108864+(y.words[P.length+ve-1]|0);for(he=Math.min(he/j|0,67108863),y._ishlnsubmul(P,he,ve);y.negative!==0;)he--,y.negative=0,y._ishlnsubmul(P,1,ve),y.isZero()||(y.negative^=1);u&&(u.words[ve]=he)}return u&&u._strip(),y._strip(),f!=="div"&&s!==0&&y.iushrn(s),{div:u||null,mod:y}},"_wordDiv"),d.prototype.divmod=r(function(i,f,s){if(D(!i.isZero()),this.isZero())return{div:new d(0),mod:new d(0)};var y,P,j;return this.negative!==0&&i.negative===0?(j=this.neg().divmod(i,f),f!=="mod"&&(y=j.div.neg()),f!=="div"&&(P=j.mod.neg(),s&&P.negative!==0&&P.iadd(i)),{div:y,mod:P}):this.negative===0&&i.negative!==0?(j=this.divmod(i.neg(),f),f!=="mod"&&(y=j.div.neg()),{div:y,mod:j.mod}):this.negative&i.negative?(j=this.neg().divmod(i.neg(),f),f!=="div"&&(P=j.mod.neg(),s&&P.negative!==0&&P.isub(i)),{div:j.div,mod:P}):i.length>this.length||this.cmp(i)<0?{div:new d(0),mod:this}:i.length===1?f==="div"?{div:this.divn(i.words[0]),mod:null}:f==="mod"?{div:null,mod:new d(this.modrn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new d(this.modrn(i.words[0]))}:this._wordDiv(i,f)},"divmod"),d.prototype.div=r(function(i){return this.divmod(i,"div",!1).div},"div"),d.prototype.mod=r(function(i){return this.divmod(i,"mod",!1).mod},"mod"),d.prototype.umod=r(function(i){return this.divmod(i,"mod",!0).mod},"umod"),d.prototype.divRound=r(function(i){var f=this.divmod(i);if(f.mod.isZero())return f.div;var s=f.div.negative!==0?f.mod.isub(i):f.mod,y=i.ushrn(1),P=i.andln(1),j=s.cmp(y);return j<0||P===1&&j===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},"divRound"),d.prototype.modrn=r(function(i){var f=i<0;f&&(i=-i),D(i<=67108863);for(var s=(1<<26)%i,y=0,P=this.length-1;P>=0;P--)y=(s*y+(this.words[P]|0))%i;return f?-y:y},"modrn"),d.prototype.modn=r(function(i){return this.modrn(i)},"modn"),d.prototype.idivn=r(function(i){var f=i<0;f&&(i=-i),D(i<=67108863);for(var s=0,y=this.length-1;y>=0;y--){var P=(this.words[y]|0)+s*67108864;this.words[y]=P/i|0,s=P%i}return this._strip(),f?this.ineg():this},"idivn"),d.prototype.divn=r(function(i){return this.clone().idivn(i)},"divn"),d.prototype.egcd=r(function(i){D(i.negative===0),D(!i.isZero());var f=this,s=i.clone();f.negative!==0?f=f.umod(i):f=f.clone();for(var y=new d(1),P=new d(0),j=new d(0),Y=new d(1),M=0;f.isEven()&&s.isEven();)f.iushrn(1),s.iushrn(1),++M;for(var u=s.clone(),K=f.clone();!f.isZero();){for(var ge=0,ve=1;!(f.words[0]&ve)&&ge<26;++ge,ve<<=1);if(ge>0)for(f.iushrn(ge);ge-- >0;)(y.isOdd()||P.isOdd())&&(y.iadd(u),P.isub(K)),y.iushrn(1),P.iushrn(1);for(var he=0,q=1;!(s.words[0]&q)&&he<26;++he,q<<=1);if(he>0)for(s.iushrn(he);he-- >0;)(j.isOdd()||Y.isOdd())&&(j.iadd(u),Y.isub(K)),j.iushrn(1),Y.iushrn(1);f.cmp(s)>=0?(f.isub(s),y.isub(j),P.isub(Y)):(s.isub(f),j.isub(y),Y.isub(P))}return{a:j,b:Y,gcd:s.iushln(M)}},"egcd"),d.prototype._invmp=r(function(i){D(i.negative===0),D(!i.isZero());var f=this,s=i.clone();f.negative!==0?f=f.umod(i):f=f.clone();for(var y=new d(1),P=new d(0),j=s.clone();f.cmpn(1)>0&&s.cmpn(1)>0;){for(var Y=0,M=1;!(f.words[0]&M)&&Y<26;++Y,M<<=1);if(Y>0)for(f.iushrn(Y);Y-- >0;)y.isOdd()&&y.iadd(j),y.iushrn(1);for(var u=0,K=1;!(s.words[0]&K)&&u<26;++u,K<<=1);if(u>0)for(s.iushrn(u);u-- >0;)P.isOdd()&&P.iadd(j),P.iushrn(1);f.cmp(s)>=0?(f.isub(s),y.isub(P)):(s.isub(f),P.isub(y))}var ge;return f.cmpn(1)===0?ge=y:ge=P,ge.cmpn(0)<0&&ge.iadd(i),ge},"_invmp"),d.prototype.gcd=r(function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var f=this.clone(),s=i.clone();f.negative=0,s.negative=0;for(var y=0;f.isEven()&&s.isEven();y++)f.iushrn(1),s.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;s.isEven();)s.iushrn(1);var P=f.cmp(s);if(P<0){var j=f;f=s,s=j}else if(P===0||s.cmpn(1)===0)break;f.isub(s)}while(!0);return s.iushln(y)},"gcd"),d.prototype.invm=r(function(i){return this.egcd(i).a.umod(i)},"invm"),d.prototype.isEven=r(function(){return(this.words[0]&1)===0},"isEven"),d.prototype.isOdd=r(function(){return(this.words[0]&1)===1},"isOdd"),d.prototype.andln=r(function(i){return this.words[0]&i},"andln"),d.prototype.bincn=r(function(i){D(typeof i=="number");var f=i%26,s=(i-f)/26,y=1<<f;if(this.length<=s)return this._expand(s+1),this.words[s]|=y,this;for(var P=y,j=s;P!==0&&j<this.length;j++){var Y=this.words[j]|0;Y+=P,P=Y>>>26,Y&=67108863,this.words[j]=Y}return P!==0&&(this.words[j]=P,this.length++),this},"bincn"),d.prototype.isZero=r(function(){return this.length===1&&this.words[0]===0},"isZero"),d.prototype.cmpn=r(function(i){var f=i<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this._strip();var s;if(this.length>1)s=1;else{f&&(i=-i),D(i<=67108863,"Number is too big");var y=this.words[0]|0;s=y===i?0:y<i?-1:1}return this.negative!==0?-s|0:s},"cmpn"),d.prototype.cmp=r(function(i){if(this.negative!==0&&i.negative===0)return-1;if(this.negative===0&&i.negative!==0)return 1;var f=this.ucmp(i);return this.negative!==0?-f|0:f},"cmp"),d.prototype.ucmp=r(function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var f=0,s=this.length-1;s>=0;s--){var y=this.words[s]|0,P=i.words[s]|0;if(y!==P){y<P?f=-1:y>P&&(f=1);break}}return f},"ucmp"),d.prototype.gtn=r(function(i){return this.cmpn(i)===1},"gtn"),d.prototype.gt=r(function(i){return this.cmp(i)===1},"gt"),d.prototype.gten=r(function(i){return this.cmpn(i)>=0},"gten"),d.prototype.gte=r(function(i){return this.cmp(i)>=0},"gte"),d.prototype.ltn=r(function(i){return this.cmpn(i)===-1},"ltn"),d.prototype.lt=r(function(i){return this.cmp(i)===-1},"lt"),d.prototype.lten=r(function(i){return this.cmpn(i)<=0},"lten"),d.prototype.lte=r(function(i){return this.cmp(i)<=0},"lte"),d.prototype.eqn=r(function(i){return this.cmpn(i)===0},"eqn"),d.prototype.eq=r(function(i){return this.cmp(i)===0},"eq"),d.red=r(function(i){return new ye(i)},"red"),d.prototype.toRed=r(function(i){return D(!this.red,"Already a number in reduction context"),D(this.negative===0,"red works only with positives"),i.convertTo(this)._forceRed(i)},"toRed"),d.prototype.fromRed=r(function(){return D(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},"fromRed"),d.prototype._forceRed=r(function(i){return this.red=i,this},"_forceRed"),d.prototype.forceRed=r(function(i){return D(!this.red,"Already a number in reduction context"),this._forceRed(i)},"forceRed"),d.prototype.redAdd=r(function(i){return D(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},"redAdd"),d.prototype.redIAdd=r(function(i){return D(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},"redIAdd"),d.prototype.redSub=r(function(i){return D(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},"redSub"),d.prototype.redISub=r(function(i){return D(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},"redISub"),d.prototype.redShl=r(function(i){return D(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},"redShl"),d.prototype.redMul=r(function(i){return D(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},"redMul"),d.prototype.redIMul=r(function(i){return D(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},"redIMul"),d.prototype.redSqr=r(function(){return D(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},"redSqr"),d.prototype.redISqr=r(function(){return D(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},"redISqr"),d.prototype.redSqrt=r(function(){return D(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},"redSqrt"),d.prototype.redInvm=r(function(){return D(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},"redInvm"),d.prototype.redNeg=r(function(){return D(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},"redNeg"),d.prototype.redPow=r(function(i){return D(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)},"redPow");var V={k256:null,p224:null,p192:null,p25519:null};function G(S,i){this.name=S,this.p=new d(i,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}r(G,"MPrime"),G.prototype._tmp=r(function(){var i=new d(null);return i.words=new Array(Math.ceil(this.n/13)),i},"_tmp"),G.prototype.ireduce=r(function(i){var f=i,s;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),s=f.bitLength();while(s>this.n);var y=s<this.n?-1:f.ucmp(this.p);return y===0?(f.words[0]=0,f.length=1):y>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},"ireduce"),G.prototype.split=r(function(i,f){i.iushrn(this.n,0,f)},"split"),G.prototype.imulK=r(function(i){return i.imul(this.k)},"imulK");function X(){G.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}r(X,"K256"),F(X,G),X.prototype.split=r(function(i,f){for(var s=4194303,y=Math.min(i.length,9),P=0;P<y;P++)f.words[P]=i.words[P];if(f.length=y,i.length<=9){i.words[0]=0,i.length=1;return}var j=i.words[9];for(f.words[f.length++]=j&s,P=10;P<i.length;P++){var Y=i.words[P]|0;i.words[P-10]=(Y&s)<<4|j>>>22,j=Y}j>>>=22,i.words[P-10]=j,j===0&&i.length>10?i.length-=10:i.length-=9},"split"),X.prototype.imulK=r(function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var f=0,s=0;s<i.length;s++){var y=i.words[s]|0;f+=y*977,i.words[s]=f&67108863,f=y*64+(f/67108864|0)}return i.words[i.length-1]===0&&(i.length--,i.words[i.length-1]===0&&i.length--),i},"imulK");function fe(){G.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}r(fe,"P224"),F(fe,G);function ae(){G.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}r(ae,"P192"),F(ae,G);function me(){G.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}r(me,"P25519"),F(me,G),me.prototype.imulK=r(function(i){for(var f=0,s=0;s<i.length;s++){var y=(i.words[s]|0)*19+f,P=y&67108863;y>>>=26,i.words[s]=P,f=y}return f!==0&&(i.words[i.length++]=f),i},"imulK"),d._prime=r(function(i){if(V[i])return V[i];var f;if(i==="k256")f=new X;else if(i==="p224")f=new fe;else if(i==="p192")f=new ae;else if(i==="p25519")f=new me;else throw new Error("Unknown prime "+i);return V[i]=f,f},"prime");function ye(S){if(typeof S=="string"){var i=d._prime(S);this.m=i.p,this.prime=i}else D(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}r(ye,"Red"),ye.prototype._verify1=r(function(i){D(i.negative===0,"red works only with positives"),D(i.red,"red works only with red numbers")},"_verify1"),ye.prototype._verify2=r(function(i,f){D((i.negative|f.negative)===0,"red works only with positives"),D(i.red&&i.red===f.red,"red works only with red numbers")},"_verify2"),ye.prototype.imod=r(function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):(h(i,i.umod(this.m)._forceRed(this)),i)},"imod"),ye.prototype.neg=r(function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},"neg"),ye.prototype.add=r(function(i,f){this._verify2(i,f);var s=i.add(f);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},"add"),ye.prototype.iadd=r(function(i,f){this._verify2(i,f);var s=i.iadd(f);return s.cmp(this.m)>=0&&s.isub(this.m),s},"iadd"),ye.prototype.sub=r(function(i,f){this._verify2(i,f);var s=i.sub(f);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},"sub"),ye.prototype.isub=r(function(i,f){this._verify2(i,f);var s=i.isub(f);return s.cmpn(0)<0&&s.iadd(this.m),s},"isub"),ye.prototype.shl=r(function(i,f){return this._verify1(i),this.imod(i.ushln(f))},"shl"),ye.prototype.imul=r(function(i,f){return this._verify2(i,f),this.imod(i.imul(f))},"imul"),ye.prototype.mul=r(function(i,f){return this._verify2(i,f),this.imod(i.mul(f))},"mul"),ye.prototype.isqr=r(function(i){return this.imul(i,i.clone())},"isqr"),ye.prototype.sqr=r(function(i){return this.mul(i,i)},"sqr"),ye.prototype.sqrt=r(function(i){if(i.isZero())return i.clone();var f=this.m.andln(3);if(D(f%2===1),f===3){var s=this.m.add(new d(1)).iushrn(2);return this.pow(i,s)}for(var y=this.m.subn(1),P=0;!y.isZero()&&y.andln(1)===0;)P++,y.iushrn(1);D(!y.isZero());var j=new d(1).toRed(this),Y=j.redNeg(),M=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);this.pow(u,M).cmp(Y)!==0;)u.redIAdd(Y);for(var K=this.pow(u,y),ge=this.pow(i,y.addn(1).iushrn(1)),ve=this.pow(i,y),he=P;ve.cmp(j)!==0;){for(var q=ve,$=0;q.cmp(j)!==0;$++)q=q.redSqr();D($<he);var oe=this.pow(K,new d(1).iushln(he-$-1));ge=ge.redMul(oe),K=oe.redSqr(),ve=ve.redMul(K),he=$}return ge},"sqrt"),ye.prototype.invm=r(function(i){var f=i._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},"invm"),ye.prototype.pow=r(function(i,f){if(f.isZero())return new d(1).toRed(this);if(f.cmpn(1)===0)return i.clone();var s=4,y=new Array(1<<s);y[0]=new d(1).toRed(this),y[1]=i;for(var P=2;P<y.length;P++)y[P]=this.mul(y[P-1],i);var j=y[0],Y=0,M=0,u=f.bitLength()%26;for(u===0&&(u=26),P=f.length-1;P>=0;P--){for(var K=f.words[P],ge=u-1;ge>=0;ge--){var ve=K>>ge&1;if(j!==y[0]&&(j=this.sqr(j)),ve===0&&Y===0){M=0;continue}Y<<=1,Y|=ve,M++,!(M!==s&&(P!==0||ge!==0))&&(j=this.mul(j,y[Y]),M=0,Y=0)}u=26}return j},"pow"),ye.prototype.convertTo=r(function(i){var f=i.umod(this.m);return f===i?f.clone():f},"convertTo"),ye.prototype.convertFrom=r(function(i){var f=i.clone();return f.red=null,f},"convertFrom"),d.mont=r(function(i){return new ee(i)},"mont");function ee(S){ye.call(this,S),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new d(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}r(ee,"Mont"),F(ee,ye),ee.prototype.convertTo=r(function(i){return this.imod(i.ushln(this.shift))},"convertTo"),ee.prototype.convertFrom=r(function(i){var f=this.imod(i.mul(this.rinv));return f.red=null,f},"convertFrom"),ee.prototype.imul=r(function(i,f){if(i.isZero()||f.isZero())return i.words[0]=0,i.length=1,i;var s=i.imul(f),y=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=s.isub(y).iushrn(this.shift),j=P;return P.cmp(this.m)>=0?j=P.isub(this.m):P.cmpn(0)<0&&(j=P.iadd(this.m)),j._forceRed(this)},"imul"),ee.prototype.mul=r(function(i,f){if(i.isZero()||f.isZero())return new d(0)._forceRed(this);var s=i.mul(f),y=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=s.isub(y).iushrn(this.shift),j=P;return P.cmp(this.m)>=0?j=P.isub(this.m):P.cmpn(0)<0&&(j=P.iadd(this.m)),j._forceRed(this)},"mul"),ee.prototype.invm=r(function(i){var f=this.imod(i._invmp(this.m).mul(this.r2));return f._forceRed(this)},"invm")}(ne,this)},9931:(ne,te,N)=>{var O;ne.exports=r(function(d){return O||(O=new J(null)),O.generate(d)},"rand");function J(F){this.rand=F}if(r(J,"Rand"),ne.exports.Rand=J,J.prototype.generate=r(function(d){return this._rand(d)},"generate"),J.prototype._rand=r(function(d){if(this.rand.getBytes)return this.rand.getBytes(d);for(var p=new Uint8Array(d),b=0;b<p.length;b++)p[b]=this.rand.getByte();return p},"_rand"),typeof self=="object")self.crypto&&self.crypto.getRandomValues?J.prototype._rand=r(function(d){var p=new Uint8Array(d);return self.crypto.getRandomValues(p),p},"_rand"):self.msCrypto&&self.msCrypto.getRandomValues?J.prototype._rand=r(function(d){var p=new Uint8Array(d);return self.msCrypto.getRandomValues(p),p},"_rand"):typeof window=="object"&&(J.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var D=N(9214);if(typeof D.randomBytes!="function")throw new Error("Not supported");J.prototype._rand=r(function(d){return D.randomBytes(d)},"_rand")}catch{}},7191:(ne,te,N)=>{const O=N(8162),J="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";ne.exports=O(J)},8764:(ne,te,N)=>{/*!
1
+ var vt=Object.defineProperty;var r=(re,te)=>vt(re,"name",{value:te,configurable:!0});var yt={4297:re=>{re.exports=te;function te(N){this._tables[0][0][0]||this._precompute();var O,J,D,F=this._tables[0][4],d=this._tables[1],b=N.length,m=1;if(b!==4&&b!==6&&b!==8)throw new Error("invalid aes key size");this._key=[J=N.slice(0),D=[]];for(var C=b;C<4*b+28;C++)O=J[C-1],(C%b===0||b===8&&C%b===4)&&(O=F[O>>>24]<<24^F[O>>16&255]<<16^F[O>>8&255]<<8^F[O&255],C%b===0&&(O=O<<8^O>>>24^m<<24,m=m<<1^(m>>7)*283)),J[C]=J[C-b]^O;for(var k=0;C;k++,C--)O=J[k&3?C:C-4],C<=4||k<4?D[k]=O:D[k]=d[0][F[O>>>24]]^d[1][F[O>>16&255]]^d[2][F[O>>8&255]]^d[3][F[O&255]]}r(te,"AES"),te.prototype={encrypt:function(N){return this._crypt(N,0)},decrypt:function(N){return this._crypt(N,1)},_tables:[[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)]],_precompute:function(){var N=this._tables[0],O=this._tables[1],J=N[4],D=O[4],F,d,b,m=new Uint8Array(256),C=new Uint8Array(256),k,c,a,B,l,S;for(F=0;F<256;F++)C[(m[F]=F<<1^(F>>7)*283)^F]=F;for(d=b=0;!J[d];d^=k||1,b=C[b]||1)for(B=b^b<<1^b<<2^b<<3^b<<4,B=B>>8^B&255^99,J[d]=B,D[B]=d,a=m[c=m[k=m[d]]],S=a*16843009^c*65537^k*257^d*16843008,l=m[B]*257^B*16843008,F=0;F<4;F++)N[F][d]=l=l<<24^l>>>8,O[F][B]=S=S<<24^S>>>8},_crypt:function(N,O){if(N.length!==4)throw new Error("invalid aes block size");var J=this._key[O],D=N[0]^J[0],F=N[O?3:1]^J[1],d=N[2]^J[2],b=N[O?1:3]^J[3],m,C,k,c=J.length/4-2,a,B=4,l=new Uint32Array(4),S=this._tables[O],g=S[0],w=S[1],R=S[2],y=S[3],I=S[4];for(a=0;a<c;a++)m=g[D>>>24]^w[F>>16&255]^R[d>>8&255]^y[b&255]^J[B],C=g[F>>>24]^w[d>>16&255]^R[b>>8&255]^y[D&255]^J[B+1],k=g[d>>>24]^w[b>>16&255]^R[D>>8&255]^y[F&255]^J[B+2],b=g[b>>>24]^w[D>>16&255]^R[F>>8&255]^y[d&255]^J[B+3],B+=4,D=m,F=C,d=k;for(a=0;a<4;a++)l[O?3&-a:a]=I[D>>>24]<<24^I[F>>16&255]<<16^I[d>>8&255]<<8^I[b&255]^J[B++],m=D,D=F,F=d,d=b,b=m;return l}}},8162:re=>{function te(N){if(N.length>=255)throw new TypeError("Alphabet too long");for(var O=new Uint8Array(256),J=0;J<O.length;J++)O[J]=255;for(var D=0;D<N.length;D++){var F=N.charAt(D),d=F.charCodeAt(0);if(O[d]!==255)throw new TypeError(F+" is ambiguous");O[d]=D}var b=N.length,m=N.charAt(0),C=Math.log(b)/Math.log(256),k=Math.log(256)/Math.log(b);function c(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var S=0,g=0,w=0,R=l.length;w!==R&&l[w]===0;)w++,S++;for(var y=(R-w)*k+1>>>0,I=new Uint8Array(y);w!==R;){for(var A=l[w],L=0,V=y-1;(A!==0||L<g)&&V!==-1;V--,L++)A+=256*I[V]>>>0,I[V]=A%b>>>0,A=A/b>>>0;if(A!==0)throw new Error("Non-zero carry");g=L,w++}for(var G=y-g;G!==y&&I[G]===0;)G++;for(var X=m.repeat(S);G<y;++G)X+=N.charAt(I[G]);return X}r(c,"encode");function a(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;for(var S=0,g=0,w=0;l[S]===m;)g++,S++;for(var R=(l.length-S)*C+1>>>0,y=new Uint8Array(R);l[S];){var I=O[l.charCodeAt(S)];if(I===255)return;for(var A=0,L=R-1;(I!==0||A<w)&&L!==-1;L--,A++)I+=b*y[L]>>>0,y[L]=I%256>>>0,I=I/256>>>0;if(I!==0)throw new Error("Non-zero carry");w=A,S++}for(var V=R-w;V!==R&&y[V]===0;)V++;for(var G=new Uint8Array(g+(R-V)),X=g;V!==R;)G[X++]=y[V++];return G}r(a,"decodeUnsafe");function B(l){var S=a(l);if(S)return S;throw new Error("Non-base"+b+" character")}return r(B,"decode"),{encode:c,decodeUnsafe:a,decode:B}}r(te,"base"),re.exports=te},9742:(re,te)=>{te.byteLength=m,te.toByteArray=k,te.fromByteArray=B;for(var N=[],O=[],J=typeof Uint8Array<"u"?Uint8Array:Array,D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=0,d=D.length;F<d;++F)N[F]=D[F],O[D.charCodeAt(F)]=F;O[45]=62,O[95]=63;function b(l){var S=l.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=l.indexOf("=");g===-1&&(g=S);var w=g===S?0:4-g%4;return[g,w]}r(b,"getLens");function m(l){var S=b(l),g=S[0],w=S[1];return(g+w)*3/4-w}r(m,"byteLength");function C(l,S,g){return(S+g)*3/4-g}r(C,"_byteLength");function k(l){var S,g=b(l),w=g[0],R=g[1],y=new J(C(l,w,R)),I=0,A=R>0?w-4:w,L;for(L=0;L<A;L+=4)S=O[l.charCodeAt(L)]<<18|O[l.charCodeAt(L+1)]<<12|O[l.charCodeAt(L+2)]<<6|O[l.charCodeAt(L+3)],y[I++]=S>>16&255,y[I++]=S>>8&255,y[I++]=S&255;return R===2&&(S=O[l.charCodeAt(L)]<<2|O[l.charCodeAt(L+1)]>>4,y[I++]=S&255),R===1&&(S=O[l.charCodeAt(L)]<<10|O[l.charCodeAt(L+1)]<<4|O[l.charCodeAt(L+2)]>>2,y[I++]=S>>8&255,y[I++]=S&255),y}r(k,"toByteArray");function c(l){return N[l>>18&63]+N[l>>12&63]+N[l>>6&63]+N[l&63]}r(c,"tripletToBase64");function a(l,S,g){for(var w,R=[],y=S;y<g;y+=3)w=(l[y]<<16&16711680)+(l[y+1]<<8&65280)+(l[y+2]&255),R.push(c(w));return R.join("")}r(a,"encodeChunk");function B(l){for(var S,g=l.length,w=g%3,R=[],y=16383,I=0,A=g-w;I<A;I+=y)R.push(a(l,I,I+y>A?A:I+y));return w===1?(S=l[g-1],R.push(N[S>>2]+N[S<<4&63]+"==")):w===2&&(S=(l[g-2]<<8)+l[g-1],R.push(N[S>>10]+N[S>>4&63]+N[S<<2&63]+"=")),R.join("")}r(B,"fromByteArray")},4666:(re,te,N)=>{var O=te;O.version=N(2726).i8,O.utils=N(7359),O.rand=N(9931),O.curve=N(5104),O.curves=N(4626),O.ec=N(5630)},8015:(re,te,N)=>{var O=N(3550),J=N(7359),D=J.getNAF,F=J.getJSF,d=J.assert;function b(C,k){this.type=C,this.p=new O(k.p,16),this.red=k.prime?O.red(k.prime):O.mont(this.p),this.zero=new O(0).toRed(this.red),this.one=new O(1).toRed(this.red),this.two=new O(2).toRed(this.red),this.n=k.n&&new O(k.n,16),this.g=k.g&&this.pointFromJSON(k.g,k.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var c=this.n&&this.p.div(this.n);!c||c.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}r(b,"BaseCurve"),re.exports=b,b.prototype.point=r(function(){throw new Error("Not implemented")},"point"),b.prototype.validate=r(function(){throw new Error("Not implemented")},"validate"),b.prototype._fixedNafMul=r(function(k,c){d(k.precomputed);var a=k._getDoubles(),B=D(c,1,this._bitLength),l=(1<<a.step+1)-(a.step%2===0?2:1);l/=3;for(var S=[],g=0;g<B.length;g+=a.step){for(var w=0,c=g+a.step-1;c>=g;c--)w=(w<<1)+B[c];S.push(w)}for(var R=this.jpoint(null,null,null),y=this.jpoint(null,null,null),I=l;I>0;I--){for(var g=0;g<S.length;g++){var w=S[g];w===I?y=y.mixedAdd(a.points[g]):w===-I&&(y=y.mixedAdd(a.points[g].neg()))}R=R.add(y)}return R.toP()},"_fixedNafMul"),b.prototype._wnafMul=r(function(k,c){var a=4,B=k._getNAFPoints(a);a=B.wnd;for(var l=B.points,S=D(c,a,this._bitLength),g=this.jpoint(null,null,null),w=S.length-1;w>=0;w--){for(var c=0;w>=0&&S[w]===0;w--)c++;if(w>=0&&c++,g=g.dblp(c),w<0)break;var R=S[w];d(R!==0),k.type==="affine"?R>0?g=g.mixedAdd(l[R-1>>1]):g=g.mixedAdd(l[-R-1>>1].neg()):R>0?g=g.add(l[R-1>>1]):g=g.add(l[-R-1>>1].neg())}return k.type==="affine"?g.toP():g},"_wnafMul"),b.prototype._wnafMulAdd=r(function(k,c,a,B,l){for(var S=this._wnafT1,g=this._wnafT2,w=this._wnafT3,R=0,y=0;y<B;y++){var I=c[y],A=I._getNAFPoints(k);S[y]=A.wnd,g[y]=A.points}for(var y=B-1;y>=1;y-=2){var L=y-1,V=y;if(S[L]!==1||S[V]!==1){w[L]=D(a[L],S[L],this._bitLength),w[V]=D(a[V],S[V],this._bitLength),R=Math.max(w[L].length,R),R=Math.max(w[V].length,R);continue}var G=[c[L],null,null,c[V]];c[L].y.cmp(c[V].y)===0?(G[1]=c[L].add(c[V]),G[2]=c[L].toJ().mixedAdd(c[V].neg())):c[L].y.cmp(c[V].y.redNeg())===0?(G[1]=c[L].toJ().mixedAdd(c[V]),G[2]=c[L].add(c[V].neg())):(G[1]=c[L].toJ().mixedAdd(c[V]),G[2]=c[L].toJ().mixedAdd(c[V].neg()));var X=[-3,-1,-5,-7,0,7,5,1,3],he=F(a[L],a[V]);R=Math.max(he[0].length,R),w[L]=new Array(R),w[V]=new Array(R);for(var ae=0;ae<R;ae++){var pe=he[0][ae]|0,ye=he[1][ae]|0;w[L][ae]=X[(pe+1)*3+(ye+1)],w[V][ae]=0,g[L]=G}}for(var Z=this.jpoint(null,null,null),_=this._wnafT4,y=R;y>=0;y--){for(var i=0;y>=0;){for(var f=!0,ae=0;ae<B;ae++)_[ae]=w[ae][y]|0,_[ae]!==0&&(f=!1);if(!f)break;i++,y--}if(y>=0&&i++,Z=Z.dblp(i),y<0)break;for(var ae=0;ae<B;ae++){var s=_[ae],I;s!==0&&(s>0?I=g[ae][s-1>>1]:s<0&&(I=g[ae][-s-1>>1].neg()),I.type==="affine"?Z=Z.mixedAdd(I):Z=Z.add(I))}}for(var y=0;y<B;y++)g[y]=null;return l?Z:Z.toP()},"_wnafMulAdd");function m(C,k){this.curve=C,this.type=k,this.precomputed=null}r(m,"BasePoint"),b.BasePoint=m,m.prototype.eq=r(function(){throw new Error("Not implemented")},"eq"),m.prototype.validate=r(function(){return this.curve.validate(this)},"validate"),b.prototype.decodePoint=r(function(k,c){k=J.toArray(k,c);var a=this.p.byteLength();if((k[0]===4||k[0]===6||k[0]===7)&&k.length-1===2*a){k[0]===6?d(k[k.length-1]%2===0):k[0]===7&&d(k[k.length-1]%2===1);var B=this.point(k.slice(1,1+a),k.slice(1+a,1+2*a));return B}else if((k[0]===2||k[0]===3)&&k.length-1===a)return this.pointFromX(k.slice(1,1+a),k[0]===3);throw new Error("Unknown point format")},"decodePoint"),m.prototype.encodeCompressed=r(function(k){return this.encode(k,!0)},"encodeCompressed"),m.prototype._encode=r(function(k){var c=this.curve.p.byteLength(),a=this.getX().toArray("be",c);return k?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",c))},"_encode"),m.prototype.encode=r(function(k,c){return J.encode(this._encode(c),k)},"encode"),m.prototype.precompute=r(function(k){if(this.precomputed)return this;var c={doubles:null,naf:null,beta:null};return c.naf=this._getNAFPoints(8),c.doubles=this._getDoubles(4,k),c.beta=this._getBeta(),this.precomputed=c,this},"precompute"),m.prototype._hasDoubles=r(function(k){if(!this.precomputed)return!1;var c=this.precomputed.doubles;return c?c.points.length>=Math.ceil((k.bitLength()+1)/c.step):!1},"_hasDoubles"),m.prototype._getDoubles=r(function(k,c){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],B=this,l=0;l<c;l+=k){for(var S=0;S<k;S++)B=B.dbl();a.push(B)}return{step:k,points:a}},"_getDoubles"),m.prototype._getNAFPoints=r(function(k){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var c=[this],a=(1<<k)-1,B=a===1?null:this.dbl(),l=1;l<a;l++)c[l]=c[l-1].add(B);return{wnd:k,points:c}},"_getNAFPoints"),m.prototype._getBeta=r(function(){return null},"_getBeta"),m.prototype.dblp=r(function(k){for(var c=this,a=0;a<k;a++)c=c.dbl();return c},"dblp")},5104:(re,te,N)=>{var O=te;O.base=N(8015),O.short=N(8505)},8505:(re,te,N)=>{var O=N(7359),J=N(3550),D=N(5717),F=N(8015),d=O.assert;function b(k){F.call(this,"short",k),this.a=new J(k.a,16).toRed(this.red),this.b=new J(k.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(k),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}r(b,"ShortCurve"),D(b,F),re.exports=b,b.prototype._getEndomorphism=r(function(c){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var a,B;if(c.beta)a=new J(c.beta,16).toRed(this.red);else{var l=this._getEndoRoots(this.p);a=l[0].cmp(l[1])<0?l[0]:l[1],a=a.toRed(this.red)}if(c.lambda)B=new J(c.lambda,16);else{var S=this._getEndoRoots(this.n);this.g.mul(S[0]).x.cmp(this.g.x.redMul(a))===0?B=S[0]:(B=S[1],d(this.g.mul(B).x.cmp(this.g.x.redMul(a))===0))}var g;return c.basis?g=c.basis.map(function(w){return{a:new J(w.a,16),b:new J(w.b,16)}}):g=this._getEndoBasis(B),{beta:a,lambda:B,basis:g}}},"_getEndomorphism"),b.prototype._getEndoRoots=r(function(c){var a=c===this.p?this.red:J.mont(c),B=new J(2).toRed(a).redInvm(),l=B.redNeg(),S=new J(3).toRed(a).redNeg().redSqrt().redMul(B),g=l.redAdd(S).fromRed(),w=l.redSub(S).fromRed();return[g,w]},"_getEndoRoots"),b.prototype._getEndoBasis=r(function(c){for(var a=this.n.ushrn(Math.floor(this.n.bitLength()/2)),B=c,l=this.n.clone(),S=new J(1),g=new J(0),w=new J(0),R=new J(1),y,I,A,L,V,G,X,he=0,ae,pe;B.cmpn(0)!==0;){var ye=l.div(B);ae=l.sub(ye.mul(B)),pe=w.sub(ye.mul(S));var Z=R.sub(ye.mul(g));if(!A&&ae.cmp(a)<0)y=X.neg(),I=S,A=ae.neg(),L=pe;else if(A&&++he===2)break;X=ae,l=B,B=ae,w=S,S=pe,R=g,g=Z}V=ae.neg(),G=pe;var _=A.sqr().add(L.sqr()),i=V.sqr().add(G.sqr());return i.cmp(_)>=0&&(V=y,G=I),A.negative&&(A=A.neg(),L=L.neg()),V.negative&&(V=V.neg(),G=G.neg()),[{a:A,b:L},{a:V,b:G}]},"_getEndoBasis"),b.prototype._endoSplit=r(function(c){var a=this.endo.basis,B=a[0],l=a[1],S=l.b.mul(c).divRound(this.n),g=B.b.neg().mul(c).divRound(this.n),w=S.mul(B.a),R=g.mul(l.a),y=S.mul(B.b),I=g.mul(l.b),A=c.sub(w).sub(R),L=y.add(I).neg();return{k1:A,k2:L}},"_endoSplit"),b.prototype.pointFromX=r(function(c,a){c=new J(c,16),c.red||(c=c.toRed(this.red));var B=c.redSqr().redMul(c).redIAdd(c.redMul(this.a)).redIAdd(this.b),l=B.redSqrt();if(l.redSqr().redSub(B).cmp(this.zero)!==0)throw new Error("invalid point");var S=l.fromRed().isOdd();return(a&&!S||!a&&S)&&(l=l.redNeg()),this.point(c,l)},"pointFromX"),b.prototype.validate=r(function(c){if(c.inf)return!0;var a=c.x,B=c.y,l=this.a.redMul(a),S=a.redSqr().redMul(a).redIAdd(l).redIAdd(this.b);return B.redSqr().redISub(S).cmpn(0)===0},"validate"),b.prototype._endoWnafMulAdd=r(function(c,a,B){for(var l=this._endoWnafT1,S=this._endoWnafT2,g=0;g<c.length;g++){var w=this._endoSplit(a[g]),R=c[g],y=R._getBeta();w.k1.negative&&(w.k1.ineg(),R=R.neg(!0)),w.k2.negative&&(w.k2.ineg(),y=y.neg(!0)),l[g*2]=R,l[g*2+1]=y,S[g*2]=w.k1,S[g*2+1]=w.k2}for(var I=this._wnafMulAdd(1,l,S,g*2,B),A=0;A<g*2;A++)l[A]=null,S[A]=null;return I},"_endoWnafMulAdd");function m(k,c,a,B){F.BasePoint.call(this,k,"affine"),c===null&&a===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new J(c,16),this.y=new J(a,16),B&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}r(m,"Point"),D(m,F.BasePoint),b.prototype.point=r(function(c,a,B){return new m(this,c,a,B)},"point"),b.prototype.pointFromJSON=r(function(c,a){return m.fromJSON(this,c,a)},"pointFromJSON"),m.prototype._getBeta=r(function(){if(this.curve.endo){var c=this.precomputed;if(c&&c.beta)return c.beta;var a=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(c){var B=this.curve,l=r(function(S){return B.point(S.x.redMul(B.endo.beta),S.y)},"endoMul");c.beta=a,a.precomputed={beta:null,naf:c.naf&&{wnd:c.naf.wnd,points:c.naf.points.map(l)},doubles:c.doubles&&{step:c.doubles.step,points:c.doubles.points.map(l)}}}return a}},"_getBeta"),m.prototype.toJSON=r(function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},"toJSON"),m.fromJSON=r(function(c,a,B){typeof a=="string"&&(a=JSON.parse(a));var l=c.point(a[0],a[1],B);if(!a[2])return l;function S(w){return c.point(w[0],w[1],B)}r(S,"obj2point");var g=a[2];return l.precomputed={beta:null,doubles:g.doubles&&{step:g.doubles.step,points:[l].concat(g.doubles.points.map(S))},naf:g.naf&&{wnd:g.naf.wnd,points:[l].concat(g.naf.points.map(S))}},l},"fromJSON"),m.prototype.inspect=r(function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},"inspect"),m.prototype.isInfinity=r(function(){return this.inf},"isInfinity"),m.prototype.add=r(function(c){if(this.inf)return c;if(c.inf)return this;if(this.eq(c))return this.dbl();if(this.neg().eq(c))return this.curve.point(null,null);if(this.x.cmp(c.x)===0)return this.curve.point(null,null);var a=this.y.redSub(c.y);a.cmpn(0)!==0&&(a=a.redMul(this.x.redSub(c.x).redInvm()));var B=a.redSqr().redISub(this.x).redISub(c.x),l=a.redMul(this.x.redSub(B)).redISub(this.y);return this.curve.point(B,l)},"add"),m.prototype.dbl=r(function(){if(this.inf)return this;var c=this.y.redAdd(this.y);if(c.cmpn(0)===0)return this.curve.point(null,null);var a=this.curve.a,B=this.x.redSqr(),l=c.redInvm(),S=B.redAdd(B).redIAdd(B).redIAdd(a).redMul(l),g=S.redSqr().redISub(this.x.redAdd(this.x)),w=S.redMul(this.x.redSub(g)).redISub(this.y);return this.curve.point(g,w)},"dbl"),m.prototype.getX=r(function(){return this.x.fromRed()},"getX"),m.prototype.getY=r(function(){return this.y.fromRed()},"getY"),m.prototype.mul=r(function(c){return c=new J(c,16),this.isInfinity()?this:this._hasDoubles(c)?this.curve._fixedNafMul(this,c):this.curve.endo?this.curve._endoWnafMulAdd([this],[c]):this.curve._wnafMul(this,c)},"mul"),m.prototype.mulAdd=r(function(c,a,B){var l=[this,a],S=[c,B];return this.curve.endo?this.curve._endoWnafMulAdd(l,S):this.curve._wnafMulAdd(1,l,S,2)},"mulAdd"),m.prototype.jmulAdd=r(function(c,a,B){var l=[this,a],S=[c,B];return this.curve.endo?this.curve._endoWnafMulAdd(l,S,!0):this.curve._wnafMulAdd(1,l,S,2,!0)},"jmulAdd"),m.prototype.eq=r(function(c){return this===c||this.inf===c.inf&&(this.inf||this.x.cmp(c.x)===0&&this.y.cmp(c.y)===0)},"eq"),m.prototype.neg=r(function(c){if(this.inf)return this;var a=this.curve.point(this.x,this.y.redNeg());if(c&&this.precomputed){var B=this.precomputed,l=r(function(S){return S.neg()},"negate");a.precomputed={naf:B.naf&&{wnd:B.naf.wnd,points:B.naf.points.map(l)},doubles:B.doubles&&{step:B.doubles.step,points:B.doubles.points.map(l)}}}return a},"neg"),m.prototype.toJ=r(function(){if(this.inf)return this.curve.jpoint(null,null,null);var c=this.curve.jpoint(this.x,this.y,this.curve.one);return c},"toJ");function C(k,c,a,B){F.BasePoint.call(this,k,"jacobian"),c===null&&a===null&&B===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new J(0)):(this.x=new J(c,16),this.y=new J(a,16),this.z=new J(B,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}r(C,"JPoint"),D(C,F.BasePoint),b.prototype.jpoint=r(function(c,a,B){return new C(this,c,a,B)},"jpoint"),C.prototype.toP=r(function(){if(this.isInfinity())return this.curve.point(null,null);var c=this.z.redInvm(),a=c.redSqr(),B=this.x.redMul(a),l=this.y.redMul(a).redMul(c);return this.curve.point(B,l)},"toP"),C.prototype.neg=r(function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},"neg"),C.prototype.add=r(function(c){if(this.isInfinity())return c;if(c.isInfinity())return this;var a=c.z.redSqr(),B=this.z.redSqr(),l=this.x.redMul(a),S=c.x.redMul(B),g=this.y.redMul(a.redMul(c.z)),w=c.y.redMul(B.redMul(this.z)),R=l.redSub(S),y=g.redSub(w);if(R.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=R.redSqr(),A=I.redMul(R),L=l.redMul(I),V=y.redSqr().redIAdd(A).redISub(L).redISub(L),G=y.redMul(L.redISub(V)).redISub(g.redMul(A)),X=this.z.redMul(c.z).redMul(R);return this.curve.jpoint(V,G,X)},"add"),C.prototype.mixedAdd=r(function(c){if(this.isInfinity())return c.toJ();if(c.isInfinity())return this;var a=this.z.redSqr(),B=this.x,l=c.x.redMul(a),S=this.y,g=c.y.redMul(a).redMul(this.z),w=B.redSub(l),R=S.redSub(g);if(w.cmpn(0)===0)return R.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=w.redSqr(),I=y.redMul(w),A=B.redMul(y),L=R.redSqr().redIAdd(I).redISub(A).redISub(A),V=R.redMul(A.redISub(L)).redISub(S.redMul(I)),G=this.z.redMul(w);return this.curve.jpoint(L,V,G)},"mixedAdd"),C.prototype.dblp=r(function(c){if(c===0)return this;if(this.isInfinity())return this;if(!c)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var a=this,B=0;B<c;B++)a=a.dbl();return a}for(var l=this.curve.a,S=this.curve.tinv,g=this.x,w=this.y,R=this.z,y=R.redSqr().redSqr(),I=w.redAdd(w),B=0;B<c;B++){var A=g.redSqr(),L=I.redSqr(),V=L.redSqr(),G=A.redAdd(A).redIAdd(A).redIAdd(l.redMul(y)),X=g.redMul(L),he=G.redSqr().redISub(X.redAdd(X)),ae=X.redISub(he),pe=G.redMul(ae);pe=pe.redIAdd(pe).redISub(V);var ye=I.redMul(R);B+1<c&&(y=y.redMul(V)),g=he,R=ye,I=pe}return this.curve.jpoint(g,I.redMul(S),R)},"dblp"),C.prototype.dbl=r(function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},"dbl"),C.prototype._zeroDbl=r(function(){var c,a,B;if(this.zOne){var l=this.x.redSqr(),S=this.y.redSqr(),g=S.redSqr(),w=this.x.redAdd(S).redSqr().redISub(l).redISub(g);w=w.redIAdd(w);var R=l.redAdd(l).redIAdd(l),y=R.redSqr().redISub(w).redISub(w),I=g.redIAdd(g);I=I.redIAdd(I),I=I.redIAdd(I),c=y,a=R.redMul(w.redISub(y)).redISub(I),B=this.y.redAdd(this.y)}else{var A=this.x.redSqr(),L=this.y.redSqr(),V=L.redSqr(),G=this.x.redAdd(L).redSqr().redISub(A).redISub(V);G=G.redIAdd(G);var X=A.redAdd(A).redIAdd(A),he=X.redSqr(),ae=V.redIAdd(V);ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),c=he.redISub(G).redISub(G),a=X.redMul(G.redISub(c)).redISub(ae),B=this.y.redMul(this.z),B=B.redIAdd(B)}return this.curve.jpoint(c,a,B)},"_zeroDbl"),C.prototype._threeDbl=r(function(){var c,a,B;if(this.zOne){var l=this.x.redSqr(),S=this.y.redSqr(),g=S.redSqr(),w=this.x.redAdd(S).redSqr().redISub(l).redISub(g);w=w.redIAdd(w);var R=l.redAdd(l).redIAdd(l).redIAdd(this.curve.a),y=R.redSqr().redISub(w).redISub(w);c=y;var I=g.redIAdd(g);I=I.redIAdd(I),I=I.redIAdd(I),a=R.redMul(w.redISub(y)).redISub(I),B=this.y.redAdd(this.y)}else{var A=this.z.redSqr(),L=this.y.redSqr(),V=this.x.redMul(L),G=this.x.redSub(A).redMul(this.x.redAdd(A));G=G.redAdd(G).redIAdd(G);var X=V.redIAdd(V);X=X.redIAdd(X);var he=X.redAdd(X);c=G.redSqr().redISub(he),B=this.y.redAdd(this.z).redSqr().redISub(L).redISub(A);var ae=L.redSqr();ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),ae=ae.redIAdd(ae),a=G.redMul(X.redISub(c)).redISub(ae)}return this.curve.jpoint(c,a,B)},"_threeDbl"),C.prototype._dbl=r(function(){var c=this.curve.a,a=this.x,B=this.y,l=this.z,S=l.redSqr().redSqr(),g=a.redSqr(),w=B.redSqr(),R=g.redAdd(g).redIAdd(g).redIAdd(c.redMul(S)),y=a.redAdd(a);y=y.redIAdd(y);var I=y.redMul(w),A=R.redSqr().redISub(I.redAdd(I)),L=I.redISub(A),V=w.redSqr();V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V);var G=R.redMul(L).redISub(V),X=B.redAdd(B).redMul(l);return this.curve.jpoint(A,G,X)},"_dbl"),C.prototype.trpl=r(function(){if(!this.curve.zeroA)return this.dbl().add(this);var c=this.x.redSqr(),a=this.y.redSqr(),B=this.z.redSqr(),l=a.redSqr(),S=c.redAdd(c).redIAdd(c),g=S.redSqr(),w=this.x.redAdd(a).redSqr().redISub(c).redISub(l);w=w.redIAdd(w),w=w.redAdd(w).redIAdd(w),w=w.redISub(g);var R=w.redSqr(),y=l.redIAdd(l);y=y.redIAdd(y),y=y.redIAdd(y),y=y.redIAdd(y);var I=S.redIAdd(w).redSqr().redISub(g).redISub(R).redISub(y),A=a.redMul(I);A=A.redIAdd(A),A=A.redIAdd(A);var L=this.x.redMul(R).redISub(A);L=L.redIAdd(L),L=L.redIAdd(L);var V=this.y.redMul(I.redMul(y.redISub(I)).redISub(w.redMul(R)));V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V);var G=this.z.redAdd(w).redSqr().redISub(B).redISub(R);return this.curve.jpoint(L,V,G)},"trpl"),C.prototype.mul=r(function(c,a){return c=new J(c,a),this.curve._wnafMul(this,c)},"mul"),C.prototype.eq=r(function(c){if(c.type==="affine")return this.eq(c.toJ());if(this===c)return!0;var a=this.z.redSqr(),B=c.z.redSqr();if(this.x.redMul(B).redISub(c.x.redMul(a)).cmpn(0)!==0)return!1;var l=a.redMul(this.z),S=B.redMul(c.z);return this.y.redMul(S).redISub(c.y.redMul(l)).cmpn(0)===0},"eq"),C.prototype.eqXToP=r(function(c){var a=this.z.redSqr(),B=c.toRed(this.curve.red).redMul(a);if(this.x.cmp(B)===0)return!0;for(var l=c.clone(),S=this.curve.redN.redMul(a);;){if(l.iadd(this.curve.n),l.cmp(this.curve.p)>=0)return!1;if(B.redIAdd(S),this.x.cmp(B)===0)return!0}},"eqXToP"),C.prototype.inspect=r(function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},"inspect"),C.prototype.isInfinity=r(function(){return this.z.cmpn(0)===0},"isInfinity")},4626:(re,te,N)=>{var O=te,J=N(3715),D=N(5104),F=N(7359),d=F.assert;function b(k){if(k.type!=="short")throw new Error("invalid curve type");this.curve=new D.short(k),this.g=this.curve.g,this.n=this.curve.n,this.hash=k.hash,d(this.g.validate(),"Invalid curve"),d(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r(b,"PresetCurve"),O.PresetCurve=b;function m(k,c){Object.defineProperty(O,k,{configurable:!0,enumerable:!0,get:function(){var a=new b(c);return Object.defineProperty(O,k,{configurable:!0,enumerable:!0,value:a}),a}})}r(m,"defineCurve");var C;try{C=N(2059)}catch{C=void 0}m("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:J.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",C]})},5630:(re,te,N)=>{var O=N(3550),J=N(2156),D=N(7359),F=N(4626),d=N(9931),b=D.assert,m=N(1119),C=N(1911);function k(c){if(!(this instanceof k))return new k(c);typeof c=="string"&&(b(F.hasOwnProperty(c),"Unknown curve "+c),c=F[c]),c instanceof F.PresetCurve&&(c={curve:c}),this.curve=c.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=c.curve.g,this.g.precompute(c.curve.n.bitLength()+1),this.hash=c.hash||c.curve.hash}r(k,"EC"),re.exports=k,k.prototype.keyPair=r(function(a){return new m(this,a)},"keyPair"),k.prototype.keyFromPrivate=r(function(a,B){return m.fromPrivate(this,a,B)},"keyFromPrivate"),k.prototype.keyFromPublic=r(function(a,B){return m.fromPublic(this,a,B)},"keyFromPublic"),k.prototype.genKeyPair=r(function(a){a||(a={});var B=new J({hash:this.hash,pers:a.pers,persEnc:a.persEnc||"utf8",entropy:a.entropy||d(this.hash.hmacStrength),entropyEnc:a.entropy&&a.entropyEnc||"utf8",nonce:this.n.toArray()}),l=this.n.byteLength(),S=this.n.sub(new O(2));do{var g=new O(B.generate(l));if(!(g.cmp(S)>0))return g.iaddn(1),this.keyFromPrivate(g)}while(!0)},"genKeyPair"),k.prototype._truncateToN=r(function(a,B){var l=a.byteLength()*8-this.n.bitLength();return l>0&&(a=a.ushrn(l)),!B&&a.cmp(this.n)>=0?a.sub(this.n):a},"truncateToN"),k.prototype.sign=r(function(a,B,l,S){typeof l=="object"&&(S=l,l=null),S||(S={}),B=this.keyFromPrivate(B,l),a=this._truncateToN(new O(a,16));for(var g=this.n.byteLength(),w=B.getPrivate().toArray("be",g),R=a.toArray("be",g),y=new J({hash:this.hash,entropy:w,nonce:R,pers:S.pers,persEnc:S.persEnc||"utf8"}),I=this.n.sub(new O(1)),A=0;;A++){var L=S.k?S.k(A):new O(y.generate(this.n.byteLength()));if(L=this._truncateToN(L,!0),!(L.cmpn(1)<=0||L.cmp(I)>=0)){var V=this.g.mul(L);if(!V.isInfinity()){var G=V.getX(),X=G.umod(this.n);if(X.cmpn(0)!==0){var he=L.invm(this.n).mul(X.mul(B.getPrivate()).iadd(a));if(he=he.umod(this.n),he.cmpn(0)!==0){var ae=(V.getY().isOdd()?1:0)|(G.cmp(X)!==0?2:0);return S.canonical&&he.cmp(this.nh)>0&&(he=this.n.sub(he),ae^=1),new C({r:X,s:he,recoveryParam:ae})}}}}}},"sign"),k.prototype.verify=r(function(a,B,l,S){a=this._truncateToN(new O(a,16)),l=this.keyFromPublic(l,S),B=new C(B,"hex");var g=B.r,w=B.s;if(g.cmpn(1)<0||g.cmp(this.n)>=0||w.cmpn(1)<0||w.cmp(this.n)>=0)return!1;var R=w.invm(this.n),y=R.mul(a).umod(this.n),I=R.mul(g).umod(this.n);if(!this.curve._maxwellTrick){var A=this.g.mulAdd(y,l.getPublic(),I);return A.isInfinity()?!1:A.getX().umod(this.n).cmp(g)===0}var A=this.g.jmulAdd(y,l.getPublic(),I);return A.isInfinity()?!1:A.eqXToP(g)},"verify"),k.prototype.recoverPubKey=function(c,a,B,l){b((3&B)===B,"The recovery param is more than two bits"),a=new C(a,l);var S=this.n,g=new O(c),w=a.r,R=a.s,y=B&1,I=B>>1;if(w.cmp(this.curve.p.umod(this.curve.n))>=0&&I)throw new Error("Unable to find sencond key candinate");I?w=this.curve.pointFromX(w.add(this.curve.n),y):w=this.curve.pointFromX(w,y);var A=a.r.invm(S),L=S.sub(g).mul(A).umod(S),V=R.mul(A).umod(S);return this.g.mulAdd(L,w,V)},k.prototype.getKeyRecoveryParam=function(c,a,B,l){if(a=new C(a,l),a.recoveryParam!==null)return a.recoveryParam;for(var S=0;S<4;S++){var g;try{g=this.recoverPubKey(c,a,S)}catch{continue}if(g.eq(B))return S}throw new Error("Unable to find valid recovery factor")}},1119:(re,te,N)=>{var O=N(3550),J=N(7359),D=J.assert;function F(d,b){this.ec=d,this.priv=null,this.pub=null,b.priv&&this._importPrivate(b.priv,b.privEnc),b.pub&&this._importPublic(b.pub,b.pubEnc)}r(F,"KeyPair"),re.exports=F,F.fromPublic=r(function(b,m,C){return m instanceof F?m:new F(b,{pub:m,pubEnc:C})},"fromPublic"),F.fromPrivate=r(function(b,m,C){return m instanceof F?m:new F(b,{priv:m,privEnc:C})},"fromPrivate"),F.prototype.validate=r(function(){var b=this.getPublic();return b.isInfinity()?{result:!1,reason:"Invalid public key"}:b.validate()?b.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},"validate"),F.prototype.getPublic=r(function(b,m){return typeof b=="string"&&(m=b,b=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),m?this.pub.encode(m,b):this.pub},"getPublic"),F.prototype.getPrivate=r(function(b){return b==="hex"?this.priv.toString(16,2):this.priv},"getPrivate"),F.prototype._importPrivate=r(function(b,m){this.priv=new O(b,m||16),this.priv=this.priv.umod(this.ec.curve.n)},"_importPrivate"),F.prototype._importPublic=r(function(b,m){if(b.x||b.y){this.ec.curve.type==="mont"?D(b.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&D(b.x&&b.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(b.x,b.y);return}this.pub=this.ec.curve.decodePoint(b,m)},"_importPublic"),F.prototype.derive=r(function(b){return b.mul(this.priv).getX()},"derive"),F.prototype.sign=r(function(b,m,C){return this.ec.sign(b,this,m,C)},"sign"),F.prototype.verify=r(function(b,m){return this.ec.verify(b,m,this)},"verify"),F.prototype.inspect=r(function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},"inspect")},1911:(re,te,N)=>{var O=N(3550),J=N(7359),D=J.assert;function F(k,c){if(k instanceof F)return k;this._importDER(k,c)||(D(k.r&&k.s,"Signature without r or s"),this.r=new O(k.r,16),this.s=new O(k.s,16),k.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=k.recoveryParam)}r(F,"Signature"),re.exports=F;function d(){this.place=0}r(d,"Position");function b(k,c){var a=k[c.place++];if(!(a&128))return a;for(var B=a&15,l=0,S=0,g=c.place;S<B;S++,g++)l<<=8,l|=k[g];return c.place=g,l}r(b,"getLength");function m(k){for(var c=0,a=k.length-1;!k[c]&&!(k[c+1]&128)&&c<a;)c++;return c===0?k:k.slice(c)}r(m,"rmPadding"),F.prototype._importDER=r(function(c,a){c=J.toArray(c,a);var B=new d;if(c[B.place++]!==48)return!1;var l=b(c,B);if(l+B.place!==c.length||c[B.place++]!==2)return!1;var S=b(c,B),g=c.slice(B.place,S+B.place);if(B.place+=S,c[B.place++]!==2)return!1;var w=b(c,B);if(c.length!==w+B.place)return!1;var R=c.slice(B.place,w+B.place);return g[0]===0&&g[1]&128&&(g=g.slice(1)),R[0]===0&&R[1]&128&&(R=R.slice(1)),this.r=new O(g),this.s=new O(R),this.recoveryParam=null,!0},"_importDER");function C(k,c){if(c<128){k.push(c);return}var a=1+(Math.log(c)/Math.LN2>>>3);for(k.push(a|128);--a;)k.push(c>>>(a<<3)&255);k.push(c)}r(C,"constructLength"),F.prototype.toDER=r(function(c){var a=this.r.toArray(),B=this.s.toArray();for(a[0]&128&&(a=[0].concat(a)),B[0]&128&&(B=[0].concat(B)),a=m(a),B=m(B);!B[0]&&!(B[1]&128);)B=B.slice(1);var l=[2];C(l,a.length),l=l.concat(a),l.push(2),C(l,B.length);var S=l.concat(B),g=[48];return C(g,S.length),g=g.concat(S),J.encode(g,c)},"toDER")},2059:re=>{re.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},7359:(re,te,N)=>{var O=te,J=N(3550),D=N(9746),F=N(4504);O.assert=D,O.toArray=F.toArray,O.zero2=F.zero2,O.toHex=F.toHex,O.encode=F.encode;function d(c,a,B){var l=new Array(Math.max(c.bitLength(),B)+1);l.fill(0);for(var S=1<<a+1,g=c.clone(),w=0;w<l.length;w++){var R,y=g.andln(S-1);g.isOdd()?(y>(S>>1)-1?R=(S>>1)-y:R=y,g.isubn(R)):R=0,l[w]=R,g.iushrn(1)}return l}r(d,"getNAF"),O.getNAF=d;function b(c,a){var B=[[],[]];c=c.clone(),a=a.clone();for(var l=0,S=0;c.cmpn(-l)>0||a.cmpn(-S)>0;){var g=c.andln(3)+l&3,w=a.andln(3)+S&3;g===3&&(g=-1),w===3&&(w=-1);var R;if(!(g&1))R=0;else{var y=c.andln(7)+l&7;(y===3||y===5)&&w===2?R=-g:R=g}B[0].push(R);var I;if(!(w&1))I=0;else{var y=a.andln(7)+S&7;(y===3||y===5)&&g===2?I=-w:I=w}B[1].push(I),2*l===R+1&&(l=1-l),2*S===I+1&&(S=1-S),c.iushrn(1),a.iushrn(1)}return B}r(b,"getJSF"),O.getJSF=b;function m(c,a,B){var l="_"+a;c.prototype[a]=r(function(){return this[l]!==void 0?this[l]:this[l]=B.call(this)},"cachedProperty")}r(m,"cachedProperty"),O.cachedProperty=m;function C(c){return typeof c=="string"?O.toArray(c,"hex"):c}r(C,"parseBytes"),O.parseBytes=C;function k(c){return new J(c,"hex","le")}r(k,"intFromLE"),O.intFromLE=k},3550:function(re,te,N){re=N.nmd(re),function(O,J){"use strict";function D(_,i){if(!_)throw new Error(i||"Assertion failed")}r(D,"assert");function F(_,i){_.super_=i;var f=r(function(){},"TempCtor");f.prototype=i.prototype,_.prototype=new f,_.prototype.constructor=_}r(F,"inherits");function d(_,i,f){if(d.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((i==="le"||i==="be")&&(f=i,i=10),this._init(_||0,i||10,f||"be"))}r(d,"BN"),typeof O=="object"?O.exports=d:J.BN=d,d.BN=d,d.wordSize=26;var b;try{typeof window<"u"&&typeof window.Buffer<"u"?b=window.Buffer:b=N(6601).Buffer}catch{}d.isBN=r(function(i){return i instanceof d?!0:i!==null&&typeof i=="object"&&i.constructor.wordSize===d.wordSize&&Array.isArray(i.words)},"isBN"),d.max=r(function(i,f){return i.cmp(f)>0?i:f},"max"),d.min=r(function(i,f){return i.cmp(f)<0?i:f},"min"),d.prototype._init=r(function(i,f,s){if(typeof i=="number")return this._initNumber(i,f,s);if(typeof i=="object")return this._initArray(i,f,s);f==="hex"&&(f=16),D(f===(f|0)&&f>=2&&f<=36),i=i.toString().replace(/\s+/g,"");var x=0;i[0]==="-"&&(x++,this.negative=1),x<i.length&&(f===16?this._parseHex(i,x,s):(this._parseBase(i,f,x),s==="le"&&this._initArray(this.toArray(),f,s)))},"init"),d.prototype._initNumber=r(function(i,f,s){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[i&67108863],this.length=1):i<4503599627370496?(this.words=[i&67108863,i/67108864&67108863],this.length=2):(D(i<9007199254740992),this.words=[i&67108863,i/67108864&67108863,1],this.length=3),s==="le"&&this._initArray(this.toArray(),f,s)},"_initNumber"),d.prototype._initArray=r(function(i,f,s){if(D(typeof i.length=="number"),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var P,j,Y=0;if(s==="be")for(x=i.length-1,P=0;x>=0;x-=3)j=i[x]|i[x-1]<<8|i[x-2]<<16,this.words[P]|=j<<Y&67108863,this.words[P+1]=j>>>26-Y&67108863,Y+=24,Y>=26&&(Y-=26,P++);else if(s==="le")for(x=0,P=0;x<i.length;x+=3)j=i[x]|i[x+1]<<8|i[x+2]<<16,this.words[P]|=j<<Y&67108863,this.words[P+1]=j>>>26-Y&67108863,Y+=24,Y>=26&&(Y-=26,P++);return this._strip()},"_initArray");function m(_,i){var f=_.charCodeAt(i);if(f>=48&&f<=57)return f-48;if(f>=65&&f<=70)return f-55;if(f>=97&&f<=102)return f-87;D(!1,"Invalid character in "+_)}r(m,"parseHex4Bits");function C(_,i,f){var s=m(_,f);return f-1>=i&&(s|=m(_,f-1)<<4),s}r(C,"parseHexByte"),d.prototype._parseHex=r(function(i,f,s){this.length=Math.ceil((i.length-f)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var P=0,j=0,Y;if(s==="be")for(x=i.length-1;x>=f;x-=2)Y=C(i,f,x)<<P,this.words[j]|=Y&67108863,P>=18?(P-=18,j+=1,this.words[j]|=Y>>>26):P+=8;else{var T=i.length-f;for(x=T%2===0?f+1:f;x<i.length;x+=2)Y=C(i,f,x)<<P,this.words[j]|=Y&67108863,P>=18?(P-=18,j+=1,this.words[j]|=Y>>>26):P+=8}this._strip()},"_parseHex");function k(_,i,f,s){for(var x=0,P=0,j=Math.min(_.length,f),Y=i;Y<j;Y++){var T=_.charCodeAt(Y)-48;x*=s,T>=49?P=T-49+10:T>=17?P=T-17+10:P=T,D(T>=0&&P<s,"Invalid character"),x+=P}return x}r(k,"parseBase"),d.prototype._parseBase=r(function(i,f,s){this.words=[0],this.length=1;for(var x=0,P=1;P<=67108863;P*=f)x++;x--,P=P/f|0;for(var j=i.length-s,Y=j%x,T=Math.min(j,j-Y)+s,u=0,K=s;K<T;K+=x)u=k(i,K,K+x,f),this.imuln(P),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(Y!==0){var be=1;for(u=k(i,K,i.length,f),K=0;K<Y;K++)be*=f;this.imuln(be),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},"_parseBase"),d.prototype.copy=r(function(i){i.words=new Array(this.length);for(var f=0;f<this.length;f++)i.words[f]=this.words[f];i.length=this.length,i.negative=this.negative,i.red=this.red},"copy");function c(_,i){_.words=i.words,_.length=i.length,_.negative=i.negative,_.red=i.red}if(r(c,"move"),d.prototype._move=r(function(i){c(i,this)},"_move"),d.prototype.clone=r(function(){var i=new d(null);return this.copy(i),i},"clone"),d.prototype._expand=r(function(i){for(;this.length<i;)this.words[this.length++]=0;return this},"_expand"),d.prototype._strip=r(function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},"strip"),d.prototype._normSign=r(function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},"_normSign"),typeof Symbol<"u"&&typeof Symbol.for=="function")try{d.prototype[Symbol.for("nodejs.util.inspect.custom")]=a}catch{d.prototype.inspect=a}else d.prototype.inspect=a;function a(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}r(a,"inspect");var B=["","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"],l=[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],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];d.prototype.toString=r(function(i,f){i=i||10,f=f|0||1;var s;if(i===16||i==="hex"){s="";for(var x=0,P=0,j=0;j<this.length;j++){var Y=this.words[j],T=((Y<<x|P)&16777215).toString(16);P=Y>>>24-x&16777215,x+=2,x>=26&&(x-=26,j--),P!==0||j!==this.length-1?s=B[6-T.length]+T+s:s=T+s}for(P!==0&&(s=P.toString(16)+s);s.length%f!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}if(i===(i|0)&&i>=2&&i<=36){var u=l[i],K=S[i];s="";var be=this.clone();for(be.negative=0;!be.isZero();){var me=be.modrn(K).toString(i);be=be.idivn(K),be.isZero()?s=me+s:s=B[u-me.length]+me+s}for(this.isZero()&&(s="0"+s);s.length%f!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}D(!1,"Base should be between 2 and 36")},"toString"),d.prototype.toNumber=r(function(){var i=this.words[0];return this.length===2?i+=this.words[1]*67108864:this.length===3&&this.words[2]===1?i+=4503599627370496+this.words[1]*67108864:this.length>2&&D(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-i:i},"toNumber"),d.prototype.toJSON=r(function(){return this.toString(16,2)},"toJSON"),b&&(d.prototype.toBuffer=r(function(i,f){return this.toArrayLike(b,i,f)},"toBuffer")),d.prototype.toArray=r(function(i,f){return this.toArrayLike(Array,i,f)},"toArray");var g=r(function(i,f){return i.allocUnsafe?i.allocUnsafe(f):new i(f)},"allocate");d.prototype.toArrayLike=r(function(i,f,s){this._strip();var x=this.byteLength(),P=s||Math.max(1,x);D(x<=P,"byte array longer than desired length"),D(P>0,"Requested array length <= 0");var j=g(i,P),Y=f==="le"?"LE":"BE";return this["_toArrayLike"+Y](j,x),j},"toArrayLike"),d.prototype._toArrayLikeLE=r(function(i,f){for(var s=0,x=0,P=0,j=0;P<this.length;P++){var Y=this.words[P]<<j|x;i[s++]=Y&255,s<i.length&&(i[s++]=Y>>8&255),s<i.length&&(i[s++]=Y>>16&255),j===6?(s<i.length&&(i[s++]=Y>>24&255),x=0,j=0):(x=Y>>>24,j+=2)}if(s<i.length)for(i[s++]=x;s<i.length;)i[s++]=0},"_toArrayLikeLE"),d.prototype._toArrayLikeBE=r(function(i,f){for(var s=i.length-1,x=0,P=0,j=0;P<this.length;P++){var Y=this.words[P]<<j|x;i[s--]=Y&255,s>=0&&(i[s--]=Y>>8&255),s>=0&&(i[s--]=Y>>16&255),j===6?(s>=0&&(i[s--]=Y>>24&255),x=0,j=0):(x=Y>>>24,j+=2)}if(s>=0)for(i[s--]=x;s>=0;)i[s--]=0},"_toArrayLikeBE"),Math.clz32?d.prototype._countBits=r(function(i){return 32-Math.clz32(i)},"_countBits"):d.prototype._countBits=r(function(i){var f=i,s=0;return f>=4096&&(s+=13,f>>>=13),f>=64&&(s+=7,f>>>=7),f>=8&&(s+=4,f>>>=4),f>=2&&(s+=2,f>>>=2),s+f},"_countBits"),d.prototype._zeroBits=r(function(i){if(i===0)return 26;var f=i,s=0;return f&8191||(s+=13,f>>>=13),f&127||(s+=7,f>>>=7),f&15||(s+=4,f>>>=4),f&3||(s+=2,f>>>=2),f&1||s++,s},"_zeroBits"),d.prototype.bitLength=r(function(){var i=this.words[this.length-1],f=this._countBits(i);return(this.length-1)*26+f},"bitLength");function w(_){for(var i=new Array(_.bitLength()),f=0;f<i.length;f++){var s=f/26|0,x=f%26;i[f]=_.words[s]>>>x&1}return i}r(w,"toBitArray"),d.prototype.zeroBits=r(function(){if(this.isZero())return 0;for(var i=0,f=0;f<this.length;f++){var s=this._zeroBits(this.words[f]);if(i+=s,s!==26)break}return i},"zeroBits"),d.prototype.byteLength=r(function(){return Math.ceil(this.bitLength()/8)},"byteLength"),d.prototype.toTwos=r(function(i){return this.negative!==0?this.abs().inotn(i).iaddn(1):this.clone()},"toTwos"),d.prototype.fromTwos=r(function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},"fromTwos"),d.prototype.isNeg=r(function(){return this.negative!==0},"isNeg"),d.prototype.neg=r(function(){return this.clone().ineg()},"neg"),d.prototype.ineg=r(function(){return this.isZero()||(this.negative^=1),this},"ineg"),d.prototype.iuor=r(function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var f=0;f<i.length;f++)this.words[f]=this.words[f]|i.words[f];return this._strip()},"iuor"),d.prototype.ior=r(function(i){return D((this.negative|i.negative)===0),this.iuor(i)},"ior"),d.prototype.or=r(function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},"or"),d.prototype.uor=r(function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},"uor"),d.prototype.iuand=r(function(i){var f;this.length>i.length?f=i:f=this;for(var s=0;s<f.length;s++)this.words[s]=this.words[s]&i.words[s];return this.length=f.length,this._strip()},"iuand"),d.prototype.iand=r(function(i){return D((this.negative|i.negative)===0),this.iuand(i)},"iand"),d.prototype.and=r(function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},"and"),d.prototype.uand=r(function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},"uand"),d.prototype.iuxor=r(function(i){var f,s;this.length>i.length?(f=this,s=i):(f=i,s=this);for(var x=0;x<s.length;x++)this.words[x]=f.words[x]^s.words[x];if(this!==f)for(;x<f.length;x++)this.words[x]=f.words[x];return this.length=f.length,this._strip()},"iuxor"),d.prototype.ixor=r(function(i){return D((this.negative|i.negative)===0),this.iuxor(i)},"ixor"),d.prototype.xor=r(function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},"xor"),d.prototype.uxor=r(function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},"uxor"),d.prototype.inotn=r(function(i){D(typeof i=="number"&&i>=0);var f=Math.ceil(i/26)|0,s=i%26;this._expand(f),s>0&&f--;for(var x=0;x<f;x++)this.words[x]=~this.words[x]&67108863;return s>0&&(this.words[x]=~this.words[x]&67108863>>26-s),this._strip()},"inotn"),d.prototype.notn=r(function(i){return this.clone().inotn(i)},"notn"),d.prototype.setn=r(function(i,f){D(typeof i=="number"&&i>=0);var s=i/26|0,x=i%26;return this._expand(s+1),f?this.words[s]=this.words[s]|1<<x:this.words[s]=this.words[s]&~(1<<x),this._strip()},"setn"),d.prototype.iadd=r(function(i){var f;if(this.negative!==0&&i.negative===0)return this.negative=0,f=this.isub(i),this.negative^=1,this._normSign();if(this.negative===0&&i.negative!==0)return i.negative=0,f=this.isub(i),i.negative=1,f._normSign();var s,x;this.length>i.length?(s=this,x=i):(s=i,x=this);for(var P=0,j=0;j<x.length;j++)f=(s.words[j]|0)+(x.words[j]|0)+P,this.words[j]=f&67108863,P=f>>>26;for(;P!==0&&j<s.length;j++)f=(s.words[j]|0)+P,this.words[j]=f&67108863,P=f>>>26;if(this.length=s.length,P!==0)this.words[this.length]=P,this.length++;else if(s!==this)for(;j<s.length;j++)this.words[j]=s.words[j];return this},"iadd"),d.prototype.add=r(function(i){var f;return i.negative!==0&&this.negative===0?(i.negative=0,f=this.sub(i),i.negative^=1,f):i.negative===0&&this.negative!==0?(this.negative=0,f=i.sub(this),this.negative=1,f):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},"add"),d.prototype.isub=r(function(i){if(i.negative!==0){i.negative=0;var f=this.iadd(i);return i.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var s=this.cmp(i);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,P;s>0?(x=this,P=i):(x=i,P=this);for(var j=0,Y=0;Y<P.length;Y++)f=(x.words[Y]|0)-(P.words[Y]|0)+j,j=f>>26,this.words[Y]=f&67108863;for(;j!==0&&Y<x.length;Y++)f=(x.words[Y]|0)+j,j=f>>26,this.words[Y]=f&67108863;if(j===0&&Y<x.length&&x!==this)for(;Y<x.length;Y++)this.words[Y]=x.words[Y];return this.length=Math.max(this.length,Y),x!==this&&(this.negative=1),this._strip()},"isub"),d.prototype.sub=r(function(i){return this.clone().isub(i)},"sub");function R(_,i,f){f.negative=i.negative^_.negative;var s=_.length+i.length|0;f.length=s,s=s-1|0;var x=_.words[0]|0,P=i.words[0]|0,j=x*P,Y=j&67108863,T=j/67108864|0;f.words[0]=Y;for(var u=1;u<s;u++){for(var K=T>>>26,be=T&67108863,me=Math.min(u,i.length-1),ce=Math.max(0,u-_.length+1);ce<=me;ce++){var q=u-ce|0;x=_.words[q]|0,P=i.words[ce]|0,j=x*P+be,K+=j/67108864|0,be=j&67108863}f.words[u]=be|0,T=K|0}return T!==0?f.words[u]=T|0:f.length--,f._strip()}r(R,"smallMulTo");var y=r(function(i,f,s){var x=i.words,P=f.words,j=s.words,Y=0,T,u,K,be=x[0]|0,me=be&8191,ce=be>>>13,q=x[1]|0,Q=q&8191,oe=q>>>13,we=x[2]|0,Se=we&8191,U=we>>>13,z=x[3]|0,se=z&8191,de=z>>>13,Me=x[4]|0,Ee=Me&8191,Oe=Me>>>13,Ye=x[5]|0,Pe=Ye&8191,xe=Ye>>>13,De=x[6]|0,Re=De&8191,Ce=De>>>13,We=x[7]|0,p=We&8191,o=We>>>13,h=x[8]|0,H=h&8191,$=h>>>13,ie=x[9]|0,ne=ie&8191,ge=ie>>>13,Ue=P[0]|0,ke=Ue&8191,Ne=Ue>>>13,Ke=P[1]|0,Je=Ke&8191,E=Ke>>>13,e=P[2]|0,t=e&8191,n=e>>>13,v=P[3]|0,M=v&8191,W=v>>>13,ee=P[4]|0,ue=ee&8191,le=ee>>>13,Ae=P[5]|0,_e=Ae&8191,Ie=Ae>>>13,Ge=P[6]|0,Fe=Ge&8191,Le=Ge>>>13,tt=P[7]|0,ze=tt&8191,Ve=tt>>>13,st=P[8]|0,qe=st&8191,fe=st>>>13,ve=P[9]|0,Be=ve&8191,He=ve>>>13;s.negative=i.negative^f.negative,s.length=19,T=Math.imul(me,ke),u=Math.imul(me,Ne),u=u+Math.imul(ce,ke)|0,K=Math.imul(ce,Ne);var Xe=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,T=Math.imul(Q,ke),u=Math.imul(Q,Ne),u=u+Math.imul(oe,ke)|0,K=Math.imul(oe,Ne),T=T+Math.imul(me,Je)|0,u=u+Math.imul(me,E)|0,u=u+Math.imul(ce,Je)|0,K=K+Math.imul(ce,E)|0;var Qe=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,T=Math.imul(Se,ke),u=Math.imul(Se,Ne),u=u+Math.imul(U,ke)|0,K=Math.imul(U,Ne),T=T+Math.imul(Q,Je)|0,u=u+Math.imul(Q,E)|0,u=u+Math.imul(oe,Je)|0,K=K+Math.imul(oe,E)|0,T=T+Math.imul(me,t)|0,u=u+Math.imul(me,n)|0,u=u+Math.imul(ce,t)|0,K=K+Math.imul(ce,n)|0;var Ze=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,T=Math.imul(se,ke),u=Math.imul(se,Ne),u=u+Math.imul(de,ke)|0,K=Math.imul(de,Ne),T=T+Math.imul(Se,Je)|0,u=u+Math.imul(Se,E)|0,u=u+Math.imul(U,Je)|0,K=K+Math.imul(U,E)|0,T=T+Math.imul(Q,t)|0,u=u+Math.imul(Q,n)|0,u=u+Math.imul(oe,t)|0,K=K+Math.imul(oe,n)|0,T=T+Math.imul(me,M)|0,u=u+Math.imul(me,W)|0,u=u+Math.imul(ce,M)|0,K=K+Math.imul(ce,W)|0;var $e=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+($e>>>26)|0,$e&=67108863,T=Math.imul(Ee,ke),u=Math.imul(Ee,Ne),u=u+Math.imul(Oe,ke)|0,K=Math.imul(Oe,Ne),T=T+Math.imul(se,Je)|0,u=u+Math.imul(se,E)|0,u=u+Math.imul(de,Je)|0,K=K+Math.imul(de,E)|0,T=T+Math.imul(Se,t)|0,u=u+Math.imul(Se,n)|0,u=u+Math.imul(U,t)|0,K=K+Math.imul(U,n)|0,T=T+Math.imul(Q,M)|0,u=u+Math.imul(Q,W)|0,u=u+Math.imul(oe,M)|0,K=K+Math.imul(oe,W)|0,T=T+Math.imul(me,ue)|0,u=u+Math.imul(me,le)|0,u=u+Math.imul(ce,ue)|0,K=K+Math.imul(ce,le)|0;var et=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(et>>>26)|0,et&=67108863,T=Math.imul(Pe,ke),u=Math.imul(Pe,Ne),u=u+Math.imul(xe,ke)|0,K=Math.imul(xe,Ne),T=T+Math.imul(Ee,Je)|0,u=u+Math.imul(Ee,E)|0,u=u+Math.imul(Oe,Je)|0,K=K+Math.imul(Oe,E)|0,T=T+Math.imul(se,t)|0,u=u+Math.imul(se,n)|0,u=u+Math.imul(de,t)|0,K=K+Math.imul(de,n)|0,T=T+Math.imul(Se,M)|0,u=u+Math.imul(Se,W)|0,u=u+Math.imul(U,M)|0,K=K+Math.imul(U,W)|0,T=T+Math.imul(Q,ue)|0,u=u+Math.imul(Q,le)|0,u=u+Math.imul(oe,ue)|0,K=K+Math.imul(oe,le)|0,T=T+Math.imul(me,_e)|0,u=u+Math.imul(me,Ie)|0,u=u+Math.imul(ce,_e)|0,K=K+Math.imul(ce,Ie)|0;var rt=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(rt>>>26)|0,rt&=67108863,T=Math.imul(Re,ke),u=Math.imul(Re,Ne),u=u+Math.imul(Ce,ke)|0,K=Math.imul(Ce,Ne),T=T+Math.imul(Pe,Je)|0,u=u+Math.imul(Pe,E)|0,u=u+Math.imul(xe,Je)|0,K=K+Math.imul(xe,E)|0,T=T+Math.imul(Ee,t)|0,u=u+Math.imul(Ee,n)|0,u=u+Math.imul(Oe,t)|0,K=K+Math.imul(Oe,n)|0,T=T+Math.imul(se,M)|0,u=u+Math.imul(se,W)|0,u=u+Math.imul(de,M)|0,K=K+Math.imul(de,W)|0,T=T+Math.imul(Se,ue)|0,u=u+Math.imul(Se,le)|0,u=u+Math.imul(U,ue)|0,K=K+Math.imul(U,le)|0,T=T+Math.imul(Q,_e)|0,u=u+Math.imul(Q,Ie)|0,u=u+Math.imul(oe,_e)|0,K=K+Math.imul(oe,Ie)|0,T=T+Math.imul(me,Fe)|0,u=u+Math.imul(me,Le)|0,u=u+Math.imul(ce,Fe)|0,K=K+Math.imul(ce,Le)|0;var it=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(it>>>26)|0,it&=67108863,T=Math.imul(p,ke),u=Math.imul(p,Ne),u=u+Math.imul(o,ke)|0,K=Math.imul(o,Ne),T=T+Math.imul(Re,Je)|0,u=u+Math.imul(Re,E)|0,u=u+Math.imul(Ce,Je)|0,K=K+Math.imul(Ce,E)|0,T=T+Math.imul(Pe,t)|0,u=u+Math.imul(Pe,n)|0,u=u+Math.imul(xe,t)|0,K=K+Math.imul(xe,n)|0,T=T+Math.imul(Ee,M)|0,u=u+Math.imul(Ee,W)|0,u=u+Math.imul(Oe,M)|0,K=K+Math.imul(Oe,W)|0,T=T+Math.imul(se,ue)|0,u=u+Math.imul(se,le)|0,u=u+Math.imul(de,ue)|0,K=K+Math.imul(de,le)|0,T=T+Math.imul(Se,_e)|0,u=u+Math.imul(Se,Ie)|0,u=u+Math.imul(U,_e)|0,K=K+Math.imul(U,Ie)|0,T=T+Math.imul(Q,Fe)|0,u=u+Math.imul(Q,Le)|0,u=u+Math.imul(oe,Fe)|0,K=K+Math.imul(oe,Le)|0,T=T+Math.imul(me,ze)|0,u=u+Math.imul(me,Ve)|0,u=u+Math.imul(ce,ze)|0,K=K+Math.imul(ce,Ve)|0;var nt=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(nt>>>26)|0,nt&=67108863,T=Math.imul(H,ke),u=Math.imul(H,Ne),u=u+Math.imul($,ke)|0,K=Math.imul($,Ne),T=T+Math.imul(p,Je)|0,u=u+Math.imul(p,E)|0,u=u+Math.imul(o,Je)|0,K=K+Math.imul(o,E)|0,T=T+Math.imul(Re,t)|0,u=u+Math.imul(Re,n)|0,u=u+Math.imul(Ce,t)|0,K=K+Math.imul(Ce,n)|0,T=T+Math.imul(Pe,M)|0,u=u+Math.imul(Pe,W)|0,u=u+Math.imul(xe,M)|0,K=K+Math.imul(xe,W)|0,T=T+Math.imul(Ee,ue)|0,u=u+Math.imul(Ee,le)|0,u=u+Math.imul(Oe,ue)|0,K=K+Math.imul(Oe,le)|0,T=T+Math.imul(se,_e)|0,u=u+Math.imul(se,Ie)|0,u=u+Math.imul(de,_e)|0,K=K+Math.imul(de,Ie)|0,T=T+Math.imul(Se,Fe)|0,u=u+Math.imul(Se,Le)|0,u=u+Math.imul(U,Fe)|0,K=K+Math.imul(U,Le)|0,T=T+Math.imul(Q,ze)|0,u=u+Math.imul(Q,Ve)|0,u=u+Math.imul(oe,ze)|0,K=K+Math.imul(oe,Ve)|0,T=T+Math.imul(me,qe)|0,u=u+Math.imul(me,fe)|0,u=u+Math.imul(ce,qe)|0,K=K+Math.imul(ce,fe)|0;var at=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(at>>>26)|0,at&=67108863,T=Math.imul(ne,ke),u=Math.imul(ne,Ne),u=u+Math.imul(ge,ke)|0,K=Math.imul(ge,Ne),T=T+Math.imul(H,Je)|0,u=u+Math.imul(H,E)|0,u=u+Math.imul($,Je)|0,K=K+Math.imul($,E)|0,T=T+Math.imul(p,t)|0,u=u+Math.imul(p,n)|0,u=u+Math.imul(o,t)|0,K=K+Math.imul(o,n)|0,T=T+Math.imul(Re,M)|0,u=u+Math.imul(Re,W)|0,u=u+Math.imul(Ce,M)|0,K=K+Math.imul(Ce,W)|0,T=T+Math.imul(Pe,ue)|0,u=u+Math.imul(Pe,le)|0,u=u+Math.imul(xe,ue)|0,K=K+Math.imul(xe,le)|0,T=T+Math.imul(Ee,_e)|0,u=u+Math.imul(Ee,Ie)|0,u=u+Math.imul(Oe,_e)|0,K=K+Math.imul(Oe,Ie)|0,T=T+Math.imul(se,Fe)|0,u=u+Math.imul(se,Le)|0,u=u+Math.imul(de,Fe)|0,K=K+Math.imul(de,Le)|0,T=T+Math.imul(Se,ze)|0,u=u+Math.imul(Se,Ve)|0,u=u+Math.imul(U,ze)|0,K=K+Math.imul(U,Ve)|0,T=T+Math.imul(Q,qe)|0,u=u+Math.imul(Q,fe)|0,u=u+Math.imul(oe,qe)|0,K=K+Math.imul(oe,fe)|0,T=T+Math.imul(me,Be)|0,u=u+Math.imul(me,He)|0,u=u+Math.imul(ce,Be)|0,K=K+Math.imul(ce,He)|0;var ot=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ot>>>26)|0,ot&=67108863,T=Math.imul(ne,Je),u=Math.imul(ne,E),u=u+Math.imul(ge,Je)|0,K=Math.imul(ge,E),T=T+Math.imul(H,t)|0,u=u+Math.imul(H,n)|0,u=u+Math.imul($,t)|0,K=K+Math.imul($,n)|0,T=T+Math.imul(p,M)|0,u=u+Math.imul(p,W)|0,u=u+Math.imul(o,M)|0,K=K+Math.imul(o,W)|0,T=T+Math.imul(Re,ue)|0,u=u+Math.imul(Re,le)|0,u=u+Math.imul(Ce,ue)|0,K=K+Math.imul(Ce,le)|0,T=T+Math.imul(Pe,_e)|0,u=u+Math.imul(Pe,Ie)|0,u=u+Math.imul(xe,_e)|0,K=K+Math.imul(xe,Ie)|0,T=T+Math.imul(Ee,Fe)|0,u=u+Math.imul(Ee,Le)|0,u=u+Math.imul(Oe,Fe)|0,K=K+Math.imul(Oe,Le)|0,T=T+Math.imul(se,ze)|0,u=u+Math.imul(se,Ve)|0,u=u+Math.imul(de,ze)|0,K=K+Math.imul(de,Ve)|0,T=T+Math.imul(Se,qe)|0,u=u+Math.imul(Se,fe)|0,u=u+Math.imul(U,qe)|0,K=K+Math.imul(U,fe)|0,T=T+Math.imul(Q,Be)|0,u=u+Math.imul(Q,He)|0,u=u+Math.imul(oe,Be)|0,K=K+Math.imul(oe,He)|0;var ft=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ft>>>26)|0,ft&=67108863,T=Math.imul(ne,t),u=Math.imul(ne,n),u=u+Math.imul(ge,t)|0,K=Math.imul(ge,n),T=T+Math.imul(H,M)|0,u=u+Math.imul(H,W)|0,u=u+Math.imul($,M)|0,K=K+Math.imul($,W)|0,T=T+Math.imul(p,ue)|0,u=u+Math.imul(p,le)|0,u=u+Math.imul(o,ue)|0,K=K+Math.imul(o,le)|0,T=T+Math.imul(Re,_e)|0,u=u+Math.imul(Re,Ie)|0,u=u+Math.imul(Ce,_e)|0,K=K+Math.imul(Ce,Ie)|0,T=T+Math.imul(Pe,Fe)|0,u=u+Math.imul(Pe,Le)|0,u=u+Math.imul(xe,Fe)|0,K=K+Math.imul(xe,Le)|0,T=T+Math.imul(Ee,ze)|0,u=u+Math.imul(Ee,Ve)|0,u=u+Math.imul(Oe,ze)|0,K=K+Math.imul(Oe,Ve)|0,T=T+Math.imul(se,qe)|0,u=u+Math.imul(se,fe)|0,u=u+Math.imul(de,qe)|0,K=K+Math.imul(de,fe)|0,T=T+Math.imul(Se,Be)|0,u=u+Math.imul(Se,He)|0,u=u+Math.imul(U,Be)|0,K=K+Math.imul(U,He)|0;var ht=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ht>>>26)|0,ht&=67108863,T=Math.imul(ne,M),u=Math.imul(ne,W),u=u+Math.imul(ge,M)|0,K=Math.imul(ge,W),T=T+Math.imul(H,ue)|0,u=u+Math.imul(H,le)|0,u=u+Math.imul($,ue)|0,K=K+Math.imul($,le)|0,T=T+Math.imul(p,_e)|0,u=u+Math.imul(p,Ie)|0,u=u+Math.imul(o,_e)|0,K=K+Math.imul(o,Ie)|0,T=T+Math.imul(Re,Fe)|0,u=u+Math.imul(Re,Le)|0,u=u+Math.imul(Ce,Fe)|0,K=K+Math.imul(Ce,Le)|0,T=T+Math.imul(Pe,ze)|0,u=u+Math.imul(Pe,Ve)|0,u=u+Math.imul(xe,ze)|0,K=K+Math.imul(xe,Ve)|0,T=T+Math.imul(Ee,qe)|0,u=u+Math.imul(Ee,fe)|0,u=u+Math.imul(Oe,qe)|0,K=K+Math.imul(Oe,fe)|0,T=T+Math.imul(se,Be)|0,u=u+Math.imul(se,He)|0,u=u+Math.imul(de,Be)|0,K=K+Math.imul(de,He)|0;var ct=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ct>>>26)|0,ct&=67108863,T=Math.imul(ne,ue),u=Math.imul(ne,le),u=u+Math.imul(ge,ue)|0,K=Math.imul(ge,le),T=T+Math.imul(H,_e)|0,u=u+Math.imul(H,Ie)|0,u=u+Math.imul($,_e)|0,K=K+Math.imul($,Ie)|0,T=T+Math.imul(p,Fe)|0,u=u+Math.imul(p,Le)|0,u=u+Math.imul(o,Fe)|0,K=K+Math.imul(o,Le)|0,T=T+Math.imul(Re,ze)|0,u=u+Math.imul(Re,Ve)|0,u=u+Math.imul(Ce,ze)|0,K=K+Math.imul(Ce,Ve)|0,T=T+Math.imul(Pe,qe)|0,u=u+Math.imul(Pe,fe)|0,u=u+Math.imul(xe,qe)|0,K=K+Math.imul(xe,fe)|0,T=T+Math.imul(Ee,Be)|0,u=u+Math.imul(Ee,He)|0,u=u+Math.imul(Oe,Be)|0,K=K+Math.imul(Oe,He)|0;var ut=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(ut>>>26)|0,ut&=67108863,T=Math.imul(ne,_e),u=Math.imul(ne,Ie),u=u+Math.imul(ge,_e)|0,K=Math.imul(ge,Ie),T=T+Math.imul(H,Fe)|0,u=u+Math.imul(H,Le)|0,u=u+Math.imul($,Fe)|0,K=K+Math.imul($,Le)|0,T=T+Math.imul(p,ze)|0,u=u+Math.imul(p,Ve)|0,u=u+Math.imul(o,ze)|0,K=K+Math.imul(o,Ve)|0,T=T+Math.imul(Re,qe)|0,u=u+Math.imul(Re,fe)|0,u=u+Math.imul(Ce,qe)|0,K=K+Math.imul(Ce,fe)|0,T=T+Math.imul(Pe,Be)|0,u=u+Math.imul(Pe,He)|0,u=u+Math.imul(xe,Be)|0,K=K+Math.imul(xe,He)|0;var lt=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(lt>>>26)|0,lt&=67108863,T=Math.imul(ne,Fe),u=Math.imul(ne,Le),u=u+Math.imul(ge,Fe)|0,K=Math.imul(ge,Le),T=T+Math.imul(H,ze)|0,u=u+Math.imul(H,Ve)|0,u=u+Math.imul($,ze)|0,K=K+Math.imul($,Ve)|0,T=T+Math.imul(p,qe)|0,u=u+Math.imul(p,fe)|0,u=u+Math.imul(o,qe)|0,K=K+Math.imul(o,fe)|0,T=T+Math.imul(Re,Be)|0,u=u+Math.imul(Re,He)|0,u=u+Math.imul(Ce,Be)|0,K=K+Math.imul(Ce,He)|0;var dt=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(dt>>>26)|0,dt&=67108863,T=Math.imul(ne,ze),u=Math.imul(ne,Ve),u=u+Math.imul(ge,ze)|0,K=Math.imul(ge,Ve),T=T+Math.imul(H,qe)|0,u=u+Math.imul(H,fe)|0,u=u+Math.imul($,qe)|0,K=K+Math.imul($,fe)|0,T=T+Math.imul(p,Be)|0,u=u+Math.imul(p,He)|0,u=u+Math.imul(o,Be)|0,K=K+Math.imul(o,He)|0;var pt=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(pt>>>26)|0,pt&=67108863,T=Math.imul(ne,qe),u=Math.imul(ne,fe),u=u+Math.imul(ge,qe)|0,K=Math.imul(ge,fe),T=T+Math.imul(H,Be)|0,u=u+Math.imul(H,He)|0,u=u+Math.imul($,Be)|0,K=K+Math.imul($,He)|0;var bt=(Y+T|0)+((u&8191)<<13)|0;Y=(K+(u>>>13)|0)+(bt>>>26)|0,bt&=67108863,T=Math.imul(ne,Be),u=Math.imul(ne,He),u=u+Math.imul(ge,Be)|0,K=Math.imul(ge,He);var mt=(Y+T|0)+((u&8191)<<13)|0;return Y=(K+(u>>>13)|0)+(mt>>>26)|0,mt&=67108863,j[0]=Xe,j[1]=Qe,j[2]=Ze,j[3]=$e,j[4]=et,j[5]=rt,j[6]=it,j[7]=nt,j[8]=at,j[9]=ot,j[10]=ft,j[11]=ht,j[12]=ct,j[13]=ut,j[14]=lt,j[15]=dt,j[16]=pt,j[17]=bt,j[18]=mt,Y!==0&&(j[19]=Y,s.length++),s},"comb10MulTo");Math.imul||(y=R);function I(_,i,f){f.negative=i.negative^_.negative,f.length=_.length+i.length;for(var s=0,x=0,P=0;P<f.length-1;P++){var j=x;x=0;for(var Y=s&67108863,T=Math.min(P,i.length-1),u=Math.max(0,P-_.length+1);u<=T;u++){var K=P-u,be=_.words[K]|0,me=i.words[u]|0,ce=be*me,q=ce&67108863;j=j+(ce/67108864|0)|0,q=q+Y|0,Y=q&67108863,j=j+(q>>>26)|0,x+=j>>>26,j&=67108863}f.words[P]=Y,s=j,j=x}return s!==0?f.words[P]=s:f.length--,f._strip()}r(I,"bigMulTo");function A(_,i,f){return I(_,i,f)}r(A,"jumboMulTo"),d.prototype.mulTo=r(function(i,f){var s,x=this.length+i.length;return this.length===10&&i.length===10?s=y(this,i,f):x<63?s=R(this,i,f):x<1024?s=I(this,i,f):s=A(this,i,f),s},"mulTo");function L(_,i){this.x=_,this.y=i}r(L,"FFTM"),L.prototype.makeRBT=r(function(i){for(var f=new Array(i),s=d.prototype._countBits(i)-1,x=0;x<i;x++)f[x]=this.revBin(x,s,i);return f},"makeRBT"),L.prototype.revBin=r(function(i,f,s){if(i===0||i===s-1)return i;for(var x=0,P=0;P<f;P++)x|=(i&1)<<f-P-1,i>>=1;return x},"revBin"),L.prototype.permute=r(function(i,f,s,x,P,j){for(var Y=0;Y<j;Y++)x[Y]=f[i[Y]],P[Y]=s[i[Y]]},"permute"),L.prototype.transform=r(function(i,f,s,x,P,j){this.permute(j,i,f,s,x,P);for(var Y=1;Y<P;Y<<=1)for(var T=Y<<1,u=Math.cos(2*Math.PI/T),K=Math.sin(2*Math.PI/T),be=0;be<P;be+=T)for(var me=u,ce=K,q=0;q<Y;q++){var Q=s[be+q],oe=x[be+q],we=s[be+q+Y],Se=x[be+q+Y],U=me*we-ce*Se;Se=me*Se+ce*we,we=U,s[be+q]=Q+we,x[be+q]=oe+Se,s[be+q+Y]=Q-we,x[be+q+Y]=oe-Se,q!==T&&(U=u*me-K*ce,ce=u*ce+K*me,me=U)}},"transform"),L.prototype.guessLen13b=r(function(i,f){var s=Math.max(f,i)|1,x=s&1,P=0;for(s=s/2|0;s;s=s>>>1)P++;return 1<<P+1+x},"guessLen13b"),L.prototype.conjugate=r(function(i,f,s){if(!(s<=1))for(var x=0;x<s/2;x++){var P=i[x];i[x]=i[s-x-1],i[s-x-1]=P,P=f[x],f[x]=-f[s-x-1],f[s-x-1]=-P}},"conjugate"),L.prototype.normalize13b=r(function(i,f){for(var s=0,x=0;x<f/2;x++){var P=Math.round(i[2*x+1]/f)*8192+Math.round(i[2*x]/f)+s;i[x]=P&67108863,P<67108864?s=0:s=P/67108864|0}return i},"normalize13b"),L.prototype.convert13b=r(function(i,f,s,x){for(var P=0,j=0;j<f;j++)P=P+(i[j]|0),s[2*j]=P&8191,P=P>>>13,s[2*j+1]=P&8191,P=P>>>13;for(j=2*f;j<x;++j)s[j]=0;D(P===0),D((P&-8192)===0)},"convert13b"),L.prototype.stub=r(function(i){for(var f=new Array(i),s=0;s<i;s++)f[s]=0;return f},"stub"),L.prototype.mulp=r(function(i,f,s){var x=2*this.guessLen13b(i.length,f.length),P=this.makeRBT(x),j=this.stub(x),Y=new Array(x),T=new Array(x),u=new Array(x),K=new Array(x),be=new Array(x),me=new Array(x),ce=s.words;ce.length=x,this.convert13b(i.words,i.length,Y,x),this.convert13b(f.words,f.length,K,x),this.transform(Y,j,T,u,x,P),this.transform(K,j,be,me,x,P);for(var q=0;q<x;q++){var Q=T[q]*be[q]-u[q]*me[q];u[q]=T[q]*me[q]+u[q]*be[q],T[q]=Q}return this.conjugate(T,u,x),this.transform(T,u,ce,j,x,P),this.conjugate(ce,j,x),this.normalize13b(ce,x),s.negative=i.negative^f.negative,s.length=i.length+f.length,s._strip()},"mulp"),d.prototype.mul=r(function(i){var f=new d(null);return f.words=new Array(this.length+i.length),this.mulTo(i,f)},"mul"),d.prototype.mulf=r(function(i){var f=new d(null);return f.words=new Array(this.length+i.length),A(this,i,f)},"mulf"),d.prototype.imul=r(function(i){return this.clone().mulTo(i,this)},"imul"),d.prototype.imuln=r(function(i){var f=i<0;f&&(i=-i),D(typeof i=="number"),D(i<67108864);for(var s=0,x=0;x<this.length;x++){var P=(this.words[x]|0)*i,j=(P&67108863)+(s&67108863);s>>=26,s+=P/67108864|0,s+=j>>>26,this.words[x]=j&67108863}return s!==0&&(this.words[x]=s,this.length++),f?this.ineg():this},"imuln"),d.prototype.muln=r(function(i){return this.clone().imuln(i)},"muln"),d.prototype.sqr=r(function(){return this.mul(this)},"sqr"),d.prototype.isqr=r(function(){return this.imul(this.clone())},"isqr"),d.prototype.pow=r(function(i){var f=w(i);if(f.length===0)return new d(1);for(var s=this,x=0;x<f.length&&f[x]===0;x++,s=s.sqr());if(++x<f.length)for(var P=s.sqr();x<f.length;x++,P=P.sqr())f[x]!==0&&(s=s.mul(P));return s},"pow"),d.prototype.iushln=r(function(i){D(typeof i=="number"&&i>=0);var f=i%26,s=(i-f)/26,x=67108863>>>26-f<<26-f,P;if(f!==0){var j=0;for(P=0;P<this.length;P++){var Y=this.words[P]&x,T=(this.words[P]|0)-Y<<f;this.words[P]=T|j,j=Y>>>26-f}j&&(this.words[P]=j,this.length++)}if(s!==0){for(P=this.length-1;P>=0;P--)this.words[P+s]=this.words[P];for(P=0;P<s;P++)this.words[P]=0;this.length+=s}return this._strip()},"iushln"),d.prototype.ishln=r(function(i){return D(this.negative===0),this.iushln(i)},"ishln"),d.prototype.iushrn=r(function(i,f,s){D(typeof i=="number"&&i>=0);var x;f?x=(f-f%26)/26:x=0;var P=i%26,j=Math.min((i-P)/26,this.length),Y=67108863^67108863>>>P<<P,T=s;if(x-=j,x=Math.max(0,x),T){for(var u=0;u<j;u++)T.words[u]=this.words[u];T.length=j}if(j!==0)if(this.length>j)for(this.length-=j,u=0;u<this.length;u++)this.words[u]=this.words[u+j];else this.words[0]=0,this.length=1;var K=0;for(u=this.length-1;u>=0&&(K!==0||u>=x);u--){var be=this.words[u]|0;this.words[u]=K<<26-P|be>>>P,K=be&Y}return T&&K!==0&&(T.words[T.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},"iushrn"),d.prototype.ishrn=r(function(i,f,s){return D(this.negative===0),this.iushrn(i,f,s)},"ishrn"),d.prototype.shln=r(function(i){return this.clone().ishln(i)},"shln"),d.prototype.ushln=r(function(i){return this.clone().iushln(i)},"ushln"),d.prototype.shrn=r(function(i){return this.clone().ishrn(i)},"shrn"),d.prototype.ushrn=r(function(i){return this.clone().iushrn(i)},"ushrn"),d.prototype.testn=r(function(i){D(typeof i=="number"&&i>=0);var f=i%26,s=(i-f)/26,x=1<<f;if(this.length<=s)return!1;var P=this.words[s];return!!(P&x)},"testn"),d.prototype.imaskn=r(function(i){D(typeof i=="number"&&i>=0);var f=i%26,s=(i-f)/26;if(D(this.negative===0,"imaskn works only with positive numbers"),this.length<=s)return this;if(f!==0&&s++,this.length=Math.min(s,this.length),f!==0){var x=67108863^67108863>>>f<<f;this.words[this.length-1]&=x}return this._strip()},"imaskn"),d.prototype.maskn=r(function(i){return this.clone().imaskn(i)},"maskn"),d.prototype.iaddn=r(function(i){return D(typeof i=="number"),D(i<67108864),i<0?this.isubn(-i):this.negative!==0?this.length===1&&(this.words[0]|0)<=i?(this.words[0]=i-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},"iaddn"),d.prototype._iaddn=r(function(i){this.words[0]+=i;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},"_iaddn"),d.prototype.isubn=r(function(i){if(D(typeof i=="number"),D(i<67108864),i<0)return this.iaddn(-i);if(this.negative!==0)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this._strip()},"isubn"),d.prototype.addn=r(function(i){return this.clone().iaddn(i)},"addn"),d.prototype.subn=r(function(i){return this.clone().isubn(i)},"subn"),d.prototype.iabs=r(function(){return this.negative=0,this},"iabs"),d.prototype.abs=r(function(){return this.clone().iabs()},"abs"),d.prototype._ishlnsubmul=r(function(i,f,s){var x=i.length+s,P;this._expand(x);var j,Y=0;for(P=0;P<i.length;P++){j=(this.words[P+s]|0)+Y;var T=(i.words[P]|0)*f;j-=T&67108863,Y=(j>>26)-(T/67108864|0),this.words[P+s]=j&67108863}for(;P<this.length-s;P++)j=(this.words[P+s]|0)+Y,Y=j>>26,this.words[P+s]=j&67108863;if(Y===0)return this._strip();for(D(Y===-1),Y=0,P=0;P<this.length;P++)j=-(this.words[P]|0)+Y,Y=j>>26,this.words[P]=j&67108863;return this.negative=1,this._strip()},"_ishlnsubmul"),d.prototype._wordDiv=r(function(i,f){var s=this.length-i.length,x=this.clone(),P=i,j=P.words[P.length-1]|0,Y=this._countBits(j);s=26-Y,s!==0&&(P=P.ushln(s),x.iushln(s),j=P.words[P.length-1]|0);var T=x.length-P.length,u;if(f!=="mod"){u=new d(null),u.length=T+1,u.words=new Array(u.length);for(var K=0;K<u.length;K++)u.words[K]=0}var be=x.clone()._ishlnsubmul(P,1,T);be.negative===0&&(x=be,u&&(u.words[T]=1));for(var me=T-1;me>=0;me--){var ce=(x.words[P.length+me]|0)*67108864+(x.words[P.length+me-1]|0);for(ce=Math.min(ce/j|0,67108863),x._ishlnsubmul(P,ce,me);x.negative!==0;)ce--,x.negative=0,x._ishlnsubmul(P,1,me),x.isZero()||(x.negative^=1);u&&(u.words[me]=ce)}return u&&u._strip(),x._strip(),f!=="div"&&s!==0&&x.iushrn(s),{div:u||null,mod:x}},"_wordDiv"),d.prototype.divmod=r(function(i,f,s){if(D(!i.isZero()),this.isZero())return{div:new d(0),mod:new d(0)};var x,P,j;return this.negative!==0&&i.negative===0?(j=this.neg().divmod(i,f),f!=="mod"&&(x=j.div.neg()),f!=="div"&&(P=j.mod.neg(),s&&P.negative!==0&&P.iadd(i)),{div:x,mod:P}):this.negative===0&&i.negative!==0?(j=this.divmod(i.neg(),f),f!=="mod"&&(x=j.div.neg()),{div:x,mod:j.mod}):this.negative&i.negative?(j=this.neg().divmod(i.neg(),f),f!=="div"&&(P=j.mod.neg(),s&&P.negative!==0&&P.isub(i)),{div:j.div,mod:P}):i.length>this.length||this.cmp(i)<0?{div:new d(0),mod:this}:i.length===1?f==="div"?{div:this.divn(i.words[0]),mod:null}:f==="mod"?{div:null,mod:new d(this.modrn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new d(this.modrn(i.words[0]))}:this._wordDiv(i,f)},"divmod"),d.prototype.div=r(function(i){return this.divmod(i,"div",!1).div},"div"),d.prototype.mod=r(function(i){return this.divmod(i,"mod",!1).mod},"mod"),d.prototype.umod=r(function(i){return this.divmod(i,"mod",!0).mod},"umod"),d.prototype.divRound=r(function(i){var f=this.divmod(i);if(f.mod.isZero())return f.div;var s=f.div.negative!==0?f.mod.isub(i):f.mod,x=i.ushrn(1),P=i.andln(1),j=s.cmp(x);return j<0||P===1&&j===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},"divRound"),d.prototype.modrn=r(function(i){var f=i<0;f&&(i=-i),D(i<=67108863);for(var s=(1<<26)%i,x=0,P=this.length-1;P>=0;P--)x=(s*x+(this.words[P]|0))%i;return f?-x:x},"modrn"),d.prototype.modn=r(function(i){return this.modrn(i)},"modn"),d.prototype.idivn=r(function(i){var f=i<0;f&&(i=-i),D(i<=67108863);for(var s=0,x=this.length-1;x>=0;x--){var P=(this.words[x]|0)+s*67108864;this.words[x]=P/i|0,s=P%i}return this._strip(),f?this.ineg():this},"idivn"),d.prototype.divn=r(function(i){return this.clone().idivn(i)},"divn"),d.prototype.egcd=r(function(i){D(i.negative===0),D(!i.isZero());var f=this,s=i.clone();f.negative!==0?f=f.umod(i):f=f.clone();for(var x=new d(1),P=new d(0),j=new d(0),Y=new d(1),T=0;f.isEven()&&s.isEven();)f.iushrn(1),s.iushrn(1),++T;for(var u=s.clone(),K=f.clone();!f.isZero();){for(var be=0,me=1;!(f.words[0]&me)&&be<26;++be,me<<=1);if(be>0)for(f.iushrn(be);be-- >0;)(x.isOdd()||P.isOdd())&&(x.iadd(u),P.isub(K)),x.iushrn(1),P.iushrn(1);for(var ce=0,q=1;!(s.words[0]&q)&&ce<26;++ce,q<<=1);if(ce>0)for(s.iushrn(ce);ce-- >0;)(j.isOdd()||Y.isOdd())&&(j.iadd(u),Y.isub(K)),j.iushrn(1),Y.iushrn(1);f.cmp(s)>=0?(f.isub(s),x.isub(j),P.isub(Y)):(s.isub(f),j.isub(x),Y.isub(P))}return{a:j,b:Y,gcd:s.iushln(T)}},"egcd"),d.prototype._invmp=r(function(i){D(i.negative===0),D(!i.isZero());var f=this,s=i.clone();f.negative!==0?f=f.umod(i):f=f.clone();for(var x=new d(1),P=new d(0),j=s.clone();f.cmpn(1)>0&&s.cmpn(1)>0;){for(var Y=0,T=1;!(f.words[0]&T)&&Y<26;++Y,T<<=1);if(Y>0)for(f.iushrn(Y);Y-- >0;)x.isOdd()&&x.iadd(j),x.iushrn(1);for(var u=0,K=1;!(s.words[0]&K)&&u<26;++u,K<<=1);if(u>0)for(s.iushrn(u);u-- >0;)P.isOdd()&&P.iadd(j),P.iushrn(1);f.cmp(s)>=0?(f.isub(s),x.isub(P)):(s.isub(f),P.isub(x))}var be;return f.cmpn(1)===0?be=x:be=P,be.cmpn(0)<0&&be.iadd(i),be},"_invmp"),d.prototype.gcd=r(function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var f=this.clone(),s=i.clone();f.negative=0,s.negative=0;for(var x=0;f.isEven()&&s.isEven();x++)f.iushrn(1),s.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;s.isEven();)s.iushrn(1);var P=f.cmp(s);if(P<0){var j=f;f=s,s=j}else if(P===0||s.cmpn(1)===0)break;f.isub(s)}while(!0);return s.iushln(x)},"gcd"),d.prototype.invm=r(function(i){return this.egcd(i).a.umod(i)},"invm"),d.prototype.isEven=r(function(){return(this.words[0]&1)===0},"isEven"),d.prototype.isOdd=r(function(){return(this.words[0]&1)===1},"isOdd"),d.prototype.andln=r(function(i){return this.words[0]&i},"andln"),d.prototype.bincn=r(function(i){D(typeof i=="number");var f=i%26,s=(i-f)/26,x=1<<f;if(this.length<=s)return this._expand(s+1),this.words[s]|=x,this;for(var P=x,j=s;P!==0&&j<this.length;j++){var Y=this.words[j]|0;Y+=P,P=Y>>>26,Y&=67108863,this.words[j]=Y}return P!==0&&(this.words[j]=P,this.length++),this},"bincn"),d.prototype.isZero=r(function(){return this.length===1&&this.words[0]===0},"isZero"),d.prototype.cmpn=r(function(i){var f=i<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this._strip();var s;if(this.length>1)s=1;else{f&&(i=-i),D(i<=67108863,"Number is too big");var x=this.words[0]|0;s=x===i?0:x<i?-1:1}return this.negative!==0?-s|0:s},"cmpn"),d.prototype.cmp=r(function(i){if(this.negative!==0&&i.negative===0)return-1;if(this.negative===0&&i.negative!==0)return 1;var f=this.ucmp(i);return this.negative!==0?-f|0:f},"cmp"),d.prototype.ucmp=r(function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var f=0,s=this.length-1;s>=0;s--){var x=this.words[s]|0,P=i.words[s]|0;if(x!==P){x<P?f=-1:x>P&&(f=1);break}}return f},"ucmp"),d.prototype.gtn=r(function(i){return this.cmpn(i)===1},"gtn"),d.prototype.gt=r(function(i){return this.cmp(i)===1},"gt"),d.prototype.gten=r(function(i){return this.cmpn(i)>=0},"gten"),d.prototype.gte=r(function(i){return this.cmp(i)>=0},"gte"),d.prototype.ltn=r(function(i){return this.cmpn(i)===-1},"ltn"),d.prototype.lt=r(function(i){return this.cmp(i)===-1},"lt"),d.prototype.lten=r(function(i){return this.cmpn(i)<=0},"lten"),d.prototype.lte=r(function(i){return this.cmp(i)<=0},"lte"),d.prototype.eqn=r(function(i){return this.cmpn(i)===0},"eqn"),d.prototype.eq=r(function(i){return this.cmp(i)===0},"eq"),d.red=r(function(i){return new ye(i)},"red"),d.prototype.toRed=r(function(i){return D(!this.red,"Already a number in reduction context"),D(this.negative===0,"red works only with positives"),i.convertTo(this)._forceRed(i)},"toRed"),d.prototype.fromRed=r(function(){return D(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},"fromRed"),d.prototype._forceRed=r(function(i){return this.red=i,this},"_forceRed"),d.prototype.forceRed=r(function(i){return D(!this.red,"Already a number in reduction context"),this._forceRed(i)},"forceRed"),d.prototype.redAdd=r(function(i){return D(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},"redAdd"),d.prototype.redIAdd=r(function(i){return D(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},"redIAdd"),d.prototype.redSub=r(function(i){return D(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},"redSub"),d.prototype.redISub=r(function(i){return D(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},"redISub"),d.prototype.redShl=r(function(i){return D(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},"redShl"),d.prototype.redMul=r(function(i){return D(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},"redMul"),d.prototype.redIMul=r(function(i){return D(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},"redIMul"),d.prototype.redSqr=r(function(){return D(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},"redSqr"),d.prototype.redISqr=r(function(){return D(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},"redISqr"),d.prototype.redSqrt=r(function(){return D(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},"redSqrt"),d.prototype.redInvm=r(function(){return D(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},"redInvm"),d.prototype.redNeg=r(function(){return D(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},"redNeg"),d.prototype.redPow=r(function(i){return D(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)},"redPow");var V={k256:null,p224:null,p192:null,p25519:null};function G(_,i){this.name=_,this.p=new d(i,16),this.n=this.p.bitLength(),this.k=new d(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}r(G,"MPrime"),G.prototype._tmp=r(function(){var i=new d(null);return i.words=new Array(Math.ceil(this.n/13)),i},"_tmp"),G.prototype.ireduce=r(function(i){var f=i,s;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),s=f.bitLength();while(s>this.n);var x=s<this.n?-1:f.ucmp(this.p);return x===0?(f.words[0]=0,f.length=1):x>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},"ireduce"),G.prototype.split=r(function(i,f){i.iushrn(this.n,0,f)},"split"),G.prototype.imulK=r(function(i){return i.imul(this.k)},"imulK");function X(){G.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}r(X,"K256"),F(X,G),X.prototype.split=r(function(i,f){for(var s=4194303,x=Math.min(i.length,9),P=0;P<x;P++)f.words[P]=i.words[P];if(f.length=x,i.length<=9){i.words[0]=0,i.length=1;return}var j=i.words[9];for(f.words[f.length++]=j&s,P=10;P<i.length;P++){var Y=i.words[P]|0;i.words[P-10]=(Y&s)<<4|j>>>22,j=Y}j>>>=22,i.words[P-10]=j,j===0&&i.length>10?i.length-=10:i.length-=9},"split"),X.prototype.imulK=r(function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var f=0,s=0;s<i.length;s++){var x=i.words[s]|0;f+=x*977,i.words[s]=f&67108863,f=x*64+(f/67108864|0)}return i.words[i.length-1]===0&&(i.length--,i.words[i.length-1]===0&&i.length--),i},"imulK");function he(){G.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}r(he,"P224"),F(he,G);function ae(){G.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}r(ae,"P192"),F(ae,G);function pe(){G.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}r(pe,"P25519"),F(pe,G),pe.prototype.imulK=r(function(i){for(var f=0,s=0;s<i.length;s++){var x=(i.words[s]|0)*19+f,P=x&67108863;x>>>=26,i.words[s]=P,f=x}return f!==0&&(i.words[i.length++]=f),i},"imulK"),d._prime=r(function(i){if(V[i])return V[i];var f;if(i==="k256")f=new X;else if(i==="p224")f=new he;else if(i==="p192")f=new ae;else if(i==="p25519")f=new pe;else throw new Error("Unknown prime "+i);return V[i]=f,f},"prime");function ye(_){if(typeof _=="string"){var i=d._prime(_);this.m=i.p,this.prime=i}else D(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}r(ye,"Red"),ye.prototype._verify1=r(function(i){D(i.negative===0,"red works only with positives"),D(i.red,"red works only with red numbers")},"_verify1"),ye.prototype._verify2=r(function(i,f){D((i.negative|f.negative)===0,"red works only with positives"),D(i.red&&i.red===f.red,"red works only with red numbers")},"_verify2"),ye.prototype.imod=r(function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):(c(i,i.umod(this.m)._forceRed(this)),i)},"imod"),ye.prototype.neg=r(function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},"neg"),ye.prototype.add=r(function(i,f){this._verify2(i,f);var s=i.add(f);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},"add"),ye.prototype.iadd=r(function(i,f){this._verify2(i,f);var s=i.iadd(f);return s.cmp(this.m)>=0&&s.isub(this.m),s},"iadd"),ye.prototype.sub=r(function(i,f){this._verify2(i,f);var s=i.sub(f);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},"sub"),ye.prototype.isub=r(function(i,f){this._verify2(i,f);var s=i.isub(f);return s.cmpn(0)<0&&s.iadd(this.m),s},"isub"),ye.prototype.shl=r(function(i,f){return this._verify1(i),this.imod(i.ushln(f))},"shl"),ye.prototype.imul=r(function(i,f){return this._verify2(i,f),this.imod(i.imul(f))},"imul"),ye.prototype.mul=r(function(i,f){return this._verify2(i,f),this.imod(i.mul(f))},"mul"),ye.prototype.isqr=r(function(i){return this.imul(i,i.clone())},"isqr"),ye.prototype.sqr=r(function(i){return this.mul(i,i)},"sqr"),ye.prototype.sqrt=r(function(i){if(i.isZero())return i.clone();var f=this.m.andln(3);if(D(f%2===1),f===3){var s=this.m.add(new d(1)).iushrn(2);return this.pow(i,s)}for(var x=this.m.subn(1),P=0;!x.isZero()&&x.andln(1)===0;)P++,x.iushrn(1);D(!x.isZero());var j=new d(1).toRed(this),Y=j.redNeg(),T=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new d(2*u*u).toRed(this);this.pow(u,T).cmp(Y)!==0;)u.redIAdd(Y);for(var K=this.pow(u,x),be=this.pow(i,x.addn(1).iushrn(1)),me=this.pow(i,x),ce=P;me.cmp(j)!==0;){for(var q=me,Q=0;q.cmp(j)!==0;Q++)q=q.redSqr();D(Q<ce);var oe=this.pow(K,new d(1).iushln(ce-Q-1));be=be.redMul(oe),K=oe.redSqr(),me=me.redMul(K),ce=Q}return be},"sqrt"),ye.prototype.invm=r(function(i){var f=i._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},"invm"),ye.prototype.pow=r(function(i,f){if(f.isZero())return new d(1).toRed(this);if(f.cmpn(1)===0)return i.clone();var s=4,x=new Array(1<<s);x[0]=new d(1).toRed(this),x[1]=i;for(var P=2;P<x.length;P++)x[P]=this.mul(x[P-1],i);var j=x[0],Y=0,T=0,u=f.bitLength()%26;for(u===0&&(u=26),P=f.length-1;P>=0;P--){for(var K=f.words[P],be=u-1;be>=0;be--){var me=K>>be&1;if(j!==x[0]&&(j=this.sqr(j)),me===0&&Y===0){T=0;continue}Y<<=1,Y|=me,T++,!(T!==s&&(P!==0||be!==0))&&(j=this.mul(j,x[Y]),T=0,Y=0)}u=26}return j},"pow"),ye.prototype.convertTo=r(function(i){var f=i.umod(this.m);return f===i?f.clone():f},"convertTo"),ye.prototype.convertFrom=r(function(i){var f=i.clone();return f.red=null,f},"convertFrom"),d.mont=r(function(i){return new Z(i)},"mont");function Z(_){ye.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new d(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}r(Z,"Mont"),F(Z,ye),Z.prototype.convertTo=r(function(i){return this.imod(i.ushln(this.shift))},"convertTo"),Z.prototype.convertFrom=r(function(i){var f=this.imod(i.mul(this.rinv));return f.red=null,f},"convertFrom"),Z.prototype.imul=r(function(i,f){if(i.isZero()||f.isZero())return i.words[0]=0,i.length=1,i;var s=i.imul(f),x=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=s.isub(x).iushrn(this.shift),j=P;return P.cmp(this.m)>=0?j=P.isub(this.m):P.cmpn(0)<0&&(j=P.iadd(this.m)),j._forceRed(this)},"imul"),Z.prototype.mul=r(function(i,f){if(i.isZero()||f.isZero())return new d(0)._forceRed(this);var s=i.mul(f),x=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=s.isub(x).iushrn(this.shift),j=P;return P.cmp(this.m)>=0?j=P.isub(this.m):P.cmpn(0)<0&&(j=P.iadd(this.m)),j._forceRed(this)},"mul"),Z.prototype.invm=r(function(i){var f=this.imod(i._invmp(this.m).mul(this.r2));return f._forceRed(this)},"invm")}(re,this)},9931:(re,te,N)=>{var O;re.exports=r(function(d){return O||(O=new J(null)),O.generate(d)},"rand");function J(F){this.rand=F}if(r(J,"Rand"),re.exports.Rand=J,J.prototype.generate=r(function(d){return this._rand(d)},"generate"),J.prototype._rand=r(function(d){if(this.rand.getBytes)return this.rand.getBytes(d);for(var b=new Uint8Array(d),m=0;m<b.length;m++)b[m]=this.rand.getByte();return b},"_rand"),typeof self=="object")self.crypto&&self.crypto.getRandomValues?J.prototype._rand=r(function(d){var b=new Uint8Array(d);return self.crypto.getRandomValues(b),b},"_rand"):self.msCrypto&&self.msCrypto.getRandomValues?J.prototype._rand=r(function(d){var b=new Uint8Array(d);return self.msCrypto.getRandomValues(b),b},"_rand"):typeof window=="object"&&(J.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var D=N(9214);if(typeof D.randomBytes!="function")throw new Error("Not supported");J.prototype._rand=r(function(d){return D.randomBytes(d)},"_rand")}catch{}},7191:(re,te,N)=>{const O=N(8162),J="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";re.exports=O(J)},8764:(re,te,N)=>{/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */const O=N(9742),J=N(645),D=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;te.Buffer=b,te.SlowBuffer=v,te.INSPECT_MAX_BYTES=50;const F=2147483647;te.kMaxLength=F,b.TYPED_ARRAY_SUPPORT=d(),!b.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const _=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(_,o),_.foo()===42}catch{return!1}}r(d,"typedArraySupport"),Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.buffer}}),Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.byteOffset}});function p(_){if(_>F)throw new RangeError('The value "'+_+'" is invalid for option "size"');const o=new Uint8Array(_);return Object.setPrototypeOf(o,b.prototype),o}r(p,"createBuffer");function b(_,o,c){if(typeof _=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(_)}return T(_,o,c)}r(b,"Buffer"),b.poolSize=8192;function T(_,o,c){if(typeof _=="string")return E(_,o);if(ArrayBuffer.isView(_))return w(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(we(_,ArrayBuffer)||_&&we(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(we(_,SharedArrayBuffer)||_&&we(_.buffer,SharedArrayBuffer)))return m(_,o,c);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=_.valueOf&&_.valueOf();if(H!=null&&H!==_)return b.from(H,o,c);const Q=x(_);if(Q)return Q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return b.from(_[Symbol.toPrimitive]("string"),o,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}r(T,"from"),b.from=function(_,o,c){return T(_,o,c)},Object.setPrototypeOf(b.prototype,Uint8Array.prototype),Object.setPrototypeOf(b,Uint8Array);function k(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}r(k,"assertSize");function h(_,o,c){return k(_),_<=0?p(_):o!==void 0?typeof c=="string"?p(_).fill(o,c):p(_).fill(o):p(_)}r(h,"alloc"),b.alloc=function(_,o,c){return h(_,o,c)};function a(_){return k(_),p(_<0?0:R(_)|0)}r(a,"allocUnsafe"),b.allocUnsafe=function(_){return a(_)},b.allocUnsafeSlow=function(_){return a(_)};function E(_,o){if((typeof o!="string"||o==="")&&(o="utf8"),!b.isEncoding(o))throw new TypeError("Unknown encoding: "+o);const c=B(_,o)|0;let H=p(c);const Q=H.write(_,o);return Q!==c&&(H=H.slice(0,Q)),H}r(E,"fromString");function l(_){const o=_.length<0?0:R(_.length)|0,c=p(o);for(let H=0;H<o;H+=1)c[H]=_[H]&255;return c}r(l,"fromArrayLike");function w(_){if(we(_,Uint8Array)){const o=new Uint8Array(_);return m(o.buffer,o.byteOffset,o.byteLength)}return l(_)}r(w,"fromArrayView");function m(_,o,c){if(o<0||_.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<o+(c||0))throw new RangeError('"length" is outside of buffer bounds');let H;return o===void 0&&c===void 0?H=new Uint8Array(_):c===void 0?H=new Uint8Array(_,o):H=new Uint8Array(_,o,c),Object.setPrototypeOf(H,b.prototype),H}r(m,"fromArrayBuffer");function x(_){if(b.isBuffer(_)){const o=R(_.length)|0,c=p(o);return c.length===0||_.copy(c,0,0,o),c}if(_.length!==void 0)return typeof _.length!="number"||He(_.length)?p(0):l(_);if(_.type==="Buffer"&&Array.isArray(_.data))return l(_.data)}r(x,"fromObject");function R(_){if(_>=F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return _|0}r(R,"checked");function v(_){return+_!=_&&(_=0),b.alloc(+_)}r(v,"SlowBuffer"),b.isBuffer=r(function(o){return o!=null&&o._isBuffer===!0&&o!==b.prototype},"isBuffer"),b.compare=r(function(o,c){if(we(o,Uint8Array)&&(o=b.from(o,o.offset,o.byteLength)),we(c,Uint8Array)&&(c=b.from(c,c.offset,c.byteLength)),!b.isBuffer(o)||!b.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===c)return 0;let H=o.length,Q=c.length;for(let ie=0,re=Math.min(H,Q);ie<re;++ie)if(o[ie]!==c[ie]){H=o[ie],Q=c[ie];break}return H<Q?-1:Q<H?1:0},"compare"),b.isEncoding=r(function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),b.concat=r(function(o,c){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return b.alloc(0);let H;if(c===void 0)for(c=0,H=0;H<o.length;++H)c+=o[H].length;const Q=b.allocUnsafe(c);let ie=0;for(H=0;H<o.length;++H){let re=o[H];if(we(re,Uint8Array))ie+re.length>Q.length?(b.isBuffer(re)||(re=b.from(re)),re.copy(Q,ie)):Uint8Array.prototype.set.call(Q,re,ie);else if(b.isBuffer(re))re.copy(Q,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=re.length}return Q},"concat");function B(_,o){if(b.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||we(_,ArrayBuffer))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const c=_.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&c===0)return 0;let Q=!1;for(;;)switch(o){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Me(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return Je(_).length;default:if(Q)return H?-1:Me(_).length;o=(""+o).toLowerCase(),Q=!0}}r(B,"byteLength"),b.byteLength=B;function A(_,o,c){let H=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,o>>>=0,c<=o))return"";for(_||(_="utf8");;)switch(_){case"hex":return P(this,o,c);case"utf8":case"utf-8":return S(this,o,c);case"ascii":return s(this,o,c);case"latin1":case"binary":return y(this,o,c);case"base64":return ee(this,o,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,o,c);default:if(H)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),H=!0}}r(A,"slowToString"),b.prototype._isBuffer=!0;function L(_,o,c){const H=_[o];_[o]=_[c],_[c]=H}r(L,"swap"),b.prototype.swap16=r(function(){const o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;c<o;c+=2)L(this,c,c+1);return this},"swap16"),b.prototype.swap32=r(function(){const o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let c=0;c<o;c+=4)L(this,c,c+3),L(this,c+1,c+2);return this},"swap32"),b.prototype.swap64=r(function(){const o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let c=0;c<o;c+=8)L(this,c,c+7),L(this,c+1,c+6),L(this,c+2,c+5),L(this,c+3,c+4);return this},"swap64"),b.prototype.toString=r(function(){const o=this.length;return o===0?"":arguments.length===0?S(this,0,o):A.apply(this,arguments)},"toString"),b.prototype.toLocaleString=b.prototype.toString,b.prototype.equals=r(function(o){if(!b.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:b.compare(this,o)===0},"equals"),b.prototype.inspect=r(function(){let o="";const c=te.INSPECT_MAX_BYTES;return o=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(o+=" ... "),"<Buffer "+o+">"},"inspect"),D&&(b.prototype[D]=b.prototype.inspect),b.prototype.compare=r(function(o,c,H,Q,ie){if(we(o,Uint8Array)&&(o=b.from(o,o.offset,o.byteLength)),!b.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(c===void 0&&(c=0),H===void 0&&(H=o?o.length:0),Q===void 0&&(Q=0),ie===void 0&&(ie=this.length),c<0||H>o.length||Q<0||ie>this.length)throw new RangeError("out of range index");if(Q>=ie&&c>=H)return 0;if(Q>=ie)return-1;if(c>=H)return 1;if(c>>>=0,H>>>=0,Q>>>=0,ie>>>=0,this===o)return 0;let re=ie-Q,Ie=H-c;const Ue=Math.min(re,Ie),Pe=this.slice(Q,ie),Ce=o.slice(c,H);for(let De=0;De<Ue;++De)if(Pe[De]!==Ce[De]){re=Pe[De],Ie=Ce[De];break}return re<Ie?-1:Ie<re?1:0},"compare");function V(_,o,c,H,Q){if(_.length===0)return-1;if(typeof c=="string"?(H=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,He(c)&&(c=Q?0:_.length-1),c<0&&(c=_.length+c),c>=_.length){if(Q)return-1;c=_.length-1}else if(c<0)if(Q)c=0;else return-1;if(typeof o=="string"&&(o=b.from(o,H)),b.isBuffer(o))return o.length===0?-1:G(_,o,c,H,Q);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(_,o,c):Uint8Array.prototype.lastIndexOf.call(_,o,c):G(_,[o],c,H,Q);throw new TypeError("val must be string, number or Buffer")}r(V,"bidirectionalIndexOf");function G(_,o,c,H,Q){let ie=1,re=_.length,Ie=o.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(_.length<2||o.length<2)return-1;ie=2,re/=2,Ie/=2,c/=2}function Ue(Ce,De){return ie===1?Ce[De]:Ce.readUInt16BE(De*ie)}r(Ue,"read");let Pe;if(Q){let Ce=-1;for(Pe=c;Pe<re;Pe++)if(Ue(_,Pe)===Ue(o,Ce===-1?0:Pe-Ce)){if(Ce===-1&&(Ce=Pe),Pe-Ce+1===Ie)return Ce*ie}else Ce!==-1&&(Pe-=Pe-Ce),Ce=-1}else for(c+Ie>re&&(c=re-Ie),Pe=c;Pe>=0;Pe--){let Ce=!0;for(let De=0;De<Ie;De++)if(Ue(_,Pe+De)!==Ue(o,De)){Ce=!1;break}if(Ce)return Pe}return-1}r(G,"arrayIndexOf"),b.prototype.includes=r(function(o,c,H){return this.indexOf(o,c,H)!==-1},"includes"),b.prototype.indexOf=r(function(o,c,H){return V(this,o,c,H,!0)},"indexOf"),b.prototype.lastIndexOf=r(function(o,c,H){return V(this,o,c,H,!1)},"lastIndexOf");function X(_,o,c,H){c=Number(c)||0;const Q=_.length-c;H?(H=Number(H),H>Q&&(H=Q)):H=Q;const ie=o.length;H>ie/2&&(H=ie/2);let re;for(re=0;re<H;++re){const Ie=parseInt(o.substr(re*2,2),16);if(He(Ie))return re;_[c+re]=Ie}return re}r(X,"hexWrite");function fe(_,o,c,H){return Ae(Me(o,_.length-c),_,c,H)}r(fe,"utf8Write");function ae(_,o,c,H){return Ae(Be(o),_,c,H)}r(ae,"asciiWrite");function me(_,o,c,H){return Ae(Je(o),_,c,H)}r(me,"base64Write");function ye(_,o,c,H){return Ae(Re(o,_.length-c),_,c,H)}r(ye,"ucs2Write"),b.prototype.write=r(function(o,c,H,Q){if(c===void 0)Q="utf8",H=this.length,c=0;else if(H===void 0&&typeof c=="string")Q=c,H=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(H)?(H=H>>>0,Q===void 0&&(Q="utf8")):(Q=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ie=this.length-c;if((H===void 0||H>ie)&&(H=ie),o.length>0&&(H<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");let re=!1;for(;;)switch(Q){case"hex":return X(this,o,c,H);case"utf8":case"utf-8":return fe(this,o,c,H);case"ascii":case"latin1":case"binary":return ae(this,o,c,H);case"base64":return me(this,o,c,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,o,c,H);default:if(re)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),re=!0}},"write"),b.prototype.toJSON=r(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function ee(_,o,c){return o===0&&c===_.length?O.fromByteArray(_):O.fromByteArray(_.slice(o,c))}r(ee,"base64Slice");function S(_,o,c){c=Math.min(_.length,c);const H=[];let Q=o;for(;Q<c;){const ie=_[Q];let re=null,Ie=ie>239?4:ie>223?3:ie>191?2:1;if(Q+Ie<=c){let Ue,Pe,Ce,De;switch(Ie){case 1:ie<128&&(re=ie);break;case 2:Ue=_[Q+1],(Ue&192)===128&&(De=(ie&31)<<6|Ue&63,De>127&&(re=De));break;case 3:Ue=_[Q+1],Pe=_[Q+2],(Ue&192)===128&&(Pe&192)===128&&(De=(ie&15)<<12|(Ue&63)<<6|Pe&63,De>2047&&(De<55296||De>57343)&&(re=De));break;case 4:Ue=_[Q+1],Pe=_[Q+2],Ce=_[Q+3],(Ue&192)===128&&(Pe&192)===128&&(Ce&192)===128&&(De=(ie&15)<<18|(Ue&63)<<12|(Pe&63)<<6|Ce&63,De>65535&&De<1114112&&(re=De))}}re===null?(re=65533,Ie=1):re>65535&&(re-=65536,H.push(re>>>10&1023|55296),re=56320|re&1023),H.push(re),Q+=Ie}return f(H)}r(S,"utf8Slice");const i=4096;function f(_){const o=_.length;if(o<=i)return String.fromCharCode.apply(String,_);let c="",H=0;for(;H<o;)c+=String.fromCharCode.apply(String,_.slice(H,H+=i));return c}r(f,"decodeCodePointsArray");function s(_,o,c){let H="";c=Math.min(_.length,c);for(let Q=o;Q<c;++Q)H+=String.fromCharCode(_[Q]&127);return H}r(s,"asciiSlice");function y(_,o,c){let H="";c=Math.min(_.length,c);for(let Q=o;Q<c;++Q)H+=String.fromCharCode(_[Q]);return H}r(y,"latin1Slice");function P(_,o,c){const H=_.length;(!o||o<0)&&(o=0),(!c||c<0||c>H)&&(c=H);let Q="";for(let ie=o;ie<c;++ie)Q+=Ne[_[ie]];return Q}r(P,"hexSlice");function j(_,o,c){const H=_.slice(o,c);let Q="";for(let ie=0;ie<H.length-1;ie+=2)Q+=String.fromCharCode(H[ie]+H[ie+1]*256);return Q}r(j,"utf16leSlice"),b.prototype.slice=r(function(o,c){const H=this.length;o=~~o,c=c===void 0?H:~~c,o<0?(o+=H,o<0&&(o=0)):o>H&&(o=H),c<0?(c+=H,c<0&&(c=0)):c>H&&(c=H),c<o&&(c=o);const Q=this.subarray(o,c);return Object.setPrototypeOf(Q,b.prototype),Q},"slice");function Y(_,o,c){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+o>c)throw new RangeError("Trying to access beyond buffer length")}r(Y,"checkOffset"),b.prototype.readUintLE=b.prototype.readUIntLE=r(function(o,c,H){o=o>>>0,c=c>>>0,H||Y(o,c,this.length);let Q=this[o],ie=1,re=0;for(;++re<c&&(ie*=256);)Q+=this[o+re]*ie;return Q},"readUIntLE"),b.prototype.readUintBE=b.prototype.readUIntBE=r(function(o,c,H){o=o>>>0,c=c>>>0,H||Y(o,c,this.length);let Q=this[o+--c],ie=1;for(;c>0&&(ie*=256);)Q+=this[o+--c]*ie;return Q},"readUIntBE"),b.prototype.readUint8=b.prototype.readUInt8=r(function(o,c){return o=o>>>0,c||Y(o,1,this.length),this[o]},"readUInt8"),b.prototype.readUint16LE=b.prototype.readUInt16LE=r(function(o,c){return o=o>>>0,c||Y(o,2,this.length),this[o]|this[o+1]<<8},"readUInt16LE"),b.prototype.readUint16BE=b.prototype.readUInt16BE=r(function(o,c){return o=o>>>0,c||Y(o,2,this.length),this[o]<<8|this[o+1]},"readUInt16BE"),b.prototype.readUint32LE=b.prototype.readUInt32LE=r(function(o,c){return o=o>>>0,c||Y(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},"readUInt32LE"),b.prototype.readUint32BE=b.prototype.readUInt32BE=r(function(o,c){return o=o>>>0,c||Y(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},"readUInt32BE"),b.prototype.readBigUInt64LE=Le(r(function(o){o=o>>>0,U(o,"offset");const c=this[o],H=this[o+7];(c===void 0||H===void 0)&&z(o,this.length-8);const Q=c+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24,ie=this[++o]+this[++o]*2**8+this[++o]*2**16+H*2**24;return BigInt(Q)+(BigInt(ie)<<BigInt(32))},"readBigUInt64LE")),b.prototype.readBigUInt64BE=Le(r(function(o){o=o>>>0,U(o,"offset");const c=this[o],H=this[o+7];(c===void 0||H===void 0)&&z(o,this.length-8);const Q=c*2**24+this[++o]*2**16+this[++o]*2**8+this[++o],ie=this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+H;return(BigInt(Q)<<BigInt(32))+BigInt(ie)},"readBigUInt64BE")),b.prototype.readIntLE=r(function(o,c,H){o=o>>>0,c=c>>>0,H||Y(o,c,this.length);let Q=this[o],ie=1,re=0;for(;++re<c&&(ie*=256);)Q+=this[o+re]*ie;return ie*=128,Q>=ie&&(Q-=Math.pow(2,8*c)),Q},"readIntLE"),b.prototype.readIntBE=r(function(o,c,H){o=o>>>0,c=c>>>0,H||Y(o,c,this.length);let Q=c,ie=1,re=this[o+--Q];for(;Q>0&&(ie*=256);)re+=this[o+--Q]*ie;return ie*=128,re>=ie&&(re-=Math.pow(2,8*c)),re},"readIntBE"),b.prototype.readInt8=r(function(o,c){return o=o>>>0,c||Y(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},"readInt8"),b.prototype.readInt16LE=r(function(o,c){o=o>>>0,c||Y(o,2,this.length);const H=this[o]|this[o+1]<<8;return H&32768?H|4294901760:H},"readInt16LE"),b.prototype.readInt16BE=r(function(o,c){o=o>>>0,c||Y(o,2,this.length);const H=this[o+1]|this[o]<<8;return H&32768?H|4294901760:H},"readInt16BE"),b.prototype.readInt32LE=r(function(o,c){return o=o>>>0,c||Y(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},"readInt32LE"),b.prototype.readInt32BE=r(function(o,c){return o=o>>>0,c||Y(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},"readInt32BE"),b.prototype.readBigInt64LE=Le(r(function(o){o=o>>>0,U(o,"offset");const c=this[o],H=this[o+7];(c===void 0||H===void 0)&&z(o,this.length-8);const Q=this[o+4]+this[o+5]*2**8+this[o+6]*2**16+(H<<24);return(BigInt(Q)<<BigInt(32))+BigInt(c+this[++o]*256+this[++o]*65536+this[++o]*16777216)},"readBigInt64LE")),b.prototype.readBigInt64BE=Le(r(function(o){o=o>>>0,U(o,"offset");const c=this[o],H=this[o+7];(c===void 0||H===void 0)&&z(o,this.length-8);const Q=(c<<24)+this[++o]*2**16+this[++o]*2**8+this[++o];return(BigInt(Q)<<BigInt(32))+BigInt(this[++o]*16777216+this[++o]*65536+this[++o]*256+H)},"readBigInt64BE")),b.prototype.readFloatLE=r(function(o,c){return o=o>>>0,c||Y(o,4,this.length),J.read(this,o,!0,23,4)},"readFloatLE"),b.prototype.readFloatBE=r(function(o,c){return o=o>>>0,c||Y(o,4,this.length),J.read(this,o,!1,23,4)},"readFloatBE"),b.prototype.readDoubleLE=r(function(o,c){return o=o>>>0,c||Y(o,8,this.length),J.read(this,o,!0,52,8)},"readDoubleLE"),b.prototype.readDoubleBE=r(function(o,c){return o=o>>>0,c||Y(o,8,this.length),J.read(this,o,!1,52,8)},"readDoubleBE");function M(_,o,c,H,Q,ie){if(!b.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>Q||o<ie)throw new RangeError('"value" argument is out of bounds');if(c+H>_.length)throw new RangeError("Index out of range")}r(M,"checkInt"),b.prototype.writeUintLE=b.prototype.writeUIntLE=r(function(o,c,H,Q){if(o=+o,c=c>>>0,H=H>>>0,!Q){const Ie=Math.pow(2,8*H)-1;M(this,o,c,H,Ie,0)}let ie=1,re=0;for(this[c]=o&255;++re<H&&(ie*=256);)this[c+re]=o/ie&255;return c+H},"writeUIntLE"),b.prototype.writeUintBE=b.prototype.writeUIntBE=r(function(o,c,H,Q){if(o=+o,c=c>>>0,H=H>>>0,!Q){const Ie=Math.pow(2,8*H)-1;M(this,o,c,H,Ie,0)}let ie=H-1,re=1;for(this[c+ie]=o&255;--ie>=0&&(re*=256);)this[c+ie]=o/re&255;return c+H},"writeUIntBE"),b.prototype.writeUint8=b.prototype.writeUInt8=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,1,255,0),this[c]=o&255,c+1},"writeUInt8"),b.prototype.writeUint16LE=b.prototype.writeUInt16LE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,2,65535,0),this[c]=o&255,this[c+1]=o>>>8,c+2},"writeUInt16LE"),b.prototype.writeUint16BE=b.prototype.writeUInt16BE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,2,65535,0),this[c]=o>>>8,this[c+1]=o&255,c+2},"writeUInt16BE"),b.prototype.writeUint32LE=b.prototype.writeUInt32LE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,4,4294967295,0),this[c+3]=o>>>24,this[c+2]=o>>>16,this[c+1]=o>>>8,this[c]=o&255,c+4},"writeUInt32LE"),b.prototype.writeUint32BE=b.prototype.writeUInt32BE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,4,4294967295,0),this[c]=o>>>24,this[c+1]=o>>>16,this[c+2]=o>>>8,this[c+3]=o&255,c+4},"writeUInt32BE");function u(_,o,c,H,Q){_e(o,H,Q,_,c,7);let ie=Number(o&BigInt(4294967295));_[c++]=ie,ie=ie>>8,_[c++]=ie,ie=ie>>8,_[c++]=ie,ie=ie>>8,_[c++]=ie;let re=Number(o>>BigInt(32)&BigInt(4294967295));return _[c++]=re,re=re>>8,_[c++]=re,re=re>>8,_[c++]=re,re=re>>8,_[c++]=re,c}r(u,"wrtBigUInt64LE");function K(_,o,c,H,Q){_e(o,H,Q,_,c,7);let ie=Number(o&BigInt(4294967295));_[c+7]=ie,ie=ie>>8,_[c+6]=ie,ie=ie>>8,_[c+5]=ie,ie=ie>>8,_[c+4]=ie;let re=Number(o>>BigInt(32)&BigInt(4294967295));return _[c+3]=re,re=re>>8,_[c+2]=re,re=re>>8,_[c+1]=re,re=re>>8,_[c]=re,c+8}r(K,"wrtBigUInt64BE"),b.prototype.writeBigUInt64LE=Le(r(function(o,c=0){return u(this,o,c,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),b.prototype.writeBigUInt64BE=Le(r(function(o,c=0){return K(this,o,c,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),b.prototype.writeIntLE=r(function(o,c,H,Q){if(o=+o,c=c>>>0,!Q){const Ue=Math.pow(2,8*H-1);M(this,o,c,H,Ue-1,-Ue)}let ie=0,re=1,Ie=0;for(this[c]=o&255;++ie<H&&(re*=256);)o<0&&Ie===0&&this[c+ie-1]!==0&&(Ie=1),this[c+ie]=(o/re>>0)-Ie&255;return c+H},"writeIntLE"),b.prototype.writeIntBE=r(function(o,c,H,Q){if(o=+o,c=c>>>0,!Q){const Ue=Math.pow(2,8*H-1);M(this,o,c,H,Ue-1,-Ue)}let ie=H-1,re=1,Ie=0;for(this[c+ie]=o&255;--ie>=0&&(re*=256);)o<0&&Ie===0&&this[c+ie+1]!==0&&(Ie=1),this[c+ie]=(o/re>>0)-Ie&255;return c+H},"writeIntBE"),b.prototype.writeInt8=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,1,127,-128),o<0&&(o=255+o+1),this[c]=o&255,c+1},"writeInt8"),b.prototype.writeInt16LE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,2,32767,-32768),this[c]=o&255,this[c+1]=o>>>8,c+2},"writeInt16LE"),b.prototype.writeInt16BE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,2,32767,-32768),this[c]=o>>>8,this[c+1]=o&255,c+2},"writeInt16BE"),b.prototype.writeInt32LE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,4,2147483647,-2147483648),this[c]=o&255,this[c+1]=o>>>8,this[c+2]=o>>>16,this[c+3]=o>>>24,c+4},"writeInt32LE"),b.prototype.writeInt32BE=r(function(o,c,H){return o=+o,c=c>>>0,H||M(this,o,c,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[c]=o>>>24,this[c+1]=o>>>16,this[c+2]=o>>>8,this[c+3]=o&255,c+4},"writeInt32BE"),b.prototype.writeBigInt64LE=Le(r(function(o,c=0){return u(this,o,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),b.prototype.writeBigInt64BE=Le(r(function(o,c=0){return K(this,o,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function ge(_,o,c,H,Q,ie){if(c+H>_.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}r(ge,"checkIEEE754");function ve(_,o,c,H,Q){return o=+o,c=c>>>0,Q||ge(_,o,c,4,34028234663852886e22,-34028234663852886e22),J.write(_,o,c,H,23,4),c+4}r(ve,"writeFloat"),b.prototype.writeFloatLE=r(function(o,c,H){return ve(this,o,c,!0,H)},"writeFloatLE"),b.prototype.writeFloatBE=r(function(o,c,H){return ve(this,o,c,!1,H)},"writeFloatBE");function he(_,o,c,H,Q){return o=+o,c=c>>>0,Q||ge(_,o,c,8,17976931348623157e292,-17976931348623157e292),J.write(_,o,c,H,52,8),c+8}r(he,"writeDouble"),b.prototype.writeDoubleLE=r(function(o,c,H){return he(this,o,c,!0,H)},"writeDoubleLE"),b.prototype.writeDoubleBE=r(function(o,c,H){return he(this,o,c,!1,H)},"writeDoubleBE"),b.prototype.copy=r(function(o,c,H,Q){if(!b.isBuffer(o))throw new TypeError("argument should be a Buffer");if(H||(H=0),!Q&&Q!==0&&(Q=this.length),c>=o.length&&(c=o.length),c||(c=0),Q>0&&Q<H&&(Q=H),Q===H||o.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),o.length-c<Q-H&&(Q=o.length-c+H);const ie=Q-H;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,H,Q):Uint8Array.prototype.set.call(o,this.subarray(H,Q),c),ie},"copy"),b.prototype.fill=r(function(o,c,H,Q){if(typeof o=="string"){if(typeof c=="string"?(Q=c,c=0,H=this.length):typeof H=="string"&&(Q=H,H=this.length),Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!b.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);if(o.length===1){const re=o.charCodeAt(0);(Q==="utf8"&&re<128||Q==="latin1")&&(o=re)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(c<0||this.length<c||this.length<H)throw new RangeError("Out of range index");if(H<=c)return this;c=c>>>0,H=H===void 0?this.length:H>>>0,o||(o=0);let ie;if(typeof o=="number")for(ie=c;ie<H;++ie)this[ie]=o;else{const re=b.isBuffer(o)?o:b.from(o,Q),Ie=re.length;if(Ie===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(ie=0;ie<H-c;++ie)this[ie+c]=re[ie%Ie]}return this},"fill");const q={};function $(_,o,c){q[_]=class extends c{static{r(this,"NodeError")}constructor(){super(),Object.defineProperty(this,"message",{value:o.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,this.stack,delete this.name}get code(){return _}set code(Q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Q,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}r($,"E"),$("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),$("ERR_INVALID_ARG_TYPE",function(_,o){return`The "${_}" argument must be of type number. Received type ${typeof o}`},TypeError),$("ERR_OUT_OF_RANGE",function(_,o,c){let H=`The value of "${_}" is out of range.`,Q=c;return Number.isInteger(c)&&Math.abs(c)>4294967296?Q=oe(String(c)):typeof c=="bigint"&&(Q=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(Q=oe(Q)),Q+="n"),H+=` It must be ${o}. Received ${Q}`,H},RangeError);function oe(_){let o="",c=_.length;const H=_[0]==="-"?1:0;for(;c>=H+4;c-=3)o=`_${_.slice(c-3,c)}${o}`;return`${_.slice(0,c)}${o}`}r(oe,"addNumericalSeparator");function Se(_,o,c){U(o,"offset"),(_[o]===void 0||_[o+c]===void 0)&&z(o,_.length-(c+1))}r(Se,"checkBounds");function _e(_,o,c,H,Q,ie){if(_>c||_<o){const re=typeof o=="bigint"?"n":"";let Ie;throw ie>3?o===0||o===BigInt(0)?Ie=`>= 0${re} and < 2${re} ** ${(ie+1)*8}${re}`:Ie=`>= -(2${re} ** ${(ie+1)*8-1}${re}) and < 2 ** ${(ie+1)*8-1}${re}`:Ie=`>= ${o}${re} and <= ${c}${re}`,new q.ERR_OUT_OF_RANGE("value",Ie,_)}Se(H,Q,ie)}r(_e,"checkIntBI");function U(_,o){if(typeof _!="number")throw new q.ERR_INVALID_ARG_TYPE(o,"number",_)}r(U,"validateNumber");function z(_,o,c){throw Math.floor(_)!==_?(U(_,c),new q.ERR_OUT_OF_RANGE(c||"offset","an integer",_)):o<0?new q.ERR_BUFFER_OUT_OF_BOUNDS:new q.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?1:0} and <= ${o}`,_)}r(z,"boundsError");const se=/[^+/0-9A-Za-z-_]/g;function de(_){if(_=_.split("=")[0],_=_.trim().replace(se,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}r(de,"base64clean");function Me(_,o){o=o||1/0;let c;const H=_.length;let Q=null;const ie=[];for(let re=0;re<H;++re){if(c=_.charCodeAt(re),c>55295&&c<57344){if(!Q){if(c>56319){(o-=3)>-1&&ie.push(239,191,189);continue}else if(re+1===H){(o-=3)>-1&&ie.push(239,191,189);continue}Q=c;continue}if(c<56320){(o-=3)>-1&&ie.push(239,191,189),Q=c;continue}c=(Q-55296<<10|c-56320)+65536}else Q&&(o-=3)>-1&&ie.push(239,191,189);if(Q=null,c<128){if((o-=1)<0)break;ie.push(c)}else if(c<2048){if((o-=2)<0)break;ie.push(c>>6|192,c&63|128)}else if(c<65536){if((o-=3)<0)break;ie.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((o-=4)<0)break;ie.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return ie}r(Me,"utf8ToBytes");function Be(_){const o=[];for(let c=0;c<_.length;++c)o.push(_.charCodeAt(c)&255);return o}r(Be,"asciiToBytes");function Re(_,o){let c,H,Q;const ie=[];for(let re=0;re<_.length&&!((o-=2)<0);++re)c=_.charCodeAt(re),H=c>>8,Q=c%256,ie.push(Q),ie.push(H);return ie}r(Re,"utf16leToBytes");function Je(_){return O.toByteArray(de(_))}r(Je,"base64ToBytes");function Ae(_,o,c,H){let Q;for(Q=0;Q<H&&!(Q+c>=o.length||Q>=_.length);++Q)o[Q+c]=_[Q];return Q}r(Ae,"blitBuffer");function we(_,o){return _ instanceof o||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===o.name}r(we,"isInstance");function He(_){return _!==_}r(He,"numberIsNaN");const Ne=function(){const _="0123456789abcdef",o=new Array(256);for(let c=0;c<16;++c){const H=c*16;for(let Q=0;Q<16;++Q)o[H+Q]=_[c]+_[Q]}return o}();function Le(_){return typeof BigInt>"u"?be:_}r(Le,"defineBigIntMethod");function be(){throw new Error("BigInt not supported")}r(be,"BufferBigIntNotDefined")},8028:(ne,te,N)=>{var O=N(2318);ne.exports=function(J){return new O().update(J).digest()}},7187:ne=>{var te=typeof Reflect=="object"?Reflect:null,N=te&&typeof te.apply=="function"?te.apply:r(function(A,L,V){return Function.prototype.apply.call(A,L,V)},"ReflectApply"),O;te&&typeof te.ownKeys=="function"?O=te.ownKeys:Object.getOwnPropertySymbols?O=r(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys"):O=r(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys");function J(B){console&&console.warn&&console.warn(B)}r(J,"ProcessEmitWarning");var D=Number.isNaN||r(function(A){return A!==A},"NumberIsNaN");function F(){F.init.call(this)}r(F,"EventEmitter"),ne.exports=F,ne.exports.once=x,F.EventEmitter=F,F.prototype._events=void 0,F.prototype._eventsCount=0,F.prototype._maxListeners=void 0;var d=10;function p(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}r(p,"checkListener"),Object.defineProperty(F,"defaultMaxListeners",{enumerable:!0,get:function(){return d},set:function(B){if(typeof B!="number"||B<0||D(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");d=B}}),F.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},F.prototype.setMaxListeners=r(function(A){if(typeof A!="number"||A<0||D(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function b(B){return B._maxListeners===void 0?F.defaultMaxListeners:B._maxListeners}r(b,"_getMaxListeners"),F.prototype.getMaxListeners=r(function(){return b(this)},"getMaxListeners"),F.prototype.emit=r(function(A){for(var L=[],V=1;V<arguments.length;V++)L.push(arguments[V]);var G=A==="error",X=this._events;if(X!==void 0)G=G&&X.error===void 0;else if(!G)return!1;if(G){var fe;if(L.length>0&&(fe=L[0]),fe instanceof Error)throw fe;var ae=new Error("Unhandled error."+(fe?" ("+fe.message+")":""));throw ae.context=fe,ae}var me=X[A];if(me===void 0)return!1;if(typeof me=="function")N(me,this,L);else for(var ye=me.length,ee=l(me,ye),V=0;V<ye;++V)N(ee[V],this,L);return!0},"emit");function T(B,A,L,V){var G,X,fe;if(p(L),X=B._events,X===void 0?(X=B._events=Object.create(null),B._eventsCount=0):(X.newListener!==void 0&&(B.emit("newListener",A,L.listener?L.listener:L),X=B._events),fe=X[A]),fe===void 0)fe=X[A]=L,++B._eventsCount;else if(typeof fe=="function"?fe=X[A]=V?[L,fe]:[fe,L]:V?fe.unshift(L):fe.push(L),G=b(B),G>0&&fe.length>G&&!fe.warned){fe.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+fe.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=B,ae.type=A,ae.count=fe.length,J(ae)}return B}r(T,"_addListener"),F.prototype.addListener=r(function(A,L){return T(this,A,L,!1)},"addListener"),F.prototype.on=F.prototype.addListener,F.prototype.prependListener=r(function(A,L){return T(this,A,L,!0)},"prependListener");function k(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}r(k,"onceWrapper");function h(B,A,L){var V={fired:!1,wrapFn:void 0,target:B,type:A,listener:L},G=k.bind(V);return G.listener=L,V.wrapFn=G,G}r(h,"_onceWrap"),F.prototype.once=r(function(A,L){return p(L),this.on(A,h(this,A,L)),this},"once"),F.prototype.prependOnceListener=r(function(A,L){return p(L),this.prependListener(A,h(this,A,L)),this},"prependOnceListener"),F.prototype.removeListener=r(function(A,L){var V,G,X,fe,ae;if(p(L),G=this._events,G===void 0)return this;if(V=G[A],V===void 0)return this;if(V===L||V.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete G[A],G.removeListener&&this.emit("removeListener",A,V.listener||L));else if(typeof V!="function"){for(X=-1,fe=V.length-1;fe>=0;fe--)if(V[fe]===L||V[fe].listener===L){ae=V[fe].listener,X=fe;break}if(X<0)return this;X===0?V.shift():w(V,X),V.length===1&&(G[A]=V[0]),G.removeListener!==void 0&&this.emit("removeListener",A,ae||L)}return this},"removeListener"),F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=r(function(A){var L,V,G;if(V=this._events,V===void 0)return this;if(V.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):V[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete V[A]),this;if(arguments.length===0){var X=Object.keys(V),fe;for(G=0;G<X.length;++G)fe=X[G],fe!=="removeListener"&&this.removeAllListeners(fe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=V[A],typeof L=="function")this.removeListener(A,L);else if(L!==void 0)for(G=L.length-1;G>=0;G--)this.removeListener(A,L[G]);return this},"removeAllListeners");function a(B,A,L){var V=B._events;if(V===void 0)return[];var G=V[A];return G===void 0?[]:typeof G=="function"?L?[G.listener||G]:[G]:L?m(G):l(G,G.length)}r(a,"_listeners"),F.prototype.listeners=r(function(A){return a(this,A,!0)},"listeners"),F.prototype.rawListeners=r(function(A){return a(this,A,!1)},"rawListeners"),F.listenerCount=function(B,A){return typeof B.listenerCount=="function"?B.listenerCount(A):E.call(B,A)},F.prototype.listenerCount=E;function E(B){var A=this._events;if(A!==void 0){var L=A[B];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}r(E,"listenerCount"),F.prototype.eventNames=r(function(){return this._eventsCount>0?O(this._events):[]},"eventNames");function l(B,A){for(var L=new Array(A),V=0;V<A;++V)L[V]=B[V];return L}r(l,"arrayClone");function w(B,A){for(;A+1<B.length;A++)B[A]=B[A+1];B.pop()}r(w,"spliceOne");function m(B){for(var A=new Array(B.length),L=0;L<A.length;++L)A[L]=B[L].listener||B[L];return A}r(m,"unwrapListeners");function x(B,A){return new Promise(function(L,V){function G(fe){B.removeListener(A,X),V(fe)}r(G,"errorListener");function X(){typeof B.removeListener=="function"&&B.removeListener("error",G),L([].slice.call(arguments))}r(X,"resolver"),v(B,A,X,{once:!0}),A!=="error"&&R(B,G,{once:!0})})}r(x,"once");function R(B,A,L){typeof B.on=="function"&&v(B,"error",A,L)}r(R,"addErrorHandlerIfEventEmitter");function v(B,A,L,V){if(typeof B.on=="function")V.once?B.once(A,L):B.on(A,L);else if(typeof B.addEventListener=="function")B.addEventListener(A,r(function G(X){V.once&&B.removeEventListener(A,G),L(X)},"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}r(v,"eventTargetAgnosticAddListener")},3349:(ne,te,N)=>{var O=N(9509).Buffer,J=N(8473).Transform,D=N(5717);function F(p,b){if(!O.isBuffer(p)&&typeof p!="string")throw new TypeError(b+" must be a string or a buffer")}r(F,"throwIfNotStringOrBuffer");function d(p){J.call(this),this._block=O.allocUnsafe(p),this._blockSize=p,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(d,"HashBase"),D(d,J),d.prototype._transform=function(p,b,T){var k=null;try{this.update(p,b)}catch(h){k=h}T(k)},d.prototype._flush=function(p){var b=null;try{this.push(this.digest())}catch(T){b=T}p(b)},d.prototype.update=function(p,b){if(F(p,"Data"),this._finalized)throw new Error("Digest already called");O.isBuffer(p)||(p=O.from(p,b));for(var T=this._block,k=0;this._blockOffset+p.length-k>=this._blockSize;){for(var h=this._blockOffset;h<this._blockSize;)T[h++]=p[k++];this._update(),this._blockOffset=0}for(;k<p.length;)T[this._blockOffset++]=p[k++];for(var a=0,E=p.length*8;E>0;++a)this._length[a]+=E,E=this._length[a]/4294967296|0,E>0&&(this._length[a]-=4294967296*E);return this},d.prototype._update=function(){throw new Error("_update is not implemented")},d.prototype.digest=function(p){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var b=this._digest();p!==void 0&&(b=b.toString(p)),this._block.fill(0),this._blockOffset=0;for(var T=0;T<4;++T)this._length[T]=0;return b},d.prototype._digest=function(){throw new Error("_digest is not implemented")},ne.exports=d},3715:(ne,te,N)=>{var O=te;O.utils=N(6436),O.common=N(5772),O.sha=N(9041),O.ripemd=N(2949),O.hmac=N(2344),O.sha1=O.sha.sha1,O.sha256=O.sha.sha256,O.sha224=O.sha.sha224,O.sha384=O.sha.sha384,O.sha512=O.sha.sha512,O.ripemd160=O.ripemd.ripemd160},5772:(ne,te,N)=>{var O=N(6436),J=N(9746);function D(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}r(D,"BlockHash"),te.BlockHash=D,D.prototype.update=r(function(d,p){if(d=O.toArray(d,p),this.pending?this.pending=this.pending.concat(d):this.pending=d,this.pendingTotal+=d.length,this.pending.length>=this._delta8){d=this.pending;var b=d.length%this._delta8;this.pending=d.slice(d.length-b,d.length),this.pending.length===0&&(this.pending=null),d=O.join32(d,0,d.length-b,this.endian);for(var T=0;T<d.length;T+=this._delta32)this._update(d,T,T+this._delta32)}return this},"update"),D.prototype.digest=r(function(d){return this.update(this._pad()),J(this.pending===null),this._digest(d)},"digest"),D.prototype._pad=r(function(){var d=this.pendingTotal,p=this._delta8,b=p-(d+this.padLength)%p,T=new Array(b+this.padLength);T[0]=128;for(var k=1;k<b;k++)T[k]=0;if(d<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)T[k++]=0;T[k++]=0,T[k++]=0,T[k++]=0,T[k++]=0,T[k++]=d>>>24&255,T[k++]=d>>>16&255,T[k++]=d>>>8&255,T[k++]=d&255}else for(T[k++]=d&255,T[k++]=d>>>8&255,T[k++]=d>>>16&255,T[k++]=d>>>24&255,T[k++]=0,T[k++]=0,T[k++]=0,T[k++]=0,h=8;h<this.padLength;h++)T[k++]=0;return T},"pad")},2344:(ne,te,N)=>{var O=N(6436),J=N(9746);function D(F,d,p){if(!(this instanceof D))return new D(F,d,p);this.Hash=F,this.blockSize=F.blockSize/8,this.outSize=F.outSize/8,this.inner=null,this.outer=null,this._init(O.toArray(d,p))}r(D,"Hmac"),ne.exports=D,D.prototype._init=r(function(d){d.length>this.blockSize&&(d=new this.Hash().update(d).digest()),J(d.length<=this.blockSize);for(var p=d.length;p<this.blockSize;p++)d.push(0);for(p=0;p<d.length;p++)d[p]^=54;for(this.inner=new this.Hash().update(d),p=0;p<d.length;p++)d[p]^=106;this.outer=new this.Hash().update(d)},"init"),D.prototype.update=r(function(d,p){return this.inner.update(d,p),this},"update"),D.prototype.digest=r(function(d){return this.outer.update(this.inner.digest()),this.outer.digest(d)},"digest")},2949:(ne,te,N)=>{var O=N(6436),J=N(5772),D=O.rotl32,F=O.sum32,d=O.sum32_3,p=O.sum32_4,b=J.BlockHash;function T(){if(!(this instanceof T))return new T;b.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r(T,"RIPEMD160"),O.inherits(T,b),te.ripemd160=T,T.blockSize=512,T.outSize=160,T.hmacStrength=192,T.padLength=64,T.prototype._update=r(function(R,v){for(var B=this.h[0],A=this.h[1],L=this.h[2],V=this.h[3],G=this.h[4],X=B,fe=A,ae=L,me=V,ye=G,ee=0;ee<80;ee++){var S=F(D(p(B,k(ee,A,L,V),R[E[ee]+v],h(ee)),w[ee]),G);B=G,G=V,V=D(L,10),L=A,A=S,S=F(D(p(X,k(79-ee,fe,ae,me),R[l[ee]+v],a(ee)),m[ee]),ye),X=ye,ye=me,me=D(ae,10),ae=fe,fe=S}S=d(this.h[1],L,me),this.h[1]=d(this.h[2],V,ye),this.h[2]=d(this.h[3],G,X),this.h[3]=d(this.h[4],B,fe),this.h[4]=d(this.h[0],A,ae),this.h[0]=S},"update"),T.prototype._digest=r(function(R){return R==="hex"?O.toHex32(this.h,"little"):O.split32(this.h,"little")},"digest");function k(x,R,v,B){return x<=15?R^v^B:x<=31?R&v|~R&B:x<=47?(R|~v)^B:x<=63?R&B|v&~B:R^(v|~B)}r(k,"f");function h(x){return x<=15?0:x<=31?1518500249:x<=47?1859775393:x<=63?2400959708:2840853838}r(h,"K");function a(x){return x<=15?1352829926:x<=31?1548603684:x<=47?1836072691:x<=63?2053994217:0}r(a,"Kh");var E=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],w=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},9041:(ne,te,N)=>{te.sha1=N(4761),te.sha224=N(799),te.sha256=N(9344),te.sha384=N(772),te.sha512=N(5900)},4761:(ne,te,N)=>{var O=N(6436),J=N(5772),D=N(7038),F=O.rotl32,d=O.sum32,p=O.sum32_5,b=D.ft_1,T=J.BlockHash,k=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;T.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r(h,"SHA1"),O.inherits(h,T),ne.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=r(function(E,l){for(var w=this.W,m=0;m<16;m++)w[m]=E[l+m];for(;m<w.length;m++)w[m]=F(w[m-3]^w[m-8]^w[m-14]^w[m-16],1);var x=this.h[0],R=this.h[1],v=this.h[2],B=this.h[3],A=this.h[4];for(m=0;m<w.length;m++){var L=~~(m/20),V=p(F(x,5),b(L,R,v,B),A,w[m],k[L]);A=B,B=v,v=F(R,30),R=x,x=V}this.h[0]=d(this.h[0],x),this.h[1]=d(this.h[1],R),this.h[2]=d(this.h[2],v),this.h[3]=d(this.h[3],B),this.h[4]=d(this.h[4],A)},"_update"),h.prototype._digest=r(function(E){return E==="hex"?O.toHex32(this.h,"big"):O.split32(this.h,"big")},"digest")},799:(ne,te,N)=>{var O=N(6436),J=N(9344);function D(){if(!(this instanceof D))return new D;J.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r(D,"SHA224"),O.inherits(D,J),ne.exports=D,D.blockSize=512,D.outSize=224,D.hmacStrength=192,D.padLength=64,D.prototype._digest=r(function(d){return d==="hex"?O.toHex32(this.h.slice(0,7),"big"):O.split32(this.h.slice(0,7),"big")},"digest")},9344:(ne,te,N)=>{var O=N(6436),J=N(5772),D=N(7038),F=N(9746),d=O.sum32,p=O.sum32_4,b=O.sum32_5,T=D.ch32,k=D.maj32,h=D.s0_256,a=D.s1_256,E=D.g0_256,l=D.g1_256,w=J.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function x(){if(!(this instanceof x))return new x;w.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r(x,"SHA256"),O.inherits(x,w),ne.exports=x,x.blockSize=512,x.outSize=256,x.hmacStrength=192,x.padLength=64,x.prototype._update=r(function(v,B){for(var A=this.W,L=0;L<16;L++)A[L]=v[B+L];for(;L<A.length;L++)A[L]=p(l(A[L-2]),A[L-7],E(A[L-15]),A[L-16]);var V=this.h[0],G=this.h[1],X=this.h[2],fe=this.h[3],ae=this.h[4],me=this.h[5],ye=this.h[6],ee=this.h[7];for(F(this.k.length===A.length),L=0;L<A.length;L++){var S=b(ee,a(ae),T(ae,me,ye),this.k[L],A[L]),i=d(h(V),k(V,G,X));ee=ye,ye=me,me=ae,ae=d(fe,S),fe=X,X=G,G=V,V=d(S,i)}this.h[0]=d(this.h[0],V),this.h[1]=d(this.h[1],G),this.h[2]=d(this.h[2],X),this.h[3]=d(this.h[3],fe),this.h[4]=d(this.h[4],ae),this.h[5]=d(this.h[5],me),this.h[6]=d(this.h[6],ye),this.h[7]=d(this.h[7],ee)},"_update"),x.prototype._digest=r(function(v){return v==="hex"?O.toHex32(this.h,"big"):O.split32(this.h,"big")},"digest")},772:(ne,te,N)=>{var O=N(6436),J=N(5900);function D(){if(!(this instanceof D))return new D;J.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r(D,"SHA384"),O.inherits(D,J),ne.exports=D,D.blockSize=1024,D.outSize=384,D.hmacStrength=192,D.padLength=128,D.prototype._digest=r(function(d){return d==="hex"?O.toHex32(this.h.slice(0,12),"big"):O.split32(this.h.slice(0,12),"big")},"digest")},5900:(ne,te,N)=>{var O=N(6436),J=N(5772),D=N(9746),F=O.rotr64_hi,d=O.rotr64_lo,p=O.shr64_hi,b=O.shr64_lo,T=O.sum64,k=O.sum64_hi,h=O.sum64_lo,a=O.sum64_4_hi,E=O.sum64_4_lo,l=O.sum64_5_hi,w=O.sum64_5_lo,m=J.BlockHash,x=[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 R(){if(!(this instanceof R))return new R;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=x,this.W=new Array(160)}r(R,"SHA512"),O.inherits(R,m),ne.exports=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=r(function(i,f){for(var s=this.W,y=0;y<32;y++)s[y]=i[f+y];for(;y<s.length;y+=2){var P=ye(s[y-4],s[y-3]),j=ee(s[y-4],s[y-3]),Y=s[y-14],M=s[y-13],u=ae(s[y-30],s[y-29]),K=me(s[y-30],s[y-29]),ge=s[y-32],ve=s[y-31];s[y]=a(P,j,Y,M,u,K,ge,ve),s[y+1]=E(P,j,Y,M,u,K,ge,ve)}},"_prepareBlock"),R.prototype._update=r(function(i,f){this._prepareBlock(i,f);var s=this.W,y=this.h[0],P=this.h[1],j=this.h[2],Y=this.h[3],M=this.h[4],u=this.h[5],K=this.h[6],ge=this.h[7],ve=this.h[8],he=this.h[9],q=this.h[10],$=this.h[11],oe=this.h[12],Se=this.h[13],_e=this.h[14],U=this.h[15];D(this.k.length===s.length);for(var z=0;z<s.length;z+=2){var se=_e,de=U,Me=X(ve,he),Be=fe(ve,he),Re=v(ve,he,q,$,oe,Se),Je=B(ve,he,q,$,oe,Se),Ae=this.k[z],we=this.k[z+1],He=s[z],Ne=s[z+1],Le=l(se,de,Me,Be,Re,Je,Ae,we,He,Ne),be=w(se,de,Me,Be,Re,Je,Ae,we,He,Ne);se=V(y,P),de=G(y,P),Me=A(y,P,j,Y,M,u),Be=L(y,P,j,Y,M,u);var _=k(se,de,Me,Be),o=h(se,de,Me,Be);_e=oe,U=Se,oe=q,Se=$,q=ve,$=he,ve=k(K,ge,Le,be),he=h(ge,ge,Le,be),K=M,ge=u,M=j,u=Y,j=y,Y=P,y=k(Le,be,_,o),P=h(Le,be,_,o)}T(this.h,0,y,P),T(this.h,2,j,Y),T(this.h,4,M,u),T(this.h,6,K,ge),T(this.h,8,ve,he),T(this.h,10,q,$),T(this.h,12,oe,Se),T(this.h,14,_e,U)},"_update"),R.prototype._digest=r(function(i){return i==="hex"?O.toHex32(this.h,"big"):O.split32(this.h,"big")},"digest");function v(S,i,f,s,y){var P=S&f^~S&y;return P<0&&(P+=4294967296),P}r(v,"ch64_hi");function B(S,i,f,s,y,P){var j=i&s^~i&P;return j<0&&(j+=4294967296),j}r(B,"ch64_lo");function A(S,i,f,s,y){var P=S&f^S&y^f&y;return P<0&&(P+=4294967296),P}r(A,"maj64_hi");function L(S,i,f,s,y,P){var j=i&s^i&P^s&P;return j<0&&(j+=4294967296),j}r(L,"maj64_lo");function V(S,i){var f=F(S,i,28),s=F(i,S,2),y=F(i,S,7),P=f^s^y;return P<0&&(P+=4294967296),P}r(V,"s0_512_hi");function G(S,i){var f=d(S,i,28),s=d(i,S,2),y=d(i,S,7),P=f^s^y;return P<0&&(P+=4294967296),P}r(G,"s0_512_lo");function X(S,i){var f=F(S,i,14),s=F(S,i,18),y=F(i,S,9),P=f^s^y;return P<0&&(P+=4294967296),P}r(X,"s1_512_hi");function fe(S,i){var f=d(S,i,14),s=d(S,i,18),y=d(i,S,9),P=f^s^y;return P<0&&(P+=4294967296),P}r(fe,"s1_512_lo");function ae(S,i){var f=F(S,i,1),s=F(S,i,8),y=p(S,i,7),P=f^s^y;return P<0&&(P+=4294967296),P}r(ae,"g0_512_hi");function me(S,i){var f=d(S,i,1),s=d(S,i,8),y=b(S,i,7),P=f^s^y;return P<0&&(P+=4294967296),P}r(me,"g0_512_lo");function ye(S,i){var f=F(S,i,19),s=F(i,S,29),y=p(S,i,6),P=f^s^y;return P<0&&(P+=4294967296),P}r(ye,"g1_512_hi");function ee(S,i){var f=d(S,i,19),s=d(i,S,29),y=b(S,i,6),P=f^s^y;return P<0&&(P+=4294967296),P}r(ee,"g1_512_lo")},7038:(ne,te,N)=>{var O=N(6436),J=O.rotr32;function D(a,E,l,w){if(a===0)return F(E,l,w);if(a===1||a===3)return p(E,l,w);if(a===2)return d(E,l,w)}r(D,"ft_1"),te.ft_1=D;function F(a,E,l){return a&E^~a&l}r(F,"ch32"),te.ch32=F;function d(a,E,l){return a&E^a&l^E&l}r(d,"maj32"),te.maj32=d;function p(a,E,l){return a^E^l}r(p,"p32"),te.p32=p;function b(a){return J(a,2)^J(a,13)^J(a,22)}r(b,"s0_256"),te.s0_256=b;function T(a){return J(a,6)^J(a,11)^J(a,25)}r(T,"s1_256"),te.s1_256=T;function k(a){return J(a,7)^J(a,18)^a>>>3}r(k,"g0_256"),te.g0_256=k;function h(a){return J(a,17)^J(a,19)^a>>>10}r(h,"g1_256"),te.g1_256=h},6436:(ne,te,N)=>{var O=N(9746),J=N(5717);te.inherits=J;function D(ee,S){return(ee.charCodeAt(S)&64512)!==55296||S<0||S+1>=ee.length?!1:(ee.charCodeAt(S+1)&64512)===56320}r(D,"isSurrogatePair");function F(ee,S){if(Array.isArray(ee))return ee.slice();if(!ee)return[];var i=[];if(typeof ee=="string")if(S){if(S==="hex")for(ee=ee.replace(/[^a-z0-9]+/ig,""),ee.length%2!==0&&(ee="0"+ee),s=0;s<ee.length;s+=2)i.push(parseInt(ee[s]+ee[s+1],16))}else for(var f=0,s=0;s<ee.length;s++){var y=ee.charCodeAt(s);y<128?i[f++]=y:y<2048?(i[f++]=y>>6|192,i[f++]=y&63|128):D(ee,s)?(y=65536+((y&1023)<<10)+(ee.charCodeAt(++s)&1023),i[f++]=y>>18|240,i[f++]=y>>12&63|128,i[f++]=y>>6&63|128,i[f++]=y&63|128):(i[f++]=y>>12|224,i[f++]=y>>6&63|128,i[f++]=y&63|128)}else for(s=0;s<ee.length;s++)i[s]=ee[s]|0;return i}r(F,"toArray"),te.toArray=F;function d(ee){for(var S="",i=0;i<ee.length;i++)S+=T(ee[i].toString(16));return S}r(d,"toHex"),te.toHex=d;function p(ee){var S=ee>>>24|ee>>>8&65280|ee<<8&16711680|(ee&255)<<24;return S>>>0}r(p,"htonl"),te.htonl=p;function b(ee,S){for(var i="",f=0;f<ee.length;f++){var s=ee[f];S==="little"&&(s=p(s)),i+=k(s.toString(16))}return i}r(b,"toHex32"),te.toHex32=b;function T(ee){return ee.length===1?"0"+ee:ee}r(T,"zero2"),te.zero2=T;function k(ee){return ee.length===7?"0"+ee:ee.length===6?"00"+ee:ee.length===5?"000"+ee:ee.length===4?"0000"+ee:ee.length===3?"00000"+ee:ee.length===2?"000000"+ee:ee.length===1?"0000000"+ee:ee}r(k,"zero8"),te.zero8=k;function h(ee,S,i,f){var s=i-S;O(s%4===0);for(var y=new Array(s/4),P=0,j=S;P<y.length;P++,j+=4){var Y;f==="big"?Y=ee[j]<<24|ee[j+1]<<16|ee[j+2]<<8|ee[j+3]:Y=ee[j+3]<<24|ee[j+2]<<16|ee[j+1]<<8|ee[j],y[P]=Y>>>0}return y}r(h,"join32"),te.join32=h;function a(ee,S){for(var i=new Array(ee.length*4),f=0,s=0;f<ee.length;f++,s+=4){var y=ee[f];S==="big"?(i[s]=y>>>24,i[s+1]=y>>>16&255,i[s+2]=y>>>8&255,i[s+3]=y&255):(i[s+3]=y>>>24,i[s+2]=y>>>16&255,i[s+1]=y>>>8&255,i[s]=y&255)}return i}r(a,"split32"),te.split32=a;function E(ee,S){return ee>>>S|ee<<32-S}r(E,"rotr32"),te.rotr32=E;function l(ee,S){return ee<<S|ee>>>32-S}r(l,"rotl32"),te.rotl32=l;function w(ee,S){return ee+S>>>0}r(w,"sum32"),te.sum32=w;function m(ee,S,i){return ee+S+i>>>0}r(m,"sum32_3"),te.sum32_3=m;function x(ee,S,i,f){return ee+S+i+f>>>0}r(x,"sum32_4"),te.sum32_4=x;function R(ee,S,i,f,s){return ee+S+i+f+s>>>0}r(R,"sum32_5"),te.sum32_5=R;function v(ee,S,i,f){var s=ee[S],y=ee[S+1],P=f+y>>>0,j=(P<f?1:0)+i+s;ee[S]=j>>>0,ee[S+1]=P}r(v,"sum64"),te.sum64=v;function B(ee,S,i,f){var s=S+f>>>0,y=(s<S?1:0)+ee+i;return y>>>0}r(B,"sum64_hi"),te.sum64_hi=B;function A(ee,S,i,f){var s=S+f;return s>>>0}r(A,"sum64_lo"),te.sum64_lo=A;function L(ee,S,i,f,s,y,P,j){var Y=0,M=S;M=M+f>>>0,Y+=M<S?1:0,M=M+y>>>0,Y+=M<y?1:0,M=M+j>>>0,Y+=M<j?1:0;var u=ee+i+s+P+Y;return u>>>0}r(L,"sum64_4_hi"),te.sum64_4_hi=L;function V(ee,S,i,f,s,y,P,j){var Y=S+f+y+j;return Y>>>0}r(V,"sum64_4_lo"),te.sum64_4_lo=V;function G(ee,S,i,f,s,y,P,j,Y,M){var u=0,K=S;K=K+f>>>0,u+=K<S?1:0,K=K+y>>>0,u+=K<y?1:0,K=K+j>>>0,u+=K<j?1:0,K=K+M>>>0,u+=K<M?1:0;var ge=ee+i+s+P+Y+u;return ge>>>0}r(G,"sum64_5_hi"),te.sum64_5_hi=G;function X(ee,S,i,f,s,y,P,j,Y,M){var u=S+f+y+j+M;return u>>>0}r(X,"sum64_5_lo"),te.sum64_5_lo=X;function fe(ee,S,i){var f=S<<32-i|ee>>>i;return f>>>0}r(fe,"rotr64_hi"),te.rotr64_hi=fe;function ae(ee,S,i){var f=ee<<32-i|S>>>i;return f>>>0}r(ae,"rotr64_lo"),te.rotr64_lo=ae;function me(ee,S,i){return ee>>>i}r(me,"shr64_hi"),te.shr64_hi=me;function ye(ee,S,i){var f=ee<<32-i|S>>>i;return f>>>0}r(ye,"shr64_lo"),te.shr64_lo=ye},2156:(ne,te,N)=>{var O=N(3715),J=N(4504),D=N(9746);function F(d){if(!(this instanceof F))return new F(d);this.hash=d.hash,this.predResist=!!d.predResist,this.outLen=this.hash.outSize,this.minEntropy=d.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var p=J.toArray(d.entropy,d.entropyEnc||"hex"),b=J.toArray(d.nonce,d.nonceEnc||"hex"),T=J.toArray(d.pers,d.persEnc||"hex");D(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(p,b,T)}r(F,"HmacDRBG"),ne.exports=F,F.prototype._init=r(function(p,b,T){var k=p.concat(b).concat(T);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(k),this._reseed=1,this.reseedInterval=281474976710656},"init"),F.prototype._hmac=r(function(){return new O.hmac(this.hash,this.K)},"hmac"),F.prototype._update=r(function(p){var b=this._hmac().update(this.V).update([0]);p&&(b=b.update(p)),this.K=b.digest(),this.V=this._hmac().update(this.V).digest(),p&&(this.K=this._hmac().update(this.V).update([1]).update(p).digest(),this.V=this._hmac().update(this.V).digest())},"update"),F.prototype.reseed=r(function(p,b,T,k){typeof b!="string"&&(k=T,T=b,b=null),p=J.toArray(p,b),T=J.toArray(T,k),D(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(p.concat(T||[])),this._reseed=1},"reseed"),F.prototype.generate=r(function(p,b,T,k){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof b!="string"&&(k=T,T=b,b=null),T&&(T=J.toArray(T,k||"hex"),this._update(T));for(var h=[];h.length<p;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var a=h.slice(0,p);return this._update(T),this._reseed++,J.encode(a,b)},"generate")},645:(ne,te)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */te.read=function(N,O,J,D,F){var d,p,b=F*8-D-1,T=(1<<b)-1,k=T>>1,h=-7,a=J?F-1:0,E=J?-1:1,l=N[O+a];for(a+=E,d=l&(1<<-h)-1,l>>=-h,h+=b;h>0;d=d*256+N[O+a],a+=E,h-=8);for(p=d&(1<<-h)-1,d>>=-h,h+=D;h>0;p=p*256+N[O+a],a+=E,h-=8);if(d===0)d=1-k;else{if(d===T)return p?NaN:(l?-1:1)*(1/0);p=p+Math.pow(2,D),d=d-k}return(l?-1:1)*p*Math.pow(2,d-D)},te.write=function(N,O,J,D,F,d){var p,b,T,k=d*8-F-1,h=(1<<k)-1,a=h>>1,E=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=D?0:d-1,w=D?1:-1,m=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(b=isNaN(O)?1:0,p=h):(p=Math.floor(Math.log(O)/Math.LN2),O*(T=Math.pow(2,-p))<1&&(p--,T*=2),p+a>=1?O+=E/T:O+=E*Math.pow(2,1-a),O*T>=2&&(p++,T/=2),p+a>=h?(b=0,p=h):p+a>=1?(b=(O*T-1)*Math.pow(2,F),p=p+a):(b=O*Math.pow(2,a-1)*Math.pow(2,F),p=0));F>=8;N[J+l]=b&255,l+=w,b/=256,F-=8);for(p=p<<F|b,k+=F;k>0;N[J+l]=p&255,l+=w,p/=256,k-=8);N[J+l-w]|=m*128}},5717:ne=>{typeof Object.create=="function"?ne.exports=r(function(N,O){O&&(N.super_=O,N.prototype=Object.create(O.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):ne.exports=r(function(N,O){if(O){N.super_=O;var J=r(function(){},"TempCtor");J.prototype=O.prototype,N.prototype=new J,N.prototype.constructor=N}},"inherits")},2318:(ne,te,N)=>{var O=N(5717),J=N(3349),D=N(9509).Buffer,F=new Array(16);function d(){J.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}r(d,"MD5"),O(d,J),d.prototype._update=function(){for(var a=F,E=0;E<16;++E)a[E]=this._block.readInt32LE(E*4);var l=this._a,w=this._b,m=this._c,x=this._d;l=b(l,w,m,x,a[0],3614090360,7),x=b(x,l,w,m,a[1],3905402710,12),m=b(m,x,l,w,a[2],606105819,17),w=b(w,m,x,l,a[3],3250441966,22),l=b(l,w,m,x,a[4],4118548399,7),x=b(x,l,w,m,a[5],1200080426,12),m=b(m,x,l,w,a[6],2821735955,17),w=b(w,m,x,l,a[7],4249261313,22),l=b(l,w,m,x,a[8],1770035416,7),x=b(x,l,w,m,a[9],2336552879,12),m=b(m,x,l,w,a[10],4294925233,17),w=b(w,m,x,l,a[11],2304563134,22),l=b(l,w,m,x,a[12],1804603682,7),x=b(x,l,w,m,a[13],4254626195,12),m=b(m,x,l,w,a[14],2792965006,17),w=b(w,m,x,l,a[15],1236535329,22),l=T(l,w,m,x,a[1],4129170786,5),x=T(x,l,w,m,a[6],3225465664,9),m=T(m,x,l,w,a[11],643717713,14),w=T(w,m,x,l,a[0],3921069994,20),l=T(l,w,m,x,a[5],3593408605,5),x=T(x,l,w,m,a[10],38016083,9),m=T(m,x,l,w,a[15],3634488961,14),w=T(w,m,x,l,a[4],3889429448,20),l=T(l,w,m,x,a[9],568446438,5),x=T(x,l,w,m,a[14],3275163606,9),m=T(m,x,l,w,a[3],4107603335,14),w=T(w,m,x,l,a[8],1163531501,20),l=T(l,w,m,x,a[13],2850285829,5),x=T(x,l,w,m,a[2],4243563512,9),m=T(m,x,l,w,a[7],1735328473,14),w=T(w,m,x,l,a[12],2368359562,20),l=k(l,w,m,x,a[5],4294588738,4),x=k(x,l,w,m,a[8],2272392833,11),m=k(m,x,l,w,a[11],1839030562,16),w=k(w,m,x,l,a[14],4259657740,23),l=k(l,w,m,x,a[1],2763975236,4),x=k(x,l,w,m,a[4],1272893353,11),m=k(m,x,l,w,a[7],4139469664,16),w=k(w,m,x,l,a[10],3200236656,23),l=k(l,w,m,x,a[13],681279174,4),x=k(x,l,w,m,a[0],3936430074,11),m=k(m,x,l,w,a[3],3572445317,16),w=k(w,m,x,l,a[6],76029189,23),l=k(l,w,m,x,a[9],3654602809,4),x=k(x,l,w,m,a[12],3873151461,11),m=k(m,x,l,w,a[15],530742520,16),w=k(w,m,x,l,a[2],3299628645,23),l=h(l,w,m,x,a[0],4096336452,6),x=h(x,l,w,m,a[7],1126891415,10),m=h(m,x,l,w,a[14],2878612391,15),w=h(w,m,x,l,a[5],4237533241,21),l=h(l,w,m,x,a[12],1700485571,6),x=h(x,l,w,m,a[3],2399980690,10),m=h(m,x,l,w,a[10],4293915773,15),w=h(w,m,x,l,a[1],2240044497,21),l=h(l,w,m,x,a[8],1873313359,6),x=h(x,l,w,m,a[15],4264355552,10),m=h(m,x,l,w,a[6],2734768916,15),w=h(w,m,x,l,a[13],1309151649,21),l=h(l,w,m,x,a[4],4149444226,6),x=h(x,l,w,m,a[11],3174756917,10),m=h(m,x,l,w,a[2],718787259,15),w=h(w,m,x,l,a[9],3951481745,21),this._a=this._a+l|0,this._b=this._b+w|0,this._c=this._c+m|0,this._d=this._d+x|0},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=D.allocUnsafe(16);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a};function p(a,E){return a<<E|a>>>32-E}r(p,"rotl");function b(a,E,l,w,m,x,R){return p(a+(E&l|~E&w)+m+x|0,R)+E|0}r(b,"fnF");function T(a,E,l,w,m,x,R){return p(a+(E&w|l&~w)+m+x|0,R)+E|0}r(T,"fnG");function k(a,E,l,w,m,x,R){return p(a+(E^l^w)+m+x|0,R)+E|0}r(k,"fnH");function h(a,E,l,w,m,x,R){return p(a+(l^(E|~w))+m+x|0,R)+E|0}r(h,"fnI"),ne.exports=d},9746:ne=>{ne.exports=te;function te(N,O){if(!N)throw new Error(O||"Assertion failed")}r(te,"assert"),te.equal=r(function(O,J,D){if(O!=J)throw new Error(D||"Assertion failed: "+O+" != "+J)},"assertEqual")},4504:(ne,te)=>{var N=te;function O(F,d){if(Array.isArray(F))return F.slice();if(!F)return[];var p=[];if(typeof F!="string"){for(var b=0;b<F.length;b++)p[b]=F[b]|0;return p}if(d==="hex"){F=F.replace(/[^a-z0-9]+/ig,""),F.length%2!==0&&(F="0"+F);for(var b=0;b<F.length;b+=2)p.push(parseInt(F[b]+F[b+1],16))}else for(var b=0;b<F.length;b++){var T=F.charCodeAt(b),k=T>>8,h=T&255;k?p.push(k,h):p.push(h)}return p}r(O,"toArray"),N.toArray=O;function J(F){return F.length===1?"0"+F:F}r(J,"zero2"),N.zero2=J;function D(F){for(var d="",p=0;p<F.length;p++)d+=J(F[p].toString(16));return d}r(D,"toHex"),N.toHex=D,N.encode=r(function(d,p){return p==="hex"?D(d):d},"encode")},5632:(ne,te,N)=>{te.pbkdf2=N(8638),te.pbkdf2Sync=N(1257)},8638:(ne,te,N)=>{var O=N(9509).Buffer,J=N(7357),D=N(2368),F=N(1257),d=N(7777),p,b=N.g.crypto&&N.g.crypto.subtle,T={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},k=[];function h(m){if(N.g.process&&!N.g.process.browser||!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(k[m]!==void 0)return k[m];p=p||O.alloc(8);var x=l(p,p,10,128,m).then(function(){return!0}).catch(function(){return!1});return k[m]=x,x}r(h,"checkNative");var a;function E(){return a||(N.g.process&&N.g.process.nextTick?a=N.g.process.nextTick:N.g.queueMicrotask?a=N.g.queueMicrotask:N.g.setImmediate?a=N.g.setImmediate:a=N.g.setTimeout,a)}r(E,"getNextTick");function l(m,x,R,v,B){return b.importKey("raw",m,{name:"PBKDF2"},!1,["deriveBits"]).then(function(A){return b.deriveBits({name:"PBKDF2",salt:x,iterations:R,hash:{name:B}},A,v<<3)}).then(function(A){return O.from(A)})}r(l,"browserPbkdf2");function w(m,x){m.then(function(R){E()(function(){x(null,R)})},function(R){E()(function(){x(R)})})}r(w,"resolvePromise"),ne.exports=function(m,x,R,v,B,A){typeof B=="function"&&(A=B,B=void 0),B=B||"sha1";var L=T[B.toLowerCase()];if(!L||typeof N.g.Promise!="function"){E()(function(){var V;try{V=F(m,x,R,v,B)}catch(G){return A(G)}A(null,V)});return}if(J(R,v),m=d(m,D,"Password"),x=d(x,D,"Salt"),typeof A!="function")throw new Error("No callback provided to pbkdf2");w(h(L).then(function(V){return V?l(m,x,R,v,L):F(m,x,R,v,B)}),A)}},2368:(ne,te,N)=>{var O;if(N.g.process&&N.g.process.browser)O="utf-8";else if(N.g.process&&N.g.process.version){var J=parseInt(process.version.split(".")[0].slice(1),10);O=J>=6?"utf-8":"binary"}else O="utf-8";ne.exports=O},7357:ne=>{var te=Math.pow(2,30)-1;ne.exports=function(N,O){if(typeof N!="number")throw new TypeError("Iterations not a number");if(N<0)throw new TypeError("Bad iterations");if(typeof O!="number")throw new TypeError("Key length not a number");if(O<0||O>te||O!==O)throw new TypeError("Bad key length")}},1257:(ne,te,N)=>{var O=N(8028),J=N(9785),D=N(9072),F=N(9509).Buffer,d=N(7357),p=N(2368),b=N(7777),T=F.alloc(128),k={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(l,w,m){var x=a(l),R=l==="sha512"||l==="sha384"?128:64;w.length>R?w=x(w):w.length<R&&(w=F.concat([w,T],R));for(var v=F.allocUnsafe(R+k[l]),B=F.allocUnsafe(R+k[l]),A=0;A<R;A++)v[A]=w[A]^54,B[A]=w[A]^92;var L=F.allocUnsafe(R+m+4);v.copy(L,0,0,R),this.ipad1=L,this.ipad2=v,this.opad=B,this.alg=l,this.blocksize=R,this.hash=x,this.size=k[l]}r(h,"Hmac"),h.prototype.run=function(l,w){l.copy(w,this.blocksize);var m=this.hash(w);return m.copy(this.opad,this.blocksize),this.hash(this.opad)};function a(l){function w(x){return D(l).update(x).digest()}r(w,"shaFunc");function m(x){return new J().update(x).digest()}return r(m,"rmd160Func"),l==="rmd160"||l==="ripemd160"?m:l==="md5"?O:w}r(a,"getDigest");function E(l,w,m,x,R){d(m,x),l=b(l,p,"Password"),w=b(w,p,"Salt"),R=R||"sha1";var v=new h(R,l,w.length),B=F.allocUnsafe(x),A=F.allocUnsafe(w.length+4);w.copy(A,0,0,w.length);for(var L=0,V=k[R],G=Math.ceil(x/V),X=1;X<=G;X++){A.writeUInt32BE(X,w.length);for(var fe=v.run(A,v.ipad1),ae=fe,me=1;me<m;me++){ae=v.run(ae,v.ipad2);for(var ye=0;ye<V;ye++)fe[ye]^=ae[ye]}fe.copy(B,L),L+=V}return B}r(E,"pbkdf2"),ne.exports=E},7777:(ne,te,N)=>{var O=N(9509).Buffer;ne.exports=function(J,D,F){if(O.isBuffer(J))return J;if(typeof J=="string")return O.from(J,D);if(ArrayBuffer.isView(J))return O.from(J.buffer);throw new TypeError(F+" must be a string, a Buffer, a typed array or a DataView")}},1798:(ne,te,N)=>{var O=65536,J=4294967295;function D(){throw new Error(`Secure random number generation is not supported by this browser.
7
- Use Chrome, Firefox or Internet Explorer 11`)}r(D,"oldBrowser");var F=N(9509).Buffer,d=N.g.crypto||N.g.msCrypto;d&&d.getRandomValues?ne.exports=p:ne.exports=D;function p(b,T){if(b>J)throw new RangeError("requested too many random bytes");var k=F.allocUnsafe(b);if(b>0)if(b>O)for(var h=0;h<b;h+=O)d.getRandomValues(k.slice(h,h+O));else d.getRandomValues(k);return typeof T=="function"?process.nextTick(function(){T(null,k)}):k}r(p,"randomBytes")},4281:ne=>{function te(p,b){p.prototype=Object.create(b.prototype),p.prototype.constructor=p,p.__proto__=b}r(te,"_inheritsLoose");var N={};function O(p,b,T){T||(T=Error);function k(a,E,l){return typeof b=="string"?b:b(a,E,l)}r(k,"getMessage");var h=function(a){te(E,a);function E(l,w,m){return a.call(this,k(l,w,m))||this}return r(E,"NodeError"),E}(T);h.prototype.name=T.name,h.prototype.code=p,N[p]=h}r(O,"createErrorType");function J(p,b){if(Array.isArray(p)){var T=p.length;return p=p.map(function(k){return String(k)}),T>2?"one of ".concat(b," ").concat(p.slice(0,T-1).join(", "),", or ")+p[T-1]:T===2?"one of ".concat(b," ").concat(p[0]," or ").concat(p[1]):"of ".concat(b," ").concat(p[0])}else return"of ".concat(b," ").concat(String(p))}r(J,"oneOf");function D(p,b,T){return p.substr(!T||T<0?0:+T,b.length)===b}r(D,"startsWith");function F(p,b,T){return(T===void 0||T>p.length)&&(T=p.length),p.substring(T-b.length,T)===b}r(F,"endsWith");function d(p,b,T){return typeof T!="number"&&(T=0),T+b.length>p.length?!1:p.indexOf(b,T)!==-1}r(d,"includes"),O("ERR_INVALID_OPT_VALUE",function(p,b){return'The value "'+b+'" is invalid for option "'+p+'"'},TypeError),O("ERR_INVALID_ARG_TYPE",function(p,b,T){var k;typeof b=="string"&&D(b,"not ")?(k="must not be",b=b.replace(/^not /,"")):k="must be";var h;if(F(p," argument"))h="The ".concat(p," ").concat(k," ").concat(J(b,"type"));else{var a=d(p,".")?"property":"argument";h='The "'.concat(p,'" ').concat(a," ").concat(k," ").concat(J(b,"type"))}return h+=". Received type ".concat(typeof T),h},TypeError),O("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),O("ERR_METHOD_NOT_IMPLEMENTED",function(p){return"The "+p+" method is not implemented"}),O("ERR_STREAM_PREMATURE_CLOSE","Premature close"),O("ERR_STREAM_DESTROYED",function(p){return"Cannot call "+p+" after a stream was destroyed"}),O("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),O("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),O("ERR_STREAM_WRITE_AFTER_END","write after end"),O("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),O("ERR_UNKNOWN_ENCODING",function(p){return"Unknown encoding: "+p},TypeError),O("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ne.exports.q=N},6753:(ne,te,N)=>{var O=Object.keys||function(h){var a=[];for(var E in h)a.push(E);return a};ne.exports=b;var J=N(9481),D=N(4229);N(5717)(b,J);for(var F=O(D.prototype),d=0;d<F.length;d++){var p=F[d];b.prototype[p]||(b.prototype[p]=D.prototype[p])}function b(h){if(!(this instanceof b))return new b(h);J.call(this,h),D.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",T)))}r(b,"Duplex"),Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:r(function(){return this._writableState.highWaterMark},"get")}),Object.defineProperty(b.prototype,"writableBuffer",{enumerable:!1,get:r(function(){return this._writableState&&this._writableState.getBuffer()},"get")}),Object.defineProperty(b.prototype,"writableLength",{enumerable:!1,get:r(function(){return this._writableState.length},"get")});function T(){this._writableState.ended||process.nextTick(k,this)}r(T,"onend");function k(h){h.end()}r(k,"onEndNT"),Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:r(function(a){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=a,this._writableState.destroyed=a)},"set")})},2725:(ne,te,N)=>{ne.exports=J;var O=N(4605);N(5717)(J,O);function J(D){if(!(this instanceof J))return new J(D);O.call(this,D)}r(J,"PassThrough"),J.prototype._transform=function(D,F,d){d(null,D)}},9481:(ne,te,N)=>{ne.exports=me;var O;me.ReadableState=ae;var J=N(7187).EventEmitter,D=r(function(z,se){return z.listeners(se).length},"EElistenerCount"),F=N(2503),d=N(8764).Buffer,p=(typeof N.g<"u"?N.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function b(U){return d.from(U)}r(b,"_uint8ArrayToBuffer");function T(U){return d.isBuffer(U)||U instanceof p}r(T,"_isUint8Array");var k=N(4616),h;k&&k.debuglog?h=k.debuglog("stream"):h=r(function(){},"debug");var a=N(7327),E=N(1195),l=N(2457),w=l.getHighWaterMark,m=N(4281).q,x=m.ERR_INVALID_ARG_TYPE,R=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,B=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,A,L,V;N(5717)(me,F);var G=E.errorOrDestroy,X=["error","close","destroy","pause","resume"];function fe(U,z,se){if(typeof U.prependListener=="function")return U.prependListener(z,se);!U._events||!U._events[z]?U.on(z,se):Array.isArray(U._events[z])?U._events[z].unshift(se):U._events[z]=[se,U._events[z]]}r(fe,"prependListener");function ae(U,z,se){O=O||N(6753),U=U||{},typeof se!="boolean"&&(se=z instanceof O),this.objectMode=!!U.objectMode,se&&(this.objectMode=this.objectMode||!!U.readableObjectMode),this.highWaterMark=w(this,U,"readableHighWaterMark",se),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(A||(A=N(2553).s),this.decoder=new A(U.encoding),this.encoding=U.encoding)}r(ae,"ReadableState");function me(U){if(O=O||N(6753),!(this instanceof me))return new me(U);var z=this instanceof O;this._readableState=new ae(U,this,z),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),F.call(this)}r(me,"Readable"),Object.defineProperty(me.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:r(function(z){this._readableState&&(this._readableState.destroyed=z)},"set")}),me.prototype.destroy=E.destroy,me.prototype._undestroy=E.undestroy,me.prototype._destroy=function(U,z){z(U)},me.prototype.push=function(U,z){var se=this._readableState,de;return se.objectMode?de=!0:typeof U=="string"&&(z=z||se.defaultEncoding,z!==se.encoding&&(U=d.from(U,z),z=""),de=!0),ye(this,U,z,!1,de)},me.prototype.unshift=function(U){return ye(this,U,null,!0,!1)};function ye(U,z,se,de,Me){h("readableAddChunk",z);var Be=U._readableState;if(z===null)Be.reading=!1,y(U,Be);else{var Re;if(Me||(Re=S(Be,z)),Re)G(U,Re);else if(Be.objectMode||z&&z.length>0)if(typeof z!="string"&&!Be.objectMode&&Object.getPrototypeOf(z)!==d.prototype&&(z=b(z)),de)Be.endEmitted?G(U,new B):ee(U,Be,z,!0);else if(Be.ended)G(U,new R);else{if(Be.destroyed)return!1;Be.reading=!1,Be.decoder&&!se?(z=Be.decoder.write(z),Be.objectMode||z.length!==0?ee(U,Be,z,!1):Y(U,Be)):ee(U,Be,z,!1)}else de||(Be.reading=!1,Y(U,Be))}return!Be.ended&&(Be.length<Be.highWaterMark||Be.length===0)}r(ye,"readableAddChunk");function ee(U,z,se,de){z.flowing&&z.length===0&&!z.sync?(z.awaitDrain=0,U.emit("data",se)):(z.length+=z.objectMode?1:se.length,de?z.buffer.unshift(se):z.buffer.push(se),z.needReadable&&P(U)),Y(U,z)}r(ee,"addChunk");function S(U,z){var se;return!T(z)&&typeof z!="string"&&z!==void 0&&!U.objectMode&&(se=new x("chunk",["string","Buffer","Uint8Array"],z)),se}r(S,"chunkInvalid"),me.prototype.isPaused=function(){return this._readableState.flowing===!1},me.prototype.setEncoding=function(U){A||(A=N(2553).s);var z=new A(U);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;for(var se=this._readableState.buffer.head,de="";se!==null;)de+=z.write(se.data),se=se.next;return this._readableState.buffer.clear(),de!==""&&this._readableState.buffer.push(de),this._readableState.length=de.length,this};var i=1073741824;function f(U){return U>=i?U=i:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}r(f,"computeNewHighWaterMark");function s(U,z){return U<=0||z.length===0&&z.ended?0:z.objectMode?1:U!==U?z.flowing&&z.length?z.buffer.head.data.length:z.length:(U>z.highWaterMark&&(z.highWaterMark=f(U)),U<=z.length?U:z.ended?z.length:(z.needReadable=!0,0))}r(s,"howMuchToRead"),me.prototype.read=function(U){h("read",U),U=parseInt(U,10);var z=this._readableState,se=U;if(U!==0&&(z.emittedReadable=!1),U===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended))return h("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?oe(this):P(this),null;if(U=s(U,z),U===0&&z.ended)return z.length===0&&oe(this),null;var de=z.needReadable;h("need readable",de),(z.length===0||z.length-U<z.highWaterMark)&&(de=!0,h("length less than watermark",de)),z.ended||z.reading?(de=!1,h("reading or ended",de)):de&&(h("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(U=s(se,z)));var Me;return U>0?Me=$(U,z):Me=null,Me===null?(z.needReadable=z.length<=z.highWaterMark,U=0):(z.length-=U,z.awaitDrain=0),z.length===0&&(z.ended||(z.needReadable=!0),se!==U&&z.ended&&oe(this)),Me!==null&&this.emit("data",Me),Me};function y(U,z){if(h("onEofChunk"),!z.ended){if(z.decoder){var se=z.decoder.end();se&&se.length&&(z.buffer.push(se),z.length+=z.objectMode?1:se.length)}z.ended=!0,z.sync?P(U):(z.needReadable=!1,z.emittedReadable||(z.emittedReadable=!0,j(U)))}}r(y,"onEofChunk");function P(U){var z=U._readableState;h("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,z.emittedReadable||(h("emitReadable",z.flowing),z.emittedReadable=!0,process.nextTick(j,U))}r(P,"emitReadable");function j(U){var z=U._readableState;h("emitReadable_",z.destroyed,z.length,z.ended),!z.destroyed&&(z.length||z.ended)&&(U.emit("readable"),z.emittedReadable=!1),z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,q(U)}r(j,"emitReadable_");function Y(U,z){z.readingMore||(z.readingMore=!0,process.nextTick(M,U,z))}r(Y,"maybeReadMore");function M(U,z){for(;!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0);){var se=z.length;if(h("maybeReadMore read 0"),U.read(0),se===z.length)break}z.readingMore=!1}r(M,"maybeReadMore_"),me.prototype._read=function(U){G(this,new v("_read()"))},me.prototype.pipe=function(U,z){var se=this,de=this._readableState;switch(de.pipesCount){case 0:de.pipes=U;break;case 1:de.pipes=[de.pipes,U];break;default:de.pipes.push(U);break}de.pipesCount+=1,h("pipe count=%d opts=%j",de.pipesCount,z);var Me=(!z||z.end!==!1)&&U!==process.stdout&&U!==process.stderr,Be=Me?Je:o;de.endEmitted?process.nextTick(Be):se.once("end",Be),U.on("unpipe",Re);function Re(c,H){h("onunpipe"),c===se&&H&&H.hasUnpiped===!1&&(H.hasUnpiped=!0,He())}r(Re,"onunpipe");function Je(){h("onend"),U.end()}r(Je,"onend");var Ae=u(se);U.on("drain",Ae);var we=!1;function He(){h("cleanup"),U.removeListener("close",be),U.removeListener("finish",_),U.removeListener("drain",Ae),U.removeListener("error",Le),U.removeListener("unpipe",Re),se.removeListener("end",Je),se.removeListener("end",o),se.removeListener("data",Ne),we=!0,de.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&Ae()}r(He,"cleanup"),se.on("data",Ne);function Ne(c){h("ondata");var H=U.write(c);h("dest.write",H),H===!1&&((de.pipesCount===1&&de.pipes===U||de.pipesCount>1&&_e(de.pipes,U)!==-1)&&!we&&(h("false write response, pause",de.awaitDrain),de.awaitDrain++),se.pause())}r(Ne,"ondata");function Le(c){h("onerror",c),o(),U.removeListener("error",Le),D(U,"error")===0&&G(U,c)}r(Le,"onerror"),fe(U,"error",Le);function be(){U.removeListener("finish",_),o()}r(be,"onclose"),U.once("close",be);function _(){h("onfinish"),U.removeListener("close",be),o()}r(_,"onfinish"),U.once("finish",_);function o(){h("unpipe"),se.unpipe(U)}return r(o,"unpipe"),U.emit("pipe",se),de.flowing||(h("pipe resume"),se.resume()),U};function u(U){return r(function(){var se=U._readableState;h("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&D(U,"data")&&(se.flowing=!0,q(U))},"pipeOnDrainFunctionResult")}r(u,"pipeOnDrain"),me.prototype.unpipe=function(U){var z=this._readableState,se={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return U&&U!==z.pipes?this:(U||(U=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,U&&U.emit("unpipe",this,se),this);if(!U){var de=z.pipes,Me=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var Be=0;Be<Me;Be++)de[Be].emit("unpipe",this,{hasUnpiped:!1});return this}var Re=_e(z.pipes,U);return Re===-1?this:(z.pipes.splice(Re,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),U.emit("unpipe",this,se),this)},me.prototype.on=function(U,z){var se=F.prototype.on.call(this,U,z),de=this._readableState;return U==="data"?(de.readableListening=this.listenerCount("readable")>0,de.flowing!==!1&&this.resume()):U==="readable"&&!de.endEmitted&&!de.readableListening&&(de.readableListening=de.needReadable=!0,de.flowing=!1,de.emittedReadable=!1,h("on readable",de.length,de.reading),de.length?P(this):de.reading||process.nextTick(ge,this)),se},me.prototype.addListener=me.prototype.on,me.prototype.removeListener=function(U,z){var se=F.prototype.removeListener.call(this,U,z);return U==="readable"&&process.nextTick(K,this),se},me.prototype.removeAllListeners=function(U){var z=F.prototype.removeAllListeners.apply(this,arguments);return(U==="readable"||U===void 0)&&process.nextTick(K,this),z};function K(U){var z=U._readableState;z.readableListening=U.listenerCount("readable")>0,z.resumeScheduled&&!z.paused?z.flowing=!0:U.listenerCount("data")>0&&U.resume()}r(K,"updateReadableListening");function ge(U){h("readable nexttick read 0"),U.read(0)}r(ge,"nReadingNextTick"),me.prototype.resume=function(){var U=this._readableState;return U.flowing||(h("resume"),U.flowing=!U.readableListening,ve(this,U)),U.paused=!1,this};function ve(U,z){z.resumeScheduled||(z.resumeScheduled=!0,process.nextTick(he,U,z))}r(ve,"resume");function he(U,z){h("resume",z.reading),z.reading||U.read(0),z.resumeScheduled=!1,U.emit("resume"),q(U),z.flowing&&!z.reading&&U.read(0)}r(he,"resume_"),me.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(U){var z=U._readableState;for(h("flow",z.flowing);z.flowing&&U.read()!==null;);}r(q,"flow"),me.prototype.wrap=function(U){var z=this,se=this._readableState,de=!1;U.on("end",function(){if(h("wrapped end"),se.decoder&&!se.ended){var Re=se.decoder.end();Re&&Re.length&&z.push(Re)}z.push(null)}),U.on("data",function(Re){if(h("wrapped data"),se.decoder&&(Re=se.decoder.write(Re)),!(se.objectMode&&Re==null)&&!(!se.objectMode&&(!Re||!Re.length))){var Je=z.push(Re);Je||(de=!0,U.pause())}});for(var Me in U)this[Me]===void 0&&typeof U[Me]=="function"&&(this[Me]=r(function(Je){return r(function(){return U[Je].apply(U,arguments)},"methodWrapReturnFunction")},"methodWrap")(Me));for(var Be=0;Be<X.length;Be++)U.on(X[Be],this.emit.bind(this,X[Be]));return this._read=function(Re){h("wrapped _read",Re),de&&(de=!1,U.resume())},this},typeof Symbol=="function"&&(me.prototype[Symbol.asyncIterator]=function(){return L===void 0&&(L=N(5850)),L(this)}),Object.defineProperty(me.prototype,"readableHighWaterMark",{enumerable:!1,get:r(function(){return this._readableState.highWaterMark},"get")}),Object.defineProperty(me.prototype,"readableBuffer",{enumerable:!1,get:r(function(){return this._readableState&&this._readableState.buffer},"get")}),Object.defineProperty(me.prototype,"readableFlowing",{enumerable:!1,get:r(function(){return this._readableState.flowing},"get"),set:r(function(z){this._readableState&&(this._readableState.flowing=z)},"set")}),me._fromList=$,Object.defineProperty(me.prototype,"readableLength",{enumerable:!1,get:r(function(){return this._readableState.length},"get")});function $(U,z){if(z.length===0)return null;var se;return z.objectMode?se=z.buffer.shift():!U||U>=z.length?(z.decoder?se=z.buffer.join(""):z.buffer.length===1?se=z.buffer.first():se=z.buffer.concat(z.length),z.buffer.clear()):se=z.buffer.consume(U,z.decoder),se}r($,"fromList");function oe(U){var z=U._readableState;h("endReadable",z.endEmitted),z.endEmitted||(z.ended=!0,process.nextTick(Se,z,U))}r(oe,"endReadable");function Se(U,z){if(h("endReadableNT",U.endEmitted,U.length),!U.endEmitted&&U.length===0&&(U.endEmitted=!0,z.readable=!1,z.emit("end"),U.autoDestroy)){var se=z._writableState;(!se||se.autoDestroy&&se.finished)&&z.destroy()}}r(Se,"endReadableNT"),typeof Symbol=="function"&&(me.from=function(U,z){return V===void 0&&(V=N(5167)),V(me,U,z)});function _e(U,z){for(var se=0,de=U.length;se<de;se++)if(U[se]===z)return se;return-1}r(_e,"indexOf")},4605:(ne,te,N)=>{ne.exports=T;var O=N(4281).q,J=O.ERR_METHOD_NOT_IMPLEMENTED,D=O.ERR_MULTIPLE_CALLBACK,F=O.ERR_TRANSFORM_ALREADY_TRANSFORMING,d=O.ERR_TRANSFORM_WITH_LENGTH_0,p=N(6753);N(5717)(T,p);function b(a,E){var l=this._transformState;l.transforming=!1;var w=l.writecb;if(w===null)return this.emit("error",new D);l.writechunk=null,l.writecb=null,E!=null&&this.push(E),w(a);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}r(b,"afterTransform");function T(a){if(!(this instanceof T))return new T(a);p.call(this,a),this._transformState={afterTransform:b.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",k)}r(T,"Transform");function k(){var a=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(E,l){h(a,E,l)}):h(this,null,null)}r(k,"prefinish"),T.prototype.push=function(a,E){return this._transformState.needTransform=!1,p.prototype.push.call(this,a,E)},T.prototype._transform=function(a,E,l){l(new J("_transform()"))},T.prototype._write=function(a,E,l){var w=this._transformState;if(w.writecb=l,w.writechunk=a,w.writeencoding=E,!w.transforming){var m=this._readableState;(w.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},T.prototype._read=function(a){var E=this._transformState;E.writechunk!==null&&!E.transforming?(E.transforming=!0,this._transform(E.writechunk,E.writeencoding,E.afterTransform)):E.needTransform=!0},T.prototype._destroy=function(a,E){p.prototype._destroy.call(this,a,function(l){E(l)})};function h(a,E,l){if(E)return a.emit("error",E);if(l!=null&&a.push(l),a._writableState.length)throw new d;if(a._transformState.transforming)throw new F;return a.push(null)}r(h,"done")},4229:(ne,te,N)=>{ne.exports=ae;function O(q,$,oe){this.chunk=q,this.encoding=$,this.callback=oe,this.next=null}r(O,"WriteReq");function J(q){var $=this;this.next=null,this.entry=null,this.finish=function(){he($,q)}}r(J,"CorkedRequest");var D;ae.WritableState=X;var F={deprecate:N(4927)},d=N(2503),p=N(8764).Buffer,b=(typeof N.g<"u"?N.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T(q){return p.from(q)}r(T,"_uint8ArrayToBuffer");function k(q){return p.isBuffer(q)||q instanceof b}r(k,"_isUint8Array");var h=N(1195),a=N(2457),E=a.getHighWaterMark,l=N(4281).q,w=l.ERR_INVALID_ARG_TYPE,m=l.ERR_METHOD_NOT_IMPLEMENTED,x=l.ERR_MULTIPLE_CALLBACK,R=l.ERR_STREAM_CANNOT_PIPE,v=l.ERR_STREAM_DESTROYED,B=l.ERR_STREAM_NULL_VALUES,A=l.ERR_STREAM_WRITE_AFTER_END,L=l.ERR_UNKNOWN_ENCODING,V=h.errorOrDestroy;N(5717)(ae,d);function G(){}r(G,"nop");function X(q,$,oe){D=D||N(6753),q=q||{},typeof oe!="boolean"&&(oe=$ instanceof D),this.objectMode=!!q.objectMode,oe&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=E(this,q,"writableHighWaterMark",oe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Se=q.decodeStrings===!1;this.decodeStrings=!Se,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_e){y($,_e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new J(this)}r(X,"WritableState"),X.prototype.getBuffer=r(function(){for(var $=this.bufferedRequest,oe=[];$;)oe.push($),$=$.next;return oe},"getBuffer"),function(){try{Object.defineProperty(X.prototype,"buffer",{get:F.deprecate(r(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var fe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(fe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ae,Symbol.hasInstance,{value:r(function($){return fe.call(this,$)?!0:this!==ae?!1:$&&$._writableState instanceof X},"value")})):fe=r(function($){return $ instanceof this},"realHasInstance");function ae(q){D=D||N(6753);var $=this instanceof D;if(!$&&!fe.call(ae,this))return new ae(q);this._writableState=new X(q,this,$),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),d.call(this)}r(ae,"Writable"),ae.prototype.pipe=function(){V(this,new R)};function me(q,$){var oe=new A;V(q,oe),process.nextTick($,oe)}r(me,"writeAfterEnd");function ye(q,$,oe,Se){var _e;return oe===null?_e=new B:typeof oe!="string"&&!$.objectMode&&(_e=new w("chunk",["string","Buffer"],oe)),_e?(V(q,_e),process.nextTick(Se,_e),!1):!0}r(ye,"validChunk"),ae.prototype.write=function(q,$,oe){var Se=this._writableState,_e=!1,U=!Se.objectMode&&k(q);return U&&!p.isBuffer(q)&&(q=T(q)),typeof $=="function"&&(oe=$,$=null),U?$="buffer":$||($=Se.defaultEncoding),typeof oe!="function"&&(oe=G),Se.ending?me(this,oe):(U||ye(this,Se,q,oe))&&(Se.pendingcb++,_e=S(this,Se,U,q,$,oe)),_e},ae.prototype.cork=function(){this._writableState.corked++},ae.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&Y(this,q))},ae.prototype.setDefaultEncoding=r(function($){if(typeof $=="string"&&($=$.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($+"").toLowerCase())>-1))throw new L($);return this._writableState.defaultEncoding=$,this},"setDefaultEncoding"),Object.defineProperty(ae.prototype,"writableBuffer",{enumerable:!1,get:r(function(){return this._writableState&&this._writableState.getBuffer()},"get")});function ee(q,$,oe){return!q.objectMode&&q.decodeStrings!==!1&&typeof $=="string"&&($=p.from($,oe)),$}r(ee,"decodeChunk"),Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:r(function(){return this._writableState.highWaterMark},"get")});function S(q,$,oe,Se,_e,U){if(!oe){var z=ee($,Se,_e);Se!==z&&(oe=!0,_e="buffer",Se=z)}var se=$.objectMode?1:Se.length;$.length+=se;var de=$.length<$.highWaterMark;if(de||($.needDrain=!0),$.writing||$.corked){var Me=$.lastBufferedRequest;$.lastBufferedRequest={chunk:Se,encoding:_e,isBuf:oe,callback:U,next:null},Me?Me.next=$.lastBufferedRequest:$.bufferedRequest=$.lastBufferedRequest,$.bufferedRequestCount+=1}else i(q,$,!1,se,Se,_e,U);return de}r(S,"writeOrBuffer");function i(q,$,oe,Se,_e,U,z){$.writelen=Se,$.writecb=z,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new v("write")):oe?q._writev(_e,$.onwrite):q._write(_e,U,$.onwrite),$.sync=!1}r(i,"doWrite");function f(q,$,oe,Se,_e){--$.pendingcb,oe?(process.nextTick(_e,Se),process.nextTick(ge,q,$),q._writableState.errorEmitted=!0,V(q,Se)):(_e(Se),q._writableState.errorEmitted=!0,V(q,Se),ge(q,$))}r(f,"onwriteError");function s(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}r(s,"onwriteStateUpdate");function y(q,$){var oe=q._writableState,Se=oe.sync,_e=oe.writecb;if(typeof _e!="function")throw new x;if(s(oe),$)f(q,oe,Se,$,_e);else{var U=M(oe)||q.destroyed;!U&&!oe.corked&&!oe.bufferProcessing&&oe.bufferedRequest&&Y(q,oe),Se?process.nextTick(P,q,oe,U,_e):P(q,oe,U,_e)}}r(y,"onwrite");function P(q,$,oe,Se){oe||j(q,$),$.pendingcb--,Se(),ge(q,$)}r(P,"afterWrite");function j(q,$){$.length===0&&$.needDrain&&($.needDrain=!1,q.emit("drain"))}r(j,"onwriteDrain");function Y(q,$){$.bufferProcessing=!0;var oe=$.bufferedRequest;if(q._writev&&oe&&oe.next){var Se=$.bufferedRequestCount,_e=new Array(Se),U=$.corkedRequestsFree;U.entry=oe;for(var z=0,se=!0;oe;)_e[z]=oe,oe.isBuf||(se=!1),oe=oe.next,z+=1;_e.allBuffers=se,i(q,$,!0,$.length,_e,"",U.finish),$.pendingcb++,$.lastBufferedRequest=null,U.next?($.corkedRequestsFree=U.next,U.next=null):$.corkedRequestsFree=new J($),$.bufferedRequestCount=0}else{for(;oe;){var de=oe.chunk,Me=oe.encoding,Be=oe.callback,Re=$.objectMode?1:de.length;if(i(q,$,!1,Re,de,Me,Be),oe=oe.next,$.bufferedRequestCount--,$.writing)break}oe===null&&($.lastBufferedRequest=null)}$.bufferedRequest=oe,$.bufferProcessing=!1}r(Y,"clearBuffer"),ae.prototype._write=function(q,$,oe){oe(new m("_write()"))},ae.prototype._writev=null,ae.prototype.end=function(q,$,oe){var Se=this._writableState;return typeof q=="function"?(oe=q,q=null,$=null):typeof $=="function"&&(oe=$,$=null),q!=null&&this.write(q,$),Se.corked&&(Se.corked=1,this.uncork()),Se.ending||ve(this,Se,oe),this},Object.defineProperty(ae.prototype,"writableLength",{enumerable:!1,get:r(function(){return this._writableState.length},"get")});function M(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}r(M,"needFinish");function u(q,$){q._final(function(oe){$.pendingcb--,oe&&V(q,oe),$.prefinished=!0,q.emit("prefinish"),ge(q,$)})}r(u,"callFinal");function K(q,$){!$.prefinished&&!$.finalCalled&&(typeof q._final=="function"&&!$.destroyed?($.pendingcb++,$.finalCalled=!0,process.nextTick(u,q,$)):($.prefinished=!0,q.emit("prefinish")))}r(K,"prefinish");function ge(q,$){var oe=M($);if(oe&&(K(q,$),$.pendingcb===0&&($.finished=!0,q.emit("finish"),$.autoDestroy))){var Se=q._readableState;(!Se||Se.autoDestroy&&Se.endEmitted)&&q.destroy()}return oe}r(ge,"finishMaybe");function ve(q,$,oe){$.ending=!0,ge(q,$),oe&&($.finished?process.nextTick(oe):q.once("finish",oe)),$.ended=!0,q.writable=!1}r(ve,"endWritable");function he(q,$,oe){var Se=q.entry;for(q.entry=null;Se;){var _e=Se.callback;$.pendingcb--,_e(oe),Se=Se.next}$.corkedRequestsFree.next=q}r(he,"onCorkedFinish"),Object.defineProperty(ae.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:r(function($){this._writableState&&(this._writableState.destroyed=$)},"set")}),ae.prototype.destroy=h.destroy,ae.prototype._undestroy=h.undestroy,ae.prototype._destroy=function(q,$){$(q)}},5850:(ne,te,N)=>{var O;function J(A,L,V){return L=D(L),L in A?Object.defineProperty(A,L,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[L]=V,A}r(J,"_defineProperty");function D(A){var L=F(A,"string");return typeof L=="symbol"?L:String(L)}r(D,"_toPropertyKey");function F(A,L){if(typeof A!="object"||A===null)return A;var V=A[Symbol.toPrimitive];if(V!==void 0){var G=V.call(A,L||"default");if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(A)}r(F,"_toPrimitive");var d=N(8610),p=Symbol("lastResolve"),b=Symbol("lastReject"),T=Symbol("error"),k=Symbol("ended"),h=Symbol("lastPromise"),a=Symbol("handlePromise"),E=Symbol("stream");function l(A,L){return{value:A,done:L}}r(l,"createIterResult");function w(A){var L=A[p];if(L!==null){var V=A[E].read();V!==null&&(A[h]=null,A[p]=null,A[b]=null,L(l(V,!1)))}}r(w,"readAndResolve");function m(A){process.nextTick(w,A)}r(m,"onReadable");function x(A,L){return function(V,G){A.then(function(){if(L[k]){V(l(void 0,!0));return}L[a](V,G)},G)}}r(x,"wrapForNext");var R=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((O={get stream(){return this[E]},next:r(function(){var L=this,V=this[T];if(V!==null)return Promise.reject(V);if(this[k])return Promise.resolve(l(void 0,!0));if(this[E].destroyed)return new Promise(function(ae,me){process.nextTick(function(){L[T]?me(L[T]):ae(l(void 0,!0))})});var G=this[h],X;if(G)X=new Promise(x(G,this));else{var fe=this[E].read();if(fe!==null)return Promise.resolve(l(fe,!1));X=new Promise(this[a])}return this[h]=X,X},"next")},J(O,Symbol.asyncIterator,function(){return this}),J(O,"return",r(function(){var L=this;return new Promise(function(V,G){L[E].destroy(null,function(X){if(X){G(X);return}V(l(void 0,!0))})})},"_return")),O),R),B=r(function(L){var V,G=Object.create(v,(V={},J(V,E,{value:L,writable:!0}),J(V,p,{value:null,writable:!0}),J(V,b,{value:null,writable:!0}),J(V,T,{value:null,writable:!0}),J(V,k,{value:L._readableState.endEmitted,writable:!0}),J(V,a,{value:r(function(fe,ae){var me=G[E].read();me?(G[h]=null,G[p]=null,G[b]=null,fe(l(me,!1))):(G[p]=fe,G[b]=ae)},"value"),writable:!0}),V));return G[h]=null,d(L,function(X){if(X&&X.code!=="ERR_STREAM_PREMATURE_CLOSE"){var fe=G[b];fe!==null&&(G[h]=null,G[p]=null,G[b]=null,fe(X)),G[T]=X;return}var ae=G[p];ae!==null&&(G[h]=null,G[p]=null,G[b]=null,ae(l(void 0,!0))),G[k]=!0}),L.on("readable",m.bind(null,G)),G},"createReadableStreamAsyncIterator");ne.exports=B},7327:(ne,te,N)=>{function O(m,x){var R=Object.keys(m);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(m);x&&(v=v.filter(function(B){return Object.getOwnPropertyDescriptor(m,B).enumerable})),R.push.apply(R,v)}return R}r(O,"ownKeys");function J(m){for(var x=1;x<arguments.length;x++){var R=arguments[x]!=null?arguments[x]:{};x%2?O(Object(R),!0).forEach(function(v){D(m,v,R[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(R)):O(Object(R)).forEach(function(v){Object.defineProperty(m,v,Object.getOwnPropertyDescriptor(R,v))})}return m}r(J,"_objectSpread");function D(m,x,R){return x=b(x),x in m?Object.defineProperty(m,x,{value:R,enumerable:!0,configurable:!0,writable:!0}):m[x]=R,m}r(D,"_defineProperty");function F(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}r(F,"_classCallCheck");function d(m,x){for(var R=0;R<x.length;R++){var v=x[R];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,b(v.key),v)}}r(d,"_defineProperties");function p(m,x,R){return x&&d(m.prototype,x),R&&d(m,R),Object.defineProperty(m,"prototype",{writable:!1}),m}r(p,"_createClass");function b(m){var x=T(m,"string");return typeof x=="symbol"?x:String(x)}r(b,"_toPropertyKey");function T(m,x){if(typeof m!="object"||m===null)return m;var R=m[Symbol.toPrimitive];if(R!==void 0){var v=R.call(m,x||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(m)}r(T,"_toPrimitive");var k=N(8764),h=k.Buffer,a=N(2361),E=a.inspect,l=E&&E.custom||"inspect";function w(m,x,R){h.prototype.copy.call(m,x,R)}r(w,"copyBuffer"),ne.exports=function(){function m(){F(this,m),this.head=null,this.tail=null,this.length=0}return r(m,"BufferList"),p(m,[{key:"push",value:r(function(R){var v={data:R,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length},"push")},{key:"unshift",value:r(function(R){var v={data:R,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length},"unshift")},{key:"shift",value:r(function(){if(this.length!==0){var R=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,R}},"shift")},{key:"clear",value:r(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:r(function(R){if(this.length===0)return"";for(var v=this.head,B=""+v.data;v=v.next;)B+=R+v.data;return B},"join")},{key:"concat",value:r(function(R){if(this.length===0)return h.alloc(0);for(var v=h.allocUnsafe(R>>>0),B=this.head,A=0;B;)w(B.data,v,A),A+=B.data.length,B=B.next;return v},"concat")},{key:"consume",value:r(function(R,v){var B;return R<this.head.data.length?(B=this.head.data.slice(0,R),this.head.data=this.head.data.slice(R)):R===this.head.data.length?B=this.shift():B=v?this._getString(R):this._getBuffer(R),B},"consume")},{key:"first",value:r(function(){return this.head.data},"first")},{key:"_getString",value:r(function(R){var v=this.head,B=1,A=v.data;for(R-=A.length;v=v.next;){var L=v.data,V=R>L.length?L.length:R;if(V===L.length?A+=L:A+=L.slice(0,R),R-=V,R===0){V===L.length?(++B,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=L.slice(V));break}++B}return this.length-=B,A},"_getString")},{key:"_getBuffer",value:r(function(R){var v=h.allocUnsafe(R),B=this.head,A=1;for(B.data.copy(v),R-=B.data.length;B=B.next;){var L=B.data,V=R>L.length?L.length:R;if(L.copy(v,v.length-R,0,V),R-=V,R===0){V===L.length?(++A,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=L.slice(V));break}++A}return this.length-=A,v},"_getBuffer")},{key:l,value:r(function(R,v){return E(this,J(J({},v),{},{depth:0,customInspect:!1}))},"value")}]),m}()},1195:ne=>{function te(d,p){var b=this,T=this._readableState&&this._readableState.destroyed,k=this._writableState&&this._writableState.destroyed;return T||k?(p?p(d):d&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(D,this,d)):process.nextTick(D,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(h){!p&&h?b._writableState?b._writableState.errorEmitted?process.nextTick(O,b):(b._writableState.errorEmitted=!0,process.nextTick(N,b,h)):process.nextTick(N,b,h):p?(process.nextTick(O,b),p(h)):process.nextTick(O,b)}),this)}r(te,"destroy");function N(d,p){D(d,p),O(d)}r(N,"emitErrorAndCloseNT");function O(d){d._writableState&&!d._writableState.emitClose||d._readableState&&!d._readableState.emitClose||d.emit("close")}r(O,"emitCloseNT");function J(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}r(J,"undestroy");function D(d,p){d.emit("error",p)}r(D,"emitErrorNT");function F(d,p){var b=d._readableState,T=d._writableState;b&&b.autoDestroy||T&&T.autoDestroy?d.destroy(p):d.emit("error",p)}r(F,"errorOrDestroy"),ne.exports={destroy:te,undestroy:J,errorOrDestroy:F}},8610:(ne,te,N)=>{var O=N(4281).q.ERR_STREAM_PREMATURE_CLOSE;function J(p){var b=!1;return function(){if(!b){b=!0;for(var T=arguments.length,k=new Array(T),h=0;h<T;h++)k[h]=arguments[h];p.apply(this,k)}}}r(J,"once");function D(){}r(D,"noop");function F(p){return p.setHeader&&typeof p.abort=="function"}r(F,"isRequest");function d(p,b,T){if(typeof b=="function")return d(p,null,b);b||(b={}),T=J(T||D);var k=b.readable||b.readable!==!1&&p.readable,h=b.writable||b.writable!==!1&&p.writable,a=r(function(){p.writable||l()},"onlegacyfinish"),E=p._writableState&&p._writableState.finished,l=r(function(){h=!1,E=!0,k||T.call(p)},"onfinish"),w=p._readableState&&p._readableState.endEmitted,m=r(function(){k=!1,w=!0,h||T.call(p)},"onend"),x=r(function(A){T.call(p,A)},"onerror"),R=r(function(){var A;if(k&&!w)return(!p._readableState||!p._readableState.ended)&&(A=new O),T.call(p,A);if(h&&!E)return(!p._writableState||!p._writableState.ended)&&(A=new O),T.call(p,A)},"onclose"),v=r(function(){p.req.on("finish",l)},"onrequest");return F(p)?(p.on("complete",l),p.on("abort",R),p.req?v():p.on("request",v)):h&&!p._writableState&&(p.on("end",a),p.on("close",a)),p.on("end",m),p.on("finish",l),b.error!==!1&&p.on("error",x),p.on("close",R),function(){p.removeListener("complete",l),p.removeListener("abort",R),p.removeListener("request",v),p.req&&p.req.removeListener("finish",l),p.removeListener("end",a),p.removeListener("close",a),p.removeListener("finish",l),p.removeListener("end",m),p.removeListener("error",x),p.removeListener("close",R)}}r(d,"eos"),ne.exports=d},5167:ne=>{ne.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(ne,te,N)=>{var O;function J(l){var w=!1;return function(){w||(w=!0,l.apply(void 0,arguments))}}r(J,"once");var D=N(4281).q,F=D.ERR_MISSING_ARGS,d=D.ERR_STREAM_DESTROYED;function p(l){if(l)throw l}r(p,"noop");function b(l){return l.setHeader&&typeof l.abort=="function"}r(b,"isRequest");function T(l,w,m,x){x=J(x);var R=!1;l.on("close",function(){R=!0}),O===void 0&&(O=N(8610)),O(l,{readable:w,writable:m},function(B){if(B)return x(B);R=!0,x()});var v=!1;return function(B){if(!R&&!v){if(v=!0,b(l))return l.abort();if(typeof l.destroy=="function")return l.destroy();x(B||new d("pipe"))}}}r(T,"destroyer");function k(l){l()}r(k,"call");function h(l,w){return l.pipe(w)}r(h,"pipe");function a(l){return!l.length||typeof l[l.length-1]!="function"?p:l.pop()}r(a,"popCallback");function E(){for(var l=arguments.length,w=new Array(l),m=0;m<l;m++)w[m]=arguments[m];var x=a(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new F("streams");var R,v=w.map(function(B,A){var L=A<w.length-1,V=A>0;return T(B,L,V,function(G){R||(R=G),G&&v.forEach(k),!L&&(v.forEach(k),x(R))})});return w.reduce(h)}r(E,"pipeline"),ne.exports=E},2457:(ne,te,N)=>{var O=N(4281).q.ERR_INVALID_OPT_VALUE;function J(F,d,p){return F.highWaterMark!=null?F.highWaterMark:d?F[p]:null}r(J,"highWaterMarkFrom");function D(F,d,p,b){var T=J(d,b,p);if(T!=null){if(!(isFinite(T)&&Math.floor(T)===T)||T<0){var k=b?p:"highWaterMark";throw new O(k,T)}return Math.floor(T)}return F.objectMode?16:16384}r(D,"getHighWaterMark"),ne.exports={getHighWaterMark:D}},2503:(ne,te,N)=>{ne.exports=N(7187).EventEmitter},8473:(ne,te,N)=>{te=ne.exports=N(9481),te.Stream=te,te.Readable=te,te.Writable=N(4229),te.Duplex=N(6753),te.Transform=N(4605),te.PassThrough=N(2725),te.finished=N(8610),te.pipeline=N(9946)},9785:(ne,te,N)=>{var O=N(8764).Buffer,J=N(5717),D=N(3349),F=new Array(16),d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],p=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],T=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],k=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function a(){D.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(a,"RIPEMD160"),J(a,D),a.prototype._update=function(){for(var v=F,B=0;B<16;++B)v[B]=this._block.readInt32LE(B*4);for(var A=this._a|0,L=this._b|0,V=this._c|0,G=this._d|0,X=this._e|0,fe=this._a|0,ae=this._b|0,me=this._c|0,ye=this._d|0,ee=this._e|0,S=0;S<80;S+=1){var i,f;S<16?(i=l(A,L,V,G,X,v[d[S]],k[0],b[S]),f=R(fe,ae,me,ye,ee,v[p[S]],h[0],T[S])):S<32?(i=w(A,L,V,G,X,v[d[S]],k[1],b[S]),f=x(fe,ae,me,ye,ee,v[p[S]],h[1],T[S])):S<48?(i=m(A,L,V,G,X,v[d[S]],k[2],b[S]),f=m(fe,ae,me,ye,ee,v[p[S]],h[2],T[S])):S<64?(i=x(A,L,V,G,X,v[d[S]],k[3],b[S]),f=w(fe,ae,me,ye,ee,v[p[S]],h[3],T[S])):(i=R(A,L,V,G,X,v[d[S]],k[4],b[S]),f=l(fe,ae,me,ye,ee,v[p[S]],h[4],T[S])),A=X,X=G,G=E(V,10),V=L,L=i,fe=ee,ee=ye,ye=E(me,10),me=ae,ae=f}var s=this._b+V+ye|0;this._b=this._c+G+ee|0,this._c=this._d+X+fe|0,this._d=this._e+A+ae|0,this._e=this._a+L+me|0,this._a=s},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var v=O.alloc?O.alloc(20):new O(20);return v.writeInt32LE(this._a,0),v.writeInt32LE(this._b,4),v.writeInt32LE(this._c,8),v.writeInt32LE(this._d,12),v.writeInt32LE(this._e,16),v};function E(v,B){return v<<B|v>>>32-B}r(E,"rotl");function l(v,B,A,L,V,G,X,fe){return E(v+(B^A^L)+G+X|0,fe)+V|0}r(l,"fn1");function w(v,B,A,L,V,G,X,fe){return E(v+(B&A|~B&L)+G+X|0,fe)+V|0}r(w,"fn2");function m(v,B,A,L,V,G,X,fe){return E(v+((B|~A)^L)+G+X|0,fe)+V|0}r(m,"fn3");function x(v,B,A,L,V,G,X,fe){return E(v+(B&L|A&~L)+G+X|0,fe)+V|0}r(x,"fn4");function R(v,B,A,L,V,G,X,fe){return E(v+(B^(A|~L))+G+X|0,fe)+V|0}r(R,"fn5"),ne.exports=a},9509:(ne,te,N)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var O=N(8764),J=O.Buffer;function D(d,p){for(var b in d)p[b]=d[b]}r(D,"copyProps"),J.from&&J.alloc&&J.allocUnsafe&&J.allocUnsafeSlow?ne.exports=O:(D(O,te),te.Buffer=F);function F(d,p,b){return J(d,p,b)}r(F,"SafeBuffer"),F.prototype=Object.create(J.prototype),D(J,F),F.from=function(d,p,b){if(typeof d=="number")throw new TypeError("Argument must not be a number");return J(d,p,b)},F.alloc=function(d,p,b){if(typeof d!="number")throw new TypeError("Argument must be a number");var T=J(d);return p!==void 0?typeof b=="string"?T.fill(p,b):T.fill(p):T.fill(0),T},F.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return J(d)},F.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(d)}},4189:(ne,te,N)=>{var O=N(9509).Buffer;function J(D,F){this._block=O.alloc(D),this._finalSize=F,this._blockSize=D,this._len=0}r(J,"Hash"),J.prototype.update=function(D,F){typeof D=="string"&&(F=F||"utf8",D=O.from(D,F));for(var d=this._block,p=this._blockSize,b=D.length,T=this._len,k=0;k<b;){for(var h=T%p,a=Math.min(b-k,p-h),E=0;E<a;E++)d[h+E]=D[k+E];T+=a,k+=a,T%p===0&&this._update(d)}return this._len+=b,this},J.prototype.digest=function(D){var F=this._len%this._blockSize;this._block[F]=128,this._block.fill(0,F+1),F>=this._finalSize&&(this._update(this._block),this._block.fill(0));var d=this._len*8;if(d<=4294967295)this._block.writeUInt32BE(d,this._blockSize-4);else{var p=(d&4294967295)>>>0,b=(d-p)/4294967296;this._block.writeUInt32BE(b,this._blockSize-8),this._block.writeUInt32BE(p,this._blockSize-4)}this._update(this._block);var T=this._hash();return D?T.toString(D):T},J.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ne.exports=J},9072:(ne,te,N)=>{var O=ne.exports=r(function(D){D=D.toLowerCase();var F=O[D];if(!F)throw new Error(D+" is not supported (we accept pull requests)");return new F},"SHA");O.sha=N(4448),O.sha1=N(8336),O.sha224=N(8432),O.sha256=N(7499),O.sha384=N(1686),O.sha512=N(7816)},4448:(ne,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function p(){this.init(),this._w=d,J.call(this,64,56)}r(p,"Sha"),O(p,J),p.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function b(h){return h<<5|h>>>27}r(b,"rotl5");function T(h){return h<<30|h>>>2}r(T,"rotl30");function k(h,a,E,l){return h===0?a&E|~a&l:h===2?a&E|a&l|E&l:a^E^l}r(k,"ft"),p.prototype._update=function(h){for(var a=this._w,E=this._a|0,l=this._b|0,w=this._c|0,m=this._d|0,x=this._e|0,R=0;R<16;++R)a[R]=h.readInt32BE(R*4);for(;R<80;++R)a[R]=a[R-3]^a[R-8]^a[R-14]^a[R-16];for(var v=0;v<80;++v){var B=~~(v/20),A=b(E)+k(B,l,w,m)+x+a[v]+F[B]|0;x=m,m=w,w=T(l),l=E,E=A}this._a=E+this._a|0,this._b=l+this._b|0,this._c=w+this._c|0,this._d=m+this._d|0,this._e=x+this._e|0},p.prototype._hash=function(){var h=D.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},ne.exports=p},8336:(ne,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function p(){this.init(),this._w=d,J.call(this,64,56)}r(p,"Sha1"),O(p,J),p.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function b(a){return a<<1|a>>>31}r(b,"rotl1");function T(a){return a<<5|a>>>27}r(T,"rotl5");function k(a){return a<<30|a>>>2}r(k,"rotl30");function h(a,E,l,w){return a===0?E&l|~E&w:a===2?E&l|E&w|l&w:E^l^w}r(h,"ft"),p.prototype._update=function(a){for(var E=this._w,l=this._a|0,w=this._b|0,m=this._c|0,x=this._d|0,R=this._e|0,v=0;v<16;++v)E[v]=a.readInt32BE(v*4);for(;v<80;++v)E[v]=b(E[v-3]^E[v-8]^E[v-14]^E[v-16]);for(var B=0;B<80;++B){var A=~~(B/20),L=T(l)+h(A,w,m,x)+R+E[B]+F[A]|0;R=x,x=m,m=k(w),w=l,l=L}this._a=l+this._a|0,this._b=w+this._b|0,this._c=m+this._c|0,this._d=x+this._d|0,this._e=R+this._e|0},p.prototype._hash=function(){var a=D.allocUnsafe(20);return a.writeInt32BE(this._a|0,0),a.writeInt32BE(this._b|0,4),a.writeInt32BE(this._c|0,8),a.writeInt32BE(this._d|0,12),a.writeInt32BE(this._e|0,16),a},ne.exports=p},8432:(ne,te,N)=>{var O=N(5717),J=N(7499),D=N(4189),F=N(9509).Buffer,d=new Array(64);function p(){this.init(),this._w=d,D.call(this,64,56)}r(p,"Sha224"),O(p,J),p.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},p.prototype._hash=function(){var b=F.allocUnsafe(28);return b.writeInt32BE(this._a,0),b.writeInt32BE(this._b,4),b.writeInt32BE(this._c,8),b.writeInt32BE(this._d,12),b.writeInt32BE(this._e,16),b.writeInt32BE(this._f,20),b.writeInt32BE(this._g,24),b},ne.exports=p},7499:(ne,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[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],d=new Array(64);function p(){this.init(),this._w=d,J.call(this,64,56)}r(p,"Sha256"),O(p,J),p.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function b(l,w,m){return m^l&(w^m)}r(b,"ch");function T(l,w,m){return l&w|m&(l|w)}r(T,"maj");function k(l){return(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10)}r(k,"sigma0");function h(l){return(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7)}r(h,"sigma1");function a(l){return(l>>>7|l<<25)^(l>>>18|l<<14)^l>>>3}r(a,"gamma0");function E(l){return(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10}r(E,"gamma1"),p.prototype._update=function(l){for(var w=this._w,m=this._a|0,x=this._b|0,R=this._c|0,v=this._d|0,B=this._e|0,A=this._f|0,L=this._g|0,V=this._h|0,G=0;G<16;++G)w[G]=l.readInt32BE(G*4);for(;G<64;++G)w[G]=E(w[G-2])+w[G-7]+a(w[G-15])+w[G-16]|0;for(var X=0;X<64;++X){var fe=V+h(B)+b(B,A,L)+F[X]+w[X]|0,ae=k(m)+T(m,x,R)|0;V=L,L=A,A=B,B=v+fe|0,v=R,R=x,x=m,m=fe+ae|0}this._a=m+this._a|0,this._b=x+this._b|0,this._c=R+this._c|0,this._d=v+this._d|0,this._e=B+this._e|0,this._f=A+this._f|0,this._g=L+this._g|0,this._h=V+this._h|0},p.prototype._hash=function(){var l=D.allocUnsafe(32);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l.writeInt32BE(this._h,28),l},ne.exports=p},1686:(ne,te,N)=>{var O=N(5717),J=N(7816),D=N(4189),F=N(9509).Buffer,d=new Array(160);function p(){this.init(),this._w=d,D.call(this,128,112)}r(p,"Sha384"),O(p,J),p.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},p.prototype._hash=function(){var b=F.allocUnsafe(48);function T(k,h,a){b.writeInt32BE(k,a),b.writeInt32BE(h,a+4)}return r(T,"writeInt64BE"),T(this._ah,this._al,0),T(this._bh,this._bl,8),T(this._ch,this._cl,16),T(this._dh,this._dl,24),T(this._eh,this._el,32),T(this._fh,this._fl,40),b},ne.exports=p},7816:(ne,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[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],d=new Array(160);function p(){this.init(),this._w=d,J.call(this,128,112)}r(p,"Sha512"),O(p,J),p.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function b(x,R,v){return v^x&(R^v)}r(b,"Ch");function T(x,R,v){return x&R|v&(x|R)}r(T,"maj");function k(x,R){return(x>>>28|R<<4)^(R>>>2|x<<30)^(R>>>7|x<<25)}r(k,"sigma0");function h(x,R){return(x>>>14|R<<18)^(x>>>18|R<<14)^(R>>>9|x<<23)}r(h,"sigma1");function a(x,R){return(x>>>1|R<<31)^(x>>>8|R<<24)^x>>>7}r(a,"Gamma0");function E(x,R){return(x>>>1|R<<31)^(x>>>8|R<<24)^(x>>>7|R<<25)}r(E,"Gamma0l");function l(x,R){return(x>>>19|R<<13)^(R>>>29|x<<3)^x>>>6}r(l,"Gamma1");function w(x,R){return(x>>>19|R<<13)^(R>>>29|x<<3)^(x>>>6|R<<26)}r(w,"Gamma1l");function m(x,R){return x>>>0<R>>>0?1:0}r(m,"getCarry"),p.prototype._update=function(x){for(var R=this._w,v=this._ah|0,B=this._bh|0,A=this._ch|0,L=this._dh|0,V=this._eh|0,G=this._fh|0,X=this._gh|0,fe=this._hh|0,ae=this._al|0,me=this._bl|0,ye=this._cl|0,ee=this._dl|0,S=this._el|0,i=this._fl|0,f=this._gl|0,s=this._hl|0,y=0;y<32;y+=2)R[y]=x.readInt32BE(y*4),R[y+1]=x.readInt32BE(y*4+4);for(;y<160;y+=2){var P=R[y-30],j=R[y-15*2+1],Y=a(P,j),M=E(j,P);P=R[y-4],j=R[y-4+1];var u=l(P,j),K=w(j,P),ge=R[y-7*2],ve=R[y-7*2+1],he=R[y-16*2],q=R[y-16*2+1],$=M+ve|0,oe=Y+ge+m($,M)|0;$=$+K|0,oe=oe+u+m($,K)|0,$=$+q|0,oe=oe+he+m($,q)|0,R[y]=oe,R[y+1]=$}for(var Se=0;Se<160;Se+=2){oe=R[Se],$=R[Se+1];var _e=T(v,B,A),U=T(ae,me,ye),z=k(v,ae),se=k(ae,v),de=h(V,S),Me=h(S,V),Be=F[Se],Re=F[Se+1],Je=b(V,G,X),Ae=b(S,i,f),we=s+Me|0,He=fe+de+m(we,s)|0;we=we+Ae|0,He=He+Je+m(we,Ae)|0,we=we+Re|0,He=He+Be+m(we,Re)|0,we=we+$|0,He=He+oe+m(we,$)|0;var Ne=se+U|0,Le=z+_e+m(Ne,se)|0;fe=X,s=f,X=G,f=i,G=V,i=S,S=ee+we|0,V=L+He+m(S,ee)|0,L=A,ee=ye,A=B,ye=me,B=v,me=ae,ae=we+Ne|0,v=He+Le+m(ae,we)|0}this._al=this._al+ae|0,this._bl=this._bl+me|0,this._cl=this._cl+ye|0,this._dl=this._dl+ee|0,this._el=this._el+S|0,this._fl=this._fl+i|0,this._gl=this._gl+f|0,this._hl=this._hl+s|0,this._ah=this._ah+v+m(this._al,ae)|0,this._bh=this._bh+B+m(this._bl,me)|0,this._ch=this._ch+A+m(this._cl,ye)|0,this._dh=this._dh+L+m(this._dl,ee)|0,this._eh=this._eh+V+m(this._el,S)|0,this._fh=this._fh+G+m(this._fl,i)|0,this._gh=this._gh+X+m(this._gl,f)|0,this._hh=this._hh+fe+m(this._hl,s)|0},p.prototype._hash=function(){var x=D.allocUnsafe(64);function R(v,B,A){x.writeInt32BE(v,A),x.writeInt32BE(B,A+4)}return r(R,"writeInt64BE"),R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),R(this._gh,this._gl,48),R(this._hh,this._hl,56),x},ne.exports=p},2553:(ne,te,N)=>{var O=N(9509).Buffer,J=O.isEncoding||function(v){switch(v=""+v,v&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function D(v){if(!v)return"utf8";for(var B;;)switch(v){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return v;default:if(B)return;v=(""+v).toLowerCase(),B=!0}}r(D,"_normalizeEncoding");function F(v){var B=D(v);if(typeof B!="string"&&(O.isEncoding===J||!J(v)))throw new Error("Unknown encoding: "+v);return B||v}r(F,"normalizeEncoding"),te.s=d;function d(v){this.encoding=F(v);var B;switch(this.encoding){case"utf16le":this.text=E,this.end=l,B=4;break;case"utf8":this.fillLast=k,B=4;break;case"base64":this.text=w,this.end=m,B=3;break;default:this.write=x,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(B)}r(d,"StringDecoder"),d.prototype.write=function(v){if(v.length===0)return"";var B,A;if(this.lastNeed){if(B=this.fillLast(v),B===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<v.length?B?B+this.text(v,A):this.text(v,A):B||""},d.prototype.end=a,d.prototype.text=h,d.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length};function p(v){return v<=127?0:v>>5===6?2:v>>4===14?3:v>>3===30?4:v>>6===2?-1:-2}r(p,"utf8CheckByte");function b(v,B,A){var L=B.length-1;if(L<A)return 0;var V=p(B[L]);return V>=0?(V>0&&(v.lastNeed=V-1),V):--L<A||V===-2?0:(V=p(B[L]),V>=0?(V>0&&(v.lastNeed=V-2),V):--L<A||V===-2?0:(V=p(B[L]),V>=0?(V>0&&(V===2?V=0:v.lastNeed=V-3),V):0))}r(b,"utf8CheckIncomplete");function T(v,B,A){if((B[0]&192)!==128)return v.lastNeed=0,"\uFFFD";if(v.lastNeed>1&&B.length>1){if((B[1]&192)!==128)return v.lastNeed=1,"\uFFFD";if(v.lastNeed>2&&B.length>2&&(B[2]&192)!==128)return v.lastNeed=2,"\uFFFD"}}r(T,"utf8CheckExtraBytes");function k(v){var B=this.lastTotal-this.lastNeed,A=T(this,v,B);if(A!==void 0)return A;if(this.lastNeed<=v.length)return v.copy(this.lastChar,B,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,B,0,v.length),this.lastNeed-=v.length}r(k,"utf8FillLast");function h(v,B){var A=b(this,v,B);if(!this.lastNeed)return v.toString("utf8",B);this.lastTotal=A;var L=v.length-(A-this.lastNeed);return v.copy(this.lastChar,0,L),v.toString("utf8",B,L)}r(h,"utf8Text");function a(v){var B=v&&v.length?this.write(v):"";return this.lastNeed?B+"\uFFFD":B}r(a,"utf8End");function E(v,B){if((v.length-B)%2===0){var A=v.toString("utf16le",B);if(A){var L=A.charCodeAt(A.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",B,v.length-1)}r(E,"utf16Text");function l(v){var B=v&&v.length?this.write(v):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return B+this.lastChar.toString("utf16le",0,A)}return B}r(l,"utf16End");function w(v,B){var A=(v.length-B)%3;return A===0?v.toString("base64",B):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",B,v.length-A))}r(w,"base64Text");function m(v){var B=v&&v.length?this.write(v):"";return this.lastNeed?B+this.lastChar.toString("base64",0,3-this.lastNeed):B}r(m,"base64End");function x(v){return v.toString(this.encoding)}r(x,"simpleWrite");function R(v){return v&&v.length?this.write(v):""}r(R,"simpleEnd")},4927:(ne,te,N)=>{ne.exports=O;function O(D,F){if(J("noDeprecation"))return D;var d=!1;function p(){if(!d){if(J("throwDeprecation"))throw new Error(F);J("traceDeprecation")?console.trace(F):console.warn(F),d=!0}return D.apply(this,arguments)}return r(p,"deprecated"),p}r(O,"deprecate");function J(D){try{if(!N.g.localStorage)return!1}catch{return!1}var F=N.g.localStorage[D];return F==null?!1:String(F).toLowerCase()==="true"}r(J,"config")},6601:()=>{},9214:()=>{},2361:()=>{},4616:()=>{},2726:ne=>{ne.exports={i8:"7.0.1"}}},gt={};function Ge(ne){var te=gt[ne];if(te!==void 0)return te.exports;var N=gt[ne]={id:ne,loaded:!1,exports:{}};return yt[ne].call(N.exports,N,N.exports,Ge),N.loaded=!0,N.exports}r(Ge,"__webpack_require__"),Ge.n=ne=>{var te=ne&&ne.__esModule?()=>ne.default:()=>ne;return Ge.d(te,{a:te}),te},Ge.d=(ne,te)=>{for(var N in te)Ge.o(te,N)&&!Ge.o(ne,N)&&Object.defineProperty(ne,N,{enumerable:!0,get:te[N]})},Ge.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Ge.o=(ne,te)=>Object.prototype.hasOwnProperty.call(ne,te),Ge.nmd=ne=>(ne.paths=[],ne.children||(ne.children=[]),ne);var Te={};(()=>{Ge.d(Te,{CG:()=>Ue,kL:()=>$,AB:()=>ie,A_:()=>Ie,eU:()=>B,O3:()=>fe,jO:()=>oe,iX:()=>z,gO:()=>Le,ti:()=>Be,Bn:()=>a,Br:()=>w,Ph:()=>Me,Bw:()=>m,$H:()=>re,gT:()=>ee,mI:()=>de,z$:()=>Pe,kb:()=>X,rR:()=>be,sx:()=>se,gZ:()=>s,E9:()=>Y,on:()=>ve,dp:()=>M,kk:()=>ge,Xf:()=>q,nX:()=>he,tB:()=>_,AU:()=>v,Tx:()=>Ne,lc:()=>H,X0:()=>we,as:()=>He,a1:()=>o,UB:()=>Q,yN:()=>Ae,Xb:()=>G,xB:()=>L,ER:()=>A,d7:()=>Ce,en:()=>Se,es:()=>U,nR:()=>S,jp:()=>_e,i8:()=>De});var ne=Ge(4297),te=Ge.n(ne),N=Ge(3550),O=Ge.n(N),J=Ge(7191),D=Ge.n(J),F=Ge(4666),d=Ge.n(F),p=Ge(3715),b=Ge.n(p),T=Ge(5632),k=Ge(8764);const h={i8:"2.0.22"};function a(I,e,...t){if(!(this instanceof a))return new a(I,e,...t);O().call(this,I,e,...t)}r(a,"Bn"),Object.keys(O()).forEach(function(I){a[I]=O()[I]}),a.prototype=Object.create(O().prototype),a.prototype.constructor=a;function E(I){const e=Buffer.alloc(I.length);for(let t=0;t<I.length;t++)e[t]=I[I.length-1-t];return e}r(E,"reverseBuf"),a.prototype.fromHex=function(I,e){return this.fromBuffer(Buffer.from(I,"hex"),e)},a.prototype.toHex=function(I){return this.toBuffer(I).toString("hex")},a.prototype.toJSON=function(){return this.toString()},a.prototype.fromJSON=function(I){return a(I).copy(this),this},a.prototype.fromNumber=function(I){return a(I).copy(this),this},a.prototype.toNumber=function(){return parseInt(this.toString(10),10)},a.prototype.fromString=function(I,e){return a(I,e).copy(this),this},a.fromBuffer=function(I,e={endian:"big"}){e.endian==="little"&&(I=E(I));const t=I.toString("hex");return new a(t,16)},a.prototype.fromBuffer=function(I,e){return a.fromBuffer(I,e).copy(this),this},a.prototype.toBuffer=function(I={size:void 0,endian:"big"}){let e;if(I.size){const n=this.toString(16,2),g=n.length/2;if(e=Buffer.from(n,"hex"),g!==I.size){if(g>I.size)e=e.slice(g-e.length,e.length);else if(g<I.size){const C=Buffer.alloc(I.size);for(let W=0;W<e.length;W++)C[C.length-1-W]=e[e.length-1-W];for(let W=0;W<I.size-g;W++)C[W]=0;e=C}}}else{const n=this.toString(16,2);e=Buffer.from(n,"hex")}I.endian==="little"&&(e=E(e));const t=Buffer.from([0]);return Buffer.compare(e,t)===0?Buffer.from([]):e},a.prototype.toFastBuffer=a.prototype.toBuffer,a.fromFastBuffer=a.fromBuffer,a.prototype.fromFastBuffer=a.prototype.fromBuffer,a.prototype.fromSm=function(I,e={endian:"big"}){return I.length===0&&this.fromBuffer(Buffer.from([0])),e.endian==="little"&&(I=E(I)),I[0]&128?(I[0]=I[0]&127,this.fromBuffer(I),this.neg().copy(this)):this.fromBuffer(I),this},a.prototype.toSm=function(I={endian:"big"}){const e=I.endian;let t;return this.cmp(0)===-1?(t=this.neg().toBuffer(),t[0]&128?t=Buffer.concat([Buffer.from([128]),t]):t[0]=t[0]|128):(t=this.toBuffer(),t[0]&128&&(t=Buffer.concat([Buffer.from([0]),t]))),t.length===1&t[0]===0&&(t=Buffer.from([])),e==="little"&&(t=E(t)),t},a.prototype.fromBits=function(I,e={strict:!1}){let t=Buffer.alloc(4);if(t.writeUInt32BE(I,0),I=t.readInt32BE(0),e.strict&&I&8388608)throw new Error("negative bit set");const n=I>>24,g=I&8388607;if(t=Buffer.alloc(4),t.writeInt32BE(g),n<=3)t=t.slice(1,n+1);else{const C=Buffer.alloc(n-3);C.fill(0),t=Buffer.concat([t,C])}return this.fromBuffer(t),I&8388608&&a(0).sub(this).copy(this),this},a.prototype.toBits=function(){let I;this.lt(0)?I=this.neg().toBuffer():I=this.toBuffer();let e=I.length,t;if(e>3)t=Buffer.concat([Buffer.from([0]),I.slice(0,3)]).readUInt32BE(0);else if(e<=3){const g=Buffer.alloc(3-e+1);g.fill(0),t=Buffer.concat([g,I.slice(0,e)]).readUInt32BE(0)}t&8388608&&(t>>=8,e++),this.lt(0)&&(t|=8388608);const n=e<<24|t;return I=Buffer.alloc(4),I.writeInt32BE(n,0),I.readUInt32BE(0)},a.prototype.fromScriptNumBuffer=function(I,e,t,n=!1){if(t===void 0&&(t=4),I.length>t)throw new Error(`script number overflow nMaxNumSize: ${t}`);if(e&&I.length>0&&!(I[I.length-1]&127)&&(I.length<=1||!(I[I.length-2]&128)))throw new Error("non-minimally encoded script number");return I.byteLength===0||I.byteLength<=t,this.fromSm(I,{endian:"little"})},a.prototype.toScriptNumBuffer=function(I){return this.toSm({endian:"little"})},a.prototype.neg=function(){const I=O().prototype.neg.call(this),e=Object.create(a.prototype);return I.copy(e),e},a.prototype.add=function(I){const e=O().prototype.add.call(this,I);return I=Object.create(a.prototype),e.copy(I),I},a.prototype.sub=function(I){const e=O().prototype.sub.call(this,I);return I=Object.create(a.prototype),e.copy(I),I},a.prototype.mul=function(I){const e=O().prototype.mul.call(this,I);return I=Object.create(a.prototype),e.copy(I),I},a.prototype.mod=function(I){const e=O().prototype.mod.call(this,I);return I=Object.create(a.prototype),e.copy(I),I},a.prototype.umod=function(I){const e=O().prototype.umod.call(this,I);return I=Object.create(a.prototype),e.copy(I),I},a.prototype.invm=function(I){const e=O().prototype.invm.call(this,I);return I=Object.create(a.prototype),e.copy(I),I},a.prototype.div=function(I){const e=O().prototype.div.call(this,I);return I=Object.create(a.prototype),e.copy(I),I},a.prototype.ushln=function(I){const e=O().prototype.ushln.call(this,I),t=Object.create(a.prototype);return e.copy(t),t},a.prototype.ushrn=function(I){const e=O().prototype.ushrn.call(this,I),t=Object.create(a.prototype);return e.copy(t),t},a.prototype.cmp=function(I){return O().prototype.cmp.call(this,I)};function l(I){a.prototype["_"+I]=a.prototype[I];const e=r(function(t){return typeof t=="string"?t=new a(t):typeof t=="number"&&(t=new a(t.toString())),this["_"+I](t)},"f");a.prototype[I]=e}r(l,"decorate"),a.prototype.eq=function(I){return this.cmp(I)===0},a.prototype.neq=function(I){return this.cmp(I)!==0},a.prototype.gt=function(I){return this.cmp(I)>0},a.prototype.geq=function(I){return this.cmp(I)>=0},a.prototype.lt=function(I){return this.cmp(I)<0},a.prototype.leq=function(I){return this.cmp(I)<=0},l("add"),l("sub"),l("mul"),l("mod"),l("invm"),l("div"),l("cmp"),l("gt"),l("geq"),l("lt"),l("leq");class w{static{r(this,"Br")}constructor(e){this.fromObject({buf:e})}fromObject(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this}eof(){return this.pos>=this.buf.length}read(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t}readReverse(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);this.pos=this.pos+e;const n=Buffer.alloc(t.length);for(let g=0;g<n.length;g++)n[g]=t[t.length-1-g];return n}readUInt8(){const e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e}readInt8(){const e=this.buf.readInt8(this.pos);return this.pos=this.pos+1,e}readUInt16BE(){const e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e}readInt16BE(){const e=this.buf.readInt16BE(this.pos);return this.pos=this.pos+2,e}readUInt16LE(){const e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e}readInt16LE(){const e=this.buf.readInt16LE(this.pos);return this.pos=this.pos+2,e}readUInt32BE(){const e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e}readInt32BE(){const e=this.buf.readInt32BE(this.pos);return this.pos=this.pos+4,e}readUInt32LE(){const e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e}readInt32LE(){const e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e}readUInt64BEBn(){const e=this.buf.slice(this.pos,this.pos+8),t=new a().fromBuffer(e);return this.pos=this.pos+8,t}readUInt64LEBn(){const e=this.readReverse(8);return new a().fromBuffer(e)}readVarIntNum(){const e=this.readUInt8();let t,n;switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:if(t=this.readUInt64LEBn(),n=t.toNumber(),n<=Math.pow(2,53))return n;throw new Error("number too large to retain precision - use readVarIntBn");default:return e}}readVarIntBuf(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}}readVarIntBn(){const e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBn();default:return new a(e)}}}class m{static{r(this,"Bw")}constructor(e){this.fromObject({bufs:e})}fromObject(e){return this.bufs=e.bufs||this.bufs||[],this}getLength(){let e=0;for(const t in this.bufs){const n=this.bufs[t];e=e+n.length}return e}toBuffer(){return Buffer.concat(this.bufs)}write(e){return this.bufs.push(e),this}writeReverse(e){const t=Buffer.alloc(e.length);for(let n=0;n<t.length;n++)t[n]=e[e.length-1-n];return this.bufs.push(t),this}writeUInt8(e){const t=Buffer.alloc(1);return t.writeUInt8(e,0),this.write(t),this}writeInt8(e){const t=Buffer.alloc(1);return t.writeInt8(e,0),this.write(t),this}writeUInt16BE(e){const t=Buffer.alloc(2);return t.writeUInt16BE(e,0),this.write(t),this}writeInt16BE(e){const t=Buffer.alloc(2);return t.writeInt16BE(e,0),this.write(t),this}writeUInt16LE(e){const t=Buffer.alloc(2);return t.writeUInt16LE(e,0),this.write(t),this}writeInt16LE(e){const t=Buffer.alloc(2);return t.writeInt16LE(e,0),this.write(t),this}writeUInt32BE(e){const t=Buffer.alloc(4);return t.writeUInt32BE(e,0),this.write(t),this}writeInt32BE(e){const t=Buffer.alloc(4);return t.writeInt32BE(e,0),this.write(t),this}writeUInt32LE(e){const t=Buffer.alloc(4);return t.writeUInt32LE(e,0),this.write(t),this}writeInt32LE(e){const t=Buffer.alloc(4);return t.writeInt32LE(e,0),this.write(t),this}writeUInt64BEBn(e){const t=e.toBuffer({size:8});return this.write(t),this}writeUInt64LEBn(e){const t=e.toBuffer({size:8});return this.writeReverse(t),this}writeVarIntNum(e){const t=m.varIntBufNum(e);return this.write(t),this}writeVarIntBn(e){const t=m.varIntBufBn(e);return this.write(t),this}static varIntBufNum(e){let t;return e<253?(t=Buffer.alloc(1),t.writeUInt8(e,0)):e<65536?(t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(e,1)):e<4294967296?(t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(e,1)):(t=Buffer.alloc(9),t.writeUInt8(255,0),t.writeInt32LE(e&-1,1),t.writeUInt32LE(Math.floor(e/4294967296),5)),t}static varIntBufBn(e){let t;const n=e.toNumber();if(n<253)t=Buffer.alloc(1),t.writeUInt8(n,0);else if(n<65536)t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(n,1);else if(n<4294967296)t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(n,1);else{const g=new m;g.writeUInt8(255),g.writeUInt64LEBn(e),t=g.toBuffer()}return t}}function x(I){const e=typeof I=="string"?I.charCodeAt(0):I;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}r(x,"isHexadecimal");const R=x;class v{static{r(this,"Struct")}constructor(e){this.fromObject(e)}fromObject(e){if(!e)return this;for(const t of Object.keys(e))e[t]!==void 0&&(this[t]=e[t]);return this}static fromObject(e){return new this().fromObject(e)}fromBr(e){throw e instanceof w?new Error("not implemented"):new Error("br must be a buffer reader")}static fromBr(e){return new this().fromBr(e)}asyncFromBr(e){throw e instanceof w?new Error("not implemented"):new Error("br must be a buffer reader")}static asyncFromBr(e){return new this().asyncFromBr(e)}toBw(e){throw new Error("not implemented")}asyncToBw(e){throw new Error("not implemented")}*genFromBuffers(){throw new Error("not implemented")}*expect(e,t){let n=t;const g=new m;let C=0;for(t&&(g.write(t),C+=t.length);C<e;)n=yield e-C,n&&(g.write(n),C+=n.length);n=g.toBuffer();const W=C-e,Z=n.slice(n.length-W,n.length);return n=n.slice(0,n.length-W),{buf:n,remainderbuf:Z}}fromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const n=new w(e);return this.fromBr(n,...t)}static fromBuffer(...e){return new this().fromBuffer(...e)}asyncFromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const n=new w(e);return this.asyncFromBr(n,...t)}static asyncFromBuffer(e,...t){return new this().asyncFromBuffer(e,...t)}fromFastBuffer(e,...t){return e.length===0?this:this.fromBuffer(e,...t)}static fromFastBuffer(...e){return new this().fromFastBuffer(...e)}toBuffer(...e){return this.toBw(...e).toBuffer()}asyncToBuffer(...e){return this.asyncToBw(...e).then(t=>t.toBuffer())}toFastBuffer(...e){return Object.keys(this).length===0?Buffer.alloc(0):this.toBuffer(...e)}fromHex(e,...t){if(!R(e))throw new Error("invalid hex string");const n=Buffer.from(e,"hex");return this.fromBuffer(n,...t)}static fromHex(e,...t){return new this().fromHex(e,...t)}asyncFromHex(e,...t){if(!R(e))throw new Error("invalid hex string");const n=Buffer.from(e,"hex");return this.asyncFromBuffer(n,...t)}static asyncFromHex(e,...t){return new this().asyncFromHex(e,...t)}fromFastHex(e,...t){if(!R(e))throw new Error("invalid hex string");const n=Buffer.from(e,"hex");return this.fromFastBuffer(n,...t)}static fromFastHex(e,...t){return new this().fromFastHex(e,...t)}toHex(...e){return this.toBuffer(...e).toString("hex")}asyncToHex(...e){return this.asyncToBuffer(...e).then(t=>t.toString("hex"))}toFastHex(...e){return this.toFastBuffer(...e).toString("hex")}fromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.fromHex(e,...t)}static fromString(e,...t){return new this().fromString(e,...t)}asyncFromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.asyncFromHex(e,...t)}static asyncFromString(e,...t){return new this().asyncFromString(e,...t)}toString(...e){return this.toHex(...e)}asyncToString(...e){return this.asyncToHex(...e)}fromJSON(e){throw new Error("not implemented")}static fromJSON(e,...t){return new this().fromJSON(e,...t)}asyncFromJSON(e,...t){throw new Error("not implemented")}static asyncFromJSON(e,...t){return new this().asyncFromJSON(e,...t)}toJSON(){var e={};for(var t in this)if(Array.isArray(this[t])){const g=[];for(var n in this[t])typeof this[t][n].toJSON=="function"?g.push(this[t][n].toJSON()):g.push(JSON.stringify(this[t][n]));e[t]=g}else if(this[t]===null)e[t]=this[t];else if(typeof this[t]=="object"&&typeof this[t].toJSON=="function")e[t]=this[t].toJSON();else if(typeof this[t]=="boolean"||typeof this[t]=="number"||typeof this[t]=="string")e[t]=this[t];else if(Buffer.isBuffer(this[t]))e[t]=this[t].toString("hex");else if(this[t]instanceof Map)e[t]=JSON.stringify(this[t]);else if(typeof this[t]=="object")throw new Error("not implemented");return e}asyncToJSON(){throw new Error("not implemented")}clone(){return this.cloneByJSON()}cloneByBuffer(){return new this.constructor().fromBuffer(this.toBuffer())}cloneByFastBuffer(){return new this.constructor().fromFastBuffer(this.toFastBuffer())}cloneByHex(){return new this.constructor().fromHex(this.toHex())}cloneByString(){return new this.constructor().fromString(this.toString())}cloneByJSON(){return new this.constructor().fromJSON(this.toJSON())}}class B extends v{static{r(this,"Base58")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input should be a buffer");return D().encode(e)}static decode(e){if(typeof e!="string")throw new Error("Input should be a string");return Buffer.from(D().decode(e))}fromBuffer(e){return this.buf=e,this}fromString(e){const t=B.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return B.encode(this.buf)}}const A=r((I,e)=>{if(!Buffer.isBuffer(I)||!Buffer.isBuffer(e))throw new Error("buf1 and buf2 must be buffers");if(I.length!==e.length)return!1;let t=0;for(let n=0;n<I.length;n++){const g=I[n],C=e[n];t|=g^C}return t===0},"cmp");class L extends v{static{r(this,"WorkersResult")}constructor(e,t,n){super({resbuf:e,isError:t,id:n})}fromResult(e,t){return e.toFastBuffer?this.resbuf=e.toFastBuffer():Buffer.isBuffer(e)?this.resbuf=e:this.resbuf=Buffer.from(JSON.stringify(e)),this.isError=!1,this.id=t,this}static fromResult(e,t){return new this().fromResult(e,t)}fromError(e,t){return this.resbuf=Buffer.from(JSON.stringify(e.message)),this.isError=!0,this.id=t,this}toBw(e){return e||(e=new m),e.writeVarIntNum(this.resbuf.length),e.write(this.resbuf),e.writeUInt8(Number(this.isError)),e.writeVarIntNum(this.id),e}fromBr(e){const t=e.readVarIntNum();return this.resbuf=e.read(t),this.isError=!!e.readUInt8(),this.id=e.readVarIntNum(),this}}let V;class G{static{r(this,"Workers")}constructor(e=[],t=0,n=[],g=new Map){this.nativeWorkers=e,this.lastid=t,this.incompconsteRes=n,this.promisemap=g}asyncObjectMethod(e,t,n,g=this.lastid+1){if(!n)throw new Error("must specify args");const C=e[t](...n);return new L().fromResult(C,g)}static asyncObjectMethod(e,t,n,g){return V||(V=new G),V.asyncObjectMethod(e,t,n,g)}asyncClassMethod(e,t,n,g=this.lastid+1){if(!n)throw new Error("must specify args");const C=e[t](...n);return new L().fromResult(C,g)}static asyncClassMethod(e,t,n,g){return V||(V=new G),V.asyncClassMethod(e,t,n,g)}static endGlobalWorkers(){V&&!process.browser&&(V=void 0)}}class X{static{r(this,"Hash")}}X.sha1=function(I){if(!Buffer.isBuffer(I))throw new Error("sha1 hash must be of a buffer");const e=b().sha1,t=new e().update(I).digest();return Buffer.from(t)},X.sha1.blockSize=512,X.asyncSha1=async function(I){const e=[I];return(await G.asyncClassMethod(X,"sha1",e)).resbuf},X.sha256=function(I){if(!Buffer.isBuffer(I))throw new Error("sha256 hash must be of a buffer");const e=b().sha256,t=new e().update(I).digest();return Buffer.from(t)},X.sha256.blockSize=512,X.asyncSha256=async function(I){const e=[I];return(await G.asyncClassMethod(X,"sha256",e)).resbuf},X.sha256Sha256=function(I){try{return X.sha256(X.sha256(I))}catch(e){throw new Error("sha256Sha256 hash must be of a buffer: "+e)}},X.asyncSha256Sha256=async function(I){const e=[I];return(await G.asyncClassMethod(X,"sha256Sha256",e)).resbuf},X.ripemd160=function(I){if(!Buffer.isBuffer(I))throw new Error("ripemd160 hash must be of a buffer");const e=b().ripemd160,t=new e().update(I).digest();return Buffer.from(t)},X.asyncRipemd160=async function(I){const e=[I];return(await G.asyncClassMethod(X,"ripemd160",e)).resbuf},X.sha256Ripemd160=function(I){try{return X.ripemd160(X.sha256(I))}catch(e){throw new Error("sha256Ripemd160 hash must be of a buffer: "+e)}},X.asyncSha256Ripemd160=async function(I){const e=[I];return(await G.asyncClassMethod(X,"sha256Ripemd160",e)).resbuf},X.sha512=function(I){if(!Buffer.isBuffer(I))throw new Error("sha512 hash must be of a buffer");const e=b().sha512,t=new e().update(I).digest();return Buffer.from(t)},X.asyncSha512=async function(I){const e=[I];return(await G.asyncClassMethod(X,"sha512",e)).resbuf},X.sha512.blockSize=1024,X.hmac=function(I,e,t){if(I!=="sha1"&&I!=="sha256"&&I!=="sha512")throw new Error("invalid choice of hash function");const n=X[I];if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new Error("data and key must be buffers");const g=n.blockSize/8;if(t.length>g&&(t=n(t)),t.length<g){const Z=Buffer.alloc(g);Z.fill(0,t.length),t.copy(Z),t=Z}const C=Buffer.alloc(g),W=Buffer.alloc(g);for(let Z=0;Z<g;Z++)C[Z]=92^t[Z],W[Z]=54^t[Z];return n(Buffer.concat([C,n(Buffer.concat([W,e]))]))},X.sha1Hmac=function(I,e){return X.hmac("sha1",I,e)},X.asyncSha1Hmac=async function(I,e){const t=[I,e];return(await G.asyncClassMethod(X,"sha1Hmac",t)).resbuf},X.sha1Hmac.bitsize=160,X.sha256Hmac=function(I,e){return X.hmac("sha256",I,e)},X.asyncSha256Hmac=async function(I,e){const t=[I,e];return(await G.asyncClassMethod(X,"sha256Hmac",t)).resbuf},X.sha256Hmac.bitsize=256,X.sha512Hmac=function(I,e){return X.hmac("sha512",I,e)},X.asyncSha512Hmac=async function(I,e){const t=[I,e];return(await G.asyncClassMethod(X,"sha512Hmac",t)).resbuf},X.sha512Hmac.bitsize=512;class fe extends v{static{r(this,"Base58Check")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static decode(e){if(typeof e!="string")throw new Error("Input must be a string");const t=B.decode(e);if(t.length<4)throw new Error("Input string too short");const n=t.slice(0,-4),g=t.slice(-4),W=X.sha256Sha256(n).slice(0,4);if(!A(g,W))throw new Error("Checksum mismatch");return n}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input must be a buffer");const t=Buffer.alloc(e.length+4),n=X.sha256Sha256(e);return e.copy(t),n.copy(t,e.length),B.encode(t)}fromBuffer(e){return this.buf=e,this}fromString(e){const t=fe.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return fe.encode(this.buf)}}class ae{static{r(this,"Config")}constructor(e){this.keyDefined=t=>t in e,this.getValue=t=>e[t]}get(e){if(this.keyDefined(e))return this.getValue(e);throw new Error(`Unknown configuration: ${e}`)}}class me{static{r(this,"ConfigBuilder")}constructor(){this.variables={}}build(){return new ae(this.variables)}addValue(e,t){if(t===void 0)throw new Error(`Failed to add "${e}" property. The value cannot be undefined`);if(e in this.variables)throw new Error(`"${e}" already has a value defined.`);return this.variables[e]=t,this}addValueWithDefault(e,t,n){if(n===void 0)throw new Error(`Failed to add "${e}" property. Default value cannot be undefined`);return this.addValue(e,t===void 0?n:t)}}const ye=new me().addValue("NETWORK",process.env.NETWORK||"mainnet").build(),ee={};if(ee.Mainnet={MaxSize:33554432,Port:8333,Address:{pubKeyHash:0,payToScriptHash:5},Bip32:{pubKey:76067358,privKey:76066276},Block:{maxNBits:486604799,magicNum:3823236072},Msg:{magicNum:3823236072,versionBytesNum:70015},PrivKey:{versionByteNum:128},TxBuilder:{dust:0,feePerKbNum:50},Workers:{timeout:6e4}},ee.Testnet=Object.assign({},ee.Mainnet,{Port:18333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4108710900},Msg:{magicNum:4108710900,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),ee.Regtest=Object.assign({},ee.Mainnet,{Port:18444,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:545259519,magicNum:3669344250},Msg:{magicNum:3669344250,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),ee.STN=Object.assign({},ee.Mainnet,{Port:9333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4224632057},Msg:{magicNum:4224632057,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),ye.get("NETWORK")==="testnet")ee.Default=Object.assign({},ee.Testnet);else if(ye.get("NETWORK")==="mainnet")ee.Default=Object.assign({},ee.Mainnet);else if(ye.get("NETWORK")==="regtest")ee.Default=Object.assign({},ee.Regtest);else if(ye.get("NETWORK")==="stn")ee.Default=Object.assign({},ee.STN);else throw new Error(`must set network in environment variable - mainnet, testnet, regtest or stn?, received ${ye.get("NETWORK")}`);const S=r(I=>ee.Mainnet.Msg.magicNum===I?ee.Mainnet:ee.Testnet.Msg.magicNum===I?ee.Testnet:ee.Regtest.Msg.magicNum===I?ee.Regtest:ee.STN.Msg.magicNum===I?ee.STN:ee.Default,"getConstants"),i={FALSE:0,0:0,PUSHDATA1:76,PUSHDATA2:77,PUSHDATA4:78,"1NEGATE":79,RESERVED:80,TRUE:81,1:81,2:82,3:83,4:84,5:85,6:86,7:87,8:88,9:89,10:90,11:91,12:92,13:93,14:94,15:95,16:96,NOP:97,VER:98,IF:99,NOTIF:100,VERIF:101,VERNOTIF:102,ELSE:103,ENDIF:104,VERIFY:105,RETURN:106,TOALTSTACK:107,FROMALTSTACK:108,"2DROP":109,"2DUP":110,"3DUP":111,"2OVER":112,"2ROT":113,"2SWAP":114,IFDUP:115,DEPTH:116,DROP:117,DUP:118,NIP:119,OVER:120,PICK:121,ROLL:122,ROT:123,SWAP:124,TUCK:125,CAT:126,SUBSTR:127,SPLIT:127,LEFT:128,NUM2BIN:128,RIGHT:129,BIN2NUM:129,SIZE:130,INVERT:131,AND:132,OR:133,XOR:134,EQUAL:135,EQUALVERIFY:136,RESERVED1:137,RESERVED2:138,"1ADD":139,"1SUB":140,"2MUL":141,"2DIV":142,NEGATE:143,ABS:144,NOT:145,"0NOTEQUAL":146,ADD:147,SUB:148,MUL:149,DIV:150,MOD:151,LSHIFT:152,RSHIFT:153,BOOLAND:154,BOOLOR:155,NUMEQUAL:156,NUMEQUALVERIFY:157,NUMNOTEQUAL:158,LESSTHAN:159,GREATERTHAN:160,LESSTHANOREQUAL:161,GREATERTHANOREQUAL:162,MIN:163,MAX:164,WITHIN:165,RIPEMD160:166,SHA1:167,SHA256:168,HASH160:169,HASH256:170,CODESEPARATOR:171,CHECKSIG:172,CHECKSIGVERIFY:173,CHECKMULTISIG:174,CHECKMULTISIGVERIFY:175,NOP1:176,NOP2:177,CHECKLOCKTIMEVERIFY:177,NOP3:178,CHECKSEQUENCEVERIFY:178,NOP4:179,NOP5:180,NOP6:181,NOP7:182,NOP8:183,NOP9:184,NOP10:185,SMALLDATA:249,SMALLINTEGER:250,PUBKEYS:251,PUBKEYHASH:253,PUBKEY:254,INVALIDOPCODE:255},f={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_SPLIT:127,OP_LEFT:128,OP_NUM2BIN:128,OP_RIGHT:129,OP_BIN2NUM:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_SMALLDATA:249,OP_SMALLINTEGER:250,OP_PUBKEYS:251,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};class s extends v{static{r(this,"OpCode")}constructor(e){super({num:e})}fromNumber(e){return this.num=e,this}static fromNumber(e){return new this().fromNumber(e)}toNumber(){return this.num}fromString(e){const t=f[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}fromNoOpString(e){const t=i[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}static fromString(e){return new this().fromString(e)}static fromNoOpString(e){return new this().fromNoOpString(e)}toString(){const e=s.str[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():"OP_"+this.num.toNumber():e}toNoOpString(){const e=s.noopstr[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():this.num.toNumber():e}}s.str={},s.noopstr={};for(const I in f)s[I]=f[I],Object.prototype.hasOwnProperty.call(f,I)&&(s.str[f[I]]=I);for(const I in i)s[I]=i[I],Object.prototype.hasOwnProperty.call(i,I)&&(s.noopstr[i[I]]=I);const y=d().curves.secp256k1,j=y.curve.point().constructor;class Y extends j{static{r(this,"Point")}constructor(e,t,n){super(y.curve,e,t,n)}static fromX(e,t){const n=y.curve.pointFromX(t,e);return Object.create(Y.prototype).copyFrom(n)}copyFrom(e){if(!(e instanceof j))throw new Error("point should be an external point");return Object.keys(e).forEach(function(t){this[t]=e[t]}.bind(this)),this}add(e){return e=j.prototype.add.call(this,e),Object.create(Y.prototype).copyFrom(e)}mul(e){if(!e.lt(Y.getN()))throw new Error("point mul out of range");const t=j.prototype.mul.call(this,e);return Object.create(Y.prototype).copyFrom(t)}mulAdd(e,t,n){const g=j.prototype.mulAdd.call(this,e,t,n);return t=Object.create(Y.prototype),t.copyFrom(g)}getX(){const e=j.prototype.getX.call(this),t=Object.create(a.prototype);return e.copy(t),t}getY(){const e=j.prototype.getY.call(this),t=Object.create(a.prototype);return e.copy(t),t}fromX(e,t){const n=Y.fromX(e,t);return this.copyFrom(n)}toJSON(){return{x:this.getX().toString(),y:this.getY().toString()}}fromJSON(e){const t=new a().fromString(e.x),n=new a().fromString(e.y),g=new Y(t,n);return this.copyFrom(g)}toString(){return JSON.stringify(this.toJSON())}fromString(e){const t=JSON.parse(e),n=new Y().fromJSON(t);return this.copyFrom(n)}static getG(){const e=y.curve.g;return Object.create(Y.prototype).copyFrom(e)}static getN(){return new a(y.curve.n.toArray())}validate(){if(Y.fromX(this.getY().isOdd(),this.getX()).getY().cmp(this.getY())!==0)throw new Error("Invalid y value of public key");if(!(this.getX().gt(-1)&&this.getX().lt(Y.getN()))||!(this.getY().gt(-1)&&this.getY().lt(Y.getN())))throw new Error("Point does not lie on the curve");return this}}class M extends v{static{r(this,"PubKey")}constructor(e,t){super({point:e,compressed:t})}fromJSON(e){return this.fromFastHex(e),this}toJSON(){return this.toFastHex()}fromPrivKey(e){return this.fromObject({point:Y.getG().mul(e.bn),compressed:e.compressed}),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=await G.asyncObjectMethod(this,"fromPrivKey",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromBuffer(e,t){return this.fromDer(e,t)}async asyncFromBuffer(e,t){const n=[e,t],g=await G.asyncObjectMethod(this,"fromBuffer",n);return this.fromFastBuffer(g.resbuf)}fromFastBuffer(e){if(e.length===0)return this;const t=!!e[0];return e=e.slice(1),this.fromDer(e),this.compressed=t,this}fromDer(e,t){if(t===void 0?t=!0:t=!1,e[0]===4||!t&&(e[0]===6||e[0]===7)){const n=e.slice(1,33),g=e.slice(33,65);if(n.length!==32||g.length!==32||e.length!==65)throw new Error("LEngth of x and y must be 32 bytes");const C=new a(n),W=new a(g);this.point=new Y(C,W),this.compressed=!1}else if(e[0]===3){const n=e.slice(1),g=new a(n);this.fromX(!0,g),this.compressed=!0}else if(e[0]===2){const n=e.slice(1),g=new a(n);this.fromX(!1,g),this.compressed=!0}else throw new Error("Invalid DER format pubKey");return this}static fromDer(e,t){return new this().fromDer(e,t)}fromString(e){return this.fromDer(Buffer.from(e,"hex")),this}fromX(e,t){if(typeof e!="boolean")throw new Error("Must specify whether y is odd or not (true or false)");return this.point=Y.fromX(e,t),this}static fromX(e,t){return new this().fromX(e,t)}toBuffer(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e)}toFastBuffer(){if(!this.point)return Buffer.alloc(0);const e=new m,t=this.compressed===void 0?!0:!!this.compressed;return e.writeUInt8(Number(t)),e.write(this.toDer(!1)),e.toBuffer()}toDer(e){if(e=e===void 0?this.compressed:e,typeof e!="boolean")throw new Error("Must specify whether the public key is compressed or not (true or false)");const t=this.point.getX(),n=this.point.getY(),g=t.toBuffer({size:32}),C=n.toBuffer({size:32});let W;return e?(C[C.length-1]%2?W=Buffer.from([3]):W=Buffer.from([2]),Buffer.concat([W,g])):(W=Buffer.from([4]),Buffer.concat([W,g,C]))}toString(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e).toString("hex")}static isCompressedOrUncompressed(e){if(e.length<33)return!1;if(e[0]===4){if(e.length!==65)return!1}else if(e[0]===2||e[0]===3){if(e.length!==33)return!1}else return!1;return!0}validate(){if(this.point.isInfinity())throw new Error("point: Point cannot be equal to Infinity");if(this.point.eq(new Y(new a(0),new a(0))))throw new Error("point: Point cannot be equal to 0, 0");return this.point.validate(),this}}var u=Ge(1798),K=Ge.n(u);class ge{static{r(this,"Random")}}ge.getRandomBuffer=function(I){return K()(I)};class ve extends v{static{r(this,"priv_key_PrivKey")}constructor(e,t,n=null){super({bn:e,compressed:t}),n=n||ee.Default.PrivKey,this.Constants=n}fromJSON(e){return this.fromHex(e),this}toJSON(){return this.toHex()}fromRandom(){let e,t,n;do e=ge.getRandomBuffer(32),t=new a().fromBuffer(e),n=t.lt(Y.getN());while(!n);return this.fromObject({bn:t,compressed:!0}),this}static fromRandom(){return new this().fromRandom()}toBuffer(){let e=this.compressed;e===void 0&&(e=!0);const t=this.bn.toBuffer({size:32});let n;return e?n=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t,Buffer.from([1])]):n=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t]),n}fromBuffer(e){if(e.length===34&&e[33]===1)this.compressed=!0;else if(e.length===33)this.compressed=!1;else throw new Error("Length of privKey buffer must be 33 (uncompressed pubKey) or 34 (compressed pubKey)");if(e[0]!==this.Constants.versionByteNum)throw new Error("Invalid versionByteNum byte");return this.fromBn(new a().fromBuffer(e.slice(1,33)))}toBn(){return this.bn}fromBn(e){return this.bn=e,this}static fromBn(e){return new this().fromBn(e)}validate(){if(!this.bn.lt(Y.getN()))throw new Error("Number must be less than N");if(typeof this.compressed!="boolean")throw new Error("Must specify whether the corresponding public key is compressed or not (true or false)");return this}toWif(){return fe.encode(this.toBuffer())}fromWif(e){return this.fromBuffer(fe.decode(e))}static fromWif(e){return new this().fromWif(e)}toString(){return this.toWif()}fromString(e){return this.fromWif(e)}}ve.Mainnet=class extends ve{constructor(I,e){super(I,e,ee.Mainnet.PrivKey)}},ve.Testnet=class extends ve{constructor(I,e){super(I,e,ee.Testnet.PrivKey)}};class he extends v{static{r(this,"Sig")}constructor(e,t,n,g,C){super({r:e,s:t,nHashType:n,recovery:g,compressed:C})}fromBuffer(e){try{return this.fromDer(e,!0)}catch{}try{return this.fromCompact(e)}catch{}return this.fromTxFormat(e)}toBuffer(){return this.nHashType!==void 0?this.toTxFormat():this.recovery!==void 0?this.toCompact():this.toDer()}fromCompact(e){let t=!0,n=e.slice(0,1)[0]-27-4;if(n<0&&(t=!1,n=n+4),!(n===0||n===1||n===2||n===3))throw new Error("i must be 0, 1, 2, or 3");this.compressed=t,this.recovery=n;const g=e.slice(1);return this.fromRS(g),this}static fromCompact(e){return new this().fromCompact(e)}fromRS(e){const t=e.slice(0,32),n=e.slice(32,64);if(t.length!==32)throw new Error("r must be 32 bytes");if(n.length!==32||e.length>64)throw new Error("s must be 32 bytes");return this.r=new a().fromBuffer(t),this.s=new a().fromBuffer(n),this}static fromRS(e){return new this().fromRS(e)}fromDer(e,t){const n=he.parseDer(e,t);return this.r=n.r,this.s=n.s,this}static fromDer(e,t){return new this().fromDer(e,t)}fromTxFormat(e){if(e.length===0)return this.r=new a(1),this.s=new a(1),this.nHashType=1,this;const t=e.readUInt8(e.length-1),n=e.slice(0,e.length-1);return this.fromDer(n,!1),this.nHashType=t,this}static fromTxFormat(e){return new this().fromTxFormat(e)}fromString(e){return this.fromHex(e)}static parseDer(e,t){if(t===void 0&&(t=!0),!Buffer.isBuffer(e))throw new Error("DER formatted signature should be a buffer");const n=e[0];if(n!==48)throw new Error("Header byte should be 0x30");let g=e[1];const C=e.slice(2).length;if(t&&g!==C)throw new Error("LEngth byte should length of what follows");g=g<C?g:C;const W=e[2];if(W!==2)throw new Error("Integer byte for r should be 0x02");const Z=e[3],pe=e.slice(4,4+Z),ue=new a().fromBuffer(pe),xe=e[4]===0;if(Z!==pe.length)throw new Error("LEngth of r incorrect");const ke=e[4+Z+0];if(ke!==2)throw new Error("Integer byte for s should be 0x02");const Oe=e[4+Z+1],Fe=e.slice(4+Z+2,4+Z+2+Oe),ce=new a().fromBuffer(Fe),le=e[4+Z+2+2]===0;if(Oe!==Fe.length)throw new Error("LEngth of s incorrect");const Ee=4+Z+2+Oe;if(g!==Ee-2)throw new Error("LEngth of signature incorrect");return{header:n,length:g,rheader:W,rlength:Z,rneg:xe,rbuf:pe,r:ue,sheader:ke,slength:Oe,sneg:le,sbuf:Fe,s:ce}}static IsTxDer(e){if(e.length<9||e.length>73||e[0]!==48||e[1]!==e.length-3)return!1;const t=e[3];if(5+t>=e.length)return!1;const n=e[5+t];if(t+n+7!==e.length)return!1;const g=e.slice(4);if(e[2]!==2||t===0||g[0]&128||t>1&&g[0]===0&&!(g[1]&128))return!1;const C=e.slice(6+t);return!(e[6+t-2]!==2||n===0||C[0]&128||n>1&&C[0]===0&&!(C[1]&128))}hasLowS(){return!(this.s.lt(1)||this.s.gt(a.fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))))}hasDefinedHashType(){return!(this.nHashType<he.SIGHASH_ALL||this.nHashType>he.SIGHASH_SINGLE)}toCompact(e,t){if(e=typeof e=="number"?e:this.recovery,t=typeof t=="boolean"?t:this.compressed,!(e===0||e===1||e===2||e===3))throw new Error("recovery must be equal to 0, 1, 2, or 3");let n=e+27+4;t===!1&&(n=n-4);const g=Buffer.from([n]),C=this.r.toBuffer({size:32}),W=this.s.toBuffer({size:32});return Buffer.concat([g,C,W])}toRS(){return Buffer.concat([this.r.toBuffer({size:32}),this.s.toBuffer({size:32})])}toDer(){const e=this.r.toBuffer(),t=this.s.toBuffer(),n=e[0]&128,g=t[0]&128,C=n?Buffer.concat([Buffer.from([0]),e]):e,W=g?Buffer.concat([Buffer.from([0]),t]):t,Z=2+C.length+2+W.length,pe=C.length,ue=W.length;return Buffer.concat([Buffer.from([48,Z,2,pe]),C,Buffer.from([2,ue]),W])}toTxFormat(){const e=this.toDer(),t=Buffer.alloc(1);return t.writeUInt8(this.nHashType,0),Buffer.concat([e,t])}toString(){return this.toHex()}}he.SIGHASH_ALL=1,he.SIGHASH_NONE=2,he.SIGHASH_SINGLE=3,he.SIGHASH_FORKID=64,he.SIGHASH_ANYONECANPAY=128;class q extends v{static{r(this,"Script")}constructor(e=[]){super({chunks:e})}fromJSON(e){return this.fromString(e)}toJSON(){return this.toString()}fromBuffer(e){this.chunks=[];const t=new w(e);for(;!t.eof();){const n=t.readUInt8();let g=0,C=Buffer.from([]);if(n>0&&n<s.OP_PUSHDATA1)g=n,this.chunks.push({buf:t.read(g),len:g,opCodeNum:n});else if(n===s.OP_PUSHDATA1){try{g=t.readUInt8(),C=t.read(g)}catch{t.read()}this.chunks.push({buf:C,len:g,opCodeNum:n})}else if(n===s.OP_PUSHDATA2){try{g=t.readUInt16LE(),C=t.read(g)}catch{t.read()}this.chunks.push({buf:C,len:g,opCodeNum:n})}else if(n===s.OP_PUSHDATA4){try{g=t.readUInt32LE(),C=t.read(g)}catch{t.read()}this.chunks.push({buf:C,len:g,opCodeNum:n})}else this.chunks.push({opCodeNum:n})}return this}toBuffer(){const e=new m;for(let t=0;t<this.chunks.length;t++){const n=this.chunks[t],g=n.opCodeNum;e.writeUInt8(g),n.buf&&(g<s.OP_PUSHDATA1?e.write(n.buf):g===s.OP_PUSHDATA1?(e.writeUInt8(n.len),e.write(n.buf)):g===s.OP_PUSHDATA2?(e.writeUInt16LE(n.len),e.write(n.buf)):g===s.OP_PUSHDATA4&&(e.writeUInt32LE(n.len),e.write(n.buf)))}return e.toBuffer()}fromString(e){if(this.chunks=[],e===""||e===void 0)return this;const t=e.split(" ");let n=0;for(;n<t.length;){const g=t[n];let C;try{C=new s().fromString(g).toNumber()}catch{}if(C===void 0)if(C=parseInt(g,10),C>0&&C<s.OP_PUSHDATA1)this.chunks.push({buf:Buffer.from(t[n+1].slice(2),"hex"),len:C,opCodeNum:C}),n=n+2;else if(C===0)this.chunks.push({opCodeNum:0}),n=n+1;else throw new Error("Invalid script");else if(C===s.OP_PUSHDATA1||C===s.OP_PUSHDATA2||C===s.OP_PUSHDATA4){if(t[n+2].slice(0,2)!=="0x")throw new Error("Pushdata data must start with 0x");this.chunks.push({buf:Buffer.from(t[n+2].slice(2),"hex"),len:parseInt(t[n+1],10),opCodeNum:C}),n=n+3}else this.chunks.push({opCodeNum:C}),n=n+1}return this}toString(e={noOp:!1}){let t="";for(let n=0;n<this.chunks.length;n++){const g=this.chunks[n],C=g.opCodeNum.hasOwnProperty("num")?g.opCodeNum.num:g.opCodeNum;g.buf?((C===s.OP_PUSHDATA1||C===s.OP_PUSHDATA2||C===s.OP_PUSHDATA4)&&(t=e.noOp?t+" "+new s(C).toNoOpString():t+" "+new s(C).toString()),t=t+" "+g.len,t=t+" 0x"+g.buf.toString("hex")):s.str[C]!==void 0||s.noopstr[C]!==void 0?t=e.noOp?t+" "+new s(C).toNoOpString():t+" "+new s(C).toString():t=t+" 0x"+C.toString(16)}return t.substr(1)}fromBitcoindString(e){const t=new m,n=e.split(" ");let g;for(g=0;g<n.length;g++){const W=n[g];if(W!=="")if(W[0]==="0"&&W[1]==="x"){const Z=W.slice(2);t.write(Buffer.from(Z,"hex"))}else if(W[0]==="'"){const Z=W.slice(1,W.length-1),pe=Buffer.from(Z),ue=new q().writeBuffer(pe).toBuffer();t.write(ue)}else if(s["OP_"+W]!==void 0){const Z="OP_"+W,pe=s[Z];t.writeUInt8(pe)}else if(typeof s[W]=="number"){const pe=s[W];t.writeUInt8(pe)}else{if(isNaN(parseInt(W,10)))throw new Error("Could not determine type of script value");{const Z=new a(W),ue=new q().writeBn(Z).toBuffer();t.write(ue)}}}const C=t.toBuffer();return this.fromBuffer(C)}static fromBitcoindString(e){return new this().fromBitcoindString(e)}toBitcoindString(){let e="";for(let t=0;t<this.chunks.length;t++){const n=this.chunks[t];if(n.buf){const C=new q([n]).toBuffer().toString("hex");e=e+" 0x"+C}else if(s.str[n.opCodeNum]!==void 0){const g=new s(n.opCodeNum).toString();e=e+" "+g.slice(3)}else e=e+" 0x"+n.opCodeNum.toString(16)}return e.substr(1)}fromAsmString(e){this.chunks=[];const t=e.split(" ");let n=0;for(;n<t.length;){const g=t[n];let C,W;try{C=s.fromString(g),W=C.toNumber()}catch{C=void 0,W=void 0}if(g==="0")W=0,this.chunks.push({opCodeNum:W}),n=n+1;else if(g==="-1")W=s.OP_1NEGATE,this.chunks.push({opCodeNum:W}),n=n+1;else if(C===void 0){const Z=t[n],pe=Buffer.from(Z,"hex");if(pe.toString("hex")!==Z)throw new Error("invalid hex string in script");const ue=pe.length;ue>=0&&ue<s.OP_PUSHDATA1?W=ue:ue<Math.pow(2,8)?W=s.OP_PUSHDATA1:ue<Math.pow(2,16)?W=s.OP_PUSHDATA2:ue<Math.pow(2,32)&&(W=s.OP_PUSHDATA4),this.chunks.push({buf:pe,len:pe.length,opCodeNum:W}),n=n+1}else this.chunks.push({opCodeNum:W}),n=n+1}return this}static fromAsmString(e){return new this().fromAsmString(e)}toAsmString(e={noOp:!1}){for(var t="",n=0;n<this.chunks.length;n++){var g=this.chunks[n];t+=this._chunkToString(g,e)}return t.substr(1)}_chunkToString(e,t={noOp:!1}){var n=e.opCodeNum,g="";if(e.buf)e.len>0&&(g=g+" "+e.buf.toString("hex"));else if(typeof s.str[n]<"u")n===0?g=g+" 0":n===79?g=g+" -1":g=t.noOp?g+" "+new s(n).toNoOpString():g+" "+new s(n).toString();else{var C=n.toString(16);C.length%2!==0&&(C="0"+C),g=g+" "+C}return g}fromOpReturnData(e){return this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromOpReturnData(e){return new this().fromOpReturnData(e)}fromSafeData(e){return this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromSafeData(e){return new this().fromSafeData(e)}fromSafeDataArray(e){this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN);for(const t in e){const n=e[t];this.writeBuffer(n)}return this}static fromSafeDataArray(e){return new this().fromSafeDataArray(e)}getData(){if(this.isSafeDataOut())return this.chunks.slice(2).map(n=>n.buf);if(this.isOpReturn())return this.chunks.slice(1).map(n=>n.buf);throw new Error("Unrecognized script type to get data from")}fromPubKeyHash(e){if(e.length!==20)throw new Error("hashBuf must be a 20 byte buffer");return this.writeOpCode(s.OP_DUP),this.writeOpCode(s.OP_HASH160),this.writeBuffer(e),this.writeOpCode(s.OP_EQUALVERIFY),this.writeOpCode(s.OP_CHECKSIG),this}static fromPubKeyHash(e){return new this().fromPubKeyHash(e)}static sortPubKeys(e){return e.slice().sort((t,n)=>{const g=t.toBuffer(),C=n.toBuffer(),W=Math.max(g.length,C.length);for(let Z=0;Z<=W;Z++){if(g[Z]===void 0)return-1;if(C[Z]===void 0)return 1;if(g[Z]<C[Z])return-1;if(g[Z]>C[Z])return 1}})}fromPubKeys(e,t,n=!0){if(typeof e!="number")throw new Error("m must be a number");n===!0&&(t=q.sortPubKeys(t)),this.writeOpCode(e+s.OP_1-1);for(const g in t)this.writeBuffer(t[g].toBuffer());return this.writeOpCode(t.length+s.OP_1-1),this.writeOpCode(s.OP_CHECKMULTISIG),this}static fromPubKeys(e,t,n){return new this().fromPubKeys(e,t,n)}removeCodeseparators(){const e=[];for(let t=0;t<this.chunks.length;t++)this.chunks[t].opCodeNum!==s.OP_CODESEPARATOR&&e.push(this.chunks[t]);return this.chunks=e,this}isPushOnly(){for(let e=0;e<this.chunks.length;e++)if(this.chunks[e].opCodeNum>s.OP_16)return!1;return!0}isNonSpendable(){const e=this.chunks[0].opCodeNum===s.OP_FALSE,t=this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_RETURN;return!!e&&!!t}isOpReturn(){return this.chunks[0].opCodeNum===s.OP_RETURN&&this.chunks.filter(e=>Buffer.isBuffer(e.buf)).length===this.chunks.slice(1).length}isSafeDataOut(){if(this.chunks.length<2||this.chunks[0].opCodeNum!==s.OP_FALSE)return!1;var e=this.chunks.slice(1),t=new q(e);return t.isOpReturn()}isPubKeyHashOut(){return!!(this.chunks[0]&&this.chunks[0].opCodeNum===s.OP_DUP&&this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_HASH160&&this.chunks[2].buf&&this.chunks[3]&&this.chunks[3].opCodeNum===s.OP_EQUALVERIFY&&this.chunks[4]&&this.chunks[4].opCodeNum===s.OP_CHECKSIG)}isPubKeyHashIn(){return!!(this.chunks.length===2&&(this.chunks[0].buf||this.chunks[0].opCodeNum===s.OP_0)&&(this.chunks[1].buf||this.chunks[0].opCodeNum===s.OP_0))}isScriptHashOut(){const e=this.toBuffer();return e.length===23&&e[0]===s.OP_HASH160&&e[1]===20&&e[22]===s.OP_EQUAL}isScriptHashIn(){if(!this.isPushOnly())return!1;try{new q().fromBuffer(this.chunks[this.chunks.length-1].buf)}catch{return!1}return!0}isMultiSigOut(){const e=this.chunks[0].opCodeNum-s.OP_1+1;if(!(e>=1&&e<=16)||!this.chunks.slice(1,this.chunks.length-2).every(g=>{try{const C=g.buf;return new M().fromDer(C).validate(),!0}catch{return!1}}))return!1;const n=this.chunks[this.chunks.length-2].opCodeNum-s.OP_1+1;return!(!(n>=e&&n<=16)||this.chunks[1+n+1].opCodeNum!==s.OP_CHECKMULTISIG)}isMultiSigIn(){if(this.chunks[0].opCodeNum!==s.OP_0)return!1;const e=this.chunks.slice(1);return e.length<1?!1:e.every(t=>Buffer.isBuffer(t.buf)&&he.IsTxDer(t.buf))}findAndDelete(e){const t=e.toBuffer();for(let n=0;n<this.chunks.length;n++){const C=new q([this.chunks[n]]).toBuffer();A(t,C)&&this.chunks.splice(n,1)}return this}writeScript(e){return this.chunks=this.chunks.concat(e.chunks),this}static writeScript(e){return new this().writeScript(e)}writeString(e){const t=new q().fromString(e);return this.chunks=this.chunks.concat(t.chunks),this}static writeString(e){return new this().writeString(e)}writeOpCode(e){return this.chunks.push({opCodeNum:e}),this}static writeOpCode(e){return new this().writeOpCode(e)}setChunkOpCode(e,t){return this.chunks[e]={opCodeNum:t},this}writeBn(e){if(e.cmp(0)===s.OP_0)this.chunks.push({opCodeNum:s.OP_0});else if(e.cmp(-1)===0)this.chunks.push({opCodeNum:s.OP_1NEGATE});else if(e.cmp(1)>=0&&e.cmp(16)<=0)this.chunks.push({opCodeNum:e.toNumber()+s.OP_1-1});else{const t=e.toSm({endian:"little"});this.writeBuffer(t)}return this}static writeBn(e){return new this().writeBn(e)}writeNumber(e){return this.writeBn(new a().fromNumber(e)),this}static writeNumber(e){return new this().writeNumber(e)}setChunkBn(e,t){return this.chunks[e]=new q().writeBn(t).chunks[0],this}writeBuffer(e){let t;const n=e.length;if(e.length>0&&e.length<s.OP_PUSHDATA1)t=e.length;else if(e.length===0)t=s.OP_0;else if(e.length<Math.pow(2,8))t=s.OP_PUSHDATA1;else if(e.length<Math.pow(2,16))t=s.OP_PUSHDATA2;else if(e.length<Math.pow(2,32))t=s.OP_PUSHDATA4;else throw new Error("You can't push that much data");return this.chunks.push({buf:e,len:n,opCodeNum:t}),this}static writeBuffer(e){return new this().writeBuffer(e)}setChunkBuffer(e,t){return this.chunks[e]=new q().writeBuffer(t).chunks[0],this}checkMinimalPush(e){const t=this.chunks[e],n=t.buf,g=t.opCodeNum;return n?n.length===0?g===s.OP_0:n.length===1&&n[0]>=1&&n[0]<=16?g===s.OP_1+(n[0]-1):n.length===1&&n[0]===129?g===s.OP_1NEGATE:n.length<=75?g===n.length:n.length<=255?g===s.OP_PUSHDATA1:n.length<=65535?g===s.OP_PUSHDATA2:!0:!0}}class $ extends v{static{r(this,"Address")}constructor(e,t,n=null){super({versionByteNum:e,hashBuf:t}),n=n||ee.Default.Address,this.Constants=n}fromBuffer(e){if(e.length!==21)throw new Error("address buffers must be exactly 21 bytes");if(e[0]!==this.Constants.pubKeyHash)throw new Error("address: invalid versionByteNum byte");return this.versionByteNum=e[0],this.hashBuf=e.slice(1),this}fromPubKeyHashBuf(e){return this.hashBuf=e,this.versionByteNum=this.Constants.pubKeyHash,this}static fromPubKeyHashBuf(e){return new this().fromPubKeyHashBuf(e)}fromPubKey(e){const t=X.sha256Ripemd160(e.toBuffer());return this.fromPubKeyHashBuf(t)}static fromPubKey(e){return new this().fromPubKey(e)}async asyncFromPubKey(e){const t=[e],n=await G.asyncObjectMethod(this,"fromPubKey",t);return this.fromFastBuffer(n.resbuf)}static asyncFromPubKey(e){return new this().asyncFromPubKey(e)}fromPrivKey(e){const t=new M().fromPrivKey(e),n=X.sha256Ripemd160(t.toBuffer());return this.fromPubKeyHashBuf(n)}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=[e],n=await G.asyncObjectMethod(this,"fromPrivKey",t);return this.fromFastBuffer(n.resbuf)}static asyncFromPrivKey(e){return new this().fromPrivKey(e)}fromRandom(){const e=new ve().fromRandom();return this.fromPrivKey(e)}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){const e=[],t=await G.asyncObjectMethod(this,"fromRandom",e);return this.fromFastBuffer(t.resbuf)}static asyncFromRandom(){return new this().fromRandom()}fromString(e){const t=fe.decode(e);return this.fromBuffer(t)}async asyncFromString(e){const t=[e],n=await G.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(n.resbuf)}static asyncFromString(e){return new this().asyncFromString(e)}static isValid(e){let t;try{t=new $().fromString(e)}catch{return!1}return t.isValid()}isValid(){try{return this.validate(),!0}catch{return!1}}toTxOutScript(){const e=new q;return e.writeOpCode(s.OP_DUP),e.writeOpCode(s.OP_HASH160),e.writeBuffer(this.hashBuf),e.writeOpCode(s.OP_EQUALVERIFY),e.writeOpCode(s.OP_CHECKSIG),e}fromTxInScript(e){const t=X.sha256Ripemd160(e.chunks[1].buf||Buffer.from("00".repeat(32),"hex"));return this.fromPubKeyHashBuf(t)}static fromTxInScript(e){return new this().fromTxInScript(e)}fromTxOutScript(e){return this.fromPubKeyHashBuf(e.chunks[2].buf)}static fromTxOutScript(e){return new this().fromTxOutScript(e)}toBuffer(){const e=Buffer.from([this.versionByteNum]);return Buffer.concat([e,this.hashBuf])}toJSON(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),typeof this.versionByteNum<"u"&&(e.versionByteNum=this.versionByteNum),e}fromJSON(e){return e.hashBuf&&(this.hashBuf=Buffer.from(e.hashBuf,"hex")),typeof e.versionByteNum<"u"&&(this.versionByteNum=e.versionByteNum),this}toString(){return fe.encode(this.toBuffer())}async asyncToString(){const e=[],t=await G.asyncObjectMethod(this,"toString",e);return JSON.parse(t.resbuf.toString())}validate(){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==20)throw new Error("hashBuf must be a buffer of 20 bytes");if(this.versionByteNum!==this.Constants.pubKeyHash)throw new Error("invalid versionByteNum");return this}}$.Mainnet=class extends ${constructor(I,e){super(I,e,ee.Mainnet.Address)}},$.Testnet=class extends ${constructor(I,e){super(I,e,ee.Testnet.Address)}};class oe extends v{static{r(this,"Bip32")}constructor(e,t,n,g,C,W,Z,pe=null,ue=ve){super({versionBytesNum:e,depth:t,parentFingerPrint:n,childIndex:g,chainCode:C,privKey:W,pubKey:Z}),pe=pe||ee.Default.Bip32,this.Constants=pe,this.PrivKey=ue}fromRandom(){return this.versionBytesNum=this.Constants.privKey,this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=ge.getRandomBuffer(32),this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new M().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}fromString(e){return this.fromBuffer(fe.decode(e))}async asyncFromString(e){const t=[e],n=await G.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(n.resbuf)}fromSeed(e){if(!Buffer.isBuffer(e))throw new Error("bytes must be a buffer");if(e.length<128/8)throw new Error("Need more than 128 bits of entropy");if(e.length>512/8)throw new Error("More than 512 bits of entropy is nonstandard");const t=X.sha512Hmac(e,Buffer.from("Bitcoin seed"));return this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=t.slice(32,64),this.versionBytesNum=this.Constants.privKey,this.privKey=new this.PrivKey().fromBn(a().fromBuffer(t.slice(0,32))),this.pubKey=new M().fromPrivKey(this.privKey),this}static fromSeed(e){return new this().fromSeed(e)}async asyncFromSeed(e){const t=await G.asyncObjectMethod(this,"fromSeed",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromSeed(e){return new this().asyncFromSeed(e)}fromBuffer(e){if(e.length!==78)throw new Error("incorrect bip32 data length");this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,78),n=this.versionBytesNum===this.Constants.privKey,g=this.versionBytesNum===this.Constants.pubKey;if(n&&t[0]===0)this.privKey=new this.PrivKey().fromBn(a().fromBuffer(t.slice(1,33))),this.pubKey=new M().fromPrivKey(this.privKey);else if(g&&(t[0]===2||t[0]===3))this.pubKey=new M().fromDer(t);else throw new Error("Invalid key");return this}fromFastBuffer(e){if(e.length===0)return this;if(e.length!==78&&e.length!==111)throw new Error("incorrect bip32 fastBuffer data length: "+e.length);this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,e.length),n=this.versionBytesNum===this.Constants.privKey,g=this.versionBytesNum===this.Constants.pubKey;if(n&&t[0]===0&&e.length===78)this.privKey=new this.PrivKey().fromBn(a().fromBuffer(t.slice(1,33))),this.pubKey=new M().fromPrivKey(this.privKey);else if(g&&e.length===111)this.pubKey=new M().fromFastBuffer(t),this.pubKey.compressed=!0;else throw new Error("Invalid key");return this}derive(e){const t=e.split("/");if(e==="m")return this;let n=this;for(const g in t){const C=t[g];if(g==="0"){if(C!=="m")throw new Error("invalid path");continue}if(parseInt(C.replace("'",""),10).toString()!==C.replace("'",""))throw new Error("invalid path");const W=C.length>1&&C[C.length-1]==="'";let Z=parseInt(W?C.slice(0,C.length-1):C,10)&2147483647;W&&(Z+=2147483648),n=n.deriveChild(Z)}return n}async asyncDerive(e){const t=await G.asyncObjectMethod(this,"derive",[e]);return new this.constructor().fromFastBuffer(t.resbuf)}deriveChild(e){if(typeof e!="number")throw new Error("i must be a number");let t=[];t.push(e>>24&255),t.push(e>>16&255),t.push(e>>8&255),t.push(e&255),t=Buffer.from(t);const n=(e&2147483648)!==0,g=this.versionBytesNum===this.Constants.privKey;if(n&&(!this.privKey||!g))throw new Error("Cannot do private key derivation without private key");let C=null;if(this.privKey){let Z=null;n?Z=Buffer.concat([Buffer.from([0]),this.privKey.bn.toBuffer({size:32}),t]):Z=Buffer.concat([this.pubKey.toBuffer({size:32}),t]);const pe=X.sha512Hmac(Z,this.chainCode),ue=a().fromBuffer(pe.slice(0,32),{size:32}),xe=pe.slice(32,64),ke=ue.add(this.privKey.bn).mod(Y.getN());C=new this.constructor,C.chainCode=xe,C.privKey=new this.PrivKey().fromBn(ke),C.pubKey=new M().fromPrivKey(C.privKey)}else{const Z=Buffer.concat([this.pubKey.toBuffer(),t]),pe=X.sha512Hmac(Z,this.chainCode),ue=a().fromBuffer(pe.slice(0,32)),xe=pe.slice(32,64),ke=Y.getG().mul(ue),Oe=this.pubKey.point,Fe=ke.add(Oe),ce=new M;ce.point=Fe,C=new this.constructor,C.chainCode=xe,C.pubKey=ce}C.childIndex=e;const W=X.sha256Ripemd160(this.pubKey.toBuffer());return C.parentFingerPrint=W.slice(0,4),C.versionBytesNum=this.versionBytesNum,C.depth=this.depth+1,C}toPublic(){const e=new this.constructor().fromObject(this);return e.versionBytesNum=this.Constants.pubKey,e.privKey=void 0,e}toBuffer(){const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new m().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t){if(this.pubKey.compressed===!1)throw new Error("cannot convert bip32 to buffer if pubKey is not compressed");return new m().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toBuffer()).toBuffer()}else throw new Error("bip32: invalid versionBytesNum byte")}toFastBuffer(){if(!this.versionBytesNum)return Buffer.alloc(0);const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new m().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t)return new m().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toFastBuffer()).toBuffer();throw new Error("bip32: invalid versionBytesNum byte")}toString(){return fe.encode(this.toBuffer())}async asyncToString(){const e=await G.asyncObjectMethod(this,"toString",[]);return JSON.parse(e.resbuf.toString())}toJSON(){return this.toFastHex()}fromJSON(e){return this.fromFastHex(e)}isPrivate(){return this.versionBytesNum===this.Constants.privKey}}oe.Mainnet=class extends oe{constructor(I,e,t,n,g,C,W){super(I,e,t,n,g,C,W,ee.Mainnet.Bip32,ve.Mainnet)}},oe.Testnet=class extends oe{constructor(I,e,t,n,g,C,W){super(I,e,t,n,g,C,W,ee.Testnet.Bip32,ve.Testnet)}};const Se=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];Se.space=" ";const _e=["\u3042\u3044\u3053\u304F\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u3060","\u3042\u304A\u305E\u3089","\u3042\u304B\u3061\u3083\u3093","\u3042\u304D\u308B","\u3042\u3051\u304C\u305F","\u3042\u3051\u308B","\u3042\u3053\u304C\u308C\u308B","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3058\u308F\u3046","\u3042\u305A\u304B\u308B","\u3042\u305A\u304D","\u3042\u305D\u3076","\u3042\u305F\u3048\u308B","\u3042\u305F\u305F\u3081\u308B","\u3042\u305F\u308A\u307E\u3048","\u3042\u305F\u308B","\u3042\u3064\u3044","\u3042\u3064\u304B\u3046","\u3042\u3063\u3057\u3085\u304F","\u3042\u3064\u307E\u308A","\u3042\u3064\u3081\u308B","\u3042\u3066\u306A","\u3042\u3066\u306F\u307E\u308B","\u3042\u3072\u308B","\u3042\u3076\u3089","\u3042\u3076\u308B","\u3042\u3075\u308C\u308B","\u3042\u307E\u3044","\u3042\u307E\u3069","\u3042\u307E\u3084\u304B\u3059","\u3042\u307E\u308A","\u3042\u307F\u3082\u306E","\u3042\u3081\u308A\u304B","\u3042\u3084\u307E\u308B","\u3042\u3086\u3080","\u3042\u3089\u3044\u3050\u307E","\u3042\u3089\u3057","\u3042\u3089\u3059\u3058","\u3042\u3089\u305F\u3081\u308B","\u3042\u3089\u3086\u308B","\u3042\u3089\u308F\u3059","\u3042\u308A\u304C\u3068\u3046","\u3042\u308F\u305B\u308B","\u3042\u308F\u3066\u308B","\u3042\u3093\u3044","\u3042\u3093\u304C\u3044","\u3042\u3093\u3053","\u3042\u3093\u305C\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306A\u3044","\u3042\u3093\u307E\u308A","\u3044\u3044\u3060\u3059","\u3044\u304A\u3093","\u3044\u304C\u3044","\u3044\u304C\u304F","\u3044\u304D\u304A\u3044","\u3044\u304D\u306A\u308A","\u3044\u304D\u3082\u306E","\u3044\u304D\u308B","\u3044\u304F\u3058","\u3044\u304F\u3076\u3093","\u3044\u3051\u3070\u306A","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304F","\u3044\u3053\u3064","\u3044\u3055\u307E\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304D","\u3044\u3058\u3085\u3046","\u3044\u3058\u3087\u3046","\u3044\u3058\u308F\u308B","\u3044\u305A\u307F","\u3044\u305A\u308C","\u3044\u305B\u3044","\u3044\u305B\u3048\u3073","\u3044\u305B\u304B\u3044","\u3044\u305B\u304D","\u3044\u305C\u3093","\u3044\u305D\u3046\u308D\u3046","\u3044\u305D\u304C\u3057\u3044","\u3044\u3060\u3044","\u3044\u3060\u304F","\u3044\u305F\u305A\u3089","\u3044\u305F\u307F","\u3044\u305F\u308A\u3042","\u3044\u3061\u304A\u3046","\u3044\u3061\u3058","\u3044\u3061\u3069","\u3044\u3061\u3070","\u3044\u3061\u3076","\u3044\u3061\u308A\u3085\u3046","\u3044\u3064\u304B","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305B\u3044","\u3044\u3063\u305D\u3046","\u3044\u3063\u305F\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307D\u3046","\u3044\u3066\u3056","\u3044\u3066\u3093","\u3044\u3069\u3046","\u3044\u3068\u3053","\u3044\u306A\u3044","\u3044\u306A\u304B","\u3044\u306D\u3080\u308A","\u3044\u306E\u3061","\u3044\u306E\u308B","\u3044\u306F\u3064","\u3044\u3070\u308B","\u3044\u306F\u3093","\u3044\u3073\u304D","\u3044\u3072\u3093","\u3044\u3075\u304F","\u3044\u3078\u3093","\u3044\u307B\u3046","\u3044\u307F\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305F\u308C","\u3044\u3082\u308A","\u3044\u3084\u304C\u308B","\u3044\u3084\u3059","\u3044\u3088\u304B\u3093","\u3044\u3088\u304F","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308A\u3050\u3061","\u3044\u308A\u3087\u3046","\u3044\u308C\u3044","\u3044\u308C\u3082\u306E","\u3044\u308C\u308B","\u3044\u308D\u3048\u3093\u3074\u3064","\u3044\u308F\u3044","\u3044\u308F\u3046","\u3044\u308F\u304B\u3093","\u3044\u308F\u3070","\u3044\u308F\u3086\u308B","\u3044\u3093\u3052\u3093\u307E\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304D","\u3046\u3048\u308B","\u3046\u304A\u3056","\u3046\u304C\u3044","\u3046\u304B\u3076","\u3046\u304B\u3079\u308B","\u3046\u304D\u308F","\u3046\u304F\u3089\u3044\u306A","\u3046\u304F\u308C\u308C","\u3046\u3051\u305F\u307E\u308F\u308B","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308B","\u3046\u3051\u3082\u3064","\u3046\u3051\u308B","\u3046\u3054\u304B\u3059","\u3046\u3054\u304F","\u3046\u3053\u3093","\u3046\u3055\u304E","\u3046\u3057\u306A\u3046","\u3046\u3057\u308D\u304C\u307F","\u3046\u3059\u3044","\u3046\u3059\u304E","\u3046\u3059\u3050\u3089\u3044","\u3046\u3059\u3081\u308B","\u3046\u305B\u3064","\u3046\u3061\u3042\u308F\u305B","\u3046\u3061\u304C\u308F","\u3046\u3061\u304D","\u3046\u3061\u3085\u3046","\u3046\u3063\u304B\u308A","\u3046\u3064\u304F\u3057\u3044","\u3046\u3063\u305F\u3048\u308B","\u3046\u3064\u308B","\u3046\u3069\u3093","\u3046\u306A\u304E","\u3046\u306A\u3058","\u3046\u306A\u305A\u304F","\u3046\u306A\u308B","\u3046\u306D\u308B","\u3046\u306E\u3046","\u3046\u3076\u3052","\u3046\u3076\u3054\u3048","\u3046\u307E\u308C\u308B","\u3046\u3081\u308B","\u3046\u3082\u3046","\u3046\u3084\u307E\u3046","\u3046\u3088\u304F","\u3046\u3089\u304C\u3048\u3059","\u3046\u3089\u3050\u3061","\u3046\u3089\u306A\u3044","\u3046\u308A\u3042\u3052","\u3046\u308A\u304D\u308C","\u3046\u308B\u3055\u3044","\u3046\u308C\u3057\u3044","\u3046\u308C\u3086\u304D","\u3046\u308C\u308B","\u3046\u308D\u3053","\u3046\u308F\u304D","\u3046\u308F\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3069\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304C","\u3048\u3044\u304D\u3087\u3046","\u3048\u3044\u3054","\u3048\u3044\u305B\u3044","\u3048\u3044\u3076\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308F","\u3048\u304A\u308A","\u3048\u304C\u304A","\u3048\u304C\u304F","\u3048\u304D\u305F\u3044","\u3048\u304F\u305B\u308B","\u3048\u3057\u3083\u304F","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306E\u3050","\u3048\u307B\u3046\u307E\u304D","\u3048\u307B\u3093","\u3048\u307E\u304D","\u3048\u3082\u3058","\u3048\u3082\u306E","\u3048\u3089\u3044","\u3048\u3089\u3076","\u3048\u308A\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304B\u3044","\u3048\u3093\u304E","\u3048\u3093\u3052\u304D","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305C\u3064","\u3048\u3093\u305D\u304F","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304A\u3044\u304B\u3051\u308B","\u304A\u3044\u3053\u3059","\u304A\u3044\u3057\u3044","\u304A\u3044\u3064\u304F","\u304A\u3046\u3048\u3093","\u304A\u3046\u3055\u307E","\u304A\u3046\u3058","\u304A\u3046\u305B\u3064","\u304A\u3046\u305F\u3044","\u304A\u3046\u3075\u304F","\u304A\u3046\u3079\u3044","\u304A\u3046\u3088\u3046","\u304A\u3048\u308B","\u304A\u304A\u3044","\u304A\u304A\u3046","\u304A\u304A\u3069\u304A\u308A","\u304A\u304A\u3084","\u304A\u304A\u3088\u305D","\u304A\u304B\u3048\u308A","\u304A\u304B\u305A","\u304A\u304C\u3080","\u304A\u304B\u308F\u308A","\u304A\u304E\u306A\u3046","\u304A\u304D\u308B","\u304A\u304F\u3055\u307E","\u304A\u304F\u3058\u3087\u3046","\u304A\u304F\u308A\u304C\u306A","\u304A\u304F\u308B","\u304A\u304F\u308C\u308B","\u304A\u3053\u3059","\u304A\u3053\u306A\u3046","\u304A\u3053\u308B","\u304A\u3055\u3048\u308B","\u304A\u3055\u306A\u3044","\u304A\u3055\u3081\u308B","\u304A\u3057\u3044\u308C","\u304A\u3057\u3048\u308B","\u304A\u3058\u304E","\u304A\u3058\u3055\u3093","\u304A\u3057\u3083\u308C","\u304A\u305D\u3089\u304F","\u304A\u305D\u308F\u308B","\u304A\u305F\u304C\u3044","\u304A\u305F\u304F","\u304A\u3060\u3084\u304B","\u304A\u3061\u3064\u304F","\u304A\u3063\u3068","\u304A\u3064\u308A","\u304A\u3067\u304B\u3051","\u304A\u3068\u3057\u3082\u306E","\u304A\u3068\u306A\u3057\u3044","\u304A\u3069\u308A","\u304A\u3069\u308D\u304B\u3059","\u304A\u3070\u3055\u3093","\u304A\u307E\u3044\u308A","\u304A\u3081\u3067\u3068\u3046","\u304A\u3082\u3044\u3067","\u304A\u3082\u3046","\u304A\u3082\u305F\u3044","\u304A\u3082\u3061\u3083","\u304A\u3084\u3064","\u304A\u3084\u3086\u3073","\u304A\u3088\u307C\u3059","\u304A\u3089\u3093\u3060","\u304A\u308D\u3059","\u304A\u3093\u304C\u304F","\u304A\u3093\u3051\u3044","\u304A\u3093\u3057\u3083","\u304A\u3093\u305B\u3093","\u304A\u3093\u3060\u3093","\u304A\u3093\u3061\u3085\u3046","\u304A\u3093\u3069\u3051\u3044","\u304B\u3042\u3064","\u304B\u3044\u304C","\u304C\u3044\u304D","\u304C\u3044\u3051\u3093","\u304C\u3044\u3053\u3046","\u304B\u3044\u3055\u3064","\u304B\u3044\u3057\u3083","\u304B\u3044\u3059\u3044\u3088\u304F","\u304B\u3044\u305C\u3093","\u304B\u3044\u305E\u3046\u3069","\u304B\u3044\u3064\u3046","\u304B\u3044\u3066\u3093","\u304B\u3044\u3068\u3046","\u304B\u3044\u3075\u304F","\u304C\u3044\u3078\u304D","\u304B\u3044\u307B\u3046","\u304B\u3044\u3088\u3046","\u304C\u3044\u3089\u3044","\u304B\u3044\u308F","\u304B\u3048\u308B","\u304B\u304A\u308A","\u304B\u304B\u3048\u308B","\u304B\u304C\u304F","\u304B\u304C\u3057","\u304B\u304C\u307F","\u304B\u304F\u3054","\u304B\u304F\u3068\u304F","\u304B\u3056\u308B","\u304C\u305E\u3046","\u304B\u305F\u3044","\u304B\u305F\u3061","\u304C\u3061\u3087\u3046","\u304C\u3063\u304D\u3085\u3046","\u304C\u3063\u3053\u3046","\u304C\u3063\u3055\u3093","\u304C\u3063\u3057\u3087\u3046","\u304B\u306A\u3056\u308F\u3057","\u304B\u306E\u3046","\u304C\u306F\u304F","\u304B\u3076\u304B","\u304B\u307B\u3046","\u304B\u307B\u3054","\u304B\u307E\u3046","\u304B\u307E\u307C\u3053","\u304B\u3081\u308C\u304A\u3093","\u304B\u3086\u3044","\u304B\u3088\u3046\u3073","\u304B\u3089\u3044","\u304B\u308B\u3044","\u304B\u308D\u3046","\u304B\u308F\u304F","\u304B\u308F\u3089","\u304C\u3093\u304B","\u304B\u3093\u3051\u3044","\u304B\u3093\u3053\u3046","\u304B\u3093\u3057\u3083","\u304B\u3093\u305D\u3046","\u304B\u3093\u305F\u3093","\u304B\u3093\u3061","\u304C\u3093\u3070\u308B","\u304D\u3042\u3044","\u304D\u3042\u3064","\u304D\u3044\u308D","\u304E\u3044\u3093","\u304D\u3046\u3044","\u304D\u3046\u3093","\u304D\u3048\u308B","\u304D\u304A\u3046","\u304D\u304A\u304F","\u304D\u304A\u3061","\u304D\u304A\u3093","\u304D\u304B\u3044","\u304D\u304B\u304F","\u304D\u304B\u3093\u3057\u3083","\u304D\u304D\u3066","\u304D\u304F\u3070\u308A","\u304D\u304F\u3089\u3052","\u304D\u3051\u3093\u305B\u3044","\u304D\u3053\u3046","\u304D\u3053\u3048\u308B","\u304D\u3053\u304F","\u304D\u3055\u3044","\u304D\u3055\u304F","\u304D\u3055\u307E","\u304D\u3055\u3089\u304E","\u304E\u3058\u304B\u304C\u304F","\u304E\u3057\u304D","\u304E\u3058\u305F\u3044\u3051\u3093","\u304E\u3058\u306B\u3063\u3066\u3044","\u304E\u3058\u3085\u3064\u3057\u3083","\u304D\u3059\u3046","\u304D\u305B\u3044","\u304D\u305B\u304D","\u304D\u305B\u3064","\u304D\u305D\u3046","\u304D\u305E\u304F","\u304D\u305E\u3093","\u304D\u305F\u3048\u308B","\u304D\u3061\u3087\u3046","\u304D\u3064\u3048\u3093","\u304E\u3063\u3061\u308A","\u304D\u3064\u3064\u304D","\u304D\u3064\u306D","\u304D\u3066\u3044","\u304D\u3069\u3046","\u304D\u3069\u304F","\u304D\u306A\u3044","\u304D\u306A\u304C","\u304D\u306A\u3053","\u304D\u306C\u3054\u3057","\u304D\u306D\u3093","\u304D\u306E\u3046","\u304D\u306E\u3057\u305F","\u304D\u306F\u304F","\u304D\u3073\u3057\u3044","\u304D\u3072\u3093","\u304D\u3075\u304F","\u304D\u3076\u3093","\u304D\u307C\u3046","\u304D\u307B\u3093","\u304D\u307E\u308B","\u304D\u307F\u3064","\u304D\u3080\u305A\u304B\u3057\u3044","\u304D\u3081\u308B","\u304D\u3082\u3060\u3081\u3057","\u304D\u3082\u3061","\u304D\u3082\u306E","\u304D\u3083\u304F","\u304D\u3084\u304F","\u304E\u3085\u3046\u306B\u304F","\u304D\u3088\u3046","\u304D\u3087\u3046\u308A\u3085\u3046","\u304D\u3089\u3044","\u304D\u3089\u304F","\u304D\u308A\u3093","\u304D\u308C\u3044","\u304D\u308C\u3064","\u304D\u308D\u304F","\u304E\u308D\u3093","\u304D\u308F\u3081\u308B","\u304E\u3093\u3044\u308D","\u304D\u3093\u304B\u304F\u3058","\u304D\u3093\u3058\u3087","\u304D\u3093\u3088\u3046\u3073","\u3050\u3042\u3044","\u304F\u3044\u305A","\u304F\u3046\u304B\u3093","\u304F\u3046\u304D","\u304F\u3046\u3050\u3093","\u304F\u3046\u3053\u3046","\u3050\u3046\u305B\u3044","\u304F\u3046\u305D\u3046","\u3050\u3046\u305F\u3089","\u304F\u3046\u3075\u304F","\u304F\u3046\u307C","\u304F\u304B\u3093","\u304F\u304D\u3087\u3046","\u304F\u3052\u3093","\u3050\u3053\u3046","\u304F\u3055\u3044","\u304F\u3055\u304D","\u304F\u3055\u3070\u306A","\u304F\u3055\u308B","\u304F\u3057\u3083\u307F","\u304F\u3057\u3087\u3046","\u304F\u3059\u306E\u304D","\u304F\u3059\u308A\u3086\u3073","\u304F\u305B\u3052","\u304F\u305B\u3093","\u3050\u305F\u3044\u3066\u304D","\u304F\u3060\u3055\u308B","\u304F\u305F\u3073\u308C\u308B","\u304F\u3061\u3053\u307F","\u304F\u3061\u3055\u304D","\u304F\u3064\u3057\u305F","\u3050\u3063\u3059\u308A","\u304F\u3064\u308D\u3050","\u304F\u3068\u3046\u3066\u3093","\u304F\u3069\u304F","\u304F\u306A\u3093","\u304F\u306D\u304F\u306D","\u304F\u306E\u3046","\u304F\u3075\u3046","\u304F\u307F\u3042\u308F\u305B","\u304F\u307F\u305F\u3066\u308B","\u304F\u3081\u308B","\u304F\u3084\u304F\u3057\u3087","\u304F\u3089\u3059","\u304F\u3089\u3079\u308B","\u304F\u308B\u307E","\u304F\u308C\u308B","\u304F\u308D\u3046","\u304F\u308F\u3057\u3044","\u3050\u3093\u304B\u3093","\u3050\u3093\u3057\u3087\u304F","\u3050\u3093\u305F\u3044","\u3050\u3093\u3066","\u3051\u3042\u306A","\u3051\u3044\u304B\u304F","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3052\u3044\u3058\u3085\u3064","\u3051\u3044\u305F\u3044","\u3052\u3044\u306E\u3046\u3058\u3093","\u3051\u3044\u308C\u304D","\u3051\u3044\u308D","\u3051\u304A\u3068\u3059","\u3051\u304A\u308A\u3082\u306E","\u3052\u304D\u304B","\u3052\u304D\u3052\u3093","\u3052\u304D\u3060\u3093","\u3052\u304D\u3061\u3093","\u3052\u304D\u3068\u3064","\u3052\u304D\u306F","\u3052\u304D\u3084\u304F","\u3052\u3053\u3046","\u3052\u3053\u304F\u3058\u3087\u3046","\u3052\u3056\u3044","\u3051\u3055\u304D","\u3052\u3056\u3093","\u3051\u3057\u304D","\u3051\u3057\u3054\u3080","\u3051\u3057\u3087\u3046","\u3052\u3059\u3068","\u3051\u305F\u3070","\u3051\u3061\u3083\u3063\u3077","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304D","\u3051\u3063\u3053\u3093","\u3051\u3064\u3058\u3087","\u3051\u3063\u305B\u304D","\u3051\u3063\u3066\u3044","\u3051\u3064\u307E\u3064","\u3052\u3064\u3088\u3046\u3073","\u3052\u3064\u308C\u3044","\u3051\u3064\u308D\u3093","\u3052\u3069\u304F","\u3051\u3068\u3070\u3059","\u3051\u3068\u308B","\u3051\u306A\u3052","\u3051\u306A\u3059","\u3051\u306A\u307F","\u3051\u306C\u304D","\u3052\u306D\u3064","\u3051\u306D\u3093","\u3051\u306F\u3044","\u3052\u3072\u3093","\u3051\u3076\u304B\u3044","\u3052\u307C\u304F","\u3051\u307E\u308A","\u3051\u307F\u304B\u308B","\u3051\u3080\u3057","\u3051\u3080\u308A","\u3051\u3082\u306E","\u3051\u3089\u3044","\u3051\u308D\u3051\u308D","\u3051\u308F\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304A","\u3051\u3093\u304B","\u3052\u3093\u304D","\u3051\u3093\u3052\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304F","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3052\u3093\u305D\u3046","\u3051\u3093\u3061\u304F","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306A\u3044","\u3051\u3093\u306B\u3093","\u3052\u3093\u3076\u3064","\u3051\u3093\u307E","\u3051\u3093\u307F\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308A","\u3053\u3042\u304F\u307E","\u3053\u3044\u306C","\u3053\u3044\u3073\u3068","\u3054\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304A\u3093","\u3053\u3046\u304B\u3093","\u3054\u3046\u304D\u3085\u3046","\u3054\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3058","\u3053\u3046\u3059\u3044","\u3054\u3046\u305B\u3044","\u3053\u3046\u305D\u304F","\u3053\u3046\u305F\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3069\u3046","\u3053\u3046\u306A\u3044","\u3053\u3046\u306F\u3044","\u3054\u3046\u307B\u3046","\u3054\u3046\u307E\u3093","\u3053\u3046\u3082\u304F","\u3053\u3046\u308A\u3064","\u3053\u3048\u308B","\u3053\u304A\u308A","\u3054\u304B\u3044","\u3054\u304C\u3064","\u3054\u304B\u3093","\u3053\u304F\u3054","\u3053\u304F\u3055\u3044","\u3053\u304F\u3068\u3046","\u3053\u304F\u306A\u3044","\u3053\u304F\u306F\u304F","\u3053\u3050\u307E","\u3053\u3051\u3044","\u3053\u3051\u308B","\u3053\u3053\u306E\u304B","\u3053\u3053\u308D","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305B\u3044","\u3053\u305B\u304D","\u3053\u305C\u3093","\u3053\u305D\u3060\u3066","\u3053\u305F\u3044","\u3053\u305F\u3048\u308B","\u3053\u305F\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304B","\u3053\u3064\u3053\u3064","\u3053\u3064\u3070\u3093","\u3053\u3064\u3076","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304C\u3089","\u3053\u3068\u3057","\u3053\u3068\u3070","\u3053\u3068\u308A","\u3053\u306A\u3054\u306A","\u3053\u306D\u3053\u306D","\u3053\u306E\u307E\u307E","\u3053\u306E\u307F","\u3053\u306E\u3088","\u3054\u306F\u3093","\u3053\u3072\u3064\u3058","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307C\u308C\u308B","\u3054\u307E\u3042\u3076\u3089","\u3053\u307E\u304B\u3044","\u3054\u307E\u3059\u308A","\u3053\u307E\u3064\u306A","\u3053\u307E\u308B","\u3053\u3080\u304E\u3053","\u3053\u3082\u3058","\u3053\u3082\u3061","\u3053\u3082\u306E","\u3053\u3082\u3093","\u3053\u3084\u304F","\u3053\u3084\u307E","\u3053\u3086\u3046","\u3053\u3086\u3073","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308A\u308B","\u3053\u308C\u304F\u3057\u3087\u3093","\u3053\u308D\u3063\u3051","\u3053\u308F\u3082\u3066","\u3053\u308F\u308C\u308B","\u3053\u3093\u3044\u3093","\u3053\u3093\u304B\u3044","\u3053\u3093\u304D","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u3060\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306A\u3093","\u3053\u3093\u3073\u306B","\u3053\u3093\u307D\u3093","\u3053\u3093\u307E\u3051","\u3053\u3093\u3084","\u3053\u3093\u308C\u3044","\u3053\u3093\u308F\u304F","\u3056\u3044\u3048\u304D","\u3055\u3044\u304B\u3044","\u3055\u3044\u304D\u3093","\u3056\u3044\u3052\u3093","\u3056\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305B\u3044","\u3056\u3044\u305F\u304F","\u3056\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304D","\u3056\u3044\u308A\u3087\u3046","\u3055\u3046\u306A","\u3055\u304B\u3044\u3057","\u3055\u304C\u3059","\u3055\u304B\u306A","\u3055\u304B\u307F\u3061","\u3055\u304C\u308B","\u3055\u304E\u3087\u3046","\u3055\u304F\u3057","\u3055\u304F\u3072\u3093","\u3055\u304F\u3089","\u3055\u3053\u304F","\u3055\u3053\u3064","\u3055\u305A\u304B\u308B","\u3056\u305B\u304D","\u3055\u305F\u3093","\u3055\u3064\u3048\u3044","\u3056\u3064\u304A\u3093","\u3056\u3063\u304B","\u3056\u3064\u304C\u304F","\u3055\u3063\u304D\u3087\u304F","\u3056\u3063\u3057","\u3055\u3064\u3058\u3093","\u3056\u3063\u305D\u3046","\u3055\u3064\u305F\u3070","\u3055\u3064\u307E\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304A\u3084","\u3055\u3068\u3057","\u3055\u3068\u308B","\u3055\u306E\u3046","\u3055\u3070\u304F","\u3055\u3073\u3057\u3044","\u3055\u3079\u3064","\u3055\u307B\u3046","\u3055\u307B\u3069","\u3055\u307E\u3059","\u3055\u307F\u3057\u3044","\u3055\u307F\u3060\u308C","\u3055\u3080\u3051","\u3055\u3081\u308B","\u3055\u3084\u3048\u3093\u3069\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304F","\u3055\u3089\u3060","\u3056\u308B\u305D\u3070","\u3055\u308F\u3084\u304B","\u3055\u308F\u308B","\u3055\u3093\u3044\u3093","\u3055\u3093\u304B","\u3055\u3093\u304D\u3083\u304F","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3056\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305B\u3044","\u3055\u3093\u305D","\u3055\u3093\u3061","\u3055\u3093\u307E","\u3055\u3093\u307F","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3052","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308F\u305B","\u3057\u3044\u304F","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304A\u3051","\u3057\u304B\u3044","\u3057\u304B\u304F","\u3058\u304B\u3093","\u3057\u3054\u3068","\u3057\u3059\u3046","\u3058\u3060\u3044","\u3057\u305F\u3046\u3051","\u3057\u305F\u304E","\u3057\u305F\u3066","\u3057\u305F\u307F","\u3057\u3061\u3087\u3046","\u3057\u3061\u308A\u3093","\u3057\u3063\u304B\u308A","\u3057\u3064\u3058","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304D","\u3057\u3066\u3064","\u3058\u3066\u3093","\u3058\u3069\u3046","\u3057\u306A\u304E\u308C","\u3057\u306A\u3082\u306E","\u3057\u306A\u3093","\u3057\u306D\u307E","\u3057\u306D\u3093","\u3057\u306E\u3050","\u3057\u306E\u3076","\u3057\u306F\u3044","\u3057\u3070\u304B\u308A","\u3057\u306F\u3064","\u3057\u306F\u3089\u3044","\u3057\u306F\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304F","\u3058\u3076\u3093","\u3057\u3078\u3044","\u3057\u307B\u3046","\u3057\u307B\u3093","\u3057\u307E\u3046","\u3057\u307E\u308B","\u3057\u307F\u3093","\u3057\u3080\u3051\u308B","\u3058\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308B","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304A\u3093","\u3058\u3083\u304C\u3044\u3082","\u3057\u3084\u304F\u3057\u3087","\u3057\u3083\u304F\u307B\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3056\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305B\u3093","\u3057\u3083\u305D\u3046","\u3057\u3083\u305F\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304D\u3093","\u3058\u3083\u307E","\u3057\u3083\u308A\u3093","\u3057\u3083\u308C\u3044","\u3058\u3086\u3046","\u3058\u3085\u3046\u3057\u3087","\u3057\u3085\u304F\u306F\u304F","\u3058\u3085\u3057\u3093","\u3057\u3085\u3063\u305B\u304D","\u3057\u3085\u307F","\u3057\u3085\u3089\u3070","\u3058\u3085\u3093\u3070\u3093","\u3057\u3087\u3046\u304B\u3044","\u3057\u3087\u304F\u305F\u304F","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3069\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305B\u308B","\u3057\u3089\u3079\u308B","\u3057\u3093\u304B","\u3057\u3093\u3053\u3046","\u3058\u3093\u3058\u3083","\u3057\u3093\u305B\u3044\u3058","\u3057\u3093\u3061\u304F","\u3057\u3093\u308A\u3093","\u3059\u3042\u3052","\u3059\u3042\u3057","\u3059\u3042\u306A","\u305A\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304B","\u3059\u3044\u3068\u3046","\u305A\u3044\u3076\u3093","\u3059\u3044\u3088\u3046\u3073","\u3059\u3046\u304C\u304F","\u3059\u3046\u3058\u3064","\u3059\u3046\u305B\u3093","\u3059\u304A\u3069\u308A","\u3059\u304D\u307E","\u3059\u304F\u3046","\u3059\u304F\u306A\u3044","\u3059\u3051\u308B","\u3059\u3054\u3044","\u3059\u3053\u3057","\u305A\u3055\u3093","\u3059\u305A\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308B","\u3059\u3063\u304B\u308A","\u305A\u3063\u3057\u308A","\u305A\u3063\u3068","\u3059\u3066\u304D","\u3059\u3066\u308B","\u3059\u306D\u308B","\u3059\u306E\u3053","\u3059\u306F\u3060","\u3059\u3070\u3089\u3057\u3044","\u305A\u3072\u3087\u3046","\u305A\u3076\u306C\u308C","\u3059\u3076\u308A","\u3059\u3075\u308C","\u3059\u3079\u3066","\u3059\u3079\u308B","\u305A\u307B\u3046","\u3059\u307C\u3093","\u3059\u307E\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304D","\u3059\u3089\u3059\u3089","\u3059\u308B\u3081","\u3059\u308C\u3061\u304C\u3046","\u3059\u308D\u3063\u3068","\u3059\u308F\u308B","\u3059\u3093\u305C\u3093","\u3059\u3093\u307D\u3046","\u305B\u3042\u3076\u3089","\u305B\u3044\u304B\u3064","\u305B\u3044\u3052\u3093","\u305B\u3044\u3058","\u305B\u3044\u3088\u3046","\u305B\u304A\u3046","\u305B\u304B\u3044\u304B\u3093","\u305B\u304D\u306B\u3093","\u305B\u304D\u3080","\u305B\u304D\u3086","\u305B\u304D\u3089\u3093\u3046\u3093","\u305B\u3051\u3093","\u305B\u3053\u3046","\u305B\u3059\u3058","\u305B\u305F\u3044","\u305B\u305F\u3051","\u305B\u3063\u304B\u304F","\u305B\u3063\u304D\u3083\u304F","\u305C\u3063\u304F","\u305B\u3063\u3051\u3093","\u305B\u3063\u3053\u3064","\u305B\u3063\u3055\u305F\u304F\u307E","\u305B\u3064\u305E\u304F","\u305B\u3064\u3060\u3093","\u305B\u3064\u3067\u3093","\u305B\u3063\u3071\u3093","\u305B\u3064\u3073","\u305B\u3064\u3076\u3093","\u305B\u3064\u3081\u3044","\u305B\u3064\u308A\u3064","\u305B\u306A\u304B","\u305B\u306E\u3073","\u305B\u306F\u3070","\u305B\u3073\u308D","\u305B\u307C\u306D","\u305B\u307E\u3044","\u305B\u307E\u308B","\u305B\u3081\u308B","\u305B\u3082\u305F\u308C","\u305B\u308A\u3075","\u305C\u3093\u3042\u304F","\u305B\u3093\u3044","\u305B\u3093\u3048\u3044","\u305B\u3093\u304B","\u305B\u3093\u304D\u3087","\u305B\u3093\u304F","\u305B\u3093\u3052\u3093","\u305C\u3093\u3054","\u305B\u3093\u3055\u3044","\u305B\u3093\u3057\u3085","\u305B\u3093\u3059\u3044","\u305B\u3093\u305B\u3044","\u305B\u3093\u305E","\u305B\u3093\u305F\u304F","\u305B\u3093\u3061\u3087\u3046","\u305B\u3093\u3066\u3044","\u305B\u3093\u3068\u3046","\u305B\u3093\u306C\u304D","\u305B\u3093\u306D\u3093","\u305B\u3093\u3071\u3044","\u305C\u3093\u3076","\u305C\u3093\u307D\u3046","\u305B\u3093\u3080","\u305B\u3093\u3081\u3093\u3058\u3087","\u305B\u3093\u3082\u3093","\u305B\u3093\u3084\u304F","\u305B\u3093\u3086\u3046","\u305B\u3093\u3088\u3046","\u305C\u3093\u3089","\u305C\u3093\u308A\u3083\u304F","\u305B\u3093\u308C\u3044","\u305B\u3093\u308D","\u305D\u3042\u304F","\u305D\u3044\u3068\u3052\u308B","\u305D\u3044\u306D","\u305D\u3046\u304C\u3093\u304D\u3087\u3046","\u305D\u3046\u304D","\u305D\u3046\u3054","\u305D\u3046\u3057\u3093","\u305D\u3046\u3060\u3093","\u305D\u3046\u306A\u3093","\u305D\u3046\u3073","\u305D\u3046\u3081\u3093","\u305D\u3046\u308A","\u305D\u3048\u3082\u306E","\u305D\u3048\u3093","\u305D\u304C\u3044","\u305D\u3052\u304D","\u305D\u3053\u3046","\u305D\u3053\u305D\u3053","\u305D\u3056\u3044","\u305D\u3057\u306A","\u305D\u305B\u3044","\u305D\u305B\u3093","\u305D\u305D\u3050","\u305D\u3060\u3066\u308B","\u305D\u3064\u3046","\u305D\u3064\u3048\u3093","\u305D\u3063\u304B\u3093","\u305D\u3064\u304E\u3087\u3046","\u305D\u3063\u3051\u3064","\u305D\u3063\u3053\u3046","\u305D\u3063\u305B\u3093","\u305D\u3063\u3068","\u305D\u3068\u304C\u308F","\u305D\u3068\u3065\u3089","\u305D\u306A\u3048\u308B","\u305D\u306A\u305F","\u305D\u3075\u307C","\u305D\u307C\u304F","\u305D\u307C\u308D","\u305D\u307E\u3064","\u305D\u307E\u308B","\u305D\u3080\u304F","\u305D\u3080\u308A\u3048","\u305D\u3081\u308B","\u305D\u3082\u305D\u3082","\u305D\u3088\u304B\u305C","\u305D\u3089\u307E\u3081","\u305D\u308D\u3046","\u305D\u3093\u304B\u3044","\u305D\u3093\u3051\u3044","\u305D\u3093\u3056\u3044","\u305D\u3093\u3057\u3064","\u305D\u3093\u305E\u304F","\u305D\u3093\u3061\u3087\u3046","\u305E\u3093\u3073","\u305E\u3093\u3076\u3093","\u305D\u3093\u307F\u3093","\u305F\u3042\u3044","\u305F\u3044\u3044\u3093","\u305F\u3044\u3046\u3093","\u305F\u3044\u3048\u304D","\u305F\u3044\u304A\u3046","\u3060\u3044\u304C\u304F","\u305F\u3044\u304D","\u305F\u3044\u3050\u3046","\u305F\u3044\u3051\u3093","\u305F\u3044\u3053","\u305F\u3044\u3056\u3044","\u3060\u3044\u3058\u3087\u3046\u3076","\u3060\u3044\u3059\u304D","\u305F\u3044\u305B\u3064","\u305F\u3044\u305D\u3046","\u3060\u3044\u305F\u3044","\u305F\u3044\u3061\u3087\u3046","\u305F\u3044\u3066\u3044","\u3060\u3044\u3069\u3053\u308D","\u305F\u3044\u306A\u3044","\u305F\u3044\u306D\u3064","\u305F\u3044\u306E\u3046","\u305F\u3044\u306F\u3093","\u3060\u3044\u3072\u3087\u3046","\u305F\u3044\u3075\u3046","\u305F\u3044\u3078\u3093","\u305F\u3044\u307B","\u305F\u3044\u307E\u3064\u3070\u306A","\u305F\u3044\u307F\u3093\u3050","\u305F\u3044\u3080","\u305F\u3044\u3081\u3093","\u305F\u3044\u3084\u304D","\u305F\u3044\u3088\u3046","\u305F\u3044\u3089","\u305F\u3044\u308A\u3087\u304F","\u305F\u3044\u308B","\u305F\u3044\u308F\u3093","\u305F\u3046\u3048","\u305F\u3048\u308B","\u305F\u304A\u3059","\u305F\u304A\u308B","\u305F\u304A\u308C\u308B","\u305F\u304B\u3044","\u305F\u304B\u306D","\u305F\u304D\u3073","\u305F\u304F\u3055\u3093","\u305F\u3053\u304F","\u305F\u3053\u3084\u304D","\u305F\u3055\u3044","\u305F\u3057\u3056\u3093","\u3060\u3058\u3083\u308C","\u305F\u3059\u3051\u308B","\u305F\u305A\u3055\u308F\u308B","\u305F\u305D\u304C\u308C","\u305F\u305F\u304B\u3046","\u305F\u305F\u304F","\u305F\u3060\u3057\u3044","\u305F\u305F\u307F","\u305F\u3061\u3070\u306A","\u3060\u3063\u304B\u3044","\u3060\u3063\u304D\u3083\u304F","\u3060\u3063\u3053","\u3060\u3063\u3057\u3085\u3064","\u3060\u3063\u305F\u3044","\u305F\u3066\u308B","\u305F\u3068\u3048\u308B","\u305F\u306A\u3070\u305F","\u305F\u306B\u3093","\u305F\u306C\u304D","\u305F\u306E\u3057\u307F","\u305F\u306F\u3064","\u305F\u3076\u3093","\u305F\u3079\u308B","\u305F\u307C\u3046","\u305F\u307E\u3054","\u305F\u307E\u308B","\u3060\u3080\u308B","\u305F\u3081\u3044\u304D","\u305F\u3081\u3059","\u305F\u3081\u308B","\u305F\u3082\u3064","\u305F\u3084\u3059\u3044","\u305F\u3088\u308B","\u305F\u3089\u3059","\u305F\u308A\u304D\u307B\u3093\u304C\u3093","\u305F\u308A\u3087\u3046","\u305F\u308A\u308B","\u305F\u308B\u3068","\u305F\u308C\u308B","\u305F\u308C\u3093\u3068","\u305F\u308D\u3063\u3068","\u305F\u308F\u3080\u308C\u308B","\u3060\u3093\u3042\u3064","\u305F\u3093\u3044","\u305F\u3093\u304A\u3093","\u305F\u3093\u304B","\u305F\u3093\u304D","\u305F\u3093\u3051\u3093","\u305F\u3093\u3054","\u305F\u3093\u3055\u3093","\u305F\u3093\u3058\u3087\u3046\u3073","\u3060\u3093\u305B\u3044","\u305F\u3093\u305D\u304F","\u305F\u3093\u305F\u3044","\u3060\u3093\u3061","\u305F\u3093\u3066\u3044","\u305F\u3093\u3068\u3046","\u3060\u3093\u306A","\u305F\u3093\u306B\u3093","\u3060\u3093\u306D\u3064","\u305F\u3093\u306E\u3046","\u305F\u3093\u3074\u3093","\u3060\u3093\u307C\u3046","\u305F\u3093\u307E\u3064","\u305F\u3093\u3081\u3044","\u3060\u3093\u308C\u3064","\u3060\u3093\u308D","\u3060\u3093\u308F","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304D","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304B\u3044","\u3061\u304B\u3089","\u3061\u304D\u3085\u3046","\u3061\u304D\u3093","\u3061\u3051\u3044\u305A","\u3061\u3051\u3093","\u3061\u3053\u304F","\u3061\u3055\u3044","\u3061\u3057\u304D","\u3061\u3057\u308A\u3087\u3046","\u3061\u305B\u3044","\u3061\u305D\u3046","\u3061\u305F\u3044","\u3061\u305F\u3093","\u3061\u3061\u304A\u3084","\u3061\u3064\u3058\u3087","\u3061\u3066\u304D","\u3061\u3066\u3093","\u3061\u306C\u304D","\u3061\u306C\u308A","\u3061\u306E\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305B\u3093","\u3061\u307B\u3046","\u3061\u307E\u305F","\u3061\u307F\u3064","\u3061\u307F\u3069\u308D","\u3061\u3081\u3044\u3069","\u3061\u3083\u3093\u3053\u306A\u3079","\u3061\u3085\u3046\u3044","\u3061\u3086\u308A\u3087\u304F","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304F\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307F","\u3061\u308A\u304C\u307F","\u3061\u308A\u3087\u3046","\u3061\u308B\u3069","\u3061\u308F\u308F","\u3061\u3093\u305F\u3044","\u3061\u3093\u3082\u304F","\u3064\u3044\u304B","\u3064\u3044\u305F\u3061","\u3064\u3046\u304B","\u3064\u3046\u3058\u3087\u3046","\u3064\u3046\u306F\u3093","\u3064\u3046\u308F","\u3064\u304B\u3046","\u3064\u304B\u308C\u308B","\u3064\u304F\u306D","\u3064\u304F\u308B","\u3064\u3051\u306D","\u3064\u3051\u308B","\u3064\u3054\u3046","\u3064\u305F\u3048\u308B","\u3064\u3065\u304F","\u3064\u3064\u3058","\u3064\u3064\u3080","\u3064\u3068\u3081\u308B","\u3064\u306A\u304C\u308B","\u3064\u306A\u307F","\u3064\u306D\u3065\u306D","\u3064\u306E\u308B","\u3064\u3076\u3059","\u3064\u307E\u3089\u306A\u3044","\u3064\u307E\u308B","\u3064\u307F\u304D","\u3064\u3081\u305F\u3044","\u3064\u3082\u308A","\u3064\u3082\u308B","\u3064\u3088\u3044","\u3064\u308B\u307C","\u3064\u308B\u307F\u304F","\u3064\u308F\u3082\u306E","\u3064\u308F\u308A","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307F","\u3066\u3044\u304A\u3093","\u3066\u3044\u304B","\u3066\u3044\u304D","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304F","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305B\u3044","\u3066\u3044\u305F\u3044","\u3066\u3044\u3069","\u3066\u3044\u306D\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307C\u3046","\u3066\u3046\u3061","\u3066\u304A\u304F\u308C","\u3066\u304D\u3068\u3046","\u3066\u304F\u3073","\u3067\u3053\u307C\u3053","\u3066\u3055\u304E\u3087\u3046","\u3066\u3055\u3052","\u3066\u3059\u308A","\u3066\u305D\u3046","\u3066\u3061\u304C\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304C\u304F","\u3066\u3064\u3065\u304D","\u3067\u3063\u3071","\u3066\u3064\u307C\u3046","\u3066\u3064\u3084","\u3067\u306C\u304B\u3048","\u3066\u306C\u304D","\u3066\u306C\u3050\u3044","\u3066\u306E\u3072\u3089","\u3066\u306F\u3044","\u3066\u3076\u304F\u308D","\u3066\u3075\u3060","\u3066\u307B\u3069\u304D","\u3066\u307B\u3093","\u3066\u307E\u3048","\u3066\u307E\u304D\u305A\u3057","\u3066\u307F\u3058\u304B","\u3066\u307F\u3084\u3052","\u3066\u3089\u3059","\u3066\u308C\u3073","\u3066\u308F\u3051","\u3066\u308F\u305F\u3057","\u3067\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304B\u3044","\u3066\u3093\u304D","\u3066\u3093\u3050","\u3066\u3093\u3051\u3093","\u3066\u3093\u3054\u304F","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3067\u3093\u3061","\u3066\u3093\u3066\u304D","\u3066\u3093\u3068\u3046","\u3066\u3093\u306A\u3044","\u3066\u3093\u3077\u3089","\u3066\u3093\u307C\u3046\u3060\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304B\u3044","\u3067\u3093\u308A\u3087\u304F","\u3067\u3093\u308F","\u3069\u3042\u3044","\u3068\u3044\u308C","\u3069\u3046\u304B\u3093","\u3068\u3046\u304D\u3085\u3046","\u3069\u3046\u3050","\u3068\u3046\u3057","\u3068\u3046\u3080\u304E","\u3068\u304A\u3044","\u3068\u304A\u304B","\u3068\u304A\u304F","\u3068\u304A\u3059","\u3068\u304A\u308B","\u3068\u304B\u3044","\u3068\u304B\u3059","\u3068\u304D\u304A\u308A","\u3068\u304D\u3069\u304D","\u3068\u304F\u3044","\u3068\u304F\u3057\u3085\u3046","\u3068\u304F\u3066\u3093","\u3068\u304F\u306B","\u3068\u304F\u3079\u3064","\u3068\u3051\u3044","\u3068\u3051\u308B","\u3068\u3053\u3084","\u3068\u3055\u304B","\u3068\u3057\u3087\u304B\u3093","\u3068\u305D\u3046","\u3068\u305F\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304D\u3085\u3046","\u3068\u3063\u304F\u3093","\u3068\u3064\u305C\u3093","\u3068\u3064\u306B\u3085\u3046","\u3068\u3069\u3051\u308B","\u3068\u3068\u306E\u3048\u308B","\u3068\u306A\u3044","\u3068\u306A\u3048\u308B","\u3068\u306A\u308A","\u3068\u306E\u3055\u307E","\u3068\u3070\u3059","\u3069\u3076\u304C\u308F","\u3068\u307B\u3046","\u3068\u307E\u308B","\u3068\u3081\u308B","\u3068\u3082\u3060\u3061","\u3068\u3082\u308B","\u3069\u3088\u3046\u3073","\u3068\u3089\u3048\u308B","\u3068\u3093\u304B\u3064","\u3069\u3093\u3076\u308A","\u306A\u3044\u304B\u304F","\u306A\u3044\u3053\u3046","\u306A\u3044\u3057\u3087","\u306A\u3044\u3059","\u306A\u3044\u305B\u3093","\u306A\u3044\u305D\u3046","\u306A\u304A\u3059","\u306A\u304C\u3044","\u306A\u304F\u3059","\u306A\u3052\u308B","\u306A\u3053\u3046\u3069","\u306A\u3055\u3051","\u306A\u305F\u3067\u3053\u3053","\u306A\u3063\u3068\u3046","\u306A\u3064\u3084\u3059\u307F","\u306A\u306A\u304A\u3057","\u306A\u306B\u3054\u3068","\u306A\u306B\u3082\u306E","\u306A\u306B\u308F","\u306A\u306E\u304B","\u306A\u3075\u3060","\u306A\u307E\u3044\u304D","\u306A\u307E\u3048","\u306A\u307E\u307F","\u306A\u307F\u3060","\u306A\u3081\u3089\u304B","\u306A\u3081\u308B","\u306A\u3084\u3080","\u306A\u3089\u3046","\u306A\u3089\u3073","\u306A\u3089\u3076","\u306A\u308C\u308B","\u306A\u308F\u3068\u3073","\u306A\u308F\u3070\u308A","\u306B\u3042\u3046","\u306B\u3044\u304C\u305F","\u306B\u3046\u3051","\u306B\u304A\u3044","\u306B\u304B\u3044","\u306B\u304C\u3066","\u306B\u304D\u3073","\u306B\u304F\u3057\u307F","\u306B\u304F\u307E\u3093","\u306B\u3052\u308B","\u306B\u3055\u3093\u304B\u305F\u3093\u305D","\u306B\u3057\u304D","\u306B\u305B\u3082\u306E","\u306B\u3061\u3058\u3087\u3046","\u306B\u3061\u3088\u3046\u3073","\u306B\u3063\u304B","\u306B\u3063\u304D","\u306B\u3063\u3051\u3044","\u306B\u3063\u3053\u3046","\u306B\u3063\u3055\u3093","\u306B\u3063\u3057\u3087\u304F","\u306B\u3063\u3059\u3046","\u306B\u3063\u305B\u304D","\u306B\u3063\u3066\u3044","\u306B\u306A\u3046","\u306B\u307B\u3093","\u306B\u307E\u3081","\u306B\u3082\u3064","\u306B\u3084\u308A","\u306B\u3085\u3046\u3044\u3093","\u306B\u308A\u3093\u3057\u3083","\u306B\u308F\u3068\u308A","\u306B\u3093\u3044","\u306B\u3093\u304B","\u306B\u3093\u304D","\u306B\u3093\u3052\u3093","\u306B\u3093\u3057\u304D","\u306B\u3093\u305A\u3046","\u306B\u3093\u305D\u3046","\u306B\u3093\u305F\u3044","\u306B\u3093\u3061","\u306B\u3093\u3066\u3044","\u306B\u3093\u306B\u304F","\u306B\u3093\u3077","\u306B\u3093\u307E\u308A","\u306B\u3093\u3080","\u306B\u3093\u3081\u3044","\u306B\u3093\u3088\u3046","\u306C\u3044\u304F\u304E","\u306C\u304B\u3059","\u306C\u3050\u3044\u3068\u308B","\u306C\u3050\u3046","\u306C\u304F\u3082\u308A","\u306C\u3059\u3080","\u306C\u307E\u3048\u3073","\u306C\u3081\u308A","\u306C\u3089\u3059","\u306C\u3093\u3061\u3083\u304F","\u306D\u3042\u3052","\u306D\u3044\u304D","\u306D\u3044\u308B","\u306D\u3044\u308D","\u306D\u3050\u305B","\u306D\u304F\u305F\u3044","\u306D\u304F\u3089","\u306D\u3053\u305C","\u306D\u3053\u3080","\u306D\u3055\u3052","\u306D\u3059\u3054\u3059","\u306D\u305D\u3079\u308B","\u306D\u3060\u3093","\u306D\u3064\u3044","\u306D\u3063\u3057\u3093","\u306D\u3064\u305E\u3046","\u306D\u3063\u305F\u3044\u304E\u3087","\u306D\u3076\u305D\u304F","\u306D\u3075\u3060","\u306D\u307C\u3046","\u306D\u307B\u308A\u306F\u307B\u308A","\u306D\u307E\u304D","\u306D\u307E\u308F\u3057","\u306D\u307F\u307F","\u306D\u3080\u3044","\u306D\u3080\u305F\u3044","\u306D\u3082\u3068","\u306D\u3089\u3046","\u306D\u308F\u3056","\u306D\u3093\u3044\u308A","\u306D\u3093\u304A\u3057","\u306D\u3093\u304B\u3093","\u306D\u3093\u304D\u3093","\u306D\u3093\u3050","\u306D\u3093\u3056","\u306D\u3093\u3057","\u306D\u3093\u3061\u3083\u304F","\u306D\u3093\u3069","\u306D\u3093\u3074","\u306D\u3093\u3076\u3064","\u306D\u3093\u307E\u3064","\u306D\u3093\u308A\u3087\u3046","\u306D\u3093\u308C\u3044","\u306E\u3044\u305A","\u306E\u304A\u3065\u307E","\u306E\u304C\u3059","\u306E\u304D\u306A\u307F","\u306E\u3053\u304E\u308A","\u306E\u3053\u3059","\u306E\u3053\u308B","\u306E\u305B\u308B","\u306E\u305E\u304F","\u306E\u305E\u3080","\u306E\u305F\u307E\u3046","\u306E\u3061\u307B\u3069","\u306E\u3063\u304F","\u306E\u3070\u3059","\u306E\u306F\u3089","\u306E\u3079\u308B","\u306E\u307C\u308B","\u306E\u307F\u3082\u306E","\u306E\u3084\u307E","\u306E\u3089\u3044\u306C","\u306E\u3089\u306D\u3053","\u306E\u308A\u3082\u306E","\u306E\u308A\u3086\u304D","\u306E\u308C\u3093","\u306E\u3093\u304D","\u3070\u3042\u3044","\u306F\u3042\u304F","\u3070\u3042\u3055\u3093","\u3070\u3044\u304B","\u3070\u3044\u304F","\u306F\u3044\u3051\u3093","\u306F\u3044\u3054","\u306F\u3044\u3057\u3093","\u306F\u3044\u3059\u3044","\u306F\u3044\u305B\u3093","\u306F\u3044\u305D\u3046","\u306F\u3044\u3061","\u3070\u3044\u3070\u3044","\u306F\u3044\u308C\u3064","\u306F\u3048\u308B","\u306F\u304A\u308B","\u306F\u304B\u3044","\u3070\u304B\u308A","\u306F\u304B\u308B","\u306F\u304F\u3057\u3085","\u306F\u3051\u3093","\u306F\u3053\u3076","\u306F\u3055\u307F","\u306F\u3055\u3093","\u306F\u3057\u3054","\u3070\u3057\u3087","\u306F\u3057\u308B","\u306F\u305B\u308B","\u3071\u305D\u3053\u3093","\u306F\u305D\u3093","\u306F\u305F\u3093","\u306F\u3061\u307F\u3064","\u306F\u3064\u304A\u3093","\u306F\u3063\u304B\u304F","\u306F\u3065\u304D","\u306F\u3063\u304D\u308A","\u306F\u3063\u304F\u3064","\u306F\u3063\u3051\u3093","\u306F\u3063\u3053\u3046","\u306F\u3063\u3055\u3093","\u306F\u3063\u3057\u3093","\u306F\u3063\u305F\u3064","\u306F\u3063\u3061\u3085\u3046","\u306F\u3063\u3066\u3093","\u306F\u3063\u3074\u3087\u3046","\u306F\u3063\u307D\u3046","\u306F\u306A\u3059","\u306F\u306A\u3073","\u306F\u306B\u304B\u3080","\u306F\u3076\u3089\u3057","\u306F\u307F\u304C\u304D","\u306F\u3080\u304B\u3046","\u306F\u3081\u3064","\u306F\u3084\u3044","\u306F\u3084\u3057","\u306F\u3089\u3046","\u306F\u308D\u3046\u3043\u3093","\u306F\u308F\u3044","\u306F\u3093\u3044","\u306F\u3093\u3048\u3044","\u306F\u3093\u304A\u3093","\u306F\u3093\u304B\u304F","\u306F\u3093\u304D\u3087\u3046","\u3070\u3093\u3050\u307F","\u306F\u3093\u3053","\u306F\u3093\u3057\u3083","\u306F\u3093\u3059\u3046","\u306F\u3093\u3060\u3093","\u3071\u3093\u3061","\u3071\u3093\u3064","\u306F\u3093\u3066\u3044","\u306F\u3093\u3068\u3057","\u306F\u3093\u306E\u3046","\u306F\u3093\u3071","\u306F\u3093\u3076\u3093","\u306F\u3093\u307A\u3093","\u306F\u3093\u307C\u3046\u304D","\u306F\u3093\u3081\u3044","\u306F\u3093\u3089\u3093","\u306F\u3093\u308D\u3093","\u3072\u3044\u304D","\u3072\u3046\u3093","\u3072\u3048\u308B","\u3072\u304B\u304F","\u3072\u304B\u308A","\u3072\u304B\u308B","\u3072\u304B\u3093","\u3072\u304F\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304D","\u3072\u3053\u304F","\u3072\u3055\u3044","\u3072\u3055\u3057\u3076\u308A","\u3072\u3055\u3093","\u3073\u3058\u3085\u3064\u304B\u3093","\u3072\u3057\u3087","\u3072\u305D\u304B","\u3072\u305D\u3080","\u3072\u305F\u3080\u304D","\u3072\u3060\u308A","\u3072\u305F\u308B","\u3072\u3064\u304E","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3058\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305C\u3093","\u3074\u3063\u305F\u308A","\u3074\u3063\u3061\u308A","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3054\u307F","\u3072\u306A\u307E\u3064\u308A","\u3072\u306A\u3093","\u3072\u306D\u308B","\u3072\u306F\u3093","\u3072\u3073\u304F","\u3072\u3072\u3087\u3046","\u3072\u307B\u3046","\u3072\u307E\u308F\u308A","\u3072\u307E\u3093","\u3072\u307F\u3064","\u3072\u3081\u3044","\u3072\u3081\u3058\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3073\u3087\u3046\u304D","\u3072\u3089\u304C\u306A","\u3072\u3089\u304F","\u3072\u308A\u3064","\u3072\u308A\u3087\u3046","\u3072\u308B\u307E","\u3072\u308B\u3084\u3059\u307F","\u3072\u308C\u3044","\u3072\u308D\u3044","\u3072\u308D\u3046","\u3072\u308D\u304D","\u3072\u308D\u3086\u304D","\u3072\u3093\u304B\u304F","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305D\u3046","\u3074\u3093\u3061","\u3072\u3093\u3071\u3093","\u3073\u3093\u307C\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305B\u3093","\u3077\u3046\u305F\u308D\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308B","\u3075\u304A\u3093","\u3075\u304B\u3044","\u3075\u304D\u3093","\u3075\u304F\u3056\u3064","\u3075\u304F\u3076\u304F\u308D","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304E","\u3075\u3058\u307F","\u3075\u3059\u307E","\u3075\u305B\u3044","\u3075\u305B\u3050","\u3075\u305D\u304F","\u3076\u305F\u306B\u304F","\u3075\u305F\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304B","\u3075\u3063\u304B\u3064","\u3075\u3063\u304D","\u3075\u3063\u3053\u304F","\u3076\u3069\u3046","\u3075\u3068\u308B","\u3075\u3068\u3093","\u3075\u306E\u3046","\u3075\u306F\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307E\u3093","\u3075\u307F\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308A\u3053","\u3075\u308A\u308B","\u3075\u308B\u3044","\u3075\u3093\u3044\u304D","\u3076\u3093\u304C\u304F","\u3076\u3093\u3050","\u3075\u3093\u3057\u3064","\u3076\u3093\u305B\u304D","\u3075\u3093\u305D\u3046","\u3076\u3093\u307D\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304A\u3093","\u3078\u3044\u304C\u3044","\u3078\u3044\u304D","\u3078\u3044\u3052\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305B\u3064","\u3078\u3044\u305D","\u3078\u3044\u305F\u304F","\u3078\u3044\u3066\u3093","\u3078\u3044\u306D\u3064","\u3078\u3044\u308F","\u3078\u304D\u304C","\u3078\u3053\u3080","\u3079\u306B\u3044\u308D","\u3079\u306B\u3057\u3087\u3046\u304C","\u3078\u3089\u3059","\u3078\u3093\u304B\u3093","\u3079\u3093\u304D\u3087\u3046","\u3079\u3093\u3054\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305F\u3044","\u3079\u3093\u308A","\u307B\u3042\u3093","\u307B\u3044\u304F","\u307C\u3046\u304E\u3087","\u307B\u3046\u3053\u304F","\u307B\u3046\u305D\u3046","\u307B\u3046\u307B\u3046","\u307B\u3046\u3082\u3093","\u307B\u3046\u308A\u3064","\u307B\u3048\u308B","\u307B\u304A\u3093","\u307B\u304B\u3093","\u307B\u304D\u3087\u3046","\u307C\u304D\u3093","\u307B\u304F\u308D","\u307B\u3051\u3064","\u307B\u3051\u3093","\u307B\u3053\u3046","\u307B\u3053\u308B","\u307B\u3057\u3044","\u307B\u3057\u3064","\u307B\u3057\u3085","\u307B\u3057\u3087\u3046","\u307B\u305B\u3044","\u307B\u305D\u3044","\u307B\u305D\u304F","\u307B\u305F\u3066","\u307B\u305F\u308B","\u307D\u3061\u3076\u304F\u308D","\u307B\u3063\u304D\u3087\u304F","\u307B\u3063\u3055","\u307B\u3063\u305F\u3093","\u307B\u3068\u3093\u3069","\u307B\u3081\u308B","\u307B\u3093\u3044","\u307B\u3093\u304D","\u307B\u3093\u3051","\u307B\u3093\u3057\u3064","\u307B\u3093\u3084\u304F","\u307E\u3044\u306B\u3061","\u307E\u304B\u3044","\u307E\u304B\u305B\u308B","\u307E\u304C\u308B","\u307E\u3051\u308B","\u307E\u3053\u3068","\u307E\u3055\u3064","\u307E\u3058\u3081","\u307E\u3059\u304F","\u307E\u305C\u308B","\u307E\u3064\u308A","\u307E\u3068\u3081","\u307E\u306A\u3076","\u307E\u306C\u3051","\u307E\u306D\u304F","\u307E\u307B\u3046","\u307E\u3082\u308B","\u307E\u3086\u3052","\u307E\u3088\u3046","\u307E\u308D\u3084\u304B","\u307E\u308F\u3059","\u307E\u308F\u308A","\u307E\u308F\u308B","\u307E\u3093\u304C","\u307E\u3093\u304D\u3064","\u307E\u3093\u305E\u304F","\u307E\u3093\u306A\u304B","\u307F\u3044\u3089","\u307F\u3046\u3061","\u307F\u3048\u308B","\u307F\u304C\u304F","\u307F\u304B\u305F","\u307F\u304B\u3093","\u307F\u3051\u3093","\u307F\u3053\u3093","\u307F\u3058\u304B\u3044","\u307F\u3059\u3044","\u307F\u3059\u3048\u308B","\u307F\u305B\u308B","\u307F\u3063\u304B","\u307F\u3064\u304B\u308B","\u307F\u3064\u3051\u308B","\u307F\u3066\u3044","\u307F\u3068\u3081\u308B","\u307F\u306A\u3068","\u307F\u306A\u307F\u304B\u3055\u3044","\u307F\u306D\u3089\u308B","\u307F\u306E\u3046","\u307F\u306E\u304C\u3059","\u307F\u307B\u3093","\u307F\u3082\u3068","\u307F\u3084\u3052","\u307F\u3089\u3044","\u307F\u308A\u3087\u304F","\u307F\u308F\u304F","\u307F\u3093\u304B","\u307F\u3093\u305E\u304F","\u3080\u3044\u304B","\u3080\u3048\u304D","\u3080\u3048\u3093","\u3080\u304B\u3044","\u3080\u304B\u3046","\u3080\u304B\u3048","\u3080\u304B\u3057","\u3080\u304E\u3061\u3083","\u3080\u3051\u308B","\u3080\u3052\u3093","\u3080\u3055\u307C\u308B","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u3070","\u3080\u3058\u3085\u3093","\u3080\u3057\u308D","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3076","\u3080\u3059\u3081","\u3080\u305B\u308B","\u3080\u305B\u3093","\u3080\u3061\u3085\u3046","\u3080\u306A\u3057\u3044","\u3080\u306E\u3046","\u3080\u3084\u307F","\u3080\u3088\u3046","\u3080\u3089\u3055\u304D","\u3080\u308A\u3087\u3046","\u3080\u308D\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304B\u304F","\u3081\u3044\u304D\u3087\u304F","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305D\u3046","\u3081\u3044\u3076\u3064","\u3081\u3044\u308C\u3044","\u3081\u3044\u308F\u304F","\u3081\u3050\u307E\u308C\u308B","\u3081\u3056\u3059","\u3081\u3057\u305F","\u3081\u305A\u3089\u3057\u3044","\u3081\u3060\u3064","\u3081\u307E\u3044","\u3081\u3084\u3059","\u3081\u3093\u304D\u3087","\u3081\u3093\u305B\u304D","\u3081\u3093\u3069\u3046","\u3082\u3046\u3057\u3042\u3052\u308B","\u3082\u3046\u3069\u3046\u3051\u3093","\u3082\u3048\u308B","\u3082\u304F\u3057","\u3082\u304F\u3066\u304D","\u3082\u304F\u3088\u3046\u3073","\u3082\u3061\u308D\u3093","\u3082\u3069\u308B","\u3082\u3089\u3046","\u3082\u3093\u304F","\u3082\u3093\u3060\u3044","\u3084\u304A\u3084","\u3084\u3051\u308B","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305F\u308D\u3046","\u3084\u3059\u307F","\u3084\u305B\u308B","\u3084\u305D\u3046","\u3084\u305F\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u3071\u308A","\u3084\u3076\u308B","\u3084\u3081\u308B","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308F\u3089\u304B\u3044","\u3086\u3046\u304D","\u3086\u3046\u3073\u3093\u304D\u3087\u304F","\u3086\u3046\u3079","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305B\u3093","\u3086\u305D\u3046","\u3086\u305F\u304B","\u3086\u3061\u3083\u304F","\u3086\u3067\u308B","\u3086\u306B\u3085\u3046","\u3086\u3073\u308F","\u3086\u3089\u3044","\u3086\u308C\u308B","\u3088\u3046\u3044","\u3088\u3046\u304B","\u3088\u3046\u304D\u3085\u3046","\u3088\u3046\u3058","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304B\u305C","\u3088\u304B\u3093","\u3088\u304D\u3093","\u3088\u304F\u305B\u3044","\u3088\u304F\u307C\u3046","\u3088\u3051\u3044","\u3088\u3054\u308C\u308B","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305D\u3046","\u3088\u305D\u304F","\u3088\u3063\u304B","\u3088\u3066\u3044","\u3088\u3069\u304C\u308F\u304F","\u3088\u306D\u3064","\u3088\u3084\u304F","\u3088\u3086\u3046","\u3088\u308D\u3053\u3076","\u3088\u308D\u3057\u3044","\u3089\u3044\u3046","\u3089\u304F\u304C\u304D","\u3089\u304F\u3054","\u3089\u304F\u3055\u3064","\u3089\u304F\u3060","\u3089\u3057\u3093\u3070\u3093","\u3089\u305B\u3093","\u3089\u305E\u304F","\u3089\u305F\u3044","\u3089\u3063\u304B","\u3089\u308C\u3064","\u308A\u3048\u304D","\u308A\u304B\u3044","\u308A\u304D\u3055\u304F","\u308A\u304D\u305B\u3064","\u308A\u304F\u3050\u3093","\u308A\u304F\u3064","\u308A\u3051\u3093","\u308A\u3053\u3046","\u308A\u305B\u3044","\u308A\u305D\u3046","\u308A\u305D\u304F","\u308A\u3066\u3093","\u308A\u306D\u3093","\u308A\u3086\u3046","\u308A\u3085\u3046\u304C\u304F","\u308A\u3088\u3046","\u308A\u3087\u3046\u308A","\u308A\u3087\u304B\u3093","\u308A\u3087\u304F\u3061\u3083","\u308A\u3087\u3053\u3046","\u308A\u308A\u304F","\u308A\u308C\u304D","\u308A\u308D\u3093","\u308A\u3093\u3054","\u308B\u3044\u3051\u3044","\u308B\u3044\u3055\u3044","\u308B\u3044\u3058","\u308B\u3044\u305B\u304D","\u308B\u3059\u3070\u3093","\u308B\u308A\u304C\u308F\u3089","\u308C\u3044\u304B\u3093","\u308C\u3044\u304E","\u308C\u3044\u305B\u3044","\u308C\u3044\u305E\u3046\u3053","\u308C\u3044\u3068\u3046","\u308C\u3044\u307C\u3046","\u308C\u304D\u3057","\u308C\u304D\u3060\u3044","\u308C\u3093\u3042\u3044","\u308C\u3093\u3051\u3044","\u308C\u3093\u3053\u3093","\u308C\u3093\u3055\u3044","\u308C\u3093\u3057\u3085\u3046","\u308C\u3093\u305E\u304F","\u308C\u3093\u3089\u304F","\u308D\u3046\u304B","\u308D\u3046\u3054","\u308D\u3046\u3058\u3093","\u308D\u3046\u305D\u304F","\u308D\u304F\u304C","\u308D\u3053\u3064","\u308D\u3058\u3046\u3089","\u308D\u3057\u3085\u3064","\u308D\u305B\u3093","\u308D\u3066\u3093","\u308D\u3081\u3093","\u308D\u308C\u3064","\u308D\u3093\u304E","\u308D\u3093\u3071","\u308D\u3093\u3076\u3093","\u308D\u3093\u308A","\u308F\u304B\u3059","\u308F\u304B\u3081","\u308F\u304B\u3084\u307E","\u308F\u304B\u308C\u308B","\u308F\u3057\u3064","\u308F\u3058\u307E\u3057","\u308F\u3059\u308C\u3082\u306E","\u308F\u3089\u3046","\u308F\u308C\u308B"];_e.space="\u3000";const U=["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"];U.space=" ";class z extends v{static{r(this,"Bip39")}constructor(e,t,n){super({mnemonic:e,seed:t,wordlist:n}),this.Wordlist=Se,this.es=U,this.jp=_e}setLang(e){switch(e){default:case"en":this.Wordlist=Se;break;case"es":this.Wordlist=U;break;case"jp":this.Wordlist=_e;break}}toBw(e){if(e||(e=new m),this.mnemonic){const t=Buffer.from(this.mnemonic);e.writeVarIntNum(t.length),e.write(t)}else e.writeVarIntNum(0);return this.seed?(e.writeVarIntNum(this.seed.length),e.write(this.seed)):e.writeVarIntNum(0),e}fromBr(e){const t=e.readVarIntNum();t>0&&(this.mnemonic=e.read(t).toString());const n=e.readVarIntNum();return n>0&&(this.seed=e.read(n)),this}fromRandom(e){if(e||(e=128),e%32!==0)throw new Error("bits must be multiple of 32");if(e<128)throw new Error("bits must be at least 128");const t=ge.getRandomBuffer(e/8);return this.entropy2Mnemonic(t),this.mnemonic2Seed(),this}static fromRandom(e){return new this().fromRandom(e)}async asyncFromRandom(e){e||(e=128);const t=ge.getRandomBuffer(e/8);let n=await G.asyncObjectMethod(this,"entropy2Mnemonic",[t]);const g=new z().fromFastBuffer(n.resbuf);return n=await G.asyncObjectMethod(g,"mnemonic2Seed",[]),this.fromFastBuffer(n.resbuf)}static asyncFromRandom(e){return new this().asyncFromRandom(e)}fromEntropy(e){return this.entropy2Mnemonic(e),this}static fromEntropy(e){return new this().fromEntropy(e)}async asyncFromEntropy(e){const t=await G.asyncObjectMethod(this,"fromEntropy",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromEntropy(e){return new this().asyncFromEntropy(e)}fromString(e){return this.mnemonic=e.trim(),this}toString(){return this.mnemonic}toSeed(e){return this.mnemonic2Seed(e),this.seed}async asyncToSeed(e){e===void 0&&(e="");const t=[e];return(await G.asyncObjectMethod(this,"toSeed",t)).resbuf}entropy2Mnemonic(e){if(!Buffer.isBuffer(e)||e.length<128/8)throw new Error("Entropy is less than 128 bits. It must be 128 bits or more.");const t=X.sha256(e);let n="";const g=e.length*8;for(let Z=0;Z<e.length;Z++)n=n+("00000000"+e[Z].toString(2)).slice(-8);let C=t[0].toString(2);if(C=("00000000"+C).slice(-8).slice(0,g/32),n=n+C,n.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+n.length);let W="";for(let Z=0;Z<n.length/11;Z++){W!==""&&(W=W+this.Wordlist.space);const pe=parseInt(n.slice(Z*11,(Z+1)*11),2);W=W+this.Wordlist[pe]}return this.mnemonic=W,this}check(){const t=this.mnemonic.split(this.Wordlist.space);let n="";for(let xe=0;xe<t.length;xe++){const ke=this.Wordlist.indexOf(t[xe]);if(ke<0)return!1;n=n+("00000000000"+ke.toString(2)).slice(-11)}if(n.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+n.length);const g=n.length/33,C=n.slice(-g),W=n.slice(0,n.length-g),Z=Buffer.alloc(W.length/8);for(let xe=0;xe<W.length/8;xe++)Z.writeUInt8(parseInt(n.slice(xe*8,(xe+1)*8),2),xe);let ue=X.sha256(Z)[0].toString(2);return ue=("00000000"+ue).slice(-8).slice(0,g),ue===C}mnemonic2Seed(e=""){let t=this.mnemonic;if(!this.check())throw new Error("Mnemonic does not pass the check - was the mnemonic typed incorrectly? Are there extra spaces?");if(typeof e!="string")throw new Error("passphrase must be a string or undefined");t=t.normalize("NFKD"),e=e.normalize("NFKD");const n=Buffer.from(t),g=Buffer.concat([Buffer.from("mnemonic"),Buffer.from(e)]);return this.seed=T.pbkdf2Sync(n,g,2048,64,"sha512"),this}isValid(e=""){let t;try{t=!!this.mnemonic2Seed(e)}catch{t=!1}return t}static isValid(e,t=""){return new z(e).isValid(t)}}class se extends v{static{r(this,"KeyPair")}constructor(e,t,n=ve){super({privKey:e,pubKey:t}),this.PrivKey=n}fromJSON(e){return e.privKey&&(this.privKey=this.PrivKey.fromJSON(e.privKey)),e.pubKey&&(this.pubKey=M.fromJSON(e.pubKey)),this}fromBr(e){const t=e.readUInt8();t>0&&(this.privKey=new this.PrivKey().fromFastBuffer(e.read(t)));const n=e.readUInt8();return n>0&&(this.pubKey=new M().fromFastBuffer(e.read(n))),this}toBw(e){if(e||(e=new m),this.privKey){const t=this.privKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);if(this.pubKey){const t=this.pubKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);return e}fromString(e){return this.fromJSON(JSON.parse(e))}toString(){return JSON.stringify(this.toJSON())}toPublic(){const e=new se().fromObject(this);return e.privKey=void 0,e}fromPrivKey(e){return this.privKey=e,this.pubKey=new M().fromPrivKey(e),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){return this.privKey=e,this.pubKey=await new M().asyncFromPrivKey(e),this}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new M().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.asyncFromPrivKey(this.privKey)}static asyncFromRandom(){return new this().asyncFromRandom()}}se.Mainnet=class extends se{constructor(I,e){super(I,e,ve.Mainnet)}},se.Testnet=class extends se{constructor(I,e){super(I,e,ve.Testnet)}};class de extends v{static{r(this,"Ecdsa")}constructor(e,t,n,g,C,W){super({sig:e,keyPair:t,hashBuf:n,k:g,endian:C,verified:W})}toJSON(){return{sig:this.sig?this.sig.toString():void 0,keyPair:this.keyPair?this.keyPair.toBuffer().toString("hex"):void 0,hashBuf:this.hashBuf?this.hashBuf.toString("hex"):void 0,k:this.k?this.k.toString():void 0,endian:this.endian,verified:this.verified}}fromJSON(e){return this.sig=e.sig?new he().fromString(e.sig):void 0,this.keyPair=e.keyPair?new se().fromBuffer(Buffer.from(e.keyPair,"hex")):void 0,this.hashBuf=e.hashBuf?Buffer.from(e.hashBuf,"hex"):void 0,this.k=e.k?new a().fromString(e.k):void 0,this.endian=e.endian,this.verified=e.verified,this}toBuffer(){const e=JSON.stringify(this.toJSON());return Buffer.from(e)}fromBuffer(e){const t=JSON.parse(e.toString());return this.fromJSON(t)}calcrecovery(){for(let e=0;e<4;e++){let t;this.sig.recovery=e;try{t=this.sig2PubKey()}catch{continue}if(t.point.eq(this.keyPair.pubKey.point)){const n=this.keyPair.pubKey.compressed;return this.sig.compressed=this.keyPair.pubKey.compressed===void 0?!0:n,this}}throw this.sig.recovery=void 0,new Error("Unable to find valid recovery factor")}async asyncCalcrecovery(){const e=await G.asyncObjectMethod(this,"calcrecovery",[]);return this.fromFastBuffer(e.resbuf)}static calcrecovery(e,t,n){return new de().fromObject({sig:e,keyPair:new se().fromObject({pubKey:t}),hashBuf:n}).calcrecovery().sig}static async asyncCalcrecovery(e,t,n){const g=await G.asyncClassMethod(de,"calcrecovery",[e,t,n]);return new he().fromFastBuffer(g.resbuf)}fromString(e){const t=JSON.parse(e);return t.hashBuf&&(this.hashBuf=Buffer.from(t.hashBuf,"hex")),t.keyPair&&(this.keyPair=new se().fromString(t.keyPair)),t.sig&&(this.sig=new he().fromString(t.sig)),t.k&&(this.k=new a(t.k,10)),this}randomK(){const e=Y.getN();let t;do t=new a().fromBuffer(ge.getRandomBuffer(32));while(!(t.lt(e)&&t.gt(0)));return this.k=t,this}deterministicK(e){let t=Buffer.alloc(32);t.fill(1);let n=Buffer.alloc(32);n.fill(0);const g=this.keyPair.privKey.bn.toBuffer({size:32});n=X.sha256Hmac(Buffer.concat([t,Buffer.from([0]),g,this.hashBuf]),n),t=X.sha256Hmac(t,n),n=X.sha256Hmac(Buffer.concat([t,Buffer.from([1]),g,this.hashBuf]),n),t=X.sha256Hmac(t,n),t=X.sha256Hmac(t,n);let C=new a().fromBuffer(t);const W=Y.getN();e===void 0&&(e=0);for(let Z=0;Z<e||!(C.lt(W)&&C.gt(0));Z++)n=X.sha256Hmac(Buffer.concat([t,Buffer.from([0])]),n),t=X.sha256Hmac(t,n),t=X.sha256Hmac(t,n),C=new a().fromBuffer(t);return this.k=C,this}sig2PubKey(){const e=this.sig.recovery;if(!(e===0||e===1||e===2||e===3))throw new Error("i must be equal to 0, 1, 2, or 3");const t=new a().fromBuffer(this.hashBuf),n=this.sig.r,g=this.sig.s,C=e&1,W=e>>1,Z=Y.getN(),pe=Y.getG(),ue=W?n.add(Z):n,xe=Y.fromX(C,ue);let ke="";try{xe.mul(Z)}catch(Ee){ke=Ee.message}if(ke!=="point mul out of range")throw new Error("nR is not a valid curve point");const Oe=t.neg().umod(Z),Fe=n.invm(Z),ce=xe.mul(g).add(pe.mul(Oe)).mul(Fe),le=new M(ce);return le.compressed=this.sig.compressed,le.validate(),le}async asyncSig2PubKey(){const e=await G.asyncObjectMethod(this,"sig2PubKey",[]);return M.fromFastBuffer(e.resbuf)}static sig2PubKey(e,t){return new de().fromObject({sig:e,hashBuf:t}).sig2PubKey()}static async asyncSig2PubKey(e,t){return await new de().fromObject({sig:e,hashBuf:t}).asyncSig2PubKey()}verifyStr(e=!0){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==32)return"hashBuf must be a 32 byte buffer";try{this.keyPair.pubKey.validate()}catch(xe){return"Invalid pubKey: "+xe}const t=this.sig.r,n=this.sig.s;if(!(t.gt(0)&&t.lt(Y.getN()))||!(n.gt(0)&&n.lt(Y.getN())))return"r and s not in range";if(e&&!this.sig.hasLowS())return"s is too high and does not satisfy low s contraint - see bip 62";const g=new a().fromBuffer(this.hashBuf,this.endian?{endian:this.endian}:void 0),C=Y.getN(),W=n.invm(C),Z=W.mul(g).mod(C),pe=W.mul(t).mod(C),ue=Y.getG().mulAdd(Z,this.keyPair.pubKey.point,pe);return ue.isInfinity()?"p is infinity":ue.getX().mod(C).cmp(t)!==0?"Invalid signature":!1}sign(){const e=this.endian==="little"?new w(this.hashBuf).readReverse():this.hashBuf,t=this.keyPair.privKey,n=t.bn;if(!e||!t||!n)throw new Error("invalid parameters");if(!Buffer.isBuffer(e)||e.length!==32)throw new Error("hashBuf must be a 32 byte buffer");const g=Y.getN(),C=Y.getG(),W=new a().fromBuffer(e);let Z=0,pe,ue,xe,ke;do(!this.k||Z>0)&&this.deterministicK(Z),Z++,pe=this.k,ue=C.mul(pe),xe=ue.getX().mod(g),ke=pe.invm(g).mul(W.add(n.mul(xe))).mod(g);while(xe.cmp(0)<=0||ke.cmp(0)<=0);return ke.gt(new a().fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(ke=Y.getN().sub(ke)),this.sig=he.fromObject({r:xe,s:ke,compressed:this.keyPair.pubKey.compressed}),this}async asyncSign(){const e=await G.asyncObjectMethod(this,"sign",[]);return this.fromFastBuffer(e.resbuf)}signRandomK(){return this.randomK(),this.sign()}toString(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),this.keyPair&&(e.keyPair=this.keyPair.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)}verify(e=!0){return this.verifyStr(e)?this.verified=!1:this.verified=!0,this}async asyncVerify(e=!0){const t=await G.asyncObjectMethod(this,"verify",[e]);return this.fromFastBuffer(t.resbuf)}static sign(e,t,n){return new de().fromObject({hashBuf:e,endian:n,keyPair:t}).sign().sig}static async asyncSign(e,t,n){const g=new de().fromObject({hashBuf:e,endian:n,keyPair:t});return await g.asyncSign(),g.sig}static verify(e,t,n,g,C=!0){return new de().fromObject({hashBuf:e,endian:g,sig:t,keyPair:new se().fromObject({pubKey:n})}).verify(C).verified}static async asyncVerify(e,t,n,g,C=!0){const W=new de().fromObject({hashBuf:e,endian:g,sig:t,keyPair:new se().fromObject({pubKey:n})});return await W.asyncVerify(C),W.verified}}class Me extends v{static{r(this,"Bsm")}constructor(e,t,n,g,C){super({messageBuf:e,keyPair:t,sig:n,address:g,verified:C})}static magicHash(e){if(!Buffer.isBuffer(e))throw new Error("messageBuf must be a buffer");const t=new m;t.writeVarIntNum(Me.magicBytes.length),t.write(Me.magicBytes),t.writeVarIntNum(e.length),t.write(e);const n=t.toBuffer();return X.sha256Sha256(n)}static async asyncMagicHash(e){const t=[e];return(await G.asyncClassMethod(Me,"magicHash",t)).resbuf}static sign(e,t){const n=new Me(e,t);return n.sign(),n.sig.toCompact().toString("base64")}static async asyncSign(e,t){const n=[e,t],g=await G.asyncClassMethod(Me,"sign",n);return JSON.parse(g.resbuf.toString())}static verify(e,t,n){const g=Buffer.from(t,"base64"),C=new Me;return C.messageBuf=e,C.sig=new he().fromCompact(g),C.address=n,C.verify().verified}static async asyncVerify(e,t,n){const g=[e,t,n],C=await G.asyncClassMethod(Me,"verify",g);return JSON.parse(C.resbuf.toString())}sign(){const e=Me.magicHash(this.messageBuf),t=new de().fromObject({hashBuf:e,keyPair:this.keyPair});return t.sign(),t.calcrecovery(),this.sig=t.sig,this}verify(){const e=Me.magicHash(this.messageBuf),t=new de;if(t.hashBuf=e,t.sig=this.sig,t.keyPair=new se,t.keyPair.pubKey=t.sig2PubKey(),!t.verify())return this.verified=!1,this;const n=new $().fromPubKey(t.keyPair.pubKey,void 0,this.sig.compressed);return A(n.hashBuf,this.address.hashBuf)?this.verified=!0:this.verified=!1,this}}Me.magicBytes=Buffer.from(`Bitcoin Signed Message:
8
- `);class Be extends v{static{r(this,"BlockHeader")}constructor(e,t,n,g,C,W){super({versionBytesNum:e,prevBlockHashBuf:t,merkleRootBuf:n,time:g,bits:C,nonce:W})}fromJSON(e){return this.fromObject({versionBytesNum:e.versionBytesNum,prevBlockHashBuf:Buffer.from(e.prevBlockHashBuf,"hex"),merkleRootBuf:Buffer.from(e.merkleRootBuf,"hex"),time:e.time,bits:e.bits,nonce:e.nonce}),this}toJSON(){return{versionBytesNum:this.versionBytesNum,prevBlockHashBuf:this.prevBlockHashBuf.toString("hex"),merkleRootBuf:this.merkleRootBuf.toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}}fromBr(e){return this.versionBytesNum=e.readUInt32LE(),this.prevBlockHashBuf=e.read(32),this.merkleRootBuf=e.read(32),this.time=e.readUInt32LE(),this.bits=e.readUInt32LE(),this.nonce=e.readUInt32LE(),this}toBw(e){return e||(e=new m),e.writeUInt32LE(this.versionBytesNum),e.write(this.prevBlockHashBuf),e.write(this.merkleRootBuf),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e}}class Re extends v{static{r(this,"Merkle")}constructor(e,t,n,g){super({hashBuf:e,buf:t,merkle1:n,merkle2:g})}hash(){if(this.hashBuf)return this.hashBuf;if(this.buf)return X.sha256Sha256(this.buf);const e=this.merkle1.hash(),t=this.merkle2.hash();return this.buf=Buffer.concat([e,t]),X.sha256Sha256(this.buf)}fromBuffers(e){if(e.length<1)throw new Error("buffers must have a length");e=e.slice();const t=Math.log2(e.length);if(!Number.isInteger(t)){const W=e[e.length-1];var n=Math.pow(2,Math.ceil(t));for(let Z=e.length;Z<n;Z++)e.push(W)}const g=e.slice(0,e.length/2),C=e.slice(e.length/2);return this.fromBufferArrays(g,C),this}static fromBuffers(e){return new this().fromBuffers(e)}fromBufferArrays(e,t){if(e.length===1)return this.merkle1=new Re(void 0,e[0]),this.merkle2=new Re(void 0,t[0]),this;const n=e.slice(0,e.length/2),g=e.slice(e.length/2);this.merkle1=new Re().fromBufferArrays(n,g);const C=t.slice(0,t.length/2),W=t.slice(t.length/2);return this.merkle2=new Re().fromBufferArrays(C,W),this}static fromBufferArrays(e,t){return new this().fromBufferArrays(e,t)}leavesNum(){if(this.merkle1)return this.merkle1.leavesNum()+this.merkle2.leavesNum();if(this.buf)return 1;throw new Error("invalid number of leaves")}}class Je extends v{static{r(this,"HashCache")}constructor(e,t,n){super(),this.fromObject({prevoutsHashBuf:e,sequenceHashBuf:t,outputsHashBuf:n})}fromBuffer(e){return this.fromJSON(JSON.parse(e.toString()))}toBuffer(){return Buffer.from(JSON.stringify(this.toJSON()))}fromJSON(e){return this.prevoutsHashBuf=e.prevoutsHashBuf?Buffer.from(e.prevoutsHashBuf,"hex"):void 0,this.sequenceHashBuf=e.sequenceHashBuf?Buffer.from(e.sequenceHashBuf,"hex"):void 0,this.outputsHashBuf=e.outputsHashBuf?Buffer.from(e.outputsHashBuf,"hex"):void 0,this}toJSON(){return{prevoutsHashBuf:this.prevoutsHashBuf?this.prevoutsHashBuf.toString("hex"):void 0,sequenceHashBuf:this.sequenceHashBuf?this.sequenceHashBuf.toString("hex"):void 0,outputsHashBuf:this.outputsHashBuf?this.outputsHashBuf.toString("hex"):void 0}}}class Ae extends v{static{r(this,"VarInt")}constructor(e){super({buf:e})}fromJSON(e){return this.fromObject({buf:Buffer.from(e,"hex")}),this}toJSON(){return this.buf.toString("hex")}fromBuffer(e){return this.buf=e,this}fromBr(e){return this.buf=e.readVarIntBuf(),this}fromBn(e){return this.buf=new m().writeVarIntBn(e).toBuffer(),this}static fromBn(e){return new this().fromBn(e)}fromNumber(e){return this.buf=new m().writeVarIntNum(e).toBuffer(),this}static fromNumber(e){return new this().fromNumber(e)}toBuffer(){return this.buf}toBn(){return new w(this.buf).readVarIntBn()}toNumber(){return new w(this.buf).readVarIntNum()}}class we extends v{static{r(this,"TxIn")}constructor(e,t,n,g,C=4294967295){super({txHashBuf:e,txOutNum:t,scriptVi:n,script:g,nSequence:C})}setScript(e){return this.scriptVi=Ae.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t,n,g){return this.fromObject({txHashBuf:e,txOutNum:t,nSequence:g}),this.setScript(n),this}static fromProperties(e,t,n,g){return new this().fromProperties(e,t,n,g)}fromJSON(e){return this.fromObject({txHashBuf:typeof e.txHashBuf<"u"?Buffer.from(e.txHashBuf,"hex"):void 0,txOutNum:e.txOutNum,scriptVi:typeof e.scriptVi<"u"?Ae.fromJSON(e.scriptVi):void 0,script:typeof e.script<"u"?q.fromJSON(e.script):void 0,nSequence:e.nSequence}),this}toJSON(){return{txHashBuf:typeof this.txHashBuf<"u"?this.txHashBuf.toString("hex"):void 0,txOutNum:this.txOutNum,scriptVi:typeof this.scriptVi<"u"?this.scriptVi.toJSON():void 0,script:typeof this.script<"u"?this.script.toJSON():void 0,nSequence:this.nSequence}}fromBr(e){return this.txHashBuf=e.read(32),this.txOutNum=e.readUInt32LE(),this.scriptVi=Ae.fromBuffer(e.readVarIntBuf()),this.script=q.fromBuffer(e.read(this.scriptVi.toNumber())),this.nSequence=e.readUInt32LE(),this}toBw(e){return e||(e=new m),e.write(this.txHashBuf),e.writeUInt32LE(this.txOutNum),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e.writeUInt32LE(this.nSequence),e}fromPubKeyHashTxOut(e,t,n,g){const C=new q;if(n.script.isPubKeyHashOut())C.writeOpCode(s.OP_0),g?C.writeBuffer(g.toBuffer()):C.writeOpCode(s.OP_0);else throw new Error("txOut must be of type pubKeyHash");return this.txHashBuf=e,this.txOutNum=t,this.setScript(C),this}hasNullInput(){return this.txHashBuf.toString("hex")==="0000000000000000000000000000000000000000000000000000000000000000"&&this.txOutNum===4294967295}setNullInput(){this.txHashBuf=Buffer.alloc(32),this.txHashBuf.fill(0),this.txOutNum=4294967295}}we.LOCKTIME_VERIFY_SEQUENCE=1,we.SEQUENCE_FINAL=4294967295,we.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31,we.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22,we.SEQUENCE_LOCKTIME_MASK=65535,we.SEQUENCE_LOCKTIME_GRANULARITY=9;class He extends v{static{r(this,"TxOut")}constructor(e,t,n){super({valueBn:e,scriptVi:t,script:n})}setScript(e){return this.scriptVi=Ae.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t){return this.fromObject({valueBn:e}),this.setScript(t),this}static fromProperties(e,t){return new this().fromProperties(e,t)}fromJSON(e){return this.fromObject({valueBn:new a().fromJSON(e.valueBn),scriptVi:new Ae().fromJSON(e.scriptVi),script:new q().fromJSON(e.script)}),this}toJSON(){return{valueBn:this.valueBn.toJSON(),scriptVi:this.scriptVi.toJSON(),script:this.script.toJSON()}}fromBr(e){return this.valueBn=e.readUInt64LEBn(),this.scriptVi=Ae.fromNumber(e.readVarIntNum()),this.script=new q().fromBuffer(e.read(this.scriptVi.toNumber())),this}toBw(e){return e||(e=new m),e.writeUInt64LEBn(this.valueBn),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e}}class Ne extends v{static{r(this,"Tx")}constructor(e=1,t=Ae.fromNumber(0),n=[],g=Ae.fromNumber(0),C=[],W=0){super({versionBytesNum:e,txInsVi:t,txIns:n,txOutsVi:g,txOuts:C,nLockTime:W})}fromJSON(e){const t=[];e.txIns.forEach(function(g){t.push(new we().fromJSON(g))});const n=[];return e.txOuts.forEach(function(g){n.push(new He().fromJSON(g))}),this.fromObject({versionBytesNum:e.versionBytesNum,txInsVi:new Ae().fromJSON(e.txInsVi),txIns:t,txOutsVi:new Ae().fromJSON(e.txOutsVi),txOuts:n,nLockTime:e.nLockTime}),this}toJSON(){const e=[];this.txIns.forEach(function(n){e.push(n.toJSON())});const t=[];return this.txOuts.forEach(function(n){t.push(n.toJSON())}),{versionBytesNum:this.versionBytesNum,txInsVi:this.txInsVi.toJSON(),txIns:e,txOutsVi:this.txOutsVi.toJSON(),txOuts:t,nLockTime:this.nLockTime}}fromBr(e){this.versionBytesNum=e.readUInt32LE(),this.txInsVi=new Ae(e.readVarIntBuf());const t=this.txInsVi.toNumber();this.txIns=[];for(let g=0;g<t;g++)this.txIns.push(new we().fromBr(e));this.txOutsVi=new Ae(e.readVarIntBuf());const n=this.txOutsVi.toNumber();this.txOuts=[];for(let g=0;g<n;g++)this.txOuts.push(new He().fromBr(e));return this.nLockTime=e.readUInt32LE(),this}toBw(e){e||(e=new m),e.writeUInt32LE(this.versionBytesNum),e.write(this.txInsVi.buf);for(let t=0;t<this.txIns.length;t++)this.txIns[t].toBw(e);e.write(this.txOutsVi.buf);for(let t=0;t<this.txOuts.length;t++)this.txOuts[t].toBw(e);return e.writeUInt32LE(this.nLockTime),e}hashPrevouts(){const e=new m;for(const t in this.txIns){const n=this.txIns[t];e.write(n.txHashBuf),e.writeUInt32LE(n.txOutNum)}return X.sha256Sha256(e.toBuffer())}hashSequence(){const e=new m;for(const t in this.txIns){const n=this.txIns[t];e.writeUInt32LE(n.nSequence)}return X.sha256Sha256(e.toBuffer())}hashOutputs(){const e=new m;for(const t in this.txOuts){const n=this.txOuts[t];e.write(n.toBuffer())}return X.sha256Sha256(e.toBuffer())}sighash(e,t,n,g,C=0,W=new Je){const Z=this.sighashPreimage(e,t,n,g,C,W);return Z.compare(Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?Z:new w(X.sha256Sha256(Z)).readReverse()}async asyncSighash(e,t,n,g,C=0,W={}){return(await G.asyncObjectMethod(this,"sighash",[e,t,n,g,C,W])).resbuf}sighashPreimage(e,t,n,g,C=0,W=new Je){if(e&he.SIGHASH_FORKID&&C&Ne.SCRIPT_ENABLE_SIGHASH_FORKID){let ue=Buffer.alloc(32,0),xe=Buffer.alloc(32,0),ke=Buffer.alloc(32,0);e&he.SIGHASH_ANYONECANPAY||(ue=W.prevoutsHashBuf?W.prevoutsHashBuf:W.prevoutsHashBuf=this.hashPrevouts()),!(e&he.SIGHASH_ANYONECANPAY)&&(e&31)!==he.SIGHASH_SINGLE&&(e&31)!==he.SIGHASH_NONE&&(xe=W.sequenceHashBuf?W.sequenceHashBuf:W.sequenceHashBuf=this.hashSequence()),(e&31)!==he.SIGHASH_SINGLE&&(e&31)!==he.SIGHASH_NONE?ke=W.outputsHashBuf?W.outputsHashBuf:W.outputsHashBuf=this.hashOutputs():(e&31)===he.SIGHASH_SINGLE&&t<this.txOuts.length&&(ke=X.sha256Sha256(this.txOuts[t].toBuffer()));const Oe=new m;return Oe.writeUInt32LE(this.versionBytesNum),Oe.write(ue),Oe.write(xe),Oe.write(this.txIns[t].txHashBuf),Oe.writeUInt32LE(this.txIns[t].txOutNum),Oe.writeVarIntNum(n.toBuffer().length),Oe.write(n.toBuffer()),Oe.writeUInt64LEBn(g),Oe.writeUInt32LE(this.txIns[t].nSequence),Oe.write(ke),Oe.writeUInt32LE(this.nLockTime),Oe.writeUInt32LE(e>>>0),Oe.toBuffer()}const Z=this.cloneByBuffer();n=new q().fromBuffer(n.toBuffer()),n.removeCodeseparators();for(let ue=0;ue<Z.txIns.length;ue++)Z.txIns[ue]=we.fromBuffer(Z.txIns[ue].toBuffer()).setScript(new q);if(Z.txIns[t]=we.fromBuffer(Z.txIns[t].toBuffer()).setScript(n),(e&31)===he.SIGHASH_NONE){Z.txOuts.length=0,Z.txOutsVi=Ae.fromNumber(0);for(let ue=0;ue<Z.txIns.length;ue++)ue!==t&&(Z.txIns[ue].nSequence=0)}else if((e&31)===he.SIGHASH_SINGLE){if(t>Z.txOuts.length-1)return Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex");Z.txOuts.length=t+1,Z.txOutsVi=Ae.fromNumber(t+1);for(let ue=0;ue<Z.txOuts.length;ue++)ue<t&&(Z.txOuts[ue]=He.fromProperties(new a().fromBuffer(Buffer.from("ffffffffffffffff","hex")),new q));for(let ue=0;ue<Z.txIns.length;ue++)ue!==t&&(Z.txIns[ue].nSequence=0)}return e&he.SIGHASH_ANYONECANPAY&&(Z.txIns[0]=Z.txIns[t],Z.txIns.length=1,Z.txInsVi=Ae.fromNumber(1)),new m().write(Z.toBuffer()).writeInt32LE(e).toBuffer()}async asyncSighashPreimage(e,t,n,g,C=0,W={}){return(await G.asyncObjectMethod(this,"sighashPreimage",[e,t,n,g,C,W])).resbuf}sign(e,t=he.SIGHASH_ALL|he.SIGHASH_FORKID,n,g,C,W=Ne.SCRIPT_ENABLE_SIGHASH_FORKID,Z={}){const pe=this.sighash(t,n,g,C,W,Z);return de.sign(pe,e,"little").fromObject({nHashType:t})}async asyncSign(e,t=he.SIGHASH_ALL|he.SIGHASH_FORKID,n,g,C,W=Ne.SCRIPT_ENABLE_SIGHASH_FORKID,Z={}){const pe=await G.asyncObjectMethod(this,"sign",[e,t,n,g,C,W,Z]);return new he().fromFastBuffer(pe.resbuf)}verify(e,t,n,g,C=!1,W,Z=Ne.SCRIPT_ENABLE_SIGHASH_FORKID,pe={}){const ue=this.sighash(e.nHashType,n,g,W,Z,pe);return de.verify(ue,e,t,"little",C)}async asyncVerify(e,t,n,g,C=!1,W,Z=Ne.SCRIPT_ENABLE_SIGHASH_FORKID,pe={}){const ue=await G.asyncObjectMethod(this,"verify",[e,t,n,g,C,W,Z,pe]);return JSON.parse(ue.resbuf.toString())}hash(){return X.sha256Sha256(this.toBuffer())}async asyncHash(){return(await G.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new w(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await G.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}addTxIn(e,t,n,g){let C;return e instanceof we?C=e:C=new we().fromObject({txHashBuf:e,txOutNum:t,nSequence:g}).setScript(n),this.txIns.push(C),this.txInsVi=Ae.fromNumber(this.txInsVi.toNumber()+1),this}addTxOut(e,t){let n;return e instanceof He?n=e:n=new He().fromObject({valueBn:e}).setScript(t),this.txOuts.push(n),this.txOutsVi=Ae.fromNumber(this.txOutsVi.toNumber()+1),this}isCoinbase(){return this.txIns.length===1&&this.txIns[0].hasNullInput()}sort(){return this.txIns.sort((e,t)=>new w(e.txHashBuf).readReverse().compare(new w(t.txHashBuf).readReverse())||e.txOutNum-t.txOutNum),this.txOuts.sort((e,t)=>e.valueBn.sub(t.valueBn).toNumber()||e.script.toBuffer().compare(t.script.toBuffer())),this}}Ne.MAX_MONEY=21e6*1e8,Ne.SCRIPT_ENABLE_SIGHASH_FORKID=65536;class Le extends v{static{r(this,"Block")}constructor(e,t,n){super({blockHeader:e,txsVi:t,txs:n})}fromJSON(e){const t=[];return e.txs.forEach(function(n){t.push(new Ne().fromJSON(n))}),this.fromObject({blockHeader:new Be().fromJSON(e.blockHeader),txsVi:new Ae().fromJSON(e.txsVi),txs:t}),this}toJSON(){const e=[];return this.txs.forEach(function(t){e.push(t.toJSON())}),{blockHeader:this.blockHeader.toJSON(),txsVi:this.txsVi.toJSON(),txs:e}}fromBr(e){this.blockHeader=new Be().fromBr(e),this.txsVi=new Ae(e.readVarIntBuf());const t=this.txsVi.toNumber();this.txs=[];for(let n=0;n<t;n++)this.txs.push(new Ne().fromBr(e));return this}toBw(e){e||(e=new m),e.write(this.blockHeader.toBuffer()),e.write(this.txsVi.buf);const t=this.txsVi.toNumber();for(let n=0;n<t;n++)this.txs[n].toBw(e);return e}hash(){return X.sha256Sha256(this.blockHeader.toBuffer())}async asyncHash(){return(await G.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new w(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await G.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}verifyMerkleRoot(){const e=this.txs.map(n=>n.toBuffer()),t=Re.fromBuffers(e).hash();return Buffer.compare(t,this.blockHeader.merkleRootBuf)}static iterateTxs(e){const t=new w(e),n=new Be().fromBr(t),g=new Ae(t.readVarIntBuf()),C=g.toNumber();return{blockHeader:n,txsVi:g,txsNum:C,*[Symbol.iterator](){for(let W=0;W<C;W++)yield new Ne().fromBr(t)}}}}Le.MAX_BLOCK_SIZE=1e6;class be extends v{static{r(this,"Interp")}constructor(e,t,n,g=[],C=[],W=0,Z=0,pe=0,ue=[],xe="",ke=be.defaultFlags,Oe=new a(0)){super({script:e,tx:t,nIn:n,stack:g,altStack:C,pc:W,pBeginCodeHash:Z,nOpCount:pe,ifStack:ue,errStr:xe,flags:ke,valueBn:Oe})}initialize(){return this.script=new q,this.stack=[],this.altStack=[],this.pc=0,this.pBeginCodeHash=0,this.nOpCount=0,this.ifStack=[],this.errStr="",this.flags=be.defaultFlags,this.scriptLimit=1e7,this.stackLimit=1e7,this}fromJSON(e){return this.fromJSONNoTx(e),this.tx=e.tx?new Ne().fromJSON(e.tx):void 0,this}fromJSONNoTx(e){return this.fromObject({script:e.script!==void 0?new q().fromJSON(e.script):void 0,nIn:e.nIn}),this.stack=[],e.stack.forEach(function(t){this.stack.push(Buffer.from(t,"hex"))}.bind(this)),this.altStack=[],e.altStack.forEach(function(t){this.altStack.push(Buffer.from(t,"hex"))}.bind(this)),this.fromObject({pc:e.pc,pBeginCodeHash:e.pBeginCodeHash,nOpCount:e.nOpCount,ifStack:e.ifStack,errStr:e.errStr,flags:e.flags}),this}fromBr(e){let t=e.readVarIntNum(),n=e.read(t);this.fromJSONNoTx(JSON.parse(n.toString()));let g=e.readVarIntNum();if(g>0){let C=e.read(g);this.tx=new Ne().fromFastBuffer(C)}return this}toJSON(){let e=this.toJSONNoTx();return e.tx=this.tx?this.tx.toJSON():void 0,e}toJSONNoTx(){let e=[];this.stack.forEach(function(n){e.push(n.toString("hex"))});let t=[];return this.altStack.forEach(function(n){t.push(n.toString("hex"))}),{script:this.script?this.script.toJSON():void 0,nIn:this.nIn,stack:e,altStack:t,pc:this.pc,pBeginCodeHash:this.pBeginCodeHash,nOpCount:this.nOpCount,ifStack:this.ifStack,errStr:this.errStr,flags:this.flags}}toBw(e){e||(e=new m);let t=Buffer.from(JSON.stringify(this.toJSONNoTx()));if(e.writeVarIntNum(t.length),e.write(t),this.tx){let n=this.tx.toFastBuffer();e.writeVarIntNum(n.length),e.write(n)}else e.writeVarIntNum(0);return e}static getFlags(e){let t=0;return e.indexOf("NONE")!==-1&&(t=t|be.SCRIPT_VERIFY_NONE),e.indexOf("P2SH")!==-1&&(t=t|be.SCRIPT_VERIFY_P2SH),e.indexOf("STRICTENC")!==-1&&(t=t|be.SCRIPT_VERIFY_STRICTENC),e.indexOf("DERSIG")!==-1&&(t=t|be.SCRIPT_VERIFY_DERSIG),e.indexOf("LOW_S")!==-1&&(t=t|be.SCRIPT_VERIFY_LOW_S),e.indexOf("NULLDUMMY")!==-1&&(t=t|be.SCRIPT_VERIFY_NULLDUMMY),e.indexOf("SIGPUSHONLY")!==-1&&(t=t|be.SCRIPT_VERIFY_SIGPUSHONLY),e.indexOf("MINIMALDATA")!==-1&&(t=t|be.SCRIPT_VERIFY_MINIMALDATA),e.indexOf("DISCOURAGE_UPGRADABLE_NOPS")!==-1&&(t=t|be.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS),e.indexOf("CLEANSTACK")!==-1&&(t=t|be.SCRIPT_VERIFY_CLEANSTACK),e.indexOf("CHECKLOCKTIMEVERIFY")!==-1&&(t=t|be.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY),e.indexOf("CHECKSEQUENCEVERIFY")!==-1&&(t=t|be.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY),e.indexOf("SIGHASH_FORKID")!==-1&&(t=t|be.SCRIPT_ENABLE_SIGHASH_FORKID),t}static castToBool(e){for(let t=0;t<e.length;t++)if(e[t]!==0)return!(t===e.length-1&&e[t]===128);return!1}checkSigEncoding(e){if(e.length===0)return!0;if(this.flags&(be.SCRIPT_VERIFY_DERSIG|be.SCRIPT_VERIFY_LOW_S|be.SCRIPT_VERIFY_STRICTENC)&&!he.IsTxDer(e))return this.errStr="SCRIPT_ERR_SIG_DER",!1;if(this.flags&be.SCRIPT_VERIFY_LOW_S){if(!new he().fromTxFormat(e).hasLowS())return this.errStr="SCRIPT_ERR_SIG_DER",!1}else if(this.flags&be.SCRIPT_VERIFY_STRICTENC&&!new he().fromTxFormat(e).hasDefinedHashType())return this.errStr="SCRIPT_ERR_SIG_HASHTYPE",!1;return!0}checkPubKeyEncoding(e){return this.flags&be.SCRIPT_VERIFY_STRICTENC&&!M.isCompressedOrUncompressed(e)?(this.errStr="SCRIPT_ERR_PUBKEYTYPE",!1):!0}checkLockTime(e){return!(!(this.tx.nLockTime<be.LOCKTIME_THRESHOLD&&e<be.LOCKTIME_THRESHOLD||this.tx.nLockTime>=be.LOCKTIME_THRESHOLD&&e>=be.LOCKTIME_THRESHOLD)||e>this.tx.nLockTime||we.SEQUENCE_FINAL===this.tx.txIns[this.nIn].nSequence)}checkSequence(e){let t=this.tx.txIns[this.nIn].nSequence;if(this.tx.versionBytesNum<2||t&we.SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;let n=we.SEQUENCE_LOCKTIME_TYPE_FLAG|we.SEQUENCE_LOCKTIME_MASK,g=t&n,C=e&n;return!(!(g<we.SEQUENCE_LOCKTIME_TYPE_FLAG&&C<we.SEQUENCE_LOCKTIME_TYPE_FLAG||g>=we.SEQUENCE_LOCKTIME_TYPE_FLAG&&C>=we.SEQUENCE_LOCKTIME_TYPE_FLAG)||C>g)}*eval(){this.script.toBuffer().length>this.scriptLimit&&(this.errStr="SCRIPT_ERR_SCRIPT_SIZE",yield!1);try{for(;this.pc<this.script.chunks.length;){let e=this.step();e?yield e:yield!1}this.stack.length+this.altStack.length>this.stackLimit&&(this.errStr="SCRIPT_ERR_STACK_SIZE",yield!1)}catch(e){this.errStr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,yield!1}this.ifStack.length>0&&(this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",yield!1),yield!0}step(){let e=(this.flags&be.SCRIPT_VERIFY_MINIMALDATA)!==0,t=!(this.ifStack.indexOf(!1)+1),n=this.script.chunks[this.pc];this.pc++;let g=n.opCodeNum;if(g===void 0)return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1;if(g>s.OP_16&&++this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;if(g===s.OP_LEFT||g===s.OP_RIGHT||g===s.OP_2MUL||g===s.OP_2DIV)return this.errStr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(t&&g>=0&&g<=s.OP_PUSHDATA4){if(e&&!this.script.checkMinimalPush(this.pc-1))return this.errStr="SCRIPT_ERR_MINIMALDATA",!1;if(!n.buf)this.stack.push(be.false);else{if(n.len!==n.buf.length)throw new Error("LEngth of push value not equal to length of data");this.stack.push(n.buf)}}else if(t||s.OP_IF<=g&&g<=s.OP_ENDIF)switch(g){case s.OP_1NEGATE:case s.OP_1:case s.OP_2:case s.OP_3:case s.OP_4:case s.OP_5:case s.OP_6:case s.OP_7:case s.OP_8:case s.OP_9:case s.OP_10:case s.OP_11:case s.OP_12:case s.OP_13:case s.OP_14:case s.OP_15:case s.OP_16:{let ce=g-(s.OP_1-1),le=new a(ce).toScriptNumBuffer();this.stack.push(le)}break;case s.OP_NOP:break;case s.OP_CHECKLOCKTIMEVERIFY:{if(!(this.flags&be.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&be.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-1],Ee=new a().fromScriptNumBuffer(ce,e,5).toNumber();if(Ee<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(Ee))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_CHECKSEQUENCEVERIFY:{if(!(this.flags&be.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)){if(this.flags&be.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-1],Ee=new a().fromScriptNumBuffer(ce,e,5).toNumber();if(Ee<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(Ee&we.SEQUENCE_LOCKTIME_DISABLE_FLAG)break;if(!this.checkSequence(Ee))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_NOP1:case s.OP_NOP3:case s.OP_NOP4:case s.OP_NOP5:case s.OP_NOP6:case s.OP_NOP7:case s.OP_NOP8:case s.OP_NOP9:case s.OP_NOP10:if(this.flags&be.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case s.OP_IF:case s.OP_NOTIF:{let ce=!1;if(t){if(this.stack.length<1)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;let le=this.stack.pop();ce=be.castToBool(le),g===s.OP_NOTIF&&(ce=!ce)}this.ifStack.push(ce)}break;case s.OP_ELSE:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack[this.ifStack.length-1]=!this.ifStack[this.ifStack.length-1];break;case s.OP_ENDIF:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack.pop();break;case s.OP_VERIFY:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-1];if(be.castToBool(ce))this.stack.pop();else return this.errStr="SCRIPT_ERR_VERIFY",!1}break;case s.OP_RETURN:return this.errStr="SCRIPT_ERR_OP_RETURN",!1;case s.OP_TOALTSTACK:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altStack.push(this.stack.pop());break;case s.OP_FROMALTSTACK:if(this.altStack.length<1)return this.errStr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altStack.pop());break;case s.OP_2DROP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case s.OP_2DUP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-2],le=this.stack[this.stack.length-1];this.stack.push(ce),this.stack.push(le)}break;case s.OP_3DUP:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-3],le=this.stack[this.stack.length-2],Ee=this.stack[this.stack.length-1];this.stack.push(ce),this.stack.push(le),this.stack.push(Ee)}break;case s.OP_2OVER:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-4],le=this.stack[this.stack.length-3];this.stack.push(ce),this.stack.push(le)}break;case s.OP_2ROT:{if(this.stack.length<6)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack.splice(this.stack.length-6,2);this.stack.push(ce[0]),this.stack.push(ce[1])}break;case s.OP_2SWAP:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack.splice(this.stack.length-4,2);this.stack.push(ce[0]),this.stack.push(ce[1])}break;case s.OP_IFDUP:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-1];be.castToBool(ce)&&this.stack.push(ce)}break;case s.OP_DEPTH:{let ce=new a(this.stack.length).toScriptNumBuffer();this.stack.push(ce)}break;case s.OP_DROP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case s.OP_DUP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case s.OP_NIP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case s.OP_OVER:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case s.OP_PICK:case s.OP_ROLL:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-1],Ee=new a().fromScriptNumBuffer(ce,e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(this.stack.pop(),Ee<0||Ee>=this.stack.length)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;ce=this.stack[this.stack.length-Ee-1],g===s.OP_ROLL&&this.stack.splice(this.stack.length-Ee-1,1),this.stack.push(ce)}break;case s.OP_ROT:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-3],le=this.stack[this.stack.length-2],Ee=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=le,this.stack[this.stack.length-2]=Ee,this.stack[this.stack.length-1]=ce}break;case s.OP_SWAP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-2],le=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=le,this.stack[this.stack.length-1]=ce}break;case s.OP_TUCK:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case s.OP_SIZE:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=new a(this.stack[this.stack.length-1].length);this.stack.push(ce.toScriptNumBuffer())}break;case s.OP_OR:case s.OP_AND:case s.OP_XOR:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let C=this.stack[this.stack.length-2],W=this.stack[this.stack.length-1];if(C.length!=W.length)return this.errStr="SCRIPT_ERR_INVALID_OPERAND_SIZE",!1;switch(g){case s.OP_AND:for(let ce=0;ce<C.length;ce++)C[ce]&=W[ce];break;case s.OP_OR:for(let ce=0;ce<C.length;ce++)C[ce]|=W[ce];break;case s.OP_XOR:for(let ce=0;ce<C.length;ce++)C[ce]^=W[ce];break}this.stack.pop();break;case s.OP_INVERT:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let Z=this.stack[this.stack.length-1];for(let ce=0;ce<Z.length;ce++)Z[ce]=~Z[ce];break;case s.OP_LSHIFT:case s.OP_RSHIFT:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-2],le=new a(ce),Ee=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(Ee<0)return this.errStr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;switch(this.stack.pop(),this.stack.pop(),g){case s.OP_LSHIFT:le=le.ushln(Ee);break;case s.OP_RSHIFT:le=le.ushrn(Ee);break}let We=le.toBuffer().slice(-ce.length);We.length<ce.length&&(We=Buffer.concat([Buffer.alloc(ce.length-We.length),We])),this.stack.push(We);break}case s.OP_EQUAL:case s.OP_EQUALVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-2],le=this.stack[this.stack.length-1],Ee=A(ce,le);if(this.stack.pop(),this.stack.pop(),this.stack.push(Ee?be.true:be.false),g===s.OP_EQUALVERIFY)if(Ee)this.stack.pop();else return this.errStr="SCRIPT_ERR_EQUALVERIFY",!1}break;case s.OP_1ADD:case s.OP_1SUB:case s.OP_NEGATE:case s.OP_ABS:case s.OP_NOT:case s.OP_0NOTEQUAL:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-1],le=new a().fromScriptNumBuffer(ce,e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);switch(g){case s.OP_1ADD:le=le.add(1);break;case s.OP_1SUB:le=le.sub(1);break;case s.OP_NEGATE:le=le.neg();break;case s.OP_ABS:le.lt(0)&&(le=le.neg());break;case s.OP_NOT:le=new a(le.eq(0)+0);break;case s.OP_0NOTEQUAL:le=new a(le.neq(0)+0);break}this.stack.pop(),this.stack.push(le.toScriptNumBuffer())}break;case s.OP_ADD:case s.OP_SUB:case s.OP_MUL:case s.OP_DIV:case s.OP_MOD:case s.OP_BOOLAND:case s.OP_BOOLOR:case s.OP_NUMEQUAL:case s.OP_NUMEQUALVERIFY:case s.OP_NUMNOTEQUAL:case s.OP_LESSTHAN:case s.OP_GREATERTHAN:case s.OP_LESSTHANOREQUAL:case s.OP_GREATERTHANOREQUAL:case s.OP_MIN:case s.OP_MAX:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=new a().fromScriptNumBuffer(this.stack[this.stack.length-2],e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),le=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Ee=new a(0);switch(g){case s.OP_ADD:Ee=ce.add(le);break;case s.OP_SUB:Ee=ce.sub(le);break;case s.OP_MUL:Ee=ce.mul(le);break;case s.OP_DIV:if(le==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;Ee=ce.div(le);break;case s.OP_MOD:if(le==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;Ee=ce.mod(le);break;case s.OP_BOOLAND:Ee=new a((ce.neq(0)&&le.neq(0))+0);break;case s.OP_BOOLOR:Ee=new a((ce.neq(0)||le.neq(0))+0);break;case s.OP_NUMEQUAL:Ee=new a(ce.eq(le)+0);break;case s.OP_NUMEQUALVERIFY:Ee=new a(ce.eq(le)+0);break;case s.OP_NUMNOTEQUAL:Ee=new a(ce.neq(le)+0);break;case s.OP_LESSTHAN:Ee=new a(ce.lt(le)+0);break;case s.OP_GREATERTHAN:Ee=new a(ce.gt(le)+0);break;case s.OP_LESSTHANOREQUAL:Ee=new a(ce.leq(le)+0);break;case s.OP_GREATERTHANOREQUAL:Ee=new a(ce.geq(le)+0);break;case s.OP_MIN:Ee=ce.lt(le)?ce:le;break;case s.OP_MAX:Ee=ce.gt(le)?ce:le;break}if(this.stack.pop(),this.stack.pop(),this.stack.push(Ee.toScriptNumBuffer()),g===s.OP_NUMEQUALVERIFY)if(be.castToBool(this.stack[this.stack.length-1]))this.stack.pop();else return this.errStr="SCRIPT_ERR_NUMEQUALVERIFY",!1}break;case s.OP_WITHIN:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=new a().fromScriptNumBuffer(this.stack[this.stack.length-3],e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),le=new a().fromScriptNumBuffer(this.stack[this.stack.length-2],e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Ee=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e,be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),We=le.leq(ce)&&ce.lt(Ee);this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(We?be.true:be.false)}break;case s.OP_RIPEMD160:case s.OP_SHA1:case s.OP_SHA256:case s.OP_HASH160:case s.OP_HASH256:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-1],le;g===s.OP_RIPEMD160?le=X.ripemd160(ce):g===s.OP_SHA1?le=X.sha1(ce):g===s.OP_SHA256?le=X.sha256(ce):g===s.OP_HASH160?le=X.sha256Ripemd160(ce):g===s.OP_HASH256&&(le=X.sha256Sha256(ce)),this.stack.pop(),this.stack.push(le)}break;case s.OP_CODESEPARATOR:this.pBeginCodeHash=this.pc;break;case s.OP_CHECKSIG:case s.OP_CHECKSIGVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ce=this.stack[this.stack.length-2],le=this.stack[this.stack.length-1],Ee=new q().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});if((ce.length>0?ce.readUInt8(ce.length-1):0)&he.SIGHASH_FORKID){if(!(this.flags&be.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else Ee.findAndDelete(new q().writeBuffer(ce));if(!this.checkSigEncoding(ce)||!this.checkPubKeyEncoding(le))return!1;let Ke;try{let je=new he().fromTxFormat(ce),Xe=new M().fromBuffer(le,!1);Ke=this.tx.verify(je,Xe,this.nIn,Ee,!!(this.flags&be.SCRIPT_VERIFY_LOW_S),this.valueBn,this.flags)}catch{Ke=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(Ke?be.true:be.false),g===s.OP_CHECKSIGVERIFY)if(Ke)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKSIGVERIFY",!1}break;case s.OP_CHECKMULTISIG:case s.OP_CHECKMULTISIGVERIFY:{let ce=1;if(this.stack.length<ce)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let le=new a().fromScriptNumBuffer(this.stack[this.stack.length-ce],e).toNumber();if(le<0||le>20)return this.errStr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=le,this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;let Ee=++ce;if(ce+=le,this.stack.length<ce)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let We=new a().fromScriptNumBuffer(this.stack[this.stack.length-ce],e).toNumber();if(We<0||We>le)return this.errStr="SCRIPT_ERR_SIG_COUNT",!1;let Ke=++ce;if(ce+=We,this.stack.length<ce)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let je=new q().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});for(let ze=0;ze<We;ze++){let Ve=this.stack[this.stack.length-Ke-ze];if((Ve.length>0?Ve.readUInt8(Ve.length-1):0)&he.SIGHASH_FORKID){if(!(this.flags&be.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else je.findAndDelete(new q().writeBuffer(Ve))}let Xe=!0;for(;Xe&&We>0;){let ze=this.stack[this.stack.length-Ke],Ve=this.stack[this.stack.length-Ee];if(!this.checkSigEncoding(ze)||!this.checkPubKeyEncoding(Ve))return!1;let Qe;try{let Ye=new he().fromTxFormat(ze),qe=new M().fromBuffer(Ve,!1);Qe=this.tx.verify(Ye,qe,this.nIn,je,!!(this.flags&be.SCRIPT_VERIFY_LOW_S),this.valueBn,this.flags)}catch{Qe=!1}Qe&&(Ke++,We--),Ee++,le--,We>le&&(Xe=!1)}for(;ce-- >1;)this.stack.pop();if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&be.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errStr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(Xe?be.true:be.false),g===s.OP_CHECKMULTISIGVERIFY)if(Xe)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1}break;case s.OP_CAT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let pe=this.stack[this.stack.length-2],ue=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=Buffer.concat([pe,ue]),this.stack.pop();break;case s.OP_SPLIT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let xe=this.stack[this.stack.length-2],ke=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e);if(ke.lt(0)||ke.gt(xe.length))return this.errStr="SCRIPT_ERR_INVALID_SPLIT_RANGE",!1;let Oe=xe.slice(0,ke),Fe=xe.slice(ke);this.stack.pop(),this.stack.pop(),this.stack.push(Oe),this.stack.push(Fe);break;default:return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}verify(e,t,n,g,C,W){let Z=this.results(e,t,n,g,C,W);for(let pe of Z)if(!pe)return!1;return!0}*results(e,t,n,g,C,W){let Z;this.fromObject({script:e,tx:n,nIn:g,flags:C,valueBn:W}),C&be.SCRIPT_VERIFY_SIGPUSHONLY&&!e.isPushOnly()&&(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1),yield*this.eval(),C&be.SCRIPT_VERIFY_P2SH&&(Z=this.stack.slice());let pe=this.stack;this.initialize(),this.fromObject({script:t,stack:pe,tx:n,nIn:g,flags:C,valueBn:W}),yield*this.eval(),this.stack.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1);let ue=this.stack[this.stack.length-1];if(be.castToBool(ue)||(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),C&be.SCRIPT_VERIFY_P2SH&&t.isScriptHashOut()){e.isPushOnly()||(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1);let xe=pe;if(pe=Z,Z=xe,pe.length===0)throw new Error("internal error - stack copy empty");let ke=pe[pe.length-1],Oe=new q().fromBuffer(ke);pe.pop(),this.initialize(),this.fromObject({script:Oe,stack:pe,tx:n,nIn:g,flags:C,valueBn:W}),yield*this.eval(),pe.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),be.castToBool(pe[pe.length-1])?yield!0:(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1)}if(C&be.SCRIPT_VERIFY_CLEANSTACK){if(!(C&be.SCRIPT_VERIFY_P2SH))throw new Error("cannot use CLEANSTACK without P2SH");pe.length!==1&&(this.errStr=this.errStr||"SCRIPT_ERR_CLEANSTACK",yield!1)}yield!0}getDebugObject(){let e=this.pc-1;return{errStr:this.errStr,scriptStr:this.script?this.script.toString():"no script found",pc:e,stack:this.stack.map(t=>t.toString("hex")),altStack:this.altStack.map(t=>t.toString("hex")),opCodeStr:this.script?s.fromNumber(this.script.chunks[e].opCodeNum).toString():"no script found"}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}be.true=Buffer.from([1]),be.false=Buffer.from([]),be.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS=1e4,be.LOCKTIME_THRESHOLD=5e8,be.SCRIPT_VERIFY_NONE=0,be.SCRIPT_VERIFY_P2SH=1,be.SCRIPT_VERIFY_STRICTENC=2,be.SCRIPT_VERIFY_DERSIG=4,be.SCRIPT_VERIFY_LOW_S=8,be.SCRIPT_VERIFY_NULLDUMMY=16,be.SCRIPT_VERIFY_SIGPUSHONLY=32,be.SCRIPT_VERIFY_MINIMALDATA=64,be.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,be.SCRIPT_VERIFY_CLEANSTACK=256,be.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,be.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY=1024,be.SCRIPT_ENABLE_SIGHASH_FORKID=65536,be.defaultFlags=be.SCRIPT_VERIFY_P2SH|be.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY;class _ extends v{static{r(this,"SigOperations")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,n)=>{e[n]=t.map(g=>({nScriptChunk:g.nScriptChunk,type:g.type,addressStr:g.addressStr,nHashType:g.nHashType,log:g.log}))}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,e[t].map(n=>({nScriptChunk:n.nScriptChunk,type:n.type,addressStr:n.addressStr,nHashType:n.nHashType,log:n.log})))}),this}setOne(e,t,n,g="sig",C,W=he.SIGHASH_ALL|he.SIGHASH_FORKID){const Z=e.toString("hex")+":"+t,pe={nScriptChunk:n,type:g,addressStr:C,nHashType:W};return this.map.set(Z,[pe]),this}setMany(e,t,n){const g=e.toString("hex")+":"+t;return n=n.map(C=>({type:C.type||"sig",nHashType:C.nHashType||he.SIGHASH_ALL|he.SIGHASH_FORKID,...C})),this.map.set(g,n),this}addOne(e,t,n,g="sig",C,W=he.SIGHASH_ALL|he.SIGHASH_FORKID){const Z=this.get(e,t)||[];return Z.push({nScriptChunk:n,type:g,addressStr:C,nHashType:W}),this.setMany(e,t,Z),this}get(e,t){const n=e.toString("hex")+":"+t;return this.map.get(n)||[]}}class o extends v{static{r(this,"TxOutMap")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,n)=>{e[n]=t.toHex()}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,He.fromHex(e[t]))}),this}set(e,t,n){const g=e.toString("hex")+":"+t;return this.map.set(g,n),this}get(e,t){const n=e.toString("hex")+":"+t;return this.map.get(n)}setTx(e){const t=e.hash().toString("hex");return e.txOuts.forEach((n,g)=>{const C=t+":"+g;this.map.set(C,n)}),this}}const c=ee.Default.TxBuilder;class H extends v{static{r(this,"TxBuilder")}constructor(e=new Ne,t=[],n=[],g=new o,C=new _,W,Z,pe,ue=c.feePerKbNum,xe=0,ke=1,Oe=1,Fe=c.dust,ce=!1,le=new Je){super({tx:e,txIns:t,txOuts:n,uTxOutMap:g,sigOperations:C,changeScript:W,changeAmountBn:Z,feeAmountBn:pe,feePerKbNum:ue,nLockTime:xe,versionBytesNum:ke,sigsPerInput:Oe,dust:Fe,dustChangeToFees:ce,hashCache:le})}toJSON(){const e={};return e.tx=this.tx.toHex(),e.txIns=this.txIns.map(t=>t.toHex()),e.txOuts=this.txOuts.map(t=>t.toHex()),e.uTxOutMap=this.uTxOutMap.toJSON(),e.sigOperations=this.sigOperations.toJSON(),e.changeScript=this.changeScript?this.changeScript.toHex():void 0,e.changeAmountBn=this.changeAmountBn?this.changeAmountBn.toNumber():void 0,e.feeAmountBn=this.feeAmountBn?this.feeAmountBn.toNumber():void 0,e.feePerKbNum=this.feePerKbNum,e.sigsPerInput=this.sigsPerInput,e.dust=this.dust,e.dustChangeToFees=this.dustChangeToFees,e.hashCache=this.hashCache.toJSON(),e}fromJSON(e){return this.tx=new Ne().fromHex(e.tx),this.txIns=e.txIns.map(t=>we.fromHex(t)),this.txOuts=e.txOuts.map(t=>He.fromHex(t)),this.uTxOutMap=new o().fromJSON(e.uTxOutMap),this.sigOperations=new _().fromJSON(e.sigOperations),this.changeScript=e.changeScript?new q().fromHex(e.changeScript):void 0,this.changeAmountBn=e.changeAmountBn?new a(e.changeAmountBn):void 0,this.feeAmountBn=e.feeAmountBn?new a(e.feeAmountBn):void 0,this.feePerKbNum=e.feePerKbNum||this.feePerKbNum,this.sigsPerInput=e.sigsPerInput||this.sigsPerInput,this.dust=e.dust||this.dust,this.dustChangeToFees=e.dustChangeToFees||this.dustChangeToFees,this.hashCache=Je.fromJSON(e.hashCache),this}setFeePerKbNum(e){if(typeof e!="number"||e<0)throw new Error("cannot set a fee of zero or less");return this.feePerKbNum=e,this}setChangeAddress(e){return this.changeScript=e.toTxOutScript(),this}setChangeScript(e){return this.changeScript=e,this}setNLocktime(e){return this.nLockTime=e,this}setVersion(e){return this.versionBytesNum=e,this}setDust(e=c.dust){return this.dust=e,this}sendDustChangeToFees(e=!1){return this.dustChangeToFees=e,this}importPartiallySignedTx(e,t=this.uTxOutMap,n=this.sigOperations){return this.tx=e,this.uTxOutMap=t,this.sigOperations=n,this}inputFromScript(e,t,n,g,C){if(!Buffer.isBuffer(e)||typeof t!="number"||!(n instanceof He)||!(g instanceof q))throw new Error("invalid one of: txHashBuf, txOutNum, txOut, script");return this.txIns.push(we.fromProperties(e,t,g,C)),this.uTxOutMap.set(e,t,n),this}addSigOperation(e,t,n,g,C,W){return this.sigOperations.addOne(e,t,n,g,C,W),this}inputFromPubKeyHash(e,t,n,g,C,W){if(!Buffer.isBuffer(e)||typeof t!="number"||!(n instanceof He))throw new Error("invalid one of: txHashBuf, txOutNum, txOut");this.txIns.push(new we().fromObject({nSequence:C}).fromPubKeyHashTxOut(e,t,n,g)),this.uTxOutMap.set(e,t,n);const Z=$.fromTxOutScript(n.script).toString();return this.addSigOperation(e,t,0,"sig",Z,W),this.addSigOperation(e,t,1,"pubKey",Z),this}outputToAddress(e,t){if(!(t instanceof $)||!(e instanceof a))throw new Error("addr must be an Address, and valueBn must be a Bn");const n=new q().fromPubKeyHash(t.hashBuf);return this.outputToScript(e,n),this}outputToScript(e,t){if(!(t instanceof q)||!(e instanceof a))throw new Error("script must be a Script, and valueBn must be a Bn");const n=He.fromProperties(e,t);return this.txOuts.push(n),this}buildOutputs(){let e=new a(0);return this.txOuts.forEach(t=>{if(t.valueBn.lt(this.dust)&&!t.script.isNonSpendable())throw new Error("cannot create output lesser than dust");e=e.add(t.valueBn),this.tx.addTxOut(t)}),e}buildInputs(e,t=0){let n=new a(0);for(const g of this.txIns){const C=this.uTxOutMap.get(g.txHashBuf,g.txOutNum);if(n=n.add(C.valueBn),this.tx.addTxIn(g),n.geq(e)){if(t<=0)break;t--}}if(n.lt(e))throw new Error("not enough funds for outputs: inAmountBn "+n.toNumber()+" outAmountBn "+e.toNumber());return n}estimateSize(){let n=this.tx.toBuffer().length;return this.tx.txIns.forEach(g=>{const{txHashBuf:C,txOutNum:W}=g;this.sigOperations.get(C,W).forEach(pe=>{const{nScriptChunk:ue,type:xe}=pe,Oe=new q([g.script.chunks[ue]]).toBuffer().length;if(n-=Oe,xe==="sig")n+=72;else if(pe.type==="pubKey")n+=35;else throw new Error("unsupported sig operations type")})}),n=n+1,Math.round(n)}estimateFee(e=new a(0)){const t=Math.ceil(this.estimateSize()/1e3*this.feePerKbNum);return new a(t).add(e)}build(e={useAllInputs:!1}){let t;if(this.txIns.length<=0)throw Error("tx-builder number of inputs must be greater than 0");if(!this.changeScript)throw new Error("must specify change script to use build method");for(let n=e.useAllInputs?this.txIns.length-1:0;n<this.txIns.length;n++){this.tx=new Ne;const g=this.buildOutputs(),C=He.fromProperties(new a(0),this.changeScript);this.tx.addTxOut(C);let W;try{W=this.buildInputs(g,n)}catch(Z){throw Z.message.includes("not enough funds for outputs")?new Error("unable to gather enough inputs for outputs and fee"):Z}if(this.changeAmountBn=W.sub(g),C.valueBn=this.changeAmountBn,t=this.estimateFee(),this.changeAmountBn.geq(t)&&this.changeAmountBn.sub(t).gt(this.dust))break}if(this.changeAmountBn.geq(t)){if(this.feeAmountBn=t,this.changeAmountBn=this.changeAmountBn.sub(this.feeAmountBn),this.tx.txOuts[this.tx.txOuts.length-1].valueBn=this.changeAmountBn,this.changeAmountBn.lt(this.dust))if(this.dustChangeToFees)this.tx.txOuts.pop(),this.tx.txOutsVi=Ae.fromNumber(this.tx.txOutsVi.toNumber()-1),this.feeAmountBn=this.feeAmountBn.add(this.changeAmountBn),this.changeAmountBn=new a(0);else throw new Error("unable to create change amount greater than dust");if(this.tx.nLockTime=this.nLockTime,this.tx.versionBytesNum=this.versionBytesNum,this.tx.txOuts.length===0)throw new Error("outputs length is zero - unable to create any outputs greater than dust");return this}else throw new Error("unable to gather enough inputs for outputs and fee")}sort(){return this.tx.sort(),this}static allSigsPresent(e,t){let n=0;for(let g=1;g<t.chunks.length-1;g++)t.chunks[g].buf&&n++;return n===e}static removeBlankSigs(e){e=new q(e.chunks.slice());for(let t=1;t<e.chunks.length-1;t++)e.chunks[t].buf||e.chunks.splice(t,1);return e}fillSig(e,t,n){const g=this.tx.txIns[e];return g.script.chunks[t]=new q().writeBuffer(n.toTxFormat()).chunks[0],g.scriptVi=Ae.fromNumber(g.script.toBuffer().length),this}getSig(e,t=he.SIGHASH_ALL|he.SIGHASH_FORKID,n,g,C=Ne.SCRIPT_ENABLE_SIGHASH_FORKID){let W;if(t&he.SIGHASH_FORKID&&C&Ne.SCRIPT_ENABLE_SIGHASH_FORKID){const Z=this.tx.txIns[n].txHashBuf,pe=this.tx.txIns[n].txOutNum,ue=this.uTxOutMap.get(Z,pe);if(!ue)throw new Error("for SIGHASH_FORKID must provide UTXOs");W=ue.valueBn}return this.tx.sign(e,t,n,g,W,C,this.hashCache)}asyncGetSig(e,t=he.SIGHASH_ALL|he.SIGHASH_FORKID,n,g,C=Ne.SCRIPT_ENABLE_SIGHASH_FORKID){let W;if(t&he.SIGHASH_FORKID&&C&Ne.SCRIPT_ENABLE_SIGHASH_FORKID){const Z=this.tx.txIns[n].txHashBuf,pe=this.tx.txIns[n].txOutNum,ue=this.uTxOutMap.get(Z,pe);if(!ue)throw new Error("for SIGHASH_FORKID must provide UTXOs");W=ue.valueBn}return this.tx.asyncSign(e,t,n,g,W,C,this.hashCache)}signTxIn(e,t,n,g,C=he.SIGHASH_ALL|he.SIGHASH_FORKID,W=Ne.SCRIPT_ENABLE_SIGHASH_FORKID){const Z=this.tx.txIns[e],pe=Z.script;if(g===void 0&&pe.isPubKeyHashIn()&&(g=0),g===void 0)throw new Error("cannot sign unknown script type for input "+e);const ue=Z.txHashBuf,xe=Z.txOutNum;n||(n=this.uTxOutMap.get(ue,xe));const Oe=n.script,Fe=this.getSig(t,C,e,Oe,W,this.hashCache);return this.fillSig(e,g,Fe),this}async asyncSignTxIn(e,t,n,g,C=he.SIGHASH_ALL|he.SIGHASH_FORKID,W=Ne.SCRIPT_ENABLE_SIGHASH_FORKID){const Z=this.tx.txIns[e],pe=Z.script;if(g===void 0&&pe.isPubKeyHashIn()&&(g=0),g===void 0)throw new Error("cannot sign unknown script type for input "+e);const ue=Z.txHashBuf,xe=Z.txOutNum;n||(n=this.uTxOutMap.get(ue,xe));const Oe=n.script,Fe=await this.asyncGetSig(t,C,e,Oe,W,this.hashCache);return this.fillSig(e,g,Fe),this}signWithKeyPairs(e){const t={};for(const n of e){const g=$.fromPubKey(n.pubKey).toString();t[g]=n}for(const n in this.tx.txIns){const g=this.tx.txIns[n],C=this.sigOperations.get(g.txHashBuf,g.txOutNum);for(const W of C){const{nScriptChunk:Z,type:pe,addressStr:ue,nHashType:xe}=W,ke=t[ue];if(!ke){W.log=`cannot find keyPair for addressStr ${ue}`;continue}const Oe=this.uTxOutMap.get(g.txHashBuf,g.txOutNum);if(pe==="sig")this.signTxIn(n,ke,Oe,Z,xe),W.log="successfully inserted signature";else if(pe==="pubKey")g.script.chunks[Z]=new q().writeBuffer(ke.pubKey.toBuffer()).chunks[0],g.setScript(g.script),W.log="successfully inserted public key";else{W.log=`cannot perform operation of type ${pe}`;continue}}}return this}}class Q extends v{static{r(this,"TxVerifier")}constructor(e,t,n,g){super({tx:e,txOutMap:t,errStr:n,interp:g})}verify(e=be.SCRIPT_ENABLE_SIGHASH_FORKID){return!this.checkStr()&&!this.verifyStr(e)}async asyncVerify(e){const t=await this.asyncVerifyStr(e);return!this.checkStr()&&!t}static verify(e,t,n){return new Q(e,t).verify(n)}static asyncVerify(e,t,n){return new Q(e,t).asyncVerify(n)}checkStr(){if(this.tx.txIns.length===0||this.tx.txInsVi.toNumber()===0)return this.errStr="transaction txIns empty",this.errStr;if(this.tx.txOuts.length===0||this.tx.txOutsVi.toNumber()===0)return this.errStr="transaction txOuts empty",this.errStr;if(this.tx.toBuffer().length>Le.MAX_BLOCK_SIZE)return this.errStr="transaction over the maximum block size",this.errStr;let e=new a(0);for(let n=0;n<this.tx.txOuts.length;n++){const g=this.tx.txOuts[n];if(g.valueBn.lt(0))return this.errStr="transaction txOut "+n+" negative",this.errStr;if(g.valueBn.gt(Ne.MAX_MONEY))return this.errStr="transaction txOut "+n+" greater than MAX_MONEY",this.errStr;if(e=e.add(g.valueBn),e.gt(Ne.MAX_MONEY))return this.errStr="transaction txOut "+n+" total output greater than MAX_MONEY",this.errStr}const t={};for(let n=0;n<this.tx.txIns.length;n++){const g=this.tx.txIns[n],C=g.txHashBuf.toString("hex")+":"+g.txOutNum;if(t[C]!==void 0)return this.errStr="transaction input "+n+" duplicate input",this.errStr;t[C]=!0}if(this.tx.isCoinbase()){const n=this.tx.txIns[0].script.toBuffer();if(n.length<2||n.length>100)return this.errStr="coinbase trasaction script size invalid",this.errStr}else for(let n=0;n<this.tx.txIns.length;n++)if(this.tx.txIns[n].hasNullInput())return this.errStr="transaction input "+n+" has null input",this.errStr;return!1}verifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!this.verifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}async asyncVerifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!await this.asyncVerifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}verifyNIn(e,t){const n=this.tx.txIns[e],g=n.script,C=this.txOutMap.get(n.txHashBuf,n.txOutNum);if(!C)return console.log("output "+n.txOutNum+" not found"),!1;const W=C.script,Z=C.valueBn;return this.interp=new be,this.interp.verify(g,W,this.tx,e,t,Z)}async asyncVerifyNIn(e,t){const n=this.tx.txIns[e],g=n.script,C=this.txOutMap.get(n.txHashBuf,n.txOutNum);if(!C)return console.log("output "+n.txOutNum+" not found"),!1;const W=C.script,Z=C.valueBn;this.interp=new be;const pe=await G.asyncObjectMethod(this.interp,"verify",[g,W,this.tx,e,t,Z]);return JSON.parse(pe.resbuf.toString())}getDebugObject(){return{errStr:this.errStr,interpFailure:this.interp?this.interp.getDebugObject():void 0}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}class ie{static{r(this,"Aes")}}ie.encrypt=function(I,e){const t=ie.buf2Words(e),n=ie.buf2Words(I),C=new(te())(t).encrypt(n);return ie.words2Buf(C)},ie.decrypt=function(I,e){const t=ie.buf2Words(I),n=ie.buf2Words(e),C=new(te())(n).decrypt(t);return ie.words2Buf(C)},ie.buf2Words=function(I){if(I.length%4)throw new Error("buf length must be a multiple of 4");const e=[];for(let t=0;t<I.length/4;t++)e.push(I.readUInt32BE(t*4));return e},ie.words2Buf=function(I){const e=Buffer.alloc(I.length*4);for(let t=0;t<I.length;t++)e.writeUInt32BE(I[t],t*4);return e};class re{static{r(this,"Cbc")}}re.buf2BlocksBuf=function(I,e){const t=e/8,n=[];for(let g=0;g<=I.length/t;g++){let C=I.slice(g*t,g*t+t);C.length<e&&(C=re.pkcs7Pad(C,e)),n.push(C)}return n},re.blockBufs2Buf=function(I){let e=I[I.length-1];return e=re.pkcs7Unpad(e),I[I.length-1]=e,Buffer.concat(I)},re.encrypt=function(I,e,t,n){const g=e.length*8,C=re.buf2BlocksBuf(I,g),W=re.encryptBlocks(C,e,t,n);return Buffer.concat(W)},re.decrypt=function(I,e,t,n){const g=e.length,C=[];for(let pe=0;pe<I.length/g;pe++)C.push(I.slice(pe*g,pe*g+g));const W=re.decryptBlocks(C,e,t,n);return re.blockBufs2Buf(W)},re.encryptBlock=function(I,e,t,n){const g=re.xorBufs(I,e);return t.encrypt(g,n)},re.decryptBlock=function(I,e,t,n){const g=t.decrypt(I,n);return re.xorBufs(g,e)},re.encryptBlocks=function(I,e,t,n){const g=[];for(let C=0;C<I.length;C++){const W=I[C],Z=re.encryptBlock(W,e,t,n);g.push(Z),e=Z}return g},re.decryptBlocks=function(I,e,t,n){const g=[];for(let C=0;C<I.length;C++){const W=I[C],Z=re.decryptBlock(W,e,t,n);g.push(Z),e=W}return g},re.pkcs7Pad=function(I,e){const n=e/8-I.length,g=Buffer.alloc(n);return g.fill(n),Buffer.concat([I,g])},re.pkcs7Unpad=function(I){const e=I[I.length-1],t=I.slice(I.length-e,I.length),n=Buffer.alloc(e);if(n.fill(e),!A(t,n))throw new Error("invalid padding");return I.slice(0,I.length-e)},re.xorBufs=function(I,e){if(I.length!==e.length)throw new Error("bufs must have the same length");const t=Buffer.alloc(I.length);for(let n=0;n<I.length;n++)t[n]=I[n]^e[n];return t};class Ie{static{r(this,"Aescbc")}}Ie.encrypt=function(I,e,t,n=!0){t=t||ge.getRandomBuffer(128/8);const g=re.encrypt(I,t,ie,e);return n?Buffer.concat([t,g]):g},Ie.decrypt=function(I,e,t=!1){if(t){const n=I;return re.decrypt(n,t,ie,e)}else{const n=I.slice(0,16),g=I.slice(128/8);return re.decrypt(g,n,ie,e)}};class Ue{static{r(this,"Ach")}}Ue.encrypt=function(I,e,t){const n=Ie.encrypt(I,e,t),g=X.sha256Hmac(n,e);return Buffer.concat([g,n])},Ue.asyncEncrypt=async function(I,e,t){t||(t=ge.getRandomBuffer(128/8));const n=[I,e,t];return(await G.asyncClassMethod(Ue,"encrypt",n)).resbuf},Ue.decrypt=function(I,e){if(I.length<512/8)throw new Error("The encrypted data must be at least 256+128+128 bits, which is the length of the Hmac plus the iv plus the smallest encrypted data size");const t=I.slice(0,256/8);I=I.slice(256/8,I.length);const n=X.sha256Hmac(I,e);if(!A(t,n))throw new Error("Message authentication failed - Hmacs are not equivalent");return Ie.decrypt(I,e)},Ue.asyncDecrypt=async function(I,e){const t=[I,e];return(await G.asyncClassMethod(Ue,"decrypt",t)).resbuf};class Pe{static{r(this,"Ecies")}}Pe.ivkEkM=function(I,e){const t=I.bn,g=e.point.mul(t),W=new M(g).toBuffer(),Z=X.sha512(W);return{iv:Z.slice(0,16),kE:Z.slice(16,32),kM:Z.slice(32,64)}},Pe.electrumEncrypt=function(I,e,t,n=!1){if(!Buffer.isBuffer(I))throw new Error("messageBuf must be a buffer");let g;t===null&&(t=se.fromRandom()),n||(g=t.pubKey.toDer(!0));const{iv:C,kE:W,kM:Z}=Pe.ivkEkM(t.privKey,e),pe=Ie.encrypt(I,W,C,!1),ue=Buffer.from("BIE1");let xe;g?xe=Buffer.concat([ue,g,pe]):xe=Buffer.concat([ue,pe]);const ke=X.sha256Hmac(xe,Z);return Buffer.concat([xe,ke])},Pe.electrumDecrypt=function(I,e,t=null){if(!Buffer.isBuffer(I))throw new Error("encBuf must be a buffer");const n=32;if(!I.slice(0,4).equals(Buffer.from("BIE1")))throw new Error("Invalid Magic");let C=4;if(t===null){const Oe=I.slice(4,37);t=M.fromDer(Oe),C=37}const{iv:W,kE:Z,kM:pe}=Pe.ivkEkM(e,t),ue=I.slice(C,I.length-n),xe=I.slice(I.length-n,I.length),ke=X.sha256Hmac(I.slice(0,I.length-n),pe);if(!xe.equals(ke))throw new Error("Invalid checksum");return Ie.decrypt(ue,Z,W)},Pe.bitcoreEncrypt=function(I,e,t,n){t||(t=se.fromRandom());const g=t.privKey.bn,W=t.pubKey.toDer(!0),xe=e.point.mul(g).getX().toBuffer({size:32}),ke=X.sha512(xe),Oe=ke.slice(0,32),Fe=ke.slice(32,64),ce=Ie.encrypt(I,Oe,n),le=X.sha256Hmac(ce,Fe);return Buffer.concat([W,ce,le])},Pe.asyncBitcoreEncrypt=async function(I,e,t,n){t||(t=await se.asyncFromRandom()),n||(n=ge.getRandomBuffer(128/8));const g=[I,e,t,n];return(await G.asyncClassMethod(Pe,"bitcoreEncrypt",g)).resbuf},Pe.bitcoreDecrypt=function(I,e){const t=e.bn,C=M.fromDer(I.slice(0,33)).point.mul(t);if(C.eq(new Y))throw new Error("P equals 0");const Z=C.getX().toBuffer({size:32}),pe=X.sha512(Z),ue=pe.slice(0,32),xe=pe.slice(32,64),ke=I.slice(33,I.length-32),Oe=I.slice(I.length-32,I.length),Fe=X.sha256Hmac(ke,xe);if(!A(Oe,Fe))throw new Error("Invalid checksum");return Ie.decrypt(ke,ue)},Pe.asyncBitcoreDecrypt=async function(I,e){const t=[I,e];return(await G.asyncClassMethod(Pe,"bitcoreDecrypt",t)).resbuf};const Ce={aes:te(),bnjs:O(),bs58:D(),elliptic:d(),hashjs:b(),pbkdf2:T,Buffer:k.Buffer},De=h.i8})();var xt=Te.CG,wt=Te.kL,St=Te.AB,_t=Te.A_,Et=Te.eU,Bt=Te.O3,It=Te.jO,Ot=Te.iX,Rt=Te.gO,At=Te.ti,Pt=Te.Bn,Nt=Te.Br,kt=Te.Ph,Mt=Te.Bw,Tt=Te.$H,Ct=Te.gT,Lt=Te.mI,Ft=Te.z$,Ht=Te.kb,Ut=Te.rR,Dt=Te.sx,Kt=Te.gZ,Vt=Te.E9,zt=Te.on,jt=Te.dp,Gt=Te.kk,Yt=Te.Xf,Jt=Te.nX,qt=Te.tB,Wt=Te.AU,Xt=Te.Tx,Qt=Te.lc,$t=Te.X0,Zt=Te.as,er=Te.a1,tr=Te.UB,rr=Te.yN,ir=Te.Xb,nr=Te.xB,sr=Te.ER,ar=Te.d7,or=Te.en,fr=Te.es,cr=Te.nR,hr=Te.jp,ur=Te.i8;export{xt as Ach,wt as Address,St as Aes,_t as Aescbc,Et as Base58,Bt as Base58Check,It as Bip32,Ot as Bip39,Rt as Block,At as BlockHeader,Pt as Bn,Nt as Br,kt as Bsm,Mt as Bw,Tt as Cbc,Ct as Constants,Lt as Ecdsa,Ft as Ecies,Ht as Hash,Ut as Interp,Dt as KeyPair,Kt as OpCode,Vt as Point,zt as PrivKey,jt as PubKey,Gt as Random,Yt as Script,Jt as Sig,qt as SigOperations,Wt as Struct,Xt as Tx,Qt as TxBuilder,$t as TxIn,Zt as TxOut,er as TxOutMap,tr as TxVerifier,rr as VarInt,ir as Workers,nr as WorkersResult,sr as cmp,ar as deps,or as en,fr as es,cr as getConstants,hr as jp,ur as version};
6
+ */const O=N(9742),J=N(645),D=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;te.Buffer=m,te.SlowBuffer=y,te.INSPECT_MAX_BYTES=50;const F=2147483647;te.kMaxLength=F,m.TYPED_ARRAY_SUPPORT=d(),!m.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const p=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(p,o),p.foo()===42}catch{return!1}}r(d,"typedArraySupport"),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function b(p){if(p>F)throw new RangeError('The value "'+p+'" is invalid for option "size"');const o=new Uint8Array(p);return Object.setPrototypeOf(o,m.prototype),o}r(b,"createBuffer");function m(p,o,h){if(typeof p=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(p)}return C(p,o,h)}r(m,"Buffer"),m.poolSize=8192;function C(p,o,h){if(typeof p=="string")return B(p,o);if(ArrayBuffer.isView(p))return S(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(xe(p,ArrayBuffer)||p&&xe(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(p,SharedArrayBuffer)||p&&xe(p.buffer,SharedArrayBuffer)))return g(p,o,h);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=p.valueOf&&p.valueOf();if(H!=null&&H!==p)return m.from(H,o,h);const $=w(p);if($)return $;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return m.from(p[Symbol.toPrimitive]("string"),o,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}r(C,"from"),m.from=function(p,o,h){return C(p,o,h)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function k(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}r(k,"assertSize");function c(p,o,h){return k(p),p<=0?b(p):o!==void 0?typeof h=="string"?b(p).fill(o,h):b(p).fill(o):b(p)}r(c,"alloc"),m.alloc=function(p,o,h){return c(p,o,h)};function a(p){return k(p),b(p<0?0:R(p)|0)}r(a,"allocUnsafe"),m.allocUnsafe=function(p){return a(p)},m.allocUnsafeSlow=function(p){return a(p)};function B(p,o){if((typeof o!="string"||o==="")&&(o="utf8"),!m.isEncoding(o))throw new TypeError("Unknown encoding: "+o);const h=I(p,o)|0;let H=b(h);const $=H.write(p,o);return $!==h&&(H=H.slice(0,$)),H}r(B,"fromString");function l(p){const o=p.length<0?0:R(p.length)|0,h=b(o);for(let H=0;H<o;H+=1)h[H]=p[H]&255;return h}r(l,"fromArrayLike");function S(p){if(xe(p,Uint8Array)){const o=new Uint8Array(p);return g(o.buffer,o.byteOffset,o.byteLength)}return l(p)}r(S,"fromArrayView");function g(p,o,h){if(o<0||p.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<o+(h||0))throw new RangeError('"length" is outside of buffer bounds');let H;return o===void 0&&h===void 0?H=new Uint8Array(p):h===void 0?H=new Uint8Array(p,o):H=new Uint8Array(p,o,h),Object.setPrototypeOf(H,m.prototype),H}r(g,"fromArrayBuffer");function w(p){if(m.isBuffer(p)){const o=R(p.length)|0,h=b(o);return h.length===0||p.copy(h,0,0,o),h}if(p.length!==void 0)return typeof p.length!="number"||De(p.length)?b(0):l(p);if(p.type==="Buffer"&&Array.isArray(p.data))return l(p.data)}r(w,"fromObject");function R(p){if(p>=F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return p|0}r(R,"checked");function y(p){return+p!=p&&(p=0),m.alloc(+p)}r(y,"SlowBuffer"),m.isBuffer=r(function(o){return o!=null&&o._isBuffer===!0&&o!==m.prototype},"isBuffer"),m.compare=r(function(o,h){if(xe(o,Uint8Array)&&(o=m.from(o,o.offset,o.byteLength)),xe(h,Uint8Array)&&(h=m.from(h,h.offset,h.byteLength)),!m.isBuffer(o)||!m.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===h)return 0;let H=o.length,$=h.length;for(let ie=0,ne=Math.min(H,$);ie<ne;++ie)if(o[ie]!==h[ie]){H=o[ie],$=h[ie];break}return H<$?-1:$<H?1:0},"compare"),m.isEncoding=r(function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},"isEncoding"),m.concat=r(function(o,h){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return m.alloc(0);let H;if(h===void 0)for(h=0,H=0;H<o.length;++H)h+=o[H].length;const $=m.allocUnsafe(h);let ie=0;for(H=0;H<o.length;++H){let ne=o[H];if(xe(ne,Uint8Array))ie+ne.length>$.length?(m.isBuffer(ne)||(ne=m.from(ne)),ne.copy($,ie)):Uint8Array.prototype.set.call($,ne,ie);else if(m.isBuffer(ne))ne.copy($,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=ne.length}return $},"concat");function I(p,o){if(m.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||xe(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const h=p.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&h===0)return 0;let $=!1;for(;;)switch(o){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Me(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Ye(p).length;default:if($)return H?-1:Me(p).length;o=(""+o).toLowerCase(),$=!0}}r(I,"byteLength"),m.byteLength=I;function A(p,o,h){let H=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,o>>>=0,h<=o))return"";for(p||(p="utf8");;)switch(p){case"hex":return P(this,o,h);case"utf8":case"utf-8":return _(this,o,h);case"ascii":return s(this,o,h);case"latin1":case"binary":return x(this,o,h);case"base64":return Z(this,o,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,o,h);default:if(H)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),H=!0}}r(A,"slowToString"),m.prototype._isBuffer=!0;function L(p,o,h){const H=p[o];p[o]=p[h],p[h]=H}r(L,"swap"),m.prototype.swap16=r(function(){const o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<o;h+=2)L(this,h,h+1);return this},"swap16"),m.prototype.swap32=r(function(){const o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<o;h+=4)L(this,h,h+3),L(this,h+1,h+2);return this},"swap32"),m.prototype.swap64=r(function(){const o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<o;h+=8)L(this,h,h+7),L(this,h+1,h+6),L(this,h+2,h+5),L(this,h+3,h+4);return this},"swap64"),m.prototype.toString=r(function(){const o=this.length;return o===0?"":arguments.length===0?_(this,0,o):A.apply(this,arguments)},"toString"),m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=r(function(o){if(!m.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:m.compare(this,o)===0},"equals"),m.prototype.inspect=r(function(){let o="";const h=te.INSPECT_MAX_BYTES;return o=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(o+=" ... "),"<Buffer "+o+">"},"inspect"),D&&(m.prototype[D]=m.prototype.inspect),m.prototype.compare=r(function(o,h,H,$,ie){if(xe(o,Uint8Array)&&(o=m.from(o,o.offset,o.byteLength)),!m.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(h===void 0&&(h=0),H===void 0&&(H=o?o.length:0),$===void 0&&($=0),ie===void 0&&(ie=this.length),h<0||H>o.length||$<0||ie>this.length)throw new RangeError("out of range index");if($>=ie&&h>=H)return 0;if($>=ie)return-1;if(h>=H)return 1;if(h>>>=0,H>>>=0,$>>>=0,ie>>>=0,this===o)return 0;let ne=ie-$,ge=H-h;const Ue=Math.min(ne,ge),ke=this.slice($,ie),Ne=o.slice(h,H);for(let Ke=0;Ke<Ue;++Ke)if(ke[Ke]!==Ne[Ke]){ne=ke[Ke],ge=Ne[Ke];break}return ne<ge?-1:ge<ne?1:0},"compare");function V(p,o,h,H,$){if(p.length===0)return-1;if(typeof h=="string"?(H=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,De(h)&&(h=$?0:p.length-1),h<0&&(h=p.length+h),h>=p.length){if($)return-1;h=p.length-1}else if(h<0)if($)h=0;else return-1;if(typeof o=="string"&&(o=m.from(o,H)),m.isBuffer(o))return o.length===0?-1:G(p,o,h,H,$);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(p,o,h):Uint8Array.prototype.lastIndexOf.call(p,o,h):G(p,[o],h,H,$);throw new TypeError("val must be string, number or Buffer")}r(V,"bidirectionalIndexOf");function G(p,o,h,H,$){let ie=1,ne=p.length,ge=o.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(p.length<2||o.length<2)return-1;ie=2,ne/=2,ge/=2,h/=2}function Ue(Ne,Ke){return ie===1?Ne[Ke]:Ne.readUInt16BE(Ke*ie)}r(Ue,"read");let ke;if($){let Ne=-1;for(ke=h;ke<ne;ke++)if(Ue(p,ke)===Ue(o,Ne===-1?0:ke-Ne)){if(Ne===-1&&(Ne=ke),ke-Ne+1===ge)return Ne*ie}else Ne!==-1&&(ke-=ke-Ne),Ne=-1}else for(h+ge>ne&&(h=ne-ge),ke=h;ke>=0;ke--){let Ne=!0;for(let Ke=0;Ke<ge;Ke++)if(Ue(p,ke+Ke)!==Ue(o,Ke)){Ne=!1;break}if(Ne)return ke}return-1}r(G,"arrayIndexOf"),m.prototype.includes=r(function(o,h,H){return this.indexOf(o,h,H)!==-1},"includes"),m.prototype.indexOf=r(function(o,h,H){return V(this,o,h,H,!0)},"indexOf"),m.prototype.lastIndexOf=r(function(o,h,H){return V(this,o,h,H,!1)},"lastIndexOf");function X(p,o,h,H){h=Number(h)||0;const $=p.length-h;H?(H=Number(H),H>$&&(H=$)):H=$;const ie=o.length;H>ie/2&&(H=ie/2);let ne;for(ne=0;ne<H;++ne){const ge=parseInt(o.substr(ne*2,2),16);if(De(ge))return ne;p[h+ne]=ge}return ne}r(X,"hexWrite");function he(p,o,h,H){return Pe(Me(o,p.length-h),p,h,H)}r(he,"utf8Write");function ae(p,o,h,H){return Pe(Ee(o),p,h,H)}r(ae,"asciiWrite");function pe(p,o,h,H){return Pe(Ye(o),p,h,H)}r(pe,"base64Write");function ye(p,o,h,H){return Pe(Oe(o,p.length-h),p,h,H)}r(ye,"ucs2Write"),m.prototype.write=r(function(o,h,H,$){if(h===void 0)$="utf8",H=this.length,h=0;else if(H===void 0&&typeof h=="string")$=h,H=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(H)?(H=H>>>0,$===void 0&&($="utf8")):($=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ie=this.length-h;if((H===void 0||H>ie)&&(H=ie),o.length>0&&(H<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let ne=!1;for(;;)switch($){case"hex":return X(this,o,h,H);case"utf8":case"utf-8":return he(this,o,h,H);case"ascii":case"latin1":case"binary":return ae(this,o,h,H);case"base64":return pe(this,o,h,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,o,h,H);default:if(ne)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),ne=!0}},"write"),m.prototype.toJSON=r(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function Z(p,o,h){return o===0&&h===p.length?O.fromByteArray(p):O.fromByteArray(p.slice(o,h))}r(Z,"base64Slice");function _(p,o,h){h=Math.min(p.length,h);const H=[];let $=o;for(;$<h;){const ie=p[$];let ne=null,ge=ie>239?4:ie>223?3:ie>191?2:1;if($+ge<=h){let Ue,ke,Ne,Ke;switch(ge){case 1:ie<128&&(ne=ie);break;case 2:Ue=p[$+1],(Ue&192)===128&&(Ke=(ie&31)<<6|Ue&63,Ke>127&&(ne=Ke));break;case 3:Ue=p[$+1],ke=p[$+2],(Ue&192)===128&&(ke&192)===128&&(Ke=(ie&15)<<12|(Ue&63)<<6|ke&63,Ke>2047&&(Ke<55296||Ke>57343)&&(ne=Ke));break;case 4:Ue=p[$+1],ke=p[$+2],Ne=p[$+3],(Ue&192)===128&&(ke&192)===128&&(Ne&192)===128&&(Ke=(ie&15)<<18|(Ue&63)<<12|(ke&63)<<6|Ne&63,Ke>65535&&Ke<1114112&&(ne=Ke))}}ne===null?(ne=65533,ge=1):ne>65535&&(ne-=65536,H.push(ne>>>10&1023|55296),ne=56320|ne&1023),H.push(ne),$+=ge}return f(H)}r(_,"utf8Slice");const i=4096;function f(p){const o=p.length;if(o<=i)return String.fromCharCode.apply(String,p);let h="",H=0;for(;H<o;)h+=String.fromCharCode.apply(String,p.slice(H,H+=i));return h}r(f,"decodeCodePointsArray");function s(p,o,h){let H="";h=Math.min(p.length,h);for(let $=o;$<h;++$)H+=String.fromCharCode(p[$]&127);return H}r(s,"asciiSlice");function x(p,o,h){let H="";h=Math.min(p.length,h);for(let $=o;$<h;++$)H+=String.fromCharCode(p[$]);return H}r(x,"latin1Slice");function P(p,o,h){const H=p.length;(!o||o<0)&&(o=0),(!h||h<0||h>H)&&(h=H);let $="";for(let ie=o;ie<h;++ie)$+=Re[p[ie]];return $}r(P,"hexSlice");function j(p,o,h){const H=p.slice(o,h);let $="";for(let ie=0;ie<H.length-1;ie+=2)$+=String.fromCharCode(H[ie]+H[ie+1]*256);return $}r(j,"utf16leSlice"),m.prototype.slice=r(function(o,h){const H=this.length;o=~~o,h=h===void 0?H:~~h,o<0?(o+=H,o<0&&(o=0)):o>H&&(o=H),h<0?(h+=H,h<0&&(h=0)):h>H&&(h=H),h<o&&(h=o);const $=this.subarray(o,h);return Object.setPrototypeOf($,m.prototype),$},"slice");function Y(p,o,h){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+o>h)throw new RangeError("Trying to access beyond buffer length")}r(Y,"checkOffset"),m.prototype.readUintLE=m.prototype.readUIntLE=r(function(o,h,H){o=o>>>0,h=h>>>0,H||Y(o,h,this.length);let $=this[o],ie=1,ne=0;for(;++ne<h&&(ie*=256);)$+=this[o+ne]*ie;return $},"readUIntLE"),m.prototype.readUintBE=m.prototype.readUIntBE=r(function(o,h,H){o=o>>>0,h=h>>>0,H||Y(o,h,this.length);let $=this[o+--h],ie=1;for(;h>0&&(ie*=256);)$+=this[o+--h]*ie;return $},"readUIntBE"),m.prototype.readUint8=m.prototype.readUInt8=r(function(o,h){return o=o>>>0,h||Y(o,1,this.length),this[o]},"readUInt8"),m.prototype.readUint16LE=m.prototype.readUInt16LE=r(function(o,h){return o=o>>>0,h||Y(o,2,this.length),this[o]|this[o+1]<<8},"readUInt16LE"),m.prototype.readUint16BE=m.prototype.readUInt16BE=r(function(o,h){return o=o>>>0,h||Y(o,2,this.length),this[o]<<8|this[o+1]},"readUInt16BE"),m.prototype.readUint32LE=m.prototype.readUInt32LE=r(function(o,h){return o=o>>>0,h||Y(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},"readUInt32LE"),m.prototype.readUint32BE=m.prototype.readUInt32BE=r(function(o,h){return o=o>>>0,h||Y(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},"readUInt32BE"),m.prototype.readBigUInt64LE=Ce(r(function(o){o=o>>>0,U(o,"offset");const h=this[o],H=this[o+7];(h===void 0||H===void 0)&&z(o,this.length-8);const $=h+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24,ie=this[++o]+this[++o]*2**8+this[++o]*2**16+H*2**24;return BigInt($)+(BigInt(ie)<<BigInt(32))},"readBigUInt64LE")),m.prototype.readBigUInt64BE=Ce(r(function(o){o=o>>>0,U(o,"offset");const h=this[o],H=this[o+7];(h===void 0||H===void 0)&&z(o,this.length-8);const $=h*2**24+this[++o]*2**16+this[++o]*2**8+this[++o],ie=this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+H;return(BigInt($)<<BigInt(32))+BigInt(ie)},"readBigUInt64BE")),m.prototype.readIntLE=r(function(o,h,H){o=o>>>0,h=h>>>0,H||Y(o,h,this.length);let $=this[o],ie=1,ne=0;for(;++ne<h&&(ie*=256);)$+=this[o+ne]*ie;return ie*=128,$>=ie&&($-=Math.pow(2,8*h)),$},"readIntLE"),m.prototype.readIntBE=r(function(o,h,H){o=o>>>0,h=h>>>0,H||Y(o,h,this.length);let $=h,ie=1,ne=this[o+--$];for(;$>0&&(ie*=256);)ne+=this[o+--$]*ie;return ie*=128,ne>=ie&&(ne-=Math.pow(2,8*h)),ne},"readIntBE"),m.prototype.readInt8=r(function(o,h){return o=o>>>0,h||Y(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},"readInt8"),m.prototype.readInt16LE=r(function(o,h){o=o>>>0,h||Y(o,2,this.length);const H=this[o]|this[o+1]<<8;return H&32768?H|4294901760:H},"readInt16LE"),m.prototype.readInt16BE=r(function(o,h){o=o>>>0,h||Y(o,2,this.length);const H=this[o+1]|this[o]<<8;return H&32768?H|4294901760:H},"readInt16BE"),m.prototype.readInt32LE=r(function(o,h){return o=o>>>0,h||Y(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},"readInt32LE"),m.prototype.readInt32BE=r(function(o,h){return o=o>>>0,h||Y(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},"readInt32BE"),m.prototype.readBigInt64LE=Ce(r(function(o){o=o>>>0,U(o,"offset");const h=this[o],H=this[o+7];(h===void 0||H===void 0)&&z(o,this.length-8);const $=this[o+4]+this[o+5]*2**8+this[o+6]*2**16+(H<<24);return(BigInt($)<<BigInt(32))+BigInt(h+this[++o]*256+this[++o]*65536+this[++o]*16777216)},"readBigInt64LE")),m.prototype.readBigInt64BE=Ce(r(function(o){o=o>>>0,U(o,"offset");const h=this[o],H=this[o+7];(h===void 0||H===void 0)&&z(o,this.length-8);const $=(h<<24)+this[++o]*2**16+this[++o]*2**8+this[++o];return(BigInt($)<<BigInt(32))+BigInt(this[++o]*16777216+this[++o]*65536+this[++o]*256+H)},"readBigInt64BE")),m.prototype.readFloatLE=r(function(o,h){return o=o>>>0,h||Y(o,4,this.length),J.read(this,o,!0,23,4)},"readFloatLE"),m.prototype.readFloatBE=r(function(o,h){return o=o>>>0,h||Y(o,4,this.length),J.read(this,o,!1,23,4)},"readFloatBE"),m.prototype.readDoubleLE=r(function(o,h){return o=o>>>0,h||Y(o,8,this.length),J.read(this,o,!0,52,8)},"readDoubleLE"),m.prototype.readDoubleBE=r(function(o,h){return o=o>>>0,h||Y(o,8,this.length),J.read(this,o,!1,52,8)},"readDoubleBE");function T(p,o,h,H,$,ie){if(!m.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>$||o<ie)throw new RangeError('"value" argument is out of bounds');if(h+H>p.length)throw new RangeError("Index out of range")}r(T,"checkInt"),m.prototype.writeUintLE=m.prototype.writeUIntLE=r(function(o,h,H,$){if(o=+o,h=h>>>0,H=H>>>0,!$){const ge=Math.pow(2,8*H)-1;T(this,o,h,H,ge,0)}let ie=1,ne=0;for(this[h]=o&255;++ne<H&&(ie*=256);)this[h+ne]=o/ie&255;return h+H},"writeUIntLE"),m.prototype.writeUintBE=m.prototype.writeUIntBE=r(function(o,h,H,$){if(o=+o,h=h>>>0,H=H>>>0,!$){const ge=Math.pow(2,8*H)-1;T(this,o,h,H,ge,0)}let ie=H-1,ne=1;for(this[h+ie]=o&255;--ie>=0&&(ne*=256);)this[h+ie]=o/ne&255;return h+H},"writeUIntBE"),m.prototype.writeUint8=m.prototype.writeUInt8=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,1,255,0),this[h]=o&255,h+1},"writeUInt8"),m.prototype.writeUint16LE=m.prototype.writeUInt16LE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,2,65535,0),this[h]=o&255,this[h+1]=o>>>8,h+2},"writeUInt16LE"),m.prototype.writeUint16BE=m.prototype.writeUInt16BE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,2,65535,0),this[h]=o>>>8,this[h+1]=o&255,h+2},"writeUInt16BE"),m.prototype.writeUint32LE=m.prototype.writeUInt32LE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,4,4294967295,0),this[h+3]=o>>>24,this[h+2]=o>>>16,this[h+1]=o>>>8,this[h]=o&255,h+4},"writeUInt32LE"),m.prototype.writeUint32BE=m.prototype.writeUInt32BE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,4,4294967295,0),this[h]=o>>>24,this[h+1]=o>>>16,this[h+2]=o>>>8,this[h+3]=o&255,h+4},"writeUInt32BE");function u(p,o,h,H,$){Se(o,H,$,p,h,7);let ie=Number(o&BigInt(4294967295));p[h++]=ie,ie=ie>>8,p[h++]=ie,ie=ie>>8,p[h++]=ie,ie=ie>>8,p[h++]=ie;let ne=Number(o>>BigInt(32)&BigInt(4294967295));return p[h++]=ne,ne=ne>>8,p[h++]=ne,ne=ne>>8,p[h++]=ne,ne=ne>>8,p[h++]=ne,h}r(u,"wrtBigUInt64LE");function K(p,o,h,H,$){Se(o,H,$,p,h,7);let ie=Number(o&BigInt(4294967295));p[h+7]=ie,ie=ie>>8,p[h+6]=ie,ie=ie>>8,p[h+5]=ie,ie=ie>>8,p[h+4]=ie;let ne=Number(o>>BigInt(32)&BigInt(4294967295));return p[h+3]=ne,ne=ne>>8,p[h+2]=ne,ne=ne>>8,p[h+1]=ne,ne=ne>>8,p[h]=ne,h+8}r(K,"wrtBigUInt64BE"),m.prototype.writeBigUInt64LE=Ce(r(function(o,h=0){return u(this,o,h,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE")),m.prototype.writeBigUInt64BE=Ce(r(function(o,h=0){return K(this,o,h,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE")),m.prototype.writeIntLE=r(function(o,h,H,$){if(o=+o,h=h>>>0,!$){const Ue=Math.pow(2,8*H-1);T(this,o,h,H,Ue-1,-Ue)}let ie=0,ne=1,ge=0;for(this[h]=o&255;++ie<H&&(ne*=256);)o<0&&ge===0&&this[h+ie-1]!==0&&(ge=1),this[h+ie]=(o/ne>>0)-ge&255;return h+H},"writeIntLE"),m.prototype.writeIntBE=r(function(o,h,H,$){if(o=+o,h=h>>>0,!$){const Ue=Math.pow(2,8*H-1);T(this,o,h,H,Ue-1,-Ue)}let ie=H-1,ne=1,ge=0;for(this[h+ie]=o&255;--ie>=0&&(ne*=256);)o<0&&ge===0&&this[h+ie+1]!==0&&(ge=1),this[h+ie]=(o/ne>>0)-ge&255;return h+H},"writeIntBE"),m.prototype.writeInt8=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,1,127,-128),o<0&&(o=255+o+1),this[h]=o&255,h+1},"writeInt8"),m.prototype.writeInt16LE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,2,32767,-32768),this[h]=o&255,this[h+1]=o>>>8,h+2},"writeInt16LE"),m.prototype.writeInt16BE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,2,32767,-32768),this[h]=o>>>8,this[h+1]=o&255,h+2},"writeInt16BE"),m.prototype.writeInt32LE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,4,2147483647,-2147483648),this[h]=o&255,this[h+1]=o>>>8,this[h+2]=o>>>16,this[h+3]=o>>>24,h+4},"writeInt32LE"),m.prototype.writeInt32BE=r(function(o,h,H){return o=+o,h=h>>>0,H||T(this,o,h,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[h]=o>>>24,this[h+1]=o>>>16,this[h+2]=o>>>8,this[h+3]=o&255,h+4},"writeInt32BE"),m.prototype.writeBigInt64LE=Ce(r(function(o,h=0){return u(this,o,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE")),m.prototype.writeBigInt64BE=Ce(r(function(o,h=0){return K(this,o,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function be(p,o,h,H,$,ie){if(h+H>p.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}r(be,"checkIEEE754");function me(p,o,h,H,$){return o=+o,h=h>>>0,$||be(p,o,h,4,34028234663852886e22,-34028234663852886e22),J.write(p,o,h,H,23,4),h+4}r(me,"writeFloat"),m.prototype.writeFloatLE=r(function(o,h,H){return me(this,o,h,!0,H)},"writeFloatLE"),m.prototype.writeFloatBE=r(function(o,h,H){return me(this,o,h,!1,H)},"writeFloatBE");function ce(p,o,h,H,$){return o=+o,h=h>>>0,$||be(p,o,h,8,17976931348623157e292,-17976931348623157e292),J.write(p,o,h,H,52,8),h+8}r(ce,"writeDouble"),m.prototype.writeDoubleLE=r(function(o,h,H){return ce(this,o,h,!0,H)},"writeDoubleLE"),m.prototype.writeDoubleBE=r(function(o,h,H){return ce(this,o,h,!1,H)},"writeDoubleBE"),m.prototype.copy=r(function(o,h,H,$){if(!m.isBuffer(o))throw new TypeError("argument should be a Buffer");if(H||(H=0),!$&&$!==0&&($=this.length),h>=o.length&&(h=o.length),h||(h=0),$>0&&$<H&&($=H),$===H||o.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),o.length-h<$-H&&($=o.length-h+H);const ie=$-H;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,H,$):Uint8Array.prototype.set.call(o,this.subarray(H,$),h),ie},"copy"),m.prototype.fill=r(function(o,h,H,$){if(typeof o=="string"){if(typeof h=="string"?($=h,h=0,H=this.length):typeof H=="string"&&($=H,H=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!m.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(o.length===1){const ne=o.charCodeAt(0);($==="utf8"&&ne<128||$==="latin1")&&(o=ne)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(h<0||this.length<h||this.length<H)throw new RangeError("Out of range index");if(H<=h)return this;h=h>>>0,H=H===void 0?this.length:H>>>0,o||(o=0);let ie;if(typeof o=="number")for(ie=h;ie<H;++ie)this[ie]=o;else{const ne=m.isBuffer(o)?o:m.from(o,$),ge=ne.length;if(ge===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(ie=0;ie<H-h;++ie)this[ie+h]=ne[ie%ge]}return this},"fill");const q={};function Q(p,o,h){q[p]=class extends h{static{r(this,"NodeError")}constructor(){super(),Object.defineProperty(this,"message",{value:o.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}r(Q,"E"),Q("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Q("ERR_INVALID_ARG_TYPE",function(p,o){return`The "${p}" argument must be of type number. Received type ${typeof o}`},TypeError),Q("ERR_OUT_OF_RANGE",function(p,o,h){let H=`The value of "${p}" is out of range.`,$=h;return Number.isInteger(h)&&Math.abs(h)>4294967296?$=oe(String(h)):typeof h=="bigint"&&($=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&($=oe($)),$+="n"),H+=` It must be ${o}. Received ${$}`,H},RangeError);function oe(p){let o="",h=p.length;const H=p[0]==="-"?1:0;for(;h>=H+4;h-=3)o=`_${p.slice(h-3,h)}${o}`;return`${p.slice(0,h)}${o}`}r(oe,"addNumericalSeparator");function we(p,o,h){U(o,"offset"),(p[o]===void 0||p[o+h]===void 0)&&z(o,p.length-(h+1))}r(we,"checkBounds");function Se(p,o,h,H,$,ie){if(p>h||p<o){const ne=typeof o=="bigint"?"n":"";let ge;throw ie>3?o===0||o===BigInt(0)?ge=`>= 0${ne} and < 2${ne} ** ${(ie+1)*8}${ne}`:ge=`>= -(2${ne} ** ${(ie+1)*8-1}${ne}) and < 2 ** ${(ie+1)*8-1}${ne}`:ge=`>= ${o}${ne} and <= ${h}${ne}`,new q.ERR_OUT_OF_RANGE("value",ge,p)}we(H,$,ie)}r(Se,"checkIntBI");function U(p,o){if(typeof p!="number")throw new q.ERR_INVALID_ARG_TYPE(o,"number",p)}r(U,"validateNumber");function z(p,o,h){throw Math.floor(p)!==p?(U(p,h),new q.ERR_OUT_OF_RANGE(h||"offset","an integer",p)):o<0?new q.ERR_BUFFER_OUT_OF_BOUNDS:new q.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${o}`,p)}r(z,"boundsError");const se=/[^+/0-9A-Za-z-_]/g;function de(p){if(p=p.split("=")[0],p=p.trim().replace(se,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}r(de,"base64clean");function Me(p,o){o=o||1/0;let h;const H=p.length;let $=null;const ie=[];for(let ne=0;ne<H;++ne){if(h=p.charCodeAt(ne),h>55295&&h<57344){if(!$){if(h>56319){(o-=3)>-1&&ie.push(239,191,189);continue}else if(ne+1===H){(o-=3)>-1&&ie.push(239,191,189);continue}$=h;continue}if(h<56320){(o-=3)>-1&&ie.push(239,191,189),$=h;continue}h=($-55296<<10|h-56320)+65536}else $&&(o-=3)>-1&&ie.push(239,191,189);if($=null,h<128){if((o-=1)<0)break;ie.push(h)}else if(h<2048){if((o-=2)<0)break;ie.push(h>>6|192,h&63|128)}else if(h<65536){if((o-=3)<0)break;ie.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((o-=4)<0)break;ie.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return ie}r(Me,"utf8ToBytes");function Ee(p){const o=[];for(let h=0;h<p.length;++h)o.push(p.charCodeAt(h)&255);return o}r(Ee,"asciiToBytes");function Oe(p,o){let h,H,$;const ie=[];for(let ne=0;ne<p.length&&!((o-=2)<0);++ne)h=p.charCodeAt(ne),H=h>>8,$=h%256,ie.push($),ie.push(H);return ie}r(Oe,"utf16leToBytes");function Ye(p){return O.toByteArray(de(p))}r(Ye,"base64ToBytes");function Pe(p,o,h,H){let $;for($=0;$<H&&!($+h>=o.length||$>=p.length);++$)o[$+h]=p[$];return $}r(Pe,"blitBuffer");function xe(p,o){return p instanceof o||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===o.name}r(xe,"isInstance");function De(p){return p!==p}r(De,"numberIsNaN");const Re=function(){const p="0123456789abcdef",o=new Array(256);for(let h=0;h<16;++h){const H=h*16;for(let $=0;$<16;++$)o[H+$]=p[h]+p[$]}return o}();function Ce(p){return typeof BigInt>"u"?We:p}r(Ce,"defineBigIntMethod");function We(){throw new Error("BigInt not supported")}r(We,"BufferBigIntNotDefined")},8028:(re,te,N)=>{var O=N(2318);re.exports=function(J){return new O().update(J).digest()}},7187:re=>{var te=typeof Reflect=="object"?Reflect:null,N=te&&typeof te.apply=="function"?te.apply:r(function(A,L,V){return Function.prototype.apply.call(A,L,V)},"ReflectApply"),O;te&&typeof te.ownKeys=="function"?O=te.ownKeys:Object.getOwnPropertySymbols?O=r(function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))},"ReflectOwnKeys"):O=r(function(A){return Object.getOwnPropertyNames(A)},"ReflectOwnKeys");function J(I){console&&console.warn&&console.warn(I)}r(J,"ProcessEmitWarning");var D=Number.isNaN||r(function(A){return A!==A},"NumberIsNaN");function F(){F.init.call(this)}r(F,"EventEmitter"),re.exports=F,re.exports.once=w,F.EventEmitter=F,F.prototype._events=void 0,F.prototype._eventsCount=0,F.prototype._maxListeners=void 0;var d=10;function b(I){if(typeof I!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof I)}r(b,"checkListener"),Object.defineProperty(F,"defaultMaxListeners",{enumerable:!0,get:function(){return d},set:function(I){if(typeof I!="number"||I<0||D(I))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+I+".");d=I}}),F.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},F.prototype.setMaxListeners=r(function(A){if(typeof A!="number"||A<0||D(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},"setMaxListeners");function m(I){return I._maxListeners===void 0?F.defaultMaxListeners:I._maxListeners}r(m,"_getMaxListeners"),F.prototype.getMaxListeners=r(function(){return m(this)},"getMaxListeners"),F.prototype.emit=r(function(A){for(var L=[],V=1;V<arguments.length;V++)L.push(arguments[V]);var G=A==="error",X=this._events;if(X!==void 0)G=G&&X.error===void 0;else if(!G)return!1;if(G){var he;if(L.length>0&&(he=L[0]),he instanceof Error)throw he;var ae=new Error("Unhandled error."+(he?" ("+he.message+")":""));throw ae.context=he,ae}var pe=X[A];if(pe===void 0)return!1;if(typeof pe=="function")N(pe,this,L);else for(var ye=pe.length,Z=l(pe,ye),V=0;V<ye;++V)N(Z[V],this,L);return!0},"emit");function C(I,A,L,V){var G,X,he;if(b(L),X=I._events,X===void 0?(X=I._events=Object.create(null),I._eventsCount=0):(X.newListener!==void 0&&(I.emit("newListener",A,L.listener?L.listener:L),X=I._events),he=X[A]),he===void 0)he=X[A]=L,++I._eventsCount;else if(typeof he=="function"?he=X[A]=V?[L,he]:[he,L]:V?he.unshift(L):he.push(L),G=m(I),G>0&&he.length>G&&!he.warned){he.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+he.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=I,ae.type=A,ae.count=he.length,J(ae)}return I}r(C,"_addListener"),F.prototype.addListener=r(function(A,L){return C(this,A,L,!1)},"addListener"),F.prototype.on=F.prototype.addListener,F.prototype.prependListener=r(function(A,L){return C(this,A,L,!0)},"prependListener");function k(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}r(k,"onceWrapper");function c(I,A,L){var V={fired:!1,wrapFn:void 0,target:I,type:A,listener:L},G=k.bind(V);return G.listener=L,V.wrapFn=G,G}r(c,"_onceWrap"),F.prototype.once=r(function(A,L){return b(L),this.on(A,c(this,A,L)),this},"once"),F.prototype.prependOnceListener=r(function(A,L){return b(L),this.prependListener(A,c(this,A,L)),this},"prependOnceListener"),F.prototype.removeListener=r(function(A,L){var V,G,X,he,ae;if(b(L),G=this._events,G===void 0)return this;if(V=G[A],V===void 0)return this;if(V===L||V.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete G[A],G.removeListener&&this.emit("removeListener",A,V.listener||L));else if(typeof V!="function"){for(X=-1,he=V.length-1;he>=0;he--)if(V[he]===L||V[he].listener===L){ae=V[he].listener,X=he;break}if(X<0)return this;X===0?V.shift():S(V,X),V.length===1&&(G[A]=V[0]),G.removeListener!==void 0&&this.emit("removeListener",A,ae||L)}return this},"removeListener"),F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=r(function(A){var L,V,G;if(V=this._events,V===void 0)return this;if(V.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):V[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete V[A]),this;if(arguments.length===0){var X=Object.keys(V),he;for(G=0;G<X.length;++G)he=X[G],he!=="removeListener"&&this.removeAllListeners(he);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=V[A],typeof L=="function")this.removeListener(A,L);else if(L!==void 0)for(G=L.length-1;G>=0;G--)this.removeListener(A,L[G]);return this},"removeAllListeners");function a(I,A,L){var V=I._events;if(V===void 0)return[];var G=V[A];return G===void 0?[]:typeof G=="function"?L?[G.listener||G]:[G]:L?g(G):l(G,G.length)}r(a,"_listeners"),F.prototype.listeners=r(function(A){return a(this,A,!0)},"listeners"),F.prototype.rawListeners=r(function(A){return a(this,A,!1)},"rawListeners"),F.listenerCount=function(I,A){return typeof I.listenerCount=="function"?I.listenerCount(A):B.call(I,A)},F.prototype.listenerCount=B;function B(I){var A=this._events;if(A!==void 0){var L=A[I];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}r(B,"listenerCount"),F.prototype.eventNames=r(function(){return this._eventsCount>0?O(this._events):[]},"eventNames");function l(I,A){for(var L=new Array(A),V=0;V<A;++V)L[V]=I[V];return L}r(l,"arrayClone");function S(I,A){for(;A+1<I.length;A++)I[A]=I[A+1];I.pop()}r(S,"spliceOne");function g(I){for(var A=new Array(I.length),L=0;L<A.length;++L)A[L]=I[L].listener||I[L];return A}r(g,"unwrapListeners");function w(I,A){return new Promise(function(L,V){function G(he){I.removeListener(A,X),V(he)}r(G,"errorListener");function X(){typeof I.removeListener=="function"&&I.removeListener("error",G),L([].slice.call(arguments))}r(X,"resolver"),y(I,A,X,{once:!0}),A!=="error"&&R(I,G,{once:!0})})}r(w,"once");function R(I,A,L){typeof I.on=="function"&&y(I,"error",A,L)}r(R,"addErrorHandlerIfEventEmitter");function y(I,A,L,V){if(typeof I.on=="function")V.once?I.once(A,L):I.on(A,L);else if(typeof I.addEventListener=="function")I.addEventListener(A,r(function G(X){V.once&&I.removeEventListener(A,G),L(X)},"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof I)}r(y,"eventTargetAgnosticAddListener")},3349:(re,te,N)=>{var O=N(9509).Buffer,J=N(8473).Transform,D=N(5717);function F(b,m){if(!O.isBuffer(b)&&typeof b!="string")throw new TypeError(m+" must be a string or a buffer")}r(F,"throwIfNotStringOrBuffer");function d(b){J.call(this),this._block=O.allocUnsafe(b),this._blockSize=b,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(d,"HashBase"),D(d,J),d.prototype._transform=function(b,m,C){var k=null;try{this.update(b,m)}catch(c){k=c}C(k)},d.prototype._flush=function(b){var m=null;try{this.push(this.digest())}catch(C){m=C}b(m)},d.prototype.update=function(b,m){if(F(b,"Data"),this._finalized)throw new Error("Digest already called");O.isBuffer(b)||(b=O.from(b,m));for(var C=this._block,k=0;this._blockOffset+b.length-k>=this._blockSize;){for(var c=this._blockOffset;c<this._blockSize;)C[c++]=b[k++];this._update(),this._blockOffset=0}for(;k<b.length;)C[this._blockOffset++]=b[k++];for(var a=0,B=b.length*8;B>0;++a)this._length[a]+=B,B=this._length[a]/4294967296|0,B>0&&(this._length[a]-=4294967296*B);return this},d.prototype._update=function(){throw new Error("_update is not implemented")},d.prototype.digest=function(b){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var m=this._digest();b!==void 0&&(m=m.toString(b)),this._block.fill(0),this._blockOffset=0;for(var C=0;C<4;++C)this._length[C]=0;return m},d.prototype._digest=function(){throw new Error("_digest is not implemented")},re.exports=d},3715:(re,te,N)=>{var O=te;O.utils=N(6436),O.common=N(5772),O.sha=N(9041),O.ripemd=N(2949),O.hmac=N(2344),O.sha1=O.sha.sha1,O.sha256=O.sha.sha256,O.sha224=O.sha.sha224,O.sha384=O.sha.sha384,O.sha512=O.sha.sha512,O.ripemd160=O.ripemd.ripemd160},5772:(re,te,N)=>{var O=N(6436),J=N(9746);function D(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}r(D,"BlockHash"),te.BlockHash=D,D.prototype.update=r(function(d,b){if(d=O.toArray(d,b),this.pending?this.pending=this.pending.concat(d):this.pending=d,this.pendingTotal+=d.length,this.pending.length>=this._delta8){d=this.pending;var m=d.length%this._delta8;this.pending=d.slice(d.length-m,d.length),this.pending.length===0&&(this.pending=null),d=O.join32(d,0,d.length-m,this.endian);for(var C=0;C<d.length;C+=this._delta32)this._update(d,C,C+this._delta32)}return this},"update"),D.prototype.digest=r(function(d){return this.update(this._pad()),J(this.pending===null),this._digest(d)},"digest"),D.prototype._pad=r(function(){var d=this.pendingTotal,b=this._delta8,m=b-(d+this.padLength)%b,C=new Array(m+this.padLength);C[0]=128;for(var k=1;k<m;k++)C[k]=0;if(d<<=3,this.endian==="big"){for(var c=8;c<this.padLength;c++)C[k++]=0;C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=d>>>24&255,C[k++]=d>>>16&255,C[k++]=d>>>8&255,C[k++]=d&255}else for(C[k++]=d&255,C[k++]=d>>>8&255,C[k++]=d>>>16&255,C[k++]=d>>>24&255,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,c=8;c<this.padLength;c++)C[k++]=0;return C},"pad")},2344:(re,te,N)=>{var O=N(6436),J=N(9746);function D(F,d,b){if(!(this instanceof D))return new D(F,d,b);this.Hash=F,this.blockSize=F.blockSize/8,this.outSize=F.outSize/8,this.inner=null,this.outer=null,this._init(O.toArray(d,b))}r(D,"Hmac"),re.exports=D,D.prototype._init=r(function(d){d.length>this.blockSize&&(d=new this.Hash().update(d).digest()),J(d.length<=this.blockSize);for(var b=d.length;b<this.blockSize;b++)d.push(0);for(b=0;b<d.length;b++)d[b]^=54;for(this.inner=new this.Hash().update(d),b=0;b<d.length;b++)d[b]^=106;this.outer=new this.Hash().update(d)},"init"),D.prototype.update=r(function(d,b){return this.inner.update(d,b),this},"update"),D.prototype.digest=r(function(d){return this.outer.update(this.inner.digest()),this.outer.digest(d)},"digest")},2949:(re,te,N)=>{var O=N(6436),J=N(5772),D=O.rotl32,F=O.sum32,d=O.sum32_3,b=O.sum32_4,m=J.BlockHash;function C(){if(!(this instanceof C))return new C;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r(C,"RIPEMD160"),O.inherits(C,m),te.ripemd160=C,C.blockSize=512,C.outSize=160,C.hmacStrength=192,C.padLength=64,C.prototype._update=r(function(R,y){for(var I=this.h[0],A=this.h[1],L=this.h[2],V=this.h[3],G=this.h[4],X=I,he=A,ae=L,pe=V,ye=G,Z=0;Z<80;Z++){var _=F(D(b(I,k(Z,A,L,V),R[B[Z]+y],c(Z)),S[Z]),G);I=G,G=V,V=D(L,10),L=A,A=_,_=F(D(b(X,k(79-Z,he,ae,pe),R[l[Z]+y],a(Z)),g[Z]),ye),X=ye,ye=pe,pe=D(ae,10),ae=he,he=_}_=d(this.h[1],L,pe),this.h[1]=d(this.h[2],V,ye),this.h[2]=d(this.h[3],G,X),this.h[3]=d(this.h[4],I,he),this.h[4]=d(this.h[0],A,ae),this.h[0]=_},"update"),C.prototype._digest=r(function(R){return R==="hex"?O.toHex32(this.h,"little"):O.split32(this.h,"little")},"digest");function k(w,R,y,I){return w<=15?R^y^I:w<=31?R&y|~R&I:w<=47?(R|~y)^I:w<=63?R&I|y&~I:R^(y|~I)}r(k,"f");function c(w){return w<=15?0:w<=31?1518500249:w<=47?1859775393:w<=63?2400959708:2840853838}r(c,"K");function a(w){return w<=15?1352829926:w<=31?1548603684:w<=47?1836072691:w<=63?2053994217:0}r(a,"Kh");var B=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],S=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},9041:(re,te,N)=>{te.sha1=N(4761),te.sha224=N(799),te.sha256=N(9344),te.sha384=N(772),te.sha512=N(5900)},4761:(re,te,N)=>{var O=N(6436),J=N(5772),D=N(7038),F=O.rotl32,d=O.sum32,b=O.sum32_5,m=D.ft_1,C=J.BlockHash,k=[1518500249,1859775393,2400959708,3395469782];function c(){if(!(this instanceof c))return new c;C.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r(c,"SHA1"),O.inherits(c,C),re.exports=c,c.blockSize=512,c.outSize=160,c.hmacStrength=80,c.padLength=64,c.prototype._update=r(function(B,l){for(var S=this.W,g=0;g<16;g++)S[g]=B[l+g];for(;g<S.length;g++)S[g]=F(S[g-3]^S[g-8]^S[g-14]^S[g-16],1);var w=this.h[0],R=this.h[1],y=this.h[2],I=this.h[3],A=this.h[4];for(g=0;g<S.length;g++){var L=~~(g/20),V=b(F(w,5),m(L,R,y,I),A,S[g],k[L]);A=I,I=y,y=F(R,30),R=w,w=V}this.h[0]=d(this.h[0],w),this.h[1]=d(this.h[1],R),this.h[2]=d(this.h[2],y),this.h[3]=d(this.h[3],I),this.h[4]=d(this.h[4],A)},"_update"),c.prototype._digest=r(function(B){return B==="hex"?O.toHex32(this.h,"big"):O.split32(this.h,"big")},"digest")},799:(re,te,N)=>{var O=N(6436),J=N(9344);function D(){if(!(this instanceof D))return new D;J.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r(D,"SHA224"),O.inherits(D,J),re.exports=D,D.blockSize=512,D.outSize=224,D.hmacStrength=192,D.padLength=64,D.prototype._digest=r(function(d){return d==="hex"?O.toHex32(this.h.slice(0,7),"big"):O.split32(this.h.slice(0,7),"big")},"digest")},9344:(re,te,N)=>{var O=N(6436),J=N(5772),D=N(7038),F=N(9746),d=O.sum32,b=O.sum32_4,m=O.sum32_5,C=D.ch32,k=D.maj32,c=D.s0_256,a=D.s1_256,B=D.g0_256,l=D.g1_256,S=J.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;S.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r(w,"SHA256"),O.inherits(w,S),re.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=r(function(y,I){for(var A=this.W,L=0;L<16;L++)A[L]=y[I+L];for(;L<A.length;L++)A[L]=b(l(A[L-2]),A[L-7],B(A[L-15]),A[L-16]);var V=this.h[0],G=this.h[1],X=this.h[2],he=this.h[3],ae=this.h[4],pe=this.h[5],ye=this.h[6],Z=this.h[7];for(F(this.k.length===A.length),L=0;L<A.length;L++){var _=m(Z,a(ae),C(ae,pe,ye),this.k[L],A[L]),i=d(c(V),k(V,G,X));Z=ye,ye=pe,pe=ae,ae=d(he,_),he=X,X=G,G=V,V=d(_,i)}this.h[0]=d(this.h[0],V),this.h[1]=d(this.h[1],G),this.h[2]=d(this.h[2],X),this.h[3]=d(this.h[3],he),this.h[4]=d(this.h[4],ae),this.h[5]=d(this.h[5],pe),this.h[6]=d(this.h[6],ye),this.h[7]=d(this.h[7],Z)},"_update"),w.prototype._digest=r(function(y){return y==="hex"?O.toHex32(this.h,"big"):O.split32(this.h,"big")},"digest")},772:(re,te,N)=>{var O=N(6436),J=N(5900);function D(){if(!(this instanceof D))return new D;J.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r(D,"SHA384"),O.inherits(D,J),re.exports=D,D.blockSize=1024,D.outSize=384,D.hmacStrength=192,D.padLength=128,D.prototype._digest=r(function(d){return d==="hex"?O.toHex32(this.h.slice(0,12),"big"):O.split32(this.h.slice(0,12),"big")},"digest")},5900:(re,te,N)=>{var O=N(6436),J=N(5772),D=N(9746),F=O.rotr64_hi,d=O.rotr64_lo,b=O.shr64_hi,m=O.shr64_lo,C=O.sum64,k=O.sum64_hi,c=O.sum64_lo,a=O.sum64_4_hi,B=O.sum64_4_lo,l=O.sum64_5_hi,S=O.sum64_5_lo,g=J.BlockHash,w=[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 R(){if(!(this instanceof R))return new R;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=w,this.W=new Array(160)}r(R,"SHA512"),O.inherits(R,g),re.exports=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=r(function(i,f){for(var s=this.W,x=0;x<32;x++)s[x]=i[f+x];for(;x<s.length;x+=2){var P=ye(s[x-4],s[x-3]),j=Z(s[x-4],s[x-3]),Y=s[x-14],T=s[x-13],u=ae(s[x-30],s[x-29]),K=pe(s[x-30],s[x-29]),be=s[x-32],me=s[x-31];s[x]=a(P,j,Y,T,u,K,be,me),s[x+1]=B(P,j,Y,T,u,K,be,me)}},"_prepareBlock"),R.prototype._update=r(function(i,f){this._prepareBlock(i,f);var s=this.W,x=this.h[0],P=this.h[1],j=this.h[2],Y=this.h[3],T=this.h[4],u=this.h[5],K=this.h[6],be=this.h[7],me=this.h[8],ce=this.h[9],q=this.h[10],Q=this.h[11],oe=this.h[12],we=this.h[13],Se=this.h[14],U=this.h[15];D(this.k.length===s.length);for(var z=0;z<s.length;z+=2){var se=Se,de=U,Me=X(me,ce),Ee=he(me,ce),Oe=y(me,ce,q,Q,oe,we),Ye=I(me,ce,q,Q,oe,we),Pe=this.k[z],xe=this.k[z+1],De=s[z],Re=s[z+1],Ce=l(se,de,Me,Ee,Oe,Ye,Pe,xe,De,Re),We=S(se,de,Me,Ee,Oe,Ye,Pe,xe,De,Re);se=V(x,P),de=G(x,P),Me=A(x,P,j,Y,T,u),Ee=L(x,P,j,Y,T,u);var p=k(se,de,Me,Ee),o=c(se,de,Me,Ee);Se=oe,U=we,oe=q,we=Q,q=me,Q=ce,me=k(K,be,Ce,We),ce=c(be,be,Ce,We),K=T,be=u,T=j,u=Y,j=x,Y=P,x=k(Ce,We,p,o),P=c(Ce,We,p,o)}C(this.h,0,x,P),C(this.h,2,j,Y),C(this.h,4,T,u),C(this.h,6,K,be),C(this.h,8,me,ce),C(this.h,10,q,Q),C(this.h,12,oe,we),C(this.h,14,Se,U)},"_update"),R.prototype._digest=r(function(i){return i==="hex"?O.toHex32(this.h,"big"):O.split32(this.h,"big")},"digest");function y(_,i,f,s,x){var P=_&f^~_&x;return P<0&&(P+=4294967296),P}r(y,"ch64_hi");function I(_,i,f,s,x,P){var j=i&s^~i&P;return j<0&&(j+=4294967296),j}r(I,"ch64_lo");function A(_,i,f,s,x){var P=_&f^_&x^f&x;return P<0&&(P+=4294967296),P}r(A,"maj64_hi");function L(_,i,f,s,x,P){var j=i&s^i&P^s&P;return j<0&&(j+=4294967296),j}r(L,"maj64_lo");function V(_,i){var f=F(_,i,28),s=F(i,_,2),x=F(i,_,7),P=f^s^x;return P<0&&(P+=4294967296),P}r(V,"s0_512_hi");function G(_,i){var f=d(_,i,28),s=d(i,_,2),x=d(i,_,7),P=f^s^x;return P<0&&(P+=4294967296),P}r(G,"s0_512_lo");function X(_,i){var f=F(_,i,14),s=F(_,i,18),x=F(i,_,9),P=f^s^x;return P<0&&(P+=4294967296),P}r(X,"s1_512_hi");function he(_,i){var f=d(_,i,14),s=d(_,i,18),x=d(i,_,9),P=f^s^x;return P<0&&(P+=4294967296),P}r(he,"s1_512_lo");function ae(_,i){var f=F(_,i,1),s=F(_,i,8),x=b(_,i,7),P=f^s^x;return P<0&&(P+=4294967296),P}r(ae,"g0_512_hi");function pe(_,i){var f=d(_,i,1),s=d(_,i,8),x=m(_,i,7),P=f^s^x;return P<0&&(P+=4294967296),P}r(pe,"g0_512_lo");function ye(_,i){var f=F(_,i,19),s=F(i,_,29),x=b(_,i,6),P=f^s^x;return P<0&&(P+=4294967296),P}r(ye,"g1_512_hi");function Z(_,i){var f=d(_,i,19),s=d(i,_,29),x=m(_,i,6),P=f^s^x;return P<0&&(P+=4294967296),P}r(Z,"g1_512_lo")},7038:(re,te,N)=>{var O=N(6436),J=O.rotr32;function D(a,B,l,S){if(a===0)return F(B,l,S);if(a===1||a===3)return b(B,l,S);if(a===2)return d(B,l,S)}r(D,"ft_1"),te.ft_1=D;function F(a,B,l){return a&B^~a&l}r(F,"ch32"),te.ch32=F;function d(a,B,l){return a&B^a&l^B&l}r(d,"maj32"),te.maj32=d;function b(a,B,l){return a^B^l}r(b,"p32"),te.p32=b;function m(a){return J(a,2)^J(a,13)^J(a,22)}r(m,"s0_256"),te.s0_256=m;function C(a){return J(a,6)^J(a,11)^J(a,25)}r(C,"s1_256"),te.s1_256=C;function k(a){return J(a,7)^J(a,18)^a>>>3}r(k,"g0_256"),te.g0_256=k;function c(a){return J(a,17)^J(a,19)^a>>>10}r(c,"g1_256"),te.g1_256=c},6436:(re,te,N)=>{var O=N(9746),J=N(5717);te.inherits=J;function D(Z,_){return(Z.charCodeAt(_)&64512)!==55296||_<0||_+1>=Z.length?!1:(Z.charCodeAt(_+1)&64512)===56320}r(D,"isSurrogatePair");function F(Z,_){if(Array.isArray(Z))return Z.slice();if(!Z)return[];var i=[];if(typeof Z=="string")if(_){if(_==="hex")for(Z=Z.replace(/[^a-z0-9]+/ig,""),Z.length%2!==0&&(Z="0"+Z),s=0;s<Z.length;s+=2)i.push(parseInt(Z[s]+Z[s+1],16))}else for(var f=0,s=0;s<Z.length;s++){var x=Z.charCodeAt(s);x<128?i[f++]=x:x<2048?(i[f++]=x>>6|192,i[f++]=x&63|128):D(Z,s)?(x=65536+((x&1023)<<10)+(Z.charCodeAt(++s)&1023),i[f++]=x>>18|240,i[f++]=x>>12&63|128,i[f++]=x>>6&63|128,i[f++]=x&63|128):(i[f++]=x>>12|224,i[f++]=x>>6&63|128,i[f++]=x&63|128)}else for(s=0;s<Z.length;s++)i[s]=Z[s]|0;return i}r(F,"toArray"),te.toArray=F;function d(Z){for(var _="",i=0;i<Z.length;i++)_+=C(Z[i].toString(16));return _}r(d,"toHex"),te.toHex=d;function b(Z){var _=Z>>>24|Z>>>8&65280|Z<<8&16711680|(Z&255)<<24;return _>>>0}r(b,"htonl"),te.htonl=b;function m(Z,_){for(var i="",f=0;f<Z.length;f++){var s=Z[f];_==="little"&&(s=b(s)),i+=k(s.toString(16))}return i}r(m,"toHex32"),te.toHex32=m;function C(Z){return Z.length===1?"0"+Z:Z}r(C,"zero2"),te.zero2=C;function k(Z){return Z.length===7?"0"+Z:Z.length===6?"00"+Z:Z.length===5?"000"+Z:Z.length===4?"0000"+Z:Z.length===3?"00000"+Z:Z.length===2?"000000"+Z:Z.length===1?"0000000"+Z:Z}r(k,"zero8"),te.zero8=k;function c(Z,_,i,f){var s=i-_;O(s%4===0);for(var x=new Array(s/4),P=0,j=_;P<x.length;P++,j+=4){var Y;f==="big"?Y=Z[j]<<24|Z[j+1]<<16|Z[j+2]<<8|Z[j+3]:Y=Z[j+3]<<24|Z[j+2]<<16|Z[j+1]<<8|Z[j],x[P]=Y>>>0}return x}r(c,"join32"),te.join32=c;function a(Z,_){for(var i=new Array(Z.length*4),f=0,s=0;f<Z.length;f++,s+=4){var x=Z[f];_==="big"?(i[s]=x>>>24,i[s+1]=x>>>16&255,i[s+2]=x>>>8&255,i[s+3]=x&255):(i[s+3]=x>>>24,i[s+2]=x>>>16&255,i[s+1]=x>>>8&255,i[s]=x&255)}return i}r(a,"split32"),te.split32=a;function B(Z,_){return Z>>>_|Z<<32-_}r(B,"rotr32"),te.rotr32=B;function l(Z,_){return Z<<_|Z>>>32-_}r(l,"rotl32"),te.rotl32=l;function S(Z,_){return Z+_>>>0}r(S,"sum32"),te.sum32=S;function g(Z,_,i){return Z+_+i>>>0}r(g,"sum32_3"),te.sum32_3=g;function w(Z,_,i,f){return Z+_+i+f>>>0}r(w,"sum32_4"),te.sum32_4=w;function R(Z,_,i,f,s){return Z+_+i+f+s>>>0}r(R,"sum32_5"),te.sum32_5=R;function y(Z,_,i,f){var s=Z[_],x=Z[_+1],P=f+x>>>0,j=(P<f?1:0)+i+s;Z[_]=j>>>0,Z[_+1]=P}r(y,"sum64"),te.sum64=y;function I(Z,_,i,f){var s=_+f>>>0,x=(s<_?1:0)+Z+i;return x>>>0}r(I,"sum64_hi"),te.sum64_hi=I;function A(Z,_,i,f){var s=_+f;return s>>>0}r(A,"sum64_lo"),te.sum64_lo=A;function L(Z,_,i,f,s,x,P,j){var Y=0,T=_;T=T+f>>>0,Y+=T<_?1:0,T=T+x>>>0,Y+=T<x?1:0,T=T+j>>>0,Y+=T<j?1:0;var u=Z+i+s+P+Y;return u>>>0}r(L,"sum64_4_hi"),te.sum64_4_hi=L;function V(Z,_,i,f,s,x,P,j){var Y=_+f+x+j;return Y>>>0}r(V,"sum64_4_lo"),te.sum64_4_lo=V;function G(Z,_,i,f,s,x,P,j,Y,T){var u=0,K=_;K=K+f>>>0,u+=K<_?1:0,K=K+x>>>0,u+=K<x?1:0,K=K+j>>>0,u+=K<j?1:0,K=K+T>>>0,u+=K<T?1:0;var be=Z+i+s+P+Y+u;return be>>>0}r(G,"sum64_5_hi"),te.sum64_5_hi=G;function X(Z,_,i,f,s,x,P,j,Y,T){var u=_+f+x+j+T;return u>>>0}r(X,"sum64_5_lo"),te.sum64_5_lo=X;function he(Z,_,i){var f=_<<32-i|Z>>>i;return f>>>0}r(he,"rotr64_hi"),te.rotr64_hi=he;function ae(Z,_,i){var f=Z<<32-i|_>>>i;return f>>>0}r(ae,"rotr64_lo"),te.rotr64_lo=ae;function pe(Z,_,i){return Z>>>i}r(pe,"shr64_hi"),te.shr64_hi=pe;function ye(Z,_,i){var f=Z<<32-i|_>>>i;return f>>>0}r(ye,"shr64_lo"),te.shr64_lo=ye},2156:(re,te,N)=>{var O=N(3715),J=N(4504),D=N(9746);function F(d){if(!(this instanceof F))return new F(d);this.hash=d.hash,this.predResist=!!d.predResist,this.outLen=this.hash.outSize,this.minEntropy=d.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var b=J.toArray(d.entropy,d.entropyEnc||"hex"),m=J.toArray(d.nonce,d.nonceEnc||"hex"),C=J.toArray(d.pers,d.persEnc||"hex");D(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(b,m,C)}r(F,"HmacDRBG"),re.exports=F,F.prototype._init=r(function(b,m,C){var k=b.concat(m).concat(C);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var c=0;c<this.V.length;c++)this.K[c]=0,this.V[c]=1;this._update(k),this._reseed=1,this.reseedInterval=281474976710656},"init"),F.prototype._hmac=r(function(){return new O.hmac(this.hash,this.K)},"hmac"),F.prototype._update=r(function(b){var m=this._hmac().update(this.V).update([0]);b&&(m=m.update(b)),this.K=m.digest(),this.V=this._hmac().update(this.V).digest(),b&&(this.K=this._hmac().update(this.V).update([1]).update(b).digest(),this.V=this._hmac().update(this.V).digest())},"update"),F.prototype.reseed=r(function(b,m,C,k){typeof m!="string"&&(k=C,C=m,m=null),b=J.toArray(b,m),C=J.toArray(C,k),D(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(b.concat(C||[])),this._reseed=1},"reseed"),F.prototype.generate=r(function(b,m,C,k){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof m!="string"&&(k=C,C=m,m=null),C&&(C=J.toArray(C,k||"hex"),this._update(C));for(var c=[];c.length<b;)this.V=this._hmac().update(this.V).digest(),c=c.concat(this.V);var a=c.slice(0,b);return this._update(C),this._reseed++,J.encode(a,m)},"generate")},645:(re,te)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */te.read=function(N,O,J,D,F){var d,b,m=F*8-D-1,C=(1<<m)-1,k=C>>1,c=-7,a=J?F-1:0,B=J?-1:1,l=N[O+a];for(a+=B,d=l&(1<<-c)-1,l>>=-c,c+=m;c>0;d=d*256+N[O+a],a+=B,c-=8);for(b=d&(1<<-c)-1,d>>=-c,c+=D;c>0;b=b*256+N[O+a],a+=B,c-=8);if(d===0)d=1-k;else{if(d===C)return b?NaN:(l?-1:1)*(1/0);b=b+Math.pow(2,D),d=d-k}return(l?-1:1)*b*Math.pow(2,d-D)},te.write=function(N,O,J,D,F,d){var b,m,C,k=d*8-F-1,c=(1<<k)-1,a=c>>1,B=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=D?0:d-1,S=D?1:-1,g=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(m=isNaN(O)?1:0,b=c):(b=Math.floor(Math.log(O)/Math.LN2),O*(C=Math.pow(2,-b))<1&&(b--,C*=2),b+a>=1?O+=B/C:O+=B*Math.pow(2,1-a),O*C>=2&&(b++,C/=2),b+a>=c?(m=0,b=c):b+a>=1?(m=(O*C-1)*Math.pow(2,F),b=b+a):(m=O*Math.pow(2,a-1)*Math.pow(2,F),b=0));F>=8;N[J+l]=m&255,l+=S,m/=256,F-=8);for(b=b<<F|m,k+=F;k>0;N[J+l]=b&255,l+=S,b/=256,k-=8);N[J+l-S]|=g*128}},5717:re=>{typeof Object.create=="function"?re.exports=r(function(N,O){O&&(N.super_=O,N.prototype=Object.create(O.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):re.exports=r(function(N,O){if(O){N.super_=O;var J=r(function(){},"TempCtor");J.prototype=O.prototype,N.prototype=new J,N.prototype.constructor=N}},"inherits")},2318:(re,te,N)=>{var O=N(5717),J=N(3349),D=N(9509).Buffer,F=new Array(16);function d(){J.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}r(d,"MD5"),O(d,J),d.prototype._update=function(){for(var a=F,B=0;B<16;++B)a[B]=this._block.readInt32LE(B*4);var l=this._a,S=this._b,g=this._c,w=this._d;l=m(l,S,g,w,a[0],3614090360,7),w=m(w,l,S,g,a[1],3905402710,12),g=m(g,w,l,S,a[2],606105819,17),S=m(S,g,w,l,a[3],3250441966,22),l=m(l,S,g,w,a[4],4118548399,7),w=m(w,l,S,g,a[5],1200080426,12),g=m(g,w,l,S,a[6],2821735955,17),S=m(S,g,w,l,a[7],4249261313,22),l=m(l,S,g,w,a[8],1770035416,7),w=m(w,l,S,g,a[9],2336552879,12),g=m(g,w,l,S,a[10],4294925233,17),S=m(S,g,w,l,a[11],2304563134,22),l=m(l,S,g,w,a[12],1804603682,7),w=m(w,l,S,g,a[13],4254626195,12),g=m(g,w,l,S,a[14],2792965006,17),S=m(S,g,w,l,a[15],1236535329,22),l=C(l,S,g,w,a[1],4129170786,5),w=C(w,l,S,g,a[6],3225465664,9),g=C(g,w,l,S,a[11],643717713,14),S=C(S,g,w,l,a[0],3921069994,20),l=C(l,S,g,w,a[5],3593408605,5),w=C(w,l,S,g,a[10],38016083,9),g=C(g,w,l,S,a[15],3634488961,14),S=C(S,g,w,l,a[4],3889429448,20),l=C(l,S,g,w,a[9],568446438,5),w=C(w,l,S,g,a[14],3275163606,9),g=C(g,w,l,S,a[3],4107603335,14),S=C(S,g,w,l,a[8],1163531501,20),l=C(l,S,g,w,a[13],2850285829,5),w=C(w,l,S,g,a[2],4243563512,9),g=C(g,w,l,S,a[7],1735328473,14),S=C(S,g,w,l,a[12],2368359562,20),l=k(l,S,g,w,a[5],4294588738,4),w=k(w,l,S,g,a[8],2272392833,11),g=k(g,w,l,S,a[11],1839030562,16),S=k(S,g,w,l,a[14],4259657740,23),l=k(l,S,g,w,a[1],2763975236,4),w=k(w,l,S,g,a[4],1272893353,11),g=k(g,w,l,S,a[7],4139469664,16),S=k(S,g,w,l,a[10],3200236656,23),l=k(l,S,g,w,a[13],681279174,4),w=k(w,l,S,g,a[0],3936430074,11),g=k(g,w,l,S,a[3],3572445317,16),S=k(S,g,w,l,a[6],76029189,23),l=k(l,S,g,w,a[9],3654602809,4),w=k(w,l,S,g,a[12],3873151461,11),g=k(g,w,l,S,a[15],530742520,16),S=k(S,g,w,l,a[2],3299628645,23),l=c(l,S,g,w,a[0],4096336452,6),w=c(w,l,S,g,a[7],1126891415,10),g=c(g,w,l,S,a[14],2878612391,15),S=c(S,g,w,l,a[5],4237533241,21),l=c(l,S,g,w,a[12],1700485571,6),w=c(w,l,S,g,a[3],2399980690,10),g=c(g,w,l,S,a[10],4293915773,15),S=c(S,g,w,l,a[1],2240044497,21),l=c(l,S,g,w,a[8],1873313359,6),w=c(w,l,S,g,a[15],4264355552,10),g=c(g,w,l,S,a[6],2734768916,15),S=c(S,g,w,l,a[13],1309151649,21),l=c(l,S,g,w,a[4],4149444226,6),w=c(w,l,S,g,a[11],3174756917,10),g=c(g,w,l,S,a[2],718787259,15),S=c(S,g,w,l,a[9],3951481745,21),this._a=this._a+l|0,this._b=this._b+S|0,this._c=this._c+g|0,this._d=this._d+w|0},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=D.allocUnsafe(16);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a};function b(a,B){return a<<B|a>>>32-B}r(b,"rotl");function m(a,B,l,S,g,w,R){return b(a+(B&l|~B&S)+g+w|0,R)+B|0}r(m,"fnF");function C(a,B,l,S,g,w,R){return b(a+(B&S|l&~S)+g+w|0,R)+B|0}r(C,"fnG");function k(a,B,l,S,g,w,R){return b(a+(B^l^S)+g+w|0,R)+B|0}r(k,"fnH");function c(a,B,l,S,g,w,R){return b(a+(l^(B|~S))+g+w|0,R)+B|0}r(c,"fnI"),re.exports=d},9746:re=>{re.exports=te;function te(N,O){if(!N)throw new Error(O||"Assertion failed")}r(te,"assert"),te.equal=r(function(O,J,D){if(O!=J)throw new Error(D||"Assertion failed: "+O+" != "+J)},"assertEqual")},4504:(re,te)=>{var N=te;function O(F,d){if(Array.isArray(F))return F.slice();if(!F)return[];var b=[];if(typeof F!="string"){for(var m=0;m<F.length;m++)b[m]=F[m]|0;return b}if(d==="hex"){F=F.replace(/[^a-z0-9]+/ig,""),F.length%2!==0&&(F="0"+F);for(var m=0;m<F.length;m+=2)b.push(parseInt(F[m]+F[m+1],16))}else for(var m=0;m<F.length;m++){var C=F.charCodeAt(m),k=C>>8,c=C&255;k?b.push(k,c):b.push(c)}return b}r(O,"toArray"),N.toArray=O;function J(F){return F.length===1?"0"+F:F}r(J,"zero2"),N.zero2=J;function D(F){for(var d="",b=0;b<F.length;b++)d+=J(F[b].toString(16));return d}r(D,"toHex"),N.toHex=D,N.encode=r(function(d,b){return b==="hex"?D(d):d},"encode")},5632:(re,te,N)=>{te.pbkdf2=N(8638),te.pbkdf2Sync=N(1257)},8638:(re,te,N)=>{var O=N(9509).Buffer,J=N(7357),D=N(2368),F=N(1257),d=N(7777),b,m=N.g.crypto&&N.g.crypto.subtle,C={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},k=[];function c(g){if(N.g.process&&!N.g.process.browser||!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(k[g]!==void 0)return k[g];b=b||O.alloc(8);var w=l(b,b,10,128,g).then(function(){return!0}).catch(function(){return!1});return k[g]=w,w}r(c,"checkNative");var a;function B(){return a||(N.g.process&&N.g.process.nextTick?a=N.g.process.nextTick:N.g.queueMicrotask?a=N.g.queueMicrotask:N.g.setImmediate?a=N.g.setImmediate:a=N.g.setTimeout,a)}r(B,"getNextTick");function l(g,w,R,y,I){return m.importKey("raw",g,{name:"PBKDF2"},!1,["deriveBits"]).then(function(A){return m.deriveBits({name:"PBKDF2",salt:w,iterations:R,hash:{name:I}},A,y<<3)}).then(function(A){return O.from(A)})}r(l,"browserPbkdf2");function S(g,w){g.then(function(R){B()(function(){w(null,R)})},function(R){B()(function(){w(R)})})}r(S,"resolvePromise"),re.exports=function(g,w,R,y,I,A){typeof I=="function"&&(A=I,I=void 0),I=I||"sha1";var L=C[I.toLowerCase()];if(!L||typeof N.g.Promise!="function"){B()(function(){var V;try{V=F(g,w,R,y,I)}catch(G){return A(G)}A(null,V)});return}if(J(R,y),g=d(g,D,"Password"),w=d(w,D,"Salt"),typeof A!="function")throw new Error("No callback provided to pbkdf2");S(c(L).then(function(V){return V?l(g,w,R,y,L):F(g,w,R,y,I)}),A)}},2368:(re,te,N)=>{var O;if(N.g.process&&N.g.process.browser)O="utf-8";else if(N.g.process&&N.g.process.version){var J=parseInt(process.version.split(".")[0].slice(1),10);O=J>=6?"utf-8":"binary"}else O="utf-8";re.exports=O},7357:re=>{var te=Math.pow(2,30)-1;re.exports=function(N,O){if(typeof N!="number")throw new TypeError("Iterations not a number");if(N<0)throw new TypeError("Bad iterations");if(typeof O!="number")throw new TypeError("Key length not a number");if(O<0||O>te||O!==O)throw new TypeError("Bad key length")}},1257:(re,te,N)=>{var O=N(8028),J=N(9785),D=N(9072),F=N(9509).Buffer,d=N(7357),b=N(2368),m=N(7777),C=F.alloc(128),k={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function c(l,S,g){var w=a(l),R=l==="sha512"||l==="sha384"?128:64;S.length>R?S=w(S):S.length<R&&(S=F.concat([S,C],R));for(var y=F.allocUnsafe(R+k[l]),I=F.allocUnsafe(R+k[l]),A=0;A<R;A++)y[A]=S[A]^54,I[A]=S[A]^92;var L=F.allocUnsafe(R+g+4);y.copy(L,0,0,R),this.ipad1=L,this.ipad2=y,this.opad=I,this.alg=l,this.blocksize=R,this.hash=w,this.size=k[l]}r(c,"Hmac"),c.prototype.run=function(l,S){l.copy(S,this.blocksize);var g=this.hash(S);return g.copy(this.opad,this.blocksize),this.hash(this.opad)};function a(l){function S(w){return D(l).update(w).digest()}r(S,"shaFunc");function g(w){return new J().update(w).digest()}return r(g,"rmd160Func"),l==="rmd160"||l==="ripemd160"?g:l==="md5"?O:S}r(a,"getDigest");function B(l,S,g,w,R){d(g,w),l=m(l,b,"Password"),S=m(S,b,"Salt"),R=R||"sha1";var y=new c(R,l,S.length),I=F.allocUnsafe(w),A=F.allocUnsafe(S.length+4);S.copy(A,0,0,S.length);for(var L=0,V=k[R],G=Math.ceil(w/V),X=1;X<=G;X++){A.writeUInt32BE(X,S.length);for(var he=y.run(A,y.ipad1),ae=he,pe=1;pe<g;pe++){ae=y.run(ae,y.ipad2);for(var ye=0;ye<V;ye++)he[ye]^=ae[ye]}he.copy(I,L),L+=V}return I}r(B,"pbkdf2"),re.exports=B},7777:(re,te,N)=>{var O=N(9509).Buffer;re.exports=function(J,D,F){if(O.isBuffer(J))return J;if(typeof J=="string")return O.from(J,D);if(ArrayBuffer.isView(J))return O.from(J.buffer);throw new TypeError(F+" must be a string, a Buffer, a typed array or a DataView")}},1798:(re,te,N)=>{var O=65536,J=4294967295;function D(){throw new Error(`Secure random number generation is not supported by this browser.
7
+ Use Chrome, Firefox or Internet Explorer 11`)}r(D,"oldBrowser");var F=N(9509).Buffer,d=N.g.crypto||N.g.msCrypto;d&&d.getRandomValues?re.exports=b:re.exports=D;function b(m,C){if(m>J)throw new RangeError("requested too many random bytes");var k=F.allocUnsafe(m);if(m>0)if(m>O)for(var c=0;c<m;c+=O)d.getRandomValues(k.slice(c,c+O));else d.getRandomValues(k);return typeof C=="function"?process.nextTick(function(){C(null,k)}):k}r(b,"randomBytes")},4281:re=>{function te(b,m){b.prototype=Object.create(m.prototype),b.prototype.constructor=b,b.__proto__=m}r(te,"_inheritsLoose");var N={};function O(b,m,C){C||(C=Error);function k(a,B,l){return typeof m=="string"?m:m(a,B,l)}r(k,"getMessage");var c=function(a){te(B,a);function B(l,S,g){return a.call(this,k(l,S,g))||this}return r(B,"NodeError"),B}(C);c.prototype.name=C.name,c.prototype.code=b,N[b]=c}r(O,"createErrorType");function J(b,m){if(Array.isArray(b)){var C=b.length;return b=b.map(function(k){return String(k)}),C>2?"one of ".concat(m," ").concat(b.slice(0,C-1).join(", "),", or ")+b[C-1]:C===2?"one of ".concat(m," ").concat(b[0]," or ").concat(b[1]):"of ".concat(m," ").concat(b[0])}else return"of ".concat(m," ").concat(String(b))}r(J,"oneOf");function D(b,m,C){return b.substr(!C||C<0?0:+C,m.length)===m}r(D,"startsWith");function F(b,m,C){return(C===void 0||C>b.length)&&(C=b.length),b.substring(C-m.length,C)===m}r(F,"endsWith");function d(b,m,C){return typeof C!="number"&&(C=0),C+m.length>b.length?!1:b.indexOf(m,C)!==-1}r(d,"includes"),O("ERR_INVALID_OPT_VALUE",function(b,m){return'The value "'+m+'" is invalid for option "'+b+'"'},TypeError),O("ERR_INVALID_ARG_TYPE",function(b,m,C){var k;typeof m=="string"&&D(m,"not ")?(k="must not be",m=m.replace(/^not /,"")):k="must be";var c;if(F(b," argument"))c="The ".concat(b," ").concat(k," ").concat(J(m,"type"));else{var a=d(b,".")?"property":"argument";c='The "'.concat(b,'" ').concat(a," ").concat(k," ").concat(J(m,"type"))}return c+=". Received type ".concat(typeof C),c},TypeError),O("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),O("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),O("ERR_STREAM_PREMATURE_CLOSE","Premature close"),O("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),O("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),O("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),O("ERR_STREAM_WRITE_AFTER_END","write after end"),O("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),O("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),O("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),re.exports.q=N},6753:(re,te,N)=>{var O=Object.keys||function(c){var a=[];for(var B in c)a.push(B);return a};re.exports=m;var J=N(9481),D=N(4229);N(5717)(m,J);for(var F=O(D.prototype),d=0;d<F.length;d++){var b=F[d];m.prototype[b]||(m.prototype[b]=D.prototype[b])}function m(c){if(!(this instanceof m))return new m(c);J.call(this,c),D.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",C)))}r(m,"Duplex"),Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:r(function(){return this._writableState.highWaterMark},"get")}),Object.defineProperty(m.prototype,"writableBuffer",{enumerable:!1,get:r(function(){return this._writableState&&this._writableState.getBuffer()},"get")}),Object.defineProperty(m.prototype,"writableLength",{enumerable:!1,get:r(function(){return this._writableState.length},"get")});function C(){this._writableState.ended||process.nextTick(k,this)}r(C,"onend");function k(c){c.end()}r(k,"onEndNT"),Object.defineProperty(m.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:r(function(a){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=a,this._writableState.destroyed=a)},"set")})},2725:(re,te,N)=>{re.exports=J;var O=N(4605);N(5717)(J,O);function J(D){if(!(this instanceof J))return new J(D);O.call(this,D)}r(J,"PassThrough"),J.prototype._transform=function(D,F,d){d(null,D)}},9481:(re,te,N)=>{re.exports=pe;var O;pe.ReadableState=ae;var J=N(7187).EventEmitter,D=r(function(z,se){return z.listeners(se).length},"EElistenerCount"),F=N(2503),d=N(8764).Buffer,b=(typeof N.g<"u"?N.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function m(U){return d.from(U)}r(m,"_uint8ArrayToBuffer");function C(U){return d.isBuffer(U)||U instanceof b}r(C,"_isUint8Array");var k=N(4616),c;k&&k.debuglog?c=k.debuglog("stream"):c=r(function(){},"debug");var a=N(7327),B=N(1195),l=N(2457),S=l.getHighWaterMark,g=N(4281).q,w=g.ERR_INVALID_ARG_TYPE,R=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,I=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,A,L,V;N(5717)(pe,F);var G=B.errorOrDestroy,X=["error","close","destroy","pause","resume"];function he(U,z,se){if(typeof U.prependListener=="function")return U.prependListener(z,se);!U._events||!U._events[z]?U.on(z,se):Array.isArray(U._events[z])?U._events[z].unshift(se):U._events[z]=[se,U._events[z]]}r(he,"prependListener");function ae(U,z,se){O=O||N(6753),U=U||{},typeof se!="boolean"&&(se=z instanceof O),this.objectMode=!!U.objectMode,se&&(this.objectMode=this.objectMode||!!U.readableObjectMode),this.highWaterMark=S(this,U,"readableHighWaterMark",se),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(A||(A=N(2553).s),this.decoder=new A(U.encoding),this.encoding=U.encoding)}r(ae,"ReadableState");function pe(U){if(O=O||N(6753),!(this instanceof pe))return new pe(U);var z=this instanceof O;this._readableState=new ae(U,this,z),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),F.call(this)}r(pe,"Readable"),Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:r(function(z){this._readableState&&(this._readableState.destroyed=z)},"set")}),pe.prototype.destroy=B.destroy,pe.prototype._undestroy=B.undestroy,pe.prototype._destroy=function(U,z){z(U)},pe.prototype.push=function(U,z){var se=this._readableState,de;return se.objectMode?de=!0:typeof U=="string"&&(z=z||se.defaultEncoding,z!==se.encoding&&(U=d.from(U,z),z=""),de=!0),ye(this,U,z,!1,de)},pe.prototype.unshift=function(U){return ye(this,U,null,!0,!1)};function ye(U,z,se,de,Me){c("readableAddChunk",z);var Ee=U._readableState;if(z===null)Ee.reading=!1,x(U,Ee);else{var Oe;if(Me||(Oe=_(Ee,z)),Oe)G(U,Oe);else if(Ee.objectMode||z&&z.length>0)if(typeof z!="string"&&!Ee.objectMode&&Object.getPrototypeOf(z)!==d.prototype&&(z=m(z)),de)Ee.endEmitted?G(U,new I):Z(U,Ee,z,!0);else if(Ee.ended)G(U,new R);else{if(Ee.destroyed)return!1;Ee.reading=!1,Ee.decoder&&!se?(z=Ee.decoder.write(z),Ee.objectMode||z.length!==0?Z(U,Ee,z,!1):Y(U,Ee)):Z(U,Ee,z,!1)}else de||(Ee.reading=!1,Y(U,Ee))}return!Ee.ended&&(Ee.length<Ee.highWaterMark||Ee.length===0)}r(ye,"readableAddChunk");function Z(U,z,se,de){z.flowing&&z.length===0&&!z.sync?(z.awaitDrain=0,U.emit("data",se)):(z.length+=z.objectMode?1:se.length,de?z.buffer.unshift(se):z.buffer.push(se),z.needReadable&&P(U)),Y(U,z)}r(Z,"addChunk");function _(U,z){var se;return!C(z)&&typeof z!="string"&&z!==void 0&&!U.objectMode&&(se=new w("chunk",["string","Buffer","Uint8Array"],z)),se}r(_,"chunkInvalid"),pe.prototype.isPaused=function(){return this._readableState.flowing===!1},pe.prototype.setEncoding=function(U){A||(A=N(2553).s);var z=new A(U);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;for(var se=this._readableState.buffer.head,de="";se!==null;)de+=z.write(se.data),se=se.next;return this._readableState.buffer.clear(),de!==""&&this._readableState.buffer.push(de),this._readableState.length=de.length,this};var i=1073741824;function f(U){return U>=i?U=i:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}r(f,"computeNewHighWaterMark");function s(U,z){return U<=0||z.length===0&&z.ended?0:z.objectMode?1:U!==U?z.flowing&&z.length?z.buffer.head.data.length:z.length:(U>z.highWaterMark&&(z.highWaterMark=f(U)),U<=z.length?U:z.ended?z.length:(z.needReadable=!0,0))}r(s,"howMuchToRead"),pe.prototype.read=function(U){c("read",U),U=parseInt(U,10);var z=this._readableState,se=U;if(U!==0&&(z.emittedReadable=!1),U===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended))return c("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?oe(this):P(this),null;if(U=s(U,z),U===0&&z.ended)return z.length===0&&oe(this),null;var de=z.needReadable;c("need readable",de),(z.length===0||z.length-U<z.highWaterMark)&&(de=!0,c("length less than watermark",de)),z.ended||z.reading?(de=!1,c("reading or ended",de)):de&&(c("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(U=s(se,z)));var Me;return U>0?Me=Q(U,z):Me=null,Me===null?(z.needReadable=z.length<=z.highWaterMark,U=0):(z.length-=U,z.awaitDrain=0),z.length===0&&(z.ended||(z.needReadable=!0),se!==U&&z.ended&&oe(this)),Me!==null&&this.emit("data",Me),Me};function x(U,z){if(c("onEofChunk"),!z.ended){if(z.decoder){var se=z.decoder.end();se&&se.length&&(z.buffer.push(se),z.length+=z.objectMode?1:se.length)}z.ended=!0,z.sync?P(U):(z.needReadable=!1,z.emittedReadable||(z.emittedReadable=!0,j(U)))}}r(x,"onEofChunk");function P(U){var z=U._readableState;c("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,z.emittedReadable||(c("emitReadable",z.flowing),z.emittedReadable=!0,process.nextTick(j,U))}r(P,"emitReadable");function j(U){var z=U._readableState;c("emitReadable_",z.destroyed,z.length,z.ended),!z.destroyed&&(z.length||z.ended)&&(U.emit("readable"),z.emittedReadable=!1),z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,q(U)}r(j,"emitReadable_");function Y(U,z){z.readingMore||(z.readingMore=!0,process.nextTick(T,U,z))}r(Y,"maybeReadMore");function T(U,z){for(;!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0);){var se=z.length;if(c("maybeReadMore read 0"),U.read(0),se===z.length)break}z.readingMore=!1}r(T,"maybeReadMore_"),pe.prototype._read=function(U){G(this,new y("_read()"))},pe.prototype.pipe=function(U,z){var se=this,de=this._readableState;switch(de.pipesCount){case 0:de.pipes=U;break;case 1:de.pipes=[de.pipes,U];break;default:de.pipes.push(U);break}de.pipesCount+=1,c("pipe count=%d opts=%j",de.pipesCount,z);var Me=(!z||z.end!==!1)&&U!==process.stdout&&U!==process.stderr,Ee=Me?Ye:o;de.endEmitted?process.nextTick(Ee):se.once("end",Ee),U.on("unpipe",Oe);function Oe(h,H){c("onunpipe"),h===se&&H&&H.hasUnpiped===!1&&(H.hasUnpiped=!0,De())}r(Oe,"onunpipe");function Ye(){c("onend"),U.end()}r(Ye,"onend");var Pe=u(se);U.on("drain",Pe);var xe=!1;function De(){c("cleanup"),U.removeListener("close",We),U.removeListener("finish",p),U.removeListener("drain",Pe),U.removeListener("error",Ce),U.removeListener("unpipe",Oe),se.removeListener("end",Ye),se.removeListener("end",o),se.removeListener("data",Re),xe=!0,de.awaitDrain&&(!U._writableState||U._writableState.needDrain)&&Pe()}r(De,"cleanup"),se.on("data",Re);function Re(h){c("ondata");var H=U.write(h);c("dest.write",H),H===!1&&((de.pipesCount===1&&de.pipes===U||de.pipesCount>1&&Se(de.pipes,U)!==-1)&&!xe&&(c("false write response, pause",de.awaitDrain),de.awaitDrain++),se.pause())}r(Re,"ondata");function Ce(h){c("onerror",h),o(),U.removeListener("error",Ce),D(U,"error")===0&&G(U,h)}r(Ce,"onerror"),he(U,"error",Ce);function We(){U.removeListener("finish",p),o()}r(We,"onclose"),U.once("close",We);function p(){c("onfinish"),U.removeListener("close",We),o()}r(p,"onfinish"),U.once("finish",p);function o(){c("unpipe"),se.unpipe(U)}return r(o,"unpipe"),U.emit("pipe",se),de.flowing||(c("pipe resume"),se.resume()),U};function u(U){return r(function(){var se=U._readableState;c("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&D(U,"data")&&(se.flowing=!0,q(U))},"pipeOnDrainFunctionResult")}r(u,"pipeOnDrain"),pe.prototype.unpipe=function(U){var z=this._readableState,se={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return U&&U!==z.pipes?this:(U||(U=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,U&&U.emit("unpipe",this,se),this);if(!U){var de=z.pipes,Me=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var Ee=0;Ee<Me;Ee++)de[Ee].emit("unpipe",this,{hasUnpiped:!1});return this}var Oe=Se(z.pipes,U);return Oe===-1?this:(z.pipes.splice(Oe,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),U.emit("unpipe",this,se),this)},pe.prototype.on=function(U,z){var se=F.prototype.on.call(this,U,z),de=this._readableState;return U==="data"?(de.readableListening=this.listenerCount("readable")>0,de.flowing!==!1&&this.resume()):U==="readable"&&!de.endEmitted&&!de.readableListening&&(de.readableListening=de.needReadable=!0,de.flowing=!1,de.emittedReadable=!1,c("on readable",de.length,de.reading),de.length?P(this):de.reading||process.nextTick(be,this)),se},pe.prototype.addListener=pe.prototype.on,pe.prototype.removeListener=function(U,z){var se=F.prototype.removeListener.call(this,U,z);return U==="readable"&&process.nextTick(K,this),se},pe.prototype.removeAllListeners=function(U){var z=F.prototype.removeAllListeners.apply(this,arguments);return(U==="readable"||U===void 0)&&process.nextTick(K,this),z};function K(U){var z=U._readableState;z.readableListening=U.listenerCount("readable")>0,z.resumeScheduled&&!z.paused?z.flowing=!0:U.listenerCount("data")>0&&U.resume()}r(K,"updateReadableListening");function be(U){c("readable nexttick read 0"),U.read(0)}r(be,"nReadingNextTick"),pe.prototype.resume=function(){var U=this._readableState;return U.flowing||(c("resume"),U.flowing=!U.readableListening,me(this,U)),U.paused=!1,this};function me(U,z){z.resumeScheduled||(z.resumeScheduled=!0,process.nextTick(ce,U,z))}r(me,"resume");function ce(U,z){c("resume",z.reading),z.reading||U.read(0),z.resumeScheduled=!1,U.emit("resume"),q(U),z.flowing&&!z.reading&&U.read(0)}r(ce,"resume_"),pe.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(U){var z=U._readableState;for(c("flow",z.flowing);z.flowing&&U.read()!==null;);}r(q,"flow"),pe.prototype.wrap=function(U){var z=this,se=this._readableState,de=!1;U.on("end",function(){if(c("wrapped end"),se.decoder&&!se.ended){var Oe=se.decoder.end();Oe&&Oe.length&&z.push(Oe)}z.push(null)}),U.on("data",function(Oe){if(c("wrapped data"),se.decoder&&(Oe=se.decoder.write(Oe)),!(se.objectMode&&Oe==null)&&!(!se.objectMode&&(!Oe||!Oe.length))){var Ye=z.push(Oe);Ye||(de=!0,U.pause())}});for(var Me in U)this[Me]===void 0&&typeof U[Me]=="function"&&(this[Me]=r(function(Ye){return r(function(){return U[Ye].apply(U,arguments)},"methodWrapReturnFunction")},"methodWrap")(Me));for(var Ee=0;Ee<X.length;Ee++)U.on(X[Ee],this.emit.bind(this,X[Ee]));return this._read=function(Oe){c("wrapped _read",Oe),de&&(de=!1,U.resume())},this},typeof Symbol=="function"&&(pe.prototype[Symbol.asyncIterator]=function(){return L===void 0&&(L=N(5850)),L(this)}),Object.defineProperty(pe.prototype,"readableHighWaterMark",{enumerable:!1,get:r(function(){return this._readableState.highWaterMark},"get")}),Object.defineProperty(pe.prototype,"readableBuffer",{enumerable:!1,get:r(function(){return this._readableState&&this._readableState.buffer},"get")}),Object.defineProperty(pe.prototype,"readableFlowing",{enumerable:!1,get:r(function(){return this._readableState.flowing},"get"),set:r(function(z){this._readableState&&(this._readableState.flowing=z)},"set")}),pe._fromList=Q,Object.defineProperty(pe.prototype,"readableLength",{enumerable:!1,get:r(function(){return this._readableState.length},"get")});function Q(U,z){if(z.length===0)return null;var se;return z.objectMode?se=z.buffer.shift():!U||U>=z.length?(z.decoder?se=z.buffer.join(""):z.buffer.length===1?se=z.buffer.first():se=z.buffer.concat(z.length),z.buffer.clear()):se=z.buffer.consume(U,z.decoder),se}r(Q,"fromList");function oe(U){var z=U._readableState;c("endReadable",z.endEmitted),z.endEmitted||(z.ended=!0,process.nextTick(we,z,U))}r(oe,"endReadable");function we(U,z){if(c("endReadableNT",U.endEmitted,U.length),!U.endEmitted&&U.length===0&&(U.endEmitted=!0,z.readable=!1,z.emit("end"),U.autoDestroy)){var se=z._writableState;(!se||se.autoDestroy&&se.finished)&&z.destroy()}}r(we,"endReadableNT"),typeof Symbol=="function"&&(pe.from=function(U,z){return V===void 0&&(V=N(5167)),V(pe,U,z)});function Se(U,z){for(var se=0,de=U.length;se<de;se++)if(U[se]===z)return se;return-1}r(Se,"indexOf")},4605:(re,te,N)=>{re.exports=C;var O=N(4281).q,J=O.ERR_METHOD_NOT_IMPLEMENTED,D=O.ERR_MULTIPLE_CALLBACK,F=O.ERR_TRANSFORM_ALREADY_TRANSFORMING,d=O.ERR_TRANSFORM_WITH_LENGTH_0,b=N(6753);N(5717)(C,b);function m(a,B){var l=this._transformState;l.transforming=!1;var S=l.writecb;if(S===null)return this.emit("error",new D);l.writechunk=null,l.writecb=null,B!=null&&this.push(B),S(a);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}r(m,"afterTransform");function C(a){if(!(this instanceof C))return new C(a);b.call(this,a),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",k)}r(C,"Transform");function k(){var a=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(B,l){c(a,B,l)}):c(this,null,null)}r(k,"prefinish"),C.prototype.push=function(a,B){return this._transformState.needTransform=!1,b.prototype.push.call(this,a,B)},C.prototype._transform=function(a,B,l){l(new J("_transform()"))},C.prototype._write=function(a,B,l){var S=this._transformState;if(S.writecb=l,S.writechunk=a,S.writeencoding=B,!S.transforming){var g=this._readableState;(S.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},C.prototype._read=function(a){var B=this._transformState;B.writechunk!==null&&!B.transforming?(B.transforming=!0,this._transform(B.writechunk,B.writeencoding,B.afterTransform)):B.needTransform=!0},C.prototype._destroy=function(a,B){b.prototype._destroy.call(this,a,function(l){B(l)})};function c(a,B,l){if(B)return a.emit("error",B);if(l!=null&&a.push(l),a._writableState.length)throw new d;if(a._transformState.transforming)throw new F;return a.push(null)}r(c,"done")},4229:(re,te,N)=>{re.exports=ae;function O(q,Q,oe){this.chunk=q,this.encoding=Q,this.callback=oe,this.next=null}r(O,"WriteReq");function J(q){var Q=this;this.next=null,this.entry=null,this.finish=function(){ce(Q,q)}}r(J,"CorkedRequest");var D;ae.WritableState=X;var F={deprecate:N(4927)},d=N(2503),b=N(8764).Buffer,m=(typeof N.g<"u"?N.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function C(q){return b.from(q)}r(C,"_uint8ArrayToBuffer");function k(q){return b.isBuffer(q)||q instanceof m}r(k,"_isUint8Array");var c=N(1195),a=N(2457),B=a.getHighWaterMark,l=N(4281).q,S=l.ERR_INVALID_ARG_TYPE,g=l.ERR_METHOD_NOT_IMPLEMENTED,w=l.ERR_MULTIPLE_CALLBACK,R=l.ERR_STREAM_CANNOT_PIPE,y=l.ERR_STREAM_DESTROYED,I=l.ERR_STREAM_NULL_VALUES,A=l.ERR_STREAM_WRITE_AFTER_END,L=l.ERR_UNKNOWN_ENCODING,V=c.errorOrDestroy;N(5717)(ae,d);function G(){}r(G,"nop");function X(q,Q,oe){D=D||N(6753),q=q||{},typeof oe!="boolean"&&(oe=Q instanceof D),this.objectMode=!!q.objectMode,oe&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=B(this,q,"writableHighWaterMark",oe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var we=q.decodeStrings===!1;this.decodeStrings=!we,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Se){x(Q,Se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new J(this)}r(X,"WritableState"),X.prototype.getBuffer=r(function(){for(var Q=this.bufferedRequest,oe=[];Q;)oe.push(Q),Q=Q.next;return oe},"getBuffer"),function(){try{Object.defineProperty(X.prototype,"buffer",{get:F.deprecate(r(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var he;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(he=Function.prototype[Symbol.hasInstance],Object.defineProperty(ae,Symbol.hasInstance,{value:r(function(Q){return he.call(this,Q)?!0:this!==ae?!1:Q&&Q._writableState instanceof X},"value")})):he=r(function(Q){return Q instanceof this},"realHasInstance");function ae(q){D=D||N(6753);var Q=this instanceof D;if(!Q&&!he.call(ae,this))return new ae(q);this._writableState=new X(q,this,Q),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),d.call(this)}r(ae,"Writable"),ae.prototype.pipe=function(){V(this,new R)};function pe(q,Q){var oe=new A;V(q,oe),process.nextTick(Q,oe)}r(pe,"writeAfterEnd");function ye(q,Q,oe,we){var Se;return oe===null?Se=new I:typeof oe!="string"&&!Q.objectMode&&(Se=new S("chunk",["string","Buffer"],oe)),Se?(V(q,Se),process.nextTick(we,Se),!1):!0}r(ye,"validChunk"),ae.prototype.write=function(q,Q,oe){var we=this._writableState,Se=!1,U=!we.objectMode&&k(q);return U&&!b.isBuffer(q)&&(q=C(q)),typeof Q=="function"&&(oe=Q,Q=null),U?Q="buffer":Q||(Q=we.defaultEncoding),typeof oe!="function"&&(oe=G),we.ending?pe(this,oe):(U||ye(this,we,q,oe))&&(we.pendingcb++,Se=_(this,we,U,q,Q,oe)),Se},ae.prototype.cork=function(){this._writableState.corked++},ae.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&Y(this,q))},ae.prototype.setDefaultEncoding=r(function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new L(Q);return this._writableState.defaultEncoding=Q,this},"setDefaultEncoding"),Object.defineProperty(ae.prototype,"writableBuffer",{enumerable:!1,get:r(function(){return this._writableState&&this._writableState.getBuffer()},"get")});function Z(q,Q,oe){return!q.objectMode&&q.decodeStrings!==!1&&typeof Q=="string"&&(Q=b.from(Q,oe)),Q}r(Z,"decodeChunk"),Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:r(function(){return this._writableState.highWaterMark},"get")});function _(q,Q,oe,we,Se,U){if(!oe){var z=Z(Q,we,Se);we!==z&&(oe=!0,Se="buffer",we=z)}var se=Q.objectMode?1:we.length;Q.length+=se;var de=Q.length<Q.highWaterMark;if(de||(Q.needDrain=!0),Q.writing||Q.corked){var Me=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:we,encoding:Se,isBuf:oe,callback:U,next:null},Me?Me.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else i(q,Q,!1,se,we,Se,U);return de}r(_,"writeOrBuffer");function i(q,Q,oe,we,Se,U,z){Q.writelen=we,Q.writecb=z,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new y("write")):oe?q._writev(Se,Q.onwrite):q._write(Se,U,Q.onwrite),Q.sync=!1}r(i,"doWrite");function f(q,Q,oe,we,Se){--Q.pendingcb,oe?(process.nextTick(Se,we),process.nextTick(be,q,Q),q._writableState.errorEmitted=!0,V(q,we)):(Se(we),q._writableState.errorEmitted=!0,V(q,we),be(q,Q))}r(f,"onwriteError");function s(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}r(s,"onwriteStateUpdate");function x(q,Q){var oe=q._writableState,we=oe.sync,Se=oe.writecb;if(typeof Se!="function")throw new w;if(s(oe),Q)f(q,oe,we,Q,Se);else{var U=T(oe)||q.destroyed;!U&&!oe.corked&&!oe.bufferProcessing&&oe.bufferedRequest&&Y(q,oe),we?process.nextTick(P,q,oe,U,Se):P(q,oe,U,Se)}}r(x,"onwrite");function P(q,Q,oe,we){oe||j(q,Q),Q.pendingcb--,we(),be(q,Q)}r(P,"afterWrite");function j(q,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,q.emit("drain"))}r(j,"onwriteDrain");function Y(q,Q){Q.bufferProcessing=!0;var oe=Q.bufferedRequest;if(q._writev&&oe&&oe.next){var we=Q.bufferedRequestCount,Se=new Array(we),U=Q.corkedRequestsFree;U.entry=oe;for(var z=0,se=!0;oe;)Se[z]=oe,oe.isBuf||(se=!1),oe=oe.next,z+=1;Se.allBuffers=se,i(q,Q,!0,Q.length,Se,"",U.finish),Q.pendingcb++,Q.lastBufferedRequest=null,U.next?(Q.corkedRequestsFree=U.next,U.next=null):Q.corkedRequestsFree=new J(Q),Q.bufferedRequestCount=0}else{for(;oe;){var de=oe.chunk,Me=oe.encoding,Ee=oe.callback,Oe=Q.objectMode?1:de.length;if(i(q,Q,!1,Oe,de,Me,Ee),oe=oe.next,Q.bufferedRequestCount--,Q.writing)break}oe===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=oe,Q.bufferProcessing=!1}r(Y,"clearBuffer"),ae.prototype._write=function(q,Q,oe){oe(new g("_write()"))},ae.prototype._writev=null,ae.prototype.end=function(q,Q,oe){var we=this._writableState;return typeof q=="function"?(oe=q,q=null,Q=null):typeof Q=="function"&&(oe=Q,Q=null),q!=null&&this.write(q,Q),we.corked&&(we.corked=1,this.uncork()),we.ending||me(this,we,oe),this},Object.defineProperty(ae.prototype,"writableLength",{enumerable:!1,get:r(function(){return this._writableState.length},"get")});function T(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}r(T,"needFinish");function u(q,Q){q._final(function(oe){Q.pendingcb--,oe&&V(q,oe),Q.prefinished=!0,q.emit("prefinish"),be(q,Q)})}r(u,"callFinal");function K(q,Q){!Q.prefinished&&!Q.finalCalled&&(typeof q._final=="function"&&!Q.destroyed?(Q.pendingcb++,Q.finalCalled=!0,process.nextTick(u,q,Q)):(Q.prefinished=!0,q.emit("prefinish")))}r(K,"prefinish");function be(q,Q){var oe=T(Q);if(oe&&(K(q,Q),Q.pendingcb===0&&(Q.finished=!0,q.emit("finish"),Q.autoDestroy))){var we=q._readableState;(!we||we.autoDestroy&&we.endEmitted)&&q.destroy()}return oe}r(be,"finishMaybe");function me(q,Q,oe){Q.ending=!0,be(q,Q),oe&&(Q.finished?process.nextTick(oe):q.once("finish",oe)),Q.ended=!0,q.writable=!1}r(me,"endWritable");function ce(q,Q,oe){var we=q.entry;for(q.entry=null;we;){var Se=we.callback;Q.pendingcb--,Se(oe),we=we.next}Q.corkedRequestsFree.next=q}r(ce,"onCorkedFinish"),Object.defineProperty(ae.prototype,"destroyed",{enumerable:!1,get:r(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:r(function(Q){this._writableState&&(this._writableState.destroyed=Q)},"set")}),ae.prototype.destroy=c.destroy,ae.prototype._undestroy=c.undestroy,ae.prototype._destroy=function(q,Q){Q(q)}},5850:(re,te,N)=>{var O;function J(A,L,V){return L=D(L),L in A?Object.defineProperty(A,L,{value:V,enumerable:!0,configurable:!0,writable:!0}):A[L]=V,A}r(J,"_defineProperty");function D(A){var L=F(A,"string");return typeof L=="symbol"?L:String(L)}r(D,"_toPropertyKey");function F(A,L){if(typeof A!="object"||A===null)return A;var V=A[Symbol.toPrimitive];if(V!==void 0){var G=V.call(A,L||"default");if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(A)}r(F,"_toPrimitive");var d=N(8610),b=Symbol("lastResolve"),m=Symbol("lastReject"),C=Symbol("error"),k=Symbol("ended"),c=Symbol("lastPromise"),a=Symbol("handlePromise"),B=Symbol("stream");function l(A,L){return{value:A,done:L}}r(l,"createIterResult");function S(A){var L=A[b];if(L!==null){var V=A[B].read();V!==null&&(A[c]=null,A[b]=null,A[m]=null,L(l(V,!1)))}}r(S,"readAndResolve");function g(A){process.nextTick(S,A)}r(g,"onReadable");function w(A,L){return function(V,G){A.then(function(){if(L[k]){V(l(void 0,!0));return}L[a](V,G)},G)}}r(w,"wrapForNext");var R=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((O={get stream(){return this[B]},next:r(function(){var L=this,V=this[C];if(V!==null)return Promise.reject(V);if(this[k])return Promise.resolve(l(void 0,!0));if(this[B].destroyed)return new Promise(function(ae,pe){process.nextTick(function(){L[C]?pe(L[C]):ae(l(void 0,!0))})});var G=this[c],X;if(G)X=new Promise(w(G,this));else{var he=this[B].read();if(he!==null)return Promise.resolve(l(he,!1));X=new Promise(this[a])}return this[c]=X,X},"next")},J(O,Symbol.asyncIterator,function(){return this}),J(O,"return",r(function(){var L=this;return new Promise(function(V,G){L[B].destroy(null,function(X){if(X){G(X);return}V(l(void 0,!0))})})},"_return")),O),R),I=r(function(L){var V,G=Object.create(y,(V={},J(V,B,{value:L,writable:!0}),J(V,b,{value:null,writable:!0}),J(V,m,{value:null,writable:!0}),J(V,C,{value:null,writable:!0}),J(V,k,{value:L._readableState.endEmitted,writable:!0}),J(V,a,{value:r(function(he,ae){var pe=G[B].read();pe?(G[c]=null,G[b]=null,G[m]=null,he(l(pe,!1))):(G[b]=he,G[m]=ae)},"value"),writable:!0}),V));return G[c]=null,d(L,function(X){if(X&&X.code!=="ERR_STREAM_PREMATURE_CLOSE"){var he=G[m];he!==null&&(G[c]=null,G[b]=null,G[m]=null,he(X)),G[C]=X;return}var ae=G[b];ae!==null&&(G[c]=null,G[b]=null,G[m]=null,ae(l(void 0,!0))),G[k]=!0}),L.on("readable",g.bind(null,G)),G},"createReadableStreamAsyncIterator");re.exports=I},7327:(re,te,N)=>{function O(g,w){var R=Object.keys(g);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(g);w&&(y=y.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),R.push.apply(R,y)}return R}r(O,"ownKeys");function J(g){for(var w=1;w<arguments.length;w++){var R=arguments[w]!=null?arguments[w]:{};w%2?O(Object(R),!0).forEach(function(y){D(g,y,R[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(R)):O(Object(R)).forEach(function(y){Object.defineProperty(g,y,Object.getOwnPropertyDescriptor(R,y))})}return g}r(J,"_objectSpread");function D(g,w,R){return w=m(w),w in g?Object.defineProperty(g,w,{value:R,enumerable:!0,configurable:!0,writable:!0}):g[w]=R,g}r(D,"_defineProperty");function F(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}r(F,"_classCallCheck");function d(g,w){for(var R=0;R<w.length;R++){var y=w[R];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,m(y.key),y)}}r(d,"_defineProperties");function b(g,w,R){return w&&d(g.prototype,w),R&&d(g,R),Object.defineProperty(g,"prototype",{writable:!1}),g}r(b,"_createClass");function m(g){var w=C(g,"string");return typeof w=="symbol"?w:String(w)}r(m,"_toPropertyKey");function C(g,w){if(typeof g!="object"||g===null)return g;var R=g[Symbol.toPrimitive];if(R!==void 0){var y=R.call(g,w||"default");if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(g)}r(C,"_toPrimitive");var k=N(8764),c=k.Buffer,a=N(2361),B=a.inspect,l=B&&B.custom||"inspect";function S(g,w,R){c.prototype.copy.call(g,w,R)}r(S,"copyBuffer"),re.exports=function(){function g(){F(this,g),this.head=null,this.tail=null,this.length=0}return r(g,"BufferList"),b(g,[{key:"push",value:r(function(R){var y={data:R,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length},"push")},{key:"unshift",value:r(function(R){var y={data:R,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length},"unshift")},{key:"shift",value:r(function(){if(this.length!==0){var R=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,R}},"shift")},{key:"clear",value:r(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:r(function(R){if(this.length===0)return"";for(var y=this.head,I=""+y.data;y=y.next;)I+=R+y.data;return I},"join")},{key:"concat",value:r(function(R){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(R>>>0),I=this.head,A=0;I;)S(I.data,y,A),A+=I.data.length,I=I.next;return y},"concat")},{key:"consume",value:r(function(R,y){var I;return R<this.head.data.length?(I=this.head.data.slice(0,R),this.head.data=this.head.data.slice(R)):R===this.head.data.length?I=this.shift():I=y?this._getString(R):this._getBuffer(R),I},"consume")},{key:"first",value:r(function(){return this.head.data},"first")},{key:"_getString",value:r(function(R){var y=this.head,I=1,A=y.data;for(R-=A.length;y=y.next;){var L=y.data,V=R>L.length?L.length:R;if(V===L.length?A+=L:A+=L.slice(0,R),R-=V,R===0){V===L.length?(++I,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=L.slice(V));break}++I}return this.length-=I,A},"_getString")},{key:"_getBuffer",value:r(function(R){var y=c.allocUnsafe(R),I=this.head,A=1;for(I.data.copy(y),R-=I.data.length;I=I.next;){var L=I.data,V=R>L.length?L.length:R;if(L.copy(y,y.length-R,0,V),R-=V,R===0){V===L.length?(++A,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=L.slice(V));break}++A}return this.length-=A,y},"_getBuffer")},{key:l,value:r(function(R,y){return B(this,J(J({},y),{},{depth:0,customInspect:!1}))},"value")}]),g}()},1195:re=>{function te(d,b){var m=this,C=this._readableState&&this._readableState.destroyed,k=this._writableState&&this._writableState.destroyed;return C||k?(b?b(d):d&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(D,this,d)):process.nextTick(D,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(c){!b&&c?m._writableState?m._writableState.errorEmitted?process.nextTick(O,m):(m._writableState.errorEmitted=!0,process.nextTick(N,m,c)):process.nextTick(N,m,c):b?(process.nextTick(O,m),b(c)):process.nextTick(O,m)}),this)}r(te,"destroy");function N(d,b){D(d,b),O(d)}r(N,"emitErrorAndCloseNT");function O(d){d._writableState&&!d._writableState.emitClose||d._readableState&&!d._readableState.emitClose||d.emit("close")}r(O,"emitCloseNT");function J(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}r(J,"undestroy");function D(d,b){d.emit("error",b)}r(D,"emitErrorNT");function F(d,b){var m=d._readableState,C=d._writableState;m&&m.autoDestroy||C&&C.autoDestroy?d.destroy(b):d.emit("error",b)}r(F,"errorOrDestroy"),re.exports={destroy:te,undestroy:J,errorOrDestroy:F}},8610:(re,te,N)=>{var O=N(4281).q.ERR_STREAM_PREMATURE_CLOSE;function J(b){var m=!1;return function(){if(!m){m=!0;for(var C=arguments.length,k=new Array(C),c=0;c<C;c++)k[c]=arguments[c];b.apply(this,k)}}}r(J,"once");function D(){}r(D,"noop");function F(b){return b.setHeader&&typeof b.abort=="function"}r(F,"isRequest");function d(b,m,C){if(typeof m=="function")return d(b,null,m);m||(m={}),C=J(C||D);var k=m.readable||m.readable!==!1&&b.readable,c=m.writable||m.writable!==!1&&b.writable,a=r(function(){b.writable||l()},"onlegacyfinish"),B=b._writableState&&b._writableState.finished,l=r(function(){c=!1,B=!0,k||C.call(b)},"onfinish"),S=b._readableState&&b._readableState.endEmitted,g=r(function(){k=!1,S=!0,c||C.call(b)},"onend"),w=r(function(A){C.call(b,A)},"onerror"),R=r(function(){var A;if(k&&!S)return(!b._readableState||!b._readableState.ended)&&(A=new O),C.call(b,A);if(c&&!B)return(!b._writableState||!b._writableState.ended)&&(A=new O),C.call(b,A)},"onclose"),y=r(function(){b.req.on("finish",l)},"onrequest");return F(b)?(b.on("complete",l),b.on("abort",R),b.req?y():b.on("request",y)):c&&!b._writableState&&(b.on("end",a),b.on("close",a)),b.on("end",g),b.on("finish",l),m.error!==!1&&b.on("error",w),b.on("close",R),function(){b.removeListener("complete",l),b.removeListener("abort",R),b.removeListener("request",y),b.req&&b.req.removeListener("finish",l),b.removeListener("end",a),b.removeListener("close",a),b.removeListener("finish",l),b.removeListener("end",g),b.removeListener("error",w),b.removeListener("close",R)}}r(d,"eos"),re.exports=d},5167:re=>{re.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(re,te,N)=>{var O;function J(l){var S=!1;return function(){S||(S=!0,l.apply(void 0,arguments))}}r(J,"once");var D=N(4281).q,F=D.ERR_MISSING_ARGS,d=D.ERR_STREAM_DESTROYED;function b(l){if(l)throw l}r(b,"noop");function m(l){return l.setHeader&&typeof l.abort=="function"}r(m,"isRequest");function C(l,S,g,w){w=J(w);var R=!1;l.on("close",function(){R=!0}),O===void 0&&(O=N(8610)),O(l,{readable:S,writable:g},function(I){if(I)return w(I);R=!0,w()});var y=!1;return function(I){if(!R&&!y){if(y=!0,m(l))return l.abort();if(typeof l.destroy=="function")return l.destroy();w(I||new d("pipe"))}}}r(C,"destroyer");function k(l){l()}r(k,"call");function c(l,S){return l.pipe(S)}r(c,"pipe");function a(l){return!l.length||typeof l[l.length-1]!="function"?b:l.pop()}r(a,"popCallback");function B(){for(var l=arguments.length,S=new Array(l),g=0;g<l;g++)S[g]=arguments[g];var w=a(S);if(Array.isArray(S[0])&&(S=S[0]),S.length<2)throw new F("streams");var R,y=S.map(function(I,A){var L=A<S.length-1,V=A>0;return C(I,L,V,function(G){R||(R=G),G&&y.forEach(k),!L&&(y.forEach(k),w(R))})});return S.reduce(c)}r(B,"pipeline"),re.exports=B},2457:(re,te,N)=>{var O=N(4281).q.ERR_INVALID_OPT_VALUE;function J(F,d,b){return F.highWaterMark!=null?F.highWaterMark:d?F[b]:null}r(J,"highWaterMarkFrom");function D(F,d,b,m){var C=J(d,m,b);if(C!=null){if(!(isFinite(C)&&Math.floor(C)===C)||C<0){var k=m?b:"highWaterMark";throw new O(k,C)}return Math.floor(C)}return F.objectMode?16:16384}r(D,"getHighWaterMark"),re.exports={getHighWaterMark:D}},2503:(re,te,N)=>{re.exports=N(7187).EventEmitter},8473:(re,te,N)=>{te=re.exports=N(9481),te.Stream=te,te.Readable=te,te.Writable=N(4229),te.Duplex=N(6753),te.Transform=N(4605),te.PassThrough=N(2725),te.finished=N(8610),te.pipeline=N(9946)},9785:(re,te,N)=>{var O=N(8764).Buffer,J=N(5717),D=N(3349),F=new Array(16),d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],C=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],k=[0,1518500249,1859775393,2400959708,2840853838],c=[1352829926,1548603684,1836072691,2053994217,0];function a(){D.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(a,"RIPEMD160"),J(a,D),a.prototype._update=function(){for(var y=F,I=0;I<16;++I)y[I]=this._block.readInt32LE(I*4);for(var A=this._a|0,L=this._b|0,V=this._c|0,G=this._d|0,X=this._e|0,he=this._a|0,ae=this._b|0,pe=this._c|0,ye=this._d|0,Z=this._e|0,_=0;_<80;_+=1){var i,f;_<16?(i=l(A,L,V,G,X,y[d[_]],k[0],m[_]),f=R(he,ae,pe,ye,Z,y[b[_]],c[0],C[_])):_<32?(i=S(A,L,V,G,X,y[d[_]],k[1],m[_]),f=w(he,ae,pe,ye,Z,y[b[_]],c[1],C[_])):_<48?(i=g(A,L,V,G,X,y[d[_]],k[2],m[_]),f=g(he,ae,pe,ye,Z,y[b[_]],c[2],C[_])):_<64?(i=w(A,L,V,G,X,y[d[_]],k[3],m[_]),f=S(he,ae,pe,ye,Z,y[b[_]],c[3],C[_])):(i=R(A,L,V,G,X,y[d[_]],k[4],m[_]),f=l(he,ae,pe,ye,Z,y[b[_]],c[4],C[_])),A=X,X=G,G=B(V,10),V=L,L=i,he=Z,Z=ye,ye=B(pe,10),pe=ae,ae=f}var s=this._b+V+ye|0;this._b=this._c+G+Z|0,this._c=this._d+X+he|0,this._d=this._e+A+ae|0,this._e=this._a+L+pe|0,this._a=s},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var y=O.alloc?O.alloc(20):new O(20);return y.writeInt32LE(this._a,0),y.writeInt32LE(this._b,4),y.writeInt32LE(this._c,8),y.writeInt32LE(this._d,12),y.writeInt32LE(this._e,16),y};function B(y,I){return y<<I|y>>>32-I}r(B,"rotl");function l(y,I,A,L,V,G,X,he){return B(y+(I^A^L)+G+X|0,he)+V|0}r(l,"fn1");function S(y,I,A,L,V,G,X,he){return B(y+(I&A|~I&L)+G+X|0,he)+V|0}r(S,"fn2");function g(y,I,A,L,V,G,X,he){return B(y+((I|~A)^L)+G+X|0,he)+V|0}r(g,"fn3");function w(y,I,A,L,V,G,X,he){return B(y+(I&L|A&~L)+G+X|0,he)+V|0}r(w,"fn4");function R(y,I,A,L,V,G,X,he){return B(y+(I^(A|~L))+G+X|0,he)+V|0}r(R,"fn5"),re.exports=a},9509:(re,te,N)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var O=N(8764),J=O.Buffer;function D(d,b){for(var m in d)b[m]=d[m]}r(D,"copyProps"),J.from&&J.alloc&&J.allocUnsafe&&J.allocUnsafeSlow?re.exports=O:(D(O,te),te.Buffer=F);function F(d,b,m){return J(d,b,m)}r(F,"SafeBuffer"),F.prototype=Object.create(J.prototype),D(J,F),F.from=function(d,b,m){if(typeof d=="number")throw new TypeError("Argument must not be a number");return J(d,b,m)},F.alloc=function(d,b,m){if(typeof d!="number")throw new TypeError("Argument must be a number");var C=J(d);return b!==void 0?typeof m=="string"?C.fill(b,m):C.fill(b):C.fill(0),C},F.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return J(d)},F.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(d)}},4189:(re,te,N)=>{var O=N(9509).Buffer;function J(D,F){this._block=O.alloc(D),this._finalSize=F,this._blockSize=D,this._len=0}r(J,"Hash"),J.prototype.update=function(D,F){typeof D=="string"&&(F=F||"utf8",D=O.from(D,F));for(var d=this._block,b=this._blockSize,m=D.length,C=this._len,k=0;k<m;){for(var c=C%b,a=Math.min(m-k,b-c),B=0;B<a;B++)d[c+B]=D[k+B];C+=a,k+=a,C%b===0&&this._update(d)}return this._len+=m,this},J.prototype.digest=function(D){var F=this._len%this._blockSize;this._block[F]=128,this._block.fill(0,F+1),F>=this._finalSize&&(this._update(this._block),this._block.fill(0));var d=this._len*8;if(d<=4294967295)this._block.writeUInt32BE(d,this._blockSize-4);else{var b=(d&4294967295)>>>0,m=(d-b)/4294967296;this._block.writeUInt32BE(m,this._blockSize-8),this._block.writeUInt32BE(b,this._blockSize-4)}this._update(this._block);var C=this._hash();return D?C.toString(D):C},J.prototype._update=function(){throw new Error("_update must be implemented by subclass")},re.exports=J},9072:(re,te,N)=>{var O=re.exports=r(function(D){D=D.toLowerCase();var F=O[D];if(!F)throw new Error(D+" is not supported (we accept pull requests)");return new F},"SHA");O.sha=N(4448),O.sha1=N(8336),O.sha224=N(8432),O.sha256=N(7499),O.sha384=N(1686),O.sha512=N(7816)},4448:(re,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function b(){this.init(),this._w=d,J.call(this,64,56)}r(b,"Sha"),O(b,J),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function m(c){return c<<5|c>>>27}r(m,"rotl5");function C(c){return c<<30|c>>>2}r(C,"rotl30");function k(c,a,B,l){return c===0?a&B|~a&l:c===2?a&B|a&l|B&l:a^B^l}r(k,"ft"),b.prototype._update=function(c){for(var a=this._w,B=this._a|0,l=this._b|0,S=this._c|0,g=this._d|0,w=this._e|0,R=0;R<16;++R)a[R]=c.readInt32BE(R*4);for(;R<80;++R)a[R]=a[R-3]^a[R-8]^a[R-14]^a[R-16];for(var y=0;y<80;++y){var I=~~(y/20),A=m(B)+k(I,l,S,g)+w+a[y]+F[I]|0;w=g,g=S,S=C(l),l=B,B=A}this._a=B+this._a|0,this._b=l+this._b|0,this._c=S+this._c|0,this._d=g+this._d|0,this._e=w+this._e|0},b.prototype._hash=function(){var c=D.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c},re.exports=b},8336:(re,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);function b(){this.init(),this._w=d,J.call(this,64,56)}r(b,"Sha1"),O(b,J),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function m(a){return a<<1|a>>>31}r(m,"rotl1");function C(a){return a<<5|a>>>27}r(C,"rotl5");function k(a){return a<<30|a>>>2}r(k,"rotl30");function c(a,B,l,S){return a===0?B&l|~B&S:a===2?B&l|B&S|l&S:B^l^S}r(c,"ft"),b.prototype._update=function(a){for(var B=this._w,l=this._a|0,S=this._b|0,g=this._c|0,w=this._d|0,R=this._e|0,y=0;y<16;++y)B[y]=a.readInt32BE(y*4);for(;y<80;++y)B[y]=m(B[y-3]^B[y-8]^B[y-14]^B[y-16]);for(var I=0;I<80;++I){var A=~~(I/20),L=C(l)+c(A,S,g,w)+R+B[I]+F[A]|0;R=w,w=g,g=k(S),S=l,l=L}this._a=l+this._a|0,this._b=S+this._b|0,this._c=g+this._c|0,this._d=w+this._d|0,this._e=R+this._e|0},b.prototype._hash=function(){var a=D.allocUnsafe(20);return a.writeInt32BE(this._a|0,0),a.writeInt32BE(this._b|0,4),a.writeInt32BE(this._c|0,8),a.writeInt32BE(this._d|0,12),a.writeInt32BE(this._e|0,16),a},re.exports=b},8432:(re,te,N)=>{var O=N(5717),J=N(7499),D=N(4189),F=N(9509).Buffer,d=new Array(64);function b(){this.init(),this._w=d,D.call(this,64,56)}r(b,"Sha224"),O(b,J),b.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},b.prototype._hash=function(){var m=F.allocUnsafe(28);return m.writeInt32BE(this._a,0),m.writeInt32BE(this._b,4),m.writeInt32BE(this._c,8),m.writeInt32BE(this._d,12),m.writeInt32BE(this._e,16),m.writeInt32BE(this._f,20),m.writeInt32BE(this._g,24),m},re.exports=b},7499:(re,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[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],d=new Array(64);function b(){this.init(),this._w=d,J.call(this,64,56)}r(b,"Sha256"),O(b,J),b.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function m(l,S,g){return g^l&(S^g)}r(m,"ch");function C(l,S,g){return l&S|g&(l|S)}r(C,"maj");function k(l){return(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10)}r(k,"sigma0");function c(l){return(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7)}r(c,"sigma1");function a(l){return(l>>>7|l<<25)^(l>>>18|l<<14)^l>>>3}r(a,"gamma0");function B(l){return(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10}r(B,"gamma1"),b.prototype._update=function(l){for(var S=this._w,g=this._a|0,w=this._b|0,R=this._c|0,y=this._d|0,I=this._e|0,A=this._f|0,L=this._g|0,V=this._h|0,G=0;G<16;++G)S[G]=l.readInt32BE(G*4);for(;G<64;++G)S[G]=B(S[G-2])+S[G-7]+a(S[G-15])+S[G-16]|0;for(var X=0;X<64;++X){var he=V+c(I)+m(I,A,L)+F[X]+S[X]|0,ae=k(g)+C(g,w,R)|0;V=L,L=A,A=I,I=y+he|0,y=R,R=w,w=g,g=he+ae|0}this._a=g+this._a|0,this._b=w+this._b|0,this._c=R+this._c|0,this._d=y+this._d|0,this._e=I+this._e|0,this._f=A+this._f|0,this._g=L+this._g|0,this._h=V+this._h|0},b.prototype._hash=function(){var l=D.allocUnsafe(32);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l.writeInt32BE(this._h,28),l},re.exports=b},1686:(re,te,N)=>{var O=N(5717),J=N(7816),D=N(4189),F=N(9509).Buffer,d=new Array(160);function b(){this.init(),this._w=d,D.call(this,128,112)}r(b,"Sha384"),O(b,J),b.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},b.prototype._hash=function(){var m=F.allocUnsafe(48);function C(k,c,a){m.writeInt32BE(k,a),m.writeInt32BE(c,a+4)}return r(C,"writeInt64BE"),C(this._ah,this._al,0),C(this._bh,this._bl,8),C(this._ch,this._cl,16),C(this._dh,this._dl,24),C(this._eh,this._el,32),C(this._fh,this._fl,40),m},re.exports=b},7816:(re,te,N)=>{var O=N(5717),J=N(4189),D=N(9509).Buffer,F=[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],d=new Array(160);function b(){this.init(),this._w=d,J.call(this,128,112)}r(b,"Sha512"),O(b,J),b.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function m(w,R,y){return y^w&(R^y)}r(m,"Ch");function C(w,R,y){return w&R|y&(w|R)}r(C,"maj");function k(w,R){return(w>>>28|R<<4)^(R>>>2|w<<30)^(R>>>7|w<<25)}r(k,"sigma0");function c(w,R){return(w>>>14|R<<18)^(w>>>18|R<<14)^(R>>>9|w<<23)}r(c,"sigma1");function a(w,R){return(w>>>1|R<<31)^(w>>>8|R<<24)^w>>>7}r(a,"Gamma0");function B(w,R){return(w>>>1|R<<31)^(w>>>8|R<<24)^(w>>>7|R<<25)}r(B,"Gamma0l");function l(w,R){return(w>>>19|R<<13)^(R>>>29|w<<3)^w>>>6}r(l,"Gamma1");function S(w,R){return(w>>>19|R<<13)^(R>>>29|w<<3)^(w>>>6|R<<26)}r(S,"Gamma1l");function g(w,R){return w>>>0<R>>>0?1:0}r(g,"getCarry"),b.prototype._update=function(w){for(var R=this._w,y=this._ah|0,I=this._bh|0,A=this._ch|0,L=this._dh|0,V=this._eh|0,G=this._fh|0,X=this._gh|0,he=this._hh|0,ae=this._al|0,pe=this._bl|0,ye=this._cl|0,Z=this._dl|0,_=this._el|0,i=this._fl|0,f=this._gl|0,s=this._hl|0,x=0;x<32;x+=2)R[x]=w.readInt32BE(x*4),R[x+1]=w.readInt32BE(x*4+4);for(;x<160;x+=2){var P=R[x-30],j=R[x-15*2+1],Y=a(P,j),T=B(j,P);P=R[x-4],j=R[x-4+1];var u=l(P,j),K=S(j,P),be=R[x-7*2],me=R[x-7*2+1],ce=R[x-16*2],q=R[x-16*2+1],Q=T+me|0,oe=Y+be+g(Q,T)|0;Q=Q+K|0,oe=oe+u+g(Q,K)|0,Q=Q+q|0,oe=oe+ce+g(Q,q)|0,R[x]=oe,R[x+1]=Q}for(var we=0;we<160;we+=2){oe=R[we],Q=R[we+1];var Se=C(y,I,A),U=C(ae,pe,ye),z=k(y,ae),se=k(ae,y),de=c(V,_),Me=c(_,V),Ee=F[we],Oe=F[we+1],Ye=m(V,G,X),Pe=m(_,i,f),xe=s+Me|0,De=he+de+g(xe,s)|0;xe=xe+Pe|0,De=De+Ye+g(xe,Pe)|0,xe=xe+Oe|0,De=De+Ee+g(xe,Oe)|0,xe=xe+Q|0,De=De+oe+g(xe,Q)|0;var Re=se+U|0,Ce=z+Se+g(Re,se)|0;he=X,s=f,X=G,f=i,G=V,i=_,_=Z+xe|0,V=L+De+g(_,Z)|0,L=A,Z=ye,A=I,ye=pe,I=y,pe=ae,ae=xe+Re|0,y=De+Ce+g(ae,xe)|0}this._al=this._al+ae|0,this._bl=this._bl+pe|0,this._cl=this._cl+ye|0,this._dl=this._dl+Z|0,this._el=this._el+_|0,this._fl=this._fl+i|0,this._gl=this._gl+f|0,this._hl=this._hl+s|0,this._ah=this._ah+y+g(this._al,ae)|0,this._bh=this._bh+I+g(this._bl,pe)|0,this._ch=this._ch+A+g(this._cl,ye)|0,this._dh=this._dh+L+g(this._dl,Z)|0,this._eh=this._eh+V+g(this._el,_)|0,this._fh=this._fh+G+g(this._fl,i)|0,this._gh=this._gh+X+g(this._gl,f)|0,this._hh=this._hh+he+g(this._hl,s)|0},b.prototype._hash=function(){var w=D.allocUnsafe(64);function R(y,I,A){w.writeInt32BE(y,A),w.writeInt32BE(I,A+4)}return r(R,"writeInt64BE"),R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),R(this._gh,this._gl,48),R(this._hh,this._hl,56),w},re.exports=b},2553:(re,te,N)=>{var O=N(9509).Buffer,J=O.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function D(y){if(!y)return"utf8";for(var I;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(I)return;y=(""+y).toLowerCase(),I=!0}}r(D,"_normalizeEncoding");function F(y){var I=D(y);if(typeof I!="string"&&(O.isEncoding===J||!J(y)))throw new Error("Unknown encoding: "+y);return I||y}r(F,"normalizeEncoding"),te.s=d;function d(y){this.encoding=F(y);var I;switch(this.encoding){case"utf16le":this.text=B,this.end=l,I=4;break;case"utf8":this.fillLast=k,I=4;break;case"base64":this.text=S,this.end=g,I=3;break;default:this.write=w,this.end=R;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(I)}r(d,"StringDecoder"),d.prototype.write=function(y){if(y.length===0)return"";var I,A;if(this.lastNeed){if(I=this.fillLast(y),I===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<y.length?I?I+this.text(y,A):this.text(y,A):I||""},d.prototype.end=a,d.prototype.text=c,d.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function b(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}r(b,"utf8CheckByte");function m(y,I,A){var L=I.length-1;if(L<A)return 0;var V=b(I[L]);return V>=0?(V>0&&(y.lastNeed=V-1),V):--L<A||V===-2?0:(V=b(I[L]),V>=0?(V>0&&(y.lastNeed=V-2),V):--L<A||V===-2?0:(V=b(I[L]),V>=0?(V>0&&(V===2?V=0:y.lastNeed=V-3),V):0))}r(m,"utf8CheckIncomplete");function C(y,I,A){if((I[0]&192)!==128)return y.lastNeed=0,"\uFFFD";if(y.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return y.lastNeed=1,"\uFFFD";if(y.lastNeed>2&&I.length>2&&(I[2]&192)!==128)return y.lastNeed=2,"\uFFFD"}}r(C,"utf8CheckExtraBytes");function k(y){var I=this.lastTotal-this.lastNeed,A=C(this,y,I);if(A!==void 0)return A;if(this.lastNeed<=y.length)return y.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,I,0,y.length),this.lastNeed-=y.length}r(k,"utf8FillLast");function c(y,I){var A=m(this,y,I);if(!this.lastNeed)return y.toString("utf8",I);this.lastTotal=A;var L=y.length-(A-this.lastNeed);return y.copy(this.lastChar,0,L),y.toString("utf8",I,L)}r(c,"utf8Text");function a(y){var I=y&&y.length?this.write(y):"";return this.lastNeed?I+"\uFFFD":I}r(a,"utf8End");function B(y,I){if((y.length-I)%2===0){var A=y.toString("utf16le",I);if(A){var L=A.charCodeAt(A.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",I,y.length-1)}r(B,"utf16Text");function l(y){var I=y&&y.length?this.write(y):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,A)}return I}r(l,"utf16End");function S(y,I){var A=(y.length-I)%3;return A===0?y.toString("base64",I):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",I,y.length-A))}r(S,"base64Text");function g(y){var I=y&&y.length?this.write(y):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}r(g,"base64End");function w(y){return y.toString(this.encoding)}r(w,"simpleWrite");function R(y){return y&&y.length?this.write(y):""}r(R,"simpleEnd")},4927:(re,te,N)=>{re.exports=O;function O(D,F){if(J("noDeprecation"))return D;var d=!1;function b(){if(!d){if(J("throwDeprecation"))throw new Error(F);J("traceDeprecation")?console.trace(F):console.warn(F),d=!0}return D.apply(this,arguments)}return r(b,"deprecated"),b}r(O,"deprecate");function J(D){try{if(!N.g.localStorage)return!1}catch{return!1}var F=N.g.localStorage[D];return F==null?!1:String(F).toLowerCase()==="true"}r(J,"config")},6601:()=>{},9214:()=>{},2361:()=>{},4616:()=>{},2726:re=>{re.exports={i8:"7.0.1"}}},gt={};function je(re){var te=gt[re];if(te!==void 0)return te.exports;var N=gt[re]={id:re,loaded:!1,exports:{}};return yt[re].call(N.exports,N,N.exports,je),N.loaded=!0,N.exports}r(je,"__webpack_require__"),je.n=re=>{var te=re&&re.__esModule?()=>re.default:()=>re;return je.d(te,{a:te}),te},je.d=(re,te)=>{for(var N in te)je.o(te,N)&&!je.o(re,N)&&Object.defineProperty(re,N,{enumerable:!0,get:te[N]})},je.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),je.o=(re,te)=>Object.prototype.hasOwnProperty.call(re,te),je.nmd=re=>(re.paths=[],re.children||(re.children=[]),re);var Te={};(()=>{je.d(Te,{CG:()=>ke,kL:()=>Q,AB:()=>ne,A_:()=>Ue,eU:()=>I,O3:()=>he,jO:()=>oe,iX:()=>z,gO:()=>Ce,ti:()=>Ee,Bn:()=>a,Br:()=>S,Ph:()=>Me,Bw:()=>g,$H:()=>ge,gT:()=>Z,mI:()=>de,z$:()=>Ne,kb:()=>X,rR:()=>p,sx:()=>se,gZ:()=>s,E9:()=>Y,on:()=>me,dp:()=>T,kk:()=>be,Xf:()=>q,nX:()=>ce,tB:()=>o,AU:()=>y,Tx:()=>Re,lc:()=>$,X0:()=>xe,as:()=>De,a1:()=>h,UB:()=>ie,yN:()=>Pe,Xb:()=>G,xB:()=>L,ER:()=>A,d7:()=>Ke,en:()=>we,es:()=>U,nR:()=>_,jp:()=>Se,i8:()=>Je});var re=je(4297),te=je.n(re),N=je(3550),O=je.n(N),J=je(7191),D=je.n(J),F=je(4666),d=je.n(F),b=je(3715),m=je.n(b),C=je(5632),k=je(8764);const c={i8:"2.0.24"};function a(E,e,...t){if(!(this instanceof a))return new a(E,e,...t);O().call(this,E,e,...t)}r(a,"Bn"),Object.keys(O()).forEach(function(E){a[E]=O()[E]}),a.prototype=Object.create(O().prototype),a.prototype.constructor=a;function B(E){const e=Buffer.alloc(E.length);for(let t=0;t<E.length;t++)e[t]=E[E.length-1-t];return e}r(B,"reverseBuf"),a.prototype.fromHex=function(E,e){return this.fromBuffer(Buffer.from(E,"hex"),e)},a.prototype.toHex=function(E){return this.toBuffer(E).toString("hex")},a.prototype.toJSON=function(){return this.toString()},a.prototype.fromJSON=function(E){return a(E).copy(this),this},a.prototype.fromNumber=function(E){return a(E).copy(this),this},a.prototype.toNumber=function(){return parseInt(this.toString(10),10)},a.prototype.fromString=function(E,e){return a(E,e).copy(this),this},a.fromBuffer=function(E,e={endian:"big"}){e.endian==="little"&&(E=B(E));const t=E.toString("hex");return new a(t,16)},a.prototype.fromBuffer=function(E,e){return a.fromBuffer(E,e).copy(this),this},a.prototype.toBuffer=function(E={size:void 0,endian:"big"}){let e;if(E.size){const n=this.toString(16,2),v=n.length/2;if(e=Buffer.from(n,"hex"),v!==E.size){if(v>E.size)e=e.slice(v-e.length,e.length);else if(v<E.size){const M=Buffer.alloc(E.size);for(let W=0;W<e.length;W++)M[M.length-1-W]=e[e.length-1-W];for(let W=0;W<E.size-v;W++)M[W]=0;e=M}}}else{const n=this.toString(16,2);e=Buffer.from(n,"hex")}E.endian==="little"&&(e=B(e));const t=Buffer.from([0]);return Buffer.compare(e,t)===0?Buffer.from([]):e},a.prototype.toFastBuffer=a.prototype.toBuffer,a.fromFastBuffer=a.fromBuffer,a.prototype.fromFastBuffer=a.prototype.fromBuffer,a.prototype.fromSm=function(E,e={endian:"big"}){return E.length===0&&this.fromBuffer(Buffer.from([0])),e.endian==="little"&&(E=B(E)),E[0]&128?(E[0]=E[0]&127,this.fromBuffer(E),this.neg().copy(this)):this.fromBuffer(E),this},a.prototype.toSm=function(E={endian:"big"}){const e=E.endian;let t;return this.cmp(0)===-1?(t=this.neg().toBuffer(),t[0]&128?t=Buffer.concat([Buffer.from([128]),t]):t[0]=t[0]|128):(t=this.toBuffer(),t[0]&128&&(t=Buffer.concat([Buffer.from([0]),t]))),t.length===1&t[0]===0&&(t=Buffer.from([])),e==="little"&&(t=B(t)),t},a.prototype.fromBits=function(E,e={strict:!1}){let t=Buffer.alloc(4);if(t.writeUInt32BE(E,0),E=t.readInt32BE(0),e.strict&&E&8388608)throw new Error("negative bit set");const n=E>>24,v=E&8388607;if(t=Buffer.alloc(4),t.writeInt32BE(v),n<=3)t=t.slice(1,n+1);else{const M=Buffer.alloc(n-3);M.fill(0),t=Buffer.concat([t,M])}return this.fromBuffer(t),E&8388608&&a(0).sub(this).copy(this),this},a.prototype.toBits=function(){let E;this.lt(0)?E=this.neg().toBuffer():E=this.toBuffer();let e=E.length,t;if(e>3)t=Buffer.concat([Buffer.from([0]),E.slice(0,3)]).readUInt32BE(0);else if(e<=3){const v=Buffer.alloc(3-e+1);v.fill(0),t=Buffer.concat([v,E.slice(0,e)]).readUInt32BE(0)}t&8388608&&(t>>=8,e++),this.lt(0)&&(t|=8388608);const n=e<<24|t;return E=Buffer.alloc(4),E.writeInt32BE(n,0),E.readUInt32BE(0)},a.prototype.fromScriptNumBuffer=function(E,e,t,n=!1){if(t===void 0&&(t=4),E.length>t)throw new Error(`script number overflow nMaxNumSize: ${t}`);if(e&&E.length>0&&!(E[E.length-1]&127)&&(E.length<=1||!(E[E.length-2]&128)))throw new Error("non-minimally encoded script number");return E.byteLength===0||E.byteLength<=t,this.fromSm(E,{endian:"little"})},a.prototype.toScriptNumBuffer=function(E){return this.toSm({endian:"little"})},a.prototype.neg=function(){const E=O().prototype.neg.call(this),e=Object.create(a.prototype);return E.copy(e),e},a.prototype.add=function(E){const e=O().prototype.add.call(this,E);return E=Object.create(a.prototype),e.copy(E),E},a.prototype.sub=function(E){const e=O().prototype.sub.call(this,E);return E=Object.create(a.prototype),e.copy(E),E},a.prototype.mul=function(E){const e=O().prototype.mul.call(this,E);return E=Object.create(a.prototype),e.copy(E),E},a.prototype.mod=function(E){const e=O().prototype.mod.call(this,E);return E=Object.create(a.prototype),e.copy(E),E},a.prototype.umod=function(E){const e=O().prototype.umod.call(this,E);return E=Object.create(a.prototype),e.copy(E),E},a.prototype.invm=function(E){const e=O().prototype.invm.call(this,E);return E=Object.create(a.prototype),e.copy(E),E},a.prototype.div=function(E){const e=O().prototype.div.call(this,E);return E=Object.create(a.prototype),e.copy(E),E},a.prototype.ushln=function(E){const e=O().prototype.ushln.call(this,E),t=Object.create(a.prototype);return e.copy(t),t},a.prototype.ushrn=function(E){const e=O().prototype.ushrn.call(this,E),t=Object.create(a.prototype);return e.copy(t),t},a.prototype.cmp=function(E){return O().prototype.cmp.call(this,E)};function l(E){a.prototype["_"+E]=a.prototype[E];const e=r(function(t){return typeof t=="string"?t=new a(t):typeof t=="number"&&(t=new a(t.toString())),this["_"+E](t)},"f");a.prototype[E]=e}r(l,"decorate"),a.prototype.eq=function(E){return this.cmp(E)===0},a.prototype.neq=function(E){return this.cmp(E)!==0},a.prototype.gt=function(E){return this.cmp(E)>0},a.prototype.geq=function(E){return this.cmp(E)>=0},a.prototype.lt=function(E){return this.cmp(E)<0},a.prototype.leq=function(E){return this.cmp(E)<=0},l("add"),l("sub"),l("mul"),l("mod"),l("invm"),l("div"),l("cmp"),l("gt"),l("geq"),l("lt"),l("leq");class S{static{r(this,"Br")}constructor(e){this.fromObject({buf:e})}fromObject(e){return this.buf=e.buf||this.buf||void 0,this.pos=e.pos||this.pos||0,this}eof(){return this.pos>=this.buf.length}read(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);return this.pos=this.pos+e,t}readReverse(e=this.buf.length){const t=this.buf.slice(this.pos,this.pos+e);this.pos=this.pos+e;const n=Buffer.alloc(t.length);for(let v=0;v<n.length;v++)n[v]=t[t.length-1-v];return n}readUInt8(){const e=this.buf.readUInt8(this.pos);return this.pos=this.pos+1,e}readInt8(){const e=this.buf.readInt8(this.pos);return this.pos=this.pos+1,e}readUInt16BE(){const e=this.buf.readUInt16BE(this.pos);return this.pos=this.pos+2,e}readInt16BE(){const e=this.buf.readInt16BE(this.pos);return this.pos=this.pos+2,e}readUInt16LE(){const e=this.buf.readUInt16LE(this.pos);return this.pos=this.pos+2,e}readInt16LE(){const e=this.buf.readInt16LE(this.pos);return this.pos=this.pos+2,e}readUInt32BE(){const e=this.buf.readUInt32BE(this.pos);return this.pos=this.pos+4,e}readInt32BE(){const e=this.buf.readInt32BE(this.pos);return this.pos=this.pos+4,e}readUInt32LE(){const e=this.buf.readUInt32LE(this.pos);return this.pos=this.pos+4,e}readInt32LE(){const e=this.buf.readInt32LE(this.pos);return this.pos=this.pos+4,e}readUInt64BEBn(){const e=this.buf.slice(this.pos,this.pos+8),t=new a().fromBuffer(e);return this.pos=this.pos+8,t}readUInt64LEBn(){const e=this.readReverse(8);return new a().fromBuffer(e)}readVarIntNum(){const e=this.readUInt8();let t,n;switch(e){case 253:return this.readUInt16LE();case 254:return this.readUInt32LE();case 255:if(t=this.readUInt64LEBn(),n=t.toNumber(),n<=Math.pow(2,53))return n;throw new Error("number too large to retain precision - use readVarIntBn");default:return e}}readVarIntBuf(){switch(this.buf.readUInt8(this.pos)){case 253:return this.read(3);case 254:return this.read(5);case 255:return this.read(9);default:return this.read(1)}}readVarIntBn(){const e=this.readUInt8();switch(e){case 253:return new a(this.readUInt16LE());case 254:return new a(this.readUInt32LE());case 255:return this.readUInt64LEBn();default:return new a(e)}}}class g{static{r(this,"Bw")}constructor(e){this.fromObject({bufs:e})}fromObject(e){return this.bufs=e.bufs||this.bufs||[],this}getLength(){let e=0;for(const t in this.bufs){const n=this.bufs[t];e=e+n.length}return e}toBuffer(){return Buffer.concat(this.bufs)}write(e){return this.bufs.push(e),this}writeReverse(e){const t=Buffer.alloc(e.length);for(let n=0;n<t.length;n++)t[n]=e[e.length-1-n];return this.bufs.push(t),this}writeUInt8(e){const t=Buffer.alloc(1);return t.writeUInt8(e,0),this.write(t),this}writeInt8(e){const t=Buffer.alloc(1);return t.writeInt8(e,0),this.write(t),this}writeUInt16BE(e){const t=Buffer.alloc(2);return t.writeUInt16BE(e,0),this.write(t),this}writeInt16BE(e){const t=Buffer.alloc(2);return t.writeInt16BE(e,0),this.write(t),this}writeUInt16LE(e){const t=Buffer.alloc(2);return t.writeUInt16LE(e,0),this.write(t),this}writeInt16LE(e){const t=Buffer.alloc(2);return t.writeInt16LE(e,0),this.write(t),this}writeUInt32BE(e){const t=Buffer.alloc(4);return t.writeUInt32BE(e,0),this.write(t),this}writeInt32BE(e){const t=Buffer.alloc(4);return t.writeInt32BE(e,0),this.write(t),this}writeUInt32LE(e){const t=Buffer.alloc(4);return t.writeUInt32LE(e,0),this.write(t),this}writeInt32LE(e){const t=Buffer.alloc(4);return t.writeInt32LE(e,0),this.write(t),this}writeUInt64BEBn(e){const t=e.toBuffer({size:8});return this.write(t),this}writeUInt64LEBn(e){const t=e.toBuffer({size:8});return this.writeReverse(t),this}writeVarIntNum(e){const t=g.varIntBufNum(e);return this.write(t),this}writeVarIntBn(e){const t=g.varIntBufBn(e);return this.write(t),this}static varIntBufNum(e){let t;return e<253?(t=Buffer.alloc(1),t.writeUInt8(e,0)):e<65536?(t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(e,1)):e<4294967296?(t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(e,1)):(t=Buffer.alloc(9),t.writeUInt8(255,0),t.writeInt32LE(e&-1,1),t.writeUInt32LE(Math.floor(e/4294967296),5)),t}static varIntBufBn(e){let t;const n=e.toNumber();if(n<253)t=Buffer.alloc(1),t.writeUInt8(n,0);else if(n<65536)t=Buffer.alloc(3),t.writeUInt8(253,0),t.writeUInt16LE(n,1);else if(n<4294967296)t=Buffer.alloc(5),t.writeUInt8(254,0),t.writeUInt32LE(n,1);else{const v=new g;v.writeUInt8(255),v.writeUInt64LEBn(e),t=v.toBuffer()}return t}}function w(E){const e=typeof E=="string"?E.charCodeAt(0):E;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}r(w,"isHexadecimal");const R=w;class y{static{r(this,"Struct")}constructor(e){this.fromObject(e)}fromObject(e){if(!e)return this;for(const t of Object.keys(e))e[t]!==void 0&&(this[t]=e[t]);return this}static fromObject(e){return new this().fromObject(e)}fromBr(e){throw e instanceof S?new Error("not implemented"):new Error("br must be a buffer reader")}static fromBr(e){return new this().fromBr(e)}asyncFromBr(e){throw e instanceof S?new Error("not implemented"):new Error("br must be a buffer reader")}static asyncFromBr(e){return new this().asyncFromBr(e)}toBw(e){throw new Error("not implemented")}asyncToBw(e){throw new Error("not implemented")}*genFromBuffers(){throw new Error("not implemented")}*expect(e,t){let n=t;const v=new g;let M=0;for(t&&(v.write(t),M+=t.length);M<e;)n=yield e-M,n&&(v.write(n),M+=n.length);n=v.toBuffer();const W=M-e,ee=n.slice(n.length-W,n.length);return n=n.slice(0,n.length-W),{buf:n,remainderbuf:ee}}fromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const n=new S(e);return this.fromBr(n,...t)}static fromBuffer(...e){return new this().fromBuffer(...e)}asyncFromBuffer(e,...t){if(!Buffer.isBuffer(e))throw new Error("buf must be a buffer");const n=new S(e);return this.asyncFromBr(n,...t)}static asyncFromBuffer(e,...t){return new this().asyncFromBuffer(e,...t)}fromFastBuffer(e,...t){return e.length===0?this:this.fromBuffer(e,...t)}static fromFastBuffer(...e){return new this().fromFastBuffer(...e)}toBuffer(...e){return this.toBw(...e).toBuffer()}asyncToBuffer(...e){return this.asyncToBw(...e).then(t=>t.toBuffer())}toFastBuffer(...e){return Object.keys(this).length===0?Buffer.alloc(0):this.toBuffer(...e)}fromHex(e,...t){if(!R(e))throw new Error("invalid hex string");const n=Buffer.from(e,"hex");return this.fromBuffer(n,...t)}static fromHex(e,...t){return new this().fromHex(e,...t)}asyncFromHex(e,...t){if(!R(e))throw new Error("invalid hex string");const n=Buffer.from(e,"hex");return this.asyncFromBuffer(n,...t)}static asyncFromHex(e,...t){return new this().asyncFromHex(e,...t)}fromFastHex(e,...t){if(!R(e))throw new Error("invalid hex string");const n=Buffer.from(e,"hex");return this.fromFastBuffer(n,...t)}static fromFastHex(e,...t){return new this().fromFastHex(e,...t)}toHex(...e){return this.toBuffer(...e).toString("hex")}asyncToHex(...e){return this.asyncToBuffer(...e).then(t=>t.toString("hex"))}toFastHex(...e){return this.toFastBuffer(...e).toString("hex")}fromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.fromHex(e,...t)}static fromString(e,...t){return new this().fromString(e,...t)}asyncFromString(e,...t){if(typeof e!="string")throw new Error("str must be a string");return this.asyncFromHex(e,...t)}static asyncFromString(e,...t){return new this().asyncFromString(e,...t)}toString(...e){return this.toHex(...e)}asyncToString(...e){return this.asyncToHex(...e)}fromJSON(e){throw new Error("not implemented")}static fromJSON(e,...t){return new this().fromJSON(e,...t)}asyncFromJSON(e,...t){throw new Error("not implemented")}static asyncFromJSON(e,...t){return new this().asyncFromJSON(e,...t)}toJSON(){var e={};for(var t in this)if(Array.isArray(this[t])){const v=[];for(var n in this[t])typeof this[t][n].toJSON=="function"?v.push(this[t][n].toJSON()):v.push(JSON.stringify(this[t][n]));e[t]=v}else if(this[t]===null)e[t]=this[t];else if(typeof this[t]=="object"&&typeof this[t].toJSON=="function")e[t]=this[t].toJSON();else if(typeof this[t]=="boolean"||typeof this[t]=="number"||typeof this[t]=="string")e[t]=this[t];else if(Buffer.isBuffer(this[t]))e[t]=this[t].toString("hex");else if(this[t]instanceof Map)e[t]=JSON.stringify(this[t]);else if(typeof this[t]=="object")throw new Error("not implemented");return e}asyncToJSON(){throw new Error("not implemented")}clone(){return this.cloneByJSON()}cloneByBuffer(){return new this.constructor().fromBuffer(this.toBuffer())}cloneByFastBuffer(){return new this.constructor().fromFastBuffer(this.toFastBuffer())}cloneByHex(){return new this.constructor().fromHex(this.toHex())}cloneByString(){return new this.constructor().fromString(this.toString())}cloneByJSON(){return new this.constructor().fromJSON(this.toJSON())}}class I extends y{static{r(this,"Base58")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input should be a buffer");return D().encode(e)}static decode(e){if(typeof e!="string")throw new Error("Input should be a string");return Buffer.from(D().decode(e))}fromBuffer(e){return this.buf=e,this}fromString(e){const t=I.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return I.encode(this.buf)}}const A=r((E,e)=>{if(!Buffer.isBuffer(E)||!Buffer.isBuffer(e))throw new Error("buf1 and buf2 must be buffers");if(E.length!==e.length)return!1;let t=0;for(let n=0;n<E.length;n++){const v=E[n],M=e[n];t|=v^M}return t===0},"cmp");class L extends y{static{r(this,"WorkersResult")}constructor(e,t,n){super({resbuf:e,isError:t,id:n})}fromResult(e,t){return e.toFastBuffer?this.resbuf=e.toFastBuffer():Buffer.isBuffer(e)?this.resbuf=e:this.resbuf=Buffer.from(JSON.stringify(e)),this.isError=!1,this.id=t,this}static fromResult(e,t){return new this().fromResult(e,t)}fromError(e,t){return this.resbuf=Buffer.from(JSON.stringify(e.message)),this.isError=!0,this.id=t,this}toBw(e){return e||(e=new g),e.writeVarIntNum(this.resbuf.length),e.write(this.resbuf),e.writeUInt8(Number(this.isError)),e.writeVarIntNum(this.id),e}fromBr(e){const t=e.readVarIntNum();return this.resbuf=e.read(t),this.isError=!!e.readUInt8(),this.id=e.readVarIntNum(),this}}let V;class G{static{r(this,"Workers")}constructor(e=[],t=0,n=[],v=new Map){this.nativeWorkers=e,this.lastid=t,this.incompconsteRes=n,this.promisemap=v}asyncObjectMethod(e,t,n,v=this.lastid+1){if(!n)throw new Error("must specify args");const M=e[t](...n);return new L().fromResult(M,v)}static asyncObjectMethod(e,t,n,v){return V||(V=new G),V.asyncObjectMethod(e,t,n,v)}asyncClassMethod(e,t,n,v=this.lastid+1){if(!n)throw new Error("must specify args");const M=e[t](...n);return new L().fromResult(M,v)}static asyncClassMethod(e,t,n,v){return V||(V=new G),V.asyncClassMethod(e,t,n,v)}static endGlobalWorkers(){V&&!process.browser&&(V=void 0)}}class X{static{r(this,"Hash")}}X.sha1=function(E){if(!Buffer.isBuffer(E))throw new Error("sha1 hash must be of a buffer");const e=m().sha1,t=new e().update(E).digest();return Buffer.from(t)},X.sha1.blockSize=512,X.asyncSha1=async function(E){const e=[E];return(await G.asyncClassMethod(X,"sha1",e)).resbuf},X.sha256=function(E){if(!Buffer.isBuffer(E))throw new Error("sha256 hash must be of a buffer");const e=m().sha256,t=new e().update(E).digest();return Buffer.from(t)},X.sha256.blockSize=512,X.asyncSha256=async function(E){const e=[E];return(await G.asyncClassMethod(X,"sha256",e)).resbuf},X.sha256Sha256=function(E){try{return X.sha256(X.sha256(E))}catch(e){throw new Error("sha256Sha256 hash must be of a buffer: "+e)}},X.asyncSha256Sha256=async function(E){const e=[E];return(await G.asyncClassMethod(X,"sha256Sha256",e)).resbuf},X.ripemd160=function(E){if(!Buffer.isBuffer(E))throw new Error("ripemd160 hash must be of a buffer");const e=m().ripemd160,t=new e().update(E).digest();return Buffer.from(t)},X.asyncRipemd160=async function(E){const e=[E];return(await G.asyncClassMethod(X,"ripemd160",e)).resbuf},X.sha256Ripemd160=function(E){try{return X.ripemd160(X.sha256(E))}catch(e){throw new Error("sha256Ripemd160 hash must be of a buffer: "+e)}},X.asyncSha256Ripemd160=async function(E){const e=[E];return(await G.asyncClassMethod(X,"sha256Ripemd160",e)).resbuf},X.sha512=function(E){if(!Buffer.isBuffer(E))throw new Error("sha512 hash must be of a buffer");const e=m().sha512,t=new e().update(E).digest();return Buffer.from(t)},X.asyncSha512=async function(E){const e=[E];return(await G.asyncClassMethod(X,"sha512",e)).resbuf},X.sha512.blockSize=1024,X.hmac=function(E,e,t){if(E!=="sha1"&&E!=="sha256"&&E!=="sha512")throw new Error("invalid choice of hash function");const n=X[E];if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new Error("data and key must be buffers");const v=n.blockSize/8;if(t.length>v&&(t=n(t)),t.length<v){const ee=Buffer.alloc(v);ee.fill(0,t.length),t.copy(ee),t=ee}const M=Buffer.alloc(v),W=Buffer.alloc(v);for(let ee=0;ee<v;ee++)M[ee]=92^t[ee],W[ee]=54^t[ee];return n(Buffer.concat([M,n(Buffer.concat([W,e]))]))},X.sha1Hmac=function(E,e){return X.hmac("sha1",E,e)},X.asyncSha1Hmac=async function(E,e){const t=[E,e];return(await G.asyncClassMethod(X,"sha1Hmac",t)).resbuf},X.sha1Hmac.bitsize=160,X.sha256Hmac=function(E,e){return X.hmac("sha256",E,e)},X.asyncSha256Hmac=async function(E,e){const t=[E,e];return(await G.asyncClassMethod(X,"sha256Hmac",t)).resbuf},X.sha256Hmac.bitsize=256,X.sha512Hmac=function(E,e){return X.hmac("sha512",E,e)},X.asyncSha512Hmac=async function(E,e){const t=[E,e];return(await G.asyncClassMethod(X,"sha512Hmac",t)).resbuf},X.sha512Hmac.bitsize=512;class he extends y{static{r(this,"Base58Check")}constructor(e){super({buf:e})}fromHex(e){return this.fromBuffer(Buffer.from(e,"hex"))}toHex(){return this.toBuffer().toString("hex")}static decode(e){if(typeof e!="string")throw new Error("Input must be a string");const t=I.decode(e);if(t.length<4)throw new Error("Input string too short");const n=t.slice(0,-4),v=t.slice(-4),W=X.sha256Sha256(n).slice(0,4);if(!A(v,W))throw new Error("Checksum mismatch");return n}static encode(e){if(!Buffer.isBuffer(e))throw new Error("Input must be a buffer");const t=Buffer.alloc(e.length+4),n=X.sha256Sha256(e);return e.copy(t),n.copy(t,e.length),I.encode(t)}fromBuffer(e){return this.buf=e,this}fromString(e){const t=he.decode(e);return this.buf=t,this}toBuffer(){return this.buf}toString(){return he.encode(this.buf)}}class ae{static{r(this,"Config")}constructor(e){this.keyDefined=t=>t in e,this.getValue=t=>e[t]}get(e){if(this.keyDefined(e))return this.getValue(e);throw new Error(`Unknown configuration: ${e}`)}}class pe{static{r(this,"ConfigBuilder")}constructor(){this.variables={}}build(){return new ae(this.variables)}addValue(e,t){if(t===void 0)throw new Error(`Failed to add "${e}" property. The value cannot be undefined`);if(e in this.variables)throw new Error(`"${e}" already has a value defined.`);return this.variables[e]=t,this}addValueWithDefault(e,t,n){if(n===void 0)throw new Error(`Failed to add "${e}" property. Default value cannot be undefined`);return this.addValue(e,t===void 0?n:t)}}const ye=new pe().addValue("NETWORK",process.env.NETWORK||"mainnet").build(),Z={};if(Z.Mainnet={MaxSize:33554432,Port:8333,Address:{pubKeyHash:0,payToScriptHash:5},Bip32:{pubKey:76067358,privKey:76066276},Block:{maxNBits:486604799,magicNum:3823236072},Msg:{magicNum:3823236072,versionBytesNum:70015},PrivKey:{versionByteNum:128},TxBuilder:{dust:0,feePerKbNum:50},Workers:{timeout:6e4}},Z.Testnet=Object.assign({},Z.Mainnet,{Port:18333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4108710900},Msg:{magicNum:4108710900,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),Z.Regtest=Object.assign({},Z.Mainnet,{Port:18444,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:545259519,magicNum:3669344250},Msg:{magicNum:3669344250,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),Z.STN=Object.assign({},Z.Mainnet,{Port:9333,Address:{pubKeyHash:111,payToScriptHash:196},Bip32:{pubKey:70617039,privKey:70615956},Block:{maxNBits:486604799,magicNum:4224632057},Msg:{magicNum:4224632057,versionBytesNum:70015},PrivKey:{versionByteNum:239}}),ye.get("NETWORK")==="testnet")Z.Default=Object.assign({},Z.Testnet);else if(ye.get("NETWORK")==="mainnet")Z.Default=Object.assign({},Z.Mainnet);else if(ye.get("NETWORK")==="regtest")Z.Default=Object.assign({},Z.Regtest);else if(ye.get("NETWORK")==="stn")Z.Default=Object.assign({},Z.STN);else throw new Error(`must set network in environment variable - mainnet, testnet, regtest or stn?, received ${ye.get("NETWORK")}`);const _=r(E=>Z.Mainnet.Msg.magicNum===E?Z.Mainnet:Z.Testnet.Msg.magicNum===E?Z.Testnet:Z.Regtest.Msg.magicNum===E?Z.Regtest:Z.STN.Msg.magicNum===E?Z.STN:Z.Default,"getConstants"),i={FALSE:0,0:0,PUSHDATA1:76,PUSHDATA2:77,PUSHDATA4:78,"1NEGATE":79,RESERVED:80,TRUE:81,1:81,2:82,3:83,4:84,5:85,6:86,7:87,8:88,9:89,10:90,11:91,12:92,13:93,14:94,15:95,16:96,NOP:97,VER:98,IF:99,NOTIF:100,VERIF:101,VERNOTIF:102,ELSE:103,ENDIF:104,VERIFY:105,RETURN:106,TOALTSTACK:107,FROMALTSTACK:108,"2DROP":109,"2DUP":110,"3DUP":111,"2OVER":112,"2ROT":113,"2SWAP":114,IFDUP:115,DEPTH:116,DROP:117,DUP:118,NIP:119,OVER:120,PICK:121,ROLL:122,ROT:123,SWAP:124,TUCK:125,CAT:126,SUBSTR:127,SPLIT:127,LEFT:128,NUM2BIN:128,RIGHT:129,BIN2NUM:129,SIZE:130,INVERT:131,AND:132,OR:133,XOR:134,EQUAL:135,EQUALVERIFY:136,RESERVED1:137,RESERVED2:138,"1ADD":139,"1SUB":140,"2MUL":141,"2DIV":142,NEGATE:143,ABS:144,NOT:145,"0NOTEQUAL":146,ADD:147,SUB:148,MUL:149,DIV:150,MOD:151,LSHIFT:152,RSHIFT:153,BOOLAND:154,BOOLOR:155,NUMEQUAL:156,NUMEQUALVERIFY:157,NUMNOTEQUAL:158,LESSTHAN:159,GREATERTHAN:160,LESSTHANOREQUAL:161,GREATERTHANOREQUAL:162,MIN:163,MAX:164,WITHIN:165,RIPEMD160:166,SHA1:167,SHA256:168,HASH160:169,HASH256:170,CODESEPARATOR:171,CHECKSIG:172,CHECKSIGVERIFY:173,CHECKMULTISIG:174,CHECKMULTISIGVERIFY:175,NOP1:176,NOP2:177,CHECKLOCKTIMEVERIFY:177,NOP3:178,CHECKSEQUENCEVERIFY:178,NOP4:179,NOP5:180,NOP6:181,NOP7:182,NOP8:183,NOP9:184,NOP10:185,SMALLDATA:249,SMALLINTEGER:250,PUBKEYS:251,PUBKEYHASH:253,PUBKEY:254,INVALIDOPCODE:255},f={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_SPLIT:127,OP_LEFT:128,OP_NUM2BIN:128,OP_RIGHT:129,OP_BIN2NUM:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_SMALLDATA:249,OP_SMALLINTEGER:250,OP_PUBKEYS:251,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};class s extends y{static{r(this,"OpCode")}constructor(e){super({num:e})}fromNumber(e){return this.num=e,this}static fromNumber(e){return new this().fromNumber(e)}toNumber(){return this.num}fromString(e){const t=f[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}fromNoOpString(e){const t=i[e];if(t===void 0)throw new Error("Invalid opCodeStr");return this.num=t,this}static fromString(e){return new this().fromString(e)}static fromNoOpString(e){return new this().fromNoOpString(e)}toString(){const e=s.str[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():"OP_"+this.num.toNumber():e}toNoOpString(){const e=s.noopstr[this.num];return e===void 0?this.num>0&&this.num<s.OP_PUSHDATA1?this.num.toString():this.num.toNumber():e}}s.str={},s.noopstr={};for(const E in f)s[E]=f[E],Object.prototype.hasOwnProperty.call(f,E)&&(s.str[f[E]]=E);for(const E in i)s[E]=i[E],Object.prototype.hasOwnProperty.call(i,E)&&(s.noopstr[i[E]]=E);const x=d().curves.secp256k1,j=x.curve.point().constructor;class Y extends j{static{r(this,"Point")}constructor(e,t,n){super(x.curve,e,t,n)}static fromX(e,t){const n=x.curve.pointFromX(t,e);return Object.create(Y.prototype).copyFrom(n)}copyFrom(e){if(!(e instanceof j))throw new Error("point should be an external point");return Object.keys(e).forEach(function(t){this[t]=e[t]}.bind(this)),this}add(e){return e=j.prototype.add.call(this,e),Object.create(Y.prototype).copyFrom(e)}mul(e){if(!e.lt(Y.getN()))throw new Error("point mul out of range");const t=j.prototype.mul.call(this,e);return Object.create(Y.prototype).copyFrom(t)}mulAdd(e,t,n){const v=j.prototype.mulAdd.call(this,e,t,n);return t=Object.create(Y.prototype),t.copyFrom(v)}getX(){const e=j.prototype.getX.call(this),t=Object.create(a.prototype);return e.copy(t),t}getY(){const e=j.prototype.getY.call(this),t=Object.create(a.prototype);return e.copy(t),t}fromX(e,t){const n=Y.fromX(e,t);return this.copyFrom(n)}toJSON(){return{x:this.getX().toString(),y:this.getY().toString()}}fromJSON(e){const t=new a().fromString(e.x),n=new a().fromString(e.y),v=new Y(t,n);return this.copyFrom(v)}toString(){return JSON.stringify(this.toJSON())}fromString(e){const t=JSON.parse(e),n=new Y().fromJSON(t);return this.copyFrom(n)}static getG(){const e=x.curve.g;return Object.create(Y.prototype).copyFrom(e)}static getN(){return new a(x.curve.n.toArray())}validate(){if(Y.fromX(this.getY().isOdd(),this.getX()).getY().cmp(this.getY())!==0)throw new Error("Invalid y value of public key");if(!(this.getX().gt(-1)&&this.getX().lt(Y.getN()))||!(this.getY().gt(-1)&&this.getY().lt(Y.getN())))throw new Error("Point does not lie on the curve");return this}}class T extends y{static{r(this,"PubKey")}constructor(e,t){super({point:e,compressed:t})}fromJSON(e){return this.fromFastHex(e),this}toJSON(){return this.toFastHex()}fromPrivKey(e){return this.fromObject({point:Y.getG().mul(e.bn),compressed:e.compressed}),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=await G.asyncObjectMethod(this,"fromPrivKey",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromBuffer(e,t){return this.fromDer(e,t)}async asyncFromBuffer(e,t){const n=[e,t],v=await G.asyncObjectMethod(this,"fromBuffer",n);return this.fromFastBuffer(v.resbuf)}fromFastBuffer(e){if(e.length===0)return this;const t=!!e[0];return e=e.slice(1),this.fromDer(e),this.compressed=t,this}fromDer(e,t){if(t===void 0?t=!0:t=!1,e[0]===4||!t&&(e[0]===6||e[0]===7)){const n=e.slice(1,33),v=e.slice(33,65);if(n.length!==32||v.length!==32||e.length!==65)throw new Error("LEngth of x and y must be 32 bytes");const M=new a(n),W=new a(v);this.point=new Y(M,W),this.compressed=!1}else if(e[0]===3){const n=e.slice(1),v=new a(n);this.fromX(!0,v),this.compressed=!0}else if(e[0]===2){const n=e.slice(1),v=new a(n);this.fromX(!1,v),this.compressed=!0}else throw new Error("Invalid DER format pubKey");return this}static fromDer(e,t){return new this().fromDer(e,t)}fromString(e){return this.fromDer(Buffer.from(e,"hex")),this}fromX(e,t){if(typeof e!="boolean")throw new Error("Must specify whether y is odd or not (true or false)");return this.point=Y.fromX(e,t),this}static fromX(e,t){return new this().fromX(e,t)}toBuffer(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e)}toFastBuffer(){if(!this.point)return Buffer.alloc(0);const e=new g,t=this.compressed===void 0?!0:!!this.compressed;return e.writeUInt8(Number(t)),e.write(this.toDer(!1)),e.toBuffer()}toDer(e){if(e=e===void 0?this.compressed:e,typeof e!="boolean")throw new Error("Must specify whether the public key is compressed or not (true or false)");const t=this.point.getX(),n=this.point.getY(),v=t.toBuffer({size:32}),M=n.toBuffer({size:32});let W;return e?(M[M.length-1]%2?W=Buffer.from([3]):W=Buffer.from([2]),Buffer.concat([W,v])):(W=Buffer.from([4]),Buffer.concat([W,v,M]))}toString(){const e=this.compressed===void 0?!0:this.compressed;return this.toDer(e).toString("hex")}static isCompressedOrUncompressed(e){if(e.length<33)return!1;if(e[0]===4){if(e.length!==65)return!1}else if(e[0]===2||e[0]===3){if(e.length!==33)return!1}else return!1;return!0}validate(){if(this.point.isInfinity())throw new Error("point: Point cannot be equal to Infinity");if(this.point.eq(new Y(new a(0),new a(0))))throw new Error("point: Point cannot be equal to 0, 0");return this.point.validate(),this}}var u=je(1798),K=je.n(u);class be{static{r(this,"Random")}}be.getRandomBuffer=function(E){return K()(E)};class me extends y{static{r(this,"priv_key_PrivKey")}constructor(e,t,n=null){super({bn:e,compressed:t}),n=n||Z.Default.PrivKey,this.Constants=n}fromJSON(e){return this.fromHex(e),this}toJSON(){return this.toHex()}fromRandom(){let e,t,n;do e=be.getRandomBuffer(32),t=new a().fromBuffer(e),n=t.lt(Y.getN());while(!n);return this.fromObject({bn:t,compressed:!0}),this}static fromRandom(){return new this().fromRandom()}toBuffer(){let e=this.compressed;e===void 0&&(e=!0);const t=this.bn.toBuffer({size:32});let n;return e?n=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t,Buffer.from([1])]):n=Buffer.concat([Buffer.from([this.Constants.versionByteNum]),t]),n}fromBuffer(e){if(e.length===34&&e[33]===1)this.compressed=!0;else if(e.length===33)this.compressed=!1;else throw new Error("Length of privKey buffer must be 33 (uncompressed pubKey) or 34 (compressed pubKey)");if(e[0]!==this.Constants.versionByteNum)throw new Error("Invalid versionByteNum byte");return this.fromBn(new a().fromBuffer(e.slice(1,33)))}toBn(){return this.bn}fromBn(e){return this.bn=e,this}static fromBn(e){return new this().fromBn(e)}validate(){if(!this.bn.lt(Y.getN()))throw new Error("Number must be less than N");if(typeof this.compressed!="boolean")throw new Error("Must specify whether the corresponding public key is compressed or not (true or false)");return this}toWif(){return he.encode(this.toBuffer())}fromWif(e){return this.fromBuffer(he.decode(e))}static fromWif(e){return new this().fromWif(e)}toString(){return this.toWif()}fromString(e){return this.fromWif(e)}}me.Mainnet=class extends me{constructor(E,e){super(E,e,Z.Mainnet.PrivKey)}},me.Testnet=class extends me{constructor(E,e){super(E,e,Z.Testnet.PrivKey)}};class ce extends y{static{r(this,"Sig")}constructor(e,t,n,v,M){super({r:e,s:t,nHashType:n,recovery:v,compressed:M})}fromBuffer(e){try{return this.fromDer(e,!0)}catch{}try{return this.fromCompact(e)}catch{}return this.fromTxFormat(e)}toBuffer(){return this.nHashType!==void 0?this.toTxFormat():this.recovery!==void 0?this.toCompact():this.toDer()}fromCompact(e){let t=!0,n=e.slice(0,1)[0]-27-4;if(n<0&&(t=!1,n=n+4),!(n===0||n===1||n===2||n===3))throw new Error("i must be 0, 1, 2, or 3");this.compressed=t,this.recovery=n;const v=e.slice(1);return this.fromRS(v),this}static fromCompact(e){return new this().fromCompact(e)}fromRS(e){const t=e.slice(0,32),n=e.slice(32,64);if(t.length!==32)throw new Error("r must be 32 bytes");if(n.length!==32||e.length>64)throw new Error("s must be 32 bytes");return this.r=new a().fromBuffer(t),this.s=new a().fromBuffer(n),this}static fromRS(e){return new this().fromRS(e)}fromDer(e,t){const n=ce.parseDer(e,t);return this.r=n.r,this.s=n.s,this}static fromDer(e,t){return new this().fromDer(e,t)}fromTxFormat(e){if(e.length===0)return this.r=new a(1),this.s=new a(1),this.nHashType=1,this;const t=e.readUInt8(e.length-1),n=e.slice(0,e.length-1);return this.fromDer(n,!1),this.nHashType=t,this}static fromTxFormat(e){return new this().fromTxFormat(e)}fromString(e){return this.fromHex(e)}static parseDer(e,t){if(t===void 0&&(t=!0),!Buffer.isBuffer(e))throw new Error("DER formatted signature should be a buffer");const n=e[0];if(n!==48)throw new Error("Header byte should be 0x30");let v=e[1];const M=e.slice(2).length;if(t&&v!==M)throw new Error("LEngth byte should length of what follows");v=v<M?v:M;const W=e[2];if(W!==2)throw new Error("Integer byte for r should be 0x02");const ee=e[3],ue=e.slice(4,4+ee),le=new a().fromBuffer(ue),Ae=e[4]===0;if(ee!==ue.length)throw new Error("LEngth of r incorrect");const _e=e[4+ee+0];if(_e!==2)throw new Error("Integer byte for s should be 0x02");const Ie=e[4+ee+1],Ge=e.slice(4+ee+2,4+ee+2+Ie),Fe=new a().fromBuffer(Ge),Le=e[4+ee+2+2]===0;if(Ie!==Ge.length)throw new Error("LEngth of s incorrect");const tt=4+ee+2+Ie;if(v!==tt-2)throw new Error("LEngth of signature incorrect");return{header:n,length:v,rheader:W,rlength:ee,rneg:Ae,rbuf:ue,r:le,sheader:_e,slength:Ie,sneg:Le,sbuf:Ge,s:Fe}}static IsTxDer(e){if(e.length<9||e.length>73||e[0]!==48||e[1]!==e.length-3)return!1;const t=e[3];if(5+t>=e.length)return!1;const n=e[5+t];if(t+n+7!==e.length)return!1;const v=e.slice(4);if(e[2]!==2||t===0||v[0]&128||t>1&&v[0]===0&&!(v[1]&128))return!1;const M=e.slice(6+t);return!(e[6+t-2]!==2||n===0||M[0]&128||n>1&&M[0]===0&&!(M[1]&128))}hasLowS(){return!(this.s.lt(1)||this.s.gt(a.fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex"))))}hasDefinedHashType(){return!(this.nHashType<ce.SIGHASH_ALL||this.nHashType>ce.SIGHASH_SINGLE)}toCompact(e,t){if(e=typeof e=="number"?e:this.recovery,t=typeof t=="boolean"?t:this.compressed,!(e===0||e===1||e===2||e===3))throw new Error("recovery must be equal to 0, 1, 2, or 3");let n=e+27+4;t===!1&&(n=n-4);const v=Buffer.from([n]),M=this.r.toBuffer({size:32}),W=this.s.toBuffer({size:32});return Buffer.concat([v,M,W])}toRS(){return Buffer.concat([this.r.toBuffer({size:32}),this.s.toBuffer({size:32})])}toDer(){const e=this.r.toBuffer(),t=this.s.toBuffer(),n=e[0]&128,v=t[0]&128,M=n?Buffer.concat([Buffer.from([0]),e]):e,W=v?Buffer.concat([Buffer.from([0]),t]):t,ee=2+M.length+2+W.length,ue=M.length,le=W.length;return Buffer.concat([Buffer.from([48,ee,2,ue]),M,Buffer.from([2,le]),W])}toTxFormat(){const e=this.toDer(),t=Buffer.alloc(1);return t.writeUInt8(this.nHashType,0),Buffer.concat([e,t])}toString(){return this.toHex()}}ce.SIGHASH_ALL=1,ce.SIGHASH_NONE=2,ce.SIGHASH_SINGLE=3,ce.SIGHASH_FORKID=64,ce.SIGHASH_ANYONECANPAY=128;class q extends y{static{r(this,"Script")}constructor(e=[]){super({chunks:e})}fromJSON(e){return this.fromString(e)}toJSON(){return this.toString()}fromBuffer(e){this.chunks=[];const t=new S(e);for(;!t.eof();){const n=t.readUInt8();let v=0,M=Buffer.from([]);if(n>0&&n<s.OP_PUSHDATA1)v=n,this.chunks.push({buf:t.read(v),len:v,opCodeNum:n});else if(n===s.OP_PUSHDATA1){try{v=t.readUInt8(),M=t.read(v)}catch{t.read()}this.chunks.push({buf:M,len:v,opCodeNum:n})}else if(n===s.OP_PUSHDATA2){try{v=t.readUInt16LE(),M=t.read(v)}catch{t.read()}this.chunks.push({buf:M,len:v,opCodeNum:n})}else if(n===s.OP_PUSHDATA4){try{v=t.readUInt32LE(),M=t.read(v)}catch{t.read()}this.chunks.push({buf:M,len:v,opCodeNum:n})}else this.chunks.push({opCodeNum:n})}return this}toBuffer(){const e=new g;for(let t=0;t<this.chunks.length;t++){const n=this.chunks[t],v=n.opCodeNum;e.writeUInt8(v),n.buf&&(v<s.OP_PUSHDATA1?e.write(n.buf):v===s.OP_PUSHDATA1?(e.writeUInt8(n.len),e.write(n.buf)):v===s.OP_PUSHDATA2?(e.writeUInt16LE(n.len),e.write(n.buf)):v===s.OP_PUSHDATA4&&(e.writeUInt32LE(n.len),e.write(n.buf)))}return e.toBuffer()}fromString(e){if(this.chunks=[],e===""||e===void 0)return this;const t=e.split(" ");let n=0;for(;n<t.length;){const v=t[n];let M;try{M=new s().fromString(v).toNumber()}catch{}if(M===void 0)if(M=parseInt(v,10),M>0&&M<s.OP_PUSHDATA1)this.chunks.push({buf:Buffer.from(t[n+1].slice(2),"hex"),len:M,opCodeNum:M}),n=n+2;else if(M===0)this.chunks.push({opCodeNum:0}),n=n+1;else throw new Error("Invalid script");else if(M===s.OP_PUSHDATA1||M===s.OP_PUSHDATA2||M===s.OP_PUSHDATA4){if(t[n+2].slice(0,2)!=="0x")throw new Error("Pushdata data must start with 0x");this.chunks.push({buf:Buffer.from(t[n+2].slice(2),"hex"),len:parseInt(t[n+1],10),opCodeNum:M}),n=n+3}else this.chunks.push({opCodeNum:M}),n=n+1}return this}toString(e={noOp:!1}){let t="";for(let n=0;n<this.chunks.length;n++){const v=this.chunks[n],M=v.opCodeNum.hasOwnProperty("num")?v.opCodeNum.num:v.opCodeNum;v.buf?((M===s.OP_PUSHDATA1||M===s.OP_PUSHDATA2||M===s.OP_PUSHDATA4)&&(t=e.noOp?t+" "+new s(M).toNoOpString():t+" "+new s(M).toString()),t=t+" "+v.len,t=t+" 0x"+v.buf.toString("hex")):s.str[M]!==void 0||s.noopstr[M]!==void 0?t=e.noOp?t+" "+new s(M).toNoOpString():t+" "+new s(M).toString():t=t+" 0x"+M.toString(16)}return t.substr(1)}fromBitcoindString(e){const t=new g,n=e.split(" ");let v;for(v=0;v<n.length;v++){const W=n[v];if(W!=="")if(W[0]==="0"&&W[1]==="x"){const ee=W.slice(2);t.write(Buffer.from(ee,"hex"))}else if(W[0]==="'"){const ee=W.slice(1,W.length-1),ue=Buffer.from(ee),le=new q().writeBuffer(ue).toBuffer();t.write(le)}else if(s["OP_"+W]!==void 0){const ee="OP_"+W,ue=s[ee];t.writeUInt8(ue)}else if(typeof s[W]=="number"){const ue=s[W];t.writeUInt8(ue)}else{if(isNaN(parseInt(W,10)))throw new Error("Could not determine type of script value");{const ee=new a(W),le=new q().writeBn(ee).toBuffer();t.write(le)}}}const M=t.toBuffer();return this.fromBuffer(M)}static fromBitcoindString(e){return new this().fromBitcoindString(e)}toBitcoindString(){let e="";for(let t=0;t<this.chunks.length;t++){const n=this.chunks[t];if(n.buf){const M=new q([n]).toBuffer().toString("hex");e=e+" 0x"+M}else if(s.str[n.opCodeNum]!==void 0){const v=new s(n.opCodeNum).toString();e=e+" "+v.slice(3)}else e=e+" 0x"+n.opCodeNum.toString(16)}return e.substr(1)}fromAsmString(e){this.chunks=[];const t=e.split(" ");let n=0;for(;n<t.length;){const v=t[n];let M,W;try{M=s.fromString(v),W=M.toNumber()}catch{M=void 0,W=void 0}if(v==="0")W=0,this.chunks.push({opCodeNum:W}),n=n+1;else if(v==="-1")W=s.OP_1NEGATE,this.chunks.push({opCodeNum:W}),n=n+1;else if(M===void 0){const ee=t[n],ue=Buffer.from(ee,"hex");if(ue.toString("hex")!==ee)throw new Error("invalid hex string in script");const le=ue.length;le>=0&&le<s.OP_PUSHDATA1?W=le:le<Math.pow(2,8)?W=s.OP_PUSHDATA1:le<Math.pow(2,16)?W=s.OP_PUSHDATA2:le<Math.pow(2,32)&&(W=s.OP_PUSHDATA4),this.chunks.push({buf:ue,len:ue.length,opCodeNum:W}),n=n+1}else this.chunks.push({opCodeNum:W}),n=n+1}return this}static fromAsmString(e){return new this().fromAsmString(e)}toAsmString(e={noOp:!1}){for(var t="",n=0;n<this.chunks.length;n++){var v=this.chunks[n];t+=this._chunkToString(v,e)}return t.substr(1)}_chunkToString(e,t={noOp:!1}){var n=e.opCodeNum,v="";if(e.buf)e.len>0&&(v=v+" "+e.buf.toString("hex"));else if(typeof s.str[n]<"u")n===0?v=v+" 0":n===79?v=v+" -1":v=t.noOp?v+" "+new s(n).toNoOpString():v+" "+new s(n).toString();else{var M=n.toString(16);M.length%2!==0&&(M="0"+M),v=v+" "+M}return v}fromOpReturnData(e){return this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromOpReturnData(e){return new this().fromOpReturnData(e)}fromSafeData(e){return this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN),this.writeBuffer(e),this}static fromSafeData(e){return new this().fromSafeData(e)}fromSafeDataArray(e){this.writeOpCode(s.OP_FALSE),this.writeOpCode(s.OP_RETURN);for(const t in e){const n=e[t];this.writeBuffer(n)}return this}static fromSafeDataArray(e){return new this().fromSafeDataArray(e)}getData(){if(this.isSafeDataOut())return this.chunks.slice(2).map(n=>n.buf);if(this.isOpReturn())return this.chunks.slice(1).map(n=>n.buf);throw new Error("Unrecognized script type to get data from")}fromPubKeyHash(e){if(e.length!==20)throw new Error("hashBuf must be a 20 byte buffer");return this.writeOpCode(s.OP_DUP),this.writeOpCode(s.OP_HASH160),this.writeBuffer(e),this.writeOpCode(s.OP_EQUALVERIFY),this.writeOpCode(s.OP_CHECKSIG),this}static fromPubKeyHash(e){return new this().fromPubKeyHash(e)}static sortPubKeys(e){return e.slice().sort((t,n)=>{const v=t.toBuffer(),M=n.toBuffer(),W=Math.max(v.length,M.length);for(let ee=0;ee<=W;ee++){if(v[ee]===void 0)return-1;if(M[ee]===void 0)return 1;if(v[ee]<M[ee])return-1;if(v[ee]>M[ee])return 1}})}fromPubKeys(e,t,n=!0){if(typeof e!="number")throw new Error("m must be a number");n===!0&&(t=q.sortPubKeys(t)),this.writeOpCode(e+s.OP_1-1);for(const v in t)this.writeBuffer(t[v].toBuffer());return this.writeOpCode(t.length+s.OP_1-1),this.writeOpCode(s.OP_CHECKMULTISIG),this}static fromPubKeys(e,t,n){return new this().fromPubKeys(e,t,n)}removeCodeseparators(){const e=[];for(let t=0;t<this.chunks.length;t++)this.chunks[t].opCodeNum!==s.OP_CODESEPARATOR&&e.push(this.chunks[t]);return this.chunks=e,this}isPushOnly(){for(let e=0;e<this.chunks.length;e++)if(this.chunks[e].opCodeNum>s.OP_16)return!1;return!0}isNonSpendable(){const e=this.chunks[0].opCodeNum===s.OP_FALSE,t=this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_RETURN;return!!e&&!!t}isOpReturn(){return this.chunks[0].opCodeNum===s.OP_RETURN&&this.chunks.filter(e=>Buffer.isBuffer(e.buf)).length===this.chunks.slice(1).length}isSafeDataOut(){if(this.chunks.length<2||this.chunks[0].opCodeNum!==s.OP_FALSE)return!1;var e=this.chunks.slice(1),t=new q(e);return t.isOpReturn()}isPubKeyHashOut(){return!!(this.chunks[0]&&this.chunks[0].opCodeNum===s.OP_DUP&&this.chunks[1]&&this.chunks[1].opCodeNum===s.OP_HASH160&&this.chunks[2].buf&&this.chunks[3]&&this.chunks[3].opCodeNum===s.OP_EQUALVERIFY&&this.chunks[4]&&this.chunks[4].opCodeNum===s.OP_CHECKSIG)}isPubKeyHashIn(){return!!(this.chunks.length===2&&(this.chunks[0].buf||this.chunks[0].opCodeNum===s.OP_0)&&(this.chunks[1].buf||this.chunks[0].opCodeNum===s.OP_0))}isScriptHashOut(){const e=this.toBuffer();return e.length===23&&e[0]===s.OP_HASH160&&e[1]===20&&e[22]===s.OP_EQUAL}isScriptHashIn(){if(!this.isPushOnly())return!1;try{new q().fromBuffer(this.chunks[this.chunks.length-1].buf)}catch{return!1}return!0}isMultiSigOut(){const e=this.chunks[0].opCodeNum-s.OP_1+1;if(!(e>=1&&e<=16)||!this.chunks.slice(1,this.chunks.length-2).every(v=>{try{const M=v.buf;return new T().fromDer(M).validate(),!0}catch{return!1}}))return!1;const n=this.chunks[this.chunks.length-2].opCodeNum-s.OP_1+1;return!(!(n>=e&&n<=16)||this.chunks[1+n+1].opCodeNum!==s.OP_CHECKMULTISIG)}isMultiSigIn(){if(this.chunks[0].opCodeNum!==s.OP_0)return!1;const e=this.chunks.slice(1);return e.length<1?!1:e.every(t=>Buffer.isBuffer(t.buf)&&ce.IsTxDer(t.buf))}findAndDelete(e){const t=e.toBuffer();for(let n=0;n<this.chunks.length;n++){const M=new q([this.chunks[n]]).toBuffer();A(t,M)&&this.chunks.splice(n,1)}return this}writeScript(e){return this.chunks=this.chunks.concat(e.chunks),this}static writeScript(e){return new this().writeScript(e)}writeString(e){const t=new q().fromString(e);return this.chunks=this.chunks.concat(t.chunks),this}static writeString(e){return new this().writeString(e)}writeOpCode(e){return this.chunks.push({opCodeNum:e}),this}static writeOpCode(e){return new this().writeOpCode(e)}setChunkOpCode(e,t){return this.chunks[e]={opCodeNum:t},this}writeBn(e){if(e.cmp(0)===s.OP_0)this.chunks.push({opCodeNum:s.OP_0});else if(e.cmp(-1)===0)this.chunks.push({opCodeNum:s.OP_1NEGATE});else if(e.cmp(1)>=0&&e.cmp(16)<=0)this.chunks.push({opCodeNum:e.toNumber()+s.OP_1-1});else{const t=e.toSm({endian:"little"});this.writeBuffer(t)}return this}static writeBn(e){return new this().writeBn(e)}writeNumber(e){return this.writeBn(new a().fromNumber(e)),this}static writeNumber(e){return new this().writeNumber(e)}setChunkBn(e,t){return this.chunks[e]=new q().writeBn(t).chunks[0],this}writeBuffer(e){let t;const n=e.length;if(e.length>0&&e.length<s.OP_PUSHDATA1)t=e.length;else if(e.length===0)t=s.OP_0;else if(e.length<Math.pow(2,8))t=s.OP_PUSHDATA1;else if(e.length<Math.pow(2,16))t=s.OP_PUSHDATA2;else if(e.length<Math.pow(2,32))t=s.OP_PUSHDATA4;else throw new Error("You can't push that much data");return this.chunks.push({buf:e,len:n,opCodeNum:t}),this}static writeBuffer(e){return new this().writeBuffer(e)}setChunkBuffer(e,t){return this.chunks[e]=new q().writeBuffer(t).chunks[0],this}checkMinimalPush(e){const t=this.chunks[e],n=t.buf,v=t.opCodeNum;return n?n.length===0?v===s.OP_0:n.length===1&&n[0]>=1&&n[0]<=16?v===s.OP_1+(n[0]-1):n.length===1&&n[0]===129?v===s.OP_1NEGATE:n.length<=75?v===n.length:n.length<=255?v===s.OP_PUSHDATA1:n.length<=65535?v===s.OP_PUSHDATA2:!0:!0}}class Q extends y{static{r(this,"Address")}constructor(e,t,n=null){super({versionByteNum:e,hashBuf:t}),n=n||Z.Default.Address,this.Constants=n}fromBuffer(e){if(e.length!==21)throw new Error("address buffers must be exactly 21 bytes");if(e[0]!==this.Constants.pubKeyHash)throw new Error("address: invalid versionByteNum byte");return this.versionByteNum=e[0],this.hashBuf=e.slice(1),this}fromPubKeyHashBuf(e){return this.hashBuf=e,this.versionByteNum=this.Constants.pubKeyHash,this}static fromPubKeyHashBuf(e){return new this().fromPubKeyHashBuf(e)}fromPubKey(e){const t=X.sha256Ripemd160(e.toBuffer());return this.fromPubKeyHashBuf(t)}static fromPubKey(e){return new this().fromPubKey(e)}async asyncFromPubKey(e){const t=[e],n=await G.asyncObjectMethod(this,"fromPubKey",t);return this.fromFastBuffer(n.resbuf)}static asyncFromPubKey(e){return new this().asyncFromPubKey(e)}fromPrivKey(e){const t=new T().fromPrivKey(e),n=X.sha256Ripemd160(t.toBuffer());return this.fromPubKeyHashBuf(n)}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){const t=[e],n=await G.asyncObjectMethod(this,"fromPrivKey",t);return this.fromFastBuffer(n.resbuf)}static asyncFromPrivKey(e){return new this().fromPrivKey(e)}fromRandom(){const e=new me().fromRandom();return this.fromPrivKey(e)}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){const e=[],t=await G.asyncObjectMethod(this,"fromRandom",e);return this.fromFastBuffer(t.resbuf)}static asyncFromRandom(){return new this().fromRandom()}fromString(e){const t=he.decode(e);return this.fromBuffer(t)}async asyncFromString(e){const t=[e],n=await G.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(n.resbuf)}static asyncFromString(e){return new this().asyncFromString(e)}static isValid(e){let t;try{t=new Q().fromString(e)}catch{return!1}return t.isValid()}isValid(){try{return this.validate(),!0}catch{return!1}}toTxOutScript(){const e=new q;return e.writeOpCode(s.OP_DUP),e.writeOpCode(s.OP_HASH160),e.writeBuffer(this.hashBuf),e.writeOpCode(s.OP_EQUALVERIFY),e.writeOpCode(s.OP_CHECKSIG),e}fromTxInScript(e){const t=X.sha256Ripemd160(e.chunks[1].buf||Buffer.from("00".repeat(32),"hex"));return this.fromPubKeyHashBuf(t)}static fromTxInScript(e){return new this().fromTxInScript(e)}fromTxOutScript(e){return this.fromPubKeyHashBuf(e.chunks[2].buf)}static fromTxOutScript(e){return new this().fromTxOutScript(e)}toBuffer(){const e=Buffer.from([this.versionByteNum]);return Buffer.concat([e,this.hashBuf])}toJSON(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),typeof this.versionByteNum<"u"&&(e.versionByteNum=this.versionByteNum),e}fromJSON(e){return e.hashBuf&&(this.hashBuf=Buffer.from(e.hashBuf,"hex")),typeof e.versionByteNum<"u"&&(this.versionByteNum=e.versionByteNum),this}toString(){return he.encode(this.toBuffer())}async asyncToString(){const e=[],t=await G.asyncObjectMethod(this,"toString",e);return JSON.parse(t.resbuf.toString())}validate(){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==20)throw new Error("hashBuf must be a buffer of 20 bytes");if(this.versionByteNum!==this.Constants.pubKeyHash)throw new Error("invalid versionByteNum");return this}}Q.Mainnet=class extends Q{constructor(E,e){super(E,e,Z.Mainnet.Address)}},Q.Testnet=class extends Q{constructor(E,e){super(E,e,Z.Testnet.Address)}};class oe extends y{static{r(this,"Bip32")}constructor(e,t,n,v,M,W,ee,ue=null,le=me){super({versionBytesNum:e,depth:t,parentFingerPrint:n,childIndex:v,chainCode:M,privKey:W,pubKey:ee}),ue=ue||Z.Default.Bip32,this.Constants=ue,this.PrivKey=le}fromRandom(){return this.versionBytesNum=this.Constants.privKey,this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=be.getRandomBuffer(32),this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new T().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}fromString(e){return this.fromBuffer(he.decode(e))}async asyncFromString(e){const t=[e],n=await G.asyncObjectMethod(this,"fromString",t);return this.fromFastBuffer(n.resbuf)}fromSeed(e){if(!Buffer.isBuffer(e))throw new Error("bytes must be a buffer");if(e.length<128/8)throw new Error("Need more than 128 bits of entropy");if(e.length>512/8)throw new Error("More than 512 bits of entropy is nonstandard");const t=X.sha512Hmac(e,Buffer.from("Bitcoin seed"));return this.depth=0,this.parentFingerPrint=Buffer.from([0,0,0,0]),this.childIndex=0,this.chainCode=t.slice(32,64),this.versionBytesNum=this.Constants.privKey,this.privKey=new this.PrivKey().fromBn(a().fromBuffer(t.slice(0,32))),this.pubKey=new T().fromPrivKey(this.privKey),this}static fromSeed(e){return new this().fromSeed(e)}async asyncFromSeed(e){const t=await G.asyncObjectMethod(this,"fromSeed",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromSeed(e){return new this().asyncFromSeed(e)}fromBuffer(e){if(e.length!==78)throw new Error("incorrect bip32 data length");this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,78),n=this.versionBytesNum===this.Constants.privKey,v=this.versionBytesNum===this.Constants.pubKey;if(n&&t[0]===0)this.privKey=new this.PrivKey().fromBn(a().fromBuffer(t.slice(1,33))),this.pubKey=new T().fromPrivKey(this.privKey);else if(v&&(t[0]===2||t[0]===3))this.pubKey=new T().fromDer(t);else throw new Error("Invalid key");return this}fromFastBuffer(e){if(e.length===0)return this;if(e.length!==78&&e.length!==111)throw new Error("incorrect bip32 fastBuffer data length: "+e.length);this.versionBytesNum=e.slice(0,4).readUInt32BE(0),this.depth=e.slice(4,5).readUInt8(0),this.parentFingerPrint=e.slice(5,9),this.childIndex=e.slice(9,13).readUInt32BE(0),this.chainCode=e.slice(13,45);const t=e.slice(45,e.length),n=this.versionBytesNum===this.Constants.privKey,v=this.versionBytesNum===this.Constants.pubKey;if(n&&t[0]===0&&e.length===78)this.privKey=new this.PrivKey().fromBn(a().fromBuffer(t.slice(1,33))),this.pubKey=new T().fromPrivKey(this.privKey);else if(v&&e.length===111)this.pubKey=new T().fromFastBuffer(t),this.pubKey.compressed=!0;else throw new Error("Invalid key");return this}derive(e){const t=e.split("/");if(e==="m")return this;let n=this;for(const v in t){const M=t[v];if(v==="0"){if(M!=="m")throw new Error("invalid path");continue}if(parseInt(M.replace("'",""),10).toString()!==M.replace("'",""))throw new Error("invalid path");const W=M.length>1&&M[M.length-1]==="'";let ee=parseInt(W?M.slice(0,M.length-1):M,10)&2147483647;W&&(ee+=2147483648),n=n.deriveChild(ee)}return n}async asyncDerive(e){const t=await G.asyncObjectMethod(this,"derive",[e]);return new this.constructor().fromFastBuffer(t.resbuf)}deriveChild(e){if(typeof e!="number")throw new Error("i must be a number");let t=[];t.push(e>>24&255),t.push(e>>16&255),t.push(e>>8&255),t.push(e&255),t=Buffer.from(t);const n=(e&2147483648)!==0,v=this.versionBytesNum===this.Constants.privKey;if(n&&(!this.privKey||!v))throw new Error("Cannot do private key derivation without private key");let M=null;if(this.privKey){let ee=null;n?ee=Buffer.concat([Buffer.from([0]),this.privKey.bn.toBuffer({size:32}),t]):ee=Buffer.concat([this.pubKey.toBuffer({size:32}),t]);const ue=X.sha512Hmac(ee,this.chainCode),le=a().fromBuffer(ue.slice(0,32),{size:32}),Ae=ue.slice(32,64),_e=le.add(this.privKey.bn).mod(Y.getN());M=new this.constructor,M.chainCode=Ae,M.privKey=new this.PrivKey().fromBn(_e),M.pubKey=new T().fromPrivKey(M.privKey)}else{const ee=Buffer.concat([this.pubKey.toBuffer(),t]),ue=X.sha512Hmac(ee,this.chainCode),le=a().fromBuffer(ue.slice(0,32)),Ae=ue.slice(32,64),_e=Y.getG().mul(le),Ie=this.pubKey.point,Ge=_e.add(Ie),Fe=new T;Fe.point=Ge,M=new this.constructor,M.chainCode=Ae,M.pubKey=Fe}M.childIndex=e;const W=X.sha256Ripemd160(this.pubKey.toBuffer());return M.parentFingerPrint=W.slice(0,4),M.versionBytesNum=this.versionBytesNum,M.depth=this.depth+1,M}toPublic(){const e=new this.constructor().fromObject(this);return e.versionBytesNum=this.Constants.pubKey,e.privKey=void 0,e}toBuffer(){const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new g().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t){if(this.pubKey.compressed===!1)throw new Error("cannot convert bip32 to buffer if pubKey is not compressed");return new g().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toBuffer()).toBuffer()}else throw new Error("bip32: invalid versionBytesNum byte")}toFastBuffer(){if(!this.versionBytesNum)return Buffer.alloc(0);const e=this.versionBytesNum===this.Constants.privKey,t=this.versionBytesNum===this.Constants.pubKey;if(e)return new g().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).writeUInt8(0).write(this.privKey.bn.toBuffer({size:32})).toBuffer();if(t)return new g().writeUInt32BE(this.versionBytesNum).writeUInt8(this.depth).write(this.parentFingerPrint).writeUInt32BE(this.childIndex).write(this.chainCode).write(this.pubKey.toFastBuffer()).toBuffer();throw new Error("bip32: invalid versionBytesNum byte")}toString(){return he.encode(this.toBuffer())}async asyncToString(){const e=await G.asyncObjectMethod(this,"toString",[]);return JSON.parse(e.resbuf.toString())}toJSON(){return this.toFastHex()}fromJSON(e){return this.fromFastHex(e)}isPrivate(){return this.versionBytesNum===this.Constants.privKey}}oe.Mainnet=class extends oe{constructor(E,e,t,n,v,M,W){super(E,e,t,n,v,M,W,Z.Mainnet.Bip32,me.Mainnet)}},oe.Testnet=class extends oe{constructor(E,e,t,n,v,M,W){super(E,e,t,n,v,M,W,Z.Testnet.Bip32,me.Testnet)}};const we=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];we.space=" ";const Se=["\u3042\u3044\u3053\u304F\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u3060","\u3042\u304A\u305E\u3089","\u3042\u304B\u3061\u3083\u3093","\u3042\u304D\u308B","\u3042\u3051\u304C\u305F","\u3042\u3051\u308B","\u3042\u3053\u304C\u308C\u308B","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3058\u308F\u3046","\u3042\u305A\u304B\u308B","\u3042\u305A\u304D","\u3042\u305D\u3076","\u3042\u305F\u3048\u308B","\u3042\u305F\u305F\u3081\u308B","\u3042\u305F\u308A\u307E\u3048","\u3042\u305F\u308B","\u3042\u3064\u3044","\u3042\u3064\u304B\u3046","\u3042\u3063\u3057\u3085\u304F","\u3042\u3064\u307E\u308A","\u3042\u3064\u3081\u308B","\u3042\u3066\u306A","\u3042\u3066\u306F\u307E\u308B","\u3042\u3072\u308B","\u3042\u3076\u3089","\u3042\u3076\u308B","\u3042\u3075\u308C\u308B","\u3042\u307E\u3044","\u3042\u307E\u3069","\u3042\u307E\u3084\u304B\u3059","\u3042\u307E\u308A","\u3042\u307F\u3082\u306E","\u3042\u3081\u308A\u304B","\u3042\u3084\u307E\u308B","\u3042\u3086\u3080","\u3042\u3089\u3044\u3050\u307E","\u3042\u3089\u3057","\u3042\u3089\u3059\u3058","\u3042\u3089\u305F\u3081\u308B","\u3042\u3089\u3086\u308B","\u3042\u3089\u308F\u3059","\u3042\u308A\u304C\u3068\u3046","\u3042\u308F\u305B\u308B","\u3042\u308F\u3066\u308B","\u3042\u3093\u3044","\u3042\u3093\u304C\u3044","\u3042\u3093\u3053","\u3042\u3093\u305C\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306A\u3044","\u3042\u3093\u307E\u308A","\u3044\u3044\u3060\u3059","\u3044\u304A\u3093","\u3044\u304C\u3044","\u3044\u304C\u304F","\u3044\u304D\u304A\u3044","\u3044\u304D\u306A\u308A","\u3044\u304D\u3082\u306E","\u3044\u304D\u308B","\u3044\u304F\u3058","\u3044\u304F\u3076\u3093","\u3044\u3051\u3070\u306A","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304F","\u3044\u3053\u3064","\u3044\u3055\u307E\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304D","\u3044\u3058\u3085\u3046","\u3044\u3058\u3087\u3046","\u3044\u3058\u308F\u308B","\u3044\u305A\u307F","\u3044\u305A\u308C","\u3044\u305B\u3044","\u3044\u305B\u3048\u3073","\u3044\u305B\u304B\u3044","\u3044\u305B\u304D","\u3044\u305C\u3093","\u3044\u305D\u3046\u308D\u3046","\u3044\u305D\u304C\u3057\u3044","\u3044\u3060\u3044","\u3044\u3060\u304F","\u3044\u305F\u305A\u3089","\u3044\u305F\u307F","\u3044\u305F\u308A\u3042","\u3044\u3061\u304A\u3046","\u3044\u3061\u3058","\u3044\u3061\u3069","\u3044\u3061\u3070","\u3044\u3061\u3076","\u3044\u3061\u308A\u3085\u3046","\u3044\u3064\u304B","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305B\u3044","\u3044\u3063\u305D\u3046","\u3044\u3063\u305F\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307D\u3046","\u3044\u3066\u3056","\u3044\u3066\u3093","\u3044\u3069\u3046","\u3044\u3068\u3053","\u3044\u306A\u3044","\u3044\u306A\u304B","\u3044\u306D\u3080\u308A","\u3044\u306E\u3061","\u3044\u306E\u308B","\u3044\u306F\u3064","\u3044\u3070\u308B","\u3044\u306F\u3093","\u3044\u3073\u304D","\u3044\u3072\u3093","\u3044\u3075\u304F","\u3044\u3078\u3093","\u3044\u307B\u3046","\u3044\u307F\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305F\u308C","\u3044\u3082\u308A","\u3044\u3084\u304C\u308B","\u3044\u3084\u3059","\u3044\u3088\u304B\u3093","\u3044\u3088\u304F","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308A\u3050\u3061","\u3044\u308A\u3087\u3046","\u3044\u308C\u3044","\u3044\u308C\u3082\u306E","\u3044\u308C\u308B","\u3044\u308D\u3048\u3093\u3074\u3064","\u3044\u308F\u3044","\u3044\u308F\u3046","\u3044\u308F\u304B\u3093","\u3044\u308F\u3070","\u3044\u308F\u3086\u308B","\u3044\u3093\u3052\u3093\u307E\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304D","\u3046\u3048\u308B","\u3046\u304A\u3056","\u3046\u304C\u3044","\u3046\u304B\u3076","\u3046\u304B\u3079\u308B","\u3046\u304D\u308F","\u3046\u304F\u3089\u3044\u306A","\u3046\u304F\u308C\u308C","\u3046\u3051\u305F\u307E\u308F\u308B","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308B","\u3046\u3051\u3082\u3064","\u3046\u3051\u308B","\u3046\u3054\u304B\u3059","\u3046\u3054\u304F","\u3046\u3053\u3093","\u3046\u3055\u304E","\u3046\u3057\u306A\u3046","\u3046\u3057\u308D\u304C\u307F","\u3046\u3059\u3044","\u3046\u3059\u304E","\u3046\u3059\u3050\u3089\u3044","\u3046\u3059\u3081\u308B","\u3046\u305B\u3064","\u3046\u3061\u3042\u308F\u305B","\u3046\u3061\u304C\u308F","\u3046\u3061\u304D","\u3046\u3061\u3085\u3046","\u3046\u3063\u304B\u308A","\u3046\u3064\u304F\u3057\u3044","\u3046\u3063\u305F\u3048\u308B","\u3046\u3064\u308B","\u3046\u3069\u3093","\u3046\u306A\u304E","\u3046\u306A\u3058","\u3046\u306A\u305A\u304F","\u3046\u306A\u308B","\u3046\u306D\u308B","\u3046\u306E\u3046","\u3046\u3076\u3052","\u3046\u3076\u3054\u3048","\u3046\u307E\u308C\u308B","\u3046\u3081\u308B","\u3046\u3082\u3046","\u3046\u3084\u307E\u3046","\u3046\u3088\u304F","\u3046\u3089\u304C\u3048\u3059","\u3046\u3089\u3050\u3061","\u3046\u3089\u306A\u3044","\u3046\u308A\u3042\u3052","\u3046\u308A\u304D\u308C","\u3046\u308B\u3055\u3044","\u3046\u308C\u3057\u3044","\u3046\u308C\u3086\u304D","\u3046\u308C\u308B","\u3046\u308D\u3053","\u3046\u308F\u304D","\u3046\u308F\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3069\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304C","\u3048\u3044\u304D\u3087\u3046","\u3048\u3044\u3054","\u3048\u3044\u305B\u3044","\u3048\u3044\u3076\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308F","\u3048\u304A\u308A","\u3048\u304C\u304A","\u3048\u304C\u304F","\u3048\u304D\u305F\u3044","\u3048\u304F\u305B\u308B","\u3048\u3057\u3083\u304F","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306E\u3050","\u3048\u307B\u3046\u307E\u304D","\u3048\u307B\u3093","\u3048\u307E\u304D","\u3048\u3082\u3058","\u3048\u3082\u306E","\u3048\u3089\u3044","\u3048\u3089\u3076","\u3048\u308A\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304B\u3044","\u3048\u3093\u304E","\u3048\u3093\u3052\u304D","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305C\u3064","\u3048\u3093\u305D\u304F","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304A\u3044\u304B\u3051\u308B","\u304A\u3044\u3053\u3059","\u304A\u3044\u3057\u3044","\u304A\u3044\u3064\u304F","\u304A\u3046\u3048\u3093","\u304A\u3046\u3055\u307E","\u304A\u3046\u3058","\u304A\u3046\u305B\u3064","\u304A\u3046\u305F\u3044","\u304A\u3046\u3075\u304F","\u304A\u3046\u3079\u3044","\u304A\u3046\u3088\u3046","\u304A\u3048\u308B","\u304A\u304A\u3044","\u304A\u304A\u3046","\u304A\u304A\u3069\u304A\u308A","\u304A\u304A\u3084","\u304A\u304A\u3088\u305D","\u304A\u304B\u3048\u308A","\u304A\u304B\u305A","\u304A\u304C\u3080","\u304A\u304B\u308F\u308A","\u304A\u304E\u306A\u3046","\u304A\u304D\u308B","\u304A\u304F\u3055\u307E","\u304A\u304F\u3058\u3087\u3046","\u304A\u304F\u308A\u304C\u306A","\u304A\u304F\u308B","\u304A\u304F\u308C\u308B","\u304A\u3053\u3059","\u304A\u3053\u306A\u3046","\u304A\u3053\u308B","\u304A\u3055\u3048\u308B","\u304A\u3055\u306A\u3044","\u304A\u3055\u3081\u308B","\u304A\u3057\u3044\u308C","\u304A\u3057\u3048\u308B","\u304A\u3058\u304E","\u304A\u3058\u3055\u3093","\u304A\u3057\u3083\u308C","\u304A\u305D\u3089\u304F","\u304A\u305D\u308F\u308B","\u304A\u305F\u304C\u3044","\u304A\u305F\u304F","\u304A\u3060\u3084\u304B","\u304A\u3061\u3064\u304F","\u304A\u3063\u3068","\u304A\u3064\u308A","\u304A\u3067\u304B\u3051","\u304A\u3068\u3057\u3082\u306E","\u304A\u3068\u306A\u3057\u3044","\u304A\u3069\u308A","\u304A\u3069\u308D\u304B\u3059","\u304A\u3070\u3055\u3093","\u304A\u307E\u3044\u308A","\u304A\u3081\u3067\u3068\u3046","\u304A\u3082\u3044\u3067","\u304A\u3082\u3046","\u304A\u3082\u305F\u3044","\u304A\u3082\u3061\u3083","\u304A\u3084\u3064","\u304A\u3084\u3086\u3073","\u304A\u3088\u307C\u3059","\u304A\u3089\u3093\u3060","\u304A\u308D\u3059","\u304A\u3093\u304C\u304F","\u304A\u3093\u3051\u3044","\u304A\u3093\u3057\u3083","\u304A\u3093\u305B\u3093","\u304A\u3093\u3060\u3093","\u304A\u3093\u3061\u3085\u3046","\u304A\u3093\u3069\u3051\u3044","\u304B\u3042\u3064","\u304B\u3044\u304C","\u304C\u3044\u304D","\u304C\u3044\u3051\u3093","\u304C\u3044\u3053\u3046","\u304B\u3044\u3055\u3064","\u304B\u3044\u3057\u3083","\u304B\u3044\u3059\u3044\u3088\u304F","\u304B\u3044\u305C\u3093","\u304B\u3044\u305E\u3046\u3069","\u304B\u3044\u3064\u3046","\u304B\u3044\u3066\u3093","\u304B\u3044\u3068\u3046","\u304B\u3044\u3075\u304F","\u304C\u3044\u3078\u304D","\u304B\u3044\u307B\u3046","\u304B\u3044\u3088\u3046","\u304C\u3044\u3089\u3044","\u304B\u3044\u308F","\u304B\u3048\u308B","\u304B\u304A\u308A","\u304B\u304B\u3048\u308B","\u304B\u304C\u304F","\u304B\u304C\u3057","\u304B\u304C\u307F","\u304B\u304F\u3054","\u304B\u304F\u3068\u304F","\u304B\u3056\u308B","\u304C\u305E\u3046","\u304B\u305F\u3044","\u304B\u305F\u3061","\u304C\u3061\u3087\u3046","\u304C\u3063\u304D\u3085\u3046","\u304C\u3063\u3053\u3046","\u304C\u3063\u3055\u3093","\u304C\u3063\u3057\u3087\u3046","\u304B\u306A\u3056\u308F\u3057","\u304B\u306E\u3046","\u304C\u306F\u304F","\u304B\u3076\u304B","\u304B\u307B\u3046","\u304B\u307B\u3054","\u304B\u307E\u3046","\u304B\u307E\u307C\u3053","\u304B\u3081\u308C\u304A\u3093","\u304B\u3086\u3044","\u304B\u3088\u3046\u3073","\u304B\u3089\u3044","\u304B\u308B\u3044","\u304B\u308D\u3046","\u304B\u308F\u304F","\u304B\u308F\u3089","\u304C\u3093\u304B","\u304B\u3093\u3051\u3044","\u304B\u3093\u3053\u3046","\u304B\u3093\u3057\u3083","\u304B\u3093\u305D\u3046","\u304B\u3093\u305F\u3093","\u304B\u3093\u3061","\u304C\u3093\u3070\u308B","\u304D\u3042\u3044","\u304D\u3042\u3064","\u304D\u3044\u308D","\u304E\u3044\u3093","\u304D\u3046\u3044","\u304D\u3046\u3093","\u304D\u3048\u308B","\u304D\u304A\u3046","\u304D\u304A\u304F","\u304D\u304A\u3061","\u304D\u304A\u3093","\u304D\u304B\u3044","\u304D\u304B\u304F","\u304D\u304B\u3093\u3057\u3083","\u304D\u304D\u3066","\u304D\u304F\u3070\u308A","\u304D\u304F\u3089\u3052","\u304D\u3051\u3093\u305B\u3044","\u304D\u3053\u3046","\u304D\u3053\u3048\u308B","\u304D\u3053\u304F","\u304D\u3055\u3044","\u304D\u3055\u304F","\u304D\u3055\u307E","\u304D\u3055\u3089\u304E","\u304E\u3058\u304B\u304C\u304F","\u304E\u3057\u304D","\u304E\u3058\u305F\u3044\u3051\u3093","\u304E\u3058\u306B\u3063\u3066\u3044","\u304E\u3058\u3085\u3064\u3057\u3083","\u304D\u3059\u3046","\u304D\u305B\u3044","\u304D\u305B\u304D","\u304D\u305B\u3064","\u304D\u305D\u3046","\u304D\u305E\u304F","\u304D\u305E\u3093","\u304D\u305F\u3048\u308B","\u304D\u3061\u3087\u3046","\u304D\u3064\u3048\u3093","\u304E\u3063\u3061\u308A","\u304D\u3064\u3064\u304D","\u304D\u3064\u306D","\u304D\u3066\u3044","\u304D\u3069\u3046","\u304D\u3069\u304F","\u304D\u306A\u3044","\u304D\u306A\u304C","\u304D\u306A\u3053","\u304D\u306C\u3054\u3057","\u304D\u306D\u3093","\u304D\u306E\u3046","\u304D\u306E\u3057\u305F","\u304D\u306F\u304F","\u304D\u3073\u3057\u3044","\u304D\u3072\u3093","\u304D\u3075\u304F","\u304D\u3076\u3093","\u304D\u307C\u3046","\u304D\u307B\u3093","\u304D\u307E\u308B","\u304D\u307F\u3064","\u304D\u3080\u305A\u304B\u3057\u3044","\u304D\u3081\u308B","\u304D\u3082\u3060\u3081\u3057","\u304D\u3082\u3061","\u304D\u3082\u306E","\u304D\u3083\u304F","\u304D\u3084\u304F","\u304E\u3085\u3046\u306B\u304F","\u304D\u3088\u3046","\u304D\u3087\u3046\u308A\u3085\u3046","\u304D\u3089\u3044","\u304D\u3089\u304F","\u304D\u308A\u3093","\u304D\u308C\u3044","\u304D\u308C\u3064","\u304D\u308D\u304F","\u304E\u308D\u3093","\u304D\u308F\u3081\u308B","\u304E\u3093\u3044\u308D","\u304D\u3093\u304B\u304F\u3058","\u304D\u3093\u3058\u3087","\u304D\u3093\u3088\u3046\u3073","\u3050\u3042\u3044","\u304F\u3044\u305A","\u304F\u3046\u304B\u3093","\u304F\u3046\u304D","\u304F\u3046\u3050\u3093","\u304F\u3046\u3053\u3046","\u3050\u3046\u305B\u3044","\u304F\u3046\u305D\u3046","\u3050\u3046\u305F\u3089","\u304F\u3046\u3075\u304F","\u304F\u3046\u307C","\u304F\u304B\u3093","\u304F\u304D\u3087\u3046","\u304F\u3052\u3093","\u3050\u3053\u3046","\u304F\u3055\u3044","\u304F\u3055\u304D","\u304F\u3055\u3070\u306A","\u304F\u3055\u308B","\u304F\u3057\u3083\u307F","\u304F\u3057\u3087\u3046","\u304F\u3059\u306E\u304D","\u304F\u3059\u308A\u3086\u3073","\u304F\u305B\u3052","\u304F\u305B\u3093","\u3050\u305F\u3044\u3066\u304D","\u304F\u3060\u3055\u308B","\u304F\u305F\u3073\u308C\u308B","\u304F\u3061\u3053\u307F","\u304F\u3061\u3055\u304D","\u304F\u3064\u3057\u305F","\u3050\u3063\u3059\u308A","\u304F\u3064\u308D\u3050","\u304F\u3068\u3046\u3066\u3093","\u304F\u3069\u304F","\u304F\u306A\u3093","\u304F\u306D\u304F\u306D","\u304F\u306E\u3046","\u304F\u3075\u3046","\u304F\u307F\u3042\u308F\u305B","\u304F\u307F\u305F\u3066\u308B","\u304F\u3081\u308B","\u304F\u3084\u304F\u3057\u3087","\u304F\u3089\u3059","\u304F\u3089\u3079\u308B","\u304F\u308B\u307E","\u304F\u308C\u308B","\u304F\u308D\u3046","\u304F\u308F\u3057\u3044","\u3050\u3093\u304B\u3093","\u3050\u3093\u3057\u3087\u304F","\u3050\u3093\u305F\u3044","\u3050\u3093\u3066","\u3051\u3042\u306A","\u3051\u3044\u304B\u304F","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3052\u3044\u3058\u3085\u3064","\u3051\u3044\u305F\u3044","\u3052\u3044\u306E\u3046\u3058\u3093","\u3051\u3044\u308C\u304D","\u3051\u3044\u308D","\u3051\u304A\u3068\u3059","\u3051\u304A\u308A\u3082\u306E","\u3052\u304D\u304B","\u3052\u304D\u3052\u3093","\u3052\u304D\u3060\u3093","\u3052\u304D\u3061\u3093","\u3052\u304D\u3068\u3064","\u3052\u304D\u306F","\u3052\u304D\u3084\u304F","\u3052\u3053\u3046","\u3052\u3053\u304F\u3058\u3087\u3046","\u3052\u3056\u3044","\u3051\u3055\u304D","\u3052\u3056\u3093","\u3051\u3057\u304D","\u3051\u3057\u3054\u3080","\u3051\u3057\u3087\u3046","\u3052\u3059\u3068","\u3051\u305F\u3070","\u3051\u3061\u3083\u3063\u3077","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304D","\u3051\u3063\u3053\u3093","\u3051\u3064\u3058\u3087","\u3051\u3063\u305B\u304D","\u3051\u3063\u3066\u3044","\u3051\u3064\u307E\u3064","\u3052\u3064\u3088\u3046\u3073","\u3052\u3064\u308C\u3044","\u3051\u3064\u308D\u3093","\u3052\u3069\u304F","\u3051\u3068\u3070\u3059","\u3051\u3068\u308B","\u3051\u306A\u3052","\u3051\u306A\u3059","\u3051\u306A\u307F","\u3051\u306C\u304D","\u3052\u306D\u3064","\u3051\u306D\u3093","\u3051\u306F\u3044","\u3052\u3072\u3093","\u3051\u3076\u304B\u3044","\u3052\u307C\u304F","\u3051\u307E\u308A","\u3051\u307F\u304B\u308B","\u3051\u3080\u3057","\u3051\u3080\u308A","\u3051\u3082\u306E","\u3051\u3089\u3044","\u3051\u308D\u3051\u308D","\u3051\u308F\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304A","\u3051\u3093\u304B","\u3052\u3093\u304D","\u3051\u3093\u3052\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304F","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3052\u3093\u305D\u3046","\u3051\u3093\u3061\u304F","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306A\u3044","\u3051\u3093\u306B\u3093","\u3052\u3093\u3076\u3064","\u3051\u3093\u307E","\u3051\u3093\u307F\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308A","\u3053\u3042\u304F\u307E","\u3053\u3044\u306C","\u3053\u3044\u3073\u3068","\u3054\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304A\u3093","\u3053\u3046\u304B\u3093","\u3054\u3046\u304D\u3085\u3046","\u3054\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3058","\u3053\u3046\u3059\u3044","\u3054\u3046\u305B\u3044","\u3053\u3046\u305D\u304F","\u3053\u3046\u305F\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3069\u3046","\u3053\u3046\u306A\u3044","\u3053\u3046\u306F\u3044","\u3054\u3046\u307B\u3046","\u3054\u3046\u307E\u3093","\u3053\u3046\u3082\u304F","\u3053\u3046\u308A\u3064","\u3053\u3048\u308B","\u3053\u304A\u308A","\u3054\u304B\u3044","\u3054\u304C\u3064","\u3054\u304B\u3093","\u3053\u304F\u3054","\u3053\u304F\u3055\u3044","\u3053\u304F\u3068\u3046","\u3053\u304F\u306A\u3044","\u3053\u304F\u306F\u304F","\u3053\u3050\u307E","\u3053\u3051\u3044","\u3053\u3051\u308B","\u3053\u3053\u306E\u304B","\u3053\u3053\u308D","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305B\u3044","\u3053\u305B\u304D","\u3053\u305C\u3093","\u3053\u305D\u3060\u3066","\u3053\u305F\u3044","\u3053\u305F\u3048\u308B","\u3053\u305F\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304B","\u3053\u3064\u3053\u3064","\u3053\u3064\u3070\u3093","\u3053\u3064\u3076","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304C\u3089","\u3053\u3068\u3057","\u3053\u3068\u3070","\u3053\u3068\u308A","\u3053\u306A\u3054\u306A","\u3053\u306D\u3053\u306D","\u3053\u306E\u307E\u307E","\u3053\u306E\u307F","\u3053\u306E\u3088","\u3054\u306F\u3093","\u3053\u3072\u3064\u3058","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307C\u308C\u308B","\u3054\u307E\u3042\u3076\u3089","\u3053\u307E\u304B\u3044","\u3054\u307E\u3059\u308A","\u3053\u307E\u3064\u306A","\u3053\u307E\u308B","\u3053\u3080\u304E\u3053","\u3053\u3082\u3058","\u3053\u3082\u3061","\u3053\u3082\u306E","\u3053\u3082\u3093","\u3053\u3084\u304F","\u3053\u3084\u307E","\u3053\u3086\u3046","\u3053\u3086\u3073","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308A\u308B","\u3053\u308C\u304F\u3057\u3087\u3093","\u3053\u308D\u3063\u3051","\u3053\u308F\u3082\u3066","\u3053\u308F\u308C\u308B","\u3053\u3093\u3044\u3093","\u3053\u3093\u304B\u3044","\u3053\u3093\u304D","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u3060\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306A\u3093","\u3053\u3093\u3073\u306B","\u3053\u3093\u307D\u3093","\u3053\u3093\u307E\u3051","\u3053\u3093\u3084","\u3053\u3093\u308C\u3044","\u3053\u3093\u308F\u304F","\u3056\u3044\u3048\u304D","\u3055\u3044\u304B\u3044","\u3055\u3044\u304D\u3093","\u3056\u3044\u3052\u3093","\u3056\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305B\u3044","\u3056\u3044\u305F\u304F","\u3056\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304D","\u3056\u3044\u308A\u3087\u3046","\u3055\u3046\u306A","\u3055\u304B\u3044\u3057","\u3055\u304C\u3059","\u3055\u304B\u306A","\u3055\u304B\u307F\u3061","\u3055\u304C\u308B","\u3055\u304E\u3087\u3046","\u3055\u304F\u3057","\u3055\u304F\u3072\u3093","\u3055\u304F\u3089","\u3055\u3053\u304F","\u3055\u3053\u3064","\u3055\u305A\u304B\u308B","\u3056\u305B\u304D","\u3055\u305F\u3093","\u3055\u3064\u3048\u3044","\u3056\u3064\u304A\u3093","\u3056\u3063\u304B","\u3056\u3064\u304C\u304F","\u3055\u3063\u304D\u3087\u304F","\u3056\u3063\u3057","\u3055\u3064\u3058\u3093","\u3056\u3063\u305D\u3046","\u3055\u3064\u305F\u3070","\u3055\u3064\u307E\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304A\u3084","\u3055\u3068\u3057","\u3055\u3068\u308B","\u3055\u306E\u3046","\u3055\u3070\u304F","\u3055\u3073\u3057\u3044","\u3055\u3079\u3064","\u3055\u307B\u3046","\u3055\u307B\u3069","\u3055\u307E\u3059","\u3055\u307F\u3057\u3044","\u3055\u307F\u3060\u308C","\u3055\u3080\u3051","\u3055\u3081\u308B","\u3055\u3084\u3048\u3093\u3069\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304F","\u3055\u3089\u3060","\u3056\u308B\u305D\u3070","\u3055\u308F\u3084\u304B","\u3055\u308F\u308B","\u3055\u3093\u3044\u3093","\u3055\u3093\u304B","\u3055\u3093\u304D\u3083\u304F","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3056\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305B\u3044","\u3055\u3093\u305D","\u3055\u3093\u3061","\u3055\u3093\u307E","\u3055\u3093\u307F","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3052","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308F\u305B","\u3057\u3044\u304F","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304A\u3051","\u3057\u304B\u3044","\u3057\u304B\u304F","\u3058\u304B\u3093","\u3057\u3054\u3068","\u3057\u3059\u3046","\u3058\u3060\u3044","\u3057\u305F\u3046\u3051","\u3057\u305F\u304E","\u3057\u305F\u3066","\u3057\u305F\u307F","\u3057\u3061\u3087\u3046","\u3057\u3061\u308A\u3093","\u3057\u3063\u304B\u308A","\u3057\u3064\u3058","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304D","\u3057\u3066\u3064","\u3058\u3066\u3093","\u3058\u3069\u3046","\u3057\u306A\u304E\u308C","\u3057\u306A\u3082\u306E","\u3057\u306A\u3093","\u3057\u306D\u307E","\u3057\u306D\u3093","\u3057\u306E\u3050","\u3057\u306E\u3076","\u3057\u306F\u3044","\u3057\u3070\u304B\u308A","\u3057\u306F\u3064","\u3057\u306F\u3089\u3044","\u3057\u306F\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304F","\u3058\u3076\u3093","\u3057\u3078\u3044","\u3057\u307B\u3046","\u3057\u307B\u3093","\u3057\u307E\u3046","\u3057\u307E\u308B","\u3057\u307F\u3093","\u3057\u3080\u3051\u308B","\u3058\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308B","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304A\u3093","\u3058\u3083\u304C\u3044\u3082","\u3057\u3084\u304F\u3057\u3087","\u3057\u3083\u304F\u307B\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3056\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305B\u3093","\u3057\u3083\u305D\u3046","\u3057\u3083\u305F\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304D\u3093","\u3058\u3083\u307E","\u3057\u3083\u308A\u3093","\u3057\u3083\u308C\u3044","\u3058\u3086\u3046","\u3058\u3085\u3046\u3057\u3087","\u3057\u3085\u304F\u306F\u304F","\u3058\u3085\u3057\u3093","\u3057\u3085\u3063\u305B\u304D","\u3057\u3085\u307F","\u3057\u3085\u3089\u3070","\u3058\u3085\u3093\u3070\u3093","\u3057\u3087\u3046\u304B\u3044","\u3057\u3087\u304F\u305F\u304F","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3069\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305B\u308B","\u3057\u3089\u3079\u308B","\u3057\u3093\u304B","\u3057\u3093\u3053\u3046","\u3058\u3093\u3058\u3083","\u3057\u3093\u305B\u3044\u3058","\u3057\u3093\u3061\u304F","\u3057\u3093\u308A\u3093","\u3059\u3042\u3052","\u3059\u3042\u3057","\u3059\u3042\u306A","\u305A\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304B","\u3059\u3044\u3068\u3046","\u305A\u3044\u3076\u3093","\u3059\u3044\u3088\u3046\u3073","\u3059\u3046\u304C\u304F","\u3059\u3046\u3058\u3064","\u3059\u3046\u305B\u3093","\u3059\u304A\u3069\u308A","\u3059\u304D\u307E","\u3059\u304F\u3046","\u3059\u304F\u306A\u3044","\u3059\u3051\u308B","\u3059\u3054\u3044","\u3059\u3053\u3057","\u305A\u3055\u3093","\u3059\u305A\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308B","\u3059\u3063\u304B\u308A","\u305A\u3063\u3057\u308A","\u305A\u3063\u3068","\u3059\u3066\u304D","\u3059\u3066\u308B","\u3059\u306D\u308B","\u3059\u306E\u3053","\u3059\u306F\u3060","\u3059\u3070\u3089\u3057\u3044","\u305A\u3072\u3087\u3046","\u305A\u3076\u306C\u308C","\u3059\u3076\u308A","\u3059\u3075\u308C","\u3059\u3079\u3066","\u3059\u3079\u308B","\u305A\u307B\u3046","\u3059\u307C\u3093","\u3059\u307E\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304D","\u3059\u3089\u3059\u3089","\u3059\u308B\u3081","\u3059\u308C\u3061\u304C\u3046","\u3059\u308D\u3063\u3068","\u3059\u308F\u308B","\u3059\u3093\u305C\u3093","\u3059\u3093\u307D\u3046","\u305B\u3042\u3076\u3089","\u305B\u3044\u304B\u3064","\u305B\u3044\u3052\u3093","\u305B\u3044\u3058","\u305B\u3044\u3088\u3046","\u305B\u304A\u3046","\u305B\u304B\u3044\u304B\u3093","\u305B\u304D\u306B\u3093","\u305B\u304D\u3080","\u305B\u304D\u3086","\u305B\u304D\u3089\u3093\u3046\u3093","\u305B\u3051\u3093","\u305B\u3053\u3046","\u305B\u3059\u3058","\u305B\u305F\u3044","\u305B\u305F\u3051","\u305B\u3063\u304B\u304F","\u305B\u3063\u304D\u3083\u304F","\u305C\u3063\u304F","\u305B\u3063\u3051\u3093","\u305B\u3063\u3053\u3064","\u305B\u3063\u3055\u305F\u304F\u307E","\u305B\u3064\u305E\u304F","\u305B\u3064\u3060\u3093","\u305B\u3064\u3067\u3093","\u305B\u3063\u3071\u3093","\u305B\u3064\u3073","\u305B\u3064\u3076\u3093","\u305B\u3064\u3081\u3044","\u305B\u3064\u308A\u3064","\u305B\u306A\u304B","\u305B\u306E\u3073","\u305B\u306F\u3070","\u305B\u3073\u308D","\u305B\u307C\u306D","\u305B\u307E\u3044","\u305B\u307E\u308B","\u305B\u3081\u308B","\u305B\u3082\u305F\u308C","\u305B\u308A\u3075","\u305C\u3093\u3042\u304F","\u305B\u3093\u3044","\u305B\u3093\u3048\u3044","\u305B\u3093\u304B","\u305B\u3093\u304D\u3087","\u305B\u3093\u304F","\u305B\u3093\u3052\u3093","\u305C\u3093\u3054","\u305B\u3093\u3055\u3044","\u305B\u3093\u3057\u3085","\u305B\u3093\u3059\u3044","\u305B\u3093\u305B\u3044","\u305B\u3093\u305E","\u305B\u3093\u305F\u304F","\u305B\u3093\u3061\u3087\u3046","\u305B\u3093\u3066\u3044","\u305B\u3093\u3068\u3046","\u305B\u3093\u306C\u304D","\u305B\u3093\u306D\u3093","\u305B\u3093\u3071\u3044","\u305C\u3093\u3076","\u305C\u3093\u307D\u3046","\u305B\u3093\u3080","\u305B\u3093\u3081\u3093\u3058\u3087","\u305B\u3093\u3082\u3093","\u305B\u3093\u3084\u304F","\u305B\u3093\u3086\u3046","\u305B\u3093\u3088\u3046","\u305C\u3093\u3089","\u305C\u3093\u308A\u3083\u304F","\u305B\u3093\u308C\u3044","\u305B\u3093\u308D","\u305D\u3042\u304F","\u305D\u3044\u3068\u3052\u308B","\u305D\u3044\u306D","\u305D\u3046\u304C\u3093\u304D\u3087\u3046","\u305D\u3046\u304D","\u305D\u3046\u3054","\u305D\u3046\u3057\u3093","\u305D\u3046\u3060\u3093","\u305D\u3046\u306A\u3093","\u305D\u3046\u3073","\u305D\u3046\u3081\u3093","\u305D\u3046\u308A","\u305D\u3048\u3082\u306E","\u305D\u3048\u3093","\u305D\u304C\u3044","\u305D\u3052\u304D","\u305D\u3053\u3046","\u305D\u3053\u305D\u3053","\u305D\u3056\u3044","\u305D\u3057\u306A","\u305D\u305B\u3044","\u305D\u305B\u3093","\u305D\u305D\u3050","\u305D\u3060\u3066\u308B","\u305D\u3064\u3046","\u305D\u3064\u3048\u3093","\u305D\u3063\u304B\u3093","\u305D\u3064\u304E\u3087\u3046","\u305D\u3063\u3051\u3064","\u305D\u3063\u3053\u3046","\u305D\u3063\u305B\u3093","\u305D\u3063\u3068","\u305D\u3068\u304C\u308F","\u305D\u3068\u3065\u3089","\u305D\u306A\u3048\u308B","\u305D\u306A\u305F","\u305D\u3075\u307C","\u305D\u307C\u304F","\u305D\u307C\u308D","\u305D\u307E\u3064","\u305D\u307E\u308B","\u305D\u3080\u304F","\u305D\u3080\u308A\u3048","\u305D\u3081\u308B","\u305D\u3082\u305D\u3082","\u305D\u3088\u304B\u305C","\u305D\u3089\u307E\u3081","\u305D\u308D\u3046","\u305D\u3093\u304B\u3044","\u305D\u3093\u3051\u3044","\u305D\u3093\u3056\u3044","\u305D\u3093\u3057\u3064","\u305D\u3093\u305E\u304F","\u305D\u3093\u3061\u3087\u3046","\u305E\u3093\u3073","\u305E\u3093\u3076\u3093","\u305D\u3093\u307F\u3093","\u305F\u3042\u3044","\u305F\u3044\u3044\u3093","\u305F\u3044\u3046\u3093","\u305F\u3044\u3048\u304D","\u305F\u3044\u304A\u3046","\u3060\u3044\u304C\u304F","\u305F\u3044\u304D","\u305F\u3044\u3050\u3046","\u305F\u3044\u3051\u3093","\u305F\u3044\u3053","\u305F\u3044\u3056\u3044","\u3060\u3044\u3058\u3087\u3046\u3076","\u3060\u3044\u3059\u304D","\u305F\u3044\u305B\u3064","\u305F\u3044\u305D\u3046","\u3060\u3044\u305F\u3044","\u305F\u3044\u3061\u3087\u3046","\u305F\u3044\u3066\u3044","\u3060\u3044\u3069\u3053\u308D","\u305F\u3044\u306A\u3044","\u305F\u3044\u306D\u3064","\u305F\u3044\u306E\u3046","\u305F\u3044\u306F\u3093","\u3060\u3044\u3072\u3087\u3046","\u305F\u3044\u3075\u3046","\u305F\u3044\u3078\u3093","\u305F\u3044\u307B","\u305F\u3044\u307E\u3064\u3070\u306A","\u305F\u3044\u307F\u3093\u3050","\u305F\u3044\u3080","\u305F\u3044\u3081\u3093","\u305F\u3044\u3084\u304D","\u305F\u3044\u3088\u3046","\u305F\u3044\u3089","\u305F\u3044\u308A\u3087\u304F","\u305F\u3044\u308B","\u305F\u3044\u308F\u3093","\u305F\u3046\u3048","\u305F\u3048\u308B","\u305F\u304A\u3059","\u305F\u304A\u308B","\u305F\u304A\u308C\u308B","\u305F\u304B\u3044","\u305F\u304B\u306D","\u305F\u304D\u3073","\u305F\u304F\u3055\u3093","\u305F\u3053\u304F","\u305F\u3053\u3084\u304D","\u305F\u3055\u3044","\u305F\u3057\u3056\u3093","\u3060\u3058\u3083\u308C","\u305F\u3059\u3051\u308B","\u305F\u305A\u3055\u308F\u308B","\u305F\u305D\u304C\u308C","\u305F\u305F\u304B\u3046","\u305F\u305F\u304F","\u305F\u3060\u3057\u3044","\u305F\u305F\u307F","\u305F\u3061\u3070\u306A","\u3060\u3063\u304B\u3044","\u3060\u3063\u304D\u3083\u304F","\u3060\u3063\u3053","\u3060\u3063\u3057\u3085\u3064","\u3060\u3063\u305F\u3044","\u305F\u3066\u308B","\u305F\u3068\u3048\u308B","\u305F\u306A\u3070\u305F","\u305F\u306B\u3093","\u305F\u306C\u304D","\u305F\u306E\u3057\u307F","\u305F\u306F\u3064","\u305F\u3076\u3093","\u305F\u3079\u308B","\u305F\u307C\u3046","\u305F\u307E\u3054","\u305F\u307E\u308B","\u3060\u3080\u308B","\u305F\u3081\u3044\u304D","\u305F\u3081\u3059","\u305F\u3081\u308B","\u305F\u3082\u3064","\u305F\u3084\u3059\u3044","\u305F\u3088\u308B","\u305F\u3089\u3059","\u305F\u308A\u304D\u307B\u3093\u304C\u3093","\u305F\u308A\u3087\u3046","\u305F\u308A\u308B","\u305F\u308B\u3068","\u305F\u308C\u308B","\u305F\u308C\u3093\u3068","\u305F\u308D\u3063\u3068","\u305F\u308F\u3080\u308C\u308B","\u3060\u3093\u3042\u3064","\u305F\u3093\u3044","\u305F\u3093\u304A\u3093","\u305F\u3093\u304B","\u305F\u3093\u304D","\u305F\u3093\u3051\u3093","\u305F\u3093\u3054","\u305F\u3093\u3055\u3093","\u305F\u3093\u3058\u3087\u3046\u3073","\u3060\u3093\u305B\u3044","\u305F\u3093\u305D\u304F","\u305F\u3093\u305F\u3044","\u3060\u3093\u3061","\u305F\u3093\u3066\u3044","\u305F\u3093\u3068\u3046","\u3060\u3093\u306A","\u305F\u3093\u306B\u3093","\u3060\u3093\u306D\u3064","\u305F\u3093\u306E\u3046","\u305F\u3093\u3074\u3093","\u3060\u3093\u307C\u3046","\u305F\u3093\u307E\u3064","\u305F\u3093\u3081\u3044","\u3060\u3093\u308C\u3064","\u3060\u3093\u308D","\u3060\u3093\u308F","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304D","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304B\u3044","\u3061\u304B\u3089","\u3061\u304D\u3085\u3046","\u3061\u304D\u3093","\u3061\u3051\u3044\u305A","\u3061\u3051\u3093","\u3061\u3053\u304F","\u3061\u3055\u3044","\u3061\u3057\u304D","\u3061\u3057\u308A\u3087\u3046","\u3061\u305B\u3044","\u3061\u305D\u3046","\u3061\u305F\u3044","\u3061\u305F\u3093","\u3061\u3061\u304A\u3084","\u3061\u3064\u3058\u3087","\u3061\u3066\u304D","\u3061\u3066\u3093","\u3061\u306C\u304D","\u3061\u306C\u308A","\u3061\u306E\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305B\u3093","\u3061\u307B\u3046","\u3061\u307E\u305F","\u3061\u307F\u3064","\u3061\u307F\u3069\u308D","\u3061\u3081\u3044\u3069","\u3061\u3083\u3093\u3053\u306A\u3079","\u3061\u3085\u3046\u3044","\u3061\u3086\u308A\u3087\u304F","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304F\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307F","\u3061\u308A\u304C\u307F","\u3061\u308A\u3087\u3046","\u3061\u308B\u3069","\u3061\u308F\u308F","\u3061\u3093\u305F\u3044","\u3061\u3093\u3082\u304F","\u3064\u3044\u304B","\u3064\u3044\u305F\u3061","\u3064\u3046\u304B","\u3064\u3046\u3058\u3087\u3046","\u3064\u3046\u306F\u3093","\u3064\u3046\u308F","\u3064\u304B\u3046","\u3064\u304B\u308C\u308B","\u3064\u304F\u306D","\u3064\u304F\u308B","\u3064\u3051\u306D","\u3064\u3051\u308B","\u3064\u3054\u3046","\u3064\u305F\u3048\u308B","\u3064\u3065\u304F","\u3064\u3064\u3058","\u3064\u3064\u3080","\u3064\u3068\u3081\u308B","\u3064\u306A\u304C\u308B","\u3064\u306A\u307F","\u3064\u306D\u3065\u306D","\u3064\u306E\u308B","\u3064\u3076\u3059","\u3064\u307E\u3089\u306A\u3044","\u3064\u307E\u308B","\u3064\u307F\u304D","\u3064\u3081\u305F\u3044","\u3064\u3082\u308A","\u3064\u3082\u308B","\u3064\u3088\u3044","\u3064\u308B\u307C","\u3064\u308B\u307F\u304F","\u3064\u308F\u3082\u306E","\u3064\u308F\u308A","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307F","\u3066\u3044\u304A\u3093","\u3066\u3044\u304B","\u3066\u3044\u304D","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304F","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305B\u3044","\u3066\u3044\u305F\u3044","\u3066\u3044\u3069","\u3066\u3044\u306D\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307C\u3046","\u3066\u3046\u3061","\u3066\u304A\u304F\u308C","\u3066\u304D\u3068\u3046","\u3066\u304F\u3073","\u3067\u3053\u307C\u3053","\u3066\u3055\u304E\u3087\u3046","\u3066\u3055\u3052","\u3066\u3059\u308A","\u3066\u305D\u3046","\u3066\u3061\u304C\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304C\u304F","\u3066\u3064\u3065\u304D","\u3067\u3063\u3071","\u3066\u3064\u307C\u3046","\u3066\u3064\u3084","\u3067\u306C\u304B\u3048","\u3066\u306C\u304D","\u3066\u306C\u3050\u3044","\u3066\u306E\u3072\u3089","\u3066\u306F\u3044","\u3066\u3076\u304F\u308D","\u3066\u3075\u3060","\u3066\u307B\u3069\u304D","\u3066\u307B\u3093","\u3066\u307E\u3048","\u3066\u307E\u304D\u305A\u3057","\u3066\u307F\u3058\u304B","\u3066\u307F\u3084\u3052","\u3066\u3089\u3059","\u3066\u308C\u3073","\u3066\u308F\u3051","\u3066\u308F\u305F\u3057","\u3067\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304B\u3044","\u3066\u3093\u304D","\u3066\u3093\u3050","\u3066\u3093\u3051\u3093","\u3066\u3093\u3054\u304F","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3067\u3093\u3061","\u3066\u3093\u3066\u304D","\u3066\u3093\u3068\u3046","\u3066\u3093\u306A\u3044","\u3066\u3093\u3077\u3089","\u3066\u3093\u307C\u3046\u3060\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304B\u3044","\u3067\u3093\u308A\u3087\u304F","\u3067\u3093\u308F","\u3069\u3042\u3044","\u3068\u3044\u308C","\u3069\u3046\u304B\u3093","\u3068\u3046\u304D\u3085\u3046","\u3069\u3046\u3050","\u3068\u3046\u3057","\u3068\u3046\u3080\u304E","\u3068\u304A\u3044","\u3068\u304A\u304B","\u3068\u304A\u304F","\u3068\u304A\u3059","\u3068\u304A\u308B","\u3068\u304B\u3044","\u3068\u304B\u3059","\u3068\u304D\u304A\u308A","\u3068\u304D\u3069\u304D","\u3068\u304F\u3044","\u3068\u304F\u3057\u3085\u3046","\u3068\u304F\u3066\u3093","\u3068\u304F\u306B","\u3068\u304F\u3079\u3064","\u3068\u3051\u3044","\u3068\u3051\u308B","\u3068\u3053\u3084","\u3068\u3055\u304B","\u3068\u3057\u3087\u304B\u3093","\u3068\u305D\u3046","\u3068\u305F\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304D\u3085\u3046","\u3068\u3063\u304F\u3093","\u3068\u3064\u305C\u3093","\u3068\u3064\u306B\u3085\u3046","\u3068\u3069\u3051\u308B","\u3068\u3068\u306E\u3048\u308B","\u3068\u306A\u3044","\u3068\u306A\u3048\u308B","\u3068\u306A\u308A","\u3068\u306E\u3055\u307E","\u3068\u3070\u3059","\u3069\u3076\u304C\u308F","\u3068\u307B\u3046","\u3068\u307E\u308B","\u3068\u3081\u308B","\u3068\u3082\u3060\u3061","\u3068\u3082\u308B","\u3069\u3088\u3046\u3073","\u3068\u3089\u3048\u308B","\u3068\u3093\u304B\u3064","\u3069\u3093\u3076\u308A","\u306A\u3044\u304B\u304F","\u306A\u3044\u3053\u3046","\u306A\u3044\u3057\u3087","\u306A\u3044\u3059","\u306A\u3044\u305B\u3093","\u306A\u3044\u305D\u3046","\u306A\u304A\u3059","\u306A\u304C\u3044","\u306A\u304F\u3059","\u306A\u3052\u308B","\u306A\u3053\u3046\u3069","\u306A\u3055\u3051","\u306A\u305F\u3067\u3053\u3053","\u306A\u3063\u3068\u3046","\u306A\u3064\u3084\u3059\u307F","\u306A\u306A\u304A\u3057","\u306A\u306B\u3054\u3068","\u306A\u306B\u3082\u306E","\u306A\u306B\u308F","\u306A\u306E\u304B","\u306A\u3075\u3060","\u306A\u307E\u3044\u304D","\u306A\u307E\u3048","\u306A\u307E\u307F","\u306A\u307F\u3060","\u306A\u3081\u3089\u304B","\u306A\u3081\u308B","\u306A\u3084\u3080","\u306A\u3089\u3046","\u306A\u3089\u3073","\u306A\u3089\u3076","\u306A\u308C\u308B","\u306A\u308F\u3068\u3073","\u306A\u308F\u3070\u308A","\u306B\u3042\u3046","\u306B\u3044\u304C\u305F","\u306B\u3046\u3051","\u306B\u304A\u3044","\u306B\u304B\u3044","\u306B\u304C\u3066","\u306B\u304D\u3073","\u306B\u304F\u3057\u307F","\u306B\u304F\u307E\u3093","\u306B\u3052\u308B","\u306B\u3055\u3093\u304B\u305F\u3093\u305D","\u306B\u3057\u304D","\u306B\u305B\u3082\u306E","\u306B\u3061\u3058\u3087\u3046","\u306B\u3061\u3088\u3046\u3073","\u306B\u3063\u304B","\u306B\u3063\u304D","\u306B\u3063\u3051\u3044","\u306B\u3063\u3053\u3046","\u306B\u3063\u3055\u3093","\u306B\u3063\u3057\u3087\u304F","\u306B\u3063\u3059\u3046","\u306B\u3063\u305B\u304D","\u306B\u3063\u3066\u3044","\u306B\u306A\u3046","\u306B\u307B\u3093","\u306B\u307E\u3081","\u306B\u3082\u3064","\u306B\u3084\u308A","\u306B\u3085\u3046\u3044\u3093","\u306B\u308A\u3093\u3057\u3083","\u306B\u308F\u3068\u308A","\u306B\u3093\u3044","\u306B\u3093\u304B","\u306B\u3093\u304D","\u306B\u3093\u3052\u3093","\u306B\u3093\u3057\u304D","\u306B\u3093\u305A\u3046","\u306B\u3093\u305D\u3046","\u306B\u3093\u305F\u3044","\u306B\u3093\u3061","\u306B\u3093\u3066\u3044","\u306B\u3093\u306B\u304F","\u306B\u3093\u3077","\u306B\u3093\u307E\u308A","\u306B\u3093\u3080","\u306B\u3093\u3081\u3044","\u306B\u3093\u3088\u3046","\u306C\u3044\u304F\u304E","\u306C\u304B\u3059","\u306C\u3050\u3044\u3068\u308B","\u306C\u3050\u3046","\u306C\u304F\u3082\u308A","\u306C\u3059\u3080","\u306C\u307E\u3048\u3073","\u306C\u3081\u308A","\u306C\u3089\u3059","\u306C\u3093\u3061\u3083\u304F","\u306D\u3042\u3052","\u306D\u3044\u304D","\u306D\u3044\u308B","\u306D\u3044\u308D","\u306D\u3050\u305B","\u306D\u304F\u305F\u3044","\u306D\u304F\u3089","\u306D\u3053\u305C","\u306D\u3053\u3080","\u306D\u3055\u3052","\u306D\u3059\u3054\u3059","\u306D\u305D\u3079\u308B","\u306D\u3060\u3093","\u306D\u3064\u3044","\u306D\u3063\u3057\u3093","\u306D\u3064\u305E\u3046","\u306D\u3063\u305F\u3044\u304E\u3087","\u306D\u3076\u305D\u304F","\u306D\u3075\u3060","\u306D\u307C\u3046","\u306D\u307B\u308A\u306F\u307B\u308A","\u306D\u307E\u304D","\u306D\u307E\u308F\u3057","\u306D\u307F\u307F","\u306D\u3080\u3044","\u306D\u3080\u305F\u3044","\u306D\u3082\u3068","\u306D\u3089\u3046","\u306D\u308F\u3056","\u306D\u3093\u3044\u308A","\u306D\u3093\u304A\u3057","\u306D\u3093\u304B\u3093","\u306D\u3093\u304D\u3093","\u306D\u3093\u3050","\u306D\u3093\u3056","\u306D\u3093\u3057","\u306D\u3093\u3061\u3083\u304F","\u306D\u3093\u3069","\u306D\u3093\u3074","\u306D\u3093\u3076\u3064","\u306D\u3093\u307E\u3064","\u306D\u3093\u308A\u3087\u3046","\u306D\u3093\u308C\u3044","\u306E\u3044\u305A","\u306E\u304A\u3065\u307E","\u306E\u304C\u3059","\u306E\u304D\u306A\u307F","\u306E\u3053\u304E\u308A","\u306E\u3053\u3059","\u306E\u3053\u308B","\u306E\u305B\u308B","\u306E\u305E\u304F","\u306E\u305E\u3080","\u306E\u305F\u307E\u3046","\u306E\u3061\u307B\u3069","\u306E\u3063\u304F","\u306E\u3070\u3059","\u306E\u306F\u3089","\u306E\u3079\u308B","\u306E\u307C\u308B","\u306E\u307F\u3082\u306E","\u306E\u3084\u307E","\u306E\u3089\u3044\u306C","\u306E\u3089\u306D\u3053","\u306E\u308A\u3082\u306E","\u306E\u308A\u3086\u304D","\u306E\u308C\u3093","\u306E\u3093\u304D","\u3070\u3042\u3044","\u306F\u3042\u304F","\u3070\u3042\u3055\u3093","\u3070\u3044\u304B","\u3070\u3044\u304F","\u306F\u3044\u3051\u3093","\u306F\u3044\u3054","\u306F\u3044\u3057\u3093","\u306F\u3044\u3059\u3044","\u306F\u3044\u305B\u3093","\u306F\u3044\u305D\u3046","\u306F\u3044\u3061","\u3070\u3044\u3070\u3044","\u306F\u3044\u308C\u3064","\u306F\u3048\u308B","\u306F\u304A\u308B","\u306F\u304B\u3044","\u3070\u304B\u308A","\u306F\u304B\u308B","\u306F\u304F\u3057\u3085","\u306F\u3051\u3093","\u306F\u3053\u3076","\u306F\u3055\u307F","\u306F\u3055\u3093","\u306F\u3057\u3054","\u3070\u3057\u3087","\u306F\u3057\u308B","\u306F\u305B\u308B","\u3071\u305D\u3053\u3093","\u306F\u305D\u3093","\u306F\u305F\u3093","\u306F\u3061\u307F\u3064","\u306F\u3064\u304A\u3093","\u306F\u3063\u304B\u304F","\u306F\u3065\u304D","\u306F\u3063\u304D\u308A","\u306F\u3063\u304F\u3064","\u306F\u3063\u3051\u3093","\u306F\u3063\u3053\u3046","\u306F\u3063\u3055\u3093","\u306F\u3063\u3057\u3093","\u306F\u3063\u305F\u3064","\u306F\u3063\u3061\u3085\u3046","\u306F\u3063\u3066\u3093","\u306F\u3063\u3074\u3087\u3046","\u306F\u3063\u307D\u3046","\u306F\u306A\u3059","\u306F\u306A\u3073","\u306F\u306B\u304B\u3080","\u306F\u3076\u3089\u3057","\u306F\u307F\u304C\u304D","\u306F\u3080\u304B\u3046","\u306F\u3081\u3064","\u306F\u3084\u3044","\u306F\u3084\u3057","\u306F\u3089\u3046","\u306F\u308D\u3046\u3043\u3093","\u306F\u308F\u3044","\u306F\u3093\u3044","\u306F\u3093\u3048\u3044","\u306F\u3093\u304A\u3093","\u306F\u3093\u304B\u304F","\u306F\u3093\u304D\u3087\u3046","\u3070\u3093\u3050\u307F","\u306F\u3093\u3053","\u306F\u3093\u3057\u3083","\u306F\u3093\u3059\u3046","\u306F\u3093\u3060\u3093","\u3071\u3093\u3061","\u3071\u3093\u3064","\u306F\u3093\u3066\u3044","\u306F\u3093\u3068\u3057","\u306F\u3093\u306E\u3046","\u306F\u3093\u3071","\u306F\u3093\u3076\u3093","\u306F\u3093\u307A\u3093","\u306F\u3093\u307C\u3046\u304D","\u306F\u3093\u3081\u3044","\u306F\u3093\u3089\u3093","\u306F\u3093\u308D\u3093","\u3072\u3044\u304D","\u3072\u3046\u3093","\u3072\u3048\u308B","\u3072\u304B\u304F","\u3072\u304B\u308A","\u3072\u304B\u308B","\u3072\u304B\u3093","\u3072\u304F\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304D","\u3072\u3053\u304F","\u3072\u3055\u3044","\u3072\u3055\u3057\u3076\u308A","\u3072\u3055\u3093","\u3073\u3058\u3085\u3064\u304B\u3093","\u3072\u3057\u3087","\u3072\u305D\u304B","\u3072\u305D\u3080","\u3072\u305F\u3080\u304D","\u3072\u3060\u308A","\u3072\u305F\u308B","\u3072\u3064\u304E","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3058\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305C\u3093","\u3074\u3063\u305F\u308A","\u3074\u3063\u3061\u308A","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3054\u307F","\u3072\u306A\u307E\u3064\u308A","\u3072\u306A\u3093","\u3072\u306D\u308B","\u3072\u306F\u3093","\u3072\u3073\u304F","\u3072\u3072\u3087\u3046","\u3072\u307B\u3046","\u3072\u307E\u308F\u308A","\u3072\u307E\u3093","\u3072\u307F\u3064","\u3072\u3081\u3044","\u3072\u3081\u3058\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3073\u3087\u3046\u304D","\u3072\u3089\u304C\u306A","\u3072\u3089\u304F","\u3072\u308A\u3064","\u3072\u308A\u3087\u3046","\u3072\u308B\u307E","\u3072\u308B\u3084\u3059\u307F","\u3072\u308C\u3044","\u3072\u308D\u3044","\u3072\u308D\u3046","\u3072\u308D\u304D","\u3072\u308D\u3086\u304D","\u3072\u3093\u304B\u304F","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305D\u3046","\u3074\u3093\u3061","\u3072\u3093\u3071\u3093","\u3073\u3093\u307C\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305B\u3093","\u3077\u3046\u305F\u308D\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308B","\u3075\u304A\u3093","\u3075\u304B\u3044","\u3075\u304D\u3093","\u3075\u304F\u3056\u3064","\u3075\u304F\u3076\u304F\u308D","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304E","\u3075\u3058\u307F","\u3075\u3059\u307E","\u3075\u305B\u3044","\u3075\u305B\u3050","\u3075\u305D\u304F","\u3076\u305F\u306B\u304F","\u3075\u305F\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304B","\u3075\u3063\u304B\u3064","\u3075\u3063\u304D","\u3075\u3063\u3053\u304F","\u3076\u3069\u3046","\u3075\u3068\u308B","\u3075\u3068\u3093","\u3075\u306E\u3046","\u3075\u306F\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307E\u3093","\u3075\u307F\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308A\u3053","\u3075\u308A\u308B","\u3075\u308B\u3044","\u3075\u3093\u3044\u304D","\u3076\u3093\u304C\u304F","\u3076\u3093\u3050","\u3075\u3093\u3057\u3064","\u3076\u3093\u305B\u304D","\u3075\u3093\u305D\u3046","\u3076\u3093\u307D\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304A\u3093","\u3078\u3044\u304C\u3044","\u3078\u3044\u304D","\u3078\u3044\u3052\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305B\u3064","\u3078\u3044\u305D","\u3078\u3044\u305F\u304F","\u3078\u3044\u3066\u3093","\u3078\u3044\u306D\u3064","\u3078\u3044\u308F","\u3078\u304D\u304C","\u3078\u3053\u3080","\u3079\u306B\u3044\u308D","\u3079\u306B\u3057\u3087\u3046\u304C","\u3078\u3089\u3059","\u3078\u3093\u304B\u3093","\u3079\u3093\u304D\u3087\u3046","\u3079\u3093\u3054\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305F\u3044","\u3079\u3093\u308A","\u307B\u3042\u3093","\u307B\u3044\u304F","\u307C\u3046\u304E\u3087","\u307B\u3046\u3053\u304F","\u307B\u3046\u305D\u3046","\u307B\u3046\u307B\u3046","\u307B\u3046\u3082\u3093","\u307B\u3046\u308A\u3064","\u307B\u3048\u308B","\u307B\u304A\u3093","\u307B\u304B\u3093","\u307B\u304D\u3087\u3046","\u307C\u304D\u3093","\u307B\u304F\u308D","\u307B\u3051\u3064","\u307B\u3051\u3093","\u307B\u3053\u3046","\u307B\u3053\u308B","\u307B\u3057\u3044","\u307B\u3057\u3064","\u307B\u3057\u3085","\u307B\u3057\u3087\u3046","\u307B\u305B\u3044","\u307B\u305D\u3044","\u307B\u305D\u304F","\u307B\u305F\u3066","\u307B\u305F\u308B","\u307D\u3061\u3076\u304F\u308D","\u307B\u3063\u304D\u3087\u304F","\u307B\u3063\u3055","\u307B\u3063\u305F\u3093","\u307B\u3068\u3093\u3069","\u307B\u3081\u308B","\u307B\u3093\u3044","\u307B\u3093\u304D","\u307B\u3093\u3051","\u307B\u3093\u3057\u3064","\u307B\u3093\u3084\u304F","\u307E\u3044\u306B\u3061","\u307E\u304B\u3044","\u307E\u304B\u305B\u308B","\u307E\u304C\u308B","\u307E\u3051\u308B","\u307E\u3053\u3068","\u307E\u3055\u3064","\u307E\u3058\u3081","\u307E\u3059\u304F","\u307E\u305C\u308B","\u307E\u3064\u308A","\u307E\u3068\u3081","\u307E\u306A\u3076","\u307E\u306C\u3051","\u307E\u306D\u304F","\u307E\u307B\u3046","\u307E\u3082\u308B","\u307E\u3086\u3052","\u307E\u3088\u3046","\u307E\u308D\u3084\u304B","\u307E\u308F\u3059","\u307E\u308F\u308A","\u307E\u308F\u308B","\u307E\u3093\u304C","\u307E\u3093\u304D\u3064","\u307E\u3093\u305E\u304F","\u307E\u3093\u306A\u304B","\u307F\u3044\u3089","\u307F\u3046\u3061","\u307F\u3048\u308B","\u307F\u304C\u304F","\u307F\u304B\u305F","\u307F\u304B\u3093","\u307F\u3051\u3093","\u307F\u3053\u3093","\u307F\u3058\u304B\u3044","\u307F\u3059\u3044","\u307F\u3059\u3048\u308B","\u307F\u305B\u308B","\u307F\u3063\u304B","\u307F\u3064\u304B\u308B","\u307F\u3064\u3051\u308B","\u307F\u3066\u3044","\u307F\u3068\u3081\u308B","\u307F\u306A\u3068","\u307F\u306A\u307F\u304B\u3055\u3044","\u307F\u306D\u3089\u308B","\u307F\u306E\u3046","\u307F\u306E\u304C\u3059","\u307F\u307B\u3093","\u307F\u3082\u3068","\u307F\u3084\u3052","\u307F\u3089\u3044","\u307F\u308A\u3087\u304F","\u307F\u308F\u304F","\u307F\u3093\u304B","\u307F\u3093\u305E\u304F","\u3080\u3044\u304B","\u3080\u3048\u304D","\u3080\u3048\u3093","\u3080\u304B\u3044","\u3080\u304B\u3046","\u3080\u304B\u3048","\u3080\u304B\u3057","\u3080\u304E\u3061\u3083","\u3080\u3051\u308B","\u3080\u3052\u3093","\u3080\u3055\u307C\u308B","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u3070","\u3080\u3058\u3085\u3093","\u3080\u3057\u308D","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3076","\u3080\u3059\u3081","\u3080\u305B\u308B","\u3080\u305B\u3093","\u3080\u3061\u3085\u3046","\u3080\u306A\u3057\u3044","\u3080\u306E\u3046","\u3080\u3084\u307F","\u3080\u3088\u3046","\u3080\u3089\u3055\u304D","\u3080\u308A\u3087\u3046","\u3080\u308D\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304B\u304F","\u3081\u3044\u304D\u3087\u304F","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305D\u3046","\u3081\u3044\u3076\u3064","\u3081\u3044\u308C\u3044","\u3081\u3044\u308F\u304F","\u3081\u3050\u307E\u308C\u308B","\u3081\u3056\u3059","\u3081\u3057\u305F","\u3081\u305A\u3089\u3057\u3044","\u3081\u3060\u3064","\u3081\u307E\u3044","\u3081\u3084\u3059","\u3081\u3093\u304D\u3087","\u3081\u3093\u305B\u304D","\u3081\u3093\u3069\u3046","\u3082\u3046\u3057\u3042\u3052\u308B","\u3082\u3046\u3069\u3046\u3051\u3093","\u3082\u3048\u308B","\u3082\u304F\u3057","\u3082\u304F\u3066\u304D","\u3082\u304F\u3088\u3046\u3073","\u3082\u3061\u308D\u3093","\u3082\u3069\u308B","\u3082\u3089\u3046","\u3082\u3093\u304F","\u3082\u3093\u3060\u3044","\u3084\u304A\u3084","\u3084\u3051\u308B","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305F\u308D\u3046","\u3084\u3059\u307F","\u3084\u305B\u308B","\u3084\u305D\u3046","\u3084\u305F\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u3071\u308A","\u3084\u3076\u308B","\u3084\u3081\u308B","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308F\u3089\u304B\u3044","\u3086\u3046\u304D","\u3086\u3046\u3073\u3093\u304D\u3087\u304F","\u3086\u3046\u3079","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305B\u3093","\u3086\u305D\u3046","\u3086\u305F\u304B","\u3086\u3061\u3083\u304F","\u3086\u3067\u308B","\u3086\u306B\u3085\u3046","\u3086\u3073\u308F","\u3086\u3089\u3044","\u3086\u308C\u308B","\u3088\u3046\u3044","\u3088\u3046\u304B","\u3088\u3046\u304D\u3085\u3046","\u3088\u3046\u3058","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304B\u305C","\u3088\u304B\u3093","\u3088\u304D\u3093","\u3088\u304F\u305B\u3044","\u3088\u304F\u307C\u3046","\u3088\u3051\u3044","\u3088\u3054\u308C\u308B","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305D\u3046","\u3088\u305D\u304F","\u3088\u3063\u304B","\u3088\u3066\u3044","\u3088\u3069\u304C\u308F\u304F","\u3088\u306D\u3064","\u3088\u3084\u304F","\u3088\u3086\u3046","\u3088\u308D\u3053\u3076","\u3088\u308D\u3057\u3044","\u3089\u3044\u3046","\u3089\u304F\u304C\u304D","\u3089\u304F\u3054","\u3089\u304F\u3055\u3064","\u3089\u304F\u3060","\u3089\u3057\u3093\u3070\u3093","\u3089\u305B\u3093","\u3089\u305E\u304F","\u3089\u305F\u3044","\u3089\u3063\u304B","\u3089\u308C\u3064","\u308A\u3048\u304D","\u308A\u304B\u3044","\u308A\u304D\u3055\u304F","\u308A\u304D\u305B\u3064","\u308A\u304F\u3050\u3093","\u308A\u304F\u3064","\u308A\u3051\u3093","\u308A\u3053\u3046","\u308A\u305B\u3044","\u308A\u305D\u3046","\u308A\u305D\u304F","\u308A\u3066\u3093","\u308A\u306D\u3093","\u308A\u3086\u3046","\u308A\u3085\u3046\u304C\u304F","\u308A\u3088\u3046","\u308A\u3087\u3046\u308A","\u308A\u3087\u304B\u3093","\u308A\u3087\u304F\u3061\u3083","\u308A\u3087\u3053\u3046","\u308A\u308A\u304F","\u308A\u308C\u304D","\u308A\u308D\u3093","\u308A\u3093\u3054","\u308B\u3044\u3051\u3044","\u308B\u3044\u3055\u3044","\u308B\u3044\u3058","\u308B\u3044\u305B\u304D","\u308B\u3059\u3070\u3093","\u308B\u308A\u304C\u308F\u3089","\u308C\u3044\u304B\u3093","\u308C\u3044\u304E","\u308C\u3044\u305B\u3044","\u308C\u3044\u305E\u3046\u3053","\u308C\u3044\u3068\u3046","\u308C\u3044\u307C\u3046","\u308C\u304D\u3057","\u308C\u304D\u3060\u3044","\u308C\u3093\u3042\u3044","\u308C\u3093\u3051\u3044","\u308C\u3093\u3053\u3093","\u308C\u3093\u3055\u3044","\u308C\u3093\u3057\u3085\u3046","\u308C\u3093\u305E\u304F","\u308C\u3093\u3089\u304F","\u308D\u3046\u304B","\u308D\u3046\u3054","\u308D\u3046\u3058\u3093","\u308D\u3046\u305D\u304F","\u308D\u304F\u304C","\u308D\u3053\u3064","\u308D\u3058\u3046\u3089","\u308D\u3057\u3085\u3064","\u308D\u305B\u3093","\u308D\u3066\u3093","\u308D\u3081\u3093","\u308D\u308C\u3064","\u308D\u3093\u304E","\u308D\u3093\u3071","\u308D\u3093\u3076\u3093","\u308D\u3093\u308A","\u308F\u304B\u3059","\u308F\u304B\u3081","\u308F\u304B\u3084\u307E","\u308F\u304B\u308C\u308B","\u308F\u3057\u3064","\u308F\u3058\u307E\u3057","\u308F\u3059\u308C\u3082\u306E","\u308F\u3089\u3046","\u308F\u308C\u308B"];Se.space="\u3000";const U=["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"];U.space=" ";class z extends y{static{r(this,"Bip39")}constructor(e,t,n){super({mnemonic:e,seed:t,wordlist:n}),this.Wordlist=we,this.es=U,this.jp=Se}setLang(e){switch(e){default:case"en":this.Wordlist=we;break;case"es":this.Wordlist=U;break;case"jp":this.Wordlist=Se;break}}toBw(e){if(e||(e=new g),this.mnemonic){const t=Buffer.from(this.mnemonic);e.writeVarIntNum(t.length),e.write(t)}else e.writeVarIntNum(0);return this.seed?(e.writeVarIntNum(this.seed.length),e.write(this.seed)):e.writeVarIntNum(0),e}fromBr(e){const t=e.readVarIntNum();t>0&&(this.mnemonic=e.read(t).toString());const n=e.readVarIntNum();return n>0&&(this.seed=e.read(n)),this}fromRandom(e){if(e||(e=128),e%32!==0)throw new Error("bits must be multiple of 32");if(e<128)throw new Error("bits must be at least 128");const t=be.getRandomBuffer(e/8);return this.entropy2Mnemonic(t),this.mnemonic2Seed(),this}static fromRandom(e){return new this().fromRandom(e)}async asyncFromRandom(e){e||(e=128);const t=be.getRandomBuffer(e/8);let n=await G.asyncObjectMethod(this,"entropy2Mnemonic",[t]);const v=new z().fromFastBuffer(n.resbuf);return n=await G.asyncObjectMethod(v,"mnemonic2Seed",[]),this.fromFastBuffer(n.resbuf)}static asyncFromRandom(e){return new this().asyncFromRandom(e)}fromEntropy(e){return this.entropy2Mnemonic(e),this}static fromEntropy(e){return new this().fromEntropy(e)}async asyncFromEntropy(e){const t=await G.asyncObjectMethod(this,"fromEntropy",[e]);return this.fromFastBuffer(t.resbuf)}static asyncFromEntropy(e){return new this().asyncFromEntropy(e)}fromString(e){return this.mnemonic=e.trim(),this}toString(){return this.mnemonic}toSeed(e){return this.mnemonic2Seed(e),this.seed}async asyncToSeed(e){e===void 0&&(e="");const t=[e];return(await G.asyncObjectMethod(this,"toSeed",t)).resbuf}entropy2Mnemonic(e){if(!Buffer.isBuffer(e)||e.length<128/8)throw new Error("Entropy is less than 128 bits. It must be 128 bits or more.");const t=X.sha256(e);let n="";const v=e.length*8;for(let ee=0;ee<e.length;ee++)n=n+("00000000"+e[ee].toString(2)).slice(-8);let M=t[0].toString(2);if(M=("00000000"+M).slice(-8).slice(0,v/32),n=n+M,n.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+n.length);let W="";for(let ee=0;ee<n.length/11;ee++){W!==""&&(W=W+this.Wordlist.space);const ue=parseInt(n.slice(ee*11,(ee+1)*11),2);W=W+this.Wordlist[ue]}return this.mnemonic=W,this}check(){const t=this.mnemonic.split(this.Wordlist.space);let n="";for(let Ae=0;Ae<t.length;Ae++){const _e=this.Wordlist.indexOf(t[Ae]);if(_e<0)return!1;n=n+("00000000000"+_e.toString(2)).slice(-11)}if(n.length%11!==0)throw new Error("internal error - entropy not an even multiple of 11 bits - "+n.length);const v=n.length/33,M=n.slice(-v),W=n.slice(0,n.length-v),ee=Buffer.alloc(W.length/8);for(let Ae=0;Ae<W.length/8;Ae++)ee.writeUInt8(parseInt(n.slice(Ae*8,(Ae+1)*8),2),Ae);let le=X.sha256(ee)[0].toString(2);return le=("00000000"+le).slice(-8).slice(0,v),le===M}mnemonic2Seed(e=""){let t=this.mnemonic;if(!this.check())throw new Error("Mnemonic does not pass the check - was the mnemonic typed incorrectly? Are there extra spaces?");if(typeof e!="string")throw new Error("passphrase must be a string or undefined");t=t.normalize("NFKD"),e=e.normalize("NFKD");const n=Buffer.from(t),v=Buffer.concat([Buffer.from("mnemonic"),Buffer.from(e)]);return this.seed=C.pbkdf2Sync(n,v,2048,64,"sha512"),this}isValid(e=""){let t;try{t=!!this.mnemonic2Seed(e)}catch{t=!1}return t}static isValid(e,t=""){return new z(e).isValid(t)}}class se extends y{static{r(this,"KeyPair")}constructor(e,t,n=me){super({privKey:e,pubKey:t}),this.PrivKey=n}fromJSON(e){return e.privKey&&(this.privKey=this.PrivKey.fromJSON(e.privKey)),e.pubKey&&(this.pubKey=T.fromJSON(e.pubKey)),this}fromBr(e){const t=e.readUInt8();t>0&&(this.privKey=new this.PrivKey().fromFastBuffer(e.read(t)));const n=e.readUInt8();return n>0&&(this.pubKey=new T().fromFastBuffer(e.read(n))),this}toBw(e){if(e||(e=new g),this.privKey){const t=this.privKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);if(this.pubKey){const t=this.pubKey.toFastBuffer();e.writeUInt8(t.length),e.write(t)}else e.writeUInt8(0);return e}fromString(e){return this.fromJSON(JSON.parse(e))}toString(){return JSON.stringify(this.toJSON())}toPublic(){const e=new se().fromObject(this);return e.privKey=void 0,e}fromPrivKey(e){return this.privKey=e,this.pubKey=new T().fromPrivKey(e),this}static fromPrivKey(e){return new this().fromPrivKey(e)}async asyncFromPrivKey(e){return this.privKey=e,this.pubKey=await new T().asyncFromPrivKey(e),this}static asyncFromPrivKey(e){return new this().asyncFromPrivKey(e)}fromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.pubKey=new T().fromPrivKey(this.privKey),this}static fromRandom(){return new this().fromRandom()}async asyncFromRandom(){return this.privKey=new this.PrivKey().fromRandom(),this.asyncFromPrivKey(this.privKey)}static asyncFromRandom(){return new this().asyncFromRandom()}}se.Mainnet=class extends se{constructor(E,e){super(E,e,me.Mainnet)}},se.Testnet=class extends se{constructor(E,e){super(E,e,me.Testnet)}};class de extends y{static{r(this,"Ecdsa")}constructor(e,t,n,v,M,W){super({sig:e,keyPair:t,hashBuf:n,k:v,endian:M,verified:W})}toJSON(){return{sig:this.sig?this.sig.toString():void 0,keyPair:this.keyPair?this.keyPair.toBuffer().toString("hex"):void 0,hashBuf:this.hashBuf?this.hashBuf.toString("hex"):void 0,k:this.k?this.k.toString():void 0,endian:this.endian,verified:this.verified}}fromJSON(e){return this.sig=e.sig?new ce().fromString(e.sig):void 0,this.keyPair=e.keyPair?new se().fromBuffer(Buffer.from(e.keyPair,"hex")):void 0,this.hashBuf=e.hashBuf?Buffer.from(e.hashBuf,"hex"):void 0,this.k=e.k?new a().fromString(e.k):void 0,this.endian=e.endian,this.verified=e.verified,this}toBuffer(){const e=JSON.stringify(this.toJSON());return Buffer.from(e)}fromBuffer(e){const t=JSON.parse(e.toString());return this.fromJSON(t)}calcrecovery(){for(let e=0;e<4;e++){let t;this.sig.recovery=e;try{t=this.sig2PubKey()}catch{continue}if(t.point.eq(this.keyPair.pubKey.point)){const n=this.keyPair.pubKey.compressed;return this.sig.compressed=this.keyPair.pubKey.compressed===void 0?!0:n,this}}throw this.sig.recovery=void 0,new Error("Unable to find valid recovery factor")}async asyncCalcrecovery(){const e=await G.asyncObjectMethod(this,"calcrecovery",[]);return this.fromFastBuffer(e.resbuf)}static calcrecovery(e,t,n){return new de().fromObject({sig:e,keyPair:new se().fromObject({pubKey:t}),hashBuf:n}).calcrecovery().sig}static async asyncCalcrecovery(e,t,n){const v=await G.asyncClassMethod(de,"calcrecovery",[e,t,n]);return new ce().fromFastBuffer(v.resbuf)}fromString(e){const t=JSON.parse(e);return t.hashBuf&&(this.hashBuf=Buffer.from(t.hashBuf,"hex")),t.keyPair&&(this.keyPair=new se().fromString(t.keyPair)),t.sig&&(this.sig=new ce().fromString(t.sig)),t.k&&(this.k=new a(t.k,10)),this}randomK(){const e=Y.getN();let t;do t=new a().fromBuffer(be.getRandomBuffer(32));while(!(t.lt(e)&&t.gt(0)));return this.k=t,this}deterministicK(e){let t=Buffer.alloc(32);t.fill(1);let n=Buffer.alloc(32);n.fill(0);const v=this.keyPair.privKey.bn.toBuffer({size:32});n=X.sha256Hmac(Buffer.concat([t,Buffer.from([0]),v,this.hashBuf]),n),t=X.sha256Hmac(t,n),n=X.sha256Hmac(Buffer.concat([t,Buffer.from([1]),v,this.hashBuf]),n),t=X.sha256Hmac(t,n),t=X.sha256Hmac(t,n);let M=new a().fromBuffer(t);const W=Y.getN();e===void 0&&(e=0);for(let ee=0;ee<e||!(M.lt(W)&&M.gt(0));ee++)n=X.sha256Hmac(Buffer.concat([t,Buffer.from([0])]),n),t=X.sha256Hmac(t,n),t=X.sha256Hmac(t,n),M=new a().fromBuffer(t);return this.k=M,this}sig2PubKey(){const e=this.sig.recovery;if(!(e===0||e===1||e===2||e===3))throw new Error("i must be equal to 0, 1, 2, or 3");const t=new a().fromBuffer(this.hashBuf),n=this.sig.r,v=this.sig.s,M=e&1,W=e>>1,ee=Y.getN(),ue=Y.getG(),le=W?n.add(ee):n,Ae=Y.fromX(M,le);let _e="";try{Ae.mul(ee)}catch(tt){_e=tt.message}if(_e!=="point mul out of range")throw new Error("nR is not a valid curve point");const Ie=t.neg().umod(ee),Ge=n.invm(ee),Fe=Ae.mul(v).add(ue.mul(Ie)).mul(Ge),Le=new T(Fe);return Le.compressed=this.sig.compressed,Le.validate(),Le}async asyncSig2PubKey(){const e=await G.asyncObjectMethod(this,"sig2PubKey",[]);return T.fromFastBuffer(e.resbuf)}static sig2PubKey(e,t){return new de().fromObject({sig:e,hashBuf:t}).sig2PubKey()}static async asyncSig2PubKey(e,t){return await new de().fromObject({sig:e,hashBuf:t}).asyncSig2PubKey()}verifyStr(e=!0){if(!Buffer.isBuffer(this.hashBuf)||this.hashBuf.length!==32)return"hashBuf must be a 32 byte buffer";try{this.keyPair.pubKey.validate()}catch(Ae){return"Invalid pubKey: "+Ae}const t=this.sig.r,n=this.sig.s;if(!(t.gt(0)&&t.lt(Y.getN()))||!(n.gt(0)&&n.lt(Y.getN())))return"r and s not in range";if(e&&!this.sig.hasLowS())return"s is too high and does not satisfy low s contraint - see bip 62";const v=new a().fromBuffer(this.hashBuf,this.endian?{endian:this.endian}:void 0),M=Y.getN(),W=n.invm(M),ee=W.mul(v).mod(M),ue=W.mul(t).mod(M),le=Y.getG().mulAdd(ee,this.keyPair.pubKey.point,ue);return le.isInfinity()?"p is infinity":le.getX().mod(M).cmp(t)!==0?"Invalid signature":!1}sign(){const e=this.endian==="little"?new S(this.hashBuf).readReverse():this.hashBuf,t=this.keyPair.privKey,n=t.bn;if(!e||!t||!n)throw new Error("invalid parameters");if(!Buffer.isBuffer(e)||e.length!==32)throw new Error("hashBuf must be a 32 byte buffer");const v=Y.getN(),M=Y.getG(),W=new a().fromBuffer(e);let ee=0,ue,le,Ae,_e;do(!this.k||ee>0)&&this.deterministicK(ee),ee++,ue=this.k,le=M.mul(ue),Ae=le.getX().mod(v),_e=ue.invm(v).mul(W.add(n.mul(Ae))).mod(v);while(Ae.cmp(0)<=0||_e.cmp(0)<=0);return _e.gt(new a().fromBuffer(Buffer.from("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0","hex")))&&(_e=Y.getN().sub(_e)),this.sig=ce.fromObject({r:Ae,s:_e,compressed:this.keyPair.pubKey.compressed}),this}async asyncSign(){const e=await G.asyncObjectMethod(this,"sign",[]);return this.fromFastBuffer(e.resbuf)}signRandomK(){return this.randomK(),this.sign()}toString(){const e={};return this.hashBuf&&(e.hashBuf=this.hashBuf.toString("hex")),this.keyPair&&(e.keyPair=this.keyPair.toString()),this.sig&&(e.sig=this.sig.toString()),this.k&&(e.k=this.k.toString()),JSON.stringify(e)}verify(e=!0){return this.verifyStr(e)?this.verified=!1:this.verified=!0,this}async asyncVerify(e=!0){const t=await G.asyncObjectMethod(this,"verify",[e]);return this.fromFastBuffer(t.resbuf)}static sign(e,t,n){return new de().fromObject({hashBuf:e,endian:n,keyPair:t}).sign().sig}static async asyncSign(e,t,n){const v=new de().fromObject({hashBuf:e,endian:n,keyPair:t});return await v.asyncSign(),v.sig}static verify(e,t,n,v,M=!0){return new de().fromObject({hashBuf:e,endian:v,sig:t,keyPair:new se().fromObject({pubKey:n})}).verify(M).verified}static async asyncVerify(e,t,n,v,M=!0){const W=new de().fromObject({hashBuf:e,endian:v,sig:t,keyPair:new se().fromObject({pubKey:n})});return await W.asyncVerify(M),W.verified}}class Me extends y{static{r(this,"Bsm")}constructor(e,t,n,v,M){super({messageBuf:e,keyPair:t,sig:n,address:v,verified:M})}static magicHash(e){if(!Buffer.isBuffer(e))throw new Error("messageBuf must be a buffer");const t=new g;t.writeVarIntNum(Me.magicBytes.length),t.write(Me.magicBytes),t.writeVarIntNum(e.length),t.write(e);const n=t.toBuffer();return X.sha256Sha256(n)}static async asyncMagicHash(e){const t=[e];return(await G.asyncClassMethod(Me,"magicHash",t)).resbuf}static sign(e,t){const n=new Me(e,t);return n.sign(),n.sig.toCompact().toString("base64")}static async asyncSign(e,t){const n=[e,t],v=await G.asyncClassMethod(Me,"sign",n);return JSON.parse(v.resbuf.toString())}static verify(e,t,n){const v=Buffer.from(t,"base64"),M=new Me;return M.messageBuf=e,M.sig=new ce().fromCompact(v),M.address=n,M.verify().verified}static async asyncVerify(e,t,n){const v=[e,t,n],M=await G.asyncClassMethod(Me,"verify",v);return JSON.parse(M.resbuf.toString())}sign(){const e=Me.magicHash(this.messageBuf),t=new de().fromObject({hashBuf:e,keyPair:this.keyPair});return t.sign(),t.calcrecovery(),this.sig=t.sig,this}verify(){const e=Me.magicHash(this.messageBuf),t=new de;if(t.hashBuf=e,t.sig=this.sig,t.keyPair=new se,t.keyPair.pubKey=t.sig2PubKey(),!t.verify())return this.verified=!1,this;const n=new Q().fromPubKey(t.keyPair.pubKey,void 0,this.sig.compressed);return A(n.hashBuf,this.address.hashBuf)?this.verified=!0:this.verified=!1,this}}Me.magicBytes=Buffer.from(`Bitcoin Signed Message:
8
+ `);class Ee extends y{static{r(this,"BlockHeader")}constructor(e,t,n,v,M,W){super({versionBytesNum:e,prevBlockHashBuf:t,merkleRootBuf:n,time:v,bits:M,nonce:W})}fromJSON(e){return this.fromObject({versionBytesNum:e.versionBytesNum,prevBlockHashBuf:Buffer.from(e.prevBlockHashBuf,"hex"),merkleRootBuf:Buffer.from(e.merkleRootBuf,"hex"),time:e.time,bits:e.bits,nonce:e.nonce}),this}toJSON(){return{versionBytesNum:this.versionBytesNum,prevBlockHashBuf:this.prevBlockHashBuf.toString("hex"),merkleRootBuf:this.merkleRootBuf.toString("hex"),time:this.time,bits:this.bits,nonce:this.nonce}}fromBr(e){return this.versionBytesNum=e.readUInt32LE(),this.prevBlockHashBuf=e.read(32),this.merkleRootBuf=e.read(32),this.time=e.readUInt32LE(),this.bits=e.readUInt32LE(),this.nonce=e.readUInt32LE(),this}toBw(e){return e||(e=new g),e.writeUInt32LE(this.versionBytesNum),e.write(this.prevBlockHashBuf),e.write(this.merkleRootBuf),e.writeUInt32LE(this.time),e.writeUInt32LE(this.bits),e.writeUInt32LE(this.nonce),e}}class Oe extends y{static{r(this,"Merkle")}constructor(e,t,n,v){super({hashBuf:e,buf:t,merkle1:n,merkle2:v})}hash(){if(this.hashBuf)return this.hashBuf;if(this.buf)return X.sha256Sha256(this.buf);const e=this.merkle1.hash(),t=this.merkle2.hash();return this.buf=Buffer.concat([e,t]),X.sha256Sha256(this.buf)}fromBuffers(e){if(e.length<1)throw new Error("buffers must have a length");e=e.slice();const t=Math.log2(e.length);if(!Number.isInteger(t)){const W=e[e.length-1];var n=Math.pow(2,Math.ceil(t));for(let ee=e.length;ee<n;ee++)e.push(W)}const v=e.slice(0,e.length/2),M=e.slice(e.length/2);return this.fromBufferArrays(v,M),this}static fromBuffers(e){return new this().fromBuffers(e)}fromBufferArrays(e,t){if(e.length===1)return this.merkle1=new Oe(void 0,e[0]),this.merkle2=new Oe(void 0,t[0]),this;const n=e.slice(0,e.length/2),v=e.slice(e.length/2);this.merkle1=new Oe().fromBufferArrays(n,v);const M=t.slice(0,t.length/2),W=t.slice(t.length/2);return this.merkle2=new Oe().fromBufferArrays(M,W),this}static fromBufferArrays(e,t){return new this().fromBufferArrays(e,t)}leavesNum(){if(this.merkle1)return this.merkle1.leavesNum()+this.merkle2.leavesNum();if(this.buf)return 1;throw new Error("invalid number of leaves")}}class Ye extends y{static{r(this,"HashCache")}constructor(e,t,n){super(),this.fromObject({prevoutsHashBuf:e,sequenceHashBuf:t,outputsHashBuf:n})}fromBuffer(e){return this.fromJSON(JSON.parse(e.toString()))}toBuffer(){return Buffer.from(JSON.stringify(this.toJSON()))}fromJSON(e){return this.prevoutsHashBuf=e.prevoutsHashBuf?Buffer.from(e.prevoutsHashBuf,"hex"):void 0,this.sequenceHashBuf=e.sequenceHashBuf?Buffer.from(e.sequenceHashBuf,"hex"):void 0,this.outputsHashBuf=e.outputsHashBuf?Buffer.from(e.outputsHashBuf,"hex"):void 0,this}toJSON(){return{prevoutsHashBuf:this.prevoutsHashBuf?this.prevoutsHashBuf.toString("hex"):void 0,sequenceHashBuf:this.sequenceHashBuf?this.sequenceHashBuf.toString("hex"):void 0,outputsHashBuf:this.outputsHashBuf?this.outputsHashBuf.toString("hex"):void 0}}}class Pe extends y{static{r(this,"VarInt")}constructor(e){super({buf:e})}fromJSON(e){return this.fromObject({buf:Buffer.from(e,"hex")}),this}toJSON(){return this.buf.toString("hex")}fromBuffer(e){return this.buf=e,this}fromBr(e){return this.buf=e.readVarIntBuf(),this}fromBn(e){return this.buf=new g().writeVarIntBn(e).toBuffer(),this}static fromBn(e){return new this().fromBn(e)}fromNumber(e){return this.buf=new g().writeVarIntNum(e).toBuffer(),this}static fromNumber(e){return new this().fromNumber(e)}toBuffer(){return this.buf}toBn(){return new S(this.buf).readVarIntBn()}toNumber(){return new S(this.buf).readVarIntNum()}}class xe extends y{static{r(this,"TxIn")}constructor(e,t,n,v,M=4294967295){super({txHashBuf:e,txOutNum:t,scriptVi:n,script:v,nSequence:M})}setScript(e){return this.scriptVi=Pe.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t,n,v){return this.fromObject({txHashBuf:e,txOutNum:t,nSequence:v}),this.setScript(n),this}static fromProperties(e,t,n,v){return new this().fromProperties(e,t,n,v)}fromJSON(e){return this.fromObject({txHashBuf:typeof e.txHashBuf<"u"?Buffer.from(e.txHashBuf,"hex"):void 0,txOutNum:e.txOutNum,scriptVi:typeof e.scriptVi<"u"?Pe.fromJSON(e.scriptVi):void 0,script:typeof e.script<"u"?q.fromJSON(e.script):void 0,nSequence:e.nSequence}),this}toJSON(){return{txHashBuf:typeof this.txHashBuf<"u"?this.txHashBuf.toString("hex"):void 0,txOutNum:this.txOutNum,scriptVi:typeof this.scriptVi<"u"?this.scriptVi.toJSON():void 0,script:typeof this.script<"u"?this.script.toJSON():void 0,nSequence:this.nSequence}}fromBr(e){return this.txHashBuf=e.read(32),this.txOutNum=e.readUInt32LE(),this.scriptVi=Pe.fromBuffer(e.readVarIntBuf()),this.script=q.fromBuffer(e.read(this.scriptVi.toNumber())),this.nSequence=e.readUInt32LE(),this}toBw(e){return e||(e=new g),e.write(this.txHashBuf),e.writeUInt32LE(this.txOutNum),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e.writeUInt32LE(this.nSequence),e}fromPubKeyHashTxOut(e,t,n,v){const M=new q;if(n.script.isPubKeyHashOut())M.writeOpCode(s.OP_0),v?M.writeBuffer(v.toBuffer()):M.writeOpCode(s.OP_0);else throw new Error("txOut must be of type pubKeyHash");return this.txHashBuf=e,this.txOutNum=t,this.setScript(M),this}hasNullInput(){return this.txHashBuf.toString("hex")==="0000000000000000000000000000000000000000000000000000000000000000"&&this.txOutNum===4294967295}setNullInput(){this.txHashBuf=Buffer.alloc(32),this.txHashBuf.fill(0),this.txOutNum=4294967295}}xe.LOCKTIME_VERIFY_SEQUENCE=1,xe.SEQUENCE_FINAL=4294967295,xe.SEQUENCE_LOCKTIME_DISABLE_FLAG=1<<31,xe.SEQUENCE_LOCKTIME_TYPE_FLAG=1<<22,xe.SEQUENCE_LOCKTIME_MASK=65535,xe.SEQUENCE_LOCKTIME_GRANULARITY=9;class De extends y{static{r(this,"TxOut")}constructor(e,t,n){super({valueBn:e,scriptVi:t,script:n})}setScript(e){return this.scriptVi=Pe.fromNumber(e.toBuffer().length),this.script=e,this}fromProperties(e,t){return this.fromObject({valueBn:e}),this.setScript(t),this}static fromProperties(e,t){return new this().fromProperties(e,t)}fromJSON(e){return this.fromObject({valueBn:new a().fromJSON(e.valueBn),scriptVi:new Pe().fromJSON(e.scriptVi),script:new q().fromJSON(e.script)}),this}toJSON(){return{valueBn:this.valueBn.toJSON(),scriptVi:this.scriptVi.toJSON(),script:this.script.toJSON()}}fromBr(e){return this.valueBn=e.readUInt64LEBn(),this.scriptVi=Pe.fromNumber(e.readVarIntNum()),this.script=new q().fromBuffer(e.read(this.scriptVi.toNumber())),this}toBw(e){return e||(e=new g),e.writeUInt64LEBn(this.valueBn),e.write(this.scriptVi.buf),e.write(this.script.toBuffer()),e}}class Re extends y{static{r(this,"Tx")}constructor(e=1,t=Pe.fromNumber(0),n=[],v=Pe.fromNumber(0),M=[],W=0){super({versionBytesNum:e,txInsVi:t,txIns:n,txOutsVi:v,txOuts:M,nLockTime:W})}fromJSON(e){const t=[];e.txIns.forEach(function(v){t.push(new xe().fromJSON(v))});const n=[];return e.txOuts.forEach(function(v){n.push(new De().fromJSON(v))}),this.fromObject({versionBytesNum:e.versionBytesNum,txInsVi:new Pe().fromJSON(e.txInsVi),txIns:t,txOutsVi:new Pe().fromJSON(e.txOutsVi),txOuts:n,nLockTime:e.nLockTime}),this}toJSON(){const e=[];this.txIns.forEach(function(n){e.push(n.toJSON())});const t=[];return this.txOuts.forEach(function(n){t.push(n.toJSON())}),{versionBytesNum:this.versionBytesNum,txInsVi:this.txInsVi.toJSON(),txIns:e,txOutsVi:this.txOutsVi.toJSON(),txOuts:t,nLockTime:this.nLockTime}}fromBr(e){this.versionBytesNum=e.readUInt32LE(),this.txInsVi=new Pe(e.readVarIntBuf());const t=this.txInsVi.toNumber();this.txIns=[];for(let v=0;v<t;v++)this.txIns.push(new xe().fromBr(e));this.txOutsVi=new Pe(e.readVarIntBuf());const n=this.txOutsVi.toNumber();this.txOuts=[];for(let v=0;v<n;v++)this.txOuts.push(new De().fromBr(e));return this.nLockTime=e.readUInt32LE(),this}toBw(e){e||(e=new g),e.writeUInt32LE(this.versionBytesNum),e.write(this.txInsVi.buf);for(let t=0;t<this.txIns.length;t++)this.txIns[t].toBw(e);e.write(this.txOutsVi.buf);for(let t=0;t<this.txOuts.length;t++)this.txOuts[t].toBw(e);return e.writeUInt32LE(this.nLockTime),e}hashPrevouts(){const e=new g;for(const t in this.txIns){const n=this.txIns[t];e.write(n.txHashBuf),e.writeUInt32LE(n.txOutNum)}return X.sha256Sha256(e.toBuffer())}hashSequence(){const e=new g;for(const t in this.txIns){const n=this.txIns[t];e.writeUInt32LE(n.nSequence)}return X.sha256Sha256(e.toBuffer())}hashOutputs(){const e=new g;for(const t in this.txOuts){const n=this.txOuts[t];e.write(n.toBuffer())}return X.sha256Sha256(e.toBuffer())}sighash(e,t,n,v,M=Re.SCRIPT_ENABLE_SIGHASH_FORKID,W=new Ye){const ee=this.sighashPreimage(e,t,n,v,M,W);return ee.compare(Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?ee:new S(X.sha256Sha256(ee)).readReverse()}async asyncSighash(e,t,n,v,M=0,W={}){return(await G.asyncObjectMethod(this,"sighash",[e,t,n,v,M,W])).resbuf}sighashPreimage(e,t,n,v,M=Re.SCRIPT_ENABLE_SIGHASH_FORKID,W=new Ye){if(e&ce.SIGHASH_FORKID&&M&Re.SCRIPT_ENABLE_SIGHASH_FORKID){let le=Buffer.alloc(32,0),Ae=Buffer.alloc(32,0),_e=Buffer.alloc(32,0);e&ce.SIGHASH_ANYONECANPAY||(le=W.prevoutsHashBuf?W.prevoutsHashBuf:W.prevoutsHashBuf=this.hashPrevouts()),!(e&ce.SIGHASH_ANYONECANPAY)&&(e&31)!==ce.SIGHASH_SINGLE&&(e&31)!==ce.SIGHASH_NONE&&(Ae=W.sequenceHashBuf?W.sequenceHashBuf:W.sequenceHashBuf=this.hashSequence()),(e&31)!==ce.SIGHASH_SINGLE&&(e&31)!==ce.SIGHASH_NONE?_e=W.outputsHashBuf?W.outputsHashBuf:W.outputsHashBuf=this.hashOutputs():(e&31)===ce.SIGHASH_SINGLE&&t<this.txOuts.length&&(_e=X.sha256Sha256(this.txOuts[t].toBuffer()));const Ie=new g;return Ie.writeUInt32LE(this.versionBytesNum),Ie.write(le),Ie.write(Ae),Ie.write(this.txIns[t].txHashBuf),Ie.writeUInt32LE(this.txIns[t].txOutNum),Ie.writeVarIntNum(n.toBuffer().length),Ie.write(n.toBuffer()),Ie.writeUInt64LEBn(v),Ie.writeUInt32LE(this.txIns[t].nSequence),Ie.write(_e),Ie.writeUInt32LE(this.nLockTime),Ie.writeUInt32LE(e>>>0),Ie.toBuffer()}const ee=this.cloneByBuffer();n=new q().fromBuffer(n.toBuffer()),n.removeCodeseparators();for(let le=0;le<ee.txIns.length;le++)ee.txIns[le]=xe.fromBuffer(ee.txIns[le].toBuffer()).setScript(new q);if(ee.txIns[t]=xe.fromBuffer(ee.txIns[t].toBuffer()).setScript(n),(e&31)===ce.SIGHASH_NONE){ee.txOuts.length=0,ee.txOutsVi=Pe.fromNumber(0);for(let le=0;le<ee.txIns.length;le++)le!==t&&(ee.txIns[le].nSequence=0)}else if((e&31)===ce.SIGHASH_SINGLE){if(t>ee.txOuts.length-1)return Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex");ee.txOuts.length=t+1,ee.txOutsVi=Pe.fromNumber(t+1);for(let le=0;le<ee.txOuts.length;le++)le<t&&(ee.txOuts[le]=De.fromProperties(new a().fromBuffer(Buffer.from("ffffffffffffffff","hex")),new q));for(let le=0;le<ee.txIns.length;le++)le!==t&&(ee.txIns[le].nSequence=0)}return e&ce.SIGHASH_ANYONECANPAY&&(ee.txIns[0]=ee.txIns[t],ee.txIns.length=1,ee.txInsVi=Pe.fromNumber(1)),new g().write(ee.toBuffer()).writeInt32LE(e).toBuffer()}async asyncSighashPreimage(e,t,n,v,M=0,W={}){return(await G.asyncObjectMethod(this,"sighashPreimage",[e,t,n,v,M,W])).resbuf}sign(e,t=ce.SIGHASH_ALL|ce.SIGHASH_FORKID,n,v,M,W=Re.SCRIPT_ENABLE_SIGHASH_FORKID,ee={}){const ue=this.sighash(t,n,v,M,W,ee);return this.preImageBuf=ue,de.sign(ue,e,"little").fromObject({nHashType:t})}async asyncSign(e,t=ce.SIGHASH_ALL|ce.SIGHASH_FORKID,n,v,M,W=Re.SCRIPT_ENABLE_SIGHASH_FORKID,ee={}){const ue=await G.asyncObjectMethod(this,"sign",[e,t,n,v,M,W,ee]);return new ce().fromFastBuffer(ue.resbuf)}verify(e,t,n,v,M=!1,W,ee=Re.SCRIPT_ENABLE_SIGHASH_FORKID,ue={}){const le=this.sighash(e.nHashType,n,v,W,ee,ue);return de.verify(le,e,t,"little",M)}async asyncVerify(e,t,n,v,M=!1,W,ee=Re.SCRIPT_ENABLE_SIGHASH_FORKID,ue={}){const le=await G.asyncObjectMethod(this,"verify",[e,t,n,v,M,W,ee,ue]);return JSON.parse(le.resbuf.toString())}hash(){return X.sha256Sha256(this.toBuffer())}async asyncHash(){return(await G.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new S(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await G.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}addTxIn(e,t,n,v){let M;return e instanceof xe?M=e:M=new xe().fromObject({txHashBuf:e,txOutNum:t,nSequence:v}).setScript(n),this.txIns.push(M),this.txInsVi=Pe.fromNumber(this.txInsVi.toNumber()+1),this}addTxOut(e,t){let n;return e instanceof De?n=e:n=new De().fromObject({valueBn:e}).setScript(t),this.txOuts.push(n),this.txOutsVi=Pe.fromNumber(this.txOutsVi.toNumber()+1),this}isCoinbase(){return this.txIns.length===1&&this.txIns[0].hasNullInput()}sort(){return this.txIns.sort((e,t)=>new S(e.txHashBuf).readReverse().compare(new S(t.txHashBuf).readReverse())||e.txOutNum-t.txOutNum),this.txOuts.sort((e,t)=>e.valueBn.sub(t.valueBn).toNumber()||e.script.toBuffer().compare(t.script.toBuffer())),this}}Re.MAX_MONEY=21e6*1e8,Re.SCRIPT_ENABLE_SIGHASH_FORKID=65536;class Ce extends y{static{r(this,"Block")}constructor(e,t,n){super({blockHeader:e,txsVi:t,txs:n})}fromJSON(e){const t=[];return e.txs.forEach(function(n){t.push(new Re().fromJSON(n))}),this.fromObject({blockHeader:new Ee().fromJSON(e.blockHeader),txsVi:new Pe().fromJSON(e.txsVi),txs:t}),this}toJSON(){const e=[];return this.txs.forEach(function(t){e.push(t.toJSON())}),{blockHeader:this.blockHeader.toJSON(),txsVi:this.txsVi.toJSON(),txs:e}}fromBr(e){this.blockHeader=new Ee().fromBr(e),this.txsVi=new Pe(e.readVarIntBuf());const t=this.txsVi.toNumber();this.txs=[];for(let n=0;n<t;n++)this.txs.push(new Re().fromBr(e));return this}toBw(e){e||(e=new g),e.write(this.blockHeader.toBuffer()),e.write(this.txsVi.buf);const t=this.txsVi.toNumber();for(let n=0;n<t;n++)this.txs[n].toBw(e);return e}hash(){return X.sha256Sha256(this.blockHeader.toBuffer())}async asyncHash(){return(await G.asyncObjectMethod(this,"hash",[])).resbuf}id(){return new S(this.hash()).readReverse().toString("hex")}async asyncId(){const e=await G.asyncObjectMethod(this,"id",[]);return JSON.parse(e.resbuf.toString())}verifyMerkleRoot(){const e=this.txs.map(n=>n.toBuffer()),t=Oe.fromBuffers(e).hash();return Buffer.compare(t,this.blockHeader.merkleRootBuf)}static iterateTxs(e){const t=new S(e),n=new Ee().fromBr(t),v=new Pe(t.readVarIntBuf()),M=v.toNumber();return{blockHeader:n,txsVi:v,txsNum:M,*[Symbol.iterator](){for(let W=0;W<M;W++)yield new Re().fromBr(t)}}}}Ce.MAX_BLOCK_SIZE=1e6;const We=r(E=>{if(E.length===0)return E;const e=E[E.length-1];if(e&127)return E;if(E.length===1)return[];if(E[E.length-2]&128)return E;for(let t=E.length-1;t>0;t--)if(E[t-1]!==0)return E[t-1]&128?(E[t]=e,E.slice(0,t+1)):(E[t-1]|=e,E.slice(0,t));return[]},"minimallyEncode");class p extends y{static{r(this,"Interp")}constructor(e,t,n,v=[],M=[],W=0,ee=0,ue=0,le=[],Ae="",_e=p.defaultFlags,Ie=new a(0)){super({script:e,tx:t,nIn:n,stack:v,altStack:M,pc:W,pBeginCodeHash:ee,nOpCount:ue,ifStack:le,errStr:Ae,flags:_e,valueBn:Ie})}initialize(){return this.script=new q,this.stack=[],this.altStack=[],this.pc=0,this.pBeginCodeHash=0,this.nOpCount=0,this.ifStack=[],this.errStr="",this.flags=p.defaultFlags,this.scriptLimit=1e7,this.stackLimit=1e7,this}fromJSON(e){return this.fromJSONNoTx(e),this.tx=e.tx?new Re().fromJSON(e.tx):void 0,this}fromJSONNoTx(e){return this.fromObject({script:e.script!==void 0?new q().fromJSON(e.script):void 0,nIn:e.nIn}),this.stack=[],e.stack.forEach(function(t){this.stack.push(Buffer.from(t,"hex"))}.bind(this)),this.altStack=[],e.altStack.forEach(function(t){this.altStack.push(Buffer.from(t,"hex"))}.bind(this)),this.fromObject({pc:e.pc,pBeginCodeHash:e.pBeginCodeHash,nOpCount:e.nOpCount,ifStack:e.ifStack,errStr:e.errStr,flags:e.flags}),this}fromBr(e){let t=e.readVarIntNum(),n=e.read(t);this.fromJSONNoTx(JSON.parse(n.toString()));let v=e.readVarIntNum();if(v>0){let M=e.read(v);this.tx=new Re().fromFastBuffer(M)}return this}toJSON(){let e=this.toJSONNoTx();return e.tx=this.tx?this.tx.toJSON():void 0,e}toJSONNoTx(){let e=[];this.stack.forEach(function(n){e.push(n.toString("hex"))});let t=[];return this.altStack.forEach(function(n){t.push(n.toString("hex"))}),{script:this.script?this.script.toJSON():void 0,nIn:this.nIn,stack:e,altStack:t,pc:this.pc,pBeginCodeHash:this.pBeginCodeHash,nOpCount:this.nOpCount,ifStack:this.ifStack,errStr:this.errStr,flags:this.flags,preImage:this?.preImage?this.preImage.toString("hex"):"",hashBuf:this?.hashBuf?this.hashBuf.toString("hex"):""}}toBw(e){e||(e=new g);let t=Buffer.from(JSON.stringify(this.toJSONNoTx()));if(e.writeVarIntNum(t.length),e.write(t),this.tx){let n=this.tx.toFastBuffer();e.writeVarIntNum(n.length),e.write(n)}else e.writeVarIntNum(0);return e}static getFlags(e){let t=0;return e.indexOf("NONE")!==-1&&(t=t|p.SCRIPT_VERIFY_NONE),e.indexOf("P2SH")!==-1&&(t=t|p.SCRIPT_VERIFY_P2SH),e.indexOf("STRICTENC")!==-1&&(t=t|p.SCRIPT_VERIFY_STRICTENC),e.indexOf("DERSIG")!==-1&&(t=t|p.SCRIPT_VERIFY_DERSIG),e.indexOf("LOW_S")!==-1&&(t=t|p.SCRIPT_VERIFY_LOW_S),e.indexOf("NULLDUMMY")!==-1&&(t=t|p.SCRIPT_VERIFY_NULLDUMMY),e.indexOf("SIGPUSHONLY")!==-1&&(t=t|p.SCRIPT_VERIFY_SIGPUSHONLY),e.indexOf("MINIMALDATA")!==-1&&(t=t|p.SCRIPT_VERIFY_MINIMALDATA),e.indexOf("DISCOURAGE_UPGRADABLE_NOPS")!==-1&&(t=t|p.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS),e.indexOf("CLEANSTACK")!==-1&&(t=t|p.SCRIPT_VERIFY_CLEANSTACK),e.indexOf("CHECKLOCKTIMEVERIFY")!==-1&&(t=t|p.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY),e.indexOf("CHECKSEQUENCEVERIFY")!==-1&&(t=t|p.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY),e.indexOf("SIGHASH_FORKID")!==-1&&(t=t|p.SCRIPT_ENABLE_SIGHASH_FORKID),t}static castToBool(e){for(let t=0;t<e.length;t++)if(e[t]!==0)return!(t===e.length-1&&e[t]===128);return!1}checkSigEncoding(e){if(e.length===0)return!0;if(this.flags&(p.SCRIPT_VERIFY_DERSIG|p.SCRIPT_VERIFY_LOW_S|p.SCRIPT_VERIFY_STRICTENC)&&!ce.IsTxDer(e))return this.errStr="SCRIPT_ERR_SIG_DER",!1;if(this.flags&p.SCRIPT_VERIFY_LOW_S){if(!new ce().fromTxFormat(e).hasLowS())return this.errStr="SCRIPT_ERR_SIG_DER",!1}else if(this.flags&p.SCRIPT_VERIFY_STRICTENC&&!new ce().fromTxFormat(e).hasDefinedHashType())return this.errStr="SCRIPT_ERR_SIG_HASHTYPE",!1;return!0}checkPubKeyEncoding(e){return this.flags&p.SCRIPT_VERIFY_STRICTENC&&!T.isCompressedOrUncompressed(e)?(this.errStr="SCRIPT_ERR_PUBKEYTYPE",!1):!0}checkLockTime(e){return!(!(this.tx.nLockTime<p.LOCKTIME_THRESHOLD&&e<p.LOCKTIME_THRESHOLD||this.tx.nLockTime>=p.LOCKTIME_THRESHOLD&&e>=p.LOCKTIME_THRESHOLD)||e>this.tx.nLockTime||xe.SEQUENCE_FINAL===this.tx.txIns[this.nIn].nSequence)}checkSequence(e){let t=this.tx.txIns[this.nIn].nSequence;if(this.tx.versionBytesNum<2||t&xe.SEQUENCE_LOCKTIME_DISABLE_FLAG)return!1;let n=xe.SEQUENCE_LOCKTIME_TYPE_FLAG|xe.SEQUENCE_LOCKTIME_MASK,v=t&n,M=e&n;return!(!(v<xe.SEQUENCE_LOCKTIME_TYPE_FLAG&&M<xe.SEQUENCE_LOCKTIME_TYPE_FLAG||v>=xe.SEQUENCE_LOCKTIME_TYPE_FLAG&&M>=xe.SEQUENCE_LOCKTIME_TYPE_FLAG)||M>v)}*eval(){this.script.toBuffer().length>this.scriptLimit&&(this.errStr="SCRIPT_ERR_SCRIPT_SIZE",yield!1);try{for(;this.pc<this.script.chunks.length;){let e=this.step();e?yield e:yield!1}this.stack.length+this.altStack.length>this.stackLimit&&(this.errStr="SCRIPT_ERR_STACK_SIZE",yield!1)}catch(e){this.errStr="SCRIPT_ERR_UNKNOWN_ERROR: "+e,yield!1}this.ifStack.length>0&&(this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",yield!1),yield!0}step(){let e=(this.flags&p.SCRIPT_VERIFY_MINIMALDATA)!==0,t=!(this.ifStack.indexOf(!1)+1),n=this.script.chunks[this.pc];this.pc++;let v=n.opCodeNum;if(v===void 0)return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1;if(n.buf&&n.buf.length>p.MAX_SCRIPT_ELEMENT_SIZE)return this.errStr="SCRIPT_ERR_PUSH_SIZE",!1;if(v>s.OP_16&&++this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;if(v===s.OP_2MUL||v===s.OP_2DIV)return this.errStr="SCRIPT_ERR_DISABLED_OPCODE",!1;if(t&&v>=0&&v<=s.OP_PUSHDATA4){if(e&&!this.script.checkMinimalPush(this.pc-1))return this.errStr="SCRIPT_ERR_MINIMALDATA",!1;if(!n.buf)this.stack.push(p.false);else{if(n.len!==n.buf.length)throw new Error("LEngth of push value not equal to length of data");this.stack.push(n.buf)}}else if(t||s.OP_IF<=v&&v<=s.OP_ENDIF)switch(v){case s.OP_1NEGATE:case s.OP_1:case s.OP_2:case s.OP_3:case s.OP_4:case s.OP_5:case s.OP_6:case s.OP_7:case s.OP_8:case s.OP_9:case s.OP_10:case s.OP_11:case s.OP_12:case s.OP_13:case s.OP_14:case s.OP_15:case s.OP_16:{let fe=v-(s.OP_1-1),ve=new a(fe).toScriptNumBuffer();this.stack.push(ve)}break;case s.OP_NOP:break;case s.OP_CHECKLOCKTIMEVERIFY:{if(!(this.flags&p.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY)){if(this.flags&p.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-1],Be=new a().fromScriptNumBuffer(fe,e,5).toNumber();if(Be<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(!this.checkLockTime(Be))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_CHECKSEQUENCEVERIFY:{if(!(this.flags&p.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY)){if(this.flags&p.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break}if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-1],Be=new a().fromScriptNumBuffer(fe,e,5).toNumber();if(Be<0)return this.errStr="SCRIPT_ERR_NEGATIVE_LOCKTIME",!1;if(Be&xe.SEQUENCE_LOCKTIME_DISABLE_FLAG)break;if(!this.checkSequence(Be))return this.errStr="SCRIPT_ERR_UNSATISFIED_LOCKTIME",!1}break;case s.OP_NOP1:case s.OP_NOP3:case s.OP_NOP4:case s.OP_NOP5:case s.OP_NOP6:case s.OP_NOP7:case s.OP_NOP8:case s.OP_NOP9:case s.OP_NOP10:if(this.flags&p.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)return this.errStr="SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS",!1;break;case s.OP_IF:case s.OP_NOTIF:{let fe=!1;if(t){if(this.stack.length<1)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;let ve=this.stack.pop();fe=p.castToBool(ve),v===s.OP_NOTIF&&(fe=!fe)}this.ifStack.push(fe)}break;case s.OP_ELSE:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack[this.ifStack.length-1]=!this.ifStack[this.ifStack.length-1];break;case s.OP_ENDIF:if(this.ifStack.length===0)return this.errStr="SCRIPT_ERR_UNBALANCED_CONDITIONAL",!1;this.ifStack.pop();break;case s.OP_VERIFY:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-1];if(p.castToBool(fe))this.stack.pop();else return this.errStr="SCRIPT_ERR_VERIFY",!1}break;case s.OP_RETURN:return this.errStr="SCRIPT_ERR_OP_RETURN",!1;case s.OP_TOALTSTACK:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.altStack.push(this.stack.pop());break;case s.OP_FROMALTSTACK:if(this.altStack.length<1)return this.errStr="SCRIPT_ERR_INVALID_ALTSTACK_OPERATION",!1;this.stack.push(this.altStack.pop());break;case s.OP_2DROP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop(),this.stack.pop();break;case s.OP_2DUP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-2],ve=this.stack[this.stack.length-1];this.stack.push(fe),this.stack.push(ve)}break;case s.OP_3DUP:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-3],ve=this.stack[this.stack.length-2],Be=this.stack[this.stack.length-1];this.stack.push(fe),this.stack.push(ve),this.stack.push(Be)}break;case s.OP_2OVER:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-4],ve=this.stack[this.stack.length-3];this.stack.push(fe),this.stack.push(ve)}break;case s.OP_2ROT:{if(this.stack.length<6)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack.splice(this.stack.length-6,2);this.stack.push(fe[0]),this.stack.push(fe[1])}break;case s.OP_2SWAP:{if(this.stack.length<4)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack.splice(this.stack.length-4,2);this.stack.push(fe[0]),this.stack.push(fe[1])}break;case s.OP_IFDUP:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-1];p.castToBool(fe)&&this.stack.push(fe)}break;case s.OP_DEPTH:{let fe=new a(this.stack.length).toScriptNumBuffer();this.stack.push(fe)}break;case s.OP_DROP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.pop();break;case s.OP_DUP:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-1]);break;case s.OP_NIP:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,1);break;case s.OP_OVER:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.push(this.stack[this.stack.length-2]);break;case s.OP_PICK:case s.OP_ROLL:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-1],Be=new a().fromScriptNumBuffer(fe,e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(this.stack.pop(),Be<0||Be>=this.stack.length)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;fe=this.stack[this.stack.length-Be-1],v===s.OP_ROLL&&this.stack.splice(this.stack.length-Be-1,1),this.stack.push(fe)}break;case s.OP_ROT:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-3],ve=this.stack[this.stack.length-2],Be=this.stack[this.stack.length-1];this.stack[this.stack.length-3]=ve,this.stack[this.stack.length-2]=Be,this.stack[this.stack.length-1]=fe}break;case s.OP_SWAP:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-2],ve=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=ve,this.stack[this.stack.length-1]=fe}break;case s.OP_TUCK:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;this.stack.splice(this.stack.length-2,0,this.stack[this.stack.length-1]);break;case s.OP_SIZE:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=new a(this.stack[this.stack.length-1].length);this.stack.push(fe.toScriptNumBuffer())}break;case s.OP_OR:case s.OP_AND:case s.OP_XOR:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let M=this.stack[this.stack.length-2],W=this.stack[this.stack.length-1];if(M.length!=W.length)return this.errStr="SCRIPT_ERR_INVALID_OPERAND_SIZE",!1;switch(v){case s.OP_AND:for(let fe=0;fe<M.length;fe++)M[fe]&=W[fe];break;case s.OP_OR:for(let fe=0;fe<M.length;fe++)M[fe]|=W[fe];break;case s.OP_XOR:for(let fe=0;fe<M.length;fe++)M[fe]^=W[fe];break}this.stack.pop();break;case s.OP_INVERT:if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ee=this.stack[this.stack.length-1];for(let fe=0;fe<ee.length;fe++)ee[fe]=~ee[fe];break;case s.OP_LSHIFT:case s.OP_RSHIFT:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-2],ve=new a(fe),Be=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();if(Be<0)return this.errStr="SCRIPT_ERR_INVALID_NUMBER_RANGE",!1;switch(this.stack.pop(),this.stack.pop(),v){case s.OP_LSHIFT:ve=ve.ushln(Be);break;case s.OP_RSHIFT:ve=ve.ushrn(Be);break}let He=ve.toBuffer().slice(-fe.length);He.length<fe.length&&(He=Buffer.concat([Buffer.alloc(fe.length-He.length),He])),this.stack.push(He);break}case s.OP_EQUAL:case s.OP_EQUALVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-2],ve=this.stack[this.stack.length-1],Be=A(fe,ve);if(this.stack.pop(),this.stack.pop(),this.stack.push(Be?p.true:p.false),v===s.OP_EQUALVERIFY)if(Be)this.stack.pop();else return this.errStr="SCRIPT_ERR_EQUALVERIFY",!1}break;case s.OP_1ADD:case s.OP_1SUB:case s.OP_NEGATE:case s.OP_ABS:case s.OP_NOT:case s.OP_0NOTEQUAL:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-1],ve=new a().fromScriptNumBuffer(fe,e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);switch(v){case s.OP_1ADD:ve=ve.add(1);break;case s.OP_1SUB:ve=ve.sub(1);break;case s.OP_NEGATE:ve=ve.neg();break;case s.OP_ABS:ve.lt(0)&&(ve=ve.neg());break;case s.OP_NOT:ve=new a(ve.eq(0)+0);break;case s.OP_0NOTEQUAL:ve=new a(ve.neq(0)+0);break}this.stack.pop(),this.stack.push(ve.toScriptNumBuffer())}break;case s.OP_ADD:case s.OP_SUB:case s.OP_MUL:case s.OP_DIV:case s.OP_MOD:case s.OP_BOOLAND:case s.OP_BOOLOR:case s.OP_NUMEQUAL:case s.OP_NUMEQUALVERIFY:case s.OP_NUMNOTEQUAL:case s.OP_LESSTHAN:case s.OP_GREATERTHAN:case s.OP_LESSTHANOREQUAL:case s.OP_GREATERTHANOREQUAL:case s.OP_MIN:case s.OP_MAX:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=new a().fromScriptNumBuffer(this.stack[this.stack.length-2],e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),ve=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Be=new a(0);switch(v){case s.OP_ADD:Be=fe.add(ve);break;case s.OP_SUB:Be=fe.sub(ve);break;case s.OP_MUL:Be=fe.mul(ve);break;case s.OP_DIV:if(ve==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;Be=fe.div(ve);break;case s.OP_MOD:if(ve==0)return this.errStr="SCRIPT_ERR_DIV_BY_ZERO",!1;Be=fe.mod(ve);break;case s.OP_BOOLAND:Be=new a((fe.neq(0)&&ve.neq(0))+0);break;case s.OP_BOOLOR:Be=new a((fe.neq(0)||ve.neq(0))+0);break;case s.OP_NUMEQUAL:Be=new a(fe.eq(ve)+0);break;case s.OP_NUMEQUALVERIFY:Be=new a(fe.eq(ve)+0);break;case s.OP_NUMNOTEQUAL:Be=new a(fe.neq(ve)+0);break;case s.OP_LESSTHAN:Be=new a(fe.lt(ve)+0);break;case s.OP_GREATERTHAN:Be=new a(fe.gt(ve)+0);break;case s.OP_LESSTHANOREQUAL:Be=new a(fe.leq(ve)+0);break;case s.OP_GREATERTHANOREQUAL:Be=new a(fe.geq(ve)+0);break;case s.OP_MIN:Be=fe.lt(ve)?fe:ve;break;case s.OP_MAX:Be=fe.gt(ve)?fe:ve;break}if(this.stack.pop(),this.stack.pop(),this.stack.push(Be.toScriptNumBuffer()),v===s.OP_NUMEQUALVERIFY)if(p.castToBool(this.stack[this.stack.length-1]))this.stack.pop();else return this.errStr="SCRIPT_ERR_NUMEQUALVERIFY",!1}break;case s.OP_WITHIN:{if(this.stack.length<3)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=new a().fromScriptNumBuffer(this.stack[this.stack.length-3],e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),ve=new a().fromScriptNumBuffer(this.stack[this.stack.length-2],e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),Be=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS),He=ve.leq(fe)&&fe.lt(Be);this.stack.pop(),this.stack.pop(),this.stack.pop(),this.stack.push(He?p.true:p.false)}break;case s.OP_RIPEMD160:case s.OP_SHA1:case s.OP_SHA256:case s.OP_HASH160:case s.OP_HASH256:{if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-1],ve;v===s.OP_RIPEMD160?ve=X.ripemd160(fe):v===s.OP_SHA1?ve=X.sha1(fe):v===s.OP_SHA256?ve=X.sha256(fe):v===s.OP_HASH160?ve=X.sha256Ripemd160(fe):v===s.OP_HASH256&&(ve=X.sha256Sha256(fe)),this.stack.pop(),this.stack.push(ve)}break;case s.OP_CODESEPARATOR:this.pBeginCodeHash=this.pc;break;case s.OP_CHECKSIG:case s.OP_CHECKSIGVERIFY:{if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let fe=this.stack[this.stack.length-2],ve=this.stack[this.stack.length-1];if(!this.checkSigEncoding(fe)||!this.checkPubKeyEncoding(ve))return!1;let Be=new q().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});if((fe.length>0?fe.readUInt8(fe.length-1):0)&ce.SIGHASH_FORKID){if(!(this.flags&p.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else Be.findAndDelete(new q().writeBuffer(fe));let Xe;try{let Qe=new ce().fromTxFormat(fe),Ze=new T().fromBuffer(ve,!1);this.nHashType=Qe.nHashType,typeof this.nIn>"u"&&console.log("Missing tx input nIn"),typeof this.tx>"u"&&(this.tx=new Re);try{this.preImage=this.tx.sighashPreimage(Qe.nHashType,this.nIn,Be,this.valueBn,Re.SCRIPT_ENABLE_SIGHASH_FORKID),this.preImage.compare(Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"))===0?this.hashBuf=this.preImage:this.hashBuf=new S(X.sha256Sha256(this.preImage)).readReverse(),this.verify=de.verify(this.hashBuf,Qe,Ze,"little",!0)}catch($e){console.log("ERROR: ",$e.message)}Xe=this.tx.verify(Qe,Ze,this.nIn,Be,!!(this.flags&p.SCRIPT_VERIFY_LOW_S),this.valueBn,Re.SCRIPT_ENABLE_SIGHASH_FORKID)}catch{Xe=!1}if(this.stack.pop(),this.stack.pop(),this.stack.push(Xe?p.true:p.false),v===s.OP_CHECKSIGVERIFY)if(Xe)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKSIGVERIFY",!1}break;case s.OP_CHECKMULTISIG:case s.OP_CHECKMULTISIGVERIFY:{let fe=1;if(this.stack.length<fe)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ve=new a().fromScriptNumBuffer(this.stack[this.stack.length-fe],e).toNumber();if(ve<0||ve>20)return this.errStr="SCRIPT_ERR_PUBKEY_COUNT",!1;if(this.nOpCount+=ve,this.nOpCount>201)return this.errStr="SCRIPT_ERR_OP_COUNT",!1;let Be=++fe;if(fe+=ve,this.stack.length<fe)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let He=new a().fromScriptNumBuffer(this.stack[this.stack.length-fe],e).toNumber();if(He<0||He>ve)return this.errStr="SCRIPT_ERR_SIG_COUNT",!1;let Xe=++fe;if(fe+=He,this.stack.length<fe)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let Qe=new q().fromObject({chunks:this.script.chunks.slice(this.pBeginCodeHash)});for(let $e=0;$e<He;$e++){let et=this.stack[this.stack.length-Xe-$e];if((et.length>0?et.readUInt8(et.length-1):0)&ce.SIGHASH_FORKID){if(!(this.flags&p.SCRIPT_ENABLE_SIGHASH_FORKID))return this.errStr="SCRIPT_ERR_ILLEGAL_FORKID",!1}else Qe.findAndDelete(new q().writeBuffer(et))}let Ze=!0;for(;Ze&&He>0;){let $e=this.stack[this.stack.length-Xe],et=this.stack[this.stack.length-Be];if(!this.checkSigEncoding($e)||!this.checkPubKeyEncoding(et))return!1;let rt;try{let it=new ce().fromTxFormat($e),nt=new T().fromBuffer(et,!1);rt=this.tx.verify(it,nt,this.nIn,Qe,!!(this.flags&p.SCRIPT_VERIFY_LOW_S),this.valueBn,this.flags)}catch{rt=!1}rt&&(Xe++,He--),Be++,ve--,He>ve&&(Ze=!1)}for(;fe-- >1;)this.stack.pop();if(this.stack.length<1)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;if(this.flags&p.SCRIPT_VERIFY_NULLDUMMY&&this.stack[this.stack.length-1].length)return this.errStr="SCRIPT_ERR_SIG_NULLDUMMY",!1;if(this.stack.pop(),this.stack.push(Ze?p.true:p.false),v===s.OP_CHECKMULTISIGVERIFY)if(Ze)this.stack.pop();else return this.errStr="SCRIPT_ERR_CHECKMULTISIGVERIFY",!1}break;case s.OP_CAT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let ue=this.stack[this.stack.length-2],le=this.stack[this.stack.length-1];this.stack[this.stack.length-2]=Buffer.concat([ue,le]),this.stack.pop();break;case s.OP_SPLIT:if(this.stack.length<2)return this.errStr="SCRIPT_ERR_INVALID_STACK_OPERATION",!1;let Ae=this.stack[this.stack.length-2],_e=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e);if(_e.lt(0)||_e.gt(Ae.length))return this.errStr="SCRIPT_ERR_INVALID_SPLIT_RANGE",!1;let Ie=Ae.slice(0,_e),Ge=Ae.slice(_e);this.stack.pop(),this.stack.pop(),this.stack.push(Ie),this.stack.push(Ge);break;case s.OP_NUM2BIN:this.stack.length<2&&(this.errStr="OP_NUM2BIN requires at least two items to be on the stack.");let Fe=new a().fromScriptNumBuffer(this.stack[this.stack.length-1],e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS).toNumber();Fe>p.MAX_SCRIPT_ELEMENT_SIZE&&(this.errStr=`It's not currently possible to push data larger than ${p.MAX_SCRIPT_ELEMENT_SIZE} bytes.`),this.stack.pop();let Le=this.stack[this.stack.length-1];if(Le=We(Le),Le.length>Fe&&(this.errStr="OP_NUM2BIN requires that the size expressed in the top stack item is large enough to hold the value expressed in the second-from-top stack item."),Le.length===Fe){this.stack[this.stack.length-1]=Le;break}let tt=0;Le.length>0&&(tt=Le[Le.length-1]&128,Le[Le.length-1]&=127);let ze=new Array(Fe);ze.fill(0);let Ve;for(Ve=0;Ve<Fe;Ve++)ze[Ve]=Le[Ve];for(Ve=Le.length-1;Ve++<Fe-2;)ze[Ve]=0;ze[Ve]=tt,this.stack[this.stack.length-1]=Buffer.from(new Uint8Array(ze).buffer,"binary");break;case s.OP_BIN2NUM:this.stack.length<1&&(this.errStr="OP_BIN2NUM requires at least one item to be on the stack.");let st=this.stack[this.stack.length-1],qe=We(st);this.stack[this.stack.length-1]=new a().fromScriptNumBuffer(qe,e,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS);break;default:return this.errStr="SCRIPT_ERR_BAD_OPCODE",!1}return!0}verify(e,t,n,v,M,W){let ee=this.results(e,t,n,v,M,W);for(let ue of ee)if(!ue)return!1;return!0}*results(e,t,n,v,M,W){let ee;this.fromObject({script:e,tx:n,nIn:v,flags:M,valueBn:W}),M&p.SCRIPT_VERIFY_SIGPUSHONLY&&!e.isPushOnly()&&(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1),yield*this.eval(),M&p.SCRIPT_VERIFY_P2SH&&(ee=this.stack.slice());let ue=this.stack;this.initialize(),this.fromObject({script:t,stack:ue,tx:n,nIn:v,flags:M,valueBn:W}),yield*this.eval(),this.stack.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1);let le=this.stack[this.stack.length-1];if(p.castToBool(le)||(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),M&p.SCRIPT_VERIFY_P2SH&&t.isScriptHashOut()){e.isPushOnly()||(this.errStr=this.errStr||"SCRIPT_ERR_SIG_PUSHONLY",yield!1);let Ae=ue;if(ue=ee,ee=Ae,ue.length===0)throw new Error("internal error - stack copy empty");let _e=ue[ue.length-1],Ie=new q().fromBuffer(_e);ue.pop(),this.initialize(),this.fromObject({script:Ie,stack:ue,tx:n,nIn:v,flags:M,valueBn:W}),yield*this.eval(),ue.length===0&&(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1),p.castToBool(ue[ue.length-1])?yield!0:(this.errStr=this.errStr||"SCRIPT_ERR_EVAL_FALSE",yield!1)}if(M&p.SCRIPT_VERIFY_CLEANSTACK){if(!(M&p.SCRIPT_VERIFY_P2SH))throw new Error("cannot use CLEANSTACK without P2SH");ue.length!==1&&(this.errStr=this.errStr||"SCRIPT_ERR_CLEANSTACK",yield!1)}yield!0}getDebugObject(){let e=this.pc-1;return{errStr:this.errStr,scriptStr:this.script?this.script.toString():"no script found",pc:e,stack:this.stack.map(t=>t.toString("hex")),altStack:this.altStack.map(t=>t.toString("hex")),opCodeStr:this.script?s.fromNumber(this.script.chunks[e].opCodeNum).toString():"no script found"}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}p.true=Buffer.from([1]),p.false=Buffer.from([]),p.MAX_SCRIPT_ELEMENT_SIZE=500*1e3,p.DEFAULT_SCRIPT_NUM_LENGTH_POLICY_AFTER_GENESIS=10*1e3,p.LOCKTIME_THRESHOLD=5e8,p.SCRIPT_VERIFY_NONE=0,p.SCRIPT_VERIFY_P2SH=1,p.SCRIPT_VERIFY_STRICTENC=2,p.SCRIPT_VERIFY_DERSIG=4,p.SCRIPT_VERIFY_LOW_S=8,p.SCRIPT_VERIFY_NULLDUMMY=16,p.SCRIPT_VERIFY_SIGPUSHONLY=32,p.SCRIPT_VERIFY_MINIMALDATA=64,p.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS=128,p.SCRIPT_VERIFY_CLEANSTACK=256,p.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY=512,p.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY=1024,p.SCRIPT_ENABLE_SIGHASH_FORKID=65536,p.defaultFlags=p.SCRIPT_VERIFY_P2SH|p.SCRIPT_VERIFY_STRICTENC|p.SCRIPT_ENABLE_SIGHASH_FORKID|p.SCRIPT_VERIFY_LOW_S|p.SCRIPT_VERIFY_NULLDUMMY|p.SCRIPT_VERIFY_DERSIG|p.SCRIPT_VERIFY_MINIMALDATA|p.SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS|p.SCRIPT_VERIFY_CLEANSTACK|p.SCRIPT_VERIFY_SIGPUSHONLY|p.SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY|p.SCRIPT_VERIFY_CHECKSEQUENCEVERIFY;class o extends y{static{r(this,"SigOperations")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,n)=>{e[n]=t.map(v=>({nScriptChunk:v.nScriptChunk,type:v.type,addressStr:v.addressStr,nHashType:v.nHashType,log:v.log}))}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,e[t].map(n=>({nScriptChunk:n.nScriptChunk,type:n.type,addressStr:n.addressStr,nHashType:n.nHashType,log:n.log})))}),this}setOne(e,t,n,v="sig",M,W=ce.SIGHASH_ALL|ce.SIGHASH_FORKID){const ee=e.toString("hex")+":"+t,ue={nScriptChunk:n,type:v,addressStr:M,nHashType:W};return this.map.set(ee,[ue]),this}setMany(e,t,n){const v=e.toString("hex")+":"+t;return n=n.map(M=>({type:M.type||"sig",nHashType:M.nHashType||ce.SIGHASH_ALL|ce.SIGHASH_FORKID,...M})),this.map.set(v,n),this}addOne(e,t,n,v="sig",M,W=ce.SIGHASH_ALL|ce.SIGHASH_FORKID){const ee=this.get(e,t)||[];return ee.push({nScriptChunk:n,type:v,addressStr:M,nHashType:W}),this.setMany(e,t,ee),this}get(e,t){const n=e.toString("hex")+":"+t;return this.map.get(n)||[]}}class h extends y{static{r(this,"TxOutMap")}constructor(e=new Map){super({map:e})}toJSON(){const e={};return this.map.forEach((t,n)=>{e[n]=t.toHex()}),e}fromJSON(e){return Object.keys(e).forEach(t=>{this.map.set(t,De.fromHex(e[t]))}),this}set(e,t,n){const v=e.toString("hex")+":"+t;return this.map.set(v,n),this}get(e,t){const n=e.toString("hex")+":"+t;return this.map.get(n)}setTx(e){const t=e.hash().toString("hex");return e.txOuts.forEach((n,v)=>{const M=t+":"+v;this.map.set(M,n)}),this}}const H=Z.Default.TxBuilder;class $ extends y{static{r(this,"TxBuilder")}constructor(e=new Re,t=[],n=[],v=new h,M=new o,W,ee,ue,le=H.feePerKbNum,Ae=0,_e=1,Ie=1,Ge=H.dust,Fe=!1,Le=new Ye){super({tx:e,txIns:t,txOuts:n,uTxOutMap:v,sigOperations:M,changeScript:W,changeAmountBn:ee,feeAmountBn:ue,feePerKbNum:le,nLockTime:Ae,versionBytesNum:_e,sigsPerInput:Ie,dust:Ge,dustChangeToFees:Fe,hashCache:Le})}toJSON(){const e={};return e.tx=this.tx.toHex(),e.txIns=this.txIns.map(t=>t.toHex()),e.txOuts=this.txOuts.map(t=>t.toHex()),e.uTxOutMap=this.uTxOutMap.toJSON(),e.sigOperations=this.sigOperations.toJSON(),e.changeScript=this.changeScript?this.changeScript.toHex():void 0,e.changeAmountBn=this.changeAmountBn?this.changeAmountBn.toNumber():void 0,e.feeAmountBn=this.feeAmountBn?this.feeAmountBn.toNumber():void 0,e.feePerKbNum=this.feePerKbNum,e.sigsPerInput=this.sigsPerInput,e.dust=this.dust,e.dustChangeToFees=this.dustChangeToFees,e.hashCache=this.hashCache.toJSON(),e}fromJSON(e){return this.tx=new Re().fromHex(e.tx),this.txIns=e.txIns.map(t=>xe.fromHex(t)),this.txOuts=e.txOuts.map(t=>De.fromHex(t)),this.uTxOutMap=new h().fromJSON(e.uTxOutMap),this.sigOperations=new o().fromJSON(e.sigOperations),this.changeScript=e.changeScript?new q().fromHex(e.changeScript):void 0,this.changeAmountBn=e.changeAmountBn?new a(e.changeAmountBn):void 0,this.feeAmountBn=e.feeAmountBn?new a(e.feeAmountBn):void 0,this.feePerKbNum=e.feePerKbNum||this.feePerKbNum,this.sigsPerInput=e.sigsPerInput||this.sigsPerInput,this.dust=e.dust||this.dust,this.dustChangeToFees=e.dustChangeToFees||this.dustChangeToFees,this.hashCache=Ye.fromJSON(e.hashCache),this}setFeePerKbNum(e){if(typeof e!="number"||e<0)throw new Error("cannot set a fee of zero or less");return this.feePerKbNum=e,this}setChangeAddress(e){return this.changeScript=e.toTxOutScript(),this}setChangeScript(e){return this.changeScript=e,this}setNLocktime(e){return this.nLockTime=e,this}setVersion(e){return this.versionBytesNum=e,this}setDust(e=H.dust){return this.dust=e,this}sendDustChangeToFees(e=!1){return this.dustChangeToFees=e,this}importPartiallySignedTx(e,t=this.uTxOutMap,n=this.sigOperations){return this.tx=e,this.uTxOutMap=t,this.sigOperations=n,this}inputFromScript(e,t,n,v,M){if(!Buffer.isBuffer(e)||typeof t!="number"||!(n instanceof De)||!(v instanceof q))throw new Error("invalid one of: txHashBuf, txOutNum, txOut, script");return this.txIns.push(xe.fromProperties(e,t,v,M)),this.uTxOutMap.set(e,t,n),this}addSigOperation(e,t,n,v,M,W){return this.sigOperations.addOne(e,t,n,v,M,W),this}inputFromPubKeyHash(e,t,n,v,M,W){if(!Buffer.isBuffer(e)||typeof t!="number"||!(n instanceof De))throw new Error("invalid one of: txHashBuf, txOutNum, txOut");this.txIns.push(new xe().fromObject({nSequence:M}).fromPubKeyHashTxOut(e,t,n,v)),this.uTxOutMap.set(e,t,n);const ee=Q.fromTxOutScript(n.script).toString();return this.addSigOperation(e,t,0,"sig",ee,W),this.addSigOperation(e,t,1,"pubKey",ee),this}outputToAddress(e,t){if(!(t instanceof Q)||!(e instanceof a))throw new Error("addr must be an Address, and valueBn must be a Bn");const n=new q().fromPubKeyHash(t.hashBuf);return this.outputToScript(e,n),this}outputToScript(e,t){if(!(t instanceof q)||!(e instanceof a))throw new Error("script must be a Script, and valueBn must be a Bn");const n=De.fromProperties(e,t);return this.txOuts.push(n),this}buildOutputs(){let e=new a(0);return this.txOuts.forEach(t=>{if(t.valueBn.lt(this.dust)&&!t.script.isNonSpendable())throw new Error("cannot create output lesser than dust");e=e.add(t.valueBn),this.tx.addTxOut(t)}),e}buildInputs(e,t=0){let n=new a(0);for(const v of this.txIns){const M=this.uTxOutMap.get(v.txHashBuf,v.txOutNum);if(n=n.add(M.valueBn),this.tx.addTxIn(v),n.geq(e)){if(t<=0)break;t--}}if(n.lt(e))throw new Error("not enough funds for outputs: inAmountBn "+n.toNumber()+" outAmountBn "+e.toNumber());return n}estimateSize(){let n=this.tx.toBuffer().length;return this.tx.txIns.forEach(v=>{const{txHashBuf:M,txOutNum:W}=v;this.sigOperations.get(M,W).forEach(ue=>{const{nScriptChunk:le,type:Ae}=ue,Ie=new q([v.script.chunks[le]]).toBuffer().length;if(n-=Ie,Ae==="sig")n+=72;else if(ue.type==="pubKey")n+=35;else throw new Error("unsupported sig operations type")})}),n=n+1,Math.round(n)}estimateFee(e=new a(0)){const t=Math.ceil(this.estimateSize()/1e3*this.feePerKbNum);return new a(t).add(e)}build(e={useAllInputs:!1}){let t;if(this.txIns.length<=0)throw Error("tx-builder number of inputs must be greater than 0");if(!this.changeScript)throw new Error("must specify change script to use build method");for(let n=e.useAllInputs?this.txIns.length-1:0;n<this.txIns.length;n++){this.tx=new Re;const v=this.buildOutputs(),M=De.fromProperties(new a(0),this.changeScript);this.tx.addTxOut(M);let W;try{W=this.buildInputs(v,n)}catch(ee){throw ee.message.includes("not enough funds for outputs")?new Error("unable to gather enough inputs for outputs and fee"):ee}if(this.changeAmountBn=W.sub(v),M.valueBn=this.changeAmountBn,t=this.estimateFee(),this.changeAmountBn.geq(t)&&this.changeAmountBn.sub(t).gt(this.dust))break}if(this.changeAmountBn.geq(t)){if(this.feeAmountBn=t,this.changeAmountBn=this.changeAmountBn.sub(this.feeAmountBn),this.tx.txOuts[this.tx.txOuts.length-1].valueBn=this.changeAmountBn,this.changeAmountBn.lt(this.dust))if(this.dustChangeToFees)this.tx.txOuts.pop(),this.tx.txOutsVi=Pe.fromNumber(this.tx.txOutsVi.toNumber()-1),this.feeAmountBn=this.feeAmountBn.add(this.changeAmountBn),this.changeAmountBn=new a(0);else throw new Error("unable to create change amount greater than dust");if(this.tx.nLockTime=this.nLockTime,this.tx.versionBytesNum=this.versionBytesNum,this.tx.txOuts.length===0)throw new Error("outputs length is zero - unable to create any outputs greater than dust");return this}else throw new Error("unable to gather enough inputs for outputs and fee")}sort(){return this.tx.sort(),this}static allSigsPresent(e,t){let n=0;for(let v=1;v<t.chunks.length-1;v++)t.chunks[v].buf&&n++;return n===e}static removeBlankSigs(e){e=new q(e.chunks.slice());for(let t=1;t<e.chunks.length-1;t++)e.chunks[t].buf||e.chunks.splice(t,1);return e}fillSig(e,t,n){const v=this.tx.txIns[e];return v.script.chunks[t]=new q().writeBuffer(n.toTxFormat()).chunks[0],v.scriptVi=Pe.fromNumber(v.script.toBuffer().length),this}getSig(e,t=ce.SIGHASH_ALL|ce.SIGHASH_FORKID,n,v,M=Re.SCRIPT_ENABLE_SIGHASH_FORKID){let W;if(t&ce.SIGHASH_FORKID&&M&Re.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[n].txHashBuf,ue=this.tx.txIns[n].txOutNum,le=this.uTxOutMap.get(ee,ue);if(!le)throw new Error("for SIGHASH_FORKID must provide UTXOs");W=le.valueBn}return this.tx.sign(e,t,n,v,W,M,this.hashCache)}asyncGetSig(e,t=ce.SIGHASH_ALL|ce.SIGHASH_FORKID,n,v,M=Re.SCRIPT_ENABLE_SIGHASH_FORKID){let W;if(t&ce.SIGHASH_FORKID&&M&Re.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[n].txHashBuf,ue=this.tx.txIns[n].txOutNum,le=this.uTxOutMap.get(ee,ue);if(!le)throw new Error("for SIGHASH_FORKID must provide UTXOs");W=le.valueBn}return this.tx.asyncSign(e,t,n,v,W,M,this.hashCache)}signTxIn(e,t,n,v,M=ce.SIGHASH_ALL|ce.SIGHASH_FORKID,W=Re.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[e],ue=ee.script;if(v===void 0&&ue.isPubKeyHashIn()&&(v=0),v===void 0)throw new Error("cannot sign unknown script type for input "+e);const le=ee.txHashBuf,Ae=ee.txOutNum;n||(n=this.uTxOutMap.get(le,Ae));const Ie=n.script,Ge=this.getSig(t,M,e,Ie,W,this.hashCache);return this.fillSig(e,v,Ge),this}async asyncSignTxIn(e,t,n,v,M=ce.SIGHASH_ALL|ce.SIGHASH_FORKID,W=Re.SCRIPT_ENABLE_SIGHASH_FORKID){const ee=this.tx.txIns[e],ue=ee.script;if(v===void 0&&ue.isPubKeyHashIn()&&(v=0),v===void 0)throw new Error("cannot sign unknown script type for input "+e);const le=ee.txHashBuf,Ae=ee.txOutNum;n||(n=this.uTxOutMap.get(le,Ae));const Ie=n.script,Ge=await this.asyncGetSig(t,M,e,Ie,W,this.hashCache);return this.fillSig(e,v,Ge),this}signWithKeyPairs(e){const t={};for(const n of e){const v=Q.fromPubKey(n.pubKey).toString();t[v]=n}for(const n in this.tx.txIns){const v=this.tx.txIns[n],M=this.sigOperations.get(v.txHashBuf,v.txOutNum);for(const W of M){const{nScriptChunk:ee,type:ue,addressStr:le,nHashType:Ae}=W,_e=t[le];if(!_e){W.log=`cannot find keyPair for addressStr ${le}`;continue}const Ie=this.uTxOutMap.get(v.txHashBuf,v.txOutNum);if(ue==="sig")this.signTxIn(n,_e,Ie,ee,Ae),W.log="successfully inserted signature";else if(ue==="pubKey")v.script.chunks[ee]=new q().writeBuffer(_e.pubKey.toBuffer()).chunks[0],v.setScript(v.script),W.log="successfully inserted public key";else{W.log=`cannot perform operation of type ${ue}`;continue}}}return this}}class ie extends y{static{r(this,"TxVerifier")}constructor(e,t,n,v){super({tx:e,txOutMap:t,errStr:n,interp:v})}verify(e=p.SCRIPT_ENABLE_SIGHASH_FORKID){return!this.checkStr()&&!this.verifyStr(e)}async asyncVerify(e){const t=await this.asyncVerifyStr(e);return!this.checkStr()&&!t}static verify(e,t,n){return new ie(e,t).verify(n)}static asyncVerify(e,t,n){return new ie(e,t).asyncVerify(n)}checkStr(){if(this.tx.txIns.length===0||this.tx.txInsVi.toNumber()===0)return this.errStr="transaction txIns empty",this.errStr;if(this.tx.txOuts.length===0||this.tx.txOutsVi.toNumber()===0)return this.errStr="transaction txOuts empty",this.errStr;if(this.tx.toBuffer().length>Ce.MAX_BLOCK_SIZE)return this.errStr="transaction over the maximum block size",this.errStr;let e=new a(0);for(let n=0;n<this.tx.txOuts.length;n++){const v=this.tx.txOuts[n];if(v.valueBn.lt(0))return this.errStr="transaction txOut "+n+" negative",this.errStr;if(v.valueBn.gt(Re.MAX_MONEY))return this.errStr="transaction txOut "+n+" greater than MAX_MONEY",this.errStr;if(e=e.add(v.valueBn),e.gt(Re.MAX_MONEY))return this.errStr="transaction txOut "+n+" total output greater than MAX_MONEY",this.errStr}const t={};for(let n=0;n<this.tx.txIns.length;n++){const v=this.tx.txIns[n],M=v.txHashBuf.toString("hex")+":"+v.txOutNum;if(t[M]!==void 0)return this.errStr="transaction input "+n+" duplicate input",this.errStr;t[M]=!0}if(this.tx.isCoinbase()){const n=this.tx.txIns[0].script.toBuffer();if(n.length<2||n.length>100)return this.errStr="coinbase trasaction script size invalid",this.errStr}else for(let n=0;n<this.tx.txIns.length;n++)if(this.tx.txIns[n].hasNullInput())return this.errStr="transaction input "+n+" has null input",this.errStr;return!1}verifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!this.verifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}async asyncVerifyStr(e){for(let t=0;t<this.tx.txIns.length;t++)if(!await this.asyncVerifyNIn(t,e))return this.errStr="input "+t+" failed script verify",this.errStr;return!1}verifyNIn(e,t){const n=this.tx.txIns[e],v=n.script,M=this.txOutMap.get(n.txHashBuf,n.txOutNum);if(!M)return console.log("output "+n.txOutNum+" not found"),!1;const W=M.script,ee=M.valueBn;return this.interp=new p,this.interp.verify(v,W,this.tx,e,t,ee)}async asyncVerifyNIn(e,t){const n=this.tx.txIns[e],v=n.script,M=this.txOutMap.get(n.txHashBuf,n.txOutNum);if(!M)return console.log("output "+n.txOutNum+" not found"),!1;const W=M.script,ee=M.valueBn;this.interp=new p;const ue=await G.asyncObjectMethod(this.interp,"verify",[v,W,this.tx,e,t,ee]);return JSON.parse(ue.resbuf.toString())}getDebugObject(){return{errStr:this.errStr,interpFailure:this.interp?this.interp.getDebugObject():void 0}}getDebugString(){return JSON.stringify(this.getDebugObject(),null,2)}}class ne{static{r(this,"Aes")}}ne.encrypt=function(E,e){const t=ne.buf2Words(e),n=ne.buf2Words(E),M=new(te())(t).encrypt(n);return ne.words2Buf(M)},ne.decrypt=function(E,e){const t=ne.buf2Words(E),n=ne.buf2Words(e),M=new(te())(n).decrypt(t);return ne.words2Buf(M)},ne.buf2Words=function(E){if(E.length%4)throw new Error("buf length must be a multiple of 4");const e=[];for(let t=0;t<E.length/4;t++)e.push(E.readUInt32BE(t*4));return e},ne.words2Buf=function(E){const e=Buffer.alloc(E.length*4);for(let t=0;t<E.length;t++)e.writeUInt32BE(E[t],t*4);return e};class ge{static{r(this,"Cbc")}}ge.buf2BlocksBuf=function(E,e){const t=e/8,n=[];for(let v=0;v<=E.length/t;v++){let M=E.slice(v*t,v*t+t);M.length<e&&(M=ge.pkcs7Pad(M,e)),n.push(M)}return n},ge.blockBufs2Buf=function(E){let e=E[E.length-1];return e=ge.pkcs7Unpad(e),E[E.length-1]=e,Buffer.concat(E)},ge.encrypt=function(E,e,t,n){const v=e.length*8,M=ge.buf2BlocksBuf(E,v),W=ge.encryptBlocks(M,e,t,n);return Buffer.concat(W)},ge.decrypt=function(E,e,t,n){const v=e.length,M=[];for(let ue=0;ue<E.length/v;ue++)M.push(E.slice(ue*v,ue*v+v));const W=ge.decryptBlocks(M,e,t,n);return ge.blockBufs2Buf(W)},ge.encryptBlock=function(E,e,t,n){const v=ge.xorBufs(E,e);return t.encrypt(v,n)},ge.decryptBlock=function(E,e,t,n){const v=t.decrypt(E,n);return ge.xorBufs(v,e)},ge.encryptBlocks=function(E,e,t,n){const v=[];for(let M=0;M<E.length;M++){const W=E[M],ee=ge.encryptBlock(W,e,t,n);v.push(ee),e=ee}return v},ge.decryptBlocks=function(E,e,t,n){const v=[];for(let M=0;M<E.length;M++){const W=E[M],ee=ge.decryptBlock(W,e,t,n);v.push(ee),e=W}return v},ge.pkcs7Pad=function(E,e){const n=e/8-E.length,v=Buffer.alloc(n);return v.fill(n),Buffer.concat([E,v])},ge.pkcs7Unpad=function(E){const e=E[E.length-1],t=E.slice(E.length-e,E.length),n=Buffer.alloc(e);if(n.fill(e),!A(t,n))throw new Error("invalid padding");return E.slice(0,E.length-e)},ge.xorBufs=function(E,e){if(E.length!==e.length)throw new Error("bufs must have the same length");const t=Buffer.alloc(E.length);for(let n=0;n<E.length;n++)t[n]=E[n]^e[n];return t};class Ue{static{r(this,"Aescbc")}}Ue.encrypt=function(E,e,t,n=!0){t=t||be.getRandomBuffer(128/8);const v=ge.encrypt(E,t,ne,e);return n?Buffer.concat([t,v]):v},Ue.decrypt=function(E,e,t=!1){if(t){const n=E;return ge.decrypt(n,t,ne,e)}else{const n=E.slice(0,16),v=E.slice(128/8);return ge.decrypt(v,n,ne,e)}};class ke{static{r(this,"Ach")}}ke.encrypt=function(E,e,t){const n=Ue.encrypt(E,e,t),v=X.sha256Hmac(n,e);return Buffer.concat([v,n])},ke.asyncEncrypt=async function(E,e,t){t||(t=be.getRandomBuffer(128/8));const n=[E,e,t];return(await G.asyncClassMethod(ke,"encrypt",n)).resbuf},ke.decrypt=function(E,e){if(E.length<512/8)throw new Error("The encrypted data must be at least 256+128+128 bits, which is the length of the Hmac plus the iv plus the smallest encrypted data size");const t=E.slice(0,256/8);E=E.slice(256/8,E.length);const n=X.sha256Hmac(E,e);if(!A(t,n))throw new Error("Message authentication failed - Hmacs are not equivalent");return Ue.decrypt(E,e)},ke.asyncDecrypt=async function(E,e){const t=[E,e];return(await G.asyncClassMethod(ke,"decrypt",t)).resbuf};class Ne{static{r(this,"Ecies")}}Ne.ivkEkM=function(E,e){const t=E.bn,v=e.point.mul(t),W=new T(v).toBuffer(),ee=X.sha512(W);return{iv:ee.slice(0,16),kE:ee.slice(16,32),kM:ee.slice(32,64)}},Ne.electrumEncrypt=function(E,e,t,n=!1){if(!Buffer.isBuffer(E))throw new Error("messageBuf must be a buffer");let v;t===null&&(t=se.fromRandom()),n||(v=t.pubKey.toDer(!0));const{iv:M,kE:W,kM:ee}=Ne.ivkEkM(t.privKey,e),ue=Ue.encrypt(E,W,M,!1),le=Buffer.from("BIE1");let Ae;v?Ae=Buffer.concat([le,v,ue]):Ae=Buffer.concat([le,ue]);const _e=X.sha256Hmac(Ae,ee);return Buffer.concat([Ae,_e])},Ne.electrumDecrypt=function(E,e,t=null){if(!Buffer.isBuffer(E))throw new Error("encBuf must be a buffer");const n=32;if(!E.slice(0,4).equals(Buffer.from("BIE1")))throw new Error("Invalid Magic");let M=4;if(t===null){const Ie=E.slice(4,37);t=T.fromDer(Ie),M=37}const{iv:W,kE:ee,kM:ue}=Ne.ivkEkM(e,t),le=E.slice(M,E.length-n),Ae=E.slice(E.length-n,E.length),_e=X.sha256Hmac(E.slice(0,E.length-n),ue);if(!Ae.equals(_e))throw new Error("Invalid checksum");return Ue.decrypt(le,ee,W)},Ne.bitcoreEncrypt=function(E,e,t,n){t||(t=se.fromRandom());const v=t.privKey.bn,W=t.pubKey.toDer(!0),Ae=e.point.mul(v).getX().toBuffer({size:32}),_e=X.sha512(Ae),Ie=_e.slice(0,32),Ge=_e.slice(32,64),Fe=Ue.encrypt(E,Ie,n),Le=X.sha256Hmac(Fe,Ge);return Buffer.concat([W,Fe,Le])},Ne.asyncBitcoreEncrypt=async function(E,e,t,n){t||(t=await se.asyncFromRandom()),n||(n=be.getRandomBuffer(128/8));const v=[E,e,t,n];return(await G.asyncClassMethod(Ne,"bitcoreEncrypt",v)).resbuf},Ne.bitcoreDecrypt=function(E,e){const t=e.bn,M=T.fromDer(E.slice(0,33)).point.mul(t);if(M.eq(new Y))throw new Error("P equals 0");const ee=M.getX().toBuffer({size:32}),ue=X.sha512(ee),le=ue.slice(0,32),Ae=ue.slice(32,64),_e=E.slice(33,E.length-32),Ie=E.slice(E.length-32,E.length),Ge=X.sha256Hmac(_e,Ae);if(!A(Ie,Ge))throw new Error("Invalid checksum");return Ue.decrypt(_e,le)},Ne.asyncBitcoreDecrypt=async function(E,e){const t=[E,e];return(await G.asyncClassMethod(Ne,"bitcoreDecrypt",t)).resbuf};const Ke={aes:te(),bnjs:O(),bs58:D(),elliptic:d(),hashjs:m(),pbkdf2:C,Buffer:k.Buffer},Je=c.i8})();var xt=Te.CG,wt=Te.kL,St=Te.AB,_t=Te.A_,Et=Te.eU,Bt=Te.O3,It=Te.jO,Ot=Te.iX,Rt=Te.gO,At=Te.ti,Pt=Te.Bn,Nt=Te.Br,kt=Te.Ph,Mt=Te.Bw,Tt=Te.$H,Ct=Te.gT,Lt=Te.mI,Ft=Te.z$,Ht=Te.kb,Ut=Te.rR,Dt=Te.sx,Kt=Te.gZ,Vt=Te.E9,zt=Te.on,jt=Te.dp,Gt=Te.kk,Yt=Te.Xf,Jt=Te.nX,qt=Te.tB,Wt=Te.AU,Xt=Te.Tx,Qt=Te.lc,$t=Te.X0,Zt=Te.as,er=Te.a1,tr=Te.UB,rr=Te.yN,ir=Te.Xb,nr=Te.xB,sr=Te.ER,ar=Te.d7,or=Te.en,fr=Te.es,hr=Te.nR,cr=Te.jp,ur=Te.i8;export{xt as Ach,wt as Address,St as Aes,_t as Aescbc,Et as Base58,Bt as Base58Check,It as Bip32,Ot as Bip39,Rt as Block,At as BlockHeader,Pt as Bn,Nt as Br,kt as Bsm,Mt as Bw,Tt as Cbc,Ct as Constants,Lt as Ecdsa,Ft as Ecies,Ht as Hash,Ut as Interp,Dt as KeyPair,Kt as OpCode,Vt as Point,zt as PrivKey,jt as PubKey,Gt as Random,Yt as Script,Jt as Sig,qt as SigOperations,Wt as Struct,Xt as Tx,Qt as TxBuilder,$t as TxIn,Zt as TxOut,er as TxOutMap,tr as TxVerifier,rr as VarInt,ir as Workers,nr as WorkersResult,sr as cmp,ar as deps,or as en,fr as es,hr as getConstants,cr as jp,ur as version};