@swapkit/wallet-keystore 1.6.5 → 1.6.7
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 -8
- package/dist/index.js.map +3 -3
- package/package.json +8 -8
- package/src/keystore.ts +16 -10
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{a as B5,c as R5}from"./chunk-nm00d52v.js";var{create:i6,defineProperty:n5,getOwnPropertyDescriptor:t6,getOwnPropertyNames:e6,getPrototypeOf:K7}=Object,C7=Object.prototype.hasOwnProperty,J9=(l,g)=>()=>(l&&(g=l(l=0)),g),G0=(l,g)=>()=>(g||l((g={exports:{}}).exports,g),g.exports),r5=(l,g)=>{for(var E in g)n5(l,E,{get:g[E],enumerable:!0})},s5=(l,g,E,M)=>{if(g&&typeof g=="object"||typeof g=="function")for(let F of e6(g))!C7.call(l,F)&&F!==E&&n5(l,F,{get:()=>g[F],enumerable:!(M=t6(g,F))||M.enumerable});return l},P9=(l,g,E)=>(s5(l,g,"default"),E&&s5(E,g,"default")),E5=(l,g,E)=>(E=l!=null?i6(K7(l)):{},s5(g||!l||!l.__esModule?n5(E,"default",{value:l,enumerable:!0}):E,l)),z5=(l)=>s5(n5({},"__esModule",{value:!0}),l),X7=G0((l)=>{l.byteLength=I,l.toByteArray=V,l.fromByteArray=N;var g=[],E=[],M=typeof Uint8Array<"u"?Uint8Array:Array,F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,G=F.length;S<G;++S)g[S]=F[S],E[F.charCodeAt(S)]=S;var S,G;E[45]=62,E[95]=63;function j(U){var D=U.length;if(D%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=U.indexOf("=");k===-1&&(k=D);var v=k===D?0:4-k%4;return[k,v]}function I(U){var D=j(U),k=D[0],v=D[1];return(k+v)*3/4-v}function z(U,D,k){return(D+k)*3/4-k}function V(U){var D,k=j(U),v=k[0],x=k[1],A=new M(z(U,v,x)),y=0,p=x>0?v-4:v,c;for(c=0;c<p;c+=4)D=E[U.charCodeAt(c)]<<18|E[U.charCodeAt(c+1)]<<12|E[U.charCodeAt(c+2)]<<6|E[U.charCodeAt(c+3)],A[y++]=D>>16&255,A[y++]=D>>8&255,A[y++]=D&255;return x===2&&(D=E[U.charCodeAt(c)]<<2|E[U.charCodeAt(c+1)]>>4,A[y++]=D&255),x===1&&(D=E[U.charCodeAt(c)]<<10|E[U.charCodeAt(c+1)]<<4|E[U.charCodeAt(c+2)]>>2,A[y++]=D>>8&255,A[y++]=D&255),A}function Z(U){return g[U>>18&63]+g[U>>12&63]+g[U>>6&63]+g[U&63]}function T(U,D,k){for(var v,x=[],A=D;A<k;A+=3)v=(U[A]<<16&16711680)+(U[A+1]<<8&65280)+(U[A+2]&255),x.push(Z(v));return x.join("")}function N(U){for(var D,k=U.length,v=k%3,x=[],A=16383,y=0,p=k-v;y<p;y+=A)x.push(T(U,y,y+A>p?p:y+A));return v===1?(D=U[k-1],x.push(g[D>>2]+g[D<<4&63]+"==")):v===2&&(D=(U[k-2]<<8)+U[k-1],x.push(g[D>>10]+g[D>>4&63]+g[D<<2&63]+"=")),x.join("")}}),H7=G0((l)=>{l.read=function(g,E,M,F,S){var G,j,I=S*8-F-1,z=(1<<I)-1,V=z>>1,Z=-7,T=M?S-1:0,N=M?-1:1,U=g[E+T];for(T+=N,G=U&(1<<-Z)-1,U>>=-Z,Z+=I;Z>0;G=G*256+g[E+T],T+=N,Z-=8);for(j=G&(1<<-Z)-1,G>>=-Z,Z+=F;Z>0;j=j*256+g[E+T],T+=N,Z-=8);if(G===0)G=1-V;else{if(G===z)return j?NaN:(U?-1:1)*(1/0);j=j+Math.pow(2,F),G=G-V}return(U?-1:1)*j*Math.pow(2,G-F)},l.write=function(g,E,M,F,S,G){var j,I,z,V=G*8-S-1,Z=(1<<V)-1,T=Z>>1,N=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,U=F?0:G-1,D=F?1:-1,k=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(I=isNaN(E)?1:0,j=Z):(j=Math.floor(Math.log(E)/Math.LN2),E*(z=Math.pow(2,-j))<1&&(j--,z*=2),j+T>=1?E+=N/z:E+=N*Math.pow(2,1-T),E*z>=2&&(j++,z/=2),j+T>=Z?(I=0,j=Z):j+T>=1?(I=(E*z-1)*Math.pow(2,S),j=j+T):(I=E*Math.pow(2,T-1)*Math.pow(2,S),j=0));S>=8;g[M+U]=I&255,U+=D,I/=256,S-=8);for(j=j<<S|I,V+=S;V>0;g[M+U]=j&255,U+=D,j/=256,V-=8);g[M+U-D]|=k*128}}),U5=G0((l)=>{var g=X7(),E=H7(),M=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;l.Buffer=j,l.SlowBuffer=x,l.INSPECT_MAX_BYTES=50;var F=2147483647;l.kMaxLength=F,j.TYPED_ARRAY_SUPPORT=S(),!j.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(j.prototype,"parent",{enumerable:!0,get:function(){if(j.isBuffer(this))return this.buffer}}),Object.defineProperty(j.prototype,"offset",{enumerable:!0,get:function(){if(j.isBuffer(this))return this.byteOffset}});function G(O){if(O>F)throw new RangeError('The value "'+O+'" is invalid for option "size"');let B=new Uint8Array(O);return Object.setPrototypeOf(B,j.prototype),B}function j(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 Z(O)}return I(O,B,b)}j.poolSize=8192;function I(O,B,b){if(typeof O=="string")return T(O,B);if(ArrayBuffer.isView(O))return U(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(J0(O,ArrayBuffer)||O&&J0(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(J0(O,SharedArrayBuffer)||O&&J0(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 j.from(h,B,b);let o=k(O);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return j.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)}j.from=function(O,B,b){return I(O,B,b)},Object.setPrototypeOf(j.prototype,Uint8Array.prototype),Object.setPrototypeOf(j,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?G(O):B!==void 0?typeof b=="string"?G(O).fill(B,b):G(O).fill(B):G(O)}j.alloc=function(O,B,b){return V(O,B,b)};function Z(O){return z(O),G(O<0?0:v(O)|0)}j.allocUnsafe=function(O){return Z(O)},j.allocUnsafeSlow=function(O){return Z(O)};function T(O,B){if((typeof B!="string"||B==="")&&(B="utf8"),!j.isEncoding(B))throw new TypeError("Unknown encoding: "+B);let b=A(O,B)|0,h=G(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=G(B);for(let h=0;h<B;h+=1)b[h]=O[h]&255;return b}function U(O){if(J0(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,j.prototype),h}function k(O){if(j.isBuffer(O)){let B=v(O.length)|0,b=G(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)?G(0):N(O);if(O.type==="Buffer"&&Array.isArray(O.data))return N(O.data)}function v(O){if(O>=F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return O|0}function x(O){return+O!=O&&(O=0),j.alloc(+O)}j.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==j.prototype},j.compare=function(O,B){if(J0(O,Uint8Array)&&(O=j.from(O,O.offset,O.byteLength)),J0(B,Uint8Array)&&(B=j.from(B,B.offset,B.byteLength)),!j.isBuffer(O)||!j.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},j.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}},j.concat=function(O,B){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return j.alloc(0);let b;if(B===void 0)for(B=0,b=0;b<O.length;++b)B+=O[b].length;let h=j.allocUnsafe(B),o=0;for(b=0;b<O.length;++b){let z0=O[b];if(J0(z0,Uint8Array))o+z0.length>h.length?(j.isBuffer(z0)||(z0=j.from(z0)),z0.copy(h,o)):Uint8Array.prototype.set.call(h,z0,o);else if(j.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(j.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||J0(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}}j.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 $(this,B,b);case"utf8":case"utf-8":return Y(this,B,b);case"ascii":return P(this,B,b);case"latin1":case"binary":return W(this,B,b);case"base64":return X(this,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,B,b);default:if(h)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),h=!0}}j.prototype._isBuffer=!0;function p(O,B,b){let h=O[B];O[B]=O[b],O[b]=h}j.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},j.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},j.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},j.prototype.toString=function(){let O=this.length;return O===0?"":arguments.length===0?Y(this,0,O):y.apply(this,arguments)},j.prototype.toLocaleString=j.prototype.toString,j.prototype.equals=function(O){if(!j.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:j.compare(this,O)===0},j.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&&(j.prototype[M]=j.prototype.inspect),j.prototype.compare=function(O,B,b,h,o){if(J0(O,Uint8Array)&&(O=j.from(O,O.offset,O.byteLength)),!j.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,Y0=b-B,Z0=Math.min(z0,Y0),b0=this.slice(h,o),F0=O.slice(B,b);for(let j0=0;j0<Z0;++j0)if(b0[j0]!==F0[j0]){z0=b0[j0],Y0=F0[j0];break}return z0<Y0?-1:Y0<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=j.from(B,h)),j.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,Y0=O.length,Z0=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,Y0/=2,Z0/=2,b/=2}function b0(j0,y0){return z0===1?j0[y0]:j0.readUInt16BE(y0*z0)}let F0;if(o){let j0=-1;for(F0=b;F0<Y0;F0++)if(b0(O,F0)===b0(B,j0===-1?0:F0-j0)){if(j0===-1&&(j0=F0),F0-j0+1===Z0)return j0*z0}else j0!==-1&&(F0-=F0-j0),j0=-1}else for(b+Z0>Y0&&(b=Y0-Z0),F0=b;F0>=0;F0--){let j0=!0;for(let y0=0;y0<Z0;y0++)if(b0(O,F0+y0)!==b0(B,y0)){j0=!1;break}if(j0)return F0}return-1}j.prototype.includes=function(O,B,b){return this.indexOf(O,B,b)!==-1},j.prototype.indexOf=function(O,B,b){return c(this,O,B,b,!0)},j.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 Y0;for(Y0=0;Y0<h;++Y0){let Z0=parseInt(B.substr(Y0*2,2),16);if(w0(Z0))return Y0;O[b+Y0]=Z0}return Y0}function H0(O,B,b,h){return $0(e(B,O.length-b),O,b,h)}function f(O,B,b,h){return $0(C0(B),O,b,h)}function P0(O,B,b,h){return $0(_0(B),O,b,h)}function K(O,B,b,h){return $0(t(B,O.length-b),O,b,h)}j.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 H0(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}},j.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(O,B,b){return B===0&&b===O.length?g.fromByteArray(O):g.fromByteArray(O.slice(B,b))}function Y(O,B,b){b=Math.min(O.length,b);let h=[],o=B;for(;o<b;){let z0=O[o],Y0=null,Z0=z0>239?4:z0>223?3:z0>191?2:1;if(o+Z0<=b){let b0,F0,j0,y0;switch(Z0){case 1:z0<128&&(Y0=z0);break;case 2:b0=O[o+1],(b0&192)===128&&(y0=(z0&31)<<6|b0&63,y0>127&&(Y0=y0));break;case 3:b0=O[o+1],F0=O[o+2],(b0&192)===128&&(F0&192)===128&&(y0=(z0&15)<<12|(b0&63)<<6|F0&63,y0>2047&&(y0<55296||y0>57343)&&(Y0=y0));break;case 4:b0=O[o+1],F0=O[o+2],j0=O[o+3],(b0&192)===128&&(F0&192)===128&&(j0&192)===128&&(y0=(z0&15)<<18|(b0&63)<<12|(F0&63)<<6|j0&63,y0>65535&&y0<1114112&&(Y0=y0))}}Y0===null?(Y0=65533,Z0=1):Y0>65535&&(Y0-=65536,h.push(Y0>>>10&1023|55296),Y0=56320|Y0&1023),h.push(Y0),o+=Z0}return Q(h)}var H=4096;function Q(O){let B=O.length;if(B<=H)return String.fromCharCode.apply(String,O);let b="",h=0;for(;h<B;)b+=String.fromCharCode.apply(String,O.slice(h,h+=H));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 W(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 $(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+=U0[O[z0]];return o}function C(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}j.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,j.prototype),h};function J(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")}j.prototype.readUintLE=j.prototype.readUIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||J(O,B,this.length);let h=this[O],o=1,z0=0;for(;++z0<B&&(o*=256);)h+=this[O+z0]*o;return h},j.prototype.readUintBE=j.prototype.readUIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||J(O,B,this.length);let h=this[O+--B],o=1;for(;B>0&&(o*=256);)h+=this[O+--B]*o;return h},j.prototype.readUint8=j.prototype.readUInt8=function(O,B){return O=O>>>0,B||J(O,1,this.length),this[O]},j.prototype.readUint16LE=j.prototype.readUInt16LE=function(O,B){return O=O>>>0,B||J(O,2,this.length),this[O]|this[O+1]<<8},j.prototype.readUint16BE=j.prototype.readUInt16BE=function(O,B){return O=O>>>0,B||J(O,2,this.length),this[O]<<8|this[O+1]},j.prototype.readUint32LE=j.prototype.readUInt32LE=function(O,B){return O=O>>>0,B||J(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},j.prototype.readUint32BE=j.prototype.readUInt32BE=function(O,B){return O=O>>>0,B||J(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},j.prototype.readBigUInt64LE=W0(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))}),j.prototype.readBigUInt64BE=W0(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)}),j.prototype.readIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||J(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},j.prototype.readIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||J(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},j.prototype.readInt8=function(O,B){return O=O>>>0,B||J(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},j.prototype.readInt16LE=function(O,B){O=O>>>0,B||J(O,2,this.length);let b=this[O]|this[O+1]<<8;return b&32768?b|4294901760:b},j.prototype.readInt16BE=function(O,B){O=O>>>0,B||J(O,2,this.length);let b=this[O+1]|this[O]<<8;return b&32768?b|4294901760:b},j.prototype.readInt32LE=function(O,B){return O=O>>>0,B||J(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},j.prototype.readInt32BE=function(O,B){return O=O>>>0,B||J(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},j.prototype.readBigInt64LE=W0(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)}),j.prototype.readBigInt64BE=W0(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)}),j.prototype.readFloatLE=function(O,B){return O=O>>>0,B||J(O,4,this.length),E.read(this,O,!0,23,4)},j.prototype.readFloatBE=function(O,B){return O=O>>>0,B||J(O,4,this.length),E.read(this,O,!1,23,4)},j.prototype.readDoubleLE=function(O,B){return O=O>>>0,B||J(O,8,this.length),E.read(this,O,!0,52,8)},j.prototype.readDoubleBE=function(O,B){return O=O>>>0,B||J(O,8,this.length),E.read(this,O,!1,52,8)};function R(O,B,b,h,o,z0){if(!j.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")}j.prototype.writeUintLE=j.prototype.writeUIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let Y0=Math.pow(2,8*b)-1;R(this,O,B,b,Y0,0)}let o=1,z0=0;for(this[B]=O&255;++z0<b&&(o*=256);)this[B+z0]=O/o&255;return B+b},j.prototype.writeUintBE=j.prototype.writeUIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let Y0=Math.pow(2,8*b)-1;R(this,O,B,b,Y0,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},j.prototype.writeUint8=j.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},j.prototype.writeUint16LE=j.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},j.prototype.writeUint16BE=j.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},j.prototype.writeUint32LE=j.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},j.prototype.writeUint32BE=j.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 Y0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b++]=Y0,Y0=Y0>>8,O[b++]=Y0,Y0=Y0>>8,O[b++]=Y0,Y0=Y0>>8,O[b++]=Y0,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 Y0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b+3]=Y0,Y0=Y0>>8,O[b+2]=Y0,Y0=Y0>>8,O[b+1]=Y0,Y0=Y0>>8,O[b]=Y0,b+8}j.prototype.writeBigUInt64LE=W0(function(O,B=0){return L(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),j.prototype.writeBigUInt64BE=W0(function(O,B=0){return _(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),j.prototype.writeIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let Z0=Math.pow(2,8*b-1);R(this,O,B,b,Z0-1,-Z0)}let o=0,z0=1,Y0=0;for(this[B]=O&255;++o<b&&(z0*=256);)O<0&&Y0===0&&this[B+o-1]!==0&&(Y0=1),this[B+o]=(O/z0>>0)-Y0&255;return B+b},j.prototype.writeIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let Z0=Math.pow(2,8*b-1);R(this,O,B,b,Z0-1,-Z0)}let o=b-1,z0=1,Y0=0;for(this[B+o]=O&255;--o>=0&&(z0*=256);)O<0&&Y0===0&&this[B+o+1]!==0&&(Y0=1),this[B+o]=(O/z0>>0)-Y0&255;return B+b},j.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},j.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},j.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},j.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},j.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},j.prototype.writeBigInt64LE=W0(function(O,B=0){return L(this,O,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),j.prototype.writeBigInt64BE=W0(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}j.prototype.writeFloatLE=function(O,B,b){return r(this,O,B,!0,b)},j.prototype.writeFloatBE=function(O,B,b){return r(this,O,B,!1,b)};function X0(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}j.prototype.writeDoubleLE=function(O,B,b){return X0(this,O,B,!0,b)},j.prototype.writeDoubleBE=function(O,B,b){return X0(this,O,B,!1,b)},j.prototype.copy=function(O,B,b,h){if(!j.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},j.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"&&!j.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=j.isBuffer(O)?O:j.from(O,h),Y0=z0.length;if(Y0===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(o=0;o<b-B;++o)this[o+B]=z0[o%Y0]}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 Y0=typeof B=="bigint"?"n":"",Z0;throw z0>3?B===0||B===BigInt(0)?Z0=`>= 0${Y0} and < 2${Y0} ** ${(z0+1)*8}${Y0}`:Z0=`>= -(2${Y0} ** ${(z0+1)*8-1}${Y0}) and < 2 ** ${(z0+1)*8-1}${Y0}`:Z0=`>= ${B}${Y0} and <= ${b}${Y0}`,new u.ERR_OUT_OF_RANGE("value",Z0,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 Y0=0;Y0<h;++Y0){if(b=O.charCodeAt(Y0),b>55295&&b<57344){if(!o){if(b>56319){(B-=3)>-1&&z0.push(239,191,189);continue}else if(Y0+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 C0(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 Y0=0;Y0<O.length&&!((B-=2)<0);++Y0)b=O.charCodeAt(Y0),h=b>>8,o=b%256,z0.push(o),z0.push(h);return z0}function _0(O){return g.toByteArray(m(O))}function $0(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 J0(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 U0=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 W0(O){return typeof BigInt>"u"?c0:O}function c0(){throw new Error("BigInt not supported")}}),d0=G0((l,g)=>{var E=U5(),M=E.Buffer;function F(G,j){for(var I in G)j[I]=G[I]}M.from&&M.alloc&&M.allocUnsafe&&M.allocUnsafeSlow?g.exports=E:(F(E,l),l.Buffer=S);function S(G,j,I){return M(G,j,I)}S.prototype=Object.create(M.prototype),F(M,S),S.from=function(G,j,I){if(typeof G=="number")throw new TypeError("Argument must not be a number");return M(G,j,I)},S.alloc=function(G,j,I){if(typeof G!="number")throw new TypeError("Argument must be a number");var z=M(G);return j!==void 0?typeof I=="string"?z.fill(j,I):z.fill(j):z.fill(0),z},S.allocUnsafe=function(G){if(typeof G!="number")throw new TypeError("Argument must be a number");return M(G)},S.allocUnsafeSlow=function(G){if(typeof G!="number")throw new TypeError("Argument must be a number");return E.SlowBuffer(G)}}),g5=G0((l,g)=>{var E=65536,M=4294967295;function F(){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,G=global.crypto||global.msCrypto;G&&G.getRandomValues?g.exports=j:g.exports=F;function j(I,z){if(I>M)throw new RangeError("requested too many random bytes");var V=S.allocUnsafe(I);if(I>0)if(I>E)for(var Z=0;Z<I;Z+=E)G.getRandomValues(V.slice(Z,Z+E));else G.getRandomValues(V);return typeof z=="function"?process.nextTick(function(){z(null,V)}):V}}),p0=G0((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 F=function(){};F.prototype=M.prototype,E.prototype=new F,E.prototype.constructor=E}}}),S5=G0((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)},F;E&&typeof E.ownKeys=="function"?F=E.ownKeys:Object.getOwnPropertySymbols?F=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:F=function(c){return Object.getOwnPropertyNames(c)};function S(c){console&&console.warn&&console.warn(c)}var G=Number.isNaN||function(c){return c!==c};function j(){j.init.call(this)}g.exports=j,g.exports.once=A,j.EventEmitter=j,j.prototype._events=void 0,j.prototype._eventsCount=0,j.prototype._maxListeners=void 0;var I=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(j,"defaultMaxListeners",{enumerable:!0,get:function(){return I},set:function(c){if(typeof c!="number"||c<0||G(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");I=c}}),j.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},j.prototype.setMaxListeners=function(c){if(typeof c!="number"||c<0||G(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?j.defaultMaxListeners:c._maxListeners}j.prototype.getMaxListeners=function(){return V(this)},j.prototype.emit=function(c){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var H0=c==="error",f=this._events;if(f!==void 0)H0=H0&&f.error===void 0;else if(!H0)return!1;if(H0){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 X=f[c];if(X===void 0)return!1;if(typeof X=="function")M(X,this,n);else for(var Y=X.length,H=k(X,Y),i=0;i<Y;++i)M(H[i],this,n);return!0};function Z(c,n,i,H0){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]=H0?[i,K]:[K,i]:H0?K.unshift(i):K.push(i),f=V(c),f>0&&K.length>f&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=c,X.type=n,X.count=K.length,S(X)}return c}j.prototype.addListener=function(c,n){return Z(this,c,n,!1)},j.prototype.on=j.prototype.addListener,j.prototype.prependListener=function(c,n){return Z(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 H0={fired:!1,wrapFn:void 0,target:c,type:n,listener:i},f=T.bind(H0);return f.listener=i,H0.wrapFn=f,f}j.prototype.once=function(c,n){return z(n),this.on(c,N(this,c,n)),this},j.prototype.prependOnceListener=function(c,n){return z(n),this.prependListener(c,N(this,c,n)),this},j.prototype.removeListener=function(c,n){var i,H0,f,P0,K;if(z(n),H0=this._events,H0===void 0)return this;if(i=H0[c],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete H0[c],H0.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&&(H0[c]=i[0]),H0.removeListener!==void 0&&this.emit("removeListener",c,K||n)}return this},j.prototype.off=j.prototype.removeListener,j.prototype.removeAllListeners=function(c){var n,i,H0;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(H0=0;H0<f.length;++H0)P0=f[H0],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(H0=n.length-1;H0>=0;H0--)this.removeListener(c,n[H0]);return this};function U(c,n,i){var H0=c._events;if(H0===void 0)return[];var f=H0[n];return f===void 0?[]:typeof f=="function"?i?[f.listener||f]:[f]:i?x(f):k(f,f.length)}j.prototype.listeners=function(c){return U(this,c,!0)},j.prototype.rawListeners=function(c){return U(this,c,!1)},j.listenerCount=function(c,n){return typeof c.listenerCount=="function"?c.listenerCount(n):D.call(c,n)},j.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}j.prototype.eventNames=function(){return this._eventsCount>0?F(this._events):[]};function k(c,n){for(var i=new Array(n),H0=0;H0<n;++H0)i[H0]=c[H0];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,H0){function f(K){c.removeListener(n,P0),H0(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,H0){if(typeof c.on=="function")H0.once?c.once(n,i):c.on(n,i);else if(typeof c.addEventListener=="function")c.addEventListener(n,function f(P0){H0.once&&c.removeEventListener(n,f),i(P0)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}}),b9=G0((l,g)=>{g.exports=S5().EventEmitter}),i5=G0(()=>{}),Y7=G0((l,g)=>{function E(U,D){var k=Object.keys(U);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(U);D&&(v=v.filter(function(x){return Object.getOwnPropertyDescriptor(U,x).enumerable})),k.push.apply(k,v)}return k}function M(U){for(var D=1;D<arguments.length;D++){var k=arguments[D]!=null?arguments[D]:{};D%2?E(Object(k),!0).forEach(function(v){F(U,v,k[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(k)):E(Object(k)).forEach(function(v){Object.defineProperty(U,v,Object.getOwnPropertyDescriptor(k,v))})}return U}function F(U,D,k){return D in U?Object.defineProperty(U,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):U[D]=k,U}function S(U,D){if(!(U instanceof D))throw new TypeError("Cannot call a class as a function")}function G(U,D){for(var k=0;k<D.length;k++){var v=D[k];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(U,v.key,v)}}function j(U,D,k){return D&&G(U.prototype,D),k&&G(U,k),U}var I=U5(),z=I.Buffer,V=i5(),Z=V.inspect,T=Z&&Z.custom||"inspect";function N(U,D,k){z.prototype.copy.call(U,D,k)}g.exports=function(){function U(){S(this,U),this.head=null,this.tail=null,this.length=0}return j(U,[{key:"push",value:function(D){var k={data:D,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(D){var k={data:D,next:this.head};this.length===0&&(this.tail=k),this.head=k,++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 k=this.head,v=""+k.data;k=k.next;)v+=D+k.data;return v}},{key:"concat",value:function(D){if(this.length===0)return z.alloc(0);for(var k=z.allocUnsafe(D>>>0),v=this.head,x=0;v;)N(v.data,k,x),x+=v.data.length,v=v.next;return k}},{key:"consume",value:function(D,k){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=k?this._getString(D):this._getBuffer(D),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var k=this.head,v=1,x=k.data;for(D-=x.length;k=k.next;){var A=k.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,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=A.slice(y));break}++v}return this.length-=v,x}},{key:"_getBuffer",value:function(D){var k=z.allocUnsafe(D),v=this.head,x=1;for(v.data.copy(k),D-=v.data.length;v=v.next;){var A=v.data,y=D>A.length?A.length:D;if(A.copy(k,k.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,k}},{key:T,value:function(D,k){return Z(this,M({},k,{depth:0,customInspect:!1}))}}]),U}()}),c9=G0((l,g)=>{function E(I,z){var V=this,Z=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return Z||T?(z?z(I):I&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(G,this,I)):process.nextTick(G,this,I)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(I||null,function(N){!z&&N?V._writableState?V._writableState.errorEmitted?process.nextTick(F,V):(V._writableState.errorEmitted=!0,process.nextTick(M,V,N)):process.nextTick(M,V,N):z?(process.nextTick(F,V),z(N)):process.nextTick(F,V)}),this)}function M(I,z){G(I,z),F(I)}function F(I){I._writableState&&!I._writableState.emitClose||I._readableState&&!I._readableState.emitClose||I.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 G(I,z){I.emit("error",z)}function j(I,z){var{_readableState:V,_writableState:Z}=I;V&&V.autoDestroy||Z&&Z.autoDestroy?I.destroy(z):I.emit("error",z)}g.exports={destroy:E,undestroy:S,errorOrDestroy:j}}),m5=G0((l,g)=>{function E(z,V){z.prototype=Object.create(V.prototype),z.prototype.constructor=z,z.__proto__=V}var M={};function F(z,V,Z){Z||(Z=Error);function T(U,D,k){return typeof V=="string"?V:V(U,D,k)}var N=function(U){E(D,U);function D(k,v,x){return U.call(this,T(k,v,x))||this}return D}(Z);N.prototype.name=Z.name,N.prototype.code=z,M[z]=N}function S(z,V){if(Array.isArray(z)){var Z=z.length;return z=z.map(function(T){return String(T)}),Z>2?"one of ".concat(V," ").concat(z.slice(0,Z-1).join(", "),", or ")+z[Z-1]:Z===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 G(z,V,Z){return z.substr(!Z||Z<0?0:+Z,V.length)===V}function j(z,V,Z){return(Z===void 0||Z>z.length)&&(Z=z.length),z.substring(Z-V.length,Z)===V}function I(z,V,Z){return typeof Z!="number"&&(Z=0),Z+V.length>z.length?!1:z.indexOf(V,Z)!==-1}F("ERR_INVALID_OPT_VALUE",function(z,V){return'The value "'+V+'" is invalid for option "'+z+'"'},TypeError),F("ERR_INVALID_ARG_TYPE",function(z,V,Z){var T;typeof V=="string"&&G(V,"not ")?(T="must not be",V=V.replace(/^not /,"")):T="must be";var N;if(j(z," argument"))N="The ".concat(z," ").concat(T," ").concat(S(V,"type"));else{var U=I(z,".")?"property":"argument";N='The "'.concat(z,'" ').concat(U," ").concat(T," ").concat(S(V,"type"))}return N+=". Received type ".concat(typeof Z),N},TypeError),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),F("ERR_METHOD_NOT_IMPLEMENTED",function(z){return"The "+z+" method is not implemented"}),F("ERR_STREAM_PREMATURE_CLOSE","Premature close"),F("ERR_STREAM_DESTROYED",function(z){return"Cannot call "+z+" after a stream was destroyed"}),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),F("ERR_STREAM_WRITE_AFTER_END","write after end"),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_UNKNOWN_ENCODING",function(z){return"Unknown encoding: "+z},TypeError),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=M}),d9=G0((l,g)=>{var E=m5().codes.ERR_INVALID_OPT_VALUE;function M(S,G,j){return S.highWaterMark!=null?S.highWaterMark:G?S[j]:null}function F(S,G,j,I){var z=M(G,I,j);if(z!=null){if(!(isFinite(z)&&Math.floor(z)===z)||z<0){var V=I?j:"highWaterMark";throw new E(V,z)}return Math.floor(z)}return S.objectMode?16:16384}g.exports={getHighWaterMark:F}}),l9=G0((l,g)=>{g.exports=E;function E(F,S){if(M("noDeprecation"))return F;var G=!1;function j(){if(!G){if(M("throwDeprecation"))throw new Error(S);M("traceDeprecation")?console.trace(S):console.warn(S),G=!0}return F.apply(this,arguments)}return j}function M(F){try{if(!global.localStorage)return!1}catch{return!1}var S=global.localStorage[F];return S==null?!1:String(S).toLowerCase()==="true"}}),h9=G0((l,g)=>{g.exports=f;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){X0(d,u)}}var M;f.WritableState=i;var F={deprecate:l9()},S=b9(),G=U5().Buffer,j=global.Uint8Array||function(){};function I(u){return G.from(u)}function z(u){return G.isBuffer(u)||u instanceof j}var V=c9(),Z=d9(),T=Z.getHighWaterMark,N=m5().codes,U=N.ERR_INVALID_ARG_TYPE,D=N.ERR_METHOD_NOT_IMPLEMENTED,k=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){W(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:F.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H0=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(u){return H0.call(this,u)?!0:this!==f?!1:u&&u._writableState instanceof i}})):H0=function(u){return u instanceof this};function f(u){M=M||w5();var d=this instanceof M;if(!d&&!H0.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 U("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&&!G.isBuffer(u)&&(u=I(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=Y(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&&J(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 X(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=G.from(d,a)),d}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(u,d,a,V0,K0,Q0){if(!a){var w=X(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 H(u,d,!1,q,V0,K0,Q0);return m}function H(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 W(u,d){var a=u._writableState,V0=a.sync,K0=a.writecb;if(typeof K0!="function")throw new k;if(P(a),d)Q(u,a,V0,d,K0);else{var Q0=R(a)||u.destroyed;!Q0&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&J(u,a),V0?process.nextTick($,u,a,Q0,K0):$(u,a,Q0,K0)}}function $(u,d,a,V0){a||C(u,d),d.pendingcb--,V0(),s(u,d)}function C(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function J(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,H(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:C0}=a,t=d.objectMode?1:m.length;if(H(u,d,!1,t,m,e,C0),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 X0(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=G0((l,g)=>{var E=Object.keys||function(Z){var T=[];for(var N in Z)T.push(N);return T};g.exports=I;var M=u9(),F=h9();p0()(I,M);for(S=E(F.prototype),j=0;j<S.length;j++)G=S[j],I.prototype[G]||(I.prototype[G]=F.prototype[G]);var S,G,j;function I(Z){if(!(this instanceof I))return new I(Z);M.call(this,Z),F.call(this,Z),this.allowHalfOpen=!0,Z&&(Z.readable===!1&&(this.readable=!1),Z.writable===!1&&(this.writable=!1),Z.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||process.nextTick(V,this)}function V(Z){Z.end()}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(Z){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=Z,this._writableState.destroyed=Z)}})}),W9=G0((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 F(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=F(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=U,this.end=D,A=3;break;default:this.write=k,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=Z,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 G(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function j(x,A,y){var p=A.length-1;if(p<y)return 0;var c=G(A[p]);return c>=0?(c>0&&(x.lastNeed=c-1),c):--p<y||c===-2?0:(c=G(A[p]),c>=0?(c>0&&(x.lastNeed=c-2),c):--p<y||c===-2?0:(c=G(A[p]),c>=0?(c>0&&(c===2?c=0:x.lastNeed=c-3),c):0))}function I(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=I(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=j(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 Z(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 U(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 k(x){return x.toString(this.encoding)}function v(x){return x&&x.length?this.write(x):""}}),d5={};r5(d5,{StringDecoder:()=>G9.StringDecoder,default:()=>G9.StringDecoder});var G9,a5=J9(()=>{G9=E5(W9())}),Z9=G0((l,g)=>{var E=m5().codes.ERR_STREAM_PREMATURE_CLOSE;function M(j){var I=!1;return function(){if(!I){I=!0;for(var z=arguments.length,V=new Array(z),Z=0;Z<z;Z++)V[Z]=arguments[Z];j.apply(this,V)}}}function F(){}function S(j){return j.setHeader&&typeof j.abort=="function"}function G(j,I,z){if(typeof I=="function")return G(j,null,I);I||(I={}),z=M(z||F);var V=I.readable||I.readable!==!1&&j.readable,Z=I.writable||I.writable!==!1&&j.writable,T=function(){j.writable||U()},N=j._writableState&&j._writableState.finished,U=function(){Z=!1,N=!0,V||z.call(j)},D=j._readableState&&j._readableState.endEmitted,k=function(){V=!1,D=!0,Z||z.call(j)},v=function(y){z.call(j,y)},x=function(){var y;if(V&&!D)return(!j._readableState||!j._readableState.ended)&&(y=new E),z.call(j,y);if(Z&&!N)return(!j._writableState||!j._writableState.ended)&&(y=new E),z.call(j,y)},A=function(){j.req.on("finish",U)};return S(j)?(j.on("complete",U),j.on("abort",x),j.req?A():j.on("request",A)):Z&&!j._writableState&&(j.on("end",T),j.on("close",T)),j.on("end",k),j.on("finish",U),I.error!==!1&&j.on("error",v),j.on("close",x),function(){j.removeListener("complete",U),j.removeListener("abort",x),j.removeListener("request",A),j.req&&j.req.removeListener("finish",U),j.removeListener("end",T),j.removeListener("close",T),j.removeListener("finish",U),j.removeListener("end",k),j.removeListener("error",v),j.removeListener("close",x)}}g.exports=G}),Q7=G0((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 F=Z9(),S=Symbol("lastResolve"),G=Symbol("lastReject"),j=Symbol("error"),I=Symbol("ended"),z=Symbol("lastPromise"),V=Symbol("handlePromise"),Z=Symbol("stream");function T(A,y){return{value:A,done:y}}function N(A){var y=A[S];if(y!==null){var p=A[Z].read();p!==null&&(A[z]=null,A[S]=null,A[G]=null,y(T(p,!1)))}}function U(A){process.nextTick(N,A)}function D(A,y){return function(p,c){A.then(function(){if(y[I]){p(T(void 0,!0));return}y[V](p,c)},c)}}var k=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((E={get stream(){return this[Z]},next:function(){var A=this,y=this[j];if(y!==null)return Promise.reject(y);if(this[I])return Promise.resolve(T(void 0,!0));if(this[Z].destroyed)return new Promise(function(i,H0){process.nextTick(function(){A[j]?H0(A[j]):i(T(void 0,!0))})});var p=this[z],c;if(p)c=new Promise(D(p,this));else{var n=this[Z].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[Z].destroy(null,function(c){if(c){p(c);return}y(T(void 0,!0))})})}),E),k),x=function(A){var y,p=Object.create(v,(y={},M(y,Z,{value:A,writable:!0}),M(y,S,{value:null,writable:!0}),M(y,G,{value:null,writable:!0}),M(y,j,{value:null,writable:!0}),M(y,I,{value:A._readableState.endEmitted,writable:!0}),M(y,V,{value:function(c,n){var i=p[Z].read();i?(p[z]=null,p[S]=null,p[G]=null,c(T(i,!1))):(p[S]=c,p[G]=n)},writable:!0}),y));return p[z]=null,F(A,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[G];n!==null&&(p[z]=null,p[S]=null,p[G]=null,n(c)),p[j]=c;return}var i=p[S];i!==null&&(p[z]=null,p[S]=null,p[G]=null,i(T(void 0,!0))),p[I]=!0}),A.on("readable",U.bind(null,p)),p};g.exports=x}),$7=G0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),u9=G0((l,g)=>{g.exports=K;var E;K.ReadableState=P0;var M=S5().EventEmitter,F=function(w,q){return w.listeners(q).length},S=b9(),G=U5().Buffer,j=global.Uint8Array||function(){};function I(w){return G.from(w)}function z(w){return G.isBuffer(w)||w instanceof j}var V=i5(),Z;V&&V.debuglog?Z=V.debuglog("stream"):Z=function(){};var T=Y7(),N=c9(),U=d9(),D=U.getHighWaterMark,k=m5().codes,v=k.ERR_INVALID_ARG_TYPE,x=k.ERR_STREAM_PUSH_AFTER_EOF,A=k.ERR_METHOD_NOT_IMPLEMENTED,y=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(K,S);var i=N.errorOrDestroy,H0=["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=(a5(),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=G.from(w,q),q=""),e=!0),X(this,w,q,!1,e)},K.prototype.unshift=function(w){return X(this,w,null,!0,!1)};function X(w,q,m,e,C0){Z("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,$(w,t);else{var _0;if(C0||(_0=H(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==G.prototype&&(q=I(q)),e)t.endEmitted?i(w,new y):Y(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?Y(w,t,q,!1):R(w,t)):Y(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function Y(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&&C(w)),R(w,q)}function H(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=(a5(),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 W(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){Z("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 Z("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?V0(this):C(this),null;if(w=W(w,q),w===0&&q.ended)return q.length===0&&V0(this),null;var e=q.needReadable;Z("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,Z("length less than watermark",e)),q.ended||q.reading?(e=!1,Z("reading or ended",e)):e&&(Z("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=W(m,q)));var C0;return w>0?C0=a(w,q):C0=null,C0===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)),C0!==null&&this.emit("data",C0),C0};function $(w,q){if(Z("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?C(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,J(w)))}}function C(w){var q=w._readableState;Z("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(Z("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(J,w))}function J(w){var q=w._readableState;Z("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(Z("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,Z("pipe count=%d opts=%j",e.pipesCount,q);var C0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=C0?$0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){Z("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,U0())}function $0(){Z("onend"),w.end()}var J0=_(m);w.on("drain",J0);var w0=!1;function U0(){Z("cleanup"),w.removeListener("close",O),w.removeListener("finish",B),w.removeListener("drain",J0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",$0),m.removeListener("end",b),m.removeListener("data",W0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&J0()}m.on("data",W0);function W0(h){Z("ondata");var o=w.write(h);Z("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&Q0(e.pipes,w)!==-1)&&!w0&&(Z("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){Z("onerror",h),b(),w.removeListener("error",c0),F(w,"error")===0&&i(w,h)}f(w,"error",c0);function O(){w.removeListener("finish",B),b()}w.once("close",O);function B(){Z("onfinish"),w.removeListener("close",O),b()}w.once("finish",B);function b(){Z("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||(Z("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;Z("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&F(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:C0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<C0;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,Z("on readable",e.length,e.reading),e.length?C(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){Z("readable nexttick read 0"),w.read(0)}K.prototype.resume=function(){var w=this._readableState;return w.flowing||(Z("resume"),w.flowing=!w.readableListening,X0(this,w)),w.paused=!1,this};function X0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){Z("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 Z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Z("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for(Z("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(Z("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(Z("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var $0=q.push(_0);$0||(e=!0,w.pause())}});for(var C0 in w)this[C0]===void 0&&typeof w[C0]=="function"&&(this[C0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(C0));for(var t=0;t<H0.length;t++)w.on(H0[t],this.emit.bind(this,H0[t]));return this._read=function(_0){Z("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=Q7()),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;Z("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(K0,q,w))}function K0(w,q){if(Z("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=$7()),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}}),o9=G0((l,g)=>{g.exports=z;var E=m5().codes,M=E.ERR_METHOD_NOT_IMPLEMENTED,F=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,G=E.ERR_TRANSFORM_WITH_LENGTH_0,j=w5();p0()(z,j);function I(T,N){var U=this._transformState;U.transforming=!1;var D=U.writecb;if(D===null)return this.emit("error",new F);U.writechunk=null,U.writecb=null,N!=null&&this.push(N),D(T);var k=this._readableState;k.reading=!1,(k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}function z(T){if(!(this instanceof z))return new z(T);j.call(this,T),this._transformState={afterTransform:I.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,U){Z(T,N,U)}):Z(this,null,null)}z.prototype.push=function(T,N){return this._transformState.needTransform=!1,j.prototype.push.call(this,T,N)},z.prototype._transform=function(T,N,U){U(new M("_transform()"))},z.prototype._write=function(T,N,U){var D=this._transformState;if(D.writecb=U,D.writechunk=T,D.writeencoding=N,!D.transforming){var k=this._readableState;(D.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.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){j.prototype._destroy.call(this,T,function(U){N(U)})};function Z(T,N,U){if(N)return T.emit("error",N);if(U!=null&&T.push(U),T._writableState.length)throw new G;if(T._transformState.transforming)throw new S;return T.push(null)}}),G7=G0((l,g)=>{g.exports=M;var E=o9();p0()(M,E);function M(F){if(!(this instanceof M))return new M(F);E.call(this,F)}M.prototype._transform=function(F,S,G){G(null,F)}}),J7=G0((l,g)=>{var E;function M(U){var D=!1;return function(){D||(D=!0,U.apply(void 0,arguments))}}var F=m5().codes,S=F.ERR_MISSING_ARGS,G=F.ERR_STREAM_DESTROYED;function j(U){if(U)throw U}function I(U){return U.setHeader&&typeof U.abort=="function"}function z(U,D,k,v){v=M(v);var x=!1;U.on("close",function(){x=!0}),E===void 0&&(E=Z9()),E(U,{readable:D,writable:k},function(y){if(y)return v(y);x=!0,v()});var A=!1;return function(y){if(!x&&!A){if(A=!0,I(U))return U.abort();if(typeof U.destroy=="function")return U.destroy();v(y||new G("pipe"))}}}function V(U){U()}function Z(U,D){return U.pipe(D)}function T(U){return!U.length||typeof U[U.length-1]!="function"?j:U.pop()}function N(){for(var U=arguments.length,D=new Array(U),k=0;k<U;k++)D[k]=arguments[k];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(Z)}g.exports=N}),P7=G0((l,g)=>{l=g.exports=u9(),l.Stream=l,l.Readable=l,l.Writable=h9(),l.Duplex=w5(),l.Transform=o9(),l.PassThrough=G7(),l.finished=Z9(),l.pipeline=J7()}),s9=G0((l,g)=>{var E=d0().Buffer,M=P7().Transform,F=p0();function S(j,I){if(!E.isBuffer(j)&&typeof j!="string")throw new TypeError(I+" must be a string or a buffer")}function G(j){M.call(this),this._block=E.allocUnsafe(j),this._blockSize=j,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}F(G,M),G.prototype._transform=function(j,I,z){var V=null;try{this.update(j,I)}catch(Z){V=Z}z(V)},G.prototype._flush=function(j){var I=null;try{this.push(this.digest())}catch(z){I=z}j(I)},G.prototype.update=function(j,I){if(S(j,"Data"),this._finalized)throw new Error("Digest already called");E.isBuffer(j)||(j=E.from(j,I));for(var z=this._block,V=0;this._blockOffset+j.length-V>=this._blockSize;){for(var Z=this._blockOffset;Z<this._blockSize;)z[Z++]=j[V++];this._update(),this._blockOffset=0}for(;V<j.length;)z[this._blockOffset++]=j[V++];for(var T=0,N=j.length*8;N>0;++T)this._length[T]+=N,N=this._length[T]/4294967296|0,N>0&&(this._length[T]-=4294967296*N);return this},G.prototype._update=function(){throw new Error("_update is not implemented")},G.prototype.digest=function(j){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var I=this._digest();j!==void 0&&(I=I.toString(j)),this._block.fill(0),this._blockOffset=0;for(var z=0;z<4;++z)this._length[z]=0;return I},G.prototype._digest=function(){throw new Error("_digest is not implemented")},g.exports=G}),j9=G0((l,g)=>{var E=p0(),M=s9(),F=d0().Buffer,S=new Array(16);function G(){M.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}E(G,M),G.prototype._update=function(){for(var T=S,N=0;N<16;++N)T[N]=this._block.readInt32LE(N*4);var U=this._a,D=this._b,k=this._c,v=this._d;U=I(U,D,k,v,T[0],3614090360,7),v=I(v,U,D,k,T[1],3905402710,12),k=I(k,v,U,D,T[2],606105819,17),D=I(D,k,v,U,T[3],3250441966,22),U=I(U,D,k,v,T[4],4118548399,7),v=I(v,U,D,k,T[5],1200080426,12),k=I(k,v,U,D,T[6],2821735955,17),D=I(D,k,v,U,T[7],4249261313,22),U=I(U,D,k,v,T[8],1770035416,7),v=I(v,U,D,k,T[9],2336552879,12),k=I(k,v,U,D,T[10],4294925233,17),D=I(D,k,v,U,T[11],2304563134,22),U=I(U,D,k,v,T[12],1804603682,7),v=I(v,U,D,k,T[13],4254626195,12),k=I(k,v,U,D,T[14],2792965006,17),D=I(D,k,v,U,T[15],1236535329,22),U=z(U,D,k,v,T[1],4129170786,5),v=z(v,U,D,k,T[6],3225465664,9),k=z(k,v,U,D,T[11],643717713,14),D=z(D,k,v,U,T[0],3921069994,20),U=z(U,D,k,v,T[5],3593408605,5),v=z(v,U,D,k,T[10],38016083,9),k=z(k,v,U,D,T[15],3634488961,14),D=z(D,k,v,U,T[4],3889429448,20),U=z(U,D,k,v,T[9],568446438,5),v=z(v,U,D,k,T[14],3275163606,9),k=z(k,v,U,D,T[3],4107603335,14),D=z(D,k,v,U,T[8],1163531501,20),U=z(U,D,k,v,T[13],2850285829,5),v=z(v,U,D,k,T[2],4243563512,9),k=z(k,v,U,D,T[7],1735328473,14),D=z(D,k,v,U,T[12],2368359562,20),U=V(U,D,k,v,T[5],4294588738,4),v=V(v,U,D,k,T[8],2272392833,11),k=V(k,v,U,D,T[11],1839030562,16),D=V(D,k,v,U,T[14],4259657740,23),U=V(U,D,k,v,T[1],2763975236,4),v=V(v,U,D,k,T[4],1272893353,11),k=V(k,v,U,D,T[7],4139469664,16),D=V(D,k,v,U,T[10],3200236656,23),U=V(U,D,k,v,T[13],681279174,4),v=V(v,U,D,k,T[0],3936430074,11),k=V(k,v,U,D,T[3],3572445317,16),D=V(D,k,v,U,T[6],76029189,23),U=V(U,D,k,v,T[9],3654602809,4),v=V(v,U,D,k,T[12],3873151461,11),k=V(k,v,U,D,T[15],530742520,16),D=V(D,k,v,U,T[2],3299628645,23),U=Z(U,D,k,v,T[0],4096336452,6),v=Z(v,U,D,k,T[7],1126891415,10),k=Z(k,v,U,D,T[14],2878612391,15),D=Z(D,k,v,U,T[5],4237533241,21),U=Z(U,D,k,v,T[12],1700485571,6),v=Z(v,U,D,k,T[3],2399980690,10),k=Z(k,v,U,D,T[10],4293915773,15),D=Z(D,k,v,U,T[1],2240044497,21),U=Z(U,D,k,v,T[8],1873313359,6),v=Z(v,U,D,k,T[15],4264355552,10),k=Z(k,v,U,D,T[6],2734768916,15),D=Z(D,k,v,U,T[13],1309151649,21),U=Z(U,D,k,v,T[4],4149444226,6),v=Z(v,U,D,k,T[11],3174756917,10),k=Z(k,v,U,D,T[2],718787259,15),D=Z(D,k,v,U,T[9],3951481745,21),this._a=this._a+U|0,this._b=this._b+D|0,this._c=this._c+k|0,this._d=this._d+v|0},G.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=F.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 j(T,N){return T<<N|T>>>32-N}function I(T,N,U,D,k,v,x){return j(T+(N&U|~N&D)+k+v|0,x)+N|0}function z(T,N,U,D,k,v,x){return j(T+(N&D|U&~D)+k+v|0,x)+N|0}function V(T,N,U,D,k,v,x){return j(T+(N^U^D)+k+v|0,x)+N|0}function Z(T,N,U,D,k,v,x){return j(T+(U^(N|~D))+k+v|0,x)+N|0}g.exports=G}),F9=G0((l,g)=>{var E=U5().Buffer,M=p0(),F=s9(),S=new Array(16),G=[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],j=[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],I=[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],Z=[1352829926,1548603684,1836072691,2053994217,0];function T(){F.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}M(T,F),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,H0=this._e|0,f=this._a|0,P0=this._b|0,K=this._c|0,X=this._d|0,Y=this._e|0,H=0;H<80;H+=1){var Q,P;H<16?(Q=U(p,c,n,i,H0,A[G[H]],V[0],I[H]),P=x(f,P0,K,X,Y,A[j[H]],Z[0],z[H])):H<32?(Q=D(p,c,n,i,H0,A[G[H]],V[1],I[H]),P=v(f,P0,K,X,Y,A[j[H]],Z[1],z[H])):H<48?(Q=k(p,c,n,i,H0,A[G[H]],V[2],I[H]),P=k(f,P0,K,X,Y,A[j[H]],Z[2],z[H])):H<64?(Q=v(p,c,n,i,H0,A[G[H]],V[3],I[H]),P=D(f,P0,K,X,Y,A[j[H]],Z[3],z[H])):(Q=x(p,c,n,i,H0,A[G[H]],V[4],I[H]),P=U(f,P0,K,X,Y,A[j[H]],Z[4],z[H])),p=H0,H0=i,i=N(n,10),n=c,c=Q,f=Y,Y=X,X=N(K,10),K=P0,P0=P}var W=this._b+n+X|0;this._b=this._c+i+Y|0,this._c=this._d+H0+f|0,this._d=this._e+p+P0|0,this._e=this._a+c+K|0,this._a=W},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 U(A,y,p,c,n,i,H0,f){return N(A+(y^p^c)+i+H0|0,f)+n|0}function D(A,y,p,c,n,i,H0,f){return N(A+(y&p|~y&c)+i+H0|0,f)+n|0}function k(A,y,p,c,n,i,H0,f){return N(A+((y|~p)^c)+i+H0|0,f)+n|0}function v(A,y,p,c,n,i,H0,f){return N(A+(y&c|p&~c)+i+H0|0,f)+n|0}function x(A,y,p,c,n,i,H0,f){return N(A+(y^(p|~c))+i+H0|0,f)+n|0}g.exports=T}),p5=G0((l,g)=>{var E=d0().Buffer;function M(F,S){this._block=E.alloc(F),this._finalSize=S,this._blockSize=F,this._len=0}M.prototype.update=function(F,S){typeof F=="string"&&(S=S||"utf8",F=E.from(F,S));for(var G=this._block,j=this._blockSize,I=F.length,z=this._len,V=0;V<I;){for(var Z=z%j,T=Math.min(I-V,j-Z),N=0;N<T;N++)G[Z+N]=F[V+N];z+=T,V+=T,z%j===0&&this._update(G)}return this._len+=I,this},M.prototype.digest=function(F){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 G=this._len*8;if(G<=4294967295)this._block.writeUInt32BE(G,this._blockSize-4);else{var j=(G&4294967295)>>>0,I=(G-j)/4294967296;this._block.writeUInt32BE(I,this._blockSize-8),this._block.writeUInt32BE(j,this._blockSize-4)}this._update(this._block);var z=this._hash();return F?z.toString(F):z},M.prototype._update=function(){throw new Error("_update must be implemented by subclass")},g.exports=M}),W7=G0((l,g)=>{var E=p0(),M=p5(),F=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],G=new Array(80);function j(){this.init(),this._w=G,M.call(this,64,56)}E(j,M),j.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function I(Z){return Z<<5|Z>>>27}function z(Z){return Z<<30|Z>>>2}function V(Z,T,N,U){return Z===0?T&N|~T&U:Z===2?T&N|T&U|N&U:T^N^U}j.prototype._update=function(Z){for(var T=this._w,N=this._a|0,U=this._b|0,D=this._c|0,k=this._d|0,v=this._e|0,x=0;x<16;++x)T[x]=Z.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=I(N)+V(y,U,D,k)+v+T[A]+S[y]|0;v=k,k=D,D=z(U),U=N,N=p}this._a=N+this._a|0,this._b=U+this._b|0,this._c=D+this._c|0,this._d=k+this._d|0,this._e=v+this._e|0},j.prototype._hash=function(){var Z=F.allocUnsafe(20);return Z.writeInt32BE(this._a|0,0),Z.writeInt32BE(this._b|0,4),Z.writeInt32BE(this._c|0,8),Z.writeInt32BE(this._d|0,12),Z.writeInt32BE(this._e|0,16),Z},g.exports=j}),Z7=G0((l,g)=>{var E=p0(),M=p5(),F=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],G=new Array(80);function j(){this.init(),this._w=G,M.call(this,64,56)}E(j,M),j.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function I(T){return T<<1|T>>>31}function z(T){return T<<5|T>>>27}function V(T){return T<<30|T>>>2}function Z(T,N,U,D){return T===0?N&U|~N&D:T===2?N&U|N&D|U&D:N^U^D}j.prototype._update=function(T){for(var N=this._w,U=this._a|0,D=this._b|0,k=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]=I(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(U)+Z(p,D,k,v)+x+N[y]+S[p]|0;x=v,v=k,k=V(D),D=U,U=c}this._a=U+this._a|0,this._b=D+this._b|0,this._c=k+this._c|0,this._d=v+this._d|0,this._e=x+this._e|0},j.prototype._hash=function(){var T=F.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=j}),a9=G0((l,g)=>{var E=p0(),M=p5(),F=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],G=new Array(64);function j(){this.init(),this._w=G,M.call(this,64,56)}E(j,M),j.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 I(U,D,k){return k^U&(D^k)}function z(U,D,k){return U&D|k&(U|D)}function V(U){return(U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10)}function Z(U){return(U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7)}function T(U){return(U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3}function N(U){return(U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10}j.prototype._update=function(U){for(var D=this._w,k=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]=U.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 H0=0;H0<64;++H0){var f=n+Z(y)+I(y,p,c)+S[H0]+D[H0]|0,P0=V(k)+z(k,v,x)|0;n=c,c=p,p=y,y=A+f|0,A=x,x=v,v=k,k=f+P0|0}this._a=k+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},j.prototype._hash=function(){var U=F.allocUnsafe(32);return U.writeInt32BE(this._a,0),U.writeInt32BE(this._b,4),U.writeInt32BE(this._c,8),U.writeInt32BE(this._d,12),U.writeInt32BE(this._e,16),U.writeInt32BE(this._f,20),U.writeInt32BE(this._g,24),U.writeInt32BE(this._h,28),U},g.exports=j}),j7=G0((l,g)=>{var E=p0(),M=a9(),F=p5(),S=d0().Buffer,G=new Array(64);function j(){this.init(),this._w=G,F.call(this,64,56)}E(j,M),j.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},j.prototype._hash=function(){var I=S.allocUnsafe(28);return I.writeInt32BE(this._a,0),I.writeInt32BE(this._b,4),I.writeInt32BE(this._c,8),I.writeInt32BE(this._d,12),I.writeInt32BE(this._e,16),I.writeInt32BE(this._f,20),I.writeInt32BE(this._g,24),I},g.exports=j}),f9=G0((l,g)=>{var E=p0(),M=p5(),F=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],G=new Array(160);function j(){this.init(),this._w=G,M.call(this,128,112)}E(j,M),j.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 I(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 Z(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 U(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 k(v,x){return v>>>0<x>>>0?1:0}j.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,H0=this._gh|0,f=this._hh|0,P0=this._al|0,K=this._bl|0,X=this._cl|0,Y=this._dl|0,H=this._el|0,Q=this._fl|0,P=this._gl|0,W=this._hl|0,$=0;$<32;$+=2)x[$]=v.readInt32BE($*4),x[$+1]=v.readInt32BE($*4+4);for(;$<160;$+=2){var C=x[$-30],J=x[$-30+1],R=T(C,J),L=N(J,C);C=x[$-4],J=x[$-4+1];var _=U(C,J),s=D(J,C),r=x[$-14],X0=x[$-14+1],u=x[$-32],d=x[$-32+1],a=L+X0|0,V0=R+r+k(a,L)|0;a=a+s|0,V0=V0+_+k(a,s)|0,a=a+d|0,V0=V0+u+k(a,d)|0,x[$]=V0,x[$+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,X),q=V(A,P0),m=V(P0,A),e=Z(n,H),C0=Z(H,n),t=S[K0],_0=S[K0+1],$0=I(n,i,H0),J0=I(H,Q,P),w0=W+C0|0,U0=f+e+k(w0,W)|0;w0=w0+J0|0,U0=U0+$0+k(w0,J0)|0,w0=w0+_0|0,U0=U0+t+k(w0,_0)|0,w0=w0+a|0,U0=U0+V0+k(w0,a)|0;var W0=m+w|0,c0=q+Q0+k(W0,m)|0;f=H0,W=P,H0=i,P=Q,i=n,Q=H,H=Y+w0|0,n=c+U0+k(H,Y)|0,c=p,Y=X,p=y,X=K,y=A,K=P0,P0=w0+W0|0,A=U0+c0+k(P0,w0)|0}this._al=this._al+P0|0,this._bl=this._bl+K|0,this._cl=this._cl+X|0,this._dl=this._dl+Y|0,this._el=this._el+H|0,this._fl=this._fl+Q|0,this._gl=this._gl+P|0,this._hl=this._hl+W|0,this._ah=this._ah+A+k(this._al,P0)|0,this._bh=this._bh+y+k(this._bl,K)|0,this._ch=this._ch+p+k(this._cl,X)|0,this._dh=this._dh+c+k(this._dl,Y)|0,this._eh=this._eh+n+k(this._el,H)|0,this._fh=this._fh+i+k(this._fl,Q)|0,this._gh=this._gh+H0+k(this._gl,P)|0,this._hh=this._hh+f+k(this._hl,W)|0},j.prototype._hash=function(){var v=F.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=j}),F7=G0((l,g)=>{var E=p0(),M=f9(),F=p5(),S=d0().Buffer,G=new Array(160);function j(){this.init(),this._w=G,F.call(this,128,112)}E(j,M),j.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},j.prototype._hash=function(){var I=S.allocUnsafe(48);function z(V,Z,T){I.writeInt32BE(V,T),I.writeInt32BE(Z,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),I},g.exports=j}),U9=G0((E,g)=>{var E=g.exports=function(M){M=M.toLowerCase();var F=E[M];if(!F)throw new Error(M+" is not supported (we accept pull requests)");return new F};E.sha=W7(),E.sha1=Z7(),E.sha224=j7(),E.sha256=a9(),E.sha384=F7(),E.sha512=f9()}),F5=G0((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,F){return E.slice(M,F)},Error,FunctionPrototypeCall(E,M,...F){return E.call(M,...F)},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,F){return Object.defineProperty(E,M,F)},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,F){return E.then(M,F)},PromiseReject(E){return Promise.reject(E)},ReflectApply:Reflect.apply,RegExpPrototypeTest(E,M){return E.test(M)},SafeSet:Set,String,StringPrototypeSlice(E,M,F){return E.slice(M,F)},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,F){return E.set(M,F)},Uint8Array}}),N5=G0((l,g)=>{var E=U5(),M=Object.getPrototypeOf(async function(){}).constructor,F=globalThis.Blob||E.Blob,S=typeof F<"u"?function(j){return j instanceof F}:function(j){return!1},G=class extends Error{constructor(j){if(!Array.isArray(j))throw new TypeError(`Expected input to be an Array, got ${typeof j}`);let I="";for(let z=0;z<j.length;z++)I+=` ${j[z].stack}
|
|
3
|
-
`;super(I),this.name="AggregateError",this.errors=j}};g.exports={AggregateError:G,kEmptyObject:Object.freeze({}),once(j){let I=!1;return function(...z){I||(I=!0,j.apply(this,z))}},createDeferredPromise:function(){let j,I;return{promise:new Promise((z,V)=>{j=z,I=V}),resolve:j,reject:I}},promisify(j){return new Promise((I,z)=>{j((V,...Z)=>V?z(V):I(...Z))})},debuglog(){return function(){}},format(j,...I){return j.replace(/%([sdifj])/g,function(...[z,V]){let Z=I.shift();return V==="f"?Z.toFixed(6):V==="j"?JSON.stringify(Z):V==="s"&&typeof Z=="object"?`${Z.constructor!==Object?Z.constructor.name:""} {}`.trim():Z.toString()})},inspect(j){switch(typeof j){case"string":if(j.includes("'"))if(j.includes('"')){if(!j.includes("`")&&!j.includes("${"))return`\`${j}\``}else return`"${j}"`;return`'${j}'`;case"number":return isNaN(j)?"NaN":Object.is(j,-0)?String(j):j;case"bigint":return`${String(j)}n`;case"boolean":case"undefined":return String(j);case"object":return"{}"}},types:{isAsyncFunction(j){return j instanceof M},isArrayBufferView(j){return ArrayBuffer.isView(j)}},isBlob:S},g.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),V9=G0((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=G0((l,g)=>{var{format:E,inspect:M,AggregateError:F}=N5(),S=globalThis.AggregateError||F,G=Symbol("kIsNodeError"),j=["string","function","number","object","Function","Object","boolean","bigint","symbol"],I=/^([A-Z][a-z0-9]*)+$/,z="__node_internal_",V={};function Z(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 Z(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 Z(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 U(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[G]=!0,V[x]=p}function D(x){let A=z+x.name;return Object.defineProperty(x,"name",{value:A}),x}function k(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"}};U("ERR_ASSERTION","%s",Error),U("ERR_INVALID_ARG_TYPE",(x,A,y)=>{Z(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)Z(typeof f=="string","All expected entries have to be of type string"),j.includes(f)?c.push(f.toLowerCase()):I.test(f)?n.push(f):(Z(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 H0;(H0=y.constructor)!==null&&H0!==void 0&&H0.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),U("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),U("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),U("ERR_MISSING_ARGS",(...x)=>{Z(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),U("ERR_OUT_OF_RANGE",(x,A,y)=>{Z(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),U("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),U("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),U("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),U("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),U("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),U("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),U("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),U("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),U("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),U("ERR_STREAM_WRITE_AFTER_END","write after end",Error),U("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),g.exports={AbortError:v,aggregateTwoErrors:D(k),hideStackFrames:D,codes:V}}),t5=G0((l,g)=>{var{ArrayIsArray:E,ArrayPrototypeIncludes:M,ArrayPrototypeJoin:F,ArrayPrototypeMap:S,NumberIsInteger:G,NumberIsNaN:j,NumberMAX_SAFE_INTEGER:I,NumberMIN_SAFE_INTEGER:z,NumberParseInt:V,ObjectPrototypeHasOwnProperty:Z,RegExpPrototypeExec:T,String:N,StringPrototypeToUpperCase:U,StringPrototypeTrim:D}=F5(),{hideStackFrames:k,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,H0={};function f(w){return w===(w|0)}function P0(w){return w===w>>>0}var K=/^[0-7]+$/,X="must be a 32-bit unsigned integer or an octal string";function Y(w,q,m){if(typeof w>"u"&&(w=m),typeof w=="string"){if(T(K,w)===null)throw new A(q,w,X);w=V(w,8)}return P(w,q),w}var H=k((w,q,m=z,e=I)=>{if(typeof w!="number")throw new x(q,"number",w);if(!G(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),Q=k((w,q,m=-2147483648,e=2147483647)=>{if(typeof w!="number")throw new x(q,"number",w);if(!G(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),P=k((w,q,m=!1)=>{if(typeof w!="number")throw new x(q,"number",w);if(!G(w))throw new y(q,"an integer",w);let e=m?1:0,C0=4294967295;if(w<e||w>C0)throw new y(q,`>= ${e} && <= ${C0}`,w)});function W(w,q){if(typeof w!="string")throw new x(q,"string",w)}function $(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)&&j(w))throw new y(q,`${m!=null?`>= ${m}`:""}${m!=null&&e!=null?" && ":""}${e!=null?`<= ${e}`:""}`,w)}var C=k((w,q,m)=>{if(!M(m,w)){let e=F(S(m,(t)=>typeof t=="string"?`'${t}'`:N(t)),", "),C0="must be one of: "+e;throw new A(q,w,C0)}});function J(w,q){if(typeof w!="boolean")throw new x(q,"boolean",w)}function R(w,q,m){return w==null||!Z(w,q)?m:w[q]}var L=k((w,q,m=null)=>{let e=R(m,"allowArray",!1),C0=R(m,"allowFunction",!1);if(!R(m,"nullable",!1)&&w===null||!e&&E(w)||typeof w!="object"&&(!C0||typeof w!="function"))throw new x(q,"Object",w)}),_=k((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(W(w,q),H0[w]===void 0)throw H0[U(w)]!==void 0?new p(w+" (signals must use all capital letters)"):new p(w)}var r=k((w,q="buffer")=>{if(!i(w))throw new x(q,["Buffer","TypedArray","DataView"],w)});function X0(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=k((w,q)=>{if(w!==void 0&&(w===null||typeof w!="object"||!("aborted"in w)))throw new x(q,"AbortSignal",w)}),a=k((w,q)=>{if(typeof w!="function")throw new x(q,"Function",w)}),V0=k((w,q)=>{if(typeof w!="function"||n(w))throw new x(q,"Function",w)}),K0=k((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,`('${F(m,"|")}')`,w)}g.exports={isInt32:f,isUint32:P0,parseFileMode:Y,validateArray:_,validateBoolean:J,validateBuffer:r,validateEncoding:X0,validateFunction:a,validateInt32:Q,validateInteger:H,validateNumber:$,validateObject:L,validateOneOf:C,validatePlainFunction:V0,validatePort:u,validateSignalName:s,validateString:W,validateUint32:P,validateUndefined:K0,validateUnion:Q0,validateAbortSignal:d}}),g9=G0((l,g)=>{var E=g.exports={},M,F;function S(){throw new Error("setTimeout has not been defined")}function G(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?M=setTimeout:M=S}catch{M=S}try{typeof clearTimeout=="function"?F=clearTimeout:F=G}catch{F=G}})();function j(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 I(v){if(F===clearTimeout)return clearTimeout(v);if((F===G||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(v);try{return F(v)}catch{try{return F.call(null,v)}catch{return F.call(this,v)}}}var z=[],V=!1,Z,T=-1;function N(){!V||!Z||(V=!1,Z.length?z=Z.concat(z):T=-1,z.length&&U())}function U(){if(!V){var v=j(N);V=!0;for(var x=z.length;x;){for(Z=z,z=[];++T<x;)Z&&Z[T].run();T=-1,x=z.length}Z=null,V=!1,I(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&&j(U)};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 k(){}E.on=k,E.addListener=k,E.once=k,E.off=k,E.removeListener=k,E.removeAllListeners=k,E.emit=k,E.prependListener=k,E.prependOnceListener=k,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}}),I5={};r5(I5,{default:()=>n9});var n9,x5=J9(()=>{P9(I5,E5(g9())),n9=E5(g9())}),A5=G0((l,g)=>{var{Symbol:E,SymbolAsyncIterator:M,SymbolIterator:F}=F5(),S=E("kDestroyed"),G=E("kIsErrored"),j=E("kIsReadable"),I=E("kIsDisturbed");function z(H,Q=!1){var P;return!!(H&&typeof H.pipe=="function"&&typeof H.on=="function"&&(!Q||typeof H.pause=="function"&&typeof H.resume=="function")&&(!H._writableState||((P=H._readableState)===null||P===void 0?void 0:P.readable)!==!1)&&(!H._writableState||H._readableState))}function V(H){var Q;return!!(H&&typeof H.write=="function"&&typeof H.on=="function"&&(!H._readableState||((Q=H._writableState)===null||Q===void 0?void 0:Q.writable)!==!1))}function Z(H){return!!(H&&typeof H.pipe=="function"&&H._readableState&&typeof H.on=="function"&&typeof H.write=="function")}function T(H){return H&&(H._readableState||H._writableState||typeof H.write=="function"&&typeof H.on=="function"||typeof H.pipe=="function"&&typeof H.on=="function")}function N(H,Q){return H==null?!1:Q===!0?typeof H[M]=="function":Q===!1?typeof H[F]=="function":typeof H[M]=="function"||typeof H[F]=="function"}function U(H){if(!T(H))return null;let{_writableState:Q,_readableState:P}=H,W=Q||P;return!!(H.destroyed||H[S]||W!=null&&W.destroyed)}function D(H){if(!V(H))return null;if(H.writableEnded===!0)return!0;let Q=H._writableState;return Q!=null&&Q.errored?!1:typeof Q?.ended!="boolean"?null:Q.ended}function k(H,Q){if(!V(H))return null;if(H.writableFinished===!0)return!0;let P=H._writableState;return P!=null&&P.errored?!1:typeof P?.finished!="boolean"?null:!!(P.finished||Q===!1&&P.ended===!0&&P.length===0)}function v(H){if(!z(H))return null;if(H.readableEnded===!0)return!0;let Q=H._readableState;return!Q||Q.errored?!1:typeof Q?.ended!="boolean"?null:Q.ended}function x(H,Q){if(!z(H))return null;let P=H._readableState;return P!=null&&P.errored?!1:typeof P?.endEmitted!="boolean"?null:!!(P.endEmitted||Q===!1&&P.ended===!0&&P.length===0)}function A(H){return H&&H[j]!=null?H[j]:typeof H?.readable!="boolean"?null:U(H)?!1:z(H)&&H.readable&&!x(H)}function y(H){return typeof H?.writable!="boolean"?null:U(H)?!1:V(H)&&H.writable&&!D(H)}function p(H,Q){return T(H)?U(H)?!0:!(Q?.readable!==!1&&A(H)||Q?.writable!==!1&&y(H)):null}function c(H){var Q,P;return T(H)?H.writableErrored?H.writableErrored:(Q=(P=H._writableState)===null||P===void 0?void 0:P.errored)!==null&&Q!==void 0?Q:null:null}function n(H){var Q,P;return T(H)?H.readableErrored?H.readableErrored:(Q=(P=H._readableState)===null||P===void 0?void 0:P.errored)!==null&&Q!==void 0?Q:null:null}function i(H){if(!T(H))return null;if(typeof H.closed=="boolean")return H.closed;let{_writableState:Q,_readableState:P}=H;return typeof Q?.closed=="boolean"||typeof P?.closed=="boolean"?Q?.closed||P?.closed:typeof H._closed=="boolean"&&H0(H)?H._closed:null}function H0(H){return typeof H._closed=="boolean"&&typeof H._defaultKeepAlive=="boolean"&&typeof H._removedConnection=="boolean"&&typeof H._removedContLen=="boolean"}function f(H){return typeof H._sent100=="boolean"&&H0(H)}function P0(H){var Q;return typeof H._consuming=="boolean"&&typeof H._dumped=="boolean"&&((Q=H.req)===null||Q===void 0?void 0:Q.upgradeOrConnect)===void 0}function K(H){if(!T(H))return null;let{_writableState:Q,_readableState:P}=H,W=Q||P;return!W&&f(H)||!!(W&&W.autoDestroy&&W.emitClose&&W.closed===!1)}function X(H){var Q;return!!(H&&((Q=H[I])!==null&&Q!==void 0?Q:H.readableDidRead||H.readableAborted))}function Y(H){var Q,P,W,$,C,J,R,L,_,s;return!!(H&&((Q=(P=(W=($=(C=(J=H[G])!==null&&J!==void 0?J:H.readableErrored)!==null&&C!==void 0?C:H.writableErrored)!==null&&$!==void 0?$:(R=H._readableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&W!==void 0?W:(L=H._writableState)===null||L===void 0?void 0:L.errorEmitted)!==null&&P!==void 0?P:(_=H._readableState)===null||_===void 0?void 0:_.errored)!==null&&Q!==void 0?Q:(s=H._writableState)===null||s===void 0?void 0:s.errored))}g.exports={kDestroyed:S,isDisturbed:X,kIsDisturbed:I,isErrored:Y,kIsErrored:G,isReadable:A,kIsReadable:j,isClosed:i,isDestroyed:U,isDuplexNodeStream:Z,isFinished:p,isIterable:N,isReadableNodeStream:z,isReadableEnded:v,isReadableFinished:x,isReadableErrored:n,isNodeStream:T,isWritable:y,isWritableNodeStream:V,isWritableEnded:D,isWritableFinished:k,isWritableErrored:c,isServerRequest:P0,isServerResponse:f,willEmitClose:K}}),v5=G0((l,g)=>{var E=(x5(),z5(I5)),{AbortError:M,codes:F}=V5(),{ERR_INVALID_ARG_TYPE:S,ERR_STREAM_PREMATURE_CLOSE:G}=F,{kEmptyObject:j,once:I}=N5(),{validateAbortSignal:z,validateFunction:V,validateObject:Z}=t5(),{Promise:T}=F5(),{isClosed:N,isReadable:U,isReadableNodeStream:D,isReadableFinished:k,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 H0=()=>{};function f(K,X,Y){var H,Q;arguments.length===2?(Y=X,X=j):X==null?X=j:Z(X,"options"),V(Y,"callback"),z(X.signal,"options.signal"),Y=I(Y);let P=(H=X.readable)!==null&&H!==void 0?H:D(K),W=(Q=X.writable)!==null&&Q!==void 0?Q:A(K);if(!c(K))throw new S("stream","Stream",K);let{_writableState:$,_readableState:C}=K,J=()=>{K.writable||_()},R=n(K)&&D(K)===P&&A(K)===W,L=y(K,!1),_=()=>{L=!0,K.destroyed&&(R=!1),!(R&&(!K.readable||P))&&(!P||s)&&Y.call(K)},s=k(K,!1),r=()=>{s=!0,K.destroyed&&(R=!1),!(R&&(!K.writable||W))&&(!W||L)&&Y.call(K)},X0=(K0)=>{Y.call(K,K0)},u=N(K),d=()=>{u=!0;let K0=p(K)||v(K);if(K0&&typeof K0!="boolean")return Y.call(K,K0);if(P&&!s&&D(K,!0)&&!k(K,!1))return Y.call(K,new G);if(W&&!L&&!y(K,!1))return Y.call(K,new G);Y.call(K)},a=()=>{K.req.on("finish",_)};i(K)?(K.on("complete",_),R||K.on("abort",d),K.req?a():K.on("request",a)):W&&!$&&(K.on("end",J),K.on("close",J)),!R&&typeof K.aborted=="boolean"&&K.on("aborted",d),K.on("end",r),K.on("finish",_),X.error!==!1&&K.on("error",X0),K.on("close",d),u?E.nextTick(d):$!=null&&$.errorEmitted||C!=null&&C.errorEmitted?R||E.nextTick(d):(!P&&(!R||U(K))&&(L||x(K)===!1)||!W&&(!R||x(K))&&(s||U(K)===!1)||C&&K.req&&K.aborted)&&E.nextTick(d);let V0=()=>{Y=H0,K.removeListener("aborted",d),K.removeListener("complete",_),K.removeListener("abort",d),K.removeListener("request",a),K.req&&K.req.removeListener("finish",_),K.removeListener("end",J),K.removeListener("close",J),K.removeListener("finish",_),K.removeListener("end",r),K.removeListener("error",X0),K.removeListener("close",d)};if(X.signal&&!u){let K0=()=>{let Q0=Y;V0(),Q0.call(K,new M(void 0,{cause:X.signal.reason}))};if(X.signal.aborted)E.nextTick(K0);else{let Q0=Y;Y=I((...w)=>{X.signal.removeEventListener("abort",K0),Q0.apply(K,w)}),X.signal.addEventListener("abort",K0)}}return V0}function P0(K,X){return new T((Y,H)=>{f(K,X,(Q)=>{Q?H(Q):Y()})})}g.exports=f,g.exports.finished=P0}),U7=G0((l,g)=>{var E=globalThis.AbortController||V9().AbortController,{codes:{ERR_INVALID_ARG_TYPE:M,ERR_MISSING_ARGS:F,ERR_OUT_OF_RANGE:S},AbortError:G}=V5(),{validateAbortSignal:j,validateInteger:I,validateObject:z}=t5(),V=F5().Symbol("kWeak"),{finished:Z}=v5(),{ArrayPrototypePush:T,MathFloor:N,Number:U,NumberIsNaN:D,Promise:k,PromiseReject:v,PromisePrototypeThen:x,Symbol:A}=F5(),y=A("kEmpty"),p=A("kEof");function c(C,J){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);J!=null&&z(J,"options"),J?.signal!=null&&j(J.signal,"options.signal");let R=1;return J?.concurrency!=null&&(R=N(J.concurrency)),I(R,"concurrency",1),async function*(){var L,_;let s=new E,r=this,X0=[],u=s.signal,d={signal:u},a=()=>s.abort();J!=null&&(L=J.signal)!==null&&L!==void 0&&L.aborted&&a(),J==null||(_=J.signal)===null||_===void 0||_.addEventListener("abort",a);let V0,K0,Q0=!1;function w(){Q0=!0}async function q(){try{for await(let C0 of r){var m;if(Q0)return;if(u.aborted)throw new G;try{C0=C(C0,d)}catch(t){C0=v(t)}C0!==y&&(typeof((m=C0)===null||m===void 0?void 0:m.catch)=="function"&&C0.catch(w),X0.push(C0),V0&&(V0(),V0=null),!Q0&&X0.length&&X0.length>=R&&await new k((t)=>{K0=t}))}X0.push(p)}catch(C0){let t=v(C0);x(t,void 0,w),X0.push(t)}finally{var e;Q0=!0,V0&&(V0(),V0=null),J==null||(e=J.signal)===null||e===void 0||e.removeEventListener("abort",a)}}q();try{for(;;){for(;X0.length>0;){let m=await X0[0];if(m===p)return;if(u.aborted)throw new G;m!==y&&(yield m),X0.shift(),K0&&(K0(),K0=null)}await new k((m)=>{V0=m})}}finally{s.abort(),Q0=!0,K0&&(K0(),K0=null)}}.call(this)}function n(C=void 0){return C!=null&&z(C,"options"),C?.signal!=null&&j(C.signal,"options.signal"),async function*(){let J=0;for await(let L of this){var R;if(C!=null&&(R=C.signal)!==null&&R!==void 0&&R.aborted)throw new G({cause:C.signal.reason});yield[J++,L]}}.call(this)}async function i(C,J=void 0){for await(let R of K.call(this,C,J))return!0;return!1}async function H0(C,J=void 0){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);return!await i.call(this,async(...R)=>!await C(...R),J)}async function f(C,J){for await(let R of K.call(this,C,J))return R}async function P0(C,J){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);async function R(L,_){return await C(L,_),y}for await(let L of c.call(this,R,J));}function K(C,J){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);async function R(L,_){return await C(L,_)?L:y}return c.call(this,R,J)}var X=class extends F{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Y(C,J,R){var L;if(typeof C!="function")throw new M("reducer",["Function","AsyncFunction"],C);R!=null&&z(R,"options"),R?.signal!=null&&j(R.signal,"options.signal");let _=arguments.length>1;if(R!=null&&(L=R.signal)!==null&&L!==void 0&&L.aborted){let d=new G(void 0,{cause:R.signal.reason});throw this.once("error",()=>{}),await Z(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 X0=!1;try{for await(let d of this){var u;if(X0=!0,R!=null&&(u=R.signal)!==null&&u!==void 0&&u.aborted)throw new G;_?J=await C(J,d,{signal:r}):(J=d,_=!0)}if(!X0&&!_)throw new X}finally{s.abort()}return J}async function H(C){C!=null&&z(C,"options"),C?.signal!=null&&j(C.signal,"options.signal");let J=[];for await(let L of this){var R;if(C!=null&&(R=C.signal)!==null&&R!==void 0&&R.aborted)throw new G(void 0,{cause:C.signal.reason});T(J,L)}return J}function Q(C,J){let R=c.call(this,C,J);return async function*(){for await(let L of R)yield*L}.call(this)}function P(C){if(C=U(C),D(C))return 0;if(C<0)throw new S("number",">= 0",C);return C}function W(C,J=void 0){return J!=null&&z(J,"options"),J?.signal!=null&&j(J.signal,"options.signal"),C=P(C),async function*(){var R;if(J!=null&&(R=J.signal)!==null&&R!==void 0&&R.aborted)throw new G;for await(let _ of this){var L;if(J!=null&&(L=J.signal)!==null&&L!==void 0&&L.aborted)throw new G;C--<=0&&(yield _)}}.call(this)}function $(C,J=void 0){return J!=null&&z(J,"options"),J?.signal!=null&&j(J.signal,"options.signal"),C=P(C),async function*(){var R;if(J!=null&&(R=J.signal)!==null&&R!==void 0&&R.aborted)throw new G;for await(let _ of this){var L;if(J!=null&&(L=J.signal)!==null&&L!==void 0&&L.aborted)throw new G;if(C-- >0)yield _;else return}}.call(this)}g.exports.streamReturningOperators={asIndexedPairs:n,drop:W,filter:K,flatMap:Q,map:c,take:$},g.exports.promiseReturningOperators={every:H0,forEach:P0,reduce:Y,toArray:H,some:i,find:f}}),b5=G0((l,g)=>{var E=(x5(),z5(I5)),{aggregateTwoErrors:M,codes:{ERR_MULTIPLE_CALLBACK:F},AbortError:S}=V5(),{Symbol:G}=F5(),{kDestroyed:j,isDestroyed:I,isFinished:z,isServerRequest:V}=A5(),Z=G("kDestroy"),T=G("kConstruct");function N(K,X,Y){K&&(K.stack,X&&!X.errored&&(X.errored=K),Y&&!Y.errored&&(Y.errored=K))}function U(K,X){let Y=this._readableState,H=this._writableState,Q=H||Y;return H&&H.destroyed||Y&&Y.destroyed?(typeof X=="function"&&X(),this):(N(K,H,Y),H&&(H.destroyed=!0),Y&&(Y.destroyed=!0),Q.constructed?D(this,K,X):this.once(Z,function(P){D(this,M(P,K),X)}),this)}function D(K,X,Y){let H=!1;function Q(P){if(H)return;H=!0;let{_readableState:W,_writableState:$}=K;N(P,$,W),$&&($.closed=!0),W&&(W.closed=!0),typeof Y=="function"&&Y(P),P?E.nextTick(k,K,P):E.nextTick(v,K)}try{K._destroy(X||null,Q)}catch(P){Q(P)}}function k(K,X){x(K,X),v(K)}function v(K){let{_readableState:X,_writableState:Y}=K;Y&&(Y.closeEmitted=!0),X&&(X.closeEmitted=!0),(Y&&Y.emitClose||X&&X.emitClose)&&K.emit("close")}function x(K,X){let{_readableState:Y,_writableState:H}=K;H&&H.errorEmitted||Y&&Y.errorEmitted||(H&&(H.errorEmitted=!0),Y&&(Y.errorEmitted=!0),K.emit("error",X))}function A(){let K=this._readableState,X=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),X&&(X.constructed=!0,X.destroyed=!1,X.closed=!1,X.closeEmitted=!1,X.errored=null,X.errorEmitted=!1,X.finalCalled=!1,X.prefinished=!1,X.ended=X.writable===!1,X.ending=X.writable===!1,X.finished=X.writable===!1)}function y(K,X,Y){let{_readableState:H,_writableState:Q}=K;if(Q&&Q.destroyed||H&&H.destroyed)return this;H&&H.autoDestroy||Q&&Q.autoDestroy?K.destroy(X):X&&(X.stack,Q&&!Q.errored&&(Q.errored=X),H&&!H.errored&&(H.errored=X),Y?E.nextTick(x,K,X):x(K,X))}function p(K,X){if(typeof K._construct!="function")return;let{_readableState:Y,_writableState:H}=K;Y&&(Y.constructed=!1),H&&(H.constructed=!1),K.once(T,X),!(K.listenerCount(T)>1)&&E.nextTick(c,K)}function c(K){let X=!1;function Y(H){if(X){y(K,H??new F);return}X=!0;let{_readableState:Q,_writableState:P}=K,W=P||Q;Q&&(Q.constructed=!0),P&&(P.constructed=!0),W.destroyed?K.emit(Z,H):H?y(K,H,!0):E.nextTick(n,K)}try{K._construct(Y)}catch(H){Y(H)}}function n(K){K.emit(T)}function i(K){return K&&K.setHeader&&typeof K.abort=="function"}function H0(K){K.emit("close")}function f(K,X){K.emit("error",X),E.nextTick(H0,K)}function P0(K,X){!K||I(K)||(!X&&!z(K)&&(X=new S),V(K)?(K.socket=null,K.destroy(X)):i(K)?K.abort():i(K.req)?K.req.abort():typeof K.destroy=="function"?K.destroy(X):typeof K.close=="function"?K.close():X?E.nextTick(f,K,X):E.nextTick(H0,K),K.destroyed||(K[j]=!0))}g.exports={construct:p,destroyer:P0,destroy:U,undestroy:A,errorOrDestroy:y}}),z9=G0((l,g)=>{var{ArrayIsArray:E,ObjectSetPrototypeOf:M}=F5(),{EventEmitter:F}=S5();function S(j){F.call(this,j)}M(S.prototype,F.prototype),M(S,F),S.prototype.pipe=function(j,I){let z=this;function V(v){j.writable&&j.write(v)===!1&&z.pause&&z.pause()}z.on("data",V);function Z(){z.readable&&z.resume&&z.resume()}j.on("drain",Z),!j._isStdio&&(!I||I.end!==!1)&&(z.on("end",N),z.on("close",U));let T=!1;function N(){T||(T=!0,j.end())}function U(){T||(T=!0,typeof j.destroy=="function"&&j.destroy())}function D(v){k(),F.listenerCount(this,"error")===0&&this.emit("error",v)}G(z,"error",D),G(j,"error",D);function k(){z.removeListener("data",V),j.removeListener("drain",Z),z.removeListener("end",N),z.removeListener("close",U),z.removeListener("error",D),j.removeListener("error",D),z.removeListener("end",k),z.removeListener("close",k),j.removeListener("close",k)}return z.on("end",k),z.on("close",k),j.on("close",k),j.emit("pipe",z),j};function G(j,I,z){if(typeof j.prependListener=="function")return j.prependListener(I,z);!j._events||!j._events[I]?j.on(I,z):E(j._events[I])?j._events[I].unshift(z):j._events[I]=[z,j._events[I]]}g.exports={Stream:S,prependListener:G}}),O9=G0((l,g)=>{var{AbortError:E,codes:M}=V5(),F=v5(),{ERR_INVALID_ARG_TYPE:S}=M,G=(I,z)=>{if(typeof I!="object"||!("aborted"in I))throw new S(z,"AbortSignal",I)};function j(I){return!!(I&&typeof I.pipe=="function")}g.exports.addAbortSignal=function(I,z){if(G(I,"signal"),!j(z))throw new S("stream","stream.Stream",z);return g.exports.addAbortSignalNoValidate(I,z)},g.exports.addAbortSignalNoValidate=function(I,z){if(typeof I!="object"||!("aborted"in I))return z;let V=()=>{z.destroy(new E(void 0,{cause:I.reason}))};return I.aborted?V():(I.addEventListener("abort",V),F(z,()=>I.removeEventListener("abort",V))),z}}),V7=G0((l,g)=>{var{StringPrototypeSlice:E,SymbolIterator:M,TypedArrayPrototypeSet:F,Uint8Array:S}=F5(),{Buffer:G}=U5(),{inspect:j}=N5();g.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(I){let z={data:I,next:null};this.length>0?this.tail.next=z:this.head=z,this.tail=z,++this.length}unshift(I){let z={data:I,next:this.head};this.length===0&&(this.tail=z),this.head=z,++this.length}shift(){if(this.length===0)return;let I=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,I}clear(){this.head=this.tail=null,this.length=0}join(I){if(this.length===0)return"";let z=this.head,V=""+z.data;for(;(z=z.next)!==null;)V+=I+z.data;return V}concat(I){if(this.length===0)return G.alloc(0);let z=G.allocUnsafe(I>>>0),V=this.head,Z=0;for(;V;)F(z,V.data,Z),Z+=V.data.length,V=V.next;return z}consume(I,z){let V=this.head.data;if(I<V.length){let Z=V.slice(0,I);return this.head.data=V.slice(I),Z}return I===V.length?this.shift():z?this._getString(I):this._getBuffer(I)}first(){return this.head.data}*[M](){for(let I=this.head;I;I=I.next)yield I.data}_getString(I){let z="",V=this.head,Z=0;do{let T=V.data;if(I>T.length)z+=T,I-=T.length;else{I===T.length?(z+=T,++Z,V.next?this.head=V.next:this.head=this.tail=null):(z+=E(T,0,I),this.head=V,V.data=E(T,I));break}++Z}while((V=V.next)!==null);return this.length-=Z,z}_getBuffer(I){let z=G.allocUnsafe(I),V=I,Z=this.head,T=0;do{let N=Z.data;if(I>N.length)F(z,N,V-I),I-=N.length;else{I===N.length?(F(z,N,V-I),++T,Z.next?this.head=Z.next:this.head=this.tail=null):(F(z,new S(N.buffer,N.byteOffset,I),V-I),this.head=Z,Z.data=N.slice(I));break}++T}while((Z=Z.next)!==null);return this.length-=T,z}[Symbol.for("nodejs.util.inspect.custom")](I,z){return j(this,{...z,depth:0,customInspect:!1})}}}),T9=G0((l,g)=>{var{MathFloor:E,NumberIsInteger:M}=F5(),{ERR_INVALID_ARG_VALUE:F}=V5().codes;function S(I,z,V){return I.highWaterMark!=null?I.highWaterMark:z?I[V]:null}function G(I){return I?16:16384}function j(I,z,V,Z){let T=S(z,Z,V);if(T!=null){if(!M(T)||T<0){let N=Z?`options.${V}`:"options.highWaterMark";throw new F(N,T)}return E(T)}return G(I.objectMode)}g.exports={getHighWaterMark:j,getDefaultHighWaterMark:G}}),r9=G0((l,g)=>{var E=(x5(),z5(I5)),{PromisePrototypeThen:M,SymbolAsyncIterator:F,SymbolIterator:S}=F5(),{Buffer:G}=U5(),{ERR_INVALID_ARG_TYPE:j,ERR_STREAM_NULL_VALUES:I}=V5().codes;function z(V,Z,T){let N;if(typeof Z=="string"||Z instanceof G)return new V({objectMode:!0,...T,read(){this.push(Z),this.push(null)}});let U;if(Z&&Z[F])U=!0,N=Z[F]();else if(Z&&Z[S])U=!1,N=Z[S]();else throw new j("iterable",["Iterable"],Z);let D=new V({objectMode:!0,highWaterMark:1,...T}),k=!1;D._read=function(){k||(k=!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}=U?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 k=!1,new I;if(D.push(p))continue;k=!1}}catch(A){D.destroy(A)}break}}return D}g.exports=z}),e5=G0((l,g)=>{var E=(x5(),z5(I5)),{ArrayPrototypeIndexOf:M,NumberIsInteger:F,NumberIsNaN:S,NumberParseInt:G,ObjectDefineProperties:j,ObjectKeys:I,ObjectSetPrototypeOf:z,Promise:V,SafeSet:Z,SymbolAsyncIterator:T,Symbol:N}=F5();g.exports=R,R.ReadableState=J;var{EventEmitter:U}=S5(),{Stream:D,prependListener:k}=z9(),{Buffer:v}=U5(),{addAbortSignal:x}=O9(),A=v5(),y=N5().debuglog("stream",(O)=>{y=O}),p=V7(),c=b5(),{getHighWaterMark:n,getDefaultHighWaterMark:i}=T9(),{aggregateTwoErrors:H0,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:P0,ERR_OUT_OF_RANGE:K,ERR_STREAM_PUSH_AFTER_EOF:X,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Y}}=V5(),{validateObject:H}=t5(),Q=N("kPaused"),{StringDecoder:P}=W9(),W=r9();z(R.prototype,D.prototype),z(R,D);var $=()=>{},{errorOrDestroy:C}=c;function J(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 J(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[U.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)C(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)C(O,new Y);else{if(o.destroyed||o.errored)return!1;_(O,o,B,!0)}else if(o.ended)C(O,new X);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 X0(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:F(O)||(O=G(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?J0(this):d(this),null;if(O=X0(O,B),O===0&&B.ended)return B.length===0&&J0(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){C(this,z0)}B.sync=!1,B.reading||(O=X0(b,B))}let o;return O>0?o=$0(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&&J0(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,C0(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 Z(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?Y0: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,F0())}function Y0(){y("onend"),O.end()}let Z0,b0=!1;function F0(){y("cleanup"),O.removeListener("close",N0),O.removeListener("finish",G5),Z0&&O.removeListener("drain",Z0),O.removeListener("error",D0),O.removeListener("unpipe",z0),b.removeListener("end",Y0),b.removeListener("end",T0),b.removeListener("data",y0),b0=!0,Z0&&h.awaitDrainWriters&&(!O._writableState||O._writableState.needDrain)&&Z0()}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()),Z0||(Z0=Q0(b,O),O.on("drain",Z0))}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?C(O,O0):O.emit("error",O0)}}k(O,"error",D0);function N0(){O.removeListener("finish",G5),T0()}O.once("close",N0);function G5(){y("onfinish"),O.removeListener("close",N0),T0()}O.once("finish",G5);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"),C0(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 C0(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)=>{C(this,h)}),O.on("close",()=>{this.destroy()}),O.on("destroy",()=>{this.destroy()}),this._read=()=>{B&&O.resume&&(B=!1,O.resume())};let b=I(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&&H(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=$;function h(Y0){this===O?(b(),b=$):b=Y0}O.on("readable",h);let o,z0=A(O,{writable:!1},(Y0)=>{o=Y0?H0(o,Y0):null,b(),b=$});try{for(;;){let Y0=O.destroyed?null:O.read();if(Y0!==null)yield Y0;else{if(o)throw o;if(o===null)return;await new V(h)}}}catch(Y0){throw o=H0(o,Y0),o}finally{(o||B?.destroyOnReturn!==!1)&&(o===void 0||O._readableState.autoDestroy)?c.destroyer(O,null):(O.off("readable",h),z0())}}j(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}}}),j(J.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Q]!==!1},set(O){this[Q]=!!O}}}),R._fromList=$0;function $0(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 J0(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(U0,B);else if(O.autoDestroy){let b=B._writableState;(!b||b.autoDestroy&&(b.finished||b.writable===!1))&&B.destroy()}}}function U0(O){O.writable&&!O.writableEnded&&!O.destroyed&&O.end()}R.from=function(O,B){return W(R,O,B)};var W0;function c0(){return W0===void 0&&(W0={}),W0}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)}}),i9=G0((l,g)=>{var E=(x5(),z5(I5)),{ArrayPrototypeSlice:M,Error:F,FunctionPrototypeSymbolHasInstance:S,ObjectDefineProperty:G,ObjectDefineProperties:j,ObjectSetPrototypeOf:I,StringPrototypeToLowerCase:z,Symbol:V,SymbolHasInstance:Z}=F5();g.exports=P,P.WritableState=H;var{EventEmitter:T}=S5(),N=z9().Stream,{Buffer:U}=U5(),D=b5(),{addAbortSignal:k}=O9(),{getHighWaterMark:v,getDefaultHighWaterMark:x}=T9(),{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:H0,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:P0}=V5().codes,{errorOrDestroy:K}=D;I(P.prototype,N.prototype),I(P,N);function X(){}var Y=V("kOnFinished");function H(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 C0=!!(q&&q.decodeStrings===!1);this.decodeStrings=!C0,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[Y]=[]}function Q(q){q.buffered=[],q.bufferedIndex=0,q.allBuffers=!0,q.allNoop=!0}H.prototype.getBuffer=function(){return M(this.buffered,this.bufferedIndex)},G(H.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 H(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&&k(q.signal,this)),N.call(this,q),D.construct(this,()=>{let e=this._writableState;e.writing||r(this,e),a(this,e)})}G(P,Z,{__proto__:null,value:function(q){return S(this,q)?!0:this!==P?!1:q&&q._writableState instanceof H}}),P.prototype.pipe=function(){K(this,new c)};function W(q,m,e,C0){let t=q._writableState;if(typeof e=="function")C0=e,e=t.defaultEncoding;else{if(!e)e=t.defaultEncoding;else if(e!=="buffer"&&!U.isEncoding(e))throw new P0(e);typeof C0!="function"&&(C0=X)}if(m===null)throw new H0;if(!t.objectMode)if(typeof m=="string")t.decodeStrings!==!1&&(m=U.from(m,e),e="buffer");else if(m instanceof U)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(C0,_0),K(q,_0,!0),_0):(t.pendingcb++,$(q,t,m,e,C0))}P.prototype.write=function(q,m,e){return W(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)),!U.isEncoding(q))throw new P0(q);return this._writableState.defaultEncoding=q,this};function $(q,m,e,C0,t){let _0=m.objectMode?1:e.length;m.length+=_0;let $0=m.length<m.highWaterMark;return $0||(m.needDrain=!0),m.writing||m.corked||m.errored||!m.constructed?(m.buffered.push({chunk:e,encoding:C0,callback:t}),m.allBuffers&&C0!=="buffer"&&(m.allBuffers=!1),m.allNoop&&t!==X&&(m.allNoop=!1)):(m.writelen=_0,m.writecb=t,m.writing=!0,m.sync=!0,q._write(e,C0,m.onwrite),m.sync=!1),$0&&!m.errored&&!m.destroyed}function C(q,m,e,C0,t,_0,$0){m.writelen=C0,m.writecb=$0,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 J(q,m,e,C0){--m.pendingcb,C0(e),s(m),K(q,e)}function R(q,m){let e=q._writableState,C0=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),C0?E.nextTick(J,q,e,m,t):J(q,e,m,t)):(e.buffered.length>e.bufferedIndex&&r(q,e),C0?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:C0}){return m.afterWriteTickInfo=null,_(q,m,e,C0)}function _(q,m,e,C0){for(!m.ending&&!q.destroyed&&m.length===0&&m.needDrain&&(m.needDrain=!1,q.emit("drain"));e-- >0;)m.pendingcb--,C0();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:$0}=q.buffered[t],J0=q.objectMode?1:_0.length;q.length-=J0,$0((m=q.errored)!==null&&m!==void 0?m:new n("write"))}let e=q[Y].splice(0);for(let t=0;t<e.length;t++){var C0;e[t]((C0=q.errored)!==null&&C0!==void 0?C0:new n("end"))}Q(q)}function r(q,m){if(m.corked||m.bufferProcessing||m.destroyed||!m.constructed)return;let{buffered:e,bufferedIndex:C0,objectMode:t}=m,_0=e.length-C0;if(!_0)return;let $0=C0;if(m.bufferProcessing=!0,_0>1&&q._writev){m.pendingcb-=_0-1;let J0=m.allNoop?X:(U0)=>{for(let W0=$0;W0<e.length;++W0)e[W0].callback(U0)},w0=m.allNoop&&$0===0?e:M(e,$0);w0.allBuffers=m.allBuffers,C(q,m,!0,m.length,w0,"",J0),Q(m)}else{do{let{chunk:J0,encoding:w0,callback:U0}=e[$0];e[$0++]=null;let W0=t?1:J0.length;C(q,m,!1,W0,J0,w0,U0)}while($0<e.length&&!m.writing);$0===e.length?Q(m):$0>256?(e.splice(0,$0),m.bufferedIndex=0):m.bufferedIndex=$0}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 C0=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=W(this,q,m);_0 instanceof F&&(t=_0)}return C0.corked&&(C0.corked=1,this.uncork()),t||(!C0.errored&&!C0.ending?(C0.ending=!0,a(this,C0,!0),C0.ended=!0):C0.finished?t=new i("end"):C0.destroyed&&(t=new n("end"))),typeof e=="function"&&(t||C0.finished?E.nextTick(e,t):C0[Y].push(e)),this};function X0(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 C0(t){if(e){K(q,t??p());return}if(e=!0,m.pendingcb--,t){let _0=m[Y].splice(0);for(let $0=0;$0<_0.length;$0++)_0[$0](t);K(q,t,m.sync)}else X0(m)&&(m.prefinished=!0,q.emit("prefinish"),m.pendingcb++,E.nextTick(V0,q,m))}m.sync=!0,m.pendingcb++;try{q._final(C0)}catch(t){C0(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){X0(m)&&(d(q,m),m.pendingcb===0&&(e?(m.pendingcb++,E.nextTick((C0,t)=>{X0(t)?V0(C0,t):t.pendingcb--},q,m)):X0(m)&&(m.pendingcb++,V0(q,m))))}function V0(q,m){m.pendingcb--,m.finished=!0;let e=m[Y].splice(0);for(let C0=0;C0<e.length;C0++)e[C0]();if(q.emit("finish"),m.autoDestroy){let C0=q._readableState;(!C0||C0.autoDestroy&&(C0.endEmitted||C0.readable===!1))&&q.destroy()}}j(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[Y].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)}}),z7=G0((l,g)=>{var E=(x5(),z5(I5)),M=U5(),{isReadable:F,isWritable:S,isIterable:G,isNodeStream:j,isReadableNodeStream:I,isWritableNodeStream:z,isDuplexNodeStream:V}=A5(),Z=v5(),{AbortError:T,codes:{ERR_INVALID_ARG_TYPE:N,ERR_INVALID_RETURN_VALUE:U}}=V5(),{destroyer:D}=b5(),k=L5(),v=e5(),{createDeferredPromise:x}=N5(),A=r9(),y=globalThis.Blob||M.Blob,p=typeof y<"u"?function(P0){return P0 instanceof y}:function(P0){return!1},c=globalThis.AbortController||V9().AbortController,{FunctionPrototypeCall:n}=F5(),i=class extends k{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,X){if(V(K))return K;if(I(K))return f({readable:K});if(z(K))return f({writable:K});if(j(K))return f({writable:!1,readable:!1});if(typeof K=="function"){let{value:H,write:Q,final:P,destroy:W}=H0(K);if(G(H))return A(i,H,{objectMode:!0,write:Q,final:P,destroy:W});let $=H?.then;if(typeof $=="function"){let C,J=n($,H,(R)=>{if(R!=null)throw new U("nully","body",R)},(R)=>{D(C,R)});return C=new i({objectMode:!0,readable:!1,write:Q,final(R){P(async()=>{try{await J,E.nextTick(R,null)}catch(L){E.nextTick(R,L)}})},destroy:W})}throw new U("Iterable, AsyncIterable or AsyncFunction",X,H)}if(p(K))return P0(K.arrayBuffer());if(G(K))return A(i,K,{objectMode:!0,writable:!1});if(typeof K?.writable=="object"||typeof K?.readable=="object"){let H=K!=null&&K.readable?I(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:H,writable:Q})}let Y=K?.then;if(typeof Y=="function"){let H;return n(Y,K,(Q)=>{Q!=null&&H.push(Q),H.push(null)},(Q)=>{D(H,Q)}),H=new i({objectMode:!0,writable:!1,read(){}})}throw new N(X,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],K)};function H0(P0){let{promise:K,resolve:X}=x(),Y=new c,H=Y.signal;return{value:P0(async function*(){for(;;){let Q=K;K=null;let{chunk:P,done:W,cb:$}=await Q;if(E.nextTick($),W)return;if(H.aborted)throw new T(void 0,{cause:H.reason});({promise:K,resolve:X}=x()),yield P}}(),{signal:H}),write(Q,P,W){let $=X;X=null,$({chunk:Q,done:!1,cb:W})},final(Q){let P=X;X=null,P({done:!0,cb:Q})},destroy(Q,P){Y.abort(),P(Q)}}}function f(P0){let K=P0.readable&&typeof P0.readable.read!="function"?v.wrap(P0.readable):P0.readable,X=P0.writable,Y=!!F(K),H=!!S(X),Q,P,W,$,C;function J(R){let L=$;$=null,L?L(R):R?C.destroy(R):!Y&&!H&&C.destroy()}return C=new i({readableObjectMode:!!(K!=null&&K.readableObjectMode),writableObjectMode:!!(X!=null&&X.writableObjectMode),readable:Y,writable:H}),H&&(Z(X,(R)=>{H=!1,R&&D(K,R),J(R)}),C._write=function(R,L,_){X.write(R,L)?_():Q=_},C._final=function(R){X.end(),P=R},X.on("drain",function(){if(Q){let R=Q;Q=null,R()}}),X.on("finish",function(){if(P){let R=P;P=null,R()}})),Y&&(Z(K,(R)=>{Y=!1,R&&D(K,R),J(R)}),K.on("readable",function(){if(W){let R=W;W=null,R()}}),K.on("end",function(){C.push(null)}),C._read=function(){for(;;){let R=K.read();if(R===null){W=C._read;return}if(!C.push(R))return}}),C._destroy=function(R,L){!R&&$!==null&&(R=new T),W=null,Q=null,P=null,$===null?L(R):($=L,D(X,R),D(K,R))},C}}),L5=G0((l,g)=>{var{ObjectDefineProperties:E,ObjectGetOwnPropertyDescriptor:M,ObjectKeys:F,ObjectSetPrototypeOf:S}=F5();g.exports=I;var G=e5(),j=i9();S(I.prototype,G.prototype),S(I,G);{let T=F(j.prototype);for(let N=0;N<T.length;N++){let U=T[N];I.prototype[U]||(I.prototype[U]=j.prototype[U])}}function I(T){if(!(this instanceof I))return new I(T);G.call(this,T),j.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(I.prototype,{writable:{__proto__:null,...M(j.prototype,"writable")},writableHighWaterMark:{__proto__:null,...M(j.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...M(j.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...M(j.prototype,"writableBuffer")},writableLength:{__proto__:null,...M(j.prototype,"writableLength")},writableFinished:{__proto__:null,...M(j.prototype,"writableFinished")},writableCorked:{__proto__:null,...M(j.prototype,"writableCorked")},writableEnded:{__proto__:null,...M(j.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...M(j.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}I.fromWeb=function(T,N){return V().newStreamDuplexFromReadableWritablePair(T,N)},I.toWeb=function(T){return V().newReadableWritablePairFromDuplex(T)};var Z;I.from=function(T){return Z||(Z=z7()),Z(T,"body")}}),t9=G0((l,g)=>{var{ObjectSetPrototypeOf:E,Symbol:M}=F5();g.exports=I;var{ERR_METHOD_NOT_IMPLEMENTED:F}=V5().codes,S=L5(),{getHighWaterMark:G}=T9();E(I.prototype,S.prototype),E(I,S);var j=M("kCallback");function I(Z){if(!(this instanceof I))return new I(Z);let T=Z?G(this,Z,"readableHighWaterMark",!0):null;T===0&&(Z={...Z,highWaterMark:null,readableHighWaterMark:T,writableHighWaterMark:Z.writableHighWaterMark||0}),S.call(this,Z),this._readableState.sync=!1,this[j]=null,Z&&(typeof Z.transform=="function"&&(this._transform=Z.transform),typeof Z.flush=="function"&&(this._flush=Z.flush)),this.on("prefinish",V)}function z(Z){typeof this._flush=="function"&&!this.destroyed?this._flush((T,N)=>{if(T){Z?Z(T):this.destroy(T);return}N!=null&&this.push(N),this.push(null),Z&&Z()}):(this.push(null),Z&&Z())}function V(){this._final!==z&&z.call(this)}I.prototype._final=z,I.prototype._transform=function(Z,T,N){throw new F("_transform()")},I.prototype._write=function(Z,T,N){let U=this._readableState,D=this._writableState,k=U.length;this._transform(Z,T,(v,x)=>{if(v){N(v);return}x!=null&&this.push(x),D.ended||k===U.length||U.length<U.highWaterMark?N():this[j]=N})},I.prototype._read=function(){if(this[j]){let Z=this[j];this[j]=null,Z()}}}),e9=G0((l,g)=>{var{ObjectSetPrototypeOf:E}=F5();g.exports=F;var M=t9();E(F.prototype,M.prototype),E(F,M);function F(S){if(!(this instanceof F))return new F(S);M.call(this,S)}F.prototype._transform=function(S,G,j){j(null,S)}}),D9=G0((l,g)=>{var E=(x5(),z5(I5)),{ArrayIsArray:M,Promise:F,SymbolAsyncIterator:S}=F5(),G=v5(),{once:j}=N5(),I=b5(),z=L5(),{aggregateTwoErrors:V,codes:{ERR_INVALID_ARG_TYPE:Z,ERR_INVALID_RETURN_VALUE:T,ERR_MISSING_ARGS:N,ERR_STREAM_DESTROYED:U,ERR_STREAM_PREMATURE_CLOSE:D},AbortError:k}=V5(),{validateFunction:v,validateAbortSignal:x}=t5(),{isIterable:A,isReadable:y,isReadableNodeStream:p,isNodeStream:c}=A5(),n=globalThis.AbortController||V9().AbortController,i,H0;function f(W,$,C){let J=!1;W.on("close",()=>{J=!0});let R=G(W,{readable:$,writable:C},(L)=>{J=!L});return{destroy:(L)=>{J||(J=!0,I.destroyer(W,L||new U("pipe")))},cleanup:R}}function P0(W){return v(W[W.length-1],"streams[stream.length - 1]"),W.pop()}function K(W){if(A(W))return W;if(p(W))return X(W);throw new Z("val",["Readable","Iterable","AsyncIterable"],W)}async function*X(W){H0||(H0=e5()),yield*H0.prototype[S].call(W)}async function Y(W,$,C,{end:J}){let R,L=null,_=(X0)=>{if(X0&&(R=X0),L){let u=L;L=null,u()}},s=()=>new F((X0,u)=>{R?u(R):L=()=>{R?u(R):X0()}});$.on("drain",_);let r=G($,{readable:!1},_);try{$.writableNeedDrain&&await s();for await(let X0 of W)$.write(X0)||await s();J&&$.end(),await s(),C()}catch(X0){C(R!==X0?V(R,X0):X0)}finally{r(),$.off("drain",_)}}function H(...W){return Q(W,j(P0(W)))}function Q(W,$,C){if(W.length===1&&M(W[0])&&(W=W[0]),W.length<2)throw new N("streams");let J=new n,R=J.signal,L=C?.signal,_=[];x(L,"options.signal");function s(){V0(new k)}L?.addEventListener("abort",s);let r,X0,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),J.abort(),m&&(r||_.forEach((e)=>e()),E.nextTick($,r,X0))}}let K0;for(let q=0;q<W.length;q++){let m=W[q],e=q<W.length-1,C0=q>0,t=e||C?.end!==!1,_0=q===W.length-1;if(c(m)){let $0=function(J0){J0&&J0.name!=="AbortError"&&J0.code!=="ERR_STREAM_PREMATURE_CLOSE"&&a(J0)};var Q0=$0;if(t){let{destroy:J0,cleanup:w0}=f(m,e,C0);u.push(J0),y(m)&&_0&&_.push(w0)}m.on("error",$0),y(m)&&_0&&_.push(()=>{m.removeListener("error",$0)})}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=e9());let $0=new i({objectMode:!0}),J0=(w=K0)===null||w===void 0?void 0:w.then;if(typeof J0=="function")d++,J0.call(K0,(W0)=>{X0=W0,W0!=null&&$0.write(W0),t&&$0.end(),E.nextTick(a)},(W0)=>{$0.destroy(W0),E.nextTick(a,W0)});else if(A(K0,!0))d++,Y(K0,$0,a,{end:t});else throw new T("AsyncIterable or Promise","destination",K0);K0=$0;let{destroy:w0,cleanup:U0}=f(K0,!1,!0);u.push(w0),_0&&_.push(U0)}else if(c(m)){if(p(K0)){d+=2;let $0=P(K0,m,a,{end:t});y(m)&&_0&&_.push($0)}else if(A(K0))d++,Y(K0,m,a,{end:t});else throw new Z("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(W,$,C,{end:J}){let R=!1;return $.on("close",()=>{R||C(new D)}),W.pipe($,{end:J}),J?W.once("end",()=>{R=!0,$.end()}):C(),G(W,{readable:!0,writable:!1},(L)=>{let _=W._readableState;L&&L.code==="ERR_STREAM_PREMATURE_CLOSE"&&_&&_.ended&&!_.errored&&!_.errorEmitted?W.once("end",C).once("error",C):C(L)}),G($,{readable:!1,writable:!0},C)}g.exports={pipelineImpl:Q,pipeline:H}}),O7=G0((l,g)=>{var{pipeline:E}=D9(),M=L5(),{destroyer:F}=b5(),{isNodeStream:S,isReadable:G,isWritable:j}=A5(),{AbortError:I,codes:{ERR_INVALID_ARG_VALUE:z,ERR_MISSING_ARGS:V}}=V5();g.exports=function(...Z){if(Z.length===0)throw new V("streams");if(Z.length===1)return M.from(Z[0]);let T=[...Z];if(typeof Z[0]=="function"&&(Z[0]=M.from(Z[0])),typeof Z[Z.length-1]=="function"){let n=Z.length-1;Z[n]=M.from(Z[n])}for(let n=0;n<Z.length;++n)if(S(Z[n])){if(n<Z.length-1&&!G(Z[n]))throw new z(`streams[${n}]`,T[n],"must be readable");if(n>0&&!j(Z[n]))throw new z(`streams[${n}]`,T[n],"must be writable")}let N,U,D,k,v;function x(n){let i=k;k=null,i?i(n):n?v.destroy(n):!c&&!p&&v.destroy()}let A=Z[0],y=E(Z,x),p=!!j(A),c=!!G(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,H0){A.write(n,i)?H0():N=H0},v._final=function(n){A.end(),U=n},A.on("drain",function(){if(N){let n=N;N=null,n()}}),y.on("finish",function(){if(U){let n=U;U=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&&k!==null&&(n=new I),D=null,N=null,U=null,k===null?i(n):(k=i,F(y,n))},v}}),K6=G0((l,g)=>{var{ArrayPrototypePop:E,Promise:M}=F5(),{isIterable:F,isNodeStream:S}=A5(),{pipelineImpl:G}=D9(),{finished:j}=v5();function I(...z){return new M((V,Z)=>{let T,N,U=z[z.length-1];if(U&&typeof U=="object"&&!S(U)&&!F(U)){let D=E(z);T=D.signal,N=D.end}G(z,(D,k)=>{D?Z(D):V(k)},{signal:T,end:N})})}g.exports={finished:j,pipeline:I}}),T7=G0((l,g)=>{var{Buffer:E}=U5(),{ObjectDefineProperty:M,ObjectKeys:F,ReflectApply:S}=F5(),{promisify:{custom:G}}=N5(),{streamReturningOperators:j,promiseReturningOperators:I}=U7(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:z}}=V5(),V=O7(),{pipeline:Z}=D9(),{destroyer:T}=b5(),N=v5(),U=K6(),D=A5(),k=g.exports=z9().Stream;k.isDisturbed=D.isDisturbed,k.isErrored=D.isErrored,k.isReadable=D.isReadable,k.Readable=e5();for(let A of F(j)){let y=function(...c){if(new.target)throw z();return k.Readable.from(S(p,this,c))};v=y;let p=j[A];M(y,"name",{__proto__:null,value:p.name}),M(y,"length",{__proto__:null,value:p.length}),M(k.Readable.prototype,A,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var v;for(let A of F(I)){let y=function(...c){if(new.target)throw z();return S(p,this,c)};v=y;let p=I[A];M(y,"name",{__proto__:null,value:p.name}),M(y,"length",{__proto__:null,value:p.length}),M(k.Readable.prototype,A,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var v;k.Writable=i9(),k.Duplex=L5(),k.Transform=t9(),k.PassThrough=e9(),k.pipeline=Z;var{addAbortSignal:x}=O9();k.addAbortSignal=x,k.finished=N,k.destroy=T,k.compose=V,M(k,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return U}}),M(Z,G,{__proto__:null,enumerable:!0,get(){return U.pipeline}}),M(N,G,{__proto__:null,enumerable:!0,get(){return U.finished}}),k.Stream=k,k._isUint8Array=function(A){return A instanceof Uint8Array},k._uint8ArrayToBuffer=function(A){return E.from(A.buffer,A.byteOffset,A.byteLength)}}),m9=G0((l,g)=>{var E=T7(),M=K6(),F=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=F,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}),N9={};r5(N9,{default:()=>C6});var C6,D7=J9(()=>{P9(N9,E5(m9())),C6=E5(m9())}),q5=G0((l,g)=>{var E=d0().Buffer,M=(D7(),z5(N9)).Transform,F=W9().StringDecoder,S=p0();function G(j){M.call(this),this.hashMode=typeof j=="string",this.hashMode?this[j]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}S(G,M),G.prototype.update=function(j,I,z){typeof j=="string"&&(j=E.from(j,I));var V=this._update(j);return this.hashMode?this:(z&&(V=this._toString(V,z)),V)},G.prototype.setAutoPadding=function(){},G.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},G.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},G.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},G.prototype._transform=function(j,I,z){var V;try{this.hashMode?this._update(j):this.push(this._update(j))}catch(Z){V=Z}finally{z(V)}},G.prototype._flush=function(j){var I;try{this.push(this.__final())}catch(z){I=z}j(I)},G.prototype._finalOrDigest=function(j){var I=this.__final()||E.alloc(0);return j&&(I=this._toString(I,j,!0)),I},G.prototype._toString=function(j,I,z){if(this._decoder||(this._decoder=new F(I),this._encoding=I),this._encoding!==I)throw new Error("can't switch encodings");var V=this._decoder.write(j);return z&&(V+=this._decoder.end()),V},g.exports=G}),h5=G0((l,g)=>{var E=p0(),M=j9(),F=F9(),S=U9(),G=q5();function j(I){G.call(this,"digest"),this._hash=I}E(j,G),j.prototype._update=function(I){this._hash.update(I)},j.prototype._final=function(){return this._hash.digest()},g.exports=function(I){return I=I.toLowerCase(),I==="md5"?new M:I==="rmd160"||I==="ripemd160"?new F:new j(S(I))}}),N7=G0((l,g)=>{var E=p0(),M=d0().Buffer,F=q5(),S=M.alloc(128),G=64;function j(I,z){F.call(this,"digest"),typeof z=="string"&&(z=M.from(z)),this._alg=I,this._key=z,z.length>G?z=I(z):z.length<G&&(z=M.concat([z,S],G));for(var V=this._ipad=M.allocUnsafe(G),Z=this._opad=M.allocUnsafe(G),T=0;T<G;T++)V[T]=z[T]^54,Z[T]=z[T]^92;this._hash=[V]}E(j,F),j.prototype._update=function(I){this._hash.push(I)},j.prototype._final=function(){var I=this._alg(M.concat(this._hash));return this._alg(M.concat([this._opad,I]))},g.exports=j}),X6=G0((l,g)=>{var E=j9();g.exports=function(M){return new E().update(M).digest()}}),H6=G0((l,g)=>{var E=p0(),M=N7(),F=q5(),S=d0().Buffer,G=X6(),j=F9(),I=U9(),z=S.alloc(128);function V(Z,T){F.call(this,"digest"),typeof T=="string"&&(T=S.from(T));var N=Z==="sha512"||Z==="sha384"?128:64;if(this._alg=Z,this._key=T,T.length>N){var U=Z==="rmd160"?new j:I(Z);T=U.update(T).digest()}else T.length<N&&(T=S.concat([T,z],N));for(var D=this._ipad=S.allocUnsafe(N),k=this._opad=S.allocUnsafe(N),v=0;v<N;v++)D[v]=T[v]^54,k[v]=T[v]^92;this._hash=Z==="rmd160"?new j:I(Z),this._hash.update(D)}E(V,F),V.prototype._update=function(Z){this._hash.update(Z)},V.prototype._final=function(){var Z=this._hash.digest(),T=this._alg==="rmd160"?new j:I(this._alg);return T.update(this._opad).update(Z).digest()},g.exports=function(Z,T){return Z=Z.toLowerCase(),Z==="rmd160"||Z==="ripemd160"?new V("rmd160",T):Z==="md5"?new M(G,T):new V(Z,T)}}),Y6=G0((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"}}}),L7=G0((l,g)=>{g.exports=Y6()}),Q6=G0((l,g)=>{var E=Math.pow(2,30)-1;g.exports=function(M,F){if(typeof M!="number")throw new TypeError("Iterations not a number");if(M<0)throw new TypeError("Bad iterations");if(typeof F!="number")throw new TypeError("Key length not a number");if(F<0||F>E||F!==F)throw new TypeError("Bad key length")}}),$6=G0((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}),G6=G0((l,g)=>{var E=d0().Buffer;g.exports=function(M,F,S){if(E.isBuffer(M))return M;if(typeof M=="string")return E.from(M,F);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")}}),J6=G0((l,g)=>{var E=X6(),M=F9(),F=U9(),S=d0().Buffer,G=Q6(),j=$6(),I=G6(),z=S.alloc(128),V={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Z(U,D,k){var v=T(U),x=U==="sha512"||U==="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[U]),y=S.allocUnsafe(x+V[U]),p=0;p<x;p++)A[p]=D[p]^54,y[p]=D[p]^92;var c=S.allocUnsafe(x+k+4);A.copy(c,0,0,x),this.ipad1=c,this.ipad2=A,this.opad=y,this.alg=U,this.blocksize=x,this.hash=v,this.size=V[U]}Z.prototype.run=function(U,D){U.copy(D,this.blocksize);var k=this.hash(D);return k.copy(this.opad,this.blocksize),this.hash(this.opad)};function T(U){function D(v){return F(U).update(v).digest()}function k(v){return new M().update(v).digest()}return U==="rmd160"||U==="ripemd160"?k:U==="md5"?E:D}function N(U,D,k,v,x){G(k,v),U=I(U,j,"Password"),D=I(D,j,"Salt"),x=x||"sha1";var A=new Z(x,U,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),H0=1;H0<=i;H0++){p.writeUInt32BE(H0,D.length);for(var f=A.run(p,A.ipad1),P0=f,K=1;K<k;K++){P0=A.run(P0,A.ipad2);for(var X=0;X<n;X++)f[X]^=P0[X]}f.copy(y,c),c+=n}return y}g.exports=N}),I7=G0((l,g)=>{var E=d0().Buffer,M=Q6(),F=$6(),S=J6(),G=G6(),j,I=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 Z(k){if(global.process&&!global.process.browser||!I||!I.importKey||!I.deriveBits)return Promise.resolve(!1);if(V[k]!==void 0)return V[k];j=j||E.alloc(8);var v=U(j,j,10,128,k).then(function(){return!0}).catch(function(){return!1});return V[k]=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 U(k,v,x,A,y){return I.importKey("raw",k,{name:"PBKDF2"},!1,["deriveBits"]).then(function(p){return I.deriveBits({name:"PBKDF2",salt:v,iterations:x,hash:{name:y}},p,A<<3)}).then(function(p){return E.from(p)})}function D(k,v){k.then(function(x){N()(function(){v(null,x)})},function(x){N()(function(){v(x)})})}g.exports=function(k,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(k,v,x,A,y)}catch(i){return p(i)}p(null,n)});return}if(M(x,A),k=G(k,F,"Password"),v=G(v,F,"Salt"),typeof p!="function")throw new Error("No callback provided to pbkdf2");D(Z(c).then(function(n){return n?U(k,v,x,A,c):S(k,v,x,A,y)}),p)}}),P6=G0((l)=>{l.pbkdf2=I7(),l.pbkdf2Sync=J6()}),W6=G0((l)=>{l.readUInt32BE=function(F,S){var G=F[0+S]<<24|F[1+S]<<16|F[2+S]<<8|F[3+S];return G>>>0},l.writeUInt32BE=function(F,S,G){F[0+G]=S>>>24,F[1+G]=S>>>16&255,F[2+G]=S>>>8&255,F[3+G]=S&255},l.ip=function(F,S,G,j){for(var I=0,z=0,V=6;V>=0;V-=2){for(var Z=0;Z<=24;Z+=8)I<<=1,I|=S>>>Z+V&1;for(var Z=0;Z<=24;Z+=8)I<<=1,I|=F>>>Z+V&1}for(var V=6;V>=0;V-=2){for(var Z=1;Z<=25;Z+=8)z<<=1,z|=S>>>Z+V&1;for(var Z=1;Z<=25;Z+=8)z<<=1,z|=F>>>Z+V&1}G[j+0]=I>>>0,G[j+1]=z>>>0},l.rip=function(F,S,G,j){for(var I=0,z=0,V=0;V<4;V++)for(var Z=24;Z>=0;Z-=8)I<<=1,I|=S>>>Z+V&1,I<<=1,I|=F>>>Z+V&1;for(var V=4;V<8;V++)for(var Z=24;Z>=0;Z-=8)z<<=1,z|=S>>>Z+V&1,z<<=1,z|=F>>>Z+V&1;G[j+0]=I>>>0,G[j+1]=z>>>0},l.pc1=function(F,S,G,j){for(var I=0,z=0,V=7;V>=5;V--){for(var Z=0;Z<=24;Z+=8)I<<=1,I|=S>>Z+V&1;for(var Z=0;Z<=24;Z+=8)I<<=1,I|=F>>Z+V&1}for(var Z=0;Z<=24;Z+=8)I<<=1,I|=S>>Z+V&1;for(var V=1;V<=3;V++){for(var Z=0;Z<=24;Z+=8)z<<=1,z|=S>>Z+V&1;for(var Z=0;Z<=24;Z+=8)z<<=1,z|=F>>Z+V&1}for(var Z=0;Z<=24;Z+=8)z<<=1,z|=F>>Z+V&1;G[j+0]=I>>>0,G[j+1]=z>>>0},l.r28shl=function(F,S){return F<<S&268435455|F>>>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(F,S,G,j){for(var I=0,z=0,V=g.length>>>1,Z=0;Z<V;Z++)I<<=1,I|=F>>>g[Z]&1;for(var Z=V;Z<g.length;Z++)z<<=1,z|=S>>>g[Z]&1;G[j+0]=I>>>0,G[j+1]=z>>>0},l.expand=function(F,S,G){var j=0,I=0;j=(F&1)<<5|F>>>27;for(var z=23;z>=15;z-=4)j<<=6,j|=F>>>z&63;for(var z=11;z>=3;z-=4)I|=F>>>z&63,I<<=6;I|=(F&31)<<1|F>>>31,S[G+0]=j>>>0,S[G+1]=I>>>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(F,S){for(var G=0,j=0;j<4;j++){var I=F>>>18-j*6&63,z=E[j*64+I];G<<=4,G|=z}for(var j=0;j<4;j++){var I=S>>>18-j*6&63,z=E[256+j*64+I];G<<=4,G|=z}return G>>>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(F){for(var S=0,G=0;G<M.length;G++)S<<=1,S|=F>>>M[G]&1;return S>>>0},l.padSplit=function(F,S,G){for(var j=F.toString(2);j.length<S;)j="0"+j;for(var I=[],z=0;z<S;z+=G)I.push(j.slice(z,z+G));return I.join(" ")}}),O5=G0((l,g)=>{g.exports=E;function E(M,F){if(!M)throw new Error(F||"Assertion failed")}E.equal=function(M,F,S){if(M!=F)throw new Error(S||"Assertion failed: "+M+" != "+F)}}),L9=G0((l,g)=>{var E=O5();function M(F){this.options=F,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(F){return F.length===0?[]:this.type==="decrypt"?this._updateDecrypt(F):this._updateEncrypt(F)},M.prototype._buffer=function(F,S){for(var G=Math.min(this.buffer.length-this.bufferOff,F.length-S),j=0;j<G;j++)this.buffer[this.bufferOff+j]=F[S+j];return this.bufferOff+=G,G},M.prototype._flushBuffer=function(F,S){return this._update(this.buffer,0,F,S),this.bufferOff=0,this.blockSize},M.prototype._updateEncrypt=function(F){var S=0,G=0,j=(this.bufferOff+F.length)/this.blockSize|0,I=new Array(j*this.blockSize);this.bufferOff!==0&&(S+=this._buffer(F,S),this.bufferOff===this.buffer.length&&(G+=this._flushBuffer(I,G)));for(var z=F.length-(F.length-S)%this.blockSize;S<z;S+=this.blockSize)this._update(F,S,I,G),G+=this.blockSize;for(;S<F.length;S++,this.bufferOff++)this.buffer[this.bufferOff]=F[S];return I},M.prototype._updateDecrypt=function(F){for(var S=0,G=0,j=Math.ceil((this.bufferOff+F.length)/this.blockSize)-1,I=new Array(j*this.blockSize);j>0;j--)S+=this._buffer(F,S),G+=this._flushBuffer(I,G);return S+=this._buffer(F,S),I},M.prototype.final=function(F){var S;F&&(S=this.update(F));var G;return this.type==="encrypt"?G=this._finalEncrypt():G=this._finalDecrypt(),S?S.concat(G):G},M.prototype._pad=function(F,S){if(S===0)return!1;for(;S<F.length;)F[S++]=0;return!0},M.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var F=new Array(this.blockSize);return this._update(this.buffer,0,F,0),F},M.prototype._unpad=function(F){return F},M.prototype._finalDecrypt=function(){E.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var F=new Array(this.blockSize);return this._flushBuffer(F,0),this._unpad(F)}}),Z6=G0((l,g)=>{var E=O5(),M=p0(),F=W6(),S=L9();function G(){this.tmp=new Array(2),this.keys=null}function j(z){S.call(this,z);var V=new G;this._desState=V,this.deriveKeys(V,z.key)}M(j,S),g.exports=j,j.create=function(z){return new j(z)};var I=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];j.prototype.deriveKeys=function(z,V){z.keys=new Array(32),E.equal(V.length,this.blockSize,"Invalid key length");var Z=F.readUInt32BE(V,0),T=F.readUInt32BE(V,4);F.pc1(Z,T,z.tmp,0),Z=z.tmp[0],T=z.tmp[1];for(var N=0;N<z.keys.length;N+=2){var U=I[N>>>1];Z=F.r28shl(Z,U),T=F.r28shl(T,U),F.pc2(Z,T,z.keys,N)}},j.prototype._update=function(z,V,Z,T){var N=this._desState,U=F.readUInt32BE(z,V),D=F.readUInt32BE(z,V+4);F.ip(U,D,N.tmp,0),U=N.tmp[0],D=N.tmp[1],this.type==="encrypt"?this._encrypt(N,U,D,N.tmp,0):this._decrypt(N,U,D,N.tmp,0),U=N.tmp[0],D=N.tmp[1],F.writeUInt32BE(Z,U,T),F.writeUInt32BE(Z,D,T+4)},j.prototype._pad=function(z,V){for(var Z=z.length-V,T=V;T<z.length;T++)z[T]=Z;return!0},j.prototype._unpad=function(z){for(var V=z[z.length-1],Z=z.length-V;Z<z.length;Z++)E.equal(z[Z],V);return z.slice(0,z.length-V)},j.prototype._encrypt=function(z,V,Z,T,N){for(var U=V,D=Z,k=0;k<z.keys.length;k+=2){var v=z.keys[k],x=z.keys[k+1];F.expand(D,z.tmp,0),v^=z.tmp[0],x^=z.tmp[1];var A=F.substitute(v,x),y=F.permute(A),p=D;D=(U^y)>>>0,U=p}F.rip(D,U,T,N)},j.prototype._decrypt=function(z,V,Z,T,N){for(var U=Z,D=V,k=z.keys.length-2;k>=0;k-=2){var v=z.keys[k],x=z.keys[k+1];F.expand(U,z.tmp,0),v^=z.tmp[0],x^=z.tmp[1];var A=F.substitute(v,x),y=F.permute(A),p=U;U=(D^y)>>>0,D=p}F.rip(U,D,T,N)}}),k7=G0((l)=>{var g=O5(),E=p0(),M={};function F(G){g.equal(G.length,8,"Invalid IV length"),this.iv=new Array(8);for(var j=0;j<this.iv.length;j++)this.iv[j]=G[j]}function S(G){function j(Z){G.call(this,Z),this._cbcInit()}E(j,G);for(var I=Object.keys(M),z=0;z<I.length;z++){var V=I[z];j.prototype[V]=M[V]}return j.create=function(Z){return new j(Z)},j}l.instantiate=S,M._cbcInit=function(){var G=new F(this.options.iv);this._cbcState=G},M._update=function(G,j,I,z){var V=this._cbcState,Z=this.constructor.super_.prototype,T=V.iv;if(this.type==="encrypt"){for(var N=0;N<this.blockSize;N++)T[N]^=G[j+N];Z._update.call(this,T,0,I,z);for(var N=0;N<this.blockSize;N++)T[N]=I[z+N]}else{Z._update.call(this,G,j,I,z);for(var N=0;N<this.blockSize;N++)I[z+N]^=T[N];for(var N=0;N<this.blockSize;N++)T[N]=G[j+N]}}}),q7=G0((l,g)=>{var E=O5(),M=p0(),F=L9(),S=Z6();function G(I,z){E.equal(z.length,24,"Invalid key length");var V=z.slice(0,8),Z=z.slice(8,16),T=z.slice(16,24);I==="encrypt"?this.ciphers=[S.create({type:"encrypt",key:V}),S.create({type:"decrypt",key:Z}),S.create({type:"encrypt",key:T})]:this.ciphers=[S.create({type:"decrypt",key:T}),S.create({type:"encrypt",key:Z}),S.create({type:"decrypt",key:V})]}function j(I){F.call(this,I);var z=new G(this.type,this.options.key);this._edeState=z}M(j,F),g.exports=j,j.create=function(I){return new j(I)},j.prototype._update=function(I,z,V,Z){var T=this._edeState;T.ciphers[0]._update(I,z,V,Z),T.ciphers[1]._update(V,Z,V,Z),T.ciphers[2]._update(V,Z,V,Z)},j.prototype._pad=S.prototype._pad,j.prototype._unpad=S.prototype._unpad}),B7=G0((l)=>{l.utils=W6(),l.Cipher=L9(),l.DES=Z6(),l.CBC=k7(),l.EDE=q7()}),R7=G0((l,g)=>{var E=q5(),M=B7(),F=p0(),S=d0().Buffer,G={"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};G.des=G["des-cbc"],G.des3=G["des-ede3-cbc"],g.exports=j,F(j,E);function j(I){E.call(this);var z=I.mode.toLowerCase(),V=G[z],Z;I.decrypt?Z="decrypt":Z="encrypt";var T=I.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=I.iv;S.isBuffer(N)||(N=S.from(N)),this._des=V.create({key:T,iv:N,type:Z})}j.prototype._update=function(I){return S.from(this._des.update(I))},j.prototype._final=function(){return S.from(this._des.final())}}),E7=G0((l)=>{l.encrypt=function(g,E){return g._cipher.encryptBlock(E)},l.decrypt=function(g,E){return g._cipher.decryptBlock(E)}}),u5=G0((l,g)=>{g.exports=function(E,M){for(var F=Math.min(E.length,M.length),S=new Buffer(F),G=0;G<F;++G)S[G]=E[G]^M[G];return S}}),S7=G0((l)=>{var g=u5();l.encrypt=function(E,M){var F=g(M,E._prev);return E._prev=E._cipher.encryptBlock(F),E._prev},l.decrypt=function(E,M){var F=E._prev;E._prev=M;var S=E._cipher.decryptBlock(M);return g(S,F)}}),x7=G0((l)=>{var g=d0().Buffer,E=u5();function M(F,S,G){var j=S.length,I=E(S,F._cache);return F._cache=F._cache.slice(j),F._prev=g.concat([F._prev,G?S:I]),I}l.encrypt=function(F,S,G){for(var j=g.allocUnsafe(0),I;S.length;)if(F._cache.length===0&&(F._cache=F._cipher.encryptBlock(F._prev),F._prev=g.allocUnsafe(0)),F._cache.length<=S.length)I=F._cache.length,j=g.concat([j,M(F,S.slice(0,I),G)]),S=S.slice(I);else{j=g.concat([j,M(F,S,G)]);break}return j}}),A7=G0((l)=>{var g=d0().Buffer;function E(M,F,S){var G=M._cipher.encryptBlock(M._prev),j=G[0]^F;return M._prev=g.concat([M._prev.slice(1),g.from([S?F:j])]),j}l.encrypt=function(M,F,S){for(var G=F.length,j=g.allocUnsafe(G),I=-1;++I<G;)j[I]=E(M,F[I],S);return j}}),v7=G0((l)=>{var g=d0().Buffer;function E(F,S,G){for(var j,I=-1,z=8,V=0,Z,T;++I<z;)j=F._cipher.encryptBlock(F._prev),Z=S&1<<7-I?128:0,T=j[0]^Z,V+=(T&128)>>I%8,F._prev=M(F._prev,G?Z:T);return V}function M(F,S){var G=F.length,j=-1,I=g.allocUnsafe(F.length);for(F=g.concat([F,g.from([S])]);++j<G;)I[j]=F[j]<<1|F[j+1]>>7;return I}l.encrypt=function(F,S,G){for(var j=S.length,I=g.allocUnsafe(j),z=-1;++z<j;)I[z]=E(F,S[z],G);return I}}),M7=G0((l)=>{var g=u5();function E(M){return M._prev=M._cipher.encryptBlock(M._prev),M._prev}l.encrypt=function(M,F){for(;M._cache.length<F.length;)M._cache=Buffer.concat([M._cache,E(M)]);var S=M._cache.slice(0,F.length);return M._cache=M._cache.slice(F.length),g(F,S)}}),j6=G0((l,g)=>{function E(M){for(var F=M.length,S;F--;)if(S=M.readUInt8(F),S===255)M.writeUInt8(0,F);else{S++,M.writeUInt8(S,F);break}}g.exports=E}),p9=G0((l)=>{var g=u5(),E=d0().Buffer,M=j6();function F(G){var j=G._cipher.encryptBlockRaw(G._prev);return M(G._prev),j}var S=16;l.encrypt=function(G,j){var I=Math.ceil(j.length/S),z=G._cache.length;G._cache=E.concat([G._cache,E.allocUnsafe(I*S)]);for(var V=0;V<I;V++){var Z=F(G),T=z+V*S;G._cache.writeUInt32BE(Z[0],T+0),G._cache.writeUInt32BE(Z[1],T+4),G._cache.writeUInt32BE(Z[2],T+8),G._cache.writeUInt32BE(Z[3],T+12)}var N=G._cache.slice(0,j.length);return G._cache=G._cache.slice(j.length),g(j,N)}}),F6=G0((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=G0((l,g)=>{var E={ECB:E7(),CBC:S7(),CFB:x7(),CFB8:A7(),CFB1:v7(),OFB:M7(),CTR:p9(),GCM:p9()},M=F6();for(F in M)M[F].module=E[M[F].mode];var F;g.exports=M}),K9=G0((l,g)=>{var E=d0().Buffer;function M(z){E.isBuffer(z)||(z=E.from(z));for(var V=z.length/4|0,Z=new Array(V),T=0;T<V;T++)Z[T]=z.readUInt32BE(T*4);return Z}function F(z){for(var V=0;V<z.length;z++)z[V]=0}function S(z,V,Z,T,N){for(var U=Z[0],D=Z[1],k=Z[2],v=Z[3],x=z[0]^V[0],A=z[1]^V[1],y=z[2]^V[2],p=z[3]^V[3],c,n,i,H0,f=4,P0=1;P0<N;P0++)c=U[x>>>24]^D[A>>>16&255]^k[y>>>8&255]^v[p&255]^V[f++],n=U[A>>>24]^D[y>>>16&255]^k[p>>>8&255]^v[x&255]^V[f++],i=U[y>>>24]^D[p>>>16&255]^k[x>>>8&255]^v[A&255]^V[f++],H0=U[p>>>24]^D[x>>>16&255]^k[A>>>8&255]^v[y&255]^V[f++],x=c,A=n,y=i,p=H0;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++],H0=(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,H0=H0>>>0,[c,n,i,H0]}var G=[0,1,2,4,8,16,32,64,128,27,54],j=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 Z=[],T=[],N=[[],[],[],[]],U=[[],[],[],[]],D=0,k=0,v=0;v<256;++v){var x=k^k<<1^k<<2^k<<3^k<<4;x=x>>>8^x&255^99,Z[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,U[0][x]=c<<24|c>>>8,U[1][x]=c<<16|c>>>16,U[2][x]=c<<8|c>>>24,U[3][x]=c,D===0?D=k=1:(D=A^z[z[z[p^A]]],k^=z[z[k]])}return{SBOX:Z,INV_SBOX:T,SUB_MIX:N,INV_SUB_MIX:U}}();function I(z){this._key=M(z),this._reset()}I.blockSize=16,I.keySize=32,I.prototype.blockSize=I.blockSize,I.prototype.keySize=I.keySize,I.prototype._reset=function(){for(var z=this._key,V=z.length,Z=V+6,T=(Z+1)*4,N=[],U=0;U<V;U++)N[U]=z[U];for(U=V;U<T;U++){var D=N[U-1];U%V===0?(D=D<<8|D>>>24,D=j.SBOX[D>>>24]<<24|j.SBOX[D>>>16&255]<<16|j.SBOX[D>>>8&255]<<8|j.SBOX[D&255],D^=G[U/V|0]<<24):V>6&&U%V===4&&(D=j.SBOX[D>>>24]<<24|j.SBOX[D>>>16&255]<<16|j.SBOX[D>>>8&255]<<8|j.SBOX[D&255]),N[U]=N[U-V]^D}for(var k=[],v=0;v<T;v++){var x=T-v,A=N[x-(v%4?0:4)];v<4||x<=4?k[v]=A:k[v]=j.INV_SUB_MIX[0][j.SBOX[A>>>24]]^j.INV_SUB_MIX[1][j.SBOX[A>>>16&255]]^j.INV_SUB_MIX[2][j.SBOX[A>>>8&255]]^j.INV_SUB_MIX[3][j.SBOX[A&255]]}this._nRounds=Z,this._keySchedule=N,this._invKeySchedule=k},I.prototype.encryptBlockRaw=function(z){return z=M(z),S(z,this._keySchedule,j.SUB_MIX,j.SBOX,this._nRounds)},I.prototype.encryptBlock=function(z){var V=this.encryptBlockRaw(z),Z=E.allocUnsafe(16);return Z.writeUInt32BE(V[0],0),Z.writeUInt32BE(V[1],4),Z.writeUInt32BE(V[2],8),Z.writeUInt32BE(V[3],12),Z},I.prototype.decryptBlock=function(z){z=M(z);var V=z[1];z[1]=z[3],z[3]=V;var Z=S(z,this._invKeySchedule,j.INV_SUB_MIX,j.INV_SBOX,this._nRounds),T=E.allocUnsafe(16);return T.writeUInt32BE(Z[0],0),T.writeUInt32BE(Z[3],4),T.writeUInt32BE(Z[2],8),T.writeUInt32BE(Z[1],12),T},I.prototype.scrub=function(){F(this._keySchedule),F(this._invKeySchedule),F(this._key)},g.exports.AES=I}),_7=G0((l,g)=>{var E=d0().Buffer,M=E.alloc(16,0);function F(j){return[j.readUInt32BE(0),j.readUInt32BE(4),j.readUInt32BE(8),j.readUInt32BE(12)]}function S(j){var I=E.allocUnsafe(16);return I.writeUInt32BE(j[0]>>>0,0),I.writeUInt32BE(j[1]>>>0,4),I.writeUInt32BE(j[2]>>>0,8),I.writeUInt32BE(j[3]>>>0,12),I}function G(j){this.h=j,this.state=E.alloc(16,0),this.cache=E.allocUnsafe(0)}G.prototype.ghash=function(j){for(var I=-1;++I<j.length;)this.state[I]^=j[I];this._multiply()},G.prototype._multiply=function(){for(var j=F(this.h),I=[0,0,0,0],z,V,Z,T=-1;++T<128;){for(V=(this.state[~~(T/8)]&1<<7-T%8)!==0,V&&(I[0]^=j[0],I[1]^=j[1],I[2]^=j[2],I[3]^=j[3]),Z=(j[3]&1)!==0,z=3;z>0;z--)j[z]=j[z]>>>1|(j[z-1]&1)<<31;j[0]=j[0]>>>1,Z&&(j[0]=j[0]^-520093696)}this.state=S(I)},G.prototype.update=function(j){this.cache=E.concat([this.cache,j]);for(var I;this.cache.length>=16;)I=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(I)},G.prototype.final=function(j,I){return this.cache.length&&this.ghash(E.concat([this.cache,M],16)),this.ghash(S([0,j,0,I])),this.state},g.exports=G}),U6=G0((l,g)=>{var E=K9(),M=d0().Buffer,F=q5(),S=p0(),G=_7(),j=u5(),I=j6();function z(T,N){var U=0;T.length!==N.length&&U++;for(var D=Math.min(T.length,N.length),k=0;k<D;++k)U+=T[k]^N[k];return U}function V(T,N,U){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 G(U),k=N.length,v=k%16;D.update(N),v&&(v=16-v,D.update(M.alloc(v,0))),D.update(M.alloc(8,0));var x=k*8,A=M.alloc(8);A.writeUIntBE(x,0,8),D.update(A),T._finID=D.state;var y=M.from(T._finID);return I(y),y}function Z(T,N,U,D){F.call(this);var k=M.alloc(4,0);this._cipher=new E.AES(N);var v=this._cipher.encryptBlock(k);this._ghash=new G(v),U=V(this,U,v),this._prev=M.from(U),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(Z,F),Z.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 U=this._mode.encrypt(this,T);return this._decrypt?this._ghash.update(T):this._ghash.update(U),this._len+=T.length,U},Z.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var T=j(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()},Z.prototype.getAuthTag=function(){if(this._decrypt||!M.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},Z.prototype.setAuthTag=function(T){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=T},Z.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=Z}),V6=G0((l,g)=>{var E=K9(),M=d0().Buffer,F=q5(),S=p0();function G(j,I,z,V){F.call(this),this._cipher=new E.AES(I),this._prev=M.from(z),this._cache=M.allocUnsafe(0),this._secCache=M.allocUnsafe(0),this._decrypt=V,this._mode=j}S(G,F),G.prototype._update=function(j){return this._mode.encrypt(this,j,this._decrypt)},G.prototype._final=function(){this._cipher.scrub()},g.exports=G}),C9=G0((l,g)=>{var E=d0().Buffer,M=j9();function F(S,G,j,I){if(E.isBuffer(S)||(S=E.from(S,"binary")),G&&(E.isBuffer(G)||(G=E.from(G,"binary")),G.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var z=j/8,V=E.alloc(z),Z=E.alloc(I||0),T=E.alloc(0);z>0||I>0;){var N=new M;N.update(T),N.update(S),G&&N.update(G),T=N.digest();var U=0;if(z>0){var D=V.length-z;U=Math.min(z,T.length),T.copy(V,D,0,U),z-=U}if(U<T.length&&I>0){var k=Z.length-I,v=Math.min(I,T.length-U);T.copy(Z,k,U,U+v),I-=v}}return T.fill(0),{key:V,iv:Z}}g.exports=F}),w7=G0((l)=>{var g=I9(),E=U6(),M=d0().Buffer,F=V6(),S=q5(),G=K9(),j=C9(),I=p0();function z(U,D,k){S.call(this),this._cache=new Z,this._cipher=new G.AES(D),this._prev=M.from(k),this._mode=U,this._autopadding=!0}I(z,S),z.prototype._update=function(U){this._cache.add(U);for(var D,k,v=[];D=this._cache.get();)k=this._mode.encrypt(this,D),v.push(k);return M.concat(v)};var V=M.alloc(16,16);z.prototype._final=function(){var U=this._cache.flush();if(this._autopadding)return U=this._mode.encrypt(this,U),this._cipher.scrub(),U;if(!U.equals(V))throw this._cipher.scrub(),new Error("data not multiple of block length")},z.prototype.setAutoPadding=function(U){return this._autopadding=!!U,this};function Z(){this.cache=M.allocUnsafe(0)}Z.prototype.add=function(U){this.cache=M.concat([this.cache,U])},Z.prototype.get=function(){if(this.cache.length>15){var U=this.cache.slice(0,16);return this.cache=this.cache.slice(16),U}return null},Z.prototype.flush=function(){for(var U=16-this.cache.length,D=M.allocUnsafe(U),k=-1;++k<U;)D.writeUInt8(U,k);return M.concat([this.cache,D])};function T(U,D,k){var v=g[U.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 k=="string"&&(k=M.from(k)),v.mode!=="GCM"&&k.length!==v.iv)throw new TypeError("invalid iv length "+k.length);return v.type==="stream"?new F(v.module,D,k):v.type==="auth"?new E(v.module,D,k):new z(v.module,D,k)}function N(U,D){var k=g[U.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var v=j(D,!1,k.key,k.iv);return T(U,v.key,v.iv)}l.createCipheriv=T,l.createCipher=N}),y7=G0((l)=>{var g=U6(),E=d0().Buffer,M=I9(),F=V6(),S=q5(),G=K9(),j=C9(),I=p0();function z(U,D,k){S.call(this),this._cache=new V,this._last=void 0,this._cipher=new G.AES(D),this._prev=E.from(k),this._mode=U,this._autopadding=!0}I(z,S),z.prototype._update=function(U){this._cache.add(U);for(var D,k,v=[];D=this._cache.get(this._autopadding);)k=this._mode.decrypt(this,D),v.push(k);return E.concat(v)},z.prototype._final=function(){var U=this._cache.flush();if(this._autopadding)return Z(this._mode.decrypt(this,U));if(U)throw new Error("data not multiple of block length")},z.prototype.setAutoPadding=function(U){return this._autopadding=!!U,this};function V(){this.cache=E.allocUnsafe(0)}V.prototype.add=function(U){this.cache=E.concat([this.cache,U])},V.prototype.get=function(U){var D;if(U){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 Z(U){var D=U[15];if(D<1||D>16)throw new Error("unable to decrypt data");for(var k=-1;++k<D;)if(U[k+(16-D)]!==D)throw new Error("unable to decrypt data");if(D!==16)return U.slice(0,16-D)}function T(U,D,k){var v=M[U.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof k=="string"&&(k=E.from(k)),v.mode!=="GCM"&&k.length!==v.iv)throw new TypeError("invalid iv length "+k.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 F(v.module,D,k,!0):v.type==="auth"?new g(v.module,D,k,!0):new z(v.module,D,k)}function N(U,D){var k=M[U.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var v=j(D,!1,k.key,k.iv);return T(U,v.key,v.iv)}l.createDecipher=N,l.createDecipheriv=T}),k9=G0((l)=>{var g=w7(),E=y7(),M=F6();function F(){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=F}),g7=G0((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}}),m7=G0((l)=>{var g=R7(),E=k9(),M=I9(),F=g7(),S=C9();function G(Z,T){Z=Z.toLowerCase();var N,U;if(M[Z])N=M[Z].key,U=M[Z].iv;else if(F[Z])N=F[Z].key*8,U=F[Z].iv;else throw new TypeError("invalid suite type");var D=S(T,!1,N,U);return I(Z,D.key,D.iv)}function j(Z,T){Z=Z.toLowerCase();var N,U;if(M[Z])N=M[Z].key,U=M[Z].iv;else if(F[Z])N=F[Z].key*8,U=F[Z].iv;else throw new TypeError("invalid suite type");var D=S(T,!1,N,U);return z(Z,D.key,D.iv)}function I(Z,T,N){if(Z=Z.toLowerCase(),M[Z])return E.createCipheriv(Z,T,N);if(F[Z])return new g({key:T,iv:N,mode:Z});throw new TypeError("invalid suite type")}function z(Z,T,N){if(Z=Z.toLowerCase(),M[Z])return E.createDecipheriv(Z,T,N);if(F[Z])return new g({key:T,iv:N,mode:Z,decrypt:!0});throw new TypeError("invalid suite type")}function V(){return Object.keys(F).concat(E.getCiphers())}l.createCipher=l.Cipher=G,l.createCipheriv=l.Cipheriv=I,l.createDecipher=l.Decipher=j,l.createDecipheriv=l.Decipheriv=z,l.listCiphers=l.getCiphers=V}),M5=G0(()=>{}),z6=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var j;try{typeof window<"u"&&typeof window.Buffer<"u"?j=window.Buffer:j=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,P,W=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)P=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)P=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function z(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,P=0,W;if(Y==="be")for(H=K.length-1;H>=X;H-=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8}this.strip()};function V(K,X,Y,H){for(var Q=0,P=Math.min(K.length,Y),W=X;W<P;W++){var $=K.charCodeAt(W)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var P=K.length-Y,W=P%H,$=Math.min(P,P-W)+Y,C=0,J=Y;J<$;J+=H)C=V(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(W!==0){var R=1;for(C=V(K,J,K.length,X),J=0;J<W;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Z=["","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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,P=0;P<this.length;P++){var W=this.words[P],$=((W<<H|Q)&16777215).toString(16);Q=W>>>24-H&16777215,Q!==0||P!==this.length-1?Y=Z[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,P--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=T[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=Z[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof j<"u"),this.toArrayLike(j,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var P=X==="le",W=new K(Q),$,C,J=this.clone();if(P){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[C]=$;for(;C<Q;C++)W[C]=0}else{for(C=0;C<Q-H;C++)W[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[Q-C-1]=$}return W},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function U(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,P=0;P<H.length;P++)X=(Y.words[P]|0)+(H.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;for(;Q!==0&&P<Y.length;P++)X=(Y.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;P<Y.length;P++)this.words[P]=Y.words[P];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var P=0,W=0;W<Q.length;W++)X=(H.words[W]|0)-(Q.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;for(;P!==0&&W<H.length;W++)X=(H.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;if(P===0&&W<H.length&&H!==this)for(;W<H.length;W++)this.words[W]=H.words[W];return this.length=Math.max(this.length,W),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,P=X.words[0]|0,W=Q*P,$=W&67108863,C=W/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,P=X.words[s]|0,W=Q*P+L,R+=W/67108864|0,L=W&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,P=Y.words,W=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,a=u>>>13,V0=H[3]|0,K0=V0&8191,Q0=V0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,U0=w0&8191,W0=w0>>>13,c0=H[8]|0,O=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,Y0=z0&8191,Z0=z0>>>13,b0=Q[1]|0,F0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,O0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,W5=Q[7]|0,E0=W5&8191,S0=W5>>>13,Z5=Q[8]|0,x0=Z5&8191,A0=Z5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,Z0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,Z0);var Q5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,Z0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,Z0),$=$+Math.imul(L,F0)|0,C=C+Math.imul(L,j0)|0,C=C+Math.imul(_,F0)|0,J=J+Math.imul(_,j0)|0;var g0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,Z0),C=C+Math.imul(a,Y0)|0,J=Math.imul(a,Z0),$=$+Math.imul(r,F0)|0,C=C+Math.imul(r,j0)|0,C=C+Math.imul(X0,F0)|0,J=J+Math.imul(X0,j0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,Z0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,Z0),$=$+Math.imul(d,F0)|0,C=C+Math.imul(d,j0)|0,C=C+Math.imul(a,F0)|0,J=J+Math.imul(a,j0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,O0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,O0)|0;var h0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,Z0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,Z0),$=$+Math.imul(K0,F0)|0,C=C+Math.imul(K0,j0)|0,C=C+Math.imul(Q0,F0)|0,J=J+Math.imul(Q0,j0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(a,D0)|0,J=J+Math.imul(a,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,O0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,O0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,Z0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,Z0),$=$+Math.imul(q,F0)|0,C=C+Math.imul(q,j0)|0,C=C+Math.imul(m,F0)|0,J=J+Math.imul(m,j0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,O0)|0,C=C+Math.imul(a,T0)|0,J=J+Math.imul(a,O0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,Z0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,Z0),$=$+Math.imul(C0,F0)|0,C=C+Math.imul(C0,j0)|0,C=C+Math.imul(t,F0)|0,J=J+Math.imul(t,j0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,O0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,O0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(a,L0)|0,J=J+Math.imul(a,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(U0,Y0),C=Math.imul(U0,Z0),C=C+Math.imul(W0,Y0)|0,J=Math.imul(W0,Z0),$=$+Math.imul($0,F0)|0,C=C+Math.imul($0,j0)|0,C=C+Math.imul(J0,F0)|0,J=J+Math.imul(J0,j0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,O0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,O0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(a,k0)|0,J=J+Math.imul(a,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(O,Y0),C=Math.imul(O,Z0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,Z0),$=$+Math.imul(U0,F0)|0,C=C+Math.imul(U0,j0)|0,C=C+Math.imul(W0,F0)|0,J=J+Math.imul(W0,j0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,O0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,O0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(a,B0)|0,J=J+Math.imul(a,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,Z0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,Z0),$=$+Math.imul(O,F0)|0,C=C+Math.imul(O,j0)|0,C=C+Math.imul(B,F0)|0,J=J+Math.imul(B,j0)|0,$=$+Math.imul(U0,D0)|0,C=C+Math.imul(U0,N0)|0,C=C+Math.imul(W0,D0)|0,J=J+Math.imul(W0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,O0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,O0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(a,E0)|0,J=J+Math.imul(a,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,F0),C=Math.imul(h,j0),C=C+Math.imul(o,F0)|0,J=Math.imul(o,j0),$=$+Math.imul(O,D0)|0,C=C+Math.imul(O,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(U0,T0)|0,C=C+Math.imul(U0,O0)|0,C=C+Math.imul(W0,T0)|0,J=J+Math.imul(W0,O0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(a,x0)|0,J=J+Math.imul(a,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(O,T0)|0,C=C+Math.imul(O,O0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,O0)|0,$=$+Math.imul(U0,L0)|0,C=C+Math.imul(U0,I0)|0,C=C+Math.imul(W0,L0)|0,J=J+Math.imul(W0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(a,v0)|0,J=J+Math.imul(a,M0)|0;var i0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,O0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,O0),$=$+Math.imul(O,L0)|0,C=C+Math.imul(O,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(U0,k0)|0,C=C+Math.imul(U0,q0)|0,C=C+Math.imul(W0,k0)|0,J=J+Math.imul(W0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(O,k0)|0,C=C+Math.imul(O,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(U0,B0)|0,C=C+Math.imul(U0,R0)|0,C=C+Math.imul(W0,B0)|0,J=J+Math.imul(W0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(O,B0)|0,C=C+Math.imul(O,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(U0,E0)|0,C=C+Math.imul(U0,S0)|0,C=C+Math.imul(W0,E0)|0,J=J+Math.imul(W0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(O,E0)|0,C=C+Math.imul(O,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(U0,x0)|0,C=C+Math.imul(U0,A0)|0,C=C+Math.imul(W0,x0)|0,J=J+Math.imul(W0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(O,x0)|0,C=C+Math.imul(O,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(U0,v0)|0,C=C+Math.imul(U0,M0)|0,C=C+Math.imul(W0,v0)|0,J=J+Math.imul(W0,M0)|0;var X5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(O,v0)|0,C=C+Math.imul(O,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(W+$|0)+((C&8191)<<13)|0;return W=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=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]=C5,P[16]=X5,P[17]=H5,P[18]=Y5,W!==0&&(P[19]=W,Y.length++),Y};Math.imul||(k=D);function v(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,P=0;P<Y.length-1;P++){var W=Q;Q=0;for(var $=H&67108863,C=Math.min(P,X.length-1),J=Math.max(0,P-K.length+1);J<=C;J++){var R=P-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;W=W+(s/67108864|0)|0,r=r+$|0,$=r&67108863,W=W+(r>>>26)|0,Q+=W>>>26,W&=67108863}Y.words[P]=$,H=W,W=Q}return H!==0?Y.words[P]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new A;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=v(this,K,X):Y=x(this,K,X),Y};function A(K,X){this.x=K,this.y=X}A.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},A.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},A.prototype.permute=function(K,X,Y,H,Q,P){for(var W=0;W<P;W++)H[W]=X[K[W]],Q[W]=Y[K[W]]},A.prototype.transform=function(K,X,Y,H,Q,P){this.permute(P,K,X,Y,H,Q);for(var W=1;W<Q;W<<=1)for(var $=W<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<W;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+W],d=H[R+s+W],a=L*u-_*d;d=L*d+_*u,u=a,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+W]=r-u,H[R+s+W]=X0-d,s!==$&&(a=C*L-J*_,_=C*_+J*L,L=a)}},A.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},A.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},A.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},A.prototype.convert13b=function(K,X,Y,H){for(var Q=0,P=0;P<X;P++)Q=Q+(K[P]|0),Y[2*P]=Q&8191,Q=Q>>>13,Y[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*X;P<H;++P)Y[P]=0;F(Q===0),F((Q&-8192)===0)},A.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},A.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),P=this.stub(H),W=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,W,H),this.convert13b(X.words,X.length,J,H),this.transform(W,P,$,C,H,Q),this.transform(J,P,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,P,H,Q),this.conjugate(_,P,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=U(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var P=0;for(Q=0;Q<this.length;Q++){var W=this.words[Q]&H,$=(this.words[Q]|0)-W<<X;this.words[Q]=$|P,P=W>>>26-X}P&&(this.words[Q]=P,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),W=67108863^67108863>>>Q<<Q,$=Y;if(H-=P,H=Math.max(0,H),$){for(var C=0;C<P;C++)$.words[C]=this.words[C];$.length=P}if(P!==0)if(this.length>P)for(this.length-=P,C=0;C<this.length;C++)this.words[C]=this.words[C+P];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&W}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var P,W=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+Y]|0)+W;var $=(K.words[Q]|0)*X;P-=$&67108863,W=(P>>26)-($/67108864|0),this.words[Q+Y]=P&67108863}for(;Q<this.length-Y;Q++)P=(this.words[Q+Y]|0)+W,W=P>>26,this.words[Q+Y]=P&67108863;if(W===0)return this.strip();for(F(W===-1),W=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+W,W=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,P=Q.words[Q.length-1]|0,W=this._countBits(P);Y=26-W,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),P=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,X),X!=="mod"&&(H=P.div.neg()),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),X),X!=="mod"&&(H=P.div.neg()),{div:H,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),P=Y.cmp(H);return P<0||Q===1&&P===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=new G(0),W=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(P.isOdd()||W.isOdd())&&(P.iadd(C),W.isub(J)),P.iushrn(1),W.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(P),Q.isub(W)):(Y.isub(X),P.isub(H),W.isub(Q))}return{a:P,b:W,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var W=0,$=1;(X.words[0]&$)===0&&W<26;++W,$<<=1);if(W>0)for(X.iushrn(W);W-- >0;)H.isOdd()&&H.iadd(P),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var P=X;X=Y,Y=P}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,P=Y;Q!==0&&P<this.length;P++){var W=this.words[P]|0;W+=Q,Q=W>>>26,W&=67108863,this.words[P]=W}return Q!==0&&(this.words[P]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new f(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(X.words[X.length++]=P&Y,Q=10;Q<K.length;Q++){var W=K.words[Q]|0;K.words[Q-10]=(W&Y)<<4|P>>>22,P=W}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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function f(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.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,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},f.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},f.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},f.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},f.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},f.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},f.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},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 X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var P=new G(1).toRed(this),W=P.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(W)!==0;)C.redIAdd(W);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},f.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},f.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var P=H[0],W=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(P!==H[0]&&(P=this.sqr(P)),L===0&&W===0){$=0;continue}W<<=1,W|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(P=this.mul(P,H[W]),$=0,W=0)}C=26}return P},f.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},f.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.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 G(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 X=this.imod(K.mul(this.rinv));return X.red=null,X},P0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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 X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),p7=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var j;try{typeof window<"u"&&typeof window.Buffer<"u"?j=window.Buffer:j=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,P,W=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)P=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)P=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function z(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,P=0,W;if(Y==="be")for(H=K.length-1;H>=X;H-=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8}this.strip()};function V(K,X,Y,H){for(var Q=0,P=Math.min(K.length,Y),W=X;W<P;W++){var $=K.charCodeAt(W)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var P=K.length-Y,W=P%H,$=Math.min(P,P-W)+Y,C=0,J=Y;J<$;J+=H)C=V(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(W!==0){var R=1;for(C=V(K,J,K.length,X),J=0;J<W;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Z=["","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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,P=0;P<this.length;P++){var W=this.words[P],$=((W<<H|Q)&16777215).toString(16);Q=W>>>24-H&16777215,Q!==0||P!==this.length-1?Y=Z[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,P--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=T[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=Z[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof j<"u"),this.toArrayLike(j,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var P=X==="le",W=new K(Q),$,C,J=this.clone();if(P){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[C]=$;for(;C<Q;C++)W[C]=0}else{for(C=0;C<Q-H;C++)W[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[Q-C-1]=$}return W},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function U(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,P=0;P<H.length;P++)X=(Y.words[P]|0)+(H.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;for(;Q!==0&&P<Y.length;P++)X=(Y.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;P<Y.length;P++)this.words[P]=Y.words[P];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var P=0,W=0;W<Q.length;W++)X=(H.words[W]|0)-(Q.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;for(;P!==0&&W<H.length;W++)X=(H.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;if(P===0&&W<H.length&&H!==this)for(;W<H.length;W++)this.words[W]=H.words[W];return this.length=Math.max(this.length,W),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,P=X.words[0]|0,W=Q*P,$=W&67108863,C=W/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,P=X.words[s]|0,W=Q*P+L,R+=W/67108864|0,L=W&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,P=Y.words,W=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,a=u>>>13,V0=H[3]|0,K0=V0&8191,Q0=V0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,U0=w0&8191,W0=w0>>>13,c0=H[8]|0,O=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,Y0=z0&8191,Z0=z0>>>13,b0=Q[1]|0,F0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,O0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,W5=Q[7]|0,E0=W5&8191,S0=W5>>>13,Z5=Q[8]|0,x0=Z5&8191,A0=Z5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,Z0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,Z0);var Q5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,Z0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,Z0),$=$+Math.imul(L,F0)|0,C=C+Math.imul(L,j0)|0,C=C+Math.imul(_,F0)|0,J=J+Math.imul(_,j0)|0;var g0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,Z0),C=C+Math.imul(a,Y0)|0,J=Math.imul(a,Z0),$=$+Math.imul(r,F0)|0,C=C+Math.imul(r,j0)|0,C=C+Math.imul(X0,F0)|0,J=J+Math.imul(X0,j0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,Z0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,Z0),$=$+Math.imul(d,F0)|0,C=C+Math.imul(d,j0)|0,C=C+Math.imul(a,F0)|0,J=J+Math.imul(a,j0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,O0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,O0)|0;var h0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,Z0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,Z0),$=$+Math.imul(K0,F0)|0,C=C+Math.imul(K0,j0)|0,C=C+Math.imul(Q0,F0)|0,J=J+Math.imul(Q0,j0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(a,D0)|0,J=J+Math.imul(a,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,O0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,O0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,Z0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,Z0),$=$+Math.imul(q,F0)|0,C=C+Math.imul(q,j0)|0,C=C+Math.imul(m,F0)|0,J=J+Math.imul(m,j0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,O0)|0,C=C+Math.imul(a,T0)|0,J=J+Math.imul(a,O0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,Z0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,Z0),$=$+Math.imul(C0,F0)|0,C=C+Math.imul(C0,j0)|0,C=C+Math.imul(t,F0)|0,J=J+Math.imul(t,j0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,O0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,O0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(a,L0)|0,J=J+Math.imul(a,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(U0,Y0),C=Math.imul(U0,Z0),C=C+Math.imul(W0,Y0)|0,J=Math.imul(W0,Z0),$=$+Math.imul($0,F0)|0,C=C+Math.imul($0,j0)|0,C=C+Math.imul(J0,F0)|0,J=J+Math.imul(J0,j0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,O0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,O0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(a,k0)|0,J=J+Math.imul(a,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(O,Y0),C=Math.imul(O,Z0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,Z0),$=$+Math.imul(U0,F0)|0,C=C+Math.imul(U0,j0)|0,C=C+Math.imul(W0,F0)|0,J=J+Math.imul(W0,j0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,O0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,O0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(a,B0)|0,J=J+Math.imul(a,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,Z0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,Z0),$=$+Math.imul(O,F0)|0,C=C+Math.imul(O,j0)|0,C=C+Math.imul(B,F0)|0,J=J+Math.imul(B,j0)|0,$=$+Math.imul(U0,D0)|0,C=C+Math.imul(U0,N0)|0,C=C+Math.imul(W0,D0)|0,J=J+Math.imul(W0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,O0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,O0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(a,E0)|0,J=J+Math.imul(a,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,F0),C=Math.imul(h,j0),C=C+Math.imul(o,F0)|0,J=Math.imul(o,j0),$=$+Math.imul(O,D0)|0,C=C+Math.imul(O,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(U0,T0)|0,C=C+Math.imul(U0,O0)|0,C=C+Math.imul(W0,T0)|0,J=J+Math.imul(W0,O0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(a,x0)|0,J=J+Math.imul(a,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(O,T0)|0,C=C+Math.imul(O,O0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,O0)|0,$=$+Math.imul(U0,L0)|0,C=C+Math.imul(U0,I0)|0,C=C+Math.imul(W0,L0)|0,J=J+Math.imul(W0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(a,v0)|0,J=J+Math.imul(a,M0)|0;var i0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,O0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,O0),$=$+Math.imul(O,L0)|0,C=C+Math.imul(O,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(U0,k0)|0,C=C+Math.imul(U0,q0)|0,C=C+Math.imul(W0,k0)|0,J=J+Math.imul(W0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(O,k0)|0,C=C+Math.imul(O,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(U0,B0)|0,C=C+Math.imul(U0,R0)|0,C=C+Math.imul(W0,B0)|0,J=J+Math.imul(W0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(O,B0)|0,C=C+Math.imul(O,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(U0,E0)|0,C=C+Math.imul(U0,S0)|0,C=C+Math.imul(W0,E0)|0,J=J+Math.imul(W0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(O,E0)|0,C=C+Math.imul(O,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(U0,x0)|0,C=C+Math.imul(U0,A0)|0,C=C+Math.imul(W0,x0)|0,J=J+Math.imul(W0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(O,x0)|0,C=C+Math.imul(O,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(U0,v0)|0,C=C+Math.imul(U0,M0)|0,C=C+Math.imul(W0,v0)|0,J=J+Math.imul(W0,M0)|0;var X5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(O,v0)|0,C=C+Math.imul(O,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(W+$|0)+((C&8191)<<13)|0;return W=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=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]=C5,P[16]=X5,P[17]=H5,P[18]=Y5,W!==0&&(P[19]=W,Y.length++),Y};Math.imul||(k=D);function v(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,P=0;P<Y.length-1;P++){var W=Q;Q=0;for(var $=H&67108863,C=Math.min(P,X.length-1),J=Math.max(0,P-K.length+1);J<=C;J++){var R=P-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;W=W+(s/67108864|0)|0,r=r+$|0,$=r&67108863,W=W+(r>>>26)|0,Q+=W>>>26,W&=67108863}Y.words[P]=$,H=W,W=Q}return H!==0?Y.words[P]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new A;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=v(this,K,X):Y=x(this,K,X),Y};function A(K,X){this.x=K,this.y=X}A.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},A.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},A.prototype.permute=function(K,X,Y,H,Q,P){for(var W=0;W<P;W++)H[W]=X[K[W]],Q[W]=Y[K[W]]},A.prototype.transform=function(K,X,Y,H,Q,P){this.permute(P,K,X,Y,H,Q);for(var W=1;W<Q;W<<=1)for(var $=W<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<W;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+W],d=H[R+s+W],a=L*u-_*d;d=L*d+_*u,u=a,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+W]=r-u,H[R+s+W]=X0-d,s!==$&&(a=C*L-J*_,_=C*_+J*L,L=a)}},A.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},A.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},A.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},A.prototype.convert13b=function(K,X,Y,H){for(var Q=0,P=0;P<X;P++)Q=Q+(K[P]|0),Y[2*P]=Q&8191,Q=Q>>>13,Y[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*X;P<H;++P)Y[P]=0;F(Q===0),F((Q&-8192)===0)},A.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},A.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),P=this.stub(H),W=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,W,H),this.convert13b(X.words,X.length,J,H),this.transform(W,P,$,C,H,Q),this.transform(J,P,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,P,H,Q),this.conjugate(_,P,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=U(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var P=0;for(Q=0;Q<this.length;Q++){var W=this.words[Q]&H,$=(this.words[Q]|0)-W<<X;this.words[Q]=$|P,P=W>>>26-X}P&&(this.words[Q]=P,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),W=67108863^67108863>>>Q<<Q,$=Y;if(H-=P,H=Math.max(0,H),$){for(var C=0;C<P;C++)$.words[C]=this.words[C];$.length=P}if(P!==0)if(this.length>P)for(this.length-=P,C=0;C<this.length;C++)this.words[C]=this.words[C+P];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&W}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var P,W=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+Y]|0)+W;var $=(K.words[Q]|0)*X;P-=$&67108863,W=(P>>26)-($/67108864|0),this.words[Q+Y]=P&67108863}for(;Q<this.length-Y;Q++)P=(this.words[Q+Y]|0)+W,W=P>>26,this.words[Q+Y]=P&67108863;if(W===0)return this.strip();for(F(W===-1),W=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+W,W=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,P=Q.words[Q.length-1]|0,W=this._countBits(P);Y=26-W,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),P=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,X),X!=="mod"&&(H=P.div.neg()),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),X),X!=="mod"&&(H=P.div.neg()),{div:H,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),P=Y.cmp(H);return P<0||Q===1&&P===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=new G(0),W=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(P.isOdd()||W.isOdd())&&(P.iadd(C),W.isub(J)),P.iushrn(1),W.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(P),Q.isub(W)):(Y.isub(X),P.isub(H),W.isub(Q))}return{a:P,b:W,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var W=0,$=1;(X.words[0]&$)===0&&W<26;++W,$<<=1);if(W>0)for(X.iushrn(W);W-- >0;)H.isOdd()&&H.iadd(P),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var P=X;X=Y,Y=P}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,P=Y;Q!==0&&P<this.length;P++){var W=this.words[P]|0;W+=Q,Q=W>>>26,W&=67108863,this.words[P]=W}return Q!==0&&(this.words[P]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new f(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(X.words[X.length++]=P&Y,Q=10;Q<K.length;Q++){var W=K.words[Q]|0;K.words[Q-10]=(W&Y)<<4|P>>>22,P=W}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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function f(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.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,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},f.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},f.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},f.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},f.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},f.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},f.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},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 X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var P=new G(1).toRed(this),W=P.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(W)!==0;)C.redIAdd(W);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},f.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},f.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var P=H[0],W=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(P!==H[0]&&(P=this.sqr(P)),L===0&&W===0){$=0;continue}W<<=1,W|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(P=this.mul(P,H[W]),$=0,W=0)}C=26}return P},f.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},f.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.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 G(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 X=this.imod(K.mul(this.rinv));return X.red=null,X},P0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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 X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),b7=G0(()=>{}),q9=G0((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 G=new Uint8Array(S),j=0;j<G.length;j++)G[j]=this.rand.getByte();return G},typeof self=="object")self.crypto&&self.crypto.getRandomValues?M.prototype._rand=function(S){var G=new Uint8Array(S);return self.crypto.getRandomValues(G),G}:self.msCrypto&&self.msCrypto.getRandomValues?M.prototype._rand=function(S){var G=new Uint8Array(S);return self.msCrypto.getRandomValues(G),G}:typeof window=="object"&&(M.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(F=b7(),typeof F.randomBytes!="function")throw new Error("Not supported");M.prototype._rand=function(S){return F.randomBytes(S)}}catch{}var F}),O6=G0((l,g)=>{var E=p7(),M=q9();function F(S){this.rand=S||new M.Rand}g.exports=F,F.create=function(S){return new F(S)},F.prototype._randbelow=function(S){var G=S.bitLength(),j=Math.ceil(G/8);do var I=new E(this.rand.generate(j));while(I.cmp(S)>=0);return I},F.prototype._randrange=function(S,G){var j=G.sub(S);return S.add(this._randbelow(j))},F.prototype.test=function(S,G,j){var I=S.bitLength(),z=E.mont(S),V=new E(1).toRed(z);G||(G=Math.max(1,I/48|0));for(var Z=S.subn(1),T=0;!Z.testn(T);T++);for(var N=S.shrn(T),U=Z.toRed(z),D=!0;G>0;G--){var k=this._randrange(new E(2),Z);j&&j(k);var v=k.toRed(z).redPow(N);if(!(v.cmp(V)===0||v.cmp(U)===0)){for(var x=1;x<T;x++){if(v=v.redSqr(),v.cmp(V)===0)return!1;if(v.cmp(U)===0)break}if(x===T)return!1}}return D},F.prototype.getDivisor=function(S,G){var j=S.bitLength(),I=E.mont(S),z=new E(1).toRed(I);G||(G=Math.max(1,j/48|0));for(var V=S.subn(1),Z=0;!V.testn(Z);Z++);for(var T=S.shrn(Z),N=V.toRed(I);G>0;G--){var U=this._randrange(new E(2),V),D=S.gcd(U);if(D.cmpn(1)!==0)return D;var k=U.toRed(I).redPow(T);if(!(k.cmp(z)===0||k.cmp(N)===0)){for(var v=1;v<Z;v++){if(k=k.redSqr(),k.cmp(z)===0)return k.fromRed().subn(1).gcd(S);if(k.cmp(N)===0)break}if(v===Z)return k=k.redSqr(),k.fromRed().subn(1).gcd(S)}}return!1}}),T6=G0((l,g)=>{var E=g5();g.exports=c,c.simpleSieve=y,c.fermatTest=p;var M=z6(),F=new M(24),S=O6(),G=new S,j=new M(1),I=new M(2),z=new M(5),V=new M(16),Z=new M(8),T=new M(10),N=new M(3),U=new M(7),D=new M(11),k=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 H0=1,f=3;f<n;f+=2){for(var P0=Math.ceil(Math.sqrt(f)),K=0;K<H0&&i[K]<=P0&&f%i[K]!==0;K++);H0!==K&&i[K]<=P0||(i[H0++]=f)}return x=i,i}function y(n){for(var i=A(),H0=0;H0<i.length;H0++)if(n.modn(i[H0])===0)return n.cmpn(i[H0])===0;return!0}function p(n){var i=M.mont(n);return I.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 H0,f;;){for(H0=new M(E(Math.ceil(n/8)));H0.bitLength()>n;)H0.ishrn(1);if(H0.isEven()&&H0.iadd(j),H0.testn(1)||H0.iadd(I),i.cmp(I)){if(!i.cmp(z))for(;H0.mod(T).cmp(N);)H0.iadd(k)}else for(;H0.mod(F).cmp(D);)H0.iadd(k);if(f=H0.shrn(1),y(f)&&y(H0)&&p(f)&&p(H0)&&G.test(f)&&G.test(H0))return H0}}}),c7=G0((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"}}}),d7=G0((l,g)=>{var E=z6(),M=O6(),F=new M,S=new E(24),G=new E(11),j=new E(10),I=new E(3),z=new E(7),V=T6(),Z=g5();g.exports=k;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 U={};function D(x,A){var y=A.toString("hex"),p=[y,x.toString(16)].join("_");if(p in U)return U[p];var c=0;if(x.isEven()||!V.simpleSieve||!V.fermatTest(x)||!F.test(x))return c+=1,y==="02"||y==="05"?c+=8:c+=4,U[p]=c,c;F.test(x.shrn(1))||(c+=2);var n;switch(y){case"02":x.mod(S).cmp(G)&&(c+=8);break;case"05":n=x.mod(j),n.cmp(I)&&n.cmp(z)&&(c+=8);break;default:c+=4}return U[p]=c,c}function k(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(k.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=D(this.__prime,this.__gen)),this._primeCode}}),k.prototype.generateKeys=function(){return this._priv||(this._priv=new E(Z(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},k.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},k.prototype.getPublicKey=function(x){return v(this._pub,x)},k.prototype.getPrivateKey=function(x){return v(this._priv,x)},k.prototype.getPrime=function(x){return v(this.__prime,x)},k.prototype.getGenerator=function(x){return v(this._gen,x)},k.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}}),l7=G0((l)=>{var g=T6(),E=c7(),M=d7();function F(j){var I=new Buffer(E[j].prime,"hex"),z=new Buffer(E[j].gen,"hex");return new M(I,z)}var S={binary:!0,hex:!0,base64:!0};function G(j,I,z,V){return Buffer.isBuffer(I)||S[I]===void 0?G(j,"binary",I,z):(I=I||"binary",V=V||"binary",z=z||new Buffer([2]),Buffer.isBuffer(z)||(z=new Buffer(z,V)),typeof j=="number"?new M(g(j,z),z,!0):(Buffer.isBuffer(j)||(j=new Buffer(j,I)),new M(j,z,!0)))}l.DiffieHellmanGroup=l.createDiffieHellmanGroup=l.getDiffieHellman=F,l.createDiffieHellman=l.DiffieHellman=G}),D6=G0((l,g)=>{g.exports=S5().EventEmitter}),h7=G0((l,g)=>{function E(U,D){var k=Object.keys(U);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(U);D&&(v=v.filter(function(x){return Object.getOwnPropertyDescriptor(U,x).enumerable})),k.push.apply(k,v)}return k}function M(U){for(var D=1;D<arguments.length;D++){var k=arguments[D]!=null?arguments[D]:{};D%2?E(Object(k),!0).forEach(function(v){F(U,v,k[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(k)):E(Object(k)).forEach(function(v){Object.defineProperty(U,v,Object.getOwnPropertyDescriptor(k,v))})}return U}function F(U,D,k){return D in U?Object.defineProperty(U,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):U[D]=k,U}function S(U,D){if(!(U instanceof D))throw new TypeError("Cannot call a class as a function")}function G(U,D){for(var k=0;k<D.length;k++){var v=D[k];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(U,v.key,v)}}function j(U,D,k){return D&&G(U.prototype,D),k&&G(U,k),U}var I=U5(),z=I.Buffer,V=i5(),Z=V.inspect,T=Z&&Z.custom||"inspect";function N(U,D,k){z.prototype.copy.call(U,D,k)}g.exports=function(){function U(){S(this,U),this.head=null,this.tail=null,this.length=0}return j(U,[{key:"push",value:function(D){var k={data:D,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(D){var k={data:D,next:this.head};this.length===0&&(this.tail=k),this.head=k,++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 k=this.head,v=""+k.data;k=k.next;)v+=D+k.data;return v}},{key:"concat",value:function(D){if(this.length===0)return z.alloc(0);for(var k=z.allocUnsafe(D>>>0),v=this.head,x=0;v;)N(v.data,k,x),x+=v.data.length,v=v.next;return k}},{key:"consume",value:function(D,k){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=k?this._getString(D):this._getBuffer(D),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var k=this.head,v=1,x=k.data;for(D-=x.length;k=k.next;){var A=k.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,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=A.slice(y));break}++v}return this.length-=v,x}},{key:"_getBuffer",value:function(D){var k=z.allocUnsafe(D),v=this.head,x=1;for(v.data.copy(k),D-=v.data.length;v=v.next;){var A=v.data,y=D>A.length?A.length:D;if(A.copy(k,k.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,k}},{key:T,value:function(D,k){return Z(this,M({},k,{depth:0,customInspect:!1}))}}]),U}()}),N6=G0((l,g)=>{function E(I,z){var V=this,Z=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return Z||T?(z?z(I):I&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(G,this,I)):process.nextTick(G,this,I)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(I||null,function(N){!z&&N?V._writableState?V._writableState.errorEmitted?process.nextTick(F,V):(V._writableState.errorEmitted=!0,process.nextTick(M,V,N)):process.nextTick(M,V,N):z?(process.nextTick(F,V),z(N)):process.nextTick(F,V)}),this)}function M(I,z){G(I,z),F(I)}function F(I){I._writableState&&!I._writableState.emitClose||I._readableState&&!I._readableState.emitClose||I.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 G(I,z){I.emit("error",z)}function j(I,z){var{_readableState:V,_writableState:Z}=I;V&&V.autoDestroy||Z&&Z.autoDestroy?I.destroy(z):I.emit("error",z)}g.exports={destroy:E,undestroy:S,errorOrDestroy:j}}),c5=G0((l,g)=>{function E(z,V){z.prototype=Object.create(V.prototype),z.prototype.constructor=z,z.__proto__=V}var M={};function F(z,V,Z){Z||(Z=Error);function T(U,D,k){return typeof V=="string"?V:V(U,D,k)}var N=function(U){E(D,U);function D(k,v,x){return U.call(this,T(k,v,x))||this}return D}(Z);N.prototype.name=Z.name,N.prototype.code=z,M[z]=N}function S(z,V){if(Array.isArray(z)){var Z=z.length;return z=z.map(function(T){return String(T)}),Z>2?"one of ".concat(V," ").concat(z.slice(0,Z-1).join(", "),", or ")+z[Z-1]:Z===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 G(z,V,Z){return z.substr(!Z||Z<0?0:+Z,V.length)===V}function j(z,V,Z){return(Z===void 0||Z>z.length)&&(Z=z.length),z.substring(Z-V.length,Z)===V}function I(z,V,Z){return typeof Z!="number"&&(Z=0),Z+V.length>z.length?!1:z.indexOf(V,Z)!==-1}F("ERR_INVALID_OPT_VALUE",function(z,V){return'The value "'+V+'" is invalid for option "'+z+'"'},TypeError),F("ERR_INVALID_ARG_TYPE",function(z,V,Z){var T;typeof V=="string"&&G(V,"not ")?(T="must not be",V=V.replace(/^not /,"")):T="must be";var N;if(j(z," argument"))N="The ".concat(z," ").concat(T," ").concat(S(V,"type"));else{var U=I(z,".")?"property":"argument";N='The "'.concat(z,'" ').concat(U," ").concat(T," ").concat(S(V,"type"))}return N+=". Received type ".concat(typeof Z),N},TypeError),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),F("ERR_METHOD_NOT_IMPLEMENTED",function(z){return"The "+z+" method is not implemented"}),F("ERR_STREAM_PREMATURE_CLOSE","Premature close"),F("ERR_STREAM_DESTROYED",function(z){return"Cannot call "+z+" after a stream was destroyed"}),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),F("ERR_STREAM_WRITE_AFTER_END","write after end"),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_UNKNOWN_ENCODING",function(z){return"Unknown encoding: "+z},TypeError),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=M}),L6=G0((l,g)=>{var E=c5().codes.ERR_INVALID_OPT_VALUE;function M(S,G,j){return S.highWaterMark!=null?S.highWaterMark:G?S[j]:null}function F(S,G,j,I){var z=M(G,I,j);if(z!=null){if(!(isFinite(z)&&Math.floor(z)===z)||z<0){var V=I?j:"highWaterMark";throw new E(V,z)}return Math.floor(z)}return S.objectMode?16:16384}g.exports={getHighWaterMark:F}}),I6=G0((l,g)=>{g.exports=f;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){X0(d,u)}}var M;f.WritableState=i;var F={deprecate:l9()},S=D6(),G=U5().Buffer,j=global.Uint8Array||function(){};function I(u){return G.from(u)}function z(u){return G.isBuffer(u)||u instanceof j}var V=N6(),Z=L6(),T=Z.getHighWaterMark,N=c5().codes,U=N.ERR_INVALID_ARG_TYPE,D=N.ERR_METHOD_NOT_IMPLEMENTED,k=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){W(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:F.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H0=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(u){return H0.call(this,u)?!0:this!==f?!1:u&&u._writableState instanceof i}})):H0=function(u){return u instanceof this};function f(u){M=M||y5();var d=this instanceof M;if(!d&&!H0.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 U("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&&!G.isBuffer(u)&&(u=I(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=Y(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&&J(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 X(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=G.from(d,a)),d}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(u,d,a,V0,K0,Q0){if(!a){var w=X(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 H(u,d,!1,q,V0,K0,Q0);return m}function H(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 W(u,d){var a=u._writableState,V0=a.sync,K0=a.writecb;if(typeof K0!="function")throw new k;if(P(a),d)Q(u,a,V0,d,K0);else{var Q0=R(a)||u.destroyed;!Q0&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&J(u,a),V0?process.nextTick($,u,a,Q0,K0):$(u,a,Q0,K0)}}function $(u,d,a,V0){a||C(u,d),d.pendingcb--,V0(),s(u,d)}function C(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function J(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,H(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:C0}=a,t=d.objectMode?1:m.length;if(H(u,d,!1,t,m,e,C0),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 X0(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=G0((l,g)=>{var E=Object.keys||function(Z){var T=[];for(var N in Z)T.push(N);return T};g.exports=I;var M=k6(),F=I6();p0()(I,M);for(S=E(F.prototype),j=0;j<S.length;j++)G=S[j],I.prototype[G]||(I.prototype[G]=F.prototype[G]);var S,G,j;function I(Z){if(!(this instanceof I))return new I(Z);M.call(this,Z),F.call(this,Z),this.allowHalfOpen=!0,Z&&(Z.readable===!1&&(this.readable=!1),Z.writable===!1&&(this.writable=!1),Z.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||process.nextTick(V,this)}function V(Z){Z.end()}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(Z){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=Z,this._writableState.destroyed=Z)}})}),B9=G0((l,g)=>{var E=c5().codes.ERR_STREAM_PREMATURE_CLOSE;function M(j){var I=!1;return function(){if(!I){I=!0;for(var z=arguments.length,V=new Array(z),Z=0;Z<z;Z++)V[Z]=arguments[Z];j.apply(this,V)}}}function F(){}function S(j){return j.setHeader&&typeof j.abort=="function"}function G(j,I,z){if(typeof I=="function")return G(j,null,I);I||(I={}),z=M(z||F);var V=I.readable||I.readable!==!1&&j.readable,Z=I.writable||I.writable!==!1&&j.writable,T=function(){j.writable||U()},N=j._writableState&&j._writableState.finished,U=function(){Z=!1,N=!0,V||z.call(j)},D=j._readableState&&j._readableState.endEmitted,k=function(){V=!1,D=!0,Z||z.call(j)},v=function(y){z.call(j,y)},x=function(){var y;if(V&&!D)return(!j._readableState||!j._readableState.ended)&&(y=new E),z.call(j,y);if(Z&&!N)return(!j._writableState||!j._writableState.ended)&&(y=new E),z.call(j,y)},A=function(){j.req.on("finish",U)};return S(j)?(j.on("complete",U),j.on("abort",x),j.req?A():j.on("request",A)):Z&&!j._writableState&&(j.on("end",T),j.on("close",T)),j.on("end",k),j.on("finish",U),I.error!==!1&&j.on("error",v),j.on("close",x),function(){j.removeListener("complete",U),j.removeListener("abort",x),j.removeListener("request",A),j.req&&j.req.removeListener("finish",U),j.removeListener("end",T),j.removeListener("close",T),j.removeListener("finish",U),j.removeListener("end",k),j.removeListener("error",v),j.removeListener("close",x)}}g.exports=G}),u7=G0((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 F=B9(),S=Symbol("lastResolve"),G=Symbol("lastReject"),j=Symbol("error"),I=Symbol("ended"),z=Symbol("lastPromise"),V=Symbol("handlePromise"),Z=Symbol("stream");function T(A,y){return{value:A,done:y}}function N(A){var y=A[S];if(y!==null){var p=A[Z].read();p!==null&&(A[z]=null,A[S]=null,A[G]=null,y(T(p,!1)))}}function U(A){process.nextTick(N,A)}function D(A,y){return function(p,c){A.then(function(){if(y[I]){p(T(void 0,!0));return}y[V](p,c)},c)}}var k=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((E={get stream(){return this[Z]},next:function(){var A=this,y=this[j];if(y!==null)return Promise.reject(y);if(this[I])return Promise.resolve(T(void 0,!0));if(this[Z].destroyed)return new Promise(function(i,H0){process.nextTick(function(){A[j]?H0(A[j]):i(T(void 0,!0))})});var p=this[z],c;if(p)c=new Promise(D(p,this));else{var n=this[Z].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[Z].destroy(null,function(c){if(c){p(c);return}y(T(void 0,!0))})})}),E),k),x=function(A){var y,p=Object.create(v,(y={},M(y,Z,{value:A,writable:!0}),M(y,S,{value:null,writable:!0}),M(y,G,{value:null,writable:!0}),M(y,j,{value:null,writable:!0}),M(y,I,{value:A._readableState.endEmitted,writable:!0}),M(y,V,{value:function(c,n){var i=p[Z].read();i?(p[z]=null,p[S]=null,p[G]=null,c(T(i,!1))):(p[S]=c,p[G]=n)},writable:!0}),y));return p[z]=null,F(A,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[G];n!==null&&(p[z]=null,p[S]=null,p[G]=null,n(c)),p[j]=c;return}var i=p[S];i!==null&&(p[z]=null,p[S]=null,p[G]=null,i(T(void 0,!0))),p[I]=!0}),A.on("readable",U.bind(null,p)),p};g.exports=x}),o7=G0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),k6=G0((l,g)=>{g.exports=K;var E;K.ReadableState=P0;var M=S5().EventEmitter,F=function(w,q){return w.listeners(q).length},S=D6(),G=U5().Buffer,j=global.Uint8Array||function(){};function I(w){return G.from(w)}function z(w){return G.isBuffer(w)||w instanceof j}var V=i5(),Z;V&&V.debuglog?Z=V.debuglog("stream"):Z=function(){};var T=h7(),N=N6(),U=L6(),D=U.getHighWaterMark,k=c5().codes,v=k.ERR_INVALID_ARG_TYPE,x=k.ERR_STREAM_PUSH_AFTER_EOF,A=k.ERR_METHOD_NOT_IMPLEMENTED,y=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(K,S);var i=N.errorOrDestroy,H0=["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=(a5(),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=G.from(w,q),q=""),e=!0),X(this,w,q,!1,e)},K.prototype.unshift=function(w){return X(this,w,null,!0,!1)};function X(w,q,m,e,C0){Z("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,$(w,t);else{var _0;if(C0||(_0=H(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==G.prototype&&(q=I(q)),e)t.endEmitted?i(w,new y):Y(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?Y(w,t,q,!1):R(w,t)):Y(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function Y(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&&C(w)),R(w,q)}function H(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=(a5(),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 W(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){Z("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 Z("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?V0(this):C(this),null;if(w=W(w,q),w===0&&q.ended)return q.length===0&&V0(this),null;var e=q.needReadable;Z("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,Z("length less than watermark",e)),q.ended||q.reading?(e=!1,Z("reading or ended",e)):e&&(Z("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=W(m,q)));var C0;return w>0?C0=a(w,q):C0=null,C0===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)),C0!==null&&this.emit("data",C0),C0};function $(w,q){if(Z("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?C(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,J(w)))}}function C(w){var q=w._readableState;Z("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(Z("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(J,w))}function J(w){var q=w._readableState;Z("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(Z("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,Z("pipe count=%d opts=%j",e.pipesCount,q);var C0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=C0?$0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){Z("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,U0())}function $0(){Z("onend"),w.end()}var J0=_(m);w.on("drain",J0);var w0=!1;function U0(){Z("cleanup"),w.removeListener("close",O),w.removeListener("finish",B),w.removeListener("drain",J0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",$0),m.removeListener("end",b),m.removeListener("data",W0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&J0()}m.on("data",W0);function W0(h){Z("ondata");var o=w.write(h);Z("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&Q0(e.pipes,w)!==-1)&&!w0&&(Z("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){Z("onerror",h),b(),w.removeListener("error",c0),F(w,"error")===0&&i(w,h)}f(w,"error",c0);function O(){w.removeListener("finish",B),b()}w.once("close",O);function B(){Z("onfinish"),w.removeListener("close",O),b()}w.once("finish",B);function b(){Z("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||(Z("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;Z("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&F(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:C0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<C0;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,Z("on readable",e.length,e.reading),e.length?C(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){Z("readable nexttick read 0"),w.read(0)}K.prototype.resume=function(){var w=this._readableState;return w.flowing||(Z("resume"),w.flowing=!w.readableListening,X0(this,w)),w.paused=!1,this};function X0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){Z("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 Z("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Z("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for(Z("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(Z("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(Z("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var $0=q.push(_0);$0||(e=!0,w.pause())}});for(var C0 in w)this[C0]===void 0&&typeof w[C0]=="function"&&(this[C0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(C0));for(var t=0;t<H0.length;t++)w.on(H0[t],this.emit.bind(this,H0[t]));return this._read=function(_0){Z("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=u7()),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;Z("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(K0,q,w))}function K0(w,q){if(Z("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=o7()),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}}),q6=G0((l,g)=>{g.exports=z;var E=c5().codes,M=E.ERR_METHOD_NOT_IMPLEMENTED,F=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,G=E.ERR_TRANSFORM_WITH_LENGTH_0,j=y5();p0()(z,j);function I(T,N){var U=this._transformState;U.transforming=!1;var D=U.writecb;if(D===null)return this.emit("error",new F);U.writechunk=null,U.writecb=null,N!=null&&this.push(N),D(T);var k=this._readableState;k.reading=!1,(k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}function z(T){if(!(this instanceof z))return new z(T);j.call(this,T),this._transformState={afterTransform:I.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,U){Z(T,N,U)}):Z(this,null,null)}z.prototype.push=function(T,N){return this._transformState.needTransform=!1,j.prototype.push.call(this,T,N)},z.prototype._transform=function(T,N,U){U(new M("_transform()"))},z.prototype._write=function(T,N,U){var D=this._transformState;if(D.writecb=U,D.writechunk=T,D.writeencoding=N,!D.transforming){var k=this._readableState;(D.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.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){j.prototype._destroy.call(this,T,function(U){N(U)})};function Z(T,N,U){if(N)return T.emit("error",N);if(U!=null&&T.push(U),T._writableState.length)throw new G;if(T._transformState.transforming)throw new S;return T.push(null)}}),s7=G0((l,g)=>{g.exports=M;var E=q6();p0()(M,E);function M(F){if(!(this instanceof M))return new M(F);E.call(this,F)}M.prototype._transform=function(F,S,G){G(null,F)}}),a7=G0((l,g)=>{var E;function M(U){var D=!1;return function(){D||(D=!0,U.apply(void 0,arguments))}}var F=c5().codes,S=F.ERR_MISSING_ARGS,G=F.ERR_STREAM_DESTROYED;function j(U){if(U)throw U}function I(U){return U.setHeader&&typeof U.abort=="function"}function z(U,D,k,v){v=M(v);var x=!1;U.on("close",function(){x=!0}),E===void 0&&(E=B9()),E(U,{readable:D,writable:k},function(y){if(y)return v(y);x=!0,v()});var A=!1;return function(y){if(!x&&!A){if(A=!0,I(U))return U.abort();if(typeof U.destroy=="function")return U.destroy();v(y||new G("pipe"))}}}function V(U){U()}function Z(U,D){return U.pipe(D)}function T(U){return!U.length||typeof U[U.length-1]!="function"?j:U.pop()}function N(){for(var U=arguments.length,D=new Array(U),k=0;k<U;k++)D[k]=arguments[k];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(Z)}g.exports=N}),f7=G0((l,g)=>{l=g.exports=k6(),l.Stream=l,l.Readable=l,l.Writable=I6(),l.Duplex=y5(),l.Transform=q6(),l.PassThrough=s7(),l.finished=B9(),l.pipeline=a7()}),R9=G0((l,g)=>{(function(E,M){function F(H,Q){if(!H)throw new Error(Q||"Assertion failed")}function S(H,Q){H.super_=Q;var P=function(){};P.prototype=Q.prototype,H.prototype=new P,H.prototype.constructor=H}function G(H,Q,P){if(G.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((Q==="le"||Q==="be")&&(P=Q,Q=10),this._init(H||0,Q||10,P||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var j;try{typeof window<"u"&&typeof window.Buffer<"u"?j=window.Buffer:j=M5().Buffer}catch{}G.isBN=function(H){return H instanceof G?!0:H!==null&&typeof H=="object"&&H.constructor.wordSize===G.wordSize&&Array.isArray(H.words)},G.max=function(H,Q){return H.cmp(Q)>0?H:Q},G.min=function(H,Q){return H.cmp(Q)<0?H:Q},G.prototype._init=function(H,Q,P){if(typeof H=="number")return this._initNumber(H,Q,P);if(typeof H=="object")return this._initArray(H,Q,P);Q==="hex"&&(Q=16),F(Q===(Q|0)&&Q>=2&&Q<=36),H=H.toString().replace(/\s+/g,"");var W=0;H[0]==="-"&&(W++,this.negative=1),W<H.length&&(Q===16?this._parseHex(H,W,P):(this._parseBase(H,Q,W),P==="le"&&this._initArray(this.toArray(),Q,P)))},G.prototype._initNumber=function(H,Q,P){H<0&&(this.negative=1,H=-H),H<67108864?(this.words=[H&67108863],this.length=1):H<4503599627370496?(this.words=[H&67108863,H/67108864&67108863],this.length=2):(F(H<9007199254740992),this.words=[H&67108863,H/67108864&67108863,1],this.length=3),P==="le"&&this._initArray(this.toArray(),Q,P)},G.prototype._initArray=function(H,Q,P){if(F(typeof H.length=="number"),H.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(H.length/3),this.words=new Array(this.length);for(var W=0;W<this.length;W++)this.words[W]=0;var $,C,J=0;if(P==="be")for(W=H.length-1,$=0;W>=0;W-=3)C=H[W]|H[W-1]<<8|H[W-2]<<16,this.words[$]|=C<<J&67108863,this.words[$+1]=C>>>26-J&67108863,J+=24,J>=26&&(J-=26,$++);else if(P==="le")for(W=0,$=0;W<H.length;W+=3)C=H[W]|H[W+1]<<8|H[W+2]<<16,this.words[$]|=C<<J&67108863,this.words[$+1]=C>>>26-J&67108863,J+=24,J>=26&&(J-=26,$++);return this._strip()};function I(H,Q){var P=H.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;F(!1,"Invalid character in "+H)}function z(H,Q,P){var W=I(H,P);return P-1>=Q&&(W|=I(H,P-1)<<4),W}G.prototype._parseHex=function(H,Q,P){this.length=Math.ceil((H.length-Q)/6),this.words=new Array(this.length);for(var W=0;W<this.length;W++)this.words[W]=0;var $=0,C=0,J;if(P==="be")for(W=H.length-1;W>=Q;W-=2)J=z(H,Q,W)<<$,this.words[C]|=J&67108863,$>=18?($-=18,C+=1,this.words[C]|=J>>>26):$+=8;else{var R=H.length-Q;for(W=R%2===0?Q+1:Q;W<H.length;W+=2)J=z(H,Q,W)<<$,this.words[C]|=J&67108863,$>=18?($-=18,C+=1,this.words[C]|=J>>>26):$+=8}this._strip()};function V(H,Q,P,W){for(var $=0,C=0,J=Math.min(H.length,P),R=Q;R<J;R++){var L=H.charCodeAt(R)-48;$*=W,L>=49?C=L-49+10:L>=17?C=L-17+10:C=L,F(L>=0&&C<W,"Invalid character"),$+=C}return $}G.prototype._parseBase=function(H,Q,P){this.words=[0],this.length=1;for(var W=0,$=1;$<=67108863;$*=Q)W++;W--,$=$/Q|0;for(var C=H.length-P,J=C%W,R=Math.min(C,C-J)+P,L=0,_=P;_<R;_+=W)L=V(H,_,_+W,Q),this.imuln($),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L);if(J!==0){var s=1;for(L=V(H,_,H.length,Q),_=0;_<J;_++)s*=Q;this.imuln(s),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L)}this._strip()},G.prototype.copy=function(H){H.words=new Array(this.length);for(var Q=0;Q<this.length;Q++)H.words[Q]=this.words[Q];H.length=this.length,H.negative=this.negative,H.red=this.red};function Z(H,Q){H.words=Q.words,H.length=Q.length,H.negative=Q.negative,H.red=Q.red}if(G.prototype._move=function(H){Z(H,this)},G.prototype.clone=function(){var H=new G(null);return this.copy(H),H},G.prototype._expand=function(H){for(;this.length<H;)this.words[this.length++]=0;return this},G.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{G.prototype[Symbol.for("nodejs.util.inspect.custom")]=T}catch{G.prototype.inspect=T}else G.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"],U=[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];G.prototype.toString=function(H,Q){H=H||10,Q=Q|0||1;var P;if(H===16||H==="hex"){P="";for(var W=0,$=0,C=0;C<this.length;C++){var J=this.words[C],R=((J<<W|$)&16777215).toString(16);$=J>>>24-W&16777215,W+=2,W>=26&&(W-=26,C--),$!==0||C!==this.length-1?P=N[6-R.length]+R+P:P=R+P}for($!==0&&(P=$.toString(16)+P);P.length%Q!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}if(H===(H|0)&&H>=2&&H<=36){var L=U[H],_=D[H];P="";var s=this.clone();for(s.negative=0;!s.isZero();){var r=s.modrn(_).toString(H);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}F(!1,"Base should be between 2 and 36")},G.prototype.toNumber=function(){var H=this.words[0];return this.length===2?H+=this.words[1]*67108864:this.length===3&&this.words[2]===1?H+=4503599627370496+this.words[1]*67108864:this.length>2&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-H:H},G.prototype.toJSON=function(){return this.toString(16,2)},j&&(G.prototype.toBuffer=function(H,Q){return this.toArrayLike(j,H,Q)}),G.prototype.toArray=function(H,Q){return this.toArrayLike(Array,H,Q)};var k=function(H,Q){return H.allocUnsafe?H.allocUnsafe(Q):new H(Q)};G.prototype.toArrayLike=function(H,Q,P){this._strip();var W=this.byteLength(),$=P||Math.max(1,W);F(W<=$,"byte array longer than desired length"),F($>0,"Requested array length <= 0");var C=k(H,$),J=Q==="le"?"LE":"BE";return this["_toArrayLike"+J](C,W),C},G.prototype._toArrayLikeLE=function(H,Q){for(var P=0,W=0,$=0,C=0;$<this.length;$++){var J=this.words[$]<<C|W;H[P++]=J&255,P<H.length&&(H[P++]=J>>8&255),P<H.length&&(H[P++]=J>>16&255),C===6?(P<H.length&&(H[P++]=J>>24&255),W=0,C=0):(W=J>>>24,C+=2)}if(P<H.length)for(H[P++]=W;P<H.length;)H[P++]=0},G.prototype._toArrayLikeBE=function(H,Q){for(var P=H.length-1,W=0,$=0,C=0;$<this.length;$++){var J=this.words[$]<<C|W;H[P--]=J&255,P>=0&&(H[P--]=J>>8&255),P>=0&&(H[P--]=J>>16&255),C===6?(P>=0&&(H[P--]=J>>24&255),W=0,C=0):(W=J>>>24,C+=2)}if(P>=0)for(H[P--]=W;P>=0;)H[P--]=0},Math.clz32?G.prototype._countBits=function(H){return 32-Math.clz32(H)}:G.prototype._countBits=function(H){var Q=H,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},G.prototype._zeroBits=function(H){if(H===0)return 26;var Q=H,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},G.prototype.bitLength=function(){var H=this.words[this.length-1],Q=this._countBits(H);return(this.length-1)*26+Q};function v(H){for(var Q=new Array(H.bitLength()),P=0;P<Q.length;P++){var W=P/26|0,$=P%26;Q[P]=H.words[W]>>>$&1}return Q}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var H=0,Q=0;Q<this.length;Q++){var P=this._zeroBits(this.words[Q]);if(H+=P,P!==26)break}return H},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(H){return this.negative!==0?this.abs().inotn(H).iaddn(1):this.clone()},G.prototype.fromTwos=function(H){return this.testn(H-1)?this.notn(H).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(H){for(;this.length<H.length;)this.words[this.length++]=0;for(var Q=0;Q<H.length;Q++)this.words[Q]=this.words[Q]|H.words[Q];return this._strip()},G.prototype.ior=function(H){return F((this.negative|H.negative)===0),this.iuor(H)},G.prototype.or=function(H){return this.length>H.length?this.clone().ior(H):H.clone().ior(this)},G.prototype.uor=function(H){return this.length>H.length?this.clone().iuor(H):H.clone().iuor(this)},G.prototype.iuand=function(H){var Q;this.length>H.length?Q=H:Q=this;for(var P=0;P<Q.length;P++)this.words[P]=this.words[P]&H.words[P];return this.length=Q.length,this._strip()},G.prototype.iand=function(H){return F((this.negative|H.negative)===0),this.iuand(H)},G.prototype.and=function(H){return this.length>H.length?this.clone().iand(H):H.clone().iand(this)},G.prototype.uand=function(H){return this.length>H.length?this.clone().iuand(H):H.clone().iuand(this)},G.prototype.iuxor=function(H){var Q,P;this.length>H.length?(Q=this,P=H):(Q=H,P=this);for(var W=0;W<P.length;W++)this.words[W]=Q.words[W]^P.words[W];if(this!==Q)for(;W<Q.length;W++)this.words[W]=Q.words[W];return this.length=Q.length,this._strip()},G.prototype.ixor=function(H){return F((this.negative|H.negative)===0),this.iuxor(H)},G.prototype.xor=function(H){return this.length>H.length?this.clone().ixor(H):H.clone().ixor(this)},G.prototype.uxor=function(H){return this.length>H.length?this.clone().iuxor(H):H.clone().iuxor(this)},G.prototype.inotn=function(H){F(typeof H=="number"&&H>=0);var Q=Math.ceil(H/26)|0,P=H%26;this._expand(Q),P>0&&Q--;for(var W=0;W<Q;W++)this.words[W]=~this.words[W]&67108863;return P>0&&(this.words[W]=~this.words[W]&67108863>>26-P),this._strip()},G.prototype.notn=function(H){return this.clone().inotn(H)},G.prototype.setn=function(H,Q){F(typeof H=="number"&&H>=0);var P=H/26|0,W=H%26;return this._expand(P+1),Q?this.words[P]=this.words[P]|1<<W:this.words[P]=this.words[P]&~(1<<W),this._strip()},G.prototype.iadd=function(H){var Q;if(this.negative!==0&&H.negative===0)return this.negative=0,Q=this.isub(H),this.negative^=1,this._normSign();if(this.negative===0&&H.negative!==0)return H.negative=0,Q=this.isub(H),H.negative=1,Q._normSign();var P,W;this.length>H.length?(P=this,W=H):(P=H,W=this);for(var $=0,C=0;C<W.length;C++)Q=(P.words[C]|0)+(W.words[C]|0)+$,this.words[C]=Q&67108863,$=Q>>>26;for(;$!==0&&C<P.length;C++)Q=(P.words[C]|0)+$,this.words[C]=Q&67108863,$=Q>>>26;if(this.length=P.length,$!==0)this.words[this.length]=$,this.length++;else if(P!==this)for(;C<P.length;C++)this.words[C]=P.words[C];return this},G.prototype.add=function(H){var Q;return H.negative!==0&&this.negative===0?(H.negative=0,Q=this.sub(H),H.negative^=1,Q):H.negative===0&&this.negative!==0?(this.negative=0,Q=H.sub(this),this.negative=1,Q):this.length>H.length?this.clone().iadd(H):H.clone().iadd(this)},G.prototype.isub=function(H){if(H.negative!==0){H.negative=0;var Q=this.iadd(H);return H.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(H),this.negative=1,this._normSign();var P=this.cmp(H);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;var W,$;P>0?(W=this,$=H):(W=H,$=this);for(var C=0,J=0;J<$.length;J++)Q=(W.words[J]|0)-($.words[J]|0)+C,C=Q>>26,this.words[J]=Q&67108863;for(;C!==0&&J<W.length;J++)Q=(W.words[J]|0)+C,C=Q>>26,this.words[J]=Q&67108863;if(C===0&&J<W.length&&W!==this)for(;J<W.length;J++)this.words[J]=W.words[J];return this.length=Math.max(this.length,J),W!==this&&(this.negative=1),this._strip()},G.prototype.sub=function(H){return this.clone().isub(H)};function x(H,Q,P){P.negative=Q.negative^H.negative;var W=H.length+Q.length|0;P.length=W,W=W-1|0;var $=H.words[0]|0,C=Q.words[0]|0,J=$*C,R=J&67108863,L=J/67108864|0;P.words[0]=R;for(var _=1;_<W;_++){for(var s=L>>>26,r=L&67108863,X0=Math.min(_,Q.length-1),u=Math.max(0,_-H.length+1);u<=X0;u++){var d=_-u|0;$=H.words[d]|0,C=Q.words[u]|0,J=$*C+r,s+=J/67108864|0,r=J&67108863}P.words[_]=r|0,L=s|0}return L!==0?P.words[_]=L|0:P.length--,P._strip()}var A=function(H,Q,P){var W=H.words,$=Q.words,C=P.words,J=0,R,L,_,s=W[0]|0,r=s&8191,X0=s>>>13,u=W[1]|0,d=u&8191,a=u>>>13,V0=W[2]|0,K0=V0&8191,Q0=V0>>>13,w=W[3]|0,q=w&8191,m=w>>>13,e=W[4]|0,C0=e&8191,t=e>>>13,_0=W[5]|0,$0=_0&8191,J0=_0>>>13,w0=W[6]|0,U0=w0&8191,W0=w0>>>13,c0=W[7]|0,O=c0&8191,B=c0>>>13,b=W[8]|0,h=b&8191,o=b>>>13,z0=W[9]|0,Y0=z0&8191,Z0=z0>>>13,b0=$[0]|0,F0=b0&8191,j0=b0>>>13,y0=$[1]|0,D0=y0&8191,N0=y0>>>13,G5=$[2]|0,T0=G5&8191,O0=G5>>>13,l0=$[3]|0,L0=l0&8191,I0=l0>>>13,J5=$[4]|0,k0=J5&8191,q0=J5>>>13,P5=$[5]|0,B0=P5&8191,R0=P5>>>13,W5=$[6]|0,E0=W5&8191,S0=W5>>>13,Z5=$[7]|0,x0=Z5&8191,A0=Z5>>>13,j5=$[8]|0,v0=j5&8191,M0=j5>>>13,Q5=$[9]|0,g0=Q5&8191,m0=Q5>>>13;P.negative=H.negative^Q.negative,P.length=19,R=Math.imul(r,F0),L=Math.imul(r,j0),L=L+Math.imul(X0,F0)|0,_=Math.imul(X0,j0);var h0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(h0>>>26)|0,h0&=67108863,R=Math.imul(d,F0),L=Math.imul(d,j0),L=L+Math.imul(a,F0)|0,_=Math.imul(a,j0),R=R+Math.imul(r,D0)|0,L=L+Math.imul(r,N0)|0,L=L+Math.imul(X0,D0)|0,_=_+Math.imul(X0,N0)|0;var u0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(u0>>>26)|0,u0&=67108863,R=Math.imul(K0,F0),L=Math.imul(K0,j0),L=L+Math.imul(Q0,F0)|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(X0,T0)|0,_=_+Math.imul(X0,O0)|0;var o0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(o0>>>26)|0,o0&=67108863,R=Math.imul(q,F0),L=Math.imul(q,j0),L=L+Math.imul(m,F0)|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,I0)|0,L=L+Math.imul(X0,L0)|0,_=_+Math.imul(X0,I0)|0;var s0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(s0>>>26)|0,s0&=67108863,R=Math.imul(C0,F0),L=Math.imul(C0,j0),L=L+Math.imul(t,F0)|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,I0)|0,L=L+Math.imul(a,L0)|0,_=_+Math.imul(a,I0)|0,R=R+Math.imul(r,k0)|0,L=L+Math.imul(r,q0)|0,L=L+Math.imul(X0,k0)|0,_=_+Math.imul(X0,q0)|0;var a0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(a0>>>26)|0,a0&=67108863,R=Math.imul($0,F0),L=Math.imul($0,j0),L=L+Math.imul(J0,F0)|0,_=Math.imul(J0,j0),R=R+Math.imul(C0,D0)|0,L=L+Math.imul(C0,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,I0)|0,L=L+Math.imul(Q0,L0)|0,_=_+Math.imul(Q0,I0)|0,R=R+Math.imul(d,k0)|0,L=L+Math.imul(d,q0)|0,L=L+Math.imul(a,k0)|0,_=_+Math.imul(a,q0)|0,R=R+Math.imul(r,B0)|0,L=L+Math.imul(r,R0)|0,L=L+Math.imul(X0,B0)|0,_=_+Math.imul(X0,R0)|0;var f0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(f0>>>26)|0,f0&=67108863,R=Math.imul(U0,F0),L=Math.imul(U0,j0),L=L+Math.imul(W0,F0)|0,_=Math.imul(W0,j0),R=R+Math.imul($0,D0)|0,L=L+Math.imul($0,N0)|0,L=L+Math.imul(J0,D0)|0,_=_+Math.imul(J0,N0)|0,R=R+Math.imul(C0,T0)|0,L=L+Math.imul(C0,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,I0)|0,L=L+Math.imul(m,L0)|0,_=_+Math.imul(m,I0)|0,R=R+Math.imul(K0,k0)|0,L=L+Math.imul(K0,q0)|0,L=L+Math.imul(Q0,k0)|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(X0,E0)|0,_=_+Math.imul(X0,S0)|0;var n0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(n0>>>26)|0,n0&=67108863,R=Math.imul(O,F0),L=Math.imul(O,j0),L=L+Math.imul(B,F0)|0,_=Math.imul(B,j0),R=R+Math.imul(U0,D0)|0,L=L+Math.imul(U0,N0)|0,L=L+Math.imul(W0,D0)|0,_=_+Math.imul(W0,N0)|0,R=R+Math.imul($0,T0)|0,L=L+Math.imul($0,O0)|0,L=L+Math.imul(J0,T0)|0,_=_+Math.imul(J0,O0)|0,R=R+Math.imul(C0,L0)|0,L=L+Math.imul(C0,I0)|0,L=L+Math.imul(t,L0)|0,_=_+Math.imul(t,I0)|0,R=R+Math.imul(q,k0)|0,L=L+Math.imul(q,q0)|0,L=L+Math.imul(m,k0)|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(X0,x0)|0,_=_+Math.imul(X0,A0)|0;var r0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(r0>>>26)|0,r0&=67108863,R=Math.imul(h,F0),L=Math.imul(h,j0),L=L+Math.imul(o,F0)|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(U0,T0)|0,L=L+Math.imul(U0,O0)|0,L=L+Math.imul(W0,T0)|0,_=_+Math.imul(W0,O0)|0,R=R+Math.imul($0,L0)|0,L=L+Math.imul($0,I0)|0,L=L+Math.imul(J0,L0)|0,_=_+Math.imul(J0,I0)|0,R=R+Math.imul(C0,k0)|0,L=L+Math.imul(C0,q0)|0,L=L+Math.imul(t,k0)|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(X0,v0)|0,_=_+Math.imul(X0,M0)|0;var i0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(i0>>>26)|0,i0&=67108863,R=Math.imul(Y0,F0),L=Math.imul(Y0,j0),L=L+Math.imul(Z0,F0)|0,_=Math.imul(Z0,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(U0,L0)|0,L=L+Math.imul(U0,I0)|0,L=L+Math.imul(W0,L0)|0,_=_+Math.imul(W0,I0)|0,R=R+Math.imul($0,k0)|0,L=L+Math.imul($0,q0)|0,L=L+Math.imul(J0,k0)|0,_=_+Math.imul(J0,q0)|0,R=R+Math.imul(C0,B0)|0,L=L+Math.imul(C0,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(X0,g0)|0,_=_+Math.imul(X0,m0)|0;var t0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(t0>>>26)|0,t0&=67108863,R=Math.imul(Y0,D0),L=Math.imul(Y0,N0),L=L+Math.imul(Z0,D0)|0,_=Math.imul(Z0,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,I0)|0,L=L+Math.imul(B,L0)|0,_=_+Math.imul(B,I0)|0,R=R+Math.imul(U0,k0)|0,L=L+Math.imul(U0,q0)|0,L=L+Math.imul(W0,k0)|0,_=_+Math.imul(W0,q0)|0,R=R+Math.imul($0,B0)|0,L=L+Math.imul($0,R0)|0,L=L+Math.imul(J0,B0)|0,_=_+Math.imul(J0,R0)|0,R=R+Math.imul(C0,E0)|0,L=L+Math.imul(C0,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=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(e0>>>26)|0,e0&=67108863,R=Math.imul(Y0,T0),L=Math.imul(Y0,O0),L=L+Math.imul(Z0,T0)|0,_=Math.imul(Z0,O0),R=R+Math.imul(h,L0)|0,L=L+Math.imul(h,I0)|0,L=L+Math.imul(o,L0)|0,_=_+Math.imul(o,I0)|0,R=R+Math.imul(O,k0)|0,L=L+Math.imul(O,q0)|0,L=L+Math.imul(B,k0)|0,_=_+Math.imul(B,q0)|0,R=R+Math.imul(U0,B0)|0,L=L+Math.imul(U0,R0)|0,L=L+Math.imul(W0,B0)|0,_=_+Math.imul(W0,R0)|0,R=R+Math.imul($0,E0)|0,L=L+Math.imul($0,S0)|0,L=L+Math.imul(J0,E0)|0,_=_+Math.imul(J0,S0)|0,R=R+Math.imul(C0,x0)|0,L=L+Math.imul(C0,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=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(K5>>>26)|0,K5&=67108863,R=Math.imul(Y0,L0),L=Math.imul(Y0,I0),L=L+Math.imul(Z0,L0)|0,_=Math.imul(Z0,I0),R=R+Math.imul(h,k0)|0,L=L+Math.imul(h,q0)|0,L=L+Math.imul(o,k0)|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(U0,E0)|0,L=L+Math.imul(U0,S0)|0,L=L+Math.imul(W0,E0)|0,_=_+Math.imul(W0,S0)|0,R=R+Math.imul($0,x0)|0,L=L+Math.imul($0,A0)|0,L=L+Math.imul(J0,x0)|0,_=_+Math.imul(J0,A0)|0,R=R+Math.imul(C0,v0)|0,L=L+Math.imul(C0,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 C5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(C5>>>26)|0,C5&=67108863,R=Math.imul(Y0,k0),L=Math.imul(Y0,q0),L=L+Math.imul(Z0,k0)|0,_=Math.imul(Z0,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(U0,x0)|0,L=L+Math.imul(U0,A0)|0,L=L+Math.imul(W0,x0)|0,_=_+Math.imul(W0,A0)|0,R=R+Math.imul($0,v0)|0,L=L+Math.imul($0,M0)|0,L=L+Math.imul(J0,v0)|0,_=_+Math.imul(J0,M0)|0,R=R+Math.imul(C0,g0)|0,L=L+Math.imul(C0,m0)|0,L=L+Math.imul(t,g0)|0,_=_+Math.imul(t,m0)|0;var X5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(X5>>>26)|0,X5&=67108863,R=Math.imul(Y0,B0),L=Math.imul(Y0,R0),L=L+Math.imul(Z0,B0)|0,_=Math.imul(Z0,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(U0,v0)|0,L=L+Math.imul(U0,M0)|0,L=L+Math.imul(W0,v0)|0,_=_+Math.imul(W0,M0)|0,R=R+Math.imul($0,g0)|0,L=L+Math.imul($0,m0)|0,L=L+Math.imul(J0,g0)|0,_=_+Math.imul(J0,m0)|0;var H5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(H5>>>26)|0,H5&=67108863,R=Math.imul(Y0,E0),L=Math.imul(Y0,S0),L=L+Math.imul(Z0,E0)|0,_=Math.imul(Z0,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(U0,g0)|0,L=L+Math.imul(U0,m0)|0,L=L+Math.imul(W0,g0)|0,_=_+Math.imul(W0,m0)|0;var Y5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,R=Math.imul(Y0,x0),L=Math.imul(Y0,A0),L=L+Math.imul(Z0,x0)|0,_=Math.imul(Z0,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 Y9=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(Y9>>>26)|0,Y9&=67108863,R=Math.imul(Y0,v0),L=Math.imul(Y0,M0),L=L+Math.imul(Z0,v0)|0,_=Math.imul(Z0,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 Q9=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(Q9>>>26)|0,Q9&=67108863,R=Math.imul(Y0,g0),L=Math.imul(Y0,m0),L=L+Math.imul(Z0,g0)|0,_=Math.imul(Z0,m0);var $9=(J+R|0)+((L&8191)<<13)|0;return J=(_+(L>>>13)|0)+($9>>>26)|0,$9&=67108863,C[0]=h0,C[1]=u0,C[2]=o0,C[3]=s0,C[4]=a0,C[5]=f0,C[6]=n0,C[7]=r0,C[8]=i0,C[9]=t0,C[10]=e0,C[11]=K5,C[12]=C5,C[13]=X5,C[14]=H5,C[15]=Y5,C[16]=Y9,C[17]=Q9,C[18]=$9,J!==0&&(C[19]=J,P.length++),P};Math.imul||(A=x);function y(H,Q,P){P.negative=Q.negative^H.negative,P.length=H.length+Q.length;for(var W=0,$=0,C=0;C<P.length-1;C++){var J=$;$=0;for(var R=W&67108863,L=Math.min(C,Q.length-1),_=Math.max(0,C-H.length+1);_<=L;_++){var s=C-_,r=H.words[s]|0,X0=Q.words[_]|0,u=r*X0,d=u&67108863;J=J+(u/67108864|0)|0,d=d+R|0,R=d&67108863,J=J+(d>>>26)|0,$+=J>>>26,J&=67108863}P.words[C]=R,W=J,J=$}return W!==0?P.words[C]=W:P.length--,P._strip()}function p(H,Q,P){return y(H,Q,P)}G.prototype.mulTo=function(H,Q){var P,W=this.length+H.length;return this.length===10&&H.length===10?P=A(this,H,Q):W<63?P=x(this,H,Q):W<1024?P=y(this,H,Q):P=p(this,H,Q),P};function c(H,Q){this.x=H,this.y=Q}c.prototype.makeRBT=function(H){for(var Q=new Array(H),P=G.prototype._countBits(H)-1,W=0;W<H;W++)Q[W]=this.revBin(W,P,H);return Q},c.prototype.revBin=function(H,Q,P){if(H===0||H===P-1)return H;for(var W=0,$=0;$<Q;$++)W|=(H&1)<<Q-$-1,H>>=1;return W},c.prototype.permute=function(H,Q,P,W,$,C){for(var J=0;J<C;J++)W[J]=Q[H[J]],$[J]=P[H[J]]},c.prototype.transform=function(H,Q,P,W,$,C){this.permute(C,H,Q,P,W,$);for(var J=1;J<$;J<<=1)for(var R=J<<1,L=Math.cos(2*Math.PI/R),_=Math.sin(2*Math.PI/R),s=0;s<$;s+=R)for(var r=L,X0=_,u=0;u<J;u++){var d=P[s+u],a=W[s+u],V0=P[s+u+J],K0=W[s+u+J],Q0=r*V0-X0*K0;K0=r*K0+X0*V0,V0=Q0,P[s+u]=d+V0,W[s+u]=a+K0,P[s+u+J]=d-V0,W[s+u+J]=a-K0,u!==R&&(Q0=L*r-_*X0,X0=L*X0+_*r,r=Q0)}},c.prototype.guessLen13b=function(H,Q){var P=Math.max(Q,H)|1,W=P&1,$=0;for(P=P/2|0;P;P=P>>>1)$++;return 1<<$+1+W},c.prototype.conjugate=function(H,Q,P){if(!(P<=1))for(var W=0;W<P/2;W++){var $=H[W];H[W]=H[P-W-1],H[P-W-1]=$,$=Q[W],Q[W]=-Q[P-W-1],Q[P-W-1]=-$}},c.prototype.normalize13b=function(H,Q){for(var P=0,W=0;W<Q/2;W++){var $=Math.round(H[2*W+1]/Q)*8192+Math.round(H[2*W]/Q)+P;H[W]=$&67108863,$<67108864?P=0:P=$/67108864|0}return H},c.prototype.convert13b=function(H,Q,P,W){for(var $=0,C=0;C<Q;C++)$=$+(H[C]|0),P[2*C]=$&8191,$=$>>>13,P[2*C+1]=$&8191,$=$>>>13;for(C=2*Q;C<W;++C)P[C]=0;F($===0),F(($&-8192)===0)},c.prototype.stub=function(H){for(var Q=new Array(H),P=0;P<H;P++)Q[P]=0;return Q},c.prototype.mulp=function(H,Q,P){var W=2*this.guessLen13b(H.length,Q.length),$=this.makeRBT(W),C=this.stub(W),J=new Array(W),R=new Array(W),L=new Array(W),_=new Array(W),s=new Array(W),r=new Array(W),X0=P.words;X0.length=W,this.convert13b(H.words,H.length,J,W),this.convert13b(Q.words,Q.length,_,W),this.transform(J,C,R,L,W,$),this.transform(_,C,s,r,W,$);for(var u=0;u<W;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,W),this.transform(R,L,X0,C,W,$),this.conjugate(X0,C,W),this.normalize13b(X0,W),P.negative=H.negative^Q.negative,P.length=H.length+Q.length,P._strip()},G.prototype.mul=function(H){var Q=new G(null);return Q.words=new Array(this.length+H.length),this.mulTo(H,Q)},G.prototype.mulf=function(H){var Q=new G(null);return Q.words=new Array(this.length+H.length),p(this,H,Q)},G.prototype.imul=function(H){return this.clone().mulTo(H,this)},G.prototype.imuln=function(H){var Q=H<0;Q&&(H=-H),F(typeof H=="number"),F(H<67108864);for(var P=0,W=0;W<this.length;W++){var $=(this.words[W]|0)*H,C=($&67108863)+(P&67108863);P>>=26,P+=$/67108864|0,P+=C>>>26,this.words[W]=C&67108863}return P!==0&&(this.words[W]=P,this.length++),Q?this.ineg():this},G.prototype.muln=function(H){return this.clone().imuln(H)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(H){var Q=v(H);if(Q.length===0)return new G(1);for(var P=this,W=0;W<Q.length&&Q[W]===0;W++,P=P.sqr());if(++W<Q.length)for(var $=P.sqr();W<Q.length;W++,$=$.sqr())Q[W]!==0&&(P=P.mul($));return P},G.prototype.iushln=function(H){F(typeof H=="number"&&H>=0);var Q=H%26,P=(H-Q)/26,W=67108863>>>26-Q<<26-Q,$;if(Q!==0){var C=0;for($=0;$<this.length;$++){var J=this.words[$]&W,R=(this.words[$]|0)-J<<Q;this.words[$]=R|C,C=J>>>26-Q}C&&(this.words[$]=C,this.length++)}if(P!==0){for($=this.length-1;$>=0;$--)this.words[$+P]=this.words[$];for($=0;$<P;$++)this.words[$]=0;this.length+=P}return this._strip()},G.prototype.ishln=function(H){return F(this.negative===0),this.iushln(H)},G.prototype.iushrn=function(H,Q,P){F(typeof H=="number"&&H>=0);var W;Q?W=(Q-Q%26)/26:W=0;var $=H%26,C=Math.min((H-$)/26,this.length),J=67108863^67108863>>>$<<$,R=P;if(W-=C,W=Math.max(0,W),R){for(var L=0;L<C;L++)R.words[L]=this.words[L];R.length=C}if(C!==0)if(this.length>C)for(this.length-=C,L=0;L<this.length;L++)this.words[L]=this.words[L+C];else this.words[0]=0,this.length=1;var _=0;for(L=this.length-1;L>=0&&(_!==0||L>=W);L--){var s=this.words[L]|0;this.words[L]=_<<26-$|s>>>$,_=s&J}return R&&_!==0&&(R.words[R.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},G.prototype.ishrn=function(H,Q,P){return F(this.negative===0),this.iushrn(H,Q,P)},G.prototype.shln=function(H){return this.clone().ishln(H)},G.prototype.ushln=function(H){return this.clone().iushln(H)},G.prototype.shrn=function(H){return this.clone().ishrn(H)},G.prototype.ushrn=function(H){return this.clone().iushrn(H)},G.prototype.testn=function(H){F(typeof H=="number"&&H>=0);var Q=H%26,P=(H-Q)/26,W=1<<Q;if(this.length<=P)return!1;var $=this.words[P];return!!($&W)},G.prototype.imaskn=function(H){F(typeof H=="number"&&H>=0);var Q=H%26,P=(H-Q)/26;if(F(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 W=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=W}return this._strip()},G.prototype.maskn=function(H){return this.clone().imaskn(H)},G.prototype.iaddn=function(H){return F(typeof H=="number"),F(H<67108864),H<0?this.isubn(-H):this.negative!==0?this.length===1&&(this.words[0]|0)<=H?(this.words[0]=H-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(H),this.negative=1,this):this._iaddn(H)},G.prototype._iaddn=function(H){this.words[0]+=H;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},G.prototype.isubn=function(H){if(F(typeof H=="number"),F(H<67108864),H<0)return this.iaddn(-H);if(this.negative!==0)return this.negative=0,this.iaddn(H),this.negative=1,this;if(this.words[0]-=H,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()},G.prototype.addn=function(H){return this.clone().iaddn(H)},G.prototype.subn=function(H){return this.clone().isubn(H)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(H,Q,P){var W=H.length+P,$;this._expand(W);var C,J=0;for($=0;$<H.length;$++){C=(this.words[$+P]|0)+J;var R=(H.words[$]|0)*Q;C-=R&67108863,J=(C>>26)-(R/67108864|0),this.words[$+P]=C&67108863}for(;$<this.length-P;$++)C=(this.words[$+P]|0)+J,J=C>>26,this.words[$+P]=C&67108863;if(J===0)return this._strip();for(F(J===-1),J=0,$=0;$<this.length;$++)C=-(this.words[$]|0)+J,J=C>>26,this.words[$]=C&67108863;return this.negative=1,this._strip()},G.prototype._wordDiv=function(H,Q){var P=this.length-H.length,W=this.clone(),$=H,C=$.words[$.length-1]|0,J=this._countBits(C);P=26-J,P!==0&&($=$.ushln(P),W.iushln(P),C=$.words[$.length-1]|0);var R=W.length-$.length,L;if(Q!=="mod"){L=new G(null),L.length=R+1,L.words=new Array(L.length);for(var _=0;_<L.length;_++)L.words[_]=0}var s=W.clone()._ishlnsubmul($,1,R);s.negative===0&&(W=s,L&&(L.words[R]=1));for(var r=R-1;r>=0;r--){var X0=(W.words[$.length+r]|0)*67108864+(W.words[$.length+r-1]|0);for(X0=Math.min(X0/C|0,67108863),W._ishlnsubmul($,X0,r);W.negative!==0;)X0--,W.negative=0,W._ishlnsubmul($,1,r),W.isZero()||(W.negative^=1);L&&(L.words[r]=X0)}return L&&L._strip(),W._strip(),Q!=="div"&&P!==0&&W.iushrn(P),{div:L||null,mod:W}},G.prototype.divmod=function(H,Q,P){if(F(!H.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var W,$,C;return this.negative!==0&&H.negative===0?(C=this.neg().divmod(H,Q),Q!=="mod"&&(W=C.div.neg()),Q!=="div"&&($=C.mod.neg(),P&&$.negative!==0&&$.iadd(H)),{div:W,mod:$}):this.negative===0&&H.negative!==0?(C=this.divmod(H.neg(),Q),Q!=="mod"&&(W=C.div.neg()),{div:W,mod:C.mod}):(this.negative&H.negative)!==0?(C=this.neg().divmod(H.neg(),Q),Q!=="div"&&($=C.mod.neg(),P&&$.negative!==0&&$.isub(H)),{div:C.div,mod:$}):H.length>this.length||this.cmp(H)<0?{div:new G(0),mod:this}:H.length===1?Q==="div"?{div:this.divn(H.words[0]),mod:null}:Q==="mod"?{div:null,mod:new G(this.modrn(H.words[0]))}:{div:this.divn(H.words[0]),mod:new G(this.modrn(H.words[0]))}:this._wordDiv(H,Q)},G.prototype.div=function(H){return this.divmod(H,"div",!1).div},G.prototype.mod=function(H){return this.divmod(H,"mod",!1).mod},G.prototype.umod=function(H){return this.divmod(H,"mod",!0).mod},G.prototype.divRound=function(H){var Q=this.divmod(H);if(Q.mod.isZero())return Q.div;var P=Q.div.negative!==0?Q.mod.isub(H):Q.mod,W=H.ushrn(1),$=H.andln(1),C=P.cmp(W);return C<0||$===1&&C===0?Q.div:Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},G.prototype.modrn=function(H){var Q=H<0;Q&&(H=-H),F(H<=67108863);for(var P=67108864%H,W=0,$=this.length-1;$>=0;$--)W=(P*W+(this.words[$]|0))%H;return Q?-W:W},G.prototype.modn=function(H){return this.modrn(H)},G.prototype.idivn=function(H){var Q=H<0;Q&&(H=-H),F(H<=67108863);for(var P=0,W=this.length-1;W>=0;W--){var $=(this.words[W]|0)+P*67108864;this.words[W]=$/H|0,P=$%H}return this._strip(),Q?this.ineg():this},G.prototype.divn=function(H){return this.clone().idivn(H)},G.prototype.egcd=function(H){F(H.negative===0),F(!H.isZero());var Q=this,P=H.clone();Q.negative!==0?Q=Q.umod(H):Q=Q.clone();for(var W=new G(1),$=new G(0),C=new G(0),J=new G(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;)(W.isOdd()||$.isOdd())&&(W.iadd(L),$.isub(_)),W.iushrn(1),$.iushrn(1);for(var X0=0,u=1;(P.words[0]&u)===0&&X0<26;++X0,u<<=1);if(X0>0)for(P.iushrn(X0);X0-- >0;)(C.isOdd()||J.isOdd())&&(C.iadd(L),J.isub(_)),C.iushrn(1),J.iushrn(1);Q.cmp(P)>=0?(Q.isub(P),W.isub(C),$.isub(J)):(P.isub(Q),C.isub(W),J.isub($))}return{a:C,b:J,gcd:P.iushln(R)}},G.prototype._invmp=function(H){F(H.negative===0),F(!H.isZero());var Q=this,P=H.clone();Q.negative!==0?Q=Q.umod(H):Q=Q.clone();for(var W=new G(1),$=new G(0),C=P.clone();Q.cmpn(1)>0&&P.cmpn(1)>0;){for(var J=0,R=1;(Q.words[0]&R)===0&&J<26;++J,R<<=1);if(J>0)for(Q.iushrn(J);J-- >0;)W.isOdd()&&W.iadd(C),W.iushrn(1);for(var L=0,_=1;(P.words[0]&_)===0&&L<26;++L,_<<=1);if(L>0)for(P.iushrn(L);L-- >0;)$.isOdd()&&$.iadd(C),$.iushrn(1);Q.cmp(P)>=0?(Q.isub(P),W.isub($)):(P.isub(Q),$.isub(W))}var s;return Q.cmpn(1)===0?s=W:s=$,s.cmpn(0)<0&&s.iadd(H),s},G.prototype.gcd=function(H){if(this.isZero())return H.abs();if(H.isZero())return this.abs();var Q=this.clone(),P=H.clone();Q.negative=0,P.negative=0;for(var W=0;Q.isEven()&&P.isEven();W++)Q.iushrn(1),P.iushrn(1);do{for(;Q.isEven();)Q.iushrn(1);for(;P.isEven();)P.iushrn(1);var $=Q.cmp(P);if($<0){var C=Q;Q=P,P=C}else if($===0||P.cmpn(1)===0)break;Q.isub(P)}while(!0);return P.iushln(W)},G.prototype.invm=function(H){return this.egcd(H).a.umod(H)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(H){return this.words[0]&H},G.prototype.bincn=function(H){F(typeof H=="number");var Q=H%26,P=(H-Q)/26,W=1<<Q;if(this.length<=P)return this._expand(P+1),this.words[P]|=W,this;for(var $=W,C=P;$!==0&&C<this.length;C++){var J=this.words[C]|0;J+=$,$=J>>>26,J&=67108863,this.words[C]=J}return $!==0&&(this.words[C]=$,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(H){var Q=H<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&&(H=-H),F(H<=67108863,"Number is too big");var W=this.words[0]|0;P=W===H?0:W<H?-1:1}return this.negative!==0?-P|0:P},G.prototype.cmp=function(H){if(this.negative!==0&&H.negative===0)return-1;if(this.negative===0&&H.negative!==0)return 1;var Q=this.ucmp(H);return this.negative!==0?-Q|0:Q},G.prototype.ucmp=function(H){if(this.length>H.length)return 1;if(this.length<H.length)return-1;for(var Q=0,P=this.length-1;P>=0;P--){var W=this.words[P]|0,$=H.words[P]|0;if(W!==$){W<$?Q=-1:W>$&&(Q=1);break}}return Q},G.prototype.gtn=function(H){return this.cmpn(H)===1},G.prototype.gt=function(H){return this.cmp(H)===1},G.prototype.gten=function(H){return this.cmpn(H)>=0},G.prototype.gte=function(H){return this.cmp(H)>=0},G.prototype.ltn=function(H){return this.cmpn(H)===-1},G.prototype.lt=function(H){return this.cmp(H)===-1},G.prototype.lten=function(H){return this.cmpn(H)<=0},G.prototype.lte=function(H){return this.cmp(H)<=0},G.prototype.eqn=function(H){return this.cmpn(H)===0},G.prototype.eq=function(H){return this.cmp(H)===0},G.red=function(H){return new X(H)},G.prototype.toRed=function(H){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),H.convertTo(this)._forceRed(H)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(H){return this.red=H,this},G.prototype.forceRed=function(H){return F(!this.red,"Already a number in reduction context"),this._forceRed(H)},G.prototype.redAdd=function(H){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,H)},G.prototype.redIAdd=function(H){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,H)},G.prototype.redSub=function(H){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,H)},G.prototype.redISub=function(H){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,H)},G.prototype.redShl=function(H){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,H)},G.prototype.redMul=function(H){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,H),this.red.mul(this,H)},G.prototype.redIMul=function(H){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,H),this.red.imul(this,H)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(H){return F(this.red&&!H.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,H)};var n={k256:null,p224:null,p192:null,p25519:null};function i(H,Q){this.name=H,this.p=new G(Q,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var H=new G(null);return H.words=new Array(Math.ceil(this.n/13)),H},i.prototype.ireduce=function(H){var Q=H,P;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),P=Q.bitLength();while(P>this.n);var W=P<this.n?-1:Q.ucmp(this.p);return W===0?(Q.words[0]=0,Q.length=1):W>0?Q.isub(this.p):Q.strip!==void 0?Q.strip():Q._strip(),Q},i.prototype.split=function(H,Q){H.iushrn(this.n,0,Q)},i.prototype.imulK=function(H){return H.imul(this.k)};function H0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(H0,i),H0.prototype.split=function(H,Q){for(var P=4194303,W=Math.min(H.length,9),$=0;$<W;$++)Q.words[$]=H.words[$];if(Q.length=W,H.length<=9){H.words[0]=0,H.length=1;return}var C=H.words[9];for(Q.words[Q.length++]=C&P,$=10;$<H.length;$++){var J=H.words[$]|0;H.words[$-10]=(J&P)<<4|C>>>22,C=J}C>>>=22,H.words[$-10]=C,C===0&&H.length>10?H.length-=10:H.length-=9},H0.prototype.imulK=function(H){H.words[H.length]=0,H.words[H.length+1]=0,H.length+=2;for(var Q=0,P=0;P<H.length;P++){var W=H.words[P]|0;Q+=W*977,H.words[P]=Q&67108863,Q=W*64+(Q/67108864|0)}return H.words[H.length-1]===0&&(H.length--,H.words[H.length-1]===0&&H.length--),H};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(H){for(var Q=0,P=0;P<H.length;P++){var W=(H.words[P]|0)*19+Q,$=W&67108863;W>>>=26,H.words[P]=$,Q=W}return Q!==0&&(H.words[H.length++]=Q),H},G._prime=function(H){if(n[H])return n[H];var Q;if(H==="k256")Q=new H0;else if(H==="p224")Q=new f;else if(H==="p192")Q=new P0;else if(H==="p25519")Q=new K;else throw new Error("Unknown prime "+H);return n[H]=Q,Q};function X(H){if(typeof H=="string"){var Q=G._prime(H);this.m=Q.p,this.prime=Q}else F(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}X.prototype._verify1=function(H){F(H.negative===0,"red works only with positives"),F(H.red,"red works only with red numbers")},X.prototype._verify2=function(H,Q){F((H.negative|Q.negative)===0,"red works only with positives"),F(H.red&&H.red===Q.red,"red works only with red numbers")},X.prototype.imod=function(H){return this.prime?this.prime.ireduce(H)._forceRed(this):(Z(H,H.umod(this.m)._forceRed(this)),H)},X.prototype.neg=function(H){return H.isZero()?H.clone():this.m.sub(H)._forceRed(this)},X.prototype.add=function(H,Q){this._verify2(H,Q);var P=H.add(Q);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},X.prototype.iadd=function(H,Q){this._verify2(H,Q);var P=H.iadd(Q);return P.cmp(this.m)>=0&&P.isub(this.m),P},X.prototype.sub=function(H,Q){this._verify2(H,Q);var P=H.sub(Q);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},X.prototype.isub=function(H,Q){this._verify2(H,Q);var P=H.isub(Q);return P.cmpn(0)<0&&P.iadd(this.m),P},X.prototype.shl=function(H,Q){return this._verify1(H),this.imod(H.ushln(Q))},X.prototype.imul=function(H,Q){return this._verify2(H,Q),this.imod(H.imul(Q))},X.prototype.mul=function(H,Q){return this._verify2(H,Q),this.imod(H.mul(Q))},X.prototype.isqr=function(H){return this.imul(H,H.clone())},X.prototype.sqr=function(H){return this.mul(H,H)},X.prototype.sqrt=function(H){if(H.isZero())return H.clone();var Q=this.m.andln(3);if(F(Q%2===1),Q===3){var P=this.m.add(new G(1)).iushrn(2);return this.pow(H,P)}for(var W=this.m.subn(1),$=0;!W.isZero()&&W.andln(1)===0;)$++,W.iushrn(1);F(!W.isZero());var C=new G(1).toRed(this),J=C.redNeg(),R=this.m.subn(1).iushrn(1),L=this.m.bitLength();for(L=new G(2*L*L).toRed(this);this.pow(L,R).cmp(J)!==0;)L.redIAdd(J);for(var _=this.pow(L,W),s=this.pow(H,W.addn(1).iushrn(1)),r=this.pow(H,W),X0=$;r.cmp(C)!==0;){for(var u=r,d=0;u.cmp(C)!==0;d++)u=u.redSqr();F(d<X0);var a=this.pow(_,new G(1).iushln(X0-d-1));s=s.redMul(a),_=a.redSqr(),r=r.redMul(_),X0=d}return s},X.prototype.invm=function(H){var Q=H._invmp(this.m);return Q.negative!==0?(Q.negative=0,this.imod(Q).redNeg()):this.imod(Q)},X.prototype.pow=function(H,Q){if(Q.isZero())return new G(1).toRed(this);if(Q.cmpn(1)===0)return H.clone();var P=4,W=new Array(1<<P);W[0]=new G(1).toRed(this),W[1]=H;for(var $=2;$<W.length;$++)W[$]=this.mul(W[$-1],H);var C=W[0],J=0,R=0,L=Q.bitLength()%26;for(L===0&&(L=26),$=Q.length-1;$>=0;$--){for(var _=Q.words[$],s=L-1;s>=0;s--){var r=_>>s&1;if(C!==W[0]&&(C=this.sqr(C)),r===0&&J===0){R=0;continue}J<<=1,J|=r,R++,!(R!==P&&($!==0||s!==0))&&(C=this.mul(C,W[J]),R=0,J=0)}L=26}return C},X.prototype.convertTo=function(H){var Q=H.umod(this.m);return Q===H?Q.clone():Q},X.prototype.convertFrom=function(H){var Q=H.clone();return Q.red=null,Q},G.mont=function(H){return new Y(H)};function Y(H){X.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Y,X),Y.prototype.convertTo=function(H){return this.imod(H.ushln(this.shift))},Y.prototype.convertFrom=function(H){var Q=this.imod(H.mul(this.rinv));return Q.red=null,Q},Y.prototype.imul=function(H,Q){if(H.isZero()||Q.isZero())return H.words[0]=0,H.length=1,H;var P=H.imul(Q),W=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=P.isub(W).iushrn(this.shift),C=$;return $.cmp(this.m)>=0?C=$.isub(this.m):$.cmpn(0)<0&&(C=$.iadd(this.m)),C._forceRed(this)},Y.prototype.mul=function(H,Q){if(H.isZero()||Q.isZero())return new G(0)._forceRed(this);var P=H.mul(Q),W=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=P.isub(W).iushrn(this.shift),C=$;return $.cmp(this.m)>=0?C=$.isub(this.m):$.cmpn(0)<0&&(C=$.iadd(this.m)),C._forceRed(this)},Y.prototype.invm=function(H){var Q=this.imod(H._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof g>"u"||g,l)}),E9=G0((l,g)=>{var E=R9(),M=g5();function F(j){var I=S(j),z=I.toRed(E.mont(j.modulus)).redPow(new E(j.publicExponent)).fromRed();return{blinder:z,unblinder:I.invm(j.modulus)}}function S(j){var I=j.modulus.byteLength(),z;do z=new E(M(I));while(z.cmp(j.modulus)>=0||!z.umod(j.prime1)||!z.umod(j.prime2));return z}function G(j,I){var z=F(I),V=I.modulus.byteLength(),Z=new E(j).mul(z.blinder).umod(I.modulus),T=Z.toRed(E.mont(I.prime1)),N=Z.toRed(E.mont(I.prime2)),U=I.coefficient,D=I.prime1,k=I.prime2,v=T.redPow(I.exponent1).fromRed(),x=N.redPow(I.exponent2).fromRed(),A=v.isub(x).imul(U).umod(D).imul(k);return x.iadd(A).imul(z.unblinder).umod(I.modulus).toArrayLike(Buffer,"be",V)}G.getr=S,g.exports=G}),n7=G0((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"}}}),k5=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var j;try{typeof window<"u"&&typeof window.Buffer<"u"?j=window.Buffer:j=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,P,W=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)P=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)P=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function z(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,P=0,W;if(Y==="be")for(H=K.length-1;H>=X;H-=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8}this.strip()};function V(K,X,Y,H){for(var Q=0,P=Math.min(K.length,Y),W=X;W<P;W++){var $=K.charCodeAt(W)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var P=K.length-Y,W=P%H,$=Math.min(P,P-W)+Y,C=0,J=Y;J<$;J+=H)C=V(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(W!==0){var R=1;for(C=V(K,J,K.length,X),J=0;J<W;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Z=["","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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,P=0;P<this.length;P++){var W=this.words[P],$=((W<<H|Q)&16777215).toString(16);Q=W>>>24-H&16777215,Q!==0||P!==this.length-1?Y=Z[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,P--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=T[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=Z[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof j<"u"),this.toArrayLike(j,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var P=X==="le",W=new K(Q),$,C,J=this.clone();if(P){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[C]=$;for(;C<Q;C++)W[C]=0}else{for(C=0;C<Q-H;C++)W[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[Q-C-1]=$}return W},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function U(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,P=0;P<H.length;P++)X=(Y.words[P]|0)+(H.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;for(;Q!==0&&P<Y.length;P++)X=(Y.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;P<Y.length;P++)this.words[P]=Y.words[P];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var P=0,W=0;W<Q.length;W++)X=(H.words[W]|0)-(Q.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;for(;P!==0&&W<H.length;W++)X=(H.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;if(P===0&&W<H.length&&H!==this)for(;W<H.length;W++)this.words[W]=H.words[W];return this.length=Math.max(this.length,W),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,P=X.words[0]|0,W=Q*P,$=W&67108863,C=W/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,P=X.words[s]|0,W=Q*P+L,R+=W/67108864|0,L=W&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,P=Y.words,W=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,a=u>>>13,V0=H[3]|0,K0=V0&8191,Q0=V0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,U0=w0&8191,W0=w0>>>13,c0=H[8]|0,O=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,Y0=z0&8191,Z0=z0>>>13,b0=Q[1]|0,F0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,O0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,W5=Q[7]|0,E0=W5&8191,S0=W5>>>13,Z5=Q[8]|0,x0=Z5&8191,A0=Z5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,Z0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,Z0);var Q5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,Z0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,Z0),$=$+Math.imul(L,F0)|0,C=C+Math.imul(L,j0)|0,C=C+Math.imul(_,F0)|0,J=J+Math.imul(_,j0)|0;var g0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,Z0),C=C+Math.imul(a,Y0)|0,J=Math.imul(a,Z0),$=$+Math.imul(r,F0)|0,C=C+Math.imul(r,j0)|0,C=C+Math.imul(X0,F0)|0,J=J+Math.imul(X0,j0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,Z0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,Z0),$=$+Math.imul(d,F0)|0,C=C+Math.imul(d,j0)|0,C=C+Math.imul(a,F0)|0,J=J+Math.imul(a,j0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,O0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,O0)|0;var h0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,Z0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,Z0),$=$+Math.imul(K0,F0)|0,C=C+Math.imul(K0,j0)|0,C=C+Math.imul(Q0,F0)|0,J=J+Math.imul(Q0,j0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(a,D0)|0,J=J+Math.imul(a,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,O0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,O0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,Z0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,Z0),$=$+Math.imul(q,F0)|0,C=C+Math.imul(q,j0)|0,C=C+Math.imul(m,F0)|0,J=J+Math.imul(m,j0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,O0)|0,C=C+Math.imul(a,T0)|0,J=J+Math.imul(a,O0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,Z0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,Z0),$=$+Math.imul(C0,F0)|0,C=C+Math.imul(C0,j0)|0,C=C+Math.imul(t,F0)|0,J=J+Math.imul(t,j0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,O0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,O0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(a,L0)|0,J=J+Math.imul(a,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(U0,Y0),C=Math.imul(U0,Z0),C=C+Math.imul(W0,Y0)|0,J=Math.imul(W0,Z0),$=$+Math.imul($0,F0)|0,C=C+Math.imul($0,j0)|0,C=C+Math.imul(J0,F0)|0,J=J+Math.imul(J0,j0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,O0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,O0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(a,k0)|0,J=J+Math.imul(a,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(O,Y0),C=Math.imul(O,Z0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,Z0),$=$+Math.imul(U0,F0)|0,C=C+Math.imul(U0,j0)|0,C=C+Math.imul(W0,F0)|0,J=J+Math.imul(W0,j0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,O0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,O0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(a,B0)|0,J=J+Math.imul(a,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,Z0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,Z0),$=$+Math.imul(O,F0)|0,C=C+Math.imul(O,j0)|0,C=C+Math.imul(B,F0)|0,J=J+Math.imul(B,j0)|0,$=$+Math.imul(U0,D0)|0,C=C+Math.imul(U0,N0)|0,C=C+Math.imul(W0,D0)|0,J=J+Math.imul(W0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,O0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,O0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(a,E0)|0,J=J+Math.imul(a,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,F0),C=Math.imul(h,j0),C=C+Math.imul(o,F0)|0,J=Math.imul(o,j0),$=$+Math.imul(O,D0)|0,C=C+Math.imul(O,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(U0,T0)|0,C=C+Math.imul(U0,O0)|0,C=C+Math.imul(W0,T0)|0,J=J+Math.imul(W0,O0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(a,x0)|0,J=J+Math.imul(a,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(O,T0)|0,C=C+Math.imul(O,O0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,O0)|0,$=$+Math.imul(U0,L0)|0,C=C+Math.imul(U0,I0)|0,C=C+Math.imul(W0,L0)|0,J=J+Math.imul(W0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(a,v0)|0,J=J+Math.imul(a,M0)|0;var i0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,O0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,O0),$=$+Math.imul(O,L0)|0,C=C+Math.imul(O,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(U0,k0)|0,C=C+Math.imul(U0,q0)|0,C=C+Math.imul(W0,k0)|0,J=J+Math.imul(W0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(O,k0)|0,C=C+Math.imul(O,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(U0,B0)|0,C=C+Math.imul(U0,R0)|0,C=C+Math.imul(W0,B0)|0,J=J+Math.imul(W0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(O,B0)|0,C=C+Math.imul(O,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(U0,E0)|0,C=C+Math.imul(U0,S0)|0,C=C+Math.imul(W0,E0)|0,J=J+Math.imul(W0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(O,E0)|0,C=C+Math.imul(O,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(U0,x0)|0,C=C+Math.imul(U0,A0)|0,C=C+Math.imul(W0,x0)|0,J=J+Math.imul(W0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(O,x0)|0,C=C+Math.imul(O,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(U0,v0)|0,C=C+Math.imul(U0,M0)|0,C=C+Math.imul(W0,v0)|0,J=J+Math.imul(W0,M0)|0;var X5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(O,v0)|0,C=C+Math.imul(O,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(W+$|0)+((C&8191)<<13)|0;return W=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=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]=C5,P[16]=X5,P[17]=H5,P[18]=Y5,W!==0&&(P[19]=W,Y.length++),Y};Math.imul||(k=D);function v(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,P=0;P<Y.length-1;P++){var W=Q;Q=0;for(var $=H&67108863,C=Math.min(P,X.length-1),J=Math.max(0,P-K.length+1);J<=C;J++){var R=P-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;W=W+(s/67108864|0)|0,r=r+$|0,$=r&67108863,W=W+(r>>>26)|0,Q+=W>>>26,W&=67108863}Y.words[P]=$,H=W,W=Q}return H!==0?Y.words[P]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new A;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=v(this,K,X):Y=x(this,K,X),Y};function A(K,X){this.x=K,this.y=X}A.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},A.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},A.prototype.permute=function(K,X,Y,H,Q,P){for(var W=0;W<P;W++)H[W]=X[K[W]],Q[W]=Y[K[W]]},A.prototype.transform=function(K,X,Y,H,Q,P){this.permute(P,K,X,Y,H,Q);for(var W=1;W<Q;W<<=1)for(var $=W<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<W;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+W],d=H[R+s+W],a=L*u-_*d;d=L*d+_*u,u=a,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+W]=r-u,H[R+s+W]=X0-d,s!==$&&(a=C*L-J*_,_=C*_+J*L,L=a)}},A.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},A.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},A.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},A.prototype.convert13b=function(K,X,Y,H){for(var Q=0,P=0;P<X;P++)Q=Q+(K[P]|0),Y[2*P]=Q&8191,Q=Q>>>13,Y[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*X;P<H;++P)Y[P]=0;F(Q===0),F((Q&-8192)===0)},A.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},A.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),P=this.stub(H),W=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,W,H),this.convert13b(X.words,X.length,J,H),this.transform(W,P,$,C,H,Q),this.transform(J,P,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,P,H,Q),this.conjugate(_,P,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=U(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var P=0;for(Q=0;Q<this.length;Q++){var W=this.words[Q]&H,$=(this.words[Q]|0)-W<<X;this.words[Q]=$|P,P=W>>>26-X}P&&(this.words[Q]=P,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),W=67108863^67108863>>>Q<<Q,$=Y;if(H-=P,H=Math.max(0,H),$){for(var C=0;C<P;C++)$.words[C]=this.words[C];$.length=P}if(P!==0)if(this.length>P)for(this.length-=P,C=0;C<this.length;C++)this.words[C]=this.words[C+P];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&W}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var P,W=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+Y]|0)+W;var $=(K.words[Q]|0)*X;P-=$&67108863,W=(P>>26)-($/67108864|0),this.words[Q+Y]=P&67108863}for(;Q<this.length-Y;Q++)P=(this.words[Q+Y]|0)+W,W=P>>26,this.words[Q+Y]=P&67108863;if(W===0)return this.strip();for(F(W===-1),W=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+W,W=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,P=Q.words[Q.length-1]|0,W=this._countBits(P);Y=26-W,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),P=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,X),X!=="mod"&&(H=P.div.neg()),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),X),X!=="mod"&&(H=P.div.neg()),{div:H,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),P=Y.cmp(H);return P<0||Q===1&&P===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=new G(0),W=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(P.isOdd()||W.isOdd())&&(P.iadd(C),W.isub(J)),P.iushrn(1),W.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(P),Q.isub(W)):(Y.isub(X),P.isub(H),W.isub(Q))}return{a:P,b:W,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var W=0,$=1;(X.words[0]&$)===0&&W<26;++W,$<<=1);if(W>0)for(X.iushrn(W);W-- >0;)H.isOdd()&&H.iadd(P),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var P=X;X=Y,Y=P}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,P=Y;Q!==0&&P<this.length;P++){var W=this.words[P]|0;W+=Q,Q=W>>>26,W&=67108863,this.words[P]=W}return Q!==0&&(this.words[P]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new f(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(X.words[X.length++]=P&Y,Q=10;Q<K.length;Q++){var W=K.words[Q]|0;K.words[Q-10]=(W&Y)<<4|P>>>22,P=W}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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function f(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.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,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},f.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},f.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},f.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},f.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},f.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},f.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},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 X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var P=new G(1).toRed(this),W=P.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(W)!==0;)C.redIAdd(W);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},f.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},f.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var P=H[0],W=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(P!==H[0]&&(P=this.sqr(P)),L===0&&W===0){$=0;continue}W<<=1,W|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(P=this.mul(P,H[W]),$=0,W=0)}C=26}return P},f.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},f.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.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 G(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 X=this.imod(K.mul(this.rinv));return X.red=null,X},P0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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 X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),B6=G0((l)=>{var g=l;function E(S,G){if(Array.isArray(S))return S.slice();if(!S)return[];var j=[];if(typeof S!="string"){for(var I=0;I<S.length;I++)j[I]=S[I]|0;return j}if(G==="hex"){S=S.replace(/[^a-z0-9]+/ig,""),S.length%2!==0&&(S="0"+S);for(var I=0;I<S.length;I+=2)j.push(parseInt(S[I]+S[I+1],16))}else for(var I=0;I<S.length;I++){var z=S.charCodeAt(I),V=z>>8,Z=z&255;V?j.push(V,Z):j.push(Z)}return j}g.toArray=E;function M(S){return S.length===1?"0"+S:S}g.zero2=M;function F(S){for(var G="",j=0;j<S.length;j++)G+=M(S[j].toString(16));return G}g.toHex=F,g.encode=function(S,G){return G==="hex"?F(S):S}}),T5=G0((l)=>{var g=l,E=k5(),M=O5(),F=B6();g.assert=M,g.toArray=F.toArray,g.zero2=F.zero2,g.toHex=F.toHex,g.encode=F.encode;function S(V,Z,T){var N=new Array(Math.max(V.bitLength(),T)+1);N.fill(0);for(var U=1<<Z+1,D=V.clone(),k=0;k<N.length;k++){var v,x=D.andln(U-1);D.isOdd()?(x>(U>>1)-1?v=(U>>1)-x:v=x,D.isubn(v)):v=0,N[k]=v,D.iushrn(1)}return N}g.getNAF=S;function G(V,Z){var T=[[],[]];V=V.clone(),Z=Z.clone();for(var N=0,U=0,D;V.cmpn(-N)>0||Z.cmpn(-U)>0;){var k=V.andln(3)+N&3,v=Z.andln(3)+U&3;k===3&&(k=-1),v===3&&(v=-1);var x;(k&1)===0?x=0:(D=V.andln(7)+N&7,(D===3||D===5)&&v===2?x=-k:x=k),T[0].push(x);var A;(v&1)===0?A=0:(D=Z.andln(7)+U&7,(D===3||D===5)&&k===2?A=-v:A=v),T[1].push(A),2*N===x+1&&(N=1-N),2*U===A+1&&(U=1-U),V.iushrn(1),Z.iushrn(1)}return T}g.getJSF=G;function j(V,Z,T){var N="_"+Z;V.prototype[Z]=function(){return this[N]!==void 0?this[N]:this[N]=T.call(this)}}g.cachedProperty=j;function I(V){return typeof V=="string"?g.toArray(V,"hex"):V}g.parseBytes=I;function z(V){return new E(V,"hex","le")}g.intFromLE=z}),X9=G0((l,g)=>{var E=k5(),M=T5(),F=M.getNAF,S=M.getJSF,G=M.assert;function j(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 Z=this.n&&this.p.div(this.n);!Z||Z.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}g.exports=j,j.prototype.point=function(){throw new Error("Not implemented")},j.prototype.validate=function(){throw new Error("Not implemented")},j.prototype._fixedNafMul=function(z,V){G(z.precomputed);var Z=z._getDoubles(),T=F(V,1,this._bitLength),N=(1<<Z.step+1)-(Z.step%2===0?2:1);N/=3;var U=[],D,k;for(D=0;D<T.length;D+=Z.step){k=0;for(var v=D+Z.step-1;v>=D;v--)k=(k<<1)+T[v];U.push(k)}for(var x=this.jpoint(null,null,null),A=this.jpoint(null,null,null),y=N;y>0;y--){for(D=0;D<U.length;D++)k=U[D],k===y?A=A.mixedAdd(Z.points[D]):k===-y&&(A=A.mixedAdd(Z.points[D].neg()));x=x.add(A)}return x.toP()},j.prototype._wnafMul=function(z,V){var Z=4,T=z._getNAFPoints(Z);Z=T.wnd;for(var N=T.points,U=F(V,Z,this._bitLength),D=this.jpoint(null,null,null),k=U.length-1;k>=0;k--){for(var v=0;k>=0&&U[k]===0;k--)v++;if(k>=0&&v++,D=D.dblp(v),k<0)break;var x=U[k];G(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},j.prototype._wnafMulAdd=function(z,V,Z,T,N){var U=this._wnafT1,D=this._wnafT2,k=this._wnafT3,v=0,x,A,y;for(x=0;x<T;x++){y=V[x];var p=y._getNAFPoints(z);U[x]=p.wnd,D[x]=p.points}for(x=T-1;x>=1;x-=2){var c=x-1,n=x;if(U[c]!==1||U[n]!==1){k[c]=F(Z[c],U[c],this._bitLength),k[n]=F(Z[n],U[n],this._bitLength),v=Math.max(k[c].length,v),v=Math.max(k[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 H0=[-3,-1,-5,-7,0,7,5,1,3],f=S(Z[c],Z[n]);for(v=Math.max(f[0].length,v),k[c]=new Array(v),k[n]=new Array(v),A=0;A<v;A++){var P0=f[0][A]|0,K=f[1][A]|0;k[c][A]=H0[(P0+1)*3+(K+1)],k[n][A]=0,D[c]=i}}var X=this.jpoint(null,null,null),Y=this._wnafT4;for(x=v;x>=0;x--){for(var H=0;x>=0;){var Q=!0;for(A=0;A<T;A++)Y[A]=k[A][x]|0,Y[A]!==0&&(Q=!1);if(!Q)break;H++,x--}if(x>=0&&H++,X=X.dblp(H),x<0)break;for(A=0;A<T;A++){var P=Y[A];P!==0&&(P>0?y=D[A][P-1>>1]:P<0&&(y=D[A][-P-1>>1].neg()),y.type==="affine"?X=X.mixedAdd(y):X=X.add(y))}}for(x=0;x<T;x++)D[x]=null;return N?X:X.toP()};function I(z,V){this.curve=z,this.type=V,this.precomputed=null}j.BasePoint=I,I.prototype.eq=function(){throw new Error("Not implemented")},I.prototype.validate=function(){return this.curve.validate(this)},j.prototype.decodePoint=function(z,V){z=M.toArray(z,V);var Z=this.p.byteLength();if((z[0]===4||z[0]===6||z[0]===7)&&z.length-1===2*Z){z[0]===6?G(z[z.length-1]%2===0):z[0]===7&&G(z[z.length-1]%2===1);var T=this.point(z.slice(1,1+Z),z.slice(1+Z,1+2*Z));return T}else if((z[0]===2||z[0]===3)&&z.length-1===Z)return this.pointFromX(z.slice(1,1+Z),z[0]===3);throw new Error("Unknown point format")},I.prototype.encodeCompressed=function(z){return this.encode(z,!0)},I.prototype._encode=function(z){var V=this.curve.p.byteLength(),Z=this.getX().toArray("be",V);return z?[this.getY().isEven()?2:3].concat(Z):[4].concat(Z,this.getY().toArray("be",V))},I.prototype.encode=function(z,V){return M.encode(this._encode(V),z)},I.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},I.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},I.prototype._getDoubles=function(z,V){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var Z=[this],T=this,N=0;N<V;N+=z){for(var U=0;U<z;U++)T=T.dbl();Z.push(T)}return{step:z,points:Z}},I.prototype._getNAFPoints=function(z){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var V=[this],Z=(1<<z)-1,T=Z===1?null:this.dbl(),N=1;N<Z;N++)V[N]=V[N-1].add(T);return{wnd:z,points:V}},I.prototype._getBeta=function(){return null},I.prototype.dblp=function(z){for(var V=this,Z=0;Z<z;Z++)V=V.dbl();return V}}),r7=G0((l,g)=>{var E=T5(),M=k5(),F=p0(),S=X9(),G=E.assert;function j(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)}F(j,S),g.exports=j,j.prototype._getEndomorphism=function(V){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var Z,T;if(V.beta)Z=new M(V.beta,16).toRed(this.red);else{var N=this._getEndoRoots(this.p);Z=N[0].cmp(N[1])<0?N[0]:N[1],Z=Z.toRed(this.red)}if(V.lambda)T=new M(V.lambda,16);else{var U=this._getEndoRoots(this.n);this.g.mul(U[0]).x.cmp(this.g.x.redMul(Z))===0?T=U[0]:(T=U[1],G(this.g.mul(T).x.cmp(this.g.x.redMul(Z))===0))}var D;return V.basis?D=V.basis.map(function(k){return{a:new M(k.a,16),b:new M(k.b,16)}}):D=this._getEndoBasis(T),{beta:Z,lambda:T,basis:D}}},j.prototype._getEndoRoots=function(V){var Z=V===this.p?this.red:M.mont(V),T=new M(2).toRed(Z).redInvm(),N=T.redNeg(),U=new M(3).toRed(Z).redNeg().redSqrt().redMul(T),D=N.redAdd(U).fromRed(),k=N.redSub(U).fromRed();return[D,k]},j.prototype._getEndoBasis=function(V){for(var Z=this.n.ushrn(Math.floor(this.n.bitLength()/2)),T=V,N=this.n.clone(),U=new M(1),D=new M(0),k=new M(0),v=new M(1),x,A,y,p,c,n,i,H0=0,f,P0;T.cmpn(0)!==0;){var K=N.div(T);f=N.sub(K.mul(T)),P0=k.sub(K.mul(U));var X=v.sub(K.mul(D));if(!y&&f.cmp(Z)<0)x=i.neg(),A=U,y=f.neg(),p=P0;else if(y&&++H0===2)break;i=f,N=T,T=f,k=U,U=P0,v=D,D=X}c=f.neg(),n=P0;var Y=y.sqr().add(p.sqr()),H=c.sqr().add(n.sqr());return H.cmp(Y)>=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}]},j.prototype._endoSplit=function(V){var Z=this.endo.basis,T=Z[0],N=Z[1],U=N.b.mul(V).divRound(this.n),D=T.b.neg().mul(V).divRound(this.n),k=U.mul(T.a),v=D.mul(N.a),x=U.mul(T.b),A=D.mul(N.b),y=V.sub(k).sub(v),p=x.add(A).neg();return{k1:y,k2:p}},j.prototype.pointFromX=function(V,Z){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 U=N.fromRed().isOdd();return(Z&&!U||!Z&&U)&&(N=N.redNeg()),this.point(V,N)},j.prototype.validate=function(V){if(V.inf)return!0;var{x:Z,y:T}=V,N=this.a.redMul(Z),U=Z.redSqr().redMul(Z).redIAdd(N).redIAdd(this.b);return T.redSqr().redISub(U).cmpn(0)===0},j.prototype._endoWnafMulAdd=function(V,Z,T){for(var N=this._endoWnafT1,U=this._endoWnafT2,D=0;D<V.length;D++){var k=this._endoSplit(Z[D]),v=V[D],x=v._getBeta();k.k1.negative&&(k.k1.ineg(),v=v.neg(!0)),k.k2.negative&&(k.k2.ineg(),x=x.neg(!0)),N[D*2]=v,N[D*2+1]=x,U[D*2]=k.k1,U[D*2+1]=k.k2}for(var A=this._wnafMulAdd(1,N,U,D*2,T),y=0;y<D*2;y++)N[y]=null,U[y]=null;return A};function I(V,Z,T,N){S.BasePoint.call(this,V,"affine"),Z===null&&T===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new M(Z,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)}F(I,S.BasePoint),j.prototype.point=function(V,Z,T){return new I(this,V,Z,T)},j.prototype.pointFromJSON=function(V,Z){return I.fromJSON(this,V,Z)},I.prototype._getBeta=function(){if(this.curve.endo){var V=this.precomputed;if(V&&V.beta)return V.beta;var Z=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(V){var T=this.curve,N=function(U){return T.point(U.x.redMul(T.endo.beta),U.y)};V.beta=Z,Z.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 Z}},I.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]},I.fromJSON=function(V,Z,T){typeof Z=="string"&&(Z=JSON.parse(Z));var N=V.point(Z[0],Z[1],T);if(!Z[2])return N;function U(k){return V.point(k[0],k[1],T)}var D=Z[2];return N.precomputed={beta:null,doubles:D.doubles&&{step:D.doubles.step,points:[N].concat(D.doubles.points.map(U))},naf:D.naf&&{wnd:D.naf.wnd,points:[N].concat(D.naf.points.map(U))}},N},I.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)+">"},I.prototype.isInfinity=function(){return this.inf},I.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 Z=this.y.redSub(V.y);Z.cmpn(0)!==0&&(Z=Z.redMul(this.x.redSub(V.x).redInvm()));var T=Z.redSqr().redISub(this.x).redISub(V.x),N=Z.redMul(this.x.redSub(T)).redISub(this.y);return this.curve.point(T,N)},I.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 Z=this.curve.a,T=this.x.redSqr(),N=V.redInvm(),U=T.redAdd(T).redIAdd(T).redIAdd(Z).redMul(N),D=U.redSqr().redISub(this.x.redAdd(this.x)),k=U.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,k)},I.prototype.getX=function(){return this.x.fromRed()},I.prototype.getY=function(){return this.y.fromRed()},I.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)},I.prototype.mulAdd=function(V,Z,T){var N=[this,Z],U=[V,T];return this.curve.endo?this.curve._endoWnafMulAdd(N,U):this.curve._wnafMulAdd(1,N,U,2)},I.prototype.jmulAdd=function(V,Z,T){var N=[this,Z],U=[V,T];return this.curve.endo?this.curve._endoWnafMulAdd(N,U,!0):this.curve._wnafMulAdd(1,N,U,2,!0)},I.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)},I.prototype.neg=function(V){if(this.inf)return this;var Z=this.curve.point(this.x,this.y.redNeg());if(V&&this.precomputed){var T=this.precomputed,N=function(U){return U.neg()};Z.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 Z},I.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,Z,T,N){S.BasePoint.call(this,V,"jacobian"),Z===null&&T===null&&N===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new M(0)):(this.x=new M(Z,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}F(z,S.BasePoint),j.prototype.jpoint=function(V,Z,T){return new z(this,V,Z,T)},z.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var V=this.z.redInvm(),Z=V.redSqr(),T=this.x.redMul(Z),N=this.y.redMul(Z).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 Z=V.z.redSqr(),T=this.z.redSqr(),N=this.x.redMul(Z),U=V.x.redMul(T),D=this.y.redMul(Z.redMul(V.z)),k=V.y.redMul(T.redMul(this.z)),v=N.redSub(U),x=D.redSub(k);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 Z=this.z.redSqr(),T=this.x,N=V.x.redMul(Z),U=this.y,D=V.y.redMul(Z).redMul(this.z),k=T.redSub(N),v=U.redSub(D);if(k.cmpn(0)===0)return v.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=k.redSqr(),A=x.redMul(k),y=T.redMul(x),p=v.redSqr().redIAdd(A).redISub(y).redISub(y),c=v.redMul(y.redISub(p)).redISub(U.redMul(A)),n=this.z.redMul(k);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 Z;if(this.curve.zeroA||this.curve.threeA){var T=this;for(Z=0;Z<V;Z++)T=T.dbl();return T}var N=this.curve.a,U=this.curve.tinv,D=this.x,k=this.y,v=this.z,x=v.redSqr().redSqr(),A=k.redAdd(k);for(Z=0;Z<V;Z++){var y=D.redSqr(),p=A.redSqr(),c=p.redSqr(),n=y.redAdd(y).redIAdd(y).redIAdd(N.redMul(x)),i=D.redMul(p),H0=n.redSqr().redISub(i.redAdd(i)),f=i.redISub(H0),P0=n.redMul(f);P0=P0.redIAdd(P0).redISub(c);var K=A.redMul(v);Z+1<V&&(x=x.redMul(c)),D=H0,v=K,A=P0}return this.curve.jpoint(D,A.redMul(U),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,Z,T;if(this.zOne){var N=this.x.redSqr(),U=this.y.redSqr(),D=U.redSqr(),k=this.x.redAdd(U).redSqr().redISub(N).redISub(D);k=k.redIAdd(k);var v=N.redAdd(N).redIAdd(N),x=v.redSqr().redISub(k).redISub(k),A=D.redIAdd(D);A=A.redIAdd(A),A=A.redIAdd(A),V=x,Z=v.redMul(k.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),H0=i.redSqr(),f=c.redIAdd(c);f=f.redIAdd(f),f=f.redIAdd(f),V=H0.redISub(n).redISub(n),Z=i.redMul(n.redISub(V)).redISub(f),T=this.y.redMul(this.z),T=T.redIAdd(T)}return this.curve.jpoint(V,Z,T)},z.prototype._threeDbl=function(){var V,Z,T;if(this.zOne){var N=this.x.redSqr(),U=this.y.redSqr(),D=U.redSqr(),k=this.x.redAdd(U).redSqr().redISub(N).redISub(D);k=k.redIAdd(k);var v=N.redAdd(N).redIAdd(N).redIAdd(this.curve.a),x=v.redSqr().redISub(k).redISub(k);V=x;var A=D.redIAdd(D);A=A.redIAdd(A),A=A.redIAdd(A),Z=v.redMul(k.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 H0=i.redAdd(i);V=n.redSqr().redISub(H0),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),Z=n.redMul(i.redISub(V)).redISub(f)}return this.curve.jpoint(V,Z,T)},z.prototype._dbl=function(){var V=this.curve.a,Z=this.x,T=this.y,N=this.z,U=N.redSqr().redSqr(),D=Z.redSqr(),k=T.redSqr(),v=D.redAdd(D).redIAdd(D).redIAdd(V.redMul(U)),x=Z.redAdd(Z);x=x.redIAdd(x);var A=x.redMul(k),y=v.redSqr().redISub(A.redAdd(A)),p=A.redISub(y),c=k.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(),Z=this.y.redSqr(),T=this.z.redSqr(),N=Z.redSqr(),U=V.redAdd(V).redIAdd(V),D=U.redSqr(),k=this.x.redAdd(Z).redSqr().redISub(V).redISub(N);k=k.redIAdd(k),k=k.redAdd(k).redIAdd(k),k=k.redISub(D);var v=k.redSqr(),x=N.redIAdd(N);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var A=U.redIAdd(k).redSqr().redISub(D).redISub(v).redISub(x),y=Z.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(k.redMul(v)));c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var n=this.z.redAdd(k).redSqr().redISub(T).redISub(v);return this.curve.jpoint(p,c,n)},z.prototype.mul=function(V,Z){return V=new M(V,Z),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 Z=this.z.redSqr(),T=V.z.redSqr();if(this.x.redMul(T).redISub(V.x.redMul(Z)).cmpn(0)!==0)return!1;var N=Z.redMul(this.z),U=T.redMul(V.z);return this.y.redMul(U).redISub(V.y.redMul(N)).cmpn(0)===0},z.prototype.eqXToP=function(V){var Z=this.z.redSqr(),T=V.toRed(this.curve.red).redMul(Z);if(this.x.cmp(T)===0)return!0;for(var N=V.clone(),U=this.curve.redN.redMul(Z);;){if(N.iadd(this.curve.n),N.cmp(this.curve.p)>=0)return!1;if(T.redIAdd(U),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}}),i7=G0((l,g)=>{var E=k5(),M=p0(),F=X9(),S=T5();function G(I){F.call(this,"mont",I),this.a=new E(I.a,16).toRed(this.red),this.b=new E(I.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(G,F),g.exports=G,G.prototype.validate=function(I){var z=I.normalize().x,V=z.redSqr(),Z=V.redMul(z).redAdd(V.redMul(this.a)).redAdd(z),T=Z.redSqrt();return T.redSqr().cmp(Z)===0};function j(I,z,V){F.BasePoint.call(this,I,"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(j,F.BasePoint),G.prototype.decodePoint=function(I,z){return this.point(S.toArray(I,z),1)},G.prototype.point=function(I,z){return new j(this,I,z)},G.prototype.pointFromJSON=function(I){return j.fromJSON(this,I)},j.prototype.precompute=function(){},j.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},j.fromJSON=function(I,z){return new j(I,z[0],z[1]||I.one)},j.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)+">"},j.prototype.isInfinity=function(){return this.z.cmpn(0)===0},j.prototype.dbl=function(){var I=this.x.redAdd(this.z),z=I.redSqr(),V=this.x.redSub(this.z),Z=V.redSqr(),T=z.redSub(Z),N=z.redMul(Z),U=T.redMul(Z.redAdd(this.curve.a24.redMul(T)));return this.curve.point(N,U)},j.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},j.prototype.diffAdd=function(I,z){var V=this.x.redAdd(this.z),Z=this.x.redSub(this.z),T=I.x.redAdd(I.z),N=I.x.redSub(I.z),U=N.redMul(V),D=T.redMul(Z),k=z.z.redMul(U.redAdd(D).redSqr()),v=z.x.redMul(U.redISub(D).redSqr());return this.curve.point(k,v)},j.prototype.mul=function(I){for(var z=I.clone(),V=this,Z=this.curve.point(null,null),T=this,N=[];z.cmpn(0)!==0;z.iushrn(1))N.push(z.andln(1));for(var U=N.length-1;U>=0;U--)N[U]===0?(V=V.diffAdd(Z,T),Z=Z.dbl()):(Z=V.diffAdd(Z,T),V=V.dbl());return Z},j.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},j.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},j.prototype.eq=function(I){return this.getX().cmp(I.getX())===0},j.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},j.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),t7=G0((l,g)=>{var E=T5(),M=k5(),F=p0(),S=X9(),G=E.assert;function j(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),G(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(z.c|0)===1}F(j,S),g.exports=j,j.prototype._mulA=function(z){return this.mOneA?z.redNeg():this.a.redMul(z)},j.prototype._mulC=function(z){return this.oneC?z:this.c.redMul(z)},j.prototype.jpoint=function(z,V,Z,T){return this.point(z,V,Z,T)},j.prototype.pointFromX=function(z,V){z=new M(z,16),z.red||(z=z.toRed(this.red));var Z=z.redSqr(),T=this.c2.redSub(this.a.redMul(Z)),N=this.one.redSub(this.c2.redMul(this.d).redMul(Z)),U=T.redMul(N.redInvm()),D=U.redSqrt();if(D.redSqr().redSub(U).cmp(this.zero)!==0)throw new Error("invalid point");var k=D.fromRed().isOdd();return(V&&!k||!V&&k)&&(D=D.redNeg()),this.point(z,D)},j.prototype.pointFromY=function(z,V){z=new M(z,16),z.red||(z=z.toRed(this.red));var Z=z.redSqr(),T=Z.redSub(this.c2),N=Z.redMul(this.d).redMul(this.c2).redSub(this.a),U=T.redMul(N.redInvm());if(U.cmp(this.zero)===0){if(V)throw new Error("invalid point");return this.point(this.zero,z)}var D=U.redSqrt();if(D.redSqr().redSub(U).cmp(this.zero)!==0)throw new Error("invalid point");return D.fromRed().isOdd()!==V&&(D=D.redNeg()),this.point(D,z)},j.prototype.validate=function(z){if(z.isInfinity())return!0;z.normalize();var V=z.x.redSqr(),Z=z.y.redSqr(),T=V.redMul(this.a).redAdd(Z),N=this.c2.redMul(this.one.redAdd(this.d.redMul(V).redMul(Z)));return T.cmp(N)===0};function I(z,V,Z,T,N){S.BasePoint.call(this,z,"projective"),V===null&&Z===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(Z,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()))))}F(I,S.BasePoint),j.prototype.pointFromJSON=function(z){return I.fromJSON(this,z)},j.prototype.point=function(z,V,Z,T){return new I(this,z,V,Z,T)},I.fromJSON=function(z,V){return new I(z,V[0],V[1],V[2])},I.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)+">"},I.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},I.prototype._extDbl=function(){var z=this.x.redSqr(),V=this.y.redSqr(),Z=this.z.redSqr();Z=Z.redIAdd(Z);var T=this.curve._mulA(z),N=this.x.redAdd(this.y).redSqr().redISub(z).redISub(V),U=T.redAdd(V),D=U.redSub(Z),k=T.redSub(V),v=N.redMul(D),x=U.redMul(k),A=N.redMul(k),y=D.redMul(U);return this.curve.point(v,x,y,A)},I.prototype._projDbl=function(){var z=this.x.redAdd(this.y).redSqr(),V=this.x.redSqr(),Z=this.y.redSqr(),T,N,U,D,k,v;if(this.curve.twisted){D=this.curve._mulA(V);var x=D.redAdd(Z);this.zOne?(T=z.redSub(V).redSub(Z).redMul(x.redSub(this.curve.two)),N=x.redMul(D.redSub(Z)),U=x.redSqr().redSub(x).redSub(x)):(k=this.z.redSqr(),v=x.redSub(k).redISub(k),T=z.redSub(V).redISub(Z).redMul(v),N=x.redMul(D.redSub(Z)),U=x.redMul(v))}else D=V.redAdd(Z),k=this.curve._mulC(this.z).redSqr(),v=D.redSub(k).redSub(k),T=this.curve._mulC(z.redISub(D)).redMul(v),N=this.curve._mulC(D).redMul(V.redISub(Z)),U=D.redMul(v);return this.curve.point(T,N,U)},I.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},I.prototype._extAdd=function(z){var V=this.y.redSub(this.x).redMul(z.y.redSub(z.x)),Z=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)),U=Z.redSub(V),D=N.redSub(T),k=N.redAdd(T),v=Z.redAdd(V),x=U.redMul(D),A=k.redMul(v),y=U.redMul(v),p=D.redMul(k);return this.curve.point(x,A,p,y)},I.prototype._projAdd=function(z){var V=this.z.redMul(z.z),Z=V.redSqr(),T=this.x.redMul(z.x),N=this.y.redMul(z.y),U=this.curve.d.redMul(T).redMul(N),D=Z.redSub(U),k=Z.redAdd(U),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(k).redMul(N.redSub(this.curve._mulA(T))),y=D.redMul(k)):(A=V.redMul(k).redMul(N.redSub(T)),y=this.curve._mulC(D).redMul(k)),this.curve.point(x,A,y)},I.prototype.add=function(z){return this.isInfinity()?z:z.isInfinity()?this:this.curve.extended?this._extAdd(z):this._projAdd(z)},I.prototype.mul=function(z){return this._hasDoubles(z)?this.curve._fixedNafMul(this,z):this.curve._wnafMul(this,z)},I.prototype.mulAdd=function(z,V,Z){return this.curve._wnafMulAdd(1,[this,V],[z,Z],2,!1)},I.prototype.jmulAdd=function(z,V,Z){return this.curve._wnafMulAdd(1,[this,V],[z,Z],2,!0)},I.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},I.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},I.prototype.getX=function(){return this.normalize(),this.x.fromRed()},I.prototype.getY=function(){return this.normalize(),this.y.fromRed()},I.prototype.eq=function(z){return this===z||this.getX().cmp(z.getX())===0&&this.getY().cmp(z.getY())===0},I.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=z.clone(),T=this.curve.redN.redMul(this.z);;){if(Z.iadd(this.curve.n),Z.cmp(this.curve.p)>=0)return!1;if(V.redIAdd(T),this.x.cmp(V)===0)return!0}},I.prototype.toP=I.prototype.normalize,I.prototype.mixedAdd=I.prototype.add}),R6=G0((l)=>{var g=l;g.base=X9(),g.short=r7(),g.mont=i7(),g.edwards=t7()}),D5=G0((l)=>{var g=O5(),E=p0();l.inherits=E;function M(X,Y){return(X.charCodeAt(Y)&64512)!==55296||Y<0||Y+1>=X.length?!1:(X.charCodeAt(Y+1)&64512)===56320}function F(X,Y){if(Array.isArray(X))return X.slice();if(!X)return[];var H=[];if(typeof X=="string")if(Y){if(Y==="hex")for(X=X.replace(/[^a-z0-9]+/ig,""),X.length%2!==0&&(X="0"+X),P=0;P<X.length;P+=2)H.push(parseInt(X[P]+X[P+1],16))}else for(var Q=0,P=0;P<X.length;P++){var W=X.charCodeAt(P);W<128?H[Q++]=W:W<2048?(H[Q++]=W>>6|192,H[Q++]=W&63|128):M(X,P)?(W=65536+((W&1023)<<10)+(X.charCodeAt(++P)&1023),H[Q++]=W>>18|240,H[Q++]=W>>12&63|128,H[Q++]=W>>6&63|128,H[Q++]=W&63|128):(H[Q++]=W>>12|224,H[Q++]=W>>6&63|128,H[Q++]=W&63|128)}else for(P=0;P<X.length;P++)H[P]=X[P]|0;return H}l.toArray=F;function S(X){for(var Y="",H=0;H<X.length;H++)Y+=I(X[H].toString(16));return Y}l.toHex=S;function G(X){var Y=X>>>24|X>>>8&65280|X<<8&16711680|(X&255)<<24;return Y>>>0}l.htonl=G;function j(X,Y){for(var H="",Q=0;Q<X.length;Q++){var P=X[Q];Y==="little"&&(P=G(P)),H+=z(P.toString(16))}return H}l.toHex32=j;function I(X){return X.length===1?"0"+X:X}l.zero2=I;function z(X){return X.length===7?"0"+X:X.length===6?"00"+X:X.length===5?"000"+X:X.length===4?"0000"+X:X.length===3?"00000"+X:X.length===2?"000000"+X:X.length===1?"0000000"+X:X}l.zero8=z;function V(X,Y,H,Q){var P=H-Y;g(P%4===0);for(var W=new Array(P/4),$=0,C=Y;$<W.length;$++,C+=4){var J;Q==="big"?J=X[C]<<24|X[C+1]<<16|X[C+2]<<8|X[C+3]:J=X[C+3]<<24|X[C+2]<<16|X[C+1]<<8|X[C],W[$]=J>>>0}return W}l.join32=V;function Z(X,Y){for(var H=new Array(X.length*4),Q=0,P=0;Q<X.length;Q++,P+=4){var W=X[Q];Y==="big"?(H[P]=W>>>24,H[P+1]=W>>>16&255,H[P+2]=W>>>8&255,H[P+3]=W&255):(H[P+3]=W>>>24,H[P+2]=W>>>16&255,H[P+1]=W>>>8&255,H[P]=W&255)}return H}l.split32=Z;function T(X,Y){return X>>>Y|X<<32-Y}l.rotr32=T;function N(X,Y){return X<<Y|X>>>32-Y}l.rotl32=N;function U(X,Y){return X+Y>>>0}l.sum32=U;function D(X,Y,H){return X+Y+H>>>0}l.sum32_3=D;function k(X,Y,H,Q){return X+Y+H+Q>>>0}l.sum32_4=k;function v(X,Y,H,Q,P){return X+Y+H+Q+P>>>0}l.sum32_5=v;function x(X,Y,H,Q){var P=X[Y],W=X[Y+1],$=Q+W>>>0,C=($<Q?1:0)+H+P;X[Y]=C>>>0,X[Y+1]=$}l.sum64=x;function A(X,Y,H,Q){var P=Y+Q>>>0,W=(P<Y?1:0)+X+H;return W>>>0}l.sum64_hi=A;function y(X,Y,H,Q){var P=Y+Q;return P>>>0}l.sum64_lo=y;function p(X,Y,H,Q,P,W,$,C){var J=0,R=Y;R=R+Q>>>0,J+=R<Y?1:0,R=R+W>>>0,J+=R<W?1:0,R=R+C>>>0,J+=R<C?1:0;var L=X+H+P+$+J;return L>>>0}l.sum64_4_hi=p;function c(X,Y,H,Q,P,W,$,C){var J=Y+Q+W+C;return J>>>0}l.sum64_4_lo=c;function n(X,Y,H,Q,P,W,$,C,J,R){var L=0,_=Y;_=_+Q>>>0,L+=_<Y?1:0,_=_+W>>>0,L+=_<W?1:0,_=_+C>>>0,L+=_<C?1:0,_=_+R>>>0,L+=_<R?1:0;var s=X+H+P+$+J+L;return s>>>0}l.sum64_5_hi=n;function i(X,Y,H,Q,P,W,$,C,J,R){var L=Y+Q+W+C+R;return L>>>0}l.sum64_5_lo=i;function H0(X,Y,H){var Q=Y<<32-H|X>>>H;return Q>>>0}l.rotr64_hi=H0;function f(X,Y,H){var Q=X<<32-H|Y>>>H;return Q>>>0}l.rotr64_lo=f;function P0(X,Y,H){return X>>>H}l.shr64_hi=P0;function K(X,Y,H){var Q=X<<32-H|Y>>>H;return Q>>>0}l.shr64_lo=K}),o5=G0((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(F,S){if(F=g.toArray(F,S),this.pending?this.pending=this.pending.concat(F):this.pending=F,this.pendingTotal+=F.length,this.pending.length>=this._delta8){F=this.pending;var G=F.length%this._delta8;this.pending=F.slice(F.length-G,F.length),this.pending.length===0&&(this.pending=null),F=g.join32(F,0,F.length-G,this.endian);for(var j=0;j<F.length;j+=this._delta32)this._update(F,j,j+this._delta32)}return this},M.prototype.digest=function(F){return this.update(this._pad()),E(this.pending===null),this._digest(F)},M.prototype._pad=function(){var F=this.pendingTotal,S=this._delta8,G=S-(F+this.padLength)%S,j=new Array(G+this.padLength);j[0]=128;for(var I=1;I<G;I++)j[I]=0;if(F<<=3,this.endian==="big"){for(var z=8;z<this.padLength;z++)j[I++]=0;j[I++]=0,j[I++]=0,j[I++]=0,j[I++]=0,j[I++]=F>>>24&255,j[I++]=F>>>16&255,j[I++]=F>>>8&255,j[I++]=F&255}else for(j[I++]=F&255,j[I++]=F>>>8&255,j[I++]=F>>>16&255,j[I++]=F>>>24&255,j[I++]=0,j[I++]=0,j[I++]=0,j[I++]=0,z=8;z<this.padLength;z++)j[I++]=0;return j}}),E6=G0((l)=>{var g=D5(),E=g.rotr32;function M(Z,T,N,U){if(Z===0)return F(T,N,U);if(Z===1||Z===3)return G(T,N,U);if(Z===2)return S(T,N,U)}l.ft_1=M;function F(Z,T,N){return Z&T^~Z&N}l.ch32=F;function S(Z,T,N){return Z&T^Z&N^T&N}l.maj32=S;function G(Z,T,N){return Z^T^N}l.p32=G;function j(Z){return E(Z,2)^E(Z,13)^E(Z,22)}l.s0_256=j;function I(Z){return E(Z,6)^E(Z,11)^E(Z,25)}l.s1_256=I;function z(Z){return E(Z,7)^E(Z,18)^Z>>>3}l.g0_256=z;function V(Z){return E(Z,17)^E(Z,19)^Z>>>10}l.g1_256=V}),e7=G0((l,g)=>{var E=D5(),M=o5(),F=E6(),S=E.rotl32,G=E.sum32,j=E.sum32_5,I=F.ft_1,z=M.BlockHash,V=[1518500249,1859775393,2400959708,3395469782];function Z(){if(!(this instanceof Z))return new Z;z.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}E.inherits(Z,z),g.exports=Z,Z.blockSize=512,Z.outSize=160,Z.hmacStrength=80,Z.padLength=64,Z.prototype._update=function(T,N){for(var U=this.W,D=0;D<16;D++)U[D]=T[N+D];for(;D<U.length;D++)U[D]=S(U[D-3]^U[D-8]^U[D-14]^U[D-16],1);var k=this.h[0],v=this.h[1],x=this.h[2],A=this.h[3],y=this.h[4];for(D=0;D<U.length;D++){var p=~~(D/20),c=j(S(k,5),I(p,v,x,A),y,U[D],V[p]);y=A,A=x,x=S(v,30),v=k,k=c}this.h[0]=G(this.h[0],k),this.h[1]=G(this.h[1],v),this.h[2]=G(this.h[2],x),this.h[3]=G(this.h[3],A),this.h[4]=G(this.h[4],y)},Z.prototype._digest=function(T){return T==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),S6=G0((l,g)=>{var E=D5(),M=o5(),F=E6(),S=O5(),G=E.sum32,j=E.sum32_4,I=E.sum32_5,z=F.ch32,V=F.maj32,Z=F.s0_256,T=F.s1_256,N=F.g0_256,U=F.g1_256,D=M.BlockHash,k=[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=k,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]=j(U(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],H0=this.h[3],f=this.h[4],P0=this.h[5],K=this.h[6],X=this.h[7];for(S(this.k.length===y.length),p=0;p<y.length;p++){var Y=I(X,T(f),z(f,P0,K),this.k[p],y[p]),H=G(Z(c),V(c,n,i));X=K,K=P0,P0=f,f=G(H0,Y),H0=i,i=n,n=c,c=G(Y,H)}this.h[0]=G(this.h[0],c),this.h[1]=G(this.h[1],n),this.h[2]=G(this.h[2],i),this.h[3]=G(this.h[3],H0),this.h[4]=G(this.h[4],f),this.h[5]=G(this.h[5],P0),this.h[6]=G(this.h[6],K),this.h[7]=G(this.h[7],X)},v.prototype._digest=function(x){return x==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),K8=G0((l,g)=>{var E=D5(),M=S6();function F(){if(!(this instanceof F))return new F;M.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}E.inherits(F,M),g.exports=F,F.blockSize=512,F.outSize=224,F.hmacStrength=192,F.padLength=64,F.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,7),"big"):E.split32(this.h.slice(0,7),"big")}}),x6=G0((l,g)=>{var E=D5(),M=o5(),F=O5(),S=E.rotr64_hi,G=E.rotr64_lo,j=E.shr64_hi,I=E.shr64_lo,z=E.sum64,V=E.sum64_hi,Z=E.sum64_lo,T=E.sum64_4_hi,N=E.sum64_4_lo,U=E.sum64_5_hi,D=E.sum64_5_lo,k=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;k.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,k),g.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(H,Q){for(var P=this.W,W=0;W<32;W++)P[W]=H[Q+W];for(;W<P.length;W+=2){var $=X(P[W-4],P[W-3]),C=Y(P[W-4],P[W-3]),J=P[W-14],R=P[W-13],L=P0(P[W-30],P[W-29]),_=K(P[W-30],P[W-29]),s=P[W-32],r=P[W-31];P[W]=T($,C,J,R,L,_,s,r),P[W+1]=N($,C,J,R,L,_,s,r)}},x.prototype._update=function(H,Q){this._prepareBlock(H,Q);var P=this.W,W=this.h[0],$=this.h[1],C=this.h[2],J=this.h[3],R=this.h[4],L=this.h[5],_=this.h[6],s=this.h[7],r=this.h[8],X0=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];F(this.k.length===P.length);for(var w=0;w<P.length;w+=2){var q=K0,m=Q0,e=H0(r,X0),C0=f(r,X0),t=A(r,X0,u,d,a,V0),_0=y(r,X0,u,d,a,V0),$0=this.k[w],J0=this.k[w+1],w0=P[w],U0=P[w+1],W0=U(q,m,e,C0,t,_0,$0,J0,w0,U0),c0=D(q,m,e,C0,t,_0,$0,J0,w0,U0);q=n(W,$),m=i(W,$),e=p(W,$,C,J,R,L),C0=c(W,$,C,J,R,L);var O=V(q,m,e,C0),B=Z(q,m,e,C0);K0=a,Q0=V0,a=u,V0=d,u=r,d=X0,r=V(_,s,W0,c0),X0=Z(s,s,W0,c0),_=R,s=L,R=C,L=J,C=W,J=$,W=V(W0,c0,O,B),$=Z(W0,c0,O,B)}z(this.h,0,W,$),z(this.h,2,C,J),z(this.h,4,R,L),z(this.h,6,_,s),z(this.h,8,r,X0),z(this.h,10,u,d),z(this.h,12,a,V0),z(this.h,14,K0,Q0)},x.prototype._digest=function(H){return H==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")};function A(H,Q,P,W,$){var C=H&P^~H&$;return C<0&&(C+=4294967296),C}function y(H,Q,P,W,$,C){var J=Q&W^~Q&C;return J<0&&(J+=4294967296),J}function p(H,Q,P,W,$){var C=H&P^H&$^P&$;return C<0&&(C+=4294967296),C}function c(H,Q,P,W,$,C){var J=Q&W^Q&C^W&C;return J<0&&(J+=4294967296),J}function n(H,Q){var P=S(H,Q,28),W=S(Q,H,2),$=S(Q,H,7),C=P^W^$;return C<0&&(C+=4294967296),C}function i(H,Q){var P=G(H,Q,28),W=G(Q,H,2),$=G(Q,H,7),C=P^W^$;return C<0&&(C+=4294967296),C}function H0(H,Q){var P=S(H,Q,14),W=S(H,Q,18),$=S(Q,H,9),C=P^W^$;return C<0&&(C+=4294967296),C}function f(H,Q){var P=G(H,Q,14),W=G(H,Q,18),$=G(Q,H,9),C=P^W^$;return C<0&&(C+=4294967296),C}function P0(H,Q){var P=S(H,Q,1),W=S(H,Q,8),$=j(H,Q,7),C=P^W^$;return C<0&&(C+=4294967296),C}function K(H,Q){var P=G(H,Q,1),W=G(H,Q,8),$=I(H,Q,7),C=P^W^$;return C<0&&(C+=4294967296),C}function X(H,Q){var P=S(H,Q,19),W=S(Q,H,29),$=j(H,Q,6),C=P^W^$;return C<0&&(C+=4294967296),C}function Y(H,Q){var P=G(H,Q,19),W=G(Q,H,29),$=I(H,Q,6),C=P^W^$;return C<0&&(C+=4294967296),C}}),C8=G0((l,g)=>{var E=D5(),M=x6();function F(){if(!(this instanceof F))return new F;M.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}E.inherits(F,M),g.exports=F,F.blockSize=1024,F.outSize=384,F.hmacStrength=192,F.padLength=128,F.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,12),"big"):E.split32(this.h.slice(0,12),"big")}}),X8=G0((l)=>{l.sha1=e7(),l.sha224=K8(),l.sha256=S6(),l.sha384=C8(),l.sha512=x6()}),H8=G0((l)=>{var g=D5(),E=o5(),M=g.rotl32,F=g.sum32,S=g.sum32_3,G=g.sum32_4,j=E.BlockHash;function I(){if(!(this instanceof I))return new I;j.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}g.inherits(I,j),l.ripemd160=I,I.blockSize=512,I.outSize=160,I.hmacStrength=192,I.padLength=64,I.prototype._update=function(k,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,H0=y,f=p,P0=c,K=0;K<80;K++){var X=F(M(G(x,z(K,A,y,p),k[T[K]+v],V(K)),U[K]),c);x=c,c=p,p=M(y,10),y=A,A=X,X=F(M(G(n,z(79-K,i,H0,f),k[N[K]+v],Z(K)),D[K]),P0),n=P0,P0=f,f=M(H0,10),H0=i,i=X}X=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,H0),this.h[0]=X},I.prototype._digest=function(k){return k==="hex"?g.toHex32(this.h,"little"):g.split32(this.h,"little")};function z(k,v,x,A){return k<=15?v^x^A:k<=31?v&x|~v&A:k<=47?(v|~x)^A:k<=63?v&A|x&~A:v^(x|~A)}function V(k){return k<=15?0:k<=31?1518500249:k<=47?1859775393:k<=63?2400959708:2840853838}function Z(k){return k<=15?1352829926:k<=31?1548603684:k<=47?1836072691:k<=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],U=[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]}),Y8=G0((l,g)=>{var E=D5(),M=O5();function F(S,G,j){if(!(this instanceof F))return new F(S,G,j);this.Hash=S,this.blockSize=S.blockSize/8,this.outSize=S.outSize/8,this.inner=null,this.outer=null,this._init(E.toArray(G,j))}g.exports=F,F.prototype._init=function(S){S.length>this.blockSize&&(S=new this.Hash().update(S).digest()),M(S.length<=this.blockSize);for(var G=S.length;G<this.blockSize;G++)S.push(0);for(G=0;G<S.length;G++)S[G]^=54;for(this.inner=new this.Hash().update(S),G=0;G<S.length;G++)S[G]^=106;this.outer=new this.Hash().update(S)},F.prototype.update=function(S,G){return this.inner.update(S,G),this},F.prototype.digest=function(S){return this.outer.update(this.inner.digest()),this.outer.digest(S)}}),S9=G0((l)=>{var g=l;g.utils=D5(),g.common=o5(),g.sha=X8(),g.ripemd=H8(),g.hmac=Y8(),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}),Q8=G0((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"]]}}}),x9=G0((l)=>{var g=l,E=S9(),M=R6(),F=T5(),S=F.assert;function G(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=G;function j(z,V){Object.defineProperty(g,z,{configurable:!0,enumerable:!0,get:function(){var Z=new G(V);return Object.defineProperty(g,z,{configurable:!0,enumerable:!0,value:Z}),Z}})}j("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"]}),j("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"]}),j("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"]}),j("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"]}),j("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"]}),j("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"]}),j("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 I;try{I=Q8()}catch{I=void 0}j("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",I]})}),$8=G0((l,g)=>{var E=S9(),M=B6(),F=O5();function S(G){if(!(this instanceof S))return new S(G);this.hash=G.hash,this.predResist=!!G.predResist,this.outLen=this.hash.outSize,this.minEntropy=G.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var j=M.toArray(G.entropy,G.entropyEnc||"hex"),I=M.toArray(G.nonce,G.nonceEnc||"hex"),z=M.toArray(G.pers,G.persEnc||"hex");F(j.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(j,I,z)}g.exports=S,S.prototype._init=function(G,j,I){var z=G.concat(j).concat(I);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(G){var j=this._hmac().update(this.V).update([0]);G&&(j=j.update(G)),this.K=j.digest(),this.V=this._hmac().update(this.V).digest(),G&&(this.K=this._hmac().update(this.V).update([1]).update(G).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(G,j,I,z){typeof j!="string"&&(z=I,I=j,j=null),G=M.toArray(G,j),I=M.toArray(I,z),F(G.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(G.concat(I||[])),this._reseed=1},S.prototype.generate=function(G,j,I,z){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof j!="string"&&(z=I,I=j,j=null),I&&(I=M.toArray(I,z||"hex"),this._update(I));for(var V=[];V.length<G;)this.V=this._hmac().update(this.V).digest(),V=V.concat(this.V);var Z=V.slice(0,G);return this._update(I),this._reseed++,M.encode(Z,j)}}),G8=G0((l,g)=>{var E=k5(),M=T5(),F=M.assert;function S(G,j){this.ec=G,this.priv=null,this.pub=null,j.priv&&this._importPrivate(j.priv,j.privEnc),j.pub&&this._importPublic(j.pub,j.pubEnc)}g.exports=S,S.fromPublic=function(G,j,I){return j instanceof S?j:new S(G,{pub:j,pubEnc:I})},S.fromPrivate=function(G,j,I){return j instanceof S?j:new S(G,{priv:j,privEnc:I})},S.prototype.validate=function(){var G=this.getPublic();return G.isInfinity()?{result:!1,reason:"Invalid public key"}:G.validate()?G.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(G,j){return typeof G=="string"&&(j=G,G=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),j?this.pub.encode(j,G):this.pub},S.prototype.getPrivate=function(G){return G==="hex"?this.priv.toString(16,2):this.priv},S.prototype._importPrivate=function(G,j){this.priv=new E(G,j||16),this.priv=this.priv.umod(this.ec.curve.n)},S.prototype._importPublic=function(G,j){if(G.x||G.y){this.ec.curve.type==="mont"?F(G.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&F(G.x&&G.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(G.x,G.y);return}this.pub=this.ec.curve.decodePoint(G,j)},S.prototype.derive=function(G){return G.validate()||F(G.validate(),"public point not validated"),G.mul(this.priv).getX()},S.prototype.sign=function(G,j,I){return this.ec.sign(G,this,j,I)},S.prototype.verify=function(G,j){return this.ec.verify(G,j,this)},S.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),J8=G0((l,g)=>{var E=k5(),M=T5(),F=M.assert;function S(V,Z){if(V instanceof S)return V;this._importDER(V,Z)||(F(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 G(){this.place=0}function j(V,Z){var T=V[Z.place++];if(!(T&128))return T;var N=T&15;if(N===0||N>4)return!1;for(var U=0,D=0,k=Z.place;D<N;D++,k++)U<<=8,U|=V[k],U>>>=0;return U<=127?!1:(Z.place=k,U)}function I(V){for(var Z=0,T=V.length-1;!V[Z]&&!(V[Z+1]&128)&&Z<T;)Z++;return Z===0?V:V.slice(Z)}S.prototype._importDER=function(V,Z){V=M.toArray(V,Z);var T=new G;if(V[T.place++]!==48)return!1;var N=j(V,T);if(N===!1||N+T.place!==V.length||V[T.place++]!==2)return!1;var U=j(V,T);if(U===!1)return!1;var D=V.slice(T.place,U+T.place);if(T.place+=U,V[T.place++]!==2)return!1;var k=j(V,T);if(k===!1||V.length!==k+T.place)return!1;var v=V.slice(T.place,k+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,Z){if(Z<128){V.push(Z);return}var T=1+(Math.log(Z)/Math.LN2>>>3);for(V.push(T|128);--T;)V.push(Z>>>(T<<3)&255);V.push(Z)}S.prototype.toDER=function(V){var Z=this.r.toArray(),T=this.s.toArray();for(Z[0]&128&&(Z=[0].concat(Z)),T[0]&128&&(T=[0].concat(T)),Z=I(Z),T=I(T);!T[0]&&!(T[1]&128);)T=T.slice(1);var N=[2];z(N,Z.length),N=N.concat(Z),N.push(2),z(N,T.length);var U=N.concat(T),D=[48];return z(D,U.length),D=D.concat(U),M.encode(D,V)}}),P8=G0((l,g)=>{var E=k5(),M=$8(),F=T5(),S=x9(),G=q9(),j=F.assert,I=G8(),z=J8();function V(Z){if(!(this instanceof V))return new V(Z);typeof Z=="string"&&(j(Object.prototype.hasOwnProperty.call(S,Z),"Unknown curve "+Z),Z=S[Z]),Z instanceof S.PresetCurve&&(Z={curve:Z}),this.curve=Z.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=Z.curve.g,this.g.precompute(Z.curve.n.bitLength()+1),this.hash=Z.hash||Z.curve.hash}g.exports=V,V.prototype.keyPair=function(Z){return new I(this,Z)},V.prototype.keyFromPrivate=function(Z,T){return I.fromPrivate(this,Z,T)},V.prototype.keyFromPublic=function(Z,T){return I.fromPublic(this,Z,T)},V.prototype.genKeyPair=function(Z){Z||(Z={});for(var T=new M({hash:this.hash,pers:Z.pers,persEnc:Z.persEnc||"utf8",entropy:Z.entropy||G(this.hash.hmacStrength),entropyEnc:Z.entropy&&Z.entropyEnc||"utf8",nonce:this.n.toArray()}),N=this.n.byteLength(),U=this.n.sub(new E(2));;){var D=new E(T.generate(N));if(!(D.cmp(U)>0))return D.iaddn(1),this.keyFromPrivate(D)}},V.prototype._truncateToN=function(Z,T){var N=Z.byteLength()*8-this.n.bitLength();return N>0&&(Z=Z.ushrn(N)),!T&&Z.cmp(this.n)>=0?Z.sub(this.n):Z},V.prototype.sign=function(Z,T,N,U){typeof N=="object"&&(U=N,N=null),U||(U={}),T=this.keyFromPrivate(T,N),Z=this._truncateToN(new E(Z,16));for(var D=this.n.byteLength(),k=T.getPrivate().toArray("be",D),v=Z.toArray("be",D),x=new M({hash:this.hash,entropy:k,nonce:v,pers:U.pers,persEnc:U.persEnc||"utf8"}),A=this.n.sub(new E(1)),y=0;;y++){var p=U.k?U.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 H0=p.invm(this.n).mul(i.mul(T.getPrivate()).iadd(Z));if(H0=H0.umod(this.n),H0.cmpn(0)!==0){var f=(c.getY().isOdd()?1:0)|(n.cmp(i)!==0?2:0);return U.canonical&&H0.cmp(this.nh)>0&&(H0=this.n.sub(H0),f^=1),new z({r:i,s:H0,recoveryParam:f})}}}}}},V.prototype.verify=function(Z,T,N,U){Z=this._truncateToN(new E(Z,16)),N=this.keyFromPublic(N,U),T=new z(T,"hex");var{r:D,s:k}=T;if(D.cmpn(1)<0||D.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var v=k.invm(this.n),x=v.mul(Z).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(Z,T,N,U){j((3&N)===N,"The recovery param is more than two bits"),T=new z(T,U);var D=this.n,k=new E(Z),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(k).mul(p).umod(D),n=x.mul(p).umod(D);return this.g.mulAdd(c,v,n)},V.prototype.getKeyRecoveryParam=function(Z,T,N,U){if(T=new z(T,U),T.recoveryParam!==null)return T.recoveryParam;for(var D=0;D<4;D++){var k;try{k=this.recoverPubKey(Z,T,D)}catch{continue}if(k.eq(N))return D}throw new Error("Unable to find valid recovery factor")}}),W8=G0((l,g)=>{var E=T5(),M=E.assert,F=E.parseBytes,S=E.cachedProperty;function G(j,I){this.eddsa=j,this._secret=F(I.secret),j.isPoint(I.pub)?this._pub=I.pub:this._pubBytes=F(I.pub)}G.fromPublic=function(j,I){return I instanceof G?I:new G(j,{pub:I})},G.fromSecret=function(j,I){return I instanceof G?I:new G(j,{secret:I})},G.prototype.secret=function(){return this._secret},S(G,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),S(G,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),S(G,"privBytes",function(){var j=this.eddsa,I=this.hash(),z=j.encodingLength-1,V=I.slice(0,j.encodingLength);return V[0]&=248,V[z]&=127,V[z]|=64,V}),S(G,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),S(G,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),S(G,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),G.prototype.sign=function(j){return M(this._secret,"KeyPair can only verify"),this.eddsa.sign(j,this)},G.prototype.verify=function(j,I){return this.eddsa.verify(j,I,this)},G.prototype.getSecret=function(j){return M(this._secret,"KeyPair is public only"),E.encode(this.secret(),j)},G.prototype.getPublic=function(j){return E.encode(this.pubBytes(),j)},g.exports=G}),Z8=G0((l,g)=>{var E=k5(),M=T5(),F=M.assert,S=M.cachedProperty,G=M.parseBytes;function j(I,z){this.eddsa=I,typeof z!="object"&&(z=G(z)),Array.isArray(z)&&(z={R:z.slice(0,I.encodingLength),S:z.slice(I.encodingLength)}),F(z.R&&z.S,"Signature without R or S"),I.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(j,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),S(j,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),S(j,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),S(j,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),j.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},j.prototype.toHex=function(){return M.encode(this.toBytes(),"hex").toUpperCase()},g.exports=j}),j8=G0((l,g)=>{var E=S9(),M=x9(),F=T5(),S=F.assert,G=F.parseBytes,j=W8(),I=Z8();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,Z){V=G(V);var T=this.keyFromSecret(Z),N=this.hashInt(T.messagePrefix(),V),U=this.g.mul(N),D=this.encodePoint(U),k=this.hashInt(D,T.pubBytes(),V).mul(T.priv()),v=N.add(k).umod(this.curve.n);return this.makeSignature({R:U,S:v,Rencoded:D})},z.prototype.verify=function(V,Z,T){V=G(V),Z=this.makeSignature(Z);var N=this.keyFromPublic(T),U=this.hashInt(Z.Rencoded(),N.pubBytes(),V),D=this.g.mul(Z.S()),k=Z.R().add(N.pub().mul(U));return k.eq(D)},z.prototype.hashInt=function(){for(var V=this.hash(),Z=0;Z<arguments.length;Z++)V.update(arguments[Z]);return F.intFromLE(V.digest()).umod(this.curve.n)},z.prototype.keyFromPublic=function(V){return j.fromPublic(this,V)},z.prototype.keyFromSecret=function(V){return j.fromSecret(this,V)},z.prototype.makeSignature=function(V){return V instanceof I?V:new I(this,V)},z.prototype.encodePoint=function(V){var Z=V.getY().toArray("le",this.encodingLength);return Z[this.encodingLength-1]|=V.getX().isOdd()?128:0,Z},z.prototype.decodePoint=function(V){V=F.parseBytes(V);var Z=V.length-1,T=V.slice(0,Z).concat(V[Z]&-129),N=(V[Z]&128)!==0,U=F.intFromLE(T);return this.curve.pointFromY(U,N)},z.prototype.encodeInt=function(V){return V.toArray("le",this.encodingLength)},z.prototype.decodeInt=function(V){return F.intFromLE(V)},z.prototype.isPoint=function(V){return V instanceof this.pointClass}}),A9=G0((l)=>{var g=l;g.version=n7().version,g.utils=T5(),g.rand=q9(),g.curve=R6(),g.curves=x9(),g.ec=P8(),g.eddsa=j8()}),A6=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var j;try{typeof window<"u"&&typeof window.Buffer<"u"?j=window.Buffer:j=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,P,W=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)P=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)P=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function z(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,P=0,W;if(Y==="be")for(H=K.length-1;H>=X;H-=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8}this.strip()};function V(K,X,Y,H){for(var Q=0,P=Math.min(K.length,Y),W=X;W<P;W++){var $=K.charCodeAt(W)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var P=K.length-Y,W=P%H,$=Math.min(P,P-W)+Y,C=0,J=Y;J<$;J+=H)C=V(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(W!==0){var R=1;for(C=V(K,J,K.length,X),J=0;J<W;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Z=["","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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,P=0;P<this.length;P++){var W=this.words[P],$=((W<<H|Q)&16777215).toString(16);Q=W>>>24-H&16777215,Q!==0||P!==this.length-1?Y=Z[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,P--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=T[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=Z[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof j<"u"),this.toArrayLike(j,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var P=X==="le",W=new K(Q),$,C,J=this.clone();if(P){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[C]=$;for(;C<Q;C++)W[C]=0}else{for(C=0;C<Q-H;C++)W[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[Q-C-1]=$}return W},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function U(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,P=0;P<H.length;P++)X=(Y.words[P]|0)+(H.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;for(;Q!==0&&P<Y.length;P++)X=(Y.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;P<Y.length;P++)this.words[P]=Y.words[P];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var P=0,W=0;W<Q.length;W++)X=(H.words[W]|0)-(Q.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;for(;P!==0&&W<H.length;W++)X=(H.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;if(P===0&&W<H.length&&H!==this)for(;W<H.length;W++)this.words[W]=H.words[W];return this.length=Math.max(this.length,W),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,P=X.words[0]|0,W=Q*P,$=W&67108863,C=W/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,P=X.words[s]|0,W=Q*P+L,R+=W/67108864|0,L=W&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,P=Y.words,W=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,a=u>>>13,V0=H[3]|0,K0=V0&8191,Q0=V0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,U0=w0&8191,W0=w0>>>13,c0=H[8]|0,O=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,Y0=z0&8191,Z0=z0>>>13,b0=Q[1]|0,F0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,O0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,W5=Q[7]|0,E0=W5&8191,S0=W5>>>13,Z5=Q[8]|0,x0=Z5&8191,A0=Z5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,Z0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,Z0);var Q5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,Z0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,Z0),$=$+Math.imul(L,F0)|0,C=C+Math.imul(L,j0)|0,C=C+Math.imul(_,F0)|0,J=J+Math.imul(_,j0)|0;var g0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,Z0),C=C+Math.imul(a,Y0)|0,J=Math.imul(a,Z0),$=$+Math.imul(r,F0)|0,C=C+Math.imul(r,j0)|0,C=C+Math.imul(X0,F0)|0,J=J+Math.imul(X0,j0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,Z0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,Z0),$=$+Math.imul(d,F0)|0,C=C+Math.imul(d,j0)|0,C=C+Math.imul(a,F0)|0,J=J+Math.imul(a,j0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,O0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,O0)|0;var h0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,Z0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,Z0),$=$+Math.imul(K0,F0)|0,C=C+Math.imul(K0,j0)|0,C=C+Math.imul(Q0,F0)|0,J=J+Math.imul(Q0,j0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(a,D0)|0,J=J+Math.imul(a,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,O0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,O0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,Z0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,Z0),$=$+Math.imul(q,F0)|0,C=C+Math.imul(q,j0)|0,C=C+Math.imul(m,F0)|0,J=J+Math.imul(m,j0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,O0)|0,C=C+Math.imul(a,T0)|0,J=J+Math.imul(a,O0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,Z0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,Z0),$=$+Math.imul(C0,F0)|0,C=C+Math.imul(C0,j0)|0,C=C+Math.imul(t,F0)|0,J=J+Math.imul(t,j0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,O0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,O0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(a,L0)|0,J=J+Math.imul(a,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(U0,Y0),C=Math.imul(U0,Z0),C=C+Math.imul(W0,Y0)|0,J=Math.imul(W0,Z0),$=$+Math.imul($0,F0)|0,C=C+Math.imul($0,j0)|0,C=C+Math.imul(J0,F0)|0,J=J+Math.imul(J0,j0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,O0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,O0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(a,k0)|0,J=J+Math.imul(a,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(O,Y0),C=Math.imul(O,Z0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,Z0),$=$+Math.imul(U0,F0)|0,C=C+Math.imul(U0,j0)|0,C=C+Math.imul(W0,F0)|0,J=J+Math.imul(W0,j0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,O0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,O0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(a,B0)|0,J=J+Math.imul(a,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,Z0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,Z0),$=$+Math.imul(O,F0)|0,C=C+Math.imul(O,j0)|0,C=C+Math.imul(B,F0)|0,J=J+Math.imul(B,j0)|0,$=$+Math.imul(U0,D0)|0,C=C+Math.imul(U0,N0)|0,C=C+Math.imul(W0,D0)|0,J=J+Math.imul(W0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,O0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,O0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(a,E0)|0,J=J+Math.imul(a,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,F0),C=Math.imul(h,j0),C=C+Math.imul(o,F0)|0,J=Math.imul(o,j0),$=$+Math.imul(O,D0)|0,C=C+Math.imul(O,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(U0,T0)|0,C=C+Math.imul(U0,O0)|0,C=C+Math.imul(W0,T0)|0,J=J+Math.imul(W0,O0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(a,x0)|0,J=J+Math.imul(a,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(O,T0)|0,C=C+Math.imul(O,O0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,O0)|0,$=$+Math.imul(U0,L0)|0,C=C+Math.imul(U0,I0)|0,C=C+Math.imul(W0,L0)|0,J=J+Math.imul(W0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(a,v0)|0,J=J+Math.imul(a,M0)|0;var i0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,O0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,O0),$=$+Math.imul(O,L0)|0,C=C+Math.imul(O,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(U0,k0)|0,C=C+Math.imul(U0,q0)|0,C=C+Math.imul(W0,k0)|0,J=J+Math.imul(W0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(O,k0)|0,C=C+Math.imul(O,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(U0,B0)|0,C=C+Math.imul(U0,R0)|0,C=C+Math.imul(W0,B0)|0,J=J+Math.imul(W0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(O,B0)|0,C=C+Math.imul(O,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(U0,E0)|0,C=C+Math.imul(U0,S0)|0,C=C+Math.imul(W0,E0)|0,J=J+Math.imul(W0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(O,E0)|0,C=C+Math.imul(O,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(U0,x0)|0,C=C+Math.imul(U0,A0)|0,C=C+Math.imul(W0,x0)|0,J=J+Math.imul(W0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(O,x0)|0,C=C+Math.imul(O,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(U0,v0)|0,C=C+Math.imul(U0,M0)|0,C=C+Math.imul(W0,v0)|0,J=J+Math.imul(W0,M0)|0;var X5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(O,v0)|0,C=C+Math.imul(O,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(W+$|0)+((C&8191)<<13)|0;return W=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=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]=C5,P[16]=X5,P[17]=H5,P[18]=Y5,W!==0&&(P[19]=W,Y.length++),Y};Math.imul||(k=D);function v(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,P=0;P<Y.length-1;P++){var W=Q;Q=0;for(var $=H&67108863,C=Math.min(P,X.length-1),J=Math.max(0,P-K.length+1);J<=C;J++){var R=P-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;W=W+(s/67108864|0)|0,r=r+$|0,$=r&67108863,W=W+(r>>>26)|0,Q+=W>>>26,W&=67108863}Y.words[P]=$,H=W,W=Q}return H!==0?Y.words[P]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new A;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=v(this,K,X):Y=x(this,K,X),Y};function A(K,X){this.x=K,this.y=X}A.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},A.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},A.prototype.permute=function(K,X,Y,H,Q,P){for(var W=0;W<P;W++)H[W]=X[K[W]],Q[W]=Y[K[W]]},A.prototype.transform=function(K,X,Y,H,Q,P){this.permute(P,K,X,Y,H,Q);for(var W=1;W<Q;W<<=1)for(var $=W<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<W;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+W],d=H[R+s+W],a=L*u-_*d;d=L*d+_*u,u=a,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+W]=r-u,H[R+s+W]=X0-d,s!==$&&(a=C*L-J*_,_=C*_+J*L,L=a)}},A.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},A.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},A.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},A.prototype.convert13b=function(K,X,Y,H){for(var Q=0,P=0;P<X;P++)Q=Q+(K[P]|0),Y[2*P]=Q&8191,Q=Q>>>13,Y[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*X;P<H;++P)Y[P]=0;F(Q===0),F((Q&-8192)===0)},A.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},A.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),P=this.stub(H),W=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,W,H),this.convert13b(X.words,X.length,J,H),this.transform(W,P,$,C,H,Q),this.transform(J,P,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,P,H,Q),this.conjugate(_,P,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=U(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var P=0;for(Q=0;Q<this.length;Q++){var W=this.words[Q]&H,$=(this.words[Q]|0)-W<<X;this.words[Q]=$|P,P=W>>>26-X}P&&(this.words[Q]=P,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),W=67108863^67108863>>>Q<<Q,$=Y;if(H-=P,H=Math.max(0,H),$){for(var C=0;C<P;C++)$.words[C]=this.words[C];$.length=P}if(P!==0)if(this.length>P)for(this.length-=P,C=0;C<this.length;C++)this.words[C]=this.words[C+P];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&W}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var P,W=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+Y]|0)+W;var $=(K.words[Q]|0)*X;P-=$&67108863,W=(P>>26)-($/67108864|0),this.words[Q+Y]=P&67108863}for(;Q<this.length-Y;Q++)P=(this.words[Q+Y]|0)+W,W=P>>26,this.words[Q+Y]=P&67108863;if(W===0)return this.strip();for(F(W===-1),W=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+W,W=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,P=Q.words[Q.length-1]|0,W=this._countBits(P);Y=26-W,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),P=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,X),X!=="mod"&&(H=P.div.neg()),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),X),X!=="mod"&&(H=P.div.neg()),{div:H,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),P=Y.cmp(H);return P<0||Q===1&&P===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=new G(0),W=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(P.isOdd()||W.isOdd())&&(P.iadd(C),W.isub(J)),P.iushrn(1),W.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(P),Q.isub(W)):(Y.isub(X),P.isub(H),W.isub(Q))}return{a:P,b:W,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var W=0,$=1;(X.words[0]&$)===0&&W<26;++W,$<<=1);if(W>0)for(X.iushrn(W);W-- >0;)H.isOdd()&&H.iadd(P),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var P=X;X=Y,Y=P}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,P=Y;Q!==0&&P<this.length;P++){var W=this.words[P]|0;W+=Q,Q=W>>>26,W&=67108863,this.words[P]=W}return Q!==0&&(this.words[P]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new f(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(X.words[X.length++]=P&Y,Q=10;Q<K.length;Q++){var W=K.words[Q]|0;K.words[Q-10]=(W&Y)<<4|P>>>22,P=W}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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function f(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.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,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},f.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},f.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},f.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},f.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},f.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},f.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},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 X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var P=new G(1).toRed(this),W=P.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(W)!==0;)C.redIAdd(W);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},f.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},f.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var P=H[0],W=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(P!==H[0]&&(P=this.sqr(P)),L===0&&W===0){$=0;continue}W<<=1,W|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(P=this.mul(P,H[W]),$=0,W=0)}C=26}return P},f.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},f.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.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 G(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 X=this.imod(K.mul(this.rinv));return X.red=null,X},P0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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 X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),v9=G0((l,g)=>{var E=U5(),M=E.Buffer,F={},S;for(S in E)!E.hasOwnProperty(S)||S==="SlowBuffer"||S==="Buffer"||(F[S]=E[S]);var G=F.Buffer={};for(S in M)!M.hasOwnProperty(S)||S==="allocUnsafe"||S==="allocUnsafeSlow"||(G[S]=M[S]);if(F.Buffer.prototype=M.prototype,(!G.from||G.from===Uint8Array.from)&&(G.from=function(j,I,z){if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof j);if(j&&typeof j.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);return M(j,I,z)}),G.alloc||(G.alloc=function(j,I,z){if(typeof j!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof j);if(j<0||j>=2147483648)throw new RangeError('The value "'+j+'" is invalid for option "size"');var V=M(j);return!I||I.length===0?V.fill(0):typeof z=="string"?V.fill(I,z):V.fill(I),V}),!F.kStringMaxLength)try{F.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}F.constants||(F.constants={MAX_LENGTH:F.kMaxLength},F.kStringMaxLength&&(F.constants.MAX_STRING_LENGTH=F.kStringMaxLength)),g.exports=F}),M9=G0((l)=>{var g=p0();function E(F){this._reporterState={obj:null,path:[],options:F||{},errors:[]}}l.Reporter=E,E.prototype.isError=function(F){return F instanceof M},E.prototype.save=function(){let F=this._reporterState;return{obj:F.obj,pathLen:F.path.length}},E.prototype.restore=function(F){let S=this._reporterState;S.obj=F.obj,S.path=S.path.slice(0,F.pathLen)},E.prototype.enterKey=function(F){return this._reporterState.path.push(F)},E.prototype.exitKey=function(F){let S=this._reporterState;S.path=S.path.slice(0,F-1)},E.prototype.leaveKey=function(F,S,G){let j=this._reporterState;this.exitKey(F),j.obj!==null&&(j.obj[S]=G)},E.prototype.path=function(){return this._reporterState.path.join("/")},E.prototype.enterObject=function(){let F=this._reporterState,S=F.obj;return F.obj={},S},E.prototype.leaveObject=function(F){let S=this._reporterState,G=S.obj;return S.obj=F,G},E.prototype.error=function(F){let S,G=this._reporterState,j=F instanceof M;if(j?S=F:S=new M(G.path.map(function(I){return"["+JSON.stringify(I)+"]"}).join(""),F.message||F,F.stack),!G.options.partial)throw S;return j||G.errors.push(S),S},E.prototype.wrapResult=function(F){let S=this._reporterState;return S.options.partial?{result:this.isError(F)?null:F,errors:S.errors}:F};function M(F,S){this.path=F,this.rethrow(S)}g(M,Error),M.prototype.rethrow=function(F){if(this.message=F+" 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=G0((l)=>{var g=p0(),E=M9().Reporter,M=v9().Buffer;function F(G,j){if(E.call(this,j),!M.isBuffer(G)){this.error("Input not Buffer");return}this.base=G,this.offset=0,this.length=G.length}g(F,E),l.DecoderBuffer=F,F.isDecoderBuffer=function(G){return G instanceof F?!0:typeof G=="object"&&M.isBuffer(G.base)&&G.constructor.name==="DecoderBuffer"&&typeof G.offset=="number"&&typeof G.length=="number"&&typeof G.save=="function"&&typeof G.restore=="function"&&typeof G.isEmpty=="function"&&typeof G.readUInt8=="function"&&typeof G.skip=="function"&&typeof G.raw=="function"},F.prototype.save=function(){return{offset:this.offset,reporter:E.prototype.save.call(this)}},F.prototype.restore=function(G){let j=new F(this.base);return j.offset=G.offset,j.length=this.offset,this.offset=G.offset,E.prototype.restore.call(this,G.reporter),j},F.prototype.isEmpty=function(){return this.offset===this.length},F.prototype.readUInt8=function(G){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(G||"DecoderBuffer overrun")},F.prototype.skip=function(G,j){if(!(this.offset+G<=this.length))return this.error(j||"DecoderBuffer overrun");let I=new F(this.base);return I._reporterState=this._reporterState,I.offset=this.offset,I.length=this.offset+G,this.offset+=G,I},F.prototype.raw=function(G){return this.base.slice(G?G.offset:this.offset,this.length)};function S(G,j){if(Array.isArray(G))this.length=0,this.value=G.map(function(I){return S.isEncoderBuffer(I)||(I=new S(I,j)),this.length+=I.length,I},this);else if(typeof G=="number"){if(!(0<=G&&G<=255))return j.error("non-byte EncoderBuffer value");this.value=G,this.length=1}else if(typeof G=="string")this.value=G,this.length=M.byteLength(G);else if(M.isBuffer(G))this.value=G,this.length=G.length;else return j.error("Unsupported type: "+typeof G)}l.EncoderBuffer=S,S.isEncoderBuffer=function(G){return G instanceof S?!0:typeof G=="object"&&G.constructor.name==="EncoderBuffer"&&typeof G.length=="number"&&typeof G.join=="function"},S.prototype.join=function(G,j){return G||(G=M.alloc(this.length)),j||(j=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(I){I.join(G,j),j+=I.length}):(typeof this.value=="number"?G[j]=this.value:typeof this.value=="string"?G.write(this.value,j):M.isBuffer(this.value)&&this.value.copy(G,j),j+=this.length)),G}}),_9=G0((l,g)=>{var E=M9().Reporter,M=l5().EncoderBuffer,F=l5().DecoderBuffer,S=O5(),G=["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"],j=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(G),I=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function z(Z,T,N){let U={};this._baseState=U,U.name=N,U.enc=Z,U.parent=T||null,U.children=null,U.tag=null,U.args=null,U.reverseArgs=null,U.choice=null,U.optional=!1,U.any=!1,U.obj=!1,U.use=null,U.useDecoder=null,U.key=null,U.default=null,U.explicit=null,U.implicit=null,U.contains=null,U.parent||(U.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 Z=this._baseState,T={};V.forEach(function(U){T[U]=Z[U]});let N=new this.constructor(T.parent);return N._baseState=T,N},z.prototype._wrap=function(){let Z=this._baseState;j.forEach(function(T){this[T]=function(){let N=new this.constructor(this);return Z.children.push(N),N[T].apply(N,arguments)}},this)},z.prototype._init=function(Z){let T=this._baseState;S(T.parent===null),Z.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(Z){let T=this._baseState,N=Z.filter(function(U){return U instanceof this.constructor},this);Z=Z.filter(function(U){return!(U instanceof this.constructor)},this),N.length!==0&&(S(T.children===null),T.children=N,N.forEach(function(U){U._baseState.parent=this},this)),Z.length!==0&&(S(T.args===null),T.args=Z,T.reverseArgs=Z.map(function(U){if(typeof U!="object"||U.constructor!==Object)return U;let D={};return Object.keys(U).forEach(function(k){k==(k|0)&&(k|=0);let v=U[k];D[v]=k}),D}))},I.forEach(function(Z){z.prototype[Z]=function(){let T=this._baseState;throw new Error(Z+" not implemented for encoding: "+T.enc)}}),G.forEach(function(Z){z.prototype[Z]=function(){let T=this._baseState,N=Array.prototype.slice.call(arguments);return S(T.tag===null),T.tag=Z,this._useArgs(N),this}}),z.prototype.use=function(Z){S(Z);let T=this._baseState;return S(T.use===null),T.use=Z,this},z.prototype.optional=function(){let Z=this._baseState;return Z.optional=!0,this},z.prototype.def=function(Z){let T=this._baseState;return S(T.default===null),T.default=Z,T.optional=!0,this},z.prototype.explicit=function(Z){let T=this._baseState;return S(T.explicit===null&&T.implicit===null),T.explicit=Z,this},z.prototype.implicit=function(Z){let T=this._baseState;return S(T.explicit===null&&T.implicit===null),T.implicit=Z,this},z.prototype.obj=function(){let Z=this._baseState,T=Array.prototype.slice.call(arguments);return Z.obj=!0,T.length!==0&&this._useArgs(T),this},z.prototype.key=function(Z){let T=this._baseState;return S(T.key===null),T.key=Z,this},z.prototype.any=function(){let Z=this._baseState;return Z.any=!0,this},z.prototype.choice=function(Z){let T=this._baseState;return S(T.choice===null),T.choice=Z,this._useArgs(Object.keys(Z).map(function(N){return Z[N]})),this},z.prototype.contains=function(Z){let T=this._baseState;return S(T.use===null),T.contains=Z,this},z.prototype._decode=function(Z,T){let N=this._baseState;if(N.parent===null)return Z.wrapResult(N.children[0]._decode(Z,T));let U=N.default,D=!0,k=null;if(N.key!==null&&(k=Z.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=Z.save();try{N.choice===null?this._decodeGeneric(N.tag,Z,T):this._decodeChoice(Z,T),D=!0}catch{D=!1}Z.restore(A)}else if(D=this._peekTag(Z,x,N.any),Z.isError(D))return D}let v;if(N.obj&&D&&(v=Z.enterObject()),D){if(N.explicit!==null){let A=this._decodeTag(Z,N.explicit);if(Z.isError(A))return A;Z=A}let x=Z.offset;if(N.use===null&&N.choice===null){let A;N.any&&(A=Z.save());let y=this._decodeTag(Z,N.implicit!==null?N.implicit:N.tag,N.any);if(Z.isError(y))return y;N.any?U=Z.raw(A):Z=y}if(T&&T.track&&N.tag!==null&&T.track(Z.path(),x,Z.length,"tagged"),T&&T.track&&N.tag!==null&&T.track(Z.path(),Z.offset,Z.length,"content"),N.any||(N.choice===null?U=this._decodeGeneric(N.tag,Z,T):U=this._decodeChoice(Z,T)),Z.isError(U))return U;if(!N.any&&N.choice===null&&N.children!==null&&N.children.forEach(function(A){A._decode(Z,T)}),N.contains&&(N.tag==="octstr"||N.tag==="bitstr")){let A=new F(U);U=this._getUse(N.contains,Z._reporterState.obj)._decode(A,T)}}return N.obj&&D&&(U=Z.leaveObject(v)),N.key!==null&&(U!==null||D===!0)?Z.leaveKey(k,N.key,U):k!==null&&Z.exitKey(k),U},z.prototype._decodeGeneric=function(Z,T,N){let U=this._baseState;return Z==="seq"||Z==="set"?null:Z==="seqof"||Z==="setof"?this._decodeList(T,Z,U.args[0],N):/str$/.test(Z)?this._decodeStr(T,Z,N):Z==="objid"&&U.args?this._decodeObjid(T,U.args[0],U.args[1],N):Z==="objid"?this._decodeObjid(T,null,null,N):Z==="gentime"||Z==="utctime"?this._decodeTime(T,Z,N):Z==="null_"?this._decodeNull(T,N):Z==="bool"?this._decodeBool(T,N):Z==="objDesc"?this._decodeStr(T,Z,N):Z==="int"||Z==="enum"?this._decodeInt(T,U.args&&U.args[0],N):U.use!==null?this._getUse(U.use,T._reporterState.obj)._decode(T,N):T.error("unknown tag: "+Z)},z.prototype._getUse=function(Z,T){let N=this._baseState;return N.useDecoder=this._use(Z,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(Z,T){let N=this._baseState,U=null,D=!1;return Object.keys(N.choice).some(function(k){let v=Z.save(),x=N.choice[k];try{let A=x._decode(Z,T);if(Z.isError(A))return!1;U={type:k,value:A},D=!0}catch{return Z.restore(v),!1}return!0},this),D?U:Z.error("Choice not matched")},z.prototype._createEncoderBuffer=function(Z){return new M(Z,this.reporter)},z.prototype._encode=function(Z,T,N){let U=this._baseState;if(U.default!==null&&U.default===Z)return;let D=this._encodeValue(Z,T,N);if(D!==void 0&&!this._skipDefault(D,T,N))return D},z.prototype._encodeValue=function(Z,T,N){let U=this._baseState;if(U.parent===null)return U.children[0]._encode(Z,T||new E);let D=null;if(this.reporter=T,U.optional&&Z===void 0)if(U.default!==null)Z=U.default;else return;let k=null,v=!1;if(U.any)D=this._createEncoderBuffer(Z);else if(U.choice)D=this._encodeChoice(Z,T);else if(U.contains)k=this._getUse(U.contains,N)._encode(Z,T),v=!0;else if(U.children)k=U.children.map(function(x){if(x._baseState.tag==="null_")return x._encode(null,T,Z);if(x._baseState.key===null)return T.error("Child should have a key");let A=T.enterKey(x._baseState.key);if(typeof Z!="object")return T.error("Child expected, but input is not object");let y=x._encode(Z[x._baseState.key],T,Z);return T.leaveKey(A),y},this).filter(function(x){return x}),k=this._createEncoderBuffer(k);else if(U.tag==="seqof"||U.tag==="setof"){if(!(U.args&&U.args.length===1))return T.error("Too many args for : "+U.tag);if(!Array.isArray(Z))return T.error("seqof/setof, but data is not Array");let x=this.clone();x._baseState.implicit=null,k=this._createEncoderBuffer(Z.map(function(A){let y=this._baseState;return this._getUse(y.args[0],Z)._encode(A,T)},x))}else U.use!==null?D=this._getUse(U.use,N)._encode(Z,T):(k=this._encodePrimitive(U.tag,Z),v=!0);if(!U.any&&U.choice===null){let x=U.implicit!==null?U.implicit:U.tag,A=U.implicit===null?"universal":"context";x===null?U.use===null&&T.error("Tag could be omitted only for .use()"):U.use===null&&(D=this._encodeComposite(x,v,A,k))}return U.explicit!==null&&(D=this._encodeComposite(U.explicit,!1,"context",D)),D},z.prototype._encodeChoice=function(Z,T){let N=this._baseState,U=N.choice[Z.type];return U||S(!1,Z.type+" not found in "+JSON.stringify(Object.keys(N.choice))),U._encode(Z.value,T)},z.prototype._encodePrimitive=function(Z,T){let N=this._baseState;if(/str$/.test(Z))return this._encodeStr(T,Z);if(Z==="objid"&&N.args)return this._encodeObjid(T,N.reverseArgs[0],N.args[1]);if(Z==="objid")return this._encodeObjid(T,null,null);if(Z==="gentime"||Z==="utctime")return this._encodeTime(T,Z);if(Z==="null_")return this._encodeNull();if(Z==="int"||Z==="enum")return this._encodeInt(T,N.args&&N.reverseArgs[0]);if(Z==="bool")return this._encodeBool(T);if(Z==="objDesc")return this._encodeStr(T,Z);throw new Error("Unsupported tag: "+Z)},z.prototype._isNumstr=function(Z){return/^[0-9 ]*$/.test(Z)},z.prototype._isPrintstr=function(Z){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(Z)}}),w9=G0((l)=>{function g(E){let M={};return Object.keys(E).forEach(function(F){(F|0)==F&&(F=F|0);let S=E[F];M[S]=F}),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)}),v6=G0((l,g)=>{var E=p0(),M=v9().Buffer,F=_9(),S=w9();function G(V){this.enc="der",this.name=V.name,this.entity=V,this.tree=new j,this.tree._init(V.body)}g.exports=G,G.prototype.encode=function(V,Z){return this.tree._encode(V,Z).join()};function j(V){F.call(this,"der",V)}E(j,F),j.prototype._encodeComposite=function(V,Z,T,N){let U=z(V,Z,T,this.reporter);if(N.length<128){let v=M.alloc(2);return v[0]=U,v[1]=N.length,this._createEncoderBuffer([v,N])}let D=1;for(let v=N.length;v>=256;v>>=8)D++;let k=M.alloc(2+D);k[0]=U,k[1]=128|D;for(let v=1+D,x=N.length;x>0;v--,x>>=8)k[v]=x&255;return this._createEncoderBuffer([k,N])},j.prototype._encodeStr=function(V,Z){if(Z==="bitstr")return this._createEncoderBuffer([V.unused|0,V.data]);if(Z==="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 Z==="numstr"?this._isNumstr(V)?this._createEncoderBuffer(V):this.reporter.error("Encoding of string type: numstr supports only digits and space"):Z==="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(Z)?this._createEncoderBuffer(V):Z==="objDesc"?this._createEncoderBuffer(V):this.reporter.error("Encoding of string type: "+Z+" unsupported")},j.prototype._encodeObjid=function(V,Z,T){if(typeof V=="string"){if(!Z)return this.reporter.error("string objid given, but no values map found");if(!Z.hasOwnProperty(V))return this.reporter.error("objid not found in values map");V=Z[V].split(/[\s.]+/g);for(let k=0;k<V.length;k++)V[k]|=0}else if(Array.isArray(V)){V=V.slice();for(let k=0;k<V.length;k++)V[k]|=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 k=0;k<V.length;k++){let v=V[k];for(N++;v>=128;v>>=7)N++}let U=M.alloc(N),D=U.length-1;for(let k=V.length-1;k>=0;k--){let v=V[k];for(U[D--]=v&127;(v>>=7)>0;)U[D--]=128|v&127}return this._createEncoderBuffer(U)};function I(V){return V<10?"0"+V:V}j.prototype._encodeTime=function(V,Z){let T,N=new Date(V);return Z==="gentime"?T=[I(N.getUTCFullYear()),I(N.getUTCMonth()+1),I(N.getUTCDate()),I(N.getUTCHours()),I(N.getUTCMinutes()),I(N.getUTCSeconds()),"Z"].join(""):Z==="utctime"?T=[I(N.getUTCFullYear()%100),I(N.getUTCMonth()+1),I(N.getUTCDate()),I(N.getUTCHours()),I(N.getUTCMinutes()),I(N.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+Z+" time is not supported yet"),this._encodeStr(T,"octstr")},j.prototype._encodeNull=function(){return this._createEncoderBuffer("")},j.prototype._encodeInt=function(V,Z){if(typeof V=="string"){if(!Z)return this.reporter.error("String int or enum given, but no values map");if(!Z.hasOwnProperty(V))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(V));V=Z[V]}if(typeof V!="number"&&!M.isBuffer(V)){let U=V.toArray();!V.sign&&U[0]&128&&U.unshift(0),V=M.from(U)}if(M.isBuffer(V)){let U=V.length;V.length===0&&U++;let D=M.alloc(U);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 U=V;U>=256;U>>=8)T++;let N=new Array(T);for(let U=N.length-1;U>=0;U--)N[U]=V&255,V>>=8;return N[0]&128&&N.unshift(0),this._createEncoderBuffer(M.from(N))},j.prototype._encodeBool=function(V){return this._createEncoderBuffer(V?255:0)},j.prototype._use=function(V,Z){return typeof V=="function"&&(V=V(Z)),V._getEncoder("der").tree},j.prototype._skipDefault=function(V,Z,T){let N=this._baseState,U;if(N.default===null)return!1;let D=V.join();if(N.defaultBuffer===void 0&&(N.defaultBuffer=this._encodeValue(N.default,Z,T).join()),D.length!==N.defaultBuffer.length)return!1;for(U=0;U<D.length;U++)if(D[U]!==N.defaultBuffer[U])return!1;return!0};function z(V,Z,T,N){let U;if(V==="seqof"?V="seq":V==="setof"&&(V="set"),S.tagByName.hasOwnProperty(V))U=S.tagByName[V];else if(typeof V=="number"&&(V|0)===V)U=V;else return N.error("Unknown tag: "+V);return U>=31?N.error("Multi-octet tag encoding unsupported"):(Z||(U|=32),U|=S.tagClassByName[T||"universal"]<<6,U)}}),F8=G0((l,g)=>{var E=p0(),M=v6();function F(S){M.call(this,S),this.enc="pem"}E(F,M),g.exports=F,F.prototype.encode=function(S,G){let j=M.prototype.encode.call(this,S).toString("base64"),I=["-----BEGIN "+G.label+"-----"];for(let z=0;z<j.length;z+=64)I.push(j.slice(z,z+64));return I.push("-----END "+G.label+"-----"),I.join(`
|
|
4
|
-
`)}}),M6=G0((l)=>{var g=l;g.der=v6(),g.pem=F8()}),_6=G0((l,g)=>{var E=p0(),M=A6(),F=l5().DecoderBuffer,S=_9(),G=w9();function j(Z){this.enc="der",this.name=Z.name,this.entity=Z,this.tree=new I,this.tree._init(Z.body)}g.exports=j,j.prototype.decode=function(Z,T){return F.isDecoderBuffer(Z)||(Z=new F(Z,T)),this.tree._decode(Z,T)};function I(Z){S.call(this,"der",Z)}E(I,S),I.prototype._peekTag=function(Z,T,N){if(Z.isEmpty())return!1;let U=Z.save(),D=z(Z,'Failed to peek tag: "'+T+'"');return Z.isError(D)?D:(Z.restore(U),D.tag===T||D.tagStr===T||D.tagStr+"of"===T||N)},I.prototype._decodeTag=function(Z,T,N){let U=z(Z,'Failed to decode tag of "'+T+'"');if(Z.isError(U))return U;let D=V(Z,U.primitive,'Failed to get length of "'+T+'"');if(Z.isError(D))return D;if(!N&&U.tag!==T&&U.tagStr!==T&&U.tagStr+"of"!==T)return Z.error('Failed to match tag: "'+T+'"');if(U.primitive||D!==null)return Z.skip(D,'Failed to match body of: "'+T+'"');let k=Z.save(),v=this._skipUntilEnd(Z,'Failed to skip indefinite length body: "'+this.tag+'"');return Z.isError(v)?v:(D=Z.offset-k.offset,Z.restore(k),Z.skip(D,'Failed to match body of: "'+T+'"'))},I.prototype._skipUntilEnd=function(Z,T){for(;;){let N=z(Z,T);if(Z.isError(N))return N;let U=V(Z,N.primitive,T);if(Z.isError(U))return U;let D;if(N.primitive||U!==null?D=Z.skip(U):D=this._skipUntilEnd(Z,T),Z.isError(D))return D;if(N.tagStr==="end")break}},I.prototype._decodeList=function(Z,T,N,U){let D=[];for(;!Z.isEmpty();){let k=this._peekTag(Z,"end");if(Z.isError(k))return k;let v=N.decode(Z,"der",U);if(Z.isError(v)&&k)break;D.push(v)}return D},I.prototype._decodeStr=function(Z,T){if(T==="bitstr"){let N=Z.readUInt8();return Z.isError(N)?N:{unused:N,data:Z.raw()}}else if(T==="bmpstr"){let N=Z.raw();if(N.length%2===1)return Z.error("Decoding of string type: bmpstr length mismatch");let U="";for(let D=0;D<N.length/2;D++)U+=String.fromCharCode(N.readUInt16BE(D*2));return U}else if(T==="numstr"){let N=Z.raw().toString("ascii");return this._isNumstr(N)?N:Z.error("Decoding of string type: numstr unsupported characters")}else{if(T==="octstr")return Z.raw();if(T==="objDesc")return Z.raw();if(T==="printstr"){let N=Z.raw().toString("ascii");return this._isPrintstr(N)?N:Z.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(T)?Z.raw().toString():Z.error("Decoding of string type: "+T+" unsupported")}},I.prototype._decodeObjid=function(Z,T,N){let U,D=[],k=0,v=0;for(;!Z.isEmpty();)v=Z.readUInt8(),k<<=7,k|=v&127,(v&128)===0&&(D.push(k),k=0);v&128&&D.push(k);let x=D[0]/40|0,A=D[0]%40;if(N?U=D:U=[x,A].concat(D.slice(1)),T){let y=T[U.join(" ")];y===void 0&&(y=T[U.join(".")]),y!==void 0&&(U=y)}return U},I.prototype._decodeTime=function(Z,T){let N=Z.raw().toString(),U,D,k,v,x,A;if(T==="gentime")U=N.slice(0,4)|0,D=N.slice(4,6)|0,k=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")U=N.slice(0,2)|0,D=N.slice(2,4)|0,k=N.slice(4,6)|0,v=N.slice(6,8)|0,x=N.slice(8,10)|0,A=N.slice(10,12)|0,U<70?U=2000+U:U=1900+U;else return Z.error("Decoding "+T+" time is not supported yet");return Date.UTC(U,D-1,k,v,x,A,0)},I.prototype._decodeNull=function(){return null},I.prototype._decodeBool=function(Z){let T=Z.readUInt8();return Z.isError(T)?T:T!==0},I.prototype._decodeInt=function(Z,T){let N=Z.raw(),U=new M(N);return T&&(U=T[U.toString(10)]||U),U},I.prototype._use=function(Z,T){return typeof Z=="function"&&(Z=Z(T)),Z._getDecoder("der").tree};function z(Z,T){let N=Z.readUInt8(T);if(Z.isError(N))return N;let U=G.tagClass[N>>6],D=(N&32)===0;if((N&31)===31){let v=N;for(N=0;(v&128)===128;){if(v=Z.readUInt8(T),Z.isError(v))return v;N<<=7,N|=v&127}}else N&=31;let k=G.tag[N];return{cls:U,primitive:D,tag:N,tagStr:k}}function V(Z,T,N){let U=Z.readUInt8(N);if(Z.isError(U))return U;if(!T&&U===128)return null;if((U&128)===0)return U;let D=U&127;if(D>4)return Z.error("length octect is too long");U=0;for(let k=0;k<D;k++){U<<=8;let v=Z.readUInt8(N);if(Z.isError(v))return v;U|=v}return U}}),U8=G0((l,g)=>{var E=p0(),M=v9().Buffer,F=_6();function S(G){F.call(this,G),this.enc="pem"}E(S,F),g.exports=S,S.prototype.decode=function(G,j){let I=G.toString().split(/[\r\n]+/g),z=j.label.toUpperCase(),V=/^-----(BEGIN|END) ([^-]+)-----$/,Z=-1,T=-1;for(let D=0;D<I.length;D++){let k=I[D].match(V);if(k!==null&&k[2]===z)if(Z===-1){if(k[1]!=="BEGIN")break;Z=D}else{if(k[1]!=="END")break;T=D;break}}if(Z===-1||T===-1)throw new Error("PEM section not found for: "+z);let N=I.slice(Z+1,T).join("");N.replace(/[^a-z0-9+/=]+/gi,"");let U=M.from(N,"base64");return F.prototype.decode.call(this,U,j)}}),w6=G0((l)=>{var g=l;g.der=_6(),g.pem=U8()}),V8=G0((l)=>{var g=M6(),E=w6(),M=p0(),F=l;F.define=function(G,j){return new S(G,j)};function S(G,j){this.name=G,this.body=j,this.decoders={},this.encoders={}}S.prototype._createNamed=function(G){let j=this.name;function I(z){this._initNamed(z,j)}return M(I,G),I.prototype._initNamed=function(z,V){G.call(this,z,V)},new I(this)},S.prototype._getDecoder=function(G){return G=G||"der",this.decoders.hasOwnProperty(G)||(this.decoders[G]=this._createNamed(E[G])),this.decoders[G]},S.prototype.decode=function(G,j,I){return this._getDecoder(j).decode(G,I)},S.prototype._getEncoder=function(G){return G=G||"der",this.encoders.hasOwnProperty(G)||(this.encoders[G]=this._createNamed(g[G])),this.encoders[G]},S.prototype.encode=function(G,j,I){return this._getEncoder(j).encode(G,I)}}),z8=G0((l)=>{var g=l;g.Reporter=M9().Reporter,g.DecoderBuffer=l5().DecoderBuffer,g.EncoderBuffer=l5().EncoderBuffer,g.Node=_9()}),O8=G0((l)=>{var g=l;g._reverse=function(E){let M={};return Object.keys(E).forEach(function(F){(F|0)==F&&(F=F|0);let S=E[F];M[S]=F}),M},g.der=w9()}),y6=G0((l)=>{var g=l;g.bignum=A6(),g.define=V8().define,g.base=z8(),g.constants=O8(),g.decoders=w6(),g.encoders=M6()}),T8=G0((l,g)=>{var E=y6(),M=E.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),F=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())}),G=E.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())}),j=E.define("RelativeDistinguishedName",function(){this.setof(F)}),I=E.define("RDNSequence",function(){this.seqof(j)}),z=E.define("Name",function(){this.choice({rdnSequence:this.use(I)})}),V=E.define("Validity",function(){this.seq().obj(this.key("notBefore").use(M),this.key("notAfter").use(M))}),Z=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(G),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Z).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}),D8=G0((l)=>{var g=y6();l.certificate=T8();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 F=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())});l.PublicKey=F;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())}),G=g.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(S),this.key("subjectPrivateKey").octstr())});l.PrivateKey=G;var j=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=j;var I=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=I,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())})}),N8=G0((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"}}),L8=G0((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,F=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,S=C9(),G=k9(),j=d0().Buffer;g.exports=function(I,z){var V=I.toString(),Z=V.match(E),T;if(Z){var N="aes"+Z[1],U=j.from(Z[2],"hex"),D=j.from(Z[3].replace(/[\r\n]/g,""),"base64"),k=S(z,U.slice(0,8),parseInt(Z[1],10)).key,v=[],x=G.createDecipheriv(N,k,U);v.push(x.update(D)),v.push(x.final()),T=j.concat(v)}else{var A=V.match(F);T=j.from(A[2].replace(/[\r\n]/g,""),"base64")}var y=V.match(M)[1];return{tag:y,data:T}}}),H9=G0((l,g)=>{var E=D8(),M=N8(),F=L8(),S=k9(),G=P6(),j=d0().Buffer;g.exports=I;function I(V){var Z;typeof V=="object"&&!j.isBuffer(V)&&(Z=V.passphrase,V=V.key),typeof V=="string"&&(V=j.from(V));var T=F(V,Z),N=T.tag,U=T.data,D,k;switch(N){case"CERTIFICATE":k=E.certificate.decode(U,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(k||(k=E.PublicKey.decode(U,"der")),D=k.algorithm.algorithm.join("."),D){case"1.2.840.113549.1.1.1":return E.RSAPublicKey.decode(k.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return k.subjectPrivateKey=k.subjectPublicKey,{type:"ec",data:k};case"1.2.840.10040.4.1":return k.algorithm.params.pub_key=E.DSAparam.decode(k.subjectPublicKey.data,"der"),{type:"dsa",data:k.algorithm.params};default:throw new Error("unknown key id "+D)}case"ENCRYPTED PRIVATE KEY":U=E.EncryptedPrivateKey.decode(U,"der"),U=z(U,Z);case"PRIVATE KEY":switch(k=E.PrivateKey.decode(U,"der"),D=k.algorithm.algorithm.join("."),D){case"1.2.840.113549.1.1.1":return E.RSAPrivateKey.decode(k.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:k.algorithm.curve,privateKey:E.ECPrivateKey.decode(k.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return k.algorithm.params.priv_key=E.DSAparam.decode(k.subjectPrivateKey,"der"),{type:"dsa",params:k.algorithm.params};default:throw new Error("unknown key id "+D)}case"RSA PUBLIC KEY":return E.RSAPublicKey.decode(U,"der");case"RSA PRIVATE KEY":return E.RSAPrivateKey.decode(U,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:E.DSAPrivateKey.decode(U,"der")};case"EC PRIVATE KEY":return U=E.ECPrivateKey.decode(U,"der"),{curve:U.parameters.value,privateKey:U.privateKey};default:throw new Error("unknown key type "+N)}}I.signature=E.signature;function z(V,Z){var T=V.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(V.algorithm.decrypt.kde.kdeparams.iters.toString(),10),U=M[V.algorithm.decrypt.cipher.algo.join(".")],D=V.algorithm.decrypt.cipher.iv,k=V.subjectPrivateKey,v=parseInt(U.split("-")[1],10)/8,x=G.pbkdf2Sync(Z,T,N,v,"sha1"),A=S.createDecipheriv(U,x,D),y=[];return y.push(A.update(k)),y.push(A.final()),j.concat(y)}}),g6=G0((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"}}),I8=G0((l,g)=>{var E=d0().Buffer,M=H6(),F=E9(),S=A9().ec,G=R9(),j=H9(),I=g6();function z(x,A,y,p,c){var n=j(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 Z(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(),H0=[0,1];x.length+H0.length+1<i;)H0.push(255);H0.push(0);for(var f=-1;++f<x.length;)H0.push(x[f]);var P0=F(H0,n);return P0}function V(x,A){var y=I[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 Z(x,A,y){for(var p=A.params.priv_key,c=A.params.p,n=A.params.q,i=A.params.g,H0=new G(0),f,P0=U(x,n).mod(n),K=!1,X=N(p,n,x,y);K===!1;)f=k(n,X,y),H0=v(i,f,c,n),K=f.invm(n).imul(P0.add(p.mul(H0))).mod(n),K.cmpn(0)===0&&(K=!1,H0=new G(0));return T(H0,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),H0=E.alloc(n);H0.fill(1);var f=E.alloc(n);return f=M(p,f).update(H0).update(E.from([0])).update(x).update(i).digest(),H0=M(p,f).update(H0).digest(),f=M(p,f).update(H0).update(E.from([1])).update(x).update(i).digest(),H0=M(p,f).update(H0).digest(),{k:f,v:H0}}function U(x,A){var y=new G(x),p=(x.length<<3)-A.bitLength();return p>0&&y.ishrn(p),y}function D(x,A){x=U(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 k(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=U(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(G.mont(y)).redPow(A).fromRed().mod(p)}g.exports=z,g.exports.getKey=N,g.exports.makeKey=k}),k8=G0((l,g)=>{var E=d0().Buffer,M=R9(),F=A9().ec,S=H9(),G=g6();function j(Z,T,N,U,D){var k=S(N);if(k.type==="ec"){if(U!=="ecdsa"&&U!=="ecdsa/rsa")throw new Error("wrong public key type");return I(Z,T,k)}else if(k.type==="dsa"){if(U!=="dsa")throw new Error("wrong public key type");return z(Z,T,k)}else if(U!=="rsa"&&U!=="ecdsa/rsa")throw new Error("wrong public key type");T=E.concat([D,T]);for(var v=k.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(k.modulus);Z=new M(Z).toRed(p),Z=Z.redPow(new M(k.publicExponent)),Z=E.from(Z.fromRed().toArray());var c=A<8?1:0;for(v=Math.min(Z.length,x.length),Z.length!==x.length&&(c=1),y=-1;++y<v;)c|=Z[y]^x[y];return c===0}function I(Z,T,N){var U=G[N.data.algorithm.curve.join(".")];if(!U)throw new Error("unknown curve "+N.data.algorithm.curve.join("."));var D=new F(U),k=N.data.subjectPrivateKey.data;return D.verify(T,Z,k)}function z(Z,T,N){var U=N.data.p,D=N.data.q,k=N.data.g,v=N.data.pub_key,x=S.signature.decode(Z,"der"),A=x.s,y=x.r;V(A,D),V(y,D);var p=M.mont(U),c=A.invm(D),n=k.toRed(p).redPow(new M(T).mul(c).mod(D)).fromRed().mul(v.toRed(p).redPow(y.mul(c).mod(D)).fromRed()).mod(U).mod(D);return n.cmp(y)===0}function V(Z,T){if(Z.cmpn(0)<=0)throw new Error("invalid sig");if(Z.cmp(T)>=T)throw new Error("invalid sig")}g.exports=j}),q8=G0((l,g)=>{var E=d0().Buffer,M=h5(),F=f7(),S=p0(),G=I8(),j=k8(),I=Y6();Object.keys(I).forEach(function(N){I[N].id=E.from(I[N].id,"hex"),I[N.toLowerCase()]=I[N]});function z(N){F.Writable.call(this);var U=I[N];if(!U)throw new Error("Unknown message digest");this._hashType=U.hash,this._hash=M(U.hash),this._tag=U.id,this._signType=U.sign}S(z,F.Writable),z.prototype._write=function(N,U,D){this._hash.update(N),D()},z.prototype.update=function(N,U){return typeof N=="string"&&(N=E.from(N,U)),this._hash.update(N),this},z.prototype.sign=function(N,U){this.end();var D=this._hash.digest(),k=G(D,N,this._hashType,this._signType,this._tag);return U?k.toString(U):k};function V(N){F.Writable.call(this);var U=I[N];if(!U)throw new Error("Unknown message digest");this._hash=M(U.hash),this._tag=U.id,this._signType=U.sign}S(V,F.Writable),V.prototype._write=function(N,U,D){this._hash.update(N),D()},V.prototype.update=function(N,U){return typeof N=="string"&&(N=E.from(N,U)),this._hash.update(N),this},V.prototype.verify=function(N,U,D){typeof U=="string"&&(U=E.from(U,D)),this.end();var k=this._hash.digest();return j(U,k,N,this._signType,this._tag)};function Z(N){return new z(N)}function T(N){return new V(N)}g.exports={Sign:Z,Verify:T,createSign:Z,createVerify:T}}),B8=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var j;try{typeof window<"u"&&typeof window.Buffer<"u"?j=window.Buffer:j=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,P,W=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)P=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)P=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function z(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,P=0,W;if(Y==="be")for(H=K.length-1;H>=X;H-=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8}this.strip()};function V(K,X,Y,H){for(var Q=0,P=Math.min(K.length,Y),W=X;W<P;W++){var $=K.charCodeAt(W)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var P=K.length-Y,W=P%H,$=Math.min(P,P-W)+Y,C=0,J=Y;J<$;J+=H)C=V(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(W!==0){var R=1;for(C=V(K,J,K.length,X),J=0;J<W;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Z=["","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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,P=0;P<this.length;P++){var W=this.words[P],$=((W<<H|Q)&16777215).toString(16);Q=W>>>24-H&16777215,Q!==0||P!==this.length-1?Y=Z[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,P--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=T[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=Z[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof j<"u"),this.toArrayLike(j,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var P=X==="le",W=new K(Q),$,C,J=this.clone();if(P){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[C]=$;for(;C<Q;C++)W[C]=0}else{for(C=0;C<Q-H;C++)W[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[Q-C-1]=$}return W},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function U(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,P=0;P<H.length;P++)X=(Y.words[P]|0)+(H.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;for(;Q!==0&&P<Y.length;P++)X=(Y.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;P<Y.length;P++)this.words[P]=Y.words[P];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var P=0,W=0;W<Q.length;W++)X=(H.words[W]|0)-(Q.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;for(;P!==0&&W<H.length;W++)X=(H.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;if(P===0&&W<H.length&&H!==this)for(;W<H.length;W++)this.words[W]=H.words[W];return this.length=Math.max(this.length,W),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,P=X.words[0]|0,W=Q*P,$=W&67108863,C=W/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,P=X.words[s]|0,W=Q*P+L,R+=W/67108864|0,L=W&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,P=Y.words,W=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,a=u>>>13,V0=H[3]|0,K0=V0&8191,Q0=V0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,U0=w0&8191,W0=w0>>>13,c0=H[8]|0,O=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,Y0=z0&8191,Z0=z0>>>13,b0=Q[1]|0,F0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,O0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,W5=Q[7]|0,E0=W5&8191,S0=W5>>>13,Z5=Q[8]|0,x0=Z5&8191,A0=Z5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,Z0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,Z0);var Q5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,Z0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,Z0),$=$+Math.imul(L,F0)|0,C=C+Math.imul(L,j0)|0,C=C+Math.imul(_,F0)|0,J=J+Math.imul(_,j0)|0;var g0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,Z0),C=C+Math.imul(a,Y0)|0,J=Math.imul(a,Z0),$=$+Math.imul(r,F0)|0,C=C+Math.imul(r,j0)|0,C=C+Math.imul(X0,F0)|0,J=J+Math.imul(X0,j0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,Z0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,Z0),$=$+Math.imul(d,F0)|0,C=C+Math.imul(d,j0)|0,C=C+Math.imul(a,F0)|0,J=J+Math.imul(a,j0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,O0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,O0)|0;var h0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,Z0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,Z0),$=$+Math.imul(K0,F0)|0,C=C+Math.imul(K0,j0)|0,C=C+Math.imul(Q0,F0)|0,J=J+Math.imul(Q0,j0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(a,D0)|0,J=J+Math.imul(a,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,O0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,O0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,Z0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,Z0),$=$+Math.imul(q,F0)|0,C=C+Math.imul(q,j0)|0,C=C+Math.imul(m,F0)|0,J=J+Math.imul(m,j0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,O0)|0,C=C+Math.imul(a,T0)|0,J=J+Math.imul(a,O0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,Z0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,Z0),$=$+Math.imul(C0,F0)|0,C=C+Math.imul(C0,j0)|0,C=C+Math.imul(t,F0)|0,J=J+Math.imul(t,j0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,O0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,O0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(a,L0)|0,J=J+Math.imul(a,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(U0,Y0),C=Math.imul(U0,Z0),C=C+Math.imul(W0,Y0)|0,J=Math.imul(W0,Z0),$=$+Math.imul($0,F0)|0,C=C+Math.imul($0,j0)|0,C=C+Math.imul(J0,F0)|0,J=J+Math.imul(J0,j0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,O0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,O0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(a,k0)|0,J=J+Math.imul(a,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(O,Y0),C=Math.imul(O,Z0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,Z0),$=$+Math.imul(U0,F0)|0,C=C+Math.imul(U0,j0)|0,C=C+Math.imul(W0,F0)|0,J=J+Math.imul(W0,j0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,O0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,O0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(a,B0)|0,J=J+Math.imul(a,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,Z0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,Z0),$=$+Math.imul(O,F0)|0,C=C+Math.imul(O,j0)|0,C=C+Math.imul(B,F0)|0,J=J+Math.imul(B,j0)|0,$=$+Math.imul(U0,D0)|0,C=C+Math.imul(U0,N0)|0,C=C+Math.imul(W0,D0)|0,J=J+Math.imul(W0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,O0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,O0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(a,E0)|0,J=J+Math.imul(a,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,F0),C=Math.imul(h,j0),C=C+Math.imul(o,F0)|0,J=Math.imul(o,j0),$=$+Math.imul(O,D0)|0,C=C+Math.imul(O,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(U0,T0)|0,C=C+Math.imul(U0,O0)|0,C=C+Math.imul(W0,T0)|0,J=J+Math.imul(W0,O0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(a,x0)|0,J=J+Math.imul(a,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(O,T0)|0,C=C+Math.imul(O,O0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,O0)|0,$=$+Math.imul(U0,L0)|0,C=C+Math.imul(U0,I0)|0,C=C+Math.imul(W0,L0)|0,J=J+Math.imul(W0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(a,v0)|0,J=J+Math.imul(a,M0)|0;var i0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,O0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,O0),$=$+Math.imul(O,L0)|0,C=C+Math.imul(O,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(U0,k0)|0,C=C+Math.imul(U0,q0)|0,C=C+Math.imul(W0,k0)|0,J=J+Math.imul(W0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(O,k0)|0,C=C+Math.imul(O,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(U0,B0)|0,C=C+Math.imul(U0,R0)|0,C=C+Math.imul(W0,B0)|0,J=J+Math.imul(W0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(O,B0)|0,C=C+Math.imul(O,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(U0,E0)|0,C=C+Math.imul(U0,S0)|0,C=C+Math.imul(W0,E0)|0,J=J+Math.imul(W0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(O,E0)|0,C=C+Math.imul(O,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(U0,x0)|0,C=C+Math.imul(U0,A0)|0,C=C+Math.imul(W0,x0)|0,J=J+Math.imul(W0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(O,x0)|0,C=C+Math.imul(O,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(U0,v0)|0,C=C+Math.imul(U0,M0)|0,C=C+Math.imul(W0,v0)|0,J=J+Math.imul(W0,M0)|0;var X5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(O,v0)|0,C=C+Math.imul(O,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(W+$|0)+((C&8191)<<13)|0;return W=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=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]=C5,P[16]=X5,P[17]=H5,P[18]=Y5,W!==0&&(P[19]=W,Y.length++),Y};Math.imul||(k=D);function v(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,P=0;P<Y.length-1;P++){var W=Q;Q=0;for(var $=H&67108863,C=Math.min(P,X.length-1),J=Math.max(0,P-K.length+1);J<=C;J++){var R=P-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;W=W+(s/67108864|0)|0,r=r+$|0,$=r&67108863,W=W+(r>>>26)|0,Q+=W>>>26,W&=67108863}Y.words[P]=$,H=W,W=Q}return H!==0?Y.words[P]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new A;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=v(this,K,X):Y=x(this,K,X),Y};function A(K,X){this.x=K,this.y=X}A.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},A.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},A.prototype.permute=function(K,X,Y,H,Q,P){for(var W=0;W<P;W++)H[W]=X[K[W]],Q[W]=Y[K[W]]},A.prototype.transform=function(K,X,Y,H,Q,P){this.permute(P,K,X,Y,H,Q);for(var W=1;W<Q;W<<=1)for(var $=W<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<W;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+W],d=H[R+s+W],a=L*u-_*d;d=L*d+_*u,u=a,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+W]=r-u,H[R+s+W]=X0-d,s!==$&&(a=C*L-J*_,_=C*_+J*L,L=a)}},A.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},A.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},A.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},A.prototype.convert13b=function(K,X,Y,H){for(var Q=0,P=0;P<X;P++)Q=Q+(K[P]|0),Y[2*P]=Q&8191,Q=Q>>>13,Y[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*X;P<H;++P)Y[P]=0;F(Q===0),F((Q&-8192)===0)},A.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},A.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),P=this.stub(H),W=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,W,H),this.convert13b(X.words,X.length,J,H),this.transform(W,P,$,C,H,Q),this.transform(J,P,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,P,H,Q),this.conjugate(_,P,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=U(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var P=0;for(Q=0;Q<this.length;Q++){var W=this.words[Q]&H,$=(this.words[Q]|0)-W<<X;this.words[Q]=$|P,P=W>>>26-X}P&&(this.words[Q]=P,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),W=67108863^67108863>>>Q<<Q,$=Y;if(H-=P,H=Math.max(0,H),$){for(var C=0;C<P;C++)$.words[C]=this.words[C];$.length=P}if(P!==0)if(this.length>P)for(this.length-=P,C=0;C<this.length;C++)this.words[C]=this.words[C+P];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&W}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var P,W=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+Y]|0)+W;var $=(K.words[Q]|0)*X;P-=$&67108863,W=(P>>26)-($/67108864|0),this.words[Q+Y]=P&67108863}for(;Q<this.length-Y;Q++)P=(this.words[Q+Y]|0)+W,W=P>>26,this.words[Q+Y]=P&67108863;if(W===0)return this.strip();for(F(W===-1),W=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+W,W=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,P=Q.words[Q.length-1]|0,W=this._countBits(P);Y=26-W,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),P=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,X),X!=="mod"&&(H=P.div.neg()),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),X),X!=="mod"&&(H=P.div.neg()),{div:H,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),P=Y.cmp(H);return P<0||Q===1&&P===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=new G(0),W=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(P.isOdd()||W.isOdd())&&(P.iadd(C),W.isub(J)),P.iushrn(1),W.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(P),Q.isub(W)):(Y.isub(X),P.isub(H),W.isub(Q))}return{a:P,b:W,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var W=0,$=1;(X.words[0]&$)===0&&W<26;++W,$<<=1);if(W>0)for(X.iushrn(W);W-- >0;)H.isOdd()&&H.iadd(P),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var P=X;X=Y,Y=P}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,P=Y;Q!==0&&P<this.length;P++){var W=this.words[P]|0;W+=Q,Q=W>>>26,W&=67108863,this.words[P]=W}return Q!==0&&(this.words[P]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new f(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(X.words[X.length++]=P&Y,Q=10;Q<K.length;Q++){var W=K.words[Q]|0;K.words[Q-10]=(W&Y)<<4|P>>>22,P=W}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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function f(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.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,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},f.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},f.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},f.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},f.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},f.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},f.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},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 X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var P=new G(1).toRed(this),W=P.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(W)!==0;)C.redIAdd(W);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},f.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},f.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var P=H[0],W=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(P!==H[0]&&(P=this.sqr(P)),L===0&&W===0){$=0;continue}W<<=1,W|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(P=this.mul(P,H[W]),$=0,W=0)}C=26}return P},f.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},f.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.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 G(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 X=this.imod(K.mul(this.rinv));return X.red=null,X},P0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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 X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),R8=G0((l,g)=>{var E=A9(),M=B8();g.exports=function(j){return new S(j)};var F={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}};F.p224=F.secp224r1,F.p256=F.secp256r1=F.prime256v1,F.p192=F.secp192r1=F.prime192v1,F.p384=F.secp384r1,F.p521=F.secp521r1;function S(j){this.curveType=F[j],this.curveType||(this.curveType={name:j}),this.curve=new E.ec(this.curveType.name),this.keys=void 0}S.prototype.generateKeys=function(j,I){return this.keys=this.curve.genKeyPair(),this.getPublicKey(j,I)},S.prototype.computeSecret=function(j,I,z){I=I||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,I));var V=this.curve.keyFromPublic(j).getPublic(),Z=V.mul(this.keys.getPrivate()).getX();return G(Z,z,this.curveType.byteLength)},S.prototype.getPublicKey=function(j,I){var z=this.keys.getPublic(I==="compressed",!0);return I==="hybrid"&&(z[z.length-1]%2?z[0]=7:z[0]=6),G(z,j)},S.prototype.getPrivateKey=function(j){return G(this.keys.getPrivate(),j)},S.prototype.setPublicKey=function(j,I){return I=I||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,I)),this.keys._importPublic(j),this},S.prototype.setPrivateKey=function(j,I){I=I||"utf8",Buffer.isBuffer(j)||(j=new Buffer(j,I));var z=new M(j);return z=z.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(z),this};function G(j,I,z){Array.isArray(j)||(j=j.toArray());var V=new Buffer(j);if(z&&V.length<z){var Z=new Buffer(z-V.length);Z.fill(0),V=Buffer.concat([Z,V])}return I?V.toString(I):V}}),m6=G0((l,g)=>{var E=h5(),M=d0().Buffer;g.exports=function(S,G){for(var j=M.alloc(0),I=0,z;j.length<G;)z=F(I++),j=M.concat([j,E("sha1").update(S).update(z).digest()]);return j.slice(0,G)};function F(S){var G=M.allocUnsafe(4);return G.writeUInt32BE(S,0),G}}),p6=G0((l,g)=>{g.exports=function(E,M){for(var F=E.length,S=-1;++S<F;)E[S]^=M[S];return E}}),y9=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var j;try{typeof window<"u"&&typeof window.Buffer<"u"?j=window.Buffer:j=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,P,W=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)P=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)P=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=P<<W&67108863,this.words[Q+1]=P>>>26-W&67108863,W+=24,W>=26&&(W-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function z(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,P=0,W;if(Y==="be")for(H=K.length-1;H>=X;H-=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)W=z(K,X,H)<<Q,this.words[P]|=W&67108863,Q>=18?(Q-=18,P+=1,this.words[P]|=W>>>26):Q+=8}this.strip()};function V(K,X,Y,H){for(var Q=0,P=Math.min(K.length,Y),W=X;W<P;W++){var $=K.charCodeAt(W)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var P=K.length-Y,W=P%H,$=Math.min(P,P-W)+Y,C=0,J=Y;J<$;J+=H)C=V(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(W!==0){var R=1;for(C=V(K,J,K.length,X),J=0;J<W;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var Z=["","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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,P=0;P<this.length;P++){var W=this.words[P],$=((W<<H|Q)&16777215).toString(16);Q=W>>>24-H&16777215,Q!==0||P!==this.length-1?Y=Z[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,P--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=T[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=Z[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof j<"u"),this.toArrayLike(j,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var P=X==="le",W=new K(Q),$,C,J=this.clone();if(P){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[C]=$;for(;C<Q;C++)W[C]=0}else{for(C=0;C<Q-H;C++)W[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),W[Q-C-1]=$}return W},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function U(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,P=0;P<H.length;P++)X=(Y.words[P]|0)+(H.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;for(;Q!==0&&P<Y.length;P++)X=(Y.words[P]|0)+Q,this.words[P]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;P<Y.length;P++)this.words[P]=Y.words[P];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var P=0,W=0;W<Q.length;W++)X=(H.words[W]|0)-(Q.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;for(;P!==0&&W<H.length;W++)X=(H.words[W]|0)+P,P=X>>26,this.words[W]=X&67108863;if(P===0&&W<H.length&&H!==this)for(;W<H.length;W++)this.words[W]=H.words[W];return this.length=Math.max(this.length,W),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,P=X.words[0]|0,W=Q*P,$=W&67108863,C=W/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,P=X.words[s]|0,W=Q*P+L,R+=W/67108864|0,L=W&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,P=Y.words,W=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,a=u>>>13,V0=H[3]|0,K0=V0&8191,Q0=V0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,U0=w0&8191,W0=w0>>>13,c0=H[8]|0,O=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,z0=Q[0]|0,Y0=z0&8191,Z0=z0>>>13,b0=Q[1]|0,F0=b0&8191,j0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,O0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,P5=Q[6]|0,B0=P5&8191,R0=P5>>>13,W5=Q[7]|0,E0=W5&8191,S0=W5>>>13,Z5=Q[8]|0,x0=Z5&8191,A0=Z5>>>13,j5=Q[9]|0,v0=j5&8191,M0=j5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,Z0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,Z0);var Q5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,Z0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,Z0),$=$+Math.imul(L,F0)|0,C=C+Math.imul(L,j0)|0,C=C+Math.imul(_,F0)|0,J=J+Math.imul(_,j0)|0;var g0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,Z0),C=C+Math.imul(a,Y0)|0,J=Math.imul(a,Z0),$=$+Math.imul(r,F0)|0,C=C+Math.imul(r,j0)|0,C=C+Math.imul(X0,F0)|0,J=J+Math.imul(X0,j0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,Z0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,Z0),$=$+Math.imul(d,F0)|0,C=C+Math.imul(d,j0)|0,C=C+Math.imul(a,F0)|0,J=J+Math.imul(a,j0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,O0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,O0)|0;var h0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,Z0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,Z0),$=$+Math.imul(K0,F0)|0,C=C+Math.imul(K0,j0)|0,C=C+Math.imul(Q0,F0)|0,J=J+Math.imul(Q0,j0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(a,D0)|0,J=J+Math.imul(a,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,O0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,O0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,Z0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,Z0),$=$+Math.imul(q,F0)|0,C=C+Math.imul(q,j0)|0,C=C+Math.imul(m,F0)|0,J=J+Math.imul(m,j0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,O0)|0,C=C+Math.imul(a,T0)|0,J=J+Math.imul(a,O0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,Z0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,Z0),$=$+Math.imul(C0,F0)|0,C=C+Math.imul(C0,j0)|0,C=C+Math.imul(t,F0)|0,J=J+Math.imul(t,j0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,O0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,O0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(a,L0)|0,J=J+Math.imul(a,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(U0,Y0),C=Math.imul(U0,Z0),C=C+Math.imul(W0,Y0)|0,J=Math.imul(W0,Z0),$=$+Math.imul($0,F0)|0,C=C+Math.imul($0,j0)|0,C=C+Math.imul(J0,F0)|0,J=J+Math.imul(J0,j0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,O0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,O0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(a,k0)|0,J=J+Math.imul(a,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(O,Y0),C=Math.imul(O,Z0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,Z0),$=$+Math.imul(U0,F0)|0,C=C+Math.imul(U0,j0)|0,C=C+Math.imul(W0,F0)|0,J=J+Math.imul(W0,j0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,O0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,O0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(a,B0)|0,J=J+Math.imul(a,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,Z0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,Z0),$=$+Math.imul(O,F0)|0,C=C+Math.imul(O,j0)|0,C=C+Math.imul(B,F0)|0,J=J+Math.imul(B,j0)|0,$=$+Math.imul(U0,D0)|0,C=C+Math.imul(U0,N0)|0,C=C+Math.imul(W0,D0)|0,J=J+Math.imul(W0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,O0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,O0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(a,E0)|0,J=J+Math.imul(a,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,F0),C=Math.imul(h,j0),C=C+Math.imul(o,F0)|0,J=Math.imul(o,j0),$=$+Math.imul(O,D0)|0,C=C+Math.imul(O,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(U0,T0)|0,C=C+Math.imul(U0,O0)|0,C=C+Math.imul(W0,T0)|0,J=J+Math.imul(W0,O0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(a,x0)|0,J=J+Math.imul(a,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(O,T0)|0,C=C+Math.imul(O,O0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,O0)|0,$=$+Math.imul(U0,L0)|0,C=C+Math.imul(U0,I0)|0,C=C+Math.imul(W0,L0)|0,J=J+Math.imul(W0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(a,v0)|0,J=J+Math.imul(a,M0)|0;var i0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,O0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,O0),$=$+Math.imul(O,L0)|0,C=C+Math.imul(O,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(U0,k0)|0,C=C+Math.imul(U0,q0)|0,C=C+Math.imul(W0,k0)|0,J=J+Math.imul(W0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(O,k0)|0,C=C+Math.imul(O,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(U0,B0)|0,C=C+Math.imul(U0,R0)|0,C=C+Math.imul(W0,B0)|0,J=J+Math.imul(W0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(O,B0)|0,C=C+Math.imul(O,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(U0,E0)|0,C=C+Math.imul(U0,S0)|0,C=C+Math.imul(W0,E0)|0,J=J+Math.imul(W0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(O,E0)|0,C=C+Math.imul(O,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(U0,x0)|0,C=C+Math.imul(U0,A0)|0,C=C+Math.imul(W0,x0)|0,J=J+Math.imul(W0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(O,x0)|0,C=C+Math.imul(O,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(U0,v0)|0,C=C+Math.imul(U0,M0)|0,C=C+Math.imul(W0,v0)|0,J=J+Math.imul(W0,M0)|0;var X5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(O,v0)|0,C=C+Math.imul(O,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(W+$|0)+((C&8191)<<13)|0;W=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(W+$|0)+((C&8191)<<13)|0;return W=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=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]=C5,P[16]=X5,P[17]=H5,P[18]=Y5,W!==0&&(P[19]=W,Y.length++),Y};Math.imul||(k=D);function v(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,P=0;P<Y.length-1;P++){var W=Q;Q=0;for(var $=H&67108863,C=Math.min(P,X.length-1),J=Math.max(0,P-K.length+1);J<=C;J++){var R=P-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;W=W+(s/67108864|0)|0,r=r+$|0,$=r&67108863,W=W+(r>>>26)|0,Q+=W>>>26,W&=67108863}Y.words[P]=$,H=W,W=Q}return H!==0?Y.words[P]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new A;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=v(this,K,X):Y=x(this,K,X),Y};function A(K,X){this.x=K,this.y=X}A.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},A.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},A.prototype.permute=function(K,X,Y,H,Q,P){for(var W=0;W<P;W++)H[W]=X[K[W]],Q[W]=Y[K[W]]},A.prototype.transform=function(K,X,Y,H,Q,P){this.permute(P,K,X,Y,H,Q);for(var W=1;W<Q;W<<=1)for(var $=W<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<W;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+W],d=H[R+s+W],a=L*u-_*d;d=L*d+_*u,u=a,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+W]=r-u,H[R+s+W]=X0-d,s!==$&&(a=C*L-J*_,_=C*_+J*L,L=a)}},A.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},A.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},A.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},A.prototype.convert13b=function(K,X,Y,H){for(var Q=0,P=0;P<X;P++)Q=Q+(K[P]|0),Y[2*P]=Q&8191,Q=Q>>>13,Y[2*P+1]=Q&8191,Q=Q>>>13;for(P=2*X;P<H;++P)Y[P]=0;F(Q===0),F((Q&-8192)===0)},A.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},A.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),P=this.stub(H),W=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,W,H),this.convert13b(X.words,X.length,J,H),this.transform(W,P,$,C,H,Q),this.transform(J,P,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,P,H,Q),this.conjugate(_,P,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=U(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var P=0;for(Q=0;Q<this.length;Q++){var W=this.words[Q]&H,$=(this.words[Q]|0)-W<<X;this.words[Q]=$|P,P=W>>>26-X}P&&(this.words[Q]=P,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,P=Math.min((K-Q)/26,this.length),W=67108863^67108863>>>Q<<Q,$=Y;if(H-=P,H=Math.max(0,H),$){for(var C=0;C<P;C++)$.words[C]=this.words[C];$.length=P}if(P!==0)if(this.length>P)for(this.length-=P,C=0;C<this.length;C++)this.words[C]=this.words[C+P];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&W}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var P,W=0;for(Q=0;Q<K.length;Q++){P=(this.words[Q+Y]|0)+W;var $=(K.words[Q]|0)*X;P-=$&67108863,W=(P>>26)-($/67108864|0),this.words[Q+Y]=P&67108863}for(;Q<this.length-Y;Q++)P=(this.words[Q+Y]|0)+W,W=P>>26,this.words[Q+Y]=P&67108863;if(W===0)return this.strip();for(F(W===-1),W=0,Q=0;Q<this.length;Q++)P=-(this.words[Q]|0)+W,W=P>>26,this.words[Q]=P&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,P=Q.words[Q.length-1]|0,W=this._countBits(P);Y=26-W,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),P=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/P|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,P;return this.negative!==0&&K.negative===0?(P=this.neg().divmod(K,X),X!=="mod"&&(H=P.div.neg()),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(P=this.divmod(K.neg(),X),X!=="mod"&&(H=P.div.neg()),{div:H,mod:P.mod}):(this.negative&K.negative)!==0?(P=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=P.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:P.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),P=Y.cmp(H);return P<0||Q===1&&P===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=new G(0),W=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(P.isOdd()||W.isOdd())&&(P.iadd(C),W.isub(J)),P.iushrn(1),W.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(P),Q.isub(W)):(Y.isub(X),P.isub(H),W.isub(Q))}return{a:P,b:W,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),P=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var W=0,$=1;(X.words[0]&$)===0&&W<26;++W,$<<=1);if(W>0)for(X.iushrn(W);W-- >0;)H.isOdd()&&H.iadd(P),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(P),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var P=X;X=Y,Y=P}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,P=Y;Q!==0&&P<this.length;P++){var W=this.words[P]|0;W+=Q,Q=W>>>26,W&=67108863,this.words[P]=W}return Q!==0&&(this.words[P]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new f(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var P=K.words[9];for(X.words[X.length++]=P&Y,Q=10;Q<K.length;Q++){var W=K.words[Q]|0;K.words[Q-10]=(W&Y)<<4|P>>>22,P=W}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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function f(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}f.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},f.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.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,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},f.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},f.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},f.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},f.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},f.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},f.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},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 X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var P=new G(1).toRed(this),W=P.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(W)!==0;)C.redIAdd(W);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(P)!==0;){for(var s=L,r=0;s.cmp(P)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},f.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},f.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var P=H[0],W=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(P!==H[0]&&(P=this.sqr(P)),L===0&&W===0){$=0;continue}W<<=1,W|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(P=this.mul(P,H[W]),$=0,W=0)}C=26}return P},f.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},f.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.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 G(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 X=this.imod(K.mul(this.rinv));return X.red=null,X},P0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).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 X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),b6=G0((l,g)=>{var E=y9(),M=d0().Buffer;function F(S,G){return M.from(S.toRed(E.mont(G.modulus)).redPow(new E(G.publicExponent)).fromRed().toArray())}g.exports=F}),E8=G0((l,g)=>{var E=H9(),M=g5(),F=h5(),S=m6(),G=p6(),j=y9(),I=b6(),z=E9(),V=d0().Buffer;g.exports=function(U,D,k){var v;U.padding?v=U.padding:k?v=1:v=4;var x=E(U),A;if(v===4)A=Z(x,D);else if(v===1)A=T(x,D,k);else if(v===3){if(A=new j(D),A.cmp(x.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return k?z(A,x):I(A,x)};function Z(U,D){var k=U.modulus.byteLength(),v=D.length,x=F("sha1").update(V.alloc(0)).digest(),A=x.length,y=2*A;if(v>k-y-2)throw new Error("message too long");var p=V.alloc(k-v-y-2),c=k-A-1,n=M(A),i=G(V.concat([x,p,V.alloc(1,1),D],c),S(n,c)),H0=G(n,S(i,A));return new j(V.concat([V.alloc(1),H0,i],k))}function T(U,D,k){var v=D.length,x=U.modulus.byteLength();if(v>x-11)throw new Error("message too long");var A;return k?A=V.alloc(x-v-3,255):A=N(x-v-3),new j(V.concat([V.from([0,k?1:2]),A,V.alloc(1),D],x))}function N(U){for(var D=V.allocUnsafe(U),k=0,v=M(U*2),x=0,A;k<U;)x===v.length&&(v=M(U*2),x=0),A=v[x++],A&&(D[k++]=A);return D}}),S8=G0((l,g)=>{var E=H9(),M=m6(),F=p6(),S=y9(),G=E9(),j=h5(),I=b6(),z=d0().Buffer;g.exports=function(N,U,D){var k;N.padding?k=N.padding:D?k=1:k=4;var v=E(N),x=v.modulus.byteLength();if(U.length>x||new S(U).cmp(v.modulus)>=0)throw new Error("decryption error");var A;D?A=I(new S(U),v):A=G(U,v);var y=z.alloc(x-A.length);if(A=z.concat([y,A],x),k===4)return V(v,A);if(k===1)return Z(v,A,D);if(k===3)return A;throw new Error("unknown padding")};function V(N,U){var D=N.modulus.byteLength(),k=j("sha1").update(z.alloc(0)).digest(),v=k.length;if(U[0]!==0)throw new Error("decryption error");var x=U.slice(1,v+1),A=U.slice(v+1),y=F(x,M(A,v)),p=F(A,M(y,D-v-1));if(T(k,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 Z(N,U,D){for(var k=U.slice(0,2),v=2,x=0;U[v++]!==0;)if(v>=U.length){x++;break}var A=U.slice(2,v-1);if((k.toString("hex")!=="0002"&&!D||k.toString("hex")!=="0001"&&D)&&x++,A.length<8&&x++,x)throw new Error("decryption error");return U.slice(v)}function T(N,U){N=z.from(N),U=z.from(U);var D=0,k=N.length;N.length!==U.length&&(D++,k=Math.min(N.length,U.length));for(var v=-1;++v<k;)D+=N[v]^U[v];return D}}),x8=G0((l)=>{l.publicEncrypt=E8(),l.privateDecrypt=S8(),l.privateEncrypt=function(g,E){return l.publicEncrypt(g,E,!0)},l.publicDecrypt=function(g,E){return l.privateDecrypt(g,E,!0)}}),A8=G0((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(),F=E.Buffer,S=E.kMaxLength,G=global.crypto||global.msCrypto,
|
|
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}}),d6={};r5(d6,{DEFAULT_ENCODING:()=>M8,default:()=>_5,getCurves:()=>u6,getRandomValues:()=>l6,randomUUID:()=>h6,timingSafeEqual:()=>f5,webcrypto:()=>o6});
|
|
1
|
+
import{a as B5,c as R5}from"./chunk-nm00d52v.js";var{create:i6,defineProperty:n5,getOwnPropertyDescriptor:t6,getOwnPropertyNames:e6,getPrototypeOf:K7}=Object,C7=Object.prototype.hasOwnProperty,J9=(l,g)=>()=>(l&&(g=l(l=0)),g),G0=(l,g)=>()=>(g||l((g={exports:{}}).exports,g),g.exports),r5=(l,g)=>{for(var E in g)n5(l,E,{get:g[E],enumerable:!0})},s5=(l,g,E,M)=>{if(g&&typeof g=="object"||typeof g=="function")for(let F of e6(g))!C7.call(l,F)&&F!==E&&n5(l,F,{get:()=>g[F],enumerable:!(M=t6(g,F))||M.enumerable});return l},Z9=(l,g,E)=>(s5(l,g,"default"),E&&s5(E,g,"default")),E5=(l,g,E)=>(E=l!=null?i6(K7(l)):{},s5(g||!l||!l.__esModule?n5(E,"default",{value:l,enumerable:!0}):E,l)),O5=(l)=>s5(n5({},"__esModule",{value:!0}),l),X7=G0((l)=>{l.byteLength=I,l.toByteArray=z,l.fromByteArray=N;var g=[],E=[],M=typeof Uint8Array<"u"?Uint8Array:Array,F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,G=F.length;S<G;++S)g[S]=F[S],E[F.charCodeAt(S)]=S;var S,G;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 k=W.indexOf("=");k===-1&&(k=D);var A=k===D?0:4-k%4;return[k,A]}function I(W){var D=U(W),k=D[0],A=D[1];return(k+A)*3/4-A}function V(W,D,k){return(D+k)*3/4-k}function z(W){var D,k=U(W),A=k[0],x=k[1],v=new M(V(W,A,x)),y=0,p=x>0?A-4:A,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)],v[y++]=D>>16&255,v[y++]=D>>8&255,v[y++]=D&255;return x===2&&(D=E[W.charCodeAt(c)]<<2|E[W.charCodeAt(c+1)]>>4,v[y++]=D&255),x===1&&(D=E[W.charCodeAt(c)]<<10|E[W.charCodeAt(c+1)]<<4|E[W.charCodeAt(c+2)]>>2,v[y++]=D>>8&255,v[y++]=D&255),v}function j(W){return g[W>>18&63]+g[W>>12&63]+g[W>>6&63]+g[W&63]}function O(W,D,k){for(var A,x=[],v=D;v<k;v+=3)A=(W[v]<<16&16711680)+(W[v+1]<<8&65280)+(W[v+2]&255),x.push(j(A));return x.join("")}function N(W){for(var D,k=W.length,A=k%3,x=[],v=16383,y=0,p=k-A;y<p;y+=v)x.push(O(W,y,y+v>p?p:y+v));return A===1?(D=W[k-1],x.push(g[D>>2]+g[D<<4&63]+"==")):A===2&&(D=(W[k-2]<<8)+W[k-1],x.push(g[D>>10]+g[D>>4&63]+g[D<<2&63]+"=")),x.join("")}}),H7=G0((l)=>{l.read=function(g,E,M,F,S){var G,U,I=S*8-F-1,V=(1<<I)-1,z=V>>1,j=-7,O=M?S-1:0,N=M?-1:1,W=g[E+O];for(O+=N,G=W&(1<<-j)-1,W>>=-j,j+=I;j>0;G=G*256+g[E+O],O+=N,j-=8);for(U=G&(1<<-j)-1,G>>=-j,j+=F;j>0;U=U*256+g[E+O],O+=N,j-=8);if(G===0)G=1-z;else{if(G===V)return U?NaN:(W?-1:1)*(1/0);U=U+Math.pow(2,F),G=G-z}return(W?-1:1)*U*Math.pow(2,G-F)},l.write=function(g,E,M,F,S,G){var U,I,V,z=G*8-S-1,j=(1<<z)-1,O=j>>1,N=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=F?0:G-1,D=F?1:-1,k=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(I=isNaN(E)?1:0,U=j):(U=Math.floor(Math.log(E)/Math.LN2),E*(V=Math.pow(2,-U))<1&&(U--,V*=2),U+O>=1?E+=N/V:E+=N*Math.pow(2,1-O),E*V>=2&&(U++,V/=2),U+O>=j?(I=0,U=j):U+O>=1?(I=(E*V-1)*Math.pow(2,S),U=U+O):(I=E*Math.pow(2,O-1)*Math.pow(2,S),U=0));S>=8;g[M+W]=I&255,W+=D,I/=256,S-=8);for(U=U<<S|I,z+=S;z>0;g[M+W]=U&255,W+=D,U/=256,z-=8);g[M+W-D]|=k*128}}),W5=G0((l)=>{var g=X7(),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 F=2147483647;l.kMaxLength=F,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 T=new Uint8Array(1),B={foo:function(){return 42}};return Object.setPrototypeOf(B,Uint8Array.prototype),Object.setPrototypeOf(T,B),T.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 G(T){if(T>F)throw new RangeError('The value "'+T+'" is invalid for option "size"');let B=new Uint8Array(T);return Object.setPrototypeOf(B,U.prototype),B}function U(T,B,b){if(typeof T=="number"){if(typeof B=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(T)}return I(T,B,b)}U.poolSize=8192;function I(T,B,b){if(typeof T=="string")return O(T,B);if(ArrayBuffer.isView(T))return W(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(J0(T,ArrayBuffer)||T&&J0(T.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(J0(T,SharedArrayBuffer)||T&&J0(T.buffer,SharedArrayBuffer)))return D(T,B,b);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let h=T.valueOf&&T.valueOf();if(h!=null&&h!==T)return U.from(h,B,b);let o=k(T);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return U.from(T[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 T)}U.from=function(T,B,b){return I(T,B,b)},Object.setPrototypeOf(U.prototype,Uint8Array.prototype),Object.setPrototypeOf(U,Uint8Array);function V(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function z(T,B,b){return V(T),T<=0?G(T):B!==void 0?typeof b=="string"?G(T).fill(B,b):G(T).fill(B):G(T)}U.alloc=function(T,B,b){return z(T,B,b)};function j(T){return V(T),G(T<0?0:A(T)|0)}U.allocUnsafe=function(T){return j(T)},U.allocUnsafeSlow=function(T){return j(T)};function O(T,B){if((typeof B!="string"||B==="")&&(B="utf8"),!U.isEncoding(B))throw new TypeError("Unknown encoding: "+B);let b=v(T,B)|0,h=G(b),o=h.write(T,B);return o!==b&&(h=h.slice(0,o)),h}function N(T){let B=T.length<0?0:A(T.length)|0,b=G(B);for(let h=0;h<B;h+=1)b[h]=T[h]&255;return b}function W(T){if(J0(T,Uint8Array)){let B=new Uint8Array(T);return D(B.buffer,B.byteOffset,B.byteLength)}return N(T)}function D(T,B,b){if(B<0||T.byteLength<B)throw new RangeError('"offset" is outside of buffer bounds');if(T.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(T):b===void 0?h=new Uint8Array(T,B):h=new Uint8Array(T,B,b),Object.setPrototypeOf(h,U.prototype),h}function k(T){if(U.isBuffer(T)){let B=A(T.length)|0,b=G(B);return b.length===0||T.copy(b,0,0,B),b}if(T.length!==void 0)return typeof T.length!="number"||w0(T.length)?G(0):N(T);if(T.type==="Buffer"&&Array.isArray(T.data))return N(T.data)}function A(T){if(T>=F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return T|0}function x(T){return+T!=T&&(T=0),U.alloc(+T)}U.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==U.prototype},U.compare=function(T,B){if(J0(T,Uint8Array)&&(T=U.from(T,T.offset,T.byteLength)),J0(B,Uint8Array)&&(B=U.from(B,B.offset,B.byteLength)),!U.isBuffer(T)||!U.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===B)return 0;let b=T.length,h=B.length;for(let o=0,O0=Math.min(b,h);o<O0;++o)if(T[o]!==B[o]){b=T[o],h=B[o];break}return b<h?-1:h<b?1:0},U.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},U.concat=function(T,B){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return U.alloc(0);let b;if(B===void 0)for(B=0,b=0;b<T.length;++b)B+=T[b].length;let h=U.allocUnsafe(B),o=0;for(b=0;b<T.length;++b){let O0=T[b];if(J0(O0,Uint8Array))o+O0.length>h.length?(U.isBuffer(O0)||(O0=U.from(O0)),O0.copy(h,o)):Uint8Array.prototype.set.call(h,O0,o);else if(U.isBuffer(O0))O0.copy(h,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=O0.length}return h};function v(T,B){if(U.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||J0(T,ArrayBuffer))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);let b=T.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(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return _0(T).length;default:if(o)return h?-1:e(T).length;B=(""+B).toLowerCase(),o=!0}}U.byteLength=v;function y(T,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(T||(T="utf8");;)switch(T){case"hex":return $(this,B,b);case"utf8":case"utf-8":return Y(this,B,b);case"ascii":return Z(this,B,b);case"latin1":case"binary":return P(this,B,b);case"base64":return X(this,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,B,b);default:if(h)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),h=!0}}U.prototype._isBuffer=!0;function p(T,B,b){let h=T[B];T[B]=T[b],T[b]=h}U.prototype.swap16=function(){let T=this.length;if(T%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;B<T;B+=2)p(this,B,B+1);return this},U.prototype.swap32=function(){let T=this.length;if(T%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let B=0;B<T;B+=4)p(this,B,B+3),p(this,B+1,B+2);return this},U.prototype.swap64=function(){let T=this.length;if(T%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let B=0;B<T;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 T=this.length;return T===0?"":arguments.length===0?Y(this,0,T):y.apply(this,arguments)},U.prototype.toLocaleString=U.prototype.toString,U.prototype.equals=function(T){if(!U.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:U.compare(this,T)===0},U.prototype.inspect=function(){let T="",B=l.INSPECT_MAX_BYTES;return T=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B&&(T+=" ... "),"<Buffer "+T+">"},M&&(U.prototype[M]=U.prototype.inspect),U.prototype.compare=function(T,B,b,h,o){if(J0(T,Uint8Array)&&(T=U.from(T,T.offset,T.byteLength)),!U.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(B===void 0&&(B=0),b===void 0&&(b=T?T.length:0),h===void 0&&(h=0),o===void 0&&(o=this.length),B<0||b>T.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===T)return 0;let O0=o-h,Y0=b-B,j0=Math.min(O0,Y0),b0=this.slice(h,o),U0=T.slice(B,b);for(let F0=0;F0<j0;++F0)if(b0[F0]!==U0[F0]){O0=b0[F0],Y0=U0[F0];break}return O0<Y0?-1:Y0<O0?1:0};function c(T,B,b,h,o){if(T.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:T.length-1),b<0&&(b=T.length+b),b>=T.length){if(o)return-1;b=T.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(T,B,b,h,o);if(typeof B=="number")return B=B&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(T,B,b):Uint8Array.prototype.lastIndexOf.call(T,B,b):n(T,[B],b,h,o);throw new TypeError("val must be string, number or Buffer")}function n(T,B,b,h,o){let O0=1,Y0=T.length,j0=B.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(T.length<2||B.length<2)return-1;O0=2,Y0/=2,j0/=2,b/=2}function b0(F0,y0){return O0===1?F0[y0]:F0.readUInt16BE(y0*O0)}let U0;if(o){let F0=-1;for(U0=b;U0<Y0;U0++)if(b0(T,U0)===b0(B,F0===-1?0:U0-F0)){if(F0===-1&&(F0=U0),U0-F0+1===j0)return F0*O0}else F0!==-1&&(U0-=U0-F0),F0=-1}else for(b+j0>Y0&&(b=Y0-j0),U0=b;U0>=0;U0--){let F0=!0;for(let y0=0;y0<j0;y0++)if(b0(T,U0+y0)!==b0(B,y0)){F0=!1;break}if(F0)return U0}return-1}U.prototype.includes=function(T,B,b){return this.indexOf(T,B,b)!==-1},U.prototype.indexOf=function(T,B,b){return c(this,T,B,b,!0)},U.prototype.lastIndexOf=function(T,B,b){return c(this,T,B,b,!1)};function i(T,B,b,h){b=Number(b)||0;let o=T.length-b;h?(h=Number(h),h>o&&(h=o)):h=o;let O0=B.length;h>O0/2&&(h=O0/2);let Y0;for(Y0=0;Y0<h;++Y0){let j0=parseInt(B.substr(Y0*2,2),16);if(w0(j0))return Y0;T[b+Y0]=j0}return Y0}function H0(T,B,b,h){return $0(e(B,T.length-b),T,b,h)}function a(T,B,b,h){return $0(C0(B),T,b,h)}function Z0(T,B,b,h){return $0(_0(B),T,b,h)}function K(T,B,b,h){return $0(t(B,T.length-b),T,b,h)}U.prototype.write=function(T,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),T.length>0&&(b<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");h||(h="utf8");let O0=!1;for(;;)switch(h){case"hex":return i(this,T,B,b);case"utf8":case"utf-8":return H0(this,T,B,b);case"ascii":case"latin1":case"binary":return a(this,T,B,b);case"base64":return Z0(this,T,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,T,B,b);default:if(O0)throw new TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase(),O0=!0}},U.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(T,B,b){return B===0&&b===T.length?g.fromByteArray(T):g.fromByteArray(T.slice(B,b))}function Y(T,B,b){b=Math.min(T.length,b);let h=[],o=B;for(;o<b;){let O0=T[o],Y0=null,j0=O0>239?4:O0>223?3:O0>191?2:1;if(o+j0<=b){let b0,U0,F0,y0;switch(j0){case 1:O0<128&&(Y0=O0);break;case 2:b0=T[o+1],(b0&192)===128&&(y0=(O0&31)<<6|b0&63,y0>127&&(Y0=y0));break;case 3:b0=T[o+1],U0=T[o+2],(b0&192)===128&&(U0&192)===128&&(y0=(O0&15)<<12|(b0&63)<<6|U0&63,y0>2047&&(y0<55296||y0>57343)&&(Y0=y0));break;case 4:b0=T[o+1],U0=T[o+2],F0=T[o+3],(b0&192)===128&&(U0&192)===128&&(F0&192)===128&&(y0=(O0&15)<<18|(b0&63)<<12|(U0&63)<<6|F0&63,y0>65535&&y0<1114112&&(Y0=y0))}}Y0===null?(Y0=65533,j0=1):Y0>65535&&(Y0-=65536,h.push(Y0>>>10&1023|55296),Y0=56320|Y0&1023),h.push(Y0),o+=j0}return Q(h)}var H=4096;function Q(T){let B=T.length;if(B<=H)return String.fromCharCode.apply(String,T);let b="",h=0;for(;h<B;)b+=String.fromCharCode.apply(String,T.slice(h,h+=H));return b}function Z(T,B,b){let h="";b=Math.min(T.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(T[o]&127);return h}function P(T,B,b){let h="";b=Math.min(T.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(T[o]);return h}function $(T,B,b){let h=T.length;(!B||B<0)&&(B=0),(!b||b<0||b>h)&&(b=h);let o="";for(let O0=B;O0<b;++O0)o+=W0[T[O0]];return o}function C(T,B,b){let h=T.slice(B,b),o="";for(let O0=0;O0<h.length-1;O0+=2)o+=String.fromCharCode(h[O0]+h[O0+1]*256);return o}U.prototype.slice=function(T,B){let b=this.length;T=~~T,B=B===void 0?b:~~B,T<0?(T+=b,T<0&&(T=0)):T>b&&(T=b),B<0?(B+=b,B<0&&(B=0)):B>b&&(B=b),B<T&&(B=T);let h=this.subarray(T,B);return Object.setPrototypeOf(h,U.prototype),h};function J(T,B,b){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+B>b)throw new RangeError("Trying to access beyond buffer length")}U.prototype.readUintLE=U.prototype.readUIntLE=function(T,B,b){T=T>>>0,B=B>>>0,b||J(T,B,this.length);let h=this[T],o=1,O0=0;for(;++O0<B&&(o*=256);)h+=this[T+O0]*o;return h},U.prototype.readUintBE=U.prototype.readUIntBE=function(T,B,b){T=T>>>0,B=B>>>0,b||J(T,B,this.length);let h=this[T+--B],o=1;for(;B>0&&(o*=256);)h+=this[T+--B]*o;return h},U.prototype.readUint8=U.prototype.readUInt8=function(T,B){return T=T>>>0,B||J(T,1,this.length),this[T]},U.prototype.readUint16LE=U.prototype.readUInt16LE=function(T,B){return T=T>>>0,B||J(T,2,this.length),this[T]|this[T+1]<<8},U.prototype.readUint16BE=U.prototype.readUInt16BE=function(T,B){return T=T>>>0,B||J(T,2,this.length),this[T]<<8|this[T+1]},U.prototype.readUint32LE=U.prototype.readUInt32LE=function(T,B){return T=T>>>0,B||J(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},U.prototype.readUint32BE=U.prototype.readUInt32BE=function(T,B){return T=T>>>0,B||J(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},U.prototype.readBigUInt64LE=P0(function(T){T=T>>>0,Q0(T,"offset");let B=this[T],b=this[T+7];(B===void 0||b===void 0)&&w(T,this.length-8);let h=B+this[++T]*256+this[++T]*65536+this[++T]*16777216,o=this[++T]+this[++T]*256+this[++T]*65536+b*16777216;return BigInt(h)+(BigInt(o)<<BigInt(32))}),U.prototype.readBigUInt64BE=P0(function(T){T=T>>>0,Q0(T,"offset");let B=this[T],b=this[T+7];(B===void 0||b===void 0)&&w(T,this.length-8);let h=B*16777216+this[++T]*65536+this[++T]*256+this[++T],o=this[++T]*16777216+this[++T]*65536+this[++T]*256+b;return(BigInt(h)<<BigInt(32))+BigInt(o)}),U.prototype.readIntLE=function(T,B,b){T=T>>>0,B=B>>>0,b||J(T,B,this.length);let h=this[T],o=1,O0=0;for(;++O0<B&&(o*=256);)h+=this[T+O0]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*B)),h},U.prototype.readIntBE=function(T,B,b){T=T>>>0,B=B>>>0,b||J(T,B,this.length);let h=B,o=1,O0=this[T+--h];for(;h>0&&(o*=256);)O0+=this[T+--h]*o;return o*=128,O0>=o&&(O0-=Math.pow(2,8*B)),O0},U.prototype.readInt8=function(T,B){return T=T>>>0,B||J(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},U.prototype.readInt16LE=function(T,B){T=T>>>0,B||J(T,2,this.length);let b=this[T]|this[T+1]<<8;return b&32768?b|4294901760:b},U.prototype.readInt16BE=function(T,B){T=T>>>0,B||J(T,2,this.length);let b=this[T+1]|this[T]<<8;return b&32768?b|4294901760:b},U.prototype.readInt32LE=function(T,B){return T=T>>>0,B||J(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},U.prototype.readInt32BE=function(T,B){return T=T>>>0,B||J(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},U.prototype.readBigInt64LE=P0(function(T){T=T>>>0,Q0(T,"offset");let B=this[T],b=this[T+7];(B===void 0||b===void 0)&&w(T,this.length-8);let h=this[T+4]+this[T+5]*256+this[T+6]*65536+(b<<24);return(BigInt(h)<<BigInt(32))+BigInt(B+this[++T]*256+this[++T]*65536+this[++T]*16777216)}),U.prototype.readBigInt64BE=P0(function(T){T=T>>>0,Q0(T,"offset");let B=this[T],b=this[T+7];(B===void 0||b===void 0)&&w(T,this.length-8);let h=(B<<24)+this[++T]*65536+this[++T]*256+this[++T];return(BigInt(h)<<BigInt(32))+BigInt(this[++T]*16777216+this[++T]*65536+this[++T]*256+b)}),U.prototype.readFloatLE=function(T,B){return T=T>>>0,B||J(T,4,this.length),E.read(this,T,!0,23,4)},U.prototype.readFloatBE=function(T,B){return T=T>>>0,B||J(T,4,this.length),E.read(this,T,!1,23,4)},U.prototype.readDoubleLE=function(T,B){return T=T>>>0,B||J(T,8,this.length),E.read(this,T,!0,52,8)},U.prototype.readDoubleBE=function(T,B){return T=T>>>0,B||J(T,8,this.length),E.read(this,T,!1,52,8)};function R(T,B,b,h,o,O0){if(!U.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>o||B<O0)throw new RangeError('"value" argument is out of bounds');if(b+h>T.length)throw new RangeError("Index out of range")}U.prototype.writeUintLE=U.prototype.writeUIntLE=function(T,B,b,h){if(T=+T,B=B>>>0,b=b>>>0,!h){let Y0=Math.pow(2,8*b)-1;R(this,T,B,b,Y0,0)}let o=1,O0=0;for(this[B]=T&255;++O0<b&&(o*=256);)this[B+O0]=T/o&255;return B+b},U.prototype.writeUintBE=U.prototype.writeUIntBE=function(T,B,b,h){if(T=+T,B=B>>>0,b=b>>>0,!h){let Y0=Math.pow(2,8*b)-1;R(this,T,B,b,Y0,0)}let o=b-1,O0=1;for(this[B+o]=T&255;--o>=0&&(O0*=256);)this[B+o]=T/O0&255;return B+b},U.prototype.writeUint8=U.prototype.writeUInt8=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,1,255,0),this[B]=T&255,B+1},U.prototype.writeUint16LE=U.prototype.writeUInt16LE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,2,65535,0),this[B]=T&255,this[B+1]=T>>>8,B+2},U.prototype.writeUint16BE=U.prototype.writeUInt16BE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,2,65535,0),this[B]=T>>>8,this[B+1]=T&255,B+2},U.prototype.writeUint32LE=U.prototype.writeUInt32LE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,4,4294967295,0),this[B+3]=T>>>24,this[B+2]=T>>>16,this[B+1]=T>>>8,this[B]=T&255,B+4},U.prototype.writeUint32BE=U.prototype.writeUInt32BE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,4,4294967295,0),this[B]=T>>>24,this[B+1]=T>>>16,this[B+2]=T>>>8,this[B+3]=T&255,B+4};function L(T,B,b,h,o){K0(B,h,o,T,b,7);let O0=Number(B&BigInt(4294967295));T[b++]=O0,O0=O0>>8,T[b++]=O0,O0=O0>>8,T[b++]=O0,O0=O0>>8,T[b++]=O0;let Y0=Number(B>>BigInt(32)&BigInt(4294967295));return T[b++]=Y0,Y0=Y0>>8,T[b++]=Y0,Y0=Y0>>8,T[b++]=Y0,Y0=Y0>>8,T[b++]=Y0,b}function _(T,B,b,h,o){K0(B,h,o,T,b,7);let O0=Number(B&BigInt(4294967295));T[b+7]=O0,O0=O0>>8,T[b+6]=O0,O0=O0>>8,T[b+5]=O0,O0=O0>>8,T[b+4]=O0;let Y0=Number(B>>BigInt(32)&BigInt(4294967295));return T[b+3]=Y0,Y0=Y0>>8,T[b+2]=Y0,Y0=Y0>>8,T[b+1]=Y0,Y0=Y0>>8,T[b]=Y0,b+8}U.prototype.writeBigUInt64LE=P0(function(T,B=0){return L(this,T,B,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeBigUInt64BE=P0(function(T,B=0){return _(this,T,B,BigInt(0),BigInt("0xffffffffffffffff"))}),U.prototype.writeIntLE=function(T,B,b,h){if(T=+T,B=B>>>0,!h){let j0=Math.pow(2,8*b-1);R(this,T,B,b,j0-1,-j0)}let o=0,O0=1,Y0=0;for(this[B]=T&255;++o<b&&(O0*=256);)T<0&&Y0===0&&this[B+o-1]!==0&&(Y0=1),this[B+o]=(T/O0>>0)-Y0&255;return B+b},U.prototype.writeIntBE=function(T,B,b,h){if(T=+T,B=B>>>0,!h){let j0=Math.pow(2,8*b-1);R(this,T,B,b,j0-1,-j0)}let o=b-1,O0=1,Y0=0;for(this[B+o]=T&255;--o>=0&&(O0*=256);)T<0&&Y0===0&&this[B+o+1]!==0&&(Y0=1),this[B+o]=(T/O0>>0)-Y0&255;return B+b},U.prototype.writeInt8=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,1,127,-128),T<0&&(T=255+T+1),this[B]=T&255,B+1},U.prototype.writeInt16LE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,2,32767,-32768),this[B]=T&255,this[B+1]=T>>>8,B+2},U.prototype.writeInt16BE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,2,32767,-32768),this[B]=T>>>8,this[B+1]=T&255,B+2},U.prototype.writeInt32LE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,4,2147483647,-2147483648),this[B]=T&255,this[B+1]=T>>>8,this[B+2]=T>>>16,this[B+3]=T>>>24,B+4},U.prototype.writeInt32BE=function(T,B,b){return T=+T,B=B>>>0,b||R(this,T,B,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[B]=T>>>24,this[B+1]=T>>>16,this[B+2]=T>>>8,this[B+3]=T&255,B+4},U.prototype.writeBigInt64LE=P0(function(T,B=0){return L(this,T,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),U.prototype.writeBigInt64BE=P0(function(T,B=0){return _(this,T,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function s(T,B,b,h,o,O0){if(b+h>T.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function r(T,B,b,h,o){return B=+B,b=b>>>0,o||s(T,B,b,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),E.write(T,B,b,h,23,4),b+4}U.prototype.writeFloatLE=function(T,B,b){return r(this,T,B,!0,b)},U.prototype.writeFloatBE=function(T,B,b){return r(this,T,B,!1,b)};function X0(T,B,b,h,o){return B=+B,b=b>>>0,o||s(T,B,b,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),E.write(T,B,b,h,52,8),b+8}U.prototype.writeDoubleLE=function(T,B,b){return X0(this,T,B,!0,b)},U.prototype.writeDoubleBE=function(T,B,b){return X0(this,T,B,!1,b)},U.prototype.copy=function(T,B,b,h){if(!U.isBuffer(T))throw new TypeError("argument should be a Buffer");if(b||(b=0),!h&&h!==0&&(h=this.length),B>=T.length&&(B=T.length),B||(B=0),h>0&&h<b&&(h=b),h===b||T.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),T.length-B<h-b&&(h=T.length-B+b);let o=h-b;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(B,b,h):Uint8Array.prototype.set.call(T,this.subarray(b,h),B),o},U.prototype.fill=function(T,B,b,h){if(typeof T=="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(T.length===1){let O0=T.charCodeAt(0);(h==="utf8"&&O0<128||h==="latin1")&&(T=O0)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));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,T||(T=0);let o;if(typeof T=="number")for(o=B;o<b;++o)this[o]=T;else{let O0=U.isBuffer(T)?T:U.from(T,h),Y0=O0.length;if(Y0===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(o=0;o<b-B;++o)this[o+B]=O0[o%Y0]}return this};var u={};function d(T,B,b){u[T]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:B.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(h){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:h,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}d("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),d("ERR_INVALID_ARG_TYPE",function(T,B){return`The "${T}" argument must be of type number. Received type ${typeof B}`},TypeError),d("ERR_OUT_OF_RANGE",function(T,B,b){let h=`The value of "${T}" is out of range.`,o=b;return Number.isInteger(b)&&Math.abs(b)>4294967296?o=f(String(b)):typeof b=="bigint"&&(o=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(o=f(o)),o+="n"),h+=` It must be ${B}. Received ${o}`,h},RangeError);function f(T){let B="",b=T.length,h=T[0]==="-"?1:0;for(;b>=h+4;b-=3)B=`_${T.slice(b-3,b)}${B}`;return`${T.slice(0,b)}${B}`}function z0(T,B,b){Q0(B,"offset"),(T[B]===void 0||T[B+b]===void 0)&&w(B,T.length-(b+1))}function K0(T,B,b,h,o,O0){if(T>b||T<B){let Y0=typeof B=="bigint"?"n":"",j0;throw O0>3?B===0||B===BigInt(0)?j0=`>= 0${Y0} and < 2${Y0} ** ${(O0+1)*8}${Y0}`:j0=`>= -(2${Y0} ** ${(O0+1)*8-1}${Y0}) and < 2 ** ${(O0+1)*8-1}${Y0}`:j0=`>= ${B}${Y0} and <= ${b}${Y0}`,new u.ERR_OUT_OF_RANGE("value",j0,T)}z0(h,o,O0)}function Q0(T,B){if(typeof T!="number")throw new u.ERR_INVALID_ARG_TYPE(B,"number",T)}function w(T,B,b){throw Math.floor(T)!==T?(Q0(T,b),new u.ERR_OUT_OF_RANGE(b||"offset","an integer",T)):B<0?new u.ERR_BUFFER_OUT_OF_BOUNDS:new u.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${B}`,T)}var q=/[^+/0-9A-Za-z-_]/g;function m(T){if(T=T.split("=")[0],T=T.trim().replace(q,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function e(T,B){B=B||1/0;let b,h=T.length,o=null,O0=[];for(let Y0=0;Y0<h;++Y0){if(b=T.charCodeAt(Y0),b>55295&&b<57344){if(!o){if(b>56319){(B-=3)>-1&&O0.push(239,191,189);continue}else if(Y0+1===h){(B-=3)>-1&&O0.push(239,191,189);continue}o=b;continue}if(b<56320){(B-=3)>-1&&O0.push(239,191,189),o=b;continue}b=(o-55296<<10|b-56320)+65536}else o&&(B-=3)>-1&&O0.push(239,191,189);if(o=null,b<128){if((B-=1)<0)break;O0.push(b)}else if(b<2048){if((B-=2)<0)break;O0.push(b>>6|192,b&63|128)}else if(b<65536){if((B-=3)<0)break;O0.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((B-=4)<0)break;O0.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return O0}function C0(T){let B=[];for(let b=0;b<T.length;++b)B.push(T.charCodeAt(b)&255);return B}function t(T,B){let b,h,o,O0=[];for(let Y0=0;Y0<T.length&&!((B-=2)<0);++Y0)b=T.charCodeAt(Y0),h=b>>8,o=b%256,O0.push(o),O0.push(h);return O0}function _0(T){return g.toByteArray(m(T))}function $0(T,B,b,h){let o;for(o=0;o<h&&!(o+b>=B.length||o>=T.length);++o)B[o+b]=T[o];return o}function J0(T,B){return T instanceof B||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===B.name}function w0(T){return T!==T}var W0=function(){let T="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]=T[b]+T[o]}return B}();function P0(T){return typeof BigInt>"u"?c0:T}function c0(){throw new Error("BigInt not supported")}}),d0=G0((l,g)=>{var E=W5(),M=E.Buffer;function F(G,U){for(var I in G)U[I]=G[I]}M.from&&M.alloc&&M.allocUnsafe&&M.allocUnsafeSlow?g.exports=E:(F(E,l),l.Buffer=S);function S(G,U,I){return M(G,U,I)}S.prototype=Object.create(M.prototype),F(M,S),S.from=function(G,U,I){if(typeof G=="number")throw new TypeError("Argument must not be a number");return M(G,U,I)},S.alloc=function(G,U,I){if(typeof G!="number")throw new TypeError("Argument must be a number");var V=M(G);return U!==void 0?typeof I=="string"?V.fill(U,I):V.fill(U):V.fill(0),V},S.allocUnsafe=function(G){if(typeof G!="number")throw new TypeError("Argument must be a number");return M(G)},S.allocUnsafeSlow=function(G){if(typeof G!="number")throw new TypeError("Argument must be a number");return E.SlowBuffer(G)}}),g5=G0((l,g)=>{var E=65536,M=4294967295;function F(){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,G=global.crypto||global.msCrypto;G&&G.getRandomValues?g.exports=U:g.exports=F;function U(I,V){if(I>M)throw new RangeError("requested too many random bytes");var z=S.allocUnsafe(I);if(I>0)if(I>E)for(var j=0;j<I;j+=E)G.getRandomValues(z.slice(j,j+E));else G.getRandomValues(z);return typeof V=="function"?process.nextTick(function(){V(null,z)}):z}}),p0=G0((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 F=function(){};F.prototype=M.prototype,E.prototype=new F,E.prototype.constructor=E}}}),S5=G0((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)},F;E&&typeof E.ownKeys=="function"?F=E.ownKeys:Object.getOwnPropertySymbols?F=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:F=function(c){return Object.getOwnPropertyNames(c)};function S(c){console&&console.warn&&console.warn(c)}var G=Number.isNaN||function(c){return c!==c};function U(){U.init.call(this)}g.exports=U,g.exports.once=v,U.EventEmitter=U,U.prototype._events=void 0,U.prototype._eventsCount=0,U.prototype._maxListeners=void 0;var I=10;function V(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 I},set:function(c){if(typeof c!="number"||c<0||G(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");I=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||G(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 z(c){return c._maxListeners===void 0?U.defaultMaxListeners:c._maxListeners}U.prototype.getMaxListeners=function(){return z(this)},U.prototype.emit=function(c){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var H0=c==="error",a=this._events;if(a!==void 0)H0=H0&&a.error===void 0;else if(!H0)return!1;if(H0){var Z0;if(n.length>0&&(Z0=n[0]),Z0 instanceof Error)throw Z0;var K=new Error("Unhandled error."+(Z0?" ("+Z0.message+")":""));throw K.context=Z0,K}var X=a[c];if(X===void 0)return!1;if(typeof X=="function")M(X,this,n);else for(var Y=X.length,H=k(X,Y),i=0;i<Y;++i)M(H[i],this,n);return!0};function j(c,n,i,H0){var a,Z0,K;if(V(i),Z0=c._events,Z0===void 0?(Z0=c._events=Object.create(null),c._eventsCount=0):(Z0.newListener!==void 0&&(c.emit("newListener",n,i.listener?i.listener:i),Z0=c._events),K=Z0[n]),K===void 0)K=Z0[n]=i,++c._eventsCount;else if(typeof K=="function"?K=Z0[n]=H0?[i,K]:[K,i]:H0?K.unshift(i):K.push(i),a=z(c),a>0&&K.length>a&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=c,X.type=n,X.count=K.length,S(X)}return c}U.prototype.addListener=function(c,n){return j(this,c,n,!1)},U.prototype.on=U.prototype.addListener,U.prototype.prependListener=function(c,n){return j(this,c,n,!0)};function O(){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 H0={fired:!1,wrapFn:void 0,target:c,type:n,listener:i},a=O.bind(H0);return a.listener=i,H0.wrapFn=a,a}U.prototype.once=function(c,n){return V(n),this.on(c,N(this,c,n)),this},U.prototype.prependOnceListener=function(c,n){return V(n),this.prependListener(c,N(this,c,n)),this},U.prototype.removeListener=function(c,n){var i,H0,a,Z0,K;if(V(n),H0=this._events,H0===void 0)return this;if(i=H0[c],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete H0[c],H0.removeListener&&this.emit("removeListener",c,i.listener||n));else if(typeof i!="function"){for(a=-1,Z0=i.length-1;Z0>=0;Z0--)if(i[Z0]===n||i[Z0].listener===n){K=i[Z0].listener,a=Z0;break}if(a<0)return this;a===0?i.shift():A(i,a),i.length===1&&(H0[c]=i[0]),H0.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,H0;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 a=Object.keys(i),Z0;for(H0=0;H0<a.length;++H0)Z0=a[H0],Z0!=="removeListener"&&this.removeAllListeners(Z0);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(H0=n.length-1;H0>=0;H0--)this.removeListener(c,n[H0]);return this};function W(c,n,i){var H0=c._events;if(H0===void 0)return[];var a=H0[n];return a===void 0?[]:typeof a=="function"?i?[a.listener||a]:[a]:i?x(a):k(a,a.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?F(this._events):[]};function k(c,n){for(var i=new Array(n),H0=0;H0<n;++H0)i[H0]=c[H0];return i}function A(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 v(c,n){return new Promise(function(i,H0){function a(K){c.removeListener(n,Z0),H0(K)}function Z0(){typeof c.removeListener=="function"&&c.removeListener("error",a),i([].slice.call(arguments))}p(c,n,Z0,{once:!0}),n!=="error"&&y(c,a,{once:!0})})}function y(c,n,i){typeof c.on=="function"&&p(c,"error",n,i)}function p(c,n,i,H0){if(typeof c.on=="function")H0.once?c.once(n,i):c.on(n,i);else if(typeof c.addEventListener=="function")c.addEventListener(n,function a(Z0){H0.once&&c.removeEventListener(n,a),i(Z0)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}}),b9=G0((l,g)=>{g.exports=S5().EventEmitter}),i5=G0(()=>{}),Y7=G0((l,g)=>{function E(W,D){var k=Object.keys(W);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(W);D&&(A=A.filter(function(x){return Object.getOwnPropertyDescriptor(W,x).enumerable})),k.push.apply(k,A)}return k}function M(W){for(var D=1;D<arguments.length;D++){var k=arguments[D]!=null?arguments[D]:{};D%2?E(Object(k),!0).forEach(function(A){F(W,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(k)):E(Object(k)).forEach(function(A){Object.defineProperty(W,A,Object.getOwnPropertyDescriptor(k,A))})}return W}function F(W,D,k){return D in W?Object.defineProperty(W,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[D]=k,W}function S(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}function G(W,D){for(var k=0;k<D.length;k++){var A=D[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(W,A.key,A)}}function U(W,D,k){return D&&G(W.prototype,D),k&&G(W,k),W}var I=W5(),V=I.Buffer,z=i5(),j=z.inspect,O=j&&j.custom||"inspect";function N(W,D,k){V.prototype.copy.call(W,D,k)}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 k={data:D,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(D){var k={data:D,next:this.head};this.length===0&&(this.tail=k),this.head=k,++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 k=this.head,A=""+k.data;k=k.next;)A+=D+k.data;return A}},{key:"concat",value:function(D){if(this.length===0)return V.alloc(0);for(var k=V.allocUnsafe(D>>>0),A=this.head,x=0;A;)N(A.data,k,x),x+=A.data.length,A=A.next;return k}},{key:"consume",value:function(D,k){var A;return D<this.head.data.length?(A=this.head.data.slice(0,D),this.head.data=this.head.data.slice(D)):D===this.head.data.length?A=this.shift():A=k?this._getString(D):this._getBuffer(D),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var k=this.head,A=1,x=k.data;for(D-=x.length;k=k.next;){var v=k.data,y=D>v.length?v.length:D;if(y===v.length?x+=v:x+=v.slice(0,D),D-=y,D===0){y===v.length?(++A,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=v.slice(y));break}++A}return this.length-=A,x}},{key:"_getBuffer",value:function(D){var k=V.allocUnsafe(D),A=this.head,x=1;for(A.data.copy(k),D-=A.data.length;A=A.next;){var v=A.data,y=D>v.length?v.length:D;if(v.copy(k,k.length-D,0,y),D-=y,D===0){y===v.length?(++x,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=v.slice(y));break}++x}return this.length-=x,k}},{key:O,value:function(D,k){return j(this,M({},k,{depth:0,customInspect:!1}))}}]),W}()}),c9=G0((l,g)=>{function E(I,V){var z=this,j=this._readableState&&this._readableState.destroyed,O=this._writableState&&this._writableState.destroyed;return j||O?(V?V(I):I&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(G,this,I)):process.nextTick(G,this,I)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(I||null,function(N){!V&&N?z._writableState?z._writableState.errorEmitted?process.nextTick(F,z):(z._writableState.errorEmitted=!0,process.nextTick(M,z,N)):process.nextTick(M,z,N):V?(process.nextTick(F,z),V(N)):process.nextTick(F,z)}),this)}function M(I,V){G(I,V),F(I)}function F(I){I._writableState&&!I._writableState.emitClose||I._readableState&&!I._readableState.emitClose||I.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 G(I,V){I.emit("error",V)}function U(I,V){var{_readableState:z,_writableState:j}=I;z&&z.autoDestroy||j&&j.autoDestroy?I.destroy(V):I.emit("error",V)}g.exports={destroy:E,undestroy:S,errorOrDestroy:U}}),m5=G0((l,g)=>{function E(V,z){V.prototype=Object.create(z.prototype),V.prototype.constructor=V,V.__proto__=z}var M={};function F(V,z,j){j||(j=Error);function O(W,D,k){return typeof z=="string"?z:z(W,D,k)}var N=function(W){E(D,W);function D(k,A,x){return W.call(this,O(k,A,x))||this}return D}(j);N.prototype.name=j.name,N.prototype.code=V,M[V]=N}function S(V,z){if(Array.isArray(V)){var j=V.length;return V=V.map(function(O){return String(O)}),j>2?"one of ".concat(z," ").concat(V.slice(0,j-1).join(", "),", or ")+V[j-1]:j===2?"one of ".concat(z," ").concat(V[0]," or ").concat(V[1]):"of ".concat(z," ").concat(V[0])}else return"of ".concat(z," ").concat(String(V))}function G(V,z,j){return V.substr(!j||j<0?0:+j,z.length)===z}function U(V,z,j){return(j===void 0||j>V.length)&&(j=V.length),V.substring(j-z.length,j)===z}function I(V,z,j){return typeof j!="number"&&(j=0),j+z.length>V.length?!1:V.indexOf(z,j)!==-1}F("ERR_INVALID_OPT_VALUE",function(V,z){return'The value "'+z+'" is invalid for option "'+V+'"'},TypeError),F("ERR_INVALID_ARG_TYPE",function(V,z,j){var O;typeof z=="string"&&G(z,"not ")?(O="must not be",z=z.replace(/^not /,"")):O="must be";var N;if(U(V," argument"))N="The ".concat(V," ").concat(O," ").concat(S(z,"type"));else{var W=I(V,".")?"property":"argument";N='The "'.concat(V,'" ').concat(W," ").concat(O," ").concat(S(z,"type"))}return N+=". Received type ".concat(typeof j),N},TypeError),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),F("ERR_METHOD_NOT_IMPLEMENTED",function(V){return"The "+V+" method is not implemented"}),F("ERR_STREAM_PREMATURE_CLOSE","Premature close"),F("ERR_STREAM_DESTROYED",function(V){return"Cannot call "+V+" after a stream was destroyed"}),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),F("ERR_STREAM_WRITE_AFTER_END","write after end"),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_UNKNOWN_ENCODING",function(V){return"Unknown encoding: "+V},TypeError),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=M}),d9=G0((l,g)=>{var E=m5().codes.ERR_INVALID_OPT_VALUE;function M(S,G,U){return S.highWaterMark!=null?S.highWaterMark:G?S[U]:null}function F(S,G,U,I){var V=M(G,I,U);if(V!=null){if(!(isFinite(V)&&Math.floor(V)===V)||V<0){var z=I?U:"highWaterMark";throw new E(z,V)}return Math.floor(V)}return S.objectMode?16:16384}g.exports={getHighWaterMark:F}}),l9=G0((l,g)=>{g.exports=E;function E(F,S){if(M("noDeprecation"))return F;var G=!1;function U(){if(!G){if(M("throwDeprecation"))throw new Error(S);M("traceDeprecation")?console.trace(S):console.warn(S),G=!0}return F.apply(this,arguments)}return U}function M(F){try{if(!global.localStorage)return!1}catch{return!1}var S=global.localStorage[F];return S==null?!1:String(S).toLowerCase()==="true"}}),h9=G0((l,g)=>{g.exports=a;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){X0(d,u)}}var M;a.WritableState=i;var F={deprecate:l9()},S=b9(),G=W5().Buffer,U=global.Uint8Array||function(){};function I(u){return G.from(u)}function V(u){return G.isBuffer(u)||u instanceof U}var z=c9(),j=d9(),O=j.getHighWaterMark,N=m5().codes,W=N.ERR_INVALID_ARG_TYPE,D=N.ERR_METHOD_NOT_IMPLEMENTED,k=N.ERR_MULTIPLE_CALLBACK,A=N.ERR_STREAM_CANNOT_PIPE,x=N.ERR_STREAM_DESTROYED,v=N.ERR_STREAM_NULL_VALUES,y=N.ERR_STREAM_WRITE_AFTER_END,p=N.ERR_UNKNOWN_ENCODING,c=z.errorOrDestroy;p0()(a,S);function n(){}function i(u,d,f){M=M||w5(),u=u||{},typeof f!="boolean"&&(f=d instanceof M),this.objectMode=!!u.objectMode,f&&(this.objectMode=this.objectMode||!!u.writableObjectMode),this.highWaterMark=O(this,u,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var z0=u.decodeStrings===!1;this.decodeStrings=!z0,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K0){P(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:F.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H0=Function.prototype[Symbol.hasInstance],Object.defineProperty(a,Symbol.hasInstance,{value:function(u){return H0.call(this,u)?!0:this!==a?!1:u&&u._writableState instanceof i}})):H0=function(u){return u instanceof this};function a(u){M=M||w5();var d=this instanceof M;if(!d&&!H0.call(a,this))return new a(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)}a.prototype.pipe=function(){c(this,new A)};function Z0(u,d){var f=new y;c(u,f),process.nextTick(d,f)}function K(u,d,f,z0){var K0;return f===null?K0=new v:typeof f!="string"&&!d.objectMode&&(K0=new W("chunk",["string","Buffer"],f)),K0?(c(u,K0),process.nextTick(z0,K0),!1):!0}a.prototype.write=function(u,d,f){var z0=this._writableState,K0=!1,Q0=!z0.objectMode&&V(u);return Q0&&!G.isBuffer(u)&&(u=I(u)),typeof d=="function"&&(f=d,d=null),Q0?d="buffer":d||(d=z0.defaultEncoding),typeof f!="function"&&(f=n),z0.ending?Z0(this,f):(Q0||K(this,z0,u,f))&&(z0.pendingcb++,K0=Y(this,z0,Q0,u,d,f)),K0},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&J(this,u))},a.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(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(u,d,f){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=G.from(d,f)),d}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(u,d,f,z0,K0,Q0){if(!f){var w=X(d,z0,K0);z0!==w&&(f=!0,K0="buffer",z0=w)}var q=d.objectMode?1:z0.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:z0,encoding:K0,isBuf:f,callback:Q0,next:null},e?e.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else H(u,d,!1,q,z0,K0,Q0);return m}function H(u,d,f,z0,K0,Q0,w){d.writelen=z0,d.writecb=w,d.writing=!0,d.sync=!0,d.destroyed?d.onwrite(new x("write")):f?u._writev(K0,d.onwrite):u._write(K0,Q0,d.onwrite),d.sync=!1}function Q(u,d,f,z0,K0){--d.pendingcb,f?(process.nextTick(K0,z0),process.nextTick(s,u,d),u._writableState.errorEmitted=!0,c(u,z0)):(K0(z0),u._writableState.errorEmitted=!0,c(u,z0),s(u,d))}function Z(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function P(u,d){var f=u._writableState,z0=f.sync,K0=f.writecb;if(typeof K0!="function")throw new k;if(Z(f),d)Q(u,f,z0,d,K0);else{var Q0=R(f)||u.destroyed;!Q0&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&J(u,f),z0?process.nextTick($,u,f,Q0,K0):$(u,f,Q0,K0)}}function $(u,d,f,z0){f||C(u,d),d.pendingcb--,z0(),s(u,d)}function C(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function J(u,d){d.bufferProcessing=!0;var f=d.bufferedRequest;if(u._writev&&f&&f.next){var z0=d.bufferedRequestCount,K0=new Array(z0),Q0=d.corkedRequestsFree;Q0.entry=f;for(var w=0,q=!0;f;)K0[w]=f,f.isBuf||(q=!1),f=f.next,w+=1;K0.allBuffers=q,H(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(;f;){var{chunk:m,encoding:e,callback:C0}=f,t=d.objectMode?1:m.length;if(H(u,d,!1,t,m,e,C0),f=f.next,d.bufferedRequestCount--,d.writing)break}f===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=f,d.bufferProcessing=!1}a.prototype._write=function(u,d,f){f(new D("_write()"))},a.prototype._writev=null,a.prototype.end=function(u,d,f){var z0=this._writableState;return typeof u=="function"?(f=u,u=null,d=null):typeof d=="function"&&(f=d,d=null),u!=null&&this.write(u,d),z0.corked&&(z0.corked=1,this.uncork()),z0.ending||r(this,z0,f),this},Object.defineProperty(a.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(f){d.pendingcb--,f&&c(u,f),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 f=R(d);if(f&&(_(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"),d.autoDestroy))){var z0=u._readableState;(!z0||z0.autoDestroy&&z0.endEmitted)&&u.destroy()}return f}function r(u,d,f){d.ending=!0,s(u,d),f&&(d.finished?process.nextTick(f):u.once("finish",f)),d.ended=!0,u.writable=!1}function X0(u,d,f){var z0=u.entry;for(u.entry=null;z0;){var K0=z0.callback;d.pendingcb--,K0(f),z0=z0.next}d.corkedRequestsFree.next=u}Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){!this._writableState||(this._writableState.destroyed=u)}}),a.prototype.destroy=z.destroy,a.prototype._undestroy=z.undestroy,a.prototype._destroy=function(u,d){d(u)}}),w5=G0((l,g)=>{var E=Object.keys||function(j){var O=[];for(var N in j)O.push(N);return O};g.exports=I;var M=u9(),F=h9();p0()(I,M);for(S=E(F.prototype),U=0;U<S.length;U++)G=S[U],I.prototype[G]||(I.prototype[G]=F.prototype[G]);var S,G,U;function I(j){if(!(this instanceof I))return new I(j);M.call(this,j),F.call(this,j),this.allowHalfOpen=!0,j&&(j.readable===!1&&(this.readable=!1),j.writable===!1&&(this.writable=!1),j.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",V)))}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function V(){this._writableState.ended||process.nextTick(z,this)}function z(j){j.end()}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(j){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=j,this._writableState.destroyed=j)}})}),P9=G0((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 v;;)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(v)return;x=(""+x).toLowerCase(),v=!0}}function F(x){var v=M(x);if(typeof v!="string"&&(g.isEncoding===E||!E(x)))throw new Error("Unknown encoding: "+x);return v||x}l.StringDecoder=S;function S(x){this.encoding=F(x);var v;switch(this.encoding){case"utf16le":this.text=O,this.end=N,v=4;break;case"utf8":this.fillLast=V,v=4;break;case"base64":this.text=W,this.end=D,v=3;break;default:this.write=k,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(v)}S.prototype.write=function(x){if(x.length===0)return"";var v,y;if(this.lastNeed){if(v=this.fillLast(x),v===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<x.length?v?v+this.text(x,y):this.text(x,y):v||""},S.prototype.end=j,S.prototype.text=z,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 G(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,v,y){var p=v.length-1;if(p<y)return 0;var c=G(v[p]);return c>=0?(c>0&&(x.lastNeed=c-1),c):--p<y||c===-2?0:(c=G(v[p]),c>=0?(c>0&&(x.lastNeed=c-2),c):--p<y||c===-2?0:(c=G(v[p]),c>=0?(c>0&&(c===2?c=0:x.lastNeed=c-3),c):0))}function I(x,v,y){if((v[0]&192)!==128)return x.lastNeed=0,"�";if(x.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return x.lastNeed=1,"�";if(x.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return x.lastNeed=2,"�"}}function V(x){var v=this.lastTotal-this.lastNeed,y=I(this,x,v);if(y!==void 0)return y;if(this.lastNeed<=x.length)return x.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,v,0,x.length),this.lastNeed-=x.length}function z(x,v){var y=U(this,x,v);if(!this.lastNeed)return x.toString("utf8",v);this.lastTotal=y;var p=x.length-(y-this.lastNeed);return x.copy(this.lastChar,0,p),x.toString("utf8",v,p)}function j(x){var v=x&&x.length?this.write(x):"";return this.lastNeed?v+"�":v}function O(x,v){if((x.length-v)%2===0){var y=x.toString("utf16le",v);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",v,x.length-1)}function N(x){var v=x&&x.length?this.write(x):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,y)}return v}function W(x,v){var y=(x.length-v)%3;return y===0?x.toString("base64",v):(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",v,x.length-y))}function D(x){var v=x&&x.length?this.write(x):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function k(x){return x.toString(this.encoding)}function A(x){return x&&x.length?this.write(x):""}}),d5={};r5(d5,{StringDecoder:()=>G9.StringDecoder,default:()=>G9.StringDecoder});var G9,a5=J9(()=>{G9=E5(P9())}),j9=G0((l,g)=>{var E=m5().codes.ERR_STREAM_PREMATURE_CLOSE;function M(U){var I=!1;return function(){if(!I){I=!0;for(var V=arguments.length,z=new Array(V),j=0;j<V;j++)z[j]=arguments[j];U.apply(this,z)}}}function F(){}function S(U){return U.setHeader&&typeof U.abort=="function"}function G(U,I,V){if(typeof I=="function")return G(U,null,I);I||(I={}),V=M(V||F);var z=I.readable||I.readable!==!1&&U.readable,j=I.writable||I.writable!==!1&&U.writable,O=function(){U.writable||W()},N=U._writableState&&U._writableState.finished,W=function(){j=!1,N=!0,z||V.call(U)},D=U._readableState&&U._readableState.endEmitted,k=function(){z=!1,D=!0,j||V.call(U)},A=function(y){V.call(U,y)},x=function(){var y;if(z&&!D)return(!U._readableState||!U._readableState.ended)&&(y=new E),V.call(U,y);if(j&&!N)return(!U._writableState||!U._writableState.ended)&&(y=new E),V.call(U,y)},v=function(){U.req.on("finish",W)};return S(U)?(U.on("complete",W),U.on("abort",x),U.req?v():U.on("request",v)):j&&!U._writableState&&(U.on("end",O),U.on("close",O)),U.on("end",k),U.on("finish",W),I.error!==!1&&U.on("error",A),U.on("close",x),function(){U.removeListener("complete",W),U.removeListener("abort",x),U.removeListener("request",v),U.req&&U.req.removeListener("finish",W),U.removeListener("end",O),U.removeListener("close",O),U.removeListener("finish",W),U.removeListener("end",k),U.removeListener("error",A),U.removeListener("close",x)}}g.exports=G}),Q7=G0((l,g)=>{var E;function M(v,y,p){return y in v?Object.defineProperty(v,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):v[y]=p,v}var F=j9(),S=Symbol("lastResolve"),G=Symbol("lastReject"),U=Symbol("error"),I=Symbol("ended"),V=Symbol("lastPromise"),z=Symbol("handlePromise"),j=Symbol("stream");function O(v,y){return{value:v,done:y}}function N(v){var y=v[S];if(y!==null){var p=v[j].read();p!==null&&(v[V]=null,v[S]=null,v[G]=null,y(O(p,!1)))}}function W(v){process.nextTick(N,v)}function D(v,y){return function(p,c){v.then(function(){if(y[I]){p(O(void 0,!0));return}y[z](p,c)},c)}}var k=Object.getPrototypeOf(function(){}),A=Object.setPrototypeOf((E={get stream(){return this[j]},next:function(){var v=this,y=this[U];if(y!==null)return Promise.reject(y);if(this[I])return Promise.resolve(O(void 0,!0));if(this[j].destroyed)return new Promise(function(i,H0){process.nextTick(function(){v[U]?H0(v[U]):i(O(void 0,!0))})});var p=this[V],c;if(p)c=new Promise(D(p,this));else{var n=this[j].read();if(n!==null)return Promise.resolve(O(n,!1));c=new Promise(this[z])}return this[V]=c,c}},M(E,Symbol.asyncIterator,function(){return this}),M(E,"return",function(){var v=this;return new Promise(function(y,p){v[j].destroy(null,function(c){if(c){p(c);return}y(O(void 0,!0))})})}),E),k),x=function(v){var y,p=Object.create(A,(y={},M(y,j,{value:v,writable:!0}),M(y,S,{value:null,writable:!0}),M(y,G,{value:null,writable:!0}),M(y,U,{value:null,writable:!0}),M(y,I,{value:v._readableState.endEmitted,writable:!0}),M(y,z,{value:function(c,n){var i=p[j].read();i?(p[V]=null,p[S]=null,p[G]=null,c(O(i,!1))):(p[S]=c,p[G]=n)},writable:!0}),y));return p[V]=null,F(v,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[G];n!==null&&(p[V]=null,p[S]=null,p[G]=null,n(c)),p[U]=c;return}var i=p[S];i!==null&&(p[V]=null,p[S]=null,p[G]=null,i(O(void 0,!0))),p[I]=!0}),v.on("readable",W.bind(null,p)),p};g.exports=x}),$7=G0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),u9=G0((l,g)=>{g.exports=K;var E;K.ReadableState=Z0;var M=S5().EventEmitter,F=function(w,q){return w.listeners(q).length},S=b9(),G=W5().Buffer,U=global.Uint8Array||function(){};function I(w){return G.from(w)}function V(w){return G.isBuffer(w)||w instanceof U}var z=i5(),j;z&&z.debuglog?j=z.debuglog("stream"):j=function(){};var O=Y7(),N=c9(),W=d9(),D=W.getHighWaterMark,k=m5().codes,A=k.ERR_INVALID_ARG_TYPE,x=k.ERR_STREAM_PUSH_AFTER_EOF,v=k.ERR_METHOD_NOT_IMPLEMENTED,y=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(K,S);var i=N.errorOrDestroy,H0=["error","close","destroy","pause","resume"];function a(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 Z0(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 O,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=(a5(),O5(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 Z0(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=G.from(w,q),q=""),e=!0),X(this,w,q,!1,e)},K.prototype.unshift=function(w){return X(this,w,null,!0,!1)};function X(w,q,m,e,C0){j("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,$(w,t);else{var _0;if(C0||(_0=H(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==G.prototype&&(q=I(q)),e)t.endEmitted?i(w,new y):Y(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?Y(w,t,q,!1):R(w,t)):Y(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function Y(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&&C(w)),R(w,q)}function H(w,q){var m;return!V(q)&&typeof q!="string"&&q!==void 0&&!w.objectMode&&(m=new A("chunk",["string","Buffer","Uint8Array"],q)),m}K.prototype.isPaused=function(){return this._readableState.flowing===!1},K.prototype.setEncoding=function(w){p||(p=(a5(),O5(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 Z(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 P(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=Z(w)),w<=q.length?w:q.ended?q.length:(q.needReadable=!0,0))}K.prototype.read=function(w){j("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 j("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?z0(this):C(this),null;if(w=P(w,q),w===0&&q.ended)return q.length===0&&z0(this),null;var e=q.needReadable;j("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,j("length less than watermark",e)),q.ended||q.reading?(e=!1,j("reading or ended",e)):e&&(j("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=P(m,q)));var C0;return w>0?C0=f(w,q):C0=null,C0===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&&z0(this)),C0!==null&&this.emit("data",C0),C0};function $(w,q){if(j("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?C(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,J(w)))}}function C(w){var q=w._readableState;j("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(j("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(J,w))}function J(w){var q=w._readableState;j("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(j("maybeReadMore read 0"),w.read(0),m===q.length)break}q.readingMore=!1}K.prototype._read=function(w){i(this,new v("_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,j("pipe count=%d opts=%j",e.pipesCount,q);var C0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=C0?$0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){j("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,W0())}function $0(){j("onend"),w.end()}var J0=_(m);w.on("drain",J0);var w0=!1;function W0(){j("cleanup"),w.removeListener("close",T),w.removeListener("finish",B),w.removeListener("drain",J0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",$0),m.removeListener("end",b),m.removeListener("data",P0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&J0()}m.on("data",P0);function P0(h){j("ondata");var o=w.write(h);j("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&Q0(e.pipes,w)!==-1)&&!w0&&(j("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){j("onerror",h),b(),w.removeListener("error",c0),F(w,"error")===0&&i(w,h)}a(w,"error",c0);function T(){w.removeListener("finish",B),b()}w.once("close",T);function B(){j("onfinish"),w.removeListener("close",T),b()}w.once("finish",B);function b(){j("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||(j("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;j("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&F(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:C0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<C0;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,j("on readable",e.length,e.reading),e.length?C(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){j("readable nexttick read 0"),w.read(0)}K.prototype.resume=function(){var w=this._readableState;return w.flowing||(j("resume"),w.flowing=!w.readableListening,X0(this,w)),w.paused=!1,this};function X0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){j("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 j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for(j("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(j("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(j("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var $0=q.push(_0);$0||(e=!0,w.pause())}});for(var C0 in w)this[C0]===void 0&&typeof w[C0]=="function"&&(this[C0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(C0));for(var t=0;t<H0.length;t++)w.on(H0[t],this.emit.bind(this,H0[t]));return this._read=function(_0){j("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=Q7()),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=f,Object.defineProperty(K.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function f(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 z0(w){var q=w._readableState;j("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(K0,q,w))}function K0(w,q){if(j("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=$7()),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}}),o9=G0((l,g)=>{g.exports=V;var E=m5().codes,M=E.ERR_METHOD_NOT_IMPLEMENTED,F=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,G=E.ERR_TRANSFORM_WITH_LENGTH_0,U=w5();p0()(V,U);function I(O,N){var W=this._transformState;W.transforming=!1;var D=W.writecb;if(D===null)return this.emit("error",new F);W.writechunk=null,W.writecb=null,N!=null&&this.push(N),D(O);var k=this._readableState;k.reading=!1,(k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}function V(O){if(!(this instanceof V))return new V(O);U.call(this,O),this._transformState={afterTransform:I.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,O&&(typeof O.transform=="function"&&(this._transform=O.transform),typeof O.flush=="function"&&(this._flush=O.flush)),this.on("prefinish",z)}function z(){var O=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,W){j(O,N,W)}):j(this,null,null)}V.prototype.push=function(O,N){return this._transformState.needTransform=!1,U.prototype.push.call(this,O,N)},V.prototype._transform=function(O,N,W){W(new M("_transform()"))},V.prototype._write=function(O,N,W){var D=this._transformState;if(D.writecb=W,D.writechunk=O,D.writeencoding=N,!D.transforming){var k=this._readableState;(D.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}},V.prototype._read=function(O){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},V.prototype._destroy=function(O,N){U.prototype._destroy.call(this,O,function(W){N(W)})};function j(O,N,W){if(N)return O.emit("error",N);if(W!=null&&O.push(W),O._writableState.length)throw new G;if(O._transformState.transforming)throw new S;return O.push(null)}}),G7=G0((l,g)=>{g.exports=M;var E=o9();p0()(M,E);function M(F){if(!(this instanceof M))return new M(F);E.call(this,F)}M.prototype._transform=function(F,S,G){G(null,F)}}),J7=G0((l,g)=>{var E;function M(W){var D=!1;return function(){D||(D=!0,W.apply(void 0,arguments))}}var F=m5().codes,S=F.ERR_MISSING_ARGS,G=F.ERR_STREAM_DESTROYED;function U(W){if(W)throw W}function I(W){return W.setHeader&&typeof W.abort=="function"}function V(W,D,k,A){A=M(A);var x=!1;W.on("close",function(){x=!0}),E===void 0&&(E=j9()),E(W,{readable:D,writable:k},function(y){if(y)return A(y);x=!0,A()});var v=!1;return function(y){if(!x&&!v){if(v=!0,I(W))return W.abort();if(typeof W.destroy=="function")return W.destroy();A(y||new G("pipe"))}}}function z(W){W()}function j(W,D){return W.pipe(D)}function O(W){return!W.length||typeof W[W.length-1]!="function"?U:W.pop()}function N(){for(var W=arguments.length,D=new Array(W),k=0;k<W;k++)D[k]=arguments[k];var A=O(D);if(Array.isArray(D[0])&&(D=D[0]),D.length<2)throw new S("streams");var x,v=D.map(function(y,p){var c=p<D.length-1,n=p>0;return V(y,c,n,function(i){x||(x=i),i&&v.forEach(z),!c&&(v.forEach(z),A(x))})});return D.reduce(j)}g.exports=N}),Z7=G0((l,g)=>{l=g.exports=u9(),l.Stream=l,l.Readable=l,l.Writable=h9(),l.Duplex=w5(),l.Transform=o9(),l.PassThrough=G7(),l.finished=j9(),l.pipeline=J7()}),s9=G0((l,g)=>{var E=d0().Buffer,M=Z7().Transform,F=p0();function S(U,I){if(!E.isBuffer(U)&&typeof U!="string")throw new TypeError(I+" must be a string or a buffer")}function G(U){M.call(this),this._block=E.allocUnsafe(U),this._blockSize=U,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}F(G,M),G.prototype._transform=function(U,I,V){var z=null;try{this.update(U,I)}catch(j){z=j}V(z)},G.prototype._flush=function(U){var I=null;try{this.push(this.digest())}catch(V){I=V}U(I)},G.prototype.update=function(U,I){if(S(U,"Data"),this._finalized)throw new Error("Digest already called");E.isBuffer(U)||(U=E.from(U,I));for(var V=this._block,z=0;this._blockOffset+U.length-z>=this._blockSize;){for(var j=this._blockOffset;j<this._blockSize;)V[j++]=U[z++];this._update(),this._blockOffset=0}for(;z<U.length;)V[this._blockOffset++]=U[z++];for(var O=0,N=U.length*8;N>0;++O)this._length[O]+=N,N=this._length[O]/4294967296|0,N>0&&(this._length[O]-=4294967296*N);return this},G.prototype._update=function(){throw new Error("_update is not implemented")},G.prototype.digest=function(U){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var I=this._digest();U!==void 0&&(I=I.toString(U)),this._block.fill(0),this._blockOffset=0;for(var V=0;V<4;++V)this._length[V]=0;return I},G.prototype._digest=function(){throw new Error("_digest is not implemented")},g.exports=G}),F9=G0((l,g)=>{var E=p0(),M=s9(),F=d0().Buffer,S=new Array(16);function G(){M.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}E(G,M),G.prototype._update=function(){for(var O=S,N=0;N<16;++N)O[N]=this._block.readInt32LE(N*4);var W=this._a,D=this._b,k=this._c,A=this._d;W=I(W,D,k,A,O[0],3614090360,7),A=I(A,W,D,k,O[1],3905402710,12),k=I(k,A,W,D,O[2],606105819,17),D=I(D,k,A,W,O[3],3250441966,22),W=I(W,D,k,A,O[4],4118548399,7),A=I(A,W,D,k,O[5],1200080426,12),k=I(k,A,W,D,O[6],2821735955,17),D=I(D,k,A,W,O[7],4249261313,22),W=I(W,D,k,A,O[8],1770035416,7),A=I(A,W,D,k,O[9],2336552879,12),k=I(k,A,W,D,O[10],4294925233,17),D=I(D,k,A,W,O[11],2304563134,22),W=I(W,D,k,A,O[12],1804603682,7),A=I(A,W,D,k,O[13],4254626195,12),k=I(k,A,W,D,O[14],2792965006,17),D=I(D,k,A,W,O[15],1236535329,22),W=V(W,D,k,A,O[1],4129170786,5),A=V(A,W,D,k,O[6],3225465664,9),k=V(k,A,W,D,O[11],643717713,14),D=V(D,k,A,W,O[0],3921069994,20),W=V(W,D,k,A,O[5],3593408605,5),A=V(A,W,D,k,O[10],38016083,9),k=V(k,A,W,D,O[15],3634488961,14),D=V(D,k,A,W,O[4],3889429448,20),W=V(W,D,k,A,O[9],568446438,5),A=V(A,W,D,k,O[14],3275163606,9),k=V(k,A,W,D,O[3],4107603335,14),D=V(D,k,A,W,O[8],1163531501,20),W=V(W,D,k,A,O[13],2850285829,5),A=V(A,W,D,k,O[2],4243563512,9),k=V(k,A,W,D,O[7],1735328473,14),D=V(D,k,A,W,O[12],2368359562,20),W=z(W,D,k,A,O[5],4294588738,4),A=z(A,W,D,k,O[8],2272392833,11),k=z(k,A,W,D,O[11],1839030562,16),D=z(D,k,A,W,O[14],4259657740,23),W=z(W,D,k,A,O[1],2763975236,4),A=z(A,W,D,k,O[4],1272893353,11),k=z(k,A,W,D,O[7],4139469664,16),D=z(D,k,A,W,O[10],3200236656,23),W=z(W,D,k,A,O[13],681279174,4),A=z(A,W,D,k,O[0],3936430074,11),k=z(k,A,W,D,O[3],3572445317,16),D=z(D,k,A,W,O[6],76029189,23),W=z(W,D,k,A,O[9],3654602809,4),A=z(A,W,D,k,O[12],3873151461,11),k=z(k,A,W,D,O[15],530742520,16),D=z(D,k,A,W,O[2],3299628645,23),W=j(W,D,k,A,O[0],4096336452,6),A=j(A,W,D,k,O[7],1126891415,10),k=j(k,A,W,D,O[14],2878612391,15),D=j(D,k,A,W,O[5],4237533241,21),W=j(W,D,k,A,O[12],1700485571,6),A=j(A,W,D,k,O[3],2399980690,10),k=j(k,A,W,D,O[10],4293915773,15),D=j(D,k,A,W,O[1],2240044497,21),W=j(W,D,k,A,O[8],1873313359,6),A=j(A,W,D,k,O[15],4264355552,10),k=j(k,A,W,D,O[6],2734768916,15),D=j(D,k,A,W,O[13],1309151649,21),W=j(W,D,k,A,O[4],4149444226,6),A=j(A,W,D,k,O[11],3174756917,10),k=j(k,A,W,D,O[2],718787259,15),D=j(D,k,A,W,O[9],3951481745,21),this._a=this._a+W|0,this._b=this._b+D|0,this._c=this._c+k|0,this._d=this._d+A|0},G.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 O=F.allocUnsafe(16);return O.writeInt32LE(this._a,0),O.writeInt32LE(this._b,4),O.writeInt32LE(this._c,8),O.writeInt32LE(this._d,12),O};function U(O,N){return O<<N|O>>>32-N}function I(O,N,W,D,k,A,x){return U(O+(N&W|~N&D)+k+A|0,x)+N|0}function V(O,N,W,D,k,A,x){return U(O+(N&D|W&~D)+k+A|0,x)+N|0}function z(O,N,W,D,k,A,x){return U(O+(N^W^D)+k+A|0,x)+N|0}function j(O,N,W,D,k,A,x){return U(O+(W^(N|~D))+k+A|0,x)+N|0}g.exports=G}),U9=G0((l,g)=>{var E=W5().Buffer,M=p0(),F=s9(),S=new Array(16),G=[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],I=[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],V=[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],z=[0,1518500249,1859775393,2400959708,2840853838],j=[1352829926,1548603684,1836072691,2053994217,0];function O(){F.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}M(O,F),O.prototype._update=function(){for(var v=S,y=0;y<16;++y)v[y]=this._block.readInt32LE(y*4);for(var p=this._a|0,c=this._b|0,n=this._c|0,i=this._d|0,H0=this._e|0,a=this._a|0,Z0=this._b|0,K=this._c|0,X=this._d|0,Y=this._e|0,H=0;H<80;H+=1){var Q,Z;H<16?(Q=W(p,c,n,i,H0,v[G[H]],z[0],I[H]),Z=x(a,Z0,K,X,Y,v[U[H]],j[0],V[H])):H<32?(Q=D(p,c,n,i,H0,v[G[H]],z[1],I[H]),Z=A(a,Z0,K,X,Y,v[U[H]],j[1],V[H])):H<48?(Q=k(p,c,n,i,H0,v[G[H]],z[2],I[H]),Z=k(a,Z0,K,X,Y,v[U[H]],j[2],V[H])):H<64?(Q=A(p,c,n,i,H0,v[G[H]],z[3],I[H]),Z=D(a,Z0,K,X,Y,v[U[H]],j[3],V[H])):(Q=x(p,c,n,i,H0,v[G[H]],z[4],I[H]),Z=W(a,Z0,K,X,Y,v[U[H]],j[4],V[H])),p=H0,H0=i,i=N(n,10),n=c,c=Q,a=Y,Y=X,X=N(K,10),K=Z0,Z0=Z}var P=this._b+n+X|0;this._b=this._c+i+Y|0,this._c=this._d+H0+a|0,this._d=this._e+p+Z0|0,this._e=this._a+c+K|0,this._a=P},O.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var v=E.alloc?E.alloc(20):new E(20);return v.writeInt32LE(this._a,0),v.writeInt32LE(this._b,4),v.writeInt32LE(this._c,8),v.writeInt32LE(this._d,12),v.writeInt32LE(this._e,16),v};function N(v,y){return v<<y|v>>>32-y}function W(v,y,p,c,n,i,H0,a){return N(v+(y^p^c)+i+H0|0,a)+n|0}function D(v,y,p,c,n,i,H0,a){return N(v+(y&p|~y&c)+i+H0|0,a)+n|0}function k(v,y,p,c,n,i,H0,a){return N(v+((y|~p)^c)+i+H0|0,a)+n|0}function A(v,y,p,c,n,i,H0,a){return N(v+(y&c|p&~c)+i+H0|0,a)+n|0}function x(v,y,p,c,n,i,H0,a){return N(v+(y^(p|~c))+i+H0|0,a)+n|0}g.exports=O}),p5=G0((l,g)=>{var E=d0().Buffer;function M(F,S){this._block=E.alloc(F),this._finalSize=S,this._blockSize=F,this._len=0}M.prototype.update=function(F,S){typeof F=="string"&&(S=S||"utf8",F=E.from(F,S));for(var G=this._block,U=this._blockSize,I=F.length,V=this._len,z=0;z<I;){for(var j=V%U,O=Math.min(I-z,U-j),N=0;N<O;N++)G[j+N]=F[z+N];V+=O,z+=O,V%U===0&&this._update(G)}return this._len+=I,this},M.prototype.digest=function(F){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 G=this._len*8;if(G<=4294967295)this._block.writeUInt32BE(G,this._blockSize-4);else{var U=(G&4294967295)>>>0,I=(G-U)/4294967296;this._block.writeUInt32BE(I,this._blockSize-8),this._block.writeUInt32BE(U,this._blockSize-4)}this._update(this._block);var V=this._hash();return F?V.toString(F):V},M.prototype._update=function(){throw new Error("_update must be implemented by subclass")},g.exports=M}),P7=G0((l,g)=>{var E=p0(),M=p5(),F=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],G=new Array(80);function U(){this.init(),this._w=G,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 I(j){return j<<5|j>>>27}function V(j){return j<<30|j>>>2}function z(j,O,N,W){return j===0?O&N|~O&W:j===2?O&N|O&W|N&W:O^N^W}U.prototype._update=function(j){for(var O=this._w,N=this._a|0,W=this._b|0,D=this._c|0,k=this._d|0,A=this._e|0,x=0;x<16;++x)O[x]=j.readInt32BE(x*4);for(;x<80;++x)O[x]=O[x-3]^O[x-8]^O[x-14]^O[x-16];for(var v=0;v<80;++v){var y=~~(v/20),p=I(N)+z(y,W,D,k)+A+O[v]+S[y]|0;A=k,k=D,D=V(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=k+this._d|0,this._e=A+this._e|0},U.prototype._hash=function(){var j=F.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},g.exports=U}),j7=G0((l,g)=>{var E=p0(),M=p5(),F=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],G=new Array(80);function U(){this.init(),this._w=G,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 I(O){return O<<1|O>>>31}function V(O){return O<<5|O>>>27}function z(O){return O<<30|O>>>2}function j(O,N,W,D){return O===0?N&W|~N&D:O===2?N&W|N&D|W&D:N^W^D}U.prototype._update=function(O){for(var N=this._w,W=this._a|0,D=this._b|0,k=this._c|0,A=this._d|0,x=this._e|0,v=0;v<16;++v)N[v]=O.readInt32BE(v*4);for(;v<80;++v)N[v]=I(N[v-3]^N[v-8]^N[v-14]^N[v-16]);for(var y=0;y<80;++y){var p=~~(y/20),c=V(W)+j(p,D,k,A)+x+N[y]+S[p]|0;x=A,A=k,k=z(D),D=W,W=c}this._a=W+this._a|0,this._b=D+this._b|0,this._c=k+this._c|0,this._d=A+this._d|0,this._e=x+this._e|0},U.prototype._hash=function(){var O=F.allocUnsafe(20);return O.writeInt32BE(this._a|0,0),O.writeInt32BE(this._b|0,4),O.writeInt32BE(this._c|0,8),O.writeInt32BE(this._d|0,12),O.writeInt32BE(this._e|0,16),O},g.exports=U}),a9=G0((l,g)=>{var E=p0(),M=p5(),F=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],G=new Array(64);function U(){this.init(),this._w=G,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 I(W,D,k){return k^W&(D^k)}function V(W,D,k){return W&D|k&(W|D)}function z(W){return(W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10)}function j(W){return(W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7)}function O(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,k=this._a|0,A=this._b|0,x=this._c|0,v=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]+O(D[i-15])+D[i-16]|0;for(var H0=0;H0<64;++H0){var a=n+j(y)+I(y,p,c)+S[H0]+D[H0]|0,Z0=z(k)+V(k,A,x)|0;n=c,c=p,p=y,y=v+a|0,v=x,x=A,A=k,k=a+Z0|0}this._a=k+this._a|0,this._b=A+this._b|0,this._c=x+this._c|0,this._d=v+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=F.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}),F7=G0((l,g)=>{var E=p0(),M=a9(),F=p5(),S=d0().Buffer,G=new Array(64);function U(){this.init(),this._w=G,F.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 I=S.allocUnsafe(28);return I.writeInt32BE(this._a,0),I.writeInt32BE(this._b,4),I.writeInt32BE(this._c,8),I.writeInt32BE(this._d,12),I.writeInt32BE(this._e,16),I.writeInt32BE(this._f,20),I.writeInt32BE(this._g,24),I},g.exports=U}),f9=G0((l,g)=>{var E=p0(),M=p5(),F=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],G=new Array(160);function U(){this.init(),this._w=G,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 I(A,x,v){return v^A&(x^v)}function V(A,x,v){return A&x|v&(A|x)}function z(A,x){return(A>>>28|x<<4)^(x>>>2|A<<30)^(x>>>7|A<<25)}function j(A,x){return(A>>>14|x<<18)^(A>>>18|x<<14)^(x>>>9|A<<23)}function O(A,x){return(A>>>1|x<<31)^(A>>>8|x<<24)^A>>>7}function N(A,x){return(A>>>1|x<<31)^(A>>>8|x<<24)^(A>>>7|x<<25)}function W(A,x){return(A>>>19|x<<13)^(x>>>29|A<<3)^A>>>6}function D(A,x){return(A>>>19|x<<13)^(x>>>29|A<<3)^(A>>>6|x<<26)}function k(A,x){return A>>>0<x>>>0?1:0}U.prototype._update=function(A){for(var x=this._w,v=this._ah|0,y=this._bh|0,p=this._ch|0,c=this._dh|0,n=this._eh|0,i=this._fh|0,H0=this._gh|0,a=this._hh|0,Z0=this._al|0,K=this._bl|0,X=this._cl|0,Y=this._dl|0,H=this._el|0,Q=this._fl|0,Z=this._gl|0,P=this._hl|0,$=0;$<32;$+=2)x[$]=A.readInt32BE($*4),x[$+1]=A.readInt32BE($*4+4);for(;$<160;$+=2){var C=x[$-30],J=x[$-30+1],R=O(C,J),L=N(J,C);C=x[$-4],J=x[$-4+1];var _=W(C,J),s=D(J,C),r=x[$-14],X0=x[$-14+1],u=x[$-32],d=x[$-32+1],f=L+X0|0,z0=R+r+k(f,L)|0;f=f+s|0,z0=z0+_+k(f,s)|0,f=f+d|0,z0=z0+u+k(f,d)|0,x[$]=z0,x[$+1]=f}for(var K0=0;K0<160;K0+=2){z0=x[K0],f=x[K0+1];var Q0=V(v,y,p),w=V(Z0,K,X),q=z(v,Z0),m=z(Z0,v),e=j(n,H),C0=j(H,n),t=S[K0],_0=S[K0+1],$0=I(n,i,H0),J0=I(H,Q,Z),w0=P+C0|0,W0=a+e+k(w0,P)|0;w0=w0+J0|0,W0=W0+$0+k(w0,J0)|0,w0=w0+_0|0,W0=W0+t+k(w0,_0)|0,w0=w0+f|0,W0=W0+z0+k(w0,f)|0;var P0=m+w|0,c0=q+Q0+k(P0,m)|0;a=H0,P=Z,H0=i,Z=Q,i=n,Q=H,H=Y+w0|0,n=c+W0+k(H,Y)|0,c=p,Y=X,p=y,X=K,y=v,K=Z0,Z0=w0+P0|0,v=W0+c0+k(Z0,w0)|0}this._al=this._al+Z0|0,this._bl=this._bl+K|0,this._cl=this._cl+X|0,this._dl=this._dl+Y|0,this._el=this._el+H|0,this._fl=this._fl+Q|0,this._gl=this._gl+Z|0,this._hl=this._hl+P|0,this._ah=this._ah+v+k(this._al,Z0)|0,this._bh=this._bh+y+k(this._bl,K)|0,this._ch=this._ch+p+k(this._cl,X)|0,this._dh=this._dh+c+k(this._dl,Y)|0,this._eh=this._eh+n+k(this._el,H)|0,this._fh=this._fh+i+k(this._fl,Q)|0,this._gh=this._gh+H0+k(this._gl,Z)|0,this._hh=this._hh+a+k(this._hl,P)|0},U.prototype._hash=function(){var A=F.allocUnsafe(64);function x(v,y,p){A.writeInt32BE(v,p),A.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),A},g.exports=U}),U7=G0((l,g)=>{var E=p0(),M=f9(),F=p5(),S=d0().Buffer,G=new Array(160);function U(){this.init(),this._w=G,F.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 I=S.allocUnsafe(48);function V(z,j,O){I.writeInt32BE(z,O),I.writeInt32BE(j,O+4)}return V(this._ah,this._al,0),V(this._bh,this._bl,8),V(this._ch,this._cl,16),V(this._dh,this._dl,24),V(this._eh,this._el,32),V(this._fh,this._fl,40),I},g.exports=U}),W9=G0((E,g)=>{var E=g.exports=function(M){M=M.toLowerCase();var F=E[M];if(!F)throw new Error(M+" is not supported (we accept pull requests)");return new F};E.sha=P7(),E.sha1=j7(),E.sha224=F7(),E.sha256=a9(),E.sha384=U7(),E.sha512=f9()}),U5=G0((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,F){return E.slice(M,F)},Error,FunctionPrototypeCall(E,M,...F){return E.call(M,...F)},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,F){return Object.defineProperty(E,M,F)},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,F){return E.then(M,F)},PromiseReject(E){return Promise.reject(E)},ReflectApply:Reflect.apply,RegExpPrototypeTest(E,M){return E.test(M)},SafeSet:Set,String,StringPrototypeSlice(E,M,F){return E.slice(M,F)},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,F){return E.set(M,F)},Uint8Array}}),N5=G0((l,g)=>{var E=W5(),M=Object.getPrototypeOf(async function(){}).constructor,F=globalThis.Blob||E.Blob,S=typeof F<"u"?function(U){return U instanceof F}:function(U){return!1},G=class extends Error{constructor(U){if(!Array.isArray(U))throw new TypeError(`Expected input to be an Array, got ${typeof U}`);let I="";for(let V=0;V<U.length;V++)I+=` ${U[V].stack}
|
|
3
|
+
`;super(I),this.name="AggregateError",this.errors=U}};g.exports={AggregateError:G,kEmptyObject:Object.freeze({}),once(U){let I=!1;return function(...V){I||(I=!0,U.apply(this,V))}},createDeferredPromise:function(){let U,I;return{promise:new Promise((V,z)=>{U=V,I=z}),resolve:U,reject:I}},promisify(U){return new Promise((I,V)=>{U((z,...j)=>z?V(z):I(...j))})},debuglog(){return function(){}},format(U,...I){return U.replace(/%([sdifj])/g,function(...[V,z]){let j=I.shift();return z==="f"?j.toFixed(6):z==="j"?JSON.stringify(j):z==="s"&&typeof j=="object"?`${j.constructor!==Object?j.constructor.name:""} {}`.trim():j.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=G0((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}),z5=G0((l,g)=>{var{format:E,inspect:M,AggregateError:F}=N5(),S=globalThis.AggregateError||F,G=Symbol("kIsNodeError"),U=["string","function","number","object","Function","Object","boolean","bigint","symbol"],I=/^([A-Z][a-z0-9]*)+$/,V="__node_internal_",z={};function j(x,v){if(!x)throw new z.ERR_INTERNAL_ASSERTION(v)}function O(x){let v="",y=x.length,p=x[0]==="-"?1:0;for(;y>=p+4;y-=3)v=`_${x.slice(y-3,y)}${v}`;return`${x.slice(0,y)}${v}`}function N(x,v,y){if(typeof v=="function")return j(v.length<=y.length,`Code: ${x}; The provided arguments length (${y.length}) does not match the required ones (${v.length}).`),v(...y);let p=(v.match(/%[dfijoOs]/g)||[]).length;return j(p===y.length,`Code: ${x}; The provided arguments length (${y.length}) does not match the required ones (${p}).`),y.length===0?v:E(v,...y)}function W(x,v,y){y||(y=Error);class p extends y{constructor(...c){super(N(x,v,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[G]=!0,z[x]=p}function D(x){let v=V+x.name;return Object.defineProperty(x,"name",{value:v}),x}function k(x,v){if(x&&v&&x!==v){if(Array.isArray(v.errors))return v.errors.push(x),v;let y=new S([v,x],v.message);return y.code=v.code,y}return x||v}var A=class extends Error{constructor(x="The operation was aborted",v=void 0){if(v!==void 0&&typeof v!="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",v);super(x,v),this.code="ABORT_ERR",this.name="AbortError"}};W("ERR_ASSERTION","%s",Error),W("ERR_INVALID_ARG_TYPE",(x,v,y)=>{j(typeof x=="string","'name' must be a string"),Array.isArray(v)||(v=[v]);let p="The ";x.endsWith(" argument")?p+=`${x} `:p+=`"${x}" ${x.includes(".")?"property":"argument"} `,p+="must be ";let c=[],n=[],i=[];for(let a of v)j(typeof a=="string","All expected entries have to be of type string"),U.includes(a)?c.push(a.toLowerCase()):I.test(a)?n.push(a):(j(a!=="object",'The value "object" should be written as "Object"'),i.push(a));if(n.length>0){let a=c.indexOf("object");a!==-1&&(c.splice(c,a,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 a=c.pop();p+=`one of type ${c.join(", ")}, or ${a}`}}(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 a=n.pop();p+=`an instance of ${n.join(", ")}, or ${a}`}}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 a=i.pop();p+=`one of ${i.join(", ")}, or ${a}`}}if(y==null)p+=`. Received ${y}`;else if(typeof y=="function"&&y.name)p+=`. Received function ${y.name}`;else if(typeof y=="object"){var H0;(H0=y.constructor)!==null&&H0!==void 0&&H0.name?p+=`. Received an instance of ${y.constructor.name}`:p+=`. Received ${M(y,{depth:-1})}`}else{let a=M(y,{colors:!1});a.length>25&&(a=`${a.slice(0,25)}...`),p+=`. Received type ${typeof y} (${a})`}return p},TypeError),W("ERR_INVALID_ARG_VALUE",(x,v,y="is invalid")=>{let p=M(v);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,v,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 "${v}" function but got ${c}.`},TypeError),W("ERR_MISSING_ARGS",(...x)=>{j(x.length>0,"At least one arg needs to be specified");let v,y=x.length;switch(x=(Array.isArray(x)?x:[x]).map((p)=>`"${p}"`).join(" or "),y){case 1:v+=`The ${x[0]} argument`;break;case 2:v+=`The ${x[0]} and ${x[1]} arguments`;break;default:{let p=x.pop();v+=`The ${x.join(", ")}, and ${p} arguments`}break}return`${v} must be specified`},TypeError),W("ERR_OUT_OF_RANGE",(x,v,y)=>{j(v,'Missing "range" argument');let p;return Number.isInteger(y)&&Math.abs(y)>4294967296?p=O(String(y)):typeof y=="bigint"?(p=String(y),(y>2n**32n||y<-(2n**32n))&&(p=O(p)),p+="n"):p=M(y),`The value of "${x}" is out of range. It must be ${v}. 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:A,aggregateTwoErrors:D(k),hideStackFrames:D,codes:z}}),t5=G0((l,g)=>{var{ArrayIsArray:E,ArrayPrototypeIncludes:M,ArrayPrototypeJoin:F,ArrayPrototypeMap:S,NumberIsInteger:G,NumberIsNaN:U,NumberMAX_SAFE_INTEGER:I,NumberMIN_SAFE_INTEGER:V,NumberParseInt:z,ObjectPrototypeHasOwnProperty:j,RegExpPrototypeExec:O,String:N,StringPrototypeToUpperCase:W,StringPrototypeTrim:D}=U5(),{hideStackFrames:k,codes:{ERR_SOCKET_BAD_PORT:A,ERR_INVALID_ARG_TYPE:x,ERR_INVALID_ARG_VALUE:v,ERR_OUT_OF_RANGE:y,ERR_UNKNOWN_SIGNAL:p}}=z5(),{normalizeEncoding:c}=N5(),{isAsyncFunction:n,isArrayBufferView:i}=N5().types,H0={};function a(w){return w===(w|0)}function Z0(w){return w===w>>>0}var K=/^[0-7]+$/,X="must be a 32-bit unsigned integer or an octal string";function Y(w,q,m){if(typeof w>"u"&&(w=m),typeof w=="string"){if(O(K,w)===null)throw new v(q,w,X);w=z(w,8)}return Z(w,q),w}var H=k((w,q,m=V,e=I)=>{if(typeof w!="number")throw new x(q,"number",w);if(!G(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),Q=k((w,q,m=-2147483648,e=2147483647)=>{if(typeof w!="number")throw new x(q,"number",w);if(!G(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),Z=k((w,q,m=!1)=>{if(typeof w!="number")throw new x(q,"number",w);if(!G(w))throw new y(q,"an integer",w);let e=m?1:0,C0=4294967295;if(w<e||w>C0)throw new y(q,`>= ${e} && <= ${C0}`,w)});function P(w,q){if(typeof w!="string")throw new x(q,"string",w)}function $(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 C=k((w,q,m)=>{if(!M(m,w)){let e=F(S(m,(t)=>typeof t=="string"?`'${t}'`:N(t)),", "),C0="must be one of: "+e;throw new v(q,w,C0)}});function J(w,q){if(typeof w!="boolean")throw new x(q,"boolean",w)}function R(w,q,m){return w==null||!j(w,q)?m:w[q]}var L=k((w,q,m=null)=>{let e=R(m,"allowArray",!1),C0=R(m,"allowFunction",!1);if(!R(m,"nullable",!1)&&w===null||!e&&E(w)||typeof w!="object"&&(!C0||typeof w!="function"))throw new x(q,"Object",w)}),_=k((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 v(q,w,e)}});function s(w,q="signal"){if(P(w,q),H0[w]===void 0)throw H0[W(w)]!==void 0?new p(w+" (signals must use all capital letters)"):new p(w)}var r=k((w,q="buffer")=>{if(!i(w))throw new x(q,["Buffer","TypedArray","DataView"],w)});function X0(w,q){let m=c(q),e=w.length;if(m==="hex"&&e%2!==0)throw new v("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 A(q,w,m);return w|0}var d=k((w,q)=>{if(w!==void 0&&(w===null||typeof w!="object"||!("aborted"in w)))throw new x(q,"AbortSignal",w)}),f=k((w,q)=>{if(typeof w!="function")throw new x(q,"Function",w)}),z0=k((w,q)=>{if(typeof w!="function"||n(w))throw new x(q,"Function",w)}),K0=k((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,`('${F(m,"|")}')`,w)}g.exports={isInt32:a,isUint32:Z0,parseFileMode:Y,validateArray:_,validateBoolean:J,validateBuffer:r,validateEncoding:X0,validateFunction:f,validateInt32:Q,validateInteger:H,validateNumber:$,validateObject:L,validateOneOf:C,validatePlainFunction:z0,validatePort:u,validateSignalName:s,validateString:P,validateUint32:Z,validateUndefined:K0,validateUnion:Q0,validateAbortSignal:d}}),g9=G0((l,g)=>{var E=g.exports={},M,F;function S(){throw new Error("setTimeout has not been defined")}function G(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?M=setTimeout:M=S}catch{M=S}try{typeof clearTimeout=="function"?F=clearTimeout:F=G}catch{F=G}})();function U(A){if(M===setTimeout)return setTimeout(A,0);if((M===S||!M)&&setTimeout)return M=setTimeout,setTimeout(A,0);try{return M(A,0)}catch{try{return M.call(null,A,0)}catch{return M.call(this,A,0)}}}function I(A){if(F===clearTimeout)return clearTimeout(A);if((F===G||!F)&&clearTimeout)return F=clearTimeout,clearTimeout(A);try{return F(A)}catch{try{return F.call(null,A)}catch{return F.call(this,A)}}}var V=[],z=!1,j,O=-1;function N(){!z||!j||(z=!1,j.length?V=j.concat(V):O=-1,V.length&&W())}function W(){if(!z){var A=U(N);z=!0;for(var x=V.length;x;){for(j=V,V=[];++O<x;)j&&j[O].run();O=-1,x=V.length}j=null,z=!1,I(A)}}E.nextTick=function(A){var x=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)x[v-1]=arguments[v];V.push(new D(A,x)),V.length===1&&!z&&U(W)};function D(A,x){this.fun=A,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 k(){}E.on=k,E.addListener=k,E.once=k,E.off=k,E.removeListener=k,E.removeAllListeners=k,E.emit=k,E.prependListener=k,E.prependOnceListener=k,E.listeners=function(A){return[]},E.binding=function(A){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(A){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}}),I5={};r5(I5,{default:()=>n9});var n9,x5=J9(()=>{Z9(I5,E5(g9())),n9=E5(g9())}),A5=G0((l,g)=>{var{Symbol:E,SymbolAsyncIterator:M,SymbolIterator:F}=U5(),S=E("kDestroyed"),G=E("kIsErrored"),U=E("kIsReadable"),I=E("kIsDisturbed");function V(H,Q=!1){var Z;return!!(H&&typeof H.pipe=="function"&&typeof H.on=="function"&&(!Q||typeof H.pause=="function"&&typeof H.resume=="function")&&(!H._writableState||((Z=H._readableState)===null||Z===void 0?void 0:Z.readable)!==!1)&&(!H._writableState||H._readableState))}function z(H){var Q;return!!(H&&typeof H.write=="function"&&typeof H.on=="function"&&(!H._readableState||((Q=H._writableState)===null||Q===void 0?void 0:Q.writable)!==!1))}function j(H){return!!(H&&typeof H.pipe=="function"&&H._readableState&&typeof H.on=="function"&&typeof H.write=="function")}function O(H){return H&&(H._readableState||H._writableState||typeof H.write=="function"&&typeof H.on=="function"||typeof H.pipe=="function"&&typeof H.on=="function")}function N(H,Q){return H==null?!1:Q===!0?typeof H[M]=="function":Q===!1?typeof H[F]=="function":typeof H[M]=="function"||typeof H[F]=="function"}function W(H){if(!O(H))return null;let{_writableState:Q,_readableState:Z}=H,P=Q||Z;return!!(H.destroyed||H[S]||P!=null&&P.destroyed)}function D(H){if(!z(H))return null;if(H.writableEnded===!0)return!0;let Q=H._writableState;return Q!=null&&Q.errored?!1:typeof Q?.ended!="boolean"?null:Q.ended}function k(H,Q){if(!z(H))return null;if(H.writableFinished===!0)return!0;let Z=H._writableState;return Z!=null&&Z.errored?!1:typeof Z?.finished!="boolean"?null:!!(Z.finished||Q===!1&&Z.ended===!0&&Z.length===0)}function A(H){if(!V(H))return null;if(H.readableEnded===!0)return!0;let Q=H._readableState;return!Q||Q.errored?!1:typeof Q?.ended!="boolean"?null:Q.ended}function x(H,Q){if(!V(H))return null;let Z=H._readableState;return Z!=null&&Z.errored?!1:typeof Z?.endEmitted!="boolean"?null:!!(Z.endEmitted||Q===!1&&Z.ended===!0&&Z.length===0)}function v(H){return H&&H[U]!=null?H[U]:typeof H?.readable!="boolean"?null:W(H)?!1:V(H)&&H.readable&&!x(H)}function y(H){return typeof H?.writable!="boolean"?null:W(H)?!1:z(H)&&H.writable&&!D(H)}function p(H,Q){return O(H)?W(H)?!0:!(Q?.readable!==!1&&v(H)||Q?.writable!==!1&&y(H)):null}function c(H){var Q,Z;return O(H)?H.writableErrored?H.writableErrored:(Q=(Z=H._writableState)===null||Z===void 0?void 0:Z.errored)!==null&&Q!==void 0?Q:null:null}function n(H){var Q,Z;return O(H)?H.readableErrored?H.readableErrored:(Q=(Z=H._readableState)===null||Z===void 0?void 0:Z.errored)!==null&&Q!==void 0?Q:null:null}function i(H){if(!O(H))return null;if(typeof H.closed=="boolean")return H.closed;let{_writableState:Q,_readableState:Z}=H;return typeof Q?.closed=="boolean"||typeof Z?.closed=="boolean"?Q?.closed||Z?.closed:typeof H._closed=="boolean"&&H0(H)?H._closed:null}function H0(H){return typeof H._closed=="boolean"&&typeof H._defaultKeepAlive=="boolean"&&typeof H._removedConnection=="boolean"&&typeof H._removedContLen=="boolean"}function a(H){return typeof H._sent100=="boolean"&&H0(H)}function Z0(H){var Q;return typeof H._consuming=="boolean"&&typeof H._dumped=="boolean"&&((Q=H.req)===null||Q===void 0?void 0:Q.upgradeOrConnect)===void 0}function K(H){if(!O(H))return null;let{_writableState:Q,_readableState:Z}=H,P=Q||Z;return!P&&a(H)||!!(P&&P.autoDestroy&&P.emitClose&&P.closed===!1)}function X(H){var Q;return!!(H&&((Q=H[I])!==null&&Q!==void 0?Q:H.readableDidRead||H.readableAborted))}function Y(H){var Q,Z,P,$,C,J,R,L,_,s;return!!(H&&((Q=(Z=(P=($=(C=(J=H[G])!==null&&J!==void 0?J:H.readableErrored)!==null&&C!==void 0?C:H.writableErrored)!==null&&$!==void 0?$:(R=H._readableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&P!==void 0?P:(L=H._writableState)===null||L===void 0?void 0:L.errorEmitted)!==null&&Z!==void 0?Z:(_=H._readableState)===null||_===void 0?void 0:_.errored)!==null&&Q!==void 0?Q:(s=H._writableState)===null||s===void 0?void 0:s.errored))}g.exports={kDestroyed:S,isDisturbed:X,kIsDisturbed:I,isErrored:Y,kIsErrored:G,isReadable:v,kIsReadable:U,isClosed:i,isDestroyed:W,isDuplexNodeStream:j,isFinished:p,isIterable:N,isReadableNodeStream:V,isReadableEnded:A,isReadableFinished:x,isReadableErrored:n,isNodeStream:O,isWritable:y,isWritableNodeStream:z,isWritableEnded:D,isWritableFinished:k,isWritableErrored:c,isServerRequest:Z0,isServerResponse:a,willEmitClose:K}}),v5=G0((l,g)=>{var E=(x5(),O5(I5)),{AbortError:M,codes:F}=z5(),{ERR_INVALID_ARG_TYPE:S,ERR_STREAM_PREMATURE_CLOSE:G}=F,{kEmptyObject:U,once:I}=N5(),{validateAbortSignal:V,validateFunction:z,validateObject:j}=t5(),{Promise:O}=U5(),{isClosed:N,isReadable:W,isReadableNodeStream:D,isReadableFinished:k,isReadableErrored:A,isWritable:x,isWritableNodeStream:v,isWritableFinished:y,isWritableErrored:p,isNodeStream:c,willEmitClose:n}=A5();function i(K){return K.setHeader&&typeof K.abort=="function"}var H0=()=>{};function a(K,X,Y){var H,Q;arguments.length===2?(Y=X,X=U):X==null?X=U:j(X,"options"),z(Y,"callback"),V(X.signal,"options.signal"),Y=I(Y);let Z=(H=X.readable)!==null&&H!==void 0?H:D(K),P=(Q=X.writable)!==null&&Q!==void 0?Q:v(K);if(!c(K))throw new S("stream","Stream",K);let{_writableState:$,_readableState:C}=K,J=()=>{K.writable||_()},R=n(K)&&D(K)===Z&&v(K)===P,L=y(K,!1),_=()=>{L=!0,K.destroyed&&(R=!1),!(R&&(!K.readable||Z))&&(!Z||s)&&Y.call(K)},s=k(K,!1),r=()=>{s=!0,K.destroyed&&(R=!1),!(R&&(!K.writable||P))&&(!P||L)&&Y.call(K)},X0=(K0)=>{Y.call(K,K0)},u=N(K),d=()=>{u=!0;let K0=p(K)||A(K);if(K0&&typeof K0!="boolean")return Y.call(K,K0);if(Z&&!s&&D(K,!0)&&!k(K,!1))return Y.call(K,new G);if(P&&!L&&!y(K,!1))return Y.call(K,new G);Y.call(K)},f=()=>{K.req.on("finish",_)};i(K)?(K.on("complete",_),R||K.on("abort",d),K.req?f():K.on("request",f)):P&&!$&&(K.on("end",J),K.on("close",J)),!R&&typeof K.aborted=="boolean"&&K.on("aborted",d),K.on("end",r),K.on("finish",_),X.error!==!1&&K.on("error",X0),K.on("close",d),u?E.nextTick(d):$!=null&&$.errorEmitted||C!=null&&C.errorEmitted?R||E.nextTick(d):(!Z&&(!R||W(K))&&(L||x(K)===!1)||!P&&(!R||x(K))&&(s||W(K)===!1)||C&&K.req&&K.aborted)&&E.nextTick(d);let z0=()=>{Y=H0,K.removeListener("aborted",d),K.removeListener("complete",_),K.removeListener("abort",d),K.removeListener("request",f),K.req&&K.req.removeListener("finish",_),K.removeListener("end",J),K.removeListener("close",J),K.removeListener("finish",_),K.removeListener("end",r),K.removeListener("error",X0),K.removeListener("close",d)};if(X.signal&&!u){let K0=()=>{let Q0=Y;z0(),Q0.call(K,new M(void 0,{cause:X.signal.reason}))};if(X.signal.aborted)E.nextTick(K0);else{let Q0=Y;Y=I((...w)=>{X.signal.removeEventListener("abort",K0),Q0.apply(K,w)}),X.signal.addEventListener("abort",K0)}}return z0}function Z0(K,X){return new O((Y,H)=>{a(K,X,(Q)=>{Q?H(Q):Y()})})}g.exports=a,g.exports.finished=Z0}),W7=G0((l,g)=>{var E=globalThis.AbortController||z9().AbortController,{codes:{ERR_INVALID_ARG_TYPE:M,ERR_MISSING_ARGS:F,ERR_OUT_OF_RANGE:S},AbortError:G}=z5(),{validateAbortSignal:U,validateInteger:I,validateObject:V}=t5(),z=U5().Symbol("kWeak"),{finished:j}=v5(),{ArrayPrototypePush:O,MathFloor:N,Number:W,NumberIsNaN:D,Promise:k,PromiseReject:A,PromisePrototypeThen:x,Symbol:v}=U5(),y=v("kEmpty"),p=v("kEof");function c(C,J){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);J!=null&&V(J,"options"),J?.signal!=null&&U(J.signal,"options.signal");let R=1;return J?.concurrency!=null&&(R=N(J.concurrency)),I(R,"concurrency",1),async function*(){var L,_;let s=new E,r=this,X0=[],u=s.signal,d={signal:u},f=()=>s.abort();J!=null&&(L=J.signal)!==null&&L!==void 0&&L.aborted&&f(),J==null||(_=J.signal)===null||_===void 0||_.addEventListener("abort",f);let z0,K0,Q0=!1;function w(){Q0=!0}async function q(){try{for await(let C0 of r){var m;if(Q0)return;if(u.aborted)throw new G;try{C0=C(C0,d)}catch(t){C0=A(t)}C0!==y&&(typeof((m=C0)===null||m===void 0?void 0:m.catch)=="function"&&C0.catch(w),X0.push(C0),z0&&(z0(),z0=null),!Q0&&X0.length&&X0.length>=R&&await new k((t)=>{K0=t}))}X0.push(p)}catch(C0){let t=A(C0);x(t,void 0,w),X0.push(t)}finally{var e;Q0=!0,z0&&(z0(),z0=null),J==null||(e=J.signal)===null||e===void 0||e.removeEventListener("abort",f)}}q();try{for(;;){for(;X0.length>0;){let m=await X0[0];if(m===p)return;if(u.aborted)throw new G;m!==y&&(yield m),X0.shift(),K0&&(K0(),K0=null)}await new k((m)=>{z0=m})}}finally{s.abort(),Q0=!0,K0&&(K0(),K0=null)}}.call(this)}function n(C=void 0){return C!=null&&V(C,"options"),C?.signal!=null&&U(C.signal,"options.signal"),async function*(){let J=0;for await(let L of this){var R;if(C!=null&&(R=C.signal)!==null&&R!==void 0&&R.aborted)throw new G({cause:C.signal.reason});yield[J++,L]}}.call(this)}async function i(C,J=void 0){for await(let R of K.call(this,C,J))return!0;return!1}async function H0(C,J=void 0){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);return!await i.call(this,async(...R)=>!await C(...R),J)}async function a(C,J){for await(let R of K.call(this,C,J))return R}async function Z0(C,J){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);async function R(L,_){return await C(L,_),y}for await(let L of c.call(this,R,J));}function K(C,J){if(typeof C!="function")throw new M("fn",["Function","AsyncFunction"],C);async function R(L,_){return await C(L,_)?L:y}return c.call(this,R,J)}var X=class extends F{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Y(C,J,R){var L;if(typeof C!="function")throw new M("reducer",["Function","AsyncFunction"],C);R!=null&&V(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 G(void 0,{cause:R.signal.reason});throw this.once("error",()=>{}),await j(this.destroy(d)),d}let s=new E,r=s.signal;if(R!=null&&R.signal){let d={once:!0,[z]:this};R.signal.addEventListener("abort",()=>s.abort(),d)}let X0=!1;try{for await(let d of this){var u;if(X0=!0,R!=null&&(u=R.signal)!==null&&u!==void 0&&u.aborted)throw new G;_?J=await C(J,d,{signal:r}):(J=d,_=!0)}if(!X0&&!_)throw new X}finally{s.abort()}return J}async function H(C){C!=null&&V(C,"options"),C?.signal!=null&&U(C.signal,"options.signal");let J=[];for await(let L of this){var R;if(C!=null&&(R=C.signal)!==null&&R!==void 0&&R.aborted)throw new G(void 0,{cause:C.signal.reason});O(J,L)}return J}function Q(C,J){let R=c.call(this,C,J);return async function*(){for await(let L of R)yield*L}.call(this)}function Z(C){if(C=W(C),D(C))return 0;if(C<0)throw new S("number",">= 0",C);return C}function P(C,J=void 0){return J!=null&&V(J,"options"),J?.signal!=null&&U(J.signal,"options.signal"),C=Z(C),async function*(){var R;if(J!=null&&(R=J.signal)!==null&&R!==void 0&&R.aborted)throw new G;for await(let _ of this){var L;if(J!=null&&(L=J.signal)!==null&&L!==void 0&&L.aborted)throw new G;C--<=0&&(yield _)}}.call(this)}function $(C,J=void 0){return J!=null&&V(J,"options"),J?.signal!=null&&U(J.signal,"options.signal"),C=Z(C),async function*(){var R;if(J!=null&&(R=J.signal)!==null&&R!==void 0&&R.aborted)throw new G;for await(let _ of this){var L;if(J!=null&&(L=J.signal)!==null&&L!==void 0&&L.aborted)throw new G;if(C-- >0)yield _;else return}}.call(this)}g.exports.streamReturningOperators={asIndexedPairs:n,drop:P,filter:K,flatMap:Q,map:c,take:$},g.exports.promiseReturningOperators={every:H0,forEach:Z0,reduce:Y,toArray:H,some:i,find:a}}),b5=G0((l,g)=>{var E=(x5(),O5(I5)),{aggregateTwoErrors:M,codes:{ERR_MULTIPLE_CALLBACK:F},AbortError:S}=z5(),{Symbol:G}=U5(),{kDestroyed:U,isDestroyed:I,isFinished:V,isServerRequest:z}=A5(),j=G("kDestroy"),O=G("kConstruct");function N(K,X,Y){K&&(K.stack,X&&!X.errored&&(X.errored=K),Y&&!Y.errored&&(Y.errored=K))}function W(K,X){let Y=this._readableState,H=this._writableState,Q=H||Y;return H&&H.destroyed||Y&&Y.destroyed?(typeof X=="function"&&X(),this):(N(K,H,Y),H&&(H.destroyed=!0),Y&&(Y.destroyed=!0),Q.constructed?D(this,K,X):this.once(j,function(Z){D(this,M(Z,K),X)}),this)}function D(K,X,Y){let H=!1;function Q(Z){if(H)return;H=!0;let{_readableState:P,_writableState:$}=K;N(Z,$,P),$&&($.closed=!0),P&&(P.closed=!0),typeof Y=="function"&&Y(Z),Z?E.nextTick(k,K,Z):E.nextTick(A,K)}try{K._destroy(X||null,Q)}catch(Z){Q(Z)}}function k(K,X){x(K,X),A(K)}function A(K){let{_readableState:X,_writableState:Y}=K;Y&&(Y.closeEmitted=!0),X&&(X.closeEmitted=!0),(Y&&Y.emitClose||X&&X.emitClose)&&K.emit("close")}function x(K,X){let{_readableState:Y,_writableState:H}=K;H&&H.errorEmitted||Y&&Y.errorEmitted||(H&&(H.errorEmitted=!0),Y&&(Y.errorEmitted=!0),K.emit("error",X))}function v(){let K=this._readableState,X=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),X&&(X.constructed=!0,X.destroyed=!1,X.closed=!1,X.closeEmitted=!1,X.errored=null,X.errorEmitted=!1,X.finalCalled=!1,X.prefinished=!1,X.ended=X.writable===!1,X.ending=X.writable===!1,X.finished=X.writable===!1)}function y(K,X,Y){let{_readableState:H,_writableState:Q}=K;if(Q&&Q.destroyed||H&&H.destroyed)return this;H&&H.autoDestroy||Q&&Q.autoDestroy?K.destroy(X):X&&(X.stack,Q&&!Q.errored&&(Q.errored=X),H&&!H.errored&&(H.errored=X),Y?E.nextTick(x,K,X):x(K,X))}function p(K,X){if(typeof K._construct!="function")return;let{_readableState:Y,_writableState:H}=K;Y&&(Y.constructed=!1),H&&(H.constructed=!1),K.once(O,X),!(K.listenerCount(O)>1)&&E.nextTick(c,K)}function c(K){let X=!1;function Y(H){if(X){y(K,H??new F);return}X=!0;let{_readableState:Q,_writableState:Z}=K,P=Z||Q;Q&&(Q.constructed=!0),Z&&(Z.constructed=!0),P.destroyed?K.emit(j,H):H?y(K,H,!0):E.nextTick(n,K)}try{K._construct(Y)}catch(H){Y(H)}}function n(K){K.emit(O)}function i(K){return K&&K.setHeader&&typeof K.abort=="function"}function H0(K){K.emit("close")}function a(K,X){K.emit("error",X),E.nextTick(H0,K)}function Z0(K,X){!K||I(K)||(!X&&!V(K)&&(X=new S),z(K)?(K.socket=null,K.destroy(X)):i(K)?K.abort():i(K.req)?K.req.abort():typeof K.destroy=="function"?K.destroy(X):typeof K.close=="function"?K.close():X?E.nextTick(a,K,X):E.nextTick(H0,K),K.destroyed||(K[U]=!0))}g.exports={construct:p,destroyer:Z0,destroy:W,undestroy:v,errorOrDestroy:y}}),O9=G0((l,g)=>{var{ArrayIsArray:E,ObjectSetPrototypeOf:M}=U5(),{EventEmitter:F}=S5();function S(U){F.call(this,U)}M(S.prototype,F.prototype),M(S,F),S.prototype.pipe=function(U,I){let V=this;function z(A){U.writable&&U.write(A)===!1&&V.pause&&V.pause()}V.on("data",z);function j(){V.readable&&V.resume&&V.resume()}U.on("drain",j),!U._isStdio&&(!I||I.end!==!1)&&(V.on("end",N),V.on("close",W));let O=!1;function N(){O||(O=!0,U.end())}function W(){O||(O=!0,typeof U.destroy=="function"&&U.destroy())}function D(A){k(),F.listenerCount(this,"error")===0&&this.emit("error",A)}G(V,"error",D),G(U,"error",D);function k(){V.removeListener("data",z),U.removeListener("drain",j),V.removeListener("end",N),V.removeListener("close",W),V.removeListener("error",D),U.removeListener("error",D),V.removeListener("end",k),V.removeListener("close",k),U.removeListener("close",k)}return V.on("end",k),V.on("close",k),U.on("close",k),U.emit("pipe",V),U};function G(U,I,V){if(typeof U.prependListener=="function")return U.prependListener(I,V);!U._events||!U._events[I]?U.on(I,V):E(U._events[I])?U._events[I].unshift(V):U._events[I]=[V,U._events[I]]}g.exports={Stream:S,prependListener:G}}),V9=G0((l,g)=>{var{AbortError:E,codes:M}=z5(),F=v5(),{ERR_INVALID_ARG_TYPE:S}=M,G=(I,V)=>{if(typeof I!="object"||!("aborted"in I))throw new S(V,"AbortSignal",I)};function U(I){return!!(I&&typeof I.pipe=="function")}g.exports.addAbortSignal=function(I,V){if(G(I,"signal"),!U(V))throw new S("stream","stream.Stream",V);return g.exports.addAbortSignalNoValidate(I,V)},g.exports.addAbortSignalNoValidate=function(I,V){if(typeof I!="object"||!("aborted"in I))return V;let z=()=>{V.destroy(new E(void 0,{cause:I.reason}))};return I.aborted?z():(I.addEventListener("abort",z),F(V,()=>I.removeEventListener("abort",z))),V}}),z7=G0((l,g)=>{var{StringPrototypeSlice:E,SymbolIterator:M,TypedArrayPrototypeSet:F,Uint8Array:S}=U5(),{Buffer:G}=W5(),{inspect:U}=N5();g.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(I){let V={data:I,next:null};this.length>0?this.tail.next=V:this.head=V,this.tail=V,++this.length}unshift(I){let V={data:I,next:this.head};this.length===0&&(this.tail=V),this.head=V,++this.length}shift(){if(this.length===0)return;let I=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,I}clear(){this.head=this.tail=null,this.length=0}join(I){if(this.length===0)return"";let V=this.head,z=""+V.data;for(;(V=V.next)!==null;)z+=I+V.data;return z}concat(I){if(this.length===0)return G.alloc(0);let V=G.allocUnsafe(I>>>0),z=this.head,j=0;for(;z;)F(V,z.data,j),j+=z.data.length,z=z.next;return V}consume(I,V){let z=this.head.data;if(I<z.length){let j=z.slice(0,I);return this.head.data=z.slice(I),j}return I===z.length?this.shift():V?this._getString(I):this._getBuffer(I)}first(){return this.head.data}*[M](){for(let I=this.head;I;I=I.next)yield I.data}_getString(I){let V="",z=this.head,j=0;do{let O=z.data;if(I>O.length)V+=O,I-=O.length;else{I===O.length?(V+=O,++j,z.next?this.head=z.next:this.head=this.tail=null):(V+=E(O,0,I),this.head=z,z.data=E(O,I));break}++j}while((z=z.next)!==null);return this.length-=j,V}_getBuffer(I){let V=G.allocUnsafe(I),z=I,j=this.head,O=0;do{let N=j.data;if(I>N.length)F(V,N,z-I),I-=N.length;else{I===N.length?(F(V,N,z-I),++O,j.next?this.head=j.next:this.head=this.tail=null):(F(V,new S(N.buffer,N.byteOffset,I),z-I),this.head=j,j.data=N.slice(I));break}++O}while((j=j.next)!==null);return this.length-=O,V}[Symbol.for("nodejs.util.inspect.custom")](I,V){return U(this,{...V,depth:0,customInspect:!1})}}}),T9=G0((l,g)=>{var{MathFloor:E,NumberIsInteger:M}=U5(),{ERR_INVALID_ARG_VALUE:F}=z5().codes;function S(I,V,z){return I.highWaterMark!=null?I.highWaterMark:V?I[z]:null}function G(I){return I?16:16384}function U(I,V,z,j){let O=S(V,j,z);if(O!=null){if(!M(O)||O<0){let N=j?`options.${z}`:"options.highWaterMark";throw new F(N,O)}return E(O)}return G(I.objectMode)}g.exports={getHighWaterMark:U,getDefaultHighWaterMark:G}}),r9=G0((l,g)=>{var E=(x5(),O5(I5)),{PromisePrototypeThen:M,SymbolAsyncIterator:F,SymbolIterator:S}=U5(),{Buffer:G}=W5(),{ERR_INVALID_ARG_TYPE:U,ERR_STREAM_NULL_VALUES:I}=z5().codes;function V(z,j,O){let N;if(typeof j=="string"||j instanceof G)return new z({objectMode:!0,...O,read(){this.push(j),this.push(null)}});let W;if(j&&j[F])W=!0,N=j[F]();else if(j&&j[S])W=!1,N=j[S]();else throw new U("iterable",["Iterable"],j);let D=new z({objectMode:!0,highWaterMark:1,...O}),k=!1;D._read=function(){k||(k=!0,x())},D._destroy=function(v,y){M(A(v),()=>E.nextTick(y,v),(p)=>E.nextTick(y,p||v))};async function A(v){let y=v!=null,p=typeof N.throw=="function";if(y&&p){let{value:c,done:n}=await N.throw(v);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:v,done:y}=W?await N.next():N.next();if(y)D.push(null);else{let p=v&&typeof v.then=="function"?await v:v;if(p===null)throw k=!1,new I;if(D.push(p))continue;k=!1}}catch(v){D.destroy(v)}break}}return D}g.exports=V}),e5=G0((l,g)=>{var E=(x5(),O5(I5)),{ArrayPrototypeIndexOf:M,NumberIsInteger:F,NumberIsNaN:S,NumberParseInt:G,ObjectDefineProperties:U,ObjectKeys:I,ObjectSetPrototypeOf:V,Promise:z,SafeSet:j,SymbolAsyncIterator:O,Symbol:N}=U5();g.exports=R,R.ReadableState=J;var{EventEmitter:W}=S5(),{Stream:D,prependListener:k}=O9(),{Buffer:A}=W5(),{addAbortSignal:x}=V9(),v=v5(),y=N5().debuglog("stream",(T)=>{y=T}),p=z7(),c=b5(),{getHighWaterMark:n,getDefaultHighWaterMark:i}=T9(),{aggregateTwoErrors:H0,codes:{ERR_INVALID_ARG_TYPE:a,ERR_METHOD_NOT_IMPLEMENTED:Z0,ERR_OUT_OF_RANGE:K,ERR_STREAM_PUSH_AFTER_EOF:X,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Y}}=z5(),{validateObject:H}=t5(),Q=N("kPaused"),{StringDecoder:Z}=P9(),P=r9();V(R.prototype,D.prototype),V(R,D);var $=()=>{},{errorOrDestroy:C}=c;function J(T,B,b){typeof b!="boolean"&&(b=B instanceof L5()),this.objectMode=!!(T&&T.objectMode),b&&(this.objectMode=this.objectMode||!!(T&&T.readableObjectMode)),this.highWaterMark=T?n(this,T,"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=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,T&&T.encoding&&(this.decoder=new Z(T.encoding),this.encoding=T.encoding)}function R(T){if(!(this instanceof R))return new R(T);let B=this instanceof L5();this._readableState=new J(T,this,B),T&&(typeof T.read=="function"&&(this._read=T.read),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&!B&&x(T.signal,this)),D.call(this,T),c.construct(this,()=>{this._readableState.needReadable&&z0(this,this._readableState)})}R.prototype.destroy=c.destroy,R.prototype._undestroy=c.undestroy,R.prototype._destroy=function(T,B){B(T)},R.prototype[W.captureRejectionSymbol]=function(T){this.destroy(T)},R.prototype.push=function(T,B){return L(this,T,B,!1)},R.prototype.unshift=function(T,B){return L(this,T,B,!0)};function L(T,B,b,h){y("readableAddChunk",B);let o=T._readableState,O0;if(o.objectMode||(typeof B=="string"?(b=b||o.defaultEncoding,o.encoding!==b&&(h&&o.encoding?B=A.from(B,b).toString(o.encoding):(B=A.from(B,b),b=""))):B instanceof A?b="":D._isUint8Array(B)?(B=D._uint8ArrayToBuffer(B),b=""):B!=null&&(O0=new a("chunk",["string","Buffer","Uint8Array"],B))),O0)C(T,O0);else if(B===null)o.reading=!1,u(T,o);else if(o.objectMode||B&&B.length>0)if(h)if(o.endEmitted)C(T,new Y);else{if(o.destroyed||o.errored)return!1;_(T,o,B,!0)}else if(o.ended)C(T,new X);else{if(o.destroyed||o.errored)return!1;o.reading=!1,o.decoder&&!b?(B=o.decoder.write(B),o.objectMode||B.length!==0?_(T,o,B,!1):z0(T,o)):_(T,o,B,!1)}else h||(o.reading=!1,z0(T,o));return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function _(T,B,b,h){B.flowing&&B.length===0&&!B.sync&&T.listenerCount("data")>0?(B.multiAwaitDrain?B.awaitDrainWriters.clear():B.awaitDrainWriters=null,B.dataEmitted=!0,T.emit("data",b)):(B.length+=B.objectMode?1:b.length,h?B.buffer.unshift(b):B.buffer.push(b),B.needReadable&&d(T)),z0(T,B)}R.prototype.isPaused=function(){let T=this._readableState;return T[Q]===!0||T.flowing===!1},R.prototype.setEncoding=function(T){let B=new Z(T);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(T){if(T>s)throw new K("size","<= 1GiB",T);return T--,T|=T>>>1,T|=T>>>2,T|=T>>>4,T|=T>>>8,T|=T>>>16,T++,T}function X0(T,B){return T<=0||B.length===0&&B.ended?0:B.objectMode?1:S(T)?B.flowing&&B.length?B.buffer.first().length:B.length:T<=B.length?T:B.ended?B.length:0}R.prototype.read=function(T){y("read",T),T===void 0?T=NaN:F(T)||(T=G(T,10));let B=this._readableState,b=T;if(T>B.highWaterMark&&(B.highWaterMark=r(T)),T!==0&&(B.emittedReadable=!1),T===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?J0(this):d(this),null;if(T=X0(T,B),T===0&&B.ended)return B.length===0&&J0(this),null;let h=B.needReadable;if(y("need readable",h),(B.length===0||B.length-T<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(O0){C(this,O0)}B.sync=!1,B.reading||(T=X0(b,B))}let o;return T>0?o=$0(T,B):o=null,o===null?(B.needReadable=B.length<=B.highWaterMark,T=0):(B.length-=T,B.multiAwaitDrain?B.awaitDrainWriters.clear():B.awaitDrainWriters=null),B.length===0&&(B.ended||(B.needReadable=!0),b!==T&&B.ended&&J0(this)),o!==null&&!B.errorEmitted&&!B.closeEmitted&&(B.dataEmitted=!0,this.emit("data",o)),o};function u(T,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(T):(B.needReadable=!1,B.emittedReadable=!0,f(T))}}function d(T){let B=T._readableState;y("emitReadable",B.needReadable,B.emittedReadable),B.needReadable=!1,B.emittedReadable||(y("emitReadable",B.flowing),B.emittedReadable=!0,E.nextTick(f,T))}function f(T){let B=T._readableState;y("emitReadable_",B.destroyed,B.length,B.ended),!B.destroyed&&!B.errored&&(B.length||B.ended)&&(T.emit("readable"),B.emittedReadable=!1),B.needReadable=!B.flowing&&!B.ended&&B.length<=B.highWaterMark,C0(T)}function z0(T,B){!B.readingMore&&B.constructed&&(B.readingMore=!0,E.nextTick(K0,T,B))}function K0(T,B){for(;!B.reading&&!B.ended&&(B.length<B.highWaterMark||B.flowing&&B.length===0);){let b=B.length;if(y("maybeReadMore read 0"),T.read(0),b===B.length)break}B.readingMore=!1}R.prototype._read=function(T){throw new Z0("_read()")},R.prototype.pipe=function(T,B){let b=this,h=this._readableState;h.pipes.length===1&&(h.multiAwaitDrain||(h.multiAwaitDrain=!0,h.awaitDrainWriters=new j(h.awaitDrainWriters?[h.awaitDrainWriters]:[]))),h.pipes.push(T),y("pipe count=%d opts=%j",h.pipes.length,B);let o=(!B||B.end!==!1)&&T!==E.stdout&&T!==E.stderr?Y0:T0;h.endEmitted?E.nextTick(o):b.once("end",o),T.on("unpipe",O0);function O0(V0,l0){y("onunpipe"),V0===b&&l0&&l0.hasUnpiped===!1&&(l0.hasUnpiped=!0,U0())}function Y0(){y("onend"),T.end()}let j0,b0=!1;function U0(){y("cleanup"),T.removeListener("close",N0),T.removeListener("finish",G5),j0&&T.removeListener("drain",j0),T.removeListener("error",D0),T.removeListener("unpipe",O0),b.removeListener("end",Y0),b.removeListener("end",T0),b.removeListener("data",y0),b0=!0,j0&&h.awaitDrainWriters&&(!T._writableState||T._writableState.needDrain)&&j0()}function F0(){b0||(h.pipes.length===1&&h.pipes[0]===T?(y("false write response, pause",0),h.awaitDrainWriters=T,h.multiAwaitDrain=!1):h.pipes.length>1&&h.pipes.includes(T)&&(y("false write response, pause",h.awaitDrainWriters.size),h.awaitDrainWriters.add(T)),b.pause()),j0||(j0=Q0(b,T),T.on("drain",j0))}b.on("data",y0);function y0(V0){y("ondata");let l0=T.write(V0);y("dest.write",l0),l0===!1&&F0()}function D0(V0){if(y("onerror",V0),T0(),T.removeListener("error",D0),T.listenerCount("error")===0){let l0=T._writableState||T._readableState;l0&&!l0.errorEmitted?C(T,V0):T.emit("error",V0)}}k(T,"error",D0);function N0(){T.removeListener("finish",G5),T0()}T.once("close",N0);function G5(){y("onfinish"),T.removeListener("close",N0),T0()}T.once("finish",G5);function T0(){y("unpipe"),b.unpipe(T)}return T.emit("pipe",b),T.writableNeedDrain===!0?h.flowing&&F0():h.flowing||(y("pipe resume"),b.resume()),T};function Q0(T,B){return function(){let b=T._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)&&T.listenerCount("data")&&T.resume()}}R.prototype.unpipe=function(T){let B=this._readableState,b={hasUnpiped:!1};if(B.pipes.length===0)return this;if(!T){let o=B.pipes;B.pipes=[],this.pause();for(let O0=0;O0<o.length;O0++)o[O0].emit("unpipe",this,{hasUnpiped:!1});return this}let h=M(B.pipes,T);return h===-1?this:(B.pipes.splice(h,1),B.pipes.length===0&&this.pause(),T.emit("unpipe",this,b),this)},R.prototype.on=function(T,B){let b=D.prototype.on.call(this,T,B),h=this._readableState;return T==="data"?(h.readableListening=this.listenerCount("readable")>0,h.flowing!==!1&&this.resume()):T==="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(T,B){let b=D.prototype.removeListener.call(this,T,B);return T==="readable"&&E.nextTick(w,this),b},R.prototype.off=R.prototype.removeListener,R.prototype.removeAllListeners=function(T){let B=D.prototype.removeAllListeners.apply(this,arguments);return(T==="readable"||T===void 0)&&E.nextTick(w,this),B};function w(T){let B=T._readableState;B.readableListening=T.listenerCount("readable")>0,B.resumeScheduled&&B[Q]===!1?B.flowing=!0:T.listenerCount("data")>0?T.resume():B.readableListening||(B.flowing=null)}function q(T){y("readable nexttick read 0"),T.read(0)}R.prototype.resume=function(){let T=this._readableState;return T.flowing||(y("resume"),T.flowing=!T.readableListening,m(this,T)),T[Q]=!1,this};function m(T,B){B.resumeScheduled||(B.resumeScheduled=!0,E.nextTick(e,T,B))}function e(T,B){y("resume",B.reading),B.reading||T.read(0),B.resumeScheduled=!1,T.emit("resume"),C0(T),B.flowing&&!B.reading&&T.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 C0(T){let B=T._readableState;for(y("flow",B.flowing);B.flowing&&T.read()!==null;);}R.prototype.wrap=function(T){let B=!1;T.on("data",(h)=>{!this.push(h)&&T.pause&&(B=!0,T.pause())}),T.on("end",()=>{this.push(null)}),T.on("error",(h)=>{C(this,h)}),T.on("close",()=>{this.destroy()}),T.on("destroy",()=>{this.destroy()}),this._read=()=>{B&&T.resume&&(B=!1,T.resume())};let b=I(T);for(let h=1;h<b.length;h++){let o=b[h];this[o]===void 0&&typeof T[o]=="function"&&(this[o]=T[o].bind(T))}return this},R.prototype[O]=function(){return t(this)},R.prototype.iterator=function(T){return T!==void 0&&H(T,"options"),t(this,T)};function t(T,B){typeof T.read!="function"&&(T=R.wrap(T,{objectMode:!0}));let b=_0(T,B);return b.stream=T,b}async function*_0(T,B){let b=$;function h(Y0){this===T?(b(),b=$):b=Y0}T.on("readable",h);let o,O0=v(T,{writable:!1},(Y0)=>{o=Y0?H0(o,Y0):null,b(),b=$});try{for(;;){let Y0=T.destroyed?null:T.read();if(Y0!==null)yield Y0;else{if(o)throw o;if(o===null)return;await new z(h)}}}catch(Y0){throw o=H0(o,Y0),o}finally{(o||B?.destroyOnReturn!==!1)&&(o===void 0||T._readableState.autoDestroy)?c.destroyer(T,null):(T.off("readable",h),O0())}}U(R.prototype,{readable:{__proto__:null,get(){let T=this._readableState;return!!T&&T.readable!==!1&&!T.destroyed&&!T.errorEmitted&&!T.endEmitted},set(T){this._readableState&&(this._readableState.readable=!!T)}},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(T){this._readableState&&(this._readableState.flowing=T)}},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(T){!this._readableState||(this._readableState.destroyed=T)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),U(J.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Q]!==!1},set(T){this[Q]=!!T}}}),R._fromList=$0;function $0(T,B){if(B.length===0)return null;let b;return B.objectMode?b=B.buffer.shift():!T||T>=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(T,B.decoder),b}function J0(T){let B=T._readableState;y("endReadable",B.endEmitted),B.endEmitted||(B.ended=!0,E.nextTick(w0,B,T))}function w0(T,B){if(y("endReadableNT",T.endEmitted,T.length),!T.errored&&!T.closeEmitted&&!T.endEmitted&&T.length===0){if(T.endEmitted=!0,B.emit("end"),B.writable&&B.allowHalfOpen===!1)E.nextTick(W0,B);else if(T.autoDestroy){let b=B._writableState;(!b||b.autoDestroy&&(b.finished||b.writable===!1))&&B.destroy()}}}function W0(T){T.writable&&!T.writableEnded&&!T.destroyed&&T.end()}R.from=function(T,B){return P(R,T,B)};var P0;function c0(){return P0===void 0&&(P0={}),P0}R.fromWeb=function(T,B){return c0().newStreamReadableFromReadableStream(T,B)},R.toWeb=function(T,B){return c0().newReadableStreamFromStreamReadable(T,B)},R.wrap=function(T,B){var b,h;return new R({objectMode:(b=(h=T.readableObjectMode)!==null&&h!==void 0?h:T.objectMode)!==null&&b!==void 0?b:!0,...B,destroy(o,O0){c.destroyer(T,o),O0(o)}}).wrap(T)}}),i9=G0((l,g)=>{var E=(x5(),O5(I5)),{ArrayPrototypeSlice:M,Error:F,FunctionPrototypeSymbolHasInstance:S,ObjectDefineProperty:G,ObjectDefineProperties:U,ObjectSetPrototypeOf:I,StringPrototypeToLowerCase:V,Symbol:z,SymbolHasInstance:j}=U5();g.exports=Z,Z.WritableState=H;var{EventEmitter:O}=S5(),N=O9().Stream,{Buffer:W}=W5(),D=b5(),{addAbortSignal:k}=V9(),{getHighWaterMark:A,getDefaultHighWaterMark:x}=T9(),{ERR_INVALID_ARG_TYPE:v,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:H0,ERR_STREAM_WRITE_AFTER_END:a,ERR_UNKNOWN_ENCODING:Z0}=z5().codes,{errorOrDestroy:K}=D;I(Z.prototype,N.prototype),I(Z,N);function X(){}var Y=z("kOnFinished");function H(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?A(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 C0=!!(q&&q.decodeStrings===!1);this.decodeStrings=!C0,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[Y]=[]}function Q(q){q.buffered=[],q.bufferedIndex=0,q.allBuffers=!0,q.allNoop=!0}H.prototype.getBuffer=function(){return M(this.buffered,this.bufferedIndex)},G(H.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Z(q){let m=this instanceof L5();if(!m&&!S(Z,this))return new Z(q);this._writableState=new H(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&&k(q.signal,this)),N.call(this,q),D.construct(this,()=>{let e=this._writableState;e.writing||r(this,e),f(this,e)})}G(Z,j,{__proto__:null,value:function(q){return S(this,q)?!0:this!==Z?!1:q&&q._writableState instanceof H}}),Z.prototype.pipe=function(){K(this,new c)};function P(q,m,e,C0){let t=q._writableState;if(typeof e=="function")C0=e,e=t.defaultEncoding;else{if(!e)e=t.defaultEncoding;else if(e!=="buffer"&&!W.isEncoding(e))throw new Z0(e);typeof C0!="function"&&(C0=X)}if(m===null)throw new H0;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 v("chunk",["string","Buffer","Uint8Array"],m);let _0;return t.ending?_0=new a:t.destroyed&&(_0=new n("write")),_0?(E.nextTick(C0,_0),K(q,_0,!0),_0):(t.pendingcb++,$(q,t,m,e,C0))}Z.prototype.write=function(q,m,e){return P(this,q,m,e)===!0},Z.prototype.cork=function(){this._writableState.corked++},Z.prototype.uncork=function(){let q=this._writableState;q.corked&&(q.corked--,q.writing||r(this,q))},Z.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=V(q)),!W.isEncoding(q))throw new Z0(q);return this._writableState.defaultEncoding=q,this};function $(q,m,e,C0,t){let _0=m.objectMode?1:e.length;m.length+=_0;let $0=m.length<m.highWaterMark;return $0||(m.needDrain=!0),m.writing||m.corked||m.errored||!m.constructed?(m.buffered.push({chunk:e,encoding:C0,callback:t}),m.allBuffers&&C0!=="buffer"&&(m.allBuffers=!1),m.allNoop&&t!==X&&(m.allNoop=!1)):(m.writelen=_0,m.writecb=t,m.writing=!0,m.sync=!0,q._write(e,C0,m.onwrite),m.sync=!1),$0&&!m.errored&&!m.destroyed}function C(q,m,e,C0,t,_0,$0){m.writelen=C0,m.writecb=$0,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 J(q,m,e,C0){--m.pendingcb,C0(e),s(m),K(q,e)}function R(q,m){let e=q._writableState,C0=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),C0?E.nextTick(J,q,e,m,t):J(q,e,m,t)):(e.buffered.length>e.bufferedIndex&&r(q,e),C0?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:C0}){return m.afterWriteTickInfo=null,_(q,m,e,C0)}function _(q,m,e,C0){for(!m.ending&&!q.destroyed&&m.length===0&&m.needDrain&&(m.needDrain=!1,q.emit("drain"));e-- >0;)m.pendingcb--,C0();m.destroyed&&s(m),f(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:$0}=q.buffered[t],J0=q.objectMode?1:_0.length;q.length-=J0,$0((m=q.errored)!==null&&m!==void 0?m:new n("write"))}let e=q[Y].splice(0);for(let t=0;t<e.length;t++){var C0;e[t]((C0=q.errored)!==null&&C0!==void 0?C0:new n("end"))}Q(q)}function r(q,m){if(m.corked||m.bufferProcessing||m.destroyed||!m.constructed)return;let{buffered:e,bufferedIndex:C0,objectMode:t}=m,_0=e.length-C0;if(!_0)return;let $0=C0;if(m.bufferProcessing=!0,_0>1&&q._writev){m.pendingcb-=_0-1;let J0=m.allNoop?X:(W0)=>{for(let P0=$0;P0<e.length;++P0)e[P0].callback(W0)},w0=m.allNoop&&$0===0?e:M(e,$0);w0.allBuffers=m.allBuffers,C(q,m,!0,m.length,w0,"",J0),Q(m)}else{do{let{chunk:J0,encoding:w0,callback:W0}=e[$0];e[$0++]=null;let P0=t?1:J0.length;C(q,m,!1,P0,J0,w0,W0)}while($0<e.length&&!m.writing);$0===e.length?Q(m):$0>256?(e.splice(0,$0),m.bufferedIndex=0):m.bufferedIndex=$0}m.bufferProcessing=!1}Z.prototype._write=function(q,m,e){if(this._writev)this._writev([{chunk:q,encoding:m}],e);else throw new y("_write()")},Z.prototype._writev=null,Z.prototype.end=function(q,m,e){let C0=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=P(this,q,m);_0 instanceof F&&(t=_0)}return C0.corked&&(C0.corked=1,this.uncork()),t||(!C0.errored&&!C0.ending?(C0.ending=!0,f(this,C0,!0),C0.ended=!0):C0.finished?t=new i("end"):C0.destroyed&&(t=new n("end"))),typeof e=="function"&&(t||C0.finished?E.nextTick(e,t):C0[Y].push(e)),this};function X0(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 C0(t){if(e){K(q,t??p());return}if(e=!0,m.pendingcb--,t){let _0=m[Y].splice(0);for(let $0=0;$0<_0.length;$0++)_0[$0](t);K(q,t,m.sync)}else X0(m)&&(m.prefinished=!0,q.emit("prefinish"),m.pendingcb++,E.nextTick(z0,q,m))}m.sync=!0,m.pendingcb++;try{q._final(C0)}catch(t){C0(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 f(q,m,e){X0(m)&&(d(q,m),m.pendingcb===0&&(e?(m.pendingcb++,E.nextTick((C0,t)=>{X0(t)?z0(C0,t):t.pendingcb--},q,m)):X0(m)&&(m.pendingcb++,z0(q,m))))}function z0(q,m){m.pendingcb--,m.finished=!0;let e=m[Y].splice(0);for(let C0=0;C0<e.length;C0++)e[C0]();if(q.emit("finish"),m.autoDestroy){let C0=q._readableState;(!C0||C0.autoDestroy&&(C0.endEmitted||C0.readable===!1))&&q.destroy()}}U(Z.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;Z.prototype.destroy=function(q,m){let e=this._writableState;return!e.destroyed&&(e.bufferedIndex<e.buffered.length||e[Y].length)&&E.nextTick(s,e),K0.call(this,q,m),this},Z.prototype._undestroy=D.undestroy,Z.prototype._destroy=function(q,m){m(q)},Z.prototype[O.captureRejectionSymbol]=function(q){this.destroy(q)};var Q0;function w(){return Q0===void 0&&(Q0={}),Q0}Z.fromWeb=function(q,m){return w().newStreamWritableFromWritableStream(q,m)},Z.toWeb=function(q){return w().newWritableStreamFromStreamWritable(q)}}),O7=G0((l,g)=>{var E=(x5(),O5(I5)),M=W5(),{isReadable:F,isWritable:S,isIterable:G,isNodeStream:U,isReadableNodeStream:I,isWritableNodeStream:V,isDuplexNodeStream:z}=A5(),j=v5(),{AbortError:O,codes:{ERR_INVALID_ARG_TYPE:N,ERR_INVALID_RETURN_VALUE:W}}=z5(),{destroyer:D}=b5(),k=L5(),A=e5(),{createDeferredPromise:x}=N5(),v=r9(),y=globalThis.Blob||M.Blob,p=typeof y<"u"?function(Z0){return Z0 instanceof y}:function(Z0){return!1},c=globalThis.AbortController||z9().AbortController,{FunctionPrototypeCall:n}=U5(),i=class extends k{constructor(Z0){super(Z0),Z0?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),Z0?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};g.exports=function Z0(K,X){if(z(K))return K;if(I(K))return a({readable:K});if(V(K))return a({writable:K});if(U(K))return a({writable:!1,readable:!1});if(typeof K=="function"){let{value:H,write:Q,final:Z,destroy:P}=H0(K);if(G(H))return v(i,H,{objectMode:!0,write:Q,final:Z,destroy:P});let $=H?.then;if(typeof $=="function"){let C,J=n($,H,(R)=>{if(R!=null)throw new W("nully","body",R)},(R)=>{D(C,R)});return C=new i({objectMode:!0,readable:!1,write:Q,final(R){Z(async()=>{try{await J,E.nextTick(R,null)}catch(L){E.nextTick(R,L)}})},destroy:P})}throw new W("Iterable, AsyncIterable or AsyncFunction",X,H)}if(p(K))return Z0(K.arrayBuffer());if(G(K))return v(i,K,{objectMode:!0,writable:!1});if(typeof K?.writable=="object"||typeof K?.readable=="object"){let H=K!=null&&K.readable?I(K?.readable)?K?.readable:Z0(K.readable):void 0,Q=K!=null&&K.writable?V(K?.writable)?K?.writable:Z0(K.writable):void 0;return a({readable:H,writable:Q})}let Y=K?.then;if(typeof Y=="function"){let H;return n(Y,K,(Q)=>{Q!=null&&H.push(Q),H.push(null)},(Q)=>{D(H,Q)}),H=new i({objectMode:!0,writable:!1,read(){}})}throw new N(X,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],K)};function H0(Z0){let{promise:K,resolve:X}=x(),Y=new c,H=Y.signal;return{value:Z0(async function*(){for(;;){let Q=K;K=null;let{chunk:Z,done:P,cb:$}=await Q;if(E.nextTick($),P)return;if(H.aborted)throw new O(void 0,{cause:H.reason});({promise:K,resolve:X}=x()),yield Z}}(),{signal:H}),write(Q,Z,P){let $=X;X=null,$({chunk:Q,done:!1,cb:P})},final(Q){let Z=X;X=null,Z({done:!0,cb:Q})},destroy(Q,Z){Y.abort(),Z(Q)}}}function a(Z0){let K=Z0.readable&&typeof Z0.readable.read!="function"?A.wrap(Z0.readable):Z0.readable,X=Z0.writable,Y=!!F(K),H=!!S(X),Q,Z,P,$,C;function J(R){let L=$;$=null,L?L(R):R?C.destroy(R):!Y&&!H&&C.destroy()}return C=new i({readableObjectMode:!!(K!=null&&K.readableObjectMode),writableObjectMode:!!(X!=null&&X.writableObjectMode),readable:Y,writable:H}),H&&(j(X,(R)=>{H=!1,R&&D(K,R),J(R)}),C._write=function(R,L,_){X.write(R,L)?_():Q=_},C._final=function(R){X.end(),Z=R},X.on("drain",function(){if(Q){let R=Q;Q=null,R()}}),X.on("finish",function(){if(Z){let R=Z;Z=null,R()}})),Y&&(j(K,(R)=>{Y=!1,R&&D(K,R),J(R)}),K.on("readable",function(){if(P){let R=P;P=null,R()}}),K.on("end",function(){C.push(null)}),C._read=function(){for(;;){let R=K.read();if(R===null){P=C._read;return}if(!C.push(R))return}}),C._destroy=function(R,L){!R&&$!==null&&(R=new O),P=null,Q=null,Z=null,$===null?L(R):($=L,D(X,R),D(K,R))},C}}),L5=G0((l,g)=>{var{ObjectDefineProperties:E,ObjectGetOwnPropertyDescriptor:M,ObjectKeys:F,ObjectSetPrototypeOf:S}=U5();g.exports=I;var G=e5(),U=i9();S(I.prototype,G.prototype),S(I,G);{let O=F(U.prototype);for(let N=0;N<O.length;N++){let W=O[N];I.prototype[W]||(I.prototype[W]=U.prototype[W])}}function I(O){if(!(this instanceof I))return new I(O);G.call(this,O),U.call(this,O),O?(this.allowHalfOpen=O.allowHalfOpen!==!1,O.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),O.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}E(I.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(O){this._readableState&&this._writableState&&(this._readableState.destroyed=O,this._writableState.destroyed=O)}}});var V;function z(){return V===void 0&&(V={}),V}I.fromWeb=function(O,N){return z().newStreamDuplexFromReadableWritablePair(O,N)},I.toWeb=function(O){return z().newReadableWritablePairFromDuplex(O)};var j;I.from=function(O){return j||(j=O7()),j(O,"body")}}),t9=G0((l,g)=>{var{ObjectSetPrototypeOf:E,Symbol:M}=U5();g.exports=I;var{ERR_METHOD_NOT_IMPLEMENTED:F}=z5().codes,S=L5(),{getHighWaterMark:G}=T9();E(I.prototype,S.prototype),E(I,S);var U=M("kCallback");function I(j){if(!(this instanceof I))return new I(j);let O=j?G(this,j,"readableHighWaterMark",!0):null;O===0&&(j={...j,highWaterMark:null,readableHighWaterMark:O,writableHighWaterMark:j.writableHighWaterMark||0}),S.call(this,j),this._readableState.sync=!1,this[U]=null,j&&(typeof j.transform=="function"&&(this._transform=j.transform),typeof j.flush=="function"&&(this._flush=j.flush)),this.on("prefinish",z)}function V(j){typeof this._flush=="function"&&!this.destroyed?this._flush((O,N)=>{if(O){j?j(O):this.destroy(O);return}N!=null&&this.push(N),this.push(null),j&&j()}):(this.push(null),j&&j())}function z(){this._final!==V&&V.call(this)}I.prototype._final=V,I.prototype._transform=function(j,O,N){throw new F("_transform()")},I.prototype._write=function(j,O,N){let W=this._readableState,D=this._writableState,k=W.length;this._transform(j,O,(A,x)=>{if(A){N(A);return}x!=null&&this.push(x),D.ended||k===W.length||W.length<W.highWaterMark?N():this[U]=N})},I.prototype._read=function(){if(this[U]){let j=this[U];this[U]=null,j()}}}),e9=G0((l,g)=>{var{ObjectSetPrototypeOf:E}=U5();g.exports=F;var M=t9();E(F.prototype,M.prototype),E(F,M);function F(S){if(!(this instanceof F))return new F(S);M.call(this,S)}F.prototype._transform=function(S,G,U){U(null,S)}}),D9=G0((l,g)=>{var E=(x5(),O5(I5)),{ArrayIsArray:M,Promise:F,SymbolAsyncIterator:S}=U5(),G=v5(),{once:U}=N5(),I=b5(),V=L5(),{aggregateTwoErrors:z,codes:{ERR_INVALID_ARG_TYPE:j,ERR_INVALID_RETURN_VALUE:O,ERR_MISSING_ARGS:N,ERR_STREAM_DESTROYED:W,ERR_STREAM_PREMATURE_CLOSE:D},AbortError:k}=z5(),{validateFunction:A,validateAbortSignal:x}=t5(),{isIterable:v,isReadable:y,isReadableNodeStream:p,isNodeStream:c}=A5(),n=globalThis.AbortController||z9().AbortController,i,H0;function a(P,$,C){let J=!1;P.on("close",()=>{J=!0});let R=G(P,{readable:$,writable:C},(L)=>{J=!L});return{destroy:(L)=>{J||(J=!0,I.destroyer(P,L||new W("pipe")))},cleanup:R}}function Z0(P){return A(P[P.length-1],"streams[stream.length - 1]"),P.pop()}function K(P){if(v(P))return P;if(p(P))return X(P);throw new j("val",["Readable","Iterable","AsyncIterable"],P)}async function*X(P){H0||(H0=e5()),yield*H0.prototype[S].call(P)}async function Y(P,$,C,{end:J}){let R,L=null,_=(X0)=>{if(X0&&(R=X0),L){let u=L;L=null,u()}},s=()=>new F((X0,u)=>{R?u(R):L=()=>{R?u(R):X0()}});$.on("drain",_);let r=G($,{readable:!1},_);try{$.writableNeedDrain&&await s();for await(let X0 of P)$.write(X0)||await s();J&&$.end(),await s(),C()}catch(X0){C(R!==X0?z(R,X0):X0)}finally{r(),$.off("drain",_)}}function H(...P){return Q(P,U(Z0(P)))}function Q(P,$,C){if(P.length===1&&M(P[0])&&(P=P[0]),P.length<2)throw new N("streams");let J=new n,R=J.signal,L=C?.signal,_=[];x(L,"options.signal");function s(){z0(new k)}L?.addEventListener("abort",s);let r,X0,u=[],d=0;function f(q){z0(q,--d===0)}function z0(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),J.abort(),m&&(r||_.forEach((e)=>e()),E.nextTick($,r,X0))}}let K0;for(let q=0;q<P.length;q++){let m=P[q],e=q<P.length-1,C0=q>0,t=e||C?.end!==!1,_0=q===P.length-1;if(c(m)){let $0=function(J0){J0&&J0.name!=="AbortError"&&J0.code!=="ERR_STREAM_PREMATURE_CLOSE"&&f(J0)};var Q0=$0;if(t){let{destroy:J0,cleanup:w0}=a(m,e,C0);u.push(J0),y(m)&&_0&&_.push(w0)}m.on("error",$0),y(m)&&_0&&_.push(()=>{m.removeListener("error",$0)})}if(q===0)if(typeof m=="function"){if(K0=m({signal:R}),!v(K0))throw new O("Iterable, AsyncIterable or Stream","source",K0)}else v(m)||p(m)?K0=m:K0=V.from(m);else if(typeof m=="function")if(K0=K(K0),K0=m(K0,{signal:R}),e){if(!v(K0,!0))throw new O("AsyncIterable",`transform[${q-1}]`,K0)}else{var w;i||(i=e9());let $0=new i({objectMode:!0}),J0=(w=K0)===null||w===void 0?void 0:w.then;if(typeof J0=="function")d++,J0.call(K0,(P0)=>{X0=P0,P0!=null&&$0.write(P0),t&&$0.end(),E.nextTick(f)},(P0)=>{$0.destroy(P0),E.nextTick(f,P0)});else if(v(K0,!0))d++,Y(K0,$0,f,{end:t});else throw new O("AsyncIterable or Promise","destination",K0);K0=$0;let{destroy:w0,cleanup:W0}=a(K0,!1,!0);u.push(w0),_0&&_.push(W0)}else if(c(m)){if(p(K0)){d+=2;let $0=Z(K0,m,f,{end:t});y(m)&&_0&&_.push($0)}else if(v(K0))d++,Y(K0,m,f,{end:t});else throw new j("val",["Readable","Iterable","AsyncIterable"],K0);K0=m}else K0=V.from(m)}return(R!=null&&R.aborted||L!=null&&L.aborted)&&E.nextTick(s),K0}function Z(P,$,C,{end:J}){let R=!1;return $.on("close",()=>{R||C(new D)}),P.pipe($,{end:J}),J?P.once("end",()=>{R=!0,$.end()}):C(),G(P,{readable:!0,writable:!1},(L)=>{let _=P._readableState;L&&L.code==="ERR_STREAM_PREMATURE_CLOSE"&&_&&_.ended&&!_.errored&&!_.errorEmitted?P.once("end",C).once("error",C):C(L)}),G($,{readable:!1,writable:!0},C)}g.exports={pipelineImpl:Q,pipeline:H}}),V7=G0((l,g)=>{var{pipeline:E}=D9(),M=L5(),{destroyer:F}=b5(),{isNodeStream:S,isReadable:G,isWritable:U}=A5(),{AbortError:I,codes:{ERR_INVALID_ARG_VALUE:V,ERR_MISSING_ARGS:z}}=z5();g.exports=function(...j){if(j.length===0)throw new z("streams");if(j.length===1)return M.from(j[0]);let O=[...j];if(typeof j[0]=="function"&&(j[0]=M.from(j[0])),typeof j[j.length-1]=="function"){let n=j.length-1;j[n]=M.from(j[n])}for(let n=0;n<j.length;++n)if(S(j[n])){if(n<j.length-1&&!G(j[n]))throw new V(`streams[${n}]`,O[n],"must be readable");if(n>0&&!U(j[n]))throw new V(`streams[${n}]`,O[n],"must be writable")}let N,W,D,k,A;function x(n){let i=k;k=null,i?i(n):n?A.destroy(n):!c&&!p&&A.destroy()}let v=j[0],y=E(j,x),p=!!U(v),c=!!G(y);return A=new M({writableObjectMode:!!(v!=null&&v.writableObjectMode),readableObjectMode:!!(y!=null&&y.writableObjectMode),writable:p,readable:c}),p&&(A._write=function(n,i,H0){v.write(n,i)?H0():N=H0},A._final=function(n){v.end(),W=n},v.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(){A.push(null)}),A._read=function(){for(;;){let n=y.read();if(n===null){D=A._read;return}if(!A.push(n))return}}),A._destroy=function(n,i){!n&&k!==null&&(n=new I),D=null,N=null,W=null,k===null?i(n):(k=i,F(y,n))},A}}),K6=G0((l,g)=>{var{ArrayPrototypePop:E,Promise:M}=U5(),{isIterable:F,isNodeStream:S}=A5(),{pipelineImpl:G}=D9(),{finished:U}=v5();function I(...V){return new M((z,j)=>{let O,N,W=V[V.length-1];if(W&&typeof W=="object"&&!S(W)&&!F(W)){let D=E(V);O=D.signal,N=D.end}G(V,(D,k)=>{D?j(D):z(k)},{signal:O,end:N})})}g.exports={finished:U,pipeline:I}}),T7=G0((l,g)=>{var{Buffer:E}=W5(),{ObjectDefineProperty:M,ObjectKeys:F,ReflectApply:S}=U5(),{promisify:{custom:G}}=N5(),{streamReturningOperators:U,promiseReturningOperators:I}=W7(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:V}}=z5(),z=V7(),{pipeline:j}=D9(),{destroyer:O}=b5(),N=v5(),W=K6(),D=A5(),k=g.exports=O9().Stream;k.isDisturbed=D.isDisturbed,k.isErrored=D.isErrored,k.isReadable=D.isReadable,k.Readable=e5();for(let v of F(U)){let y=function(...c){if(new.target)throw V();return k.Readable.from(S(p,this,c))};A=y;let p=U[v];M(y,"name",{__proto__:null,value:p.name}),M(y,"length",{__proto__:null,value:p.length}),M(k.Readable.prototype,v,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var A;for(let v of F(I)){let y=function(...c){if(new.target)throw V();return S(p,this,c)};A=y;let p=I[v];M(y,"name",{__proto__:null,value:p.name}),M(y,"length",{__proto__:null,value:p.length}),M(k.Readable.prototype,v,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var A;k.Writable=i9(),k.Duplex=L5(),k.Transform=t9(),k.PassThrough=e9(),k.pipeline=j;var{addAbortSignal:x}=V9();k.addAbortSignal=x,k.finished=N,k.destroy=O,k.compose=z,M(k,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return W}}),M(j,G,{__proto__:null,enumerable:!0,get(){return W.pipeline}}),M(N,G,{__proto__:null,enumerable:!0,get(){return W.finished}}),k.Stream=k,k._isUint8Array=function(v){return v instanceof Uint8Array},k._uint8ArrayToBuffer=function(v){return E.from(v.buffer,v.byteOffset,v.byteLength)}}),m9=G0((l,g)=>{var E=T7(),M=K6(),F=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=F,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}),N9={};r5(N9,{default:()=>C6});var C6,D7=J9(()=>{Z9(N9,E5(m9())),C6=E5(m9())}),q5=G0((l,g)=>{var E=d0().Buffer,M=(D7(),O5(N9)).Transform,F=P9().StringDecoder,S=p0();function G(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(G,M),G.prototype.update=function(U,I,V){typeof U=="string"&&(U=E.from(U,I));var z=this._update(U);return this.hashMode?this:(V&&(z=this._toString(z,V)),z)},G.prototype.setAutoPadding=function(){},G.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},G.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},G.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},G.prototype._transform=function(U,I,V){var z;try{this.hashMode?this._update(U):this.push(this._update(U))}catch(j){z=j}finally{V(z)}},G.prototype._flush=function(U){var I;try{this.push(this.__final())}catch(V){I=V}U(I)},G.prototype._finalOrDigest=function(U){var I=this.__final()||E.alloc(0);return U&&(I=this._toString(I,U,!0)),I},G.prototype._toString=function(U,I,V){if(this._decoder||(this._decoder=new F(I),this._encoding=I),this._encoding!==I)throw new Error("can't switch encodings");var z=this._decoder.write(U);return V&&(z+=this._decoder.end()),z},g.exports=G}),h5=G0((l,g)=>{var E=p0(),M=F9(),F=U9(),S=W9(),G=q5();function U(I){G.call(this,"digest"),this._hash=I}E(U,G),U.prototype._update=function(I){this._hash.update(I)},U.prototype._final=function(){return this._hash.digest()},g.exports=function(I){return I=I.toLowerCase(),I==="md5"?new M:I==="rmd160"||I==="ripemd160"?new F:new U(S(I))}}),N7=G0((l,g)=>{var E=p0(),M=d0().Buffer,F=q5(),S=M.alloc(128),G=64;function U(I,V){F.call(this,"digest"),typeof V=="string"&&(V=M.from(V)),this._alg=I,this._key=V,V.length>G?V=I(V):V.length<G&&(V=M.concat([V,S],G));for(var z=this._ipad=M.allocUnsafe(G),j=this._opad=M.allocUnsafe(G),O=0;O<G;O++)z[O]=V[O]^54,j[O]=V[O]^92;this._hash=[z]}E(U,F),U.prototype._update=function(I){this._hash.push(I)},U.prototype._final=function(){var I=this._alg(M.concat(this._hash));return this._alg(M.concat([this._opad,I]))},g.exports=U}),X6=G0((l,g)=>{var E=F9();g.exports=function(M){return new E().update(M).digest()}}),H6=G0((l,g)=>{var E=p0(),M=N7(),F=q5(),S=d0().Buffer,G=X6(),U=U9(),I=W9(),V=S.alloc(128);function z(j,O){F.call(this,"digest"),typeof O=="string"&&(O=S.from(O));var N=j==="sha512"||j==="sha384"?128:64;if(this._alg=j,this._key=O,O.length>N){var W=j==="rmd160"?new U:I(j);O=W.update(O).digest()}else O.length<N&&(O=S.concat([O,V],N));for(var D=this._ipad=S.allocUnsafe(N),k=this._opad=S.allocUnsafe(N),A=0;A<N;A++)D[A]=O[A]^54,k[A]=O[A]^92;this._hash=j==="rmd160"?new U:I(j),this._hash.update(D)}E(z,F),z.prototype._update=function(j){this._hash.update(j)},z.prototype._final=function(){var j=this._hash.digest(),O=this._alg==="rmd160"?new U:I(this._alg);return O.update(this._opad).update(j).digest()},g.exports=function(j,O){return j=j.toLowerCase(),j==="rmd160"||j==="ripemd160"?new z("rmd160",O):j==="md5"?new M(G,O):new z(j,O)}}),Y6=G0((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"}}}),L7=G0((l,g)=>{g.exports=Y6()}),Q6=G0((l,g)=>{var E=Math.pow(2,30)-1;g.exports=function(M,F){if(typeof M!="number")throw new TypeError("Iterations not a number");if(M<0)throw new TypeError("Bad iterations");if(typeof F!="number")throw new TypeError("Key length not a number");if(F<0||F>E||F!==F)throw new TypeError("Bad key length")}}),$6=G0((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}),G6=G0((l,g)=>{var E=d0().Buffer;g.exports=function(M,F,S){if(E.isBuffer(M))return M;if(typeof M=="string")return E.from(M,F);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")}}),J6=G0((l,g)=>{var E=X6(),M=U9(),F=W9(),S=d0().Buffer,G=Q6(),U=$6(),I=G6(),V=S.alloc(128),z={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function j(W,D,k){var A=O(W),x=W==="sha512"||W==="sha384"?128:64;D.length>x?D=A(D):D.length<x&&(D=S.concat([D,V],x));for(var v=S.allocUnsafe(x+z[W]),y=S.allocUnsafe(x+z[W]),p=0;p<x;p++)v[p]=D[p]^54,y[p]=D[p]^92;var c=S.allocUnsafe(x+k+4);v.copy(c,0,0,x),this.ipad1=c,this.ipad2=v,this.opad=y,this.alg=W,this.blocksize=x,this.hash=A,this.size=z[W]}j.prototype.run=function(W,D){W.copy(D,this.blocksize);var k=this.hash(D);return k.copy(this.opad,this.blocksize),this.hash(this.opad)};function O(W){function D(A){return F(W).update(A).digest()}function k(A){return new M().update(A).digest()}return W==="rmd160"||W==="ripemd160"?k:W==="md5"?E:D}function N(W,D,k,A,x){G(k,A),W=I(W,U,"Password"),D=I(D,U,"Salt"),x=x||"sha1";var v=new j(x,W,D.length),y=S.allocUnsafe(A),p=S.allocUnsafe(D.length+4);D.copy(p,0,0,D.length);for(var c=0,n=z[x],i=Math.ceil(A/n),H0=1;H0<=i;H0++){p.writeUInt32BE(H0,D.length);for(var a=v.run(p,v.ipad1),Z0=a,K=1;K<k;K++){Z0=v.run(Z0,v.ipad2);for(var X=0;X<n;X++)a[X]^=Z0[X]}a.copy(y,c),c+=n}return y}g.exports=N}),I7=G0((l,g)=>{var E=d0().Buffer,M=Q6(),F=$6(),S=J6(),G=G6(),U,I=global.crypto&&global.crypto.subtle,V={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"},z=[];function j(k){if(global.process&&!global.process.browser||!I||!I.importKey||!I.deriveBits)return Promise.resolve(!1);if(z[k]!==void 0)return z[k];U=U||E.alloc(8);var A=W(U,U,10,128,k).then(function(){return!0}).catch(function(){return!1});return z[k]=A,A}var O;function N(){return O||(global.process&&global.process.nextTick?O=global.process.nextTick:global.queueMicrotask?O=global.queueMicrotask:global.setImmediate?O=global.setImmediate:O=global.setTimeout,O)}function W(k,A,x,v,y){return I.importKey("raw",k,{name:"PBKDF2"},!1,["deriveBits"]).then(function(p){return I.deriveBits({name:"PBKDF2",salt:A,iterations:x,hash:{name:y}},p,v<<3)}).then(function(p){return E.from(p)})}function D(k,A){k.then(function(x){N()(function(){A(null,x)})},function(x){N()(function(){A(x)})})}g.exports=function(k,A,x,v,y,p){typeof y=="function"&&(p=y,y=void 0),y=y||"sha1";var c=V[y.toLowerCase()];if(!c||typeof global.Promise!="function"){N()(function(){var n;try{n=S(k,A,x,v,y)}catch(i){return p(i)}p(null,n)});return}if(M(x,v),k=G(k,F,"Password"),A=G(A,F,"Salt"),typeof p!="function")throw new Error("No callback provided to pbkdf2");D(j(c).then(function(n){return n?W(k,A,x,v,c):S(k,A,x,v,y)}),p)}}),Z6=G0((l)=>{l.pbkdf2=I7(),l.pbkdf2Sync=J6()}),P6=G0((l)=>{l.readUInt32BE=function(F,S){var G=F[0+S]<<24|F[1+S]<<16|F[2+S]<<8|F[3+S];return G>>>0},l.writeUInt32BE=function(F,S,G){F[0+G]=S>>>24,F[1+G]=S>>>16&255,F[2+G]=S>>>8&255,F[3+G]=S&255},l.ip=function(F,S,G,U){for(var I=0,V=0,z=6;z>=0;z-=2){for(var j=0;j<=24;j+=8)I<<=1,I|=S>>>j+z&1;for(var j=0;j<=24;j+=8)I<<=1,I|=F>>>j+z&1}for(var z=6;z>=0;z-=2){for(var j=1;j<=25;j+=8)V<<=1,V|=S>>>j+z&1;for(var j=1;j<=25;j+=8)V<<=1,V|=F>>>j+z&1}G[U+0]=I>>>0,G[U+1]=V>>>0},l.rip=function(F,S,G,U){for(var I=0,V=0,z=0;z<4;z++)for(var j=24;j>=0;j-=8)I<<=1,I|=S>>>j+z&1,I<<=1,I|=F>>>j+z&1;for(var z=4;z<8;z++)for(var j=24;j>=0;j-=8)V<<=1,V|=S>>>j+z&1,V<<=1,V|=F>>>j+z&1;G[U+0]=I>>>0,G[U+1]=V>>>0},l.pc1=function(F,S,G,U){for(var I=0,V=0,z=7;z>=5;z--){for(var j=0;j<=24;j+=8)I<<=1,I|=S>>j+z&1;for(var j=0;j<=24;j+=8)I<<=1,I|=F>>j+z&1}for(var j=0;j<=24;j+=8)I<<=1,I|=S>>j+z&1;for(var z=1;z<=3;z++){for(var j=0;j<=24;j+=8)V<<=1,V|=S>>j+z&1;for(var j=0;j<=24;j+=8)V<<=1,V|=F>>j+z&1}for(var j=0;j<=24;j+=8)V<<=1,V|=F>>j+z&1;G[U+0]=I>>>0,G[U+1]=V>>>0},l.r28shl=function(F,S){return F<<S&268435455|F>>>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(F,S,G,U){for(var I=0,V=0,z=g.length>>>1,j=0;j<z;j++)I<<=1,I|=F>>>g[j]&1;for(var j=z;j<g.length;j++)V<<=1,V|=S>>>g[j]&1;G[U+0]=I>>>0,G[U+1]=V>>>0},l.expand=function(F,S,G){var U=0,I=0;U=(F&1)<<5|F>>>27;for(var V=23;V>=15;V-=4)U<<=6,U|=F>>>V&63;for(var V=11;V>=3;V-=4)I|=F>>>V&63,I<<=6;I|=(F&31)<<1|F>>>31,S[G+0]=U>>>0,S[G+1]=I>>>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(F,S){for(var G=0,U=0;U<4;U++){var I=F>>>18-U*6&63,V=E[U*64+I];G<<=4,G|=V}for(var U=0;U<4;U++){var I=S>>>18-U*6&63,V=E[256+U*64+I];G<<=4,G|=V}return G>>>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(F){for(var S=0,G=0;G<M.length;G++)S<<=1,S|=F>>>M[G]&1;return S>>>0},l.padSplit=function(F,S,G){for(var U=F.toString(2);U.length<S;)U="0"+U;for(var I=[],V=0;V<S;V+=G)I.push(U.slice(V,V+G));return I.join(" ")}}),V5=G0((l,g)=>{g.exports=E;function E(M,F){if(!M)throw new Error(F||"Assertion failed")}E.equal=function(M,F,S){if(M!=F)throw new Error(S||"Assertion failed: "+M+" != "+F)}}),L9=G0((l,g)=>{var E=V5();function M(F){this.options=F,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(F){return F.length===0?[]:this.type==="decrypt"?this._updateDecrypt(F):this._updateEncrypt(F)},M.prototype._buffer=function(F,S){for(var G=Math.min(this.buffer.length-this.bufferOff,F.length-S),U=0;U<G;U++)this.buffer[this.bufferOff+U]=F[S+U];return this.bufferOff+=G,G},M.prototype._flushBuffer=function(F,S){return this._update(this.buffer,0,F,S),this.bufferOff=0,this.blockSize},M.prototype._updateEncrypt=function(F){var S=0,G=0,U=(this.bufferOff+F.length)/this.blockSize|0,I=new Array(U*this.blockSize);this.bufferOff!==0&&(S+=this._buffer(F,S),this.bufferOff===this.buffer.length&&(G+=this._flushBuffer(I,G)));for(var V=F.length-(F.length-S)%this.blockSize;S<V;S+=this.blockSize)this._update(F,S,I,G),G+=this.blockSize;for(;S<F.length;S++,this.bufferOff++)this.buffer[this.bufferOff]=F[S];return I},M.prototype._updateDecrypt=function(F){for(var S=0,G=0,U=Math.ceil((this.bufferOff+F.length)/this.blockSize)-1,I=new Array(U*this.blockSize);U>0;U--)S+=this._buffer(F,S),G+=this._flushBuffer(I,G);return S+=this._buffer(F,S),I},M.prototype.final=function(F){var S;F&&(S=this.update(F));var G;return this.type==="encrypt"?G=this._finalEncrypt():G=this._finalDecrypt(),S?S.concat(G):G},M.prototype._pad=function(F,S){if(S===0)return!1;for(;S<F.length;)F[S++]=0;return!0},M.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var F=new Array(this.blockSize);return this._update(this.buffer,0,F,0),F},M.prototype._unpad=function(F){return F},M.prototype._finalDecrypt=function(){E.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var F=new Array(this.blockSize);return this._flushBuffer(F,0),this._unpad(F)}}),j6=G0((l,g)=>{var E=V5(),M=p0(),F=P6(),S=L9();function G(){this.tmp=new Array(2),this.keys=null}function U(V){S.call(this,V);var z=new G;this._desState=z,this.deriveKeys(z,V.key)}M(U,S),g.exports=U,U.create=function(V){return new U(V)};var I=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];U.prototype.deriveKeys=function(V,z){V.keys=new Array(32),E.equal(z.length,this.blockSize,"Invalid key length");var j=F.readUInt32BE(z,0),O=F.readUInt32BE(z,4);F.pc1(j,O,V.tmp,0),j=V.tmp[0],O=V.tmp[1];for(var N=0;N<V.keys.length;N+=2){var W=I[N>>>1];j=F.r28shl(j,W),O=F.r28shl(O,W),F.pc2(j,O,V.keys,N)}},U.prototype._update=function(V,z,j,O){var N=this._desState,W=F.readUInt32BE(V,z),D=F.readUInt32BE(V,z+4);F.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],F.writeUInt32BE(j,W,O),F.writeUInt32BE(j,D,O+4)},U.prototype._pad=function(V,z){for(var j=V.length-z,O=z;O<V.length;O++)V[O]=j;return!0},U.prototype._unpad=function(V){for(var z=V[V.length-1],j=V.length-z;j<V.length;j++)E.equal(V[j],z);return V.slice(0,V.length-z)},U.prototype._encrypt=function(V,z,j,O,N){for(var W=z,D=j,k=0;k<V.keys.length;k+=2){var A=V.keys[k],x=V.keys[k+1];F.expand(D,V.tmp,0),A^=V.tmp[0],x^=V.tmp[1];var v=F.substitute(A,x),y=F.permute(v),p=D;D=(W^y)>>>0,W=p}F.rip(D,W,O,N)},U.prototype._decrypt=function(V,z,j,O,N){for(var W=j,D=z,k=V.keys.length-2;k>=0;k-=2){var A=V.keys[k],x=V.keys[k+1];F.expand(W,V.tmp,0),A^=V.tmp[0],x^=V.tmp[1];var v=F.substitute(A,x),y=F.permute(v),p=W;W=(D^y)>>>0,D=p}F.rip(W,D,O,N)}}),k7=G0((l)=>{var g=V5(),E=p0(),M={};function F(G){g.equal(G.length,8,"Invalid IV length"),this.iv=new Array(8);for(var U=0;U<this.iv.length;U++)this.iv[U]=G[U]}function S(G){function U(j){G.call(this,j),this._cbcInit()}E(U,G);for(var I=Object.keys(M),V=0;V<I.length;V++){var z=I[V];U.prototype[z]=M[z]}return U.create=function(j){return new U(j)},U}l.instantiate=S,M._cbcInit=function(){var G=new F(this.options.iv);this._cbcState=G},M._update=function(G,U,I,V){var z=this._cbcState,j=this.constructor.super_.prototype,O=z.iv;if(this.type==="encrypt"){for(var N=0;N<this.blockSize;N++)O[N]^=G[U+N];j._update.call(this,O,0,I,V);for(var N=0;N<this.blockSize;N++)O[N]=I[V+N]}else{j._update.call(this,G,U,I,V);for(var N=0;N<this.blockSize;N++)I[V+N]^=O[N];for(var N=0;N<this.blockSize;N++)O[N]=G[U+N]}}}),q7=G0((l,g)=>{var E=V5(),M=p0(),F=L9(),S=j6();function G(I,V){E.equal(V.length,24,"Invalid key length");var z=V.slice(0,8),j=V.slice(8,16),O=V.slice(16,24);I==="encrypt"?this.ciphers=[S.create({type:"encrypt",key:z}),S.create({type:"decrypt",key:j}),S.create({type:"encrypt",key:O})]:this.ciphers=[S.create({type:"decrypt",key:O}),S.create({type:"encrypt",key:j}),S.create({type:"decrypt",key:z})]}function U(I){F.call(this,I);var V=new G(this.type,this.options.key);this._edeState=V}M(U,F),g.exports=U,U.create=function(I){return new U(I)},U.prototype._update=function(I,V,z,j){var O=this._edeState;O.ciphers[0]._update(I,V,z,j),O.ciphers[1]._update(z,j,z,j),O.ciphers[2]._update(z,j,z,j)},U.prototype._pad=S.prototype._pad,U.prototype._unpad=S.prototype._unpad}),B7=G0((l)=>{l.utils=P6(),l.Cipher=L9(),l.DES=j6(),l.CBC=k7(),l.EDE=q7()}),R7=G0((l,g)=>{var E=q5(),M=B7(),F=p0(),S=d0().Buffer,G={"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};G.des=G["des-cbc"],G.des3=G["des-ede3-cbc"],g.exports=U,F(U,E);function U(I){E.call(this);var V=I.mode.toLowerCase(),z=G[V],j;I.decrypt?j="decrypt":j="encrypt";var O=I.key;S.isBuffer(O)||(O=S.from(O)),(V==="des-ede"||V==="des-ede-cbc")&&(O=S.concat([O,O.slice(0,8)]));var N=I.iv;S.isBuffer(N)||(N=S.from(N)),this._des=z.create({key:O,iv:N,type:j})}U.prototype._update=function(I){return S.from(this._des.update(I))},U.prototype._final=function(){return S.from(this._des.final())}}),E7=G0((l)=>{l.encrypt=function(g,E){return g._cipher.encryptBlock(E)},l.decrypt=function(g,E){return g._cipher.decryptBlock(E)}}),u5=G0((l,g)=>{g.exports=function(E,M){for(var F=Math.min(E.length,M.length),S=new Buffer(F),G=0;G<F;++G)S[G]=E[G]^M[G];return S}}),S7=G0((l)=>{var g=u5();l.encrypt=function(E,M){var F=g(M,E._prev);return E._prev=E._cipher.encryptBlock(F),E._prev},l.decrypt=function(E,M){var F=E._prev;E._prev=M;var S=E._cipher.decryptBlock(M);return g(S,F)}}),x7=G0((l)=>{var g=d0().Buffer,E=u5();function M(F,S,G){var U=S.length,I=E(S,F._cache);return F._cache=F._cache.slice(U),F._prev=g.concat([F._prev,G?S:I]),I}l.encrypt=function(F,S,G){for(var U=g.allocUnsafe(0),I;S.length;)if(F._cache.length===0&&(F._cache=F._cipher.encryptBlock(F._prev),F._prev=g.allocUnsafe(0)),F._cache.length<=S.length)I=F._cache.length,U=g.concat([U,M(F,S.slice(0,I),G)]),S=S.slice(I);else{U=g.concat([U,M(F,S,G)]);break}return U}}),A7=G0((l)=>{var g=d0().Buffer;function E(M,F,S){var G=M._cipher.encryptBlock(M._prev),U=G[0]^F;return M._prev=g.concat([M._prev.slice(1),g.from([S?F:U])]),U}l.encrypt=function(M,F,S){for(var G=F.length,U=g.allocUnsafe(G),I=-1;++I<G;)U[I]=E(M,F[I],S);return U}}),v7=G0((l)=>{var g=d0().Buffer;function E(F,S,G){for(var U,I=-1,V=8,z=0,j,O;++I<V;)U=F._cipher.encryptBlock(F._prev),j=S&1<<7-I?128:0,O=U[0]^j,z+=(O&128)>>I%8,F._prev=M(F._prev,G?j:O);return z}function M(F,S){var G=F.length,U=-1,I=g.allocUnsafe(F.length);for(F=g.concat([F,g.from([S])]);++U<G;)I[U]=F[U]<<1|F[U+1]>>7;return I}l.encrypt=function(F,S,G){for(var U=S.length,I=g.allocUnsafe(U),V=-1;++V<U;)I[V]=E(F,S[V],G);return I}}),M7=G0((l)=>{var g=u5();function E(M){return M._prev=M._cipher.encryptBlock(M._prev),M._prev}l.encrypt=function(M,F){for(;M._cache.length<F.length;)M._cache=Buffer.concat([M._cache,E(M)]);var S=M._cache.slice(0,F.length);return M._cache=M._cache.slice(F.length),g(F,S)}}),F6=G0((l,g)=>{function E(M){for(var F=M.length,S;F--;)if(S=M.readUInt8(F),S===255)M.writeUInt8(0,F);else{S++,M.writeUInt8(S,F);break}}g.exports=E}),p9=G0((l)=>{var g=u5(),E=d0().Buffer,M=F6();function F(G){var U=G._cipher.encryptBlockRaw(G._prev);return M(G._prev),U}var S=16;l.encrypt=function(G,U){var I=Math.ceil(U.length/S),V=G._cache.length;G._cache=E.concat([G._cache,E.allocUnsafe(I*S)]);for(var z=0;z<I;z++){var j=F(G),O=V+z*S;G._cache.writeUInt32BE(j[0],O+0),G._cache.writeUInt32BE(j[1],O+4),G._cache.writeUInt32BE(j[2],O+8),G._cache.writeUInt32BE(j[3],O+12)}var N=G._cache.slice(0,U.length);return G._cache=G._cache.slice(U.length),g(U,N)}}),U6=G0((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=G0((l,g)=>{var E={ECB:E7(),CBC:S7(),CFB:x7(),CFB8:A7(),CFB1:v7(),OFB:M7(),CTR:p9(),GCM:p9()},M=U6();for(F in M)M[F].module=E[M[F].mode];var F;g.exports=M}),K9=G0((l,g)=>{var E=d0().Buffer;function M(V){E.isBuffer(V)||(V=E.from(V));for(var z=V.length/4|0,j=new Array(z),O=0;O<z;O++)j[O]=V.readUInt32BE(O*4);return j}function F(V){for(var z=0;z<V.length;V++)V[z]=0}function S(V,z,j,O,N){for(var W=j[0],D=j[1],k=j[2],A=j[3],x=V[0]^z[0],v=V[1]^z[1],y=V[2]^z[2],p=V[3]^z[3],c,n,i,H0,a=4,Z0=1;Z0<N;Z0++)c=W[x>>>24]^D[v>>>16&255]^k[y>>>8&255]^A[p&255]^z[a++],n=W[v>>>24]^D[y>>>16&255]^k[p>>>8&255]^A[x&255]^z[a++],i=W[y>>>24]^D[p>>>16&255]^k[x>>>8&255]^A[v&255]^z[a++],H0=W[p>>>24]^D[x>>>16&255]^k[v>>>8&255]^A[y&255]^z[a++],x=c,v=n,y=i,p=H0;return c=(O[x>>>24]<<24|O[v>>>16&255]<<16|O[y>>>8&255]<<8|O[p&255])^z[a++],n=(O[v>>>24]<<24|O[y>>>16&255]<<16|O[p>>>8&255]<<8|O[x&255])^z[a++],i=(O[y>>>24]<<24|O[p>>>16&255]<<16|O[x>>>8&255]<<8|O[v&255])^z[a++],H0=(O[p>>>24]<<24|O[x>>>16&255]<<16|O[v>>>8&255]<<8|O[y&255])^z[a++],c=c>>>0,n=n>>>0,i=i>>>0,H0=H0>>>0,[c,n,i,H0]}var G=[0,1,2,4,8,16,32,64,128,27,54],U=function(){for(var V=new Array(256),z=0;z<256;z++)z<128?V[z]=z<<1:V[z]=z<<1^283;for(var j=[],O=[],N=[[],[],[],[]],W=[[],[],[],[]],D=0,k=0,A=0;A<256;++A){var x=k^k<<1^k<<2^k<<3^k<<4;x=x>>>8^x&255^99,j[D]=x,O[x]=D;var v=V[D],y=V[v],p=V[y],c=V[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^v*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=k=1:(D=v^V[V[V[p^v]]],k^=V[V[k]])}return{SBOX:j,INV_SBOX:O,SUB_MIX:N,INV_SUB_MIX:W}}();function I(V){this._key=M(V),this._reset()}I.blockSize=16,I.keySize=32,I.prototype.blockSize=I.blockSize,I.prototype.keySize=I.keySize,I.prototype._reset=function(){for(var V=this._key,z=V.length,j=z+6,O=(j+1)*4,N=[],W=0;W<z;W++)N[W]=V[W];for(W=z;W<O;W++){var D=N[W-1];W%z===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^=G[W/z|0]<<24):z>6&&W%z===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-z]^D}for(var k=[],A=0;A<O;A++){var x=O-A,v=N[x-(A%4?0:4)];A<4||x<=4?k[A]=v:k[A]=U.INV_SUB_MIX[0][U.SBOX[v>>>24]]^U.INV_SUB_MIX[1][U.SBOX[v>>>16&255]]^U.INV_SUB_MIX[2][U.SBOX[v>>>8&255]]^U.INV_SUB_MIX[3][U.SBOX[v&255]]}this._nRounds=j,this._keySchedule=N,this._invKeySchedule=k},I.prototype.encryptBlockRaw=function(V){return V=M(V),S(V,this._keySchedule,U.SUB_MIX,U.SBOX,this._nRounds)},I.prototype.encryptBlock=function(V){var z=this.encryptBlockRaw(V),j=E.allocUnsafe(16);return j.writeUInt32BE(z[0],0),j.writeUInt32BE(z[1],4),j.writeUInt32BE(z[2],8),j.writeUInt32BE(z[3],12),j},I.prototype.decryptBlock=function(V){V=M(V);var z=V[1];V[1]=V[3],V[3]=z;var j=S(V,this._invKeySchedule,U.INV_SUB_MIX,U.INV_SBOX,this._nRounds),O=E.allocUnsafe(16);return O.writeUInt32BE(j[0],0),O.writeUInt32BE(j[3],4),O.writeUInt32BE(j[2],8),O.writeUInt32BE(j[1],12),O},I.prototype.scrub=function(){F(this._keySchedule),F(this._invKeySchedule),F(this._key)},g.exports.AES=I}),_7=G0((l,g)=>{var E=d0().Buffer,M=E.alloc(16,0);function F(U){return[U.readUInt32BE(0),U.readUInt32BE(4),U.readUInt32BE(8),U.readUInt32BE(12)]}function S(U){var I=E.allocUnsafe(16);return I.writeUInt32BE(U[0]>>>0,0),I.writeUInt32BE(U[1]>>>0,4),I.writeUInt32BE(U[2]>>>0,8),I.writeUInt32BE(U[3]>>>0,12),I}function G(U){this.h=U,this.state=E.alloc(16,0),this.cache=E.allocUnsafe(0)}G.prototype.ghash=function(U){for(var I=-1;++I<U.length;)this.state[I]^=U[I];this._multiply()},G.prototype._multiply=function(){for(var U=F(this.h),I=[0,0,0,0],V,z,j,O=-1;++O<128;){for(z=(this.state[~~(O/8)]&1<<7-O%8)!==0,z&&(I[0]^=U[0],I[1]^=U[1],I[2]^=U[2],I[3]^=U[3]),j=(U[3]&1)!==0,V=3;V>0;V--)U[V]=U[V]>>>1|(U[V-1]&1)<<31;U[0]=U[0]>>>1,j&&(U[0]=U[0]^-520093696)}this.state=S(I)},G.prototype.update=function(U){this.cache=E.concat([this.cache,U]);for(var I;this.cache.length>=16;)I=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(I)},G.prototype.final=function(U,I){return this.cache.length&&this.ghash(E.concat([this.cache,M],16)),this.ghash(S([0,U,0,I])),this.state},g.exports=G}),W6=G0((l,g)=>{var E=K9(),M=d0().Buffer,F=q5(),S=p0(),G=_7(),U=u5(),I=F6();function V(O,N){var W=0;O.length!==N.length&&W++;for(var D=Math.min(O.length,N.length),k=0;k<D;++k)W+=O[k]^N[k];return W}function z(O,N,W){if(N.length===12)return O._finID=M.concat([N,M.from([0,0,0,1])]),M.concat([N,M.from([0,0,0,2])]);var D=new G(W),k=N.length,A=k%16;D.update(N),A&&(A=16-A,D.update(M.alloc(A,0))),D.update(M.alloc(8,0));var x=k*8,v=M.alloc(8);v.writeUIntBE(x,0,8),D.update(v),O._finID=D.state;var y=M.from(O._finID);return I(y),y}function j(O,N,W,D){F.call(this);var k=M.alloc(4,0);this._cipher=new E.AES(N);var A=this._cipher.encryptBlock(k);this._ghash=new G(A),W=z(this,W,A),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=O,this._authTag=null,this._called=!1}S(j,F),j.prototype._update=function(O){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,O);return this._decrypt?this._ghash.update(O):this._ghash.update(W),this._len+=O.length,W},j.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var O=U(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&V(O,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=O,this._cipher.scrub()},j.prototype.getAuthTag=function(){if(this._decrypt||!M.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},j.prototype.setAuthTag=function(O){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=O},j.prototype.setAAD=function(O){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(O),this._alen+=O.length},g.exports=j}),z6=G0((l,g)=>{var E=K9(),M=d0().Buffer,F=q5(),S=p0();function G(U,I,V,z){F.call(this),this._cipher=new E.AES(I),this._prev=M.from(V),this._cache=M.allocUnsafe(0),this._secCache=M.allocUnsafe(0),this._decrypt=z,this._mode=U}S(G,F),G.prototype._update=function(U){return this._mode.encrypt(this,U,this._decrypt)},G.prototype._final=function(){this._cipher.scrub()},g.exports=G}),C9=G0((l,g)=>{var E=d0().Buffer,M=F9();function F(S,G,U,I){if(E.isBuffer(S)||(S=E.from(S,"binary")),G&&(E.isBuffer(G)||(G=E.from(G,"binary")),G.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var V=U/8,z=E.alloc(V),j=E.alloc(I||0),O=E.alloc(0);V>0||I>0;){var N=new M;N.update(O),N.update(S),G&&N.update(G),O=N.digest();var W=0;if(V>0){var D=z.length-V;W=Math.min(V,O.length),O.copy(z,D,0,W),V-=W}if(W<O.length&&I>0){var k=j.length-I,A=Math.min(I,O.length-W);O.copy(j,k,W,W+A),I-=A}}return O.fill(0),{key:z,iv:j}}g.exports=F}),w7=G0((l)=>{var g=I9(),E=W6(),M=d0().Buffer,F=z6(),S=q5(),G=K9(),U=C9(),I=p0();function V(W,D,k){S.call(this),this._cache=new j,this._cipher=new G.AES(D),this._prev=M.from(k),this._mode=W,this._autopadding=!0}I(V,S),V.prototype._update=function(W){this._cache.add(W);for(var D,k,A=[];D=this._cache.get();)k=this._mode.encrypt(this,D),A.push(k);return M.concat(A)};var z=M.alloc(16,16);V.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(z))throw this._cipher.scrub(),new Error("data not multiple of block length")},V.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function j(){this.cache=M.allocUnsafe(0)}j.prototype.add=function(W){this.cache=M.concat([this.cache,W])},j.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},j.prototype.flush=function(){for(var W=16-this.cache.length,D=M.allocUnsafe(W),k=-1;++k<W;)D.writeUInt8(W,k);return M.concat([this.cache,D])};function O(W,D,k){var A=g[W.toLowerCase()];if(!A)throw new TypeError("invalid suite type");if(typeof D=="string"&&(D=M.from(D)),D.length!==A.key/8)throw new TypeError("invalid key length "+D.length);if(typeof k=="string"&&(k=M.from(k)),A.mode!=="GCM"&&k.length!==A.iv)throw new TypeError("invalid iv length "+k.length);return A.type==="stream"?new F(A.module,D,k):A.type==="auth"?new E(A.module,D,k):new V(A.module,D,k)}function N(W,D){var k=g[W.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var A=U(D,!1,k.key,k.iv);return O(W,A.key,A.iv)}l.createCipheriv=O,l.createCipher=N}),y7=G0((l)=>{var g=W6(),E=d0().Buffer,M=I9(),F=z6(),S=q5(),G=K9(),U=C9(),I=p0();function V(W,D,k){S.call(this),this._cache=new z,this._last=void 0,this._cipher=new G.AES(D),this._prev=E.from(k),this._mode=W,this._autopadding=!0}I(V,S),V.prototype._update=function(W){this._cache.add(W);for(var D,k,A=[];D=this._cache.get(this._autopadding);)k=this._mode.decrypt(this,D),A.push(k);return E.concat(A)},V.prototype._final=function(){var W=this._cache.flush();if(this._autopadding)return j(this._mode.decrypt(this,W));if(W)throw new Error("data not multiple of block length")},V.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function z(){this.cache=E.allocUnsafe(0)}z.prototype.add=function(W){this.cache=E.concat([this.cache,W])},z.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},z.prototype.flush=function(){if(this.cache.length)return this.cache};function j(W){var D=W[15];if(D<1||D>16)throw new Error("unable to decrypt data");for(var k=-1;++k<D;)if(W[k+(16-D)]!==D)throw new Error("unable to decrypt data");if(D!==16)return W.slice(0,16-D)}function O(W,D,k){var A=M[W.toLowerCase()];if(!A)throw new TypeError("invalid suite type");if(typeof k=="string"&&(k=E.from(k)),A.mode!=="GCM"&&k.length!==A.iv)throw new TypeError("invalid iv length "+k.length);if(typeof D=="string"&&(D=E.from(D)),D.length!==A.key/8)throw new TypeError("invalid key length "+D.length);return A.type==="stream"?new F(A.module,D,k,!0):A.type==="auth"?new g(A.module,D,k,!0):new V(A.module,D,k)}function N(W,D){var k=M[W.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var A=U(D,!1,k.key,k.iv);return O(W,A.key,A.iv)}l.createDecipher=N,l.createDecipheriv=O}),k9=G0((l)=>{var g=w7(),E=y7(),M=U6();function F(){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=F}),g7=G0((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}}),m7=G0((l)=>{var g=R7(),E=k9(),M=I9(),F=g7(),S=C9();function G(j,O){j=j.toLowerCase();var N,W;if(M[j])N=M[j].key,W=M[j].iv;else if(F[j])N=F[j].key*8,W=F[j].iv;else throw new TypeError("invalid suite type");var D=S(O,!1,N,W);return I(j,D.key,D.iv)}function U(j,O){j=j.toLowerCase();var N,W;if(M[j])N=M[j].key,W=M[j].iv;else if(F[j])N=F[j].key*8,W=F[j].iv;else throw new TypeError("invalid suite type");var D=S(O,!1,N,W);return V(j,D.key,D.iv)}function I(j,O,N){if(j=j.toLowerCase(),M[j])return E.createCipheriv(j,O,N);if(F[j])return new g({key:O,iv:N,mode:j});throw new TypeError("invalid suite type")}function V(j,O,N){if(j=j.toLowerCase(),M[j])return E.createDecipheriv(j,O,N);if(F[j])return new g({key:O,iv:N,mode:j,decrypt:!0});throw new TypeError("invalid suite type")}function z(){return Object.keys(F).concat(E.getCiphers())}l.createCipher=l.Cipher=G,l.createCipheriv=l.Cipheriv=I,l.createDecipher=l.Decipher=U,l.createDecipheriv=l.Decipheriv=V,l.listCiphers=l.getCiphers=z}),M5=G0(()=>{}),O6=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,Z,P=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)Z=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)Z=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function V(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,Z=0,P;if(Y==="be")for(H=K.length-1;H>=X;H-=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8}this.strip()};function z(K,X,Y,H){for(var Q=0,Z=Math.min(K.length,Y),P=X;P<Z;P++){var $=K.charCodeAt(P)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var Z=K.length-Y,P=Z%H,$=Math.min(Z,Z-P)+Y,C=0,J=Y;J<$;J+=H)C=z(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(P!==0){var R=1;for(C=z(K,J,K.length,X),J=0;J<P;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var j=["","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"],O=[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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,Z=0;Z<this.length;Z++){var P=this.words[Z],$=((P<<H|Q)&16777215).toString(16);Q=P>>>24-H&16777215,Q!==0||Z!==this.length-1?Y=j[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,Z--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=O[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=j[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof U<"u"),this.toArrayLike(U,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var Z=X==="le",P=new K(Q),$,C,J=this.clone();if(Z){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[C]=$;for(;C<Q;C++)P[C]=0}else{for(C=0;C<Q-H;C++)P[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[Q-C-1]=$}return P},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function W(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,Z=0;Z<H.length;Z++)X=(Y.words[Z]|0)+(H.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;for(;Q!==0&&Z<Y.length;Z++)X=(Y.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var Z=0,P=0;P<Q.length;P++)X=(H.words[P]|0)-(Q.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;for(;Z!==0&&P<H.length;P++)X=(H.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;if(Z===0&&P<H.length&&H!==this)for(;P<H.length;P++)this.words[P]=H.words[P];return this.length=Math.max(this.length,P),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,Z=X.words[0]|0,P=Q*Z,$=P&67108863,C=P/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,Z=X.words[s]|0,P=Q*Z+L,R+=P/67108864|0,L=P&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,Z=Y.words,P=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,f=u>>>13,z0=H[3]|0,K0=z0&8191,Q0=z0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,W0=w0&8191,P0=w0>>>13,c0=H[8]|0,T=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,O0=Q[0]|0,Y0=O0&8191,j0=O0>>>13,b0=Q[1]|0,U0=b0&8191,F0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,V0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,Z5=Q[6]|0,B0=Z5&8191,R0=Z5>>>13,P5=Q[7]|0,E0=P5&8191,S0=P5>>>13,j5=Q[8]|0,x0=j5&8191,A0=j5>>>13,F5=Q[9]|0,v0=F5&8191,M0=F5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,j0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,j0);var Q5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,j0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,j0),$=$+Math.imul(L,U0)|0,C=C+Math.imul(L,F0)|0,C=C+Math.imul(_,U0)|0,J=J+Math.imul(_,F0)|0;var g0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,j0),C=C+Math.imul(f,Y0)|0,J=Math.imul(f,j0),$=$+Math.imul(r,U0)|0,C=C+Math.imul(r,F0)|0,C=C+Math.imul(X0,U0)|0,J=J+Math.imul(X0,F0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,j0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,j0),$=$+Math.imul(d,U0)|0,C=C+Math.imul(d,F0)|0,C=C+Math.imul(f,U0)|0,J=J+Math.imul(f,F0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,V0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,V0)|0;var h0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,j0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,j0),$=$+Math.imul(K0,U0)|0,C=C+Math.imul(K0,F0)|0,C=C+Math.imul(Q0,U0)|0,J=J+Math.imul(Q0,F0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(f,D0)|0,J=J+Math.imul(f,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,V0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,V0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,j0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,j0),$=$+Math.imul(q,U0)|0,C=C+Math.imul(q,F0)|0,C=C+Math.imul(m,U0)|0,J=J+Math.imul(m,F0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,V0)|0,C=C+Math.imul(f,T0)|0,J=J+Math.imul(f,V0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,j0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,j0),$=$+Math.imul(C0,U0)|0,C=C+Math.imul(C0,F0)|0,C=C+Math.imul(t,U0)|0,J=J+Math.imul(t,F0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,V0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,V0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(f,L0)|0,J=J+Math.imul(f,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(W0,Y0),C=Math.imul(W0,j0),C=C+Math.imul(P0,Y0)|0,J=Math.imul(P0,j0),$=$+Math.imul($0,U0)|0,C=C+Math.imul($0,F0)|0,C=C+Math.imul(J0,U0)|0,J=J+Math.imul(J0,F0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,V0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,V0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(f,k0)|0,J=J+Math.imul(f,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(T,Y0),C=Math.imul(T,j0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,j0),$=$+Math.imul(W0,U0)|0,C=C+Math.imul(W0,F0)|0,C=C+Math.imul(P0,U0)|0,J=J+Math.imul(P0,F0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,V0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,V0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(f,B0)|0,J=J+Math.imul(f,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,j0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,j0),$=$+Math.imul(T,U0)|0,C=C+Math.imul(T,F0)|0,C=C+Math.imul(B,U0)|0,J=J+Math.imul(B,F0)|0,$=$+Math.imul(W0,D0)|0,C=C+Math.imul(W0,N0)|0,C=C+Math.imul(P0,D0)|0,J=J+Math.imul(P0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,V0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,V0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(f,E0)|0,J=J+Math.imul(f,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,U0),C=Math.imul(h,F0),C=C+Math.imul(o,U0)|0,J=Math.imul(o,F0),$=$+Math.imul(T,D0)|0,C=C+Math.imul(T,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(W0,T0)|0,C=C+Math.imul(W0,V0)|0,C=C+Math.imul(P0,T0)|0,J=J+Math.imul(P0,V0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(f,x0)|0,J=J+Math.imul(f,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(T,T0)|0,C=C+Math.imul(T,V0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,V0)|0,$=$+Math.imul(W0,L0)|0,C=C+Math.imul(W0,I0)|0,C=C+Math.imul(P0,L0)|0,J=J+Math.imul(P0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(f,v0)|0,J=J+Math.imul(f,M0)|0;var i0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,V0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,V0),$=$+Math.imul(T,L0)|0,C=C+Math.imul(T,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(W0,k0)|0,C=C+Math.imul(W0,q0)|0,C=C+Math.imul(P0,k0)|0,J=J+Math.imul(P0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(T,k0)|0,C=C+Math.imul(T,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(W0,B0)|0,C=C+Math.imul(W0,R0)|0,C=C+Math.imul(P0,B0)|0,J=J+Math.imul(P0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(T,B0)|0,C=C+Math.imul(T,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(W0,E0)|0,C=C+Math.imul(W0,S0)|0,C=C+Math.imul(P0,E0)|0,J=J+Math.imul(P0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(T,E0)|0,C=C+Math.imul(T,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(W0,x0)|0,C=C+Math.imul(W0,A0)|0,C=C+Math.imul(P0,x0)|0,J=J+Math.imul(P0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(T,x0)|0,C=C+Math.imul(T,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(W0,v0)|0,C=C+Math.imul(W0,M0)|0,C=C+Math.imul(P0,v0)|0,J=J+Math.imul(P0,M0)|0;var X5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(T,v0)|0,C=C+Math.imul(T,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(P+$|0)+((C&8191)<<13)|0;return P=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Z[0]=Q5,Z[1]=g0,Z[2]=m0,Z[3]=h0,Z[4]=u0,Z[5]=o0,Z[6]=s0,Z[7]=a0,Z[8]=f0,Z[9]=n0,Z[10]=r0,Z[11]=i0,Z[12]=t0,Z[13]=e0,Z[14]=K5,Z[15]=C5,Z[16]=X5,Z[17]=H5,Z[18]=Y5,P!==0&&(Z[19]=P,Y.length++),Y};Math.imul||(k=D);function A(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,Z=0;Z<Y.length-1;Z++){var P=Q;Q=0;for(var $=H&67108863,C=Math.min(Z,X.length-1),J=Math.max(0,Z-K.length+1);J<=C;J++){var R=Z-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;P=P+(s/67108864|0)|0,r=r+$|0,$=r&67108863,P=P+(r>>>26)|0,Q+=P>>>26,P&=67108863}Y.words[Z]=$,H=P,P=Q}return H!==0?Y.words[Z]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new v;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=A(this,K,X):Y=x(this,K,X),Y};function v(K,X){this.x=K,this.y=X}v.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},v.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},v.prototype.permute=function(K,X,Y,H,Q,Z){for(var P=0;P<Z;P++)H[P]=X[K[P]],Q[P]=Y[K[P]]},v.prototype.transform=function(K,X,Y,H,Q,Z){this.permute(Z,K,X,Y,H,Q);for(var P=1;P<Q;P<<=1)for(var $=P<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<P;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+P],d=H[R+s+P],f=L*u-_*d;d=L*d+_*u,u=f,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+P]=r-u,H[R+s+P]=X0-d,s!==$&&(f=C*L-J*_,_=C*_+J*L,L=f)}},v.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},v.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},v.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},v.prototype.convert13b=function(K,X,Y,H){for(var Q=0,Z=0;Z<X;Z++)Q=Q+(K[Z]|0),Y[2*Z]=Q&8191,Q=Q>>>13,Y[2*Z+1]=Q&8191,Q=Q>>>13;for(Z=2*X;Z<H;++Z)Y[Z]=0;F(Q===0),F((Q&-8192)===0)},v.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},v.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),Z=this.stub(H),P=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,P,H),this.convert13b(X.words,X.length,J,H),this.transform(P,Z,$,C,H,Q),this.transform(J,Z,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,Z,H,Q),this.conjugate(_,Z,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=W(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var Z=0;for(Q=0;Q<this.length;Q++){var P=this.words[Q]&H,$=(this.words[Q]|0)-P<<X;this.words[Q]=$|Z,Z=P>>>26-X}Z&&(this.words[Q]=Z,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,Z=Math.min((K-Q)/26,this.length),P=67108863^67108863>>>Q<<Q,$=Y;if(H-=Z,H=Math.max(0,H),$){for(var C=0;C<Z;C++)$.words[C]=this.words[C];$.length=Z}if(Z!==0)if(this.length>Z)for(this.length-=Z,C=0;C<this.length;C++)this.words[C]=this.words[C+Z];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&P}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var Z,P=0;for(Q=0;Q<K.length;Q++){Z=(this.words[Q+Y]|0)+P;var $=(K.words[Q]|0)*X;Z-=$&67108863,P=(Z>>26)-($/67108864|0),this.words[Q+Y]=Z&67108863}for(;Q<this.length-Y;Q++)Z=(this.words[Q+Y]|0)+P,P=Z>>26,this.words[Q+Y]=Z&67108863;if(P===0)return this.strip();for(F(P===-1),P=0,Q=0;Q<this.length;Q++)Z=-(this.words[Q]|0)+P,P=Z>>26,this.words[Q]=Z&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,Z=Q.words[Q.length-1]|0,P=this._countBits(Z);Y=26-P,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),Z=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/Z|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,Z;return this.negative!==0&&K.negative===0?(Z=this.neg().divmod(K,X),X!=="mod"&&(H=Z.div.neg()),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(Z=this.divmod(K.neg(),X),X!=="mod"&&(H=Z.div.neg()),{div:H,mod:Z.mod}):(this.negative&K.negative)!==0?(Z=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:Z.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),Z=Y.cmp(H);return Z<0||Q===1&&Z===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=new G(0),P=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(Z.isOdd()||P.isOdd())&&(Z.iadd(C),P.isub(J)),Z.iushrn(1),P.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Z),Q.isub(P)):(Y.isub(X),Z.isub(H),P.isub(Q))}return{a:Z,b:P,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var P=0,$=1;(X.words[0]&$)===0&&P<26;++P,$<<=1);if(P>0)for(X.iushrn(P);P-- >0;)H.isOdd()&&H.iadd(Z),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(Z),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var Z=X;X=Y,Y=Z}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,Z=Y;Q!==0&&Z<this.length;Z++){var P=this.words[Z]|0;P+=Q,Q=P>>>26,P&=67108863,this.words[Z]=P}return Q!==0&&(this.words[Z]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new a(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var Z=K.words[9];for(X.words[X.length++]=Z&Y,Q=10;Q<K.length;Q++){var P=K.words[Q]|0;K.words[Q-10]=(P&Y)<<4|Z>>>22,Z=P}Z>>>=22,K.words[Q-10]=Z,Z===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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function a(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}a.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},a.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.red,"red works only with red numbers")},a.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},a.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},a.prototype.add=function(K,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},a.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},a.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},a.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},a.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},a.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},a.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},a.prototype.isqr=function(K){return this.imul(K,K.clone())},a.prototype.sqr=function(K){return this.mul(K,K)},a.prototype.sqrt=function(K){if(K.isZero())return K.clone();var X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var Z=new G(1).toRed(this),P=Z.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(P)!==0;)C.redIAdd(P);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(Z)!==0;){for(var s=L,r=0;s.cmp(Z)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},a.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},a.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var Z=H[0],P=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(Z!==H[0]&&(Z=this.sqr(Z)),L===0&&P===0){$=0;continue}P<<=1,P|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(Z=this.mul(Z,H[P]),$=0,P=0)}C=26}return Z},a.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},a.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.mont=function(K){return new Z0(K)};function Z0(K){a.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Z0,a),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var X=this.imod(K.mul(this.rinv));return X.red=null,X},Z0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.mul=function(K,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.invm=function(K){var X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),p7=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,Z,P=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)Z=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)Z=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function V(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,Z=0,P;if(Y==="be")for(H=K.length-1;H>=X;H-=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8}this.strip()};function z(K,X,Y,H){for(var Q=0,Z=Math.min(K.length,Y),P=X;P<Z;P++){var $=K.charCodeAt(P)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var Z=K.length-Y,P=Z%H,$=Math.min(Z,Z-P)+Y,C=0,J=Y;J<$;J+=H)C=z(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(P!==0){var R=1;for(C=z(K,J,K.length,X),J=0;J<P;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var j=["","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"],O=[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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,Z=0;Z<this.length;Z++){var P=this.words[Z],$=((P<<H|Q)&16777215).toString(16);Q=P>>>24-H&16777215,Q!==0||Z!==this.length-1?Y=j[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,Z--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=O[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=j[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof U<"u"),this.toArrayLike(U,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var Z=X==="le",P=new K(Q),$,C,J=this.clone();if(Z){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[C]=$;for(;C<Q;C++)P[C]=0}else{for(C=0;C<Q-H;C++)P[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[Q-C-1]=$}return P},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function W(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,Z=0;Z<H.length;Z++)X=(Y.words[Z]|0)+(H.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;for(;Q!==0&&Z<Y.length;Z++)X=(Y.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var Z=0,P=0;P<Q.length;P++)X=(H.words[P]|0)-(Q.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;for(;Z!==0&&P<H.length;P++)X=(H.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;if(Z===0&&P<H.length&&H!==this)for(;P<H.length;P++)this.words[P]=H.words[P];return this.length=Math.max(this.length,P),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,Z=X.words[0]|0,P=Q*Z,$=P&67108863,C=P/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,Z=X.words[s]|0,P=Q*Z+L,R+=P/67108864|0,L=P&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,Z=Y.words,P=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,f=u>>>13,z0=H[3]|0,K0=z0&8191,Q0=z0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,W0=w0&8191,P0=w0>>>13,c0=H[8]|0,T=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,O0=Q[0]|0,Y0=O0&8191,j0=O0>>>13,b0=Q[1]|0,U0=b0&8191,F0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,V0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,Z5=Q[6]|0,B0=Z5&8191,R0=Z5>>>13,P5=Q[7]|0,E0=P5&8191,S0=P5>>>13,j5=Q[8]|0,x0=j5&8191,A0=j5>>>13,F5=Q[9]|0,v0=F5&8191,M0=F5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,j0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,j0);var Q5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,j0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,j0),$=$+Math.imul(L,U0)|0,C=C+Math.imul(L,F0)|0,C=C+Math.imul(_,U0)|0,J=J+Math.imul(_,F0)|0;var g0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,j0),C=C+Math.imul(f,Y0)|0,J=Math.imul(f,j0),$=$+Math.imul(r,U0)|0,C=C+Math.imul(r,F0)|0,C=C+Math.imul(X0,U0)|0,J=J+Math.imul(X0,F0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,j0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,j0),$=$+Math.imul(d,U0)|0,C=C+Math.imul(d,F0)|0,C=C+Math.imul(f,U0)|0,J=J+Math.imul(f,F0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,V0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,V0)|0;var h0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,j0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,j0),$=$+Math.imul(K0,U0)|0,C=C+Math.imul(K0,F0)|0,C=C+Math.imul(Q0,U0)|0,J=J+Math.imul(Q0,F0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(f,D0)|0,J=J+Math.imul(f,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,V0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,V0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,j0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,j0),$=$+Math.imul(q,U0)|0,C=C+Math.imul(q,F0)|0,C=C+Math.imul(m,U0)|0,J=J+Math.imul(m,F0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,V0)|0,C=C+Math.imul(f,T0)|0,J=J+Math.imul(f,V0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,j0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,j0),$=$+Math.imul(C0,U0)|0,C=C+Math.imul(C0,F0)|0,C=C+Math.imul(t,U0)|0,J=J+Math.imul(t,F0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,V0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,V0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(f,L0)|0,J=J+Math.imul(f,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(W0,Y0),C=Math.imul(W0,j0),C=C+Math.imul(P0,Y0)|0,J=Math.imul(P0,j0),$=$+Math.imul($0,U0)|0,C=C+Math.imul($0,F0)|0,C=C+Math.imul(J0,U0)|0,J=J+Math.imul(J0,F0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,V0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,V0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(f,k0)|0,J=J+Math.imul(f,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(T,Y0),C=Math.imul(T,j0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,j0),$=$+Math.imul(W0,U0)|0,C=C+Math.imul(W0,F0)|0,C=C+Math.imul(P0,U0)|0,J=J+Math.imul(P0,F0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,V0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,V0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(f,B0)|0,J=J+Math.imul(f,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,j0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,j0),$=$+Math.imul(T,U0)|0,C=C+Math.imul(T,F0)|0,C=C+Math.imul(B,U0)|0,J=J+Math.imul(B,F0)|0,$=$+Math.imul(W0,D0)|0,C=C+Math.imul(W0,N0)|0,C=C+Math.imul(P0,D0)|0,J=J+Math.imul(P0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,V0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,V0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(f,E0)|0,J=J+Math.imul(f,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,U0),C=Math.imul(h,F0),C=C+Math.imul(o,U0)|0,J=Math.imul(o,F0),$=$+Math.imul(T,D0)|0,C=C+Math.imul(T,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(W0,T0)|0,C=C+Math.imul(W0,V0)|0,C=C+Math.imul(P0,T0)|0,J=J+Math.imul(P0,V0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(f,x0)|0,J=J+Math.imul(f,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(T,T0)|0,C=C+Math.imul(T,V0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,V0)|0,$=$+Math.imul(W0,L0)|0,C=C+Math.imul(W0,I0)|0,C=C+Math.imul(P0,L0)|0,J=J+Math.imul(P0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(f,v0)|0,J=J+Math.imul(f,M0)|0;var i0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,V0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,V0),$=$+Math.imul(T,L0)|0,C=C+Math.imul(T,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(W0,k0)|0,C=C+Math.imul(W0,q0)|0,C=C+Math.imul(P0,k0)|0,J=J+Math.imul(P0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(T,k0)|0,C=C+Math.imul(T,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(W0,B0)|0,C=C+Math.imul(W0,R0)|0,C=C+Math.imul(P0,B0)|0,J=J+Math.imul(P0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(T,B0)|0,C=C+Math.imul(T,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(W0,E0)|0,C=C+Math.imul(W0,S0)|0,C=C+Math.imul(P0,E0)|0,J=J+Math.imul(P0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(T,E0)|0,C=C+Math.imul(T,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(W0,x0)|0,C=C+Math.imul(W0,A0)|0,C=C+Math.imul(P0,x0)|0,J=J+Math.imul(P0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(T,x0)|0,C=C+Math.imul(T,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(W0,v0)|0,C=C+Math.imul(W0,M0)|0,C=C+Math.imul(P0,v0)|0,J=J+Math.imul(P0,M0)|0;var X5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(T,v0)|0,C=C+Math.imul(T,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(P+$|0)+((C&8191)<<13)|0;return P=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Z[0]=Q5,Z[1]=g0,Z[2]=m0,Z[3]=h0,Z[4]=u0,Z[5]=o0,Z[6]=s0,Z[7]=a0,Z[8]=f0,Z[9]=n0,Z[10]=r0,Z[11]=i0,Z[12]=t0,Z[13]=e0,Z[14]=K5,Z[15]=C5,Z[16]=X5,Z[17]=H5,Z[18]=Y5,P!==0&&(Z[19]=P,Y.length++),Y};Math.imul||(k=D);function A(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,Z=0;Z<Y.length-1;Z++){var P=Q;Q=0;for(var $=H&67108863,C=Math.min(Z,X.length-1),J=Math.max(0,Z-K.length+1);J<=C;J++){var R=Z-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;P=P+(s/67108864|0)|0,r=r+$|0,$=r&67108863,P=P+(r>>>26)|0,Q+=P>>>26,P&=67108863}Y.words[Z]=$,H=P,P=Q}return H!==0?Y.words[Z]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new v;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=A(this,K,X):Y=x(this,K,X),Y};function v(K,X){this.x=K,this.y=X}v.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},v.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},v.prototype.permute=function(K,X,Y,H,Q,Z){for(var P=0;P<Z;P++)H[P]=X[K[P]],Q[P]=Y[K[P]]},v.prototype.transform=function(K,X,Y,H,Q,Z){this.permute(Z,K,X,Y,H,Q);for(var P=1;P<Q;P<<=1)for(var $=P<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<P;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+P],d=H[R+s+P],f=L*u-_*d;d=L*d+_*u,u=f,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+P]=r-u,H[R+s+P]=X0-d,s!==$&&(f=C*L-J*_,_=C*_+J*L,L=f)}},v.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},v.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},v.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},v.prototype.convert13b=function(K,X,Y,H){for(var Q=0,Z=0;Z<X;Z++)Q=Q+(K[Z]|0),Y[2*Z]=Q&8191,Q=Q>>>13,Y[2*Z+1]=Q&8191,Q=Q>>>13;for(Z=2*X;Z<H;++Z)Y[Z]=0;F(Q===0),F((Q&-8192)===0)},v.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},v.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),Z=this.stub(H),P=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,P,H),this.convert13b(X.words,X.length,J,H),this.transform(P,Z,$,C,H,Q),this.transform(J,Z,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,Z,H,Q),this.conjugate(_,Z,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=W(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var Z=0;for(Q=0;Q<this.length;Q++){var P=this.words[Q]&H,$=(this.words[Q]|0)-P<<X;this.words[Q]=$|Z,Z=P>>>26-X}Z&&(this.words[Q]=Z,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,Z=Math.min((K-Q)/26,this.length),P=67108863^67108863>>>Q<<Q,$=Y;if(H-=Z,H=Math.max(0,H),$){for(var C=0;C<Z;C++)$.words[C]=this.words[C];$.length=Z}if(Z!==0)if(this.length>Z)for(this.length-=Z,C=0;C<this.length;C++)this.words[C]=this.words[C+Z];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&P}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var Z,P=0;for(Q=0;Q<K.length;Q++){Z=(this.words[Q+Y]|0)+P;var $=(K.words[Q]|0)*X;Z-=$&67108863,P=(Z>>26)-($/67108864|0),this.words[Q+Y]=Z&67108863}for(;Q<this.length-Y;Q++)Z=(this.words[Q+Y]|0)+P,P=Z>>26,this.words[Q+Y]=Z&67108863;if(P===0)return this.strip();for(F(P===-1),P=0,Q=0;Q<this.length;Q++)Z=-(this.words[Q]|0)+P,P=Z>>26,this.words[Q]=Z&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,Z=Q.words[Q.length-1]|0,P=this._countBits(Z);Y=26-P,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),Z=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/Z|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,Z;return this.negative!==0&&K.negative===0?(Z=this.neg().divmod(K,X),X!=="mod"&&(H=Z.div.neg()),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(Z=this.divmod(K.neg(),X),X!=="mod"&&(H=Z.div.neg()),{div:H,mod:Z.mod}):(this.negative&K.negative)!==0?(Z=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:Z.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),Z=Y.cmp(H);return Z<0||Q===1&&Z===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=new G(0),P=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(Z.isOdd()||P.isOdd())&&(Z.iadd(C),P.isub(J)),Z.iushrn(1),P.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Z),Q.isub(P)):(Y.isub(X),Z.isub(H),P.isub(Q))}return{a:Z,b:P,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var P=0,$=1;(X.words[0]&$)===0&&P<26;++P,$<<=1);if(P>0)for(X.iushrn(P);P-- >0;)H.isOdd()&&H.iadd(Z),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(Z),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var Z=X;X=Y,Y=Z}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,Z=Y;Q!==0&&Z<this.length;Z++){var P=this.words[Z]|0;P+=Q,Q=P>>>26,P&=67108863,this.words[Z]=P}return Q!==0&&(this.words[Z]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new a(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var Z=K.words[9];for(X.words[X.length++]=Z&Y,Q=10;Q<K.length;Q++){var P=K.words[Q]|0;K.words[Q-10]=(P&Y)<<4|Z>>>22,Z=P}Z>>>=22,K.words[Q-10]=Z,Z===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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function a(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}a.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},a.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.red,"red works only with red numbers")},a.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},a.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},a.prototype.add=function(K,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},a.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},a.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},a.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},a.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},a.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},a.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},a.prototype.isqr=function(K){return this.imul(K,K.clone())},a.prototype.sqr=function(K){return this.mul(K,K)},a.prototype.sqrt=function(K){if(K.isZero())return K.clone();var X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var Z=new G(1).toRed(this),P=Z.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(P)!==0;)C.redIAdd(P);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(Z)!==0;){for(var s=L,r=0;s.cmp(Z)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},a.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},a.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var Z=H[0],P=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(Z!==H[0]&&(Z=this.sqr(Z)),L===0&&P===0){$=0;continue}P<<=1,P|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(Z=this.mul(Z,H[P]),$=0,P=0)}C=26}return Z},a.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},a.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.mont=function(K){return new Z0(K)};function Z0(K){a.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Z0,a),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var X=this.imod(K.mul(this.rinv));return X.red=null,X},Z0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.mul=function(K,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.invm=function(K){var X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),b7=G0(()=>{}),q9=G0((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 G=new Uint8Array(S),U=0;U<G.length;U++)G[U]=this.rand.getByte();return G},typeof self=="object")self.crypto&&self.crypto.getRandomValues?M.prototype._rand=function(S){var G=new Uint8Array(S);return self.crypto.getRandomValues(G),G}:self.msCrypto&&self.msCrypto.getRandomValues?M.prototype._rand=function(S){var G=new Uint8Array(S);return self.msCrypto.getRandomValues(G),G}:typeof window=="object"&&(M.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(F=b7(),typeof F.randomBytes!="function")throw new Error("Not supported");M.prototype._rand=function(S){return F.randomBytes(S)}}catch{}var F}),V6=G0((l,g)=>{var E=p7(),M=q9();function F(S){this.rand=S||new M.Rand}g.exports=F,F.create=function(S){return new F(S)},F.prototype._randbelow=function(S){var G=S.bitLength(),U=Math.ceil(G/8);do var I=new E(this.rand.generate(U));while(I.cmp(S)>=0);return I},F.prototype._randrange=function(S,G){var U=G.sub(S);return S.add(this._randbelow(U))},F.prototype.test=function(S,G,U){var I=S.bitLength(),V=E.mont(S),z=new E(1).toRed(V);G||(G=Math.max(1,I/48|0));for(var j=S.subn(1),O=0;!j.testn(O);O++);for(var N=S.shrn(O),W=j.toRed(V),D=!0;G>0;G--){var k=this._randrange(new E(2),j);U&&U(k);var A=k.toRed(V).redPow(N);if(!(A.cmp(z)===0||A.cmp(W)===0)){for(var x=1;x<O;x++){if(A=A.redSqr(),A.cmp(z)===0)return!1;if(A.cmp(W)===0)break}if(x===O)return!1}}return D},F.prototype.getDivisor=function(S,G){var U=S.bitLength(),I=E.mont(S),V=new E(1).toRed(I);G||(G=Math.max(1,U/48|0));for(var z=S.subn(1),j=0;!z.testn(j);j++);for(var O=S.shrn(j),N=z.toRed(I);G>0;G--){var W=this._randrange(new E(2),z),D=S.gcd(W);if(D.cmpn(1)!==0)return D;var k=W.toRed(I).redPow(O);if(!(k.cmp(V)===0||k.cmp(N)===0)){for(var A=1;A<j;A++){if(k=k.redSqr(),k.cmp(V)===0)return k.fromRed().subn(1).gcd(S);if(k.cmp(N)===0)break}if(A===j)return k=k.redSqr(),k.fromRed().subn(1).gcd(S)}}return!1}}),T6=G0((l,g)=>{var E=g5();g.exports=c,c.simpleSieve=y,c.fermatTest=p;var M=O6(),F=new M(24),S=V6(),G=new S,U=new M(1),I=new M(2),V=new M(5),z=new M(16),j=new M(8),O=new M(10),N=new M(3),W=new M(7),D=new M(11),k=new M(4),A=new M(12),x=null;function v(){if(x!==null)return x;var n=1048576,i=[];i[0]=2;for(var H0=1,a=3;a<n;a+=2){for(var Z0=Math.ceil(Math.sqrt(a)),K=0;K<H0&&i[K]<=Z0&&a%i[K]!==0;K++);H0!==K&&i[K]<=Z0||(i[H0++]=a)}return x=i,i}function y(n){for(var i=v(),H0=0;H0<i.length;H0++)if(n.modn(i[H0])===0)return n.cmpn(i[H0])===0;return!0}function p(n){var i=M.mont(n);return I.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 H0,a;;){for(H0=new M(E(Math.ceil(n/8)));H0.bitLength()>n;)H0.ishrn(1);if(H0.isEven()&&H0.iadd(U),H0.testn(1)||H0.iadd(I),i.cmp(I)){if(!i.cmp(V))for(;H0.mod(O).cmp(N);)H0.iadd(k)}else for(;H0.mod(F).cmp(D);)H0.iadd(k);if(a=H0.shrn(1),y(a)&&y(H0)&&p(a)&&p(H0)&&G.test(a)&&G.test(H0))return H0}}}),c7=G0((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"}}}),d7=G0((l,g)=>{var E=O6(),M=V6(),F=new M,S=new E(24),G=new E(11),U=new E(10),I=new E(3),V=new E(7),z=T6(),j=g5();g.exports=k;function O(x,v){return v=v||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,v)),this._pub=new E(x),this}function N(x,v){return v=v||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,v)),this._priv=new E(x),this}var W={};function D(x,v){var y=v.toString("hex"),p=[y,x.toString(16)].join("_");if(p in W)return W[p];var c=0;if(x.isEven()||!z.simpleSieve||!z.fermatTest(x)||!F.test(x))return c+=1,y==="02"||y==="05"?c+=8:c+=4,W[p]=c,c;F.test(x.shrn(1))||(c+=2);var n;switch(y){case"02":x.mod(S).cmp(G)&&(c+=8);break;case"05":n=x.mod(U),n.cmp(I)&&n.cmp(V)&&(c+=8);break;default:c+=4}return W[p]=c,c}function k(x,v,y){this.setGenerator(v),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=O,this.setPrivateKey=N):this._primeCode=8}Object.defineProperty(k.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=D(this.__prime,this.__gen)),this._primeCode}}),k.prototype.generateKeys=function(){return this._priv||(this._priv=new E(j(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},k.prototype.computeSecret=function(x){x=new E(x),x=x.toRed(this._prime);var v=x.redPow(this._priv).fromRed(),y=new Buffer(v.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},k.prototype.getPublicKey=function(x){return A(this._pub,x)},k.prototype.getPrivateKey=function(x){return A(this._priv,x)},k.prototype.getPrime=function(x){return A(this.__prime,x)},k.prototype.getGenerator=function(x){return A(this._gen,x)},k.prototype.setGenerator=function(x,v){return v=v||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,v)),this.__gen=x,this._gen=new E(x),this};function A(x,v){var y=new Buffer(x.toArray());return v?y.toString(v):y}}),l7=G0((l)=>{var g=T6(),E=c7(),M=d7();function F(U){var I=new Buffer(E[U].prime,"hex"),V=new Buffer(E[U].gen,"hex");return new M(I,V)}var S={binary:!0,hex:!0,base64:!0};function G(U,I,V,z){return Buffer.isBuffer(I)||S[I]===void 0?G(U,"binary",I,V):(I=I||"binary",z=z||"binary",V=V||new Buffer([2]),Buffer.isBuffer(V)||(V=new Buffer(V,z)),typeof U=="number"?new M(g(U,V),V,!0):(Buffer.isBuffer(U)||(U=new Buffer(U,I)),new M(U,V,!0)))}l.DiffieHellmanGroup=l.createDiffieHellmanGroup=l.getDiffieHellman=F,l.createDiffieHellman=l.DiffieHellman=G}),D6=G0((l,g)=>{g.exports=S5().EventEmitter}),h7=G0((l,g)=>{function E(W,D){var k=Object.keys(W);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(W);D&&(A=A.filter(function(x){return Object.getOwnPropertyDescriptor(W,x).enumerable})),k.push.apply(k,A)}return k}function M(W){for(var D=1;D<arguments.length;D++){var k=arguments[D]!=null?arguments[D]:{};D%2?E(Object(k),!0).forEach(function(A){F(W,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(k)):E(Object(k)).forEach(function(A){Object.defineProperty(W,A,Object.getOwnPropertyDescriptor(k,A))})}return W}function F(W,D,k){return D in W?Object.defineProperty(W,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[D]=k,W}function S(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}function G(W,D){for(var k=0;k<D.length;k++){var A=D[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(W,A.key,A)}}function U(W,D,k){return D&&G(W.prototype,D),k&&G(W,k),W}var I=W5(),V=I.Buffer,z=i5(),j=z.inspect,O=j&&j.custom||"inspect";function N(W,D,k){V.prototype.copy.call(W,D,k)}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 k={data:D,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(D){var k={data:D,next:this.head};this.length===0&&(this.tail=k),this.head=k,++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 k=this.head,A=""+k.data;k=k.next;)A+=D+k.data;return A}},{key:"concat",value:function(D){if(this.length===0)return V.alloc(0);for(var k=V.allocUnsafe(D>>>0),A=this.head,x=0;A;)N(A.data,k,x),x+=A.data.length,A=A.next;return k}},{key:"consume",value:function(D,k){var A;return D<this.head.data.length?(A=this.head.data.slice(0,D),this.head.data=this.head.data.slice(D)):D===this.head.data.length?A=this.shift():A=k?this._getString(D):this._getBuffer(D),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(D){var k=this.head,A=1,x=k.data;for(D-=x.length;k=k.next;){var v=k.data,y=D>v.length?v.length:D;if(y===v.length?x+=v:x+=v.slice(0,D),D-=y,D===0){y===v.length?(++A,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=v.slice(y));break}++A}return this.length-=A,x}},{key:"_getBuffer",value:function(D){var k=V.allocUnsafe(D),A=this.head,x=1;for(A.data.copy(k),D-=A.data.length;A=A.next;){var v=A.data,y=D>v.length?v.length:D;if(v.copy(k,k.length-D,0,y),D-=y,D===0){y===v.length?(++x,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=v.slice(y));break}++x}return this.length-=x,k}},{key:O,value:function(D,k){return j(this,M({},k,{depth:0,customInspect:!1}))}}]),W}()}),N6=G0((l,g)=>{function E(I,V){var z=this,j=this._readableState&&this._readableState.destroyed,O=this._writableState&&this._writableState.destroyed;return j||O?(V?V(I):I&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(G,this,I)):process.nextTick(G,this,I)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(I||null,function(N){!V&&N?z._writableState?z._writableState.errorEmitted?process.nextTick(F,z):(z._writableState.errorEmitted=!0,process.nextTick(M,z,N)):process.nextTick(M,z,N):V?(process.nextTick(F,z),V(N)):process.nextTick(F,z)}),this)}function M(I,V){G(I,V),F(I)}function F(I){I._writableState&&!I._writableState.emitClose||I._readableState&&!I._readableState.emitClose||I.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 G(I,V){I.emit("error",V)}function U(I,V){var{_readableState:z,_writableState:j}=I;z&&z.autoDestroy||j&&j.autoDestroy?I.destroy(V):I.emit("error",V)}g.exports={destroy:E,undestroy:S,errorOrDestroy:U}}),c5=G0((l,g)=>{function E(V,z){V.prototype=Object.create(z.prototype),V.prototype.constructor=V,V.__proto__=z}var M={};function F(V,z,j){j||(j=Error);function O(W,D,k){return typeof z=="string"?z:z(W,D,k)}var N=function(W){E(D,W);function D(k,A,x){return W.call(this,O(k,A,x))||this}return D}(j);N.prototype.name=j.name,N.prototype.code=V,M[V]=N}function S(V,z){if(Array.isArray(V)){var j=V.length;return V=V.map(function(O){return String(O)}),j>2?"one of ".concat(z," ").concat(V.slice(0,j-1).join(", "),", or ")+V[j-1]:j===2?"one of ".concat(z," ").concat(V[0]," or ").concat(V[1]):"of ".concat(z," ").concat(V[0])}else return"of ".concat(z," ").concat(String(V))}function G(V,z,j){return V.substr(!j||j<0?0:+j,z.length)===z}function U(V,z,j){return(j===void 0||j>V.length)&&(j=V.length),V.substring(j-z.length,j)===z}function I(V,z,j){return typeof j!="number"&&(j=0),j+z.length>V.length?!1:V.indexOf(z,j)!==-1}F("ERR_INVALID_OPT_VALUE",function(V,z){return'The value "'+z+'" is invalid for option "'+V+'"'},TypeError),F("ERR_INVALID_ARG_TYPE",function(V,z,j){var O;typeof z=="string"&&G(z,"not ")?(O="must not be",z=z.replace(/^not /,"")):O="must be";var N;if(U(V," argument"))N="The ".concat(V," ").concat(O," ").concat(S(z,"type"));else{var W=I(V,".")?"property":"argument";N='The "'.concat(V,'" ').concat(W," ").concat(O," ").concat(S(z,"type"))}return N+=". Received type ".concat(typeof j),N},TypeError),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),F("ERR_METHOD_NOT_IMPLEMENTED",function(V){return"The "+V+" method is not implemented"}),F("ERR_STREAM_PREMATURE_CLOSE","Premature close"),F("ERR_STREAM_DESTROYED",function(V){return"Cannot call "+V+" after a stream was destroyed"}),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),F("ERR_STREAM_WRITE_AFTER_END","write after end"),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_UNKNOWN_ENCODING",function(V){return"Unknown encoding: "+V},TypeError),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=M}),L6=G0((l,g)=>{var E=c5().codes.ERR_INVALID_OPT_VALUE;function M(S,G,U){return S.highWaterMark!=null?S.highWaterMark:G?S[U]:null}function F(S,G,U,I){var V=M(G,I,U);if(V!=null){if(!(isFinite(V)&&Math.floor(V)===V)||V<0){var z=I?U:"highWaterMark";throw new E(z,V)}return Math.floor(V)}return S.objectMode?16:16384}g.exports={getHighWaterMark:F}}),I6=G0((l,g)=>{g.exports=a;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){X0(d,u)}}var M;a.WritableState=i;var F={deprecate:l9()},S=D6(),G=W5().Buffer,U=global.Uint8Array||function(){};function I(u){return G.from(u)}function V(u){return G.isBuffer(u)||u instanceof U}var z=N6(),j=L6(),O=j.getHighWaterMark,N=c5().codes,W=N.ERR_INVALID_ARG_TYPE,D=N.ERR_METHOD_NOT_IMPLEMENTED,k=N.ERR_MULTIPLE_CALLBACK,A=N.ERR_STREAM_CANNOT_PIPE,x=N.ERR_STREAM_DESTROYED,v=N.ERR_STREAM_NULL_VALUES,y=N.ERR_STREAM_WRITE_AFTER_END,p=N.ERR_UNKNOWN_ENCODING,c=z.errorOrDestroy;p0()(a,S);function n(){}function i(u,d,f){M=M||y5(),u=u||{},typeof f!="boolean"&&(f=d instanceof M),this.objectMode=!!u.objectMode,f&&(this.objectMode=this.objectMode||!!u.writableObjectMode),this.highWaterMark=O(this,u,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var z0=u.decodeStrings===!1;this.decodeStrings=!z0,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K0){P(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:F.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H0=Function.prototype[Symbol.hasInstance],Object.defineProperty(a,Symbol.hasInstance,{value:function(u){return H0.call(this,u)?!0:this!==a?!1:u&&u._writableState instanceof i}})):H0=function(u){return u instanceof this};function a(u){M=M||y5();var d=this instanceof M;if(!d&&!H0.call(a,this))return new a(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)}a.prototype.pipe=function(){c(this,new A)};function Z0(u,d){var f=new y;c(u,f),process.nextTick(d,f)}function K(u,d,f,z0){var K0;return f===null?K0=new v:typeof f!="string"&&!d.objectMode&&(K0=new W("chunk",["string","Buffer"],f)),K0?(c(u,K0),process.nextTick(z0,K0),!1):!0}a.prototype.write=function(u,d,f){var z0=this._writableState,K0=!1,Q0=!z0.objectMode&&V(u);return Q0&&!G.isBuffer(u)&&(u=I(u)),typeof d=="function"&&(f=d,d=null),Q0?d="buffer":d||(d=z0.defaultEncoding),typeof f!="function"&&(f=n),z0.ending?Z0(this,f):(Q0||K(this,z0,u,f))&&(z0.pendingcb++,K0=Y(this,z0,Q0,u,d,f)),K0},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&J(this,u))},a.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(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(u,d,f){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=G.from(d,f)),d}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(u,d,f,z0,K0,Q0){if(!f){var w=X(d,z0,K0);z0!==w&&(f=!0,K0="buffer",z0=w)}var q=d.objectMode?1:z0.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:z0,encoding:K0,isBuf:f,callback:Q0,next:null},e?e.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else H(u,d,!1,q,z0,K0,Q0);return m}function H(u,d,f,z0,K0,Q0,w){d.writelen=z0,d.writecb=w,d.writing=!0,d.sync=!0,d.destroyed?d.onwrite(new x("write")):f?u._writev(K0,d.onwrite):u._write(K0,Q0,d.onwrite),d.sync=!1}function Q(u,d,f,z0,K0){--d.pendingcb,f?(process.nextTick(K0,z0),process.nextTick(s,u,d),u._writableState.errorEmitted=!0,c(u,z0)):(K0(z0),u._writableState.errorEmitted=!0,c(u,z0),s(u,d))}function Z(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function P(u,d){var f=u._writableState,z0=f.sync,K0=f.writecb;if(typeof K0!="function")throw new k;if(Z(f),d)Q(u,f,z0,d,K0);else{var Q0=R(f)||u.destroyed;!Q0&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&J(u,f),z0?process.nextTick($,u,f,Q0,K0):$(u,f,Q0,K0)}}function $(u,d,f,z0){f||C(u,d),d.pendingcb--,z0(),s(u,d)}function C(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function J(u,d){d.bufferProcessing=!0;var f=d.bufferedRequest;if(u._writev&&f&&f.next){var z0=d.bufferedRequestCount,K0=new Array(z0),Q0=d.corkedRequestsFree;Q0.entry=f;for(var w=0,q=!0;f;)K0[w]=f,f.isBuf||(q=!1),f=f.next,w+=1;K0.allBuffers=q,H(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(;f;){var{chunk:m,encoding:e,callback:C0}=f,t=d.objectMode?1:m.length;if(H(u,d,!1,t,m,e,C0),f=f.next,d.bufferedRequestCount--,d.writing)break}f===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=f,d.bufferProcessing=!1}a.prototype._write=function(u,d,f){f(new D("_write()"))},a.prototype._writev=null,a.prototype.end=function(u,d,f){var z0=this._writableState;return typeof u=="function"?(f=u,u=null,d=null):typeof d=="function"&&(f=d,d=null),u!=null&&this.write(u,d),z0.corked&&(z0.corked=1,this.uncork()),z0.ending||r(this,z0,f),this},Object.defineProperty(a.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(f){d.pendingcb--,f&&c(u,f),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 f=R(d);if(f&&(_(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"),d.autoDestroy))){var z0=u._readableState;(!z0||z0.autoDestroy&&z0.endEmitted)&&u.destroy()}return f}function r(u,d,f){d.ending=!0,s(u,d),f&&(d.finished?process.nextTick(f):u.once("finish",f)),d.ended=!0,u.writable=!1}function X0(u,d,f){var z0=u.entry;for(u.entry=null;z0;){var K0=z0.callback;d.pendingcb--,K0(f),z0=z0.next}d.corkedRequestsFree.next=u}Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){!this._writableState||(this._writableState.destroyed=u)}}),a.prototype.destroy=z.destroy,a.prototype._undestroy=z.undestroy,a.prototype._destroy=function(u,d){d(u)}}),y5=G0((l,g)=>{var E=Object.keys||function(j){var O=[];for(var N in j)O.push(N);return O};g.exports=I;var M=k6(),F=I6();p0()(I,M);for(S=E(F.prototype),U=0;U<S.length;U++)G=S[U],I.prototype[G]||(I.prototype[G]=F.prototype[G]);var S,G,U;function I(j){if(!(this instanceof I))return new I(j);M.call(this,j),F.call(this,j),this.allowHalfOpen=!0,j&&(j.readable===!1&&(this.readable=!1),j.writable===!1&&(this.writable=!1),j.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",V)))}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function V(){this._writableState.ended||process.nextTick(z,this)}function z(j){j.end()}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(j){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=j,this._writableState.destroyed=j)}})}),B9=G0((l,g)=>{var E=c5().codes.ERR_STREAM_PREMATURE_CLOSE;function M(U){var I=!1;return function(){if(!I){I=!0;for(var V=arguments.length,z=new Array(V),j=0;j<V;j++)z[j]=arguments[j];U.apply(this,z)}}}function F(){}function S(U){return U.setHeader&&typeof U.abort=="function"}function G(U,I,V){if(typeof I=="function")return G(U,null,I);I||(I={}),V=M(V||F);var z=I.readable||I.readable!==!1&&U.readable,j=I.writable||I.writable!==!1&&U.writable,O=function(){U.writable||W()},N=U._writableState&&U._writableState.finished,W=function(){j=!1,N=!0,z||V.call(U)},D=U._readableState&&U._readableState.endEmitted,k=function(){z=!1,D=!0,j||V.call(U)},A=function(y){V.call(U,y)},x=function(){var y;if(z&&!D)return(!U._readableState||!U._readableState.ended)&&(y=new E),V.call(U,y);if(j&&!N)return(!U._writableState||!U._writableState.ended)&&(y=new E),V.call(U,y)},v=function(){U.req.on("finish",W)};return S(U)?(U.on("complete",W),U.on("abort",x),U.req?v():U.on("request",v)):j&&!U._writableState&&(U.on("end",O),U.on("close",O)),U.on("end",k),U.on("finish",W),I.error!==!1&&U.on("error",A),U.on("close",x),function(){U.removeListener("complete",W),U.removeListener("abort",x),U.removeListener("request",v),U.req&&U.req.removeListener("finish",W),U.removeListener("end",O),U.removeListener("close",O),U.removeListener("finish",W),U.removeListener("end",k),U.removeListener("error",A),U.removeListener("close",x)}}g.exports=G}),u7=G0((l,g)=>{var E;function M(v,y,p){return y in v?Object.defineProperty(v,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):v[y]=p,v}var F=B9(),S=Symbol("lastResolve"),G=Symbol("lastReject"),U=Symbol("error"),I=Symbol("ended"),V=Symbol("lastPromise"),z=Symbol("handlePromise"),j=Symbol("stream");function O(v,y){return{value:v,done:y}}function N(v){var y=v[S];if(y!==null){var p=v[j].read();p!==null&&(v[V]=null,v[S]=null,v[G]=null,y(O(p,!1)))}}function W(v){process.nextTick(N,v)}function D(v,y){return function(p,c){v.then(function(){if(y[I]){p(O(void 0,!0));return}y[z](p,c)},c)}}var k=Object.getPrototypeOf(function(){}),A=Object.setPrototypeOf((E={get stream(){return this[j]},next:function(){var v=this,y=this[U];if(y!==null)return Promise.reject(y);if(this[I])return Promise.resolve(O(void 0,!0));if(this[j].destroyed)return new Promise(function(i,H0){process.nextTick(function(){v[U]?H0(v[U]):i(O(void 0,!0))})});var p=this[V],c;if(p)c=new Promise(D(p,this));else{var n=this[j].read();if(n!==null)return Promise.resolve(O(n,!1));c=new Promise(this[z])}return this[V]=c,c}},M(E,Symbol.asyncIterator,function(){return this}),M(E,"return",function(){var v=this;return new Promise(function(y,p){v[j].destroy(null,function(c){if(c){p(c);return}y(O(void 0,!0))})})}),E),k),x=function(v){var y,p=Object.create(A,(y={},M(y,j,{value:v,writable:!0}),M(y,S,{value:null,writable:!0}),M(y,G,{value:null,writable:!0}),M(y,U,{value:null,writable:!0}),M(y,I,{value:v._readableState.endEmitted,writable:!0}),M(y,z,{value:function(c,n){var i=p[j].read();i?(p[V]=null,p[S]=null,p[G]=null,c(O(i,!1))):(p[S]=c,p[G]=n)},writable:!0}),y));return p[V]=null,F(v,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[G];n!==null&&(p[V]=null,p[S]=null,p[G]=null,n(c)),p[U]=c;return}var i=p[S];i!==null&&(p[V]=null,p[S]=null,p[G]=null,i(O(void 0,!0))),p[I]=!0}),v.on("readable",W.bind(null,p)),p};g.exports=x}),o7=G0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),k6=G0((l,g)=>{g.exports=K;var E;K.ReadableState=Z0;var M=S5().EventEmitter,F=function(w,q){return w.listeners(q).length},S=D6(),G=W5().Buffer,U=global.Uint8Array||function(){};function I(w){return G.from(w)}function V(w){return G.isBuffer(w)||w instanceof U}var z=i5(),j;z&&z.debuglog?j=z.debuglog("stream"):j=function(){};var O=h7(),N=N6(),W=L6(),D=W.getHighWaterMark,k=c5().codes,A=k.ERR_INVALID_ARG_TYPE,x=k.ERR_STREAM_PUSH_AFTER_EOF,v=k.ERR_METHOD_NOT_IMPLEMENTED,y=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(K,S);var i=N.errorOrDestroy,H0=["error","close","destroy","pause","resume"];function a(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 Z0(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 O,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=(a5(),O5(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 Z0(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=G.from(w,q),q=""),e=!0),X(this,w,q,!1,e)},K.prototype.unshift=function(w){return X(this,w,null,!0,!1)};function X(w,q,m,e,C0){j("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,$(w,t);else{var _0;if(C0||(_0=H(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==G.prototype&&(q=I(q)),e)t.endEmitted?i(w,new y):Y(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?Y(w,t,q,!1):R(w,t)):Y(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function Y(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&&C(w)),R(w,q)}function H(w,q){var m;return!V(q)&&typeof q!="string"&&q!==void 0&&!w.objectMode&&(m=new A("chunk",["string","Buffer","Uint8Array"],q)),m}K.prototype.isPaused=function(){return this._readableState.flowing===!1},K.prototype.setEncoding=function(w){p||(p=(a5(),O5(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 Z(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 P(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=Z(w)),w<=q.length?w:q.ended?q.length:(q.needReadable=!0,0))}K.prototype.read=function(w){j("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 j("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?z0(this):C(this),null;if(w=P(w,q),w===0&&q.ended)return q.length===0&&z0(this),null;var e=q.needReadable;j("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,j("length less than watermark",e)),q.ended||q.reading?(e=!1,j("reading or ended",e)):e&&(j("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=P(m,q)));var C0;return w>0?C0=f(w,q):C0=null,C0===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&&z0(this)),C0!==null&&this.emit("data",C0),C0};function $(w,q){if(j("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?C(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,J(w)))}}function C(w){var q=w._readableState;j("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(j("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(J,w))}function J(w){var q=w._readableState;j("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(j("maybeReadMore read 0"),w.read(0),m===q.length)break}q.readingMore=!1}K.prototype._read=function(w){i(this,new v("_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,j("pipe count=%d opts=%j",e.pipesCount,q);var C0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=C0?$0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){j("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,W0())}function $0(){j("onend"),w.end()}var J0=_(m);w.on("drain",J0);var w0=!1;function W0(){j("cleanup"),w.removeListener("close",T),w.removeListener("finish",B),w.removeListener("drain",J0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",$0),m.removeListener("end",b),m.removeListener("data",P0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&J0()}m.on("data",P0);function P0(h){j("ondata");var o=w.write(h);j("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&Q0(e.pipes,w)!==-1)&&!w0&&(j("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){j("onerror",h),b(),w.removeListener("error",c0),F(w,"error")===0&&i(w,h)}a(w,"error",c0);function T(){w.removeListener("finish",B),b()}w.once("close",T);function B(){j("onfinish"),w.removeListener("close",T),b()}w.once("finish",B);function b(){j("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||(j("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;j("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&F(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:C0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<C0;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,j("on readable",e.length,e.reading),e.length?C(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){j("readable nexttick read 0"),w.read(0)}K.prototype.resume=function(){var w=this._readableState;return w.flowing||(j("resume"),w.flowing=!w.readableListening,X0(this,w)),w.paused=!1,this};function X0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){j("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 j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for(j("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(j("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(j("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var $0=q.push(_0);$0||(e=!0,w.pause())}});for(var C0 in w)this[C0]===void 0&&typeof w[C0]=="function"&&(this[C0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(C0));for(var t=0;t<H0.length;t++)w.on(H0[t],this.emit.bind(this,H0[t]));return this._read=function(_0){j("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(K.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=u7()),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=f,Object.defineProperty(K.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function f(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 z0(w){var q=w._readableState;j("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(K0,q,w))}function K0(w,q){if(j("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=o7()),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}}),q6=G0((l,g)=>{g.exports=V;var E=c5().codes,M=E.ERR_METHOD_NOT_IMPLEMENTED,F=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,G=E.ERR_TRANSFORM_WITH_LENGTH_0,U=y5();p0()(V,U);function I(O,N){var W=this._transformState;W.transforming=!1;var D=W.writecb;if(D===null)return this.emit("error",new F);W.writechunk=null,W.writecb=null,N!=null&&this.push(N),D(O);var k=this._readableState;k.reading=!1,(k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}function V(O){if(!(this instanceof V))return new V(O);U.call(this,O),this._transformState={afterTransform:I.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,O&&(typeof O.transform=="function"&&(this._transform=O.transform),typeof O.flush=="function"&&(this._flush=O.flush)),this.on("prefinish",z)}function z(){var O=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,W){j(O,N,W)}):j(this,null,null)}V.prototype.push=function(O,N){return this._transformState.needTransform=!1,U.prototype.push.call(this,O,N)},V.prototype._transform=function(O,N,W){W(new M("_transform()"))},V.prototype._write=function(O,N,W){var D=this._transformState;if(D.writecb=W,D.writechunk=O,D.writeencoding=N,!D.transforming){var k=this._readableState;(D.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}},V.prototype._read=function(O){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},V.prototype._destroy=function(O,N){U.prototype._destroy.call(this,O,function(W){N(W)})};function j(O,N,W){if(N)return O.emit("error",N);if(W!=null&&O.push(W),O._writableState.length)throw new G;if(O._transformState.transforming)throw new S;return O.push(null)}}),s7=G0((l,g)=>{g.exports=M;var E=q6();p0()(M,E);function M(F){if(!(this instanceof M))return new M(F);E.call(this,F)}M.prototype._transform=function(F,S,G){G(null,F)}}),a7=G0((l,g)=>{var E;function M(W){var D=!1;return function(){D||(D=!0,W.apply(void 0,arguments))}}var F=c5().codes,S=F.ERR_MISSING_ARGS,G=F.ERR_STREAM_DESTROYED;function U(W){if(W)throw W}function I(W){return W.setHeader&&typeof W.abort=="function"}function V(W,D,k,A){A=M(A);var x=!1;W.on("close",function(){x=!0}),E===void 0&&(E=B9()),E(W,{readable:D,writable:k},function(y){if(y)return A(y);x=!0,A()});var v=!1;return function(y){if(!x&&!v){if(v=!0,I(W))return W.abort();if(typeof W.destroy=="function")return W.destroy();A(y||new G("pipe"))}}}function z(W){W()}function j(W,D){return W.pipe(D)}function O(W){return!W.length||typeof W[W.length-1]!="function"?U:W.pop()}function N(){for(var W=arguments.length,D=new Array(W),k=0;k<W;k++)D[k]=arguments[k];var A=O(D);if(Array.isArray(D[0])&&(D=D[0]),D.length<2)throw new S("streams");var x,v=D.map(function(y,p){var c=p<D.length-1,n=p>0;return V(y,c,n,function(i){x||(x=i),i&&v.forEach(z),!c&&(v.forEach(z),A(x))})});return D.reduce(j)}g.exports=N}),f7=G0((l,g)=>{l=g.exports=k6(),l.Stream=l,l.Readable=l,l.Writable=I6(),l.Duplex=y5(),l.Transform=q6(),l.PassThrough=s7(),l.finished=B9(),l.pipeline=a7()}),R9=G0((l,g)=>{(function(E,M){function F(H,Q){if(!H)throw new Error(Q||"Assertion failed")}function S(H,Q){H.super_=Q;var Z=function(){};Z.prototype=Q.prototype,H.prototype=new Z,H.prototype.constructor=H}function G(H,Q,Z){if(G.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((Q==="le"||Q==="be")&&(Z=Q,Q=10),this._init(H||0,Q||10,Z||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}G.isBN=function(H){return H instanceof G?!0:H!==null&&typeof H=="object"&&H.constructor.wordSize===G.wordSize&&Array.isArray(H.words)},G.max=function(H,Q){return H.cmp(Q)>0?H:Q},G.min=function(H,Q){return H.cmp(Q)<0?H:Q},G.prototype._init=function(H,Q,Z){if(typeof H=="number")return this._initNumber(H,Q,Z);if(typeof H=="object")return this._initArray(H,Q,Z);Q==="hex"&&(Q=16),F(Q===(Q|0)&&Q>=2&&Q<=36),H=H.toString().replace(/\s+/g,"");var P=0;H[0]==="-"&&(P++,this.negative=1),P<H.length&&(Q===16?this._parseHex(H,P,Z):(this._parseBase(H,Q,P),Z==="le"&&this._initArray(this.toArray(),Q,Z)))},G.prototype._initNumber=function(H,Q,Z){H<0&&(this.negative=1,H=-H),H<67108864?(this.words=[H&67108863],this.length=1):H<4503599627370496?(this.words=[H&67108863,H/67108864&67108863],this.length=2):(F(H<9007199254740992),this.words=[H&67108863,H/67108864&67108863,1],this.length=3),Z==="le"&&this._initArray(this.toArray(),Q,Z)},G.prototype._initArray=function(H,Q,Z){if(F(typeof H.length=="number"),H.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(H.length/3),this.words=new Array(this.length);for(var P=0;P<this.length;P++)this.words[P]=0;var $,C,J=0;if(Z==="be")for(P=H.length-1,$=0;P>=0;P-=3)C=H[P]|H[P-1]<<8|H[P-2]<<16,this.words[$]|=C<<J&67108863,this.words[$+1]=C>>>26-J&67108863,J+=24,J>=26&&(J-=26,$++);else if(Z==="le")for(P=0,$=0;P<H.length;P+=3)C=H[P]|H[P+1]<<8|H[P+2]<<16,this.words[$]|=C<<J&67108863,this.words[$+1]=C>>>26-J&67108863,J+=24,J>=26&&(J-=26,$++);return this._strip()};function I(H,Q){var Z=H.charCodeAt(Q);if(Z>=48&&Z<=57)return Z-48;if(Z>=65&&Z<=70)return Z-55;if(Z>=97&&Z<=102)return Z-87;F(!1,"Invalid character in "+H)}function V(H,Q,Z){var P=I(H,Z);return Z-1>=Q&&(P|=I(H,Z-1)<<4),P}G.prototype._parseHex=function(H,Q,Z){this.length=Math.ceil((H.length-Q)/6),this.words=new Array(this.length);for(var P=0;P<this.length;P++)this.words[P]=0;var $=0,C=0,J;if(Z==="be")for(P=H.length-1;P>=Q;P-=2)J=V(H,Q,P)<<$,this.words[C]|=J&67108863,$>=18?($-=18,C+=1,this.words[C]|=J>>>26):$+=8;else{var R=H.length-Q;for(P=R%2===0?Q+1:Q;P<H.length;P+=2)J=V(H,Q,P)<<$,this.words[C]|=J&67108863,$>=18?($-=18,C+=1,this.words[C]|=J>>>26):$+=8}this._strip()};function z(H,Q,Z,P){for(var $=0,C=0,J=Math.min(H.length,Z),R=Q;R<J;R++){var L=H.charCodeAt(R)-48;$*=P,L>=49?C=L-49+10:L>=17?C=L-17+10:C=L,F(L>=0&&C<P,"Invalid character"),$+=C}return $}G.prototype._parseBase=function(H,Q,Z){this.words=[0],this.length=1;for(var P=0,$=1;$<=67108863;$*=Q)P++;P--,$=$/Q|0;for(var C=H.length-Z,J=C%P,R=Math.min(C,C-J)+Z,L=0,_=Z;_<R;_+=P)L=z(H,_,_+P,Q),this.imuln($),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L);if(J!==0){var s=1;for(L=z(H,_,H.length,Q),_=0;_<J;_++)s*=Q;this.imuln(s),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L)}this._strip()},G.prototype.copy=function(H){H.words=new Array(this.length);for(var Q=0;Q<this.length;Q++)H.words[Q]=this.words[Q];H.length=this.length,H.negative=this.negative,H.red=this.red};function j(H,Q){H.words=Q.words,H.length=Q.length,H.negative=Q.negative,H.red=Q.red}if(G.prototype._move=function(H){j(H,this)},G.prototype.clone=function(){var H=new G(null);return this.copy(H),H},G.prototype._expand=function(H){for(;this.length<H;)this.words[this.length++]=0;return this},G.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{G.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch{G.prototype.inspect=O}else G.prototype.inspect=O;function O(){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];G.prototype.toString=function(H,Q){H=H||10,Q=Q|0||1;var Z;if(H===16||H==="hex"){Z="";for(var P=0,$=0,C=0;C<this.length;C++){var J=this.words[C],R=((J<<P|$)&16777215).toString(16);$=J>>>24-P&16777215,P+=2,P>=26&&(P-=26,C--),$!==0||C!==this.length-1?Z=N[6-R.length]+R+Z:Z=R+Z}for($!==0&&(Z=$.toString(16)+Z);Z.length%Q!==0;)Z="0"+Z;return this.negative!==0&&(Z="-"+Z),Z}if(H===(H|0)&&H>=2&&H<=36){var L=W[H],_=D[H];Z="";var s=this.clone();for(s.negative=0;!s.isZero();){var r=s.modrn(_).toString(H);s=s.idivn(_),s.isZero()?Z=r+Z:Z=N[L-r.length]+r+Z}for(this.isZero()&&(Z="0"+Z);Z.length%Q!==0;)Z="0"+Z;return this.negative!==0&&(Z="-"+Z),Z}F(!1,"Base should be between 2 and 36")},G.prototype.toNumber=function(){var H=this.words[0];return this.length===2?H+=this.words[1]*67108864:this.length===3&&this.words[2]===1?H+=4503599627370496+this.words[1]*67108864:this.length>2&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-H:H},G.prototype.toJSON=function(){return this.toString(16,2)},U&&(G.prototype.toBuffer=function(H,Q){return this.toArrayLike(U,H,Q)}),G.prototype.toArray=function(H,Q){return this.toArrayLike(Array,H,Q)};var k=function(H,Q){return H.allocUnsafe?H.allocUnsafe(Q):new H(Q)};G.prototype.toArrayLike=function(H,Q,Z){this._strip();var P=this.byteLength(),$=Z||Math.max(1,P);F(P<=$,"byte array longer than desired length"),F($>0,"Requested array length <= 0");var C=k(H,$),J=Q==="le"?"LE":"BE";return this["_toArrayLike"+J](C,P),C},G.prototype._toArrayLikeLE=function(H,Q){for(var Z=0,P=0,$=0,C=0;$<this.length;$++){var J=this.words[$]<<C|P;H[Z++]=J&255,Z<H.length&&(H[Z++]=J>>8&255),Z<H.length&&(H[Z++]=J>>16&255),C===6?(Z<H.length&&(H[Z++]=J>>24&255),P=0,C=0):(P=J>>>24,C+=2)}if(Z<H.length)for(H[Z++]=P;Z<H.length;)H[Z++]=0},G.prototype._toArrayLikeBE=function(H,Q){for(var Z=H.length-1,P=0,$=0,C=0;$<this.length;$++){var J=this.words[$]<<C|P;H[Z--]=J&255,Z>=0&&(H[Z--]=J>>8&255),Z>=0&&(H[Z--]=J>>16&255),C===6?(Z>=0&&(H[Z--]=J>>24&255),P=0,C=0):(P=J>>>24,C+=2)}if(Z>=0)for(H[Z--]=P;Z>=0;)H[Z--]=0},Math.clz32?G.prototype._countBits=function(H){return 32-Math.clz32(H)}:G.prototype._countBits=function(H){var Q=H,Z=0;return Q>=4096&&(Z+=13,Q>>>=13),Q>=64&&(Z+=7,Q>>>=7),Q>=8&&(Z+=4,Q>>>=4),Q>=2&&(Z+=2,Q>>>=2),Z+Q},G.prototype._zeroBits=function(H){if(H===0)return 26;var Q=H,Z=0;return(Q&8191)===0&&(Z+=13,Q>>>=13),(Q&127)===0&&(Z+=7,Q>>>=7),(Q&15)===0&&(Z+=4,Q>>>=4),(Q&3)===0&&(Z+=2,Q>>>=2),(Q&1)===0&&Z++,Z},G.prototype.bitLength=function(){var H=this.words[this.length-1],Q=this._countBits(H);return(this.length-1)*26+Q};function A(H){for(var Q=new Array(H.bitLength()),Z=0;Z<Q.length;Z++){var P=Z/26|0,$=Z%26;Q[Z]=H.words[P]>>>$&1}return Q}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var H=0,Q=0;Q<this.length;Q++){var Z=this._zeroBits(this.words[Q]);if(H+=Z,Z!==26)break}return H},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(H){return this.negative!==0?this.abs().inotn(H).iaddn(1):this.clone()},G.prototype.fromTwos=function(H){return this.testn(H-1)?this.notn(H).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(H){for(;this.length<H.length;)this.words[this.length++]=0;for(var Q=0;Q<H.length;Q++)this.words[Q]=this.words[Q]|H.words[Q];return this._strip()},G.prototype.ior=function(H){return F((this.negative|H.negative)===0),this.iuor(H)},G.prototype.or=function(H){return this.length>H.length?this.clone().ior(H):H.clone().ior(this)},G.prototype.uor=function(H){return this.length>H.length?this.clone().iuor(H):H.clone().iuor(this)},G.prototype.iuand=function(H){var Q;this.length>H.length?Q=H:Q=this;for(var Z=0;Z<Q.length;Z++)this.words[Z]=this.words[Z]&H.words[Z];return this.length=Q.length,this._strip()},G.prototype.iand=function(H){return F((this.negative|H.negative)===0),this.iuand(H)},G.prototype.and=function(H){return this.length>H.length?this.clone().iand(H):H.clone().iand(this)},G.prototype.uand=function(H){return this.length>H.length?this.clone().iuand(H):H.clone().iuand(this)},G.prototype.iuxor=function(H){var Q,Z;this.length>H.length?(Q=this,Z=H):(Q=H,Z=this);for(var P=0;P<Z.length;P++)this.words[P]=Q.words[P]^Z.words[P];if(this!==Q)for(;P<Q.length;P++)this.words[P]=Q.words[P];return this.length=Q.length,this._strip()},G.prototype.ixor=function(H){return F((this.negative|H.negative)===0),this.iuxor(H)},G.prototype.xor=function(H){return this.length>H.length?this.clone().ixor(H):H.clone().ixor(this)},G.prototype.uxor=function(H){return this.length>H.length?this.clone().iuxor(H):H.clone().iuxor(this)},G.prototype.inotn=function(H){F(typeof H=="number"&&H>=0);var Q=Math.ceil(H/26)|0,Z=H%26;this._expand(Q),Z>0&&Q--;for(var P=0;P<Q;P++)this.words[P]=~this.words[P]&67108863;return Z>0&&(this.words[P]=~this.words[P]&67108863>>26-Z),this._strip()},G.prototype.notn=function(H){return this.clone().inotn(H)},G.prototype.setn=function(H,Q){F(typeof H=="number"&&H>=0);var Z=H/26|0,P=H%26;return this._expand(Z+1),Q?this.words[Z]=this.words[Z]|1<<P:this.words[Z]=this.words[Z]&~(1<<P),this._strip()},G.prototype.iadd=function(H){var Q;if(this.negative!==0&&H.negative===0)return this.negative=0,Q=this.isub(H),this.negative^=1,this._normSign();if(this.negative===0&&H.negative!==0)return H.negative=0,Q=this.isub(H),H.negative=1,Q._normSign();var Z,P;this.length>H.length?(Z=this,P=H):(Z=H,P=this);for(var $=0,C=0;C<P.length;C++)Q=(Z.words[C]|0)+(P.words[C]|0)+$,this.words[C]=Q&67108863,$=Q>>>26;for(;$!==0&&C<Z.length;C++)Q=(Z.words[C]|0)+$,this.words[C]=Q&67108863,$=Q>>>26;if(this.length=Z.length,$!==0)this.words[this.length]=$,this.length++;else if(Z!==this)for(;C<Z.length;C++)this.words[C]=Z.words[C];return this},G.prototype.add=function(H){var Q;return H.negative!==0&&this.negative===0?(H.negative=0,Q=this.sub(H),H.negative^=1,Q):H.negative===0&&this.negative!==0?(this.negative=0,Q=H.sub(this),this.negative=1,Q):this.length>H.length?this.clone().iadd(H):H.clone().iadd(this)},G.prototype.isub=function(H){if(H.negative!==0){H.negative=0;var Q=this.iadd(H);return H.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(H),this.negative=1,this._normSign();var Z=this.cmp(H);if(Z===0)return this.negative=0,this.length=1,this.words[0]=0,this;var P,$;Z>0?(P=this,$=H):(P=H,$=this);for(var C=0,J=0;J<$.length;J++)Q=(P.words[J]|0)-($.words[J]|0)+C,C=Q>>26,this.words[J]=Q&67108863;for(;C!==0&&J<P.length;J++)Q=(P.words[J]|0)+C,C=Q>>26,this.words[J]=Q&67108863;if(C===0&&J<P.length&&P!==this)for(;J<P.length;J++)this.words[J]=P.words[J];return this.length=Math.max(this.length,J),P!==this&&(this.negative=1),this._strip()},G.prototype.sub=function(H){return this.clone().isub(H)};function x(H,Q,Z){Z.negative=Q.negative^H.negative;var P=H.length+Q.length|0;Z.length=P,P=P-1|0;var $=H.words[0]|0,C=Q.words[0]|0,J=$*C,R=J&67108863,L=J/67108864|0;Z.words[0]=R;for(var _=1;_<P;_++){for(var s=L>>>26,r=L&67108863,X0=Math.min(_,Q.length-1),u=Math.max(0,_-H.length+1);u<=X0;u++){var d=_-u|0;$=H.words[d]|0,C=Q.words[u]|0,J=$*C+r,s+=J/67108864|0,r=J&67108863}Z.words[_]=r|0,L=s|0}return L!==0?Z.words[_]=L|0:Z.length--,Z._strip()}var v=function(H,Q,Z){var P=H.words,$=Q.words,C=Z.words,J=0,R,L,_,s=P[0]|0,r=s&8191,X0=s>>>13,u=P[1]|0,d=u&8191,f=u>>>13,z0=P[2]|0,K0=z0&8191,Q0=z0>>>13,w=P[3]|0,q=w&8191,m=w>>>13,e=P[4]|0,C0=e&8191,t=e>>>13,_0=P[5]|0,$0=_0&8191,J0=_0>>>13,w0=P[6]|0,W0=w0&8191,P0=w0>>>13,c0=P[7]|0,T=c0&8191,B=c0>>>13,b=P[8]|0,h=b&8191,o=b>>>13,O0=P[9]|0,Y0=O0&8191,j0=O0>>>13,b0=$[0]|0,U0=b0&8191,F0=b0>>>13,y0=$[1]|0,D0=y0&8191,N0=y0>>>13,G5=$[2]|0,T0=G5&8191,V0=G5>>>13,l0=$[3]|0,L0=l0&8191,I0=l0>>>13,J5=$[4]|0,k0=J5&8191,q0=J5>>>13,Z5=$[5]|0,B0=Z5&8191,R0=Z5>>>13,P5=$[6]|0,E0=P5&8191,S0=P5>>>13,j5=$[7]|0,x0=j5&8191,A0=j5>>>13,F5=$[8]|0,v0=F5&8191,M0=F5>>>13,Q5=$[9]|0,g0=Q5&8191,m0=Q5>>>13;Z.negative=H.negative^Q.negative,Z.length=19,R=Math.imul(r,U0),L=Math.imul(r,F0),L=L+Math.imul(X0,U0)|0,_=Math.imul(X0,F0);var h0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(h0>>>26)|0,h0&=67108863,R=Math.imul(d,U0),L=Math.imul(d,F0),L=L+Math.imul(f,U0)|0,_=Math.imul(f,F0),R=R+Math.imul(r,D0)|0,L=L+Math.imul(r,N0)|0,L=L+Math.imul(X0,D0)|0,_=_+Math.imul(X0,N0)|0;var u0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(u0>>>26)|0,u0&=67108863,R=Math.imul(K0,U0),L=Math.imul(K0,F0),L=L+Math.imul(Q0,U0)|0,_=Math.imul(Q0,F0),R=R+Math.imul(d,D0)|0,L=L+Math.imul(d,N0)|0,L=L+Math.imul(f,D0)|0,_=_+Math.imul(f,N0)|0,R=R+Math.imul(r,T0)|0,L=L+Math.imul(r,V0)|0,L=L+Math.imul(X0,T0)|0,_=_+Math.imul(X0,V0)|0;var o0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(o0>>>26)|0,o0&=67108863,R=Math.imul(q,U0),L=Math.imul(q,F0),L=L+Math.imul(m,U0)|0,_=Math.imul(m,F0),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,V0)|0,L=L+Math.imul(f,T0)|0,_=_+Math.imul(f,V0)|0,R=R+Math.imul(r,L0)|0,L=L+Math.imul(r,I0)|0,L=L+Math.imul(X0,L0)|0,_=_+Math.imul(X0,I0)|0;var s0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(s0>>>26)|0,s0&=67108863,R=Math.imul(C0,U0),L=Math.imul(C0,F0),L=L+Math.imul(t,U0)|0,_=Math.imul(t,F0),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,V0)|0,L=L+Math.imul(Q0,T0)|0,_=_+Math.imul(Q0,V0)|0,R=R+Math.imul(d,L0)|0,L=L+Math.imul(d,I0)|0,L=L+Math.imul(f,L0)|0,_=_+Math.imul(f,I0)|0,R=R+Math.imul(r,k0)|0,L=L+Math.imul(r,q0)|0,L=L+Math.imul(X0,k0)|0,_=_+Math.imul(X0,q0)|0;var a0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(a0>>>26)|0,a0&=67108863,R=Math.imul($0,U0),L=Math.imul($0,F0),L=L+Math.imul(J0,U0)|0,_=Math.imul(J0,F0),R=R+Math.imul(C0,D0)|0,L=L+Math.imul(C0,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,V0)|0,L=L+Math.imul(m,T0)|0,_=_+Math.imul(m,V0)|0,R=R+Math.imul(K0,L0)|0,L=L+Math.imul(K0,I0)|0,L=L+Math.imul(Q0,L0)|0,_=_+Math.imul(Q0,I0)|0,R=R+Math.imul(d,k0)|0,L=L+Math.imul(d,q0)|0,L=L+Math.imul(f,k0)|0,_=_+Math.imul(f,q0)|0,R=R+Math.imul(r,B0)|0,L=L+Math.imul(r,R0)|0,L=L+Math.imul(X0,B0)|0,_=_+Math.imul(X0,R0)|0;var f0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(f0>>>26)|0,f0&=67108863,R=Math.imul(W0,U0),L=Math.imul(W0,F0),L=L+Math.imul(P0,U0)|0,_=Math.imul(P0,F0),R=R+Math.imul($0,D0)|0,L=L+Math.imul($0,N0)|0,L=L+Math.imul(J0,D0)|0,_=_+Math.imul(J0,N0)|0,R=R+Math.imul(C0,T0)|0,L=L+Math.imul(C0,V0)|0,L=L+Math.imul(t,T0)|0,_=_+Math.imul(t,V0)|0,R=R+Math.imul(q,L0)|0,L=L+Math.imul(q,I0)|0,L=L+Math.imul(m,L0)|0,_=_+Math.imul(m,I0)|0,R=R+Math.imul(K0,k0)|0,L=L+Math.imul(K0,q0)|0,L=L+Math.imul(Q0,k0)|0,_=_+Math.imul(Q0,q0)|0,R=R+Math.imul(d,B0)|0,L=L+Math.imul(d,R0)|0,L=L+Math.imul(f,B0)|0,_=_+Math.imul(f,R0)|0,R=R+Math.imul(r,E0)|0,L=L+Math.imul(r,S0)|0,L=L+Math.imul(X0,E0)|0,_=_+Math.imul(X0,S0)|0;var n0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(n0>>>26)|0,n0&=67108863,R=Math.imul(T,U0),L=Math.imul(T,F0),L=L+Math.imul(B,U0)|0,_=Math.imul(B,F0),R=R+Math.imul(W0,D0)|0,L=L+Math.imul(W0,N0)|0,L=L+Math.imul(P0,D0)|0,_=_+Math.imul(P0,N0)|0,R=R+Math.imul($0,T0)|0,L=L+Math.imul($0,V0)|0,L=L+Math.imul(J0,T0)|0,_=_+Math.imul(J0,V0)|0,R=R+Math.imul(C0,L0)|0,L=L+Math.imul(C0,I0)|0,L=L+Math.imul(t,L0)|0,_=_+Math.imul(t,I0)|0,R=R+Math.imul(q,k0)|0,L=L+Math.imul(q,q0)|0,L=L+Math.imul(m,k0)|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(f,E0)|0,_=_+Math.imul(f,S0)|0,R=R+Math.imul(r,x0)|0,L=L+Math.imul(r,A0)|0,L=L+Math.imul(X0,x0)|0,_=_+Math.imul(X0,A0)|0;var r0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(r0>>>26)|0,r0&=67108863,R=Math.imul(h,U0),L=Math.imul(h,F0),L=L+Math.imul(o,U0)|0,_=Math.imul(o,F0),R=R+Math.imul(T,D0)|0,L=L+Math.imul(T,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,V0)|0,L=L+Math.imul(P0,T0)|0,_=_+Math.imul(P0,V0)|0,R=R+Math.imul($0,L0)|0,L=L+Math.imul($0,I0)|0,L=L+Math.imul(J0,L0)|0,_=_+Math.imul(J0,I0)|0,R=R+Math.imul(C0,k0)|0,L=L+Math.imul(C0,q0)|0,L=L+Math.imul(t,k0)|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(f,x0)|0,_=_+Math.imul(f,A0)|0,R=R+Math.imul(r,v0)|0,L=L+Math.imul(r,M0)|0,L=L+Math.imul(X0,v0)|0,_=_+Math.imul(X0,M0)|0;var i0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(i0>>>26)|0,i0&=67108863,R=Math.imul(Y0,U0),L=Math.imul(Y0,F0),L=L+Math.imul(j0,U0)|0,_=Math.imul(j0,F0),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(T,T0)|0,L=L+Math.imul(T,V0)|0,L=L+Math.imul(B,T0)|0,_=_+Math.imul(B,V0)|0,R=R+Math.imul(W0,L0)|0,L=L+Math.imul(W0,I0)|0,L=L+Math.imul(P0,L0)|0,_=_+Math.imul(P0,I0)|0,R=R+Math.imul($0,k0)|0,L=L+Math.imul($0,q0)|0,L=L+Math.imul(J0,k0)|0,_=_+Math.imul(J0,q0)|0,R=R+Math.imul(C0,B0)|0,L=L+Math.imul(C0,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(f,v0)|0,_=_+Math.imul(f,M0)|0,R=R+Math.imul(r,g0)|0,L=L+Math.imul(r,m0)|0,L=L+Math.imul(X0,g0)|0,_=_+Math.imul(X0,m0)|0;var t0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(t0>>>26)|0,t0&=67108863,R=Math.imul(Y0,D0),L=Math.imul(Y0,N0),L=L+Math.imul(j0,D0)|0,_=Math.imul(j0,N0),R=R+Math.imul(h,T0)|0,L=L+Math.imul(h,V0)|0,L=L+Math.imul(o,T0)|0,_=_+Math.imul(o,V0)|0,R=R+Math.imul(T,L0)|0,L=L+Math.imul(T,I0)|0,L=L+Math.imul(B,L0)|0,_=_+Math.imul(B,I0)|0,R=R+Math.imul(W0,k0)|0,L=L+Math.imul(W0,q0)|0,L=L+Math.imul(P0,k0)|0,_=_+Math.imul(P0,q0)|0,R=R+Math.imul($0,B0)|0,L=L+Math.imul($0,R0)|0,L=L+Math.imul(J0,B0)|0,_=_+Math.imul(J0,R0)|0,R=R+Math.imul(C0,E0)|0,L=L+Math.imul(C0,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(f,g0)|0,_=_+Math.imul(f,m0)|0;var e0=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(e0>>>26)|0,e0&=67108863,R=Math.imul(Y0,T0),L=Math.imul(Y0,V0),L=L+Math.imul(j0,T0)|0,_=Math.imul(j0,V0),R=R+Math.imul(h,L0)|0,L=L+Math.imul(h,I0)|0,L=L+Math.imul(o,L0)|0,_=_+Math.imul(o,I0)|0,R=R+Math.imul(T,k0)|0,L=L+Math.imul(T,q0)|0,L=L+Math.imul(B,k0)|0,_=_+Math.imul(B,q0)|0,R=R+Math.imul(W0,B0)|0,L=L+Math.imul(W0,R0)|0,L=L+Math.imul(P0,B0)|0,_=_+Math.imul(P0,R0)|0,R=R+Math.imul($0,E0)|0,L=L+Math.imul($0,S0)|0,L=L+Math.imul(J0,E0)|0,_=_+Math.imul(J0,S0)|0,R=R+Math.imul(C0,x0)|0,L=L+Math.imul(C0,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=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(K5>>>26)|0,K5&=67108863,R=Math.imul(Y0,L0),L=Math.imul(Y0,I0),L=L+Math.imul(j0,L0)|0,_=Math.imul(j0,I0),R=R+Math.imul(h,k0)|0,L=L+Math.imul(h,q0)|0,L=L+Math.imul(o,k0)|0,_=_+Math.imul(o,q0)|0,R=R+Math.imul(T,B0)|0,L=L+Math.imul(T,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(P0,E0)|0,_=_+Math.imul(P0,S0)|0,R=R+Math.imul($0,x0)|0,L=L+Math.imul($0,A0)|0,L=L+Math.imul(J0,x0)|0,_=_+Math.imul(J0,A0)|0,R=R+Math.imul(C0,v0)|0,L=L+Math.imul(C0,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 C5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(C5>>>26)|0,C5&=67108863,R=Math.imul(Y0,k0),L=Math.imul(Y0,q0),L=L+Math.imul(j0,k0)|0,_=Math.imul(j0,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(T,E0)|0,L=L+Math.imul(T,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(P0,x0)|0,_=_+Math.imul(P0,A0)|0,R=R+Math.imul($0,v0)|0,L=L+Math.imul($0,M0)|0,L=L+Math.imul(J0,v0)|0,_=_+Math.imul(J0,M0)|0,R=R+Math.imul(C0,g0)|0,L=L+Math.imul(C0,m0)|0,L=L+Math.imul(t,g0)|0,_=_+Math.imul(t,m0)|0;var X5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(X5>>>26)|0,X5&=67108863,R=Math.imul(Y0,B0),L=Math.imul(Y0,R0),L=L+Math.imul(j0,B0)|0,_=Math.imul(j0,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(T,x0)|0,L=L+Math.imul(T,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(P0,v0)|0,_=_+Math.imul(P0,M0)|0,R=R+Math.imul($0,g0)|0,L=L+Math.imul($0,m0)|0,L=L+Math.imul(J0,g0)|0,_=_+Math.imul(J0,m0)|0;var H5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(H5>>>26)|0,H5&=67108863,R=Math.imul(Y0,E0),L=Math.imul(Y0,S0),L=L+Math.imul(j0,E0)|0,_=Math.imul(j0,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(T,v0)|0,L=L+Math.imul(T,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(P0,g0)|0,_=_+Math.imul(P0,m0)|0;var Y5=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,R=Math.imul(Y0,x0),L=Math.imul(Y0,A0),L=L+Math.imul(j0,x0)|0,_=Math.imul(j0,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(T,g0)|0,L=L+Math.imul(T,m0)|0,L=L+Math.imul(B,g0)|0,_=_+Math.imul(B,m0)|0;var Y9=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(Y9>>>26)|0,Y9&=67108863,R=Math.imul(Y0,v0),L=Math.imul(Y0,M0),L=L+Math.imul(j0,v0)|0,_=Math.imul(j0,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 Q9=(J+R|0)+((L&8191)<<13)|0;J=(_+(L>>>13)|0)+(Q9>>>26)|0,Q9&=67108863,R=Math.imul(Y0,g0),L=Math.imul(Y0,m0),L=L+Math.imul(j0,g0)|0,_=Math.imul(j0,m0);var $9=(J+R|0)+((L&8191)<<13)|0;return J=(_+(L>>>13)|0)+($9>>>26)|0,$9&=67108863,C[0]=h0,C[1]=u0,C[2]=o0,C[3]=s0,C[4]=a0,C[5]=f0,C[6]=n0,C[7]=r0,C[8]=i0,C[9]=t0,C[10]=e0,C[11]=K5,C[12]=C5,C[13]=X5,C[14]=H5,C[15]=Y5,C[16]=Y9,C[17]=Q9,C[18]=$9,J!==0&&(C[19]=J,Z.length++),Z};Math.imul||(v=x);function y(H,Q,Z){Z.negative=Q.negative^H.negative,Z.length=H.length+Q.length;for(var P=0,$=0,C=0;C<Z.length-1;C++){var J=$;$=0;for(var R=P&67108863,L=Math.min(C,Q.length-1),_=Math.max(0,C-H.length+1);_<=L;_++){var s=C-_,r=H.words[s]|0,X0=Q.words[_]|0,u=r*X0,d=u&67108863;J=J+(u/67108864|0)|0,d=d+R|0,R=d&67108863,J=J+(d>>>26)|0,$+=J>>>26,J&=67108863}Z.words[C]=R,P=J,J=$}return P!==0?Z.words[C]=P:Z.length--,Z._strip()}function p(H,Q,Z){return y(H,Q,Z)}G.prototype.mulTo=function(H,Q){var Z,P=this.length+H.length;return this.length===10&&H.length===10?Z=v(this,H,Q):P<63?Z=x(this,H,Q):P<1024?Z=y(this,H,Q):Z=p(this,H,Q),Z};function c(H,Q){this.x=H,this.y=Q}c.prototype.makeRBT=function(H){for(var Q=new Array(H),Z=G.prototype._countBits(H)-1,P=0;P<H;P++)Q[P]=this.revBin(P,Z,H);return Q},c.prototype.revBin=function(H,Q,Z){if(H===0||H===Z-1)return H;for(var P=0,$=0;$<Q;$++)P|=(H&1)<<Q-$-1,H>>=1;return P},c.prototype.permute=function(H,Q,Z,P,$,C){for(var J=0;J<C;J++)P[J]=Q[H[J]],$[J]=Z[H[J]]},c.prototype.transform=function(H,Q,Z,P,$,C){this.permute(C,H,Q,Z,P,$);for(var J=1;J<$;J<<=1)for(var R=J<<1,L=Math.cos(2*Math.PI/R),_=Math.sin(2*Math.PI/R),s=0;s<$;s+=R)for(var r=L,X0=_,u=0;u<J;u++){var d=Z[s+u],f=P[s+u],z0=Z[s+u+J],K0=P[s+u+J],Q0=r*z0-X0*K0;K0=r*K0+X0*z0,z0=Q0,Z[s+u]=d+z0,P[s+u]=f+K0,Z[s+u+J]=d-z0,P[s+u+J]=f-K0,u!==R&&(Q0=L*r-_*X0,X0=L*X0+_*r,r=Q0)}},c.prototype.guessLen13b=function(H,Q){var Z=Math.max(Q,H)|1,P=Z&1,$=0;for(Z=Z/2|0;Z;Z=Z>>>1)$++;return 1<<$+1+P},c.prototype.conjugate=function(H,Q,Z){if(!(Z<=1))for(var P=0;P<Z/2;P++){var $=H[P];H[P]=H[Z-P-1],H[Z-P-1]=$,$=Q[P],Q[P]=-Q[Z-P-1],Q[Z-P-1]=-$}},c.prototype.normalize13b=function(H,Q){for(var Z=0,P=0;P<Q/2;P++){var $=Math.round(H[2*P+1]/Q)*8192+Math.round(H[2*P]/Q)+Z;H[P]=$&67108863,$<67108864?Z=0:Z=$/67108864|0}return H},c.prototype.convert13b=function(H,Q,Z,P){for(var $=0,C=0;C<Q;C++)$=$+(H[C]|0),Z[2*C]=$&8191,$=$>>>13,Z[2*C+1]=$&8191,$=$>>>13;for(C=2*Q;C<P;++C)Z[C]=0;F($===0),F(($&-8192)===0)},c.prototype.stub=function(H){for(var Q=new Array(H),Z=0;Z<H;Z++)Q[Z]=0;return Q},c.prototype.mulp=function(H,Q,Z){var P=2*this.guessLen13b(H.length,Q.length),$=this.makeRBT(P),C=this.stub(P),J=new Array(P),R=new Array(P),L=new Array(P),_=new Array(P),s=new Array(P),r=new Array(P),X0=Z.words;X0.length=P,this.convert13b(H.words,H.length,J,P),this.convert13b(Q.words,Q.length,_,P),this.transform(J,C,R,L,P,$),this.transform(_,C,s,r,P,$);for(var u=0;u<P;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,P),this.transform(R,L,X0,C,P,$),this.conjugate(X0,C,P),this.normalize13b(X0,P),Z.negative=H.negative^Q.negative,Z.length=H.length+Q.length,Z._strip()},G.prototype.mul=function(H){var Q=new G(null);return Q.words=new Array(this.length+H.length),this.mulTo(H,Q)},G.prototype.mulf=function(H){var Q=new G(null);return Q.words=new Array(this.length+H.length),p(this,H,Q)},G.prototype.imul=function(H){return this.clone().mulTo(H,this)},G.prototype.imuln=function(H){var Q=H<0;Q&&(H=-H),F(typeof H=="number"),F(H<67108864);for(var Z=0,P=0;P<this.length;P++){var $=(this.words[P]|0)*H,C=($&67108863)+(Z&67108863);Z>>=26,Z+=$/67108864|0,Z+=C>>>26,this.words[P]=C&67108863}return Z!==0&&(this.words[P]=Z,this.length++),Q?this.ineg():this},G.prototype.muln=function(H){return this.clone().imuln(H)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(H){var Q=A(H);if(Q.length===0)return new G(1);for(var Z=this,P=0;P<Q.length&&Q[P]===0;P++,Z=Z.sqr());if(++P<Q.length)for(var $=Z.sqr();P<Q.length;P++,$=$.sqr())Q[P]!==0&&(Z=Z.mul($));return Z},G.prototype.iushln=function(H){F(typeof H=="number"&&H>=0);var Q=H%26,Z=(H-Q)/26,P=67108863>>>26-Q<<26-Q,$;if(Q!==0){var C=0;for($=0;$<this.length;$++){var J=this.words[$]&P,R=(this.words[$]|0)-J<<Q;this.words[$]=R|C,C=J>>>26-Q}C&&(this.words[$]=C,this.length++)}if(Z!==0){for($=this.length-1;$>=0;$--)this.words[$+Z]=this.words[$];for($=0;$<Z;$++)this.words[$]=0;this.length+=Z}return this._strip()},G.prototype.ishln=function(H){return F(this.negative===0),this.iushln(H)},G.prototype.iushrn=function(H,Q,Z){F(typeof H=="number"&&H>=0);var P;Q?P=(Q-Q%26)/26:P=0;var $=H%26,C=Math.min((H-$)/26,this.length),J=67108863^67108863>>>$<<$,R=Z;if(P-=C,P=Math.max(0,P),R){for(var L=0;L<C;L++)R.words[L]=this.words[L];R.length=C}if(C!==0)if(this.length>C)for(this.length-=C,L=0;L<this.length;L++)this.words[L]=this.words[L+C];else this.words[0]=0,this.length=1;var _=0;for(L=this.length-1;L>=0&&(_!==0||L>=P);L--){var s=this.words[L]|0;this.words[L]=_<<26-$|s>>>$,_=s&J}return R&&_!==0&&(R.words[R.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},G.prototype.ishrn=function(H,Q,Z){return F(this.negative===0),this.iushrn(H,Q,Z)},G.prototype.shln=function(H){return this.clone().ishln(H)},G.prototype.ushln=function(H){return this.clone().iushln(H)},G.prototype.shrn=function(H){return this.clone().ishrn(H)},G.prototype.ushrn=function(H){return this.clone().iushrn(H)},G.prototype.testn=function(H){F(typeof H=="number"&&H>=0);var Q=H%26,Z=(H-Q)/26,P=1<<Q;if(this.length<=Z)return!1;var $=this.words[Z];return!!($&P)},G.prototype.imaskn=function(H){F(typeof H=="number"&&H>=0);var Q=H%26,Z=(H-Q)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Z)return this;if(Q!==0&&Z++,this.length=Math.min(Z,this.length),Q!==0){var P=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=P}return this._strip()},G.prototype.maskn=function(H){return this.clone().imaskn(H)},G.prototype.iaddn=function(H){return F(typeof H=="number"),F(H<67108864),H<0?this.isubn(-H):this.negative!==0?this.length===1&&(this.words[0]|0)<=H?(this.words[0]=H-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(H),this.negative=1,this):this._iaddn(H)},G.prototype._iaddn=function(H){this.words[0]+=H;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},G.prototype.isubn=function(H){if(F(typeof H=="number"),F(H<67108864),H<0)return this.iaddn(-H);if(this.negative!==0)return this.negative=0,this.iaddn(H),this.negative=1,this;if(this.words[0]-=H,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()},G.prototype.addn=function(H){return this.clone().iaddn(H)},G.prototype.subn=function(H){return this.clone().isubn(H)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(H,Q,Z){var P=H.length+Z,$;this._expand(P);var C,J=0;for($=0;$<H.length;$++){C=(this.words[$+Z]|0)+J;var R=(H.words[$]|0)*Q;C-=R&67108863,J=(C>>26)-(R/67108864|0),this.words[$+Z]=C&67108863}for(;$<this.length-Z;$++)C=(this.words[$+Z]|0)+J,J=C>>26,this.words[$+Z]=C&67108863;if(J===0)return this._strip();for(F(J===-1),J=0,$=0;$<this.length;$++)C=-(this.words[$]|0)+J,J=C>>26,this.words[$]=C&67108863;return this.negative=1,this._strip()},G.prototype._wordDiv=function(H,Q){var Z=this.length-H.length,P=this.clone(),$=H,C=$.words[$.length-1]|0,J=this._countBits(C);Z=26-J,Z!==0&&($=$.ushln(Z),P.iushln(Z),C=$.words[$.length-1]|0);var R=P.length-$.length,L;if(Q!=="mod"){L=new G(null),L.length=R+1,L.words=new Array(L.length);for(var _=0;_<L.length;_++)L.words[_]=0}var s=P.clone()._ishlnsubmul($,1,R);s.negative===0&&(P=s,L&&(L.words[R]=1));for(var r=R-1;r>=0;r--){var X0=(P.words[$.length+r]|0)*67108864+(P.words[$.length+r-1]|0);for(X0=Math.min(X0/C|0,67108863),P._ishlnsubmul($,X0,r);P.negative!==0;)X0--,P.negative=0,P._ishlnsubmul($,1,r),P.isZero()||(P.negative^=1);L&&(L.words[r]=X0)}return L&&L._strip(),P._strip(),Q!=="div"&&Z!==0&&P.iushrn(Z),{div:L||null,mod:P}},G.prototype.divmod=function(H,Q,Z){if(F(!H.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var P,$,C;return this.negative!==0&&H.negative===0?(C=this.neg().divmod(H,Q),Q!=="mod"&&(P=C.div.neg()),Q!=="div"&&($=C.mod.neg(),Z&&$.negative!==0&&$.iadd(H)),{div:P,mod:$}):this.negative===0&&H.negative!==0?(C=this.divmod(H.neg(),Q),Q!=="mod"&&(P=C.div.neg()),{div:P,mod:C.mod}):(this.negative&H.negative)!==0?(C=this.neg().divmod(H.neg(),Q),Q!=="div"&&($=C.mod.neg(),Z&&$.negative!==0&&$.isub(H)),{div:C.div,mod:$}):H.length>this.length||this.cmp(H)<0?{div:new G(0),mod:this}:H.length===1?Q==="div"?{div:this.divn(H.words[0]),mod:null}:Q==="mod"?{div:null,mod:new G(this.modrn(H.words[0]))}:{div:this.divn(H.words[0]),mod:new G(this.modrn(H.words[0]))}:this._wordDiv(H,Q)},G.prototype.div=function(H){return this.divmod(H,"div",!1).div},G.prototype.mod=function(H){return this.divmod(H,"mod",!1).mod},G.prototype.umod=function(H){return this.divmod(H,"mod",!0).mod},G.prototype.divRound=function(H){var Q=this.divmod(H);if(Q.mod.isZero())return Q.div;var Z=Q.div.negative!==0?Q.mod.isub(H):Q.mod,P=H.ushrn(1),$=H.andln(1),C=Z.cmp(P);return C<0||$===1&&C===0?Q.div:Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},G.prototype.modrn=function(H){var Q=H<0;Q&&(H=-H),F(H<=67108863);for(var Z=67108864%H,P=0,$=this.length-1;$>=0;$--)P=(Z*P+(this.words[$]|0))%H;return Q?-P:P},G.prototype.modn=function(H){return this.modrn(H)},G.prototype.idivn=function(H){var Q=H<0;Q&&(H=-H),F(H<=67108863);for(var Z=0,P=this.length-1;P>=0;P--){var $=(this.words[P]|0)+Z*67108864;this.words[P]=$/H|0,Z=$%H}return this._strip(),Q?this.ineg():this},G.prototype.divn=function(H){return this.clone().idivn(H)},G.prototype.egcd=function(H){F(H.negative===0),F(!H.isZero());var Q=this,Z=H.clone();Q.negative!==0?Q=Q.umod(H):Q=Q.clone();for(var P=new G(1),$=new G(0),C=new G(0),J=new G(1),R=0;Q.isEven()&&Z.isEven();)Q.iushrn(1),Z.iushrn(1),++R;for(var L=Z.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;)(P.isOdd()||$.isOdd())&&(P.iadd(L),$.isub(_)),P.iushrn(1),$.iushrn(1);for(var X0=0,u=1;(Z.words[0]&u)===0&&X0<26;++X0,u<<=1);if(X0>0)for(Z.iushrn(X0);X0-- >0;)(C.isOdd()||J.isOdd())&&(C.iadd(L),J.isub(_)),C.iushrn(1),J.iushrn(1);Q.cmp(Z)>=0?(Q.isub(Z),P.isub(C),$.isub(J)):(Z.isub(Q),C.isub(P),J.isub($))}return{a:C,b:J,gcd:Z.iushln(R)}},G.prototype._invmp=function(H){F(H.negative===0),F(!H.isZero());var Q=this,Z=H.clone();Q.negative!==0?Q=Q.umod(H):Q=Q.clone();for(var P=new G(1),$=new G(0),C=Z.clone();Q.cmpn(1)>0&&Z.cmpn(1)>0;){for(var J=0,R=1;(Q.words[0]&R)===0&&J<26;++J,R<<=1);if(J>0)for(Q.iushrn(J);J-- >0;)P.isOdd()&&P.iadd(C),P.iushrn(1);for(var L=0,_=1;(Z.words[0]&_)===0&&L<26;++L,_<<=1);if(L>0)for(Z.iushrn(L);L-- >0;)$.isOdd()&&$.iadd(C),$.iushrn(1);Q.cmp(Z)>=0?(Q.isub(Z),P.isub($)):(Z.isub(Q),$.isub(P))}var s;return Q.cmpn(1)===0?s=P:s=$,s.cmpn(0)<0&&s.iadd(H),s},G.prototype.gcd=function(H){if(this.isZero())return H.abs();if(H.isZero())return this.abs();var Q=this.clone(),Z=H.clone();Q.negative=0,Z.negative=0;for(var P=0;Q.isEven()&&Z.isEven();P++)Q.iushrn(1),Z.iushrn(1);do{for(;Q.isEven();)Q.iushrn(1);for(;Z.isEven();)Z.iushrn(1);var $=Q.cmp(Z);if($<0){var C=Q;Q=Z,Z=C}else if($===0||Z.cmpn(1)===0)break;Q.isub(Z)}while(!0);return Z.iushln(P)},G.prototype.invm=function(H){return this.egcd(H).a.umod(H)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(H){return this.words[0]&H},G.prototype.bincn=function(H){F(typeof H=="number");var Q=H%26,Z=(H-Q)/26,P=1<<Q;if(this.length<=Z)return this._expand(Z+1),this.words[Z]|=P,this;for(var $=P,C=Z;$!==0&&C<this.length;C++){var J=this.words[C]|0;J+=$,$=J>>>26,J&=67108863,this.words[C]=J}return $!==0&&(this.words[C]=$,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(H){var Q=H<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this._strip();var Z;if(this.length>1)Z=1;else{Q&&(H=-H),F(H<=67108863,"Number is too big");var P=this.words[0]|0;Z=P===H?0:P<H?-1:1}return this.negative!==0?-Z|0:Z},G.prototype.cmp=function(H){if(this.negative!==0&&H.negative===0)return-1;if(this.negative===0&&H.negative!==0)return 1;var Q=this.ucmp(H);return this.negative!==0?-Q|0:Q},G.prototype.ucmp=function(H){if(this.length>H.length)return 1;if(this.length<H.length)return-1;for(var Q=0,Z=this.length-1;Z>=0;Z--){var P=this.words[Z]|0,$=H.words[Z]|0;if(P!==$){P<$?Q=-1:P>$&&(Q=1);break}}return Q},G.prototype.gtn=function(H){return this.cmpn(H)===1},G.prototype.gt=function(H){return this.cmp(H)===1},G.prototype.gten=function(H){return this.cmpn(H)>=0},G.prototype.gte=function(H){return this.cmp(H)>=0},G.prototype.ltn=function(H){return this.cmpn(H)===-1},G.prototype.lt=function(H){return this.cmp(H)===-1},G.prototype.lten=function(H){return this.cmpn(H)<=0},G.prototype.lte=function(H){return this.cmp(H)<=0},G.prototype.eqn=function(H){return this.cmpn(H)===0},G.prototype.eq=function(H){return this.cmp(H)===0},G.red=function(H){return new X(H)},G.prototype.toRed=function(H){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),H.convertTo(this)._forceRed(H)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(H){return this.red=H,this},G.prototype.forceRed=function(H){return F(!this.red,"Already a number in reduction context"),this._forceRed(H)},G.prototype.redAdd=function(H){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,H)},G.prototype.redIAdd=function(H){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,H)},G.prototype.redSub=function(H){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,H)},G.prototype.redISub=function(H){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,H)},G.prototype.redShl=function(H){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,H)},G.prototype.redMul=function(H){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,H),this.red.mul(this,H)},G.prototype.redIMul=function(H){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,H),this.red.imul(this,H)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(H){return F(this.red&&!H.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,H)};var n={k256:null,p224:null,p192:null,p25519:null};function i(H,Q){this.name=H,this.p=new G(Q,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var H=new G(null);return H.words=new Array(Math.ceil(this.n/13)),H},i.prototype.ireduce=function(H){var Q=H,Z;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),Z=Q.bitLength();while(Z>this.n);var P=Z<this.n?-1:Q.ucmp(this.p);return P===0?(Q.words[0]=0,Q.length=1):P>0?Q.isub(this.p):Q.strip!==void 0?Q.strip():Q._strip(),Q},i.prototype.split=function(H,Q){H.iushrn(this.n,0,Q)},i.prototype.imulK=function(H){return H.imul(this.k)};function H0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(H0,i),H0.prototype.split=function(H,Q){for(var Z=4194303,P=Math.min(H.length,9),$=0;$<P;$++)Q.words[$]=H.words[$];if(Q.length=P,H.length<=9){H.words[0]=0,H.length=1;return}var C=H.words[9];for(Q.words[Q.length++]=C&Z,$=10;$<H.length;$++){var J=H.words[$]|0;H.words[$-10]=(J&Z)<<4|C>>>22,C=J}C>>>=22,H.words[$-10]=C,C===0&&H.length>10?H.length-=10:H.length-=9},H0.prototype.imulK=function(H){H.words[H.length]=0,H.words[H.length+1]=0,H.length+=2;for(var Q=0,Z=0;Z<H.length;Z++){var P=H.words[Z]|0;Q+=P*977,H.words[Z]=Q&67108863,Q=P*64+(Q/67108864|0)}return H.words[H.length-1]===0&&(H.length--,H.words[H.length-1]===0&&H.length--),H};function a(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(a,i);function Z0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(Z0,i);function K(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(K,i),K.prototype.imulK=function(H){for(var Q=0,Z=0;Z<H.length;Z++){var P=(H.words[Z]|0)*19+Q,$=P&67108863;P>>>=26,H.words[Z]=$,Q=P}return Q!==0&&(H.words[H.length++]=Q),H},G._prime=function(H){if(n[H])return n[H];var Q;if(H==="k256")Q=new H0;else if(H==="p224")Q=new a;else if(H==="p192")Q=new Z0;else if(H==="p25519")Q=new K;else throw new Error("Unknown prime "+H);return n[H]=Q,Q};function X(H){if(typeof H=="string"){var Q=G._prime(H);this.m=Q.p,this.prime=Q}else F(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}X.prototype._verify1=function(H){F(H.negative===0,"red works only with positives"),F(H.red,"red works only with red numbers")},X.prototype._verify2=function(H,Q){F((H.negative|Q.negative)===0,"red works only with positives"),F(H.red&&H.red===Q.red,"red works only with red numbers")},X.prototype.imod=function(H){return this.prime?this.prime.ireduce(H)._forceRed(this):(j(H,H.umod(this.m)._forceRed(this)),H)},X.prototype.neg=function(H){return H.isZero()?H.clone():this.m.sub(H)._forceRed(this)},X.prototype.add=function(H,Q){this._verify2(H,Q);var Z=H.add(Q);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z._forceRed(this)},X.prototype.iadd=function(H,Q){this._verify2(H,Q);var Z=H.iadd(Q);return Z.cmp(this.m)>=0&&Z.isub(this.m),Z},X.prototype.sub=function(H,Q){this._verify2(H,Q);var Z=H.sub(Q);return Z.cmpn(0)<0&&Z.iadd(this.m),Z._forceRed(this)},X.prototype.isub=function(H,Q){this._verify2(H,Q);var Z=H.isub(Q);return Z.cmpn(0)<0&&Z.iadd(this.m),Z},X.prototype.shl=function(H,Q){return this._verify1(H),this.imod(H.ushln(Q))},X.prototype.imul=function(H,Q){return this._verify2(H,Q),this.imod(H.imul(Q))},X.prototype.mul=function(H,Q){return this._verify2(H,Q),this.imod(H.mul(Q))},X.prototype.isqr=function(H){return this.imul(H,H.clone())},X.prototype.sqr=function(H){return this.mul(H,H)},X.prototype.sqrt=function(H){if(H.isZero())return H.clone();var Q=this.m.andln(3);if(F(Q%2===1),Q===3){var Z=this.m.add(new G(1)).iushrn(2);return this.pow(H,Z)}for(var P=this.m.subn(1),$=0;!P.isZero()&&P.andln(1)===0;)$++,P.iushrn(1);F(!P.isZero());var C=new G(1).toRed(this),J=C.redNeg(),R=this.m.subn(1).iushrn(1),L=this.m.bitLength();for(L=new G(2*L*L).toRed(this);this.pow(L,R).cmp(J)!==0;)L.redIAdd(J);for(var _=this.pow(L,P),s=this.pow(H,P.addn(1).iushrn(1)),r=this.pow(H,P),X0=$;r.cmp(C)!==0;){for(var u=r,d=0;u.cmp(C)!==0;d++)u=u.redSqr();F(d<X0);var f=this.pow(_,new G(1).iushln(X0-d-1));s=s.redMul(f),_=f.redSqr(),r=r.redMul(_),X0=d}return s},X.prototype.invm=function(H){var Q=H._invmp(this.m);return Q.negative!==0?(Q.negative=0,this.imod(Q).redNeg()):this.imod(Q)},X.prototype.pow=function(H,Q){if(Q.isZero())return new G(1).toRed(this);if(Q.cmpn(1)===0)return H.clone();var Z=4,P=new Array(1<<Z);P[0]=new G(1).toRed(this),P[1]=H;for(var $=2;$<P.length;$++)P[$]=this.mul(P[$-1],H);var C=P[0],J=0,R=0,L=Q.bitLength()%26;for(L===0&&(L=26),$=Q.length-1;$>=0;$--){for(var _=Q.words[$],s=L-1;s>=0;s--){var r=_>>s&1;if(C!==P[0]&&(C=this.sqr(C)),r===0&&J===0){R=0;continue}J<<=1,J|=r,R++,!(R!==Z&&($!==0||s!==0))&&(C=this.mul(C,P[J]),R=0,J=0)}L=26}return C},X.prototype.convertTo=function(H){var Q=H.umod(this.m);return Q===H?Q.clone():Q},X.prototype.convertFrom=function(H){var Q=H.clone();return Q.red=null,Q},G.mont=function(H){return new Y(H)};function Y(H){X.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Y,X),Y.prototype.convertTo=function(H){return this.imod(H.ushln(this.shift))},Y.prototype.convertFrom=function(H){var Q=this.imod(H.mul(this.rinv));return Q.red=null,Q},Y.prototype.imul=function(H,Q){if(H.isZero()||Q.isZero())return H.words[0]=0,H.length=1,H;var Z=H.imul(Q),P=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=Z.isub(P).iushrn(this.shift),C=$;return $.cmp(this.m)>=0?C=$.isub(this.m):$.cmpn(0)<0&&(C=$.iadd(this.m)),C._forceRed(this)},Y.prototype.mul=function(H,Q){if(H.isZero()||Q.isZero())return new G(0)._forceRed(this);var Z=H.mul(Q),P=Z.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=Z.isub(P).iushrn(this.shift),C=$;return $.cmp(this.m)>=0?C=$.isub(this.m):$.cmpn(0)<0&&(C=$.iadd(this.m)),C._forceRed(this)},Y.prototype.invm=function(H){var Q=this.imod(H._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof g>"u"||g,l)}),E9=G0((l,g)=>{var E=R9(),M=g5();function F(U){var I=S(U),V=I.toRed(E.mont(U.modulus)).redPow(new E(U.publicExponent)).fromRed();return{blinder:V,unblinder:I.invm(U.modulus)}}function S(U){var I=U.modulus.byteLength(),V;do V=new E(M(I));while(V.cmp(U.modulus)>=0||!V.umod(U.prime1)||!V.umod(U.prime2));return V}function G(U,I){var V=F(I),z=I.modulus.byteLength(),j=new E(U).mul(V.blinder).umod(I.modulus),O=j.toRed(E.mont(I.prime1)),N=j.toRed(E.mont(I.prime2)),W=I.coefficient,D=I.prime1,k=I.prime2,A=O.redPow(I.exponent1).fromRed(),x=N.redPow(I.exponent2).fromRed(),v=A.isub(x).imul(W).umod(D).imul(k);return x.iadd(v).imul(V.unblinder).umod(I.modulus).toArrayLike(Buffer,"be",z)}G.getr=S,g.exports=G}),n7=G0((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"}}}),k5=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,Z,P=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)Z=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)Z=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function V(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,Z=0,P;if(Y==="be")for(H=K.length-1;H>=X;H-=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8}this.strip()};function z(K,X,Y,H){for(var Q=0,Z=Math.min(K.length,Y),P=X;P<Z;P++){var $=K.charCodeAt(P)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var Z=K.length-Y,P=Z%H,$=Math.min(Z,Z-P)+Y,C=0,J=Y;J<$;J+=H)C=z(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(P!==0){var R=1;for(C=z(K,J,K.length,X),J=0;J<P;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var j=["","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"],O=[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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,Z=0;Z<this.length;Z++){var P=this.words[Z],$=((P<<H|Q)&16777215).toString(16);Q=P>>>24-H&16777215,Q!==0||Z!==this.length-1?Y=j[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,Z--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=O[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=j[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof U<"u"),this.toArrayLike(U,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var Z=X==="le",P=new K(Q),$,C,J=this.clone();if(Z){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[C]=$;for(;C<Q;C++)P[C]=0}else{for(C=0;C<Q-H;C++)P[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[Q-C-1]=$}return P},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function W(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,Z=0;Z<H.length;Z++)X=(Y.words[Z]|0)+(H.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;for(;Q!==0&&Z<Y.length;Z++)X=(Y.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var Z=0,P=0;P<Q.length;P++)X=(H.words[P]|0)-(Q.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;for(;Z!==0&&P<H.length;P++)X=(H.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;if(Z===0&&P<H.length&&H!==this)for(;P<H.length;P++)this.words[P]=H.words[P];return this.length=Math.max(this.length,P),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,Z=X.words[0]|0,P=Q*Z,$=P&67108863,C=P/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,Z=X.words[s]|0,P=Q*Z+L,R+=P/67108864|0,L=P&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,Z=Y.words,P=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,f=u>>>13,z0=H[3]|0,K0=z0&8191,Q0=z0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,W0=w0&8191,P0=w0>>>13,c0=H[8]|0,T=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,O0=Q[0]|0,Y0=O0&8191,j0=O0>>>13,b0=Q[1]|0,U0=b0&8191,F0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,V0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,Z5=Q[6]|0,B0=Z5&8191,R0=Z5>>>13,P5=Q[7]|0,E0=P5&8191,S0=P5>>>13,j5=Q[8]|0,x0=j5&8191,A0=j5>>>13,F5=Q[9]|0,v0=F5&8191,M0=F5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,j0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,j0);var Q5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,j0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,j0),$=$+Math.imul(L,U0)|0,C=C+Math.imul(L,F0)|0,C=C+Math.imul(_,U0)|0,J=J+Math.imul(_,F0)|0;var g0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,j0),C=C+Math.imul(f,Y0)|0,J=Math.imul(f,j0),$=$+Math.imul(r,U0)|0,C=C+Math.imul(r,F0)|0,C=C+Math.imul(X0,U0)|0,J=J+Math.imul(X0,F0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,j0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,j0),$=$+Math.imul(d,U0)|0,C=C+Math.imul(d,F0)|0,C=C+Math.imul(f,U0)|0,J=J+Math.imul(f,F0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,V0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,V0)|0;var h0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,j0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,j0),$=$+Math.imul(K0,U0)|0,C=C+Math.imul(K0,F0)|0,C=C+Math.imul(Q0,U0)|0,J=J+Math.imul(Q0,F0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(f,D0)|0,J=J+Math.imul(f,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,V0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,V0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,j0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,j0),$=$+Math.imul(q,U0)|0,C=C+Math.imul(q,F0)|0,C=C+Math.imul(m,U0)|0,J=J+Math.imul(m,F0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,V0)|0,C=C+Math.imul(f,T0)|0,J=J+Math.imul(f,V0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,j0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,j0),$=$+Math.imul(C0,U0)|0,C=C+Math.imul(C0,F0)|0,C=C+Math.imul(t,U0)|0,J=J+Math.imul(t,F0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,V0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,V0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(f,L0)|0,J=J+Math.imul(f,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(W0,Y0),C=Math.imul(W0,j0),C=C+Math.imul(P0,Y0)|0,J=Math.imul(P0,j0),$=$+Math.imul($0,U0)|0,C=C+Math.imul($0,F0)|0,C=C+Math.imul(J0,U0)|0,J=J+Math.imul(J0,F0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,V0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,V0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(f,k0)|0,J=J+Math.imul(f,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(T,Y0),C=Math.imul(T,j0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,j0),$=$+Math.imul(W0,U0)|0,C=C+Math.imul(W0,F0)|0,C=C+Math.imul(P0,U0)|0,J=J+Math.imul(P0,F0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,V0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,V0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(f,B0)|0,J=J+Math.imul(f,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,j0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,j0),$=$+Math.imul(T,U0)|0,C=C+Math.imul(T,F0)|0,C=C+Math.imul(B,U0)|0,J=J+Math.imul(B,F0)|0,$=$+Math.imul(W0,D0)|0,C=C+Math.imul(W0,N0)|0,C=C+Math.imul(P0,D0)|0,J=J+Math.imul(P0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,V0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,V0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(f,E0)|0,J=J+Math.imul(f,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,U0),C=Math.imul(h,F0),C=C+Math.imul(o,U0)|0,J=Math.imul(o,F0),$=$+Math.imul(T,D0)|0,C=C+Math.imul(T,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(W0,T0)|0,C=C+Math.imul(W0,V0)|0,C=C+Math.imul(P0,T0)|0,J=J+Math.imul(P0,V0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(f,x0)|0,J=J+Math.imul(f,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(T,T0)|0,C=C+Math.imul(T,V0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,V0)|0,$=$+Math.imul(W0,L0)|0,C=C+Math.imul(W0,I0)|0,C=C+Math.imul(P0,L0)|0,J=J+Math.imul(P0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(f,v0)|0,J=J+Math.imul(f,M0)|0;var i0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,V0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,V0),$=$+Math.imul(T,L0)|0,C=C+Math.imul(T,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(W0,k0)|0,C=C+Math.imul(W0,q0)|0,C=C+Math.imul(P0,k0)|0,J=J+Math.imul(P0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(T,k0)|0,C=C+Math.imul(T,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(W0,B0)|0,C=C+Math.imul(W0,R0)|0,C=C+Math.imul(P0,B0)|0,J=J+Math.imul(P0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(T,B0)|0,C=C+Math.imul(T,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(W0,E0)|0,C=C+Math.imul(W0,S0)|0,C=C+Math.imul(P0,E0)|0,J=J+Math.imul(P0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(T,E0)|0,C=C+Math.imul(T,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(W0,x0)|0,C=C+Math.imul(W0,A0)|0,C=C+Math.imul(P0,x0)|0,J=J+Math.imul(P0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(T,x0)|0,C=C+Math.imul(T,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(W0,v0)|0,C=C+Math.imul(W0,M0)|0,C=C+Math.imul(P0,v0)|0,J=J+Math.imul(P0,M0)|0;var X5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(T,v0)|0,C=C+Math.imul(T,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(P+$|0)+((C&8191)<<13)|0;return P=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Z[0]=Q5,Z[1]=g0,Z[2]=m0,Z[3]=h0,Z[4]=u0,Z[5]=o0,Z[6]=s0,Z[7]=a0,Z[8]=f0,Z[9]=n0,Z[10]=r0,Z[11]=i0,Z[12]=t0,Z[13]=e0,Z[14]=K5,Z[15]=C5,Z[16]=X5,Z[17]=H5,Z[18]=Y5,P!==0&&(Z[19]=P,Y.length++),Y};Math.imul||(k=D);function A(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,Z=0;Z<Y.length-1;Z++){var P=Q;Q=0;for(var $=H&67108863,C=Math.min(Z,X.length-1),J=Math.max(0,Z-K.length+1);J<=C;J++){var R=Z-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;P=P+(s/67108864|0)|0,r=r+$|0,$=r&67108863,P=P+(r>>>26)|0,Q+=P>>>26,P&=67108863}Y.words[Z]=$,H=P,P=Q}return H!==0?Y.words[Z]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new v;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=A(this,K,X):Y=x(this,K,X),Y};function v(K,X){this.x=K,this.y=X}v.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},v.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},v.prototype.permute=function(K,X,Y,H,Q,Z){for(var P=0;P<Z;P++)H[P]=X[K[P]],Q[P]=Y[K[P]]},v.prototype.transform=function(K,X,Y,H,Q,Z){this.permute(Z,K,X,Y,H,Q);for(var P=1;P<Q;P<<=1)for(var $=P<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<P;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+P],d=H[R+s+P],f=L*u-_*d;d=L*d+_*u,u=f,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+P]=r-u,H[R+s+P]=X0-d,s!==$&&(f=C*L-J*_,_=C*_+J*L,L=f)}},v.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},v.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},v.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},v.prototype.convert13b=function(K,X,Y,H){for(var Q=0,Z=0;Z<X;Z++)Q=Q+(K[Z]|0),Y[2*Z]=Q&8191,Q=Q>>>13,Y[2*Z+1]=Q&8191,Q=Q>>>13;for(Z=2*X;Z<H;++Z)Y[Z]=0;F(Q===0),F((Q&-8192)===0)},v.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},v.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),Z=this.stub(H),P=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,P,H),this.convert13b(X.words,X.length,J,H),this.transform(P,Z,$,C,H,Q),this.transform(J,Z,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,Z,H,Q),this.conjugate(_,Z,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=W(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var Z=0;for(Q=0;Q<this.length;Q++){var P=this.words[Q]&H,$=(this.words[Q]|0)-P<<X;this.words[Q]=$|Z,Z=P>>>26-X}Z&&(this.words[Q]=Z,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,Z=Math.min((K-Q)/26,this.length),P=67108863^67108863>>>Q<<Q,$=Y;if(H-=Z,H=Math.max(0,H),$){for(var C=0;C<Z;C++)$.words[C]=this.words[C];$.length=Z}if(Z!==0)if(this.length>Z)for(this.length-=Z,C=0;C<this.length;C++)this.words[C]=this.words[C+Z];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&P}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var Z,P=0;for(Q=0;Q<K.length;Q++){Z=(this.words[Q+Y]|0)+P;var $=(K.words[Q]|0)*X;Z-=$&67108863,P=(Z>>26)-($/67108864|0),this.words[Q+Y]=Z&67108863}for(;Q<this.length-Y;Q++)Z=(this.words[Q+Y]|0)+P,P=Z>>26,this.words[Q+Y]=Z&67108863;if(P===0)return this.strip();for(F(P===-1),P=0,Q=0;Q<this.length;Q++)Z=-(this.words[Q]|0)+P,P=Z>>26,this.words[Q]=Z&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,Z=Q.words[Q.length-1]|0,P=this._countBits(Z);Y=26-P,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),Z=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/Z|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,Z;return this.negative!==0&&K.negative===0?(Z=this.neg().divmod(K,X),X!=="mod"&&(H=Z.div.neg()),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(Z=this.divmod(K.neg(),X),X!=="mod"&&(H=Z.div.neg()),{div:H,mod:Z.mod}):(this.negative&K.negative)!==0?(Z=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:Z.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),Z=Y.cmp(H);return Z<0||Q===1&&Z===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=new G(0),P=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(Z.isOdd()||P.isOdd())&&(Z.iadd(C),P.isub(J)),Z.iushrn(1),P.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Z),Q.isub(P)):(Y.isub(X),Z.isub(H),P.isub(Q))}return{a:Z,b:P,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var P=0,$=1;(X.words[0]&$)===0&&P<26;++P,$<<=1);if(P>0)for(X.iushrn(P);P-- >0;)H.isOdd()&&H.iadd(Z),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(Z),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var Z=X;X=Y,Y=Z}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,Z=Y;Q!==0&&Z<this.length;Z++){var P=this.words[Z]|0;P+=Q,Q=P>>>26,P&=67108863,this.words[Z]=P}return Q!==0&&(this.words[Z]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new a(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var Z=K.words[9];for(X.words[X.length++]=Z&Y,Q=10;Q<K.length;Q++){var P=K.words[Q]|0;K.words[Q-10]=(P&Y)<<4|Z>>>22,Z=P}Z>>>=22,K.words[Q-10]=Z,Z===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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function a(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}a.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},a.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.red,"red works only with red numbers")},a.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},a.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},a.prototype.add=function(K,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},a.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},a.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},a.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},a.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},a.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},a.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},a.prototype.isqr=function(K){return this.imul(K,K.clone())},a.prototype.sqr=function(K){return this.mul(K,K)},a.prototype.sqrt=function(K){if(K.isZero())return K.clone();var X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var Z=new G(1).toRed(this),P=Z.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(P)!==0;)C.redIAdd(P);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(Z)!==0;){for(var s=L,r=0;s.cmp(Z)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},a.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},a.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var Z=H[0],P=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(Z!==H[0]&&(Z=this.sqr(Z)),L===0&&P===0){$=0;continue}P<<=1,P|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(Z=this.mul(Z,H[P]),$=0,P=0)}C=26}return Z},a.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},a.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.mont=function(K){return new Z0(K)};function Z0(K){a.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Z0,a),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var X=this.imod(K.mul(this.rinv));return X.red=null,X},Z0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.mul=function(K,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.invm=function(K){var X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),B6=G0((l)=>{var g=l;function E(S,G){if(Array.isArray(S))return S.slice();if(!S)return[];var U=[];if(typeof S!="string"){for(var I=0;I<S.length;I++)U[I]=S[I]|0;return U}if(G==="hex"){S=S.replace(/[^a-z0-9]+/ig,""),S.length%2!==0&&(S="0"+S);for(var I=0;I<S.length;I+=2)U.push(parseInt(S[I]+S[I+1],16))}else for(var I=0;I<S.length;I++){var V=S.charCodeAt(I),z=V>>8,j=V&255;z?U.push(z,j):U.push(j)}return U}g.toArray=E;function M(S){return S.length===1?"0"+S:S}g.zero2=M;function F(S){for(var G="",U=0;U<S.length;U++)G+=M(S[U].toString(16));return G}g.toHex=F,g.encode=function(S,G){return G==="hex"?F(S):S}}),T5=G0((l)=>{var g=l,E=k5(),M=V5(),F=B6();g.assert=M,g.toArray=F.toArray,g.zero2=F.zero2,g.toHex=F.toHex,g.encode=F.encode;function S(z,j,O){var N=new Array(Math.max(z.bitLength(),O)+1);N.fill(0);for(var W=1<<j+1,D=z.clone(),k=0;k<N.length;k++){var A,x=D.andln(W-1);D.isOdd()?(x>(W>>1)-1?A=(W>>1)-x:A=x,D.isubn(A)):A=0,N[k]=A,D.iushrn(1)}return N}g.getNAF=S;function G(z,j){var O=[[],[]];z=z.clone(),j=j.clone();for(var N=0,W=0,D;z.cmpn(-N)>0||j.cmpn(-W)>0;){var k=z.andln(3)+N&3,A=j.andln(3)+W&3;k===3&&(k=-1),A===3&&(A=-1);var x;(k&1)===0?x=0:(D=z.andln(7)+N&7,(D===3||D===5)&&A===2?x=-k:x=k),O[0].push(x);var v;(A&1)===0?v=0:(D=j.andln(7)+W&7,(D===3||D===5)&&k===2?v=-A:v=A),O[1].push(v),2*N===x+1&&(N=1-N),2*W===v+1&&(W=1-W),z.iushrn(1),j.iushrn(1)}return O}g.getJSF=G;function U(z,j,O){var N="_"+j;z.prototype[j]=function(){return this[N]!==void 0?this[N]:this[N]=O.call(this)}}g.cachedProperty=U;function I(z){return typeof z=="string"?g.toArray(z,"hex"):z}g.parseBytes=I;function V(z){return new E(z,"hex","le")}g.intFromLE=V}),X9=G0((l,g)=>{var E=k5(),M=T5(),F=M.getNAF,S=M.getJSF,G=M.assert;function U(V,z){this.type=V,this.p=new E(z.p,16),this.red=z.prime?E.red(z.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=z.n&&new E(z.n,16),this.g=z.g&&this.pointFromJSON(z.g,z.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 j=this.n&&this.p.div(this.n);!j||j.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(V,z){G(V.precomputed);var j=V._getDoubles(),O=F(z,1,this._bitLength),N=(1<<j.step+1)-(j.step%2===0?2:1);N/=3;var W=[],D,k;for(D=0;D<O.length;D+=j.step){k=0;for(var A=D+j.step-1;A>=D;A--)k=(k<<1)+O[A];W.push(k)}for(var x=this.jpoint(null,null,null),v=this.jpoint(null,null,null),y=N;y>0;y--){for(D=0;D<W.length;D++)k=W[D],k===y?v=v.mixedAdd(j.points[D]):k===-y&&(v=v.mixedAdd(j.points[D].neg()));x=x.add(v)}return x.toP()},U.prototype._wnafMul=function(V,z){var j=4,O=V._getNAFPoints(j);j=O.wnd;for(var N=O.points,W=F(z,j,this._bitLength),D=this.jpoint(null,null,null),k=W.length-1;k>=0;k--){for(var A=0;k>=0&&W[k]===0;k--)A++;if(k>=0&&A++,D=D.dblp(A),k<0)break;var x=W[k];G(x!==0),V.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 V.type==="affine"?D.toP():D},U.prototype._wnafMulAdd=function(V,z,j,O,N){var W=this._wnafT1,D=this._wnafT2,k=this._wnafT3,A=0,x,v,y;for(x=0;x<O;x++){y=z[x];var p=y._getNAFPoints(V);W[x]=p.wnd,D[x]=p.points}for(x=O-1;x>=1;x-=2){var c=x-1,n=x;if(W[c]!==1||W[n]!==1){k[c]=F(j[c],W[c],this._bitLength),k[n]=F(j[n],W[n],this._bitLength),A=Math.max(k[c].length,A),A=Math.max(k[n].length,A);continue}var i=[z[c],null,null,z[n]];z[c].y.cmp(z[n].y)===0?(i[1]=z[c].add(z[n]),i[2]=z[c].toJ().mixedAdd(z[n].neg())):z[c].y.cmp(z[n].y.redNeg())===0?(i[1]=z[c].toJ().mixedAdd(z[n]),i[2]=z[c].add(z[n].neg())):(i[1]=z[c].toJ().mixedAdd(z[n]),i[2]=z[c].toJ().mixedAdd(z[n].neg()));var H0=[-3,-1,-5,-7,0,7,5,1,3],a=S(j[c],j[n]);for(A=Math.max(a[0].length,A),k[c]=new Array(A),k[n]=new Array(A),v=0;v<A;v++){var Z0=a[0][v]|0,K=a[1][v]|0;k[c][v]=H0[(Z0+1)*3+(K+1)],k[n][v]=0,D[c]=i}}var X=this.jpoint(null,null,null),Y=this._wnafT4;for(x=A;x>=0;x--){for(var H=0;x>=0;){var Q=!0;for(v=0;v<O;v++)Y[v]=k[v][x]|0,Y[v]!==0&&(Q=!1);if(!Q)break;H++,x--}if(x>=0&&H++,X=X.dblp(H),x<0)break;for(v=0;v<O;v++){var Z=Y[v];Z!==0&&(Z>0?y=D[v][Z-1>>1]:Z<0&&(y=D[v][-Z-1>>1].neg()),y.type==="affine"?X=X.mixedAdd(y):X=X.add(y))}}for(x=0;x<O;x++)D[x]=null;return N?X:X.toP()};function I(V,z){this.curve=V,this.type=z,this.precomputed=null}U.BasePoint=I,I.prototype.eq=function(){throw new Error("Not implemented")},I.prototype.validate=function(){return this.curve.validate(this)},U.prototype.decodePoint=function(V,z){V=M.toArray(V,z);var j=this.p.byteLength();if((V[0]===4||V[0]===6||V[0]===7)&&V.length-1===2*j){V[0]===6?G(V[V.length-1]%2===0):V[0]===7&&G(V[V.length-1]%2===1);var O=this.point(V.slice(1,1+j),V.slice(1+j,1+2*j));return O}else if((V[0]===2||V[0]===3)&&V.length-1===j)return this.pointFromX(V.slice(1,1+j),V[0]===3);throw new Error("Unknown point format")},I.prototype.encodeCompressed=function(V){return this.encode(V,!0)},I.prototype._encode=function(V){var z=this.curve.p.byteLength(),j=this.getX().toArray("be",z);return V?[this.getY().isEven()?2:3].concat(j):[4].concat(j,this.getY().toArray("be",z))},I.prototype.encode=function(V,z){return M.encode(this._encode(z),V)},I.prototype.precompute=function(V){if(this.precomputed)return this;var z={doubles:null,naf:null,beta:null};return z.naf=this._getNAFPoints(8),z.doubles=this._getDoubles(4,V),z.beta=this._getBeta(),this.precomputed=z,this},I.prototype._hasDoubles=function(V){if(!this.precomputed)return!1;var z=this.precomputed.doubles;return z?z.points.length>=Math.ceil((V.bitLength()+1)/z.step):!1},I.prototype._getDoubles=function(V,z){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var j=[this],O=this,N=0;N<z;N+=V){for(var W=0;W<V;W++)O=O.dbl();j.push(O)}return{step:V,points:j}},I.prototype._getNAFPoints=function(V){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var z=[this],j=(1<<V)-1,O=j===1?null:this.dbl(),N=1;N<j;N++)z[N]=z[N-1].add(O);return{wnd:V,points:z}},I.prototype._getBeta=function(){return null},I.prototype.dblp=function(V){for(var z=this,j=0;j<V;j++)z=z.dbl();return z}}),r7=G0((l,g)=>{var E=T5(),M=k5(),F=p0(),S=X9(),G=E.assert;function U(z){S.call(this,"short",z),this.a=new M(z.a,16).toRed(this.red),this.b=new M(z.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(z),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}F(U,S),g.exports=U,U.prototype._getEndomorphism=function(z){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var j,O;if(z.beta)j=new M(z.beta,16).toRed(this.red);else{var N=this._getEndoRoots(this.p);j=N[0].cmp(N[1])<0?N[0]:N[1],j=j.toRed(this.red)}if(z.lambda)O=new M(z.lambda,16);else{var W=this._getEndoRoots(this.n);this.g.mul(W[0]).x.cmp(this.g.x.redMul(j))===0?O=W[0]:(O=W[1],G(this.g.mul(O).x.cmp(this.g.x.redMul(j))===0))}var D;return z.basis?D=z.basis.map(function(k){return{a:new M(k.a,16),b:new M(k.b,16)}}):D=this._getEndoBasis(O),{beta:j,lambda:O,basis:D}}},U.prototype._getEndoRoots=function(z){var j=z===this.p?this.red:M.mont(z),O=new M(2).toRed(j).redInvm(),N=O.redNeg(),W=new M(3).toRed(j).redNeg().redSqrt().redMul(O),D=N.redAdd(W).fromRed(),k=N.redSub(W).fromRed();return[D,k]},U.prototype._getEndoBasis=function(z){for(var j=this.n.ushrn(Math.floor(this.n.bitLength()/2)),O=z,N=this.n.clone(),W=new M(1),D=new M(0),k=new M(0),A=new M(1),x,v,y,p,c,n,i,H0=0,a,Z0;O.cmpn(0)!==0;){var K=N.div(O);a=N.sub(K.mul(O)),Z0=k.sub(K.mul(W));var X=A.sub(K.mul(D));if(!y&&a.cmp(j)<0)x=i.neg(),v=W,y=a.neg(),p=Z0;else if(y&&++H0===2)break;i=a,N=O,O=a,k=W,W=Z0,A=D,D=X}c=a.neg(),n=Z0;var Y=y.sqr().add(p.sqr()),H=c.sqr().add(n.sqr());return H.cmp(Y)>=0&&(c=x,n=v),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(z){var j=this.endo.basis,O=j[0],N=j[1],W=N.b.mul(z).divRound(this.n),D=O.b.neg().mul(z).divRound(this.n),k=W.mul(O.a),A=D.mul(N.a),x=W.mul(O.b),v=D.mul(N.b),y=z.sub(k).sub(A),p=x.add(v).neg();return{k1:y,k2:p}},U.prototype.pointFromX=function(z,j){z=new M(z,16),z.red||(z=z.toRed(this.red));var O=z.redSqr().redMul(z).redIAdd(z.redMul(this.a)).redIAdd(this.b),N=O.redSqrt();if(N.redSqr().redSub(O).cmp(this.zero)!==0)throw new Error("invalid point");var W=N.fromRed().isOdd();return(j&&!W||!j&&W)&&(N=N.redNeg()),this.point(z,N)},U.prototype.validate=function(z){if(z.inf)return!0;var{x:j,y:O}=z,N=this.a.redMul(j),W=j.redSqr().redMul(j).redIAdd(N).redIAdd(this.b);return O.redSqr().redISub(W).cmpn(0)===0},U.prototype._endoWnafMulAdd=function(z,j,O){for(var N=this._endoWnafT1,W=this._endoWnafT2,D=0;D<z.length;D++){var k=this._endoSplit(j[D]),A=z[D],x=A._getBeta();k.k1.negative&&(k.k1.ineg(),A=A.neg(!0)),k.k2.negative&&(k.k2.ineg(),x=x.neg(!0)),N[D*2]=A,N[D*2+1]=x,W[D*2]=k.k1,W[D*2+1]=k.k2}for(var v=this._wnafMulAdd(1,N,W,D*2,O),y=0;y<D*2;y++)N[y]=null,W[y]=null;return v};function I(z,j,O,N){S.BasePoint.call(this,z,"affine"),j===null&&O===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new M(j,16),this.y=new M(O,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)}F(I,S.BasePoint),U.prototype.point=function(z,j,O){return new I(this,z,j,O)},U.prototype.pointFromJSON=function(z,j){return I.fromJSON(this,z,j)},I.prototype._getBeta=function(){if(this.curve.endo){var z=this.precomputed;if(z&&z.beta)return z.beta;var j=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(z){var O=this.curve,N=function(W){return O.point(W.x.redMul(O.endo.beta),W.y)};z.beta=j,j.precomputed={beta:null,naf:z.naf&&{wnd:z.naf.wnd,points:z.naf.points.map(N)},doubles:z.doubles&&{step:z.doubles.step,points:z.doubles.points.map(N)}}}return j}},I.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]},I.fromJSON=function(z,j,O){typeof j=="string"&&(j=JSON.parse(j));var N=z.point(j[0],j[1],O);if(!j[2])return N;function W(k){return z.point(k[0],k[1],O)}var D=j[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},I.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)+">"},I.prototype.isInfinity=function(){return this.inf},I.prototype.add=function(z){if(this.inf)return z;if(z.inf)return this;if(this.eq(z))return this.dbl();if(this.neg().eq(z))return this.curve.point(null,null);if(this.x.cmp(z.x)===0)return this.curve.point(null,null);var j=this.y.redSub(z.y);j.cmpn(0)!==0&&(j=j.redMul(this.x.redSub(z.x).redInvm()));var O=j.redSqr().redISub(this.x).redISub(z.x),N=j.redMul(this.x.redSub(O)).redISub(this.y);return this.curve.point(O,N)},I.prototype.dbl=function(){if(this.inf)return this;var z=this.y.redAdd(this.y);if(z.cmpn(0)===0)return this.curve.point(null,null);var j=this.curve.a,O=this.x.redSqr(),N=z.redInvm(),W=O.redAdd(O).redIAdd(O).redIAdd(j).redMul(N),D=W.redSqr().redISub(this.x.redAdd(this.x)),k=W.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,k)},I.prototype.getX=function(){return this.x.fromRed()},I.prototype.getY=function(){return this.y.fromRed()},I.prototype.mul=function(z){return z=new M(z,16),this.isInfinity()?this:this._hasDoubles(z)?this.curve._fixedNafMul(this,z):this.curve.endo?this.curve._endoWnafMulAdd([this],[z]):this.curve._wnafMul(this,z)},I.prototype.mulAdd=function(z,j,O){var N=[this,j],W=[z,O];return this.curve.endo?this.curve._endoWnafMulAdd(N,W):this.curve._wnafMulAdd(1,N,W,2)},I.prototype.jmulAdd=function(z,j,O){var N=[this,j],W=[z,O];return this.curve.endo?this.curve._endoWnafMulAdd(N,W,!0):this.curve._wnafMulAdd(1,N,W,2,!0)},I.prototype.eq=function(z){return this===z||this.inf===z.inf&&(this.inf||this.x.cmp(z.x)===0&&this.y.cmp(z.y)===0)},I.prototype.neg=function(z){if(this.inf)return this;var j=this.curve.point(this.x,this.y.redNeg());if(z&&this.precomputed){var O=this.precomputed,N=function(W){return W.neg()};j.precomputed={naf:O.naf&&{wnd:O.naf.wnd,points:O.naf.points.map(N)},doubles:O.doubles&&{step:O.doubles.step,points:O.doubles.points.map(N)}}}return j},I.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var z=this.curve.jpoint(this.x,this.y,this.curve.one);return z};function V(z,j,O,N){S.BasePoint.call(this,z,"jacobian"),j===null&&O===null&&N===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new M(0)):(this.x=new M(j,16),this.y=new M(O,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}F(V,S.BasePoint),U.prototype.jpoint=function(z,j,O){return new V(this,z,j,O)},V.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var z=this.z.redInvm(),j=z.redSqr(),O=this.x.redMul(j),N=this.y.redMul(j).redMul(z);return this.curve.point(O,N)},V.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},V.prototype.add=function(z){if(this.isInfinity())return z;if(z.isInfinity())return this;var j=z.z.redSqr(),O=this.z.redSqr(),N=this.x.redMul(j),W=z.x.redMul(O),D=this.y.redMul(j.redMul(z.z)),k=z.y.redMul(O.redMul(this.z)),A=N.redSub(W),x=D.redSub(k);if(A.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var v=A.redSqr(),y=v.redMul(A),p=N.redMul(v),c=x.redSqr().redIAdd(y).redISub(p).redISub(p),n=x.redMul(p.redISub(c)).redISub(D.redMul(y)),i=this.z.redMul(z.z).redMul(A);return this.curve.jpoint(c,n,i)},V.prototype.mixedAdd=function(z){if(this.isInfinity())return z.toJ();if(z.isInfinity())return this;var j=this.z.redSqr(),O=this.x,N=z.x.redMul(j),W=this.y,D=z.y.redMul(j).redMul(this.z),k=O.redSub(N),A=W.redSub(D);if(k.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=k.redSqr(),v=x.redMul(k),y=O.redMul(x),p=A.redSqr().redIAdd(v).redISub(y).redISub(y),c=A.redMul(y.redISub(p)).redISub(W.redMul(v)),n=this.z.redMul(k);return this.curve.jpoint(p,c,n)},V.prototype.dblp=function(z){if(z===0)return this;if(this.isInfinity())return this;if(!z)return this.dbl();var j;if(this.curve.zeroA||this.curve.threeA){var O=this;for(j=0;j<z;j++)O=O.dbl();return O}var N=this.curve.a,W=this.curve.tinv,D=this.x,k=this.y,A=this.z,x=A.redSqr().redSqr(),v=k.redAdd(k);for(j=0;j<z;j++){var y=D.redSqr(),p=v.redSqr(),c=p.redSqr(),n=y.redAdd(y).redIAdd(y).redIAdd(N.redMul(x)),i=D.redMul(p),H0=n.redSqr().redISub(i.redAdd(i)),a=i.redISub(H0),Z0=n.redMul(a);Z0=Z0.redIAdd(Z0).redISub(c);var K=v.redMul(A);j+1<z&&(x=x.redMul(c)),D=H0,A=K,v=Z0}return this.curve.jpoint(D,v.redMul(W),A)},V.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},V.prototype._zeroDbl=function(){var z,j,O;if(this.zOne){var N=this.x.redSqr(),W=this.y.redSqr(),D=W.redSqr(),k=this.x.redAdd(W).redSqr().redISub(N).redISub(D);k=k.redIAdd(k);var A=N.redAdd(N).redIAdd(N),x=A.redSqr().redISub(k).redISub(k),v=D.redIAdd(D);v=v.redIAdd(v),v=v.redIAdd(v),z=x,j=A.redMul(k.redISub(x)).redISub(v),O=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),H0=i.redSqr(),a=c.redIAdd(c);a=a.redIAdd(a),a=a.redIAdd(a),z=H0.redISub(n).redISub(n),j=i.redMul(n.redISub(z)).redISub(a),O=this.y.redMul(this.z),O=O.redIAdd(O)}return this.curve.jpoint(z,j,O)},V.prototype._threeDbl=function(){var z,j,O;if(this.zOne){var N=this.x.redSqr(),W=this.y.redSqr(),D=W.redSqr(),k=this.x.redAdd(W).redSqr().redISub(N).redISub(D);k=k.redIAdd(k);var A=N.redAdd(N).redIAdd(N).redIAdd(this.curve.a),x=A.redSqr().redISub(k).redISub(k);z=x;var v=D.redIAdd(D);v=v.redIAdd(v),v=v.redIAdd(v),j=A.redMul(k.redISub(x)).redISub(v),O=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 H0=i.redAdd(i);z=n.redSqr().redISub(H0),O=this.y.redAdd(this.z).redSqr().redISub(p).redISub(y);var a=p.redSqr();a=a.redIAdd(a),a=a.redIAdd(a),a=a.redIAdd(a),j=n.redMul(i.redISub(z)).redISub(a)}return this.curve.jpoint(z,j,O)},V.prototype._dbl=function(){var z=this.curve.a,j=this.x,O=this.y,N=this.z,W=N.redSqr().redSqr(),D=j.redSqr(),k=O.redSqr(),A=D.redAdd(D).redIAdd(D).redIAdd(z.redMul(W)),x=j.redAdd(j);x=x.redIAdd(x);var v=x.redMul(k),y=A.redSqr().redISub(v.redAdd(v)),p=v.redISub(y),c=k.redSqr();c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var n=A.redMul(p).redISub(c),i=O.redAdd(O).redMul(N);return this.curve.jpoint(y,n,i)},V.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var z=this.x.redSqr(),j=this.y.redSqr(),O=this.z.redSqr(),N=j.redSqr(),W=z.redAdd(z).redIAdd(z),D=W.redSqr(),k=this.x.redAdd(j).redSqr().redISub(z).redISub(N);k=k.redIAdd(k),k=k.redAdd(k).redIAdd(k),k=k.redISub(D);var A=k.redSqr(),x=N.redIAdd(N);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var v=W.redIAdd(k).redSqr().redISub(D).redISub(A).redISub(x),y=j.redMul(v);y=y.redIAdd(y),y=y.redIAdd(y);var p=this.x.redMul(A).redISub(y);p=p.redIAdd(p),p=p.redIAdd(p);var c=this.y.redMul(v.redMul(x.redISub(v)).redISub(k.redMul(A)));c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var n=this.z.redAdd(k).redSqr().redISub(O).redISub(A);return this.curve.jpoint(p,c,n)},V.prototype.mul=function(z,j){return z=new M(z,j),this.curve._wnafMul(this,z)},V.prototype.eq=function(z){if(z.type==="affine")return this.eq(z.toJ());if(this===z)return!0;var j=this.z.redSqr(),O=z.z.redSqr();if(this.x.redMul(O).redISub(z.x.redMul(j)).cmpn(0)!==0)return!1;var N=j.redMul(this.z),W=O.redMul(z.z);return this.y.redMul(W).redISub(z.y.redMul(N)).cmpn(0)===0},V.prototype.eqXToP=function(z){var j=this.z.redSqr(),O=z.toRed(this.curve.red).redMul(j);if(this.x.cmp(O)===0)return!0;for(var N=z.clone(),W=this.curve.redN.redMul(j);;){if(N.iadd(this.curve.n),N.cmp(this.curve.p)>=0)return!1;if(O.redIAdd(W),this.x.cmp(O)===0)return!0}},V.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)+">"},V.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),i7=G0((l,g)=>{var E=k5(),M=p0(),F=X9(),S=T5();function G(I){F.call(this,"mont",I),this.a=new E(I.a,16).toRed(this.red),this.b=new E(I.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(G,F),g.exports=G,G.prototype.validate=function(I){var V=I.normalize().x,z=V.redSqr(),j=z.redMul(V).redAdd(z.redMul(this.a)).redAdd(V),O=j.redSqrt();return O.redSqr().cmp(j)===0};function U(I,V,z){F.BasePoint.call(this,I,"projective"),V===null&&z===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new E(V,16),this.z=new E(z,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,F.BasePoint),G.prototype.decodePoint=function(I,V){return this.point(S.toArray(I,V),1)},G.prototype.point=function(I,V){return new U(this,I,V)},G.prototype.pointFromJSON=function(I){return U.fromJSON(this,I)},U.prototype.precompute=function(){},U.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},U.fromJSON=function(I,V){return new U(I,V[0],V[1]||I.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 I=this.x.redAdd(this.z),V=I.redSqr(),z=this.x.redSub(this.z),j=z.redSqr(),O=V.redSub(j),N=V.redMul(j),W=O.redMul(j.redAdd(this.curve.a24.redMul(O)));return this.curve.point(N,W)},U.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},U.prototype.diffAdd=function(I,V){var z=this.x.redAdd(this.z),j=this.x.redSub(this.z),O=I.x.redAdd(I.z),N=I.x.redSub(I.z),W=N.redMul(z),D=O.redMul(j),k=V.z.redMul(W.redAdd(D).redSqr()),A=V.x.redMul(W.redISub(D).redSqr());return this.curve.point(k,A)},U.prototype.mul=function(I){for(var V=I.clone(),z=this,j=this.curve.point(null,null),O=this,N=[];V.cmpn(0)!==0;V.iushrn(1))N.push(V.andln(1));for(var W=N.length-1;W>=0;W--)N[W]===0?(z=z.diffAdd(j,O),j=j.dbl()):(j=z.diffAdd(j,O),z=z.dbl());return j},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(I){return this.getX().cmp(I.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()}}),t7=G0((l,g)=>{var E=T5(),M=k5(),F=p0(),S=X9(),G=E.assert;function U(V){this.twisted=(V.a|0)!==1,this.mOneA=this.twisted&&(V.a|0)===-1,this.extended=this.mOneA,S.call(this,"edwards",V),this.a=new M(V.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new M(V.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new M(V.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),G(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(V.c|0)===1}F(U,S),g.exports=U,U.prototype._mulA=function(V){return this.mOneA?V.redNeg():this.a.redMul(V)},U.prototype._mulC=function(V){return this.oneC?V:this.c.redMul(V)},U.prototype.jpoint=function(V,z,j,O){return this.point(V,z,j,O)},U.prototype.pointFromX=function(V,z){V=new M(V,16),V.red||(V=V.toRed(this.red));var j=V.redSqr(),O=this.c2.redSub(this.a.redMul(j)),N=this.one.redSub(this.c2.redMul(this.d).redMul(j)),W=O.redMul(N.redInvm()),D=W.redSqrt();if(D.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");var k=D.fromRed().isOdd();return(z&&!k||!z&&k)&&(D=D.redNeg()),this.point(V,D)},U.prototype.pointFromY=function(V,z){V=new M(V,16),V.red||(V=V.toRed(this.red));var j=V.redSqr(),O=j.redSub(this.c2),N=j.redMul(this.d).redMul(this.c2).redSub(this.a),W=O.redMul(N.redInvm());if(W.cmp(this.zero)===0){if(z)throw new Error("invalid point");return this.point(this.zero,V)}var D=W.redSqrt();if(D.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");return D.fromRed().isOdd()!==z&&(D=D.redNeg()),this.point(D,V)},U.prototype.validate=function(V){if(V.isInfinity())return!0;V.normalize();var z=V.x.redSqr(),j=V.y.redSqr(),O=z.redMul(this.a).redAdd(j),N=this.c2.redMul(this.one.redAdd(this.d.redMul(z).redMul(j)));return O.cmp(N)===0};function I(V,z,j,O,N){S.BasePoint.call(this,V,"projective"),z===null&&j===null&&O===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(z,16),this.y=new M(j,16),this.z=O?new M(O,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()))))}F(I,S.BasePoint),U.prototype.pointFromJSON=function(V){return I.fromJSON(this,V)},U.prototype.point=function(V,z,j,O){return new I(this,V,z,j,O)},I.fromJSON=function(V,z){return new I(V,z[0],z[1],z[2])},I.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)+">"},I.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},I.prototype._extDbl=function(){var V=this.x.redSqr(),z=this.y.redSqr(),j=this.z.redSqr();j=j.redIAdd(j);var O=this.curve._mulA(V),N=this.x.redAdd(this.y).redSqr().redISub(V).redISub(z),W=O.redAdd(z),D=W.redSub(j),k=O.redSub(z),A=N.redMul(D),x=W.redMul(k),v=N.redMul(k),y=D.redMul(W);return this.curve.point(A,x,y,v)},I.prototype._projDbl=function(){var V=this.x.redAdd(this.y).redSqr(),z=this.x.redSqr(),j=this.y.redSqr(),O,N,W,D,k,A;if(this.curve.twisted){D=this.curve._mulA(z);var x=D.redAdd(j);this.zOne?(O=V.redSub(z).redSub(j).redMul(x.redSub(this.curve.two)),N=x.redMul(D.redSub(j)),W=x.redSqr().redSub(x).redSub(x)):(k=this.z.redSqr(),A=x.redSub(k).redISub(k),O=V.redSub(z).redISub(j).redMul(A),N=x.redMul(D.redSub(j)),W=x.redMul(A))}else D=z.redAdd(j),k=this.curve._mulC(this.z).redSqr(),A=D.redSub(k).redSub(k),O=this.curve._mulC(V.redISub(D)).redMul(A),N=this.curve._mulC(D).redMul(z.redISub(j)),W=D.redMul(A);return this.curve.point(O,N,W)},I.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},I.prototype._extAdd=function(V){var z=this.y.redSub(this.x).redMul(V.y.redSub(V.x)),j=this.y.redAdd(this.x).redMul(V.y.redAdd(V.x)),O=this.t.redMul(this.curve.dd).redMul(V.t),N=this.z.redMul(V.z.redAdd(V.z)),W=j.redSub(z),D=N.redSub(O),k=N.redAdd(O),A=j.redAdd(z),x=W.redMul(D),v=k.redMul(A),y=W.redMul(A),p=D.redMul(k);return this.curve.point(x,v,p,y)},I.prototype._projAdd=function(V){var z=this.z.redMul(V.z),j=z.redSqr(),O=this.x.redMul(V.x),N=this.y.redMul(V.y),W=this.curve.d.redMul(O).redMul(N),D=j.redSub(W),k=j.redAdd(W),A=this.x.redAdd(this.y).redMul(V.x.redAdd(V.y)).redISub(O).redISub(N),x=z.redMul(D).redMul(A),v,y;return this.curve.twisted?(v=z.redMul(k).redMul(N.redSub(this.curve._mulA(O))),y=D.redMul(k)):(v=z.redMul(k).redMul(N.redSub(O)),y=this.curve._mulC(D).redMul(k)),this.curve.point(x,v,y)},I.prototype.add=function(V){return this.isInfinity()?V:V.isInfinity()?this:this.curve.extended?this._extAdd(V):this._projAdd(V)},I.prototype.mul=function(V){return this._hasDoubles(V)?this.curve._fixedNafMul(this,V):this.curve._wnafMul(this,V)},I.prototype.mulAdd=function(V,z,j){return this.curve._wnafMulAdd(1,[this,z],[V,j],2,!1)},I.prototype.jmulAdd=function(V,z,j){return this.curve._wnafMulAdd(1,[this,z],[V,j],2,!0)},I.prototype.normalize=function(){if(this.zOne)return this;var V=this.z.redInvm();return this.x=this.x.redMul(V),this.y=this.y.redMul(V),this.t&&(this.t=this.t.redMul(V)),this.z=this.curve.one,this.zOne=!0,this},I.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},I.prototype.getX=function(){return this.normalize(),this.x.fromRed()},I.prototype.getY=function(){return this.normalize(),this.y.fromRed()},I.prototype.eq=function(V){return this===V||this.getX().cmp(V.getX())===0&&this.getY().cmp(V.getY())===0},I.prototype.eqXToP=function(V){var z=V.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(z)===0)return!0;for(var j=V.clone(),O=this.curve.redN.redMul(this.z);;){if(j.iadd(this.curve.n),j.cmp(this.curve.p)>=0)return!1;if(z.redIAdd(O),this.x.cmp(z)===0)return!0}},I.prototype.toP=I.prototype.normalize,I.prototype.mixedAdd=I.prototype.add}),R6=G0((l)=>{var g=l;g.base=X9(),g.short=r7(),g.mont=i7(),g.edwards=t7()}),D5=G0((l)=>{var g=V5(),E=p0();l.inherits=E;function M(X,Y){return(X.charCodeAt(Y)&64512)!==55296||Y<0||Y+1>=X.length?!1:(X.charCodeAt(Y+1)&64512)===56320}function F(X,Y){if(Array.isArray(X))return X.slice();if(!X)return[];var H=[];if(typeof X=="string")if(Y){if(Y==="hex")for(X=X.replace(/[^a-z0-9]+/ig,""),X.length%2!==0&&(X="0"+X),Z=0;Z<X.length;Z+=2)H.push(parseInt(X[Z]+X[Z+1],16))}else for(var Q=0,Z=0;Z<X.length;Z++){var P=X.charCodeAt(Z);P<128?H[Q++]=P:P<2048?(H[Q++]=P>>6|192,H[Q++]=P&63|128):M(X,Z)?(P=65536+((P&1023)<<10)+(X.charCodeAt(++Z)&1023),H[Q++]=P>>18|240,H[Q++]=P>>12&63|128,H[Q++]=P>>6&63|128,H[Q++]=P&63|128):(H[Q++]=P>>12|224,H[Q++]=P>>6&63|128,H[Q++]=P&63|128)}else for(Z=0;Z<X.length;Z++)H[Z]=X[Z]|0;return H}l.toArray=F;function S(X){for(var Y="",H=0;H<X.length;H++)Y+=I(X[H].toString(16));return Y}l.toHex=S;function G(X){var Y=X>>>24|X>>>8&65280|X<<8&16711680|(X&255)<<24;return Y>>>0}l.htonl=G;function U(X,Y){for(var H="",Q=0;Q<X.length;Q++){var Z=X[Q];Y==="little"&&(Z=G(Z)),H+=V(Z.toString(16))}return H}l.toHex32=U;function I(X){return X.length===1?"0"+X:X}l.zero2=I;function V(X){return X.length===7?"0"+X:X.length===6?"00"+X:X.length===5?"000"+X:X.length===4?"0000"+X:X.length===3?"00000"+X:X.length===2?"000000"+X:X.length===1?"0000000"+X:X}l.zero8=V;function z(X,Y,H,Q){var Z=H-Y;g(Z%4===0);for(var P=new Array(Z/4),$=0,C=Y;$<P.length;$++,C+=4){var J;Q==="big"?J=X[C]<<24|X[C+1]<<16|X[C+2]<<8|X[C+3]:J=X[C+3]<<24|X[C+2]<<16|X[C+1]<<8|X[C],P[$]=J>>>0}return P}l.join32=z;function j(X,Y){for(var H=new Array(X.length*4),Q=0,Z=0;Q<X.length;Q++,Z+=4){var P=X[Q];Y==="big"?(H[Z]=P>>>24,H[Z+1]=P>>>16&255,H[Z+2]=P>>>8&255,H[Z+3]=P&255):(H[Z+3]=P>>>24,H[Z+2]=P>>>16&255,H[Z+1]=P>>>8&255,H[Z]=P&255)}return H}l.split32=j;function O(X,Y){return X>>>Y|X<<32-Y}l.rotr32=O;function N(X,Y){return X<<Y|X>>>32-Y}l.rotl32=N;function W(X,Y){return X+Y>>>0}l.sum32=W;function D(X,Y,H){return X+Y+H>>>0}l.sum32_3=D;function k(X,Y,H,Q){return X+Y+H+Q>>>0}l.sum32_4=k;function A(X,Y,H,Q,Z){return X+Y+H+Q+Z>>>0}l.sum32_5=A;function x(X,Y,H,Q){var Z=X[Y],P=X[Y+1],$=Q+P>>>0,C=($<Q?1:0)+H+Z;X[Y]=C>>>0,X[Y+1]=$}l.sum64=x;function v(X,Y,H,Q){var Z=Y+Q>>>0,P=(Z<Y?1:0)+X+H;return P>>>0}l.sum64_hi=v;function y(X,Y,H,Q){var Z=Y+Q;return Z>>>0}l.sum64_lo=y;function p(X,Y,H,Q,Z,P,$,C){var J=0,R=Y;R=R+Q>>>0,J+=R<Y?1:0,R=R+P>>>0,J+=R<P?1:0,R=R+C>>>0,J+=R<C?1:0;var L=X+H+Z+$+J;return L>>>0}l.sum64_4_hi=p;function c(X,Y,H,Q,Z,P,$,C){var J=Y+Q+P+C;return J>>>0}l.sum64_4_lo=c;function n(X,Y,H,Q,Z,P,$,C,J,R){var L=0,_=Y;_=_+Q>>>0,L+=_<Y?1:0,_=_+P>>>0,L+=_<P?1:0,_=_+C>>>0,L+=_<C?1:0,_=_+R>>>0,L+=_<R?1:0;var s=X+H+Z+$+J+L;return s>>>0}l.sum64_5_hi=n;function i(X,Y,H,Q,Z,P,$,C,J,R){var L=Y+Q+P+C+R;return L>>>0}l.sum64_5_lo=i;function H0(X,Y,H){var Q=Y<<32-H|X>>>H;return Q>>>0}l.rotr64_hi=H0;function a(X,Y,H){var Q=X<<32-H|Y>>>H;return Q>>>0}l.rotr64_lo=a;function Z0(X,Y,H){return X>>>H}l.shr64_hi=Z0;function K(X,Y,H){var Q=X<<32-H|Y>>>H;return Q>>>0}l.shr64_lo=K}),o5=G0((l)=>{var g=D5(),E=V5();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(F,S){if(F=g.toArray(F,S),this.pending?this.pending=this.pending.concat(F):this.pending=F,this.pendingTotal+=F.length,this.pending.length>=this._delta8){F=this.pending;var G=F.length%this._delta8;this.pending=F.slice(F.length-G,F.length),this.pending.length===0&&(this.pending=null),F=g.join32(F,0,F.length-G,this.endian);for(var U=0;U<F.length;U+=this._delta32)this._update(F,U,U+this._delta32)}return this},M.prototype.digest=function(F){return this.update(this._pad()),E(this.pending===null),this._digest(F)},M.prototype._pad=function(){var F=this.pendingTotal,S=this._delta8,G=S-(F+this.padLength)%S,U=new Array(G+this.padLength);U[0]=128;for(var I=1;I<G;I++)U[I]=0;if(F<<=3,this.endian==="big"){for(var V=8;V<this.padLength;V++)U[I++]=0;U[I++]=0,U[I++]=0,U[I++]=0,U[I++]=0,U[I++]=F>>>24&255,U[I++]=F>>>16&255,U[I++]=F>>>8&255,U[I++]=F&255}else for(U[I++]=F&255,U[I++]=F>>>8&255,U[I++]=F>>>16&255,U[I++]=F>>>24&255,U[I++]=0,U[I++]=0,U[I++]=0,U[I++]=0,V=8;V<this.padLength;V++)U[I++]=0;return U}}),E6=G0((l)=>{var g=D5(),E=g.rotr32;function M(j,O,N,W){if(j===0)return F(O,N,W);if(j===1||j===3)return G(O,N,W);if(j===2)return S(O,N,W)}l.ft_1=M;function F(j,O,N){return j&O^~j&N}l.ch32=F;function S(j,O,N){return j&O^j&N^O&N}l.maj32=S;function G(j,O,N){return j^O^N}l.p32=G;function U(j){return E(j,2)^E(j,13)^E(j,22)}l.s0_256=U;function I(j){return E(j,6)^E(j,11)^E(j,25)}l.s1_256=I;function V(j){return E(j,7)^E(j,18)^j>>>3}l.g0_256=V;function z(j){return E(j,17)^E(j,19)^j>>>10}l.g1_256=z}),e7=G0((l,g)=>{var E=D5(),M=o5(),F=E6(),S=E.rotl32,G=E.sum32,U=E.sum32_5,I=F.ft_1,V=M.BlockHash,z=[1518500249,1859775393,2400959708,3395469782];function j(){if(!(this instanceof j))return new j;V.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}E.inherits(j,V),g.exports=j,j.blockSize=512,j.outSize=160,j.hmacStrength=80,j.padLength=64,j.prototype._update=function(O,N){for(var W=this.W,D=0;D<16;D++)W[D]=O[N+D];for(;D<W.length;D++)W[D]=S(W[D-3]^W[D-8]^W[D-14]^W[D-16],1);var k=this.h[0],A=this.h[1],x=this.h[2],v=this.h[3],y=this.h[4];for(D=0;D<W.length;D++){var p=~~(D/20),c=U(S(k,5),I(p,A,x,v),y,W[D],z[p]);y=v,v=x,x=S(A,30),A=k,k=c}this.h[0]=G(this.h[0],k),this.h[1]=G(this.h[1],A),this.h[2]=G(this.h[2],x),this.h[3]=G(this.h[3],v),this.h[4]=G(this.h[4],y)},j.prototype._digest=function(O){return O==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),S6=G0((l,g)=>{var E=D5(),M=o5(),F=E6(),S=V5(),G=E.sum32,U=E.sum32_4,I=E.sum32_5,V=F.ch32,z=F.maj32,j=F.s0_256,O=F.s1_256,N=F.g0_256,W=F.g1_256,D=M.BlockHash,k=[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 A(){if(!(this instanceof A))return new A;D.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=k,this.W=new Array(64)}E.inherits(A,D),g.exports=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(x,v){for(var y=this.W,p=0;p<16;p++)y[p]=x[v+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],H0=this.h[3],a=this.h[4],Z0=this.h[5],K=this.h[6],X=this.h[7];for(S(this.k.length===y.length),p=0;p<y.length;p++){var Y=I(X,O(a),V(a,Z0,K),this.k[p],y[p]),H=G(j(c),z(c,n,i));X=K,K=Z0,Z0=a,a=G(H0,Y),H0=i,i=n,n=c,c=G(Y,H)}this.h[0]=G(this.h[0],c),this.h[1]=G(this.h[1],n),this.h[2]=G(this.h[2],i),this.h[3]=G(this.h[3],H0),this.h[4]=G(this.h[4],a),this.h[5]=G(this.h[5],Z0),this.h[6]=G(this.h[6],K),this.h[7]=G(this.h[7],X)},A.prototype._digest=function(x){return x==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),K8=G0((l,g)=>{var E=D5(),M=S6();function F(){if(!(this instanceof F))return new F;M.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}E.inherits(F,M),g.exports=F,F.blockSize=512,F.outSize=224,F.hmacStrength=192,F.padLength=64,F.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,7),"big"):E.split32(this.h.slice(0,7),"big")}}),x6=G0((l,g)=>{var E=D5(),M=o5(),F=V5(),S=E.rotr64_hi,G=E.rotr64_lo,U=E.shr64_hi,I=E.shr64_lo,V=E.sum64,z=E.sum64_hi,j=E.sum64_lo,O=E.sum64_4_hi,N=E.sum64_4_lo,W=E.sum64_5_hi,D=E.sum64_5_lo,k=M.BlockHash,A=[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;k.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=A,this.W=new Array(160)}E.inherits(x,k),g.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(H,Q){for(var Z=this.W,P=0;P<32;P++)Z[P]=H[Q+P];for(;P<Z.length;P+=2){var $=X(Z[P-4],Z[P-3]),C=Y(Z[P-4],Z[P-3]),J=Z[P-14],R=Z[P-13],L=Z0(Z[P-30],Z[P-29]),_=K(Z[P-30],Z[P-29]),s=Z[P-32],r=Z[P-31];Z[P]=O($,C,J,R,L,_,s,r),Z[P+1]=N($,C,J,R,L,_,s,r)}},x.prototype._update=function(H,Q){this._prepareBlock(H,Q);var Z=this.W,P=this.h[0],$=this.h[1],C=this.h[2],J=this.h[3],R=this.h[4],L=this.h[5],_=this.h[6],s=this.h[7],r=this.h[8],X0=this.h[9],u=this.h[10],d=this.h[11],f=this.h[12],z0=this.h[13],K0=this.h[14],Q0=this.h[15];F(this.k.length===Z.length);for(var w=0;w<Z.length;w+=2){var q=K0,m=Q0,e=H0(r,X0),C0=a(r,X0),t=v(r,X0,u,d,f,z0),_0=y(r,X0,u,d,f,z0),$0=this.k[w],J0=this.k[w+1],w0=Z[w],W0=Z[w+1],P0=W(q,m,e,C0,t,_0,$0,J0,w0,W0),c0=D(q,m,e,C0,t,_0,$0,J0,w0,W0);q=n(P,$),m=i(P,$),e=p(P,$,C,J,R,L),C0=c(P,$,C,J,R,L);var T=z(q,m,e,C0),B=j(q,m,e,C0);K0=f,Q0=z0,f=u,z0=d,u=r,d=X0,r=z(_,s,P0,c0),X0=j(s,s,P0,c0),_=R,s=L,R=C,L=J,C=P,J=$,P=z(P0,c0,T,B),$=j(P0,c0,T,B)}V(this.h,0,P,$),V(this.h,2,C,J),V(this.h,4,R,L),V(this.h,6,_,s),V(this.h,8,r,X0),V(this.h,10,u,d),V(this.h,12,f,z0),V(this.h,14,K0,Q0)},x.prototype._digest=function(H){return H==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")};function v(H,Q,Z,P,$){var C=H&Z^~H&$;return C<0&&(C+=4294967296),C}function y(H,Q,Z,P,$,C){var J=Q&P^~Q&C;return J<0&&(J+=4294967296),J}function p(H,Q,Z,P,$){var C=H&Z^H&$^Z&$;return C<0&&(C+=4294967296),C}function c(H,Q,Z,P,$,C){var J=Q&P^Q&C^P&C;return J<0&&(J+=4294967296),J}function n(H,Q){var Z=S(H,Q,28),P=S(Q,H,2),$=S(Q,H,7),C=Z^P^$;return C<0&&(C+=4294967296),C}function i(H,Q){var Z=G(H,Q,28),P=G(Q,H,2),$=G(Q,H,7),C=Z^P^$;return C<0&&(C+=4294967296),C}function H0(H,Q){var Z=S(H,Q,14),P=S(H,Q,18),$=S(Q,H,9),C=Z^P^$;return C<0&&(C+=4294967296),C}function a(H,Q){var Z=G(H,Q,14),P=G(H,Q,18),$=G(Q,H,9),C=Z^P^$;return C<0&&(C+=4294967296),C}function Z0(H,Q){var Z=S(H,Q,1),P=S(H,Q,8),$=U(H,Q,7),C=Z^P^$;return C<0&&(C+=4294967296),C}function K(H,Q){var Z=G(H,Q,1),P=G(H,Q,8),$=I(H,Q,7),C=Z^P^$;return C<0&&(C+=4294967296),C}function X(H,Q){var Z=S(H,Q,19),P=S(Q,H,29),$=U(H,Q,6),C=Z^P^$;return C<0&&(C+=4294967296),C}function Y(H,Q){var Z=G(H,Q,19),P=G(Q,H,29),$=I(H,Q,6),C=Z^P^$;return C<0&&(C+=4294967296),C}}),C8=G0((l,g)=>{var E=D5(),M=x6();function F(){if(!(this instanceof F))return new F;M.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}E.inherits(F,M),g.exports=F,F.blockSize=1024,F.outSize=384,F.hmacStrength=192,F.padLength=128,F.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,12),"big"):E.split32(this.h.slice(0,12),"big")}}),X8=G0((l)=>{l.sha1=e7(),l.sha224=K8(),l.sha256=S6(),l.sha384=C8(),l.sha512=x6()}),H8=G0((l)=>{var g=D5(),E=o5(),M=g.rotl32,F=g.sum32,S=g.sum32_3,G=g.sum32_4,U=E.BlockHash;function I(){if(!(this instanceof I))return new I;U.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}g.inherits(I,U),l.ripemd160=I,I.blockSize=512,I.outSize=160,I.hmacStrength=192,I.padLength=64,I.prototype._update=function(k,A){for(var x=this.h[0],v=this.h[1],y=this.h[2],p=this.h[3],c=this.h[4],n=x,i=v,H0=y,a=p,Z0=c,K=0;K<80;K++){var X=F(M(G(x,V(K,v,y,p),k[O[K]+A],z(K)),W[K]),c);x=c,c=p,p=M(y,10),y=v,v=X,X=F(M(G(n,V(79-K,i,H0,a),k[N[K]+A],j(K)),D[K]),Z0),n=Z0,Z0=a,a=M(H0,10),H0=i,i=X}X=S(this.h[1],y,a),this.h[1]=S(this.h[2],p,Z0),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],v,H0),this.h[0]=X},I.prototype._digest=function(k){return k==="hex"?g.toHex32(this.h,"little"):g.split32(this.h,"little")};function V(k,A,x,v){return k<=15?A^x^v:k<=31?A&x|~A&v:k<=47?(A|~x)^v:k<=63?A&v|x&~v:A^(x|~v)}function z(k){return k<=15?0:k<=31?1518500249:k<=47?1859775393:k<=63?2400959708:2840853838}function j(k){return k<=15?1352829926:k<=31?1548603684:k<=47?1836072691:k<=63?2053994217:0}var O=[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]}),Y8=G0((l,g)=>{var E=D5(),M=V5();function F(S,G,U){if(!(this instanceof F))return new F(S,G,U);this.Hash=S,this.blockSize=S.blockSize/8,this.outSize=S.outSize/8,this.inner=null,this.outer=null,this._init(E.toArray(G,U))}g.exports=F,F.prototype._init=function(S){S.length>this.blockSize&&(S=new this.Hash().update(S).digest()),M(S.length<=this.blockSize);for(var G=S.length;G<this.blockSize;G++)S.push(0);for(G=0;G<S.length;G++)S[G]^=54;for(this.inner=new this.Hash().update(S),G=0;G<S.length;G++)S[G]^=106;this.outer=new this.Hash().update(S)},F.prototype.update=function(S,G){return this.inner.update(S,G),this},F.prototype.digest=function(S){return this.outer.update(this.inner.digest()),this.outer.digest(S)}}),S9=G0((l)=>{var g=l;g.utils=D5(),g.common=o5(),g.sha=X8(),g.ripemd=H8(),g.hmac=Y8(),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}),Q8=G0((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"]]}}}),x9=G0((l)=>{var g=l,E=S9(),M=R6(),F=T5(),S=F.assert;function G(V){V.type==="short"?this.curve=new M.short(V):V.type==="edwards"?this.curve=new M.edwards(V):this.curve=new M.mont(V),this.g=this.curve.g,this.n=this.curve.n,this.hash=V.hash,S(this.g.validate(),"Invalid curve"),S(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}g.PresetCurve=G;function U(V,z){Object.defineProperty(g,V,{configurable:!0,enumerable:!0,get:function(){var j=new G(z);return Object.defineProperty(g,V,{configurable:!0,enumerable:!0,value:j}),j}})}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 I;try{I=Q8()}catch{I=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",I]})}),$8=G0((l,g)=>{var E=S9(),M=B6(),F=V5();function S(G){if(!(this instanceof S))return new S(G);this.hash=G.hash,this.predResist=!!G.predResist,this.outLen=this.hash.outSize,this.minEntropy=G.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var U=M.toArray(G.entropy,G.entropyEnc||"hex"),I=M.toArray(G.nonce,G.nonceEnc||"hex"),V=M.toArray(G.pers,G.persEnc||"hex");F(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(U,I,V)}g.exports=S,S.prototype._init=function(G,U,I){var V=G.concat(U).concat(I);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var z=0;z<this.V.length;z++)this.K[z]=0,this.V[z]=1;this._update(V),this._reseed=1,this.reseedInterval=281474976710656},S.prototype._hmac=function(){return new E.hmac(this.hash,this.K)},S.prototype._update=function(G){var U=this._hmac().update(this.V).update([0]);G&&(U=U.update(G)),this.K=U.digest(),this.V=this._hmac().update(this.V).digest(),G&&(this.K=this._hmac().update(this.V).update([1]).update(G).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(G,U,I,V){typeof U!="string"&&(V=I,I=U,U=null),G=M.toArray(G,U),I=M.toArray(I,V),F(G.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(G.concat(I||[])),this._reseed=1},S.prototype.generate=function(G,U,I,V){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof U!="string"&&(V=I,I=U,U=null),I&&(I=M.toArray(I,V||"hex"),this._update(I));for(var z=[];z.length<G;)this.V=this._hmac().update(this.V).digest(),z=z.concat(this.V);var j=z.slice(0,G);return this._update(I),this._reseed++,M.encode(j,U)}}),G8=G0((l,g)=>{var E=k5(),M=T5(),F=M.assert;function S(G,U){this.ec=G,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(G,U,I){return U instanceof S?U:new S(G,{pub:U,pubEnc:I})},S.fromPrivate=function(G,U,I){return U instanceof S?U:new S(G,{priv:U,privEnc:I})},S.prototype.validate=function(){var G=this.getPublic();return G.isInfinity()?{result:!1,reason:"Invalid public key"}:G.validate()?G.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(G,U){return typeof G=="string"&&(U=G,G=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),U?this.pub.encode(U,G):this.pub},S.prototype.getPrivate=function(G){return G==="hex"?this.priv.toString(16,2):this.priv},S.prototype._importPrivate=function(G,U){this.priv=new E(G,U||16),this.priv=this.priv.umod(this.ec.curve.n)},S.prototype._importPublic=function(G,U){if(G.x||G.y){this.ec.curve.type==="mont"?F(G.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&F(G.x&&G.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(G.x,G.y);return}this.pub=this.ec.curve.decodePoint(G,U)},S.prototype.derive=function(G){return G.validate()||F(G.validate(),"public point not validated"),G.mul(this.priv).getX()},S.prototype.sign=function(G,U,I){return this.ec.sign(G,this,U,I)},S.prototype.verify=function(G,U){return this.ec.verify(G,U,this)},S.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),J8=G0((l,g)=>{var E=k5(),M=T5(),F=M.assert;function S(z,j){if(z instanceof S)return z;this._importDER(z,j)||(F(z.r&&z.s,"Signature without r or s"),this.r=new E(z.r,16),this.s=new E(z.s,16),z.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=z.recoveryParam)}g.exports=S;function G(){this.place=0}function U(z,j){var O=z[j.place++];if(!(O&128))return O;var N=O&15;if(N===0||N>4)return!1;for(var W=0,D=0,k=j.place;D<N;D++,k++)W<<=8,W|=z[k],W>>>=0;return W<=127?!1:(j.place=k,W)}function I(z){for(var j=0,O=z.length-1;!z[j]&&!(z[j+1]&128)&&j<O;)j++;return j===0?z:z.slice(j)}S.prototype._importDER=function(z,j){z=M.toArray(z,j);var O=new G;if(z[O.place++]!==48)return!1;var N=U(z,O);if(N===!1||N+O.place!==z.length||z[O.place++]!==2)return!1;var W=U(z,O);if(W===!1)return!1;var D=z.slice(O.place,W+O.place);if(O.place+=W,z[O.place++]!==2)return!1;var k=U(z,O);if(k===!1||z.length!==k+O.place)return!1;var A=z.slice(O.place,k+O.place);if(D[0]===0)if(D[1]&128)D=D.slice(1);else return!1;if(A[0]===0)if(A[1]&128)A=A.slice(1);else return!1;return this.r=new E(D),this.s=new E(A),this.recoveryParam=null,!0};function V(z,j){if(j<128){z.push(j);return}var O=1+(Math.log(j)/Math.LN2>>>3);for(z.push(O|128);--O;)z.push(j>>>(O<<3)&255);z.push(j)}S.prototype.toDER=function(z){var j=this.r.toArray(),O=this.s.toArray();for(j[0]&128&&(j=[0].concat(j)),O[0]&128&&(O=[0].concat(O)),j=I(j),O=I(O);!O[0]&&!(O[1]&128);)O=O.slice(1);var N=[2];V(N,j.length),N=N.concat(j),N.push(2),V(N,O.length);var W=N.concat(O),D=[48];return V(D,W.length),D=D.concat(W),M.encode(D,z)}}),Z8=G0((l,g)=>{var E=k5(),M=$8(),F=T5(),S=x9(),G=q9(),U=F.assert,I=G8(),V=J8();function z(j){if(!(this instanceof z))return new z(j);typeof j=="string"&&(U(Object.prototype.hasOwnProperty.call(S,j),"Unknown curve "+j),j=S[j]),j instanceof S.PresetCurve&&(j={curve:j}),this.curve=j.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=j.curve.g,this.g.precompute(j.curve.n.bitLength()+1),this.hash=j.hash||j.curve.hash}g.exports=z,z.prototype.keyPair=function(j){return new I(this,j)},z.prototype.keyFromPrivate=function(j,O){return I.fromPrivate(this,j,O)},z.prototype.keyFromPublic=function(j,O){return I.fromPublic(this,j,O)},z.prototype.genKeyPair=function(j){j||(j={});for(var O=new M({hash:this.hash,pers:j.pers,persEnc:j.persEnc||"utf8",entropy:j.entropy||G(this.hash.hmacStrength),entropyEnc:j.entropy&&j.entropyEnc||"utf8",nonce:this.n.toArray()}),N=this.n.byteLength(),W=this.n.sub(new E(2));;){var D=new E(O.generate(N));if(!(D.cmp(W)>0))return D.iaddn(1),this.keyFromPrivate(D)}},z.prototype._truncateToN=function(j,O){var N=j.byteLength()*8-this.n.bitLength();return N>0&&(j=j.ushrn(N)),!O&&j.cmp(this.n)>=0?j.sub(this.n):j},z.prototype.sign=function(j,O,N,W){typeof N=="object"&&(W=N,N=null),W||(W={}),O=this.keyFromPrivate(O,N),j=this._truncateToN(new E(j,16));for(var D=this.n.byteLength(),k=O.getPrivate().toArray("be",D),A=j.toArray("be",D),x=new M({hash:this.hash,entropy:k,nonce:A,pers:W.pers,persEnc:W.persEnc||"utf8"}),v=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(v)>=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 H0=p.invm(this.n).mul(i.mul(O.getPrivate()).iadd(j));if(H0=H0.umod(this.n),H0.cmpn(0)!==0){var a=(c.getY().isOdd()?1:0)|(n.cmp(i)!==0?2:0);return W.canonical&&H0.cmp(this.nh)>0&&(H0=this.n.sub(H0),a^=1),new V({r:i,s:H0,recoveryParam:a})}}}}}},z.prototype.verify=function(j,O,N,W){j=this._truncateToN(new E(j,16)),N=this.keyFromPublic(N,W),O=new V(O,"hex");var{r:D,s:k}=O;if(D.cmpn(1)<0||D.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var A=k.invm(this.n),x=A.mul(j).umod(this.n),v=A.mul(D).umod(this.n),y;return this.curve._maxwellTrick?(y=this.g.jmulAdd(x,N.getPublic(),v),y.isInfinity()?!1:y.eqXToP(D)):(y=this.g.mulAdd(x,N.getPublic(),v),y.isInfinity()?!1:y.getX().umod(this.n).cmp(D)===0)},z.prototype.recoverPubKey=function(j,O,N,W){U((3&N)===N,"The recovery param is more than two bits"),O=new V(O,W);var D=this.n,k=new E(j),A=O.r,x=O.s,v=N&1,y=N>>1;if(A.cmp(this.curve.p.umod(this.curve.n))>=0&&y)throw new Error("Unable to find sencond key candinate");y?A=this.curve.pointFromX(A.add(this.curve.n),v):A=this.curve.pointFromX(A,v);var p=O.r.invm(D),c=D.sub(k).mul(p).umod(D),n=x.mul(p).umod(D);return this.g.mulAdd(c,A,n)},z.prototype.getKeyRecoveryParam=function(j,O,N,W){if(O=new V(O,W),O.recoveryParam!==null)return O.recoveryParam;for(var D=0;D<4;D++){var k;try{k=this.recoverPubKey(j,O,D)}catch{continue}if(k.eq(N))return D}throw new Error("Unable to find valid recovery factor")}}),P8=G0((l,g)=>{var E=T5(),M=E.assert,F=E.parseBytes,S=E.cachedProperty;function G(U,I){this.eddsa=U,this._secret=F(I.secret),U.isPoint(I.pub)?this._pub=I.pub:this._pubBytes=F(I.pub)}G.fromPublic=function(U,I){return I instanceof G?I:new G(U,{pub:I})},G.fromSecret=function(U,I){return I instanceof G?I:new G(U,{secret:I})},G.prototype.secret=function(){return this._secret},S(G,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),S(G,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),S(G,"privBytes",function(){var U=this.eddsa,I=this.hash(),V=U.encodingLength-1,z=I.slice(0,U.encodingLength);return z[0]&=248,z[V]&=127,z[V]|=64,z}),S(G,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),S(G,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),S(G,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),G.prototype.sign=function(U){return M(this._secret,"KeyPair can only verify"),this.eddsa.sign(U,this)},G.prototype.verify=function(U,I){return this.eddsa.verify(U,I,this)},G.prototype.getSecret=function(U){return M(this._secret,"KeyPair is public only"),E.encode(this.secret(),U)},G.prototype.getPublic=function(U){return E.encode(this.pubBytes(),U)},g.exports=G}),j8=G0((l,g)=>{var E=k5(),M=T5(),F=M.assert,S=M.cachedProperty,G=M.parseBytes;function U(I,V){this.eddsa=I,typeof V!="object"&&(V=G(V)),Array.isArray(V)&&(V={R:V.slice(0,I.encodingLength),S:V.slice(I.encodingLength)}),F(V.R&&V.S,"Signature without R or S"),I.isPoint(V.R)&&(this._R=V.R),V.S instanceof E&&(this._S=V.S),this._Rencoded=Array.isArray(V.R)?V.R:V.Rencoded,this._Sencoded=Array.isArray(V.S)?V.S:V.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}),F8=G0((l,g)=>{var E=S9(),M=x9(),F=T5(),S=F.assert,G=F.parseBytes,U=P8(),I=j8();function V(z){if(S(z==="ed25519","only tested with ed25519 so far"),!(this instanceof V))return new V(z);z=M[z].curve,this.curve=z,this.g=z.g,this.g.precompute(z.n.bitLength()+1),this.pointClass=z.point().constructor,this.encodingLength=Math.ceil(z.n.bitLength()/8),this.hash=E.sha512}g.exports=V,V.prototype.sign=function(z,j){z=G(z);var O=this.keyFromSecret(j),N=this.hashInt(O.messagePrefix(),z),W=this.g.mul(N),D=this.encodePoint(W),k=this.hashInt(D,O.pubBytes(),z).mul(O.priv()),A=N.add(k).umod(this.curve.n);return this.makeSignature({R:W,S:A,Rencoded:D})},V.prototype.verify=function(z,j,O){z=G(z),j=this.makeSignature(j);var N=this.keyFromPublic(O),W=this.hashInt(j.Rencoded(),N.pubBytes(),z),D=this.g.mul(j.S()),k=j.R().add(N.pub().mul(W));return k.eq(D)},V.prototype.hashInt=function(){for(var z=this.hash(),j=0;j<arguments.length;j++)z.update(arguments[j]);return F.intFromLE(z.digest()).umod(this.curve.n)},V.prototype.keyFromPublic=function(z){return U.fromPublic(this,z)},V.prototype.keyFromSecret=function(z){return U.fromSecret(this,z)},V.prototype.makeSignature=function(z){return z instanceof I?z:new I(this,z)},V.prototype.encodePoint=function(z){var j=z.getY().toArray("le",this.encodingLength);return j[this.encodingLength-1]|=z.getX().isOdd()?128:0,j},V.prototype.decodePoint=function(z){z=F.parseBytes(z);var j=z.length-1,O=z.slice(0,j).concat(z[j]&-129),N=(z[j]&128)!==0,W=F.intFromLE(O);return this.curve.pointFromY(W,N)},V.prototype.encodeInt=function(z){return z.toArray("le",this.encodingLength)},V.prototype.decodeInt=function(z){return F.intFromLE(z)},V.prototype.isPoint=function(z){return z instanceof this.pointClass}}),A9=G0((l)=>{var g=l;g.version=n7().version,g.utils=T5(),g.rand=q9(),g.curve=R6(),g.curves=x9(),g.ec=Z8(),g.eddsa=F8()}),A6=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,Z,P=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)Z=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)Z=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function V(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,Z=0,P;if(Y==="be")for(H=K.length-1;H>=X;H-=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8}this.strip()};function z(K,X,Y,H){for(var Q=0,Z=Math.min(K.length,Y),P=X;P<Z;P++){var $=K.charCodeAt(P)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var Z=K.length-Y,P=Z%H,$=Math.min(Z,Z-P)+Y,C=0,J=Y;J<$;J+=H)C=z(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(P!==0){var R=1;for(C=z(K,J,K.length,X),J=0;J<P;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var j=["","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"],O=[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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,Z=0;Z<this.length;Z++){var P=this.words[Z],$=((P<<H|Q)&16777215).toString(16);Q=P>>>24-H&16777215,Q!==0||Z!==this.length-1?Y=j[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,Z--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=O[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=j[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof U<"u"),this.toArrayLike(U,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var Z=X==="le",P=new K(Q),$,C,J=this.clone();if(Z){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[C]=$;for(;C<Q;C++)P[C]=0}else{for(C=0;C<Q-H;C++)P[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[Q-C-1]=$}return P},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function W(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,Z=0;Z<H.length;Z++)X=(Y.words[Z]|0)+(H.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;for(;Q!==0&&Z<Y.length;Z++)X=(Y.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var Z=0,P=0;P<Q.length;P++)X=(H.words[P]|0)-(Q.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;for(;Z!==0&&P<H.length;P++)X=(H.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;if(Z===0&&P<H.length&&H!==this)for(;P<H.length;P++)this.words[P]=H.words[P];return this.length=Math.max(this.length,P),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,Z=X.words[0]|0,P=Q*Z,$=P&67108863,C=P/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,Z=X.words[s]|0,P=Q*Z+L,R+=P/67108864|0,L=P&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,Z=Y.words,P=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,f=u>>>13,z0=H[3]|0,K0=z0&8191,Q0=z0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,W0=w0&8191,P0=w0>>>13,c0=H[8]|0,T=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,O0=Q[0]|0,Y0=O0&8191,j0=O0>>>13,b0=Q[1]|0,U0=b0&8191,F0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,V0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,Z5=Q[6]|0,B0=Z5&8191,R0=Z5>>>13,P5=Q[7]|0,E0=P5&8191,S0=P5>>>13,j5=Q[8]|0,x0=j5&8191,A0=j5>>>13,F5=Q[9]|0,v0=F5&8191,M0=F5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,j0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,j0);var Q5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,j0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,j0),$=$+Math.imul(L,U0)|0,C=C+Math.imul(L,F0)|0,C=C+Math.imul(_,U0)|0,J=J+Math.imul(_,F0)|0;var g0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,j0),C=C+Math.imul(f,Y0)|0,J=Math.imul(f,j0),$=$+Math.imul(r,U0)|0,C=C+Math.imul(r,F0)|0,C=C+Math.imul(X0,U0)|0,J=J+Math.imul(X0,F0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,j0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,j0),$=$+Math.imul(d,U0)|0,C=C+Math.imul(d,F0)|0,C=C+Math.imul(f,U0)|0,J=J+Math.imul(f,F0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,V0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,V0)|0;var h0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,j0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,j0),$=$+Math.imul(K0,U0)|0,C=C+Math.imul(K0,F0)|0,C=C+Math.imul(Q0,U0)|0,J=J+Math.imul(Q0,F0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(f,D0)|0,J=J+Math.imul(f,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,V0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,V0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,j0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,j0),$=$+Math.imul(q,U0)|0,C=C+Math.imul(q,F0)|0,C=C+Math.imul(m,U0)|0,J=J+Math.imul(m,F0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,V0)|0,C=C+Math.imul(f,T0)|0,J=J+Math.imul(f,V0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,j0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,j0),$=$+Math.imul(C0,U0)|0,C=C+Math.imul(C0,F0)|0,C=C+Math.imul(t,U0)|0,J=J+Math.imul(t,F0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,V0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,V0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(f,L0)|0,J=J+Math.imul(f,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(W0,Y0),C=Math.imul(W0,j0),C=C+Math.imul(P0,Y0)|0,J=Math.imul(P0,j0),$=$+Math.imul($0,U0)|0,C=C+Math.imul($0,F0)|0,C=C+Math.imul(J0,U0)|0,J=J+Math.imul(J0,F0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,V0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,V0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(f,k0)|0,J=J+Math.imul(f,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(T,Y0),C=Math.imul(T,j0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,j0),$=$+Math.imul(W0,U0)|0,C=C+Math.imul(W0,F0)|0,C=C+Math.imul(P0,U0)|0,J=J+Math.imul(P0,F0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,V0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,V0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(f,B0)|0,J=J+Math.imul(f,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,j0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,j0),$=$+Math.imul(T,U0)|0,C=C+Math.imul(T,F0)|0,C=C+Math.imul(B,U0)|0,J=J+Math.imul(B,F0)|0,$=$+Math.imul(W0,D0)|0,C=C+Math.imul(W0,N0)|0,C=C+Math.imul(P0,D0)|0,J=J+Math.imul(P0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,V0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,V0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(f,E0)|0,J=J+Math.imul(f,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,U0),C=Math.imul(h,F0),C=C+Math.imul(o,U0)|0,J=Math.imul(o,F0),$=$+Math.imul(T,D0)|0,C=C+Math.imul(T,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(W0,T0)|0,C=C+Math.imul(W0,V0)|0,C=C+Math.imul(P0,T0)|0,J=J+Math.imul(P0,V0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(f,x0)|0,J=J+Math.imul(f,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(T,T0)|0,C=C+Math.imul(T,V0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,V0)|0,$=$+Math.imul(W0,L0)|0,C=C+Math.imul(W0,I0)|0,C=C+Math.imul(P0,L0)|0,J=J+Math.imul(P0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(f,v0)|0,J=J+Math.imul(f,M0)|0;var i0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,V0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,V0),$=$+Math.imul(T,L0)|0,C=C+Math.imul(T,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(W0,k0)|0,C=C+Math.imul(W0,q0)|0,C=C+Math.imul(P0,k0)|0,J=J+Math.imul(P0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(T,k0)|0,C=C+Math.imul(T,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(W0,B0)|0,C=C+Math.imul(W0,R0)|0,C=C+Math.imul(P0,B0)|0,J=J+Math.imul(P0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(T,B0)|0,C=C+Math.imul(T,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(W0,E0)|0,C=C+Math.imul(W0,S0)|0,C=C+Math.imul(P0,E0)|0,J=J+Math.imul(P0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(T,E0)|0,C=C+Math.imul(T,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(W0,x0)|0,C=C+Math.imul(W0,A0)|0,C=C+Math.imul(P0,x0)|0,J=J+Math.imul(P0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(T,x0)|0,C=C+Math.imul(T,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(W0,v0)|0,C=C+Math.imul(W0,M0)|0,C=C+Math.imul(P0,v0)|0,J=J+Math.imul(P0,M0)|0;var X5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(T,v0)|0,C=C+Math.imul(T,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(P+$|0)+((C&8191)<<13)|0;return P=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Z[0]=Q5,Z[1]=g0,Z[2]=m0,Z[3]=h0,Z[4]=u0,Z[5]=o0,Z[6]=s0,Z[7]=a0,Z[8]=f0,Z[9]=n0,Z[10]=r0,Z[11]=i0,Z[12]=t0,Z[13]=e0,Z[14]=K5,Z[15]=C5,Z[16]=X5,Z[17]=H5,Z[18]=Y5,P!==0&&(Z[19]=P,Y.length++),Y};Math.imul||(k=D);function A(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,Z=0;Z<Y.length-1;Z++){var P=Q;Q=0;for(var $=H&67108863,C=Math.min(Z,X.length-1),J=Math.max(0,Z-K.length+1);J<=C;J++){var R=Z-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;P=P+(s/67108864|0)|0,r=r+$|0,$=r&67108863,P=P+(r>>>26)|0,Q+=P>>>26,P&=67108863}Y.words[Z]=$,H=P,P=Q}return H!==0?Y.words[Z]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new v;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=A(this,K,X):Y=x(this,K,X),Y};function v(K,X){this.x=K,this.y=X}v.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},v.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},v.prototype.permute=function(K,X,Y,H,Q,Z){for(var P=0;P<Z;P++)H[P]=X[K[P]],Q[P]=Y[K[P]]},v.prototype.transform=function(K,X,Y,H,Q,Z){this.permute(Z,K,X,Y,H,Q);for(var P=1;P<Q;P<<=1)for(var $=P<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<P;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+P],d=H[R+s+P],f=L*u-_*d;d=L*d+_*u,u=f,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+P]=r-u,H[R+s+P]=X0-d,s!==$&&(f=C*L-J*_,_=C*_+J*L,L=f)}},v.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},v.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},v.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},v.prototype.convert13b=function(K,X,Y,H){for(var Q=0,Z=0;Z<X;Z++)Q=Q+(K[Z]|0),Y[2*Z]=Q&8191,Q=Q>>>13,Y[2*Z+1]=Q&8191,Q=Q>>>13;for(Z=2*X;Z<H;++Z)Y[Z]=0;F(Q===0),F((Q&-8192)===0)},v.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},v.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),Z=this.stub(H),P=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,P,H),this.convert13b(X.words,X.length,J,H),this.transform(P,Z,$,C,H,Q),this.transform(J,Z,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,Z,H,Q),this.conjugate(_,Z,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=W(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var Z=0;for(Q=0;Q<this.length;Q++){var P=this.words[Q]&H,$=(this.words[Q]|0)-P<<X;this.words[Q]=$|Z,Z=P>>>26-X}Z&&(this.words[Q]=Z,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,Z=Math.min((K-Q)/26,this.length),P=67108863^67108863>>>Q<<Q,$=Y;if(H-=Z,H=Math.max(0,H),$){for(var C=0;C<Z;C++)$.words[C]=this.words[C];$.length=Z}if(Z!==0)if(this.length>Z)for(this.length-=Z,C=0;C<this.length;C++)this.words[C]=this.words[C+Z];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&P}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var Z,P=0;for(Q=0;Q<K.length;Q++){Z=(this.words[Q+Y]|0)+P;var $=(K.words[Q]|0)*X;Z-=$&67108863,P=(Z>>26)-($/67108864|0),this.words[Q+Y]=Z&67108863}for(;Q<this.length-Y;Q++)Z=(this.words[Q+Y]|0)+P,P=Z>>26,this.words[Q+Y]=Z&67108863;if(P===0)return this.strip();for(F(P===-1),P=0,Q=0;Q<this.length;Q++)Z=-(this.words[Q]|0)+P,P=Z>>26,this.words[Q]=Z&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,Z=Q.words[Q.length-1]|0,P=this._countBits(Z);Y=26-P,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),Z=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/Z|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,Z;return this.negative!==0&&K.negative===0?(Z=this.neg().divmod(K,X),X!=="mod"&&(H=Z.div.neg()),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(Z=this.divmod(K.neg(),X),X!=="mod"&&(H=Z.div.neg()),{div:H,mod:Z.mod}):(this.negative&K.negative)!==0?(Z=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:Z.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),Z=Y.cmp(H);return Z<0||Q===1&&Z===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=new G(0),P=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(Z.isOdd()||P.isOdd())&&(Z.iadd(C),P.isub(J)),Z.iushrn(1),P.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Z),Q.isub(P)):(Y.isub(X),Z.isub(H),P.isub(Q))}return{a:Z,b:P,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var P=0,$=1;(X.words[0]&$)===0&&P<26;++P,$<<=1);if(P>0)for(X.iushrn(P);P-- >0;)H.isOdd()&&H.iadd(Z),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(Z),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var Z=X;X=Y,Y=Z}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,Z=Y;Q!==0&&Z<this.length;Z++){var P=this.words[Z]|0;P+=Q,Q=P>>>26,P&=67108863,this.words[Z]=P}return Q!==0&&(this.words[Z]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new a(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var Z=K.words[9];for(X.words[X.length++]=Z&Y,Q=10;Q<K.length;Q++){var P=K.words[Q]|0;K.words[Q-10]=(P&Y)<<4|Z>>>22,Z=P}Z>>>=22,K.words[Q-10]=Z,Z===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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function a(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}a.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},a.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.red,"red works only with red numbers")},a.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},a.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},a.prototype.add=function(K,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},a.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},a.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},a.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},a.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},a.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},a.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},a.prototype.isqr=function(K){return this.imul(K,K.clone())},a.prototype.sqr=function(K){return this.mul(K,K)},a.prototype.sqrt=function(K){if(K.isZero())return K.clone();var X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var Z=new G(1).toRed(this),P=Z.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(P)!==0;)C.redIAdd(P);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(Z)!==0;){for(var s=L,r=0;s.cmp(Z)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},a.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},a.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var Z=H[0],P=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(Z!==H[0]&&(Z=this.sqr(Z)),L===0&&P===0){$=0;continue}P<<=1,P|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(Z=this.mul(Z,H[P]),$=0,P=0)}C=26}return Z},a.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},a.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.mont=function(K){return new Z0(K)};function Z0(K){a.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Z0,a),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var X=this.imod(K.mul(this.rinv));return X.red=null,X},Z0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.mul=function(K,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.invm=function(K){var X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),v9=G0((l,g)=>{var E=W5(),M=E.Buffer,F={},S;for(S in E)!E.hasOwnProperty(S)||S==="SlowBuffer"||S==="Buffer"||(F[S]=E[S]);var G=F.Buffer={};for(S in M)!M.hasOwnProperty(S)||S==="allocUnsafe"||S==="allocUnsafeSlow"||(G[S]=M[S]);if(F.Buffer.prototype=M.prototype,(!G.from||G.from===Uint8Array.from)&&(G.from=function(U,I,V){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,I,V)}),G.alloc||(G.alloc=function(U,I,V){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 z=M(U);return!I||I.length===0?z.fill(0):typeof V=="string"?z.fill(I,V):z.fill(I),z}),!F.kStringMaxLength)try{F.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}F.constants||(F.constants={MAX_LENGTH:F.kMaxLength},F.kStringMaxLength&&(F.constants.MAX_STRING_LENGTH=F.kStringMaxLength)),g.exports=F}),M9=G0((l)=>{var g=p0();function E(F){this._reporterState={obj:null,path:[],options:F||{},errors:[]}}l.Reporter=E,E.prototype.isError=function(F){return F instanceof M},E.prototype.save=function(){let F=this._reporterState;return{obj:F.obj,pathLen:F.path.length}},E.prototype.restore=function(F){let S=this._reporterState;S.obj=F.obj,S.path=S.path.slice(0,F.pathLen)},E.prototype.enterKey=function(F){return this._reporterState.path.push(F)},E.prototype.exitKey=function(F){let S=this._reporterState;S.path=S.path.slice(0,F-1)},E.prototype.leaveKey=function(F,S,G){let U=this._reporterState;this.exitKey(F),U.obj!==null&&(U.obj[S]=G)},E.prototype.path=function(){return this._reporterState.path.join("/")},E.prototype.enterObject=function(){let F=this._reporterState,S=F.obj;return F.obj={},S},E.prototype.leaveObject=function(F){let S=this._reporterState,G=S.obj;return S.obj=F,G},E.prototype.error=function(F){let S,G=this._reporterState,U=F instanceof M;if(U?S=F:S=new M(G.path.map(function(I){return"["+JSON.stringify(I)+"]"}).join(""),F.message||F,F.stack),!G.options.partial)throw S;return U||G.errors.push(S),S},E.prototype.wrapResult=function(F){let S=this._reporterState;return S.options.partial?{result:this.isError(F)?null:F,errors:S.errors}:F};function M(F,S){this.path=F,this.rethrow(S)}g(M,Error),M.prototype.rethrow=function(F){if(this.message=F+" 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=G0((l)=>{var g=p0(),E=M9().Reporter,M=v9().Buffer;function F(G,U){if(E.call(this,U),!M.isBuffer(G)){this.error("Input not Buffer");return}this.base=G,this.offset=0,this.length=G.length}g(F,E),l.DecoderBuffer=F,F.isDecoderBuffer=function(G){return G instanceof F?!0:typeof G=="object"&&M.isBuffer(G.base)&&G.constructor.name==="DecoderBuffer"&&typeof G.offset=="number"&&typeof G.length=="number"&&typeof G.save=="function"&&typeof G.restore=="function"&&typeof G.isEmpty=="function"&&typeof G.readUInt8=="function"&&typeof G.skip=="function"&&typeof G.raw=="function"},F.prototype.save=function(){return{offset:this.offset,reporter:E.prototype.save.call(this)}},F.prototype.restore=function(G){let U=new F(this.base);return U.offset=G.offset,U.length=this.offset,this.offset=G.offset,E.prototype.restore.call(this,G.reporter),U},F.prototype.isEmpty=function(){return this.offset===this.length},F.prototype.readUInt8=function(G){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(G||"DecoderBuffer overrun")},F.prototype.skip=function(G,U){if(!(this.offset+G<=this.length))return this.error(U||"DecoderBuffer overrun");let I=new F(this.base);return I._reporterState=this._reporterState,I.offset=this.offset,I.length=this.offset+G,this.offset+=G,I},F.prototype.raw=function(G){return this.base.slice(G?G.offset:this.offset,this.length)};function S(G,U){if(Array.isArray(G))this.length=0,this.value=G.map(function(I){return S.isEncoderBuffer(I)||(I=new S(I,U)),this.length+=I.length,I},this);else if(typeof G=="number"){if(!(0<=G&&G<=255))return U.error("non-byte EncoderBuffer value");this.value=G,this.length=1}else if(typeof G=="string")this.value=G,this.length=M.byteLength(G);else if(M.isBuffer(G))this.value=G,this.length=G.length;else return U.error("Unsupported type: "+typeof G)}l.EncoderBuffer=S,S.isEncoderBuffer=function(G){return G instanceof S?!0:typeof G=="object"&&G.constructor.name==="EncoderBuffer"&&typeof G.length=="number"&&typeof G.join=="function"},S.prototype.join=function(G,U){return G||(G=M.alloc(this.length)),U||(U=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(I){I.join(G,U),U+=I.length}):(typeof this.value=="number"?G[U]=this.value:typeof this.value=="string"?G.write(this.value,U):M.isBuffer(this.value)&&this.value.copy(G,U),U+=this.length)),G}}),_9=G0((l,g)=>{var E=M9().Reporter,M=l5().EncoderBuffer,F=l5().DecoderBuffer,S=V5(),G=["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(G),I=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function V(j,O,N){let W={};this._baseState=W,W.name=N,W.enc=j,W.parent=O||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=V;var z=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];V.prototype.clone=function(){let j=this._baseState,O={};z.forEach(function(W){O[W]=j[W]});let N=new this.constructor(O.parent);return N._baseState=O,N},V.prototype._wrap=function(){let j=this._baseState;U.forEach(function(O){this[O]=function(){let N=new this.constructor(this);return j.children.push(N),N[O].apply(N,arguments)}},this)},V.prototype._init=function(j){let O=this._baseState;S(O.parent===null),j.call(this),O.children=O.children.filter(function(N){return N._baseState.parent===this},this),S.equal(O.children.length,1,"Root node can have only one child")},V.prototype._useArgs=function(j){let O=this._baseState,N=j.filter(function(W){return W instanceof this.constructor},this);j=j.filter(function(W){return!(W instanceof this.constructor)},this),N.length!==0&&(S(O.children===null),O.children=N,N.forEach(function(W){W._baseState.parent=this},this)),j.length!==0&&(S(O.args===null),O.args=j,O.reverseArgs=j.map(function(W){if(typeof W!="object"||W.constructor!==Object)return W;let D={};return Object.keys(W).forEach(function(k){k==(k|0)&&(k|=0);let A=W[k];D[A]=k}),D}))},I.forEach(function(j){V.prototype[j]=function(){let O=this._baseState;throw new Error(j+" not implemented for encoding: "+O.enc)}}),G.forEach(function(j){V.prototype[j]=function(){let O=this._baseState,N=Array.prototype.slice.call(arguments);return S(O.tag===null),O.tag=j,this._useArgs(N),this}}),V.prototype.use=function(j){S(j);let O=this._baseState;return S(O.use===null),O.use=j,this},V.prototype.optional=function(){let j=this._baseState;return j.optional=!0,this},V.prototype.def=function(j){let O=this._baseState;return S(O.default===null),O.default=j,O.optional=!0,this},V.prototype.explicit=function(j){let O=this._baseState;return S(O.explicit===null&&O.implicit===null),O.explicit=j,this},V.prototype.implicit=function(j){let O=this._baseState;return S(O.explicit===null&&O.implicit===null),O.implicit=j,this},V.prototype.obj=function(){let j=this._baseState,O=Array.prototype.slice.call(arguments);return j.obj=!0,O.length!==0&&this._useArgs(O),this},V.prototype.key=function(j){let O=this._baseState;return S(O.key===null),O.key=j,this},V.prototype.any=function(){let j=this._baseState;return j.any=!0,this},V.prototype.choice=function(j){let O=this._baseState;return S(O.choice===null),O.choice=j,this._useArgs(Object.keys(j).map(function(N){return j[N]})),this},V.prototype.contains=function(j){let O=this._baseState;return S(O.use===null),O.contains=j,this},V.prototype._decode=function(j,O){let N=this._baseState;if(N.parent===null)return j.wrapResult(N.children[0]._decode(j,O));let W=N.default,D=!0,k=null;if(N.key!==null&&(k=j.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 v=j.save();try{N.choice===null?this._decodeGeneric(N.tag,j,O):this._decodeChoice(j,O),D=!0}catch{D=!1}j.restore(v)}else if(D=this._peekTag(j,x,N.any),j.isError(D))return D}let A;if(N.obj&&D&&(A=j.enterObject()),D){if(N.explicit!==null){let v=this._decodeTag(j,N.explicit);if(j.isError(v))return v;j=v}let x=j.offset;if(N.use===null&&N.choice===null){let v;N.any&&(v=j.save());let y=this._decodeTag(j,N.implicit!==null?N.implicit:N.tag,N.any);if(j.isError(y))return y;N.any?W=j.raw(v):j=y}if(O&&O.track&&N.tag!==null&&O.track(j.path(),x,j.length,"tagged"),O&&O.track&&N.tag!==null&&O.track(j.path(),j.offset,j.length,"content"),N.any||(N.choice===null?W=this._decodeGeneric(N.tag,j,O):W=this._decodeChoice(j,O)),j.isError(W))return W;if(!N.any&&N.choice===null&&N.children!==null&&N.children.forEach(function(v){v._decode(j,O)}),N.contains&&(N.tag==="octstr"||N.tag==="bitstr")){let v=new F(W);W=this._getUse(N.contains,j._reporterState.obj)._decode(v,O)}}return N.obj&&D&&(W=j.leaveObject(A)),N.key!==null&&(W!==null||D===!0)?j.leaveKey(k,N.key,W):k!==null&&j.exitKey(k),W},V.prototype._decodeGeneric=function(j,O,N){let W=this._baseState;return j==="seq"||j==="set"?null:j==="seqof"||j==="setof"?this._decodeList(O,j,W.args[0],N):/str$/.test(j)?this._decodeStr(O,j,N):j==="objid"&&W.args?this._decodeObjid(O,W.args[0],W.args[1],N):j==="objid"?this._decodeObjid(O,null,null,N):j==="gentime"||j==="utctime"?this._decodeTime(O,j,N):j==="null_"?this._decodeNull(O,N):j==="bool"?this._decodeBool(O,N):j==="objDesc"?this._decodeStr(O,j,N):j==="int"||j==="enum"?this._decodeInt(O,W.args&&W.args[0],N):W.use!==null?this._getUse(W.use,O._reporterState.obj)._decode(O,N):O.error("unknown tag: "+j)},V.prototype._getUse=function(j,O){let N=this._baseState;return N.useDecoder=this._use(j,O),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},V.prototype._decodeChoice=function(j,O){let N=this._baseState,W=null,D=!1;return Object.keys(N.choice).some(function(k){let A=j.save(),x=N.choice[k];try{let v=x._decode(j,O);if(j.isError(v))return!1;W={type:k,value:v},D=!0}catch{return j.restore(A),!1}return!0},this),D?W:j.error("Choice not matched")},V.prototype._createEncoderBuffer=function(j){return new M(j,this.reporter)},V.prototype._encode=function(j,O,N){let W=this._baseState;if(W.default!==null&&W.default===j)return;let D=this._encodeValue(j,O,N);if(D!==void 0&&!this._skipDefault(D,O,N))return D},V.prototype._encodeValue=function(j,O,N){let W=this._baseState;if(W.parent===null)return W.children[0]._encode(j,O||new E);let D=null;if(this.reporter=O,W.optional&&j===void 0)if(W.default!==null)j=W.default;else return;let k=null,A=!1;if(W.any)D=this._createEncoderBuffer(j);else if(W.choice)D=this._encodeChoice(j,O);else if(W.contains)k=this._getUse(W.contains,N)._encode(j,O),A=!0;else if(W.children)k=W.children.map(function(x){if(x._baseState.tag==="null_")return x._encode(null,O,j);if(x._baseState.key===null)return O.error("Child should have a key");let v=O.enterKey(x._baseState.key);if(typeof j!="object")return O.error("Child expected, but input is not object");let y=x._encode(j[x._baseState.key],O,j);return O.leaveKey(v),y},this).filter(function(x){return x}),k=this._createEncoderBuffer(k);else if(W.tag==="seqof"||W.tag==="setof"){if(!(W.args&&W.args.length===1))return O.error("Too many args for : "+W.tag);if(!Array.isArray(j))return O.error("seqof/setof, but data is not Array");let x=this.clone();x._baseState.implicit=null,k=this._createEncoderBuffer(j.map(function(v){let y=this._baseState;return this._getUse(y.args[0],j)._encode(v,O)},x))}else W.use!==null?D=this._getUse(W.use,N)._encode(j,O):(k=this._encodePrimitive(W.tag,j),A=!0);if(!W.any&&W.choice===null){let x=W.implicit!==null?W.implicit:W.tag,v=W.implicit===null?"universal":"context";x===null?W.use===null&&O.error("Tag could be omitted only for .use()"):W.use===null&&(D=this._encodeComposite(x,A,v,k))}return W.explicit!==null&&(D=this._encodeComposite(W.explicit,!1,"context",D)),D},V.prototype._encodeChoice=function(j,O){let N=this._baseState,W=N.choice[j.type];return W||S(!1,j.type+" not found in "+JSON.stringify(Object.keys(N.choice))),W._encode(j.value,O)},V.prototype._encodePrimitive=function(j,O){let N=this._baseState;if(/str$/.test(j))return this._encodeStr(O,j);if(j==="objid"&&N.args)return this._encodeObjid(O,N.reverseArgs[0],N.args[1]);if(j==="objid")return this._encodeObjid(O,null,null);if(j==="gentime"||j==="utctime")return this._encodeTime(O,j);if(j==="null_")return this._encodeNull();if(j==="int"||j==="enum")return this._encodeInt(O,N.args&&N.reverseArgs[0]);if(j==="bool")return this._encodeBool(O);if(j==="objDesc")return this._encodeStr(O,j);throw new Error("Unsupported tag: "+j)},V.prototype._isNumstr=function(j){return/^[0-9 ]*$/.test(j)},V.prototype._isPrintstr=function(j){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(j)}}),w9=G0((l)=>{function g(E){let M={};return Object.keys(E).forEach(function(F){(F|0)==F&&(F=F|0);let S=E[F];M[S]=F}),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)}),v6=G0((l,g)=>{var E=p0(),M=v9().Buffer,F=_9(),S=w9();function G(z){this.enc="der",this.name=z.name,this.entity=z,this.tree=new U,this.tree._init(z.body)}g.exports=G,G.prototype.encode=function(z,j){return this.tree._encode(z,j).join()};function U(z){F.call(this,"der",z)}E(U,F),U.prototype._encodeComposite=function(z,j,O,N){let W=V(z,j,O,this.reporter);if(N.length<128){let A=M.alloc(2);return A[0]=W,A[1]=N.length,this._createEncoderBuffer([A,N])}let D=1;for(let A=N.length;A>=256;A>>=8)D++;let k=M.alloc(2+D);k[0]=W,k[1]=128|D;for(let A=1+D,x=N.length;x>0;A--,x>>=8)k[A]=x&255;return this._createEncoderBuffer([k,N])},U.prototype._encodeStr=function(z,j){if(j==="bitstr")return this._createEncoderBuffer([z.unused|0,z.data]);if(j==="bmpstr"){let O=M.alloc(z.length*2);for(let N=0;N<z.length;N++)O.writeUInt16BE(z.charCodeAt(N),N*2);return this._createEncoderBuffer(O)}else return j==="numstr"?this._isNumstr(z)?this._createEncoderBuffer(z):this.reporter.error("Encoding of string type: numstr supports only digits and space"):j==="printstr"?this._isPrintstr(z)?this._createEncoderBuffer(z):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(z):j==="objDesc"?this._createEncoderBuffer(z):this.reporter.error("Encoding of string type: "+j+" unsupported")},U.prototype._encodeObjid=function(z,j,O){if(typeof z=="string"){if(!j)return this.reporter.error("string objid given, but no values map found");if(!j.hasOwnProperty(z))return this.reporter.error("objid not found in values map");z=j[z].split(/[\s.]+/g);for(let k=0;k<z.length;k++)z[k]|=0}else if(Array.isArray(z)){z=z.slice();for(let k=0;k<z.length;k++)z[k]|=0}if(!Array.isArray(z))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(z));if(!O){if(z[1]>=40)return this.reporter.error("Second objid identifier OOB");z.splice(0,2,z[0]*40+z[1])}let N=0;for(let k=0;k<z.length;k++){let A=z[k];for(N++;A>=128;A>>=7)N++}let W=M.alloc(N),D=W.length-1;for(let k=z.length-1;k>=0;k--){let A=z[k];for(W[D--]=A&127;(A>>=7)>0;)W[D--]=128|A&127}return this._createEncoderBuffer(W)};function I(z){return z<10?"0"+z:z}U.prototype._encodeTime=function(z,j){let O,N=new Date(z);return j==="gentime"?O=[I(N.getUTCFullYear()),I(N.getUTCMonth()+1),I(N.getUTCDate()),I(N.getUTCHours()),I(N.getUTCMinutes()),I(N.getUTCSeconds()),"Z"].join(""):j==="utctime"?O=[I(N.getUTCFullYear()%100),I(N.getUTCMonth()+1),I(N.getUTCDate()),I(N.getUTCHours()),I(N.getUTCMinutes()),I(N.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+j+" time is not supported yet"),this._encodeStr(O,"octstr")},U.prototype._encodeNull=function(){return this._createEncoderBuffer("")},U.prototype._encodeInt=function(z,j){if(typeof z=="string"){if(!j)return this.reporter.error("String int or enum given, but no values map");if(!j.hasOwnProperty(z))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(z));z=j[z]}if(typeof z!="number"&&!M.isBuffer(z)){let W=z.toArray();!z.sign&&W[0]&128&&W.unshift(0),z=M.from(W)}if(M.isBuffer(z)){let W=z.length;z.length===0&&W++;let D=M.alloc(W);return z.copy(D),z.length===0&&(D[0]=0),this._createEncoderBuffer(D)}if(z<128)return this._createEncoderBuffer(z);if(z<256)return this._createEncoderBuffer([0,z]);let O=1;for(let W=z;W>=256;W>>=8)O++;let N=new Array(O);for(let W=N.length-1;W>=0;W--)N[W]=z&255,z>>=8;return N[0]&128&&N.unshift(0),this._createEncoderBuffer(M.from(N))},U.prototype._encodeBool=function(z){return this._createEncoderBuffer(z?255:0)},U.prototype._use=function(z,j){return typeof z=="function"&&(z=z(j)),z._getEncoder("der").tree},U.prototype._skipDefault=function(z,j,O){let N=this._baseState,W;if(N.default===null)return!1;let D=z.join();if(N.defaultBuffer===void 0&&(N.defaultBuffer=this._encodeValue(N.default,j,O).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 V(z,j,O,N){let W;if(z==="seqof"?z="seq":z==="setof"&&(z="set"),S.tagByName.hasOwnProperty(z))W=S.tagByName[z];else if(typeof z=="number"&&(z|0)===z)W=z;else return N.error("Unknown tag: "+z);return W>=31?N.error("Multi-octet tag encoding unsupported"):(j||(W|=32),W|=S.tagClassByName[O||"universal"]<<6,W)}}),U8=G0((l,g)=>{var E=p0(),M=v6();function F(S){M.call(this,S),this.enc="pem"}E(F,M),g.exports=F,F.prototype.encode=function(S,G){let U=M.prototype.encode.call(this,S).toString("base64"),I=["-----BEGIN "+G.label+"-----"];for(let V=0;V<U.length;V+=64)I.push(U.slice(V,V+64));return I.push("-----END "+G.label+"-----"),I.join(`
|
|
4
|
+
`)}}),M6=G0((l)=>{var g=l;g.der=v6(),g.pem=U8()}),_6=G0((l,g)=>{var E=p0(),M=A6(),F=l5().DecoderBuffer,S=_9(),G=w9();function U(j){this.enc="der",this.name=j.name,this.entity=j,this.tree=new I,this.tree._init(j.body)}g.exports=U,U.prototype.decode=function(j,O){return F.isDecoderBuffer(j)||(j=new F(j,O)),this.tree._decode(j,O)};function I(j){S.call(this,"der",j)}E(I,S),I.prototype._peekTag=function(j,O,N){if(j.isEmpty())return!1;let W=j.save(),D=V(j,'Failed to peek tag: "'+O+'"');return j.isError(D)?D:(j.restore(W),D.tag===O||D.tagStr===O||D.tagStr+"of"===O||N)},I.prototype._decodeTag=function(j,O,N){let W=V(j,'Failed to decode tag of "'+O+'"');if(j.isError(W))return W;let D=z(j,W.primitive,'Failed to get length of "'+O+'"');if(j.isError(D))return D;if(!N&&W.tag!==O&&W.tagStr!==O&&W.tagStr+"of"!==O)return j.error('Failed to match tag: "'+O+'"');if(W.primitive||D!==null)return j.skip(D,'Failed to match body of: "'+O+'"');let k=j.save(),A=this._skipUntilEnd(j,'Failed to skip indefinite length body: "'+this.tag+'"');return j.isError(A)?A:(D=j.offset-k.offset,j.restore(k),j.skip(D,'Failed to match body of: "'+O+'"'))},I.prototype._skipUntilEnd=function(j,O){for(;;){let N=V(j,O);if(j.isError(N))return N;let W=z(j,N.primitive,O);if(j.isError(W))return W;let D;if(N.primitive||W!==null?D=j.skip(W):D=this._skipUntilEnd(j,O),j.isError(D))return D;if(N.tagStr==="end")break}},I.prototype._decodeList=function(j,O,N,W){let D=[];for(;!j.isEmpty();){let k=this._peekTag(j,"end");if(j.isError(k))return k;let A=N.decode(j,"der",W);if(j.isError(A)&&k)break;D.push(A)}return D},I.prototype._decodeStr=function(j,O){if(O==="bitstr"){let N=j.readUInt8();return j.isError(N)?N:{unused:N,data:j.raw()}}else if(O==="bmpstr"){let N=j.raw();if(N.length%2===1)return j.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(O==="numstr"){let N=j.raw().toString("ascii");return this._isNumstr(N)?N:j.error("Decoding of string type: numstr unsupported characters")}else{if(O==="octstr")return j.raw();if(O==="objDesc")return j.raw();if(O==="printstr"){let N=j.raw().toString("ascii");return this._isPrintstr(N)?N:j.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(O)?j.raw().toString():j.error("Decoding of string type: "+O+" unsupported")}},I.prototype._decodeObjid=function(j,O,N){let W,D=[],k=0,A=0;for(;!j.isEmpty();)A=j.readUInt8(),k<<=7,k|=A&127,(A&128)===0&&(D.push(k),k=0);A&128&&D.push(k);let x=D[0]/40|0,v=D[0]%40;if(N?W=D:W=[x,v].concat(D.slice(1)),O){let y=O[W.join(" ")];y===void 0&&(y=O[W.join(".")]),y!==void 0&&(W=y)}return W},I.prototype._decodeTime=function(j,O){let N=j.raw().toString(),W,D,k,A,x,v;if(O==="gentime")W=N.slice(0,4)|0,D=N.slice(4,6)|0,k=N.slice(6,8)|0,A=N.slice(8,10)|0,x=N.slice(10,12)|0,v=N.slice(12,14)|0;else if(O==="utctime")W=N.slice(0,2)|0,D=N.slice(2,4)|0,k=N.slice(4,6)|0,A=N.slice(6,8)|0,x=N.slice(8,10)|0,v=N.slice(10,12)|0,W<70?W=2000+W:W=1900+W;else return j.error("Decoding "+O+" time is not supported yet");return Date.UTC(W,D-1,k,A,x,v,0)},I.prototype._decodeNull=function(){return null},I.prototype._decodeBool=function(j){let O=j.readUInt8();return j.isError(O)?O:O!==0},I.prototype._decodeInt=function(j,O){let N=j.raw(),W=new M(N);return O&&(W=O[W.toString(10)]||W),W},I.prototype._use=function(j,O){return typeof j=="function"&&(j=j(O)),j._getDecoder("der").tree};function V(j,O){let N=j.readUInt8(O);if(j.isError(N))return N;let W=G.tagClass[N>>6],D=(N&32)===0;if((N&31)===31){let A=N;for(N=0;(A&128)===128;){if(A=j.readUInt8(O),j.isError(A))return A;N<<=7,N|=A&127}}else N&=31;let k=G.tag[N];return{cls:W,primitive:D,tag:N,tagStr:k}}function z(j,O,N){let W=j.readUInt8(N);if(j.isError(W))return W;if(!O&&W===128)return null;if((W&128)===0)return W;let D=W&127;if(D>4)return j.error("length octect is too long");W=0;for(let k=0;k<D;k++){W<<=8;let A=j.readUInt8(N);if(j.isError(A))return A;W|=A}return W}}),W8=G0((l,g)=>{var E=p0(),M=v9().Buffer,F=_6();function S(G){F.call(this,G),this.enc="pem"}E(S,F),g.exports=S,S.prototype.decode=function(G,U){let I=G.toString().split(/[\r\n]+/g),V=U.label.toUpperCase(),z=/^-----(BEGIN|END) ([^-]+)-----$/,j=-1,O=-1;for(let D=0;D<I.length;D++){let k=I[D].match(z);if(k!==null&&k[2]===V)if(j===-1){if(k[1]!=="BEGIN")break;j=D}else{if(k[1]!=="END")break;O=D;break}}if(j===-1||O===-1)throw new Error("PEM section not found for: "+V);let N=I.slice(j+1,O).join("");N.replace(/[^a-z0-9+/=]+/gi,"");let W=M.from(N,"base64");return F.prototype.decode.call(this,W,U)}}),w6=G0((l)=>{var g=l;g.der=_6(),g.pem=W8()}),z8=G0((l)=>{var g=M6(),E=w6(),M=p0(),F=l;F.define=function(G,U){return new S(G,U)};function S(G,U){this.name=G,this.body=U,this.decoders={},this.encoders={}}S.prototype._createNamed=function(G){let U=this.name;function I(V){this._initNamed(V,U)}return M(I,G),I.prototype._initNamed=function(V,z){G.call(this,V,z)},new I(this)},S.prototype._getDecoder=function(G){return G=G||"der",this.decoders.hasOwnProperty(G)||(this.decoders[G]=this._createNamed(E[G])),this.decoders[G]},S.prototype.decode=function(G,U,I){return this._getDecoder(U).decode(G,I)},S.prototype._getEncoder=function(G){return G=G||"der",this.encoders.hasOwnProperty(G)||(this.encoders[G]=this._createNamed(g[G])),this.encoders[G]},S.prototype.encode=function(G,U,I){return this._getEncoder(U).encode(G,I)}}),O8=G0((l)=>{var g=l;g.Reporter=M9().Reporter,g.DecoderBuffer=l5().DecoderBuffer,g.EncoderBuffer=l5().EncoderBuffer,g.Node=_9()}),V8=G0((l)=>{var g=l;g._reverse=function(E){let M={};return Object.keys(E).forEach(function(F){(F|0)==F&&(F=F|0);let S=E[F];M[S]=F}),M},g.der=w9()}),y6=G0((l)=>{var g=l;g.bignum=A6(),g.define=z8().define,g.base=O8(),g.constants=V8(),g.decoders=w6(),g.encoders=M6()}),T8=G0((l,g)=>{var E=y6(),M=E.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),F=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())}),G=E.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())}),U=E.define("RelativeDistinguishedName",function(){this.setof(F)}),I=E.define("RDNSequence",function(){this.seqof(U)}),V=E.define("Name",function(){this.choice({rdnSequence:this.use(I)})}),z=E.define("Validity",function(){this.seq().obj(this.key("notBefore").use(M),this.key("notAfter").use(M))}),j=E.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),O=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(V),this.key("validity").use(z),this.key("subject").use(V),this.key("subjectPublicKeyInfo").use(G),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(j).optional())}),N=E.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(O),this.key("signatureAlgorithm").use(S),this.key("signatureValue").bitstr())});g.exports=N}),D8=G0((l)=>{var g=y6();l.certificate=T8();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 F=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())});l.PublicKey=F;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())}),G=g.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(S),this.key("subjectPrivateKey").octstr())});l.PrivateKey=G;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 I=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=I,l.DSAparam=g.define("DSAparam",function(){this.int()});var V=g.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(z),this.key("publicKey").optional().explicit(1).bitstr())});l.ECPrivateKey=V;var z=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())})}),N8=G0((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"}}),L8=G0((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,F=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,S=C9(),G=k9(),U=d0().Buffer;g.exports=function(I,V){var z=I.toString(),j=z.match(E),O;if(j){var N="aes"+j[1],W=U.from(j[2],"hex"),D=U.from(j[3].replace(/[\r\n]/g,""),"base64"),k=S(V,W.slice(0,8),parseInt(j[1],10)).key,A=[],x=G.createDecipheriv(N,k,W);A.push(x.update(D)),A.push(x.final()),O=U.concat(A)}else{var v=z.match(F);O=U.from(v[2].replace(/[\r\n]/g,""),"base64")}var y=z.match(M)[1];return{tag:y,data:O}}}),H9=G0((l,g)=>{var E=D8(),M=N8(),F=L8(),S=k9(),G=Z6(),U=d0().Buffer;g.exports=I;function I(z){var j;typeof z=="object"&&!U.isBuffer(z)&&(j=z.passphrase,z=z.key),typeof z=="string"&&(z=U.from(z));var O=F(z,j),N=O.tag,W=O.data,D,k;switch(N){case"CERTIFICATE":k=E.certificate.decode(W,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(k||(k=E.PublicKey.decode(W,"der")),D=k.algorithm.algorithm.join("."),D){case"1.2.840.113549.1.1.1":return E.RSAPublicKey.decode(k.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return k.subjectPrivateKey=k.subjectPublicKey,{type:"ec",data:k};case"1.2.840.10040.4.1":return k.algorithm.params.pub_key=E.DSAparam.decode(k.subjectPublicKey.data,"der"),{type:"dsa",data:k.algorithm.params};default:throw new Error("unknown key id "+D)}case"ENCRYPTED PRIVATE KEY":W=E.EncryptedPrivateKey.decode(W,"der"),W=V(W,j);case"PRIVATE KEY":switch(k=E.PrivateKey.decode(W,"der"),D=k.algorithm.algorithm.join("."),D){case"1.2.840.113549.1.1.1":return E.RSAPrivateKey.decode(k.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:k.algorithm.curve,privateKey:E.ECPrivateKey.decode(k.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return k.algorithm.params.priv_key=E.DSAparam.decode(k.subjectPrivateKey,"der"),{type:"dsa",params:k.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)}}I.signature=E.signature;function V(z,j){var O=z.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(z.algorithm.decrypt.kde.kdeparams.iters.toString(),10),W=M[z.algorithm.decrypt.cipher.algo.join(".")],D=z.algorithm.decrypt.cipher.iv,k=z.subjectPrivateKey,A=parseInt(W.split("-")[1],10)/8,x=G.pbkdf2Sync(j,O,N,A,"sha1"),v=S.createDecipheriv(W,x,D),y=[];return y.push(v.update(k)),y.push(v.final()),U.concat(y)}}),g6=G0((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"}}),I8=G0((l,g)=>{var E=d0().Buffer,M=H6(),F=E9(),S=A9().ec,G=R9(),U=H9(),I=g6();function V(x,v,y,p,c){var n=U(v);if(n.curve){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong private key type");return z(x,n)}else if(n.type==="dsa"){if(p!=="dsa")throw new Error("wrong private key type");return j(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(),H0=[0,1];x.length+H0.length+1<i;)H0.push(255);H0.push(0);for(var a=-1;++a<x.length;)H0.push(x[a]);var Z0=F(H0,n);return Z0}function z(x,v){var y=I[v.curve.join(".")];if(!y)throw new Error("unknown curve "+v.curve.join("."));var p=new S(y),c=p.keyFromPrivate(v.privateKey),n=c.sign(x);return E.from(n.toDER())}function j(x,v,y){for(var p=v.params.priv_key,c=v.params.p,n=v.params.q,i=v.params.g,H0=new G(0),a,Z0=W(x,n).mod(n),K=!1,X=N(p,n,x,y);K===!1;)a=k(n,X,y),H0=A(i,a,c,n),K=a.invm(n).imul(Z0.add(p.mul(H0))).mod(n),K.cmpn(0)===0&&(K=!1,H0=new G(0));return O(H0,K)}function O(x,v){x=x.toArray(),v=v.toArray(),x[0]&128&&(x=[0].concat(x)),v[0]&128&&(v=[0].concat(v));var y=x.length+v.length+4,p=[48,y,2,x.length];return p=p.concat(x,[2,v.length],v),E.from(p)}function N(x,v,y,p){if(x=E.from(x.toArray()),x.length<v.byteLength()){var c=E.alloc(v.byteLength()-x.length);x=E.concat([c,x])}var n=y.length,i=D(y,v),H0=E.alloc(n);H0.fill(1);var a=E.alloc(n);return a=M(p,a).update(H0).update(E.from([0])).update(x).update(i).digest(),H0=M(p,a).update(H0).digest(),a=M(p,a).update(H0).update(E.from([1])).update(x).update(i).digest(),H0=M(p,a).update(H0).digest(),{k:a,v:H0}}function W(x,v){var y=new G(x),p=(x.length<<3)-v.bitLength();return p>0&&y.ishrn(p),y}function D(x,v){x=W(x,v),x=x.mod(v);var y=E.from(x.toArray());if(y.length<v.byteLength()){var p=E.alloc(v.byteLength()-y.length);y=E.concat([p,y])}return y}function k(x,v,y){var p,c;do{for(p=E.alloc(0);p.length*8<x.bitLength();)v.v=M(y,v.k).update(v.v).digest(),p=E.concat([p,v.v]);c=W(p,x),v.k=M(y,v.k).update(v.v).update(E.from([0])).digest(),v.v=M(y,v.k).update(v.v).digest()}while(c.cmp(x)!==-1);return c}function A(x,v,y,p){return x.toRed(G.mont(y)).redPow(v).fromRed().mod(p)}g.exports=V,g.exports.getKey=N,g.exports.makeKey=k}),k8=G0((l,g)=>{var E=d0().Buffer,M=R9(),F=A9().ec,S=H9(),G=g6();function U(j,O,N,W,D){var k=S(N);if(k.type==="ec"){if(W!=="ecdsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");return I(j,O,k)}else if(k.type==="dsa"){if(W!=="dsa")throw new Error("wrong public key type");return V(j,O,k)}else if(W!=="rsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");O=E.concat([D,O]);for(var A=k.modulus.byteLength(),x=[1],v=0;O.length+x.length+2<A;)x.push(255),v++;x.push(0);for(var y=-1;++y<O.length;)x.push(O[y]);x=E.from(x);var p=M.mont(k.modulus);j=new M(j).toRed(p),j=j.redPow(new M(k.publicExponent)),j=E.from(j.fromRed().toArray());var c=v<8?1:0;for(A=Math.min(j.length,x.length),j.length!==x.length&&(c=1),y=-1;++y<A;)c|=j[y]^x[y];return c===0}function I(j,O,N){var W=G[N.data.algorithm.curve.join(".")];if(!W)throw new Error("unknown curve "+N.data.algorithm.curve.join("."));var D=new F(W),k=N.data.subjectPrivateKey.data;return D.verify(O,j,k)}function V(j,O,N){var W=N.data.p,D=N.data.q,k=N.data.g,A=N.data.pub_key,x=S.signature.decode(j,"der"),v=x.s,y=x.r;z(v,D),z(y,D);var p=M.mont(W),c=v.invm(D),n=k.toRed(p).redPow(new M(O).mul(c).mod(D)).fromRed().mul(A.toRed(p).redPow(y.mul(c).mod(D)).fromRed()).mod(W).mod(D);return n.cmp(y)===0}function z(j,O){if(j.cmpn(0)<=0)throw new Error("invalid sig");if(j.cmp(O)>=O)throw new Error("invalid sig")}g.exports=U}),q8=G0((l,g)=>{var E=d0().Buffer,M=h5(),F=f7(),S=p0(),G=I8(),U=k8(),I=Y6();Object.keys(I).forEach(function(N){I[N].id=E.from(I[N].id,"hex"),I[N.toLowerCase()]=I[N]});function V(N){F.Writable.call(this);var W=I[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(V,F.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.sign=function(N,W){this.end();var D=this._hash.digest(),k=G(D,N,this._hashType,this._signType,this._tag);return W?k.toString(W):k};function z(N){F.Writable.call(this);var W=I[N];if(!W)throw new Error("Unknown message digest");this._hash=M(W.hash),this._tag=W.id,this._signType=W.sign}S(z,F.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.verify=function(N,W,D){typeof W=="string"&&(W=E.from(W,D)),this.end();var k=this._hash.digest();return U(W,k,N,this._signType,this._tag)};function j(N){return new V(N)}function O(N){return new z(N)}g.exports={Sign:j,Verify:O,createSign:j,createVerify:O}}),B8=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,Z,P=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)Z=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)Z=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function V(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,Z=0,P;if(Y==="be")for(H=K.length-1;H>=X;H-=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8}this.strip()};function z(K,X,Y,H){for(var Q=0,Z=Math.min(K.length,Y),P=X;P<Z;P++){var $=K.charCodeAt(P)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var Z=K.length-Y,P=Z%H,$=Math.min(Z,Z-P)+Y,C=0,J=Y;J<$;J+=H)C=z(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(P!==0){var R=1;for(C=z(K,J,K.length,X),J=0;J<P;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var j=["","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"],O=[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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,Z=0;Z<this.length;Z++){var P=this.words[Z],$=((P<<H|Q)&16777215).toString(16);Q=P>>>24-H&16777215,Q!==0||Z!==this.length-1?Y=j[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,Z--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=O[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=j[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof U<"u"),this.toArrayLike(U,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var Z=X==="le",P=new K(Q),$,C,J=this.clone();if(Z){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[C]=$;for(;C<Q;C++)P[C]=0}else{for(C=0;C<Q-H;C++)P[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[Q-C-1]=$}return P},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function W(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,Z=0;Z<H.length;Z++)X=(Y.words[Z]|0)+(H.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;for(;Q!==0&&Z<Y.length;Z++)X=(Y.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var Z=0,P=0;P<Q.length;P++)X=(H.words[P]|0)-(Q.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;for(;Z!==0&&P<H.length;P++)X=(H.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;if(Z===0&&P<H.length&&H!==this)for(;P<H.length;P++)this.words[P]=H.words[P];return this.length=Math.max(this.length,P),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,Z=X.words[0]|0,P=Q*Z,$=P&67108863,C=P/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,Z=X.words[s]|0,P=Q*Z+L,R+=P/67108864|0,L=P&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,Z=Y.words,P=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,f=u>>>13,z0=H[3]|0,K0=z0&8191,Q0=z0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,W0=w0&8191,P0=w0>>>13,c0=H[8]|0,T=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,O0=Q[0]|0,Y0=O0&8191,j0=O0>>>13,b0=Q[1]|0,U0=b0&8191,F0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,V0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,Z5=Q[6]|0,B0=Z5&8191,R0=Z5>>>13,P5=Q[7]|0,E0=P5&8191,S0=P5>>>13,j5=Q[8]|0,x0=j5&8191,A0=j5>>>13,F5=Q[9]|0,v0=F5&8191,M0=F5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,j0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,j0);var Q5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,j0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,j0),$=$+Math.imul(L,U0)|0,C=C+Math.imul(L,F0)|0,C=C+Math.imul(_,U0)|0,J=J+Math.imul(_,F0)|0;var g0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,j0),C=C+Math.imul(f,Y0)|0,J=Math.imul(f,j0),$=$+Math.imul(r,U0)|0,C=C+Math.imul(r,F0)|0,C=C+Math.imul(X0,U0)|0,J=J+Math.imul(X0,F0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,j0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,j0),$=$+Math.imul(d,U0)|0,C=C+Math.imul(d,F0)|0,C=C+Math.imul(f,U0)|0,J=J+Math.imul(f,F0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,V0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,V0)|0;var h0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,j0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,j0),$=$+Math.imul(K0,U0)|0,C=C+Math.imul(K0,F0)|0,C=C+Math.imul(Q0,U0)|0,J=J+Math.imul(Q0,F0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(f,D0)|0,J=J+Math.imul(f,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,V0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,V0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,j0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,j0),$=$+Math.imul(q,U0)|0,C=C+Math.imul(q,F0)|0,C=C+Math.imul(m,U0)|0,J=J+Math.imul(m,F0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,V0)|0,C=C+Math.imul(f,T0)|0,J=J+Math.imul(f,V0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,j0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,j0),$=$+Math.imul(C0,U0)|0,C=C+Math.imul(C0,F0)|0,C=C+Math.imul(t,U0)|0,J=J+Math.imul(t,F0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,V0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,V0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(f,L0)|0,J=J+Math.imul(f,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(W0,Y0),C=Math.imul(W0,j0),C=C+Math.imul(P0,Y0)|0,J=Math.imul(P0,j0),$=$+Math.imul($0,U0)|0,C=C+Math.imul($0,F0)|0,C=C+Math.imul(J0,U0)|0,J=J+Math.imul(J0,F0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,V0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,V0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(f,k0)|0,J=J+Math.imul(f,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(T,Y0),C=Math.imul(T,j0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,j0),$=$+Math.imul(W0,U0)|0,C=C+Math.imul(W0,F0)|0,C=C+Math.imul(P0,U0)|0,J=J+Math.imul(P0,F0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,V0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,V0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(f,B0)|0,J=J+Math.imul(f,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,j0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,j0),$=$+Math.imul(T,U0)|0,C=C+Math.imul(T,F0)|0,C=C+Math.imul(B,U0)|0,J=J+Math.imul(B,F0)|0,$=$+Math.imul(W0,D0)|0,C=C+Math.imul(W0,N0)|0,C=C+Math.imul(P0,D0)|0,J=J+Math.imul(P0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,V0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,V0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(f,E0)|0,J=J+Math.imul(f,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,U0),C=Math.imul(h,F0),C=C+Math.imul(o,U0)|0,J=Math.imul(o,F0),$=$+Math.imul(T,D0)|0,C=C+Math.imul(T,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(W0,T0)|0,C=C+Math.imul(W0,V0)|0,C=C+Math.imul(P0,T0)|0,J=J+Math.imul(P0,V0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(f,x0)|0,J=J+Math.imul(f,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(T,T0)|0,C=C+Math.imul(T,V0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,V0)|0,$=$+Math.imul(W0,L0)|0,C=C+Math.imul(W0,I0)|0,C=C+Math.imul(P0,L0)|0,J=J+Math.imul(P0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(f,v0)|0,J=J+Math.imul(f,M0)|0;var i0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,V0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,V0),$=$+Math.imul(T,L0)|0,C=C+Math.imul(T,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(W0,k0)|0,C=C+Math.imul(W0,q0)|0,C=C+Math.imul(P0,k0)|0,J=J+Math.imul(P0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(T,k0)|0,C=C+Math.imul(T,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(W0,B0)|0,C=C+Math.imul(W0,R0)|0,C=C+Math.imul(P0,B0)|0,J=J+Math.imul(P0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(T,B0)|0,C=C+Math.imul(T,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(W0,E0)|0,C=C+Math.imul(W0,S0)|0,C=C+Math.imul(P0,E0)|0,J=J+Math.imul(P0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(T,E0)|0,C=C+Math.imul(T,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(W0,x0)|0,C=C+Math.imul(W0,A0)|0,C=C+Math.imul(P0,x0)|0,J=J+Math.imul(P0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(T,x0)|0,C=C+Math.imul(T,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(W0,v0)|0,C=C+Math.imul(W0,M0)|0,C=C+Math.imul(P0,v0)|0,J=J+Math.imul(P0,M0)|0;var X5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(T,v0)|0,C=C+Math.imul(T,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(P+$|0)+((C&8191)<<13)|0;return P=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Z[0]=Q5,Z[1]=g0,Z[2]=m0,Z[3]=h0,Z[4]=u0,Z[5]=o0,Z[6]=s0,Z[7]=a0,Z[8]=f0,Z[9]=n0,Z[10]=r0,Z[11]=i0,Z[12]=t0,Z[13]=e0,Z[14]=K5,Z[15]=C5,Z[16]=X5,Z[17]=H5,Z[18]=Y5,P!==0&&(Z[19]=P,Y.length++),Y};Math.imul||(k=D);function A(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,Z=0;Z<Y.length-1;Z++){var P=Q;Q=0;for(var $=H&67108863,C=Math.min(Z,X.length-1),J=Math.max(0,Z-K.length+1);J<=C;J++){var R=Z-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;P=P+(s/67108864|0)|0,r=r+$|0,$=r&67108863,P=P+(r>>>26)|0,Q+=P>>>26,P&=67108863}Y.words[Z]=$,H=P,P=Q}return H!==0?Y.words[Z]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new v;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=A(this,K,X):Y=x(this,K,X),Y};function v(K,X){this.x=K,this.y=X}v.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},v.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},v.prototype.permute=function(K,X,Y,H,Q,Z){for(var P=0;P<Z;P++)H[P]=X[K[P]],Q[P]=Y[K[P]]},v.prototype.transform=function(K,X,Y,H,Q,Z){this.permute(Z,K,X,Y,H,Q);for(var P=1;P<Q;P<<=1)for(var $=P<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<P;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+P],d=H[R+s+P],f=L*u-_*d;d=L*d+_*u,u=f,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+P]=r-u,H[R+s+P]=X0-d,s!==$&&(f=C*L-J*_,_=C*_+J*L,L=f)}},v.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},v.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},v.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},v.prototype.convert13b=function(K,X,Y,H){for(var Q=0,Z=0;Z<X;Z++)Q=Q+(K[Z]|0),Y[2*Z]=Q&8191,Q=Q>>>13,Y[2*Z+1]=Q&8191,Q=Q>>>13;for(Z=2*X;Z<H;++Z)Y[Z]=0;F(Q===0),F((Q&-8192)===0)},v.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},v.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),Z=this.stub(H),P=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,P,H),this.convert13b(X.words,X.length,J,H),this.transform(P,Z,$,C,H,Q),this.transform(J,Z,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,Z,H,Q),this.conjugate(_,Z,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=W(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var Z=0;for(Q=0;Q<this.length;Q++){var P=this.words[Q]&H,$=(this.words[Q]|0)-P<<X;this.words[Q]=$|Z,Z=P>>>26-X}Z&&(this.words[Q]=Z,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,Z=Math.min((K-Q)/26,this.length),P=67108863^67108863>>>Q<<Q,$=Y;if(H-=Z,H=Math.max(0,H),$){for(var C=0;C<Z;C++)$.words[C]=this.words[C];$.length=Z}if(Z!==0)if(this.length>Z)for(this.length-=Z,C=0;C<this.length;C++)this.words[C]=this.words[C+Z];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&P}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var Z,P=0;for(Q=0;Q<K.length;Q++){Z=(this.words[Q+Y]|0)+P;var $=(K.words[Q]|0)*X;Z-=$&67108863,P=(Z>>26)-($/67108864|0),this.words[Q+Y]=Z&67108863}for(;Q<this.length-Y;Q++)Z=(this.words[Q+Y]|0)+P,P=Z>>26,this.words[Q+Y]=Z&67108863;if(P===0)return this.strip();for(F(P===-1),P=0,Q=0;Q<this.length;Q++)Z=-(this.words[Q]|0)+P,P=Z>>26,this.words[Q]=Z&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,Z=Q.words[Q.length-1]|0,P=this._countBits(Z);Y=26-P,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),Z=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/Z|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,Z;return this.negative!==0&&K.negative===0?(Z=this.neg().divmod(K,X),X!=="mod"&&(H=Z.div.neg()),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(Z=this.divmod(K.neg(),X),X!=="mod"&&(H=Z.div.neg()),{div:H,mod:Z.mod}):(this.negative&K.negative)!==0?(Z=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:Z.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),Z=Y.cmp(H);return Z<0||Q===1&&Z===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=new G(0),P=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(Z.isOdd()||P.isOdd())&&(Z.iadd(C),P.isub(J)),Z.iushrn(1),P.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Z),Q.isub(P)):(Y.isub(X),Z.isub(H),P.isub(Q))}return{a:Z,b:P,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var P=0,$=1;(X.words[0]&$)===0&&P<26;++P,$<<=1);if(P>0)for(X.iushrn(P);P-- >0;)H.isOdd()&&H.iadd(Z),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(Z),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var Z=X;X=Y,Y=Z}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,Z=Y;Q!==0&&Z<this.length;Z++){var P=this.words[Z]|0;P+=Q,Q=P>>>26,P&=67108863,this.words[Z]=P}return Q!==0&&(this.words[Z]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new a(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var Z=K.words[9];for(X.words[X.length++]=Z&Y,Q=10;Q<K.length;Q++){var P=K.words[Q]|0;K.words[Q-10]=(P&Y)<<4|Z>>>22,Z=P}Z>>>=22,K.words[Q-10]=Z,Z===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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function a(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}a.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},a.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.red,"red works only with red numbers")},a.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},a.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},a.prototype.add=function(K,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},a.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},a.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},a.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},a.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},a.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},a.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},a.prototype.isqr=function(K){return this.imul(K,K.clone())},a.prototype.sqr=function(K){return this.mul(K,K)},a.prototype.sqrt=function(K){if(K.isZero())return K.clone();var X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var Z=new G(1).toRed(this),P=Z.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(P)!==0;)C.redIAdd(P);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(Z)!==0;){for(var s=L,r=0;s.cmp(Z)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},a.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},a.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var Z=H[0],P=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(Z!==H[0]&&(Z=this.sqr(Z)),L===0&&P===0){$=0;continue}P<<=1,P|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(Z=this.mul(Z,H[P]),$=0,P=0)}C=26}return Z},a.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},a.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.mont=function(K){return new Z0(K)};function Z0(K){a.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Z0,a),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var X=this.imod(K.mul(this.rinv));return X.red=null,X},Z0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.mul=function(K,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.invm=function(K){var X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),R8=G0((l,g)=>{var E=A9(),M=B8();g.exports=function(U){return new S(U)};var F={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}};F.p224=F.secp224r1,F.p256=F.secp256r1=F.prime256v1,F.p192=F.secp192r1=F.prime192v1,F.p384=F.secp384r1,F.p521=F.secp521r1;function S(U){this.curveType=F[U],this.curveType||(this.curveType={name:U}),this.curve=new E.ec(this.curveType.name),this.keys=void 0}S.prototype.generateKeys=function(U,I){return this.keys=this.curve.genKeyPair(),this.getPublicKey(U,I)},S.prototype.computeSecret=function(U,I,V){I=I||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,I));var z=this.curve.keyFromPublic(U).getPublic(),j=z.mul(this.keys.getPrivate()).getX();return G(j,V,this.curveType.byteLength)},S.prototype.getPublicKey=function(U,I){var V=this.keys.getPublic(I==="compressed",!0);return I==="hybrid"&&(V[V.length-1]%2?V[0]=7:V[0]=6),G(V,U)},S.prototype.getPrivateKey=function(U){return G(this.keys.getPrivate(),U)},S.prototype.setPublicKey=function(U,I){return I=I||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,I)),this.keys._importPublic(U),this},S.prototype.setPrivateKey=function(U,I){I=I||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,I));var V=new M(U);return V=V.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(V),this};function G(U,I,V){Array.isArray(U)||(U=U.toArray());var z=new Buffer(U);if(V&&z.length<V){var j=new Buffer(V-z.length);j.fill(0),z=Buffer.concat([j,z])}return I?z.toString(I):z}}),m6=G0((l,g)=>{var E=h5(),M=d0().Buffer;g.exports=function(S,G){for(var U=M.alloc(0),I=0,V;U.length<G;)V=F(I++),U=M.concat([U,E("sha1").update(S).update(V).digest()]);return U.slice(0,G)};function F(S){var G=M.allocUnsafe(4);return G.writeUInt32BE(S,0),G}}),p6=G0((l,g)=>{g.exports=function(E,M){for(var F=E.length,S=-1;++S<F;)E[S]^=M[S];return E}}),y9=G0((l,g)=>{(function(E,M){function F(K,X){if(!K)throw new Error(X||"Assertion failed")}function S(K,X){K.super_=X;var Y=function(){};Y.prototype=X.prototype,K.prototype=new Y,K.prototype.constructor=K}function G(K,X,Y){if(G.isBN(K))return K;this.negative=0,this.words=null,this.length=0,this.red=null,K!==null&&((X==="le"||X==="be")&&(Y=X,X=10),this._init(K||0,X||10,Y||"be"))}typeof E=="object"?E.exports=G:M.BN=G,G.BN=G,G.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=M5().Buffer}catch{}G.isBN=function(K){return K instanceof G?!0:K!==null&&typeof K=="object"&&K.constructor.wordSize===G.wordSize&&Array.isArray(K.words)},G.max=function(K,X){return K.cmp(X)>0?K:X},G.min=function(K,X){return K.cmp(X)<0?K:X},G.prototype._init=function(K,X,Y){if(typeof K=="number")return this._initNumber(K,X,Y);if(typeof K=="object")return this._initArray(K,X,Y);X==="hex"&&(X=16),F(X===(X|0)&&X>=2&&X<=36),K=K.toString().replace(/\s+/g,"");var H=0;K[0]==="-"&&(H++,this.negative=1),H<K.length&&(X===16?this._parseHex(K,H,Y):(this._parseBase(K,X,H),Y==="le"&&this._initArray(this.toArray(),X,Y)))},G.prototype._initNumber=function(K,X,Y){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):(F(K<9007199254740992),this.words=[K&67108863,K/67108864&67108863,1],this.length=3),Y==="le"&&this._initArray(this.toArray(),X,Y)},G.prototype._initArray=function(K,X,Y){if(F(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 H=0;H<this.length;H++)this.words[H]=0;var Q,Z,P=0;if(Y==="be")for(H=K.length-1,Q=0;H>=0;H-=3)Z=K[H]|K[H-1]<<8|K[H-2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);else if(Y==="le")for(H=0,Q=0;H<K.length;H+=3)Z=K[H]|K[H+1]<<8|K[H+2]<<16,this.words[Q]|=Z<<P&67108863,this.words[Q+1]=Z>>>26-P&67108863,P+=24,P>=26&&(P-=26,Q++);return this.strip()};function I(K,X){var Y=K.charCodeAt(X);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function V(K,X,Y){var H=I(K,Y);return Y-1>=X&&(H|=I(K,Y-1)<<4),H}G.prototype._parseHex=function(K,X,Y){this.length=Math.ceil((K.length-X)/6),this.words=new Array(this.length);for(var H=0;H<this.length;H++)this.words[H]=0;var Q=0,Z=0,P;if(Y==="be")for(H=K.length-1;H>=X;H-=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8;else{var $=K.length-X;for(H=$%2===0?X+1:X;H<K.length;H+=2)P=V(K,X,H)<<Q,this.words[Z]|=P&67108863,Q>=18?(Q-=18,Z+=1,this.words[Z]|=P>>>26):Q+=8}this.strip()};function z(K,X,Y,H){for(var Q=0,Z=Math.min(K.length,Y),P=X;P<Z;P++){var $=K.charCodeAt(P)-48;Q*=H,$>=49?Q+=$-49+10:$>=17?Q+=$-17+10:Q+=$}return Q}G.prototype._parseBase=function(K,X,Y){this.words=[0],this.length=1;for(var H=0,Q=1;Q<=67108863;Q*=X)H++;H--,Q=Q/X|0;for(var Z=K.length-Y,P=Z%H,$=Math.min(Z,Z-P)+Y,C=0,J=Y;J<$;J+=H)C=z(K,J,J+H,X),this.imuln(Q),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(P!==0){var R=1;for(C=z(K,J,K.length,X),J=0;J<P;J++)R*=X;this.imuln(R),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},G.prototype.copy=function(K){K.words=new Array(this.length);for(var X=0;X<this.length;X++)K.words[X]=this.words[X];K.length=this.length,K.negative=this.negative,K.red=this.red},G.prototype.clone=function(){var K=new G(null);return this.copy(K),K},G.prototype._expand=function(K){for(;this.length<K;)this.words[this.length++]=0;return this},G.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},G.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},G.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var j=["","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"],O=[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];G.prototype.toString=function(K,X){K=K||10,X=X|0||1;var Y;if(K===16||K==="hex"){Y="";for(var H=0,Q=0,Z=0;Z<this.length;Z++){var P=this.words[Z],$=((P<<H|Q)&16777215).toString(16);Q=P>>>24-H&16777215,Q!==0||Z!==this.length-1?Y=j[6-$.length]+$+Y:Y=$+Y,H+=2,H>=26&&(H-=26,Z--)}for(Q!==0&&(Y=Q.toString(16)+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(K===(K|0)&&K>=2&&K<=36){var C=O[K],J=N[K];Y="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(J).toString(K);R=R.idivn(J),R.isZero()?Y=L+Y:Y=j[C-L.length]+L+Y}for(this.isZero()&&(Y="0"+Y);Y.length%X!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}F(!1,"Base should be between 2 and 36")},G.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&&F(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-K:K},G.prototype.toJSON=function(){return this.toString(16)},G.prototype.toBuffer=function(K,X){return F(typeof U<"u"),this.toArrayLike(U,K,X)},G.prototype.toArray=function(K,X){return this.toArrayLike(Array,K,X)},G.prototype.toArrayLike=function(K,X,Y){var H=this.byteLength(),Q=Y||Math.max(1,H);F(H<=Q,"byte array longer than desired length"),F(Q>0,"Requested array length <= 0"),this.strip();var Z=X==="le",P=new K(Q),$,C,J=this.clone();if(Z){for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[C]=$;for(;C<Q;C++)P[C]=0}else{for(C=0;C<Q-H;C++)P[C]=0;for(C=0;!J.isZero();C++)$=J.andln(255),J.iushrn(8),P[Q-C-1]=$}return P},Math.clz32?G.prototype._countBits=function(K){return 32-Math.clz32(K)}:G.prototype._countBits=function(K){var X=K,Y=0;return X>=4096&&(Y+=13,X>>>=13),X>=64&&(Y+=7,X>>>=7),X>=8&&(Y+=4,X>>>=4),X>=2&&(Y+=2,X>>>=2),Y+X},G.prototype._zeroBits=function(K){if(K===0)return 26;var X=K,Y=0;return(X&8191)===0&&(Y+=13,X>>>=13),(X&127)===0&&(Y+=7,X>>>=7),(X&15)===0&&(Y+=4,X>>>=4),(X&3)===0&&(Y+=2,X>>>=2),(X&1)===0&&Y++,Y},G.prototype.bitLength=function(){var K=this.words[this.length-1],X=this._countBits(K);return(this.length-1)*26+X};function W(K){for(var X=new Array(K.bitLength()),Y=0;Y<X.length;Y++){var H=Y/26|0,Q=Y%26;X[Y]=(K.words[H]&1<<Q)>>>Q}return X}G.prototype.zeroBits=function(){if(this.isZero())return 0;for(var K=0,X=0;X<this.length;X++){var Y=this._zeroBits(this.words[X]);if(K+=Y,Y!==26)break}return K},G.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},G.prototype.toTwos=function(K){return this.negative!==0?this.abs().inotn(K).iaddn(1):this.clone()},G.prototype.fromTwos=function(K){return this.testn(K-1)?this.notn(K).iaddn(1).ineg():this.clone()},G.prototype.isNeg=function(){return this.negative!==0},G.prototype.neg=function(){return this.clone().ineg()},G.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},G.prototype.iuor=function(K){for(;this.length<K.length;)this.words[this.length++]=0;for(var X=0;X<K.length;X++)this.words[X]=this.words[X]|K.words[X];return this.strip()},G.prototype.ior=function(K){return F((this.negative|K.negative)===0),this.iuor(K)},G.prototype.or=function(K){return this.length>K.length?this.clone().ior(K):K.clone().ior(this)},G.prototype.uor=function(K){return this.length>K.length?this.clone().iuor(K):K.clone().iuor(this)},G.prototype.iuand=function(K){var X;this.length>K.length?X=K:X=this;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]&K.words[Y];return this.length=X.length,this.strip()},G.prototype.iand=function(K){return F((this.negative|K.negative)===0),this.iuand(K)},G.prototype.and=function(K){return this.length>K.length?this.clone().iand(K):K.clone().iand(this)},G.prototype.uand=function(K){return this.length>K.length?this.clone().iuand(K):K.clone().iuand(this)},G.prototype.iuxor=function(K){var X,Y;this.length>K.length?(X=this,Y=K):(X=K,Y=this);for(var H=0;H<Y.length;H++)this.words[H]=X.words[H]^Y.words[H];if(this!==X)for(;H<X.length;H++)this.words[H]=X.words[H];return this.length=X.length,this.strip()},G.prototype.ixor=function(K){return F((this.negative|K.negative)===0),this.iuxor(K)},G.prototype.xor=function(K){return this.length>K.length?this.clone().ixor(K):K.clone().ixor(this)},G.prototype.uxor=function(K){return this.length>K.length?this.clone().iuxor(K):K.clone().iuxor(this)},G.prototype.inotn=function(K){F(typeof K=="number"&&K>=0);var X=Math.ceil(K/26)|0,Y=K%26;this._expand(X),Y>0&&X--;for(var H=0;H<X;H++)this.words[H]=~this.words[H]&67108863;return Y>0&&(this.words[H]=~this.words[H]&67108863>>26-Y),this.strip()},G.prototype.notn=function(K){return this.clone().inotn(K)},G.prototype.setn=function(K,X){F(typeof K=="number"&&K>=0);var Y=K/26|0,H=K%26;return this._expand(Y+1),X?this.words[Y]=this.words[Y]|1<<H:this.words[Y]=this.words[Y]&~(1<<H),this.strip()},G.prototype.iadd=function(K){var X;if(this.negative!==0&&K.negative===0)return this.negative=0,X=this.isub(K),this.negative^=1,this._normSign();if(this.negative===0&&K.negative!==0)return K.negative=0,X=this.isub(K),K.negative=1,X._normSign();var Y,H;this.length>K.length?(Y=this,H=K):(Y=K,H=this);for(var Q=0,Z=0;Z<H.length;Z++)X=(Y.words[Z]|0)+(H.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;for(;Q!==0&&Z<Y.length;Z++)X=(Y.words[Z]|0)+Q,this.words[Z]=X&67108863,Q=X>>>26;if(this.length=Y.length,Q!==0)this.words[this.length]=Q,this.length++;else if(Y!==this)for(;Z<Y.length;Z++)this.words[Z]=Y.words[Z];return this},G.prototype.add=function(K){var X;return K.negative!==0&&this.negative===0?(K.negative=0,X=this.sub(K),K.negative^=1,X):K.negative===0&&this.negative!==0?(this.negative=0,X=K.sub(this),this.negative=1,X):this.length>K.length?this.clone().iadd(K):K.clone().iadd(this)},G.prototype.isub=function(K){if(K.negative!==0){K.negative=0;var X=this.iadd(K);return K.negative=1,X._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(K),this.negative=1,this._normSign();var Y=this.cmp(K);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var H,Q;Y>0?(H=this,Q=K):(H=K,Q=this);for(var Z=0,P=0;P<Q.length;P++)X=(H.words[P]|0)-(Q.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;for(;Z!==0&&P<H.length;P++)X=(H.words[P]|0)+Z,Z=X>>26,this.words[P]=X&67108863;if(Z===0&&P<H.length&&H!==this)for(;P<H.length;P++)this.words[P]=H.words[P];return this.length=Math.max(this.length,P),H!==this&&(this.negative=1),this.strip()},G.prototype.sub=function(K){return this.clone().isub(K)};function D(K,X,Y){Y.negative=X.negative^K.negative;var H=K.length+X.length|0;Y.length=H,H=H-1|0;var Q=K.words[0]|0,Z=X.words[0]|0,P=Q*Z,$=P&67108863,C=P/67108864|0;Y.words[0]=$;for(var J=1;J<H;J++){for(var R=C>>>26,L=C&67108863,_=Math.min(J,X.length-1),s=Math.max(0,J-K.length+1);s<=_;s++){var r=J-s|0;Q=K.words[r]|0,Z=X.words[s]|0,P=Q*Z+L,R+=P/67108864|0,L=P&67108863}Y.words[J]=L|0,C=R|0}return C!==0?Y.words[J]=C|0:Y.length--,Y.strip()}var k=function(K,X,Y){var H=K.words,Q=X.words,Z=Y.words,P=0,$,C,J,R=H[0]|0,L=R&8191,_=R>>>13,s=H[1]|0,r=s&8191,X0=s>>>13,u=H[2]|0,d=u&8191,f=u>>>13,z0=H[3]|0,K0=z0&8191,Q0=z0>>>13,w=H[4]|0,q=w&8191,m=w>>>13,e=H[5]|0,C0=e&8191,t=e>>>13,_0=H[6]|0,$0=_0&8191,J0=_0>>>13,w0=H[7]|0,W0=w0&8191,P0=w0>>>13,c0=H[8]|0,T=c0&8191,B=c0>>>13,b=H[9]|0,h=b&8191,o=b>>>13,O0=Q[0]|0,Y0=O0&8191,j0=O0>>>13,b0=Q[1]|0,U0=b0&8191,F0=b0>>>13,y0=Q[2]|0,D0=y0&8191,N0=y0>>>13,G5=Q[3]|0,T0=G5&8191,V0=G5>>>13,l0=Q[4]|0,L0=l0&8191,I0=l0>>>13,J5=Q[5]|0,k0=J5&8191,q0=J5>>>13,Z5=Q[6]|0,B0=Z5&8191,R0=Z5>>>13,P5=Q[7]|0,E0=P5&8191,S0=P5>>>13,j5=Q[8]|0,x0=j5&8191,A0=j5>>>13,F5=Q[9]|0,v0=F5&8191,M0=F5>>>13;Y.negative=K.negative^X.negative,Y.length=19,$=Math.imul(L,Y0),C=Math.imul(L,j0),C=C+Math.imul(_,Y0)|0,J=Math.imul(_,j0);var Q5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,$=Math.imul(r,Y0),C=Math.imul(r,j0),C=C+Math.imul(X0,Y0)|0,J=Math.imul(X0,j0),$=$+Math.imul(L,U0)|0,C=C+Math.imul(L,F0)|0,C=C+Math.imul(_,U0)|0,J=J+Math.imul(_,F0)|0;var g0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(g0>>>26)|0,g0&=67108863,$=Math.imul(d,Y0),C=Math.imul(d,j0),C=C+Math.imul(f,Y0)|0,J=Math.imul(f,j0),$=$+Math.imul(r,U0)|0,C=C+Math.imul(r,F0)|0,C=C+Math.imul(X0,U0)|0,J=J+Math.imul(X0,F0)|0,$=$+Math.imul(L,D0)|0,C=C+Math.imul(L,N0)|0,C=C+Math.imul(_,D0)|0,J=J+Math.imul(_,N0)|0;var m0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(m0>>>26)|0,m0&=67108863,$=Math.imul(K0,Y0),C=Math.imul(K0,j0),C=C+Math.imul(Q0,Y0)|0,J=Math.imul(Q0,j0),$=$+Math.imul(d,U0)|0,C=C+Math.imul(d,F0)|0,C=C+Math.imul(f,U0)|0,J=J+Math.imul(f,F0)|0,$=$+Math.imul(r,D0)|0,C=C+Math.imul(r,N0)|0,C=C+Math.imul(X0,D0)|0,J=J+Math.imul(X0,N0)|0,$=$+Math.imul(L,T0)|0,C=C+Math.imul(L,V0)|0,C=C+Math.imul(_,T0)|0,J=J+Math.imul(_,V0)|0;var h0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(h0>>>26)|0,h0&=67108863,$=Math.imul(q,Y0),C=Math.imul(q,j0),C=C+Math.imul(m,Y0)|0,J=Math.imul(m,j0),$=$+Math.imul(K0,U0)|0,C=C+Math.imul(K0,F0)|0,C=C+Math.imul(Q0,U0)|0,J=J+Math.imul(Q0,F0)|0,$=$+Math.imul(d,D0)|0,C=C+Math.imul(d,N0)|0,C=C+Math.imul(f,D0)|0,J=J+Math.imul(f,N0)|0,$=$+Math.imul(r,T0)|0,C=C+Math.imul(r,V0)|0,C=C+Math.imul(X0,T0)|0,J=J+Math.imul(X0,V0)|0,$=$+Math.imul(L,L0)|0,C=C+Math.imul(L,I0)|0,C=C+Math.imul(_,L0)|0,J=J+Math.imul(_,I0)|0;var u0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(u0>>>26)|0,u0&=67108863,$=Math.imul(C0,Y0),C=Math.imul(C0,j0),C=C+Math.imul(t,Y0)|0,J=Math.imul(t,j0),$=$+Math.imul(q,U0)|0,C=C+Math.imul(q,F0)|0,C=C+Math.imul(m,U0)|0,J=J+Math.imul(m,F0)|0,$=$+Math.imul(K0,D0)|0,C=C+Math.imul(K0,N0)|0,C=C+Math.imul(Q0,D0)|0,J=J+Math.imul(Q0,N0)|0,$=$+Math.imul(d,T0)|0,C=C+Math.imul(d,V0)|0,C=C+Math.imul(f,T0)|0,J=J+Math.imul(f,V0)|0,$=$+Math.imul(r,L0)|0,C=C+Math.imul(r,I0)|0,C=C+Math.imul(X0,L0)|0,J=J+Math.imul(X0,I0)|0,$=$+Math.imul(L,k0)|0,C=C+Math.imul(L,q0)|0,C=C+Math.imul(_,k0)|0,J=J+Math.imul(_,q0)|0;var o0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(o0>>>26)|0,o0&=67108863,$=Math.imul($0,Y0),C=Math.imul($0,j0),C=C+Math.imul(J0,Y0)|0,J=Math.imul(J0,j0),$=$+Math.imul(C0,U0)|0,C=C+Math.imul(C0,F0)|0,C=C+Math.imul(t,U0)|0,J=J+Math.imul(t,F0)|0,$=$+Math.imul(q,D0)|0,C=C+Math.imul(q,N0)|0,C=C+Math.imul(m,D0)|0,J=J+Math.imul(m,N0)|0,$=$+Math.imul(K0,T0)|0,C=C+Math.imul(K0,V0)|0,C=C+Math.imul(Q0,T0)|0,J=J+Math.imul(Q0,V0)|0,$=$+Math.imul(d,L0)|0,C=C+Math.imul(d,I0)|0,C=C+Math.imul(f,L0)|0,J=J+Math.imul(f,I0)|0,$=$+Math.imul(r,k0)|0,C=C+Math.imul(r,q0)|0,C=C+Math.imul(X0,k0)|0,J=J+Math.imul(X0,q0)|0,$=$+Math.imul(L,B0)|0,C=C+Math.imul(L,R0)|0,C=C+Math.imul(_,B0)|0,J=J+Math.imul(_,R0)|0;var s0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(s0>>>26)|0,s0&=67108863,$=Math.imul(W0,Y0),C=Math.imul(W0,j0),C=C+Math.imul(P0,Y0)|0,J=Math.imul(P0,j0),$=$+Math.imul($0,U0)|0,C=C+Math.imul($0,F0)|0,C=C+Math.imul(J0,U0)|0,J=J+Math.imul(J0,F0)|0,$=$+Math.imul(C0,D0)|0,C=C+Math.imul(C0,N0)|0,C=C+Math.imul(t,D0)|0,J=J+Math.imul(t,N0)|0,$=$+Math.imul(q,T0)|0,C=C+Math.imul(q,V0)|0,C=C+Math.imul(m,T0)|0,J=J+Math.imul(m,V0)|0,$=$+Math.imul(K0,L0)|0,C=C+Math.imul(K0,I0)|0,C=C+Math.imul(Q0,L0)|0,J=J+Math.imul(Q0,I0)|0,$=$+Math.imul(d,k0)|0,C=C+Math.imul(d,q0)|0,C=C+Math.imul(f,k0)|0,J=J+Math.imul(f,q0)|0,$=$+Math.imul(r,B0)|0,C=C+Math.imul(r,R0)|0,C=C+Math.imul(X0,B0)|0,J=J+Math.imul(X0,R0)|0,$=$+Math.imul(L,E0)|0,C=C+Math.imul(L,S0)|0,C=C+Math.imul(_,E0)|0,J=J+Math.imul(_,S0)|0;var a0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(a0>>>26)|0,a0&=67108863,$=Math.imul(T,Y0),C=Math.imul(T,j0),C=C+Math.imul(B,Y0)|0,J=Math.imul(B,j0),$=$+Math.imul(W0,U0)|0,C=C+Math.imul(W0,F0)|0,C=C+Math.imul(P0,U0)|0,J=J+Math.imul(P0,F0)|0,$=$+Math.imul($0,D0)|0,C=C+Math.imul($0,N0)|0,C=C+Math.imul(J0,D0)|0,J=J+Math.imul(J0,N0)|0,$=$+Math.imul(C0,T0)|0,C=C+Math.imul(C0,V0)|0,C=C+Math.imul(t,T0)|0,J=J+Math.imul(t,V0)|0,$=$+Math.imul(q,L0)|0,C=C+Math.imul(q,I0)|0,C=C+Math.imul(m,L0)|0,J=J+Math.imul(m,I0)|0,$=$+Math.imul(K0,k0)|0,C=C+Math.imul(K0,q0)|0,C=C+Math.imul(Q0,k0)|0,J=J+Math.imul(Q0,q0)|0,$=$+Math.imul(d,B0)|0,C=C+Math.imul(d,R0)|0,C=C+Math.imul(f,B0)|0,J=J+Math.imul(f,R0)|0,$=$+Math.imul(r,E0)|0,C=C+Math.imul(r,S0)|0,C=C+Math.imul(X0,E0)|0,J=J+Math.imul(X0,S0)|0,$=$+Math.imul(L,x0)|0,C=C+Math.imul(L,A0)|0,C=C+Math.imul(_,x0)|0,J=J+Math.imul(_,A0)|0;var f0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(f0>>>26)|0,f0&=67108863,$=Math.imul(h,Y0),C=Math.imul(h,j0),C=C+Math.imul(o,Y0)|0,J=Math.imul(o,j0),$=$+Math.imul(T,U0)|0,C=C+Math.imul(T,F0)|0,C=C+Math.imul(B,U0)|0,J=J+Math.imul(B,F0)|0,$=$+Math.imul(W0,D0)|0,C=C+Math.imul(W0,N0)|0,C=C+Math.imul(P0,D0)|0,J=J+Math.imul(P0,N0)|0,$=$+Math.imul($0,T0)|0,C=C+Math.imul($0,V0)|0,C=C+Math.imul(J0,T0)|0,J=J+Math.imul(J0,V0)|0,$=$+Math.imul(C0,L0)|0,C=C+Math.imul(C0,I0)|0,C=C+Math.imul(t,L0)|0,J=J+Math.imul(t,I0)|0,$=$+Math.imul(q,k0)|0,C=C+Math.imul(q,q0)|0,C=C+Math.imul(m,k0)|0,J=J+Math.imul(m,q0)|0,$=$+Math.imul(K0,B0)|0,C=C+Math.imul(K0,R0)|0,C=C+Math.imul(Q0,B0)|0,J=J+Math.imul(Q0,R0)|0,$=$+Math.imul(d,E0)|0,C=C+Math.imul(d,S0)|0,C=C+Math.imul(f,E0)|0,J=J+Math.imul(f,S0)|0,$=$+Math.imul(r,x0)|0,C=C+Math.imul(r,A0)|0,C=C+Math.imul(X0,x0)|0,J=J+Math.imul(X0,A0)|0,$=$+Math.imul(L,v0)|0,C=C+Math.imul(L,M0)|0,C=C+Math.imul(_,v0)|0,J=J+Math.imul(_,M0)|0;var n0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(n0>>>26)|0,n0&=67108863,$=Math.imul(h,U0),C=Math.imul(h,F0),C=C+Math.imul(o,U0)|0,J=Math.imul(o,F0),$=$+Math.imul(T,D0)|0,C=C+Math.imul(T,N0)|0,C=C+Math.imul(B,D0)|0,J=J+Math.imul(B,N0)|0,$=$+Math.imul(W0,T0)|0,C=C+Math.imul(W0,V0)|0,C=C+Math.imul(P0,T0)|0,J=J+Math.imul(P0,V0)|0,$=$+Math.imul($0,L0)|0,C=C+Math.imul($0,I0)|0,C=C+Math.imul(J0,L0)|0,J=J+Math.imul(J0,I0)|0,$=$+Math.imul(C0,k0)|0,C=C+Math.imul(C0,q0)|0,C=C+Math.imul(t,k0)|0,J=J+Math.imul(t,q0)|0,$=$+Math.imul(q,B0)|0,C=C+Math.imul(q,R0)|0,C=C+Math.imul(m,B0)|0,J=J+Math.imul(m,R0)|0,$=$+Math.imul(K0,E0)|0,C=C+Math.imul(K0,S0)|0,C=C+Math.imul(Q0,E0)|0,J=J+Math.imul(Q0,S0)|0,$=$+Math.imul(d,x0)|0,C=C+Math.imul(d,A0)|0,C=C+Math.imul(f,x0)|0,J=J+Math.imul(f,A0)|0,$=$+Math.imul(r,v0)|0,C=C+Math.imul(r,M0)|0,C=C+Math.imul(X0,v0)|0,J=J+Math.imul(X0,M0)|0;var r0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(r0>>>26)|0,r0&=67108863,$=Math.imul(h,D0),C=Math.imul(h,N0),C=C+Math.imul(o,D0)|0,J=Math.imul(o,N0),$=$+Math.imul(T,T0)|0,C=C+Math.imul(T,V0)|0,C=C+Math.imul(B,T0)|0,J=J+Math.imul(B,V0)|0,$=$+Math.imul(W0,L0)|0,C=C+Math.imul(W0,I0)|0,C=C+Math.imul(P0,L0)|0,J=J+Math.imul(P0,I0)|0,$=$+Math.imul($0,k0)|0,C=C+Math.imul($0,q0)|0,C=C+Math.imul(J0,k0)|0,J=J+Math.imul(J0,q0)|0,$=$+Math.imul(C0,B0)|0,C=C+Math.imul(C0,R0)|0,C=C+Math.imul(t,B0)|0,J=J+Math.imul(t,R0)|0,$=$+Math.imul(q,E0)|0,C=C+Math.imul(q,S0)|0,C=C+Math.imul(m,E0)|0,J=J+Math.imul(m,S0)|0,$=$+Math.imul(K0,x0)|0,C=C+Math.imul(K0,A0)|0,C=C+Math.imul(Q0,x0)|0,J=J+Math.imul(Q0,A0)|0,$=$+Math.imul(d,v0)|0,C=C+Math.imul(d,M0)|0,C=C+Math.imul(f,v0)|0,J=J+Math.imul(f,M0)|0;var i0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(i0>>>26)|0,i0&=67108863,$=Math.imul(h,T0),C=Math.imul(h,V0),C=C+Math.imul(o,T0)|0,J=Math.imul(o,V0),$=$+Math.imul(T,L0)|0,C=C+Math.imul(T,I0)|0,C=C+Math.imul(B,L0)|0,J=J+Math.imul(B,I0)|0,$=$+Math.imul(W0,k0)|0,C=C+Math.imul(W0,q0)|0,C=C+Math.imul(P0,k0)|0,J=J+Math.imul(P0,q0)|0,$=$+Math.imul($0,B0)|0,C=C+Math.imul($0,R0)|0,C=C+Math.imul(J0,B0)|0,J=J+Math.imul(J0,R0)|0,$=$+Math.imul(C0,E0)|0,C=C+Math.imul(C0,S0)|0,C=C+Math.imul(t,E0)|0,J=J+Math.imul(t,S0)|0,$=$+Math.imul(q,x0)|0,C=C+Math.imul(q,A0)|0,C=C+Math.imul(m,x0)|0,J=J+Math.imul(m,A0)|0,$=$+Math.imul(K0,v0)|0,C=C+Math.imul(K0,M0)|0,C=C+Math.imul(Q0,v0)|0,J=J+Math.imul(Q0,M0)|0;var t0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(t0>>>26)|0,t0&=67108863,$=Math.imul(h,L0),C=Math.imul(h,I0),C=C+Math.imul(o,L0)|0,J=Math.imul(o,I0),$=$+Math.imul(T,k0)|0,C=C+Math.imul(T,q0)|0,C=C+Math.imul(B,k0)|0,J=J+Math.imul(B,q0)|0,$=$+Math.imul(W0,B0)|0,C=C+Math.imul(W0,R0)|0,C=C+Math.imul(P0,B0)|0,J=J+Math.imul(P0,R0)|0,$=$+Math.imul($0,E0)|0,C=C+Math.imul($0,S0)|0,C=C+Math.imul(J0,E0)|0,J=J+Math.imul(J0,S0)|0,$=$+Math.imul(C0,x0)|0,C=C+Math.imul(C0,A0)|0,C=C+Math.imul(t,x0)|0,J=J+Math.imul(t,A0)|0,$=$+Math.imul(q,v0)|0,C=C+Math.imul(q,M0)|0,C=C+Math.imul(m,v0)|0,J=J+Math.imul(m,M0)|0;var e0=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(e0>>>26)|0,e0&=67108863,$=Math.imul(h,k0),C=Math.imul(h,q0),C=C+Math.imul(o,k0)|0,J=Math.imul(o,q0),$=$+Math.imul(T,B0)|0,C=C+Math.imul(T,R0)|0,C=C+Math.imul(B,B0)|0,J=J+Math.imul(B,R0)|0,$=$+Math.imul(W0,E0)|0,C=C+Math.imul(W0,S0)|0,C=C+Math.imul(P0,E0)|0,J=J+Math.imul(P0,S0)|0,$=$+Math.imul($0,x0)|0,C=C+Math.imul($0,A0)|0,C=C+Math.imul(J0,x0)|0,J=J+Math.imul(J0,A0)|0,$=$+Math.imul(C0,v0)|0,C=C+Math.imul(C0,M0)|0,C=C+Math.imul(t,v0)|0,J=J+Math.imul(t,M0)|0;var K5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(K5>>>26)|0,K5&=67108863,$=Math.imul(h,B0),C=Math.imul(h,R0),C=C+Math.imul(o,B0)|0,J=Math.imul(o,R0),$=$+Math.imul(T,E0)|0,C=C+Math.imul(T,S0)|0,C=C+Math.imul(B,E0)|0,J=J+Math.imul(B,S0)|0,$=$+Math.imul(W0,x0)|0,C=C+Math.imul(W0,A0)|0,C=C+Math.imul(P0,x0)|0,J=J+Math.imul(P0,A0)|0,$=$+Math.imul($0,v0)|0,C=C+Math.imul($0,M0)|0,C=C+Math.imul(J0,v0)|0,J=J+Math.imul(J0,M0)|0;var C5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(C5>>>26)|0,C5&=67108863,$=Math.imul(h,E0),C=Math.imul(h,S0),C=C+Math.imul(o,E0)|0,J=Math.imul(o,S0),$=$+Math.imul(T,x0)|0,C=C+Math.imul(T,A0)|0,C=C+Math.imul(B,x0)|0,J=J+Math.imul(B,A0)|0,$=$+Math.imul(W0,v0)|0,C=C+Math.imul(W0,M0)|0,C=C+Math.imul(P0,v0)|0,J=J+Math.imul(P0,M0)|0;var X5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(X5>>>26)|0,X5&=67108863,$=Math.imul(h,x0),C=Math.imul(h,A0),C=C+Math.imul(o,x0)|0,J=Math.imul(o,A0),$=$+Math.imul(T,v0)|0,C=C+Math.imul(T,M0)|0,C=C+Math.imul(B,v0)|0,J=J+Math.imul(B,M0)|0;var H5=(P+$|0)+((C&8191)<<13)|0;P=(J+(C>>>13)|0)+(H5>>>26)|0,H5&=67108863,$=Math.imul(h,v0),C=Math.imul(h,M0),C=C+Math.imul(o,v0)|0,J=Math.imul(o,M0);var Y5=(P+$|0)+((C&8191)<<13)|0;return P=(J+(C>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,Z[0]=Q5,Z[1]=g0,Z[2]=m0,Z[3]=h0,Z[4]=u0,Z[5]=o0,Z[6]=s0,Z[7]=a0,Z[8]=f0,Z[9]=n0,Z[10]=r0,Z[11]=i0,Z[12]=t0,Z[13]=e0,Z[14]=K5,Z[15]=C5,Z[16]=X5,Z[17]=H5,Z[18]=Y5,P!==0&&(Z[19]=P,Y.length++),Y};Math.imul||(k=D);function A(K,X,Y){Y.negative=X.negative^K.negative,Y.length=K.length+X.length;for(var H=0,Q=0,Z=0;Z<Y.length-1;Z++){var P=Q;Q=0;for(var $=H&67108863,C=Math.min(Z,X.length-1),J=Math.max(0,Z-K.length+1);J<=C;J++){var R=Z-J,L=K.words[R]|0,_=X.words[J]|0,s=L*_,r=s&67108863;P=P+(s/67108864|0)|0,r=r+$|0,$=r&67108863,P=P+(r>>>26)|0,Q+=P>>>26,P&=67108863}Y.words[Z]=$,H=P,P=Q}return H!==0?Y.words[Z]=H:Y.length--,Y.strip()}function x(K,X,Y){var H=new v;return H.mulp(K,X,Y)}G.prototype.mulTo=function(K,X){var Y,H=this.length+K.length;return this.length===10&&K.length===10?Y=k(this,K,X):H<63?Y=D(this,K,X):H<1024?Y=A(this,K,X):Y=x(this,K,X),Y};function v(K,X){this.x=K,this.y=X}v.prototype.makeRBT=function(K){for(var X=new Array(K),Y=G.prototype._countBits(K)-1,H=0;H<K;H++)X[H]=this.revBin(H,Y,K);return X},v.prototype.revBin=function(K,X,Y){if(K===0||K===Y-1)return K;for(var H=0,Q=0;Q<X;Q++)H|=(K&1)<<X-Q-1,K>>=1;return H},v.prototype.permute=function(K,X,Y,H,Q,Z){for(var P=0;P<Z;P++)H[P]=X[K[P]],Q[P]=Y[K[P]]},v.prototype.transform=function(K,X,Y,H,Q,Z){this.permute(Z,K,X,Y,H,Q);for(var P=1;P<Q;P<<=1)for(var $=P<<1,C=Math.cos(2*Math.PI/$),J=Math.sin(2*Math.PI/$),R=0;R<Q;R+=$)for(var L=C,_=J,s=0;s<P;s++){var r=Y[R+s],X0=H[R+s],u=Y[R+s+P],d=H[R+s+P],f=L*u-_*d;d=L*d+_*u,u=f,Y[R+s]=r+u,H[R+s]=X0+d,Y[R+s+P]=r-u,H[R+s+P]=X0-d,s!==$&&(f=C*L-J*_,_=C*_+J*L,L=f)}},v.prototype.guessLen13b=function(K,X){var Y=Math.max(X,K)|1,H=Y&1,Q=0;for(Y=Y/2|0;Y;Y=Y>>>1)Q++;return 1<<Q+1+H},v.prototype.conjugate=function(K,X,Y){if(!(Y<=1))for(var H=0;H<Y/2;H++){var Q=K[H];K[H]=K[Y-H-1],K[Y-H-1]=Q,Q=X[H],X[H]=-X[Y-H-1],X[Y-H-1]=-Q}},v.prototype.normalize13b=function(K,X){for(var Y=0,H=0;H<X/2;H++){var Q=Math.round(K[2*H+1]/X)*8192+Math.round(K[2*H]/X)+Y;K[H]=Q&67108863,Q<67108864?Y=0:Y=Q/67108864|0}return K},v.prototype.convert13b=function(K,X,Y,H){for(var Q=0,Z=0;Z<X;Z++)Q=Q+(K[Z]|0),Y[2*Z]=Q&8191,Q=Q>>>13,Y[2*Z+1]=Q&8191,Q=Q>>>13;for(Z=2*X;Z<H;++Z)Y[Z]=0;F(Q===0),F((Q&-8192)===0)},v.prototype.stub=function(K){for(var X=new Array(K),Y=0;Y<K;Y++)X[Y]=0;return X},v.prototype.mulp=function(K,X,Y){var H=2*this.guessLen13b(K.length,X.length),Q=this.makeRBT(H),Z=this.stub(H),P=new Array(H),$=new Array(H),C=new Array(H),J=new Array(H),R=new Array(H),L=new Array(H),_=Y.words;_.length=H,this.convert13b(K.words,K.length,P,H),this.convert13b(X.words,X.length,J,H),this.transform(P,Z,$,C,H,Q),this.transform(J,Z,R,L,H,Q);for(var s=0;s<H;s++){var r=$[s]*R[s]-C[s]*L[s];C[s]=$[s]*L[s]+C[s]*R[s],$[s]=r}return this.conjugate($,C,H),this.transform($,C,_,Z,H,Q),this.conjugate(_,Z,H),this.normalize13b(_,H),Y.negative=K.negative^X.negative,Y.length=K.length+X.length,Y.strip()},G.prototype.mul=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),this.mulTo(K,X)},G.prototype.mulf=function(K){var X=new G(null);return X.words=new Array(this.length+K.length),x(this,K,X)},G.prototype.imul=function(K){return this.clone().mulTo(K,this)},G.prototype.imuln=function(K){F(typeof K=="number"),F(K<67108864);for(var X=0,Y=0;Y<this.length;Y++){var H=(this.words[Y]|0)*K,Q=(H&67108863)+(X&67108863);X>>=26,X+=H/67108864|0,X+=Q>>>26,this.words[Y]=Q&67108863}return X!==0&&(this.words[Y]=X,this.length++),this},G.prototype.muln=function(K){return this.clone().imuln(K)},G.prototype.sqr=function(){return this.mul(this)},G.prototype.isqr=function(){return this.imul(this.clone())},G.prototype.pow=function(K){var X=W(K);if(X.length===0)return new G(1);for(var Y=this,H=0;H<X.length&&X[H]===0;H++,Y=Y.sqr());if(++H<X.length)for(var Q=Y.sqr();H<X.length;H++,Q=Q.sqr())X[H]!==0&&(Y=Y.mul(Q));return Y},G.prototype.iushln=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=67108863>>>26-X<<26-X,Q;if(X!==0){var Z=0;for(Q=0;Q<this.length;Q++){var P=this.words[Q]&H,$=(this.words[Q]|0)-P<<X;this.words[Q]=$|Z,Z=P>>>26-X}Z&&(this.words[Q]=Z,this.length++)}if(Y!==0){for(Q=this.length-1;Q>=0;Q--)this.words[Q+Y]=this.words[Q];for(Q=0;Q<Y;Q++)this.words[Q]=0;this.length+=Y}return this.strip()},G.prototype.ishln=function(K){return F(this.negative===0),this.iushln(K)},G.prototype.iushrn=function(K,X,Y){F(typeof K=="number"&&K>=0);var H;X?H=(X-X%26)/26:H=0;var Q=K%26,Z=Math.min((K-Q)/26,this.length),P=67108863^67108863>>>Q<<Q,$=Y;if(H-=Z,H=Math.max(0,H),$){for(var C=0;C<Z;C++)$.words[C]=this.words[C];$.length=Z}if(Z!==0)if(this.length>Z)for(this.length-=Z,C=0;C<this.length;C++)this.words[C]=this.words[C+Z];else this.words[0]=0,this.length=1;var J=0;for(C=this.length-1;C>=0&&(J!==0||C>=H);C--){var R=this.words[C]|0;this.words[C]=J<<26-Q|R>>>Q,J=R&P}return $&&J!==0&&($.words[$.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},G.prototype.ishrn=function(K,X,Y){return F(this.negative===0),this.iushrn(K,X,Y)},G.prototype.shln=function(K){return this.clone().ishln(K)},G.prototype.ushln=function(K){return this.clone().iushln(K)},G.prototype.shrn=function(K){return this.clone().ishrn(K)},G.prototype.ushrn=function(K){return this.clone().iushrn(K)},G.prototype.testn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return!1;var Q=this.words[Y];return!!(Q&H)},G.prototype.imaskn=function(K){F(typeof K=="number"&&K>=0);var X=K%26,Y=(K-X)/26;if(F(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(X!==0&&Y++,this.length=Math.min(Y,this.length),X!==0){var H=67108863^67108863>>>X<<X;this.words[this.length-1]&=H}return this.strip()},G.prototype.maskn=function(K){return this.clone().imaskn(K)},G.prototype.iaddn=function(K){return F(typeof K=="number"),F(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)},G.prototype._iaddn=function(K){this.words[0]+=K;for(var X=0;X<this.length&&this.words[X]>=67108864;X++)this.words[X]-=67108864,X===this.length-1?this.words[X+1]=1:this.words[X+1]++;return this.length=Math.max(this.length,X+1),this},G.prototype.isubn=function(K){if(F(typeof K=="number"),F(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 X=0;X<this.length&&this.words[X]<0;X++)this.words[X]+=67108864,this.words[X+1]-=1;return this.strip()},G.prototype.addn=function(K){return this.clone().iaddn(K)},G.prototype.subn=function(K){return this.clone().isubn(K)},G.prototype.iabs=function(){return this.negative=0,this},G.prototype.abs=function(){return this.clone().iabs()},G.prototype._ishlnsubmul=function(K,X,Y){var H=K.length+Y,Q;this._expand(H);var Z,P=0;for(Q=0;Q<K.length;Q++){Z=(this.words[Q+Y]|0)+P;var $=(K.words[Q]|0)*X;Z-=$&67108863,P=(Z>>26)-($/67108864|0),this.words[Q+Y]=Z&67108863}for(;Q<this.length-Y;Q++)Z=(this.words[Q+Y]|0)+P,P=Z>>26,this.words[Q+Y]=Z&67108863;if(P===0)return this.strip();for(F(P===-1),P=0,Q=0;Q<this.length;Q++)Z=-(this.words[Q]|0)+P,P=Z>>26,this.words[Q]=Z&67108863;return this.negative=1,this.strip()},G.prototype._wordDiv=function(K,X){var Y=this.length-K.length,H=this.clone(),Q=K,Z=Q.words[Q.length-1]|0,P=this._countBits(Z);Y=26-P,Y!==0&&(Q=Q.ushln(Y),H.iushln(Y),Z=Q.words[Q.length-1]|0);var $=H.length-Q.length,C;if(X!=="mod"){C=new G(null),C.length=$+1,C.words=new Array(C.length);for(var J=0;J<C.length;J++)C.words[J]=0}var R=H.clone()._ishlnsubmul(Q,1,$);R.negative===0&&(H=R,C&&(C.words[$]=1));for(var L=$-1;L>=0;L--){var _=(H.words[Q.length+L]|0)*67108864+(H.words[Q.length+L-1]|0);for(_=Math.min(_/Z|0,67108863),H._ishlnsubmul(Q,_,L);H.negative!==0;)_--,H.negative=0,H._ishlnsubmul(Q,1,L),H.isZero()||(H.negative^=1);C&&(C.words[L]=_)}return C&&C.strip(),H.strip(),X!=="div"&&Y!==0&&H.iushrn(Y),{div:C||null,mod:H}},G.prototype.divmod=function(K,X,Y){if(F(!K.isZero()),this.isZero())return{div:new G(0),mod:new G(0)};var H,Q,Z;return this.negative!==0&&K.negative===0?(Z=this.neg().divmod(K,X),X!=="mod"&&(H=Z.div.neg()),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.iadd(K)),{div:H,mod:Q}):this.negative===0&&K.negative!==0?(Z=this.divmod(K.neg(),X),X!=="mod"&&(H=Z.div.neg()),{div:H,mod:Z.mod}):(this.negative&K.negative)!==0?(Z=this.neg().divmod(K.neg(),X),X!=="div"&&(Q=Z.mod.neg(),Y&&Q.negative!==0&&Q.isub(K)),{div:Z.div,mod:Q}):K.length>this.length||this.cmp(K)<0?{div:new G(0),mod:this}:K.length===1?X==="div"?{div:this.divn(K.words[0]),mod:null}:X==="mod"?{div:null,mod:new G(this.modn(K.words[0]))}:{div:this.divn(K.words[0]),mod:new G(this.modn(K.words[0]))}:this._wordDiv(K,X)},G.prototype.div=function(K){return this.divmod(K,"div",!1).div},G.prototype.mod=function(K){return this.divmod(K,"mod",!1).mod},G.prototype.umod=function(K){return this.divmod(K,"mod",!0).mod},G.prototype.divRound=function(K){var X=this.divmod(K);if(X.mod.isZero())return X.div;var Y=X.div.negative!==0?X.mod.isub(K):X.mod,H=K.ushrn(1),Q=K.andln(1),Z=Y.cmp(H);return Z<0||Q===1&&Z===0?X.div:X.div.negative!==0?X.div.isubn(1):X.div.iaddn(1)},G.prototype.modn=function(K){F(K<=67108863);for(var X=67108864%K,Y=0,H=this.length-1;H>=0;H--)Y=(X*Y+(this.words[H]|0))%K;return Y},G.prototype.idivn=function(K){F(K<=67108863);for(var X=0,Y=this.length-1;Y>=0;Y--){var H=(this.words[Y]|0)+X*67108864;this.words[Y]=H/K|0,X=H%K}return this.strip()},G.prototype.divn=function(K){return this.clone().idivn(K)},G.prototype.egcd=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=new G(0),P=new G(1),$=0;X.isEven()&&Y.isEven();)X.iushrn(1),Y.iushrn(1),++$;for(var C=Y.clone(),J=X.clone();!X.isZero();){for(var R=0,L=1;(X.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(X.iushrn(R);R-- >0;)(H.isOdd()||Q.isOdd())&&(H.iadd(C),Q.isub(J)),H.iushrn(1),Q.iushrn(1);for(var _=0,s=1;(Y.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Y.iushrn(_);_-- >0;)(Z.isOdd()||P.isOdd())&&(Z.iadd(C),P.isub(J)),Z.iushrn(1),P.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Z),Q.isub(P)):(Y.isub(X),Z.isub(H),P.isub(Q))}return{a:Z,b:P,gcd:Y.iushln($)}},G.prototype._invmp=function(K){F(K.negative===0),F(!K.isZero());var X=this,Y=K.clone();X.negative!==0?X=X.umod(K):X=X.clone();for(var H=new G(1),Q=new G(0),Z=Y.clone();X.cmpn(1)>0&&Y.cmpn(1)>0;){for(var P=0,$=1;(X.words[0]&$)===0&&P<26;++P,$<<=1);if(P>0)for(X.iushrn(P);P-- >0;)H.isOdd()&&H.iadd(Z),H.iushrn(1);for(var C=0,J=1;(Y.words[0]&J)===0&&C<26;++C,J<<=1);if(C>0)for(Y.iushrn(C);C-- >0;)Q.isOdd()&&Q.iadd(Z),Q.iushrn(1);X.cmp(Y)>=0?(X.isub(Y),H.isub(Q)):(Y.isub(X),Q.isub(H))}var R;return X.cmpn(1)===0?R=H:R=Q,R.cmpn(0)<0&&R.iadd(K),R},G.prototype.gcd=function(K){if(this.isZero())return K.abs();if(K.isZero())return this.abs();var X=this.clone(),Y=K.clone();X.negative=0,Y.negative=0;for(var H=0;X.isEven()&&Y.isEven();H++)X.iushrn(1),Y.iushrn(1);do{for(;X.isEven();)X.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var Q=X.cmp(Y);if(Q<0){var Z=X;X=Y,Y=Z}else if(Q===0||Y.cmpn(1)===0)break;X.isub(Y)}while(!0);return Y.iushln(H)},G.prototype.invm=function(K){return this.egcd(K).a.umod(K)},G.prototype.isEven=function(){return(this.words[0]&1)===0},G.prototype.isOdd=function(){return(this.words[0]&1)===1},G.prototype.andln=function(K){return this.words[0]&K},G.prototype.bincn=function(K){F(typeof K=="number");var X=K%26,Y=(K-X)/26,H=1<<X;if(this.length<=Y)return this._expand(Y+1),this.words[Y]|=H,this;for(var Q=H,Z=Y;Q!==0&&Z<this.length;Z++){var P=this.words[Z]|0;P+=Q,Q=P>>>26,P&=67108863,this.words[Z]=P}return Q!==0&&(this.words[Z]=Q,this.length++),this},G.prototype.isZero=function(){return this.length===1&&this.words[0]===0},G.prototype.cmpn=function(K){var X=K<0;if(this.negative!==0&&!X)return-1;if(this.negative===0&&X)return 1;this.strip();var Y;if(this.length>1)Y=1;else{X&&(K=-K),F(K<=67108863,"Number is too big");var H=this.words[0]|0;Y=H===K?0:H<K?-1:1}return this.negative!==0?-Y|0:Y},G.prototype.cmp=function(K){if(this.negative!==0&&K.negative===0)return-1;if(this.negative===0&&K.negative!==0)return 1;var X=this.ucmp(K);return this.negative!==0?-X|0:X},G.prototype.ucmp=function(K){if(this.length>K.length)return 1;if(this.length<K.length)return-1;for(var X=0,Y=this.length-1;Y>=0;Y--){var H=this.words[Y]|0,Q=K.words[Y]|0;if(H!==Q){H<Q?X=-1:H>Q&&(X=1);break}}return X},G.prototype.gtn=function(K){return this.cmpn(K)===1},G.prototype.gt=function(K){return this.cmp(K)===1},G.prototype.gten=function(K){return this.cmpn(K)>=0},G.prototype.gte=function(K){return this.cmp(K)>=0},G.prototype.ltn=function(K){return this.cmpn(K)===-1},G.prototype.lt=function(K){return this.cmp(K)===-1},G.prototype.lten=function(K){return this.cmpn(K)<=0},G.prototype.lte=function(K){return this.cmp(K)<=0},G.prototype.eqn=function(K){return this.cmpn(K)===0},G.prototype.eq=function(K){return this.cmp(K)===0},G.red=function(K){return new a(K)},G.prototype.toRed=function(K){return F(!this.red,"Already a number in reduction context"),F(this.negative===0,"red works only with positives"),K.convertTo(this)._forceRed(K)},G.prototype.fromRed=function(){return F(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},G.prototype._forceRed=function(K){return this.red=K,this},G.prototype.forceRed=function(K){return F(!this.red,"Already a number in reduction context"),this._forceRed(K)},G.prototype.redAdd=function(K){return F(this.red,"redAdd works only with red numbers"),this.red.add(this,K)},G.prototype.redIAdd=function(K){return F(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,K)},G.prototype.redSub=function(K){return F(this.red,"redSub works only with red numbers"),this.red.sub(this,K)},G.prototype.redISub=function(K){return F(this.red,"redISub works only with red numbers"),this.red.isub(this,K)},G.prototype.redShl=function(K){return F(this.red,"redShl works only with red numbers"),this.red.shl(this,K)},G.prototype.redMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.mul(this,K)},G.prototype.redIMul=function(K){return F(this.red,"redMul works only with red numbers"),this.red._verify2(this,K),this.red.imul(this,K)},G.prototype.redSqr=function(){return F(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},G.prototype.redISqr=function(){return F(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},G.prototype.redSqrt=function(){return F(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},G.prototype.redInvm=function(){return F(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},G.prototype.redNeg=function(){return F(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},G.prototype.redPow=function(K){return F(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,X){this.name=K,this.p=new G(X,16),this.n=this.p.bitLength(),this.k=new G(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var K=new G(null);return K.words=new Array(Math.ceil(this.n/13)),K},p.prototype.ireduce=function(K){var X=K,Y;do this.split(X,this.tmp),X=this.imulK(X),X=X.iadd(this.tmp),Y=X.bitLength();while(Y>this.n);var H=Y<this.n?-1:X.ucmp(this.p);return H===0?(X.words[0]=0,X.length=1):H>0?X.isub(this.p):X.strip!==void 0?X.strip():X._strip(),X},p.prototype.split=function(K,X){K.iushrn(this.n,0,X)},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,X){for(var Y=4194303,H=Math.min(K.length,9),Q=0;Q<H;Q++)X.words[Q]=K.words[Q];if(X.length=H,K.length<=9){K.words[0]=0,K.length=1;return}var Z=K.words[9];for(X.words[X.length++]=Z&Y,Q=10;Q<K.length;Q++){var P=K.words[Q]|0;K.words[Q-10]=(P&Y)<<4|Z>>>22,Z=P}Z>>>=22,K.words[Q-10]=Z,Z===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 X=0,Y=0;Y<K.length;Y++){var H=K.words[Y]|0;X+=H*977,K.words[Y]=X&67108863,X=H*64+(X/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 H0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(H0,p),H0.prototype.imulK=function(K){for(var X=0,Y=0;Y<K.length;Y++){var H=(K.words[Y]|0)*19+X,Q=H&67108863;H>>>=26,K.words[Y]=Q,X=H}return X!==0&&(K.words[K.length++]=X),K},G._prime=function(K){if(y[K])return y[K];var X;if(K==="k256")X=new c;else if(K==="p224")X=new n;else if(K==="p192")X=new i;else if(K==="p25519")X=new H0;else throw new Error("Unknown prime "+K);return y[K]=X,X};function a(K){if(typeof K=="string"){var X=G._prime(K);this.m=X.p,this.prime=X}else F(K.gtn(1),"modulus must be greater than 1"),this.m=K,this.prime=null}a.prototype._verify1=function(K){F(K.negative===0,"red works only with positives"),F(K.red,"red works only with red numbers")},a.prototype._verify2=function(K,X){F((K.negative|X.negative)===0,"red works only with positives"),F(K.red&&K.red===X.red,"red works only with red numbers")},a.prototype.imod=function(K){return this.prime?this.prime.ireduce(K)._forceRed(this):K.umod(this.m)._forceRed(this)},a.prototype.neg=function(K){return K.isZero()?K.clone():this.m.sub(K)._forceRed(this)},a.prototype.add=function(K,X){this._verify2(K,X);var Y=K.add(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},a.prototype.iadd=function(K,X){this._verify2(K,X);var Y=K.iadd(X);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},a.prototype.sub=function(K,X){this._verify2(K,X);var Y=K.sub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},a.prototype.isub=function(K,X){this._verify2(K,X);var Y=K.isub(X);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},a.prototype.shl=function(K,X){return this._verify1(K),this.imod(K.ushln(X))},a.prototype.imul=function(K,X){return this._verify2(K,X),this.imod(K.imul(X))},a.prototype.mul=function(K,X){return this._verify2(K,X),this.imod(K.mul(X))},a.prototype.isqr=function(K){return this.imul(K,K.clone())},a.prototype.sqr=function(K){return this.mul(K,K)},a.prototype.sqrt=function(K){if(K.isZero())return K.clone();var X=this.m.andln(3);if(F(X%2===1),X===3){var Y=this.m.add(new G(1)).iushrn(2);return this.pow(K,Y)}for(var H=this.m.subn(1),Q=0;!H.isZero()&&H.andln(1)===0;)Q++,H.iushrn(1);F(!H.isZero());var Z=new G(1).toRed(this),P=Z.redNeg(),$=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new G(2*C*C).toRed(this);this.pow(C,$).cmp(P)!==0;)C.redIAdd(P);for(var J=this.pow(C,H),R=this.pow(K,H.addn(1).iushrn(1)),L=this.pow(K,H),_=Q;L.cmp(Z)!==0;){for(var s=L,r=0;s.cmp(Z)!==0;r++)s=s.redSqr();F(r<_);var X0=this.pow(J,new G(1).iushln(_-r-1));R=R.redMul(X0),J=X0.redSqr(),L=L.redMul(J),_=r}return R},a.prototype.invm=function(K){var X=K._invmp(this.m);return X.negative!==0?(X.negative=0,this.imod(X).redNeg()):this.imod(X)},a.prototype.pow=function(K,X){if(X.isZero())return new G(1).toRed(this);if(X.cmpn(1)===0)return K.clone();var Y=4,H=new Array(1<<Y);H[0]=new G(1).toRed(this),H[1]=K;for(var Q=2;Q<H.length;Q++)H[Q]=this.mul(H[Q-1],K);var Z=H[0],P=0,$=0,C=X.bitLength()%26;for(C===0&&(C=26),Q=X.length-1;Q>=0;Q--){for(var J=X.words[Q],R=C-1;R>=0;R--){var L=J>>R&1;if(Z!==H[0]&&(Z=this.sqr(Z)),L===0&&P===0){$=0;continue}P<<=1,P|=L,$++,!($!==Y&&(Q!==0||R!==0))&&(Z=this.mul(Z,H[P]),$=0,P=0)}C=26}return Z},a.prototype.convertTo=function(K){var X=K.umod(this.m);return X===K?X.clone():X},a.prototype.convertFrom=function(K){var X=K.clone();return X.red=null,X},G.mont=function(K){return new Z0(K)};function Z0(K){a.call(this,K),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new G(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(Z0,a),Z0.prototype.convertTo=function(K){return this.imod(K.ushln(this.shift))},Z0.prototype.convertFrom=function(K){var X=this.imod(K.mul(this.rinv));return X.red=null,X},Z0.prototype.imul=function(K,X){if(K.isZero()||X.isZero())return K.words[0]=0,K.length=1,K;var Y=K.imul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.mul=function(K,X){if(K.isZero()||X.isZero())return new G(0)._forceRed(this);var Y=K.mul(X),H=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=Y.isub(H).iushrn(this.shift),Z=Q;return Q.cmp(this.m)>=0?Z=Q.isub(this.m):Q.cmpn(0)<0&&(Z=Q.iadd(this.m)),Z._forceRed(this)},Z0.prototype.invm=function(K){var X=this.imod(K._invmp(this.m).mul(this.r2));return X._forceRed(this)}})(typeof g>"u"||g,l)}),b6=G0((l,g)=>{var E=y9(),M=d0().Buffer;function F(S,G){return M.from(S.toRed(E.mont(G.modulus)).redPow(new E(G.publicExponent)).fromRed().toArray())}g.exports=F}),E8=G0((l,g)=>{var E=H9(),M=g5(),F=h5(),S=m6(),G=p6(),U=y9(),I=b6(),V=E9(),z=d0().Buffer;g.exports=function(W,D,k){var A;W.padding?A=W.padding:k?A=1:A=4;var x=E(W),v;if(A===4)v=j(x,D);else if(A===1)v=O(x,D,k);else if(A===3){if(v=new U(D),v.cmp(x.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return k?V(v,x):I(v,x)};function j(W,D){var k=W.modulus.byteLength(),A=D.length,x=F("sha1").update(z.alloc(0)).digest(),v=x.length,y=2*v;if(A>k-y-2)throw new Error("message too long");var p=z.alloc(k-A-y-2),c=k-v-1,n=M(v),i=G(z.concat([x,p,z.alloc(1,1),D],c),S(n,c)),H0=G(n,S(i,v));return new U(z.concat([z.alloc(1),H0,i],k))}function O(W,D,k){var A=D.length,x=W.modulus.byteLength();if(A>x-11)throw new Error("message too long");var v;return k?v=z.alloc(x-A-3,255):v=N(x-A-3),new U(z.concat([z.from([0,k?1:2]),v,z.alloc(1),D],x))}function N(W){for(var D=z.allocUnsafe(W),k=0,A=M(W*2),x=0,v;k<W;)x===A.length&&(A=M(W*2),x=0),v=A[x++],v&&(D[k++]=v);return D}}),S8=G0((l,g)=>{var E=H9(),M=m6(),F=p6(),S=y9(),G=E9(),U=h5(),I=b6(),V=d0().Buffer;g.exports=function(N,W,D){var k;N.padding?k=N.padding:D?k=1:k=4;var A=E(N),x=A.modulus.byteLength();if(W.length>x||new S(W).cmp(A.modulus)>=0)throw new Error("decryption error");var v;D?v=I(new S(W),A):v=G(W,A);var y=V.alloc(x-v.length);if(v=V.concat([y,v],x),k===4)return z(A,v);if(k===1)return j(A,v,D);if(k===3)return v;throw new Error("unknown padding")};function z(N,W){var D=N.modulus.byteLength(),k=U("sha1").update(V.alloc(0)).digest(),A=k.length;if(W[0]!==0)throw new Error("decryption error");var x=W.slice(1,A+1),v=W.slice(A+1),y=F(x,M(v,A)),p=F(v,M(y,D-A-1));if(O(k,p.slice(0,A)))throw new Error("decryption error");for(var c=A;p[c]===0;)c++;if(p[c++]!==1)throw new Error("decryption error");return p.slice(c)}function j(N,W,D){for(var k=W.slice(0,2),A=2,x=0;W[A++]!==0;)if(A>=W.length){x++;break}var v=W.slice(2,A-1);if((k.toString("hex")!=="0002"&&!D||k.toString("hex")!=="0001"&&D)&&x++,v.length<8&&x++,x)throw new Error("decryption error");return W.slice(A)}function O(N,W){N=V.from(N),W=V.from(W);var D=0,k=N.length;N.length!==W.length&&(D++,k=Math.min(N.length,W.length));for(var A=-1;++A<k;)D+=N[A]^W[A];return D}}),x8=G0((l)=>{l.publicEncrypt=E8(),l.privateDecrypt=S8(),l.privateEncrypt=function(g,E){return l.publicEncrypt(g,E,!0)},l.publicDecrypt=function(g,E){return l.privateDecrypt(g,E,!0)}}),A8=G0((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(),F=E.Buffer,S=E.kMaxLength,G=global.crypto||global.msCrypto,U=Math.pow(2,32)-1;function I(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 V(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")}G&&G.getRandomValues?(l.randomFill=z,l.randomFillSync=O):(l.randomFill=g,l.randomFillSync=g);function z(N,W,D,k){if(!F.isBuffer(N)&&!(N instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof W=="function")k=W,W=0,D=N.length;else if(typeof D=="function")k=D,D=N.length-W;else if(typeof k!="function")throw new TypeError('"cb" argument must be a function');return I(W,N.length),V(D,W,N.length),j(N,W,D,k)}function j(N,W,D,k){var A=N.buffer,x=new Uint8Array(A,W,D);if(G.getRandomValues(x),k){process.nextTick(function(){k(null,N)});return}return N;var v}function O(N,W,D){if(typeof W>"u"&&(W=0),!F.isBuffer(N)&&!(N instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return I(W,N.length),D===void 0&&(D=N.length-W),V(D,W,N.length),j(N,W,D)}}),c6=G0((l)=>{l.randomBytes=l.rng=l.pseudoRandomBytes=l.prng=g5(),l.createHash=l.Hash=h5(),l.createHmac=l.Hmac=H6();var g=L7(),E=Object.keys(g),M=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(E);l.getHashes=function(){return M};var F=Z6();l.pbkdf2=F.pbkdf2,l.pbkdf2Sync=F.pbkdf2Sync;var S=m7();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 G=l7();l.DiffieHellmanGroup=G.DiffieHellmanGroup,l.createDiffieHellmanGroup=G.createDiffieHellmanGroup,l.getDiffieHellman=G.getDiffieHellman,l.createDiffieHellman=G.createDiffieHellman,l.DiffieHellman=G.DiffieHellman;var U=q8();l.createSign=U.createSign,l.Sign=U.Sign,l.createVerify=U.createVerify,l.Verify=U.Verify,l.createECDH=R8();var I=x8();l.publicEncrypt=I.publicEncrypt,l.privateEncrypt=I.privateEncrypt,l.publicDecrypt=I.publicDecrypt,l.privateDecrypt=I.privateDecrypt;var V=A8();l.randomFill=V.randomFill,l.randomFillSync=V.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}}),d6={};r5(d6,{DEFAULT_ENCODING:()=>M8,default:()=>_5,getCurves:()=>u6,getRandomValues:()=>l6,randomUUID:()=>h6,timingSafeEqual:()=>f5,webcrypto:()=>o6});Z9(d6,E5(c6()));var v8=E5(c6()),M8="buffer",l6=(l)=>crypto.getRandomValues(l),h6=()=>crypto.randomUUID(),_8=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];function u6(){return _8}var f5="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;f5&&Object.defineProperty(f5,"name",{value:"::bunternal::"});var o6=crypto,_5={...v8,getRandomValues:l6,randomUUID:h6,timingSafeEqual:f5,webcrypto:o6,getCurves:u6};/*!
|
|
7
7
|
* The buffer module from node.js, for the browser.
|
|
8
8
|
*
|
|
9
9
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
10
10
|
* @license MIT
|
|
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 w8,validateMnemonic as y8}from"@scure/bip39";import{wordlist as s6}from"@scure/bip39/wordlists/english";import{blake2bFinal as g8,blake2bInit as m8,blake2bUpdate as p8}from"blakejs";var a6=(l)=>{let g=l;if(!(g instanceof Buffer))g=Buffer.from(g,"hex");let E=m8(32);return p8(E,g),Array.from(g8(E)).map((M)=>M<16?`0${M.toString(16)}`:M.toString(16)).join("")},f6=(l,g,E,M,F)=>new Promise((S,G)=>{_5.pbkdf2(l,g,E,M,F,(
|
|
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 w8,validateMnemonic as y8}from"@scure/bip39";import{wordlist as s6}from"@scure/bip39/wordlists/english";import{blake2bFinal as g8,blake2bInit as m8,blake2bUpdate as p8}from"blakejs";var a6=(l)=>{let g=l;if(!(g instanceof Buffer))g=Buffer.from(g,"hex");let E=m8(32);return p8(E,g),Array.from(g8(E)).map((M)=>M<16?`0${M.toString(16)}`:M.toString(16)).join("")},f6=(l,g,E,M,F)=>new Promise((S,G)=>{_5.pbkdf2(l,g,E,M,F,(U,I)=>{if(U)G(U);else S(I)})}),Z4=async(l,g)=>{let E=_5.randomBytes(32),M=_5.randomBytes(16),F={c:262144,prf:"hmac-sha256",dklen:32,salt:E.toString("hex")},S="aes-128-ctr",G=await f6(Buffer.from(g),E,F.c,F.dklen,"sha256"),U=_5.createCipheriv("aes-128-ctr",G.subarray(0,16),M),I=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:I.toString("hex"),kdf:"pbkdf2",kdfparams:F,mac:a6(Buffer.concat([G.subarray(16,32),Buffer.from(I)]))}}},P4=(l=12)=>{return w8(s6,l===12?128:256)},j4=(l)=>{return y8(l,s6)},F4=async(l,g)=>{switch(l.version){case 1:{let E=l.crypto.kdfparams,M=await f6(Buffer.from(g),Buffer.from(E.salt,"hex"),E.c,E.dklen,"sha256"),F=Buffer.from(l.crypto.ciphertext,"hex");if(a6(Buffer.concat([M.subarray(16,32),F]))!==l.crypto.mac)throw new Error("Invalid password");let G=_5.createDecipheriv(l.crypto.cipher,M.subarray(0,16),Buffer.from(l.crypto.cipherparams.iv,"hex"));return Buffer.concat([G.update(F),G.final()]).toString("utf8")}default:throw new Error("Unsupported keystore version")}};import{Chain as $5,CosmosChains as b8,EVMChains as c8,NetworkDerivationPath as d8,UTXOChains as l8,WalletOption as n6,derivationPathToString as h8,filterSupportedChains as u8,getRPCUrl as r6,pickEvmApiKey as o8,setRequestClientConfig as s8,updatedLastIndex as a8}from"@swapkit/helpers";var f8=[...c8,...l8,...b8,$5.Polkadot,$5.Chainflip,$5.Solana],n8=async({apis:l,rpcUrl:g,chain:E,phrase:M,ethplorerApiKey:F,covalentApiKey:S,blockchairApiKey:G,swapkitApiKey:U,derivationPath:I,stagenet:V})=>{switch(E){case $5.Arbitrum:case $5.Avalanche:case $5.Base:case $5.BinanceSmartChain:case $5.Ethereum:case $5.Optimism:case $5.Polygon:{let{getProvider:z,getToolboxByChain:j}=await import("@swapkit/toolbox-evm"),{HDNodeWallet:O}=await import("./chunk-7r0bsnk5.js"),N=l?.[E],W=o8({chain:E,nonEthApiKey:S,ethApiKey:F}),D=z(E,g),k=O.fromPhrase(M).connect(D),A={api:N,apiKey:W,provider:D,signer:k};return{address:k.address,walletMethods:j(E)(A)}}case $5.BitcoinCash:{let D=function({builder:A,utxos:x}){return x.forEach((v,y)=>{A.sign(y,N,void 0,65,v.witnessUtxo.value)}),A.build()},{BCHToolbox:z}=await import("@swapkit/toolbox-utxo"),j=l?.[E],O=z({rpcUrl:g,apiKey:G,apiClient:j}),N=await O.createKeysForPath({phrase:M,derivationPath:I}),W=O.getAddressFromKeys(N),k={...O,transfer:(A)=>O.transfer({...A,from:W,signTransaction:D})};return{address:W,walletMethods:k}}case $5.Bitcoin:case $5.Dash:case $5.Dogecoin:case $5.Litecoin:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-utxo"),j=l?.[E],O=z(E)({rpcUrl:g,apiKey:G,apiClient:j}),N=O.createKeysForPath({phrase:M,derivationPath:I}),W=O.getAddressFromKeys(N);return{address:W,walletMethods:{...O,transfer:(D)=>O.transfer({...D,from:W,signTransaction:(k)=>k.signAllInputs(N)})}}}case $5.Cosmos:case $5.Kujira:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-cosmos"),j=l?.[E],O=z(E)({server:j,stagenet:V,swapkitApiKey:U}),N=await O.getAddressFromMnemonic(M),W=await O.getSigner(M);return{address:N,walletMethods:{...O,transfer:(k)=>O.transfer({...k,signer:W})}}}case $5.Maya:case $5.THORChain:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-cosmos"),j=l?.[E],O=z(E)({server:j,stagenet:V}),N=await O.getSigner(M),W=await O.getAddressFromMnemonic(M);return{address:W,walletMethods:{...O,deposit:({assetValue:D,memo:k})=>O.deposit({assetValue:D,memo:k,from:W,signer:N}),transfer:(D)=>O.transfer({...D,from:W,signer:N}),signMessage:async(D)=>{let k=await O.createPrivateKeyFromPhrase(M);return O.signWithPrivateKey({privateKey:k,message:D})}}}}case $5.Polkadot:case $5.Chainflip:{let{Network:z,getToolboxByChain:j,createKeyring:O}=await import("@swapkit/toolbox-substrate"),N=await O(M,z[E].prefix),W=await j(E,{signer:N,providerUrl:E===$5.Polkadot?r6($5.Polkadot):r6($5.Chainflip)});return{address:N.address,walletMethods:W}}case $5.Solana:{let{SOLToolbox:z,createKeysForPath:j}=await import("@swapkit/toolbox-solana"),O=j({phrase:M,derivationPath:I}),N=z({rpcUrl:g,signer:O});return{address:N.getAddressFromKeys(O),walletMethods:{...N}}}default:throw new Error(`Unsupported chain ${E}`)}};function r8({addChain:l,apis:g,rpcUrls:E,config:{thorswapApiKey:M,covalentApiKey:F,ethplorerApiKey:S,blockchairApiKey:G,stagenet:U,swapkitApiKey:I}}){return async function V(z,j,O){s8({apiKey:M});let W=u8(z,f8,n6.KEYSTORE).map(async(D)=>{let k=typeof O==="number"?O:0,A=O&&typeof O==="object"?O[D]:void 0,[x,v,y,p,c]=d8[D],n=A||a8(D===$5.Solana?[x,v,y,p]:[x,v,y,p,c],k),i=h8(n),{address:H0,walletMethods:a}=await n8({derivationPath:i,chain:D,apis:g,rpcUrl:E[D],covalentApiKey:F,ethplorerApiKey:S,phrase:j,blockchairApiKey:G,swapkitApiKey:I,stagenet:U});l({...a,chain:D,address:H0,balance:[],walletType:n6.KEYSTORE})});return await Promise.all(W),!0}}var i8={connectKeystore:r8};export{j4 as validatePhrase,i8 as keystoreWallet,P4 as generatePhrase,Z4 as encryptToKeyStore,F4 as decryptFromKeystore};
|
|
12
12
|
|
|
13
|
-
//# debugId=
|
|
13
|
+
//# debugId=53782371C7E2A81964756E2164756E21
|