@swapkit/wallet-keystore 1.5.12 → 1.5.13
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/index.js +8 -11
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import{a as S5,c as T5}from"./chunk-nm00d52v.js";var{create:h4,defineProperty:i5,getOwnPropertyDescriptor:s4,getOwnPropertyNames:u4,getPrototypeOf:o4}=Object,f4=Object.prototype.hasOwnProperty,a4=((v)=>T5)(function(v){return T5.apply(this,arguments)}),Z9=(v,M)=>()=>(v&&(M=v(v=0)),M),z0=(v,M)=>()=>(M||v((M={exports:{}}).exports,M),M.exports),r5=(v,M)=>{for(var B in M)i5(v,B,{get:M[B],enumerable:!0})},f5=(v,M,B,S)=>{if(M&&typeof M=="object"||typeof M=="function")for(let Z of u4(M))!f4.call(v,Z)&&Z!==B&&i5(v,Z,{get:()=>M[Z],enumerable:!(S=s4(M,Z))||S.enumerable});return v},J9=(v,M,B)=>(f5(v,M,"default"),B&&f5(B,M,"default")),A5=(v,M,B)=>(B=v!=null?h4(o4(v)):{},f5(M||!v||!v.__esModule?i5(B,"default",{value:v,enumerable:!0}):B,v)),D5=(v)=>f5(i5({},"__esModule",{value:!0}),v),n4=z0((v)=>{v.byteLength=k,v.toByteArray=D,v.fromByteArray=T;var M=[],B=[],S=typeof Uint8Array<"u"?Uint8Array:Array,Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(q=0,Q=Z.length;q<Q;++q)M[q]=Z[q],B[Z.charCodeAt(q)]=q;var q,Q;B[45]=62,B[95]=63;function O(z){var I=z.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=z.indexOf("=");L===-1&&(L=I);var p=L===I?0:4-L%4;return[L,p]}function k(z){var I=O(z),L=I[0],p=I[1];return(L+p)*3/4-p}function C(z,I,L){return(I+L)*3/4-L}function D(z){var I,L=O(z),p=L[0],E=L[1],x=new S(C(z,p,E)),b=0,w=E>0?p-4:p,g;for(g=0;g<w;g+=4)I=B[z.charCodeAt(g)]<<18|B[z.charCodeAt(g+1)]<<12|B[z.charCodeAt(g+2)]<<6|B[z.charCodeAt(g+3)],x[b++]=I>>16&255,x[b++]=I>>8&255,x[b++]=I&255;return E===2&&(I=B[z.charCodeAt(g)]<<2|B[z.charCodeAt(g+1)]>>4,x[b++]=I&255),E===1&&(I=B[z.charCodeAt(g)]<<10|B[z.charCodeAt(g+1)]<<4|B[z.charCodeAt(g+2)]>>2,x[b++]=I>>8&255,x[b++]=I&255),x}function P(z){return M[z>>18&63]+M[z>>12&63]+M[z>>6&63]+M[z&63]}function J(z,I,L){for(var p,E=[],x=I;x<L;x+=3)p=(z[x]<<16&16711680)+(z[x+1]<<8&65280)+(z[x+2]&255),E.push(P(p));return E.join("")}function T(z){for(var I,L=z.length,p=L%3,E=[],x=16383,b=0,w=L-p;b<w;b+=x)E.push(J(z,b,b+x>w?w:b+x));return p===1?(I=z[L-1],E.push(M[I>>2]+M[I<<4&63]+"==")):p===2&&(I=(z[L-2]<<8)+z[L-1],E.push(M[I>>10]+M[I>>4&63]+M[I<<2&63]+"=")),E.join("")}}),i4=z0((v)=>{v.read=function(M,B,S,Z,q){var Q,O,k=q*8-Z-1,C=(1<<k)-1,D=C>>1,P=-7,J=S?q-1:0,T=S?-1:1,z=M[B+J];for(J+=T,Q=z&(1<<-P)-1,z>>=-P,P+=k;P>0;Q=Q*256+M[B+J],J+=T,P-=8);for(O=Q&(1<<-P)-1,Q>>=-P,P+=Z;P>0;O=O*256+M[B+J],J+=T,P-=8);if(Q===0)Q=1-D;else{if(Q===C)return O?NaN:(z?-1:1)*(1/0);O=O+Math.pow(2,Z),Q=Q-D}return(z?-1:1)*O*Math.pow(2,Q-Z)},v.write=function(M,B,S,Z,q,Q){var O,k,C,D=Q*8-q-1,P=(1<<D)-1,J=P>>1,T=q===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=Z?0:Q-1,I=Z?1:-1,L=B<0||B===0&&1/B<0?1:0;for(B=Math.abs(B),isNaN(B)||B===1/0?(k=isNaN(B)?1:0,O=P):(O=Math.floor(Math.log(B)/Math.LN2),B*(C=Math.pow(2,-O))<1&&(O--,C*=2),O+J>=1?B+=T/C:B+=T*Math.pow(2,1-J),B*C>=2&&(O++,C/=2),O+J>=P?(k=0,O=P):O+J>=1?(k=(B*C-1)*Math.pow(2,q),O=O+J):(k=B*Math.pow(2,J-1)*Math.pow(2,q),O=0));q>=8;M[S+z]=k&255,z+=I,k/=256,q-=8);for(O=O<<q|k,D+=q;D>0;M[S+z]=O&255,z+=I,O/=256,D-=8);M[S+z-I]|=L*128}}),j5=z0((v)=>{var M=n4(),B=i4(),S=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=O,v.SlowBuffer=E,v.INSPECT_MAX_BYTES=50;var Z=2147483647;v.kMaxLength=Z,O.TYPED_ARRAY_SUPPORT=q(),!O.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 q(){try{let R=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(R,_),R.foo()===42}catch{return!1}}Object.defineProperty(O.prototype,"parent",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.buffer}}),Object.defineProperty(O.prototype,"offset",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.byteOffset}});function Q(R){if(R>Z)throw new RangeError('The value "'+R+'" is invalid for option "size"');let _=new Uint8Array(R);return Object.setPrototypeOf(_,O.prototype),_}function O(R,_,d){if(typeof R=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return P(R)}return k(R,_,d)}O.poolSize=8192;function k(R,_,d){if(typeof R=="string")return J(R,_);if(ArrayBuffer.isView(R))return z(R);if(R==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(X0(R,ArrayBuffer)||R&&X0(R.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(X0(R,SharedArrayBuffer)||R&&X0(R.buffer,SharedArrayBuffer)))return I(R,_,d);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let s=R.valueOf&&R.valueOf();if(s!=null&&s!==R)return O.from(s,_,d);let i=L(R);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return O.from(R[Symbol.toPrimitive]("string"),_,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}O.from=function(R,_,d){return k(R,_,d)},Object.setPrototypeOf(O.prototype,Uint8Array.prototype),Object.setPrototypeOf(O,Uint8Array);function C(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function D(R,_,d){return C(R),R<=0?Q(R):_!==void 0?typeof d=="string"?Q(R).fill(_,d):Q(R).fill(_):Q(R)}O.alloc=function(R,_,d){return D(R,_,d)};function P(R){return C(R),Q(R<0?0:p(R)|0)}O.allocUnsafe=function(R){return P(R)},O.allocUnsafeSlow=function(R){return P(R)};function J(R,_){if((typeof _!="string"||_==="")&&(_="utf8"),!O.isEncoding(_))throw new TypeError("Unknown encoding: "+_);let d=x(R,_)|0,s=Q(d),i=s.write(R,_);return i!==d&&(s=s.slice(0,i)),s}function T(R){let _=R.length<0?0:p(R.length)|0,d=Q(_);for(let s=0;s<_;s+=1)d[s]=R[s]&255;return d}function z(R){if(X0(R,Uint8Array)){let _=new Uint8Array(R);return I(_.buffer,_.byteOffset,_.byteLength)}return T(R)}function I(R,_,d){if(_<0||R.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(R.byteLength<_+(d||0))throw new RangeError('"length" is outside of buffer bounds');let s;return _===void 0&&d===void 0?s=new Uint8Array(R):d===void 0?s=new Uint8Array(R,_):s=new Uint8Array(R,_,d),Object.setPrototypeOf(s,O.prototype),s}function L(R){if(O.isBuffer(R)){let _=p(R.length)|0,d=Q(_);return d.length===0||R.copy(d,0,0,_),d}if(R.length!==void 0)return typeof R.length!="number"||M0(R.length)?Q(0):T(R);if(R.type==="Buffer"&&Array.isArray(R.data))return T(R.data)}function p(R){if(R>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return R|0}function E(R){return+R!=R&&(R=0),O.alloc(+R)}O.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==O.prototype},O.compare=function(R,_){if(X0(R,Uint8Array)&&(R=O.from(R,R.offset,R.byteLength)),X0(_,Uint8Array)&&(_=O.from(_,_.offset,_.byteLength)),!O.isBuffer(R)||!O.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===_)return 0;let d=R.length,s=_.length;for(let i=0,E0=Math.min(d,s);i<E0;++i)if(R[i]!==_[i]){d=R[i],s=_[i];break}return d<s?-1:s<d?1:0},O.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},O.concat=function(R,_){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return O.alloc(0);let d;if(_===void 0)for(_=0,d=0;d<R.length;++d)_+=R[d].length;let s=O.allocUnsafe(_),i=0;for(d=0;d<R.length;++d){let E0=R[d];if(X0(E0,Uint8Array))i+E0.length>s.length?(O.isBuffer(E0)||(E0=O.from(E0)),E0.copy(s,i)):Uint8Array.prototype.set.call(s,E0,i);else if(O.isBuffer(E0))E0.copy(s,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=E0.length}return s};function x(R,_){if(O.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||X0(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);let d=R.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&d===0)return 0;let i=!1;for(;;)switch(_){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return C0(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return y0(R).length;default:if(i)return s?-1:C0(R).length;_=(""+_).toLowerCase(),i=!0}}O.byteLength=x;function b(R,_,d){let s=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,_>>>=0,d<=_))return"";for(R||(R="utf8");;)switch(R){case"hex":return Y(this,_,d);case"utf8":case"utf-8":return U(this,_,d);case"ascii":return $(this,_,d);case"latin1":case"binary":return G(this,_,d);case"base64":return W(this,_,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,_,d);default:if(s)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),s=!0}}O.prototype._isBuffer=!0;function w(R,_,d){let s=R[_];R[_]=R[d],R[d]=s}O.prototype.swap16=function(){let R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<R;_+=2)w(this,_,_+1);return this},O.prototype.swap32=function(){let R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<R;_+=4)w(this,_,_+3),w(this,_+1,_+2);return this},O.prototype.swap64=function(){let R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<R;_+=8)w(this,_,_+7),w(this,_+1,_+6),w(this,_+2,_+5),w(this,_+3,_+4);return this},O.prototype.toString=function(){let R=this.length;return R===0?"":arguments.length===0?U(this,0,R):b.apply(this,arguments)},O.prototype.toLocaleString=O.prototype.toString,O.prototype.equals=function(R){if(!O.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:O.compare(this,R)===0},O.prototype.inspect=function(){let R="",_=v.INSPECT_MAX_BYTES;return R=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(R+=" ... "),"<Buffer "+R+">"},S&&(O.prototype[S]=O.prototype.inspect),O.prototype.compare=function(R,_,d,s,i){if(X0(R,Uint8Array)&&(R=O.from(R,R.offset,R.byteLength)),!O.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(_===void 0&&(_=0),d===void 0&&(d=R?R.length:0),s===void 0&&(s=0),i===void 0&&(i=this.length),_<0||d>R.length||s<0||i>this.length)throw new RangeError("out of range index");if(s>=i&&_>=d)return 0;if(s>=i)return-1;if(_>=d)return 1;if(_>>>=0,d>>>=0,s>>>=0,i>>>=0,this===R)return 0;let E0=i-s,Y0=d-_,J0=Math.min(E0,Y0),d0=this.slice(s,i),j0=R.slice(_,d);for(let O0=0;O0<J0;++O0)if(d0[O0]!==j0[O0]){E0=d0[O0],Y0=j0[O0];break}return E0<Y0?-1:Y0<E0?1:0};function g(R,_,d,s,i){if(R.length===0)return-1;if(typeof d=="string"?(s=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,M0(d)&&(d=i?0:R.length-1),d<0&&(d=R.length+d),d>=R.length){if(i)return-1;d=R.length-1}else if(d<0)if(i)d=0;else return-1;if(typeof _=="string"&&(_=O.from(_,s)),O.isBuffer(_))return _.length===0?-1:r(R,_,d,s,i);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(R,_,d):Uint8Array.prototype.lastIndexOf.call(R,_,d):r(R,[_],d,s,i);throw new TypeError("val must be string, number or Buffer")}function r(R,_,d,s,i){let E0=1,Y0=R.length,J0=_.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(R.length<2||_.length<2)return-1;E0=2,Y0/=2,J0/=2,d/=2}function d0(O0,c0){return E0===1?O0[c0]:O0.readUInt16BE(c0*E0)}let j0;if(i){let O0=-1;for(j0=d;j0<Y0;j0++)if(d0(R,j0)===d0(_,O0===-1?0:j0-O0)){if(O0===-1&&(O0=j0),j0-O0+1===J0)return O0*E0}else O0!==-1&&(j0-=j0-O0),O0=-1}else for(d+J0>Y0&&(d=Y0-J0),j0=d;j0>=0;j0--){let O0=!0;for(let c0=0;c0<J0;c0++)if(d0(R,j0+c0)!==d0(_,c0)){O0=!1;break}if(O0)return j0}return-1}O.prototype.includes=function(R,_,d){return this.indexOf(R,_,d)!==-1},O.prototype.indexOf=function(R,_,d){return g(this,R,_,d,!0)},O.prototype.lastIndexOf=function(R,_,d){return g(this,R,_,d,!1)};function t(R,_,d,s){d=Number(d)||0;let i=R.length-d;s?(s=Number(s),s>i&&(s=i)):s=i;let E0=_.length;s>E0/2&&(s=E0/2);let Y0;for(Y0=0;Y0<s;++Y0){let J0=parseInt(_.substr(Y0*2,2),16);if(M0(J0))return Y0;R[d+Y0]=J0}return Y0}function $0(R,_,d,s){return a(C0(_,R.length-d),R,d,s)}function f(R,_,d,s){return a(H0(_),R,d,s)}function Z0(R,_,d,s){return a(y0(_),R,d,s)}function K(R,_,d,s){return a(F0(_,R.length-d),R,d,s)}O.prototype.write=function(R,_,d,s){if(_===void 0)s="utf8",d=this.length,_=0;else if(d===void 0&&typeof _=="string")s=_,d=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(d)?(d=d>>>0,s===void 0&&(s="utf8")):(s=d,d=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-_;if((d===void 0||d>i)&&(d=i),R.length>0&&(d<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let E0=!1;for(;;)switch(s){case"hex":return t(this,R,_,d);case"utf8":case"utf-8":return $0(this,R,_,d);case"ascii":case"latin1":case"binary":return f(this,R,_,d);case"base64":return Z0(this,R,_,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,R,_,d);default:if(E0)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),E0=!0}},O.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(R,_,d){return _===0&&d===R.length?M.fromByteArray(R):M.fromByteArray(R.slice(_,d))}function U(R,_,d){d=Math.min(R.length,d);let s=[],i=_;for(;i<d;){let E0=R[i],Y0=null,J0=E0>239?4:E0>223?3:E0>191?2:1;if(i+J0<=d){let d0,j0,O0,c0;switch(J0){case 1:E0<128&&(Y0=E0);break;case 2:d0=R[i+1],(d0&192)===128&&(c0=(E0&31)<<6|d0&63,c0>127&&(Y0=c0));break;case 3:d0=R[i+1],j0=R[i+2],(d0&192)===128&&(j0&192)===128&&(c0=(E0&15)<<12|(d0&63)<<6|j0&63,c0>2047&&(c0<55296||c0>57343)&&(Y0=c0));break;case 4:d0=R[i+1],j0=R[i+2],O0=R[i+3],(d0&192)===128&&(j0&192)===128&&(O0&192)===128&&(c0=(E0&15)<<18|(d0&63)<<12|(j0&63)<<6|O0&63,c0>65535&&c0<1114112&&(Y0=c0))}}Y0===null?(Y0=65533,J0=1):Y0>65535&&(Y0-=65536,s.push(Y0>>>10&1023|55296),Y0=56320|Y0&1023),s.push(Y0),i+=J0}return H(s)}var V=4096;function H(R){let _=R.length;if(_<=V)return String.fromCharCode.apply(String,R);let d="",s=0;for(;s<_;)d+=String.fromCharCode.apply(String,R.slice(s,s+=V));return d}function $(R,_,d){let s="";d=Math.min(R.length,d);for(let i=_;i<d;++i)s+=String.fromCharCode(R[i]&127);return s}function G(R,_,d){let s="";d=Math.min(R.length,d);for(let i=_;i<d;++i)s+=String.fromCharCode(R[i]);return s}function Y(R,_,d){let s=R.length;(!_||_<0)&&(_=0),(!d||d<0||d>s)&&(d=s);let i="";for(let E0=_;E0<d;++E0)i+=W0[R[E0]];return i}function X(R,_,d){let s=R.slice(_,d),i="";for(let E0=0;E0<s.length-1;E0+=2)i+=String.fromCharCode(s[E0]+s[E0+1]*256);return i}O.prototype.slice=function(R,_){let d=this.length;R=~~R,_=_===void 0?d:~~_,R<0?(R+=d,R<0&&(R=0)):R>d&&(R=d),_<0?(_+=d,_<0&&(_=0)):_>d&&(_=d),_<R&&(_=R);let s=this.subarray(R,_);return Object.setPrototypeOf(s,O.prototype),s};function F(R,_,d){if(R%1!==0||R<0)throw new RangeError("offset is not uint");if(R+_>d)throw new RangeError("Trying to access beyond buffer length")}O.prototype.readUintLE=O.prototype.readUIntLE=function(R,_,d){R=R>>>0,_=_>>>0,d||F(R,_,this.length);let s=this[R],i=1,E0=0;for(;++E0<_&&(i*=256);)s+=this[R+E0]*i;return s},O.prototype.readUintBE=O.prototype.readUIntBE=function(R,_,d){R=R>>>0,_=_>>>0,d||F(R,_,this.length);let s=this[R+--_],i=1;for(;_>0&&(i*=256);)s+=this[R+--_]*i;return s},O.prototype.readUint8=O.prototype.readUInt8=function(R,_){return R=R>>>0,_||F(R,1,this.length),this[R]},O.prototype.readUint16LE=O.prototype.readUInt16LE=function(R,_){return R=R>>>0,_||F(R,2,this.length),this[R]|this[R+1]<<8},O.prototype.readUint16BE=O.prototype.readUInt16BE=function(R,_){return R=R>>>0,_||F(R,2,this.length),this[R]<<8|this[R+1]},O.prototype.readUint32LE=O.prototype.readUInt32LE=function(R,_){return R=R>>>0,_||F(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},O.prototype.readUint32BE=O.prototype.readUInt32BE=function(R,_){return R=R>>>0,_||F(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},O.prototype.readBigUInt64LE=G0(function(R){R=R>>>0,K0(R,"offset");let _=this[R],d=this[R+7];(_===void 0||d===void 0)&&w0(R,this.length-8);let s=_+this[++R]*256+this[++R]*65536+this[++R]*16777216,i=this[++R]+this[++R]*256+this[++R]*65536+d*16777216;return BigInt(s)+(BigInt(i)<<BigInt(32))}),O.prototype.readBigUInt64BE=G0(function(R){R=R>>>0,K0(R,"offset");let _=this[R],d=this[R+7];(_===void 0||d===void 0)&&w0(R,this.length-8);let s=_*16777216+this[++R]*65536+this[++R]*256+this[++R],i=this[++R]*16777216+this[++R]*65536+this[++R]*256+d;return(BigInt(s)<<BigInt(32))+BigInt(i)}),O.prototype.readIntLE=function(R,_,d){R=R>>>0,_=_>>>0,d||F(R,_,this.length);let s=this[R],i=1,E0=0;for(;++E0<_&&(i*=256);)s+=this[R+E0]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*_)),s},O.prototype.readIntBE=function(R,_,d){R=R>>>0,_=_>>>0,d||F(R,_,this.length);let s=_,i=1,E0=this[R+--s];for(;s>0&&(i*=256);)E0+=this[R+--s]*i;return i*=128,E0>=i&&(E0-=Math.pow(2,8*_)),E0},O.prototype.readInt8=function(R,_){return R=R>>>0,_||F(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},O.prototype.readInt16LE=function(R,_){R=R>>>0,_||F(R,2,this.length);let d=this[R]|this[R+1]<<8;return d&32768?d|4294901760:d},O.prototype.readInt16BE=function(R,_){R=R>>>0,_||F(R,2,this.length);let d=this[R+1]|this[R]<<8;return d&32768?d|4294901760:d},O.prototype.readInt32LE=function(R,_){return R=R>>>0,_||F(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},O.prototype.readInt32BE=function(R,_){return R=R>>>0,_||F(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},O.prototype.readBigInt64LE=G0(function(R){R=R>>>0,K0(R,"offset");let _=this[R],d=this[R+7];(_===void 0||d===void 0)&&w0(R,this.length-8);let s=this[R+4]+this[R+5]*256+this[R+6]*65536+(d<<24);return(BigInt(s)<<BigInt(32))+BigInt(_+this[++R]*256+this[++R]*65536+this[++R]*16777216)}),O.prototype.readBigInt64BE=G0(function(R){R=R>>>0,K0(R,"offset");let _=this[R],d=this[R+7];(_===void 0||d===void 0)&&w0(R,this.length-8);let s=(_<<24)+this[++R]*65536+this[++R]*256+this[++R];return(BigInt(s)<<BigInt(32))+BigInt(this[++R]*16777216+this[++R]*65536+this[++R]*256+d)}),O.prototype.readFloatLE=function(R,_){return R=R>>>0,_||F(R,4,this.length),B.read(this,R,!0,23,4)},O.prototype.readFloatBE=function(R,_){return R=R>>>0,_||F(R,4,this.length),B.read(this,R,!1,23,4)},O.prototype.readDoubleLE=function(R,_){return R=R>>>0,_||F(R,8,this.length),B.read(this,R,!0,52,8)},O.prototype.readDoubleBE=function(R,_){return R=R>>>0,_||F(R,8,this.length),B.read(this,R,!1,52,8)};function N(R,_,d,s,i,E0){if(!O.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>i||_<E0)throw new RangeError('"value" argument is out of bounds');if(d+s>R.length)throw new RangeError("Index out of range")}O.prototype.writeUintLE=O.prototype.writeUIntLE=function(R,_,d,s){if(R=+R,_=_>>>0,d=d>>>0,!s){let Y0=Math.pow(2,8*d)-1;N(this,R,_,d,Y0,0)}let i=1,E0=0;for(this[_]=R&255;++E0<d&&(i*=256);)this[_+E0]=R/i&255;return _+d},O.prototype.writeUintBE=O.prototype.writeUIntBE=function(R,_,d,s){if(R=+R,_=_>>>0,d=d>>>0,!s){let Y0=Math.pow(2,8*d)-1;N(this,R,_,d,Y0,0)}let i=d-1,E0=1;for(this[_+i]=R&255;--i>=0&&(E0*=256);)this[_+i]=R/E0&255;return _+d},O.prototype.writeUint8=O.prototype.writeUInt8=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,1,255,0),this[_]=R&255,_+1},O.prototype.writeUint16LE=O.prototype.writeUInt16LE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,2,65535,0),this[_]=R&255,this[_+1]=R>>>8,_+2},O.prototype.writeUint16BE=O.prototype.writeUInt16BE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,2,65535,0),this[_]=R>>>8,this[_+1]=R&255,_+2},O.prototype.writeUint32LE=O.prototype.writeUInt32LE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,4,4294967295,0),this[_+3]=R>>>24,this[_+2]=R>>>16,this[_+1]=R>>>8,this[_]=R&255,_+4},O.prototype.writeUint32BE=O.prototype.writeUInt32BE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,4,4294967295,0),this[_]=R>>>24,this[_+1]=R>>>16,this[_+2]=R>>>8,this[_+3]=R&255,_+4};function j(R,_,d,s,i){n(_,s,i,R,d,7);let E0=Number(_&BigInt(4294967295));R[d++]=E0,E0=E0>>8,R[d++]=E0,E0=E0>>8,R[d++]=E0,E0=E0>>8,R[d++]=E0;let Y0=Number(_>>BigInt(32)&BigInt(4294967295));return R[d++]=Y0,Y0=Y0>>8,R[d++]=Y0,Y0=Y0>>8,R[d++]=Y0,Y0=Y0>>8,R[d++]=Y0,d}function A(R,_,d,s,i){n(_,s,i,R,d,7);let E0=Number(_&BigInt(4294967295));R[d+7]=E0,E0=E0>>8,R[d+6]=E0,E0=E0>>8,R[d+5]=E0,E0=E0>>8,R[d+4]=E0;let Y0=Number(_>>BigInt(32)&BigInt(4294967295));return R[d+3]=Y0,Y0=Y0>>8,R[d+2]=Y0,Y0=Y0>>8,R[d+1]=Y0,Y0=Y0>>8,R[d]=Y0,d+8}O.prototype.writeBigUInt64LE=G0(function(R,_=0){return j(this,R,_,BigInt(0),BigInt("0xffffffffffffffff"))}),O.prototype.writeBigUInt64BE=G0(function(R,_=0){return A(this,R,_,BigInt(0),BigInt("0xffffffffffffffff"))}),O.prototype.writeIntLE=function(R,_,d,s){if(R=+R,_=_>>>0,!s){let J0=Math.pow(2,8*d-1);N(this,R,_,d,J0-1,-J0)}let i=0,E0=1,Y0=0;for(this[_]=R&255;++i<d&&(E0*=256);)R<0&&Y0===0&&this[_+i-1]!==0&&(Y0=1),this[_+i]=(R/E0>>0)-Y0&255;return _+d},O.prototype.writeIntBE=function(R,_,d,s){if(R=+R,_=_>>>0,!s){let J0=Math.pow(2,8*d-1);N(this,R,_,d,J0-1,-J0)}let i=d-1,E0=1,Y0=0;for(this[_+i]=R&255;--i>=0&&(E0*=256);)R<0&&Y0===0&&this[_+i+1]!==0&&(Y0=1),this[_+i]=(R/E0>>0)-Y0&255;return _+d},O.prototype.writeInt8=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,1,127,-128),R<0&&(R=255+R+1),this[_]=R&255,_+1},O.prototype.writeInt16LE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,2,32767,-32768),this[_]=R&255,this[_+1]=R>>>8,_+2},O.prototype.writeInt16BE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,2,32767,-32768),this[_]=R>>>8,this[_+1]=R&255,_+2},O.prototype.writeInt32LE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,4,2147483647,-2147483648),this[_]=R&255,this[_+1]=R>>>8,this[_+2]=R>>>16,this[_+3]=R>>>24,_+4},O.prototype.writeInt32BE=function(R,_,d){return R=+R,_=_>>>0,d||N(this,R,_,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[_]=R>>>24,this[_+1]=R>>>16,this[_+2]=R>>>8,this[_+3]=R&255,_+4},O.prototype.writeBigInt64LE=G0(function(R,_=0){return j(this,R,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),O.prototype.writeBigInt64BE=G0(function(R,_=0){return A(this,R,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function m(R,_,d,s,i,E0){if(d+s>R.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function h(R,_,d,s,i){return _=+_,d=d>>>0,i||m(R,_,d,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),B.write(R,_,d,s,23,4),d+4}O.prototype.writeFloatLE=function(R,_,d){return h(this,R,_,!0,d)},O.prototype.writeFloatBE=function(R,_,d){return h(this,R,_,!1,d)};function e(R,_,d,s,i){return _=+_,d=d>>>0,i||m(R,_,d,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),B.write(R,_,d,s,52,8),d+8}O.prototype.writeDoubleLE=function(R,_,d){return e(this,R,_,!0,d)},O.prototype.writeDoubleBE=function(R,_,d){return e(this,R,_,!1,d)},O.prototype.copy=function(R,_,d,s){if(!O.isBuffer(R))throw new TypeError("argument should be a Buffer");if(d||(d=0),!s&&s!==0&&(s=this.length),_>=R.length&&(_=R.length),_||(_=0),s>0&&s<d&&(s=d),s===d||R.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(d<0||d>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),R.length-_<s-d&&(s=R.length-_+d);let i=s-d;return this===R&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(_,d,s):Uint8Array.prototype.set.call(R,this.subarray(d,s),_),i},O.prototype.fill=function(R,_,d,s){if(typeof R=="string"){if(typeof _=="string"?(s=_,_=0,d=this.length):typeof d=="string"&&(s=d,d=this.length),s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!O.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(R.length===1){let E0=R.charCodeAt(0);(s==="utf8"&&E0<128||s==="latin1")&&(R=E0)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(_<0||this.length<_||this.length<d)throw new RangeError("Out of range index");if(d<=_)return this;_=_>>>0,d=d===void 0?this.length:d>>>0,R||(R=0);let i;if(typeof R=="number")for(i=_;i<d;++i)this[i]=R;else{let E0=O.isBuffer(R)?R:O.from(R,s),Y0=E0.length;if(Y0===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(i=0;i<d-_;++i)this[i+_]=E0[i%Y0]}return this};var T0={};function U0(R,_,d){T0[R]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:_.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${R}]`,this.stack,delete this.name}get code(){return R}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${R}]: ${this.message}`}}}U0("ERR_BUFFER_OUT_OF_BOUNDS",function(R){return R?`${R} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U0("ERR_INVALID_ARG_TYPE",function(R,_){return`The "${R}" argument must be of type number. Received type ${typeof _}`},TypeError),U0("ERR_OUT_OF_RANGE",function(R,_,d){let s=`The value of "${R}" is out of range.`,i=d;return Number.isInteger(d)&&Math.abs(d)>4294967296?i=y(String(d)):typeof d=="bigint"&&(i=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(i=y(i)),i+="n"),s+=` It must be ${_}. Received ${i}`,s},RangeError);function y(R){let _="",d=R.length,s=R[0]==="-"?1:0;for(;d>=s+4;d-=3)_=`_${R.slice(d-3,d)}${_}`;return`${R.slice(0,d)}${_}`}function o(R,_,d){K0(_,"offset"),(R[_]===void 0||R[_+d]===void 0)&&w0(_,R.length-(d+1))}function n(R,_,d,s,i,E0){if(R>d||R<_){let Y0=typeof _=="bigint"?"n":"",J0;throw E0>3?_===0||_===BigInt(0)?J0=`>= 0${Y0} and < 2${Y0} ** ${(E0+1)*8}${Y0}`:J0=`>= -(2${Y0} ** ${(E0+1)*8-1}${Y0}) and < 2 ** ${(E0+1)*8-1}${Y0}`:J0=`>= ${_}${Y0} and <= ${d}${Y0}`,new T0.ERR_OUT_OF_RANGE("value",J0,R)}o(s,i,E0)}function K0(R,_){if(typeof R!="number")throw new T0.ERR_INVALID_ARG_TYPE(_,"number",R)}function w0(R,_,d){throw Math.floor(R)!==R?(K0(R,d),new T0.ERR_OUT_OF_RANGE(d||"offset","an integer",R)):_<0?new T0.ERR_BUFFER_OUT_OF_BOUNDS:new T0.ERR_OUT_OF_RANGE(d||"offset",`>= ${d?1:0} and <= ${_}`,R)}var l=/[^+/0-9A-Za-z-_]/g;function u(R){if(R=R.split("=")[0],R=R.trim().replace(l,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function C0(R,_){_=_||1/0;let d,s=R.length,i=null,E0=[];for(let Y0=0;Y0<s;++Y0){if(d=R.charCodeAt(Y0),d>55295&&d<57344){if(!i){if(d>56319){(_-=3)>-1&&E0.push(239,191,189);continue}else if(Y0+1===s){(_-=3)>-1&&E0.push(239,191,189);continue}i=d;continue}if(d<56320){(_-=3)>-1&&E0.push(239,191,189),i=d;continue}d=(i-55296<<10|d-56320)+65536}else i&&(_-=3)>-1&&E0.push(239,191,189);if(i=null,d<128){if((_-=1)<0)break;E0.push(d)}else if(d<2048){if((_-=2)<0)break;E0.push(d>>6|192,d&63|128)}else if(d<65536){if((_-=3)<0)break;E0.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((_-=4)<0)break;E0.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return E0}function H0(R){let _=[];for(let d=0;d<R.length;++d)_.push(R.charCodeAt(d)&255);return _}function F0(R,_){let d,s,i,E0=[];for(let Y0=0;Y0<R.length&&!((_-=2)<0);++Y0)d=R.charCodeAt(Y0),s=d>>8,i=d%256,E0.push(i),E0.push(s);return E0}function y0(R){return M.toByteArray(u(R))}function a(R,_,d,s){let i;for(i=0;i<s&&!(i+d>=_.length||i>=R.length);++i)_[i+d]=R[i];return i}function X0(R,_){return R instanceof _||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===_.name}function M0(R){return R!==R}var W0=function(){let R="0123456789abcdef",_=new Array(256);for(let d=0;d<16;++d){let s=d*16;for(let i=0;i<16;++i)_[s+i]=R[d]+R[i]}return _}();function G0(R){return typeof BigInt>"u"?b0:R}function b0(){throw new Error("BigInt not supported")}}),l0=z0((v,M)=>{var B=j5(),S=B.Buffer;function Z(Q,O){for(var k in Q)O[k]=Q[k]}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?M.exports=B:(Z(B,v),v.Buffer=q);function q(Q,O,k){return S(Q,O,k)}q.prototype=Object.create(S.prototype),Z(S,q),q.from=function(Q,O,k){if(typeof Q=="number")throw new TypeError("Argument must not be a number");return S(Q,O,k)},q.alloc=function(Q,O,k){if(typeof Q!="number")throw new TypeError("Argument must be a number");var C=S(Q);return O!==void 0?typeof k=="string"?C.fill(O,k):C.fill(O):C.fill(0),C},q.allocUnsafe=function(Q){if(typeof Q!="number")throw new TypeError("Argument must be a number");return S(Q)},q.allocUnsafeSlow=function(Q){if(typeof Q!="number")throw new TypeError("Argument must be a number");return B.SlowBuffer(Q)}}),y5=z0((v,M)=>{var B=65536,S=4294967295;function Z(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
|
-
Use Chrome, Firefox or Internet Explorer 11`)}var q=l0().Buffer,Q=global.crypto||global.msCrypto;Q&&Q.getRandomValues?M.exports=O:M.exports=Z;function O(k,C){if(k>S)throw new RangeError("requested too many random bytes");var D=q.allocUnsafe(k);if(k>0)if(k>B)for(var P=0;P<k;P+=B)Q.getRandomValues(D.slice(P,P+B));else Q.getRandomValues(D);return typeof C=="function"?process.nextTick(function(){C(null,D)}):D}}),h0=z0((v,M)=>{typeof Object.create=="function"?M.exports=function(B,S){S&&(B.super_=S,B.prototype=Object.create(S.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}))}:M.exports=function(B,S){if(S){B.super_=S;var Z=function(){};Z.prototype=S.prototype,B.prototype=new Z,B.prototype.constructor=B}}}),J5=z0((v,M)=>{var B=class extends Error{constructor(S){if(!Array.isArray(S))throw new TypeError(`Expected input to be an Array, got ${typeof S}`);let Z="";for(let q=0;q<S.length;q++)Z+=` ${S[q].stack}
|
|
3
|
-
`;super(Z),this.name="AggregateError",this.errors=S}};M.exports={AggregateError:B,ArrayIsArray(S){return Array.isArray(S)},ArrayPrototypeIncludes(S,Z){return S.includes(Z)},ArrayPrototypeIndexOf(S,Z){return S.indexOf(Z)},ArrayPrototypeJoin(S,Z){return S.join(Z)},ArrayPrototypeMap(S,Z){return S.map(Z)},ArrayPrototypePop(S,Z){return S.pop(Z)},ArrayPrototypePush(S,Z){return S.push(Z)},ArrayPrototypeSlice(S,Z,q){return S.slice(Z,q)},Error,FunctionPrototypeCall(S,Z,...q){return S.call(Z,...q)},FunctionPrototypeSymbolHasInstance(S,Z){return Function.prototype[Symbol.hasInstance].call(S,Z)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(S,Z){return Object.defineProperties(S,Z)},ObjectDefineProperty(S,Z,q){return Object.defineProperty(S,Z,q)},ObjectGetOwnPropertyDescriptor(S,Z){return Object.getOwnPropertyDescriptor(S,Z)},ObjectKeys(S){return Object.keys(S)},ObjectSetPrototypeOf(S,Z){return Object.setPrototypeOf(S,Z)},Promise,PromisePrototypeCatch(S,Z){return S.catch(Z)},PromisePrototypeThen(S,Z,q){return S.then(Z,q)},PromiseReject(S){return Promise.reject(S)},PromiseResolve(S){return Promise.resolve(S)},ReflectApply:Reflect.apply,RegExpPrototypeTest(S,Z){return S.test(Z)},SafeSet:Set,String,StringPrototypeSlice(S,Z,q){return S.slice(Z,q)},StringPrototypeToLowerCase(S){return S.toLowerCase()},StringPrototypeToUpperCase(S){return S.toUpperCase()},StringPrototypeTrim(S){return S.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(S,Z,q){return S.set(Z,q)},Boolean,Uint8Array}}),b9=z0((v,M)=>{M.exports={format(B,...S){return B.replace(/%([sdifj])/g,function(...[Z,q]){let Q=S.shift();return q==="f"?Q.toFixed(6):q==="j"?JSON.stringify(Q):q==="s"&&typeof Q=="object"?`${Q.constructor!==Object?Q.constructor.name:""} {}`.trim():Q.toString()})},inspect(B){switch(typeof B){case"string":if(B.includes("'"))if(B.includes('"')){if(!B.includes("`")&&!B.includes("${"))return`\`${B}\``}else return`"${B}"`;return`'${B}'`;case"number":return isNaN(B)?"NaN":Object.is(B,-0)?String(B):B;case"bigint":return`${String(B)}n`;case"boolean":case"undefined":return String(B);case"object":return"{}"}}}}),z5=z0((v,M)=>{var{format:B,inspect:S}=b9(),{AggregateError:Z}=J5(),q=globalThis.AggregateError||Z,Q=Symbol("kIsNodeError"),O=["string","function","number","object","Function","Object","boolean","bigint","symbol"],k=/^([A-Z][a-z0-9]*)+$/,C="__node_internal_",D={};function P(E,x){if(!E)throw new D.ERR_INTERNAL_ASSERTION(x)}function J(E){let x="",b=E.length,w=E[0]==="-"?1:0;for(;b>=w+4;b-=3)x=`_${E.slice(b-3,b)}${x}`;return`${E.slice(0,b)}${x}`}function T(E,x,b){if(typeof x=="function")return P(x.length<=b.length,`Code: ${E}; The provided arguments length (${b.length}) does not match the required ones (${x.length}).`),x(...b);let w=(x.match(/%[dfijoOs]/g)||[]).length;return P(w===b.length,`Code: ${E}; The provided arguments length (${b.length}) does not match the required ones (${w}).`),b.length===0?x:B(x,...b)}function z(E,x,b){b||(b=Error);class w extends b{constructor(...g){super(T(E,x,g))}toString(){return`${this.name} [${E}]: ${this.message}`}}Object.defineProperties(w.prototype,{name:{value:b.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${E}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),w.prototype.code=E,w.prototype[Q]=!0,D[E]=w}function I(E){let x=C+E.name;return Object.defineProperty(E,"name",{value:x}),E}function L(E,x){if(E&&x&&E!==x){if(Array.isArray(x.errors))return x.errors.push(E),x;let b=new q([x,E],x.message);return b.code=x.code,b}return E||x}var p=class extends Error{constructor(E="The operation was aborted",x=void 0){if(x!==void 0&&typeof x!="object")throw new D.ERR_INVALID_ARG_TYPE("options","Object",x);super(E,x),this.code="ABORT_ERR",this.name="AbortError"}};z("ERR_ASSERTION","%s",Error),z("ERR_INVALID_ARG_TYPE",(E,x,b)=>{P(typeof E=="string","'name' must be a string"),Array.isArray(x)||(x=[x]);let w="The ";E.endsWith(" argument")?w+=`${E} `:w+=`"${E}" ${E.includes(".")?"property":"argument"} `,w+="must be ";let g=[],r=[],t=[];for(let f of x)P(typeof f=="string","All expected entries have to be of type string"),O.includes(f)?g.push(f.toLowerCase()):k.test(f)?r.push(f):(P(f!=="object",'The value "object" should be written as "Object"'),t.push(f));if(r.length>0){let f=g.indexOf("object");f!==-1&&(g.splice(g,f,1),r.push("Object"))}if(g.length>0){switch(g.length){case 1:w+=`of type ${g[0]}`;break;case 2:w+=`one of type ${g[0]} or ${g[1]}`;break;default:{let f=g.pop();w+=`one of type ${g.join(", ")}, or ${f}`}}(r.length>0||t.length>0)&&(w+=" or ")}if(r.length>0){switch(r.length){case 1:w+=`an instance of ${r[0]}`;break;case 2:w+=`an instance of ${r[0]} or ${r[1]}`;break;default:{let f=r.pop();w+=`an instance of ${r.join(", ")}, or ${f}`}}t.length>0&&(w+=" or ")}switch(t.length){case 0:break;case 1:t[0].toLowerCase()!==t[0]&&(w+="an "),w+=`${t[0]}`;break;case 2:w+=`one of ${t[0]} or ${t[1]}`;break;default:{let f=t.pop();w+=`one of ${t.join(", ")}, or ${f}`}}if(b==null)w+=`. Received ${b}`;else if(typeof b=="function"&&b.name)w+=`. Received function ${b.name}`;else if(typeof b=="object"){var $0;($0=b.constructor)!==null&&$0!==void 0&&$0.name?w+=`. Received an instance of ${b.constructor.name}`:w+=`. Received ${S(b,{depth:-1})}`}else{let f=S(b,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),w+=`. Received type ${typeof b} (${f})`}return w},TypeError),z("ERR_INVALID_ARG_VALUE",(E,x,b="is invalid")=>{let w=S(x);return w.length>128&&(w=w.slice(0,128)+"..."),`The ${E.includes(".")?"property":"argument"} '${E}' ${b}. Received ${w}`},TypeError),z("ERR_INVALID_RETURN_VALUE",(E,x,b)=>{var w;let g=b!=null&&(w=b.constructor)!==null&&w!==void 0&&w.name?`instance of ${b.constructor.name}`:`type ${typeof b}`;return`Expected ${E} to be returned from the "${x}" function but got ${g}.`},TypeError),z("ERR_MISSING_ARGS",(...E)=>{P(E.length>0,"At least one arg needs to be specified");let x,b=E.length;switch(E=(Array.isArray(E)?E:[E]).map((w)=>`"${w}"`).join(" or "),b){case 1:x+=`The ${E[0]} argument`;break;case 2:x+=`The ${E[0]} and ${E[1]} arguments`;break;default:{let w=E.pop();x+=`The ${E.join(", ")}, and ${w} arguments`}break}return`${x} must be specified`},TypeError),z("ERR_OUT_OF_RANGE",(E,x,b)=>{P(x,'Missing "range" argument');let w;if(Number.isInteger(b)&&Math.abs(b)>4294967296)w=J(String(b));else if(typeof b=="bigint"){w=String(b);let g=BigInt(2)**BigInt(32);(b>g||b<-g)&&(w=J(w)),w+="n"}else w=S(b);return`The value of "${E}" is out of range. It must be ${x}. Received ${w}`},RangeError),z("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),z("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),z("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),z("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),z("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),z("ERR_STREAM_WRITE_AFTER_END","write after end",Error),z("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),M.exports={AbortError:p,aggregateTwoErrors:I(L),hideStackFrames:I,codes:D}}),m5=z0((v,M)=>{var{AbortController:B,AbortSignal:S}=typeof self<"u"?self:typeof window<"u"?window:void 0;M.exports=B,M.exports.AbortSignal=S,M.exports.default=B}),w5=z0((v,M)=>{var B=typeof Reflect=="object"?Reflect:null,S=B&&typeof B.apply=="function"?B.apply:function(g,r,t){return Function.prototype.apply.call(g,r,t)},Z;B&&typeof B.ownKeys=="function"?Z=B.ownKeys:Object.getOwnPropertySymbols?Z=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:Z=function(g){return Object.getOwnPropertyNames(g)};function q(g){console&&console.warn&&console.warn(g)}var Q=Number.isNaN||function(g){return g!==g};function O(){O.init.call(this)}M.exports=O,M.exports.once=x,O.EventEmitter=O,O.prototype._events=void 0,O.prototype._eventsCount=0,O.prototype._maxListeners=void 0;var k=10;function C(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}Object.defineProperty(O,"defaultMaxListeners",{enumerable:!0,get:function(){return k},set:function(g){if(typeof g!="number"||g<0||Q(g))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+g+".");k=g}}),O.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},O.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||Q(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function D(g){return g._maxListeners===void 0?O.defaultMaxListeners:g._maxListeners}O.prototype.getMaxListeners=function(){return D(this)},O.prototype.emit=function(g){for(var r=[],t=1;t<arguments.length;t++)r.push(arguments[t]);var $0=g==="error",f=this._events;if(f!==void 0)$0=$0&&f.error===void 0;else if(!$0)return!1;if($0){var Z0;if(r.length>0&&(Z0=r[0]),Z0 instanceof Error)throw Z0;var K=new Error("Unhandled error."+(Z0?" ("+Z0.message+")":""));throw K.context=Z0,K}var W=f[g];if(W===void 0)return!1;if(typeof W=="function")S(W,this,r);else for(var U=W.length,V=L(W,U),t=0;t<U;++t)S(V[t],this,r);return!0};function P(g,r,t,$0){var f,Z0,K;if(C(t),Z0=g._events,Z0===void 0?(Z0=g._events=Object.create(null),g._eventsCount=0):(Z0.newListener!==void 0&&(g.emit("newListener",r,t.listener?t.listener:t),Z0=g._events),K=Z0[r]),K===void 0)K=Z0[r]=t,++g._eventsCount;else if(typeof K=="function"?K=Z0[r]=$0?[t,K]:[K,t]:$0?K.unshift(t):K.push(t),f=D(g),f>0&&K.length>f&&!K.warned){K.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=g,W.type=r,W.count=K.length,q(W)}return g}O.prototype.addListener=function(g,r){return P(this,g,r,!1)},O.prototype.on=O.prototype.addListener,O.prototype.prependListener=function(g,r){return P(this,g,r,!0)};function J(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(g,r,t){var $0={fired:!1,wrapFn:void 0,target:g,type:r,listener:t},f=J.bind($0);return f.listener=t,$0.wrapFn=f,f}O.prototype.once=function(g,r){return C(r),this.on(g,T(this,g,r)),this},O.prototype.prependOnceListener=function(g,r){return C(r),this.prependListener(g,T(this,g,r)),this},O.prototype.removeListener=function(g,r){var t,$0,f,Z0,K;if(C(r),$0=this._events,$0===void 0)return this;if(t=$0[g],t===void 0)return this;if(t===r||t.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete $0[g],$0.removeListener&&this.emit("removeListener",g,t.listener||r));else if(typeof t!="function"){for(f=-1,Z0=t.length-1;Z0>=0;Z0--)if(t[Z0]===r||t[Z0].listener===r){K=t[Z0].listener,f=Z0;break}if(f<0)return this;f===0?t.shift():p(t,f),t.length===1&&($0[g]=t[0]),$0.removeListener!==void 0&&this.emit("removeListener",g,K||r)}return this},O.prototype.off=O.prototype.removeListener,O.prototype.removeAllListeners=function(g){var r,t,$0;if(t=this._events,t===void 0)return this;if(t.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):t[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete t[g]),this;if(arguments.length===0){var f=Object.keys(t),Z0;for($0=0;$0<f.length;++$0)Z0=f[$0],Z0!=="removeListener"&&this.removeAllListeners(Z0);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=t[g],typeof r=="function")this.removeListener(g,r);else if(r!==void 0)for($0=r.length-1;$0>=0;$0--)this.removeListener(g,r[$0]);return this};function z(g,r,t){var $0=g._events;if($0===void 0)return[];var f=$0[r];return f===void 0?[]:typeof f=="function"?t?[f.listener||f]:[f]:t?E(f):L(f,f.length)}O.prototype.listeners=function(g){return z(this,g,!0)},O.prototype.rawListeners=function(g){return z(this,g,!1)},O.listenerCount=function(g,r){return typeof g.listenerCount=="function"?g.listenerCount(r):I.call(g,r)},O.prototype.listenerCount=I;function I(g){var r=this._events;if(r!==void 0){var t=r[g];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}O.prototype.eventNames=function(){return this._eventsCount>0?Z(this._events):[]};function L(g,r){for(var t=new Array(r),$0=0;$0<r;++$0)t[$0]=g[$0];return t}function p(g,r){for(;r+1<g.length;r++)g[r]=g[r+1];g.pop()}function E(g){for(var r=new Array(g.length),t=0;t<r.length;++t)r[t]=g[t].listener||g[t];return r}function x(g,r){return new Promise(function(t,$0){function f(K){g.removeListener(r,Z0),$0(K)}function Z0(){typeof g.removeListener=="function"&&g.removeListener("error",f),t([].slice.call(arguments))}w(g,r,Z0,{once:!0}),r!=="error"&&b(g,f,{once:!0})})}function b(g,r,t){typeof g.on=="function"&&w(g,"error",r,t)}function w(g,r,t,$0){if(typeof g.on=="function")$0.once?g.once(r,t):g.on(r,t);else if(typeof g.addEventListener=="function")g.addEventListener(r,function f(Z0){$0.once&&g.removeEventListener(r,f),t(Z0)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof g)}}),O5=z0((v,M)=>{var B=j5(),{format:S,inspect:Z}=b9(),{codes:{ERR_INVALID_ARG_TYPE:q}}=z5(),{kResistStopPropagation:Q,AggregateError:O,SymbolDispose:k}=J5(),C=globalThis.AbortSignal||m5().AbortSignal,D=globalThis.AbortController||m5().AbortController,P=Object.getPrototypeOf(async function(){}).constructor,J=globalThis.Blob||B.Blob,T=typeof J<"u"?function(L){return L instanceof J}:function(L){return!1},z=(L,p)=>{if(L!==void 0&&(L===null||typeof L!="object"||!("aborted"in L)))throw new q(p,"AbortSignal",L)},I=(L,p)=>{if(typeof L!="function")throw new q(p,"Function",L)};M.exports={AggregateError:O,kEmptyObject:Object.freeze({}),once(L){let p=!1;return function(...E){p||(p=!0,L.apply(this,E))}},createDeferredPromise:function(){let L,p;return{promise:new Promise((E,x)=>{L=E,p=x}),resolve:L,reject:p}},promisify(L){return new Promise((p,E)=>{L((x,...b)=>x?E(x):p(...b))})},debuglog(){return function(){}},format:S,inspect:Z,types:{isAsyncFunction(L){return L instanceof P},isArrayBufferView(L){return ArrayBuffer.isView(L)}},isBlob:T,deprecate(L,p){return L},addAbortListener:w5().addAbortListener||function(L,p){if(L===void 0)throw new q("signal","AbortSignal",L);z(L,"signal"),I(p,"listener");let E;return L.aborted?queueMicrotask(()=>p()):(L.addEventListener("abort",p,{__proto__:null,once:!0,[Q]:!0}),E=()=>{L.removeEventListener("abort",p)}),{__proto__:null,[k](){var x;(x=E)===null||x===void 0||x()}}},AbortSignalAny:C.any||function(L){if(L.length===1)return L[0];let p=new D,E=()=>p.abort();return L.forEach((x)=>{z(x,"signals"),x.addEventListener("abort",E,{once:!0})}),p.signal.addEventListener("abort",()=>{L.forEach((x)=>x.removeEventListener("abort",E))},{once:!0}),p.signal}},M.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),d5=z0((v,M)=>{var{ArrayIsArray:B,ArrayPrototypeIncludes:S,ArrayPrototypeJoin:Z,ArrayPrototypeMap:q,NumberIsInteger:Q,NumberIsNaN:O,NumberMAX_SAFE_INTEGER:k,NumberMIN_SAFE_INTEGER:C,NumberParseInt:D,ObjectPrototypeHasOwnProperty:P,RegExpPrototypeExec:J,String:T,StringPrototypeToUpperCase:z,StringPrototypeTrim:I}=J5(),{hideStackFrames:L,codes:{ERR_SOCKET_BAD_PORT:p,ERR_INVALID_ARG_TYPE:E,ERR_INVALID_ARG_VALUE:x,ERR_OUT_OF_RANGE:b,ERR_UNKNOWN_SIGNAL:w}}=z5(),{normalizeEncoding:g}=O5(),{isAsyncFunction:r,isArrayBufferView:t}=O5().types,$0={};function f(a){return a===(a|0)}function Z0(a){return a===a>>>0}var K=/^[0-7]+$/,W="must be a 32-bit unsigned integer or an octal string";function U(a,X0,M0){if(typeof a>"u"&&(a=M0),typeof a=="string"){if(J(K,a)===null)throw new x(X0,a,W);a=D(a,8)}return $(a,X0),a}var V=L((a,X0,M0=C,W0=k)=>{if(typeof a!="number")throw new E(X0,"number",a);if(!Q(a))throw new b(X0,"an integer",a);if(a<M0||a>W0)throw new b(X0,`>= ${M0} && <= ${W0}`,a)}),H=L((a,X0,M0=-2147483648,W0=2147483647)=>{if(typeof a!="number")throw new E(X0,"number",a);if(!Q(a))throw new b(X0,"an integer",a);if(a<M0||a>W0)throw new b(X0,`>= ${M0} && <= ${W0}`,a)}),$=L((a,X0,M0=!1)=>{if(typeof a!="number")throw new E(X0,"number",a);if(!Q(a))throw new b(X0,"an integer",a);let W0=M0?1:0,G0=4294967295;if(a<W0||a>G0)throw new b(X0,`>= ${W0} && <= ${G0}`,a)});function G(a,X0){if(typeof a!="string")throw new E(X0,"string",a)}function Y(a,X0,M0=void 0,W0){if(typeof a!="number")throw new E(X0,"number",a);if(M0!=null&&a<M0||W0!=null&&a>W0||(M0!=null||W0!=null)&&O(a))throw new b(X0,`${M0!=null?`>= ${M0}`:""}${M0!=null&&W0!=null?" && ":""}${W0!=null?`<= ${W0}`:""}`,a)}var X=L((a,X0,M0)=>{if(!S(M0,a)){let W0=Z(q(M0,(b0)=>typeof b0=="string"?`'${b0}'`:T(b0)),", "),G0="must be one of: "+W0;throw new x(X0,a,G0)}});function F(a,X0){if(typeof a!="boolean")throw new E(X0,"boolean",a)}function N(a,X0,M0){return a==null||!P(a,X0)?M0:a[X0]}var j=L((a,X0,M0=null)=>{let W0=N(M0,"allowArray",!1),G0=N(M0,"allowFunction",!1);if(!N(M0,"nullable",!1)&&a===null||!W0&&B(a)||typeof a!="object"&&(!G0||typeof a!="function"))throw new E(X0,"Object",a)}),A=L((a,X0)=>{if(a!=null&&typeof a!="object"&&typeof a!="function")throw new E(X0,"a dictionary",a)}),m=L((a,X0,M0=0)=>{if(!B(a))throw new E(X0,"Array",a);if(a.length<M0){let W0=`must be longer than ${M0}`;throw new x(X0,a,W0)}});function h(a,X0){m(a,X0);for(let M0=0;M0<a.length;M0++)G(a[M0],`${X0}[${M0}]`)}function e(a,X0){m(a,X0);for(let M0=0;M0<a.length;M0++)F(a[M0],`${X0}[${M0}]`)}function T0(a,X0){m(a,X0);for(let M0=0;M0<a.length;M0++){let W0=a[M0],G0=`${X0}[${M0}]`;if(W0==null)throw new E(G0,"AbortSignal",W0);K0(W0,G0)}}function U0(a,X0="signal"){if(G(a,X0),$0[a]===void 0)throw $0[z(a)]!==void 0?new w(a+" (signals must use all capital letters)"):new w(a)}var y=L((a,X0="buffer")=>{if(!t(a))throw new E(X0,["Buffer","TypedArray","DataView"],a)});function o(a,X0){let M0=g(X0),W0=a.length;if(M0==="hex"&&W0%2!==0)throw new x("encoding",X0,`is invalid for data of length ${W0}`)}function n(a,X0="Port",M0=!0){if(typeof a!="number"&&typeof a!="string"||typeof a=="string"&&I(a).length===0||+a!==+a>>>0||a>65535||a===0&&!M0)throw new p(X0,a,M0);return a|0}var K0=L((a,X0)=>{if(a!==void 0&&(a===null||typeof a!="object"||!("aborted"in a)))throw new E(X0,"AbortSignal",a)}),w0=L((a,X0)=>{if(typeof a!="function")throw new E(X0,"Function",a)}),l=L((a,X0)=>{if(typeof a!="function"||r(a))throw new E(X0,"Function",a)}),u=L((a,X0)=>{if(a!==void 0)throw new E(X0,"undefined",a)});function C0(a,X0,M0){if(!S(M0,a))throw new E(X0,`('${Z(M0,"|")}')`,a)}var H0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function F0(a,X0){if(typeof a>"u"||!J(H0,a))throw new x(X0,a,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function y0(a){if(typeof a=="string")return F0(a,"hints"),a;if(B(a)){let X0=a.length,M0="";if(X0===0)return M0;for(let W0=0;W0<X0;W0++){let G0=a[W0];F0(G0,"hints"),M0+=G0,W0!==X0-1&&(M0+=", ")}return M0}throw new x("hints",a,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}M.exports={isInt32:f,isUint32:Z0,parseFileMode:U,validateArray:m,validateStringArray:h,validateBooleanArray:e,validateAbortSignalArray:T0,validateBoolean:F,validateBuffer:y,validateDictionary:A,validateEncoding:o,validateFunction:w0,validateInt32:H,validateInteger:V,validateNumber:Y,validateObject:j,validateOneOf:X,validatePlainFunction:l,validatePort:n,validateSignalName:U0,validateString:G,validateUint32:$,validateUndefined:u,validateUnion:C0,validateAbortSignal:K0,validateLinkHeaderValue:y0}}),M9=z0((v,M)=>{var B=M.exports={},S,Z;function q(){throw new Error("setTimeout has not been defined")}function Q(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?S=setTimeout:S=q}catch{S=q}try{typeof clearTimeout=="function"?Z=clearTimeout:Z=Q}catch{Z=Q}})();function O(p){if(S===setTimeout)return setTimeout(p,0);if((S===q||!S)&&setTimeout)return S=setTimeout,setTimeout(p,0);try{return S(p,0)}catch{try{return S.call(null,p,0)}catch{return S.call(this,p,0)}}}function k(p){if(Z===clearTimeout)return clearTimeout(p);if((Z===Q||!Z)&&clearTimeout)return Z=clearTimeout,clearTimeout(p);try{return Z(p)}catch{try{return Z.call(null,p)}catch{return Z.call(this,p)}}}var C=[],D=!1,P,J=-1;function T(){!D||!P||(D=!1,P.length?C=P.concat(C):J=-1,C.length&&z())}function z(){if(!D){var p=O(T);D=!0;for(var E=C.length;E;){for(P=C,C=[];++J<E;)P&&P[J].run();J=-1,E=C.length}P=null,D=!1,k(p)}}B.nextTick=function(p){var E=new Array(arguments.length-1);if(arguments.length>1)for(var x=1;x<arguments.length;x++)E[x-1]=arguments[x];C.push(new I(p,E)),C.length===1&&!D&&O(z)};function I(p,E){this.fun=p,this.array=E}I.prototype.run=function(){this.fun.apply(null,this.array)},B.title="browser",B.browser=!0,B.env={},B.argv=[],B.version="",B.versions={};function L(){}B.on=L,B.addListener=L,B.once=L,B.off=L,B.removeListener=L,B.removeAllListeners=L,B.emit=L,B.prependListener=L,B.prependOnceListener=L,B.listeners=function(p){return[]},B.binding=function(p){throw new Error("process.binding is not supported")},B.cwd=function(){return"/"},B.chdir=function(p){throw new Error("process.chdir is not supported")},B.umask=function(){return 0}}),R5={};r5(R5,{default:()=>v9});var v9,p5=Z9(()=>{J9(R5,A5(M9())),v9=A5(M9())}),I5=z0((v,M)=>{var{SymbolAsyncIterator:B,SymbolIterator:S,SymbolFor:Z}=J5(),q=Z("nodejs.stream.destroyed"),Q=Z("nodejs.stream.errored"),O=Z("nodejs.stream.readable"),k=Z("nodejs.stream.writable"),C=Z("nodejs.stream.disturbed"),D=Z("nodejs.webstream.isClosedPromise"),P=Z("nodejs.webstream.controllerErrorFunction");function J(N,j=!1){var A;return!!(N&&typeof N.pipe=="function"&&typeof N.on=="function"&&(!j||typeof N.pause=="function"&&typeof N.resume=="function")&&(!N._writableState||((A=N._readableState)===null||A===void 0?void 0:A.readable)!==!1)&&(!N._writableState||N._readableState))}function T(N){var j;return!!(N&&typeof N.write=="function"&&typeof N.on=="function"&&(!N._readableState||((j=N._writableState)===null||j===void 0?void 0:j.writable)!==!1))}function z(N){return!!(N&&typeof N.pipe=="function"&&N._readableState&&typeof N.on=="function"&&typeof N.write=="function")}function I(N){return N&&(N._readableState||N._writableState||typeof N.write=="function"&&typeof N.on=="function"||typeof N.pipe=="function"&&typeof N.on=="function")}function L(N){return!!(N&&!I(N)&&typeof N.pipeThrough=="function"&&typeof N.getReader=="function"&&typeof N.cancel=="function")}function p(N){return!!(N&&!I(N)&&typeof N.getWriter=="function"&&typeof N.abort=="function")}function E(N){return!!(N&&!I(N)&&typeof N.readable=="object"&&typeof N.writable=="object")}function x(N){return L(N)||p(N)||E(N)}function b(N,j){return N==null?!1:j===!0?typeof N[B]=="function":j===!1?typeof N[S]=="function":typeof N[B]=="function"||typeof N[S]=="function"}function w(N){if(!I(N))return null;let{_writableState:j,_readableState:A}=N,m=j||A;return!!(N.destroyed||N[q]||m!=null&&m.destroyed)}function g(N){if(!T(N))return null;if(N.writableEnded===!0)return!0;let j=N._writableState;return j!=null&&j.errored?!1:typeof j?.ended!="boolean"?null:j.ended}function r(N,j){if(!T(N))return null;if(N.writableFinished===!0)return!0;let A=N._writableState;return A!=null&&A.errored?!1:typeof A?.finished!="boolean"?null:!!(A.finished||j===!1&&A.ended===!0&&A.length===0)}function t(N){if(!J(N))return null;if(N.readableEnded===!0)return!0;let j=N._readableState;return!j||j.errored?!1:typeof j?.ended!="boolean"?null:j.ended}function $0(N,j){if(!J(N))return null;let A=N._readableState;return A!=null&&A.errored?!1:typeof A?.endEmitted!="boolean"?null:!!(A.endEmitted||j===!1&&A.ended===!0&&A.length===0)}function f(N){return N&&N[O]!=null?N[O]:typeof N?.readable!="boolean"?null:w(N)?!1:J(N)&&N.readable&&!$0(N)}function Z0(N){return N&&N[k]!=null?N[k]:typeof N?.writable!="boolean"?null:w(N)?!1:T(N)&&N.writable&&!g(N)}function K(N,j){return I(N)?w(N)?!0:!(j?.readable!==!1&&f(N)||j?.writable!==!1&&Z0(N)):null}function W(N){var j,A;return I(N)?N.writableErrored?N.writableErrored:(j=(A=N._writableState)===null||A===void 0?void 0:A.errored)!==null&&j!==void 0?j:null:null}function U(N){var j,A;return I(N)?N.readableErrored?N.readableErrored:(j=(A=N._readableState)===null||A===void 0?void 0:A.errored)!==null&&j!==void 0?j:null:null}function V(N){if(!I(N))return null;if(typeof N.closed=="boolean")return N.closed;let{_writableState:j,_readableState:A}=N;return typeof j?.closed=="boolean"||typeof A?.closed=="boolean"?j?.closed||A?.closed:typeof N._closed=="boolean"&&H(N)?N._closed:null}function H(N){return typeof N._closed=="boolean"&&typeof N._defaultKeepAlive=="boolean"&&typeof N._removedConnection=="boolean"&&typeof N._removedContLen=="boolean"}function $(N){return typeof N._sent100=="boolean"&&H(N)}function G(N){var j;return typeof N._consuming=="boolean"&&typeof N._dumped=="boolean"&&((j=N.req)===null||j===void 0?void 0:j.upgradeOrConnect)===void 0}function Y(N){if(!I(N))return null;let{_writableState:j,_readableState:A}=N,m=j||A;return!m&&$(N)||!!(m&&m.autoDestroy&&m.emitClose&&m.closed===!1)}function X(N){var j;return!!(N&&((j=N[C])!==null&&j!==void 0?j:N.readableDidRead||N.readableAborted))}function F(N){var j,A,m,h,e,T0,U0,y,o,n;return!!(N&&((j=(A=(m=(h=(e=(T0=N[Q])!==null&&T0!==void 0?T0:N.readableErrored)!==null&&e!==void 0?e:N.writableErrored)!==null&&h!==void 0?h:(U0=N._readableState)===null||U0===void 0?void 0:U0.errorEmitted)!==null&&m!==void 0?m:(y=N._writableState)===null||y===void 0?void 0:y.errorEmitted)!==null&&A!==void 0?A:(o=N._readableState)===null||o===void 0?void 0:o.errored)!==null&&j!==void 0?j:(n=N._writableState)===null||n===void 0?void 0:n.errored))}M.exports={isDestroyed:w,kIsDestroyed:q,isDisturbed:X,kIsDisturbed:C,isErrored:F,kIsErrored:Q,isReadable:f,kIsReadable:O,kIsClosedPromise:D,kControllerErrorFunction:P,kIsWritable:k,isClosed:V,isDuplexNodeStream:z,isFinished:K,isIterable:b,isReadableNodeStream:J,isReadableStream:L,isReadableEnded:t,isReadableFinished:$0,isReadableErrored:U,isNodeStream:I,isWebStream:x,isWritable:Z0,isWritableNodeStream:T,isWritableStream:p,isWritableEnded:g,isWritableFinished:r,isWritableErrored:W,isServerRequest:G,isServerResponse:$,willEmitClose:Y,isTransformStream:E}}),B5=z0((v,M)=>{var B=(p5(),D5(R5)),{AbortError:S,codes:Z}=z5(),{ERR_INVALID_ARG_TYPE:q,ERR_STREAM_PREMATURE_CLOSE:Q}=Z,{kEmptyObject:O,once:k}=O5(),{validateAbortSignal:C,validateFunction:D,validateObject:P,validateBoolean:J}=d5(),{Promise:T,PromisePrototypeThen:z,SymbolDispose:I}=J5(),{isClosed:L,isReadable:p,isReadableNodeStream:E,isReadableStream:x,isReadableFinished:b,isReadableErrored:w,isWritable:g,isWritableNodeStream:r,isWritableStream:t,isWritableFinished:$0,isWritableErrored:f,isNodeStream:Z0,willEmitClose:K,kIsClosedPromise:W}=I5(),U;function V(X){return X.setHeader&&typeof X.abort=="function"}var H=()=>{};function $(X,F,N){var j,A;if(arguments.length===2?(N=F,F=O):F==null?F=O:P(F,"options"),D(N,"callback"),C(F.signal,"options.signal"),N=k(N),x(X)||t(X))return G(X,F,N);if(!Z0(X))throw new q("stream",["ReadableStream","WritableStream","Stream"],X);let m=(j=F.readable)!==null&&j!==void 0?j:E(X),h=(A=F.writable)!==null&&A!==void 0?A:r(X),e=X._writableState,T0=X._readableState,U0=()=>{X.writable||n()},y=K(X)&&E(X)===m&&r(X)===h,o=$0(X,!1),n=()=>{o=!0,X.destroyed&&(y=!1),!(y&&(!X.readable||m))&&(!m||K0)&&N.call(X)},K0=b(X,!1),w0=()=>{K0=!0,X.destroyed&&(y=!1),!(y&&(!X.writable||h))&&(!h||o)&&N.call(X)},l=(a)=>{N.call(X,a)},u=L(X),C0=()=>{u=!0;let a=f(X)||w(X);if(a&&typeof a!="boolean")return N.call(X,a);if(m&&!K0&&E(X,!0)&&!b(X,!1))return N.call(X,new Q);if(h&&!o&&!$0(X,!1))return N.call(X,new Q);N.call(X)},H0=()=>{u=!0;let a=f(X)||w(X);if(a&&typeof a!="boolean")return N.call(X,a);N.call(X)},F0=()=>{X.req.on("finish",n)};V(X)?(X.on("complete",n),y||X.on("abort",C0),X.req?F0():X.on("request",F0)):h&&!e&&(X.on("end",U0),X.on("close",U0)),!y&&typeof X.aborted=="boolean"&&X.on("aborted",C0),X.on("end",w0),X.on("finish",n),F.error!==!1&&X.on("error",l),X.on("close",C0),u?B.nextTick(C0):e!=null&&e.errorEmitted||T0!=null&&T0.errorEmitted?y||B.nextTick(H0):(!m&&(!y||p(X))&&(o||g(X)===!1)||!h&&(!y||g(X))&&(K0||p(X)===!1)||T0&&X.req&&X.aborted)&&B.nextTick(H0);let y0=()=>{N=H,X.removeListener("aborted",C0),X.removeListener("complete",n),X.removeListener("abort",C0),X.removeListener("request",F0),X.req&&X.req.removeListener("finish",n),X.removeListener("end",U0),X.removeListener("close",U0),X.removeListener("finish",n),X.removeListener("end",w0),X.removeListener("error",l),X.removeListener("close",C0)};if(F.signal&&!u){let a=()=>{let X0=N;y0(),X0.call(X,new S(void 0,{cause:F.signal.reason}))};if(F.signal.aborted)B.nextTick(a);else{U=U||O5().addAbortListener;let X0=U(F.signal,a),M0=N;N=k((...W0)=>{X0[I](),M0.apply(X,W0)})}}return y0}function G(X,F,N){let j=!1,A=H;if(F.signal)if(A=()=>{j=!0,N.call(X,new S(void 0,{cause:F.signal.reason}))},F.signal.aborted)B.nextTick(A);else{U=U||O5().addAbortListener;let h=U(F.signal,A),e=N;N=k((...T0)=>{h[I](),e.apply(X,T0)})}let m=(...h)=>{j||B.nextTick(()=>N.apply(X,h))};return z(X[W].promise,m,m),H}function Y(X,F){var N;let j=!1;return F===null&&(F=O),(N=F)!==null&&N!==void 0&&N.cleanup&&(J(F.cleanup,"cleanup"),j=F.cleanup),new T((A,m)=>{let h=$(X,F,(e)=>{j&&h(),e?m(e):A()})})}M.exports=$,M.exports.finished=Y}),g5=z0((v,M)=>{var B=(p5(),D5(R5)),{aggregateTwoErrors:S,codes:{ERR_MULTIPLE_CALLBACK:Z},AbortError:q}=z5(),{Symbol:Q}=J5(),{kIsDestroyed:O,isDestroyed:k,isFinished:C,isServerRequest:D}=I5(),P=Q("kDestroy"),J=Q("kConstruct");function T(K,W,U){K&&(K.stack,W&&!W.errored&&(W.errored=K),U&&!U.errored&&(U.errored=K))}function z(K,W){let U=this._readableState,V=this._writableState,H=V||U;return V!=null&&V.destroyed||U!=null&&U.destroyed?(typeof W=="function"&&W(),this):(T(K,V,U),V&&(V.destroyed=!0),U&&(U.destroyed=!0),H.constructed?I(this,K,W):this.once(P,function($){I(this,S($,K),W)}),this)}function I(K,W,U){let V=!1;function H($){if(V)return;V=!0;let{_readableState:G,_writableState:Y}=K;T($,Y,G),Y&&(Y.closed=!0),G&&(G.closed=!0),typeof U=="function"&&U($),$?B.nextTick(L,K,$):B.nextTick(p,K)}try{K._destroy(W||null,H)}catch($){H($)}}function L(K,W){E(K,W),p(K)}function p(K){let{_readableState:W,_writableState:U}=K;U&&(U.closeEmitted=!0),W&&(W.closeEmitted=!0),(U!=null&&U.emitClose||W!=null&&W.emitClose)&&K.emit("close")}function E(K,W){let{_readableState:U,_writableState:V}=K;V!=null&&V.errorEmitted||U!=null&&U.errorEmitted||(V&&(V.errorEmitted=!0),U&&(U.errorEmitted=!0),K.emit("error",W))}function x(){let K=this._readableState,W=this._writableState;K&&(K.constructed=!0,K.closed=!1,K.closeEmitted=!1,K.destroyed=!1,K.errored=null,K.errorEmitted=!1,K.reading=!1,K.ended=K.readable===!1,K.endEmitted=K.readable===!1),W&&(W.constructed=!0,W.destroyed=!1,W.closed=!1,W.closeEmitted=!1,W.errored=null,W.errorEmitted=!1,W.finalCalled=!1,W.prefinished=!1,W.ended=W.writable===!1,W.ending=W.writable===!1,W.finished=W.writable===!1)}function b(K,W,U){let{_readableState:V,_writableState:H}=K;if(H!=null&&H.destroyed||V!=null&&V.destroyed)return this;V!=null&&V.autoDestroy||H!=null&&H.autoDestroy?K.destroy(W):W&&(W.stack,H&&!H.errored&&(H.errored=W),V&&!V.errored&&(V.errored=W),U?B.nextTick(E,K,W):E(K,W))}function w(K,W){if(typeof K._construct!="function")return;let{_readableState:U,_writableState:V}=K;U&&(U.constructed=!1),V&&(V.constructed=!1),K.once(J,W),!(K.listenerCount(J)>1)&&B.nextTick(g,K)}function g(K){let W=!1;function U(V){if(W){b(K,V??new Z);return}W=!0;let{_readableState:H,_writableState:$}=K,G=$||H;H&&(H.constructed=!0),$&&($.constructed=!0),G.destroyed?K.emit(P,V):V?b(K,V,!0):B.nextTick(r,K)}try{K._construct((V)=>{B.nextTick(U,V)})}catch(V){B.nextTick(U,V)}}function r(K){K.emit(J)}function t(K){return K?.setHeader&&typeof K.abort=="function"}function $0(K){K.emit("close")}function f(K,W){K.emit("error",W),B.nextTick($0,K)}function Z0(K,W){!K||k(K)||(!W&&!C(K)&&(W=new q),D(K)?(K.socket=null,K.destroy(W)):t(K)?K.abort():t(K.req)?K.req.abort():typeof K.destroy=="function"?K.destroy(W):typeof K.close=="function"?K.close():W?B.nextTick(f,K,W):B.nextTick($0,K),K.destroyed||(K[O]=!0))}M.exports={construct:w,destroyer:Z0,destroy:z,undestroy:x,errorOrDestroy:b}}),z9=z0((v,M)=>{var{ArrayIsArray:B,ObjectSetPrototypeOf:S}=J5(),{EventEmitter:Z}=w5();function q(O){Z.call(this,O)}S(q.prototype,Z.prototype),S(q,Z),q.prototype.pipe=function(O,k){let C=this;function D(p){O.writable&&O.write(p)===!1&&C.pause&&C.pause()}C.on("data",D);function P(){C.readable&&C.resume&&C.resume()}O.on("drain",P),!O._isStdio&&(!k||k.end!==!1)&&(C.on("end",T),C.on("close",z));let J=!1;function T(){J||(J=!0,O.end())}function z(){J||(J=!0,typeof O.destroy=="function"&&O.destroy())}function I(p){L(),Z.listenerCount(this,"error")===0&&this.emit("error",p)}Q(C,"error",I),Q(O,"error",I);function L(){C.removeListener("data",D),O.removeListener("drain",P),C.removeListener("end",T),C.removeListener("close",z),C.removeListener("error",I),O.removeListener("error",I),C.removeListener("end",L),C.removeListener("close",L),O.removeListener("close",L)}return C.on("end",L),C.on("close",L),O.on("close",L),O.emit("pipe",C),O};function Q(O,k,C){if(typeof O.prependListener=="function")return O.prependListener(k,C);!O._events||!O._events[k]?O.on(k,C):B(O._events[k])?O._events[k].unshift(C):O._events[k]=[C,O._events[k]]}M.exports={Stream:q,prependListener:Q}}),t5=z0((v,M)=>{var{SymbolDispose:B}=J5(),{AbortError:S,codes:Z}=z5(),{isNodeStream:q,isWebStream:Q,kControllerErrorFunction:O}=I5(),k=B5(),{ERR_INVALID_ARG_TYPE:C}=Z,D,P=(J,T)=>{if(typeof J!="object"||!("aborted"in J))throw new C(T,"AbortSignal",J)};M.exports.addAbortSignal=function(J,T){if(P(J,"signal"),!q(T)&&!Q(T))throw new C("stream",["ReadableStream","WritableStream","Stream"],T);return M.exports.addAbortSignalNoValidate(J,T)},M.exports.addAbortSignalNoValidate=function(J,T){if(typeof J!="object"||!("aborted"in J))return T;let z=q(T)?()=>{T.destroy(new S(void 0,{cause:J.reason}))}:()=>{T[O](new S(void 0,{cause:J.reason}))};if(J.aborted)z();else{D=D||O5().addAbortListener;let I=D(J,z);k(T,I[B])}return T}}),r4=z0((v,M)=>{var{StringPrototypeSlice:B,SymbolIterator:S,TypedArrayPrototypeSet:Z,Uint8Array:q}=J5(),{Buffer:Q}=j5(),{inspect:O}=O5();M.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(k){let C={data:k,next:null};this.length>0?this.tail.next=C:this.head=C,this.tail=C,++this.length}unshift(k){let C={data:k,next:this.head};this.length===0&&(this.tail=C),this.head=C,++this.length}shift(){if(this.length===0)return;let k=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,k}clear(){this.head=this.tail=null,this.length=0}join(k){if(this.length===0)return"";let C=this.head,D=""+C.data;for(;(C=C.next)!==null;)D+=k+C.data;return D}concat(k){if(this.length===0)return Q.alloc(0);let C=Q.allocUnsafe(k>>>0),D=this.head,P=0;for(;D;)Z(C,D.data,P),P+=D.data.length,D=D.next;return C}consume(k,C){let D=this.head.data;if(k<D.length){let P=D.slice(0,k);return this.head.data=D.slice(k),P}return k===D.length?this.shift():C?this._getString(k):this._getBuffer(k)}first(){return this.head.data}*[S](){for(let k=this.head;k;k=k.next)yield k.data}_getString(k){let C="",D=this.head,P=0;do{let J=D.data;if(k>J.length)C+=J,k-=J.length;else{k===J.length?(C+=J,++P,D.next?this.head=D.next:this.head=this.tail=null):(C+=B(J,0,k),this.head=D,D.data=B(J,k));break}++P}while((D=D.next)!==null);return this.length-=P,C}_getBuffer(k){let C=Q.allocUnsafe(k),D=k,P=this.head,J=0;do{let T=P.data;if(k>T.length)Z(C,T,D-k),k-=T.length;else{k===T.length?(Z(C,T,D-k),++J,P.next?this.head=P.next:this.head=this.tail=null):(Z(C,new q(T.buffer,T.byteOffset,k),D-k),this.head=P,P.data=T.slice(k));break}++J}while((P=P.next)!==null);return this.length-=J,C}[Symbol.for("nodejs.util.inspect.custom")](k,C){return O(this,{...C,depth:0,customInspect:!1})}}}),e5=z0((v,M)=>{var{MathFloor:B,NumberIsInteger:S}=J5(),{validateInteger:Z}=d5(),{ERR_INVALID_ARG_VALUE:q}=z5().codes,Q=16384,O=16;function k(J,T,z){return J.highWaterMark!=null?J.highWaterMark:T?J[z]:null}function C(J){return J?O:Q}function D(J,T){Z(T,"value",0),J?O=T:Q=T}function P(J,T,z,I){let L=k(T,I,z);if(L!=null){if(!S(L)||L<0){let p=I?`options.${z}`:"options.highWaterMark";throw new q(p,L)}return B(L)}return C(J.objectMode)}M.exports={getHighWaterMark:P,getDefaultHighWaterMark:C,setDefaultHighWaterMark:D}}),m9=z0((v)=>{var M=l0().Buffer,B=M.isEncoding||function(E){switch(E=""+E,E&&E.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 S(E){if(!E)return"utf8";for(var x;;)switch(E){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 E;default:if(x)return;E=(""+E).toLowerCase(),x=!0}}function Z(E){var x=S(E);if(typeof x!="string"&&(M.isEncoding===B||!B(E)))throw new Error("Unknown encoding: "+E);return x||E}v.StringDecoder=q;function q(E){this.encoding=Z(E);var x;switch(this.encoding){case"utf16le":this.text=J,this.end=T,x=4;break;case"utf8":this.fillLast=C,x=4;break;case"base64":this.text=z,this.end=I,x=3;break;default:this.write=L,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=M.allocUnsafe(x)}q.prototype.write=function(E){if(E.length===0)return"";var x,b;if(this.lastNeed){if(x=this.fillLast(E),x===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<E.length?x?x+this.text(E,b):this.text(E,b):x||""},q.prototype.end=P,q.prototype.text=D,q.prototype.fillLast=function(E){if(this.lastNeed<=E.length)return E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,E.length),this.lastNeed-=E.length};function Q(E){return E<=127?0:E>>5===6?2:E>>4===14?3:E>>3===30?4:E>>6===2?-1:-2}function O(E,x,b){var w=x.length-1;if(w<b)return 0;var g=Q(x[w]);return g>=0?(g>0&&(E.lastNeed=g-1),g):--w<b||g===-2?0:(g=Q(x[w]),g>=0?(g>0&&(E.lastNeed=g-2),g):--w<b||g===-2?0:(g=Q(x[w]),g>=0?(g>0&&(g===2?g=0:E.lastNeed=g-3),g):0))}function k(E,x,b){if((x[0]&192)!==128)return E.lastNeed=0,"�";if(E.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return E.lastNeed=1,"�";if(E.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return E.lastNeed=2,"�"}}function C(E){var x=this.lastTotal-this.lastNeed,b=k(this,E,x);if(b!==void 0)return b;if(this.lastNeed<=E.length)return E.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,x,0,E.length),this.lastNeed-=E.length}function D(E,x){var b=O(this,E,x);if(!this.lastNeed)return E.toString("utf8",x);this.lastTotal=b;var w=E.length-(b-this.lastNeed);return E.copy(this.lastChar,0,w),E.toString("utf8",x,w)}function P(E){var x=E&&E.length?this.write(E):"";return this.lastNeed?x+"�":x}function J(E,x){if((E.length-x)%2===0){var b=E.toString("utf16le",x);if(b){var w=b.charCodeAt(b.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",x,E.length-1)}function T(E){var x=E&&E.length?this.write(E):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,b)}return x}function z(E,x){var b=(E.length-x)%3;return b===0?E.toString("base64",x):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=E[E.length-1]:(this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1]),E.toString("base64",x,E.length-b))}function I(E){var x=E&&E.length?this.write(E):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function L(E){return E.toString(this.encoding)}function p(E){return E&&E.length?this.write(E):""}}),a5={};r5(a5,{StringDecoder:()=>G9.StringDecoder,default:()=>G9.StringDecoder});var G9,P9=Z9(()=>{G9=A5(m9())}),c9=z0((v,M)=>{var B=(p5(),D5(R5)),{PromisePrototypeThen:S,SymbolAsyncIterator:Z,SymbolIterator:q}=J5(),{Buffer:Q}=j5(),{ERR_INVALID_ARG_TYPE:O,ERR_STREAM_NULL_VALUES:k}=z5().codes;function C(D,P,J){let T;if(typeof P=="string"||P instanceof Q)return new D({objectMode:!0,...J,read(){this.push(P),this.push(null)}});let z;if(P&&P[Z])z=!0,T=P[Z]();else if(P&&P[q])z=!1,T=P[q]();else throw new O("iterable",["Iterable"],P);let I=new D({objectMode:!0,highWaterMark:1,...J}),L=!1;I._read=function(){L||(L=!0,E())},I._destroy=function(x,b){S(p(x),()=>B.nextTick(b,x),(w)=>B.nextTick(b,w||x))};async function p(x){let b=x!=null,w=typeof T.throw=="function";if(b&&w){let{value:g,done:r}=await T.throw(x);if(await g,r)return}if(typeof T.return=="function"){let{value:g}=await T.return();await g}}async function E(){for(;;){try{let{value:x,done:b}=z?await T.next():T.next();if(b)I.push(null);else{let w=x&&typeof x.then=="function"?await x:x;if(w===null)throw L=!1,new k;if(I.push(w))continue;L=!1}}catch(x){I.destroy(x)}break}}return I}M.exports=C}),K9=z0((v,M)=>{var B=(p5(),D5(R5)),{ArrayPrototypeIndexOf:S,NumberIsInteger:Z,NumberIsNaN:q,NumberParseInt:Q,ObjectDefineProperties:O,ObjectKeys:k,ObjectSetPrototypeOf:C,Promise:D,SafeSet:P,SymbolAsyncDispose:J,SymbolAsyncIterator:T,Symbol:z}=J5();M.exports=W0,W0.ReadableState=M0;var{EventEmitter:I}=w5(),{Stream:L,prependListener:p}=z9(),{Buffer:E}=j5(),{addAbortSignal:x}=t5(),b=B5(),w=O5().debuglog("stream",(c)=>{w=c}),g=r4(),r=g5(),{getHighWaterMark:t,getDefaultHighWaterMark:$0}=e5(),{aggregateTwoErrors:f,codes:{ERR_INVALID_ARG_TYPE:Z0,ERR_METHOD_NOT_IMPLEMENTED:K,ERR_OUT_OF_RANGE:W,ERR_STREAM_PUSH_AFTER_EOF:U,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:V},AbortError:H}=z5(),{validateObject:$}=d5(),G=z("kPaused"),{StringDecoder:Y}=(P9(),D5(a5)),X=c9();C(W0.prototype,L.prototype),C(W0,L);var F=()=>{},{errorOrDestroy:N}=r,j=1,A=2,m=4,h=8,e=16,T0=32,U0=64,y=128,o=256,n=512,K0=1024,w0=2048,l=4096,u=8192,C0=16384,H0=32768,F0=65536,y0=131072,a=262144;function X0(c){return{enumerable:!1,get(){return(this.state&c)!==0},set(V0){V0?this.state|=c:this.state&=~c}}}O(M0.prototype,{objectMode:X0(j),ended:X0(A),endEmitted:X0(m),reading:X0(h),constructed:X0(e),sync:X0(T0),needReadable:X0(U0),emittedReadable:X0(y),readableListening:X0(o),resumeScheduled:X0(n),errorEmitted:X0(K0),emitClose:X0(w0),autoDestroy:X0(l),destroyed:X0(u),closed:X0(C0),closeEmitted:X0(H0),multiAwaitDrain:X0(F0),readingMore:X0(y0),dataEmitted:X0(a)});function M0(c,V0,Q0){typeof Q0!="boolean"&&(Q0=V0 instanceof k5()),this.state=w0|l|e|T0,c&&c.objectMode&&(this.state|=j),Q0&&c&&c.readableObjectMode&&(this.state|=j),this.highWaterMark=c?t(this,c,"readableHighWaterMark",Q0):$0(!1),this.buffer=new g,this.length=0,this.pipes=[],this.flowing=null,this[G]=null,c&&c.emitClose===!1&&(this.state&=~w0),c&&c.autoDestroy===!1&&(this.state&=~l),this.errored=null,this.defaultEncoding=c&&c.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,c&&c.encoding&&(this.decoder=new Y(c.encoding),this.encoding=c.encoding)}function W0(c){if(!(this instanceof W0))return new W0(c);let V0=this instanceof k5();this._readableState=new M0(c,this,V0),c&&(typeof c.read=="function"&&(this._read=c.read),typeof c.destroy=="function"&&(this._destroy=c.destroy),typeof c.construct=="function"&&(this._construct=c.construct),c.signal&&!V0&&x(c.signal,this)),L.call(this,c),r.construct(this,()=>{this._readableState.needReadable&&Y0(this,this._readableState)})}W0.prototype.destroy=r.destroy,W0.prototype._undestroy=r.undestroy,W0.prototype._destroy=function(c,V0){V0(c)},W0.prototype[I.captureRejectionSymbol]=function(c){this.destroy(c)},W0.prototype[J]=function(){let c;return this.destroyed||(c=this.readableEnded?null:new H,this.destroy(c)),new D((V0,Q0)=>b(this,(P0)=>P0&&P0!==c?Q0(P0):V0(null)))},W0.prototype.push=function(c,V0){return G0(this,c,V0,!1)},W0.prototype.unshift=function(c,V0){return G0(this,c,V0,!0)};function G0(c,V0,Q0,P0){w("readableAddChunk",V0);let g0=c._readableState,D0;if((g0.state&j)===0&&(typeof V0=="string"?(Q0=Q0||g0.defaultEncoding,g0.encoding!==Q0&&(P0&&g0.encoding?V0=E.from(V0,Q0).toString(g0.encoding):(V0=E.from(V0,Q0),Q0=""))):V0 instanceof E?Q0="":L._isUint8Array(V0)?(V0=L._uint8ArrayToBuffer(V0),Q0=""):V0!=null&&(D0=new Z0("chunk",["string","Buffer","Uint8Array"],V0))),D0)N(c,D0);else if(V0===null)g0.state&=~h,s(c,g0);else if((g0.state&j)!==0||V0&&V0.length>0)if(P0)if((g0.state&m)!==0)N(c,new V);else{if(g0.destroyed||g0.errored)return!1;b0(c,g0,V0,!0)}else if(g0.ended)N(c,new U);else{if(g0.destroyed||g0.errored)return!1;g0.state&=~h,g0.decoder&&!Q0?(V0=g0.decoder.write(V0),g0.objectMode||V0.length!==0?b0(c,g0,V0,!1):Y0(c,g0)):b0(c,g0,V0,!1)}else P0||(g0.state&=~h,Y0(c,g0));return!g0.ended&&(g0.length<g0.highWaterMark||g0.length===0)}function b0(c,V0,Q0,P0){V0.flowing&&V0.length===0&&!V0.sync&&c.listenerCount("data")>0?((V0.state&F0)!==0?V0.awaitDrainWriters.clear():V0.awaitDrainWriters=null,V0.dataEmitted=!0,c.emit("data",Q0)):(V0.length+=V0.objectMode?1:Q0.length,P0?V0.buffer.unshift(Q0):V0.buffer.push(Q0),(V0.state&U0)!==0&&i(c)),Y0(c,V0)}W0.prototype.isPaused=function(){let c=this._readableState;return c[G]===!0||c.flowing===!1},W0.prototype.setEncoding=function(c){let V0=new Y(c);this._readableState.decoder=V0,this._readableState.encoding=this._readableState.decoder.encoding;let Q0=this._readableState.buffer,P0="";for(let g0 of Q0)P0+=V0.write(g0);return Q0.clear(),P0!==""&&Q0.push(P0),this._readableState.length=P0.length,this};var R=1073741824;function _(c){if(c>R)throw new W("size","<= 1GiB",c);return c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++,c}function d(c,V0){return c<=0||V0.length===0&&V0.ended?0:(V0.state&j)!==0?1:q(c)?V0.flowing&&V0.length?V0.buffer.first().length:V0.length:c<=V0.length?c:V0.ended?V0.length:0}W0.prototype.read=function(c){w("read",c),c===void 0?c=NaN:Z(c)||(c=Q(c,10));let V0=this._readableState,Q0=c;if(c>V0.highWaterMark&&(V0.highWaterMark=_(c)),c!==0&&(V0.state&=~y),c===0&&V0.needReadable&&((V0.highWaterMark!==0?V0.length>=V0.highWaterMark:V0.length>0)||V0.ended))return w("read: emitReadable",V0.length,V0.ended),V0.length===0&&V0.ended?$5(this):i(this),null;if(c=d(c,V0),c===0&&V0.ended)return V0.length===0&&$5(this),null;let P0=(V0.state&U0)!==0;if(w("need readable",P0),(V0.length===0||V0.length-c<V0.highWaterMark)&&(P0=!0,w("length less than watermark",P0)),V0.ended||V0.reading||V0.destroyed||V0.errored||!V0.constructed)P0=!1,w("reading, ended or constructing",P0);else if(P0){w("do read"),V0.state|=h|T0,V0.length===0&&(V0.state|=U0);try{this._read(V0.highWaterMark)}catch(D0){N(this,D0)}V0.state&=~T0,V0.reading||(c=d(Q0,V0))}let g0;return c>0?g0=R0(c,V0):g0=null,g0===null?(V0.needReadable=V0.length<=V0.highWaterMark,c=0):(V0.length-=c,V0.multiAwaitDrain?V0.awaitDrainWriters.clear():V0.awaitDrainWriters=null),V0.length===0&&(V0.ended||(V0.needReadable=!0),Q0!==c&&V0.ended&&$5(this)),g0!==null&&!V0.errorEmitted&&!V0.closeEmitted&&(V0.dataEmitted=!0,this.emit("data",g0)),g0};function s(c,V0){if(w("onEofChunk"),!V0.ended){if(V0.decoder){let Q0=V0.decoder.end();Q0&&Q0.length&&(V0.buffer.push(Q0),V0.length+=V0.objectMode?1:Q0.length)}V0.ended=!0,V0.sync?i(c):(V0.needReadable=!1,V0.emittedReadable=!0,E0(c))}}function i(c){let V0=c._readableState;w("emitReadable",V0.needReadable,V0.emittedReadable),V0.needReadable=!1,V0.emittedReadable||(w("emitReadable",V0.flowing),V0.emittedReadable=!0,B.nextTick(E0,c))}function E0(c){let V0=c._readableState;w("emitReadable_",V0.destroyed,V0.length,V0.ended),!V0.destroyed&&!V0.errored&&(V0.length||V0.ended)&&(c.emit("readable"),V0.emittedReadable=!1),V0.needReadable=!V0.flowing&&!V0.ended&&V0.length<=V0.highWaterMark,k0(c)}function Y0(c,V0){!V0.readingMore&&V0.constructed&&(V0.readingMore=!0,B.nextTick(J0,c,V0))}function J0(c,V0){for(;!V0.reading&&!V0.ended&&(V0.length<V0.highWaterMark||V0.flowing&&V0.length===0);){let Q0=V0.length;if(w("maybeReadMore read 0"),c.read(0),Q0===V0.length)break}V0.readingMore=!1}W0.prototype._read=function(c){throw new K("_read()")},W0.prototype.pipe=function(c,V0){let Q0=this,P0=this._readableState;P0.pipes.length===1&&(P0.multiAwaitDrain||(P0.multiAwaitDrain=!0,P0.awaitDrainWriters=new P(P0.awaitDrainWriters?[P0.awaitDrainWriters]:[]))),P0.pipes.push(c),w("pipe count=%d opts=%j",P0.pipes.length,V0);let g0=(!V0||V0.end!==!1)&&c!==B.stdout&&c!==B.stderr?N0:v0;P0.endEmitted?B.nextTick(g0):Q0.once("end",g0),c.on("unpipe",D0);function D0(u0,s0){w("onunpipe"),u0===Q0&&s0&&s0.hasUnpiped===!1&&(s0.hasUnpiped=!0,x0())}function N0(){w("onend"),c.end()}let f0,q0=!1;function x0(){w("cleanup"),c.removeListener("close",o0),c.removeListener("finish",m0),f0&&c.removeListener("drain",f0),c.removeListener("error",L0),c.removeListener("unpipe",D0),Q0.removeListener("end",N0),Q0.removeListener("end",v0),Q0.removeListener("data",B0),q0=!0,f0&&P0.awaitDrainWriters&&(!c._writableState||c._writableState.needDrain)&&f0()}function Z5(){q0||(P0.pipes.length===1&&P0.pipes[0]===c?(w("false write response, pause",0),P0.awaitDrainWriters=c,P0.multiAwaitDrain=!1):P0.pipes.length>1&&P0.pipes.includes(c)&&(w("false write response, pause",P0.awaitDrainWriters.size),P0.awaitDrainWriters.add(c)),Q0.pause()),f0||(f0=d0(Q0,c),c.on("drain",f0))}Q0.on("data",B0);function B0(u0){w("ondata");let s0=c.write(u0);w("dest.write",s0),s0===!1&&Z5()}function L0(u0){if(w("onerror",u0),v0(),c.removeListener("error",L0),c.listenerCount("error")===0){let s0=c._writableState||c._readableState;s0&&!s0.errorEmitted?N(c,u0):c.emit("error",u0)}}p(c,"error",L0);function o0(){c.removeListener("finish",m0),v0()}c.once("close",o0);function m0(){w("onfinish"),c.removeListener("close",o0),v0()}c.once("finish",m0);function v0(){w("unpipe"),Q0.unpipe(c)}return c.emit("pipe",Q0),c.writableNeedDrain===!0?Z5():P0.flowing||(w("pipe resume"),Q0.resume()),c};function d0(c,V0){return function(){let Q0=c._readableState;Q0.awaitDrainWriters===V0?(w("pipeOnDrain",1),Q0.awaitDrainWriters=null):Q0.multiAwaitDrain&&(w("pipeOnDrain",Q0.awaitDrainWriters.size),Q0.awaitDrainWriters.delete(V0)),(!Q0.awaitDrainWriters||Q0.awaitDrainWriters.size===0)&&c.listenerCount("data")&&c.resume()}}W0.prototype.unpipe=function(c){let V0=this._readableState,Q0={hasUnpiped:!1};if(V0.pipes.length===0)return this;if(!c){let g0=V0.pipes;V0.pipes=[],this.pause();for(let D0=0;D0<g0.length;D0++)g0[D0].emit("unpipe",this,{hasUnpiped:!1});return this}let P0=S(V0.pipes,c);return P0===-1?this:(V0.pipes.splice(P0,1),V0.pipes.length===0&&this.pause(),c.emit("unpipe",this,Q0),this)},W0.prototype.on=function(c,V0){let Q0=L.prototype.on.call(this,c,V0),P0=this._readableState;return c==="data"?(P0.readableListening=this.listenerCount("readable")>0,P0.flowing!==!1&&this.resume()):c==="readable"&&!P0.endEmitted&&!P0.readableListening&&(P0.readableListening=P0.needReadable=!0,P0.flowing=!1,P0.emittedReadable=!1,w("on readable",P0.length,P0.reading),P0.length?i(this):P0.reading||B.nextTick(O0,this)),Q0},W0.prototype.addListener=W0.prototype.on,W0.prototype.removeListener=function(c,V0){let Q0=L.prototype.removeListener.call(this,c,V0);return c==="readable"&&B.nextTick(j0,this),Q0},W0.prototype.off=W0.prototype.removeListener,W0.prototype.removeAllListeners=function(c){let V0=L.prototype.removeAllListeners.apply(this,arguments);return(c==="readable"||c===void 0)&&B.nextTick(j0,this),V0};function j0(c){let V0=c._readableState;V0.readableListening=c.listenerCount("readable")>0,V0.resumeScheduled&&V0[G]===!1?V0.flowing=!0:c.listenerCount("data")>0?c.resume():V0.readableListening||(V0.flowing=null)}function O0(c){w("readable nexttick read 0"),c.read(0)}W0.prototype.resume=function(){let c=this._readableState;return c.flowing||(w("resume"),c.flowing=!c.readableListening,c0(this,c)),c[G]=!1,this};function c0(c,V0){V0.resumeScheduled||(V0.resumeScheduled=!0,B.nextTick(S0,c,V0))}function S0(c,V0){w("resume",V0.reading),V0.reading||c.read(0),V0.resumeScheduled=!1,c.emit("resume"),k0(c),V0.flowing&&!V0.reading&&c.read(0)}W0.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[G]=!0,this};function k0(c){let V0=c._readableState;for(w("flow",V0.flowing);V0.flowing&&c.read()!==null;);}W0.prototype.wrap=function(c){let V0=!1;c.on("data",(P0)=>{!this.push(P0)&&c.pause&&(V0=!0,c.pause())}),c.on("end",()=>{this.push(null)}),c.on("error",(P0)=>{N(this,P0)}),c.on("close",()=>{this.destroy()}),c.on("destroy",()=>{this.destroy()}),this._read=()=>{V0&&c.resume&&(V0=!1,c.resume())};let Q0=k(c);for(let P0=1;P0<Q0.length;P0++){let g0=Q0[P0];this[g0]===void 0&&typeof c[g0]=="function"&&(this[g0]=c[g0].bind(c))}return this},W0.prototype[T]=function(){return P5(this)},W0.prototype.iterator=function(c){return c!==void 0&&$(c,"options"),P5(this,c)};function P5(c,V0){typeof c.read!="function"&&(c=W0.wrap(c,{objectMode:!0}));let Q0=A0(c,V0);return Q0.stream=c,Q0}async function*A0(c,V0){let Q0=F;function P0(N0){this===c?(Q0(),Q0=F):Q0=N0}c.on("readable",P0);let g0,D0=b(c,{writable:!1},(N0)=>{g0=N0?f(g0,N0):null,Q0(),Q0=F});try{for(;;){let N0=c.destroyed?null:c.read();if(N0!==null)yield N0;else{if(g0)throw g0;if(g0===null)return;await new D(P0)}}}catch(N0){throw g0=f(g0,N0),g0}finally{(g0||V0?.destroyOnReturn!==!1)&&(g0===void 0||c._readableState.autoDestroy)?r.destroyer(c,null):(c.off("readable",P0),D0())}}O(W0.prototype,{readable:{__proto__:null,get(){let c=this._readableState;return!!c&&c.readable!==!1&&!c.destroyed&&!c.errorEmitted&&!c.endEmitted},set(c){this._readableState&&(this._readableState.readable=!!c)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(c){this._readableState&&(this._readableState.flowing=c)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(c){!this._readableState||(this._readableState.destroyed=c)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),O(M0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[G]!==!1},set(c){this[G]=!!c}}}),W0._fromList=R0;function R0(c,V0){if(V0.length===0)return null;let Q0;return V0.objectMode?Q0=V0.buffer.shift():!c||c>=V0.length?(V0.decoder?Q0=V0.buffer.join(""):V0.buffer.length===1?Q0=V0.buffer.first():Q0=V0.buffer.concat(V0.length),V0.buffer.clear()):Q0=V0.buffer.consume(c,V0.decoder),Q0}function $5(c){let V0=c._readableState;w("endReadable",V0.endEmitted),V0.endEmitted||(V0.ended=!0,B.nextTick(p0,V0,c))}function p0(c,V0){if(w("endReadableNT",c.endEmitted,c.length),!c.errored&&!c.closeEmitted&&!c.endEmitted&&c.length===0){if(c.endEmitted=!0,V0.emit("end"),V0.writable&&V0.allowHalfOpen===!1)B.nextTick(_0,V0);else if(c.autoDestroy){let Q0=V0._writableState;(!Q0||Q0.autoDestroy&&(Q0.finished||Q0.writable===!1))&&V0.destroy()}}}function _0(c){c.writable&&!c.writableEnded&&!c.destroyed&&c.end()}W0.from=function(c,V0){return X(W0,c,V0)};var G5;function I0(){return G5===void 0&&(G5={}),G5}W0.fromWeb=function(c,V0){return I0().newStreamReadableFromReadableStream(c,V0)},W0.toWeb=function(c,V0){return I0().newReadableStreamFromStreamReadable(c,V0)},W0.wrap=function(c,V0){var Q0,P0;return new W0({objectMode:(Q0=(P0=c.readableObjectMode)!==null&&P0!==void 0?P0:c.objectMode)!==null&&Q0!==void 0?Q0:!0,...V0,destroy(g0,D0){r.destroyer(c,g0),D0(g0)}}).wrap(c)}}),O9=z0((v,M)=>{var B=(p5(),D5(R5)),{ArrayPrototypeSlice:S,Error:Z,FunctionPrototypeSymbolHasInstance:q,ObjectDefineProperty:Q,ObjectDefineProperties:O,ObjectSetPrototypeOf:k,StringPrototypeToLowerCase:C,Symbol:D,SymbolHasInstance:P}=J5();M.exports=$,$.WritableState=V;var{EventEmitter:J}=w5(),T=z9().Stream,{Buffer:z}=j5(),I=g5(),{addAbortSignal:L}=t5(),{getHighWaterMark:p,getDefaultHighWaterMark:E}=e5(),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:g,ERR_STREAM_DESTROYED:r,ERR_STREAM_ALREADY_FINISHED:t,ERR_STREAM_NULL_VALUES:$0,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:Z0}=z5().codes,{errorOrDestroy:K}=I;k($.prototype,T.prototype),k($,T);function W(){}var U=D("kOnFinished");function V(l,u,C0){typeof C0!="boolean"&&(C0=u instanceof k5()),this.objectMode=!!(l&&l.objectMode),C0&&(this.objectMode=this.objectMode||!!(l&&l.writableObjectMode)),this.highWaterMark=l?p(this,l,"writableHighWaterMark",C0):E(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let H0=!!(l&&l.decodeStrings===!1);this.decodeStrings=!H0,this.defaultEncoding=l&&l.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=N.bind(void 0,u),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,H(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!l||l.emitClose!==!1,this.autoDestroy=!l||l.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[U]=[]}function H(l){l.buffered=[],l.bufferedIndex=0,l.allBuffers=!0,l.allNoop=!0}V.prototype.getBuffer=function(){return S(this.buffered,this.bufferedIndex)},Q(V.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function $(l){let u=this instanceof k5();if(!u&&!q($,this))return new $(l);this._writableState=new V(l,this,u),l&&(typeof l.write=="function"&&(this._write=l.write),typeof l.writev=="function"&&(this._writev=l.writev),typeof l.destroy=="function"&&(this._destroy=l.destroy),typeof l.final=="function"&&(this._final=l.final),typeof l.construct=="function"&&(this._construct=l.construct),l.signal&&L(l.signal,this)),T.call(this,l),I.construct(this,()=>{let C0=this._writableState;C0.writing||h(this,C0),y(this,C0)})}Q($,P,{__proto__:null,value:function(l){return q(this,l)?!0:this!==$?!1:l&&l._writableState instanceof V}}),$.prototype.pipe=function(){K(this,new g)};function G(l,u,C0,H0){let F0=l._writableState;if(typeof C0=="function")H0=C0,C0=F0.defaultEncoding;else{if(!C0)C0=F0.defaultEncoding;else if(C0!=="buffer"&&!z.isEncoding(C0))throw new Z0(C0);typeof H0!="function"&&(H0=W)}if(u===null)throw new $0;if(!F0.objectMode)if(typeof u=="string")F0.decodeStrings!==!1&&(u=z.from(u,C0),C0="buffer");else if(u instanceof z)C0="buffer";else if(T._isUint8Array(u))u=T._uint8ArrayToBuffer(u),C0="buffer";else throw new x("chunk",["string","Buffer","Uint8Array"],u);let y0;return F0.ending?y0=new f:F0.destroyed&&(y0=new r("write")),y0?(B.nextTick(H0,y0),K(l,y0,!0),y0):(F0.pendingcb++,Y(l,F0,u,C0,H0))}$.prototype.write=function(l,u,C0){return G(this,l,u,C0)===!0},$.prototype.cork=function(){this._writableState.corked++},$.prototype.uncork=function(){let l=this._writableState;l.corked&&(l.corked--,l.writing||h(this,l))},$.prototype.setDefaultEncoding=function(l){if(typeof l=="string"&&(l=C(l)),!z.isEncoding(l))throw new Z0(l);return this._writableState.defaultEncoding=l,this};function Y(l,u,C0,H0,F0){let y0=u.objectMode?1:C0.length;u.length+=y0;let a=u.length<u.highWaterMark;return a||(u.needDrain=!0),u.writing||u.corked||u.errored||!u.constructed?(u.buffered.push({chunk:C0,encoding:H0,callback:F0}),u.allBuffers&&H0!=="buffer"&&(u.allBuffers=!1),u.allNoop&&F0!==W&&(u.allNoop=!1)):(u.writelen=y0,u.writecb=F0,u.writing=!0,u.sync=!0,l._write(C0,H0,u.onwrite),u.sync=!1),a&&!u.errored&&!u.destroyed}function X(l,u,C0,H0,F0,y0,a){u.writelen=H0,u.writecb=a,u.writing=!0,u.sync=!0,u.destroyed?u.onwrite(new r("write")):C0?l._writev(F0,u.onwrite):l._write(F0,y0,u.onwrite),u.sync=!1}function F(l,u,C0,H0){--u.pendingcb,H0(C0),m(u),K(l,C0)}function N(l,u){let C0=l._writableState,H0=C0.sync,F0=C0.writecb;if(typeof F0!="function"){K(l,new w);return}C0.writing=!1,C0.writecb=null,C0.length-=C0.writelen,C0.writelen=0,u?(u.stack,C0.errored||(C0.errored=u),l._readableState&&!l._readableState.errored&&(l._readableState.errored=u),H0?B.nextTick(F,l,C0,u,F0):F(l,C0,u,F0)):(C0.buffered.length>C0.bufferedIndex&&h(l,C0),H0?C0.afterWriteTickInfo!==null&&C0.afterWriteTickInfo.cb===F0?C0.afterWriteTickInfo.count++:(C0.afterWriteTickInfo={count:1,cb:F0,stream:l,state:C0},B.nextTick(j,C0.afterWriteTickInfo)):A(l,C0,1,F0))}function j({stream:l,state:u,count:C0,cb:H0}){return u.afterWriteTickInfo=null,A(l,u,C0,H0)}function A(l,u,C0,H0){for(!u.ending&&!l.destroyed&&u.length===0&&u.needDrain&&(u.needDrain=!1,l.emit("drain"));C0-- >0;)u.pendingcb--,H0();u.destroyed&&m(u),y(l,u)}function m(l){if(l.writing)return;for(let F0=l.bufferedIndex;F0<l.buffered.length;++F0){var u;let{chunk:y0,callback:a}=l.buffered[F0],X0=l.objectMode?1:y0.length;l.length-=X0,a((u=l.errored)!==null&&u!==void 0?u:new r("write"))}let C0=l[U].splice(0);for(let F0=0;F0<C0.length;F0++){var H0;C0[F0]((H0=l.errored)!==null&&H0!==void 0?H0:new r("end"))}H(l)}function h(l,u){if(u.corked||u.bufferProcessing||u.destroyed||!u.constructed)return;let{buffered:C0,bufferedIndex:H0,objectMode:F0}=u,y0=C0.length-H0;if(!y0)return;let a=H0;if(u.bufferProcessing=!0,y0>1&&l._writev){u.pendingcb-=y0-1;let X0=u.allNoop?W:(W0)=>{for(let G0=a;G0<C0.length;++G0)C0[G0].callback(W0)},M0=u.allNoop&&a===0?C0:S(C0,a);M0.allBuffers=u.allBuffers,X(l,u,!0,u.length,M0,"",X0),H(u)}else{do{let{chunk:X0,encoding:M0,callback:W0}=C0[a];C0[a++]=null;let G0=F0?1:X0.length;X(l,u,!1,G0,X0,M0,W0)}while(a<C0.length&&!u.writing);a===C0.length?H(u):a>256?(C0.splice(0,a),u.bufferedIndex=0):u.bufferedIndex=a}u.bufferProcessing=!1}$.prototype._write=function(l,u,C0){if(this._writev)this._writev([{chunk:l,encoding:u}],C0);else throw new b("_write()")},$.prototype._writev=null,$.prototype.end=function(l,u,C0){let H0=this._writableState;typeof l=="function"?(C0=l,l=null,u=null):typeof u=="function"&&(C0=u,u=null);let F0;if(l!=null){let y0=G(this,l,u);y0 instanceof Z&&(F0=y0)}return H0.corked&&(H0.corked=1,this.uncork()),F0||(!H0.errored&&!H0.ending?(H0.ending=!0,y(this,H0,!0),H0.ended=!0):H0.finished?F0=new t("end"):H0.destroyed&&(F0=new r("end"))),typeof C0=="function"&&(F0||H0.finished?B.nextTick(C0,F0):H0[U].push(C0)),this};function e(l){return l.ending&&!l.destroyed&&l.constructed&&l.length===0&&!l.errored&&l.buffered.length===0&&!l.finished&&!l.writing&&!l.errorEmitted&&!l.closeEmitted}function T0(l,u){let C0=!1;function H0(F0){if(C0){K(l,F0??w());return}if(C0=!0,u.pendingcb--,F0){let y0=u[U].splice(0);for(let a=0;a<y0.length;a++)y0[a](F0);K(l,F0,u.sync)}else e(u)&&(u.prefinished=!0,l.emit("prefinish"),u.pendingcb++,B.nextTick(o,l,u))}u.sync=!0,u.pendingcb++;try{l._final(H0)}catch(F0){H0(F0)}u.sync=!1}function U0(l,u){!u.prefinished&&!u.finalCalled&&(typeof l._final=="function"&&!u.destroyed?(u.finalCalled=!0,T0(l,u)):(u.prefinished=!0,l.emit("prefinish")))}function y(l,u,C0){e(u)&&(U0(l,u),u.pendingcb===0&&(C0?(u.pendingcb++,B.nextTick((H0,F0)=>{e(F0)?o(H0,F0):F0.pendingcb--},l,u)):e(u)&&(u.pendingcb++,o(l,u))))}function o(l,u){u.pendingcb--,u.finished=!0;let C0=u[U].splice(0);for(let H0=0;H0<C0.length;H0++)C0[H0]();if(l.emit("finish"),u.autoDestroy){let H0=l._readableState;(!H0||H0.autoDestroy&&(H0.endEmitted||H0.readable===!1))&&l.destroy()}}O($.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(l){this._writableState&&(this._writableState.destroyed=l)}},writable:{__proto__:null,get(){let l=this._writableState;return!!l&&l.writable!==!1&&!l.destroyed&&!l.errored&&!l.ending&&!l.ended},set(l){this._writableState&&(this._writableState.writable=!!l)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let l=this._writableState;return l?!l.destroyed&&!l.ending&&l.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var n=I.destroy;$.prototype.destroy=function(l,u){let C0=this._writableState;return!C0.destroyed&&(C0.bufferedIndex<C0.buffered.length||C0[U].length)&&B.nextTick(m,C0),n.call(this,l,u),this},$.prototype._undestroy=I.undestroy,$.prototype._destroy=function(l,u){u(l)},$.prototype[J.captureRejectionSymbol]=function(l){this.destroy(l)};var K0;function w0(){return K0===void 0&&(K0={}),K0}$.fromWeb=function(l,u){return w0().newStreamWritableFromWritableStream(l,u)},$.toWeb=function(l){return w0().newWritableStreamFromStreamWritable(l)}}),t4=z0((v,M)=>{var B=(p5(),D5(R5)),S=j5(),{isReadable:Z,isWritable:q,isIterable:Q,isNodeStream:O,isReadableNodeStream:k,isWritableNodeStream:C,isDuplexNodeStream:D,isReadableStream:P,isWritableStream:J}=I5(),T=B5(),{AbortError:z,codes:{ERR_INVALID_ARG_TYPE:I,ERR_INVALID_RETURN_VALUE:L}}=z5(),{destroyer:p}=g5(),E=k5(),x=K9(),b=O9(),{createDeferredPromise:w}=O5(),g=c9(),r=globalThis.Blob||S.Blob,t=typeof r<"u"?function(U){return U instanceof r}:function(U){return!1},$0=globalThis.AbortController||m5().AbortController,{FunctionPrototypeCall:f}=J5(),Z0=class extends E{constructor(U){super(U),U?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),U?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};M.exports=function U(V,H){if(D(V))return V;if(k(V))return W({readable:V});if(C(V))return W({writable:V});if(O(V))return W({writable:!1,readable:!1});if(P(V))return W({readable:x.fromWeb(V)});if(J(V))return W({writable:b.fromWeb(V)});if(typeof V=="function"){let{value:G,write:Y,final:X,destroy:F}=K(V);if(Q(G))return g(Z0,G,{objectMode:!0,write:Y,final:X,destroy:F});let N=G?.then;if(typeof N=="function"){let j,A=f(N,G,(m)=>{if(m!=null)throw new L("nully","body",m)},(m)=>{p(j,m)});return j=new Z0({objectMode:!0,readable:!1,write:Y,final(m){X(async()=>{try{await A,B.nextTick(m,null)}catch(h){B.nextTick(m,h)}})},destroy:F})}throw new L("Iterable, AsyncIterable or AsyncFunction",H,G)}if(t(V))return U(V.arrayBuffer());if(Q(V))return g(Z0,V,{objectMode:!0,writable:!1});if(P(V?.readable)&&J(V?.writable))return Z0.fromWeb(V);if(typeof V?.writable=="object"||typeof V?.readable=="object"){let G=V!=null&&V.readable?k(V?.readable)?V?.readable:U(V.readable):void 0,Y=V!=null&&V.writable?C(V?.writable)?V?.writable:U(V.writable):void 0;return W({readable:G,writable:Y})}let $=V?.then;if(typeof $=="function"){let G;return f($,V,(Y)=>{Y!=null&&G.push(Y),G.push(null)},(Y)=>{p(G,Y)}),G=new Z0({objectMode:!0,writable:!1,read(){}})}throw new I(H,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],V)};function K(U){let{promise:V,resolve:H}=w(),$=new $0,G=$.signal;return{value:U(async function*(){for(;;){let Y=V;V=null;let{chunk:X,done:F,cb:N}=await Y;if(B.nextTick(N),F)return;if(G.aborted)throw new z(void 0,{cause:G.reason});({promise:V,resolve:H}=w()),yield X}}(),{signal:G}),write(Y,X,F){let N=H;H=null,N({chunk:Y,done:!1,cb:F})},final(Y){let X=H;H=null,X({done:!0,cb:Y})},destroy(Y,X){$.abort(),X(Y)}}}function W(U){let V=U.readable&&typeof U.readable.read!="function"?x.wrap(U.readable):U.readable,H=U.writable,$=!!Z(V),G=!!q(H),Y,X,F,N,j;function A(m){let h=N;N=null,h?h(m):m&&j.destroy(m)}return j=new Z0({readableObjectMode:!!(V!=null&&V.readableObjectMode),writableObjectMode:!!(H!=null&&H.writableObjectMode),readable:$,writable:G}),G&&(T(H,(m)=>{G=!1,m&&p(V,m),A(m)}),j._write=function(m,h,e){H.write(m,h)?e():Y=e},j._final=function(m){H.end(),X=m},H.on("drain",function(){if(Y){let m=Y;Y=null,m()}}),H.on("finish",function(){if(X){let m=X;X=null,m()}})),$&&(T(V,(m)=>{$=!1,m&&p(V,m),A(m)}),V.on("readable",function(){if(F){let m=F;F=null,m()}}),V.on("end",function(){j.push(null)}),j._read=function(){for(;;){let m=V.read();if(m===null){F=j._read;return}if(!j.push(m))return}}),j._destroy=function(m,h){!m&&N!==null&&(m=new z),F=null,Y=null,X=null,N===null?h(m):(N=h,p(H,m),p(V,m))},j}}),k5=z0((v,M)=>{var{ObjectDefineProperties:B,ObjectGetOwnPropertyDescriptor:S,ObjectKeys:Z,ObjectSetPrototypeOf:q}=J5();M.exports=k;var Q=K9(),O=O9();q(k.prototype,Q.prototype),q(k,Q);{let J=Z(O.prototype);for(let T=0;T<J.length;T++){let z=J[T];k.prototype[z]||(k.prototype[z]=O.prototype[z])}}function k(J){if(!(this instanceof k))return new k(J);Q.call(this,J),O.call(this,J),J?(this.allowHalfOpen=J.allowHalfOpen!==!1,J.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),J.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}B(k.prototype,{writable:{__proto__:null,...S(O.prototype,"writable")},writableHighWaterMark:{__proto__:null,...S(O.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...S(O.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...S(O.prototype,"writableBuffer")},writableLength:{__proto__:null,...S(O.prototype,"writableLength")},writableFinished:{__proto__:null,...S(O.prototype,"writableFinished")},writableCorked:{__proto__:null,...S(O.prototype,"writableCorked")},writableEnded:{__proto__:null,...S(O.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...S(O.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(J){this._readableState&&this._writableState&&(this._readableState.destroyed=J,this._writableState.destroyed=J)}}});var C;function D(){return C===void 0&&(C={}),C}k.fromWeb=function(J,T){return D().newStreamDuplexFromReadableWritablePair(J,T)},k.toWeb=function(J){return D().newReadableWritablePairFromDuplex(J)};var P;k.from=function(J){return P||(P=t4()),P(J,"body")}}),d9=z0((v,M)=>{var{ObjectSetPrototypeOf:B,Symbol:S}=J5();M.exports=k;var{ERR_METHOD_NOT_IMPLEMENTED:Z}=z5().codes,q=k5(),{getHighWaterMark:Q}=e5();B(k.prototype,q.prototype),B(k,q);var O=S("kCallback");function k(P){if(!(this instanceof k))return new k(P);let J=P?Q(this,P,"readableHighWaterMark",!0):null;J===0&&(P={...P,highWaterMark:null,readableHighWaterMark:J,writableHighWaterMark:P.writableHighWaterMark||0}),q.call(this,P),this._readableState.sync=!1,this[O]=null,P&&(typeof P.transform=="function"&&(this._transform=P.transform),typeof P.flush=="function"&&(this._flush=P.flush)),this.on("prefinish",D)}function C(P){typeof this._flush=="function"&&!this.destroyed?this._flush((J,T)=>{if(J){P?P(J):this.destroy(J);return}T!=null&&this.push(T),this.push(null),P&&P()}):(this.push(null),P&&P())}function D(){this._final!==C&&C.call(this)}k.prototype._final=C,k.prototype._transform=function(P,J,T){throw new Z("_transform()")},k.prototype._write=function(P,J,T){let z=this._readableState,I=this._writableState,L=z.length;this._transform(P,J,(p,E)=>{if(p){T(p);return}E!=null&&this.push(E),I.ended||L===z.length||z.length<z.highWaterMark?T():this[O]=T})},k.prototype._read=function(){if(this[O]){let P=this[O];this[O]=null,P()}}}),l9=z0((v,M)=>{var{ObjectSetPrototypeOf:B}=J5();M.exports=Z;var S=d9();B(Z.prototype,S.prototype),B(Z,S);function Z(q){if(!(this instanceof Z))return new Z(q);S.call(this,q)}Z.prototype._transform=function(q,Q,O){O(null,q)}}),j9=z0((v,M)=>{var B=(p5(),D5(R5)),{ArrayIsArray:S,Promise:Z,SymbolAsyncIterator:q,SymbolDispose:Q}=J5(),O=B5(),{once:k}=O5(),C=g5(),D=k5(),{aggregateTwoErrors:P,codes:{ERR_INVALID_ARG_TYPE:J,ERR_INVALID_RETURN_VALUE:T,ERR_MISSING_ARGS:z,ERR_STREAM_DESTROYED:I,ERR_STREAM_PREMATURE_CLOSE:L},AbortError:p}=z5(),{validateFunction:E,validateAbortSignal:x}=d5(),{isIterable:b,isReadable:w,isReadableNodeStream:g,isNodeStream:r,isTransformStream:t,isWebStream:$0,isReadableStream:f,isReadableFinished:Z0}=I5(),K=globalThis.AbortController||m5().AbortController,W,U,V;function H(m,h,e){let T0=!1;m.on("close",()=>{T0=!0});let U0=O(m,{readable:h,writable:e},(y)=>{T0=!y});return{destroy:(y)=>{T0||(T0=!0,C.destroyer(m,y||new I("pipe")))},cleanup:U0}}function $(m){return E(m[m.length-1],"streams[stream.length - 1]"),m.pop()}function G(m){if(b(m))return m;if(g(m))return Y(m);throw new J("val",["Readable","Iterable","AsyncIterable"],m)}async function*Y(m){U||(U=K9()),yield*U.prototype[q].call(m)}async function X(m,h,e,{end:T0}){let U0,y=null,o=(w0)=>{if(w0&&(U0=w0),y){let l=y;y=null,l()}},n=()=>new Z((w0,l)=>{U0?l(U0):y=()=>{U0?l(U0):w0()}});h.on("drain",o);let K0=O(h,{readable:!1},o);try{h.writableNeedDrain&&await n();for await(let w0 of m)h.write(w0)||await n();T0&&(h.end(),await n()),e()}catch(w0){e(U0!==w0?P(U0,w0):w0)}finally{K0(),h.off("drain",o)}}async function F(m,h,e,{end:T0}){t(h)&&(h=h.writable);let U0=h.getWriter();try{for await(let y of m)await U0.ready,U0.write(y).catch(()=>{});await U0.ready,T0&&await U0.close(),e()}catch(y){try{await U0.abort(y),e(y)}catch(o){e(o)}}}function N(...m){return j(m,k($(m)))}function j(m,h,e){if(m.length===1&&S(m[0])&&(m=m[0]),m.length<2)throw new z("streams");let T0=new K,U0=T0.signal,y=e?.signal,o=[];x(y,"options.signal");function n(){F0(new p)}V=V||O5().addAbortListener;let K0;y&&(K0=V(y,n));let w0,l,u=[],C0=0;function H0(W0){F0(W0,--C0===0)}function F0(W0,G0){var b0;if(W0&&(!w0||w0.code==="ERR_STREAM_PREMATURE_CLOSE")&&(w0=W0),!(!w0&&!G0)){for(;u.length;)u.shift()(w0);(b0=K0)===null||b0===void 0||b0[Q](),T0.abort(),G0&&(w0||o.forEach((R)=>R()),B.nextTick(h,w0,l))}}let y0;for(let W0=0;W0<m.length;W0++){let G0=m[W0],b0=W0<m.length-1,R=W0>0,_=b0||e?.end!==!1,d=W0===m.length-1;if(r(G0)){let s=function(i){i&&i.name!=="AbortError"&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"&&H0(i)};var a=s;if(_){let{destroy:i,cleanup:E0}=H(G0,b0,R);u.push(i),w(G0)&&d&&o.push(E0)}G0.on("error",s),w(G0)&&d&&o.push(()=>{G0.removeListener("error",s)})}if(W0===0)if(typeof G0=="function"){if(y0=G0({signal:U0}),!b(y0))throw new T("Iterable, AsyncIterable or Stream","source",y0)}else b(G0)||g(G0)||t(G0)?y0=G0:y0=D.from(G0);else if(typeof G0=="function"){if(t(y0)){var X0;y0=G((X0=y0)===null||X0===void 0?void 0:X0.readable)}else y0=G(y0);if(y0=G0(y0,{signal:U0}),b0){if(!b(y0,!0))throw new T("AsyncIterable",`transform[${W0-1}]`,y0)}else{var M0;W||(W=l9());let s=new W({objectMode:!0}),i=(M0=y0)===null||M0===void 0?void 0:M0.then;if(typeof i=="function")C0++,i.call(y0,(J0)=>{l=J0,J0!=null&&s.write(J0),_&&s.end(),B.nextTick(H0)},(J0)=>{s.destroy(J0),B.nextTick(H0,J0)});else if(b(y0,!0))C0++,X(y0,s,H0,{end:_});else if(f(y0)||t(y0)){let J0=y0.readable||y0;C0++,X(J0,s,H0,{end:_})}else throw new T("AsyncIterable or Promise","destination",y0);y0=s;let{destroy:E0,cleanup:Y0}=H(y0,!1,!0);u.push(E0),d&&o.push(Y0)}}else if(r(G0)){if(g(y0)){C0+=2;let s=A(y0,G0,H0,{end:_});w(G0)&&d&&o.push(s)}else if(t(y0)||f(y0)){let s=y0.readable||y0;C0++,X(s,G0,H0,{end:_})}else if(b(y0))C0++,X(y0,G0,H0,{end:_});else throw new J("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y0);y0=G0}else if($0(G0)){if(g(y0))C0++,F(G(y0),G0,H0,{end:_});else if(f(y0)||b(y0))C0++,F(y0,G0,H0,{end:_});else if(t(y0))C0++,F(y0.readable,G0,H0,{end:_});else throw new J("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y0);y0=G0}else y0=D.from(G0)}return(U0!=null&&U0.aborted||y!=null&&y.aborted)&&B.nextTick(n),y0}function A(m,h,e,{end:T0}){let U0=!1;if(h.on("close",()=>{U0||e(new L)}),m.pipe(h,{end:!1}),T0){let o=function(){U0=!0,h.end()};var y=o;Z0(m)?B.nextTick(o):m.once("end",o)}else e();return O(m,{readable:!0,writable:!1},(o)=>{let n=m._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&n&&n.ended&&!n.errored&&!n.errorEmitted?m.once("end",e).once("error",e):e(o)}),O(h,{readable:!1,writable:!0},e)}M.exports={pipelineImpl:j,pipeline:N}}),h9=z0((v,M)=>{var{pipeline:B}=j9(),S=k5(),{destroyer:Z}=g5(),{isNodeStream:q,isReadable:Q,isWritable:O,isWebStream:k,isTransformStream:C,isWritableStream:D,isReadableStream:P}=I5(),{AbortError:J,codes:{ERR_INVALID_ARG_VALUE:T,ERR_MISSING_ARGS:z}}=z5(),I=B5();M.exports=function(...L){if(L.length===0)throw new z("streams");if(L.length===1)return S.from(L[0]);let p=[...L];if(typeof L[0]=="function"&&(L[0]=S.from(L[0])),typeof L[L.length-1]=="function"){let K=L.length-1;L[K]=S.from(L[K])}for(let K=0;K<L.length;++K)if(!(!q(L[K])&&!k(L[K]))){if(K<L.length-1&&!(Q(L[K])||P(L[K])||C(L[K])))throw new T(`streams[${K}]`,p[K],"must be readable");if(K>0&&!(O(L[K])||D(L[K])||C(L[K])))throw new T(`streams[${K}]`,p[K],"must be writable")}let E,x,b,w,g;function r(K){let W=w;w=null,W?W(K):K?g.destroy(K):!Z0&&!f&&g.destroy()}let t=L[0],$0=B(L,r),f=!!(O(t)||D(t)||C(t)),Z0=!!(Q($0)||P($0)||C($0));if(g=new S({writableObjectMode:!!(t!=null&&t.writableObjectMode),readableObjectMode:!!($0!=null&&$0.readableObjectMode),writable:f,readable:Z0}),f){if(q(t))g._write=function(W,U,V){t.write(W,U)?V():E=V},g._final=function(W){t.end(),x=W},t.on("drain",function(){if(E){let W=E;E=null,W()}});else if(k(t)){let W=(C(t)?t.writable:t).getWriter();g._write=async function(U,V,H){try{await W.ready,W.write(U).catch(()=>{}),H()}catch($){H($)}},g._final=async function(U){try{await W.ready,W.close().catch(()=>{}),x=U}catch(V){U(V)}}}let K=C($0)?$0.readable:$0;I(K,()=>{if(x){let W=x;x=null,W()}})}if(Z0){if(q($0))$0.on("readable",function(){if(b){let K=b;b=null,K()}}),$0.on("end",function(){g.push(null)}),g._read=function(){for(;;){let K=$0.read();if(K===null){b=g._read;return}if(!g.push(K))return}};else if(k($0)){let K=(C($0)?$0.readable:$0).getReader();g._read=async function(){for(;;)try{let{value:W,done:U}=await K.read();if(!g.push(W))return;if(U){g.push(null);return}}catch{return}}}}return g._destroy=function(K,W){!K&&w!==null&&(K=new J),b=null,E=null,x=null,w===null?W(K):(w=W,q($0)&&Z($0,K))},g}}),e4=z0((v,M)=>{var B=globalThis.AbortController||m5().AbortController,{codes:{ERR_INVALID_ARG_VALUE:S,ERR_INVALID_ARG_TYPE:Z,ERR_MISSING_ARGS:q,ERR_OUT_OF_RANGE:Q},AbortError:O}=z5(),{validateAbortSignal:k,validateInteger:C,validateObject:D}=d5(),P=J5().Symbol("kWeak"),J=J5().Symbol("kResistStopPropagation"),{finished:T}=B5(),z=h9(),{addAbortSignalNoValidate:I}=t5(),{isWritable:L,isNodeStream:p}=I5(),{deprecate:E}=O5(),{ArrayPrototypePush:x,Boolean:b,MathFloor:w,Number:g,NumberIsNaN:r,Promise:t,PromiseReject:$0,PromiseResolve:f,PromisePrototypeThen:Z0,Symbol:K}=J5(),W=K("kEmpty"),U=K("kEof");function V(y,o){if(o!=null&&D(o,"options"),o?.signal!=null&&k(o.signal,"options.signal"),p(y)&&!L(y))throw new S("stream",y,"must be writable");let n=z(this,y);return o!=null&&o.signal&&I(o.signal,n),n}function H(y,o){if(typeof y!="function")throw new Z("fn",["Function","AsyncFunction"],y);o!=null&&D(o,"options"),o?.signal!=null&&k(o.signal,"options.signal");let n=1;o?.concurrency!=null&&(n=w(o.concurrency));let K0=n-1;return o?.highWaterMark!=null&&(K0=w(o.highWaterMark)),C(n,"options.concurrency",1),C(K0,"options.highWaterMark",0),K0+=n,async function*(){let w0=O5().AbortSignalAny([o?.signal].filter(b)),l=this,u=[],C0={signal:w0},H0,F0,y0=!1,a=0;function X0(){y0=!0,M0()}function M0(){a-=1,W0()}function W0(){F0&&!y0&&a<n&&u.length<K0&&(F0(),F0=null)}async function G0(){try{for await(let b0 of l){if(y0)return;if(w0.aborted)throw new O;try{if(b0=y(b0,C0),b0===W)continue;b0=f(b0)}catch(R){b0=$0(R)}a+=1,Z0(b0,M0,X0),u.push(b0),H0&&(H0(),H0=null),!y0&&(u.length>=K0||a>=n)&&await new t((R)=>{F0=R})}u.push(U)}catch(b0){let R=$0(b0);Z0(R,M0,X0),u.push(R)}finally{y0=!0,H0&&(H0(),H0=null)}}G0();try{for(;;){for(;u.length>0;){let b0=await u[0];if(b0===U)return;if(w0.aborted)throw new O;b0!==W&&(yield b0),u.shift(),W0()}await new t((b0)=>{H0=b0})}}finally{y0=!0,F0&&(F0(),F0=null)}}.call(this)}function $(y=void 0){return y!=null&&D(y,"options"),y?.signal!=null&&k(y.signal,"options.signal"),async function*(){let o=0;for await(let K0 of this){var n;if(y!=null&&(n=y.signal)!==null&&n!==void 0&&n.aborted)throw new O({cause:y.signal.reason});yield[o++,K0]}}.call(this)}async function G(y,o=void 0){for await(let n of N.call(this,y,o))return!0;return!1}async function Y(y,o=void 0){if(typeof y!="function")throw new Z("fn",["Function","AsyncFunction"],y);return!await G.call(this,async(...n)=>!await y(...n),o)}async function X(y,o){for await(let n of N.call(this,y,o))return n}async function F(y,o){if(typeof y!="function")throw new Z("fn",["Function","AsyncFunction"],y);async function n(K0,w0){return await y(K0,w0),W}for await(let K0 of H.call(this,n,o));}function N(y,o){if(typeof y!="function")throw new Z("fn",["Function","AsyncFunction"],y);async function n(K0,w0){return await y(K0,w0)?K0:W}return H.call(this,n,o)}var j=class extends q{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function A(y,o,n){var K0;if(typeof y!="function")throw new Z("reducer",["Function","AsyncFunction"],y);n!=null&&D(n,"options"),n?.signal!=null&&k(n.signal,"options.signal");let w0=arguments.length>1;if(n!=null&&(K0=n.signal)!==null&&K0!==void 0&&K0.aborted){let F0=new O(void 0,{cause:n.signal.reason});throw this.once("error",()=>{}),await T(this.destroy(F0)),F0}let l=new B,u=l.signal;if(n!=null&&n.signal){let F0={once:!0,[P]:this,[J]:!0};n.signal.addEventListener("abort",()=>l.abort(),F0)}let C0=!1;try{for await(let F0 of this){var H0;if(C0=!0,n!=null&&(H0=n.signal)!==null&&H0!==void 0&&H0.aborted)throw new O;w0?o=await y(o,F0,{signal:u}):(o=F0,w0=!0)}if(!C0&&!w0)throw new j}finally{l.abort()}return o}async function m(y){y!=null&&D(y,"options"),y?.signal!=null&&k(y.signal,"options.signal");let o=[];for await(let K0 of this){var n;if(y!=null&&(n=y.signal)!==null&&n!==void 0&&n.aborted)throw new O(void 0,{cause:y.signal.reason});x(o,K0)}return o}function h(y,o){let n=H.call(this,y,o);return async function*(){for await(let K0 of n)yield*K0}.call(this)}function e(y){if(y=g(y),r(y))return 0;if(y<0)throw new Q("number",">= 0",y);return y}function T0(y,o=void 0){return o!=null&&D(o,"options"),o?.signal!=null&&k(o.signal,"options.signal"),y=e(y),async function*(){var n;if(o!=null&&(n=o.signal)!==null&&n!==void 0&&n.aborted)throw new O;for await(let w0 of this){var K0;if(o!=null&&(K0=o.signal)!==null&&K0!==void 0&&K0.aborted)throw new O;y--<=0&&(yield w0)}}.call(this)}function U0(y,o=void 0){return o!=null&&D(o,"options"),o?.signal!=null&&k(o.signal,"options.signal"),y=e(y),async function*(){var n;if(o!=null&&(n=o.signal)!==null&&n!==void 0&&n.aborted)throw new O;for await(let w0 of this){var K0;if(o!=null&&(K0=o.signal)!==null&&K0!==void 0&&K0.aborted)throw new O;if(y-- >0&&(yield w0),y<=0)return}}.call(this)}M.exports.streamReturningOperators={asIndexedPairs:E($,"readable.asIndexedPairs will be removed in a future version."),drop:T0,filter:N,flatMap:h,map:H,take:U0,compose:V},M.exports.promiseReturningOperators={every:Y,forEach:F,reduce:A,toArray:m,some:G,find:X}}),s9=z0((v,M)=>{var{ArrayPrototypePop:B,Promise:S}=J5(),{isIterable:Z,isNodeStream:q,isWebStream:Q}=I5(),{pipelineImpl:O}=j9(),{finished:k}=B5();u9();function C(...D){return new S((P,J)=>{let T,z,I=D[D.length-1];if(I&&typeof I=="object"&&!q(I)&&!Z(I)&&!Q(I)){let L=B(D);T=L.signal,z=L.end}O(D,(L,p)=>{L?J(L):P(p)},{signal:T,end:z})})}M.exports={finished:k,pipeline:C}}),u9=z0((v,M)=>{var{Buffer:B}=j5(),{ObjectDefineProperty:S,ObjectKeys:Z,ReflectApply:q}=J5(),{promisify:{custom:Q}}=O5(),{streamReturningOperators:O,promiseReturningOperators:k}=e4(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:C}}=z5(),D=h9(),{setDefaultHighWaterMark:P,getDefaultHighWaterMark:J}=e5(),{pipeline:T}=j9(),{destroyer:z}=g5(),I=B5(),L=s9(),p=I5(),E=M.exports=z9().Stream;E.isDestroyed=p.isDestroyed,E.isDisturbed=p.isDisturbed,E.isErrored=p.isErrored,E.isReadable=p.isReadable,E.isWritable=p.isWritable,E.Readable=K9();for(let b of Z(O)){let w=function(...r){if(new.target)throw C();return E.Readable.from(q(g,this,r))},g=O[b];S(w,"name",{__proto__:null,value:g.name}),S(w,"length",{__proto__:null,value:g.length}),S(E.Readable.prototype,b,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(let b of Z(k)){let w=function(...r){if(new.target)throw C();return q(g,this,r)},g=k[b];S(w,"name",{__proto__:null,value:g.name}),S(w,"length",{__proto__:null,value:g.length}),S(E.Readable.prototype,b,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}E.Writable=O9(),E.Duplex=k5(),E.Transform=d9(),E.PassThrough=l9(),E.pipeline=T;var{addAbortSignal:x}=t5();E.addAbortSignal=x,E.finished=I,E.destroy=z,E.compose=D,E.setDefaultHighWaterMark=P,E.getDefaultHighWaterMark=J,S(E,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return L}}),S(T,Q,{__proto__:null,enumerable:!0,get(){return L.pipeline}}),S(I,Q,{__proto__:null,enumerable:!0,get(){return L.finished}}),E.Stream=E,E._isUint8Array=function(b){return b instanceof Uint8Array},E._uint8ArrayToBuffer=function(b){return B.from(b.buffer,b.byteOffset,b.byteLength)}}),y9=z0((v,M)=>{var B=u9(),S=s9(),Z=B.Readable.destroy;M.exports=B.Readable,M.exports._uint8ArrayToBuffer=B._uint8ArrayToBuffer,M.exports._isUint8Array=B._isUint8Array,M.exports.isDisturbed=B.isDisturbed,M.exports.isErrored=B.isErrored,M.exports.isReadable=B.isReadable,M.exports.Readable=B.Readable,M.exports.Writable=B.Writable,M.exports.Duplex=B.Duplex,M.exports.Transform=B.Transform,M.exports.PassThrough=B.PassThrough,M.exports.addAbortSignal=B.addAbortSignal,M.exports.finished=B.finished,M.exports.destroy=B.destroy,M.exports.destroy=Z,M.exports.pipeline=B.pipeline,M.exports.compose=B.compose,Object.defineProperty(B,"promises",{configurable:!0,enumerable:!0,get(){return S}}),M.exports.Stream=B.Stream,M.exports.default=M.exports}),X9={};r5(X9,{default:()=>o9});var o9,f9=Z9(()=>{J9(X9,A5(y9())),o9=A5(y9())}),a9=z0((v,M)=>{var B=l0().Buffer,S=(f9(),D5(X9)).Transform,Z=h0();function q(C){S.call(this),this._block=B.allocUnsafe(C),this._blockSize=C,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Z(q,S),q.prototype._transform=function(C,D,P){var J=null;try{this.update(C,D)}catch(T){J=T}P(J)},q.prototype._flush=function(C){var D=null;try{this.push(this.digest())}catch(P){D=P}C(D)};var Q=typeof Uint8Array<"u",O=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(B.prototype instanceof Uint8Array||B.TYPED_ARRAY_SUPPORT);function k(C,D){if(C instanceof B)return C;if(typeof C=="string")return B.from(C,D);if(O&&ArrayBuffer.isView(C)){if(C.byteLength===0)return B.alloc(0);var P=B.from(C.buffer,C.byteOffset,C.byteLength);if(P.byteLength===C.byteLength)return P}if(Q&&C instanceof Uint8Array||B.isBuffer(C)&&C.constructor&&typeof C.constructor.isBuffer=="function"&&C.constructor.isBuffer(C))return B.from(C);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}q.prototype.update=function(C,D){if(this._finalized)throw new Error("Digest already called");C=k(C,D);for(var P=this._block,J=0;this._blockOffset+C.length-J>=this._blockSize;){for(var T=this._blockOffset;T<this._blockSize;)P[T++]=C[J++];this._update(),this._blockOffset=0}for(;J<C.length;)P[this._blockOffset++]=C[J++];for(var z=0,I=C.length*8;I>0;++z)this._length[z]+=I,I=this._length[z]/4294967296|0,I>0&&(this._length[z]-=4294967296*I);return this},q.prototype._update=function(){throw new Error("_update is not implemented")},q.prototype.digest=function(C){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var D=this._digest();C!==void 0&&(D=D.toString(C)),this._block.fill(0),this._blockOffset=0;for(var P=0;P<4;++P)this._length[P]=0;return D},q.prototype._digest=function(){throw new Error("_digest is not implemented")},M.exports=q}),D9=z0((v,M)=>{var B=h0(),S=a9(),Z=l0().Buffer,q=new Array(16);function Q(){S.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}B(Q,S),Q.prototype._update=function(){for(var J=q,T=0;T<16;++T)J[T]=this._block.readInt32LE(T*4);var z=this._a,I=this._b,L=this._c,p=this._d;z=k(z,I,L,p,J[0],3614090360,7),p=k(p,z,I,L,J[1],3905402710,12),L=k(L,p,z,I,J[2],606105819,17),I=k(I,L,p,z,J[3],3250441966,22),z=k(z,I,L,p,J[4],4118548399,7),p=k(p,z,I,L,J[5],1200080426,12),L=k(L,p,z,I,J[6],2821735955,17),I=k(I,L,p,z,J[7],4249261313,22),z=k(z,I,L,p,J[8],1770035416,7),p=k(p,z,I,L,J[9],2336552879,12),L=k(L,p,z,I,J[10],4294925233,17),I=k(I,L,p,z,J[11],2304563134,22),z=k(z,I,L,p,J[12],1804603682,7),p=k(p,z,I,L,J[13],4254626195,12),L=k(L,p,z,I,J[14],2792965006,17),I=k(I,L,p,z,J[15],1236535329,22),z=C(z,I,L,p,J[1],4129170786,5),p=C(p,z,I,L,J[6],3225465664,9),L=C(L,p,z,I,J[11],643717713,14),I=C(I,L,p,z,J[0],3921069994,20),z=C(z,I,L,p,J[5],3593408605,5),p=C(p,z,I,L,J[10],38016083,9),L=C(L,p,z,I,J[15],3634488961,14),I=C(I,L,p,z,J[4],3889429448,20),z=C(z,I,L,p,J[9],568446438,5),p=C(p,z,I,L,J[14],3275163606,9),L=C(L,p,z,I,J[3],4107603335,14),I=C(I,L,p,z,J[8],1163531501,20),z=C(z,I,L,p,J[13],2850285829,5),p=C(p,z,I,L,J[2],4243563512,9),L=C(L,p,z,I,J[7],1735328473,14),I=C(I,L,p,z,J[12],2368359562,20),z=D(z,I,L,p,J[5],4294588738,4),p=D(p,z,I,L,J[8],2272392833,11),L=D(L,p,z,I,J[11],1839030562,16),I=D(I,L,p,z,J[14],4259657740,23),z=D(z,I,L,p,J[1],2763975236,4),p=D(p,z,I,L,J[4],1272893353,11),L=D(L,p,z,I,J[7],4139469664,16),I=D(I,L,p,z,J[10],3200236656,23),z=D(z,I,L,p,J[13],681279174,4),p=D(p,z,I,L,J[0],3936430074,11),L=D(L,p,z,I,J[3],3572445317,16),I=D(I,L,p,z,J[6],76029189,23),z=D(z,I,L,p,J[9],3654602809,4),p=D(p,z,I,L,J[12],3873151461,11),L=D(L,p,z,I,J[15],530742520,16),I=D(I,L,p,z,J[2],3299628645,23),z=P(z,I,L,p,J[0],4096336452,6),p=P(p,z,I,L,J[7],1126891415,10),L=P(L,p,z,I,J[14],2878612391,15),I=P(I,L,p,z,J[5],4237533241,21),z=P(z,I,L,p,J[12],1700485571,6),p=P(p,z,I,L,J[3],2399980690,10),L=P(L,p,z,I,J[10],4293915773,15),I=P(I,L,p,z,J[1],2240044497,21),z=P(z,I,L,p,J[8],1873313359,6),p=P(p,z,I,L,J[15],4264355552,10),L=P(L,p,z,I,J[6],2734768916,15),I=P(I,L,p,z,J[13],1309151649,21),z=P(z,I,L,p,J[4],4149444226,6),p=P(p,z,I,L,J[11],3174756917,10),L=P(L,p,z,I,J[2],718787259,15),I=P(I,L,p,z,J[9],3951481745,21),this._a=this._a+z|0,this._b=this._b+I|0,this._c=this._c+L|0,this._d=this._d+p|0},Q.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 J=Z.allocUnsafe(16);return J.writeInt32LE(this._a,0),J.writeInt32LE(this._b,4),J.writeInt32LE(this._c,8),J.writeInt32LE(this._d,12),J};function O(J,T){return J<<T|J>>>32-T}function k(J,T,z,I,L,p,E){return O(J+(T&z|~T&I)+L+p|0,E)+T|0}function C(J,T,z,I,L,p,E){return O(J+(T&I|z&~I)+L+p|0,E)+T|0}function D(J,T,z,I,L,p,E){return O(J+(T^z^I)+L+p|0,E)+T|0}function P(J,T,z,I,L,p,E){return O(J+(z^(T|~I))+L+p|0,E)+T|0}M.exports=Q}),C9=z0((v,M)=>{var B=j5().Buffer,S=h0(),Z=a9(),q=new Array(16),Q=[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],O=[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],k=[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],D=[0,1518500249,1859775393,2400959708,2840853838],P=[1352829926,1548603684,1836072691,2053994217,0];function J(){Z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}S(J,Z),J.prototype._update=function(){for(var x=q,b=0;b<16;++b)x[b]=this._block.readInt32LE(b*4);for(var w=this._a|0,g=this._b|0,r=this._c|0,t=this._d|0,$0=this._e|0,f=this._a|0,Z0=this._b|0,K=this._c|0,W=this._d|0,U=this._e|0,V=0;V<80;V+=1){var H,$;V<16?(H=z(w,g,r,t,$0,x[Q[V]],D[0],k[V]),$=E(f,Z0,K,W,U,x[O[V]],P[0],C[V])):V<32?(H=I(w,g,r,t,$0,x[Q[V]],D[1],k[V]),$=p(f,Z0,K,W,U,x[O[V]],P[1],C[V])):V<48?(H=L(w,g,r,t,$0,x[Q[V]],D[2],k[V]),$=L(f,Z0,K,W,U,x[O[V]],P[2],C[V])):V<64?(H=p(w,g,r,t,$0,x[Q[V]],D[3],k[V]),$=I(f,Z0,K,W,U,x[O[V]],P[3],C[V])):(H=E(w,g,r,t,$0,x[Q[V]],D[4],k[V]),$=z(f,Z0,K,W,U,x[O[V]],P[4],C[V])),w=$0,$0=t,t=T(r,10),r=g,g=H,f=U,U=W,W=T(K,10),K=Z0,Z0=$}var G=this._b+r+W|0;this._b=this._c+t+U|0,this._c=this._d+$0+f|0,this._d=this._e+w+Z0|0,this._e=this._a+g+K|0,this._a=G},J.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 x=B.alloc?B.alloc(20):new B(20);return x.writeInt32LE(this._a,0),x.writeInt32LE(this._b,4),x.writeInt32LE(this._c,8),x.writeInt32LE(this._d,12),x.writeInt32LE(this._e,16),x};function T(x,b){return x<<b|x>>>32-b}function z(x,b,w,g,r,t,$0,f){return T(x+(b^w^g)+t+$0|0,f)+r|0}function I(x,b,w,g,r,t,$0,f){return T(x+(b&w|~b&g)+t+$0|0,f)+r|0}function L(x,b,w,g,r,t,$0,f){return T(x+((b|~w)^g)+t+$0|0,f)+r|0}function p(x,b,w,g,r,t,$0,f){return T(x+(b&g|w&~g)+t+$0|0,f)+r|0}function E(x,b,w,g,r,t,$0,f){return T(x+(b^(w|~g))+t+$0|0,f)+r|0}M.exports=J}),b5=z0((v,M)=>{var B=l0().Buffer;function S(Z,q){this._block=B.alloc(Z),this._finalSize=q,this._blockSize=Z,this._len=0}S.prototype.update=function(Z,q){typeof Z=="string"&&(q=q||"utf8",Z=B.from(Z,q));for(var Q=this._block,O=this._blockSize,k=Z.length,C=this._len,D=0;D<k;){for(var P=C%O,J=Math.min(k-D,O-P),T=0;T<J;T++)Q[P+T]=Z[D+T];C+=J,D+=J,C%O===0&&this._update(Q)}return this._len+=k,this},S.prototype.digest=function(Z){var q=this._len%this._blockSize;this._block[q]=128,this._block.fill(0,q+1),q>=this._finalSize&&(this._update(this._block),this._block.fill(0));var Q=this._len*8;if(Q<=4294967295)this._block.writeUInt32BE(Q,this._blockSize-4);else{var O=(Q&4294967295)>>>0,k=(Q-O)/4294967296;this._block.writeUInt32BE(k,this._blockSize-8),this._block.writeUInt32BE(O,this._blockSize-4)}this._update(this._block);var C=this._hash();return Z?C.toString(Z):C},S.prototype._update=function(){throw new Error("_update must be implemented by subclass")},M.exports=S}),K6=z0((v,M)=>{var B=h0(),S=b5(),Z=l0().Buffer,q=[1518500249,1859775393,-1894007588,-899497514],Q=new Array(80);function O(){this.init(),this._w=Q,S.call(this,64,56)}B(O,S),O.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k(P){return P<<5|P>>>27}function C(P){return P<<30|P>>>2}function D(P,J,T,z){return P===0?J&T|~J&z:P===2?J&T|J&z|T&z:J^T^z}O.prototype._update=function(P){for(var J=this._w,T=this._a|0,z=this._b|0,I=this._c|0,L=this._d|0,p=this._e|0,E=0;E<16;++E)J[E]=P.readInt32BE(E*4);for(;E<80;++E)J[E]=J[E-3]^J[E-8]^J[E-14]^J[E-16];for(var x=0;x<80;++x){var b=~~(x/20),w=k(T)+D(b,z,I,L)+p+J[x]+q[b]|0;p=L,L=I,I=C(z),z=T,T=w}this._a=T+this._a|0,this._b=z+this._b|0,this._c=I+this._c|0,this._d=L+this._d|0,this._e=p+this._e|0},O.prototype._hash=function(){var P=Z.allocUnsafe(20);return P.writeInt32BE(this._a|0,0),P.writeInt32BE(this._b|0,4),P.writeInt32BE(this._c|0,8),P.writeInt32BE(this._d|0,12),P.writeInt32BE(this._e|0,16),P},M.exports=O}),X6=z0((v,M)=>{var B=h0(),S=b5(),Z=l0().Buffer,q=[1518500249,1859775393,-1894007588,-899497514],Q=new Array(80);function O(){this.init(),this._w=Q,S.call(this,64,56)}B(O,S),O.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k(J){return J<<1|J>>>31}function C(J){return J<<5|J>>>27}function D(J){return J<<30|J>>>2}function P(J,T,z,I){return J===0?T&z|~T&I:J===2?T&z|T&I|z&I:T^z^I}O.prototype._update=function(J){for(var T=this._w,z=this._a|0,I=this._b|0,L=this._c|0,p=this._d|0,E=this._e|0,x=0;x<16;++x)T[x]=J.readInt32BE(x*4);for(;x<80;++x)T[x]=k(T[x-3]^T[x-8]^T[x-14]^T[x-16]);for(var b=0;b<80;++b){var w=~~(b/20),g=C(z)+P(w,I,L,p)+E+T[b]+q[w]|0;E=p,p=L,L=D(I),I=z,z=g}this._a=z+this._a|0,this._b=I+this._b|0,this._c=L+this._c|0,this._d=p+this._d|0,this._e=E+this._e|0},O.prototype._hash=function(){var J=Z.allocUnsafe(20);return J.writeInt32BE(this._a|0,0),J.writeInt32BE(this._b|0,4),J.writeInt32BE(this._c|0,8),J.writeInt32BE(this._d|0,12),J.writeInt32BE(this._e|0,16),J},M.exports=O}),n9=z0((v,M)=>{var B=h0(),S=b5(),Z=l0().Buffer,q=[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],Q=new Array(64);function O(){this.init(),this._w=Q,S.call(this,64,56)}B(O,S),O.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 k(z,I,L){return L^z&(I^L)}function C(z,I,L){return z&I|L&(z|I)}function D(z){return(z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10)}function P(z){return(z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7)}function J(z){return(z>>>7|z<<25)^(z>>>18|z<<14)^z>>>3}function T(z){return(z>>>17|z<<15)^(z>>>19|z<<13)^z>>>10}O.prototype._update=function(z){for(var I=this._w,L=this._a|0,p=this._b|0,E=this._c|0,x=this._d|0,b=this._e|0,w=this._f|0,g=this._g|0,r=this._h|0,t=0;t<16;++t)I[t]=z.readInt32BE(t*4);for(;t<64;++t)I[t]=T(I[t-2])+I[t-7]+J(I[t-15])+I[t-16]|0;for(var $0=0;$0<64;++$0){var f=r+P(b)+k(b,w,g)+q[$0]+I[$0]|0,Z0=D(L)+C(L,p,E)|0;r=g,g=w,w=b,b=x+f|0,x=E,E=p,p=L,L=f+Z0|0}this._a=L+this._a|0,this._b=p+this._b|0,this._c=E+this._c|0,this._d=x+this._d|0,this._e=b+this._e|0,this._f=w+this._f|0,this._g=g+this._g|0,this._h=r+this._h|0},O.prototype._hash=function(){var z=Z.allocUnsafe(32);return z.writeInt32BE(this._a,0),z.writeInt32BE(this._b,4),z.writeInt32BE(this._c,8),z.writeInt32BE(this._d,12),z.writeInt32BE(this._e,16),z.writeInt32BE(this._f,20),z.writeInt32BE(this._g,24),z.writeInt32BE(this._h,28),z},M.exports=O}),W6=z0((v,M)=>{var B=h0(),S=n9(),Z=b5(),q=l0().Buffer,Q=new Array(64);function O(){this.init(),this._w=Q,Z.call(this,64,56)}B(O,S),O.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},O.prototype._hash=function(){var k=q.allocUnsafe(28);return k.writeInt32BE(this._a,0),k.writeInt32BE(this._b,4),k.writeInt32BE(this._c,8),k.writeInt32BE(this._d,12),k.writeInt32BE(this._e,16),k.writeInt32BE(this._f,20),k.writeInt32BE(this._g,24),k},M.exports=O}),i9=z0((v,M)=>{var B=h0(),S=b5(),Z=l0().Buffer,q=[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],Q=new Array(160);function O(){this.init(),this._w=Q,S.call(this,128,112)}B(O,S),O.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 k(p,E,x){return x^p&(E^x)}function C(p,E,x){return p&E|x&(p|E)}function D(p,E){return(p>>>28|E<<4)^(E>>>2|p<<30)^(E>>>7|p<<25)}function P(p,E){return(p>>>14|E<<18)^(p>>>18|E<<14)^(E>>>9|p<<23)}function J(p,E){return(p>>>1|E<<31)^(p>>>8|E<<24)^p>>>7}function T(p,E){return(p>>>1|E<<31)^(p>>>8|E<<24)^(p>>>7|E<<25)}function z(p,E){return(p>>>19|E<<13)^(E>>>29|p<<3)^p>>>6}function I(p,E){return(p>>>19|E<<13)^(E>>>29|p<<3)^(p>>>6|E<<26)}function L(p,E){return p>>>0<E>>>0?1:0}O.prototype._update=function(p){for(var E=this._w,x=this._ah|0,b=this._bh|0,w=this._ch|0,g=this._dh|0,r=this._eh|0,t=this._fh|0,$0=this._gh|0,f=this._hh|0,Z0=this._al|0,K=this._bl|0,W=this._cl|0,U=this._dl|0,V=this._el|0,H=this._fl|0,$=this._gl|0,G=this._hl|0,Y=0;Y<32;Y+=2)E[Y]=p.readInt32BE(Y*4),E[Y+1]=p.readInt32BE(Y*4+4);for(;Y<160;Y+=2){var X=E[Y-30],F=E[Y-30+1],N=J(X,F),j=T(F,X);X=E[Y-4],F=E[Y-4+1];var A=z(X,F),m=I(F,X),h=E[Y-14],e=E[Y-14+1],T0=E[Y-32],U0=E[Y-32+1],y=j+e|0,o=N+h+L(y,j)|0;y=y+m|0,o=o+A+L(y,m)|0,y=y+U0|0,o=o+T0+L(y,U0)|0,E[Y]=o,E[Y+1]=y}for(var n=0;n<160;n+=2){o=E[n],y=E[n+1];var K0=C(x,b,w),w0=C(Z0,K,W),l=D(x,Z0),u=D(Z0,x),C0=P(r,V),H0=P(V,r),F0=q[n],y0=q[n+1],a=k(r,t,$0),X0=k(V,H,$),M0=G+H0|0,W0=f+C0+L(M0,G)|0;M0=M0+X0|0,W0=W0+a+L(M0,X0)|0,M0=M0+y0|0,W0=W0+F0+L(M0,y0)|0,M0=M0+y|0,W0=W0+o+L(M0,y)|0;var G0=u+w0|0,b0=l+K0+L(G0,u)|0;f=$0,G=$,$0=t,$=H,t=r,H=V,V=U+M0|0,r=g+W0+L(V,U)|0,g=w,U=W,w=b,W=K,b=x,K=Z0,Z0=M0+G0|0,x=W0+b0+L(Z0,M0)|0}this._al=this._al+Z0|0,this._bl=this._bl+K|0,this._cl=this._cl+W|0,this._dl=this._dl+U|0,this._el=this._el+V|0,this._fl=this._fl+H|0,this._gl=this._gl+$|0,this._hl=this._hl+G|0,this._ah=this._ah+x+L(this._al,Z0)|0,this._bh=this._bh+b+L(this._bl,K)|0,this._ch=this._ch+w+L(this._cl,W)|0,this._dh=this._dh+g+L(this._dl,U)|0,this._eh=this._eh+r+L(this._el,V)|0,this._fh=this._fh+t+L(this._fl,H)|0,this._gh=this._gh+$0+L(this._gl,$)|0,this._hh=this._hh+f+L(this._hl,G)|0},O.prototype._hash=function(){var p=Z.allocUnsafe(64);function E(x,b,w){p.writeInt32BE(x,w),p.writeInt32BE(b,w+4)}return E(this._ah,this._al,0),E(this._bh,this._bl,8),E(this._ch,this._cl,16),E(this._dh,this._dl,24),E(this._eh,this._el,32),E(this._fh,this._fl,40),E(this._gh,this._gl,48),E(this._hh,this._hl,56),p},M.exports=O}),V6=z0((v,M)=>{var B=h0(),S=i9(),Z=b5(),q=l0().Buffer,Q=new Array(160);function O(){this.init(),this._w=Q,Z.call(this,128,112)}B(O,S),O.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},O.prototype._hash=function(){var k=q.allocUnsafe(48);function C(D,P,J){k.writeInt32BE(D,J),k.writeInt32BE(P,J+4)}return 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),k},M.exports=O}),N9=z0((B,M)=>{var B=M.exports=function(S){S=S.toLowerCase();var Z=B[S];if(!Z)throw new Error(S+" is not supported (we accept pull requests)");return new Z};B.sha=K6(),B.sha1=X6(),B.sha224=W6(),B.sha256=n9(),B.sha384=V6(),B.sha512=i9()}),E5=z0((v,M)=>{var B=l0().Buffer,S=(f9(),D5(X9)).Transform,Z=m9().StringDecoder,q=h0();function Q(D){S.call(this),this.hashMode=typeof D=="string",this.hashMode?this[D]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}q(Q,S);var O=typeof Uint8Array<"u",k=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(B.prototype instanceof Uint8Array||B.TYPED_ARRAY_SUPPORT);function C(D,P){if(D instanceof B)return D;if(typeof D=="string")return B.from(D,P);if(k&&ArrayBuffer.isView(D)){if(D.byteLength===0)return B.alloc(0);var J=B.from(D.buffer,D.byteOffset,D.byteLength);if(J.byteLength===D.byteLength)return J}if(O&&D instanceof Uint8Array||B.isBuffer(D)&&D.constructor&&typeof D.constructor.isBuffer=="function"&&D.constructor.isBuffer(D))return B.from(D);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}Q.prototype.update=function(D,P,J){var T=C(D,P),z=this._update(T);return this.hashMode?this:(J&&(z=this._toString(z,J)),z)},Q.prototype.setAutoPadding=function(){},Q.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},Q.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},Q.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},Q.prototype._transform=function(D,P,J){var T;try{this.hashMode?this._update(D):this.push(this._update(D))}catch(z){T=z}finally{J(T)}},Q.prototype._flush=function(D){var P;try{this.push(this.__final())}catch(J){P=J}D(P)},Q.prototype._finalOrDigest=function(D){var P=this.__final()||B.alloc(0);return D&&(P=this._toString(P,D,!0)),P},Q.prototype._toString=function(D,P,J){if(this._decoder||(this._decoder=new Z(P),this._encoding=P),this._encoding!==P)throw new Error("can’t switch encodings");var T=this._decoder.write(D);return J&&(T+=this._decoder.end()),T},M.exports=Q}),l5=z0((v,M)=>{var B=h0(),S=D9(),Z=C9(),q=N9(),Q=E5();function O(k){Q.call(this,"digest"),this._hash=k}B(O,Q),O.prototype._update=function(k){this._hash.update(k)},O.prototype._final=function(){return this._hash.digest()},M.exports=function(k){return k=k.toLowerCase(),k==="md5"?new S:k==="rmd160"||k==="ripemd160"?new Z:new O(q(k))}}),U6=z0((v,M)=>{var B=h0(),S=l0().Buffer,Z=E5(),q=S.alloc(128),Q=64;function O(k,C){Z.call(this,"digest"),typeof C=="string"&&(C=S.from(C)),this._alg=k,this._key=C,C.length>Q?C=k(C):C.length<Q&&(C=S.concat([C,q],Q));for(var D=this._ipad=S.allocUnsafe(Q),P=this._opad=S.allocUnsafe(Q),J=0;J<Q;J++)D[J]=C[J]^54,P[J]=C[J]^92;this._hash=[D]}B(O,Z),O.prototype._update=function(k){this._hash.push(k)},O.prototype._final=function(){var k=this._alg(S.concat(this._hash));return this._alg(S.concat([this._opad,k]))},M.exports=O}),r9=z0((v,M)=>{var B=D9();M.exports=function(S){return new B().update(S).digest()}}),t9=z0((v,M)=>{var B=h0(),S=U6(),Z=E5(),q=l0().Buffer,Q=r9(),O=C9(),k=N9(),C=q.alloc(128);function D(P,J){Z.call(this,"digest"),typeof J=="string"&&(J=q.from(J));var T=P==="sha512"||P==="sha384"?128:64;if(this._alg=P,this._key=J,J.length>T){var z=P==="rmd160"?new O:k(P);J=z.update(J).digest()}else J.length<T&&(J=q.concat([J,C],T));for(var I=this._ipad=q.allocUnsafe(T),L=this._opad=q.allocUnsafe(T),p=0;p<T;p++)I[p]=J[p]^54,L[p]=J[p]^92;this._hash=P==="rmd160"?new O:k(P),this._hash.update(I)}B(D,Z),D.prototype._update=function(P){this._hash.update(P)},D.prototype._final=function(){var P=this._hash.digest(),J=this._alg==="rmd160"?new O:k(this._alg);return J.update(this._opad).update(P).digest()},M.exports=function(P,J){return P=P.toLowerCase(),P==="rmd160"||P==="ripemd160"?new D("rmd160",J):P==="md5"?new S(Q,J):new D(P,J)}}),e9=z0((v,M)=>{M.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}),H6=z0((v,M)=>{M.exports=e9()}),K4=z0((v,M)=>{var B=Math.pow(2,30)-1;M.exports=function(S,Z){if(typeof S!="number")throw new TypeError("Iterations not a number");if(S<0)throw new TypeError("Bad iterations");if(typeof Z!="number")throw new TypeError("Key length not a number");if(Z<0||Z>B||Z!==Z)throw new TypeError("Bad key length")}}),X4=z0((v,M)=>{var B;global.process&&global.process.browser?B="utf-8":global.process&&global.process.version?(S=parseInt(process.version.split(".")[0].slice(1),10),B=S>=6?"utf-8":"binary"):B="utf-8";var S;M.exports=B}),W4=z0((v,M)=>{var B=l0().Buffer;M.exports=function(S,Z,q){if(B.isBuffer(S))return S;if(typeof S=="string")return B.from(S,Z);if(ArrayBuffer.isView(S))return B.from(S.buffer);throw new TypeError(q+" must be a string, a Buffer, a typed array or a DataView")}}),V4=z0((v,M)=>{var B=r9(),S=C9(),Z=N9(),q=l0().Buffer,Q=K4(),O=X4(),k=W4(),C=q.alloc(128),D={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function P(z,I,L){var p=J(z),E=z==="sha512"||z==="sha384"?128:64;I.length>E?I=p(I):I.length<E&&(I=q.concat([I,C],E));for(var x=q.allocUnsafe(E+D[z]),b=q.allocUnsafe(E+D[z]),w=0;w<E;w++)x[w]=I[w]^54,b[w]=I[w]^92;var g=q.allocUnsafe(E+L+4);x.copy(g,0,0,E),this.ipad1=g,this.ipad2=x,this.opad=b,this.alg=z,this.blocksize=E,this.hash=p,this.size=D[z]}P.prototype.run=function(z,I){z.copy(I,this.blocksize);var L=this.hash(I);return L.copy(this.opad,this.blocksize),this.hash(this.opad)};function J(z){function I(p){return Z(z).update(p).digest()}function L(p){return new S().update(p).digest()}return z==="rmd160"||z==="ripemd160"?L:z==="md5"?B:I}function T(z,I,L,p,E){Q(L,p),z=k(z,O,"Password"),I=k(I,O,"Salt"),E=E||"sha1";var x=new P(E,z,I.length),b=q.allocUnsafe(p),w=q.allocUnsafe(I.length+4);I.copy(w,0,0,I.length);for(var g=0,r=D[E],t=Math.ceil(p/r),$0=1;$0<=t;$0++){w.writeUInt32BE($0,I.length);for(var f=x.run(w,x.ipad1),Z0=f,K=1;K<L;K++){Z0=x.run(Z0,x.ipad2);for(var W=0;W<r;W++)f[W]^=Z0[W]}f.copy(b,g),g+=r}return b}M.exports=T}),Y6=z0((v,M)=>{var B=l0().Buffer,S=K4(),Z=X4(),q=V4(),Q=W4(),O,k=global.crypto&&global.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"},D=[];function P(L){if(global.process&&!global.process.browser||!k||!k.importKey||!k.deriveBits)return Promise.resolve(!1);if(D[L]!==void 0)return D[L];O=O||B.alloc(8);var p=z(O,O,10,128,L).then(function(){return!0}).catch(function(){return!1});return D[L]=p,p}var J;function T(){return J||(global.process&&global.process.nextTick?J=global.process.nextTick:global.queueMicrotask?J=global.queueMicrotask:global.setImmediate?J=global.setImmediate:J=global.setTimeout,J)}function z(L,p,E,x,b){return k.importKey("raw",L,{name:"PBKDF2"},!1,["deriveBits"]).then(function(w){return k.deriveBits({name:"PBKDF2",salt:p,iterations:E,hash:{name:b}},w,x<<3)}).then(function(w){return B.from(w)})}function I(L,p){L.then(function(E){T()(function(){p(null,E)})},function(E){T()(function(){p(E)})})}M.exports=function(L,p,E,x,b,w){typeof b=="function"&&(w=b,b=void 0),b=b||"sha1";var g=C[b.toLowerCase()];if(!g||typeof global.Promise!="function"){T()(function(){var r;try{r=q(L,p,E,x,b)}catch(t){return w(t)}w(null,r)});return}if(S(E,x),L=Q(L,Z,"Password"),p=Q(p,Z,"Salt"),typeof w!="function")throw new Error("No callback provided to pbkdf2");I(P(g).then(function(r){return r?z(L,p,E,x,g):q(L,p,E,x,b)}),w)}}),U4=z0((v)=>{v.pbkdf2=Y6(),v.pbkdf2Sync=V4()}),H4=z0((v)=>{v.readUInt32BE=function(Z,q){var Q=Z[0+q]<<24|Z[1+q]<<16|Z[2+q]<<8|Z[3+q];return Q>>>0},v.writeUInt32BE=function(Z,q,Q){Z[0+Q]=q>>>24,Z[1+Q]=q>>>16&255,Z[2+Q]=q>>>8&255,Z[3+Q]=q&255},v.ip=function(Z,q,Q,O){for(var k=0,C=0,D=6;D>=0;D-=2){for(var P=0;P<=24;P+=8)k<<=1,k|=q>>>P+D&1;for(var P=0;P<=24;P+=8)k<<=1,k|=Z>>>P+D&1}for(var D=6;D>=0;D-=2){for(var P=1;P<=25;P+=8)C<<=1,C|=q>>>P+D&1;for(var P=1;P<=25;P+=8)C<<=1,C|=Z>>>P+D&1}Q[O+0]=k>>>0,Q[O+1]=C>>>0},v.rip=function(Z,q,Q,O){for(var k=0,C=0,D=0;D<4;D++)for(var P=24;P>=0;P-=8)k<<=1,k|=q>>>P+D&1,k<<=1,k|=Z>>>P+D&1;for(var D=4;D<8;D++)for(var P=24;P>=0;P-=8)C<<=1,C|=q>>>P+D&1,C<<=1,C|=Z>>>P+D&1;Q[O+0]=k>>>0,Q[O+1]=C>>>0},v.pc1=function(Z,q,Q,O){for(var k=0,C=0,D=7;D>=5;D--){for(var P=0;P<=24;P+=8)k<<=1,k|=q>>P+D&1;for(var P=0;P<=24;P+=8)k<<=1,k|=Z>>P+D&1}for(var P=0;P<=24;P+=8)k<<=1,k|=q>>P+D&1;for(var D=1;D<=3;D++){for(var P=0;P<=24;P+=8)C<<=1,C|=q>>P+D&1;for(var P=0;P<=24;P+=8)C<<=1,C|=Z>>P+D&1}for(var P=0;P<=24;P+=8)C<<=1,C|=Z>>P+D&1;Q[O+0]=k>>>0,Q[O+1]=C>>>0},v.r28shl=function(Z,q){return Z<<q&268435455|Z>>>28-q};var M=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];v.pc2=function(Z,q,Q,O){for(var k=0,C=0,D=M.length>>>1,P=0;P<D;P++)k<<=1,k|=Z>>>M[P]&1;for(var P=D;P<M.length;P++)C<<=1,C|=q>>>M[P]&1;Q[O+0]=k>>>0,Q[O+1]=C>>>0},v.expand=function(Z,q,Q){var O=0,k=0;O=(Z&1)<<5|Z>>>27;for(var C=23;C>=15;C-=4)O<<=6,O|=Z>>>C&63;for(var C=11;C>=3;C-=4)k|=Z>>>C&63,k<<=6;k|=(Z&31)<<1|Z>>>31,q[Q+0]=O>>>0,q[Q+1]=k>>>0};var B=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];v.substitute=function(Z,q){for(var Q=0,O=0;O<4;O++){var k=Z>>>18-O*6&63,C=B[O*64+k];Q<<=4,Q|=C}for(var O=0;O<4;O++){var k=q>>>18-O*6&63,C=B[256+O*64+k];Q<<=4,Q|=C}return Q>>>0};var S=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];v.permute=function(Z){for(var q=0,Q=0;Q<S.length;Q++)q<<=1,q|=Z>>>S[Q]&1;return q>>>0},v.padSplit=function(Z,q,Q){for(var O=Z.toString(2);O.length<q;)O="0"+O;for(var k=[],C=0;C<q;C+=Q)k.push(O.slice(C,C+Q));return k.join(" ")}}),C5=z0((v,M)=>{M.exports=B;function B(S,Z){if(!S)throw new Error(Z||"Assertion failed")}B.equal=function(S,Z,q){if(S!=Z)throw new Error(q||"Assertion failed: "+S+" != "+Z)}}),T9=z0((v,M)=>{var B=C5();function S(Z){this.options=Z,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=Z.padding!==!1}M.exports=S,S.prototype._init=function(){},S.prototype.update=function(Z){return Z.length===0?[]:this.type==="decrypt"?this._updateDecrypt(Z):this._updateEncrypt(Z)},S.prototype._buffer=function(Z,q){for(var Q=Math.min(this.buffer.length-this.bufferOff,Z.length-q),O=0;O<Q;O++)this.buffer[this.bufferOff+O]=Z[q+O];return this.bufferOff+=Q,Q},S.prototype._flushBuffer=function(Z,q){return this._update(this.buffer,0,Z,q),this.bufferOff=0,this.blockSize},S.prototype._updateEncrypt=function(Z){var q=0,Q=0,O=(this.bufferOff+Z.length)/this.blockSize|0,k=new Array(O*this.blockSize);this.bufferOff!==0&&(q+=this._buffer(Z,q),this.bufferOff===this.buffer.length&&(Q+=this._flushBuffer(k,Q)));for(var C=Z.length-(Z.length-q)%this.blockSize;q<C;q+=this.blockSize)this._update(Z,q,k,Q),Q+=this.blockSize;for(;q<Z.length;q++,this.bufferOff++)this.buffer[this.bufferOff]=Z[q];return k},S.prototype._updateDecrypt=function(Z){for(var q=0,Q=0,O=Math.ceil((this.bufferOff+Z.length)/this.blockSize)-1,k=new Array(O*this.blockSize);O>0;O--)q+=this._buffer(Z,q),Q+=this._flushBuffer(k,Q);return q+=this._buffer(Z,q),k},S.prototype.final=function(Z){var q;Z&&(q=this.update(Z));var Q;return this.type==="encrypt"?Q=this._finalEncrypt():Q=this._finalDecrypt(),q?q.concat(Q):Q},S.prototype._pad=function(Z,q){if(q===0)return!1;for(;q<Z.length;)Z[q++]=0;return!0},S.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var Z=new Array(this.blockSize);return this._update(this.buffer,0,Z,0),Z},S.prototype._unpad=function(Z){return Z},S.prototype._finalDecrypt=function(){B.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var Z=new Array(this.blockSize);return this._flushBuffer(Z,0),this._unpad(Z)}}),Y4=z0((v,M)=>{var B=C5(),S=h0(),Z=H4(),q=T9();function Q(){this.tmp=new Array(2),this.keys=null}function O(C){q.call(this,C);var D=new Q;this._desState=D,this.deriveKeys(D,C.key)}S(O,q),M.exports=O,O.create=function(C){return new O(C)};var k=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];O.prototype.deriveKeys=function(C,D){C.keys=new Array(32),B.equal(D.length,this.blockSize,"Invalid key length");var P=Z.readUInt32BE(D,0),J=Z.readUInt32BE(D,4);Z.pc1(P,J,C.tmp,0),P=C.tmp[0],J=C.tmp[1];for(var T=0;T<C.keys.length;T+=2){var z=k[T>>>1];P=Z.r28shl(P,z),J=Z.r28shl(J,z),Z.pc2(P,J,C.keys,T)}},O.prototype._update=function(C,D,P,J){var T=this._desState,z=Z.readUInt32BE(C,D),I=Z.readUInt32BE(C,D+4);Z.ip(z,I,T.tmp,0),z=T.tmp[0],I=T.tmp[1],this.type==="encrypt"?this._encrypt(T,z,I,T.tmp,0):this._decrypt(T,z,I,T.tmp,0),z=T.tmp[0],I=T.tmp[1],Z.writeUInt32BE(P,z,J),Z.writeUInt32BE(P,I,J+4)},O.prototype._pad=function(C,D){if(this.padding===!1)return!1;for(var P=C.length-D,J=D;J<C.length;J++)C[J]=P;return!0},O.prototype._unpad=function(C){if(this.padding===!1)return C;for(var D=C[C.length-1],P=C.length-D;P<C.length;P++)B.equal(C[P],D);return C.slice(0,C.length-D)},O.prototype._encrypt=function(C,D,P,J,T){for(var z=D,I=P,L=0;L<C.keys.length;L+=2){var p=C.keys[L],E=C.keys[L+1];Z.expand(I,C.tmp,0),p^=C.tmp[0],E^=C.tmp[1];var x=Z.substitute(p,E),b=Z.permute(x),w=I;I=(z^b)>>>0,z=w}Z.rip(I,z,J,T)},O.prototype._decrypt=function(C,D,P,J,T){for(var z=P,I=D,L=C.keys.length-2;L>=0;L-=2){var p=C.keys[L],E=C.keys[L+1];Z.expand(z,C.tmp,0),p^=C.tmp[0],E^=C.tmp[1];var x=Z.substitute(p,E),b=Z.permute(x),w=z;z=(I^b)>>>0,I=w}Z.rip(z,I,J,T)}}),F6=z0((v)=>{var M=C5(),B=h0(),S={};function Z(Q){M.equal(Q.length,8,"Invalid IV length"),this.iv=new Array(8);for(var O=0;O<this.iv.length;O++)this.iv[O]=Q[O]}function q(Q){function O(P){Q.call(this,P),this._cbcInit()}B(O,Q);for(var k=Object.keys(S),C=0;C<k.length;C++){var D=k[C];O.prototype[D]=S[D]}return O.create=function(P){return new O(P)},O}v.instantiate=q,S._cbcInit=function(){var Q=new Z(this.options.iv);this._cbcState=Q},S._update=function(Q,O,k,C){var D=this._cbcState,P=this.constructor.super_.prototype,J=D.iv;if(this.type==="encrypt"){for(var T=0;T<this.blockSize;T++)J[T]^=Q[O+T];P._update.call(this,J,0,k,C);for(var T=0;T<this.blockSize;T++)J[T]=k[C+T]}else{P._update.call(this,Q,O,k,C);for(var T=0;T<this.blockSize;T++)k[C+T]^=J[T];for(var T=0;T<this.blockSize;T++)J[T]=Q[O+T]}}}),Q6=z0((v,M)=>{var B=C5(),S=h0(),Z=T9(),q=Y4();function Q(k,C){B.equal(C.length,24,"Invalid key length");var D=C.slice(0,8),P=C.slice(8,16),J=C.slice(16,24);k==="encrypt"?this.ciphers=[q.create({type:"encrypt",key:D}),q.create({type:"decrypt",key:P}),q.create({type:"encrypt",key:J})]:this.ciphers=[q.create({type:"decrypt",key:J}),q.create({type:"encrypt",key:P}),q.create({type:"decrypt",key:D})]}function O(k){Z.call(this,k);var C=new Q(this.type,this.options.key);this._edeState=C}S(O,Z),M.exports=O,O.create=function(k){return new O(k)},O.prototype._update=function(k,C,D,P){var J=this._edeState;J.ciphers[0]._update(k,C,D,P),J.ciphers[1]._update(D,P,D,P),J.ciphers[2]._update(D,P,D,P)},O.prototype._pad=q.prototype._pad,O.prototype._unpad=q.prototype._unpad}),$6=z0((v)=>{v.utils=H4(),v.Cipher=T9(),v.DES=Y4(),v.CBC=F6(),v.EDE=Q6()}),G6=z0((v,M)=>{var B=E5(),S=$6(),Z=h0(),q=l0().Buffer,Q={"des-ede3-cbc":S.CBC.instantiate(S.EDE),"des-ede3":S.EDE,"des-ede-cbc":S.CBC.instantiate(S.EDE),"des-ede":S.EDE,"des-cbc":S.CBC.instantiate(S.DES),"des-ecb":S.DES};Q.des=Q["des-cbc"],Q.des3=Q["des-ede3-cbc"],M.exports=O,Z(O,B);function O(k){B.call(this);var C=k.mode.toLowerCase(),D=Q[C],P;k.decrypt?P="decrypt":P="encrypt";var J=k.key;q.isBuffer(J)||(J=q.from(J)),(C==="des-ede"||C==="des-ede-cbc")&&(J=q.concat([J,J.slice(0,8)]));var T=k.iv;q.isBuffer(T)||(T=q.from(T)),this._des=D.create({key:J,iv:T,type:P})}O.prototype._update=function(k){return q.from(this._des.update(k))},O.prototype._final=function(){return q.from(this._des.final())}}),P6=z0((v)=>{v.encrypt=function(M,B){return M._cipher.encryptBlock(B)},v.decrypt=function(M,B){return M._cipher.decryptBlock(B)}}),h5=z0((v,M)=>{M.exports=function(B,S){for(var Z=Math.min(B.length,S.length),q=new Buffer(Z),Q=0;Q<Z;++Q)q[Q]=B[Q]^S[Q];return q}}),Z6=z0((v)=>{var M=h5();v.encrypt=function(B,S){var Z=M(S,B._prev);return B._prev=B._cipher.encryptBlock(Z),B._prev},v.decrypt=function(B,S){var Z=B._prev;B._prev=S;var q=B._cipher.decryptBlock(S);return M(q,Z)}}),J6=z0((v)=>{var M=l0().Buffer,B=h5();function S(Z,q,Q){var O=q.length,k=B(q,Z._cache);return Z._cache=Z._cache.slice(O),Z._prev=M.concat([Z._prev,Q?q:k]),k}v.encrypt=function(Z,q,Q){for(var O=M.allocUnsafe(0),k;q.length;)if(Z._cache.length===0&&(Z._cache=Z._cipher.encryptBlock(Z._prev),Z._prev=M.allocUnsafe(0)),Z._cache.length<=q.length)k=Z._cache.length,O=M.concat([O,S(Z,q.slice(0,k),Q)]),q=q.slice(k);else{O=M.concat([O,S(Z,q,Q)]);break}return O}}),z6=z0((v)=>{var M=l0().Buffer;function B(S,Z,q){var Q=S._cipher.encryptBlock(S._prev),O=Q[0]^Z;return S._prev=M.concat([S._prev.slice(1),M.from([q?Z:O])]),O}v.encrypt=function(S,Z,q){for(var Q=Z.length,O=M.allocUnsafe(Q),k=-1;++k<Q;)O[k]=B(S,Z[k],q);return O}}),O6=z0((v)=>{var M=l0().Buffer;function B(Z,q,Q){for(var O,k=-1,C=8,D=0,P,J;++k<C;)O=Z._cipher.encryptBlock(Z._prev),P=q&1<<7-k?128:0,J=O[0]^P,D+=(J&128)>>k%8,Z._prev=S(Z._prev,Q?P:J);return D}function S(Z,q){var Q=Z.length,O=-1,k=M.allocUnsafe(Z.length);for(Z=M.concat([Z,M.from([q])]);++O<Q;)k[O]=Z[O]<<1|Z[O+1]>>7;return k}v.encrypt=function(Z,q,Q){for(var O=q.length,k=M.allocUnsafe(O),C=-1;++C<O;)k[C]=B(Z,q[C],Q);return k}}),j6=z0((v)=>{var M=h5();function B(S){return S._prev=S._cipher.encryptBlock(S._prev),S._prev}v.encrypt=function(S,Z){for(;S._cache.length<Z.length;)S._cache=Buffer.concat([S._cache,B(S)]);var q=S._cache.slice(0,Z.length);return S._cache=S._cache.slice(Z.length),M(Z,q)}}),F4=z0((v,M)=>{function B(S){for(var Z=S.length,q;Z--;)if(q=S.readUInt8(Z),q===255)S.writeUInt8(0,Z);else{q++,S.writeUInt8(q,Z);break}}M.exports=B}),w9=z0((v)=>{var M=h5(),B=l0().Buffer,S=F4();function Z(Q){var O=Q._cipher.encryptBlockRaw(Q._prev);return S(Q._prev),O}var q=16;v.encrypt=function(Q,O){var k=Math.ceil(O.length/q),C=Q._cache.length;Q._cache=B.concat([Q._cache,B.allocUnsafe(k*q)]);for(var D=0;D<k;D++){var P=Z(Q),J=C+D*q;Q._cache.writeUInt32BE(P[0],J+0),Q._cache.writeUInt32BE(P[1],J+4),Q._cache.writeUInt32BE(P[2],J+8),Q._cache.writeUInt32BE(P[3],J+12)}var T=Q._cache.slice(0,O.length);return Q._cache=Q._cache.slice(O.length),M(O,T)}}),Q4=z0((v,M)=>{M.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}),L9=z0((v,M)=>{var B={ECB:P6(),CBC:Z6(),CFB:J6(),CFB8:z6(),CFB1:O6(),OFB:j6(),CTR:w9(),GCM:w9()},S=Q4();for(Z in S)S[Z].module=B[S[Z].mode];var Z;M.exports=S}),W9=z0((v,M)=>{var B=l0().Buffer;function S(C){B.isBuffer(C)||(C=B.from(C));for(var D=C.length/4|0,P=new Array(D),J=0;J<D;J++)P[J]=C.readUInt32BE(J*4);return P}function Z(C){for(var D=0;D<C.length;C++)C[D]=0}function q(C,D,P,J,T){for(var z=P[0],I=P[1],L=P[2],p=P[3],E=C[0]^D[0],x=C[1]^D[1],b=C[2]^D[2],w=C[3]^D[3],g,r,t,$0,f=4,Z0=1;Z0<T;Z0++)g=z[E>>>24]^I[x>>>16&255]^L[b>>>8&255]^p[w&255]^D[f++],r=z[x>>>24]^I[b>>>16&255]^L[w>>>8&255]^p[E&255]^D[f++],t=z[b>>>24]^I[w>>>16&255]^L[E>>>8&255]^p[x&255]^D[f++],$0=z[w>>>24]^I[E>>>16&255]^L[x>>>8&255]^p[b&255]^D[f++],E=g,x=r,b=t,w=$0;return g=(J[E>>>24]<<24|J[x>>>16&255]<<16|J[b>>>8&255]<<8|J[w&255])^D[f++],r=(J[x>>>24]<<24|J[b>>>16&255]<<16|J[w>>>8&255]<<8|J[E&255])^D[f++],t=(J[b>>>24]<<24|J[w>>>16&255]<<16|J[E>>>8&255]<<8|J[x&255])^D[f++],$0=(J[w>>>24]<<24|J[E>>>16&255]<<16|J[x>>>8&255]<<8|J[b&255])^D[f++],g=g>>>0,r=r>>>0,t=t>>>0,$0=$0>>>0,[g,r,t,$0]}var Q=[0,1,2,4,8,16,32,64,128,27,54],O=function(){for(var C=new Array(256),D=0;D<256;D++)D<128?C[D]=D<<1:C[D]=D<<1^283;for(var P=[],J=[],T=[[],[],[],[]],z=[[],[],[],[]],I=0,L=0,p=0;p<256;++p){var E=L^L<<1^L<<2^L<<3^L<<4;E=E>>>8^E&255^99,P[I]=E,J[E]=I;var x=C[I],b=C[x],w=C[b],g=C[E]*257^E*16843008;T[0][I]=g<<24|g>>>8,T[1][I]=g<<16|g>>>16,T[2][I]=g<<8|g>>>24,T[3][I]=g,g=w*16843009^b*65537^x*257^I*16843008,z[0][E]=g<<24|g>>>8,z[1][E]=g<<16|g>>>16,z[2][E]=g<<8|g>>>24,z[3][E]=g,I===0?I=L=1:(I=x^C[C[C[w^x]]],L^=C[C[L]])}return{SBOX:P,INV_SBOX:J,SUB_MIX:T,INV_SUB_MIX:z}}();function k(C){this._key=S(C),this._reset()}k.blockSize=16,k.keySize=32,k.prototype.blockSize=k.blockSize,k.prototype.keySize=k.keySize,k.prototype._reset=function(){for(var C=this._key,D=C.length,P=D+6,J=(P+1)*4,T=[],z=0;z<D;z++)T[z]=C[z];for(z=D;z<J;z++){var I=T[z-1];z%D===0?(I=I<<8|I>>>24,I=O.SBOX[I>>>24]<<24|O.SBOX[I>>>16&255]<<16|O.SBOX[I>>>8&255]<<8|O.SBOX[I&255],I^=Q[z/D|0]<<24):D>6&&z%D===4&&(I=O.SBOX[I>>>24]<<24|O.SBOX[I>>>16&255]<<16|O.SBOX[I>>>8&255]<<8|O.SBOX[I&255]),T[z]=T[z-D]^I}for(var L=[],p=0;p<J;p++){var E=J-p,x=T[E-(p%4?0:4)];p<4||E<=4?L[p]=x:L[p]=O.INV_SUB_MIX[0][O.SBOX[x>>>24]]^O.INV_SUB_MIX[1][O.SBOX[x>>>16&255]]^O.INV_SUB_MIX[2][O.SBOX[x>>>8&255]]^O.INV_SUB_MIX[3][O.SBOX[x&255]]}this._nRounds=P,this._keySchedule=T,this._invKeySchedule=L},k.prototype.encryptBlockRaw=function(C){return C=S(C),q(C,this._keySchedule,O.SUB_MIX,O.SBOX,this._nRounds)},k.prototype.encryptBlock=function(C){var D=this.encryptBlockRaw(C),P=B.allocUnsafe(16);return P.writeUInt32BE(D[0],0),P.writeUInt32BE(D[1],4),P.writeUInt32BE(D[2],8),P.writeUInt32BE(D[3],12),P},k.prototype.decryptBlock=function(C){C=S(C);var D=C[1];C[1]=C[3],C[3]=D;var P=q(C,this._invKeySchedule,O.INV_SUB_MIX,O.INV_SBOX,this._nRounds),J=B.allocUnsafe(16);return J.writeUInt32BE(P[0],0),J.writeUInt32BE(P[3],4),J.writeUInt32BE(P[2],8),J.writeUInt32BE(P[1],12),J},k.prototype.scrub=function(){Z(this._keySchedule),Z(this._invKeySchedule),Z(this._key)},M.exports.AES=k}),D6=z0((v,M)=>{var B=l0().Buffer,S=B.alloc(16,0);function Z(O){return[O.readUInt32BE(0),O.readUInt32BE(4),O.readUInt32BE(8),O.readUInt32BE(12)]}function q(O){var k=B.allocUnsafe(16);return k.writeUInt32BE(O[0]>>>0,0),k.writeUInt32BE(O[1]>>>0,4),k.writeUInt32BE(O[2]>>>0,8),k.writeUInt32BE(O[3]>>>0,12),k}function Q(O){this.h=O,this.state=B.alloc(16,0),this.cache=B.allocUnsafe(0)}Q.prototype.ghash=function(O){for(var k=-1;++k<O.length;)this.state[k]^=O[k];this._multiply()},Q.prototype._multiply=function(){for(var O=Z(this.h),k=[0,0,0,0],C,D,P,J=-1;++J<128;){for(D=(this.state[~~(J/8)]&1<<7-J%8)!==0,D&&(k[0]^=O[0],k[1]^=O[1],k[2]^=O[2],k[3]^=O[3]),P=(O[3]&1)!==0,C=3;C>0;C--)O[C]=O[C]>>>1|(O[C-1]&1)<<31;O[0]=O[0]>>>1,P&&(O[0]=O[0]^-520093696)}this.state=q(k)},Q.prototype.update=function(O){this.cache=B.concat([this.cache,O]);for(var k;this.cache.length>=16;)k=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(k)},Q.prototype.final=function(O,k){return this.cache.length&&this.ghash(B.concat([this.cache,S],16)),this.ghash(q([0,O,0,k])),this.state},M.exports=Q}),$4=z0((v,M)=>{var B=W9(),S=l0().Buffer,Z=E5(),q=h0(),Q=D6(),O=h5(),k=F4();function C(J,T){var z=0;J.length!==T.length&&z++;for(var I=Math.min(J.length,T.length),L=0;L<I;++L)z+=J[L]^T[L];return z}function D(J,T,z){if(T.length===12)return J._finID=S.concat([T,S.from([0,0,0,1])]),S.concat([T,S.from([0,0,0,2])]);var I=new Q(z),L=T.length,p=L%16;I.update(T),p&&(p=16-p,I.update(S.alloc(p,0))),I.update(S.alloc(8,0));var E=L*8,x=S.alloc(8);x.writeUIntBE(E,0,8),I.update(x),J._finID=I.state;var b=S.from(J._finID);return k(b),b}function P(J,T,z,I){Z.call(this);var L=S.alloc(4,0);this._cipher=new B.AES(T);var p=this._cipher.encryptBlock(L);this._ghash=new Q(p),z=D(this,z,p),this._prev=S.from(z),this._cache=S.allocUnsafe(0),this._secCache=S.allocUnsafe(0),this._decrypt=I,this._alen=0,this._len=0,this._mode=J,this._authTag=null,this._called=!1}q(P,Z),P.prototype._update=function(J){if(!this._called&&this._alen){var T=16-this._alen%16;T<16&&(T=S.alloc(T,0),this._ghash.update(T))}this._called=!0;var z=this._mode.encrypt(this,J);return this._decrypt?this._ghash.update(J):this._ghash.update(z),this._len+=J.length,z},P.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var J=O(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&C(J,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=J,this._cipher.scrub()},P.prototype.getAuthTag=function(){if(this._decrypt||!S.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},P.prototype.setAuthTag=function(J){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=J},P.prototype.setAAD=function(J){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(J),this._alen+=J.length},M.exports=P}),G4=z0((v,M)=>{var B=W9(),S=l0().Buffer,Z=E5(),q=h0();function Q(O,k,C,D){Z.call(this),this._cipher=new B.AES(k),this._prev=S.from(C),this._cache=S.allocUnsafe(0),this._secCache=S.allocUnsafe(0),this._decrypt=D,this._mode=O}q(Q,Z),Q.prototype._update=function(O){return this._mode.encrypt(this,O,this._decrypt)},Q.prototype._final=function(){this._cipher.scrub()},M.exports=Q}),V9=z0((v,M)=>{var B=l0().Buffer,S=D9();function Z(q,Q,O,k){if(B.isBuffer(q)||(q=B.from(q,"binary")),Q&&(B.isBuffer(Q)||(Q=B.from(Q,"binary")),Q.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var C=O/8,D=B.alloc(C),P=B.alloc(k||0),J=B.alloc(0);C>0||k>0;){var T=new S;T.update(J),T.update(q),Q&&T.update(Q),J=T.digest();var z=0;if(C>0){var I=D.length-C;z=Math.min(C,J.length),J.copy(D,I,0,z),C-=z}if(z<J.length&&k>0){var L=P.length-k,p=Math.min(k,J.length-z);J.copy(P,L,z,z+p),k-=p}}return J.fill(0),{key:D,iv:P}}M.exports=Z}),C6=z0((v)=>{var M=L9(),B=$4(),S=l0().Buffer,Z=G4(),q=E5(),Q=W9(),O=V9(),k=h0();function C(z,I,L){q.call(this),this._cache=new P,this._cipher=new Q.AES(I),this._prev=S.from(L),this._mode=z,this._autopadding=!0}k(C,q),C.prototype._update=function(z){this._cache.add(z);for(var I,L,p=[];I=this._cache.get();)L=this._mode.encrypt(this,I),p.push(L);return S.concat(p)};var D=S.alloc(16,16);C.prototype._final=function(){var z=this._cache.flush();if(this._autopadding)return z=this._mode.encrypt(this,z),this._cipher.scrub(),z;if(!z.equals(D))throw this._cipher.scrub(),new Error("data not multiple of block length")},C.prototype.setAutoPadding=function(z){return this._autopadding=!!z,this};function P(){this.cache=S.allocUnsafe(0)}P.prototype.add=function(z){this.cache=S.concat([this.cache,z])},P.prototype.get=function(){if(this.cache.length>15){var z=this.cache.slice(0,16);return this.cache=this.cache.slice(16),z}return null},P.prototype.flush=function(){for(var z=16-this.cache.length,I=S.allocUnsafe(z),L=-1;++L<z;)I.writeUInt8(z,L);return S.concat([this.cache,I])};function J(z,I,L){var p=M[z.toLowerCase()];if(!p)throw new TypeError("invalid suite type");if(typeof I=="string"&&(I=S.from(I)),I.length!==p.key/8)throw new TypeError("invalid key length "+I.length);if(typeof L=="string"&&(L=S.from(L)),p.mode!=="GCM"&&L.length!==p.iv)throw new TypeError("invalid iv length "+L.length);return p.type==="stream"?new Z(p.module,I,L):p.type==="auth"?new B(p.module,I,L):new C(p.module,I,L)}function T(z,I){var L=M[z.toLowerCase()];if(!L)throw new TypeError("invalid suite type");var p=O(I,!1,L.key,L.iv);return J(z,p.key,p.iv)}v.createCipheriv=J,v.createCipher=T}),N6=z0((v)=>{var M=$4(),B=l0().Buffer,S=L9(),Z=G4(),q=E5(),Q=W9(),O=V9(),k=h0();function C(z,I,L){q.call(this),this._cache=new D,this._last=void 0,this._cipher=new Q.AES(I),this._prev=B.from(L),this._mode=z,this._autopadding=!0}k(C,q),C.prototype._update=function(z){this._cache.add(z);for(var I,L,p=[];I=this._cache.get(this._autopadding);)L=this._mode.decrypt(this,I),p.push(L);return B.concat(p)},C.prototype._final=function(){var z=this._cache.flush();if(this._autopadding)return P(this._mode.decrypt(this,z));if(z)throw new Error("data not multiple of block length")},C.prototype.setAutoPadding=function(z){return this._autopadding=!!z,this};function D(){this.cache=B.allocUnsafe(0)}D.prototype.add=function(z){this.cache=B.concat([this.cache,z])},D.prototype.get=function(z){var I;if(z){if(this.cache.length>16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I}else if(this.cache.length>=16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I;return null},D.prototype.flush=function(){if(this.cache.length)return this.cache};function P(z){var I=z[15];if(I<1||I>16)throw new Error("unable to decrypt data");for(var L=-1;++L<I;)if(z[L+(16-I)]!==I)throw new Error("unable to decrypt data");if(I!==16)return z.slice(0,16-I)}function J(z,I,L){var p=S[z.toLowerCase()];if(!p)throw new TypeError("invalid suite type");if(typeof L=="string"&&(L=B.from(L)),p.mode!=="GCM"&&L.length!==p.iv)throw new TypeError("invalid iv length "+L.length);if(typeof I=="string"&&(I=B.from(I)),I.length!==p.key/8)throw new TypeError("invalid key length "+I.length);return p.type==="stream"?new Z(p.module,I,L,!0):p.type==="auth"?new M(p.module,I,L,!0):new C(p.module,I,L)}function T(z,I){var L=S[z.toLowerCase()];if(!L)throw new TypeError("invalid suite type");var p=O(I,!1,L.key,L.iv);return J(z,p.key,p.iv)}v.createDecipher=T,v.createDecipheriv=J}),k9=z0((v)=>{var M=C6(),B=N6(),S=Q4();function Z(){return Object.keys(S)}v.createCipher=v.Cipher=M.createCipher,v.createCipheriv=v.Cipheriv=M.createCipheriv,v.createDecipher=v.Decipher=B.createDecipher,v.createDecipheriv=v.Decipheriv=B.createDecipheriv,v.listCiphers=v.getCiphers=Z}),T6=z0((v)=>{v["des-ecb"]={key:8,iv:0},v["des-cbc"]=v.des={key:8,iv:8},v["des-ede3-cbc"]=v.des3={key:24,iv:8},v["des-ede3"]={key:24,iv:0},v["des-ede-cbc"]={key:16,iv:8},v["des-ede"]={key:16,iv:0}}),L6=z0((v)=>{var M=G6(),B=k9(),S=L9(),Z=T6(),q=V9();function Q(P,J){P=P.toLowerCase();var T,z;if(S[P])T=S[P].key,z=S[P].iv;else if(Z[P])T=Z[P].key*8,z=Z[P].iv;else throw new TypeError("invalid suite type");var I=q(J,!1,T,z);return k(P,I.key,I.iv)}function O(P,J){P=P.toLowerCase();var T,z;if(S[P])T=S[P].key,z=S[P].iv;else if(Z[P])T=Z[P].key*8,z=Z[P].iv;else throw new TypeError("invalid suite type");var I=q(J,!1,T,z);return C(P,I.key,I.iv)}function k(P,J,T){if(P=P.toLowerCase(),S[P])return B.createCipheriv(P,J,T);if(Z[P])return new M({key:J,iv:T,mode:P});throw new TypeError("invalid suite type")}function C(P,J,T){if(P=P.toLowerCase(),S[P])return B.createDecipheriv(P,J,T);if(Z[P])return new M({key:J,iv:T,mode:P,decrypt:!0});throw new TypeError("invalid suite type")}function D(){return Object.keys(Z).concat(B.getCiphers())}v.createCipher=v.Cipher=Q,v.createCipheriv=v.Cipheriv=k,v.createDecipher=v.Decipher=O,v.createDecipheriv=v.Decipheriv=C,v.listCiphers=v.getCiphers=D}),_5=z0(()=>{}),P4=z0((v,M)=>{(function(B,S){function Z(K,W){if(!K)throw new Error(W||"Assertion failed")}function q(K,W){K.super_=W;var U=function(){};U.prototype=W.prototype,K.prototype=new U,K.prototype.constructor=K}function Q(K,W,U){if(Q.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((W==="le"||W==="be")&&(U=W,W=10),this._init(K||0,W||10,U||"be"))}typeof B=="object"?B.exports=Q:S.BN=Q,Q.BN=Q,Q.wordSize=26;var O;try{typeof window<"u"&&typeof window.Buffer<"u"?O=window.Buffer:O=_5().Buffer}catch{}Q.isBN=function(K){return K instanceof Q?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===Q.wordSize&&Array.isArray(K.words)},Q.max=function(K,W){return K.cmp(W)>0?K:W},Q.min=function(K,W){return K.cmp(W)<0?K:W},Q.prototype._init=function(K,W,U){if(typeof K=="number")return this._initNumber(K,W,U);if(typeof K=="object")return this._initArray(K,W,U);W==="hex"&&(W=16),Z(W===(W|0)&&W>=2&&W<=36),K=K.toString().replace(/\s+/g,"");var V=0;K[0]==="-"&&(V++,this.negative=1),V<K.length&&(W===16?this._parseHex(K,V,U):(this._parseBase(K,W,V),U==="le"&&this._initArray(this.toArray(),W,U)))},Q.prototype._initNumber=function(K,W,U){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(Z(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),W,U)},Q.prototype._initArray=function(K,W,U){if(Z(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H,$,G=0;if(U==="be")for(V=K.length-1,H=0;V>=0;V-=3)$=K[V]|K[V-1]<<8|K[V-2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);else if(U==="le")for(V=0,H=0;V<K.length;V+=3)$=K[V]|K[V+1]<<8|K[V+2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);return this.strip()};function k(K,W){var U=K.charCodeAt(W);return U>=65&&U<=70?U-55:U>=97&&U<=102?U-87:U-48&15}function C(K,W,U){var V=k(K,U);return U-1>=W&&(V|=k(K,U-1)<<4),V}Q.prototype._parseHex=function(K,W,U){this.length=Math.ceil((K.length-W)/6),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H=0,$=0,G;if(U==="be")for(V=K.length-1;V>=W;V-=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8;else{var Y=K.length-W;for(V=Y%2===0?W+1:W;V<K.length;V+=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8}this.strip()};function D(K,W,U,V){for(var H=0,$=Math.min(K.length,U),G=W;G<$;G++){var Y=K.charCodeAt(G)-48;H*=V,Y>=49?H+=Y-49+10:Y>=17?H+=Y-17+10:H+=Y}return H}Q.prototype._parseBase=function(K,W,U){this.words=[0],this.length=1;for(var V=0,H=1;H<=67108863;H*=W)V++;V--,H=H/W|0;for(var $=K.length-U,G=$%V,Y=Math.min($,$-G)+U,X=0,F=U;F<Y;F+=V)X=D(K,F,F+V,W),this.imuln(H),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(G!==0){var N=1;for(X=D(K,F,K.length,W),F=0;F<G;F++)N*=W;this.imuln(N),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},Q.prototype.copy=function(K){K.words=new Array(this.length);for(var W=0;W<this.length;W++)K.words[W]=this.words[W];K.length=this.length,K.negative=this.negative,K.red=this.red},Q.prototype.clone=function(){var K=new Q(null);return this.copy(K),K},Q.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},Q.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},Q.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},Q.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var P=["","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"],J=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];Q.prototype.toString=function(K,W){K=K||10,W=W|0||1;var U;if(K===16||K==="hex"){U="";for(var V=0,H=0,$=0;$<this.length;$++){var G=this.words[$],Y=((G<<V|H)&16777215).toString(16);H=G>>>24-V&16777215,V+=2,V>=26&&(V-=26,$--),H!==0||$!==this.length-1?U=P[6-Y.length]+Y+U:U=Y+U}for(H!==0&&(U=H.toString(16)+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(K===(K|0)&&K>=2&&K<=36){var X=J[K],F=T[K];U="";var N=this.clone();for(N.negative=0;!N.isZero();){var j=N.modn(F).toString(K);N=N.idivn(F),N.isZero()?U=j+U:U=P[X-j.length]+j+U}for(this.isZero()&&(U="0"+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}Z(!1,"Base should be between 2 and 36")},Q.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},Q.prototype.toJSON=function(){return this.toString(16)},Q.prototype.toBuffer=function(K,W){return Z(typeof O<"u"),this.toArrayLike(O,K,W)},Q.prototype.toArray=function(K,W){return this.toArrayLike(Array,K,W)},Q.prototype.toArrayLike=function(K,W,U){var V=this.byteLength(),H=U||Math.max(1,V);Z(V<=H,"byte array longer than desired length"),Z(H>0,"Requested array length <= 0"),this.strip();var $=W==="le",G=new K(H),Y,X,F=this.clone();if($){for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[X]=Y;for(;X<H;X++)G[X]=0}else{for(X=0;X<H-V;X++)G[X]=0;for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[H-X-1]=Y}return G},Math.clz32?Q.prototype._countBits=function(K){return 32-Math.clz32(K)}:Q.prototype._countBits=function(K){var W=K,U=0;return W>=4096&&(U+=13,W>>>=13),W>=64&&(U+=7,W>>>=7),W>=8&&(U+=4,W>>>=4),W>=2&&(U+=2,W>>>=2),U+W},Q.prototype._zeroBits=function(K){if(K===0)return 26;var W=K,U=0;return(W&8191)===0&&(U+=13,W>>>=13),(W&127)===0&&(U+=7,W>>>=7),(W&15)===0&&(U+=4,W>>>=4),(W&3)===0&&(U+=2,W>>>=2),(W&1)===0&&U++,U},Q.prototype.bitLength=function(){var K=this.words[this.length-1],W=this._countBits(K);return(this.length-1)*26+W};function z(K){for(var W=new Array(K.bitLength()),U=0;U<W.length;U++){var V=U/26|0,H=U%26;W[U]=(K.words[V]&1<<H)>>>H}return W}Q.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,W=0;W<this.length;W++){var U=this._zeroBits(this.words[W]);if(K+=U,U!==26)break}return K},Q.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Q.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},Q.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},Q.prototype.isNeg=function(){return this.negative!==0},Q.prototype.neg=function(){return this.clone().ineg()},Q.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},Q.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var W=0;W<K.length;W++)this.words[W]=this.words[W]|K.words[W];return this.strip()},Q.prototype.ior=function(K){return Z((this.negative|K.negative)===0),this.iuor(K)},Q.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},Q.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},Q.prototype.iuand=function(K){var W;this.length>K.length?W=K:W=this;for(var U=0;U<W.length;U++)this.words[U]=this.words[U]&K.words[U];return this.length=W.length,this.strip()},Q.prototype.iand=function(K){return Z((this.negative|K.negative)===0),this.iuand(K)},Q.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},Q.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},Q.prototype.iuxor=function(K){var W,U;this.length>K.length?(W=this,U=K):(W=K,U=this);for(var V=0;V<U.length;V++)this.words[V]=W.words[V]^U.words[V];if(this!==W)for(;V<W.length;V++)this.words[V]=W.words[V];return this.length=W.length,this.strip()},Q.prototype.ixor=function(K){return Z((this.negative|K.negative)===0),this.iuxor(K)},Q.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},Q.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},Q.prototype.inotn=function(K){Z(typeof K=="number"&&K>=0);var W=Math.ceil(K/26)|0,U=K%26;this._expand(W),U>0&&W--;for(var V=0;V<W;V++)this.words[V]=~this.words[V]&67108863;return U>0&&(this.words[V]=~this.words[V]&67108863>>26-U),this.strip()},Q.prototype.notn=function(K){return this.clone().inotn(K)},Q.prototype.setn=function(K,W){Z(typeof K=="number"&&K>=0);var U=K/26|0,V=K%26;return this._expand(U+1),W?this.words[U]=this.words[U]|1<<V:this.words[U]=this.words[U]&~(1<<V),this.strip()},Q.prototype.iadd=function(K){var W;if(this.negative!==0&&K.negative===0)return this.negative=0,W=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,W=this.isub(K),K.negative=1,W._normSign();var U,V;this.length>K.length?(U=this,V=K):(U=K,V=this);for(var H=0,$=0;$<V.length;$++)W=(U.words[$]|0)+(V.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;for(;H!==0&&$<U.length;$++)W=(U.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;if(this.length=U.length,H!==0)this.words[this.length]=H,this.length++;else if(U!==this)for(;$<U.length;$++)this.words[$]=U.words[$];return this},Q.prototype.add=function(K){var W;return K.negative!==0&&this.negative===0?(K.negative=0,W=this.sub(K),K.negative^=1,W):K.negative===0&&this.negative!==0?(this.negative=0,W=K.sub(this),this.negative=1,W):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},Q.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var W=this.iadd(K);return K.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var U=this.cmp(K);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var V,H;U>0?(V=this,H=K):(V=K,H=this);for(var $=0,G=0;G<H.length;G++)W=(V.words[G]|0)-(H.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;for(;$!==0&&G<V.length;G++)W=(V.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;if($===0&&G<V.length&&V!==this)for(;G<V.length;G++)this.words[G]=V.words[G];return this.length=Math.max(this.length,G),V!==this&&(this.negative=1),this.strip()},Q.prototype.sub=function(K){return this.clone().isub(K)};function I(K,W,U){U.negative=W.negative^K.negative;var V=K.length+W.length|0;U.length=V,V=V-1|0;var H=K.words[0]|0,$=W.words[0]|0,G=H*$,Y=G&67108863,X=G/67108864|0;U.words[0]=Y;for(var F=1;F<V;F++){for(var N=X>>>26,j=X&67108863,A=Math.min(F,W.length-1),m=Math.max(0,F-K.length+1);m<=A;m++){var h=F-m|0;H=K.words[h]|0,$=W.words[m]|0,G=H*$+j,N+=G/67108864|0,j=G&67108863}U.words[F]=j|0,X=N|0}return X!==0?U.words[F]=X|0:U.length--,U.strip()}var L=function(K,W,U){var V=K.words,H=W.words,$=U.words,G=0,Y,X,F,N=V[0]|0,j=N&8191,A=N>>>13,m=V[1]|0,h=m&8191,e=m>>>13,T0=V[2]|0,U0=T0&8191,y=T0>>>13,o=V[3]|0,n=o&8191,K0=o>>>13,w0=V[4]|0,l=w0&8191,u=w0>>>13,C0=V[5]|0,H0=C0&8191,F0=C0>>>13,y0=V[6]|0,a=y0&8191,X0=y0>>>13,M0=V[7]|0,W0=M0&8191,G0=M0>>>13,b0=V[8]|0,R=b0&8191,_=b0>>>13,d=V[9]|0,s=d&8191,i=d>>>13,E0=H[0]|0,Y0=E0&8191,J0=E0>>>13,d0=H[1]|0,j0=d0&8191,O0=d0>>>13,c0=H[2]|0,S0=c0&8191,k0=c0>>>13,P5=H[3]|0,A0=P5&8191,R0=P5>>>13,$5=H[4]|0,p0=$5&8191,_0=$5>>>13,G5=H[5]|0,I0=G5&8191,c=G5>>>13,V0=H[6]|0,Q0=V0&8191,P0=V0>>>13,g0=H[7]|0,D0=g0&8191,N0=g0>>>13,f0=H[8]|0,q0=f0&8191,x0=f0>>>13,Z5=H[9]|0,B0=Z5&8191,L0=Z5>>>13;U.negative=K.negative^W.negative,U.length=19,Y=Math.imul(j,Y0),X=Math.imul(j,J0),X=X+Math.imul(A,Y0)|0,F=Math.imul(A,J0);var o0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,Y=Math.imul(h,Y0),X=Math.imul(h,J0),X=X+Math.imul(e,Y0)|0,F=Math.imul(e,J0),Y=Y+Math.imul(j,j0)|0,X=X+Math.imul(j,O0)|0,X=X+Math.imul(A,j0)|0,F=F+Math.imul(A,O0)|0;var m0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,Y=Math.imul(U0,Y0),X=Math.imul(U0,J0),X=X+Math.imul(y,Y0)|0,F=Math.imul(y,J0),Y=Y+Math.imul(h,j0)|0,X=X+Math.imul(h,O0)|0,X=X+Math.imul(e,j0)|0,F=F+Math.imul(e,O0)|0,Y=Y+Math.imul(j,S0)|0,X=X+Math.imul(j,k0)|0,X=X+Math.imul(A,S0)|0,F=F+Math.imul(A,k0)|0;var v0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(v0>>>26)|0,v0&=67108863,Y=Math.imul(n,Y0),X=Math.imul(n,J0),X=X+Math.imul(K0,Y0)|0,F=Math.imul(K0,J0),Y=Y+Math.imul(U0,j0)|0,X=X+Math.imul(U0,O0)|0,X=X+Math.imul(y,j0)|0,F=F+Math.imul(y,O0)|0,Y=Y+Math.imul(h,S0)|0,X=X+Math.imul(h,k0)|0,X=X+Math.imul(e,S0)|0,F=F+Math.imul(e,k0)|0,Y=Y+Math.imul(j,A0)|0,X=X+Math.imul(j,R0)|0,X=X+Math.imul(A,A0)|0,F=F+Math.imul(A,R0)|0;var u0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,Y=Math.imul(l,Y0),X=Math.imul(l,J0),X=X+Math.imul(u,Y0)|0,F=Math.imul(u,J0),Y=Y+Math.imul(n,j0)|0,X=X+Math.imul(n,O0)|0,X=X+Math.imul(K0,j0)|0,F=F+Math.imul(K0,O0)|0,Y=Y+Math.imul(U0,S0)|0,X=X+Math.imul(U0,k0)|0,X=X+Math.imul(y,S0)|0,F=F+Math.imul(y,k0)|0,Y=Y+Math.imul(h,A0)|0,X=X+Math.imul(h,R0)|0,X=X+Math.imul(e,A0)|0,F=F+Math.imul(e,R0)|0,Y=Y+Math.imul(j,p0)|0,X=X+Math.imul(j,_0)|0,X=X+Math.imul(A,p0)|0,F=F+Math.imul(A,_0)|0;var s0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,Y=Math.imul(H0,Y0),X=Math.imul(H0,J0),X=X+Math.imul(F0,Y0)|0,F=Math.imul(F0,J0),Y=Y+Math.imul(l,j0)|0,X=X+Math.imul(l,O0)|0,X=X+Math.imul(u,j0)|0,F=F+Math.imul(u,O0)|0,Y=Y+Math.imul(n,S0)|0,X=X+Math.imul(n,k0)|0,X=X+Math.imul(K0,S0)|0,F=F+Math.imul(K0,k0)|0,Y=Y+Math.imul(U0,A0)|0,X=X+Math.imul(U0,R0)|0,X=X+Math.imul(y,A0)|0,F=F+Math.imul(y,R0)|0,Y=Y+Math.imul(h,p0)|0,X=X+Math.imul(h,_0)|0,X=X+Math.imul(e,p0)|0,F=F+Math.imul(e,_0)|0,Y=Y+Math.imul(j,I0)|0,X=X+Math.imul(j,c)|0,X=X+Math.imul(A,I0)|0,F=F+Math.imul(A,c)|0;var a0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,Y=Math.imul(a,Y0),X=Math.imul(a,J0),X=X+Math.imul(X0,Y0)|0,F=Math.imul(X0,J0),Y=Y+Math.imul(H0,j0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(F0,j0)|0,F=F+Math.imul(F0,O0)|0,Y=Y+Math.imul(l,S0)|0,X=X+Math.imul(l,k0)|0,X=X+Math.imul(u,S0)|0,F=F+Math.imul(u,k0)|0,Y=Y+Math.imul(n,A0)|0,X=X+Math.imul(n,R0)|0,X=X+Math.imul(K0,A0)|0,F=F+Math.imul(K0,R0)|0,Y=Y+Math.imul(U0,p0)|0,X=X+Math.imul(U0,_0)|0,X=X+Math.imul(y,p0)|0,F=F+Math.imul(y,_0)|0,Y=Y+Math.imul(h,I0)|0,X=X+Math.imul(h,c)|0,X=X+Math.imul(e,I0)|0,F=F+Math.imul(e,c)|0,Y=Y+Math.imul(j,Q0)|0,X=X+Math.imul(j,P0)|0,X=X+Math.imul(A,Q0)|0,F=F+Math.imul(A,P0)|0;var n0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,Y=Math.imul(W0,Y0),X=Math.imul(W0,J0),X=X+Math.imul(G0,Y0)|0,F=Math.imul(G0,J0),Y=Y+Math.imul(a,j0)|0,X=X+Math.imul(a,O0)|0,X=X+Math.imul(X0,j0)|0,F=F+Math.imul(X0,O0)|0,Y=Y+Math.imul(H0,S0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(F0,S0)|0,F=F+Math.imul(F0,k0)|0,Y=Y+Math.imul(l,A0)|0,X=X+Math.imul(l,R0)|0,X=X+Math.imul(u,A0)|0,F=F+Math.imul(u,R0)|0,Y=Y+Math.imul(n,p0)|0,X=X+Math.imul(n,_0)|0,X=X+Math.imul(K0,p0)|0,F=F+Math.imul(K0,_0)|0,Y=Y+Math.imul(U0,I0)|0,X=X+Math.imul(U0,c)|0,X=X+Math.imul(y,I0)|0,F=F+Math.imul(y,c)|0,Y=Y+Math.imul(h,Q0)|0,X=X+Math.imul(h,P0)|0,X=X+Math.imul(e,Q0)|0,F=F+Math.imul(e,P0)|0,Y=Y+Math.imul(j,D0)|0,X=X+Math.imul(j,N0)|0,X=X+Math.imul(A,D0)|0,F=F+Math.imul(A,N0)|0;var i0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,Y=Math.imul(R,Y0),X=Math.imul(R,J0),X=X+Math.imul(_,Y0)|0,F=Math.imul(_,J0),Y=Y+Math.imul(W0,j0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(G0,j0)|0,F=F+Math.imul(G0,O0)|0,Y=Y+Math.imul(a,S0)|0,X=X+Math.imul(a,k0)|0,X=X+Math.imul(X0,S0)|0,F=F+Math.imul(X0,k0)|0,Y=Y+Math.imul(H0,A0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(F0,A0)|0,F=F+Math.imul(F0,R0)|0,Y=Y+Math.imul(l,p0)|0,X=X+Math.imul(l,_0)|0,X=X+Math.imul(u,p0)|0,F=F+Math.imul(u,_0)|0,Y=Y+Math.imul(n,I0)|0,X=X+Math.imul(n,c)|0,X=X+Math.imul(K0,I0)|0,F=F+Math.imul(K0,c)|0,Y=Y+Math.imul(U0,Q0)|0,X=X+Math.imul(U0,P0)|0,X=X+Math.imul(y,Q0)|0,F=F+Math.imul(y,P0)|0,Y=Y+Math.imul(h,D0)|0,X=X+Math.imul(h,N0)|0,X=X+Math.imul(e,D0)|0,F=F+Math.imul(e,N0)|0,Y=Y+Math.imul(j,q0)|0,X=X+Math.imul(j,x0)|0,X=X+Math.imul(A,q0)|0,F=F+Math.imul(A,x0)|0;var r0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,Y=Math.imul(s,Y0),X=Math.imul(s,J0),X=X+Math.imul(i,Y0)|0,F=Math.imul(i,J0),Y=Y+Math.imul(R,j0)|0,X=X+Math.imul(R,O0)|0,X=X+Math.imul(_,j0)|0,F=F+Math.imul(_,O0)|0,Y=Y+Math.imul(W0,S0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(G0,S0)|0,F=F+Math.imul(G0,k0)|0,Y=Y+Math.imul(a,A0)|0,X=X+Math.imul(a,R0)|0,X=X+Math.imul(X0,A0)|0,F=F+Math.imul(X0,R0)|0,Y=Y+Math.imul(H0,p0)|0,X=X+Math.imul(H0,_0)|0,X=X+Math.imul(F0,p0)|0,F=F+Math.imul(F0,_0)|0,Y=Y+Math.imul(l,I0)|0,X=X+Math.imul(l,c)|0,X=X+Math.imul(u,I0)|0,F=F+Math.imul(u,c)|0,Y=Y+Math.imul(n,Q0)|0,X=X+Math.imul(n,P0)|0,X=X+Math.imul(K0,Q0)|0,F=F+Math.imul(K0,P0)|0,Y=Y+Math.imul(U0,D0)|0,X=X+Math.imul(U0,N0)|0,X=X+Math.imul(y,D0)|0,F=F+Math.imul(y,N0)|0,Y=Y+Math.imul(h,q0)|0,X=X+Math.imul(h,x0)|0,X=X+Math.imul(e,q0)|0,F=F+Math.imul(e,x0)|0,Y=Y+Math.imul(j,B0)|0,X=X+Math.imul(j,L0)|0,X=X+Math.imul(A,B0)|0,F=F+Math.imul(A,L0)|0;var t0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,Y=Math.imul(s,j0),X=Math.imul(s,O0),X=X+Math.imul(i,j0)|0,F=Math.imul(i,O0),Y=Y+Math.imul(R,S0)|0,X=X+Math.imul(R,k0)|0,X=X+Math.imul(_,S0)|0,F=F+Math.imul(_,k0)|0,Y=Y+Math.imul(W0,A0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(G0,A0)|0,F=F+Math.imul(G0,R0)|0,Y=Y+Math.imul(a,p0)|0,X=X+Math.imul(a,_0)|0,X=X+Math.imul(X0,p0)|0,F=F+Math.imul(X0,_0)|0,Y=Y+Math.imul(H0,I0)|0,X=X+Math.imul(H0,c)|0,X=X+Math.imul(F0,I0)|0,F=F+Math.imul(F0,c)|0,Y=Y+Math.imul(l,Q0)|0,X=X+Math.imul(l,P0)|0,X=X+Math.imul(u,Q0)|0,F=F+Math.imul(u,P0)|0,Y=Y+Math.imul(n,D0)|0,X=X+Math.imul(n,N0)|0,X=X+Math.imul(K0,D0)|0,F=F+Math.imul(K0,N0)|0,Y=Y+Math.imul(U0,q0)|0,X=X+Math.imul(U0,x0)|0,X=X+Math.imul(y,q0)|0,F=F+Math.imul(y,x0)|0,Y=Y+Math.imul(h,B0)|0,X=X+Math.imul(h,L0)|0,X=X+Math.imul(e,B0)|0,F=F+Math.imul(e,L0)|0;var e0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,Y=Math.imul(s,S0),X=Math.imul(s,k0),X=X+Math.imul(i,S0)|0,F=Math.imul(i,k0),Y=Y+Math.imul(R,A0)|0,X=X+Math.imul(R,R0)|0,X=X+Math.imul(_,A0)|0,F=F+Math.imul(_,R0)|0,Y=Y+Math.imul(W0,p0)|0,X=X+Math.imul(W0,_0)|0,X=X+Math.imul(G0,p0)|0,F=F+Math.imul(G0,_0)|0,Y=Y+Math.imul(a,I0)|0,X=X+Math.imul(a,c)|0,X=X+Math.imul(X0,I0)|0,F=F+Math.imul(X0,c)|0,Y=Y+Math.imul(H0,Q0)|0,X=X+Math.imul(H0,P0)|0,X=X+Math.imul(F0,Q0)|0,F=F+Math.imul(F0,P0)|0,Y=Y+Math.imul(l,D0)|0,X=X+Math.imul(l,N0)|0,X=X+Math.imul(u,D0)|0,F=F+Math.imul(u,N0)|0,Y=Y+Math.imul(n,q0)|0,X=X+Math.imul(n,x0)|0,X=X+Math.imul(K0,q0)|0,F=F+Math.imul(K0,x0)|0,Y=Y+Math.imul(U0,B0)|0,X=X+Math.imul(U0,L0)|0,X=X+Math.imul(y,B0)|0,F=F+Math.imul(y,L0)|0;var K5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,Y=Math.imul(s,A0),X=Math.imul(s,R0),X=X+Math.imul(i,A0)|0,F=Math.imul(i,R0),Y=Y+Math.imul(R,p0)|0,X=X+Math.imul(R,_0)|0,X=X+Math.imul(_,p0)|0,F=F+Math.imul(_,_0)|0,Y=Y+Math.imul(W0,I0)|0,X=X+Math.imul(W0,c)|0,X=X+Math.imul(G0,I0)|0,F=F+Math.imul(G0,c)|0,Y=Y+Math.imul(a,Q0)|0,X=X+Math.imul(a,P0)|0,X=X+Math.imul(X0,Q0)|0,F=F+Math.imul(X0,P0)|0,Y=Y+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(F0,D0)|0,F=F+Math.imul(F0,N0)|0,Y=Y+Math.imul(l,q0)|0,X=X+Math.imul(l,x0)|0,X=X+Math.imul(u,q0)|0,F=F+Math.imul(u,x0)|0,Y=Y+Math.imul(n,B0)|0,X=X+Math.imul(n,L0)|0,X=X+Math.imul(K0,B0)|0,F=F+Math.imul(K0,L0)|0;var X5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,Y=Math.imul(s,p0),X=Math.imul(s,_0),X=X+Math.imul(i,p0)|0,F=Math.imul(i,_0),Y=Y+Math.imul(R,I0)|0,X=X+Math.imul(R,c)|0,X=X+Math.imul(_,I0)|0,F=F+Math.imul(_,c)|0,Y=Y+Math.imul(W0,Q0)|0,X=X+Math.imul(W0,P0)|0,X=X+Math.imul(G0,Q0)|0,F=F+Math.imul(G0,P0)|0,Y=Y+Math.imul(a,D0)|0,X=X+Math.imul(a,N0)|0,X=X+Math.imul(X0,D0)|0,F=F+Math.imul(X0,N0)|0,Y=Y+Math.imul(H0,q0)|0,X=X+Math.imul(H0,x0)|0,X=X+Math.imul(F0,q0)|0,F=F+Math.imul(F0,x0)|0,Y=Y+Math.imul(l,B0)|0,X=X+Math.imul(l,L0)|0,X=X+Math.imul(u,B0)|0,F=F+Math.imul(u,L0)|0;var W5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(W5>>>26)|0,W5&=67108863,Y=Math.imul(s,I0),X=Math.imul(s,c),X=X+Math.imul(i,I0)|0,F=Math.imul(i,c),Y=Y+Math.imul(R,Q0)|0,X=X+Math.imul(R,P0)|0,X=X+Math.imul(_,Q0)|0,F=F+Math.imul(_,P0)|0,Y=Y+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(G0,D0)|0,F=F+Math.imul(G0,N0)|0,Y=Y+Math.imul(a,q0)|0,X=X+Math.imul(a,x0)|0,X=X+Math.imul(X0,q0)|0,F=F+Math.imul(X0,x0)|0,Y=Y+Math.imul(H0,B0)|0,X=X+Math.imul(H0,L0)|0,X=X+Math.imul(F0,B0)|0,F=F+Math.imul(F0,L0)|0;var V5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(V5>>>26)|0,V5&=67108863,Y=Math.imul(s,Q0),X=Math.imul(s,P0),X=X+Math.imul(i,Q0)|0,F=Math.imul(i,P0),Y=Y+Math.imul(R,D0)|0,X=X+Math.imul(R,N0)|0,X=X+Math.imul(_,D0)|0,F=F+Math.imul(_,N0)|0,Y=Y+Math.imul(W0,q0)|0,X=X+Math.imul(W0,x0)|0,X=X+Math.imul(G0,q0)|0,F=F+Math.imul(G0,x0)|0,Y=Y+Math.imul(a,B0)|0,X=X+Math.imul(a,L0)|0,X=X+Math.imul(X0,B0)|0,F=F+Math.imul(X0,L0)|0;var U5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(U5>>>26)|0,U5&=67108863,Y=Math.imul(s,D0),X=Math.imul(s,N0),X=X+Math.imul(i,D0)|0,F=Math.imul(i,N0),Y=Y+Math.imul(R,q0)|0,X=X+Math.imul(R,x0)|0,X=X+Math.imul(_,q0)|0,F=F+Math.imul(_,x0)|0,Y=Y+Math.imul(W0,B0)|0,X=X+Math.imul(W0,L0)|0,X=X+Math.imul(G0,B0)|0,F=F+Math.imul(G0,L0)|0;var H5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(H5>>>26)|0,H5&=67108863,Y=Math.imul(s,q0),X=Math.imul(s,x0),X=X+Math.imul(i,q0)|0,F=Math.imul(i,x0),Y=Y+Math.imul(R,B0)|0,X=X+Math.imul(R,L0)|0,X=X+Math.imul(_,B0)|0,F=F+Math.imul(_,L0)|0;var Y5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Y=Math.imul(s,B0),X=Math.imul(s,L0),X=X+Math.imul(i,B0)|0,F=Math.imul(i,L0);var F5=(G+Y|0)+((X&8191)<<13)|0;return G=(F+(X>>>13)|0)+(F5>>>26)|0,F5&=67108863,$[0]=o0,$[1]=m0,$[2]=v0,$[3]=u0,$[4]=s0,$[5]=a0,$[6]=n0,$[7]=i0,$[8]=r0,$[9]=t0,$[10]=e0,$[11]=K5,$[12]=X5,$[13]=W5,$[14]=V5,$[15]=U5,$[16]=H5,$[17]=Y5,$[18]=F5,G!==0&&($[19]=G,U.length++),U};Math.imul||(L=I);function p(K,W,U){U.negative=W.negative^K.negative,U.length=K.length+W.length;for(var V=0,H=0,$=0;$<U.length-1;$++){var G=H;H=0;for(var Y=V&67108863,X=Math.min($,W.length-1),F=Math.max(0,$-K.length+1);F<=X;F++){var N=$-F,j=K.words[N]|0,A=W.words[F]|0,m=j*A,h=m&67108863;G=G+(m/67108864|0)|0,h=h+Y|0,Y=h&67108863,G=G+(h>>>26)|0,H+=G>>>26,G&=67108863}U.words[$]=Y,V=G,G=H}return V!==0?U.words[$]=V:U.length--,U.strip()}function E(K,W,U){var V=new x;return V.mulp(K,W,U)}Q.prototype.mulTo=function(K,W){var U,V=this.length+K.length;return this.length===10&&K.length===10?U=L(this,K,W):V<63?U=I(this,K,W):V<1024?U=p(this,K,W):U=E(this,K,W),U};function x(K,W){this.x=K,this.y=W}x.prototype.makeRBT=function(K){for(var W=new Array(K),U=Q.prototype._countBits(K)-1,V=0;V<K;V++)W[V]=this.revBin(V,U,K);return W},x.prototype.revBin=function(K,W,U){if(K===0||K===U-1)return K;for(var V=0,H=0;H<W;H++)V|=(K&1)<<W-H-1,K>>=1;return V},x.prototype.permute=function(K,W,U,V,H,$){for(var G=0;G<$;G++)V[G]=W[K[G]],H[G]=U[K[G]]},x.prototype.transform=function(K,W,U,V,H,$){this.permute($,K,W,U,V,H);for(var G=1;G<H;G<<=1)for(var Y=G<<1,X=Math.cos(2*Math.PI/Y),F=Math.sin(2*Math.PI/Y),N=0;N<H;N+=Y)for(var j=X,A=F,m=0;m<G;m++){var h=U[N+m],e=V[N+m],T0=U[N+m+G],U0=V[N+m+G],y=j*T0-A*U0;U0=j*U0+A*T0,T0=y,U[N+m]=h+T0,V[N+m]=e+U0,U[N+m+G]=h-T0,V[N+m+G]=e-U0,m!==Y&&(y=X*j-F*A,A=X*A+F*j,j=y)}},x.prototype.guessLen13b=function(K,W){var U=Math.max(W,K)|1,V=U&1,H=0;for(U=U/2|0;U;U=U>>>1)H++;return 1<<H+1+V},x.prototype.conjugate=function(K,W,U){if(!(U<=1))for(var V=0;V<U/2;V++){var H=K[V];K[V]=K[U-V-1],K[U-V-1]=H,H=W[V],W[V]=-W[U-V-1],W[U-V-1]=-H}},x.prototype.normalize13b=function(K,W){for(var U=0,V=0;V<W/2;V++){var H=Math.round(K[2*V+1]/W)*8192+Math.round(K[2*V]/W)+U;K[V]=H&67108863,H<67108864?U=0:U=H/67108864|0}return K},x.prototype.convert13b=function(K,W,U,V){for(var H=0,$=0;$<W;$++)H=H+(K[$]|0),U[2*$]=H&8191,H=H>>>13,U[2*$+1]=H&8191,H=H>>>13;for($=2*W;$<V;++$)U[$]=0;Z(H===0),Z((H&-8192)===0)},x.prototype.stub=function(K){for(var W=new Array(K),U=0;U<K;U++)W[U]=0;return W},x.prototype.mulp=function(K,W,U){var V=2*this.guessLen13b(K.length,W.length),H=this.makeRBT(V),$=this.stub(V),G=new Array(V),Y=new Array(V),X=new Array(V),F=new Array(V),N=new Array(V),j=new Array(V),A=U.words;A.length=V,this.convert13b(K.words,K.length,G,V),this.convert13b(W.words,W.length,F,V),this.transform(G,$,Y,X,V,H),this.transform(F,$,N,j,V,H);for(var m=0;m<V;m++){var h=Y[m]*N[m]-X[m]*j[m];X[m]=Y[m]*j[m]+X[m]*N[m],Y[m]=h}return this.conjugate(Y,X,V),this.transform(Y,X,A,$,V,H),this.conjugate(A,$,V),this.normalize13b(A,V),U.negative=K.negative^W.negative,U.length=K.length+W.length,U.strip()},Q.prototype.mul=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),this.mulTo(K,W)},Q.prototype.mulf=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),E(this,K,W)},Q.prototype.imul=function(K){return this.clone().mulTo(K,this)},Q.prototype.imuln=function(K){Z(typeof K=="number"),Z(K<67108864);for(var W=0,U=0;U<this.length;U++){var V=(this.words[U]|0)*K,H=(V&67108863)+(W&67108863);W>>=26,W+=V/67108864|0,W+=H>>>26,this.words[U]=H&67108863}return W!==0&&(this.words[U]=W,this.length++),this},Q.prototype.muln=function(K){return this.clone().imuln(K)},Q.prototype.sqr=function(){return this.mul(this)},Q.prototype.isqr=function(){return this.imul(this.clone())},Q.prototype.pow=function(K){var W=z(K);if(W.length===0)return new Q(1);for(var U=this,V=0;V<W.length&&W[V]===0;V++,U=U.sqr());if(++V<W.length)for(var H=U.sqr();V<W.length;V++,H=H.sqr())W[V]!==0&&(U=U.mul(H));return U},Q.prototype.iushln=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=67108863>>>26-W<<26-W,H;if(W!==0){var $=0;for(H=0;H<this.length;H++){var G=this.words[H]&V,Y=(this.words[H]|0)-G<<W;this.words[H]=Y|$,$=G>>>26-W}$&&(this.words[H]=$,this.length++)}if(U!==0){for(H=this.length-1;H>=0;H--)this.words[H+U]=this.words[H];for(H=0;H<U;H++)this.words[H]=0;this.length+=U}return this.strip()},Q.prototype.ishln=function(K){return Z(this.negative===0),this.iushln(K)},Q.prototype.iushrn=function(K,W,U){Z(typeof K=="number"&&K>=0);var V;W?V=(W-W%26)/26:V=0;var H=K%26,$=Math.min((K-H)/26,this.length),G=67108863^67108863>>>H<<H,Y=U;if(V-=$,V=Math.max(0,V),Y){for(var X=0;X<$;X++)Y.words[X]=this.words[X];Y.length=$}if($!==0)if(this.length>$)for(this.length-=$,X=0;X<this.length;X++)this.words[X]=this.words[X+$];else this.words[0]=0,this.length=1;var F=0;for(X=this.length-1;X>=0&&(F!==0||X>=V);X--){var N=this.words[X]|0;this.words[X]=F<<26-H|N>>>H,F=N&G}return Y&&F!==0&&(Y.words[Y.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},Q.prototype.ishrn=function(K,W,U){return Z(this.negative===0),this.iushrn(K,W,U)},Q.prototype.shln=function(K){return this.clone().ishln(K)},Q.prototype.ushln=function(K){return this.clone().iushln(K)},Q.prototype.shrn=function(K){return this.clone().ishrn(K)},Q.prototype.ushrn=function(K){return this.clone().iushrn(K)},Q.prototype.testn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return!1;var H=this.words[U];return!!(H&V)},Q.prototype.imaskn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(W!==0&&U++,this.length=Math.min(U,this.length),W!==0){var V=67108863^67108863>>>W<<W;this.words[this.length-1]&=V}return this.strip()},Q.prototype.maskn=function(K){return this.clone().imaskn(K)},Q.prototype.iaddn=function(K){return Z(typeof K=="number"),Z(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},Q.prototype._iaddn=function(K){this.words[0]+=K;for(var W=0;W<this.length&&this.words[W]>=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},Q.prototype.isubn=function(K){if(Z(typeof K=="number"),Z(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W<this.length&&this.words[W]<0;W++)this.words[W]+=67108864,this.words[W+1]-=1;return this.strip()},Q.prototype.addn=function(K){return this.clone().iaddn(K)},Q.prototype.subn=function(K){return this.clone().isubn(K)},Q.prototype.iabs=function(){return this.negative=0,this},Q.prototype.abs=function(){return this.clone().iabs()},Q.prototype._ishlnsubmul=function(K,W,U){var V=K.length+U,H;this._expand(V);var $,G=0;for(H=0;H<K.length;H++){$=(this.words[H+U]|0)+G;var Y=(K.words[H]|0)*W;$-=Y&67108863,G=($>>26)-(Y/67108864|0),this.words[H+U]=$&67108863}for(;H<this.length-U;H++)$=(this.words[H+U]|0)+G,G=$>>26,this.words[H+U]=$&67108863;if(G===0)return this.strip();for(Z(G===-1),G=0,H=0;H<this.length;H++)$=-(this.words[H]|0)+G,G=$>>26,this.words[H]=$&67108863;return this.negative=1,this.strip()},Q.prototype._wordDiv=function(K,W){var U=this.length-K.length,V=this.clone(),H=K,$=H.words[H.length-1]|0,G=this._countBits($);U=26-G,U!==0&&(H=H.ushln(U),V.iushln(U),$=H.words[H.length-1]|0);var Y=V.length-H.length,X;if(W!=="mod"){X=new Q(null),X.length=Y+1,X.words=new Array(X.length);for(var F=0;F<X.length;F++)X.words[F]=0}var N=V.clone()._ishlnsubmul(H,1,Y);N.negative===0&&(V=N,X&&(X.words[Y]=1));for(var j=Y-1;j>=0;j--){var A=(V.words[H.length+j]|0)*67108864+(V.words[H.length+j-1]|0);for(A=Math.min(A/$|0,67108863),V._ishlnsubmul(H,A,j);V.negative!==0;)A--,V.negative=0,V._ishlnsubmul(H,1,j),V.isZero()||(V.negative^=1);X&&(X.words[j]=A)}return X&&X.strip(),V.strip(),W!=="div"&&U!==0&&V.iushrn(U),{div:X||null,mod:V}},Q.prototype.divmod=function(K,W,U){if(Z(!K.isZero()),this.isZero())return{div:new Q(0),mod:new Q(0)};var V,H,$;return this.negative!==0&&K.negative===0?($=this.neg().divmod(K,W),W!=="mod"&&(V=$.div.neg()),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.iadd(K)),{div:V,mod:H}):this.negative===0&&K.negative!==0?($=this.divmod(K.neg(),W),W!=="mod"&&(V=$.div.neg()),{div:V,mod:$.mod}):(this.negative&K.negative)!==0?($=this.neg().divmod(K.neg(),W),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.isub(K)),{div:$.div,mod:H}):K.length>this.length||this.cmp(K)<0?{div:new Q(0),mod:this}:K.length===1?W==="div"?{div:this.divn(K.words[0]),mod:null}:W==="mod"?{div:null,mod:new Q(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new Q(this.modn(K.words[0]))}:this._wordDiv(K,W)},Q.prototype.div=function(K){return this.divmod(K,"div",!1).div},Q.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},Q.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},Q.prototype.divRound=function(K){var W=this.divmod(K);if(W.mod.isZero())return W.div;var U=W.div.negative!==0?W.mod.isub(K):W.mod,V=K.ushrn(1),H=K.andln(1),$=U.cmp(V);return $<0||H===1&&$===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},Q.prototype.modn=function(K){Z(K<=67108863);for(var W=67108864%K,U=0,V=this.length-1;V>=0;V--)U=(W*U+(this.words[V]|0))%K;return U},Q.prototype.idivn=function(K){Z(K<=67108863);for(var W=0,U=this.length-1;U>=0;U--){var V=(this.words[U]|0)+W*67108864;this.words[U]=V/K|0,W=V%K}return this.strip()},Q.prototype.divn=function(K){return this.clone().idivn(K)},Q.prototype.egcd=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=new Q(0),G=new Q(1),Y=0;W.isEven()&&U.isEven();)W.iushrn(1),U.iushrn(1),++Y;for(var X=U.clone(),F=W.clone();!W.isZero();){for(var N=0,j=1;(W.words[0]&j)===0&&N<26;++N,j<<=1);if(N>0)for(W.iushrn(N);N-- >0;)(V.isOdd()||H.isOdd())&&(V.iadd(X),H.isub(F)),V.iushrn(1),H.iushrn(1);for(var A=0,m=1;(U.words[0]&m)===0&&A<26;++A,m<<=1);if(A>0)for(U.iushrn(A);A-- >0;)($.isOdd()||G.isOdd())&&($.iadd(X),G.isub(F)),$.iushrn(1),G.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub($),H.isub(G)):(U.isub(W),$.isub(V),G.isub(H))}return{a:$,b:G,gcd:U.iushln(Y)}},Q.prototype._invmp=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=U.clone();W.cmpn(1)>0&&U.cmpn(1)>0;){for(var G=0,Y=1;(W.words[0]&Y)===0&&G<26;++G,Y<<=1);if(G>0)for(W.iushrn(G);G-- >0;)V.isOdd()&&V.iadd($),V.iushrn(1);for(var X=0,F=1;(U.words[0]&F)===0&&X<26;++X,F<<=1);if(X>0)for(U.iushrn(X);X-- >0;)H.isOdd()&&H.iadd($),H.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub(H)):(U.isub(W),H.isub(V))}var N;return W.cmpn(1)===0?N=V:N=H,N.cmpn(0)<0&&N.iadd(K),N},Q.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var W=this.clone(),U=K.clone();W.negative=0,U.negative=0;for(var V=0;W.isEven()&&U.isEven();V++)W.iushrn(1),U.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;U.isEven();)U.iushrn(1);var H=W.cmp(U);if(H<0){var $=W;W=U,U=$}else if(H===0||U.cmpn(1)===0)break;W.isub(U)}while(!0);return U.iushln(V)},Q.prototype.invm=function(K){return this.egcd(K).a.umod(K)},Q.prototype.isEven=function(){return(this.words[0]&1)===0},Q.prototype.isOdd=function(){return(this.words[0]&1)===1},Q.prototype.andln=function(K){return this.words[0]&K},Q.prototype.bincn=function(K){Z(typeof K=="number");var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return this._expand(U+1),this.words[U]|=V,this;for(var H=V,$=U;H!==0&&$<this.length;$++){var G=this.words[$]|0;G+=H,H=G>>>26,G&=67108863,this.words[$]=G}return H!==0&&(this.words[$]=H,this.length++),this},Q.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Q.prototype.cmpn=function(K){var W=K<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var U;if(this.length>1)U=1;else{W&&(K=-K),Z(K<=67108863,"Number is too big");var V=this.words[0]|0;U=V===K?0:V<K?-1:1}return this.negative!==0?-U|0:U},Q.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var W=this.ucmp(K);return this.negative!==0?-W|0:W},Q.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var W=0,U=this.length-1;U>=0;U--){var V=this.words[U]|0,H=K.words[U]|0;if(V!==H){V<H?W=-1:V>H&&(W=1);break}}return W},Q.prototype.gtn=function(K){return this.cmpn(K)===1},Q.prototype.gt=function(K){return this.cmp(K)===1},Q.prototype.gten=function(K){return this.cmpn(K)>=0},Q.prototype.gte=function(K){return this.cmp(K)>=0},Q.prototype.ltn=function(K){return this.cmpn(K)===-1},Q.prototype.lt=function(K){return this.cmp(K)===-1},Q.prototype.lten=function(K){return this.cmpn(K)<=0},Q.prototype.lte=function(K){return this.cmp(K)<=0},Q.prototype.eqn=function(K){return this.cmpn(K)===0},Q.prototype.eq=function(K){return this.cmp(K)===0},Q.red=function(K){return new f(K)},Q.prototype.toRed=function(K){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},Q.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Q.prototype._forceRed=function(K){return this.red=K,this},Q.prototype.forceRed=function(K){return Z(!this.red,"Already a number in reduction context"),this._forceRed(K)},Q.prototype.redAdd=function(K){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},Q.prototype.redIAdd=function(K){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},Q.prototype.redSub=function(K){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},Q.prototype.redISub=function(K){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},Q.prototype.redShl=function(K){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},Q.prototype.redMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},Q.prototype.redIMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},Q.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Q.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Q.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Q.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Q.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Q.prototype.redPow=function(K){return Z(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var b={k256:null,p224:null,p192:null,p25519:null};function w(K,W){this.name=K,this.p=new Q(W,16),this.n=this.p.bitLength(),this.k=new Q(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}w.prototype._tmp=function(){var K=new Q(null);return K.words=new Array(Math.ceil(this.n/13)),K},w.prototype.ireduce=function(K){var W=K,U;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),U=W.bitLength();while(U>this.n);var V=U<this.n?-1:W.ucmp(this.p);return V===0?(W.words[0]=0,W.length=1):V>0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},w.prototype.split=function(K,W){K.iushrn(this.n,0,W)},w.prototype.imulK=function(K){return K.imul(this.k)};function g(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(g,w),g.prototype.split=function(K,W){for(var U=4194303,V=Math.min(K.length,9),H=0;H<V;H++)W.words[H]=K.words[H];if(W.length=V,K.length<=9){K.words[0]=0,K.length=1;return}var $=K.words[9];for(W.words[W.length++]=$&U,H=10;H<K.length;H++){var G=K.words[H]|0;K.words[H-10]=(G&U)<<4|$>>>22,$=G}$>>>=22,K.words[H-10]=$,$===0&&K.length>10?K.length-=10:K.length-=9},g.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var W=0,U=0;U<K.length;U++){var V=K.words[U]|0;W+=V*977,K.words[U]=W&67108863,W=V*64+(W/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function r(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(r,w);function t(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(t,w);function $0(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q($0,w),$0.prototype.imulK=function(K){for(var W=0,U=0;U<K.length;U++){var V=(K.words[U]|0)*19+W,H=V&67108863;V>>>=26,K.words[U]=H,W=V}return W!==0&&(K.words[K.length++]=W),K},Q._prime=function(K){if(b[K])return b[K];var W;if(K==="k256")W=new g;else if(K==="p224")W=new r;else if(K==="p192")W=new t;else if(K==="p25519")W=new $0;else throw new Error("Unknown prime "+K);return b[K]=W,W};function f(K){if(typeof K=="string"){var W=Q._prime(K);this.m=W.p,this.prime=W}else Z(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){Z(K.negative===0,"red works only with positives"),Z(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,W){Z((K.negative|W.negative)===0,"red works only with positives"),Z(K.red&&K.red===W.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,W){this._verify2(K,W);var U=K.add(W);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},f.prototype.iadd=function(K,W){this._verify2(K,W);var U=K.iadd(W);return U.cmp(this.m)>=0&&U.isub(this.m),U},f.prototype.sub=function(K,W){this._verify2(K,W);var U=K.sub(W);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},f.prototype.isub=function(K,W){this._verify2(K,W);var U=K.isub(W);return U.cmpn(0)<0&&U.iadd(this.m),U},f.prototype.shl=function(K,W){return this._verify1(K),this.imod(K.ushln(W))},f.prototype.imul=function(K,W){return this._verify2(K,W),this.imod(K.imul(W))},f.prototype.mul=function(K,W){return this._verify2(K,W),this.imod(K.mul(W))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var W=this.m.andln(3);if(Z(W%2===1),W===3){var U=this.m.add(new Q(1)).iushrn(2);return this.pow(K,U)}for(var V=this.m.subn(1),H=0;!V.isZero()&&V.andln(1)===0;)H++,V.iushrn(1);Z(!V.isZero());var $=new Q(1).toRed(this),G=$.redNeg(),Y=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new Q(2*X*X).toRed(this);this.pow(X,Y).cmp(G)!==0;)X.redIAdd(G);for(var F=this.pow(X,V),N=this.pow(K,V.addn(1).iushrn(1)),j=this.pow(K,V),A=H;j.cmp($)!==0;){for(var m=j,h=0;m.cmp($)!==0;h++)m=m.redSqr();Z(h<A);var e=this.pow(F,new Q(1).iushln(A-h-1));N=N.redMul(e),F=e.redSqr(),j=j.redMul(F),A=h}return N},f.prototype.invm=function(K){var W=K._invmp(this.m);return W.negative!==0?(W.negative=0,this.imod(W).redNeg()):this.imod(W)},f.prototype.pow=function(K,W){if(W.isZero())return new Q(1).toRed(this);if(W.cmpn(1)===0)return K.clone();var U=4,V=new Array(1<<U);V[0]=new Q(1).toRed(this),V[1]=K;for(var H=2;H<V.length;H++)V[H]=this.mul(V[H-1],K);var $=V[0],G=0,Y=0,X=W.bitLength()%26;for(X===0&&(X=26),H=W.length-1;H>=0;H--){for(var F=W.words[H],N=X-1;N>=0;N--){var j=F>>N&1;if($!==V[0]&&($=this.sqr($)),j===0&&G===0){Y=0;continue}G<<=1,G|=j,Y++,!(Y!==U&&(H!==0||N!==0))&&($=this.mul($,V[G]),Y=0,G=0)}X=26}return $},f.prototype.convertTo=function(K){var W=K.umod(this.m);return W===K?W.clone():W},f.prototype.convertFrom=function(K){var W=K.clone();return W.red=null,W},Q.mont=function(K){return new Z0(K)};function Z0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new Q(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q(Z0,f),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var W=this.imod(K.mul(this.rinv));return W.red=null,W},Z0.prototype.imul=function(K,W){if(K.isZero()||W.isZero())return K.words[0]=0,K.length=1,K;var U=K.imul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.mul=function(K,W){if(K.isZero()||W.isZero())return new Q(0)._forceRed(this);var U=K.mul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.invm=function(K){var W=this.imod(K._invmp(this.m).mul(this.r2));return W._forceRed(this)}})(typeof M>"u"||M,v)}),k6=z0((v,M)=>{(function(B,S){function Z(K,W){if(!K)throw new Error(W||"Assertion failed")}function q(K,W){K.super_=W;var U=function(){};U.prototype=W.prototype,K.prototype=new U,K.prototype.constructor=K}function Q(K,W,U){if(Q.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((W==="le"||W==="be")&&(U=W,W=10),this._init(K||0,W||10,U||"be"))}typeof B=="object"?B.exports=Q:S.BN=Q,Q.BN=Q,Q.wordSize=26;var O;try{typeof window<"u"&&typeof window.Buffer<"u"?O=window.Buffer:O=_5().Buffer}catch{}Q.isBN=function(K){return K instanceof Q?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===Q.wordSize&&Array.isArray(K.words)},Q.max=function(K,W){return K.cmp(W)>0?K:W},Q.min=function(K,W){return K.cmp(W)<0?K:W},Q.prototype._init=function(K,W,U){if(typeof K=="number")return this._initNumber(K,W,U);if(typeof K=="object")return this._initArray(K,W,U);W==="hex"&&(W=16),Z(W===(W|0)&&W>=2&&W<=36),K=K.toString().replace(/\s+/g,"");var V=0;K[0]==="-"&&(V++,this.negative=1),V<K.length&&(W===16?this._parseHex(K,V,U):(this._parseBase(K,W,V),U==="le"&&this._initArray(this.toArray(),W,U)))},Q.prototype._initNumber=function(K,W,U){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(Z(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),W,U)},Q.prototype._initArray=function(K,W,U){if(Z(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H,$,G=0;if(U==="be")for(V=K.length-1,H=0;V>=0;V-=3)$=K[V]|K[V-1]<<8|K[V-2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);else if(U==="le")for(V=0,H=0;V<K.length;V+=3)$=K[V]|K[V+1]<<8|K[V+2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);return this.strip()};function k(K,W){var U=K.charCodeAt(W);return U>=65&&U<=70?U-55:U>=97&&U<=102?U-87:U-48&15}function C(K,W,U){var V=k(K,U);return U-1>=W&&(V|=k(K,U-1)<<4),V}Q.prototype._parseHex=function(K,W,U){this.length=Math.ceil((K.length-W)/6),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H=0,$=0,G;if(U==="be")for(V=K.length-1;V>=W;V-=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8;else{var Y=K.length-W;for(V=Y%2===0?W+1:W;V<K.length;V+=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8}this.strip()};function D(K,W,U,V){for(var H=0,$=Math.min(K.length,U),G=W;G<$;G++){var Y=K.charCodeAt(G)-48;H*=V,Y>=49?H+=Y-49+10:Y>=17?H+=Y-17+10:H+=Y}return H}Q.prototype._parseBase=function(K,W,U){this.words=[0],this.length=1;for(var V=0,H=1;H<=67108863;H*=W)V++;V--,H=H/W|0;for(var $=K.length-U,G=$%V,Y=Math.min($,$-G)+U,X=0,F=U;F<Y;F+=V)X=D(K,F,F+V,W),this.imuln(H),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(G!==0){var N=1;for(X=D(K,F,K.length,W),F=0;F<G;F++)N*=W;this.imuln(N),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},Q.prototype.copy=function(K){K.words=new Array(this.length);for(var W=0;W<this.length;W++)K.words[W]=this.words[W];K.length=this.length,K.negative=this.negative,K.red=this.red},Q.prototype.clone=function(){var K=new Q(null);return this.copy(K),K},Q.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},Q.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},Q.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},Q.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var P=["","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"],J=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];Q.prototype.toString=function(K,W){K=K||10,W=W|0||1;var U;if(K===16||K==="hex"){U="";for(var V=0,H=0,$=0;$<this.length;$++){var G=this.words[$],Y=((G<<V|H)&16777215).toString(16);H=G>>>24-V&16777215,V+=2,V>=26&&(V-=26,$--),H!==0||$!==this.length-1?U=P[6-Y.length]+Y+U:U=Y+U}for(H!==0&&(U=H.toString(16)+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(K===(K|0)&&K>=2&&K<=36){var X=J[K],F=T[K];U="";var N=this.clone();for(N.negative=0;!N.isZero();){var j=N.modn(F).toString(K);N=N.idivn(F),N.isZero()?U=j+U:U=P[X-j.length]+j+U}for(this.isZero()&&(U="0"+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}Z(!1,"Base should be between 2 and 36")},Q.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},Q.prototype.toJSON=function(){return this.toString(16)},Q.prototype.toBuffer=function(K,W){return Z(typeof O<"u"),this.toArrayLike(O,K,W)},Q.prototype.toArray=function(K,W){return this.toArrayLike(Array,K,W)},Q.prototype.toArrayLike=function(K,W,U){var V=this.byteLength(),H=U||Math.max(1,V);Z(V<=H,"byte array longer than desired length"),Z(H>0,"Requested array length <= 0"),this.strip();var $=W==="le",G=new K(H),Y,X,F=this.clone();if($){for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[X]=Y;for(;X<H;X++)G[X]=0}else{for(X=0;X<H-V;X++)G[X]=0;for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[H-X-1]=Y}return G},Math.clz32?Q.prototype._countBits=function(K){return 32-Math.clz32(K)}:Q.prototype._countBits=function(K){var W=K,U=0;return W>=4096&&(U+=13,W>>>=13),W>=64&&(U+=7,W>>>=7),W>=8&&(U+=4,W>>>=4),W>=2&&(U+=2,W>>>=2),U+W},Q.prototype._zeroBits=function(K){if(K===0)return 26;var W=K,U=0;return(W&8191)===0&&(U+=13,W>>>=13),(W&127)===0&&(U+=7,W>>>=7),(W&15)===0&&(U+=4,W>>>=4),(W&3)===0&&(U+=2,W>>>=2),(W&1)===0&&U++,U},Q.prototype.bitLength=function(){var K=this.words[this.length-1],W=this._countBits(K);return(this.length-1)*26+W};function z(K){for(var W=new Array(K.bitLength()),U=0;U<W.length;U++){var V=U/26|0,H=U%26;W[U]=(K.words[V]&1<<H)>>>H}return W}Q.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,W=0;W<this.length;W++){var U=this._zeroBits(this.words[W]);if(K+=U,U!==26)break}return K},Q.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Q.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},Q.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},Q.prototype.isNeg=function(){return this.negative!==0},Q.prototype.neg=function(){return this.clone().ineg()},Q.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},Q.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var W=0;W<K.length;W++)this.words[W]=this.words[W]|K.words[W];return this.strip()},Q.prototype.ior=function(K){return Z((this.negative|K.negative)===0),this.iuor(K)},Q.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},Q.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},Q.prototype.iuand=function(K){var W;this.length>K.length?W=K:W=this;for(var U=0;U<W.length;U++)this.words[U]=this.words[U]&K.words[U];return this.length=W.length,this.strip()},Q.prototype.iand=function(K){return Z((this.negative|K.negative)===0),this.iuand(K)},Q.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},Q.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},Q.prototype.iuxor=function(K){var W,U;this.length>K.length?(W=this,U=K):(W=K,U=this);for(var V=0;V<U.length;V++)this.words[V]=W.words[V]^U.words[V];if(this!==W)for(;V<W.length;V++)this.words[V]=W.words[V];return this.length=W.length,this.strip()},Q.prototype.ixor=function(K){return Z((this.negative|K.negative)===0),this.iuxor(K)},Q.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},Q.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},Q.prototype.inotn=function(K){Z(typeof K=="number"&&K>=0);var W=Math.ceil(K/26)|0,U=K%26;this._expand(W),U>0&&W--;for(var V=0;V<W;V++)this.words[V]=~this.words[V]&67108863;return U>0&&(this.words[V]=~this.words[V]&67108863>>26-U),this.strip()},Q.prototype.notn=function(K){return this.clone().inotn(K)},Q.prototype.setn=function(K,W){Z(typeof K=="number"&&K>=0);var U=K/26|0,V=K%26;return this._expand(U+1),W?this.words[U]=this.words[U]|1<<V:this.words[U]=this.words[U]&~(1<<V),this.strip()},Q.prototype.iadd=function(K){var W;if(this.negative!==0&&K.negative===0)return this.negative=0,W=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,W=this.isub(K),K.negative=1,W._normSign();var U,V;this.length>K.length?(U=this,V=K):(U=K,V=this);for(var H=0,$=0;$<V.length;$++)W=(U.words[$]|0)+(V.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;for(;H!==0&&$<U.length;$++)W=(U.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;if(this.length=U.length,H!==0)this.words[this.length]=H,this.length++;else if(U!==this)for(;$<U.length;$++)this.words[$]=U.words[$];return this},Q.prototype.add=function(K){var W;return K.negative!==0&&this.negative===0?(K.negative=0,W=this.sub(K),K.negative^=1,W):K.negative===0&&this.negative!==0?(this.negative=0,W=K.sub(this),this.negative=1,W):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},Q.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var W=this.iadd(K);return K.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var U=this.cmp(K);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var V,H;U>0?(V=this,H=K):(V=K,H=this);for(var $=0,G=0;G<H.length;G++)W=(V.words[G]|0)-(H.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;for(;$!==0&&G<V.length;G++)W=(V.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;if($===0&&G<V.length&&V!==this)for(;G<V.length;G++)this.words[G]=V.words[G];return this.length=Math.max(this.length,G),V!==this&&(this.negative=1),this.strip()},Q.prototype.sub=function(K){return this.clone().isub(K)};function I(K,W,U){U.negative=W.negative^K.negative;var V=K.length+W.length|0;U.length=V,V=V-1|0;var H=K.words[0]|0,$=W.words[0]|0,G=H*$,Y=G&67108863,X=G/67108864|0;U.words[0]=Y;for(var F=1;F<V;F++){for(var N=X>>>26,j=X&67108863,A=Math.min(F,W.length-1),m=Math.max(0,F-K.length+1);m<=A;m++){var h=F-m|0;H=K.words[h]|0,$=W.words[m]|0,G=H*$+j,N+=G/67108864|0,j=G&67108863}U.words[F]=j|0,X=N|0}return X!==0?U.words[F]=X|0:U.length--,U.strip()}var L=function(K,W,U){var V=K.words,H=W.words,$=U.words,G=0,Y,X,F,N=V[0]|0,j=N&8191,A=N>>>13,m=V[1]|0,h=m&8191,e=m>>>13,T0=V[2]|0,U0=T0&8191,y=T0>>>13,o=V[3]|0,n=o&8191,K0=o>>>13,w0=V[4]|0,l=w0&8191,u=w0>>>13,C0=V[5]|0,H0=C0&8191,F0=C0>>>13,y0=V[6]|0,a=y0&8191,X0=y0>>>13,M0=V[7]|0,W0=M0&8191,G0=M0>>>13,b0=V[8]|0,R=b0&8191,_=b0>>>13,d=V[9]|0,s=d&8191,i=d>>>13,E0=H[0]|0,Y0=E0&8191,J0=E0>>>13,d0=H[1]|0,j0=d0&8191,O0=d0>>>13,c0=H[2]|0,S0=c0&8191,k0=c0>>>13,P5=H[3]|0,A0=P5&8191,R0=P5>>>13,$5=H[4]|0,p0=$5&8191,_0=$5>>>13,G5=H[5]|0,I0=G5&8191,c=G5>>>13,V0=H[6]|0,Q0=V0&8191,P0=V0>>>13,g0=H[7]|0,D0=g0&8191,N0=g0>>>13,f0=H[8]|0,q0=f0&8191,x0=f0>>>13,Z5=H[9]|0,B0=Z5&8191,L0=Z5>>>13;U.negative=K.negative^W.negative,U.length=19,Y=Math.imul(j,Y0),X=Math.imul(j,J0),X=X+Math.imul(A,Y0)|0,F=Math.imul(A,J0);var o0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,Y=Math.imul(h,Y0),X=Math.imul(h,J0),X=X+Math.imul(e,Y0)|0,F=Math.imul(e,J0),Y=Y+Math.imul(j,j0)|0,X=X+Math.imul(j,O0)|0,X=X+Math.imul(A,j0)|0,F=F+Math.imul(A,O0)|0;var m0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,Y=Math.imul(U0,Y0),X=Math.imul(U0,J0),X=X+Math.imul(y,Y0)|0,F=Math.imul(y,J0),Y=Y+Math.imul(h,j0)|0,X=X+Math.imul(h,O0)|0,X=X+Math.imul(e,j0)|0,F=F+Math.imul(e,O0)|0,Y=Y+Math.imul(j,S0)|0,X=X+Math.imul(j,k0)|0,X=X+Math.imul(A,S0)|0,F=F+Math.imul(A,k0)|0;var v0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(v0>>>26)|0,v0&=67108863,Y=Math.imul(n,Y0),X=Math.imul(n,J0),X=X+Math.imul(K0,Y0)|0,F=Math.imul(K0,J0),Y=Y+Math.imul(U0,j0)|0,X=X+Math.imul(U0,O0)|0,X=X+Math.imul(y,j0)|0,F=F+Math.imul(y,O0)|0,Y=Y+Math.imul(h,S0)|0,X=X+Math.imul(h,k0)|0,X=X+Math.imul(e,S0)|0,F=F+Math.imul(e,k0)|0,Y=Y+Math.imul(j,A0)|0,X=X+Math.imul(j,R0)|0,X=X+Math.imul(A,A0)|0,F=F+Math.imul(A,R0)|0;var u0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,Y=Math.imul(l,Y0),X=Math.imul(l,J0),X=X+Math.imul(u,Y0)|0,F=Math.imul(u,J0),Y=Y+Math.imul(n,j0)|0,X=X+Math.imul(n,O0)|0,X=X+Math.imul(K0,j0)|0,F=F+Math.imul(K0,O0)|0,Y=Y+Math.imul(U0,S0)|0,X=X+Math.imul(U0,k0)|0,X=X+Math.imul(y,S0)|0,F=F+Math.imul(y,k0)|0,Y=Y+Math.imul(h,A0)|0,X=X+Math.imul(h,R0)|0,X=X+Math.imul(e,A0)|0,F=F+Math.imul(e,R0)|0,Y=Y+Math.imul(j,p0)|0,X=X+Math.imul(j,_0)|0,X=X+Math.imul(A,p0)|0,F=F+Math.imul(A,_0)|0;var s0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,Y=Math.imul(H0,Y0),X=Math.imul(H0,J0),X=X+Math.imul(F0,Y0)|0,F=Math.imul(F0,J0),Y=Y+Math.imul(l,j0)|0,X=X+Math.imul(l,O0)|0,X=X+Math.imul(u,j0)|0,F=F+Math.imul(u,O0)|0,Y=Y+Math.imul(n,S0)|0,X=X+Math.imul(n,k0)|0,X=X+Math.imul(K0,S0)|0,F=F+Math.imul(K0,k0)|0,Y=Y+Math.imul(U0,A0)|0,X=X+Math.imul(U0,R0)|0,X=X+Math.imul(y,A0)|0,F=F+Math.imul(y,R0)|0,Y=Y+Math.imul(h,p0)|0,X=X+Math.imul(h,_0)|0,X=X+Math.imul(e,p0)|0,F=F+Math.imul(e,_0)|0,Y=Y+Math.imul(j,I0)|0,X=X+Math.imul(j,c)|0,X=X+Math.imul(A,I0)|0,F=F+Math.imul(A,c)|0;var a0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,Y=Math.imul(a,Y0),X=Math.imul(a,J0),X=X+Math.imul(X0,Y0)|0,F=Math.imul(X0,J0),Y=Y+Math.imul(H0,j0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(F0,j0)|0,F=F+Math.imul(F0,O0)|0,Y=Y+Math.imul(l,S0)|0,X=X+Math.imul(l,k0)|0,X=X+Math.imul(u,S0)|0,F=F+Math.imul(u,k0)|0,Y=Y+Math.imul(n,A0)|0,X=X+Math.imul(n,R0)|0,X=X+Math.imul(K0,A0)|0,F=F+Math.imul(K0,R0)|0,Y=Y+Math.imul(U0,p0)|0,X=X+Math.imul(U0,_0)|0,X=X+Math.imul(y,p0)|0,F=F+Math.imul(y,_0)|0,Y=Y+Math.imul(h,I0)|0,X=X+Math.imul(h,c)|0,X=X+Math.imul(e,I0)|0,F=F+Math.imul(e,c)|0,Y=Y+Math.imul(j,Q0)|0,X=X+Math.imul(j,P0)|0,X=X+Math.imul(A,Q0)|0,F=F+Math.imul(A,P0)|0;var n0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,Y=Math.imul(W0,Y0),X=Math.imul(W0,J0),X=X+Math.imul(G0,Y0)|0,F=Math.imul(G0,J0),Y=Y+Math.imul(a,j0)|0,X=X+Math.imul(a,O0)|0,X=X+Math.imul(X0,j0)|0,F=F+Math.imul(X0,O0)|0,Y=Y+Math.imul(H0,S0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(F0,S0)|0,F=F+Math.imul(F0,k0)|0,Y=Y+Math.imul(l,A0)|0,X=X+Math.imul(l,R0)|0,X=X+Math.imul(u,A0)|0,F=F+Math.imul(u,R0)|0,Y=Y+Math.imul(n,p0)|0,X=X+Math.imul(n,_0)|0,X=X+Math.imul(K0,p0)|0,F=F+Math.imul(K0,_0)|0,Y=Y+Math.imul(U0,I0)|0,X=X+Math.imul(U0,c)|0,X=X+Math.imul(y,I0)|0,F=F+Math.imul(y,c)|0,Y=Y+Math.imul(h,Q0)|0,X=X+Math.imul(h,P0)|0,X=X+Math.imul(e,Q0)|0,F=F+Math.imul(e,P0)|0,Y=Y+Math.imul(j,D0)|0,X=X+Math.imul(j,N0)|0,X=X+Math.imul(A,D0)|0,F=F+Math.imul(A,N0)|0;var i0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,Y=Math.imul(R,Y0),X=Math.imul(R,J0),X=X+Math.imul(_,Y0)|0,F=Math.imul(_,J0),Y=Y+Math.imul(W0,j0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(G0,j0)|0,F=F+Math.imul(G0,O0)|0,Y=Y+Math.imul(a,S0)|0,X=X+Math.imul(a,k0)|0,X=X+Math.imul(X0,S0)|0,F=F+Math.imul(X0,k0)|0,Y=Y+Math.imul(H0,A0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(F0,A0)|0,F=F+Math.imul(F0,R0)|0,Y=Y+Math.imul(l,p0)|0,X=X+Math.imul(l,_0)|0,X=X+Math.imul(u,p0)|0,F=F+Math.imul(u,_0)|0,Y=Y+Math.imul(n,I0)|0,X=X+Math.imul(n,c)|0,X=X+Math.imul(K0,I0)|0,F=F+Math.imul(K0,c)|0,Y=Y+Math.imul(U0,Q0)|0,X=X+Math.imul(U0,P0)|0,X=X+Math.imul(y,Q0)|0,F=F+Math.imul(y,P0)|0,Y=Y+Math.imul(h,D0)|0,X=X+Math.imul(h,N0)|0,X=X+Math.imul(e,D0)|0,F=F+Math.imul(e,N0)|0,Y=Y+Math.imul(j,q0)|0,X=X+Math.imul(j,x0)|0,X=X+Math.imul(A,q0)|0,F=F+Math.imul(A,x0)|0;var r0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,Y=Math.imul(s,Y0),X=Math.imul(s,J0),X=X+Math.imul(i,Y0)|0,F=Math.imul(i,J0),Y=Y+Math.imul(R,j0)|0,X=X+Math.imul(R,O0)|0,X=X+Math.imul(_,j0)|0,F=F+Math.imul(_,O0)|0,Y=Y+Math.imul(W0,S0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(G0,S0)|0,F=F+Math.imul(G0,k0)|0,Y=Y+Math.imul(a,A0)|0,X=X+Math.imul(a,R0)|0,X=X+Math.imul(X0,A0)|0,F=F+Math.imul(X0,R0)|0,Y=Y+Math.imul(H0,p0)|0,X=X+Math.imul(H0,_0)|0,X=X+Math.imul(F0,p0)|0,F=F+Math.imul(F0,_0)|0,Y=Y+Math.imul(l,I0)|0,X=X+Math.imul(l,c)|0,X=X+Math.imul(u,I0)|0,F=F+Math.imul(u,c)|0,Y=Y+Math.imul(n,Q0)|0,X=X+Math.imul(n,P0)|0,X=X+Math.imul(K0,Q0)|0,F=F+Math.imul(K0,P0)|0,Y=Y+Math.imul(U0,D0)|0,X=X+Math.imul(U0,N0)|0,X=X+Math.imul(y,D0)|0,F=F+Math.imul(y,N0)|0,Y=Y+Math.imul(h,q0)|0,X=X+Math.imul(h,x0)|0,X=X+Math.imul(e,q0)|0,F=F+Math.imul(e,x0)|0,Y=Y+Math.imul(j,B0)|0,X=X+Math.imul(j,L0)|0,X=X+Math.imul(A,B0)|0,F=F+Math.imul(A,L0)|0;var t0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,Y=Math.imul(s,j0),X=Math.imul(s,O0),X=X+Math.imul(i,j0)|0,F=Math.imul(i,O0),Y=Y+Math.imul(R,S0)|0,X=X+Math.imul(R,k0)|0,X=X+Math.imul(_,S0)|0,F=F+Math.imul(_,k0)|0,Y=Y+Math.imul(W0,A0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(G0,A0)|0,F=F+Math.imul(G0,R0)|0,Y=Y+Math.imul(a,p0)|0,X=X+Math.imul(a,_0)|0,X=X+Math.imul(X0,p0)|0,F=F+Math.imul(X0,_0)|0,Y=Y+Math.imul(H0,I0)|0,X=X+Math.imul(H0,c)|0,X=X+Math.imul(F0,I0)|0,F=F+Math.imul(F0,c)|0,Y=Y+Math.imul(l,Q0)|0,X=X+Math.imul(l,P0)|0,X=X+Math.imul(u,Q0)|0,F=F+Math.imul(u,P0)|0,Y=Y+Math.imul(n,D0)|0,X=X+Math.imul(n,N0)|0,X=X+Math.imul(K0,D0)|0,F=F+Math.imul(K0,N0)|0,Y=Y+Math.imul(U0,q0)|0,X=X+Math.imul(U0,x0)|0,X=X+Math.imul(y,q0)|0,F=F+Math.imul(y,x0)|0,Y=Y+Math.imul(h,B0)|0,X=X+Math.imul(h,L0)|0,X=X+Math.imul(e,B0)|0,F=F+Math.imul(e,L0)|0;var e0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,Y=Math.imul(s,S0),X=Math.imul(s,k0),X=X+Math.imul(i,S0)|0,F=Math.imul(i,k0),Y=Y+Math.imul(R,A0)|0,X=X+Math.imul(R,R0)|0,X=X+Math.imul(_,A0)|0,F=F+Math.imul(_,R0)|0,Y=Y+Math.imul(W0,p0)|0,X=X+Math.imul(W0,_0)|0,X=X+Math.imul(G0,p0)|0,F=F+Math.imul(G0,_0)|0,Y=Y+Math.imul(a,I0)|0,X=X+Math.imul(a,c)|0,X=X+Math.imul(X0,I0)|0,F=F+Math.imul(X0,c)|0,Y=Y+Math.imul(H0,Q0)|0,X=X+Math.imul(H0,P0)|0,X=X+Math.imul(F0,Q0)|0,F=F+Math.imul(F0,P0)|0,Y=Y+Math.imul(l,D0)|0,X=X+Math.imul(l,N0)|0,X=X+Math.imul(u,D0)|0,F=F+Math.imul(u,N0)|0,Y=Y+Math.imul(n,q0)|0,X=X+Math.imul(n,x0)|0,X=X+Math.imul(K0,q0)|0,F=F+Math.imul(K0,x0)|0,Y=Y+Math.imul(U0,B0)|0,X=X+Math.imul(U0,L0)|0,X=X+Math.imul(y,B0)|0,F=F+Math.imul(y,L0)|0;var K5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,Y=Math.imul(s,A0),X=Math.imul(s,R0),X=X+Math.imul(i,A0)|0,F=Math.imul(i,R0),Y=Y+Math.imul(R,p0)|0,X=X+Math.imul(R,_0)|0,X=X+Math.imul(_,p0)|0,F=F+Math.imul(_,_0)|0,Y=Y+Math.imul(W0,I0)|0,X=X+Math.imul(W0,c)|0,X=X+Math.imul(G0,I0)|0,F=F+Math.imul(G0,c)|0,Y=Y+Math.imul(a,Q0)|0,X=X+Math.imul(a,P0)|0,X=X+Math.imul(X0,Q0)|0,F=F+Math.imul(X0,P0)|0,Y=Y+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(F0,D0)|0,F=F+Math.imul(F0,N0)|0,Y=Y+Math.imul(l,q0)|0,X=X+Math.imul(l,x0)|0,X=X+Math.imul(u,q0)|0,F=F+Math.imul(u,x0)|0,Y=Y+Math.imul(n,B0)|0,X=X+Math.imul(n,L0)|0,X=X+Math.imul(K0,B0)|0,F=F+Math.imul(K0,L0)|0;var X5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,Y=Math.imul(s,p0),X=Math.imul(s,_0),X=X+Math.imul(i,p0)|0,F=Math.imul(i,_0),Y=Y+Math.imul(R,I0)|0,X=X+Math.imul(R,c)|0,X=X+Math.imul(_,I0)|0,F=F+Math.imul(_,c)|0,Y=Y+Math.imul(W0,Q0)|0,X=X+Math.imul(W0,P0)|0,X=X+Math.imul(G0,Q0)|0,F=F+Math.imul(G0,P0)|0,Y=Y+Math.imul(a,D0)|0,X=X+Math.imul(a,N0)|0,X=X+Math.imul(X0,D0)|0,F=F+Math.imul(X0,N0)|0,Y=Y+Math.imul(H0,q0)|0,X=X+Math.imul(H0,x0)|0,X=X+Math.imul(F0,q0)|0,F=F+Math.imul(F0,x0)|0,Y=Y+Math.imul(l,B0)|0,X=X+Math.imul(l,L0)|0,X=X+Math.imul(u,B0)|0,F=F+Math.imul(u,L0)|0;var W5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(W5>>>26)|0,W5&=67108863,Y=Math.imul(s,I0),X=Math.imul(s,c),X=X+Math.imul(i,I0)|0,F=Math.imul(i,c),Y=Y+Math.imul(R,Q0)|0,X=X+Math.imul(R,P0)|0,X=X+Math.imul(_,Q0)|0,F=F+Math.imul(_,P0)|0,Y=Y+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(G0,D0)|0,F=F+Math.imul(G0,N0)|0,Y=Y+Math.imul(a,q0)|0,X=X+Math.imul(a,x0)|0,X=X+Math.imul(X0,q0)|0,F=F+Math.imul(X0,x0)|0,Y=Y+Math.imul(H0,B0)|0,X=X+Math.imul(H0,L0)|0,X=X+Math.imul(F0,B0)|0,F=F+Math.imul(F0,L0)|0;var V5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(V5>>>26)|0,V5&=67108863,Y=Math.imul(s,Q0),X=Math.imul(s,P0),X=X+Math.imul(i,Q0)|0,F=Math.imul(i,P0),Y=Y+Math.imul(R,D0)|0,X=X+Math.imul(R,N0)|0,X=X+Math.imul(_,D0)|0,F=F+Math.imul(_,N0)|0,Y=Y+Math.imul(W0,q0)|0,X=X+Math.imul(W0,x0)|0,X=X+Math.imul(G0,q0)|0,F=F+Math.imul(G0,x0)|0,Y=Y+Math.imul(a,B0)|0,X=X+Math.imul(a,L0)|0,X=X+Math.imul(X0,B0)|0,F=F+Math.imul(X0,L0)|0;var U5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(U5>>>26)|0,U5&=67108863,Y=Math.imul(s,D0),X=Math.imul(s,N0),X=X+Math.imul(i,D0)|0,F=Math.imul(i,N0),Y=Y+Math.imul(R,q0)|0,X=X+Math.imul(R,x0)|0,X=X+Math.imul(_,q0)|0,F=F+Math.imul(_,x0)|0,Y=Y+Math.imul(W0,B0)|0,X=X+Math.imul(W0,L0)|0,X=X+Math.imul(G0,B0)|0,F=F+Math.imul(G0,L0)|0;var H5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(H5>>>26)|0,H5&=67108863,Y=Math.imul(s,q0),X=Math.imul(s,x0),X=X+Math.imul(i,q0)|0,F=Math.imul(i,x0),Y=Y+Math.imul(R,B0)|0,X=X+Math.imul(R,L0)|0,X=X+Math.imul(_,B0)|0,F=F+Math.imul(_,L0)|0;var Y5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Y=Math.imul(s,B0),X=Math.imul(s,L0),X=X+Math.imul(i,B0)|0,F=Math.imul(i,L0);var F5=(G+Y|0)+((X&8191)<<13)|0;return G=(F+(X>>>13)|0)+(F5>>>26)|0,F5&=67108863,$[0]=o0,$[1]=m0,$[2]=v0,$[3]=u0,$[4]=s0,$[5]=a0,$[6]=n0,$[7]=i0,$[8]=r0,$[9]=t0,$[10]=e0,$[11]=K5,$[12]=X5,$[13]=W5,$[14]=V5,$[15]=U5,$[16]=H5,$[17]=Y5,$[18]=F5,G!==0&&($[19]=G,U.length++),U};Math.imul||(L=I);function p(K,W,U){U.negative=W.negative^K.negative,U.length=K.length+W.length;for(var V=0,H=0,$=0;$<U.length-1;$++){var G=H;H=0;for(var Y=V&67108863,X=Math.min($,W.length-1),F=Math.max(0,$-K.length+1);F<=X;F++){var N=$-F,j=K.words[N]|0,A=W.words[F]|0,m=j*A,h=m&67108863;G=G+(m/67108864|0)|0,h=h+Y|0,Y=h&67108863,G=G+(h>>>26)|0,H+=G>>>26,G&=67108863}U.words[$]=Y,V=G,G=H}return V!==0?U.words[$]=V:U.length--,U.strip()}function E(K,W,U){var V=new x;return V.mulp(K,W,U)}Q.prototype.mulTo=function(K,W){var U,V=this.length+K.length;return this.length===10&&K.length===10?U=L(this,K,W):V<63?U=I(this,K,W):V<1024?U=p(this,K,W):U=E(this,K,W),U};function x(K,W){this.x=K,this.y=W}x.prototype.makeRBT=function(K){for(var W=new Array(K),U=Q.prototype._countBits(K)-1,V=0;V<K;V++)W[V]=this.revBin(V,U,K);return W},x.prototype.revBin=function(K,W,U){if(K===0||K===U-1)return K;for(var V=0,H=0;H<W;H++)V|=(K&1)<<W-H-1,K>>=1;return V},x.prototype.permute=function(K,W,U,V,H,$){for(var G=0;G<$;G++)V[G]=W[K[G]],H[G]=U[K[G]]},x.prototype.transform=function(K,W,U,V,H,$){this.permute($,K,W,U,V,H);for(var G=1;G<H;G<<=1)for(var Y=G<<1,X=Math.cos(2*Math.PI/Y),F=Math.sin(2*Math.PI/Y),N=0;N<H;N+=Y)for(var j=X,A=F,m=0;m<G;m++){var h=U[N+m],e=V[N+m],T0=U[N+m+G],U0=V[N+m+G],y=j*T0-A*U0;U0=j*U0+A*T0,T0=y,U[N+m]=h+T0,V[N+m]=e+U0,U[N+m+G]=h-T0,V[N+m+G]=e-U0,m!==Y&&(y=X*j-F*A,A=X*A+F*j,j=y)}},x.prototype.guessLen13b=function(K,W){var U=Math.max(W,K)|1,V=U&1,H=0;for(U=U/2|0;U;U=U>>>1)H++;return 1<<H+1+V},x.prototype.conjugate=function(K,W,U){if(!(U<=1))for(var V=0;V<U/2;V++){var H=K[V];K[V]=K[U-V-1],K[U-V-1]=H,H=W[V],W[V]=-W[U-V-1],W[U-V-1]=-H}},x.prototype.normalize13b=function(K,W){for(var U=0,V=0;V<W/2;V++){var H=Math.round(K[2*V+1]/W)*8192+Math.round(K[2*V]/W)+U;K[V]=H&67108863,H<67108864?U=0:U=H/67108864|0}return K},x.prototype.convert13b=function(K,W,U,V){for(var H=0,$=0;$<W;$++)H=H+(K[$]|0),U[2*$]=H&8191,H=H>>>13,U[2*$+1]=H&8191,H=H>>>13;for($=2*W;$<V;++$)U[$]=0;Z(H===0),Z((H&-8192)===0)},x.prototype.stub=function(K){for(var W=new Array(K),U=0;U<K;U++)W[U]=0;return W},x.prototype.mulp=function(K,W,U){var V=2*this.guessLen13b(K.length,W.length),H=this.makeRBT(V),$=this.stub(V),G=new Array(V),Y=new Array(V),X=new Array(V),F=new Array(V),N=new Array(V),j=new Array(V),A=U.words;A.length=V,this.convert13b(K.words,K.length,G,V),this.convert13b(W.words,W.length,F,V),this.transform(G,$,Y,X,V,H),this.transform(F,$,N,j,V,H);for(var m=0;m<V;m++){var h=Y[m]*N[m]-X[m]*j[m];X[m]=Y[m]*j[m]+X[m]*N[m],Y[m]=h}return this.conjugate(Y,X,V),this.transform(Y,X,A,$,V,H),this.conjugate(A,$,V),this.normalize13b(A,V),U.negative=K.negative^W.negative,U.length=K.length+W.length,U.strip()},Q.prototype.mul=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),this.mulTo(K,W)},Q.prototype.mulf=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),E(this,K,W)},Q.prototype.imul=function(K){return this.clone().mulTo(K,this)},Q.prototype.imuln=function(K){Z(typeof K=="number"),Z(K<67108864);for(var W=0,U=0;U<this.length;U++){var V=(this.words[U]|0)*K,H=(V&67108863)+(W&67108863);W>>=26,W+=V/67108864|0,W+=H>>>26,this.words[U]=H&67108863}return W!==0&&(this.words[U]=W,this.length++),this},Q.prototype.muln=function(K){return this.clone().imuln(K)},Q.prototype.sqr=function(){return this.mul(this)},Q.prototype.isqr=function(){return this.imul(this.clone())},Q.prototype.pow=function(K){var W=z(K);if(W.length===0)return new Q(1);for(var U=this,V=0;V<W.length&&W[V]===0;V++,U=U.sqr());if(++V<W.length)for(var H=U.sqr();V<W.length;V++,H=H.sqr())W[V]!==0&&(U=U.mul(H));return U},Q.prototype.iushln=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=67108863>>>26-W<<26-W,H;if(W!==0){var $=0;for(H=0;H<this.length;H++){var G=this.words[H]&V,Y=(this.words[H]|0)-G<<W;this.words[H]=Y|$,$=G>>>26-W}$&&(this.words[H]=$,this.length++)}if(U!==0){for(H=this.length-1;H>=0;H--)this.words[H+U]=this.words[H];for(H=0;H<U;H++)this.words[H]=0;this.length+=U}return this.strip()},Q.prototype.ishln=function(K){return Z(this.negative===0),this.iushln(K)},Q.prototype.iushrn=function(K,W,U){Z(typeof K=="number"&&K>=0);var V;W?V=(W-W%26)/26:V=0;var H=K%26,$=Math.min((K-H)/26,this.length),G=67108863^67108863>>>H<<H,Y=U;if(V-=$,V=Math.max(0,V),Y){for(var X=0;X<$;X++)Y.words[X]=this.words[X];Y.length=$}if($!==0)if(this.length>$)for(this.length-=$,X=0;X<this.length;X++)this.words[X]=this.words[X+$];else this.words[0]=0,this.length=1;var F=0;for(X=this.length-1;X>=0&&(F!==0||X>=V);X--){var N=this.words[X]|0;this.words[X]=F<<26-H|N>>>H,F=N&G}return Y&&F!==0&&(Y.words[Y.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},Q.prototype.ishrn=function(K,W,U){return Z(this.negative===0),this.iushrn(K,W,U)},Q.prototype.shln=function(K){return this.clone().ishln(K)},Q.prototype.ushln=function(K){return this.clone().iushln(K)},Q.prototype.shrn=function(K){return this.clone().ishrn(K)},Q.prototype.ushrn=function(K){return this.clone().iushrn(K)},Q.prototype.testn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return!1;var H=this.words[U];return!!(H&V)},Q.prototype.imaskn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(W!==0&&U++,this.length=Math.min(U,this.length),W!==0){var V=67108863^67108863>>>W<<W;this.words[this.length-1]&=V}return this.strip()},Q.prototype.maskn=function(K){return this.clone().imaskn(K)},Q.prototype.iaddn=function(K){return Z(typeof K=="number"),Z(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},Q.prototype._iaddn=function(K){this.words[0]+=K;for(var W=0;W<this.length&&this.words[W]>=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},Q.prototype.isubn=function(K){if(Z(typeof K=="number"),Z(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W<this.length&&this.words[W]<0;W++)this.words[W]+=67108864,this.words[W+1]-=1;return this.strip()},Q.prototype.addn=function(K){return this.clone().iaddn(K)},Q.prototype.subn=function(K){return this.clone().isubn(K)},Q.prototype.iabs=function(){return this.negative=0,this},Q.prototype.abs=function(){return this.clone().iabs()},Q.prototype._ishlnsubmul=function(K,W,U){var V=K.length+U,H;this._expand(V);var $,G=0;for(H=0;H<K.length;H++){$=(this.words[H+U]|0)+G;var Y=(K.words[H]|0)*W;$-=Y&67108863,G=($>>26)-(Y/67108864|0),this.words[H+U]=$&67108863}for(;H<this.length-U;H++)$=(this.words[H+U]|0)+G,G=$>>26,this.words[H+U]=$&67108863;if(G===0)return this.strip();for(Z(G===-1),G=0,H=0;H<this.length;H++)$=-(this.words[H]|0)+G,G=$>>26,this.words[H]=$&67108863;return this.negative=1,this.strip()},Q.prototype._wordDiv=function(K,W){var U=this.length-K.length,V=this.clone(),H=K,$=H.words[H.length-1]|0,G=this._countBits($);U=26-G,U!==0&&(H=H.ushln(U),V.iushln(U),$=H.words[H.length-1]|0);var Y=V.length-H.length,X;if(W!=="mod"){X=new Q(null),X.length=Y+1,X.words=new Array(X.length);for(var F=0;F<X.length;F++)X.words[F]=0}var N=V.clone()._ishlnsubmul(H,1,Y);N.negative===0&&(V=N,X&&(X.words[Y]=1));for(var j=Y-1;j>=0;j--){var A=(V.words[H.length+j]|0)*67108864+(V.words[H.length+j-1]|0);for(A=Math.min(A/$|0,67108863),V._ishlnsubmul(H,A,j);V.negative!==0;)A--,V.negative=0,V._ishlnsubmul(H,1,j),V.isZero()||(V.negative^=1);X&&(X.words[j]=A)}return X&&X.strip(),V.strip(),W!=="div"&&U!==0&&V.iushrn(U),{div:X||null,mod:V}},Q.prototype.divmod=function(K,W,U){if(Z(!K.isZero()),this.isZero())return{div:new Q(0),mod:new Q(0)};var V,H,$;return this.negative!==0&&K.negative===0?($=this.neg().divmod(K,W),W!=="mod"&&(V=$.div.neg()),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.iadd(K)),{div:V,mod:H}):this.negative===0&&K.negative!==0?($=this.divmod(K.neg(),W),W!=="mod"&&(V=$.div.neg()),{div:V,mod:$.mod}):(this.negative&K.negative)!==0?($=this.neg().divmod(K.neg(),W),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.isub(K)),{div:$.div,mod:H}):K.length>this.length||this.cmp(K)<0?{div:new Q(0),mod:this}:K.length===1?W==="div"?{div:this.divn(K.words[0]),mod:null}:W==="mod"?{div:null,mod:new Q(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new Q(this.modn(K.words[0]))}:this._wordDiv(K,W)},Q.prototype.div=function(K){return this.divmod(K,"div",!1).div},Q.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},Q.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},Q.prototype.divRound=function(K){var W=this.divmod(K);if(W.mod.isZero())return W.div;var U=W.div.negative!==0?W.mod.isub(K):W.mod,V=K.ushrn(1),H=K.andln(1),$=U.cmp(V);return $<0||H===1&&$===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},Q.prototype.modn=function(K){Z(K<=67108863);for(var W=67108864%K,U=0,V=this.length-1;V>=0;V--)U=(W*U+(this.words[V]|0))%K;return U},Q.prototype.idivn=function(K){Z(K<=67108863);for(var W=0,U=this.length-1;U>=0;U--){var V=(this.words[U]|0)+W*67108864;this.words[U]=V/K|0,W=V%K}return this.strip()},Q.prototype.divn=function(K){return this.clone().idivn(K)},Q.prototype.egcd=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=new Q(0),G=new Q(1),Y=0;W.isEven()&&U.isEven();)W.iushrn(1),U.iushrn(1),++Y;for(var X=U.clone(),F=W.clone();!W.isZero();){for(var N=0,j=1;(W.words[0]&j)===0&&N<26;++N,j<<=1);if(N>0)for(W.iushrn(N);N-- >0;)(V.isOdd()||H.isOdd())&&(V.iadd(X),H.isub(F)),V.iushrn(1),H.iushrn(1);for(var A=0,m=1;(U.words[0]&m)===0&&A<26;++A,m<<=1);if(A>0)for(U.iushrn(A);A-- >0;)($.isOdd()||G.isOdd())&&($.iadd(X),G.isub(F)),$.iushrn(1),G.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub($),H.isub(G)):(U.isub(W),$.isub(V),G.isub(H))}return{a:$,b:G,gcd:U.iushln(Y)}},Q.prototype._invmp=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=U.clone();W.cmpn(1)>0&&U.cmpn(1)>0;){for(var G=0,Y=1;(W.words[0]&Y)===0&&G<26;++G,Y<<=1);if(G>0)for(W.iushrn(G);G-- >0;)V.isOdd()&&V.iadd($),V.iushrn(1);for(var X=0,F=1;(U.words[0]&F)===0&&X<26;++X,F<<=1);if(X>0)for(U.iushrn(X);X-- >0;)H.isOdd()&&H.iadd($),H.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub(H)):(U.isub(W),H.isub(V))}var N;return W.cmpn(1)===0?N=V:N=H,N.cmpn(0)<0&&N.iadd(K),N},Q.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var W=this.clone(),U=K.clone();W.negative=0,U.negative=0;for(var V=0;W.isEven()&&U.isEven();V++)W.iushrn(1),U.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;U.isEven();)U.iushrn(1);var H=W.cmp(U);if(H<0){var $=W;W=U,U=$}else if(H===0||U.cmpn(1)===0)break;W.isub(U)}while(!0);return U.iushln(V)},Q.prototype.invm=function(K){return this.egcd(K).a.umod(K)},Q.prototype.isEven=function(){return(this.words[0]&1)===0},Q.prototype.isOdd=function(){return(this.words[0]&1)===1},Q.prototype.andln=function(K){return this.words[0]&K},Q.prototype.bincn=function(K){Z(typeof K=="number");var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return this._expand(U+1),this.words[U]|=V,this;for(var H=V,$=U;H!==0&&$<this.length;$++){var G=this.words[$]|0;G+=H,H=G>>>26,G&=67108863,this.words[$]=G}return H!==0&&(this.words[$]=H,this.length++),this},Q.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Q.prototype.cmpn=function(K){var W=K<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var U;if(this.length>1)U=1;else{W&&(K=-K),Z(K<=67108863,"Number is too big");var V=this.words[0]|0;U=V===K?0:V<K?-1:1}return this.negative!==0?-U|0:U},Q.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var W=this.ucmp(K);return this.negative!==0?-W|0:W},Q.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var W=0,U=this.length-1;U>=0;U--){var V=this.words[U]|0,H=K.words[U]|0;if(V!==H){V<H?W=-1:V>H&&(W=1);break}}return W},Q.prototype.gtn=function(K){return this.cmpn(K)===1},Q.prototype.gt=function(K){return this.cmp(K)===1},Q.prototype.gten=function(K){return this.cmpn(K)>=0},Q.prototype.gte=function(K){return this.cmp(K)>=0},Q.prototype.ltn=function(K){return this.cmpn(K)===-1},Q.prototype.lt=function(K){return this.cmp(K)===-1},Q.prototype.lten=function(K){return this.cmpn(K)<=0},Q.prototype.lte=function(K){return this.cmp(K)<=0},Q.prototype.eqn=function(K){return this.cmpn(K)===0},Q.prototype.eq=function(K){return this.cmp(K)===0},Q.red=function(K){return new f(K)},Q.prototype.toRed=function(K){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},Q.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Q.prototype._forceRed=function(K){return this.red=K,this},Q.prototype.forceRed=function(K){return Z(!this.red,"Already a number in reduction context"),this._forceRed(K)},Q.prototype.redAdd=function(K){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},Q.prototype.redIAdd=function(K){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},Q.prototype.redSub=function(K){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},Q.prototype.redISub=function(K){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},Q.prototype.redShl=function(K){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},Q.prototype.redMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},Q.prototype.redIMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},Q.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Q.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Q.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Q.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Q.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Q.prototype.redPow=function(K){return Z(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var b={k256:null,p224:null,p192:null,p25519:null};function w(K,W){this.name=K,this.p=new Q(W,16),this.n=this.p.bitLength(),this.k=new Q(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}w.prototype._tmp=function(){var K=new Q(null);return K.words=new Array(Math.ceil(this.n/13)),K},w.prototype.ireduce=function(K){var W=K,U;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),U=W.bitLength();while(U>this.n);var V=U<this.n?-1:W.ucmp(this.p);return V===0?(W.words[0]=0,W.length=1):V>0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},w.prototype.split=function(K,W){K.iushrn(this.n,0,W)},w.prototype.imulK=function(K){return K.imul(this.k)};function g(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(g,w),g.prototype.split=function(K,W){for(var U=4194303,V=Math.min(K.length,9),H=0;H<V;H++)W.words[H]=K.words[H];if(W.length=V,K.length<=9){K.words[0]=0,K.length=1;return}var $=K.words[9];for(W.words[W.length++]=$&U,H=10;H<K.length;H++){var G=K.words[H]|0;K.words[H-10]=(G&U)<<4|$>>>22,$=G}$>>>=22,K.words[H-10]=$,$===0&&K.length>10?K.length-=10:K.length-=9},g.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var W=0,U=0;U<K.length;U++){var V=K.words[U]|0;W+=V*977,K.words[U]=W&67108863,W=V*64+(W/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function r(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(r,w);function t(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(t,w);function $0(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q($0,w),$0.prototype.imulK=function(K){for(var W=0,U=0;U<K.length;U++){var V=(K.words[U]|0)*19+W,H=V&67108863;V>>>=26,K.words[U]=H,W=V}return W!==0&&(K.words[K.length++]=W),K},Q._prime=function(K){if(b[K])return b[K];var W;if(K==="k256")W=new g;else if(K==="p224")W=new r;else if(K==="p192")W=new t;else if(K==="p25519")W=new $0;else throw new Error("Unknown prime "+K);return b[K]=W,W};function f(K){if(typeof K=="string"){var W=Q._prime(K);this.m=W.p,this.prime=W}else Z(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){Z(K.negative===0,"red works only with positives"),Z(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,W){Z((K.negative|W.negative)===0,"red works only with positives"),Z(K.red&&K.red===W.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,W){this._verify2(K,W);var U=K.add(W);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},f.prototype.iadd=function(K,W){this._verify2(K,W);var U=K.iadd(W);return U.cmp(this.m)>=0&&U.isub(this.m),U},f.prototype.sub=function(K,W){this._verify2(K,W);var U=K.sub(W);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},f.prototype.isub=function(K,W){this._verify2(K,W);var U=K.isub(W);return U.cmpn(0)<0&&U.iadd(this.m),U},f.prototype.shl=function(K,W){return this._verify1(K),this.imod(K.ushln(W))},f.prototype.imul=function(K,W){return this._verify2(K,W),this.imod(K.imul(W))},f.prototype.mul=function(K,W){return this._verify2(K,W),this.imod(K.mul(W))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var W=this.m.andln(3);if(Z(W%2===1),W===3){var U=this.m.add(new Q(1)).iushrn(2);return this.pow(K,U)}for(var V=this.m.subn(1),H=0;!V.isZero()&&V.andln(1)===0;)H++,V.iushrn(1);Z(!V.isZero());var $=new Q(1).toRed(this),G=$.redNeg(),Y=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new Q(2*X*X).toRed(this);this.pow(X,Y).cmp(G)!==0;)X.redIAdd(G);for(var F=this.pow(X,V),N=this.pow(K,V.addn(1).iushrn(1)),j=this.pow(K,V),A=H;j.cmp($)!==0;){for(var m=j,h=0;m.cmp($)!==0;h++)m=m.redSqr();Z(h<A);var e=this.pow(F,new Q(1).iushln(A-h-1));N=N.redMul(e),F=e.redSqr(),j=j.redMul(F),A=h}return N},f.prototype.invm=function(K){var W=K._invmp(this.m);return W.negative!==0?(W.negative=0,this.imod(W).redNeg()):this.imod(W)},f.prototype.pow=function(K,W){if(W.isZero())return new Q(1).toRed(this);if(W.cmpn(1)===0)return K.clone();var U=4,V=new Array(1<<U);V[0]=new Q(1).toRed(this),V[1]=K;for(var H=2;H<V.length;H++)V[H]=this.mul(V[H-1],K);var $=V[0],G=0,Y=0,X=W.bitLength()%26;for(X===0&&(X=26),H=W.length-1;H>=0;H--){for(var F=W.words[H],N=X-1;N>=0;N--){var j=F>>N&1;if($!==V[0]&&($=this.sqr($)),j===0&&G===0){Y=0;continue}G<<=1,G|=j,Y++,!(Y!==U&&(H!==0||N!==0))&&($=this.mul($,V[G]),Y=0,G=0)}X=26}return $},f.prototype.convertTo=function(K){var W=K.umod(this.m);return W===K?W.clone():W},f.prototype.convertFrom=function(K){var W=K.clone();return W.red=null,W},Q.mont=function(K){return new Z0(K)};function Z0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new Q(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q(Z0,f),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var W=this.imod(K.mul(this.rinv));return W.red=null,W},Z0.prototype.imul=function(K,W){if(K.isZero()||W.isZero())return K.words[0]=0,K.length=1,K;var U=K.imul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.mul=function(K,W){if(K.isZero()||W.isZero())return new Q(0)._forceRed(this);var U=K.mul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.invm=function(K){var W=this.imod(K._invmp(this.m).mul(this.r2));return W._forceRed(this)}})(typeof M>"u"||M,v)}),R6=z0(()=>{}),R9=z0((v,M)=>{var B;M.exports=function(q){return B||(B=new S(null)),B.generate(q)};function S(q){this.rand=q}if(M.exports.Rand=S,S.prototype.generate=function(q){return this._rand(q)},S.prototype._rand=function(q){if(this.rand.getBytes)return this.rand.getBytes(q);for(var Q=new Uint8Array(q),O=0;O<Q.length;O++)Q[O]=this.rand.getByte();return Q},typeof self=="object")self.crypto&&self.crypto.getRandomValues?S.prototype._rand=function(q){var Q=new Uint8Array(q);return self.crypto.getRandomValues(Q),Q}:self.msCrypto&&self.msCrypto.getRandomValues?S.prototype._rand=function(q){var Q=new Uint8Array(q);return self.msCrypto.getRandomValues(Q),Q}:typeof window=="object"&&(S.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Z=R6(),typeof Z.randomBytes!="function")throw new Error("Not supported");S.prototype._rand=function(q){return Z.randomBytes(q)}}catch{}var Z}),Z4=z0((v,M)=>{var B=k6(),S=R9();function Z(q){this.rand=q||new S.Rand}M.exports=Z,Z.create=function(q){return new Z(q)},Z.prototype._randbelow=function(q){var Q=q.bitLength(),O=Math.ceil(Q/8);do var k=new B(this.rand.generate(O));while(k.cmp(q)>=0);return k},Z.prototype._randrange=function(q,Q){var O=Q.sub(q);return q.add(this._randbelow(O))},Z.prototype.test=function(q,Q,O){var k=q.bitLength(),C=B.mont(q),D=new B(1).toRed(C);Q||(Q=Math.max(1,k/48|0));for(var P=q.subn(1),J=0;!P.testn(J);J++);for(var T=q.shrn(J),z=P.toRed(C),I=!0;Q>0;Q--){var L=this._randrange(new B(2),P);O&&O(L);var p=L.toRed(C).redPow(T);if(!(p.cmp(D)===0||p.cmp(z)===0)){for(var E=1;E<J;E++){if(p=p.redSqr(),p.cmp(D)===0)return!1;if(p.cmp(z)===0)break}if(E===J)return!1}}return I},Z.prototype.getDivisor=function(q,Q){var O=q.bitLength(),k=B.mont(q),C=new B(1).toRed(k);Q||(Q=Math.max(1,O/48|0));for(var D=q.subn(1),P=0;!D.testn(P);P++);for(var J=q.shrn(P),T=D.toRed(k);Q>0;Q--){var z=this._randrange(new B(2),D),I=q.gcd(z);if(I.cmpn(1)!==0)return I;var L=z.toRed(k).redPow(J);if(!(L.cmp(C)===0||L.cmp(T)===0)){for(var p=1;p<P;p++){if(L=L.redSqr(),L.cmp(C)===0)return L.fromRed().subn(1).gcd(q);if(L.cmp(T)===0)break}if(p===P)return L=L.redSqr(),L.fromRed().subn(1).gcd(q)}}return!1}}),J4=z0((v,M)=>{var B=y5();M.exports=g,g.simpleSieve=b,g.fermatTest=w;var S=P4(),Z=new S(24),q=Z4(),Q=new q,O=new S(1),k=new S(2),C=new S(5),D=new S(16),P=new S(8),J=new S(10),T=new S(3),z=new S(7),I=new S(11),L=new S(4),p=new S(12),E=null;function x(){if(E!==null)return E;var r=1048576,t=[];t[0]=2;for(var $0=1,f=3;f<r;f+=2){for(var Z0=Math.ceil(Math.sqrt(f)),K=0;K<$0&&t[K]<=Z0&&f%t[K]!==0;K++);$0!==K&&t[K]<=Z0||(t[$0++]=f)}return E=t,t}function b(r){for(var t=x(),$0=0;$0<t.length;$0++)if(r.modn(t[$0])===0)return r.cmpn(t[$0])===0;return!0}function w(r){var t=S.mont(r);return k.toRed(t).redPow(r.subn(1)).fromRed().cmpn(1)===0}function g(r,t){if(r<16)return t===2||t===5?new S([140,123]):new S([140,39]);t=new S(t);for(var $0,f;;){for($0=new S(B(Math.ceil(r/8)));$0.bitLength()>r;)$0.ishrn(1);if($0.isEven()&&$0.iadd(O),$0.testn(1)||$0.iadd(k),t.cmp(k)){if(!t.cmp(C))for(;$0.mod(J).cmp(T);)$0.iadd(L)}else for(;$0.mod(Z).cmp(I);)$0.iadd(L);if(f=$0.shrn(1),b(f)&&b($0)&&w(f)&&w($0)&&Q.test(f)&&Q.test($0))return $0}}}),I6=z0((v,M)=>{M.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}),q6=z0((v,M)=>{var B=P4(),S=Z4(),Z=new S,q=new B(24),Q=new B(11),O=new B(10),k=new B(3),C=new B(7),D=J4(),P=y5();M.exports=L;function J(E,x){return x=x||"utf8",Buffer.isBuffer(E)||(E=new Buffer(E,x)),this._pub=new B(E),this}function T(E,x){return x=x||"utf8",Buffer.isBuffer(E)||(E=new Buffer(E,x)),this._priv=new B(E),this}var z={};function I(E,x){var b=x.toString("hex"),w=[b,E.toString(16)].join("_");if(w in z)return z[w];var g=0;if(E.isEven()||!D.simpleSieve||!D.fermatTest(E)||!Z.test(E))return g+=1,b==="02"||b==="05"?g+=8:g+=4,z[w]=g,g;Z.test(E.shrn(1))||(g+=2);var r;switch(b){case"02":E.mod(q).cmp(Q)&&(g+=8);break;case"05":r=E.mod(O),r.cmp(k)&&r.cmp(C)&&(g+=8);break;default:g+=4}return z[w]=g,g}function L(E,x,b){this.setGenerator(x),this.__prime=new B(E),this._prime=B.mont(this.__prime),this._primeLen=E.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,b?(this.setPublicKey=J,this.setPrivateKey=T):this._primeCode=8}Object.defineProperty(L.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=I(this.__prime,this.__gen)),this._primeCode}}),L.prototype.generateKeys=function(){return this._priv||(this._priv=new B(P(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},L.prototype.computeSecret=function(E){E=new B(E),E=E.toRed(this._prime);var x=E.redPow(this._priv).fromRed(),b=new Buffer(x.toArray()),w=this.getPrime();if(b.length<w.length){var g=new Buffer(w.length-b.length);g.fill(0),b=Buffer.concat([g,b])}return b},L.prototype.getPublicKey=function(E){return p(this._pub,E)},L.prototype.getPrivateKey=function(E){return p(this._priv,E)},L.prototype.getPrime=function(E){return p(this.__prime,E)},L.prototype.getGenerator=function(E){return p(this._gen,E)},L.prototype.setGenerator=function(E,x){return x=x||"utf8",Buffer.isBuffer(E)||(E=new Buffer(E,x)),this.__gen=E,this._gen=new B(E),this};function p(E,x){var b=new Buffer(E.toArray());return x?b.toString(x):b}}),B6=z0((v)=>{var M=J4(),B=I6(),S=q6();function Z(O){var k=new Buffer(B[O].prime,"hex"),C=new Buffer(B[O].gen,"hex");return new S(k,C)}var q={binary:!0,hex:!0,base64:!0};function Q(O,k,C,D){return Buffer.isBuffer(k)||q[k]===void 0?Q(O,"binary",k,C):(k=k||"binary",D=D||"binary",C=C||new Buffer([2]),Buffer.isBuffer(C)||(C=new Buffer(C,D)),typeof O=="number"?new S(M(O,C),C,!0):(Buffer.isBuffer(O)||(O=new Buffer(O,k)),new S(O,C,!0)))}v.DiffieHellmanGroup=v.createDiffieHellmanGroup=v.getDiffieHellman=Z,v.createDiffieHellman=v.DiffieHellman=Q}),U9=z0((v,M)=>{typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?M.exports={nextTick:B}:M.exports=process;function B(S,Z,q,Q){if(typeof S!="function")throw new TypeError('"callback" argument must be a function');var O=arguments.length,k,C;switch(O){case 0:case 1:return process.nextTick(S);case 2:return process.nextTick(function(){S.call(null,Z)});case 3:return process.nextTick(function(){S.call(null,Z,q)});case 4:return process.nextTick(function(){S.call(null,Z,q,Q)});default:for(k=new Array(O-1),C=0;C<k.length;)k[C++]=arguments[C];return process.nextTick(function(){S.apply(null,k)})}}}),E6=z0((v,M)=>{var B={}.toString;M.exports=Array.isArray||function(S){return B.call(S)=="[object Array]"}}),z4=z0((v,M)=>{M.exports=w5().EventEmitter}),I9=z0((v,M)=>{var B=j5(),S=B.Buffer;function Z(Q,O){for(var k in Q)O[k]=Q[k]}S.from&&S.alloc&&S.allocUnsafe&&S.allocUnsafeSlow?M.exports=B:(Z(B,v),v.Buffer=q);function q(Q,O,k){return S(Q,O,k)}Z(S,q),q.from=function(Q,O,k){if(typeof Q=="number")throw new TypeError("Argument must not be a number");return S(Q,O,k)},q.alloc=function(Q,O,k){if(typeof Q!="number")throw new TypeError("Argument must be a number");var C=S(Q);return O!==void 0?typeof k=="string"?C.fill(O,k):C.fill(O):C.fill(0),C},q.allocUnsafe=function(Q){if(typeof Q!="number")throw new TypeError("Argument must be a number");return S(Q)},q.allocUnsafeSlow=function(Q){if(typeof Q!="number")throw new TypeError("Argument must be a number");return B.SlowBuffer(Q)}}),s5=z0((v)=>{function M(L){return Array.isArray?Array.isArray(L):I(L)==="[object Array]"}v.isArray=M;function B(L){return typeof L=="boolean"}v.isBoolean=B;function S(L){return L===null}v.isNull=S;function Z(L){return L==null}v.isNullOrUndefined=Z;function q(L){return typeof L=="number"}v.isNumber=q;function Q(L){return typeof L=="string"}v.isString=Q;function O(L){return typeof L=="symbol"}v.isSymbol=O;function k(L){return L===void 0}v.isUndefined=k;function C(L){return I(L)==="[object RegExp]"}v.isRegExp=C;function D(L){return typeof L=="object"&&L!==null}v.isObject=D;function P(L){return I(L)==="[object Date]"}v.isDate=P;function J(L){return I(L)==="[object Error]"||L instanceof Error}v.isError=J;function T(L){return typeof L=="function"}v.isFunction=T;function z(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L>"u"}v.isPrimitive=z,v.isBuffer=j5().Buffer.isBuffer;function I(L){return Object.prototype.toString.call(L)}}),O4=z0(()=>{}),S6=z0((v,M)=>{function B(Q,O){if(!(Q instanceof O))throw new TypeError("Cannot call a class as a function")}var S=I9().Buffer,Z=O4();function q(Q,O,k){Q.copy(O,k)}M.exports=function(){function Q(){B(this,Q),this.head=null,this.tail=null,this.length=0}return Q.prototype.push=function(O){var k={data:O,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length},Q.prototype.unshift=function(O){var k={data:O,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length},Q.prototype.shift=function(){if(this.length!==0){var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O}},Q.prototype.clear=function(){this.head=this.tail=null,this.length=0},Q.prototype.join=function(O){if(this.length===0)return"";for(var k=this.head,C=""+k.data;k=k.next;)C+=O+k.data;return C},Q.prototype.concat=function(O){if(this.length===0)return S.alloc(0);for(var k=S.allocUnsafe(O>>>0),C=this.head,D=0;C;)q(C.data,k,D),D+=C.data.length,C=C.next;return k},Q}(),Z&&Z.inspect&&Z.inspect.custom&&(M.exports.prototype[Z.inspect.custom]=function(){var Q=Z.inspect({length:this.length});return this.constructor.name+" "+Q})}),j4=z0((v,M)=>{var B=U9();function S(Q,O){var k=this,C=this._readableState&&this._readableState.destroyed,D=this._writableState&&this._writableState.destroyed;return C||D?(O?O(Q):Q&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,B.nextTick(q,this,Q)):B.nextTick(q,this,Q)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Q||null,function(P){!O&&P?k._writableState?k._writableState.errorEmitted||(k._writableState.errorEmitted=!0,B.nextTick(q,k,P)):B.nextTick(q,k,P):O&&O(P)}),this)}function Z(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function q(Q,O){Q.emit("error",O)}M.exports={destroy:S,undestroy:Z}}),A6=z0((v,M)=>{M.exports=B;function B(Z,q){if(S("noDeprecation"))return Z;var Q=!1;function O(){if(!Q){if(S("throwDeprecation"))throw new Error(q);S("traceDeprecation")?console.trace(q):console.warn(q),Q=!0}return Z.apply(this,arguments)}return O}function S(Z){try{if(!global.localStorage)return!1}catch{return!1}var q=global.localStorage[Z];return q==null?!1:String(q).toLowerCase()==="true"}}),D4=z0((v,M)=>{var B=U9();M.exports=p;function S(Y){var X=this;this.next=null,this.entry=null,this.finish=function(){G(X,Y)}}var Z=B.nextTick,q;p.WritableState=I;var Q=Object.create(s5());Q.inherits=h0();var O={deprecate:A6()},k=z4(),C=I9().Buffer,D=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function P(Y){return C.from(Y)}function J(Y){return C.isBuffer(Y)||Y instanceof D}var T=j4();Q.inherits(p,k);function z(){}function I(Y,X){q=q||M5(),Y=Y||{};var F=X instanceof q;this.objectMode=!!Y.objectMode,F&&(this.objectMode=this.objectMode||!!Y.writableObjectMode);var{highWaterMark:N,writableHighWaterMark:j}=Y,A=this.objectMode?16:16384;N||N===0?this.highWaterMark=N:F&&(j||j===0)?this.highWaterMark=j:this.highWaterMark=A,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var m=Y.decodeStrings===!1;this.decodeStrings=!m,this.defaultEncoding=Y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(h){$0(X,h)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new S(this)}I.prototype.getBuffer=function(){for(var Y=this.bufferedRequest,X=[];Y;)X.push(Y),Y=Y.next;return X},function(){try{Object.defineProperty(I.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(Y){return L.call(this,Y)?!0:this!==p?!1:Y&&Y._writableState instanceof I}})):L=function(Y){return Y instanceof this};function p(Y){if(q=q||M5(),!L.call(p,this)&&!(this instanceof q))return new p(Y);this._writableState=new I(Y,this),this.writable=!0,Y&&(typeof Y.write=="function"&&(this._write=Y.write),typeof Y.writev=="function"&&(this._writev=Y.writev),typeof Y.destroy=="function"&&(this._destroy=Y.destroy),typeof Y.final=="function"&&(this._final=Y.final)),k.call(this)}p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function E(Y,X){var F=new Error("write after end");Y.emit("error",F),B.nextTick(X,F)}function x(Y,X,F,N){var j=!0,A=!1;return F===null?A=new TypeError("May not write null values to stream"):typeof F!="string"&&F!==void 0&&!X.objectMode&&(A=new TypeError("Invalid non-string/buffer chunk")),A&&(Y.emit("error",A),B.nextTick(N,A),j=!1),j}p.prototype.write=function(Y,X,F){var N=this._writableState,j=!1,A=!N.objectMode&&J(Y);return A&&!C.isBuffer(Y)&&(Y=P(Y)),typeof X=="function"&&(F=X,X=null),A?X="buffer":X||(X=N.defaultEncoding),typeof F!="function"&&(F=z),N.ended?E(this,F):(A||x(this,N,Y,F))&&(N.pendingcb++,j=w(this,N,A,Y,X,F)),j},p.prototype.cork=function(){var Y=this._writableState;Y.corked++},p.prototype.uncork=function(){var Y=this._writableState;Y.corked&&(Y.corked--,!Y.writing&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&K(this,Y))},p.prototype.setDefaultEncoding=function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Y);return this._writableState.defaultEncoding=Y,this};function b(Y,X,F){return!Y.objectMode&&Y.decodeStrings!==!1&&typeof X=="string"&&(X=C.from(X,F)),X}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function w(Y,X,F,N,j,A){if(!F){var m=b(X,N,j);N!==m&&(F=!0,j="buffer",N=m)}var h=X.objectMode?1:N.length;X.length+=h;var e=X.length<X.highWaterMark;if(e||(X.needDrain=!0),X.writing||X.corked){var T0=X.lastBufferedRequest;X.lastBufferedRequest={chunk:N,encoding:j,isBuf:F,callback:A,next:null},T0?T0.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else g(Y,X,!1,h,N,j,A);return e}function g(Y,X,F,N,j,A,m){X.writelen=N,X.writecb=m,X.writing=!0,X.sync=!0,F?Y._writev(j,X.onwrite):Y._write(j,A,X.onwrite),X.sync=!1}function r(Y,X,F,N,j){--X.pendingcb,F?(B.nextTick(j,N),B.nextTick(H,Y,X),Y._writableState.errorEmitted=!0,Y.emit("error",N)):(j(N),Y._writableState.errorEmitted=!0,Y.emit("error",N),H(Y,X))}function t(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}function $0(Y,X){var F=Y._writableState,N=F.sync,j=F.writecb;if(t(F),X)r(Y,F,N,X,j);else{var A=W(F);!A&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&K(Y,F),N?Z(f,Y,F,A,j):f(Y,F,A,j)}}function f(Y,X,F,N){F||Z0(Y,X),X.pendingcb--,N(),H(Y,X)}function Z0(Y,X){X.length===0&&X.needDrain&&(X.needDrain=!1,Y.emit("drain"))}function K(Y,X){X.bufferProcessing=!0;var F=X.bufferedRequest;if(Y._writev&&F&&F.next){var N=X.bufferedRequestCount,j=new Array(N),A=X.corkedRequestsFree;A.entry=F;for(var m=0,h=!0;F;)j[m]=F,F.isBuf||(h=!1),F=F.next,m+=1;j.allBuffers=h,g(Y,X,!0,X.length,j,"",A.finish),X.pendingcb++,X.lastBufferedRequest=null,A.next?(X.corkedRequestsFree=A.next,A.next=null):X.corkedRequestsFree=new S(X),X.bufferedRequestCount=0}else{for(;F;){var{chunk:e,encoding:T0,callback:U0}=F,y=X.objectMode?1:e.length;if(g(Y,X,!1,y,e,T0,U0),F=F.next,X.bufferedRequestCount--,X.writing)break}F===null&&(X.lastBufferedRequest=null)}X.bufferedRequest=F,X.bufferProcessing=!1}p.prototype._write=function(Y,X,F){F(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(Y,X,F){var N=this._writableState;typeof Y=="function"?(F=Y,Y=null,X=null):typeof X=="function"&&(F=X,X=null),Y!=null&&this.write(Y,X),N.corked&&(N.corked=1,this.uncork()),N.ending||$(this,N,F)};function W(Y){return Y.ending&&Y.length===0&&Y.bufferedRequest===null&&!Y.finished&&!Y.writing}function U(Y,X){Y._final(function(F){X.pendingcb--,F&&Y.emit("error",F),X.prefinished=!0,Y.emit("prefinish"),H(Y,X)})}function V(Y,X){!X.prefinished&&!X.finalCalled&&(typeof Y._final=="function"?(X.pendingcb++,X.finalCalled=!0,B.nextTick(U,Y,X)):(X.prefinished=!0,Y.emit("prefinish")))}function H(Y,X){var F=W(X);return F&&(V(Y,X),X.pendingcb===0&&(X.finished=!0,Y.emit("finish"))),F}function $(Y,X,F){X.ending=!0,H(Y,X),F&&(X.finished?B.nextTick(F):Y.once("finish",F)),X.ended=!0,Y.writable=!1}function G(Y,X,F){var N=Y.entry;for(Y.entry=null;N;){var j=N.callback;X.pendingcb--,j(F),N=N.next}X.corkedRequestsFree.next=Y}Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Y){!this._writableState||(this._writableState.destroyed=Y)}}),p.prototype.destroy=T.destroy,p.prototype._undestroy=T.undestroy,p.prototype._destroy=function(Y,X){this.end(),X(Y)}}),M5=z0((v,M)=>{var B=U9(),S=Object.keys||function(T){var z=[];for(var I in T)z.push(I);return z};M.exports=D;var Z=Object.create(s5());Z.inherits=h0();var q=C4(),Q=D4();Z.inherits(D,q);for(O=S(Q.prototype),C=0;C<O.length;C++)k=O[C],D.prototype[k]||(D.prototype[k]=Q.prototype[k]);var O,k,C;function D(T){if(!(this instanceof D))return new D(T);q.call(this,T),Q.call(this,T),T&&T.readable===!1&&(this.readable=!1),T&&T.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,T&&T.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",P)}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P(){this.allowHalfOpen||this._writableState.ended||B.nextTick(J,this)}function J(T){T.end()}Object.defineProperty(D.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(T){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=T,this._writableState.destroyed=T)}}),D.prototype._destroy=function(T,z){this.push(null),this.end(),B.nextTick(z,T)}}),C4=z0((v,M)=>{var B=U9();M.exports=w;var S=E6(),Z;w.ReadableState=b;var q=w5().EventEmitter,Q=function(y,o){return y.listeners(o).length},O=z4(),k=I9().Buffer,C=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function D(y){return k.from(y)}function P(y){return k.isBuffer(y)||y instanceof C}var J=Object.create(s5());J.inherits=h0();var T=O4(),z=void 0;T&&T.debuglog?z=T.debuglog("stream"):z=function(){};var I=S6(),L=j4(),p;J.inherits(w,O);var E=["error","close","destroy","pause","resume"];function x(y,o,n){if(typeof y.prependListener=="function")return y.prependListener(o,n);!y._events||!y._events[o]?y.on(o,n):S(y._events[o])?y._events[o].unshift(n):y._events[o]=[n,y._events[o]]}function b(y,o){Z=Z||M5(),y=y||{};var n=o instanceof Z;this.objectMode=!!y.objectMode,n&&(this.objectMode=this.objectMode||!!y.readableObjectMode);var{highWaterMark:K0,readableHighWaterMark:w0}=y,l=this.objectMode?16:16384;K0||K0===0?this.highWaterMark=K0:n&&(w0||w0===0)?this.highWaterMark=w0:this.highWaterMark=l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new I,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.destroyed=!1,this.defaultEncoding=y.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,y.encoding&&(p||(p=(P9(),D5(a5)).StringDecoder),this.decoder=new p(y.encoding),this.encoding=y.encoding)}function w(y){if(Z=Z||M5(),!(this instanceof w))return new w(y);this._readableState=new b(y,this),this.readable=!0,y&&(typeof y.read=="function"&&(this._read=y.read),typeof y.destroy=="function"&&(this._destroy=y.destroy)),O.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){!this._readableState||(this._readableState.destroyed=y)}}),w.prototype.destroy=L.destroy,w.prototype._undestroy=L.undestroy,w.prototype._destroy=function(y,o){this.push(null),o(y)},w.prototype.push=function(y,o){var n=this._readableState,K0;return n.objectMode?K0=!0:typeof y=="string"&&(o=o||n.defaultEncoding,o!==n.encoding&&(y=k.from(y,o),o=""),K0=!0),g(this,y,o,!1,K0)},w.prototype.unshift=function(y){return g(this,y,null,!0,!1)};function g(y,o,n,K0,w0){var l=y._readableState;if(o===null)l.reading=!1,W(y,l);else{var u;w0||(u=t(l,o)),u?y.emit("error",u):l.objectMode||o&&o.length>0?(typeof o!="string"&&!l.objectMode&&Object.getPrototypeOf(o)!==k.prototype&&(o=D(o)),K0?l.endEmitted?y.emit("error",new Error("stream.unshift() after end event")):r(y,l,o,!0):l.ended?y.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!n?(o=l.decoder.write(o),l.objectMode||o.length!==0?r(y,l,o,!1):H(y,l)):r(y,l,o,!1))):K0||(l.reading=!1)}return $0(l)}function r(y,o,n,K0){o.flowing&&o.length===0&&!o.sync?(y.emit("data",n),y.read(0)):(o.length+=o.objectMode?1:n.length,K0?o.buffer.unshift(n):o.buffer.push(n),o.needReadable&&U(y)),H(y,o)}function t(y,o){var n;return!P(o)&&typeof o!="string"&&o!==void 0&&!y.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function $0(y){return!y.ended&&(y.needReadable||y.length<y.highWaterMark||y.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(y){return p||(p=(P9(),D5(a5)).StringDecoder),this._readableState.decoder=new p(y),this._readableState.encoding=y,this};var f=8388608;function Z0(y){return y>=f?y=f:(y--,y|=y>>>1,y|=y>>>2,y|=y>>>4,y|=y>>>8,y|=y>>>16,y++),y}function K(y,o){return y<=0||o.length===0&&o.ended?0:o.objectMode?1:y!==y?o.flowing&&o.length?o.buffer.head.data.length:o.length:(y>o.highWaterMark&&(o.highWaterMark=Z0(y)),y<=o.length?y:o.ended?o.length:(o.needReadable=!0,0))}w.prototype.read=function(y){z("read",y),y=parseInt(y,10);var o=this._readableState,n=y;if(y!==0&&(o.emittedReadable=!1),y===0&&o.needReadable&&(o.length>=o.highWaterMark||o.ended))return z("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?e(this):U(this),null;if(y=K(y,o),y===0&&o.ended)return o.length===0&&e(this),null;var K0=o.needReadable;z("need readable",K0),(o.length===0||o.length-y<o.highWaterMark)&&(K0=!0,z("length less than watermark",K0)),o.ended||o.reading?(K0=!1,z("reading or ended",K0)):K0&&(z("do read"),o.reading=!0,o.sync=!0,o.length===0&&(o.needReadable=!0),this._read(o.highWaterMark),o.sync=!1,o.reading||(y=K(n,o)));var w0;return y>0?w0=j(y,o):w0=null,w0===null?(o.needReadable=!0,y=0):o.length-=y,o.length===0&&(o.ended||(o.needReadable=!0),n!==y&&o.ended&&e(this)),w0!==null&&this.emit("data",w0),w0};function W(y,o){if(!o.ended){if(o.decoder){var n=o.decoder.end();n&&n.length&&(o.buffer.push(n),o.length+=o.objectMode?1:n.length)}o.ended=!0,U(y)}}function U(y){var o=y._readableState;o.needReadable=!1,o.emittedReadable||(z("emitReadable",o.flowing),o.emittedReadable=!0,o.sync?B.nextTick(V,y):V(y))}function V(y){z("emit readable"),y.emit("readable"),N(y)}function H(y,o){o.readingMore||(o.readingMore=!0,B.nextTick($,y,o))}function $(y,o){for(var n=o.length;!o.reading&&!o.flowing&&!o.ended&&o.length<o.highWaterMark&&(z("maybeReadMore read 0"),y.read(0),n!==o.length);)n=o.length;o.readingMore=!1}w.prototype._read=function(y){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(y,o){var n=this,K0=this._readableState;switch(K0.pipesCount){case 0:K0.pipes=y;break;case 1:K0.pipes=[K0.pipes,y];break;default:K0.pipes.push(y);break}K0.pipesCount+=1,z("pipe count=%d opts=%j",K0.pipesCount,o);var w0=(!o||o.end!==!1)&&y!==process.stdout&&y!==process.stderr,l=w0?C0:b0;K0.endEmitted?B.nextTick(l):n.once("end",l),y.on("unpipe",u);function u(R,_){z("onunpipe"),R===n&&_&&_.hasUnpiped===!1&&(_.hasUnpiped=!0,y0())}function C0(){z("onend"),y.end()}var H0=G(n);y.on("drain",H0);var F0=!1;function y0(){z("cleanup"),y.removeListener("close",W0),y.removeListener("finish",G0),y.removeListener("drain",H0),y.removeListener("error",M0),y.removeListener("unpipe",u),n.removeListener("end",C0),n.removeListener("end",b0),n.removeListener("data",X0),F0=!0,K0.awaitDrain&&(!y._writableState||y._writableState.needDrain)&&H0()}var a=!1;n.on("data",X0);function X0(R){z("ondata"),a=!1;var _=y.write(R);_===!1&&!a&&((K0.pipesCount===1&&K0.pipes===y||K0.pipesCount>1&&U0(K0.pipes,y)!==-1)&&!F0&&(z("false write response, pause",K0.awaitDrain),K0.awaitDrain++,a=!0),n.pause())}function M0(R){z("onerror",R),b0(),y.removeListener("error",M0),Q(y,"error")===0&&y.emit("error",R)}x(y,"error",M0);function W0(){y.removeListener("finish",G0),b0()}y.once("close",W0);function G0(){z("onfinish"),y.removeListener("close",W0),b0()}y.once("finish",G0);function b0(){z("unpipe"),n.unpipe(y)}return y.emit("pipe",n),K0.flowing||(z("pipe resume"),n.resume()),y};function G(y){return function(){var o=y._readableState;z("pipeOnDrain",o.awaitDrain),o.awaitDrain&&o.awaitDrain--,o.awaitDrain===0&&Q(y,"data")&&(o.flowing=!0,N(y))}}w.prototype.unpipe=function(y){var o=this._readableState,n={hasUnpiped:!1};if(o.pipesCount===0)return this;if(o.pipesCount===1)return y&&y!==o.pipes?this:(y||(y=o.pipes),o.pipes=null,o.pipesCount=0,o.flowing=!1,y&&y.emit("unpipe",this,n),this);if(!y){var{pipes:K0,pipesCount:w0}=o;o.pipes=null,o.pipesCount=0,o.flowing=!1;for(var l=0;l<w0;l++)K0[l].emit("unpipe",this,{hasUnpiped:!1});return this}var u=U0(o.pipes,y);return u===-1?this:(o.pipes.splice(u,1),o.pipesCount-=1,o.pipesCount===1&&(o.pipes=o.pipes[0]),y.emit("unpipe",this,n),this)},w.prototype.on=function(y,o){var n=O.prototype.on.call(this,y,o);if(y==="data")this._readableState.flowing!==!1&&this.resume();else if(y==="readable"){var K0=this._readableState;!K0.endEmitted&&!K0.readableListening&&(K0.readableListening=K0.needReadable=!0,K0.emittedReadable=!1,K0.reading?K0.length&&U(this):B.nextTick(Y,this))}return n},w.prototype.addListener=w.prototype.on;function Y(y){z("readable nexttick read 0"),y.read(0)}w.prototype.resume=function(){var y=this._readableState;return y.flowing||(z("resume"),y.flowing=!0,X(this,y)),this};function X(y,o){o.resumeScheduled||(o.resumeScheduled=!0,B.nextTick(F,y,o))}function F(y,o){o.reading||(z("resume read 0"),y.read(0)),o.resumeScheduled=!1,o.awaitDrain=0,y.emit("resume"),N(y),o.flowing&&!o.reading&&y.read(0)}w.prototype.pause=function(){return z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(z("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function N(y){var o=y._readableState;for(z("flow",o.flowing);o.flowing&&y.read()!==null;);}w.prototype.wrap=function(y){var o=this,n=this._readableState,K0=!1;y.on("end",function(){if(z("wrapped end"),n.decoder&&!n.ended){var u=n.decoder.end();u&&u.length&&o.push(u)}o.push(null)}),y.on("data",function(u){if(z("wrapped data"),n.decoder&&(u=n.decoder.write(u)),!(n.objectMode&&u==null)&&!(!n.objectMode&&(!u||!u.length))){var C0=o.push(u);C0||(K0=!0,y.pause())}});for(var w0 in y)this[w0]===void 0&&typeof y[w0]=="function"&&(this[w0]=function(u){return function(){return y[u].apply(y,arguments)}}(w0));for(var l=0;l<E.length;l++)y.on(E[l],this.emit.bind(this,E[l]));return this._read=function(u){z("wrapped _read",u),K0&&(K0=!1,y.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=j;function j(y,o){if(o.length===0)return null;var n;return o.objectMode?n=o.buffer.shift():!y||y>=o.length?(o.decoder?n=o.buffer.join(""):o.buffer.length===1?n=o.buffer.head.data:n=o.buffer.concat(o.length),o.buffer.clear()):n=A(y,o.buffer,o.decoder),n}function A(y,o,n){var K0;return y<o.head.data.length?(K0=o.head.data.slice(0,y),o.head.data=o.head.data.slice(y)):y===o.head.data.length?K0=o.shift():K0=n?m(y,o):h(y,o),K0}function m(y,o){var n=o.head,K0=1,w0=n.data;for(y-=w0.length;n=n.next;){var l=n.data,u=y>l.length?l.length:y;if(u===l.length?w0+=l:w0+=l.slice(0,y),y-=u,y===0){u===l.length?(++K0,n.next?o.head=n.next:o.head=o.tail=null):(o.head=n,n.data=l.slice(u));break}++K0}return o.length-=K0,w0}function h(y,o){var n=k.allocUnsafe(y),K0=o.head,w0=1;for(K0.data.copy(n),y-=K0.data.length;K0=K0.next;){var l=K0.data,u=y>l.length?l.length:y;if(l.copy(n,n.length-y,0,u),y-=u,y===0){u===l.length?(++w0,K0.next?o.head=K0.next:o.head=o.tail=null):(o.head=K0,K0.data=l.slice(u));break}++w0}return o.length-=w0,n}function e(y){var o=y._readableState;if(o.length>0)throw new Error('"endReadable()" called on non-empty stream');o.endEmitted||(o.ended=!0,B.nextTick(T0,o,y))}function T0(y,o){!y.endEmitted&&y.length===0&&(y.endEmitted=!0,o.readable=!1,o.emit("end"))}function U0(y,o){for(var n=0,K0=y.length;n<K0;n++)if(y[n]===o)return n;return-1}}),N4=z0((v,M)=>{M.exports=q;var B=M5(),S=Object.create(s5());S.inherits=h0(),S.inherits(q,B);function Z(k,C){var D=this._transformState;D.transforming=!1;var P=D.writecb;if(!P)return this.emit("error",new Error("write callback called multiple times"));D.writechunk=null,D.writecb=null,C!=null&&this.push(C),P(k);var J=this._readableState;J.reading=!1,(J.needReadable||J.length<J.highWaterMark)&&this._read(J.highWaterMark)}function q(k){if(!(this instanceof q))return new q(k);B.call(this,k),this._transformState={afterTransform:Z.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,k&&(typeof k.transform=="function"&&(this._transform=k.transform),typeof k.flush=="function"&&(this._flush=k.flush)),this.on("prefinish",Q)}function Q(){var k=this;typeof this._flush=="function"?this._flush(function(C,D){O(k,C,D)}):O(this,null,null)}q.prototype.push=function(k,C){return this._transformState.needTransform=!1,B.prototype.push.call(this,k,C)},q.prototype._transform=function(k,C,D){throw new Error("_transform() is not implemented")},q.prototype._write=function(k,C,D){var P=this._transformState;if(P.writecb=D,P.writechunk=k,P.writeencoding=C,!P.transforming){var J=this._readableState;(P.needTransform||J.needReadable||J.length<J.highWaterMark)&&this._read(J.highWaterMark)}},q.prototype._read=function(k){var C=this._transformState;C.writechunk!==null&&C.writecb&&!C.transforming?(C.transforming=!0,this._transform(C.writechunk,C.writeencoding,C.afterTransform)):C.needTransform=!0},q.prototype._destroy=function(k,C){var D=this;B.prototype._destroy.call(this,k,function(P){C(P),D.emit("close")})};function O(k,C,D){if(C)return k.emit("error",C);if(D!=null&&k.push(D),k._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(k._transformState.transforming)throw new Error("Calling transform done when still transforming");return k.push(null)}}),p6=z0((v,M)=>{M.exports=Z;var B=N4(),S=Object.create(s5());S.inherits=h0(),S.inherits(Z,B);function Z(q){if(!(this instanceof Z))return new Z(q);B.call(this,q)}Z.prototype._transform=function(q,Q,O){O(null,q)}}),_6=z0((v,M)=>{v=M.exports=C4(),v.Stream=v,v.Readable=v,v.Writable=D4(),v.Duplex=M5(),v.Transform=N4(),v.PassThrough=p6()}),q9=z0((v,M)=>{(function(B,S){function Z(V,H){if(!V)throw new Error(H||"Assertion failed")}function q(V,H){V.super_=H;var $=function(){};$.prototype=H.prototype,V.prototype=new $,V.prototype.constructor=V}function Q(V,H,$){if(Q.isBN(V))return V;this.negative=0,this.words=null,this.length=0,this.red=null,V!==null&&((H==="le"||H==="be")&&($=H,H=10),this._init(V||0,H||10,$||"be"))}typeof B=="object"?B.exports=Q:S.BN=Q,Q.BN=Q,Q.wordSize=26;var O;try{typeof window<"u"&&typeof window.Buffer<"u"?O=window.Buffer:O=_5().Buffer}catch{}Q.isBN=function(V){return V instanceof Q?!0:V!==null&&typeof V=="object"&&V.constructor.wordSize===Q.wordSize&&Array.isArray(V.words)},Q.max=function(V,H){return V.cmp(H)>0?V:H},Q.min=function(V,H){return V.cmp(H)<0?V:H},Q.prototype._init=function(V,H,$){if(typeof V=="number")return this._initNumber(V,H,$);if(typeof V=="object")return this._initArray(V,H,$);H==="hex"&&(H=16),Z(H===(H|0)&&H>=2&&H<=36),V=V.toString().replace(/\s+/g,"");var G=0;V[0]==="-"&&(G++,this.negative=1),G<V.length&&(H===16?this._parseHex(V,G,$):(this._parseBase(V,H,G),$==="le"&&this._initArray(this.toArray(),H,$)))},Q.prototype._initNumber=function(V,H,$){V<0&&(this.negative=1,V=-V),V<67108864?(this.words=[V&67108863],this.length=1):V<4503599627370496?(this.words=[V&67108863,V/67108864&67108863],this.length=2):(Z(V<9007199254740992),this.words=[V&67108863,V/67108864&67108863,1],this.length=3),$==="le"&&this._initArray(this.toArray(),H,$)},Q.prototype._initArray=function(V,H,$){if(Z(typeof V.length=="number"),V.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(V.length/3),this.words=new Array(this.length);for(var G=0;G<this.length;G++)this.words[G]=0;var Y,X,F=0;if($==="be")for(G=V.length-1,Y=0;G>=0;G-=3)X=V[G]|V[G-1]<<8|V[G-2]<<16,this.words[Y]|=X<<F&67108863,this.words[Y+1]=X>>>26-F&67108863,F+=24,F>=26&&(F-=26,Y++);else if($==="le")for(G=0,Y=0;G<V.length;G+=3)X=V[G]|V[G+1]<<8|V[G+2]<<16,this.words[Y]|=X<<F&67108863,this.words[Y+1]=X>>>26-F&67108863,F+=24,F>=26&&(F-=26,Y++);return this._strip()};function k(V,H){var $=V.charCodeAt(H);if($>=48&&$<=57)return $-48;if($>=65&&$<=70)return $-55;if($>=97&&$<=102)return $-87;Z(!1,"Invalid character in "+V)}function C(V,H,$){var G=k(V,$);return $-1>=H&&(G|=k(V,$-1)<<4),G}Q.prototype._parseHex=function(V,H,$){this.length=Math.ceil((V.length-H)/6),this.words=new Array(this.length);for(var G=0;G<this.length;G++)this.words[G]=0;var Y=0,X=0,F;if($==="be")for(G=V.length-1;G>=H;G-=2)F=C(V,H,G)<<Y,this.words[X]|=F&67108863,Y>=18?(Y-=18,X+=1,this.words[X]|=F>>>26):Y+=8;else{var N=V.length-H;for(G=N%2===0?H+1:H;G<V.length;G+=2)F=C(V,H,G)<<Y,this.words[X]|=F&67108863,Y>=18?(Y-=18,X+=1,this.words[X]|=F>>>26):Y+=8}this._strip()};function D(V,H,$,G){for(var Y=0,X=0,F=Math.min(V.length,$),N=H;N<F;N++){var j=V.charCodeAt(N)-48;Y*=G,j>=49?X=j-49+10:j>=17?X=j-17+10:X=j,Z(j>=0&&X<G,"Invalid character"),Y+=X}return Y}Q.prototype._parseBase=function(V,H,$){this.words=[0],this.length=1;for(var G=0,Y=1;Y<=67108863;Y*=H)G++;G--,Y=Y/H|0;for(var X=V.length-$,F=X%G,N=Math.min(X,X-F)+$,j=0,A=$;A<N;A+=G)j=D(V,A,A+G,H),this.imuln(Y),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j);if(F!==0){var m=1;for(j=D(V,A,V.length,H),A=0;A<F;A++)m*=H;this.imuln(m),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j)}this._strip()},Q.prototype.copy=function(V){V.words=new Array(this.length);for(var H=0;H<this.length;H++)V.words[H]=this.words[H];V.length=this.length,V.negative=this.negative,V.red=this.red};function P(V,H){V.words=H.words,V.length=H.length,V.negative=H.negative,V.red=H.red}if(Q.prototype._move=function(V){P(V,this)},Q.prototype.clone=function(){var V=new Q(null);return this.copy(V),V},Q.prototype._expand=function(V){for(;this.length<V;)this.words[this.length++]=0;return this},Q.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},Q.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{Q.prototype[Symbol.for("nodejs.util.inspect.custom")]=J}catch{Q.prototype.inspect=J}else Q.prototype.inspect=J;function J(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],z=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];Q.prototype.toString=function(V,H){V=V||10,H=H|0||1;var $;if(V===16||V==="hex"){$="";for(var G=0,Y=0,X=0;X<this.length;X++){var F=this.words[X],N=((F<<G|Y)&16777215).toString(16);Y=F>>>24-G&16777215,G+=2,G>=26&&(G-=26,X--),Y!==0||X!==this.length-1?$=T[6-N.length]+N+$:$=N+$}for(Y!==0&&($=Y.toString(16)+$);$.length%H!==0;)$="0"+$;return this.negative!==0&&($="-"+$),$}if(V===(V|0)&&V>=2&&V<=36){var j=z[V],A=I[V];$="";var m=this.clone();for(m.negative=0;!m.isZero();){var h=m.modrn(A).toString(V);m=m.idivn(A),m.isZero()?$=h+$:$=T[j-h.length]+h+$}for(this.isZero()&&($="0"+$);$.length%H!==0;)$="0"+$;return this.negative!==0&&($="-"+$),$}Z(!1,"Base should be between 2 and 36")},Q.prototype.toNumber=function(){var V=this.words[0];return this.length===2?V+=this.words[1]*67108864:this.length===3&&this.words[2]===1?V+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-V:V},Q.prototype.toJSON=function(){return this.toString(16,2)},O&&(Q.prototype.toBuffer=function(V,H){return this.toArrayLike(O,V,H)}),Q.prototype.toArray=function(V,H){return this.toArrayLike(Array,V,H)};var L=function(V,H){return V.allocUnsafe?V.allocUnsafe(H):new V(H)};Q.prototype.toArrayLike=function(V,H,$){this._strip();var G=this.byteLength(),Y=$||Math.max(1,G);Z(G<=Y,"byte array longer than desired length"),Z(Y>0,"Requested array length <= 0");var X=L(V,Y),F=H==="le"?"LE":"BE";return this["_toArrayLike"+F](X,G),X},Q.prototype._toArrayLikeLE=function(V,H){for(var $=0,G=0,Y=0,X=0;Y<this.length;Y++){var F=this.words[Y]<<X|G;V[$++]=F&255,$<V.length&&(V[$++]=F>>8&255),$<V.length&&(V[$++]=F>>16&255),X===6?($<V.length&&(V[$++]=F>>24&255),G=0,X=0):(G=F>>>24,X+=2)}if($<V.length)for(V[$++]=G;$<V.length;)V[$++]=0},Q.prototype._toArrayLikeBE=function(V,H){for(var $=V.length-1,G=0,Y=0,X=0;Y<this.length;Y++){var F=this.words[Y]<<X|G;V[$--]=F&255,$>=0&&(V[$--]=F>>8&255),$>=0&&(V[$--]=F>>16&255),X===6?($>=0&&(V[$--]=F>>24&255),G=0,X=0):(G=F>>>24,X+=2)}if($>=0)for(V[$--]=G;$>=0;)V[$--]=0},Math.clz32?Q.prototype._countBits=function(V){return 32-Math.clz32(V)}:Q.prototype._countBits=function(V){var H=V,$=0;return H>=4096&&($+=13,H>>>=13),H>=64&&($+=7,H>>>=7),H>=8&&($+=4,H>>>=4),H>=2&&($+=2,H>>>=2),$+H},Q.prototype._zeroBits=function(V){if(V===0)return 26;var H=V,$=0;return(H&8191)===0&&($+=13,H>>>=13),(H&127)===0&&($+=7,H>>>=7),(H&15)===0&&($+=4,H>>>=4),(H&3)===0&&($+=2,H>>>=2),(H&1)===0&&$++,$},Q.prototype.bitLength=function(){var V=this.words[this.length-1],H=this._countBits(V);return(this.length-1)*26+H};function p(V){for(var H=new Array(V.bitLength()),$=0;$<H.length;$++){var G=$/26|0,Y=$%26;H[$]=V.words[G]>>>Y&1}return H}Q.prototype.zeroBits=function(){if(this.isZero())return 0;for(var V=0,H=0;H<this.length;H++){var $=this._zeroBits(this.words[H]);if(V+=$,$!==26)break}return V},Q.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Q.prototype.toTwos=function(V){return this.negative!==0?this.abs().inotn(V).iaddn(1):this.clone()},Q.prototype.fromTwos=function(V){return this.testn(V-1)?this.notn(V).iaddn(1).ineg():this.clone()},Q.prototype.isNeg=function(){return this.negative!==0},Q.prototype.neg=function(){return this.clone().ineg()},Q.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},Q.prototype.iuor=function(V){for(;this.length<V.length;)this.words[this.length++]=0;for(var H=0;H<V.length;H++)this.words[H]=this.words[H]|V.words[H];return this._strip()},Q.prototype.ior=function(V){return Z((this.negative|V.negative)===0),this.iuor(V)},Q.prototype.or=function(V){return this.length>V.length?this.clone().ior(V):V.clone().ior(this)},Q.prototype.uor=function(V){return this.length>V.length?this.clone().iuor(V):V.clone().iuor(this)},Q.prototype.iuand=function(V){var H;this.length>V.length?H=V:H=this;for(var $=0;$<H.length;$++)this.words[$]=this.words[$]&V.words[$];return this.length=H.length,this._strip()},Q.prototype.iand=function(V){return Z((this.negative|V.negative)===0),this.iuand(V)},Q.prototype.and=function(V){return this.length>V.length?this.clone().iand(V):V.clone().iand(this)},Q.prototype.uand=function(V){return this.length>V.length?this.clone().iuand(V):V.clone().iuand(this)},Q.prototype.iuxor=function(V){var H,$;this.length>V.length?(H=this,$=V):(H=V,$=this);for(var G=0;G<$.length;G++)this.words[G]=H.words[G]^$.words[G];if(this!==H)for(;G<H.length;G++)this.words[G]=H.words[G];return this.length=H.length,this._strip()},Q.prototype.ixor=function(V){return Z((this.negative|V.negative)===0),this.iuxor(V)},Q.prototype.xor=function(V){return this.length>V.length?this.clone().ixor(V):V.clone().ixor(this)},Q.prototype.uxor=function(V){return this.length>V.length?this.clone().iuxor(V):V.clone().iuxor(this)},Q.prototype.inotn=function(V){Z(typeof V=="number"&&V>=0);var H=Math.ceil(V/26)|0,$=V%26;this._expand(H),$>0&&H--;for(var G=0;G<H;G++)this.words[G]=~this.words[G]&67108863;return $>0&&(this.words[G]=~this.words[G]&67108863>>26-$),this._strip()},Q.prototype.notn=function(V){return this.clone().inotn(V)},Q.prototype.setn=function(V,H){Z(typeof V=="number"&&V>=0);var $=V/26|0,G=V%26;return this._expand($+1),H?this.words[$]=this.words[$]|1<<G:this.words[$]=this.words[$]&~(1<<G),this._strip()},Q.prototype.iadd=function(V){var H;if(this.negative!==0&&V.negative===0)return this.negative=0,H=this.isub(V),this.negative^=1,this._normSign();if(this.negative===0&&V.negative!==0)return V.negative=0,H=this.isub(V),V.negative=1,H._normSign();var $,G;this.length>V.length?($=this,G=V):($=V,G=this);for(var Y=0,X=0;X<G.length;X++)H=($.words[X]|0)+(G.words[X]|0)+Y,this.words[X]=H&67108863,Y=H>>>26;for(;Y!==0&&X<$.length;X++)H=($.words[X]|0)+Y,this.words[X]=H&67108863,Y=H>>>26;if(this.length=$.length,Y!==0)this.words[this.length]=Y,this.length++;else if($!==this)for(;X<$.length;X++)this.words[X]=$.words[X];return this},Q.prototype.add=function(V){var H;return V.negative!==0&&this.negative===0?(V.negative=0,H=this.sub(V),V.negative^=1,H):V.negative===0&&this.negative!==0?(this.negative=0,H=V.sub(this),this.negative=1,H):this.length>V.length?this.clone().iadd(V):V.clone().iadd(this)},Q.prototype.isub=function(V){if(V.negative!==0){V.negative=0;var H=this.iadd(V);return V.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(V),this.negative=1,this._normSign();var $=this.cmp(V);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var G,Y;$>0?(G=this,Y=V):(G=V,Y=this);for(var X=0,F=0;F<Y.length;F++)H=(G.words[F]|0)-(Y.words[F]|0)+X,X=H>>26,this.words[F]=H&67108863;for(;X!==0&&F<G.length;F++)H=(G.words[F]|0)+X,X=H>>26,this.words[F]=H&67108863;if(X===0&&F<G.length&&G!==this)for(;F<G.length;F++)this.words[F]=G.words[F];return this.length=Math.max(this.length,F),G!==this&&(this.negative=1),this._strip()},Q.prototype.sub=function(V){return this.clone().isub(V)};function E(V,H,$){$.negative=H.negative^V.negative;var G=V.length+H.length|0;$.length=G,G=G-1|0;var Y=V.words[0]|0,X=H.words[0]|0,F=Y*X,N=F&67108863,j=F/67108864|0;$.words[0]=N;for(var A=1;A<G;A++){for(var m=j>>>26,h=j&67108863,e=Math.min(A,H.length-1),T0=Math.max(0,A-V.length+1);T0<=e;T0++){var U0=A-T0|0;Y=V.words[U0]|0,X=H.words[T0]|0,F=Y*X+h,m+=F/67108864|0,h=F&67108863}$.words[A]=h|0,j=m|0}return j!==0?$.words[A]=j|0:$.length--,$._strip()}var x=function(V,H,$){var G=V.words,Y=H.words,X=$.words,F=0,N,j,A,m=G[0]|0,h=m&8191,e=m>>>13,T0=G[1]|0,U0=T0&8191,y=T0>>>13,o=G[2]|0,n=o&8191,K0=o>>>13,w0=G[3]|0,l=w0&8191,u=w0>>>13,C0=G[4]|0,H0=C0&8191,F0=C0>>>13,y0=G[5]|0,a=y0&8191,X0=y0>>>13,M0=G[6]|0,W0=M0&8191,G0=M0>>>13,b0=G[7]|0,R=b0&8191,_=b0>>>13,d=G[8]|0,s=d&8191,i=d>>>13,E0=G[9]|0,Y0=E0&8191,J0=E0>>>13,d0=Y[0]|0,j0=d0&8191,O0=d0>>>13,c0=Y[1]|0,S0=c0&8191,k0=c0>>>13,P5=Y[2]|0,A0=P5&8191,R0=P5>>>13,$5=Y[3]|0,p0=$5&8191,_0=$5>>>13,G5=Y[4]|0,I0=G5&8191,c=G5>>>13,V0=Y[5]|0,Q0=V0&8191,P0=V0>>>13,g0=Y[6]|0,D0=g0&8191,N0=g0>>>13,f0=Y[7]|0,q0=f0&8191,x0=f0>>>13,Z5=Y[8]|0,B0=Z5&8191,L0=Z5>>>13,o0=Y[9]|0,m0=o0&8191,v0=o0>>>13;$.negative=V.negative^H.negative,$.length=19,N=Math.imul(h,j0),j=Math.imul(h,O0),j=j+Math.imul(e,j0)|0,A=Math.imul(e,O0);var u0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(u0>>>26)|0,u0&=67108863,N=Math.imul(U0,j0),j=Math.imul(U0,O0),j=j+Math.imul(y,j0)|0,A=Math.imul(y,O0),N=N+Math.imul(h,S0)|0,j=j+Math.imul(h,k0)|0,j=j+Math.imul(e,S0)|0,A=A+Math.imul(e,k0)|0;var s0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(s0>>>26)|0,s0&=67108863,N=Math.imul(n,j0),j=Math.imul(n,O0),j=j+Math.imul(K0,j0)|0,A=Math.imul(K0,O0),N=N+Math.imul(U0,S0)|0,j=j+Math.imul(U0,k0)|0,j=j+Math.imul(y,S0)|0,A=A+Math.imul(y,k0)|0,N=N+Math.imul(h,A0)|0,j=j+Math.imul(h,R0)|0,j=j+Math.imul(e,A0)|0,A=A+Math.imul(e,R0)|0;var a0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(a0>>>26)|0,a0&=67108863,N=Math.imul(l,j0),j=Math.imul(l,O0),j=j+Math.imul(u,j0)|0,A=Math.imul(u,O0),N=N+Math.imul(n,S0)|0,j=j+Math.imul(n,k0)|0,j=j+Math.imul(K0,S0)|0,A=A+Math.imul(K0,k0)|0,N=N+Math.imul(U0,A0)|0,j=j+Math.imul(U0,R0)|0,j=j+Math.imul(y,A0)|0,A=A+Math.imul(y,R0)|0,N=N+Math.imul(h,p0)|0,j=j+Math.imul(h,_0)|0,j=j+Math.imul(e,p0)|0,A=A+Math.imul(e,_0)|0;var n0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(n0>>>26)|0,n0&=67108863,N=Math.imul(H0,j0),j=Math.imul(H0,O0),j=j+Math.imul(F0,j0)|0,A=Math.imul(F0,O0),N=N+Math.imul(l,S0)|0,j=j+Math.imul(l,k0)|0,j=j+Math.imul(u,S0)|0,A=A+Math.imul(u,k0)|0,N=N+Math.imul(n,A0)|0,j=j+Math.imul(n,R0)|0,j=j+Math.imul(K0,A0)|0,A=A+Math.imul(K0,R0)|0,N=N+Math.imul(U0,p0)|0,j=j+Math.imul(U0,_0)|0,j=j+Math.imul(y,p0)|0,A=A+Math.imul(y,_0)|0,N=N+Math.imul(h,I0)|0,j=j+Math.imul(h,c)|0,j=j+Math.imul(e,I0)|0,A=A+Math.imul(e,c)|0;var i0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(i0>>>26)|0,i0&=67108863,N=Math.imul(a,j0),j=Math.imul(a,O0),j=j+Math.imul(X0,j0)|0,A=Math.imul(X0,O0),N=N+Math.imul(H0,S0)|0,j=j+Math.imul(H0,k0)|0,j=j+Math.imul(F0,S0)|0,A=A+Math.imul(F0,k0)|0,N=N+Math.imul(l,A0)|0,j=j+Math.imul(l,R0)|0,j=j+Math.imul(u,A0)|0,A=A+Math.imul(u,R0)|0,N=N+Math.imul(n,p0)|0,j=j+Math.imul(n,_0)|0,j=j+Math.imul(K0,p0)|0,A=A+Math.imul(K0,_0)|0,N=N+Math.imul(U0,I0)|0,j=j+Math.imul(U0,c)|0,j=j+Math.imul(y,I0)|0,A=A+Math.imul(y,c)|0,N=N+Math.imul(h,Q0)|0,j=j+Math.imul(h,P0)|0,j=j+Math.imul(e,Q0)|0,A=A+Math.imul(e,P0)|0;var r0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(r0>>>26)|0,r0&=67108863,N=Math.imul(W0,j0),j=Math.imul(W0,O0),j=j+Math.imul(G0,j0)|0,A=Math.imul(G0,O0),N=N+Math.imul(a,S0)|0,j=j+Math.imul(a,k0)|0,j=j+Math.imul(X0,S0)|0,A=A+Math.imul(X0,k0)|0,N=N+Math.imul(H0,A0)|0,j=j+Math.imul(H0,R0)|0,j=j+Math.imul(F0,A0)|0,A=A+Math.imul(F0,R0)|0,N=N+Math.imul(l,p0)|0,j=j+Math.imul(l,_0)|0,j=j+Math.imul(u,p0)|0,A=A+Math.imul(u,_0)|0,N=N+Math.imul(n,I0)|0,j=j+Math.imul(n,c)|0,j=j+Math.imul(K0,I0)|0,A=A+Math.imul(K0,c)|0,N=N+Math.imul(U0,Q0)|0,j=j+Math.imul(U0,P0)|0,j=j+Math.imul(y,Q0)|0,A=A+Math.imul(y,P0)|0,N=N+Math.imul(h,D0)|0,j=j+Math.imul(h,N0)|0,j=j+Math.imul(e,D0)|0,A=A+Math.imul(e,N0)|0;var t0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(t0>>>26)|0,t0&=67108863,N=Math.imul(R,j0),j=Math.imul(R,O0),j=j+Math.imul(_,j0)|0,A=Math.imul(_,O0),N=N+Math.imul(W0,S0)|0,j=j+Math.imul(W0,k0)|0,j=j+Math.imul(G0,S0)|0,A=A+Math.imul(G0,k0)|0,N=N+Math.imul(a,A0)|0,j=j+Math.imul(a,R0)|0,j=j+Math.imul(X0,A0)|0,A=A+Math.imul(X0,R0)|0,N=N+Math.imul(H0,p0)|0,j=j+Math.imul(H0,_0)|0,j=j+Math.imul(F0,p0)|0,A=A+Math.imul(F0,_0)|0,N=N+Math.imul(l,I0)|0,j=j+Math.imul(l,c)|0,j=j+Math.imul(u,I0)|0,A=A+Math.imul(u,c)|0,N=N+Math.imul(n,Q0)|0,j=j+Math.imul(n,P0)|0,j=j+Math.imul(K0,Q0)|0,A=A+Math.imul(K0,P0)|0,N=N+Math.imul(U0,D0)|0,j=j+Math.imul(U0,N0)|0,j=j+Math.imul(y,D0)|0,A=A+Math.imul(y,N0)|0,N=N+Math.imul(h,q0)|0,j=j+Math.imul(h,x0)|0,j=j+Math.imul(e,q0)|0,A=A+Math.imul(e,x0)|0;var e0=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(e0>>>26)|0,e0&=67108863,N=Math.imul(s,j0),j=Math.imul(s,O0),j=j+Math.imul(i,j0)|0,A=Math.imul(i,O0),N=N+Math.imul(R,S0)|0,j=j+Math.imul(R,k0)|0,j=j+Math.imul(_,S0)|0,A=A+Math.imul(_,k0)|0,N=N+Math.imul(W0,A0)|0,j=j+Math.imul(W0,R0)|0,j=j+Math.imul(G0,A0)|0,A=A+Math.imul(G0,R0)|0,N=N+Math.imul(a,p0)|0,j=j+Math.imul(a,_0)|0,j=j+Math.imul(X0,p0)|0,A=A+Math.imul(X0,_0)|0,N=N+Math.imul(H0,I0)|0,j=j+Math.imul(H0,c)|0,j=j+Math.imul(F0,I0)|0,A=A+Math.imul(F0,c)|0,N=N+Math.imul(l,Q0)|0,j=j+Math.imul(l,P0)|0,j=j+Math.imul(u,Q0)|0,A=A+Math.imul(u,P0)|0,N=N+Math.imul(n,D0)|0,j=j+Math.imul(n,N0)|0,j=j+Math.imul(K0,D0)|0,A=A+Math.imul(K0,N0)|0,N=N+Math.imul(U0,q0)|0,j=j+Math.imul(U0,x0)|0,j=j+Math.imul(y,q0)|0,A=A+Math.imul(y,x0)|0,N=N+Math.imul(h,B0)|0,j=j+Math.imul(h,L0)|0,j=j+Math.imul(e,B0)|0,A=A+Math.imul(e,L0)|0;var K5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(K5>>>26)|0,K5&=67108863,N=Math.imul(Y0,j0),j=Math.imul(Y0,O0),j=j+Math.imul(J0,j0)|0,A=Math.imul(J0,O0),N=N+Math.imul(s,S0)|0,j=j+Math.imul(s,k0)|0,j=j+Math.imul(i,S0)|0,A=A+Math.imul(i,k0)|0,N=N+Math.imul(R,A0)|0,j=j+Math.imul(R,R0)|0,j=j+Math.imul(_,A0)|0,A=A+Math.imul(_,R0)|0,N=N+Math.imul(W0,p0)|0,j=j+Math.imul(W0,_0)|0,j=j+Math.imul(G0,p0)|0,A=A+Math.imul(G0,_0)|0,N=N+Math.imul(a,I0)|0,j=j+Math.imul(a,c)|0,j=j+Math.imul(X0,I0)|0,A=A+Math.imul(X0,c)|0,N=N+Math.imul(H0,Q0)|0,j=j+Math.imul(H0,P0)|0,j=j+Math.imul(F0,Q0)|0,A=A+Math.imul(F0,P0)|0,N=N+Math.imul(l,D0)|0,j=j+Math.imul(l,N0)|0,j=j+Math.imul(u,D0)|0,A=A+Math.imul(u,N0)|0,N=N+Math.imul(n,q0)|0,j=j+Math.imul(n,x0)|0,j=j+Math.imul(K0,q0)|0,A=A+Math.imul(K0,x0)|0,N=N+Math.imul(U0,B0)|0,j=j+Math.imul(U0,L0)|0,j=j+Math.imul(y,B0)|0,A=A+Math.imul(y,L0)|0,N=N+Math.imul(h,m0)|0,j=j+Math.imul(h,v0)|0,j=j+Math.imul(e,m0)|0,A=A+Math.imul(e,v0)|0;var X5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(X5>>>26)|0,X5&=67108863,N=Math.imul(Y0,S0),j=Math.imul(Y0,k0),j=j+Math.imul(J0,S0)|0,A=Math.imul(J0,k0),N=N+Math.imul(s,A0)|0,j=j+Math.imul(s,R0)|0,j=j+Math.imul(i,A0)|0,A=A+Math.imul(i,R0)|0,N=N+Math.imul(R,p0)|0,j=j+Math.imul(R,_0)|0,j=j+Math.imul(_,p0)|0,A=A+Math.imul(_,_0)|0,N=N+Math.imul(W0,I0)|0,j=j+Math.imul(W0,c)|0,j=j+Math.imul(G0,I0)|0,A=A+Math.imul(G0,c)|0,N=N+Math.imul(a,Q0)|0,j=j+Math.imul(a,P0)|0,j=j+Math.imul(X0,Q0)|0,A=A+Math.imul(X0,P0)|0,N=N+Math.imul(H0,D0)|0,j=j+Math.imul(H0,N0)|0,j=j+Math.imul(F0,D0)|0,A=A+Math.imul(F0,N0)|0,N=N+Math.imul(l,q0)|0,j=j+Math.imul(l,x0)|0,j=j+Math.imul(u,q0)|0,A=A+Math.imul(u,x0)|0,N=N+Math.imul(n,B0)|0,j=j+Math.imul(n,L0)|0,j=j+Math.imul(K0,B0)|0,A=A+Math.imul(K0,L0)|0,N=N+Math.imul(U0,m0)|0,j=j+Math.imul(U0,v0)|0,j=j+Math.imul(y,m0)|0,A=A+Math.imul(y,v0)|0;var W5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(W5>>>26)|0,W5&=67108863,N=Math.imul(Y0,A0),j=Math.imul(Y0,R0),j=j+Math.imul(J0,A0)|0,A=Math.imul(J0,R0),N=N+Math.imul(s,p0)|0,j=j+Math.imul(s,_0)|0,j=j+Math.imul(i,p0)|0,A=A+Math.imul(i,_0)|0,N=N+Math.imul(R,I0)|0,j=j+Math.imul(R,c)|0,j=j+Math.imul(_,I0)|0,A=A+Math.imul(_,c)|0,N=N+Math.imul(W0,Q0)|0,j=j+Math.imul(W0,P0)|0,j=j+Math.imul(G0,Q0)|0,A=A+Math.imul(G0,P0)|0,N=N+Math.imul(a,D0)|0,j=j+Math.imul(a,N0)|0,j=j+Math.imul(X0,D0)|0,A=A+Math.imul(X0,N0)|0,N=N+Math.imul(H0,q0)|0,j=j+Math.imul(H0,x0)|0,j=j+Math.imul(F0,q0)|0,A=A+Math.imul(F0,x0)|0,N=N+Math.imul(l,B0)|0,j=j+Math.imul(l,L0)|0,j=j+Math.imul(u,B0)|0,A=A+Math.imul(u,L0)|0,N=N+Math.imul(n,m0)|0,j=j+Math.imul(n,v0)|0,j=j+Math.imul(K0,m0)|0,A=A+Math.imul(K0,v0)|0;var V5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(V5>>>26)|0,V5&=67108863,N=Math.imul(Y0,p0),j=Math.imul(Y0,_0),j=j+Math.imul(J0,p0)|0,A=Math.imul(J0,_0),N=N+Math.imul(s,I0)|0,j=j+Math.imul(s,c)|0,j=j+Math.imul(i,I0)|0,A=A+Math.imul(i,c)|0,N=N+Math.imul(R,Q0)|0,j=j+Math.imul(R,P0)|0,j=j+Math.imul(_,Q0)|0,A=A+Math.imul(_,P0)|0,N=N+Math.imul(W0,D0)|0,j=j+Math.imul(W0,N0)|0,j=j+Math.imul(G0,D0)|0,A=A+Math.imul(G0,N0)|0,N=N+Math.imul(a,q0)|0,j=j+Math.imul(a,x0)|0,j=j+Math.imul(X0,q0)|0,A=A+Math.imul(X0,x0)|0,N=N+Math.imul(H0,B0)|0,j=j+Math.imul(H0,L0)|0,j=j+Math.imul(F0,B0)|0,A=A+Math.imul(F0,L0)|0,N=N+Math.imul(l,m0)|0,j=j+Math.imul(l,v0)|0,j=j+Math.imul(u,m0)|0,A=A+Math.imul(u,v0)|0;var U5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(U5>>>26)|0,U5&=67108863,N=Math.imul(Y0,I0),j=Math.imul(Y0,c),j=j+Math.imul(J0,I0)|0,A=Math.imul(J0,c),N=N+Math.imul(s,Q0)|0,j=j+Math.imul(s,P0)|0,j=j+Math.imul(i,Q0)|0,A=A+Math.imul(i,P0)|0,N=N+Math.imul(R,D0)|0,j=j+Math.imul(R,N0)|0,j=j+Math.imul(_,D0)|0,A=A+Math.imul(_,N0)|0,N=N+Math.imul(W0,q0)|0,j=j+Math.imul(W0,x0)|0,j=j+Math.imul(G0,q0)|0,A=A+Math.imul(G0,x0)|0,N=N+Math.imul(a,B0)|0,j=j+Math.imul(a,L0)|0,j=j+Math.imul(X0,B0)|0,A=A+Math.imul(X0,L0)|0,N=N+Math.imul(H0,m0)|0,j=j+Math.imul(H0,v0)|0,j=j+Math.imul(F0,m0)|0,A=A+Math.imul(F0,v0)|0;var H5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(H5>>>26)|0,H5&=67108863,N=Math.imul(Y0,Q0),j=Math.imul(Y0,P0),j=j+Math.imul(J0,Q0)|0,A=Math.imul(J0,P0),N=N+Math.imul(s,D0)|0,j=j+Math.imul(s,N0)|0,j=j+Math.imul(i,D0)|0,A=A+Math.imul(i,N0)|0,N=N+Math.imul(R,q0)|0,j=j+Math.imul(R,x0)|0,j=j+Math.imul(_,q0)|0,A=A+Math.imul(_,x0)|0,N=N+Math.imul(W0,B0)|0,j=j+Math.imul(W0,L0)|0,j=j+Math.imul(G0,B0)|0,A=A+Math.imul(G0,L0)|0,N=N+Math.imul(a,m0)|0,j=j+Math.imul(a,v0)|0,j=j+Math.imul(X0,m0)|0,A=A+Math.imul(X0,v0)|0;var Y5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,N=Math.imul(Y0,D0),j=Math.imul(Y0,N0),j=j+Math.imul(J0,D0)|0,A=Math.imul(J0,N0),N=N+Math.imul(s,q0)|0,j=j+Math.imul(s,x0)|0,j=j+Math.imul(i,q0)|0,A=A+Math.imul(i,x0)|0,N=N+Math.imul(R,B0)|0,j=j+Math.imul(R,L0)|0,j=j+Math.imul(_,B0)|0,A=A+Math.imul(_,L0)|0,N=N+Math.imul(W0,m0)|0,j=j+Math.imul(W0,v0)|0,j=j+Math.imul(G0,m0)|0,A=A+Math.imul(G0,v0)|0;var F5=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(F5>>>26)|0,F5&=67108863,N=Math.imul(Y0,q0),j=Math.imul(Y0,x0),j=j+Math.imul(J0,q0)|0,A=Math.imul(J0,x0),N=N+Math.imul(s,B0)|0,j=j+Math.imul(s,L0)|0,j=j+Math.imul(i,B0)|0,A=A+Math.imul(i,L0)|0,N=N+Math.imul(R,m0)|0,j=j+Math.imul(R,v0)|0,j=j+Math.imul(_,m0)|0,A=A+Math.imul(_,v0)|0;var F9=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(F9>>>26)|0,F9&=67108863,N=Math.imul(Y0,B0),j=Math.imul(Y0,L0),j=j+Math.imul(J0,B0)|0,A=Math.imul(J0,L0),N=N+Math.imul(s,m0)|0,j=j+Math.imul(s,v0)|0,j=j+Math.imul(i,m0)|0,A=A+Math.imul(i,v0)|0;var Q9=(F+N|0)+((j&8191)<<13)|0;F=(A+(j>>>13)|0)+(Q9>>>26)|0,Q9&=67108863,N=Math.imul(Y0,m0),j=Math.imul(Y0,v0),j=j+Math.imul(J0,m0)|0,A=Math.imul(J0,v0);var $9=(F+N|0)+((j&8191)<<13)|0;return F=(A+(j>>>13)|0)+($9>>>26)|0,$9&=67108863,X[0]=u0,X[1]=s0,X[2]=a0,X[3]=n0,X[4]=i0,X[5]=r0,X[6]=t0,X[7]=e0,X[8]=K5,X[9]=X5,X[10]=W5,X[11]=V5,X[12]=U5,X[13]=H5,X[14]=Y5,X[15]=F5,X[16]=F9,X[17]=Q9,X[18]=$9,F!==0&&(X[19]=F,$.length++),$};Math.imul||(x=E);function b(V,H,$){$.negative=H.negative^V.negative,$.length=V.length+H.length;for(var G=0,Y=0,X=0;X<$.length-1;X++){var F=Y;Y=0;for(var N=G&67108863,j=Math.min(X,H.length-1),A=Math.max(0,X-V.length+1);A<=j;A++){var m=X-A,h=V.words[m]|0,e=H.words[A]|0,T0=h*e,U0=T0&67108863;F=F+(T0/67108864|0)|0,U0=U0+N|0,N=U0&67108863,F=F+(U0>>>26)|0,Y+=F>>>26,F&=67108863}$.words[X]=N,G=F,F=Y}return G!==0?$.words[X]=G:$.length--,$._strip()}function w(V,H,$){return b(V,H,$)}Q.prototype.mulTo=function(V,H){var $,G=this.length+V.length;return this.length===10&&V.length===10?$=x(this,V,H):G<63?$=E(this,V,H):G<1024?$=b(this,V,H):$=w(this,V,H),$};function g(V,H){this.x=V,this.y=H}g.prototype.makeRBT=function(V){for(var H=new Array(V),$=Q.prototype._countBits(V)-1,G=0;G<V;G++)H[G]=this.revBin(G,$,V);return H},g.prototype.revBin=function(V,H,$){if(V===0||V===$-1)return V;for(var G=0,Y=0;Y<H;Y++)G|=(V&1)<<H-Y-1,V>>=1;return G},g.prototype.permute=function(V,H,$,G,Y,X){for(var F=0;F<X;F++)G[F]=H[V[F]],Y[F]=$[V[F]]},g.prototype.transform=function(V,H,$,G,Y,X){this.permute(X,V,H,$,G,Y);for(var F=1;F<Y;F<<=1)for(var N=F<<1,j=Math.cos(2*Math.PI/N),A=Math.sin(2*Math.PI/N),m=0;m<Y;m+=N)for(var h=j,e=A,T0=0;T0<F;T0++){var U0=$[m+T0],y=G[m+T0],o=$[m+T0+F],n=G[m+T0+F],K0=h*o-e*n;n=h*n+e*o,o=K0,$[m+T0]=U0+o,G[m+T0]=y+n,$[m+T0+F]=U0-o,G[m+T0+F]=y-n,T0!==N&&(K0=j*h-A*e,e=j*e+A*h,h=K0)}},g.prototype.guessLen13b=function(V,H){var $=Math.max(H,V)|1,G=$&1,Y=0;for($=$/2|0;$;$=$>>>1)Y++;return 1<<Y+1+G},g.prototype.conjugate=function(V,H,$){if(!($<=1))for(var G=0;G<$/2;G++){var Y=V[G];V[G]=V[$-G-1],V[$-G-1]=Y,Y=H[G],H[G]=-H[$-G-1],H[$-G-1]=-Y}},g.prototype.normalize13b=function(V,H){for(var $=0,G=0;G<H/2;G++){var Y=Math.round(V[2*G+1]/H)*8192+Math.round(V[2*G]/H)+$;V[G]=Y&67108863,Y<67108864?$=0:$=Y/67108864|0}return V},g.prototype.convert13b=function(V,H,$,G){for(var Y=0,X=0;X<H;X++)Y=Y+(V[X]|0),$[2*X]=Y&8191,Y=Y>>>13,$[2*X+1]=Y&8191,Y=Y>>>13;for(X=2*H;X<G;++X)$[X]=0;Z(Y===0),Z((Y&-8192)===0)},g.prototype.stub=function(V){for(var H=new Array(V),$=0;$<V;$++)H[$]=0;return H},g.prototype.mulp=function(V,H,$){var G=2*this.guessLen13b(V.length,H.length),Y=this.makeRBT(G),X=this.stub(G),F=new Array(G),N=new Array(G),j=new Array(G),A=new Array(G),m=new Array(G),h=new Array(G),e=$.words;e.length=G,this.convert13b(V.words,V.length,F,G),this.convert13b(H.words,H.length,A,G),this.transform(F,X,N,j,G,Y),this.transform(A,X,m,h,G,Y);for(var T0=0;T0<G;T0++){var U0=N[T0]*m[T0]-j[T0]*h[T0];j[T0]=N[T0]*h[T0]+j[T0]*m[T0],N[T0]=U0}return this.conjugate(N,j,G),this.transform(N,j,e,X,G,Y),this.conjugate(e,X,G),this.normalize13b(e,G),$.negative=V.negative^H.negative,$.length=V.length+H.length,$._strip()},Q.prototype.mul=function(V){var H=new Q(null);return H.words=new Array(this.length+V.length),this.mulTo(V,H)},Q.prototype.mulf=function(V){var H=new Q(null);return H.words=new Array(this.length+V.length),w(this,V,H)},Q.prototype.imul=function(V){return this.clone().mulTo(V,this)},Q.prototype.imuln=function(V){var H=V<0;H&&(V=-V),Z(typeof V=="number"),Z(V<67108864);for(var $=0,G=0;G<this.length;G++){var Y=(this.words[G]|0)*V,X=(Y&67108863)+($&67108863);$>>=26,$+=Y/67108864|0,$+=X>>>26,this.words[G]=X&67108863}return $!==0&&(this.words[G]=$,this.length++),H?this.ineg():this},Q.prototype.muln=function(V){return this.clone().imuln(V)},Q.prototype.sqr=function(){return this.mul(this)},Q.prototype.isqr=function(){return this.imul(this.clone())},Q.prototype.pow=function(V){var H=p(V);if(H.length===0)return new Q(1);for(var $=this,G=0;G<H.length&&H[G]===0;G++,$=$.sqr());if(++G<H.length)for(var Y=$.sqr();G<H.length;G++,Y=Y.sqr())H[G]!==0&&($=$.mul(Y));return $},Q.prototype.iushln=function(V){Z(typeof V=="number"&&V>=0);var H=V%26,$=(V-H)/26,G=67108863>>>26-H<<26-H,Y;if(H!==0){var X=0;for(Y=0;Y<this.length;Y++){var F=this.words[Y]&G,N=(this.words[Y]|0)-F<<H;this.words[Y]=N|X,X=F>>>26-H}X&&(this.words[Y]=X,this.length++)}if($!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+$]=this.words[Y];for(Y=0;Y<$;Y++)this.words[Y]=0;this.length+=$}return this._strip()},Q.prototype.ishln=function(V){return Z(this.negative===0),this.iushln(V)},Q.prototype.iushrn=function(V,H,$){Z(typeof V=="number"&&V>=0);var G;H?G=(H-H%26)/26:G=0;var Y=V%26,X=Math.min((V-Y)/26,this.length),F=67108863^67108863>>>Y<<Y,N=$;if(G-=X,G=Math.max(0,G),N){for(var j=0;j<X;j++)N.words[j]=this.words[j];N.length=X}if(X!==0)if(this.length>X)for(this.length-=X,j=0;j<this.length;j++)this.words[j]=this.words[j+X];else this.words[0]=0,this.length=1;var A=0;for(j=this.length-1;j>=0&&(A!==0||j>=G);j--){var m=this.words[j]|0;this.words[j]=A<<26-Y|m>>>Y,A=m&F}return N&&A!==0&&(N.words[N.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},Q.prototype.ishrn=function(V,H,$){return Z(this.negative===0),this.iushrn(V,H,$)},Q.prototype.shln=function(V){return this.clone().ishln(V)},Q.prototype.ushln=function(V){return this.clone().iushln(V)},Q.prototype.shrn=function(V){return this.clone().ishrn(V)},Q.prototype.ushrn=function(V){return this.clone().iushrn(V)},Q.prototype.testn=function(V){Z(typeof V=="number"&&V>=0);var H=V%26,$=(V-H)/26,G=1<<H;if(this.length<=$)return!1;var Y=this.words[$];return!!(Y&G)},Q.prototype.imaskn=function(V){Z(typeof V=="number"&&V>=0);var H=V%26,$=(V-H)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=$)return this;if(H!==0&&$++,this.length=Math.min($,this.length),H!==0){var G=67108863^67108863>>>H<<H;this.words[this.length-1]&=G}return this._strip()},Q.prototype.maskn=function(V){return this.clone().imaskn(V)},Q.prototype.iaddn=function(V){return Z(typeof V=="number"),Z(V<67108864),V<0?this.isubn(-V):this.negative!==0?this.length===1&&(this.words[0]|0)<=V?(this.words[0]=V-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(V),this.negative=1,this):this._iaddn(V)},Q.prototype._iaddn=function(V){this.words[0]+=V;for(var H=0;H<this.length&&this.words[H]>=67108864;H++)this.words[H]-=67108864,H===this.length-1?this.words[H+1]=1:this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},Q.prototype.isubn=function(V){if(Z(typeof V=="number"),Z(V<67108864),V<0)return this.iaddn(-V);if(this.negative!==0)return this.negative=0,this.iaddn(V),this.negative=1,this;if(this.words[0]-=V,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H<this.length&&this.words[H]<0;H++)this.words[H]+=67108864,this.words[H+1]-=1;return this._strip()},Q.prototype.addn=function(V){return this.clone().iaddn(V)},Q.prototype.subn=function(V){return this.clone().isubn(V)},Q.prototype.iabs=function(){return this.negative=0,this},Q.prototype.abs=function(){return this.clone().iabs()},Q.prototype._ishlnsubmul=function(V,H,$){var G=V.length+$,Y;this._expand(G);var X,F=0;for(Y=0;Y<V.length;Y++){X=(this.words[Y+$]|0)+F;var N=(V.words[Y]|0)*H;X-=N&67108863,F=(X>>26)-(N/67108864|0),this.words[Y+$]=X&67108863}for(;Y<this.length-$;Y++)X=(this.words[Y+$]|0)+F,F=X>>26,this.words[Y+$]=X&67108863;if(F===0)return this._strip();for(Z(F===-1),F=0,Y=0;Y<this.length;Y++)X=-(this.words[Y]|0)+F,F=X>>26,this.words[Y]=X&67108863;return this.negative=1,this._strip()},Q.prototype._wordDiv=function(V,H){var $=this.length-V.length,G=this.clone(),Y=V,X=Y.words[Y.length-1]|0,F=this._countBits(X);$=26-F,$!==0&&(Y=Y.ushln($),G.iushln($),X=Y.words[Y.length-1]|0);var N=G.length-Y.length,j;if(H!=="mod"){j=new Q(null),j.length=N+1,j.words=new Array(j.length);for(var A=0;A<j.length;A++)j.words[A]=0}var m=G.clone()._ishlnsubmul(Y,1,N);m.negative===0&&(G=m,j&&(j.words[N]=1));for(var h=N-1;h>=0;h--){var e=(G.words[Y.length+h]|0)*67108864+(G.words[Y.length+h-1]|0);for(e=Math.min(e/X|0,67108863),G._ishlnsubmul(Y,e,h);G.negative!==0;)e--,G.negative=0,G._ishlnsubmul(Y,1,h),G.isZero()||(G.negative^=1);j&&(j.words[h]=e)}return j&&j._strip(),G._strip(),H!=="div"&&$!==0&&G.iushrn($),{div:j||null,mod:G}},Q.prototype.divmod=function(V,H,$){if(Z(!V.isZero()),this.isZero())return{div:new Q(0),mod:new Q(0)};var G,Y,X;return this.negative!==0&&V.negative===0?(X=this.neg().divmod(V,H),H!=="mod"&&(G=X.div.neg()),H!=="div"&&(Y=X.mod.neg(),$&&Y.negative!==0&&Y.iadd(V)),{div:G,mod:Y}):this.negative===0&&V.negative!==0?(X=this.divmod(V.neg(),H),H!=="mod"&&(G=X.div.neg()),{div:G,mod:X.mod}):(this.negative&V.negative)!==0?(X=this.neg().divmod(V.neg(),H),H!=="div"&&(Y=X.mod.neg(),$&&Y.negative!==0&&Y.isub(V)),{div:X.div,mod:Y}):V.length>this.length||this.cmp(V)<0?{div:new Q(0),mod:this}:V.length===1?H==="div"?{div:this.divn(V.words[0]),mod:null}:H==="mod"?{div:null,mod:new Q(this.modrn(V.words[0]))}:{div:this.divn(V.words[0]),mod:new Q(this.modrn(V.words[0]))}:this._wordDiv(V,H)},Q.prototype.div=function(V){return this.divmod(V,"div",!1).div},Q.prototype.mod=function(V){return this.divmod(V,"mod",!1).mod},Q.prototype.umod=function(V){return this.divmod(V,"mod",!0).mod},Q.prototype.divRound=function(V){var H=this.divmod(V);if(H.mod.isZero())return H.div;var $=H.div.negative!==0?H.mod.isub(V):H.mod,G=V.ushrn(1),Y=V.andln(1),X=$.cmp(G);return X<0||Y===1&&X===0?H.div:H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},Q.prototype.modrn=function(V){var H=V<0;H&&(V=-V),Z(V<=67108863);for(var $=67108864%V,G=0,Y=this.length-1;Y>=0;Y--)G=($*G+(this.words[Y]|0))%V;return H?-G:G},Q.prototype.modn=function(V){return this.modrn(V)},Q.prototype.idivn=function(V){var H=V<0;H&&(V=-V),Z(V<=67108863);for(var $=0,G=this.length-1;G>=0;G--){var Y=(this.words[G]|0)+$*67108864;this.words[G]=Y/V|0,$=Y%V}return this._strip(),H?this.ineg():this},Q.prototype.divn=function(V){return this.clone().idivn(V)},Q.prototype.egcd=function(V){Z(V.negative===0),Z(!V.isZero());var H=this,$=V.clone();H.negative!==0?H=H.umod(V):H=H.clone();for(var G=new Q(1),Y=new Q(0),X=new Q(0),F=new Q(1),N=0;H.isEven()&&$.isEven();)H.iushrn(1),$.iushrn(1),++N;for(var j=$.clone(),A=H.clone();!H.isZero();){for(var m=0,h=1;(H.words[0]&h)===0&&m<26;++m,h<<=1);if(m>0)for(H.iushrn(m);m-- >0;)(G.isOdd()||Y.isOdd())&&(G.iadd(j),Y.isub(A)),G.iushrn(1),Y.iushrn(1);for(var e=0,T0=1;($.words[0]&T0)===0&&e<26;++e,T0<<=1);if(e>0)for($.iushrn(e);e-- >0;)(X.isOdd()||F.isOdd())&&(X.iadd(j),F.isub(A)),X.iushrn(1),F.iushrn(1);H.cmp($)>=0?(H.isub($),G.isub(X),Y.isub(F)):($.isub(H),X.isub(G),F.isub(Y))}return{a:X,b:F,gcd:$.iushln(N)}},Q.prototype._invmp=function(V){Z(V.negative===0),Z(!V.isZero());var H=this,$=V.clone();H.negative!==0?H=H.umod(V):H=H.clone();for(var G=new Q(1),Y=new Q(0),X=$.clone();H.cmpn(1)>0&&$.cmpn(1)>0;){for(var F=0,N=1;(H.words[0]&N)===0&&F<26;++F,N<<=1);if(F>0)for(H.iushrn(F);F-- >0;)G.isOdd()&&G.iadd(X),G.iushrn(1);for(var j=0,A=1;($.words[0]&A)===0&&j<26;++j,A<<=1);if(j>0)for($.iushrn(j);j-- >0;)Y.isOdd()&&Y.iadd(X),Y.iushrn(1);H.cmp($)>=0?(H.isub($),G.isub(Y)):($.isub(H),Y.isub(G))}var m;return H.cmpn(1)===0?m=G:m=Y,m.cmpn(0)<0&&m.iadd(V),m},Q.prototype.gcd=function(V){if(this.isZero())return V.abs();if(V.isZero())return this.abs();var H=this.clone(),$=V.clone();H.negative=0,$.negative=0;for(var G=0;H.isEven()&&$.isEven();G++)H.iushrn(1),$.iushrn(1);do{for(;H.isEven();)H.iushrn(1);for(;$.isEven();)$.iushrn(1);var Y=H.cmp($);if(Y<0){var X=H;H=$,$=X}else if(Y===0||$.cmpn(1)===0)break;H.isub($)}while(!0);return $.iushln(G)},Q.prototype.invm=function(V){return this.egcd(V).a.umod(V)},Q.prototype.isEven=function(){return(this.words[0]&1)===0},Q.prototype.isOdd=function(){return(this.words[0]&1)===1},Q.prototype.andln=function(V){return this.words[0]&V},Q.prototype.bincn=function(V){Z(typeof V=="number");var H=V%26,$=(V-H)/26,G=1<<H;if(this.length<=$)return this._expand($+1),this.words[$]|=G,this;for(var Y=G,X=$;Y!==0&&X<this.length;X++){var F=this.words[X]|0;F+=Y,Y=F>>>26,F&=67108863,this.words[X]=F}return Y!==0&&(this.words[X]=Y,this.length++),this},Q.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Q.prototype.cmpn=function(V){var H=V<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this._strip();var $;if(this.length>1)$=1;else{H&&(V=-V),Z(V<=67108863,"Number is too big");var G=this.words[0]|0;$=G===V?0:G<V?-1:1}return this.negative!==0?-$|0:$},Q.prototype.cmp=function(V){if(this.negative!==0&&V.negative===0)return-1;if(this.negative===0&&V.negative!==0)return 1;var H=this.ucmp(V);return this.negative!==0?-H|0:H},Q.prototype.ucmp=function(V){if(this.length>V.length)return 1;if(this.length<V.length)return-1;for(var H=0,$=this.length-1;$>=0;$--){var G=this.words[$]|0,Y=V.words[$]|0;if(G!==Y){G<Y?H=-1:G>Y&&(H=1);break}}return H},Q.prototype.gtn=function(V){return this.cmpn(V)===1},Q.prototype.gt=function(V){return this.cmp(V)===1},Q.prototype.gten=function(V){return this.cmpn(V)>=0},Q.prototype.gte=function(V){return this.cmp(V)>=0},Q.prototype.ltn=function(V){return this.cmpn(V)===-1},Q.prototype.lt=function(V){return this.cmp(V)===-1},Q.prototype.lten=function(V){return this.cmpn(V)<=0},Q.prototype.lte=function(V){return this.cmp(V)<=0},Q.prototype.eqn=function(V){return this.cmpn(V)===0},Q.prototype.eq=function(V){return this.cmp(V)===0},Q.red=function(V){return new W(V)},Q.prototype.toRed=function(V){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),V.convertTo(this)._forceRed(V)},Q.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Q.prototype._forceRed=function(V){return this.red=V,this},Q.prototype.forceRed=function(V){return Z(!this.red,"Already a number in reduction context"),this._forceRed(V)},Q.prototype.redAdd=function(V){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,V)},Q.prototype.redIAdd=function(V){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,V)},Q.prototype.redSub=function(V){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,V)},Q.prototype.redISub=function(V){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,V)},Q.prototype.redShl=function(V){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,V)},Q.prototype.redMul=function(V){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,V),this.red.mul(this,V)},Q.prototype.redIMul=function(V){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,V),this.red.imul(this,V)},Q.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Q.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Q.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Q.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Q.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Q.prototype.redPow=function(V){return Z(this.red&&!V.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,V)};var r={k256:null,p224:null,p192:null,p25519:null};function t(V,H){this.name=V,this.p=new Q(H,16),this.n=this.p.bitLength(),this.k=new Q(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}t.prototype._tmp=function(){var V=new Q(null);return V.words=new Array(Math.ceil(this.n/13)),V},t.prototype.ireduce=function(V){var H=V,$;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),$=H.bitLength();while($>this.n);var G=$<this.n?-1:H.ucmp(this.p);return G===0?(H.words[0]=0,H.length=1):G>0?H.isub(this.p):H.strip!==void 0?H.strip():H._strip(),H},t.prototype.split=function(V,H){V.iushrn(this.n,0,H)},t.prototype.imulK=function(V){return V.imul(this.k)};function $0(){t.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q($0,t),$0.prototype.split=function(V,H){for(var $=4194303,G=Math.min(V.length,9),Y=0;Y<G;Y++)H.words[Y]=V.words[Y];if(H.length=G,V.length<=9){V.words[0]=0,V.length=1;return}var X=V.words[9];for(H.words[H.length++]=X&$,Y=10;Y<V.length;Y++){var F=V.words[Y]|0;V.words[Y-10]=(F&$)<<4|X>>>22,X=F}X>>>=22,V.words[Y-10]=X,X===0&&V.length>10?V.length-=10:V.length-=9},$0.prototype.imulK=function(V){V.words[V.length]=0,V.words[V.length+1]=0,V.length+=2;for(var H=0,$=0;$<V.length;$++){var G=V.words[$]|0;H+=G*977,V.words[$]=H&67108863,H=G*64+(H/67108864|0)}return V.words[V.length-1]===0&&(V.length--,V.words[V.length-1]===0&&V.length--),V};function f(){t.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(f,t);function Z0(){t.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(Z0,t);function K(){t.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q(K,t),K.prototype.imulK=function(V){for(var H=0,$=0;$<V.length;$++){var G=(V.words[$]|0)*19+H,Y=G&67108863;G>>>=26,V.words[$]=Y,H=G}return H!==0&&(V.words[V.length++]=H),V},Q._prime=function(V){if(r[V])return r[V];var H;if(V==="k256")H=new $0;else if(V==="p224")H=new f;else if(V==="p192")H=new Z0;else if(V==="p25519")H=new K;else throw new Error("Unknown prime "+V);return r[V]=H,H};function W(V){if(typeof V=="string"){var H=Q._prime(V);this.m=H.p,this.prime=H}else Z(V.gtn(1),"modulus must be greater than 1"),this.m=V,this.prime=null}W.prototype._verify1=function(V){Z(V.negative===0,"red works only with positives"),Z(V.red,"red works only with red numbers")},W.prototype._verify2=function(V,H){Z((V.negative|H.negative)===0,"red works only with positives"),Z(V.red&&V.red===H.red,"red works only with red numbers")},W.prototype.imod=function(V){return this.prime?this.prime.ireduce(V)._forceRed(this):(P(V,V.umod(this.m)._forceRed(this)),V)},W.prototype.neg=function(V){return V.isZero()?V.clone():this.m.sub(V)._forceRed(this)},W.prototype.add=function(V,H){this._verify2(V,H);var $=V.add(H);return $.cmp(this.m)>=0&&$.isub(this.m),$._forceRed(this)},W.prototype.iadd=function(V,H){this._verify2(V,H);var $=V.iadd(H);return $.cmp(this.m)>=0&&$.isub(this.m),$},W.prototype.sub=function(V,H){this._verify2(V,H);var $=V.sub(H);return $.cmpn(0)<0&&$.iadd(this.m),$._forceRed(this)},W.prototype.isub=function(V,H){this._verify2(V,H);var $=V.isub(H);return $.cmpn(0)<0&&$.iadd(this.m),$},W.prototype.shl=function(V,H){return this._verify1(V),this.imod(V.ushln(H))},W.prototype.imul=function(V,H){return this._verify2(V,H),this.imod(V.imul(H))},W.prototype.mul=function(V,H){return this._verify2(V,H),this.imod(V.mul(H))},W.prototype.isqr=function(V){return this.imul(V,V.clone())},W.prototype.sqr=function(V){return this.mul(V,V)},W.prototype.sqrt=function(V){if(V.isZero())return V.clone();var H=this.m.andln(3);if(Z(H%2===1),H===3){var $=this.m.add(new Q(1)).iushrn(2);return this.pow(V,$)}for(var G=this.m.subn(1),Y=0;!G.isZero()&&G.andln(1)===0;)Y++,G.iushrn(1);Z(!G.isZero());var X=new Q(1).toRed(this),F=X.redNeg(),N=this.m.subn(1).iushrn(1),j=this.m.bitLength();for(j=new Q(2*j*j).toRed(this);this.pow(j,N).cmp(F)!==0;)j.redIAdd(F);for(var A=this.pow(j,G),m=this.pow(V,G.addn(1).iushrn(1)),h=this.pow(V,G),e=Y;h.cmp(X)!==0;){for(var T0=h,U0=0;T0.cmp(X)!==0;U0++)T0=T0.redSqr();Z(U0<e);var y=this.pow(A,new Q(1).iushln(e-U0-1));m=m.redMul(y),A=y.redSqr(),h=h.redMul(A),e=U0}return m},W.prototype.invm=function(V){var H=V._invmp(this.m);return H.negative!==0?(H.negative=0,this.imod(H).redNeg()):this.imod(H)},W.prototype.pow=function(V,H){if(H.isZero())return new Q(1).toRed(this);if(H.cmpn(1)===0)return V.clone();var $=4,G=new Array(1<<$);G[0]=new Q(1).toRed(this),G[1]=V;for(var Y=2;Y<G.length;Y++)G[Y]=this.mul(G[Y-1],V);var X=G[0],F=0,N=0,j=H.bitLength()%26;for(j===0&&(j=26),Y=H.length-1;Y>=0;Y--){for(var A=H.words[Y],m=j-1;m>=0;m--){var h=A>>m&1;if(X!==G[0]&&(X=this.sqr(X)),h===0&&F===0){N=0;continue}F<<=1,F|=h,N++,!(N!==$&&(Y!==0||m!==0))&&(X=this.mul(X,G[F]),N=0,F=0)}j=26}return X},W.prototype.convertTo=function(V){var H=V.umod(this.m);return H===V?H.clone():H},W.prototype.convertFrom=function(V){var H=V.clone();return H.red=null,H},Q.mont=function(V){return new U(V)};function U(V){W.call(this,V),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new Q(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q(U,W),U.prototype.convertTo=function(V){return this.imod(V.ushln(this.shift))},U.prototype.convertFrom=function(V){var H=this.imod(V.mul(this.rinv));return H.red=null,H},U.prototype.imul=function(V,H){if(V.isZero()||H.isZero())return V.words[0]=0,V.length=1,V;var $=V.imul(H),G=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=$.isub(G).iushrn(this.shift),X=Y;return Y.cmp(this.m)>=0?X=Y.isub(this.m):Y.cmpn(0)<0&&(X=Y.iadd(this.m)),X._forceRed(this)},U.prototype.mul=function(V,H){if(V.isZero()||H.isZero())return new Q(0)._forceRed(this);var $=V.mul(H),G=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=$.isub(G).iushrn(this.shift),X=Y;return Y.cmp(this.m)>=0?X=Y.isub(this.m):Y.cmpn(0)<0&&(X=Y.iadd(this.m)),X._forceRed(this)},U.prototype.invm=function(V){var H=this.imod(V._invmp(this.m).mul(this.r2));return H._forceRed(this)}})(typeof M>"u"||M,v)}),B9=z0((v,M)=>{var B=q9(),S=y5(),Z=l0().Buffer;function q(k){var C=k.modulus.byteLength(),D;do D=new B(S(C));while(D.cmp(k.modulus)>=0||!D.umod(k.prime1)||!D.umod(k.prime2));return D}function Q(k){var C=q(k),D=C.toRed(B.mont(k.modulus)).redPow(new B(k.publicExponent)).fromRed();return{blinder:D,unblinder:C.invm(k.modulus)}}function O(k,C){var D=Q(C),P=C.modulus.byteLength(),J=new B(k).mul(D.blinder).umod(C.modulus),T=J.toRed(B.mont(C.prime1)),z=J.toRed(B.mont(C.prime2)),I=C.coefficient,L=C.prime1,p=C.prime2,E=T.redPow(C.exponent1).fromRed(),x=z.redPow(C.exponent2).fromRed(),b=E.isub(x).imul(I).umod(L).imul(p);return x.iadd(b).imul(D.unblinder).umod(C.modulus).toArrayLike(Z,"be",P)}O.getr=q,M.exports=O}),x6=z0((v,M)=>{M.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),q5=z0((v,M)=>{(function(B,S){function Z(K,W){if(!K)throw new Error(W||"Assertion failed")}function q(K,W){K.super_=W;var U=function(){};U.prototype=W.prototype,K.prototype=new U,K.prototype.constructor=K}function Q(K,W,U){if(Q.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((W==="le"||W==="be")&&(U=W,W=10),this._init(K||0,W||10,U||"be"))}typeof B=="object"?B.exports=Q:S.BN=Q,Q.BN=Q,Q.wordSize=26;var O;try{typeof window<"u"&&typeof window.Buffer<"u"?O=window.Buffer:O=_5().Buffer}catch{}Q.isBN=function(K){return K instanceof Q?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===Q.wordSize&&Array.isArray(K.words)},Q.max=function(K,W){return K.cmp(W)>0?K:W},Q.min=function(K,W){return K.cmp(W)<0?K:W},Q.prototype._init=function(K,W,U){if(typeof K=="number")return this._initNumber(K,W,U);if(typeof K=="object")return this._initArray(K,W,U);W==="hex"&&(W=16),Z(W===(W|0)&&W>=2&&W<=36),K=K.toString().replace(/\s+/g,"");var V=0;K[0]==="-"&&(V++,this.negative=1),V<K.length&&(W===16?this._parseHex(K,V,U):(this._parseBase(K,W,V),U==="le"&&this._initArray(this.toArray(),W,U)))},Q.prototype._initNumber=function(K,W,U){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(Z(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),W,U)},Q.prototype._initArray=function(K,W,U){if(Z(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H,$,G=0;if(U==="be")for(V=K.length-1,H=0;V>=0;V-=3)$=K[V]|K[V-1]<<8|K[V-2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);else if(U==="le")for(V=0,H=0;V<K.length;V+=3)$=K[V]|K[V+1]<<8|K[V+2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);return this.strip()};function k(K,W){var U=K.charCodeAt(W);return U>=65&&U<=70?U-55:U>=97&&U<=102?U-87:U-48&15}function C(K,W,U){var V=k(K,U);return U-1>=W&&(V|=k(K,U-1)<<4),V}Q.prototype._parseHex=function(K,W,U){this.length=Math.ceil((K.length-W)/6),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H=0,$=0,G;if(U==="be")for(V=K.length-1;V>=W;V-=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8;else{var Y=K.length-W;for(V=Y%2===0?W+1:W;V<K.length;V+=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8}this.strip()};function D(K,W,U,V){for(var H=0,$=Math.min(K.length,U),G=W;G<$;G++){var Y=K.charCodeAt(G)-48;H*=V,Y>=49?H+=Y-49+10:Y>=17?H+=Y-17+10:H+=Y}return H}Q.prototype._parseBase=function(K,W,U){this.words=[0],this.length=1;for(var V=0,H=1;H<=67108863;H*=W)V++;V--,H=H/W|0;for(var $=K.length-U,G=$%V,Y=Math.min($,$-G)+U,X=0,F=U;F<Y;F+=V)X=D(K,F,F+V,W),this.imuln(H),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(G!==0){var N=1;for(X=D(K,F,K.length,W),F=0;F<G;F++)N*=W;this.imuln(N),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},Q.prototype.copy=function(K){K.words=new Array(this.length);for(var W=0;W<this.length;W++)K.words[W]=this.words[W];K.length=this.length,K.negative=this.negative,K.red=this.red},Q.prototype.clone=function(){var K=new Q(null);return this.copy(K),K},Q.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},Q.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},Q.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},Q.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var P=["","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"],J=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];Q.prototype.toString=function(K,W){K=K||10,W=W|0||1;var U;if(K===16||K==="hex"){U="";for(var V=0,H=0,$=0;$<this.length;$++){var G=this.words[$],Y=((G<<V|H)&16777215).toString(16);H=G>>>24-V&16777215,V+=2,V>=26&&(V-=26,$--),H!==0||$!==this.length-1?U=P[6-Y.length]+Y+U:U=Y+U}for(H!==0&&(U=H.toString(16)+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(K===(K|0)&&K>=2&&K<=36){var X=J[K],F=T[K];U="";var N=this.clone();for(N.negative=0;!N.isZero();){var j=N.modn(F).toString(K);N=N.idivn(F),N.isZero()?U=j+U:U=P[X-j.length]+j+U}for(this.isZero()&&(U="0"+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}Z(!1,"Base should be between 2 and 36")},Q.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},Q.prototype.toJSON=function(){return this.toString(16)},Q.prototype.toBuffer=function(K,W){return Z(typeof O<"u"),this.toArrayLike(O,K,W)},Q.prototype.toArray=function(K,W){return this.toArrayLike(Array,K,W)},Q.prototype.toArrayLike=function(K,W,U){var V=this.byteLength(),H=U||Math.max(1,V);Z(V<=H,"byte array longer than desired length"),Z(H>0,"Requested array length <= 0"),this.strip();var $=W==="le",G=new K(H),Y,X,F=this.clone();if($){for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[X]=Y;for(;X<H;X++)G[X]=0}else{for(X=0;X<H-V;X++)G[X]=0;for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[H-X-1]=Y}return G},Math.clz32?Q.prototype._countBits=function(K){return 32-Math.clz32(K)}:Q.prototype._countBits=function(K){var W=K,U=0;return W>=4096&&(U+=13,W>>>=13),W>=64&&(U+=7,W>>>=7),W>=8&&(U+=4,W>>>=4),W>=2&&(U+=2,W>>>=2),U+W},Q.prototype._zeroBits=function(K){if(K===0)return 26;var W=K,U=0;return(W&8191)===0&&(U+=13,W>>>=13),(W&127)===0&&(U+=7,W>>>=7),(W&15)===0&&(U+=4,W>>>=4),(W&3)===0&&(U+=2,W>>>=2),(W&1)===0&&U++,U},Q.prototype.bitLength=function(){var K=this.words[this.length-1],W=this._countBits(K);return(this.length-1)*26+W};function z(K){for(var W=new Array(K.bitLength()),U=0;U<W.length;U++){var V=U/26|0,H=U%26;W[U]=(K.words[V]&1<<H)>>>H}return W}Q.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,W=0;W<this.length;W++){var U=this._zeroBits(this.words[W]);if(K+=U,U!==26)break}return K},Q.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Q.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},Q.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},Q.prototype.isNeg=function(){return this.negative!==0},Q.prototype.neg=function(){return this.clone().ineg()},Q.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},Q.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var W=0;W<K.length;W++)this.words[W]=this.words[W]|K.words[W];return this.strip()},Q.prototype.ior=function(K){return Z((this.negative|K.negative)===0),this.iuor(K)},Q.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},Q.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},Q.prototype.iuand=function(K){var W;this.length>K.length?W=K:W=this;for(var U=0;U<W.length;U++)this.words[U]=this.words[U]&K.words[U];return this.length=W.length,this.strip()},Q.prototype.iand=function(K){return Z((this.negative|K.negative)===0),this.iuand(K)},Q.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},Q.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},Q.prototype.iuxor=function(K){var W,U;this.length>K.length?(W=this,U=K):(W=K,U=this);for(var V=0;V<U.length;V++)this.words[V]=W.words[V]^U.words[V];if(this!==W)for(;V<W.length;V++)this.words[V]=W.words[V];return this.length=W.length,this.strip()},Q.prototype.ixor=function(K){return Z((this.negative|K.negative)===0),this.iuxor(K)},Q.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},Q.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},Q.prototype.inotn=function(K){Z(typeof K=="number"&&K>=0);var W=Math.ceil(K/26)|0,U=K%26;this._expand(W),U>0&&W--;for(var V=0;V<W;V++)this.words[V]=~this.words[V]&67108863;return U>0&&(this.words[V]=~this.words[V]&67108863>>26-U),this.strip()},Q.prototype.notn=function(K){return this.clone().inotn(K)},Q.prototype.setn=function(K,W){Z(typeof K=="number"&&K>=0);var U=K/26|0,V=K%26;return this._expand(U+1),W?this.words[U]=this.words[U]|1<<V:this.words[U]=this.words[U]&~(1<<V),this.strip()},Q.prototype.iadd=function(K){var W;if(this.negative!==0&&K.negative===0)return this.negative=0,W=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,W=this.isub(K),K.negative=1,W._normSign();var U,V;this.length>K.length?(U=this,V=K):(U=K,V=this);for(var H=0,$=0;$<V.length;$++)W=(U.words[$]|0)+(V.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;for(;H!==0&&$<U.length;$++)W=(U.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;if(this.length=U.length,H!==0)this.words[this.length]=H,this.length++;else if(U!==this)for(;$<U.length;$++)this.words[$]=U.words[$];return this},Q.prototype.add=function(K){var W;return K.negative!==0&&this.negative===0?(K.negative=0,W=this.sub(K),K.negative^=1,W):K.negative===0&&this.negative!==0?(this.negative=0,W=K.sub(this),this.negative=1,W):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},Q.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var W=this.iadd(K);return K.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var U=this.cmp(K);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var V,H;U>0?(V=this,H=K):(V=K,H=this);for(var $=0,G=0;G<H.length;G++)W=(V.words[G]|0)-(H.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;for(;$!==0&&G<V.length;G++)W=(V.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;if($===0&&G<V.length&&V!==this)for(;G<V.length;G++)this.words[G]=V.words[G];return this.length=Math.max(this.length,G),V!==this&&(this.negative=1),this.strip()},Q.prototype.sub=function(K){return this.clone().isub(K)};function I(K,W,U){U.negative=W.negative^K.negative;var V=K.length+W.length|0;U.length=V,V=V-1|0;var H=K.words[0]|0,$=W.words[0]|0,G=H*$,Y=G&67108863,X=G/67108864|0;U.words[0]=Y;for(var F=1;F<V;F++){for(var N=X>>>26,j=X&67108863,A=Math.min(F,W.length-1),m=Math.max(0,F-K.length+1);m<=A;m++){var h=F-m|0;H=K.words[h]|0,$=W.words[m]|0,G=H*$+j,N+=G/67108864|0,j=G&67108863}U.words[F]=j|0,X=N|0}return X!==0?U.words[F]=X|0:U.length--,U.strip()}var L=function(K,W,U){var V=K.words,H=W.words,$=U.words,G=0,Y,X,F,N=V[0]|0,j=N&8191,A=N>>>13,m=V[1]|0,h=m&8191,e=m>>>13,T0=V[2]|0,U0=T0&8191,y=T0>>>13,o=V[3]|0,n=o&8191,K0=o>>>13,w0=V[4]|0,l=w0&8191,u=w0>>>13,C0=V[5]|0,H0=C0&8191,F0=C0>>>13,y0=V[6]|0,a=y0&8191,X0=y0>>>13,M0=V[7]|0,W0=M0&8191,G0=M0>>>13,b0=V[8]|0,R=b0&8191,_=b0>>>13,d=V[9]|0,s=d&8191,i=d>>>13,E0=H[0]|0,Y0=E0&8191,J0=E0>>>13,d0=H[1]|0,j0=d0&8191,O0=d0>>>13,c0=H[2]|0,S0=c0&8191,k0=c0>>>13,P5=H[3]|0,A0=P5&8191,R0=P5>>>13,$5=H[4]|0,p0=$5&8191,_0=$5>>>13,G5=H[5]|0,I0=G5&8191,c=G5>>>13,V0=H[6]|0,Q0=V0&8191,P0=V0>>>13,g0=H[7]|0,D0=g0&8191,N0=g0>>>13,f0=H[8]|0,q0=f0&8191,x0=f0>>>13,Z5=H[9]|0,B0=Z5&8191,L0=Z5>>>13;U.negative=K.negative^W.negative,U.length=19,Y=Math.imul(j,Y0),X=Math.imul(j,J0),X=X+Math.imul(A,Y0)|0,F=Math.imul(A,J0);var o0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,Y=Math.imul(h,Y0),X=Math.imul(h,J0),X=X+Math.imul(e,Y0)|0,F=Math.imul(e,J0),Y=Y+Math.imul(j,j0)|0,X=X+Math.imul(j,O0)|0,X=X+Math.imul(A,j0)|0,F=F+Math.imul(A,O0)|0;var m0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,Y=Math.imul(U0,Y0),X=Math.imul(U0,J0),X=X+Math.imul(y,Y0)|0,F=Math.imul(y,J0),Y=Y+Math.imul(h,j0)|0,X=X+Math.imul(h,O0)|0,X=X+Math.imul(e,j0)|0,F=F+Math.imul(e,O0)|0,Y=Y+Math.imul(j,S0)|0,X=X+Math.imul(j,k0)|0,X=X+Math.imul(A,S0)|0,F=F+Math.imul(A,k0)|0;var v0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(v0>>>26)|0,v0&=67108863,Y=Math.imul(n,Y0),X=Math.imul(n,J0),X=X+Math.imul(K0,Y0)|0,F=Math.imul(K0,J0),Y=Y+Math.imul(U0,j0)|0,X=X+Math.imul(U0,O0)|0,X=X+Math.imul(y,j0)|0,F=F+Math.imul(y,O0)|0,Y=Y+Math.imul(h,S0)|0,X=X+Math.imul(h,k0)|0,X=X+Math.imul(e,S0)|0,F=F+Math.imul(e,k0)|0,Y=Y+Math.imul(j,A0)|0,X=X+Math.imul(j,R0)|0,X=X+Math.imul(A,A0)|0,F=F+Math.imul(A,R0)|0;var u0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,Y=Math.imul(l,Y0),X=Math.imul(l,J0),X=X+Math.imul(u,Y0)|0,F=Math.imul(u,J0),Y=Y+Math.imul(n,j0)|0,X=X+Math.imul(n,O0)|0,X=X+Math.imul(K0,j0)|0,F=F+Math.imul(K0,O0)|0,Y=Y+Math.imul(U0,S0)|0,X=X+Math.imul(U0,k0)|0,X=X+Math.imul(y,S0)|0,F=F+Math.imul(y,k0)|0,Y=Y+Math.imul(h,A0)|0,X=X+Math.imul(h,R0)|0,X=X+Math.imul(e,A0)|0,F=F+Math.imul(e,R0)|0,Y=Y+Math.imul(j,p0)|0,X=X+Math.imul(j,_0)|0,X=X+Math.imul(A,p0)|0,F=F+Math.imul(A,_0)|0;var s0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,Y=Math.imul(H0,Y0),X=Math.imul(H0,J0),X=X+Math.imul(F0,Y0)|0,F=Math.imul(F0,J0),Y=Y+Math.imul(l,j0)|0,X=X+Math.imul(l,O0)|0,X=X+Math.imul(u,j0)|0,F=F+Math.imul(u,O0)|0,Y=Y+Math.imul(n,S0)|0,X=X+Math.imul(n,k0)|0,X=X+Math.imul(K0,S0)|0,F=F+Math.imul(K0,k0)|0,Y=Y+Math.imul(U0,A0)|0,X=X+Math.imul(U0,R0)|0,X=X+Math.imul(y,A0)|0,F=F+Math.imul(y,R0)|0,Y=Y+Math.imul(h,p0)|0,X=X+Math.imul(h,_0)|0,X=X+Math.imul(e,p0)|0,F=F+Math.imul(e,_0)|0,Y=Y+Math.imul(j,I0)|0,X=X+Math.imul(j,c)|0,X=X+Math.imul(A,I0)|0,F=F+Math.imul(A,c)|0;var a0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,Y=Math.imul(a,Y0),X=Math.imul(a,J0),X=X+Math.imul(X0,Y0)|0,F=Math.imul(X0,J0),Y=Y+Math.imul(H0,j0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(F0,j0)|0,F=F+Math.imul(F0,O0)|0,Y=Y+Math.imul(l,S0)|0,X=X+Math.imul(l,k0)|0,X=X+Math.imul(u,S0)|0,F=F+Math.imul(u,k0)|0,Y=Y+Math.imul(n,A0)|0,X=X+Math.imul(n,R0)|0,X=X+Math.imul(K0,A0)|0,F=F+Math.imul(K0,R0)|0,Y=Y+Math.imul(U0,p0)|0,X=X+Math.imul(U0,_0)|0,X=X+Math.imul(y,p0)|0,F=F+Math.imul(y,_0)|0,Y=Y+Math.imul(h,I0)|0,X=X+Math.imul(h,c)|0,X=X+Math.imul(e,I0)|0,F=F+Math.imul(e,c)|0,Y=Y+Math.imul(j,Q0)|0,X=X+Math.imul(j,P0)|0,X=X+Math.imul(A,Q0)|0,F=F+Math.imul(A,P0)|0;var n0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,Y=Math.imul(W0,Y0),X=Math.imul(W0,J0),X=X+Math.imul(G0,Y0)|0,F=Math.imul(G0,J0),Y=Y+Math.imul(a,j0)|0,X=X+Math.imul(a,O0)|0,X=X+Math.imul(X0,j0)|0,F=F+Math.imul(X0,O0)|0,Y=Y+Math.imul(H0,S0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(F0,S0)|0,F=F+Math.imul(F0,k0)|0,Y=Y+Math.imul(l,A0)|0,X=X+Math.imul(l,R0)|0,X=X+Math.imul(u,A0)|0,F=F+Math.imul(u,R0)|0,Y=Y+Math.imul(n,p0)|0,X=X+Math.imul(n,_0)|0,X=X+Math.imul(K0,p0)|0,F=F+Math.imul(K0,_0)|0,Y=Y+Math.imul(U0,I0)|0,X=X+Math.imul(U0,c)|0,X=X+Math.imul(y,I0)|0,F=F+Math.imul(y,c)|0,Y=Y+Math.imul(h,Q0)|0,X=X+Math.imul(h,P0)|0,X=X+Math.imul(e,Q0)|0,F=F+Math.imul(e,P0)|0,Y=Y+Math.imul(j,D0)|0,X=X+Math.imul(j,N0)|0,X=X+Math.imul(A,D0)|0,F=F+Math.imul(A,N0)|0;var i0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,Y=Math.imul(R,Y0),X=Math.imul(R,J0),X=X+Math.imul(_,Y0)|0,F=Math.imul(_,J0),Y=Y+Math.imul(W0,j0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(G0,j0)|0,F=F+Math.imul(G0,O0)|0,Y=Y+Math.imul(a,S0)|0,X=X+Math.imul(a,k0)|0,X=X+Math.imul(X0,S0)|0,F=F+Math.imul(X0,k0)|0,Y=Y+Math.imul(H0,A0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(F0,A0)|0,F=F+Math.imul(F0,R0)|0,Y=Y+Math.imul(l,p0)|0,X=X+Math.imul(l,_0)|0,X=X+Math.imul(u,p0)|0,F=F+Math.imul(u,_0)|0,Y=Y+Math.imul(n,I0)|0,X=X+Math.imul(n,c)|0,X=X+Math.imul(K0,I0)|0,F=F+Math.imul(K0,c)|0,Y=Y+Math.imul(U0,Q0)|0,X=X+Math.imul(U0,P0)|0,X=X+Math.imul(y,Q0)|0,F=F+Math.imul(y,P0)|0,Y=Y+Math.imul(h,D0)|0,X=X+Math.imul(h,N0)|0,X=X+Math.imul(e,D0)|0,F=F+Math.imul(e,N0)|0,Y=Y+Math.imul(j,q0)|0,X=X+Math.imul(j,x0)|0,X=X+Math.imul(A,q0)|0,F=F+Math.imul(A,x0)|0;var r0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,Y=Math.imul(s,Y0),X=Math.imul(s,J0),X=X+Math.imul(i,Y0)|0,F=Math.imul(i,J0),Y=Y+Math.imul(R,j0)|0,X=X+Math.imul(R,O0)|0,X=X+Math.imul(_,j0)|0,F=F+Math.imul(_,O0)|0,Y=Y+Math.imul(W0,S0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(G0,S0)|0,F=F+Math.imul(G0,k0)|0,Y=Y+Math.imul(a,A0)|0,X=X+Math.imul(a,R0)|0,X=X+Math.imul(X0,A0)|0,F=F+Math.imul(X0,R0)|0,Y=Y+Math.imul(H0,p0)|0,X=X+Math.imul(H0,_0)|0,X=X+Math.imul(F0,p0)|0,F=F+Math.imul(F0,_0)|0,Y=Y+Math.imul(l,I0)|0,X=X+Math.imul(l,c)|0,X=X+Math.imul(u,I0)|0,F=F+Math.imul(u,c)|0,Y=Y+Math.imul(n,Q0)|0,X=X+Math.imul(n,P0)|0,X=X+Math.imul(K0,Q0)|0,F=F+Math.imul(K0,P0)|0,Y=Y+Math.imul(U0,D0)|0,X=X+Math.imul(U0,N0)|0,X=X+Math.imul(y,D0)|0,F=F+Math.imul(y,N0)|0,Y=Y+Math.imul(h,q0)|0,X=X+Math.imul(h,x0)|0,X=X+Math.imul(e,q0)|0,F=F+Math.imul(e,x0)|0,Y=Y+Math.imul(j,B0)|0,X=X+Math.imul(j,L0)|0,X=X+Math.imul(A,B0)|0,F=F+Math.imul(A,L0)|0;var t0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,Y=Math.imul(s,j0),X=Math.imul(s,O0),X=X+Math.imul(i,j0)|0,F=Math.imul(i,O0),Y=Y+Math.imul(R,S0)|0,X=X+Math.imul(R,k0)|0,X=X+Math.imul(_,S0)|0,F=F+Math.imul(_,k0)|0,Y=Y+Math.imul(W0,A0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(G0,A0)|0,F=F+Math.imul(G0,R0)|0,Y=Y+Math.imul(a,p0)|0,X=X+Math.imul(a,_0)|0,X=X+Math.imul(X0,p0)|0,F=F+Math.imul(X0,_0)|0,Y=Y+Math.imul(H0,I0)|0,X=X+Math.imul(H0,c)|0,X=X+Math.imul(F0,I0)|0,F=F+Math.imul(F0,c)|0,Y=Y+Math.imul(l,Q0)|0,X=X+Math.imul(l,P0)|0,X=X+Math.imul(u,Q0)|0,F=F+Math.imul(u,P0)|0,Y=Y+Math.imul(n,D0)|0,X=X+Math.imul(n,N0)|0,X=X+Math.imul(K0,D0)|0,F=F+Math.imul(K0,N0)|0,Y=Y+Math.imul(U0,q0)|0,X=X+Math.imul(U0,x0)|0,X=X+Math.imul(y,q0)|0,F=F+Math.imul(y,x0)|0,Y=Y+Math.imul(h,B0)|0,X=X+Math.imul(h,L0)|0,X=X+Math.imul(e,B0)|0,F=F+Math.imul(e,L0)|0;var e0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,Y=Math.imul(s,S0),X=Math.imul(s,k0),X=X+Math.imul(i,S0)|0,F=Math.imul(i,k0),Y=Y+Math.imul(R,A0)|0,X=X+Math.imul(R,R0)|0,X=X+Math.imul(_,A0)|0,F=F+Math.imul(_,R0)|0,Y=Y+Math.imul(W0,p0)|0,X=X+Math.imul(W0,_0)|0,X=X+Math.imul(G0,p0)|0,F=F+Math.imul(G0,_0)|0,Y=Y+Math.imul(a,I0)|0,X=X+Math.imul(a,c)|0,X=X+Math.imul(X0,I0)|0,F=F+Math.imul(X0,c)|0,Y=Y+Math.imul(H0,Q0)|0,X=X+Math.imul(H0,P0)|0,X=X+Math.imul(F0,Q0)|0,F=F+Math.imul(F0,P0)|0,Y=Y+Math.imul(l,D0)|0,X=X+Math.imul(l,N0)|0,X=X+Math.imul(u,D0)|0,F=F+Math.imul(u,N0)|0,Y=Y+Math.imul(n,q0)|0,X=X+Math.imul(n,x0)|0,X=X+Math.imul(K0,q0)|0,F=F+Math.imul(K0,x0)|0,Y=Y+Math.imul(U0,B0)|0,X=X+Math.imul(U0,L0)|0,X=X+Math.imul(y,B0)|0,F=F+Math.imul(y,L0)|0;var K5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,Y=Math.imul(s,A0),X=Math.imul(s,R0),X=X+Math.imul(i,A0)|0,F=Math.imul(i,R0),Y=Y+Math.imul(R,p0)|0,X=X+Math.imul(R,_0)|0,X=X+Math.imul(_,p0)|0,F=F+Math.imul(_,_0)|0,Y=Y+Math.imul(W0,I0)|0,X=X+Math.imul(W0,c)|0,X=X+Math.imul(G0,I0)|0,F=F+Math.imul(G0,c)|0,Y=Y+Math.imul(a,Q0)|0,X=X+Math.imul(a,P0)|0,X=X+Math.imul(X0,Q0)|0,F=F+Math.imul(X0,P0)|0,Y=Y+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(F0,D0)|0,F=F+Math.imul(F0,N0)|0,Y=Y+Math.imul(l,q0)|0,X=X+Math.imul(l,x0)|0,X=X+Math.imul(u,q0)|0,F=F+Math.imul(u,x0)|0,Y=Y+Math.imul(n,B0)|0,X=X+Math.imul(n,L0)|0,X=X+Math.imul(K0,B0)|0,F=F+Math.imul(K0,L0)|0;var X5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,Y=Math.imul(s,p0),X=Math.imul(s,_0),X=X+Math.imul(i,p0)|0,F=Math.imul(i,_0),Y=Y+Math.imul(R,I0)|0,X=X+Math.imul(R,c)|0,X=X+Math.imul(_,I0)|0,F=F+Math.imul(_,c)|0,Y=Y+Math.imul(W0,Q0)|0,X=X+Math.imul(W0,P0)|0,X=X+Math.imul(G0,Q0)|0,F=F+Math.imul(G0,P0)|0,Y=Y+Math.imul(a,D0)|0,X=X+Math.imul(a,N0)|0,X=X+Math.imul(X0,D0)|0,F=F+Math.imul(X0,N0)|0,Y=Y+Math.imul(H0,q0)|0,X=X+Math.imul(H0,x0)|0,X=X+Math.imul(F0,q0)|0,F=F+Math.imul(F0,x0)|0,Y=Y+Math.imul(l,B0)|0,X=X+Math.imul(l,L0)|0,X=X+Math.imul(u,B0)|0,F=F+Math.imul(u,L0)|0;var W5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(W5>>>26)|0,W5&=67108863,Y=Math.imul(s,I0),X=Math.imul(s,c),X=X+Math.imul(i,I0)|0,F=Math.imul(i,c),Y=Y+Math.imul(R,Q0)|0,X=X+Math.imul(R,P0)|0,X=X+Math.imul(_,Q0)|0,F=F+Math.imul(_,P0)|0,Y=Y+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(G0,D0)|0,F=F+Math.imul(G0,N0)|0,Y=Y+Math.imul(a,q0)|0,X=X+Math.imul(a,x0)|0,X=X+Math.imul(X0,q0)|0,F=F+Math.imul(X0,x0)|0,Y=Y+Math.imul(H0,B0)|0,X=X+Math.imul(H0,L0)|0,X=X+Math.imul(F0,B0)|0,F=F+Math.imul(F0,L0)|0;var V5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(V5>>>26)|0,V5&=67108863,Y=Math.imul(s,Q0),X=Math.imul(s,P0),X=X+Math.imul(i,Q0)|0,F=Math.imul(i,P0),Y=Y+Math.imul(R,D0)|0,X=X+Math.imul(R,N0)|0,X=X+Math.imul(_,D0)|0,F=F+Math.imul(_,N0)|0,Y=Y+Math.imul(W0,q0)|0,X=X+Math.imul(W0,x0)|0,X=X+Math.imul(G0,q0)|0,F=F+Math.imul(G0,x0)|0,Y=Y+Math.imul(a,B0)|0,X=X+Math.imul(a,L0)|0,X=X+Math.imul(X0,B0)|0,F=F+Math.imul(X0,L0)|0;var U5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(U5>>>26)|0,U5&=67108863,Y=Math.imul(s,D0),X=Math.imul(s,N0),X=X+Math.imul(i,D0)|0,F=Math.imul(i,N0),Y=Y+Math.imul(R,q0)|0,X=X+Math.imul(R,x0)|0,X=X+Math.imul(_,q0)|0,F=F+Math.imul(_,x0)|0,Y=Y+Math.imul(W0,B0)|0,X=X+Math.imul(W0,L0)|0,X=X+Math.imul(G0,B0)|0,F=F+Math.imul(G0,L0)|0;var H5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(H5>>>26)|0,H5&=67108863,Y=Math.imul(s,q0),X=Math.imul(s,x0),X=X+Math.imul(i,q0)|0,F=Math.imul(i,x0),Y=Y+Math.imul(R,B0)|0,X=X+Math.imul(R,L0)|0,X=X+Math.imul(_,B0)|0,F=F+Math.imul(_,L0)|0;var Y5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Y=Math.imul(s,B0),X=Math.imul(s,L0),X=X+Math.imul(i,B0)|0,F=Math.imul(i,L0);var F5=(G+Y|0)+((X&8191)<<13)|0;return G=(F+(X>>>13)|0)+(F5>>>26)|0,F5&=67108863,$[0]=o0,$[1]=m0,$[2]=v0,$[3]=u0,$[4]=s0,$[5]=a0,$[6]=n0,$[7]=i0,$[8]=r0,$[9]=t0,$[10]=e0,$[11]=K5,$[12]=X5,$[13]=W5,$[14]=V5,$[15]=U5,$[16]=H5,$[17]=Y5,$[18]=F5,G!==0&&($[19]=G,U.length++),U};Math.imul||(L=I);function p(K,W,U){U.negative=W.negative^K.negative,U.length=K.length+W.length;for(var V=0,H=0,$=0;$<U.length-1;$++){var G=H;H=0;for(var Y=V&67108863,X=Math.min($,W.length-1),F=Math.max(0,$-K.length+1);F<=X;F++){var N=$-F,j=K.words[N]|0,A=W.words[F]|0,m=j*A,h=m&67108863;G=G+(m/67108864|0)|0,h=h+Y|0,Y=h&67108863,G=G+(h>>>26)|0,H+=G>>>26,G&=67108863}U.words[$]=Y,V=G,G=H}return V!==0?U.words[$]=V:U.length--,U.strip()}function E(K,W,U){var V=new x;return V.mulp(K,W,U)}Q.prototype.mulTo=function(K,W){var U,V=this.length+K.length;return this.length===10&&K.length===10?U=L(this,K,W):V<63?U=I(this,K,W):V<1024?U=p(this,K,W):U=E(this,K,W),U};function x(K,W){this.x=K,this.y=W}x.prototype.makeRBT=function(K){for(var W=new Array(K),U=Q.prototype._countBits(K)-1,V=0;V<K;V++)W[V]=this.revBin(V,U,K);return W},x.prototype.revBin=function(K,W,U){if(K===0||K===U-1)return K;for(var V=0,H=0;H<W;H++)V|=(K&1)<<W-H-1,K>>=1;return V},x.prototype.permute=function(K,W,U,V,H,$){for(var G=0;G<$;G++)V[G]=W[K[G]],H[G]=U[K[G]]},x.prototype.transform=function(K,W,U,V,H,$){this.permute($,K,W,U,V,H);for(var G=1;G<H;G<<=1)for(var Y=G<<1,X=Math.cos(2*Math.PI/Y),F=Math.sin(2*Math.PI/Y),N=0;N<H;N+=Y)for(var j=X,A=F,m=0;m<G;m++){var h=U[N+m],e=V[N+m],T0=U[N+m+G],U0=V[N+m+G],y=j*T0-A*U0;U0=j*U0+A*T0,T0=y,U[N+m]=h+T0,V[N+m]=e+U0,U[N+m+G]=h-T0,V[N+m+G]=e-U0,m!==Y&&(y=X*j-F*A,A=X*A+F*j,j=y)}},x.prototype.guessLen13b=function(K,W){var U=Math.max(W,K)|1,V=U&1,H=0;for(U=U/2|0;U;U=U>>>1)H++;return 1<<H+1+V},x.prototype.conjugate=function(K,W,U){if(!(U<=1))for(var V=0;V<U/2;V++){var H=K[V];K[V]=K[U-V-1],K[U-V-1]=H,H=W[V],W[V]=-W[U-V-1],W[U-V-1]=-H}},x.prototype.normalize13b=function(K,W){for(var U=0,V=0;V<W/2;V++){var H=Math.round(K[2*V+1]/W)*8192+Math.round(K[2*V]/W)+U;K[V]=H&67108863,H<67108864?U=0:U=H/67108864|0}return K},x.prototype.convert13b=function(K,W,U,V){for(var H=0,$=0;$<W;$++)H=H+(K[$]|0),U[2*$]=H&8191,H=H>>>13,U[2*$+1]=H&8191,H=H>>>13;for($=2*W;$<V;++$)U[$]=0;Z(H===0),Z((H&-8192)===0)},x.prototype.stub=function(K){for(var W=new Array(K),U=0;U<K;U++)W[U]=0;return W},x.prototype.mulp=function(K,W,U){var V=2*this.guessLen13b(K.length,W.length),H=this.makeRBT(V),$=this.stub(V),G=new Array(V),Y=new Array(V),X=new Array(V),F=new Array(V),N=new Array(V),j=new Array(V),A=U.words;A.length=V,this.convert13b(K.words,K.length,G,V),this.convert13b(W.words,W.length,F,V),this.transform(G,$,Y,X,V,H),this.transform(F,$,N,j,V,H);for(var m=0;m<V;m++){var h=Y[m]*N[m]-X[m]*j[m];X[m]=Y[m]*j[m]+X[m]*N[m],Y[m]=h}return this.conjugate(Y,X,V),this.transform(Y,X,A,$,V,H),this.conjugate(A,$,V),this.normalize13b(A,V),U.negative=K.negative^W.negative,U.length=K.length+W.length,U.strip()},Q.prototype.mul=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),this.mulTo(K,W)},Q.prototype.mulf=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),E(this,K,W)},Q.prototype.imul=function(K){return this.clone().mulTo(K,this)},Q.prototype.imuln=function(K){Z(typeof K=="number"),Z(K<67108864);for(var W=0,U=0;U<this.length;U++){var V=(this.words[U]|0)*K,H=(V&67108863)+(W&67108863);W>>=26,W+=V/67108864|0,W+=H>>>26,this.words[U]=H&67108863}return W!==0&&(this.words[U]=W,this.length++),this},Q.prototype.muln=function(K){return this.clone().imuln(K)},Q.prototype.sqr=function(){return this.mul(this)},Q.prototype.isqr=function(){return this.imul(this.clone())},Q.prototype.pow=function(K){var W=z(K);if(W.length===0)return new Q(1);for(var U=this,V=0;V<W.length&&W[V]===0;V++,U=U.sqr());if(++V<W.length)for(var H=U.sqr();V<W.length;V++,H=H.sqr())W[V]!==0&&(U=U.mul(H));return U},Q.prototype.iushln=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=67108863>>>26-W<<26-W,H;if(W!==0){var $=0;for(H=0;H<this.length;H++){var G=this.words[H]&V,Y=(this.words[H]|0)-G<<W;this.words[H]=Y|$,$=G>>>26-W}$&&(this.words[H]=$,this.length++)}if(U!==0){for(H=this.length-1;H>=0;H--)this.words[H+U]=this.words[H];for(H=0;H<U;H++)this.words[H]=0;this.length+=U}return this.strip()},Q.prototype.ishln=function(K){return Z(this.negative===0),this.iushln(K)},Q.prototype.iushrn=function(K,W,U){Z(typeof K=="number"&&K>=0);var V;W?V=(W-W%26)/26:V=0;var H=K%26,$=Math.min((K-H)/26,this.length),G=67108863^67108863>>>H<<H,Y=U;if(V-=$,V=Math.max(0,V),Y){for(var X=0;X<$;X++)Y.words[X]=this.words[X];Y.length=$}if($!==0)if(this.length>$)for(this.length-=$,X=0;X<this.length;X++)this.words[X]=this.words[X+$];else this.words[0]=0,this.length=1;var F=0;for(X=this.length-1;X>=0&&(F!==0||X>=V);X--){var N=this.words[X]|0;this.words[X]=F<<26-H|N>>>H,F=N&G}return Y&&F!==0&&(Y.words[Y.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},Q.prototype.ishrn=function(K,W,U){return Z(this.negative===0),this.iushrn(K,W,U)},Q.prototype.shln=function(K){return this.clone().ishln(K)},Q.prototype.ushln=function(K){return this.clone().iushln(K)},Q.prototype.shrn=function(K){return this.clone().ishrn(K)},Q.prototype.ushrn=function(K){return this.clone().iushrn(K)},Q.prototype.testn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return!1;var H=this.words[U];return!!(H&V)},Q.prototype.imaskn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(W!==0&&U++,this.length=Math.min(U,this.length),W!==0){var V=67108863^67108863>>>W<<W;this.words[this.length-1]&=V}return this.strip()},Q.prototype.maskn=function(K){return this.clone().imaskn(K)},Q.prototype.iaddn=function(K){return Z(typeof K=="number"),Z(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},Q.prototype._iaddn=function(K){this.words[0]+=K;for(var W=0;W<this.length&&this.words[W]>=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},Q.prototype.isubn=function(K){if(Z(typeof K=="number"),Z(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W<this.length&&this.words[W]<0;W++)this.words[W]+=67108864,this.words[W+1]-=1;return this.strip()},Q.prototype.addn=function(K){return this.clone().iaddn(K)},Q.prototype.subn=function(K){return this.clone().isubn(K)},Q.prototype.iabs=function(){return this.negative=0,this},Q.prototype.abs=function(){return this.clone().iabs()},Q.prototype._ishlnsubmul=function(K,W,U){var V=K.length+U,H;this._expand(V);var $,G=0;for(H=0;H<K.length;H++){$=(this.words[H+U]|0)+G;var Y=(K.words[H]|0)*W;$-=Y&67108863,G=($>>26)-(Y/67108864|0),this.words[H+U]=$&67108863}for(;H<this.length-U;H++)$=(this.words[H+U]|0)+G,G=$>>26,this.words[H+U]=$&67108863;if(G===0)return this.strip();for(Z(G===-1),G=0,H=0;H<this.length;H++)$=-(this.words[H]|0)+G,G=$>>26,this.words[H]=$&67108863;return this.negative=1,this.strip()},Q.prototype._wordDiv=function(K,W){var U=this.length-K.length,V=this.clone(),H=K,$=H.words[H.length-1]|0,G=this._countBits($);U=26-G,U!==0&&(H=H.ushln(U),V.iushln(U),$=H.words[H.length-1]|0);var Y=V.length-H.length,X;if(W!=="mod"){X=new Q(null),X.length=Y+1,X.words=new Array(X.length);for(var F=0;F<X.length;F++)X.words[F]=0}var N=V.clone()._ishlnsubmul(H,1,Y);N.negative===0&&(V=N,X&&(X.words[Y]=1));for(var j=Y-1;j>=0;j--){var A=(V.words[H.length+j]|0)*67108864+(V.words[H.length+j-1]|0);for(A=Math.min(A/$|0,67108863),V._ishlnsubmul(H,A,j);V.negative!==0;)A--,V.negative=0,V._ishlnsubmul(H,1,j),V.isZero()||(V.negative^=1);X&&(X.words[j]=A)}return X&&X.strip(),V.strip(),W!=="div"&&U!==0&&V.iushrn(U),{div:X||null,mod:V}},Q.prototype.divmod=function(K,W,U){if(Z(!K.isZero()),this.isZero())return{div:new Q(0),mod:new Q(0)};var V,H,$;return this.negative!==0&&K.negative===0?($=this.neg().divmod(K,W),W!=="mod"&&(V=$.div.neg()),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.iadd(K)),{div:V,mod:H}):this.negative===0&&K.negative!==0?($=this.divmod(K.neg(),W),W!=="mod"&&(V=$.div.neg()),{div:V,mod:$.mod}):(this.negative&K.negative)!==0?($=this.neg().divmod(K.neg(),W),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.isub(K)),{div:$.div,mod:H}):K.length>this.length||this.cmp(K)<0?{div:new Q(0),mod:this}:K.length===1?W==="div"?{div:this.divn(K.words[0]),mod:null}:W==="mod"?{div:null,mod:new Q(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new Q(this.modn(K.words[0]))}:this._wordDiv(K,W)},Q.prototype.div=function(K){return this.divmod(K,"div",!1).div},Q.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},Q.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},Q.prototype.divRound=function(K){var W=this.divmod(K);if(W.mod.isZero())return W.div;var U=W.div.negative!==0?W.mod.isub(K):W.mod,V=K.ushrn(1),H=K.andln(1),$=U.cmp(V);return $<0||H===1&&$===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},Q.prototype.modn=function(K){Z(K<=67108863);for(var W=67108864%K,U=0,V=this.length-1;V>=0;V--)U=(W*U+(this.words[V]|0))%K;return U},Q.prototype.idivn=function(K){Z(K<=67108863);for(var W=0,U=this.length-1;U>=0;U--){var V=(this.words[U]|0)+W*67108864;this.words[U]=V/K|0,W=V%K}return this.strip()},Q.prototype.divn=function(K){return this.clone().idivn(K)},Q.prototype.egcd=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=new Q(0),G=new Q(1),Y=0;W.isEven()&&U.isEven();)W.iushrn(1),U.iushrn(1),++Y;for(var X=U.clone(),F=W.clone();!W.isZero();){for(var N=0,j=1;(W.words[0]&j)===0&&N<26;++N,j<<=1);if(N>0)for(W.iushrn(N);N-- >0;)(V.isOdd()||H.isOdd())&&(V.iadd(X),H.isub(F)),V.iushrn(1),H.iushrn(1);for(var A=0,m=1;(U.words[0]&m)===0&&A<26;++A,m<<=1);if(A>0)for(U.iushrn(A);A-- >0;)($.isOdd()||G.isOdd())&&($.iadd(X),G.isub(F)),$.iushrn(1),G.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub($),H.isub(G)):(U.isub(W),$.isub(V),G.isub(H))}return{a:$,b:G,gcd:U.iushln(Y)}},Q.prototype._invmp=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=U.clone();W.cmpn(1)>0&&U.cmpn(1)>0;){for(var G=0,Y=1;(W.words[0]&Y)===0&&G<26;++G,Y<<=1);if(G>0)for(W.iushrn(G);G-- >0;)V.isOdd()&&V.iadd($),V.iushrn(1);for(var X=0,F=1;(U.words[0]&F)===0&&X<26;++X,F<<=1);if(X>0)for(U.iushrn(X);X-- >0;)H.isOdd()&&H.iadd($),H.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub(H)):(U.isub(W),H.isub(V))}var N;return W.cmpn(1)===0?N=V:N=H,N.cmpn(0)<0&&N.iadd(K),N},Q.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var W=this.clone(),U=K.clone();W.negative=0,U.negative=0;for(var V=0;W.isEven()&&U.isEven();V++)W.iushrn(1),U.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;U.isEven();)U.iushrn(1);var H=W.cmp(U);if(H<0){var $=W;W=U,U=$}else if(H===0||U.cmpn(1)===0)break;W.isub(U)}while(!0);return U.iushln(V)},Q.prototype.invm=function(K){return this.egcd(K).a.umod(K)},Q.prototype.isEven=function(){return(this.words[0]&1)===0},Q.prototype.isOdd=function(){return(this.words[0]&1)===1},Q.prototype.andln=function(K){return this.words[0]&K},Q.prototype.bincn=function(K){Z(typeof K=="number");var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return this._expand(U+1),this.words[U]|=V,this;for(var H=V,$=U;H!==0&&$<this.length;$++){var G=this.words[$]|0;G+=H,H=G>>>26,G&=67108863,this.words[$]=G}return H!==0&&(this.words[$]=H,this.length++),this},Q.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Q.prototype.cmpn=function(K){var W=K<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var U;if(this.length>1)U=1;else{W&&(K=-K),Z(K<=67108863,"Number is too big");var V=this.words[0]|0;U=V===K?0:V<K?-1:1}return this.negative!==0?-U|0:U},Q.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var W=this.ucmp(K);return this.negative!==0?-W|0:W},Q.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var W=0,U=this.length-1;U>=0;U--){var V=this.words[U]|0,H=K.words[U]|0;if(V!==H){V<H?W=-1:V>H&&(W=1);break}}return W},Q.prototype.gtn=function(K){return this.cmpn(K)===1},Q.prototype.gt=function(K){return this.cmp(K)===1},Q.prototype.gten=function(K){return this.cmpn(K)>=0},Q.prototype.gte=function(K){return this.cmp(K)>=0},Q.prototype.ltn=function(K){return this.cmpn(K)===-1},Q.prototype.lt=function(K){return this.cmp(K)===-1},Q.prototype.lten=function(K){return this.cmpn(K)<=0},Q.prototype.lte=function(K){return this.cmp(K)<=0},Q.prototype.eqn=function(K){return this.cmpn(K)===0},Q.prototype.eq=function(K){return this.cmp(K)===0},Q.red=function(K){return new f(K)},Q.prototype.toRed=function(K){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},Q.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Q.prototype._forceRed=function(K){return this.red=K,this},Q.prototype.forceRed=function(K){return Z(!this.red,"Already a number in reduction context"),this._forceRed(K)},Q.prototype.redAdd=function(K){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},Q.prototype.redIAdd=function(K){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},Q.prototype.redSub=function(K){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},Q.prototype.redISub=function(K){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},Q.prototype.redShl=function(K){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},Q.prototype.redMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},Q.prototype.redIMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},Q.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Q.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Q.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Q.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Q.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Q.prototype.redPow=function(K){return Z(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var b={k256:null,p224:null,p192:null,p25519:null};function w(K,W){this.name=K,this.p=new Q(W,16),this.n=this.p.bitLength(),this.k=new Q(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}w.prototype._tmp=function(){var K=new Q(null);return K.words=new Array(Math.ceil(this.n/13)),K},w.prototype.ireduce=function(K){var W=K,U;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),U=W.bitLength();while(U>this.n);var V=U<this.n?-1:W.ucmp(this.p);return V===0?(W.words[0]=0,W.length=1):V>0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},w.prototype.split=function(K,W){K.iushrn(this.n,0,W)},w.prototype.imulK=function(K){return K.imul(this.k)};function g(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(g,w),g.prototype.split=function(K,W){for(var U=4194303,V=Math.min(K.length,9),H=0;H<V;H++)W.words[H]=K.words[H];if(W.length=V,K.length<=9){K.words[0]=0,K.length=1;return}var $=K.words[9];for(W.words[W.length++]=$&U,H=10;H<K.length;H++){var G=K.words[H]|0;K.words[H-10]=(G&U)<<4|$>>>22,$=G}$>>>=22,K.words[H-10]=$,$===0&&K.length>10?K.length-=10:K.length-=9},g.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var W=0,U=0;U<K.length;U++){var V=K.words[U]|0;W+=V*977,K.words[U]=W&67108863,W=V*64+(W/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function r(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(r,w);function t(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(t,w);function $0(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q($0,w),$0.prototype.imulK=function(K){for(var W=0,U=0;U<K.length;U++){var V=(K.words[U]|0)*19+W,H=V&67108863;V>>>=26,K.words[U]=H,W=V}return W!==0&&(K.words[K.length++]=W),K},Q._prime=function(K){if(b[K])return b[K];var W;if(K==="k256")W=new g;else if(K==="p224")W=new r;else if(K==="p192")W=new t;else if(K==="p25519")W=new $0;else throw new Error("Unknown prime "+K);return b[K]=W,W};function f(K){if(typeof K=="string"){var W=Q._prime(K);this.m=W.p,this.prime=W}else Z(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){Z(K.negative===0,"red works only with positives"),Z(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,W){Z((K.negative|W.negative)===0,"red works only with positives"),Z(K.red&&K.red===W.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,W){this._verify2(K,W);var U=K.add(W);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},f.prototype.iadd=function(K,W){this._verify2(K,W);var U=K.iadd(W);return U.cmp(this.m)>=0&&U.isub(this.m),U},f.prototype.sub=function(K,W){this._verify2(K,W);var U=K.sub(W);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},f.prototype.isub=function(K,W){this._verify2(K,W);var U=K.isub(W);return U.cmpn(0)<0&&U.iadd(this.m),U},f.prototype.shl=function(K,W){return this._verify1(K),this.imod(K.ushln(W))},f.prototype.imul=function(K,W){return this._verify2(K,W),this.imod(K.imul(W))},f.prototype.mul=function(K,W){return this._verify2(K,W),this.imod(K.mul(W))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var W=this.m.andln(3);if(Z(W%2===1),W===3){var U=this.m.add(new Q(1)).iushrn(2);return this.pow(K,U)}for(var V=this.m.subn(1),H=0;!V.isZero()&&V.andln(1)===0;)H++,V.iushrn(1);Z(!V.isZero());var $=new Q(1).toRed(this),G=$.redNeg(),Y=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new Q(2*X*X).toRed(this);this.pow(X,Y).cmp(G)!==0;)X.redIAdd(G);for(var F=this.pow(X,V),N=this.pow(K,V.addn(1).iushrn(1)),j=this.pow(K,V),A=H;j.cmp($)!==0;){for(var m=j,h=0;m.cmp($)!==0;h++)m=m.redSqr();Z(h<A);var e=this.pow(F,new Q(1).iushln(A-h-1));N=N.redMul(e),F=e.redSqr(),j=j.redMul(F),A=h}return N},f.prototype.invm=function(K){var W=K._invmp(this.m);return W.negative!==0?(W.negative=0,this.imod(W).redNeg()):this.imod(W)},f.prototype.pow=function(K,W){if(W.isZero())return new Q(1).toRed(this);if(W.cmpn(1)===0)return K.clone();var U=4,V=new Array(1<<U);V[0]=new Q(1).toRed(this),V[1]=K;for(var H=2;H<V.length;H++)V[H]=this.mul(V[H-1],K);var $=V[0],G=0,Y=0,X=W.bitLength()%26;for(X===0&&(X=26),H=W.length-1;H>=0;H--){for(var F=W.words[H],N=X-1;N>=0;N--){var j=F>>N&1;if($!==V[0]&&($=this.sqr($)),j===0&&G===0){Y=0;continue}G<<=1,G|=j,Y++,!(Y!==U&&(H!==0||N!==0))&&($=this.mul($,V[G]),Y=0,G=0)}X=26}return $},f.prototype.convertTo=function(K){var W=K.umod(this.m);return W===K?W.clone():W},f.prototype.convertFrom=function(K){var W=K.clone();return W.red=null,W},Q.mont=function(K){return new Z0(K)};function Z0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new Q(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q(Z0,f),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var W=this.imod(K.mul(this.rinv));return W.red=null,W},Z0.prototype.imul=function(K,W){if(K.isZero()||W.isZero())return K.words[0]=0,K.length=1,K;var U=K.imul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.mul=function(K,W){if(K.isZero()||W.isZero())return new Q(0)._forceRed(this);var U=K.mul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.invm=function(K){var W=this.imod(K._invmp(this.m).mul(this.r2));return W._forceRed(this)}})(typeof M>"u"||M,v)}),T4=z0((v)=>{var M=v;function B(q,Q){if(Array.isArray(q))return q.slice();if(!q)return[];var O=[];if(typeof q!="string"){for(var k=0;k<q.length;k++)O[k]=q[k]|0;return O}if(Q==="hex"){q=q.replace(/[^a-z0-9]+/ig,""),q.length%2!==0&&(q="0"+q);for(var k=0;k<q.length;k+=2)O.push(parseInt(q[k]+q[k+1],16))}else for(var k=0;k<q.length;k++){var C=q.charCodeAt(k),D=C>>8,P=C&255;D?O.push(D,P):O.push(P)}return O}M.toArray=B;function S(q){return q.length===1?"0"+q:q}M.zero2=S;function Z(q){for(var Q="",O=0;O<q.length;O++)Q+=S(q[O].toString(16));return Q}M.toHex=Z,M.encode=function(q,Q){return Q==="hex"?Z(q):q}}),N5=z0((v)=>{var M=v,B=q5(),S=C5(),Z=T4();M.assert=S,M.toArray=Z.toArray,M.zero2=Z.zero2,M.toHex=Z.toHex,M.encode=Z.encode;function q(D,P,J){var T=new Array(Math.max(D.bitLength(),J)+1),z;for(z=0;z<T.length;z+=1)T[z]=0;var I=1<<P+1,L=D.clone();for(z=0;z<T.length;z++){var p,E=L.andln(I-1);L.isOdd()?(E>(I>>1)-1?p=(I>>1)-E:p=E,L.isubn(p)):p=0,T[z]=p,L.iushrn(1)}return T}M.getNAF=q;function Q(D,P){var J=[[],[]];D=D.clone(),P=P.clone();for(var T=0,z=0,I;D.cmpn(-T)>0||P.cmpn(-z)>0;){var L=D.andln(3)+T&3,p=P.andln(3)+z&3;L===3&&(L=-1),p===3&&(p=-1);var E;(L&1)===0?E=0:(I=D.andln(7)+T&7,(I===3||I===5)&&p===2?E=-L:E=L),J[0].push(E);var x;(p&1)===0?x=0:(I=P.andln(7)+z&7,(I===3||I===5)&&L===2?x=-p:x=p),J[1].push(x),2*T===E+1&&(T=1-T),2*z===x+1&&(z=1-z),D.iushrn(1),P.iushrn(1)}return J}M.getJSF=Q;function O(D,P,J){var T="_"+P;D.prototype[P]=function(){return this[T]!==void 0?this[T]:this[T]=J.call(this)}}M.cachedProperty=O;function k(D){return typeof D=="string"?M.toArray(D,"hex"):D}M.parseBytes=k;function C(D){return new B(D,"hex","le")}M.intFromLE=C}),H9=z0((v,M)=>{var B=q5(),S=N5(),Z=S.getNAF,q=S.getJSF,Q=S.assert;function O(C,D){this.type=C,this.p=new B(D.p,16),this.red=D.prime?B.red(D.prime):B.mont(this.p),this.zero=new B(0).toRed(this.red),this.one=new B(1).toRed(this.red),this.two=new B(2).toRed(this.red),this.n=D.n&&new B(D.n,16),this.g=D.g&&this.pointFromJSON(D.g,D.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 P=this.n&&this.p.div(this.n);!P||P.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}M.exports=O,O.prototype.point=function(){throw new Error("Not implemented")},O.prototype.validate=function(){throw new Error("Not implemented")},O.prototype._fixedNafMul=function(C,D){Q(C.precomputed);var P=C._getDoubles(),J=Z(D,1,this._bitLength),T=(1<<P.step+1)-(P.step%2===0?2:1);T/=3;var z=[],I,L;for(I=0;I<J.length;I+=P.step){L=0;for(var p=I+P.step-1;p>=I;p--)L=(L<<1)+J[p];z.push(L)}for(var E=this.jpoint(null,null,null),x=this.jpoint(null,null,null),b=T;b>0;b--){for(I=0;I<z.length;I++)L=z[I],L===b?x=x.mixedAdd(P.points[I]):L===-b&&(x=x.mixedAdd(P.points[I].neg()));E=E.add(x)}return E.toP()},O.prototype._wnafMul=function(C,D){var P=4,J=C._getNAFPoints(P);P=J.wnd;for(var T=J.points,z=Z(D,P,this._bitLength),I=this.jpoint(null,null,null),L=z.length-1;L>=0;L--){for(var p=0;L>=0&&z[L]===0;L--)p++;if(L>=0&&p++,I=I.dblp(p),L<0)break;var E=z[L];Q(E!==0),C.type==="affine"?E>0?I=I.mixedAdd(T[E-1>>1]):I=I.mixedAdd(T[-E-1>>1].neg()):E>0?I=I.add(T[E-1>>1]):I=I.add(T[-E-1>>1].neg())}return C.type==="affine"?I.toP():I},O.prototype._wnafMulAdd=function(C,D,P,J,T){var z=this._wnafT1,I=this._wnafT2,L=this._wnafT3,p=0,E,x,b;for(E=0;E<J;E++){b=D[E];var w=b._getNAFPoints(C);z[E]=w.wnd,I[E]=w.points}for(E=J-1;E>=1;E-=2){var g=E-1,r=E;if(z[g]!==1||z[r]!==1){L[g]=Z(P[g],z[g],this._bitLength),L[r]=Z(P[r],z[r],this._bitLength),p=Math.max(L[g].length,p),p=Math.max(L[r].length,p);continue}var t=[D[g],null,null,D[r]];D[g].y.cmp(D[r].y)===0?(t[1]=D[g].add(D[r]),t[2]=D[g].toJ().mixedAdd(D[r].neg())):D[g].y.cmp(D[r].y.redNeg())===0?(t[1]=D[g].toJ().mixedAdd(D[r]),t[2]=D[g].add(D[r].neg())):(t[1]=D[g].toJ().mixedAdd(D[r]),t[2]=D[g].toJ().mixedAdd(D[r].neg()));var $0=[-3,-1,-5,-7,0,7,5,1,3],f=q(P[g],P[r]);for(p=Math.max(f[0].length,p),L[g]=new Array(p),L[r]=new Array(p),x=0;x<p;x++){var Z0=f[0][x]|0,K=f[1][x]|0;L[g][x]=$0[(Z0+1)*3+(K+1)],L[r][x]=0,I[g]=t}}var W=this.jpoint(null,null,null),U=this._wnafT4;for(E=p;E>=0;E--){for(var V=0;E>=0;){var H=!0;for(x=0;x<J;x++)U[x]=L[x][E]|0,U[x]!==0&&(H=!1);if(!H)break;V++,E--}if(E>=0&&V++,W=W.dblp(V),E<0)break;for(x=0;x<J;x++){var $=U[x];$!==0&&($>0?b=I[x][$-1>>1]:$<0&&(b=I[x][-$-1>>1].neg()),b.type==="affine"?W=W.mixedAdd(b):W=W.add(b))}}for(E=0;E<J;E++)I[E]=null;return T?W:W.toP()};function k(C,D){this.curve=C,this.type=D,this.precomputed=null}O.BasePoint=k,k.prototype.eq=function(){throw new Error("Not implemented")},k.prototype.validate=function(){return this.curve.validate(this)},O.prototype.decodePoint=function(C,D){C=S.toArray(C,D);var P=this.p.byteLength();if((C[0]===4||C[0]===6||C[0]===7)&&C.length-1===2*P){C[0]===6?Q(C[C.length-1]%2===0):C[0]===7&&Q(C[C.length-1]%2===1);var J=this.point(C.slice(1,1+P),C.slice(1+P,1+2*P));return J}else if((C[0]===2||C[0]===3)&&C.length-1===P)return this.pointFromX(C.slice(1,1+P),C[0]===3);throw new Error("Unknown point format")},k.prototype.encodeCompressed=function(C){return this.encode(C,!0)},k.prototype._encode=function(C){var D=this.curve.p.byteLength(),P=this.getX().toArray("be",D);return C?[this.getY().isEven()?2:3].concat(P):[4].concat(P,this.getY().toArray("be",D))},k.prototype.encode=function(C,D){return S.encode(this._encode(D),C)},k.prototype.precompute=function(C){if(this.precomputed)return this;var D={doubles:null,naf:null,beta:null};return D.naf=this._getNAFPoints(8),D.doubles=this._getDoubles(4,C),D.beta=this._getBeta(),this.precomputed=D,this},k.prototype._hasDoubles=function(C){if(!this.precomputed)return!1;var D=this.precomputed.doubles;return D?D.points.length>=Math.ceil((C.bitLength()+1)/D.step):!1},k.prototype._getDoubles=function(C,D){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var P=[this],J=this,T=0;T<D;T+=C){for(var z=0;z<C;z++)J=J.dbl();P.push(J)}return{step:C,points:P}},k.prototype._getNAFPoints=function(C){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var D=[this],P=(1<<C)-1,J=P===1?null:this.dbl(),T=1;T<P;T++)D[T]=D[T-1].add(J);return{wnd:C,points:D}},k.prototype._getBeta=function(){return null},k.prototype.dblp=function(C){for(var D=this,P=0;P<C;P++)D=D.dbl();return D}}),M6=z0((v,M)=>{var B=N5(),S=q5(),Z=h0(),q=H9(),Q=B.assert;function O(D){q.call(this,"short",D),this.a=new S(D.a,16).toRed(this.red),this.b=new S(D.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(D),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Z(O,q),M.exports=O,O.prototype._getEndomorphism=function(D){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var P,J;if(D.beta)P=new S(D.beta,16).toRed(this.red);else{var T=this._getEndoRoots(this.p);P=T[0].cmp(T[1])<0?T[0]:T[1],P=P.toRed(this.red)}if(D.lambda)J=new S(D.lambda,16);else{var z=this._getEndoRoots(this.n);this.g.mul(z[0]).x.cmp(this.g.x.redMul(P))===0?J=z[0]:(J=z[1],Q(this.g.mul(J).x.cmp(this.g.x.redMul(P))===0))}var I;return D.basis?I=D.basis.map(function(L){return{a:new S(L.a,16),b:new S(L.b,16)}}):I=this._getEndoBasis(J),{beta:P,lambda:J,basis:I}}},O.prototype._getEndoRoots=function(D){var P=D===this.p?this.red:S.mont(D),J=new S(2).toRed(P).redInvm(),T=J.redNeg(),z=new S(3).toRed(P).redNeg().redSqrt().redMul(J),I=T.redAdd(z).fromRed(),L=T.redSub(z).fromRed();return[I,L]},O.prototype._getEndoBasis=function(D){for(var P=this.n.ushrn(Math.floor(this.n.bitLength()/2)),J=D,T=this.n.clone(),z=new S(1),I=new S(0),L=new S(0),p=new S(1),E,x,b,w,g,r,t,$0=0,f,Z0;J.cmpn(0)!==0;){var K=T.div(J);f=T.sub(K.mul(J)),Z0=L.sub(K.mul(z));var W=p.sub(K.mul(I));if(!b&&f.cmp(P)<0)E=t.neg(),x=z,b=f.neg(),w=Z0;else if(b&&++$0===2)break;t=f,T=J,J=f,L=z,z=Z0,p=I,I=W}g=f.neg(),r=Z0;var U=b.sqr().add(w.sqr()),V=g.sqr().add(r.sqr());return V.cmp(U)>=0&&(g=E,r=x),b.negative&&(b=b.neg(),w=w.neg()),g.negative&&(g=g.neg(),r=r.neg()),[{a:b,b:w},{a:g,b:r}]},O.prototype._endoSplit=function(D){var P=this.endo.basis,J=P[0],T=P[1],z=T.b.mul(D).divRound(this.n),I=J.b.neg().mul(D).divRound(this.n),L=z.mul(J.a),p=I.mul(T.a),E=z.mul(J.b),x=I.mul(T.b),b=D.sub(L).sub(p),w=E.add(x).neg();return{k1:b,k2:w}},O.prototype.pointFromX=function(D,P){D=new S(D,16),D.red||(D=D.toRed(this.red));var J=D.redSqr().redMul(D).redIAdd(D.redMul(this.a)).redIAdd(this.b),T=J.redSqrt();if(T.redSqr().redSub(J).cmp(this.zero)!==0)throw new Error("invalid point");var z=T.fromRed().isOdd();return(P&&!z||!P&&z)&&(T=T.redNeg()),this.point(D,T)},O.prototype.validate=function(D){if(D.inf)return!0;var{x:P,y:J}=D,T=this.a.redMul(P),z=P.redSqr().redMul(P).redIAdd(T).redIAdd(this.b);return J.redSqr().redISub(z).cmpn(0)===0},O.prototype._endoWnafMulAdd=function(D,P,J){for(var T=this._endoWnafT1,z=this._endoWnafT2,I=0;I<D.length;I++){var L=this._endoSplit(P[I]),p=D[I],E=p._getBeta();L.k1.negative&&(L.k1.ineg(),p=p.neg(!0)),L.k2.negative&&(L.k2.ineg(),E=E.neg(!0)),T[I*2]=p,T[I*2+1]=E,z[I*2]=L.k1,z[I*2+1]=L.k2}for(var x=this._wnafMulAdd(1,T,z,I*2,J),b=0;b<I*2;b++)T[b]=null,z[b]=null;return x};function k(D,P,J,T){q.BasePoint.call(this,D,"affine"),P===null&&J===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new S(P,16),this.y=new S(J,16),T&&(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)}Z(k,q.BasePoint),O.prototype.point=function(D,P,J){return new k(this,D,P,J)},O.prototype.pointFromJSON=function(D,P){return k.fromJSON(this,D,P)},k.prototype._getBeta=function(){if(this.curve.endo){var D=this.precomputed;if(D&&D.beta)return D.beta;var P=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(D){var J=this.curve,T=function(z){return J.point(z.x.redMul(J.endo.beta),z.y)};D.beta=P,P.precomputed={beta:null,naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(T)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(T)}}}return P}},k.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},k.fromJSON=function(D,P,J){typeof P=="string"&&(P=JSON.parse(P));var T=D.point(P[0],P[1],J);if(!P[2])return T;function z(L){return D.point(L[0],L[1],J)}var I=P[2];return T.precomputed={beta:null,doubles:I.doubles&&{step:I.doubles.step,points:[T].concat(I.doubles.points.map(z))},naf:I.naf&&{wnd:I.naf.wnd,points:[T].concat(I.naf.points.map(z))}},T},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(D){if(this.inf)return D;if(D.inf)return this;if(this.eq(D))return this.dbl();if(this.neg().eq(D))return this.curve.point(null,null);if(this.x.cmp(D.x)===0)return this.curve.point(null,null);var P=this.y.redSub(D.y);P.cmpn(0)!==0&&(P=P.redMul(this.x.redSub(D.x).redInvm()));var J=P.redSqr().redISub(this.x).redISub(D.x),T=P.redMul(this.x.redSub(J)).redISub(this.y);return this.curve.point(J,T)},k.prototype.dbl=function(){if(this.inf)return this;var D=this.y.redAdd(this.y);if(D.cmpn(0)===0)return this.curve.point(null,null);var P=this.curve.a,J=this.x.redSqr(),T=D.redInvm(),z=J.redAdd(J).redIAdd(J).redIAdd(P).redMul(T),I=z.redSqr().redISub(this.x.redAdd(this.x)),L=z.redMul(this.x.redSub(I)).redISub(this.y);return this.curve.point(I,L)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(D){return D=new S(D,16),this.isInfinity()?this:this._hasDoubles(D)?this.curve._fixedNafMul(this,D):this.curve.endo?this.curve._endoWnafMulAdd([this],[D]):this.curve._wnafMul(this,D)},k.prototype.mulAdd=function(D,P,J){var T=[this,P],z=[D,J];return this.curve.endo?this.curve._endoWnafMulAdd(T,z):this.curve._wnafMulAdd(1,T,z,2)},k.prototype.jmulAdd=function(D,P,J){var T=[this,P],z=[D,J];return this.curve.endo?this.curve._endoWnafMulAdd(T,z,!0):this.curve._wnafMulAdd(1,T,z,2,!0)},k.prototype.eq=function(D){return this===D||this.inf===D.inf&&(this.inf||this.x.cmp(D.x)===0&&this.y.cmp(D.y)===0)},k.prototype.neg=function(D){if(this.inf)return this;var P=this.curve.point(this.x,this.y.redNeg());if(D&&this.precomputed){var J=this.precomputed,T=function(z){return z.neg()};P.precomputed={naf:J.naf&&{wnd:J.naf.wnd,points:J.naf.points.map(T)},doubles:J.doubles&&{step:J.doubles.step,points:J.doubles.points.map(T)}}}return P},k.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var D=this.curve.jpoint(this.x,this.y,this.curve.one);return D};function C(D,P,J,T){q.BasePoint.call(this,D,"jacobian"),P===null&&J===null&&T===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new S(0)):(this.x=new S(P,16),this.y=new S(J,16),this.z=new S(T,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}Z(C,q.BasePoint),O.prototype.jpoint=function(D,P,J){return new C(this,D,P,J)},C.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var D=this.z.redInvm(),P=D.redSqr(),J=this.x.redMul(P),T=this.y.redMul(P).redMul(D);return this.curve.point(J,T)},C.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},C.prototype.add=function(D){if(this.isInfinity())return D;if(D.isInfinity())return this;var P=D.z.redSqr(),J=this.z.redSqr(),T=this.x.redMul(P),z=D.x.redMul(J),I=this.y.redMul(P.redMul(D.z)),L=D.y.redMul(J.redMul(this.z)),p=T.redSub(z),E=I.redSub(L);if(p.cmpn(0)===0)return E.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=p.redSqr(),b=x.redMul(p),w=T.redMul(x),g=E.redSqr().redIAdd(b).redISub(w).redISub(w),r=E.redMul(w.redISub(g)).redISub(I.redMul(b)),t=this.z.redMul(D.z).redMul(p);return this.curve.jpoint(g,r,t)},C.prototype.mixedAdd=function(D){if(this.isInfinity())return D.toJ();if(D.isInfinity())return this;var P=this.z.redSqr(),J=this.x,T=D.x.redMul(P),z=this.y,I=D.y.redMul(P).redMul(this.z),L=J.redSub(T),p=z.redSub(I);if(L.cmpn(0)===0)return p.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var E=L.redSqr(),x=E.redMul(L),b=J.redMul(E),w=p.redSqr().redIAdd(x).redISub(b).redISub(b),g=p.redMul(b.redISub(w)).redISub(z.redMul(x)),r=this.z.redMul(L);return this.curve.jpoint(w,g,r)},C.prototype.dblp=function(D){if(D===0)return this;if(this.isInfinity())return this;if(!D)return this.dbl();var P;if(this.curve.zeroA||this.curve.threeA){var J=this;for(P=0;P<D;P++)J=J.dbl();return J}var T=this.curve.a,z=this.curve.tinv,I=this.x,L=this.y,p=this.z,E=p.redSqr().redSqr(),x=L.redAdd(L);for(P=0;P<D;P++){var b=I.redSqr(),w=x.redSqr(),g=w.redSqr(),r=b.redAdd(b).redIAdd(b).redIAdd(T.redMul(E)),t=I.redMul(w),$0=r.redSqr().redISub(t.redAdd(t)),f=t.redISub($0),Z0=r.redMul(f);Z0=Z0.redIAdd(Z0).redISub(g);var K=x.redMul(p);P+1<D&&(E=E.redMul(g)),I=$0,p=K,x=Z0}return this.curve.jpoint(I,x.redMul(z),p)},C.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},C.prototype._zeroDbl=function(){var D,P,J;if(this.zOne){var T=this.x.redSqr(),z=this.y.redSqr(),I=z.redSqr(),L=this.x.redAdd(z).redSqr().redISub(T).redISub(I);L=L.redIAdd(L);var p=T.redAdd(T).redIAdd(T),E=p.redSqr().redISub(L).redISub(L),x=I.redIAdd(I);x=x.redIAdd(x),x=x.redIAdd(x),D=E,P=p.redMul(L.redISub(E)).redISub(x),J=this.y.redAdd(this.y)}else{var b=this.x.redSqr(),w=this.y.redSqr(),g=w.redSqr(),r=this.x.redAdd(w).redSqr().redISub(b).redISub(g);r=r.redIAdd(r);var t=b.redAdd(b).redIAdd(b),$0=t.redSqr(),f=g.redIAdd(g);f=f.redIAdd(f),f=f.redIAdd(f),D=$0.redISub(r).redISub(r),P=t.redMul(r.redISub(D)).redISub(f),J=this.y.redMul(this.z),J=J.redIAdd(J)}return this.curve.jpoint(D,P,J)},C.prototype._threeDbl=function(){var D,P,J;if(this.zOne){var T=this.x.redSqr(),z=this.y.redSqr(),I=z.redSqr(),L=this.x.redAdd(z).redSqr().redISub(T).redISub(I);L=L.redIAdd(L);var p=T.redAdd(T).redIAdd(T).redIAdd(this.curve.a),E=p.redSqr().redISub(L).redISub(L);D=E;var x=I.redIAdd(I);x=x.redIAdd(x),x=x.redIAdd(x),P=p.redMul(L.redISub(E)).redISub(x),J=this.y.redAdd(this.y)}else{var b=this.z.redSqr(),w=this.y.redSqr(),g=this.x.redMul(w),r=this.x.redSub(b).redMul(this.x.redAdd(b));r=r.redAdd(r).redIAdd(r);var t=g.redIAdd(g);t=t.redIAdd(t);var $0=t.redAdd(t);D=r.redSqr().redISub($0),J=this.y.redAdd(this.z).redSqr().redISub(w).redISub(b);var f=w.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f),P=r.redMul(t.redISub(D)).redISub(f)}return this.curve.jpoint(D,P,J)},C.prototype._dbl=function(){var D=this.curve.a,P=this.x,J=this.y,T=this.z,z=T.redSqr().redSqr(),I=P.redSqr(),L=J.redSqr(),p=I.redAdd(I).redIAdd(I).redIAdd(D.redMul(z)),E=P.redAdd(P);E=E.redIAdd(E);var x=E.redMul(L),b=p.redSqr().redISub(x.redAdd(x)),w=x.redISub(b),g=L.redSqr();g=g.redIAdd(g),g=g.redIAdd(g),g=g.redIAdd(g);var r=p.redMul(w).redISub(g),t=J.redAdd(J).redMul(T);return this.curve.jpoint(b,r,t)},C.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var D=this.x.redSqr(),P=this.y.redSqr(),J=this.z.redSqr(),T=P.redSqr(),z=D.redAdd(D).redIAdd(D),I=z.redSqr(),L=this.x.redAdd(P).redSqr().redISub(D).redISub(T);L=L.redIAdd(L),L=L.redAdd(L).redIAdd(L),L=L.redISub(I);var p=L.redSqr(),E=T.redIAdd(T);E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var x=z.redIAdd(L).redSqr().redISub(I).redISub(p).redISub(E),b=P.redMul(x);b=b.redIAdd(b),b=b.redIAdd(b);var w=this.x.redMul(p).redISub(b);w=w.redIAdd(w),w=w.redIAdd(w);var g=this.y.redMul(x.redMul(E.redISub(x)).redISub(L.redMul(p)));g=g.redIAdd(g),g=g.redIAdd(g),g=g.redIAdd(g);var r=this.z.redAdd(L).redSqr().redISub(J).redISub(p);return this.curve.jpoint(w,g,r)},C.prototype.mul=function(D,P){return D=new S(D,P),this.curve._wnafMul(this,D)},C.prototype.eq=function(D){if(D.type==="affine")return this.eq(D.toJ());if(this===D)return!0;var P=this.z.redSqr(),J=D.z.redSqr();if(this.x.redMul(J).redISub(D.x.redMul(P)).cmpn(0)!==0)return!1;var T=P.redMul(this.z),z=J.redMul(D.z);return this.y.redMul(z).redISub(D.y.redMul(T)).cmpn(0)===0},C.prototype.eqXToP=function(D){var P=this.z.redSqr(),J=D.toRed(this.curve.red).redMul(P);if(this.x.cmp(J)===0)return!0;for(var T=D.clone(),z=this.curve.redN.redMul(P);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(J.redIAdd(z),this.x.cmp(J)===0)return!0}},C.prototype.inspect=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)+">"},C.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),y6=z0((v,M)=>{var B=q5(),S=h0(),Z=H9(),q=N5();function Q(k){Z.call(this,"mont",k),this.a=new B(k.a,16).toRed(this.red),this.b=new B(k.b,16).toRed(this.red),this.i4=new B(4).toRed(this.red).redInvm(),this.two=new B(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}S(Q,Z),M.exports=Q,Q.prototype.validate=function(k){var C=k.normalize().x,D=C.redSqr(),P=D.redMul(C).redAdd(D.redMul(this.a)).redAdd(C),J=P.redSqrt();return J.redSqr().cmp(P)===0};function O(k,C,D){Z.BasePoint.call(this,k,"projective"),C===null&&D===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new B(C,16),this.z=new B(D,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}S(O,Z.BasePoint),Q.prototype.decodePoint=function(k,C){return this.point(q.toArray(k,C),1)},Q.prototype.point=function(k,C){return new O(this,k,C)},Q.prototype.pointFromJSON=function(k){return O.fromJSON(this,k)},O.prototype.precompute=function(){},O.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},O.fromJSON=function(k,C){return new O(k,C[0],C[1]||k.one)},O.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},O.prototype.isInfinity=function(){return this.z.cmpn(0)===0},O.prototype.dbl=function(){var k=this.x.redAdd(this.z),C=k.redSqr(),D=this.x.redSub(this.z),P=D.redSqr(),J=C.redSub(P),T=C.redMul(P),z=J.redMul(P.redAdd(this.curve.a24.redMul(J)));return this.curve.point(T,z)},O.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},O.prototype.diffAdd=function(k,C){var D=this.x.redAdd(this.z),P=this.x.redSub(this.z),J=k.x.redAdd(k.z),T=k.x.redSub(k.z),z=T.redMul(D),I=J.redMul(P),L=C.z.redMul(z.redAdd(I).redSqr()),p=C.x.redMul(z.redISub(I).redSqr());return this.curve.point(L,p)},O.prototype.mul=function(k){for(var C=k.clone(),D=this,P=this.curve.point(null,null),J=this,T=[];C.cmpn(0)!==0;C.iushrn(1))T.push(C.andln(1));for(var z=T.length-1;z>=0;z--)T[z]===0?(D=D.diffAdd(P,J),P=P.dbl()):(P=D.diffAdd(P,J),D=D.dbl());return P},O.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},O.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},O.prototype.eq=function(k){return this.getX().cmp(k.getX())===0},O.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},O.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),w6=z0((v,M)=>{var B=N5(),S=q5(),Z=h0(),q=H9(),Q=B.assert;function O(C){this.twisted=(C.a|0)!==1,this.mOneA=this.twisted&&(C.a|0)===-1,this.extended=this.mOneA,q.call(this,"edwards",C),this.a=new S(C.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new S(C.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new S(C.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Q(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(C.c|0)===1}Z(O,q),M.exports=O,O.prototype._mulA=function(C){return this.mOneA?C.redNeg():this.a.redMul(C)},O.prototype._mulC=function(C){return this.oneC?C:this.c.redMul(C)},O.prototype.jpoint=function(C,D,P,J){return this.point(C,D,P,J)},O.prototype.pointFromX=function(C,D){C=new S(C,16),C.red||(C=C.toRed(this.red));var P=C.redSqr(),J=this.c2.redSub(this.a.redMul(P)),T=this.one.redSub(this.c2.redMul(this.d).redMul(P)),z=J.redMul(T.redInvm()),I=z.redSqrt();if(I.redSqr().redSub(z).cmp(this.zero)!==0)throw new Error("invalid point");var L=I.fromRed().isOdd();return(D&&!L||!D&&L)&&(I=I.redNeg()),this.point(C,I)},O.prototype.pointFromY=function(C,D){C=new S(C,16),C.red||(C=C.toRed(this.red));var P=C.redSqr(),J=P.redSub(this.c2),T=P.redMul(this.d).redMul(this.c2).redSub(this.a),z=J.redMul(T.redInvm());if(z.cmp(this.zero)===0){if(D)throw new Error("invalid point");return this.point(this.zero,C)}var I=z.redSqrt();if(I.redSqr().redSub(z).cmp(this.zero)!==0)throw new Error("invalid point");return I.fromRed().isOdd()!==D&&(I=I.redNeg()),this.point(I,C)},O.prototype.validate=function(C){if(C.isInfinity())return!0;C.normalize();var D=C.x.redSqr(),P=C.y.redSqr(),J=D.redMul(this.a).redAdd(P),T=this.c2.redMul(this.one.redAdd(this.d.redMul(D).redMul(P)));return J.cmp(T)===0};function k(C,D,P,J,T){q.BasePoint.call(this,C,"projective"),D===null&&P===null&&J===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new S(D,16),this.y=new S(P,16),this.z=J?new S(J,16):this.curve.one,this.t=T&&new S(T,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Z(k,q.BasePoint),O.prototype.pointFromJSON=function(C){return k.fromJSON(this,C)},O.prototype.point=function(C,D,P,J){return new k(this,C,D,P,J)},k.fromJSON=function(C,D){return new k(C,D[0],D[1],D[2])},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},k.prototype._extDbl=function(){var C=this.x.redSqr(),D=this.y.redSqr(),P=this.z.redSqr();P=P.redIAdd(P);var J=this.curve._mulA(C),T=this.x.redAdd(this.y).redSqr().redISub(C).redISub(D),z=J.redAdd(D),I=z.redSub(P),L=J.redSub(D),p=T.redMul(I),E=z.redMul(L),x=T.redMul(L),b=I.redMul(z);return this.curve.point(p,E,b,x)},k.prototype._projDbl=function(){var C=this.x.redAdd(this.y).redSqr(),D=this.x.redSqr(),P=this.y.redSqr(),J,T,z,I,L,p;if(this.curve.twisted){I=this.curve._mulA(D);var E=I.redAdd(P);this.zOne?(J=C.redSub(D).redSub(P).redMul(E.redSub(this.curve.two)),T=E.redMul(I.redSub(P)),z=E.redSqr().redSub(E).redSub(E)):(L=this.z.redSqr(),p=E.redSub(L).redISub(L),J=C.redSub(D).redISub(P).redMul(p),T=E.redMul(I.redSub(P)),z=E.redMul(p))}else I=D.redAdd(P),L=this.curve._mulC(this.z).redSqr(),p=I.redSub(L).redSub(L),J=this.curve._mulC(C.redISub(I)).redMul(p),T=this.curve._mulC(I).redMul(D.redISub(P)),z=I.redMul(p);return this.curve.point(J,T,z)},k.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},k.prototype._extAdd=function(C){var D=this.y.redSub(this.x).redMul(C.y.redSub(C.x)),P=this.y.redAdd(this.x).redMul(C.y.redAdd(C.x)),J=this.t.redMul(this.curve.dd).redMul(C.t),T=this.z.redMul(C.z.redAdd(C.z)),z=P.redSub(D),I=T.redSub(J),L=T.redAdd(J),p=P.redAdd(D),E=z.redMul(I),x=L.redMul(p),b=z.redMul(p),w=I.redMul(L);return this.curve.point(E,x,w,b)},k.prototype._projAdd=function(C){var D=this.z.redMul(C.z),P=D.redSqr(),J=this.x.redMul(C.x),T=this.y.redMul(C.y),z=this.curve.d.redMul(J).redMul(T),I=P.redSub(z),L=P.redAdd(z),p=this.x.redAdd(this.y).redMul(C.x.redAdd(C.y)).redISub(J).redISub(T),E=D.redMul(I).redMul(p),x,b;return this.curve.twisted?(x=D.redMul(L).redMul(T.redSub(this.curve._mulA(J))),b=I.redMul(L)):(x=D.redMul(L).redMul(T.redSub(J)),b=this.curve._mulC(I).redMul(L)),this.curve.point(E,x,b)},k.prototype.add=function(C){return this.isInfinity()?C:C.isInfinity()?this:this.curve.extended?this._extAdd(C):this._projAdd(C)},k.prototype.mul=function(C){return this._hasDoubles(C)?this.curve._fixedNafMul(this,C):this.curve._wnafMul(this,C)},k.prototype.mulAdd=function(C,D,P){return this.curve._wnafMulAdd(1,[this,D],[C,P],2,!1)},k.prototype.jmulAdd=function(C,D,P){return this.curve._wnafMulAdd(1,[this,D],[C,P],2,!0)},k.prototype.normalize=function(){if(this.zOne)return this;var C=this.z.redInvm();return this.x=this.x.redMul(C),this.y=this.y.redMul(C),this.t&&(this.t=this.t.redMul(C)),this.z=this.curve.one,this.zOne=!0,this},k.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},k.prototype.getX=function(){return this.normalize(),this.x.fromRed()},k.prototype.getY=function(){return this.normalize(),this.y.fromRed()},k.prototype.eq=function(C){return this===C||this.getX().cmp(C.getX())===0&&this.getY().cmp(C.getY())===0},k.prototype.eqXToP=function(C){var D=C.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(D)===0)return!0;for(var P=C.clone(),J=this.curve.redN.redMul(this.z);;){if(P.iadd(this.curve.n),P.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(J),this.x.cmp(D)===0)return!0}},k.prototype.toP=k.prototype.normalize,k.prototype.mixedAdd=k.prototype.add}),L4=z0((v)=>{var M=v;M.base=H9(),M.short=M6(),M.mont=y6(),M.edwards=w6()}),L5=z0((v)=>{var M=C5(),B=h0();v.inherits=B;function S(W,U){return(W.charCodeAt(U)&64512)!==55296||U<0||U+1>=W.length?!1:(W.charCodeAt(U+1)&64512)===56320}function Z(W,U){if(Array.isArray(W))return W.slice();if(!W)return[];var V=[];if(typeof W=="string")if(U){if(U==="hex")for(W=W.replace(/[^a-z0-9]+/ig,""),W.length%2!==0&&(W="0"+W),$=0;$<W.length;$+=2)V.push(parseInt(W[$]+W[$+1],16))}else for(var H=0,$=0;$<W.length;$++){var G=W.charCodeAt($);G<128?V[H++]=G:G<2048?(V[H++]=G>>6|192,V[H++]=G&63|128):S(W,$)?(G=65536+((G&1023)<<10)+(W.charCodeAt(++$)&1023),V[H++]=G>>18|240,V[H++]=G>>12&63|128,V[H++]=G>>6&63|128,V[H++]=G&63|128):(V[H++]=G>>12|224,V[H++]=G>>6&63|128,V[H++]=G&63|128)}else for($=0;$<W.length;$++)V[$]=W[$]|0;return V}v.toArray=Z;function q(W){for(var U="",V=0;V<W.length;V++)U+=k(W[V].toString(16));return U}v.toHex=q;function Q(W){var U=W>>>24|W>>>8&65280|W<<8&16711680|(W&255)<<24;return U>>>0}v.htonl=Q;function O(W,U){for(var V="",H=0;H<W.length;H++){var $=W[H];U==="little"&&($=Q($)),V+=C($.toString(16))}return V}v.toHex32=O;function k(W){return W.length===1?"0"+W:W}v.zero2=k;function C(W){return W.length===7?"0"+W:W.length===6?"00"+W:W.length===5?"000"+W:W.length===4?"0000"+W:W.length===3?"00000"+W:W.length===2?"000000"+W:W.length===1?"0000000"+W:W}v.zero8=C;function D(W,U,V,H){var $=V-U;M($%4===0);for(var G=new Array($/4),Y=0,X=U;Y<G.length;Y++,X+=4){var F;H==="big"?F=W[X]<<24|W[X+1]<<16|W[X+2]<<8|W[X+3]:F=W[X+3]<<24|W[X+2]<<16|W[X+1]<<8|W[X],G[Y]=F>>>0}return G}v.join32=D;function P(W,U){for(var V=new Array(W.length*4),H=0,$=0;H<W.length;H++,$+=4){var G=W[H];U==="big"?(V[$]=G>>>24,V[$+1]=G>>>16&255,V[$+2]=G>>>8&255,V[$+3]=G&255):(V[$+3]=G>>>24,V[$+2]=G>>>16&255,V[$+1]=G>>>8&255,V[$]=G&255)}return V}v.split32=P;function J(W,U){return W>>>U|W<<32-U}v.rotr32=J;function T(W,U){return W<<U|W>>>32-U}v.rotl32=T;function z(W,U){return W+U>>>0}v.sum32=z;function I(W,U,V){return W+U+V>>>0}v.sum32_3=I;function L(W,U,V,H){return W+U+V+H>>>0}v.sum32_4=L;function p(W,U,V,H,$){return W+U+V+H+$>>>0}v.sum32_5=p;function E(W,U,V,H){var $=W[U],G=W[U+1],Y=H+G>>>0,X=(Y<H?1:0)+V+$;W[U]=X>>>0,W[U+1]=Y}v.sum64=E;function x(W,U,V,H){var $=U+H>>>0,G=($<U?1:0)+W+V;return G>>>0}v.sum64_hi=x;function b(W,U,V,H){var $=U+H;return $>>>0}v.sum64_lo=b;function w(W,U,V,H,$,G,Y,X){var F=0,N=U;N=N+H>>>0,F+=N<U?1:0,N=N+G>>>0,F+=N<G?1:0,N=N+X>>>0,F+=N<X?1:0;var j=W+V+$+Y+F;return j>>>0}v.sum64_4_hi=w;function g(W,U,V,H,$,G,Y,X){var F=U+H+G+X;return F>>>0}v.sum64_4_lo=g;function r(W,U,V,H,$,G,Y,X,F,N){var j=0,A=U;A=A+H>>>0,j+=A<U?1:0,A=A+G>>>0,j+=A<G?1:0,A=A+X>>>0,j+=A<X?1:0,A=A+N>>>0,j+=A<N?1:0;var m=W+V+$+Y+F+j;return m>>>0}v.sum64_5_hi=r;function t(W,U,V,H,$,G,Y,X,F,N){var j=U+H+G+X+N;return j>>>0}v.sum64_5_lo=t;function $0(W,U,V){var H=U<<32-V|W>>>V;return H>>>0}v.rotr64_hi=$0;function f(W,U,V){var H=W<<32-V|U>>>V;return H>>>0}v.rotr64_lo=f;function Z0(W,U,V){return W>>>V}v.shr64_hi=Z0;function K(W,U,V){var H=W<<32-V|U>>>V;return H>>>0}v.shr64_lo=K}),u5=z0((v)=>{var M=L5(),B=C5();function S(){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}v.BlockHash=S,S.prototype.update=function(Z,q){if(Z=M.toArray(Z,q),this.pending?this.pending=this.pending.concat(Z):this.pending=Z,this.pendingTotal+=Z.length,this.pending.length>=this._delta8){Z=this.pending;var Q=Z.length%this._delta8;this.pending=Z.slice(Z.length-Q,Z.length),this.pending.length===0&&(this.pending=null),Z=M.join32(Z,0,Z.length-Q,this.endian);for(var O=0;O<Z.length;O+=this._delta32)this._update(Z,O,O+this._delta32)}return this},S.prototype.digest=function(Z){return this.update(this._pad()),B(this.pending===null),this._digest(Z)},S.prototype._pad=function(){var Z=this.pendingTotal,q=this._delta8,Q=q-(Z+this.padLength)%q,O=new Array(Q+this.padLength);O[0]=128;for(var k=1;k<Q;k++)O[k]=0;if(Z<<=3,this.endian==="big"){for(var C=8;C<this.padLength;C++)O[k++]=0;O[k++]=0,O[k++]=0,O[k++]=0,O[k++]=0,O[k++]=Z>>>24&255,O[k++]=Z>>>16&255,O[k++]=Z>>>8&255,O[k++]=Z&255}else for(O[k++]=Z&255,O[k++]=Z>>>8&255,O[k++]=Z>>>16&255,O[k++]=Z>>>24&255,O[k++]=0,O[k++]=0,O[k++]=0,O[k++]=0,C=8;C<this.padLength;C++)O[k++]=0;return O}}),k4=z0((v)=>{var M=L5(),B=M.rotr32;function S(P,J,T,z){if(P===0)return Z(J,T,z);if(P===1||P===3)return Q(J,T,z);if(P===2)return q(J,T,z)}v.ft_1=S;function Z(P,J,T){return P&J^~P&T}v.ch32=Z;function q(P,J,T){return P&J^P&T^J&T}v.maj32=q;function Q(P,J,T){return P^J^T}v.p32=Q;function O(P){return B(P,2)^B(P,13)^B(P,22)}v.s0_256=O;function k(P){return B(P,6)^B(P,11)^B(P,25)}v.s1_256=k;function C(P){return B(P,7)^B(P,18)^P>>>3}v.g0_256=C;function D(P){return B(P,17)^B(P,19)^P>>>10}v.g1_256=D}),g6=z0((v,M)=>{var B=L5(),S=u5(),Z=k4(),q=B.rotl32,Q=B.sum32,O=B.sum32_5,k=Z.ft_1,C=S.BlockHash,D=[1518500249,1859775393,2400959708,3395469782];function P(){if(!(this instanceof P))return new P;C.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}B.inherits(P,C),M.exports=P,P.blockSize=512,P.outSize=160,P.hmacStrength=80,P.padLength=64,P.prototype._update=function(J,T){for(var z=this.W,I=0;I<16;I++)z[I]=J[T+I];for(;I<z.length;I++)z[I]=q(z[I-3]^z[I-8]^z[I-14]^z[I-16],1);var L=this.h[0],p=this.h[1],E=this.h[2],x=this.h[3],b=this.h[4];for(I=0;I<z.length;I++){var w=~~(I/20),g=O(q(L,5),k(w,p,E,x),b,z[I],D[w]);b=x,x=E,E=q(p,30),p=L,L=g}this.h[0]=Q(this.h[0],L),this.h[1]=Q(this.h[1],p),this.h[2]=Q(this.h[2],E),this.h[3]=Q(this.h[3],x),this.h[4]=Q(this.h[4],b)},P.prototype._digest=function(J){return J==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")}}),R4=z0((v,M)=>{var B=L5(),S=u5(),Z=k4(),q=C5(),Q=B.sum32,O=B.sum32_4,k=B.sum32_5,C=Z.ch32,D=Z.maj32,P=Z.s0_256,J=Z.s1_256,T=Z.g0_256,z=Z.g1_256,I=S.BlockHash,L=[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 p(){if(!(this instanceof p))return new p;I.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=L,this.W=new Array(64)}B.inherits(p,I),M.exports=p,p.blockSize=512,p.outSize=256,p.hmacStrength=192,p.padLength=64,p.prototype._update=function(E,x){for(var b=this.W,w=0;w<16;w++)b[w]=E[x+w];for(;w<b.length;w++)b[w]=O(z(b[w-2]),b[w-7],T(b[w-15]),b[w-16]);var g=this.h[0],r=this.h[1],t=this.h[2],$0=this.h[3],f=this.h[4],Z0=this.h[5],K=this.h[6],W=this.h[7];for(q(this.k.length===b.length),w=0;w<b.length;w++){var U=k(W,J(f),C(f,Z0,K),this.k[w],b[w]),V=Q(P(g),D(g,r,t));W=K,K=Z0,Z0=f,f=Q($0,U),$0=t,t=r,r=g,g=Q(U,V)}this.h[0]=Q(this.h[0],g),this.h[1]=Q(this.h[1],r),this.h[2]=Q(this.h[2],t),this.h[3]=Q(this.h[3],$0),this.h[4]=Q(this.h[4],f),this.h[5]=Q(this.h[5],Z0),this.h[6]=Q(this.h[6],K),this.h[7]=Q(this.h[7],W)},p.prototype._digest=function(E){return E==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")}}),b6=z0((v,M)=>{var B=L5(),S=R4();function Z(){if(!(this instanceof Z))return new Z;S.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}B.inherits(Z,S),M.exports=Z,Z.blockSize=512,Z.outSize=224,Z.hmacStrength=192,Z.padLength=64,Z.prototype._digest=function(q){return q==="hex"?B.toHex32(this.h.slice(0,7),"big"):B.split32(this.h.slice(0,7),"big")}}),I4=z0((v,M)=>{var B=L5(),S=u5(),Z=C5(),q=B.rotr64_hi,Q=B.rotr64_lo,O=B.shr64_hi,k=B.shr64_lo,C=B.sum64,D=B.sum64_hi,P=B.sum64_lo,J=B.sum64_4_hi,T=B.sum64_4_lo,z=B.sum64_5_hi,I=B.sum64_5_lo,L=S.BlockHash,p=[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 E(){if(!(this instanceof E))return new E;L.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=p,this.W=new Array(160)}B.inherits(E,L),M.exports=E,E.blockSize=1024,E.outSize=512,E.hmacStrength=192,E.padLength=128,E.prototype._prepareBlock=function(V,H){for(var $=this.W,G=0;G<32;G++)$[G]=V[H+G];for(;G<$.length;G+=2){var Y=W($[G-4],$[G-3]),X=U($[G-4],$[G-3]),F=$[G-14],N=$[G-13],j=Z0($[G-30],$[G-29]),A=K($[G-30],$[G-29]),m=$[G-32],h=$[G-31];$[G]=J(Y,X,F,N,j,A,m,h),$[G+1]=T(Y,X,F,N,j,A,m,h)}},E.prototype._update=function(V,H){this._prepareBlock(V,H);var $=this.W,G=this.h[0],Y=this.h[1],X=this.h[2],F=this.h[3],N=this.h[4],j=this.h[5],A=this.h[6],m=this.h[7],h=this.h[8],e=this.h[9],T0=this.h[10],U0=this.h[11],y=this.h[12],o=this.h[13],n=this.h[14],K0=this.h[15];Z(this.k.length===$.length);for(var w0=0;w0<$.length;w0+=2){var l=n,u=K0,C0=$0(h,e),H0=f(h,e),F0=x(h,e,T0,U0,y,o),y0=b(h,e,T0,U0,y,o),a=this.k[w0],X0=this.k[w0+1],M0=$[w0],W0=$[w0+1],G0=z(l,u,C0,H0,F0,y0,a,X0,M0,W0),b0=I(l,u,C0,H0,F0,y0,a,X0,M0,W0);l=r(G,Y),u=t(G,Y),C0=w(G,Y,X,F,N,j),H0=g(G,Y,X,F,N,j);var R=D(l,u,C0,H0),_=P(l,u,C0,H0);n=y,K0=o,y=T0,o=U0,T0=h,U0=e,h=D(A,m,G0,b0),e=P(m,m,G0,b0),A=N,m=j,N=X,j=F,X=G,F=Y,G=D(G0,b0,R,_),Y=P(G0,b0,R,_)}C(this.h,0,G,Y),C(this.h,2,X,F),C(this.h,4,N,j),C(this.h,6,A,m),C(this.h,8,h,e),C(this.h,10,T0,U0),C(this.h,12,y,o),C(this.h,14,n,K0)},E.prototype._digest=function(V){return V==="hex"?B.toHex32(this.h,"big"):B.split32(this.h,"big")};function x(V,H,$,G,Y){var X=V&$^~V&Y;return X<0&&(X+=4294967296),X}function b(V,H,$,G,Y,X){var F=H&G^~H&X;return F<0&&(F+=4294967296),F}function w(V,H,$,G,Y){var X=V&$^V&Y^$&Y;return X<0&&(X+=4294967296),X}function g(V,H,$,G,Y,X){var F=H&G^H&X^G&X;return F<0&&(F+=4294967296),F}function r(V,H){var $=q(V,H,28),G=q(H,V,2),Y=q(H,V,7),X=$^G^Y;return X<0&&(X+=4294967296),X}function t(V,H){var $=Q(V,H,28),G=Q(H,V,2),Y=Q(H,V,7),X=$^G^Y;return X<0&&(X+=4294967296),X}function $0(V,H){var $=q(V,H,14),G=q(V,H,18),Y=q(H,V,9),X=$^G^Y;return X<0&&(X+=4294967296),X}function f(V,H){var $=Q(V,H,14),G=Q(V,H,18),Y=Q(H,V,9),X=$^G^Y;return X<0&&(X+=4294967296),X}function Z0(V,H){var $=q(V,H,1),G=q(V,H,8),Y=O(V,H,7),X=$^G^Y;return X<0&&(X+=4294967296),X}function K(V,H){var $=Q(V,H,1),G=Q(V,H,8),Y=k(V,H,7),X=$^G^Y;return X<0&&(X+=4294967296),X}function W(V,H){var $=q(V,H,19),G=q(H,V,29),Y=O(V,H,6),X=$^G^Y;return X<0&&(X+=4294967296),X}function U(V,H){var $=Q(V,H,19),G=Q(H,V,29),Y=k(V,H,6),X=$^G^Y;return X<0&&(X+=4294967296),X}}),v6=z0((v,M)=>{var B=L5(),S=I4();function Z(){if(!(this instanceof Z))return new Z;S.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}B.inherits(Z,S),M.exports=Z,Z.blockSize=1024,Z.outSize=384,Z.hmacStrength=192,Z.padLength=128,Z.prototype._digest=function(q){return q==="hex"?B.toHex32(this.h.slice(0,12),"big"):B.split32(this.h.slice(0,12),"big")}}),m6=z0((v)=>{v.sha1=g6(),v.sha224=b6(),v.sha256=R4(),v.sha384=v6(),v.sha512=I4()}),c6=z0((v)=>{var M=L5(),B=u5(),S=M.rotl32,Z=M.sum32,q=M.sum32_3,Q=M.sum32_4,O=B.BlockHash;function k(){if(!(this instanceof k))return new k;O.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}M.inherits(k,O),v.ripemd160=k,k.blockSize=512,k.outSize=160,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(L,p){for(var E=this.h[0],x=this.h[1],b=this.h[2],w=this.h[3],g=this.h[4],r=E,t=x,$0=b,f=w,Z0=g,K=0;K<80;K++){var W=Z(S(Q(E,C(K,x,b,w),L[J[K]+p],D(K)),z[K]),g);E=g,g=w,w=S(b,10),b=x,x=W,W=Z(S(Q(r,C(79-K,t,$0,f),L[T[K]+p],P(K)),I[K]),Z0),r=Z0,Z0=f,f=S($0,10),$0=t,t=W}W=q(this.h[1],b,f),this.h[1]=q(this.h[2],w,Z0),this.h[2]=q(this.h[3],g,r),this.h[3]=q(this.h[4],E,t),this.h[4]=q(this.h[0],x,$0),this.h[0]=W},k.prototype._digest=function(L){return L==="hex"?M.toHex32(this.h,"little"):M.split32(this.h,"little")};function C(L,p,E,x){return L<=15?p^E^x:L<=31?p&E|~p&x:L<=47?(p|~E)^x:L<=63?p&x|E&~x:p^(E|~x)}function D(L){return L<=15?0:L<=31?1518500249:L<=47?1859775393:L<=63?2400959708:2840853838}function P(L){return L<=15?1352829926:L<=31?1548603684:L<=47?1836072691:L<=63?2053994217:0}var J=[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],T=[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],z=[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],I=[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]}),d6=z0((v,M)=>{var B=L5(),S=C5();function Z(q,Q,O){if(!(this instanceof Z))return new Z(q,Q,O);this.Hash=q,this.blockSize=q.blockSize/8,this.outSize=q.outSize/8,this.inner=null,this.outer=null,this._init(B.toArray(Q,O))}M.exports=Z,Z.prototype._init=function(q){q.length>this.blockSize&&(q=new this.Hash().update(q).digest()),S(q.length<=this.blockSize);for(var Q=q.length;Q<this.blockSize;Q++)q.push(0);for(Q=0;Q<q.length;Q++)q[Q]^=54;for(this.inner=new this.Hash().update(q),Q=0;Q<q.length;Q++)q[Q]^=106;this.outer=new this.Hash().update(q)},Z.prototype.update=function(q,Q){return this.inner.update(q,Q),this},Z.prototype.digest=function(q){return this.outer.update(this.inner.digest()),this.outer.digest(q)}}),E9=z0((v)=>{var M=v;M.utils=L5(),M.common=u5(),M.sha=m6(),M.ripemd=c6(),M.hmac=d6(),M.sha1=M.sha.sha1,M.sha256=M.sha.sha256,M.sha224=M.sha.sha224,M.sha384=M.sha.sha384,M.sha512=M.sha.sha512,M.ripemd160=M.ripemd.ripemd160}),l6=z0((v,M)=>{M.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"]]}}}),S9=z0((v)=>{var M=v,B=E9(),S=L4(),Z=N5(),q=Z.assert;function Q(C){C.type==="short"?this.curve=new S.short(C):C.type==="edwards"?this.curve=new S.edwards(C):this.curve=new S.mont(C),this.g=this.curve.g,this.n=this.curve.n,this.hash=C.hash,q(this.g.validate(),"Invalid curve"),q(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}M.PresetCurve=Q;function O(C,D){Object.defineProperty(M,C,{configurable:!0,enumerable:!0,get:function(){var P=new Q(D);return Object.defineProperty(M,C,{configurable:!0,enumerable:!0,value:P}),P}})}O("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:B.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),O("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:B.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),O("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:B.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),O("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:B.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),O("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:B.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),O("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:B.sha256,gRed:!1,g:["9"]}),O("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:B.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var k;try{k=l6()}catch{k=void 0}O("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:B.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",k]})}),h6=z0((v,M)=>{var B=E9(),S=T4(),Z=C5();function q(Q){if(!(this instanceof q))return new q(Q);this.hash=Q.hash,this.predResist=!!Q.predResist,this.outLen=this.hash.outSize,this.minEntropy=Q.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var O=S.toArray(Q.entropy,Q.entropyEnc||"hex"),k=S.toArray(Q.nonce,Q.nonceEnc||"hex"),C=S.toArray(Q.pers,Q.persEnc||"hex");Z(O.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(O,k,C)}M.exports=q,q.prototype._init=function(Q,O,k){var C=Q.concat(O).concat(k);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var D=0;D<this.V.length;D++)this.K[D]=0,this.V[D]=1;this._update(C),this._reseed=1,this.reseedInterval=281474976710656},q.prototype._hmac=function(){return new B.hmac(this.hash,this.K)},q.prototype._update=function(Q){var O=this._hmac().update(this.V).update([0]);Q&&(O=O.update(Q)),this.K=O.digest(),this.V=this._hmac().update(this.V).digest(),Q&&(this.K=this._hmac().update(this.V).update([1]).update(Q).digest(),this.V=this._hmac().update(this.V).digest())},q.prototype.reseed=function(Q,O,k,C){typeof O!="string"&&(C=k,k=O,O=null),Q=S.toArray(Q,O),k=S.toArray(k,C),Z(Q.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(Q.concat(k||[])),this._reseed=1},q.prototype.generate=function(Q,O,k,C){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof O!="string"&&(C=k,k=O,O=null),k&&(k=S.toArray(k,C||"hex"),this._update(k));for(var D=[];D.length<Q;)this.V=this._hmac().update(this.V).digest(),D=D.concat(this.V);var P=D.slice(0,Q);return this._update(k),this._reseed++,S.encode(P,O)}}),s6=z0((v,M)=>{var B=q5(),S=N5(),Z=S.assert;function q(Q,O){this.ec=Q,this.priv=null,this.pub=null,O.priv&&this._importPrivate(O.priv,O.privEnc),O.pub&&this._importPublic(O.pub,O.pubEnc)}M.exports=q,q.fromPublic=function(Q,O,k){return O instanceof q?O:new q(Q,{pub:O,pubEnc:k})},q.fromPrivate=function(Q,O,k){return O instanceof q?O:new q(Q,{priv:O,privEnc:k})},q.prototype.validate=function(){var Q=this.getPublic();return Q.isInfinity()?{result:!1,reason:"Invalid public key"}:Q.validate()?Q.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"}},q.prototype.getPublic=function(Q,O){return typeof Q=="string"&&(O=Q,Q=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),O?this.pub.encode(O,Q):this.pub},q.prototype.getPrivate=function(Q){return Q==="hex"?this.priv.toString(16,2):this.priv},q.prototype._importPrivate=function(Q,O){this.priv=new B(Q,O||16),this.priv=this.priv.umod(this.ec.curve.n)},q.prototype._importPublic=function(Q,O){if(Q.x||Q.y){this.ec.curve.type==="mont"?Z(Q.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Z(Q.x&&Q.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(Q.x,Q.y);return}this.pub=this.ec.curve.decodePoint(Q,O)},q.prototype.derive=function(Q){return Q.validate()||Z(Q.validate(),"public point not validated"),Q.mul(this.priv).getX()},q.prototype.sign=function(Q,O,k){return this.ec.sign(Q,this,O,k)},q.prototype.verify=function(Q,O,k){return this.ec.verify(Q,O,this,void 0,k)},q.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),u6=z0((v,M)=>{var B=q5(),S=N5(),Z=S.assert;function q(D,P){if(D instanceof q)return D;this._importDER(D,P)||(Z(D.r&&D.s,"Signature without r or s"),this.r=new B(D.r,16),this.s=new B(D.s,16),D.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=D.recoveryParam)}M.exports=q;function Q(){this.place=0}function O(D,P){var J=D[P.place++];if(!(J&128))return J;var T=J&15;if(T===0||T>4||D[P.place]===0)return!1;for(var z=0,I=0,L=P.place;I<T;I++,L++)z<<=8,z|=D[L],z>>>=0;return z<=127?!1:(P.place=L,z)}function k(D){for(var P=0,J=D.length-1;!D[P]&&!(D[P+1]&128)&&P<J;)P++;return P===0?D:D.slice(P)}q.prototype._importDER=function(D,P){D=S.toArray(D,P);var J=new Q;if(D[J.place++]!==48)return!1;var T=O(D,J);if(T===!1||T+J.place!==D.length||D[J.place++]!==2)return!1;var z=O(D,J);if(z===!1||(D[J.place]&128)!==0)return!1;var I=D.slice(J.place,z+J.place);if(J.place+=z,D[J.place++]!==2)return!1;var L=O(D,J);if(L===!1||D.length!==L+J.place||(D[J.place]&128)!==0)return!1;var p=D.slice(J.place,L+J.place);if(I[0]===0)if(I[1]&128)I=I.slice(1);else return!1;if(p[0]===0)if(p[1]&128)p=p.slice(1);else return!1;return this.r=new B(I),this.s=new B(p),this.recoveryParam=null,!0};function C(D,P){if(P<128){D.push(P);return}var J=1+(Math.log(P)/Math.LN2>>>3);for(D.push(J|128);--J;)D.push(P>>>(J<<3)&255);D.push(P)}q.prototype.toDER=function(D){var P=this.r.toArray(),J=this.s.toArray();for(P[0]&128&&(P=[0].concat(P)),J[0]&128&&(J=[0].concat(J)),P=k(P),J=k(J);!J[0]&&!(J[1]&128);)J=J.slice(1);var T=[2];C(T,P.length),T=T.concat(P),T.push(2),C(T,J.length);var z=T.concat(J),I=[48];return C(I,z.length),I=I.concat(z),S.encode(I,D)}}),o6=z0((v,M)=>{var B=q5(),S=h6(),Z=N5(),q=S9(),Q=R9(),O=Z.assert,k=s6(),C=u6();function D(P){if(!(this instanceof D))return new D(P);typeof P=="string"&&(O(Object.prototype.hasOwnProperty.call(q,P),"Unknown curve "+P),P=q[P]),P instanceof q.PresetCurve&&(P={curve:P}),this.curve=P.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=P.curve.g,this.g.precompute(P.curve.n.bitLength()+1),this.hash=P.hash||P.curve.hash}M.exports=D,D.prototype.keyPair=function(P){return new k(this,P)},D.prototype.keyFromPrivate=function(P,J){return k.fromPrivate(this,P,J)},D.prototype.keyFromPublic=function(P,J){return k.fromPublic(this,P,J)},D.prototype.genKeyPair=function(P){P||(P={});for(var J=new S({hash:this.hash,pers:P.pers,persEnc:P.persEnc||"utf8",entropy:P.entropy||Q(this.hash.hmacStrength),entropyEnc:P.entropy&&P.entropyEnc||"utf8",nonce:this.n.toArray()}),T=this.n.byteLength(),z=this.n.sub(new B(2));;){var I=new B(J.generate(T));if(!(I.cmp(z)>0))return I.iaddn(1),this.keyFromPrivate(I)}},D.prototype._truncateToN=function(P,J,T){var z;if(B.isBN(P)||typeof P=="number")P=new B(P,16),z=P.byteLength();else if(typeof P=="object")z=P.length,P=new B(P,16);else{var I=P.toString();z=I.length+1>>>1,P=new B(I,16)}typeof T!="number"&&(T=z*8);var L=T-this.n.bitLength();return L>0&&(P=P.ushrn(L)),!J&&P.cmp(this.n)>=0?P.sub(this.n):P},D.prototype.sign=function(P,J,T,z){if(typeof T=="object"&&(z=T,T=null),z||(z={}),typeof P!="string"&&typeof P!="number"&&!B.isBN(P)){O(typeof P=="object"&&P&&typeof P.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),O(P.length>>>0===P.length);for(var I=0;I<P.length;I++)O((P[I]&255)===P[I])}J=this.keyFromPrivate(J,T),P=this._truncateToN(P,!1,z.msgBitLength),O(!P.isNeg(),"Can not sign a negative message");var L=this.n.byteLength(),p=J.getPrivate().toArray("be",L),E=P.toArray("be",L);O(new B(E).eq(P),"Can not sign message");for(var x=new S({hash:this.hash,entropy:p,nonce:E,pers:z.pers,persEnc:z.persEnc||"utf8"}),b=this.n.sub(new B(1)),w=0;;w++){var g=z.k?z.k(w):new B(x.generate(this.n.byteLength()));if(g=this._truncateToN(g,!0),!(g.cmpn(1)<=0||g.cmp(b)>=0)){var r=this.g.mul(g);if(!r.isInfinity()){var t=r.getX(),$0=t.umod(this.n);if($0.cmpn(0)!==0){var f=g.invm(this.n).mul($0.mul(J.getPrivate()).iadd(P));if(f=f.umod(this.n),f.cmpn(0)!==0){var Z0=(r.getY().isOdd()?1:0)|(t.cmp($0)!==0?2:0);return z.canonical&&f.cmp(this.nh)>0&&(f=this.n.sub(f),Z0^=1),new C({r:$0,s:f,recoveryParam:Z0})}}}}}},D.prototype.verify=function(P,J,T,z,I){I||(I={}),P=this._truncateToN(P,!1,I.msgBitLength),T=this.keyFromPublic(T,z),J=new C(J,"hex");var{r:L,s:p}=J;if(L.cmpn(1)<0||L.cmp(this.n)>=0||p.cmpn(1)<0||p.cmp(this.n)>=0)return!1;var E=p.invm(this.n),x=E.mul(P).umod(this.n),b=E.mul(L).umod(this.n),w;return this.curve._maxwellTrick?(w=this.g.jmulAdd(x,T.getPublic(),b),w.isInfinity()?!1:w.eqXToP(L)):(w=this.g.mulAdd(x,T.getPublic(),b),w.isInfinity()?!1:w.getX().umod(this.n).cmp(L)===0)},D.prototype.recoverPubKey=function(P,J,T,z){O((3&T)===T,"The recovery param is more than two bits"),J=new C(J,z);var I=this.n,L=new B(P),p=J.r,E=J.s,x=T&1,b=T>>1;if(p.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw new Error("Unable to find sencond key candinate");b?p=this.curve.pointFromX(p.add(this.curve.n),x):p=this.curve.pointFromX(p,x);var w=J.r.invm(I),g=I.sub(L).mul(w).umod(I),r=E.mul(w).umod(I);return this.g.mulAdd(g,p,r)},D.prototype.getKeyRecoveryParam=function(P,J,T,z){if(J=new C(J,z),J.recoveryParam!==null)return J.recoveryParam;for(var I=0;I<4;I++){var L;try{L=this.recoverPubKey(P,J,I)}catch{continue}if(L.eq(T))return I}throw new Error("Unable to find valid recovery factor")}}),f6=z0((v,M)=>{var B=N5(),S=B.assert,Z=B.parseBytes,q=B.cachedProperty;function Q(O,k){this.eddsa=O,this._secret=Z(k.secret),O.isPoint(k.pub)?this._pub=k.pub:this._pubBytes=Z(k.pub)}Q.fromPublic=function(O,k){return k instanceof Q?k:new Q(O,{pub:k})},Q.fromSecret=function(O,k){return k instanceof Q?k:new Q(O,{secret:k})},Q.prototype.secret=function(){return this._secret},q(Q,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),q(Q,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),q(Q,"privBytes",function(){var O=this.eddsa,k=this.hash(),C=O.encodingLength-1,D=k.slice(0,O.encodingLength);return D[0]&=248,D[C]&=127,D[C]|=64,D}),q(Q,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),q(Q,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),q(Q,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),Q.prototype.sign=function(O){return S(this._secret,"KeyPair can only verify"),this.eddsa.sign(O,this)},Q.prototype.verify=function(O,k){return this.eddsa.verify(O,k,this)},Q.prototype.getSecret=function(O){return S(this._secret,"KeyPair is public only"),B.encode(this.secret(),O)},Q.prototype.getPublic=function(O){return B.encode(this.pubBytes(),O)},M.exports=Q}),a6=z0((v,M)=>{var B=q5(),S=N5(),Z=S.assert,q=S.cachedProperty,Q=S.parseBytes;function O(k,C){this.eddsa=k,typeof C!="object"&&(C=Q(C)),Array.isArray(C)&&(Z(C.length===k.encodingLength*2,"Signature has invalid size"),C={R:C.slice(0,k.encodingLength),S:C.slice(k.encodingLength)}),Z(C.R&&C.S,"Signature without R or S"),k.isPoint(C.R)&&(this._R=C.R),C.S instanceof B&&(this._S=C.S),this._Rencoded=Array.isArray(C.R)?C.R:C.Rencoded,this._Sencoded=Array.isArray(C.S)?C.S:C.Sencoded}q(O,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),q(O,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),q(O,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),q(O,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),O.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},O.prototype.toHex=function(){return S.encode(this.toBytes(),"hex").toUpperCase()},M.exports=O}),n6=z0((v,M)=>{var B=E9(),S=S9(),Z=N5(),q=Z.assert,Q=Z.parseBytes,O=f6(),k=a6();function C(D){if(q(D==="ed25519","only tested with ed25519 so far"),!(this instanceof C))return new C(D);D=S[D].curve,this.curve=D,this.g=D.g,this.g.precompute(D.n.bitLength()+1),this.pointClass=D.point().constructor,this.encodingLength=Math.ceil(D.n.bitLength()/8),this.hash=B.sha512}M.exports=C,C.prototype.sign=function(D,P){D=Q(D);var J=this.keyFromSecret(P),T=this.hashInt(J.messagePrefix(),D),z=this.g.mul(T),I=this.encodePoint(z),L=this.hashInt(I,J.pubBytes(),D).mul(J.priv()),p=T.add(L).umod(this.curve.n);return this.makeSignature({R:z,S:p,Rencoded:I})},C.prototype.verify=function(D,P,J){if(D=Q(D),P=this.makeSignature(P),P.S().gte(P.eddsa.curve.n)||P.S().isNeg())return!1;var T=this.keyFromPublic(J),z=this.hashInt(P.Rencoded(),T.pubBytes(),D),I=this.g.mul(P.S()),L=P.R().add(T.pub().mul(z));return L.eq(I)},C.prototype.hashInt=function(){for(var D=this.hash(),P=0;P<arguments.length;P++)D.update(arguments[P]);return Z.intFromLE(D.digest()).umod(this.curve.n)},C.prototype.keyFromPublic=function(D){return O.fromPublic(this,D)},C.prototype.keyFromSecret=function(D){return O.fromSecret(this,D)},C.prototype.makeSignature=function(D){return D instanceof k?D:new k(this,D)},C.prototype.encodePoint=function(D){var P=D.getY().toArray("le",this.encodingLength);return P[this.encodingLength-1]|=D.getX().isOdd()?128:0,P},C.prototype.decodePoint=function(D){D=Z.parseBytes(D);var P=D.length-1,J=D.slice(0,P).concat(D[P]&-129),T=(D[P]&128)!==0,z=Z.intFromLE(J);return this.curve.pointFromY(z,T)},C.prototype.encodeInt=function(D){return D.toArray("le",this.encodingLength)},C.prototype.decodeInt=function(D){return Z.intFromLE(D)},C.prototype.isPoint=function(D){return D instanceof this.pointClass}}),A9=z0((v)=>{var M=v;M.version=x6().version,M.utils=N5(),M.rand=R9(),M.curve=L4(),M.curves=S9(),M.ec=o6(),M.eddsa=n6()}),i6=z0((v,M)=>{(function(B,S){function Z(K,W){if(!K)throw new Error(W||"Assertion failed")}function q(K,W){K.super_=W;var U=function(){};U.prototype=W.prototype,K.prototype=new U,K.prototype.constructor=K}function Q(K,W,U){if(Q.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((W==="le"||W==="be")&&(U=W,W=10),this._init(K||0,W||10,U||"be"))}typeof B=="object"?B.exports=Q:S.BN=Q,Q.BN=Q,Q.wordSize=26;var O;try{typeof window<"u"&&typeof window.Buffer<"u"?O=window.Buffer:O=_5().Buffer}catch{}Q.isBN=function(K){return K instanceof Q?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===Q.wordSize&&Array.isArray(K.words)},Q.max=function(K,W){return K.cmp(W)>0?K:W},Q.min=function(K,W){return K.cmp(W)<0?K:W},Q.prototype._init=function(K,W,U){if(typeof K=="number")return this._initNumber(K,W,U);if(typeof K=="object")return this._initArray(K,W,U);W==="hex"&&(W=16),Z(W===(W|0)&&W>=2&&W<=36),K=K.toString().replace(/\s+/g,"");var V=0;K[0]==="-"&&(V++,this.negative=1),V<K.length&&(W===16?this._parseHex(K,V,U):(this._parseBase(K,W,V),U==="le"&&this._initArray(this.toArray(),W,U)))},Q.prototype._initNumber=function(K,W,U){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(Z(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),W,U)},Q.prototype._initArray=function(K,W,U){if(Z(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H,$,G=0;if(U==="be")for(V=K.length-1,H=0;V>=0;V-=3)$=K[V]|K[V-1]<<8|K[V-2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);else if(U==="le")for(V=0,H=0;V<K.length;V+=3)$=K[V]|K[V+1]<<8|K[V+2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);return this.strip()};function k(K,W){var U=K.charCodeAt(W);return U>=65&&U<=70?U-55:U>=97&&U<=102?U-87:U-48&15}function C(K,W,U){var V=k(K,U);return U-1>=W&&(V|=k(K,U-1)<<4),V}Q.prototype._parseHex=function(K,W,U){this.length=Math.ceil((K.length-W)/6),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H=0,$=0,G;if(U==="be")for(V=K.length-1;V>=W;V-=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8;else{var Y=K.length-W;for(V=Y%2===0?W+1:W;V<K.length;V+=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8}this.strip()};function D(K,W,U,V){for(var H=0,$=Math.min(K.length,U),G=W;G<$;G++){var Y=K.charCodeAt(G)-48;H*=V,Y>=49?H+=Y-49+10:Y>=17?H+=Y-17+10:H+=Y}return H}Q.prototype._parseBase=function(K,W,U){this.words=[0],this.length=1;for(var V=0,H=1;H<=67108863;H*=W)V++;V--,H=H/W|0;for(var $=K.length-U,G=$%V,Y=Math.min($,$-G)+U,X=0,F=U;F<Y;F+=V)X=D(K,F,F+V,W),this.imuln(H),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(G!==0){var N=1;for(X=D(K,F,K.length,W),F=0;F<G;F++)N*=W;this.imuln(N),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},Q.prototype.copy=function(K){K.words=new Array(this.length);for(var W=0;W<this.length;W++)K.words[W]=this.words[W];K.length=this.length,K.negative=this.negative,K.red=this.red},Q.prototype.clone=function(){var K=new Q(null);return this.copy(K),K},Q.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},Q.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},Q.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},Q.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var P=["","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"],J=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];Q.prototype.toString=function(K,W){K=K||10,W=W|0||1;var U;if(K===16||K==="hex"){U="";for(var V=0,H=0,$=0;$<this.length;$++){var G=this.words[$],Y=((G<<V|H)&16777215).toString(16);H=G>>>24-V&16777215,V+=2,V>=26&&(V-=26,$--),H!==0||$!==this.length-1?U=P[6-Y.length]+Y+U:U=Y+U}for(H!==0&&(U=H.toString(16)+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(K===(K|0)&&K>=2&&K<=36){var X=J[K],F=T[K];U="";var N=this.clone();for(N.negative=0;!N.isZero();){var j=N.modn(F).toString(K);N=N.idivn(F),N.isZero()?U=j+U:U=P[X-j.length]+j+U}for(this.isZero()&&(U="0"+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}Z(!1,"Base should be between 2 and 36")},Q.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},Q.prototype.toJSON=function(){return this.toString(16)},Q.prototype.toBuffer=function(K,W){return Z(typeof O<"u"),this.toArrayLike(O,K,W)},Q.prototype.toArray=function(K,W){return this.toArrayLike(Array,K,W)},Q.prototype.toArrayLike=function(K,W,U){var V=this.byteLength(),H=U||Math.max(1,V);Z(V<=H,"byte array longer than desired length"),Z(H>0,"Requested array length <= 0"),this.strip();var $=W==="le",G=new K(H),Y,X,F=this.clone();if($){for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[X]=Y;for(;X<H;X++)G[X]=0}else{for(X=0;X<H-V;X++)G[X]=0;for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[H-X-1]=Y}return G},Math.clz32?Q.prototype._countBits=function(K){return 32-Math.clz32(K)}:Q.prototype._countBits=function(K){var W=K,U=0;return W>=4096&&(U+=13,W>>>=13),W>=64&&(U+=7,W>>>=7),W>=8&&(U+=4,W>>>=4),W>=2&&(U+=2,W>>>=2),U+W},Q.prototype._zeroBits=function(K){if(K===0)return 26;var W=K,U=0;return(W&8191)===0&&(U+=13,W>>>=13),(W&127)===0&&(U+=7,W>>>=7),(W&15)===0&&(U+=4,W>>>=4),(W&3)===0&&(U+=2,W>>>=2),(W&1)===0&&U++,U},Q.prototype.bitLength=function(){var K=this.words[this.length-1],W=this._countBits(K);return(this.length-1)*26+W};function z(K){for(var W=new Array(K.bitLength()),U=0;U<W.length;U++){var V=U/26|0,H=U%26;W[U]=(K.words[V]&1<<H)>>>H}return W}Q.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,W=0;W<this.length;W++){var U=this._zeroBits(this.words[W]);if(K+=U,U!==26)break}return K},Q.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Q.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},Q.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},Q.prototype.isNeg=function(){return this.negative!==0},Q.prototype.neg=function(){return this.clone().ineg()},Q.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},Q.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var W=0;W<K.length;W++)this.words[W]=this.words[W]|K.words[W];return this.strip()},Q.prototype.ior=function(K){return Z((this.negative|K.negative)===0),this.iuor(K)},Q.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},Q.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},Q.prototype.iuand=function(K){var W;this.length>K.length?W=K:W=this;for(var U=0;U<W.length;U++)this.words[U]=this.words[U]&K.words[U];return this.length=W.length,this.strip()},Q.prototype.iand=function(K){return Z((this.negative|K.negative)===0),this.iuand(K)},Q.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},Q.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},Q.prototype.iuxor=function(K){var W,U;this.length>K.length?(W=this,U=K):(W=K,U=this);for(var V=0;V<U.length;V++)this.words[V]=W.words[V]^U.words[V];if(this!==W)for(;V<W.length;V++)this.words[V]=W.words[V];return this.length=W.length,this.strip()},Q.prototype.ixor=function(K){return Z((this.negative|K.negative)===0),this.iuxor(K)},Q.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},Q.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},Q.prototype.inotn=function(K){Z(typeof K=="number"&&K>=0);var W=Math.ceil(K/26)|0,U=K%26;this._expand(W),U>0&&W--;for(var V=0;V<W;V++)this.words[V]=~this.words[V]&67108863;return U>0&&(this.words[V]=~this.words[V]&67108863>>26-U),this.strip()},Q.prototype.notn=function(K){return this.clone().inotn(K)},Q.prototype.setn=function(K,W){Z(typeof K=="number"&&K>=0);var U=K/26|0,V=K%26;return this._expand(U+1),W?this.words[U]=this.words[U]|1<<V:this.words[U]=this.words[U]&~(1<<V),this.strip()},Q.prototype.iadd=function(K){var W;if(this.negative!==0&&K.negative===0)return this.negative=0,W=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,W=this.isub(K),K.negative=1,W._normSign();var U,V;this.length>K.length?(U=this,V=K):(U=K,V=this);for(var H=0,$=0;$<V.length;$++)W=(U.words[$]|0)+(V.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;for(;H!==0&&$<U.length;$++)W=(U.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;if(this.length=U.length,H!==0)this.words[this.length]=H,this.length++;else if(U!==this)for(;$<U.length;$++)this.words[$]=U.words[$];return this},Q.prototype.add=function(K){var W;return K.negative!==0&&this.negative===0?(K.negative=0,W=this.sub(K),K.negative^=1,W):K.negative===0&&this.negative!==0?(this.negative=0,W=K.sub(this),this.negative=1,W):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},Q.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var W=this.iadd(K);return K.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var U=this.cmp(K);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var V,H;U>0?(V=this,H=K):(V=K,H=this);for(var $=0,G=0;G<H.length;G++)W=(V.words[G]|0)-(H.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;for(;$!==0&&G<V.length;G++)W=(V.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;if($===0&&G<V.length&&V!==this)for(;G<V.length;G++)this.words[G]=V.words[G];return this.length=Math.max(this.length,G),V!==this&&(this.negative=1),this.strip()},Q.prototype.sub=function(K){return this.clone().isub(K)};function I(K,W,U){U.negative=W.negative^K.negative;var V=K.length+W.length|0;U.length=V,V=V-1|0;var H=K.words[0]|0,$=W.words[0]|0,G=H*$,Y=G&67108863,X=G/67108864|0;U.words[0]=Y;for(var F=1;F<V;F++){for(var N=X>>>26,j=X&67108863,A=Math.min(F,W.length-1),m=Math.max(0,F-K.length+1);m<=A;m++){var h=F-m|0;H=K.words[h]|0,$=W.words[m]|0,G=H*$+j,N+=G/67108864|0,j=G&67108863}U.words[F]=j|0,X=N|0}return X!==0?U.words[F]=X|0:U.length--,U.strip()}var L=function(K,W,U){var V=K.words,H=W.words,$=U.words,G=0,Y,X,F,N=V[0]|0,j=N&8191,A=N>>>13,m=V[1]|0,h=m&8191,e=m>>>13,T0=V[2]|0,U0=T0&8191,y=T0>>>13,o=V[3]|0,n=o&8191,K0=o>>>13,w0=V[4]|0,l=w0&8191,u=w0>>>13,C0=V[5]|0,H0=C0&8191,F0=C0>>>13,y0=V[6]|0,a=y0&8191,X0=y0>>>13,M0=V[7]|0,W0=M0&8191,G0=M0>>>13,b0=V[8]|0,R=b0&8191,_=b0>>>13,d=V[9]|0,s=d&8191,i=d>>>13,E0=H[0]|0,Y0=E0&8191,J0=E0>>>13,d0=H[1]|0,j0=d0&8191,O0=d0>>>13,c0=H[2]|0,S0=c0&8191,k0=c0>>>13,P5=H[3]|0,A0=P5&8191,R0=P5>>>13,$5=H[4]|0,p0=$5&8191,_0=$5>>>13,G5=H[5]|0,I0=G5&8191,c=G5>>>13,V0=H[6]|0,Q0=V0&8191,P0=V0>>>13,g0=H[7]|0,D0=g0&8191,N0=g0>>>13,f0=H[8]|0,q0=f0&8191,x0=f0>>>13,Z5=H[9]|0,B0=Z5&8191,L0=Z5>>>13;U.negative=K.negative^W.negative,U.length=19,Y=Math.imul(j,Y0),X=Math.imul(j,J0),X=X+Math.imul(A,Y0)|0,F=Math.imul(A,J0);var o0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,Y=Math.imul(h,Y0),X=Math.imul(h,J0),X=X+Math.imul(e,Y0)|0,F=Math.imul(e,J0),Y=Y+Math.imul(j,j0)|0,X=X+Math.imul(j,O0)|0,X=X+Math.imul(A,j0)|0,F=F+Math.imul(A,O0)|0;var m0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,Y=Math.imul(U0,Y0),X=Math.imul(U0,J0),X=X+Math.imul(y,Y0)|0,F=Math.imul(y,J0),Y=Y+Math.imul(h,j0)|0,X=X+Math.imul(h,O0)|0,X=X+Math.imul(e,j0)|0,F=F+Math.imul(e,O0)|0,Y=Y+Math.imul(j,S0)|0,X=X+Math.imul(j,k0)|0,X=X+Math.imul(A,S0)|0,F=F+Math.imul(A,k0)|0;var v0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(v0>>>26)|0,v0&=67108863,Y=Math.imul(n,Y0),X=Math.imul(n,J0),X=X+Math.imul(K0,Y0)|0,F=Math.imul(K0,J0),Y=Y+Math.imul(U0,j0)|0,X=X+Math.imul(U0,O0)|0,X=X+Math.imul(y,j0)|0,F=F+Math.imul(y,O0)|0,Y=Y+Math.imul(h,S0)|0,X=X+Math.imul(h,k0)|0,X=X+Math.imul(e,S0)|0,F=F+Math.imul(e,k0)|0,Y=Y+Math.imul(j,A0)|0,X=X+Math.imul(j,R0)|0,X=X+Math.imul(A,A0)|0,F=F+Math.imul(A,R0)|0;var u0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,Y=Math.imul(l,Y0),X=Math.imul(l,J0),X=X+Math.imul(u,Y0)|0,F=Math.imul(u,J0),Y=Y+Math.imul(n,j0)|0,X=X+Math.imul(n,O0)|0,X=X+Math.imul(K0,j0)|0,F=F+Math.imul(K0,O0)|0,Y=Y+Math.imul(U0,S0)|0,X=X+Math.imul(U0,k0)|0,X=X+Math.imul(y,S0)|0,F=F+Math.imul(y,k0)|0,Y=Y+Math.imul(h,A0)|0,X=X+Math.imul(h,R0)|0,X=X+Math.imul(e,A0)|0,F=F+Math.imul(e,R0)|0,Y=Y+Math.imul(j,p0)|0,X=X+Math.imul(j,_0)|0,X=X+Math.imul(A,p0)|0,F=F+Math.imul(A,_0)|0;var s0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,Y=Math.imul(H0,Y0),X=Math.imul(H0,J0),X=X+Math.imul(F0,Y0)|0,F=Math.imul(F0,J0),Y=Y+Math.imul(l,j0)|0,X=X+Math.imul(l,O0)|0,X=X+Math.imul(u,j0)|0,F=F+Math.imul(u,O0)|0,Y=Y+Math.imul(n,S0)|0,X=X+Math.imul(n,k0)|0,X=X+Math.imul(K0,S0)|0,F=F+Math.imul(K0,k0)|0,Y=Y+Math.imul(U0,A0)|0,X=X+Math.imul(U0,R0)|0,X=X+Math.imul(y,A0)|0,F=F+Math.imul(y,R0)|0,Y=Y+Math.imul(h,p0)|0,X=X+Math.imul(h,_0)|0,X=X+Math.imul(e,p0)|0,F=F+Math.imul(e,_0)|0,Y=Y+Math.imul(j,I0)|0,X=X+Math.imul(j,c)|0,X=X+Math.imul(A,I0)|0,F=F+Math.imul(A,c)|0;var a0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,Y=Math.imul(a,Y0),X=Math.imul(a,J0),X=X+Math.imul(X0,Y0)|0,F=Math.imul(X0,J0),Y=Y+Math.imul(H0,j0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(F0,j0)|0,F=F+Math.imul(F0,O0)|0,Y=Y+Math.imul(l,S0)|0,X=X+Math.imul(l,k0)|0,X=X+Math.imul(u,S0)|0,F=F+Math.imul(u,k0)|0,Y=Y+Math.imul(n,A0)|0,X=X+Math.imul(n,R0)|0,X=X+Math.imul(K0,A0)|0,F=F+Math.imul(K0,R0)|0,Y=Y+Math.imul(U0,p0)|0,X=X+Math.imul(U0,_0)|0,X=X+Math.imul(y,p0)|0,F=F+Math.imul(y,_0)|0,Y=Y+Math.imul(h,I0)|0,X=X+Math.imul(h,c)|0,X=X+Math.imul(e,I0)|0,F=F+Math.imul(e,c)|0,Y=Y+Math.imul(j,Q0)|0,X=X+Math.imul(j,P0)|0,X=X+Math.imul(A,Q0)|0,F=F+Math.imul(A,P0)|0;var n0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,Y=Math.imul(W0,Y0),X=Math.imul(W0,J0),X=X+Math.imul(G0,Y0)|0,F=Math.imul(G0,J0),Y=Y+Math.imul(a,j0)|0,X=X+Math.imul(a,O0)|0,X=X+Math.imul(X0,j0)|0,F=F+Math.imul(X0,O0)|0,Y=Y+Math.imul(H0,S0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(F0,S0)|0,F=F+Math.imul(F0,k0)|0,Y=Y+Math.imul(l,A0)|0,X=X+Math.imul(l,R0)|0,X=X+Math.imul(u,A0)|0,F=F+Math.imul(u,R0)|0,Y=Y+Math.imul(n,p0)|0,X=X+Math.imul(n,_0)|0,X=X+Math.imul(K0,p0)|0,F=F+Math.imul(K0,_0)|0,Y=Y+Math.imul(U0,I0)|0,X=X+Math.imul(U0,c)|0,X=X+Math.imul(y,I0)|0,F=F+Math.imul(y,c)|0,Y=Y+Math.imul(h,Q0)|0,X=X+Math.imul(h,P0)|0,X=X+Math.imul(e,Q0)|0,F=F+Math.imul(e,P0)|0,Y=Y+Math.imul(j,D0)|0,X=X+Math.imul(j,N0)|0,X=X+Math.imul(A,D0)|0,F=F+Math.imul(A,N0)|0;var i0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,Y=Math.imul(R,Y0),X=Math.imul(R,J0),X=X+Math.imul(_,Y0)|0,F=Math.imul(_,J0),Y=Y+Math.imul(W0,j0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(G0,j0)|0,F=F+Math.imul(G0,O0)|0,Y=Y+Math.imul(a,S0)|0,X=X+Math.imul(a,k0)|0,X=X+Math.imul(X0,S0)|0,F=F+Math.imul(X0,k0)|0,Y=Y+Math.imul(H0,A0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(F0,A0)|0,F=F+Math.imul(F0,R0)|0,Y=Y+Math.imul(l,p0)|0,X=X+Math.imul(l,_0)|0,X=X+Math.imul(u,p0)|0,F=F+Math.imul(u,_0)|0,Y=Y+Math.imul(n,I0)|0,X=X+Math.imul(n,c)|0,X=X+Math.imul(K0,I0)|0,F=F+Math.imul(K0,c)|0,Y=Y+Math.imul(U0,Q0)|0,X=X+Math.imul(U0,P0)|0,X=X+Math.imul(y,Q0)|0,F=F+Math.imul(y,P0)|0,Y=Y+Math.imul(h,D0)|0,X=X+Math.imul(h,N0)|0,X=X+Math.imul(e,D0)|0,F=F+Math.imul(e,N0)|0,Y=Y+Math.imul(j,q0)|0,X=X+Math.imul(j,x0)|0,X=X+Math.imul(A,q0)|0,F=F+Math.imul(A,x0)|0;var r0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,Y=Math.imul(s,Y0),X=Math.imul(s,J0),X=X+Math.imul(i,Y0)|0,F=Math.imul(i,J0),Y=Y+Math.imul(R,j0)|0,X=X+Math.imul(R,O0)|0,X=X+Math.imul(_,j0)|0,F=F+Math.imul(_,O0)|0,Y=Y+Math.imul(W0,S0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(G0,S0)|0,F=F+Math.imul(G0,k0)|0,Y=Y+Math.imul(a,A0)|0,X=X+Math.imul(a,R0)|0,X=X+Math.imul(X0,A0)|0,F=F+Math.imul(X0,R0)|0,Y=Y+Math.imul(H0,p0)|0,X=X+Math.imul(H0,_0)|0,X=X+Math.imul(F0,p0)|0,F=F+Math.imul(F0,_0)|0,Y=Y+Math.imul(l,I0)|0,X=X+Math.imul(l,c)|0,X=X+Math.imul(u,I0)|0,F=F+Math.imul(u,c)|0,Y=Y+Math.imul(n,Q0)|0,X=X+Math.imul(n,P0)|0,X=X+Math.imul(K0,Q0)|0,F=F+Math.imul(K0,P0)|0,Y=Y+Math.imul(U0,D0)|0,X=X+Math.imul(U0,N0)|0,X=X+Math.imul(y,D0)|0,F=F+Math.imul(y,N0)|0,Y=Y+Math.imul(h,q0)|0,X=X+Math.imul(h,x0)|0,X=X+Math.imul(e,q0)|0,F=F+Math.imul(e,x0)|0,Y=Y+Math.imul(j,B0)|0,X=X+Math.imul(j,L0)|0,X=X+Math.imul(A,B0)|0,F=F+Math.imul(A,L0)|0;var t0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,Y=Math.imul(s,j0),X=Math.imul(s,O0),X=X+Math.imul(i,j0)|0,F=Math.imul(i,O0),Y=Y+Math.imul(R,S0)|0,X=X+Math.imul(R,k0)|0,X=X+Math.imul(_,S0)|0,F=F+Math.imul(_,k0)|0,Y=Y+Math.imul(W0,A0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(G0,A0)|0,F=F+Math.imul(G0,R0)|0,Y=Y+Math.imul(a,p0)|0,X=X+Math.imul(a,_0)|0,X=X+Math.imul(X0,p0)|0,F=F+Math.imul(X0,_0)|0,Y=Y+Math.imul(H0,I0)|0,X=X+Math.imul(H0,c)|0,X=X+Math.imul(F0,I0)|0,F=F+Math.imul(F0,c)|0,Y=Y+Math.imul(l,Q0)|0,X=X+Math.imul(l,P0)|0,X=X+Math.imul(u,Q0)|0,F=F+Math.imul(u,P0)|0,Y=Y+Math.imul(n,D0)|0,X=X+Math.imul(n,N0)|0,X=X+Math.imul(K0,D0)|0,F=F+Math.imul(K0,N0)|0,Y=Y+Math.imul(U0,q0)|0,X=X+Math.imul(U0,x0)|0,X=X+Math.imul(y,q0)|0,F=F+Math.imul(y,x0)|0,Y=Y+Math.imul(h,B0)|0,X=X+Math.imul(h,L0)|0,X=X+Math.imul(e,B0)|0,F=F+Math.imul(e,L0)|0;var e0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,Y=Math.imul(s,S0),X=Math.imul(s,k0),X=X+Math.imul(i,S0)|0,F=Math.imul(i,k0),Y=Y+Math.imul(R,A0)|0,X=X+Math.imul(R,R0)|0,X=X+Math.imul(_,A0)|0,F=F+Math.imul(_,R0)|0,Y=Y+Math.imul(W0,p0)|0,X=X+Math.imul(W0,_0)|0,X=X+Math.imul(G0,p0)|0,F=F+Math.imul(G0,_0)|0,Y=Y+Math.imul(a,I0)|0,X=X+Math.imul(a,c)|0,X=X+Math.imul(X0,I0)|0,F=F+Math.imul(X0,c)|0,Y=Y+Math.imul(H0,Q0)|0,X=X+Math.imul(H0,P0)|0,X=X+Math.imul(F0,Q0)|0,F=F+Math.imul(F0,P0)|0,Y=Y+Math.imul(l,D0)|0,X=X+Math.imul(l,N0)|0,X=X+Math.imul(u,D0)|0,F=F+Math.imul(u,N0)|0,Y=Y+Math.imul(n,q0)|0,X=X+Math.imul(n,x0)|0,X=X+Math.imul(K0,q0)|0,F=F+Math.imul(K0,x0)|0,Y=Y+Math.imul(U0,B0)|0,X=X+Math.imul(U0,L0)|0,X=X+Math.imul(y,B0)|0,F=F+Math.imul(y,L0)|0;var K5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,Y=Math.imul(s,A0),X=Math.imul(s,R0),X=X+Math.imul(i,A0)|0,F=Math.imul(i,R0),Y=Y+Math.imul(R,p0)|0,X=X+Math.imul(R,_0)|0,X=X+Math.imul(_,p0)|0,F=F+Math.imul(_,_0)|0,Y=Y+Math.imul(W0,I0)|0,X=X+Math.imul(W0,c)|0,X=X+Math.imul(G0,I0)|0,F=F+Math.imul(G0,c)|0,Y=Y+Math.imul(a,Q0)|0,X=X+Math.imul(a,P0)|0,X=X+Math.imul(X0,Q0)|0,F=F+Math.imul(X0,P0)|0,Y=Y+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(F0,D0)|0,F=F+Math.imul(F0,N0)|0,Y=Y+Math.imul(l,q0)|0,X=X+Math.imul(l,x0)|0,X=X+Math.imul(u,q0)|0,F=F+Math.imul(u,x0)|0,Y=Y+Math.imul(n,B0)|0,X=X+Math.imul(n,L0)|0,X=X+Math.imul(K0,B0)|0,F=F+Math.imul(K0,L0)|0;var X5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,Y=Math.imul(s,p0),X=Math.imul(s,_0),X=X+Math.imul(i,p0)|0,F=Math.imul(i,_0),Y=Y+Math.imul(R,I0)|0,X=X+Math.imul(R,c)|0,X=X+Math.imul(_,I0)|0,F=F+Math.imul(_,c)|0,Y=Y+Math.imul(W0,Q0)|0,X=X+Math.imul(W0,P0)|0,X=X+Math.imul(G0,Q0)|0,F=F+Math.imul(G0,P0)|0,Y=Y+Math.imul(a,D0)|0,X=X+Math.imul(a,N0)|0,X=X+Math.imul(X0,D0)|0,F=F+Math.imul(X0,N0)|0,Y=Y+Math.imul(H0,q0)|0,X=X+Math.imul(H0,x0)|0,X=X+Math.imul(F0,q0)|0,F=F+Math.imul(F0,x0)|0,Y=Y+Math.imul(l,B0)|0,X=X+Math.imul(l,L0)|0,X=X+Math.imul(u,B0)|0,F=F+Math.imul(u,L0)|0;var W5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(W5>>>26)|0,W5&=67108863,Y=Math.imul(s,I0),X=Math.imul(s,c),X=X+Math.imul(i,I0)|0,F=Math.imul(i,c),Y=Y+Math.imul(R,Q0)|0,X=X+Math.imul(R,P0)|0,X=X+Math.imul(_,Q0)|0,F=F+Math.imul(_,P0)|0,Y=Y+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(G0,D0)|0,F=F+Math.imul(G0,N0)|0,Y=Y+Math.imul(a,q0)|0,X=X+Math.imul(a,x0)|0,X=X+Math.imul(X0,q0)|0,F=F+Math.imul(X0,x0)|0,Y=Y+Math.imul(H0,B0)|0,X=X+Math.imul(H0,L0)|0,X=X+Math.imul(F0,B0)|0,F=F+Math.imul(F0,L0)|0;var V5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(V5>>>26)|0,V5&=67108863,Y=Math.imul(s,Q0),X=Math.imul(s,P0),X=X+Math.imul(i,Q0)|0,F=Math.imul(i,P0),Y=Y+Math.imul(R,D0)|0,X=X+Math.imul(R,N0)|0,X=X+Math.imul(_,D0)|0,F=F+Math.imul(_,N0)|0,Y=Y+Math.imul(W0,q0)|0,X=X+Math.imul(W0,x0)|0,X=X+Math.imul(G0,q0)|0,F=F+Math.imul(G0,x0)|0,Y=Y+Math.imul(a,B0)|0,X=X+Math.imul(a,L0)|0,X=X+Math.imul(X0,B0)|0,F=F+Math.imul(X0,L0)|0;var U5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(U5>>>26)|0,U5&=67108863,Y=Math.imul(s,D0),X=Math.imul(s,N0),X=X+Math.imul(i,D0)|0,F=Math.imul(i,N0),Y=Y+Math.imul(R,q0)|0,X=X+Math.imul(R,x0)|0,X=X+Math.imul(_,q0)|0,F=F+Math.imul(_,x0)|0,Y=Y+Math.imul(W0,B0)|0,X=X+Math.imul(W0,L0)|0,X=X+Math.imul(G0,B0)|0,F=F+Math.imul(G0,L0)|0;var H5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(H5>>>26)|0,H5&=67108863,Y=Math.imul(s,q0),X=Math.imul(s,x0),X=X+Math.imul(i,q0)|0,F=Math.imul(i,x0),Y=Y+Math.imul(R,B0)|0,X=X+Math.imul(R,L0)|0,X=X+Math.imul(_,B0)|0,F=F+Math.imul(_,L0)|0;var Y5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Y=Math.imul(s,B0),X=Math.imul(s,L0),X=X+Math.imul(i,B0)|0,F=Math.imul(i,L0);var F5=(G+Y|0)+((X&8191)<<13)|0;return G=(F+(X>>>13)|0)+(F5>>>26)|0,F5&=67108863,$[0]=o0,$[1]=m0,$[2]=v0,$[3]=u0,$[4]=s0,$[5]=a0,$[6]=n0,$[7]=i0,$[8]=r0,$[9]=t0,$[10]=e0,$[11]=K5,$[12]=X5,$[13]=W5,$[14]=V5,$[15]=U5,$[16]=H5,$[17]=Y5,$[18]=F5,G!==0&&($[19]=G,U.length++),U};Math.imul||(L=I);function p(K,W,U){U.negative=W.negative^K.negative,U.length=K.length+W.length;for(var V=0,H=0,$=0;$<U.length-1;$++){var G=H;H=0;for(var Y=V&67108863,X=Math.min($,W.length-1),F=Math.max(0,$-K.length+1);F<=X;F++){var N=$-F,j=K.words[N]|0,A=W.words[F]|0,m=j*A,h=m&67108863;G=G+(m/67108864|0)|0,h=h+Y|0,Y=h&67108863,G=G+(h>>>26)|0,H+=G>>>26,G&=67108863}U.words[$]=Y,V=G,G=H}return V!==0?U.words[$]=V:U.length--,U.strip()}function E(K,W,U){var V=new x;return V.mulp(K,W,U)}Q.prototype.mulTo=function(K,W){var U,V=this.length+K.length;return this.length===10&&K.length===10?U=L(this,K,W):V<63?U=I(this,K,W):V<1024?U=p(this,K,W):U=E(this,K,W),U};function x(K,W){this.x=K,this.y=W}x.prototype.makeRBT=function(K){for(var W=new Array(K),U=Q.prototype._countBits(K)-1,V=0;V<K;V++)W[V]=this.revBin(V,U,K);return W},x.prototype.revBin=function(K,W,U){if(K===0||K===U-1)return K;for(var V=0,H=0;H<W;H++)V|=(K&1)<<W-H-1,K>>=1;return V},x.prototype.permute=function(K,W,U,V,H,$){for(var G=0;G<$;G++)V[G]=W[K[G]],H[G]=U[K[G]]},x.prototype.transform=function(K,W,U,V,H,$){this.permute($,K,W,U,V,H);for(var G=1;G<H;G<<=1)for(var Y=G<<1,X=Math.cos(2*Math.PI/Y),F=Math.sin(2*Math.PI/Y),N=0;N<H;N+=Y)for(var j=X,A=F,m=0;m<G;m++){var h=U[N+m],e=V[N+m],T0=U[N+m+G],U0=V[N+m+G],y=j*T0-A*U0;U0=j*U0+A*T0,T0=y,U[N+m]=h+T0,V[N+m]=e+U0,U[N+m+G]=h-T0,V[N+m+G]=e-U0,m!==Y&&(y=X*j-F*A,A=X*A+F*j,j=y)}},x.prototype.guessLen13b=function(K,W){var U=Math.max(W,K)|1,V=U&1,H=0;for(U=U/2|0;U;U=U>>>1)H++;return 1<<H+1+V},x.prototype.conjugate=function(K,W,U){if(!(U<=1))for(var V=0;V<U/2;V++){var H=K[V];K[V]=K[U-V-1],K[U-V-1]=H,H=W[V],W[V]=-W[U-V-1],W[U-V-1]=-H}},x.prototype.normalize13b=function(K,W){for(var U=0,V=0;V<W/2;V++){var H=Math.round(K[2*V+1]/W)*8192+Math.round(K[2*V]/W)+U;K[V]=H&67108863,H<67108864?U=0:U=H/67108864|0}return K},x.prototype.convert13b=function(K,W,U,V){for(var H=0,$=0;$<W;$++)H=H+(K[$]|0),U[2*$]=H&8191,H=H>>>13,U[2*$+1]=H&8191,H=H>>>13;for($=2*W;$<V;++$)U[$]=0;Z(H===0),Z((H&-8192)===0)},x.prototype.stub=function(K){for(var W=new Array(K),U=0;U<K;U++)W[U]=0;return W},x.prototype.mulp=function(K,W,U){var V=2*this.guessLen13b(K.length,W.length),H=this.makeRBT(V),$=this.stub(V),G=new Array(V),Y=new Array(V),X=new Array(V),F=new Array(V),N=new Array(V),j=new Array(V),A=U.words;A.length=V,this.convert13b(K.words,K.length,G,V),this.convert13b(W.words,W.length,F,V),this.transform(G,$,Y,X,V,H),this.transform(F,$,N,j,V,H);for(var m=0;m<V;m++){var h=Y[m]*N[m]-X[m]*j[m];X[m]=Y[m]*j[m]+X[m]*N[m],Y[m]=h}return this.conjugate(Y,X,V),this.transform(Y,X,A,$,V,H),this.conjugate(A,$,V),this.normalize13b(A,V),U.negative=K.negative^W.negative,U.length=K.length+W.length,U.strip()},Q.prototype.mul=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),this.mulTo(K,W)},Q.prototype.mulf=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),E(this,K,W)},Q.prototype.imul=function(K){return this.clone().mulTo(K,this)},Q.prototype.imuln=function(K){Z(typeof K=="number"),Z(K<67108864);for(var W=0,U=0;U<this.length;U++){var V=(this.words[U]|0)*K,H=(V&67108863)+(W&67108863);W>>=26,W+=V/67108864|0,W+=H>>>26,this.words[U]=H&67108863}return W!==0&&(this.words[U]=W,this.length++),this},Q.prototype.muln=function(K){return this.clone().imuln(K)},Q.prototype.sqr=function(){return this.mul(this)},Q.prototype.isqr=function(){return this.imul(this.clone())},Q.prototype.pow=function(K){var W=z(K);if(W.length===0)return new Q(1);for(var U=this,V=0;V<W.length&&W[V]===0;V++,U=U.sqr());if(++V<W.length)for(var H=U.sqr();V<W.length;V++,H=H.sqr())W[V]!==0&&(U=U.mul(H));return U},Q.prototype.iushln=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=67108863>>>26-W<<26-W,H;if(W!==0){var $=0;for(H=0;H<this.length;H++){var G=this.words[H]&V,Y=(this.words[H]|0)-G<<W;this.words[H]=Y|$,$=G>>>26-W}$&&(this.words[H]=$,this.length++)}if(U!==0){for(H=this.length-1;H>=0;H--)this.words[H+U]=this.words[H];for(H=0;H<U;H++)this.words[H]=0;this.length+=U}return this.strip()},Q.prototype.ishln=function(K){return Z(this.negative===0),this.iushln(K)},Q.prototype.iushrn=function(K,W,U){Z(typeof K=="number"&&K>=0);var V;W?V=(W-W%26)/26:V=0;var H=K%26,$=Math.min((K-H)/26,this.length),G=67108863^67108863>>>H<<H,Y=U;if(V-=$,V=Math.max(0,V),Y){for(var X=0;X<$;X++)Y.words[X]=this.words[X];Y.length=$}if($!==0)if(this.length>$)for(this.length-=$,X=0;X<this.length;X++)this.words[X]=this.words[X+$];else this.words[0]=0,this.length=1;var F=0;for(X=this.length-1;X>=0&&(F!==0||X>=V);X--){var N=this.words[X]|0;this.words[X]=F<<26-H|N>>>H,F=N&G}return Y&&F!==0&&(Y.words[Y.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},Q.prototype.ishrn=function(K,W,U){return Z(this.negative===0),this.iushrn(K,W,U)},Q.prototype.shln=function(K){return this.clone().ishln(K)},Q.prototype.ushln=function(K){return this.clone().iushln(K)},Q.prototype.shrn=function(K){return this.clone().ishrn(K)},Q.prototype.ushrn=function(K){return this.clone().iushrn(K)},Q.prototype.testn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return!1;var H=this.words[U];return!!(H&V)},Q.prototype.imaskn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(W!==0&&U++,this.length=Math.min(U,this.length),W!==0){var V=67108863^67108863>>>W<<W;this.words[this.length-1]&=V}return this.strip()},Q.prototype.maskn=function(K){return this.clone().imaskn(K)},Q.prototype.iaddn=function(K){return Z(typeof K=="number"),Z(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},Q.prototype._iaddn=function(K){this.words[0]+=K;for(var W=0;W<this.length&&this.words[W]>=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},Q.prototype.isubn=function(K){if(Z(typeof K=="number"),Z(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W<this.length&&this.words[W]<0;W++)this.words[W]+=67108864,this.words[W+1]-=1;return this.strip()},Q.prototype.addn=function(K){return this.clone().iaddn(K)},Q.prototype.subn=function(K){return this.clone().isubn(K)},Q.prototype.iabs=function(){return this.negative=0,this},Q.prototype.abs=function(){return this.clone().iabs()},Q.prototype._ishlnsubmul=function(K,W,U){var V=K.length+U,H;this._expand(V);var $,G=0;for(H=0;H<K.length;H++){$=(this.words[H+U]|0)+G;var Y=(K.words[H]|0)*W;$-=Y&67108863,G=($>>26)-(Y/67108864|0),this.words[H+U]=$&67108863}for(;H<this.length-U;H++)$=(this.words[H+U]|0)+G,G=$>>26,this.words[H+U]=$&67108863;if(G===0)return this.strip();for(Z(G===-1),G=0,H=0;H<this.length;H++)$=-(this.words[H]|0)+G,G=$>>26,this.words[H]=$&67108863;return this.negative=1,this.strip()},Q.prototype._wordDiv=function(K,W){var U=this.length-K.length,V=this.clone(),H=K,$=H.words[H.length-1]|0,G=this._countBits($);U=26-G,U!==0&&(H=H.ushln(U),V.iushln(U),$=H.words[H.length-1]|0);var Y=V.length-H.length,X;if(W!=="mod"){X=new Q(null),X.length=Y+1,X.words=new Array(X.length);for(var F=0;F<X.length;F++)X.words[F]=0}var N=V.clone()._ishlnsubmul(H,1,Y);N.negative===0&&(V=N,X&&(X.words[Y]=1));for(var j=Y-1;j>=0;j--){var A=(V.words[H.length+j]|0)*67108864+(V.words[H.length+j-1]|0);for(A=Math.min(A/$|0,67108863),V._ishlnsubmul(H,A,j);V.negative!==0;)A--,V.negative=0,V._ishlnsubmul(H,1,j),V.isZero()||(V.negative^=1);X&&(X.words[j]=A)}return X&&X.strip(),V.strip(),W!=="div"&&U!==0&&V.iushrn(U),{div:X||null,mod:V}},Q.prototype.divmod=function(K,W,U){if(Z(!K.isZero()),this.isZero())return{div:new Q(0),mod:new Q(0)};var V,H,$;return this.negative!==0&&K.negative===0?($=this.neg().divmod(K,W),W!=="mod"&&(V=$.div.neg()),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.iadd(K)),{div:V,mod:H}):this.negative===0&&K.negative!==0?($=this.divmod(K.neg(),W),W!=="mod"&&(V=$.div.neg()),{div:V,mod:$.mod}):(this.negative&K.negative)!==0?($=this.neg().divmod(K.neg(),W),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.isub(K)),{div:$.div,mod:H}):K.length>this.length||this.cmp(K)<0?{div:new Q(0),mod:this}:K.length===1?W==="div"?{div:this.divn(K.words[0]),mod:null}:W==="mod"?{div:null,mod:new Q(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new Q(this.modn(K.words[0]))}:this._wordDiv(K,W)},Q.prototype.div=function(K){return this.divmod(K,"div",!1).div},Q.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},Q.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},Q.prototype.divRound=function(K){var W=this.divmod(K);if(W.mod.isZero())return W.div;var U=W.div.negative!==0?W.mod.isub(K):W.mod,V=K.ushrn(1),H=K.andln(1),$=U.cmp(V);return $<0||H===1&&$===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},Q.prototype.modn=function(K){Z(K<=67108863);for(var W=67108864%K,U=0,V=this.length-1;V>=0;V--)U=(W*U+(this.words[V]|0))%K;return U},Q.prototype.idivn=function(K){Z(K<=67108863);for(var W=0,U=this.length-1;U>=0;U--){var V=(this.words[U]|0)+W*67108864;this.words[U]=V/K|0,W=V%K}return this.strip()},Q.prototype.divn=function(K){return this.clone().idivn(K)},Q.prototype.egcd=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=new Q(0),G=new Q(1),Y=0;W.isEven()&&U.isEven();)W.iushrn(1),U.iushrn(1),++Y;for(var X=U.clone(),F=W.clone();!W.isZero();){for(var N=0,j=1;(W.words[0]&j)===0&&N<26;++N,j<<=1);if(N>0)for(W.iushrn(N);N-- >0;)(V.isOdd()||H.isOdd())&&(V.iadd(X),H.isub(F)),V.iushrn(1),H.iushrn(1);for(var A=0,m=1;(U.words[0]&m)===0&&A<26;++A,m<<=1);if(A>0)for(U.iushrn(A);A-- >0;)($.isOdd()||G.isOdd())&&($.iadd(X),G.isub(F)),$.iushrn(1),G.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub($),H.isub(G)):(U.isub(W),$.isub(V),G.isub(H))}return{a:$,b:G,gcd:U.iushln(Y)}},Q.prototype._invmp=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=U.clone();W.cmpn(1)>0&&U.cmpn(1)>0;){for(var G=0,Y=1;(W.words[0]&Y)===0&&G<26;++G,Y<<=1);if(G>0)for(W.iushrn(G);G-- >0;)V.isOdd()&&V.iadd($),V.iushrn(1);for(var X=0,F=1;(U.words[0]&F)===0&&X<26;++X,F<<=1);if(X>0)for(U.iushrn(X);X-- >0;)H.isOdd()&&H.iadd($),H.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub(H)):(U.isub(W),H.isub(V))}var N;return W.cmpn(1)===0?N=V:N=H,N.cmpn(0)<0&&N.iadd(K),N},Q.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var W=this.clone(),U=K.clone();W.negative=0,U.negative=0;for(var V=0;W.isEven()&&U.isEven();V++)W.iushrn(1),U.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;U.isEven();)U.iushrn(1);var H=W.cmp(U);if(H<0){var $=W;W=U,U=$}else if(H===0||U.cmpn(1)===0)break;W.isub(U)}while(!0);return U.iushln(V)},Q.prototype.invm=function(K){return this.egcd(K).a.umod(K)},Q.prototype.isEven=function(){return(this.words[0]&1)===0},Q.prototype.isOdd=function(){return(this.words[0]&1)===1},Q.prototype.andln=function(K){return this.words[0]&K},Q.prototype.bincn=function(K){Z(typeof K=="number");var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return this._expand(U+1),this.words[U]|=V,this;for(var H=V,$=U;H!==0&&$<this.length;$++){var G=this.words[$]|0;G+=H,H=G>>>26,G&=67108863,this.words[$]=G}return H!==0&&(this.words[$]=H,this.length++),this},Q.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Q.prototype.cmpn=function(K){var W=K<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var U;if(this.length>1)U=1;else{W&&(K=-K),Z(K<=67108863,"Number is too big");var V=this.words[0]|0;U=V===K?0:V<K?-1:1}return this.negative!==0?-U|0:U},Q.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var W=this.ucmp(K);return this.negative!==0?-W|0:W},Q.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var W=0,U=this.length-1;U>=0;U--){var V=this.words[U]|0,H=K.words[U]|0;if(V!==H){V<H?W=-1:V>H&&(W=1);break}}return W},Q.prototype.gtn=function(K){return this.cmpn(K)===1},Q.prototype.gt=function(K){return this.cmp(K)===1},Q.prototype.gten=function(K){return this.cmpn(K)>=0},Q.prototype.gte=function(K){return this.cmp(K)>=0},Q.prototype.ltn=function(K){return this.cmpn(K)===-1},Q.prototype.lt=function(K){return this.cmp(K)===-1},Q.prototype.lten=function(K){return this.cmpn(K)<=0},Q.prototype.lte=function(K){return this.cmp(K)<=0},Q.prototype.eqn=function(K){return this.cmpn(K)===0},Q.prototype.eq=function(K){return this.cmp(K)===0},Q.red=function(K){return new f(K)},Q.prototype.toRed=function(K){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},Q.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Q.prototype._forceRed=function(K){return this.red=K,this},Q.prototype.forceRed=function(K){return Z(!this.red,"Already a number in reduction context"),this._forceRed(K)},Q.prototype.redAdd=function(K){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},Q.prototype.redIAdd=function(K){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},Q.prototype.redSub=function(K){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},Q.prototype.redISub=function(K){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},Q.prototype.redShl=function(K){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},Q.prototype.redMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},Q.prototype.redIMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},Q.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Q.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Q.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Q.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Q.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Q.prototype.redPow=function(K){return Z(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var b={k256:null,p224:null,p192:null,p25519:null};function w(K,W){this.name=K,this.p=new Q(W,16),this.n=this.p.bitLength(),this.k=new Q(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}w.prototype._tmp=function(){var K=new Q(null);return K.words=new Array(Math.ceil(this.n/13)),K},w.prototype.ireduce=function(K){var W=K,U;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),U=W.bitLength();while(U>this.n);var V=U<this.n?-1:W.ucmp(this.p);return V===0?(W.words[0]=0,W.length=1):V>0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},w.prototype.split=function(K,W){K.iushrn(this.n,0,W)},w.prototype.imulK=function(K){return K.imul(this.k)};function g(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(g,w),g.prototype.split=function(K,W){for(var U=4194303,V=Math.min(K.length,9),H=0;H<V;H++)W.words[H]=K.words[H];if(W.length=V,K.length<=9){K.words[0]=0,K.length=1;return}var $=K.words[9];for(W.words[W.length++]=$&U,H=10;H<K.length;H++){var G=K.words[H]|0;K.words[H-10]=(G&U)<<4|$>>>22,$=G}$>>>=22,K.words[H-10]=$,$===0&&K.length>10?K.length-=10:K.length-=9},g.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var W=0,U=0;U<K.length;U++){var V=K.words[U]|0;W+=V*977,K.words[U]=W&67108863,W=V*64+(W/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function r(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(r,w);function t(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(t,w);function $0(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q($0,w),$0.prototype.imulK=function(K){for(var W=0,U=0;U<K.length;U++){var V=(K.words[U]|0)*19+W,H=V&67108863;V>>>=26,K.words[U]=H,W=V}return W!==0&&(K.words[K.length++]=W),K},Q._prime=function(K){if(b[K])return b[K];var W;if(K==="k256")W=new g;else if(K==="p224")W=new r;else if(K==="p192")W=new t;else if(K==="p25519")W=new $0;else throw new Error("Unknown prime "+K);return b[K]=W,W};function f(K){if(typeof K=="string"){var W=Q._prime(K);this.m=W.p,this.prime=W}else Z(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){Z(K.negative===0,"red works only with positives"),Z(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,W){Z((K.negative|W.negative)===0,"red works only with positives"),Z(K.red&&K.red===W.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,W){this._verify2(K,W);var U=K.add(W);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},f.prototype.iadd=function(K,W){this._verify2(K,W);var U=K.iadd(W);return U.cmp(this.m)>=0&&U.isub(this.m),U},f.prototype.sub=function(K,W){this._verify2(K,W);var U=K.sub(W);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},f.prototype.isub=function(K,W){this._verify2(K,W);var U=K.isub(W);return U.cmpn(0)<0&&U.iadd(this.m),U},f.prototype.shl=function(K,W){return this._verify1(K),this.imod(K.ushln(W))},f.prototype.imul=function(K,W){return this._verify2(K,W),this.imod(K.imul(W))},f.prototype.mul=function(K,W){return this._verify2(K,W),this.imod(K.mul(W))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var W=this.m.andln(3);if(Z(W%2===1),W===3){var U=this.m.add(new Q(1)).iushrn(2);return this.pow(K,U)}for(var V=this.m.subn(1),H=0;!V.isZero()&&V.andln(1)===0;)H++,V.iushrn(1);Z(!V.isZero());var $=new Q(1).toRed(this),G=$.redNeg(),Y=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new Q(2*X*X).toRed(this);this.pow(X,Y).cmp(G)!==0;)X.redIAdd(G);for(var F=this.pow(X,V),N=this.pow(K,V.addn(1).iushrn(1)),j=this.pow(K,V),A=H;j.cmp($)!==0;){for(var m=j,h=0;m.cmp($)!==0;h++)m=m.redSqr();Z(h<A);var e=this.pow(F,new Q(1).iushln(A-h-1));N=N.redMul(e),F=e.redSqr(),j=j.redMul(F),A=h}return N},f.prototype.invm=function(K){var W=K._invmp(this.m);return W.negative!==0?(W.negative=0,this.imod(W).redNeg()):this.imod(W)},f.prototype.pow=function(K,W){if(W.isZero())return new Q(1).toRed(this);if(W.cmpn(1)===0)return K.clone();var U=4,V=new Array(1<<U);V[0]=new Q(1).toRed(this),V[1]=K;for(var H=2;H<V.length;H++)V[H]=this.mul(V[H-1],K);var $=V[0],G=0,Y=0,X=W.bitLength()%26;for(X===0&&(X=26),H=W.length-1;H>=0;H--){for(var F=W.words[H],N=X-1;N>=0;N--){var j=F>>N&1;if($!==V[0]&&($=this.sqr($)),j===0&&G===0){Y=0;continue}G<<=1,G|=j,Y++,!(Y!==U&&(H!==0||N!==0))&&($=this.mul($,V[G]),Y=0,G=0)}X=26}return $},f.prototype.convertTo=function(K){var W=K.umod(this.m);return W===K?W.clone():W},f.prototype.convertFrom=function(K){var W=K.clone();return W.red=null,W},Q.mont=function(K){return new Z0(K)};function Z0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new Q(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q(Z0,f),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var W=this.imod(K.mul(this.rinv));return W.red=null,W},Z0.prototype.imul=function(K,W){if(K.isZero()||W.isZero())return K.words[0]=0,K.length=1,K;var U=K.imul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.mul=function(K,W){if(K.isZero()||W.isZero())return new Q(0)._forceRed(this);var U=K.mul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.invm=function(K){var W=this.imod(K._invmp(this.m).mul(this.r2));return W._forceRed(this)}})(typeof M>"u"||M,v)}),r6=z0((v)=>{var M=o5(),B=h0(),S=v;S.define=function(q,Q){return new Z(q,Q)};function Z(q,Q){this.name=q,this.body=Q,this.decoders={},this.encoders={}}Z.prototype._createNamed=function(q){var Q;try{Q=a4("vm").runInThisContext("(function "+this.name+`(entity) {
|
|
4
|
-
this._initNamed(entity);
|
|
5
|
-
})`)}catch{Q=function(O){this._initNamed(O)}}return B(Q,q),Q.prototype._initNamed=function(O){q.call(this,O)},new Q(this)},Z.prototype._getDecoder=function(q){return q=q||"der",this.decoders.hasOwnProperty(q)||(this.decoders[q]=this._createNamed(M.decoders[q])),this.decoders[q]},Z.prototype.decode=function(q,Q,O){return this._getDecoder(Q).decode(q,O)},Z.prototype._getEncoder=function(q){return q=q||"der",this.encoders.hasOwnProperty(q)||(this.encoders[q]=this._createNamed(M.encoders[q])),this.encoders[q]},Z.prototype.encode=function(q,Q,O){return this._getEncoder(Q).encode(q,O)}}),t6=z0((v)=>{var M=h0();function B(Z){this._reporterState={obj:null,path:[],options:Z||{},errors:[]}}v.Reporter=B,B.prototype.isError=function(Z){return Z instanceof S},B.prototype.save=function(){var Z=this._reporterState;return{obj:Z.obj,pathLen:Z.path.length}},B.prototype.restore=function(Z){var q=this._reporterState;q.obj=Z.obj,q.path=q.path.slice(0,Z.pathLen)},B.prototype.enterKey=function(Z){return this._reporterState.path.push(Z)},B.prototype.exitKey=function(Z){var q=this._reporterState;q.path=q.path.slice(0,Z-1)},B.prototype.leaveKey=function(Z,q,Q){var O=this._reporterState;this.exitKey(Z),O.obj!==null&&(O.obj[q]=Q)},B.prototype.path=function(){return this._reporterState.path.join("/")},B.prototype.enterObject=function(){var Z=this._reporterState,q=Z.obj;return Z.obj={},q},B.prototype.leaveObject=function(Z){var q=this._reporterState,Q=q.obj;return q.obj=Z,Q},B.prototype.error=function(Z){var q,Q=this._reporterState,O=Z instanceof S;if(O?q=Z:q=new S(Q.path.map(function(k){return"["+JSON.stringify(k)+"]"}).join(""),Z.message||Z,Z.stack),!Q.options.partial)throw q;return O||Q.errors.push(q),q},B.prototype.wrapResult=function(Z){var q=this._reporterState;return q.options.partial?{result:this.isError(Z)?null:Z,errors:q.errors}:Z};function S(Z,q){this.path=Z,this.rethrow(q)}M(S,Error),S.prototype.rethrow=function(Z){if(this.message=Z+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,S),!this.stack)try{throw new Error(this.message)}catch(q){this.stack=q.stack}return this}}),g9=z0((v)=>{var M=h0(),B=v5().Reporter,S=j5().Buffer;function Z(Q,O){if(B.call(this,O),!S.isBuffer(Q)){this.error("Input not Buffer");return}this.base=Q,this.offset=0,this.length=Q.length}M(Z,B),v.DecoderBuffer=Z,Z.prototype.save=function(){return{offset:this.offset,reporter:B.prototype.save.call(this)}},Z.prototype.restore=function(Q){var O=new Z(this.base);return O.offset=Q.offset,O.length=this.offset,this.offset=Q.offset,B.prototype.restore.call(this,Q.reporter),O},Z.prototype.isEmpty=function(){return this.offset===this.length},Z.prototype.readUInt8=function(Q){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(Q||"DecoderBuffer overrun")},Z.prototype.skip=function(Q,O){if(!(this.offset+Q<=this.length))return this.error(O||"DecoderBuffer overrun");var k=new Z(this.base);return k._reporterState=this._reporterState,k.offset=this.offset,k.length=this.offset+Q,this.offset+=Q,k},Z.prototype.raw=function(Q){return this.base.slice(Q?Q.offset:this.offset,this.length)};function q(Q,O){if(Array.isArray(Q))this.length=0,this.value=Q.map(function(k){return k instanceof q||(k=new q(k,O)),this.length+=k.length,k},this);else if(typeof Q=="number"){if(!(0<=Q&&Q<=255))return O.error("non-byte EncoderBuffer value");this.value=Q,this.length=1}else if(typeof Q=="string")this.value=Q,this.length=S.byteLength(Q);else if(S.isBuffer(Q))this.value=Q,this.length=Q.length;else return O.error("Unsupported type: "+typeof Q)}v.EncoderBuffer=q,q.prototype.join=function(Q,O){return Q||(Q=new S(this.length)),O||(O=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(k){k.join(Q,O),O+=k.length}):(typeof this.value=="number"?Q[O]=this.value:typeof this.value=="string"?Q.write(this.value,O):S.isBuffer(this.value)&&this.value.copy(Q,O),O+=this.length)),Q}}),e6=z0((v,M)=>{var B=v5().Reporter,S=v5().EncoderBuffer,Z=v5().DecoderBuffer,q=C5(),Q=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],O=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Q),k=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function C(P,J){var T={};this._baseState=T,T.enc=P,T.parent=J||null,T.children=null,T.tag=null,T.args=null,T.reverseArgs=null,T.choice=null,T.optional=!1,T.any=!1,T.obj=!1,T.use=null,T.useDecoder=null,T.key=null,T.default=null,T.explicit=null,T.implicit=null,T.contains=null,T.parent||(T.children=[],this._wrap())}M.exports=C;var D=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];C.prototype.clone=function(){var P=this._baseState,J={};D.forEach(function(z){J[z]=P[z]});var T=new this.constructor(J.parent);return T._baseState=J,T},C.prototype._wrap=function(){var P=this._baseState;O.forEach(function(J){this[J]=function(){var T=new this.constructor(this);return P.children.push(T),T[J].apply(T,arguments)}},this)},C.prototype._init=function(P){var J=this._baseState;q(J.parent===null),P.call(this),J.children=J.children.filter(function(T){return T._baseState.parent===this},this),q.equal(J.children.length,1,"Root node can have only one child")},C.prototype._useArgs=function(P){var J=this._baseState,T=P.filter(function(z){return z instanceof this.constructor},this);P=P.filter(function(z){return!(z instanceof this.constructor)},this),T.length!==0&&(q(J.children===null),J.children=T,T.forEach(function(z){z._baseState.parent=this},this)),P.length!==0&&(q(J.args===null),J.args=P,J.reverseArgs=P.map(function(z){if(typeof z!="object"||z.constructor!==Object)return z;var I={};return Object.keys(z).forEach(function(L){L==(L|0)&&(L|=0);var p=z[L];I[p]=L}),I}))},k.forEach(function(P){C.prototype[P]=function(){var J=this._baseState;throw new Error(P+" not implemented for encoding: "+J.enc)}}),Q.forEach(function(P){C.prototype[P]=function(){var J=this._baseState,T=Array.prototype.slice.call(arguments);return q(J.tag===null),J.tag=P,this._useArgs(T),this}}),C.prototype.use=function(P){q(P);var J=this._baseState;return q(J.use===null),J.use=P,this},C.prototype.optional=function(){var P=this._baseState;return P.optional=!0,this},C.prototype.def=function(P){var J=this._baseState;return q(J.default===null),J.default=P,J.optional=!0,this},C.prototype.explicit=function(P){var J=this._baseState;return q(J.explicit===null&&J.implicit===null),J.explicit=P,this},C.prototype.implicit=function(P){var J=this._baseState;return q(J.explicit===null&&J.implicit===null),J.implicit=P,this},C.prototype.obj=function(){var P=this._baseState,J=Array.prototype.slice.call(arguments);return P.obj=!0,J.length!==0&&this._useArgs(J),this},C.prototype.key=function(P){var J=this._baseState;return q(J.key===null),J.key=P,this},C.prototype.any=function(){var P=this._baseState;return P.any=!0,this},C.prototype.choice=function(P){var J=this._baseState;return q(J.choice===null),J.choice=P,this._useArgs(Object.keys(P).map(function(T){return P[T]})),this},C.prototype.contains=function(P){var J=this._baseState;return q(J.use===null),J.contains=P,this},C.prototype._decode=function(P,J){var T=this._baseState;if(T.parent===null)return P.wrapResult(T.children[0]._decode(P,J));var z=T.default,I=!0,L=null;if(T.key!==null&&(L=P.enterKey(T.key)),T.optional){var p=null;if(T.explicit!==null?p=T.explicit:T.implicit!==null?p=T.implicit:T.tag!==null&&(p=T.tag),p===null&&!T.any){var E=P.save();try{T.choice===null?this._decodeGeneric(T.tag,P,J):this._decodeChoice(P,J),I=!0}catch{I=!1}P.restore(E)}else if(I=this._peekTag(P,p,T.any),P.isError(I))return I}var x;if(T.obj&&I&&(x=P.enterObject()),I){if(T.explicit!==null){var b=this._decodeTag(P,T.explicit);if(P.isError(b))return b;P=b}var w=P.offset;if(T.use===null&&T.choice===null){if(T.any)var E=P.save();var g=this._decodeTag(P,T.implicit!==null?T.implicit:T.tag,T.any);if(P.isError(g))return g;T.any?z=P.raw(E):P=g}if(J&&J.track&&T.tag!==null&&J.track(P.path(),w,P.length,"tagged"),J&&J.track&&T.tag!==null&&J.track(P.path(),P.offset,P.length,"content"),T.any?z=z:T.choice===null?z=this._decodeGeneric(T.tag,P,J):z=this._decodeChoice(P,J),P.isError(z))return z;if(!T.any&&T.choice===null&&T.children!==null&&T.children.forEach(function(t){t._decode(P,J)}),T.contains&&(T.tag==="octstr"||T.tag==="bitstr")){var r=new Z(z);z=this._getUse(T.contains,P._reporterState.obj)._decode(r,J)}}return T.obj&&I&&(z=P.leaveObject(x)),T.key!==null&&(z!==null||I===!0)?P.leaveKey(L,T.key,z):L!==null&&P.exitKey(L),z},C.prototype._decodeGeneric=function(P,J,T){var z=this._baseState;return P==="seq"||P==="set"?null:P==="seqof"||P==="setof"?this._decodeList(J,P,z.args[0],T):/str$/.test(P)?this._decodeStr(J,P,T):P==="objid"&&z.args?this._decodeObjid(J,z.args[0],z.args[1],T):P==="objid"?this._decodeObjid(J,null,null,T):P==="gentime"||P==="utctime"?this._decodeTime(J,P,T):P==="null_"?this._decodeNull(J,T):P==="bool"?this._decodeBool(J,T):P==="objDesc"?this._decodeStr(J,P,T):P==="int"||P==="enum"?this._decodeInt(J,z.args&&z.args[0],T):z.use!==null?this._getUse(z.use,J._reporterState.obj)._decode(J,T):J.error("unknown tag: "+P)},C.prototype._getUse=function(P,J){var T=this._baseState;return T.useDecoder=this._use(P,J),q(T.useDecoder._baseState.parent===null),T.useDecoder=T.useDecoder._baseState.children[0],T.implicit!==T.useDecoder._baseState.implicit&&(T.useDecoder=T.useDecoder.clone(),T.useDecoder._baseState.implicit=T.implicit),T.useDecoder},C.prototype._decodeChoice=function(P,J){var T=this._baseState,z=null,I=!1;return Object.keys(T.choice).some(function(L){var p=P.save(),E=T.choice[L];try{var x=E._decode(P,J);if(P.isError(x))return!1;z={type:L,value:x},I=!0}catch{return P.restore(p),!1}return!0},this),I?z:P.error("Choice not matched")},C.prototype._createEncoderBuffer=function(P){return new S(P,this.reporter)},C.prototype._encode=function(P,J,T){var z=this._baseState;if(!(z.default!==null&&z.default===P)){var I=this._encodeValue(P,J,T);if(I!==void 0&&!this._skipDefault(I,J,T))return I}},C.prototype._encodeValue=function(P,J,T){var z=this._baseState;if(z.parent===null)return z.children[0]._encode(P,J||new B);var E=null;if(this.reporter=J,z.optional&&P===void 0)if(z.default!==null)P=z.default;else return;var I=null,L=!1;if(z.any)E=this._createEncoderBuffer(P);else if(z.choice)E=this._encodeChoice(P,J);else if(z.contains)I=this._getUse(z.contains,T)._encode(P,J),L=!0;else if(z.children)I=z.children.map(function(w){if(w._baseState.tag==="null_")return w._encode(null,J,P);if(w._baseState.key===null)return J.error("Child should have a key");var g=J.enterKey(w._baseState.key);if(typeof P!="object")return J.error("Child expected, but input is not object");var r=w._encode(P[w._baseState.key],J,P);return J.leaveKey(g),r},this).filter(function(w){return w}),I=this._createEncoderBuffer(I);else if(z.tag==="seqof"||z.tag==="setof"){if(!(z.args&&z.args.length===1))return J.error("Too many args for : "+z.tag);if(!Array.isArray(P))return J.error("seqof/setof, but data is not Array");var p=this.clone();p._baseState.implicit=null,I=this._createEncoderBuffer(P.map(function(w){var g=this._baseState;return this._getUse(g.args[0],P)._encode(w,J)},p))}else z.use!==null?E=this._getUse(z.use,T)._encode(P,J):(I=this._encodePrimitive(z.tag,P),L=!0);var E;if(!z.any&&z.choice===null){var x=z.implicit!==null?z.implicit:z.tag,b=z.implicit===null?"universal":"context";x===null?z.use===null&&J.error("Tag could be omitted only for .use()"):z.use===null&&(E=this._encodeComposite(x,L,b,I))}return z.explicit!==null&&(E=this._encodeComposite(z.explicit,!1,"context",E)),E},C.prototype._encodeChoice=function(P,J){var T=this._baseState,z=T.choice[P.type];return z||q(!1,P.type+" not found in "+JSON.stringify(Object.keys(T.choice))),z._encode(P.value,J)},C.prototype._encodePrimitive=function(P,J){var T=this._baseState;if(/str$/.test(P))return this._encodeStr(J,P);if(P==="objid"&&T.args)return this._encodeObjid(J,T.reverseArgs[0],T.args[1]);if(P==="objid")return this._encodeObjid(J,null,null);if(P==="gentime"||P==="utctime")return this._encodeTime(J,P);if(P==="null_")return this._encodeNull();if(P==="int"||P==="enum")return this._encodeInt(J,T.args&&T.reverseArgs[0]);if(P==="bool")return this._encodeBool(J);if(P==="objDesc")return this._encodeStr(J,P);throw new Error("Unsupported tag: "+P)},C.prototype._isNumstr=function(P){return/^[0-9 ]*$/.test(P)},C.prototype._isPrintstr=function(P){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(P)}}),v5=z0((v)=>{var M=v;M.Reporter=t6().Reporter,M.DecoderBuffer=g9().DecoderBuffer,M.EncoderBuffer=g9().EncoderBuffer,M.Node=e6()}),K7=z0((v)=>{var M=q4();v.tagClass={0:"universal",1:"application",2:"context",3:"private"},v.tagClassByName=M._reverse(v.tagClass),v.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},v.tagByName=M._reverse(v.tag)}),q4=z0((v)=>{var M=v;M._reverse=function(B){var S={};return Object.keys(B).forEach(function(Z){(Z|0)==Z&&(Z=Z|0);var q=B[Z];S[q]=Z}),S},M.der=K7()}),B4=z0((v,M)=>{var B=h0(),S=o5(),Z=S.base,q=S.bignum,Q=S.constants.der;function O(P){this.enc="der",this.name=P.name,this.entity=P,this.tree=new k,this.tree._init(P.body)}M.exports=O,O.prototype.decode=function(P,J){return P instanceof Z.DecoderBuffer||(P=new Z.DecoderBuffer(P,J)),this.tree._decode(P,J)};function k(P){Z.Node.call(this,"der",P)}B(k,Z.Node),k.prototype._peekTag=function(P,J,T){if(P.isEmpty())return!1;var z=P.save(),I=C(P,'Failed to peek tag: "'+J+'"');return P.isError(I)?I:(P.restore(z),I.tag===J||I.tagStr===J||I.tagStr+"of"===J||T)},k.prototype._decodeTag=function(P,J,T){var z=C(P,'Failed to decode tag of "'+J+'"');if(P.isError(z))return z;var I=D(P,z.primitive,'Failed to get length of "'+J+'"');if(P.isError(I))return I;if(!T&&z.tag!==J&&z.tagStr!==J&&z.tagStr+"of"!==J)return P.error('Failed to match tag: "'+J+'"');if(z.primitive||I!==null)return P.skip(I,'Failed to match body of: "'+J+'"');var L=P.save(),p=this._skipUntilEnd(P,'Failed to skip indefinite length body: "'+this.tag+'"');return P.isError(p)?p:(I=P.offset-L.offset,P.restore(L),P.skip(I,'Failed to match body of: "'+J+'"'))},k.prototype._skipUntilEnd=function(P,J){for(;;){var T=C(P,J);if(P.isError(T))return T;var z=D(P,T.primitive,J);if(P.isError(z))return z;var I;if(T.primitive||z!==null?I=P.skip(z):I=this._skipUntilEnd(P,J),P.isError(I))return I;if(T.tagStr==="end")break}},k.prototype._decodeList=function(P,J,T,z){for(var I=[];!P.isEmpty();){var L=this._peekTag(P,"end");if(P.isError(L))return L;var p=T.decode(P,"der",z);if(P.isError(p)&&L)break;I.push(p)}return I},k.prototype._decodeStr=function(P,J){if(J==="bitstr"){var T=P.readUInt8();return P.isError(T)?T:{unused:T,data:P.raw()}}else if(J==="bmpstr"){var z=P.raw();if(z.length%2===1)return P.error("Decoding of string type: bmpstr length mismatch");for(var I="",L=0;L<z.length/2;L++)I+=String.fromCharCode(z.readUInt16BE(L*2));return I}else if(J==="numstr"){var p=P.raw().toString("ascii");return this._isNumstr(p)?p:P.error("Decoding of string type: numstr unsupported characters")}else{if(J==="octstr")return P.raw();if(J==="objDesc")return P.raw();if(J==="printstr"){var E=P.raw().toString("ascii");return this._isPrintstr(E)?E:P.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(J)?P.raw().toString():P.error("Decoding of string type: "+J+" unsupported")}},k.prototype._decodeObjid=function(P,J,T){for(var z,I=[],L=0;!P.isEmpty();){var p=P.readUInt8();L<<=7,L|=p&127,(p&128)===0&&(I.push(L),L=0)}p&128&&I.push(L);var E=I[0]/40|0,x=I[0]%40;if(T?z=I:z=[E,x].concat(I.slice(1)),J){var b=J[z.join(" ")];b===void 0&&(b=J[z.join(".")]),b!==void 0&&(z=b)}return z},k.prototype._decodeTime=function(P,J){var T=P.raw().toString();if(J==="gentime")var z=T.slice(0,4)|0,I=T.slice(4,6)|0,L=T.slice(6,8)|0,p=T.slice(8,10)|0,E=T.slice(10,12)|0,x=T.slice(12,14)|0;else if(J==="utctime"){var z=T.slice(0,2)|0,I=T.slice(2,4)|0,L=T.slice(4,6)|0,p=T.slice(6,8)|0,E=T.slice(8,10)|0,x=T.slice(10,12)|0;z<70?z=2000+z:z=1900+z}else return P.error("Decoding "+J+" time is not supported yet");return Date.UTC(z,I-1,L,p,E,x,0)},k.prototype._decodeNull=function(P){return null},k.prototype._decodeBool=function(P){var J=P.readUInt8();return P.isError(J)?J:J!==0},k.prototype._decodeInt=function(P,J){var T=P.raw(),z=new q(T);return J&&(z=J[z.toString(10)]||z),z},k.prototype._use=function(P,J){return typeof P=="function"&&(P=P(J)),P._getDecoder("der").tree};function C(P,J){var T=P.readUInt8(J);if(P.isError(T))return T;var z=Q.tagClass[T>>6],I=(T&32)===0;if((T&31)===31){var L=T;for(T=0;(L&128)===128;){if(L=P.readUInt8(J),P.isError(L))return L;T<<=7,T|=L&127}}else T&=31;var p=Q.tag[T];return{cls:z,primitive:I,tag:T,tagStr:p}}function D(P,J,T){var z=P.readUInt8(T);if(P.isError(z))return z;if(!J&&z===128)return null;if((z&128)===0)return z;var I=z&127;if(I>4)return P.error("length octect is too long");z=0;for(var L=0;L<I;L++){z<<=8;var p=P.readUInt8(T);if(P.isError(p))return p;z|=p}return z}}),X7=z0((v,M)=>{var B=h0(),S=j5().Buffer,Z=B4();function q(Q){Z.call(this,Q),this.enc="pem"}B(q,Z),M.exports=q,q.prototype.decode=function(Q,O){for(var k=Q.toString().split(/[\r\n]+/g),C=O.label.toUpperCase(),D=/^-----(BEGIN|END) ([^-]+)-----$/,P=-1,J=-1,T=0;T<k.length;T++){var z=k[T].match(D);if(z!==null&&z[2]===C)if(P===-1){if(z[1]!=="BEGIN")break;P=T}else{if(z[1]!=="END")break;J=T;break}}if(P===-1||J===-1)throw new Error("PEM section not found for: "+C);var I=k.slice(P+1,J).join("");I.replace(/[^a-z0-9\+\/=]+/gi,"");var L=new S(I,"base64");return Z.prototype.decode.call(this,L,O)}}),W7=z0((v)=>{var M=v;M.der=B4(),M.pem=X7()}),E4=z0((v,M)=>{var B=h0(),S=j5().Buffer,Z=o5(),q=Z.base,Q=Z.constants.der;function O(P){this.enc="der",this.name=P.name,this.entity=P,this.tree=new k,this.tree._init(P.body)}M.exports=O,O.prototype.encode=function(P,J){return this.tree._encode(P,J).join()};function k(P){q.Node.call(this,"der",P)}B(k,q.Node),k.prototype._encodeComposite=function(P,J,T,z){var I=D(P,J,T,this.reporter);if(z.length<128){var E=new S(2);return E[0]=I,E[1]=z.length,this._createEncoderBuffer([E,z])}for(var L=1,p=z.length;p>=256;p>>=8)L++;var E=new S(2+L);E[0]=I,E[1]=128|L;for(var p=1+L,x=z.length;x>0;p--,x>>=8)E[p]=x&255;return this._createEncoderBuffer([E,z])},k.prototype._encodeStr=function(P,J){if(J==="bitstr")return this._createEncoderBuffer([P.unused|0,P.data]);if(J==="bmpstr"){for(var T=new S(P.length*2),z=0;z<P.length;z++)T.writeUInt16BE(P.charCodeAt(z),z*2);return this._createEncoderBuffer(T)}else return J==="numstr"?this._isNumstr(P)?this._createEncoderBuffer(P):this.reporter.error("Encoding of string type: numstr supports only digits and space"):J==="printstr"?this._isPrintstr(P)?this._createEncoderBuffer(P):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(J)?this._createEncoderBuffer(P):J==="objDesc"?this._createEncoderBuffer(P):this.reporter.error("Encoding of string type: "+J+" unsupported")},k.prototype._encodeObjid=function(P,J,T){if(typeof P=="string"){if(!J)return this.reporter.error("string objid given, but no values map found");if(!J.hasOwnProperty(P))return this.reporter.error("objid not found in values map");P=J[P].split(/[\s\.]+/g);for(var z=0;z<P.length;z++)P[z]|=0}else if(Array.isArray(P)){P=P.slice();for(var z=0;z<P.length;z++)P[z]|=0}if(!Array.isArray(P))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(P));if(!T){if(P[1]>=40)return this.reporter.error("Second objid identifier OOB");P.splice(0,2,P[0]*40+P[1])}for(var I=0,z=0;z<P.length;z++){var L=P[z];for(I++;L>=128;L>>=7)I++}for(var p=new S(I),E=p.length-1,z=P.length-1;z>=0;z--){var L=P[z];for(p[E--]=L&127;(L>>=7)>0;)p[E--]=128|L&127}return this._createEncoderBuffer(p)};function C(P){return P<10?"0"+P:P}k.prototype._encodeTime=function(P,J){var T,z=new Date(P);return J==="gentime"?T=[C(z.getFullYear()),C(z.getUTCMonth()+1),C(z.getUTCDate()),C(z.getUTCHours()),C(z.getUTCMinutes()),C(z.getUTCSeconds()),"Z"].join(""):J==="utctime"?T=[C(z.getFullYear()%100),C(z.getUTCMonth()+1),C(z.getUTCDate()),C(z.getUTCHours()),C(z.getUTCMinutes()),C(z.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+J+" time is not supported yet"),this._encodeStr(T,"octstr")},k.prototype._encodeNull=function(){return this._createEncoderBuffer("")},k.prototype._encodeInt=function(P,J){if(typeof P=="string"){if(!J)return this.reporter.error("String int or enum given, but no values map");if(!J.hasOwnProperty(P))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(P));P=J[P]}if(typeof P!="number"&&!S.isBuffer(P)){var T=P.toArray();!P.sign&&T[0]&128&&T.unshift(0),P=new S(T)}if(S.isBuffer(P)){var z=P.length;P.length===0&&z++;var I=new S(z);return P.copy(I),P.length===0&&(I[0]=0),this._createEncoderBuffer(I)}if(P<128)return this._createEncoderBuffer(P);if(P<256)return this._createEncoderBuffer([0,P]);for(var z=1,L=P;L>=256;L>>=8)z++;for(var I=new Array(z),L=I.length-1;L>=0;L--)I[L]=P&255,P>>=8;return I[0]&128&&I.unshift(0),this._createEncoderBuffer(new S(I))},k.prototype._encodeBool=function(P){return this._createEncoderBuffer(P?255:0)},k.prototype._use=function(P,J){return typeof P=="function"&&(P=P(J)),P._getEncoder("der").tree},k.prototype._skipDefault=function(P,J,T){var z=this._baseState,I;if(z.default===null)return!1;var L=P.join();if(z.defaultBuffer===void 0&&(z.defaultBuffer=this._encodeValue(z.default,J,T).join()),L.length!==z.defaultBuffer.length)return!1;for(I=0;I<L.length;I++)if(L[I]!==z.defaultBuffer[I])return!1;return!0};function D(P,J,T,z){var I;if(P==="seqof"?P="seq":P==="setof"&&(P="set"),Q.tagByName.hasOwnProperty(P))I=Q.tagByName[P];else if(typeof P=="number"&&(P|0)===P)I=P;else return z.error("Unknown tag: "+P);return I>=31?z.error("Multi-octet tag encoding unsupported"):(J||(I|=32),I|=Q.tagClassByName[T||"universal"]<<6,I)}}),V7=z0((v,M)=>{var B=h0(),S=E4();function Z(q){S.call(this,q),this.enc="pem"}B(Z,S),M.exports=Z,Z.prototype.encode=function(q,Q){for(var O=S.prototype.encode.call(this,q),k=O.toString("base64"),C=["-----BEGIN "+Q.label+"-----"],D=0;D<k.length;D+=64)C.push(k.slice(D,D+64));return C.push("-----END "+Q.label+"-----"),C.join(`
|
|
6
|
-
`)}}),U7=z0((v)=>{var M=v;M.der=E4(),M.pem=V7()}),o5=z0((v)=>{var M=v;M.bignum=i6(),M.define=r6().define,M.base=v5(),M.constants=q4(),M.decoders=W7(),M.encoders=U7()}),H7=z0((v,M)=>{var B=o5(),S=B.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),Z=B.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),q=B.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),Q=B.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(q),this.key("subjectPublicKey").bitstr())}),O=B.define("RelativeDistinguishedName",function(){this.setof(Z)}),k=B.define("RDNSequence",function(){this.seqof(O)}),C=B.define("Name",function(){this.choice({rdnSequence:this.use(k)})}),D=B.define("Validity",function(){this.seq().obj(this.key("notBefore").use(S),this.key("notAfter").use(S))}),P=B.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),J=B.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(q),this.key("issuer").use(C),this.key("validity").use(D),this.key("subject").use(C),this.key("subjectPublicKeyInfo").use(Q),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(P).optional())}),T=B.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(J),this.key("signatureAlgorithm").use(q),this.key("signatureValue").bitstr())});M.exports=T}),Y7=z0((v)=>{var M=o5();v.certificate=H7();var B=M.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});v.RSAPrivateKey=B;var S=M.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});v.RSAPublicKey=S;var Z=M.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),q=M.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Z),this.key("subjectPublicKey").bitstr())});v.PublicKey=q;var Q=M.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Z),this.key("subjectPrivateKey").octstr())});v.PrivateKey=Q;var O=M.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});v.EncryptedPrivateKey=O;var k=M.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});v.DSAPrivateKey=k,v.DSAparam=M.define("DSAparam",function(){this.int()});var C=M.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),D=M.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(C),this.key("publicKey").optional().explicit(1).bitstr())});v.ECPrivateKey=D,v.signature=M.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),F7=z0((v,M)=>{M.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}),Q7=z0((v,M)=>{var B=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,S=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,Z=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,q=V9(),Q=k9(),O=l0().Buffer;M.exports=function(k,C){var D=k.toString(),P=D.match(B),J;if(P){var T="aes"+P[1],z=O.from(P[2],"hex"),I=O.from(P[3].replace(/[\r\n]/g,""),"base64"),L=q(C,z.slice(0,8),parseInt(P[1],10)).key,p=[],E=Q.createDecipheriv(T,L,z);p.push(E.update(I)),p.push(E.final()),J=O.concat(p)}else{var x=D.match(Z);J=O.from(x[2].replace(/[\r\n]/g,""),"base64")}var b=D.match(S)[1];return{tag:b,data:J}}}),Y9=z0((v,M)=>{var B=Y7(),S=F7(),Z=Q7(),q=k9(),Q=U4(),O=l0().Buffer;function k(D,P){var J=D.algorithm.decrypt.kde.kdeparams.salt,T=parseInt(D.algorithm.decrypt.kde.kdeparams.iters.toString(),10),z=S[D.algorithm.decrypt.cipher.algo.join(".")],I=D.algorithm.decrypt.cipher.iv,L=D.subjectPrivateKey,p=parseInt(z.split("-")[1],10)/8,E=Q.pbkdf2Sync(P,J,T,p,"sha1"),x=q.createDecipheriv(z,E,I),b=[];return b.push(x.update(L)),b.push(x.final()),O.concat(b)}function C(D){var P;typeof D=="object"&&!O.isBuffer(D)&&(P=D.passphrase,D=D.key),typeof D=="string"&&(D=O.from(D));var J=Z(D,P),T=J.tag,z=J.data,I,L;switch(T){case"CERTIFICATE":L=B.certificate.decode(z,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(L||(L=B.PublicKey.decode(z,"der")),I=L.algorithm.algorithm.join("."),I){case"1.2.840.113549.1.1.1":return B.RSAPublicKey.decode(L.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return L.subjectPrivateKey=L.subjectPublicKey,{type:"ec",data:L};case"1.2.840.10040.4.1":return L.algorithm.params.pub_key=B.DSAparam.decode(L.subjectPublicKey.data,"der"),{type:"dsa",data:L.algorithm.params};default:throw new Error("unknown key id "+I)}case"ENCRYPTED PRIVATE KEY":z=B.EncryptedPrivateKey.decode(z,"der"),z=k(z,P);case"PRIVATE KEY":switch(L=B.PrivateKey.decode(z,"der"),I=L.algorithm.algorithm.join("."),I){case"1.2.840.113549.1.1.1":return B.RSAPrivateKey.decode(L.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:L.algorithm.curve,privateKey:B.ECPrivateKey.decode(L.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return L.algorithm.params.priv_key=B.DSAparam.decode(L.subjectPrivateKey,"der"),{type:"dsa",params:L.algorithm.params};default:throw new Error("unknown key id "+I)}case"RSA PUBLIC KEY":return B.RSAPublicKey.decode(z,"der");case"RSA PRIVATE KEY":return B.RSAPrivateKey.decode(z,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:B.DSAPrivateKey.decode(z,"der")};case"EC PRIVATE KEY":return z=B.ECPrivateKey.decode(z,"der"),{curve:z.parameters.value,privateKey:z.privateKey};default:throw new Error("unknown key type "+T)}}C.signature=B.signature,M.exports=C}),S4=z0((v,M)=>{M.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}),$7=z0((v,M)=>{var B=l0().Buffer,S=t9(),Z=B9(),q=A9().ec,Q=q9(),O=Y9(),k=S4(),C=1;function D(x,b,w,g,r){var t=O(b);if(t.curve){if(g!=="ecdsa"&&g!=="ecdsa/rsa")throw new Error("wrong private key type");return P(x,t)}else if(t.type==="dsa"){if(g!=="dsa")throw new Error("wrong private key type");return J(x,t,w)}if(g!=="rsa"&&g!=="ecdsa/rsa")throw new Error("wrong private key type");if(b.padding!==void 0&&b.padding!==C)throw new Error("illegal or unsupported padding mode");x=B.concat([r,x]);for(var $0=t.modulus.byteLength(),f=[0,1];x.length+f.length+1<$0;)f.push(255);f.push(0);for(var Z0=-1;++Z0<x.length;)f.push(x[Z0]);var K=Z(f,t);return K}function P(x,b){var w=k[b.curve.join(".")];if(!w)throw new Error("unknown curve "+b.curve.join("."));var g=new q(w),r=g.keyFromPrivate(b.privateKey),t=r.sign(x);return B.from(t.toDER())}function J(x,b,w){for(var g=b.params.priv_key,r=b.params.p,t=b.params.q,$0=b.params.g,f=new Q(0),Z0,K=I(x,t).mod(t),W=!1,U=z(g,t,x,w);W===!1;)Z0=p(t,U,w),f=E($0,Z0,r,t),W=Z0.invm(t).imul(K.add(g.mul(f))).mod(t),W.cmpn(0)===0&&(W=!1,f=new Q(0));return T(f,W)}function T(x,b){x=x.toArray(),b=b.toArray(),x[0]&128&&(x=[0].concat(x)),b[0]&128&&(b=[0].concat(b));var w=x.length+b.length+4,g=[48,w,2,x.length];return g=g.concat(x,[2,b.length],b),B.from(g)}function z(x,b,w,g){if(x=B.from(x.toArray()),x.length<b.byteLength()){var r=B.alloc(b.byteLength()-x.length);x=B.concat([r,x])}var t=w.length,$0=L(w,b),f=B.alloc(t);f.fill(1);var Z0=B.alloc(t);return Z0=S(g,Z0).update(f).update(B.from([0])).update(x).update($0).digest(),f=S(g,Z0).update(f).digest(),Z0=S(g,Z0).update(f).update(B.from([1])).update(x).update($0).digest(),f=S(g,Z0).update(f).digest(),{k:Z0,v:f}}function I(x,b){var w=new Q(x),g=(x.length<<3)-b.bitLength();return g>0&&w.ishrn(g),w}function L(x,b){x=I(x,b),x=x.mod(b);var w=B.from(x.toArray());if(w.length<b.byteLength()){var g=B.alloc(b.byteLength()-w.length);w=B.concat([g,w])}return w}function p(x,b,w){var g,r;do{for(g=B.alloc(0);g.length*8<x.bitLength();)b.v=S(w,b.k).update(b.v).digest(),g=B.concat([g,b.v]);r=I(g,x),b.k=S(w,b.k).update(b.v).update(B.from([0])).digest(),b.v=S(w,b.k).update(b.v).digest()}while(r.cmp(x)!==-1);return r}function E(x,b,w,g){return x.toRed(Q.mont(w)).redPow(b).fromRed().mod(g)}M.exports=D,M.exports.getKey=z,M.exports.makeKey=p}),G7=z0((v,M)=>{var B=l0().Buffer,S=q9(),Z=A9().ec,q=Y9(),Q=S4();function O(P,J,T,z,I){var L=q(T);if(L.type==="ec"){if(z!=="ecdsa"&&z!=="ecdsa/rsa")throw new Error("wrong public key type");return k(P,J,L)}else if(L.type==="dsa"){if(z!=="dsa")throw new Error("wrong public key type");return C(P,J,L)}if(z!=="rsa"&&z!=="ecdsa/rsa")throw new Error("wrong public key type");J=B.concat([I,J]);for(var p=L.modulus.byteLength(),E=[1],x=0;J.length+E.length+2<p;)E.push(255),x+=1;E.push(0);for(var b=-1;++b<J.length;)E.push(J[b]);E=B.from(E);var w=S.mont(L.modulus);P=new S(P).toRed(w),P=P.redPow(new S(L.publicExponent)),P=B.from(P.fromRed().toArray());var g=x<8?1:0;for(p=Math.min(P.length,E.length),P.length!==E.length&&(g=1),b=-1;++b<p;)g|=P[b]^E[b];return g===0}function k(P,J,T){var z=Q[T.data.algorithm.curve.join(".")];if(!z)throw new Error("unknown curve "+T.data.algorithm.curve.join("."));var I=new Z(z),L=T.data.subjectPrivateKey.data;return I.verify(J,P,L)}function C(P,J,T){var z=T.data.p,I=T.data.q,L=T.data.g,p=T.data.pub_key,E=q.signature.decode(P,"der"),x=E.s,b=E.r;D(x,I),D(b,I);var w=S.mont(z),g=x.invm(I),r=L.toRed(w).redPow(new S(J).mul(g).mod(I)).fromRed().mul(p.toRed(w).redPow(b.mul(g).mod(I)).fromRed()).mod(z).mod(I);return r.cmp(b)===0}function D(P,J){if(P.cmpn(0)<=0)throw new Error("invalid sig");if(P.cmp(J)>=0)throw new Error("invalid sig")}M.exports=O}),P7=z0((v,M)=>{var B=l0().Buffer,S=l5(),Z=_6(),q=h0(),Q=$7(),O=G7(),k=e9();Object.keys(k).forEach(function(T){k[T].id=B.from(k[T].id,"hex"),k[T.toLowerCase()]=k[T]});function C(T){Z.Writable.call(this);var z=k[T];if(!z)throw new Error("Unknown message digest");this._hashType=z.hash,this._hash=S(z.hash),this._tag=z.id,this._signType=z.sign}q(C,Z.Writable),C.prototype._write=function(T,z,I){this._hash.update(T),I()},C.prototype.update=function(T,z){return this._hash.update(typeof T=="string"?B.from(T,z):T),this},C.prototype.sign=function(T,z){this.end();var I=this._hash.digest(),L=Q(I,T,this._hashType,this._signType,this._tag);return z?L.toString(z):L};function D(T){Z.Writable.call(this);var z=k[T];if(!z)throw new Error("Unknown message digest");this._hash=S(z.hash),this._tag=z.id,this._signType=z.sign}q(D,Z.Writable),D.prototype._write=function(T,z,I){this._hash.update(T),I()},D.prototype.update=function(T,z){return this._hash.update(typeof T=="string"?B.from(T,z):T),this},D.prototype.verify=function(T,z,I){var L=typeof z=="string"?B.from(z,I):z;this.end();var p=this._hash.digest();return O(L,p,T,this._signType,this._tag)};function P(T){return new C(T)}function J(T){return new D(T)}M.exports={Sign:P,Verify:J,createSign:P,createVerify:J}}),Z7=z0((v,M)=>{(function(B,S){function Z(K,W){if(!K)throw new Error(W||"Assertion failed")}function q(K,W){K.super_=W;var U=function(){};U.prototype=W.prototype,K.prototype=new U,K.prototype.constructor=K}function Q(K,W,U){if(Q.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((W==="le"||W==="be")&&(U=W,W=10),this._init(K||0,W||10,U||"be"))}typeof B=="object"?B.exports=Q:S.BN=Q,Q.BN=Q,Q.wordSize=26;var O;try{typeof window<"u"&&typeof window.Buffer<"u"?O=window.Buffer:O=_5().Buffer}catch{}Q.isBN=function(K){return K instanceof Q?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===Q.wordSize&&Array.isArray(K.words)},Q.max=function(K,W){return K.cmp(W)>0?K:W},Q.min=function(K,W){return K.cmp(W)<0?K:W},Q.prototype._init=function(K,W,U){if(typeof K=="number")return this._initNumber(K,W,U);if(typeof K=="object")return this._initArray(K,W,U);W==="hex"&&(W=16),Z(W===(W|0)&&W>=2&&W<=36),K=K.toString().replace(/\s+/g,"");var V=0;K[0]==="-"&&(V++,this.negative=1),V<K.length&&(W===16?this._parseHex(K,V,U):(this._parseBase(K,W,V),U==="le"&&this._initArray(this.toArray(),W,U)))},Q.prototype._initNumber=function(K,W,U){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(Z(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),W,U)},Q.prototype._initArray=function(K,W,U){if(Z(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H,$,G=0;if(U==="be")for(V=K.length-1,H=0;V>=0;V-=3)$=K[V]|K[V-1]<<8|K[V-2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);else if(U==="le")for(V=0,H=0;V<K.length;V+=3)$=K[V]|K[V+1]<<8|K[V+2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);return this.strip()};function k(K,W){var U=K.charCodeAt(W);return U>=65&&U<=70?U-55:U>=97&&U<=102?U-87:U-48&15}function C(K,W,U){var V=k(K,U);return U-1>=W&&(V|=k(K,U-1)<<4),V}Q.prototype._parseHex=function(K,W,U){this.length=Math.ceil((K.length-W)/6),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H=0,$=0,G;if(U==="be")for(V=K.length-1;V>=W;V-=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8;else{var Y=K.length-W;for(V=Y%2===0?W+1:W;V<K.length;V+=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8}this.strip()};function D(K,W,U,V){for(var H=0,$=Math.min(K.length,U),G=W;G<$;G++){var Y=K.charCodeAt(G)-48;H*=V,Y>=49?H+=Y-49+10:Y>=17?H+=Y-17+10:H+=Y}return H}Q.prototype._parseBase=function(K,W,U){this.words=[0],this.length=1;for(var V=0,H=1;H<=67108863;H*=W)V++;V--,H=H/W|0;for(var $=K.length-U,G=$%V,Y=Math.min($,$-G)+U,X=0,F=U;F<Y;F+=V)X=D(K,F,F+V,W),this.imuln(H),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(G!==0){var N=1;for(X=D(K,F,K.length,W),F=0;F<G;F++)N*=W;this.imuln(N),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},Q.prototype.copy=function(K){K.words=new Array(this.length);for(var W=0;W<this.length;W++)K.words[W]=this.words[W];K.length=this.length,K.negative=this.negative,K.red=this.red},Q.prototype.clone=function(){var K=new Q(null);return this.copy(K),K},Q.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},Q.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},Q.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},Q.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var P=["","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"],J=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];Q.prototype.toString=function(K,W){K=K||10,W=W|0||1;var U;if(K===16||K==="hex"){U="";for(var V=0,H=0,$=0;$<this.length;$++){var G=this.words[$],Y=((G<<V|H)&16777215).toString(16);H=G>>>24-V&16777215,V+=2,V>=26&&(V-=26,$--),H!==0||$!==this.length-1?U=P[6-Y.length]+Y+U:U=Y+U}for(H!==0&&(U=H.toString(16)+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(K===(K|0)&&K>=2&&K<=36){var X=J[K],F=T[K];U="";var N=this.clone();for(N.negative=0;!N.isZero();){var j=N.modn(F).toString(K);N=N.idivn(F),N.isZero()?U=j+U:U=P[X-j.length]+j+U}for(this.isZero()&&(U="0"+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}Z(!1,"Base should be between 2 and 36")},Q.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},Q.prototype.toJSON=function(){return this.toString(16)},Q.prototype.toBuffer=function(K,W){return Z(typeof O<"u"),this.toArrayLike(O,K,W)},Q.prototype.toArray=function(K,W){return this.toArrayLike(Array,K,W)},Q.prototype.toArrayLike=function(K,W,U){var V=this.byteLength(),H=U||Math.max(1,V);Z(V<=H,"byte array longer than desired length"),Z(H>0,"Requested array length <= 0"),this.strip();var $=W==="le",G=new K(H),Y,X,F=this.clone();if($){for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[X]=Y;for(;X<H;X++)G[X]=0}else{for(X=0;X<H-V;X++)G[X]=0;for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[H-X-1]=Y}return G},Math.clz32?Q.prototype._countBits=function(K){return 32-Math.clz32(K)}:Q.prototype._countBits=function(K){var W=K,U=0;return W>=4096&&(U+=13,W>>>=13),W>=64&&(U+=7,W>>>=7),W>=8&&(U+=4,W>>>=4),W>=2&&(U+=2,W>>>=2),U+W},Q.prototype._zeroBits=function(K){if(K===0)return 26;var W=K,U=0;return(W&8191)===0&&(U+=13,W>>>=13),(W&127)===0&&(U+=7,W>>>=7),(W&15)===0&&(U+=4,W>>>=4),(W&3)===0&&(U+=2,W>>>=2),(W&1)===0&&U++,U},Q.prototype.bitLength=function(){var K=this.words[this.length-1],W=this._countBits(K);return(this.length-1)*26+W};function z(K){for(var W=new Array(K.bitLength()),U=0;U<W.length;U++){var V=U/26|0,H=U%26;W[U]=(K.words[V]&1<<H)>>>H}return W}Q.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,W=0;W<this.length;W++){var U=this._zeroBits(this.words[W]);if(K+=U,U!==26)break}return K},Q.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Q.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},Q.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},Q.prototype.isNeg=function(){return this.negative!==0},Q.prototype.neg=function(){return this.clone().ineg()},Q.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},Q.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var W=0;W<K.length;W++)this.words[W]=this.words[W]|K.words[W];return this.strip()},Q.prototype.ior=function(K){return Z((this.negative|K.negative)===0),this.iuor(K)},Q.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},Q.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},Q.prototype.iuand=function(K){var W;this.length>K.length?W=K:W=this;for(var U=0;U<W.length;U++)this.words[U]=this.words[U]&K.words[U];return this.length=W.length,this.strip()},Q.prototype.iand=function(K){return Z((this.negative|K.negative)===0),this.iuand(K)},Q.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},Q.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},Q.prototype.iuxor=function(K){var W,U;this.length>K.length?(W=this,U=K):(W=K,U=this);for(var V=0;V<U.length;V++)this.words[V]=W.words[V]^U.words[V];if(this!==W)for(;V<W.length;V++)this.words[V]=W.words[V];return this.length=W.length,this.strip()},Q.prototype.ixor=function(K){return Z((this.negative|K.negative)===0),this.iuxor(K)},Q.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},Q.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},Q.prototype.inotn=function(K){Z(typeof K=="number"&&K>=0);var W=Math.ceil(K/26)|0,U=K%26;this._expand(W),U>0&&W--;for(var V=0;V<W;V++)this.words[V]=~this.words[V]&67108863;return U>0&&(this.words[V]=~this.words[V]&67108863>>26-U),this.strip()},Q.prototype.notn=function(K){return this.clone().inotn(K)},Q.prototype.setn=function(K,W){Z(typeof K=="number"&&K>=0);var U=K/26|0,V=K%26;return this._expand(U+1),W?this.words[U]=this.words[U]|1<<V:this.words[U]=this.words[U]&~(1<<V),this.strip()},Q.prototype.iadd=function(K){var W;if(this.negative!==0&&K.negative===0)return this.negative=0,W=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,W=this.isub(K),K.negative=1,W._normSign();var U,V;this.length>K.length?(U=this,V=K):(U=K,V=this);for(var H=0,$=0;$<V.length;$++)W=(U.words[$]|0)+(V.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;for(;H!==0&&$<U.length;$++)W=(U.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;if(this.length=U.length,H!==0)this.words[this.length]=H,this.length++;else if(U!==this)for(;$<U.length;$++)this.words[$]=U.words[$];return this},Q.prototype.add=function(K){var W;return K.negative!==0&&this.negative===0?(K.negative=0,W=this.sub(K),K.negative^=1,W):K.negative===0&&this.negative!==0?(this.negative=0,W=K.sub(this),this.negative=1,W):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},Q.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var W=this.iadd(K);return K.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var U=this.cmp(K);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var V,H;U>0?(V=this,H=K):(V=K,H=this);for(var $=0,G=0;G<H.length;G++)W=(V.words[G]|0)-(H.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;for(;$!==0&&G<V.length;G++)W=(V.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;if($===0&&G<V.length&&V!==this)for(;G<V.length;G++)this.words[G]=V.words[G];return this.length=Math.max(this.length,G),V!==this&&(this.negative=1),this.strip()},Q.prototype.sub=function(K){return this.clone().isub(K)};function I(K,W,U){U.negative=W.negative^K.negative;var V=K.length+W.length|0;U.length=V,V=V-1|0;var H=K.words[0]|0,$=W.words[0]|0,G=H*$,Y=G&67108863,X=G/67108864|0;U.words[0]=Y;for(var F=1;F<V;F++){for(var N=X>>>26,j=X&67108863,A=Math.min(F,W.length-1),m=Math.max(0,F-K.length+1);m<=A;m++){var h=F-m|0;H=K.words[h]|0,$=W.words[m]|0,G=H*$+j,N+=G/67108864|0,j=G&67108863}U.words[F]=j|0,X=N|0}return X!==0?U.words[F]=X|0:U.length--,U.strip()}var L=function(K,W,U){var V=K.words,H=W.words,$=U.words,G=0,Y,X,F,N=V[0]|0,j=N&8191,A=N>>>13,m=V[1]|0,h=m&8191,e=m>>>13,T0=V[2]|0,U0=T0&8191,y=T0>>>13,o=V[3]|0,n=o&8191,K0=o>>>13,w0=V[4]|0,l=w0&8191,u=w0>>>13,C0=V[5]|0,H0=C0&8191,F0=C0>>>13,y0=V[6]|0,a=y0&8191,X0=y0>>>13,M0=V[7]|0,W0=M0&8191,G0=M0>>>13,b0=V[8]|0,R=b0&8191,_=b0>>>13,d=V[9]|0,s=d&8191,i=d>>>13,E0=H[0]|0,Y0=E0&8191,J0=E0>>>13,d0=H[1]|0,j0=d0&8191,O0=d0>>>13,c0=H[2]|0,S0=c0&8191,k0=c0>>>13,P5=H[3]|0,A0=P5&8191,R0=P5>>>13,$5=H[4]|0,p0=$5&8191,_0=$5>>>13,G5=H[5]|0,I0=G5&8191,c=G5>>>13,V0=H[6]|0,Q0=V0&8191,P0=V0>>>13,g0=H[7]|0,D0=g0&8191,N0=g0>>>13,f0=H[8]|0,q0=f0&8191,x0=f0>>>13,Z5=H[9]|0,B0=Z5&8191,L0=Z5>>>13;U.negative=K.negative^W.negative,U.length=19,Y=Math.imul(j,Y0),X=Math.imul(j,J0),X=X+Math.imul(A,Y0)|0,F=Math.imul(A,J0);var o0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,Y=Math.imul(h,Y0),X=Math.imul(h,J0),X=X+Math.imul(e,Y0)|0,F=Math.imul(e,J0),Y=Y+Math.imul(j,j0)|0,X=X+Math.imul(j,O0)|0,X=X+Math.imul(A,j0)|0,F=F+Math.imul(A,O0)|0;var m0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,Y=Math.imul(U0,Y0),X=Math.imul(U0,J0),X=X+Math.imul(y,Y0)|0,F=Math.imul(y,J0),Y=Y+Math.imul(h,j0)|0,X=X+Math.imul(h,O0)|0,X=X+Math.imul(e,j0)|0,F=F+Math.imul(e,O0)|0,Y=Y+Math.imul(j,S0)|0,X=X+Math.imul(j,k0)|0,X=X+Math.imul(A,S0)|0,F=F+Math.imul(A,k0)|0;var v0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(v0>>>26)|0,v0&=67108863,Y=Math.imul(n,Y0),X=Math.imul(n,J0),X=X+Math.imul(K0,Y0)|0,F=Math.imul(K0,J0),Y=Y+Math.imul(U0,j0)|0,X=X+Math.imul(U0,O0)|0,X=X+Math.imul(y,j0)|0,F=F+Math.imul(y,O0)|0,Y=Y+Math.imul(h,S0)|0,X=X+Math.imul(h,k0)|0,X=X+Math.imul(e,S0)|0,F=F+Math.imul(e,k0)|0,Y=Y+Math.imul(j,A0)|0,X=X+Math.imul(j,R0)|0,X=X+Math.imul(A,A0)|0,F=F+Math.imul(A,R0)|0;var u0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,Y=Math.imul(l,Y0),X=Math.imul(l,J0),X=X+Math.imul(u,Y0)|0,F=Math.imul(u,J0),Y=Y+Math.imul(n,j0)|0,X=X+Math.imul(n,O0)|0,X=X+Math.imul(K0,j0)|0,F=F+Math.imul(K0,O0)|0,Y=Y+Math.imul(U0,S0)|0,X=X+Math.imul(U0,k0)|0,X=X+Math.imul(y,S0)|0,F=F+Math.imul(y,k0)|0,Y=Y+Math.imul(h,A0)|0,X=X+Math.imul(h,R0)|0,X=X+Math.imul(e,A0)|0,F=F+Math.imul(e,R0)|0,Y=Y+Math.imul(j,p0)|0,X=X+Math.imul(j,_0)|0,X=X+Math.imul(A,p0)|0,F=F+Math.imul(A,_0)|0;var s0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,Y=Math.imul(H0,Y0),X=Math.imul(H0,J0),X=X+Math.imul(F0,Y0)|0,F=Math.imul(F0,J0),Y=Y+Math.imul(l,j0)|0,X=X+Math.imul(l,O0)|0,X=X+Math.imul(u,j0)|0,F=F+Math.imul(u,O0)|0,Y=Y+Math.imul(n,S0)|0,X=X+Math.imul(n,k0)|0,X=X+Math.imul(K0,S0)|0,F=F+Math.imul(K0,k0)|0,Y=Y+Math.imul(U0,A0)|0,X=X+Math.imul(U0,R0)|0,X=X+Math.imul(y,A0)|0,F=F+Math.imul(y,R0)|0,Y=Y+Math.imul(h,p0)|0,X=X+Math.imul(h,_0)|0,X=X+Math.imul(e,p0)|0,F=F+Math.imul(e,_0)|0,Y=Y+Math.imul(j,I0)|0,X=X+Math.imul(j,c)|0,X=X+Math.imul(A,I0)|0,F=F+Math.imul(A,c)|0;var a0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,Y=Math.imul(a,Y0),X=Math.imul(a,J0),X=X+Math.imul(X0,Y0)|0,F=Math.imul(X0,J0),Y=Y+Math.imul(H0,j0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(F0,j0)|0,F=F+Math.imul(F0,O0)|0,Y=Y+Math.imul(l,S0)|0,X=X+Math.imul(l,k0)|0,X=X+Math.imul(u,S0)|0,F=F+Math.imul(u,k0)|0,Y=Y+Math.imul(n,A0)|0,X=X+Math.imul(n,R0)|0,X=X+Math.imul(K0,A0)|0,F=F+Math.imul(K0,R0)|0,Y=Y+Math.imul(U0,p0)|0,X=X+Math.imul(U0,_0)|0,X=X+Math.imul(y,p0)|0,F=F+Math.imul(y,_0)|0,Y=Y+Math.imul(h,I0)|0,X=X+Math.imul(h,c)|0,X=X+Math.imul(e,I0)|0,F=F+Math.imul(e,c)|0,Y=Y+Math.imul(j,Q0)|0,X=X+Math.imul(j,P0)|0,X=X+Math.imul(A,Q0)|0,F=F+Math.imul(A,P0)|0;var n0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,Y=Math.imul(W0,Y0),X=Math.imul(W0,J0),X=X+Math.imul(G0,Y0)|0,F=Math.imul(G0,J0),Y=Y+Math.imul(a,j0)|0,X=X+Math.imul(a,O0)|0,X=X+Math.imul(X0,j0)|0,F=F+Math.imul(X0,O0)|0,Y=Y+Math.imul(H0,S0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(F0,S0)|0,F=F+Math.imul(F0,k0)|0,Y=Y+Math.imul(l,A0)|0,X=X+Math.imul(l,R0)|0,X=X+Math.imul(u,A0)|0,F=F+Math.imul(u,R0)|0,Y=Y+Math.imul(n,p0)|0,X=X+Math.imul(n,_0)|0,X=X+Math.imul(K0,p0)|0,F=F+Math.imul(K0,_0)|0,Y=Y+Math.imul(U0,I0)|0,X=X+Math.imul(U0,c)|0,X=X+Math.imul(y,I0)|0,F=F+Math.imul(y,c)|0,Y=Y+Math.imul(h,Q0)|0,X=X+Math.imul(h,P0)|0,X=X+Math.imul(e,Q0)|0,F=F+Math.imul(e,P0)|0,Y=Y+Math.imul(j,D0)|0,X=X+Math.imul(j,N0)|0,X=X+Math.imul(A,D0)|0,F=F+Math.imul(A,N0)|0;var i0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,Y=Math.imul(R,Y0),X=Math.imul(R,J0),X=X+Math.imul(_,Y0)|0,F=Math.imul(_,J0),Y=Y+Math.imul(W0,j0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(G0,j0)|0,F=F+Math.imul(G0,O0)|0,Y=Y+Math.imul(a,S0)|0,X=X+Math.imul(a,k0)|0,X=X+Math.imul(X0,S0)|0,F=F+Math.imul(X0,k0)|0,Y=Y+Math.imul(H0,A0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(F0,A0)|0,F=F+Math.imul(F0,R0)|0,Y=Y+Math.imul(l,p0)|0,X=X+Math.imul(l,_0)|0,X=X+Math.imul(u,p0)|0,F=F+Math.imul(u,_0)|0,Y=Y+Math.imul(n,I0)|0,X=X+Math.imul(n,c)|0,X=X+Math.imul(K0,I0)|0,F=F+Math.imul(K0,c)|0,Y=Y+Math.imul(U0,Q0)|0,X=X+Math.imul(U0,P0)|0,X=X+Math.imul(y,Q0)|0,F=F+Math.imul(y,P0)|0,Y=Y+Math.imul(h,D0)|0,X=X+Math.imul(h,N0)|0,X=X+Math.imul(e,D0)|0,F=F+Math.imul(e,N0)|0,Y=Y+Math.imul(j,q0)|0,X=X+Math.imul(j,x0)|0,X=X+Math.imul(A,q0)|0,F=F+Math.imul(A,x0)|0;var r0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,Y=Math.imul(s,Y0),X=Math.imul(s,J0),X=X+Math.imul(i,Y0)|0,F=Math.imul(i,J0),Y=Y+Math.imul(R,j0)|0,X=X+Math.imul(R,O0)|0,X=X+Math.imul(_,j0)|0,F=F+Math.imul(_,O0)|0,Y=Y+Math.imul(W0,S0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(G0,S0)|0,F=F+Math.imul(G0,k0)|0,Y=Y+Math.imul(a,A0)|0,X=X+Math.imul(a,R0)|0,X=X+Math.imul(X0,A0)|0,F=F+Math.imul(X0,R0)|0,Y=Y+Math.imul(H0,p0)|0,X=X+Math.imul(H0,_0)|0,X=X+Math.imul(F0,p0)|0,F=F+Math.imul(F0,_0)|0,Y=Y+Math.imul(l,I0)|0,X=X+Math.imul(l,c)|0,X=X+Math.imul(u,I0)|0,F=F+Math.imul(u,c)|0,Y=Y+Math.imul(n,Q0)|0,X=X+Math.imul(n,P0)|0,X=X+Math.imul(K0,Q0)|0,F=F+Math.imul(K0,P0)|0,Y=Y+Math.imul(U0,D0)|0,X=X+Math.imul(U0,N0)|0,X=X+Math.imul(y,D0)|0,F=F+Math.imul(y,N0)|0,Y=Y+Math.imul(h,q0)|0,X=X+Math.imul(h,x0)|0,X=X+Math.imul(e,q0)|0,F=F+Math.imul(e,x0)|0,Y=Y+Math.imul(j,B0)|0,X=X+Math.imul(j,L0)|0,X=X+Math.imul(A,B0)|0,F=F+Math.imul(A,L0)|0;var t0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,Y=Math.imul(s,j0),X=Math.imul(s,O0),X=X+Math.imul(i,j0)|0,F=Math.imul(i,O0),Y=Y+Math.imul(R,S0)|0,X=X+Math.imul(R,k0)|0,X=X+Math.imul(_,S0)|0,F=F+Math.imul(_,k0)|0,Y=Y+Math.imul(W0,A0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(G0,A0)|0,F=F+Math.imul(G0,R0)|0,Y=Y+Math.imul(a,p0)|0,X=X+Math.imul(a,_0)|0,X=X+Math.imul(X0,p0)|0,F=F+Math.imul(X0,_0)|0,Y=Y+Math.imul(H0,I0)|0,X=X+Math.imul(H0,c)|0,X=X+Math.imul(F0,I0)|0,F=F+Math.imul(F0,c)|0,Y=Y+Math.imul(l,Q0)|0,X=X+Math.imul(l,P0)|0,X=X+Math.imul(u,Q0)|0,F=F+Math.imul(u,P0)|0,Y=Y+Math.imul(n,D0)|0,X=X+Math.imul(n,N0)|0,X=X+Math.imul(K0,D0)|0,F=F+Math.imul(K0,N0)|0,Y=Y+Math.imul(U0,q0)|0,X=X+Math.imul(U0,x0)|0,X=X+Math.imul(y,q0)|0,F=F+Math.imul(y,x0)|0,Y=Y+Math.imul(h,B0)|0,X=X+Math.imul(h,L0)|0,X=X+Math.imul(e,B0)|0,F=F+Math.imul(e,L0)|0;var e0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,Y=Math.imul(s,S0),X=Math.imul(s,k0),X=X+Math.imul(i,S0)|0,F=Math.imul(i,k0),Y=Y+Math.imul(R,A0)|0,X=X+Math.imul(R,R0)|0,X=X+Math.imul(_,A0)|0,F=F+Math.imul(_,R0)|0,Y=Y+Math.imul(W0,p0)|0,X=X+Math.imul(W0,_0)|0,X=X+Math.imul(G0,p0)|0,F=F+Math.imul(G0,_0)|0,Y=Y+Math.imul(a,I0)|0,X=X+Math.imul(a,c)|0,X=X+Math.imul(X0,I0)|0,F=F+Math.imul(X0,c)|0,Y=Y+Math.imul(H0,Q0)|0,X=X+Math.imul(H0,P0)|0,X=X+Math.imul(F0,Q0)|0,F=F+Math.imul(F0,P0)|0,Y=Y+Math.imul(l,D0)|0,X=X+Math.imul(l,N0)|0,X=X+Math.imul(u,D0)|0,F=F+Math.imul(u,N0)|0,Y=Y+Math.imul(n,q0)|0,X=X+Math.imul(n,x0)|0,X=X+Math.imul(K0,q0)|0,F=F+Math.imul(K0,x0)|0,Y=Y+Math.imul(U0,B0)|0,X=X+Math.imul(U0,L0)|0,X=X+Math.imul(y,B0)|0,F=F+Math.imul(y,L0)|0;var K5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,Y=Math.imul(s,A0),X=Math.imul(s,R0),X=X+Math.imul(i,A0)|0,F=Math.imul(i,R0),Y=Y+Math.imul(R,p0)|0,X=X+Math.imul(R,_0)|0,X=X+Math.imul(_,p0)|0,F=F+Math.imul(_,_0)|0,Y=Y+Math.imul(W0,I0)|0,X=X+Math.imul(W0,c)|0,X=X+Math.imul(G0,I0)|0,F=F+Math.imul(G0,c)|0,Y=Y+Math.imul(a,Q0)|0,X=X+Math.imul(a,P0)|0,X=X+Math.imul(X0,Q0)|0,F=F+Math.imul(X0,P0)|0,Y=Y+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(F0,D0)|0,F=F+Math.imul(F0,N0)|0,Y=Y+Math.imul(l,q0)|0,X=X+Math.imul(l,x0)|0,X=X+Math.imul(u,q0)|0,F=F+Math.imul(u,x0)|0,Y=Y+Math.imul(n,B0)|0,X=X+Math.imul(n,L0)|0,X=X+Math.imul(K0,B0)|0,F=F+Math.imul(K0,L0)|0;var X5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,Y=Math.imul(s,p0),X=Math.imul(s,_0),X=X+Math.imul(i,p0)|0,F=Math.imul(i,_0),Y=Y+Math.imul(R,I0)|0,X=X+Math.imul(R,c)|0,X=X+Math.imul(_,I0)|0,F=F+Math.imul(_,c)|0,Y=Y+Math.imul(W0,Q0)|0,X=X+Math.imul(W0,P0)|0,X=X+Math.imul(G0,Q0)|0,F=F+Math.imul(G0,P0)|0,Y=Y+Math.imul(a,D0)|0,X=X+Math.imul(a,N0)|0,X=X+Math.imul(X0,D0)|0,F=F+Math.imul(X0,N0)|0,Y=Y+Math.imul(H0,q0)|0,X=X+Math.imul(H0,x0)|0,X=X+Math.imul(F0,q0)|0,F=F+Math.imul(F0,x0)|0,Y=Y+Math.imul(l,B0)|0,X=X+Math.imul(l,L0)|0,X=X+Math.imul(u,B0)|0,F=F+Math.imul(u,L0)|0;var W5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(W5>>>26)|0,W5&=67108863,Y=Math.imul(s,I0),X=Math.imul(s,c),X=X+Math.imul(i,I0)|0,F=Math.imul(i,c),Y=Y+Math.imul(R,Q0)|0,X=X+Math.imul(R,P0)|0,X=X+Math.imul(_,Q0)|0,F=F+Math.imul(_,P0)|0,Y=Y+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(G0,D0)|0,F=F+Math.imul(G0,N0)|0,Y=Y+Math.imul(a,q0)|0,X=X+Math.imul(a,x0)|0,X=X+Math.imul(X0,q0)|0,F=F+Math.imul(X0,x0)|0,Y=Y+Math.imul(H0,B0)|0,X=X+Math.imul(H0,L0)|0,X=X+Math.imul(F0,B0)|0,F=F+Math.imul(F0,L0)|0;var V5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(V5>>>26)|0,V5&=67108863,Y=Math.imul(s,Q0),X=Math.imul(s,P0),X=X+Math.imul(i,Q0)|0,F=Math.imul(i,P0),Y=Y+Math.imul(R,D0)|0,X=X+Math.imul(R,N0)|0,X=X+Math.imul(_,D0)|0,F=F+Math.imul(_,N0)|0,Y=Y+Math.imul(W0,q0)|0,X=X+Math.imul(W0,x0)|0,X=X+Math.imul(G0,q0)|0,F=F+Math.imul(G0,x0)|0,Y=Y+Math.imul(a,B0)|0,X=X+Math.imul(a,L0)|0,X=X+Math.imul(X0,B0)|0,F=F+Math.imul(X0,L0)|0;var U5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(U5>>>26)|0,U5&=67108863,Y=Math.imul(s,D0),X=Math.imul(s,N0),X=X+Math.imul(i,D0)|0,F=Math.imul(i,N0),Y=Y+Math.imul(R,q0)|0,X=X+Math.imul(R,x0)|0,X=X+Math.imul(_,q0)|0,F=F+Math.imul(_,x0)|0,Y=Y+Math.imul(W0,B0)|0,X=X+Math.imul(W0,L0)|0,X=X+Math.imul(G0,B0)|0,F=F+Math.imul(G0,L0)|0;var H5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(H5>>>26)|0,H5&=67108863,Y=Math.imul(s,q0),X=Math.imul(s,x0),X=X+Math.imul(i,q0)|0,F=Math.imul(i,x0),Y=Y+Math.imul(R,B0)|0,X=X+Math.imul(R,L0)|0,X=X+Math.imul(_,B0)|0,F=F+Math.imul(_,L0)|0;var Y5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Y=Math.imul(s,B0),X=Math.imul(s,L0),X=X+Math.imul(i,B0)|0,F=Math.imul(i,L0);var F5=(G+Y|0)+((X&8191)<<13)|0;return G=(F+(X>>>13)|0)+(F5>>>26)|0,F5&=67108863,$[0]=o0,$[1]=m0,$[2]=v0,$[3]=u0,$[4]=s0,$[5]=a0,$[6]=n0,$[7]=i0,$[8]=r0,$[9]=t0,$[10]=e0,$[11]=K5,$[12]=X5,$[13]=W5,$[14]=V5,$[15]=U5,$[16]=H5,$[17]=Y5,$[18]=F5,G!==0&&($[19]=G,U.length++),U};Math.imul||(L=I);function p(K,W,U){U.negative=W.negative^K.negative,U.length=K.length+W.length;for(var V=0,H=0,$=0;$<U.length-1;$++){var G=H;H=0;for(var Y=V&67108863,X=Math.min($,W.length-1),F=Math.max(0,$-K.length+1);F<=X;F++){var N=$-F,j=K.words[N]|0,A=W.words[F]|0,m=j*A,h=m&67108863;G=G+(m/67108864|0)|0,h=h+Y|0,Y=h&67108863,G=G+(h>>>26)|0,H+=G>>>26,G&=67108863}U.words[$]=Y,V=G,G=H}return V!==0?U.words[$]=V:U.length--,U.strip()}function E(K,W,U){var V=new x;return V.mulp(K,W,U)}Q.prototype.mulTo=function(K,W){var U,V=this.length+K.length;return this.length===10&&K.length===10?U=L(this,K,W):V<63?U=I(this,K,W):V<1024?U=p(this,K,W):U=E(this,K,W),U};function x(K,W){this.x=K,this.y=W}x.prototype.makeRBT=function(K){for(var W=new Array(K),U=Q.prototype._countBits(K)-1,V=0;V<K;V++)W[V]=this.revBin(V,U,K);return W},x.prototype.revBin=function(K,W,U){if(K===0||K===U-1)return K;for(var V=0,H=0;H<W;H++)V|=(K&1)<<W-H-1,K>>=1;return V},x.prototype.permute=function(K,W,U,V,H,$){for(var G=0;G<$;G++)V[G]=W[K[G]],H[G]=U[K[G]]},x.prototype.transform=function(K,W,U,V,H,$){this.permute($,K,W,U,V,H);for(var G=1;G<H;G<<=1)for(var Y=G<<1,X=Math.cos(2*Math.PI/Y),F=Math.sin(2*Math.PI/Y),N=0;N<H;N+=Y)for(var j=X,A=F,m=0;m<G;m++){var h=U[N+m],e=V[N+m],T0=U[N+m+G],U0=V[N+m+G],y=j*T0-A*U0;U0=j*U0+A*T0,T0=y,U[N+m]=h+T0,V[N+m]=e+U0,U[N+m+G]=h-T0,V[N+m+G]=e-U0,m!==Y&&(y=X*j-F*A,A=X*A+F*j,j=y)}},x.prototype.guessLen13b=function(K,W){var U=Math.max(W,K)|1,V=U&1,H=0;for(U=U/2|0;U;U=U>>>1)H++;return 1<<H+1+V},x.prototype.conjugate=function(K,W,U){if(!(U<=1))for(var V=0;V<U/2;V++){var H=K[V];K[V]=K[U-V-1],K[U-V-1]=H,H=W[V],W[V]=-W[U-V-1],W[U-V-1]=-H}},x.prototype.normalize13b=function(K,W){for(var U=0,V=0;V<W/2;V++){var H=Math.round(K[2*V+1]/W)*8192+Math.round(K[2*V]/W)+U;K[V]=H&67108863,H<67108864?U=0:U=H/67108864|0}return K},x.prototype.convert13b=function(K,W,U,V){for(var H=0,$=0;$<W;$++)H=H+(K[$]|0),U[2*$]=H&8191,H=H>>>13,U[2*$+1]=H&8191,H=H>>>13;for($=2*W;$<V;++$)U[$]=0;Z(H===0),Z((H&-8192)===0)},x.prototype.stub=function(K){for(var W=new Array(K),U=0;U<K;U++)W[U]=0;return W},x.prototype.mulp=function(K,W,U){var V=2*this.guessLen13b(K.length,W.length),H=this.makeRBT(V),$=this.stub(V),G=new Array(V),Y=new Array(V),X=new Array(V),F=new Array(V),N=new Array(V),j=new Array(V),A=U.words;A.length=V,this.convert13b(K.words,K.length,G,V),this.convert13b(W.words,W.length,F,V),this.transform(G,$,Y,X,V,H),this.transform(F,$,N,j,V,H);for(var m=0;m<V;m++){var h=Y[m]*N[m]-X[m]*j[m];X[m]=Y[m]*j[m]+X[m]*N[m],Y[m]=h}return this.conjugate(Y,X,V),this.transform(Y,X,A,$,V,H),this.conjugate(A,$,V),this.normalize13b(A,V),U.negative=K.negative^W.negative,U.length=K.length+W.length,U.strip()},Q.prototype.mul=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),this.mulTo(K,W)},Q.prototype.mulf=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),E(this,K,W)},Q.prototype.imul=function(K){return this.clone().mulTo(K,this)},Q.prototype.imuln=function(K){Z(typeof K=="number"),Z(K<67108864);for(var W=0,U=0;U<this.length;U++){var V=(this.words[U]|0)*K,H=(V&67108863)+(W&67108863);W>>=26,W+=V/67108864|0,W+=H>>>26,this.words[U]=H&67108863}return W!==0&&(this.words[U]=W,this.length++),this},Q.prototype.muln=function(K){return this.clone().imuln(K)},Q.prototype.sqr=function(){return this.mul(this)},Q.prototype.isqr=function(){return this.imul(this.clone())},Q.prototype.pow=function(K){var W=z(K);if(W.length===0)return new Q(1);for(var U=this,V=0;V<W.length&&W[V]===0;V++,U=U.sqr());if(++V<W.length)for(var H=U.sqr();V<W.length;V++,H=H.sqr())W[V]!==0&&(U=U.mul(H));return U},Q.prototype.iushln=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=67108863>>>26-W<<26-W,H;if(W!==0){var $=0;for(H=0;H<this.length;H++){var G=this.words[H]&V,Y=(this.words[H]|0)-G<<W;this.words[H]=Y|$,$=G>>>26-W}$&&(this.words[H]=$,this.length++)}if(U!==0){for(H=this.length-1;H>=0;H--)this.words[H+U]=this.words[H];for(H=0;H<U;H++)this.words[H]=0;this.length+=U}return this.strip()},Q.prototype.ishln=function(K){return Z(this.negative===0),this.iushln(K)},Q.prototype.iushrn=function(K,W,U){Z(typeof K=="number"&&K>=0);var V;W?V=(W-W%26)/26:V=0;var H=K%26,$=Math.min((K-H)/26,this.length),G=67108863^67108863>>>H<<H,Y=U;if(V-=$,V=Math.max(0,V),Y){for(var X=0;X<$;X++)Y.words[X]=this.words[X];Y.length=$}if($!==0)if(this.length>$)for(this.length-=$,X=0;X<this.length;X++)this.words[X]=this.words[X+$];else this.words[0]=0,this.length=1;var F=0;for(X=this.length-1;X>=0&&(F!==0||X>=V);X--){var N=this.words[X]|0;this.words[X]=F<<26-H|N>>>H,F=N&G}return Y&&F!==0&&(Y.words[Y.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},Q.prototype.ishrn=function(K,W,U){return Z(this.negative===0),this.iushrn(K,W,U)},Q.prototype.shln=function(K){return this.clone().ishln(K)},Q.prototype.ushln=function(K){return this.clone().iushln(K)},Q.prototype.shrn=function(K){return this.clone().ishrn(K)},Q.prototype.ushrn=function(K){return this.clone().iushrn(K)},Q.prototype.testn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return!1;var H=this.words[U];return!!(H&V)},Q.prototype.imaskn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(W!==0&&U++,this.length=Math.min(U,this.length),W!==0){var V=67108863^67108863>>>W<<W;this.words[this.length-1]&=V}return this.strip()},Q.prototype.maskn=function(K){return this.clone().imaskn(K)},Q.prototype.iaddn=function(K){return Z(typeof K=="number"),Z(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},Q.prototype._iaddn=function(K){this.words[0]+=K;for(var W=0;W<this.length&&this.words[W]>=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},Q.prototype.isubn=function(K){if(Z(typeof K=="number"),Z(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W<this.length&&this.words[W]<0;W++)this.words[W]+=67108864,this.words[W+1]-=1;return this.strip()},Q.prototype.addn=function(K){return this.clone().iaddn(K)},Q.prototype.subn=function(K){return this.clone().isubn(K)},Q.prototype.iabs=function(){return this.negative=0,this},Q.prototype.abs=function(){return this.clone().iabs()},Q.prototype._ishlnsubmul=function(K,W,U){var V=K.length+U,H;this._expand(V);var $,G=0;for(H=0;H<K.length;H++){$=(this.words[H+U]|0)+G;var Y=(K.words[H]|0)*W;$-=Y&67108863,G=($>>26)-(Y/67108864|0),this.words[H+U]=$&67108863}for(;H<this.length-U;H++)$=(this.words[H+U]|0)+G,G=$>>26,this.words[H+U]=$&67108863;if(G===0)return this.strip();for(Z(G===-1),G=0,H=0;H<this.length;H++)$=-(this.words[H]|0)+G,G=$>>26,this.words[H]=$&67108863;return this.negative=1,this.strip()},Q.prototype._wordDiv=function(K,W){var U=this.length-K.length,V=this.clone(),H=K,$=H.words[H.length-1]|0,G=this._countBits($);U=26-G,U!==0&&(H=H.ushln(U),V.iushln(U),$=H.words[H.length-1]|0);var Y=V.length-H.length,X;if(W!=="mod"){X=new Q(null),X.length=Y+1,X.words=new Array(X.length);for(var F=0;F<X.length;F++)X.words[F]=0}var N=V.clone()._ishlnsubmul(H,1,Y);N.negative===0&&(V=N,X&&(X.words[Y]=1));for(var j=Y-1;j>=0;j--){var A=(V.words[H.length+j]|0)*67108864+(V.words[H.length+j-1]|0);for(A=Math.min(A/$|0,67108863),V._ishlnsubmul(H,A,j);V.negative!==0;)A--,V.negative=0,V._ishlnsubmul(H,1,j),V.isZero()||(V.negative^=1);X&&(X.words[j]=A)}return X&&X.strip(),V.strip(),W!=="div"&&U!==0&&V.iushrn(U),{div:X||null,mod:V}},Q.prototype.divmod=function(K,W,U){if(Z(!K.isZero()),this.isZero())return{div:new Q(0),mod:new Q(0)};var V,H,$;return this.negative!==0&&K.negative===0?($=this.neg().divmod(K,W),W!=="mod"&&(V=$.div.neg()),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.iadd(K)),{div:V,mod:H}):this.negative===0&&K.negative!==0?($=this.divmod(K.neg(),W),W!=="mod"&&(V=$.div.neg()),{div:V,mod:$.mod}):(this.negative&K.negative)!==0?($=this.neg().divmod(K.neg(),W),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.isub(K)),{div:$.div,mod:H}):K.length>this.length||this.cmp(K)<0?{div:new Q(0),mod:this}:K.length===1?W==="div"?{div:this.divn(K.words[0]),mod:null}:W==="mod"?{div:null,mod:new Q(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new Q(this.modn(K.words[0]))}:this._wordDiv(K,W)},Q.prototype.div=function(K){return this.divmod(K,"div",!1).div},Q.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},Q.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},Q.prototype.divRound=function(K){var W=this.divmod(K);if(W.mod.isZero())return W.div;var U=W.div.negative!==0?W.mod.isub(K):W.mod,V=K.ushrn(1),H=K.andln(1),$=U.cmp(V);return $<0||H===1&&$===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},Q.prototype.modn=function(K){Z(K<=67108863);for(var W=67108864%K,U=0,V=this.length-1;V>=0;V--)U=(W*U+(this.words[V]|0))%K;return U},Q.prototype.idivn=function(K){Z(K<=67108863);for(var W=0,U=this.length-1;U>=0;U--){var V=(this.words[U]|0)+W*67108864;this.words[U]=V/K|0,W=V%K}return this.strip()},Q.prototype.divn=function(K){return this.clone().idivn(K)},Q.prototype.egcd=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=new Q(0),G=new Q(1),Y=0;W.isEven()&&U.isEven();)W.iushrn(1),U.iushrn(1),++Y;for(var X=U.clone(),F=W.clone();!W.isZero();){for(var N=0,j=1;(W.words[0]&j)===0&&N<26;++N,j<<=1);if(N>0)for(W.iushrn(N);N-- >0;)(V.isOdd()||H.isOdd())&&(V.iadd(X),H.isub(F)),V.iushrn(1),H.iushrn(1);for(var A=0,m=1;(U.words[0]&m)===0&&A<26;++A,m<<=1);if(A>0)for(U.iushrn(A);A-- >0;)($.isOdd()||G.isOdd())&&($.iadd(X),G.isub(F)),$.iushrn(1),G.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub($),H.isub(G)):(U.isub(W),$.isub(V),G.isub(H))}return{a:$,b:G,gcd:U.iushln(Y)}},Q.prototype._invmp=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=U.clone();W.cmpn(1)>0&&U.cmpn(1)>0;){for(var G=0,Y=1;(W.words[0]&Y)===0&&G<26;++G,Y<<=1);if(G>0)for(W.iushrn(G);G-- >0;)V.isOdd()&&V.iadd($),V.iushrn(1);for(var X=0,F=1;(U.words[0]&F)===0&&X<26;++X,F<<=1);if(X>0)for(U.iushrn(X);X-- >0;)H.isOdd()&&H.iadd($),H.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub(H)):(U.isub(W),H.isub(V))}var N;return W.cmpn(1)===0?N=V:N=H,N.cmpn(0)<0&&N.iadd(K),N},Q.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var W=this.clone(),U=K.clone();W.negative=0,U.negative=0;for(var V=0;W.isEven()&&U.isEven();V++)W.iushrn(1),U.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;U.isEven();)U.iushrn(1);var H=W.cmp(U);if(H<0){var $=W;W=U,U=$}else if(H===0||U.cmpn(1)===0)break;W.isub(U)}while(!0);return U.iushln(V)},Q.prototype.invm=function(K){return this.egcd(K).a.umod(K)},Q.prototype.isEven=function(){return(this.words[0]&1)===0},Q.prototype.isOdd=function(){return(this.words[0]&1)===1},Q.prototype.andln=function(K){return this.words[0]&K},Q.prototype.bincn=function(K){Z(typeof K=="number");var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return this._expand(U+1),this.words[U]|=V,this;for(var H=V,$=U;H!==0&&$<this.length;$++){var G=this.words[$]|0;G+=H,H=G>>>26,G&=67108863,this.words[$]=G}return H!==0&&(this.words[$]=H,this.length++),this},Q.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Q.prototype.cmpn=function(K){var W=K<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var U;if(this.length>1)U=1;else{W&&(K=-K),Z(K<=67108863,"Number is too big");var V=this.words[0]|0;U=V===K?0:V<K?-1:1}return this.negative!==0?-U|0:U},Q.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var W=this.ucmp(K);return this.negative!==0?-W|0:W},Q.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var W=0,U=this.length-1;U>=0;U--){var V=this.words[U]|0,H=K.words[U]|0;if(V!==H){V<H?W=-1:V>H&&(W=1);break}}return W},Q.prototype.gtn=function(K){return this.cmpn(K)===1},Q.prototype.gt=function(K){return this.cmp(K)===1},Q.prototype.gten=function(K){return this.cmpn(K)>=0},Q.prototype.gte=function(K){return this.cmp(K)>=0},Q.prototype.ltn=function(K){return this.cmpn(K)===-1},Q.prototype.lt=function(K){return this.cmp(K)===-1},Q.prototype.lten=function(K){return this.cmpn(K)<=0},Q.prototype.lte=function(K){return this.cmp(K)<=0},Q.prototype.eqn=function(K){return this.cmpn(K)===0},Q.prototype.eq=function(K){return this.cmp(K)===0},Q.red=function(K){return new f(K)},Q.prototype.toRed=function(K){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},Q.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Q.prototype._forceRed=function(K){return this.red=K,this},Q.prototype.forceRed=function(K){return Z(!this.red,"Already a number in reduction context"),this._forceRed(K)},Q.prototype.redAdd=function(K){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},Q.prototype.redIAdd=function(K){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},Q.prototype.redSub=function(K){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},Q.prototype.redISub=function(K){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},Q.prototype.redShl=function(K){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},Q.prototype.redMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},Q.prototype.redIMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},Q.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Q.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Q.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Q.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Q.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Q.prototype.redPow=function(K){return Z(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var b={k256:null,p224:null,p192:null,p25519:null};function w(K,W){this.name=K,this.p=new Q(W,16),this.n=this.p.bitLength(),this.k=new Q(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}w.prototype._tmp=function(){var K=new Q(null);return K.words=new Array(Math.ceil(this.n/13)),K},w.prototype.ireduce=function(K){var W=K,U;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),U=W.bitLength();while(U>this.n);var V=U<this.n?-1:W.ucmp(this.p);return V===0?(W.words[0]=0,W.length=1):V>0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},w.prototype.split=function(K,W){K.iushrn(this.n,0,W)},w.prototype.imulK=function(K){return K.imul(this.k)};function g(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(g,w),g.prototype.split=function(K,W){for(var U=4194303,V=Math.min(K.length,9),H=0;H<V;H++)W.words[H]=K.words[H];if(W.length=V,K.length<=9){K.words[0]=0,K.length=1;return}var $=K.words[9];for(W.words[W.length++]=$&U,H=10;H<K.length;H++){var G=K.words[H]|0;K.words[H-10]=(G&U)<<4|$>>>22,$=G}$>>>=22,K.words[H-10]=$,$===0&&K.length>10?K.length-=10:K.length-=9},g.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var W=0,U=0;U<K.length;U++){var V=K.words[U]|0;W+=V*977,K.words[U]=W&67108863,W=V*64+(W/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function r(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(r,w);function t(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(t,w);function $0(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q($0,w),$0.prototype.imulK=function(K){for(var W=0,U=0;U<K.length;U++){var V=(K.words[U]|0)*19+W,H=V&67108863;V>>>=26,K.words[U]=H,W=V}return W!==0&&(K.words[K.length++]=W),K},Q._prime=function(K){if(b[K])return b[K];var W;if(K==="k256")W=new g;else if(K==="p224")W=new r;else if(K==="p192")W=new t;else if(K==="p25519")W=new $0;else throw new Error("Unknown prime "+K);return b[K]=W,W};function f(K){if(typeof K=="string"){var W=Q._prime(K);this.m=W.p,this.prime=W}else Z(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){Z(K.negative===0,"red works only with positives"),Z(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,W){Z((K.negative|W.negative)===0,"red works only with positives"),Z(K.red&&K.red===W.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,W){this._verify2(K,W);var U=K.add(W);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},f.prototype.iadd=function(K,W){this._verify2(K,W);var U=K.iadd(W);return U.cmp(this.m)>=0&&U.isub(this.m),U},f.prototype.sub=function(K,W){this._verify2(K,W);var U=K.sub(W);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},f.prototype.isub=function(K,W){this._verify2(K,W);var U=K.isub(W);return U.cmpn(0)<0&&U.iadd(this.m),U},f.prototype.shl=function(K,W){return this._verify1(K),this.imod(K.ushln(W))},f.prototype.imul=function(K,W){return this._verify2(K,W),this.imod(K.imul(W))},f.prototype.mul=function(K,W){return this._verify2(K,W),this.imod(K.mul(W))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var W=this.m.andln(3);if(Z(W%2===1),W===3){var U=this.m.add(new Q(1)).iushrn(2);return this.pow(K,U)}for(var V=this.m.subn(1),H=0;!V.isZero()&&V.andln(1)===0;)H++,V.iushrn(1);Z(!V.isZero());var $=new Q(1).toRed(this),G=$.redNeg(),Y=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new Q(2*X*X).toRed(this);this.pow(X,Y).cmp(G)!==0;)X.redIAdd(G);for(var F=this.pow(X,V),N=this.pow(K,V.addn(1).iushrn(1)),j=this.pow(K,V),A=H;j.cmp($)!==0;){for(var m=j,h=0;m.cmp($)!==0;h++)m=m.redSqr();Z(h<A);var e=this.pow(F,new Q(1).iushln(A-h-1));N=N.redMul(e),F=e.redSqr(),j=j.redMul(F),A=h}return N},f.prototype.invm=function(K){var W=K._invmp(this.m);return W.negative!==0?(W.negative=0,this.imod(W).redNeg()):this.imod(W)},f.prototype.pow=function(K,W){if(W.isZero())return new Q(1).toRed(this);if(W.cmpn(1)===0)return K.clone();var U=4,V=new Array(1<<U);V[0]=new Q(1).toRed(this),V[1]=K;for(var H=2;H<V.length;H++)V[H]=this.mul(V[H-1],K);var $=V[0],G=0,Y=0,X=W.bitLength()%26;for(X===0&&(X=26),H=W.length-1;H>=0;H--){for(var F=W.words[H],N=X-1;N>=0;N--){var j=F>>N&1;if($!==V[0]&&($=this.sqr($)),j===0&&G===0){Y=0;continue}G<<=1,G|=j,Y++,!(Y!==U&&(H!==0||N!==0))&&($=this.mul($,V[G]),Y=0,G=0)}X=26}return $},f.prototype.convertTo=function(K){var W=K.umod(this.m);return W===K?W.clone():W},f.prototype.convertFrom=function(K){var W=K.clone();return W.red=null,W},Q.mont=function(K){return new Z0(K)};function Z0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new Q(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q(Z0,f),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var W=this.imod(K.mul(this.rinv));return W.red=null,W},Z0.prototype.imul=function(K,W){if(K.isZero()||W.isZero())return K.words[0]=0,K.length=1,K;var U=K.imul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.mul=function(K,W){if(K.isZero()||W.isZero())return new Q(0)._forceRed(this);var U=K.mul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.invm=function(K){var W=this.imod(K._invmp(this.m).mul(this.r2));return W._forceRed(this)}})(typeof M>"u"||M,v)}),J7=z0((v,M)=>{var B=A9(),S=Z7();M.exports=function(O){return new q(O)};var Z={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Z.p224=Z.secp224r1,Z.p256=Z.secp256r1=Z.prime256v1,Z.p192=Z.secp192r1=Z.prime192v1,Z.p384=Z.secp384r1,Z.p521=Z.secp521r1;function q(O){this.curveType=Z[O],this.curveType||(this.curveType={name:O}),this.curve=new B.ec(this.curveType.name),this.keys=void 0}q.prototype.generateKeys=function(O,k){return this.keys=this.curve.genKeyPair(),this.getPublicKey(O,k)},q.prototype.computeSecret=function(O,k,C){k=k||"utf8",Buffer.isBuffer(O)||(O=new Buffer(O,k));var D=this.curve.keyFromPublic(O).getPublic(),P=D.mul(this.keys.getPrivate()).getX();return Q(P,C,this.curveType.byteLength)},q.prototype.getPublicKey=function(O,k){var C=this.keys.getPublic(k==="compressed",!0);return k==="hybrid"&&(C[C.length-1]%2?C[0]=7:C[0]=6),Q(C,O)},q.prototype.getPrivateKey=function(O){return Q(this.keys.getPrivate(),O)},q.prototype.setPublicKey=function(O,k){return k=k||"utf8",Buffer.isBuffer(O)||(O=new Buffer(O,k)),this.keys._importPublic(O),this},q.prototype.setPrivateKey=function(O,k){k=k||"utf8",Buffer.isBuffer(O)||(O=new Buffer(O,k));var C=new S(O);return C=C.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(C),this};function Q(O,k,C){Array.isArray(O)||(O=O.toArray());var D=new Buffer(O);if(C&&D.length<C){var P=new Buffer(C-D.length);P.fill(0),D=Buffer.concat([P,D])}return k?D.toString(k):D}}),A4=z0((v,M)=>{var B=l5(),S=l0().Buffer;M.exports=function(q,Q){for(var O=S.alloc(0),k=0,C;O.length<Q;)C=Z(k++),O=S.concat([O,B("sha1").update(q).update(C).digest()]);return O.slice(0,Q)};function Z(q){var Q=S.allocUnsafe(4);return Q.writeUInt32BE(q,0),Q}}),p4=z0((v,M)=>{M.exports=function(B,S){for(var Z=B.length,q=-1;++q<Z;)B[q]^=S[q];return B}}),p9=z0((v,M)=>{(function(B,S){function Z(K,W){if(!K)throw new Error(W||"Assertion failed")}function q(K,W){K.super_=W;var U=function(){};U.prototype=W.prototype,K.prototype=new U,K.prototype.constructor=K}function Q(K,W,U){if(Q.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((W==="le"||W==="be")&&(U=W,W=10),this._init(K||0,W||10,U||"be"))}typeof B=="object"?B.exports=Q:S.BN=Q,Q.BN=Q,Q.wordSize=26;var O;try{typeof window<"u"&&typeof window.Buffer<"u"?O=window.Buffer:O=_5().Buffer}catch{}Q.isBN=function(K){return K instanceof Q?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===Q.wordSize&&Array.isArray(K.words)},Q.max=function(K,W){return K.cmp(W)>0?K:W},Q.min=function(K,W){return K.cmp(W)<0?K:W},Q.prototype._init=function(K,W,U){if(typeof K=="number")return this._initNumber(K,W,U);if(typeof K=="object")return this._initArray(K,W,U);W==="hex"&&(W=16),Z(W===(W|0)&&W>=2&&W<=36),K=K.toString().replace(/\s+/g,"");var V=0;K[0]==="-"&&(V++,this.negative=1),V<K.length&&(W===16?this._parseHex(K,V,U):(this._parseBase(K,W,V),U==="le"&&this._initArray(this.toArray(),W,U)))},Q.prototype._initNumber=function(K,W,U){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(Z(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),W,U)},Q.prototype._initArray=function(K,W,U){if(Z(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H,$,G=0;if(U==="be")for(V=K.length-1,H=0;V>=0;V-=3)$=K[V]|K[V-1]<<8|K[V-2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);else if(U==="le")for(V=0,H=0;V<K.length;V+=3)$=K[V]|K[V+1]<<8|K[V+2]<<16,this.words[H]|=$<<G&67108863,this.words[H+1]=$>>>26-G&67108863,G+=24,G>=26&&(G-=26,H++);return this.strip()};function k(K,W){var U=K.charCodeAt(W);return U>=65&&U<=70?U-55:U>=97&&U<=102?U-87:U-48&15}function C(K,W,U){var V=k(K,U);return U-1>=W&&(V|=k(K,U-1)<<4),V}Q.prototype._parseHex=function(K,W,U){this.length=Math.ceil((K.length-W)/6),this.words=new Array(this.length);for(var V=0;V<this.length;V++)this.words[V]=0;var H=0,$=0,G;if(U==="be")for(V=K.length-1;V>=W;V-=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8;else{var Y=K.length-W;for(V=Y%2===0?W+1:W;V<K.length;V+=2)G=C(K,W,V)<<H,this.words[$]|=G&67108863,H>=18?(H-=18,$+=1,this.words[$]|=G>>>26):H+=8}this.strip()};function D(K,W,U,V){for(var H=0,$=Math.min(K.length,U),G=W;G<$;G++){var Y=K.charCodeAt(G)-48;H*=V,Y>=49?H+=Y-49+10:Y>=17?H+=Y-17+10:H+=Y}return H}Q.prototype._parseBase=function(K,W,U){this.words=[0],this.length=1;for(var V=0,H=1;H<=67108863;H*=W)V++;V--,H=H/W|0;for(var $=K.length-U,G=$%V,Y=Math.min($,$-G)+U,X=0,F=U;F<Y;F+=V)X=D(K,F,F+V,W),this.imuln(H),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(G!==0){var N=1;for(X=D(K,F,K.length,W),F=0;F<G;F++)N*=W;this.imuln(N),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},Q.prototype.copy=function(K){K.words=new Array(this.length);for(var W=0;W<this.length;W++)K.words[W]=this.words[W];K.length=this.length,K.negative=this.negative,K.red=this.red},Q.prototype.clone=function(){var K=new Q(null);return this.copy(K),K},Q.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},Q.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},Q.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},Q.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var P=["","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"],J=[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],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];Q.prototype.toString=function(K,W){K=K||10,W=W|0||1;var U;if(K===16||K==="hex"){U="";for(var V=0,H=0,$=0;$<this.length;$++){var G=this.words[$],Y=((G<<V|H)&16777215).toString(16);H=G>>>24-V&16777215,V+=2,V>=26&&(V-=26,$--),H!==0||$!==this.length-1?U=P[6-Y.length]+Y+U:U=Y+U}for(H!==0&&(U=H.toString(16)+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(K===(K|0)&&K>=2&&K<=36){var X=J[K],F=T[K];U="";var N=this.clone();for(N.negative=0;!N.isZero();){var j=N.modn(F).toString(K);N=N.idivn(F),N.isZero()?U=j+U:U=P[X-j.length]+j+U}for(this.isZero()&&(U="0"+U);U.length%W!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}Z(!1,"Base should be between 2 and 36")},Q.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},Q.prototype.toJSON=function(){return this.toString(16)},Q.prototype.toBuffer=function(K,W){return Z(typeof O<"u"),this.toArrayLike(O,K,W)},Q.prototype.toArray=function(K,W){return this.toArrayLike(Array,K,W)},Q.prototype.toArrayLike=function(K,W,U){var V=this.byteLength(),H=U||Math.max(1,V);Z(V<=H,"byte array longer than desired length"),Z(H>0,"Requested array length <= 0"),this.strip();var $=W==="le",G=new K(H),Y,X,F=this.clone();if($){for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[X]=Y;for(;X<H;X++)G[X]=0}else{for(X=0;X<H-V;X++)G[X]=0;for(X=0;!F.isZero();X++)Y=F.andln(255),F.iushrn(8),G[H-X-1]=Y}return G},Math.clz32?Q.prototype._countBits=function(K){return 32-Math.clz32(K)}:Q.prototype._countBits=function(K){var W=K,U=0;return W>=4096&&(U+=13,W>>>=13),W>=64&&(U+=7,W>>>=7),W>=8&&(U+=4,W>>>=4),W>=2&&(U+=2,W>>>=2),U+W},Q.prototype._zeroBits=function(K){if(K===0)return 26;var W=K,U=0;return(W&8191)===0&&(U+=13,W>>>=13),(W&127)===0&&(U+=7,W>>>=7),(W&15)===0&&(U+=4,W>>>=4),(W&3)===0&&(U+=2,W>>>=2),(W&1)===0&&U++,U},Q.prototype.bitLength=function(){var K=this.words[this.length-1],W=this._countBits(K);return(this.length-1)*26+W};function z(K){for(var W=new Array(K.bitLength()),U=0;U<W.length;U++){var V=U/26|0,H=U%26;W[U]=(K.words[V]&1<<H)>>>H}return W}Q.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,W=0;W<this.length;W++){var U=this._zeroBits(this.words[W]);if(K+=U,U!==26)break}return K},Q.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Q.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},Q.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},Q.prototype.isNeg=function(){return this.negative!==0},Q.prototype.neg=function(){return this.clone().ineg()},Q.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},Q.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var W=0;W<K.length;W++)this.words[W]=this.words[W]|K.words[W];return this.strip()},Q.prototype.ior=function(K){return Z((this.negative|K.negative)===0),this.iuor(K)},Q.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},Q.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},Q.prototype.iuand=function(K){var W;this.length>K.length?W=K:W=this;for(var U=0;U<W.length;U++)this.words[U]=this.words[U]&K.words[U];return this.length=W.length,this.strip()},Q.prototype.iand=function(K){return Z((this.negative|K.negative)===0),this.iuand(K)},Q.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},Q.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},Q.prototype.iuxor=function(K){var W,U;this.length>K.length?(W=this,U=K):(W=K,U=this);for(var V=0;V<U.length;V++)this.words[V]=W.words[V]^U.words[V];if(this!==W)for(;V<W.length;V++)this.words[V]=W.words[V];return this.length=W.length,this.strip()},Q.prototype.ixor=function(K){return Z((this.negative|K.negative)===0),this.iuxor(K)},Q.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},Q.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},Q.prototype.inotn=function(K){Z(typeof K=="number"&&K>=0);var W=Math.ceil(K/26)|0,U=K%26;this._expand(W),U>0&&W--;for(var V=0;V<W;V++)this.words[V]=~this.words[V]&67108863;return U>0&&(this.words[V]=~this.words[V]&67108863>>26-U),this.strip()},Q.prototype.notn=function(K){return this.clone().inotn(K)},Q.prototype.setn=function(K,W){Z(typeof K=="number"&&K>=0);var U=K/26|0,V=K%26;return this._expand(U+1),W?this.words[U]=this.words[U]|1<<V:this.words[U]=this.words[U]&~(1<<V),this.strip()},Q.prototype.iadd=function(K){var W;if(this.negative!==0&&K.negative===0)return this.negative=0,W=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,W=this.isub(K),K.negative=1,W._normSign();var U,V;this.length>K.length?(U=this,V=K):(U=K,V=this);for(var H=0,$=0;$<V.length;$++)W=(U.words[$]|0)+(V.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;for(;H!==0&&$<U.length;$++)W=(U.words[$]|0)+H,this.words[$]=W&67108863,H=W>>>26;if(this.length=U.length,H!==0)this.words[this.length]=H,this.length++;else if(U!==this)for(;$<U.length;$++)this.words[$]=U.words[$];return this},Q.prototype.add=function(K){var W;return K.negative!==0&&this.negative===0?(K.negative=0,W=this.sub(K),K.negative^=1,W):K.negative===0&&this.negative!==0?(this.negative=0,W=K.sub(this),this.negative=1,W):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},Q.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var W=this.iadd(K);return K.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var U=this.cmp(K);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var V,H;U>0?(V=this,H=K):(V=K,H=this);for(var $=0,G=0;G<H.length;G++)W=(V.words[G]|0)-(H.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;for(;$!==0&&G<V.length;G++)W=(V.words[G]|0)+$,$=W>>26,this.words[G]=W&67108863;if($===0&&G<V.length&&V!==this)for(;G<V.length;G++)this.words[G]=V.words[G];return this.length=Math.max(this.length,G),V!==this&&(this.negative=1),this.strip()},Q.prototype.sub=function(K){return this.clone().isub(K)};function I(K,W,U){U.negative=W.negative^K.negative;var V=K.length+W.length|0;U.length=V,V=V-1|0;var H=K.words[0]|0,$=W.words[0]|0,G=H*$,Y=G&67108863,X=G/67108864|0;U.words[0]=Y;for(var F=1;F<V;F++){for(var N=X>>>26,j=X&67108863,A=Math.min(F,W.length-1),m=Math.max(0,F-K.length+1);m<=A;m++){var h=F-m|0;H=K.words[h]|0,$=W.words[m]|0,G=H*$+j,N+=G/67108864|0,j=G&67108863}U.words[F]=j|0,X=N|0}return X!==0?U.words[F]=X|0:U.length--,U.strip()}var L=function(K,W,U){var V=K.words,H=W.words,$=U.words,G=0,Y,X,F,N=V[0]|0,j=N&8191,A=N>>>13,m=V[1]|0,h=m&8191,e=m>>>13,T0=V[2]|0,U0=T0&8191,y=T0>>>13,o=V[3]|0,n=o&8191,K0=o>>>13,w0=V[4]|0,l=w0&8191,u=w0>>>13,C0=V[5]|0,H0=C0&8191,F0=C0>>>13,y0=V[6]|0,a=y0&8191,X0=y0>>>13,M0=V[7]|0,W0=M0&8191,G0=M0>>>13,b0=V[8]|0,R=b0&8191,_=b0>>>13,d=V[9]|0,s=d&8191,i=d>>>13,E0=H[0]|0,Y0=E0&8191,J0=E0>>>13,d0=H[1]|0,j0=d0&8191,O0=d0>>>13,c0=H[2]|0,S0=c0&8191,k0=c0>>>13,P5=H[3]|0,A0=P5&8191,R0=P5>>>13,$5=H[4]|0,p0=$5&8191,_0=$5>>>13,G5=H[5]|0,I0=G5&8191,c=G5>>>13,V0=H[6]|0,Q0=V0&8191,P0=V0>>>13,g0=H[7]|0,D0=g0&8191,N0=g0>>>13,f0=H[8]|0,q0=f0&8191,x0=f0>>>13,Z5=H[9]|0,B0=Z5&8191,L0=Z5>>>13;U.negative=K.negative^W.negative,U.length=19,Y=Math.imul(j,Y0),X=Math.imul(j,J0),X=X+Math.imul(A,Y0)|0,F=Math.imul(A,J0);var o0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,Y=Math.imul(h,Y0),X=Math.imul(h,J0),X=X+Math.imul(e,Y0)|0,F=Math.imul(e,J0),Y=Y+Math.imul(j,j0)|0,X=X+Math.imul(j,O0)|0,X=X+Math.imul(A,j0)|0,F=F+Math.imul(A,O0)|0;var m0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,Y=Math.imul(U0,Y0),X=Math.imul(U0,J0),X=X+Math.imul(y,Y0)|0,F=Math.imul(y,J0),Y=Y+Math.imul(h,j0)|0,X=X+Math.imul(h,O0)|0,X=X+Math.imul(e,j0)|0,F=F+Math.imul(e,O0)|0,Y=Y+Math.imul(j,S0)|0,X=X+Math.imul(j,k0)|0,X=X+Math.imul(A,S0)|0,F=F+Math.imul(A,k0)|0;var v0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(v0>>>26)|0,v0&=67108863,Y=Math.imul(n,Y0),X=Math.imul(n,J0),X=X+Math.imul(K0,Y0)|0,F=Math.imul(K0,J0),Y=Y+Math.imul(U0,j0)|0,X=X+Math.imul(U0,O0)|0,X=X+Math.imul(y,j0)|0,F=F+Math.imul(y,O0)|0,Y=Y+Math.imul(h,S0)|0,X=X+Math.imul(h,k0)|0,X=X+Math.imul(e,S0)|0,F=F+Math.imul(e,k0)|0,Y=Y+Math.imul(j,A0)|0,X=X+Math.imul(j,R0)|0,X=X+Math.imul(A,A0)|0,F=F+Math.imul(A,R0)|0;var u0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,Y=Math.imul(l,Y0),X=Math.imul(l,J0),X=X+Math.imul(u,Y0)|0,F=Math.imul(u,J0),Y=Y+Math.imul(n,j0)|0,X=X+Math.imul(n,O0)|0,X=X+Math.imul(K0,j0)|0,F=F+Math.imul(K0,O0)|0,Y=Y+Math.imul(U0,S0)|0,X=X+Math.imul(U0,k0)|0,X=X+Math.imul(y,S0)|0,F=F+Math.imul(y,k0)|0,Y=Y+Math.imul(h,A0)|0,X=X+Math.imul(h,R0)|0,X=X+Math.imul(e,A0)|0,F=F+Math.imul(e,R0)|0,Y=Y+Math.imul(j,p0)|0,X=X+Math.imul(j,_0)|0,X=X+Math.imul(A,p0)|0,F=F+Math.imul(A,_0)|0;var s0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,Y=Math.imul(H0,Y0),X=Math.imul(H0,J0),X=X+Math.imul(F0,Y0)|0,F=Math.imul(F0,J0),Y=Y+Math.imul(l,j0)|0,X=X+Math.imul(l,O0)|0,X=X+Math.imul(u,j0)|0,F=F+Math.imul(u,O0)|0,Y=Y+Math.imul(n,S0)|0,X=X+Math.imul(n,k0)|0,X=X+Math.imul(K0,S0)|0,F=F+Math.imul(K0,k0)|0,Y=Y+Math.imul(U0,A0)|0,X=X+Math.imul(U0,R0)|0,X=X+Math.imul(y,A0)|0,F=F+Math.imul(y,R0)|0,Y=Y+Math.imul(h,p0)|0,X=X+Math.imul(h,_0)|0,X=X+Math.imul(e,p0)|0,F=F+Math.imul(e,_0)|0,Y=Y+Math.imul(j,I0)|0,X=X+Math.imul(j,c)|0,X=X+Math.imul(A,I0)|0,F=F+Math.imul(A,c)|0;var a0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,Y=Math.imul(a,Y0),X=Math.imul(a,J0),X=X+Math.imul(X0,Y0)|0,F=Math.imul(X0,J0),Y=Y+Math.imul(H0,j0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(F0,j0)|0,F=F+Math.imul(F0,O0)|0,Y=Y+Math.imul(l,S0)|0,X=X+Math.imul(l,k0)|0,X=X+Math.imul(u,S0)|0,F=F+Math.imul(u,k0)|0,Y=Y+Math.imul(n,A0)|0,X=X+Math.imul(n,R0)|0,X=X+Math.imul(K0,A0)|0,F=F+Math.imul(K0,R0)|0,Y=Y+Math.imul(U0,p0)|0,X=X+Math.imul(U0,_0)|0,X=X+Math.imul(y,p0)|0,F=F+Math.imul(y,_0)|0,Y=Y+Math.imul(h,I0)|0,X=X+Math.imul(h,c)|0,X=X+Math.imul(e,I0)|0,F=F+Math.imul(e,c)|0,Y=Y+Math.imul(j,Q0)|0,X=X+Math.imul(j,P0)|0,X=X+Math.imul(A,Q0)|0,F=F+Math.imul(A,P0)|0;var n0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,Y=Math.imul(W0,Y0),X=Math.imul(W0,J0),X=X+Math.imul(G0,Y0)|0,F=Math.imul(G0,J0),Y=Y+Math.imul(a,j0)|0,X=X+Math.imul(a,O0)|0,X=X+Math.imul(X0,j0)|0,F=F+Math.imul(X0,O0)|0,Y=Y+Math.imul(H0,S0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(F0,S0)|0,F=F+Math.imul(F0,k0)|0,Y=Y+Math.imul(l,A0)|0,X=X+Math.imul(l,R0)|0,X=X+Math.imul(u,A0)|0,F=F+Math.imul(u,R0)|0,Y=Y+Math.imul(n,p0)|0,X=X+Math.imul(n,_0)|0,X=X+Math.imul(K0,p0)|0,F=F+Math.imul(K0,_0)|0,Y=Y+Math.imul(U0,I0)|0,X=X+Math.imul(U0,c)|0,X=X+Math.imul(y,I0)|0,F=F+Math.imul(y,c)|0,Y=Y+Math.imul(h,Q0)|0,X=X+Math.imul(h,P0)|0,X=X+Math.imul(e,Q0)|0,F=F+Math.imul(e,P0)|0,Y=Y+Math.imul(j,D0)|0,X=X+Math.imul(j,N0)|0,X=X+Math.imul(A,D0)|0,F=F+Math.imul(A,N0)|0;var i0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,Y=Math.imul(R,Y0),X=Math.imul(R,J0),X=X+Math.imul(_,Y0)|0,F=Math.imul(_,J0),Y=Y+Math.imul(W0,j0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(G0,j0)|0,F=F+Math.imul(G0,O0)|0,Y=Y+Math.imul(a,S0)|0,X=X+Math.imul(a,k0)|0,X=X+Math.imul(X0,S0)|0,F=F+Math.imul(X0,k0)|0,Y=Y+Math.imul(H0,A0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(F0,A0)|0,F=F+Math.imul(F0,R0)|0,Y=Y+Math.imul(l,p0)|0,X=X+Math.imul(l,_0)|0,X=X+Math.imul(u,p0)|0,F=F+Math.imul(u,_0)|0,Y=Y+Math.imul(n,I0)|0,X=X+Math.imul(n,c)|0,X=X+Math.imul(K0,I0)|0,F=F+Math.imul(K0,c)|0,Y=Y+Math.imul(U0,Q0)|0,X=X+Math.imul(U0,P0)|0,X=X+Math.imul(y,Q0)|0,F=F+Math.imul(y,P0)|0,Y=Y+Math.imul(h,D0)|0,X=X+Math.imul(h,N0)|0,X=X+Math.imul(e,D0)|0,F=F+Math.imul(e,N0)|0,Y=Y+Math.imul(j,q0)|0,X=X+Math.imul(j,x0)|0,X=X+Math.imul(A,q0)|0,F=F+Math.imul(A,x0)|0;var r0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,Y=Math.imul(s,Y0),X=Math.imul(s,J0),X=X+Math.imul(i,Y0)|0,F=Math.imul(i,J0),Y=Y+Math.imul(R,j0)|0,X=X+Math.imul(R,O0)|0,X=X+Math.imul(_,j0)|0,F=F+Math.imul(_,O0)|0,Y=Y+Math.imul(W0,S0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(G0,S0)|0,F=F+Math.imul(G0,k0)|0,Y=Y+Math.imul(a,A0)|0,X=X+Math.imul(a,R0)|0,X=X+Math.imul(X0,A0)|0,F=F+Math.imul(X0,R0)|0,Y=Y+Math.imul(H0,p0)|0,X=X+Math.imul(H0,_0)|0,X=X+Math.imul(F0,p0)|0,F=F+Math.imul(F0,_0)|0,Y=Y+Math.imul(l,I0)|0,X=X+Math.imul(l,c)|0,X=X+Math.imul(u,I0)|0,F=F+Math.imul(u,c)|0,Y=Y+Math.imul(n,Q0)|0,X=X+Math.imul(n,P0)|0,X=X+Math.imul(K0,Q0)|0,F=F+Math.imul(K0,P0)|0,Y=Y+Math.imul(U0,D0)|0,X=X+Math.imul(U0,N0)|0,X=X+Math.imul(y,D0)|0,F=F+Math.imul(y,N0)|0,Y=Y+Math.imul(h,q0)|0,X=X+Math.imul(h,x0)|0,X=X+Math.imul(e,q0)|0,F=F+Math.imul(e,x0)|0,Y=Y+Math.imul(j,B0)|0,X=X+Math.imul(j,L0)|0,X=X+Math.imul(A,B0)|0,F=F+Math.imul(A,L0)|0;var t0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,Y=Math.imul(s,j0),X=Math.imul(s,O0),X=X+Math.imul(i,j0)|0,F=Math.imul(i,O0),Y=Y+Math.imul(R,S0)|0,X=X+Math.imul(R,k0)|0,X=X+Math.imul(_,S0)|0,F=F+Math.imul(_,k0)|0,Y=Y+Math.imul(W0,A0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(G0,A0)|0,F=F+Math.imul(G0,R0)|0,Y=Y+Math.imul(a,p0)|0,X=X+Math.imul(a,_0)|0,X=X+Math.imul(X0,p0)|0,F=F+Math.imul(X0,_0)|0,Y=Y+Math.imul(H0,I0)|0,X=X+Math.imul(H0,c)|0,X=X+Math.imul(F0,I0)|0,F=F+Math.imul(F0,c)|0,Y=Y+Math.imul(l,Q0)|0,X=X+Math.imul(l,P0)|0,X=X+Math.imul(u,Q0)|0,F=F+Math.imul(u,P0)|0,Y=Y+Math.imul(n,D0)|0,X=X+Math.imul(n,N0)|0,X=X+Math.imul(K0,D0)|0,F=F+Math.imul(K0,N0)|0,Y=Y+Math.imul(U0,q0)|0,X=X+Math.imul(U0,x0)|0,X=X+Math.imul(y,q0)|0,F=F+Math.imul(y,x0)|0,Y=Y+Math.imul(h,B0)|0,X=X+Math.imul(h,L0)|0,X=X+Math.imul(e,B0)|0,F=F+Math.imul(e,L0)|0;var e0=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,Y=Math.imul(s,S0),X=Math.imul(s,k0),X=X+Math.imul(i,S0)|0,F=Math.imul(i,k0),Y=Y+Math.imul(R,A0)|0,X=X+Math.imul(R,R0)|0,X=X+Math.imul(_,A0)|0,F=F+Math.imul(_,R0)|0,Y=Y+Math.imul(W0,p0)|0,X=X+Math.imul(W0,_0)|0,X=X+Math.imul(G0,p0)|0,F=F+Math.imul(G0,_0)|0,Y=Y+Math.imul(a,I0)|0,X=X+Math.imul(a,c)|0,X=X+Math.imul(X0,I0)|0,F=F+Math.imul(X0,c)|0,Y=Y+Math.imul(H0,Q0)|0,X=X+Math.imul(H0,P0)|0,X=X+Math.imul(F0,Q0)|0,F=F+Math.imul(F0,P0)|0,Y=Y+Math.imul(l,D0)|0,X=X+Math.imul(l,N0)|0,X=X+Math.imul(u,D0)|0,F=F+Math.imul(u,N0)|0,Y=Y+Math.imul(n,q0)|0,X=X+Math.imul(n,x0)|0,X=X+Math.imul(K0,q0)|0,F=F+Math.imul(K0,x0)|0,Y=Y+Math.imul(U0,B0)|0,X=X+Math.imul(U0,L0)|0,X=X+Math.imul(y,B0)|0,F=F+Math.imul(y,L0)|0;var K5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,Y=Math.imul(s,A0),X=Math.imul(s,R0),X=X+Math.imul(i,A0)|0,F=Math.imul(i,R0),Y=Y+Math.imul(R,p0)|0,X=X+Math.imul(R,_0)|0,X=X+Math.imul(_,p0)|0,F=F+Math.imul(_,_0)|0,Y=Y+Math.imul(W0,I0)|0,X=X+Math.imul(W0,c)|0,X=X+Math.imul(G0,I0)|0,F=F+Math.imul(G0,c)|0,Y=Y+Math.imul(a,Q0)|0,X=X+Math.imul(a,P0)|0,X=X+Math.imul(X0,Q0)|0,F=F+Math.imul(X0,P0)|0,Y=Y+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(F0,D0)|0,F=F+Math.imul(F0,N0)|0,Y=Y+Math.imul(l,q0)|0,X=X+Math.imul(l,x0)|0,X=X+Math.imul(u,q0)|0,F=F+Math.imul(u,x0)|0,Y=Y+Math.imul(n,B0)|0,X=X+Math.imul(n,L0)|0,X=X+Math.imul(K0,B0)|0,F=F+Math.imul(K0,L0)|0;var X5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,Y=Math.imul(s,p0),X=Math.imul(s,_0),X=X+Math.imul(i,p0)|0,F=Math.imul(i,_0),Y=Y+Math.imul(R,I0)|0,X=X+Math.imul(R,c)|0,X=X+Math.imul(_,I0)|0,F=F+Math.imul(_,c)|0,Y=Y+Math.imul(W0,Q0)|0,X=X+Math.imul(W0,P0)|0,X=X+Math.imul(G0,Q0)|0,F=F+Math.imul(G0,P0)|0,Y=Y+Math.imul(a,D0)|0,X=X+Math.imul(a,N0)|0,X=X+Math.imul(X0,D0)|0,F=F+Math.imul(X0,N0)|0,Y=Y+Math.imul(H0,q0)|0,X=X+Math.imul(H0,x0)|0,X=X+Math.imul(F0,q0)|0,F=F+Math.imul(F0,x0)|0,Y=Y+Math.imul(l,B0)|0,X=X+Math.imul(l,L0)|0,X=X+Math.imul(u,B0)|0,F=F+Math.imul(u,L0)|0;var W5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(W5>>>26)|0,W5&=67108863,Y=Math.imul(s,I0),X=Math.imul(s,c),X=X+Math.imul(i,I0)|0,F=Math.imul(i,c),Y=Y+Math.imul(R,Q0)|0,X=X+Math.imul(R,P0)|0,X=X+Math.imul(_,Q0)|0,F=F+Math.imul(_,P0)|0,Y=Y+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(G0,D0)|0,F=F+Math.imul(G0,N0)|0,Y=Y+Math.imul(a,q0)|0,X=X+Math.imul(a,x0)|0,X=X+Math.imul(X0,q0)|0,F=F+Math.imul(X0,x0)|0,Y=Y+Math.imul(H0,B0)|0,X=X+Math.imul(H0,L0)|0,X=X+Math.imul(F0,B0)|0,F=F+Math.imul(F0,L0)|0;var V5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(V5>>>26)|0,V5&=67108863,Y=Math.imul(s,Q0),X=Math.imul(s,P0),X=X+Math.imul(i,Q0)|0,F=Math.imul(i,P0),Y=Y+Math.imul(R,D0)|0,X=X+Math.imul(R,N0)|0,X=X+Math.imul(_,D0)|0,F=F+Math.imul(_,N0)|0,Y=Y+Math.imul(W0,q0)|0,X=X+Math.imul(W0,x0)|0,X=X+Math.imul(G0,q0)|0,F=F+Math.imul(G0,x0)|0,Y=Y+Math.imul(a,B0)|0,X=X+Math.imul(a,L0)|0,X=X+Math.imul(X0,B0)|0,F=F+Math.imul(X0,L0)|0;var U5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(U5>>>26)|0,U5&=67108863,Y=Math.imul(s,D0),X=Math.imul(s,N0),X=X+Math.imul(i,D0)|0,F=Math.imul(i,N0),Y=Y+Math.imul(R,q0)|0,X=X+Math.imul(R,x0)|0,X=X+Math.imul(_,q0)|0,F=F+Math.imul(_,x0)|0,Y=Y+Math.imul(W0,B0)|0,X=X+Math.imul(W0,L0)|0,X=X+Math.imul(G0,B0)|0,F=F+Math.imul(G0,L0)|0;var H5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(H5>>>26)|0,H5&=67108863,Y=Math.imul(s,q0),X=Math.imul(s,x0),X=X+Math.imul(i,q0)|0,F=Math.imul(i,x0),Y=Y+Math.imul(R,B0)|0,X=X+Math.imul(R,L0)|0,X=X+Math.imul(_,B0)|0,F=F+Math.imul(_,L0)|0;var Y5=(G+Y|0)+((X&8191)<<13)|0;G=(F+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Y=Math.imul(s,B0),X=Math.imul(s,L0),X=X+Math.imul(i,B0)|0,F=Math.imul(i,L0);var F5=(G+Y|0)+((X&8191)<<13)|0;return G=(F+(X>>>13)|0)+(F5>>>26)|0,F5&=67108863,$[0]=o0,$[1]=m0,$[2]=v0,$[3]=u0,$[4]=s0,$[5]=a0,$[6]=n0,$[7]=i0,$[8]=r0,$[9]=t0,$[10]=e0,$[11]=K5,$[12]=X5,$[13]=W5,$[14]=V5,$[15]=U5,$[16]=H5,$[17]=Y5,$[18]=F5,G!==0&&($[19]=G,U.length++),U};Math.imul||(L=I);function p(K,W,U){U.negative=W.negative^K.negative,U.length=K.length+W.length;for(var V=0,H=0,$=0;$<U.length-1;$++){var G=H;H=0;for(var Y=V&67108863,X=Math.min($,W.length-1),F=Math.max(0,$-K.length+1);F<=X;F++){var N=$-F,j=K.words[N]|0,A=W.words[F]|0,m=j*A,h=m&67108863;G=G+(m/67108864|0)|0,h=h+Y|0,Y=h&67108863,G=G+(h>>>26)|0,H+=G>>>26,G&=67108863}U.words[$]=Y,V=G,G=H}return V!==0?U.words[$]=V:U.length--,U.strip()}function E(K,W,U){var V=new x;return V.mulp(K,W,U)}Q.prototype.mulTo=function(K,W){var U,V=this.length+K.length;return this.length===10&&K.length===10?U=L(this,K,W):V<63?U=I(this,K,W):V<1024?U=p(this,K,W):U=E(this,K,W),U};function x(K,W){this.x=K,this.y=W}x.prototype.makeRBT=function(K){for(var W=new Array(K),U=Q.prototype._countBits(K)-1,V=0;V<K;V++)W[V]=this.revBin(V,U,K);return W},x.prototype.revBin=function(K,W,U){if(K===0||K===U-1)return K;for(var V=0,H=0;H<W;H++)V|=(K&1)<<W-H-1,K>>=1;return V},x.prototype.permute=function(K,W,U,V,H,$){for(var G=0;G<$;G++)V[G]=W[K[G]],H[G]=U[K[G]]},x.prototype.transform=function(K,W,U,V,H,$){this.permute($,K,W,U,V,H);for(var G=1;G<H;G<<=1)for(var Y=G<<1,X=Math.cos(2*Math.PI/Y),F=Math.sin(2*Math.PI/Y),N=0;N<H;N+=Y)for(var j=X,A=F,m=0;m<G;m++){var h=U[N+m],e=V[N+m],T0=U[N+m+G],U0=V[N+m+G],y=j*T0-A*U0;U0=j*U0+A*T0,T0=y,U[N+m]=h+T0,V[N+m]=e+U0,U[N+m+G]=h-T0,V[N+m+G]=e-U0,m!==Y&&(y=X*j-F*A,A=X*A+F*j,j=y)}},x.prototype.guessLen13b=function(K,W){var U=Math.max(W,K)|1,V=U&1,H=0;for(U=U/2|0;U;U=U>>>1)H++;return 1<<H+1+V},x.prototype.conjugate=function(K,W,U){if(!(U<=1))for(var V=0;V<U/2;V++){var H=K[V];K[V]=K[U-V-1],K[U-V-1]=H,H=W[V],W[V]=-W[U-V-1],W[U-V-1]=-H}},x.prototype.normalize13b=function(K,W){for(var U=0,V=0;V<W/2;V++){var H=Math.round(K[2*V+1]/W)*8192+Math.round(K[2*V]/W)+U;K[V]=H&67108863,H<67108864?U=0:U=H/67108864|0}return K},x.prototype.convert13b=function(K,W,U,V){for(var H=0,$=0;$<W;$++)H=H+(K[$]|0),U[2*$]=H&8191,H=H>>>13,U[2*$+1]=H&8191,H=H>>>13;for($=2*W;$<V;++$)U[$]=0;Z(H===0),Z((H&-8192)===0)},x.prototype.stub=function(K){for(var W=new Array(K),U=0;U<K;U++)W[U]=0;return W},x.prototype.mulp=function(K,W,U){var V=2*this.guessLen13b(K.length,W.length),H=this.makeRBT(V),$=this.stub(V),G=new Array(V),Y=new Array(V),X=new Array(V),F=new Array(V),N=new Array(V),j=new Array(V),A=U.words;A.length=V,this.convert13b(K.words,K.length,G,V),this.convert13b(W.words,W.length,F,V),this.transform(G,$,Y,X,V,H),this.transform(F,$,N,j,V,H);for(var m=0;m<V;m++){var h=Y[m]*N[m]-X[m]*j[m];X[m]=Y[m]*j[m]+X[m]*N[m],Y[m]=h}return this.conjugate(Y,X,V),this.transform(Y,X,A,$,V,H),this.conjugate(A,$,V),this.normalize13b(A,V),U.negative=K.negative^W.negative,U.length=K.length+W.length,U.strip()},Q.prototype.mul=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),this.mulTo(K,W)},Q.prototype.mulf=function(K){var W=new Q(null);return W.words=new Array(this.length+K.length),E(this,K,W)},Q.prototype.imul=function(K){return this.clone().mulTo(K,this)},Q.prototype.imuln=function(K){Z(typeof K=="number"),Z(K<67108864);for(var W=0,U=0;U<this.length;U++){var V=(this.words[U]|0)*K,H=(V&67108863)+(W&67108863);W>>=26,W+=V/67108864|0,W+=H>>>26,this.words[U]=H&67108863}return W!==0&&(this.words[U]=W,this.length++),this},Q.prototype.muln=function(K){return this.clone().imuln(K)},Q.prototype.sqr=function(){return this.mul(this)},Q.prototype.isqr=function(){return this.imul(this.clone())},Q.prototype.pow=function(K){var W=z(K);if(W.length===0)return new Q(1);for(var U=this,V=0;V<W.length&&W[V]===0;V++,U=U.sqr());if(++V<W.length)for(var H=U.sqr();V<W.length;V++,H=H.sqr())W[V]!==0&&(U=U.mul(H));return U},Q.prototype.iushln=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=67108863>>>26-W<<26-W,H;if(W!==0){var $=0;for(H=0;H<this.length;H++){var G=this.words[H]&V,Y=(this.words[H]|0)-G<<W;this.words[H]=Y|$,$=G>>>26-W}$&&(this.words[H]=$,this.length++)}if(U!==0){for(H=this.length-1;H>=0;H--)this.words[H+U]=this.words[H];for(H=0;H<U;H++)this.words[H]=0;this.length+=U}return this.strip()},Q.prototype.ishln=function(K){return Z(this.negative===0),this.iushln(K)},Q.prototype.iushrn=function(K,W,U){Z(typeof K=="number"&&K>=0);var V;W?V=(W-W%26)/26:V=0;var H=K%26,$=Math.min((K-H)/26,this.length),G=67108863^67108863>>>H<<H,Y=U;if(V-=$,V=Math.max(0,V),Y){for(var X=0;X<$;X++)Y.words[X]=this.words[X];Y.length=$}if($!==0)if(this.length>$)for(this.length-=$,X=0;X<this.length;X++)this.words[X]=this.words[X+$];else this.words[0]=0,this.length=1;var F=0;for(X=this.length-1;X>=0&&(F!==0||X>=V);X--){var N=this.words[X]|0;this.words[X]=F<<26-H|N>>>H,F=N&G}return Y&&F!==0&&(Y.words[Y.length++]=F),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},Q.prototype.ishrn=function(K,W,U){return Z(this.negative===0),this.iushrn(K,W,U)},Q.prototype.shln=function(K){return this.clone().ishln(K)},Q.prototype.ushln=function(K){return this.clone().iushln(K)},Q.prototype.shrn=function(K){return this.clone().ishrn(K)},Q.prototype.ushrn=function(K){return this.clone().iushrn(K)},Q.prototype.testn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return!1;var H=this.words[U];return!!(H&V)},Q.prototype.imaskn=function(K){Z(typeof K=="number"&&K>=0);var W=K%26,U=(K-W)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(W!==0&&U++,this.length=Math.min(U,this.length),W!==0){var V=67108863^67108863>>>W<<W;this.words[this.length-1]&=V}return this.strip()},Q.prototype.maskn=function(K){return this.clone().imaskn(K)},Q.prototype.iaddn=function(K){return Z(typeof K=="number"),Z(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},Q.prototype._iaddn=function(K){this.words[0]+=K;for(var W=0;W<this.length&&this.words[W]>=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},Q.prototype.isubn=function(K){if(Z(typeof K=="number"),Z(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W<this.length&&this.words[W]<0;W++)this.words[W]+=67108864,this.words[W+1]-=1;return this.strip()},Q.prototype.addn=function(K){return this.clone().iaddn(K)},Q.prototype.subn=function(K){return this.clone().isubn(K)},Q.prototype.iabs=function(){return this.negative=0,this},Q.prototype.abs=function(){return this.clone().iabs()},Q.prototype._ishlnsubmul=function(K,W,U){var V=K.length+U,H;this._expand(V);var $,G=0;for(H=0;H<K.length;H++){$=(this.words[H+U]|0)+G;var Y=(K.words[H]|0)*W;$-=Y&67108863,G=($>>26)-(Y/67108864|0),this.words[H+U]=$&67108863}for(;H<this.length-U;H++)$=(this.words[H+U]|0)+G,G=$>>26,this.words[H+U]=$&67108863;if(G===0)return this.strip();for(Z(G===-1),G=0,H=0;H<this.length;H++)$=-(this.words[H]|0)+G,G=$>>26,this.words[H]=$&67108863;return this.negative=1,this.strip()},Q.prototype._wordDiv=function(K,W){var U=this.length-K.length,V=this.clone(),H=K,$=H.words[H.length-1]|0,G=this._countBits($);U=26-G,U!==0&&(H=H.ushln(U),V.iushln(U),$=H.words[H.length-1]|0);var Y=V.length-H.length,X;if(W!=="mod"){X=new Q(null),X.length=Y+1,X.words=new Array(X.length);for(var F=0;F<X.length;F++)X.words[F]=0}var N=V.clone()._ishlnsubmul(H,1,Y);N.negative===0&&(V=N,X&&(X.words[Y]=1));for(var j=Y-1;j>=0;j--){var A=(V.words[H.length+j]|0)*67108864+(V.words[H.length+j-1]|0);for(A=Math.min(A/$|0,67108863),V._ishlnsubmul(H,A,j);V.negative!==0;)A--,V.negative=0,V._ishlnsubmul(H,1,j),V.isZero()||(V.negative^=1);X&&(X.words[j]=A)}return X&&X.strip(),V.strip(),W!=="div"&&U!==0&&V.iushrn(U),{div:X||null,mod:V}},Q.prototype.divmod=function(K,W,U){if(Z(!K.isZero()),this.isZero())return{div:new Q(0),mod:new Q(0)};var V,H,$;return this.negative!==0&&K.negative===0?($=this.neg().divmod(K,W),W!=="mod"&&(V=$.div.neg()),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.iadd(K)),{div:V,mod:H}):this.negative===0&&K.negative!==0?($=this.divmod(K.neg(),W),W!=="mod"&&(V=$.div.neg()),{div:V,mod:$.mod}):(this.negative&K.negative)!==0?($=this.neg().divmod(K.neg(),W),W!=="div"&&(H=$.mod.neg(),U&&H.negative!==0&&H.isub(K)),{div:$.div,mod:H}):K.length>this.length||this.cmp(K)<0?{div:new Q(0),mod:this}:K.length===1?W==="div"?{div:this.divn(K.words[0]),mod:null}:W==="mod"?{div:null,mod:new Q(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new Q(this.modn(K.words[0]))}:this._wordDiv(K,W)},Q.prototype.div=function(K){return this.divmod(K,"div",!1).div},Q.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},Q.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},Q.prototype.divRound=function(K){var W=this.divmod(K);if(W.mod.isZero())return W.div;var U=W.div.negative!==0?W.mod.isub(K):W.mod,V=K.ushrn(1),H=K.andln(1),$=U.cmp(V);return $<0||H===1&&$===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},Q.prototype.modn=function(K){Z(K<=67108863);for(var W=67108864%K,U=0,V=this.length-1;V>=0;V--)U=(W*U+(this.words[V]|0))%K;return U},Q.prototype.idivn=function(K){Z(K<=67108863);for(var W=0,U=this.length-1;U>=0;U--){var V=(this.words[U]|0)+W*67108864;this.words[U]=V/K|0,W=V%K}return this.strip()},Q.prototype.divn=function(K){return this.clone().idivn(K)},Q.prototype.egcd=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=new Q(0),G=new Q(1),Y=0;W.isEven()&&U.isEven();)W.iushrn(1),U.iushrn(1),++Y;for(var X=U.clone(),F=W.clone();!W.isZero();){for(var N=0,j=1;(W.words[0]&j)===0&&N<26;++N,j<<=1);if(N>0)for(W.iushrn(N);N-- >0;)(V.isOdd()||H.isOdd())&&(V.iadd(X),H.isub(F)),V.iushrn(1),H.iushrn(1);for(var A=0,m=1;(U.words[0]&m)===0&&A<26;++A,m<<=1);if(A>0)for(U.iushrn(A);A-- >0;)($.isOdd()||G.isOdd())&&($.iadd(X),G.isub(F)),$.iushrn(1),G.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub($),H.isub(G)):(U.isub(W),$.isub(V),G.isub(H))}return{a:$,b:G,gcd:U.iushln(Y)}},Q.prototype._invmp=function(K){Z(K.negative===0),Z(!K.isZero());var W=this,U=K.clone();W.negative!==0?W=W.umod(K):W=W.clone();for(var V=new Q(1),H=new Q(0),$=U.clone();W.cmpn(1)>0&&U.cmpn(1)>0;){for(var G=0,Y=1;(W.words[0]&Y)===0&&G<26;++G,Y<<=1);if(G>0)for(W.iushrn(G);G-- >0;)V.isOdd()&&V.iadd($),V.iushrn(1);for(var X=0,F=1;(U.words[0]&F)===0&&X<26;++X,F<<=1);if(X>0)for(U.iushrn(X);X-- >0;)H.isOdd()&&H.iadd($),H.iushrn(1);W.cmp(U)>=0?(W.isub(U),V.isub(H)):(U.isub(W),H.isub(V))}var N;return W.cmpn(1)===0?N=V:N=H,N.cmpn(0)<0&&N.iadd(K),N},Q.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var W=this.clone(),U=K.clone();W.negative=0,U.negative=0;for(var V=0;W.isEven()&&U.isEven();V++)W.iushrn(1),U.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;U.isEven();)U.iushrn(1);var H=W.cmp(U);if(H<0){var $=W;W=U,U=$}else if(H===0||U.cmpn(1)===0)break;W.isub(U)}while(!0);return U.iushln(V)},Q.prototype.invm=function(K){return this.egcd(K).a.umod(K)},Q.prototype.isEven=function(){return(this.words[0]&1)===0},Q.prototype.isOdd=function(){return(this.words[0]&1)===1},Q.prototype.andln=function(K){return this.words[0]&K},Q.prototype.bincn=function(K){Z(typeof K=="number");var W=K%26,U=(K-W)/26,V=1<<W;if(this.length<=U)return this._expand(U+1),this.words[U]|=V,this;for(var H=V,$=U;H!==0&&$<this.length;$++){var G=this.words[$]|0;G+=H,H=G>>>26,G&=67108863,this.words[$]=G}return H!==0&&(this.words[$]=H,this.length++),this},Q.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Q.prototype.cmpn=function(K){var W=K<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var U;if(this.length>1)U=1;else{W&&(K=-K),Z(K<=67108863,"Number is too big");var V=this.words[0]|0;U=V===K?0:V<K?-1:1}return this.negative!==0?-U|0:U},Q.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var W=this.ucmp(K);return this.negative!==0?-W|0:W},Q.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var W=0,U=this.length-1;U>=0;U--){var V=this.words[U]|0,H=K.words[U]|0;if(V!==H){V<H?W=-1:V>H&&(W=1);break}}return W},Q.prototype.gtn=function(K){return this.cmpn(K)===1},Q.prototype.gt=function(K){return this.cmp(K)===1},Q.prototype.gten=function(K){return this.cmpn(K)>=0},Q.prototype.gte=function(K){return this.cmp(K)>=0},Q.prototype.ltn=function(K){return this.cmpn(K)===-1},Q.prototype.lt=function(K){return this.cmp(K)===-1},Q.prototype.lten=function(K){return this.cmpn(K)<=0},Q.prototype.lte=function(K){return this.cmp(K)<=0},Q.prototype.eqn=function(K){return this.cmpn(K)===0},Q.prototype.eq=function(K){return this.cmp(K)===0},Q.red=function(K){return new f(K)},Q.prototype.toRed=function(K){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},Q.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Q.prototype._forceRed=function(K){return this.red=K,this},Q.prototype.forceRed=function(K){return Z(!this.red,"Already a number in reduction context"),this._forceRed(K)},Q.prototype.redAdd=function(K){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},Q.prototype.redIAdd=function(K){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},Q.prototype.redSub=function(K){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},Q.prototype.redISub=function(K){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},Q.prototype.redShl=function(K){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},Q.prototype.redMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},Q.prototype.redIMul=function(K){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},Q.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Q.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Q.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Q.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Q.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Q.prototype.redPow=function(K){return Z(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var b={k256:null,p224:null,p192:null,p25519:null};function w(K,W){this.name=K,this.p=new Q(W,16),this.n=this.p.bitLength(),this.k=new Q(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}w.prototype._tmp=function(){var K=new Q(null);return K.words=new Array(Math.ceil(this.n/13)),K},w.prototype.ireduce=function(K){var W=K,U;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),U=W.bitLength();while(U>this.n);var V=U<this.n?-1:W.ucmp(this.p);return V===0?(W.words[0]=0,W.length=1):V>0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},w.prototype.split=function(K,W){K.iushrn(this.n,0,W)},w.prototype.imulK=function(K){return K.imul(this.k)};function g(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(g,w),g.prototype.split=function(K,W){for(var U=4194303,V=Math.min(K.length,9),H=0;H<V;H++)W.words[H]=K.words[H];if(W.length=V,K.length<=9){K.words[0]=0,K.length=1;return}var $=K.words[9];for(W.words[W.length++]=$&U,H=10;H<K.length;H++){var G=K.words[H]|0;K.words[H-10]=(G&U)<<4|$>>>22,$=G}$>>>=22,K.words[H-10]=$,$===0&&K.length>10?K.length-=10:K.length-=9},g.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var W=0,U=0;U<K.length;U++){var V=K.words[U]|0;W+=V*977,K.words[U]=W&67108863,W=V*64+(W/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function r(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(r,w);function t(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(t,w);function $0(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q($0,w),$0.prototype.imulK=function(K){for(var W=0,U=0;U<K.length;U++){var V=(K.words[U]|0)*19+W,H=V&67108863;V>>>=26,K.words[U]=H,W=V}return W!==0&&(K.words[K.length++]=W),K},Q._prime=function(K){if(b[K])return b[K];var W;if(K==="k256")W=new g;else if(K==="p224")W=new r;else if(K==="p192")W=new t;else if(K==="p25519")W=new $0;else throw new Error("Unknown prime "+K);return b[K]=W,W};function f(K){if(typeof K=="string"){var W=Q._prime(K);this.m=W.p,this.prime=W}else Z(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){Z(K.negative===0,"red works only with positives"),Z(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,W){Z((K.negative|W.negative)===0,"red works only with positives"),Z(K.red&&K.red===W.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,W){this._verify2(K,W);var U=K.add(W);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},f.prototype.iadd=function(K,W){this._verify2(K,W);var U=K.iadd(W);return U.cmp(this.m)>=0&&U.isub(this.m),U},f.prototype.sub=function(K,W){this._verify2(K,W);var U=K.sub(W);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},f.prototype.isub=function(K,W){this._verify2(K,W);var U=K.isub(W);return U.cmpn(0)<0&&U.iadd(this.m),U},f.prototype.shl=function(K,W){return this._verify1(K),this.imod(K.ushln(W))},f.prototype.imul=function(K,W){return this._verify2(K,W),this.imod(K.imul(W))},f.prototype.mul=function(K,W){return this._verify2(K,W),this.imod(K.mul(W))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var W=this.m.andln(3);if(Z(W%2===1),W===3){var U=this.m.add(new Q(1)).iushrn(2);return this.pow(K,U)}for(var V=this.m.subn(1),H=0;!V.isZero()&&V.andln(1)===0;)H++,V.iushrn(1);Z(!V.isZero());var $=new Q(1).toRed(this),G=$.redNeg(),Y=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new Q(2*X*X).toRed(this);this.pow(X,Y).cmp(G)!==0;)X.redIAdd(G);for(var F=this.pow(X,V),N=this.pow(K,V.addn(1).iushrn(1)),j=this.pow(K,V),A=H;j.cmp($)!==0;){for(var m=j,h=0;m.cmp($)!==0;h++)m=m.redSqr();Z(h<A);var e=this.pow(F,new Q(1).iushln(A-h-1));N=N.redMul(e),F=e.redSqr(),j=j.redMul(F),A=h}return N},f.prototype.invm=function(K){var W=K._invmp(this.m);return W.negative!==0?(W.negative=0,this.imod(W).redNeg()):this.imod(W)},f.prototype.pow=function(K,W){if(W.isZero())return new Q(1).toRed(this);if(W.cmpn(1)===0)return K.clone();var U=4,V=new Array(1<<U);V[0]=new Q(1).toRed(this),V[1]=K;for(var H=2;H<V.length;H++)V[H]=this.mul(V[H-1],K);var $=V[0],G=0,Y=0,X=W.bitLength()%26;for(X===0&&(X=26),H=W.length-1;H>=0;H--){for(var F=W.words[H],N=X-1;N>=0;N--){var j=F>>N&1;if($!==V[0]&&($=this.sqr($)),j===0&&G===0){Y=0;continue}G<<=1,G|=j,Y++,!(Y!==U&&(H!==0||N!==0))&&($=this.mul($,V[G]),Y=0,G=0)}X=26}return $},f.prototype.convertTo=function(K){var W=K.umod(this.m);return W===K?W.clone():W},f.prototype.convertFrom=function(K){var W=K.clone();return W.red=null,W},Q.mont=function(K){return new Z0(K)};function Z0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new Q(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}q(Z0,f),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var W=this.imod(K.mul(this.rinv));return W.red=null,W},Z0.prototype.imul=function(K,W){if(K.isZero()||W.isZero())return K.words[0]=0,K.length=1,K;var U=K.imul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.mul=function(K,W){if(K.isZero()||W.isZero())return new Q(0)._forceRed(this);var U=K.mul(W),V=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=U.isub(V).iushrn(this.shift),$=H;return H.cmp(this.m)>=0?$=H.isub(this.m):H.cmpn(0)<0&&($=H.iadd(this.m)),$._forceRed(this)},Z0.prototype.invm=function(K){var W=this.imod(K._invmp(this.m).mul(this.r2));return W._forceRed(this)}})(typeof M>"u"||M,v)}),_4=z0((v,M)=>{var B=p9(),S=l0().Buffer;function Z(q,Q){return S.from(q.toRed(B.mont(Q.modulus)).redPow(new B(Q.publicExponent)).fromRed().toArray())}M.exports=Z}),z7=z0((v,M)=>{var B=Y9(),S=y5(),Z=l5(),q=A4(),Q=p4(),O=p9(),k=_4(),C=B9(),D=l0().Buffer;M.exports=function(z,I,L){var p;z.padding?p=z.padding:L?p=1:p=4;var E=B(z),x;if(p===4)x=P(E,I);else if(p===1)x=J(E,I,L);else if(p===3){if(x=new O(I),x.cmp(E.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return L?C(x,E):k(x,E)};function P(z,I){var L=z.modulus.byteLength(),p=I.length,E=Z("sha1").update(D.alloc(0)).digest(),x=E.length,b=2*x;if(p>L-b-2)throw new Error("message too long");var w=D.alloc(L-p-b-2),g=L-x-1,r=S(x),t=Q(D.concat([E,w,D.alloc(1,1),I],g),q(r,g)),$0=Q(r,q(t,x));return new O(D.concat([D.alloc(1),$0,t],L))}function J(z,I,L){var p=I.length,E=z.modulus.byteLength();if(p>E-11)throw new Error("message too long");var x;return L?x=D.alloc(E-p-3,255):x=T(E-p-3),new O(D.concat([D.from([0,L?1:2]),x,D.alloc(1),I],E))}function T(z){for(var I=D.allocUnsafe(z),L=0,p=S(z*2),E=0,x;L<z;)E===p.length&&(p=S(z*2),E=0),x=p[E++],x&&(I[L++]=x);return I}}),O7=z0((v,M)=>{var B=Y9(),S=A4(),Z=p4(),q=p9(),Q=B9(),O=l5(),k=_4(),C=l0().Buffer;M.exports=function(T,z,I){var L;T.padding?L=T.padding:I?L=1:L=4;var p=B(T),E=p.modulus.byteLength();if(z.length>E||new q(z).cmp(p.modulus)>=0)throw new Error("decryption error");var x;I?x=k(new q(z),p):x=Q(z,p);var b=C.alloc(E-x.length);if(x=C.concat([b,x],E),L===4)return D(p,x);if(L===1)return P(p,x,I);if(L===3)return x;throw new Error("unknown padding")};function D(T,z){var I=T.modulus.byteLength(),L=O("sha1").update(C.alloc(0)).digest(),p=L.length;if(z[0]!==0)throw new Error("decryption error");var E=z.slice(1,p+1),x=z.slice(p+1),b=Z(E,S(x,p)),w=Z(x,S(b,I-p-1));if(J(L,w.slice(0,p)))throw new Error("decryption error");for(var g=p;w[g]===0;)g++;if(w[g++]!==1)throw new Error("decryption error");return w.slice(g)}function P(T,z,I){for(var L=z.slice(0,2),p=2,E=0;z[p++]!==0;)if(p>=z.length){E++;break}var x=z.slice(2,p-1);if((L.toString("hex")!=="0002"&&!I||L.toString("hex")!=="0001"&&I)&&E++,x.length<8&&E++,E)throw new Error("decryption error");return z.slice(p)}function J(T,z){T=C.from(T),z=C.from(z);var I=0,L=T.length;T.length!==z.length&&(I++,L=Math.min(T.length,z.length));for(var p=-1;++p<L;)I+=T[p]^z[p];return I}}),j7=z0((v)=>{v.publicEncrypt=z7(),v.privateDecrypt=O7(),v.privateEncrypt=function(M,B){return v.publicEncrypt(M,B,!0)},v.publicDecrypt=function(M,B){return v.privateDecrypt(M,B,!0)}}),D7=z0((v)=>{function M(){throw new Error(`secure random number generation not supported by this browser
|
|
7
|
-
use chrome, FireFox or Internet Explorer 11`)}var B=l0(),S=y5(),Z=B.Buffer,q=B.kMaxLength,Q=global.crypto||global.msCrypto,O=Math.pow(2,32)-1;function k(T,z){if(typeof T!="number"||T!==T)throw new TypeError("offset must be a number");if(T>O||T<0)throw new TypeError("offset must be a uint32");if(T>q||T>z)throw new RangeError("offset out of range")}function C(T,z,I){if(typeof T!="number"||T!==T)throw new TypeError("size must be a number");if(T>O||T<0)throw new TypeError("size must be a uint32");if(T+z>I||T>q)throw new RangeError("buffer too small")}Q&&Q.getRandomValues?(v.randomFill=D,v.randomFillSync=J):(v.randomFill=M,v.randomFillSync=M);function D(T,z,I,L){if(!Z.isBuffer(T)&&!(T instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof z=="function")L=z,z=0,I=T.length;else if(typeof I=="function")L=I,I=T.length-z;else if(typeof L!="function")throw new TypeError('"cb" argument must be a function');return k(z,T.length),C(I,z,T.length),P(T,z,I,L)}function P(T,z,I,L){var p=T.buffer,E=new Uint8Array(p,z,I);if(Q.getRandomValues(E),L){process.nextTick(function(){L(null,T)});return}return T;var x}function J(T,z,I){if(typeof z>"u"&&(z=0),!Z.isBuffer(T)&&!(T instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return k(z,T.length),I===void 0&&(I=T.length-z),C(I,z,T.length),P(T,z,I)}}),x4=z0((v)=>{v.randomBytes=v.rng=v.pseudoRandomBytes=v.prng=y5(),v.createHash=v.Hash=l5(),v.createHmac=v.Hmac=t9();var M=H6(),B=Object.keys(M),S=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(B);v.getHashes=function(){return S};var Z=U4();v.pbkdf2=Z.pbkdf2,v.pbkdf2Sync=Z.pbkdf2Sync;var q=L6();v.Cipher=q.Cipher,v.createCipher=q.createCipher,v.Cipheriv=q.Cipheriv,v.createCipheriv=q.createCipheriv,v.Decipher=q.Decipher,v.createDecipher=q.createDecipher,v.Decipheriv=q.Decipheriv,v.createDecipheriv=q.createDecipheriv,v.getCiphers=q.getCiphers,v.listCiphers=q.listCiphers;var Q=B6();v.DiffieHellmanGroup=Q.DiffieHellmanGroup,v.createDiffieHellmanGroup=Q.createDiffieHellmanGroup,v.getDiffieHellman=Q.getDiffieHellman,v.createDiffieHellman=Q.createDiffieHellman,v.DiffieHellman=Q.DiffieHellman;var O=P7();v.createSign=O.createSign,v.Sign=O.Sign,v.createVerify=O.createVerify,v.Verify=O.Verify,v.createECDH=J7();var k=j7();v.publicEncrypt=k.publicEncrypt,v.privateEncrypt=k.privateEncrypt,v.publicDecrypt=k.publicDecrypt,v.privateDecrypt=k.privateDecrypt;var C=D7();v.randomFill=C.randomFill,v.randomFillSync=C.randomFillSync,v.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
|
|
8
|
-
we accept pull requests
|
|
9
|
-
https://github.com/browserify/crypto-browserify`)},v.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),M4={};r5(M4,{DEFAULT_ENCODING:()=>c5,default:()=>x5,getCurves:()=>g4,getRandomValues:()=>y4,randomUUID:()=>w4,scrypt:()=>x9,scryptSync:()=>_9,timingSafeEqual:()=>n5,webcrypto:()=>b4});J9(M4,A5(x4()));var C7=A5(x4()),c5="buffer",y4=(v)=>crypto.getRandomValues(v),w4=()=>crypto.randomUUID(),N7=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];function g4(){return N7}var n5="timingSafeEqual"in crypto?(v,M)=>{let{byteLength:B}=v,{byteLength:S}=M;if(typeof B!="number"||typeof S!="number")throw new TypeError("Input must be an array buffer view");if(B!==S)throw new RangeError("Input buffers must have the same length");return crypto.timingSafeEqual(v,M)}:void 0,_9="scryptSync"in crypto?(v,M,B,S)=>{let Z=crypto.scryptSync(v,M,B,S);return c5!=="buffer"?new Buffer(Z).toString(c5):new Buffer(Z)}:void 0,x9="scryptSync"in crypto?function(v,M,B,S,Z){if(typeof S=="function"&&(Z=S,S=void 0),typeof Z!="function"){var q=new TypeError("callback must be a function");throw q.code="ERR_INVALID_CALLBACK",q}try{let Q=crypto.scryptSync(v,M,B,S);process.nextTick(Z,null,c5!=="buffer"?new Buffer(Q).toString(c5):new Buffer(Q))}catch(Q){throw Q}}:void 0;n5&&(Object.defineProperty(n5,"name",{value:"::bunternal::"}),Object.defineProperty(x9,"name",{value:"::bunternal::"}),Object.defineProperty(_9,"name",{value:"::bunternal::"}));var b4=crypto,x5={...C7,getRandomValues:y4,randomUUID:w4,timingSafeEqual:n5,scryptSync:_9,scrypt:x9,webcrypto:b4,getCurves:g4};/*!
|
|
1
|
+
import{a as B5,c as R5}from"./chunk-nm00d52v.js";var{create:K7,defineProperty:r5,getOwnPropertyDescriptor:X7,getOwnPropertyNames:C7,getPrototypeOf:Y7}=Object,J7=Object.prototype.hasOwnProperty,P9=(l,g)=>()=>(l&&(g=l(l=0)),g),F0=(l,g)=>()=>(g||l((g={exports:{}}).exports,g),g.exports),i5=(l,g)=>{for(var E in g)r5(l,E,{get:g[E],enumerable:!0})},a5=(l,g,E,M)=>{if(g&&typeof g=="object"||typeof g=="function")for(let j of C7(g))!J7.call(l,j)&&j!==E&&r5(l,j,{get:()=>g[j],enumerable:!(M=X7(g,j))||M.enumerable});return l},Z9=(l,g,E)=>(a5(l,g,"default"),E&&a5(E,g,"default")),E5=(l,g,E)=>(E=l!=null?K7(Y7(l)):{},a5(g||!l||!l.__esModule?r5(E,"default",{value:l,enumerable:!0}):E,l)),z5=(l)=>a5(r5({},"__esModule",{value:!0}),l),Q7=F0((l)=>{l.byteLength=k,l.toByteArray=V,l.fromByteArray=N;var g=[],E=[],M=typeof Uint8Array<"u"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,H=j.length;S<H;++S)g[S]=j[S],E[j.charCodeAt(S)]=S;var S,H;E[45]=62,E[95]=63;function U(W){var D=W.length;if(D%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=W.indexOf("=");I===-1&&(I=D);var v=I===D?0:4-I%4;return[I,v]}function k(W){var D=U(W),I=D[0],v=D[1];return(I+v)*3/4-v}function z(W,D,I){return(D+I)*3/4-I}function V(W){var D,I=U(W),v=I[0],x=I[1],A=new M(z(W,v,x)),y=0,p=x>0?v-4:v,c;for(c=0;c<p;c+=4)D=E[W.charCodeAt(c)]<<18|E[W.charCodeAt(c+1)]<<12|E[W.charCodeAt(c+2)]<<6|E[W.charCodeAt(c+3)],A[y++]=D>>16&255,A[y++]=D>>8&255,A[y++]=D&255;return x===2&&(D=E[W.charCodeAt(c)]<<2|E[W.charCodeAt(c+1)]>>4,A[y++]=D&255),x===1&&(D=E[W.charCodeAt(c)]<<10|E[W.charCodeAt(c+1)]<<4|E[W.charCodeAt(c+2)]>>2,A[y++]=D>>8&255,A[y++]=D&255),A}function $(W){return g[W>>18&63]+g[W>>12&63]+g[W>>6&63]+g[W&63]}function T(W,D,I){for(var v,x=[],A=D;A<I;A+=3)v=(W[A]<<16&16711680)+(W[A+1]<<8&65280)+(W[A+2]&255),x.push($(v));return x.join("")}function N(W){for(var D,I=W.length,v=I%3,x=[],A=16383,y=0,p=I-v;y<p;y+=A)x.push(T(W,y,y+A>p?p:y+A));return v===1?(D=W[I-1],x.push(g[D>>2]+g[D<<4&63]+"==")):v===2&&(D=(W[I-2]<<8)+W[I-1],x.push(g[D>>10]+g[D>>4&63]+g[D<<2&63]+"=")),x.join("")}}),H7=F0((l)=>{l.read=function(g,E,M,j,S){var H,U,k=S*8-j-1,z=(1<<k)-1,V=z>>1,$=-7,T=M?S-1:0,N=M?-1:1,W=g[E+T];for(T+=N,H=W&(1<<-$)-1,W>>=-$,$+=k;$>0;H=H*256+g[E+T],T+=N,$-=8);for(U=H&(1<<-$)-1,H>>=-$,$+=j;$>0;U=U*256+g[E+T],T+=N,$-=8);if(H===0)H=1-V;else{if(H===z)return U?NaN:(W?-1:1)*(1/0);U=U+Math.pow(2,j),H=H-V}return(W?-1:1)*U*Math.pow(2,H-j)},l.write=function(g,E,M,j,S,H){var U,k,z,V=H*8-S-1,$=(1<<V)-1,T=$>>1,N=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=j?0:H-1,D=j?1:-1,I=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(k=isNaN(E)?1:0,U=$):(U=Math.floor(Math.log(E)/Math.LN2),E*(z=Math.pow(2,-U))<1&&(U--,z*=2),U+T>=1?E+=N/z:E+=N*Math.pow(2,1-T),E*z>=2&&(U++,z/=2),U+T>=$?(k=0,U=$):U+T>=1?(k=(E*z-1)*Math.pow(2,S),U=U+T):(k=E*Math.pow(2,T-1)*Math.pow(2,S),U=0));S>=8;g[M+W]=k&255,W+=D,k/=256,S-=8);for(U=U<<S|k,V+=S;V>0;g[M+W]=U&255,W+=D,U/=256,V-=8);g[M+W-D]|=I*128}}),W5=F0((l)=>{var g=Q7(),E=H7(),M=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;l.Buffer=U,l.SlowBuffer=x,l.INSPECT_MAX_BYTES=50;var j=2147483647;l.kMaxLength=j,U.TYPED_ARRAY_SUPPORT=S(),!U.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 S(){try{let O=new Uint8Array(1),B={foo:function(){return 42}};return Object.setPrototypeOf(B,Uint8Array.prototype),Object.setPrototypeOf(O,B),O.foo()===42}catch{return!1}}Object.defineProperty(U.prototype,"parent",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.buffer}}),Object.defineProperty(U.prototype,"offset",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.byteOffset}});function H(O){if(O>j)throw new RangeError('The value "'+O+'" is invalid for option "size"');let B=new Uint8Array(O);return Object.setPrototypeOf(B,U.prototype),B}function U(O,B,b){if(typeof O=="number"){if(typeof B=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(O)}return k(O,B,b)}U.poolSize=8192;function k(O,B,b){if(typeof O=="string")return T(O,B);if(ArrayBuffer.isView(O))return W(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(G0(O,ArrayBuffer)||O&&G0(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(G0(O,SharedArrayBuffer)||O&&G0(O.buffer,SharedArrayBuffer)))return D(O,B,b);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let h=O.valueOf&&O.valueOf();if(h!=null&&h!==O)return U.from(h,B,b);let o=I(O);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return U.from(O[Symbol.toPrimitive]("string"),B,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}U.from=function(O,B,b){return k(O,B,b)},Object.setPrototypeOf(U.prototype,Uint8Array.prototype),Object.setPrototypeOf(U,Uint8Array);function z(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function V(O,B,b){return z(O),O<=0?H(O):B!==void 0?typeof b=="string"?H(O).fill(B,b):H(O).fill(B):H(O)}U.alloc=function(O,B,b){return V(O,B,b)};function $(O){return z(O),H(O<0?0:v(O)|0)}U.allocUnsafe=function(O){return $(O)},U.allocUnsafeSlow=function(O){return $(O)};function T(O,B){if((typeof B!="string"||B==="")&&(B="utf8"),!U.isEncoding(B))throw new TypeError("Unknown encoding: "+B);let b=A(O,B)|0,h=H(b),o=h.write(O,B);return o!==b&&(h=h.slice(0,o)),h}function N(O){let B=O.length<0?0:v(O.length)|0,b=H(B);for(let h=0;h<B;h+=1)b[h]=O[h]&255;return b}function W(O){if(G0(O,Uint8Array)){let B=new Uint8Array(O);return D(B.buffer,B.byteOffset,B.byteLength)}return N(O)}function D(O,B,b){if(B<0||O.byteLength<B)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<B+(b||0))throw new RangeError('"length" is outside of buffer bounds');let h;return B===void 0&&b===void 0?h=new Uint8Array(O):b===void 0?h=new Uint8Array(O,B):h=new Uint8Array(O,B,b),Object.setPrototypeOf(h,U.prototype),h}function I(O){if(U.isBuffer(O)){let B=v(O.length)|0,b=H(B);return b.length===0||O.copy(b,0,0,B),b}if(O.length!==void 0)return typeof O.length!="number"||w0(O.length)?H(0):N(O);if(O.type==="Buffer"&&Array.isArray(O.data))return N(O.data)}function v(O){if(O>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return O|0}function x(O){return+O!=O&&(O=0),U.alloc(+O)}U.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==U.prototype},U.compare=function(O,B){if(G0(O,Uint8Array)&&(O=U.from(O,O.offset,O.byteLength)),G0(B,Uint8Array)&&(B=U.from(B,B.offset,B.byteLength)),!U.isBuffer(O)||!U.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===B)return 0;let b=O.length,h=B.length;for(let o=0,z0=Math.min(b,h);o<z0;++o)if(O[o]!==B[o]){b=O[o],h=B[o];break}return b<h?-1:h<b?1:0},U.isEncoding=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}},U.concat=function(O,B){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return U.alloc(0);let b;if(B===void 0)for(B=0,b=0;b<O.length;++b)B+=O[b].length;let h=U.allocUnsafe(B),o=0;for(b=0;b<O.length;++b){let z0=O[b];if(G0(z0,Uint8Array))o+z0.length>h.length?(U.isBuffer(z0)||(z0=U.from(z0)),z0.copy(h,o)):Uint8Array.prototype.set.call(h,z0,o);else if(U.isBuffer(z0))z0.copy(h,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=z0.length}return h};function A(O,B){if(U.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||G0(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);let b=O.length,h=arguments.length>2&&arguments[2]===!0;if(!h&&b===0)return 0;let o=!1;for(;;)switch(B){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return e(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return _0(O).length;default:if(o)return h?-1:e(O).length;B=(""+B).toLowerCase(),o=!0}}U.byteLength=A;function y(O,B,b){let h=!1;if((B===void 0||B<0)&&(B=0),B>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,B>>>=0,b<=B))return"";for(O||(O="utf8");;)switch(O){case"hex":return F(this,B,b);case"utf8":case"utf-8":return J(this,B,b);case"ascii":return P(this,B,b);case"latin1":case"binary":return Z(this,B,b);case"base64":return C(this,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,B,b);default:if(h)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),h=!0}}U.prototype._isBuffer=!0;function p(O,B,b){let h=O[B];O[B]=O[b],O[b]=h}U.prototype.swap16=function(){let O=this.length;if(O%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;B<O;B+=2)p(this,B,B+1);return this},U.prototype.swap32=function(){let O=this.length;if(O%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let B=0;B<O;B+=4)p(this,B,B+3),p(this,B+1,B+2);return this},U.prototype.swap64=function(){let O=this.length;if(O%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let B=0;B<O;B+=8)p(this,B,B+7),p(this,B+1,B+6),p(this,B+2,B+5),p(this,B+3,B+4);return this},U.prototype.toString=function(){let O=this.length;return O===0?"":arguments.length===0?J(this,0,O):y.apply(this,arguments)},U.prototype.toLocaleString=U.prototype.toString,U.prototype.equals=function(O){if(!U.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:U.compare(this,O)===0},U.prototype.inspect=function(){let O="",B=l.INSPECT_MAX_BYTES;return O=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B&&(O+=" ... "),"<Buffer "+O+">"},M&&(U.prototype[M]=U.prototype.inspect),U.prototype.compare=function(O,B,b,h,o){if(G0(O,Uint8Array)&&(O=U.from(O,O.offset,O.byteLength)),!U.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(B===void 0&&(B=0),b===void 0&&(b=O?O.length:0),h===void 0&&(h=0),o===void 0&&(o=this.length),B<0||b>O.length||h<0||o>this.length)throw new RangeError("out of range index");if(h>=o&&B>=b)return 0;if(h>=o)return-1;if(B>=b)return 1;if(B>>>=0,b>>>=0,h>>>=0,o>>>=0,this===O)return 0;let z0=o-h,J0=b-B,$0=Math.min(z0,J0),b0=this.slice(h,o),U0=O.slice(B,b);for(let j0=0;j0<$0;++j0)if(b0[j0]!==U0[j0]){z0=b0[j0],J0=U0[j0];break}return z0<J0?-1:J0<z0?1:0};function c(O,B,b,h,o){if(O.length===0)return-1;if(typeof b=="string"?(h=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,w0(b)&&(b=o?0:O.length-1),b<0&&(b=O.length+b),b>=O.length){if(o)return-1;b=O.length-1}else if(b<0)if(o)b=0;else return-1;if(typeof B=="string"&&(B=U.from(B,h)),U.isBuffer(B))return B.length===0?-1:n(O,B,b,h,o);if(typeof B=="number")return B=B&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(O,B,b):Uint8Array.prototype.lastIndexOf.call(O,B,b):n(O,[B],b,h,o);throw new TypeError("val must be string, number or Buffer")}function n(O,B,b,h,o){let z0=1,J0=O.length,$0=B.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(O.length<2||B.length<2)return-1;z0=2,J0/=2,$0/=2,b/=2}function b0(j0,y0){return z0===1?j0[y0]:j0.readUInt16BE(y0*z0)}let U0;if(o){let j0=-1;for(U0=b;U0<J0;U0++)if(b0(O,U0)===b0(B,j0===-1?0:U0-j0)){if(j0===-1&&(j0=U0),U0-j0+1===$0)return j0*z0}else j0!==-1&&(U0-=U0-j0),j0=-1}else for(b+$0>J0&&(b=J0-$0),U0=b;U0>=0;U0--){let j0=!0;for(let y0=0;y0<$0;y0++)if(b0(O,U0+y0)!==b0(B,y0)){j0=!1;break}if(j0)return U0}return-1}U.prototype.includes=function(O,B,b){return this.indexOf(O,B,b)!==-1},U.prototype.indexOf=function(O,B,b){return c(this,O,B,b,!0)},U.prototype.lastIndexOf=function(O,B,b){return c(this,O,B,b,!1)};function i(O,B,b,h){b=Number(b)||0;let o=O.length-b;h?(h=Number(h),h>o&&(h=o)):h=o;let z0=B.length;h>z0/2&&(h=z0/2);let J0;for(J0=0;J0<h;++J0){let $0=parseInt(B.substr(J0*2,2),16);if(w0($0))return J0;O[b+J0]=$0}return J0}function Y0(O,B,b,h){return H0(e(B,O.length-b),O,b,h)}function f(O,B,b,h){return H0(X0(B),O,b,h)}function P0(O,B,b,h){return H0(_0(B),O,b,h)}function K(O,B,b,h){return H0(t(B,O.length-b),O,b,h)}U.prototype.write=function(O,B,b,h){if(B===void 0)h="utf8",b=this.length,B=0;else if(b===void 0&&typeof B=="string")h=B,b=this.length,B=0;else if(isFinite(B))B=B>>>0,isFinite(b)?(b=b>>>0,h===void 0&&(h="utf8")):(h=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-B;if((b===void 0||b>o)&&(b=o),O.length>0&&(b<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");h||(h="utf8");let z0=!1;for(;;)switch(h){case"hex":return i(this,O,B,b);case"utf8":case"utf-8":return Y0(this,O,B,b);case"ascii":case"latin1":case"binary":return f(this,O,B,b);case"base64":return P0(this,O,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,O,B,b);default:if(z0)throw new TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase(),z0=!0}},U.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(O,B,b){return B===0&&b===O.length?g.fromByteArray(O):g.fromByteArray(O.slice(B,b))}function J(O,B,b){b=Math.min(O.length,b);let h=[],o=B;for(;o<b;){let z0=O[o],J0=null,$0=z0>239?4:z0>223?3:z0>191?2:1;if(o+$0<=b){let b0,U0,j0,y0;switch($0){case 1:z0<128&&(J0=z0);break;case 2:b0=O[o+1],(b0&192)===128&&(y0=(z0&31)<<6|b0&63,y0>127&&(J0=y0));break;case 3:b0=O[o+1],U0=O[o+2],(b0&192)===128&&(U0&192)===128&&(y0=(z0&15)<<12|(b0&63)<<6|U0&63,y0>2047&&(y0<55296||y0>57343)&&(J0=y0));break;case 4:b0=O[o+1],U0=O[o+2],j0=O[o+3],(b0&192)===128&&(U0&192)===128&&(j0&192)===128&&(y0=(z0&15)<<18|(b0&63)<<12|(U0&63)<<6|j0&63,y0>65535&&y0<1114112&&(J0=y0))}}J0===null?(J0=65533,$0=1):J0>65535&&(J0-=65536,h.push(J0>>>10&1023|55296),J0=56320|J0&1023),h.push(J0),o+=$0}return Q(h)}var Y=4096;function Q(O){let B=O.length;if(B<=Y)return String.fromCharCode.apply(String,O);let b="",h=0;for(;h<B;)b+=String.fromCharCode.apply(String,O.slice(h,h+=Y));return b}function P(O,B,b){let h="";b=Math.min(O.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(O[o]&127);return h}function Z(O,B,b){let h="";b=Math.min(O.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(O[o]);return h}function F(O,B,b){let h=O.length;(!B||B<0)&&(B=0),(!b||b<0||b>h)&&(b=h);let o="";for(let z0=B;z0<b;++z0)o+=W0[O[z0]];return o}function X(O,B,b){let h=O.slice(B,b),o="";for(let z0=0;z0<h.length-1;z0+=2)o+=String.fromCharCode(h[z0]+h[z0+1]*256);return o}U.prototype.slice=function(O,B){let b=this.length;O=~~O,B=B===void 0?b:~~B,O<0?(O+=b,O<0&&(O=0)):O>b&&(O=b),B<0?(B+=b,B<0&&(B=0)):B>b&&(B=b),B<O&&(B=O);let h=this.subarray(O,B);return Object.setPrototypeOf(h,U.prototype),h};function G(O,B,b){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+B>b)throw new RangeError("Trying to access beyond buffer length")}U.prototype.readUintLE=U.prototype.readUIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O],o=1,z0=0;for(;++z0<B&&(o*=256);)h+=this[O+z0]*o;return h},U.prototype.readUintBE=U.prototype.readUIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O+--B],o=1;for(;B>0&&(o*=256);)h+=this[O+--B]*o;return h},U.prototype.readUint8=U.prototype.readUInt8=function(O,B){return O=O>>>0,B||G(O,1,this.length),this[O]},U.prototype.readUint16LE=U.prototype.readUInt16LE=function(O,B){return O=O>>>0,B||G(O,2,this.length),this[O]|this[O+1]<<8},U.prototype.readUint16BE=U.prototype.readUInt16BE=function(O,B){return O=O>>>0,B||G(O,2,this.length),this[O]<<8|this[O+1]},U.prototype.readUint32LE=U.prototype.readUInt32LE=function(O,B){return O=O>>>0,B||G(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},U.prototype.readUint32BE=U.prototype.readUInt32BE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},U.prototype.readBigUInt64LE=Z0(function(O){O=O>>>0,Q0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=B+this[++O]*256+this[++O]*65536+this[++O]*16777216,o=this[++O]+this[++O]*256+this[++O]*65536+b*16777216;return BigInt(h)+(BigInt(o)<<BigInt(32))}),U.prototype.readBigUInt64BE=Z0(function(O){O=O>>>0,Q0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=B*16777216+this[++O]*65536+this[++O]*256+this[++O],o=this[++O]*16777216+this[++O]*65536+this[++O]*256+b;return(BigInt(h)<<BigInt(32))+BigInt(o)}),U.prototype.readIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O],o=1,z0=0;for(;++z0<B&&(o*=256);)h+=this[O+z0]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*B)),h},U.prototype.readIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=B,o=1,z0=this[O+--h];for(;h>0&&(o*=256);)z0+=this[O+--h]*o;return o*=128,z0>=o&&(z0-=Math.pow(2,8*B)),z0},U.prototype.readInt8=function(O,B){return O=O>>>0,B||G(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},U.prototype.readInt16LE=function(O,B){O=O>>>0,B||G(O,2,this.length);let b=this[O]|this[O+1]<<8;return b&32768?b|4294901760:b},U.prototype.readInt16BE=function(O,B){O=O>>>0,B||G(O,2,this.length);let b=this[O+1]|this[O]<<8;return b&32768?b|4294901760:b},U.prototype.readInt32LE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},U.prototype.readInt32BE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},U.prototype.readBigInt64LE=Z0(function(O){O=O>>>0,Q0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=this[O+4]+this[O+5]*256+this[O+6]*65536+(b<<24);return(BigInt(h)<<BigInt(32))+BigInt(B+this[++O]*256+this[++O]*65536+this[++O]*16777216)}),U.prototype.readBigInt64BE=Z0(function(O){O=O>>>0,Q0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=(B<<24)+this[++O]*65536+this[++O]*256+this[++O];return(BigInt(h)<<BigInt(32))+BigInt(this[++O]*16777216+this[++O]*65536+this[++O]*256+b)}),U.prototype.readFloatLE=function(O,B){return O=O>>>0,B||G(O,4,this.length),E.read(this,O,!0,23,4)},U.prototype.readFloatBE=function(O,B){return O=O>>>0,B||G(O,4,this.length),E.read(this,O,!1,23,4)},U.prototype.readDoubleLE=function(O,B){return O=O>>>0,B||G(O,8,this.length),E.read(this,O,!0,52,8)},U.prototype.readDoubleBE=function(O,B){return O=O>>>0,B||G(O,8,this.length),E.read(this,O,!1,52,8)};function R(O,B,b,h,o,z0){if(!U.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>o||B<z0)throw new RangeError('"value" argument is out of bounds');if(b+h>O.length)throw new RangeError("Index out of range")}U.prototype.writeUintLE=U.prototype.writeUIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let J0=Math.pow(2,8*b)-1;R(this,O,B,b,J0,0)}let o=1,z0=0;for(this[B]=O&255;++z0<b&&(o*=256);)this[B+z0]=O/o&255;return B+b},U.prototype.writeUintBE=U.prototype.writeUIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let J0=Math.pow(2,8*b)-1;R(this,O,B,b,J0,0)}let o=b-1,z0=1;for(this[B+o]=O&255;--o>=0&&(z0*=256);)this[B+o]=O/z0&255;return B+b},U.prototype.writeUint8=U.prototype.writeUInt8=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,1,255,0),this[B]=O&255,B+1},U.prototype.writeUint16LE=U.prototype.writeUInt16LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,65535,0),this[B]=O&255,this[B+1]=O>>>8,B+2},U.prototype.writeUint16BE=U.prototype.writeUInt16BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,65535,0),this[B]=O>>>8,this[B+1]=O&255,B+2},U.prototype.writeUint32LE=U.prototype.writeUInt32LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,4294967295,0),this[B+3]=O>>>24,this[B+2]=O>>>16,this[B+1]=O>>>8,this[B]=O&255,B+4},U.prototype.writeUint32BE=U.prototype.writeUInt32BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,4294967295,0),this[B]=O>>>24,this[B+1]=O>>>16,this[B+2]=O>>>8,this[B+3]=O&255,B+4};function L(O,B,b,h,o){K0(B,h,o,O,b,7);let z0=Number(B&BigInt(4294967295));O[b++]=z0,z0=z0>>8,O[b++]=z0,z0=z0>>8,O[b++]=z0,z0=z0>>8,O[b++]=z0;let J0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b++]=J0,J0=J0>>8,O[b++]=J0,J0=J0>>8,O[b++]=J0,J0=J0>>8,O[b++]=J0,b}function _(O,B,b,h,o){K0(B,h,o,O,b,7);let z0=Number(B&BigInt(4294967295));O[b+7]=z0,z0=z0>>8,O[b+6]=z0,z0=z0>>8,O[b+5]=z0,z0=z0>>8,O[b+4]=z0;let J0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b+3]=J0,J0=J0>>8,O[b+2]=J0,J0=J0>>8,O[b+1]=J0,J0=J0>>8,O[b]=J0,b+8}U.prototype.writeBigUInt64LE=Z0(function(O,B=0){return L(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeBigUInt64BE=Z0(function(O,B=0){return _(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let $0=Math.pow(2,8*b-1);R(this,O,B,b,$0-1,-$0)}let o=0,z0=1,J0=0;for(this[B]=O&255;++o<b&&(z0*=256);)O<0&&J0===0&&this[B+o-1]!==0&&(J0=1),this[B+o]=(O/z0>>0)-J0&255;return B+b},U.prototype.writeIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let $0=Math.pow(2,8*b-1);R(this,O,B,b,$0-1,-$0)}let o=b-1,z0=1,J0=0;for(this[B+o]=O&255;--o>=0&&(z0*=256);)O<0&&J0===0&&this[B+o+1]!==0&&(J0=1),this[B+o]=(O/z0>>0)-J0&255;return B+b},U.prototype.writeInt8=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,1,127,-128),O<0&&(O=255+O+1),this[B]=O&255,B+1},U.prototype.writeInt16LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,32767,-32768),this[B]=O&255,this[B+1]=O>>>8,B+2},U.prototype.writeInt16BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,32767,-32768),this[B]=O>>>8,this[B+1]=O&255,B+2},U.prototype.writeInt32LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,2147483647,-2147483648),this[B]=O&255,this[B+1]=O>>>8,this[B+2]=O>>>16,this[B+3]=O>>>24,B+4},U.prototype.writeInt32BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[B]=O>>>24,this[B+1]=O>>>16,this[B+2]=O>>>8,this[B+3]=O&255,B+4},U.prototype.writeBigInt64LE=Z0(function(O,B=0){return L(this,O,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),U.prototype.writeBigInt64BE=Z0(function(O,B=0){return _(this,O,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function s(O,B,b,h,o,z0){if(b+h>O.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function r(O,B,b,h,o){return B=+B,b=b>>>0,o||s(O,B,b,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),E.write(O,B,b,h,23,4),b+4}U.prototype.writeFloatLE=function(O,B,b){return r(this,O,B,!0,b)},U.prototype.writeFloatBE=function(O,B,b){return r(this,O,B,!1,b)};function C0(O,B,b,h,o){return B=+B,b=b>>>0,o||s(O,B,b,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),E.write(O,B,b,h,52,8),b+8}U.prototype.writeDoubleLE=function(O,B,b){return C0(this,O,B,!0,b)},U.prototype.writeDoubleBE=function(O,B,b){return C0(this,O,B,!1,b)},U.prototype.copy=function(O,B,b,h){if(!U.isBuffer(O))throw new TypeError("argument should be a Buffer");if(b||(b=0),!h&&h!==0&&(h=this.length),B>=O.length&&(B=O.length),B||(B=0),h>0&&h<b&&(h=b),h===b||O.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("sourceEnd out of bounds");h>this.length&&(h=this.length),O.length-B<h-b&&(h=O.length-B+b);let o=h-b;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(B,b,h):Uint8Array.prototype.set.call(O,this.subarray(b,h),B),o},U.prototype.fill=function(O,B,b,h){if(typeof O=="string"){if(typeof B=="string"?(h=B,B=0,b=this.length):typeof b=="string"&&(h=b,b=this.length),h!==void 0&&typeof h!="string")throw new TypeError("encoding must be a string");if(typeof h=="string"&&!U.isEncoding(h))throw new TypeError("Unknown encoding: "+h);if(O.length===1){let z0=O.charCodeAt(0);(h==="utf8"&&z0<128||h==="latin1")&&(O=z0)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(B<0||this.length<B||this.length<b)throw new RangeError("Out of range index");if(b<=B)return this;B=B>>>0,b=b===void 0?this.length:b>>>0,O||(O=0);let o;if(typeof O=="number")for(o=B;o<b;++o)this[o]=O;else{let z0=U.isBuffer(O)?O:U.from(O,h),J0=z0.length;if(J0===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(o=0;o<b-B;++o)this[o+B]=z0[o%J0]}return this};var u={};function d(O,B,b){u[O]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:B.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(h){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:h,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}d("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),d("ERR_INVALID_ARG_TYPE",function(O,B){return`The "${O}" argument must be of type number. Received type ${typeof B}`},TypeError),d("ERR_OUT_OF_RANGE",function(O,B,b){let h=`The value of "${O}" is out of range.`,o=b;return Number.isInteger(b)&&Math.abs(b)>4294967296?o=a(String(b)):typeof b=="bigint"&&(o=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(o=a(o)),o+="n"),h+=` It must be ${B}. Received ${o}`,h},RangeError);function a(O){let B="",b=O.length,h=O[0]==="-"?1:0;for(;b>=h+4;b-=3)B=`_${O.slice(b-3,b)}${B}`;return`${O.slice(0,b)}${B}`}function V0(O,B,b){Q0(B,"offset"),(O[B]===void 0||O[B+b]===void 0)&&w(B,O.length-(b+1))}function K0(O,B,b,h,o,z0){if(O>b||O<B){let J0=typeof B=="bigint"?"n":"",$0;throw z0>3?B===0||B===BigInt(0)?$0=`>= 0${J0} and < 2${J0} ** ${(z0+1)*8}${J0}`:$0=`>= -(2${J0} ** ${(z0+1)*8-1}${J0}) and < 2 ** ${(z0+1)*8-1}${J0}`:$0=`>= ${B}${J0} and <= ${b}${J0}`,new u.ERR_OUT_OF_RANGE("value",$0,O)}V0(h,o,z0)}function Q0(O,B){if(typeof O!="number")throw new u.ERR_INVALID_ARG_TYPE(B,"number",O)}function w(O,B,b){throw Math.floor(O)!==O?(Q0(O,b),new u.ERR_OUT_OF_RANGE(b||"offset","an integer",O)):B<0?new u.ERR_BUFFER_OUT_OF_BOUNDS:new u.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${B}`,O)}var q=/[^+/0-9A-Za-z-_]/g;function m(O){if(O=O.split("=")[0],O=O.trim().replace(q,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function e(O,B){B=B||1/0;let b,h=O.length,o=null,z0=[];for(let J0=0;J0<h;++J0){if(b=O.charCodeAt(J0),b>55295&&b<57344){if(!o){if(b>56319){(B-=3)>-1&&z0.push(239,191,189);continue}else if(J0+1===h){(B-=3)>-1&&z0.push(239,191,189);continue}o=b;continue}if(b<56320){(B-=3)>-1&&z0.push(239,191,189),o=b;continue}b=(o-55296<<10|b-56320)+65536}else o&&(B-=3)>-1&&z0.push(239,191,189);if(o=null,b<128){if((B-=1)<0)break;z0.push(b)}else if(b<2048){if((B-=2)<0)break;z0.push(b>>6|192,b&63|128)}else if(b<65536){if((B-=3)<0)break;z0.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((B-=4)<0)break;z0.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return z0}function X0(O){let B=[];for(let b=0;b<O.length;++b)B.push(O.charCodeAt(b)&255);return B}function t(O,B){let b,h,o,z0=[];for(let J0=0;J0<O.length&&!((B-=2)<0);++J0)b=O.charCodeAt(J0),h=b>>8,o=b%256,z0.push(o),z0.push(h);return z0}function _0(O){return g.toByteArray(m(O))}function H0(O,B,b,h){let o;for(o=0;o<h&&!(o+b>=B.length||o>=O.length);++o)B[o+b]=O[o];return o}function G0(O,B){return O instanceof B||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===B.name}function w0(O){return O!==O}var W0=function(){let O="0123456789abcdef",B=new Array(256);for(let b=0;b<16;++b){let h=b*16;for(let o=0;o<16;++o)B[h+o]=O[b]+O[o]}return B}();function Z0(O){return typeof BigInt>"u"?c0:O}function c0(){throw new Error("BigInt not supported")}}),d0=F0((l,g)=>{var E=W5(),M=E.Buffer;function j(H,U){for(var k in H)U[k]=H[k]}M.from&&M.alloc&&M.allocUnsafe&&M.allocUnsafeSlow?g.exports=E:(j(E,l),l.Buffer=S);function S(H,U,k){return M(H,U,k)}S.prototype=Object.create(M.prototype),j(M,S),S.from=function(H,U,k){if(typeof H=="number")throw new TypeError("Argument must not be a number");return M(H,U,k)},S.alloc=function(H,U,k){if(typeof H!="number")throw new TypeError("Argument must be a number");var z=M(H);return U!==void 0?typeof k=="string"?z.fill(U,k):z.fill(U):z.fill(0),z},S.allocUnsafe=function(H){if(typeof H!="number")throw new TypeError("Argument must be a number");return M(H)},S.allocUnsafeSlow=function(H){if(typeof H!="number")throw new TypeError("Argument must be a number");return E.SlowBuffer(H)}}),g5=F0((l,g)=>{var E=65536,M=4294967295;function j(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
|
+
Use Chrome, Firefox or Internet Explorer 11`)}var S=d0().Buffer,H=global.crypto||global.msCrypto;H&&H.getRandomValues?g.exports=U:g.exports=j;function U(k,z){if(k>M)throw new RangeError("requested too many random bytes");var V=S.allocUnsafe(k);if(k>0)if(k>E)for(var $=0;$<k;$+=E)H.getRandomValues(V.slice($,$+E));else H.getRandomValues(V);return typeof z=="function"?process.nextTick(function(){z(null,V)}):V}}),p0=F0((l,g)=>{typeof Object.create=="function"?g.exports=function(E,M){M&&(E.super_=M,E.prototype=Object.create(M.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:g.exports=function(E,M){if(M){E.super_=M;var j=function(){};j.prototype=M.prototype,E.prototype=new j,E.prototype.constructor=E}}}),S5=F0((l,g)=>{var E=typeof Reflect=="object"?Reflect:null,M=E&&typeof E.apply=="function"?E.apply:function(c,n,i){return Function.prototype.apply.call(c,n,i)},j;E&&typeof E.ownKeys=="function"?j=E.ownKeys:Object.getOwnPropertySymbols?j=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:j=function(c){return Object.getOwnPropertyNames(c)};function S(c){console&&console.warn&&console.warn(c)}var H=Number.isNaN||function(c){return c!==c};function U(){U.init.call(this)}g.exports=U,g.exports.once=A,U.EventEmitter=U,U.prototype._events=void 0,U.prototype._eventsCount=0,U.prototype._maxListeners=void 0;var k=10;function z(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(U,"defaultMaxListeners",{enumerable:!0,get:function(){return k},set:function(c){if(typeof c!="number"||c<0||H(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");k=c}}),U.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},U.prototype.setMaxListeners=function(c){if(typeof c!="number"||c<0||H(c))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+c+".");return this._maxListeners=c,this};function V(c){return c._maxListeners===void 0?U.defaultMaxListeners:c._maxListeners}U.prototype.getMaxListeners=function(){return V(this)},U.prototype.emit=function(c){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var Y0=c==="error",f=this._events;if(f!==void 0)Y0=Y0&&f.error===void 0;else if(!Y0)return!1;if(Y0){var P0;if(n.length>0&&(P0=n[0]),P0 instanceof Error)throw P0;var K=new Error("Unhandled error."+(P0?" ("+P0.message+")":""));throw K.context=P0,K}var C=f[c];if(C===void 0)return!1;if(typeof C=="function")M(C,this,n);else for(var J=C.length,Y=I(C,J),i=0;i<J;++i)M(Y[i],this,n);return!0};function $(c,n,i,Y0){var f,P0,K;if(z(i),P0=c._events,P0===void 0?(P0=c._events=Object.create(null),c._eventsCount=0):(P0.newListener!==void 0&&(c.emit("newListener",n,i.listener?i.listener:i),P0=c._events),K=P0[n]),K===void 0)K=P0[n]=i,++c._eventsCount;else if(typeof K=="function"?K=P0[n]=Y0?[i,K]:[K,i]:Y0?K.unshift(i):K.push(i),f=V(c),f>0&&K.length>f&&!K.warned){K.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=c,C.type=n,C.count=K.length,S(C)}return c}U.prototype.addListener=function(c,n){return $(this,c,n,!1)},U.prototype.on=U.prototype.addListener,U.prototype.prependListener=function(c,n){return $(this,c,n,!0)};function T(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function N(c,n,i){var Y0={fired:!1,wrapFn:void 0,target:c,type:n,listener:i},f=T.bind(Y0);return f.listener=i,Y0.wrapFn=f,f}U.prototype.once=function(c,n){return z(n),this.on(c,N(this,c,n)),this},U.prototype.prependOnceListener=function(c,n){return z(n),this.prependListener(c,N(this,c,n)),this},U.prototype.removeListener=function(c,n){var i,Y0,f,P0,K;if(z(n),Y0=this._events,Y0===void 0)return this;if(i=Y0[c],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete Y0[c],Y0.removeListener&&this.emit("removeListener",c,i.listener||n));else if(typeof i!="function"){for(f=-1,P0=i.length-1;P0>=0;P0--)if(i[P0]===n||i[P0].listener===n){K=i[P0].listener,f=P0;break}if(f<0)return this;f===0?i.shift():v(i,f),i.length===1&&(Y0[c]=i[0]),Y0.removeListener!==void 0&&this.emit("removeListener",c,K||n)}return this},U.prototype.off=U.prototype.removeListener,U.prototype.removeAllListeners=function(c){var n,i,Y0;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[c]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[c]),this;if(arguments.length===0){var f=Object.keys(i),P0;for(Y0=0;Y0<f.length;++Y0)P0=f[Y0],P0!=="removeListener"&&this.removeAllListeners(P0);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=i[c],typeof n=="function")this.removeListener(c,n);else if(n!==void 0)for(Y0=n.length-1;Y0>=0;Y0--)this.removeListener(c,n[Y0]);return this};function W(c,n,i){var Y0=c._events;if(Y0===void 0)return[];var f=Y0[n];return f===void 0?[]:typeof f=="function"?i?[f.listener||f]:[f]:i?x(f):I(f,f.length)}U.prototype.listeners=function(c){return W(this,c,!0)},U.prototype.rawListeners=function(c){return W(this,c,!1)},U.listenerCount=function(c,n){return typeof c.listenerCount=="function"?c.listenerCount(n):D.call(c,n)},U.prototype.listenerCount=D;function D(c){var n=this._events;if(n!==void 0){var i=n[c];if(typeof i=="function")return 1;if(i!==void 0)return i.length}return 0}U.prototype.eventNames=function(){return this._eventsCount>0?j(this._events):[]};function I(c,n){for(var i=new Array(n),Y0=0;Y0<n;++Y0)i[Y0]=c[Y0];return i}function v(c,n){for(;n+1<c.length;n++)c[n]=c[n+1];c.pop()}function x(c){for(var n=new Array(c.length),i=0;i<n.length;++i)n[i]=c[i].listener||c[i];return n}function A(c,n){return new Promise(function(i,Y0){function f(K){c.removeListener(n,P0),Y0(K)}function P0(){typeof c.removeListener=="function"&&c.removeListener("error",f),i([].slice.call(arguments))}p(c,n,P0,{once:!0}),n!=="error"&&y(c,f,{once:!0})})}function y(c,n,i){typeof c.on=="function"&&p(c,"error",n,i)}function p(c,n,i,Y0){if(typeof c.on=="function")Y0.once?c.once(n,i):c.on(n,i);else if(typeof c.addEventListener=="function")c.addEventListener(n,function f(P0){Y0.once&&c.removeEventListener(n,f),i(P0)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}}),l9=F0((l,g)=>{g.exports=S5().EventEmitter}),t5=F0(()=>{}),F7=F0((l,g)=>{function E(W,D){var I=Object.keys(W);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(W);D&&(v=v.filter(function(x){return Object.getOwnPropertyDescriptor(W,x).enumerable})),I.push.apply(I,v)}return I}function M(W){for(var D=1;D<arguments.length;D++){var I=arguments[D]!=null?arguments[D]:{};D%2?E(Object(I),!0).forEach(function(v){j(W,v,I[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(I)):E(Object(I)).forEach(function(v){Object.defineProperty(W,v,Object.getOwnPropertyDescriptor(I,v))})}return W}function j(W,D,I){return D in W?Object.defineProperty(W,D,{value:I,enumerable:!0,configurable:!0,writable:!0}):W[D]=I,W}function S(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}function H(W,D){for(var I=0;I<D.length;I++){var v=D[I];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(W,v.key,v)}}function U(W,D,I){return D&&H(W.prototype,D),I&&H(W,I),W}var k=W5(),z=k.Buffer,V=t5(),$=V.inspect,T=$&&$.custom||"inspect";function N(W,D,I){z.prototype.copy.call(W,D,I)}g.exports=function(){function W(){S(this,W),this.head=null,this.tail=null,this.length=0}return U(W,[{key:"push",value:function(D){var I={data:D,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(D){var I={data:D,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var D=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,D}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(D){if(this.length===0)return"";for(var I=this.head,v=""+I.data;I=I.next;)v+=D+I.data;return v}},{key:"concat",value:function(D){if(this.length===0)return z.alloc(0);for(var I=z.allocUnsafe(D>>>0),v=this.head,x=0;v;)N(v.data,I,x),x+=v.data.length,v=v.next;return I}},{key:"consume",value:function(D,I){var v;return D<this.head.data.length?(v=this.head.data.slice(0,D),this.head.data=this.head.data.slice(D)):D===this.head.data.length?v=this.shift():v=I?this._getString(D):this._getBuffer(D),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var I=this.head,v=1,x=I.data;for(D-=x.length;I=I.next;){var A=I.data,y=D>A.length?A.length:D;if(y===A.length?x+=A:x+=A.slice(0,D),D-=y,D===0){y===A.length?(++v,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=A.slice(y));break}++v}return this.length-=v,x}},{key:"_getBuffer",value:function(D){var I=z.allocUnsafe(D),v=this.head,x=1;for(v.data.copy(I),D-=v.data.length;v=v.next;){var A=v.data,y=D>A.length?A.length:D;if(A.copy(I,I.length-D,0,y),D-=y,D===0){y===A.length?(++x,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=A.slice(y));break}++x}return this.length-=x,I}},{key:T,value:function(D,I){return $(this,M({},I,{depth:0,customInspect:!1}))}}]),W}()}),h9=F0((l,g)=>{function E(k,z){var V=this,$=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return $||T?(z?z(k):k&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(H,this,k)):process.nextTick(H,this,k)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(k||null,function(N){!z&&N?V._writableState?V._writableState.errorEmitted?process.nextTick(j,V):(V._writableState.errorEmitted=!0,process.nextTick(M,V,N)):process.nextTick(M,V,N):z?(process.nextTick(j,V),z(N)):process.nextTick(j,V)}),this)}function M(k,z){H(k,z),j(k)}function j(k){k._writableState&&!k._writableState.emitClose||k._readableState&&!k._readableState.emitClose||k.emit("close")}function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function H(k,z){k.emit("error",z)}function U(k,z){var{_readableState:V,_writableState:$}=k;V&&V.autoDestroy||$&&$.autoDestroy?k.destroy(z):k.emit("error",z)}g.exports={destroy:E,undestroy:S,errorOrDestroy:U}}),m5=F0((l,g)=>{function E(z,V){z.prototype=Object.create(V.prototype),z.prototype.constructor=z,z.__proto__=V}var M={};function j(z,V,$){$||($=Error);function T(W,D,I){return typeof V=="string"?V:V(W,D,I)}var N=function(W){E(D,W);function D(I,v,x){return W.call(this,T(I,v,x))||this}return D}($);N.prototype.name=$.name,N.prototype.code=z,M[z]=N}function S(z,V){if(Array.isArray(z)){var $=z.length;return z=z.map(function(T){return String(T)}),$>2?"one of ".concat(V," ").concat(z.slice(0,$-1).join(", "),", or ")+z[$-1]:$===2?"one of ".concat(V," ").concat(z[0]," or ").concat(z[1]):"of ".concat(V," ").concat(z[0])}else return"of ".concat(V," ").concat(String(z))}function H(z,V,$){return z.substr(!$||$<0?0:+$,V.length)===V}function U(z,V,$){return($===void 0||$>z.length)&&($=z.length),z.substring($-V.length,$)===V}function k(z,V,$){return typeof $!="number"&&($=0),$+V.length>z.length?!1:z.indexOf(V,$)!==-1}j("ERR_INVALID_OPT_VALUE",function(z,V){return'The value "'+V+'" is invalid for option "'+z+'"'},TypeError),j("ERR_INVALID_ARG_TYPE",function(z,V,$){var T;typeof V=="string"&&H(V,"not ")?(T="must not be",V=V.replace(/^not /,"")):T="must be";var N;if(U(z," argument"))N="The ".concat(z," ").concat(T," ").concat(S(V,"type"));else{var W=k(z,".")?"property":"argument";N='The "'.concat(z,'" ').concat(W," ").concat(T," ").concat(S(V,"type"))}return N+=". Received type ".concat(typeof $),N},TypeError),j("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),j("ERR_METHOD_NOT_IMPLEMENTED",function(z){return"The "+z+" method is not implemented"}),j("ERR_STREAM_PREMATURE_CLOSE","Premature close"),j("ERR_STREAM_DESTROYED",function(z){return"Cannot call "+z+" after a stream was destroyed"}),j("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),j("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),j("ERR_STREAM_WRITE_AFTER_END","write after end"),j("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),j("ERR_UNKNOWN_ENCODING",function(z){return"Unknown encoding: "+z},TypeError),j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=M}),u9=F0((l,g)=>{var E=m5().codes.ERR_INVALID_OPT_VALUE;function M(S,H,U){return S.highWaterMark!=null?S.highWaterMark:H?S[U]:null}function j(S,H,U,k){var z=M(H,k,U);if(z!=null){if(!(isFinite(z)&&Math.floor(z)===z)||z<0){var V=k?U:"highWaterMark";throw new E(V,z)}return Math.floor(z)}return S.objectMode?16:16384}g.exports={getHighWaterMark:j}}),o9=F0((l,g)=>{g.exports=E;function E(j,S){if(M("noDeprecation"))return j;var H=!1;function U(){if(!H){if(M("throwDeprecation"))throw new Error(S);M("traceDeprecation")?console.trace(S):console.warn(S),H=!0}return j.apply(this,arguments)}return U}function M(j){try{if(!global.localStorage)return!1}catch{return!1}var S=global.localStorage[j];return S==null?!1:String(S).toLowerCase()==="true"}}),s9=F0((l,g)=>{g.exports=f;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){C0(d,u)}}var M;f.WritableState=i;var j={deprecate:o9()},S=l9(),H=W5().Buffer,U=global.Uint8Array||function(){};function k(u){return H.from(u)}function z(u){return H.isBuffer(u)||u instanceof U}var V=h9(),$=u9(),T=$.getHighWaterMark,N=m5().codes,W=N.ERR_INVALID_ARG_TYPE,D=N.ERR_METHOD_NOT_IMPLEMENTED,I=N.ERR_MULTIPLE_CALLBACK,v=N.ERR_STREAM_CANNOT_PIPE,x=N.ERR_STREAM_DESTROYED,A=N.ERR_STREAM_NULL_VALUES,y=N.ERR_STREAM_WRITE_AFTER_END,p=N.ERR_UNKNOWN_ENCODING,c=V.errorOrDestroy;p0()(f,S);function n(){}function i(u,d,a){M=M||w5(),u=u||{},typeof a!="boolean"&&(a=d instanceof M),this.objectMode=!!u.objectMode,a&&(this.objectMode=this.objectMode||!!u.writableObjectMode),this.highWaterMark=T(this,u,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var V0=u.decodeStrings===!1;this.decodeStrings=!V0,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K0){Z(d,K0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=u.emitClose!==!1,this.autoDestroy=!!u.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new E(this)}i.prototype.getBuffer=function(){for(var u=this.bufferedRequest,d=[];u;)d.push(u),u=u.next;return d},function(){try{Object.defineProperty(i.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Y0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Y0=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(u){return Y0.call(this,u)?!0:this!==f?!1:u&&u._writableState instanceof i}})):Y0=function(u){return u instanceof this};function f(u){M=M||w5();var d=this instanceof M;if(!d&&!Y0.call(f,this))return new f(u);this._writableState=new i(u,this,d),this.writable=!0,u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final)),S.call(this)}f.prototype.pipe=function(){c(this,new v)};function P0(u,d){var a=new y;c(u,a),process.nextTick(d,a)}function K(u,d,a,V0){var K0;return a===null?K0=new A:typeof a!="string"&&!d.objectMode&&(K0=new W("chunk",["string","Buffer"],a)),K0?(c(u,K0),process.nextTick(V0,K0),!1):!0}f.prototype.write=function(u,d,a){var V0=this._writableState,K0=!1,Q0=!V0.objectMode&&z(u);return Q0&&!H.isBuffer(u)&&(u=k(u)),typeof d=="function"&&(a=d,d=null),Q0?d="buffer":d||(d=V0.defaultEncoding),typeof a!="function"&&(a=n),V0.ending?P0(this,a):(Q0||K(this,V0,u,a))&&(V0.pendingcb++,K0=J(this,V0,Q0,u,d,a)),K0},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&G(this,u))},f.prototype.setDefaultEncoding=function(u){if(typeof u=="string"&&(u=u.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((u+"").toLowerCase())>-1))throw new p(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function C(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=H.from(d,a)),d}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(u,d,a,V0,K0,Q0){if(!a){var w=C(d,V0,K0);V0!==w&&(a=!0,K0="buffer",V0=w)}var q=d.objectMode?1:V0.length;d.length+=q;var m=d.length<d.highWaterMark;if(m||(d.needDrain=!0),d.writing||d.corked){var e=d.lastBufferedRequest;d.lastBufferedRequest={chunk:V0,encoding:K0,isBuf:a,callback:Q0,next:null},e?e.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else Y(u,d,!1,q,V0,K0,Q0);return m}function Y(u,d,a,V0,K0,Q0,w){d.writelen=V0,d.writecb=w,d.writing=!0,d.sync=!0,d.destroyed?d.onwrite(new x("write")):a?u._writev(K0,d.onwrite):u._write(K0,Q0,d.onwrite),d.sync=!1}function Q(u,d,a,V0,K0){--d.pendingcb,a?(process.nextTick(K0,V0),process.nextTick(s,u,d),u._writableState.errorEmitted=!0,c(u,V0)):(K0(V0),u._writableState.errorEmitted=!0,c(u,V0),s(u,d))}function P(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function Z(u,d){var a=u._writableState,V0=a.sync,K0=a.writecb;if(typeof K0!="function")throw new I;if(P(a),d)Q(u,a,V0,d,K0);else{var Q0=R(a)||u.destroyed;!Q0&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&G(u,a),V0?process.nextTick(F,u,a,Q0,K0):F(u,a,Q0,K0)}}function F(u,d,a,V0){a||X(u,d),d.pendingcb--,V0(),s(u,d)}function X(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function G(u,d){d.bufferProcessing=!0;var a=d.bufferedRequest;if(u._writev&&a&&a.next){var V0=d.bufferedRequestCount,K0=new Array(V0),Q0=d.corkedRequestsFree;Q0.entry=a;for(var w=0,q=!0;a;)K0[w]=a,a.isBuf||(q=!1),a=a.next,w+=1;K0.allBuffers=q,Y(u,d,!0,d.length,K0,"",Q0.finish),d.pendingcb++,d.lastBufferedRequest=null,Q0.next?(d.corkedRequestsFree=Q0.next,Q0.next=null):d.corkedRequestsFree=new E(d),d.bufferedRequestCount=0}else{for(;a;){var{chunk:m,encoding:e,callback:X0}=a,t=d.objectMode?1:m.length;if(Y(u,d,!1,t,m,e,X0),a=a.next,d.bufferedRequestCount--,d.writing)break}a===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=a,d.bufferProcessing=!1}f.prototype._write=function(u,d,a){a(new D("_write()"))},f.prototype._writev=null,f.prototype.end=function(u,d,a){var V0=this._writableState;return typeof u=="function"?(a=u,u=null,d=null):typeof d=="function"&&(a=d,d=null),u!=null&&this.write(u,d),V0.corked&&(V0.corked=1,this.uncork()),V0.ending||r(this,V0,a),this},Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function R(u){return u.ending&&u.length===0&&u.bufferedRequest===null&&!u.finished&&!u.writing}function L(u,d){u._final(function(a){d.pendingcb--,a&&c(u,a),d.prefinished=!0,u.emit("prefinish"),s(u,d)})}function _(u,d){!d.prefinished&&!d.finalCalled&&(typeof u._final=="function"&&!d.destroyed?(d.pendingcb++,d.finalCalled=!0,process.nextTick(L,u,d)):(d.prefinished=!0,u.emit("prefinish")))}function s(u,d){var a=R(d);if(a&&(_(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"),d.autoDestroy))){var V0=u._readableState;(!V0||V0.autoDestroy&&V0.endEmitted)&&u.destroy()}return a}function r(u,d,a){d.ending=!0,s(u,d),a&&(d.finished?process.nextTick(a):u.once("finish",a)),d.ended=!0,u.writable=!1}function C0(u,d,a){var V0=u.entry;for(u.entry=null;V0;){var K0=V0.callback;d.pendingcb--,K0(a),V0=V0.next}d.corkedRequestsFree.next=u}Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){!this._writableState||(this._writableState.destroyed=u)}}),f.prototype.destroy=V.destroy,f.prototype._undestroy=V.undestroy,f.prototype._destroy=function(u,d){d(u)}}),w5=F0((l,g)=>{var E=Object.keys||function($){var T=[];for(var N in $)T.push(N);return T};g.exports=k;var M=a9(),j=s9();p0()(k,M);for(S=E(j.prototype),U=0;U<S.length;U++)H=S[U],k.prototype[H]||(k.prototype[H]=j.prototype[H]);var S,H,U;function k($){if(!(this instanceof k))return new k($);M.call(this,$),j.call(this,$),this.allowHalfOpen=!0,$&&($.readable===!1&&(this.readable=!1),$.writable===!1&&(this.writable=!1),$.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||process.nextTick(V,this)}function V($){$.end()}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function($){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=$,this._writableState.destroyed=$)}})}),$9=F0((l)=>{var g=d0().Buffer,E=g.isEncoding||function(x){switch(x=""+x,x&&x.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 M(x){if(!x)return"utf8";for(var A;;)switch(x){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 x;default:if(A)return;x=(""+x).toLowerCase(),A=!0}}function j(x){var A=M(x);if(typeof A!="string"&&(g.isEncoding===E||!E(x)))throw new Error("Unknown encoding: "+x);return A||x}l.StringDecoder=S;function S(x){this.encoding=j(x);var A;switch(this.encoding){case"utf16le":this.text=T,this.end=N,A=4;break;case"utf8":this.fillLast=z,A=4;break;case"base64":this.text=W,this.end=D,A=3;break;default:this.write=I,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(A)}S.prototype.write=function(x){if(x.length===0)return"";var A,y;if(this.lastNeed){if(A=this.fillLast(x),A===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<x.length?A?A+this.text(x,y):this.text(x,y):A||""},S.prototype.end=$,S.prototype.text=V,S.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function H(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function U(x,A,y){var p=A.length-1;if(p<y)return 0;var c=H(A[p]);return c>=0?(c>0&&(x.lastNeed=c-1),c):--p<y||c===-2?0:(c=H(A[p]),c>=0?(c>0&&(x.lastNeed=c-2),c):--p<y||c===-2?0:(c=H(A[p]),c>=0?(c>0&&(c===2?c=0:x.lastNeed=c-3),c):0))}function k(x,A,y){if((A[0]&192)!==128)return x.lastNeed=0,"�";if(x.lastNeed>1&&A.length>1){if((A[1]&192)!==128)return x.lastNeed=1,"�";if(x.lastNeed>2&&A.length>2&&(A[2]&192)!==128)return x.lastNeed=2,"�"}}function z(x){var A=this.lastTotal-this.lastNeed,y=k(this,x,A);if(y!==void 0)return y;if(this.lastNeed<=x.length)return x.copy(this.lastChar,A,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,A,0,x.length),this.lastNeed-=x.length}function V(x,A){var y=U(this,x,A);if(!this.lastNeed)return x.toString("utf8",A);this.lastTotal=y;var p=x.length-(y-this.lastNeed);return x.copy(this.lastChar,0,p),x.toString("utf8",A,p)}function $(x){var A=x&&x.length?this.write(x):"";return this.lastNeed?A+"�":A}function T(x,A){if((x.length-A)%2===0){var y=x.toString("utf16le",A);if(y){var p=y.charCodeAt(y.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",A,x.length-1)}function N(x){var A=x&&x.length?this.write(x):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return A+this.lastChar.toString("utf16le",0,y)}return A}function W(x,A){var y=(x.length-A)%3;return y===0?x.toString("base64",A):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",A,x.length-y))}function D(x){var A=x&&x.length?this.write(x):"";return this.lastNeed?A+this.lastChar.toString("base64",0,3-this.lastNeed):A}function I(x){return x.toString(this.encoding)}function v(x){return x&&x.length?this.write(x):""}}),d5={};i5(d5,{StringDecoder:()=>G9.StringDecoder,default:()=>G9.StringDecoder});var G9,f5=P9(()=>{G9=E5($9())}),j9=F0((l,g)=>{var E=m5().codes.ERR_STREAM_PREMATURE_CLOSE;function M(U){var k=!1;return function(){if(!k){k=!0;for(var z=arguments.length,V=new Array(z),$=0;$<z;$++)V[$]=arguments[$];U.apply(this,V)}}}function j(){}function S(U){return U.setHeader&&typeof U.abort=="function"}function H(U,k,z){if(typeof k=="function")return H(U,null,k);k||(k={}),z=M(z||j);var V=k.readable||k.readable!==!1&&U.readable,$=k.writable||k.writable!==!1&&U.writable,T=function(){U.writable||W()},N=U._writableState&&U._writableState.finished,W=function(){$=!1,N=!0,V||z.call(U)},D=U._readableState&&U._readableState.endEmitted,I=function(){V=!1,D=!0,$||z.call(U)},v=function(y){z.call(U,y)},x=function(){var y;if(V&&!D)return(!U._readableState||!U._readableState.ended)&&(y=new E),z.call(U,y);if($&&!N)return(!U._writableState||!U._writableState.ended)&&(y=new E),z.call(U,y)},A=function(){U.req.on("finish",W)};return S(U)?(U.on("complete",W),U.on("abort",x),U.req?A():U.on("request",A)):$&&!U._writableState&&(U.on("end",T),U.on("close",T)),U.on("end",I),U.on("finish",W),k.error!==!1&&U.on("error",v),U.on("close",x),function(){U.removeListener("complete",W),U.removeListener("abort",x),U.removeListener("request",A),U.req&&U.req.removeListener("finish",W),U.removeListener("end",T),U.removeListener("close",T),U.removeListener("finish",W),U.removeListener("end",I),U.removeListener("error",v),U.removeListener("close",x)}}g.exports=H}),G7=F0((l,g)=>{var E;function M(A,y,p){return y in A?Object.defineProperty(A,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):A[y]=p,A}var j=j9(),S=Symbol("lastResolve"),H=Symbol("lastReject"),U=Symbol("error"),k=Symbol("ended"),z=Symbol("lastPromise"),V=Symbol("handlePromise"),$=Symbol("stream");function T(A,y){return{value:A,done:y}}function N(A){var y=A[S];if(y!==null){var p=A[$].read();p!==null&&(A[z]=null,A[S]=null,A[H]=null,y(T(p,!1)))}}function W(A){process.nextTick(N,A)}function D(A,y){return function(p,c){A.then(function(){if(y[k]){p(T(void 0,!0));return}y[V](p,c)},c)}}var I=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((E={get stream(){return this[$]},next:function(){var A=this,y=this[U];if(y!==null)return Promise.reject(y);if(this[k])return Promise.resolve(T(void 0,!0));if(this[$].destroyed)return new Promise(function(i,Y0){process.nextTick(function(){A[U]?Y0(A[U]):i(T(void 0,!0))})});var p=this[z],c;if(p)c=new Promise(D(p,this));else{var n=this[$].read();if(n!==null)return Promise.resolve(T(n,!1));c=new Promise(this[V])}return this[z]=c,c}},M(E,Symbol.asyncIterator,function(){return this}),M(E,"return",function(){var A=this;return new Promise(function(y,p){A[$].destroy(null,function(c){if(c){p(c);return}y(T(void 0,!0))})})}),E),I),x=function(A){var y,p=Object.create(v,(y={},M(y,$,{value:A,writable:!0}),M(y,S,{value:null,writable:!0}),M(y,H,{value:null,writable:!0}),M(y,U,{value:null,writable:!0}),M(y,k,{value:A._readableState.endEmitted,writable:!0}),M(y,V,{value:function(c,n){var i=p[$].read();i?(p[z]=null,p[S]=null,p[H]=null,c(T(i,!1))):(p[S]=c,p[H]=n)},writable:!0}),y));return p[z]=null,j(A,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[H];n!==null&&(p[z]=null,p[S]=null,p[H]=null,n(c)),p[U]=c;return}var i=p[S];i!==null&&(p[z]=null,p[S]=null,p[H]=null,i(T(void 0,!0))),p[k]=!0}),A.on("readable",W.bind(null,p)),p};g.exports=x}),P7=F0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),a9=F0((l,g)=>{g.exports=K;var E;K.ReadableState=P0;var M=S5().EventEmitter,j=function(w,q){return w.listeners(q).length},S=l9(),H=W5().Buffer,U=global.Uint8Array||function(){};function k(w){return H.from(w)}function z(w){return H.isBuffer(w)||w instanceof U}var V=t5(),$;V&&V.debuglog?$=V.debuglog("stream"):$=function(){};var T=F7(),N=h9(),W=u9(),D=W.getHighWaterMark,I=m5().codes,v=I.ERR_INVALID_ARG_TYPE,x=I.ERR_STREAM_PUSH_AFTER_EOF,A=I.ERR_METHOD_NOT_IMPLEMENTED,y=I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(K,S);var i=N.errorOrDestroy,Y0=["error","close","destroy","pause","resume"];function f(w,q,m){if(typeof w.prependListener=="function")return w.prependListener(q,m);!w._events||!w._events[q]?w.on(q,m):Array.isArray(w._events[q])?w._events[q].unshift(m):w._events[q]=[m,w._events[q]]}function P0(w,q,m){E=E||w5(),w=w||{},typeof m!="boolean"&&(m=q instanceof E),this.objectMode=!!w.objectMode,m&&(this.objectMode=this.objectMode||!!w.readableObjectMode),this.highWaterMark=D(this,w,"readableHighWaterMark",m),this.buffer=new T,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=w.emitClose!==!1,this.autoDestroy=!!w.autoDestroy,this.destroyed=!1,this.defaultEncoding=w.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,w.encoding&&(p||(p=(f5(),z5(d5)).StringDecoder),this.decoder=new p(w.encoding),this.encoding=w.encoding)}function K(w){if(E=E||w5(),!(this instanceof K))return new K(w);var q=this instanceof E;this._readableState=new P0(w,this,q),this.readable=!0,w&&(typeof w.read=="function"&&(this._read=w.read),typeof w.destroy=="function"&&(this._destroy=w.destroy)),S.call(this)}Object.defineProperty(K.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(w){!this._readableState||(this._readableState.destroyed=w)}}),K.prototype.destroy=N.destroy,K.prototype._undestroy=N.undestroy,K.prototype._destroy=function(w,q){q(w)},K.prototype.push=function(w,q){var m=this._readableState,e;return m.objectMode?e=!0:typeof w=="string"&&(q=q||m.defaultEncoding,q!==m.encoding&&(w=H.from(w,q),q=""),e=!0),C(this,w,q,!1,e)},K.prototype.unshift=function(w){return C(this,w,null,!0,!1)};function C(w,q,m,e,X0){$("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,F(w,t);else{var _0;if(X0||(_0=Y(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==H.prototype&&(q=k(q)),e)t.endEmitted?i(w,new y):J(w,t,q,!0);else if(t.ended)i(w,new x);else{if(t.destroyed)return!1;t.reading=!1,t.decoder&&!m?(q=t.decoder.write(q),t.objectMode||q.length!==0?J(w,t,q,!1):R(w,t)):J(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function J(w,q,m,e){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,w.emit("data",m)):(q.length+=q.objectMode?1:m.length,e?q.buffer.unshift(m):q.buffer.push(m),q.needReadable&&X(w)),R(w,q)}function Y(w,q){var m;return!z(q)&&typeof q!="string"&&q!==void 0&&!w.objectMode&&(m=new v("chunk",["string","Buffer","Uint8Array"],q)),m}K.prototype.isPaused=function(){return this._readableState.flowing===!1},K.prototype.setEncoding=function(w){p||(p=(f5(),z5(d5)).StringDecoder);var q=new p(w);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var m=this._readableState.buffer.head,e="";m!==null;)e+=q.write(m.data),m=m.next;return this._readableState.buffer.clear(),e!==""&&this._readableState.buffer.push(e),this._readableState.length=e.length,this};var Q=1073741824;function P(w){return w>=Q?w=Q:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}function Z(w,q){return w<=0||q.length===0&&q.ended?0:q.objectMode?1:w!==w?q.flowing&&q.length?q.buffer.head.data.length:q.length:(w>q.highWaterMark&&(q.highWaterMark=P(w)),w<=q.length?w:q.ended?q.length:(q.needReadable=!0,0))}K.prototype.read=function(w){$("read",w),w=parseInt(w,10);var q=this._readableState,m=w;if(w!==0&&(q.emittedReadable=!1),w===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return $("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?V0(this):X(this),null;if(w=Z(w,q),w===0&&q.ended)return q.length===0&&V0(this),null;var e=q.needReadable;$("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,$("length less than watermark",e)),q.ended||q.reading?(e=!1,$("reading or ended",e)):e&&($("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=Z(m,q)));var X0;return w>0?X0=a(w,q):X0=null,X0===null?(q.needReadable=q.length<=q.highWaterMark,w=0):(q.length-=w,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),m!==w&&q.ended&&V0(this)),X0!==null&&this.emit("data",X0),X0};function F(w,q){if($("onEofChunk"),!q.ended){if(q.decoder){var m=q.decoder.end();m&&m.length&&(q.buffer.push(m),q.length+=q.objectMode?1:m.length)}q.ended=!0,q.sync?X(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,G(w)))}}function X(w){var q=w._readableState;$("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||($("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(G,w))}function G(w){var q=w._readableState;$("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(w.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,d(w)}function R(w,q){q.readingMore||(q.readingMore=!0,process.nextTick(L,w,q))}function L(w,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var m=q.length;if($("maybeReadMore read 0"),w.read(0),m===q.length)break}q.readingMore=!1}K.prototype._read=function(w){i(this,new A("_read()"))},K.prototype.pipe=function(w,q){var m=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=w;break;case 1:e.pipes=[e.pipes,w];break;default:e.pipes.push(w);break}e.pipesCount+=1,$("pipe count=%d opts=%j",e.pipesCount,q);var X0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=X0?H0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){$("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,W0())}function H0(){$("onend"),w.end()}var G0=_(m);w.on("drain",G0);var w0=!1;function W0(){$("cleanup"),w.removeListener("close",O),w.removeListener("finish",B),w.removeListener("drain",G0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",H0),m.removeListener("end",b),m.removeListener("data",Z0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&G0()}m.on("data",Z0);function Z0(h){$("ondata");var o=w.write(h);$("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&Q0(e.pipes,w)!==-1)&&!w0&&($("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){$("onerror",h),b(),w.removeListener("error",c0),j(w,"error")===0&&i(w,h)}f(w,"error",c0);function O(){w.removeListener("finish",B),b()}w.once("close",O);function B(){$("onfinish"),w.removeListener("close",O),b()}w.once("finish",B);function b(){$("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||($("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;$("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&j(w,"data")&&(q.flowing=!0,d(w))}}K.prototype.unpipe=function(w){var q=this._readableState,m={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return w&&w!==q.pipes?this:(w||(w=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,w&&w.emit("unpipe",this,m),this);if(!w){var{pipes:e,pipesCount:X0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<X0;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}var _0=Q0(q.pipes,w);return _0===-1?this:(q.pipes.splice(_0,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),w.emit("unpipe",this,m),this)},K.prototype.on=function(w,q){var m=S.prototype.on.call(this,w,q),e=this._readableState;return w==="data"?(e.readableListening=this.listenerCount("readable")>0,e.flowing!==!1&&this.resume()):w==="readable"&&!e.endEmitted&&!e.readableListening&&(e.readableListening=e.needReadable=!0,e.flowing=!1,e.emittedReadable=!1,$("on readable",e.length,e.reading),e.length?X(this):e.reading||process.nextTick(r,this)),m},K.prototype.addListener=K.prototype.on,K.prototype.removeListener=function(w,q){var m=S.prototype.removeListener.call(this,w,q);return w==="readable"&&process.nextTick(s,this),m},K.prototype.removeAllListeners=function(w){var q=S.prototype.removeAllListeners.apply(this,arguments);return(w==="readable"||w===void 0)&&process.nextTick(s,this),q};function s(w){var q=w._readableState;q.readableListening=w.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:w.listenerCount("data")>0&&w.resume()}function r(w){$("readable nexttick read 0"),w.read(0)}K.prototype.resume=function(){var w=this._readableState;return w.flowing||($("resume"),w.flowing=!w.readableListening,C0(this,w)),w.paused=!1,this};function C0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){$("resume",q.reading),q.reading||w.read(0),q.resumeScheduled=!1,w.emit("resume"),d(w),q.flowing&&!q.reading&&w.read(0)}K.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for($("flow",q.flowing);q.flowing&&w.read()!==null;);}K.prototype.wrap=function(w){var q=this,m=this._readableState,e=!1;w.on("end",function(){if($("wrapped end"),m.decoder&&!m.ended){var _0=m.decoder.end();_0&&_0.length&&q.push(_0)}q.push(null)}),w.on("data",function(_0){if($("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var H0=q.push(_0);H0||(e=!0,w.pause())}});for(var X0 in w)this[X0]===void 0&&typeof w[X0]=="function"&&(this[X0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(X0));for(var t=0;t<Y0.length;t++)w.on(Y0[t],this.emit.bind(this,Y0[t]));return this._read=function(_0){$("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=G7()),c(this)}),Object.defineProperty(K.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(K.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(K.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(w){this._readableState&&(this._readableState.flowing=w)}}),K._fromList=a,Object.defineProperty(K.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function a(w,q){if(q.length===0)return null;var m;return q.objectMode?m=q.buffer.shift():!w||w>=q.length?(q.decoder?m=q.buffer.join(""):q.buffer.length===1?m=q.buffer.first():m=q.buffer.concat(q.length),q.buffer.clear()):m=q.buffer.consume(w,q.decoder),m}function V0(w){var q=w._readableState;$("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(K0,q,w))}function K0(w,q){if($("endReadableNT",w.endEmitted,w.length),!w.endEmitted&&w.length===0&&(w.endEmitted=!0,q.readable=!1,q.emit("end"),w.autoDestroy)){var m=q._writableState;(!m||m.autoDestroy&&m.finished)&&q.destroy()}}typeof Symbol=="function"&&(K.from=function(w,q){return n===void 0&&(n=P7()),n(K,w,q)});function Q0(w,q){for(var m=0,e=w.length;m<e;m++)if(w[m]===q)return m;return-1}}),f9=F0((l,g)=>{g.exports=z;var E=m5().codes,M=E.ERR_METHOD_NOT_IMPLEMENTED,j=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,H=E.ERR_TRANSFORM_WITH_LENGTH_0,U=w5();p0()(z,U);function k(T,N){var W=this._transformState;W.transforming=!1;var D=W.writecb;if(D===null)return this.emit("error",new j);W.writechunk=null,W.writecb=null,N!=null&&this.push(N),D(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function z(T){if(!(this instanceof z))return new z(T);U.call(this,T),this._transformState={afterTransform:k.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,T&&(typeof T.transform=="function"&&(this._transform=T.transform),typeof T.flush=="function"&&(this._flush=T.flush)),this.on("prefinish",V)}function V(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,W){$(T,N,W)}):$(this,null,null)}z.prototype.push=function(T,N){return this._transformState.needTransform=!1,U.prototype.push.call(this,T,N)},z.prototype._transform=function(T,N,W){W(new M("_transform()"))},z.prototype._write=function(T,N,W){var D=this._transformState;if(D.writecb=W,D.writechunk=T,D.writeencoding=N,!D.transforming){var I=this._readableState;(D.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},z.prototype._read=function(T){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},z.prototype._destroy=function(T,N){U.prototype._destroy.call(this,T,function(W){N(W)})};function $(T,N,W){if(N)return T.emit("error",N);if(W!=null&&T.push(W),T._writableState.length)throw new H;if(T._transformState.transforming)throw new S;return T.push(null)}}),Z7=F0((l,g)=>{g.exports=M;var E=f9();p0()(M,E);function M(j){if(!(this instanceof M))return new M(j);E.call(this,j)}M.prototype._transform=function(j,S,H){H(null,j)}}),$7=F0((l,g)=>{var E;function M(W){var D=!1;return function(){D||(D=!0,W.apply(void 0,arguments))}}var j=m5().codes,S=j.ERR_MISSING_ARGS,H=j.ERR_STREAM_DESTROYED;function U(W){if(W)throw W}function k(W){return W.setHeader&&typeof W.abort=="function"}function z(W,D,I,v){v=M(v);var x=!1;W.on("close",function(){x=!0}),E===void 0&&(E=j9()),E(W,{readable:D,writable:I},function(y){if(y)return v(y);x=!0,v()});var A=!1;return function(y){if(!x&&!A){if(A=!0,k(W))return W.abort();if(typeof W.destroy=="function")return W.destroy();v(y||new H("pipe"))}}}function V(W){W()}function $(W,D){return W.pipe(D)}function T(W){return!W.length||typeof W[W.length-1]!="function"?U:W.pop()}function N(){for(var W=arguments.length,D=new Array(W),I=0;I<W;I++)D[I]=arguments[I];var v=T(D);if(Array.isArray(D[0])&&(D=D[0]),D.length<2)throw new S("streams");var x,A=D.map(function(y,p){var c=p<D.length-1,n=p>0;return z(y,c,n,function(i){x||(x=i),i&&A.forEach(V),!c&&(A.forEach(V),v(x))})});return D.reduce($)}g.exports=N}),j7=F0((l,g)=>{l=g.exports=a9(),l.Stream=l,l.Readable=l,l.Writable=s9(),l.Duplex=w5(),l.Transform=f9(),l.PassThrough=Z7(),l.finished=j9(),l.pipeline=$7()}),n9=F0((l,g)=>{var E=d0().Buffer,M=j7().Transform,j=p0();function S(U,k){if(!E.isBuffer(U)&&typeof U!="string")throw new TypeError(k+" must be a string or a buffer")}function H(U){M.call(this),this._block=E.allocUnsafe(U),this._blockSize=U,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}j(H,M),H.prototype._transform=function(U,k,z){var V=null;try{this.update(U,k)}catch($){V=$}z(V)},H.prototype._flush=function(U){var k=null;try{this.push(this.digest())}catch(z){k=z}U(k)},H.prototype.update=function(U,k){if(S(U,"Data"),this._finalized)throw new Error("Digest already called");E.isBuffer(U)||(U=E.from(U,k));for(var z=this._block,V=0;this._blockOffset+U.length-V>=this._blockSize;){for(var $=this._blockOffset;$<this._blockSize;)z[$++]=U[V++];this._update(),this._blockOffset=0}for(;V<U.length;)z[this._blockOffset++]=U[V++];for(var T=0,N=U.length*8;N>0;++T)this._length[T]+=N,N=this._length[T]/4294967296|0,N>0&&(this._length[T]-=4294967296*N);return this},H.prototype._update=function(){throw new Error("_update is not implemented")},H.prototype.digest=function(U){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var k=this._digest();U!==void 0&&(k=k.toString(U)),this._block.fill(0),this._blockOffset=0;for(var z=0;z<4;++z)this._length[z]=0;return k},H.prototype._digest=function(){throw new Error("_digest is not implemented")},g.exports=H}),U9=F0((l,g)=>{var E=p0(),M=n9(),j=d0().Buffer,S=new Array(16);function H(){M.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}E(H,M),H.prototype._update=function(){for(var T=S,N=0;N<16;++N)T[N]=this._block.readInt32LE(N*4);var W=this._a,D=this._b,I=this._c,v=this._d;W=k(W,D,I,v,T[0],3614090360,7),v=k(v,W,D,I,T[1],3905402710,12),I=k(I,v,W,D,T[2],606105819,17),D=k(D,I,v,W,T[3],3250441966,22),W=k(W,D,I,v,T[4],4118548399,7),v=k(v,W,D,I,T[5],1200080426,12),I=k(I,v,W,D,T[6],2821735955,17),D=k(D,I,v,W,T[7],4249261313,22),W=k(W,D,I,v,T[8],1770035416,7),v=k(v,W,D,I,T[9],2336552879,12),I=k(I,v,W,D,T[10],4294925233,17),D=k(D,I,v,W,T[11],2304563134,22),W=k(W,D,I,v,T[12],1804603682,7),v=k(v,W,D,I,T[13],4254626195,12),I=k(I,v,W,D,T[14],2792965006,17),D=k(D,I,v,W,T[15],1236535329,22),W=z(W,D,I,v,T[1],4129170786,5),v=z(v,W,D,I,T[6],3225465664,9),I=z(I,v,W,D,T[11],643717713,14),D=z(D,I,v,W,T[0],3921069994,20),W=z(W,D,I,v,T[5],3593408605,5),v=z(v,W,D,I,T[10],38016083,9),I=z(I,v,W,D,T[15],3634488961,14),D=z(D,I,v,W,T[4],3889429448,20),W=z(W,D,I,v,T[9],568446438,5),v=z(v,W,D,I,T[14],3275163606,9),I=z(I,v,W,D,T[3],4107603335,14),D=z(D,I,v,W,T[8],1163531501,20),W=z(W,D,I,v,T[13],2850285829,5),v=z(v,W,D,I,T[2],4243563512,9),I=z(I,v,W,D,T[7],1735328473,14),D=z(D,I,v,W,T[12],2368359562,20),W=V(W,D,I,v,T[5],4294588738,4),v=V(v,W,D,I,T[8],2272392833,11),I=V(I,v,W,D,T[11],1839030562,16),D=V(D,I,v,W,T[14],4259657740,23),W=V(W,D,I,v,T[1],2763975236,4),v=V(v,W,D,I,T[4],1272893353,11),I=V(I,v,W,D,T[7],4139469664,16),D=V(D,I,v,W,T[10],3200236656,23),W=V(W,D,I,v,T[13],681279174,4),v=V(v,W,D,I,T[0],3936430074,11),I=V(I,v,W,D,T[3],3572445317,16),D=V(D,I,v,W,T[6],76029189,23),W=V(W,D,I,v,T[9],3654602809,4),v=V(v,W,D,I,T[12],3873151461,11),I=V(I,v,W,D,T[15],530742520,16),D=V(D,I,v,W,T[2],3299628645,23),W=$(W,D,I,v,T[0],4096336452,6),v=$(v,W,D,I,T[7],1126891415,10),I=$(I,v,W,D,T[14],2878612391,15),D=$(D,I,v,W,T[5],4237533241,21),W=$(W,D,I,v,T[12],1700485571,6),v=$(v,W,D,I,T[3],2399980690,10),I=$(I,v,W,D,T[10],4293915773,15),D=$(D,I,v,W,T[1],2240044497,21),W=$(W,D,I,v,T[8],1873313359,6),v=$(v,W,D,I,T[15],4264355552,10),I=$(I,v,W,D,T[6],2734768916,15),D=$(D,I,v,W,T[13],1309151649,21),W=$(W,D,I,v,T[4],4149444226,6),v=$(v,W,D,I,T[11],3174756917,10),I=$(I,v,W,D,T[2],718787259,15),D=$(D,I,v,W,T[9],3951481745,21),this._a=this._a+W|0,this._b=this._b+D|0,this._c=this._c+I|0,this._d=this._d+v|0},H.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 T=j.allocUnsafe(16);return T.writeInt32LE(this._a,0),T.writeInt32LE(this._b,4),T.writeInt32LE(this._c,8),T.writeInt32LE(this._d,12),T};function U(T,N){return T<<N|T>>>32-N}function k(T,N,W,D,I,v,x){return U(T+(N&W|~N&D)+I+v|0,x)+N|0}function z(T,N,W,D,I,v,x){return U(T+(N&D|W&~D)+I+v|0,x)+N|0}function V(T,N,W,D,I,v,x){return U(T+(N^W^D)+I+v|0,x)+N|0}function $(T,N,W,D,I,v,x){return U(T+(W^(N|~D))+I+v|0,x)+N|0}g.exports=H}),W9=F0((l,g)=>{var E=W5().Buffer,M=p0(),j=n9(),S=new Array(16),H=[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],U=[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],k=[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],z=[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],V=[0,1518500249,1859775393,2400959708,2840853838],$=[1352829926,1548603684,1836072691,2053994217,0];function T(){j.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}M(T,j),T.prototype._update=function(){for(var A=S,y=0;y<16;++y)A[y]=this._block.readInt32LE(y*4);for(var p=this._a|0,c=this._b|0,n=this._c|0,i=this._d|0,Y0=this._e|0,f=this._a|0,P0=this._b|0,K=this._c|0,C=this._d|0,J=this._e|0,Y=0;Y<80;Y+=1){var Q,P;Y<16?(Q=W(p,c,n,i,Y0,A[H[Y]],V[0],k[Y]),P=x(f,P0,K,C,J,A[U[Y]],$[0],z[Y])):Y<32?(Q=D(p,c,n,i,Y0,A[H[Y]],V[1],k[Y]),P=v(f,P0,K,C,J,A[U[Y]],$[1],z[Y])):Y<48?(Q=I(p,c,n,i,Y0,A[H[Y]],V[2],k[Y]),P=I(f,P0,K,C,J,A[U[Y]],$[2],z[Y])):Y<64?(Q=v(p,c,n,i,Y0,A[H[Y]],V[3],k[Y]),P=D(f,P0,K,C,J,A[U[Y]],$[3],z[Y])):(Q=x(p,c,n,i,Y0,A[H[Y]],V[4],k[Y]),P=W(f,P0,K,C,J,A[U[Y]],$[4],z[Y])),p=Y0,Y0=i,i=N(n,10),n=c,c=Q,f=J,J=C,C=N(K,10),K=P0,P0=P}var Z=this._b+n+C|0;this._b=this._c+i+J|0,this._c=this._d+Y0+f|0,this._d=this._e+p+P0|0,this._e=this._a+c+K|0,this._a=Z},T.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=E.alloc?E.alloc(20):new E(20);return A.writeInt32LE(this._a,0),A.writeInt32LE(this._b,4),A.writeInt32LE(this._c,8),A.writeInt32LE(this._d,12),A.writeInt32LE(this._e,16),A};function N(A,y){return A<<y|A>>>32-y}function W(A,y,p,c,n,i,Y0,f){return N(A+(y^p^c)+i+Y0|0,f)+n|0}function D(A,y,p,c,n,i,Y0,f){return N(A+(y&p|~y&c)+i+Y0|0,f)+n|0}function I(A,y,p,c,n,i,Y0,f){return N(A+((y|~p)^c)+i+Y0|0,f)+n|0}function v(A,y,p,c,n,i,Y0,f){return N(A+(y&c|p&~c)+i+Y0|0,f)+n|0}function x(A,y,p,c,n,i,Y0,f){return N(A+(y^(p|~c))+i+Y0|0,f)+n|0}g.exports=T}),p5=F0((l,g)=>{var E=d0().Buffer;function M(j,S){this._block=E.alloc(j),this._finalSize=S,this._blockSize=j,this._len=0}M.prototype.update=function(j,S){typeof j=="string"&&(S=S||"utf8",j=E.from(j,S));for(var H=this._block,U=this._blockSize,k=j.length,z=this._len,V=0;V<k;){for(var $=z%U,T=Math.min(k-V,U-$),N=0;N<T;N++)H[$+N]=j[V+N];z+=T,V+=T,z%U===0&&this._update(H)}return this._len+=k,this},M.prototype.digest=function(j){var S=this._len%this._blockSize;this._block[S]=128,this._block.fill(0,S+1),S>=this._finalSize&&(this._update(this._block),this._block.fill(0));var H=this._len*8;if(H<=4294967295)this._block.writeUInt32BE(H,this._blockSize-4);else{var U=(H&4294967295)>>>0,k=(H-U)/4294967296;this._block.writeUInt32BE(k,this._blockSize-8),this._block.writeUInt32BE(U,this._blockSize-4)}this._update(this._block);var z=this._hash();return j?z.toString(j):z},M.prototype._update=function(){throw new Error("_update must be implemented by subclass")},g.exports=M}),U7=F0((l,g)=>{var E=p0(),M=p5(),j=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],H=new Array(80);function U(){this.init(),this._w=H,M.call(this,64,56)}E(U,M),U.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k($){return $<<5|$>>>27}function z($){return $<<30|$>>>2}function V($,T,N,W){return $===0?T&N|~T&W:$===2?T&N|T&W|N&W:T^N^W}U.prototype._update=function($){for(var T=this._w,N=this._a|0,W=this._b|0,D=this._c|0,I=this._d|0,v=this._e|0,x=0;x<16;++x)T[x]=$.readInt32BE(x*4);for(;x<80;++x)T[x]=T[x-3]^T[x-8]^T[x-14]^T[x-16];for(var A=0;A<80;++A){var y=~~(A/20),p=k(N)+V(y,W,D,I)+v+T[A]+S[y]|0;v=I,I=D,D=z(W),W=N,N=p}this._a=N+this._a|0,this._b=W+this._b|0,this._c=D+this._c|0,this._d=I+this._d|0,this._e=v+this._e|0},U.prototype._hash=function(){var $=j.allocUnsafe(20);return $.writeInt32BE(this._a|0,0),$.writeInt32BE(this._b|0,4),$.writeInt32BE(this._c|0,8),$.writeInt32BE(this._d|0,12),$.writeInt32BE(this._e|0,16),$},g.exports=U}),W7=F0((l,g)=>{var E=p0(),M=p5(),j=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],H=new Array(80);function U(){this.init(),this._w=H,M.call(this,64,56)}E(U,M),U.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k(T){return T<<1|T>>>31}function z(T){return T<<5|T>>>27}function V(T){return T<<30|T>>>2}function $(T,N,W,D){return T===0?N&W|~N&D:T===2?N&W|N&D|W&D:N^W^D}U.prototype._update=function(T){for(var N=this._w,W=this._a|0,D=this._b|0,I=this._c|0,v=this._d|0,x=this._e|0,A=0;A<16;++A)N[A]=T.readInt32BE(A*4);for(;A<80;++A)N[A]=k(N[A-3]^N[A-8]^N[A-14]^N[A-16]);for(var y=0;y<80;++y){var p=~~(y/20),c=z(W)+$(p,D,I,v)+x+N[y]+S[p]|0;x=v,v=I,I=V(D),D=W,W=c}this._a=W+this._a|0,this._b=D+this._b|0,this._c=I+this._c|0,this._d=v+this._d|0,this._e=x+this._e|0},U.prototype._hash=function(){var T=j.allocUnsafe(20);return T.writeInt32BE(this._a|0,0),T.writeInt32BE(this._b|0,4),T.writeInt32BE(this._c|0,8),T.writeInt32BE(this._d|0,12),T.writeInt32BE(this._e|0,16),T},g.exports=U}),r9=F0((l,g)=>{var E=p0(),M=p5(),j=d0().Buffer,S=[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],H=new Array(64);function U(){this.init(),this._w=H,M.call(this,64,56)}E(U,M),U.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 k(W,D,I){return I^W&(D^I)}function z(W,D,I){return W&D|I&(W|D)}function V(W){return(W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10)}function $(W){return(W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7)}function T(W){return(W>>>7|W<<25)^(W>>>18|W<<14)^W>>>3}function N(W){return(W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10}U.prototype._update=function(W){for(var D=this._w,I=this._a|0,v=this._b|0,x=this._c|0,A=this._d|0,y=this._e|0,p=this._f|0,c=this._g|0,n=this._h|0,i=0;i<16;++i)D[i]=W.readInt32BE(i*4);for(;i<64;++i)D[i]=N(D[i-2])+D[i-7]+T(D[i-15])+D[i-16]|0;for(var Y0=0;Y0<64;++Y0){var f=n+$(y)+k(y,p,c)+S[Y0]+D[Y0]|0,P0=V(I)+z(I,v,x)|0;n=c,c=p,p=y,y=A+f|0,A=x,x=v,v=I,I=f+P0|0}this._a=I+this._a|0,this._b=v+this._b|0,this._c=x+this._c|0,this._d=A+this._d|0,this._e=y+this._e|0,this._f=p+this._f|0,this._g=c+this._g|0,this._h=n+this._h|0},U.prototype._hash=function(){var W=j.allocUnsafe(32);return W.writeInt32BE(this._a,0),W.writeInt32BE(this._b,4),W.writeInt32BE(this._c,8),W.writeInt32BE(this._d,12),W.writeInt32BE(this._e,16),W.writeInt32BE(this._f,20),W.writeInt32BE(this._g,24),W.writeInt32BE(this._h,28),W},g.exports=U}),V7=F0((l,g)=>{var E=p0(),M=r9(),j=p5(),S=d0().Buffer,H=new Array(64);function U(){this.init(),this._w=H,j.call(this,64,56)}E(U,M),U.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},U.prototype._hash=function(){var k=S.allocUnsafe(28);return k.writeInt32BE(this._a,0),k.writeInt32BE(this._b,4),k.writeInt32BE(this._c,8),k.writeInt32BE(this._d,12),k.writeInt32BE(this._e,16),k.writeInt32BE(this._f,20),k.writeInt32BE(this._g,24),k},g.exports=U}),i9=F0((l,g)=>{var E=p0(),M=p5(),j=d0().Buffer,S=[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],H=new Array(160);function U(){this.init(),this._w=H,M.call(this,128,112)}E(U,M),U.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 k(v,x,A){return A^v&(x^A)}function z(v,x,A){return v&x|A&(v|x)}function V(v,x){return(v>>>28|x<<4)^(x>>>2|v<<30)^(x>>>7|v<<25)}function $(v,x){return(v>>>14|x<<18)^(v>>>18|x<<14)^(x>>>9|v<<23)}function T(v,x){return(v>>>1|x<<31)^(v>>>8|x<<24)^v>>>7}function N(v,x){return(v>>>1|x<<31)^(v>>>8|x<<24)^(v>>>7|x<<25)}function W(v,x){return(v>>>19|x<<13)^(x>>>29|v<<3)^v>>>6}function D(v,x){return(v>>>19|x<<13)^(x>>>29|v<<3)^(v>>>6|x<<26)}function I(v,x){return v>>>0<x>>>0?1:0}U.prototype._update=function(v){for(var x=this._w,A=this._ah|0,y=this._bh|0,p=this._ch|0,c=this._dh|0,n=this._eh|0,i=this._fh|0,Y0=this._gh|0,f=this._hh|0,P0=this._al|0,K=this._bl|0,C=this._cl|0,J=this._dl|0,Y=this._el|0,Q=this._fl|0,P=this._gl|0,Z=this._hl|0,F=0;F<32;F+=2)x[F]=v.readInt32BE(F*4),x[F+1]=v.readInt32BE(F*4+4);for(;F<160;F+=2){var X=x[F-30],G=x[F-30+1],R=T(X,G),L=N(G,X);X=x[F-4],G=x[F-4+1];var _=W(X,G),s=D(G,X),r=x[F-14],C0=x[F-14+1],u=x[F-32],d=x[F-32+1],a=L+C0|0,V0=R+r+I(a,L)|0;a=a+s|0,V0=V0+_+I(a,s)|0,a=a+d|0,V0=V0+u+I(a,d)|0,x[F]=V0,x[F+1]=a}for(var K0=0;K0<160;K0+=2){V0=x[K0],a=x[K0+1];var Q0=z(A,y,p),w=z(P0,K,C),q=V(A,P0),m=V(P0,A),e=$(n,Y),X0=$(Y,n),t=S[K0],_0=S[K0+1],H0=k(n,i,Y0),G0=k(Y,Q,P),w0=Z+X0|0,W0=f+e+I(w0,Z)|0;w0=w0+G0|0,W0=W0+H0+I(w0,G0)|0,w0=w0+_0|0,W0=W0+t+I(w0,_0)|0,w0=w0+a|0,W0=W0+V0+I(w0,a)|0;var Z0=m+w|0,c0=q+Q0+I(Z0,m)|0;f=Y0,Z=P,Y0=i,P=Q,i=n,Q=Y,Y=J+w0|0,n=c+W0+I(Y,J)|0,c=p,J=C,p=y,C=K,y=A,K=P0,P0=w0+Z0|0,A=W0+c0+I(P0,w0)|0}this._al=this._al+P0|0,this._bl=this._bl+K|0,this._cl=this._cl+C|0,this._dl=this._dl+J|0,this._el=this._el+Y|0,this._fl=this._fl+Q|0,this._gl=this._gl+P|0,this._hl=this._hl+Z|0,this._ah=this._ah+A+I(this._al,P0)|0,this._bh=this._bh+y+I(this._bl,K)|0,this._ch=this._ch+p+I(this._cl,C)|0,this._dh=this._dh+c+I(this._dl,J)|0,this._eh=this._eh+n+I(this._el,Y)|0,this._fh=this._fh+i+I(this._fl,Q)|0,this._gh=this._gh+Y0+I(this._gl,P)|0,this._hh=this._hh+f+I(this._hl,Z)|0},U.prototype._hash=function(){var v=j.allocUnsafe(64);function x(A,y,p){v.writeInt32BE(A,p),v.writeInt32BE(y,p+4)}return x(this._ah,this._al,0),x(this._bh,this._bl,8),x(this._ch,this._cl,16),x(this._dh,this._dl,24),x(this._eh,this._el,32),x(this._fh,this._fl,40),x(this._gh,this._gl,48),x(this._hh,this._hl,56),v},g.exports=U}),z7=F0((l,g)=>{var E=p0(),M=i9(),j=p5(),S=d0().Buffer,H=new Array(160);function U(){this.init(),this._w=H,j.call(this,128,112)}E(U,M),U.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},U.prototype._hash=function(){var k=S.allocUnsafe(48);function z(V,$,T){k.writeInt32BE(V,T),k.writeInt32BE($,T+4)}return z(this._ah,this._al,0),z(this._bh,this._bl,8),z(this._ch,this._cl,16),z(this._dh,this._dl,24),z(this._eh,this._el,32),z(this._fh,this._fl,40),k},g.exports=U}),V9=F0((E,g)=>{var E=g.exports=function(M){M=M.toLowerCase();var j=E[M];if(!j)throw new Error(M+" is not supported (we accept pull requests)");return new j};E.sha=U7(),E.sha1=W7(),E.sha224=V7(),E.sha256=r9(),E.sha384=z7(),E.sha512=i9()}),U5=F0((l,g)=>{g.exports={ArrayIsArray(E){return Array.isArray(E)},ArrayPrototypeIncludes(E,M){return E.includes(M)},ArrayPrototypeIndexOf(E,M){return E.indexOf(M)},ArrayPrototypeJoin(E,M){return E.join(M)},ArrayPrototypeMap(E,M){return E.map(M)},ArrayPrototypePop(E,M){return E.pop(M)},ArrayPrototypePush(E,M){return E.push(M)},ArrayPrototypeSlice(E,M,j){return E.slice(M,j)},Error,FunctionPrototypeCall(E,M,...j){return E.call(M,...j)},FunctionPrototypeSymbolHasInstance(E,M){return Function.prototype[Symbol.hasInstance].call(E,M)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(E,M){return Object.defineProperties(E,M)},ObjectDefineProperty(E,M,j){return Object.defineProperty(E,M,j)},ObjectGetOwnPropertyDescriptor(E,M){return Object.getOwnPropertyDescriptor(E,M)},ObjectKeys(E){return Object.keys(E)},ObjectSetPrototypeOf(E,M){return Object.setPrototypeOf(E,M)},Promise,PromisePrototypeCatch(E,M){return E.catch(M)},PromisePrototypeThen(E,M,j){return E.then(M,j)},PromiseReject(E){return Promise.reject(E)},ReflectApply:Reflect.apply,RegExpPrototypeTest(E,M){return E.test(M)},SafeSet:Set,String,StringPrototypeSlice(E,M,j){return E.slice(M,j)},StringPrototypeToLowerCase(E){return E.toLowerCase()},StringPrototypeToUpperCase(E){return E.toUpperCase()},StringPrototypeTrim(E){return E.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(E,M,j){return E.set(M,j)},Uint8Array}}),N5=F0((l,g)=>{var E=W5(),M=Object.getPrototypeOf(async function(){}).constructor,j=globalThis.Blob||E.Blob,S=typeof j<"u"?function(U){return U instanceof j}:function(U){return!1},H=class extends Error{constructor(U){if(!Array.isArray(U))throw new TypeError(`Expected input to be an Array, got ${typeof U}`);let k="";for(let z=0;z<U.length;z++)k+=` ${U[z].stack}
|
|
3
|
+
`;super(k),this.name="AggregateError",this.errors=U}};g.exports={AggregateError:H,kEmptyObject:Object.freeze({}),once(U){let k=!1;return function(...z){k||(k=!0,U.apply(this,z))}},createDeferredPromise:function(){let U,k;return{promise:new Promise((z,V)=>{U=z,k=V}),resolve:U,reject:k}},promisify(U){return new Promise((k,z)=>{U((V,...$)=>V?z(V):k(...$))})},debuglog(){return function(){}},format(U,...k){return U.replace(/%([sdifj])/g,function(...[z,V]){let $=k.shift();return V==="f"?$.toFixed(6):V==="j"?JSON.stringify($):V==="s"&&typeof $=="object"?`${$.constructor!==Object?$.constructor.name:""} {}`.trim():$.toString()})},inspect(U){switch(typeof U){case"string":if(U.includes("'"))if(U.includes('"')){if(!U.includes("`")&&!U.includes("${"))return`\`${U}\``}else return`"${U}"`;return`'${U}'`;case"number":return isNaN(U)?"NaN":Object.is(U,-0)?String(U):U;case"bigint":return`${String(U)}n`;case"boolean":case"undefined":return String(U);case"object":return"{}"}},types:{isAsyncFunction(U){return U instanceof M},isArrayBufferView(U){return ArrayBuffer.isView(U)}},isBlob:S},g.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),z9=F0((l,g)=>{var{AbortController:E,AbortSignal:M}=typeof self<"u"?self:typeof window<"u"?window:void 0;g.exports=E,g.exports.AbortSignal=M,g.exports.default=E}),V5=F0((l,g)=>{var{format:E,inspect:M,AggregateError:j}=N5(),S=globalThis.AggregateError||j,H=Symbol("kIsNodeError"),U=["string","function","number","object","Function","Object","boolean","bigint","symbol"],k=/^([A-Z][a-z0-9]*)+$/,z="__node_internal_",V={};function $(x,A){if(!x)throw new V.ERR_INTERNAL_ASSERTION(A)}function T(x){let A="",y=x.length,p=x[0]==="-"?1:0;for(;y>=p+4;y-=3)A=`_${x.slice(y-3,y)}${A}`;return`${x.slice(0,y)}${A}`}function N(x,A,y){if(typeof A=="function")return $(A.length<=y.length,`Code: ${x}; The provided arguments length (${y.length}) does not match the required ones (${A.length}).`),A(...y);let p=(A.match(/%[dfijoOs]/g)||[]).length;return $(p===y.length,`Code: ${x}; The provided arguments length (${y.length}) does not match the required ones (${p}).`),y.length===0?A:E(A,...y)}function W(x,A,y){y||(y=Error);class p extends y{constructor(...c){super(N(x,A,c))}toString(){return`${this.name} [${x}]: ${this.message}`}}Object.defineProperties(p.prototype,{name:{value:y.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${x}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),p.prototype.code=x,p.prototype[H]=!0,V[x]=p}function D(x){let A=z+x.name;return Object.defineProperty(x,"name",{value:A}),x}function I(x,A){if(x&&A&&x!==A){if(Array.isArray(A.errors))return A.errors.push(x),A;let y=new S([A,x],A.message);return y.code=A.code,y}return x||A}var v=class extends Error{constructor(x="The operation was aborted",A=void 0){if(A!==void 0&&typeof A!="object")throw new V.ERR_INVALID_ARG_TYPE("options","Object",A);super(x,A),this.code="ABORT_ERR",this.name="AbortError"}};W("ERR_ASSERTION","%s",Error),W("ERR_INVALID_ARG_TYPE",(x,A,y)=>{$(typeof x=="string","'name' must be a string"),Array.isArray(A)||(A=[A]);let p="The ";x.endsWith(" argument")?p+=`${x} `:p+=`"${x}" ${x.includes(".")?"property":"argument"} `,p+="must be ";let c=[],n=[],i=[];for(let f of A)$(typeof f=="string","All expected entries have to be of type string"),U.includes(f)?c.push(f.toLowerCase()):k.test(f)?n.push(f):($(f!=="object",'The value "object" should be written as "Object"'),i.push(f));if(n.length>0){let f=c.indexOf("object");f!==-1&&(c.splice(c,f,1),n.push("Object"))}if(c.length>0){switch(c.length){case 1:p+=`of type ${c[0]}`;break;case 2:p+=`one of type ${c[0]} or ${c[1]}`;break;default:{let f=c.pop();p+=`one of type ${c.join(", ")}, or ${f}`}}(n.length>0||i.length>0)&&(p+=" or ")}if(n.length>0){switch(n.length){case 1:p+=`an instance of ${n[0]}`;break;case 2:p+=`an instance of ${n[0]} or ${n[1]}`;break;default:{let f=n.pop();p+=`an instance of ${n.join(", ")}, or ${f}`}}i.length>0&&(p+=" or ")}switch(i.length){case 0:break;case 1:i[0].toLowerCase()!==i[0]&&(p+="an "),p+=`${i[0]}`;break;case 2:p+=`one of ${i[0]} or ${i[1]}`;break;default:{let f=i.pop();p+=`one of ${i.join(", ")}, or ${f}`}}if(y==null)p+=`. Received ${y}`;else if(typeof y=="function"&&y.name)p+=`. Received function ${y.name}`;else if(typeof y=="object"){var Y0;(Y0=y.constructor)!==null&&Y0!==void 0&&Y0.name?p+=`. Received an instance of ${y.constructor.name}`:p+=`. Received ${M(y,{depth:-1})}`}else{let f=M(y,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),p+=`. Received type ${typeof y} (${f})`}return p},TypeError),W("ERR_INVALID_ARG_VALUE",(x,A,y="is invalid")=>{let p=M(A);return p.length>128&&(p=p.slice(0,128)+"..."),`The ${x.includes(".")?"property":"argument"} '${x}' ${y}. Received ${p}`},TypeError),W("ERR_INVALID_RETURN_VALUE",(x,A,y)=>{var p;let c=y!=null&&(p=y.constructor)!==null&&p!==void 0&&p.name?`instance of ${y.constructor.name}`:`type ${typeof y}`;return`Expected ${x} to be returned from the "${A}" function but got ${c}.`},TypeError),W("ERR_MISSING_ARGS",(...x)=>{$(x.length>0,"At least one arg needs to be specified");let A,y=x.length;switch(x=(Array.isArray(x)?x:[x]).map((p)=>`"${p}"`).join(" or "),y){case 1:A+=`The ${x[0]} argument`;break;case 2:A+=`The ${x[0]} and ${x[1]} arguments`;break;default:{let p=x.pop();A+=`The ${x.join(", ")}, and ${p} arguments`}break}return`${A} must be specified`},TypeError),W("ERR_OUT_OF_RANGE",(x,A,y)=>{$(A,'Missing "range" argument');let p;return Number.isInteger(y)&&Math.abs(y)>4294967296?p=T(String(y)):typeof y=="bigint"?(p=String(y),(y>2n**32n||y<-(2n**32n))&&(p=T(p)),p+="n"):p=M(y),`The value of "${x}" is out of range. It must be ${A}. Received ${p}`},RangeError),W("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),W("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),W("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),W("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),W("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),W("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),W("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),W("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),W("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),W("ERR_STREAM_WRITE_AFTER_END","write after end",Error),W("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),g.exports={AbortError:v,aggregateTwoErrors:D(I),hideStackFrames:D,codes:V}}),e5=F0((l,g)=>{var{ArrayIsArray:E,ArrayPrototypeIncludes:M,ArrayPrototypeJoin:j,ArrayPrototypeMap:S,NumberIsInteger:H,NumberIsNaN:U,NumberMAX_SAFE_INTEGER:k,NumberMIN_SAFE_INTEGER:z,NumberParseInt:V,ObjectPrototypeHasOwnProperty:$,RegExpPrototypeExec:T,String:N,StringPrototypeToUpperCase:W,StringPrototypeTrim:D}=U5(),{hideStackFrames:I,codes:{ERR_SOCKET_BAD_PORT:v,ERR_INVALID_ARG_TYPE:x,ERR_INVALID_ARG_VALUE:A,ERR_OUT_OF_RANGE:y,ERR_UNKNOWN_SIGNAL:p}}=V5(),{normalizeEncoding:c}=N5(),{isAsyncFunction:n,isArrayBufferView:i}=N5().types,Y0={};function f(w){return w===(w|0)}function P0(w){return w===w>>>0}var K=/^[0-7]+$/,C="must be a 32-bit unsigned integer or an octal string";function J(w,q,m){if(typeof w>"u"&&(w=m),typeof w=="string"){if(T(K,w)===null)throw new A(q,w,C);w=V(w,8)}return P(w,q),w}var Y=I((w,q,m=z,e=k)=>{if(typeof w!="number")throw new x(q,"number",w);if(!H(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),Q=I((w,q,m=-2147483648,e=2147483647)=>{if(typeof w!="number")throw new x(q,"number",w);if(!H(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),P=I((w,q,m=!1)=>{if(typeof w!="number")throw new x(q,"number",w);if(!H(w))throw new y(q,"an integer",w);let e=m?1:0,X0=4294967295;if(w<e||w>X0)throw new y(q,`>= ${e} && <= ${X0}`,w)});function Z(w,q){if(typeof w!="string")throw new x(q,"string",w)}function F(w,q,m=void 0,e){if(typeof w!="number")throw new x(q,"number",w);if(m!=null&&w<m||e!=null&&w>e||(m!=null||e!=null)&&U(w))throw new y(q,`${m!=null?`>= ${m}`:""}${m!=null&&e!=null?" && ":""}${e!=null?`<= ${e}`:""}`,w)}var X=I((w,q,m)=>{if(!M(m,w)){let e=j(S(m,(t)=>typeof t=="string"?`'${t}'`:N(t)),", "),X0="must be one of: "+e;throw new A(q,w,X0)}});function G(w,q){if(typeof w!="boolean")throw new x(q,"boolean",w)}function R(w,q,m){return w==null||!$(w,q)?m:w[q]}var L=I((w,q,m=null)=>{let e=R(m,"allowArray",!1),X0=R(m,"allowFunction",!1);if(!R(m,"nullable",!1)&&w===null||!e&&E(w)||typeof w!="object"&&(!X0||typeof w!="function"))throw new x(q,"Object",w)}),_=I((w,q,m=0)=>{if(!E(w))throw new x(q,"Array",w);if(w.length<m){let e=`must be longer than ${m}`;throw new A(q,w,e)}});function s(w,q="signal"){if(Z(w,q),Y0[w]===void 0)throw Y0[W(w)]!==void 0?new p(w+" (signals must use all capital letters)"):new p(w)}var r=I((w,q="buffer")=>{if(!i(w))throw new x(q,["Buffer","TypedArray","DataView"],w)});function C0(w,q){let m=c(q),e=w.length;if(m==="hex"&&e%2!==0)throw new A("encoding",q,`is invalid for data of length ${e}`)}function u(w,q="Port",m=!0){if(typeof w!="number"&&typeof w!="string"||typeof w=="string"&&D(w).length===0||+w!==+w>>>0||w>65535||w===0&&!m)throw new v(q,w,m);return w|0}var d=I((w,q)=>{if(w!==void 0&&(w===null||typeof w!="object"||!("aborted"in w)))throw new x(q,"AbortSignal",w)}),a=I((w,q)=>{if(typeof w!="function")throw new x(q,"Function",w)}),V0=I((w,q)=>{if(typeof w!="function"||n(w))throw new x(q,"Function",w)}),K0=I((w,q)=>{if(w!==void 0)throw new x(q,"undefined",w)});function Q0(w,q,m){if(!M(m,w))throw new x(q,`('${j(m,"|")}')`,w)}g.exports={isInt32:f,isUint32:P0,parseFileMode:J,validateArray:_,validateBoolean:G,validateBuffer:r,validateEncoding:C0,validateFunction:a,validateInt32:Q,validateInteger:Y,validateNumber:F,validateObject:L,validateOneOf:X,validatePlainFunction:V0,validatePort:u,validateSignalName:s,validateString:Z,validateUint32:P,validateUndefined:K0,validateUnion:Q0,validateAbortSignal:d}}),b9=F0((l,g)=>{var E=g.exports={},M,j;function S(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?M=setTimeout:M=S}catch{M=S}try{typeof clearTimeout=="function"?j=clearTimeout:j=H}catch{j=H}})();function U(v){if(M===setTimeout)return setTimeout(v,0);if((M===S||!M)&&setTimeout)return M=setTimeout,setTimeout(v,0);try{return M(v,0)}catch{try{return M.call(null,v,0)}catch{return M.call(this,v,0)}}}function k(v){if(j===clearTimeout)return clearTimeout(v);if((j===H||!j)&&clearTimeout)return j=clearTimeout,clearTimeout(v);try{return j(v)}catch{try{return j.call(null,v)}catch{return j.call(this,v)}}}var z=[],V=!1,$,T=-1;function N(){!V||!$||(V=!1,$.length?z=$.concat(z):T=-1,z.length&&W())}function W(){if(!V){var v=U(N);V=!0;for(var x=z.length;x;){for($=z,z=[];++T<x;)$&&$[T].run();T=-1,x=z.length}$=null,V=!1,k(v)}}E.nextTick=function(v){var x=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)x[A-1]=arguments[A];z.push(new D(v,x)),z.length===1&&!V&&U(W)};function D(v,x){this.fun=v,this.array=x}D.prototype.run=function(){this.fun.apply(null,this.array)},E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function I(){}E.on=I,E.addListener=I,E.once=I,E.off=I,E.removeListener=I,E.removeAllListeners=I,E.emit=I,E.prependListener=I,E.prependOnceListener=I,E.listeners=function(v){return[]},E.binding=function(v){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(v){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}}),k5={};i5(k5,{default:()=>t9});var t9,x5=P9(()=>{Z9(k5,E5(b9())),t9=E5(b9())}),A5=F0((l,g)=>{var{Symbol:E,SymbolAsyncIterator:M,SymbolIterator:j}=U5(),S=E("kDestroyed"),H=E("kIsErrored"),U=E("kIsReadable"),k=E("kIsDisturbed");function z(Y,Q=!1){var P;return!!(Y&&typeof Y.pipe=="function"&&typeof Y.on=="function"&&(!Q||typeof Y.pause=="function"&&typeof Y.resume=="function")&&(!Y._writableState||((P=Y._readableState)===null||P===void 0?void 0:P.readable)!==!1)&&(!Y._writableState||Y._readableState))}function V(Y){var Q;return!!(Y&&typeof Y.write=="function"&&typeof Y.on=="function"&&(!Y._readableState||((Q=Y._writableState)===null||Q===void 0?void 0:Q.writable)!==!1))}function $(Y){return!!(Y&&typeof Y.pipe=="function"&&Y._readableState&&typeof Y.on=="function"&&typeof Y.write=="function")}function T(Y){return Y&&(Y._readableState||Y._writableState||typeof Y.write=="function"&&typeof Y.on=="function"||typeof Y.pipe=="function"&&typeof Y.on=="function")}function N(Y,Q){return Y==null?!1:Q===!0?typeof Y[M]=="function":Q===!1?typeof Y[j]=="function":typeof Y[M]=="function"||typeof Y[j]=="function"}function W(Y){if(!T(Y))return null;let{_writableState:Q,_readableState:P}=Y,Z=Q||P;return!!(Y.destroyed||Y[S]||Z!=null&&Z.destroyed)}function D(Y){if(!V(Y))return null;if(Y.writableEnded===!0)return!0;let Q=Y._writableState;return Q!=null&&Q.errored?!1:typeof Q?.ended!="boolean"?null:Q.ended}function I(Y,Q){if(!V(Y))return null;if(Y.writableFinished===!0)return!0;let P=Y._writableState;return P!=null&&P.errored?!1:typeof P?.finished!="boolean"?null:!!(P.finished||Q===!1&&P.ended===!0&&P.length===0)}function v(Y){if(!z(Y))return null;if(Y.readableEnded===!0)return!0;let Q=Y._readableState;return!Q||Q.errored?!1:typeof Q?.ended!="boolean"?null:Q.ended}function x(Y,Q){if(!z(Y))return null;let P=Y._readableState;return P!=null&&P.errored?!1:typeof P?.endEmitted!="boolean"?null:!!(P.endEmitted||Q===!1&&P.ended===!0&&P.length===0)}function A(Y){return Y&&Y[U]!=null?Y[U]:typeof Y?.readable!="boolean"?null:W(Y)?!1:z(Y)&&Y.readable&&!x(Y)}function y(Y){return typeof Y?.writable!="boolean"?null:W(Y)?!1:V(Y)&&Y.writable&&!D(Y)}function p(Y,Q){return T(Y)?W(Y)?!0:!(Q?.readable!==!1&&A(Y)||Q?.writable!==!1&&y(Y)):null}function c(Y){var Q,P;return T(Y)?Y.writableErrored?Y.writableErrored:(Q=(P=Y._writableState)===null||P===void 0?void 0:P.errored)!==null&&Q!==void 0?Q:null:null}function n(Y){var Q,P;return T(Y)?Y.readableErrored?Y.readableErrored:(Q=(P=Y._readableState)===null||P===void 0?void 0:P.errored)!==null&&Q!==void 0?Q:null:null}function i(Y){if(!T(Y))return null;if(typeof Y.closed=="boolean")return Y.closed;let{_writableState:Q,_readableState:P}=Y;return typeof Q?.closed=="boolean"||typeof P?.closed=="boolean"?Q?.closed||P?.closed:typeof Y._closed=="boolean"&&Y0(Y)?Y._closed:null}function Y0(Y){return typeof Y._closed=="boolean"&&typeof Y._defaultKeepAlive=="boolean"&&typeof Y._removedConnection=="boolean"&&typeof Y._removedContLen=="boolean"}function f(Y){return typeof Y._sent100=="boolean"&&Y0(Y)}function P0(Y){var Q;return typeof Y._consuming=="boolean"&&typeof Y._dumped=="boolean"&&((Q=Y.req)===null||Q===void 0?void 0:Q.upgradeOrConnect)===void 0}function K(Y){if(!T(Y))return null;let{_writableState:Q,_readableState:P}=Y,Z=Q||P;return!Z&&f(Y)||!!(Z&&Z.autoDestroy&&Z.emitClose&&Z.closed===!1)}function C(Y){var Q;return!!(Y&&((Q=Y[k])!==null&&Q!==void 0?Q:Y.readableDidRead||Y.readableAborted))}function J(Y){var Q,P,Z,F,X,G,R,L,_,s;return!!(Y&&((Q=(P=(Z=(F=(X=(G=Y[H])!==null&&G!==void 0?G:Y.readableErrored)!==null&&X!==void 0?X:Y.writableErrored)!==null&&F!==void 0?F:(R=Y._readableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&Z!==void 0?Z:(L=Y._writableState)===null||L===void 0?void 0:L.errorEmitted)!==null&&P!==void 0?P:(_=Y._readableState)===null||_===void 0?void 0:_.errored)!==null&&Q!==void 0?Q:(s=Y._writableState)===null||s===void 0?void 0:s.errored))}g.exports={kDestroyed:S,isDisturbed:C,kIsDisturbed:k,isErrored:J,kIsErrored:H,isReadable:A,kIsReadable:U,isClosed:i,isDestroyed:W,isDuplexNodeStream:$,isFinished:p,isIterable:N,isReadableNodeStream:z,isReadableEnded:v,isReadableFinished:x,isReadableErrored:n,isNodeStream:T,isWritable:y,isWritableNodeStream:V,isWritableEnded:D,isWritableFinished:I,isWritableErrored:c,isServerRequest:P0,isServerResponse:f,willEmitClose:K}}),v5=F0((l,g)=>{var E=(x5(),z5(k5)),{AbortError:M,codes:j}=V5(),{ERR_INVALID_ARG_TYPE:S,ERR_STREAM_PREMATURE_CLOSE:H}=j,{kEmptyObject:U,once:k}=N5(),{validateAbortSignal:z,validateFunction:V,validateObject:$}=e5(),{Promise:T}=U5(),{isClosed:N,isReadable:W,isReadableNodeStream:D,isReadableFinished:I,isReadableErrored:v,isWritable:x,isWritableNodeStream:A,isWritableFinished:y,isWritableErrored:p,isNodeStream:c,willEmitClose:n}=A5();function i(K){return K.setHeader&&typeof K.abort=="function"}var Y0=()=>{};function f(K,C,J){var Y,Q;arguments.length===2?(J=C,C=U):C==null?C=U:$(C,"options"),V(J,"callback"),z(C.signal,"options.signal"),J=k(J);let P=(Y=C.readable)!==null&&Y!==void 0?Y:D(K),Z=(Q=C.writable)!==null&&Q!==void 0?Q:A(K);if(!c(K))throw new S("stream","Stream",K);let{_writableState:F,_readableState:X}=K,G=()=>{K.writable||_()},R=n(K)&&D(K)===P&&A(K)===Z,L=y(K,!1),_=()=>{L=!0,K.destroyed&&(R=!1),!(R&&(!K.readable||P))&&(!P||s)&&J.call(K)},s=I(K,!1),r=()=>{s=!0,K.destroyed&&(R=!1),!(R&&(!K.writable||Z))&&(!Z||L)&&J.call(K)},C0=(K0)=>{J.call(K,K0)},u=N(K),d=()=>{u=!0;let K0=p(K)||v(K);if(K0&&typeof K0!="boolean")return J.call(K,K0);if(P&&!s&&D(K,!0)&&!I(K,!1))return J.call(K,new H);if(Z&&!L&&!y(K,!1))return J.call(K,new H);J.call(K)},a=()=>{K.req.on("finish",_)};i(K)?(K.on("complete",_),R||K.on("abort",d),K.req?a():K.on("request",a)):Z&&!F&&(K.on("end",G),K.on("close",G)),!R&&typeof K.aborted=="boolean"&&K.on("aborted",d),K.on("end",r),K.on("finish",_),C.error!==!1&&K.on("error",C0),K.on("close",d),u?E.nextTick(d):F!=null&&F.errorEmitted||X!=null&&X.errorEmitted?R||E.nextTick(d):(!P&&(!R||W(K))&&(L||x(K)===!1)||!Z&&(!R||x(K))&&(s||W(K)===!1)||X&&K.req&&K.aborted)&&E.nextTick(d);let V0=()=>{J=Y0,K.removeListener("aborted",d),K.removeListener("complete",_),K.removeListener("abort",d),K.removeListener("request",a),K.req&&K.req.removeListener("finish",_),K.removeListener("end",G),K.removeListener("close",G),K.removeListener("finish",_),K.removeListener("end",r),K.removeListener("error",C0),K.removeListener("close",d)};if(C.signal&&!u){let K0=()=>{let Q0=J;V0(),Q0.call(K,new M(void 0,{cause:C.signal.reason}))};if(C.signal.aborted)E.nextTick(K0);else{let Q0=J;J=k((...w)=>{C.signal.removeEventListener("abort",K0),Q0.apply(K,w)}),C.signal.addEventListener("abort",K0)}}return V0}function P0(K,C){return new T((J,Y)=>{f(K,C,(Q)=>{Q?Y(Q):J()})})}g.exports=f,g.exports.finished=P0}),O7=F0((l,g)=>{var E=globalThis.AbortController||z9().AbortController,{codes:{ERR_INVALID_ARG_TYPE:M,ERR_MISSING_ARGS:j,ERR_OUT_OF_RANGE:S},AbortError:H}=V5(),{validateAbortSignal:U,validateInteger:k,validateObject:z}=e5(),V=U5().Symbol("kWeak"),{finished:$}=v5(),{ArrayPrototypePush:T,MathFloor:N,Number:W,NumberIsNaN:D,Promise:I,PromiseReject:v,PromisePrototypeThen:x,Symbol:A}=U5(),y=A("kEmpty"),p=A("kEof");function c(X,G){if(typeof X!="function")throw new M("fn",["Function","AsyncFunction"],X);G!=null&&z(G,"options"),G?.signal!=null&&U(G.signal,"options.signal");let R=1;return G?.concurrency!=null&&(R=N(G.concurrency)),k(R,"concurrency",1),async function*(){var L,_;let s=new E,r=this,C0=[],u=s.signal,d={signal:u},a=()=>s.abort();G!=null&&(L=G.signal)!==null&&L!==void 0&&L.aborted&&a(),G==null||(_=G.signal)===null||_===void 0||_.addEventListener("abort",a);let V0,K0,Q0=!1;function w(){Q0=!0}async function q(){try{for await(let X0 of r){var m;if(Q0)return;if(u.aborted)throw new H;try{X0=X(X0,d)}catch(t){X0=v(t)}X0!==y&&(typeof((m=X0)===null||m===void 0?void 0:m.catch)=="function"&&X0.catch(w),C0.push(X0),V0&&(V0(),V0=null),!Q0&&C0.length&&C0.length>=R&&await new I((t)=>{K0=t}))}C0.push(p)}catch(X0){let t=v(X0);x(t,void 0,w),C0.push(t)}finally{var e;Q0=!0,V0&&(V0(),V0=null),G==null||(e=G.signal)===null||e===void 0||e.removeEventListener("abort",a)}}q();try{for(;;){for(;C0.length>0;){let m=await C0[0];if(m===p)return;if(u.aborted)throw new H;m!==y&&(yield m),C0.shift(),K0&&(K0(),K0=null)}await new I((m)=>{V0=m})}}finally{s.abort(),Q0=!0,K0&&(K0(),K0=null)}}.call(this)}function n(X=void 0){return X!=null&&z(X,"options"),X?.signal!=null&&U(X.signal,"options.signal"),async function*(){let G=0;for await(let L of this){var R;if(X!=null&&(R=X.signal)!==null&&R!==void 0&&R.aborted)throw new H({cause:X.signal.reason});yield[G++,L]}}.call(this)}async function i(X,G=void 0){for await(let R of K.call(this,X,G))return!0;return!1}async function Y0(X,G=void 0){if(typeof X!="function")throw new M("fn",["Function","AsyncFunction"],X);return!await i.call(this,async(...R)=>!await X(...R),G)}async function f(X,G){for await(let R of K.call(this,X,G))return R}async function P0(X,G){if(typeof X!="function")throw new M("fn",["Function","AsyncFunction"],X);async function R(L,_){return await X(L,_),y}for await(let L of c.call(this,R,G));}function K(X,G){if(typeof X!="function")throw new M("fn",["Function","AsyncFunction"],X);async function R(L,_){return await X(L,_)?L:y}return c.call(this,R,G)}var C=class extends j{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function J(X,G,R){var L;if(typeof X!="function")throw new M("reducer",["Function","AsyncFunction"],X);R!=null&&z(R,"options"),R?.signal!=null&&U(R.signal,"options.signal");let _=arguments.length>1;if(R!=null&&(L=R.signal)!==null&&L!==void 0&&L.aborted){let d=new H(void 0,{cause:R.signal.reason});throw this.once("error",()=>{}),await $(this.destroy(d)),d}let s=new E,r=s.signal;if(R!=null&&R.signal){let d={once:!0,[V]:this};R.signal.addEventListener("abort",()=>s.abort(),d)}let C0=!1;try{for await(let d of this){var u;if(C0=!0,R!=null&&(u=R.signal)!==null&&u!==void 0&&u.aborted)throw new H;_?G=await X(G,d,{signal:r}):(G=d,_=!0)}if(!C0&&!_)throw new C}finally{s.abort()}return G}async function Y(X){X!=null&&z(X,"options"),X?.signal!=null&&U(X.signal,"options.signal");let G=[];for await(let L of this){var R;if(X!=null&&(R=X.signal)!==null&&R!==void 0&&R.aborted)throw new H(void 0,{cause:X.signal.reason});T(G,L)}return G}function Q(X,G){let R=c.call(this,X,G);return async function*(){for await(let L of R)yield*L}.call(this)}function P(X){if(X=W(X),D(X))return 0;if(X<0)throw new S("number",">= 0",X);return X}function Z(X,G=void 0){return G!=null&&z(G,"options"),G?.signal!=null&&U(G.signal,"options.signal"),X=P(X),async function*(){var R;if(G!=null&&(R=G.signal)!==null&&R!==void 0&&R.aborted)throw new H;for await(let _ of this){var L;if(G!=null&&(L=G.signal)!==null&&L!==void 0&&L.aborted)throw new H;X--<=0&&(yield _)}}.call(this)}function F(X,G=void 0){return G!=null&&z(G,"options"),G?.signal!=null&&U(G.signal,"options.signal"),X=P(X),async function*(){var R;if(G!=null&&(R=G.signal)!==null&&R!==void 0&&R.aborted)throw new H;for await(let _ of this){var L;if(G!=null&&(L=G.signal)!==null&&L!==void 0&&L.aborted)throw new H;if(X-- >0)yield _;else return}}.call(this)}g.exports.streamReturningOperators={asIndexedPairs:n,drop:Z,filter:K,flatMap:Q,map:c,take:F},g.exports.promiseReturningOperators={every:Y0,forEach:P0,reduce:J,toArray:Y,some:i,find:f}}),b5=F0((l,g)=>{var E=(x5(),z5(k5)),{aggregateTwoErrors:M,codes:{ERR_MULTIPLE_CALLBACK:j},AbortError:S}=V5(),{Symbol:H}=U5(),{kDestroyed:U,isDestroyed:k,isFinished:z,isServerRequest:V}=A5(),$=H("kDestroy"),T=H("kConstruct");function N(K,C,J){K&&(K.stack,C&&!C.errored&&(C.errored=K),J&&!J.errored&&(J.errored=K))}function W(K,C){let J=this._readableState,Y=this._writableState,Q=Y||J;return Y&&Y.destroyed||J&&J.destroyed?(typeof C=="function"&&C(),this):(N(K,Y,J),Y&&(Y.destroyed=!0),J&&(J.destroyed=!0),Q.constructed?D(this,K,C):this.once($,function(P){D(this,M(P,K),C)}),this)}function D(K,C,J){let Y=!1;function Q(P){if(Y)return;Y=!0;let{_readableState:Z,_writableState:F}=K;N(P,F,Z),F&&(F.closed=!0),Z&&(Z.closed=!0),typeof J=="function"&&J(P),P?E.nextTick(I,K,P):E.nextTick(v,K)}try{K._destroy(C||null,Q)}catch(P){Q(P)}}function I(K,C){x(K,C),v(K)}function v(K){let{_readableState:C,_writableState:J}=K;J&&(J.closeEmitted=!0),C&&(C.closeEmitted=!0),(J&&J.emitClose||C&&C.emitClose)&&K.emit("close")}function x(K,C){let{_readableState:J,_writableState:Y}=K;Y&&Y.errorEmitted||J&&J.errorEmitted||(Y&&(Y.errorEmitted=!0),J&&(J.errorEmitted=!0),K.emit("error",C))}function A(){let K=this._readableState,C=this._writableState;K&&(K.constructed=!0,K.closed=!1,K.closeEmitted=!1,K.destroyed=!1,K.errored=null,K.errorEmitted=!1,K.reading=!1,K.ended=K.readable===!1,K.endEmitted=K.readable===!1),C&&(C.constructed=!0,C.destroyed=!1,C.closed=!1,C.closeEmitted=!1,C.errored=null,C.errorEmitted=!1,C.finalCalled=!1,C.prefinished=!1,C.ended=C.writable===!1,C.ending=C.writable===!1,C.finished=C.writable===!1)}function y(K,C,J){let{_readableState:Y,_writableState:Q}=K;if(Q&&Q.destroyed||Y&&Y.destroyed)return this;Y&&Y.autoDestroy||Q&&Q.autoDestroy?K.destroy(C):C&&(C.stack,Q&&!Q.errored&&(Q.errored=C),Y&&!Y.errored&&(Y.errored=C),J?E.nextTick(x,K,C):x(K,C))}function p(K,C){if(typeof K._construct!="function")return;let{_readableState:J,_writableState:Y}=K;J&&(J.constructed=!1),Y&&(Y.constructed=!1),K.once(T,C),!(K.listenerCount(T)>1)&&E.nextTick(c,K)}function c(K){let C=!1;function J(Y){if(C){y(K,Y??new j);return}C=!0;let{_readableState:Q,_writableState:P}=K,Z=P||Q;Q&&(Q.constructed=!0),P&&(P.constructed=!0),Z.destroyed?K.emit($,Y):Y?y(K,Y,!0):E.nextTick(n,K)}try{K._construct(J)}catch(Y){J(Y)}}function n(K){K.emit(T)}function i(K){return K&&K.setHeader&&typeof K.abort=="function"}function Y0(K){K.emit("close")}function f(K,C){K.emit("error",C),E.nextTick(Y0,K)}function P0(K,C){!K||k(K)||(!C&&!z(K)&&(C=new S),V(K)?(K.socket=null,K.destroy(C)):i(K)?K.abort():i(K.req)?K.req.abort():typeof K.destroy=="function"?K.destroy(C):typeof K.close=="function"?K.close():C?E.nextTick(f,K,C):E.nextTick(Y0,K),K.destroyed||(K[U]=!0))}g.exports={construct:p,destroyer:P0,destroy:W,undestroy:A,errorOrDestroy:y}}),O9=F0((l,g)=>{var{ArrayIsArray:E,ObjectSetPrototypeOf:M}=U5(),{EventEmitter:j}=S5();function S(U){j.call(this,U)}M(S.prototype,j.prototype),M(S,j),S.prototype.pipe=function(U,k){let z=this;function V(v){U.writable&&U.write(v)===!1&&z.pause&&z.pause()}z.on("data",V);function $(){z.readable&&z.resume&&z.resume()}U.on("drain",$),!U._isStdio&&(!k||k.end!==!1)&&(z.on("end",N),z.on("close",W));let T=!1;function N(){T||(T=!0,U.end())}function W(){T||(T=!0,typeof U.destroy=="function"&&U.destroy())}function D(v){I(),j.listenerCount(this,"error")===0&&this.emit("error",v)}H(z,"error",D),H(U,"error",D);function I(){z.removeListener("data",V),U.removeListener("drain",$),z.removeListener("end",N),z.removeListener("close",W),z.removeListener("error",D),U.removeListener("error",D),z.removeListener("end",I),z.removeListener("close",I),U.removeListener("close",I)}return z.on("end",I),z.on("close",I),U.on("close",I),U.emit("pipe",z),U};function H(U,k,z){if(typeof U.prependListener=="function")return U.prependListener(k,z);!U._events||!U._events[k]?U.on(k,z):E(U._events[k])?U._events[k].unshift(z):U._events[k]=[z,U._events[k]]}g.exports={Stream:S,prependListener:H}}),T9=F0((l,g)=>{var{AbortError:E,codes:M}=V5(),j=v5(),{ERR_INVALID_ARG_TYPE:S}=M,H=(k,z)=>{if(typeof k!="object"||!("aborted"in k))throw new S(z,"AbortSignal",k)};function U(k){return!!(k&&typeof k.pipe=="function")}g.exports.addAbortSignal=function(k,z){if(H(k,"signal"),!U(z))throw new S("stream","stream.Stream",z);return g.exports.addAbortSignalNoValidate(k,z)},g.exports.addAbortSignalNoValidate=function(k,z){if(typeof k!="object"||!("aborted"in k))return z;let V=()=>{z.destroy(new E(void 0,{cause:k.reason}))};return k.aborted?V():(k.addEventListener("abort",V),j(z,()=>k.removeEventListener("abort",V))),z}}),T7=F0((l,g)=>{var{StringPrototypeSlice:E,SymbolIterator:M,TypedArrayPrototypeSet:j,Uint8Array:S}=U5(),{Buffer:H}=W5(),{inspect:U}=N5();g.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(k){let z={data:k,next:null};this.length>0?this.tail.next=z:this.head=z,this.tail=z,++this.length}unshift(k){let z={data:k,next:this.head};this.length===0&&(this.tail=z),this.head=z,++this.length}shift(){if(this.length===0)return;let k=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,k}clear(){this.head=this.tail=null,this.length=0}join(k){if(this.length===0)return"";let z=this.head,V=""+z.data;for(;(z=z.next)!==null;)V+=k+z.data;return V}concat(k){if(this.length===0)return H.alloc(0);let z=H.allocUnsafe(k>>>0),V=this.head,$=0;for(;V;)j(z,V.data,$),$+=V.data.length,V=V.next;return z}consume(k,z){let V=this.head.data;if(k<V.length){let $=V.slice(0,k);return this.head.data=V.slice(k),$}return k===V.length?this.shift():z?this._getString(k):this._getBuffer(k)}first(){return this.head.data}*[M](){for(let k=this.head;k;k=k.next)yield k.data}_getString(k){let z="",V=this.head,$=0;do{let T=V.data;if(k>T.length)z+=T,k-=T.length;else{k===T.length?(z+=T,++$,V.next?this.head=V.next:this.head=this.tail=null):(z+=E(T,0,k),this.head=V,V.data=E(T,k));break}++$}while((V=V.next)!==null);return this.length-=$,z}_getBuffer(k){let z=H.allocUnsafe(k),V=k,$=this.head,T=0;do{let N=$.data;if(k>N.length)j(z,N,V-k),k-=N.length;else{k===N.length?(j(z,N,V-k),++T,$.next?this.head=$.next:this.head=this.tail=null):(j(z,new S(N.buffer,N.byteOffset,k),V-k),this.head=$,$.data=N.slice(k));break}++T}while(($=$.next)!==null);return this.length-=T,z}[Symbol.for("nodejs.util.inspect.custom")](k,z){return U(this,{...z,depth:0,customInspect:!1})}}}),D9=F0((l,g)=>{var{MathFloor:E,NumberIsInteger:M}=U5(),{ERR_INVALID_ARG_VALUE:j}=V5().codes;function S(k,z,V){return k.highWaterMark!=null?k.highWaterMark:z?k[V]:null}function H(k){return k?16:16384}function U(k,z,V,$){let T=S(z,$,V);if(T!=null){if(!M(T)||T<0){let N=$?`options.${V}`:"options.highWaterMark";throw new j(N,T)}return E(T)}return H(k.objectMode)}g.exports={getHighWaterMark:U,getDefaultHighWaterMark:H}}),e9=F0((l,g)=>{var E=(x5(),z5(k5)),{PromisePrototypeThen:M,SymbolAsyncIterator:j,SymbolIterator:S}=U5(),{Buffer:H}=W5(),{ERR_INVALID_ARG_TYPE:U,ERR_STREAM_NULL_VALUES:k}=V5().codes;function z(V,$,T){let N;if(typeof $=="string"||$ instanceof H)return new V({objectMode:!0,...T,read(){this.push($),this.push(null)}});let W;if($&&$[j])W=!0,N=$[j]();else if($&&$[S])W=!1,N=$[S]();else throw new U("iterable",["Iterable"],$);let D=new V({objectMode:!0,highWaterMark:1,...T}),I=!1;D._read=function(){I||(I=!0,x())},D._destroy=function(A,y){M(v(A),()=>E.nextTick(y,A),(p)=>E.nextTick(y,p||A))};async function v(A){let y=A!=null,p=typeof N.throw=="function";if(y&&p){let{value:c,done:n}=await N.throw(A);if(await c,n)return}if(typeof N.return=="function"){let{value:c}=await N.return();await c}}async function x(){for(;;){try{let{value:A,done:y}=W?await N.next():N.next();if(y)D.push(null);else{let p=A&&typeof A.then=="function"?await A:A;if(p===null)throw I=!1,new k;if(D.push(p))continue;I=!1}}catch(A){D.destroy(A)}break}}return D}g.exports=z}),K9=F0((l,g)=>{var E=(x5(),z5(k5)),{ArrayPrototypeIndexOf:M,NumberIsInteger:j,NumberIsNaN:S,NumberParseInt:H,ObjectDefineProperties:U,ObjectKeys:k,ObjectSetPrototypeOf:z,Promise:V,SafeSet:$,SymbolAsyncIterator:T,Symbol:N}=U5();g.exports=R,R.ReadableState=G;var{EventEmitter:W}=S5(),{Stream:D,prependListener:I}=O9(),{Buffer:v}=W5(),{addAbortSignal:x}=T9(),A=v5(),y=N5().debuglog("stream",(O)=>{y=O}),p=T7(),c=b5(),{getHighWaterMark:n,getDefaultHighWaterMark:i}=D9(),{aggregateTwoErrors:Y0,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:P0,ERR_OUT_OF_RANGE:K,ERR_STREAM_PUSH_AFTER_EOF:C,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:J}}=V5(),{validateObject:Y}=e5(),Q=N("kPaused"),{StringDecoder:P}=$9(),Z=e9();z(R.prototype,D.prototype),z(R,D);var F=()=>{},{errorOrDestroy:X}=c;function G(O,B,b){typeof b!="boolean"&&(b=B instanceof L5()),this.objectMode=!!(O&&O.objectMode),b&&(this.objectMode=this.objectMode||!!(O&&O.readableObjectMode)),this.highWaterMark=O?n(this,O,"readableHighWaterMark",b):i(!1),this.buffer=new p,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[Q]=null,this.errorEmitted=!1,this.emitClose=!O||O.emitClose!==!1,this.autoDestroy=!O||O.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=O&&O.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,O&&O.encoding&&(this.decoder=new P(O.encoding),this.encoding=O.encoding)}function R(O){if(!(this instanceof R))return new R(O);let B=this instanceof L5();this._readableState=new G(O,this,B),O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.construct=="function"&&(this._construct=O.construct),O.signal&&!B&&x(O.signal,this)),D.call(this,O),c.construct(this,()=>{this._readableState.needReadable&&V0(this,this._readableState)})}R.prototype.destroy=c.destroy,R.prototype._undestroy=c.undestroy,R.prototype._destroy=function(O,B){B(O)},R.prototype[W.captureRejectionSymbol]=function(O){this.destroy(O)},R.prototype.push=function(O,B){return L(this,O,B,!1)},R.prototype.unshift=function(O,B){return L(this,O,B,!0)};function L(O,B,b,h){y("readableAddChunk",B);let o=O._readableState,z0;if(o.objectMode||(typeof B=="string"?(b=b||o.defaultEncoding,o.encoding!==b&&(h&&o.encoding?B=v.from(B,b).toString(o.encoding):(B=v.from(B,b),b=""))):B instanceof v?b="":D._isUint8Array(B)?(B=D._uint8ArrayToBuffer(B),b=""):B!=null&&(z0=new f("chunk",["string","Buffer","Uint8Array"],B))),z0)X(O,z0);else if(B===null)o.reading=!1,u(O,o);else if(o.objectMode||B&&B.length>0)if(h)if(o.endEmitted)X(O,new J);else{if(o.destroyed||o.errored)return!1;_(O,o,B,!0)}else if(o.ended)X(O,new C);else{if(o.destroyed||o.errored)return!1;o.reading=!1,o.decoder&&!b?(B=o.decoder.write(B),o.objectMode||B.length!==0?_(O,o,B,!1):V0(O,o)):_(O,o,B,!1)}else h||(o.reading=!1,V0(O,o));return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function _(O,B,b,h){B.flowing&&B.length===0&&!B.sync&&O.listenerCount("data")>0?(B.multiAwaitDrain?B.awaitDrainWriters.clear():B.awaitDrainWriters=null,B.dataEmitted=!0,O.emit("data",b)):(B.length+=B.objectMode?1:b.length,h?B.buffer.unshift(b):B.buffer.push(b),B.needReadable&&d(O)),V0(O,B)}R.prototype.isPaused=function(){let O=this._readableState;return O[Q]===!0||O.flowing===!1},R.prototype.setEncoding=function(O){let B=new P(O);this._readableState.decoder=B,this._readableState.encoding=this._readableState.decoder.encoding;let b=this._readableState.buffer,h="";for(let o of b)h+=B.write(o);return b.clear(),h!==""&&b.push(h),this._readableState.length=h.length,this};var s=1073741824;function r(O){if(O>s)throw new K("size","<= 1GiB",O);return O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++,O}function C0(O,B){return O<=0||B.length===0&&B.ended?0:B.objectMode?1:S(O)?B.flowing&&B.length?B.buffer.first().length:B.length:O<=B.length?O:B.ended?B.length:0}R.prototype.read=function(O){y("read",O),O===void 0?O=NaN:j(O)||(O=H(O,10));let B=this._readableState,b=O;if(O>B.highWaterMark&&(B.highWaterMark=r(O)),O!==0&&(B.emittedReadable=!1),O===0&&B.needReadable&&((B.highWaterMark!==0?B.length>=B.highWaterMark:B.length>0)||B.ended))return y("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?G0(this):d(this),null;if(O=C0(O,B),O===0&&B.ended)return B.length===0&&G0(this),null;let h=B.needReadable;if(y("need readable",h),(B.length===0||B.length-O<B.highWaterMark)&&(h=!0,y("length less than watermark",h)),B.ended||B.reading||B.destroyed||B.errored||!B.constructed)h=!1,y("reading, ended or constructing",h);else if(h){y("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0);try{this._read(B.highWaterMark)}catch(z0){X(this,z0)}B.sync=!1,B.reading||(O=C0(b,B))}let o;return O>0?o=H0(O,B):o=null,o===null?(B.needReadable=B.length<=B.highWaterMark,O=0):(B.length-=O,B.multiAwaitDrain?B.awaitDrainWriters.clear():B.awaitDrainWriters=null),B.length===0&&(B.ended||(B.needReadable=!0),b!==O&&B.ended&&G0(this)),o!==null&&!B.errorEmitted&&!B.closeEmitted&&(B.dataEmitted=!0,this.emit("data",o)),o};function u(O,B){if(y("onEofChunk"),!B.ended){if(B.decoder){let b=B.decoder.end();b&&b.length&&(B.buffer.push(b),B.length+=B.objectMode?1:b.length)}B.ended=!0,B.sync?d(O):(B.needReadable=!1,B.emittedReadable=!0,a(O))}}function d(O){let B=O._readableState;y("emitReadable",B.needReadable,B.emittedReadable),B.needReadable=!1,B.emittedReadable||(y("emitReadable",B.flowing),B.emittedReadable=!0,E.nextTick(a,O))}function a(O){let B=O._readableState;y("emitReadable_",B.destroyed,B.length,B.ended),!B.destroyed&&!B.errored&&(B.length||B.ended)&&(O.emit("readable"),B.emittedReadable=!1),B.needReadable=!B.flowing&&!B.ended&&B.length<=B.highWaterMark,X0(O)}function V0(O,B){!B.readingMore&&B.constructed&&(B.readingMore=!0,E.nextTick(K0,O,B))}function K0(O,B){for(;!B.reading&&!B.ended&&(B.length<B.highWaterMark||B.flowing&&B.length===0);){let b=B.length;if(y("maybeReadMore read 0"),O.read(0),b===B.length)break}B.readingMore=!1}R.prototype._read=function(O){throw new P0("_read()")},R.prototype.pipe=function(O,B){let b=this,h=this._readableState;h.pipes.length===1&&(h.multiAwaitDrain||(h.multiAwaitDrain=!0,h.awaitDrainWriters=new $(h.awaitDrainWriters?[h.awaitDrainWriters]:[]))),h.pipes.push(O),y("pipe count=%d opts=%j",h.pipes.length,B);let o=(!B||B.end!==!1)&&O!==E.stdout&&O!==E.stderr?J0:T0;h.endEmitted?E.nextTick(o):b.once("end",o),O.on("unpipe",z0);function z0(O0,l0){y("onunpipe"),O0===b&&l0&&l0.hasUnpiped===!1&&(l0.hasUnpiped=!0,U0())}function J0(){y("onend"),O.end()}let $0,b0=!1;function U0(){y("cleanup"),O.removeListener("close",N0),O.removeListener("finish",F5),$0&&O.removeListener("drain",$0),O.removeListener("error",D0),O.removeListener("unpipe",z0),b.removeListener("end",J0),b.removeListener("end",T0),b.removeListener("data",y0),b0=!0,$0&&h.awaitDrainWriters&&(!O._writableState||O._writableState.needDrain)&&$0()}function j0(){b0||(h.pipes.length===1&&h.pipes[0]===O?(y("false write response, pause",0),h.awaitDrainWriters=O,h.multiAwaitDrain=!1):h.pipes.length>1&&h.pipes.includes(O)&&(y("false write response, pause",h.awaitDrainWriters.size),h.awaitDrainWriters.add(O)),b.pause()),$0||($0=Q0(b,O),O.on("drain",$0))}b.on("data",y0);function y0(O0){y("ondata");let l0=O.write(O0);y("dest.write",l0),l0===!1&&j0()}function D0(O0){if(y("onerror",O0),T0(),O.removeListener("error",D0),O.listenerCount("error")===0){let l0=O._writableState||O._readableState;l0&&!l0.errorEmitted?X(O,O0):O.emit("error",O0)}}I(O,"error",D0);function N0(){O.removeListener("finish",F5),T0()}O.once("close",N0);function F5(){y("onfinish"),O.removeListener("close",N0),T0()}O.once("finish",F5);function T0(){y("unpipe"),b.unpipe(O)}return O.emit("pipe",b),O.writableNeedDrain===!0?h.flowing&&j0():h.flowing||(y("pipe resume"),b.resume()),O};function Q0(O,B){return function(){let b=O._readableState;b.awaitDrainWriters===B?(y("pipeOnDrain",1),b.awaitDrainWriters=null):b.multiAwaitDrain&&(y("pipeOnDrain",b.awaitDrainWriters.size),b.awaitDrainWriters.delete(B)),(!b.awaitDrainWriters||b.awaitDrainWriters.size===0)&&O.listenerCount("data")&&O.resume()}}R.prototype.unpipe=function(O){let B=this._readableState,b={hasUnpiped:!1};if(B.pipes.length===0)return this;if(!O){let o=B.pipes;B.pipes=[],this.pause();for(let z0=0;z0<o.length;z0++)o[z0].emit("unpipe",this,{hasUnpiped:!1});return this}let h=M(B.pipes,O);return h===-1?this:(B.pipes.splice(h,1),B.pipes.length===0&&this.pause(),O.emit("unpipe",this,b),this)},R.prototype.on=function(O,B){let b=D.prototype.on.call(this,O,B),h=this._readableState;return O==="data"?(h.readableListening=this.listenerCount("readable")>0,h.flowing!==!1&&this.resume()):O==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,y("on readable",h.length,h.reading),h.length?d(this):h.reading||E.nextTick(q,this)),b},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(O,B){let b=D.prototype.removeListener.call(this,O,B);return O==="readable"&&E.nextTick(w,this),b},R.prototype.off=R.prototype.removeListener,R.prototype.removeAllListeners=function(O){let B=D.prototype.removeAllListeners.apply(this,arguments);return(O==="readable"||O===void 0)&&E.nextTick(w,this),B};function w(O){let B=O._readableState;B.readableListening=O.listenerCount("readable")>0,B.resumeScheduled&&B[Q]===!1?B.flowing=!0:O.listenerCount("data")>0?O.resume():B.readableListening||(B.flowing=null)}function q(O){y("readable nexttick read 0"),O.read(0)}R.prototype.resume=function(){let O=this._readableState;return O.flowing||(y("resume"),O.flowing=!O.readableListening,m(this,O)),O[Q]=!1,this};function m(O,B){B.resumeScheduled||(B.resumeScheduled=!0,E.nextTick(e,O,B))}function e(O,B){y("resume",B.reading),B.reading||O.read(0),B.resumeScheduled=!1,O.emit("resume"),X0(O),B.flowing&&!B.reading&&O.read(0)}R.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Q]=!0,this};function X0(O){let B=O._readableState;for(y("flow",B.flowing);B.flowing&&O.read()!==null;);}R.prototype.wrap=function(O){let B=!1;O.on("data",(h)=>{!this.push(h)&&O.pause&&(B=!0,O.pause())}),O.on("end",()=>{this.push(null)}),O.on("error",(h)=>{X(this,h)}),O.on("close",()=>{this.destroy()}),O.on("destroy",()=>{this.destroy()}),this._read=()=>{B&&O.resume&&(B=!1,O.resume())};let b=k(O);for(let h=1;h<b.length;h++){let o=b[h];this[o]===void 0&&typeof O[o]=="function"&&(this[o]=O[o].bind(O))}return this},R.prototype[T]=function(){return t(this)},R.prototype.iterator=function(O){return O!==void 0&&Y(O,"options"),t(this,O)};function t(O,B){typeof O.read!="function"&&(O=R.wrap(O,{objectMode:!0}));let b=_0(O,B);return b.stream=O,b}async function*_0(O,B){let b=F;function h(J0){this===O?(b(),b=F):b=J0}O.on("readable",h);let o,z0=A(O,{writable:!1},(J0)=>{o=J0?Y0(o,J0):null,b(),b=F});try{for(;;){let J0=O.destroyed?null:O.read();if(J0!==null)yield J0;else{if(o)throw o;if(o===null)return;await new V(h)}}}catch(J0){throw o=Y0(o,J0),o}finally{(o||B?.destroyOnReturn!==!1)&&(o===void 0||O._readableState.autoDestroy)?c.destroyer(O,null):(O.off("readable",h),z0())}}U(R.prototype,{readable:{__proto__:null,get(){let O=this._readableState;return!!O&&O.readable!==!1&&!O.destroyed&&!O.errorEmitted&&!O.endEmitted},set(O){this._readableState&&(this._readableState.readable=!!O)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(O){!this._readableState||(this._readableState.destroyed=O)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),U(G.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Q]!==!1},set(O){this[Q]=!!O}}}),R._fromList=H0;function H0(O,B){if(B.length===0)return null;let b;return B.objectMode?b=B.buffer.shift():!O||O>=B.length?(B.decoder?b=B.buffer.join(""):B.buffer.length===1?b=B.buffer.first():b=B.buffer.concat(B.length),B.buffer.clear()):b=B.buffer.consume(O,B.decoder),b}function G0(O){let B=O._readableState;y("endReadable",B.endEmitted),B.endEmitted||(B.ended=!0,E.nextTick(w0,B,O))}function w0(O,B){if(y("endReadableNT",O.endEmitted,O.length),!O.errored&&!O.closeEmitted&&!O.endEmitted&&O.length===0){if(O.endEmitted=!0,B.emit("end"),B.writable&&B.allowHalfOpen===!1)E.nextTick(W0,B);else if(O.autoDestroy){let b=B._writableState;(!b||b.autoDestroy&&(b.finished||b.writable===!1))&&B.destroy()}}}function W0(O){O.writable&&!O.writableEnded&&!O.destroyed&&O.end()}R.from=function(O,B){return Z(R,O,B)};var Z0;function c0(){return Z0===void 0&&(Z0={}),Z0}R.fromWeb=function(O,B){return c0().newStreamReadableFromReadableStream(O,B)},R.toWeb=function(O,B){return c0().newReadableStreamFromStreamReadable(O,B)},R.wrap=function(O,B){var b,h;return new R({objectMode:(b=(h=O.readableObjectMode)!==null&&h!==void 0?h:O.objectMode)!==null&&b!==void 0?b:!0,...B,destroy(o,z0){c.destroyer(O,o),z0(o)}}).wrap(O)}}),K6=F0((l,g)=>{var E=(x5(),z5(k5)),{ArrayPrototypeSlice:M,Error:j,FunctionPrototypeSymbolHasInstance:S,ObjectDefineProperty:H,ObjectDefineProperties:U,ObjectSetPrototypeOf:k,StringPrototypeToLowerCase:z,Symbol:V,SymbolHasInstance:$}=U5();g.exports=P,P.WritableState=Y;var{EventEmitter:T}=S5(),N=O9().Stream,{Buffer:W}=W5(),D=b5(),{addAbortSignal:I}=T9(),{getHighWaterMark:v,getDefaultHighWaterMark:x}=D9(),{ERR_INVALID_ARG_TYPE:A,ERR_METHOD_NOT_IMPLEMENTED:y,ERR_MULTIPLE_CALLBACK:p,ERR_STREAM_CANNOT_PIPE:c,ERR_STREAM_DESTROYED:n,ERR_STREAM_ALREADY_FINISHED:i,ERR_STREAM_NULL_VALUES:Y0,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:P0}=V5().codes,{errorOrDestroy:K}=D;k(P.prototype,N.prototype),k(P,N);function C(){}var J=V("kOnFinished");function Y(q,m,e){typeof e!="boolean"&&(e=m instanceof L5()),this.objectMode=!!(q&&q.objectMode),e&&(this.objectMode=this.objectMode||!!(q&&q.writableObjectMode)),this.highWaterMark=q?v(this,q,"writableHighWaterMark",e):x(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let X0=!!(q&&q.decodeStrings===!1);this.decodeStrings=!X0,this.defaultEncoding=q&&q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=R.bind(void 0,m),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Q(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!q||q.emitClose!==!1,this.autoDestroy=!q||q.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[J]=[]}function Q(q){q.buffered=[],q.bufferedIndex=0,q.allBuffers=!0,q.allNoop=!0}Y.prototype.getBuffer=function(){return M(this.buffered,this.bufferedIndex)},H(Y.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function P(q){let m=this instanceof L5();if(!m&&!S(P,this))return new P(q);this._writableState=new Y(q,this,m),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),typeof q.construct=="function"&&(this._construct=q.construct),q.signal&&I(q.signal,this)),N.call(this,q),D.construct(this,()=>{let e=this._writableState;e.writing||r(this,e),a(this,e)})}H(P,$,{__proto__:null,value:function(q){return S(this,q)?!0:this!==P?!1:q&&q._writableState instanceof Y}}),P.prototype.pipe=function(){K(this,new c)};function Z(q,m,e,X0){let t=q._writableState;if(typeof e=="function")X0=e,e=t.defaultEncoding;else{if(!e)e=t.defaultEncoding;else if(e!=="buffer"&&!W.isEncoding(e))throw new P0(e);typeof X0!="function"&&(X0=C)}if(m===null)throw new Y0;if(!t.objectMode)if(typeof m=="string")t.decodeStrings!==!1&&(m=W.from(m,e),e="buffer");else if(m instanceof W)e="buffer";else if(N._isUint8Array(m))m=N._uint8ArrayToBuffer(m),e="buffer";else throw new A("chunk",["string","Buffer","Uint8Array"],m);let _0;return t.ending?_0=new f:t.destroyed&&(_0=new n("write")),_0?(E.nextTick(X0,_0),K(q,_0,!0),_0):(t.pendingcb++,F(q,t,m,e,X0))}P.prototype.write=function(q,m,e){return Z(this,q,m,e)===!0},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){let q=this._writableState;q.corked&&(q.corked--,q.writing||r(this,q))},P.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=z(q)),!W.isEncoding(q))throw new P0(q);return this._writableState.defaultEncoding=q,this};function F(q,m,e,X0,t){let _0=m.objectMode?1:e.length;m.length+=_0;let H0=m.length<m.highWaterMark;return H0||(m.needDrain=!0),m.writing||m.corked||m.errored||!m.constructed?(m.buffered.push({chunk:e,encoding:X0,callback:t}),m.allBuffers&&X0!=="buffer"&&(m.allBuffers=!1),m.allNoop&&t!==C&&(m.allNoop=!1)):(m.writelen=_0,m.writecb=t,m.writing=!0,m.sync=!0,q._write(e,X0,m.onwrite),m.sync=!1),H0&&!m.errored&&!m.destroyed}function X(q,m,e,X0,t,_0,H0){m.writelen=X0,m.writecb=H0,m.writing=!0,m.sync=!0,m.destroyed?m.onwrite(new n("write")):e?q._writev(t,m.onwrite):q._write(t,_0,m.onwrite),m.sync=!1}function G(q,m,e,X0){--m.pendingcb,X0(e),s(m),K(q,e)}function R(q,m){let e=q._writableState,X0=e.sync,t=e.writecb;if(typeof t!="function"){K(q,new p);return}e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0,m?(m.stack,e.errored||(e.errored=m),q._readableState&&!q._readableState.errored&&(q._readableState.errored=m),X0?E.nextTick(G,q,e,m,t):G(q,e,m,t)):(e.buffered.length>e.bufferedIndex&&r(q,e),X0?e.afterWriteTickInfo!==null&&e.afterWriteTickInfo.cb===t?e.afterWriteTickInfo.count++:(e.afterWriteTickInfo={count:1,cb:t,stream:q,state:e},E.nextTick(L,e.afterWriteTickInfo)):_(q,e,1,t))}function L({stream:q,state:m,count:e,cb:X0}){return m.afterWriteTickInfo=null,_(q,m,e,X0)}function _(q,m,e,X0){for(!m.ending&&!q.destroyed&&m.length===0&&m.needDrain&&(m.needDrain=!1,q.emit("drain"));e-- >0;)m.pendingcb--,X0();m.destroyed&&s(m),a(q,m)}function s(q){if(q.writing)return;for(let t=q.bufferedIndex;t<q.buffered.length;++t){var m;let{chunk:_0,callback:H0}=q.buffered[t],G0=q.objectMode?1:_0.length;q.length-=G0,H0((m=q.errored)!==null&&m!==void 0?m:new n("write"))}let e=q[J].splice(0);for(let t=0;t<e.length;t++){var X0;e[t]((X0=q.errored)!==null&&X0!==void 0?X0:new n("end"))}Q(q)}function r(q,m){if(m.corked||m.bufferProcessing||m.destroyed||!m.constructed)return;let{buffered:e,bufferedIndex:X0,objectMode:t}=m,_0=e.length-X0;if(!_0)return;let H0=X0;if(m.bufferProcessing=!0,_0>1&&q._writev){m.pendingcb-=_0-1;let G0=m.allNoop?C:(W0)=>{for(let Z0=H0;Z0<e.length;++Z0)e[Z0].callback(W0)},w0=m.allNoop&&H0===0?e:M(e,H0);w0.allBuffers=m.allBuffers,X(q,m,!0,m.length,w0,"",G0),Q(m)}else{do{let{chunk:G0,encoding:w0,callback:W0}=e[H0];e[H0++]=null;let Z0=t?1:G0.length;X(q,m,!1,Z0,G0,w0,W0)}while(H0<e.length&&!m.writing);H0===e.length?Q(m):H0>256?(e.splice(0,H0),m.bufferedIndex=0):m.bufferedIndex=H0}m.bufferProcessing=!1}P.prototype._write=function(q,m,e){if(this._writev)this._writev([{chunk:q,encoding:m}],e);else throw new y("_write()")},P.prototype._writev=null,P.prototype.end=function(q,m,e){let X0=this._writableState;typeof q=="function"?(e=q,q=null,m=null):typeof m=="function"&&(e=m,m=null);let t;if(q!=null){let _0=Z(this,q,m);_0 instanceof j&&(t=_0)}return X0.corked&&(X0.corked=1,this.uncork()),t||(!X0.errored&&!X0.ending?(X0.ending=!0,a(this,X0,!0),X0.ended=!0):X0.finished?t=new i("end"):X0.destroyed&&(t=new n("end"))),typeof e=="function"&&(t||X0.finished?E.nextTick(e,t):X0[J].push(e)),this};function C0(q){return q.ending&&!q.destroyed&&q.constructed&&q.length===0&&!q.errored&&q.buffered.length===0&&!q.finished&&!q.writing&&!q.errorEmitted&&!q.closeEmitted}function u(q,m){let e=!1;function X0(t){if(e){K(q,t??p());return}if(e=!0,m.pendingcb--,t){let _0=m[J].splice(0);for(let H0=0;H0<_0.length;H0++)_0[H0](t);K(q,t,m.sync)}else C0(m)&&(m.prefinished=!0,q.emit("prefinish"),m.pendingcb++,E.nextTick(V0,q,m))}m.sync=!0,m.pendingcb++;try{q._final(X0)}catch(t){X0(t)}m.sync=!1}function d(q,m){!m.prefinished&&!m.finalCalled&&(typeof q._final=="function"&&!m.destroyed?(m.finalCalled=!0,u(q,m)):(m.prefinished=!0,q.emit("prefinish")))}function a(q,m,e){C0(m)&&(d(q,m),m.pendingcb===0&&(e?(m.pendingcb++,E.nextTick((X0,t)=>{C0(t)?V0(X0,t):t.pendingcb--},q,m)):C0(m)&&(m.pendingcb++,V0(q,m))))}function V0(q,m){m.pendingcb--,m.finished=!0;let e=m[J].splice(0);for(let X0=0;X0<e.length;X0++)e[X0]();if(q.emit("finish"),m.autoDestroy){let X0=q._readableState;(!X0||X0.autoDestroy&&(X0.endEmitted||X0.readable===!1))&&q.destroy()}}U(P.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(q){this._writableState&&(this._writableState.destroyed=q)}},writable:{__proto__:null,get(){let q=this._writableState;return!!q&&q.writable!==!1&&!q.destroyed&&!q.errored&&!q.ending&&!q.ended},set(q){this._writableState&&(this._writableState.writable=!!q)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let q=this._writableState;return q?!q.destroyed&&!q.ending&&q.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var K0=D.destroy;P.prototype.destroy=function(q,m){let e=this._writableState;return!e.destroyed&&(e.bufferedIndex<e.buffered.length||e[J].length)&&E.nextTick(s,e),K0.call(this,q,m),this},P.prototype._undestroy=D.undestroy,P.prototype._destroy=function(q,m){m(q)},P.prototype[T.captureRejectionSymbol]=function(q){this.destroy(q)};var Q0;function w(){return Q0===void 0&&(Q0={}),Q0}P.fromWeb=function(q,m){return w().newStreamWritableFromWritableStream(q,m)},P.toWeb=function(q){return w().newWritableStreamFromStreamWritable(q)}}),D7=F0((l,g)=>{var E=(x5(),z5(k5)),M=W5(),{isReadable:j,isWritable:S,isIterable:H,isNodeStream:U,isReadableNodeStream:k,isWritableNodeStream:z,isDuplexNodeStream:V}=A5(),$=v5(),{AbortError:T,codes:{ERR_INVALID_ARG_TYPE:N,ERR_INVALID_RETURN_VALUE:W}}=V5(),{destroyer:D}=b5(),I=L5(),v=K9(),{createDeferredPromise:x}=N5(),A=e9(),y=globalThis.Blob||M.Blob,p=typeof y<"u"?function(P0){return P0 instanceof y}:function(P0){return!1},c=globalThis.AbortController||z9().AbortController,{FunctionPrototypeCall:n}=U5(),i=class extends I{constructor(P0){super(P0),P0?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),P0?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};g.exports=function P0(K,C){if(V(K))return K;if(k(K))return f({readable:K});if(z(K))return f({writable:K});if(U(K))return f({writable:!1,readable:!1});if(typeof K=="function"){let{value:Y,write:Q,final:P,destroy:Z}=Y0(K);if(H(Y))return A(i,Y,{objectMode:!0,write:Q,final:P,destroy:Z});let F=Y?.then;if(typeof F=="function"){let X,G=n(F,Y,(R)=>{if(R!=null)throw new W("nully","body",R)},(R)=>{D(X,R)});return X=new i({objectMode:!0,readable:!1,write:Q,final(R){P(async()=>{try{await G,E.nextTick(R,null)}catch(L){E.nextTick(R,L)}})},destroy:Z})}throw new W("Iterable, AsyncIterable or AsyncFunction",C,Y)}if(p(K))return P0(K.arrayBuffer());if(H(K))return A(i,K,{objectMode:!0,writable:!1});if(typeof K?.writable=="object"||typeof K?.readable=="object"){let Y=K!=null&&K.readable?k(K?.readable)?K?.readable:P0(K.readable):void 0,Q=K!=null&&K.writable?z(K?.writable)?K?.writable:P0(K.writable):void 0;return f({readable:Y,writable:Q})}let J=K?.then;if(typeof J=="function"){let Y;return n(J,K,(Q)=>{Q!=null&&Y.push(Q),Y.push(null)},(Q)=>{D(Y,Q)}),Y=new i({objectMode:!0,writable:!1,read(){}})}throw new N(C,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],K)};function Y0(P0){let{promise:K,resolve:C}=x(),J=new c,Y=J.signal;return{value:P0(async function*(){for(;;){let Q=K;K=null;let{chunk:P,done:Z,cb:F}=await Q;if(E.nextTick(F),Z)return;if(Y.aborted)throw new T(void 0,{cause:Y.reason});({promise:K,resolve:C}=x()),yield P}}(),{signal:Y}),write(Q,P,Z){let F=C;C=null,F({chunk:Q,done:!1,cb:Z})},final(Q){let P=C;C=null,P({done:!0,cb:Q})},destroy(Q,P){J.abort(),P(Q)}}}function f(P0){let K=P0.readable&&typeof P0.readable.read!="function"?v.wrap(P0.readable):P0.readable,C=P0.writable,J=!!j(K),Y=!!S(C),Q,P,Z,F,X;function G(R){let L=F;F=null,L?L(R):R?X.destroy(R):!J&&!Y&&X.destroy()}return X=new i({readableObjectMode:!!(K!=null&&K.readableObjectMode),writableObjectMode:!!(C!=null&&C.writableObjectMode),readable:J,writable:Y}),Y&&($(C,(R)=>{Y=!1,R&&D(K,R),G(R)}),X._write=function(R,L,_){C.write(R,L)?_():Q=_},X._final=function(R){C.end(),P=R},C.on("drain",function(){if(Q){let R=Q;Q=null,R()}}),C.on("finish",function(){if(P){let R=P;P=null,R()}})),J&&($(K,(R)=>{J=!1,R&&D(K,R),G(R)}),K.on("readable",function(){if(Z){let R=Z;Z=null,R()}}),K.on("end",function(){X.push(null)}),X._read=function(){for(;;){let R=K.read();if(R===null){Z=X._read;return}if(!X.push(R))return}}),X._destroy=function(R,L){!R&&F!==null&&(R=new T),Z=null,Q=null,P=null,F===null?L(R):(F=L,D(C,R),D(K,R))},X}}),L5=F0((l,g)=>{var{ObjectDefineProperties:E,ObjectGetOwnPropertyDescriptor:M,ObjectKeys:j,ObjectSetPrototypeOf:S}=U5();g.exports=k;var H=K9(),U=K6();S(k.prototype,H.prototype),S(k,H);{let T=j(U.prototype);for(let N=0;N<T.length;N++){let W=T[N];k.prototype[W]||(k.prototype[W]=U.prototype[W])}}function k(T){if(!(this instanceof k))return new k(T);H.call(this,T),U.call(this,T),T?(this.allowHalfOpen=T.allowHalfOpen!==!1,T.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),T.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}E(k.prototype,{writable:{__proto__:null,...M(U.prototype,"writable")},writableHighWaterMark:{__proto__:null,...M(U.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...M(U.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...M(U.prototype,"writableBuffer")},writableLength:{__proto__:null,...M(U.prototype,"writableLength")},writableFinished:{__proto__:null,...M(U.prototype,"writableFinished")},writableCorked:{__proto__:null,...M(U.prototype,"writableCorked")},writableEnded:{__proto__:null,...M(U.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...M(U.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(T){this._readableState&&this._writableState&&(this._readableState.destroyed=T,this._writableState.destroyed=T)}}});var z;function V(){return z===void 0&&(z={}),z}k.fromWeb=function(T,N){return V().newStreamDuplexFromReadableWritablePair(T,N)},k.toWeb=function(T){return V().newReadableWritablePairFromDuplex(T)};var $;k.from=function(T){return $||($=D7()),$(T,"body")}}),X6=F0((l,g)=>{var{ObjectSetPrototypeOf:E,Symbol:M}=U5();g.exports=k;var{ERR_METHOD_NOT_IMPLEMENTED:j}=V5().codes,S=L5(),{getHighWaterMark:H}=D9();E(k.prototype,S.prototype),E(k,S);var U=M("kCallback");function k($){if(!(this instanceof k))return new k($);let T=$?H(this,$,"readableHighWaterMark",!0):null;T===0&&($={...$,highWaterMark:null,readableHighWaterMark:T,writableHighWaterMark:$.writableHighWaterMark||0}),S.call(this,$),this._readableState.sync=!1,this[U]=null,$&&(typeof $.transform=="function"&&(this._transform=$.transform),typeof $.flush=="function"&&(this._flush=$.flush)),this.on("prefinish",V)}function z($){typeof this._flush=="function"&&!this.destroyed?this._flush((T,N)=>{if(T){$?$(T):this.destroy(T);return}N!=null&&this.push(N),this.push(null),$&&$()}):(this.push(null),$&&$())}function V(){this._final!==z&&z.call(this)}k.prototype._final=z,k.prototype._transform=function($,T,N){throw new j("_transform()")},k.prototype._write=function($,T,N){let W=this._readableState,D=this._writableState,I=W.length;this._transform($,T,(v,x)=>{if(v){N(v);return}x!=null&&this.push(x),D.ended||I===W.length||W.length<W.highWaterMark?N():this[U]=N})},k.prototype._read=function(){if(this[U]){let $=this[U];this[U]=null,$()}}}),C6=F0((l,g)=>{var{ObjectSetPrototypeOf:E}=U5();g.exports=j;var M=X6();E(j.prototype,M.prototype),E(j,M);function j(S){if(!(this instanceof j))return new j(S);M.call(this,S)}j.prototype._transform=function(S,H,U){U(null,S)}}),N9=F0((l,g)=>{var E=(x5(),z5(k5)),{ArrayIsArray:M,Promise:j,SymbolAsyncIterator:S}=U5(),H=v5(),{once:U}=N5(),k=b5(),z=L5(),{aggregateTwoErrors:V,codes:{ERR_INVALID_ARG_TYPE:$,ERR_INVALID_RETURN_VALUE:T,ERR_MISSING_ARGS:N,ERR_STREAM_DESTROYED:W,ERR_STREAM_PREMATURE_CLOSE:D},AbortError:I}=V5(),{validateFunction:v,validateAbortSignal:x}=e5(),{isIterable:A,isReadable:y,isReadableNodeStream:p,isNodeStream:c}=A5(),n=globalThis.AbortController||z9().AbortController,i,Y0;function f(Z,F,X){let G=!1;Z.on("close",()=>{G=!0});let R=H(Z,{readable:F,writable:X},(L)=>{G=!L});return{destroy:(L)=>{G||(G=!0,k.destroyer(Z,L||new W("pipe")))},cleanup:R}}function P0(Z){return v(Z[Z.length-1],"streams[stream.length - 1]"),Z.pop()}function K(Z){if(A(Z))return Z;if(p(Z))return C(Z);throw new $("val",["Readable","Iterable","AsyncIterable"],Z)}async function*C(Z){Y0||(Y0=K9()),yield*Y0.prototype[S].call(Z)}async function J(Z,F,X,{end:G}){let R,L=null,_=(C0)=>{if(C0&&(R=C0),L){let u=L;L=null,u()}},s=()=>new j((C0,u)=>{R?u(R):L=()=>{R?u(R):C0()}});F.on("drain",_);let r=H(F,{readable:!1},_);try{F.writableNeedDrain&&await s();for await(let C0 of Z)F.write(C0)||await s();G&&F.end(),await s(),X()}catch(C0){X(R!==C0?V(R,C0):C0)}finally{r(),F.off("drain",_)}}function Y(...Z){return Q(Z,U(P0(Z)))}function Q(Z,F,X){if(Z.length===1&&M(Z[0])&&(Z=Z[0]),Z.length<2)throw new N("streams");let G=new n,R=G.signal,L=X?.signal,_=[];x(L,"options.signal");function s(){V0(new I)}L?.addEventListener("abort",s);let r,C0,u=[],d=0;function a(q){V0(q,--d===0)}function V0(q,m){if(q&&(!r||r.code==="ERR_STREAM_PREMATURE_CLOSE")&&(r=q),!(!r&&!m)){for(;u.length;)u.shift()(r);L?.removeEventListener("abort",s),G.abort(),m&&(r||_.forEach((e)=>e()),E.nextTick(F,r,C0))}}let K0;for(let q=0;q<Z.length;q++){let m=Z[q],e=q<Z.length-1,X0=q>0,t=e||X?.end!==!1,_0=q===Z.length-1;if(c(m)){let H0=function(G0){G0&&G0.name!=="AbortError"&&G0.code!=="ERR_STREAM_PREMATURE_CLOSE"&&a(G0)};var Q0=H0;if(t){let{destroy:G0,cleanup:w0}=f(m,e,X0);u.push(G0),y(m)&&_0&&_.push(w0)}m.on("error",H0),y(m)&&_0&&_.push(()=>{m.removeListener("error",H0)})}if(q===0)if(typeof m=="function"){if(K0=m({signal:R}),!A(K0))throw new T("Iterable, AsyncIterable or Stream","source",K0)}else A(m)||p(m)?K0=m:K0=z.from(m);else if(typeof m=="function")if(K0=K(K0),K0=m(K0,{signal:R}),e){if(!A(K0,!0))throw new T("AsyncIterable",`transform[${q-1}]`,K0)}else{var w;i||(i=C6());let H0=new i({objectMode:!0}),G0=(w=K0)===null||w===void 0?void 0:w.then;if(typeof G0=="function")d++,G0.call(K0,(Z0)=>{C0=Z0,Z0!=null&&H0.write(Z0),t&&H0.end(),E.nextTick(a)},(Z0)=>{H0.destroy(Z0),E.nextTick(a,Z0)});else if(A(K0,!0))d++,J(K0,H0,a,{end:t});else throw new T("AsyncIterable or Promise","destination",K0);K0=H0;let{destroy:w0,cleanup:W0}=f(K0,!1,!0);u.push(w0),_0&&_.push(W0)}else if(c(m)){if(p(K0)){d+=2;let H0=P(K0,m,a,{end:t});y(m)&&_0&&_.push(H0)}else if(A(K0))d++,J(K0,m,a,{end:t});else throw new $("val",["Readable","Iterable","AsyncIterable"],K0);K0=m}else K0=z.from(m)}return(R!=null&&R.aborted||L!=null&&L.aborted)&&E.nextTick(s),K0}function P(Z,F,X,{end:G}){let R=!1;return F.on("close",()=>{R||X(new D)}),Z.pipe(F,{end:G}),G?Z.once("end",()=>{R=!0,F.end()}):X(),H(Z,{readable:!0,writable:!1},(L)=>{let _=Z._readableState;L&&L.code==="ERR_STREAM_PREMATURE_CLOSE"&&_&&_.ended&&!_.errored&&!_.errorEmitted?Z.once("end",X).once("error",X):X(L)}),H(F,{readable:!1,writable:!0},X)}g.exports={pipelineImpl:Q,pipeline:Y}}),N7=F0((l,g)=>{var{pipeline:E}=N9(),M=L5(),{destroyer:j}=b5(),{isNodeStream:S,isReadable:H,isWritable:U}=A5(),{AbortError:k,codes:{ERR_INVALID_ARG_VALUE:z,ERR_MISSING_ARGS:V}}=V5();g.exports=function(...$){if($.length===0)throw new V("streams");if($.length===1)return M.from($[0]);let T=[...$];if(typeof $[0]=="function"&&($[0]=M.from($[0])),typeof $[$.length-1]=="function"){let n=$.length-1;$[n]=M.from($[n])}for(let n=0;n<$.length;++n)if(S($[n])){if(n<$.length-1&&!H($[n]))throw new z(`streams[${n}]`,T[n],"must be readable");if(n>0&&!U($[n]))throw new z(`streams[${n}]`,T[n],"must be writable")}let N,W,D,I,v;function x(n){let i=I;I=null,i?i(n):n?v.destroy(n):!c&&!p&&v.destroy()}let A=$[0],y=E($,x),p=!!U(A),c=!!H(y);return v=new M({writableObjectMode:!!(A!=null&&A.writableObjectMode),readableObjectMode:!!(y!=null&&y.writableObjectMode),writable:p,readable:c}),p&&(v._write=function(n,i,Y0){A.write(n,i)?Y0():N=Y0},v._final=function(n){A.end(),W=n},A.on("drain",function(){if(N){let n=N;N=null,n()}}),y.on("finish",function(){if(W){let n=W;W=null,n()}})),c&&(y.on("readable",function(){if(D){let n=D;D=null,n()}}),y.on("end",function(){v.push(null)}),v._read=function(){for(;;){let n=y.read();if(n===null){D=v._read;return}if(!v.push(n))return}}),v._destroy=function(n,i){!n&&I!==null&&(n=new k),D=null,N=null,W=null,I===null?i(n):(I=i,j(y,n))},v}}),Y6=F0((l,g)=>{var{ArrayPrototypePop:E,Promise:M}=U5(),{isIterable:j,isNodeStream:S}=A5(),{pipelineImpl:H}=N9(),{finished:U}=v5();function k(...z){return new M((V,$)=>{let T,N,W=z[z.length-1];if(W&&typeof W=="object"&&!S(W)&&!j(W)){let D=E(z);T=D.signal,N=D.end}H(z,(D,I)=>{D?$(D):V(I)},{signal:T,end:N})})}g.exports={finished:U,pipeline:k}}),L7=F0((l,g)=>{var{Buffer:E}=W5(),{ObjectDefineProperty:M,ObjectKeys:j,ReflectApply:S}=U5(),{promisify:{custom:H}}=N5(),{streamReturningOperators:U,promiseReturningOperators:k}=O7(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:z}}=V5(),V=N7(),{pipeline:$}=N9(),{destroyer:T}=b5(),N=v5(),W=Y6(),D=A5(),I=g.exports=O9().Stream;I.isDisturbed=D.isDisturbed,I.isErrored=D.isErrored,I.isReadable=D.isReadable,I.Readable=K9();for(let A of j(U)){let y=function(...c){if(new.target)throw z();return I.Readable.from(S(p,this,c))};v=y;let p=U[A];M(y,"name",{__proto__:null,value:p.name}),M(y,"length",{__proto__:null,value:p.length}),M(I.Readable.prototype,A,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var v;for(let A of j(k)){let y=function(...c){if(new.target)throw z();return S(p,this,c)};v=y;let p=k[A];M(y,"name",{__proto__:null,value:p.name}),M(y,"length",{__proto__:null,value:p.length}),M(I.Readable.prototype,A,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var v;I.Writable=K6(),I.Duplex=L5(),I.Transform=X6(),I.PassThrough=C6(),I.pipeline=$;var{addAbortSignal:x}=T9();I.addAbortSignal=x,I.finished=N,I.destroy=T,I.compose=V,M(I,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return W}}),M($,H,{__proto__:null,enumerable:!0,get(){return W.pipeline}}),M(N,H,{__proto__:null,enumerable:!0,get(){return W.finished}}),I.Stream=I,I._isUint8Array=function(A){return A instanceof Uint8Array},I._uint8ArrayToBuffer=function(A){return E.from(A.buffer,A.byteOffset,A.byteLength)}}),c9=F0((l,g)=>{var E=L7(),M=Y6(),j=E.Readable.destroy;g.exports=E.Readable,g.exports._uint8ArrayToBuffer=E._uint8ArrayToBuffer,g.exports._isUint8Array=E._isUint8Array,g.exports.isDisturbed=E.isDisturbed,g.exports.isErrored=E.isErrored,g.exports.isReadable=E.isReadable,g.exports.Readable=E.Readable,g.exports.Writable=E.Writable,g.exports.Duplex=E.Duplex,g.exports.Transform=E.Transform,g.exports.PassThrough=E.PassThrough,g.exports.addAbortSignal=E.addAbortSignal,g.exports.finished=E.finished,g.exports.destroy=E.destroy,g.exports.destroy=j,g.exports.pipeline=E.pipeline,g.exports.compose=E.compose,Object.defineProperty(E,"promises",{configurable:!0,enumerable:!0,get(){return M}}),g.exports.Stream=E.Stream,g.exports.default=g.exports}),L9={};i5(L9,{default:()=>J6});var J6,k7=P9(()=>{Z9(L9,E5(c9())),J6=E5(c9())}),q5=F0((l,g)=>{var E=d0().Buffer,M=(k7(),z5(L9)).Transform,j=$9().StringDecoder,S=p0();function H(U){M.call(this),this.hashMode=typeof U=="string",this.hashMode?this[U]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}S(H,M),H.prototype.update=function(U,k,z){typeof U=="string"&&(U=E.from(U,k));var V=this._update(U);return this.hashMode?this:(z&&(V=this._toString(V,z)),V)},H.prototype.setAutoPadding=function(){},H.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},H.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},H.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},H.prototype._transform=function(U,k,z){var V;try{this.hashMode?this._update(U):this.push(this._update(U))}catch($){V=$}finally{z(V)}},H.prototype._flush=function(U){var k;try{this.push(this.__final())}catch(z){k=z}U(k)},H.prototype._finalOrDigest=function(U){var k=this.__final()||E.alloc(0);return U&&(k=this._toString(k,U,!0)),k},H.prototype._toString=function(U,k,z){if(this._decoder||(this._decoder=new j(k),this._encoding=k),this._encoding!==k)throw new Error("can't switch encodings");var V=this._decoder.write(U);return z&&(V+=this._decoder.end()),V},g.exports=H}),u5=F0((l,g)=>{var E=p0(),M=U9(),j=W9(),S=V9(),H=q5();function U(k){H.call(this,"digest"),this._hash=k}E(U,H),U.prototype._update=function(k){this._hash.update(k)},U.prototype._final=function(){return this._hash.digest()},g.exports=function(k){return k=k.toLowerCase(),k==="md5"?new M:k==="rmd160"||k==="ripemd160"?new j:new U(S(k))}}),I7=F0((l,g)=>{var E=p0(),M=d0().Buffer,j=q5(),S=M.alloc(128),H=64;function U(k,z){j.call(this,"digest"),typeof z=="string"&&(z=M.from(z)),this._alg=k,this._key=z,z.length>H?z=k(z):z.length<H&&(z=M.concat([z,S],H));for(var V=this._ipad=M.allocUnsafe(H),$=this._opad=M.allocUnsafe(H),T=0;T<H;T++)V[T]=z[T]^54,$[T]=z[T]^92;this._hash=[V]}E(U,j),U.prototype._update=function(k){this._hash.push(k)},U.prototype._final=function(){var k=this._alg(M.concat(this._hash));return this._alg(M.concat([this._opad,k]))},g.exports=U}),Q6=F0((l,g)=>{var E=U9();g.exports=function(M){return new E().update(M).digest()}}),H6=F0((l,g)=>{var E=p0(),M=I7(),j=q5(),S=d0().Buffer,H=Q6(),U=W9(),k=V9(),z=S.alloc(128);function V($,T){j.call(this,"digest"),typeof T=="string"&&(T=S.from(T));var N=$==="sha512"||$==="sha384"?128:64;if(this._alg=$,this._key=T,T.length>N){var W=$==="rmd160"?new U:k($);T=W.update(T).digest()}else T.length<N&&(T=S.concat([T,z],N));for(var D=this._ipad=S.allocUnsafe(N),I=this._opad=S.allocUnsafe(N),v=0;v<N;v++)D[v]=T[v]^54,I[v]=T[v]^92;this._hash=$==="rmd160"?new U:k($),this._hash.update(D)}E(V,j),V.prototype._update=function($){this._hash.update($)},V.prototype._final=function(){var $=this._hash.digest(),T=this._alg==="rmd160"?new U:k(this._alg);return T.update(this._opad).update($).digest()},g.exports=function($,T){return $=$.toLowerCase(),$==="rmd160"||$==="ripemd160"?new V("rmd160",T):$==="md5"?new M(H,T):new V($,T)}}),F6=F0((l,g)=>{g.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}),q7=F0((l,g)=>{g.exports=F6()}),G6=F0((l,g)=>{var E=Math.pow(2,30)-1;g.exports=function(M,j){if(typeof M!="number")throw new TypeError("Iterations not a number");if(M<0)throw new TypeError("Bad iterations");if(typeof j!="number")throw new TypeError("Key length not a number");if(j<0||j>E||j!==j)throw new TypeError("Bad key length")}}),P6=F0((l,g)=>{var E;global.process&&global.process.browser?E="utf-8":global.process&&global.process.version?(M=parseInt(process.version.split(".")[0].slice(1),10),E=M>=6?"utf-8":"binary"):E="utf-8";var M;g.exports=E}),Z6=F0((l,g)=>{var E=d0().Buffer;g.exports=function(M,j,S){if(E.isBuffer(M))return M;if(typeof M=="string")return E.from(M,j);if(ArrayBuffer.isView(M))return E.from(M.buffer);throw new TypeError(S+" must be a string, a Buffer, a typed array or a DataView")}}),$6=F0((l,g)=>{var E=Q6(),M=W9(),j=V9(),S=d0().Buffer,H=G6(),U=P6(),k=Z6(),z=S.alloc(128),V={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function $(W,D,I){var v=T(W),x=W==="sha512"||W==="sha384"?128:64;D.length>x?D=v(D):D.length<x&&(D=S.concat([D,z],x));for(var A=S.allocUnsafe(x+V[W]),y=S.allocUnsafe(x+V[W]),p=0;p<x;p++)A[p]=D[p]^54,y[p]=D[p]^92;var c=S.allocUnsafe(x+I+4);A.copy(c,0,0,x),this.ipad1=c,this.ipad2=A,this.opad=y,this.alg=W,this.blocksize=x,this.hash=v,this.size=V[W]}$.prototype.run=function(W,D){W.copy(D,this.blocksize);var I=this.hash(D);return I.copy(this.opad,this.blocksize),this.hash(this.opad)};function T(W){function D(v){return j(W).update(v).digest()}function I(v){return new M().update(v).digest()}return W==="rmd160"||W==="ripemd160"?I:W==="md5"?E:D}function N(W,D,I,v,x){H(I,v),W=k(W,U,"Password"),D=k(D,U,"Salt"),x=x||"sha1";var A=new $(x,W,D.length),y=S.allocUnsafe(v),p=S.allocUnsafe(D.length+4);D.copy(p,0,0,D.length);for(var c=0,n=V[x],i=Math.ceil(v/n),Y0=1;Y0<=i;Y0++){p.writeUInt32BE(Y0,D.length);for(var f=A.run(p,A.ipad1),P0=f,K=1;K<I;K++){P0=A.run(P0,A.ipad2);for(var C=0;C<n;C++)f[C]^=P0[C]}f.copy(y,c),c+=n}return y}g.exports=N}),B7=F0((l,g)=>{var E=d0().Buffer,M=G6(),j=P6(),S=$6(),H=Z6(),U,k=global.crypto&&global.crypto.subtle,z={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"},V=[];function $(I){if(global.process&&!global.process.browser||!k||!k.importKey||!k.deriveBits)return Promise.resolve(!1);if(V[I]!==void 0)return V[I];U=U||E.alloc(8);var v=W(U,U,10,128,I).then(function(){return!0}).catch(function(){return!1});return V[I]=v,v}var T;function N(){return T||(global.process&&global.process.nextTick?T=global.process.nextTick:global.queueMicrotask?T=global.queueMicrotask:global.setImmediate?T=global.setImmediate:T=global.setTimeout,T)}function W(I,v,x,A,y){return k.importKey("raw",I,{name:"PBKDF2"},!1,["deriveBits"]).then(function(p){return k.deriveBits({name:"PBKDF2",salt:v,iterations:x,hash:{name:y}},p,A<<3)}).then(function(p){return E.from(p)})}function D(I,v){I.then(function(x){N()(function(){v(null,x)})},function(x){N()(function(){v(x)})})}g.exports=function(I,v,x,A,y,p){typeof y=="function"&&(p=y,y=void 0),y=y||"sha1";var c=z[y.toLowerCase()];if(!c||typeof global.Promise!="function"){N()(function(){var n;try{n=S(I,v,x,A,y)}catch(i){return p(i)}p(null,n)});return}if(M(x,A),I=H(I,j,"Password"),v=H(v,j,"Salt"),typeof p!="function")throw new Error("No callback provided to pbkdf2");D($(c).then(function(n){return n?W(I,v,x,A,c):S(I,v,x,A,y)}),p)}}),j6=F0((l)=>{l.pbkdf2=B7(),l.pbkdf2Sync=$6()}),U6=F0((l)=>{l.readUInt32BE=function(j,S){var H=j[0+S]<<24|j[1+S]<<16|j[2+S]<<8|j[3+S];return H>>>0},l.writeUInt32BE=function(j,S,H){j[0+H]=S>>>24,j[1+H]=S>>>16&255,j[2+H]=S>>>8&255,j[3+H]=S&255},l.ip=function(j,S,H,U){for(var k=0,z=0,V=6;V>=0;V-=2){for(var $=0;$<=24;$+=8)k<<=1,k|=S>>>$+V&1;for(var $=0;$<=24;$+=8)k<<=1,k|=j>>>$+V&1}for(var V=6;V>=0;V-=2){for(var $=1;$<=25;$+=8)z<<=1,z|=S>>>$+V&1;for(var $=1;$<=25;$+=8)z<<=1,z|=j>>>$+V&1}H[U+0]=k>>>0,H[U+1]=z>>>0},l.rip=function(j,S,H,U){for(var k=0,z=0,V=0;V<4;V++)for(var $=24;$>=0;$-=8)k<<=1,k|=S>>>$+V&1,k<<=1,k|=j>>>$+V&1;for(var V=4;V<8;V++)for(var $=24;$>=0;$-=8)z<<=1,z|=S>>>$+V&1,z<<=1,z|=j>>>$+V&1;H[U+0]=k>>>0,H[U+1]=z>>>0},l.pc1=function(j,S,H,U){for(var k=0,z=0,V=7;V>=5;V--){for(var $=0;$<=24;$+=8)k<<=1,k|=S>>$+V&1;for(var $=0;$<=24;$+=8)k<<=1,k|=j>>$+V&1}for(var $=0;$<=24;$+=8)k<<=1,k|=S>>$+V&1;for(var V=1;V<=3;V++){for(var $=0;$<=24;$+=8)z<<=1,z|=S>>$+V&1;for(var $=0;$<=24;$+=8)z<<=1,z|=j>>$+V&1}for(var $=0;$<=24;$+=8)z<<=1,z|=j>>$+V&1;H[U+0]=k>>>0,H[U+1]=z>>>0},l.r28shl=function(j,S){return j<<S&268435455|j>>>28-S};var g=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];l.pc2=function(j,S,H,U){for(var k=0,z=0,V=g.length>>>1,$=0;$<V;$++)k<<=1,k|=j>>>g[$]&1;for(var $=V;$<g.length;$++)z<<=1,z|=S>>>g[$]&1;H[U+0]=k>>>0,H[U+1]=z>>>0},l.expand=function(j,S,H){var U=0,k=0;U=(j&1)<<5|j>>>27;for(var z=23;z>=15;z-=4)U<<=6,U|=j>>>z&63;for(var z=11;z>=3;z-=4)k|=j>>>z&63,k<<=6;k|=(j&31)<<1|j>>>31,S[H+0]=U>>>0,S[H+1]=k>>>0};var E=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];l.substitute=function(j,S){for(var H=0,U=0;U<4;U++){var k=j>>>18-U*6&63,z=E[U*64+k];H<<=4,H|=z}for(var U=0;U<4;U++){var k=S>>>18-U*6&63,z=E[256+U*64+k];H<<=4,H|=z}return H>>>0};var M=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];l.permute=function(j){for(var S=0,H=0;H<M.length;H++)S<<=1,S|=j>>>M[H]&1;return S>>>0},l.padSplit=function(j,S,H){for(var U=j.toString(2);U.length<S;)U="0"+U;for(var k=[],z=0;z<S;z+=H)k.push(U.slice(z,z+H));return k.join(" ")}}),O5=F0((l,g)=>{g.exports=E;function E(M,j){if(!M)throw new Error(j||"Assertion failed")}E.equal=function(M,j,S){if(M!=j)throw new Error(S||"Assertion failed: "+M+" != "+j)}}),k9=F0((l,g)=>{var E=O5();function M(j){this.options=j,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}g.exports=M,M.prototype._init=function(){},M.prototype.update=function(j){return j.length===0?[]:this.type==="decrypt"?this._updateDecrypt(j):this._updateEncrypt(j)},M.prototype._buffer=function(j,S){for(var H=Math.min(this.buffer.length-this.bufferOff,j.length-S),U=0;U<H;U++)this.buffer[this.bufferOff+U]=j[S+U];return this.bufferOff+=H,H},M.prototype._flushBuffer=function(j,S){return this._update(this.buffer,0,j,S),this.bufferOff=0,this.blockSize},M.prototype._updateEncrypt=function(j){var S=0,H=0,U=(this.bufferOff+j.length)/this.blockSize|0,k=new Array(U*this.blockSize);this.bufferOff!==0&&(S+=this._buffer(j,S),this.bufferOff===this.buffer.length&&(H+=this._flushBuffer(k,H)));for(var z=j.length-(j.length-S)%this.blockSize;S<z;S+=this.blockSize)this._update(j,S,k,H),H+=this.blockSize;for(;S<j.length;S++,this.bufferOff++)this.buffer[this.bufferOff]=j[S];return k},M.prototype._updateDecrypt=function(j){for(var S=0,H=0,U=Math.ceil((this.bufferOff+j.length)/this.blockSize)-1,k=new Array(U*this.blockSize);U>0;U--)S+=this._buffer(j,S),H+=this._flushBuffer(k,H);return S+=this._buffer(j,S),k},M.prototype.final=function(j){var S;j&&(S=this.update(j));var H;return this.type==="encrypt"?H=this._finalEncrypt():H=this._finalDecrypt(),S?S.concat(H):H},M.prototype._pad=function(j,S){if(S===0)return!1;for(;S<j.length;)j[S++]=0;return!0},M.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var j=new Array(this.blockSize);return this._update(this.buffer,0,j,0),j},M.prototype._unpad=function(j){return j},M.prototype._finalDecrypt=function(){E.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var j=new Array(this.blockSize);return this._flushBuffer(j,0),this._unpad(j)}}),W6=F0((l,g)=>{var E=O5(),M=p0(),j=U6(),S=k9();function H(){this.tmp=new Array(2),this.keys=null}function U(z){S.call(this,z);var V=new H;this._desState=V,this.deriveKeys(V,z.key)}M(U,S),g.exports=U,U.create=function(z){return new U(z)};var k=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];U.prototype.deriveKeys=function(z,V){z.keys=new Array(32),E.equal(V.length,this.blockSize,"Invalid key length");var $=j.readUInt32BE(V,0),T=j.readUInt32BE(V,4);j.pc1($,T,z.tmp,0),$=z.tmp[0],T=z.tmp[1];for(var N=0;N<z.keys.length;N+=2){var W=k[N>>>1];$=j.r28shl($,W),T=j.r28shl(T,W),j.pc2($,T,z.keys,N)}},U.prototype._update=function(z,V,$,T){var N=this._desState,W=j.readUInt32BE(z,V),D=j.readUInt32BE(z,V+4);j.ip(W,D,N.tmp,0),W=N.tmp[0],D=N.tmp[1],this.type==="encrypt"?this._encrypt(N,W,D,N.tmp,0):this._decrypt(N,W,D,N.tmp,0),W=N.tmp[0],D=N.tmp[1],j.writeUInt32BE($,W,T),j.writeUInt32BE($,D,T+4)},U.prototype._pad=function(z,V){for(var $=z.length-V,T=V;T<z.length;T++)z[T]=$;return!0},U.prototype._unpad=function(z){for(var V=z[z.length-1],$=z.length-V;$<z.length;$++)E.equal(z[$],V);return z.slice(0,z.length-V)},U.prototype._encrypt=function(z,V,$,T,N){for(var W=V,D=$,I=0;I<z.keys.length;I+=2){var v=z.keys[I],x=z.keys[I+1];j.expand(D,z.tmp,0),v^=z.tmp[0],x^=z.tmp[1];var A=j.substitute(v,x),y=j.permute(A),p=D;D=(W^y)>>>0,W=p}j.rip(D,W,T,N)},U.prototype._decrypt=function(z,V,$,T,N){for(var W=$,D=V,I=z.keys.length-2;I>=0;I-=2){var v=z.keys[I],x=z.keys[I+1];j.expand(W,z.tmp,0),v^=z.tmp[0],x^=z.tmp[1];var A=j.substitute(v,x),y=j.permute(A),p=W;W=(D^y)>>>0,D=p}j.rip(W,D,T,N)}}),R7=F0((l)=>{var g=O5(),E=p0(),M={};function j(H){g.equal(H.length,8,"Invalid IV length"),this.iv=new Array(8);for(var U=0;U<this.iv.length;U++)this.iv[U]=H[U]}function S(H){function U($){H.call(this,$),this._cbcInit()}E(U,H);for(var k=Object.keys(M),z=0;z<k.length;z++){var V=k[z];U.prototype[V]=M[V]}return U.create=function($){return new U($)},U}l.instantiate=S,M._cbcInit=function(){var H=new j(this.options.iv);this._cbcState=H},M._update=function(H,U,k,z){var V=this._cbcState,$=this.constructor.super_.prototype,T=V.iv;if(this.type==="encrypt"){for(var N=0;N<this.blockSize;N++)T[N]^=H[U+N];$._update.call(this,T,0,k,z);for(var N=0;N<this.blockSize;N++)T[N]=k[z+N]}else{$._update.call(this,H,U,k,z);for(var N=0;N<this.blockSize;N++)k[z+N]^=T[N];for(var N=0;N<this.blockSize;N++)T[N]=H[U+N]}}}),E7=F0((l,g)=>{var E=O5(),M=p0(),j=k9(),S=W6();function H(k,z){E.equal(z.length,24,"Invalid key length");var V=z.slice(0,8),$=z.slice(8,16),T=z.slice(16,24);k==="encrypt"?this.ciphers=[S.create({type:"encrypt",key:V}),S.create({type:"decrypt",key:$}),S.create({type:"encrypt",key:T})]:this.ciphers=[S.create({type:"decrypt",key:T}),S.create({type:"encrypt",key:$}),S.create({type:"decrypt",key:V})]}function U(k){j.call(this,k);var z=new H(this.type,this.options.key);this._edeState=z}M(U,j),g.exports=U,U.create=function(k){return new U(k)},U.prototype._update=function(k,z,V,$){var T=this._edeState;T.ciphers[0]._update(k,z,V,$),T.ciphers[1]._update(V,$,V,$),T.ciphers[2]._update(V,$,V,$)},U.prototype._pad=S.prototype._pad,U.prototype._unpad=S.prototype._unpad}),S7=F0((l)=>{l.utils=U6(),l.Cipher=k9(),l.DES=W6(),l.CBC=R7(),l.EDE=E7()}),x7=F0((l,g)=>{var E=q5(),M=S7(),j=p0(),S=d0().Buffer,H={"des-ede3-cbc":M.CBC.instantiate(M.EDE),"des-ede3":M.EDE,"des-ede-cbc":M.CBC.instantiate(M.EDE),"des-ede":M.EDE,"des-cbc":M.CBC.instantiate(M.DES),"des-ecb":M.DES};H.des=H["des-cbc"],H.des3=H["des-ede3-cbc"],g.exports=U,j(U,E);function U(k){E.call(this);var z=k.mode.toLowerCase(),V=H[z],$;k.decrypt?$="decrypt":$="encrypt";var T=k.key;S.isBuffer(T)||(T=S.from(T)),(z==="des-ede"||z==="des-ede-cbc")&&(T=S.concat([T,T.slice(0,8)]));var N=k.iv;S.isBuffer(N)||(N=S.from(N)),this._des=V.create({key:T,iv:N,type:$})}U.prototype._update=function(k){return S.from(this._des.update(k))},U.prototype._final=function(){return S.from(this._des.final())}}),A7=F0((l)=>{l.encrypt=function(g,E){return g._cipher.encryptBlock(E)},l.decrypt=function(g,E){return g._cipher.decryptBlock(E)}}),o5=F0((l,g)=>{g.exports=function(E,M){for(var j=Math.min(E.length,M.length),S=new Buffer(j),H=0;H<j;++H)S[H]=E[H]^M[H];return S}}),v7=F0((l)=>{var g=o5();l.encrypt=function(E,M){var j=g(M,E._prev);return E._prev=E._cipher.encryptBlock(j),E._prev},l.decrypt=function(E,M){var j=E._prev;E._prev=M;var S=E._cipher.decryptBlock(M);return g(S,j)}}),M7=F0((l)=>{var g=d0().Buffer,E=o5();function M(j,S,H){var U=S.length,k=E(S,j._cache);return j._cache=j._cache.slice(U),j._prev=g.concat([j._prev,H?S:k]),k}l.encrypt=function(j,S,H){for(var U=g.allocUnsafe(0),k;S.length;)if(j._cache.length===0&&(j._cache=j._cipher.encryptBlock(j._prev),j._prev=g.allocUnsafe(0)),j._cache.length<=S.length)k=j._cache.length,U=g.concat([U,M(j,S.slice(0,k),H)]),S=S.slice(k);else{U=g.concat([U,M(j,S,H)]);break}return U}}),_7=F0((l)=>{var g=d0().Buffer;function E(M,j,S){var H=M._cipher.encryptBlock(M._prev),U=H[0]^j;return M._prev=g.concat([M._prev.slice(1),g.from([S?j:U])]),U}l.encrypt=function(M,j,S){for(var H=j.length,U=g.allocUnsafe(H),k=-1;++k<H;)U[k]=E(M,j[k],S);return U}}),w7=F0((l)=>{var g=d0().Buffer;function E(j,S,H){for(var U,k=-1,z=8,V=0,$,T;++k<z;)U=j._cipher.encryptBlock(j._prev),$=S&1<<7-k?128:0,T=U[0]^$,V+=(T&128)>>k%8,j._prev=M(j._prev,H?$:T);return V}function M(j,S){var H=j.length,U=-1,k=g.allocUnsafe(j.length);for(j=g.concat([j,g.from([S])]);++U<H;)k[U]=j[U]<<1|j[U+1]>>7;return k}l.encrypt=function(j,S,H){for(var U=S.length,k=g.allocUnsafe(U),z=-1;++z<U;)k[z]=E(j,S[z],H);return k}}),y7=F0((l)=>{var g=o5();function E(M){return M._prev=M._cipher.encryptBlock(M._prev),M._prev}l.encrypt=function(M,j){for(;M._cache.length<j.length;)M._cache=Buffer.concat([M._cache,E(M)]);var S=M._cache.slice(0,j.length);return M._cache=M._cache.slice(j.length),g(j,S)}}),V6=F0((l,g)=>{function E(M){for(var j=M.length,S;j--;)if(S=M.readUInt8(j),S===255)M.writeUInt8(0,j);else{S++,M.writeUInt8(S,j);break}}g.exports=E}),d9=F0((l)=>{var g=o5(),E=d0().Buffer,M=V6();function j(H){var U=H._cipher.encryptBlockRaw(H._prev);return M(H._prev),U}var S=16;l.encrypt=function(H,U){var k=Math.ceil(U.length/S),z=H._cache.length;H._cache=E.concat([H._cache,E.allocUnsafe(k*S)]);for(var V=0;V<k;V++){var $=j(H),T=z+V*S;H._cache.writeUInt32BE($[0],T+0),H._cache.writeUInt32BE($[1],T+4),H._cache.writeUInt32BE($[2],T+8),H._cache.writeUInt32BE($[3],T+12)}var N=H._cache.slice(0,U.length);return H._cache=H._cache.slice(U.length),g(U,N)}}),z6=F0((l,g)=>{g.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}),I9=F0((l,g)=>{var E={ECB:A7(),CBC:v7(),CFB:M7(),CFB8:_7(),CFB1:w7(),OFB:y7(),CTR:d9(),GCM:d9()},M=z6();for(j in M)M[j].module=E[M[j].mode];var j;g.exports=M}),X9=F0((l,g)=>{var E=d0().Buffer;function M(z){E.isBuffer(z)||(z=E.from(z));for(var V=z.length/4|0,$=new Array(V),T=0;T<V;T++)$[T]=z.readUInt32BE(T*4);return $}function j(z){for(var V=0;V<z.length;z++)z[V]=0}function S(z,V,$,T,N){for(var W=$[0],D=$[1],I=$[2],v=$[3],x=z[0]^V[0],A=z[1]^V[1],y=z[2]^V[2],p=z[3]^V[3],c,n,i,Y0,f=4,P0=1;P0<N;P0++)c=W[x>>>24]^D[A>>>16&255]^I[y>>>8&255]^v[p&255]^V[f++],n=W[A>>>24]^D[y>>>16&255]^I[p>>>8&255]^v[x&255]^V[f++],i=W[y>>>24]^D[p>>>16&255]^I[x>>>8&255]^v[A&255]^V[f++],Y0=W[p>>>24]^D[x>>>16&255]^I[A>>>8&255]^v[y&255]^V[f++],x=c,A=n,y=i,p=Y0;return c=(T[x>>>24]<<24|T[A>>>16&255]<<16|T[y>>>8&255]<<8|T[p&255])^V[f++],n=(T[A>>>24]<<24|T[y>>>16&255]<<16|T[p>>>8&255]<<8|T[x&255])^V[f++],i=(T[y>>>24]<<24|T[p>>>16&255]<<16|T[x>>>8&255]<<8|T[A&255])^V[f++],Y0=(T[p>>>24]<<24|T[x>>>16&255]<<16|T[A>>>8&255]<<8|T[y&255])^V[f++],c=c>>>0,n=n>>>0,i=i>>>0,Y0=Y0>>>0,[c,n,i,Y0]}var H=[0,1,2,4,8,16,32,64,128,27,54],U=function(){for(var z=new Array(256),V=0;V<256;V++)V<128?z[V]=V<<1:z[V]=V<<1^283;for(var $=[],T=[],N=[[],[],[],[]],W=[[],[],[],[]],D=0,I=0,v=0;v<256;++v){var x=I^I<<1^I<<2^I<<3^I<<4;x=x>>>8^x&255^99,$[D]=x,T[x]=D;var A=z[D],y=z[A],p=z[y],c=z[x]*257^x*16843008;N[0][D]=c<<24|c>>>8,N[1][D]=c<<16|c>>>16,N[2][D]=c<<8|c>>>24,N[3][D]=c,c=p*16843009^y*65537^A*257^D*16843008,W[0][x]=c<<24|c>>>8,W[1][x]=c<<16|c>>>16,W[2][x]=c<<8|c>>>24,W[3][x]=c,D===0?D=I=1:(D=A^z[z[z[p^A]]],I^=z[z[I]])}return{SBOX:$,INV_SBOX:T,SUB_MIX:N,INV_SUB_MIX:W}}();function k(z){this._key=M(z),this._reset()}k.blockSize=16,k.keySize=32,k.prototype.blockSize=k.blockSize,k.prototype.keySize=k.keySize,k.prototype._reset=function(){for(var z=this._key,V=z.length,$=V+6,T=($+1)*4,N=[],W=0;W<V;W++)N[W]=z[W];for(W=V;W<T;W++){var D=N[W-1];W%V===0?(D=D<<8|D>>>24,D=U.SBOX[D>>>24]<<24|U.SBOX[D>>>16&255]<<16|U.SBOX[D>>>8&255]<<8|U.SBOX[D&255],D^=H[W/V|0]<<24):V>6&&W%V===4&&(D=U.SBOX[D>>>24]<<24|U.SBOX[D>>>16&255]<<16|U.SBOX[D>>>8&255]<<8|U.SBOX[D&255]),N[W]=N[W-V]^D}for(var I=[],v=0;v<T;v++){var x=T-v,A=N[x-(v%4?0:4)];v<4||x<=4?I[v]=A:I[v]=U.INV_SUB_MIX[0][U.SBOX[A>>>24]]^U.INV_SUB_MIX[1][U.SBOX[A>>>16&255]]^U.INV_SUB_MIX[2][U.SBOX[A>>>8&255]]^U.INV_SUB_MIX[3][U.SBOX[A&255]]}this._nRounds=$,this._keySchedule=N,this._invKeySchedule=I},k.prototype.encryptBlockRaw=function(z){return z=M(z),S(z,this._keySchedule,U.SUB_MIX,U.SBOX,this._nRounds)},k.prototype.encryptBlock=function(z){var V=this.encryptBlockRaw(z),$=E.allocUnsafe(16);return $.writeUInt32BE(V[0],0),$.writeUInt32BE(V[1],4),$.writeUInt32BE(V[2],8),$.writeUInt32BE(V[3],12),$},k.prototype.decryptBlock=function(z){z=M(z);var V=z[1];z[1]=z[3],z[3]=V;var $=S(z,this._invKeySchedule,U.INV_SUB_MIX,U.INV_SBOX,this._nRounds),T=E.allocUnsafe(16);return T.writeUInt32BE($[0],0),T.writeUInt32BE($[3],4),T.writeUInt32BE($[2],8),T.writeUInt32BE($[1],12),T},k.prototype.scrub=function(){j(this._keySchedule),j(this._invKeySchedule),j(this._key)},g.exports.AES=k}),g7=F0((l,g)=>{var E=d0().Buffer,M=E.alloc(16,0);function j(U){return[U.readUInt32BE(0),U.readUInt32BE(4),U.readUInt32BE(8),U.readUInt32BE(12)]}function S(U){var k=E.allocUnsafe(16);return k.writeUInt32BE(U[0]>>>0,0),k.writeUInt32BE(U[1]>>>0,4),k.writeUInt32BE(U[2]>>>0,8),k.writeUInt32BE(U[3]>>>0,12),k}function H(U){this.h=U,this.state=E.alloc(16,0),this.cache=E.allocUnsafe(0)}H.prototype.ghash=function(U){for(var k=-1;++k<U.length;)this.state[k]^=U[k];this._multiply()},H.prototype._multiply=function(){for(var U=j(this.h),k=[0,0,0,0],z,V,$,T=-1;++T<128;){for(V=(this.state[~~(T/8)]&1<<7-T%8)!==0,V&&(k[0]^=U[0],k[1]^=U[1],k[2]^=U[2],k[3]^=U[3]),$=(U[3]&1)!==0,z=3;z>0;z--)U[z]=U[z]>>>1|(U[z-1]&1)<<31;U[0]=U[0]>>>1,$&&(U[0]=U[0]^-520093696)}this.state=S(k)},H.prototype.update=function(U){this.cache=E.concat([this.cache,U]);for(var k;this.cache.length>=16;)k=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(k)},H.prototype.final=function(U,k){return this.cache.length&&this.ghash(E.concat([this.cache,M],16)),this.ghash(S([0,U,0,k])),this.state},g.exports=H}),O6=F0((l,g)=>{var E=X9(),M=d0().Buffer,j=q5(),S=p0(),H=g7(),U=o5(),k=V6();function z(T,N){var W=0;T.length!==N.length&&W++;for(var D=Math.min(T.length,N.length),I=0;I<D;++I)W+=T[I]^N[I];return W}function V(T,N,W){if(N.length===12)return T._finID=M.concat([N,M.from([0,0,0,1])]),M.concat([N,M.from([0,0,0,2])]);var D=new H(W),I=N.length,v=I%16;D.update(N),v&&(v=16-v,D.update(M.alloc(v,0))),D.update(M.alloc(8,0));var x=I*8,A=M.alloc(8);A.writeUIntBE(x,0,8),D.update(A),T._finID=D.state;var y=M.from(T._finID);return k(y),y}function $(T,N,W,D){j.call(this);var I=M.alloc(4,0);this._cipher=new E.AES(N);var v=this._cipher.encryptBlock(I);this._ghash=new H(v),W=V(this,W,v),this._prev=M.from(W),this._cache=M.allocUnsafe(0),this._secCache=M.allocUnsafe(0),this._decrypt=D,this._alen=0,this._len=0,this._mode=T,this._authTag=null,this._called=!1}S($,j),$.prototype._update=function(T){if(!this._called&&this._alen){var N=16-this._alen%16;N<16&&(N=M.alloc(N,0),this._ghash.update(N))}this._called=!0;var W=this._mode.encrypt(this,T);return this._decrypt?this._ghash.update(T):this._ghash.update(W),this._len+=T.length,W},$.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var T=U(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&z(T,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=T,this._cipher.scrub()},$.prototype.getAuthTag=function(){if(this._decrypt||!M.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},$.prototype.setAuthTag=function(T){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=T},$.prototype.setAAD=function(T){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(T),this._alen+=T.length},g.exports=$}),T6=F0((l,g)=>{var E=X9(),M=d0().Buffer,j=q5(),S=p0();function H(U,k,z,V){j.call(this),this._cipher=new E.AES(k),this._prev=M.from(z),this._cache=M.allocUnsafe(0),this._secCache=M.allocUnsafe(0),this._decrypt=V,this._mode=U}S(H,j),H.prototype._update=function(U){return this._mode.encrypt(this,U,this._decrypt)},H.prototype._final=function(){this._cipher.scrub()},g.exports=H}),C9=F0((l,g)=>{var E=d0().Buffer,M=U9();function j(S,H,U,k){if(E.isBuffer(S)||(S=E.from(S,"binary")),H&&(E.isBuffer(H)||(H=E.from(H,"binary")),H.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var z=U/8,V=E.alloc(z),$=E.alloc(k||0),T=E.alloc(0);z>0||k>0;){var N=new M;N.update(T),N.update(S),H&&N.update(H),T=N.digest();var W=0;if(z>0){var D=V.length-z;W=Math.min(z,T.length),T.copy(V,D,0,W),z-=W}if(W<T.length&&k>0){var I=$.length-k,v=Math.min(k,T.length-W);T.copy($,I,W,W+v),k-=v}}return T.fill(0),{key:V,iv:$}}g.exports=j}),m7=F0((l)=>{var g=I9(),E=O6(),M=d0().Buffer,j=T6(),S=q5(),H=X9(),U=C9(),k=p0();function z(W,D,I){S.call(this),this._cache=new $,this._cipher=new H.AES(D),this._prev=M.from(I),this._mode=W,this._autopadding=!0}k(z,S),z.prototype._update=function(W){this._cache.add(W);for(var D,I,v=[];D=this._cache.get();)I=this._mode.encrypt(this,D),v.push(I);return M.concat(v)};var V=M.alloc(16,16);z.prototype._final=function(){var W=this._cache.flush();if(this._autopadding)return W=this._mode.encrypt(this,W),this._cipher.scrub(),W;if(!W.equals(V))throw this._cipher.scrub(),new Error("data not multiple of block length")},z.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function $(){this.cache=M.allocUnsafe(0)}$.prototype.add=function(W){this.cache=M.concat([this.cache,W])},$.prototype.get=function(){if(this.cache.length>15){var W=this.cache.slice(0,16);return this.cache=this.cache.slice(16),W}return null},$.prototype.flush=function(){for(var W=16-this.cache.length,D=M.allocUnsafe(W),I=-1;++I<W;)D.writeUInt8(W,I);return M.concat([this.cache,D])};function T(W,D,I){var v=g[W.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof D=="string"&&(D=M.from(D)),D.length!==v.key/8)throw new TypeError("invalid key length "+D.length);if(typeof I=="string"&&(I=M.from(I)),v.mode!=="GCM"&&I.length!==v.iv)throw new TypeError("invalid iv length "+I.length);return v.type==="stream"?new j(v.module,D,I):v.type==="auth"?new E(v.module,D,I):new z(v.module,D,I)}function N(W,D){var I=g[W.toLowerCase()];if(!I)throw new TypeError("invalid suite type");var v=U(D,!1,I.key,I.iv);return T(W,v.key,v.iv)}l.createCipheriv=T,l.createCipher=N}),p7=F0((l)=>{var g=O6(),E=d0().Buffer,M=I9(),j=T6(),S=q5(),H=X9(),U=C9(),k=p0();function z(W,D,I){S.call(this),this._cache=new V,this._last=void 0,this._cipher=new H.AES(D),this._prev=E.from(I),this._mode=W,this._autopadding=!0}k(z,S),z.prototype._update=function(W){this._cache.add(W);for(var D,I,v=[];D=this._cache.get(this._autopadding);)I=this._mode.decrypt(this,D),v.push(I);return E.concat(v)},z.prototype._final=function(){var W=this._cache.flush();if(this._autopadding)return $(this._mode.decrypt(this,W));if(W)throw new Error("data not multiple of block length")},z.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function V(){this.cache=E.allocUnsafe(0)}V.prototype.add=function(W){this.cache=E.concat([this.cache,W])},V.prototype.get=function(W){var D;if(W){if(this.cache.length>16)return D=this.cache.slice(0,16),this.cache=this.cache.slice(16),D}else if(this.cache.length>=16)return D=this.cache.slice(0,16),this.cache=this.cache.slice(16),D;return null},V.prototype.flush=function(){if(this.cache.length)return this.cache};function $(W){var D=W[15];if(D<1||D>16)throw new Error("unable to decrypt data");for(var I=-1;++I<D;)if(W[I+(16-D)]!==D)throw new Error("unable to decrypt data");if(D!==16)return W.slice(0,16-D)}function T(W,D,I){var v=M[W.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof I=="string"&&(I=E.from(I)),v.mode!=="GCM"&&I.length!==v.iv)throw new TypeError("invalid iv length "+I.length);if(typeof D=="string"&&(D=E.from(D)),D.length!==v.key/8)throw new TypeError("invalid key length "+D.length);return v.type==="stream"?new j(v.module,D,I,!0):v.type==="auth"?new g(v.module,D,I,!0):new z(v.module,D,I)}function N(W,D){var I=M[W.toLowerCase()];if(!I)throw new TypeError("invalid suite type");var v=U(D,!1,I.key,I.iv);return T(W,v.key,v.iv)}l.createDecipher=N,l.createDecipheriv=T}),q9=F0((l)=>{var g=m7(),E=p7(),M=z6();function j(){return Object.keys(M)}l.createCipher=l.Cipher=g.createCipher,l.createCipheriv=l.Cipheriv=g.createCipheriv,l.createDecipher=l.Decipher=E.createDecipher,l.createDecipheriv=l.Decipheriv=E.createDecipheriv,l.listCiphers=l.getCiphers=j}),b7=F0((l)=>{l["des-ecb"]={key:8,iv:0},l["des-cbc"]=l.des={key:8,iv:8},l["des-ede3-cbc"]=l.des3={key:24,iv:8},l["des-ede3"]={key:24,iv:0},l["des-ede-cbc"]={key:16,iv:8},l["des-ede"]={key:16,iv:0}}),c7=F0((l)=>{var g=x7(),E=q9(),M=I9(),j=b7(),S=C9();function H($,T){$=$.toLowerCase();var N,W;if(M[$])N=M[$].key,W=M[$].iv;else if(j[$])N=j[$].key*8,W=j[$].iv;else throw new TypeError("invalid suite type");var D=S(T,!1,N,W);return k($,D.key,D.iv)}function U($,T){$=$.toLowerCase();var N,W;if(M[$])N=M[$].key,W=M[$].iv;else if(j[$])N=j[$].key*8,W=j[$].iv;else throw new TypeError("invalid suite type");var D=S(T,!1,N,W);return z($,D.key,D.iv)}function k($,T,N){if($=$.toLowerCase(),M[$])return E.createCipheriv($,T,N);if(j[$])return new g({key:T,iv:N,mode:$});throw new TypeError("invalid suite type")}function z($,T,N){if($=$.toLowerCase(),M[$])return E.createDecipheriv($,T,N);if(j[$])return new g({key:T,iv:N,mode:$,decrypt:!0});throw new TypeError("invalid suite type")}function V(){return Object.keys(j).concat(E.getCiphers())}l.createCipher=l.Cipher=H,l.createCipheriv=l.Cipheriv=k,l.createDecipher=l.Decipher=U,l.createDecipheriv=l.Decipheriv=z,l.listCiphers=l.getCiphers=V}),M5=F0(()=>{}),D6=F0((l,g)=>{(function(E,M){function j(K,C){if(!K)throw new Error(C||"Assertion failed")}function S(K,C){K.super_=C;var J=function(){};J.prototype=C.prototype,K.prototype=new J,K.prototype.constructor=K}function H(K,C,J){if(H.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((C==="le"||C==="be")&&(J=C,C=10),this._init(K||0,C||10,J||"be"))}typeof E=="object"?E.exports=H:M.BN=H,H.BN=H,H.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}H.isBN=function(K){return K instanceof H?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===H.wordSize&&Array.isArray(K.words)},H.max=function(K,C){return K.cmp(C)>0?K:C},H.min=function(K,C){return K.cmp(C)<0?K:C},H.prototype._init=function(K,C,J){if(typeof K=="number")return this._initNumber(K,C,J);if(typeof K=="object")return this._initArray(K,C,J);C==="hex"&&(C=16),j(C===(C|0)&&C>=2&&C<=36),K=K.toString().replace(/\s+/g,"");var Y=0;K[0]==="-"&&(Y++,this.negative=1),Y<K.length&&(C===16?this._parseHex(K,Y,J):(this._parseBase(K,C,Y),J==="le"&&this._initArray(this.toArray(),C,J)))},H.prototype._initNumber=function(K,C,J){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(j(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),J==="le"&&this._initArray(this.toArray(),C,J)},H.prototype._initArray=function(K,C,J){if(j(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q,P,Z=0;if(J==="be")for(Y=K.length-1,Q=0;Y>=0;Y-=3)P=K[Y]|K[Y-1]<<8|K[Y-2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);else if(J==="le")for(Y=0,Q=0;Y<K.length;Y+=3)P=K[Y]|K[Y+1]<<8|K[Y+2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);return this.strip()};function k(K,C){var J=K.charCodeAt(C);return J>=65&&J<=70?J-55:J>=97&&J<=102?J-87:J-48&15}function z(K,C,J){var Y=k(K,J);return J-1>=C&&(Y|=k(K,J-1)<<4),Y}H.prototype._parseHex=function(K,C,J){this.length=Math.ceil((K.length-C)/6),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q=0,P=0,Z;if(J==="be")for(Y=K.length-1;Y>=C;Y-=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8;else{var F=K.length-C;for(Y=F%2===0?C+1:C;Y<K.length;Y+=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8}this.strip()};function V(K,C,J,Y){for(var Q=0,P=Math.min(K.length,J),Z=C;Z<P;Z++){var F=K.charCodeAt(Z)-48;Q*=Y,F>=49?Q+=F-49+10:F>=17?Q+=F-17+10:Q+=F}return Q}H.prototype._parseBase=function(K,C,J){this.words=[0],this.length=1;for(var Y=0,Q=1;Q<=67108863;Q*=C)Y++;Y--,Q=Q/C|0;for(var P=K.length-J,Z=P%Y,F=Math.min(P,P-Z)+J,X=0,G=J;G<F;G+=Y)X=V(K,G,G+Y,C),this.imuln(Q),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(Z!==0){var R=1;for(X=V(K,G,K.length,C),G=0;G<Z;G++)R*=C;this.imuln(R),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},H.prototype.copy=function(K){K.words=new Array(this.length);for(var C=0;C<this.length;C++)K.words[C]=this.words[C];K.length=this.length,K.negative=this.negative,K.red=this.red},H.prototype.clone=function(){var K=new H(null);return this.copy(K),K},H.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[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],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(K,C){K=K||10,C=C|0||1;var J;if(K===16||K==="hex"){J="";for(var Y=0,Q=0,P=0;P<this.length;P++){var Z=this.words[P],F=((Z<<Y|Q)&16777215).toString(16);Q=Z>>>24-Y&16777215,Q!==0||P!==this.length-1?J=$[6-F.length]+F+J:J=F+J,Y+=2,Y>=26&&(Y-=26,P--)}for(Q!==0&&(J=Q.toString(16)+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}if(K===(K|0)&&K>=2&&K<=36){var X=T[K],G=N[K];J="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(K);R=R.idivn(G),R.isZero()?J=L+J:J=$[X-L.length]+L+J}for(this.isZero()&&(J="0"+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(K,C){return j(typeof U<"u"),this.toArrayLike(U,K,C)},H.prototype.toArray=function(K,C){return this.toArrayLike(Array,K,C)},H.prototype.toArrayLike=function(K,C,J){var Y=this.byteLength(),Q=J||Math.max(1,Y);j(Y<=Q,"byte array longer than desired length"),j(Q>0,"Requested array length <= 0"),this.strip();var P=C==="le",Z=new K(Q),F,X,G=this.clone();if(P){for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[X]=F;for(;X<Q;X++)Z[X]=0}else{for(X=0;X<Q-Y;X++)Z[X]=0;for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[Q-X-1]=F}return Z},Math.clz32?H.prototype._countBits=function(K){return 32-Math.clz32(K)}:H.prototype._countBits=function(K){var C=K,J=0;return C>=4096&&(J+=13,C>>>=13),C>=64&&(J+=7,C>>>=7),C>=8&&(J+=4,C>>>=4),C>=2&&(J+=2,C>>>=2),J+C},H.prototype._zeroBits=function(K){if(K===0)return 26;var C=K,J=0;return(C&8191)===0&&(J+=13,C>>>=13),(C&127)===0&&(J+=7,C>>>=7),(C&15)===0&&(J+=4,C>>>=4),(C&3)===0&&(J+=2,C>>>=2),(C&1)===0&&J++,J},H.prototype.bitLength=function(){var K=this.words[this.length-1],C=this._countBits(K);return(this.length-1)*26+C};function W(K){for(var C=new Array(K.bitLength()),J=0;J<C.length;J++){var Y=J/26|0,Q=J%26;C[J]=(K.words[Y]&1<<Q)>>>Q}return C}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,C=0;C<this.length;C++){var J=this._zeroBits(this.words[C]);if(K+=J,J!==26)break}return K},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},H.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var C=0;C<K.length;C++)this.words[C]=this.words[C]|K.words[C];return this.strip()},H.prototype.ior=function(K){return j((this.negative|K.negative)===0),this.iuor(K)},H.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},H.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},H.prototype.iuand=function(K){var C;this.length>K.length?C=K:C=this;for(var J=0;J<C.length;J++)this.words[J]=this.words[J]&K.words[J];return this.length=C.length,this.strip()},H.prototype.iand=function(K){return j((this.negative|K.negative)===0),this.iuand(K)},H.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},H.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},H.prototype.iuxor=function(K){var C,J;this.length>K.length?(C=this,J=K):(C=K,J=this);for(var Y=0;Y<J.length;Y++)this.words[Y]=C.words[Y]^J.words[Y];if(this!==C)for(;Y<C.length;Y++)this.words[Y]=C.words[Y];return this.length=C.length,this.strip()},H.prototype.ixor=function(K){return j((this.negative|K.negative)===0),this.iuxor(K)},H.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},H.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},H.prototype.inotn=function(K){j(typeof K=="number"&&K>=0);var C=Math.ceil(K/26)|0,J=K%26;this._expand(C),J>0&&C--;for(var Y=0;Y<C;Y++)this.words[Y]=~this.words[Y]&67108863;return J>0&&(this.words[Y]=~this.words[Y]&67108863>>26-J),this.strip()},H.prototype.notn=function(K){return this.clone().inotn(K)},H.prototype.setn=function(K,C){j(typeof K=="number"&&K>=0);var J=K/26|0,Y=K%26;return this._expand(J+1),C?this.words[J]=this.words[J]|1<<Y:this.words[J]=this.words[J]&~(1<<Y),this.strip()},H.prototype.iadd=function(K){var C;if(this.negative!==0&&K.negative===0)return this.negative=0,C=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,C=this.isub(K),K.negative=1,C._normSign();var J,Y;this.length>K.length?(J=this,Y=K):(J=K,Y=this);for(var Q=0,P=0;P<Y.length;P++)C=(J.words[P]|0)+(Y.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;for(;Q!==0&&P<J.length;P++)C=(J.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;if(this.length=J.length,Q!==0)this.words[this.length]=Q,this.length++;else if(J!==this)for(;P<J.length;P++)this.words[P]=J.words[P];return this},H.prototype.add=function(K){var C;return K.negative!==0&&this.negative===0?(K.negative=0,C=this.sub(K),K.negative^=1,C):K.negative===0&&this.negative!==0?(this.negative=0,C=K.sub(this),this.negative=1,C):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},H.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var C=this.iadd(K);return K.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var J=this.cmp(K);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Y,Q;J>0?(Y=this,Q=K):(Y=K,Q=this);for(var P=0,Z=0;Z<Q.length;Z++)C=(Y.words[Z]|0)-(Q.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;for(;P!==0&&Z<Y.length;Z++)C=(Y.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;if(P===0&&Z<Y.length&&Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this.length=Math.max(this.length,Z),Y!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(K){return this.clone().isub(K)};function D(K,C,J){J.negative=C.negative^K.negative;var Y=K.length+C.length|0;J.length=Y,Y=Y-1|0;var Q=K.words[0]|0,P=C.words[0]|0,Z=Q*P,F=Z&67108863,X=Z/67108864|0;J.words[0]=F;for(var G=1;G<Y;G++){for(var R=X>>>26,L=X&67108863,_=Math.min(G,C.length-1),s=Math.max(0,G-K.length+1);s<=_;s++){var r=G-s|0;Q=K.words[r]|0,P=C.words[s]|0,Z=Q*P+L,R+=Z/67108864|0,L=Z&67108863}J.words[G]=L|0,X=R|0}return X!==0?J.words[G]=X|0:J.length--,J.strip()}var I=function(K,C,J){var Y=K.words,Q=C.words,P=J.words,Z=0,F,X,G,R=Y[0]|0,L=R&8191,_=R>>>13,s=Y[1]|0,r=s&8191,C0=s>>>13,u=Y[2]|0,d=u&8191,a=u>>>13,V0=Y[3]|0,K0=V0&8191,Q0=V0>>>13,w=Y[4]|0,q=w&8191,m=w>>>13,e=Y[5]|0,X0=e&8191,t=e>>>13,_0=Y[6]|0,H0=_0&8191,G0=_0>>>13,w0=Y[7]|0,W0=w0&8191,Z0=w0>>>13,c0=Y[8]|0,O=c0&8191,B=c0>>>13,b=Y[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,J0=z0&8191,$0=z0>>>13,b0=Q[1]|0,U0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,F5=Q[3]|0,T0=F5&8191,O0=F5>>>13,l0=Q[4]|0,L0=l0&8191,k0=l0>>>13,G5=Q[5]|0,I0=G5&8191,q0=G5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,Z5=Q[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=Q[8]|0,x0=$5&8191,A0=$5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;J.negative=K.negative^C.negative,J.length=19,F=Math.imul(L,J0),X=Math.imul(L,$0),X=X+Math.imul(_,J0)|0,G=Math.imul(_,$0);var Q5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,F=Math.imul(r,J0),X=Math.imul(r,$0),X=X+Math.imul(C0,J0)|0,G=Math.imul(C0,$0),F=F+Math.imul(L,U0)|0,X=X+Math.imul(L,j0)|0,X=X+Math.imul(_,U0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(g0>>>26)|0,g0&=67108863,F=Math.imul(d,J0),X=Math.imul(d,$0),X=X+Math.imul(a,J0)|0,G=Math.imul(a,$0),F=F+Math.imul(r,U0)|0,X=X+Math.imul(r,j0)|0,X=X+Math.imul(C0,U0)|0,G=G+Math.imul(C0,j0)|0,F=F+Math.imul(L,D0)|0,X=X+Math.imul(L,N0)|0,X=X+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,F=Math.imul(K0,J0),X=Math.imul(K0,$0),X=X+Math.imul(Q0,J0)|0,G=Math.imul(Q0,$0),F=F+Math.imul(d,U0)|0,X=X+Math.imul(d,j0)|0,X=X+Math.imul(a,U0)|0,G=G+Math.imul(a,j0)|0,F=F+Math.imul(r,D0)|0,X=X+Math.imul(r,N0)|0,X=X+Math.imul(C0,D0)|0,G=G+Math.imul(C0,N0)|0,F=F+Math.imul(L,T0)|0,X=X+Math.imul(L,O0)|0,X=X+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(h0>>>26)|0,h0&=67108863,F=Math.imul(q,J0),X=Math.imul(q,$0),X=X+Math.imul(m,J0)|0,G=Math.imul(m,$0),F=F+Math.imul(K0,U0)|0,X=X+Math.imul(K0,j0)|0,X=X+Math.imul(Q0,U0)|0,G=G+Math.imul(Q0,j0)|0,F=F+Math.imul(d,D0)|0,X=X+Math.imul(d,N0)|0,X=X+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,F=F+Math.imul(r,T0)|0,X=X+Math.imul(r,O0)|0,X=X+Math.imul(C0,T0)|0,G=G+Math.imul(C0,O0)|0,F=F+Math.imul(L,L0)|0,X=X+Math.imul(L,k0)|0,X=X+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,F=Math.imul(X0,J0),X=Math.imul(X0,$0),X=X+Math.imul(t,J0)|0,G=Math.imul(t,$0),F=F+Math.imul(q,U0)|0,X=X+Math.imul(q,j0)|0,X=X+Math.imul(m,U0)|0,G=G+Math.imul(m,j0)|0,F=F+Math.imul(K0,D0)|0,X=X+Math.imul(K0,N0)|0,X=X+Math.imul(Q0,D0)|0,G=G+Math.imul(Q0,N0)|0,F=F+Math.imul(d,T0)|0,X=X+Math.imul(d,O0)|0,X=X+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,F=F+Math.imul(r,L0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(C0,L0)|0,G=G+Math.imul(C0,k0)|0,F=F+Math.imul(L,I0)|0,X=X+Math.imul(L,q0)|0,X=X+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,F=Math.imul(H0,J0),X=Math.imul(H0,$0),X=X+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),F=F+Math.imul(X0,U0)|0,X=X+Math.imul(X0,j0)|0,X=X+Math.imul(t,U0)|0,G=G+Math.imul(t,j0)|0,F=F+Math.imul(q,D0)|0,X=X+Math.imul(q,N0)|0,X=X+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,F=F+Math.imul(K0,T0)|0,X=X+Math.imul(K0,O0)|0,X=X+Math.imul(Q0,T0)|0,G=G+Math.imul(Q0,O0)|0,F=F+Math.imul(d,L0)|0,X=X+Math.imul(d,k0)|0,X=X+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,F=F+Math.imul(r,I0)|0,X=X+Math.imul(r,q0)|0,X=X+Math.imul(C0,I0)|0,G=G+Math.imul(C0,q0)|0,F=F+Math.imul(L,B0)|0,X=X+Math.imul(L,R0)|0,X=X+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,F=Math.imul(W0,J0),X=Math.imul(W0,$0),X=X+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),F=F+Math.imul(H0,U0)|0,X=X+Math.imul(H0,j0)|0,X=X+Math.imul(G0,U0)|0,G=G+Math.imul(G0,j0)|0,F=F+Math.imul(X0,D0)|0,X=X+Math.imul(X0,N0)|0,X=X+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,F=F+Math.imul(q,T0)|0,X=X+Math.imul(q,O0)|0,X=X+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,F=F+Math.imul(K0,L0)|0,X=X+Math.imul(K0,k0)|0,X=X+Math.imul(Q0,L0)|0,G=G+Math.imul(Q0,k0)|0,F=F+Math.imul(d,I0)|0,X=X+Math.imul(d,q0)|0,X=X+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,F=F+Math.imul(r,B0)|0,X=X+Math.imul(r,R0)|0,X=X+Math.imul(C0,B0)|0,G=G+Math.imul(C0,R0)|0,F=F+Math.imul(L,E0)|0,X=X+Math.imul(L,S0)|0,X=X+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,F=Math.imul(O,J0),X=Math.imul(O,$0),X=X+Math.imul(B,J0)|0,G=Math.imul(B,$0),F=F+Math.imul(W0,U0)|0,X=X+Math.imul(W0,j0)|0,X=X+Math.imul(Z0,U0)|0,G=G+Math.imul(Z0,j0)|0,F=F+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,F=F+Math.imul(X0,T0)|0,X=X+Math.imul(X0,O0)|0,X=X+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,F=F+Math.imul(q,L0)|0,X=X+Math.imul(q,k0)|0,X=X+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,F=F+Math.imul(K0,I0)|0,X=X+Math.imul(K0,q0)|0,X=X+Math.imul(Q0,I0)|0,G=G+Math.imul(Q0,q0)|0,F=F+Math.imul(d,B0)|0,X=X+Math.imul(d,R0)|0,X=X+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,F=F+Math.imul(r,E0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(C0,E0)|0,G=G+Math.imul(C0,S0)|0,F=F+Math.imul(L,x0)|0,X=X+Math.imul(L,A0)|0,X=X+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,F=Math.imul(h,J0),X=Math.imul(h,$0),X=X+Math.imul(o,J0)|0,G=Math.imul(o,$0),F=F+Math.imul(O,U0)|0,X=X+Math.imul(O,j0)|0,X=X+Math.imul(B,U0)|0,G=G+Math.imul(B,j0)|0,F=F+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,F=F+Math.imul(H0,T0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,F=F+Math.imul(X0,L0)|0,X=X+Math.imul(X0,k0)|0,X=X+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,F=F+Math.imul(q,I0)|0,X=X+Math.imul(q,q0)|0,X=X+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,F=F+Math.imul(K0,B0)|0,X=X+Math.imul(K0,R0)|0,X=X+Math.imul(Q0,B0)|0,G=G+Math.imul(Q0,R0)|0,F=F+Math.imul(d,E0)|0,X=X+Math.imul(d,S0)|0,X=X+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,F=F+Math.imul(r,x0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(C0,x0)|0,G=G+Math.imul(C0,A0)|0,F=F+Math.imul(L,v0)|0,X=X+Math.imul(L,M0)|0,X=X+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,F=Math.imul(h,U0),X=Math.imul(h,j0),X=X+Math.imul(o,U0)|0,G=Math.imul(o,j0),F=F+Math.imul(O,D0)|0,X=X+Math.imul(O,N0)|0,X=X+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,F=F+Math.imul(W0,T0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,F=F+Math.imul(H0,L0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,F=F+Math.imul(X0,I0)|0,X=X+Math.imul(X0,q0)|0,X=X+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,F=F+Math.imul(q,B0)|0,X=X+Math.imul(q,R0)|0,X=X+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,F=F+Math.imul(K0,E0)|0,X=X+Math.imul(K0,S0)|0,X=X+Math.imul(Q0,E0)|0,G=G+Math.imul(Q0,S0)|0,F=F+Math.imul(d,x0)|0,X=X+Math.imul(d,A0)|0,X=X+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,F=F+Math.imul(r,v0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(C0,v0)|0,G=G+Math.imul(C0,M0)|0;var r0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,F=Math.imul(h,D0),X=Math.imul(h,N0),X=X+Math.imul(o,D0)|0,G=Math.imul(o,N0),F=F+Math.imul(O,T0)|0,X=X+Math.imul(O,O0)|0,X=X+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,F=F+Math.imul(W0,L0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,F=F+Math.imul(H0,I0)|0,X=X+Math.imul(H0,q0)|0,X=X+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,F=F+Math.imul(X0,B0)|0,X=X+Math.imul(X0,R0)|0,X=X+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,F=F+Math.imul(q,E0)|0,X=X+Math.imul(q,S0)|0,X=X+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,F=F+Math.imul(K0,x0)|0,X=X+Math.imul(K0,A0)|0,X=X+Math.imul(Q0,x0)|0,G=G+Math.imul(Q0,A0)|0,F=F+Math.imul(d,v0)|0,X=X+Math.imul(d,M0)|0,X=X+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,F=Math.imul(h,T0),X=Math.imul(h,O0),X=X+Math.imul(o,T0)|0,G=Math.imul(o,O0),F=F+Math.imul(O,L0)|0,X=X+Math.imul(O,k0)|0,X=X+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,F=F+Math.imul(W0,I0)|0,X=X+Math.imul(W0,q0)|0,X=X+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,F=F+Math.imul(H0,B0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,F=F+Math.imul(X0,E0)|0,X=X+Math.imul(X0,S0)|0,X=X+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,F=F+Math.imul(q,x0)|0,X=X+Math.imul(q,A0)|0,X=X+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,F=F+Math.imul(K0,v0)|0,X=X+Math.imul(K0,M0)|0,X=X+Math.imul(Q0,v0)|0,G=G+Math.imul(Q0,M0)|0;var t0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,F=Math.imul(h,L0),X=Math.imul(h,k0),X=X+Math.imul(o,L0)|0,G=Math.imul(o,k0),F=F+Math.imul(O,I0)|0,X=X+Math.imul(O,q0)|0,X=X+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,F=F+Math.imul(W0,B0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,F=F+Math.imul(H0,E0)|0,X=X+Math.imul(H0,S0)|0,X=X+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,F=F+Math.imul(X0,x0)|0,X=X+Math.imul(X0,A0)|0,X=X+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,F=F+Math.imul(q,v0)|0,X=X+Math.imul(q,M0)|0,X=X+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,F=Math.imul(h,I0),X=Math.imul(h,q0),X=X+Math.imul(o,I0)|0,G=Math.imul(o,q0),F=F+Math.imul(O,B0)|0,X=X+Math.imul(O,R0)|0,X=X+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,F=F+Math.imul(W0,E0)|0,X=X+Math.imul(W0,S0)|0,X=X+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,F=F+Math.imul(H0,x0)|0,X=X+Math.imul(H0,A0)|0,X=X+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,F=F+Math.imul(X0,v0)|0,X=X+Math.imul(X0,M0)|0,X=X+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var K5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,F=Math.imul(h,B0),X=Math.imul(h,R0),X=X+Math.imul(o,B0)|0,G=Math.imul(o,R0),F=F+Math.imul(O,E0)|0,X=X+Math.imul(O,S0)|0,X=X+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,F=F+Math.imul(W0,x0)|0,X=X+Math.imul(W0,A0)|0,X=X+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,F=F+Math.imul(H0,v0)|0,X=X+Math.imul(H0,M0)|0,X=X+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var X5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,F=Math.imul(h,E0),X=Math.imul(h,S0),X=X+Math.imul(o,E0)|0,G=Math.imul(o,S0),F=F+Math.imul(O,x0)|0,X=X+Math.imul(O,A0)|0,X=X+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,F=F+Math.imul(W0,v0)|0,X=X+Math.imul(W0,M0)|0,X=X+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var C5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(C5>>>26)|0,C5&=67108863,F=Math.imul(h,x0),X=Math.imul(h,A0),X=X+Math.imul(o,x0)|0,G=Math.imul(o,A0),F=F+Math.imul(O,v0)|0,X=X+Math.imul(O,M0)|0,X=X+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var Y5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,F=Math.imul(h,v0),X=Math.imul(h,M0),X=X+Math.imul(o,v0)|0,G=Math.imul(o,M0);var J5=(Z+F|0)+((X&8191)<<13)|0;return Z=(G+(X>>>13)|0)+(J5>>>26)|0,J5&=67108863,P[0]=Q5,P[1]=g0,P[2]=m0,P[3]=h0,P[4]=u0,P[5]=o0,P[6]=s0,P[7]=a0,P[8]=f0,P[9]=n0,P[10]=r0,P[11]=i0,P[12]=t0,P[13]=e0,P[14]=K5,P[15]=X5,P[16]=C5,P[17]=Y5,P[18]=J5,Z!==0&&(P[19]=Z,J.length++),J};Math.imul||(I=D);function v(K,C,J){J.negative=C.negative^K.negative,J.length=K.length+C.length;for(var Y=0,Q=0,P=0;P<J.length-1;P++){var Z=Q;Q=0;for(var F=Y&67108863,X=Math.min(P,C.length-1),G=Math.max(0,P-K.length+1);G<=X;G++){var R=P-G,L=K.words[R]|0,_=C.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+F|0,F=r&67108863,Z=Z+(r>>>26)|0,Q+=Z>>>26,Z&=67108863}J.words[P]=F,Y=Z,Z=Q}return Y!==0?J.words[P]=Y:J.length--,J.strip()}function x(K,C,J){var Y=new A;return Y.mulp(K,C,J)}H.prototype.mulTo=function(K,C){var J,Y=this.length+K.length;return this.length===10&&K.length===10?J=I(this,K,C):Y<63?J=D(this,K,C):Y<1024?J=v(this,K,C):J=x(this,K,C),J};function A(K,C){this.x=K,this.y=C}A.prototype.makeRBT=function(K){for(var C=new Array(K),J=H.prototype._countBits(K)-1,Y=0;Y<K;Y++)C[Y]=this.revBin(Y,J,K);return C},A.prototype.revBin=function(K,C,J){if(K===0||K===J-1)return K;for(var Y=0,Q=0;Q<C;Q++)Y|=(K&1)<<C-Q-1,K>>=1;return Y},A.prototype.permute=function(K,C,J,Y,Q,P){for(var Z=0;Z<P;Z++)Y[Z]=C[K[Z]],Q[Z]=J[K[Z]]},A.prototype.transform=function(K,C,J,Y,Q,P){this.permute(P,K,C,J,Y,Q);for(var Z=1;Z<Q;Z<<=1)for(var F=Z<<1,X=Math.cos(2*Math.PI/F),G=Math.sin(2*Math.PI/F),R=0;R<Q;R+=F)for(var L=X,_=G,s=0;s<Z;s++){var r=J[R+s],C0=Y[R+s],u=J[R+s+Z],d=Y[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,J[R+s]=r+u,Y[R+s]=C0+d,J[R+s+Z]=r-u,Y[R+s+Z]=C0-d,s!==F&&(a=X*L-G*_,_=X*_+G*L,L=a)}},A.prototype.guessLen13b=function(K,C){var J=Math.max(C,K)|1,Y=J&1,Q=0;for(J=J/2|0;J;J=J>>>1)Q++;return 1<<Q+1+Y},A.prototype.conjugate=function(K,C,J){if(!(J<=1))for(var Y=0;Y<J/2;Y++){var Q=K[Y];K[Y]=K[J-Y-1],K[J-Y-1]=Q,Q=C[Y],C[Y]=-C[J-Y-1],C[J-Y-1]=-Q}},A.prototype.normalize13b=function(K,C){for(var J=0,Y=0;Y<C/2;Y++){var Q=Math.round(K[2*Y+1]/C)*8192+Math.round(K[2*Y]/C)+J;K[Y]=Q&67108863,Q<67108864?J=0:J=Q/67108864|0}return K},A.prototype.convert13b=function(K,C,J,Y){for(var Q=0,P=0;P<C;P++)Q=Q+(K[P]|0),J[2*P]=Q&8191,Q=Q>>>13,J[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*C;P<Y;++P)J[P]=0;j(Q===0),j((Q&-8192)===0)},A.prototype.stub=function(K){for(var C=new Array(K),J=0;J<K;J++)C[J]=0;return C},A.prototype.mulp=function(K,C,J){var Y=2*this.guessLen13b(K.length,C.length),Q=this.makeRBT(Y),P=this.stub(Y),Z=new Array(Y),F=new Array(Y),X=new Array(Y),G=new Array(Y),R=new Array(Y),L=new Array(Y),_=J.words;_.length=Y,this.convert13b(K.words,K.length,Z,Y),this.convert13b(C.words,C.length,G,Y),this.transform(Z,P,F,X,Y,Q),this.transform(G,P,R,L,Y,Q);for(var s=0;s<Y;s++){var r=F[s]*R[s]-X[s]*L[s];X[s]=F[s]*L[s]+X[s]*R[s],F[s]=r}return this.conjugate(F,X,Y),this.transform(F,X,_,P,Y,Q),this.conjugate(_,P,Y),this.normalize13b(_,Y),J.negative=K.negative^C.negative,J.length=K.length+C.length,J.strip()},H.prototype.mul=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),this.mulTo(K,C)},H.prototype.mulf=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),x(this,K,C)},H.prototype.imul=function(K){return this.clone().mulTo(K,this)},H.prototype.imuln=function(K){j(typeof K=="number"),j(K<67108864);for(var C=0,J=0;J<this.length;J++){var Y=(this.words[J]|0)*K,Q=(Y&67108863)+(C&67108863);C>>=26,C+=Y/67108864|0,C+=Q>>>26,this.words[J]=Q&67108863}return C!==0&&(this.words[J]=C,this.length++),this},H.prototype.muln=function(K){return this.clone().imuln(K)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(K){var C=W(K);if(C.length===0)return new H(1);for(var J=this,Y=0;Y<C.length&&C[Y]===0;Y++,J=J.sqr());if(++Y<C.length)for(var Q=J.sqr();Y<C.length;Y++,Q=Q.sqr())C[Y]!==0&&(J=J.mul(Q));return J},H.prototype.iushln=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=67108863>>>26-C<<26-C,Q;if(C!==0){var P=0;for(Q=0;Q<this.length;Q++){var Z=this.words[Q]&Y,F=(this.words[Q]|0)-Z<<C;this.words[Q]=F|P,P=Z>>>26-C}P&&(this.words[Q]=P,this.length++)}if(J!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+J]=this.words[Q];for(Q=0;Q<J;Q++)this.words[Q]=0;this.length+=J}return this.strip()},H.prototype.ishln=function(K){return j(this.negative===0),this.iushln(K)},H.prototype.iushrn=function(K,C,J){j(typeof K=="number"&&K>=0);var Y;C?Y=(C-C%26)/26:Y=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),Z=67108863^67108863>>>Q<<Q,F=J;if(Y-=P,Y=Math.max(0,Y),F){for(var X=0;X<P;X++)F.words[X]=this.words[X];F.length=P}if(P!==0)if(this.length>P)for(this.length-=P,X=0;X<this.length;X++)this.words[X]=this.words[X+P];else this.words[0]=0,this.length=1;var G=0;for(X=this.length-1;X>=0&&(G!==0||X>=Y);X--){var R=this.words[X]|0;this.words[X]=G<<26-Q|R>>>Q,G=R&Z}return F&&G!==0&&(F.words[F.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(K,C,J){return j(this.negative===0),this.iushrn(K,C,J)},H.prototype.shln=function(K){return this.clone().ishln(K)},H.prototype.ushln=function(K){return this.clone().iushln(K)},H.prototype.shrn=function(K){return this.clone().ishrn(K)},H.prototype.ushrn=function(K){return this.clone().iushrn(K)},H.prototype.testn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return!1;var Q=this.words[J];return!!(Q&Y)},H.prototype.imaskn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(C!==0&&J++,this.length=Math.min(J,this.length),C!==0){var Y=67108863^67108863>>>C<<C;this.words[this.length-1]&=Y}return this.strip()},H.prototype.maskn=function(K){return this.clone().imaskn(K)},H.prototype.iaddn=function(K){return j(typeof K=="number"),j(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},H.prototype._iaddn=function(K){this.words[0]+=K;for(var C=0;C<this.length&&this.words[C]>=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},H.prototype.isubn=function(K){if(j(typeof K=="number"),j(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C<this.length&&this.words[C]<0;C++)this.words[C]+=67108864,this.words[C+1]-=1;return this.strip()},H.prototype.addn=function(K){return this.clone().iaddn(K)},H.prototype.subn=function(K){return this.clone().isubn(K)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(K,C,J){var Y=K.length+J,Q;this._expand(Y);var P,Z=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+J]|0)+Z;var F=(K.words[Q]|0)*C;P-=F&67108863,Z=(P>>26)-(F/67108864|0),this.words[Q+J]=P&67108863}for(;Q<this.length-J;Q++)P=(this.words[Q+J]|0)+Z,Z=P>>26,this.words[Q+J]=P&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+Z,Z=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(K,C){var J=this.length-K.length,Y=this.clone(),Q=K,P=Q.words[Q.length-1]|0,Z=this._countBits(P);J=26-Z,J!==0&&(Q=Q.ushln(J),Y.iushln(J),P=Q.words[Q.length-1]|0);var F=Y.length-Q.length,X;if(C!=="mod"){X=new H(null),X.length=F+1,X.words=new Array(X.length);for(var G=0;G<X.length;G++)X.words[G]=0}var R=Y.clone()._ishlnsubmul(Q,1,F);R.negative===0&&(Y=R,X&&(X.words[F]=1));for(var L=F-1;L>=0;L--){var _=(Y.words[Q.length+L]|0)*67108864+(Y.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),Y._ishlnsubmul(Q,_,L);Y.negative!==0;)_--,Y.negative=0,Y._ishlnsubmul(Q,1,L),Y.isZero()||(Y.negative^=1);X&&(X.words[L]=_)}return X&&X.strip(),Y.strip(),C!=="div"&&J!==0&&Y.iushrn(J),{div:X||null,mod:Y}},H.prototype.divmod=function(K,C,J){if(j(!K.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Y,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,C),C!=="mod"&&(Y=P.div.neg()),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.iadd(K)),{div:Y,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),C),C!=="mod"&&(Y=P.div.neg()),{div:Y,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),C),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new H(0),mod:this}:K.length===1?C==="div"?{div:this.divn(K.words[0]),mod:null}:C==="mod"?{div:null,mod:new H(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new H(this.modn(K.words[0]))}:this._wordDiv(K,C)},H.prototype.div=function(K){return this.divmod(K,"div",!1).div},H.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},H.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},H.prototype.divRound=function(K){var C=this.divmod(K);if(C.mod.isZero())return C.div;var J=C.div.negative!==0?C.mod.isub(K):C.mod,Y=K.ushrn(1),Q=K.andln(1),P=J.cmp(Y);return P<0||Q===1&&P===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},H.prototype.modn=function(K){j(K<=67108863);for(var C=67108864%K,J=0,Y=this.length-1;Y>=0;Y--)J=(C*J+(this.words[Y]|0))%K;return J},H.prototype.idivn=function(K){j(K<=67108863);for(var C=0,J=this.length-1;J>=0;J--){var Y=(this.words[J]|0)+C*67108864;this.words[J]=Y/K|0,C=Y%K}return this.strip()},H.prototype.divn=function(K){return this.clone().idivn(K)},H.prototype.egcd=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=new H(0),Z=new H(1),F=0;C.isEven()&&J.isEven();)C.iushrn(1),J.iushrn(1),++F;for(var X=J.clone(),G=C.clone();!C.isZero();){for(var R=0,L=1;(C.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(C.iushrn(R);R-- >0;)(Y.isOdd()||Q.isOdd())&&(Y.iadd(X),Q.isub(G)),Y.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(J.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(J.iushrn(_);_-- >0;)(P.isOdd()||Z.isOdd())&&(P.iadd(X),Z.isub(G)),P.iushrn(1),Z.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(P),Q.isub(Z)):(J.isub(C),P.isub(Y),Z.isub(Q))}return{a:P,b:Z,gcd:J.iushln(F)}},H.prototype._invmp=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=J.clone();C.cmpn(1)>0&&J.cmpn(1)>0;){for(var Z=0,F=1;(C.words[0]&F)===0&&Z<26;++Z,F<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)Y.isOdd()&&Y.iadd(P),Y.iushrn(1);for(var X=0,G=1;(J.words[0]&G)===0&&X<26;++X,G<<=1);if(X>0)for(J.iushrn(X);X-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(Q)):(J.isub(C),Q.isub(Y))}var R;return C.cmpn(1)===0?R=Y:R=Q,R.cmpn(0)<0&&R.iadd(K),R},H.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var C=this.clone(),J=K.clone();C.negative=0,J.negative=0;for(var Y=0;C.isEven()&&J.isEven();Y++)C.iushrn(1),J.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;J.isEven();)J.iushrn(1);var Q=C.cmp(J);if(Q<0){var P=C;C=J,J=P}else if(Q===0||J.cmpn(1)===0)break;C.isub(J)}while(!0);return J.iushln(Y)},H.prototype.invm=function(K){return this.egcd(K).a.umod(K)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(K){return this.words[0]&K},H.prototype.bincn=function(K){j(typeof K=="number");var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return this._expand(J+1),this.words[J]|=Y,this;for(var Q=Y,P=J;Q!==0&&P<this.length;P++){var Z=this.words[P]|0;Z+=Q,Q=Z>>>26,Z&=67108863,this.words[P]=Z}return Q!==0&&(this.words[P]=Q,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(K){var C=K<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this.strip();var J;if(this.length>1)J=1;else{C&&(K=-K),j(K<=67108863,"Number is too big");var Y=this.words[0]|0;J=Y===K?0:Y<K?-1:1}return this.negative!==0?-J|0:J},H.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var C=this.ucmp(K);return this.negative!==0?-C|0:C},H.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var C=0,J=this.length-1;J>=0;J--){var Y=this.words[J]|0,Q=K.words[J]|0;if(Y!==Q){Y<Q?C=-1:Y>Q&&(C=1);break}}return C},H.prototype.gtn=function(K){return this.cmpn(K)===1},H.prototype.gt=function(K){return this.cmp(K)===1},H.prototype.gten=function(K){return this.cmpn(K)>=0},H.prototype.gte=function(K){return this.cmp(K)>=0},H.prototype.ltn=function(K){return this.cmpn(K)===-1},H.prototype.lt=function(K){return this.cmp(K)===-1},H.prototype.lten=function(K){return this.cmpn(K)<=0},H.prototype.lte=function(K){return this.cmp(K)<=0},H.prototype.eqn=function(K){return this.cmpn(K)===0},H.prototype.eq=function(K){return this.cmp(K)===0},H.red=function(K){return new f(K)},H.prototype.toRed=function(K){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(K){return this.red=K,this},H.prototype.forceRed=function(K){return j(!this.red,"Already a number in reduction context"),this._forceRed(K)},H.prototype.redAdd=function(K){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},H.prototype.redIAdd=function(K){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},H.prototype.redSub=function(K){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},H.prototype.redISub=function(K){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},H.prototype.redShl=function(K){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},H.prototype.redMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},H.prototype.redIMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(K){return j(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var y={k256:null,p224:null,p192:null,p25519:null};function p(K,C){this.name=K,this.p=new H(C,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new H(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var C=K,J;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),J=C.bitLength();while(J>this.n);var Y=J<this.n?-1:C.ucmp(this.p);return Y===0?(C.words[0]=0,C.length=1):Y>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},p.prototype.split=function(K,C){K.iushrn(this.n,0,C)},p.prototype.imulK=function(K){return K.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(K,C){for(var J=4194303,Y=Math.min(K.length,9),Q=0;Q<Y;Q++)C.words[Q]=K.words[Q];if(C.length=Y,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(C.words[C.length++]=P&J,Q=10;Q<K.length;Q++){var Z=K.words[Q]|0;K.words[Q-10]=(Z&J)<<4|P>>>22,P=Z}P>>>=22,K.words[Q-10]=P,P===0&&K.length>10?K.length-=10:K.length-=9},c.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var C=0,J=0;J<K.length;J++){var Y=K.words[J]|0;C+=Y*977,K.words[J]=C&67108863,C=Y*64+(C/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Y0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Y0,p),Y0.prototype.imulK=function(K){for(var C=0,J=0;J<K.length;J++){var Y=(K.words[J]|0)*19+C,Q=Y&67108863;Y>>>=26,K.words[J]=Q,C=Y}return C!==0&&(K.words[K.length++]=C),K},H._prime=function(K){if(y[K])return y[K];var C;if(K==="k256")C=new c;else if(K==="p224")C=new n;else if(K==="p192")C=new i;else if(K==="p25519")C=new Y0;else throw new Error("Unknown prime "+K);return y[K]=C,C};function f(K){if(typeof K=="string"){var C=H._prime(K);this.m=C.p,this.prime=C}else j(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){j(K.negative===0,"red works only with positives"),j(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,C){j((K.negative|C.negative)===0,"red works only with positives"),j(K.red&&K.red===C.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,C){this._verify2(K,C);var J=K.add(C);return J.cmp(this.m)>=0&&J.isub(this.m),J._forceRed(this)},f.prototype.iadd=function(K,C){this._verify2(K,C);var J=K.iadd(C);return J.cmp(this.m)>=0&&J.isub(this.m),J},f.prototype.sub=function(K,C){this._verify2(K,C);var J=K.sub(C);return J.cmpn(0)<0&&J.iadd(this.m),J._forceRed(this)},f.prototype.isub=function(K,C){this._verify2(K,C);var J=K.isub(C);return J.cmpn(0)<0&&J.iadd(this.m),J},f.prototype.shl=function(K,C){return this._verify1(K),this.imod(K.ushln(C))},f.prototype.imul=function(K,C){return this._verify2(K,C),this.imod(K.imul(C))},f.prototype.mul=function(K,C){return this._verify2(K,C),this.imod(K.mul(C))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var C=this.m.andln(3);if(j(C%2===1),C===3){var J=this.m.add(new H(1)).iushrn(2);return this.pow(K,J)}for(var Y=this.m.subn(1),Q=0;!Y.isZero()&&Y.andln(1)===0;)Q++,Y.iushrn(1);j(!Y.isZero());var P=new H(1).toRed(this),Z=P.redNeg(),F=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new H(2*X*X).toRed(this);this.pow(X,F).cmp(Z)!==0;)X.redIAdd(Z);for(var G=this.pow(X,Y),R=this.pow(K,Y.addn(1).iushrn(1)),L=this.pow(K,Y),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();j(r<_);var C0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(C0),G=C0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(K){var C=K._invmp(this.m);return C.negative!==0?(C.negative=0,this.imod(C).redNeg()):this.imod(C)},f.prototype.pow=function(K,C){if(C.isZero())return new H(1).toRed(this);if(C.cmpn(1)===0)return K.clone();var J=4,Y=new Array(1<<J);Y[0]=new H(1).toRed(this),Y[1]=K;for(var Q=2;Q<Y.length;Q++)Y[Q]=this.mul(Y[Q-1],K);var P=Y[0],Z=0,F=0,X=C.bitLength()%26;for(X===0&&(X=26),Q=C.length-1;Q>=0;Q--){for(var G=C.words[Q],R=X-1;R>=0;R--){var L=G>>R&1;if(P!==Y[0]&&(P=this.sqr(P)),L===0&&Z===0){F=0;continue}Z<<=1,Z|=L,F++,!(F!==J&&(Q!==0||R!==0))&&(P=this.mul(P,Y[Z]),F=0,Z=0)}X=26}return P},f.prototype.convertTo=function(K){var C=K.umod(this.m);return C===K?C.clone():C},f.prototype.convertFrom=function(K){var C=K.clone();return C.red=null,C},H.mont=function(K){return new P0(K)};function P0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(P0,f),P0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},P0.prototype.convertFrom=function(K){var C=this.imod(K.mul(this.rinv));return C.red=null,C},P0.prototype.imul=function(K,C){if(K.isZero()||C.isZero())return K.words[0]=0,K.length=1,K;var J=K.imul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.mul=function(K,C){if(K.isZero()||C.isZero())return new H(0)._forceRed(this);var J=K.mul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.invm=function(K){var C=this.imod(K._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(typeof g>"u"||g,l)}),d7=F0((l,g)=>{(function(E,M){function j(K,C){if(!K)throw new Error(C||"Assertion failed")}function S(K,C){K.super_=C;var J=function(){};J.prototype=C.prototype,K.prototype=new J,K.prototype.constructor=K}function H(K,C,J){if(H.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((C==="le"||C==="be")&&(J=C,C=10),this._init(K||0,C||10,J||"be"))}typeof E=="object"?E.exports=H:M.BN=H,H.BN=H,H.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}H.isBN=function(K){return K instanceof H?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===H.wordSize&&Array.isArray(K.words)},H.max=function(K,C){return K.cmp(C)>0?K:C},H.min=function(K,C){return K.cmp(C)<0?K:C},H.prototype._init=function(K,C,J){if(typeof K=="number")return this._initNumber(K,C,J);if(typeof K=="object")return this._initArray(K,C,J);C==="hex"&&(C=16),j(C===(C|0)&&C>=2&&C<=36),K=K.toString().replace(/\s+/g,"");var Y=0;K[0]==="-"&&(Y++,this.negative=1),Y<K.length&&(C===16?this._parseHex(K,Y,J):(this._parseBase(K,C,Y),J==="le"&&this._initArray(this.toArray(),C,J)))},H.prototype._initNumber=function(K,C,J){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(j(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),J==="le"&&this._initArray(this.toArray(),C,J)},H.prototype._initArray=function(K,C,J){if(j(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q,P,Z=0;if(J==="be")for(Y=K.length-1,Q=0;Y>=0;Y-=3)P=K[Y]|K[Y-1]<<8|K[Y-2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);else if(J==="le")for(Y=0,Q=0;Y<K.length;Y+=3)P=K[Y]|K[Y+1]<<8|K[Y+2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);return this.strip()};function k(K,C){var J=K.charCodeAt(C);return J>=65&&J<=70?J-55:J>=97&&J<=102?J-87:J-48&15}function z(K,C,J){var Y=k(K,J);return J-1>=C&&(Y|=k(K,J-1)<<4),Y}H.prototype._parseHex=function(K,C,J){this.length=Math.ceil((K.length-C)/6),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q=0,P=0,Z;if(J==="be")for(Y=K.length-1;Y>=C;Y-=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8;else{var F=K.length-C;for(Y=F%2===0?C+1:C;Y<K.length;Y+=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8}this.strip()};function V(K,C,J,Y){for(var Q=0,P=Math.min(K.length,J),Z=C;Z<P;Z++){var F=K.charCodeAt(Z)-48;Q*=Y,F>=49?Q+=F-49+10:F>=17?Q+=F-17+10:Q+=F}return Q}H.prototype._parseBase=function(K,C,J){this.words=[0],this.length=1;for(var Y=0,Q=1;Q<=67108863;Q*=C)Y++;Y--,Q=Q/C|0;for(var P=K.length-J,Z=P%Y,F=Math.min(P,P-Z)+J,X=0,G=J;G<F;G+=Y)X=V(K,G,G+Y,C),this.imuln(Q),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(Z!==0){var R=1;for(X=V(K,G,K.length,C),G=0;G<Z;G++)R*=C;this.imuln(R),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},H.prototype.copy=function(K){K.words=new Array(this.length);for(var C=0;C<this.length;C++)K.words[C]=this.words[C];K.length=this.length,K.negative=this.negative,K.red=this.red},H.prototype.clone=function(){var K=new H(null);return this.copy(K),K},H.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[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],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(K,C){K=K||10,C=C|0||1;var J;if(K===16||K==="hex"){J="";for(var Y=0,Q=0,P=0;P<this.length;P++){var Z=this.words[P],F=((Z<<Y|Q)&16777215).toString(16);Q=Z>>>24-Y&16777215,Q!==0||P!==this.length-1?J=$[6-F.length]+F+J:J=F+J,Y+=2,Y>=26&&(Y-=26,P--)}for(Q!==0&&(J=Q.toString(16)+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}if(K===(K|0)&&K>=2&&K<=36){var X=T[K],G=N[K];J="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(K);R=R.idivn(G),R.isZero()?J=L+J:J=$[X-L.length]+L+J}for(this.isZero()&&(J="0"+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(K,C){return j(typeof U<"u"),this.toArrayLike(U,K,C)},H.prototype.toArray=function(K,C){return this.toArrayLike(Array,K,C)},H.prototype.toArrayLike=function(K,C,J){var Y=this.byteLength(),Q=J||Math.max(1,Y);j(Y<=Q,"byte array longer than desired length"),j(Q>0,"Requested array length <= 0"),this.strip();var P=C==="le",Z=new K(Q),F,X,G=this.clone();if(P){for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[X]=F;for(;X<Q;X++)Z[X]=0}else{for(X=0;X<Q-Y;X++)Z[X]=0;for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[Q-X-1]=F}return Z},Math.clz32?H.prototype._countBits=function(K){return 32-Math.clz32(K)}:H.prototype._countBits=function(K){var C=K,J=0;return C>=4096&&(J+=13,C>>>=13),C>=64&&(J+=7,C>>>=7),C>=8&&(J+=4,C>>>=4),C>=2&&(J+=2,C>>>=2),J+C},H.prototype._zeroBits=function(K){if(K===0)return 26;var C=K,J=0;return(C&8191)===0&&(J+=13,C>>>=13),(C&127)===0&&(J+=7,C>>>=7),(C&15)===0&&(J+=4,C>>>=4),(C&3)===0&&(J+=2,C>>>=2),(C&1)===0&&J++,J},H.prototype.bitLength=function(){var K=this.words[this.length-1],C=this._countBits(K);return(this.length-1)*26+C};function W(K){for(var C=new Array(K.bitLength()),J=0;J<C.length;J++){var Y=J/26|0,Q=J%26;C[J]=(K.words[Y]&1<<Q)>>>Q}return C}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,C=0;C<this.length;C++){var J=this._zeroBits(this.words[C]);if(K+=J,J!==26)break}return K},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},H.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var C=0;C<K.length;C++)this.words[C]=this.words[C]|K.words[C];return this.strip()},H.prototype.ior=function(K){return j((this.negative|K.negative)===0),this.iuor(K)},H.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},H.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},H.prototype.iuand=function(K){var C;this.length>K.length?C=K:C=this;for(var J=0;J<C.length;J++)this.words[J]=this.words[J]&K.words[J];return this.length=C.length,this.strip()},H.prototype.iand=function(K){return j((this.negative|K.negative)===0),this.iuand(K)},H.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},H.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},H.prototype.iuxor=function(K){var C,J;this.length>K.length?(C=this,J=K):(C=K,J=this);for(var Y=0;Y<J.length;Y++)this.words[Y]=C.words[Y]^J.words[Y];if(this!==C)for(;Y<C.length;Y++)this.words[Y]=C.words[Y];return this.length=C.length,this.strip()},H.prototype.ixor=function(K){return j((this.negative|K.negative)===0),this.iuxor(K)},H.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},H.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},H.prototype.inotn=function(K){j(typeof K=="number"&&K>=0);var C=Math.ceil(K/26)|0,J=K%26;this._expand(C),J>0&&C--;for(var Y=0;Y<C;Y++)this.words[Y]=~this.words[Y]&67108863;return J>0&&(this.words[Y]=~this.words[Y]&67108863>>26-J),this.strip()},H.prototype.notn=function(K){return this.clone().inotn(K)},H.prototype.setn=function(K,C){j(typeof K=="number"&&K>=0);var J=K/26|0,Y=K%26;return this._expand(J+1),C?this.words[J]=this.words[J]|1<<Y:this.words[J]=this.words[J]&~(1<<Y),this.strip()},H.prototype.iadd=function(K){var C;if(this.negative!==0&&K.negative===0)return this.negative=0,C=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,C=this.isub(K),K.negative=1,C._normSign();var J,Y;this.length>K.length?(J=this,Y=K):(J=K,Y=this);for(var Q=0,P=0;P<Y.length;P++)C=(J.words[P]|0)+(Y.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;for(;Q!==0&&P<J.length;P++)C=(J.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;if(this.length=J.length,Q!==0)this.words[this.length]=Q,this.length++;else if(J!==this)for(;P<J.length;P++)this.words[P]=J.words[P];return this},H.prototype.add=function(K){var C;return K.negative!==0&&this.negative===0?(K.negative=0,C=this.sub(K),K.negative^=1,C):K.negative===0&&this.negative!==0?(this.negative=0,C=K.sub(this),this.negative=1,C):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},H.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var C=this.iadd(K);return K.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var J=this.cmp(K);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Y,Q;J>0?(Y=this,Q=K):(Y=K,Q=this);for(var P=0,Z=0;Z<Q.length;Z++)C=(Y.words[Z]|0)-(Q.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;for(;P!==0&&Z<Y.length;Z++)C=(Y.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;if(P===0&&Z<Y.length&&Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this.length=Math.max(this.length,Z),Y!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(K){return this.clone().isub(K)};function D(K,C,J){J.negative=C.negative^K.negative;var Y=K.length+C.length|0;J.length=Y,Y=Y-1|0;var Q=K.words[0]|0,P=C.words[0]|0,Z=Q*P,F=Z&67108863,X=Z/67108864|0;J.words[0]=F;for(var G=1;G<Y;G++){for(var R=X>>>26,L=X&67108863,_=Math.min(G,C.length-1),s=Math.max(0,G-K.length+1);s<=_;s++){var r=G-s|0;Q=K.words[r]|0,P=C.words[s]|0,Z=Q*P+L,R+=Z/67108864|0,L=Z&67108863}J.words[G]=L|0,X=R|0}return X!==0?J.words[G]=X|0:J.length--,J.strip()}var I=function(K,C,J){var Y=K.words,Q=C.words,P=J.words,Z=0,F,X,G,R=Y[0]|0,L=R&8191,_=R>>>13,s=Y[1]|0,r=s&8191,C0=s>>>13,u=Y[2]|0,d=u&8191,a=u>>>13,V0=Y[3]|0,K0=V0&8191,Q0=V0>>>13,w=Y[4]|0,q=w&8191,m=w>>>13,e=Y[5]|0,X0=e&8191,t=e>>>13,_0=Y[6]|0,H0=_0&8191,G0=_0>>>13,w0=Y[7]|0,W0=w0&8191,Z0=w0>>>13,c0=Y[8]|0,O=c0&8191,B=c0>>>13,b=Y[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,J0=z0&8191,$0=z0>>>13,b0=Q[1]|0,U0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,F5=Q[3]|0,T0=F5&8191,O0=F5>>>13,l0=Q[4]|0,L0=l0&8191,k0=l0>>>13,G5=Q[5]|0,I0=G5&8191,q0=G5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,Z5=Q[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=Q[8]|0,x0=$5&8191,A0=$5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;J.negative=K.negative^C.negative,J.length=19,F=Math.imul(L,J0),X=Math.imul(L,$0),X=X+Math.imul(_,J0)|0,G=Math.imul(_,$0);var Q5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,F=Math.imul(r,J0),X=Math.imul(r,$0),X=X+Math.imul(C0,J0)|0,G=Math.imul(C0,$0),F=F+Math.imul(L,U0)|0,X=X+Math.imul(L,j0)|0,X=X+Math.imul(_,U0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(g0>>>26)|0,g0&=67108863,F=Math.imul(d,J0),X=Math.imul(d,$0),X=X+Math.imul(a,J0)|0,G=Math.imul(a,$0),F=F+Math.imul(r,U0)|0,X=X+Math.imul(r,j0)|0,X=X+Math.imul(C0,U0)|0,G=G+Math.imul(C0,j0)|0,F=F+Math.imul(L,D0)|0,X=X+Math.imul(L,N0)|0,X=X+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,F=Math.imul(K0,J0),X=Math.imul(K0,$0),X=X+Math.imul(Q0,J0)|0,G=Math.imul(Q0,$0),F=F+Math.imul(d,U0)|0,X=X+Math.imul(d,j0)|0,X=X+Math.imul(a,U0)|0,G=G+Math.imul(a,j0)|0,F=F+Math.imul(r,D0)|0,X=X+Math.imul(r,N0)|0,X=X+Math.imul(C0,D0)|0,G=G+Math.imul(C0,N0)|0,F=F+Math.imul(L,T0)|0,X=X+Math.imul(L,O0)|0,X=X+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(h0>>>26)|0,h0&=67108863,F=Math.imul(q,J0),X=Math.imul(q,$0),X=X+Math.imul(m,J0)|0,G=Math.imul(m,$0),F=F+Math.imul(K0,U0)|0,X=X+Math.imul(K0,j0)|0,X=X+Math.imul(Q0,U0)|0,G=G+Math.imul(Q0,j0)|0,F=F+Math.imul(d,D0)|0,X=X+Math.imul(d,N0)|0,X=X+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,F=F+Math.imul(r,T0)|0,X=X+Math.imul(r,O0)|0,X=X+Math.imul(C0,T0)|0,G=G+Math.imul(C0,O0)|0,F=F+Math.imul(L,L0)|0,X=X+Math.imul(L,k0)|0,X=X+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,F=Math.imul(X0,J0),X=Math.imul(X0,$0),X=X+Math.imul(t,J0)|0,G=Math.imul(t,$0),F=F+Math.imul(q,U0)|0,X=X+Math.imul(q,j0)|0,X=X+Math.imul(m,U0)|0,G=G+Math.imul(m,j0)|0,F=F+Math.imul(K0,D0)|0,X=X+Math.imul(K0,N0)|0,X=X+Math.imul(Q0,D0)|0,G=G+Math.imul(Q0,N0)|0,F=F+Math.imul(d,T0)|0,X=X+Math.imul(d,O0)|0,X=X+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,F=F+Math.imul(r,L0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(C0,L0)|0,G=G+Math.imul(C0,k0)|0,F=F+Math.imul(L,I0)|0,X=X+Math.imul(L,q0)|0,X=X+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,F=Math.imul(H0,J0),X=Math.imul(H0,$0),X=X+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),F=F+Math.imul(X0,U0)|0,X=X+Math.imul(X0,j0)|0,X=X+Math.imul(t,U0)|0,G=G+Math.imul(t,j0)|0,F=F+Math.imul(q,D0)|0,X=X+Math.imul(q,N0)|0,X=X+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,F=F+Math.imul(K0,T0)|0,X=X+Math.imul(K0,O0)|0,X=X+Math.imul(Q0,T0)|0,G=G+Math.imul(Q0,O0)|0,F=F+Math.imul(d,L0)|0,X=X+Math.imul(d,k0)|0,X=X+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,F=F+Math.imul(r,I0)|0,X=X+Math.imul(r,q0)|0,X=X+Math.imul(C0,I0)|0,G=G+Math.imul(C0,q0)|0,F=F+Math.imul(L,B0)|0,X=X+Math.imul(L,R0)|0,X=X+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,F=Math.imul(W0,J0),X=Math.imul(W0,$0),X=X+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),F=F+Math.imul(H0,U0)|0,X=X+Math.imul(H0,j0)|0,X=X+Math.imul(G0,U0)|0,G=G+Math.imul(G0,j0)|0,F=F+Math.imul(X0,D0)|0,X=X+Math.imul(X0,N0)|0,X=X+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,F=F+Math.imul(q,T0)|0,X=X+Math.imul(q,O0)|0,X=X+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,F=F+Math.imul(K0,L0)|0,X=X+Math.imul(K0,k0)|0,X=X+Math.imul(Q0,L0)|0,G=G+Math.imul(Q0,k0)|0,F=F+Math.imul(d,I0)|0,X=X+Math.imul(d,q0)|0,X=X+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,F=F+Math.imul(r,B0)|0,X=X+Math.imul(r,R0)|0,X=X+Math.imul(C0,B0)|0,G=G+Math.imul(C0,R0)|0,F=F+Math.imul(L,E0)|0,X=X+Math.imul(L,S0)|0,X=X+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,F=Math.imul(O,J0),X=Math.imul(O,$0),X=X+Math.imul(B,J0)|0,G=Math.imul(B,$0),F=F+Math.imul(W0,U0)|0,X=X+Math.imul(W0,j0)|0,X=X+Math.imul(Z0,U0)|0,G=G+Math.imul(Z0,j0)|0,F=F+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,F=F+Math.imul(X0,T0)|0,X=X+Math.imul(X0,O0)|0,X=X+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,F=F+Math.imul(q,L0)|0,X=X+Math.imul(q,k0)|0,X=X+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,F=F+Math.imul(K0,I0)|0,X=X+Math.imul(K0,q0)|0,X=X+Math.imul(Q0,I0)|0,G=G+Math.imul(Q0,q0)|0,F=F+Math.imul(d,B0)|0,X=X+Math.imul(d,R0)|0,X=X+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,F=F+Math.imul(r,E0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(C0,E0)|0,G=G+Math.imul(C0,S0)|0,F=F+Math.imul(L,x0)|0,X=X+Math.imul(L,A0)|0,X=X+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,F=Math.imul(h,J0),X=Math.imul(h,$0),X=X+Math.imul(o,J0)|0,G=Math.imul(o,$0),F=F+Math.imul(O,U0)|0,X=X+Math.imul(O,j0)|0,X=X+Math.imul(B,U0)|0,G=G+Math.imul(B,j0)|0,F=F+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,F=F+Math.imul(H0,T0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,F=F+Math.imul(X0,L0)|0,X=X+Math.imul(X0,k0)|0,X=X+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,F=F+Math.imul(q,I0)|0,X=X+Math.imul(q,q0)|0,X=X+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,F=F+Math.imul(K0,B0)|0,X=X+Math.imul(K0,R0)|0,X=X+Math.imul(Q0,B0)|0,G=G+Math.imul(Q0,R0)|0,F=F+Math.imul(d,E0)|0,X=X+Math.imul(d,S0)|0,X=X+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,F=F+Math.imul(r,x0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(C0,x0)|0,G=G+Math.imul(C0,A0)|0,F=F+Math.imul(L,v0)|0,X=X+Math.imul(L,M0)|0,X=X+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,F=Math.imul(h,U0),X=Math.imul(h,j0),X=X+Math.imul(o,U0)|0,G=Math.imul(o,j0),F=F+Math.imul(O,D0)|0,X=X+Math.imul(O,N0)|0,X=X+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,F=F+Math.imul(W0,T0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,F=F+Math.imul(H0,L0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,F=F+Math.imul(X0,I0)|0,X=X+Math.imul(X0,q0)|0,X=X+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,F=F+Math.imul(q,B0)|0,X=X+Math.imul(q,R0)|0,X=X+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,F=F+Math.imul(K0,E0)|0,X=X+Math.imul(K0,S0)|0,X=X+Math.imul(Q0,E0)|0,G=G+Math.imul(Q0,S0)|0,F=F+Math.imul(d,x0)|0,X=X+Math.imul(d,A0)|0,X=X+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,F=F+Math.imul(r,v0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(C0,v0)|0,G=G+Math.imul(C0,M0)|0;var r0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,F=Math.imul(h,D0),X=Math.imul(h,N0),X=X+Math.imul(o,D0)|0,G=Math.imul(o,N0),F=F+Math.imul(O,T0)|0,X=X+Math.imul(O,O0)|0,X=X+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,F=F+Math.imul(W0,L0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,F=F+Math.imul(H0,I0)|0,X=X+Math.imul(H0,q0)|0,X=X+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,F=F+Math.imul(X0,B0)|0,X=X+Math.imul(X0,R0)|0,X=X+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,F=F+Math.imul(q,E0)|0,X=X+Math.imul(q,S0)|0,X=X+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,F=F+Math.imul(K0,x0)|0,X=X+Math.imul(K0,A0)|0,X=X+Math.imul(Q0,x0)|0,G=G+Math.imul(Q0,A0)|0,F=F+Math.imul(d,v0)|0,X=X+Math.imul(d,M0)|0,X=X+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,F=Math.imul(h,T0),X=Math.imul(h,O0),X=X+Math.imul(o,T0)|0,G=Math.imul(o,O0),F=F+Math.imul(O,L0)|0,X=X+Math.imul(O,k0)|0,X=X+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,F=F+Math.imul(W0,I0)|0,X=X+Math.imul(W0,q0)|0,X=X+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,F=F+Math.imul(H0,B0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,F=F+Math.imul(X0,E0)|0,X=X+Math.imul(X0,S0)|0,X=X+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,F=F+Math.imul(q,x0)|0,X=X+Math.imul(q,A0)|0,X=X+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,F=F+Math.imul(K0,v0)|0,X=X+Math.imul(K0,M0)|0,X=X+Math.imul(Q0,v0)|0,G=G+Math.imul(Q0,M0)|0;var t0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,F=Math.imul(h,L0),X=Math.imul(h,k0),X=X+Math.imul(o,L0)|0,G=Math.imul(o,k0),F=F+Math.imul(O,I0)|0,X=X+Math.imul(O,q0)|0,X=X+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,F=F+Math.imul(W0,B0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,F=F+Math.imul(H0,E0)|0,X=X+Math.imul(H0,S0)|0,X=X+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,F=F+Math.imul(X0,x0)|0,X=X+Math.imul(X0,A0)|0,X=X+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,F=F+Math.imul(q,v0)|0,X=X+Math.imul(q,M0)|0,X=X+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,F=Math.imul(h,I0),X=Math.imul(h,q0),X=X+Math.imul(o,I0)|0,G=Math.imul(o,q0),F=F+Math.imul(O,B0)|0,X=X+Math.imul(O,R0)|0,X=X+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,F=F+Math.imul(W0,E0)|0,X=X+Math.imul(W0,S0)|0,X=X+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,F=F+Math.imul(H0,x0)|0,X=X+Math.imul(H0,A0)|0,X=X+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,F=F+Math.imul(X0,v0)|0,X=X+Math.imul(X0,M0)|0,X=X+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var K5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,F=Math.imul(h,B0),X=Math.imul(h,R0),X=X+Math.imul(o,B0)|0,G=Math.imul(o,R0),F=F+Math.imul(O,E0)|0,X=X+Math.imul(O,S0)|0,X=X+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,F=F+Math.imul(W0,x0)|0,X=X+Math.imul(W0,A0)|0,X=X+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,F=F+Math.imul(H0,v0)|0,X=X+Math.imul(H0,M0)|0,X=X+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var X5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,F=Math.imul(h,E0),X=Math.imul(h,S0),X=X+Math.imul(o,E0)|0,G=Math.imul(o,S0),F=F+Math.imul(O,x0)|0,X=X+Math.imul(O,A0)|0,X=X+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,F=F+Math.imul(W0,v0)|0,X=X+Math.imul(W0,M0)|0,X=X+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var C5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(C5>>>26)|0,C5&=67108863,F=Math.imul(h,x0),X=Math.imul(h,A0),X=X+Math.imul(o,x0)|0,G=Math.imul(o,A0),F=F+Math.imul(O,v0)|0,X=X+Math.imul(O,M0)|0,X=X+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var Y5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,F=Math.imul(h,v0),X=Math.imul(h,M0),X=X+Math.imul(o,v0)|0,G=Math.imul(o,M0);var J5=(Z+F|0)+((X&8191)<<13)|0;return Z=(G+(X>>>13)|0)+(J5>>>26)|0,J5&=67108863,P[0]=Q5,P[1]=g0,P[2]=m0,P[3]=h0,P[4]=u0,P[5]=o0,P[6]=s0,P[7]=a0,P[8]=f0,P[9]=n0,P[10]=r0,P[11]=i0,P[12]=t0,P[13]=e0,P[14]=K5,P[15]=X5,P[16]=C5,P[17]=Y5,P[18]=J5,Z!==0&&(P[19]=Z,J.length++),J};Math.imul||(I=D);function v(K,C,J){J.negative=C.negative^K.negative,J.length=K.length+C.length;for(var Y=0,Q=0,P=0;P<J.length-1;P++){var Z=Q;Q=0;for(var F=Y&67108863,X=Math.min(P,C.length-1),G=Math.max(0,P-K.length+1);G<=X;G++){var R=P-G,L=K.words[R]|0,_=C.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+F|0,F=r&67108863,Z=Z+(r>>>26)|0,Q+=Z>>>26,Z&=67108863}J.words[P]=F,Y=Z,Z=Q}return Y!==0?J.words[P]=Y:J.length--,J.strip()}function x(K,C,J){var Y=new A;return Y.mulp(K,C,J)}H.prototype.mulTo=function(K,C){var J,Y=this.length+K.length;return this.length===10&&K.length===10?J=I(this,K,C):Y<63?J=D(this,K,C):Y<1024?J=v(this,K,C):J=x(this,K,C),J};function A(K,C){this.x=K,this.y=C}A.prototype.makeRBT=function(K){for(var C=new Array(K),J=H.prototype._countBits(K)-1,Y=0;Y<K;Y++)C[Y]=this.revBin(Y,J,K);return C},A.prototype.revBin=function(K,C,J){if(K===0||K===J-1)return K;for(var Y=0,Q=0;Q<C;Q++)Y|=(K&1)<<C-Q-1,K>>=1;return Y},A.prototype.permute=function(K,C,J,Y,Q,P){for(var Z=0;Z<P;Z++)Y[Z]=C[K[Z]],Q[Z]=J[K[Z]]},A.prototype.transform=function(K,C,J,Y,Q,P){this.permute(P,K,C,J,Y,Q);for(var Z=1;Z<Q;Z<<=1)for(var F=Z<<1,X=Math.cos(2*Math.PI/F),G=Math.sin(2*Math.PI/F),R=0;R<Q;R+=F)for(var L=X,_=G,s=0;s<Z;s++){var r=J[R+s],C0=Y[R+s],u=J[R+s+Z],d=Y[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,J[R+s]=r+u,Y[R+s]=C0+d,J[R+s+Z]=r-u,Y[R+s+Z]=C0-d,s!==F&&(a=X*L-G*_,_=X*_+G*L,L=a)}},A.prototype.guessLen13b=function(K,C){var J=Math.max(C,K)|1,Y=J&1,Q=0;for(J=J/2|0;J;J=J>>>1)Q++;return 1<<Q+1+Y},A.prototype.conjugate=function(K,C,J){if(!(J<=1))for(var Y=0;Y<J/2;Y++){var Q=K[Y];K[Y]=K[J-Y-1],K[J-Y-1]=Q,Q=C[Y],C[Y]=-C[J-Y-1],C[J-Y-1]=-Q}},A.prototype.normalize13b=function(K,C){for(var J=0,Y=0;Y<C/2;Y++){var Q=Math.round(K[2*Y+1]/C)*8192+Math.round(K[2*Y]/C)+J;K[Y]=Q&67108863,Q<67108864?J=0:J=Q/67108864|0}return K},A.prototype.convert13b=function(K,C,J,Y){for(var Q=0,P=0;P<C;P++)Q=Q+(K[P]|0),J[2*P]=Q&8191,Q=Q>>>13,J[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*C;P<Y;++P)J[P]=0;j(Q===0),j((Q&-8192)===0)},A.prototype.stub=function(K){for(var C=new Array(K),J=0;J<K;J++)C[J]=0;return C},A.prototype.mulp=function(K,C,J){var Y=2*this.guessLen13b(K.length,C.length),Q=this.makeRBT(Y),P=this.stub(Y),Z=new Array(Y),F=new Array(Y),X=new Array(Y),G=new Array(Y),R=new Array(Y),L=new Array(Y),_=J.words;_.length=Y,this.convert13b(K.words,K.length,Z,Y),this.convert13b(C.words,C.length,G,Y),this.transform(Z,P,F,X,Y,Q),this.transform(G,P,R,L,Y,Q);for(var s=0;s<Y;s++){var r=F[s]*R[s]-X[s]*L[s];X[s]=F[s]*L[s]+X[s]*R[s],F[s]=r}return this.conjugate(F,X,Y),this.transform(F,X,_,P,Y,Q),this.conjugate(_,P,Y),this.normalize13b(_,Y),J.negative=K.negative^C.negative,J.length=K.length+C.length,J.strip()},H.prototype.mul=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),this.mulTo(K,C)},H.prototype.mulf=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),x(this,K,C)},H.prototype.imul=function(K){return this.clone().mulTo(K,this)},H.prototype.imuln=function(K){j(typeof K=="number"),j(K<67108864);for(var C=0,J=0;J<this.length;J++){var Y=(this.words[J]|0)*K,Q=(Y&67108863)+(C&67108863);C>>=26,C+=Y/67108864|0,C+=Q>>>26,this.words[J]=Q&67108863}return C!==0&&(this.words[J]=C,this.length++),this},H.prototype.muln=function(K){return this.clone().imuln(K)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(K){var C=W(K);if(C.length===0)return new H(1);for(var J=this,Y=0;Y<C.length&&C[Y]===0;Y++,J=J.sqr());if(++Y<C.length)for(var Q=J.sqr();Y<C.length;Y++,Q=Q.sqr())C[Y]!==0&&(J=J.mul(Q));return J},H.prototype.iushln=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=67108863>>>26-C<<26-C,Q;if(C!==0){var P=0;for(Q=0;Q<this.length;Q++){var Z=this.words[Q]&Y,F=(this.words[Q]|0)-Z<<C;this.words[Q]=F|P,P=Z>>>26-C}P&&(this.words[Q]=P,this.length++)}if(J!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+J]=this.words[Q];for(Q=0;Q<J;Q++)this.words[Q]=0;this.length+=J}return this.strip()},H.prototype.ishln=function(K){return j(this.negative===0),this.iushln(K)},H.prototype.iushrn=function(K,C,J){j(typeof K=="number"&&K>=0);var Y;C?Y=(C-C%26)/26:Y=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),Z=67108863^67108863>>>Q<<Q,F=J;if(Y-=P,Y=Math.max(0,Y),F){for(var X=0;X<P;X++)F.words[X]=this.words[X];F.length=P}if(P!==0)if(this.length>P)for(this.length-=P,X=0;X<this.length;X++)this.words[X]=this.words[X+P];else this.words[0]=0,this.length=1;var G=0;for(X=this.length-1;X>=0&&(G!==0||X>=Y);X--){var R=this.words[X]|0;this.words[X]=G<<26-Q|R>>>Q,G=R&Z}return F&&G!==0&&(F.words[F.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(K,C,J){return j(this.negative===0),this.iushrn(K,C,J)},H.prototype.shln=function(K){return this.clone().ishln(K)},H.prototype.ushln=function(K){return this.clone().iushln(K)},H.prototype.shrn=function(K){return this.clone().ishrn(K)},H.prototype.ushrn=function(K){return this.clone().iushrn(K)},H.prototype.testn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return!1;var Q=this.words[J];return!!(Q&Y)},H.prototype.imaskn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(C!==0&&J++,this.length=Math.min(J,this.length),C!==0){var Y=67108863^67108863>>>C<<C;this.words[this.length-1]&=Y}return this.strip()},H.prototype.maskn=function(K){return this.clone().imaskn(K)},H.prototype.iaddn=function(K){return j(typeof K=="number"),j(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},H.prototype._iaddn=function(K){this.words[0]+=K;for(var C=0;C<this.length&&this.words[C]>=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},H.prototype.isubn=function(K){if(j(typeof K=="number"),j(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C<this.length&&this.words[C]<0;C++)this.words[C]+=67108864,this.words[C+1]-=1;return this.strip()},H.prototype.addn=function(K){return this.clone().iaddn(K)},H.prototype.subn=function(K){return this.clone().isubn(K)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(K,C,J){var Y=K.length+J,Q;this._expand(Y);var P,Z=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+J]|0)+Z;var F=(K.words[Q]|0)*C;P-=F&67108863,Z=(P>>26)-(F/67108864|0),this.words[Q+J]=P&67108863}for(;Q<this.length-J;Q++)P=(this.words[Q+J]|0)+Z,Z=P>>26,this.words[Q+J]=P&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+Z,Z=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(K,C){var J=this.length-K.length,Y=this.clone(),Q=K,P=Q.words[Q.length-1]|0,Z=this._countBits(P);J=26-Z,J!==0&&(Q=Q.ushln(J),Y.iushln(J),P=Q.words[Q.length-1]|0);var F=Y.length-Q.length,X;if(C!=="mod"){X=new H(null),X.length=F+1,X.words=new Array(X.length);for(var G=0;G<X.length;G++)X.words[G]=0}var R=Y.clone()._ishlnsubmul(Q,1,F);R.negative===0&&(Y=R,X&&(X.words[F]=1));for(var L=F-1;L>=0;L--){var _=(Y.words[Q.length+L]|0)*67108864+(Y.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),Y._ishlnsubmul(Q,_,L);Y.negative!==0;)_--,Y.negative=0,Y._ishlnsubmul(Q,1,L),Y.isZero()||(Y.negative^=1);X&&(X.words[L]=_)}return X&&X.strip(),Y.strip(),C!=="div"&&J!==0&&Y.iushrn(J),{div:X||null,mod:Y}},H.prototype.divmod=function(K,C,J){if(j(!K.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Y,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,C),C!=="mod"&&(Y=P.div.neg()),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.iadd(K)),{div:Y,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),C),C!=="mod"&&(Y=P.div.neg()),{div:Y,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),C),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new H(0),mod:this}:K.length===1?C==="div"?{div:this.divn(K.words[0]),mod:null}:C==="mod"?{div:null,mod:new H(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new H(this.modn(K.words[0]))}:this._wordDiv(K,C)},H.prototype.div=function(K){return this.divmod(K,"div",!1).div},H.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},H.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},H.prototype.divRound=function(K){var C=this.divmod(K);if(C.mod.isZero())return C.div;var J=C.div.negative!==0?C.mod.isub(K):C.mod,Y=K.ushrn(1),Q=K.andln(1),P=J.cmp(Y);return P<0||Q===1&&P===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},H.prototype.modn=function(K){j(K<=67108863);for(var C=67108864%K,J=0,Y=this.length-1;Y>=0;Y--)J=(C*J+(this.words[Y]|0))%K;return J},H.prototype.idivn=function(K){j(K<=67108863);for(var C=0,J=this.length-1;J>=0;J--){var Y=(this.words[J]|0)+C*67108864;this.words[J]=Y/K|0,C=Y%K}return this.strip()},H.prototype.divn=function(K){return this.clone().idivn(K)},H.prototype.egcd=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=new H(0),Z=new H(1),F=0;C.isEven()&&J.isEven();)C.iushrn(1),J.iushrn(1),++F;for(var X=J.clone(),G=C.clone();!C.isZero();){for(var R=0,L=1;(C.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(C.iushrn(R);R-- >0;)(Y.isOdd()||Q.isOdd())&&(Y.iadd(X),Q.isub(G)),Y.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(J.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(J.iushrn(_);_-- >0;)(P.isOdd()||Z.isOdd())&&(P.iadd(X),Z.isub(G)),P.iushrn(1),Z.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(P),Q.isub(Z)):(J.isub(C),P.isub(Y),Z.isub(Q))}return{a:P,b:Z,gcd:J.iushln(F)}},H.prototype._invmp=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=J.clone();C.cmpn(1)>0&&J.cmpn(1)>0;){for(var Z=0,F=1;(C.words[0]&F)===0&&Z<26;++Z,F<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)Y.isOdd()&&Y.iadd(P),Y.iushrn(1);for(var X=0,G=1;(J.words[0]&G)===0&&X<26;++X,G<<=1);if(X>0)for(J.iushrn(X);X-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(Q)):(J.isub(C),Q.isub(Y))}var R;return C.cmpn(1)===0?R=Y:R=Q,R.cmpn(0)<0&&R.iadd(K),R},H.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var C=this.clone(),J=K.clone();C.negative=0,J.negative=0;for(var Y=0;C.isEven()&&J.isEven();Y++)C.iushrn(1),J.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;J.isEven();)J.iushrn(1);var Q=C.cmp(J);if(Q<0){var P=C;C=J,J=P}else if(Q===0||J.cmpn(1)===0)break;C.isub(J)}while(!0);return J.iushln(Y)},H.prototype.invm=function(K){return this.egcd(K).a.umod(K)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(K){return this.words[0]&K},H.prototype.bincn=function(K){j(typeof K=="number");var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return this._expand(J+1),this.words[J]|=Y,this;for(var Q=Y,P=J;Q!==0&&P<this.length;P++){var Z=this.words[P]|0;Z+=Q,Q=Z>>>26,Z&=67108863,this.words[P]=Z}return Q!==0&&(this.words[P]=Q,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(K){var C=K<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this.strip();var J;if(this.length>1)J=1;else{C&&(K=-K),j(K<=67108863,"Number is too big");var Y=this.words[0]|0;J=Y===K?0:Y<K?-1:1}return this.negative!==0?-J|0:J},H.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var C=this.ucmp(K);return this.negative!==0?-C|0:C},H.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var C=0,J=this.length-1;J>=0;J--){var Y=this.words[J]|0,Q=K.words[J]|0;if(Y!==Q){Y<Q?C=-1:Y>Q&&(C=1);break}}return C},H.prototype.gtn=function(K){return this.cmpn(K)===1},H.prototype.gt=function(K){return this.cmp(K)===1},H.prototype.gten=function(K){return this.cmpn(K)>=0},H.prototype.gte=function(K){return this.cmp(K)>=0},H.prototype.ltn=function(K){return this.cmpn(K)===-1},H.prototype.lt=function(K){return this.cmp(K)===-1},H.prototype.lten=function(K){return this.cmpn(K)<=0},H.prototype.lte=function(K){return this.cmp(K)<=0},H.prototype.eqn=function(K){return this.cmpn(K)===0},H.prototype.eq=function(K){return this.cmp(K)===0},H.red=function(K){return new f(K)},H.prototype.toRed=function(K){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(K){return this.red=K,this},H.prototype.forceRed=function(K){return j(!this.red,"Already a number in reduction context"),this._forceRed(K)},H.prototype.redAdd=function(K){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},H.prototype.redIAdd=function(K){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},H.prototype.redSub=function(K){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},H.prototype.redISub=function(K){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},H.prototype.redShl=function(K){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},H.prototype.redMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},H.prototype.redIMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(K){return j(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var y={k256:null,p224:null,p192:null,p25519:null};function p(K,C){this.name=K,this.p=new H(C,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new H(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var C=K,J;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),J=C.bitLength();while(J>this.n);var Y=J<this.n?-1:C.ucmp(this.p);return Y===0?(C.words[0]=0,C.length=1):Y>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},p.prototype.split=function(K,C){K.iushrn(this.n,0,C)},p.prototype.imulK=function(K){return K.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(K,C){for(var J=4194303,Y=Math.min(K.length,9),Q=0;Q<Y;Q++)C.words[Q]=K.words[Q];if(C.length=Y,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(C.words[C.length++]=P&J,Q=10;Q<K.length;Q++){var Z=K.words[Q]|0;K.words[Q-10]=(Z&J)<<4|P>>>22,P=Z}P>>>=22,K.words[Q-10]=P,P===0&&K.length>10?K.length-=10:K.length-=9},c.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var C=0,J=0;J<K.length;J++){var Y=K.words[J]|0;C+=Y*977,K.words[J]=C&67108863,C=Y*64+(C/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Y0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Y0,p),Y0.prototype.imulK=function(K){for(var C=0,J=0;J<K.length;J++){var Y=(K.words[J]|0)*19+C,Q=Y&67108863;Y>>>=26,K.words[J]=Q,C=Y}return C!==0&&(K.words[K.length++]=C),K},H._prime=function(K){if(y[K])return y[K];var C;if(K==="k256")C=new c;else if(K==="p224")C=new n;else if(K==="p192")C=new i;else if(K==="p25519")C=new Y0;else throw new Error("Unknown prime "+K);return y[K]=C,C};function f(K){if(typeof K=="string"){var C=H._prime(K);this.m=C.p,this.prime=C}else j(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){j(K.negative===0,"red works only with positives"),j(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,C){j((K.negative|C.negative)===0,"red works only with positives"),j(K.red&&K.red===C.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,C){this._verify2(K,C);var J=K.add(C);return J.cmp(this.m)>=0&&J.isub(this.m),J._forceRed(this)},f.prototype.iadd=function(K,C){this._verify2(K,C);var J=K.iadd(C);return J.cmp(this.m)>=0&&J.isub(this.m),J},f.prototype.sub=function(K,C){this._verify2(K,C);var J=K.sub(C);return J.cmpn(0)<0&&J.iadd(this.m),J._forceRed(this)},f.prototype.isub=function(K,C){this._verify2(K,C);var J=K.isub(C);return J.cmpn(0)<0&&J.iadd(this.m),J},f.prototype.shl=function(K,C){return this._verify1(K),this.imod(K.ushln(C))},f.prototype.imul=function(K,C){return this._verify2(K,C),this.imod(K.imul(C))},f.prototype.mul=function(K,C){return this._verify2(K,C),this.imod(K.mul(C))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var C=this.m.andln(3);if(j(C%2===1),C===3){var J=this.m.add(new H(1)).iushrn(2);return this.pow(K,J)}for(var Y=this.m.subn(1),Q=0;!Y.isZero()&&Y.andln(1)===0;)Q++,Y.iushrn(1);j(!Y.isZero());var P=new H(1).toRed(this),Z=P.redNeg(),F=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new H(2*X*X).toRed(this);this.pow(X,F).cmp(Z)!==0;)X.redIAdd(Z);for(var G=this.pow(X,Y),R=this.pow(K,Y.addn(1).iushrn(1)),L=this.pow(K,Y),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();j(r<_);var C0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(C0),G=C0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(K){var C=K._invmp(this.m);return C.negative!==0?(C.negative=0,this.imod(C).redNeg()):this.imod(C)},f.prototype.pow=function(K,C){if(C.isZero())return new H(1).toRed(this);if(C.cmpn(1)===0)return K.clone();var J=4,Y=new Array(1<<J);Y[0]=new H(1).toRed(this),Y[1]=K;for(var Q=2;Q<Y.length;Q++)Y[Q]=this.mul(Y[Q-1],K);var P=Y[0],Z=0,F=0,X=C.bitLength()%26;for(X===0&&(X=26),Q=C.length-1;Q>=0;Q--){for(var G=C.words[Q],R=X-1;R>=0;R--){var L=G>>R&1;if(P!==Y[0]&&(P=this.sqr(P)),L===0&&Z===0){F=0;continue}Z<<=1,Z|=L,F++,!(F!==J&&(Q!==0||R!==0))&&(P=this.mul(P,Y[Z]),F=0,Z=0)}X=26}return P},f.prototype.convertTo=function(K){var C=K.umod(this.m);return C===K?C.clone():C},f.prototype.convertFrom=function(K){var C=K.clone();return C.red=null,C},H.mont=function(K){return new P0(K)};function P0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(P0,f),P0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},P0.prototype.convertFrom=function(K){var C=this.imod(K.mul(this.rinv));return C.red=null,C},P0.prototype.imul=function(K,C){if(K.isZero()||C.isZero())return K.words[0]=0,K.length=1,K;var J=K.imul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.mul=function(K,C){if(K.isZero()||C.isZero())return new H(0)._forceRed(this);var J=K.mul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.invm=function(K){var C=this.imod(K._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(typeof g>"u"||g,l)}),l7=F0(()=>{}),B9=F0((l,g)=>{var E;g.exports=function(S){return E||(E=new M(null)),E.generate(S)};function M(S){this.rand=S}if(g.exports.Rand=M,M.prototype.generate=function(S){return this._rand(S)},M.prototype._rand=function(S){if(this.rand.getBytes)return this.rand.getBytes(S);for(var H=new Uint8Array(S),U=0;U<H.length;U++)H[U]=this.rand.getByte();return H},typeof self=="object")self.crypto&&self.crypto.getRandomValues?M.prototype._rand=function(S){var H=new Uint8Array(S);return self.crypto.getRandomValues(H),H}:self.msCrypto&&self.msCrypto.getRandomValues?M.prototype._rand=function(S){var H=new Uint8Array(S);return self.msCrypto.getRandomValues(H),H}:typeof window=="object"&&(M.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(j=l7(),typeof j.randomBytes!="function")throw new Error("Not supported");M.prototype._rand=function(S){return j.randomBytes(S)}}catch{}var j}),N6=F0((l,g)=>{var E=d7(),M=B9();function j(S){this.rand=S||new M.Rand}g.exports=j,j.create=function(S){return new j(S)},j.prototype._randbelow=function(S){var H=S.bitLength(),U=Math.ceil(H/8);do var k=new E(this.rand.generate(U));while(k.cmp(S)>=0);return k},j.prototype._randrange=function(S,H){var U=H.sub(S);return S.add(this._randbelow(U))},j.prototype.test=function(S,H,U){var k=S.bitLength(),z=E.mont(S),V=new E(1).toRed(z);H||(H=Math.max(1,k/48|0));for(var $=S.subn(1),T=0;!$.testn(T);T++);for(var N=S.shrn(T),W=$.toRed(z),D=!0;H>0;H--){var I=this._randrange(new E(2),$);U&&U(I);var v=I.toRed(z).redPow(N);if(!(v.cmp(V)===0||v.cmp(W)===0)){for(var x=1;x<T;x++){if(v=v.redSqr(),v.cmp(V)===0)return!1;if(v.cmp(W)===0)break}if(x===T)return!1}}return D},j.prototype.getDivisor=function(S,H){var U=S.bitLength(),k=E.mont(S),z=new E(1).toRed(k);H||(H=Math.max(1,U/48|0));for(var V=S.subn(1),$=0;!V.testn($);$++);for(var T=S.shrn($),N=V.toRed(k);H>0;H--){var W=this._randrange(new E(2),V),D=S.gcd(W);if(D.cmpn(1)!==0)return D;var I=W.toRed(k).redPow(T);if(!(I.cmp(z)===0||I.cmp(N)===0)){for(var v=1;v<$;v++){if(I=I.redSqr(),I.cmp(z)===0)return I.fromRed().subn(1).gcd(S);if(I.cmp(N)===0)break}if(v===$)return I=I.redSqr(),I.fromRed().subn(1).gcd(S)}}return!1}}),L6=F0((l,g)=>{var E=g5();g.exports=c,c.simpleSieve=y,c.fermatTest=p;var M=D6(),j=new M(24),S=N6(),H=new S,U=new M(1),k=new M(2),z=new M(5),V=new M(16),$=new M(8),T=new M(10),N=new M(3),W=new M(7),D=new M(11),I=new M(4),v=new M(12),x=null;function A(){if(x!==null)return x;var n=1048576,i=[];i[0]=2;for(var Y0=1,f=3;f<n;f+=2){for(var P0=Math.ceil(Math.sqrt(f)),K=0;K<Y0&&i[K]<=P0&&f%i[K]!==0;K++);Y0!==K&&i[K]<=P0||(i[Y0++]=f)}return x=i,i}function y(n){for(var i=A(),Y0=0;Y0<i.length;Y0++)if(n.modn(i[Y0])===0)return n.cmpn(i[Y0])===0;return!0}function p(n){var i=M.mont(n);return k.toRed(i).redPow(n.subn(1)).fromRed().cmpn(1)===0}function c(n,i){if(n<16)return i===2||i===5?new M([140,123]):new M([140,39]);i=new M(i);for(var Y0,f;;){for(Y0=new M(E(Math.ceil(n/8)));Y0.bitLength()>n;)Y0.ishrn(1);if(Y0.isEven()&&Y0.iadd(U),Y0.testn(1)||Y0.iadd(k),i.cmp(k)){if(!i.cmp(z))for(;Y0.mod(T).cmp(N);)Y0.iadd(I)}else for(;Y0.mod(j).cmp(D);)Y0.iadd(I);if(f=Y0.shrn(1),y(f)&&y(Y0)&&p(f)&&p(Y0)&&H.test(f)&&H.test(Y0))return Y0}}}),h7=F0((l,g)=>{g.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}),u7=F0((l,g)=>{var E=D6(),M=N6(),j=new M,S=new E(24),H=new E(11),U=new E(10),k=new E(3),z=new E(7),V=L6(),$=g5();g.exports=I;function T(x,A){return A=A||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,A)),this._pub=new E(x),this}function N(x,A){return A=A||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,A)),this._priv=new E(x),this}var W={};function D(x,A){var y=A.toString("hex"),p=[y,x.toString(16)].join("_");if(p in W)return W[p];var c=0;if(x.isEven()||!V.simpleSieve||!V.fermatTest(x)||!j.test(x))return c+=1,y==="02"||y==="05"?c+=8:c+=4,W[p]=c,c;j.test(x.shrn(1))||(c+=2);var n;switch(y){case"02":x.mod(S).cmp(H)&&(c+=8);break;case"05":n=x.mod(U),n.cmp(k)&&n.cmp(z)&&(c+=8);break;default:c+=4}return W[p]=c,c}function I(x,A,y){this.setGenerator(A),this.__prime=new E(x),this._prime=E.mont(this.__prime),this._primeLen=x.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,y?(this.setPublicKey=T,this.setPrivateKey=N):this._primeCode=8}Object.defineProperty(I.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=D(this.__prime,this.__gen)),this._primeCode}}),I.prototype.generateKeys=function(){return this._priv||(this._priv=new E($(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},I.prototype.computeSecret=function(x){x=new E(x),x=x.toRed(this._prime);var A=x.redPow(this._priv).fromRed(),y=new Buffer(A.toArray()),p=this.getPrime();if(y.length<p.length){var c=new Buffer(p.length-y.length);c.fill(0),y=Buffer.concat([c,y])}return y},I.prototype.getPublicKey=function(x){return v(this._pub,x)},I.prototype.getPrivateKey=function(x){return v(this._priv,x)},I.prototype.getPrime=function(x){return v(this.__prime,x)},I.prototype.getGenerator=function(x){return v(this._gen,x)},I.prototype.setGenerator=function(x,A){return A=A||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,A)),this.__gen=x,this._gen=new E(x),this};function v(x,A){var y=new Buffer(x.toArray());return A?y.toString(A):y}}),o7=F0((l)=>{var g=L6(),E=h7(),M=u7();function j(U){var k=new Buffer(E[U].prime,"hex"),z=new Buffer(E[U].gen,"hex");return new M(k,z)}var S={binary:!0,hex:!0,base64:!0};function H(U,k,z,V){return Buffer.isBuffer(k)||S[k]===void 0?H(U,"binary",k,z):(k=k||"binary",V=V||"binary",z=z||new Buffer([2]),Buffer.isBuffer(z)||(z=new Buffer(z,V)),typeof U=="number"?new M(g(U,z),z,!0):(Buffer.isBuffer(U)||(U=new Buffer(U,k)),new M(U,z,!0)))}l.DiffieHellmanGroup=l.createDiffieHellmanGroup=l.getDiffieHellman=j,l.createDiffieHellman=l.DiffieHellman=H}),k6=F0((l,g)=>{g.exports=S5().EventEmitter}),s7=F0((l,g)=>{function E(W,D){var I=Object.keys(W);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(W);D&&(v=v.filter(function(x){return Object.getOwnPropertyDescriptor(W,x).enumerable})),I.push.apply(I,v)}return I}function M(W){for(var D=1;D<arguments.length;D++){var I=arguments[D]!=null?arguments[D]:{};D%2?E(Object(I),!0).forEach(function(v){j(W,v,I[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(I)):E(Object(I)).forEach(function(v){Object.defineProperty(W,v,Object.getOwnPropertyDescriptor(I,v))})}return W}function j(W,D,I){return D in W?Object.defineProperty(W,D,{value:I,enumerable:!0,configurable:!0,writable:!0}):W[D]=I,W}function S(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}function H(W,D){for(var I=0;I<D.length;I++){var v=D[I];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(W,v.key,v)}}function U(W,D,I){return D&&H(W.prototype,D),I&&H(W,I),W}var k=W5(),z=k.Buffer,V=t5(),$=V.inspect,T=$&&$.custom||"inspect";function N(W,D,I){z.prototype.copy.call(W,D,I)}g.exports=function(){function W(){S(this,W),this.head=null,this.tail=null,this.length=0}return U(W,[{key:"push",value:function(D){var I={data:D,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(D){var I={data:D,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var D=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,D}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(D){if(this.length===0)return"";for(var I=this.head,v=""+I.data;I=I.next;)v+=D+I.data;return v}},{key:"concat",value:function(D){if(this.length===0)return z.alloc(0);for(var I=z.allocUnsafe(D>>>0),v=this.head,x=0;v;)N(v.data,I,x),x+=v.data.length,v=v.next;return I}},{key:"consume",value:function(D,I){var v;return D<this.head.data.length?(v=this.head.data.slice(0,D),this.head.data=this.head.data.slice(D)):D===this.head.data.length?v=this.shift():v=I?this._getString(D):this._getBuffer(D),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var I=this.head,v=1,x=I.data;for(D-=x.length;I=I.next;){var A=I.data,y=D>A.length?A.length:D;if(y===A.length?x+=A:x+=A.slice(0,D),D-=y,D===0){y===A.length?(++v,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=A.slice(y));break}++v}return this.length-=v,x}},{key:"_getBuffer",value:function(D){var I=z.allocUnsafe(D),v=this.head,x=1;for(v.data.copy(I),D-=v.data.length;v=v.next;){var A=v.data,y=D>A.length?A.length:D;if(A.copy(I,I.length-D,0,y),D-=y,D===0){y===A.length?(++x,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=A.slice(y));break}++x}return this.length-=x,I}},{key:T,value:function(D,I){return $(this,M({},I,{depth:0,customInspect:!1}))}}]),W}()}),I6=F0((l,g)=>{function E(k,z){var V=this,$=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return $||T?(z?z(k):k&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(H,this,k)):process.nextTick(H,this,k)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(k||null,function(N){!z&&N?V._writableState?V._writableState.errorEmitted?process.nextTick(j,V):(V._writableState.errorEmitted=!0,process.nextTick(M,V,N)):process.nextTick(M,V,N):z?(process.nextTick(j,V),z(N)):process.nextTick(j,V)}),this)}function M(k,z){H(k,z),j(k)}function j(k){k._writableState&&!k._writableState.emitClose||k._readableState&&!k._readableState.emitClose||k.emit("close")}function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function H(k,z){k.emit("error",z)}function U(k,z){var{_readableState:V,_writableState:$}=k;V&&V.autoDestroy||$&&$.autoDestroy?k.destroy(z):k.emit("error",z)}g.exports={destroy:E,undestroy:S,errorOrDestroy:U}}),c5=F0((l,g)=>{function E(z,V){z.prototype=Object.create(V.prototype),z.prototype.constructor=z,z.__proto__=V}var M={};function j(z,V,$){$||($=Error);function T(W,D,I){return typeof V=="string"?V:V(W,D,I)}var N=function(W){E(D,W);function D(I,v,x){return W.call(this,T(I,v,x))||this}return D}($);N.prototype.name=$.name,N.prototype.code=z,M[z]=N}function S(z,V){if(Array.isArray(z)){var $=z.length;return z=z.map(function(T){return String(T)}),$>2?"one of ".concat(V," ").concat(z.slice(0,$-1).join(", "),", or ")+z[$-1]:$===2?"one of ".concat(V," ").concat(z[0]," or ").concat(z[1]):"of ".concat(V," ").concat(z[0])}else return"of ".concat(V," ").concat(String(z))}function H(z,V,$){return z.substr(!$||$<0?0:+$,V.length)===V}function U(z,V,$){return($===void 0||$>z.length)&&($=z.length),z.substring($-V.length,$)===V}function k(z,V,$){return typeof $!="number"&&($=0),$+V.length>z.length?!1:z.indexOf(V,$)!==-1}j("ERR_INVALID_OPT_VALUE",function(z,V){return'The value "'+V+'" is invalid for option "'+z+'"'},TypeError),j("ERR_INVALID_ARG_TYPE",function(z,V,$){var T;typeof V=="string"&&H(V,"not ")?(T="must not be",V=V.replace(/^not /,"")):T="must be";var N;if(U(z," argument"))N="The ".concat(z," ").concat(T," ").concat(S(V,"type"));else{var W=k(z,".")?"property":"argument";N='The "'.concat(z,'" ').concat(W," ").concat(T," ").concat(S(V,"type"))}return N+=". Received type ".concat(typeof $),N},TypeError),j("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),j("ERR_METHOD_NOT_IMPLEMENTED",function(z){return"The "+z+" method is not implemented"}),j("ERR_STREAM_PREMATURE_CLOSE","Premature close"),j("ERR_STREAM_DESTROYED",function(z){return"Cannot call "+z+" after a stream was destroyed"}),j("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),j("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),j("ERR_STREAM_WRITE_AFTER_END","write after end"),j("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),j("ERR_UNKNOWN_ENCODING",function(z){return"Unknown encoding: "+z},TypeError),j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=M}),q6=F0((l,g)=>{var E=c5().codes.ERR_INVALID_OPT_VALUE;function M(S,H,U){return S.highWaterMark!=null?S.highWaterMark:H?S[U]:null}function j(S,H,U,k){var z=M(H,k,U);if(z!=null){if(!(isFinite(z)&&Math.floor(z)===z)||z<0){var V=k?U:"highWaterMark";throw new E(V,z)}return Math.floor(z)}return S.objectMode?16:16384}g.exports={getHighWaterMark:j}}),B6=F0((l,g)=>{g.exports=f;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){C0(d,u)}}var M;f.WritableState=i;var j={deprecate:o9()},S=k6(),H=W5().Buffer,U=global.Uint8Array||function(){};function k(u){return H.from(u)}function z(u){return H.isBuffer(u)||u instanceof U}var V=I6(),$=q6(),T=$.getHighWaterMark,N=c5().codes,W=N.ERR_INVALID_ARG_TYPE,D=N.ERR_METHOD_NOT_IMPLEMENTED,I=N.ERR_MULTIPLE_CALLBACK,v=N.ERR_STREAM_CANNOT_PIPE,x=N.ERR_STREAM_DESTROYED,A=N.ERR_STREAM_NULL_VALUES,y=N.ERR_STREAM_WRITE_AFTER_END,p=N.ERR_UNKNOWN_ENCODING,c=V.errorOrDestroy;p0()(f,S);function n(){}function i(u,d,a){M=M||y5(),u=u||{},typeof a!="boolean"&&(a=d instanceof M),this.objectMode=!!u.objectMode,a&&(this.objectMode=this.objectMode||!!u.writableObjectMode),this.highWaterMark=T(this,u,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var V0=u.decodeStrings===!1;this.decodeStrings=!V0,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K0){Z(d,K0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=u.emitClose!==!1,this.autoDestroy=!!u.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new E(this)}i.prototype.getBuffer=function(){for(var u=this.bufferedRequest,d=[];u;)d.push(u),u=u.next;return d},function(){try{Object.defineProperty(i.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Y0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Y0=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(u){return Y0.call(this,u)?!0:this!==f?!1:u&&u._writableState instanceof i}})):Y0=function(u){return u instanceof this};function f(u){M=M||y5();var d=this instanceof M;if(!d&&!Y0.call(f,this))return new f(u);this._writableState=new i(u,this,d),this.writable=!0,u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final)),S.call(this)}f.prototype.pipe=function(){c(this,new v)};function P0(u,d){var a=new y;c(u,a),process.nextTick(d,a)}function K(u,d,a,V0){var K0;return a===null?K0=new A:typeof a!="string"&&!d.objectMode&&(K0=new W("chunk",["string","Buffer"],a)),K0?(c(u,K0),process.nextTick(V0,K0),!1):!0}f.prototype.write=function(u,d,a){var V0=this._writableState,K0=!1,Q0=!V0.objectMode&&z(u);return Q0&&!H.isBuffer(u)&&(u=k(u)),typeof d=="function"&&(a=d,d=null),Q0?d="buffer":d||(d=V0.defaultEncoding),typeof a!="function"&&(a=n),V0.ending?P0(this,a):(Q0||K(this,V0,u,a))&&(V0.pendingcb++,K0=J(this,V0,Q0,u,d,a)),K0},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&G(this,u))},f.prototype.setDefaultEncoding=function(u){if(typeof u=="string"&&(u=u.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((u+"").toLowerCase())>-1))throw new p(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function C(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=H.from(d,a)),d}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(u,d,a,V0,K0,Q0){if(!a){var w=C(d,V0,K0);V0!==w&&(a=!0,K0="buffer",V0=w)}var q=d.objectMode?1:V0.length;d.length+=q;var m=d.length<d.highWaterMark;if(m||(d.needDrain=!0),d.writing||d.corked){var e=d.lastBufferedRequest;d.lastBufferedRequest={chunk:V0,encoding:K0,isBuf:a,callback:Q0,next:null},e?e.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else Y(u,d,!1,q,V0,K0,Q0);return m}function Y(u,d,a,V0,K0,Q0,w){d.writelen=V0,d.writecb=w,d.writing=!0,d.sync=!0,d.destroyed?d.onwrite(new x("write")):a?u._writev(K0,d.onwrite):u._write(K0,Q0,d.onwrite),d.sync=!1}function Q(u,d,a,V0,K0){--d.pendingcb,a?(process.nextTick(K0,V0),process.nextTick(s,u,d),u._writableState.errorEmitted=!0,c(u,V0)):(K0(V0),u._writableState.errorEmitted=!0,c(u,V0),s(u,d))}function P(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function Z(u,d){var a=u._writableState,V0=a.sync,K0=a.writecb;if(typeof K0!="function")throw new I;if(P(a),d)Q(u,a,V0,d,K0);else{var Q0=R(a)||u.destroyed;!Q0&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&G(u,a),V0?process.nextTick(F,u,a,Q0,K0):F(u,a,Q0,K0)}}function F(u,d,a,V0){a||X(u,d),d.pendingcb--,V0(),s(u,d)}function X(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function G(u,d){d.bufferProcessing=!0;var a=d.bufferedRequest;if(u._writev&&a&&a.next){var V0=d.bufferedRequestCount,K0=new Array(V0),Q0=d.corkedRequestsFree;Q0.entry=a;for(var w=0,q=!0;a;)K0[w]=a,a.isBuf||(q=!1),a=a.next,w+=1;K0.allBuffers=q,Y(u,d,!0,d.length,K0,"",Q0.finish),d.pendingcb++,d.lastBufferedRequest=null,Q0.next?(d.corkedRequestsFree=Q0.next,Q0.next=null):d.corkedRequestsFree=new E(d),d.bufferedRequestCount=0}else{for(;a;){var{chunk:m,encoding:e,callback:X0}=a,t=d.objectMode?1:m.length;if(Y(u,d,!1,t,m,e,X0),a=a.next,d.bufferedRequestCount--,d.writing)break}a===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=a,d.bufferProcessing=!1}f.prototype._write=function(u,d,a){a(new D("_write()"))},f.prototype._writev=null,f.prototype.end=function(u,d,a){var V0=this._writableState;return typeof u=="function"?(a=u,u=null,d=null):typeof d=="function"&&(a=d,d=null),u!=null&&this.write(u,d),V0.corked&&(V0.corked=1,this.uncork()),V0.ending||r(this,V0,a),this},Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function R(u){return u.ending&&u.length===0&&u.bufferedRequest===null&&!u.finished&&!u.writing}function L(u,d){u._final(function(a){d.pendingcb--,a&&c(u,a),d.prefinished=!0,u.emit("prefinish"),s(u,d)})}function _(u,d){!d.prefinished&&!d.finalCalled&&(typeof u._final=="function"&&!d.destroyed?(d.pendingcb++,d.finalCalled=!0,process.nextTick(L,u,d)):(d.prefinished=!0,u.emit("prefinish")))}function s(u,d){var a=R(d);if(a&&(_(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"),d.autoDestroy))){var V0=u._readableState;(!V0||V0.autoDestroy&&V0.endEmitted)&&u.destroy()}return a}function r(u,d,a){d.ending=!0,s(u,d),a&&(d.finished?process.nextTick(a):u.once("finish",a)),d.ended=!0,u.writable=!1}function C0(u,d,a){var V0=u.entry;for(u.entry=null;V0;){var K0=V0.callback;d.pendingcb--,K0(a),V0=V0.next}d.corkedRequestsFree.next=u}Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){!this._writableState||(this._writableState.destroyed=u)}}),f.prototype.destroy=V.destroy,f.prototype._undestroy=V.undestroy,f.prototype._destroy=function(u,d){d(u)}}),y5=F0((l,g)=>{var E=Object.keys||function($){var T=[];for(var N in $)T.push(N);return T};g.exports=k;var M=R6(),j=B6();p0()(k,M);for(S=E(j.prototype),U=0;U<S.length;U++)H=S[U],k.prototype[H]||(k.prototype[H]=j.prototype[H]);var S,H,U;function k($){if(!(this instanceof k))return new k($);M.call(this,$),j.call(this,$),this.allowHalfOpen=!0,$&&($.readable===!1&&(this.readable=!1),$.writable===!1&&(this.writable=!1),$.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||process.nextTick(V,this)}function V($){$.end()}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function($){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=$,this._writableState.destroyed=$)}})}),R9=F0((l,g)=>{var E=c5().codes.ERR_STREAM_PREMATURE_CLOSE;function M(U){var k=!1;return function(){if(!k){k=!0;for(var z=arguments.length,V=new Array(z),$=0;$<z;$++)V[$]=arguments[$];U.apply(this,V)}}}function j(){}function S(U){return U.setHeader&&typeof U.abort=="function"}function H(U,k,z){if(typeof k=="function")return H(U,null,k);k||(k={}),z=M(z||j);var V=k.readable||k.readable!==!1&&U.readable,$=k.writable||k.writable!==!1&&U.writable,T=function(){U.writable||W()},N=U._writableState&&U._writableState.finished,W=function(){$=!1,N=!0,V||z.call(U)},D=U._readableState&&U._readableState.endEmitted,I=function(){V=!1,D=!0,$||z.call(U)},v=function(y){z.call(U,y)},x=function(){var y;if(V&&!D)return(!U._readableState||!U._readableState.ended)&&(y=new E),z.call(U,y);if($&&!N)return(!U._writableState||!U._writableState.ended)&&(y=new E),z.call(U,y)},A=function(){U.req.on("finish",W)};return S(U)?(U.on("complete",W),U.on("abort",x),U.req?A():U.on("request",A)):$&&!U._writableState&&(U.on("end",T),U.on("close",T)),U.on("end",I),U.on("finish",W),k.error!==!1&&U.on("error",v),U.on("close",x),function(){U.removeListener("complete",W),U.removeListener("abort",x),U.removeListener("request",A),U.req&&U.req.removeListener("finish",W),U.removeListener("end",T),U.removeListener("close",T),U.removeListener("finish",W),U.removeListener("end",I),U.removeListener("error",v),U.removeListener("close",x)}}g.exports=H}),a7=F0((l,g)=>{var E;function M(A,y,p){return y in A?Object.defineProperty(A,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):A[y]=p,A}var j=R9(),S=Symbol("lastResolve"),H=Symbol("lastReject"),U=Symbol("error"),k=Symbol("ended"),z=Symbol("lastPromise"),V=Symbol("handlePromise"),$=Symbol("stream");function T(A,y){return{value:A,done:y}}function N(A){var y=A[S];if(y!==null){var p=A[$].read();p!==null&&(A[z]=null,A[S]=null,A[H]=null,y(T(p,!1)))}}function W(A){process.nextTick(N,A)}function D(A,y){return function(p,c){A.then(function(){if(y[k]){p(T(void 0,!0));return}y[V](p,c)},c)}}var I=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((E={get stream(){return this[$]},next:function(){var A=this,y=this[U];if(y!==null)return Promise.reject(y);if(this[k])return Promise.resolve(T(void 0,!0));if(this[$].destroyed)return new Promise(function(i,Y0){process.nextTick(function(){A[U]?Y0(A[U]):i(T(void 0,!0))})});var p=this[z],c;if(p)c=new Promise(D(p,this));else{var n=this[$].read();if(n!==null)return Promise.resolve(T(n,!1));c=new Promise(this[V])}return this[z]=c,c}},M(E,Symbol.asyncIterator,function(){return this}),M(E,"return",function(){var A=this;return new Promise(function(y,p){A[$].destroy(null,function(c){if(c){p(c);return}y(T(void 0,!0))})})}),E),I),x=function(A){var y,p=Object.create(v,(y={},M(y,$,{value:A,writable:!0}),M(y,S,{value:null,writable:!0}),M(y,H,{value:null,writable:!0}),M(y,U,{value:null,writable:!0}),M(y,k,{value:A._readableState.endEmitted,writable:!0}),M(y,V,{value:function(c,n){var i=p[$].read();i?(p[z]=null,p[S]=null,p[H]=null,c(T(i,!1))):(p[S]=c,p[H]=n)},writable:!0}),y));return p[z]=null,j(A,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[H];n!==null&&(p[z]=null,p[S]=null,p[H]=null,n(c)),p[U]=c;return}var i=p[S];i!==null&&(p[z]=null,p[S]=null,p[H]=null,i(T(void 0,!0))),p[k]=!0}),A.on("readable",W.bind(null,p)),p};g.exports=x}),f7=F0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),R6=F0((l,g)=>{g.exports=K;var E;K.ReadableState=P0;var M=S5().EventEmitter,j=function(w,q){return w.listeners(q).length},S=k6(),H=W5().Buffer,U=global.Uint8Array||function(){};function k(w){return H.from(w)}function z(w){return H.isBuffer(w)||w instanceof U}var V=t5(),$;V&&V.debuglog?$=V.debuglog("stream"):$=function(){};var T=s7(),N=I6(),W=q6(),D=W.getHighWaterMark,I=c5().codes,v=I.ERR_INVALID_ARG_TYPE,x=I.ERR_STREAM_PUSH_AFTER_EOF,A=I.ERR_METHOD_NOT_IMPLEMENTED,y=I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(K,S);var i=N.errorOrDestroy,Y0=["error","close","destroy","pause","resume"];function f(w,q,m){if(typeof w.prependListener=="function")return w.prependListener(q,m);!w._events||!w._events[q]?w.on(q,m):Array.isArray(w._events[q])?w._events[q].unshift(m):w._events[q]=[m,w._events[q]]}function P0(w,q,m){E=E||y5(),w=w||{},typeof m!="boolean"&&(m=q instanceof E),this.objectMode=!!w.objectMode,m&&(this.objectMode=this.objectMode||!!w.readableObjectMode),this.highWaterMark=D(this,w,"readableHighWaterMark",m),this.buffer=new T,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=w.emitClose!==!1,this.autoDestroy=!!w.autoDestroy,this.destroyed=!1,this.defaultEncoding=w.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,w.encoding&&(p||(p=(f5(),z5(d5)).StringDecoder),this.decoder=new p(w.encoding),this.encoding=w.encoding)}function K(w){if(E=E||y5(),!(this instanceof K))return new K(w);var q=this instanceof E;this._readableState=new P0(w,this,q),this.readable=!0,w&&(typeof w.read=="function"&&(this._read=w.read),typeof w.destroy=="function"&&(this._destroy=w.destroy)),S.call(this)}Object.defineProperty(K.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(w){!this._readableState||(this._readableState.destroyed=w)}}),K.prototype.destroy=N.destroy,K.prototype._undestroy=N.undestroy,K.prototype._destroy=function(w,q){q(w)},K.prototype.push=function(w,q){var m=this._readableState,e;return m.objectMode?e=!0:typeof w=="string"&&(q=q||m.defaultEncoding,q!==m.encoding&&(w=H.from(w,q),q=""),e=!0),C(this,w,q,!1,e)},K.prototype.unshift=function(w){return C(this,w,null,!0,!1)};function C(w,q,m,e,X0){$("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,F(w,t);else{var _0;if(X0||(_0=Y(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==H.prototype&&(q=k(q)),e)t.endEmitted?i(w,new y):J(w,t,q,!0);else if(t.ended)i(w,new x);else{if(t.destroyed)return!1;t.reading=!1,t.decoder&&!m?(q=t.decoder.write(q),t.objectMode||q.length!==0?J(w,t,q,!1):R(w,t)):J(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function J(w,q,m,e){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,w.emit("data",m)):(q.length+=q.objectMode?1:m.length,e?q.buffer.unshift(m):q.buffer.push(m),q.needReadable&&X(w)),R(w,q)}function Y(w,q){var m;return!z(q)&&typeof q!="string"&&q!==void 0&&!w.objectMode&&(m=new v("chunk",["string","Buffer","Uint8Array"],q)),m}K.prototype.isPaused=function(){return this._readableState.flowing===!1},K.prototype.setEncoding=function(w){p||(p=(f5(),z5(d5)).StringDecoder);var q=new p(w);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var m=this._readableState.buffer.head,e="";m!==null;)e+=q.write(m.data),m=m.next;return this._readableState.buffer.clear(),e!==""&&this._readableState.buffer.push(e),this._readableState.length=e.length,this};var Q=1073741824;function P(w){return w>=Q?w=Q:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}function Z(w,q){return w<=0||q.length===0&&q.ended?0:q.objectMode?1:w!==w?q.flowing&&q.length?q.buffer.head.data.length:q.length:(w>q.highWaterMark&&(q.highWaterMark=P(w)),w<=q.length?w:q.ended?q.length:(q.needReadable=!0,0))}K.prototype.read=function(w){$("read",w),w=parseInt(w,10);var q=this._readableState,m=w;if(w!==0&&(q.emittedReadable=!1),w===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return $("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?V0(this):X(this),null;if(w=Z(w,q),w===0&&q.ended)return q.length===0&&V0(this),null;var e=q.needReadable;$("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,$("length less than watermark",e)),q.ended||q.reading?(e=!1,$("reading or ended",e)):e&&($("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=Z(m,q)));var X0;return w>0?X0=a(w,q):X0=null,X0===null?(q.needReadable=q.length<=q.highWaterMark,w=0):(q.length-=w,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),m!==w&&q.ended&&V0(this)),X0!==null&&this.emit("data",X0),X0};function F(w,q){if($("onEofChunk"),!q.ended){if(q.decoder){var m=q.decoder.end();m&&m.length&&(q.buffer.push(m),q.length+=q.objectMode?1:m.length)}q.ended=!0,q.sync?X(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,G(w)))}}function X(w){var q=w._readableState;$("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||($("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(G,w))}function G(w){var q=w._readableState;$("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(w.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,d(w)}function R(w,q){q.readingMore||(q.readingMore=!0,process.nextTick(L,w,q))}function L(w,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var m=q.length;if($("maybeReadMore read 0"),w.read(0),m===q.length)break}q.readingMore=!1}K.prototype._read=function(w){i(this,new A("_read()"))},K.prototype.pipe=function(w,q){var m=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=w;break;case 1:e.pipes=[e.pipes,w];break;default:e.pipes.push(w);break}e.pipesCount+=1,$("pipe count=%d opts=%j",e.pipesCount,q);var X0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=X0?H0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){$("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,W0())}function H0(){$("onend"),w.end()}var G0=_(m);w.on("drain",G0);var w0=!1;function W0(){$("cleanup"),w.removeListener("close",O),w.removeListener("finish",B),w.removeListener("drain",G0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",H0),m.removeListener("end",b),m.removeListener("data",Z0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&G0()}m.on("data",Z0);function Z0(h){$("ondata");var o=w.write(h);$("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&Q0(e.pipes,w)!==-1)&&!w0&&($("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){$("onerror",h),b(),w.removeListener("error",c0),j(w,"error")===0&&i(w,h)}f(w,"error",c0);function O(){w.removeListener("finish",B),b()}w.once("close",O);function B(){$("onfinish"),w.removeListener("close",O),b()}w.once("finish",B);function b(){$("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||($("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;$("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&j(w,"data")&&(q.flowing=!0,d(w))}}K.prototype.unpipe=function(w){var q=this._readableState,m={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return w&&w!==q.pipes?this:(w||(w=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,w&&w.emit("unpipe",this,m),this);if(!w){var{pipes:e,pipesCount:X0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<X0;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}var _0=Q0(q.pipes,w);return _0===-1?this:(q.pipes.splice(_0,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),w.emit("unpipe",this,m),this)},K.prototype.on=function(w,q){var m=S.prototype.on.call(this,w,q),e=this._readableState;return w==="data"?(e.readableListening=this.listenerCount("readable")>0,e.flowing!==!1&&this.resume()):w==="readable"&&!e.endEmitted&&!e.readableListening&&(e.readableListening=e.needReadable=!0,e.flowing=!1,e.emittedReadable=!1,$("on readable",e.length,e.reading),e.length?X(this):e.reading||process.nextTick(r,this)),m},K.prototype.addListener=K.prototype.on,K.prototype.removeListener=function(w,q){var m=S.prototype.removeListener.call(this,w,q);return w==="readable"&&process.nextTick(s,this),m},K.prototype.removeAllListeners=function(w){var q=S.prototype.removeAllListeners.apply(this,arguments);return(w==="readable"||w===void 0)&&process.nextTick(s,this),q};function s(w){var q=w._readableState;q.readableListening=w.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:w.listenerCount("data")>0&&w.resume()}function r(w){$("readable nexttick read 0"),w.read(0)}K.prototype.resume=function(){var w=this._readableState;return w.flowing||($("resume"),w.flowing=!w.readableListening,C0(this,w)),w.paused=!1,this};function C0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){$("resume",q.reading),q.reading||w.read(0),q.resumeScheduled=!1,w.emit("resume"),d(w),q.flowing&&!q.reading&&w.read(0)}K.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for($("flow",q.flowing);q.flowing&&w.read()!==null;);}K.prototype.wrap=function(w){var q=this,m=this._readableState,e=!1;w.on("end",function(){if($("wrapped end"),m.decoder&&!m.ended){var _0=m.decoder.end();_0&&_0.length&&q.push(_0)}q.push(null)}),w.on("data",function(_0){if($("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var H0=q.push(_0);H0||(e=!0,w.pause())}});for(var X0 in w)this[X0]===void 0&&typeof w[X0]=="function"&&(this[X0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(X0));for(var t=0;t<Y0.length;t++)w.on(Y0[t],this.emit.bind(this,Y0[t]));return this._read=function(_0){$("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=a7()),c(this)}),Object.defineProperty(K.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(K.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(K.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(w){this._readableState&&(this._readableState.flowing=w)}}),K._fromList=a,Object.defineProperty(K.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function a(w,q){if(q.length===0)return null;var m;return q.objectMode?m=q.buffer.shift():!w||w>=q.length?(q.decoder?m=q.buffer.join(""):q.buffer.length===1?m=q.buffer.first():m=q.buffer.concat(q.length),q.buffer.clear()):m=q.buffer.consume(w,q.decoder),m}function V0(w){var q=w._readableState;$("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(K0,q,w))}function K0(w,q){if($("endReadableNT",w.endEmitted,w.length),!w.endEmitted&&w.length===0&&(w.endEmitted=!0,q.readable=!1,q.emit("end"),w.autoDestroy)){var m=q._writableState;(!m||m.autoDestroy&&m.finished)&&q.destroy()}}typeof Symbol=="function"&&(K.from=function(w,q){return n===void 0&&(n=f7()),n(K,w,q)});function Q0(w,q){for(var m=0,e=w.length;m<e;m++)if(w[m]===q)return m;return-1}}),E6=F0((l,g)=>{g.exports=z;var E=c5().codes,M=E.ERR_METHOD_NOT_IMPLEMENTED,j=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,H=E.ERR_TRANSFORM_WITH_LENGTH_0,U=y5();p0()(z,U);function k(T,N){var W=this._transformState;W.transforming=!1;var D=W.writecb;if(D===null)return this.emit("error",new j);W.writechunk=null,W.writecb=null,N!=null&&this.push(N),D(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function z(T){if(!(this instanceof z))return new z(T);U.call(this,T),this._transformState={afterTransform:k.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,T&&(typeof T.transform=="function"&&(this._transform=T.transform),typeof T.flush=="function"&&(this._flush=T.flush)),this.on("prefinish",V)}function V(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,W){$(T,N,W)}):$(this,null,null)}z.prototype.push=function(T,N){return this._transformState.needTransform=!1,U.prototype.push.call(this,T,N)},z.prototype._transform=function(T,N,W){W(new M("_transform()"))},z.prototype._write=function(T,N,W){var D=this._transformState;if(D.writecb=W,D.writechunk=T,D.writeencoding=N,!D.transforming){var I=this._readableState;(D.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},z.prototype._read=function(T){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},z.prototype._destroy=function(T,N){U.prototype._destroy.call(this,T,function(W){N(W)})};function $(T,N,W){if(N)return T.emit("error",N);if(W!=null&&T.push(W),T._writableState.length)throw new H;if(T._transformState.transforming)throw new S;return T.push(null)}}),n7=F0((l,g)=>{g.exports=M;var E=E6();p0()(M,E);function M(j){if(!(this instanceof M))return new M(j);E.call(this,j)}M.prototype._transform=function(j,S,H){H(null,j)}}),r7=F0((l,g)=>{var E;function M(W){var D=!1;return function(){D||(D=!0,W.apply(void 0,arguments))}}var j=c5().codes,S=j.ERR_MISSING_ARGS,H=j.ERR_STREAM_DESTROYED;function U(W){if(W)throw W}function k(W){return W.setHeader&&typeof W.abort=="function"}function z(W,D,I,v){v=M(v);var x=!1;W.on("close",function(){x=!0}),E===void 0&&(E=R9()),E(W,{readable:D,writable:I},function(y){if(y)return v(y);x=!0,v()});var A=!1;return function(y){if(!x&&!A){if(A=!0,k(W))return W.abort();if(typeof W.destroy=="function")return W.destroy();v(y||new H("pipe"))}}}function V(W){W()}function $(W,D){return W.pipe(D)}function T(W){return!W.length||typeof W[W.length-1]!="function"?U:W.pop()}function N(){for(var W=arguments.length,D=new Array(W),I=0;I<W;I++)D[I]=arguments[I];var v=T(D);if(Array.isArray(D[0])&&(D=D[0]),D.length<2)throw new S("streams");var x,A=D.map(function(y,p){var c=p<D.length-1,n=p>0;return z(y,c,n,function(i){x||(x=i),i&&A.forEach(V),!c&&(A.forEach(V),v(x))})});return D.reduce($)}g.exports=N}),i7=F0((l,g)=>{l=g.exports=R6(),l.Stream=l,l.Readable=l,l.Writable=B6(),l.Duplex=y5(),l.Transform=E6(),l.PassThrough=n7(),l.finished=R9(),l.pipeline=r7()}),E9=F0((l,g)=>{(function(E,M){function j(Y,Q){if(!Y)throw new Error(Q||"Assertion failed")}function S(Y,Q){Y.super_=Q;var P=function(){};P.prototype=Q.prototype,Y.prototype=new P,Y.prototype.constructor=Y}function H(Y,Q,P){if(H.isBN(Y))return Y;this.negative=0,this.words=null,this.length=0,this.red=null,Y!==null&&((Q==="le"||Q==="be")&&(P=Q,Q=10),this._init(Y||0,Q||10,P||"be"))}typeof E=="object"?E.exports=H:M.BN=H,H.BN=H,H.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}H.isBN=function(Y){return Y instanceof H?!0:Y!==null&&typeof Y=="object"&&Y.constructor.wordSize===H.wordSize&&Array.isArray(Y.words)},H.max=function(Y,Q){return Y.cmp(Q)>0?Y:Q},H.min=function(Y,Q){return Y.cmp(Q)<0?Y:Q},H.prototype._init=function(Y,Q,P){if(typeof Y=="number")return this._initNumber(Y,Q,P);if(typeof Y=="object")return this._initArray(Y,Q,P);Q==="hex"&&(Q=16),j(Q===(Q|0)&&Q>=2&&Q<=36),Y=Y.toString().replace(/\s+/g,"");var Z=0;Y[0]==="-"&&(Z++,this.negative=1),Z<Y.length&&(Q===16?this._parseHex(Y,Z,P):(this._parseBase(Y,Q,Z),P==="le"&&this._initArray(this.toArray(),Q,P)))},H.prototype._initNumber=function(Y,Q,P){Y<0&&(this.negative=1,Y=-Y),Y<67108864?(this.words=[Y&67108863],this.length=1):Y<4503599627370496?(this.words=[Y&67108863,Y/67108864&67108863],this.length=2):(j(Y<9007199254740992),this.words=[Y&67108863,Y/67108864&67108863,1],this.length=3),P==="le"&&this._initArray(this.toArray(),Q,P)},H.prototype._initArray=function(Y,Q,P){if(j(typeof Y.length=="number"),Y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Y.length/3),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var F,X,G=0;if(P==="be")for(Z=Y.length-1,F=0;Z>=0;Z-=3)X=Y[Z]|Y[Z-1]<<8|Y[Z-2]<<16,this.words[F]|=X<<G&67108863,this.words[F+1]=X>>>26-G&67108863,G+=24,G>=26&&(G-=26,F++);else if(P==="le")for(Z=0,F=0;Z<Y.length;Z+=3)X=Y[Z]|Y[Z+1]<<8|Y[Z+2]<<16,this.words[F]|=X<<G&67108863,this.words[F+1]=X>>>26-G&67108863,G+=24,G>=26&&(G-=26,F++);return this._strip()};function k(Y,Q){var P=Y.charCodeAt(Q);if(P>=48&&P<=57)return P-48;if(P>=65&&P<=70)return P-55;if(P>=97&&P<=102)return P-87;j(!1,"Invalid character in "+Y)}function z(Y,Q,P){var Z=k(Y,P);return P-1>=Q&&(Z|=k(Y,P-1)<<4),Z}H.prototype._parseHex=function(Y,Q,P){this.length=Math.ceil((Y.length-Q)/6),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var F=0,X=0,G;if(P==="be")for(Z=Y.length-1;Z>=Q;Z-=2)G=z(Y,Q,Z)<<F,this.words[X]|=G&67108863,F>=18?(F-=18,X+=1,this.words[X]|=G>>>26):F+=8;else{var R=Y.length-Q;for(Z=R%2===0?Q+1:Q;Z<Y.length;Z+=2)G=z(Y,Q,Z)<<F,this.words[X]|=G&67108863,F>=18?(F-=18,X+=1,this.words[X]|=G>>>26):F+=8}this._strip()};function V(Y,Q,P,Z){for(var F=0,X=0,G=Math.min(Y.length,P),R=Q;R<G;R++){var L=Y.charCodeAt(R)-48;F*=Z,L>=49?X=L-49+10:L>=17?X=L-17+10:X=L,j(L>=0&&X<Z,"Invalid character"),F+=X}return F}H.prototype._parseBase=function(Y,Q,P){this.words=[0],this.length=1;for(var Z=0,F=1;F<=67108863;F*=Q)Z++;Z--,F=F/Q|0;for(var X=Y.length-P,G=X%Z,R=Math.min(X,X-G)+P,L=0,_=P;_<R;_+=Z)L=V(Y,_,_+Z,Q),this.imuln(F),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L);if(G!==0){var s=1;for(L=V(Y,_,Y.length,Q),_=0;_<G;_++)s*=Q;this.imuln(s),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L)}this._strip()},H.prototype.copy=function(Y){Y.words=new Array(this.length);for(var Q=0;Q<this.length;Q++)Y.words[Q]=this.words[Q];Y.length=this.length,Y.negative=this.negative,Y.red=this.red};function $(Y,Q){Y.words=Q.words,Y.length=Q.length,Y.negative=Q.negative,Y.red=Q.red}if(H.prototype._move=function(Y){$(Y,this)},H.prototype.clone=function(){var Y=new H(null);return this.copy(Y),Y},H.prototype._expand=function(Y){for(;this.length<Y;)this.words[this.length++]=0;return this},H.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{H.prototype[Symbol.for("nodejs.util.inspect.custom")]=T}catch{H.prototype.inspect=T}else H.prototype.inspect=T;function T(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","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"],W=[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],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(Y,Q){Y=Y||10,Q=Q|0||1;var P;if(Y===16||Y==="hex"){P="";for(var Z=0,F=0,X=0;X<this.length;X++){var G=this.words[X],R=((G<<Z|F)&16777215).toString(16);F=G>>>24-Z&16777215,Z+=2,Z>=26&&(Z-=26,X--),F!==0||X!==this.length-1?P=N[6-R.length]+R+P:P=R+P}for(F!==0&&(P=F.toString(16)+P);P.length%Q!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}if(Y===(Y|0)&&Y>=2&&Y<=36){var L=W[Y],_=D[Y];P="";var s=this.clone();for(s.negative=0;!s.isZero();){var r=s.modrn(_).toString(Y);s=s.idivn(_),s.isZero()?P=r+P:P=N[L-r.length]+r+P}for(this.isZero()&&(P="0"+P);P.length%Q!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var Y=this.words[0];return this.length===2?Y+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Y+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Y:Y},H.prototype.toJSON=function(){return this.toString(16,2)},U&&(H.prototype.toBuffer=function(Y,Q){return this.toArrayLike(U,Y,Q)}),H.prototype.toArray=function(Y,Q){return this.toArrayLike(Array,Y,Q)};var I=function(Y,Q){return Y.allocUnsafe?Y.allocUnsafe(Q):new Y(Q)};H.prototype.toArrayLike=function(Y,Q,P){this._strip();var Z=this.byteLength(),F=P||Math.max(1,Z);j(Z<=F,"byte array longer than desired length"),j(F>0,"Requested array length <= 0");var X=I(Y,F),G=Q==="le"?"LE":"BE";return this["_toArrayLike"+G](X,Z),X},H.prototype._toArrayLikeLE=function(Y,Q){for(var P=0,Z=0,F=0,X=0;F<this.length;F++){var G=this.words[F]<<X|Z;Y[P++]=G&255,P<Y.length&&(Y[P++]=G>>8&255),P<Y.length&&(Y[P++]=G>>16&255),X===6?(P<Y.length&&(Y[P++]=G>>24&255),Z=0,X=0):(Z=G>>>24,X+=2)}if(P<Y.length)for(Y[P++]=Z;P<Y.length;)Y[P++]=0},H.prototype._toArrayLikeBE=function(Y,Q){for(var P=Y.length-1,Z=0,F=0,X=0;F<this.length;F++){var G=this.words[F]<<X|Z;Y[P--]=G&255,P>=0&&(Y[P--]=G>>8&255),P>=0&&(Y[P--]=G>>16&255),X===6?(P>=0&&(Y[P--]=G>>24&255),Z=0,X=0):(Z=G>>>24,X+=2)}if(P>=0)for(Y[P--]=Z;P>=0;)Y[P--]=0},Math.clz32?H.prototype._countBits=function(Y){return 32-Math.clz32(Y)}:H.prototype._countBits=function(Y){var Q=Y,P=0;return Q>=4096&&(P+=13,Q>>>=13),Q>=64&&(P+=7,Q>>>=7),Q>=8&&(P+=4,Q>>>=4),Q>=2&&(P+=2,Q>>>=2),P+Q},H.prototype._zeroBits=function(Y){if(Y===0)return 26;var Q=Y,P=0;return(Q&8191)===0&&(P+=13,Q>>>=13),(Q&127)===0&&(P+=7,Q>>>=7),(Q&15)===0&&(P+=4,Q>>>=4),(Q&3)===0&&(P+=2,Q>>>=2),(Q&1)===0&&P++,P},H.prototype.bitLength=function(){var Y=this.words[this.length-1],Q=this._countBits(Y);return(this.length-1)*26+Q};function v(Y){for(var Q=new Array(Y.bitLength()),P=0;P<Q.length;P++){var Z=P/26|0,F=P%26;Q[P]=Y.words[Z]>>>F&1}return Q}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Y=0,Q=0;Q<this.length;Q++){var P=this._zeroBits(this.words[Q]);if(Y+=P,P!==26)break}return Y},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(Y){return this.negative!==0?this.abs().inotn(Y).iaddn(1):this.clone()},H.prototype.fromTwos=function(Y){return this.testn(Y-1)?this.notn(Y).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(Y){for(;this.length<Y.length;)this.words[this.length++]=0;for(var Q=0;Q<Y.length;Q++)this.words[Q]=this.words[Q]|Y.words[Q];return this._strip()},H.prototype.ior=function(Y){return j((this.negative|Y.negative)===0),this.iuor(Y)},H.prototype.or=function(Y){return this.length>Y.length?this.clone().ior(Y):Y.clone().ior(this)},H.prototype.uor=function(Y){return this.length>Y.length?this.clone().iuor(Y):Y.clone().iuor(this)},H.prototype.iuand=function(Y){var Q;this.length>Y.length?Q=Y:Q=this;for(var P=0;P<Q.length;P++)this.words[P]=this.words[P]&Y.words[P];return this.length=Q.length,this._strip()},H.prototype.iand=function(Y){return j((this.negative|Y.negative)===0),this.iuand(Y)},H.prototype.and=function(Y){return this.length>Y.length?this.clone().iand(Y):Y.clone().iand(this)},H.prototype.uand=function(Y){return this.length>Y.length?this.clone().iuand(Y):Y.clone().iuand(this)},H.prototype.iuxor=function(Y){var Q,P;this.length>Y.length?(Q=this,P=Y):(Q=Y,P=this);for(var Z=0;Z<P.length;Z++)this.words[Z]=Q.words[Z]^P.words[Z];if(this!==Q)for(;Z<Q.length;Z++)this.words[Z]=Q.words[Z];return this.length=Q.length,this._strip()},H.prototype.ixor=function(Y){return j((this.negative|Y.negative)===0),this.iuxor(Y)},H.prototype.xor=function(Y){return this.length>Y.length?this.clone().ixor(Y):Y.clone().ixor(this)},H.prototype.uxor=function(Y){return this.length>Y.length?this.clone().iuxor(Y):Y.clone().iuxor(this)},H.prototype.inotn=function(Y){j(typeof Y=="number"&&Y>=0);var Q=Math.ceil(Y/26)|0,P=Y%26;this._expand(Q),P>0&&Q--;for(var Z=0;Z<Q;Z++)this.words[Z]=~this.words[Z]&67108863;return P>0&&(this.words[Z]=~this.words[Z]&67108863>>26-P),this._strip()},H.prototype.notn=function(Y){return this.clone().inotn(Y)},H.prototype.setn=function(Y,Q){j(typeof Y=="number"&&Y>=0);var P=Y/26|0,Z=Y%26;return this._expand(P+1),Q?this.words[P]=this.words[P]|1<<Z:this.words[P]=this.words[P]&~(1<<Z),this._strip()},H.prototype.iadd=function(Y){var Q;if(this.negative!==0&&Y.negative===0)return this.negative=0,Q=this.isub(Y),this.negative^=1,this._normSign();if(this.negative===0&&Y.negative!==0)return Y.negative=0,Q=this.isub(Y),Y.negative=1,Q._normSign();var P,Z;this.length>Y.length?(P=this,Z=Y):(P=Y,Z=this);for(var F=0,X=0;X<Z.length;X++)Q=(P.words[X]|0)+(Z.words[X]|0)+F,this.words[X]=Q&67108863,F=Q>>>26;for(;F!==0&&X<P.length;X++)Q=(P.words[X]|0)+F,this.words[X]=Q&67108863,F=Q>>>26;if(this.length=P.length,F!==0)this.words[this.length]=F,this.length++;else if(P!==this)for(;X<P.length;X++)this.words[X]=P.words[X];return this},H.prototype.add=function(Y){var Q;return Y.negative!==0&&this.negative===0?(Y.negative=0,Q=this.sub(Y),Y.negative^=1,Q):Y.negative===0&&this.negative!==0?(this.negative=0,Q=Y.sub(this),this.negative=1,Q):this.length>Y.length?this.clone().iadd(Y):Y.clone().iadd(this)},H.prototype.isub=function(Y){if(Y.negative!==0){Y.negative=0;var Q=this.iadd(Y);return Y.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Y),this.negative=1,this._normSign();var P=this.cmp(Y);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,F;P>0?(Z=this,F=Y):(Z=Y,F=this);for(var X=0,G=0;G<F.length;G++)Q=(Z.words[G]|0)-(F.words[G]|0)+X,X=Q>>26,this.words[G]=Q&67108863;for(;X!==0&&G<Z.length;G++)Q=(Z.words[G]|0)+X,X=Q>>26,this.words[G]=Q&67108863;if(X===0&&G<Z.length&&Z!==this)for(;G<Z.length;G++)this.words[G]=Z.words[G];return this.length=Math.max(this.length,G),Z!==this&&(this.negative=1),this._strip()},H.prototype.sub=function(Y){return this.clone().isub(Y)};function x(Y,Q,P){P.negative=Q.negative^Y.negative;var Z=Y.length+Q.length|0;P.length=Z,Z=Z-1|0;var F=Y.words[0]|0,X=Q.words[0]|0,G=F*X,R=G&67108863,L=G/67108864|0;P.words[0]=R;for(var _=1;_<Z;_++){for(var s=L>>>26,r=L&67108863,C0=Math.min(_,Q.length-1),u=Math.max(0,_-Y.length+1);u<=C0;u++){var d=_-u|0;F=Y.words[d]|0,X=Q.words[u]|0,G=F*X+r,s+=G/67108864|0,r=G&67108863}P.words[_]=r|0,L=s|0}return L!==0?P.words[_]=L|0:P.length--,P._strip()}var A=function(Y,Q,P){var Z=Y.words,F=Q.words,X=P.words,G=0,R,L,_,s=Z[0]|0,r=s&8191,C0=s>>>13,u=Z[1]|0,d=u&8191,a=u>>>13,V0=Z[2]|0,K0=V0&8191,Q0=V0>>>13,w=Z[3]|0,q=w&8191,m=w>>>13,e=Z[4]|0,X0=e&8191,t=e>>>13,_0=Z[5]|0,H0=_0&8191,G0=_0>>>13,w0=Z[6]|0,W0=w0&8191,Z0=w0>>>13,c0=Z[7]|0,O=c0&8191,B=c0>>>13,b=Z[8]|0,h=b&8191,o=b>>>13,z0=Z[9]|0,J0=z0&8191,$0=z0>>>13,b0=F[0]|0,U0=b0&8191,j0=b0>>>13,y0=F[1]|0,D0=y0&8191,N0=y0>>>13,F5=F[2]|0,T0=F5&8191,O0=F5>>>13,l0=F[3]|0,L0=l0&8191,k0=l0>>>13,G5=F[4]|0,I0=G5&8191,q0=G5>>>13,P5=F[5]|0,B0=P5&8191,R0=P5>>>13,Z5=F[6]|0,E0=Z5&8191,S0=Z5>>>13,$5=F[7]|0,x0=$5&8191,A0=$5>>>13,j5=F[8]|0,v0=j5&8191,M0=j5>>>13,Q5=F[9]|0,g0=Q5&8191,m0=Q5>>>13;P.negative=Y.negative^Q.negative,P.length=19,R=Math.imul(r,U0),L=Math.imul(r,j0),L=L+Math.imul(C0,U0)|0,_=Math.imul(C0,j0);var h0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(h0>>>26)|0,h0&=67108863,R=Math.imul(d,U0),L=Math.imul(d,j0),L=L+Math.imul(a,U0)|0,_=Math.imul(a,j0),R=R+Math.imul(r,D0)|0,L=L+Math.imul(r,N0)|0,L=L+Math.imul(C0,D0)|0,_=_+Math.imul(C0,N0)|0;var u0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(u0>>>26)|0,u0&=67108863,R=Math.imul(K0,U0),L=Math.imul(K0,j0),L=L+Math.imul(Q0,U0)|0,_=Math.imul(Q0,j0),R=R+Math.imul(d,D0)|0,L=L+Math.imul(d,N0)|0,L=L+Math.imul(a,D0)|0,_=_+Math.imul(a,N0)|0,R=R+Math.imul(r,T0)|0,L=L+Math.imul(r,O0)|0,L=L+Math.imul(C0,T0)|0,_=_+Math.imul(C0,O0)|0;var o0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(o0>>>26)|0,o0&=67108863,R=Math.imul(q,U0),L=Math.imul(q,j0),L=L+Math.imul(m,U0)|0,_=Math.imul(m,j0),R=R+Math.imul(K0,D0)|0,L=L+Math.imul(K0,N0)|0,L=L+Math.imul(Q0,D0)|0,_=_+Math.imul(Q0,N0)|0,R=R+Math.imul(d,T0)|0,L=L+Math.imul(d,O0)|0,L=L+Math.imul(a,T0)|0,_=_+Math.imul(a,O0)|0,R=R+Math.imul(r,L0)|0,L=L+Math.imul(r,k0)|0,L=L+Math.imul(C0,L0)|0,_=_+Math.imul(C0,k0)|0;var s0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(s0>>>26)|0,s0&=67108863,R=Math.imul(X0,U0),L=Math.imul(X0,j0),L=L+Math.imul(t,U0)|0,_=Math.imul(t,j0),R=R+Math.imul(q,D0)|0,L=L+Math.imul(q,N0)|0,L=L+Math.imul(m,D0)|0,_=_+Math.imul(m,N0)|0,R=R+Math.imul(K0,T0)|0,L=L+Math.imul(K0,O0)|0,L=L+Math.imul(Q0,T0)|0,_=_+Math.imul(Q0,O0)|0,R=R+Math.imul(d,L0)|0,L=L+Math.imul(d,k0)|0,L=L+Math.imul(a,L0)|0,_=_+Math.imul(a,k0)|0,R=R+Math.imul(r,I0)|0,L=L+Math.imul(r,q0)|0,L=L+Math.imul(C0,I0)|0,_=_+Math.imul(C0,q0)|0;var a0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(a0>>>26)|0,a0&=67108863,R=Math.imul(H0,U0),L=Math.imul(H0,j0),L=L+Math.imul(G0,U0)|0,_=Math.imul(G0,j0),R=R+Math.imul(X0,D0)|0,L=L+Math.imul(X0,N0)|0,L=L+Math.imul(t,D0)|0,_=_+Math.imul(t,N0)|0,R=R+Math.imul(q,T0)|0,L=L+Math.imul(q,O0)|0,L=L+Math.imul(m,T0)|0,_=_+Math.imul(m,O0)|0,R=R+Math.imul(K0,L0)|0,L=L+Math.imul(K0,k0)|0,L=L+Math.imul(Q0,L0)|0,_=_+Math.imul(Q0,k0)|0,R=R+Math.imul(d,I0)|0,L=L+Math.imul(d,q0)|0,L=L+Math.imul(a,I0)|0,_=_+Math.imul(a,q0)|0,R=R+Math.imul(r,B0)|0,L=L+Math.imul(r,R0)|0,L=L+Math.imul(C0,B0)|0,_=_+Math.imul(C0,R0)|0;var f0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(f0>>>26)|0,f0&=67108863,R=Math.imul(W0,U0),L=Math.imul(W0,j0),L=L+Math.imul(Z0,U0)|0,_=Math.imul(Z0,j0),R=R+Math.imul(H0,D0)|0,L=L+Math.imul(H0,N0)|0,L=L+Math.imul(G0,D0)|0,_=_+Math.imul(G0,N0)|0,R=R+Math.imul(X0,T0)|0,L=L+Math.imul(X0,O0)|0,L=L+Math.imul(t,T0)|0,_=_+Math.imul(t,O0)|0,R=R+Math.imul(q,L0)|0,L=L+Math.imul(q,k0)|0,L=L+Math.imul(m,L0)|0,_=_+Math.imul(m,k0)|0,R=R+Math.imul(K0,I0)|0,L=L+Math.imul(K0,q0)|0,L=L+Math.imul(Q0,I0)|0,_=_+Math.imul(Q0,q0)|0,R=R+Math.imul(d,B0)|0,L=L+Math.imul(d,R0)|0,L=L+Math.imul(a,B0)|0,_=_+Math.imul(a,R0)|0,R=R+Math.imul(r,E0)|0,L=L+Math.imul(r,S0)|0,L=L+Math.imul(C0,E0)|0,_=_+Math.imul(C0,S0)|0;var n0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(n0>>>26)|0,n0&=67108863,R=Math.imul(O,U0),L=Math.imul(O,j0),L=L+Math.imul(B,U0)|0,_=Math.imul(B,j0),R=R+Math.imul(W0,D0)|0,L=L+Math.imul(W0,N0)|0,L=L+Math.imul(Z0,D0)|0,_=_+Math.imul(Z0,N0)|0,R=R+Math.imul(H0,T0)|0,L=L+Math.imul(H0,O0)|0,L=L+Math.imul(G0,T0)|0,_=_+Math.imul(G0,O0)|0,R=R+Math.imul(X0,L0)|0,L=L+Math.imul(X0,k0)|0,L=L+Math.imul(t,L0)|0,_=_+Math.imul(t,k0)|0,R=R+Math.imul(q,I0)|0,L=L+Math.imul(q,q0)|0,L=L+Math.imul(m,I0)|0,_=_+Math.imul(m,q0)|0,R=R+Math.imul(K0,B0)|0,L=L+Math.imul(K0,R0)|0,L=L+Math.imul(Q0,B0)|0,_=_+Math.imul(Q0,R0)|0,R=R+Math.imul(d,E0)|0,L=L+Math.imul(d,S0)|0,L=L+Math.imul(a,E0)|0,_=_+Math.imul(a,S0)|0,R=R+Math.imul(r,x0)|0,L=L+Math.imul(r,A0)|0,L=L+Math.imul(C0,x0)|0,_=_+Math.imul(C0,A0)|0;var r0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(r0>>>26)|0,r0&=67108863,R=Math.imul(h,U0),L=Math.imul(h,j0),L=L+Math.imul(o,U0)|0,_=Math.imul(o,j0),R=R+Math.imul(O,D0)|0,L=L+Math.imul(O,N0)|0,L=L+Math.imul(B,D0)|0,_=_+Math.imul(B,N0)|0,R=R+Math.imul(W0,T0)|0,L=L+Math.imul(W0,O0)|0,L=L+Math.imul(Z0,T0)|0,_=_+Math.imul(Z0,O0)|0,R=R+Math.imul(H0,L0)|0,L=L+Math.imul(H0,k0)|0,L=L+Math.imul(G0,L0)|0,_=_+Math.imul(G0,k0)|0,R=R+Math.imul(X0,I0)|0,L=L+Math.imul(X0,q0)|0,L=L+Math.imul(t,I0)|0,_=_+Math.imul(t,q0)|0,R=R+Math.imul(q,B0)|0,L=L+Math.imul(q,R0)|0,L=L+Math.imul(m,B0)|0,_=_+Math.imul(m,R0)|0,R=R+Math.imul(K0,E0)|0,L=L+Math.imul(K0,S0)|0,L=L+Math.imul(Q0,E0)|0,_=_+Math.imul(Q0,S0)|0,R=R+Math.imul(d,x0)|0,L=L+Math.imul(d,A0)|0,L=L+Math.imul(a,x0)|0,_=_+Math.imul(a,A0)|0,R=R+Math.imul(r,v0)|0,L=L+Math.imul(r,M0)|0,L=L+Math.imul(C0,v0)|0,_=_+Math.imul(C0,M0)|0;var i0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(i0>>>26)|0,i0&=67108863,R=Math.imul(J0,U0),L=Math.imul(J0,j0),L=L+Math.imul($0,U0)|0,_=Math.imul($0,j0),R=R+Math.imul(h,D0)|0,L=L+Math.imul(h,N0)|0,L=L+Math.imul(o,D0)|0,_=_+Math.imul(o,N0)|0,R=R+Math.imul(O,T0)|0,L=L+Math.imul(O,O0)|0,L=L+Math.imul(B,T0)|0,_=_+Math.imul(B,O0)|0,R=R+Math.imul(W0,L0)|0,L=L+Math.imul(W0,k0)|0,L=L+Math.imul(Z0,L0)|0,_=_+Math.imul(Z0,k0)|0,R=R+Math.imul(H0,I0)|0,L=L+Math.imul(H0,q0)|0,L=L+Math.imul(G0,I0)|0,_=_+Math.imul(G0,q0)|0,R=R+Math.imul(X0,B0)|0,L=L+Math.imul(X0,R0)|0,L=L+Math.imul(t,B0)|0,_=_+Math.imul(t,R0)|0,R=R+Math.imul(q,E0)|0,L=L+Math.imul(q,S0)|0,L=L+Math.imul(m,E0)|0,_=_+Math.imul(m,S0)|0,R=R+Math.imul(K0,x0)|0,L=L+Math.imul(K0,A0)|0,L=L+Math.imul(Q0,x0)|0,_=_+Math.imul(Q0,A0)|0,R=R+Math.imul(d,v0)|0,L=L+Math.imul(d,M0)|0,L=L+Math.imul(a,v0)|0,_=_+Math.imul(a,M0)|0,R=R+Math.imul(r,g0)|0,L=L+Math.imul(r,m0)|0,L=L+Math.imul(C0,g0)|0,_=_+Math.imul(C0,m0)|0;var t0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(t0>>>26)|0,t0&=67108863,R=Math.imul(J0,D0),L=Math.imul(J0,N0),L=L+Math.imul($0,D0)|0,_=Math.imul($0,N0),R=R+Math.imul(h,T0)|0,L=L+Math.imul(h,O0)|0,L=L+Math.imul(o,T0)|0,_=_+Math.imul(o,O0)|0,R=R+Math.imul(O,L0)|0,L=L+Math.imul(O,k0)|0,L=L+Math.imul(B,L0)|0,_=_+Math.imul(B,k0)|0,R=R+Math.imul(W0,I0)|0,L=L+Math.imul(W0,q0)|0,L=L+Math.imul(Z0,I0)|0,_=_+Math.imul(Z0,q0)|0,R=R+Math.imul(H0,B0)|0,L=L+Math.imul(H0,R0)|0,L=L+Math.imul(G0,B0)|0,_=_+Math.imul(G0,R0)|0,R=R+Math.imul(X0,E0)|0,L=L+Math.imul(X0,S0)|0,L=L+Math.imul(t,E0)|0,_=_+Math.imul(t,S0)|0,R=R+Math.imul(q,x0)|0,L=L+Math.imul(q,A0)|0,L=L+Math.imul(m,x0)|0,_=_+Math.imul(m,A0)|0,R=R+Math.imul(K0,v0)|0,L=L+Math.imul(K0,M0)|0,L=L+Math.imul(Q0,v0)|0,_=_+Math.imul(Q0,M0)|0,R=R+Math.imul(d,g0)|0,L=L+Math.imul(d,m0)|0,L=L+Math.imul(a,g0)|0,_=_+Math.imul(a,m0)|0;var e0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(e0>>>26)|0,e0&=67108863,R=Math.imul(J0,T0),L=Math.imul(J0,O0),L=L+Math.imul($0,T0)|0,_=Math.imul($0,O0),R=R+Math.imul(h,L0)|0,L=L+Math.imul(h,k0)|0,L=L+Math.imul(o,L0)|0,_=_+Math.imul(o,k0)|0,R=R+Math.imul(O,I0)|0,L=L+Math.imul(O,q0)|0,L=L+Math.imul(B,I0)|0,_=_+Math.imul(B,q0)|0,R=R+Math.imul(W0,B0)|0,L=L+Math.imul(W0,R0)|0,L=L+Math.imul(Z0,B0)|0,_=_+Math.imul(Z0,R0)|0,R=R+Math.imul(H0,E0)|0,L=L+Math.imul(H0,S0)|0,L=L+Math.imul(G0,E0)|0,_=_+Math.imul(G0,S0)|0,R=R+Math.imul(X0,x0)|0,L=L+Math.imul(X0,A0)|0,L=L+Math.imul(t,x0)|0,_=_+Math.imul(t,A0)|0,R=R+Math.imul(q,v0)|0,L=L+Math.imul(q,M0)|0,L=L+Math.imul(m,v0)|0,_=_+Math.imul(m,M0)|0,R=R+Math.imul(K0,g0)|0,L=L+Math.imul(K0,m0)|0,L=L+Math.imul(Q0,g0)|0,_=_+Math.imul(Q0,m0)|0;var K5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(K5>>>26)|0,K5&=67108863,R=Math.imul(J0,L0),L=Math.imul(J0,k0),L=L+Math.imul($0,L0)|0,_=Math.imul($0,k0),R=R+Math.imul(h,I0)|0,L=L+Math.imul(h,q0)|0,L=L+Math.imul(o,I0)|0,_=_+Math.imul(o,q0)|0,R=R+Math.imul(O,B0)|0,L=L+Math.imul(O,R0)|0,L=L+Math.imul(B,B0)|0,_=_+Math.imul(B,R0)|0,R=R+Math.imul(W0,E0)|0,L=L+Math.imul(W0,S0)|0,L=L+Math.imul(Z0,E0)|0,_=_+Math.imul(Z0,S0)|0,R=R+Math.imul(H0,x0)|0,L=L+Math.imul(H0,A0)|0,L=L+Math.imul(G0,x0)|0,_=_+Math.imul(G0,A0)|0,R=R+Math.imul(X0,v0)|0,L=L+Math.imul(X0,M0)|0,L=L+Math.imul(t,v0)|0,_=_+Math.imul(t,M0)|0,R=R+Math.imul(q,g0)|0,L=L+Math.imul(q,m0)|0,L=L+Math.imul(m,g0)|0,_=_+Math.imul(m,m0)|0;var X5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(X5>>>26)|0,X5&=67108863,R=Math.imul(J0,I0),L=Math.imul(J0,q0),L=L+Math.imul($0,I0)|0,_=Math.imul($0,q0),R=R+Math.imul(h,B0)|0,L=L+Math.imul(h,R0)|0,L=L+Math.imul(o,B0)|0,_=_+Math.imul(o,R0)|0,R=R+Math.imul(O,E0)|0,L=L+Math.imul(O,S0)|0,L=L+Math.imul(B,E0)|0,_=_+Math.imul(B,S0)|0,R=R+Math.imul(W0,x0)|0,L=L+Math.imul(W0,A0)|0,L=L+Math.imul(Z0,x0)|0,_=_+Math.imul(Z0,A0)|0,R=R+Math.imul(H0,v0)|0,L=L+Math.imul(H0,M0)|0,L=L+Math.imul(G0,v0)|0,_=_+Math.imul(G0,M0)|0,R=R+Math.imul(X0,g0)|0,L=L+Math.imul(X0,m0)|0,L=L+Math.imul(t,g0)|0,_=_+Math.imul(t,m0)|0;var C5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(C5>>>26)|0,C5&=67108863,R=Math.imul(J0,B0),L=Math.imul(J0,R0),L=L+Math.imul($0,B0)|0,_=Math.imul($0,R0),R=R+Math.imul(h,E0)|0,L=L+Math.imul(h,S0)|0,L=L+Math.imul(o,E0)|0,_=_+Math.imul(o,S0)|0,R=R+Math.imul(O,x0)|0,L=L+Math.imul(O,A0)|0,L=L+Math.imul(B,x0)|0,_=_+Math.imul(B,A0)|0,R=R+Math.imul(W0,v0)|0,L=L+Math.imul(W0,M0)|0,L=L+Math.imul(Z0,v0)|0,_=_+Math.imul(Z0,M0)|0,R=R+Math.imul(H0,g0)|0,L=L+Math.imul(H0,m0)|0,L=L+Math.imul(G0,g0)|0,_=_+Math.imul(G0,m0)|0;var Y5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,R=Math.imul(J0,E0),L=Math.imul(J0,S0),L=L+Math.imul($0,E0)|0,_=Math.imul($0,S0),R=R+Math.imul(h,x0)|0,L=L+Math.imul(h,A0)|0,L=L+Math.imul(o,x0)|0,_=_+Math.imul(o,A0)|0,R=R+Math.imul(O,v0)|0,L=L+Math.imul(O,M0)|0,L=L+Math.imul(B,v0)|0,_=_+Math.imul(B,M0)|0,R=R+Math.imul(W0,g0)|0,L=L+Math.imul(W0,m0)|0,L=L+Math.imul(Z0,g0)|0,_=_+Math.imul(Z0,m0)|0;var J5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(J5>>>26)|0,J5&=67108863,R=Math.imul(J0,x0),L=Math.imul(J0,A0),L=L+Math.imul($0,x0)|0,_=Math.imul($0,A0),R=R+Math.imul(h,v0)|0,L=L+Math.imul(h,M0)|0,L=L+Math.imul(o,v0)|0,_=_+Math.imul(o,M0)|0,R=R+Math.imul(O,g0)|0,L=L+Math.imul(O,m0)|0,L=L+Math.imul(B,g0)|0,_=_+Math.imul(B,m0)|0;var Q9=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(Q9>>>26)|0,Q9&=67108863,R=Math.imul(J0,v0),L=Math.imul(J0,M0),L=L+Math.imul($0,v0)|0,_=Math.imul($0,M0),R=R+Math.imul(h,g0)|0,L=L+Math.imul(h,m0)|0,L=L+Math.imul(o,g0)|0,_=_+Math.imul(o,m0)|0;var H9=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(H9>>>26)|0,H9&=67108863,R=Math.imul(J0,g0),L=Math.imul(J0,m0),L=L+Math.imul($0,g0)|0,_=Math.imul($0,m0);var F9=(G+R|0)+((L&8191)<<13)|0;return G=(_+(L>>>13)|0)+(F9>>>26)|0,F9&=67108863,X[0]=h0,X[1]=u0,X[2]=o0,X[3]=s0,X[4]=a0,X[5]=f0,X[6]=n0,X[7]=r0,X[8]=i0,X[9]=t0,X[10]=e0,X[11]=K5,X[12]=X5,X[13]=C5,X[14]=Y5,X[15]=J5,X[16]=Q9,X[17]=H9,X[18]=F9,G!==0&&(X[19]=G,P.length++),P};Math.imul||(A=x);function y(Y,Q,P){P.negative=Q.negative^Y.negative,P.length=Y.length+Q.length;for(var Z=0,F=0,X=0;X<P.length-1;X++){var G=F;F=0;for(var R=Z&67108863,L=Math.min(X,Q.length-1),_=Math.max(0,X-Y.length+1);_<=L;_++){var s=X-_,r=Y.words[s]|0,C0=Q.words[_]|0,u=r*C0,d=u&67108863;G=G+(u/67108864|0)|0,d=d+R|0,R=d&67108863,G=G+(d>>>26)|0,F+=G>>>26,G&=67108863}P.words[X]=R,Z=G,G=F}return Z!==0?P.words[X]=Z:P.length--,P._strip()}function p(Y,Q,P){return y(Y,Q,P)}H.prototype.mulTo=function(Y,Q){var P,Z=this.length+Y.length;return this.length===10&&Y.length===10?P=A(this,Y,Q):Z<63?P=x(this,Y,Q):Z<1024?P=y(this,Y,Q):P=p(this,Y,Q),P};function c(Y,Q){this.x=Y,this.y=Q}c.prototype.makeRBT=function(Y){for(var Q=new Array(Y),P=H.prototype._countBits(Y)-1,Z=0;Z<Y;Z++)Q[Z]=this.revBin(Z,P,Y);return Q},c.prototype.revBin=function(Y,Q,P){if(Y===0||Y===P-1)return Y;for(var Z=0,F=0;F<Q;F++)Z|=(Y&1)<<Q-F-1,Y>>=1;return Z},c.prototype.permute=function(Y,Q,P,Z,F,X){for(var G=0;G<X;G++)Z[G]=Q[Y[G]],F[G]=P[Y[G]]},c.prototype.transform=function(Y,Q,P,Z,F,X){this.permute(X,Y,Q,P,Z,F);for(var G=1;G<F;G<<=1)for(var R=G<<1,L=Math.cos(2*Math.PI/R),_=Math.sin(2*Math.PI/R),s=0;s<F;s+=R)for(var r=L,C0=_,u=0;u<G;u++){var d=P[s+u],a=Z[s+u],V0=P[s+u+G],K0=Z[s+u+G],Q0=r*V0-C0*K0;K0=r*K0+C0*V0,V0=Q0,P[s+u]=d+V0,Z[s+u]=a+K0,P[s+u+G]=d-V0,Z[s+u+G]=a-K0,u!==R&&(Q0=L*r-_*C0,C0=L*C0+_*r,r=Q0)}},c.prototype.guessLen13b=function(Y,Q){var P=Math.max(Q,Y)|1,Z=P&1,F=0;for(P=P/2|0;P;P=P>>>1)F++;return 1<<F+1+Z},c.prototype.conjugate=function(Y,Q,P){if(!(P<=1))for(var Z=0;Z<P/2;Z++){var F=Y[Z];Y[Z]=Y[P-Z-1],Y[P-Z-1]=F,F=Q[Z],Q[Z]=-Q[P-Z-1],Q[P-Z-1]=-F}},c.prototype.normalize13b=function(Y,Q){for(var P=0,Z=0;Z<Q/2;Z++){var F=Math.round(Y[2*Z+1]/Q)*8192+Math.round(Y[2*Z]/Q)+P;Y[Z]=F&67108863,F<67108864?P=0:P=F/67108864|0}return Y},c.prototype.convert13b=function(Y,Q,P,Z){for(var F=0,X=0;X<Q;X++)F=F+(Y[X]|0),P[2*X]=F&8191,F=F>>>13,P[2*X+1]=F&8191,F=F>>>13;for(X=2*Q;X<Z;++X)P[X]=0;j(F===0),j((F&-8192)===0)},c.prototype.stub=function(Y){for(var Q=new Array(Y),P=0;P<Y;P++)Q[P]=0;return Q},c.prototype.mulp=function(Y,Q,P){var Z=2*this.guessLen13b(Y.length,Q.length),F=this.makeRBT(Z),X=this.stub(Z),G=new Array(Z),R=new Array(Z),L=new Array(Z),_=new Array(Z),s=new Array(Z),r=new Array(Z),C0=P.words;C0.length=Z,this.convert13b(Y.words,Y.length,G,Z),this.convert13b(Q.words,Q.length,_,Z),this.transform(G,X,R,L,Z,F),this.transform(_,X,s,r,Z,F);for(var u=0;u<Z;u++){var d=R[u]*s[u]-L[u]*r[u];L[u]=R[u]*r[u]+L[u]*s[u],R[u]=d}return this.conjugate(R,L,Z),this.transform(R,L,C0,X,Z,F),this.conjugate(C0,X,Z),this.normalize13b(C0,Z),P.negative=Y.negative^Q.negative,P.length=Y.length+Q.length,P._strip()},H.prototype.mul=function(Y){var Q=new H(null);return Q.words=new Array(this.length+Y.length),this.mulTo(Y,Q)},H.prototype.mulf=function(Y){var Q=new H(null);return Q.words=new Array(this.length+Y.length),p(this,Y,Q)},H.prototype.imul=function(Y){return this.clone().mulTo(Y,this)},H.prototype.imuln=function(Y){var Q=Y<0;Q&&(Y=-Y),j(typeof Y=="number"),j(Y<67108864);for(var P=0,Z=0;Z<this.length;Z++){var F=(this.words[Z]|0)*Y,X=(F&67108863)+(P&67108863);P>>=26,P+=F/67108864|0,P+=X>>>26,this.words[Z]=X&67108863}return P!==0&&(this.words[Z]=P,this.length++),Q?this.ineg():this},H.prototype.muln=function(Y){return this.clone().imuln(Y)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(Y){var Q=v(Y);if(Q.length===0)return new H(1);for(var P=this,Z=0;Z<Q.length&&Q[Z]===0;Z++,P=P.sqr());if(++Z<Q.length)for(var F=P.sqr();Z<Q.length;Z++,F=F.sqr())Q[Z]!==0&&(P=P.mul(F));return P},H.prototype.iushln=function(Y){j(typeof Y=="number"&&Y>=0);var Q=Y%26,P=(Y-Q)/26,Z=67108863>>>26-Q<<26-Q,F;if(Q!==0){var X=0;for(F=0;F<this.length;F++){var G=this.words[F]&Z,R=(this.words[F]|0)-G<<Q;this.words[F]=R|X,X=G>>>26-Q}X&&(this.words[F]=X,this.length++)}if(P!==0){for(F=this.length-1;F>=0;F--)this.words[F+P]=this.words[F];for(F=0;F<P;F++)this.words[F]=0;this.length+=P}return this._strip()},H.prototype.ishln=function(Y){return j(this.negative===0),this.iushln(Y)},H.prototype.iushrn=function(Y,Q,P){j(typeof Y=="number"&&Y>=0);var Z;Q?Z=(Q-Q%26)/26:Z=0;var F=Y%26,X=Math.min((Y-F)/26,this.length),G=67108863^67108863>>>F<<F,R=P;if(Z-=X,Z=Math.max(0,Z),R){for(var L=0;L<X;L++)R.words[L]=this.words[L];R.length=X}if(X!==0)if(this.length>X)for(this.length-=X,L=0;L<this.length;L++)this.words[L]=this.words[L+X];else this.words[0]=0,this.length=1;var _=0;for(L=this.length-1;L>=0&&(_!==0||L>=Z);L--){var s=this.words[L]|0;this.words[L]=_<<26-F|s>>>F,_=s&G}return R&&_!==0&&(R.words[R.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},H.prototype.ishrn=function(Y,Q,P){return j(this.negative===0),this.iushrn(Y,Q,P)},H.prototype.shln=function(Y){return this.clone().ishln(Y)},H.prototype.ushln=function(Y){return this.clone().iushln(Y)},H.prototype.shrn=function(Y){return this.clone().ishrn(Y)},H.prototype.ushrn=function(Y){return this.clone().iushrn(Y)},H.prototype.testn=function(Y){j(typeof Y=="number"&&Y>=0);var Q=Y%26,P=(Y-Q)/26,Z=1<<Q;if(this.length<=P)return!1;var F=this.words[P];return!!(F&Z)},H.prototype.imaskn=function(Y){j(typeof Y=="number"&&Y>=0);var Q=Y%26,P=(Y-Q)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=P)return this;if(Q!==0&&P++,this.length=Math.min(P,this.length),Q!==0){var Z=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=Z}return this._strip()},H.prototype.maskn=function(Y){return this.clone().imaskn(Y)},H.prototype.iaddn=function(Y){return j(typeof Y=="number"),j(Y<67108864),Y<0?this.isubn(-Y):this.negative!==0?this.length===1&&(this.words[0]|0)<=Y?(this.words[0]=Y-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Y),this.negative=1,this):this._iaddn(Y)},H.prototype._iaddn=function(Y){this.words[0]+=Y;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)this.words[Q]-=67108864,Q===this.length-1?this.words[Q+1]=1:this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},H.prototype.isubn=function(Y){if(j(typeof Y=="number"),j(Y<67108864),Y<0)return this.iaddn(-Y);if(this.negative!==0)return this.negative=0,this.iaddn(Y),this.negative=1,this;if(this.words[0]-=Y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this._strip()},H.prototype.addn=function(Y){return this.clone().iaddn(Y)},H.prototype.subn=function(Y){return this.clone().isubn(Y)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(Y,Q,P){var Z=Y.length+P,F;this._expand(Z);var X,G=0;for(F=0;F<Y.length;F++){X=(this.words[F+P]|0)+G;var R=(Y.words[F]|0)*Q;X-=R&67108863,G=(X>>26)-(R/67108864|0),this.words[F+P]=X&67108863}for(;F<this.length-P;F++)X=(this.words[F+P]|0)+G,G=X>>26,this.words[F+P]=X&67108863;if(G===0)return this._strip();for(j(G===-1),G=0,F=0;F<this.length;F++)X=-(this.words[F]|0)+G,G=X>>26,this.words[F]=X&67108863;return this.negative=1,this._strip()},H.prototype._wordDiv=function(Y,Q){var P=this.length-Y.length,Z=this.clone(),F=Y,X=F.words[F.length-1]|0,G=this._countBits(X);P=26-G,P!==0&&(F=F.ushln(P),Z.iushln(P),X=F.words[F.length-1]|0);var R=Z.length-F.length,L;if(Q!=="mod"){L=new H(null),L.length=R+1,L.words=new Array(L.length);for(var _=0;_<L.length;_++)L.words[_]=0}var s=Z.clone()._ishlnsubmul(F,1,R);s.negative===0&&(Z=s,L&&(L.words[R]=1));for(var r=R-1;r>=0;r--){var C0=(Z.words[F.length+r]|0)*67108864+(Z.words[F.length+r-1]|0);for(C0=Math.min(C0/X|0,67108863),Z._ishlnsubmul(F,C0,r);Z.negative!==0;)C0--,Z.negative=0,Z._ishlnsubmul(F,1,r),Z.isZero()||(Z.negative^=1);L&&(L.words[r]=C0)}return L&&L._strip(),Z._strip(),Q!=="div"&&P!==0&&Z.iushrn(P),{div:L||null,mod:Z}},H.prototype.divmod=function(Y,Q,P){if(j(!Y.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Z,F,X;return this.negative!==0&&Y.negative===0?(X=this.neg().divmod(Y,Q),Q!=="mod"&&(Z=X.div.neg()),Q!=="div"&&(F=X.mod.neg(),P&&F.negative!==0&&F.iadd(Y)),{div:Z,mod:F}):this.negative===0&&Y.negative!==0?(X=this.divmod(Y.neg(),Q),Q!=="mod"&&(Z=X.div.neg()),{div:Z,mod:X.mod}):(this.negative&Y.negative)!==0?(X=this.neg().divmod(Y.neg(),Q),Q!=="div"&&(F=X.mod.neg(),P&&F.negative!==0&&F.isub(Y)),{div:X.div,mod:F}):Y.length>this.length||this.cmp(Y)<0?{div:new H(0),mod:this}:Y.length===1?Q==="div"?{div:this.divn(Y.words[0]),mod:null}:Q==="mod"?{div:null,mod:new H(this.modrn(Y.words[0]))}:{div:this.divn(Y.words[0]),mod:new H(this.modrn(Y.words[0]))}:this._wordDiv(Y,Q)},H.prototype.div=function(Y){return this.divmod(Y,"div",!1).div},H.prototype.mod=function(Y){return this.divmod(Y,"mod",!1).mod},H.prototype.umod=function(Y){return this.divmod(Y,"mod",!0).mod},H.prototype.divRound=function(Y){var Q=this.divmod(Y);if(Q.mod.isZero())return Q.div;var P=Q.div.negative!==0?Q.mod.isub(Y):Q.mod,Z=Y.ushrn(1),F=Y.andln(1),X=P.cmp(Z);return X<0||F===1&&X===0?Q.div:Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},H.prototype.modrn=function(Y){var Q=Y<0;Q&&(Y=-Y),j(Y<=67108863);for(var P=67108864%Y,Z=0,F=this.length-1;F>=0;F--)Z=(P*Z+(this.words[F]|0))%Y;return Q?-Z:Z},H.prototype.modn=function(Y){return this.modrn(Y)},H.prototype.idivn=function(Y){var Q=Y<0;Q&&(Y=-Y),j(Y<=67108863);for(var P=0,Z=this.length-1;Z>=0;Z--){var F=(this.words[Z]|0)+P*67108864;this.words[Z]=F/Y|0,P=F%Y}return this._strip(),Q?this.ineg():this},H.prototype.divn=function(Y){return this.clone().idivn(Y)},H.prototype.egcd=function(Y){j(Y.negative===0),j(!Y.isZero());var Q=this,P=Y.clone();Q.negative!==0?Q=Q.umod(Y):Q=Q.clone();for(var Z=new H(1),F=new H(0),X=new H(0),G=new H(1),R=0;Q.isEven()&&P.isEven();)Q.iushrn(1),P.iushrn(1),++R;for(var L=P.clone(),_=Q.clone();!Q.isZero();){for(var s=0,r=1;(Q.words[0]&r)===0&&s<26;++s,r<<=1);if(s>0)for(Q.iushrn(s);s-- >0;)(Z.isOdd()||F.isOdd())&&(Z.iadd(L),F.isub(_)),Z.iushrn(1),F.iushrn(1);for(var C0=0,u=1;(P.words[0]&u)===0&&C0<26;++C0,u<<=1);if(C0>0)for(P.iushrn(C0);C0-- >0;)(X.isOdd()||G.isOdd())&&(X.iadd(L),G.isub(_)),X.iushrn(1),G.iushrn(1);Q.cmp(P)>=0?(Q.isub(P),Z.isub(X),F.isub(G)):(P.isub(Q),X.isub(Z),G.isub(F))}return{a:X,b:G,gcd:P.iushln(R)}},H.prototype._invmp=function(Y){j(Y.negative===0),j(!Y.isZero());var Q=this,P=Y.clone();Q.negative!==0?Q=Q.umod(Y):Q=Q.clone();for(var Z=new H(1),F=new H(0),X=P.clone();Q.cmpn(1)>0&&P.cmpn(1)>0;){for(var G=0,R=1;(Q.words[0]&R)===0&&G<26;++G,R<<=1);if(G>0)for(Q.iushrn(G);G-- >0;)Z.isOdd()&&Z.iadd(X),Z.iushrn(1);for(var L=0,_=1;(P.words[0]&_)===0&&L<26;++L,_<<=1);if(L>0)for(P.iushrn(L);L-- >0;)F.isOdd()&&F.iadd(X),F.iushrn(1);Q.cmp(P)>=0?(Q.isub(P),Z.isub(F)):(P.isub(Q),F.isub(Z))}var s;return Q.cmpn(1)===0?s=Z:s=F,s.cmpn(0)<0&&s.iadd(Y),s},H.prototype.gcd=function(Y){if(this.isZero())return Y.abs();if(Y.isZero())return this.abs();var Q=this.clone(),P=Y.clone();Q.negative=0,P.negative=0;for(var Z=0;Q.isEven()&&P.isEven();Z++)Q.iushrn(1),P.iushrn(1);do{for(;Q.isEven();)Q.iushrn(1);for(;P.isEven();)P.iushrn(1);var F=Q.cmp(P);if(F<0){var X=Q;Q=P,P=X}else if(F===0||P.cmpn(1)===0)break;Q.isub(P)}while(!0);return P.iushln(Z)},H.prototype.invm=function(Y){return this.egcd(Y).a.umod(Y)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(Y){return this.words[0]&Y},H.prototype.bincn=function(Y){j(typeof Y=="number");var Q=Y%26,P=(Y-Q)/26,Z=1<<Q;if(this.length<=P)return this._expand(P+1),this.words[P]|=Z,this;for(var F=Z,X=P;F!==0&&X<this.length;X++){var G=this.words[X]|0;G+=F,F=G>>>26,G&=67108863,this.words[X]=G}return F!==0&&(this.words[X]=F,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(Y){var Q=Y<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this._strip();var P;if(this.length>1)P=1;else{Q&&(Y=-Y),j(Y<=67108863,"Number is too big");var Z=this.words[0]|0;P=Z===Y?0:Z<Y?-1:1}return this.negative!==0?-P|0:P},H.prototype.cmp=function(Y){if(this.negative!==0&&Y.negative===0)return-1;if(this.negative===0&&Y.negative!==0)return 1;var Q=this.ucmp(Y);return this.negative!==0?-Q|0:Q},H.prototype.ucmp=function(Y){if(this.length>Y.length)return 1;if(this.length<Y.length)return-1;for(var Q=0,P=this.length-1;P>=0;P--){var Z=this.words[P]|0,F=Y.words[P]|0;if(Z!==F){Z<F?Q=-1:Z>F&&(Q=1);break}}return Q},H.prototype.gtn=function(Y){return this.cmpn(Y)===1},H.prototype.gt=function(Y){return this.cmp(Y)===1},H.prototype.gten=function(Y){return this.cmpn(Y)>=0},H.prototype.gte=function(Y){return this.cmp(Y)>=0},H.prototype.ltn=function(Y){return this.cmpn(Y)===-1},H.prototype.lt=function(Y){return this.cmp(Y)===-1},H.prototype.lten=function(Y){return this.cmpn(Y)<=0},H.prototype.lte=function(Y){return this.cmp(Y)<=0},H.prototype.eqn=function(Y){return this.cmpn(Y)===0},H.prototype.eq=function(Y){return this.cmp(Y)===0},H.red=function(Y){return new C(Y)},H.prototype.toRed=function(Y){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),Y.convertTo(this)._forceRed(Y)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(Y){return this.red=Y,this},H.prototype.forceRed=function(Y){return j(!this.red,"Already a number in reduction context"),this._forceRed(Y)},H.prototype.redAdd=function(Y){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,Y)},H.prototype.redIAdd=function(Y){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Y)},H.prototype.redSub=function(Y){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,Y)},H.prototype.redISub=function(Y){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,Y)},H.prototype.redShl=function(Y){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,Y)},H.prototype.redMul=function(Y){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.mul(this,Y)},H.prototype.redIMul=function(Y){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.imul(this,Y)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(Y){return j(this.red&&!Y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Y)};var n={k256:null,p224:null,p192:null,p25519:null};function i(Y,Q){this.name=Y,this.p=new H(Q,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var Y=new H(null);return Y.words=new Array(Math.ceil(this.n/13)),Y},i.prototype.ireduce=function(Y){var Q=Y,P;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),P=Q.bitLength();while(P>this.n);var Z=P<this.n?-1:Q.ucmp(this.p);return Z===0?(Q.words[0]=0,Q.length=1):Z>0?Q.isub(this.p):Q.strip!==void 0?Q.strip():Q._strip(),Q},i.prototype.split=function(Y,Q){Y.iushrn(this.n,0,Q)},i.prototype.imulK=function(Y){return Y.imul(this.k)};function Y0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(Y0,i),Y0.prototype.split=function(Y,Q){for(var P=4194303,Z=Math.min(Y.length,9),F=0;F<Z;F++)Q.words[F]=Y.words[F];if(Q.length=Z,Y.length<=9){Y.words[0]=0,Y.length=1;return}var X=Y.words[9];for(Q.words[Q.length++]=X&P,F=10;F<Y.length;F++){var G=Y.words[F]|0;Y.words[F-10]=(G&P)<<4|X>>>22,X=G}X>>>=22,Y.words[F-10]=X,X===0&&Y.length>10?Y.length-=10:Y.length-=9},Y0.prototype.imulK=function(Y){Y.words[Y.length]=0,Y.words[Y.length+1]=0,Y.length+=2;for(var Q=0,P=0;P<Y.length;P++){var Z=Y.words[P]|0;Q+=Z*977,Y.words[P]=Q&67108863,Q=Z*64+(Q/67108864|0)}return Y.words[Y.length-1]===0&&(Y.length--,Y.words[Y.length-1]===0&&Y.length--),Y};function f(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(f,i);function P0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(P0,i);function K(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(K,i),K.prototype.imulK=function(Y){for(var Q=0,P=0;P<Y.length;P++){var Z=(Y.words[P]|0)*19+Q,F=Z&67108863;Z>>>=26,Y.words[P]=F,Q=Z}return Q!==0&&(Y.words[Y.length++]=Q),Y},H._prime=function(Y){if(n[Y])return n[Y];var Q;if(Y==="k256")Q=new Y0;else if(Y==="p224")Q=new f;else if(Y==="p192")Q=new P0;else if(Y==="p25519")Q=new K;else throw new Error("Unknown prime "+Y);return n[Y]=Q,Q};function C(Y){if(typeof Y=="string"){var Q=H._prime(Y);this.m=Q.p,this.prime=Q}else j(Y.gtn(1),"modulus must be greater than 1"),this.m=Y,this.prime=null}C.prototype._verify1=function(Y){j(Y.negative===0,"red works only with positives"),j(Y.red,"red works only with red numbers")},C.prototype._verify2=function(Y,Q){j((Y.negative|Q.negative)===0,"red works only with positives"),j(Y.red&&Y.red===Q.red,"red works only with red numbers")},C.prototype.imod=function(Y){return this.prime?this.prime.ireduce(Y)._forceRed(this):($(Y,Y.umod(this.m)._forceRed(this)),Y)},C.prototype.neg=function(Y){return Y.isZero()?Y.clone():this.m.sub(Y)._forceRed(this)},C.prototype.add=function(Y,Q){this._verify2(Y,Q);var P=Y.add(Q);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},C.prototype.iadd=function(Y,Q){this._verify2(Y,Q);var P=Y.iadd(Q);return P.cmp(this.m)>=0&&P.isub(this.m),P},C.prototype.sub=function(Y,Q){this._verify2(Y,Q);var P=Y.sub(Q);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},C.prototype.isub=function(Y,Q){this._verify2(Y,Q);var P=Y.isub(Q);return P.cmpn(0)<0&&P.iadd(this.m),P},C.prototype.shl=function(Y,Q){return this._verify1(Y),this.imod(Y.ushln(Q))},C.prototype.imul=function(Y,Q){return this._verify2(Y,Q),this.imod(Y.imul(Q))},C.prototype.mul=function(Y,Q){return this._verify2(Y,Q),this.imod(Y.mul(Q))},C.prototype.isqr=function(Y){return this.imul(Y,Y.clone())},C.prototype.sqr=function(Y){return this.mul(Y,Y)},C.prototype.sqrt=function(Y){if(Y.isZero())return Y.clone();var Q=this.m.andln(3);if(j(Q%2===1),Q===3){var P=this.m.add(new H(1)).iushrn(2);return this.pow(Y,P)}for(var Z=this.m.subn(1),F=0;!Z.isZero()&&Z.andln(1)===0;)F++,Z.iushrn(1);j(!Z.isZero());var X=new H(1).toRed(this),G=X.redNeg(),R=this.m.subn(1).iushrn(1),L=this.m.bitLength();for(L=new H(2*L*L).toRed(this);this.pow(L,R).cmp(G)!==0;)L.redIAdd(G);for(var _=this.pow(L,Z),s=this.pow(Y,Z.addn(1).iushrn(1)),r=this.pow(Y,Z),C0=F;r.cmp(X)!==0;){for(var u=r,d=0;u.cmp(X)!==0;d++)u=u.redSqr();j(d<C0);var a=this.pow(_,new H(1).iushln(C0-d-1));s=s.redMul(a),_=a.redSqr(),r=r.redMul(_),C0=d}return s},C.prototype.invm=function(Y){var Q=Y._invmp(this.m);return Q.negative!==0?(Q.negative=0,this.imod(Q).redNeg()):this.imod(Q)},C.prototype.pow=function(Y,Q){if(Q.isZero())return new H(1).toRed(this);if(Q.cmpn(1)===0)return Y.clone();var P=4,Z=new Array(1<<P);Z[0]=new H(1).toRed(this),Z[1]=Y;for(var F=2;F<Z.length;F++)Z[F]=this.mul(Z[F-1],Y);var X=Z[0],G=0,R=0,L=Q.bitLength()%26;for(L===0&&(L=26),F=Q.length-1;F>=0;F--){for(var _=Q.words[F],s=L-1;s>=0;s--){var r=_>>s&1;if(X!==Z[0]&&(X=this.sqr(X)),r===0&&G===0){R=0;continue}G<<=1,G|=r,R++,!(R!==P&&(F!==0||s!==0))&&(X=this.mul(X,Z[G]),R=0,G=0)}L=26}return X},C.prototype.convertTo=function(Y){var Q=Y.umod(this.m);return Q===Y?Q.clone():Q},C.prototype.convertFrom=function(Y){var Q=Y.clone();return Q.red=null,Q},H.mont=function(Y){return new J(Y)};function J(Y){C.call(this,Y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(J,C),J.prototype.convertTo=function(Y){return this.imod(Y.ushln(this.shift))},J.prototype.convertFrom=function(Y){var Q=this.imod(Y.mul(this.rinv));return Q.red=null,Q},J.prototype.imul=function(Y,Q){if(Y.isZero()||Q.isZero())return Y.words[0]=0,Y.length=1,Y;var P=Y.imul(Q),Z=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=P.isub(Z).iushrn(this.shift),X=F;return F.cmp(this.m)>=0?X=F.isub(this.m):F.cmpn(0)<0&&(X=F.iadd(this.m)),X._forceRed(this)},J.prototype.mul=function(Y,Q){if(Y.isZero()||Q.isZero())return new H(0)._forceRed(this);var P=Y.mul(Q),Z=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=P.isub(Z).iushrn(this.shift),X=F;return F.cmp(this.m)>=0?X=F.isub(this.m):F.cmpn(0)<0&&(X=F.iadd(this.m)),X._forceRed(this)},J.prototype.invm=function(Y){var Q=this.imod(Y._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof g>"u"||g,l)}),S9=F0((l,g)=>{var E=E9(),M=g5();function j(U){var k=S(U),z=k.toRed(E.mont(U.modulus)).redPow(new E(U.publicExponent)).fromRed();return{blinder:z,unblinder:k.invm(U.modulus)}}function S(U){var k=U.modulus.byteLength(),z;do z=new E(M(k));while(z.cmp(U.modulus)>=0||!z.umod(U.prime1)||!z.umod(U.prime2));return z}function H(U,k){var z=j(k),V=k.modulus.byteLength(),$=new E(U).mul(z.blinder).umod(k.modulus),T=$.toRed(E.mont(k.prime1)),N=$.toRed(E.mont(k.prime2)),W=k.coefficient,D=k.prime1,I=k.prime2,v=T.redPow(k.exponent1).fromRed(),x=N.redPow(k.exponent2).fromRed(),A=v.isub(x).imul(W).umod(D).imul(I);return x.iadd(A).imul(z.unblinder).umod(k.modulus).toArrayLike(Buffer,"be",V)}H.getr=S,g.exports=H}),t7=F0((l,g)=>{g.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),I5=F0((l,g)=>{(function(E,M){function j(K,C){if(!K)throw new Error(C||"Assertion failed")}function S(K,C){K.super_=C;var J=function(){};J.prototype=C.prototype,K.prototype=new J,K.prototype.constructor=K}function H(K,C,J){if(H.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((C==="le"||C==="be")&&(J=C,C=10),this._init(K||0,C||10,J||"be"))}typeof E=="object"?E.exports=H:M.BN=H,H.BN=H,H.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}H.isBN=function(K){return K instanceof H?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===H.wordSize&&Array.isArray(K.words)},H.max=function(K,C){return K.cmp(C)>0?K:C},H.min=function(K,C){return K.cmp(C)<0?K:C},H.prototype._init=function(K,C,J){if(typeof K=="number")return this._initNumber(K,C,J);if(typeof K=="object")return this._initArray(K,C,J);C==="hex"&&(C=16),j(C===(C|0)&&C>=2&&C<=36),K=K.toString().replace(/\s+/g,"");var Y=0;K[0]==="-"&&(Y++,this.negative=1),Y<K.length&&(C===16?this._parseHex(K,Y,J):(this._parseBase(K,C,Y),J==="le"&&this._initArray(this.toArray(),C,J)))},H.prototype._initNumber=function(K,C,J){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(j(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),J==="le"&&this._initArray(this.toArray(),C,J)},H.prototype._initArray=function(K,C,J){if(j(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q,P,Z=0;if(J==="be")for(Y=K.length-1,Q=0;Y>=0;Y-=3)P=K[Y]|K[Y-1]<<8|K[Y-2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);else if(J==="le")for(Y=0,Q=0;Y<K.length;Y+=3)P=K[Y]|K[Y+1]<<8|K[Y+2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);return this.strip()};function k(K,C){var J=K.charCodeAt(C);return J>=65&&J<=70?J-55:J>=97&&J<=102?J-87:J-48&15}function z(K,C,J){var Y=k(K,J);return J-1>=C&&(Y|=k(K,J-1)<<4),Y}H.prototype._parseHex=function(K,C,J){this.length=Math.ceil((K.length-C)/6),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q=0,P=0,Z;if(J==="be")for(Y=K.length-1;Y>=C;Y-=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8;else{var F=K.length-C;for(Y=F%2===0?C+1:C;Y<K.length;Y+=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8}this.strip()};function V(K,C,J,Y){for(var Q=0,P=Math.min(K.length,J),Z=C;Z<P;Z++){var F=K.charCodeAt(Z)-48;Q*=Y,F>=49?Q+=F-49+10:F>=17?Q+=F-17+10:Q+=F}return Q}H.prototype._parseBase=function(K,C,J){this.words=[0],this.length=1;for(var Y=0,Q=1;Q<=67108863;Q*=C)Y++;Y--,Q=Q/C|0;for(var P=K.length-J,Z=P%Y,F=Math.min(P,P-Z)+J,X=0,G=J;G<F;G+=Y)X=V(K,G,G+Y,C),this.imuln(Q),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(Z!==0){var R=1;for(X=V(K,G,K.length,C),G=0;G<Z;G++)R*=C;this.imuln(R),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},H.prototype.copy=function(K){K.words=new Array(this.length);for(var C=0;C<this.length;C++)K.words[C]=this.words[C];K.length=this.length,K.negative=this.negative,K.red=this.red},H.prototype.clone=function(){var K=new H(null);return this.copy(K),K},H.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[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],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(K,C){K=K||10,C=C|0||1;var J;if(K===16||K==="hex"){J="";for(var Y=0,Q=0,P=0;P<this.length;P++){var Z=this.words[P],F=((Z<<Y|Q)&16777215).toString(16);Q=Z>>>24-Y&16777215,Q!==0||P!==this.length-1?J=$[6-F.length]+F+J:J=F+J,Y+=2,Y>=26&&(Y-=26,P--)}for(Q!==0&&(J=Q.toString(16)+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}if(K===(K|0)&&K>=2&&K<=36){var X=T[K],G=N[K];J="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(K);R=R.idivn(G),R.isZero()?J=L+J:J=$[X-L.length]+L+J}for(this.isZero()&&(J="0"+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(K,C){return j(typeof U<"u"),this.toArrayLike(U,K,C)},H.prototype.toArray=function(K,C){return this.toArrayLike(Array,K,C)},H.prototype.toArrayLike=function(K,C,J){var Y=this.byteLength(),Q=J||Math.max(1,Y);j(Y<=Q,"byte array longer than desired length"),j(Q>0,"Requested array length <= 0"),this.strip();var P=C==="le",Z=new K(Q),F,X,G=this.clone();if(P){for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[X]=F;for(;X<Q;X++)Z[X]=0}else{for(X=0;X<Q-Y;X++)Z[X]=0;for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[Q-X-1]=F}return Z},Math.clz32?H.prototype._countBits=function(K){return 32-Math.clz32(K)}:H.prototype._countBits=function(K){var C=K,J=0;return C>=4096&&(J+=13,C>>>=13),C>=64&&(J+=7,C>>>=7),C>=8&&(J+=4,C>>>=4),C>=2&&(J+=2,C>>>=2),J+C},H.prototype._zeroBits=function(K){if(K===0)return 26;var C=K,J=0;return(C&8191)===0&&(J+=13,C>>>=13),(C&127)===0&&(J+=7,C>>>=7),(C&15)===0&&(J+=4,C>>>=4),(C&3)===0&&(J+=2,C>>>=2),(C&1)===0&&J++,J},H.prototype.bitLength=function(){var K=this.words[this.length-1],C=this._countBits(K);return(this.length-1)*26+C};function W(K){for(var C=new Array(K.bitLength()),J=0;J<C.length;J++){var Y=J/26|0,Q=J%26;C[J]=(K.words[Y]&1<<Q)>>>Q}return C}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,C=0;C<this.length;C++){var J=this._zeroBits(this.words[C]);if(K+=J,J!==26)break}return K},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},H.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var C=0;C<K.length;C++)this.words[C]=this.words[C]|K.words[C];return this.strip()},H.prototype.ior=function(K){return j((this.negative|K.negative)===0),this.iuor(K)},H.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},H.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},H.prototype.iuand=function(K){var C;this.length>K.length?C=K:C=this;for(var J=0;J<C.length;J++)this.words[J]=this.words[J]&K.words[J];return this.length=C.length,this.strip()},H.prototype.iand=function(K){return j((this.negative|K.negative)===0),this.iuand(K)},H.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},H.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},H.prototype.iuxor=function(K){var C,J;this.length>K.length?(C=this,J=K):(C=K,J=this);for(var Y=0;Y<J.length;Y++)this.words[Y]=C.words[Y]^J.words[Y];if(this!==C)for(;Y<C.length;Y++)this.words[Y]=C.words[Y];return this.length=C.length,this.strip()},H.prototype.ixor=function(K){return j((this.negative|K.negative)===0),this.iuxor(K)},H.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},H.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},H.prototype.inotn=function(K){j(typeof K=="number"&&K>=0);var C=Math.ceil(K/26)|0,J=K%26;this._expand(C),J>0&&C--;for(var Y=0;Y<C;Y++)this.words[Y]=~this.words[Y]&67108863;return J>0&&(this.words[Y]=~this.words[Y]&67108863>>26-J),this.strip()},H.prototype.notn=function(K){return this.clone().inotn(K)},H.prototype.setn=function(K,C){j(typeof K=="number"&&K>=0);var J=K/26|0,Y=K%26;return this._expand(J+1),C?this.words[J]=this.words[J]|1<<Y:this.words[J]=this.words[J]&~(1<<Y),this.strip()},H.prototype.iadd=function(K){var C;if(this.negative!==0&&K.negative===0)return this.negative=0,C=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,C=this.isub(K),K.negative=1,C._normSign();var J,Y;this.length>K.length?(J=this,Y=K):(J=K,Y=this);for(var Q=0,P=0;P<Y.length;P++)C=(J.words[P]|0)+(Y.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;for(;Q!==0&&P<J.length;P++)C=(J.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;if(this.length=J.length,Q!==0)this.words[this.length]=Q,this.length++;else if(J!==this)for(;P<J.length;P++)this.words[P]=J.words[P];return this},H.prototype.add=function(K){var C;return K.negative!==0&&this.negative===0?(K.negative=0,C=this.sub(K),K.negative^=1,C):K.negative===0&&this.negative!==0?(this.negative=0,C=K.sub(this),this.negative=1,C):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},H.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var C=this.iadd(K);return K.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var J=this.cmp(K);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Y,Q;J>0?(Y=this,Q=K):(Y=K,Q=this);for(var P=0,Z=0;Z<Q.length;Z++)C=(Y.words[Z]|0)-(Q.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;for(;P!==0&&Z<Y.length;Z++)C=(Y.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;if(P===0&&Z<Y.length&&Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this.length=Math.max(this.length,Z),Y!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(K){return this.clone().isub(K)};function D(K,C,J){J.negative=C.negative^K.negative;var Y=K.length+C.length|0;J.length=Y,Y=Y-1|0;var Q=K.words[0]|0,P=C.words[0]|0,Z=Q*P,F=Z&67108863,X=Z/67108864|0;J.words[0]=F;for(var G=1;G<Y;G++){for(var R=X>>>26,L=X&67108863,_=Math.min(G,C.length-1),s=Math.max(0,G-K.length+1);s<=_;s++){var r=G-s|0;Q=K.words[r]|0,P=C.words[s]|0,Z=Q*P+L,R+=Z/67108864|0,L=Z&67108863}J.words[G]=L|0,X=R|0}return X!==0?J.words[G]=X|0:J.length--,J.strip()}var I=function(K,C,J){var Y=K.words,Q=C.words,P=J.words,Z=0,F,X,G,R=Y[0]|0,L=R&8191,_=R>>>13,s=Y[1]|0,r=s&8191,C0=s>>>13,u=Y[2]|0,d=u&8191,a=u>>>13,V0=Y[3]|0,K0=V0&8191,Q0=V0>>>13,w=Y[4]|0,q=w&8191,m=w>>>13,e=Y[5]|0,X0=e&8191,t=e>>>13,_0=Y[6]|0,H0=_0&8191,G0=_0>>>13,w0=Y[7]|0,W0=w0&8191,Z0=w0>>>13,c0=Y[8]|0,O=c0&8191,B=c0>>>13,b=Y[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,J0=z0&8191,$0=z0>>>13,b0=Q[1]|0,U0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,F5=Q[3]|0,T0=F5&8191,O0=F5>>>13,l0=Q[4]|0,L0=l0&8191,k0=l0>>>13,G5=Q[5]|0,I0=G5&8191,q0=G5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,Z5=Q[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=Q[8]|0,x0=$5&8191,A0=$5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;J.negative=K.negative^C.negative,J.length=19,F=Math.imul(L,J0),X=Math.imul(L,$0),X=X+Math.imul(_,J0)|0,G=Math.imul(_,$0);var Q5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,F=Math.imul(r,J0),X=Math.imul(r,$0),X=X+Math.imul(C0,J0)|0,G=Math.imul(C0,$0),F=F+Math.imul(L,U0)|0,X=X+Math.imul(L,j0)|0,X=X+Math.imul(_,U0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(g0>>>26)|0,g0&=67108863,F=Math.imul(d,J0),X=Math.imul(d,$0),X=X+Math.imul(a,J0)|0,G=Math.imul(a,$0),F=F+Math.imul(r,U0)|0,X=X+Math.imul(r,j0)|0,X=X+Math.imul(C0,U0)|0,G=G+Math.imul(C0,j0)|0,F=F+Math.imul(L,D0)|0,X=X+Math.imul(L,N0)|0,X=X+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,F=Math.imul(K0,J0),X=Math.imul(K0,$0),X=X+Math.imul(Q0,J0)|0,G=Math.imul(Q0,$0),F=F+Math.imul(d,U0)|0,X=X+Math.imul(d,j0)|0,X=X+Math.imul(a,U0)|0,G=G+Math.imul(a,j0)|0,F=F+Math.imul(r,D0)|0,X=X+Math.imul(r,N0)|0,X=X+Math.imul(C0,D0)|0,G=G+Math.imul(C0,N0)|0,F=F+Math.imul(L,T0)|0,X=X+Math.imul(L,O0)|0,X=X+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(h0>>>26)|0,h0&=67108863,F=Math.imul(q,J0),X=Math.imul(q,$0),X=X+Math.imul(m,J0)|0,G=Math.imul(m,$0),F=F+Math.imul(K0,U0)|0,X=X+Math.imul(K0,j0)|0,X=X+Math.imul(Q0,U0)|0,G=G+Math.imul(Q0,j0)|0,F=F+Math.imul(d,D0)|0,X=X+Math.imul(d,N0)|0,X=X+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,F=F+Math.imul(r,T0)|0,X=X+Math.imul(r,O0)|0,X=X+Math.imul(C0,T0)|0,G=G+Math.imul(C0,O0)|0,F=F+Math.imul(L,L0)|0,X=X+Math.imul(L,k0)|0,X=X+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,F=Math.imul(X0,J0),X=Math.imul(X0,$0),X=X+Math.imul(t,J0)|0,G=Math.imul(t,$0),F=F+Math.imul(q,U0)|0,X=X+Math.imul(q,j0)|0,X=X+Math.imul(m,U0)|0,G=G+Math.imul(m,j0)|0,F=F+Math.imul(K0,D0)|0,X=X+Math.imul(K0,N0)|0,X=X+Math.imul(Q0,D0)|0,G=G+Math.imul(Q0,N0)|0,F=F+Math.imul(d,T0)|0,X=X+Math.imul(d,O0)|0,X=X+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,F=F+Math.imul(r,L0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(C0,L0)|0,G=G+Math.imul(C0,k0)|0,F=F+Math.imul(L,I0)|0,X=X+Math.imul(L,q0)|0,X=X+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,F=Math.imul(H0,J0),X=Math.imul(H0,$0),X=X+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),F=F+Math.imul(X0,U0)|0,X=X+Math.imul(X0,j0)|0,X=X+Math.imul(t,U0)|0,G=G+Math.imul(t,j0)|0,F=F+Math.imul(q,D0)|0,X=X+Math.imul(q,N0)|0,X=X+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,F=F+Math.imul(K0,T0)|0,X=X+Math.imul(K0,O0)|0,X=X+Math.imul(Q0,T0)|0,G=G+Math.imul(Q0,O0)|0,F=F+Math.imul(d,L0)|0,X=X+Math.imul(d,k0)|0,X=X+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,F=F+Math.imul(r,I0)|0,X=X+Math.imul(r,q0)|0,X=X+Math.imul(C0,I0)|0,G=G+Math.imul(C0,q0)|0,F=F+Math.imul(L,B0)|0,X=X+Math.imul(L,R0)|0,X=X+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,F=Math.imul(W0,J0),X=Math.imul(W0,$0),X=X+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),F=F+Math.imul(H0,U0)|0,X=X+Math.imul(H0,j0)|0,X=X+Math.imul(G0,U0)|0,G=G+Math.imul(G0,j0)|0,F=F+Math.imul(X0,D0)|0,X=X+Math.imul(X0,N0)|0,X=X+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,F=F+Math.imul(q,T0)|0,X=X+Math.imul(q,O0)|0,X=X+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,F=F+Math.imul(K0,L0)|0,X=X+Math.imul(K0,k0)|0,X=X+Math.imul(Q0,L0)|0,G=G+Math.imul(Q0,k0)|0,F=F+Math.imul(d,I0)|0,X=X+Math.imul(d,q0)|0,X=X+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,F=F+Math.imul(r,B0)|0,X=X+Math.imul(r,R0)|0,X=X+Math.imul(C0,B0)|0,G=G+Math.imul(C0,R0)|0,F=F+Math.imul(L,E0)|0,X=X+Math.imul(L,S0)|0,X=X+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,F=Math.imul(O,J0),X=Math.imul(O,$0),X=X+Math.imul(B,J0)|0,G=Math.imul(B,$0),F=F+Math.imul(W0,U0)|0,X=X+Math.imul(W0,j0)|0,X=X+Math.imul(Z0,U0)|0,G=G+Math.imul(Z0,j0)|0,F=F+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,F=F+Math.imul(X0,T0)|0,X=X+Math.imul(X0,O0)|0,X=X+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,F=F+Math.imul(q,L0)|0,X=X+Math.imul(q,k0)|0,X=X+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,F=F+Math.imul(K0,I0)|0,X=X+Math.imul(K0,q0)|0,X=X+Math.imul(Q0,I0)|0,G=G+Math.imul(Q0,q0)|0,F=F+Math.imul(d,B0)|0,X=X+Math.imul(d,R0)|0,X=X+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,F=F+Math.imul(r,E0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(C0,E0)|0,G=G+Math.imul(C0,S0)|0,F=F+Math.imul(L,x0)|0,X=X+Math.imul(L,A0)|0,X=X+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,F=Math.imul(h,J0),X=Math.imul(h,$0),X=X+Math.imul(o,J0)|0,G=Math.imul(o,$0),F=F+Math.imul(O,U0)|0,X=X+Math.imul(O,j0)|0,X=X+Math.imul(B,U0)|0,G=G+Math.imul(B,j0)|0,F=F+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,F=F+Math.imul(H0,T0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,F=F+Math.imul(X0,L0)|0,X=X+Math.imul(X0,k0)|0,X=X+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,F=F+Math.imul(q,I0)|0,X=X+Math.imul(q,q0)|0,X=X+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,F=F+Math.imul(K0,B0)|0,X=X+Math.imul(K0,R0)|0,X=X+Math.imul(Q0,B0)|0,G=G+Math.imul(Q0,R0)|0,F=F+Math.imul(d,E0)|0,X=X+Math.imul(d,S0)|0,X=X+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,F=F+Math.imul(r,x0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(C0,x0)|0,G=G+Math.imul(C0,A0)|0,F=F+Math.imul(L,v0)|0,X=X+Math.imul(L,M0)|0,X=X+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,F=Math.imul(h,U0),X=Math.imul(h,j0),X=X+Math.imul(o,U0)|0,G=Math.imul(o,j0),F=F+Math.imul(O,D0)|0,X=X+Math.imul(O,N0)|0,X=X+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,F=F+Math.imul(W0,T0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,F=F+Math.imul(H0,L0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,F=F+Math.imul(X0,I0)|0,X=X+Math.imul(X0,q0)|0,X=X+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,F=F+Math.imul(q,B0)|0,X=X+Math.imul(q,R0)|0,X=X+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,F=F+Math.imul(K0,E0)|0,X=X+Math.imul(K0,S0)|0,X=X+Math.imul(Q0,E0)|0,G=G+Math.imul(Q0,S0)|0,F=F+Math.imul(d,x0)|0,X=X+Math.imul(d,A0)|0,X=X+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,F=F+Math.imul(r,v0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(C0,v0)|0,G=G+Math.imul(C0,M0)|0;var r0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,F=Math.imul(h,D0),X=Math.imul(h,N0),X=X+Math.imul(o,D0)|0,G=Math.imul(o,N0),F=F+Math.imul(O,T0)|0,X=X+Math.imul(O,O0)|0,X=X+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,F=F+Math.imul(W0,L0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,F=F+Math.imul(H0,I0)|0,X=X+Math.imul(H0,q0)|0,X=X+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,F=F+Math.imul(X0,B0)|0,X=X+Math.imul(X0,R0)|0,X=X+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,F=F+Math.imul(q,E0)|0,X=X+Math.imul(q,S0)|0,X=X+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,F=F+Math.imul(K0,x0)|0,X=X+Math.imul(K0,A0)|0,X=X+Math.imul(Q0,x0)|0,G=G+Math.imul(Q0,A0)|0,F=F+Math.imul(d,v0)|0,X=X+Math.imul(d,M0)|0,X=X+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,F=Math.imul(h,T0),X=Math.imul(h,O0),X=X+Math.imul(o,T0)|0,G=Math.imul(o,O0),F=F+Math.imul(O,L0)|0,X=X+Math.imul(O,k0)|0,X=X+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,F=F+Math.imul(W0,I0)|0,X=X+Math.imul(W0,q0)|0,X=X+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,F=F+Math.imul(H0,B0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,F=F+Math.imul(X0,E0)|0,X=X+Math.imul(X0,S0)|0,X=X+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,F=F+Math.imul(q,x0)|0,X=X+Math.imul(q,A0)|0,X=X+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,F=F+Math.imul(K0,v0)|0,X=X+Math.imul(K0,M0)|0,X=X+Math.imul(Q0,v0)|0,G=G+Math.imul(Q0,M0)|0;var t0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,F=Math.imul(h,L0),X=Math.imul(h,k0),X=X+Math.imul(o,L0)|0,G=Math.imul(o,k0),F=F+Math.imul(O,I0)|0,X=X+Math.imul(O,q0)|0,X=X+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,F=F+Math.imul(W0,B0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,F=F+Math.imul(H0,E0)|0,X=X+Math.imul(H0,S0)|0,X=X+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,F=F+Math.imul(X0,x0)|0,X=X+Math.imul(X0,A0)|0,X=X+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,F=F+Math.imul(q,v0)|0,X=X+Math.imul(q,M0)|0,X=X+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,F=Math.imul(h,I0),X=Math.imul(h,q0),X=X+Math.imul(o,I0)|0,G=Math.imul(o,q0),F=F+Math.imul(O,B0)|0,X=X+Math.imul(O,R0)|0,X=X+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,F=F+Math.imul(W0,E0)|0,X=X+Math.imul(W0,S0)|0,X=X+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,F=F+Math.imul(H0,x0)|0,X=X+Math.imul(H0,A0)|0,X=X+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,F=F+Math.imul(X0,v0)|0,X=X+Math.imul(X0,M0)|0,X=X+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var K5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,F=Math.imul(h,B0),X=Math.imul(h,R0),X=X+Math.imul(o,B0)|0,G=Math.imul(o,R0),F=F+Math.imul(O,E0)|0,X=X+Math.imul(O,S0)|0,X=X+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,F=F+Math.imul(W0,x0)|0,X=X+Math.imul(W0,A0)|0,X=X+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,F=F+Math.imul(H0,v0)|0,X=X+Math.imul(H0,M0)|0,X=X+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var X5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,F=Math.imul(h,E0),X=Math.imul(h,S0),X=X+Math.imul(o,E0)|0,G=Math.imul(o,S0),F=F+Math.imul(O,x0)|0,X=X+Math.imul(O,A0)|0,X=X+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,F=F+Math.imul(W0,v0)|0,X=X+Math.imul(W0,M0)|0,X=X+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var C5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(C5>>>26)|0,C5&=67108863,F=Math.imul(h,x0),X=Math.imul(h,A0),X=X+Math.imul(o,x0)|0,G=Math.imul(o,A0),F=F+Math.imul(O,v0)|0,X=X+Math.imul(O,M0)|0,X=X+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var Y5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,F=Math.imul(h,v0),X=Math.imul(h,M0),X=X+Math.imul(o,v0)|0,G=Math.imul(o,M0);var J5=(Z+F|0)+((X&8191)<<13)|0;return Z=(G+(X>>>13)|0)+(J5>>>26)|0,J5&=67108863,P[0]=Q5,P[1]=g0,P[2]=m0,P[3]=h0,P[4]=u0,P[5]=o0,P[6]=s0,P[7]=a0,P[8]=f0,P[9]=n0,P[10]=r0,P[11]=i0,P[12]=t0,P[13]=e0,P[14]=K5,P[15]=X5,P[16]=C5,P[17]=Y5,P[18]=J5,Z!==0&&(P[19]=Z,J.length++),J};Math.imul||(I=D);function v(K,C,J){J.negative=C.negative^K.negative,J.length=K.length+C.length;for(var Y=0,Q=0,P=0;P<J.length-1;P++){var Z=Q;Q=0;for(var F=Y&67108863,X=Math.min(P,C.length-1),G=Math.max(0,P-K.length+1);G<=X;G++){var R=P-G,L=K.words[R]|0,_=C.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+F|0,F=r&67108863,Z=Z+(r>>>26)|0,Q+=Z>>>26,Z&=67108863}J.words[P]=F,Y=Z,Z=Q}return Y!==0?J.words[P]=Y:J.length--,J.strip()}function x(K,C,J){var Y=new A;return Y.mulp(K,C,J)}H.prototype.mulTo=function(K,C){var J,Y=this.length+K.length;return this.length===10&&K.length===10?J=I(this,K,C):Y<63?J=D(this,K,C):Y<1024?J=v(this,K,C):J=x(this,K,C),J};function A(K,C){this.x=K,this.y=C}A.prototype.makeRBT=function(K){for(var C=new Array(K),J=H.prototype._countBits(K)-1,Y=0;Y<K;Y++)C[Y]=this.revBin(Y,J,K);return C},A.prototype.revBin=function(K,C,J){if(K===0||K===J-1)return K;for(var Y=0,Q=0;Q<C;Q++)Y|=(K&1)<<C-Q-1,K>>=1;return Y},A.prototype.permute=function(K,C,J,Y,Q,P){for(var Z=0;Z<P;Z++)Y[Z]=C[K[Z]],Q[Z]=J[K[Z]]},A.prototype.transform=function(K,C,J,Y,Q,P){this.permute(P,K,C,J,Y,Q);for(var Z=1;Z<Q;Z<<=1)for(var F=Z<<1,X=Math.cos(2*Math.PI/F),G=Math.sin(2*Math.PI/F),R=0;R<Q;R+=F)for(var L=X,_=G,s=0;s<Z;s++){var r=J[R+s],C0=Y[R+s],u=J[R+s+Z],d=Y[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,J[R+s]=r+u,Y[R+s]=C0+d,J[R+s+Z]=r-u,Y[R+s+Z]=C0-d,s!==F&&(a=X*L-G*_,_=X*_+G*L,L=a)}},A.prototype.guessLen13b=function(K,C){var J=Math.max(C,K)|1,Y=J&1,Q=0;for(J=J/2|0;J;J=J>>>1)Q++;return 1<<Q+1+Y},A.prototype.conjugate=function(K,C,J){if(!(J<=1))for(var Y=0;Y<J/2;Y++){var Q=K[Y];K[Y]=K[J-Y-1],K[J-Y-1]=Q,Q=C[Y],C[Y]=-C[J-Y-1],C[J-Y-1]=-Q}},A.prototype.normalize13b=function(K,C){for(var J=0,Y=0;Y<C/2;Y++){var Q=Math.round(K[2*Y+1]/C)*8192+Math.round(K[2*Y]/C)+J;K[Y]=Q&67108863,Q<67108864?J=0:J=Q/67108864|0}return K},A.prototype.convert13b=function(K,C,J,Y){for(var Q=0,P=0;P<C;P++)Q=Q+(K[P]|0),J[2*P]=Q&8191,Q=Q>>>13,J[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*C;P<Y;++P)J[P]=0;j(Q===0),j((Q&-8192)===0)},A.prototype.stub=function(K){for(var C=new Array(K),J=0;J<K;J++)C[J]=0;return C},A.prototype.mulp=function(K,C,J){var Y=2*this.guessLen13b(K.length,C.length),Q=this.makeRBT(Y),P=this.stub(Y),Z=new Array(Y),F=new Array(Y),X=new Array(Y),G=new Array(Y),R=new Array(Y),L=new Array(Y),_=J.words;_.length=Y,this.convert13b(K.words,K.length,Z,Y),this.convert13b(C.words,C.length,G,Y),this.transform(Z,P,F,X,Y,Q),this.transform(G,P,R,L,Y,Q);for(var s=0;s<Y;s++){var r=F[s]*R[s]-X[s]*L[s];X[s]=F[s]*L[s]+X[s]*R[s],F[s]=r}return this.conjugate(F,X,Y),this.transform(F,X,_,P,Y,Q),this.conjugate(_,P,Y),this.normalize13b(_,Y),J.negative=K.negative^C.negative,J.length=K.length+C.length,J.strip()},H.prototype.mul=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),this.mulTo(K,C)},H.prototype.mulf=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),x(this,K,C)},H.prototype.imul=function(K){return this.clone().mulTo(K,this)},H.prototype.imuln=function(K){j(typeof K=="number"),j(K<67108864);for(var C=0,J=0;J<this.length;J++){var Y=(this.words[J]|0)*K,Q=(Y&67108863)+(C&67108863);C>>=26,C+=Y/67108864|0,C+=Q>>>26,this.words[J]=Q&67108863}return C!==0&&(this.words[J]=C,this.length++),this},H.prototype.muln=function(K){return this.clone().imuln(K)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(K){var C=W(K);if(C.length===0)return new H(1);for(var J=this,Y=0;Y<C.length&&C[Y]===0;Y++,J=J.sqr());if(++Y<C.length)for(var Q=J.sqr();Y<C.length;Y++,Q=Q.sqr())C[Y]!==0&&(J=J.mul(Q));return J},H.prototype.iushln=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=67108863>>>26-C<<26-C,Q;if(C!==0){var P=0;for(Q=0;Q<this.length;Q++){var Z=this.words[Q]&Y,F=(this.words[Q]|0)-Z<<C;this.words[Q]=F|P,P=Z>>>26-C}P&&(this.words[Q]=P,this.length++)}if(J!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+J]=this.words[Q];for(Q=0;Q<J;Q++)this.words[Q]=0;this.length+=J}return this.strip()},H.prototype.ishln=function(K){return j(this.negative===0),this.iushln(K)},H.prototype.iushrn=function(K,C,J){j(typeof K=="number"&&K>=0);var Y;C?Y=(C-C%26)/26:Y=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),Z=67108863^67108863>>>Q<<Q,F=J;if(Y-=P,Y=Math.max(0,Y),F){for(var X=0;X<P;X++)F.words[X]=this.words[X];F.length=P}if(P!==0)if(this.length>P)for(this.length-=P,X=0;X<this.length;X++)this.words[X]=this.words[X+P];else this.words[0]=0,this.length=1;var G=0;for(X=this.length-1;X>=0&&(G!==0||X>=Y);X--){var R=this.words[X]|0;this.words[X]=G<<26-Q|R>>>Q,G=R&Z}return F&&G!==0&&(F.words[F.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(K,C,J){return j(this.negative===0),this.iushrn(K,C,J)},H.prototype.shln=function(K){return this.clone().ishln(K)},H.prototype.ushln=function(K){return this.clone().iushln(K)},H.prototype.shrn=function(K){return this.clone().ishrn(K)},H.prototype.ushrn=function(K){return this.clone().iushrn(K)},H.prototype.testn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return!1;var Q=this.words[J];return!!(Q&Y)},H.prototype.imaskn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(C!==0&&J++,this.length=Math.min(J,this.length),C!==0){var Y=67108863^67108863>>>C<<C;this.words[this.length-1]&=Y}return this.strip()},H.prototype.maskn=function(K){return this.clone().imaskn(K)},H.prototype.iaddn=function(K){return j(typeof K=="number"),j(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},H.prototype._iaddn=function(K){this.words[0]+=K;for(var C=0;C<this.length&&this.words[C]>=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},H.prototype.isubn=function(K){if(j(typeof K=="number"),j(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C<this.length&&this.words[C]<0;C++)this.words[C]+=67108864,this.words[C+1]-=1;return this.strip()},H.prototype.addn=function(K){return this.clone().iaddn(K)},H.prototype.subn=function(K){return this.clone().isubn(K)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(K,C,J){var Y=K.length+J,Q;this._expand(Y);var P,Z=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+J]|0)+Z;var F=(K.words[Q]|0)*C;P-=F&67108863,Z=(P>>26)-(F/67108864|0),this.words[Q+J]=P&67108863}for(;Q<this.length-J;Q++)P=(this.words[Q+J]|0)+Z,Z=P>>26,this.words[Q+J]=P&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+Z,Z=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(K,C){var J=this.length-K.length,Y=this.clone(),Q=K,P=Q.words[Q.length-1]|0,Z=this._countBits(P);J=26-Z,J!==0&&(Q=Q.ushln(J),Y.iushln(J),P=Q.words[Q.length-1]|0);var F=Y.length-Q.length,X;if(C!=="mod"){X=new H(null),X.length=F+1,X.words=new Array(X.length);for(var G=0;G<X.length;G++)X.words[G]=0}var R=Y.clone()._ishlnsubmul(Q,1,F);R.negative===0&&(Y=R,X&&(X.words[F]=1));for(var L=F-1;L>=0;L--){var _=(Y.words[Q.length+L]|0)*67108864+(Y.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),Y._ishlnsubmul(Q,_,L);Y.negative!==0;)_--,Y.negative=0,Y._ishlnsubmul(Q,1,L),Y.isZero()||(Y.negative^=1);X&&(X.words[L]=_)}return X&&X.strip(),Y.strip(),C!=="div"&&J!==0&&Y.iushrn(J),{div:X||null,mod:Y}},H.prototype.divmod=function(K,C,J){if(j(!K.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Y,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,C),C!=="mod"&&(Y=P.div.neg()),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.iadd(K)),{div:Y,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),C),C!=="mod"&&(Y=P.div.neg()),{div:Y,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),C),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new H(0),mod:this}:K.length===1?C==="div"?{div:this.divn(K.words[0]),mod:null}:C==="mod"?{div:null,mod:new H(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new H(this.modn(K.words[0]))}:this._wordDiv(K,C)},H.prototype.div=function(K){return this.divmod(K,"div",!1).div},H.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},H.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},H.prototype.divRound=function(K){var C=this.divmod(K);if(C.mod.isZero())return C.div;var J=C.div.negative!==0?C.mod.isub(K):C.mod,Y=K.ushrn(1),Q=K.andln(1),P=J.cmp(Y);return P<0||Q===1&&P===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},H.prototype.modn=function(K){j(K<=67108863);for(var C=67108864%K,J=0,Y=this.length-1;Y>=0;Y--)J=(C*J+(this.words[Y]|0))%K;return J},H.prototype.idivn=function(K){j(K<=67108863);for(var C=0,J=this.length-1;J>=0;J--){var Y=(this.words[J]|0)+C*67108864;this.words[J]=Y/K|0,C=Y%K}return this.strip()},H.prototype.divn=function(K){return this.clone().idivn(K)},H.prototype.egcd=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=new H(0),Z=new H(1),F=0;C.isEven()&&J.isEven();)C.iushrn(1),J.iushrn(1),++F;for(var X=J.clone(),G=C.clone();!C.isZero();){for(var R=0,L=1;(C.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(C.iushrn(R);R-- >0;)(Y.isOdd()||Q.isOdd())&&(Y.iadd(X),Q.isub(G)),Y.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(J.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(J.iushrn(_);_-- >0;)(P.isOdd()||Z.isOdd())&&(P.iadd(X),Z.isub(G)),P.iushrn(1),Z.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(P),Q.isub(Z)):(J.isub(C),P.isub(Y),Z.isub(Q))}return{a:P,b:Z,gcd:J.iushln(F)}},H.prototype._invmp=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=J.clone();C.cmpn(1)>0&&J.cmpn(1)>0;){for(var Z=0,F=1;(C.words[0]&F)===0&&Z<26;++Z,F<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)Y.isOdd()&&Y.iadd(P),Y.iushrn(1);for(var X=0,G=1;(J.words[0]&G)===0&&X<26;++X,G<<=1);if(X>0)for(J.iushrn(X);X-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(Q)):(J.isub(C),Q.isub(Y))}var R;return C.cmpn(1)===0?R=Y:R=Q,R.cmpn(0)<0&&R.iadd(K),R},H.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var C=this.clone(),J=K.clone();C.negative=0,J.negative=0;for(var Y=0;C.isEven()&&J.isEven();Y++)C.iushrn(1),J.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;J.isEven();)J.iushrn(1);var Q=C.cmp(J);if(Q<0){var P=C;C=J,J=P}else if(Q===0||J.cmpn(1)===0)break;C.isub(J)}while(!0);return J.iushln(Y)},H.prototype.invm=function(K){return this.egcd(K).a.umod(K)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(K){return this.words[0]&K},H.prototype.bincn=function(K){j(typeof K=="number");var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return this._expand(J+1),this.words[J]|=Y,this;for(var Q=Y,P=J;Q!==0&&P<this.length;P++){var Z=this.words[P]|0;Z+=Q,Q=Z>>>26,Z&=67108863,this.words[P]=Z}return Q!==0&&(this.words[P]=Q,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(K){var C=K<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this.strip();var J;if(this.length>1)J=1;else{C&&(K=-K),j(K<=67108863,"Number is too big");var Y=this.words[0]|0;J=Y===K?0:Y<K?-1:1}return this.negative!==0?-J|0:J},H.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var C=this.ucmp(K);return this.negative!==0?-C|0:C},H.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var C=0,J=this.length-1;J>=0;J--){var Y=this.words[J]|0,Q=K.words[J]|0;if(Y!==Q){Y<Q?C=-1:Y>Q&&(C=1);break}}return C},H.prototype.gtn=function(K){return this.cmpn(K)===1},H.prototype.gt=function(K){return this.cmp(K)===1},H.prototype.gten=function(K){return this.cmpn(K)>=0},H.prototype.gte=function(K){return this.cmp(K)>=0},H.prototype.ltn=function(K){return this.cmpn(K)===-1},H.prototype.lt=function(K){return this.cmp(K)===-1},H.prototype.lten=function(K){return this.cmpn(K)<=0},H.prototype.lte=function(K){return this.cmp(K)<=0},H.prototype.eqn=function(K){return this.cmpn(K)===0},H.prototype.eq=function(K){return this.cmp(K)===0},H.red=function(K){return new f(K)},H.prototype.toRed=function(K){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(K){return this.red=K,this},H.prototype.forceRed=function(K){return j(!this.red,"Already a number in reduction context"),this._forceRed(K)},H.prototype.redAdd=function(K){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},H.prototype.redIAdd=function(K){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},H.prototype.redSub=function(K){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},H.prototype.redISub=function(K){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},H.prototype.redShl=function(K){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},H.prototype.redMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},H.prototype.redIMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(K){return j(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var y={k256:null,p224:null,p192:null,p25519:null};function p(K,C){this.name=K,this.p=new H(C,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new H(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var C=K,J;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),J=C.bitLength();while(J>this.n);var Y=J<this.n?-1:C.ucmp(this.p);return Y===0?(C.words[0]=0,C.length=1):Y>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},p.prototype.split=function(K,C){K.iushrn(this.n,0,C)},p.prototype.imulK=function(K){return K.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(K,C){for(var J=4194303,Y=Math.min(K.length,9),Q=0;Q<Y;Q++)C.words[Q]=K.words[Q];if(C.length=Y,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(C.words[C.length++]=P&J,Q=10;Q<K.length;Q++){var Z=K.words[Q]|0;K.words[Q-10]=(Z&J)<<4|P>>>22,P=Z}P>>>=22,K.words[Q-10]=P,P===0&&K.length>10?K.length-=10:K.length-=9},c.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var C=0,J=0;J<K.length;J++){var Y=K.words[J]|0;C+=Y*977,K.words[J]=C&67108863,C=Y*64+(C/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Y0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Y0,p),Y0.prototype.imulK=function(K){for(var C=0,J=0;J<K.length;J++){var Y=(K.words[J]|0)*19+C,Q=Y&67108863;Y>>>=26,K.words[J]=Q,C=Y}return C!==0&&(K.words[K.length++]=C),K},H._prime=function(K){if(y[K])return y[K];var C;if(K==="k256")C=new c;else if(K==="p224")C=new n;else if(K==="p192")C=new i;else if(K==="p25519")C=new Y0;else throw new Error("Unknown prime "+K);return y[K]=C,C};function f(K){if(typeof K=="string"){var C=H._prime(K);this.m=C.p,this.prime=C}else j(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){j(K.negative===0,"red works only with positives"),j(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,C){j((K.negative|C.negative)===0,"red works only with positives"),j(K.red&&K.red===C.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,C){this._verify2(K,C);var J=K.add(C);return J.cmp(this.m)>=0&&J.isub(this.m),J._forceRed(this)},f.prototype.iadd=function(K,C){this._verify2(K,C);var J=K.iadd(C);return J.cmp(this.m)>=0&&J.isub(this.m),J},f.prototype.sub=function(K,C){this._verify2(K,C);var J=K.sub(C);return J.cmpn(0)<0&&J.iadd(this.m),J._forceRed(this)},f.prototype.isub=function(K,C){this._verify2(K,C);var J=K.isub(C);return J.cmpn(0)<0&&J.iadd(this.m),J},f.prototype.shl=function(K,C){return this._verify1(K),this.imod(K.ushln(C))},f.prototype.imul=function(K,C){return this._verify2(K,C),this.imod(K.imul(C))},f.prototype.mul=function(K,C){return this._verify2(K,C),this.imod(K.mul(C))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var C=this.m.andln(3);if(j(C%2===1),C===3){var J=this.m.add(new H(1)).iushrn(2);return this.pow(K,J)}for(var Y=this.m.subn(1),Q=0;!Y.isZero()&&Y.andln(1)===0;)Q++,Y.iushrn(1);j(!Y.isZero());var P=new H(1).toRed(this),Z=P.redNeg(),F=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new H(2*X*X).toRed(this);this.pow(X,F).cmp(Z)!==0;)X.redIAdd(Z);for(var G=this.pow(X,Y),R=this.pow(K,Y.addn(1).iushrn(1)),L=this.pow(K,Y),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();j(r<_);var C0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(C0),G=C0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(K){var C=K._invmp(this.m);return C.negative!==0?(C.negative=0,this.imod(C).redNeg()):this.imod(C)},f.prototype.pow=function(K,C){if(C.isZero())return new H(1).toRed(this);if(C.cmpn(1)===0)return K.clone();var J=4,Y=new Array(1<<J);Y[0]=new H(1).toRed(this),Y[1]=K;for(var Q=2;Q<Y.length;Q++)Y[Q]=this.mul(Y[Q-1],K);var P=Y[0],Z=0,F=0,X=C.bitLength()%26;for(X===0&&(X=26),Q=C.length-1;Q>=0;Q--){for(var G=C.words[Q],R=X-1;R>=0;R--){var L=G>>R&1;if(P!==Y[0]&&(P=this.sqr(P)),L===0&&Z===0){F=0;continue}Z<<=1,Z|=L,F++,!(F!==J&&(Q!==0||R!==0))&&(P=this.mul(P,Y[Z]),F=0,Z=0)}X=26}return P},f.prototype.convertTo=function(K){var C=K.umod(this.m);return C===K?C.clone():C},f.prototype.convertFrom=function(K){var C=K.clone();return C.red=null,C},H.mont=function(K){return new P0(K)};function P0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(P0,f),P0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},P0.prototype.convertFrom=function(K){var C=this.imod(K.mul(this.rinv));return C.red=null,C},P0.prototype.imul=function(K,C){if(K.isZero()||C.isZero())return K.words[0]=0,K.length=1,K;var J=K.imul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.mul=function(K,C){if(K.isZero()||C.isZero())return new H(0)._forceRed(this);var J=K.mul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.invm=function(K){var C=this.imod(K._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(typeof g>"u"||g,l)}),S6=F0((l)=>{var g=l;function E(S,H){if(Array.isArray(S))return S.slice();if(!S)return[];var U=[];if(typeof S!="string"){for(var k=0;k<S.length;k++)U[k]=S[k]|0;return U}if(H==="hex"){S=S.replace(/[^a-z0-9]+/ig,""),S.length%2!==0&&(S="0"+S);for(var k=0;k<S.length;k+=2)U.push(parseInt(S[k]+S[k+1],16))}else for(var k=0;k<S.length;k++){var z=S.charCodeAt(k),V=z>>8,$=z&255;V?U.push(V,$):U.push($)}return U}g.toArray=E;function M(S){return S.length===1?"0"+S:S}g.zero2=M;function j(S){for(var H="",U=0;U<S.length;U++)H+=M(S[U].toString(16));return H}g.toHex=j,g.encode=function(S,H){return H==="hex"?j(S):S}}),T5=F0((l)=>{var g=l,E=I5(),M=O5(),j=S6();g.assert=M,g.toArray=j.toArray,g.zero2=j.zero2,g.toHex=j.toHex,g.encode=j.encode;function S(V,$,T){var N=new Array(Math.max(V.bitLength(),T)+1);N.fill(0);for(var W=1<<$+1,D=V.clone(),I=0;I<N.length;I++){var v,x=D.andln(W-1);D.isOdd()?(x>(W>>1)-1?v=(W>>1)-x:v=x,D.isubn(v)):v=0,N[I]=v,D.iushrn(1)}return N}g.getNAF=S;function H(V,$){var T=[[],[]];V=V.clone(),$=$.clone();for(var N=0,W=0,D;V.cmpn(-N)>0||$.cmpn(-W)>0;){var I=V.andln(3)+N&3,v=$.andln(3)+W&3;I===3&&(I=-1),v===3&&(v=-1);var x;(I&1)===0?x=0:(D=V.andln(7)+N&7,(D===3||D===5)&&v===2?x=-I:x=I),T[0].push(x);var A;(v&1)===0?A=0:(D=$.andln(7)+W&7,(D===3||D===5)&&I===2?A=-v:A=v),T[1].push(A),2*N===x+1&&(N=1-N),2*W===A+1&&(W=1-W),V.iushrn(1),$.iushrn(1)}return T}g.getJSF=H;function U(V,$,T){var N="_"+$;V.prototype[$]=function(){return this[N]!==void 0?this[N]:this[N]=T.call(this)}}g.cachedProperty=U;function k(V){return typeof V=="string"?g.toArray(V,"hex"):V}g.parseBytes=k;function z(V){return new E(V,"hex","le")}g.intFromLE=z}),Y9=F0((l,g)=>{var E=I5(),M=T5(),j=M.getNAF,S=M.getJSF,H=M.assert;function U(z,V){this.type=z,this.p=new E(V.p,16),this.red=V.prime?E.red(V.prime):E.mont(this.p),this.zero=new E(0).toRed(this.red),this.one=new E(1).toRed(this.red),this.two=new E(2).toRed(this.red),this.n=V.n&&new E(V.n,16),this.g=V.g&&this.pointFromJSON(V.g,V.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 $=this.n&&this.p.div(this.n);!$||$.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}g.exports=U,U.prototype.point=function(){throw new Error("Not implemented")},U.prototype.validate=function(){throw new Error("Not implemented")},U.prototype._fixedNafMul=function(z,V){H(z.precomputed);var $=z._getDoubles(),T=j(V,1,this._bitLength),N=(1<<$.step+1)-($.step%2===0?2:1);N/=3;var W=[],D,I;for(D=0;D<T.length;D+=$.step){I=0;for(var v=D+$.step-1;v>=D;v--)I=(I<<1)+T[v];W.push(I)}for(var x=this.jpoint(null,null,null),A=this.jpoint(null,null,null),y=N;y>0;y--){for(D=0;D<W.length;D++)I=W[D],I===y?A=A.mixedAdd($.points[D]):I===-y&&(A=A.mixedAdd($.points[D].neg()));x=x.add(A)}return x.toP()},U.prototype._wnafMul=function(z,V){var $=4,T=z._getNAFPoints($);$=T.wnd;for(var N=T.points,W=j(V,$,this._bitLength),D=this.jpoint(null,null,null),I=W.length-1;I>=0;I--){for(var v=0;I>=0&&W[I]===0;I--)v++;if(I>=0&&v++,D=D.dblp(v),I<0)break;var x=W[I];H(x!==0),z.type==="affine"?x>0?D=D.mixedAdd(N[x-1>>1]):D=D.mixedAdd(N[-x-1>>1].neg()):x>0?D=D.add(N[x-1>>1]):D=D.add(N[-x-1>>1].neg())}return z.type==="affine"?D.toP():D},U.prototype._wnafMulAdd=function(z,V,$,T,N){var W=this._wnafT1,D=this._wnafT2,I=this._wnafT3,v=0,x,A,y;for(x=0;x<T;x++){y=V[x];var p=y._getNAFPoints(z);W[x]=p.wnd,D[x]=p.points}for(x=T-1;x>=1;x-=2){var c=x-1,n=x;if(W[c]!==1||W[n]!==1){I[c]=j($[c],W[c],this._bitLength),I[n]=j($[n],W[n],this._bitLength),v=Math.max(I[c].length,v),v=Math.max(I[n].length,v);continue}var i=[V[c],null,null,V[n]];V[c].y.cmp(V[n].y)===0?(i[1]=V[c].add(V[n]),i[2]=V[c].toJ().mixedAdd(V[n].neg())):V[c].y.cmp(V[n].y.redNeg())===0?(i[1]=V[c].toJ().mixedAdd(V[n]),i[2]=V[c].add(V[n].neg())):(i[1]=V[c].toJ().mixedAdd(V[n]),i[2]=V[c].toJ().mixedAdd(V[n].neg()));var Y0=[-3,-1,-5,-7,0,7,5,1,3],f=S($[c],$[n]);for(v=Math.max(f[0].length,v),I[c]=new Array(v),I[n]=new Array(v),A=0;A<v;A++){var P0=f[0][A]|0,K=f[1][A]|0;I[c][A]=Y0[(P0+1)*3+(K+1)],I[n][A]=0,D[c]=i}}var C=this.jpoint(null,null,null),J=this._wnafT4;for(x=v;x>=0;x--){for(var Y=0;x>=0;){var Q=!0;for(A=0;A<T;A++)J[A]=I[A][x]|0,J[A]!==0&&(Q=!1);if(!Q)break;Y++,x--}if(x>=0&&Y++,C=C.dblp(Y),x<0)break;for(A=0;A<T;A++){var P=J[A];P!==0&&(P>0?y=D[A][P-1>>1]:P<0&&(y=D[A][-P-1>>1].neg()),y.type==="affine"?C=C.mixedAdd(y):C=C.add(y))}}for(x=0;x<T;x++)D[x]=null;return N?C:C.toP()};function k(z,V){this.curve=z,this.type=V,this.precomputed=null}U.BasePoint=k,k.prototype.eq=function(){throw new Error("Not implemented")},k.prototype.validate=function(){return this.curve.validate(this)},U.prototype.decodePoint=function(z,V){z=M.toArray(z,V);var $=this.p.byteLength();if((z[0]===4||z[0]===6||z[0]===7)&&z.length-1===2*$){z[0]===6?H(z[z.length-1]%2===0):z[0]===7&&H(z[z.length-1]%2===1);var T=this.point(z.slice(1,1+$),z.slice(1+$,1+2*$));return T}else if((z[0]===2||z[0]===3)&&z.length-1===$)return this.pointFromX(z.slice(1,1+$),z[0]===3);throw new Error("Unknown point format")},k.prototype.encodeCompressed=function(z){return this.encode(z,!0)},k.prototype._encode=function(z){var V=this.curve.p.byteLength(),$=this.getX().toArray("be",V);return z?[this.getY().isEven()?2:3].concat($):[4].concat($,this.getY().toArray("be",V))},k.prototype.encode=function(z,V){return M.encode(this._encode(V),z)},k.prototype.precompute=function(z){if(this.precomputed)return this;var V={doubles:null,naf:null,beta:null};return V.naf=this._getNAFPoints(8),V.doubles=this._getDoubles(4,z),V.beta=this._getBeta(),this.precomputed=V,this},k.prototype._hasDoubles=function(z){if(!this.precomputed)return!1;var V=this.precomputed.doubles;return V?V.points.length>=Math.ceil((z.bitLength()+1)/V.step):!1},k.prototype._getDoubles=function(z,V){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var $=[this],T=this,N=0;N<V;N+=z){for(var W=0;W<z;W++)T=T.dbl();$.push(T)}return{step:z,points:$}},k.prototype._getNAFPoints=function(z){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var V=[this],$=(1<<z)-1,T=$===1?null:this.dbl(),N=1;N<$;N++)V[N]=V[N-1].add(T);return{wnd:z,points:V}},k.prototype._getBeta=function(){return null},k.prototype.dblp=function(z){for(var V=this,$=0;$<z;$++)V=V.dbl();return V}}),e7=F0((l,g)=>{var E=T5(),M=I5(),j=p0(),S=Y9(),H=E.assert;function U(V){S.call(this,"short",V),this.a=new M(V.a,16).toRed(this.red),this.b=new M(V.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(V),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}j(U,S),g.exports=U,U.prototype._getEndomorphism=function(V){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var $,T;if(V.beta)$=new M(V.beta,16).toRed(this.red);else{var N=this._getEndoRoots(this.p);$=N[0].cmp(N[1])<0?N[0]:N[1],$=$.toRed(this.red)}if(V.lambda)T=new M(V.lambda,16);else{var W=this._getEndoRoots(this.n);this.g.mul(W[0]).x.cmp(this.g.x.redMul($))===0?T=W[0]:(T=W[1],H(this.g.mul(T).x.cmp(this.g.x.redMul($))===0))}var D;return V.basis?D=V.basis.map(function(I){return{a:new M(I.a,16),b:new M(I.b,16)}}):D=this._getEndoBasis(T),{beta:$,lambda:T,basis:D}}},U.prototype._getEndoRoots=function(V){var $=V===this.p?this.red:M.mont(V),T=new M(2).toRed($).redInvm(),N=T.redNeg(),W=new M(3).toRed($).redNeg().redSqrt().redMul(T),D=N.redAdd(W).fromRed(),I=N.redSub(W).fromRed();return[D,I]},U.prototype._getEndoBasis=function(V){for(var $=this.n.ushrn(Math.floor(this.n.bitLength()/2)),T=V,N=this.n.clone(),W=new M(1),D=new M(0),I=new M(0),v=new M(1),x,A,y,p,c,n,i,Y0=0,f,P0;T.cmpn(0)!==0;){var K=N.div(T);f=N.sub(K.mul(T)),P0=I.sub(K.mul(W));var C=v.sub(K.mul(D));if(!y&&f.cmp($)<0)x=i.neg(),A=W,y=f.neg(),p=P0;else if(y&&++Y0===2)break;i=f,N=T,T=f,I=W,W=P0,v=D,D=C}c=f.neg(),n=P0;var J=y.sqr().add(p.sqr()),Y=c.sqr().add(n.sqr());return Y.cmp(J)>=0&&(c=x,n=A),y.negative&&(y=y.neg(),p=p.neg()),c.negative&&(c=c.neg(),n=n.neg()),[{a:y,b:p},{a:c,b:n}]},U.prototype._endoSplit=function(V){var $=this.endo.basis,T=$[0],N=$[1],W=N.b.mul(V).divRound(this.n),D=T.b.neg().mul(V).divRound(this.n),I=W.mul(T.a),v=D.mul(N.a),x=W.mul(T.b),A=D.mul(N.b),y=V.sub(I).sub(v),p=x.add(A).neg();return{k1:y,k2:p}},U.prototype.pointFromX=function(V,$){V=new M(V,16),V.red||(V=V.toRed(this.red));var T=V.redSqr().redMul(V).redIAdd(V.redMul(this.a)).redIAdd(this.b),N=T.redSqrt();if(N.redSqr().redSub(T).cmp(this.zero)!==0)throw new Error("invalid point");var W=N.fromRed().isOdd();return($&&!W||!$&&W)&&(N=N.redNeg()),this.point(V,N)},U.prototype.validate=function(V){if(V.inf)return!0;var{x:$,y:T}=V,N=this.a.redMul($),W=$.redSqr().redMul($).redIAdd(N).redIAdd(this.b);return T.redSqr().redISub(W).cmpn(0)===0},U.prototype._endoWnafMulAdd=function(V,$,T){for(var N=this._endoWnafT1,W=this._endoWnafT2,D=0;D<V.length;D++){var I=this._endoSplit($[D]),v=V[D],x=v._getBeta();I.k1.negative&&(I.k1.ineg(),v=v.neg(!0)),I.k2.negative&&(I.k2.ineg(),x=x.neg(!0)),N[D*2]=v,N[D*2+1]=x,W[D*2]=I.k1,W[D*2+1]=I.k2}for(var A=this._wnafMulAdd(1,N,W,D*2,T),y=0;y<D*2;y++)N[y]=null,W[y]=null;return A};function k(V,$,T,N){S.BasePoint.call(this,V,"affine"),$===null&&T===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new M($,16),this.y=new M(T,16),N&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}j(k,S.BasePoint),U.prototype.point=function(V,$,T){return new k(this,V,$,T)},U.prototype.pointFromJSON=function(V,$){return k.fromJSON(this,V,$)},k.prototype._getBeta=function(){if(this.curve.endo){var V=this.precomputed;if(V&&V.beta)return V.beta;var $=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(V){var T=this.curve,N=function(W){return T.point(W.x.redMul(T.endo.beta),W.y)};V.beta=$,$.precomputed={beta:null,naf:V.naf&&{wnd:V.naf.wnd,points:V.naf.points.map(N)},doubles:V.doubles&&{step:V.doubles.step,points:V.doubles.points.map(N)}}}return $}},k.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},k.fromJSON=function(V,$,T){typeof $=="string"&&($=JSON.parse($));var N=V.point($[0],$[1],T);if(!$[2])return N;function W(I){return V.point(I[0],I[1],T)}var D=$[2];return N.precomputed={beta:null,doubles:D.doubles&&{step:D.doubles.step,points:[N].concat(D.doubles.points.map(W))},naf:D.naf&&{wnd:D.naf.wnd,points:[N].concat(D.naf.points.map(W))}},N},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(V){if(this.inf)return V;if(V.inf)return this;if(this.eq(V))return this.dbl();if(this.neg().eq(V))return this.curve.point(null,null);if(this.x.cmp(V.x)===0)return this.curve.point(null,null);var $=this.y.redSub(V.y);$.cmpn(0)!==0&&($=$.redMul(this.x.redSub(V.x).redInvm()));var T=$.redSqr().redISub(this.x).redISub(V.x),N=$.redMul(this.x.redSub(T)).redISub(this.y);return this.curve.point(T,N)},k.prototype.dbl=function(){if(this.inf)return this;var V=this.y.redAdd(this.y);if(V.cmpn(0)===0)return this.curve.point(null,null);var $=this.curve.a,T=this.x.redSqr(),N=V.redInvm(),W=T.redAdd(T).redIAdd(T).redIAdd($).redMul(N),D=W.redSqr().redISub(this.x.redAdd(this.x)),I=W.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,I)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(V){return V=new M(V,16),this.isInfinity()?this:this._hasDoubles(V)?this.curve._fixedNafMul(this,V):this.curve.endo?this.curve._endoWnafMulAdd([this],[V]):this.curve._wnafMul(this,V)},k.prototype.mulAdd=function(V,$,T){var N=[this,$],W=[V,T];return this.curve.endo?this.curve._endoWnafMulAdd(N,W):this.curve._wnafMulAdd(1,N,W,2)},k.prototype.jmulAdd=function(V,$,T){var N=[this,$],W=[V,T];return this.curve.endo?this.curve._endoWnafMulAdd(N,W,!0):this.curve._wnafMulAdd(1,N,W,2,!0)},k.prototype.eq=function(V){return this===V||this.inf===V.inf&&(this.inf||this.x.cmp(V.x)===0&&this.y.cmp(V.y)===0)},k.prototype.neg=function(V){if(this.inf)return this;var $=this.curve.point(this.x,this.y.redNeg());if(V&&this.precomputed){var T=this.precomputed,N=function(W){return W.neg()};$.precomputed={naf:T.naf&&{wnd:T.naf.wnd,points:T.naf.points.map(N)},doubles:T.doubles&&{step:T.doubles.step,points:T.doubles.points.map(N)}}}return $},k.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var V=this.curve.jpoint(this.x,this.y,this.curve.one);return V};function z(V,$,T,N){S.BasePoint.call(this,V,"jacobian"),$===null&&T===null&&N===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new M(0)):(this.x=new M($,16),this.y=new M(T,16),this.z=new M(N,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}j(z,S.BasePoint),U.prototype.jpoint=function(V,$,T){return new z(this,V,$,T)},z.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var V=this.z.redInvm(),$=V.redSqr(),T=this.x.redMul($),N=this.y.redMul($).redMul(V);return this.curve.point(T,N)},z.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},z.prototype.add=function(V){if(this.isInfinity())return V;if(V.isInfinity())return this;var $=V.z.redSqr(),T=this.z.redSqr(),N=this.x.redMul($),W=V.x.redMul(T),D=this.y.redMul($.redMul(V.z)),I=V.y.redMul(T.redMul(this.z)),v=N.redSub(W),x=D.redSub(I);if(v.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=v.redSqr(),y=A.redMul(v),p=N.redMul(A),c=x.redSqr().redIAdd(y).redISub(p).redISub(p),n=x.redMul(p.redISub(c)).redISub(D.redMul(y)),i=this.z.redMul(V.z).redMul(v);return this.curve.jpoint(c,n,i)},z.prototype.mixedAdd=function(V){if(this.isInfinity())return V.toJ();if(V.isInfinity())return this;var $=this.z.redSqr(),T=this.x,N=V.x.redMul($),W=this.y,D=V.y.redMul($).redMul(this.z),I=T.redSub(N),v=W.redSub(D);if(I.cmpn(0)===0)return v.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=I.redSqr(),A=x.redMul(I),y=T.redMul(x),p=v.redSqr().redIAdd(A).redISub(y).redISub(y),c=v.redMul(y.redISub(p)).redISub(W.redMul(A)),n=this.z.redMul(I);return this.curve.jpoint(p,c,n)},z.prototype.dblp=function(V){if(V===0)return this;if(this.isInfinity())return this;if(!V)return this.dbl();var $;if(this.curve.zeroA||this.curve.threeA){var T=this;for($=0;$<V;$++)T=T.dbl();return T}var N=this.curve.a,W=this.curve.tinv,D=this.x,I=this.y,v=this.z,x=v.redSqr().redSqr(),A=I.redAdd(I);for($=0;$<V;$++){var y=D.redSqr(),p=A.redSqr(),c=p.redSqr(),n=y.redAdd(y).redIAdd(y).redIAdd(N.redMul(x)),i=D.redMul(p),Y0=n.redSqr().redISub(i.redAdd(i)),f=i.redISub(Y0),P0=n.redMul(f);P0=P0.redIAdd(P0).redISub(c);var K=A.redMul(v);$+1<V&&(x=x.redMul(c)),D=Y0,v=K,A=P0}return this.curve.jpoint(D,A.redMul(W),v)},z.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},z.prototype._zeroDbl=function(){var V,$,T;if(this.zOne){var N=this.x.redSqr(),W=this.y.redSqr(),D=W.redSqr(),I=this.x.redAdd(W).redSqr().redISub(N).redISub(D);I=I.redIAdd(I);var v=N.redAdd(N).redIAdd(N),x=v.redSqr().redISub(I).redISub(I),A=D.redIAdd(D);A=A.redIAdd(A),A=A.redIAdd(A),V=x,$=v.redMul(I.redISub(x)).redISub(A),T=this.y.redAdd(this.y)}else{var y=this.x.redSqr(),p=this.y.redSqr(),c=p.redSqr(),n=this.x.redAdd(p).redSqr().redISub(y).redISub(c);n=n.redIAdd(n);var i=y.redAdd(y).redIAdd(y),Y0=i.redSqr(),f=c.redIAdd(c);f=f.redIAdd(f),f=f.redIAdd(f),V=Y0.redISub(n).redISub(n),$=i.redMul(n.redISub(V)).redISub(f),T=this.y.redMul(this.z),T=T.redIAdd(T)}return this.curve.jpoint(V,$,T)},z.prototype._threeDbl=function(){var V,$,T;if(this.zOne){var N=this.x.redSqr(),W=this.y.redSqr(),D=W.redSqr(),I=this.x.redAdd(W).redSqr().redISub(N).redISub(D);I=I.redIAdd(I);var v=N.redAdd(N).redIAdd(N).redIAdd(this.curve.a),x=v.redSqr().redISub(I).redISub(I);V=x;var A=D.redIAdd(D);A=A.redIAdd(A),A=A.redIAdd(A),$=v.redMul(I.redISub(x)).redISub(A),T=this.y.redAdd(this.y)}else{var y=this.z.redSqr(),p=this.y.redSqr(),c=this.x.redMul(p),n=this.x.redSub(y).redMul(this.x.redAdd(y));n=n.redAdd(n).redIAdd(n);var i=c.redIAdd(c);i=i.redIAdd(i);var Y0=i.redAdd(i);V=n.redSqr().redISub(Y0),T=this.y.redAdd(this.z).redSqr().redISub(p).redISub(y);var f=p.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f),$=n.redMul(i.redISub(V)).redISub(f)}return this.curve.jpoint(V,$,T)},z.prototype._dbl=function(){var V=this.curve.a,$=this.x,T=this.y,N=this.z,W=N.redSqr().redSqr(),D=$.redSqr(),I=T.redSqr(),v=D.redAdd(D).redIAdd(D).redIAdd(V.redMul(W)),x=$.redAdd($);x=x.redIAdd(x);var A=x.redMul(I),y=v.redSqr().redISub(A.redAdd(A)),p=A.redISub(y),c=I.redSqr();c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var n=v.redMul(p).redISub(c),i=T.redAdd(T).redMul(N);return this.curve.jpoint(y,n,i)},z.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var V=this.x.redSqr(),$=this.y.redSqr(),T=this.z.redSqr(),N=$.redSqr(),W=V.redAdd(V).redIAdd(V),D=W.redSqr(),I=this.x.redAdd($).redSqr().redISub(V).redISub(N);I=I.redIAdd(I),I=I.redAdd(I).redIAdd(I),I=I.redISub(D);var v=I.redSqr(),x=N.redIAdd(N);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var A=W.redIAdd(I).redSqr().redISub(D).redISub(v).redISub(x),y=$.redMul(A);y=y.redIAdd(y),y=y.redIAdd(y);var p=this.x.redMul(v).redISub(y);p=p.redIAdd(p),p=p.redIAdd(p);var c=this.y.redMul(A.redMul(x.redISub(A)).redISub(I.redMul(v)));c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var n=this.z.redAdd(I).redSqr().redISub(T).redISub(v);return this.curve.jpoint(p,c,n)},z.prototype.mul=function(V,$){return V=new M(V,$),this.curve._wnafMul(this,V)},z.prototype.eq=function(V){if(V.type==="affine")return this.eq(V.toJ());if(this===V)return!0;var $=this.z.redSqr(),T=V.z.redSqr();if(this.x.redMul(T).redISub(V.x.redMul($)).cmpn(0)!==0)return!1;var N=$.redMul(this.z),W=T.redMul(V.z);return this.y.redMul(W).redISub(V.y.redMul(N)).cmpn(0)===0},z.prototype.eqXToP=function(V){var $=this.z.redSqr(),T=V.toRed(this.curve.red).redMul($);if(this.x.cmp(T)===0)return!0;for(var N=V.clone(),W=this.curve.redN.redMul($);;){if(N.iadd(this.curve.n),N.cmp(this.curve.p)>=0)return!1;if(T.redIAdd(W),this.x.cmp(T)===0)return!0}},z.prototype.inspect=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)+">"},z.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),K8=F0((l,g)=>{var E=I5(),M=p0(),j=Y9(),S=T5();function H(k){j.call(this,"mont",k),this.a=new E(k.a,16).toRed(this.red),this.b=new E(k.b,16).toRed(this.red),this.i4=new E(4).toRed(this.red).redInvm(),this.two=new E(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}M(H,j),g.exports=H,H.prototype.validate=function(k){var z=k.normalize().x,V=z.redSqr(),$=V.redMul(z).redAdd(V.redMul(this.a)).redAdd(z),T=$.redSqrt();return T.redSqr().cmp($)===0};function U(k,z,V){j.BasePoint.call(this,k,"projective"),z===null&&V===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new E(z,16),this.z=new E(V,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}M(U,j.BasePoint),H.prototype.decodePoint=function(k,z){return this.point(S.toArray(k,z),1)},H.prototype.point=function(k,z){return new U(this,k,z)},H.prototype.pointFromJSON=function(k){return U.fromJSON(this,k)},U.prototype.precompute=function(){},U.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},U.fromJSON=function(k,z){return new U(k,z[0],z[1]||k.one)},U.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},U.prototype.isInfinity=function(){return this.z.cmpn(0)===0},U.prototype.dbl=function(){var k=this.x.redAdd(this.z),z=k.redSqr(),V=this.x.redSub(this.z),$=V.redSqr(),T=z.redSub($),N=z.redMul($),W=T.redMul($.redAdd(this.curve.a24.redMul(T)));return this.curve.point(N,W)},U.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},U.prototype.diffAdd=function(k,z){var V=this.x.redAdd(this.z),$=this.x.redSub(this.z),T=k.x.redAdd(k.z),N=k.x.redSub(k.z),W=N.redMul(V),D=T.redMul($),I=z.z.redMul(W.redAdd(D).redSqr()),v=z.x.redMul(W.redISub(D).redSqr());return this.curve.point(I,v)},U.prototype.mul=function(k){for(var z=k.clone(),V=this,$=this.curve.point(null,null),T=this,N=[];z.cmpn(0)!==0;z.iushrn(1))N.push(z.andln(1));for(var W=N.length-1;W>=0;W--)N[W]===0?(V=V.diffAdd($,T),$=$.dbl()):($=V.diffAdd($,T),V=V.dbl());return $},U.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},U.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},U.prototype.eq=function(k){return this.getX().cmp(k.getX())===0},U.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},U.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),X8=F0((l,g)=>{var E=T5(),M=I5(),j=p0(),S=Y9(),H=E.assert;function U(z){this.twisted=(z.a|0)!==1,this.mOneA=this.twisted&&(z.a|0)===-1,this.extended=this.mOneA,S.call(this,"edwards",z),this.a=new M(z.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new M(z.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new M(z.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),H(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(z.c|0)===1}j(U,S),g.exports=U,U.prototype._mulA=function(z){return this.mOneA?z.redNeg():this.a.redMul(z)},U.prototype._mulC=function(z){return this.oneC?z:this.c.redMul(z)},U.prototype.jpoint=function(z,V,$,T){return this.point(z,V,$,T)},U.prototype.pointFromX=function(z,V){z=new M(z,16),z.red||(z=z.toRed(this.red));var $=z.redSqr(),T=this.c2.redSub(this.a.redMul($)),N=this.one.redSub(this.c2.redMul(this.d).redMul($)),W=T.redMul(N.redInvm()),D=W.redSqrt();if(D.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");var I=D.fromRed().isOdd();return(V&&!I||!V&&I)&&(D=D.redNeg()),this.point(z,D)},U.prototype.pointFromY=function(z,V){z=new M(z,16),z.red||(z=z.toRed(this.red));var $=z.redSqr(),T=$.redSub(this.c2),N=$.redMul(this.d).redMul(this.c2).redSub(this.a),W=T.redMul(N.redInvm());if(W.cmp(this.zero)===0){if(V)throw new Error("invalid point");return this.point(this.zero,z)}var D=W.redSqrt();if(D.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");return D.fromRed().isOdd()!==V&&(D=D.redNeg()),this.point(D,z)},U.prototype.validate=function(z){if(z.isInfinity())return!0;z.normalize();var V=z.x.redSqr(),$=z.y.redSqr(),T=V.redMul(this.a).redAdd($),N=this.c2.redMul(this.one.redAdd(this.d.redMul(V).redMul($)));return T.cmp(N)===0};function k(z,V,$,T,N){S.BasePoint.call(this,z,"projective"),V===null&&$===null&&T===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new M(V,16),this.y=new M($,16),this.z=T?new M(T,16):this.curve.one,this.t=N&&new M(N,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}j(k,S.BasePoint),U.prototype.pointFromJSON=function(z){return k.fromJSON(this,z)},U.prototype.point=function(z,V,$,T){return new k(this,z,V,$,T)},k.fromJSON=function(z,V){return new k(z,V[0],V[1],V[2])},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},k.prototype._extDbl=function(){var z=this.x.redSqr(),V=this.y.redSqr(),$=this.z.redSqr();$=$.redIAdd($);var T=this.curve._mulA(z),N=this.x.redAdd(this.y).redSqr().redISub(z).redISub(V),W=T.redAdd(V),D=W.redSub($),I=T.redSub(V),v=N.redMul(D),x=W.redMul(I),A=N.redMul(I),y=D.redMul(W);return this.curve.point(v,x,y,A)},k.prototype._projDbl=function(){var z=this.x.redAdd(this.y).redSqr(),V=this.x.redSqr(),$=this.y.redSqr(),T,N,W,D,I,v;if(this.curve.twisted){D=this.curve._mulA(V);var x=D.redAdd($);this.zOne?(T=z.redSub(V).redSub($).redMul(x.redSub(this.curve.two)),N=x.redMul(D.redSub($)),W=x.redSqr().redSub(x).redSub(x)):(I=this.z.redSqr(),v=x.redSub(I).redISub(I),T=z.redSub(V).redISub($).redMul(v),N=x.redMul(D.redSub($)),W=x.redMul(v))}else D=V.redAdd($),I=this.curve._mulC(this.z).redSqr(),v=D.redSub(I).redSub(I),T=this.curve._mulC(z.redISub(D)).redMul(v),N=this.curve._mulC(D).redMul(V.redISub($)),W=D.redMul(v);return this.curve.point(T,N,W)},k.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},k.prototype._extAdd=function(z){var V=this.y.redSub(this.x).redMul(z.y.redSub(z.x)),$=this.y.redAdd(this.x).redMul(z.y.redAdd(z.x)),T=this.t.redMul(this.curve.dd).redMul(z.t),N=this.z.redMul(z.z.redAdd(z.z)),W=$.redSub(V),D=N.redSub(T),I=N.redAdd(T),v=$.redAdd(V),x=W.redMul(D),A=I.redMul(v),y=W.redMul(v),p=D.redMul(I);return this.curve.point(x,A,p,y)},k.prototype._projAdd=function(z){var V=this.z.redMul(z.z),$=V.redSqr(),T=this.x.redMul(z.x),N=this.y.redMul(z.y),W=this.curve.d.redMul(T).redMul(N),D=$.redSub(W),I=$.redAdd(W),v=this.x.redAdd(this.y).redMul(z.x.redAdd(z.y)).redISub(T).redISub(N),x=V.redMul(D).redMul(v),A,y;return this.curve.twisted?(A=V.redMul(I).redMul(N.redSub(this.curve._mulA(T))),y=D.redMul(I)):(A=V.redMul(I).redMul(N.redSub(T)),y=this.curve._mulC(D).redMul(I)),this.curve.point(x,A,y)},k.prototype.add=function(z){return this.isInfinity()?z:z.isInfinity()?this:this.curve.extended?this._extAdd(z):this._projAdd(z)},k.prototype.mul=function(z){return this._hasDoubles(z)?this.curve._fixedNafMul(this,z):this.curve._wnafMul(this,z)},k.prototype.mulAdd=function(z,V,$){return this.curve._wnafMulAdd(1,[this,V],[z,$],2,!1)},k.prototype.jmulAdd=function(z,V,$){return this.curve._wnafMulAdd(1,[this,V],[z,$],2,!0)},k.prototype.normalize=function(){if(this.zOne)return this;var z=this.z.redInvm();return this.x=this.x.redMul(z),this.y=this.y.redMul(z),this.t&&(this.t=this.t.redMul(z)),this.z=this.curve.one,this.zOne=!0,this},k.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},k.prototype.getX=function(){return this.normalize(),this.x.fromRed()},k.prototype.getY=function(){return this.normalize(),this.y.fromRed()},k.prototype.eq=function(z){return this===z||this.getX().cmp(z.getX())===0&&this.getY().cmp(z.getY())===0},k.prototype.eqXToP=function(z){var V=z.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(V)===0)return!0;for(var $=z.clone(),T=this.curve.redN.redMul(this.z);;){if($.iadd(this.curve.n),$.cmp(this.curve.p)>=0)return!1;if(V.redIAdd(T),this.x.cmp(V)===0)return!0}},k.prototype.toP=k.prototype.normalize,k.prototype.mixedAdd=k.prototype.add}),x6=F0((l)=>{var g=l;g.base=Y9(),g.short=e7(),g.mont=K8(),g.edwards=X8()}),D5=F0((l)=>{var g=O5(),E=p0();l.inherits=E;function M(C,J){return(C.charCodeAt(J)&64512)!==55296||J<0||J+1>=C.length?!1:(C.charCodeAt(J+1)&64512)===56320}function j(C,J){if(Array.isArray(C))return C.slice();if(!C)return[];var Y=[];if(typeof C=="string")if(J){if(J==="hex")for(C=C.replace(/[^a-z0-9]+/ig,""),C.length%2!==0&&(C="0"+C),P=0;P<C.length;P+=2)Y.push(parseInt(C[P]+C[P+1],16))}else for(var Q=0,P=0;P<C.length;P++){var Z=C.charCodeAt(P);Z<128?Y[Q++]=Z:Z<2048?(Y[Q++]=Z>>6|192,Y[Q++]=Z&63|128):M(C,P)?(Z=65536+((Z&1023)<<10)+(C.charCodeAt(++P)&1023),Y[Q++]=Z>>18|240,Y[Q++]=Z>>12&63|128,Y[Q++]=Z>>6&63|128,Y[Q++]=Z&63|128):(Y[Q++]=Z>>12|224,Y[Q++]=Z>>6&63|128,Y[Q++]=Z&63|128)}else for(P=0;P<C.length;P++)Y[P]=C[P]|0;return Y}l.toArray=j;function S(C){for(var J="",Y=0;Y<C.length;Y++)J+=k(C[Y].toString(16));return J}l.toHex=S;function H(C){var J=C>>>24|C>>>8&65280|C<<8&16711680|(C&255)<<24;return J>>>0}l.htonl=H;function U(C,J){for(var Y="",Q=0;Q<C.length;Q++){var P=C[Q];J==="little"&&(P=H(P)),Y+=z(P.toString(16))}return Y}l.toHex32=U;function k(C){return C.length===1?"0"+C:C}l.zero2=k;function z(C){return C.length===7?"0"+C:C.length===6?"00"+C:C.length===5?"000"+C:C.length===4?"0000"+C:C.length===3?"00000"+C:C.length===2?"000000"+C:C.length===1?"0000000"+C:C}l.zero8=z;function V(C,J,Y,Q){var P=Y-J;g(P%4===0);for(var Z=new Array(P/4),F=0,X=J;F<Z.length;F++,X+=4){var G;Q==="big"?G=C[X]<<24|C[X+1]<<16|C[X+2]<<8|C[X+3]:G=C[X+3]<<24|C[X+2]<<16|C[X+1]<<8|C[X],Z[F]=G>>>0}return Z}l.join32=V;function $(C,J){for(var Y=new Array(C.length*4),Q=0,P=0;Q<C.length;Q++,P+=4){var Z=C[Q];J==="big"?(Y[P]=Z>>>24,Y[P+1]=Z>>>16&255,Y[P+2]=Z>>>8&255,Y[P+3]=Z&255):(Y[P+3]=Z>>>24,Y[P+2]=Z>>>16&255,Y[P+1]=Z>>>8&255,Y[P]=Z&255)}return Y}l.split32=$;function T(C,J){return C>>>J|C<<32-J}l.rotr32=T;function N(C,J){return C<<J|C>>>32-J}l.rotl32=N;function W(C,J){return C+J>>>0}l.sum32=W;function D(C,J,Y){return C+J+Y>>>0}l.sum32_3=D;function I(C,J,Y,Q){return C+J+Y+Q>>>0}l.sum32_4=I;function v(C,J,Y,Q,P){return C+J+Y+Q+P>>>0}l.sum32_5=v;function x(C,J,Y,Q){var P=C[J],Z=C[J+1],F=Q+Z>>>0,X=(F<Q?1:0)+Y+P;C[J]=X>>>0,C[J+1]=F}l.sum64=x;function A(C,J,Y,Q){var P=J+Q>>>0,Z=(P<J?1:0)+C+Y;return Z>>>0}l.sum64_hi=A;function y(C,J,Y,Q){var P=J+Q;return P>>>0}l.sum64_lo=y;function p(C,J,Y,Q,P,Z,F,X){var G=0,R=J;R=R+Q>>>0,G+=R<J?1:0,R=R+Z>>>0,G+=R<Z?1:0,R=R+X>>>0,G+=R<X?1:0;var L=C+Y+P+F+G;return L>>>0}l.sum64_4_hi=p;function c(C,J,Y,Q,P,Z,F,X){var G=J+Q+Z+X;return G>>>0}l.sum64_4_lo=c;function n(C,J,Y,Q,P,Z,F,X,G,R){var L=0,_=J;_=_+Q>>>0,L+=_<J?1:0,_=_+Z>>>0,L+=_<Z?1:0,_=_+X>>>0,L+=_<X?1:0,_=_+R>>>0,L+=_<R?1:0;var s=C+Y+P+F+G+L;return s>>>0}l.sum64_5_hi=n;function i(C,J,Y,Q,P,Z,F,X,G,R){var L=J+Q+Z+X+R;return L>>>0}l.sum64_5_lo=i;function Y0(C,J,Y){var Q=J<<32-Y|C>>>Y;return Q>>>0}l.rotr64_hi=Y0;function f(C,J,Y){var Q=C<<32-Y|J>>>Y;return Q>>>0}l.rotr64_lo=f;function P0(C,J,Y){return C>>>Y}l.shr64_hi=P0;function K(C,J,Y){var Q=C<<32-Y|J>>>Y;return Q>>>0}l.shr64_lo=K}),s5=F0((l)=>{var g=D5(),E=O5();function M(){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}l.BlockHash=M,M.prototype.update=function(j,S){if(j=g.toArray(j,S),this.pending?this.pending=this.pending.concat(j):this.pending=j,this.pendingTotal+=j.length,this.pending.length>=this._delta8){j=this.pending;var H=j.length%this._delta8;this.pending=j.slice(j.length-H,j.length),this.pending.length===0&&(this.pending=null),j=g.join32(j,0,j.length-H,this.endian);for(var U=0;U<j.length;U+=this._delta32)this._update(j,U,U+this._delta32)}return this},M.prototype.digest=function(j){return this.update(this._pad()),E(this.pending===null),this._digest(j)},M.prototype._pad=function(){var j=this.pendingTotal,S=this._delta8,H=S-(j+this.padLength)%S,U=new Array(H+this.padLength);U[0]=128;for(var k=1;k<H;k++)U[k]=0;if(j<<=3,this.endian==="big"){for(var z=8;z<this.padLength;z++)U[k++]=0;U[k++]=0,U[k++]=0,U[k++]=0,U[k++]=0,U[k++]=j>>>24&255,U[k++]=j>>>16&255,U[k++]=j>>>8&255,U[k++]=j&255}else for(U[k++]=j&255,U[k++]=j>>>8&255,U[k++]=j>>>16&255,U[k++]=j>>>24&255,U[k++]=0,U[k++]=0,U[k++]=0,U[k++]=0,z=8;z<this.padLength;z++)U[k++]=0;return U}}),A6=F0((l)=>{var g=D5(),E=g.rotr32;function M($,T,N,W){if($===0)return j(T,N,W);if($===1||$===3)return H(T,N,W);if($===2)return S(T,N,W)}l.ft_1=M;function j($,T,N){return $&T^~$&N}l.ch32=j;function S($,T,N){return $&T^$&N^T&N}l.maj32=S;function H($,T,N){return $^T^N}l.p32=H;function U($){return E($,2)^E($,13)^E($,22)}l.s0_256=U;function k($){return E($,6)^E($,11)^E($,25)}l.s1_256=k;function z($){return E($,7)^E($,18)^$>>>3}l.g0_256=z;function V($){return E($,17)^E($,19)^$>>>10}l.g1_256=V}),C8=F0((l,g)=>{var E=D5(),M=s5(),j=A6(),S=E.rotl32,H=E.sum32,U=E.sum32_5,k=j.ft_1,z=M.BlockHash,V=[1518500249,1859775393,2400959708,3395469782];function $(){if(!(this instanceof $))return new $;z.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}E.inherits($,z),g.exports=$,$.blockSize=512,$.outSize=160,$.hmacStrength=80,$.padLength=64,$.prototype._update=function(T,N){for(var W=this.W,D=0;D<16;D++)W[D]=T[N+D];for(;D<W.length;D++)W[D]=S(W[D-3]^W[D-8]^W[D-14]^W[D-16],1);var I=this.h[0],v=this.h[1],x=this.h[2],A=this.h[3],y=this.h[4];for(D=0;D<W.length;D++){var p=~~(D/20),c=U(S(I,5),k(p,v,x,A),y,W[D],V[p]);y=A,A=x,x=S(v,30),v=I,I=c}this.h[0]=H(this.h[0],I),this.h[1]=H(this.h[1],v),this.h[2]=H(this.h[2],x),this.h[3]=H(this.h[3],A),this.h[4]=H(this.h[4],y)},$.prototype._digest=function(T){return T==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),v6=F0((l,g)=>{var E=D5(),M=s5(),j=A6(),S=O5(),H=E.sum32,U=E.sum32_4,k=E.sum32_5,z=j.ch32,V=j.maj32,$=j.s0_256,T=j.s1_256,N=j.g0_256,W=j.g1_256,D=M.BlockHash,I=[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 v(){if(!(this instanceof v))return new v;D.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}E.inherits(v,D),g.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(x,A){for(var y=this.W,p=0;p<16;p++)y[p]=x[A+p];for(;p<y.length;p++)y[p]=U(W(y[p-2]),y[p-7],N(y[p-15]),y[p-16]);var c=this.h[0],n=this.h[1],i=this.h[2],Y0=this.h[3],f=this.h[4],P0=this.h[5],K=this.h[6],C=this.h[7];for(S(this.k.length===y.length),p=0;p<y.length;p++){var J=k(C,T(f),z(f,P0,K),this.k[p],y[p]),Y=H($(c),V(c,n,i));C=K,K=P0,P0=f,f=H(Y0,J),Y0=i,i=n,n=c,c=H(J,Y)}this.h[0]=H(this.h[0],c),this.h[1]=H(this.h[1],n),this.h[2]=H(this.h[2],i),this.h[3]=H(this.h[3],Y0),this.h[4]=H(this.h[4],f),this.h[5]=H(this.h[5],P0),this.h[6]=H(this.h[6],K),this.h[7]=H(this.h[7],C)},v.prototype._digest=function(x){return x==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),Y8=F0((l,g)=>{var E=D5(),M=v6();function j(){if(!(this instanceof j))return new j;M.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}E.inherits(j,M),g.exports=j,j.blockSize=512,j.outSize=224,j.hmacStrength=192,j.padLength=64,j.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,7),"big"):E.split32(this.h.slice(0,7),"big")}}),M6=F0((l,g)=>{var E=D5(),M=s5(),j=O5(),S=E.rotr64_hi,H=E.rotr64_lo,U=E.shr64_hi,k=E.shr64_lo,z=E.sum64,V=E.sum64_hi,$=E.sum64_lo,T=E.sum64_4_hi,N=E.sum64_4_lo,W=E.sum64_5_hi,D=E.sum64_5_lo,I=M.BlockHash,v=[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 x(){if(!(this instanceof x))return new x;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}E.inherits(x,I),g.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(Y,Q){for(var P=this.W,Z=0;Z<32;Z++)P[Z]=Y[Q+Z];for(;Z<P.length;Z+=2){var F=C(P[Z-4],P[Z-3]),X=J(P[Z-4],P[Z-3]),G=P[Z-14],R=P[Z-13],L=P0(P[Z-30],P[Z-29]),_=K(P[Z-30],P[Z-29]),s=P[Z-32],r=P[Z-31];P[Z]=T(F,X,G,R,L,_,s,r),P[Z+1]=N(F,X,G,R,L,_,s,r)}},x.prototype._update=function(Y,Q){this._prepareBlock(Y,Q);var P=this.W,Z=this.h[0],F=this.h[1],X=this.h[2],G=this.h[3],R=this.h[4],L=this.h[5],_=this.h[6],s=this.h[7],r=this.h[8],C0=this.h[9],u=this.h[10],d=this.h[11],a=this.h[12],V0=this.h[13],K0=this.h[14],Q0=this.h[15];j(this.k.length===P.length);for(var w=0;w<P.length;w+=2){var q=K0,m=Q0,e=Y0(r,C0),X0=f(r,C0),t=A(r,C0,u,d,a,V0),_0=y(r,C0,u,d,a,V0),H0=this.k[w],G0=this.k[w+1],w0=P[w],W0=P[w+1],Z0=W(q,m,e,X0,t,_0,H0,G0,w0,W0),c0=D(q,m,e,X0,t,_0,H0,G0,w0,W0);q=n(Z,F),m=i(Z,F),e=p(Z,F,X,G,R,L),X0=c(Z,F,X,G,R,L);var O=V(q,m,e,X0),B=$(q,m,e,X0);K0=a,Q0=V0,a=u,V0=d,u=r,d=C0,r=V(_,s,Z0,c0),C0=$(s,s,Z0,c0),_=R,s=L,R=X,L=G,X=Z,G=F,Z=V(Z0,c0,O,B),F=$(Z0,c0,O,B)}z(this.h,0,Z,F),z(this.h,2,X,G),z(this.h,4,R,L),z(this.h,6,_,s),z(this.h,8,r,C0),z(this.h,10,u,d),z(this.h,12,a,V0),z(this.h,14,K0,Q0)},x.prototype._digest=function(Y){return Y==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")};function A(Y,Q,P,Z,F){var X=Y&P^~Y&F;return X<0&&(X+=4294967296),X}function y(Y,Q,P,Z,F,X){var G=Q&Z^~Q&X;return G<0&&(G+=4294967296),G}function p(Y,Q,P,Z,F){var X=Y&P^Y&F^P&F;return X<0&&(X+=4294967296),X}function c(Y,Q,P,Z,F,X){var G=Q&Z^Q&X^Z&X;return G<0&&(G+=4294967296),G}function n(Y,Q){var P=S(Y,Q,28),Z=S(Q,Y,2),F=S(Q,Y,7),X=P^Z^F;return X<0&&(X+=4294967296),X}function i(Y,Q){var P=H(Y,Q,28),Z=H(Q,Y,2),F=H(Q,Y,7),X=P^Z^F;return X<0&&(X+=4294967296),X}function Y0(Y,Q){var P=S(Y,Q,14),Z=S(Y,Q,18),F=S(Q,Y,9),X=P^Z^F;return X<0&&(X+=4294967296),X}function f(Y,Q){var P=H(Y,Q,14),Z=H(Y,Q,18),F=H(Q,Y,9),X=P^Z^F;return X<0&&(X+=4294967296),X}function P0(Y,Q){var P=S(Y,Q,1),Z=S(Y,Q,8),F=U(Y,Q,7),X=P^Z^F;return X<0&&(X+=4294967296),X}function K(Y,Q){var P=H(Y,Q,1),Z=H(Y,Q,8),F=k(Y,Q,7),X=P^Z^F;return X<0&&(X+=4294967296),X}function C(Y,Q){var P=S(Y,Q,19),Z=S(Q,Y,29),F=U(Y,Q,6),X=P^Z^F;return X<0&&(X+=4294967296),X}function J(Y,Q){var P=H(Y,Q,19),Z=H(Q,Y,29),F=k(Y,Q,6),X=P^Z^F;return X<0&&(X+=4294967296),X}}),J8=F0((l,g)=>{var E=D5(),M=M6();function j(){if(!(this instanceof j))return new j;M.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}E.inherits(j,M),g.exports=j,j.blockSize=1024,j.outSize=384,j.hmacStrength=192,j.padLength=128,j.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,12),"big"):E.split32(this.h.slice(0,12),"big")}}),Q8=F0((l)=>{l.sha1=C8(),l.sha224=Y8(),l.sha256=v6(),l.sha384=J8(),l.sha512=M6()}),H8=F0((l)=>{var g=D5(),E=s5(),M=g.rotl32,j=g.sum32,S=g.sum32_3,H=g.sum32_4,U=E.BlockHash;function k(){if(!(this instanceof k))return new k;U.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}g.inherits(k,U),l.ripemd160=k,k.blockSize=512,k.outSize=160,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(I,v){for(var x=this.h[0],A=this.h[1],y=this.h[2],p=this.h[3],c=this.h[4],n=x,i=A,Y0=y,f=p,P0=c,K=0;K<80;K++){var C=j(M(H(x,z(K,A,y,p),I[T[K]+v],V(K)),W[K]),c);x=c,c=p,p=M(y,10),y=A,A=C,C=j(M(H(n,z(79-K,i,Y0,f),I[N[K]+v],$(K)),D[K]),P0),n=P0,P0=f,f=M(Y0,10),Y0=i,i=C}C=S(this.h[1],y,f),this.h[1]=S(this.h[2],p,P0),this.h[2]=S(this.h[3],c,n),this.h[3]=S(this.h[4],x,i),this.h[4]=S(this.h[0],A,Y0),this.h[0]=C},k.prototype._digest=function(I){return I==="hex"?g.toHex32(this.h,"little"):g.split32(this.h,"little")};function z(I,v,x,A){return I<=15?v^x^A:I<=31?v&x|~v&A:I<=47?(v|~x)^A:I<=63?v&A|x&~A:v^(x|~A)}function V(I){return I<=15?0:I<=31?1518500249:I<=47?1859775393:I<=63?2400959708:2840853838}function $(I){return I<=15?1352829926:I<=31?1548603684:I<=47?1836072691:I<=63?2053994217:0}var T=[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],N=[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],D=[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]}),F8=F0((l,g)=>{var E=D5(),M=O5();function j(S,H,U){if(!(this instanceof j))return new j(S,H,U);this.Hash=S,this.blockSize=S.blockSize/8,this.outSize=S.outSize/8,this.inner=null,this.outer=null,this._init(E.toArray(H,U))}g.exports=j,j.prototype._init=function(S){S.length>this.blockSize&&(S=new this.Hash().update(S).digest()),M(S.length<=this.blockSize);for(var H=S.length;H<this.blockSize;H++)S.push(0);for(H=0;H<S.length;H++)S[H]^=54;for(this.inner=new this.Hash().update(S),H=0;H<S.length;H++)S[H]^=106;this.outer=new this.Hash().update(S)},j.prototype.update=function(S,H){return this.inner.update(S,H),this},j.prototype.digest=function(S){return this.outer.update(this.inner.digest()),this.outer.digest(S)}}),x9=F0((l)=>{var g=l;g.utils=D5(),g.common=s5(),g.sha=Q8(),g.ripemd=H8(),g.hmac=F8(),g.sha1=g.sha.sha1,g.sha256=g.sha.sha256,g.sha224=g.sha.sha224,g.sha384=g.sha.sha384,g.sha512=g.sha.sha512,g.ripemd160=g.ripemd.ripemd160}),G8=F0((l,g)=>{g.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"]]}}}),A9=F0((l)=>{var g=l,E=x9(),M=x6(),j=T5(),S=j.assert;function H(z){z.type==="short"?this.curve=new M.short(z):z.type==="edwards"?this.curve=new M.edwards(z):this.curve=new M.mont(z),this.g=this.curve.g,this.n=this.curve.n,this.hash=z.hash,S(this.g.validate(),"Invalid curve"),S(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}g.PresetCurve=H;function U(z,V){Object.defineProperty(g,z,{configurable:!0,enumerable:!0,get:function(){var $=new H(V);return Object.defineProperty(g,z,{configurable:!0,enumerable:!0,value:$}),$}})}U("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:E.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),U("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:E.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),U("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:E.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),U("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:E.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),U("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:E.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),U("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:E.sha256,gRed:!1,g:["9"]}),U("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:E.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var k;try{k=G8()}catch{k=void 0}U("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:E.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",k]})}),P8=F0((l,g)=>{var E=x9(),M=S6(),j=O5();function S(H){if(!(this instanceof S))return new S(H);this.hash=H.hash,this.predResist=!!H.predResist,this.outLen=this.hash.outSize,this.minEntropy=H.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var U=M.toArray(H.entropy,H.entropyEnc||"hex"),k=M.toArray(H.nonce,H.nonceEnc||"hex"),z=M.toArray(H.pers,H.persEnc||"hex");j(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(U,k,z)}g.exports=S,S.prototype._init=function(H,U,k){var z=H.concat(U).concat(k);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var V=0;V<this.V.length;V++)this.K[V]=0,this.V[V]=1;this._update(z),this._reseed=1,this.reseedInterval=281474976710656},S.prototype._hmac=function(){return new E.hmac(this.hash,this.K)},S.prototype._update=function(H){var U=this._hmac().update(this.V).update([0]);H&&(U=U.update(H)),this.K=U.digest(),this.V=this._hmac().update(this.V).digest(),H&&(this.K=this._hmac().update(this.V).update([1]).update(H).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(H,U,k,z){typeof U!="string"&&(z=k,k=U,U=null),H=M.toArray(H,U),k=M.toArray(k,z),j(H.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(H.concat(k||[])),this._reseed=1},S.prototype.generate=function(H,U,k,z){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof U!="string"&&(z=k,k=U,U=null),k&&(k=M.toArray(k,z||"hex"),this._update(k));for(var V=[];V.length<H;)this.V=this._hmac().update(this.V).digest(),V=V.concat(this.V);var $=V.slice(0,H);return this._update(k),this._reseed++,M.encode($,U)}}),Z8=F0((l,g)=>{var E=I5(),M=T5(),j=M.assert;function S(H,U){this.ec=H,this.priv=null,this.pub=null,U.priv&&this._importPrivate(U.priv,U.privEnc),U.pub&&this._importPublic(U.pub,U.pubEnc)}g.exports=S,S.fromPublic=function(H,U,k){return U instanceof S?U:new S(H,{pub:U,pubEnc:k})},S.fromPrivate=function(H,U,k){return U instanceof S?U:new S(H,{priv:U,privEnc:k})},S.prototype.validate=function(){var H=this.getPublic();return H.isInfinity()?{result:!1,reason:"Invalid public key"}:H.validate()?H.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"}},S.prototype.getPublic=function(H,U){return typeof H=="string"&&(U=H,H=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),U?this.pub.encode(U,H):this.pub},S.prototype.getPrivate=function(H){return H==="hex"?this.priv.toString(16,2):this.priv},S.prototype._importPrivate=function(H,U){this.priv=new E(H,U||16),this.priv=this.priv.umod(this.ec.curve.n)},S.prototype._importPublic=function(H,U){if(H.x||H.y){this.ec.curve.type==="mont"?j(H.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&j(H.x&&H.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(H.x,H.y);return}this.pub=this.ec.curve.decodePoint(H,U)},S.prototype.derive=function(H){return H.validate()||j(H.validate(),"public point not validated"),H.mul(this.priv).getX()},S.prototype.sign=function(H,U,k){return this.ec.sign(H,this,U,k)},S.prototype.verify=function(H,U){return this.ec.verify(H,U,this)},S.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),$8=F0((l,g)=>{var E=I5(),M=T5(),j=M.assert;function S(V,$){if(V instanceof S)return V;this._importDER(V,$)||(j(V.r&&V.s,"Signature without r or s"),this.r=new E(V.r,16),this.s=new E(V.s,16),V.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=V.recoveryParam)}g.exports=S;function H(){this.place=0}function U(V,$){var T=V[$.place++];if(!(T&128))return T;var N=T&15;if(N===0||N>4)return!1;for(var W=0,D=0,I=$.place;D<N;D++,I++)W<<=8,W|=V[I],W>>>=0;return W<=127?!1:($.place=I,W)}function k(V){for(var $=0,T=V.length-1;!V[$]&&!(V[$+1]&128)&&$<T;)$++;return $===0?V:V.slice($)}S.prototype._importDER=function(V,$){V=M.toArray(V,$);var T=new H;if(V[T.place++]!==48)return!1;var N=U(V,T);if(N===!1||N+T.place!==V.length||V[T.place++]!==2)return!1;var W=U(V,T);if(W===!1)return!1;var D=V.slice(T.place,W+T.place);if(T.place+=W,V[T.place++]!==2)return!1;var I=U(V,T);if(I===!1||V.length!==I+T.place)return!1;var v=V.slice(T.place,I+T.place);if(D[0]===0)if(D[1]&128)D=D.slice(1);else return!1;if(v[0]===0)if(v[1]&128)v=v.slice(1);else return!1;return this.r=new E(D),this.s=new E(v),this.recoveryParam=null,!0};function z(V,$){if($<128){V.push($);return}var T=1+(Math.log($)/Math.LN2>>>3);for(V.push(T|128);--T;)V.push($>>>(T<<3)&255);V.push($)}S.prototype.toDER=function(V){var $=this.r.toArray(),T=this.s.toArray();for($[0]&128&&($=[0].concat($)),T[0]&128&&(T=[0].concat(T)),$=k($),T=k(T);!T[0]&&!(T[1]&128);)T=T.slice(1);var N=[2];z(N,$.length),N=N.concat($),N.push(2),z(N,T.length);var W=N.concat(T),D=[48];return z(D,W.length),D=D.concat(W),M.encode(D,V)}}),j8=F0((l,g)=>{var E=I5(),M=P8(),j=T5(),S=A9(),H=B9(),U=j.assert,k=Z8(),z=$8();function V($){if(!(this instanceof V))return new V($);typeof $=="string"&&(U(Object.prototype.hasOwnProperty.call(S,$),"Unknown curve "+$),$=S[$]),$ instanceof S.PresetCurve&&($={curve:$}),this.curve=$.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=$.curve.g,this.g.precompute($.curve.n.bitLength()+1),this.hash=$.hash||$.curve.hash}g.exports=V,V.prototype.keyPair=function($){return new k(this,$)},V.prototype.keyFromPrivate=function($,T){return k.fromPrivate(this,$,T)},V.prototype.keyFromPublic=function($,T){return k.fromPublic(this,$,T)},V.prototype.genKeyPair=function($){$||($={});for(var T=new M({hash:this.hash,pers:$.pers,persEnc:$.persEnc||"utf8",entropy:$.entropy||H(this.hash.hmacStrength),entropyEnc:$.entropy&&$.entropyEnc||"utf8",nonce:this.n.toArray()}),N=this.n.byteLength(),W=this.n.sub(new E(2));;){var D=new E(T.generate(N));if(!(D.cmp(W)>0))return D.iaddn(1),this.keyFromPrivate(D)}},V.prototype._truncateToN=function($,T){var N=$.byteLength()*8-this.n.bitLength();return N>0&&($=$.ushrn(N)),!T&&$.cmp(this.n)>=0?$.sub(this.n):$},V.prototype.sign=function($,T,N,W){typeof N=="object"&&(W=N,N=null),W||(W={}),T=this.keyFromPrivate(T,N),$=this._truncateToN(new E($,16));for(var D=this.n.byteLength(),I=T.getPrivate().toArray("be",D),v=$.toArray("be",D),x=new M({hash:this.hash,entropy:I,nonce:v,pers:W.pers,persEnc:W.persEnc||"utf8"}),A=this.n.sub(new E(1)),y=0;;y++){var p=W.k?W.k(y):new E(x.generate(this.n.byteLength()));if(p=this._truncateToN(p,!0),!(p.cmpn(1)<=0||p.cmp(A)>=0)){var c=this.g.mul(p);if(!c.isInfinity()){var n=c.getX(),i=n.umod(this.n);if(i.cmpn(0)!==0){var Y0=p.invm(this.n).mul(i.mul(T.getPrivate()).iadd($));if(Y0=Y0.umod(this.n),Y0.cmpn(0)!==0){var f=(c.getY().isOdd()?1:0)|(n.cmp(i)!==0?2:0);return W.canonical&&Y0.cmp(this.nh)>0&&(Y0=this.n.sub(Y0),f^=1),new z({r:i,s:Y0,recoveryParam:f})}}}}}},V.prototype.verify=function($,T,N,W){$=this._truncateToN(new E($,16)),N=this.keyFromPublic(N,W),T=new z(T,"hex");var{r:D,s:I}=T;if(D.cmpn(1)<0||D.cmp(this.n)>=0||I.cmpn(1)<0||I.cmp(this.n)>=0)return!1;var v=I.invm(this.n),x=v.mul($).umod(this.n),A=v.mul(D).umod(this.n),y;return this.curve._maxwellTrick?(y=this.g.jmulAdd(x,N.getPublic(),A),y.isInfinity()?!1:y.eqXToP(D)):(y=this.g.mulAdd(x,N.getPublic(),A),y.isInfinity()?!1:y.getX().umod(this.n).cmp(D)===0)},V.prototype.recoverPubKey=function($,T,N,W){U((3&N)===N,"The recovery param is more than two bits"),T=new z(T,W);var D=this.n,I=new E($),v=T.r,x=T.s,A=N&1,y=N>>1;if(v.cmp(this.curve.p.umod(this.curve.n))>=0&&y)throw new Error("Unable to find sencond key candinate");y?v=this.curve.pointFromX(v.add(this.curve.n),A):v=this.curve.pointFromX(v,A);var p=T.r.invm(D),c=D.sub(I).mul(p).umod(D),n=x.mul(p).umod(D);return this.g.mulAdd(c,v,n)},V.prototype.getKeyRecoveryParam=function($,T,N,W){if(T=new z(T,W),T.recoveryParam!==null)return T.recoveryParam;for(var D=0;D<4;D++){var I;try{I=this.recoverPubKey($,T,D)}catch{continue}if(I.eq(N))return D}throw new Error("Unable to find valid recovery factor")}}),U8=F0((l,g)=>{var E=T5(),M=E.assert,j=E.parseBytes,S=E.cachedProperty;function H(U,k){this.eddsa=U,this._secret=j(k.secret),U.isPoint(k.pub)?this._pub=k.pub:this._pubBytes=j(k.pub)}H.fromPublic=function(U,k){return k instanceof H?k:new H(U,{pub:k})},H.fromSecret=function(U,k){return k instanceof H?k:new H(U,{secret:k})},H.prototype.secret=function(){return this._secret},S(H,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),S(H,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),S(H,"privBytes",function(){var U=this.eddsa,k=this.hash(),z=U.encodingLength-1,V=k.slice(0,U.encodingLength);return V[0]&=248,V[z]&=127,V[z]|=64,V}),S(H,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),S(H,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),S(H,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),H.prototype.sign=function(U){return M(this._secret,"KeyPair can only verify"),this.eddsa.sign(U,this)},H.prototype.verify=function(U,k){return this.eddsa.verify(U,k,this)},H.prototype.getSecret=function(U){return M(this._secret,"KeyPair is public only"),E.encode(this.secret(),U)},H.prototype.getPublic=function(U){return E.encode(this.pubBytes(),U)},g.exports=H}),W8=F0((l,g)=>{var E=I5(),M=T5(),j=M.assert,S=M.cachedProperty,H=M.parseBytes;function U(k,z){this.eddsa=k,typeof z!="object"&&(z=H(z)),Array.isArray(z)&&(z={R:z.slice(0,k.encodingLength),S:z.slice(k.encodingLength)}),j(z.R&&z.S,"Signature without R or S"),k.isPoint(z.R)&&(this._R=z.R),z.S instanceof E&&(this._S=z.S),this._Rencoded=Array.isArray(z.R)?z.R:z.Rencoded,this._Sencoded=Array.isArray(z.S)?z.S:z.Sencoded}S(U,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),S(U,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),S(U,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),S(U,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),U.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},U.prototype.toHex=function(){return M.encode(this.toBytes(),"hex").toUpperCase()},g.exports=U}),V8=F0((l,g)=>{var E=x9(),M=A9(),j=T5(),S=j.assert,H=j.parseBytes,U=U8(),k=W8();function z(V){if(S(V==="ed25519","only tested with ed25519 so far"),!(this instanceof z))return new z(V);V=M[V].curve,this.curve=V,this.g=V.g,this.g.precompute(V.n.bitLength()+1),this.pointClass=V.point().constructor,this.encodingLength=Math.ceil(V.n.bitLength()/8),this.hash=E.sha512}g.exports=z,z.prototype.sign=function(V,$){V=H(V);var T=this.keyFromSecret($),N=this.hashInt(T.messagePrefix(),V),W=this.g.mul(N),D=this.encodePoint(W),I=this.hashInt(D,T.pubBytes(),V).mul(T.priv()),v=N.add(I).umod(this.curve.n);return this.makeSignature({R:W,S:v,Rencoded:D})},z.prototype.verify=function(V,$,T){V=H(V),$=this.makeSignature($);var N=this.keyFromPublic(T),W=this.hashInt($.Rencoded(),N.pubBytes(),V),D=this.g.mul($.S()),I=$.R().add(N.pub().mul(W));return I.eq(D)},z.prototype.hashInt=function(){for(var V=this.hash(),$=0;$<arguments.length;$++)V.update(arguments[$]);return j.intFromLE(V.digest()).umod(this.curve.n)},z.prototype.keyFromPublic=function(V){return U.fromPublic(this,V)},z.prototype.keyFromSecret=function(V){return U.fromSecret(this,V)},z.prototype.makeSignature=function(V){return V instanceof k?V:new k(this,V)},z.prototype.encodePoint=function(V){var $=V.getY().toArray("le",this.encodingLength);return $[this.encodingLength-1]|=V.getX().isOdd()?128:0,$},z.prototype.decodePoint=function(V){V=j.parseBytes(V);var $=V.length-1,T=V.slice(0,$).concat(V[$]&-129),N=(V[$]&128)!==0,W=j.intFromLE(T);return this.curve.pointFromY(W,N)},z.prototype.encodeInt=function(V){return V.toArray("le",this.encodingLength)},z.prototype.decodeInt=function(V){return j.intFromLE(V)},z.prototype.isPoint=function(V){return V instanceof this.pointClass}}),v9=F0((l)=>{var g=l;g.version=t7().version,g.utils=T5(),g.rand=B9(),g.curve=x6(),g.curves=A9(),g.ec=j8(),g.eddsa=V8()}),_6=F0((l,g)=>{(function(E,M){function j(K,C){if(!K)throw new Error(C||"Assertion failed")}function S(K,C){K.super_=C;var J=function(){};J.prototype=C.prototype,K.prototype=new J,K.prototype.constructor=K}function H(K,C,J){if(H.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((C==="le"||C==="be")&&(J=C,C=10),this._init(K||0,C||10,J||"be"))}typeof E=="object"?E.exports=H:M.BN=H,H.BN=H,H.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}H.isBN=function(K){return K instanceof H?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===H.wordSize&&Array.isArray(K.words)},H.max=function(K,C){return K.cmp(C)>0?K:C},H.min=function(K,C){return K.cmp(C)<0?K:C},H.prototype._init=function(K,C,J){if(typeof K=="number")return this._initNumber(K,C,J);if(typeof K=="object")return this._initArray(K,C,J);C==="hex"&&(C=16),j(C===(C|0)&&C>=2&&C<=36),K=K.toString().replace(/\s+/g,"");var Y=0;K[0]==="-"&&(Y++,this.negative=1),Y<K.length&&(C===16?this._parseHex(K,Y,J):(this._parseBase(K,C,Y),J==="le"&&this._initArray(this.toArray(),C,J)))},H.prototype._initNumber=function(K,C,J){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(j(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),J==="le"&&this._initArray(this.toArray(),C,J)},H.prototype._initArray=function(K,C,J){if(j(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q,P,Z=0;if(J==="be")for(Y=K.length-1,Q=0;Y>=0;Y-=3)P=K[Y]|K[Y-1]<<8|K[Y-2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);else if(J==="le")for(Y=0,Q=0;Y<K.length;Y+=3)P=K[Y]|K[Y+1]<<8|K[Y+2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);return this.strip()};function k(K,C){var J=K.charCodeAt(C);return J>=65&&J<=70?J-55:J>=97&&J<=102?J-87:J-48&15}function z(K,C,J){var Y=k(K,J);return J-1>=C&&(Y|=k(K,J-1)<<4),Y}H.prototype._parseHex=function(K,C,J){this.length=Math.ceil((K.length-C)/6),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q=0,P=0,Z;if(J==="be")for(Y=K.length-1;Y>=C;Y-=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8;else{var F=K.length-C;for(Y=F%2===0?C+1:C;Y<K.length;Y+=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8}this.strip()};function V(K,C,J,Y){for(var Q=0,P=Math.min(K.length,J),Z=C;Z<P;Z++){var F=K.charCodeAt(Z)-48;Q*=Y,F>=49?Q+=F-49+10:F>=17?Q+=F-17+10:Q+=F}return Q}H.prototype._parseBase=function(K,C,J){this.words=[0],this.length=1;for(var Y=0,Q=1;Q<=67108863;Q*=C)Y++;Y--,Q=Q/C|0;for(var P=K.length-J,Z=P%Y,F=Math.min(P,P-Z)+J,X=0,G=J;G<F;G+=Y)X=V(K,G,G+Y,C),this.imuln(Q),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(Z!==0){var R=1;for(X=V(K,G,K.length,C),G=0;G<Z;G++)R*=C;this.imuln(R),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},H.prototype.copy=function(K){K.words=new Array(this.length);for(var C=0;C<this.length;C++)K.words[C]=this.words[C];K.length=this.length,K.negative=this.negative,K.red=this.red},H.prototype.clone=function(){var K=new H(null);return this.copy(K),K},H.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[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],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(K,C){K=K||10,C=C|0||1;var J;if(K===16||K==="hex"){J="";for(var Y=0,Q=0,P=0;P<this.length;P++){var Z=this.words[P],F=((Z<<Y|Q)&16777215).toString(16);Q=Z>>>24-Y&16777215,Q!==0||P!==this.length-1?J=$[6-F.length]+F+J:J=F+J,Y+=2,Y>=26&&(Y-=26,P--)}for(Q!==0&&(J=Q.toString(16)+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}if(K===(K|0)&&K>=2&&K<=36){var X=T[K],G=N[K];J="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(K);R=R.idivn(G),R.isZero()?J=L+J:J=$[X-L.length]+L+J}for(this.isZero()&&(J="0"+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(K,C){return j(typeof U<"u"),this.toArrayLike(U,K,C)},H.prototype.toArray=function(K,C){return this.toArrayLike(Array,K,C)},H.prototype.toArrayLike=function(K,C,J){var Y=this.byteLength(),Q=J||Math.max(1,Y);j(Y<=Q,"byte array longer than desired length"),j(Q>0,"Requested array length <= 0"),this.strip();var P=C==="le",Z=new K(Q),F,X,G=this.clone();if(P){for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[X]=F;for(;X<Q;X++)Z[X]=0}else{for(X=0;X<Q-Y;X++)Z[X]=0;for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[Q-X-1]=F}return Z},Math.clz32?H.prototype._countBits=function(K){return 32-Math.clz32(K)}:H.prototype._countBits=function(K){var C=K,J=0;return C>=4096&&(J+=13,C>>>=13),C>=64&&(J+=7,C>>>=7),C>=8&&(J+=4,C>>>=4),C>=2&&(J+=2,C>>>=2),J+C},H.prototype._zeroBits=function(K){if(K===0)return 26;var C=K,J=0;return(C&8191)===0&&(J+=13,C>>>=13),(C&127)===0&&(J+=7,C>>>=7),(C&15)===0&&(J+=4,C>>>=4),(C&3)===0&&(J+=2,C>>>=2),(C&1)===0&&J++,J},H.prototype.bitLength=function(){var K=this.words[this.length-1],C=this._countBits(K);return(this.length-1)*26+C};function W(K){for(var C=new Array(K.bitLength()),J=0;J<C.length;J++){var Y=J/26|0,Q=J%26;C[J]=(K.words[Y]&1<<Q)>>>Q}return C}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,C=0;C<this.length;C++){var J=this._zeroBits(this.words[C]);if(K+=J,J!==26)break}return K},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},H.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var C=0;C<K.length;C++)this.words[C]=this.words[C]|K.words[C];return this.strip()},H.prototype.ior=function(K){return j((this.negative|K.negative)===0),this.iuor(K)},H.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},H.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},H.prototype.iuand=function(K){var C;this.length>K.length?C=K:C=this;for(var J=0;J<C.length;J++)this.words[J]=this.words[J]&K.words[J];return this.length=C.length,this.strip()},H.prototype.iand=function(K){return j((this.negative|K.negative)===0),this.iuand(K)},H.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},H.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},H.prototype.iuxor=function(K){var C,J;this.length>K.length?(C=this,J=K):(C=K,J=this);for(var Y=0;Y<J.length;Y++)this.words[Y]=C.words[Y]^J.words[Y];if(this!==C)for(;Y<C.length;Y++)this.words[Y]=C.words[Y];return this.length=C.length,this.strip()},H.prototype.ixor=function(K){return j((this.negative|K.negative)===0),this.iuxor(K)},H.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},H.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},H.prototype.inotn=function(K){j(typeof K=="number"&&K>=0);var C=Math.ceil(K/26)|0,J=K%26;this._expand(C),J>0&&C--;for(var Y=0;Y<C;Y++)this.words[Y]=~this.words[Y]&67108863;return J>0&&(this.words[Y]=~this.words[Y]&67108863>>26-J),this.strip()},H.prototype.notn=function(K){return this.clone().inotn(K)},H.prototype.setn=function(K,C){j(typeof K=="number"&&K>=0);var J=K/26|0,Y=K%26;return this._expand(J+1),C?this.words[J]=this.words[J]|1<<Y:this.words[J]=this.words[J]&~(1<<Y),this.strip()},H.prototype.iadd=function(K){var C;if(this.negative!==0&&K.negative===0)return this.negative=0,C=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,C=this.isub(K),K.negative=1,C._normSign();var J,Y;this.length>K.length?(J=this,Y=K):(J=K,Y=this);for(var Q=0,P=0;P<Y.length;P++)C=(J.words[P]|0)+(Y.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;for(;Q!==0&&P<J.length;P++)C=(J.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;if(this.length=J.length,Q!==0)this.words[this.length]=Q,this.length++;else if(J!==this)for(;P<J.length;P++)this.words[P]=J.words[P];return this},H.prototype.add=function(K){var C;return K.negative!==0&&this.negative===0?(K.negative=0,C=this.sub(K),K.negative^=1,C):K.negative===0&&this.negative!==0?(this.negative=0,C=K.sub(this),this.negative=1,C):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},H.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var C=this.iadd(K);return K.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var J=this.cmp(K);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Y,Q;J>0?(Y=this,Q=K):(Y=K,Q=this);for(var P=0,Z=0;Z<Q.length;Z++)C=(Y.words[Z]|0)-(Q.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;for(;P!==0&&Z<Y.length;Z++)C=(Y.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;if(P===0&&Z<Y.length&&Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this.length=Math.max(this.length,Z),Y!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(K){return this.clone().isub(K)};function D(K,C,J){J.negative=C.negative^K.negative;var Y=K.length+C.length|0;J.length=Y,Y=Y-1|0;var Q=K.words[0]|0,P=C.words[0]|0,Z=Q*P,F=Z&67108863,X=Z/67108864|0;J.words[0]=F;for(var G=1;G<Y;G++){for(var R=X>>>26,L=X&67108863,_=Math.min(G,C.length-1),s=Math.max(0,G-K.length+1);s<=_;s++){var r=G-s|0;Q=K.words[r]|0,P=C.words[s]|0,Z=Q*P+L,R+=Z/67108864|0,L=Z&67108863}J.words[G]=L|0,X=R|0}return X!==0?J.words[G]=X|0:J.length--,J.strip()}var I=function(K,C,J){var Y=K.words,Q=C.words,P=J.words,Z=0,F,X,G,R=Y[0]|0,L=R&8191,_=R>>>13,s=Y[1]|0,r=s&8191,C0=s>>>13,u=Y[2]|0,d=u&8191,a=u>>>13,V0=Y[3]|0,K0=V0&8191,Q0=V0>>>13,w=Y[4]|0,q=w&8191,m=w>>>13,e=Y[5]|0,X0=e&8191,t=e>>>13,_0=Y[6]|0,H0=_0&8191,G0=_0>>>13,w0=Y[7]|0,W0=w0&8191,Z0=w0>>>13,c0=Y[8]|0,O=c0&8191,B=c0>>>13,b=Y[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,J0=z0&8191,$0=z0>>>13,b0=Q[1]|0,U0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,F5=Q[3]|0,T0=F5&8191,O0=F5>>>13,l0=Q[4]|0,L0=l0&8191,k0=l0>>>13,G5=Q[5]|0,I0=G5&8191,q0=G5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,Z5=Q[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=Q[8]|0,x0=$5&8191,A0=$5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;J.negative=K.negative^C.negative,J.length=19,F=Math.imul(L,J0),X=Math.imul(L,$0),X=X+Math.imul(_,J0)|0,G=Math.imul(_,$0);var Q5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,F=Math.imul(r,J0),X=Math.imul(r,$0),X=X+Math.imul(C0,J0)|0,G=Math.imul(C0,$0),F=F+Math.imul(L,U0)|0,X=X+Math.imul(L,j0)|0,X=X+Math.imul(_,U0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(g0>>>26)|0,g0&=67108863,F=Math.imul(d,J0),X=Math.imul(d,$0),X=X+Math.imul(a,J0)|0,G=Math.imul(a,$0),F=F+Math.imul(r,U0)|0,X=X+Math.imul(r,j0)|0,X=X+Math.imul(C0,U0)|0,G=G+Math.imul(C0,j0)|0,F=F+Math.imul(L,D0)|0,X=X+Math.imul(L,N0)|0,X=X+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,F=Math.imul(K0,J0),X=Math.imul(K0,$0),X=X+Math.imul(Q0,J0)|0,G=Math.imul(Q0,$0),F=F+Math.imul(d,U0)|0,X=X+Math.imul(d,j0)|0,X=X+Math.imul(a,U0)|0,G=G+Math.imul(a,j0)|0,F=F+Math.imul(r,D0)|0,X=X+Math.imul(r,N0)|0,X=X+Math.imul(C0,D0)|0,G=G+Math.imul(C0,N0)|0,F=F+Math.imul(L,T0)|0,X=X+Math.imul(L,O0)|0,X=X+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(h0>>>26)|0,h0&=67108863,F=Math.imul(q,J0),X=Math.imul(q,$0),X=X+Math.imul(m,J0)|0,G=Math.imul(m,$0),F=F+Math.imul(K0,U0)|0,X=X+Math.imul(K0,j0)|0,X=X+Math.imul(Q0,U0)|0,G=G+Math.imul(Q0,j0)|0,F=F+Math.imul(d,D0)|0,X=X+Math.imul(d,N0)|0,X=X+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,F=F+Math.imul(r,T0)|0,X=X+Math.imul(r,O0)|0,X=X+Math.imul(C0,T0)|0,G=G+Math.imul(C0,O0)|0,F=F+Math.imul(L,L0)|0,X=X+Math.imul(L,k0)|0,X=X+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,F=Math.imul(X0,J0),X=Math.imul(X0,$0),X=X+Math.imul(t,J0)|0,G=Math.imul(t,$0),F=F+Math.imul(q,U0)|0,X=X+Math.imul(q,j0)|0,X=X+Math.imul(m,U0)|0,G=G+Math.imul(m,j0)|0,F=F+Math.imul(K0,D0)|0,X=X+Math.imul(K0,N0)|0,X=X+Math.imul(Q0,D0)|0,G=G+Math.imul(Q0,N0)|0,F=F+Math.imul(d,T0)|0,X=X+Math.imul(d,O0)|0,X=X+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,F=F+Math.imul(r,L0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(C0,L0)|0,G=G+Math.imul(C0,k0)|0,F=F+Math.imul(L,I0)|0,X=X+Math.imul(L,q0)|0,X=X+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,F=Math.imul(H0,J0),X=Math.imul(H0,$0),X=X+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),F=F+Math.imul(X0,U0)|0,X=X+Math.imul(X0,j0)|0,X=X+Math.imul(t,U0)|0,G=G+Math.imul(t,j0)|0,F=F+Math.imul(q,D0)|0,X=X+Math.imul(q,N0)|0,X=X+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,F=F+Math.imul(K0,T0)|0,X=X+Math.imul(K0,O0)|0,X=X+Math.imul(Q0,T0)|0,G=G+Math.imul(Q0,O0)|0,F=F+Math.imul(d,L0)|0,X=X+Math.imul(d,k0)|0,X=X+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,F=F+Math.imul(r,I0)|0,X=X+Math.imul(r,q0)|0,X=X+Math.imul(C0,I0)|0,G=G+Math.imul(C0,q0)|0,F=F+Math.imul(L,B0)|0,X=X+Math.imul(L,R0)|0,X=X+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,F=Math.imul(W0,J0),X=Math.imul(W0,$0),X=X+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),F=F+Math.imul(H0,U0)|0,X=X+Math.imul(H0,j0)|0,X=X+Math.imul(G0,U0)|0,G=G+Math.imul(G0,j0)|0,F=F+Math.imul(X0,D0)|0,X=X+Math.imul(X0,N0)|0,X=X+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,F=F+Math.imul(q,T0)|0,X=X+Math.imul(q,O0)|0,X=X+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,F=F+Math.imul(K0,L0)|0,X=X+Math.imul(K0,k0)|0,X=X+Math.imul(Q0,L0)|0,G=G+Math.imul(Q0,k0)|0,F=F+Math.imul(d,I0)|0,X=X+Math.imul(d,q0)|0,X=X+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,F=F+Math.imul(r,B0)|0,X=X+Math.imul(r,R0)|0,X=X+Math.imul(C0,B0)|0,G=G+Math.imul(C0,R0)|0,F=F+Math.imul(L,E0)|0,X=X+Math.imul(L,S0)|0,X=X+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,F=Math.imul(O,J0),X=Math.imul(O,$0),X=X+Math.imul(B,J0)|0,G=Math.imul(B,$0),F=F+Math.imul(W0,U0)|0,X=X+Math.imul(W0,j0)|0,X=X+Math.imul(Z0,U0)|0,G=G+Math.imul(Z0,j0)|0,F=F+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,F=F+Math.imul(X0,T0)|0,X=X+Math.imul(X0,O0)|0,X=X+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,F=F+Math.imul(q,L0)|0,X=X+Math.imul(q,k0)|0,X=X+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,F=F+Math.imul(K0,I0)|0,X=X+Math.imul(K0,q0)|0,X=X+Math.imul(Q0,I0)|0,G=G+Math.imul(Q0,q0)|0,F=F+Math.imul(d,B0)|0,X=X+Math.imul(d,R0)|0,X=X+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,F=F+Math.imul(r,E0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(C0,E0)|0,G=G+Math.imul(C0,S0)|0,F=F+Math.imul(L,x0)|0,X=X+Math.imul(L,A0)|0,X=X+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,F=Math.imul(h,J0),X=Math.imul(h,$0),X=X+Math.imul(o,J0)|0,G=Math.imul(o,$0),F=F+Math.imul(O,U0)|0,X=X+Math.imul(O,j0)|0,X=X+Math.imul(B,U0)|0,G=G+Math.imul(B,j0)|0,F=F+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,F=F+Math.imul(H0,T0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,F=F+Math.imul(X0,L0)|0,X=X+Math.imul(X0,k0)|0,X=X+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,F=F+Math.imul(q,I0)|0,X=X+Math.imul(q,q0)|0,X=X+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,F=F+Math.imul(K0,B0)|0,X=X+Math.imul(K0,R0)|0,X=X+Math.imul(Q0,B0)|0,G=G+Math.imul(Q0,R0)|0,F=F+Math.imul(d,E0)|0,X=X+Math.imul(d,S0)|0,X=X+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,F=F+Math.imul(r,x0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(C0,x0)|0,G=G+Math.imul(C0,A0)|0,F=F+Math.imul(L,v0)|0,X=X+Math.imul(L,M0)|0,X=X+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,F=Math.imul(h,U0),X=Math.imul(h,j0),X=X+Math.imul(o,U0)|0,G=Math.imul(o,j0),F=F+Math.imul(O,D0)|0,X=X+Math.imul(O,N0)|0,X=X+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,F=F+Math.imul(W0,T0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,F=F+Math.imul(H0,L0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,F=F+Math.imul(X0,I0)|0,X=X+Math.imul(X0,q0)|0,X=X+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,F=F+Math.imul(q,B0)|0,X=X+Math.imul(q,R0)|0,X=X+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,F=F+Math.imul(K0,E0)|0,X=X+Math.imul(K0,S0)|0,X=X+Math.imul(Q0,E0)|0,G=G+Math.imul(Q0,S0)|0,F=F+Math.imul(d,x0)|0,X=X+Math.imul(d,A0)|0,X=X+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,F=F+Math.imul(r,v0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(C0,v0)|0,G=G+Math.imul(C0,M0)|0;var r0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,F=Math.imul(h,D0),X=Math.imul(h,N0),X=X+Math.imul(o,D0)|0,G=Math.imul(o,N0),F=F+Math.imul(O,T0)|0,X=X+Math.imul(O,O0)|0,X=X+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,F=F+Math.imul(W0,L0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,F=F+Math.imul(H0,I0)|0,X=X+Math.imul(H0,q0)|0,X=X+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,F=F+Math.imul(X0,B0)|0,X=X+Math.imul(X0,R0)|0,X=X+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,F=F+Math.imul(q,E0)|0,X=X+Math.imul(q,S0)|0,X=X+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,F=F+Math.imul(K0,x0)|0,X=X+Math.imul(K0,A0)|0,X=X+Math.imul(Q0,x0)|0,G=G+Math.imul(Q0,A0)|0,F=F+Math.imul(d,v0)|0,X=X+Math.imul(d,M0)|0,X=X+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,F=Math.imul(h,T0),X=Math.imul(h,O0),X=X+Math.imul(o,T0)|0,G=Math.imul(o,O0),F=F+Math.imul(O,L0)|0,X=X+Math.imul(O,k0)|0,X=X+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,F=F+Math.imul(W0,I0)|0,X=X+Math.imul(W0,q0)|0,X=X+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,F=F+Math.imul(H0,B0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,F=F+Math.imul(X0,E0)|0,X=X+Math.imul(X0,S0)|0,X=X+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,F=F+Math.imul(q,x0)|0,X=X+Math.imul(q,A0)|0,X=X+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,F=F+Math.imul(K0,v0)|0,X=X+Math.imul(K0,M0)|0,X=X+Math.imul(Q0,v0)|0,G=G+Math.imul(Q0,M0)|0;var t0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,F=Math.imul(h,L0),X=Math.imul(h,k0),X=X+Math.imul(o,L0)|0,G=Math.imul(o,k0),F=F+Math.imul(O,I0)|0,X=X+Math.imul(O,q0)|0,X=X+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,F=F+Math.imul(W0,B0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,F=F+Math.imul(H0,E0)|0,X=X+Math.imul(H0,S0)|0,X=X+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,F=F+Math.imul(X0,x0)|0,X=X+Math.imul(X0,A0)|0,X=X+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,F=F+Math.imul(q,v0)|0,X=X+Math.imul(q,M0)|0,X=X+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,F=Math.imul(h,I0),X=Math.imul(h,q0),X=X+Math.imul(o,I0)|0,G=Math.imul(o,q0),F=F+Math.imul(O,B0)|0,X=X+Math.imul(O,R0)|0,X=X+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,F=F+Math.imul(W0,E0)|0,X=X+Math.imul(W0,S0)|0,X=X+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,F=F+Math.imul(H0,x0)|0,X=X+Math.imul(H0,A0)|0,X=X+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,F=F+Math.imul(X0,v0)|0,X=X+Math.imul(X0,M0)|0,X=X+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var K5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,F=Math.imul(h,B0),X=Math.imul(h,R0),X=X+Math.imul(o,B0)|0,G=Math.imul(o,R0),F=F+Math.imul(O,E0)|0,X=X+Math.imul(O,S0)|0,X=X+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,F=F+Math.imul(W0,x0)|0,X=X+Math.imul(W0,A0)|0,X=X+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,F=F+Math.imul(H0,v0)|0,X=X+Math.imul(H0,M0)|0,X=X+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var X5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,F=Math.imul(h,E0),X=Math.imul(h,S0),X=X+Math.imul(o,E0)|0,G=Math.imul(o,S0),F=F+Math.imul(O,x0)|0,X=X+Math.imul(O,A0)|0,X=X+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,F=F+Math.imul(W0,v0)|0,X=X+Math.imul(W0,M0)|0,X=X+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var C5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(C5>>>26)|0,C5&=67108863,F=Math.imul(h,x0),X=Math.imul(h,A0),X=X+Math.imul(o,x0)|0,G=Math.imul(o,A0),F=F+Math.imul(O,v0)|0,X=X+Math.imul(O,M0)|0,X=X+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var Y5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,F=Math.imul(h,v0),X=Math.imul(h,M0),X=X+Math.imul(o,v0)|0,G=Math.imul(o,M0);var J5=(Z+F|0)+((X&8191)<<13)|0;return Z=(G+(X>>>13)|0)+(J5>>>26)|0,J5&=67108863,P[0]=Q5,P[1]=g0,P[2]=m0,P[3]=h0,P[4]=u0,P[5]=o0,P[6]=s0,P[7]=a0,P[8]=f0,P[9]=n0,P[10]=r0,P[11]=i0,P[12]=t0,P[13]=e0,P[14]=K5,P[15]=X5,P[16]=C5,P[17]=Y5,P[18]=J5,Z!==0&&(P[19]=Z,J.length++),J};Math.imul||(I=D);function v(K,C,J){J.negative=C.negative^K.negative,J.length=K.length+C.length;for(var Y=0,Q=0,P=0;P<J.length-1;P++){var Z=Q;Q=0;for(var F=Y&67108863,X=Math.min(P,C.length-1),G=Math.max(0,P-K.length+1);G<=X;G++){var R=P-G,L=K.words[R]|0,_=C.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+F|0,F=r&67108863,Z=Z+(r>>>26)|0,Q+=Z>>>26,Z&=67108863}J.words[P]=F,Y=Z,Z=Q}return Y!==0?J.words[P]=Y:J.length--,J.strip()}function x(K,C,J){var Y=new A;return Y.mulp(K,C,J)}H.prototype.mulTo=function(K,C){var J,Y=this.length+K.length;return this.length===10&&K.length===10?J=I(this,K,C):Y<63?J=D(this,K,C):Y<1024?J=v(this,K,C):J=x(this,K,C),J};function A(K,C){this.x=K,this.y=C}A.prototype.makeRBT=function(K){for(var C=new Array(K),J=H.prototype._countBits(K)-1,Y=0;Y<K;Y++)C[Y]=this.revBin(Y,J,K);return C},A.prototype.revBin=function(K,C,J){if(K===0||K===J-1)return K;for(var Y=0,Q=0;Q<C;Q++)Y|=(K&1)<<C-Q-1,K>>=1;return Y},A.prototype.permute=function(K,C,J,Y,Q,P){for(var Z=0;Z<P;Z++)Y[Z]=C[K[Z]],Q[Z]=J[K[Z]]},A.prototype.transform=function(K,C,J,Y,Q,P){this.permute(P,K,C,J,Y,Q);for(var Z=1;Z<Q;Z<<=1)for(var F=Z<<1,X=Math.cos(2*Math.PI/F),G=Math.sin(2*Math.PI/F),R=0;R<Q;R+=F)for(var L=X,_=G,s=0;s<Z;s++){var r=J[R+s],C0=Y[R+s],u=J[R+s+Z],d=Y[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,J[R+s]=r+u,Y[R+s]=C0+d,J[R+s+Z]=r-u,Y[R+s+Z]=C0-d,s!==F&&(a=X*L-G*_,_=X*_+G*L,L=a)}},A.prototype.guessLen13b=function(K,C){var J=Math.max(C,K)|1,Y=J&1,Q=0;for(J=J/2|0;J;J=J>>>1)Q++;return 1<<Q+1+Y},A.prototype.conjugate=function(K,C,J){if(!(J<=1))for(var Y=0;Y<J/2;Y++){var Q=K[Y];K[Y]=K[J-Y-1],K[J-Y-1]=Q,Q=C[Y],C[Y]=-C[J-Y-1],C[J-Y-1]=-Q}},A.prototype.normalize13b=function(K,C){for(var J=0,Y=0;Y<C/2;Y++){var Q=Math.round(K[2*Y+1]/C)*8192+Math.round(K[2*Y]/C)+J;K[Y]=Q&67108863,Q<67108864?J=0:J=Q/67108864|0}return K},A.prototype.convert13b=function(K,C,J,Y){for(var Q=0,P=0;P<C;P++)Q=Q+(K[P]|0),J[2*P]=Q&8191,Q=Q>>>13,J[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*C;P<Y;++P)J[P]=0;j(Q===0),j((Q&-8192)===0)},A.prototype.stub=function(K){for(var C=new Array(K),J=0;J<K;J++)C[J]=0;return C},A.prototype.mulp=function(K,C,J){var Y=2*this.guessLen13b(K.length,C.length),Q=this.makeRBT(Y),P=this.stub(Y),Z=new Array(Y),F=new Array(Y),X=new Array(Y),G=new Array(Y),R=new Array(Y),L=new Array(Y),_=J.words;_.length=Y,this.convert13b(K.words,K.length,Z,Y),this.convert13b(C.words,C.length,G,Y),this.transform(Z,P,F,X,Y,Q),this.transform(G,P,R,L,Y,Q);for(var s=0;s<Y;s++){var r=F[s]*R[s]-X[s]*L[s];X[s]=F[s]*L[s]+X[s]*R[s],F[s]=r}return this.conjugate(F,X,Y),this.transform(F,X,_,P,Y,Q),this.conjugate(_,P,Y),this.normalize13b(_,Y),J.negative=K.negative^C.negative,J.length=K.length+C.length,J.strip()},H.prototype.mul=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),this.mulTo(K,C)},H.prototype.mulf=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),x(this,K,C)},H.prototype.imul=function(K){return this.clone().mulTo(K,this)},H.prototype.imuln=function(K){j(typeof K=="number"),j(K<67108864);for(var C=0,J=0;J<this.length;J++){var Y=(this.words[J]|0)*K,Q=(Y&67108863)+(C&67108863);C>>=26,C+=Y/67108864|0,C+=Q>>>26,this.words[J]=Q&67108863}return C!==0&&(this.words[J]=C,this.length++),this},H.prototype.muln=function(K){return this.clone().imuln(K)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(K){var C=W(K);if(C.length===0)return new H(1);for(var J=this,Y=0;Y<C.length&&C[Y]===0;Y++,J=J.sqr());if(++Y<C.length)for(var Q=J.sqr();Y<C.length;Y++,Q=Q.sqr())C[Y]!==0&&(J=J.mul(Q));return J},H.prototype.iushln=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=67108863>>>26-C<<26-C,Q;if(C!==0){var P=0;for(Q=0;Q<this.length;Q++){var Z=this.words[Q]&Y,F=(this.words[Q]|0)-Z<<C;this.words[Q]=F|P,P=Z>>>26-C}P&&(this.words[Q]=P,this.length++)}if(J!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+J]=this.words[Q];for(Q=0;Q<J;Q++)this.words[Q]=0;this.length+=J}return this.strip()},H.prototype.ishln=function(K){return j(this.negative===0),this.iushln(K)},H.prototype.iushrn=function(K,C,J){j(typeof K=="number"&&K>=0);var Y;C?Y=(C-C%26)/26:Y=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),Z=67108863^67108863>>>Q<<Q,F=J;if(Y-=P,Y=Math.max(0,Y),F){for(var X=0;X<P;X++)F.words[X]=this.words[X];F.length=P}if(P!==0)if(this.length>P)for(this.length-=P,X=0;X<this.length;X++)this.words[X]=this.words[X+P];else this.words[0]=0,this.length=1;var G=0;for(X=this.length-1;X>=0&&(G!==0||X>=Y);X--){var R=this.words[X]|0;this.words[X]=G<<26-Q|R>>>Q,G=R&Z}return F&&G!==0&&(F.words[F.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(K,C,J){return j(this.negative===0),this.iushrn(K,C,J)},H.prototype.shln=function(K){return this.clone().ishln(K)},H.prototype.ushln=function(K){return this.clone().iushln(K)},H.prototype.shrn=function(K){return this.clone().ishrn(K)},H.prototype.ushrn=function(K){return this.clone().iushrn(K)},H.prototype.testn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return!1;var Q=this.words[J];return!!(Q&Y)},H.prototype.imaskn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(C!==0&&J++,this.length=Math.min(J,this.length),C!==0){var Y=67108863^67108863>>>C<<C;this.words[this.length-1]&=Y}return this.strip()},H.prototype.maskn=function(K){return this.clone().imaskn(K)},H.prototype.iaddn=function(K){return j(typeof K=="number"),j(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},H.prototype._iaddn=function(K){this.words[0]+=K;for(var C=0;C<this.length&&this.words[C]>=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},H.prototype.isubn=function(K){if(j(typeof K=="number"),j(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C<this.length&&this.words[C]<0;C++)this.words[C]+=67108864,this.words[C+1]-=1;return this.strip()},H.prototype.addn=function(K){return this.clone().iaddn(K)},H.prototype.subn=function(K){return this.clone().isubn(K)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(K,C,J){var Y=K.length+J,Q;this._expand(Y);var P,Z=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+J]|0)+Z;var F=(K.words[Q]|0)*C;P-=F&67108863,Z=(P>>26)-(F/67108864|0),this.words[Q+J]=P&67108863}for(;Q<this.length-J;Q++)P=(this.words[Q+J]|0)+Z,Z=P>>26,this.words[Q+J]=P&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+Z,Z=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(K,C){var J=this.length-K.length,Y=this.clone(),Q=K,P=Q.words[Q.length-1]|0,Z=this._countBits(P);J=26-Z,J!==0&&(Q=Q.ushln(J),Y.iushln(J),P=Q.words[Q.length-1]|0);var F=Y.length-Q.length,X;if(C!=="mod"){X=new H(null),X.length=F+1,X.words=new Array(X.length);for(var G=0;G<X.length;G++)X.words[G]=0}var R=Y.clone()._ishlnsubmul(Q,1,F);R.negative===0&&(Y=R,X&&(X.words[F]=1));for(var L=F-1;L>=0;L--){var _=(Y.words[Q.length+L]|0)*67108864+(Y.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),Y._ishlnsubmul(Q,_,L);Y.negative!==0;)_--,Y.negative=0,Y._ishlnsubmul(Q,1,L),Y.isZero()||(Y.negative^=1);X&&(X.words[L]=_)}return X&&X.strip(),Y.strip(),C!=="div"&&J!==0&&Y.iushrn(J),{div:X||null,mod:Y}},H.prototype.divmod=function(K,C,J){if(j(!K.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Y,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,C),C!=="mod"&&(Y=P.div.neg()),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.iadd(K)),{div:Y,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),C),C!=="mod"&&(Y=P.div.neg()),{div:Y,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),C),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new H(0),mod:this}:K.length===1?C==="div"?{div:this.divn(K.words[0]),mod:null}:C==="mod"?{div:null,mod:new H(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new H(this.modn(K.words[0]))}:this._wordDiv(K,C)},H.prototype.div=function(K){return this.divmod(K,"div",!1).div},H.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},H.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},H.prototype.divRound=function(K){var C=this.divmod(K);if(C.mod.isZero())return C.div;var J=C.div.negative!==0?C.mod.isub(K):C.mod,Y=K.ushrn(1),Q=K.andln(1),P=J.cmp(Y);return P<0||Q===1&&P===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},H.prototype.modn=function(K){j(K<=67108863);for(var C=67108864%K,J=0,Y=this.length-1;Y>=0;Y--)J=(C*J+(this.words[Y]|0))%K;return J},H.prototype.idivn=function(K){j(K<=67108863);for(var C=0,J=this.length-1;J>=0;J--){var Y=(this.words[J]|0)+C*67108864;this.words[J]=Y/K|0,C=Y%K}return this.strip()},H.prototype.divn=function(K){return this.clone().idivn(K)},H.prototype.egcd=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=new H(0),Z=new H(1),F=0;C.isEven()&&J.isEven();)C.iushrn(1),J.iushrn(1),++F;for(var X=J.clone(),G=C.clone();!C.isZero();){for(var R=0,L=1;(C.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(C.iushrn(R);R-- >0;)(Y.isOdd()||Q.isOdd())&&(Y.iadd(X),Q.isub(G)),Y.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(J.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(J.iushrn(_);_-- >0;)(P.isOdd()||Z.isOdd())&&(P.iadd(X),Z.isub(G)),P.iushrn(1),Z.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(P),Q.isub(Z)):(J.isub(C),P.isub(Y),Z.isub(Q))}return{a:P,b:Z,gcd:J.iushln(F)}},H.prototype._invmp=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=J.clone();C.cmpn(1)>0&&J.cmpn(1)>0;){for(var Z=0,F=1;(C.words[0]&F)===0&&Z<26;++Z,F<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)Y.isOdd()&&Y.iadd(P),Y.iushrn(1);for(var X=0,G=1;(J.words[0]&G)===0&&X<26;++X,G<<=1);if(X>0)for(J.iushrn(X);X-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(Q)):(J.isub(C),Q.isub(Y))}var R;return C.cmpn(1)===0?R=Y:R=Q,R.cmpn(0)<0&&R.iadd(K),R},H.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var C=this.clone(),J=K.clone();C.negative=0,J.negative=0;for(var Y=0;C.isEven()&&J.isEven();Y++)C.iushrn(1),J.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;J.isEven();)J.iushrn(1);var Q=C.cmp(J);if(Q<0){var P=C;C=J,J=P}else if(Q===0||J.cmpn(1)===0)break;C.isub(J)}while(!0);return J.iushln(Y)},H.prototype.invm=function(K){return this.egcd(K).a.umod(K)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(K){return this.words[0]&K},H.prototype.bincn=function(K){j(typeof K=="number");var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return this._expand(J+1),this.words[J]|=Y,this;for(var Q=Y,P=J;Q!==0&&P<this.length;P++){var Z=this.words[P]|0;Z+=Q,Q=Z>>>26,Z&=67108863,this.words[P]=Z}return Q!==0&&(this.words[P]=Q,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(K){var C=K<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this.strip();var J;if(this.length>1)J=1;else{C&&(K=-K),j(K<=67108863,"Number is too big");var Y=this.words[0]|0;J=Y===K?0:Y<K?-1:1}return this.negative!==0?-J|0:J},H.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var C=this.ucmp(K);return this.negative!==0?-C|0:C},H.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var C=0,J=this.length-1;J>=0;J--){var Y=this.words[J]|0,Q=K.words[J]|0;if(Y!==Q){Y<Q?C=-1:Y>Q&&(C=1);break}}return C},H.prototype.gtn=function(K){return this.cmpn(K)===1},H.prototype.gt=function(K){return this.cmp(K)===1},H.prototype.gten=function(K){return this.cmpn(K)>=0},H.prototype.gte=function(K){return this.cmp(K)>=0},H.prototype.ltn=function(K){return this.cmpn(K)===-1},H.prototype.lt=function(K){return this.cmp(K)===-1},H.prototype.lten=function(K){return this.cmpn(K)<=0},H.prototype.lte=function(K){return this.cmp(K)<=0},H.prototype.eqn=function(K){return this.cmpn(K)===0},H.prototype.eq=function(K){return this.cmp(K)===0},H.red=function(K){return new f(K)},H.prototype.toRed=function(K){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(K){return this.red=K,this},H.prototype.forceRed=function(K){return j(!this.red,"Already a number in reduction context"),this._forceRed(K)},H.prototype.redAdd=function(K){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},H.prototype.redIAdd=function(K){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},H.prototype.redSub=function(K){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},H.prototype.redISub=function(K){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},H.prototype.redShl=function(K){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},H.prototype.redMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},H.prototype.redIMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(K){return j(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var y={k256:null,p224:null,p192:null,p25519:null};function p(K,C){this.name=K,this.p=new H(C,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new H(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var C=K,J;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),J=C.bitLength();while(J>this.n);var Y=J<this.n?-1:C.ucmp(this.p);return Y===0?(C.words[0]=0,C.length=1):Y>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},p.prototype.split=function(K,C){K.iushrn(this.n,0,C)},p.prototype.imulK=function(K){return K.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(K,C){for(var J=4194303,Y=Math.min(K.length,9),Q=0;Q<Y;Q++)C.words[Q]=K.words[Q];if(C.length=Y,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(C.words[C.length++]=P&J,Q=10;Q<K.length;Q++){var Z=K.words[Q]|0;K.words[Q-10]=(Z&J)<<4|P>>>22,P=Z}P>>>=22,K.words[Q-10]=P,P===0&&K.length>10?K.length-=10:K.length-=9},c.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var C=0,J=0;J<K.length;J++){var Y=K.words[J]|0;C+=Y*977,K.words[J]=C&67108863,C=Y*64+(C/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Y0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Y0,p),Y0.prototype.imulK=function(K){for(var C=0,J=0;J<K.length;J++){var Y=(K.words[J]|0)*19+C,Q=Y&67108863;Y>>>=26,K.words[J]=Q,C=Y}return C!==0&&(K.words[K.length++]=C),K},H._prime=function(K){if(y[K])return y[K];var C;if(K==="k256")C=new c;else if(K==="p224")C=new n;else if(K==="p192")C=new i;else if(K==="p25519")C=new Y0;else throw new Error("Unknown prime "+K);return y[K]=C,C};function f(K){if(typeof K=="string"){var C=H._prime(K);this.m=C.p,this.prime=C}else j(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){j(K.negative===0,"red works only with positives"),j(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,C){j((K.negative|C.negative)===0,"red works only with positives"),j(K.red&&K.red===C.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,C){this._verify2(K,C);var J=K.add(C);return J.cmp(this.m)>=0&&J.isub(this.m),J._forceRed(this)},f.prototype.iadd=function(K,C){this._verify2(K,C);var J=K.iadd(C);return J.cmp(this.m)>=0&&J.isub(this.m),J},f.prototype.sub=function(K,C){this._verify2(K,C);var J=K.sub(C);return J.cmpn(0)<0&&J.iadd(this.m),J._forceRed(this)},f.prototype.isub=function(K,C){this._verify2(K,C);var J=K.isub(C);return J.cmpn(0)<0&&J.iadd(this.m),J},f.prototype.shl=function(K,C){return this._verify1(K),this.imod(K.ushln(C))},f.prototype.imul=function(K,C){return this._verify2(K,C),this.imod(K.imul(C))},f.prototype.mul=function(K,C){return this._verify2(K,C),this.imod(K.mul(C))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var C=this.m.andln(3);if(j(C%2===1),C===3){var J=this.m.add(new H(1)).iushrn(2);return this.pow(K,J)}for(var Y=this.m.subn(1),Q=0;!Y.isZero()&&Y.andln(1)===0;)Q++,Y.iushrn(1);j(!Y.isZero());var P=new H(1).toRed(this),Z=P.redNeg(),F=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new H(2*X*X).toRed(this);this.pow(X,F).cmp(Z)!==0;)X.redIAdd(Z);for(var G=this.pow(X,Y),R=this.pow(K,Y.addn(1).iushrn(1)),L=this.pow(K,Y),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();j(r<_);var C0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(C0),G=C0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(K){var C=K._invmp(this.m);return C.negative!==0?(C.negative=0,this.imod(C).redNeg()):this.imod(C)},f.prototype.pow=function(K,C){if(C.isZero())return new H(1).toRed(this);if(C.cmpn(1)===0)return K.clone();var J=4,Y=new Array(1<<J);Y[0]=new H(1).toRed(this),Y[1]=K;for(var Q=2;Q<Y.length;Q++)Y[Q]=this.mul(Y[Q-1],K);var P=Y[0],Z=0,F=0,X=C.bitLength()%26;for(X===0&&(X=26),Q=C.length-1;Q>=0;Q--){for(var G=C.words[Q],R=X-1;R>=0;R--){var L=G>>R&1;if(P!==Y[0]&&(P=this.sqr(P)),L===0&&Z===0){F=0;continue}Z<<=1,Z|=L,F++,!(F!==J&&(Q!==0||R!==0))&&(P=this.mul(P,Y[Z]),F=0,Z=0)}X=26}return P},f.prototype.convertTo=function(K){var C=K.umod(this.m);return C===K?C.clone():C},f.prototype.convertFrom=function(K){var C=K.clone();return C.red=null,C},H.mont=function(K){return new P0(K)};function P0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(P0,f),P0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},P0.prototype.convertFrom=function(K){var C=this.imod(K.mul(this.rinv));return C.red=null,C},P0.prototype.imul=function(K,C){if(K.isZero()||C.isZero())return K.words[0]=0,K.length=1,K;var J=K.imul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.mul=function(K,C){if(K.isZero()||C.isZero())return new H(0)._forceRed(this);var J=K.mul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.invm=function(K){var C=this.imod(K._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(typeof g>"u"||g,l)}),M9=F0((l,g)=>{var E=W5(),M=E.Buffer,j={},S;for(S in E)!E.hasOwnProperty(S)||S==="SlowBuffer"||S==="Buffer"||(j[S]=E[S]);var H=j.Buffer={};for(S in M)!M.hasOwnProperty(S)||S==="allocUnsafe"||S==="allocUnsafeSlow"||(H[S]=M[S]);if(j.Buffer.prototype=M.prototype,(!H.from||H.from===Uint8Array.from)&&(H.from=function(U,k,z){if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof U);if(U&&typeof U.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);return M(U,k,z)}),H.alloc||(H.alloc=function(U,k,z){if(typeof U!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof U);if(U<0||U>=2147483648)throw new RangeError('The value "'+U+'" is invalid for option "size"');var V=M(U);return!k||k.length===0?V.fill(0):typeof z=="string"?V.fill(k,z):V.fill(k),V}),!j.kStringMaxLength)try{j.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}j.constants||(j.constants={MAX_LENGTH:j.kMaxLength},j.kStringMaxLength&&(j.constants.MAX_STRING_LENGTH=j.kStringMaxLength)),g.exports=j}),_9=F0((l)=>{var g=p0();function E(j){this._reporterState={obj:null,path:[],options:j||{},errors:[]}}l.Reporter=E,E.prototype.isError=function(j){return j instanceof M},E.prototype.save=function(){let j=this._reporterState;return{obj:j.obj,pathLen:j.path.length}},E.prototype.restore=function(j){let S=this._reporterState;S.obj=j.obj,S.path=S.path.slice(0,j.pathLen)},E.prototype.enterKey=function(j){return this._reporterState.path.push(j)},E.prototype.exitKey=function(j){let S=this._reporterState;S.path=S.path.slice(0,j-1)},E.prototype.leaveKey=function(j,S,H){let U=this._reporterState;this.exitKey(j),U.obj!==null&&(U.obj[S]=H)},E.prototype.path=function(){return this._reporterState.path.join("/")},E.prototype.enterObject=function(){let j=this._reporterState,S=j.obj;return j.obj={},S},E.prototype.leaveObject=function(j){let S=this._reporterState,H=S.obj;return S.obj=j,H},E.prototype.error=function(j){let S,H=this._reporterState,U=j instanceof M;if(U?S=j:S=new M(H.path.map(function(k){return"["+JSON.stringify(k)+"]"}).join(""),j.message||j,j.stack),!H.options.partial)throw S;return U||H.errors.push(S),S},E.prototype.wrapResult=function(j){let S=this._reporterState;return S.options.partial?{result:this.isError(j)?null:j,errors:S.errors}:j};function M(j,S){this.path=j,this.rethrow(S)}g(M,Error),M.prototype.rethrow=function(j){if(this.message=j+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,M),!this.stack)try{throw new Error(this.message)}catch(S){this.stack=S.stack}return this}}),l5=F0((l)=>{var g=p0(),E=_9().Reporter,M=M9().Buffer;function j(H,U){if(E.call(this,U),!M.isBuffer(H)){this.error("Input not Buffer");return}this.base=H,this.offset=0,this.length=H.length}g(j,E),l.DecoderBuffer=j,j.isDecoderBuffer=function(H){return H instanceof j?!0:typeof H=="object"&&M.isBuffer(H.base)&&H.constructor.name==="DecoderBuffer"&&typeof H.offset=="number"&&typeof H.length=="number"&&typeof H.save=="function"&&typeof H.restore=="function"&&typeof H.isEmpty=="function"&&typeof H.readUInt8=="function"&&typeof H.skip=="function"&&typeof H.raw=="function"},j.prototype.save=function(){return{offset:this.offset,reporter:E.prototype.save.call(this)}},j.prototype.restore=function(H){let U=new j(this.base);return U.offset=H.offset,U.length=this.offset,this.offset=H.offset,E.prototype.restore.call(this,H.reporter),U},j.prototype.isEmpty=function(){return this.offset===this.length},j.prototype.readUInt8=function(H){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(H||"DecoderBuffer overrun")},j.prototype.skip=function(H,U){if(!(this.offset+H<=this.length))return this.error(U||"DecoderBuffer overrun");let k=new j(this.base);return k._reporterState=this._reporterState,k.offset=this.offset,k.length=this.offset+H,this.offset+=H,k},j.prototype.raw=function(H){return this.base.slice(H?H.offset:this.offset,this.length)};function S(H,U){if(Array.isArray(H))this.length=0,this.value=H.map(function(k){return S.isEncoderBuffer(k)||(k=new S(k,U)),this.length+=k.length,k},this);else if(typeof H=="number"){if(!(0<=H&&H<=255))return U.error("non-byte EncoderBuffer value");this.value=H,this.length=1}else if(typeof H=="string")this.value=H,this.length=M.byteLength(H);else if(M.isBuffer(H))this.value=H,this.length=H.length;else return U.error("Unsupported type: "+typeof H)}l.EncoderBuffer=S,S.isEncoderBuffer=function(H){return H instanceof S?!0:typeof H=="object"&&H.constructor.name==="EncoderBuffer"&&typeof H.length=="number"&&typeof H.join=="function"},S.prototype.join=function(H,U){return H||(H=M.alloc(this.length)),U||(U=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(k){k.join(H,U),U+=k.length}):(typeof this.value=="number"?H[U]=this.value:typeof this.value=="string"?H.write(this.value,U):M.isBuffer(this.value)&&this.value.copy(H,U),U+=this.length)),H}}),w9=F0((l,g)=>{var E=_9().Reporter,M=l5().EncoderBuffer,j=l5().DecoderBuffer,S=O5(),H=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],U=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(H),k=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function z($,T,N){let W={};this._baseState=W,W.name=N,W.enc=$,W.parent=T||null,W.children=null,W.tag=null,W.args=null,W.reverseArgs=null,W.choice=null,W.optional=!1,W.any=!1,W.obj=!1,W.use=null,W.useDecoder=null,W.key=null,W.default=null,W.explicit=null,W.implicit=null,W.contains=null,W.parent||(W.children=[],this._wrap())}g.exports=z;var V=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];z.prototype.clone=function(){let $=this._baseState,T={};V.forEach(function(W){T[W]=$[W]});let N=new this.constructor(T.parent);return N._baseState=T,N},z.prototype._wrap=function(){let $=this._baseState;U.forEach(function(T){this[T]=function(){let N=new this.constructor(this);return $.children.push(N),N[T].apply(N,arguments)}},this)},z.prototype._init=function($){let T=this._baseState;S(T.parent===null),$.call(this),T.children=T.children.filter(function(N){return N._baseState.parent===this},this),S.equal(T.children.length,1,"Root node can have only one child")},z.prototype._useArgs=function($){let T=this._baseState,N=$.filter(function(W){return W instanceof this.constructor},this);$=$.filter(function(W){return!(W instanceof this.constructor)},this),N.length!==0&&(S(T.children===null),T.children=N,N.forEach(function(W){W._baseState.parent=this},this)),$.length!==0&&(S(T.args===null),T.args=$,T.reverseArgs=$.map(function(W){if(typeof W!="object"||W.constructor!==Object)return W;let D={};return Object.keys(W).forEach(function(I){I==(I|0)&&(I|=0);let v=W[I];D[v]=I}),D}))},k.forEach(function($){z.prototype[$]=function(){let T=this._baseState;throw new Error($+" not implemented for encoding: "+T.enc)}}),H.forEach(function($){z.prototype[$]=function(){let T=this._baseState,N=Array.prototype.slice.call(arguments);return S(T.tag===null),T.tag=$,this._useArgs(N),this}}),z.prototype.use=function($){S($);let T=this._baseState;return S(T.use===null),T.use=$,this},z.prototype.optional=function(){let $=this._baseState;return $.optional=!0,this},z.prototype.def=function($){let T=this._baseState;return S(T.default===null),T.default=$,T.optional=!0,this},z.prototype.explicit=function($){let T=this._baseState;return S(T.explicit===null&&T.implicit===null),T.explicit=$,this},z.prototype.implicit=function($){let T=this._baseState;return S(T.explicit===null&&T.implicit===null),T.implicit=$,this},z.prototype.obj=function(){let $=this._baseState,T=Array.prototype.slice.call(arguments);return $.obj=!0,T.length!==0&&this._useArgs(T),this},z.prototype.key=function($){let T=this._baseState;return S(T.key===null),T.key=$,this},z.prototype.any=function(){let $=this._baseState;return $.any=!0,this},z.prototype.choice=function($){let T=this._baseState;return S(T.choice===null),T.choice=$,this._useArgs(Object.keys($).map(function(N){return $[N]})),this},z.prototype.contains=function($){let T=this._baseState;return S(T.use===null),T.contains=$,this},z.prototype._decode=function($,T){let N=this._baseState;if(N.parent===null)return $.wrapResult(N.children[0]._decode($,T));let W=N.default,D=!0,I=null;if(N.key!==null&&(I=$.enterKey(N.key)),N.optional){let x=null;if(N.explicit!==null?x=N.explicit:N.implicit!==null?x=N.implicit:N.tag!==null&&(x=N.tag),x===null&&!N.any){let A=$.save();try{N.choice===null?this._decodeGeneric(N.tag,$,T):this._decodeChoice($,T),D=!0}catch{D=!1}$.restore(A)}else if(D=this._peekTag($,x,N.any),$.isError(D))return D}let v;if(N.obj&&D&&(v=$.enterObject()),D){if(N.explicit!==null){let A=this._decodeTag($,N.explicit);if($.isError(A))return A;$=A}let x=$.offset;if(N.use===null&&N.choice===null){let A;N.any&&(A=$.save());let y=this._decodeTag($,N.implicit!==null?N.implicit:N.tag,N.any);if($.isError(y))return y;N.any?W=$.raw(A):$=y}if(T&&T.track&&N.tag!==null&&T.track($.path(),x,$.length,"tagged"),T&&T.track&&N.tag!==null&&T.track($.path(),$.offset,$.length,"content"),N.any||(N.choice===null?W=this._decodeGeneric(N.tag,$,T):W=this._decodeChoice($,T)),$.isError(W))return W;if(!N.any&&N.choice===null&&N.children!==null&&N.children.forEach(function(A){A._decode($,T)}),N.contains&&(N.tag==="octstr"||N.tag==="bitstr")){let A=new j(W);W=this._getUse(N.contains,$._reporterState.obj)._decode(A,T)}}return N.obj&&D&&(W=$.leaveObject(v)),N.key!==null&&(W!==null||D===!0)?$.leaveKey(I,N.key,W):I!==null&&$.exitKey(I),W},z.prototype._decodeGeneric=function($,T,N){let W=this._baseState;return $==="seq"||$==="set"?null:$==="seqof"||$==="setof"?this._decodeList(T,$,W.args[0],N):/str$/.test($)?this._decodeStr(T,$,N):$==="objid"&&W.args?this._decodeObjid(T,W.args[0],W.args[1],N):$==="objid"?this._decodeObjid(T,null,null,N):$==="gentime"||$==="utctime"?this._decodeTime(T,$,N):$==="null_"?this._decodeNull(T,N):$==="bool"?this._decodeBool(T,N):$==="objDesc"?this._decodeStr(T,$,N):$==="int"||$==="enum"?this._decodeInt(T,W.args&&W.args[0],N):W.use!==null?this._getUse(W.use,T._reporterState.obj)._decode(T,N):T.error("unknown tag: "+$)},z.prototype._getUse=function($,T){let N=this._baseState;return N.useDecoder=this._use($,T),S(N.useDecoder._baseState.parent===null),N.useDecoder=N.useDecoder._baseState.children[0],N.implicit!==N.useDecoder._baseState.implicit&&(N.useDecoder=N.useDecoder.clone(),N.useDecoder._baseState.implicit=N.implicit),N.useDecoder},z.prototype._decodeChoice=function($,T){let N=this._baseState,W=null,D=!1;return Object.keys(N.choice).some(function(I){let v=$.save(),x=N.choice[I];try{let A=x._decode($,T);if($.isError(A))return!1;W={type:I,value:A},D=!0}catch{return $.restore(v),!1}return!0},this),D?W:$.error("Choice not matched")},z.prototype._createEncoderBuffer=function($){return new M($,this.reporter)},z.prototype._encode=function($,T,N){let W=this._baseState;if(W.default!==null&&W.default===$)return;let D=this._encodeValue($,T,N);if(D!==void 0&&!this._skipDefault(D,T,N))return D},z.prototype._encodeValue=function($,T,N){let W=this._baseState;if(W.parent===null)return W.children[0]._encode($,T||new E);let D=null;if(this.reporter=T,W.optional&&$===void 0)if(W.default!==null)$=W.default;else return;let I=null,v=!1;if(W.any)D=this._createEncoderBuffer($);else if(W.choice)D=this._encodeChoice($,T);else if(W.contains)I=this._getUse(W.contains,N)._encode($,T),v=!0;else if(W.children)I=W.children.map(function(x){if(x._baseState.tag==="null_")return x._encode(null,T,$);if(x._baseState.key===null)return T.error("Child should have a key");let A=T.enterKey(x._baseState.key);if(typeof $!="object")return T.error("Child expected, but input is not object");let y=x._encode($[x._baseState.key],T,$);return T.leaveKey(A),y},this).filter(function(x){return x}),I=this._createEncoderBuffer(I);else if(W.tag==="seqof"||W.tag==="setof"){if(!(W.args&&W.args.length===1))return T.error("Too many args for : "+W.tag);if(!Array.isArray($))return T.error("seqof/setof, but data is not Array");let x=this.clone();x._baseState.implicit=null,I=this._createEncoderBuffer($.map(function(A){let y=this._baseState;return this._getUse(y.args[0],$)._encode(A,T)},x))}else W.use!==null?D=this._getUse(W.use,N)._encode($,T):(I=this._encodePrimitive(W.tag,$),v=!0);if(!W.any&&W.choice===null){let x=W.implicit!==null?W.implicit:W.tag,A=W.implicit===null?"universal":"context";x===null?W.use===null&&T.error("Tag could be omitted only for .use()"):W.use===null&&(D=this._encodeComposite(x,v,A,I))}return W.explicit!==null&&(D=this._encodeComposite(W.explicit,!1,"context",D)),D},z.prototype._encodeChoice=function($,T){let N=this._baseState,W=N.choice[$.type];return W||S(!1,$.type+" not found in "+JSON.stringify(Object.keys(N.choice))),W._encode($.value,T)},z.prototype._encodePrimitive=function($,T){let N=this._baseState;if(/str$/.test($))return this._encodeStr(T,$);if($==="objid"&&N.args)return this._encodeObjid(T,N.reverseArgs[0],N.args[1]);if($==="objid")return this._encodeObjid(T,null,null);if($==="gentime"||$==="utctime")return this._encodeTime(T,$);if($==="null_")return this._encodeNull();if($==="int"||$==="enum")return this._encodeInt(T,N.args&&N.reverseArgs[0]);if($==="bool")return this._encodeBool(T);if($==="objDesc")return this._encodeStr(T,$);throw new Error("Unsupported tag: "+$)},z.prototype._isNumstr=function($){return/^[0-9 ]*$/.test($)},z.prototype._isPrintstr=function($){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test($)}}),y9=F0((l)=>{function g(E){let M={};return Object.keys(E).forEach(function(j){(j|0)==j&&(j=j|0);let S=E[j];M[S]=j}),M}l.tagClass={0:"universal",1:"application",2:"context",3:"private"},l.tagClassByName=g(l.tagClass),l.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},l.tagByName=g(l.tag)}),w6=F0((l,g)=>{var E=p0(),M=M9().Buffer,j=w9(),S=y9();function H(V){this.enc="der",this.name=V.name,this.entity=V,this.tree=new U,this.tree._init(V.body)}g.exports=H,H.prototype.encode=function(V,$){return this.tree._encode(V,$).join()};function U(V){j.call(this,"der",V)}E(U,j),U.prototype._encodeComposite=function(V,$,T,N){let W=z(V,$,T,this.reporter);if(N.length<128){let v=M.alloc(2);return v[0]=W,v[1]=N.length,this._createEncoderBuffer([v,N])}let D=1;for(let v=N.length;v>=256;v>>=8)D++;let I=M.alloc(2+D);I[0]=W,I[1]=128|D;for(let v=1+D,x=N.length;x>0;v--,x>>=8)I[v]=x&255;return this._createEncoderBuffer([I,N])},U.prototype._encodeStr=function(V,$){if($==="bitstr")return this._createEncoderBuffer([V.unused|0,V.data]);if($==="bmpstr"){let T=M.alloc(V.length*2);for(let N=0;N<V.length;N++)T.writeUInt16BE(V.charCodeAt(N),N*2);return this._createEncoderBuffer(T)}else return $==="numstr"?this._isNumstr(V)?this._createEncoderBuffer(V):this.reporter.error("Encoding of string type: numstr supports only digits and space"):$==="printstr"?this._isPrintstr(V)?this._createEncoderBuffer(V):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test($)?this._createEncoderBuffer(V):$==="objDesc"?this._createEncoderBuffer(V):this.reporter.error("Encoding of string type: "+$+" unsupported")},U.prototype._encodeObjid=function(V,$,T){if(typeof V=="string"){if(!$)return this.reporter.error("string objid given, but no values map found");if(!$.hasOwnProperty(V))return this.reporter.error("objid not found in values map");V=$[V].split(/[\s.]+/g);for(let I=0;I<V.length;I++)V[I]|=0}else if(Array.isArray(V)){V=V.slice();for(let I=0;I<V.length;I++)V[I]|=0}if(!Array.isArray(V))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(V));if(!T){if(V[1]>=40)return this.reporter.error("Second objid identifier OOB");V.splice(0,2,V[0]*40+V[1])}let N=0;for(let I=0;I<V.length;I++){let v=V[I];for(N++;v>=128;v>>=7)N++}let W=M.alloc(N),D=W.length-1;for(let I=V.length-1;I>=0;I--){let v=V[I];for(W[D--]=v&127;(v>>=7)>0;)W[D--]=128|v&127}return this._createEncoderBuffer(W)};function k(V){return V<10?"0"+V:V}U.prototype._encodeTime=function(V,$){let T,N=new Date(V);return $==="gentime"?T=[k(N.getUTCFullYear()),k(N.getUTCMonth()+1),k(N.getUTCDate()),k(N.getUTCHours()),k(N.getUTCMinutes()),k(N.getUTCSeconds()),"Z"].join(""):$==="utctime"?T=[k(N.getUTCFullYear()%100),k(N.getUTCMonth()+1),k(N.getUTCDate()),k(N.getUTCHours()),k(N.getUTCMinutes()),k(N.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+$+" time is not supported yet"),this._encodeStr(T,"octstr")},U.prototype._encodeNull=function(){return this._createEncoderBuffer("")},U.prototype._encodeInt=function(V,$){if(typeof V=="string"){if(!$)return this.reporter.error("String int or enum given, but no values map");if(!$.hasOwnProperty(V))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(V));V=$[V]}if(typeof V!="number"&&!M.isBuffer(V)){let W=V.toArray();!V.sign&&W[0]&128&&W.unshift(0),V=M.from(W)}if(M.isBuffer(V)){let W=V.length;V.length===0&&W++;let D=M.alloc(W);return V.copy(D),V.length===0&&(D[0]=0),this._createEncoderBuffer(D)}if(V<128)return this._createEncoderBuffer(V);if(V<256)return this._createEncoderBuffer([0,V]);let T=1;for(let W=V;W>=256;W>>=8)T++;let N=new Array(T);for(let W=N.length-1;W>=0;W--)N[W]=V&255,V>>=8;return N[0]&128&&N.unshift(0),this._createEncoderBuffer(M.from(N))},U.prototype._encodeBool=function(V){return this._createEncoderBuffer(V?255:0)},U.prototype._use=function(V,$){return typeof V=="function"&&(V=V($)),V._getEncoder("der").tree},U.prototype._skipDefault=function(V,$,T){let N=this._baseState,W;if(N.default===null)return!1;let D=V.join();if(N.defaultBuffer===void 0&&(N.defaultBuffer=this._encodeValue(N.default,$,T).join()),D.length!==N.defaultBuffer.length)return!1;for(W=0;W<D.length;W++)if(D[W]!==N.defaultBuffer[W])return!1;return!0};function z(V,$,T,N){let W;if(V==="seqof"?V="seq":V==="setof"&&(V="set"),S.tagByName.hasOwnProperty(V))W=S.tagByName[V];else if(typeof V=="number"&&(V|0)===V)W=V;else return N.error("Unknown tag: "+V);return W>=31?N.error("Multi-octet tag encoding unsupported"):($||(W|=32),W|=S.tagClassByName[T||"universal"]<<6,W)}}),z8=F0((l,g)=>{var E=p0(),M=w6();function j(S){M.call(this,S),this.enc="pem"}E(j,M),g.exports=j,j.prototype.encode=function(S,H){let U=M.prototype.encode.call(this,S).toString("base64"),k=["-----BEGIN "+H.label+"-----"];for(let z=0;z<U.length;z+=64)k.push(U.slice(z,z+64));return k.push("-----END "+H.label+"-----"),k.join(`
|
|
4
|
+
`)}}),y6=F0((l)=>{var g=l;g.der=w6(),g.pem=z8()}),g6=F0((l,g)=>{var E=p0(),M=_6(),j=l5().DecoderBuffer,S=w9(),H=y9();function U($){this.enc="der",this.name=$.name,this.entity=$,this.tree=new k,this.tree._init($.body)}g.exports=U,U.prototype.decode=function($,T){return j.isDecoderBuffer($)||($=new j($,T)),this.tree._decode($,T)};function k($){S.call(this,"der",$)}E(k,S),k.prototype._peekTag=function($,T,N){if($.isEmpty())return!1;let W=$.save(),D=z($,'Failed to peek tag: "'+T+'"');return $.isError(D)?D:($.restore(W),D.tag===T||D.tagStr===T||D.tagStr+"of"===T||N)},k.prototype._decodeTag=function($,T,N){let W=z($,'Failed to decode tag of "'+T+'"');if($.isError(W))return W;let D=V($,W.primitive,'Failed to get length of "'+T+'"');if($.isError(D))return D;if(!N&&W.tag!==T&&W.tagStr!==T&&W.tagStr+"of"!==T)return $.error('Failed to match tag: "'+T+'"');if(W.primitive||D!==null)return $.skip(D,'Failed to match body of: "'+T+'"');let I=$.save(),v=this._skipUntilEnd($,'Failed to skip indefinite length body: "'+this.tag+'"');return $.isError(v)?v:(D=$.offset-I.offset,$.restore(I),$.skip(D,'Failed to match body of: "'+T+'"'))},k.prototype._skipUntilEnd=function($,T){for(;;){let N=z($,T);if($.isError(N))return N;let W=V($,N.primitive,T);if($.isError(W))return W;let D;if(N.primitive||W!==null?D=$.skip(W):D=this._skipUntilEnd($,T),$.isError(D))return D;if(N.tagStr==="end")break}},k.prototype._decodeList=function($,T,N,W){let D=[];for(;!$.isEmpty();){let I=this._peekTag($,"end");if($.isError(I))return I;let v=N.decode($,"der",W);if($.isError(v)&&I)break;D.push(v)}return D},k.prototype._decodeStr=function($,T){if(T==="bitstr"){let N=$.readUInt8();return $.isError(N)?N:{unused:N,data:$.raw()}}else if(T==="bmpstr"){let N=$.raw();if(N.length%2===1)return $.error("Decoding of string type: bmpstr length mismatch");let W="";for(let D=0;D<N.length/2;D++)W+=String.fromCharCode(N.readUInt16BE(D*2));return W}else if(T==="numstr"){let N=$.raw().toString("ascii");return this._isNumstr(N)?N:$.error("Decoding of string type: numstr unsupported characters")}else{if(T==="octstr")return $.raw();if(T==="objDesc")return $.raw();if(T==="printstr"){let N=$.raw().toString("ascii");return this._isPrintstr(N)?N:$.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(T)?$.raw().toString():$.error("Decoding of string type: "+T+" unsupported")}},k.prototype._decodeObjid=function($,T,N){let W,D=[],I=0,v=0;for(;!$.isEmpty();)v=$.readUInt8(),I<<=7,I|=v&127,(v&128)===0&&(D.push(I),I=0);v&128&&D.push(I);let x=D[0]/40|0,A=D[0]%40;if(N?W=D:W=[x,A].concat(D.slice(1)),T){let y=T[W.join(" ")];y===void 0&&(y=T[W.join(".")]),y!==void 0&&(W=y)}return W},k.prototype._decodeTime=function($,T){let N=$.raw().toString(),W,D,I,v,x,A;if(T==="gentime")W=N.slice(0,4)|0,D=N.slice(4,6)|0,I=N.slice(6,8)|0,v=N.slice(8,10)|0,x=N.slice(10,12)|0,A=N.slice(12,14)|0;else if(T==="utctime")W=N.slice(0,2)|0,D=N.slice(2,4)|0,I=N.slice(4,6)|0,v=N.slice(6,8)|0,x=N.slice(8,10)|0,A=N.slice(10,12)|0,W<70?W=2000+W:W=1900+W;else return $.error("Decoding "+T+" time is not supported yet");return Date.UTC(W,D-1,I,v,x,A,0)},k.prototype._decodeNull=function(){return null},k.prototype._decodeBool=function($){let T=$.readUInt8();return $.isError(T)?T:T!==0},k.prototype._decodeInt=function($,T){let N=$.raw(),W=new M(N);return T&&(W=T[W.toString(10)]||W),W},k.prototype._use=function($,T){return typeof $=="function"&&($=$(T)),$._getDecoder("der").tree};function z($,T){let N=$.readUInt8(T);if($.isError(N))return N;let W=H.tagClass[N>>6],D=(N&32)===0;if((N&31)===31){let v=N;for(N=0;(v&128)===128;){if(v=$.readUInt8(T),$.isError(v))return v;N<<=7,N|=v&127}}else N&=31;let I=H.tag[N];return{cls:W,primitive:D,tag:N,tagStr:I}}function V($,T,N){let W=$.readUInt8(N);if($.isError(W))return W;if(!T&&W===128)return null;if((W&128)===0)return W;let D=W&127;if(D>4)return $.error("length octect is too long");W=0;for(let I=0;I<D;I++){W<<=8;let v=$.readUInt8(N);if($.isError(v))return v;W|=v}return W}}),O8=F0((l,g)=>{var E=p0(),M=M9().Buffer,j=g6();function S(H){j.call(this,H),this.enc="pem"}E(S,j),g.exports=S,S.prototype.decode=function(H,U){let k=H.toString().split(/[\r\n]+/g),z=U.label.toUpperCase(),V=/^-----(BEGIN|END) ([^-]+)-----$/,$=-1,T=-1;for(let D=0;D<k.length;D++){let I=k[D].match(V);if(I!==null&&I[2]===z)if($===-1){if(I[1]!=="BEGIN")break;$=D}else{if(I[1]!=="END")break;T=D;break}}if($===-1||T===-1)throw new Error("PEM section not found for: "+z);let N=k.slice($+1,T).join("");N.replace(/[^a-z0-9+/=]+/gi,"");let W=M.from(N,"base64");return j.prototype.decode.call(this,W,U)}}),m6=F0((l)=>{var g=l;g.der=g6(),g.pem=O8()}),T8=F0((l)=>{var g=y6(),E=m6(),M=p0(),j=l;j.define=function(H,U){return new S(H,U)};function S(H,U){this.name=H,this.body=U,this.decoders={},this.encoders={}}S.prototype._createNamed=function(H){let U=this.name;function k(z){this._initNamed(z,U)}return M(k,H),k.prototype._initNamed=function(z,V){H.call(this,z,V)},new k(this)},S.prototype._getDecoder=function(H){return H=H||"der",this.decoders.hasOwnProperty(H)||(this.decoders[H]=this._createNamed(E[H])),this.decoders[H]},S.prototype.decode=function(H,U,k){return this._getDecoder(U).decode(H,k)},S.prototype._getEncoder=function(H){return H=H||"der",this.encoders.hasOwnProperty(H)||(this.encoders[H]=this._createNamed(g[H])),this.encoders[H]},S.prototype.encode=function(H,U,k){return this._getEncoder(U).encode(H,k)}}),D8=F0((l)=>{var g=l;g.Reporter=_9().Reporter,g.DecoderBuffer=l5().DecoderBuffer,g.EncoderBuffer=l5().EncoderBuffer,g.Node=w9()}),N8=F0((l)=>{var g=l;g._reverse=function(E){let M={};return Object.keys(E).forEach(function(j){(j|0)==j&&(j=j|0);let S=E[j];M[S]=j}),M},g.der=y9()}),p6=F0((l)=>{var g=l;g.bignum=_6(),g.define=T8().define,g.base=D8(),g.constants=N8(),g.decoders=m6(),g.encoders=y6()}),L8=F0((l,g)=>{var E=p6(),M=E.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),j=E.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),S=E.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),H=E.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())}),U=E.define("RelativeDistinguishedName",function(){this.setof(j)}),k=E.define("RDNSequence",function(){this.seqof(U)}),z=E.define("Name",function(){this.choice({rdnSequence:this.use(k)})}),V=E.define("Validity",function(){this.seq().obj(this.key("notBefore").use(M),this.key("notAfter").use(M))}),$=E.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),T=E.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(S),this.key("issuer").use(z),this.key("validity").use(V),this.key("subject").use(z),this.key("subjectPublicKeyInfo").use(H),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof($).optional())}),N=E.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(T),this.key("signatureAlgorithm").use(S),this.key("signatureValue").bitstr())});g.exports=N}),k8=F0((l)=>{var g=p6();l.certificate=L8();var E=g.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});l.RSAPrivateKey=E;var M=g.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});l.RSAPublicKey=M;var j=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())});l.PublicKey=j;var S=g.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),H=g.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(S),this.key("subjectPrivateKey").octstr())});l.PrivateKey=H;var U=g.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});l.EncryptedPrivateKey=U;var k=g.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});l.DSAPrivateKey=k,l.DSAparam=g.define("DSAparam",function(){this.int()});var z=g.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(V),this.key("publicKey").optional().explicit(1).bitstr())});l.ECPrivateKey=z;var V=g.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});l.signature=g.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),I8=F0((l,g)=>{g.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}),q8=F0((l,g)=>{var E=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,M=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,j=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,S=C9(),H=q9(),U=d0().Buffer;g.exports=function(k,z){var V=k.toString(),$=V.match(E),T;if($){var N="aes"+$[1],W=U.from($[2],"hex"),D=U.from($[3].replace(/[\r\n]/g,""),"base64"),I=S(z,W.slice(0,8),parseInt($[1],10)).key,v=[],x=H.createDecipheriv(N,I,W);v.push(x.update(D)),v.push(x.final()),T=U.concat(v)}else{var A=V.match(j);T=U.from(A[2].replace(/[\r\n]/g,""),"base64")}var y=V.match(M)[1];return{tag:y,data:T}}}),J9=F0((l,g)=>{var E=k8(),M=I8(),j=q8(),S=q9(),H=j6(),U=d0().Buffer;g.exports=k;function k(V){var $;typeof V=="object"&&!U.isBuffer(V)&&($=V.passphrase,V=V.key),typeof V=="string"&&(V=U.from(V));var T=j(V,$),N=T.tag,W=T.data,D,I;switch(N){case"CERTIFICATE":I=E.certificate.decode(W,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(I||(I=E.PublicKey.decode(W,"der")),D=I.algorithm.algorithm.join("."),D){case"1.2.840.113549.1.1.1":return E.RSAPublicKey.decode(I.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return I.subjectPrivateKey=I.subjectPublicKey,{type:"ec",data:I};case"1.2.840.10040.4.1":return I.algorithm.params.pub_key=E.DSAparam.decode(I.subjectPublicKey.data,"der"),{type:"dsa",data:I.algorithm.params};default:throw new Error("unknown key id "+D)}case"ENCRYPTED PRIVATE KEY":W=E.EncryptedPrivateKey.decode(W,"der"),W=z(W,$);case"PRIVATE KEY":switch(I=E.PrivateKey.decode(W,"der"),D=I.algorithm.algorithm.join("."),D){case"1.2.840.113549.1.1.1":return E.RSAPrivateKey.decode(I.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:I.algorithm.curve,privateKey:E.ECPrivateKey.decode(I.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return I.algorithm.params.priv_key=E.DSAparam.decode(I.subjectPrivateKey,"der"),{type:"dsa",params:I.algorithm.params};default:throw new Error("unknown key id "+D)}case"RSA PUBLIC KEY":return E.RSAPublicKey.decode(W,"der");case"RSA PRIVATE KEY":return E.RSAPrivateKey.decode(W,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:E.DSAPrivateKey.decode(W,"der")};case"EC PRIVATE KEY":return W=E.ECPrivateKey.decode(W,"der"),{curve:W.parameters.value,privateKey:W.privateKey};default:throw new Error("unknown key type "+N)}}k.signature=E.signature;function z(V,$){var T=V.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(V.algorithm.decrypt.kde.kdeparams.iters.toString(),10),W=M[V.algorithm.decrypt.cipher.algo.join(".")],D=V.algorithm.decrypt.cipher.iv,I=V.subjectPrivateKey,v=parseInt(W.split("-")[1],10)/8,x=H.pbkdf2Sync($,T,N,v,"sha1"),A=S.createDecipheriv(W,x,D),y=[];return y.push(A.update(I)),y.push(A.final()),U.concat(y)}}),b6=F0((l,g)=>{g.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}),B8=F0((l,g)=>{var E=d0().Buffer,M=H6(),j=S9(),S=v9().ec,H=E9(),U=J9(),k=b6();function z(x,A,y,p,c){var n=U(A);if(n.curve){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong private key type");return V(x,n)}else if(n.type==="dsa"){if(p!=="dsa")throw new Error("wrong private key type");return $(x,n,y)}else if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong private key type");x=E.concat([c,x]);for(var i=n.modulus.byteLength(),Y0=[0,1];x.length+Y0.length+1<i;)Y0.push(255);Y0.push(0);for(var f=-1;++f<x.length;)Y0.push(x[f]);var P0=j(Y0,n);return P0}function V(x,A){var y=k[A.curve.join(".")];if(!y)throw new Error("unknown curve "+A.curve.join("."));var p=new S(y),c=p.keyFromPrivate(A.privateKey),n=c.sign(x);return E.from(n.toDER())}function $(x,A,y){for(var p=A.params.priv_key,c=A.params.p,n=A.params.q,i=A.params.g,Y0=new H(0),f,P0=W(x,n).mod(n),K=!1,C=N(p,n,x,y);K===!1;)f=I(n,C,y),Y0=v(i,f,c,n),K=f.invm(n).imul(P0.add(p.mul(Y0))).mod(n),K.cmpn(0)===0&&(K=!1,Y0=new H(0));return T(Y0,K)}function T(x,A){x=x.toArray(),A=A.toArray(),x[0]&128&&(x=[0].concat(x)),A[0]&128&&(A=[0].concat(A));var y=x.length+A.length+4,p=[48,y,2,x.length];return p=p.concat(x,[2,A.length],A),E.from(p)}function N(x,A,y,p){if(x=E.from(x.toArray()),x.length<A.byteLength()){var c=E.alloc(A.byteLength()-x.length);x=E.concat([c,x])}var n=y.length,i=D(y,A),Y0=E.alloc(n);Y0.fill(1);var f=E.alloc(n);return f=M(p,f).update(Y0).update(E.from([0])).update(x).update(i).digest(),Y0=M(p,f).update(Y0).digest(),f=M(p,f).update(Y0).update(E.from([1])).update(x).update(i).digest(),Y0=M(p,f).update(Y0).digest(),{k:f,v:Y0}}function W(x,A){var y=new H(x),p=(x.length<<3)-A.bitLength();return p>0&&y.ishrn(p),y}function D(x,A){x=W(x,A),x=x.mod(A);var y=E.from(x.toArray());if(y.length<A.byteLength()){var p=E.alloc(A.byteLength()-y.length);y=E.concat([p,y])}return y}function I(x,A,y){var p,c;do{for(p=E.alloc(0);p.length*8<x.bitLength();)A.v=M(y,A.k).update(A.v).digest(),p=E.concat([p,A.v]);c=W(p,x),A.k=M(y,A.k).update(A.v).update(E.from([0])).digest(),A.v=M(y,A.k).update(A.v).digest()}while(c.cmp(x)!==-1);return c}function v(x,A,y,p){return x.toRed(H.mont(y)).redPow(A).fromRed().mod(p)}g.exports=z,g.exports.getKey=N,g.exports.makeKey=I}),R8=F0((l,g)=>{var E=d0().Buffer,M=E9(),j=v9().ec,S=J9(),H=b6();function U($,T,N,W,D){var I=S(N);if(I.type==="ec"){if(W!=="ecdsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");return k($,T,I)}else if(I.type==="dsa"){if(W!=="dsa")throw new Error("wrong public key type");return z($,T,I)}else if(W!=="rsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");T=E.concat([D,T]);for(var v=I.modulus.byteLength(),x=[1],A=0;T.length+x.length+2<v;)x.push(255),A++;x.push(0);for(var y=-1;++y<T.length;)x.push(T[y]);x=E.from(x);var p=M.mont(I.modulus);$=new M($).toRed(p),$=$.redPow(new M(I.publicExponent)),$=E.from($.fromRed().toArray());var c=A<8?1:0;for(v=Math.min($.length,x.length),$.length!==x.length&&(c=1),y=-1;++y<v;)c|=$[y]^x[y];return c===0}function k($,T,N){var W=H[N.data.algorithm.curve.join(".")];if(!W)throw new Error("unknown curve "+N.data.algorithm.curve.join("."));var D=new j(W),I=N.data.subjectPrivateKey.data;return D.verify(T,$,I)}function z($,T,N){var W=N.data.p,D=N.data.q,I=N.data.g,v=N.data.pub_key,x=S.signature.decode($,"der"),A=x.s,y=x.r;V(A,D),V(y,D);var p=M.mont(W),c=A.invm(D),n=I.toRed(p).redPow(new M(T).mul(c).mod(D)).fromRed().mul(v.toRed(p).redPow(y.mul(c).mod(D)).fromRed()).mod(W).mod(D);return n.cmp(y)===0}function V($,T){if($.cmpn(0)<=0)throw new Error("invalid sig");if($.cmp(T)>=T)throw new Error("invalid sig")}g.exports=U}),E8=F0((l,g)=>{var E=d0().Buffer,M=u5(),j=i7(),S=p0(),H=B8(),U=R8(),k=F6();Object.keys(k).forEach(function(N){k[N].id=E.from(k[N].id,"hex"),k[N.toLowerCase()]=k[N]});function z(N){j.Writable.call(this);var W=k[N];if(!W)throw new Error("Unknown message digest");this._hashType=W.hash,this._hash=M(W.hash),this._tag=W.id,this._signType=W.sign}S(z,j.Writable),z.prototype._write=function(N,W,D){this._hash.update(N),D()},z.prototype.update=function(N,W){return typeof N=="string"&&(N=E.from(N,W)),this._hash.update(N),this},z.prototype.sign=function(N,W){this.end();var D=this._hash.digest(),I=H(D,N,this._hashType,this._signType,this._tag);return W?I.toString(W):I};function V(N){j.Writable.call(this);var W=k[N];if(!W)throw new Error("Unknown message digest");this._hash=M(W.hash),this._tag=W.id,this._signType=W.sign}S(V,j.Writable),V.prototype._write=function(N,W,D){this._hash.update(N),D()},V.prototype.update=function(N,W){return typeof N=="string"&&(N=E.from(N,W)),this._hash.update(N),this},V.prototype.verify=function(N,W,D){typeof W=="string"&&(W=E.from(W,D)),this.end();var I=this._hash.digest();return U(W,I,N,this._signType,this._tag)};function $(N){return new z(N)}function T(N){return new V(N)}g.exports={Sign:$,Verify:T,createSign:$,createVerify:T}}),S8=F0((l,g)=>{(function(E,M){function j(K,C){if(!K)throw new Error(C||"Assertion failed")}function S(K,C){K.super_=C;var J=function(){};J.prototype=C.prototype,K.prototype=new J,K.prototype.constructor=K}function H(K,C,J){if(H.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((C==="le"||C==="be")&&(J=C,C=10),this._init(K||0,C||10,J||"be"))}typeof E=="object"?E.exports=H:M.BN=H,H.BN=H,H.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}H.isBN=function(K){return K instanceof H?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===H.wordSize&&Array.isArray(K.words)},H.max=function(K,C){return K.cmp(C)>0?K:C},H.min=function(K,C){return K.cmp(C)<0?K:C},H.prototype._init=function(K,C,J){if(typeof K=="number")return this._initNumber(K,C,J);if(typeof K=="object")return this._initArray(K,C,J);C==="hex"&&(C=16),j(C===(C|0)&&C>=2&&C<=36),K=K.toString().replace(/\s+/g,"");var Y=0;K[0]==="-"&&(Y++,this.negative=1),Y<K.length&&(C===16?this._parseHex(K,Y,J):(this._parseBase(K,C,Y),J==="le"&&this._initArray(this.toArray(),C,J)))},H.prototype._initNumber=function(K,C,J){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(j(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),J==="le"&&this._initArray(this.toArray(),C,J)},H.prototype._initArray=function(K,C,J){if(j(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q,P,Z=0;if(J==="be")for(Y=K.length-1,Q=0;Y>=0;Y-=3)P=K[Y]|K[Y-1]<<8|K[Y-2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);else if(J==="le")for(Y=0,Q=0;Y<K.length;Y+=3)P=K[Y]|K[Y+1]<<8|K[Y+2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);return this.strip()};function k(K,C){var J=K.charCodeAt(C);return J>=65&&J<=70?J-55:J>=97&&J<=102?J-87:J-48&15}function z(K,C,J){var Y=k(K,J);return J-1>=C&&(Y|=k(K,J-1)<<4),Y}H.prototype._parseHex=function(K,C,J){this.length=Math.ceil((K.length-C)/6),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q=0,P=0,Z;if(J==="be")for(Y=K.length-1;Y>=C;Y-=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8;else{var F=K.length-C;for(Y=F%2===0?C+1:C;Y<K.length;Y+=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8}this.strip()};function V(K,C,J,Y){for(var Q=0,P=Math.min(K.length,J),Z=C;Z<P;Z++){var F=K.charCodeAt(Z)-48;Q*=Y,F>=49?Q+=F-49+10:F>=17?Q+=F-17+10:Q+=F}return Q}H.prototype._parseBase=function(K,C,J){this.words=[0],this.length=1;for(var Y=0,Q=1;Q<=67108863;Q*=C)Y++;Y--,Q=Q/C|0;for(var P=K.length-J,Z=P%Y,F=Math.min(P,P-Z)+J,X=0,G=J;G<F;G+=Y)X=V(K,G,G+Y,C),this.imuln(Q),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(Z!==0){var R=1;for(X=V(K,G,K.length,C),G=0;G<Z;G++)R*=C;this.imuln(R),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},H.prototype.copy=function(K){K.words=new Array(this.length);for(var C=0;C<this.length;C++)K.words[C]=this.words[C];K.length=this.length,K.negative=this.negative,K.red=this.red},H.prototype.clone=function(){var K=new H(null);return this.copy(K),K},H.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[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],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(K,C){K=K||10,C=C|0||1;var J;if(K===16||K==="hex"){J="";for(var Y=0,Q=0,P=0;P<this.length;P++){var Z=this.words[P],F=((Z<<Y|Q)&16777215).toString(16);Q=Z>>>24-Y&16777215,Q!==0||P!==this.length-1?J=$[6-F.length]+F+J:J=F+J,Y+=2,Y>=26&&(Y-=26,P--)}for(Q!==0&&(J=Q.toString(16)+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}if(K===(K|0)&&K>=2&&K<=36){var X=T[K],G=N[K];J="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(K);R=R.idivn(G),R.isZero()?J=L+J:J=$[X-L.length]+L+J}for(this.isZero()&&(J="0"+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(K,C){return j(typeof U<"u"),this.toArrayLike(U,K,C)},H.prototype.toArray=function(K,C){return this.toArrayLike(Array,K,C)},H.prototype.toArrayLike=function(K,C,J){var Y=this.byteLength(),Q=J||Math.max(1,Y);j(Y<=Q,"byte array longer than desired length"),j(Q>0,"Requested array length <= 0"),this.strip();var P=C==="le",Z=new K(Q),F,X,G=this.clone();if(P){for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[X]=F;for(;X<Q;X++)Z[X]=0}else{for(X=0;X<Q-Y;X++)Z[X]=0;for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[Q-X-1]=F}return Z},Math.clz32?H.prototype._countBits=function(K){return 32-Math.clz32(K)}:H.prototype._countBits=function(K){var C=K,J=0;return C>=4096&&(J+=13,C>>>=13),C>=64&&(J+=7,C>>>=7),C>=8&&(J+=4,C>>>=4),C>=2&&(J+=2,C>>>=2),J+C},H.prototype._zeroBits=function(K){if(K===0)return 26;var C=K,J=0;return(C&8191)===0&&(J+=13,C>>>=13),(C&127)===0&&(J+=7,C>>>=7),(C&15)===0&&(J+=4,C>>>=4),(C&3)===0&&(J+=2,C>>>=2),(C&1)===0&&J++,J},H.prototype.bitLength=function(){var K=this.words[this.length-1],C=this._countBits(K);return(this.length-1)*26+C};function W(K){for(var C=new Array(K.bitLength()),J=0;J<C.length;J++){var Y=J/26|0,Q=J%26;C[J]=(K.words[Y]&1<<Q)>>>Q}return C}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,C=0;C<this.length;C++){var J=this._zeroBits(this.words[C]);if(K+=J,J!==26)break}return K},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},H.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var C=0;C<K.length;C++)this.words[C]=this.words[C]|K.words[C];return this.strip()},H.prototype.ior=function(K){return j((this.negative|K.negative)===0),this.iuor(K)},H.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},H.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},H.prototype.iuand=function(K){var C;this.length>K.length?C=K:C=this;for(var J=0;J<C.length;J++)this.words[J]=this.words[J]&K.words[J];return this.length=C.length,this.strip()},H.prototype.iand=function(K){return j((this.negative|K.negative)===0),this.iuand(K)},H.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},H.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},H.prototype.iuxor=function(K){var C,J;this.length>K.length?(C=this,J=K):(C=K,J=this);for(var Y=0;Y<J.length;Y++)this.words[Y]=C.words[Y]^J.words[Y];if(this!==C)for(;Y<C.length;Y++)this.words[Y]=C.words[Y];return this.length=C.length,this.strip()},H.prototype.ixor=function(K){return j((this.negative|K.negative)===0),this.iuxor(K)},H.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},H.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},H.prototype.inotn=function(K){j(typeof K=="number"&&K>=0);var C=Math.ceil(K/26)|0,J=K%26;this._expand(C),J>0&&C--;for(var Y=0;Y<C;Y++)this.words[Y]=~this.words[Y]&67108863;return J>0&&(this.words[Y]=~this.words[Y]&67108863>>26-J),this.strip()},H.prototype.notn=function(K){return this.clone().inotn(K)},H.prototype.setn=function(K,C){j(typeof K=="number"&&K>=0);var J=K/26|0,Y=K%26;return this._expand(J+1),C?this.words[J]=this.words[J]|1<<Y:this.words[J]=this.words[J]&~(1<<Y),this.strip()},H.prototype.iadd=function(K){var C;if(this.negative!==0&&K.negative===0)return this.negative=0,C=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,C=this.isub(K),K.negative=1,C._normSign();var J,Y;this.length>K.length?(J=this,Y=K):(J=K,Y=this);for(var Q=0,P=0;P<Y.length;P++)C=(J.words[P]|0)+(Y.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;for(;Q!==0&&P<J.length;P++)C=(J.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;if(this.length=J.length,Q!==0)this.words[this.length]=Q,this.length++;else if(J!==this)for(;P<J.length;P++)this.words[P]=J.words[P];return this},H.prototype.add=function(K){var C;return K.negative!==0&&this.negative===0?(K.negative=0,C=this.sub(K),K.negative^=1,C):K.negative===0&&this.negative!==0?(this.negative=0,C=K.sub(this),this.negative=1,C):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},H.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var C=this.iadd(K);return K.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var J=this.cmp(K);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Y,Q;J>0?(Y=this,Q=K):(Y=K,Q=this);for(var P=0,Z=0;Z<Q.length;Z++)C=(Y.words[Z]|0)-(Q.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;for(;P!==0&&Z<Y.length;Z++)C=(Y.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;if(P===0&&Z<Y.length&&Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this.length=Math.max(this.length,Z),Y!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(K){return this.clone().isub(K)};function D(K,C,J){J.negative=C.negative^K.negative;var Y=K.length+C.length|0;J.length=Y,Y=Y-1|0;var Q=K.words[0]|0,P=C.words[0]|0,Z=Q*P,F=Z&67108863,X=Z/67108864|0;J.words[0]=F;for(var G=1;G<Y;G++){for(var R=X>>>26,L=X&67108863,_=Math.min(G,C.length-1),s=Math.max(0,G-K.length+1);s<=_;s++){var r=G-s|0;Q=K.words[r]|0,P=C.words[s]|0,Z=Q*P+L,R+=Z/67108864|0,L=Z&67108863}J.words[G]=L|0,X=R|0}return X!==0?J.words[G]=X|0:J.length--,J.strip()}var I=function(K,C,J){var Y=K.words,Q=C.words,P=J.words,Z=0,F,X,G,R=Y[0]|0,L=R&8191,_=R>>>13,s=Y[1]|0,r=s&8191,C0=s>>>13,u=Y[2]|0,d=u&8191,a=u>>>13,V0=Y[3]|0,K0=V0&8191,Q0=V0>>>13,w=Y[4]|0,q=w&8191,m=w>>>13,e=Y[5]|0,X0=e&8191,t=e>>>13,_0=Y[6]|0,H0=_0&8191,G0=_0>>>13,w0=Y[7]|0,W0=w0&8191,Z0=w0>>>13,c0=Y[8]|0,O=c0&8191,B=c0>>>13,b=Y[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,J0=z0&8191,$0=z0>>>13,b0=Q[1]|0,U0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,F5=Q[3]|0,T0=F5&8191,O0=F5>>>13,l0=Q[4]|0,L0=l0&8191,k0=l0>>>13,G5=Q[5]|0,I0=G5&8191,q0=G5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,Z5=Q[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=Q[8]|0,x0=$5&8191,A0=$5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;J.negative=K.negative^C.negative,J.length=19,F=Math.imul(L,J0),X=Math.imul(L,$0),X=X+Math.imul(_,J0)|0,G=Math.imul(_,$0);var Q5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,F=Math.imul(r,J0),X=Math.imul(r,$0),X=X+Math.imul(C0,J0)|0,G=Math.imul(C0,$0),F=F+Math.imul(L,U0)|0,X=X+Math.imul(L,j0)|0,X=X+Math.imul(_,U0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(g0>>>26)|0,g0&=67108863,F=Math.imul(d,J0),X=Math.imul(d,$0),X=X+Math.imul(a,J0)|0,G=Math.imul(a,$0),F=F+Math.imul(r,U0)|0,X=X+Math.imul(r,j0)|0,X=X+Math.imul(C0,U0)|0,G=G+Math.imul(C0,j0)|0,F=F+Math.imul(L,D0)|0,X=X+Math.imul(L,N0)|0,X=X+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,F=Math.imul(K0,J0),X=Math.imul(K0,$0),X=X+Math.imul(Q0,J0)|0,G=Math.imul(Q0,$0),F=F+Math.imul(d,U0)|0,X=X+Math.imul(d,j0)|0,X=X+Math.imul(a,U0)|0,G=G+Math.imul(a,j0)|0,F=F+Math.imul(r,D0)|0,X=X+Math.imul(r,N0)|0,X=X+Math.imul(C0,D0)|0,G=G+Math.imul(C0,N0)|0,F=F+Math.imul(L,T0)|0,X=X+Math.imul(L,O0)|0,X=X+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(h0>>>26)|0,h0&=67108863,F=Math.imul(q,J0),X=Math.imul(q,$0),X=X+Math.imul(m,J0)|0,G=Math.imul(m,$0),F=F+Math.imul(K0,U0)|0,X=X+Math.imul(K0,j0)|0,X=X+Math.imul(Q0,U0)|0,G=G+Math.imul(Q0,j0)|0,F=F+Math.imul(d,D0)|0,X=X+Math.imul(d,N0)|0,X=X+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,F=F+Math.imul(r,T0)|0,X=X+Math.imul(r,O0)|0,X=X+Math.imul(C0,T0)|0,G=G+Math.imul(C0,O0)|0,F=F+Math.imul(L,L0)|0,X=X+Math.imul(L,k0)|0,X=X+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,F=Math.imul(X0,J0),X=Math.imul(X0,$0),X=X+Math.imul(t,J0)|0,G=Math.imul(t,$0),F=F+Math.imul(q,U0)|0,X=X+Math.imul(q,j0)|0,X=X+Math.imul(m,U0)|0,G=G+Math.imul(m,j0)|0,F=F+Math.imul(K0,D0)|0,X=X+Math.imul(K0,N0)|0,X=X+Math.imul(Q0,D0)|0,G=G+Math.imul(Q0,N0)|0,F=F+Math.imul(d,T0)|0,X=X+Math.imul(d,O0)|0,X=X+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,F=F+Math.imul(r,L0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(C0,L0)|0,G=G+Math.imul(C0,k0)|0,F=F+Math.imul(L,I0)|0,X=X+Math.imul(L,q0)|0,X=X+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,F=Math.imul(H0,J0),X=Math.imul(H0,$0),X=X+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),F=F+Math.imul(X0,U0)|0,X=X+Math.imul(X0,j0)|0,X=X+Math.imul(t,U0)|0,G=G+Math.imul(t,j0)|0,F=F+Math.imul(q,D0)|0,X=X+Math.imul(q,N0)|0,X=X+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,F=F+Math.imul(K0,T0)|0,X=X+Math.imul(K0,O0)|0,X=X+Math.imul(Q0,T0)|0,G=G+Math.imul(Q0,O0)|0,F=F+Math.imul(d,L0)|0,X=X+Math.imul(d,k0)|0,X=X+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,F=F+Math.imul(r,I0)|0,X=X+Math.imul(r,q0)|0,X=X+Math.imul(C0,I0)|0,G=G+Math.imul(C0,q0)|0,F=F+Math.imul(L,B0)|0,X=X+Math.imul(L,R0)|0,X=X+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,F=Math.imul(W0,J0),X=Math.imul(W0,$0),X=X+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),F=F+Math.imul(H0,U0)|0,X=X+Math.imul(H0,j0)|0,X=X+Math.imul(G0,U0)|0,G=G+Math.imul(G0,j0)|0,F=F+Math.imul(X0,D0)|0,X=X+Math.imul(X0,N0)|0,X=X+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,F=F+Math.imul(q,T0)|0,X=X+Math.imul(q,O0)|0,X=X+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,F=F+Math.imul(K0,L0)|0,X=X+Math.imul(K0,k0)|0,X=X+Math.imul(Q0,L0)|0,G=G+Math.imul(Q0,k0)|0,F=F+Math.imul(d,I0)|0,X=X+Math.imul(d,q0)|0,X=X+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,F=F+Math.imul(r,B0)|0,X=X+Math.imul(r,R0)|0,X=X+Math.imul(C0,B0)|0,G=G+Math.imul(C0,R0)|0,F=F+Math.imul(L,E0)|0,X=X+Math.imul(L,S0)|0,X=X+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,F=Math.imul(O,J0),X=Math.imul(O,$0),X=X+Math.imul(B,J0)|0,G=Math.imul(B,$0),F=F+Math.imul(W0,U0)|0,X=X+Math.imul(W0,j0)|0,X=X+Math.imul(Z0,U0)|0,G=G+Math.imul(Z0,j0)|0,F=F+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,F=F+Math.imul(X0,T0)|0,X=X+Math.imul(X0,O0)|0,X=X+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,F=F+Math.imul(q,L0)|0,X=X+Math.imul(q,k0)|0,X=X+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,F=F+Math.imul(K0,I0)|0,X=X+Math.imul(K0,q0)|0,X=X+Math.imul(Q0,I0)|0,G=G+Math.imul(Q0,q0)|0,F=F+Math.imul(d,B0)|0,X=X+Math.imul(d,R0)|0,X=X+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,F=F+Math.imul(r,E0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(C0,E0)|0,G=G+Math.imul(C0,S0)|0,F=F+Math.imul(L,x0)|0,X=X+Math.imul(L,A0)|0,X=X+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,F=Math.imul(h,J0),X=Math.imul(h,$0),X=X+Math.imul(o,J0)|0,G=Math.imul(o,$0),F=F+Math.imul(O,U0)|0,X=X+Math.imul(O,j0)|0,X=X+Math.imul(B,U0)|0,G=G+Math.imul(B,j0)|0,F=F+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,F=F+Math.imul(H0,T0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,F=F+Math.imul(X0,L0)|0,X=X+Math.imul(X0,k0)|0,X=X+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,F=F+Math.imul(q,I0)|0,X=X+Math.imul(q,q0)|0,X=X+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,F=F+Math.imul(K0,B0)|0,X=X+Math.imul(K0,R0)|0,X=X+Math.imul(Q0,B0)|0,G=G+Math.imul(Q0,R0)|0,F=F+Math.imul(d,E0)|0,X=X+Math.imul(d,S0)|0,X=X+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,F=F+Math.imul(r,x0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(C0,x0)|0,G=G+Math.imul(C0,A0)|0,F=F+Math.imul(L,v0)|0,X=X+Math.imul(L,M0)|0,X=X+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,F=Math.imul(h,U0),X=Math.imul(h,j0),X=X+Math.imul(o,U0)|0,G=Math.imul(o,j0),F=F+Math.imul(O,D0)|0,X=X+Math.imul(O,N0)|0,X=X+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,F=F+Math.imul(W0,T0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,F=F+Math.imul(H0,L0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,F=F+Math.imul(X0,I0)|0,X=X+Math.imul(X0,q0)|0,X=X+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,F=F+Math.imul(q,B0)|0,X=X+Math.imul(q,R0)|0,X=X+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,F=F+Math.imul(K0,E0)|0,X=X+Math.imul(K0,S0)|0,X=X+Math.imul(Q0,E0)|0,G=G+Math.imul(Q0,S0)|0,F=F+Math.imul(d,x0)|0,X=X+Math.imul(d,A0)|0,X=X+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,F=F+Math.imul(r,v0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(C0,v0)|0,G=G+Math.imul(C0,M0)|0;var r0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,F=Math.imul(h,D0),X=Math.imul(h,N0),X=X+Math.imul(o,D0)|0,G=Math.imul(o,N0),F=F+Math.imul(O,T0)|0,X=X+Math.imul(O,O0)|0,X=X+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,F=F+Math.imul(W0,L0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,F=F+Math.imul(H0,I0)|0,X=X+Math.imul(H0,q0)|0,X=X+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,F=F+Math.imul(X0,B0)|0,X=X+Math.imul(X0,R0)|0,X=X+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,F=F+Math.imul(q,E0)|0,X=X+Math.imul(q,S0)|0,X=X+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,F=F+Math.imul(K0,x0)|0,X=X+Math.imul(K0,A0)|0,X=X+Math.imul(Q0,x0)|0,G=G+Math.imul(Q0,A0)|0,F=F+Math.imul(d,v0)|0,X=X+Math.imul(d,M0)|0,X=X+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,F=Math.imul(h,T0),X=Math.imul(h,O0),X=X+Math.imul(o,T0)|0,G=Math.imul(o,O0),F=F+Math.imul(O,L0)|0,X=X+Math.imul(O,k0)|0,X=X+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,F=F+Math.imul(W0,I0)|0,X=X+Math.imul(W0,q0)|0,X=X+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,F=F+Math.imul(H0,B0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,F=F+Math.imul(X0,E0)|0,X=X+Math.imul(X0,S0)|0,X=X+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,F=F+Math.imul(q,x0)|0,X=X+Math.imul(q,A0)|0,X=X+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,F=F+Math.imul(K0,v0)|0,X=X+Math.imul(K0,M0)|0,X=X+Math.imul(Q0,v0)|0,G=G+Math.imul(Q0,M0)|0;var t0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,F=Math.imul(h,L0),X=Math.imul(h,k0),X=X+Math.imul(o,L0)|0,G=Math.imul(o,k0),F=F+Math.imul(O,I0)|0,X=X+Math.imul(O,q0)|0,X=X+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,F=F+Math.imul(W0,B0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,F=F+Math.imul(H0,E0)|0,X=X+Math.imul(H0,S0)|0,X=X+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,F=F+Math.imul(X0,x0)|0,X=X+Math.imul(X0,A0)|0,X=X+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,F=F+Math.imul(q,v0)|0,X=X+Math.imul(q,M0)|0,X=X+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,F=Math.imul(h,I0),X=Math.imul(h,q0),X=X+Math.imul(o,I0)|0,G=Math.imul(o,q0),F=F+Math.imul(O,B0)|0,X=X+Math.imul(O,R0)|0,X=X+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,F=F+Math.imul(W0,E0)|0,X=X+Math.imul(W0,S0)|0,X=X+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,F=F+Math.imul(H0,x0)|0,X=X+Math.imul(H0,A0)|0,X=X+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,F=F+Math.imul(X0,v0)|0,X=X+Math.imul(X0,M0)|0,X=X+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var K5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,F=Math.imul(h,B0),X=Math.imul(h,R0),X=X+Math.imul(o,B0)|0,G=Math.imul(o,R0),F=F+Math.imul(O,E0)|0,X=X+Math.imul(O,S0)|0,X=X+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,F=F+Math.imul(W0,x0)|0,X=X+Math.imul(W0,A0)|0,X=X+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,F=F+Math.imul(H0,v0)|0,X=X+Math.imul(H0,M0)|0,X=X+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var X5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,F=Math.imul(h,E0),X=Math.imul(h,S0),X=X+Math.imul(o,E0)|0,G=Math.imul(o,S0),F=F+Math.imul(O,x0)|0,X=X+Math.imul(O,A0)|0,X=X+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,F=F+Math.imul(W0,v0)|0,X=X+Math.imul(W0,M0)|0,X=X+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var C5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(C5>>>26)|0,C5&=67108863,F=Math.imul(h,x0),X=Math.imul(h,A0),X=X+Math.imul(o,x0)|0,G=Math.imul(o,A0),F=F+Math.imul(O,v0)|0,X=X+Math.imul(O,M0)|0,X=X+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var Y5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,F=Math.imul(h,v0),X=Math.imul(h,M0),X=X+Math.imul(o,v0)|0,G=Math.imul(o,M0);var J5=(Z+F|0)+((X&8191)<<13)|0;return Z=(G+(X>>>13)|0)+(J5>>>26)|0,J5&=67108863,P[0]=Q5,P[1]=g0,P[2]=m0,P[3]=h0,P[4]=u0,P[5]=o0,P[6]=s0,P[7]=a0,P[8]=f0,P[9]=n0,P[10]=r0,P[11]=i0,P[12]=t0,P[13]=e0,P[14]=K5,P[15]=X5,P[16]=C5,P[17]=Y5,P[18]=J5,Z!==0&&(P[19]=Z,J.length++),J};Math.imul||(I=D);function v(K,C,J){J.negative=C.negative^K.negative,J.length=K.length+C.length;for(var Y=0,Q=0,P=0;P<J.length-1;P++){var Z=Q;Q=0;for(var F=Y&67108863,X=Math.min(P,C.length-1),G=Math.max(0,P-K.length+1);G<=X;G++){var R=P-G,L=K.words[R]|0,_=C.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+F|0,F=r&67108863,Z=Z+(r>>>26)|0,Q+=Z>>>26,Z&=67108863}J.words[P]=F,Y=Z,Z=Q}return Y!==0?J.words[P]=Y:J.length--,J.strip()}function x(K,C,J){var Y=new A;return Y.mulp(K,C,J)}H.prototype.mulTo=function(K,C){var J,Y=this.length+K.length;return this.length===10&&K.length===10?J=I(this,K,C):Y<63?J=D(this,K,C):Y<1024?J=v(this,K,C):J=x(this,K,C),J};function A(K,C){this.x=K,this.y=C}A.prototype.makeRBT=function(K){for(var C=new Array(K),J=H.prototype._countBits(K)-1,Y=0;Y<K;Y++)C[Y]=this.revBin(Y,J,K);return C},A.prototype.revBin=function(K,C,J){if(K===0||K===J-1)return K;for(var Y=0,Q=0;Q<C;Q++)Y|=(K&1)<<C-Q-1,K>>=1;return Y},A.prototype.permute=function(K,C,J,Y,Q,P){for(var Z=0;Z<P;Z++)Y[Z]=C[K[Z]],Q[Z]=J[K[Z]]},A.prototype.transform=function(K,C,J,Y,Q,P){this.permute(P,K,C,J,Y,Q);for(var Z=1;Z<Q;Z<<=1)for(var F=Z<<1,X=Math.cos(2*Math.PI/F),G=Math.sin(2*Math.PI/F),R=0;R<Q;R+=F)for(var L=X,_=G,s=0;s<Z;s++){var r=J[R+s],C0=Y[R+s],u=J[R+s+Z],d=Y[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,J[R+s]=r+u,Y[R+s]=C0+d,J[R+s+Z]=r-u,Y[R+s+Z]=C0-d,s!==F&&(a=X*L-G*_,_=X*_+G*L,L=a)}},A.prototype.guessLen13b=function(K,C){var J=Math.max(C,K)|1,Y=J&1,Q=0;for(J=J/2|0;J;J=J>>>1)Q++;return 1<<Q+1+Y},A.prototype.conjugate=function(K,C,J){if(!(J<=1))for(var Y=0;Y<J/2;Y++){var Q=K[Y];K[Y]=K[J-Y-1],K[J-Y-1]=Q,Q=C[Y],C[Y]=-C[J-Y-1],C[J-Y-1]=-Q}},A.prototype.normalize13b=function(K,C){for(var J=0,Y=0;Y<C/2;Y++){var Q=Math.round(K[2*Y+1]/C)*8192+Math.round(K[2*Y]/C)+J;K[Y]=Q&67108863,Q<67108864?J=0:J=Q/67108864|0}return K},A.prototype.convert13b=function(K,C,J,Y){for(var Q=0,P=0;P<C;P++)Q=Q+(K[P]|0),J[2*P]=Q&8191,Q=Q>>>13,J[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*C;P<Y;++P)J[P]=0;j(Q===0),j((Q&-8192)===0)},A.prototype.stub=function(K){for(var C=new Array(K),J=0;J<K;J++)C[J]=0;return C},A.prototype.mulp=function(K,C,J){var Y=2*this.guessLen13b(K.length,C.length),Q=this.makeRBT(Y),P=this.stub(Y),Z=new Array(Y),F=new Array(Y),X=new Array(Y),G=new Array(Y),R=new Array(Y),L=new Array(Y),_=J.words;_.length=Y,this.convert13b(K.words,K.length,Z,Y),this.convert13b(C.words,C.length,G,Y),this.transform(Z,P,F,X,Y,Q),this.transform(G,P,R,L,Y,Q);for(var s=0;s<Y;s++){var r=F[s]*R[s]-X[s]*L[s];X[s]=F[s]*L[s]+X[s]*R[s],F[s]=r}return this.conjugate(F,X,Y),this.transform(F,X,_,P,Y,Q),this.conjugate(_,P,Y),this.normalize13b(_,Y),J.negative=K.negative^C.negative,J.length=K.length+C.length,J.strip()},H.prototype.mul=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),this.mulTo(K,C)},H.prototype.mulf=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),x(this,K,C)},H.prototype.imul=function(K){return this.clone().mulTo(K,this)},H.prototype.imuln=function(K){j(typeof K=="number"),j(K<67108864);for(var C=0,J=0;J<this.length;J++){var Y=(this.words[J]|0)*K,Q=(Y&67108863)+(C&67108863);C>>=26,C+=Y/67108864|0,C+=Q>>>26,this.words[J]=Q&67108863}return C!==0&&(this.words[J]=C,this.length++),this},H.prototype.muln=function(K){return this.clone().imuln(K)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(K){var C=W(K);if(C.length===0)return new H(1);for(var J=this,Y=0;Y<C.length&&C[Y]===0;Y++,J=J.sqr());if(++Y<C.length)for(var Q=J.sqr();Y<C.length;Y++,Q=Q.sqr())C[Y]!==0&&(J=J.mul(Q));return J},H.prototype.iushln=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=67108863>>>26-C<<26-C,Q;if(C!==0){var P=0;for(Q=0;Q<this.length;Q++){var Z=this.words[Q]&Y,F=(this.words[Q]|0)-Z<<C;this.words[Q]=F|P,P=Z>>>26-C}P&&(this.words[Q]=P,this.length++)}if(J!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+J]=this.words[Q];for(Q=0;Q<J;Q++)this.words[Q]=0;this.length+=J}return this.strip()},H.prototype.ishln=function(K){return j(this.negative===0),this.iushln(K)},H.prototype.iushrn=function(K,C,J){j(typeof K=="number"&&K>=0);var Y;C?Y=(C-C%26)/26:Y=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),Z=67108863^67108863>>>Q<<Q,F=J;if(Y-=P,Y=Math.max(0,Y),F){for(var X=0;X<P;X++)F.words[X]=this.words[X];F.length=P}if(P!==0)if(this.length>P)for(this.length-=P,X=0;X<this.length;X++)this.words[X]=this.words[X+P];else this.words[0]=0,this.length=1;var G=0;for(X=this.length-1;X>=0&&(G!==0||X>=Y);X--){var R=this.words[X]|0;this.words[X]=G<<26-Q|R>>>Q,G=R&Z}return F&&G!==0&&(F.words[F.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(K,C,J){return j(this.negative===0),this.iushrn(K,C,J)},H.prototype.shln=function(K){return this.clone().ishln(K)},H.prototype.ushln=function(K){return this.clone().iushln(K)},H.prototype.shrn=function(K){return this.clone().ishrn(K)},H.prototype.ushrn=function(K){return this.clone().iushrn(K)},H.prototype.testn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return!1;var Q=this.words[J];return!!(Q&Y)},H.prototype.imaskn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(C!==0&&J++,this.length=Math.min(J,this.length),C!==0){var Y=67108863^67108863>>>C<<C;this.words[this.length-1]&=Y}return this.strip()},H.prototype.maskn=function(K){return this.clone().imaskn(K)},H.prototype.iaddn=function(K){return j(typeof K=="number"),j(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},H.prototype._iaddn=function(K){this.words[0]+=K;for(var C=0;C<this.length&&this.words[C]>=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},H.prototype.isubn=function(K){if(j(typeof K=="number"),j(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C<this.length&&this.words[C]<0;C++)this.words[C]+=67108864,this.words[C+1]-=1;return this.strip()},H.prototype.addn=function(K){return this.clone().iaddn(K)},H.prototype.subn=function(K){return this.clone().isubn(K)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(K,C,J){var Y=K.length+J,Q;this._expand(Y);var P,Z=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+J]|0)+Z;var F=(K.words[Q]|0)*C;P-=F&67108863,Z=(P>>26)-(F/67108864|0),this.words[Q+J]=P&67108863}for(;Q<this.length-J;Q++)P=(this.words[Q+J]|0)+Z,Z=P>>26,this.words[Q+J]=P&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+Z,Z=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(K,C){var J=this.length-K.length,Y=this.clone(),Q=K,P=Q.words[Q.length-1]|0,Z=this._countBits(P);J=26-Z,J!==0&&(Q=Q.ushln(J),Y.iushln(J),P=Q.words[Q.length-1]|0);var F=Y.length-Q.length,X;if(C!=="mod"){X=new H(null),X.length=F+1,X.words=new Array(X.length);for(var G=0;G<X.length;G++)X.words[G]=0}var R=Y.clone()._ishlnsubmul(Q,1,F);R.negative===0&&(Y=R,X&&(X.words[F]=1));for(var L=F-1;L>=0;L--){var _=(Y.words[Q.length+L]|0)*67108864+(Y.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),Y._ishlnsubmul(Q,_,L);Y.negative!==0;)_--,Y.negative=0,Y._ishlnsubmul(Q,1,L),Y.isZero()||(Y.negative^=1);X&&(X.words[L]=_)}return X&&X.strip(),Y.strip(),C!=="div"&&J!==0&&Y.iushrn(J),{div:X||null,mod:Y}},H.prototype.divmod=function(K,C,J){if(j(!K.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Y,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,C),C!=="mod"&&(Y=P.div.neg()),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.iadd(K)),{div:Y,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),C),C!=="mod"&&(Y=P.div.neg()),{div:Y,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),C),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new H(0),mod:this}:K.length===1?C==="div"?{div:this.divn(K.words[0]),mod:null}:C==="mod"?{div:null,mod:new H(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new H(this.modn(K.words[0]))}:this._wordDiv(K,C)},H.prototype.div=function(K){return this.divmod(K,"div",!1).div},H.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},H.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},H.prototype.divRound=function(K){var C=this.divmod(K);if(C.mod.isZero())return C.div;var J=C.div.negative!==0?C.mod.isub(K):C.mod,Y=K.ushrn(1),Q=K.andln(1),P=J.cmp(Y);return P<0||Q===1&&P===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},H.prototype.modn=function(K){j(K<=67108863);for(var C=67108864%K,J=0,Y=this.length-1;Y>=0;Y--)J=(C*J+(this.words[Y]|0))%K;return J},H.prototype.idivn=function(K){j(K<=67108863);for(var C=0,J=this.length-1;J>=0;J--){var Y=(this.words[J]|0)+C*67108864;this.words[J]=Y/K|0,C=Y%K}return this.strip()},H.prototype.divn=function(K){return this.clone().idivn(K)},H.prototype.egcd=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=new H(0),Z=new H(1),F=0;C.isEven()&&J.isEven();)C.iushrn(1),J.iushrn(1),++F;for(var X=J.clone(),G=C.clone();!C.isZero();){for(var R=0,L=1;(C.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(C.iushrn(R);R-- >0;)(Y.isOdd()||Q.isOdd())&&(Y.iadd(X),Q.isub(G)),Y.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(J.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(J.iushrn(_);_-- >0;)(P.isOdd()||Z.isOdd())&&(P.iadd(X),Z.isub(G)),P.iushrn(1),Z.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(P),Q.isub(Z)):(J.isub(C),P.isub(Y),Z.isub(Q))}return{a:P,b:Z,gcd:J.iushln(F)}},H.prototype._invmp=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=J.clone();C.cmpn(1)>0&&J.cmpn(1)>0;){for(var Z=0,F=1;(C.words[0]&F)===0&&Z<26;++Z,F<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)Y.isOdd()&&Y.iadd(P),Y.iushrn(1);for(var X=0,G=1;(J.words[0]&G)===0&&X<26;++X,G<<=1);if(X>0)for(J.iushrn(X);X-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(Q)):(J.isub(C),Q.isub(Y))}var R;return C.cmpn(1)===0?R=Y:R=Q,R.cmpn(0)<0&&R.iadd(K),R},H.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var C=this.clone(),J=K.clone();C.negative=0,J.negative=0;for(var Y=0;C.isEven()&&J.isEven();Y++)C.iushrn(1),J.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;J.isEven();)J.iushrn(1);var Q=C.cmp(J);if(Q<0){var P=C;C=J,J=P}else if(Q===0||J.cmpn(1)===0)break;C.isub(J)}while(!0);return J.iushln(Y)},H.prototype.invm=function(K){return this.egcd(K).a.umod(K)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(K){return this.words[0]&K},H.prototype.bincn=function(K){j(typeof K=="number");var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return this._expand(J+1),this.words[J]|=Y,this;for(var Q=Y,P=J;Q!==0&&P<this.length;P++){var Z=this.words[P]|0;Z+=Q,Q=Z>>>26,Z&=67108863,this.words[P]=Z}return Q!==0&&(this.words[P]=Q,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(K){var C=K<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this.strip();var J;if(this.length>1)J=1;else{C&&(K=-K),j(K<=67108863,"Number is too big");var Y=this.words[0]|0;J=Y===K?0:Y<K?-1:1}return this.negative!==0?-J|0:J},H.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var C=this.ucmp(K);return this.negative!==0?-C|0:C},H.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var C=0,J=this.length-1;J>=0;J--){var Y=this.words[J]|0,Q=K.words[J]|0;if(Y!==Q){Y<Q?C=-1:Y>Q&&(C=1);break}}return C},H.prototype.gtn=function(K){return this.cmpn(K)===1},H.prototype.gt=function(K){return this.cmp(K)===1},H.prototype.gten=function(K){return this.cmpn(K)>=0},H.prototype.gte=function(K){return this.cmp(K)>=0},H.prototype.ltn=function(K){return this.cmpn(K)===-1},H.prototype.lt=function(K){return this.cmp(K)===-1},H.prototype.lten=function(K){return this.cmpn(K)<=0},H.prototype.lte=function(K){return this.cmp(K)<=0},H.prototype.eqn=function(K){return this.cmpn(K)===0},H.prototype.eq=function(K){return this.cmp(K)===0},H.red=function(K){return new f(K)},H.prototype.toRed=function(K){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(K){return this.red=K,this},H.prototype.forceRed=function(K){return j(!this.red,"Already a number in reduction context"),this._forceRed(K)},H.prototype.redAdd=function(K){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},H.prototype.redIAdd=function(K){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},H.prototype.redSub=function(K){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},H.prototype.redISub=function(K){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},H.prototype.redShl=function(K){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},H.prototype.redMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},H.prototype.redIMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(K){return j(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var y={k256:null,p224:null,p192:null,p25519:null};function p(K,C){this.name=K,this.p=new H(C,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new H(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var C=K,J;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),J=C.bitLength();while(J>this.n);var Y=J<this.n?-1:C.ucmp(this.p);return Y===0?(C.words[0]=0,C.length=1):Y>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},p.prototype.split=function(K,C){K.iushrn(this.n,0,C)},p.prototype.imulK=function(K){return K.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(K,C){for(var J=4194303,Y=Math.min(K.length,9),Q=0;Q<Y;Q++)C.words[Q]=K.words[Q];if(C.length=Y,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(C.words[C.length++]=P&J,Q=10;Q<K.length;Q++){var Z=K.words[Q]|0;K.words[Q-10]=(Z&J)<<4|P>>>22,P=Z}P>>>=22,K.words[Q-10]=P,P===0&&K.length>10?K.length-=10:K.length-=9},c.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var C=0,J=0;J<K.length;J++){var Y=K.words[J]|0;C+=Y*977,K.words[J]=C&67108863,C=Y*64+(C/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Y0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Y0,p),Y0.prototype.imulK=function(K){for(var C=0,J=0;J<K.length;J++){var Y=(K.words[J]|0)*19+C,Q=Y&67108863;Y>>>=26,K.words[J]=Q,C=Y}return C!==0&&(K.words[K.length++]=C),K},H._prime=function(K){if(y[K])return y[K];var C;if(K==="k256")C=new c;else if(K==="p224")C=new n;else if(K==="p192")C=new i;else if(K==="p25519")C=new Y0;else throw new Error("Unknown prime "+K);return y[K]=C,C};function f(K){if(typeof K=="string"){var C=H._prime(K);this.m=C.p,this.prime=C}else j(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){j(K.negative===0,"red works only with positives"),j(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,C){j((K.negative|C.negative)===0,"red works only with positives"),j(K.red&&K.red===C.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,C){this._verify2(K,C);var J=K.add(C);return J.cmp(this.m)>=0&&J.isub(this.m),J._forceRed(this)},f.prototype.iadd=function(K,C){this._verify2(K,C);var J=K.iadd(C);return J.cmp(this.m)>=0&&J.isub(this.m),J},f.prototype.sub=function(K,C){this._verify2(K,C);var J=K.sub(C);return J.cmpn(0)<0&&J.iadd(this.m),J._forceRed(this)},f.prototype.isub=function(K,C){this._verify2(K,C);var J=K.isub(C);return J.cmpn(0)<0&&J.iadd(this.m),J},f.prototype.shl=function(K,C){return this._verify1(K),this.imod(K.ushln(C))},f.prototype.imul=function(K,C){return this._verify2(K,C),this.imod(K.imul(C))},f.prototype.mul=function(K,C){return this._verify2(K,C),this.imod(K.mul(C))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var C=this.m.andln(3);if(j(C%2===1),C===3){var J=this.m.add(new H(1)).iushrn(2);return this.pow(K,J)}for(var Y=this.m.subn(1),Q=0;!Y.isZero()&&Y.andln(1)===0;)Q++,Y.iushrn(1);j(!Y.isZero());var P=new H(1).toRed(this),Z=P.redNeg(),F=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new H(2*X*X).toRed(this);this.pow(X,F).cmp(Z)!==0;)X.redIAdd(Z);for(var G=this.pow(X,Y),R=this.pow(K,Y.addn(1).iushrn(1)),L=this.pow(K,Y),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();j(r<_);var C0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(C0),G=C0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(K){var C=K._invmp(this.m);return C.negative!==0?(C.negative=0,this.imod(C).redNeg()):this.imod(C)},f.prototype.pow=function(K,C){if(C.isZero())return new H(1).toRed(this);if(C.cmpn(1)===0)return K.clone();var J=4,Y=new Array(1<<J);Y[0]=new H(1).toRed(this),Y[1]=K;for(var Q=2;Q<Y.length;Q++)Y[Q]=this.mul(Y[Q-1],K);var P=Y[0],Z=0,F=0,X=C.bitLength()%26;for(X===0&&(X=26),Q=C.length-1;Q>=0;Q--){for(var G=C.words[Q],R=X-1;R>=0;R--){var L=G>>R&1;if(P!==Y[0]&&(P=this.sqr(P)),L===0&&Z===0){F=0;continue}Z<<=1,Z|=L,F++,!(F!==J&&(Q!==0||R!==0))&&(P=this.mul(P,Y[Z]),F=0,Z=0)}X=26}return P},f.prototype.convertTo=function(K){var C=K.umod(this.m);return C===K?C.clone():C},f.prototype.convertFrom=function(K){var C=K.clone();return C.red=null,C},H.mont=function(K){return new P0(K)};function P0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(P0,f),P0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},P0.prototype.convertFrom=function(K){var C=this.imod(K.mul(this.rinv));return C.red=null,C},P0.prototype.imul=function(K,C){if(K.isZero()||C.isZero())return K.words[0]=0,K.length=1,K;var J=K.imul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.mul=function(K,C){if(K.isZero()||C.isZero())return new H(0)._forceRed(this);var J=K.mul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.invm=function(K){var C=this.imod(K._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(typeof g>"u"||g,l)}),x8=F0((l,g)=>{var E=v9(),M=S8();g.exports=function(U){return new S(U)};var j={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};j.p224=j.secp224r1,j.p256=j.secp256r1=j.prime256v1,j.p192=j.secp192r1=j.prime192v1,j.p384=j.secp384r1,j.p521=j.secp521r1;function S(U){this.curveType=j[U],this.curveType||(this.curveType={name:U}),this.curve=new E.ec(this.curveType.name),this.keys=void 0}S.prototype.generateKeys=function(U,k){return this.keys=this.curve.genKeyPair(),this.getPublicKey(U,k)},S.prototype.computeSecret=function(U,k,z){k=k||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,k));var V=this.curve.keyFromPublic(U).getPublic(),$=V.mul(this.keys.getPrivate()).getX();return H($,z,this.curveType.byteLength)},S.prototype.getPublicKey=function(U,k){var z=this.keys.getPublic(k==="compressed",!0);return k==="hybrid"&&(z[z.length-1]%2?z[0]=7:z[0]=6),H(z,U)},S.prototype.getPrivateKey=function(U){return H(this.keys.getPrivate(),U)},S.prototype.setPublicKey=function(U,k){return k=k||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,k)),this.keys._importPublic(U),this},S.prototype.setPrivateKey=function(U,k){k=k||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,k));var z=new M(U);return z=z.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(z),this};function H(U,k,z){Array.isArray(U)||(U=U.toArray());var V=new Buffer(U);if(z&&V.length<z){var $=new Buffer(z-V.length);$.fill(0),V=Buffer.concat([$,V])}return k?V.toString(k):V}}),c6=F0((l,g)=>{var E=u5(),M=d0().Buffer;g.exports=function(S,H){for(var U=M.alloc(0),k=0,z;U.length<H;)z=j(k++),U=M.concat([U,E("sha1").update(S).update(z).digest()]);return U.slice(0,H)};function j(S){var H=M.allocUnsafe(4);return H.writeUInt32BE(S,0),H}}),d6=F0((l,g)=>{g.exports=function(E,M){for(var j=E.length,S=-1;++S<j;)E[S]^=M[S];return E}}),g9=F0((l,g)=>{(function(E,M){function j(K,C){if(!K)throw new Error(C||"Assertion failed")}function S(K,C){K.super_=C;var J=function(){};J.prototype=C.prototype,K.prototype=new J,K.prototype.constructor=K}function H(K,C,J){if(H.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((C==="le"||C==="be")&&(J=C,C=10),this._init(K||0,C||10,J||"be"))}typeof E=="object"?E.exports=H:M.BN=H,H.BN=H,H.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}H.isBN=function(K){return K instanceof H?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===H.wordSize&&Array.isArray(K.words)},H.max=function(K,C){return K.cmp(C)>0?K:C},H.min=function(K,C){return K.cmp(C)<0?K:C},H.prototype._init=function(K,C,J){if(typeof K=="number")return this._initNumber(K,C,J);if(typeof K=="object")return this._initArray(K,C,J);C==="hex"&&(C=16),j(C===(C|0)&&C>=2&&C<=36),K=K.toString().replace(/\s+/g,"");var Y=0;K[0]==="-"&&(Y++,this.negative=1),Y<K.length&&(C===16?this._parseHex(K,Y,J):(this._parseBase(K,C,Y),J==="le"&&this._initArray(this.toArray(),C,J)))},H.prototype._initNumber=function(K,C,J){K<0&&(this.negative=1,K=-K),K<67108864?(this.words=[K&67108863],this.length=1):K<4503599627370496?(this.words=[K&67108863,K/67108864&67108863],this.length=2):(j(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),J==="le"&&this._initArray(this.toArray(),C,J)},H.prototype._initArray=function(K,C,J){if(j(typeof K.length=="number"),K.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(K.length/3),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q,P,Z=0;if(J==="be")for(Y=K.length-1,Q=0;Y>=0;Y-=3)P=K[Y]|K[Y-1]<<8|K[Y-2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);else if(J==="le")for(Y=0,Q=0;Y<K.length;Y+=3)P=K[Y]|K[Y+1]<<8|K[Y+2]<<16,this.words[Q]|=P<<Z&67108863,this.words[Q+1]=P>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,Q++);return this.strip()};function k(K,C){var J=K.charCodeAt(C);return J>=65&&J<=70?J-55:J>=97&&J<=102?J-87:J-48&15}function z(K,C,J){var Y=k(K,J);return J-1>=C&&(Y|=k(K,J-1)<<4),Y}H.prototype._parseHex=function(K,C,J){this.length=Math.ceil((K.length-C)/6),this.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)this.words[Y]=0;var Q=0,P=0,Z;if(J==="be")for(Y=K.length-1;Y>=C;Y-=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8;else{var F=K.length-C;for(Y=F%2===0?C+1:C;Y<K.length;Y+=2)Z=z(K,C,Y)<<Q,this.words[P]|=Z&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=Z>>>26):Q+=8}this.strip()};function V(K,C,J,Y){for(var Q=0,P=Math.min(K.length,J),Z=C;Z<P;Z++){var F=K.charCodeAt(Z)-48;Q*=Y,F>=49?Q+=F-49+10:F>=17?Q+=F-17+10:Q+=F}return Q}H.prototype._parseBase=function(K,C,J){this.words=[0],this.length=1;for(var Y=0,Q=1;Q<=67108863;Q*=C)Y++;Y--,Q=Q/C|0;for(var P=K.length-J,Z=P%Y,F=Math.min(P,P-Z)+J,X=0,G=J;G<F;G+=Y)X=V(K,G,G+Y,C),this.imuln(Q),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(Z!==0){var R=1;for(X=V(K,G,K.length,C),G=0;G<Z;G++)R*=C;this.imuln(R),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this.strip()},H.prototype.copy=function(K){K.words=new Array(this.length);for(var C=0;C<this.length;C++)K.words[C]=this.words[C];K.length=this.length,K.negative=this.negative,K.red=this.red},H.prototype.clone=function(){var K=new H(null);return this.copy(K),K},H.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[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],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(K,C){K=K||10,C=C|0||1;var J;if(K===16||K==="hex"){J="";for(var Y=0,Q=0,P=0;P<this.length;P++){var Z=this.words[P],F=((Z<<Y|Q)&16777215).toString(16);Q=Z>>>24-Y&16777215,Q!==0||P!==this.length-1?J=$[6-F.length]+F+J:J=F+J,Y+=2,Y>=26&&(Y-=26,P--)}for(Q!==0&&(J=Q.toString(16)+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}if(K===(K|0)&&K>=2&&K<=36){var X=T[K],G=N[K];J="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(K);R=R.idivn(G),R.isZero()?J=L+J:J=$[X-L.length]+L+J}for(this.isZero()&&(J="0"+J);J.length%C!==0;)J="0"+J;return this.negative!==0&&(J="-"+J),J}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var K=this.words[0];return this.length===2?K+=this.words[1]*67108864:this.length===3&&this.words[2]===1?K+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(K,C){return j(typeof U<"u"),this.toArrayLike(U,K,C)},H.prototype.toArray=function(K,C){return this.toArrayLike(Array,K,C)},H.prototype.toArrayLike=function(K,C,J){var Y=this.byteLength(),Q=J||Math.max(1,Y);j(Y<=Q,"byte array longer than desired length"),j(Q>0,"Requested array length <= 0"),this.strip();var P=C==="le",Z=new K(Q),F,X,G=this.clone();if(P){for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[X]=F;for(;X<Q;X++)Z[X]=0}else{for(X=0;X<Q-Y;X++)Z[X]=0;for(X=0;!G.isZero();X++)F=G.andln(255),G.iushrn(8),Z[Q-X-1]=F}return Z},Math.clz32?H.prototype._countBits=function(K){return 32-Math.clz32(K)}:H.prototype._countBits=function(K){var C=K,J=0;return C>=4096&&(J+=13,C>>>=13),C>=64&&(J+=7,C>>>=7),C>=8&&(J+=4,C>>>=4),C>=2&&(J+=2,C>>>=2),J+C},H.prototype._zeroBits=function(K){if(K===0)return 26;var C=K,J=0;return(C&8191)===0&&(J+=13,C>>>=13),(C&127)===0&&(J+=7,C>>>=7),(C&15)===0&&(J+=4,C>>>=4),(C&3)===0&&(J+=2,C>>>=2),(C&1)===0&&J++,J},H.prototype.bitLength=function(){var K=this.words[this.length-1],C=this._countBits(K);return(this.length-1)*26+C};function W(K){for(var C=new Array(K.bitLength()),J=0;J<C.length;J++){var Y=J/26|0,Q=J%26;C[J]=(K.words[Y]&1<<Q)>>>Q}return C}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,C=0;C<this.length;C++){var J=this._zeroBits(this.words[C]);if(K+=J,J!==26)break}return K},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},H.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var C=0;C<K.length;C++)this.words[C]=this.words[C]|K.words[C];return this.strip()},H.prototype.ior=function(K){return j((this.negative|K.negative)===0),this.iuor(K)},H.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},H.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},H.prototype.iuand=function(K){var C;this.length>K.length?C=K:C=this;for(var J=0;J<C.length;J++)this.words[J]=this.words[J]&K.words[J];return this.length=C.length,this.strip()},H.prototype.iand=function(K){return j((this.negative|K.negative)===0),this.iuand(K)},H.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},H.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},H.prototype.iuxor=function(K){var C,J;this.length>K.length?(C=this,J=K):(C=K,J=this);for(var Y=0;Y<J.length;Y++)this.words[Y]=C.words[Y]^J.words[Y];if(this!==C)for(;Y<C.length;Y++)this.words[Y]=C.words[Y];return this.length=C.length,this.strip()},H.prototype.ixor=function(K){return j((this.negative|K.negative)===0),this.iuxor(K)},H.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},H.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},H.prototype.inotn=function(K){j(typeof K=="number"&&K>=0);var C=Math.ceil(K/26)|0,J=K%26;this._expand(C),J>0&&C--;for(var Y=0;Y<C;Y++)this.words[Y]=~this.words[Y]&67108863;return J>0&&(this.words[Y]=~this.words[Y]&67108863>>26-J),this.strip()},H.prototype.notn=function(K){return this.clone().inotn(K)},H.prototype.setn=function(K,C){j(typeof K=="number"&&K>=0);var J=K/26|0,Y=K%26;return this._expand(J+1),C?this.words[J]=this.words[J]|1<<Y:this.words[J]=this.words[J]&~(1<<Y),this.strip()},H.prototype.iadd=function(K){var C;if(this.negative!==0&&K.negative===0)return this.negative=0,C=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,C=this.isub(K),K.negative=1,C._normSign();var J,Y;this.length>K.length?(J=this,Y=K):(J=K,Y=this);for(var Q=0,P=0;P<Y.length;P++)C=(J.words[P]|0)+(Y.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;for(;Q!==0&&P<J.length;P++)C=(J.words[P]|0)+Q,this.words[P]=C&67108863,Q=C>>>26;if(this.length=J.length,Q!==0)this.words[this.length]=Q,this.length++;else if(J!==this)for(;P<J.length;P++)this.words[P]=J.words[P];return this},H.prototype.add=function(K){var C;return K.negative!==0&&this.negative===0?(K.negative=0,C=this.sub(K),K.negative^=1,C):K.negative===0&&this.negative!==0?(this.negative=0,C=K.sub(this),this.negative=1,C):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},H.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var C=this.iadd(K);return K.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var J=this.cmp(K);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Y,Q;J>0?(Y=this,Q=K):(Y=K,Q=this);for(var P=0,Z=0;Z<Q.length;Z++)C=(Y.words[Z]|0)-(Q.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;for(;P!==0&&Z<Y.length;Z++)C=(Y.words[Z]|0)+P,P=C>>26,this.words[Z]=C&67108863;if(P===0&&Z<Y.length&&Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this.length=Math.max(this.length,Z),Y!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(K){return this.clone().isub(K)};function D(K,C,J){J.negative=C.negative^K.negative;var Y=K.length+C.length|0;J.length=Y,Y=Y-1|0;var Q=K.words[0]|0,P=C.words[0]|0,Z=Q*P,F=Z&67108863,X=Z/67108864|0;J.words[0]=F;for(var G=1;G<Y;G++){for(var R=X>>>26,L=X&67108863,_=Math.min(G,C.length-1),s=Math.max(0,G-K.length+1);s<=_;s++){var r=G-s|0;Q=K.words[r]|0,P=C.words[s]|0,Z=Q*P+L,R+=Z/67108864|0,L=Z&67108863}J.words[G]=L|0,X=R|0}return X!==0?J.words[G]=X|0:J.length--,J.strip()}var I=function(K,C,J){var Y=K.words,Q=C.words,P=J.words,Z=0,F,X,G,R=Y[0]|0,L=R&8191,_=R>>>13,s=Y[1]|0,r=s&8191,C0=s>>>13,u=Y[2]|0,d=u&8191,a=u>>>13,V0=Y[3]|0,K0=V0&8191,Q0=V0>>>13,w=Y[4]|0,q=w&8191,m=w>>>13,e=Y[5]|0,X0=e&8191,t=e>>>13,_0=Y[6]|0,H0=_0&8191,G0=_0>>>13,w0=Y[7]|0,W0=w0&8191,Z0=w0>>>13,c0=Y[8]|0,O=c0&8191,B=c0>>>13,b=Y[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,J0=z0&8191,$0=z0>>>13,b0=Q[1]|0,U0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,F5=Q[3]|0,T0=F5&8191,O0=F5>>>13,l0=Q[4]|0,L0=l0&8191,k0=l0>>>13,G5=Q[5]|0,I0=G5&8191,q0=G5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,Z5=Q[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=Q[8]|0,x0=$5&8191,A0=$5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;J.negative=K.negative^C.negative,J.length=19,F=Math.imul(L,J0),X=Math.imul(L,$0),X=X+Math.imul(_,J0)|0,G=Math.imul(_,$0);var Q5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,F=Math.imul(r,J0),X=Math.imul(r,$0),X=X+Math.imul(C0,J0)|0,G=Math.imul(C0,$0),F=F+Math.imul(L,U0)|0,X=X+Math.imul(L,j0)|0,X=X+Math.imul(_,U0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(g0>>>26)|0,g0&=67108863,F=Math.imul(d,J0),X=Math.imul(d,$0),X=X+Math.imul(a,J0)|0,G=Math.imul(a,$0),F=F+Math.imul(r,U0)|0,X=X+Math.imul(r,j0)|0,X=X+Math.imul(C0,U0)|0,G=G+Math.imul(C0,j0)|0,F=F+Math.imul(L,D0)|0,X=X+Math.imul(L,N0)|0,X=X+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(m0>>>26)|0,m0&=67108863,F=Math.imul(K0,J0),X=Math.imul(K0,$0),X=X+Math.imul(Q0,J0)|0,G=Math.imul(Q0,$0),F=F+Math.imul(d,U0)|0,X=X+Math.imul(d,j0)|0,X=X+Math.imul(a,U0)|0,G=G+Math.imul(a,j0)|0,F=F+Math.imul(r,D0)|0,X=X+Math.imul(r,N0)|0,X=X+Math.imul(C0,D0)|0,G=G+Math.imul(C0,N0)|0,F=F+Math.imul(L,T0)|0,X=X+Math.imul(L,O0)|0,X=X+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(h0>>>26)|0,h0&=67108863,F=Math.imul(q,J0),X=Math.imul(q,$0),X=X+Math.imul(m,J0)|0,G=Math.imul(m,$0),F=F+Math.imul(K0,U0)|0,X=X+Math.imul(K0,j0)|0,X=X+Math.imul(Q0,U0)|0,G=G+Math.imul(Q0,j0)|0,F=F+Math.imul(d,D0)|0,X=X+Math.imul(d,N0)|0,X=X+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,F=F+Math.imul(r,T0)|0,X=X+Math.imul(r,O0)|0,X=X+Math.imul(C0,T0)|0,G=G+Math.imul(C0,O0)|0,F=F+Math.imul(L,L0)|0,X=X+Math.imul(L,k0)|0,X=X+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(u0>>>26)|0,u0&=67108863,F=Math.imul(X0,J0),X=Math.imul(X0,$0),X=X+Math.imul(t,J0)|0,G=Math.imul(t,$0),F=F+Math.imul(q,U0)|0,X=X+Math.imul(q,j0)|0,X=X+Math.imul(m,U0)|0,G=G+Math.imul(m,j0)|0,F=F+Math.imul(K0,D0)|0,X=X+Math.imul(K0,N0)|0,X=X+Math.imul(Q0,D0)|0,G=G+Math.imul(Q0,N0)|0,F=F+Math.imul(d,T0)|0,X=X+Math.imul(d,O0)|0,X=X+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,F=F+Math.imul(r,L0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(C0,L0)|0,G=G+Math.imul(C0,k0)|0,F=F+Math.imul(L,I0)|0,X=X+Math.imul(L,q0)|0,X=X+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(o0>>>26)|0,o0&=67108863,F=Math.imul(H0,J0),X=Math.imul(H0,$0),X=X+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),F=F+Math.imul(X0,U0)|0,X=X+Math.imul(X0,j0)|0,X=X+Math.imul(t,U0)|0,G=G+Math.imul(t,j0)|0,F=F+Math.imul(q,D0)|0,X=X+Math.imul(q,N0)|0,X=X+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,F=F+Math.imul(K0,T0)|0,X=X+Math.imul(K0,O0)|0,X=X+Math.imul(Q0,T0)|0,G=G+Math.imul(Q0,O0)|0,F=F+Math.imul(d,L0)|0,X=X+Math.imul(d,k0)|0,X=X+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,F=F+Math.imul(r,I0)|0,X=X+Math.imul(r,q0)|0,X=X+Math.imul(C0,I0)|0,G=G+Math.imul(C0,q0)|0,F=F+Math.imul(L,B0)|0,X=X+Math.imul(L,R0)|0,X=X+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,F=Math.imul(W0,J0),X=Math.imul(W0,$0),X=X+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),F=F+Math.imul(H0,U0)|0,X=X+Math.imul(H0,j0)|0,X=X+Math.imul(G0,U0)|0,G=G+Math.imul(G0,j0)|0,F=F+Math.imul(X0,D0)|0,X=X+Math.imul(X0,N0)|0,X=X+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,F=F+Math.imul(q,T0)|0,X=X+Math.imul(q,O0)|0,X=X+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,F=F+Math.imul(K0,L0)|0,X=X+Math.imul(K0,k0)|0,X=X+Math.imul(Q0,L0)|0,G=G+Math.imul(Q0,k0)|0,F=F+Math.imul(d,I0)|0,X=X+Math.imul(d,q0)|0,X=X+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,F=F+Math.imul(r,B0)|0,X=X+Math.imul(r,R0)|0,X=X+Math.imul(C0,B0)|0,G=G+Math.imul(C0,R0)|0,F=F+Math.imul(L,E0)|0,X=X+Math.imul(L,S0)|0,X=X+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,F=Math.imul(O,J0),X=Math.imul(O,$0),X=X+Math.imul(B,J0)|0,G=Math.imul(B,$0),F=F+Math.imul(W0,U0)|0,X=X+Math.imul(W0,j0)|0,X=X+Math.imul(Z0,U0)|0,G=G+Math.imul(Z0,j0)|0,F=F+Math.imul(H0,D0)|0,X=X+Math.imul(H0,N0)|0,X=X+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,F=F+Math.imul(X0,T0)|0,X=X+Math.imul(X0,O0)|0,X=X+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,F=F+Math.imul(q,L0)|0,X=X+Math.imul(q,k0)|0,X=X+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,F=F+Math.imul(K0,I0)|0,X=X+Math.imul(K0,q0)|0,X=X+Math.imul(Q0,I0)|0,G=G+Math.imul(Q0,q0)|0,F=F+Math.imul(d,B0)|0,X=X+Math.imul(d,R0)|0,X=X+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,F=F+Math.imul(r,E0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(C0,E0)|0,G=G+Math.imul(C0,S0)|0,F=F+Math.imul(L,x0)|0,X=X+Math.imul(L,A0)|0,X=X+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,F=Math.imul(h,J0),X=Math.imul(h,$0),X=X+Math.imul(o,J0)|0,G=Math.imul(o,$0),F=F+Math.imul(O,U0)|0,X=X+Math.imul(O,j0)|0,X=X+Math.imul(B,U0)|0,G=G+Math.imul(B,j0)|0,F=F+Math.imul(W0,D0)|0,X=X+Math.imul(W0,N0)|0,X=X+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,F=F+Math.imul(H0,T0)|0,X=X+Math.imul(H0,O0)|0,X=X+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,F=F+Math.imul(X0,L0)|0,X=X+Math.imul(X0,k0)|0,X=X+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,F=F+Math.imul(q,I0)|0,X=X+Math.imul(q,q0)|0,X=X+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,F=F+Math.imul(K0,B0)|0,X=X+Math.imul(K0,R0)|0,X=X+Math.imul(Q0,B0)|0,G=G+Math.imul(Q0,R0)|0,F=F+Math.imul(d,E0)|0,X=X+Math.imul(d,S0)|0,X=X+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,F=F+Math.imul(r,x0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(C0,x0)|0,G=G+Math.imul(C0,A0)|0,F=F+Math.imul(L,v0)|0,X=X+Math.imul(L,M0)|0,X=X+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(n0>>>26)|0,n0&=67108863,F=Math.imul(h,U0),X=Math.imul(h,j0),X=X+Math.imul(o,U0)|0,G=Math.imul(o,j0),F=F+Math.imul(O,D0)|0,X=X+Math.imul(O,N0)|0,X=X+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,F=F+Math.imul(W0,T0)|0,X=X+Math.imul(W0,O0)|0,X=X+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,F=F+Math.imul(H0,L0)|0,X=X+Math.imul(H0,k0)|0,X=X+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,F=F+Math.imul(X0,I0)|0,X=X+Math.imul(X0,q0)|0,X=X+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,F=F+Math.imul(q,B0)|0,X=X+Math.imul(q,R0)|0,X=X+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,F=F+Math.imul(K0,E0)|0,X=X+Math.imul(K0,S0)|0,X=X+Math.imul(Q0,E0)|0,G=G+Math.imul(Q0,S0)|0,F=F+Math.imul(d,x0)|0,X=X+Math.imul(d,A0)|0,X=X+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,F=F+Math.imul(r,v0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(C0,v0)|0,G=G+Math.imul(C0,M0)|0;var r0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,F=Math.imul(h,D0),X=Math.imul(h,N0),X=X+Math.imul(o,D0)|0,G=Math.imul(o,N0),F=F+Math.imul(O,T0)|0,X=X+Math.imul(O,O0)|0,X=X+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,F=F+Math.imul(W0,L0)|0,X=X+Math.imul(W0,k0)|0,X=X+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,F=F+Math.imul(H0,I0)|0,X=X+Math.imul(H0,q0)|0,X=X+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,F=F+Math.imul(X0,B0)|0,X=X+Math.imul(X0,R0)|0,X=X+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,F=F+Math.imul(q,E0)|0,X=X+Math.imul(q,S0)|0,X=X+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,F=F+Math.imul(K0,x0)|0,X=X+Math.imul(K0,A0)|0,X=X+Math.imul(Q0,x0)|0,G=G+Math.imul(Q0,A0)|0,F=F+Math.imul(d,v0)|0,X=X+Math.imul(d,M0)|0,X=X+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,F=Math.imul(h,T0),X=Math.imul(h,O0),X=X+Math.imul(o,T0)|0,G=Math.imul(o,O0),F=F+Math.imul(O,L0)|0,X=X+Math.imul(O,k0)|0,X=X+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,F=F+Math.imul(W0,I0)|0,X=X+Math.imul(W0,q0)|0,X=X+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,F=F+Math.imul(H0,B0)|0,X=X+Math.imul(H0,R0)|0,X=X+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,F=F+Math.imul(X0,E0)|0,X=X+Math.imul(X0,S0)|0,X=X+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,F=F+Math.imul(q,x0)|0,X=X+Math.imul(q,A0)|0,X=X+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,F=F+Math.imul(K0,v0)|0,X=X+Math.imul(K0,M0)|0,X=X+Math.imul(Q0,v0)|0,G=G+Math.imul(Q0,M0)|0;var t0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(t0>>>26)|0,t0&=67108863,F=Math.imul(h,L0),X=Math.imul(h,k0),X=X+Math.imul(o,L0)|0,G=Math.imul(o,k0),F=F+Math.imul(O,I0)|0,X=X+Math.imul(O,q0)|0,X=X+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,F=F+Math.imul(W0,B0)|0,X=X+Math.imul(W0,R0)|0,X=X+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,F=F+Math.imul(H0,E0)|0,X=X+Math.imul(H0,S0)|0,X=X+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,F=F+Math.imul(X0,x0)|0,X=X+Math.imul(X0,A0)|0,X=X+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,F=F+Math.imul(q,v0)|0,X=X+Math.imul(q,M0)|0,X=X+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,F=Math.imul(h,I0),X=Math.imul(h,q0),X=X+Math.imul(o,I0)|0,G=Math.imul(o,q0),F=F+Math.imul(O,B0)|0,X=X+Math.imul(O,R0)|0,X=X+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,F=F+Math.imul(W0,E0)|0,X=X+Math.imul(W0,S0)|0,X=X+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,F=F+Math.imul(H0,x0)|0,X=X+Math.imul(H0,A0)|0,X=X+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,F=F+Math.imul(X0,v0)|0,X=X+Math.imul(X0,M0)|0,X=X+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var K5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(K5>>>26)|0,K5&=67108863,F=Math.imul(h,B0),X=Math.imul(h,R0),X=X+Math.imul(o,B0)|0,G=Math.imul(o,R0),F=F+Math.imul(O,E0)|0,X=X+Math.imul(O,S0)|0,X=X+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,F=F+Math.imul(W0,x0)|0,X=X+Math.imul(W0,A0)|0,X=X+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,F=F+Math.imul(H0,v0)|0,X=X+Math.imul(H0,M0)|0,X=X+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var X5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(X5>>>26)|0,X5&=67108863,F=Math.imul(h,E0),X=Math.imul(h,S0),X=X+Math.imul(o,E0)|0,G=Math.imul(o,S0),F=F+Math.imul(O,x0)|0,X=X+Math.imul(O,A0)|0,X=X+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,F=F+Math.imul(W0,v0)|0,X=X+Math.imul(W0,M0)|0,X=X+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var C5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(C5>>>26)|0,C5&=67108863,F=Math.imul(h,x0),X=Math.imul(h,A0),X=X+Math.imul(o,x0)|0,G=Math.imul(o,A0),F=F+Math.imul(O,v0)|0,X=X+Math.imul(O,M0)|0,X=X+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var Y5=(Z+F|0)+((X&8191)<<13)|0;Z=(G+(X>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,F=Math.imul(h,v0),X=Math.imul(h,M0),X=X+Math.imul(o,v0)|0,G=Math.imul(o,M0);var J5=(Z+F|0)+((X&8191)<<13)|0;return Z=(G+(X>>>13)|0)+(J5>>>26)|0,J5&=67108863,P[0]=Q5,P[1]=g0,P[2]=m0,P[3]=h0,P[4]=u0,P[5]=o0,P[6]=s0,P[7]=a0,P[8]=f0,P[9]=n0,P[10]=r0,P[11]=i0,P[12]=t0,P[13]=e0,P[14]=K5,P[15]=X5,P[16]=C5,P[17]=Y5,P[18]=J5,Z!==0&&(P[19]=Z,J.length++),J};Math.imul||(I=D);function v(K,C,J){J.negative=C.negative^K.negative,J.length=K.length+C.length;for(var Y=0,Q=0,P=0;P<J.length-1;P++){var Z=Q;Q=0;for(var F=Y&67108863,X=Math.min(P,C.length-1),G=Math.max(0,P-K.length+1);G<=X;G++){var R=P-G,L=K.words[R]|0,_=C.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+F|0,F=r&67108863,Z=Z+(r>>>26)|0,Q+=Z>>>26,Z&=67108863}J.words[P]=F,Y=Z,Z=Q}return Y!==0?J.words[P]=Y:J.length--,J.strip()}function x(K,C,J){var Y=new A;return Y.mulp(K,C,J)}H.prototype.mulTo=function(K,C){var J,Y=this.length+K.length;return this.length===10&&K.length===10?J=I(this,K,C):Y<63?J=D(this,K,C):Y<1024?J=v(this,K,C):J=x(this,K,C),J};function A(K,C){this.x=K,this.y=C}A.prototype.makeRBT=function(K){for(var C=new Array(K),J=H.prototype._countBits(K)-1,Y=0;Y<K;Y++)C[Y]=this.revBin(Y,J,K);return C},A.prototype.revBin=function(K,C,J){if(K===0||K===J-1)return K;for(var Y=0,Q=0;Q<C;Q++)Y|=(K&1)<<C-Q-1,K>>=1;return Y},A.prototype.permute=function(K,C,J,Y,Q,P){for(var Z=0;Z<P;Z++)Y[Z]=C[K[Z]],Q[Z]=J[K[Z]]},A.prototype.transform=function(K,C,J,Y,Q,P){this.permute(P,K,C,J,Y,Q);for(var Z=1;Z<Q;Z<<=1)for(var F=Z<<1,X=Math.cos(2*Math.PI/F),G=Math.sin(2*Math.PI/F),R=0;R<Q;R+=F)for(var L=X,_=G,s=0;s<Z;s++){var r=J[R+s],C0=Y[R+s],u=J[R+s+Z],d=Y[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,J[R+s]=r+u,Y[R+s]=C0+d,J[R+s+Z]=r-u,Y[R+s+Z]=C0-d,s!==F&&(a=X*L-G*_,_=X*_+G*L,L=a)}},A.prototype.guessLen13b=function(K,C){var J=Math.max(C,K)|1,Y=J&1,Q=0;for(J=J/2|0;J;J=J>>>1)Q++;return 1<<Q+1+Y},A.prototype.conjugate=function(K,C,J){if(!(J<=1))for(var Y=0;Y<J/2;Y++){var Q=K[Y];K[Y]=K[J-Y-1],K[J-Y-1]=Q,Q=C[Y],C[Y]=-C[J-Y-1],C[J-Y-1]=-Q}},A.prototype.normalize13b=function(K,C){for(var J=0,Y=0;Y<C/2;Y++){var Q=Math.round(K[2*Y+1]/C)*8192+Math.round(K[2*Y]/C)+J;K[Y]=Q&67108863,Q<67108864?J=0:J=Q/67108864|0}return K},A.prototype.convert13b=function(K,C,J,Y){for(var Q=0,P=0;P<C;P++)Q=Q+(K[P]|0),J[2*P]=Q&8191,Q=Q>>>13,J[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*C;P<Y;++P)J[P]=0;j(Q===0),j((Q&-8192)===0)},A.prototype.stub=function(K){for(var C=new Array(K),J=0;J<K;J++)C[J]=0;return C},A.prototype.mulp=function(K,C,J){var Y=2*this.guessLen13b(K.length,C.length),Q=this.makeRBT(Y),P=this.stub(Y),Z=new Array(Y),F=new Array(Y),X=new Array(Y),G=new Array(Y),R=new Array(Y),L=new Array(Y),_=J.words;_.length=Y,this.convert13b(K.words,K.length,Z,Y),this.convert13b(C.words,C.length,G,Y),this.transform(Z,P,F,X,Y,Q),this.transform(G,P,R,L,Y,Q);for(var s=0;s<Y;s++){var r=F[s]*R[s]-X[s]*L[s];X[s]=F[s]*L[s]+X[s]*R[s],F[s]=r}return this.conjugate(F,X,Y),this.transform(F,X,_,P,Y,Q),this.conjugate(_,P,Y),this.normalize13b(_,Y),J.negative=K.negative^C.negative,J.length=K.length+C.length,J.strip()},H.prototype.mul=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),this.mulTo(K,C)},H.prototype.mulf=function(K){var C=new H(null);return C.words=new Array(this.length+K.length),x(this,K,C)},H.prototype.imul=function(K){return this.clone().mulTo(K,this)},H.prototype.imuln=function(K){j(typeof K=="number"),j(K<67108864);for(var C=0,J=0;J<this.length;J++){var Y=(this.words[J]|0)*K,Q=(Y&67108863)+(C&67108863);C>>=26,C+=Y/67108864|0,C+=Q>>>26,this.words[J]=Q&67108863}return C!==0&&(this.words[J]=C,this.length++),this},H.prototype.muln=function(K){return this.clone().imuln(K)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(K){var C=W(K);if(C.length===0)return new H(1);for(var J=this,Y=0;Y<C.length&&C[Y]===0;Y++,J=J.sqr());if(++Y<C.length)for(var Q=J.sqr();Y<C.length;Y++,Q=Q.sqr())C[Y]!==0&&(J=J.mul(Q));return J},H.prototype.iushln=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=67108863>>>26-C<<26-C,Q;if(C!==0){var P=0;for(Q=0;Q<this.length;Q++){var Z=this.words[Q]&Y,F=(this.words[Q]|0)-Z<<C;this.words[Q]=F|P,P=Z>>>26-C}P&&(this.words[Q]=P,this.length++)}if(J!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+J]=this.words[Q];for(Q=0;Q<J;Q++)this.words[Q]=0;this.length+=J}return this.strip()},H.prototype.ishln=function(K){return j(this.negative===0),this.iushln(K)},H.prototype.iushrn=function(K,C,J){j(typeof K=="number"&&K>=0);var Y;C?Y=(C-C%26)/26:Y=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),Z=67108863^67108863>>>Q<<Q,F=J;if(Y-=P,Y=Math.max(0,Y),F){for(var X=0;X<P;X++)F.words[X]=this.words[X];F.length=P}if(P!==0)if(this.length>P)for(this.length-=P,X=0;X<this.length;X++)this.words[X]=this.words[X+P];else this.words[0]=0,this.length=1;var G=0;for(X=this.length-1;X>=0&&(G!==0||X>=Y);X--){var R=this.words[X]|0;this.words[X]=G<<26-Q|R>>>Q,G=R&Z}return F&&G!==0&&(F.words[F.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(K,C,J){return j(this.negative===0),this.iushrn(K,C,J)},H.prototype.shln=function(K){return this.clone().ishln(K)},H.prototype.ushln=function(K){return this.clone().iushln(K)},H.prototype.shrn=function(K){return this.clone().ishrn(K)},H.prototype.ushrn=function(K){return this.clone().iushrn(K)},H.prototype.testn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return!1;var Q=this.words[J];return!!(Q&Y)},H.prototype.imaskn=function(K){j(typeof K=="number"&&K>=0);var C=K%26,J=(K-C)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(C!==0&&J++,this.length=Math.min(J,this.length),C!==0){var Y=67108863^67108863>>>C<<C;this.words[this.length-1]&=Y}return this.strip()},H.prototype.maskn=function(K){return this.clone().imaskn(K)},H.prototype.iaddn=function(K){return j(typeof K=="number"),j(K<67108864),K<0?this.isubn(-K):this.negative!==0?this.length===1&&(this.words[0]|0)<K?(this.words[0]=K-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(K),this.negative=1,this):this._iaddn(K)},H.prototype._iaddn=function(K){this.words[0]+=K;for(var C=0;C<this.length&&this.words[C]>=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},H.prototype.isubn=function(K){if(j(typeof K=="number"),j(K<67108864),K<0)return this.iaddn(-K);if(this.negative!==0)return this.negative=0,this.iaddn(K),this.negative=1,this;if(this.words[0]-=K,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C<this.length&&this.words[C]<0;C++)this.words[C]+=67108864,this.words[C+1]-=1;return this.strip()},H.prototype.addn=function(K){return this.clone().iaddn(K)},H.prototype.subn=function(K){return this.clone().isubn(K)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(K,C,J){var Y=K.length+J,Q;this._expand(Y);var P,Z=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+J]|0)+Z;var F=(K.words[Q]|0)*C;P-=F&67108863,Z=(P>>26)-(F/67108864|0),this.words[Q+J]=P&67108863}for(;Q<this.length-J;Q++)P=(this.words[Q+J]|0)+Z,Z=P>>26,this.words[Q+J]=P&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+Z,Z=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(K,C){var J=this.length-K.length,Y=this.clone(),Q=K,P=Q.words[Q.length-1]|0,Z=this._countBits(P);J=26-Z,J!==0&&(Q=Q.ushln(J),Y.iushln(J),P=Q.words[Q.length-1]|0);var F=Y.length-Q.length,X;if(C!=="mod"){X=new H(null),X.length=F+1,X.words=new Array(X.length);for(var G=0;G<X.length;G++)X.words[G]=0}var R=Y.clone()._ishlnsubmul(Q,1,F);R.negative===0&&(Y=R,X&&(X.words[F]=1));for(var L=F-1;L>=0;L--){var _=(Y.words[Q.length+L]|0)*67108864+(Y.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),Y._ishlnsubmul(Q,_,L);Y.negative!==0;)_--,Y.negative=0,Y._ishlnsubmul(Q,1,L),Y.isZero()||(Y.negative^=1);X&&(X.words[L]=_)}return X&&X.strip(),Y.strip(),C!=="div"&&J!==0&&Y.iushrn(J),{div:X||null,mod:Y}},H.prototype.divmod=function(K,C,J){if(j(!K.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Y,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,C),C!=="mod"&&(Y=P.div.neg()),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.iadd(K)),{div:Y,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),C),C!=="mod"&&(Y=P.div.neg()),{div:Y,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),C),C!=="div"&&(Q=P.mod.neg(),J&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new H(0),mod:this}:K.length===1?C==="div"?{div:this.divn(K.words[0]),mod:null}:C==="mod"?{div:null,mod:new H(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new H(this.modn(K.words[0]))}:this._wordDiv(K,C)},H.prototype.div=function(K){return this.divmod(K,"div",!1).div},H.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},H.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},H.prototype.divRound=function(K){var C=this.divmod(K);if(C.mod.isZero())return C.div;var J=C.div.negative!==0?C.mod.isub(K):C.mod,Y=K.ushrn(1),Q=K.andln(1),P=J.cmp(Y);return P<0||Q===1&&P===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},H.prototype.modn=function(K){j(K<=67108863);for(var C=67108864%K,J=0,Y=this.length-1;Y>=0;Y--)J=(C*J+(this.words[Y]|0))%K;return J},H.prototype.idivn=function(K){j(K<=67108863);for(var C=0,J=this.length-1;J>=0;J--){var Y=(this.words[J]|0)+C*67108864;this.words[J]=Y/K|0,C=Y%K}return this.strip()},H.prototype.divn=function(K){return this.clone().idivn(K)},H.prototype.egcd=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=new H(0),Z=new H(1),F=0;C.isEven()&&J.isEven();)C.iushrn(1),J.iushrn(1),++F;for(var X=J.clone(),G=C.clone();!C.isZero();){for(var R=0,L=1;(C.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(C.iushrn(R);R-- >0;)(Y.isOdd()||Q.isOdd())&&(Y.iadd(X),Q.isub(G)),Y.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(J.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(J.iushrn(_);_-- >0;)(P.isOdd()||Z.isOdd())&&(P.iadd(X),Z.isub(G)),P.iushrn(1),Z.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(P),Q.isub(Z)):(J.isub(C),P.isub(Y),Z.isub(Q))}return{a:P,b:Z,gcd:J.iushln(F)}},H.prototype._invmp=function(K){j(K.negative===0),j(!K.isZero());var C=this,J=K.clone();C.negative!==0?C=C.umod(K):C=C.clone();for(var Y=new H(1),Q=new H(0),P=J.clone();C.cmpn(1)>0&&J.cmpn(1)>0;){for(var Z=0,F=1;(C.words[0]&F)===0&&Z<26;++Z,F<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)Y.isOdd()&&Y.iadd(P),Y.iushrn(1);for(var X=0,G=1;(J.words[0]&G)===0&&X<26;++X,G<<=1);if(X>0)for(J.iushrn(X);X-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);C.cmp(J)>=0?(C.isub(J),Y.isub(Q)):(J.isub(C),Q.isub(Y))}var R;return C.cmpn(1)===0?R=Y:R=Q,R.cmpn(0)<0&&R.iadd(K),R},H.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var C=this.clone(),J=K.clone();C.negative=0,J.negative=0;for(var Y=0;C.isEven()&&J.isEven();Y++)C.iushrn(1),J.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;J.isEven();)J.iushrn(1);var Q=C.cmp(J);if(Q<0){var P=C;C=J,J=P}else if(Q===0||J.cmpn(1)===0)break;C.isub(J)}while(!0);return J.iushln(Y)},H.prototype.invm=function(K){return this.egcd(K).a.umod(K)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(K){return this.words[0]&K},H.prototype.bincn=function(K){j(typeof K=="number");var C=K%26,J=(K-C)/26,Y=1<<C;if(this.length<=J)return this._expand(J+1),this.words[J]|=Y,this;for(var Q=Y,P=J;Q!==0&&P<this.length;P++){var Z=this.words[P]|0;Z+=Q,Q=Z>>>26,Z&=67108863,this.words[P]=Z}return Q!==0&&(this.words[P]=Q,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(K){var C=K<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this.strip();var J;if(this.length>1)J=1;else{C&&(K=-K),j(K<=67108863,"Number is too big");var Y=this.words[0]|0;J=Y===K?0:Y<K?-1:1}return this.negative!==0?-J|0:J},H.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var C=this.ucmp(K);return this.negative!==0?-C|0:C},H.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var C=0,J=this.length-1;J>=0;J--){var Y=this.words[J]|0,Q=K.words[J]|0;if(Y!==Q){Y<Q?C=-1:Y>Q&&(C=1);break}}return C},H.prototype.gtn=function(K){return this.cmpn(K)===1},H.prototype.gt=function(K){return this.cmp(K)===1},H.prototype.gten=function(K){return this.cmpn(K)>=0},H.prototype.gte=function(K){return this.cmp(K)>=0},H.prototype.ltn=function(K){return this.cmpn(K)===-1},H.prototype.lt=function(K){return this.cmp(K)===-1},H.prototype.lten=function(K){return this.cmpn(K)<=0},H.prototype.lte=function(K){return this.cmp(K)<=0},H.prototype.eqn=function(K){return this.cmpn(K)===0},H.prototype.eq=function(K){return this.cmp(K)===0},H.red=function(K){return new f(K)},H.prototype.toRed=function(K){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(K){return this.red=K,this},H.prototype.forceRed=function(K){return j(!this.red,"Already a number in reduction context"),this._forceRed(K)},H.prototype.redAdd=function(K){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},H.prototype.redIAdd=function(K){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},H.prototype.redSub=function(K){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},H.prototype.redISub=function(K){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},H.prototype.redShl=function(K){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},H.prototype.redMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},H.prototype.redIMul=function(K){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(K){return j(this.red&&!K.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,K)};var y={k256:null,p224:null,p192:null,p25519:null};function p(K,C){this.name=K,this.p=new H(C,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new H(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var C=K,J;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),J=C.bitLength();while(J>this.n);var Y=J<this.n?-1:C.ucmp(this.p);return Y===0?(C.words[0]=0,C.length=1):Y>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},p.prototype.split=function(K,C){K.iushrn(this.n,0,C)},p.prototype.imulK=function(K){return K.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(K,C){for(var J=4194303,Y=Math.min(K.length,9),Q=0;Q<Y;Q++)C.words[Q]=K.words[Q];if(C.length=Y,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(C.words[C.length++]=P&J,Q=10;Q<K.length;Q++){var Z=K.words[Q]|0;K.words[Q-10]=(Z&J)<<4|P>>>22,P=Z}P>>>=22,K.words[Q-10]=P,P===0&&K.length>10?K.length-=10:K.length-=9},c.prototype.imulK=function(K){K.words[K.length]=0,K.words[K.length+1]=0,K.length+=2;for(var C=0,J=0;J<K.length;J++){var Y=K.words[J]|0;C+=Y*977,K.words[J]=C&67108863,C=Y*64+(C/67108864|0)}return K.words[K.length-1]===0&&(K.length--,K.words[K.length-1]===0&&K.length--),K};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Y0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Y0,p),Y0.prototype.imulK=function(K){for(var C=0,J=0;J<K.length;J++){var Y=(K.words[J]|0)*19+C,Q=Y&67108863;Y>>>=26,K.words[J]=Q,C=Y}return C!==0&&(K.words[K.length++]=C),K},H._prime=function(K){if(y[K])return y[K];var C;if(K==="k256")C=new c;else if(K==="p224")C=new n;else if(K==="p192")C=new i;else if(K==="p25519")C=new Y0;else throw new Error("Unknown prime "+K);return y[K]=C,C};function f(K){if(typeof K=="string"){var C=H._prime(K);this.m=C.p,this.prime=C}else j(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){j(K.negative===0,"red works only with positives"),j(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,C){j((K.negative|C.negative)===0,"red works only with positives"),j(K.red&&K.red===C.red,"red works only with red numbers")},f.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},f.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},f.prototype.add=function(K,C){this._verify2(K,C);var J=K.add(C);return J.cmp(this.m)>=0&&J.isub(this.m),J._forceRed(this)},f.prototype.iadd=function(K,C){this._verify2(K,C);var J=K.iadd(C);return J.cmp(this.m)>=0&&J.isub(this.m),J},f.prototype.sub=function(K,C){this._verify2(K,C);var J=K.sub(C);return J.cmpn(0)<0&&J.iadd(this.m),J._forceRed(this)},f.prototype.isub=function(K,C){this._verify2(K,C);var J=K.isub(C);return J.cmpn(0)<0&&J.iadd(this.m),J},f.prototype.shl=function(K,C){return this._verify1(K),this.imod(K.ushln(C))},f.prototype.imul=function(K,C){return this._verify2(K,C),this.imod(K.imul(C))},f.prototype.mul=function(K,C){return this._verify2(K,C),this.imod(K.mul(C))},f.prototype.isqr=function(K){return this.imul(K,K.clone())},f.prototype.sqr=function(K){return this.mul(K,K)},f.prototype.sqrt=function(K){if(K.isZero())return K.clone();var C=this.m.andln(3);if(j(C%2===1),C===3){var J=this.m.add(new H(1)).iushrn(2);return this.pow(K,J)}for(var Y=this.m.subn(1),Q=0;!Y.isZero()&&Y.andln(1)===0;)Q++,Y.iushrn(1);j(!Y.isZero());var P=new H(1).toRed(this),Z=P.redNeg(),F=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new H(2*X*X).toRed(this);this.pow(X,F).cmp(Z)!==0;)X.redIAdd(Z);for(var G=this.pow(X,Y),R=this.pow(K,Y.addn(1).iushrn(1)),L=this.pow(K,Y),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();j(r<_);var C0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(C0),G=C0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(K){var C=K._invmp(this.m);return C.negative!==0?(C.negative=0,this.imod(C).redNeg()):this.imod(C)},f.prototype.pow=function(K,C){if(C.isZero())return new H(1).toRed(this);if(C.cmpn(1)===0)return K.clone();var J=4,Y=new Array(1<<J);Y[0]=new H(1).toRed(this),Y[1]=K;for(var Q=2;Q<Y.length;Q++)Y[Q]=this.mul(Y[Q-1],K);var P=Y[0],Z=0,F=0,X=C.bitLength()%26;for(X===0&&(X=26),Q=C.length-1;Q>=0;Q--){for(var G=C.words[Q],R=X-1;R>=0;R--){var L=G>>R&1;if(P!==Y[0]&&(P=this.sqr(P)),L===0&&Z===0){F=0;continue}Z<<=1,Z|=L,F++,!(F!==J&&(Q!==0||R!==0))&&(P=this.mul(P,Y[Z]),F=0,Z=0)}X=26}return P},f.prototype.convertTo=function(K){var C=K.umod(this.m);return C===K?C.clone():C},f.prototype.convertFrom=function(K){var C=K.clone();return C.red=null,C},H.mont=function(K){return new P0(K)};function P0(K){f.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(P0,f),P0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},P0.prototype.convertFrom=function(K){var C=this.imod(K.mul(this.rinv));return C.red=null,C},P0.prototype.imul=function(K,C){if(K.isZero()||C.isZero())return K.words[0]=0,K.length=1,K;var J=K.imul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.mul=function(K,C){if(K.isZero()||C.isZero())return new H(0)._forceRed(this);var J=K.mul(C),Y=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=J.isub(Y).iushrn(this.shift),P=Q;return Q.cmp(this.m)>=0?P=Q.isub(this.m):Q.cmpn(0)<0&&(P=Q.iadd(this.m)),P._forceRed(this)},P0.prototype.invm=function(K){var C=this.imod(K._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(typeof g>"u"||g,l)}),l6=F0((l,g)=>{var E=g9(),M=d0().Buffer;function j(S,H){return M.from(S.toRed(E.mont(H.modulus)).redPow(new E(H.publicExponent)).fromRed().toArray())}g.exports=j}),A8=F0((l,g)=>{var E=J9(),M=g5(),j=u5(),S=c6(),H=d6(),U=g9(),k=l6(),z=S9(),V=d0().Buffer;g.exports=function(W,D,I){var v;W.padding?v=W.padding:I?v=1:v=4;var x=E(W),A;if(v===4)A=$(x,D);else if(v===1)A=T(x,D,I);else if(v===3){if(A=new U(D),A.cmp(x.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return I?z(A,x):k(A,x)};function $(W,D){var I=W.modulus.byteLength(),v=D.length,x=j("sha1").update(V.alloc(0)).digest(),A=x.length,y=2*A;if(v>I-y-2)throw new Error("message too long");var p=V.alloc(I-v-y-2),c=I-A-1,n=M(A),i=H(V.concat([x,p,V.alloc(1,1),D],c),S(n,c)),Y0=H(n,S(i,A));return new U(V.concat([V.alloc(1),Y0,i],I))}function T(W,D,I){var v=D.length,x=W.modulus.byteLength();if(v>x-11)throw new Error("message too long");var A;return I?A=V.alloc(x-v-3,255):A=N(x-v-3),new U(V.concat([V.from([0,I?1:2]),A,V.alloc(1),D],x))}function N(W){for(var D=V.allocUnsafe(W),I=0,v=M(W*2),x=0,A;I<W;)x===v.length&&(v=M(W*2),x=0),A=v[x++],A&&(D[I++]=A);return D}}),v8=F0((l,g)=>{var E=J9(),M=c6(),j=d6(),S=g9(),H=S9(),U=u5(),k=l6(),z=d0().Buffer;g.exports=function(N,W,D){var I;N.padding?I=N.padding:D?I=1:I=4;var v=E(N),x=v.modulus.byteLength();if(W.length>x||new S(W).cmp(v.modulus)>=0)throw new Error("decryption error");var A;D?A=k(new S(W),v):A=H(W,v);var y=z.alloc(x-A.length);if(A=z.concat([y,A],x),I===4)return V(v,A);if(I===1)return $(v,A,D);if(I===3)return A;throw new Error("unknown padding")};function V(N,W){var D=N.modulus.byteLength(),I=U("sha1").update(z.alloc(0)).digest(),v=I.length;if(W[0]!==0)throw new Error("decryption error");var x=W.slice(1,v+1),A=W.slice(v+1),y=j(x,M(A,v)),p=j(A,M(y,D-v-1));if(T(I,p.slice(0,v)))throw new Error("decryption error");for(var c=v;p[c]===0;)c++;if(p[c++]!==1)throw new Error("decryption error");return p.slice(c)}function $(N,W,D){for(var I=W.slice(0,2),v=2,x=0;W[v++]!==0;)if(v>=W.length){x++;break}var A=W.slice(2,v-1);if((I.toString("hex")!=="0002"&&!D||I.toString("hex")!=="0001"&&D)&&x++,A.length<8&&x++,x)throw new Error("decryption error");return W.slice(v)}function T(N,W){N=z.from(N),W=z.from(W);var D=0,I=N.length;N.length!==W.length&&(D++,I=Math.min(N.length,W.length));for(var v=-1;++v<I;)D+=N[v]^W[v];return D}}),M8=F0((l)=>{l.publicEncrypt=A8(),l.privateDecrypt=v8(),l.privateEncrypt=function(g,E){return l.publicEncrypt(g,E,!0)},l.publicDecrypt=function(g,E){return l.privateDecrypt(g,E,!0)}}),_8=F0((l)=>{function g(){throw new Error(`secure random number generation not supported by this browser
|
|
5
|
+
use chrome, FireFox or Internet Explorer 11`)}var E=d0(),M=g5(),j=E.Buffer,S=E.kMaxLength,H=global.crypto||global.msCrypto,U=Math.pow(2,32)-1;function k(N,W){if(typeof N!="number"||N!==N)throw new TypeError("offset must be a number");if(N>U||N<0)throw new TypeError("offset must be a uint32");if(N>S||N>W)throw new RangeError("offset out of range")}function z(N,W,D){if(typeof N!="number"||N!==N)throw new TypeError("size must be a number");if(N>U||N<0)throw new TypeError("size must be a uint32");if(N+W>D||N>S)throw new RangeError("buffer too small")}H&&H.getRandomValues?(l.randomFill=V,l.randomFillSync=T):(l.randomFill=g,l.randomFillSync=g);function V(N,W,D,I){if(!j.isBuffer(N)&&!(N instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof W=="function")I=W,W=0,D=N.length;else if(typeof D=="function")I=D,D=N.length-W;else if(typeof I!="function")throw new TypeError('"cb" argument must be a function');return k(W,N.length),z(D,W,N.length),$(N,W,D,I)}function $(N,W,D,I){var v=N.buffer,x=new Uint8Array(v,W,D);if(H.getRandomValues(x),I){process.nextTick(function(){I(null,N)});return}return N;var A}function T(N,W,D){if(typeof W>"u"&&(W=0),!j.isBuffer(N)&&!(N instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return k(W,N.length),D===void 0&&(D=N.length-W),z(D,W,N.length),$(N,W,D)}}),h6=F0((l)=>{l.randomBytes=l.rng=l.pseudoRandomBytes=l.prng=g5(),l.createHash=l.Hash=u5(),l.createHmac=l.Hmac=H6();var g=q7(),E=Object.keys(g),M=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(E);l.getHashes=function(){return M};var j=j6();l.pbkdf2=j.pbkdf2,l.pbkdf2Sync=j.pbkdf2Sync;var S=c7();l.Cipher=S.Cipher,l.createCipher=S.createCipher,l.Cipheriv=S.Cipheriv,l.createCipheriv=S.createCipheriv,l.Decipher=S.Decipher,l.createDecipher=S.createDecipher,l.Decipheriv=S.Decipheriv,l.createDecipheriv=S.createDecipheriv,l.getCiphers=S.getCiphers,l.listCiphers=S.listCiphers;var H=o7();l.DiffieHellmanGroup=H.DiffieHellmanGroup,l.createDiffieHellmanGroup=H.createDiffieHellmanGroup,l.getDiffieHellman=H.getDiffieHellman,l.createDiffieHellman=H.createDiffieHellman,l.DiffieHellman=H.DiffieHellman;var U=E8();l.createSign=U.createSign,l.Sign=U.Sign,l.createVerify=U.createVerify,l.Verify=U.Verify,l.createECDH=x8();var k=M8();l.publicEncrypt=k.publicEncrypt,l.privateEncrypt=k.privateEncrypt,l.publicDecrypt=k.publicDecrypt,l.privateDecrypt=k.privateDecrypt;var z=_8();l.randomFill=z.randomFill,l.randomFillSync=z.randomFillSync,l.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
6
|
+
`))},l.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),u6={};i5(u6,{DEFAULT_ENCODING:()=>h5,default:()=>_5,getCurves:()=>a6,getRandomValues:()=>o6,randomUUID:()=>s6,scrypt:()=>p9,scryptSync:()=>m9,timingSafeEqual:()=>n5,webcrypto:()=>f6});Z9(u6,E5(h6()));var w8=E5(h6()),h5="buffer",o6=(l)=>crypto.getRandomValues(l),s6=()=>crypto.randomUUID(),y8=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];function a6(){return y8}var n5="timingSafeEqual"in crypto?(l,g)=>{let{byteLength:E}=l,{byteLength:M}=g;if(typeof E!="number"||typeof M!="number")throw new TypeError("Input must be an array buffer view");if(E!==M)throw new RangeError("Input buffers must have the same length");return crypto.timingSafeEqual(l,g)}:void 0,m9="scryptSync"in crypto?(l,g,E,M)=>{let j=crypto.scryptSync(l,g,E,M);return h5!=="buffer"?new Buffer(j).toString(h5):new Buffer(j)}:void 0,p9="scryptSync"in crypto?function(l,g,E,M,j){if(typeof M=="function"&&(j=M,M=void 0),typeof j!="function"){var S=new TypeError("callback must be a function");throw S.code="ERR_INVALID_CALLBACK",S}try{let H=crypto.scryptSync(l,g,E,M);process.nextTick(j,null,h5!=="buffer"?new Buffer(H).toString(h5):new Buffer(H))}catch(H){throw H}}:void 0;n5&&(Object.defineProperty(n5,"name",{value:"::bunternal::"}),Object.defineProperty(p9,"name",{value:"::bunternal::"}),Object.defineProperty(m9,"name",{value:"::bunternal::"}));var f6=crypto,_5={...w8,getRandomValues:o6,randomUUID:s6,timingSafeEqual:n5,scryptSync:m9,scrypt:p9,webcrypto:f6,getCurves:a6};/*!
|
|
10
7
|
* The buffer module from node.js, for the browser.
|
|
11
8
|
*
|
|
12
9
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
13
10
|
* @license MIT
|
|
14
|
-
*//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *//*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */import{generateMnemonic as
|
|
11
|
+
*//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *//*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */import{generateMnemonic as g8,validateMnemonic as m8}from"@scure/bip39";import{wordlist as n6}from"@scure/bip39/wordlists/english";import{blake2bFinal as p8,blake2bInit as b8,blake2bUpdate as c8}from"blakejs";var r6=(l)=>{let g=l;if(!(g instanceof Buffer))g=Buffer.from(g,"hex");let E=b8(32);return c8(E,g),Array.from(p8(E)).map((M)=>M<16?`0${M.toString(16)}`:M.toString(16)).join("")},i6=(l,g,E,M,j)=>new Promise((S,H)=>{_5.pbkdf2(l,g,E,M,j,(U,k)=>{if(U)H(U);else S(k)})}),$4=async(l,g)=>{let E=_5.randomBytes(32),M=_5.randomBytes(16),j={c:262144,prf:"hmac-sha256",dklen:32,salt:E.toString("hex")},S="aes-128-ctr",H=await i6(Buffer.from(g),E,j.c,j.dklen,"sha256"),U=_5.createCipheriv("aes-128-ctr",H.subarray(0,16),M),k=Buffer.concat([U.update(Buffer.from(l,"utf8")),U.final()]);return{meta:"xchain-keystore",version:1,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:M.toString("hex")},ciphertext:k.toString("hex"),kdf:"pbkdf2",kdfparams:j,mac:r6(Buffer.concat([H.subarray(16,32),Buffer.from(k)]))}}},j4=(l=12)=>{return g8(n6,l===12?128:256)},U4=(l)=>{return m8(l,n6)},W4=async(l,g)=>{switch(l.version){case 1:{let E=l.crypto.kdfparams,M=await i6(Buffer.from(g),Buffer.from(E.salt,"hex"),E.c,E.dklen,"sha256"),j=Buffer.from(l.crypto.ciphertext,"hex");if(r6(Buffer.concat([M.subarray(16,32),j]))!==l.crypto.mac)throw new Error("Invalid password");let H=_5.createDecipheriv(l.crypto.cipher,M.subarray(0,16),Buffer.from(l.crypto.cipherparams.iv,"hex"));return Buffer.concat([H.update(j),H.final()]).toString("utf8")}default:throw new Error("Unsupported keystore version")}};import{Chain as H5,CosmosChains as d8,EVMChains as l8,NetworkDerivationPath as h8,UTXOChains as u8,WalletOption as t6,derivationPathToString as o8,ensureEVMApiKeys as s8,filterSupportedChains as a8,getRPCUrl as e6,setRequestClientConfig as f8,updatedLastIndex as n8}from"@swapkit/helpers";var r8=[...l8,...u8,...d8,H5.Polkadot,H5.Chainflip,H5.Solana],i8=async({api:l,rpcUrl:g,chain:E,phrase:M,ethplorerApiKey:j,covalentApiKey:S,blockchairApiKey:H,derivationPath:U,stagenet:k})=>{switch(E){case H5.Arbitrum:case H5.Avalanche:case H5.Base:case H5.BinanceSmartChain:case H5.Ethereum:case H5.Optimism:case H5.Polygon:{let{getProvider:z,getToolboxByChain:V}=await import("@swapkit/toolbox-evm"),{HDNodeWallet:$}=await import("./chunk-7r0bsnk5.js"),T=s8({chain:E,covalentApiKey:S,ethplorerApiKey:j}),N=z(E,g),W=$.fromPhrase(M).connect(N),D={...T,api:l,provider:N,signer:W};return{address:W.address,walletMethods:V(E)(D)}}case H5.BitcoinCash:{let N=function({builder:D,utxos:I}){return I.forEach((v,x)=>{D.sign(x,$,void 0,65,v.witnessUtxo.value)}),D.build()},{BCHToolbox:z}=await import("@swapkit/toolbox-utxo"),V=z({rpcUrl:g,apiKey:H,apiClient:l}),$=await V.createKeysForPath({phrase:M,derivationPath:U}),T=V.getAddressFromKeys($),W={...V,transfer:(D)=>V.transfer({...D,from:T,signTransaction:N})};return{address:T,walletMethods:W}}case H5.Bitcoin:case H5.Dash:case H5.Dogecoin:case H5.Litecoin:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-utxo"),V=z(E)({rpcUrl:g,apiKey:H,apiClient:l}),$=V.createKeysForPath({phrase:M,derivationPath:U}),T=V.getAddressFromKeys($);return{address:T,walletMethods:{...V,transfer:(N)=>V.transfer({...N,from:T,signTransaction:(W)=>W.signAllInputs($)})}}}case H5.Cosmos:case H5.Kujira:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-cosmos"),V=z(E)({server:l,stagenet:k}),$=await V.getAddressFromMnemonic(M),T=await V.getSigner(M);return{address:$,walletMethods:{...V,transfer:(W)=>V.transfer({...W,signer:T})}}}case H5.Maya:case H5.THORChain:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-cosmos"),V=z(E)({server:l,stagenet:k}),$=await V.getSigner(M),T=await V.getAddressFromMnemonic(M);return{address:T,walletMethods:{...V,deposit:({assetValue:N,memo:W})=>V.deposit({assetValue:N,memo:W,from:T,signer:$}),transfer:(N)=>V.transfer({...N,from:T,signer:$}),signMessage:async(N)=>{let W=await V.createPrivateKeyFromPhrase(M);return V.signWithPrivateKey({privateKey:W,message:N})}}}}case H5.Polkadot:case H5.Chainflip:{let{Network:z,getToolboxByChain:V,createKeyring:$}=await import("@swapkit/toolbox-substrate"),T=await $(M,z[E].prefix),N=await V(E,{signer:T,providerUrl:E===H5.Polkadot?e6(H5.Polkadot):e6(H5.Chainflip)});return{address:T.address,walletMethods:N}}case H5.Solana:{let{SOLToolbox:z}=await import("@swapkit/toolbox-solana"),V=z({rpcUrl:g}),$=V.createKeysForPath({phrase:M,derivationPath:U});return{address:V.getAddressFromKeys($),walletMethods:{...V,transfer:(T)=>V.transfer({...T,fromKeypair:$})}}}default:throw new Error(`Unsupported chain ${E}`)}};function t8({addChain:l,apis:g,rpcUrls:E,config:{thorswapApiKey:M,covalentApiKey:j,ethplorerApiKey:S,blockchairApiKey:H,stagenet:U}}){return async function k(z,V,$){f8({apiKey:M});let N=a8(z,r8,t6.KEYSTORE).map(async(W)=>{let D=typeof $==="number"?$:0,I=$&&typeof $==="object"?$[W]:void 0,[v,x,A,y,p]=h8[W],c=I||n8(W===H5.Solana?[v,x,A,y]:[v,x,A,y,p],D),n=o8(c),{address:i,walletMethods:Y0}=await i8({derivationPath:n,chain:W,api:g[W],rpcUrl:E[W],covalentApiKey:j,ethplorerApiKey:S,phrase:V,blockchairApiKey:H,stagenet:U});l({...Y0,chain:W,address:i,balance:[],walletType:t6.KEYSTORE})});return await Promise.all(N),!0}}var e8={connectKeystore:t8};export{U4 as validatePhrase,e8 as keystoreWallet,j4 as generatePhrase,$4 as encryptToKeyStore,W4 as decryptFromKeystore};
|
|
15
12
|
|
|
16
|
-
//# debugId=
|
|
13
|
+
//# debugId=6C4434B32DF25E6264756E2164756E21
|