pack-crx 1.1.0 → 1.1.1

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/build/index.js CHANGED
@@ -1,113 +1,9 @@
1
- var cH=Object.create;var{getPrototypeOf:pH,defineProperty:UX,getOwnPropertyNames:FZ,getOwnPropertyDescriptor:hH}=Object,qZ=Object.prototype.hasOwnProperty;var zZ=(Q,J,X)=>{X=Q!=null?cH(pH(Q)):{};let $=J||!Q||!Q.__esModule?UX(X,"default",{value:Q,enumerable:!0}):X;for(let W of FZ(Q))if(!qZ.call($,W))UX($,W,{get:()=>Q[W],enumerable:!0});return $},HZ=new WeakMap,u0=(Q)=>{var J=HZ.get(Q),X;if(J)return J;if(J=UX({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")FZ(Q).map(($)=>!qZ.call(J,$)&&UX(J,$,{get:()=>Q[$],enumerable:!(X=hH(Q,$))||X.enumerable}));return HZ.set(Q,J),J},f0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var D1=(Q,J)=>{for(var X in J)UX(Q,X,{get:J[X],enumerable:!0,configurable:!0,set:($)=>J[X]=()=>$})};var P1=(Q,J)=>()=>(Q&&(J=Q(Q=0)),J);var bH=((Q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Q,{get:(J,X)=>(typeof require<"u"?require:J)[X]}):Q)(function(Q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Q+'" is not supported')});var SQ={};D1(SQ,{transcode:()=>S4,resolveObjectURL:()=>A4,kStringMaxLength:()=>AZ,kMaxLength:()=>ZX,isUtf8:()=>R4,isAscii:()=>E4,default:()=>j4,constants:()=>iH,btoa:()=>nH,atob:()=>rH,INSPECT_MAX_BYTES:()=>TZ,File:()=>sH,Buffer:()=>L0,Blob:()=>aH});function uH(Q){var J=Q.length;if(J%4>0)throw Error("Invalid string. Length must be a multiple of 4");var X=Q.indexOf("=");if(X===-1)X=J;var $=X===J?0:4-X%4;return[X,$]}function dH(Q,J){return(Q+J)*3/4-J}function lH(Q){var J,X=uH(Q),$=X[0],W=X[1],H=new Uint8Array(dH($,W)),U=0,C=W>0?$-4:$,A;for(A=0;A<C;A+=4)J=tQ[Q.charCodeAt(A)]<<18|tQ[Q.charCodeAt(A+1)]<<12|tQ[Q.charCodeAt(A+2)]<<6|tQ[Q.charCodeAt(A+3)],H[U++]=J>>16&255,H[U++]=J>>8&255,H[U++]=J&255;if(W===2)J=tQ[Q.charCodeAt(A)]<<2|tQ[Q.charCodeAt(A+1)]>>4,H[U++]=J&255;if(W===1)J=tQ[Q.charCodeAt(A)]<<10|tQ[Q.charCodeAt(A+1)]<<4|tQ[Q.charCodeAt(A+2)]>>2,H[U++]=J>>8&255,H[U++]=J&255;return H}function mH(Q){return FJ[Q>>18&63]+FJ[Q>>12&63]+FJ[Q>>6&63]+FJ[Q&63]}function oH(Q,J,X){var $,W=[];for(var H=J;H<X;H+=3)$=(Q[H]<<16&16711680)+(Q[H+1]<<8&65280)+(Q[H+2]&255),W.push(mH($));return W.join("")}function CZ(Q){var J,X=Q.length,$=X%3,W=[],H=16383;for(var U=0,C=X-$;U<C;U+=H)W.push(oH(Q,U,U+H>C?C:U+H));if($===1)J=Q[X-1],W.push(FJ[J>>2]+FJ[J<<4&63]+"==");else if($===2)J=(Q[X-2]<<8)+Q[X-1],W.push(FJ[J>>10]+FJ[J>>4&63]+FJ[J<<2&63]+"=");return W.join("")}function VY(Q,J,X,$,W){var H,U,C=W*8-$-1,A=(1<<C)-1,M=A>>1,D=-7,L=X?W-1:0,P=X?-1:1,E=Q[J+L];L+=P,H=E&(1<<-D)-1,E>>=-D,D+=C;for(;D>0;H=H*256+Q[J+L],L+=P,D-=8);U=H&(1<<-D)-1,H>>=-D,D+=$;for(;D>0;U=U*256+Q[J+L],L+=P,D-=8);if(H===0)H=1-M;else if(H===A)return U?NaN:(E?-1:1)*(1/0);else U=U+Math.pow(2,$),H=H-M;return(E?-1:1)*U*Math.pow(2,H-$)}function PZ(Q,J,X,$,W,H){var U,C,A,M=H*8-W-1,D=(1<<M)-1,L=D>>1,P=W===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=$?0:H-1,S=$?1:-1,B=J<0||J===0&&1/J<0?1:0;if(J=Math.abs(J),isNaN(J)||J===1/0)C=isNaN(J)?1:0,U=D;else{if(U=Math.floor(Math.log(J)/Math.LN2),J*(A=Math.pow(2,-U))<1)U--,A*=2;if(U+L>=1)J+=P/A;else J+=P*Math.pow(2,1-L);if(J*A>=2)U++,A/=2;if(U+L>=D)C=0,U=D;else if(U+L>=1)C=(J*A-1)*Math.pow(2,W),U=U+L;else C=J*Math.pow(2,L-1)*Math.pow(2,W),U=0}for(;W>=8;Q[X+E]=C&255,E+=S,C/=256,W-=8);U=U<<W|C,M+=W;for(;M>0;Q[X+E]=U&255,E+=S,U/=256,M-=8);Q[X+E-S]|=B*128}function RJ(Q){if(Q>ZX)throw RangeError('The value "'+Q+'" is invalid for option "size"');let J=new Uint8Array(Q);return Object.setPrototypeOf(J,L0.prototype),J}function dV(Q,J,X){return class extends X{constructor(){super();Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function L0(Q,J,X){if(typeof Q==="number"){if(typeof J==="string")throw TypeError('The "string" argument must be of type string. Received type number');return lV(Q)}return RZ(Q,J,X)}function RZ(Q,J,X){if(typeof Q==="string")return J4(Q,J);if(ArrayBuffer.isView(Q))return X4(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(qJ(Q,ArrayBuffer)||Q&&qJ(Q.buffer,ArrayBuffer))return bV(Q,J,X);if(typeof SharedArrayBuffer<"u"&&(qJ(Q,SharedArrayBuffer)||Q&&qJ(Q.buffer,SharedArrayBuffer)))return bV(Q,J,X);if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let $=Q.valueOf&&Q.valueOf();if($!=null&&$!==Q)return L0.from($,J,X);let W=Y4(Q);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return L0.from(Q[Symbol.toPrimitive]("string"),J,X);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function EZ(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function Q4(Q,J,X){if(EZ(Q),Q<=0)return RJ(Q);if(J!==void 0)return typeof X==="string"?RJ(Q).fill(J,X):RJ(Q).fill(J);return RJ(Q)}function lV(Q){return EZ(Q),RJ(Q<0?0:mV(Q)|0)}function J4(Q,J){if(typeof J!=="string"||J==="")J="utf8";if(!L0.isEncoding(J))throw TypeError("Unknown encoding: "+J);let X=SZ(Q,J)|0,$=RJ(X),W=$.write(Q,J);if(W!==X)$=$.slice(0,W);return $}function hV(Q){let J=Q.length<0?0:mV(Q.length)|0,X=RJ(J);for(let $=0;$<J;$+=1)X[$]=Q[$]&255;return X}function X4(Q){if(qJ(Q,Uint8Array)){let J=new Uint8Array(Q);return bV(J.buffer,J.byteOffset,J.byteLength)}return hV(Q)}function bV(Q,J,X){if(J<0||Q.byteLength<J)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<J+(X||0))throw RangeError('"length" is outside of buffer bounds');let $;if(J===void 0&&X===void 0)$=new Uint8Array(Q);else if(X===void 0)$=new Uint8Array(Q,J);else $=new Uint8Array(Q,J,X);return Object.setPrototypeOf($,L0.prototype),$}function Y4(Q){if(L0.isBuffer(Q)){let J=mV(Q.length)|0,X=RJ(J);if(X.length===0)return X;return Q.copy(X,0,0,J),X}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return RJ(0);return hV(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return hV(Q.data)}function mV(Q){if(Q>=ZX)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ZX.toString(16)+" bytes");return Q|0}function SZ(Q,J){if(L0.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||qJ(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let X=Q.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&X===0)return 0;let W=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":return uV(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X*2;case"hex":return X>>>1;case"base64":return gZ(Q).length;default:if(W)return $?-1:uV(Q).length;J=(""+J).toLowerCase(),W=!0}}function V4(Q,J,X){let $=!1;if(J===void 0||J<0)J=0;if(J>this.length)return"";if(X===void 0||X>this.length)X=this.length;if(X<=0)return"";if(X>>>=0,J>>>=0,X<=J)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return z4(this,J,X);case"utf8":case"utf-8":return BZ(this,J,X);case"ascii":return F4(this,J,X);case"latin1":case"binary":return q4(this,J,X);case"base64":return K4(this,J,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O4(this,J,X);default:if($)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),$=!0}}function eJ(Q,J,X){let $=Q[J];Q[J]=Q[X],Q[X]=$}function jZ(Q,J,X,$,W){if(Q.length===0)return-1;if(typeof X==="string")$=X,X=0;else if(X>2147483647)X=2147483647;else if(X<-2147483648)X=-2147483648;if(X=+X,Number.isNaN(X))X=W?0:Q.length-1;if(X<0)X=Q.length+X;if(X>=Q.length)if(W)return-1;else X=Q.length-1;else if(X<0)if(W)X=0;else return-1;if(typeof J==="string")J=L0.from(J,$);if(L0.isBuffer(J)){if(J.length===0)return-1;return MZ(Q,J,X,$,W)}else if(typeof J==="number"){if(J=J&255,typeof Uint8Array.prototype.indexOf==="function")if(W)return Uint8Array.prototype.indexOf.call(Q,J,X);else return Uint8Array.prototype.lastIndexOf.call(Q,J,X);return MZ(Q,[J],X,$,W)}throw TypeError("val must be string, number or Buffer")}function MZ(Q,J,X,$,W){let H=1,U=Q.length,C=J.length;if($!==void 0){if($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le"){if(Q.length<2||J.length<2)return-1;H=2,U/=2,C/=2,X/=2}}function A(D,L){if(H===1)return D[L];else return D.readUInt16BE(L*H)}let M;if(W){let D=-1;for(M=X;M<U;M++)if(A(Q,M)===A(J,D===-1?0:M-D)){if(D===-1)D=M;if(M-D+1===C)return D*H}else{if(D!==-1)M-=M-D;D=-1}}else{if(X+C>U)X=U-C;for(M=X;M>=0;M--){let D=!0;for(let L=0;L<C;L++)if(A(Q,M+L)!==A(J,L)){D=!1;break}if(D)return M}}return-1}function $4(Q,J,X,$){X=Number(X)||0;let W=Q.length-X;if(!$)$=W;else if($=Number($),$>W)$=W;let H=J.length;if($>H/2)$=H/2;let U;for(U=0;U<$;++U){let C=parseInt(J.substr(U*2,2),16);if(Number.isNaN(C))return U;Q[X+U]=C}return U}function U4(Q,J,X,$){return $Y(uV(J,Q.length-X),Q,X,$)}function Z4(Q,J,X,$){return $Y(I4(J),Q,X,$)}function G4(Q,J,X,$){return $Y(gZ(J),Q,X,$)}function W4(Q,J,X,$){return $Y(D4(J,Q.length-X),Q,X,$)}function K4(Q,J,X){if(J===0&&X===Q.length)return CZ(Q);else return CZ(Q.slice(J,X))}function BZ(Q,J,X){X=Math.min(Q.length,X);let $=[],W=J;while(W<X){let H=Q[W],U=null,C=H>239?4:H>223?3:H>191?2:1;if(W+C<=X){let A,M,D,L;switch(C){case 1:if(H<128)U=H;break;case 2:if(A=Q[W+1],(A&192)===128){if(L=(H&31)<<6|A&63,L>127)U=L}break;case 3:if(A=Q[W+1],M=Q[W+2],(A&192)===128&&(M&192)===128){if(L=(H&15)<<12|(A&63)<<6|M&63,L>2047&&(L<55296||L>57343))U=L}break;case 4:if(A=Q[W+1],M=Q[W+2],D=Q[W+3],(A&192)===128&&(M&192)===128&&(D&192)===128){if(L=(H&15)<<18|(A&63)<<12|(M&63)<<6|D&63,L>65535&&L<1114112)U=L}}}if(U===null)U=65533,C=1;else if(U>65535)U-=65536,$.push(U>>>10&1023|55296),U=56320|U&1023;$.push(U),W+=C}return H4($)}function H4(Q){let J=Q.length;if(J<=IZ)return String.fromCharCode.apply(String,Q);let X="",$=0;while($<J)X+=String.fromCharCode.apply(String,Q.slice($,$+=IZ));return X}function F4(Q,J,X){let $="";X=Math.min(Q.length,X);for(let W=J;W<X;++W)$+=String.fromCharCode(Q[W]&127);return $}function q4(Q,J,X){let $="";X=Math.min(Q.length,X);for(let W=J;W<X;++W)$+=String.fromCharCode(Q[W]);return $}function z4(Q,J,X){let $=Q.length;if(!J||J<0)J=0;if(!X||X<0||X>$)X=$;let W="";for(let H=J;H<X;++H)W+=P4[Q[H]];return W}function O4(Q,J,X){let $=Q.slice(J,X),W="";for(let H=0;H<$.length-1;H+=2)W+=String.fromCharCode($[H]+$[H+1]*256);return W}function xQ(Q,J,X){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+J>X)throw RangeError("Trying to access beyond buffer length")}function mQ(Q,J,X,$,W,H){if(!L0.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(J>W||J<H)throw RangeError('"value" argument is out of bounds');if(X+$>Q.length)throw RangeError("Index out of range")}function kZ(Q,J,X,$,W){_Z(J,$,W,Q,X,7);let H=Number(J&BigInt(4294967295));Q[X++]=H,H=H>>8,Q[X++]=H,H=H>>8,Q[X++]=H,H=H>>8,Q[X++]=H;let U=Number(J>>BigInt(32)&BigInt(4294967295));return Q[X++]=U,U=U>>8,Q[X++]=U,U=U>>8,Q[X++]=U,U=U>>8,Q[X++]=U,X}function vZ(Q,J,X,$,W){_Z(J,$,W,Q,X,7);let H=Number(J&BigInt(4294967295));Q[X+7]=H,H=H>>8,Q[X+6]=H,H=H>>8,Q[X+5]=H,H=H>>8,Q[X+4]=H;let U=Number(J>>BigInt(32)&BigInt(4294967295));return Q[X+3]=U,U=U>>8,Q[X+2]=U,U=U>>8,Q[X+1]=U,U=U>>8,Q[X]=U,X+8}function NZ(Q,J,X,$,W,H){if(X+$>Q.length)throw RangeError("Index out of range");if(X<0)throw RangeError("Index out of range")}function xZ(Q,J,X,$,W){if(J=+J,X=X>>>0,!W)NZ(Q,J,X,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return PZ(Q,J,X,$,23,4),X+4}function wZ(Q,J,X,$,W){if(J=+J,X=X>>>0,!W)NZ(Q,J,X,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return PZ(Q,J,X,$,52,8),X+8}function DZ(Q){let J="",X=Q.length,$=Q[0]==="-"?1:0;for(;X>=$+4;X-=3)J=`_${Q.slice(X-3,X)}${J}`;return`${Q.slice(0,X)}${J}`}function C4(Q,J,X){if(T1(J,"offset"),Q[J]===void 0||Q[J+X]===void 0)GX(J,Q.length-(X+1))}function _Z(Q,J,X,$,W,H){if(Q>X||Q<J){let U=typeof J==="bigint"?"n":"",C;if(H>3)if(J===0||J===BigInt(0))C=`>= 0${U} and < 2${U} ** ${(H+1)*8}${U}`;else C=`>= -(2${U} ** ${(H+1)*8-1}${U}) and < 2 ** ${(H+1)*8-1}${U}`;else C=`>= ${J}${U} and <= ${X}${U}`;throw new pV("value",C,Q)}C4($,W,H)}function T1(Q,J){if(typeof Q!=="number")throw new eH(J,"number",Q)}function GX(Q,J,X){if(Math.floor(Q)!==Q)throw T1(Q,X),new pV(X||"offset","an integer",Q);if(J<0)throw new tH;throw new pV(X||"offset",`>= ${X?1:0} and <= ${J}`,Q)}function M4(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(L4,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function uV(Q,J){J=J||1/0;let X,$=Q.length,W=null,H=[];for(let U=0;U<$;++U){if(X=Q.charCodeAt(U),X>55295&&X<57344){if(!W){if(X>56319){if((J-=3)>-1)H.push(239,191,189);continue}else if(U+1===$){if((J-=3)>-1)H.push(239,191,189);continue}W=X;continue}if(X<56320){if((J-=3)>-1)H.push(239,191,189);W=X;continue}X=(W-55296<<10|X-56320)+65536}else if(W){if((J-=3)>-1)H.push(239,191,189)}if(W=null,X<128){if((J-=1)<0)break;H.push(X)}else if(X<2048){if((J-=2)<0)break;H.push(X>>6|192,X&63|128)}else if(X<65536){if((J-=3)<0)break;H.push(X>>12|224,X>>6&63|128,X&63|128)}else if(X<1114112){if((J-=4)<0)break;H.push(X>>18|240,X>>12&63|128,X>>6&63|128,X&63|128)}else throw Error("Invalid code point")}return H}function I4(Q){let J=[];for(let X=0;X<Q.length;++X)J.push(Q.charCodeAt(X)&255);return J}function D4(Q,J){let X,$,W,H=[];for(let U=0;U<Q.length;++U){if((J-=2)<0)break;X=Q.charCodeAt(U),$=X>>8,W=X%256,H.push(W),H.push($)}return H}function gZ(Q){return lH(M4(Q))}function $Y(Q,J,X,$){let W;for(W=0;W<$;++W){if(W+X>=J.length||W>=Q.length)break;J[W+X]=Q[W]}return W}function qJ(Q,J){return Q instanceof J||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===J.name}function wJ(Q){return typeof BigInt>"u"?T4:Q}function T4(){throw Error("BigInt not supported")}function oV(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var FJ,tQ,cV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tJ,OZ,LZ,TZ=50,ZX=2147483647,AZ=536870888,nH,rH,sH,aH,iH,tH,eH,pV,IZ=4096,L4,P4,A4,R4,E4=(Q)=>{for(let J of Q)if(J.charCodeAt(0)>127)return!1;return!0},S4,j4;var HQ=P1(()=>{FJ=[],tQ=[];for(tJ=0,OZ=cV.length;tJ<OZ;++tJ)FJ[tJ]=cV[tJ],tQ[cV.charCodeAt(tJ)]=tJ;tQ[45]=62;tQ[95]=63;LZ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,nH=globalThis.btoa,rH=globalThis.atob,sH=globalThis.File,aH=globalThis.Blob,iH={MAX_LENGTH:ZX,MAX_STRING_LENGTH:AZ};tH=dV("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){if(Q)return`${Q} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),eH=dV("ERR_INVALID_ARG_TYPE",function(Q,J){return`The "${Q}" argument must be of type number. Received type ${typeof J}`},TypeError),pV=dV("ERR_OUT_OF_RANGE",function(Q,J,X){let $=`The value of "${Q}" is out of range.`,W=X;if(Number.isInteger(X)&&Math.abs(X)>4294967296)W=DZ(String(X));else if(typeof X==="bigint"){if(W=String(X),X>BigInt(2)**BigInt(32)||X<-(BigInt(2)**BigInt(32)))W=DZ(W);W+="n"}return $+=` It must be ${J}. Received ${W}`,$},RangeError);Object.defineProperty(L0.prototype,"parent",{enumerable:!0,get:function(){if(!L0.isBuffer(this))return;return this.buffer}});Object.defineProperty(L0.prototype,"offset",{enumerable:!0,get:function(){if(!L0.isBuffer(this))return;return this.byteOffset}});L0.poolSize=8192;L0.from=function(Q,J,X){return RZ(Q,J,X)};Object.setPrototypeOf(L0.prototype,Uint8Array.prototype);Object.setPrototypeOf(L0,Uint8Array);L0.alloc=function(Q,J,X){return Q4(Q,J,X)};L0.allocUnsafe=function(Q){return lV(Q)};L0.allocUnsafeSlow=function(Q){return lV(Q)};L0.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==L0.prototype};L0.compare=function(Q,J){if(qJ(Q,Uint8Array))Q=L0.from(Q,Q.offset,Q.byteLength);if(qJ(J,Uint8Array))J=L0.from(J,J.offset,J.byteLength);if(!L0.isBuffer(Q)||!L0.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===J)return 0;let X=Q.length,$=J.length;for(let W=0,H=Math.min(X,$);W<H;++W)if(Q[W]!==J[W]){X=Q[W],$=J[W];break}if(X<$)return-1;if($<X)return 1;return 0};L0.isEncoding=function(Q){switch(String(Q).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}};L0.concat=function(Q,J){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return L0.alloc(0);let X;if(J===void 0){J=0;for(X=0;X<Q.length;++X)J+=Q[X].length}let $=L0.allocUnsafe(J),W=0;for(X=0;X<Q.length;++X){let H=Q[X];if(qJ(H,Uint8Array))if(W+H.length>$.length){if(!L0.isBuffer(H))H=L0.from(H);H.copy($,W)}else Uint8Array.prototype.set.call($,H,W);else if(!L0.isBuffer(H))throw TypeError('"list" argument must be an Array of Buffers');else H.copy($,W);W+=H.length}return $};L0.byteLength=SZ;L0.prototype._isBuffer=!0;L0.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<Q;J+=2)eJ(this,J,J+1);return this};L0.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<Q;J+=4)eJ(this,J,J+3),eJ(this,J+1,J+2);return this};L0.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<Q;J+=8)eJ(this,J,J+7),eJ(this,J+1,J+6),eJ(this,J+2,J+5),eJ(this,J+3,J+4);return this};L0.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return BZ(this,0,Q);return V4.apply(this,arguments)};L0.prototype.toLocaleString=L0.prototype.toString;L0.prototype.equals=function(Q){if(!L0.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return L0.compare(this,Q)===0};L0.prototype.inspect=function(){let Q="",J=TZ;if(Q=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J)Q+=" ... ";return"<Buffer "+Q+">"};if(LZ)L0.prototype[LZ]=L0.prototype.inspect;L0.prototype.compare=function(Q,J,X,$,W){if(qJ(Q,Uint8Array))Q=L0.from(Q,Q.offset,Q.byteLength);if(!L0.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(J===void 0)J=0;if(X===void 0)X=Q?Q.length:0;if($===void 0)$=0;if(W===void 0)W=this.length;if(J<0||X>Q.length||$<0||W>this.length)throw RangeError("out of range index");if($>=W&&J>=X)return 0;if($>=W)return-1;if(J>=X)return 1;if(J>>>=0,X>>>=0,$>>>=0,W>>>=0,this===Q)return 0;let H=W-$,U=X-J,C=Math.min(H,U),A=this.slice($,W),M=Q.slice(J,X);for(let D=0;D<C;++D)if(A[D]!==M[D]){H=A[D],U=M[D];break}if(H<U)return-1;if(U<H)return 1;return 0};L0.prototype.includes=function(Q,J,X){return this.indexOf(Q,J,X)!==-1};L0.prototype.indexOf=function(Q,J,X){return jZ(this,Q,J,X,!0)};L0.prototype.lastIndexOf=function(Q,J,X){return jZ(this,Q,J,X,!1)};L0.prototype.write=function(Q,J,X,$){if(J===void 0)$="utf8",X=this.length,J=0;else if(X===void 0&&typeof J==="string")$=J,X=this.length,J=0;else if(isFinite(J))if(J=J>>>0,isFinite(X)){if(X=X>>>0,$===void 0)$="utf8"}else $=X,X=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let W=this.length-J;if(X===void 0||X>W)X=W;if(Q.length>0&&(X<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!$)$="utf8";let H=!1;for(;;)switch($){case"hex":return $4(this,Q,J,X);case"utf8":case"utf-8":return U4(this,Q,J,X);case"ascii":case"latin1":case"binary":return Z4(this,Q,J,X);case"base64":return G4(this,Q,J,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W4(this,Q,J,X);default:if(H)throw TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),H=!0}};L0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};L0.prototype.slice=function(Q,J){let X=this.length;if(Q=~~Q,J=J===void 0?X:~~J,Q<0){if(Q+=X,Q<0)Q=0}else if(Q>X)Q=X;if(J<0){if(J+=X,J<0)J=0}else if(J>X)J=X;if(J<Q)J=Q;let $=this.subarray(Q,J);return Object.setPrototypeOf($,L0.prototype),$};L0.prototype.readUintLE=L0.prototype.readUIntLE=function(Q,J,X){if(Q=Q>>>0,J=J>>>0,!X)xQ(Q,J,this.length);let $=this[Q],W=1,H=0;while(++H<J&&(W*=256))$+=this[Q+H]*W;return $};L0.prototype.readUintBE=L0.prototype.readUIntBE=function(Q,J,X){if(Q=Q>>>0,J=J>>>0,!X)xQ(Q,J,this.length);let $=this[Q+--J],W=1;while(J>0&&(W*=256))$+=this[Q+--J]*W;return $};L0.prototype.readUint8=L0.prototype.readUInt8=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,1,this.length);return this[Q]};L0.prototype.readUint16LE=L0.prototype.readUInt16LE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,2,this.length);return this[Q]|this[Q+1]<<8};L0.prototype.readUint16BE=L0.prototype.readUInt16BE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,2,this.length);return this[Q]<<8|this[Q+1]};L0.prototype.readUint32LE=L0.prototype.readUInt32LE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};L0.prototype.readUint32BE=L0.prototype.readUInt32BE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};L0.prototype.readBigUInt64LE=wJ(function(Q){Q=Q>>>0,T1(Q,"offset");let J=this[Q],X=this[Q+7];if(J===void 0||X===void 0)GX(Q,this.length-8);let $=J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,W=this[++Q]+this[++Q]*256+this[++Q]*65536+X*16777216;return BigInt($)+(BigInt(W)<<BigInt(32))});L0.prototype.readBigUInt64BE=wJ(function(Q){Q=Q>>>0,T1(Q,"offset");let J=this[Q],X=this[Q+7];if(J===void 0||X===void 0)GX(Q,this.length-8);let $=J*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],W=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+X;return(BigInt($)<<BigInt(32))+BigInt(W)});L0.prototype.readIntLE=function(Q,J,X){if(Q=Q>>>0,J=J>>>0,!X)xQ(Q,J,this.length);let $=this[Q],W=1,H=0;while(++H<J&&(W*=256))$+=this[Q+H]*W;if(W*=128,$>=W)$-=Math.pow(2,8*J);return $};L0.prototype.readIntBE=function(Q,J,X){if(Q=Q>>>0,J=J>>>0,!X)xQ(Q,J,this.length);let $=J,W=1,H=this[Q+--$];while($>0&&(W*=256))H+=this[Q+--$]*W;if(W*=128,H>=W)H-=Math.pow(2,8*J);return H};L0.prototype.readInt8=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};L0.prototype.readInt16LE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,2,this.length);let X=this[Q]|this[Q+1]<<8;return X&32768?X|4294901760:X};L0.prototype.readInt16BE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,2,this.length);let X=this[Q+1]|this[Q]<<8;return X&32768?X|4294901760:X};L0.prototype.readInt32LE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};L0.prototype.readInt32BE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};L0.prototype.readBigInt64LE=wJ(function(Q){Q=Q>>>0,T1(Q,"offset");let J=this[Q],X=this[Q+7];if(J===void 0||X===void 0)GX(Q,this.length-8);let $=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+(X<<24);return(BigInt($)<<BigInt(32))+BigInt(J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});L0.prototype.readBigInt64BE=wJ(function(Q){Q=Q>>>0,T1(Q,"offset");let J=this[Q],X=this[Q+7];if(J===void 0||X===void 0)GX(Q,this.length-8);let $=(J<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt($)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+X)});L0.prototype.readFloatLE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,4,this.length);return VY(this,Q,!0,23,4)};L0.prototype.readFloatBE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,4,this.length);return VY(this,Q,!1,23,4)};L0.prototype.readDoubleLE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,8,this.length);return VY(this,Q,!0,52,8)};L0.prototype.readDoubleBE=function(Q,J){if(Q=Q>>>0,!J)xQ(Q,8,this.length);return VY(this,Q,!1,52,8)};L0.prototype.writeUintLE=L0.prototype.writeUIntLE=function(Q,J,X,$){if(Q=+Q,J=J>>>0,X=X>>>0,!$){let U=Math.pow(2,8*X)-1;mQ(this,Q,J,X,U,0)}let W=1,H=0;this[J]=Q&255;while(++H<X&&(W*=256))this[J+H]=Q/W&255;return J+X};L0.prototype.writeUintBE=L0.prototype.writeUIntBE=function(Q,J,X,$){if(Q=+Q,J=J>>>0,X=X>>>0,!$){let U=Math.pow(2,8*X)-1;mQ(this,Q,J,X,U,0)}let W=X-1,H=1;this[J+W]=Q&255;while(--W>=0&&(H*=256))this[J+W]=Q/H&255;return J+X};L0.prototype.writeUint8=L0.prototype.writeUInt8=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,1,255,0);return this[J]=Q&255,J+1};L0.prototype.writeUint16LE=L0.prototype.writeUInt16LE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,2,65535,0);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};L0.prototype.writeUint16BE=L0.prototype.writeUInt16BE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,2,65535,0);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};L0.prototype.writeUint32LE=L0.prototype.writeUInt32LE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,4,4294967295,0);return this[J+3]=Q>>>24,this[J+2]=Q>>>16,this[J+1]=Q>>>8,this[J]=Q&255,J+4};L0.prototype.writeUint32BE=L0.prototype.writeUInt32BE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,4,4294967295,0);return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};L0.prototype.writeBigUInt64LE=wJ(function(Q,J=0){return kZ(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});L0.prototype.writeBigUInt64BE=wJ(function(Q,J=0){return vZ(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});L0.prototype.writeIntLE=function(Q,J,X,$){if(Q=+Q,J=J>>>0,!$){let C=Math.pow(2,8*X-1);mQ(this,Q,J,X,C-1,-C)}let W=0,H=1,U=0;this[J]=Q&255;while(++W<X&&(H*=256)){if(Q<0&&U===0&&this[J+W-1]!==0)U=1;this[J+W]=(Q/H>>0)-U&255}return J+X};L0.prototype.writeIntBE=function(Q,J,X,$){if(Q=+Q,J=J>>>0,!$){let C=Math.pow(2,8*X-1);mQ(this,Q,J,X,C-1,-C)}let W=X-1,H=1,U=0;this[J+W]=Q&255;while(--W>=0&&(H*=256)){if(Q<0&&U===0&&this[J+W+1]!==0)U=1;this[J+W]=(Q/H>>0)-U&255}return J+X};L0.prototype.writeInt8=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,1,127,-128);if(Q<0)Q=255+Q+1;return this[J]=Q&255,J+1};L0.prototype.writeInt16LE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,2,32767,-32768);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};L0.prototype.writeInt16BE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,2,32767,-32768);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};L0.prototype.writeInt32LE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,4,2147483647,-2147483648);return this[J]=Q&255,this[J+1]=Q>>>8,this[J+2]=Q>>>16,this[J+3]=Q>>>24,J+4};L0.prototype.writeInt32BE=function(Q,J,X){if(Q=+Q,J=J>>>0,!X)mQ(this,Q,J,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};L0.prototype.writeBigInt64LE=wJ(function(Q,J=0){return kZ(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});L0.prototype.writeBigInt64BE=wJ(function(Q,J=0){return vZ(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});L0.prototype.writeFloatLE=function(Q,J,X){return xZ(this,Q,J,!0,X)};L0.prototype.writeFloatBE=function(Q,J,X){return xZ(this,Q,J,!1,X)};L0.prototype.writeDoubleLE=function(Q,J,X){return wZ(this,Q,J,!0,X)};L0.prototype.writeDoubleBE=function(Q,J,X){return wZ(this,Q,J,!1,X)};L0.prototype.copy=function(Q,J,X,$){if(!L0.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!X)X=0;if(!$&&$!==0)$=this.length;if(J>=Q.length)J=Q.length;if(!J)J=0;if($>0&&$<X)$=X;if($===X)return 0;if(Q.length===0||this.length===0)return 0;if(J<0)throw RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw RangeError("Index out of range");if($<0)throw RangeError("sourceEnd out of bounds");if($>this.length)$=this.length;if(Q.length-J<$-X)$=Q.length-J+X;let W=$-X;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(J,X,$);else Uint8Array.prototype.set.call(Q,this.subarray(X,$),J);return W};L0.prototype.fill=function(Q,J,X,$){if(typeof Q==="string"){if(typeof J==="string")$=J,J=0,X=this.length;else if(typeof X==="string")$=X,X=this.length;if($!==void 0&&typeof $!=="string")throw TypeError("encoding must be a string");if(typeof $==="string"&&!L0.isEncoding($))throw TypeError("Unknown encoding: "+$);if(Q.length===1){let H=Q.charCodeAt(0);if($==="utf8"&&H<128||$==="latin1")Q=H}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(J<0||this.length<J||this.length<X)throw RangeError("Out of range index");if(X<=J)return this;if(J=J>>>0,X=X===void 0?this.length:X>>>0,!Q)Q=0;let W;if(typeof Q==="number")for(W=J;W<X;++W)this[W]=Q;else{let H=L0.isBuffer(Q)?Q:L0.from(Q,$),U=H.length;if(U===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(W=0;W<X-J;++W)this[W+J]=H[W%U]}return this};L4=/[^+/0-9A-Za-z-_]/g;P4=function(){let Q=Array(256);for(let J=0;J<16;++J){let X=J*16;for(let $=0;$<16;++$)Q[X+$]="0123456789abcdef"[J]+"0123456789abcdef"[$]}return Q}();A4=oV("resolveObjectURL"),R4=oV("isUtf8"),S4=oV("transcode"),j4=L0});var X$={};D1(X$,{types:()=>f4,promisify:()=>bZ,log:()=>cZ,isUndefined:()=>A1,isSymbol:()=>p4,isString:()=>HY,isRegExp:()=>UY,isPrimitive:()=>h4,isObject:()=>R1,isNumber:()=>fZ,isNullOrUndefined:()=>c4,isNull:()=>KY,isFunction:()=>GY,isError:()=>ZY,isDate:()=>aV,isBuffer:()=>b4,isBoolean:()=>tV,isArray:()=>yZ,inspect:()=>Q1,inherits:()=>pZ,format:()=>iV,deprecate:()=>k4,default:()=>l4,debuglog:()=>v4,callbackifyOnRejected:()=>J$,callbackify:()=>uZ,_extend:()=>Q$,TextEncoder:()=>dZ,TextDecoder:()=>lZ});function iV(Q,...J){if(!HY(Q)){var X=[Q];for(var $=0;$<J.length;$++)X.push(Q1(J[$]));return X.join(" ")}var $=0,W=J.length,H=String(Q).replace(B4,function(C){if(C==="%%")return"%";if($>=W)return C;switch(C){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch(A){return"[Circular]"}default:return C}});for(var U=J[$];$<W;U=J[++$])if(KY(U)||!R1(U))H+=" "+U;else H+=" "+Q1(U);return H}function k4(Q,J){if(typeof process>"u"||process?.noDeprecation===!0)return Q;var X=!1;function $(...W){if(!X){if(process.throwDeprecation)throw Error(J);else if(process.traceDeprecation)console.trace(J);else console.error(J);X=!0}return Q.apply(this,...W)}return $}function N4(Q,J){var X=Q1.styles[J];if(X)return"\x1B["+Q1.colors[X][0]+"m"+Q+"\x1B["+Q1.colors[X][1]+"m";else return Q}function x4(Q,J){return Q}function w4(Q){var J={};return Q.forEach(function(X,$){J[X]=!0}),J}function WY(Q,J,X){if(Q.customInspect&&J&&GY(J.inspect)&&J.inspect!==Q1&&!(J.constructor&&J.constructor.prototype===J)){var $=J.inspect(X,Q);if(!HY($))$=WY(Q,$,X);return $}var W=_4(Q,J);if(W)return W;var H=Object.keys(J),U=w4(H);if(Q.showHidden)H=Object.getOwnPropertyNames(J);if(ZY(J)&&(H.indexOf("message")>=0||H.indexOf("description")>=0))return nV(J);if(H.length===0){if(GY(J)){var C=J.name?": "+J.name:"";return Q.stylize("[Function"+C+"]","special")}if(UY(J))return Q.stylize(RegExp.prototype.toString.call(J),"regexp");if(aV(J))return Q.stylize(Date.prototype.toString.call(J),"date");if(ZY(J))return nV(J)}var A="",M=!1,D=["{","}"];if(yZ(J))M=!0,D=["[","]"];if(GY(J)){var L=J.name?": "+J.name:"";A=" [Function"+L+"]"}if(UY(J))A=" "+RegExp.prototype.toString.call(J);if(aV(J))A=" "+Date.prototype.toUTCString.call(J);if(ZY(J))A=" "+nV(J);if(H.length===0&&(!M||J.length==0))return D[0]+A+D[1];if(X<0)if(UY(J))return Q.stylize(RegExp.prototype.toString.call(J),"regexp");else return Q.stylize("[Object]","special");Q.seen.push(J);var P;if(M)P=g4(Q,J,X,U,H);else P=H.map(function(E){return sV(Q,J,X,U,E,M)});return Q.seen.pop(),y4(P,A,D)}function _4(Q,J){if(A1(J))return Q.stylize("undefined","undefined");if(HY(J)){var X="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(X,"string")}if(fZ(J))return Q.stylize(""+J,"number");if(tV(J))return Q.stylize(""+J,"boolean");if(KY(J))return Q.stylize("null","null")}function nV(Q){return"["+Error.prototype.toString.call(Q)+"]"}function g4(Q,J,X,$,W){var H=[];for(var U=0,C=J.length;U<C;++U)if(hZ(J,String(U)))H.push(sV(Q,J,X,$,String(U),!0));else H.push("");return W.forEach(function(A){if(!A.match(/^\d+$/))H.push(sV(Q,J,X,$,A,!0))}),H}function sV(Q,J,X,$,W,H){var U,C,A;if(A=Object.getOwnPropertyDescriptor(J,W)||{value:J[W]},A.get)if(A.set)C=Q.stylize("[Getter/Setter]","special");else C=Q.stylize("[Getter]","special");else if(A.set)C=Q.stylize("[Setter]","special");if(!hZ($,W))U="["+W+"]";if(!C)if(Q.seen.indexOf(A.value)<0){if(KY(X))C=WY(Q,A.value,null);else C=WY(Q,A.value,X-1);if(C.indexOf(`
2
- `)>-1)if(H)C=C.split(`
3
- `).map(function(M){return" "+M}).join(`
4
- `).slice(2);else C=`
5
- `+C.split(`
6
- `).map(function(M){return" "+M}).join(`
7
- `)}else C=Q.stylize("[Circular]","special");if(A1(U)){if(H&&W.match(/^\d+$/))return C;if(U=JSON.stringify(""+W),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))U=U.slice(1,-1),U=Q.stylize(U,"name");else U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=Q.stylize(U,"string")}return U+": "+C}function y4(Q,J,X){var $=0,W=Q.reduce(function(H,U){if($++,U.indexOf(`
8
- `)>=0)$++;return H+U.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(W>60)return X[0]+(J===""?"":J+`
9
- `)+" "+Q.join(`,
10
- `)+" "+X[1];return X[0]+J+" "+Q.join(", ")+" "+X[1]}function yZ(Q){return Array.isArray(Q)}function tV(Q){return typeof Q==="boolean"}function KY(Q){return Q===null}function c4(Q){return Q==null}function fZ(Q){return typeof Q==="number"}function HY(Q){return typeof Q==="string"}function p4(Q){return typeof Q==="symbol"}function A1(Q){return Q===void 0}function UY(Q){return R1(Q)&&eV(Q)==="[object RegExp]"}function R1(Q){return typeof Q==="object"&&Q!==null}function aV(Q){return R1(Q)&&eV(Q)==="[object Date]"}function ZY(Q){return R1(Q)&&(eV(Q)==="[object Error]"||Q instanceof Error)}function GY(Q){return typeof Q==="function"}function h4(Q){return Q===null||typeof Q==="boolean"||typeof Q==="number"||typeof Q==="string"||typeof Q==="symbol"||typeof Q>"u"}function b4(Q){return Q instanceof Buffer}function eV(Q){return Object.prototype.toString.call(Q)}function rV(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}function d4(){var Q=new Date,J=[rV(Q.getHours()),rV(Q.getMinutes()),rV(Q.getSeconds())].join(":");return[Q.getDate(),u4[Q.getMonth()],J].join(" ")}function cZ(...Q){console.log("%s - %s",d4(),iV.apply(null,Q))}function pZ(Q,J){if(J)Q.super_=J,Q.prototype=Object.create(J.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}})}function Q$(Q,J){if(!J||!R1(J))return Q;var X=Object.keys(J),$=X.length;while($--)Q[X[$]]=J[X[$]];return Q}function hZ(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}function J$(Q,J){if(!Q){var X=Error("Promise was rejected with a falsy value");X.reason=Q,Q=X}return J(Q)}function uZ(Q){if(typeof Q!=="function")throw TypeError('The "original" argument must be of type Function');function J(...X){var $=X.pop();if(typeof $!=="function")throw TypeError("The last argument must be of type Function");var W=this,H=function(...U){return $.apply(W,...U)};Q.apply(this,X).then(function(U){process.nextTick(H.bind(null,null,U))},function(U){process.nextTick(J$.bind(null,U,H))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(Q)),Object.defineProperties(J,Object.getOwnPropertyDescriptors(Q)),J}var B4,v4,Q1,f4=()=>{},u4,bZ,dZ,lZ,l4;var Y$=P1(()=>{B4=/%[sdj%]/g;v4=((Q={},J={},X)=>((X=typeof process<"u"&&!1)&&(X=X.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),J=new RegExp("^"+X+"$","i"),($)=>{if($=$.toUpperCase(),!Q[$])if(J.test($))Q[$]=function(...W){console.error("%s: %s",$,pid,iV.apply(null,...W))};else Q[$]=function(){};return Q[$]}))(),Q1=((Q)=>(Q.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Q.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Q.custom=Symbol.for("nodejs.util.inspect.custom"),Q))(function(Q,J,...X){var $={seen:[],stylize:x4};if(X.length>=1)$.depth=X[0];if(X.length>=2)$.colors=X[1];if(tV(J))$.showHidden=J;else if(J)Q$($,J);if(A1($.showHidden))$.showHidden=!1;if(A1($.depth))$.depth=2;if(A1($.colors))$.colors=!1;if($.colors)$.stylize=N4;return WY($,Q,$.depth)});u4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];bZ=((Q)=>(Q.custom=Symbol.for("nodejs.util.promisify.custom"),Q))(function(Q){if(typeof Q!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&Q[kCustomPromisifiedSymbol]){var J=Q[kCustomPromisifiedSymbol];if(typeof J!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,kCustomPromisifiedSymbol,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(...X){var $,W,H=new Promise(function(U,C){$=U,W=C});X.push(function(U,C){if(U)W(U);else $(C)});try{Q.apply(this,X)}catch(U){W(U)}return H}if(Object.setPrototypeOf(J,Object.getPrototypeOf(Q)),kCustomPromisifiedSymbol)Object.defineProperty(J,kCustomPromisifiedSymbol,{value:J,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(J,Object.getOwnPropertyDescriptors(Q))});({TextEncoder:dZ,TextDecoder:lZ}=globalThis),l4={TextEncoder:dZ,TextDecoder:lZ,promisify:bZ,log:cZ,inherits:pZ,_extend:Q$,callbackifyOnRejected:J$,callbackify:uZ}});var KX={};D1(KX,{setMaxListeners:()=>JG,once:()=>eZ,listenerCount:()=>XG,init:()=>_J,getMaxListeners:()=>VG,getEventListeners:()=>QG,default:()=>e4,captureRejectionSymbol:()=>sZ,addAbortListener:()=>$G,EventEmitter:()=>_J});function aZ(Q,J){var{_events:X}=Q;if(J[0]??=Error("Unhandled error."),!X)throw J[0];var $=X[rZ];if($)for(var W of oZ.call($))W.apply(Q,J);var H=X.error;if(!H)throw J[0];for(var W of oZ.call(H))W.apply(Q,J);return!0}function n4(Q,J,X,$){J.then(void 0,function(W){queueMicrotask(()=>r4(Q,W,X,$))})}function r4(Q,J,X,$){if(typeof Q[mZ]==="function")Q[mZ](J,X,...$);else try{Q[J1]=!1,Q.emit("error",J)}finally{Q[J1]=!0}}function iZ(Q,J,X){X.warned=!0;let $=Error(`Possible EventEmitter memory leak detected. ${X.length} ${String(J)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);$.name="MaxListenersExceededWarning",$.emitter=Q,$.type=J,$.count=X.length,console.warn($)}function tZ(Q,J,...X){this.removeListener(Q,J),J.apply(this,X)}function eZ(Q,J,X){var $=X?.signal;if(YG($,"options.signal"),$?.aborted)throw new V$(void 0,{cause:$?.reason});let{resolve:W,reject:H,promise:U}=$newPromiseCapability(Promise),C=(D)=>{if(Q.removeListener(J,A),$!=null)FY($,"abort",M);H(D)},A=(...D)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",C);if($!=null)FY($,"abort",M);W(D)};if(nZ(Q,J,A,{once:!0}),J!=="error"&&typeof Q.once==="function")Q.once("error",C);function M(){FY(Q,J,A),FY(Q,"error",C),H(new V$(void 0,{cause:$?.reason}))}if($!=null)nZ($,"abort",M,{once:!0});return U}function QG(Q,J){return Q.listeners(J)}function JG(Q,...J){U$(Q,"setMaxListeners",0);var X;if(J&&(X=J.length))for(let $=0;$<X;$++)J[$].setMaxListeners(Q);else X1=Q}function XG(Q,J){return Q.listenerCount(J)}function FY(Q,J,X,$){if(typeof Q.removeListener==="function")Q.removeListener(J,X);else Q.removeEventListener(J,X,$)}function nZ(Q,J,X,$){if(typeof Q.on==="function")if($.once)Q.once(J,X);else Q.on(J,X);else Q.addEventListener(J,X,$)}function E1(Q,J,X){let $=TypeError(`The "${Q}" argument must be of type ${J}. Received ${X}`);return $.code="ERR_INVALID_ARG_TYPE",$}function i4(Q,J,X){let $=RangeError(`The "${Q}" argument is out of range. It must be ${J}. Received ${X}`);return $.code="ERR_OUT_OF_RANGE",$}function YG(Q,J){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw E1(J,"AbortSignal",Q)}function U$(Q,J,X,$){if(typeof Q!=="number")throw E1(J,"number",Q);if(X!=null&&Q<X||$!=null&&Q>$||(X!=null||$!=null)&&Number.isNaN(Q))throw i4(J,`${X!=null?`>= ${X}`:""}${X!=null&&$!=null?" && ":""}${$!=null?`<= ${$}`:""}`,Q)}function WX(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function t4(Q,J){if(typeof Q!=="boolean")throw E1(J,"boolean",Q)}function VG(Q){return Q?._maxListeners??X1}function $G(Q,J){if(Q===void 0)throw E1("signal","AbortSignal",Q);if(YG(Q,"signal"),typeof J!=="function")throw E1("listener","function",J);let X;if(Q.aborted)queueMicrotask(()=>J());else Q.addEventListener("abort",J,{__proto__:null,once:!0}),X=()=>{Q.removeEventListener("abort",J)};return{__proto__:null,[Symbol.dispose](){X?.()}}}var $$,J1,rZ,m4,o4,mZ,sZ,oZ,X1=10,_J=function(Q){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[J1]=Q?.captureRejections?Boolean(Q?.captureRejections):JQ[J1])this.emit=a4},JQ,s4=function(Q,...J){if(Q==="error")return aZ(this,J);var{_events:X}=this;if(X===void 0)return!1;var $=X[Q];if($===void 0)return!1;let W=$.length>1?$.slice():$;for(let H=0,{length:U}=W;H<U;H++){let C=W[H];switch(J.length){case 0:C.call(this);break;case 1:C.call(this,J[0]);break;case 2:C.call(this,J[0],J[1]);break;case 3:C.call(this,J[0],J[1],J[2]);break;default:C.apply(this,J);break}}return!0},a4=function(Q,...J){if(Q==="error")return aZ(this,J);var{_events:X}=this;if(X===void 0)return!1;var $=X[Q];if($===void 0)return!1;let W=$.length>1?$.slice():$;for(let H=0,{length:U}=W;H<U;H++){let C=W[H],A;switch(J.length){case 0:A=C.call(this);break;case 1:A=C.call(this,J[0]);break;case 2:A=C.call(this,J[0],J[1]);break;case 3:A=C.call(this,J[0],J[1],J[2]);break;default:A=C.apply(this,J);break}if(A!==void 0&&typeof A?.then==="function"&&A.then===Promise.prototype.then)n4(this,A,Q,J)}return!0},V$,e4;var HX=P1(()=>{$$=Symbol.for,J1=Symbol("kCapture"),rZ=$$("events.errorMonitor"),m4=Symbol("events.maxEventTargetListeners"),o4=Symbol("events.maxEventTargetListenersWarned"),mZ=$$("nodejs.rejection"),sZ=$$("nodejs.rejection"),oZ=Array.prototype.slice,JQ=_J.prototype={};JQ._events=void 0;JQ._eventsCount=0;JQ._maxListeners=void 0;JQ.setMaxListeners=function(Q){return U$(Q,"setMaxListeners",0),this._maxListeners=Q,this};JQ.constructor=_J;JQ.getMaxListeners=function(){return this?._maxListeners??X1};JQ.emit=s4;JQ.addListener=function(Q,J){WX(J);var X=this._events;if(!X)X=this._events={__proto__:null},this._eventsCount=0;else if(X.newListener)this.emit("newListener",Q,J.listener??J);var $=X[Q];if(!$)X[Q]=[J],this._eventsCount++;else{$.push(J);var W=this._maxListeners??X1;if(W>0&&$.length>W&&!$.warned)iZ(this,Q,$)}return this};JQ.on=JQ.addListener;JQ.prependListener=function(Q,J){WX(J);var X=this._events;if(!X)X=this._events={__proto__:null},this._eventsCount=0;else if(X.newListener)this.emit("newListener",Q,J.listener??J);var $=X[Q];if(!$)X[Q]=[J],this._eventsCount++;else{$.unshift(J);var W=this._maxListeners??X1;if(W>0&&$.length>W&&!$.warned)iZ(this,Q,$)}return this};JQ.once=function(Q,J){WX(J);let X=tZ.bind(this,Q,J);return X.listener=J,this.addListener(Q,X),this};JQ.prependOnceListener=function(Q,J){WX(J);let X=tZ.bind(this,Q,J);return X.listener=J,this.prependListener(Q,X),this};JQ.removeListener=function(Q,J){WX(J);var{_events:X}=this;if(!X)return this;var $=X[Q];if(!$)return this;var W=$.length;let H=-1;for(let U=W-1;U>=0;U--)if($[U]===J||$[U].listener===J){H=U;break}if(H<0)return this;if(H===0)$.shift();else $.splice(H,1);if($.length===0)delete X[Q],this._eventsCount--;return this};JQ.off=JQ.removeListener;JQ.removeAllListeners=function(Q){var{_events:J}=this;if(Q&&J){if(J[Q])delete J[Q],this._eventsCount--}else this._events={__proto__:null};return this};JQ.listeners=function(Q){var{_events:J}=this;if(!J)return[];var X=J[Q];if(!X)return[];return X.map(($)=>$.listener??$)};JQ.rawListeners=function(Q){var{_events:J}=this;if(!J)return[];var X=J[Q];if(!X)return[];return X.slice()};JQ.listenerCount=function(Q){var{_events:J}=this;if(!J)return 0;return J[Q]?.length??0};JQ.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};JQ[J1]=!1;V$=class V$ extends Error{constructor(Q="The operation was aborted",J=void 0){if(J!==void 0&&typeof J!=="object")throw E1("options","Object",J);super(Q,J);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(_J,{captureRejections:{get(){return JQ[J1]},set(Q){t4(Q,"EventEmitter.captureRejections"),JQ[J1]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return X1},set:(Q)=>{U$(Q,"defaultMaxListeners",0),X1=Q}},kMaxEventTargetListeners:{value:m4,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:o4,enumerable:!1,configurable:!1,writable:!1}});Object.assign(_J,{once:eZ,getEventListeners:QG,getMaxListeners:VG,setMaxListeners:JG,EventEmitter:_J,usingDomains:!1,captureRejectionSymbol:sZ,errorMonitor:rZ,addAbortListener:$G,init:_J,listenerCount:XG});e4=_J});var zX=f0((uA,qG)=>{var a0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),VQ=a0((Q,J)=>{class X extends Error{constructor($){if(!Array.isArray($))throw TypeError(`Expected input to be an Array, got ${typeof $}`);let W="";for(let H=0;H<$.length;H++)W+=` ${$[H].stack}
11
- `;super(W);this.name="AggregateError",this.errors=$}}J.exports={AggregateError:X,ArrayIsArray($){return Array.isArray($)},ArrayPrototypeIncludes($,W){return $.includes(W)},ArrayPrototypeIndexOf($,W){return $.indexOf(W)},ArrayPrototypeJoin($,W){return $.join(W)},ArrayPrototypeMap($,W){return $.map(W)},ArrayPrototypePop($,W){return $.pop(W)},ArrayPrototypePush($,W){return $.push(W)},ArrayPrototypeSlice($,W,H){return $.slice(W,H)},Error,FunctionPrototypeCall($,W,...H){return $.call(W,...H)},FunctionPrototypeSymbolHasInstance($,W){return Function.prototype[Symbol.hasInstance].call($,W)},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($,W){return Object.defineProperties($,W)},ObjectDefineProperty($,W,H){return Object.defineProperty($,W,H)},ObjectGetOwnPropertyDescriptor($,W){return Object.getOwnPropertyDescriptor($,W)},ObjectKeys($){return Object.keys($)},ObjectSetPrototypeOf($,W){return Object.setPrototypeOf($,W)},Promise,PromisePrototypeCatch($,W){return $.catch(W)},PromisePrototypeThen($,W,H){return $.then(W,H)},PromiseReject($){return Promise.reject($)},PromiseResolve($){return Promise.resolve($)},ReflectApply:Reflect.apply,RegExpPrototypeTest($,W){return $.test(W)},SafeSet:Set,String,StringPrototypeSlice($,W,H){return $.slice(W,H)},StringPrototypeToLowerCase($){return $.toLowerCase()},StringPrototypeToUpperCase($){return $.toUpperCase()},StringPrototypeTrim($){return $.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet($,W,H){return $.set(W,H)},Boolean,Uint8Array}}),UG=a0((Q,J)=>{J.exports={format(X,...$){return X.replace(/%([sdifj])/g,function(...[W,H]){let U=$.shift();if(H==="f")return U.toFixed(6);else if(H==="j")return JSON.stringify(U);else if(H==="s"&&typeof U==="object")return`${U.constructor!==Object?U.constructor.name:""} {}`.trim();else return U.toString()})},inspect(X){switch(typeof X){case"string":if(X.includes("'")){if(!X.includes('"'))return`"${X}"`;else if(!X.includes("`")&&!X.includes("${"))return`\`${X}\``}return`'${X}'`;case"number":if(isNaN(X))return"NaN";else if(Object.is(X,-0))return String(X);return X;case"bigint":return`${String(X)}n`;case"boolean":case"undefined":return String(X);case"object":return"{}"}}}}),pQ=a0((Q,J)=>{var{format:X,inspect:$}=UG(),{AggregateError:W}=VQ(),H=globalThis.AggregateError||W,U=Symbol("kIsNodeError"),C=["string","function","number","object","Function","Object","boolean","bigint","symbol"],A=/^([A-Z][a-z0-9]*)+$/,M={};function D(N,v){if(!N)throw new M.ERR_INTERNAL_ASSERTION(v)}function L(N){let v="",x=N.length,w=N[0]==="-"?1:0;for(;x>=w+4;x-=3)v=`_${N.slice(x-3,x)}${v}`;return`${N.slice(0,x)}${v}`}function P(N,v,x){if(typeof v==="function")return D(v.length<=x.length,`Code: ${N}; The provided arguments length (${x.length}) does not match the required ones (${v.length}).`),v(...x);let w=(v.match(/%[dfijoOs]/g)||[]).length;if(D(w===x.length,`Code: ${N}; The provided arguments length (${x.length}) does not match the required ones (${w}).`),x.length===0)return v;return X(v,...x)}function E(N,v,x){if(!x)x=Error;class w extends x{constructor(...y){super(P(N,v,y))}toString(){return`${this.name} [${N}]: ${this.message}`}}Object.defineProperties(w.prototype,{name:{value:x.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),w.prototype.code=N,w.prototype[U]=!0,M[N]=w}function S(N){let v="__node_internal_"+N.name;return Object.defineProperty(N,"name",{value:v}),N}function B(N,v){if(N&&v&&N!==v){if(Array.isArray(v.errors))return v.errors.push(N),v;let x=new H([v,N],v.message);return x.code=v.code,x}return N||v}class j extends Error{constructor(N="The operation was aborted",v=void 0){if(v!==void 0&&typeof v!=="object")throw new M.ERR_INVALID_ARG_TYPE("options","Object",v);super(N,v);this.code="ABORT_ERR",this.name="AbortError"}}E("ERR_ASSERTION","%s",Error),E("ERR_INVALID_ARG_TYPE",(N,v,x)=>{if(D(typeof N==="string","'name' must be a string"),!Array.isArray(v))v=[v];let w="The ";if(N.endsWith(" argument"))w+=`${N} `;else w+=`"${N}" ${N.includes(".")?"property":"argument"} `;w+="must be ";let y=[],n=[],r=[];for(let i of v)if(D(typeof i==="string","All expected entries have to be of type string"),C.includes(i))y.push(i.toLowerCase());else if(A.test(i))n.push(i);else D(i!=="object",'The value "object" should be written as "Object"'),r.push(i);if(n.length>0){let i=y.indexOf("object");if(i!==-1)y.splice(y,i,1),n.push("Object")}if(y.length>0){switch(y.length){case 1:w+=`of type ${y[0]}`;break;case 2:w+=`one of type ${y[0]} or ${y[1]}`;break;default:{let i=y.pop();w+=`one of type ${y.join(", ")}, or ${i}`}}if(n.length>0||r.length>0)w+=" or "}if(n.length>0){switch(n.length){case 1:w+=`an instance of ${n[0]}`;break;case 2:w+=`an instance of ${n[0]} or ${n[1]}`;break;default:{let i=n.pop();w+=`an instance of ${n.join(", ")}, or ${i}`}}if(r.length>0)w+=" or "}switch(r.length){case 0:break;case 1:if(r[0].toLowerCase()!==r[0])w+="an ";w+=`${r[0]}`;break;case 2:w+=`one of ${r[0]} or ${r[1]}`;break;default:{let i=r.pop();w+=`one of ${r.join(", ")}, or ${i}`}}if(x==null)w+=`. Received ${x}`;else if(typeof x==="function"&&x.name)w+=`. Received function ${x.name}`;else if(typeof x==="object"){var s;if((s=x.constructor)!==null&&s!==void 0&&s.name)w+=`. Received an instance of ${x.constructor.name}`;else{let i=$(x,{depth:-1});w+=`. Received ${i}`}}else{let i=$(x,{colors:!1});if(i.length>25)i=`${i.slice(0,25)}...`;w+=`. Received type ${typeof x} (${i})`}return w},TypeError),E("ERR_INVALID_ARG_VALUE",(N,v,x="is invalid")=>{let w=$(v);if(w.length>128)w=w.slice(0,128)+"...";return`The ${N.includes(".")?"property":"argument"} '${N}' ${x}. Received ${w}`},TypeError),E("ERR_INVALID_RETURN_VALUE",(N,v,x)=>{var w;let y=x!==null&&x!==void 0&&(w=x.constructor)!==null&&w!==void 0&&w.name?`instance of ${x.constructor.name}`:`type ${typeof x}`;return`Expected ${N} to be returned from the "${v}" function but got ${y}.`},TypeError),E("ERR_MISSING_ARGS",(...N)=>{D(N.length>0,"At least one arg needs to be specified");let v,x=N.length;switch(N=(Array.isArray(N)?N:[N]).map((w)=>`"${w}"`).join(" or "),x){case 1:v+=`The ${N[0]} argument`;break;case 2:v+=`The ${N[0]} and ${N[1]} arguments`;break;default:{let w=N.pop();v+=`The ${N.join(", ")}, and ${w} arguments`}break}return`${v} must be specified`},TypeError),E("ERR_OUT_OF_RANGE",(N,v,x)=>{D(v,'Missing "range" argument');let w;if(Number.isInteger(x)&&Math.abs(x)>4294967296)w=L(String(x));else if(typeof x==="bigint"){w=String(x);let y=BigInt(2)**BigInt(32);if(x>y||x<-y)w=L(w);w+="n"}else w=$(x);return`The value of "${N}" is out of range. It must be ${v}. Received ${w}`},RangeError),E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),E("ERR_STREAM_WRITE_AFTER_END","write after end",Error),E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),J.exports={AbortError:j,aggregateTwoErrors:S(B),hideStackFrames:S,codes:M}}),QF=a0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var X=new WeakMap,$=new WeakMap;function W(u){let Q0=X.get(u);return console.assert(Q0!=null,"'this' is expected an Event object, but got",u),Q0}function H(u){if(u.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",u.passiveListener);return}if(!u.event.cancelable)return;if(u.canceled=!0,typeof u.event.preventDefault==="function")u.event.preventDefault()}function U(u,Q0){X.set(this,{eventTarget:u,event:Q0,eventPhase:2,currentTarget:u,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:Q0.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let Y=Object.keys(Q0);for(let G=0;G<Y.length;++G){let F=Y[G];if(!(F in this))Object.defineProperty(this,F,C(F))}}if(U.prototype={get type(){return W(this).event.type},get target(){return W(this).eventTarget},get currentTarget(){return W(this).currentTarget},composedPath(){let u=W(this).currentTarget;if(u==null)return[];return[u]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return W(this).eventPhase},stopPropagation(){let u=W(this);if(u.stopped=!0,typeof u.event.stopPropagation==="function")u.event.stopPropagation()},stopImmediatePropagation(){let u=W(this);if(u.stopped=!0,u.immediateStopped=!0,typeof u.event.stopImmediatePropagation==="function")u.event.stopImmediatePropagation()},get bubbles(){return Boolean(W(this).event.bubbles)},get cancelable(){return Boolean(W(this).event.cancelable)},preventDefault(){H(W(this))},get defaultPrevented(){return W(this).canceled},get composed(){return Boolean(W(this).event.composed)},get timeStamp(){return W(this).timeStamp},get srcElement(){return W(this).eventTarget},get cancelBubble(){return W(this).stopped},set cancelBubble(u){if(!u)return;let Q0=W(this);if(Q0.stopped=!0,typeof Q0.event.cancelBubble==="boolean")Q0.event.cancelBubble=!0},get returnValue(){return!W(this).canceled},set returnValue(u){if(!u)H(W(this))},initEvent(){}},Object.defineProperty(U.prototype,"constructor",{value:U,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(U.prototype,window.Event.prototype),$.set(window.Event.prototype,U);function C(u){return{get(){return W(this).event[u]},set(Q0){W(this).event[u]=Q0},configurable:!0,enumerable:!0}}function A(u){return{value(){let Q0=W(this).event;return Q0[u].apply(Q0,arguments)},configurable:!0,enumerable:!0}}function M(u,Q0){let Y=Object.keys(Q0);if(Y.length===0)return u;function G(F,Z){u.call(this,F,Z)}G.prototype=Object.create(u.prototype,{constructor:{value:G,configurable:!0,writable:!0}});for(let F=0;F<Y.length;++F){let Z=Y[F];if(!(Z in u.prototype)){let K=typeof Object.getOwnPropertyDescriptor(Q0,Z).value==="function";Object.defineProperty(G.prototype,Z,K?A(Z):C(Z))}}return G}function D(u){if(u==null||u===Object.prototype)return U;let Q0=$.get(u);if(Q0==null)Q0=M(D(Object.getPrototypeOf(u)),u),$.set(u,Q0);return Q0}function L(u,Q0){return new(D(Object.getPrototypeOf(Q0)))(u,Q0)}function P(u){return W(u).immediateStopped}function E(u,Q0){W(u).eventPhase=Q0}function S(u,Q0){W(u).currentTarget=Q0}function B(u,Q0){W(u).passiveListener=Q0}var j=new WeakMap,N=1,v=2,x=3;function w(u){return u!==null&&typeof u==="object"}function y(u){let Q0=j.get(u);if(Q0==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return Q0}function n(u){return{get(){let Q0=y(this).get(u);while(Q0!=null){if(Q0.listenerType===x)return Q0.listener;Q0=Q0.next}return null},set(Q0){if(typeof Q0!=="function"&&!w(Q0))Q0=null;let Y=y(this),G=null,F=Y.get(u);while(F!=null){if(F.listenerType===x)if(G!==null)G.next=F.next;else if(F.next!==null)Y.set(u,F.next);else Y.delete(u);else G=F;F=F.next}if(Q0!==null){let Z={listener:Q0,listenerType:x,passive:!1,once:!1,next:null};if(G===null)Y.set(u,Z);else G.next=Z}},configurable:!0,enumerable:!0}}function r(u,Q0){Object.defineProperty(u,`on${Q0}`,n(Q0))}function s(u){function Q0(){i.call(this)}Q0.prototype=Object.create(i.prototype,{constructor:{value:Q0,configurable:!0,writable:!0}});for(let Y=0;Y<u.length;++Y)r(Q0.prototype,u[Y]);return Q0}function i(){if(this instanceof i){j.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return s(arguments[0]);if(arguments.length>0){let u=Array(arguments.length);for(let Q0=0;Q0<arguments.length;++Q0)u[Q0]=arguments[Q0];return s(u)}throw TypeError("Cannot call a class as a function")}if(i.prototype={addEventListener(u,Q0,Y){if(Q0==null)return;if(typeof Q0!=="function"&&!w(Q0))throw TypeError("'listener' should be a function or an object.");let G=y(this),F=w(Y),Z=(F?Boolean(Y.capture):Boolean(Y))?N:v,K={listener:Q0,listenerType:Z,passive:F&&Boolean(Y.passive),once:F&&Boolean(Y.once),next:null},O=G.get(u);if(O===void 0){G.set(u,K);return}let I=null;while(O!=null){if(O.listener===Q0&&O.listenerType===Z)return;I=O,O=O.next}I.next=K},removeEventListener(u,Q0,Y){if(Q0==null)return;let G=y(this),F=(w(Y)?Boolean(Y.capture):Boolean(Y))?N:v,Z=null,K=G.get(u);while(K!=null){if(K.listener===Q0&&K.listenerType===F){if(Z!==null)Z.next=K.next;else if(K.next!==null)G.set(u,K.next);else G.delete(u);return}Z=K,K=K.next}},dispatchEvent(u){if(u==null||typeof u.type!=="string")throw TypeError('"event.type" should be a string.');let Q0=y(this),Y=u.type,G=Q0.get(Y);if(G==null)return!0;let F=L(this,u),Z=null;while(G!=null){if(G.once)if(Z!==null)Z.next=G.next;else if(G.next!==null)Q0.set(Y,G.next);else Q0.delete(Y);else Z=G;if(B(F,G.passive?G.listener:null),typeof G.listener==="function")try{G.listener.call(this,F)}catch(K){if(typeof console<"u"&&typeof console.error==="function")console.error(K)}else if(G.listenerType!==x&&typeof G.listener.handleEvent==="function")G.listener.handleEvent(F);if(P(F))break;G=G.next}return B(F,null),E(F,0),S(F,null),!F.defaultPrevented}},Object.defineProperty(i.prototype,"constructor",{value:i,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(i.prototype,window.EventTarget.prototype);Q.defineEventAttribute=r,Q.EventTarget=i,Q.default=i,J.exports=i,J.exports.EventTarget=J.exports.default=i,J.exports.defineEventAttribute=r}),FX=a0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var X=QF();class $ extends X.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let D=U.get(this);if(typeof D!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return D}}X.defineEventAttribute($.prototype,"abort");function W(){let D=Object.create($.prototype);return X.EventTarget.call(D),U.set(D,!1),D}function H(D){if(U.get(D)!==!1)return;U.set(D,!0),D.dispatchEvent({type:"abort"})}var U=new WeakMap;if(Object.defineProperties($.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty($.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class C{constructor(){A.set(this,W())}get signal(){return M(this)}abort(){H(M(this))}}var A=new WeakMap;function M(D){let L=A.get(D);if(L==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${D===null?"null":typeof D}`);return L}if(Object.defineProperties(C.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(C.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=C,Q.AbortSignal=$,Q.default=C,J.exports=C,J.exports.AbortController=J.exports.default=C,J.exports.AbortSignal=$}),oQ=a0((Q,J)=>{var X=(HQ(),u0(SQ)),{format:$,inspect:W}=UG(),{codes:{ERR_INVALID_ARG_TYPE:H}}=pQ(),{kResistStopPropagation:U,AggregateError:C,SymbolDispose:A}=VQ(),M=globalThis.AbortSignal||FX().AbortSignal,D=globalThis.AbortController||FX().AbortController,L=Object.getPrototypeOf(async function(){}).constructor,P=globalThis.Blob||X.Blob,E=typeof P<"u"?function(j){return j instanceof P}:function(j){return!1},S=(j,N)=>{if(j!==void 0&&(j===null||typeof j!=="object"||!("aborted"in j)))throw new H(N,"AbortSignal",j)},B=(j,N)=>{if(typeof j!=="function")throw new H(N,"Function",j)};J.exports={AggregateError:C,kEmptyObject:Object.freeze({}),once(j){let N=!1;return function(...v){if(N)return;N=!0,j.apply(this,v)}},createDeferredPromise:function(){let j,N;return{promise:new Promise((v,x)=>{j=v,N=x}),resolve:j,reject:N}},promisify(j){return new Promise((N,v)=>{j((x,...w)=>{if(x)return v(x);return N(...w)})})},debuglog(){return function(){}},format:$,inspect:W,types:{isAsyncFunction(j){return j instanceof L},isArrayBufferView(j){return ArrayBuffer.isView(j)}},isBlob:E,deprecate(j,N){return j},addAbortListener:(HX(),u0(KX)).addAbortListener||function(j,N){if(j===void 0)throw new H("signal","AbortSignal",j);S(j,"signal"),B(N,"listener");let v;if(j.aborted)queueMicrotask(()=>N());else j.addEventListener("abort",N,{__proto__:null,once:!0,[U]:!0}),v=()=>{j.removeEventListener("abort",N)};return{__proto__:null,[A](){var x;(x=v)===null||x===void 0||x()}}},AbortSignalAny:M.any||function(j){if(j.length===1)return j[0];let N=new D,v=()=>N.abort();return j.forEach((x)=>{S(x,"signals"),x.addEventListener("abort",v,{once:!0})}),N.signal.addEventListener("abort",()=>{j.forEach((x)=>x.removeEventListener("abort",v))},{once:!0}),N.signal}},J.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),qX=a0((Q,J)=>{var{ArrayIsArray:X,ArrayPrototypeIncludes:$,ArrayPrototypeJoin:W,ArrayPrototypeMap:H,NumberIsInteger:U,NumberIsNaN:C,NumberMAX_SAFE_INTEGER:A,NumberMIN_SAFE_INTEGER:M,NumberParseInt:D,ObjectPrototypeHasOwnProperty:L,RegExpPrototypeExec:P,String:E,StringPrototypeToUpperCase:S,StringPrototypeTrim:B}=VQ(),{hideStackFrames:j,codes:{ERR_SOCKET_BAD_PORT:N,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:x,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:y}}=pQ(),{normalizeEncoding:n}=oQ(),{isAsyncFunction:r,isArrayBufferView:s}=oQ().types,i={};function u(o){return o===(o|0)}function Q0(o){return o===o>>>0}var Y=/^[0-7]+$/,G="must be a 32-bit unsigned integer or an octal string";function F(o,Y0,T0){if(typeof o>"u")o=T0;if(typeof o==="string"){if(P(Y,o)===null)throw new x(Y0,o,G);o=D(o,8)}return O(o,Y0),o}var Z=j((o,Y0,T0=M,V0=A)=>{if(typeof o!=="number")throw new v(Y0,"number",o);if(!U(o))throw new w(Y0,"an integer",o);if(o<T0||o>V0)throw new w(Y0,`>= ${T0} && <= ${V0}`,o)}),K=j((o,Y0,T0=-2147483648,V0=2147483647)=>{if(typeof o!=="number")throw new v(Y0,"number",o);if(!U(o))throw new w(Y0,"an integer",o);if(o<T0||o>V0)throw new w(Y0,`>= ${T0} && <= ${V0}`,o)}),O=j((o,Y0,T0=!1)=>{if(typeof o!=="number")throw new v(Y0,"number",o);if(!U(o))throw new w(Y0,"an integer",o);let V0=T0?1:0,W0=4294967295;if(o<V0||o>W0)throw new w(Y0,`>= ${V0} && <= ${W0}`,o)});function I(o,Y0){if(typeof o!=="string")throw new v(Y0,"string",o)}function z(o,Y0,T0=void 0,V0){if(typeof o!=="number")throw new v(Y0,"number",o);if(T0!=null&&o<T0||V0!=null&&o>V0||(T0!=null||V0!=null)&&C(o))throw new w(Y0,`${T0!=null?`>= ${T0}`:""}${T0!=null&&V0!=null?" && ":""}${V0!=null?`<= ${V0}`:""}`,o)}var V=j((o,Y0,T0)=>{if(!$(T0,o)){let V0="must be one of: "+W(H(T0,(W0)=>typeof W0==="string"?`'${W0}'`:E(W0)),", ");throw new x(Y0,o,V0)}});function q(o,Y0){if(typeof o!=="boolean")throw new v(Y0,"boolean",o)}function R(o,Y0,T0){return o==null||!L(o,Y0)?T0:o[Y0]}var T=j((o,Y0,T0=null)=>{let V0=R(T0,"allowArray",!1),W0=R(T0,"allowFunction",!1);if(!R(T0,"nullable",!1)&&o===null||!V0&&X(o)||typeof o!=="object"&&(!W0||typeof o!=="function"))throw new v(Y0,"Object",o)}),k=j((o,Y0)=>{if(o!=null&&typeof o!=="object"&&typeof o!=="function")throw new v(Y0,"a dictionary",o)}),g=j((o,Y0,T0=0)=>{if(!X(o))throw new v(Y0,"Array",o);if(o.length<T0){let V0=`must be longer than ${T0}`;throw new x(Y0,o,V0)}});function b(o,Y0){g(o,Y0);for(let T0=0;T0<o.length;T0++)I(o[T0],`${Y0}[${T0}]`)}function t(o,Y0){g(o,Y0);for(let T0=0;T0<o.length;T0++)q(o[T0],`${Y0}[${T0}]`)}function G0(o,Y0){g(o,Y0);for(let T0=0;T0<o.length;T0++){let V0=o[T0],W0=`${Y0}[${T0}]`;if(V0==null)throw new v(W0,"AbortSignal",V0);e(V0,W0)}}function p(o,Y0="signal"){if(I(o,Y0),i[o]===void 0){if(i[S(o)]!==void 0)throw new y(o+" (signals must use all capital letters)");throw new y(o)}}var _=j((o,Y0="buffer")=>{if(!s(o))throw new v(Y0,["Buffer","TypedArray","DataView"],o)});function d(o,Y0){let T0=n(Y0),V0=o.length;if(T0==="hex"&&V0%2!==0)throw new x("encoding",Y0,`is invalid for data of length ${V0}`)}function h(o,Y0="Port",T0=!0){if(typeof o!=="number"&&typeof o!=="string"||typeof o==="string"&&B(o).length===0||+o!==+o>>>0||o>65535||o===0&&!T0)throw new N(Y0,o,T0);return o|0}var e=j((o,Y0)=>{if(o!==void 0&&(o===null||typeof o!=="object"||!("aborted"in o)))throw new v(Y0,"AbortSignal",o)}),q0=j((o,Y0)=>{if(typeof o!=="function")throw new v(Y0,"Function",o)}),c=j((o,Y0)=>{if(typeof o!=="function"||r(o))throw new v(Y0,"Function",o)}),l=j((o,Y0)=>{if(o!==void 0)throw new v(Y0,"undefined",o)});function U0(o,Y0,T0){if(!$(T0,o))throw new v(Y0,`('${W(T0,"|")}')`,o)}var $0=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function m(o,Y0){if(typeof o>"u"||!P($0,o))throw new x(Y0,o,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function M0(o){if(typeof o==="string")return m(o,"hints"),o;else if(X(o)){let Y0=o.length,T0="";if(Y0===0)return T0;for(let V0=0;V0<Y0;V0++){let W0=o[V0];if(m(W0,"hints"),T0+=W0,V0!==Y0-1)T0+=", "}return T0}throw new x("hints",o,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}J.exports={isInt32:u,isUint32:Q0,parseFileMode:F,validateArray:g,validateStringArray:b,validateBooleanArray:t,validateAbortSignalArray:G0,validateBoolean:q,validateBuffer:_,validateDictionary:k,validateEncoding:d,validateFunction:q0,validateInt32:K,validateInteger:Z,validateNumber:z,validateObject:T,validateOneOf:V,validatePlainFunction:c,validatePort:h,validateSignalName:p,validateString:I,validateUint32:O,validateUndefined:l,validateUnion:U0,validateAbortSignal:e,validateLinkHeaderValue:M0}}),Y1=a0((Q,J)=>{J.exports=globalThis.process}),SJ=a0((Q,J)=>{var{SymbolAsyncIterator:X,SymbolIterator:$,SymbolFor:W}=VQ(),H=W("nodejs.stream.destroyed"),U=W("nodejs.stream.errored"),C=W("nodejs.stream.readable"),A=W("nodejs.stream.writable"),M=W("nodejs.stream.disturbed"),D=W("nodejs.webstream.isClosedPromise"),L=W("nodejs.webstream.controllerErrorFunction");function P(R,T=!1){var k;return!!(R&&typeof R.pipe==="function"&&typeof R.on==="function"&&(!T||typeof R.pause==="function"&&typeof R.resume==="function")&&(!R._writableState||((k=R._readableState)===null||k===void 0?void 0:k.readable)!==!1)&&(!R._writableState||R._readableState))}function E(R){var T;return!!(R&&typeof R.write==="function"&&typeof R.on==="function"&&(!R._readableState||((T=R._writableState)===null||T===void 0?void 0:T.writable)!==!1))}function S(R){return!!(R&&typeof R.pipe==="function"&&R._readableState&&typeof R.on==="function"&&typeof R.write==="function")}function B(R){return R&&(R._readableState||R._writableState||typeof R.write==="function"&&typeof R.on==="function"||typeof R.pipe==="function"&&typeof R.on==="function")}function j(R){return!!(R&&!B(R)&&typeof R.pipeThrough==="function"&&typeof R.getReader==="function"&&typeof R.cancel==="function")}function N(R){return!!(R&&!B(R)&&typeof R.getWriter==="function"&&typeof R.abort==="function")}function v(R){return!!(R&&!B(R)&&typeof R.readable==="object"&&typeof R.writable==="object")}function x(R){return j(R)||N(R)||v(R)}function w(R,T){if(R==null)return!1;if(T===!0)return typeof R[X]==="function";if(T===!1)return typeof R[$]==="function";return typeof R[X]==="function"||typeof R[$]==="function"}function y(R){if(!B(R))return null;let{_writableState:T,_readableState:k}=R,g=T||k;return!!(R.destroyed||R[H]||g!==null&&g!==void 0&&g.destroyed)}function n(R){if(!E(R))return null;if(R.writableEnded===!0)return!0;let T=R._writableState;if(T!==null&&T!==void 0&&T.errored)return!1;if(typeof(T===null||T===void 0?void 0:T.ended)!=="boolean")return null;return T.ended}function r(R,T){if(!E(R))return null;if(R.writableFinished===!0)return!0;let k=R._writableState;if(k!==null&&k!==void 0&&k.errored)return!1;if(typeof(k===null||k===void 0?void 0:k.finished)!=="boolean")return null;return!!(k.finished||T===!1&&k.ended===!0&&k.length===0)}function s(R){if(!P(R))return null;if(R.readableEnded===!0)return!0;let T=R._readableState;if(!T||T.errored)return!1;if(typeof(T===null||T===void 0?void 0:T.ended)!=="boolean")return null;return T.ended}function i(R,T){if(!P(R))return null;let k=R._readableState;if(k!==null&&k!==void 0&&k.errored)return!1;if(typeof(k===null||k===void 0?void 0:k.endEmitted)!=="boolean")return null;return!!(k.endEmitted||T===!1&&k.ended===!0&&k.length===0)}function u(R){if(R&&R[C]!=null)return R[C];if(typeof(R===null||R===void 0?void 0:R.readable)!=="boolean")return null;if(y(R))return!1;return P(R)&&R.readable&&!i(R)}function Q0(R){if(R&&R[A]!=null)return R[A];if(typeof(R===null||R===void 0?void 0:R.writable)!=="boolean")return null;if(y(R))return!1;return E(R)&&R.writable&&!n(R)}function Y(R,T){if(!B(R))return null;if(y(R))return!0;if((T===null||T===void 0?void 0:T.readable)!==!1&&u(R))return!1;if((T===null||T===void 0?void 0:T.writable)!==!1&&Q0(R))return!1;return!0}function G(R){var T,k;if(!B(R))return null;if(R.writableErrored)return R.writableErrored;return(T=(k=R._writableState)===null||k===void 0?void 0:k.errored)!==null&&T!==void 0?T:null}function F(R){var T,k;if(!B(R))return null;if(R.readableErrored)return R.readableErrored;return(T=(k=R._readableState)===null||k===void 0?void 0:k.errored)!==null&&T!==void 0?T:null}function Z(R){if(!B(R))return null;if(typeof R.closed==="boolean")return R.closed;let{_writableState:T,_readableState:k}=R;if(typeof(T===null||T===void 0?void 0:T.closed)==="boolean"||typeof(k===null||k===void 0?void 0:k.closed)==="boolean")return(T===null||T===void 0?void 0:T.closed)||(k===null||k===void 0?void 0:k.closed);if(typeof R._closed==="boolean"&&K(R))return R._closed;return null}function K(R){return typeof R._closed==="boolean"&&typeof R._defaultKeepAlive==="boolean"&&typeof R._removedConnection==="boolean"&&typeof R._removedContLen==="boolean"}function O(R){return typeof R._sent100==="boolean"&&K(R)}function I(R){var T;return typeof R._consuming==="boolean"&&typeof R._dumped==="boolean"&&((T=R.req)===null||T===void 0?void 0:T.upgradeOrConnect)===void 0}function z(R){if(!B(R))return null;let{_writableState:T,_readableState:k}=R,g=T||k;return!g&&O(R)||!!(g&&g.autoDestroy&&g.emitClose&&g.closed===!1)}function V(R){var T;return!!(R&&((T=R[M])!==null&&T!==void 0?T:R.readableDidRead||R.readableAborted))}function q(R){var T,k,g,b,t,G0,p,_,d,h;return!!(R&&((T=(k=(g=(b=(t=(G0=R[U])!==null&&G0!==void 0?G0:R.readableErrored)!==null&&t!==void 0?t:R.writableErrored)!==null&&b!==void 0?b:(p=R._readableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&g!==void 0?g:(_=R._writableState)===null||_===void 0?void 0:_.errorEmitted)!==null&&k!==void 0?k:(d=R._readableState)===null||d===void 0?void 0:d.errored)!==null&&T!==void 0?T:(h=R._writableState)===null||h===void 0?void 0:h.errored))}J.exports={isDestroyed:y,kIsDestroyed:H,isDisturbed:V,kIsDisturbed:M,isErrored:q,kIsErrored:U,isReadable:u,kIsReadable:C,kIsClosedPromise:D,kControllerErrorFunction:L,kIsWritable:A,isClosed:Z,isDuplexNodeStream:S,isFinished:Y,isIterable:w,isReadableNodeStream:P,isReadableStream:j,isReadableEnded:s,isReadableFinished:i,isReadableErrored:F,isNodeStream:B,isWebStream:x,isWritable:Q0,isWritableNodeStream:E,isWritableStream:N,isWritableEnded:n,isWritableFinished:r,isWritableErrored:G,isServerRequest:I,isServerResponse:O,willEmitClose:z,isTransformStream:v}}),gJ=a0((Q,J)=>{var X=Y1(),{AbortError:$,codes:W}=pQ(),{ERR_INVALID_ARG_TYPE:H,ERR_STREAM_PREMATURE_CLOSE:U}=W,{kEmptyObject:C,once:A}=oQ(),{validateAbortSignal:M,validateFunction:D,validateObject:L,validateBoolean:P}=qX(),{Promise:E,PromisePrototypeThen:S,SymbolDispose:B}=VQ(),{isClosed:j,isReadable:N,isReadableNodeStream:v,isReadableStream:x,isReadableFinished:w,isReadableErrored:y,isWritable:n,isWritableNodeStream:r,isWritableStream:s,isWritableFinished:i,isWritableErrored:u,isNodeStream:Q0,willEmitClose:Y,kIsClosedPromise:G}=SJ(),F;function Z(V){return V.setHeader&&typeof V.abort==="function"}var K=()=>{};function O(V,q,R){var T,k;if(arguments.length===2)R=q,q=C;else if(q==null)q=C;else L(q,"options");if(D(R,"callback"),M(q.signal,"options.signal"),R=A(R),x(V)||s(V))return I(V,q,R);if(!Q0(V))throw new H("stream",["ReadableStream","WritableStream","Stream"],V);let g=(T=q.readable)!==null&&T!==void 0?T:v(V),b=(k=q.writable)!==null&&k!==void 0?k:r(V),t=V._writableState,G0=V._readableState,p=()=>{if(!V.writable)h()},_=Y(V)&&v(V)===g&&r(V)===b,d=i(V,!1),h=()=>{if(d=!0,V.destroyed)_=!1;if(_&&(!V.readable||g))return;if(!g||e)R.call(V)},e=w(V,!1),q0=()=>{if(e=!0,V.destroyed)_=!1;if(_&&(!V.writable||b))return;if(!b||d)R.call(V)},c=(o)=>{R.call(V,o)},l=j(V),U0=()=>{l=!0;let o=u(V)||y(V);if(o&&typeof o!=="boolean")return R.call(V,o);if(g&&!e&&v(V,!0)){if(!w(V,!1))return R.call(V,new U)}if(b&&!d){if(!i(V,!1))return R.call(V,new U)}R.call(V)},$0=()=>{l=!0;let o=u(V)||y(V);if(o&&typeof o!=="boolean")return R.call(V,o);R.call(V)},m=()=>{V.req.on("finish",h)};if(Z(V)){if(V.on("complete",h),!_)V.on("abort",U0);if(V.req)m();else V.on("request",m)}else if(b&&!t)V.on("end",p),V.on("close",p);if(!_&&typeof V.aborted==="boolean")V.on("aborted",U0);if(V.on("end",q0),V.on("finish",h),q.error!==!1)V.on("error",c);if(V.on("close",U0),l)X.nextTick(U0);else if(t!==null&&t!==void 0&&t.errorEmitted||G0!==null&&G0!==void 0&&G0.errorEmitted){if(!_)X.nextTick($0)}else if(!g&&(!_||N(V))&&(d||n(V)===!1))X.nextTick($0);else if(!b&&(!_||n(V))&&(e||N(V)===!1))X.nextTick($0);else if(G0&&V.req&&V.aborted)X.nextTick($0);let M0=()=>{if(R=K,V.removeListener("aborted",U0),V.removeListener("complete",h),V.removeListener("abort",U0),V.removeListener("request",m),V.req)V.req.removeListener("finish",h);V.removeListener("end",p),V.removeListener("close",p),V.removeListener("finish",h),V.removeListener("end",q0),V.removeListener("error",c),V.removeListener("close",U0)};if(q.signal&&!l){let o=()=>{let Y0=R;M0(),Y0.call(V,new $(void 0,{cause:q.signal.reason}))};if(q.signal.aborted)X.nextTick(o);else{F=F||oQ().addAbortListener;let Y0=F(q.signal,o),T0=R;R=A((...V0)=>{Y0[B](),T0.apply(V,V0)})}}return M0}function I(V,q,R){let T=!1,k=K;if(q.signal)if(k=()=>{T=!0,R.call(V,new $(void 0,{cause:q.signal.reason}))},q.signal.aborted)X.nextTick(k);else{F=F||oQ().addAbortListener;let b=F(q.signal,k),t=R;R=A((...G0)=>{b[B](),t.apply(V,G0)})}let g=(...b)=>{if(!T)X.nextTick(()=>R.apply(V,b))};return S(V[G].promise,g,g),K}function z(V,q){var R;let T=!1;if(q===null)q=C;if((R=q)!==null&&R!==void 0&&R.cleanup)P(q.cleanup,"cleanup"),T=q.cleanup;return new E((k,g)=>{let b=O(V,q,(t)=>{if(T)b();if(t)g(t);else k()})})}J.exports=O,J.exports.finished=z}),S1=a0((Q,J)=>{var X=Y1(),{aggregateTwoErrors:$,codes:{ERR_MULTIPLE_CALLBACK:W},AbortError:H}=pQ(),{Symbol:U}=VQ(),{kIsDestroyed:C,isDestroyed:A,isFinished:M,isServerRequest:D}=SJ(),L=U("kDestroy"),P=U("kConstruct");function E(Y,G,F){if(Y){if(Y.stack,G&&!G.errored)G.errored=Y;if(F&&!F.errored)F.errored=Y}}function S(Y,G){let F=this._readableState,Z=this._writableState,K=Z||F;if(Z!==null&&Z!==void 0&&Z.destroyed||F!==null&&F!==void 0&&F.destroyed){if(typeof G==="function")G();return this}if(E(Y,Z,F),Z)Z.destroyed=!0;if(F)F.destroyed=!0;if(!K.constructed)this.once(L,function(O){B(this,$(O,Y),G)});else B(this,Y,G);return this}function B(Y,G,F){let Z=!1;function K(O){if(Z)return;Z=!0;let{_readableState:I,_writableState:z}=Y;if(E(O,z,I),z)z.closed=!0;if(I)I.closed=!0;if(typeof F==="function")F(O);if(O)X.nextTick(j,Y,O);else X.nextTick(N,Y)}try{Y._destroy(G||null,K)}catch(O){K(O)}}function j(Y,G){v(Y,G),N(Y)}function N(Y){let{_readableState:G,_writableState:F}=Y;if(F)F.closeEmitted=!0;if(G)G.closeEmitted=!0;if(F!==null&&F!==void 0&&F.emitClose||G!==null&&G!==void 0&&G.emitClose)Y.emit("close")}function v(Y,G){let{_readableState:F,_writableState:Z}=Y;if(Z!==null&&Z!==void 0&&Z.errorEmitted||F!==null&&F!==void 0&&F.errorEmitted)return;if(Z)Z.errorEmitted=!0;if(F)F.errorEmitted=!0;Y.emit("error",G)}function x(){let Y=this._readableState,G=this._writableState;if(Y)Y.constructed=!0,Y.closed=!1,Y.closeEmitted=!1,Y.destroyed=!1,Y.errored=null,Y.errorEmitted=!1,Y.reading=!1,Y.ended=Y.readable===!1,Y.endEmitted=Y.readable===!1;if(G)G.constructed=!0,G.destroyed=!1,G.closed=!1,G.closeEmitted=!1,G.errored=null,G.errorEmitted=!1,G.finalCalled=!1,G.prefinished=!1,G.ended=G.writable===!1,G.ending=G.writable===!1,G.finished=G.writable===!1}function w(Y,G,F){let{_readableState:Z,_writableState:K}=Y;if(K!==null&&K!==void 0&&K.destroyed||Z!==null&&Z!==void 0&&Z.destroyed)return this;if(Z!==null&&Z!==void 0&&Z.autoDestroy||K!==null&&K!==void 0&&K.autoDestroy)Y.destroy(G);else if(G){if(G.stack,K&&!K.errored)K.errored=G;if(Z&&!Z.errored)Z.errored=G;if(F)X.nextTick(v,Y,G);else v(Y,G)}}function y(Y,G){if(typeof Y._construct!=="function")return;let{_readableState:F,_writableState:Z}=Y;if(F)F.constructed=!1;if(Z)Z.constructed=!1;if(Y.once(P,G),Y.listenerCount(P)>1)return;X.nextTick(n,Y)}function n(Y){let G=!1;function F(Z){if(G){w(Y,Z!==null&&Z!==void 0?Z:new W);return}G=!0;let{_readableState:K,_writableState:O}=Y,I=O||K;if(K)K.constructed=!0;if(O)O.constructed=!0;if(I.destroyed)Y.emit(L,Z);else if(Z)w(Y,Z,!0);else X.nextTick(r,Y)}try{Y._construct((Z)=>{X.nextTick(F,Z)})}catch(Z){X.nextTick(F,Z)}}function r(Y){Y.emit(P)}function s(Y){return(Y===null||Y===void 0?void 0:Y.setHeader)&&typeof Y.abort==="function"}function i(Y){Y.emit("close")}function u(Y,G){Y.emit("error",G),X.nextTick(i,Y)}function Q0(Y,G){if(!Y||A(Y))return;if(!G&&!M(Y))G=new H;if(D(Y))Y.socket=null,Y.destroy(G);else if(s(Y))Y.abort();else if(s(Y.req))Y.req.abort();else if(typeof Y.destroy==="function")Y.destroy(G);else if(typeof Y.close==="function")Y.close();else if(G)X.nextTick(u,Y,G);else X.nextTick(i,Y);if(!Y.destroyed)Y[C]=!0}J.exports={construct:y,destroyer:Q0,destroy:S,undestroy:x,errorOrDestroy:w}}),Z$=a0((Q,J)=>{var{ArrayIsArray:X,ObjectSetPrototypeOf:$}=VQ(),{EventEmitter:W}=(HX(),u0(KX));function H(C){W.call(this,C)}$(H.prototype,W.prototype),$(H,W),H.prototype.pipe=function(C,A){let M=this;function D(N){if(C.writable&&C.write(N)===!1&&M.pause)M.pause()}M.on("data",D);function L(){if(M.readable&&M.resume)M.resume()}if(C.on("drain",L),!C._isStdio&&(!A||A.end!==!1))M.on("end",E),M.on("close",S);let P=!1;function E(){if(P)return;P=!0,C.end()}function S(){if(P)return;if(P=!0,typeof C.destroy==="function")C.destroy()}function B(N){if(j(),W.listenerCount(this,"error")===0)this.emit("error",N)}U(M,"error",B),U(C,"error",B);function j(){M.removeListener("data",D),C.removeListener("drain",L),M.removeListener("end",E),M.removeListener("close",S),M.removeListener("error",B),C.removeListener("error",B),M.removeListener("end",j),M.removeListener("close",j),C.removeListener("close",j)}return M.on("end",j),M.on("close",j),C.on("close",j),C.emit("pipe",M),C};function U(C,A,M){if(typeof C.prependListener==="function")return C.prependListener(A,M);if(!C._events||!C._events[A])C.on(A,M);else if(X(C._events[A]))C._events[A].unshift(M);else C._events[A]=[M,C._events[A]]}J.exports={Stream:H,prependListener:U}}),qY=a0((Q,J)=>{var{SymbolDispose:X}=VQ(),{AbortError:$,codes:W}=pQ(),{isNodeStream:H,isWebStream:U,kControllerErrorFunction:C}=SJ(),A=gJ(),{ERR_INVALID_ARG_TYPE:M}=W,D,L=(P,E)=>{if(typeof P!=="object"||!("aborted"in P))throw new M(E,"AbortSignal",P)};J.exports.addAbortSignal=function(P,E){if(L(P,"signal"),!H(E)&&!U(E))throw new M("stream",["ReadableStream","WritableStream","Stream"],E);return J.exports.addAbortSignalNoValidate(P,E)},J.exports.addAbortSignalNoValidate=function(P,E){if(typeof P!=="object"||!("aborted"in P))return E;let S=H(E)?()=>{E.destroy(new $(void 0,{cause:P.reason}))}:()=>{E[C](new $(void 0,{cause:P.reason}))};if(P.aborted)S();else{D=D||oQ().addAbortListener;let B=D(P,S);A(E,B[X])}return E}}),JF=a0((Q,J)=>{var{StringPrototypeSlice:X,SymbolIterator:$,TypedArrayPrototypeSet:W,Uint8Array:H}=VQ(),{Buffer:U}=(HQ(),u0(SQ)),{inspect:C}=oQ();J.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(A){let M={data:A,next:null};if(this.length>0)this.tail.next=M;else this.head=M;this.tail=M,++this.length}unshift(A){let M={data:A,next:this.head};if(this.length===0)this.tail=M;this.head=M,++this.length}shift(){if(this.length===0)return;let A=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,A}clear(){this.head=this.tail=null,this.length=0}join(A){if(this.length===0)return"";let M=this.head,D=""+M.data;while((M=M.next)!==null)D+=A+M.data;return D}concat(A){if(this.length===0)return U.alloc(0);let M=U.allocUnsafe(A>>>0),D=this.head,L=0;while(D)W(M,D.data,L),L+=D.data.length,D=D.next;return M}consume(A,M){let D=this.head.data;if(A<D.length){let L=D.slice(0,A);return this.head.data=D.slice(A),L}if(A===D.length)return this.shift();return M?this._getString(A):this._getBuffer(A)}first(){return this.head.data}*[$](){for(let A=this.head;A;A=A.next)yield A.data}_getString(A){let M="",D=this.head,L=0;do{let P=D.data;if(A>P.length)M+=P,A-=P.length;else{if(A===P.length)if(M+=P,++L,D.next)this.head=D.next;else this.head=this.tail=null;else M+=X(P,0,A),this.head=D,D.data=X(P,A);break}++L}while((D=D.next)!==null);return this.length-=L,M}_getBuffer(A){let M=U.allocUnsafe(A),D=A,L=this.head,P=0;do{let E=L.data;if(A>E.length)W(M,E,D-A),A-=E.length;else{if(A===E.length)if(W(M,E,D-A),++P,L.next)this.head=L.next;else this.head=this.tail=null;else W(M,new H(E.buffer,E.byteOffset,A),D-A),this.head=L,L.data=E.slice(A);break}++P}while((L=L.next)!==null);return this.length-=P,M}[Symbol.for("nodejs.util.inspect.custom")](A,M){return C(this,{...M,depth:0,customInspect:!1})}}}),zY=a0((Q,J)=>{var{MathFloor:X,NumberIsInteger:$}=VQ(),{validateInteger:W}=qX(),{ERR_INVALID_ARG_VALUE:H}=pQ().codes,U=16384,C=16;function A(P,E,S){return P.highWaterMark!=null?P.highWaterMark:E?P[S]:null}function M(P){return P?C:U}function D(P,E){if(W(E,"value",0),P)C=E;else U=E}function L(P,E,S,B){let j=A(E,B,S);if(j!=null){if(!$(j)||j<0){let N=B?`options.${S}`:"options.highWaterMark";throw new H(N,j)}return X(j)}return M(P.objectMode)}J.exports={getHighWaterMark:L,getDefaultHighWaterMark:M,setDefaultHighWaterMark:D}}),XF=a0((Q,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var X=(HQ(),u0(SQ)),$=X.Buffer;function W(U,C){for(var A in U)C[A]=U[A]}if($.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow)J.exports=X;else W(X,Q),Q.Buffer=H;function H(U,C,A){return $(U,C,A)}H.prototype=Object.create($.prototype),W($,H),H.from=function(U,C,A){if(typeof U==="number")throw TypeError("Argument must not be a number");return $(U,C,A)},H.alloc=function(U,C,A){if(typeof U!=="number")throw TypeError("Argument must be a number");var M=$(U);if(C!==void 0)if(typeof A==="string")M.fill(C,A);else M.fill(C);else M.fill(0);return M},H.allocUnsafe=function(U){if(typeof U!=="number")throw TypeError("Argument must be a number");return $(U)},H.allocUnsafeSlow=function(U){if(typeof U!=="number")throw TypeError("Argument must be a number");return X.SlowBuffer(U)}}),YF=a0((Q)=>{var J=XF().Buffer,X=J.isEncoding||function(v){switch(v=""+v,v&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function $(v){if(!v)return"utf8";var x;while(!0)switch(v){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return v;default:if(x)return;v=(""+v).toLowerCase(),x=!0}}function W(v){var x=$(v);if(typeof x!=="string"&&(J.isEncoding===X||!X(v)))throw Error("Unknown encoding: "+v);return x||v}Q.StringDecoder=H;function H(v){this.encoding=W(v);var x;switch(this.encoding){case"utf16le":this.text=P,this.end=E,x=4;break;case"utf8":this.fillLast=M,x=4;break;case"base64":this.text=S,this.end=B,x=3;break;default:this.write=j,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(x)}H.prototype.write=function(v){if(v.length===0)return"";var x,w;if(this.lastNeed){if(x=this.fillLast(v),x===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;if(w<v.length)return x?x+this.text(v,w):this.text(v,w);return x||""},H.prototype.end=L,H.prototype.text=D,H.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length};function U(v){if(v<=127)return 0;else if(v>>5===6)return 2;else if(v>>4===14)return 3;else if(v>>3===30)return 4;return v>>6===2?-1:-2}function C(v,x,w){var y=x.length-1;if(y<w)return 0;var n=U(x[y]);if(n>=0){if(n>0)v.lastNeed=n-1;return n}if(--y<w||n===-2)return 0;if(n=U(x[y]),n>=0){if(n>0)v.lastNeed=n-2;return n}if(--y<w||n===-2)return 0;if(n=U(x[y]),n>=0){if(n>0)if(n===2)n=0;else v.lastNeed=n-3;return n}return 0}function A(v,x,w){if((x[0]&192)!==128)return v.lastNeed=0,"�";if(v.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return v.lastNeed=1,"�";if(v.lastNeed>2&&x.length>2){if((x[2]&192)!==128)return v.lastNeed=2,"�"}}}function M(v){var x=this.lastTotal-this.lastNeed,w=A(this,v,x);if(w!==void 0)return w;if(this.lastNeed<=v.length)return v.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,x,0,v.length),this.lastNeed-=v.length}function D(v,x){var w=C(this,v,x);if(!this.lastNeed)return v.toString("utf8",x);this.lastTotal=w;var y=v.length-(w-this.lastNeed);return v.copy(this.lastChar,0,y),v.toString("utf8",x,y)}function L(v){var x=v&&v.length?this.write(v):"";if(this.lastNeed)return x+"�";return x}function P(v,x){if((v.length-x)%2===0){var w=v.toString("utf16le",x);if(w){var y=w.charCodeAt(w.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",x,v.length-1)}function E(v){var x=v&&v.length?this.write(v):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,w)}return x}function S(v,x){var w=(v.length-x)%3;if(w===0)return v.toString("base64",x);if(this.lastNeed=3-w,this.lastTotal=3,w===1)this.lastChar[0]=v[v.length-1];else this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1];return v.toString("base64",x,v.length-w)}function B(v){var x=v&&v.length?this.write(v):"";if(this.lastNeed)return x+this.lastChar.toString("base64",0,3-this.lastNeed);return x}function j(v){return v.toString(this.encoding)}function N(v){return v&&v.length?this.write(v):""}}),ZG=a0((Q,J)=>{var X=Y1(),{PromisePrototypeThen:$,SymbolAsyncIterator:W,SymbolIterator:H}=VQ(),{Buffer:U}=(HQ(),u0(SQ)),{ERR_INVALID_ARG_TYPE:C,ERR_STREAM_NULL_VALUES:A}=pQ().codes;function M(D,L,P){let E;if(typeof L==="string"||L instanceof U)return new D({objectMode:!0,...P,read(){this.push(L),this.push(null)}});let S;if(L&&L[W])S=!0,E=L[W]();else if(L&&L[H])S=!1,E=L[H]();else throw new C("iterable",["Iterable"],L);let B=new D({objectMode:!0,highWaterMark:1,...P}),j=!1;B._read=function(){if(!j)j=!0,v()},B._destroy=function(x,w){$(N(x),()=>X.nextTick(w,x),(y)=>X.nextTick(w,y||x))};async function N(x){let w=x!==void 0&&x!==null,y=typeof E.throw==="function";if(w&&y){let{value:n,done:r}=await E.throw(x);if(await n,r)return}if(typeof E.return==="function"){let{value:n}=await E.return();await n}}async function v(){for(;;){try{let{value:x,done:w}=S?await E.next():E.next();if(w)B.push(null);else{let y=x&&typeof x.then==="function"?await x:x;if(y===null)throw j=!1,new A;else if(B.push(y))continue;else j=!1}}catch(x){B.destroy(x)}break}}return B}J.exports=M}),OY=a0((Q,J)=>{var X=Y1(),{ArrayPrototypeIndexOf:$,NumberIsInteger:W,NumberIsNaN:H,NumberParseInt:U,ObjectDefineProperties:C,ObjectKeys:A,ObjectSetPrototypeOf:M,Promise:D,SafeSet:L,SymbolAsyncDispose:P,SymbolAsyncIterator:E,Symbol:S}=VQ();J.exports=V0,V0.ReadableState=T0;var{EventEmitter:B}=(HX(),u0(KX)),{Stream:j,prependListener:N}=Z$(),{Buffer:v}=(HQ(),u0(SQ)),{addAbortSignal:x}=qY(),w=gJ(),y=oQ().debuglog("stream",(f)=>{y=f}),n=JF(),r=S1(),{getHighWaterMark:s,getDefaultHighWaterMark:i}=zY(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:Q0,ERR_METHOD_NOT_IMPLEMENTED:Y,ERR_OUT_OF_RANGE:G,ERR_STREAM_PUSH_AFTER_EOF:F,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Z},AbortError:K}=pQ(),{validateObject:O}=qX(),I=S("kPaused"),{StringDecoder:z}=YF(),V=ZG();M(V0.prototype,j.prototype),M(V0,j);var q=()=>{},{errorOrDestroy:R}=r,T=1,k=2,g=4,b=8,t=16,G0=32,p=64,_=128,d=256,h=512,e=1024,q0=2048,c=4096,l=8192,U0=16384,$0=32768,m=65536,M0=131072,o=262144;function Y0(f){return{enumerable:!1,get(){return(this.state&f)!==0},set(X0){if(X0)this.state|=f;else this.state&=~f}}}C(T0.prototype,{objectMode:Y0(T),ended:Y0(k),endEmitted:Y0(g),reading:Y0(b),constructed:Y0(t),sync:Y0(G0),needReadable:Y0(p),emittedReadable:Y0(_),readableListening:Y0(d),resumeScheduled:Y0(h),errorEmitted:Y0(e),emitClose:Y0(q0),autoDestroy:Y0(c),destroyed:Y0(l),closed:Y0(U0),closeEmitted:Y0($0),multiAwaitDrain:Y0(m),readingMore:Y0(M0),dataEmitted:Y0(o)});function T0(f,X0,Z0){if(typeof Z0!=="boolean")Z0=X0 instanceof EJ();if(this.state=q0|c|t|G0,f&&f.objectMode)this.state|=T;if(Z0&&f&&f.readableObjectMode)this.state|=T;if(this.highWaterMark=f?s(this,f,"readableHighWaterMark",Z0):i(!1),this.buffer=new n,this.length=0,this.pipes=[],this.flowing=null,this[I]=null,f&&f.emitClose===!1)this.state&=~q0;if(f&&f.autoDestroy===!1)this.state&=~c;if(this.errored=null,this.defaultEncoding=f&&f.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,f&&f.encoding)this.decoder=new z(f.encoding),this.encoding=f.encoding}function V0(f){if(!(this instanceof V0))return new V0(f);let X0=this instanceof EJ();if(this._readableState=new T0(f,this,X0),f){if(typeof f.read==="function")this._read=f.read;if(typeof f.destroy==="function")this._destroy=f.destroy;if(typeof f.construct==="function")this._construct=f.construct;if(f.signal&&!X0)x(f.signal,this)}j.call(this,f),r.construct(this,()=>{if(this._readableState.needReadable)z0(this,this._readableState)})}V0.prototype.destroy=r.destroy,V0.prototype._undestroy=r.undestroy,V0.prototype._destroy=function(f,X0){X0(f)},V0.prototype[B.captureRejectionSymbol]=function(f){this.destroy(f)},V0.prototype[P]=function(){let f;if(!this.destroyed)f=this.readableEnded?null:new K,this.destroy(f);return new D((X0,Z0)=>w(this,(K0)=>K0&&K0!==f?Z0(K0):X0(null)))},V0.prototype.push=function(f,X0){return W0(this,f,X0,!1)},V0.prototype.unshift=function(f,X0){return W0(this,f,X0,!0)};function W0(f,X0,Z0,K0){y("readableAddChunk",X0);let c0=f._readableState,P0;if((c0.state&T)===0){if(typeof X0==="string"){if(Z0=Z0||c0.defaultEncoding,c0.encoding!==Z0)if(K0&&c0.encoding)X0=v.from(X0,Z0).toString(c0.encoding);else X0=v.from(X0,Z0),Z0=""}else if(X0 instanceof v)Z0="";else if(j._isUint8Array(X0))X0=j._uint8ArrayToBuffer(X0),Z0="";else if(X0!=null)P0=new Q0("chunk",["string","Buffer","Uint8Array"],X0)}if(P0)R(f,P0);else if(X0===null)c0.state&=~b,H0(f,c0);else if((c0.state&T)!==0||X0&&X0.length>0)if(K0)if((c0.state&g)!==0)R(f,new Z);else if(c0.destroyed||c0.errored)return!1;else b0(f,c0,X0,!0);else if(c0.ended)R(f,new F);else if(c0.destroyed||c0.errored)return!1;else if(c0.state&=~b,c0.decoder&&!Z0)if(X0=c0.decoder.write(X0),c0.objectMode||X0.length!==0)b0(f,c0,X0,!1);else z0(f,c0);else b0(f,c0,X0,!1);else if(!K0)c0.state&=~b,z0(f,c0);return!c0.ended&&(c0.length<c0.highWaterMark||c0.length===0)}function b0(f,X0,Z0,K0){if(X0.flowing&&X0.length===0&&!X0.sync&&f.listenerCount("data")>0){if((X0.state&m)!==0)X0.awaitDrainWriters.clear();else X0.awaitDrainWriters=null;X0.dataEmitted=!0,f.emit("data",Z0)}else{if(X0.length+=X0.objectMode?1:Z0.length,K0)X0.buffer.unshift(Z0);else X0.buffer.push(Z0);if((X0.state&p)!==0)F0(f)}z0(f,X0)}V0.prototype.isPaused=function(){let f=this._readableState;return f[I]===!0||f.flowing===!1},V0.prototype.setEncoding=function(f){let X0=new z(f);this._readableState.decoder=X0,this._readableState.encoding=this._readableState.decoder.encoding;let Z0=this._readableState.buffer,K0="";for(let c0 of Z0)K0+=X0.write(c0);if(Z0.clear(),K0!=="")Z0.push(K0);return this._readableState.length=K0.length,this};var a=1073741824;function J0(f){if(f>a)throw new G("size","<= 1GiB",f);else f--,f|=f>>>1,f|=f>>>2,f|=f>>>4,f|=f>>>8,f|=f>>>16,f++;return f}function y0(f,X0){if(f<=0||X0.length===0&&X0.ended)return 0;if((X0.state&T)!==0)return 1;if(H(f)){if(X0.flowing&&X0.length)return X0.buffer.first().length;return X0.length}if(f<=X0.length)return f;return X0.ended?X0.length:0}V0.prototype.read=function(f){if(y("read",f),f===void 0)f=NaN;else if(!W(f))f=U(f,10);let X0=this._readableState,Z0=f;if(f>X0.highWaterMark)X0.highWaterMark=J0(f);if(f!==0)X0.state&=~_;if(f===0&&X0.needReadable&&((X0.highWaterMark!==0?X0.length>=X0.highWaterMark:X0.length>0)||X0.ended)){if(y("read: emitReadable",X0.length,X0.ended),X0.length===0&&X0.ended)vQ(this);else F0(this);return null}if(f=y0(f,X0),f===0&&X0.ended){if(X0.length===0)vQ(this);return null}let K0=(X0.state&p)!==0;if(y("need readable",K0),X0.length===0||X0.length-f<X0.highWaterMark)K0=!0,y("length less than watermark",K0);if(X0.ended||X0.reading||X0.destroyed||X0.errored||!X0.constructed)K0=!1,y("reading, ended or constructing",K0);else if(K0){if(y("do read"),X0.state|=b|G0,X0.length===0)X0.state|=p;try{this._read(X0.highWaterMark)}catch(P0){R(this,P0)}if(X0.state&=~G0,!X0.reading)f=y0(Z0,X0)}let c0;if(f>0)c0=B0(f,X0);else c0=null;if(c0===null)X0.needReadable=X0.length<=X0.highWaterMark,f=0;else if(X0.length-=f,X0.multiAwaitDrain)X0.awaitDrainWriters.clear();else X0.awaitDrainWriters=null;if(X0.length===0){if(!X0.ended)X0.needReadable=!0;if(Z0!==f&&X0.ended)vQ(this)}if(c0!==null&&!X0.errorEmitted&&!X0.closeEmitted)X0.dataEmitted=!0,this.emit("data",c0);return c0};function H0(f,X0){if(y("onEofChunk"),X0.ended)return;if(X0.decoder){let Z0=X0.decoder.end();if(Z0&&Z0.length)X0.buffer.push(Z0),X0.length+=X0.objectMode?1:Z0.length}if(X0.ended=!0,X0.sync)F0(f);else X0.needReadable=!1,X0.emittedReadable=!0,h0(f)}function F0(f){let X0=f._readableState;if(y("emitReadable",X0.needReadable,X0.emittedReadable),X0.needReadable=!1,!X0.emittedReadable)y("emitReadable",X0.flowing),X0.emittedReadable=!0,X.nextTick(h0,f)}function h0(f){let X0=f._readableState;if(y("emitReadable_",X0.destroyed,X0.length,X0.ended),!X0.destroyed&&!X0.errored&&(X0.length||X0.ended))f.emit("readable"),X0.emittedReadable=!1;X0.needReadable=!X0.flowing&&!X0.ended&&X0.length<=X0.highWaterMark,E0(f)}function z0(f,X0){if(!X0.readingMore&&X0.constructed)X0.readingMore=!0,X.nextTick(O0,f,X0)}function O0(f,X0){while(!X0.reading&&!X0.ended&&(X0.length<X0.highWaterMark||X0.flowing&&X0.length===0)){let Z0=X0.length;if(y("maybeReadMore read 0"),f.read(0),Z0===X0.length)break}X0.readingMore=!1}V0.prototype._read=function(f){throw new Y("_read()")},V0.prototype.pipe=function(f,X0){let Z0=this,K0=this._readableState;if(K0.pipes.length===1){if(!K0.multiAwaitDrain)K0.multiAwaitDrain=!0,K0.awaitDrainWriters=new L(K0.awaitDrainWriters?[K0.awaitDrainWriters]:[])}K0.pipes.push(f),y("pipe count=%d opts=%j",K0.pipes.length,X0);let c0=(!X0||X0.end!==!1)&&f!==X.stdout&&f!==X.stderr?A0:l0;if(K0.endEmitted)X.nextTick(c0);else Z0.once("end",c0);f.on("unpipe",P0);function P0(e0,i0){if(y("onunpipe"),e0===Z0){if(i0&&i0.hasUnpiped===!1)i0.hasUnpiped=!0,_0()}}function A0(){y("onend"),f.end()}let GQ,v0=!1;function _0(){if(y("cleanup"),f.removeListener("close",WQ),f.removeListener("finish",m0),GQ)f.removeListener("drain",GQ);if(f.removeListener("error",j0),f.removeListener("unpipe",P0),Z0.removeListener("end",A0),Z0.removeListener("end",l0),Z0.removeListener("data",N0),v0=!0,GQ&&K0.awaitDrainWriters&&(!f._writableState||f._writableState.needDrain))GQ()}function wQ(){if(!v0){if(K0.pipes.length===1&&K0.pipes[0]===f)y("false write response, pause",0),K0.awaitDrainWriters=f,K0.multiAwaitDrain=!1;else if(K0.pipes.length>1&&K0.pipes.includes(f))y("false write response, pause",K0.awaitDrainWriters.size),K0.awaitDrainWriters.add(f);Z0.pause()}if(!GQ)GQ=d0(Z0,f),f.on("drain",GQ)}Z0.on("data",N0);function N0(e0){y("ondata");let i0=f.write(e0);if(y("dest.write",i0),i0===!1)wQ()}function j0(e0){if(y("onerror",e0),l0(),f.removeListener("error",j0),f.listenerCount("error")===0){let i0=f._writableState||f._readableState;if(i0&&!i0.errorEmitted)R(f,e0);else f.emit("error",e0)}}N(f,"error",j0);function WQ(){f.removeListener("finish",m0),l0()}f.once("close",WQ);function m0(){y("onfinish"),f.removeListener("close",WQ),l0()}f.once("finish",m0);function l0(){y("unpipe"),Z0.unpipe(f)}if(f.emit("pipe",Z0),f.writableNeedDrain===!0)wQ();else if(!K0.flowing)y("pipe resume"),Z0.resume();return f};function d0(f,X0){return function(){let Z0=f._readableState;if(Z0.awaitDrainWriters===X0)y("pipeOnDrain",1),Z0.awaitDrainWriters=null;else if(Z0.multiAwaitDrain)y("pipeOnDrain",Z0.awaitDrainWriters.size),Z0.awaitDrainWriters.delete(X0);if((!Z0.awaitDrainWriters||Z0.awaitDrainWriters.size===0)&&f.listenerCount("data"))f.resume()}}V0.prototype.unpipe=function(f){let X0=this._readableState,Z0={hasUnpiped:!1};if(X0.pipes.length===0)return this;if(!f){let c0=X0.pipes;X0.pipes=[],this.pause();for(let P0=0;P0<c0.length;P0++)c0[P0].emit("unpipe",this,{hasUnpiped:!1});return this}let K0=$(X0.pipes,f);if(K0===-1)return this;if(X0.pipes.splice(K0,1),X0.pipes.length===0)this.pause();return f.emit("unpipe",this,Z0),this},V0.prototype.on=function(f,X0){let Z0=j.prototype.on.call(this,f,X0),K0=this._readableState;if(f==="data"){if(K0.readableListening=this.listenerCount("readable")>0,K0.flowing!==!1)this.resume()}else if(f==="readable"){if(!K0.endEmitted&&!K0.readableListening){if(K0.readableListening=K0.needReadable=!0,K0.flowing=!1,K0.emittedReadable=!1,y("on readable",K0.length,K0.reading),K0.length)F0(this);else if(!K0.reading)X.nextTick(D0,this)}}return Z0},V0.prototype.addListener=V0.prototype.on,V0.prototype.removeListener=function(f,X0){let Z0=j.prototype.removeListener.call(this,f,X0);if(f==="readable")X.nextTick(I0,this);return Z0},V0.prototype.off=V0.prototype.removeListener,V0.prototype.removeAllListeners=function(f){let X0=j.prototype.removeAllListeners.apply(this,arguments);if(f==="readable"||f===void 0)X.nextTick(I0,this);return X0};function I0(f){let X0=f._readableState;if(X0.readableListening=f.listenerCount("readable")>0,X0.resumeScheduled&&X0[I]===!1)X0.flowing=!0;else if(f.listenerCount("data")>0)f.resume();else if(!X0.readableListening)X0.flowing=null}function D0(f){y("readable nexttick read 0"),f.read(0)}V0.prototype.resume=function(){let f=this._readableState;if(!f.flowing)y("resume"),f.flowing=!f.readableListening,ZQ(this,f);return f[I]=!1,this};function ZQ(f,X0){if(!X0.resumeScheduled)X0.resumeScheduled=!0,X.nextTick(R0,f,X0)}function R0(f,X0){if(y("resume",X0.reading),!X0.reading)f.read(0);if(X0.resumeScheduled=!1,f.emit("resume"),E0(f),X0.flowing&&!X0.reading)f.read(0)}V0.prototype.pause=function(){if(y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)y("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[I]=!0,this};function E0(f){let X0=f._readableState;y("flow",X0.flowing);while(X0.flowing&&f.read()!==null);}V0.prototype.wrap=function(f){let X0=!1;f.on("data",(K0)=>{if(!this.push(K0)&&f.pause)X0=!0,f.pause()}),f.on("end",()=>{this.push(null)}),f.on("error",(K0)=>{R(this,K0)}),f.on("close",()=>{this.destroy()}),f.on("destroy",()=>{this.destroy()}),this._read=()=>{if(X0&&f.resume)X0=!1,f.resume()};let Z0=A(f);for(let K0=1;K0<Z0.length;K0++){let c0=Z0[K0];if(this[c0]===void 0&&typeof f[c0]==="function")this[c0]=f[c0].bind(f)}return this},V0.prototype[E]=function(){return t0(this)},V0.prototype.iterator=function(f){if(f!==void 0)O(f,"options");return t0(this,f)};function t0(f,X0){if(typeof f.read!=="function")f=V0.wrap(f,{objectMode:!0});let Z0=S0(f,X0);return Z0.stream=f,Z0}async function*S0(f,X0){let Z0=q;function K0(A0){if(this===f)Z0(),Z0=q;else Z0=A0}f.on("readable",K0);let c0,P0=w(f,{writable:!1},(A0)=>{c0=A0?u(c0,A0):null,Z0(),Z0=q});try{while(!0){let A0=f.destroyed?null:f.read();if(A0!==null)yield A0;else if(c0)throw c0;else if(c0===null)return;else await new D(K0)}}catch(A0){throw c0=u(c0,A0),c0}finally{if((c0||(X0===null||X0===void 0?void 0:X0.destroyOnReturn)!==!1)&&(c0===void 0||f._readableState.autoDestroy))r.destroyer(f,null);else f.off("readable",K0),P0()}}C(V0.prototype,{readable:{__proto__:null,get(){let f=this._readableState;return!!f&&f.readable!==!1&&!f.destroyed&&!f.errorEmitted&&!f.endEmitted},set(f){if(this._readableState)this._readableState.readable=!!f}},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(f){if(this._readableState)this._readableState.flowing=f}},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(f){if(!this._readableState)return;this._readableState.destroyed=f}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),C(T0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[I]!==!1},set(f){this[I]=!!f}}}),V0._fromList=B0;function B0(f,X0){if(X0.length===0)return null;let Z0;if(X0.objectMode)Z0=X0.buffer.shift();else if(!f||f>=X0.length){if(X0.decoder)Z0=X0.buffer.join("");else if(X0.buffer.length===1)Z0=X0.buffer.first();else Z0=X0.buffer.concat(X0.length);X0.buffer.clear()}else Z0=X0.buffer.consume(f,X0.decoder);return Z0}function vQ(f){let X0=f._readableState;if(y("endReadable",X0.endEmitted),!X0.endEmitted)X0.ended=!0,X.nextTick(x0,X0,f)}function x0(f,X0){if(y("endReadableNT",f.endEmitted,f.length),!f.errored&&!f.closeEmitted&&!f.endEmitted&&f.length===0){if(f.endEmitted=!0,X0.emit("end"),X0.writable&&X0.allowHalfOpen===!1)X.nextTick(w0,X0);else if(f.autoDestroy){let Z0=X0._writableState;if(!Z0||Z0.autoDestroy&&(Z0.finished||Z0.writable===!1))X0.destroy()}}}function w0(f){if(f.writable&&!f.writableEnded&&!f.destroyed)f.end()}V0.from=function(f,X0){return V(V0,f,X0)};var NQ;function k0(){if(NQ===void 0)NQ={};return NQ}V0.fromWeb=function(f,X0){return k0().newStreamReadableFromReadableStream(f,X0)},V0.toWeb=function(f,X0){return k0().newReadableStreamFromStreamReadable(f,X0)},V0.wrap=function(f,X0){var Z0,K0;return new V0({objectMode:(Z0=(K0=f.readableObjectMode)!==null&&K0!==void 0?K0:f.objectMode)!==null&&Z0!==void 0?Z0:!0,...X0,destroy(c0,P0){r.destroyer(f,c0),P0(c0)}}).wrap(f)}}),G$=a0((Q,J)=>{var X=Y1(),{ArrayPrototypeSlice:$,Error:W,FunctionPrototypeSymbolHasInstance:H,ObjectDefineProperty:U,ObjectDefineProperties:C,ObjectSetPrototypeOf:A,StringPrototypeToLowerCase:M,Symbol:D,SymbolHasInstance:L}=VQ();J.exports=O,O.WritableState=Z;var{EventEmitter:P}=(HX(),u0(KX)),E=Z$().Stream,{Buffer:S}=(HQ(),u0(SQ)),B=S1(),{addAbortSignal:j}=qY(),{getHighWaterMark:N,getDefaultHighWaterMark:v}=zY(),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:n,ERR_STREAM_DESTROYED:r,ERR_STREAM_ALREADY_FINISHED:s,ERR_STREAM_NULL_VALUES:i,ERR_STREAM_WRITE_AFTER_END:u,ERR_UNKNOWN_ENCODING:Q0}=pQ().codes,{errorOrDestroy:Y}=B;A(O.prototype,E.prototype),A(O,E);function G(){}var F=D("kOnFinished");function Z(c,l,U0){if(typeof U0!=="boolean")U0=l instanceof EJ();if(this.objectMode=!!(c&&c.objectMode),U0)this.objectMode=this.objectMode||!!(c&&c.writableObjectMode);this.highWaterMark=c?N(this,c,"writableHighWaterMark",U0):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let $0=!!(c&&c.decodeStrings===!1);this.decodeStrings=!$0,this.defaultEncoding=c&&c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=R.bind(void 0,l),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,K(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!c||c.emitClose!==!1,this.autoDestroy=!c||c.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[F]=[]}function K(c){c.buffered=[],c.bufferedIndex=0,c.allBuffers=!0,c.allNoop=!0}Z.prototype.getBuffer=function(){return $(this.buffered,this.bufferedIndex)},U(Z.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function O(c){let l=this instanceof EJ();if(!l&&!H(O,this))return new O(c);if(this._writableState=new Z(c,this,l),c){if(typeof c.write==="function")this._write=c.write;if(typeof c.writev==="function")this._writev=c.writev;if(typeof c.destroy==="function")this._destroy=c.destroy;if(typeof c.final==="function")this._final=c.final;if(typeof c.construct==="function")this._construct=c.construct;if(c.signal)j(c.signal,this)}E.call(this,c),B.construct(this,()=>{let U0=this._writableState;if(!U0.writing)b(this,U0);_(this,U0)})}U(O,L,{__proto__:null,value:function(c){if(H(this,c))return!0;if(this!==O)return!1;return c&&c._writableState instanceof Z}}),O.prototype.pipe=function(){Y(this,new n)};function I(c,l,U0,$0){let m=c._writableState;if(typeof U0==="function")$0=U0,U0=m.defaultEncoding;else{if(!U0)U0=m.defaultEncoding;else if(U0!=="buffer"&&!S.isEncoding(U0))throw new Q0(U0);if(typeof $0!=="function")$0=G}if(l===null)throw new i;else if(!m.objectMode)if(typeof l==="string"){if(m.decodeStrings!==!1)l=S.from(l,U0),U0="buffer"}else if(l instanceof S)U0="buffer";else if(E._isUint8Array(l))l=E._uint8ArrayToBuffer(l),U0="buffer";else throw new x("chunk",["string","Buffer","Uint8Array"],l);let M0;if(m.ending)M0=new u;else if(m.destroyed)M0=new r("write");if(M0)return X.nextTick($0,M0),Y(c,M0,!0),M0;return m.pendingcb++,z(c,m,l,U0,$0)}O.prototype.write=function(c,l,U0){return I(this,c,l,U0)===!0},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){let c=this._writableState;if(c.corked){if(c.corked--,!c.writing)b(this,c)}},O.prototype.setDefaultEncoding=function(c){if(typeof c==="string")c=M(c);if(!S.isEncoding(c))throw new Q0(c);return this._writableState.defaultEncoding=c,this};function z(c,l,U0,$0,m){let M0=l.objectMode?1:U0.length;l.length+=M0;let o=l.length<l.highWaterMark;if(!o)l.needDrain=!0;if(l.writing||l.corked||l.errored||!l.constructed){if(l.buffered.push({chunk:U0,encoding:$0,callback:m}),l.allBuffers&&$0!=="buffer")l.allBuffers=!1;if(l.allNoop&&m!==G)l.allNoop=!1}else l.writelen=M0,l.writecb=m,l.writing=!0,l.sync=!0,c._write(U0,$0,l.onwrite),l.sync=!1;return o&&!l.errored&&!l.destroyed}function V(c,l,U0,$0,m,M0,o){if(l.writelen=$0,l.writecb=o,l.writing=!0,l.sync=!0,l.destroyed)l.onwrite(new r("write"));else if(U0)c._writev(m,l.onwrite);else c._write(m,M0,l.onwrite);l.sync=!1}function q(c,l,U0,$0){--l.pendingcb,$0(U0),g(l),Y(c,U0)}function R(c,l){let U0=c._writableState,$0=U0.sync,m=U0.writecb;if(typeof m!=="function"){Y(c,new y);return}if(U0.writing=!1,U0.writecb=null,U0.length-=U0.writelen,U0.writelen=0,l){if(l.stack,!U0.errored)U0.errored=l;if(c._readableState&&!c._readableState.errored)c._readableState.errored=l;if($0)X.nextTick(q,c,U0,l,m);else q(c,U0,l,m)}else{if(U0.buffered.length>U0.bufferedIndex)b(c,U0);if($0)if(U0.afterWriteTickInfo!==null&&U0.afterWriteTickInfo.cb===m)U0.afterWriteTickInfo.count++;else U0.afterWriteTickInfo={count:1,cb:m,stream:c,state:U0},X.nextTick(T,U0.afterWriteTickInfo);else k(c,U0,1,m)}}function T({stream:c,state:l,count:U0,cb:$0}){return l.afterWriteTickInfo=null,k(c,l,U0,$0)}function k(c,l,U0,$0){if(!l.ending&&!c.destroyed&&l.length===0&&l.needDrain)l.needDrain=!1,c.emit("drain");while(U0-- >0)l.pendingcb--,$0();if(l.destroyed)g(l);_(c,l)}function g(c){if(c.writing)return;for(let m=c.bufferedIndex;m<c.buffered.length;++m){var l;let{chunk:M0,callback:o}=c.buffered[m],Y0=c.objectMode?1:M0.length;c.length-=Y0,o((l=c.errored)!==null&&l!==void 0?l:new r("write"))}let U0=c[F].splice(0);for(let m=0;m<U0.length;m++){var $0;U0[m](($0=c.errored)!==null&&$0!==void 0?$0:new r("end"))}K(c)}function b(c,l){if(l.corked||l.bufferProcessing||l.destroyed||!l.constructed)return;let{buffered:U0,bufferedIndex:$0,objectMode:m}=l,M0=U0.length-$0;if(!M0)return;let o=$0;if(l.bufferProcessing=!0,M0>1&&c._writev){l.pendingcb-=M0-1;let Y0=l.allNoop?G:(V0)=>{for(let W0=o;W0<U0.length;++W0)U0[W0].callback(V0)},T0=l.allNoop&&o===0?U0:$(U0,o);T0.allBuffers=l.allBuffers,V(c,l,!0,l.length,T0,"",Y0),K(l)}else{do{let{chunk:Y0,encoding:T0,callback:V0}=U0[o];U0[o++]=null;let W0=m?1:Y0.length;V(c,l,!1,W0,Y0,T0,V0)}while(o<U0.length&&!l.writing);if(o===U0.length)K(l);else if(o>256)U0.splice(0,o),l.bufferedIndex=0;else l.bufferedIndex=o}l.bufferProcessing=!1}O.prototype._write=function(c,l,U0){if(this._writev)this._writev([{chunk:c,encoding:l}],U0);else throw new w("_write()")},O.prototype._writev=null,O.prototype.end=function(c,l,U0){let $0=this._writableState;if(typeof c==="function")U0=c,c=null,l=null;else if(typeof l==="function")U0=l,l=null;let m;if(c!==null&&c!==void 0){let M0=I(this,c,l);if(M0 instanceof W)m=M0}if($0.corked)$0.corked=1,this.uncork();if(m);else if(!$0.errored&&!$0.ending)$0.ending=!0,_(this,$0,!0),$0.ended=!0;else if($0.finished)m=new s("end");else if($0.destroyed)m=new r("end");if(typeof U0==="function")if(m||$0.finished)X.nextTick(U0,m);else $0[F].push(U0);return this};function t(c){return c.ending&&!c.destroyed&&c.constructed&&c.length===0&&!c.errored&&c.buffered.length===0&&!c.finished&&!c.writing&&!c.errorEmitted&&!c.closeEmitted}function G0(c,l){let U0=!1;function $0(m){if(U0){Y(c,m!==null&&m!==void 0?m:y());return}if(U0=!0,l.pendingcb--,m){let M0=l[F].splice(0);for(let o=0;o<M0.length;o++)M0[o](m);Y(c,m,l.sync)}else if(t(l))l.prefinished=!0,c.emit("prefinish"),l.pendingcb++,X.nextTick(d,c,l)}l.sync=!0,l.pendingcb++;try{c._final($0)}catch(m){$0(m)}l.sync=!1}function p(c,l){if(!l.prefinished&&!l.finalCalled)if(typeof c._final==="function"&&!l.destroyed)l.finalCalled=!0,G0(c,l);else l.prefinished=!0,c.emit("prefinish")}function _(c,l,U0){if(t(l)){if(p(c,l),l.pendingcb===0){if(U0)l.pendingcb++,X.nextTick(($0,m)=>{if(t(m))d($0,m);else m.pendingcb--},c,l);else if(t(l))l.pendingcb++,d(c,l)}}}function d(c,l){l.pendingcb--,l.finished=!0;let U0=l[F].splice(0);for(let $0=0;$0<U0.length;$0++)U0[$0]();if(c.emit("finish"),l.autoDestroy){let $0=c._readableState;if(!$0||$0.autoDestroy&&($0.endEmitted||$0.readable===!1))c.destroy()}}C(O.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(c){if(this._writableState)this._writableState.destroyed=c}},writable:{__proto__:null,get(){let c=this._writableState;return!!c&&c.writable!==!1&&!c.destroyed&&!c.errored&&!c.ending&&!c.ended},set(c){if(this._writableState)this._writableState.writable=!!c}},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 c=this._writableState;if(!c)return!1;return!c.destroyed&&!c.ending&&c.needDrain}},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 h=B.destroy;O.prototype.destroy=function(c,l){let U0=this._writableState;if(!U0.destroyed&&(U0.bufferedIndex<U0.buffered.length||U0[F].length))X.nextTick(g,U0);return h.call(this,c,l),this},O.prototype._undestroy=B.undestroy,O.prototype._destroy=function(c,l){l(c)},O.prototype[P.captureRejectionSymbol]=function(c){this.destroy(c)};var e;function q0(){if(e===void 0)e={};return e}O.fromWeb=function(c,l){return q0().newStreamWritableFromWritableStream(c,l)},O.toWeb=function(c){return q0().newWritableStreamFromStreamWritable(c)}}),VF=a0((Q,J)=>{var X=Y1(),$=(HQ(),u0(SQ)),{isReadable:W,isWritable:H,isIterable:U,isNodeStream:C,isReadableNodeStream:A,isWritableNodeStream:M,isDuplexNodeStream:D,isReadableStream:L,isWritableStream:P}=SJ(),E=gJ(),{AbortError:S,codes:{ERR_INVALID_ARG_TYPE:B,ERR_INVALID_RETURN_VALUE:j}}=pQ(),{destroyer:N}=S1(),v=EJ(),x=OY(),w=G$(),{createDeferredPromise:y}=oQ(),n=ZG(),r=globalThis.Blob||$.Blob,s=typeof r<"u"?function(F){return F instanceof r}:function(F){return!1},i=globalThis.AbortController||FX().AbortController,{FunctionPrototypeCall:u}=VQ();class Q0 extends v{constructor(F){super(F);if((F===null||F===void 0?void 0:F.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((F===null||F===void 0?void 0:F.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}J.exports=function F(Z,K){if(D(Z))return Z;if(A(Z))return G({readable:Z});if(M(Z))return G({writable:Z});if(C(Z))return G({writable:!1,readable:!1});if(L(Z))return G({readable:x.fromWeb(Z)});if(P(Z))return G({writable:w.fromWeb(Z)});if(typeof Z==="function"){let{value:I,write:z,final:V,destroy:q}=Y(Z);if(U(I))return n(Q0,I,{objectMode:!0,write:z,final:V,destroy:q});let R=I===null||I===void 0?void 0:I.then;if(typeof R==="function"){let T,k=u(R,I,(g)=>{if(g!=null)throw new j("nully","body",g)},(g)=>{N(T,g)});return T=new Q0({objectMode:!0,readable:!1,write:z,final(g){V(async()=>{try{await k,X.nextTick(g,null)}catch(b){X.nextTick(g,b)}})},destroy:q})}throw new j("Iterable, AsyncIterable or AsyncFunction",K,I)}if(s(Z))return F(Z.arrayBuffer());if(U(Z))return n(Q0,Z,{objectMode:!0,writable:!1});if(L(Z===null||Z===void 0?void 0:Z.readable)&&P(Z===null||Z===void 0?void 0:Z.writable))return Q0.fromWeb(Z);if(typeof(Z===null||Z===void 0?void 0:Z.writable)==="object"||typeof(Z===null||Z===void 0?void 0:Z.readable)==="object"){let I=Z!==null&&Z!==void 0&&Z.readable?A(Z===null||Z===void 0?void 0:Z.readable)?Z===null||Z===void 0?void 0:Z.readable:F(Z.readable):void 0,z=Z!==null&&Z!==void 0&&Z.writable?M(Z===null||Z===void 0?void 0:Z.writable)?Z===null||Z===void 0?void 0:Z.writable:F(Z.writable):void 0;return G({readable:I,writable:z})}let O=Z===null||Z===void 0?void 0:Z.then;if(typeof O==="function"){let I;return u(O,Z,(z)=>{if(z!=null)I.push(z);I.push(null)},(z)=>{N(I,z)}),I=new Q0({objectMode:!0,writable:!1,read(){}})}throw new B(K,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],Z)};function Y(F){let{promise:Z,resolve:K}=y(),O=new i,I=O.signal;return{value:F(async function*(){while(!0){let z=Z;Z=null;let{chunk:V,done:q,cb:R}=await z;if(X.nextTick(R),q)return;if(I.aborted)throw new S(void 0,{cause:I.reason});({promise:Z,resolve:K}=y()),yield V}}(),{signal:I}),write(z,V,q){let R=K;K=null,R({chunk:z,done:!1,cb:q})},final(z){let V=K;K=null,V({done:!0,cb:z})},destroy(z,V){O.abort(),V(z)}}}function G(F){let Z=F.readable&&typeof F.readable.read!=="function"?x.wrap(F.readable):F.readable,K=F.writable,O=!!W(Z),I=!!H(K),z,V,q,R,T;function k(g){let b=R;if(R=null,b)b(g);else if(g)T.destroy(g)}if(T=new Q0({readableObjectMode:!!(Z!==null&&Z!==void 0&&Z.readableObjectMode),writableObjectMode:!!(K!==null&&K!==void 0&&K.writableObjectMode),readable:O,writable:I}),I)E(K,(g)=>{if(I=!1,g)N(Z,g);k(g)}),T._write=function(g,b,t){if(K.write(g,b))t();else z=t},T._final=function(g){K.end(),V=g},K.on("drain",function(){if(z){let g=z;z=null,g()}}),K.on("finish",function(){if(V){let g=V;V=null,g()}});if(O)E(Z,(g)=>{if(O=!1,g)N(Z,g);k(g)}),Z.on("readable",function(){if(q){let g=q;q=null,g()}}),Z.on("end",function(){T.push(null)}),T._read=function(){while(!0){let g=Z.read();if(g===null){q=T._read;return}if(!T.push(g))return}};return T._destroy=function(g,b){if(!g&&R!==null)g=new S;if(q=null,z=null,V=null,R===null)b(g);else R=b,N(K,g),N(Z,g)},T}}),EJ=a0((Q,J)=>{var{ObjectDefineProperties:X,ObjectGetOwnPropertyDescriptor:$,ObjectKeys:W,ObjectSetPrototypeOf:H}=VQ();J.exports=A;var U=OY(),C=G$();H(A.prototype,U.prototype),H(A,U);{let P=W(C.prototype);for(let E=0;E<P.length;E++){let S=P[E];if(!A.prototype[S])A.prototype[S]=C.prototype[S]}}function A(P){if(!(this instanceof A))return new A(P);if(U.call(this,P),C.call(this,P),P){if(this.allowHalfOpen=P.allowHalfOpen!==!1,P.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(P.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}X(A.prototype,{writable:{__proto__:null,...$(C.prototype,"writable")},writableHighWaterMark:{__proto__:null,...$(C.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...$(C.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...$(C.prototype,"writableBuffer")},writableLength:{__proto__:null,...$(C.prototype,"writableLength")},writableFinished:{__proto__:null,...$(C.prototype,"writableFinished")},writableCorked:{__proto__:null,...$(C.prototype,"writableCorked")},writableEnded:{__proto__:null,...$(C.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...$(C.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(P){if(this._readableState&&this._writableState)this._readableState.destroyed=P,this._writableState.destroyed=P}}});var M;function D(){if(M===void 0)M={};return M}A.fromWeb=function(P,E){return D().newStreamDuplexFromReadableWritablePair(P,E)},A.toWeb=function(P){return D().newReadableWritablePairFromDuplex(P)};var L;A.from=function(P){if(!L)L=VF();return L(P,"body")}}),GG=a0((Q,J)=>{var{ObjectSetPrototypeOf:X,Symbol:$}=VQ();J.exports=A;var{ERR_METHOD_NOT_IMPLEMENTED:W}=pQ().codes,H=EJ(),{getHighWaterMark:U}=zY();X(A.prototype,H.prototype),X(A,H);var C=$("kCallback");function A(L){if(!(this instanceof A))return new A(L);let P=L?U(this,L,"readableHighWaterMark",!0):null;if(P===0)L={...L,highWaterMark:null,readableHighWaterMark:P,writableHighWaterMark:L.writableHighWaterMark||0};if(H.call(this,L),this._readableState.sync=!1,this[C]=null,L){if(typeof L.transform==="function")this._transform=L.transform;if(typeof L.flush==="function")this._flush=L.flush}this.on("prefinish",D)}function M(L){if(typeof this._flush==="function"&&!this.destroyed)this._flush((P,E)=>{if(P){if(L)L(P);else this.destroy(P);return}if(E!=null)this.push(E);if(this.push(null),L)L()});else if(this.push(null),L)L()}function D(){if(this._final!==M)M.call(this)}A.prototype._final=M,A.prototype._transform=function(L,P,E){throw new W("_transform()")},A.prototype._write=function(L,P,E){let S=this._readableState,B=this._writableState,j=S.length;this._transform(L,P,(N,v)=>{if(N){E(N);return}if(v!=null)this.push(v);if(B.ended||j===S.length||S.length<S.highWaterMark)E();else this[C]=E})},A.prototype._read=function(){if(this[C]){let L=this[C];this[C]=null,L()}}}),WG=a0((Q,J)=>{var{ObjectSetPrototypeOf:X}=VQ();J.exports=W;var $=GG();X(W.prototype,$.prototype),X(W,$);function W(H){if(!(this instanceof W))return new W(H);$.call(this,H)}W.prototype._transform=function(H,U,C){C(null,H)}}),W$=a0((Q,J)=>{var X=Y1(),{ArrayIsArray:$,Promise:W,SymbolAsyncIterator:H,SymbolDispose:U}=VQ(),C=gJ(),{once:A}=oQ(),M=S1(),D=EJ(),{aggregateTwoErrors:L,codes:{ERR_INVALID_ARG_TYPE:P,ERR_INVALID_RETURN_VALUE:E,ERR_MISSING_ARGS:S,ERR_STREAM_DESTROYED:B,ERR_STREAM_PREMATURE_CLOSE:j},AbortError:N}=pQ(),{validateFunction:v,validateAbortSignal:x}=qX(),{isIterable:w,isReadable:y,isReadableNodeStream:n,isNodeStream:r,isTransformStream:s,isWebStream:i,isReadableStream:u,isReadableFinished:Q0}=SJ(),Y=globalThis.AbortController||FX().AbortController,G,F,Z;function K(g,b,t){let G0=!1;g.on("close",()=>{G0=!0});let p=C(g,{readable:b,writable:t},(_)=>{G0=!_});return{destroy:(_)=>{if(G0)return;G0=!0,M.destroyer(g,_||new B("pipe"))},cleanup:p}}function O(g){return v(g[g.length-1],"streams[stream.length - 1]"),g.pop()}function I(g){if(w(g))return g;else if(n(g))return z(g);throw new P("val",["Readable","Iterable","AsyncIterable"],g)}async function*z(g){if(!F)F=OY();yield*F.prototype[H].call(g)}async function V(g,b,t,{end:G0}){let p,_=null,d=(q0)=>{if(q0)p=q0;if(_){let c=_;_=null,c()}},h=()=>new W((q0,c)=>{if(p)c(p);else _=()=>{if(p)c(p);else q0()}});b.on("drain",d);let e=C(b,{readable:!1},d);try{if(b.writableNeedDrain)await h();for await(let q0 of g)if(!b.write(q0))await h();if(G0)b.end(),await h();t()}catch(q0){t(p!==q0?L(p,q0):q0)}finally{e(),b.off("drain",d)}}async function q(g,b,t,{end:G0}){if(s(b))b=b.writable;let p=b.getWriter();try{for await(let _ of g)await p.ready,p.write(_).catch(()=>{});if(await p.ready,G0)await p.close();t()}catch(_){try{await p.abort(_),t(_)}catch(d){t(d)}}}function R(...g){return T(g,A(O(g)))}function T(g,b,t){if(g.length===1&&$(g[0]))g=g[0];if(g.length<2)throw new S("streams");let G0=new Y,p=G0.signal,_=t===null||t===void 0?void 0:t.signal,d=[];x(_,"options.signal");function h(){m(new N)}Z=Z||oQ().addAbortListener;let e;if(_)e=Z(_,h);let q0,c,l=[],U0=0;function $0(V0){m(V0,--U0===0)}function m(V0,W0){var b0;if(V0&&(!q0||q0.code==="ERR_STREAM_PREMATURE_CLOSE"))q0=V0;if(!q0&&!W0)return;while(l.length)l.shift()(q0);if((b0=e)===null||b0===void 0||b0[U](),G0.abort(),W0){if(!q0)d.forEach((a)=>a());X.nextTick(b,q0,c)}}let M0;for(let V0=0;V0<g.length;V0++){let W0=g[V0],b0=V0<g.length-1,a=V0>0,J0=b0||(t===null||t===void 0?void 0:t.end)!==!1,y0=V0===g.length-1;if(r(W0)){let H0=function(F0){if(F0&&F0.name!=="AbortError"&&F0.code!=="ERR_STREAM_PREMATURE_CLOSE")$0(F0)};var o=H0;if(J0){let{destroy:F0,cleanup:h0}=K(W0,b0,a);if(l.push(F0),y(W0)&&y0)d.push(h0)}if(W0.on("error",H0),y(W0)&&y0)d.push(()=>{W0.removeListener("error",H0)})}if(V0===0)if(typeof W0==="function"){if(M0=W0({signal:p}),!w(M0))throw new E("Iterable, AsyncIterable or Stream","source",M0)}else if(w(W0)||n(W0)||s(W0))M0=W0;else M0=D.from(W0);else if(typeof W0==="function"){if(s(M0)){var Y0;M0=I((Y0=M0)===null||Y0===void 0?void 0:Y0.readable)}else M0=I(M0);if(M0=W0(M0,{signal:p}),b0){if(!w(M0,!0))throw new E("AsyncIterable",`transform[${V0-1}]`,M0)}else{var T0;if(!G)G=WG();let H0=new G({objectMode:!0}),F0=(T0=M0)===null||T0===void 0?void 0:T0.then;if(typeof F0==="function")U0++,F0.call(M0,(O0)=>{if(c=O0,O0!=null)H0.write(O0);if(J0)H0.end();X.nextTick($0)},(O0)=>{H0.destroy(O0),X.nextTick($0,O0)});else if(w(M0,!0))U0++,V(M0,H0,$0,{end:J0});else if(u(M0)||s(M0)){let O0=M0.readable||M0;U0++,V(O0,H0,$0,{end:J0})}else throw new E("AsyncIterable or Promise","destination",M0);M0=H0;let{destroy:h0,cleanup:z0}=K(M0,!1,!0);if(l.push(h0),y0)d.push(z0)}}else if(r(W0)){if(n(M0)){U0+=2;let H0=k(M0,W0,$0,{end:J0});if(y(W0)&&y0)d.push(H0)}else if(s(M0)||u(M0)){let H0=M0.readable||M0;U0++,V(H0,W0,$0,{end:J0})}else if(w(M0))U0++,V(M0,W0,$0,{end:J0});else throw new P("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M0);M0=W0}else if(i(W0)){if(n(M0))U0++,q(I(M0),W0,$0,{end:J0});else if(u(M0)||w(M0))U0++,q(M0,W0,$0,{end:J0});else if(s(M0))U0++,q(M0.readable,W0,$0,{end:J0});else throw new P("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M0);M0=W0}else M0=D.from(W0)}if(p!==null&&p!==void 0&&p.aborted||_!==null&&_!==void 0&&_.aborted)X.nextTick(h);return M0}function k(g,b,t,{end:G0}){let p=!1;if(b.on("close",()=>{if(!p)t(new j)}),g.pipe(b,{end:!1}),G0){let d=function(){p=!0,b.end()};var _=d;if(Q0(g))X.nextTick(d);else g.once("end",d)}else t();return C(g,{readable:!0,writable:!1},(d)=>{let h=g._readableState;if(d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted)g.once("end",t).once("error",t);else t(d)}),C(b,{readable:!1,writable:!0},t)}J.exports={pipelineImpl:T,pipeline:R}}),KG=a0((Q,J)=>{var{pipeline:X}=W$(),$=EJ(),{destroyer:W}=S1(),{isNodeStream:H,isReadable:U,isWritable:C,isWebStream:A,isTransformStream:M,isWritableStream:D,isReadableStream:L}=SJ(),{AbortError:P,codes:{ERR_INVALID_ARG_VALUE:E,ERR_MISSING_ARGS:S}}=pQ(),B=gJ();J.exports=function(...j){if(j.length===0)throw new S("streams");if(j.length===1)return $.from(j[0]);let N=[...j];if(typeof j[0]==="function")j[0]=$.from(j[0]);if(typeof j[j.length-1]==="function"){let Y=j.length-1;j[Y]=$.from(j[Y])}for(let Y=0;Y<j.length;++Y){if(!H(j[Y])&&!A(j[Y]))continue;if(Y<j.length-1&&!(U(j[Y])||L(j[Y])||M(j[Y])))throw new E(`streams[${Y}]`,N[Y],"must be readable");if(Y>0&&!(C(j[Y])||D(j[Y])||M(j[Y])))throw new E(`streams[${Y}]`,N[Y],"must be writable")}let v,x,w,y,n;function r(Y){let G=y;if(y=null,G)G(Y);else if(Y)n.destroy(Y);else if(!Q0&&!u)n.destroy()}let s=j[0],i=X(j,r),u=!!(C(s)||D(s)||M(s)),Q0=!!(U(i)||L(i)||M(i));if(n=new $({writableObjectMode:!!(s!==null&&s!==void 0&&s.writableObjectMode),readableObjectMode:!!(i!==null&&i!==void 0&&i.readableObjectMode),writable:u,readable:Q0}),u){if(H(s))n._write=function(G,F,Z){if(s.write(G,F))Z();else v=Z},n._final=function(G){s.end(),x=G},s.on("drain",function(){if(v){let G=v;v=null,G()}});else if(A(s)){let G=(M(s)?s.writable:s).getWriter();n._write=async function(F,Z,K){try{await G.ready,G.write(F).catch(()=>{}),K()}catch(O){K(O)}},n._final=async function(F){try{await G.ready,G.close().catch(()=>{}),x=F}catch(Z){F(Z)}}}let Y=M(i)?i.readable:i;B(Y,()=>{if(x){let G=x;x=null,G()}})}if(Q0){if(H(i))i.on("readable",function(){if(w){let Y=w;w=null,Y()}}),i.on("end",function(){n.push(null)}),n._read=function(){while(!0){let Y=i.read();if(Y===null){w=n._read;return}if(!n.push(Y))return}};else if(A(i)){let Y=(M(i)?i.readable:i).getReader();n._read=async function(){while(!0)try{let{value:G,done:F}=await Y.read();if(!n.push(G))return;if(F){n.push(null);return}}catch{return}}}}return n._destroy=function(Y,G){if(!Y&&y!==null)Y=new P;if(w=null,v=null,x=null,y===null)G(Y);else if(y=G,H(i))W(i,Y)},n}}),$F=a0((Q,J)=>{var X=globalThis.AbortController||FX().AbortController,{codes:{ERR_INVALID_ARG_VALUE:$,ERR_INVALID_ARG_TYPE:W,ERR_MISSING_ARGS:H,ERR_OUT_OF_RANGE:U},AbortError:C}=pQ(),{validateAbortSignal:A,validateInteger:M,validateObject:D}=qX(),L=VQ().Symbol("kWeak"),P=VQ().Symbol("kResistStopPropagation"),{finished:E}=gJ(),S=KG(),{addAbortSignalNoValidate:B}=qY(),{isWritable:j,isNodeStream:N}=SJ(),{deprecate:v}=oQ(),{ArrayPrototypePush:x,Boolean:w,MathFloor:y,Number:n,NumberIsNaN:r,Promise:s,PromiseReject:i,PromiseResolve:u,PromisePrototypeThen:Q0,Symbol:Y}=VQ(),G=Y("kEmpty"),F=Y("kEof");function Z(_,d){if(d!=null)D(d,"options");if((d===null||d===void 0?void 0:d.signal)!=null)A(d.signal,"options.signal");if(N(_)&&!j(_))throw new $("stream",_,"must be writable");let h=S(this,_);if(d!==null&&d!==void 0&&d.signal)B(d.signal,h);return h}function K(_,d){if(typeof _!=="function")throw new W("fn",["Function","AsyncFunction"],_);if(d!=null)D(d,"options");if((d===null||d===void 0?void 0:d.signal)!=null)A(d.signal,"options.signal");let h=1;if((d===null||d===void 0?void 0:d.concurrency)!=null)h=y(d.concurrency);let e=h-1;if((d===null||d===void 0?void 0:d.highWaterMark)!=null)e=y(d.highWaterMark);return M(h,"options.concurrency",1),M(e,"options.highWaterMark",0),e+=h,async function*(){let q0=oQ().AbortSignalAny([d===null||d===void 0?void 0:d.signal].filter(w)),c=this,l=[],U0={signal:q0},$0,m,M0=!1,o=0;function Y0(){M0=!0,T0()}function T0(){o-=1,V0()}function V0(){if(m&&!M0&&o<h&&l.length<e)m(),m=null}async function W0(){try{for await(let b0 of c){if(M0)return;if(q0.aborted)throw new C;try{if(b0=_(b0,U0),b0===G)continue;b0=u(b0)}catch(a){b0=i(a)}if(o+=1,Q0(b0,T0,Y0),l.push(b0),$0)$0(),$0=null;if(!M0&&(l.length>=e||o>=h))await new s((a)=>{m=a})}l.push(F)}catch(b0){let a=i(b0);Q0(a,T0,Y0),l.push(a)}finally{if(M0=!0,$0)$0(),$0=null}}W0();try{while(!0){while(l.length>0){let b0=await l[0];if(b0===F)return;if(q0.aborted)throw new C;if(b0!==G)yield b0;l.shift(),V0()}await new s((b0)=>{$0=b0})}}finally{if(M0=!0,m)m(),m=null}}.call(this)}function O(_=void 0){if(_!=null)D(_,"options");if((_===null||_===void 0?void 0:_.signal)!=null)A(_.signal,"options.signal");return async function*(){let d=0;for await(let e of this){var h;if(_!==null&&_!==void 0&&(h=_.signal)!==null&&h!==void 0&&h.aborted)throw new C({cause:_.signal.reason});yield[d++,e]}}.call(this)}async function I(_,d=void 0){for await(let h of R.call(this,_,d))return!0;return!1}async function z(_,d=void 0){if(typeof _!=="function")throw new W("fn",["Function","AsyncFunction"],_);return!await I.call(this,async(...h)=>{return!await _(...h)},d)}async function V(_,d){for await(let h of R.call(this,_,d))return h;return}async function q(_,d){if(typeof _!=="function")throw new W("fn",["Function","AsyncFunction"],_);async function h(e,q0){return await _(e,q0),G}for await(let e of K.call(this,h,d));}function R(_,d){if(typeof _!=="function")throw new W("fn",["Function","AsyncFunction"],_);async function h(e,q0){if(await _(e,q0))return e;return G}return K.call(this,h,d)}class T extends H{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function k(_,d,h){var e;if(typeof _!=="function")throw new W("reducer",["Function","AsyncFunction"],_);if(h!=null)D(h,"options");if((h===null||h===void 0?void 0:h.signal)!=null)A(h.signal,"options.signal");let q0=arguments.length>1;if(h!==null&&h!==void 0&&(e=h.signal)!==null&&e!==void 0&&e.aborted){let m=new C(void 0,{cause:h.signal.reason});throw this.once("error",()=>{}),await E(this.destroy(m)),m}let c=new X,l=c.signal;if(h!==null&&h!==void 0&&h.signal){let m={once:!0,[L]:this,[P]:!0};h.signal.addEventListener("abort",()=>c.abort(),m)}let U0=!1;try{for await(let m of this){var $0;if(U0=!0,h!==null&&h!==void 0&&($0=h.signal)!==null&&$0!==void 0&&$0.aborted)throw new C;if(!q0)d=m,q0=!0;else d=await _(d,m,{signal:l})}if(!U0&&!q0)throw new T}finally{c.abort()}return d}async function g(_){if(_!=null)D(_,"options");if((_===null||_===void 0?void 0:_.signal)!=null)A(_.signal,"options.signal");let d=[];for await(let e of this){var h;if(_!==null&&_!==void 0&&(h=_.signal)!==null&&h!==void 0&&h.aborted)throw new C(void 0,{cause:_.signal.reason});x(d,e)}return d}function b(_,d){let h=K.call(this,_,d);return async function*(){for await(let e of h)yield*e}.call(this)}function t(_){if(_=n(_),r(_))return 0;if(_<0)throw new U("number",">= 0",_);return _}function G0(_,d=void 0){if(d!=null)D(d,"options");if((d===null||d===void 0?void 0:d.signal)!=null)A(d.signal,"options.signal");return _=t(_),async function*(){var h;if(d!==null&&d!==void 0&&(h=d.signal)!==null&&h!==void 0&&h.aborted)throw new C;for await(let q0 of this){var e;if(d!==null&&d!==void 0&&(e=d.signal)!==null&&e!==void 0&&e.aborted)throw new C;if(_--<=0)yield q0}}.call(this)}function p(_,d=void 0){if(d!=null)D(d,"options");if((d===null||d===void 0?void 0:d.signal)!=null)A(d.signal,"options.signal");return _=t(_),async function*(){var h;if(d!==null&&d!==void 0&&(h=d.signal)!==null&&h!==void 0&&h.aborted)throw new C;for await(let q0 of this){var e;if(d!==null&&d!==void 0&&(e=d.signal)!==null&&e!==void 0&&e.aborted)throw new C;if(_-- >0)yield q0;if(_<=0)return}}.call(this)}J.exports.streamReturningOperators={asIndexedPairs:v(O,"readable.asIndexedPairs will be removed in a future version."),drop:G0,filter:R,flatMap:b,map:K,take:p,compose:Z},J.exports.promiseReturningOperators={every:z,forEach:q,reduce:k,toArray:g,some:I,find:V}}),HG=a0((Q,J)=>{var{ArrayPrototypePop:X,Promise:$}=VQ(),{isIterable:W,isNodeStream:H,isWebStream:U}=SJ(),{pipelineImpl:C}=W$(),{finished:A}=gJ();FG();function M(...D){return new $((L,P)=>{let E,S,B=D[D.length-1];if(B&&typeof B==="object"&&!H(B)&&!W(B)&&!U(B)){let j=X(D);E=j.signal,S=j.end}C(D,(j,N)=>{if(j)P(j);else L(N)},{signal:E,end:S})})}J.exports={finished:A,pipeline:M}}),FG=a0((Q,J)=>{var{Buffer:X}=(HQ(),u0(SQ)),{ObjectDefineProperty:$,ObjectKeys:W,ReflectApply:H}=VQ(),{promisify:{custom:U}}=oQ(),{streamReturningOperators:C,promiseReturningOperators:A}=$F(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:M}}=pQ(),D=KG(),{setDefaultHighWaterMark:L,getDefaultHighWaterMark:P}=zY(),{pipeline:E}=W$(),{destroyer:S}=S1(),B=gJ(),j=HG(),N=SJ(),v=J.exports=Z$().Stream;v.isDestroyed=N.isDestroyed,v.isDisturbed=N.isDisturbed,v.isErrored=N.isErrored,v.isReadable=N.isReadable,v.isWritable=N.isWritable,v.Readable=OY();for(let w of W(C)){let y=function(...r){if(new.target)throw M();return v.Readable.from(H(n,this,r))},n=C[w];$(y,"name",{__proto__:null,value:n.name}),$(y,"length",{__proto__:null,value:n.length}),$(v.Readable.prototype,w,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}for(let w of W(A)){let y=function(...r){if(new.target)throw M();return H(n,this,r)},n=A[w];$(y,"name",{__proto__:null,value:n.name}),$(y,"length",{__proto__:null,value:n.length}),$(v.Readable.prototype,w,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}v.Writable=G$(),v.Duplex=EJ(),v.Transform=GG(),v.PassThrough=WG(),v.pipeline=E;var{addAbortSignal:x}=qY();v.addAbortSignal=x,v.finished=B,v.destroy=S,v.compose=D,v.setDefaultHighWaterMark=L,v.getDefaultHighWaterMark=P,$(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return j}}),$(E,U,{__proto__:null,enumerable:!0,get(){return j.pipeline}}),$(B,U,{__proto__:null,enumerable:!0,get(){return j.finished}}),v.Stream=v,v._isUint8Array=function(w){return w instanceof Uint8Array},v._uint8ArrayToBuffer=function(w){return X.from(w.buffer,w.byteOffset,w.byteLength)}}),UF=a0((Q,J)=>{var X=zX();{let $=FG(),W=HG(),H=$.Readable.destroy;J.exports=$.Readable,J.exports._uint8ArrayToBuffer=$._uint8ArrayToBuffer,J.exports._isUint8Array=$._isUint8Array,J.exports.isDisturbed=$.isDisturbed,J.exports.isErrored=$.isErrored,J.exports.isReadable=$.isReadable,J.exports.Readable=$.Readable,J.exports.Writable=$.Writable,J.exports.Duplex=$.Duplex,J.exports.Transform=$.Transform,J.exports.PassThrough=$.PassThrough,J.exports.addAbortSignal=$.addAbortSignal,J.exports.finished=$.finished,J.exports.destroy=$.destroy,J.exports.destroy=H,J.exports.pipeline=$.pipeline,J.exports.compose=$.compose,Object.defineProperty($,"promises",{configurable:!0,enumerable:!0,get(){return W}}),J.exports.Stream=$.Stream}J.exports.default=J.exports});qG.exports=UF()});var $Q={};D1($Q,{webcrypto:()=>x5,rng:()=>m2,randomUUID:()=>k5,randomFillSync:()=>R5,randomFill:()=>A5,randomBytes:()=>o2,publicEncrypt:()=>I5,publicDecrypt:()=>P5,pseudoRandomBytes:()=>l2,prng:()=>d2,privateEncrypt:()=>D5,privateDecrypt:()=>T5,pbkdf2Sync:()=>t2,pbkdf2:()=>i2,listCiphers:()=>G5,getRandomValues:()=>B5,getHashes:()=>a2,getDiffieHellman:()=>H5,getCurves:()=>N5,getCiphers:()=>Z5,default:()=>w5,createVerify:()=>C5,createSign:()=>z5,createHmac:()=>s2,createHash:()=>DY,createECDH:()=>M5,createDiffieHellmanGroup:()=>K5,createDiffieHellman:()=>F5,createDecipheriv:()=>U5,createDecipher:()=>V5,createCredentials:()=>E5,createCipheriv:()=>X5,createCipher:()=>Q5,constants:()=>S5,Verify:()=>L5,Sign:()=>O5,Hmac:()=>r2,Hash:()=>n2,DiffieHellmanGroup:()=>W5,DiffieHellman:()=>q5,Decipheriv:()=>$5,Decipher:()=>Y5,DEFAULT_ENCODING:()=>j5,Cipheriv:()=>J5,Cipher:()=>e2});function N5(){return v5}var ZF,GF,zG,WF,KF,HF=(Q,J,X)=>{X=Q!=null?ZF(GF(Q)):{};let $=J||!Q||!Q.__esModule?zG(X,"default",{value:Q,enumerable:!0}):X;for(let W of WF(Q))if(!KF.call($,W))zG($,W,{get:()=>Q[W],enumerable:!0});return $},C0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),CY,LY,CG,FF,H$,F$,hQ,qF,CX,LG,zF,OF,CF,LF,MG,MF,IF,DF,PF,TF,AF,RF,EF,SF,jF,LX,MY,IG,BF,DG,PG,kF,MX,q$,z$,vF,TG,O$,NF,AG,xF,RG,EG,wF,_F,gF,yF,fF,cF,pF,hF,bF,uF,dF,lF,mF,oF,C$,SG,nF,jG,rF,sF,aF,iF,jJ,yJ,BG,eQ,kG,IY,tF,rQ,eF,Q2,J2,vG,zJ,IX,NG,X2,xG,Y2,wG,V2,$2,U2,Z2,L$,G2,M$,W2,K2,H2,F2,q2,z2,O2,C2,L2,M2,I2,D2,P2,T2,OG,A2,OX,R2,_G,gG,E2,S2,yG,j2,B2,DX,k2,v2,N2,x2,w2,_2,fG,g2,cG,pG,hG,I$,bG,y2,uG,f2,c2,K$,p2,h2,b2,u2,o0,d2,l2,m2,o2,n2,DY,r2,s2,a2,i2,t2,e2,Q5,J5,X5,Y5,V5,$5,U5,Z5,G5,W5,K5,H5,F5,q5,z5,O5,C5,L5,M5,I5,D5,P5,T5,A5,R5,E5,S5,j5="buffer",B5=(Q)=>{return crypto.getRandomValues(Q)},k5=()=>{return crypto.randomUUID()},v5,x5,w5;var XQ=P1(()=>{ZF=Object.create,{getPrototypeOf:GF,defineProperty:zG,getOwnPropertyNames:WF}=Object,KF=Object.prototype.hasOwnProperty,CY=C0((Q,J)=>{J.exports=(XQ(),u0($Q)).randomBytes}),LY=C0((Q,J)=>{J.exports=(XQ(),u0($Q)).createHash}),CG=C0((Q,J)=>{J.exports=(XQ(),u0($Q)).createHmac}),FF=C0((Q,J)=>{J.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"}}}),H$=C0((Q,J)=>{var X=isFinite,$=Math.pow(2,30)-1;J.exports=function(W,H){if(typeof W!=="number")throw TypeError("Iterations not a number");if(W<0||!X(W))throw TypeError("Bad iterations");if(typeof H!=="number")throw TypeError("Key length not a number");if(H<0||H>$||H!==H)throw TypeError("Bad key length")}}),F$=C0((Q,J)=>{var X;if(globalThis.process&&globalThis.process.browser)X="utf-8";else if(globalThis.process&&globalThis.process.version)$=parseInt(process.version.split(".")[0].slice(1),10),X=$>=6?"utf-8":"binary";else X="utf-8";var $;J.exports=X}),hQ=C0((Q,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var X=(HQ(),u0(SQ)),$=X.Buffer;function W(U,C){for(var A in U)C[A]=U[A]}if($.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow)J.exports=X;else W(X,Q),Q.Buffer=H;function H(U,C,A){return $(U,C,A)}H.prototype=Object.create($.prototype),W($,H),H.from=function(U,C,A){if(typeof U==="number")throw TypeError("Argument must not be a number");return $(U,C,A)},H.alloc=function(U,C,A){if(typeof U!=="number")throw TypeError("Argument must be a number");var M=$(U);if(C!==void 0)if(typeof A==="string")M.fill(C,A);else M.fill(C);else M.fill(0);return M},H.allocUnsafe=function(U){if(typeof U!=="number")throw TypeError("Argument must be a number");return $(U)},H.allocUnsafeSlow=function(U){if(typeof U!=="number")throw TypeError("Argument must be a number");return X.SlowBuffer(U)}}),qF=C0((Q,J)=>{var X={}.toString;J.exports=Array.isArray||function($){return X.call($)=="[object Array]"}}),CX=C0((Q,J)=>{J.exports=TypeError}),LG=C0((Q,J)=>{J.exports=Object}),zF=C0((Q,J)=>{J.exports=Error}),OF=C0((Q,J)=>{J.exports=EvalError}),CF=C0((Q,J)=>{J.exports=RangeError}),LF=C0((Q,J)=>{J.exports=ReferenceError}),MG=C0((Q,J)=>{J.exports=SyntaxError}),MF=C0((Q,J)=>{J.exports=URIError}),IF=C0((Q,J)=>{J.exports=Math.abs}),DF=C0((Q,J)=>{J.exports=Math.floor}),PF=C0((Q,J)=>{J.exports=Math.max}),TF=C0((Q,J)=>{J.exports=Math.min}),AF=C0((Q,J)=>{J.exports=Math.pow}),RF=C0((Q,J)=>{J.exports=Math.round}),EF=C0((Q,J)=>{J.exports=Number.isNaN||function(X){return X!==X}}),SF=C0((Q,J)=>{var X=EF();J.exports=function($){if(X($)||$===0)return $;return $<0?-1:1}}),jF=C0((Q,J)=>{J.exports=Object.getOwnPropertyDescriptor}),LX=C0((Q,J)=>{var X=jF();if(X)try{X([],"length")}catch($){X=null}J.exports=X}),MY=C0((Q,J)=>{var X=Object.defineProperty||!1;if(X)try{X({},"a",{value:1})}catch($){X=!1}J.exports=X}),IG=C0((Q,J)=>{J.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var X={},$=Symbol("test"),W=Object($);if(typeof $==="string")return!1;if(Object.prototype.toString.call($)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(W)!=="[object Symbol]")return!1;var H=42;X[$]=H;for(var U in X)return!1;if(typeof Object.keys==="function"&&Object.keys(X).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(X).length!==0)return!1;var C=Object.getOwnPropertySymbols(X);if(C.length!==1||C[0]!==$)return!1;if(!Object.prototype.propertyIsEnumerable.call(X,$))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var A=Object.getOwnPropertyDescriptor(X,$);if(A.value!==H||A.enumerable!==!0)return!1}return!0}}),BF=C0((Q,J)=>{var X=typeof Symbol<"u"&&Symbol,$=IG();J.exports=function(){if(typeof X!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof X("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return $()}}),DG=C0((Q,J)=>{J.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),PG=C0((Q,J)=>{var X=LG();J.exports=X.getPrototypeOf||null}),kF=C0((Q,J)=>{var X="Function.prototype.bind called on incompatible ",$=Object.prototype.toString,W=Math.max,H="[object Function]",U=function(M,D){var L=[];for(var P=0;P<M.length;P+=1)L[P]=M[P];for(var E=0;E<D.length;E+=1)L[E+M.length]=D[E];return L},C=function(M,D){var L=[];for(var P=D||0,E=0;P<M.length;P+=1,E+=1)L[E]=M[P];return L},A=function(M,D){var L="";for(var P=0;P<M.length;P+=1)if(L+=M[P],P+1<M.length)L+=D;return L};J.exports=function(M){var D=this;if(typeof D!=="function"||$.apply(D)!==H)throw TypeError(X+D);var L=C(arguments,1),P,E=function(){if(this instanceof P){var v=D.apply(this,U(L,arguments));if(Object(v)===v)return v;return this}return D.apply(M,U(L,arguments))},S=W(0,D.length-L.length),B=[];for(var j=0;j<S;j++)B[j]="$"+j;if(P=Function("binder","return function ("+A(B,",")+"){ return binder.apply(this,arguments); }")(E),D.prototype){var N=function(){};N.prototype=D.prototype,P.prototype=new N,N.prototype=null}return P}}),MX=C0((Q,J)=>{var X=kF();J.exports=Function.prototype.bind||X}),q$=C0((Q,J)=>{J.exports=Function.prototype.call}),z$=C0((Q,J)=>{J.exports=Function.prototype.apply}),vF=C0((Q,J)=>{J.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),TG=C0((Q,J)=>{var X=MX(),$=z$(),W=q$(),H=vF();J.exports=H||X.call(W,$)}),O$=C0((Q,J)=>{var X=MX(),$=CX(),W=q$(),H=TG();J.exports=function(U){if(U.length<1||typeof U[0]!=="function")throw new $("a function is required");return H(X,W,U)}}),NF=C0((Q,J)=>{var X=O$(),$=LX(),W;try{W=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!=="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var H=!!W&&$&&$(Object.prototype,"__proto__"),U=Object,C=U.getPrototypeOf;J.exports=H&&typeof H.get==="function"?X([H.get]):typeof C==="function"?function(A){return C(A==null?A:U(A))}:!1}),AG=C0((Q,J)=>{var X=DG(),$=PG(),W=NF();J.exports=X?function(H){return X(H)}:$?function(H){if(!H||typeof H!=="object"&&typeof H!=="function")throw TypeError("getProto: not an object");return $(H)}:W?function(H){return W(H)}:null}),xF=C0((Q,J)=>{var X=Function.prototype.call,$=Object.prototype.hasOwnProperty,W=MX();J.exports=W.call(X,$)}),RG=C0((Q,J)=>{var X,$=LG(),W=zF(),H=OF(),U=CF(),C=LF(),A=MG(),M=CX(),D=MF(),L=IF(),P=DF(),E=PF(),S=TF(),B=AF(),j=RF(),N=SF(),v=Function,x=function(d){try{return v('"use strict"; return ('+d+").constructor;")()}catch(h){}},w=LX(),y=MY(),n=function(){throw new M},r=w?function(){try{return arguments.callee,n}catch(d){try{return w(arguments,"callee").get}catch(h){return n}}}():n,s=BF()(),i=AG(),u=PG(),Q0=DG(),Y=z$(),G=q$(),F={},Z=typeof Uint8Array>"u"||!i?X:i(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?X:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?X:ArrayBuffer,"%ArrayIteratorPrototype%":s&&i?i([][Symbol.iterator]()):X,"%AsyncFromSyncIteratorPrototype%":X,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?X:Atomics,"%BigInt%":typeof BigInt>"u"?X:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?X:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?X:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?X:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":W,"%eval%":eval,"%EvalError%":H,"%Float16Array%":typeof Float16Array>"u"?X:Float16Array,"%Float32Array%":typeof Float32Array>"u"?X:Float32Array,"%Float64Array%":typeof Float64Array>"u"?X:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?X:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?X:Int8Array,"%Int16Array%":typeof Int16Array>"u"?X:Int16Array,"%Int32Array%":typeof Int32Array>"u"?X:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s&&i?i(i([][Symbol.iterator]())):X,"%JSON%":typeof JSON==="object"?JSON:X,"%Map%":typeof Map>"u"?X:Map,"%MapIteratorPrototype%":typeof Map>"u"||!s||!i?X:i(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?X:Promise,"%Proxy%":typeof Proxy>"u"?X:Proxy,"%RangeError%":U,"%ReferenceError%":C,"%Reflect%":typeof Reflect>"u"?X:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?X:Set,"%SetIteratorPrototype%":typeof Set>"u"||!s||!i?X:i(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?X:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s&&i?i(""[Symbol.iterator]()):X,"%Symbol%":s?Symbol:X,"%SyntaxError%":A,"%ThrowTypeError%":r,"%TypedArray%":Z,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?X:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?X:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?X:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?X:Uint32Array,"%URIError%":D,"%WeakMap%":typeof WeakMap>"u"?X:WeakMap,"%WeakRef%":typeof WeakRef>"u"?X:WeakRef,"%WeakSet%":typeof WeakSet>"u"?X:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":Y,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":u,"%Math.abs%":L,"%Math.floor%":P,"%Math.max%":E,"%Math.min%":S,"%Math.pow%":B,"%Math.round%":j,"%Math.sign%":N,"%Reflect.getPrototypeOf%":Q0};if(i)try{null.error}catch(d){O=i(i(d)),K["%Error.prototype%"]=O}var O,I=function d(h){var e;if(h==="%AsyncFunction%")e=x("async function () {}");else if(h==="%GeneratorFunction%")e=x("function* () {}");else if(h==="%AsyncGeneratorFunction%")e=x("async function* () {}");else if(h==="%AsyncGenerator%"){var q0=d("%AsyncGeneratorFunction%");if(q0)e=q0.prototype}else if(h==="%AsyncIteratorPrototype%"){var c=d("%AsyncGenerator%");if(c&&i)e=i(c.prototype)}return K[h]=e,e},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=MX(),q=xF(),R=V.call(G,Array.prototype.concat),T=V.call(Y,Array.prototype.splice),k=V.call(G,String.prototype.replace),g=V.call(G,String.prototype.slice),b=V.call(G,RegExp.prototype.exec),t=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G0=/\\(\\)?/g,p=function(d){var h=g(d,0,1),e=g(d,-1);if(h==="%"&&e!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");else if(e==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var q0=[];return k(d,t,function(c,l,U0,$0){q0[q0.length]=U0?k($0,G0,"$1"):l||c}),q0},_=function(d,h){var e=d,q0;if(q(z,e))q0=z[e],e="%"+q0[0]+"%";if(q(K,e)){var c=K[e];if(c===F)c=I(e);if(typeof c>"u"&&!h)throw new M("intrinsic "+d+" exists, but is not available. Please file an issue!");return{alias:q0,name:e,value:c}}throw new A("intrinsic "+d+" does not exist!")};J.exports=function(d,h){if(typeof d!=="string"||d.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!=="boolean")throw new M('"allowMissing" argument must be a boolean');if(b(/^%?[^%]*%?$/,d)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=p(d),q0=e.length>0?e[0]:"",c=_("%"+q0+"%",h),l=c.name,U0=c.value,$0=!1,m=c.alias;if(m)q0=m[0],T(e,R([0,1],m));for(var M0=1,o=!0;M0<e.length;M0+=1){var Y0=e[M0],T0=g(Y0,0,1),V0=g(Y0,-1);if((T0==='"'||T0==="'"||T0==="`"||(V0==='"'||V0==="'"||V0==="`"))&&T0!==V0)throw new A("property names with quotes must have matching quotes");if(Y0==="constructor"||!o)$0=!0;if(q0+="."+Y0,l="%"+q0+"%",q(K,l))U0=K[l];else if(U0!=null){if(!(Y0 in U0)){if(!h)throw new M("base intrinsic for "+d+" exists, but the property is not available.");return}if(w&&M0+1>=e.length){var W0=w(U0,Y0);if(o=!!W0,o&&"get"in W0&&!("originalValue"in W0.get))U0=W0.get;else U0=U0[Y0]}else o=q(U0,Y0),U0=U0[Y0];if(o&&!$0)K[l]=U0}}return U0}}),EG=C0((Q,J)=>{var X=RG(),$=O$(),W=$([X("%String.prototype.indexOf%")]);J.exports=function(H,U){var C=X(H,!!U);if(typeof C==="function"&&W(H,".prototype.")>-1)return $([C]);return C}}),wF=C0((Q,J)=>{var X=Function.prototype.toString,$=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,W,H;if(typeof $==="function"&&typeof Object.defineProperty==="function")try{W=Object.defineProperty({},"length",{get:function(){throw H}}),H={},$(function(){throw 42},null,W)}catch(w){if(w!==H)$=null}else $=null;var U=/^\s*class\b/,C=function(w){try{var y=X.call(w);return U.test(y)}catch(n){return!1}},A=function(w){try{if(C(w))return!1;return X.call(w),!0}catch(y){return!1}},M=Object.prototype.toString,D="[object Object]",L="[object Function]",P="[object GeneratorFunction]",E="[object HTMLAllCollection]",S="[object HTML document.all class]",B="[object HTMLCollection]",j=typeof Symbol==="function"&&!!Symbol.toStringTag,N=!(0 in[,]),v=function(){return!1};if(typeof document==="object"){if(x=document.all,M.call(x)===M.call(document.all))v=function(w){if((N||!w)&&(typeof w>"u"||typeof w==="object"))try{var y=M.call(w);return(y===E||y===S||y===B||y===D)&&w("")==null}catch(n){}return!1}}var x;J.exports=$?function(w){if(v(w))return!0;if(!w)return!1;if(typeof w!=="function"&&typeof w!=="object")return!1;try{$(w,null,W)}catch(y){if(y!==H)return!1}return!C(w)&&A(w)}:function(w){if(v(w))return!0;if(!w)return!1;if(typeof w!=="function"&&typeof w!=="object")return!1;if(j)return A(w);if(C(w))return!1;var y=M.call(w);if(y!==L&&y!==P&&!/^\[object HTML/.test(y))return!1;return A(w)}}),_F=C0((Q,J)=>{var X=wF(),$=Object.prototype.toString,W=Object.prototype.hasOwnProperty,H=function(M,D,L){for(var P=0,E=M.length;P<E;P++)if(W.call(M,P))if(L==null)D(M[P],P,M);else D.call(L,M[P],P,M)},U=function(M,D,L){for(var P=0,E=M.length;P<E;P++)if(L==null)D(M.charAt(P),P,M);else D.call(L,M.charAt(P),P,M)},C=function(M,D,L){for(var P in M)if(W.call(M,P))if(L==null)D(M[P],P,M);else D.call(L,M[P],P,M)};function A(M){return $.call(M)==="[object Array]"}J.exports=function(M,D,L){if(!X(D))throw TypeError("iterator must be a function");var P;if(arguments.length>=3)P=L;if(A(M))H(M,D,P);else if(typeof M==="string")U(M,D,P);else C(M,D,P)}}),gF=C0((Q,J)=>{J.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),yF=C0((Q,J)=>{var X=gF(),$=typeof globalThis>"u"?globalThis:globalThis;J.exports=function(){var W=[];for(var H=0;H<X.length;H++)if(typeof $[X[H]]==="function")W[W.length]=X[H];return W}}),fF=C0((Q,J)=>{var X=MY(),$=MG(),W=CX(),H=LX();J.exports=function(U,C,A){if(!U||typeof U!=="object"&&typeof U!=="function")throw new W("`obj` must be an object or a function`");if(typeof C!=="string"&&typeof C!=="symbol")throw new W("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new W("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new W("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new W("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new W("`loose`, if provided, must be a boolean");var M=arguments.length>3?arguments[3]:null,D=arguments.length>4?arguments[4]:null,L=arguments.length>5?arguments[5]:null,P=arguments.length>6?arguments[6]:!1,E=!!H&&H(U,C);if(X)X(U,C,{configurable:L===null&&E?E.configurable:!L,enumerable:M===null&&E?E.enumerable:!M,value:A,writable:D===null&&E?E.writable:!D});else if(P||!M&&!D&&!L)U[C]=A;else throw new $("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),cF=C0((Q,J)=>{var X=MY(),$=function(){return!!X};$.hasArrayLengthDefineBug=function(){if(!X)return null;try{return X([],"length",{value:1}).length!==1}catch(W){return!0}},J.exports=$}),pF=C0((Q,J)=>{var X=RG(),$=fF(),W=cF()(),H=LX(),U=CX(),C=X("%Math.floor%");J.exports=function(A,M){if(typeof A!=="function")throw new U("`fn` is not a function");if(typeof M!=="number"||M<0||M>4294967295||C(M)!==M)throw new U("`length` must be a positive 32-bit integer");var D=arguments.length>2&&!!arguments[2],L=!0,P=!0;if("length"in A&&H){var E=H(A,"length");if(E&&!E.configurable)L=!1;if(E&&!E.writable)P=!1}if(L||P||!D)if(W)$(A,"length",M,!0,!0);else $(A,"length",M);return A}}),hF=C0((Q,J)=>{var X=MX(),$=z$(),W=TG();J.exports=function(){return W(X,$,arguments)}}),bF=C0((Q,J)=>{var X=pF(),$=MY(),W=O$(),H=hF();if(J.exports=function(U){var C=W(arguments),A=U.length-(arguments.length-1);return X(C,1+(A>0?A:0),!0)},$)$(J.exports,"apply",{value:H});else J.exports.apply=H}),uF=C0((Q,J)=>{var X=IG();J.exports=function(){return X()&&!!Symbol.toStringTag}}),dF=C0((Q,J)=>{var X=_F(),$=yF(),W=bF(),H=EG(),U=LX(),C=AG(),A=H("Object.prototype.toString"),M=uF()(),D=typeof globalThis>"u"?globalThis:globalThis,L=$(),P=H("String.prototype.slice"),E=H("Array.prototype.indexOf",!0)||function(N,v){for(var x=0;x<N.length;x+=1)if(N[x]===v)return x;return-1},S={__proto__:null};if(M&&U&&C)X(L,function(N){var v=new D[N];if(Symbol.toStringTag in v&&C){var x=C(v),w=U(x,Symbol.toStringTag);if(!w&&x){var y=C(x);w=U(y,Symbol.toStringTag)}S["$"+N]=W(w.get)}});else X(L,function(N){var v=new D[N],x=v.slice||v.set;if(x)S["$"+N]=W(x)});var B=function(N){var v=!1;return X(S,function(x,w){if(!v)try{if("$"+x(N)===w)v=P(w,1)}catch(y){}}),v},j=function(N){var v=!1;return X(S,function(x,w){if(!v)try{x(N),v=P(w,1)}catch(y){}}),v};J.exports=function(N){if(!N||typeof N!=="object")return!1;if(!M){var v=P(A(N),8,-1);if(E(L,v)>-1)return v;if(v!=="Object")return!1;return j(N)}if(!U)return null;return B(N)}}),lF=C0((Q,J)=>{var X=dF();J.exports=function($){return!!X($)}}),mF=C0((Q,J)=>{var X=CX(),$=EG(),W=$("TypedArray.prototype.buffer",!0),H=lF();J.exports=W||function(U){if(!H(U))throw new X("Not a Typed Array");return U.buffer}}),oF=C0((Q,J)=>{var X=hQ().Buffer,$=qF(),W=mF(),H=ArrayBuffer.isView||function(M){try{return W(M),!0}catch(D){return!1}},U=typeof Uint8Array<"u",C=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",A=C&&(X.prototype instanceof Uint8Array||X.TYPED_ARRAY_SUPPORT);J.exports=function(M,D){if(X.isBuffer(M)){if(M.constructor&&!("isBuffer"in M))return X.from(M);return M}if(typeof M==="string")return X.from(M,D);if(C&&H(M)){if(M.byteLength===0)return X.alloc(0);if(A){var L=X.from(M.buffer,M.byteOffset,M.byteLength);if(L.byteLength===M.byteLength)return L}var P=M instanceof Uint8Array?M:new Uint8Array(M.buffer,M.byteOffset,M.byteLength),E=X.from(P);if(E.length===M.byteLength)return E}if(U&&M instanceof Uint8Array)return X.from(M);var S=$(M);if(S)for(var B=0;B<M.length;B+=1){var j=M[B];if(typeof j!=="number"||j<0||j>255||~~j!==j)throw RangeError("Array items must be numbers in the range 0-255.")}if(S||X.isBuffer(M)&&M.constructor&&typeof M.constructor.isBuffer==="function"&&M.constructor.isBuffer(M))return X.from(M);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),C$=C0((Q,J)=>{var X=hQ().Buffer,$=oF(),W=typeof Uint8Array<"u",H=W&&typeof ArrayBuffer<"u",U=H&&ArrayBuffer.isView;J.exports=function(C,A,M){if(typeof C==="string"||X.isBuffer(C)||W&&C instanceof Uint8Array||U&&U(C))return $(C,A);throw TypeError(M+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),SG=C0((Q,J)=>{var X={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},$={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},W=CG(),H=hQ().Buffer,U=H$(),C=F$(),A=C$();function M(D,L,P,E,S){U(P,E),D=A(D,C,"Password"),L=A(L,C,"Salt");var B=(S||"sha1").toLowerCase(),j=$[B]||B,N=X[j];if(typeof N!=="number"||!N)throw TypeError("Digest algorithm not supported: "+S);var v=H.allocUnsafe(E),x=H.allocUnsafe(L.length+4);L.copy(x,0,0,L.length);var w=0,y=N,n=Math.ceil(E/y);for(var r=1;r<=n;r++){x.writeUInt32BE(r,L.length);var s=W(j,D).update(x).digest(),i=s;for(var u=1;u<P;u++){i=W(j,D).update(i).digest();for(var Q0=0;Q0<y;Q0++)s[Q0]^=i[Q0]}s.copy(v,w),w+=y}return v}J.exports=M}),nF=C0((Q,J)=>{var X=hQ().Buffer,$=H$(),W=F$(),H=SG(),U=C$(),C,A=globalThis.crypto&&globalThis.crypto.subtle,M={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},D=[],L;function P(){if(L)return L;if(globalThis.process&&globalThis.process.nextTick)L=globalThis.process.nextTick;else if(globalThis.queueMicrotask)L=globalThis.queueMicrotask;else if(globalThis.setImmediate)L=globalThis.setImmediate;else L=globalThis.setTimeout;return L}function E(j,N,v,x,w){return A.importKey("raw",j,{name:"PBKDF2"},!1,["deriveBits"]).then(function(y){return A.deriveBits({name:"PBKDF2",salt:N,iterations:v,hash:{name:w}},y,x<<3)}).then(function(y){return X.from(y)})}function S(j){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!A||!A.importKey||!A.deriveBits)return Promise.resolve(!1);if(D[j]!==void 0)return D[j];C=C||X.alloc(8);var N=E(C,C,10,128,j).then(function(){return!0},function(){return!1});return D[j]=N,N}function B(j,N){j.then(function(v){P()(function(){N(null,v)})},function(v){P()(function(){N(v)})})}J.exports=function(j,N,v,x,w,y){if(typeof w==="function")y=w,w=void 0;if($(v,x),j=U(j,W,"Password"),N=U(N,W,"Salt"),typeof y!=="function")throw Error("No callback provided to pbkdf2");w=w||"sha1";var n=M[w.toLowerCase()];if(!n||typeof globalThis.Promise!=="function"){P()(function(){var r;try{r=H(j,N,v,x,w)}catch(s){y(s);return}y(null,r)});return}B(S(n).then(function(r){if(r)return E(j,N,v,x,n);return H(j,N,v,x,w)}),y)}}),jG=C0((Q)=>{var J=(XQ(),u0($Q)),X=H$(),$=F$(),W=C$();function H(C,A,M,D,L,P){if(X(M,D),C=W(C,$,"Password"),A=W(A,$,"Salt"),typeof L==="function")P=L,L="sha1";if(typeof P!=="function")throw Error("No callback provided to pbkdf2");return J.pbkdf2(C,A,M,D,L,P)}function U(C,A,M,D,L){return X(M,D),C=W(C,$,"Password"),A=W(A,$,"Salt"),L=L||"sha1",J.pbkdf2Sync(C,A,M,D,L)}if(!J.pbkdf2Sync||J.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)Q.pbkdf2Sync=SG(),Q.pbkdf2=nF();else Q.pbkdf2Sync=U,Q.pbkdf2=H}),rF=C0((Q)=>{var J=(XQ(),u0($Q));Q.createCipher=Q.Cipher=J.createCipher,Q.createCipheriv=Q.Cipheriv=J.createCipheriv,Q.createDecipher=Q.Decipher=J.createDecipher,Q.createDecipheriv=Q.Decipheriv=J.createDecipheriv,Q.listCiphers=Q.getCiphers=J.getCiphers}),sF=C0((Q)=>{var J=(XQ(),u0($Q));Q.DiffieHellmanGroup=J.DiffieHellmanGroup,Q.createDiffieHellmanGroup=J.createDiffieHellmanGroup,Q.getDiffieHellman=J.getDiffieHellman,Q.createDiffieHellman=J.createDiffieHellman,Q.DiffieHellman=J.DiffieHellman}),aF=C0((Q)=>{var J=(XQ(),u0($Q));Q.createSign=J.createSign,Q.Sign=J.Sign,Q.createVerify=J.createVerify,Q.Verify=J.Verify}),iF=C0((Q,J)=>{J.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),jJ=C0((Q,J)=>{(function(X,$){function W(Y,G){if(!Y)throw Error(G||"Assertion failed")}function H(Y,G){Y.super_=G;var F=function(){};F.prototype=G.prototype,Y.prototype=new F,Y.prototype.constructor=Y}function U(Y,G,F){if(U.isBN(Y))return Y;if(this.negative=0,this.words=null,this.length=0,this.red=null,Y!==null){if(G==="le"||G==="be")F=G,G=10;this._init(Y||0,G||10,F||"be")}}if(typeof X==="object")X.exports=U;else $.BN=U;U.BN=U,U.wordSize=26;var C;try{if(typeof window<"u"&&typeof window.Buffer<"u")C=window.Buffer;else C=(HQ(),u0(SQ)).Buffer}catch(Y){}U.isBN=function(Y){if(Y instanceof U)return!0;return Y!==null&&typeof Y==="object"&&Y.constructor.wordSize===U.wordSize&&Array.isArray(Y.words)},U.max=function(Y,G){if(Y.cmp(G)>0)return Y;return G},U.min=function(Y,G){if(Y.cmp(G)<0)return Y;return G},U.prototype._init=function(Y,G,F){if(typeof Y==="number")return this._initNumber(Y,G,F);if(typeof Y==="object")return this._initArray(Y,G,F);if(G==="hex")G=16;W(G===(G|0)&&G>=2&&G<=36),Y=Y.toString().replace(/\s+/g,"");var Z=0;if(Y[0]==="-")Z++,this.negative=1;if(Z<Y.length){if(G===16)this._parseHex(Y,Z,F);else if(this._parseBase(Y,G,Z),F==="le")this._initArray(this.toArray(),G,F)}},U.prototype._initNumber=function(Y,G,F){if(Y<0)this.negative=1,Y=-Y;if(Y<67108864)this.words=[Y&67108863],this.length=1;else if(Y<4503599627370496)this.words=[Y&67108863,Y/67108864&67108863],this.length=2;else W(Y<9007199254740992),this.words=[Y&67108863,Y/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),G,F)},U.prototype._initArray=function(Y,G,F){if(W(typeof Y.length==="number"),Y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Y.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K,O,I=0;if(F==="be"){for(Z=Y.length-1,K=0;Z>=0;Z-=3)if(O=Y[Z]|Y[Z-1]<<8|Y[Z-2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}else if(F==="le"){for(Z=0,K=0;Z<Y.length;Z+=3)if(O=Y[Z]|Y[Z+1]<<8|Y[Z+2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}return this.strip()};function A(Y,G){var F=Y.charCodeAt(G);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Y,G,F){var Z=A(Y,F);if(F-1>=G)Z|=A(Y,F-1)<<4;return Z}U.prototype._parseHex=function(Y,G,F){this.length=Math.ceil((Y.length-G)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K=0,O=0,I;if(F==="be")for(Z=Y.length-1;Z>=G;Z-=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8;else{var z=Y.length-G;for(Z=z%2===0?G+1:G;Z<Y.length;Z+=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8}this.strip()};function D(Y,G,F,Z){var K=0,O=Math.min(Y.length,F);for(var I=G;I<O;I++){var z=Y.charCodeAt(I)-48;if(K*=Z,z>=49)K+=z-49+10;else if(z>=17)K+=z-17+10;else K+=z}return K}U.prototype._parseBase=function(Y,G,F){this.words=[0],this.length=1;for(var Z=0,K=1;K<=67108863;K*=G)Z++;Z--,K=K/G|0;var O=Y.length-F,I=O%Z,z=Math.min(O,O-I)+F,V=0;for(var q=F;q<z;q+=Z)if(V=D(Y,q,q+Z,G),this.imuln(K),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V);if(I!==0){var R=1;V=D(Y,q,Y.length,G);for(q=0;q<I;q++)R*=G;if(this.imuln(R),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V)}this.strip()},U.prototype.copy=function(Y){Y.words=Array(this.length);for(var G=0;G<this.length;G++)Y.words[G]=this.words[G];Y.length=this.length,Y.negative=this.negative,Y.red=this.red},U.prototype.clone=function(){var Y=new U(null);return this.copy(Y),Y},U.prototype._expand=function(Y){while(this.length<Y)this.words[this.length++]=0;return this},U.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},U.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","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"],P=[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],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(U.prototype.toString=function(Y,G){Y=Y||10,G=G|0||1;var F;if(Y===16||Y==="hex"){F="";var Z=0,K=0;for(var O=0;O<this.length;O++){var I=this.words[O],z=((I<<Z|K)&16777215).toString(16);if(K=I>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,O--;if(K!==0||O!==this.length-1)F=L[6-z.length]+z+F;else F=z+F}if(K!==0)F=K.toString(16)+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Y===(Y|0)&&Y>=2&&Y<=36){var V=P[Y],q=E[Y];F="";var R=this.clone();R.negative=0;while(!R.isZero()){var T=R.modn(q).toString(Y);if(R=R.idivn(q),!R.isZero())F=L[V-T.length]+T+F;else F=T+F}if(this.isZero())F="0"+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}W(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var Y=this.words[0];if(this.length===2)Y+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Y+=4503599627370496+this.words[1]*67108864;else if(this.length>2)W(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Y:Y},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(Y,G){return W(typeof C<"u"),this.toArrayLike(C,Y,G)},U.prototype.toArray=function(Y,G){return this.toArrayLike(Array,Y,G)},U.prototype.toArrayLike=function(Y,G,F){var Z=this.byteLength(),K=F||Math.max(1,Z);W(Z<=K,"byte array longer than desired length"),W(K>0,"Requested array length <= 0"),this.strip();var O=G==="le",I=new Y(K),z,V,q=this.clone();if(!O){for(V=0;V<K-Z;V++)I[V]=0;for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[K-V-1]=z}else{for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[V]=z;for(;V<K;V++)I[V]=0}return I},Math.clz32)U.prototype._countBits=function(Y){return 32-Math.clz32(Y)};else U.prototype._countBits=function(Y){var G=Y,F=0;if(G>=4096)F+=13,G>>>=13;if(G>=64)F+=7,G>>>=7;if(G>=8)F+=4,G>>>=4;if(G>=2)F+=2,G>>>=2;return F+G};U.prototype._zeroBits=function(Y){if(Y===0)return 26;var G=Y,F=0;if((G&8191)===0)F+=13,G>>>=13;if((G&127)===0)F+=7,G>>>=7;if((G&15)===0)F+=4,G>>>=4;if((G&3)===0)F+=2,G>>>=2;if((G&1)===0)F++;return F},U.prototype.bitLength=function(){var Y=this.words[this.length-1],G=this._countBits(Y);return(this.length-1)*26+G};function S(Y){var G=Array(Y.bitLength());for(var F=0;F<G.length;F++){var Z=F/26|0,K=F%26;G[F]=(Y.words[Z]&1<<K)>>>K}return G}U.prototype.zeroBits=function(){if(this.isZero())return 0;var Y=0;for(var G=0;G<this.length;G++){var F=this._zeroBits(this.words[G]);if(Y+=F,F!==26)break}return Y},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(Y){if(this.negative!==0)return this.abs().inotn(Y).iaddn(1);return this.clone()},U.prototype.fromTwos=function(Y){if(this.testn(Y-1))return this.notn(Y).iaddn(1).ineg();return this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},U.prototype.iuor=function(Y){while(this.length<Y.length)this.words[this.length++]=0;for(var G=0;G<Y.length;G++)this.words[G]=this.words[G]|Y.words[G];return this.strip()},U.prototype.ior=function(Y){return W((this.negative|Y.negative)===0),this.iuor(Y)},U.prototype.or=function(Y){if(this.length>Y.length)return this.clone().ior(Y);return Y.clone().ior(this)},U.prototype.uor=function(Y){if(this.length>Y.length)return this.clone().iuor(Y);return Y.clone().iuor(this)},U.prototype.iuand=function(Y){var G;if(this.length>Y.length)G=Y;else G=this;for(var F=0;F<G.length;F++)this.words[F]=this.words[F]&Y.words[F];return this.length=G.length,this.strip()},U.prototype.iand=function(Y){return W((this.negative|Y.negative)===0),this.iuand(Y)},U.prototype.and=function(Y){if(this.length>Y.length)return this.clone().iand(Y);return Y.clone().iand(this)},U.prototype.uand=function(Y){if(this.length>Y.length)return this.clone().iuand(Y);return Y.clone().iuand(this)},U.prototype.iuxor=function(Y){var G,F;if(this.length>Y.length)G=this,F=Y;else G=Y,F=this;for(var Z=0;Z<F.length;Z++)this.words[Z]=G.words[Z]^F.words[Z];if(this!==G)for(;Z<G.length;Z++)this.words[Z]=G.words[Z];return this.length=G.length,this.strip()},U.prototype.ixor=function(Y){return W((this.negative|Y.negative)===0),this.iuxor(Y)},U.prototype.xor=function(Y){if(this.length>Y.length)return this.clone().ixor(Y);return Y.clone().ixor(this)},U.prototype.uxor=function(Y){if(this.length>Y.length)return this.clone().iuxor(Y);return Y.clone().iuxor(this)},U.prototype.inotn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Math.ceil(Y/26)|0,F=Y%26;if(this._expand(G),F>0)G--;for(var Z=0;Z<G;Z++)this.words[Z]=~this.words[Z]&67108863;if(F>0)this.words[Z]=~this.words[Z]&67108863>>26-F;return this.strip()},U.prototype.notn=function(Y){return this.clone().inotn(Y)},U.prototype.setn=function(Y,G){W(typeof Y==="number"&&Y>=0);var F=Y/26|0,Z=Y%26;if(this._expand(F+1),G)this.words[F]=this.words[F]|1<<Z;else this.words[F]=this.words[F]&~(1<<Z);return this.strip()},U.prototype.iadd=function(Y){var G;if(this.negative!==0&&Y.negative===0)return this.negative=0,G=this.isub(Y),this.negative^=1,this._normSign();else if(this.negative===0&&Y.negative!==0)return Y.negative=0,G=this.isub(Y),Y.negative=1,G._normSign();var F,Z;if(this.length>Y.length)F=this,Z=Y;else F=Y,Z=this;var K=0;for(var O=0;O<Z.length;O++)G=(F.words[O]|0)+(Z.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;for(;K!==0&&O<F.length;O++)G=(F.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;if(this.length=F.length,K!==0)this.words[this.length]=K,this.length++;else if(F!==this)for(;O<F.length;O++)this.words[O]=F.words[O];return this},U.prototype.add=function(Y){var G;if(Y.negative!==0&&this.negative===0)return Y.negative=0,G=this.sub(Y),Y.negative^=1,G;else if(Y.negative===0&&this.negative!==0)return this.negative=0,G=Y.sub(this),this.negative=1,G;if(this.length>Y.length)return this.clone().iadd(Y);return Y.clone().iadd(this)},U.prototype.isub=function(Y){if(Y.negative!==0){Y.negative=0;var G=this.iadd(Y);return Y.negative=1,G._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Y),this.negative=1,this._normSign();var F=this.cmp(Y);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,K;if(F>0)Z=this,K=Y;else Z=Y,K=this;var O=0;for(var I=0;I<K.length;I++)G=(Z.words[I]|0)-(K.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;for(;O!==0&&I<Z.length;I++)G=(Z.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;if(O===0&&I<Z.length&&Z!==this)for(;I<Z.length;I++)this.words[I]=Z.words[I];if(this.length=Math.max(this.length,I),Z!==this)this.negative=1;return this.strip()},U.prototype.sub=function(Y){return this.clone().isub(Y)};function B(Y,G,F){F.negative=G.negative^Y.negative;var Z=Y.length+G.length|0;F.length=Z,Z=Z-1|0;var K=Y.words[0]|0,O=G.words[0]|0,I=K*O,z=I&67108863,V=I/67108864|0;F.words[0]=z;for(var q=1;q<Z;q++){var R=V>>>26,T=V&67108863,k=Math.min(q,G.length-1);for(var g=Math.max(0,q-Y.length+1);g<=k;g++){var b=q-g|0;K=Y.words[b]|0,O=G.words[g]|0,I=K*O+T,R+=I/67108864|0,T=I&67108863}F.words[q]=T|0,V=R|0}if(V!==0)F.words[q]=V|0;else F.length--;return F.strip()}var j=function(Y,G,F){var Z=Y.words,K=G.words,O=F.words,I=0,z,V,q,R=Z[0]|0,T=R&8191,k=R>>>13,g=Z[1]|0,b=g&8191,t=g>>>13,G0=Z[2]|0,p=G0&8191,_=G0>>>13,d=Z[3]|0,h=d&8191,e=d>>>13,q0=Z[4]|0,c=q0&8191,l=q0>>>13,U0=Z[5]|0,$0=U0&8191,m=U0>>>13,M0=Z[6]|0,o=M0&8191,Y0=M0>>>13,T0=Z[7]|0,V0=T0&8191,W0=T0>>>13,b0=Z[8]|0,a=b0&8191,J0=b0>>>13,y0=Z[9]|0,H0=y0&8191,F0=y0>>>13,h0=K[0]|0,z0=h0&8191,O0=h0>>>13,d0=K[1]|0,I0=d0&8191,D0=d0>>>13,ZQ=K[2]|0,R0=ZQ&8191,E0=ZQ>>>13,t0=K[3]|0,S0=t0&8191,B0=t0>>>13,vQ=K[4]|0,x0=vQ&8191,w0=vQ>>>13,NQ=K[5]|0,k0=NQ&8191,f=NQ>>>13,X0=K[6]|0,Z0=X0&8191,K0=X0>>>13,c0=K[7]|0,P0=c0&8191,A0=c0>>>13,GQ=K[8]|0,v0=GQ&8191,_0=GQ>>>13,wQ=K[9]|0,N0=wQ&8191,j0=wQ>>>13;F.negative=Y.negative^G.negative,F.length=19,z=Math.imul(T,z0),V=Math.imul(T,O0),V=V+Math.imul(k,z0)|0,q=Math.imul(k,O0);var WQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,z=Math.imul(b,z0),V=Math.imul(b,O0),V=V+Math.imul(t,z0)|0,q=Math.imul(t,O0),z=z+Math.imul(T,I0)|0,V=V+Math.imul(T,D0)|0,V=V+Math.imul(k,I0)|0,q=q+Math.imul(k,D0)|0;var m0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(m0>>>26)|0,m0&=67108863,z=Math.imul(p,z0),V=Math.imul(p,O0),V=V+Math.imul(_,z0)|0,q=Math.imul(_,O0),z=z+Math.imul(b,I0)|0,V=V+Math.imul(b,D0)|0,V=V+Math.imul(t,I0)|0,q=q+Math.imul(t,D0)|0,z=z+Math.imul(T,R0)|0,V=V+Math.imul(T,E0)|0,V=V+Math.imul(k,R0)|0,q=q+Math.imul(k,E0)|0;var l0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(l0>>>26)|0,l0&=67108863,z=Math.imul(h,z0),V=Math.imul(h,O0),V=V+Math.imul(e,z0)|0,q=Math.imul(e,O0),z=z+Math.imul(p,I0)|0,V=V+Math.imul(p,D0)|0,V=V+Math.imul(_,I0)|0,q=q+Math.imul(_,D0)|0,z=z+Math.imul(b,R0)|0,V=V+Math.imul(b,E0)|0,V=V+Math.imul(t,R0)|0,q=q+Math.imul(t,E0)|0,z=z+Math.imul(T,S0)|0,V=V+Math.imul(T,B0)|0,V=V+Math.imul(k,S0)|0,q=q+Math.imul(k,B0)|0;var e0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(e0>>>26)|0,e0&=67108863,z=Math.imul(c,z0),V=Math.imul(c,O0),V=V+Math.imul(l,z0)|0,q=Math.imul(l,O0),z=z+Math.imul(h,I0)|0,V=V+Math.imul(h,D0)|0,V=V+Math.imul(e,I0)|0,q=q+Math.imul(e,D0)|0,z=z+Math.imul(p,R0)|0,V=V+Math.imul(p,E0)|0,V=V+Math.imul(_,R0)|0,q=q+Math.imul(_,E0)|0,z=z+Math.imul(b,S0)|0,V=V+Math.imul(b,B0)|0,V=V+Math.imul(t,S0)|0,q=q+Math.imul(t,B0)|0,z=z+Math.imul(T,x0)|0,V=V+Math.imul(T,w0)|0,V=V+Math.imul(k,x0)|0,q=q+Math.imul(k,w0)|0;var i0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(i0>>>26)|0,i0&=67108863,z=Math.imul($0,z0),V=Math.imul($0,O0),V=V+Math.imul(m,z0)|0,q=Math.imul(m,O0),z=z+Math.imul(c,I0)|0,V=V+Math.imul(c,D0)|0,V=V+Math.imul(l,I0)|0,q=q+Math.imul(l,D0)|0,z=z+Math.imul(h,R0)|0,V=V+Math.imul(h,E0)|0,V=V+Math.imul(e,R0)|0,q=q+Math.imul(e,E0)|0,z=z+Math.imul(p,S0)|0,V=V+Math.imul(p,B0)|0,V=V+Math.imul(_,S0)|0,q=q+Math.imul(_,B0)|0,z=z+Math.imul(b,x0)|0,V=V+Math.imul(b,w0)|0,V=V+Math.imul(t,x0)|0,q=q+Math.imul(t,w0)|0,z=z+Math.imul(T,k0)|0,V=V+Math.imul(T,f)|0,V=V+Math.imul(k,k0)|0,q=q+Math.imul(k,f)|0;var FQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,z=Math.imul(o,z0),V=Math.imul(o,O0),V=V+Math.imul(Y0,z0)|0,q=Math.imul(Y0,O0),z=z+Math.imul($0,I0)|0,V=V+Math.imul($0,D0)|0,V=V+Math.imul(m,I0)|0,q=q+Math.imul(m,D0)|0,z=z+Math.imul(c,R0)|0,V=V+Math.imul(c,E0)|0,V=V+Math.imul(l,R0)|0,q=q+Math.imul(l,E0)|0,z=z+Math.imul(h,S0)|0,V=V+Math.imul(h,B0)|0,V=V+Math.imul(e,S0)|0,q=q+Math.imul(e,B0)|0,z=z+Math.imul(p,x0)|0,V=V+Math.imul(p,w0)|0,V=V+Math.imul(_,x0)|0,q=q+Math.imul(_,w0)|0,z=z+Math.imul(b,k0)|0,V=V+Math.imul(b,f)|0,V=V+Math.imul(t,k0)|0,q=q+Math.imul(t,f)|0,z=z+Math.imul(T,Z0)|0,V=V+Math.imul(T,K0)|0,V=V+Math.imul(k,Z0)|0,q=q+Math.imul(k,K0)|0;var qQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(qQ>>>26)|0,qQ&=67108863,z=Math.imul(V0,z0),V=Math.imul(V0,O0),V=V+Math.imul(W0,z0)|0,q=Math.imul(W0,O0),z=z+Math.imul(o,I0)|0,V=V+Math.imul(o,D0)|0,V=V+Math.imul(Y0,I0)|0,q=q+Math.imul(Y0,D0)|0,z=z+Math.imul($0,R0)|0,V=V+Math.imul($0,E0)|0,V=V+Math.imul(m,R0)|0,q=q+Math.imul(m,E0)|0,z=z+Math.imul(c,S0)|0,V=V+Math.imul(c,B0)|0,V=V+Math.imul(l,S0)|0,q=q+Math.imul(l,B0)|0,z=z+Math.imul(h,x0)|0,V=V+Math.imul(h,w0)|0,V=V+Math.imul(e,x0)|0,q=q+Math.imul(e,w0)|0,z=z+Math.imul(p,k0)|0,V=V+Math.imul(p,f)|0,V=V+Math.imul(_,k0)|0,q=q+Math.imul(_,f)|0,z=z+Math.imul(b,Z0)|0,V=V+Math.imul(b,K0)|0,V=V+Math.imul(t,Z0)|0,q=q+Math.imul(t,K0)|0,z=z+Math.imul(T,P0)|0,V=V+Math.imul(T,A0)|0,V=V+Math.imul(k,P0)|0,q=q+Math.imul(k,A0)|0;var zQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,z=Math.imul(a,z0),V=Math.imul(a,O0),V=V+Math.imul(J0,z0)|0,q=Math.imul(J0,O0),z=z+Math.imul(V0,I0)|0,V=V+Math.imul(V0,D0)|0,V=V+Math.imul(W0,I0)|0,q=q+Math.imul(W0,D0)|0,z=z+Math.imul(o,R0)|0,V=V+Math.imul(o,E0)|0,V=V+Math.imul(Y0,R0)|0,q=q+Math.imul(Y0,E0)|0,z=z+Math.imul($0,S0)|0,V=V+Math.imul($0,B0)|0,V=V+Math.imul(m,S0)|0,q=q+Math.imul(m,B0)|0,z=z+Math.imul(c,x0)|0,V=V+Math.imul(c,w0)|0,V=V+Math.imul(l,x0)|0,q=q+Math.imul(l,w0)|0,z=z+Math.imul(h,k0)|0,V=V+Math.imul(h,f)|0,V=V+Math.imul(e,k0)|0,q=q+Math.imul(e,f)|0,z=z+Math.imul(p,Z0)|0,V=V+Math.imul(p,K0)|0,V=V+Math.imul(_,Z0)|0,q=q+Math.imul(_,K0)|0,z=z+Math.imul(b,P0)|0,V=V+Math.imul(b,A0)|0,V=V+Math.imul(t,P0)|0,q=q+Math.imul(t,A0)|0,z=z+Math.imul(T,v0)|0,V=V+Math.imul(T,_0)|0,V=V+Math.imul(k,v0)|0,q=q+Math.imul(k,_0)|0;var OQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(OQ>>>26)|0,OQ&=67108863,z=Math.imul(H0,z0),V=Math.imul(H0,O0),V=V+Math.imul(F0,z0)|0,q=Math.imul(F0,O0),z=z+Math.imul(a,I0)|0,V=V+Math.imul(a,D0)|0,V=V+Math.imul(J0,I0)|0,q=q+Math.imul(J0,D0)|0,z=z+Math.imul(V0,R0)|0,V=V+Math.imul(V0,E0)|0,V=V+Math.imul(W0,R0)|0,q=q+Math.imul(W0,E0)|0,z=z+Math.imul(o,S0)|0,V=V+Math.imul(o,B0)|0,V=V+Math.imul(Y0,S0)|0,q=q+Math.imul(Y0,B0)|0,z=z+Math.imul($0,x0)|0,V=V+Math.imul($0,w0)|0,V=V+Math.imul(m,x0)|0,q=q+Math.imul(m,w0)|0,z=z+Math.imul(c,k0)|0,V=V+Math.imul(c,f)|0,V=V+Math.imul(l,k0)|0,q=q+Math.imul(l,f)|0,z=z+Math.imul(h,Z0)|0,V=V+Math.imul(h,K0)|0,V=V+Math.imul(e,Z0)|0,q=q+Math.imul(e,K0)|0,z=z+Math.imul(p,P0)|0,V=V+Math.imul(p,A0)|0,V=V+Math.imul(_,P0)|0,q=q+Math.imul(_,A0)|0,z=z+Math.imul(b,v0)|0,V=V+Math.imul(b,_0)|0,V=V+Math.imul(t,v0)|0,q=q+Math.imul(t,_0)|0,z=z+Math.imul(T,N0)|0,V=V+Math.imul(T,j0)|0,V=V+Math.imul(k,N0)|0,q=q+Math.imul(k,j0)|0;var CQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,z=Math.imul(H0,I0),V=Math.imul(H0,D0),V=V+Math.imul(F0,I0)|0,q=Math.imul(F0,D0),z=z+Math.imul(a,R0)|0,V=V+Math.imul(a,E0)|0,V=V+Math.imul(J0,R0)|0,q=q+Math.imul(J0,E0)|0,z=z+Math.imul(V0,S0)|0,V=V+Math.imul(V0,B0)|0,V=V+Math.imul(W0,S0)|0,q=q+Math.imul(W0,B0)|0,z=z+Math.imul(o,x0)|0,V=V+Math.imul(o,w0)|0,V=V+Math.imul(Y0,x0)|0,q=q+Math.imul(Y0,w0)|0,z=z+Math.imul($0,k0)|0,V=V+Math.imul($0,f)|0,V=V+Math.imul(m,k0)|0,q=q+Math.imul(m,f)|0,z=z+Math.imul(c,Z0)|0,V=V+Math.imul(c,K0)|0,V=V+Math.imul(l,Z0)|0,q=q+Math.imul(l,K0)|0,z=z+Math.imul(h,P0)|0,V=V+Math.imul(h,A0)|0,V=V+Math.imul(e,P0)|0,q=q+Math.imul(e,A0)|0,z=z+Math.imul(p,v0)|0,V=V+Math.imul(p,_0)|0,V=V+Math.imul(_,v0)|0,q=q+Math.imul(_,_0)|0,z=z+Math.imul(b,N0)|0,V=V+Math.imul(b,j0)|0,V=V+Math.imul(t,N0)|0,q=q+Math.imul(t,j0)|0;var LQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,z=Math.imul(H0,R0),V=Math.imul(H0,E0),V=V+Math.imul(F0,R0)|0,q=Math.imul(F0,E0),z=z+Math.imul(a,S0)|0,V=V+Math.imul(a,B0)|0,V=V+Math.imul(J0,S0)|0,q=q+Math.imul(J0,B0)|0,z=z+Math.imul(V0,x0)|0,V=V+Math.imul(V0,w0)|0,V=V+Math.imul(W0,x0)|0,q=q+Math.imul(W0,w0)|0,z=z+Math.imul(o,k0)|0,V=V+Math.imul(o,f)|0,V=V+Math.imul(Y0,k0)|0,q=q+Math.imul(Y0,f)|0,z=z+Math.imul($0,Z0)|0,V=V+Math.imul($0,K0)|0,V=V+Math.imul(m,Z0)|0,q=q+Math.imul(m,K0)|0,z=z+Math.imul(c,P0)|0,V=V+Math.imul(c,A0)|0,V=V+Math.imul(l,P0)|0,q=q+Math.imul(l,A0)|0,z=z+Math.imul(h,v0)|0,V=V+Math.imul(h,_0)|0,V=V+Math.imul(e,v0)|0,q=q+Math.imul(e,_0)|0,z=z+Math.imul(p,N0)|0,V=V+Math.imul(p,j0)|0,V=V+Math.imul(_,N0)|0,q=q+Math.imul(_,j0)|0;var MQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,z=Math.imul(H0,S0),V=Math.imul(H0,B0),V=V+Math.imul(F0,S0)|0,q=Math.imul(F0,B0),z=z+Math.imul(a,x0)|0,V=V+Math.imul(a,w0)|0,V=V+Math.imul(J0,x0)|0,q=q+Math.imul(J0,w0)|0,z=z+Math.imul(V0,k0)|0,V=V+Math.imul(V0,f)|0,V=V+Math.imul(W0,k0)|0,q=q+Math.imul(W0,f)|0,z=z+Math.imul(o,Z0)|0,V=V+Math.imul(o,K0)|0,V=V+Math.imul(Y0,Z0)|0,q=q+Math.imul(Y0,K0)|0,z=z+Math.imul($0,P0)|0,V=V+Math.imul($0,A0)|0,V=V+Math.imul(m,P0)|0,q=q+Math.imul(m,A0)|0,z=z+Math.imul(c,v0)|0,V=V+Math.imul(c,_0)|0,V=V+Math.imul(l,v0)|0,q=q+Math.imul(l,_0)|0,z=z+Math.imul(h,N0)|0,V=V+Math.imul(h,j0)|0,V=V+Math.imul(e,N0)|0,q=q+Math.imul(e,j0)|0;var IQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(IQ>>>26)|0,IQ&=67108863,z=Math.imul(H0,x0),V=Math.imul(H0,w0),V=V+Math.imul(F0,x0)|0,q=Math.imul(F0,w0),z=z+Math.imul(a,k0)|0,V=V+Math.imul(a,f)|0,V=V+Math.imul(J0,k0)|0,q=q+Math.imul(J0,f)|0,z=z+Math.imul(V0,Z0)|0,V=V+Math.imul(V0,K0)|0,V=V+Math.imul(W0,Z0)|0,q=q+Math.imul(W0,K0)|0,z=z+Math.imul(o,P0)|0,V=V+Math.imul(o,A0)|0,V=V+Math.imul(Y0,P0)|0,q=q+Math.imul(Y0,A0)|0,z=z+Math.imul($0,v0)|0,V=V+Math.imul($0,_0)|0,V=V+Math.imul(m,v0)|0,q=q+Math.imul(m,_0)|0,z=z+Math.imul(c,N0)|0,V=V+Math.imul(c,j0)|0,V=V+Math.imul(l,N0)|0,q=q+Math.imul(l,j0)|0;var DQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,z=Math.imul(H0,k0),V=Math.imul(H0,f),V=V+Math.imul(F0,k0)|0,q=Math.imul(F0,f),z=z+Math.imul(a,Z0)|0,V=V+Math.imul(a,K0)|0,V=V+Math.imul(J0,Z0)|0,q=q+Math.imul(J0,K0)|0,z=z+Math.imul(V0,P0)|0,V=V+Math.imul(V0,A0)|0,V=V+Math.imul(W0,P0)|0,q=q+Math.imul(W0,A0)|0,z=z+Math.imul(o,v0)|0,V=V+Math.imul(o,_0)|0,V=V+Math.imul(Y0,v0)|0,q=q+Math.imul(Y0,_0)|0,z=z+Math.imul($0,N0)|0,V=V+Math.imul($0,j0)|0,V=V+Math.imul(m,N0)|0,q=q+Math.imul(m,j0)|0;var PQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,z=Math.imul(H0,Z0),V=Math.imul(H0,K0),V=V+Math.imul(F0,Z0)|0,q=Math.imul(F0,K0),z=z+Math.imul(a,P0)|0,V=V+Math.imul(a,A0)|0,V=V+Math.imul(J0,P0)|0,q=q+Math.imul(J0,A0)|0,z=z+Math.imul(V0,v0)|0,V=V+Math.imul(V0,_0)|0,V=V+Math.imul(W0,v0)|0,q=q+Math.imul(W0,_0)|0,z=z+Math.imul(o,N0)|0,V=V+Math.imul(o,j0)|0,V=V+Math.imul(Y0,N0)|0,q=q+Math.imul(Y0,j0)|0;var TQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,z=Math.imul(H0,P0),V=Math.imul(H0,A0),V=V+Math.imul(F0,P0)|0,q=Math.imul(F0,A0),z=z+Math.imul(a,v0)|0,V=V+Math.imul(a,_0)|0,V=V+Math.imul(J0,v0)|0,q=q+Math.imul(J0,_0)|0,z=z+Math.imul(V0,N0)|0,V=V+Math.imul(V0,j0)|0,V=V+Math.imul(W0,N0)|0,q=q+Math.imul(W0,j0)|0;var AQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,z=Math.imul(H0,v0),V=Math.imul(H0,_0),V=V+Math.imul(F0,v0)|0,q=Math.imul(F0,_0),z=z+Math.imul(a,N0)|0,V=V+Math.imul(a,j0)|0,V=V+Math.imul(J0,N0)|0,q=q+Math.imul(J0,j0)|0;var RQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,z=Math.imul(H0,N0),V=Math.imul(H0,j0),V=V+Math.imul(F0,N0)|0,q=Math.imul(F0,j0);var EQ=(I+z|0)+((V&8191)<<13)|0;if(I=(q+(V>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,O[0]=WQ,O[1]=m0,O[2]=l0,O[3]=e0,O[4]=i0,O[5]=FQ,O[6]=qQ,O[7]=zQ,O[8]=OQ,O[9]=CQ,O[10]=LQ,O[11]=MQ,O[12]=IQ,O[13]=DQ,O[14]=PQ,O[15]=TQ,O[16]=AQ,O[17]=RQ,O[18]=EQ,I!==0)O[19]=I,F.length++;return F};if(!Math.imul)j=B;function N(Y,G,F){F.negative=G.negative^Y.negative,F.length=Y.length+G.length;var Z=0,K=0;for(var O=0;O<F.length-1;O++){var I=K;K=0;var z=Z&67108863,V=Math.min(O,G.length-1);for(var q=Math.max(0,O-Y.length+1);q<=V;q++){var R=O-q,T=Y.words[R]|0,k=G.words[q]|0,g=T*k,b=g&67108863;I=I+(g/67108864|0)|0,b=b+z|0,z=b&67108863,I=I+(b>>>26)|0,K+=I>>>26,I&=67108863}F.words[O]=z,Z=I,I=K}if(Z!==0)F.words[O]=Z;else F.length--;return F.strip()}function v(Y,G,F){var Z=new x;return Z.mulp(Y,G,F)}U.prototype.mulTo=function(Y,G){var F,Z=this.length+Y.length;if(this.length===10&&Y.length===10)F=j(this,Y,G);else if(Z<63)F=B(this,Y,G);else if(Z<1024)F=N(this,Y,G);else F=v(this,Y,G);return F};function x(Y,G){this.x=Y,this.y=G}x.prototype.makeRBT=function(Y){var G=Array(Y),F=U.prototype._countBits(Y)-1;for(var Z=0;Z<Y;Z++)G[Z]=this.revBin(Z,F,Y);return G},x.prototype.revBin=function(Y,G,F){if(Y===0||Y===F-1)return Y;var Z=0;for(var K=0;K<G;K++)Z|=(Y&1)<<G-K-1,Y>>=1;return Z},x.prototype.permute=function(Y,G,F,Z,K,O){for(var I=0;I<O;I++)Z[I]=G[Y[I]],K[I]=F[Y[I]]},x.prototype.transform=function(Y,G,F,Z,K,O){this.permute(O,Y,G,F,Z,K);for(var I=1;I<K;I<<=1){var z=I<<1,V=Math.cos(2*Math.PI/z),q=Math.sin(2*Math.PI/z);for(var R=0;R<K;R+=z){var T=V,k=q;for(var g=0;g<I;g++){var b=F[R+g],t=Z[R+g],G0=F[R+g+I],p=Z[R+g+I],_=T*G0-k*p;if(p=T*p+k*G0,G0=_,F[R+g]=b+G0,Z[R+g]=t+p,F[R+g+I]=b-G0,Z[R+g+I]=t-p,g!==z)_=V*T-q*k,k=V*k+q*T,T=_}}}},x.prototype.guessLen13b=function(Y,G){var F=Math.max(G,Y)|1,Z=F&1,K=0;for(F=F/2|0;F;F=F>>>1)K++;return 1<<K+1+Z},x.prototype.conjugate=function(Y,G,F){if(F<=1)return;for(var Z=0;Z<F/2;Z++){var K=Y[Z];Y[Z]=Y[F-Z-1],Y[F-Z-1]=K,K=G[Z],G[Z]=-G[F-Z-1],G[F-Z-1]=-K}},x.prototype.normalize13b=function(Y,G){var F=0;for(var Z=0;Z<G/2;Z++){var K=Math.round(Y[2*Z+1]/G)*8192+Math.round(Y[2*Z]/G)+F;if(Y[Z]=K&67108863,K<67108864)F=0;else F=K/67108864|0}return Y},x.prototype.convert13b=function(Y,G,F,Z){var K=0;for(var O=0;O<G;O++)K=K+(Y[O]|0),F[2*O]=K&8191,K=K>>>13,F[2*O+1]=K&8191,K=K>>>13;for(O=2*G;O<Z;++O)F[O]=0;W(K===0),W((K&-8192)===0)},x.prototype.stub=function(Y){var G=Array(Y);for(var F=0;F<Y;F++)G[F]=0;return G},x.prototype.mulp=function(Y,G,F){var Z=2*this.guessLen13b(Y.length,G.length),K=this.makeRBT(Z),O=this.stub(Z),I=Array(Z),z=Array(Z),V=Array(Z),q=Array(Z),R=Array(Z),T=Array(Z),k=F.words;k.length=Z,this.convert13b(Y.words,Y.length,I,Z),this.convert13b(G.words,G.length,q,Z),this.transform(I,O,z,V,Z,K),this.transform(q,O,R,T,Z,K);for(var g=0;g<Z;g++){var b=z[g]*R[g]-V[g]*T[g];V[g]=z[g]*T[g]+V[g]*R[g],z[g]=b}return this.conjugate(z,V,Z),this.transform(z,V,k,O,Z,K),this.conjugate(k,O,Z),this.normalize13b(k,Z),F.negative=Y.negative^G.negative,F.length=Y.length+G.length,F.strip()},U.prototype.mul=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),this.mulTo(Y,G)},U.prototype.mulf=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),v(this,Y,G)},U.prototype.imul=function(Y){return this.clone().mulTo(Y,this)},U.prototype.imuln=function(Y){W(typeof Y==="number"),W(Y<67108864);var G=0;for(var F=0;F<this.length;F++){var Z=(this.words[F]|0)*Y,K=(Z&67108863)+(G&67108863);G>>=26,G+=Z/67108864|0,G+=K>>>26,this.words[F]=K&67108863}if(G!==0)this.words[F]=G,this.length++;return this.length=Y===0?1:this.length,this},U.prototype.muln=function(Y){return this.clone().imuln(Y)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(Y){var G=S(Y);if(G.length===0)return new U(1);var F=this;for(var Z=0;Z<G.length;Z++,F=F.sqr())if(G[Z]!==0)break;if(++Z<G.length)for(var K=F.sqr();Z<G.length;Z++,K=K.sqr()){if(G[Z]===0)continue;F=F.mul(K)}return F},U.prototype.iushln=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=67108863>>>26-G<<26-G,K;if(G!==0){var O=0;for(K=0;K<this.length;K++){var I=this.words[K]&Z,z=(this.words[K]|0)-I<<G;this.words[K]=z|O,O=I>>>26-G}if(O)this.words[K]=O,this.length++}if(F!==0){for(K=this.length-1;K>=0;K--)this.words[K+F]=this.words[K];for(K=0;K<F;K++)this.words[K]=0;this.length+=F}return this.strip()},U.prototype.ishln=function(Y){return W(this.negative===0),this.iushln(Y)},U.prototype.iushrn=function(Y,G,F){W(typeof Y==="number"&&Y>=0);var Z;if(G)Z=(G-G%26)/26;else Z=0;var K=Y%26,O=Math.min((Y-K)/26,this.length),I=67108863^67108863>>>K<<K,z=F;if(Z-=O,Z=Math.max(0,Z),z){for(var V=0;V<O;V++)z.words[V]=this.words[V];z.length=O}if(O===0);else if(this.length>O){this.length-=O;for(V=0;V<this.length;V++)this.words[V]=this.words[V+O]}else this.words[0]=0,this.length=1;var q=0;for(V=this.length-1;V>=0&&(q!==0||V>=Z);V--){var R=this.words[V]|0;this.words[V]=q<<26-K|R>>>K,q=R&I}if(z&&q!==0)z.words[z.length++]=q;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},U.prototype.ishrn=function(Y,G,F){return W(this.negative===0),this.iushrn(Y,G,F)},U.prototype.shln=function(Y){return this.clone().ishln(Y)},U.prototype.ushln=function(Y){return this.clone().iushln(Y)},U.prototype.shrn=function(Y){return this.clone().ishrn(Y)},U.prototype.ushrn=function(Y){return this.clone().iushrn(Y)},U.prototype.testn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return!1;var K=this.words[F];return!!(K&Z)},U.prototype.imaskn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26;if(W(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(G!==0)F++;if(this.length=Math.min(F,this.length),G!==0){var Z=67108863^67108863>>>G<<G;this.words[this.length-1]&=Z}return this.strip()},U.prototype.maskn=function(Y){return this.clone().imaskn(Y)},U.prototype.iaddn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.isubn(-Y);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Y)return this.words[0]=Y-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Y),this.negative=1,this}return this._iaddn(Y)},U.prototype._iaddn=function(Y){this.words[0]+=Y;for(var G=0;G<this.length&&this.words[G]>=67108864;G++)if(this.words[G]-=67108864,G===this.length-1)this.words[G+1]=1;else this.words[G+1]++;return this.length=Math.max(this.length,G+1),this},U.prototype.isubn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.iaddn(-Y);if(this.negative!==0)return this.negative=0,this.iaddn(Y),this.negative=1,this;if(this.words[0]-=Y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var G=0;G<this.length&&this.words[G]<0;G++)this.words[G]+=67108864,this.words[G+1]-=1;return this.strip()},U.prototype.addn=function(Y){return this.clone().iaddn(Y)},U.prototype.subn=function(Y){return this.clone().isubn(Y)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(Y,G,F){var Z=Y.length+F,K;this._expand(Z);var O,I=0;for(K=0;K<Y.length;K++){O=(this.words[K+F]|0)+I;var z=(Y.words[K]|0)*G;O-=z&67108863,I=(O>>26)-(z/67108864|0),this.words[K+F]=O&67108863}for(;K<this.length-F;K++)O=(this.words[K+F]|0)+I,I=O>>26,this.words[K+F]=O&67108863;if(I===0)return this.strip();W(I===-1),I=0;for(K=0;K<this.length;K++)O=-(this.words[K]|0)+I,I=O>>26,this.words[K]=O&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(Y,G){var F=this.length-Y.length,Z=this.clone(),K=Y,O=K.words[K.length-1]|0,I=this._countBits(O);if(F=26-I,F!==0)K=K.ushln(F),Z.iushln(F),O=K.words[K.length-1]|0;var z=Z.length-K.length,V;if(G!=="mod"){V=new U(null),V.length=z+1,V.words=Array(V.length);for(var q=0;q<V.length;q++)V.words[q]=0}var R=Z.clone()._ishlnsubmul(K,1,z);if(R.negative===0){if(Z=R,V)V.words[z]=1}for(var T=z-1;T>=0;T--){var k=(Z.words[K.length+T]|0)*67108864+(Z.words[K.length+T-1]|0);k=Math.min(k/O|0,67108863),Z._ishlnsubmul(K,k,T);while(Z.negative!==0)if(k--,Z.negative=0,Z._ishlnsubmul(K,1,T),!Z.isZero())Z.negative^=1;if(V)V.words[T]=k}if(V)V.strip();if(Z.strip(),G!=="div"&&F!==0)Z.iushrn(F);return{div:V||null,mod:Z}},U.prototype.divmod=function(Y,G,F){if(W(!Y.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var Z,K,O;if(this.negative!==0&&Y.negative===0){if(O=this.neg().divmod(Y,G),G!=="mod")Z=O.div.neg();if(G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.iadd(Y)}return{div:Z,mod:K}}if(this.negative===0&&Y.negative!==0){if(O=this.divmod(Y.neg(),G),G!=="mod")Z=O.div.neg();return{div:Z,mod:O.mod}}if((this.negative&Y.negative)!==0){if(O=this.neg().divmod(Y.neg(),G),G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.isub(Y)}return{div:O.div,mod:K}}if(Y.length>this.length||this.cmp(Y)<0)return{div:new U(0),mod:this};if(Y.length===1){if(G==="div")return{div:this.divn(Y.words[0]),mod:null};if(G==="mod")return{div:null,mod:new U(this.modn(Y.words[0]))};return{div:this.divn(Y.words[0]),mod:new U(this.modn(Y.words[0]))}}return this._wordDiv(Y,G)},U.prototype.div=function(Y){return this.divmod(Y,"div",!1).div},U.prototype.mod=function(Y){return this.divmod(Y,"mod",!1).mod},U.prototype.umod=function(Y){return this.divmod(Y,"mod",!0).mod},U.prototype.divRound=function(Y){var G=this.divmod(Y);if(G.mod.isZero())return G.div;var F=G.div.negative!==0?G.mod.isub(Y):G.mod,Z=Y.ushrn(1),K=Y.andln(1),O=F.cmp(Z);if(O<0||K===1&&O===0)return G.div;return G.div.negative!==0?G.div.isubn(1):G.div.iaddn(1)},U.prototype.modn=function(Y){W(Y<=67108863);var G=67108864%Y,F=0;for(var Z=this.length-1;Z>=0;Z--)F=(G*F+(this.words[Z]|0))%Y;return F},U.prototype.idivn=function(Y){W(Y<=67108863);var G=0;for(var F=this.length-1;F>=0;F--){var Z=(this.words[F]|0)+G*67108864;this.words[F]=Z/Y|0,G=Z%Y}return this.strip()},U.prototype.divn=function(Y){return this.clone().idivn(Y)},U.prototype.egcd=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=new U(0),I=new U(1),z=0;while(G.isEven()&&F.isEven())G.iushrn(1),F.iushrn(1),++z;var V=F.clone(),q=G.clone();while(!G.isZero()){for(var R=0,T=1;(G.words[0]&T)===0&&R<26;++R,T<<=1);if(R>0){G.iushrn(R);while(R-- >0){if(Z.isOdd()||K.isOdd())Z.iadd(V),K.isub(q);Z.iushrn(1),K.iushrn(1)}}for(var k=0,g=1;(F.words[0]&g)===0&&k<26;++k,g<<=1);if(k>0){F.iushrn(k);while(k-- >0){if(O.isOdd()||I.isOdd())O.iadd(V),I.isub(q);O.iushrn(1),I.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(O),K.isub(I);else F.isub(G),O.isub(Z),I.isub(K)}return{a:O,b:I,gcd:F.iushln(z)}},U.prototype._invmp=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=F.clone();while(G.cmpn(1)>0&&F.cmpn(1)>0){for(var I=0,z=1;(G.words[0]&z)===0&&I<26;++I,z<<=1);if(I>0){G.iushrn(I);while(I-- >0){if(Z.isOdd())Z.iadd(O);Z.iushrn(1)}}for(var V=0,q=1;(F.words[0]&q)===0&&V<26;++V,q<<=1);if(V>0){F.iushrn(V);while(V-- >0){if(K.isOdd())K.iadd(O);K.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(K);else F.isub(G),K.isub(Z)}var R;if(G.cmpn(1)===0)R=Z;else R=K;if(R.cmpn(0)<0)R.iadd(Y);return R},U.prototype.gcd=function(Y){if(this.isZero())return Y.abs();if(Y.isZero())return this.abs();var G=this.clone(),F=Y.clone();G.negative=0,F.negative=0;for(var Z=0;G.isEven()&&F.isEven();Z++)G.iushrn(1),F.iushrn(1);do{while(G.isEven())G.iushrn(1);while(F.isEven())F.iushrn(1);var K=G.cmp(F);if(K<0){var O=G;G=F,F=O}else if(K===0||F.cmpn(1)===0)break;G.isub(F)}while(!0);return F.iushln(Z)},U.prototype.invm=function(Y){return this.egcd(Y).a.umod(Y)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(Y){return this.words[0]&Y},U.prototype.bincn=function(Y){W(typeof Y==="number");var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return this._expand(F+1),this.words[F]|=Z,this;var K=Z;for(var O=F;K!==0&&O<this.length;O++){var I=this.words[O]|0;I+=K,K=I>>>26,I&=67108863,this.words[O]=I}if(K!==0)this.words[O]=K,this.length++;return this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(Y){var G=Y<0;if(this.negative!==0&&!G)return-1;if(this.negative===0&&G)return 1;this.strip();var F;if(this.length>1)F=1;else{if(G)Y=-Y;W(Y<=67108863,"Number is too big");var Z=this.words[0]|0;F=Z===Y?0:Z<Y?-1:1}if(this.negative!==0)return-F|0;return F},U.prototype.cmp=function(Y){if(this.negative!==0&&Y.negative===0)return-1;if(this.negative===0&&Y.negative!==0)return 1;var G=this.ucmp(Y);if(this.negative!==0)return-G|0;return G},U.prototype.ucmp=function(Y){if(this.length>Y.length)return 1;if(this.length<Y.length)return-1;var G=0;for(var F=this.length-1;F>=0;F--){var Z=this.words[F]|0,K=Y.words[F]|0;if(Z===K)continue;if(Z<K)G=-1;else if(Z>K)G=1;break}return G},U.prototype.gtn=function(Y){return this.cmpn(Y)===1},U.prototype.gt=function(Y){return this.cmp(Y)===1},U.prototype.gten=function(Y){return this.cmpn(Y)>=0},U.prototype.gte=function(Y){return this.cmp(Y)>=0},U.prototype.ltn=function(Y){return this.cmpn(Y)===-1},U.prototype.lt=function(Y){return this.cmp(Y)===-1},U.prototype.lten=function(Y){return this.cmpn(Y)<=0},U.prototype.lte=function(Y){return this.cmp(Y)<=0},U.prototype.eqn=function(Y){return this.cmpn(Y)===0},U.prototype.eq=function(Y){return this.cmp(Y)===0},U.red=function(Y){return new u(Y)},U.prototype.toRed=function(Y){return W(!this.red,"Already a number in reduction context"),W(this.negative===0,"red works only with positives"),Y.convertTo(this)._forceRed(Y)},U.prototype.fromRed=function(){return W(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(Y){return this.red=Y,this},U.prototype.forceRed=function(Y){return W(!this.red,"Already a number in reduction context"),this._forceRed(Y)},U.prototype.redAdd=function(Y){return W(this.red,"redAdd works only with red numbers"),this.red.add(this,Y)},U.prototype.redIAdd=function(Y){return W(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Y)},U.prototype.redSub=function(Y){return W(this.red,"redSub works only with red numbers"),this.red.sub(this,Y)},U.prototype.redISub=function(Y){return W(this.red,"redISub works only with red numbers"),this.red.isub(this,Y)},U.prototype.redShl=function(Y){return W(this.red,"redShl works only with red numbers"),this.red.shl(this,Y)},U.prototype.redMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.mul(this,Y)},U.prototype.redIMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.imul(this,Y)},U.prototype.redSqr=function(){return W(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return W(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return W(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return W(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return W(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(Y){return W(this.red&&!Y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Y)};var w={k256:null,p224:null,p192:null,p25519:null};function y(Y,G){this.name=Y,this.p=new U(G,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var Y=new U(null);return Y.words=Array(Math.ceil(this.n/13)),Y},y.prototype.ireduce=function(Y){var G=Y,F;do this.split(G,this.tmp),G=this.imulK(G),G=G.iadd(this.tmp),F=G.bitLength();while(F>this.n);var Z=F<this.n?-1:G.ucmp(this.p);if(Z===0)G.words[0]=0,G.length=1;else if(Z>0)G.isub(this.p);else if(G.strip!==void 0)G.strip();else G._strip();return G},y.prototype.split=function(Y,G){Y.iushrn(this.n,0,G)},y.prototype.imulK=function(Y){return Y.imul(this.k)};function n(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}H(n,y),n.prototype.split=function(Y,G){var F=4194303,Z=Math.min(Y.length,9);for(var K=0;K<Z;K++)G.words[K]=Y.words[K];if(G.length=Z,Y.length<=9){Y.words[0]=0,Y.length=1;return}var O=Y.words[9];G.words[G.length++]=O&F;for(K=10;K<Y.length;K++){var I=Y.words[K]|0;Y.words[K-10]=(I&F)<<4|O>>>22,O=I}if(O>>>=22,Y.words[K-10]=O,O===0&&Y.length>10)Y.length-=10;else Y.length-=9},n.prototype.imulK=function(Y){Y.words[Y.length]=0,Y.words[Y.length+1]=0,Y.length+=2;var G=0;for(var F=0;F<Y.length;F++){var Z=Y.words[F]|0;G+=Z*977,Y.words[F]=G&67108863,G=Z*64+(G/67108864|0)}if(Y.words[Y.length-1]===0){if(Y.length--,Y.words[Y.length-1]===0)Y.length--}return Y};function r(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}H(r,y);function s(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}H(s,y);function i(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}H(i,y),i.prototype.imulK=function(Y){var G=0;for(var F=0;F<Y.length;F++){var Z=(Y.words[F]|0)*19+G,K=Z&67108863;Z>>>=26,Y.words[F]=K,G=Z}if(G!==0)Y.words[Y.length++]=G;return Y},U._prime=function(Y){if(w[Y])return w[Y];var G;if(Y==="k256")G=new n;else if(Y==="p224")G=new r;else if(Y==="p192")G=new s;else if(Y==="p25519")G=new i;else throw Error("Unknown prime "+Y);return w[Y]=G,G};function u(Y){if(typeof Y==="string"){var G=U._prime(Y);this.m=G.p,this.prime=G}else W(Y.gtn(1),"modulus must be greater than 1"),this.m=Y,this.prime=null}u.prototype._verify1=function(Y){W(Y.negative===0,"red works only with positives"),W(Y.red,"red works only with red numbers")},u.prototype._verify2=function(Y,G){W((Y.negative|G.negative)===0,"red works only with positives"),W(Y.red&&Y.red===G.red,"red works only with red numbers")},u.prototype.imod=function(Y){if(this.prime)return this.prime.ireduce(Y)._forceRed(this);return Y.umod(this.m)._forceRed(this)},u.prototype.neg=function(Y){if(Y.isZero())return Y.clone();return this.m.sub(Y)._forceRed(this)},u.prototype.add=function(Y,G){this._verify2(Y,G);var F=Y.add(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},u.prototype.iadd=function(Y,G){this._verify2(Y,G);var F=Y.iadd(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F},u.prototype.sub=function(Y,G){this._verify2(Y,G);var F=Y.sub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},u.prototype.isub=function(Y,G){this._verify2(Y,G);var F=Y.isub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F},u.prototype.shl=function(Y,G){return this._verify1(Y),this.imod(Y.ushln(G))},u.prototype.imul=function(Y,G){return this._verify2(Y,G),this.imod(Y.imul(G))},u.prototype.mul=function(Y,G){return this._verify2(Y,G),this.imod(Y.mul(G))},u.prototype.isqr=function(Y){return this.imul(Y,Y.clone())},u.prototype.sqr=function(Y){return this.mul(Y,Y)},u.prototype.sqrt=function(Y){if(Y.isZero())return Y.clone();var G=this.m.andln(3);if(W(G%2===1),G===3){var F=this.m.add(new U(1)).iushrn(2);return this.pow(Y,F)}var Z=this.m.subn(1),K=0;while(!Z.isZero()&&Z.andln(1)===0)K++,Z.iushrn(1);W(!Z.isZero());var O=new U(1).toRed(this),I=O.redNeg(),z=this.m.subn(1).iushrn(1),V=this.m.bitLength();V=new U(2*V*V).toRed(this);while(this.pow(V,z).cmp(I)!==0)V.redIAdd(I);var q=this.pow(V,Z),R=this.pow(Y,Z.addn(1).iushrn(1)),T=this.pow(Y,Z),k=K;while(T.cmp(O)!==0){var g=T;for(var b=0;g.cmp(O)!==0;b++)g=g.redSqr();W(b<k);var t=this.pow(q,new U(1).iushln(k-b-1));R=R.redMul(t),q=t.redSqr(),T=T.redMul(q),k=b}return R},u.prototype.invm=function(Y){var G=Y._invmp(this.m);if(G.negative!==0)return G.negative=0,this.imod(G).redNeg();else return this.imod(G)},u.prototype.pow=function(Y,G){if(G.isZero())return new U(1).toRed(this);if(G.cmpn(1)===0)return Y.clone();var F=4,Z=Array(1<<F);Z[0]=new U(1).toRed(this),Z[1]=Y;for(var K=2;K<Z.length;K++)Z[K]=this.mul(Z[K-1],Y);var O=Z[0],I=0,z=0,V=G.bitLength()%26;if(V===0)V=26;for(K=G.length-1;K>=0;K--){var q=G.words[K];for(var R=V-1;R>=0;R--){var T=q>>R&1;if(O!==Z[0])O=this.sqr(O);if(T===0&&I===0){z=0;continue}if(I<<=1,I|=T,z++,z!==F&&(K!==0||R!==0))continue;O=this.mul(O,Z[I]),z=0,I=0}V=26}return O},u.prototype.convertTo=function(Y){var G=Y.umod(this.m);return G===Y?G.clone():G},u.prototype.convertFrom=function(Y){var G=Y.clone();return G.red=null,G},U.mont=function(Y){return new Q0(Y)};function Q0(Y){if(u.call(this,Y),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new U(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)}H(Q0,u),Q0.prototype.convertTo=function(Y){return this.imod(Y.ushln(this.shift))},Q0.prototype.convertFrom=function(Y){var G=this.imod(Y.mul(this.rinv));return G.red=null,G},Q0.prototype.imul=function(Y,G){if(Y.isZero()||G.isZero())return Y.words[0]=0,Y.length=1,Y;var F=Y.imul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.mul=function(Y,G){if(Y.isZero()||G.isZero())return new U(0)._forceRed(this);var F=Y.mul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.invm=function(Y){var G=this.imod(Y._invmp(this.m).mul(this.r2));return G._forceRed(this)}})(typeof J>"u"||J,Q)}),yJ=C0((Q,J)=>{J.exports=X;function X($,W){if(!$)throw Error(W||"Assertion failed")}X.equal=function($,W,H){if($!=W)throw Error(H||"Assertion failed: "+$+" != "+W)}}),BG=C0((Q)=>{var J=Q;function X(H,U){if(Array.isArray(H))return H.slice();if(!H)return[];var C=[];if(typeof H!=="string"){for(var A=0;A<H.length;A++)C[A]=H[A]|0;return C}if(U==="hex"){if(H=H.replace(/[^a-z0-9]+/ig,""),H.length%2!==0)H="0"+H;for(var A=0;A<H.length;A+=2)C.push(parseInt(H[A]+H[A+1],16))}else for(var A=0;A<H.length;A++){var M=H.charCodeAt(A),D=M>>8,L=M&255;if(D)C.push(D,L);else C.push(L)}return C}J.toArray=X;function $(H){if(H.length===1)return"0"+H;else return H}J.zero2=$;function W(H){var U="";for(var C=0;C<H.length;C++)U+=$(H[C].toString(16));return U}J.toHex=W,J.encode=function(H,U){if(U==="hex")return W(H);else return H}}),eQ=C0((Q)=>{var J=Q,X=jJ(),$=yJ(),W=BG();J.assert=$,J.toArray=W.toArray,J.zero2=W.zero2,J.toHex=W.toHex,J.encode=W.encode;function H(D,L,P){var E=Array(Math.max(D.bitLength(),P)+1),S;for(S=0;S<E.length;S+=1)E[S]=0;var B=1<<L+1,j=D.clone();for(S=0;S<E.length;S++){var N,v=j.andln(B-1);if(j.isOdd()){if(v>(B>>1)-1)N=(B>>1)-v;else N=v;j.isubn(N)}else N=0;E[S]=N,j.iushrn(1)}return E}J.getNAF=H;function U(D,L){var P=[[],[]];D=D.clone(),L=L.clone();var E=0,S=0,B;while(D.cmpn(-E)>0||L.cmpn(-S)>0){var j=D.andln(3)+E&3,N=L.andln(3)+S&3;if(j===3)j=-1;if(N===3)N=-1;var v;if((j&1)===0)v=0;else if(B=D.andln(7)+E&7,(B===3||B===5)&&N===2)v=-j;else v=j;P[0].push(v);var x;if((N&1)===0)x=0;else if(B=L.andln(7)+S&7,(B===3||B===5)&&j===2)x=-N;else x=N;if(P[1].push(x),2*E===v+1)E=1-E;if(2*S===x+1)S=1-S;D.iushrn(1),L.iushrn(1)}return P}J.getJSF=U;function C(D,L,P){var E="_"+L;D.prototype[L]=function(){return this[E]!==void 0?this[E]:this[E]=P.call(this)}}J.cachedProperty=C;function A(D){return typeof D==="string"?J.toArray(D,"hex"):D}J.parseBytes=A;function M(D){return new X(D,"hex","le")}J.intFromLE=M}),kG=C0((Q,J)=>{var X;J.exports=function(H){if(!X)X=new $(null);return X.generate(H)};function $(H){this.rand=H}if(J.exports.Rand=$,$.prototype.generate=function(H){return this._rand(H)},$.prototype._rand=function(H){if(this.rand.getBytes)return this.rand.getBytes(H);var U=new Uint8Array(H);for(var C=0;C<U.length;C++)U[C]=this.rand.getByte();return U},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)$.prototype._rand=function(H){var U=new Uint8Array(H);return self.crypto.getRandomValues(U),U};else if(self.msCrypto&&self.msCrypto.getRandomValues)$.prototype._rand=function(H){var U=new Uint8Array(H);return self.msCrypto.getRandomValues(U),U};else if(typeof window==="object")$.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(W=(XQ(),u0($Q)),typeof W.randomBytes!=="function")throw Error("Not supported");$.prototype._rand=function(H){return W.randomBytes(H)}}catch(H){}var W}),IY=C0((Q,J)=>{var X=jJ(),$=eQ(),W=$.getNAF,H=$.getJSF,U=$.assert;function C(M,D){this.type=M,this.p=new X(D.p,16),this.red=D.prime?X.red(D.prime):X.mont(this.p),this.zero=new X(0).toRed(this.red),this.one=new X(1).toRed(this.red),this.two=new X(2).toRed(this.red),this.n=D.n&&new X(D.n,16),this.g=D.g&&this.pointFromJSON(D.g,D.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var L=this.n&&this.p.div(this.n);if(!L||L.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}J.exports=C,C.prototype.point=function(){throw Error("Not implemented")},C.prototype.validate=function(){throw Error("Not implemented")},C.prototype._fixedNafMul=function(M,D){U(M.precomputed);var L=M._getDoubles(),P=W(D,1,this._bitLength),E=(1<<L.step+1)-(L.step%2===0?2:1);E/=3;var S=[],B,j;for(B=0;B<P.length;B+=L.step){j=0;for(var N=B+L.step-1;N>=B;N--)j=(j<<1)+P[N];S.push(j)}var v=this.jpoint(null,null,null),x=this.jpoint(null,null,null);for(var w=E;w>0;w--){for(B=0;B<S.length;B++)if(j=S[B],j===w)x=x.mixedAdd(L.points[B]);else if(j===-w)x=x.mixedAdd(L.points[B].neg());v=v.add(x)}return v.toP()},C.prototype._wnafMul=function(M,D){var L=4,P=M._getNAFPoints(L);L=P.wnd;var E=P.points,S=W(D,L,this._bitLength),B=this.jpoint(null,null,null);for(var j=S.length-1;j>=0;j--){for(var N=0;j>=0&&S[j]===0;j--)N++;if(j>=0)N++;if(B=B.dblp(N),j<0)break;var v=S[j];if(U(v!==0),M.type==="affine")if(v>0)B=B.mixedAdd(E[v-1>>1]);else B=B.mixedAdd(E[-v-1>>1].neg());else if(v>0)B=B.add(E[v-1>>1]);else B=B.add(E[-v-1>>1].neg())}return M.type==="affine"?B.toP():B},C.prototype._wnafMulAdd=function(M,D,L,P,E){var S=this._wnafT1,B=this._wnafT2,j=this._wnafT3,N=0,v,x,w;for(v=0;v<P;v++){w=D[v];var y=w._getNAFPoints(M);S[v]=y.wnd,B[v]=y.points}for(v=P-1;v>=1;v-=2){var n=v-1,r=v;if(S[n]!==1||S[r]!==1){j[n]=W(L[n],S[n],this._bitLength),j[r]=W(L[r],S[r],this._bitLength),N=Math.max(j[n].length,N),N=Math.max(j[r].length,N);continue}var s=[D[n],null,null,D[r]];if(D[n].y.cmp(D[r].y)===0)s[1]=D[n].add(D[r]),s[2]=D[n].toJ().mixedAdd(D[r].neg());else if(D[n].y.cmp(D[r].y.redNeg())===0)s[1]=D[n].toJ().mixedAdd(D[r]),s[2]=D[n].add(D[r].neg());else s[1]=D[n].toJ().mixedAdd(D[r]),s[2]=D[n].toJ().mixedAdd(D[r].neg());var i=[-3,-1,-5,-7,0,7,5,1,3],u=H(L[n],L[r]);N=Math.max(u[0].length,N),j[n]=Array(N),j[r]=Array(N);for(x=0;x<N;x++){var Q0=u[0][x]|0,Y=u[1][x]|0;j[n][x]=i[(Q0+1)*3+(Y+1)],j[r][x]=0,B[n]=s}}var G=this.jpoint(null,null,null),F=this._wnafT4;for(v=N;v>=0;v--){var Z=0;while(v>=0){var K=!0;for(x=0;x<P;x++)if(F[x]=j[x][v]|0,F[x]!==0)K=!1;if(!K)break;Z++,v--}if(v>=0)Z++;if(G=G.dblp(Z),v<0)break;for(x=0;x<P;x++){var O=F[x];if(O===0)continue;else if(O>0)w=B[x][O-1>>1];else if(O<0)w=B[x][-O-1>>1].neg();if(w.type==="affine")G=G.mixedAdd(w);else G=G.add(w)}}for(v=0;v<P;v++)B[v]=null;if(E)return G;else return G.toP()};function A(M,D){this.curve=M,this.type=D,this.precomputed=null}C.BasePoint=A,A.prototype.eq=function(){throw Error("Not implemented")},A.prototype.validate=function(){return this.curve.validate(this)},C.prototype.decodePoint=function(M,D){M=$.toArray(M,D);var L=this.p.byteLength();if((M[0]===4||M[0]===6||M[0]===7)&&M.length-1===2*L){if(M[0]===6)U(M[M.length-1]%2===0);else if(M[0]===7)U(M[M.length-1]%2===1);var P=this.point(M.slice(1,1+L),M.slice(1+L,1+2*L));return P}else if((M[0]===2||M[0]===3)&&M.length-1===L)return this.pointFromX(M.slice(1,1+L),M[0]===3);throw Error("Unknown point format")},A.prototype.encodeCompressed=function(M){return this.encode(M,!0)},A.prototype._encode=function(M){var D=this.curve.p.byteLength(),L=this.getX().toArray("be",D);if(M)return[this.getY().isEven()?2:3].concat(L);return[4].concat(L,this.getY().toArray("be",D))},A.prototype.encode=function(M,D){return $.encode(this._encode(D),M)},A.prototype.precompute=function(M){if(this.precomputed)return this;var D={doubles:null,naf:null,beta:null};return D.naf=this._getNAFPoints(8),D.doubles=this._getDoubles(4,M),D.beta=this._getBeta(),this.precomputed=D,this},A.prototype._hasDoubles=function(M){if(!this.precomputed)return!1;var D=this.precomputed.doubles;if(!D)return!1;return D.points.length>=Math.ceil((M.bitLength()+1)/D.step)},A.prototype._getDoubles=function(M,D){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var L=[this],P=this;for(var E=0;E<D;E+=M){for(var S=0;S<M;S++)P=P.dbl();L.push(P)}return{step:M,points:L}},A.prototype._getNAFPoints=function(M){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var D=[this],L=(1<<M)-1,P=L===1?null:this.dbl();for(var E=1;E<L;E++)D[E]=D[E-1].add(P);return{wnd:M,points:D}},A.prototype._getBeta=function(){return null},A.prototype.dblp=function(M){var D=this;for(var L=0;L<M;L++)D=D.dbl();return D}}),tF=C0((Q,J)=>{if(typeof Object.create==="function")J.exports=function(X,$){if($)X.super_=$,X.prototype=Object.create($.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}})};else J.exports=function(X,$){if($){X.super_=$;var W=function(){};W.prototype=$.prototype,X.prototype=new W,X.prototype.constructor=X}}}),rQ=C0((Q,J)=>{try{if(X=(Y$(),u0(X$)),typeof X.inherits!=="function")throw"";J.exports=X.inherits}catch($){J.exports=tF()}var X}),eF=C0((Q,J)=>{var X=eQ(),$=jJ(),W=rQ(),H=IY(),U=X.assert;function C(D){H.call(this,"short",D),this.a=new $(D.a,16).toRed(this.red),this.b=new $(D.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(D),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}W(C,H),J.exports=C,C.prototype._getEndomorphism=function(D){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var L,P;if(D.beta)L=new $(D.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);L=E[0].cmp(E[1])<0?E[0]:E[1],L=L.toRed(this.red)}if(D.lambda)P=new $(D.lambda,16);else{var S=this._getEndoRoots(this.n);if(this.g.mul(S[0]).x.cmp(this.g.x.redMul(L))===0)P=S[0];else P=S[1],U(this.g.mul(P).x.cmp(this.g.x.redMul(L))===0)}var B;if(D.basis)B=D.basis.map(function(j){return{a:new $(j.a,16),b:new $(j.b,16)}});else B=this._getEndoBasis(P);return{beta:L,lambda:P,basis:B}},C.prototype._getEndoRoots=function(D){var L=D===this.p?this.red:$.mont(D),P=new $(2).toRed(L).redInvm(),E=P.redNeg(),S=new $(3).toRed(L).redNeg().redSqrt().redMul(P),B=E.redAdd(S).fromRed(),j=E.redSub(S).fromRed();return[B,j]},C.prototype._getEndoBasis=function(D){var L=this.n.ushrn(Math.floor(this.n.bitLength()/2)),P=D,E=this.n.clone(),S=new $(1),B=new $(0),j=new $(0),N=new $(1),v,x,w,y,n,r,s,i=0,u,Q0;while(P.cmpn(0)!==0){var Y=E.div(P);u=E.sub(Y.mul(P)),Q0=j.sub(Y.mul(S));var G=N.sub(Y.mul(B));if(!w&&u.cmp(L)<0)v=s.neg(),x=S,w=u.neg(),y=Q0;else if(w&&++i===2)break;s=u,E=P,P=u,j=S,S=Q0,N=B,B=G}n=u.neg(),r=Q0;var F=w.sqr().add(y.sqr()),Z=n.sqr().add(r.sqr());if(Z.cmp(F)>=0)n=v,r=x;if(w.negative)w=w.neg(),y=y.neg();if(n.negative)n=n.neg(),r=r.neg();return[{a:w,b:y},{a:n,b:r}]},C.prototype._endoSplit=function(D){var L=this.endo.basis,P=L[0],E=L[1],S=E.b.mul(D).divRound(this.n),B=P.b.neg().mul(D).divRound(this.n),j=S.mul(P.a),N=B.mul(E.a),v=S.mul(P.b),x=B.mul(E.b),w=D.sub(j).sub(N),y=v.add(x).neg();return{k1:w,k2:y}},C.prototype.pointFromX=function(D,L){if(D=new $(D,16),!D.red)D=D.toRed(this.red);var P=D.redSqr().redMul(D).redIAdd(D.redMul(this.a)).redIAdd(this.b),E=P.redSqrt();if(E.redSqr().redSub(P).cmp(this.zero)!==0)throw Error("invalid point");var S=E.fromRed().isOdd();if(L&&!S||!L&&S)E=E.redNeg();return this.point(D,E)},C.prototype.validate=function(D){if(D.inf)return!0;var{x:L,y:P}=D,E=this.a.redMul(L),S=L.redSqr().redMul(L).redIAdd(E).redIAdd(this.b);return P.redSqr().redISub(S).cmpn(0)===0},C.prototype._endoWnafMulAdd=function(D,L,P){var E=this._endoWnafT1,S=this._endoWnafT2;for(var B=0;B<D.length;B++){var j=this._endoSplit(L[B]),N=D[B],v=N._getBeta();if(j.k1.negative)j.k1.ineg(),N=N.neg(!0);if(j.k2.negative)j.k2.ineg(),v=v.neg(!0);E[B*2]=N,E[B*2+1]=v,S[B*2]=j.k1,S[B*2+1]=j.k2}var x=this._wnafMulAdd(1,E,S,B*2,P);for(var w=0;w<B*2;w++)E[w]=null,S[w]=null;return x};function A(D,L,P,E){if(H.BasePoint.call(this,D,"affine"),L===null&&P===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new $(L,16),this.y=new $(P,16),E)this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=!1}}W(A,H.BasePoint),C.prototype.point=function(D,L,P){return new A(this,D,L,P)},C.prototype.pointFromJSON=function(D,L){return A.fromJSON(this,D,L)},A.prototype._getBeta=function(){if(!this.curve.endo)return;var D=this.precomputed;if(D&&D.beta)return D.beta;var L=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(D){var P=this.curve,E=function(S){return P.point(S.x.redMul(P.endo.beta),S.y)};D.beta=L,L.precomputed={beta:null,naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(E)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(E)}}}return L},A.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[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)}}]},A.fromJSON=function(D,L,P){if(typeof L==="string")L=JSON.parse(L);var E=D.point(L[0],L[1],P);if(!L[2])return E;function S(j){return D.point(j[0],j[1],P)}var B=L[2];return E.precomputed={beta:null,doubles:B.doubles&&{step:B.doubles.step,points:[E].concat(B.doubles.points.map(S))},naf:B.naf&&{wnd:B.naf.wnd,points:[E].concat(B.naf.points.map(S))}},E},A.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},A.prototype.isInfinity=function(){return this.inf},A.prototype.add=function(D){if(this.inf)return D;if(D.inf)return this;if(this.eq(D))return this.dbl();if(this.neg().eq(D))return this.curve.point(null,null);if(this.x.cmp(D.x)===0)return this.curve.point(null,null);var L=this.y.redSub(D.y);if(L.cmpn(0)!==0)L=L.redMul(this.x.redSub(D.x).redInvm());var P=L.redSqr().redISub(this.x).redISub(D.x),E=L.redMul(this.x.redSub(P)).redISub(this.y);return this.curve.point(P,E)},A.prototype.dbl=function(){if(this.inf)return this;var D=this.y.redAdd(this.y);if(D.cmpn(0)===0)return this.curve.point(null,null);var L=this.curve.a,P=this.x.redSqr(),E=D.redInvm(),S=P.redAdd(P).redIAdd(P).redIAdd(L).redMul(E),B=S.redSqr().redISub(this.x.redAdd(this.x)),j=S.redMul(this.x.redSub(B)).redISub(this.y);return this.curve.point(B,j)},A.prototype.getX=function(){return this.x.fromRed()},A.prototype.getY=function(){return this.y.fromRed()},A.prototype.mul=function(D){if(D=new $(D,16),this.isInfinity())return this;else if(this._hasDoubles(D))return this.curve._fixedNafMul(this,D);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[D]);else return this.curve._wnafMul(this,D)},A.prototype.mulAdd=function(D,L,P){var E=[this,L],S=[D,P];if(this.curve.endo)return this.curve._endoWnafMulAdd(E,S);else return this.curve._wnafMulAdd(1,E,S,2)},A.prototype.jmulAdd=function(D,L,P){var E=[this,L],S=[D,P];if(this.curve.endo)return this.curve._endoWnafMulAdd(E,S,!0);else return this.curve._wnafMulAdd(1,E,S,2,!0)},A.prototype.eq=function(D){return this===D||this.inf===D.inf&&(this.inf||this.x.cmp(D.x)===0&&this.y.cmp(D.y)===0)},A.prototype.neg=function(D){if(this.inf)return this;var L=this.curve.point(this.x,this.y.redNeg());if(D&&this.precomputed){var P=this.precomputed,E=function(S){return S.neg()};L.precomputed={naf:P.naf&&{wnd:P.naf.wnd,points:P.naf.points.map(E)},doubles:P.doubles&&{step:P.doubles.step,points:P.doubles.points.map(E)}}}return L},A.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var D=this.curve.jpoint(this.x,this.y,this.curve.one);return D};function M(D,L,P,E){if(H.BasePoint.call(this,D,"jacobian"),L===null&&P===null&&E===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new $(0);else this.x=new $(L,16),this.y=new $(P,16),this.z=new $(E,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}W(M,H.BasePoint),C.prototype.jpoint=function(D,L,P){return new M(this,D,L,P)},M.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var D=this.z.redInvm(),L=D.redSqr(),P=this.x.redMul(L),E=this.y.redMul(L).redMul(D);return this.curve.point(P,E)},M.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},M.prototype.add=function(D){if(this.isInfinity())return D;if(D.isInfinity())return this;var L=D.z.redSqr(),P=this.z.redSqr(),E=this.x.redMul(L),S=D.x.redMul(P),B=this.y.redMul(L.redMul(D.z)),j=D.y.redMul(P.redMul(this.z)),N=E.redSub(S),v=B.redSub(j);if(N.cmpn(0)===0)if(v.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var x=N.redSqr(),w=x.redMul(N),y=E.redMul(x),n=v.redSqr().redIAdd(w).redISub(y).redISub(y),r=v.redMul(y.redISub(n)).redISub(B.redMul(w)),s=this.z.redMul(D.z).redMul(N);return this.curve.jpoint(n,r,s)},M.prototype.mixedAdd=function(D){if(this.isInfinity())return D.toJ();if(D.isInfinity())return this;var L=this.z.redSqr(),P=this.x,E=D.x.redMul(L),S=this.y,B=D.y.redMul(L).redMul(this.z),j=P.redSub(E),N=S.redSub(B);if(j.cmpn(0)===0)if(N.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var v=j.redSqr(),x=v.redMul(j),w=P.redMul(v),y=N.redSqr().redIAdd(x).redISub(w).redISub(w),n=N.redMul(w.redISub(y)).redISub(S.redMul(x)),r=this.z.redMul(j);return this.curve.jpoint(y,n,r)},M.prototype.dblp=function(D){if(D===0)return this;if(this.isInfinity())return this;if(!D)return this.dbl();var L;if(this.curve.zeroA||this.curve.threeA){var P=this;for(L=0;L<D;L++)P=P.dbl();return P}var E=this.curve.a,S=this.curve.tinv,B=this.x,j=this.y,N=this.z,v=N.redSqr().redSqr(),x=j.redAdd(j);for(L=0;L<D;L++){var w=B.redSqr(),y=x.redSqr(),n=y.redSqr(),r=w.redAdd(w).redIAdd(w).redIAdd(E.redMul(v)),s=B.redMul(y),i=r.redSqr().redISub(s.redAdd(s)),u=s.redISub(i),Q0=r.redMul(u);Q0=Q0.redIAdd(Q0).redISub(n);var Y=x.redMul(N);if(L+1<D)v=v.redMul(n);B=i,N=Y,x=Q0}return this.curve.jpoint(B,x.redMul(S),N)},M.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()},M.prototype._zeroDbl=function(){var D,L,P;if(this.zOne){var E=this.x.redSqr(),S=this.y.redSqr(),B=S.redSqr(),j=this.x.redAdd(S).redSqr().redISub(E).redISub(B);j=j.redIAdd(j);var N=E.redAdd(E).redIAdd(E),v=N.redSqr().redISub(j).redISub(j),x=B.redIAdd(B);x=x.redIAdd(x),x=x.redIAdd(x),D=v,L=N.redMul(j.redISub(v)).redISub(x),P=this.y.redAdd(this.y)}else{var w=this.x.redSqr(),y=this.y.redSqr(),n=y.redSqr(),r=this.x.redAdd(y).redSqr().redISub(w).redISub(n);r=r.redIAdd(r);var s=w.redAdd(w).redIAdd(w),i=s.redSqr(),u=n.redIAdd(n);u=u.redIAdd(u),u=u.redIAdd(u),D=i.redISub(r).redISub(r),L=s.redMul(r.redISub(D)).redISub(u),P=this.y.redMul(this.z),P=P.redIAdd(P)}return this.curve.jpoint(D,L,P)},M.prototype._threeDbl=function(){var D,L,P;if(this.zOne){var E=this.x.redSqr(),S=this.y.redSqr(),B=S.redSqr(),j=this.x.redAdd(S).redSqr().redISub(E).redISub(B);j=j.redIAdd(j);var N=E.redAdd(E).redIAdd(E).redIAdd(this.curve.a),v=N.redSqr().redISub(j).redISub(j);D=v;var x=B.redIAdd(B);x=x.redIAdd(x),x=x.redIAdd(x),L=N.redMul(j.redISub(v)).redISub(x),P=this.y.redAdd(this.y)}else{var w=this.z.redSqr(),y=this.y.redSqr(),n=this.x.redMul(y),r=this.x.redSub(w).redMul(this.x.redAdd(w));r=r.redAdd(r).redIAdd(r);var s=n.redIAdd(n);s=s.redIAdd(s);var i=s.redAdd(s);D=r.redSqr().redISub(i),P=this.y.redAdd(this.z).redSqr().redISub(y).redISub(w);var u=y.redSqr();u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u),L=r.redMul(s.redISub(D)).redISub(u)}return this.curve.jpoint(D,L,P)},M.prototype._dbl=function(){var D=this.curve.a,L=this.x,P=this.y,E=this.z,S=E.redSqr().redSqr(),B=L.redSqr(),j=P.redSqr(),N=B.redAdd(B).redIAdd(B).redIAdd(D.redMul(S)),v=L.redAdd(L);v=v.redIAdd(v);var x=v.redMul(j),w=N.redSqr().redISub(x.redAdd(x)),y=x.redISub(w),n=j.redSqr();n=n.redIAdd(n),n=n.redIAdd(n),n=n.redIAdd(n);var r=N.redMul(y).redISub(n),s=P.redAdd(P).redMul(E);return this.curve.jpoint(w,r,s)},M.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var D=this.x.redSqr(),L=this.y.redSqr(),P=this.z.redSqr(),E=L.redSqr(),S=D.redAdd(D).redIAdd(D),B=S.redSqr(),j=this.x.redAdd(L).redSqr().redISub(D).redISub(E);j=j.redIAdd(j),j=j.redAdd(j).redIAdd(j),j=j.redISub(B);var N=j.redSqr(),v=E.redIAdd(E);v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v);var x=S.redIAdd(j).redSqr().redISub(B).redISub(N).redISub(v),w=L.redMul(x);w=w.redIAdd(w),w=w.redIAdd(w);var y=this.x.redMul(N).redISub(w);y=y.redIAdd(y),y=y.redIAdd(y);var n=this.y.redMul(x.redMul(v.redISub(x)).redISub(j.redMul(N)));n=n.redIAdd(n),n=n.redIAdd(n),n=n.redIAdd(n);var r=this.z.redAdd(j).redSqr().redISub(P).redISub(N);return this.curve.jpoint(y,n,r)},M.prototype.mul=function(D,L){return D=new $(D,L),this.curve._wnafMul(this,D)},M.prototype.eq=function(D){if(D.type==="affine")return this.eq(D.toJ());if(this===D)return!0;var L=this.z.redSqr(),P=D.z.redSqr();if(this.x.redMul(P).redISub(D.x.redMul(L)).cmpn(0)!==0)return!1;var E=L.redMul(this.z),S=P.redMul(D.z);return this.y.redMul(S).redISub(D.y.redMul(E)).cmpn(0)===0},M.prototype.eqXToP=function(D){var L=this.z.redSqr(),P=D.toRed(this.curve.red).redMul(L);if(this.x.cmp(P)===0)return!0;var E=D.clone(),S=this.curve.redN.redMul(L);for(;;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(P.redIAdd(S),this.x.cmp(P)===0)return!0}},M.prototype.inspect=function(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},M.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),Q2=C0((Q,J)=>{var X=jJ(),$=rQ(),W=IY(),H=eQ();function U(A){W.call(this,"mont",A),this.a=new X(A.a,16).toRed(this.red),this.b=new X(A.b,16).toRed(this.red),this.i4=new X(4).toRed(this.red).redInvm(),this.two=new X(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}$(U,W),J.exports=U,U.prototype.validate=function(A){var M=A.normalize().x,D=M.redSqr(),L=D.redMul(M).redAdd(D.redMul(this.a)).redAdd(M),P=L.redSqrt();return P.redSqr().cmp(L)===0};function C(A,M,D){if(W.BasePoint.call(this,A,"projective"),M===null&&D===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new X(M,16),this.z=new X(D,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}$(C,W.BasePoint),U.prototype.decodePoint=function(A,M){return this.point(H.toArray(A,M),1)},U.prototype.point=function(A,M){return new C(this,A,M)},U.prototype.pointFromJSON=function(A){return C.fromJSON(this,A)},C.prototype.precompute=function(){},C.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},C.fromJSON=function(A,M){return new C(A,M[0],M[1]||A.one)},C.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},C.prototype.isInfinity=function(){return this.z.cmpn(0)===0},C.prototype.dbl=function(){var A=this.x.redAdd(this.z),M=A.redSqr(),D=this.x.redSub(this.z),L=D.redSqr(),P=M.redSub(L),E=M.redMul(L),S=P.redMul(L.redAdd(this.curve.a24.redMul(P)));return this.curve.point(E,S)},C.prototype.add=function(){throw Error("Not supported on Montgomery curve")},C.prototype.diffAdd=function(A,M){var D=this.x.redAdd(this.z),L=this.x.redSub(this.z),P=A.x.redAdd(A.z),E=A.x.redSub(A.z),S=E.redMul(D),B=P.redMul(L),j=M.z.redMul(S.redAdd(B).redSqr()),N=M.x.redMul(S.redISub(B).redSqr());return this.curve.point(j,N)},C.prototype.mul=function(A){var M=A.clone(),D=this,L=this.curve.point(null,null),P=this;for(var E=[];M.cmpn(0)!==0;M.iushrn(1))E.push(M.andln(1));for(var S=E.length-1;S>=0;S--)if(E[S]===0)D=D.diffAdd(L,P),L=L.dbl();else L=D.diffAdd(L,P),D=D.dbl();return L},C.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},C.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},C.prototype.eq=function(A){return this.getX().cmp(A.getX())===0},C.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},C.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),J2=C0((Q,J)=>{var X=eQ(),$=jJ(),W=rQ(),H=IY(),U=X.assert;function C(M){this.twisted=(M.a|0)!==1,this.mOneA=this.twisted&&(M.a|0)===-1,this.extended=this.mOneA,H.call(this,"edwards",M),this.a=new $(M.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new $(M.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new $(M.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),U(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(M.c|0)===1}W(C,H),J.exports=C,C.prototype._mulA=function(M){if(this.mOneA)return M.redNeg();else return this.a.redMul(M)},C.prototype._mulC=function(M){if(this.oneC)return M;else return this.c.redMul(M)},C.prototype.jpoint=function(M,D,L,P){return this.point(M,D,L,P)},C.prototype.pointFromX=function(M,D){if(M=new $(M,16),!M.red)M=M.toRed(this.red);var L=M.redSqr(),P=this.c2.redSub(this.a.redMul(L)),E=this.one.redSub(this.c2.redMul(this.d).redMul(L)),S=P.redMul(E.redInvm()),B=S.redSqrt();if(B.redSqr().redSub(S).cmp(this.zero)!==0)throw Error("invalid point");var j=B.fromRed().isOdd();if(D&&!j||!D&&j)B=B.redNeg();return this.point(M,B)},C.prototype.pointFromY=function(M,D){if(M=new $(M,16),!M.red)M=M.toRed(this.red);var L=M.redSqr(),P=L.redSub(this.c2),E=L.redMul(this.d).redMul(this.c2).redSub(this.a),S=P.redMul(E.redInvm());if(S.cmp(this.zero)===0)if(D)throw Error("invalid point");else return this.point(this.zero,M);var B=S.redSqrt();if(B.redSqr().redSub(S).cmp(this.zero)!==0)throw Error("invalid point");if(B.fromRed().isOdd()!==D)B=B.redNeg();return this.point(B,M)},C.prototype.validate=function(M){if(M.isInfinity())return!0;M.normalize();var D=M.x.redSqr(),L=M.y.redSqr(),P=D.redMul(this.a).redAdd(L),E=this.c2.redMul(this.one.redAdd(this.d.redMul(D).redMul(L)));return P.cmp(E)===0};function A(M,D,L,P,E){if(H.BasePoint.call(this,M,"projective"),D===null&&L===null&&P===null)this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0;else{if(this.x=new $(D,16),this.y=new $(L,16),this.z=P?new $(P,16):this.curve.one,this.t=E&&new $(E,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);if(this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t){if(this.t=this.x.redMul(this.y),!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}W(A,H.BasePoint),C.prototype.pointFromJSON=function(M){return A.fromJSON(this,M)},C.prototype.point=function(M,D,L,P){return new A(this,M,D,L,P)},A.fromJSON=function(M,D){return new A(M,D[0],D[1],D[2])},A.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},A.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},A.prototype._extDbl=function(){var M=this.x.redSqr(),D=this.y.redSqr(),L=this.z.redSqr();L=L.redIAdd(L);var P=this.curve._mulA(M),E=this.x.redAdd(this.y).redSqr().redISub(M).redISub(D),S=P.redAdd(D),B=S.redSub(L),j=P.redSub(D),N=E.redMul(B),v=S.redMul(j),x=E.redMul(j),w=B.redMul(S);return this.curve.point(N,v,w,x)},A.prototype._projDbl=function(){var M=this.x.redAdd(this.y).redSqr(),D=this.x.redSqr(),L=this.y.redSqr(),P,E,S,B,j,N;if(this.curve.twisted){B=this.curve._mulA(D);var v=B.redAdd(L);if(this.zOne)P=M.redSub(D).redSub(L).redMul(v.redSub(this.curve.two)),E=v.redMul(B.redSub(L)),S=v.redSqr().redSub(v).redSub(v);else j=this.z.redSqr(),N=v.redSub(j).redISub(j),P=M.redSub(D).redISub(L).redMul(N),E=v.redMul(B.redSub(L)),S=v.redMul(N)}else B=D.redAdd(L),j=this.curve._mulC(this.z).redSqr(),N=B.redSub(j).redSub(j),P=this.curve._mulC(M.redISub(B)).redMul(N),E=this.curve._mulC(B).redMul(D.redISub(L)),S=B.redMul(N);return this.curve.point(P,E,S)},A.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},A.prototype._extAdd=function(M){var D=this.y.redSub(this.x).redMul(M.y.redSub(M.x)),L=this.y.redAdd(this.x).redMul(M.y.redAdd(M.x)),P=this.t.redMul(this.curve.dd).redMul(M.t),E=this.z.redMul(M.z.redAdd(M.z)),S=L.redSub(D),B=E.redSub(P),j=E.redAdd(P),N=L.redAdd(D),v=S.redMul(B),x=j.redMul(N),w=S.redMul(N),y=B.redMul(j);return this.curve.point(v,x,y,w)},A.prototype._projAdd=function(M){var D=this.z.redMul(M.z),L=D.redSqr(),P=this.x.redMul(M.x),E=this.y.redMul(M.y),S=this.curve.d.redMul(P).redMul(E),B=L.redSub(S),j=L.redAdd(S),N=this.x.redAdd(this.y).redMul(M.x.redAdd(M.y)).redISub(P).redISub(E),v=D.redMul(B).redMul(N),x,w;if(this.curve.twisted)x=D.redMul(j).redMul(E.redSub(this.curve._mulA(P))),w=B.redMul(j);else x=D.redMul(j).redMul(E.redSub(P)),w=this.curve._mulC(B).redMul(j);return this.curve.point(v,x,w)},A.prototype.add=function(M){if(this.isInfinity())return M;if(M.isInfinity())return this;if(this.curve.extended)return this._extAdd(M);else return this._projAdd(M)},A.prototype.mul=function(M){if(this._hasDoubles(M))return this.curve._fixedNafMul(this,M);else return this.curve._wnafMul(this,M)},A.prototype.mulAdd=function(M,D,L){return this.curve._wnafMulAdd(1,[this,D],[M,L],2,!1)},A.prototype.jmulAdd=function(M,D,L){return this.curve._wnafMulAdd(1,[this,D],[M,L],2,!0)},A.prototype.normalize=function(){if(this.zOne)return this;var M=this.z.redInvm();if(this.x=this.x.redMul(M),this.y=this.y.redMul(M),this.t)this.t=this.t.redMul(M);return this.z=this.curve.one,this.zOne=!0,this},A.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},A.prototype.getX=function(){return this.normalize(),this.x.fromRed()},A.prototype.getY=function(){return this.normalize(),this.y.fromRed()},A.prototype.eq=function(M){return this===M||this.getX().cmp(M.getX())===0&&this.getY().cmp(M.getY())===0},A.prototype.eqXToP=function(M){var D=M.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(D)===0)return!0;var L=M.clone(),P=this.curve.redN.redMul(this.z);for(;;){if(L.iadd(this.curve.n),L.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(P),this.x.cmp(D)===0)return!0}},A.prototype.toP=A.prototype.normalize,A.prototype.mixedAdd=A.prototype.add}),vG=C0((Q)=>{var J=Q;J.base=IY(),J.short=eF(),J.mont=Q2(),J.edwards=J2()}),zJ=C0((Q)=>{var J=yJ(),X=rQ();Q.inherits=X;function $(G,F){if((G.charCodeAt(F)&64512)!==55296)return!1;if(F<0||F+1>=G.length)return!1;return(G.charCodeAt(F+1)&64512)===56320}function W(G,F){if(Array.isArray(G))return G.slice();if(!G)return[];var Z=[];if(typeof G==="string"){if(!F){var K=0;for(var O=0;O<G.length;O++){var I=G.charCodeAt(O);if(I<128)Z[K++]=I;else if(I<2048)Z[K++]=I>>6|192,Z[K++]=I&63|128;else if($(G,O))I=65536+((I&1023)<<10)+(G.charCodeAt(++O)&1023),Z[K++]=I>>18|240,Z[K++]=I>>12&63|128,Z[K++]=I>>6&63|128,Z[K++]=I&63|128;else Z[K++]=I>>12|224,Z[K++]=I>>6&63|128,Z[K++]=I&63|128}}else if(F==="hex"){if(G=G.replace(/[^a-z0-9]+/ig,""),G.length%2!==0)G="0"+G;for(O=0;O<G.length;O+=2)Z.push(parseInt(G[O]+G[O+1],16))}}else for(O=0;O<G.length;O++)Z[O]=G[O]|0;return Z}Q.toArray=W;function H(G){var F="";for(var Z=0;Z<G.length;Z++)F+=A(G[Z].toString(16));return F}Q.toHex=H;function U(G){var F=G>>>24|G>>>8&65280|G<<8&16711680|(G&255)<<24;return F>>>0}Q.htonl=U;function C(G,F){var Z="";for(var K=0;K<G.length;K++){var O=G[K];if(F==="little")O=U(O);Z+=M(O.toString(16))}return Z}Q.toHex32=C;function A(G){if(G.length===1)return"0"+G;else return G}Q.zero2=A;function M(G){if(G.length===7)return"0"+G;else if(G.length===6)return"00"+G;else if(G.length===5)return"000"+G;else if(G.length===4)return"0000"+G;else if(G.length===3)return"00000"+G;else if(G.length===2)return"000000"+G;else if(G.length===1)return"0000000"+G;else return G}Q.zero8=M;function D(G,F,Z,K){var O=Z-F;J(O%4===0);var I=Array(O/4);for(var z=0,V=F;z<I.length;z++,V+=4){var q;if(K==="big")q=G[V]<<24|G[V+1]<<16|G[V+2]<<8|G[V+3];else q=G[V+3]<<24|G[V+2]<<16|G[V+1]<<8|G[V];I[z]=q>>>0}return I}Q.join32=D;function L(G,F){var Z=Array(G.length*4);for(var K=0,O=0;K<G.length;K++,O+=4){var I=G[K];if(F==="big")Z[O]=I>>>24,Z[O+1]=I>>>16&255,Z[O+2]=I>>>8&255,Z[O+3]=I&255;else Z[O+3]=I>>>24,Z[O+2]=I>>>16&255,Z[O+1]=I>>>8&255,Z[O]=I&255}return Z}Q.split32=L;function P(G,F){return G>>>F|G<<32-F}Q.rotr32=P;function E(G,F){return G<<F|G>>>32-F}Q.rotl32=E;function S(G,F){return G+F>>>0}Q.sum32=S;function B(G,F,Z){return G+F+Z>>>0}Q.sum32_3=B;function j(G,F,Z,K){return G+F+Z+K>>>0}Q.sum32_4=j;function N(G,F,Z,K,O){return G+F+Z+K+O>>>0}Q.sum32_5=N;function v(G,F,Z,K){var O=G[F],I=G[F+1],z=K+I>>>0,V=(z<K?1:0)+Z+O;G[F]=V>>>0,G[F+1]=z}Q.sum64=v;function x(G,F,Z,K){var O=F+K>>>0,I=(O<F?1:0)+G+Z;return I>>>0}Q.sum64_hi=x;function w(G,F,Z,K){var O=F+K;return O>>>0}Q.sum64_lo=w;function y(G,F,Z,K,O,I,z,V){var q=0,R=F;R=R+K>>>0,q+=R<F?1:0,R=R+I>>>0,q+=R<I?1:0,R=R+V>>>0,q+=R<V?1:0;var T=G+Z+O+z+q;return T>>>0}Q.sum64_4_hi=y;function n(G,F,Z,K,O,I,z,V){var q=F+K+I+V;return q>>>0}Q.sum64_4_lo=n;function r(G,F,Z,K,O,I,z,V,q,R){var T=0,k=F;k=k+K>>>0,T+=k<F?1:0,k=k+I>>>0,T+=k<I?1:0,k=k+V>>>0,T+=k<V?1:0,k=k+R>>>0,T+=k<R?1:0;var g=G+Z+O+z+q+T;return g>>>0}Q.sum64_5_hi=r;function s(G,F,Z,K,O,I,z,V,q,R){var T=F+K+I+V+R;return T>>>0}Q.sum64_5_lo=s;function i(G,F,Z){var K=F<<32-Z|G>>>Z;return K>>>0}Q.rotr64_hi=i;function u(G,F,Z){var K=G<<32-Z|F>>>Z;return K>>>0}Q.rotr64_lo=u;function Q0(G,F,Z){return G>>>Z}Q.shr64_hi=Q0;function Y(G,F,Z){var K=G<<32-Z|F>>>Z;return K>>>0}Q.shr64_lo=Y}),IX=C0((Q)=>{var J=zJ(),X=yJ();function $(){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}Q.BlockHash=$,$.prototype.update=function(W,H){if(W=J.toArray(W,H),!this.pending)this.pending=W;else this.pending=this.pending.concat(W);if(this.pendingTotal+=W.length,this.pending.length>=this._delta8){W=this.pending;var U=W.length%this._delta8;if(this.pending=W.slice(W.length-U,W.length),this.pending.length===0)this.pending=null;W=J.join32(W,0,W.length-U,this.endian);for(var C=0;C<W.length;C+=this._delta32)this._update(W,C,C+this._delta32)}return this},$.prototype.digest=function(W){return this.update(this._pad()),X(this.pending===null),this._digest(W)},$.prototype._pad=function(){var W=this.pendingTotal,H=this._delta8,U=H-(W+this.padLength)%H,C=Array(U+this.padLength);C[0]=128;for(var A=1;A<U;A++)C[A]=0;if(W<<=3,this.endian==="big"){for(var M=8;M<this.padLength;M++)C[A++]=0;C[A++]=0,C[A++]=0,C[A++]=0,C[A++]=0,C[A++]=W>>>24&255,C[A++]=W>>>16&255,C[A++]=W>>>8&255,C[A++]=W&255}else{C[A++]=W&255,C[A++]=W>>>8&255,C[A++]=W>>>16&255,C[A++]=W>>>24&255,C[A++]=0,C[A++]=0,C[A++]=0,C[A++]=0;for(M=8;M<this.padLength;M++)C[A++]=0}return C}}),NG=C0((Q)=>{var J=zJ(),X=J.rotr32;function $(L,P,E,S){if(L===0)return W(P,E,S);if(L===1||L===3)return U(P,E,S);if(L===2)return H(P,E,S)}Q.ft_1=$;function W(L,P,E){return L&P^~L&E}Q.ch32=W;function H(L,P,E){return L&P^L&E^P&E}Q.maj32=H;function U(L,P,E){return L^P^E}Q.p32=U;function C(L){return X(L,2)^X(L,13)^X(L,22)}Q.s0_256=C;function A(L){return X(L,6)^X(L,11)^X(L,25)}Q.s1_256=A;function M(L){return X(L,7)^X(L,18)^L>>>3}Q.g0_256=M;function D(L){return X(L,17)^X(L,19)^L>>>10}Q.g1_256=D}),X2=C0((Q,J)=>{var X=zJ(),$=IX(),W=NG(),H=X.rotl32,U=X.sum32,C=X.sum32_5,A=W.ft_1,M=$.BlockHash,D=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;M.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}X.inherits(L,M),J.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(P,E){var S=this.W;for(var B=0;B<16;B++)S[B]=P[E+B];for(;B<S.length;B++)S[B]=H(S[B-3]^S[B-8]^S[B-14]^S[B-16],1);var j=this.h[0],N=this.h[1],v=this.h[2],x=this.h[3],w=this.h[4];for(B=0;B<S.length;B++){var y=~~(B/20),n=C(H(j,5),A(y,N,v,x),w,S[B],D[y]);w=x,x=v,v=H(N,30),N=j,j=n}this.h[0]=U(this.h[0],j),this.h[1]=U(this.h[1],N),this.h[2]=U(this.h[2],v),this.h[3]=U(this.h[3],x),this.h[4]=U(this.h[4],w)},L.prototype._digest=function(P){if(P==="hex")return X.toHex32(this.h,"big");else return X.split32(this.h,"big")}}),xG=C0((Q,J)=>{var X=zJ(),$=IX(),W=NG(),H=yJ(),U=X.sum32,C=X.sum32_4,A=X.sum32_5,M=W.ch32,D=W.maj32,L=W.s0_256,P=W.s1_256,E=W.g0_256,S=W.g1_256,B=$.BlockHash,j=[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 N(){if(!(this instanceof N))return new N;B.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=j,this.W=Array(64)}X.inherits(N,B),J.exports=N,N.blockSize=512,N.outSize=256,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(v,x){var w=this.W;for(var y=0;y<16;y++)w[y]=v[x+y];for(;y<w.length;y++)w[y]=C(S(w[y-2]),w[y-7],E(w[y-15]),w[y-16]);var n=this.h[0],r=this.h[1],s=this.h[2],i=this.h[3],u=this.h[4],Q0=this.h[5],Y=this.h[6],G=this.h[7];H(this.k.length===w.length);for(y=0;y<w.length;y++){var F=A(G,P(u),M(u,Q0,Y),this.k[y],w[y]),Z=U(L(n),D(n,r,s));G=Y,Y=Q0,Q0=u,u=U(i,F),i=s,s=r,r=n,n=U(F,Z)}this.h[0]=U(this.h[0],n),this.h[1]=U(this.h[1],r),this.h[2]=U(this.h[2],s),this.h[3]=U(this.h[3],i),this.h[4]=U(this.h[4],u),this.h[5]=U(this.h[5],Q0),this.h[6]=U(this.h[6],Y),this.h[7]=U(this.h[7],G)},N.prototype._digest=function(v){if(v==="hex")return X.toHex32(this.h,"big");else return X.split32(this.h,"big")}}),Y2=C0((Q,J)=>{var X=zJ(),$=xG();function W(){if(!(this instanceof W))return new W;$.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}X.inherits(W,$),J.exports=W,W.blockSize=512,W.outSize=224,W.hmacStrength=192,W.padLength=64,W.prototype._digest=function(H){if(H==="hex")return X.toHex32(this.h.slice(0,7),"big");else return X.split32(this.h.slice(0,7),"big")}}),wG=C0((Q,J)=>{var X=zJ(),$=IX(),W=yJ(),H=X.rotr64_hi,U=X.rotr64_lo,C=X.shr64_hi,A=X.shr64_lo,M=X.sum64,D=X.sum64_hi,L=X.sum64_lo,P=X.sum64_4_hi,E=X.sum64_4_lo,S=X.sum64_5_hi,B=X.sum64_5_lo,j=$.BlockHash,N=[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 v(){if(!(this instanceof v))return new v;j.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=N,this.W=Array(160)}X.inherits(v,j),J.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(Z,K){var O=this.W;for(var I=0;I<32;I++)O[I]=Z[K+I];for(;I<O.length;I+=2){var z=G(O[I-4],O[I-3]),V=F(O[I-4],O[I-3]),q=O[I-14],R=O[I-13],T=Q0(O[I-30],O[I-29]),k=Y(O[I-30],O[I-29]),g=O[I-32],b=O[I-31];O[I]=P(z,V,q,R,T,k,g,b),O[I+1]=E(z,V,q,R,T,k,g,b)}},v.prototype._update=function(Z,K){this._prepareBlock(Z,K);var O=this.W,I=this.h[0],z=this.h[1],V=this.h[2],q=this.h[3],R=this.h[4],T=this.h[5],k=this.h[6],g=this.h[7],b=this.h[8],t=this.h[9],G0=this.h[10],p=this.h[11],_=this.h[12],d=this.h[13],h=this.h[14],e=this.h[15];W(this.k.length===O.length);for(var q0=0;q0<O.length;q0+=2){var c=h,l=e,U0=i(b,t),$0=u(b,t),m=x(b,t,G0,p,_,d),M0=w(b,t,G0,p,_,d),o=this.k[q0],Y0=this.k[q0+1],T0=O[q0],V0=O[q0+1],W0=S(c,l,U0,$0,m,M0,o,Y0,T0,V0),b0=B(c,l,U0,$0,m,M0,o,Y0,T0,V0);c=r(I,z),l=s(I,z),U0=y(I,z,V,q,R,T),$0=n(I,z,V,q,R,T);var a=D(c,l,U0,$0),J0=L(c,l,U0,$0);h=_,e=d,_=G0,d=p,G0=b,p=t,b=D(k,g,W0,b0),t=L(g,g,W0,b0),k=R,g=T,R=V,T=q,V=I,q=z,I=D(W0,b0,a,J0),z=L(W0,b0,a,J0)}M(this.h,0,I,z),M(this.h,2,V,q),M(this.h,4,R,T),M(this.h,6,k,g),M(this.h,8,b,t),M(this.h,10,G0,p),M(this.h,12,_,d),M(this.h,14,h,e)},v.prototype._digest=function(Z){if(Z==="hex")return X.toHex32(this.h,"big");else return X.split32(this.h,"big")};function x(Z,K,O,I,z){var V=Z&O^~Z&z;if(V<0)V+=4294967296;return V}function w(Z,K,O,I,z,V){var q=K&I^~K&V;if(q<0)q+=4294967296;return q}function y(Z,K,O,I,z){var V=Z&O^Z&z^O&z;if(V<0)V+=4294967296;return V}function n(Z,K,O,I,z,V){var q=K&I^K&V^I&V;if(q<0)q+=4294967296;return q}function r(Z,K){var O=H(Z,K,28),I=H(K,Z,2),z=H(K,Z,7),V=O^I^z;if(V<0)V+=4294967296;return V}function s(Z,K){var O=U(Z,K,28),I=U(K,Z,2),z=U(K,Z,7),V=O^I^z;if(V<0)V+=4294967296;return V}function i(Z,K){var O=H(Z,K,14),I=H(Z,K,18),z=H(K,Z,9),V=O^I^z;if(V<0)V+=4294967296;return V}function u(Z,K){var O=U(Z,K,14),I=U(Z,K,18),z=U(K,Z,9),V=O^I^z;if(V<0)V+=4294967296;return V}function Q0(Z,K){var O=H(Z,K,1),I=H(Z,K,8),z=C(Z,K,7),V=O^I^z;if(V<0)V+=4294967296;return V}function Y(Z,K){var O=U(Z,K,1),I=U(Z,K,8),z=A(Z,K,7),V=O^I^z;if(V<0)V+=4294967296;return V}function G(Z,K){var O=H(Z,K,19),I=H(K,Z,29),z=C(Z,K,6),V=O^I^z;if(V<0)V+=4294967296;return V}function F(Z,K){var O=U(Z,K,19),I=U(K,Z,29),z=A(Z,K,6),V=O^I^z;if(V<0)V+=4294967296;return V}}),V2=C0((Q,J)=>{var X=zJ(),$=wG();function W(){if(!(this instanceof W))return new W;$.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}X.inherits(W,$),J.exports=W,W.blockSize=1024,W.outSize=384,W.hmacStrength=192,W.padLength=128,W.prototype._digest=function(H){if(H==="hex")return X.toHex32(this.h.slice(0,12),"big");else return X.split32(this.h.slice(0,12),"big")}}),$2=C0((Q)=>{Q.sha1=X2(),Q.sha224=Y2(),Q.sha256=xG(),Q.sha384=V2(),Q.sha512=wG()}),U2=C0((Q)=>{var J=zJ(),X=IX(),$=J.rotl32,W=J.sum32,H=J.sum32_3,U=J.sum32_4,C=X.BlockHash;function A(){if(!(this instanceof A))return new A;C.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}J.inherits(A,C),Q.ripemd160=A,A.blockSize=512,A.outSize=160,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(j,N){var v=this.h[0],x=this.h[1],w=this.h[2],y=this.h[3],n=this.h[4],r=v,s=x,i=w,u=y,Q0=n;for(var Y=0;Y<80;Y++){var G=W($(U(v,M(Y,x,w,y),j[P[Y]+N],D(Y)),S[Y]),n);v=n,n=y,y=$(w,10),w=x,x=G,G=W($(U(r,M(79-Y,s,i,u),j[E[Y]+N],L(Y)),B[Y]),Q0),r=Q0,Q0=u,u=$(i,10),i=s,s=G}G=H(this.h[1],w,u),this.h[1]=H(this.h[2],y,Q0),this.h[2]=H(this.h[3],n,r),this.h[3]=H(this.h[4],v,s),this.h[4]=H(this.h[0],x,i),this.h[0]=G},A.prototype._digest=function(j){if(j==="hex")return J.toHex32(this.h,"little");else return J.split32(this.h,"little")};function M(j,N,v,x){if(j<=15)return N^v^x;else if(j<=31)return N&v|~N&x;else if(j<=47)return(N|~v)^x;else if(j<=63)return N&x|v&~x;else return N^(v|~x)}function D(j){if(j<=15)return 0;else if(j<=31)return 1518500249;else if(j<=47)return 1859775393;else if(j<=63)return 2400959708;else return 2840853838}function L(j){if(j<=15)return 1352829926;else if(j<=31)return 1548603684;else if(j<=47)return 1836072691;else if(j<=63)return 2053994217;else return 0}var P=[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],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],S=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[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]}),Z2=C0((Q,J)=>{var X=zJ(),$=yJ();function W(H,U,C){if(!(this instanceof W))return new W(H,U,C);this.Hash=H,this.blockSize=H.blockSize/8,this.outSize=H.outSize/8,this.inner=null,this.outer=null,this._init(X.toArray(U,C))}J.exports=W,W.prototype._init=function(H){if(H.length>this.blockSize)H=new this.Hash().update(H).digest();$(H.length<=this.blockSize);for(var U=H.length;U<this.blockSize;U++)H.push(0);for(U=0;U<H.length;U++)H[U]^=54;this.inner=new this.Hash().update(H);for(U=0;U<H.length;U++)H[U]^=106;this.outer=new this.Hash().update(H)},W.prototype.update=function(H,U){return this.inner.update(H,U),this},W.prototype.digest=function(H){return this.outer.update(this.inner.digest()),this.outer.digest(H)}}),L$=C0((Q)=>{var J=Q;J.utils=zJ(),J.common=IX(),J.sha=$2(),J.ripemd=U2(),J.hmac=Z2(),J.sha1=J.sha.sha1,J.sha256=J.sha.sha256,J.sha224=J.sha.sha224,J.sha384=J.sha.sha384,J.sha512=J.sha.sha512,J.ripemd160=J.ripemd.ripemd160}),G2=C0((Q,J)=>{J.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"]]}}}),M$=C0((Q)=>{var J=Q,X=L$(),$=vG(),W=eQ(),H=W.assert;function U(M){if(M.type==="short")this.curve=new $.short(M);else if(M.type==="edwards")this.curve=new $.edwards(M);else this.curve=new $.mont(M);this.g=this.curve.g,this.n=this.curve.n,this.hash=M.hash,H(this.g.validate(),"Invalid curve"),H(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}J.PresetCurve=U;function C(M,D){Object.defineProperty(J,M,{configurable:!0,enumerable:!0,get:function(){var L=new U(D);return Object.defineProperty(J,M,{configurable:!0,enumerable:!0,value:L}),L}})}C("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:X.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),C("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:X.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),C("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:X.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),C("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:X.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"]}),C("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:X.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"]}),C("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:X.sha256,gRed:!1,g:["9"]}),C("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:X.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var A;try{A=G2()}catch(M){A=void 0}C("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:X.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",A]})}),W2=C0((Q,J)=>{var X=L$(),$=BG(),W=yJ();function H(U){if(!(this instanceof H))return new H(U);this.hash=U.hash,this.predResist=!!U.predResist,this.outLen=this.hash.outSize,this.minEntropy=U.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var C=$.toArray(U.entropy,U.entropyEnc||"hex"),A=$.toArray(U.nonce,U.nonceEnc||"hex"),M=$.toArray(U.pers,U.persEnc||"hex");W(C.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(C,A,M)}J.exports=H,H.prototype._init=function(U,C,A){var M=U.concat(C).concat(A);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var D=0;D<this.V.length;D++)this.K[D]=0,this.V[D]=1;this._update(M),this._reseed=1,this.reseedInterval=281474976710656},H.prototype._hmac=function(){return new X.hmac(this.hash,this.K)},H.prototype._update=function(U){var C=this._hmac().update(this.V).update([0]);if(U)C=C.update(U);if(this.K=C.digest(),this.V=this._hmac().update(this.V).digest(),!U)return;this.K=this._hmac().update(this.V).update([1]).update(U).digest(),this.V=this._hmac().update(this.V).digest()},H.prototype.reseed=function(U,C,A,M){if(typeof C!=="string")M=A,A=C,C=null;U=$.toArray(U,C),A=$.toArray(A,M),W(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(U.concat(A||[])),this._reseed=1},H.prototype.generate=function(U,C,A,M){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof C!=="string")M=A,A=C,C=null;if(A)A=$.toArray(A,M||"hex"),this._update(A);var D=[];while(D.length<U)this.V=this._hmac().update(this.V).digest(),D=D.concat(this.V);var L=D.slice(0,U);return this._update(A),this._reseed++,$.encode(L,C)}}),K2=C0((Q,J)=>{var X=jJ(),$=eQ(),W=$.assert;function H(U,C){if(this.ec=U,this.priv=null,this.pub=null,C.priv)this._importPrivate(C.priv,C.privEnc);if(C.pub)this._importPublic(C.pub,C.pubEnc)}J.exports=H,H.fromPublic=function(U,C,A){if(C instanceof H)return C;return new H(U,{pub:C,pubEnc:A})},H.fromPrivate=function(U,C,A){if(C instanceof H)return C;return new H(U,{priv:C,privEnc:A})},H.prototype.validate=function(){var U=this.getPublic();if(U.isInfinity())return{result:!1,reason:"Invalid public key"};if(!U.validate())return{result:!1,reason:"Public key is not a point"};if(!U.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},H.prototype.getPublic=function(U,C){if(typeof U==="string")C=U,U=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!C)return this.pub;return this.pub.encode(C,U)},H.prototype.getPrivate=function(U){if(U==="hex")return this.priv.toString(16,2);else return this.priv},H.prototype._importPrivate=function(U,C){this.priv=new X(U,C||16),this.priv=this.priv.umod(this.ec.curve.n)},H.prototype._importPublic=function(U,C){if(U.x||U.y){if(this.ec.curve.type==="mont")W(U.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")W(U.x&&U.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(U.x,U.y);return}this.pub=this.ec.curve.decodePoint(U,C)},H.prototype.derive=function(U){if(!U.validate())W(U.validate(),"public point not validated");return U.mul(this.priv).getX()},H.prototype.sign=function(U,C,A){return this.ec.sign(U,this,C,A)},H.prototype.verify=function(U,C,A){return this.ec.verify(U,C,this,void 0,A)},H.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),H2=C0((Q,J)=>{var X=jJ(),$=eQ(),W=$.assert;function H(D,L){if(D instanceof H)return D;if(this._importDER(D,L))return;if(W(D.r&&D.s,"Signature without r or s"),this.r=new X(D.r,16),this.s=new X(D.s,16),D.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=D.recoveryParam}J.exports=H;function U(){this.place=0}function C(D,L){var P=D[L.place++];if(!(P&128))return P;var E=P&15;if(E===0||E>4)return!1;if(D[L.place]===0)return!1;var S=0;for(var B=0,j=L.place;B<E;B++,j++)S<<=8,S|=D[j],S>>>=0;if(S<=127)return!1;return L.place=j,S}function A(D){var L=0,P=D.length-1;while(!D[L]&&!(D[L+1]&128)&&L<P)L++;if(L===0)return D;return D.slice(L)}H.prototype._importDER=function(D,L){D=$.toArray(D,L);var P=new U;if(D[P.place++]!==48)return!1;var E=C(D,P);if(E===!1)return!1;if(E+P.place!==D.length)return!1;if(D[P.place++]!==2)return!1;var S=C(D,P);if(S===!1)return!1;if((D[P.place]&128)!==0)return!1;var B=D.slice(P.place,S+P.place);if(P.place+=S,D[P.place++]!==2)return!1;var j=C(D,P);if(j===!1)return!1;if(D.length!==j+P.place)return!1;if((D[P.place]&128)!==0)return!1;var N=D.slice(P.place,j+P.place);if(B[0]===0)if(B[1]&128)B=B.slice(1);else return!1;if(N[0]===0)if(N[1]&128)N=N.slice(1);else return!1;return this.r=new X(B),this.s=new X(N),this.recoveryParam=null,!0};function M(D,L){if(L<128){D.push(L);return}var P=1+(Math.log(L)/Math.LN2>>>3);D.push(P|128);while(--P)D.push(L>>>(P<<3)&255);D.push(L)}H.prototype.toDER=function(D){var L=this.r.toArray(),P=this.s.toArray();if(L[0]&128)L=[0].concat(L);if(P[0]&128)P=[0].concat(P);L=A(L),P=A(P);while(!P[0]&&!(P[1]&128))P=P.slice(1);var E=[2];M(E,L.length),E=E.concat(L),E.push(2),M(E,P.length);var S=E.concat(P),B=[48];return M(B,S.length),B=B.concat(S),$.encode(B,D)}}),F2=C0((Q,J)=>{var X=jJ(),$=W2(),W=eQ(),H=M$(),U=kG(),C=W.assert,A=K2(),M=H2();function D(L){if(!(this instanceof D))return new D(L);if(typeof L==="string")C(Object.prototype.hasOwnProperty.call(H,L),"Unknown curve "+L),L=H[L];if(L instanceof H.PresetCurve)L={curve:L};this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}J.exports=D,D.prototype.keyPair=function(L){return new A(this,L)},D.prototype.keyFromPrivate=function(L,P){return A.fromPrivate(this,L,P)},D.prototype.keyFromPublic=function(L,P){return A.fromPublic(this,L,P)},D.prototype.genKeyPair=function(L){if(!L)L={};var P=new $({hash:this.hash,pers:L.pers,persEnc:L.persEnc||"utf8",entropy:L.entropy||U(this.hash.hmacStrength),entropyEnc:L.entropy&&L.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),S=this.n.sub(new X(2));for(;;){var B=new X(P.generate(E));if(B.cmp(S)>0)continue;return B.iaddn(1),this.keyFromPrivate(B)}},D.prototype._truncateToN=function(L,P,E){var S;if(X.isBN(L)||typeof L==="number")L=new X(L,16),S=L.byteLength();else if(typeof L==="object")S=L.length,L=new X(L,16);else{var B=L.toString();S=B.length+1>>>1,L=new X(B,16)}if(typeof E!=="number")E=S*8;var j=E-this.n.bitLength();if(j>0)L=L.ushrn(j);if(!P&&L.cmp(this.n)>=0)return L.sub(this.n);else return L},D.prototype.sign=function(L,P,E,S){if(typeof E==="object")S=E,E=null;if(!S)S={};if(typeof L!=="string"&&typeof L!=="number"&&!X.isBN(L)){C(typeof L==="object"&&L&&typeof L.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),C(L.length>>>0===L.length);for(var B=0;B<L.length;B++)C((L[B]&255)===L[B])}P=this.keyFromPrivate(P,E),L=this._truncateToN(L,!1,S.msgBitLength),C(!L.isNeg(),"Can not sign a negative message");var j=this.n.byteLength(),N=P.getPrivate().toArray("be",j),v=L.toArray("be",j);C(new X(v).eq(L),"Can not sign message");var x=new $({hash:this.hash,entropy:N,nonce:v,pers:S.pers,persEnc:S.persEnc||"utf8"}),w=this.n.sub(new X(1));for(var y=0;;y++){var n=S.k?S.k(y):new X(x.generate(this.n.byteLength()));if(n=this._truncateToN(n,!0),n.cmpn(1)<=0||n.cmp(w)>=0)continue;var r=this.g.mul(n);if(r.isInfinity())continue;var s=r.getX(),i=s.umod(this.n);if(i.cmpn(0)===0)continue;var u=n.invm(this.n).mul(i.mul(P.getPrivate()).iadd(L));if(u=u.umod(this.n),u.cmpn(0)===0)continue;var Q0=(r.getY().isOdd()?1:0)|(s.cmp(i)!==0?2:0);if(S.canonical&&u.cmp(this.nh)>0)u=this.n.sub(u),Q0^=1;return new M({r:i,s:u,recoveryParam:Q0})}},D.prototype.verify=function(L,P,E,S,B){if(!B)B={};L=this._truncateToN(L,!1,B.msgBitLength),E=this.keyFromPublic(E,S),P=new M(P,"hex");var{r:j,s:N}=P;if(j.cmpn(1)<0||j.cmp(this.n)>=0)return!1;if(N.cmpn(1)<0||N.cmp(this.n)>=0)return!1;var v=N.invm(this.n),x=v.mul(L).umod(this.n),w=v.mul(j).umod(this.n),y;if(!this.curve._maxwellTrick){if(y=this.g.mulAdd(x,E.getPublic(),w),y.isInfinity())return!1;return y.getX().umod(this.n).cmp(j)===0}if(y=this.g.jmulAdd(x,E.getPublic(),w),y.isInfinity())return!1;return y.eqXToP(j)},D.prototype.recoverPubKey=function(L,P,E,S){C((3&E)===E,"The recovery param is more than two bits"),P=new M(P,S);var B=this.n,j=new X(L),N=P.r,v=P.s,x=E&1,w=E>>1;if(N.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw Error("Unable to find sencond key candinate");if(w)N=this.curve.pointFromX(N.add(this.curve.n),x);else N=this.curve.pointFromX(N,x);var y=P.r.invm(B),n=B.sub(j).mul(y).umod(B),r=v.mul(y).umod(B);return this.g.mulAdd(n,N,r)},D.prototype.getKeyRecoveryParam=function(L,P,E,S){if(P=new M(P,S),P.recoveryParam!==null)return P.recoveryParam;for(var B=0;B<4;B++){var j;try{j=this.recoverPubKey(L,P,B)}catch(N){continue}if(j.eq(E))return B}throw Error("Unable to find valid recovery factor")}}),q2=C0((Q,J)=>{var X=eQ(),$=X.assert,W=X.parseBytes,H=X.cachedProperty;function U(C,A){if(this.eddsa=C,this._secret=W(A.secret),C.isPoint(A.pub))this._pub=A.pub;else this._pubBytes=W(A.pub)}U.fromPublic=function(C,A){if(A instanceof U)return A;return new U(C,{pub:A})},U.fromSecret=function(C,A){if(A instanceof U)return A;return new U(C,{secret:A})},U.prototype.secret=function(){return this._secret},H(U,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),H(U,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),H(U,"privBytes",function(){var C=this.eddsa,A=this.hash(),M=C.encodingLength-1,D=A.slice(0,C.encodingLength);return D[0]&=248,D[M]&=127,D[M]|=64,D}),H(U,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),H(U,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),H(U,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),U.prototype.sign=function(C){return $(this._secret,"KeyPair can only verify"),this.eddsa.sign(C,this)},U.prototype.verify=function(C,A){return this.eddsa.verify(C,A,this)},U.prototype.getSecret=function(C){return $(this._secret,"KeyPair is public only"),X.encode(this.secret(),C)},U.prototype.getPublic=function(C){return X.encode(this.pubBytes(),C)},J.exports=U}),z2=C0((Q,J)=>{var X=jJ(),$=eQ(),W=$.assert,H=$.cachedProperty,U=$.parseBytes;function C(A,M){if(this.eddsa=A,typeof M!=="object")M=U(M);if(Array.isArray(M))W(M.length===A.encodingLength*2,"Signature has invalid size"),M={R:M.slice(0,A.encodingLength),S:M.slice(A.encodingLength)};if(W(M.R&&M.S,"Signature without R or S"),A.isPoint(M.R))this._R=M.R;if(M.S instanceof X)this._S=M.S;this._Rencoded=Array.isArray(M.R)?M.R:M.Rencoded,this._Sencoded=Array.isArray(M.S)?M.S:M.Sencoded}H(C,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),H(C,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),H(C,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),H(C,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),C.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},C.prototype.toHex=function(){return $.encode(this.toBytes(),"hex").toUpperCase()},J.exports=C}),O2=C0((Q,J)=>{var X=L$(),$=M$(),W=eQ(),H=W.assert,U=W.parseBytes,C=q2(),A=z2();function M(D){if(H(D==="ed25519","only tested with ed25519 so far"),!(this instanceof M))return new M(D);D=$[D].curve,this.curve=D,this.g=D.g,this.g.precompute(D.n.bitLength()+1),this.pointClass=D.point().constructor,this.encodingLength=Math.ceil(D.n.bitLength()/8),this.hash=X.sha512}J.exports=M,M.prototype.sign=function(D,L){D=U(D);var P=this.keyFromSecret(L),E=this.hashInt(P.messagePrefix(),D),S=this.g.mul(E),B=this.encodePoint(S),j=this.hashInt(B,P.pubBytes(),D).mul(P.priv()),N=E.add(j).umod(this.curve.n);return this.makeSignature({R:S,S:N,Rencoded:B})},M.prototype.verify=function(D,L,P){if(D=U(D),L=this.makeSignature(L),L.S().gte(L.eddsa.curve.n)||L.S().isNeg())return!1;var E=this.keyFromPublic(P),S=this.hashInt(L.Rencoded(),E.pubBytes(),D),B=this.g.mul(L.S()),j=L.R().add(E.pub().mul(S));return j.eq(B)},M.prototype.hashInt=function(){var D=this.hash();for(var L=0;L<arguments.length;L++)D.update(arguments[L]);return W.intFromLE(D.digest()).umod(this.curve.n)},M.prototype.keyFromPublic=function(D){return C.fromPublic(this,D)},M.prototype.keyFromSecret=function(D){return C.fromSecret(this,D)},M.prototype.makeSignature=function(D){if(D instanceof A)return D;return new A(this,D)},M.prototype.encodePoint=function(D){var L=D.getY().toArray("le",this.encodingLength);return L[this.encodingLength-1]|=D.getX().isOdd()?128:0,L},M.prototype.decodePoint=function(D){D=W.parseBytes(D);var L=D.length-1,P=D.slice(0,L).concat(D[L]&-129),E=(D[L]&128)!==0,S=W.intFromLE(P);return this.curve.pointFromY(S,E)},M.prototype.encodeInt=function(D){return D.toArray("le",this.encodingLength)},M.prototype.decodeInt=function(D){return W.intFromLE(D)},M.prototype.isPoint=function(D){return D instanceof this.pointClass}}),C2=C0((Q)=>{var J=Q;J.version=iF().version,J.utils=eQ(),J.rand=kG(),J.curve=vG(),J.curves=M$(),J.ec=F2(),J.eddsa=O2()}),L2=C0((Q,J)=>{(function(X,$){function W(Y,G){if(!Y)throw Error(G||"Assertion failed")}function H(Y,G){Y.super_=G;var F=function(){};F.prototype=G.prototype,Y.prototype=new F,Y.prototype.constructor=Y}function U(Y,G,F){if(U.isBN(Y))return Y;if(this.negative=0,this.words=null,this.length=0,this.red=null,Y!==null){if(G==="le"||G==="be")F=G,G=10;this._init(Y||0,G||10,F||"be")}}if(typeof X==="object")X.exports=U;else $.BN=U;U.BN=U,U.wordSize=26;var C;try{if(typeof window<"u"&&typeof window.Buffer<"u")C=window.Buffer;else C=(HQ(),u0(SQ)).Buffer}catch(Y){}U.isBN=function(Y){if(Y instanceof U)return!0;return Y!==null&&typeof Y==="object"&&Y.constructor.wordSize===U.wordSize&&Array.isArray(Y.words)},U.max=function(Y,G){if(Y.cmp(G)>0)return Y;return G},U.min=function(Y,G){if(Y.cmp(G)<0)return Y;return G},U.prototype._init=function(Y,G,F){if(typeof Y==="number")return this._initNumber(Y,G,F);if(typeof Y==="object")return this._initArray(Y,G,F);if(G==="hex")G=16;W(G===(G|0)&&G>=2&&G<=36),Y=Y.toString().replace(/\s+/g,"");var Z=0;if(Y[0]==="-")Z++,this.negative=1;if(Z<Y.length){if(G===16)this._parseHex(Y,Z,F);else if(this._parseBase(Y,G,Z),F==="le")this._initArray(this.toArray(),G,F)}},U.prototype._initNumber=function(Y,G,F){if(Y<0)this.negative=1,Y=-Y;if(Y<67108864)this.words=[Y&67108863],this.length=1;else if(Y<4503599627370496)this.words=[Y&67108863,Y/67108864&67108863],this.length=2;else W(Y<9007199254740992),this.words=[Y&67108863,Y/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),G,F)},U.prototype._initArray=function(Y,G,F){if(W(typeof Y.length==="number"),Y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Y.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K,O,I=0;if(F==="be"){for(Z=Y.length-1,K=0;Z>=0;Z-=3)if(O=Y[Z]|Y[Z-1]<<8|Y[Z-2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}else if(F==="le"){for(Z=0,K=0;Z<Y.length;Z+=3)if(O=Y[Z]|Y[Z+1]<<8|Y[Z+2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}return this.strip()};function A(Y,G){var F=Y.charCodeAt(G);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Y,G,F){var Z=A(Y,F);if(F-1>=G)Z|=A(Y,F-1)<<4;return Z}U.prototype._parseHex=function(Y,G,F){this.length=Math.ceil((Y.length-G)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K=0,O=0,I;if(F==="be")for(Z=Y.length-1;Z>=G;Z-=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8;else{var z=Y.length-G;for(Z=z%2===0?G+1:G;Z<Y.length;Z+=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8}this.strip()};function D(Y,G,F,Z){var K=0,O=Math.min(Y.length,F);for(var I=G;I<O;I++){var z=Y.charCodeAt(I)-48;if(K*=Z,z>=49)K+=z-49+10;else if(z>=17)K+=z-17+10;else K+=z}return K}U.prototype._parseBase=function(Y,G,F){this.words=[0],this.length=1;for(var Z=0,K=1;K<=67108863;K*=G)Z++;Z--,K=K/G|0;var O=Y.length-F,I=O%Z,z=Math.min(O,O-I)+F,V=0;for(var q=F;q<z;q+=Z)if(V=D(Y,q,q+Z,G),this.imuln(K),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V);if(I!==0){var R=1;V=D(Y,q,Y.length,G);for(q=0;q<I;q++)R*=G;if(this.imuln(R),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V)}this.strip()},U.prototype.copy=function(Y){Y.words=Array(this.length);for(var G=0;G<this.length;G++)Y.words[G]=this.words[G];Y.length=this.length,Y.negative=this.negative,Y.red=this.red},U.prototype.clone=function(){var Y=new U(null);return this.copy(Y),Y},U.prototype._expand=function(Y){while(this.length<Y)this.words[this.length++]=0;return this},U.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},U.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","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"],P=[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],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(U.prototype.toString=function(Y,G){Y=Y||10,G=G|0||1;var F;if(Y===16||Y==="hex"){F="";var Z=0,K=0;for(var O=0;O<this.length;O++){var I=this.words[O],z=((I<<Z|K)&16777215).toString(16);if(K=I>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,O--;if(K!==0||O!==this.length-1)F=L[6-z.length]+z+F;else F=z+F}if(K!==0)F=K.toString(16)+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Y===(Y|0)&&Y>=2&&Y<=36){var V=P[Y],q=E[Y];F="";var R=this.clone();R.negative=0;while(!R.isZero()){var T=R.modn(q).toString(Y);if(R=R.idivn(q),!R.isZero())F=L[V-T.length]+T+F;else F=T+F}if(this.isZero())F="0"+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}W(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var Y=this.words[0];if(this.length===2)Y+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Y+=4503599627370496+this.words[1]*67108864;else if(this.length>2)W(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Y:Y},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(Y,G){return W(typeof C<"u"),this.toArrayLike(C,Y,G)},U.prototype.toArray=function(Y,G){return this.toArrayLike(Array,Y,G)},U.prototype.toArrayLike=function(Y,G,F){var Z=this.byteLength(),K=F||Math.max(1,Z);W(Z<=K,"byte array longer than desired length"),W(K>0,"Requested array length <= 0"),this.strip();var O=G==="le",I=new Y(K),z,V,q=this.clone();if(!O){for(V=0;V<K-Z;V++)I[V]=0;for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[K-V-1]=z}else{for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[V]=z;for(;V<K;V++)I[V]=0}return I},Math.clz32)U.prototype._countBits=function(Y){return 32-Math.clz32(Y)};else U.prototype._countBits=function(Y){var G=Y,F=0;if(G>=4096)F+=13,G>>>=13;if(G>=64)F+=7,G>>>=7;if(G>=8)F+=4,G>>>=4;if(G>=2)F+=2,G>>>=2;return F+G};U.prototype._zeroBits=function(Y){if(Y===0)return 26;var G=Y,F=0;if((G&8191)===0)F+=13,G>>>=13;if((G&127)===0)F+=7,G>>>=7;if((G&15)===0)F+=4,G>>>=4;if((G&3)===0)F+=2,G>>>=2;if((G&1)===0)F++;return F},U.prototype.bitLength=function(){var Y=this.words[this.length-1],G=this._countBits(Y);return(this.length-1)*26+G};function S(Y){var G=Array(Y.bitLength());for(var F=0;F<G.length;F++){var Z=F/26|0,K=F%26;G[F]=(Y.words[Z]&1<<K)>>>K}return G}U.prototype.zeroBits=function(){if(this.isZero())return 0;var Y=0;for(var G=0;G<this.length;G++){var F=this._zeroBits(this.words[G]);if(Y+=F,F!==26)break}return Y},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(Y){if(this.negative!==0)return this.abs().inotn(Y).iaddn(1);return this.clone()},U.prototype.fromTwos=function(Y){if(this.testn(Y-1))return this.notn(Y).iaddn(1).ineg();return this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},U.prototype.iuor=function(Y){while(this.length<Y.length)this.words[this.length++]=0;for(var G=0;G<Y.length;G++)this.words[G]=this.words[G]|Y.words[G];return this.strip()},U.prototype.ior=function(Y){return W((this.negative|Y.negative)===0),this.iuor(Y)},U.prototype.or=function(Y){if(this.length>Y.length)return this.clone().ior(Y);return Y.clone().ior(this)},U.prototype.uor=function(Y){if(this.length>Y.length)return this.clone().iuor(Y);return Y.clone().iuor(this)},U.prototype.iuand=function(Y){var G;if(this.length>Y.length)G=Y;else G=this;for(var F=0;F<G.length;F++)this.words[F]=this.words[F]&Y.words[F];return this.length=G.length,this.strip()},U.prototype.iand=function(Y){return W((this.negative|Y.negative)===0),this.iuand(Y)},U.prototype.and=function(Y){if(this.length>Y.length)return this.clone().iand(Y);return Y.clone().iand(this)},U.prototype.uand=function(Y){if(this.length>Y.length)return this.clone().iuand(Y);return Y.clone().iuand(this)},U.prototype.iuxor=function(Y){var G,F;if(this.length>Y.length)G=this,F=Y;else G=Y,F=this;for(var Z=0;Z<F.length;Z++)this.words[Z]=G.words[Z]^F.words[Z];if(this!==G)for(;Z<G.length;Z++)this.words[Z]=G.words[Z];return this.length=G.length,this.strip()},U.prototype.ixor=function(Y){return W((this.negative|Y.negative)===0),this.iuxor(Y)},U.prototype.xor=function(Y){if(this.length>Y.length)return this.clone().ixor(Y);return Y.clone().ixor(this)},U.prototype.uxor=function(Y){if(this.length>Y.length)return this.clone().iuxor(Y);return Y.clone().iuxor(this)},U.prototype.inotn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Math.ceil(Y/26)|0,F=Y%26;if(this._expand(G),F>0)G--;for(var Z=0;Z<G;Z++)this.words[Z]=~this.words[Z]&67108863;if(F>0)this.words[Z]=~this.words[Z]&67108863>>26-F;return this.strip()},U.prototype.notn=function(Y){return this.clone().inotn(Y)},U.prototype.setn=function(Y,G){W(typeof Y==="number"&&Y>=0);var F=Y/26|0,Z=Y%26;if(this._expand(F+1),G)this.words[F]=this.words[F]|1<<Z;else this.words[F]=this.words[F]&~(1<<Z);return this.strip()},U.prototype.iadd=function(Y){var G;if(this.negative!==0&&Y.negative===0)return this.negative=0,G=this.isub(Y),this.negative^=1,this._normSign();else if(this.negative===0&&Y.negative!==0)return Y.negative=0,G=this.isub(Y),Y.negative=1,G._normSign();var F,Z;if(this.length>Y.length)F=this,Z=Y;else F=Y,Z=this;var K=0;for(var O=0;O<Z.length;O++)G=(F.words[O]|0)+(Z.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;for(;K!==0&&O<F.length;O++)G=(F.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;if(this.length=F.length,K!==0)this.words[this.length]=K,this.length++;else if(F!==this)for(;O<F.length;O++)this.words[O]=F.words[O];return this},U.prototype.add=function(Y){var G;if(Y.negative!==0&&this.negative===0)return Y.negative=0,G=this.sub(Y),Y.negative^=1,G;else if(Y.negative===0&&this.negative!==0)return this.negative=0,G=Y.sub(this),this.negative=1,G;if(this.length>Y.length)return this.clone().iadd(Y);return Y.clone().iadd(this)},U.prototype.isub=function(Y){if(Y.negative!==0){Y.negative=0;var G=this.iadd(Y);return Y.negative=1,G._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Y),this.negative=1,this._normSign();var F=this.cmp(Y);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,K;if(F>0)Z=this,K=Y;else Z=Y,K=this;var O=0;for(var I=0;I<K.length;I++)G=(Z.words[I]|0)-(K.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;for(;O!==0&&I<Z.length;I++)G=(Z.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;if(O===0&&I<Z.length&&Z!==this)for(;I<Z.length;I++)this.words[I]=Z.words[I];if(this.length=Math.max(this.length,I),Z!==this)this.negative=1;return this.strip()},U.prototype.sub=function(Y){return this.clone().isub(Y)};function B(Y,G,F){F.negative=G.negative^Y.negative;var Z=Y.length+G.length|0;F.length=Z,Z=Z-1|0;var K=Y.words[0]|0,O=G.words[0]|0,I=K*O,z=I&67108863,V=I/67108864|0;F.words[0]=z;for(var q=1;q<Z;q++){var R=V>>>26,T=V&67108863,k=Math.min(q,G.length-1);for(var g=Math.max(0,q-Y.length+1);g<=k;g++){var b=q-g|0;K=Y.words[b]|0,O=G.words[g]|0,I=K*O+T,R+=I/67108864|0,T=I&67108863}F.words[q]=T|0,V=R|0}if(V!==0)F.words[q]=V|0;else F.length--;return F.strip()}var j=function(Y,G,F){var Z=Y.words,K=G.words,O=F.words,I=0,z,V,q,R=Z[0]|0,T=R&8191,k=R>>>13,g=Z[1]|0,b=g&8191,t=g>>>13,G0=Z[2]|0,p=G0&8191,_=G0>>>13,d=Z[3]|0,h=d&8191,e=d>>>13,q0=Z[4]|0,c=q0&8191,l=q0>>>13,U0=Z[5]|0,$0=U0&8191,m=U0>>>13,M0=Z[6]|0,o=M0&8191,Y0=M0>>>13,T0=Z[7]|0,V0=T0&8191,W0=T0>>>13,b0=Z[8]|0,a=b0&8191,J0=b0>>>13,y0=Z[9]|0,H0=y0&8191,F0=y0>>>13,h0=K[0]|0,z0=h0&8191,O0=h0>>>13,d0=K[1]|0,I0=d0&8191,D0=d0>>>13,ZQ=K[2]|0,R0=ZQ&8191,E0=ZQ>>>13,t0=K[3]|0,S0=t0&8191,B0=t0>>>13,vQ=K[4]|0,x0=vQ&8191,w0=vQ>>>13,NQ=K[5]|0,k0=NQ&8191,f=NQ>>>13,X0=K[6]|0,Z0=X0&8191,K0=X0>>>13,c0=K[7]|0,P0=c0&8191,A0=c0>>>13,GQ=K[8]|0,v0=GQ&8191,_0=GQ>>>13,wQ=K[9]|0,N0=wQ&8191,j0=wQ>>>13;F.negative=Y.negative^G.negative,F.length=19,z=Math.imul(T,z0),V=Math.imul(T,O0),V=V+Math.imul(k,z0)|0,q=Math.imul(k,O0);var WQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,z=Math.imul(b,z0),V=Math.imul(b,O0),V=V+Math.imul(t,z0)|0,q=Math.imul(t,O0),z=z+Math.imul(T,I0)|0,V=V+Math.imul(T,D0)|0,V=V+Math.imul(k,I0)|0,q=q+Math.imul(k,D0)|0;var m0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(m0>>>26)|0,m0&=67108863,z=Math.imul(p,z0),V=Math.imul(p,O0),V=V+Math.imul(_,z0)|0,q=Math.imul(_,O0),z=z+Math.imul(b,I0)|0,V=V+Math.imul(b,D0)|0,V=V+Math.imul(t,I0)|0,q=q+Math.imul(t,D0)|0,z=z+Math.imul(T,R0)|0,V=V+Math.imul(T,E0)|0,V=V+Math.imul(k,R0)|0,q=q+Math.imul(k,E0)|0;var l0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(l0>>>26)|0,l0&=67108863,z=Math.imul(h,z0),V=Math.imul(h,O0),V=V+Math.imul(e,z0)|0,q=Math.imul(e,O0),z=z+Math.imul(p,I0)|0,V=V+Math.imul(p,D0)|0,V=V+Math.imul(_,I0)|0,q=q+Math.imul(_,D0)|0,z=z+Math.imul(b,R0)|0,V=V+Math.imul(b,E0)|0,V=V+Math.imul(t,R0)|0,q=q+Math.imul(t,E0)|0,z=z+Math.imul(T,S0)|0,V=V+Math.imul(T,B0)|0,V=V+Math.imul(k,S0)|0,q=q+Math.imul(k,B0)|0;var e0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(e0>>>26)|0,e0&=67108863,z=Math.imul(c,z0),V=Math.imul(c,O0),V=V+Math.imul(l,z0)|0,q=Math.imul(l,O0),z=z+Math.imul(h,I0)|0,V=V+Math.imul(h,D0)|0,V=V+Math.imul(e,I0)|0,q=q+Math.imul(e,D0)|0,z=z+Math.imul(p,R0)|0,V=V+Math.imul(p,E0)|0,V=V+Math.imul(_,R0)|0,q=q+Math.imul(_,E0)|0,z=z+Math.imul(b,S0)|0,V=V+Math.imul(b,B0)|0,V=V+Math.imul(t,S0)|0,q=q+Math.imul(t,B0)|0,z=z+Math.imul(T,x0)|0,V=V+Math.imul(T,w0)|0,V=V+Math.imul(k,x0)|0,q=q+Math.imul(k,w0)|0;var i0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(i0>>>26)|0,i0&=67108863,z=Math.imul($0,z0),V=Math.imul($0,O0),V=V+Math.imul(m,z0)|0,q=Math.imul(m,O0),z=z+Math.imul(c,I0)|0,V=V+Math.imul(c,D0)|0,V=V+Math.imul(l,I0)|0,q=q+Math.imul(l,D0)|0,z=z+Math.imul(h,R0)|0,V=V+Math.imul(h,E0)|0,V=V+Math.imul(e,R0)|0,q=q+Math.imul(e,E0)|0,z=z+Math.imul(p,S0)|0,V=V+Math.imul(p,B0)|0,V=V+Math.imul(_,S0)|0,q=q+Math.imul(_,B0)|0,z=z+Math.imul(b,x0)|0,V=V+Math.imul(b,w0)|0,V=V+Math.imul(t,x0)|0,q=q+Math.imul(t,w0)|0,z=z+Math.imul(T,k0)|0,V=V+Math.imul(T,f)|0,V=V+Math.imul(k,k0)|0,q=q+Math.imul(k,f)|0;var FQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,z=Math.imul(o,z0),V=Math.imul(o,O0),V=V+Math.imul(Y0,z0)|0,q=Math.imul(Y0,O0),z=z+Math.imul($0,I0)|0,V=V+Math.imul($0,D0)|0,V=V+Math.imul(m,I0)|0,q=q+Math.imul(m,D0)|0,z=z+Math.imul(c,R0)|0,V=V+Math.imul(c,E0)|0,V=V+Math.imul(l,R0)|0,q=q+Math.imul(l,E0)|0,z=z+Math.imul(h,S0)|0,V=V+Math.imul(h,B0)|0,V=V+Math.imul(e,S0)|0,q=q+Math.imul(e,B0)|0,z=z+Math.imul(p,x0)|0,V=V+Math.imul(p,w0)|0,V=V+Math.imul(_,x0)|0,q=q+Math.imul(_,w0)|0,z=z+Math.imul(b,k0)|0,V=V+Math.imul(b,f)|0,V=V+Math.imul(t,k0)|0,q=q+Math.imul(t,f)|0,z=z+Math.imul(T,Z0)|0,V=V+Math.imul(T,K0)|0,V=V+Math.imul(k,Z0)|0,q=q+Math.imul(k,K0)|0;var qQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(qQ>>>26)|0,qQ&=67108863,z=Math.imul(V0,z0),V=Math.imul(V0,O0),V=V+Math.imul(W0,z0)|0,q=Math.imul(W0,O0),z=z+Math.imul(o,I0)|0,V=V+Math.imul(o,D0)|0,V=V+Math.imul(Y0,I0)|0,q=q+Math.imul(Y0,D0)|0,z=z+Math.imul($0,R0)|0,V=V+Math.imul($0,E0)|0,V=V+Math.imul(m,R0)|0,q=q+Math.imul(m,E0)|0,z=z+Math.imul(c,S0)|0,V=V+Math.imul(c,B0)|0,V=V+Math.imul(l,S0)|0,q=q+Math.imul(l,B0)|0,z=z+Math.imul(h,x0)|0,V=V+Math.imul(h,w0)|0,V=V+Math.imul(e,x0)|0,q=q+Math.imul(e,w0)|0,z=z+Math.imul(p,k0)|0,V=V+Math.imul(p,f)|0,V=V+Math.imul(_,k0)|0,q=q+Math.imul(_,f)|0,z=z+Math.imul(b,Z0)|0,V=V+Math.imul(b,K0)|0,V=V+Math.imul(t,Z0)|0,q=q+Math.imul(t,K0)|0,z=z+Math.imul(T,P0)|0,V=V+Math.imul(T,A0)|0,V=V+Math.imul(k,P0)|0,q=q+Math.imul(k,A0)|0;var zQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,z=Math.imul(a,z0),V=Math.imul(a,O0),V=V+Math.imul(J0,z0)|0,q=Math.imul(J0,O0),z=z+Math.imul(V0,I0)|0,V=V+Math.imul(V0,D0)|0,V=V+Math.imul(W0,I0)|0,q=q+Math.imul(W0,D0)|0,z=z+Math.imul(o,R0)|0,V=V+Math.imul(o,E0)|0,V=V+Math.imul(Y0,R0)|0,q=q+Math.imul(Y0,E0)|0,z=z+Math.imul($0,S0)|0,V=V+Math.imul($0,B0)|0,V=V+Math.imul(m,S0)|0,q=q+Math.imul(m,B0)|0,z=z+Math.imul(c,x0)|0,V=V+Math.imul(c,w0)|0,V=V+Math.imul(l,x0)|0,q=q+Math.imul(l,w0)|0,z=z+Math.imul(h,k0)|0,V=V+Math.imul(h,f)|0,V=V+Math.imul(e,k0)|0,q=q+Math.imul(e,f)|0,z=z+Math.imul(p,Z0)|0,V=V+Math.imul(p,K0)|0,V=V+Math.imul(_,Z0)|0,q=q+Math.imul(_,K0)|0,z=z+Math.imul(b,P0)|0,V=V+Math.imul(b,A0)|0,V=V+Math.imul(t,P0)|0,q=q+Math.imul(t,A0)|0,z=z+Math.imul(T,v0)|0,V=V+Math.imul(T,_0)|0,V=V+Math.imul(k,v0)|0,q=q+Math.imul(k,_0)|0;var OQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(OQ>>>26)|0,OQ&=67108863,z=Math.imul(H0,z0),V=Math.imul(H0,O0),V=V+Math.imul(F0,z0)|0,q=Math.imul(F0,O0),z=z+Math.imul(a,I0)|0,V=V+Math.imul(a,D0)|0,V=V+Math.imul(J0,I0)|0,q=q+Math.imul(J0,D0)|0,z=z+Math.imul(V0,R0)|0,V=V+Math.imul(V0,E0)|0,V=V+Math.imul(W0,R0)|0,q=q+Math.imul(W0,E0)|0,z=z+Math.imul(o,S0)|0,V=V+Math.imul(o,B0)|0,V=V+Math.imul(Y0,S0)|0,q=q+Math.imul(Y0,B0)|0,z=z+Math.imul($0,x0)|0,V=V+Math.imul($0,w0)|0,V=V+Math.imul(m,x0)|0,q=q+Math.imul(m,w0)|0,z=z+Math.imul(c,k0)|0,V=V+Math.imul(c,f)|0,V=V+Math.imul(l,k0)|0,q=q+Math.imul(l,f)|0,z=z+Math.imul(h,Z0)|0,V=V+Math.imul(h,K0)|0,V=V+Math.imul(e,Z0)|0,q=q+Math.imul(e,K0)|0,z=z+Math.imul(p,P0)|0,V=V+Math.imul(p,A0)|0,V=V+Math.imul(_,P0)|0,q=q+Math.imul(_,A0)|0,z=z+Math.imul(b,v0)|0,V=V+Math.imul(b,_0)|0,V=V+Math.imul(t,v0)|0,q=q+Math.imul(t,_0)|0,z=z+Math.imul(T,N0)|0,V=V+Math.imul(T,j0)|0,V=V+Math.imul(k,N0)|0,q=q+Math.imul(k,j0)|0;var CQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,z=Math.imul(H0,I0),V=Math.imul(H0,D0),V=V+Math.imul(F0,I0)|0,q=Math.imul(F0,D0),z=z+Math.imul(a,R0)|0,V=V+Math.imul(a,E0)|0,V=V+Math.imul(J0,R0)|0,q=q+Math.imul(J0,E0)|0,z=z+Math.imul(V0,S0)|0,V=V+Math.imul(V0,B0)|0,V=V+Math.imul(W0,S0)|0,q=q+Math.imul(W0,B0)|0,z=z+Math.imul(o,x0)|0,V=V+Math.imul(o,w0)|0,V=V+Math.imul(Y0,x0)|0,q=q+Math.imul(Y0,w0)|0,z=z+Math.imul($0,k0)|0,V=V+Math.imul($0,f)|0,V=V+Math.imul(m,k0)|0,q=q+Math.imul(m,f)|0,z=z+Math.imul(c,Z0)|0,V=V+Math.imul(c,K0)|0,V=V+Math.imul(l,Z0)|0,q=q+Math.imul(l,K0)|0,z=z+Math.imul(h,P0)|0,V=V+Math.imul(h,A0)|0,V=V+Math.imul(e,P0)|0,q=q+Math.imul(e,A0)|0,z=z+Math.imul(p,v0)|0,V=V+Math.imul(p,_0)|0,V=V+Math.imul(_,v0)|0,q=q+Math.imul(_,_0)|0,z=z+Math.imul(b,N0)|0,V=V+Math.imul(b,j0)|0,V=V+Math.imul(t,N0)|0,q=q+Math.imul(t,j0)|0;var LQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,z=Math.imul(H0,R0),V=Math.imul(H0,E0),V=V+Math.imul(F0,R0)|0,q=Math.imul(F0,E0),z=z+Math.imul(a,S0)|0,V=V+Math.imul(a,B0)|0,V=V+Math.imul(J0,S0)|0,q=q+Math.imul(J0,B0)|0,z=z+Math.imul(V0,x0)|0,V=V+Math.imul(V0,w0)|0,V=V+Math.imul(W0,x0)|0,q=q+Math.imul(W0,w0)|0,z=z+Math.imul(o,k0)|0,V=V+Math.imul(o,f)|0,V=V+Math.imul(Y0,k0)|0,q=q+Math.imul(Y0,f)|0,z=z+Math.imul($0,Z0)|0,V=V+Math.imul($0,K0)|0,V=V+Math.imul(m,Z0)|0,q=q+Math.imul(m,K0)|0,z=z+Math.imul(c,P0)|0,V=V+Math.imul(c,A0)|0,V=V+Math.imul(l,P0)|0,q=q+Math.imul(l,A0)|0,z=z+Math.imul(h,v0)|0,V=V+Math.imul(h,_0)|0,V=V+Math.imul(e,v0)|0,q=q+Math.imul(e,_0)|0,z=z+Math.imul(p,N0)|0,V=V+Math.imul(p,j0)|0,V=V+Math.imul(_,N0)|0,q=q+Math.imul(_,j0)|0;var MQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,z=Math.imul(H0,S0),V=Math.imul(H0,B0),V=V+Math.imul(F0,S0)|0,q=Math.imul(F0,B0),z=z+Math.imul(a,x0)|0,V=V+Math.imul(a,w0)|0,V=V+Math.imul(J0,x0)|0,q=q+Math.imul(J0,w0)|0,z=z+Math.imul(V0,k0)|0,V=V+Math.imul(V0,f)|0,V=V+Math.imul(W0,k0)|0,q=q+Math.imul(W0,f)|0,z=z+Math.imul(o,Z0)|0,V=V+Math.imul(o,K0)|0,V=V+Math.imul(Y0,Z0)|0,q=q+Math.imul(Y0,K0)|0,z=z+Math.imul($0,P0)|0,V=V+Math.imul($0,A0)|0,V=V+Math.imul(m,P0)|0,q=q+Math.imul(m,A0)|0,z=z+Math.imul(c,v0)|0,V=V+Math.imul(c,_0)|0,V=V+Math.imul(l,v0)|0,q=q+Math.imul(l,_0)|0,z=z+Math.imul(h,N0)|0,V=V+Math.imul(h,j0)|0,V=V+Math.imul(e,N0)|0,q=q+Math.imul(e,j0)|0;var IQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(IQ>>>26)|0,IQ&=67108863,z=Math.imul(H0,x0),V=Math.imul(H0,w0),V=V+Math.imul(F0,x0)|0,q=Math.imul(F0,w0),z=z+Math.imul(a,k0)|0,V=V+Math.imul(a,f)|0,V=V+Math.imul(J0,k0)|0,q=q+Math.imul(J0,f)|0,z=z+Math.imul(V0,Z0)|0,V=V+Math.imul(V0,K0)|0,V=V+Math.imul(W0,Z0)|0,q=q+Math.imul(W0,K0)|0,z=z+Math.imul(o,P0)|0,V=V+Math.imul(o,A0)|0,V=V+Math.imul(Y0,P0)|0,q=q+Math.imul(Y0,A0)|0,z=z+Math.imul($0,v0)|0,V=V+Math.imul($0,_0)|0,V=V+Math.imul(m,v0)|0,q=q+Math.imul(m,_0)|0,z=z+Math.imul(c,N0)|0,V=V+Math.imul(c,j0)|0,V=V+Math.imul(l,N0)|0,q=q+Math.imul(l,j0)|0;var DQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,z=Math.imul(H0,k0),V=Math.imul(H0,f),V=V+Math.imul(F0,k0)|0,q=Math.imul(F0,f),z=z+Math.imul(a,Z0)|0,V=V+Math.imul(a,K0)|0,V=V+Math.imul(J0,Z0)|0,q=q+Math.imul(J0,K0)|0,z=z+Math.imul(V0,P0)|0,V=V+Math.imul(V0,A0)|0,V=V+Math.imul(W0,P0)|0,q=q+Math.imul(W0,A0)|0,z=z+Math.imul(o,v0)|0,V=V+Math.imul(o,_0)|0,V=V+Math.imul(Y0,v0)|0,q=q+Math.imul(Y0,_0)|0,z=z+Math.imul($0,N0)|0,V=V+Math.imul($0,j0)|0,V=V+Math.imul(m,N0)|0,q=q+Math.imul(m,j0)|0;var PQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,z=Math.imul(H0,Z0),V=Math.imul(H0,K0),V=V+Math.imul(F0,Z0)|0,q=Math.imul(F0,K0),z=z+Math.imul(a,P0)|0,V=V+Math.imul(a,A0)|0,V=V+Math.imul(J0,P0)|0,q=q+Math.imul(J0,A0)|0,z=z+Math.imul(V0,v0)|0,V=V+Math.imul(V0,_0)|0,V=V+Math.imul(W0,v0)|0,q=q+Math.imul(W0,_0)|0,z=z+Math.imul(o,N0)|0,V=V+Math.imul(o,j0)|0,V=V+Math.imul(Y0,N0)|0,q=q+Math.imul(Y0,j0)|0;var TQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,z=Math.imul(H0,P0),V=Math.imul(H0,A0),V=V+Math.imul(F0,P0)|0,q=Math.imul(F0,A0),z=z+Math.imul(a,v0)|0,V=V+Math.imul(a,_0)|0,V=V+Math.imul(J0,v0)|0,q=q+Math.imul(J0,_0)|0,z=z+Math.imul(V0,N0)|0,V=V+Math.imul(V0,j0)|0,V=V+Math.imul(W0,N0)|0,q=q+Math.imul(W0,j0)|0;var AQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,z=Math.imul(H0,v0),V=Math.imul(H0,_0),V=V+Math.imul(F0,v0)|0,q=Math.imul(F0,_0),z=z+Math.imul(a,N0)|0,V=V+Math.imul(a,j0)|0,V=V+Math.imul(J0,N0)|0,q=q+Math.imul(J0,j0)|0;var RQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,z=Math.imul(H0,N0),V=Math.imul(H0,j0),V=V+Math.imul(F0,N0)|0,q=Math.imul(F0,j0);var EQ=(I+z|0)+((V&8191)<<13)|0;if(I=(q+(V>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,O[0]=WQ,O[1]=m0,O[2]=l0,O[3]=e0,O[4]=i0,O[5]=FQ,O[6]=qQ,O[7]=zQ,O[8]=OQ,O[9]=CQ,O[10]=LQ,O[11]=MQ,O[12]=IQ,O[13]=DQ,O[14]=PQ,O[15]=TQ,O[16]=AQ,O[17]=RQ,O[18]=EQ,I!==0)O[19]=I,F.length++;return F};if(!Math.imul)j=B;function N(Y,G,F){F.negative=G.negative^Y.negative,F.length=Y.length+G.length;var Z=0,K=0;for(var O=0;O<F.length-1;O++){var I=K;K=0;var z=Z&67108863,V=Math.min(O,G.length-1);for(var q=Math.max(0,O-Y.length+1);q<=V;q++){var R=O-q,T=Y.words[R]|0,k=G.words[q]|0,g=T*k,b=g&67108863;I=I+(g/67108864|0)|0,b=b+z|0,z=b&67108863,I=I+(b>>>26)|0,K+=I>>>26,I&=67108863}F.words[O]=z,Z=I,I=K}if(Z!==0)F.words[O]=Z;else F.length--;return F.strip()}function v(Y,G,F){var Z=new x;return Z.mulp(Y,G,F)}U.prototype.mulTo=function(Y,G){var F,Z=this.length+Y.length;if(this.length===10&&Y.length===10)F=j(this,Y,G);else if(Z<63)F=B(this,Y,G);else if(Z<1024)F=N(this,Y,G);else F=v(this,Y,G);return F};function x(Y,G){this.x=Y,this.y=G}x.prototype.makeRBT=function(Y){var G=Array(Y),F=U.prototype._countBits(Y)-1;for(var Z=0;Z<Y;Z++)G[Z]=this.revBin(Z,F,Y);return G},x.prototype.revBin=function(Y,G,F){if(Y===0||Y===F-1)return Y;var Z=0;for(var K=0;K<G;K++)Z|=(Y&1)<<G-K-1,Y>>=1;return Z},x.prototype.permute=function(Y,G,F,Z,K,O){for(var I=0;I<O;I++)Z[I]=G[Y[I]],K[I]=F[Y[I]]},x.prototype.transform=function(Y,G,F,Z,K,O){this.permute(O,Y,G,F,Z,K);for(var I=1;I<K;I<<=1){var z=I<<1,V=Math.cos(2*Math.PI/z),q=Math.sin(2*Math.PI/z);for(var R=0;R<K;R+=z){var T=V,k=q;for(var g=0;g<I;g++){var b=F[R+g],t=Z[R+g],G0=F[R+g+I],p=Z[R+g+I],_=T*G0-k*p;if(p=T*p+k*G0,G0=_,F[R+g]=b+G0,Z[R+g]=t+p,F[R+g+I]=b-G0,Z[R+g+I]=t-p,g!==z)_=V*T-q*k,k=V*k+q*T,T=_}}}},x.prototype.guessLen13b=function(Y,G){var F=Math.max(G,Y)|1,Z=F&1,K=0;for(F=F/2|0;F;F=F>>>1)K++;return 1<<K+1+Z},x.prototype.conjugate=function(Y,G,F){if(F<=1)return;for(var Z=0;Z<F/2;Z++){var K=Y[Z];Y[Z]=Y[F-Z-1],Y[F-Z-1]=K,K=G[Z],G[Z]=-G[F-Z-1],G[F-Z-1]=-K}},x.prototype.normalize13b=function(Y,G){var F=0;for(var Z=0;Z<G/2;Z++){var K=Math.round(Y[2*Z+1]/G)*8192+Math.round(Y[2*Z]/G)+F;if(Y[Z]=K&67108863,K<67108864)F=0;else F=K/67108864|0}return Y},x.prototype.convert13b=function(Y,G,F,Z){var K=0;for(var O=0;O<G;O++)K=K+(Y[O]|0),F[2*O]=K&8191,K=K>>>13,F[2*O+1]=K&8191,K=K>>>13;for(O=2*G;O<Z;++O)F[O]=0;W(K===0),W((K&-8192)===0)},x.prototype.stub=function(Y){var G=Array(Y);for(var F=0;F<Y;F++)G[F]=0;return G},x.prototype.mulp=function(Y,G,F){var Z=2*this.guessLen13b(Y.length,G.length),K=this.makeRBT(Z),O=this.stub(Z),I=Array(Z),z=Array(Z),V=Array(Z),q=Array(Z),R=Array(Z),T=Array(Z),k=F.words;k.length=Z,this.convert13b(Y.words,Y.length,I,Z),this.convert13b(G.words,G.length,q,Z),this.transform(I,O,z,V,Z,K),this.transform(q,O,R,T,Z,K);for(var g=0;g<Z;g++){var b=z[g]*R[g]-V[g]*T[g];V[g]=z[g]*T[g]+V[g]*R[g],z[g]=b}return this.conjugate(z,V,Z),this.transform(z,V,k,O,Z,K),this.conjugate(k,O,Z),this.normalize13b(k,Z),F.negative=Y.negative^G.negative,F.length=Y.length+G.length,F.strip()},U.prototype.mul=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),this.mulTo(Y,G)},U.prototype.mulf=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),v(this,Y,G)},U.prototype.imul=function(Y){return this.clone().mulTo(Y,this)},U.prototype.imuln=function(Y){W(typeof Y==="number"),W(Y<67108864);var G=0;for(var F=0;F<this.length;F++){var Z=(this.words[F]|0)*Y,K=(Z&67108863)+(G&67108863);G>>=26,G+=Z/67108864|0,G+=K>>>26,this.words[F]=K&67108863}if(G!==0)this.words[F]=G,this.length++;return this.length=Y===0?1:this.length,this},U.prototype.muln=function(Y){return this.clone().imuln(Y)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(Y){var G=S(Y);if(G.length===0)return new U(1);var F=this;for(var Z=0;Z<G.length;Z++,F=F.sqr())if(G[Z]!==0)break;if(++Z<G.length)for(var K=F.sqr();Z<G.length;Z++,K=K.sqr()){if(G[Z]===0)continue;F=F.mul(K)}return F},U.prototype.iushln=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=67108863>>>26-G<<26-G,K;if(G!==0){var O=0;for(K=0;K<this.length;K++){var I=this.words[K]&Z,z=(this.words[K]|0)-I<<G;this.words[K]=z|O,O=I>>>26-G}if(O)this.words[K]=O,this.length++}if(F!==0){for(K=this.length-1;K>=0;K--)this.words[K+F]=this.words[K];for(K=0;K<F;K++)this.words[K]=0;this.length+=F}return this.strip()},U.prototype.ishln=function(Y){return W(this.negative===0),this.iushln(Y)},U.prototype.iushrn=function(Y,G,F){W(typeof Y==="number"&&Y>=0);var Z;if(G)Z=(G-G%26)/26;else Z=0;var K=Y%26,O=Math.min((Y-K)/26,this.length),I=67108863^67108863>>>K<<K,z=F;if(Z-=O,Z=Math.max(0,Z),z){for(var V=0;V<O;V++)z.words[V]=this.words[V];z.length=O}if(O===0);else if(this.length>O){this.length-=O;for(V=0;V<this.length;V++)this.words[V]=this.words[V+O]}else this.words[0]=0,this.length=1;var q=0;for(V=this.length-1;V>=0&&(q!==0||V>=Z);V--){var R=this.words[V]|0;this.words[V]=q<<26-K|R>>>K,q=R&I}if(z&&q!==0)z.words[z.length++]=q;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},U.prototype.ishrn=function(Y,G,F){return W(this.negative===0),this.iushrn(Y,G,F)},U.prototype.shln=function(Y){return this.clone().ishln(Y)},U.prototype.ushln=function(Y){return this.clone().iushln(Y)},U.prototype.shrn=function(Y){return this.clone().ishrn(Y)},U.prototype.ushrn=function(Y){return this.clone().iushrn(Y)},U.prototype.testn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return!1;var K=this.words[F];return!!(K&Z)},U.prototype.imaskn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26;if(W(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(G!==0)F++;if(this.length=Math.min(F,this.length),G!==0){var Z=67108863^67108863>>>G<<G;this.words[this.length-1]&=Z}return this.strip()},U.prototype.maskn=function(Y){return this.clone().imaskn(Y)},U.prototype.iaddn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.isubn(-Y);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Y)return this.words[0]=Y-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Y),this.negative=1,this}return this._iaddn(Y)},U.prototype._iaddn=function(Y){this.words[0]+=Y;for(var G=0;G<this.length&&this.words[G]>=67108864;G++)if(this.words[G]-=67108864,G===this.length-1)this.words[G+1]=1;else this.words[G+1]++;return this.length=Math.max(this.length,G+1),this},U.prototype.isubn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.iaddn(-Y);if(this.negative!==0)return this.negative=0,this.iaddn(Y),this.negative=1,this;if(this.words[0]-=Y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var G=0;G<this.length&&this.words[G]<0;G++)this.words[G]+=67108864,this.words[G+1]-=1;return this.strip()},U.prototype.addn=function(Y){return this.clone().iaddn(Y)},U.prototype.subn=function(Y){return this.clone().isubn(Y)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(Y,G,F){var Z=Y.length+F,K;this._expand(Z);var O,I=0;for(K=0;K<Y.length;K++){O=(this.words[K+F]|0)+I;var z=(Y.words[K]|0)*G;O-=z&67108863,I=(O>>26)-(z/67108864|0),this.words[K+F]=O&67108863}for(;K<this.length-F;K++)O=(this.words[K+F]|0)+I,I=O>>26,this.words[K+F]=O&67108863;if(I===0)return this.strip();W(I===-1),I=0;for(K=0;K<this.length;K++)O=-(this.words[K]|0)+I,I=O>>26,this.words[K]=O&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(Y,G){var F=this.length-Y.length,Z=this.clone(),K=Y,O=K.words[K.length-1]|0,I=this._countBits(O);if(F=26-I,F!==0)K=K.ushln(F),Z.iushln(F),O=K.words[K.length-1]|0;var z=Z.length-K.length,V;if(G!=="mod"){V=new U(null),V.length=z+1,V.words=Array(V.length);for(var q=0;q<V.length;q++)V.words[q]=0}var R=Z.clone()._ishlnsubmul(K,1,z);if(R.negative===0){if(Z=R,V)V.words[z]=1}for(var T=z-1;T>=0;T--){var k=(Z.words[K.length+T]|0)*67108864+(Z.words[K.length+T-1]|0);k=Math.min(k/O|0,67108863),Z._ishlnsubmul(K,k,T);while(Z.negative!==0)if(k--,Z.negative=0,Z._ishlnsubmul(K,1,T),!Z.isZero())Z.negative^=1;if(V)V.words[T]=k}if(V)V.strip();if(Z.strip(),G!=="div"&&F!==0)Z.iushrn(F);return{div:V||null,mod:Z}},U.prototype.divmod=function(Y,G,F){if(W(!Y.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var Z,K,O;if(this.negative!==0&&Y.negative===0){if(O=this.neg().divmod(Y,G),G!=="mod")Z=O.div.neg();if(G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.iadd(Y)}return{div:Z,mod:K}}if(this.negative===0&&Y.negative!==0){if(O=this.divmod(Y.neg(),G),G!=="mod")Z=O.div.neg();return{div:Z,mod:O.mod}}if((this.negative&Y.negative)!==0){if(O=this.neg().divmod(Y.neg(),G),G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.isub(Y)}return{div:O.div,mod:K}}if(Y.length>this.length||this.cmp(Y)<0)return{div:new U(0),mod:this};if(Y.length===1){if(G==="div")return{div:this.divn(Y.words[0]),mod:null};if(G==="mod")return{div:null,mod:new U(this.modn(Y.words[0]))};return{div:this.divn(Y.words[0]),mod:new U(this.modn(Y.words[0]))}}return this._wordDiv(Y,G)},U.prototype.div=function(Y){return this.divmod(Y,"div",!1).div},U.prototype.mod=function(Y){return this.divmod(Y,"mod",!1).mod},U.prototype.umod=function(Y){return this.divmod(Y,"mod",!0).mod},U.prototype.divRound=function(Y){var G=this.divmod(Y);if(G.mod.isZero())return G.div;var F=G.div.negative!==0?G.mod.isub(Y):G.mod,Z=Y.ushrn(1),K=Y.andln(1),O=F.cmp(Z);if(O<0||K===1&&O===0)return G.div;return G.div.negative!==0?G.div.isubn(1):G.div.iaddn(1)},U.prototype.modn=function(Y){W(Y<=67108863);var G=67108864%Y,F=0;for(var Z=this.length-1;Z>=0;Z--)F=(G*F+(this.words[Z]|0))%Y;return F},U.prototype.idivn=function(Y){W(Y<=67108863);var G=0;for(var F=this.length-1;F>=0;F--){var Z=(this.words[F]|0)+G*67108864;this.words[F]=Z/Y|0,G=Z%Y}return this.strip()},U.prototype.divn=function(Y){return this.clone().idivn(Y)},U.prototype.egcd=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=new U(0),I=new U(1),z=0;while(G.isEven()&&F.isEven())G.iushrn(1),F.iushrn(1),++z;var V=F.clone(),q=G.clone();while(!G.isZero()){for(var R=0,T=1;(G.words[0]&T)===0&&R<26;++R,T<<=1);if(R>0){G.iushrn(R);while(R-- >0){if(Z.isOdd()||K.isOdd())Z.iadd(V),K.isub(q);Z.iushrn(1),K.iushrn(1)}}for(var k=0,g=1;(F.words[0]&g)===0&&k<26;++k,g<<=1);if(k>0){F.iushrn(k);while(k-- >0){if(O.isOdd()||I.isOdd())O.iadd(V),I.isub(q);O.iushrn(1),I.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(O),K.isub(I);else F.isub(G),O.isub(Z),I.isub(K)}return{a:O,b:I,gcd:F.iushln(z)}},U.prototype._invmp=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=F.clone();while(G.cmpn(1)>0&&F.cmpn(1)>0){for(var I=0,z=1;(G.words[0]&z)===0&&I<26;++I,z<<=1);if(I>0){G.iushrn(I);while(I-- >0){if(Z.isOdd())Z.iadd(O);Z.iushrn(1)}}for(var V=0,q=1;(F.words[0]&q)===0&&V<26;++V,q<<=1);if(V>0){F.iushrn(V);while(V-- >0){if(K.isOdd())K.iadd(O);K.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(K);else F.isub(G),K.isub(Z)}var R;if(G.cmpn(1)===0)R=Z;else R=K;if(R.cmpn(0)<0)R.iadd(Y);return R},U.prototype.gcd=function(Y){if(this.isZero())return Y.abs();if(Y.isZero())return this.abs();var G=this.clone(),F=Y.clone();G.negative=0,F.negative=0;for(var Z=0;G.isEven()&&F.isEven();Z++)G.iushrn(1),F.iushrn(1);do{while(G.isEven())G.iushrn(1);while(F.isEven())F.iushrn(1);var K=G.cmp(F);if(K<0){var O=G;G=F,F=O}else if(K===0||F.cmpn(1)===0)break;G.isub(F)}while(!0);return F.iushln(Z)},U.prototype.invm=function(Y){return this.egcd(Y).a.umod(Y)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(Y){return this.words[0]&Y},U.prototype.bincn=function(Y){W(typeof Y==="number");var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return this._expand(F+1),this.words[F]|=Z,this;var K=Z;for(var O=F;K!==0&&O<this.length;O++){var I=this.words[O]|0;I+=K,K=I>>>26,I&=67108863,this.words[O]=I}if(K!==0)this.words[O]=K,this.length++;return this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(Y){var G=Y<0;if(this.negative!==0&&!G)return-1;if(this.negative===0&&G)return 1;this.strip();var F;if(this.length>1)F=1;else{if(G)Y=-Y;W(Y<=67108863,"Number is too big");var Z=this.words[0]|0;F=Z===Y?0:Z<Y?-1:1}if(this.negative!==0)return-F|0;return F},U.prototype.cmp=function(Y){if(this.negative!==0&&Y.negative===0)return-1;if(this.negative===0&&Y.negative!==0)return 1;var G=this.ucmp(Y);if(this.negative!==0)return-G|0;return G},U.prototype.ucmp=function(Y){if(this.length>Y.length)return 1;if(this.length<Y.length)return-1;var G=0;for(var F=this.length-1;F>=0;F--){var Z=this.words[F]|0,K=Y.words[F]|0;if(Z===K)continue;if(Z<K)G=-1;else if(Z>K)G=1;break}return G},U.prototype.gtn=function(Y){return this.cmpn(Y)===1},U.prototype.gt=function(Y){return this.cmp(Y)===1},U.prototype.gten=function(Y){return this.cmpn(Y)>=0},U.prototype.gte=function(Y){return this.cmp(Y)>=0},U.prototype.ltn=function(Y){return this.cmpn(Y)===-1},U.prototype.lt=function(Y){return this.cmp(Y)===-1},U.prototype.lten=function(Y){return this.cmpn(Y)<=0},U.prototype.lte=function(Y){return this.cmp(Y)<=0},U.prototype.eqn=function(Y){return this.cmpn(Y)===0},U.prototype.eq=function(Y){return this.cmp(Y)===0},U.red=function(Y){return new u(Y)},U.prototype.toRed=function(Y){return W(!this.red,"Already a number in reduction context"),W(this.negative===0,"red works only with positives"),Y.convertTo(this)._forceRed(Y)},U.prototype.fromRed=function(){return W(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(Y){return this.red=Y,this},U.prototype.forceRed=function(Y){return W(!this.red,"Already a number in reduction context"),this._forceRed(Y)},U.prototype.redAdd=function(Y){return W(this.red,"redAdd works only with red numbers"),this.red.add(this,Y)},U.prototype.redIAdd=function(Y){return W(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Y)},U.prototype.redSub=function(Y){return W(this.red,"redSub works only with red numbers"),this.red.sub(this,Y)},U.prototype.redISub=function(Y){return W(this.red,"redISub works only with red numbers"),this.red.isub(this,Y)},U.prototype.redShl=function(Y){return W(this.red,"redShl works only with red numbers"),this.red.shl(this,Y)},U.prototype.redMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.mul(this,Y)},U.prototype.redIMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.imul(this,Y)},U.prototype.redSqr=function(){return W(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return W(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return W(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return W(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return W(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(Y){return W(this.red&&!Y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Y)};var w={k256:null,p224:null,p192:null,p25519:null};function y(Y,G){this.name=Y,this.p=new U(G,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var Y=new U(null);return Y.words=Array(Math.ceil(this.n/13)),Y},y.prototype.ireduce=function(Y){var G=Y,F;do this.split(G,this.tmp),G=this.imulK(G),G=G.iadd(this.tmp),F=G.bitLength();while(F>this.n);var Z=F<this.n?-1:G.ucmp(this.p);if(Z===0)G.words[0]=0,G.length=1;else if(Z>0)G.isub(this.p);else if(G.strip!==void 0)G.strip();else G._strip();return G},y.prototype.split=function(Y,G){Y.iushrn(this.n,0,G)},y.prototype.imulK=function(Y){return Y.imul(this.k)};function n(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}H(n,y),n.prototype.split=function(Y,G){var F=4194303,Z=Math.min(Y.length,9);for(var K=0;K<Z;K++)G.words[K]=Y.words[K];if(G.length=Z,Y.length<=9){Y.words[0]=0,Y.length=1;return}var O=Y.words[9];G.words[G.length++]=O&F;for(K=10;K<Y.length;K++){var I=Y.words[K]|0;Y.words[K-10]=(I&F)<<4|O>>>22,O=I}if(O>>>=22,Y.words[K-10]=O,O===0&&Y.length>10)Y.length-=10;else Y.length-=9},n.prototype.imulK=function(Y){Y.words[Y.length]=0,Y.words[Y.length+1]=0,Y.length+=2;var G=0;for(var F=0;F<Y.length;F++){var Z=Y.words[F]|0;G+=Z*977,Y.words[F]=G&67108863,G=Z*64+(G/67108864|0)}if(Y.words[Y.length-1]===0){if(Y.length--,Y.words[Y.length-1]===0)Y.length--}return Y};function r(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}H(r,y);function s(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}H(s,y);function i(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}H(i,y),i.prototype.imulK=function(Y){var G=0;for(var F=0;F<Y.length;F++){var Z=(Y.words[F]|0)*19+G,K=Z&67108863;Z>>>=26,Y.words[F]=K,G=Z}if(G!==0)Y.words[Y.length++]=G;return Y},U._prime=function(Y){if(w[Y])return w[Y];var G;if(Y==="k256")G=new n;else if(Y==="p224")G=new r;else if(Y==="p192")G=new s;else if(Y==="p25519")G=new i;else throw Error("Unknown prime "+Y);return w[Y]=G,G};function u(Y){if(typeof Y==="string"){var G=U._prime(Y);this.m=G.p,this.prime=G}else W(Y.gtn(1),"modulus must be greater than 1"),this.m=Y,this.prime=null}u.prototype._verify1=function(Y){W(Y.negative===0,"red works only with positives"),W(Y.red,"red works only with red numbers")},u.prototype._verify2=function(Y,G){W((Y.negative|G.negative)===0,"red works only with positives"),W(Y.red&&Y.red===G.red,"red works only with red numbers")},u.prototype.imod=function(Y){if(this.prime)return this.prime.ireduce(Y)._forceRed(this);return Y.umod(this.m)._forceRed(this)},u.prototype.neg=function(Y){if(Y.isZero())return Y.clone();return this.m.sub(Y)._forceRed(this)},u.prototype.add=function(Y,G){this._verify2(Y,G);var F=Y.add(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},u.prototype.iadd=function(Y,G){this._verify2(Y,G);var F=Y.iadd(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F},u.prototype.sub=function(Y,G){this._verify2(Y,G);var F=Y.sub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},u.prototype.isub=function(Y,G){this._verify2(Y,G);var F=Y.isub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F},u.prototype.shl=function(Y,G){return this._verify1(Y),this.imod(Y.ushln(G))},u.prototype.imul=function(Y,G){return this._verify2(Y,G),this.imod(Y.imul(G))},u.prototype.mul=function(Y,G){return this._verify2(Y,G),this.imod(Y.mul(G))},u.prototype.isqr=function(Y){return this.imul(Y,Y.clone())},u.prototype.sqr=function(Y){return this.mul(Y,Y)},u.prototype.sqrt=function(Y){if(Y.isZero())return Y.clone();var G=this.m.andln(3);if(W(G%2===1),G===3){var F=this.m.add(new U(1)).iushrn(2);return this.pow(Y,F)}var Z=this.m.subn(1),K=0;while(!Z.isZero()&&Z.andln(1)===0)K++,Z.iushrn(1);W(!Z.isZero());var O=new U(1).toRed(this),I=O.redNeg(),z=this.m.subn(1).iushrn(1),V=this.m.bitLength();V=new U(2*V*V).toRed(this);while(this.pow(V,z).cmp(I)!==0)V.redIAdd(I);var q=this.pow(V,Z),R=this.pow(Y,Z.addn(1).iushrn(1)),T=this.pow(Y,Z),k=K;while(T.cmp(O)!==0){var g=T;for(var b=0;g.cmp(O)!==0;b++)g=g.redSqr();W(b<k);var t=this.pow(q,new U(1).iushln(k-b-1));R=R.redMul(t),q=t.redSqr(),T=T.redMul(q),k=b}return R},u.prototype.invm=function(Y){var G=Y._invmp(this.m);if(G.negative!==0)return G.negative=0,this.imod(G).redNeg();else return this.imod(G)},u.prototype.pow=function(Y,G){if(G.isZero())return new U(1).toRed(this);if(G.cmpn(1)===0)return Y.clone();var F=4,Z=Array(1<<F);Z[0]=new U(1).toRed(this),Z[1]=Y;for(var K=2;K<Z.length;K++)Z[K]=this.mul(Z[K-1],Y);var O=Z[0],I=0,z=0,V=G.bitLength()%26;if(V===0)V=26;for(K=G.length-1;K>=0;K--){var q=G.words[K];for(var R=V-1;R>=0;R--){var T=q>>R&1;if(O!==Z[0])O=this.sqr(O);if(T===0&&I===0){z=0;continue}if(I<<=1,I|=T,z++,z!==F&&(K!==0||R!==0))continue;O=this.mul(O,Z[I]),z=0,I=0}V=26}return O},u.prototype.convertTo=function(Y){var G=Y.umod(this.m);return G===Y?G.clone():G},u.prototype.convertFrom=function(Y){var G=Y.clone();return G.red=null,G},U.mont=function(Y){return new Q0(Y)};function Q0(Y){if(u.call(this,Y),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new U(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)}H(Q0,u),Q0.prototype.convertTo=function(Y){return this.imod(Y.ushln(this.shift))},Q0.prototype.convertFrom=function(Y){var G=this.imod(Y.mul(this.rinv));return G.red=null,G},Q0.prototype.imul=function(Y,G){if(Y.isZero()||G.isZero())return Y.words[0]=0,Y.length=1,Y;var F=Y.imul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.mul=function(Y,G){if(Y.isZero()||G.isZero())return new U(0)._forceRed(this);var F=Y.mul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.invm=function(Y){var G=this.imod(Y._invmp(this.m).mul(this.r2));return G._forceRed(this)}})(typeof J>"u"||J,Q)}),M2=C0((Q,J)=>{var X=C2(),$=L2();J.exports=function(C){return new H(C)};var W={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}};W.p224=W.secp224r1,W.p256=W.secp256r1=W.prime256v1,W.p192=W.secp192r1=W.prime192v1,W.p384=W.secp384r1,W.p521=W.secp521r1;function H(C){if(this.curveType=W[C],!this.curveType)this.curveType={name:C};this.curve=new X.ec(this.curveType.name),this.keys=void 0}H.prototype.generateKeys=function(C,A){return this.keys=this.curve.genKeyPair(),this.getPublicKey(C,A)},H.prototype.computeSecret=function(C,A,M){if(A=A||"utf8",!Buffer.isBuffer(C))C=new Buffer(C,A);var D=this.curve.keyFromPublic(C).getPublic(),L=D.mul(this.keys.getPrivate()).getX();return U(L,M,this.curveType.byteLength)},H.prototype.getPublicKey=function(C,A){var M=this.keys.getPublic(A==="compressed",!0);if(A==="hybrid")if(M[M.length-1]%2)M[0]=7;else M[0]=6;return U(M,C)},H.prototype.getPrivateKey=function(C){return U(this.keys.getPrivate(),C)},H.prototype.setPublicKey=function(C,A){if(A=A||"utf8",!Buffer.isBuffer(C))C=new Buffer(C,A);return this.keys._importPublic(C),this},H.prototype.setPrivateKey=function(C,A){if(A=A||"utf8",!Buffer.isBuffer(C))C=new Buffer(C,A);var M=new $(C);return M=M.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(M),this};function U(C,A,M){if(!Array.isArray(C))C=C.toArray();var D=new Buffer(C);if(M&&D.length<M){var L=new Buffer(M-D.length);L.fill(0),D=Buffer.concat([L,D])}if(!A)return D;else return D.toString(A)}}),I2=C0((Q,J)=>{var X=(XQ(),u0($Q)).createECDH;J.exports=X||M2()}),D2=C0((Q,J)=>{(function(X,$){function W(Y,G){if(!Y)throw Error(G||"Assertion failed")}function H(Y,G){Y.super_=G;var F=function(){};F.prototype=G.prototype,Y.prototype=new F,Y.prototype.constructor=Y}function U(Y,G,F){if(U.isBN(Y))return Y;if(this.negative=0,this.words=null,this.length=0,this.red=null,Y!==null){if(G==="le"||G==="be")F=G,G=10;this._init(Y||0,G||10,F||"be")}}if(typeof X==="object")X.exports=U;else $.BN=U;U.BN=U,U.wordSize=26;var C;try{if(typeof window<"u"&&typeof window.Buffer<"u")C=window.Buffer;else C=(HQ(),u0(SQ)).Buffer}catch(Y){}U.isBN=function(Y){if(Y instanceof U)return!0;return Y!==null&&typeof Y==="object"&&Y.constructor.wordSize===U.wordSize&&Array.isArray(Y.words)},U.max=function(Y,G){if(Y.cmp(G)>0)return Y;return G},U.min=function(Y,G){if(Y.cmp(G)<0)return Y;return G},U.prototype._init=function(Y,G,F){if(typeof Y==="number")return this._initNumber(Y,G,F);if(typeof Y==="object")return this._initArray(Y,G,F);if(G==="hex")G=16;W(G===(G|0)&&G>=2&&G<=36),Y=Y.toString().replace(/\s+/g,"");var Z=0;if(Y[0]==="-")Z++,this.negative=1;if(Z<Y.length){if(G===16)this._parseHex(Y,Z,F);else if(this._parseBase(Y,G,Z),F==="le")this._initArray(this.toArray(),G,F)}},U.prototype._initNumber=function(Y,G,F){if(Y<0)this.negative=1,Y=-Y;if(Y<67108864)this.words=[Y&67108863],this.length=1;else if(Y<4503599627370496)this.words=[Y&67108863,Y/67108864&67108863],this.length=2;else W(Y<9007199254740992),this.words=[Y&67108863,Y/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),G,F)},U.prototype._initArray=function(Y,G,F){if(W(typeof Y.length==="number"),Y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Y.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K,O,I=0;if(F==="be"){for(Z=Y.length-1,K=0;Z>=0;Z-=3)if(O=Y[Z]|Y[Z-1]<<8|Y[Z-2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}else if(F==="le"){for(Z=0,K=0;Z<Y.length;Z+=3)if(O=Y[Z]|Y[Z+1]<<8|Y[Z+2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}return this.strip()};function A(Y,G){var F=Y.charCodeAt(G);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Y,G,F){var Z=A(Y,F);if(F-1>=G)Z|=A(Y,F-1)<<4;return Z}U.prototype._parseHex=function(Y,G,F){this.length=Math.ceil((Y.length-G)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K=0,O=0,I;if(F==="be")for(Z=Y.length-1;Z>=G;Z-=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8;else{var z=Y.length-G;for(Z=z%2===0?G+1:G;Z<Y.length;Z+=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8}this.strip()};function D(Y,G,F,Z){var K=0,O=Math.min(Y.length,F);for(var I=G;I<O;I++){var z=Y.charCodeAt(I)-48;if(K*=Z,z>=49)K+=z-49+10;else if(z>=17)K+=z-17+10;else K+=z}return K}U.prototype._parseBase=function(Y,G,F){this.words=[0],this.length=1;for(var Z=0,K=1;K<=67108863;K*=G)Z++;Z--,K=K/G|0;var O=Y.length-F,I=O%Z,z=Math.min(O,O-I)+F,V=0;for(var q=F;q<z;q+=Z)if(V=D(Y,q,q+Z,G),this.imuln(K),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V);if(I!==0){var R=1;V=D(Y,q,Y.length,G);for(q=0;q<I;q++)R*=G;if(this.imuln(R),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V)}this.strip()},U.prototype.copy=function(Y){Y.words=Array(this.length);for(var G=0;G<this.length;G++)Y.words[G]=this.words[G];Y.length=this.length,Y.negative=this.negative,Y.red=this.red},U.prototype.clone=function(){var Y=new U(null);return this.copy(Y),Y},U.prototype._expand=function(Y){while(this.length<Y)this.words[this.length++]=0;return this},U.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},U.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","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"],P=[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],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(U.prototype.toString=function(Y,G){Y=Y||10,G=G|0||1;var F;if(Y===16||Y==="hex"){F="";var Z=0,K=0;for(var O=0;O<this.length;O++){var I=this.words[O],z=((I<<Z|K)&16777215).toString(16);if(K=I>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,O--;if(K!==0||O!==this.length-1)F=L[6-z.length]+z+F;else F=z+F}if(K!==0)F=K.toString(16)+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Y===(Y|0)&&Y>=2&&Y<=36){var V=P[Y],q=E[Y];F="";var R=this.clone();R.negative=0;while(!R.isZero()){var T=R.modn(q).toString(Y);if(R=R.idivn(q),!R.isZero())F=L[V-T.length]+T+F;else F=T+F}if(this.isZero())F="0"+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}W(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var Y=this.words[0];if(this.length===2)Y+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Y+=4503599627370496+this.words[1]*67108864;else if(this.length>2)W(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Y:Y},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(Y,G){return W(typeof C<"u"),this.toArrayLike(C,Y,G)},U.prototype.toArray=function(Y,G){return this.toArrayLike(Array,Y,G)},U.prototype.toArrayLike=function(Y,G,F){var Z=this.byteLength(),K=F||Math.max(1,Z);W(Z<=K,"byte array longer than desired length"),W(K>0,"Requested array length <= 0"),this.strip();var O=G==="le",I=new Y(K),z,V,q=this.clone();if(!O){for(V=0;V<K-Z;V++)I[V]=0;for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[K-V-1]=z}else{for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[V]=z;for(;V<K;V++)I[V]=0}return I},Math.clz32)U.prototype._countBits=function(Y){return 32-Math.clz32(Y)};else U.prototype._countBits=function(Y){var G=Y,F=0;if(G>=4096)F+=13,G>>>=13;if(G>=64)F+=7,G>>>=7;if(G>=8)F+=4,G>>>=4;if(G>=2)F+=2,G>>>=2;return F+G};U.prototype._zeroBits=function(Y){if(Y===0)return 26;var G=Y,F=0;if((G&8191)===0)F+=13,G>>>=13;if((G&127)===0)F+=7,G>>>=7;if((G&15)===0)F+=4,G>>>=4;if((G&3)===0)F+=2,G>>>=2;if((G&1)===0)F++;return F},U.prototype.bitLength=function(){var Y=this.words[this.length-1],G=this._countBits(Y);return(this.length-1)*26+G};function S(Y){var G=Array(Y.bitLength());for(var F=0;F<G.length;F++){var Z=F/26|0,K=F%26;G[F]=(Y.words[Z]&1<<K)>>>K}return G}U.prototype.zeroBits=function(){if(this.isZero())return 0;var Y=0;for(var G=0;G<this.length;G++){var F=this._zeroBits(this.words[G]);if(Y+=F,F!==26)break}return Y},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(Y){if(this.negative!==0)return this.abs().inotn(Y).iaddn(1);return this.clone()},U.prototype.fromTwos=function(Y){if(this.testn(Y-1))return this.notn(Y).iaddn(1).ineg();return this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},U.prototype.iuor=function(Y){while(this.length<Y.length)this.words[this.length++]=0;for(var G=0;G<Y.length;G++)this.words[G]=this.words[G]|Y.words[G];return this.strip()},U.prototype.ior=function(Y){return W((this.negative|Y.negative)===0),this.iuor(Y)},U.prototype.or=function(Y){if(this.length>Y.length)return this.clone().ior(Y);return Y.clone().ior(this)},U.prototype.uor=function(Y){if(this.length>Y.length)return this.clone().iuor(Y);return Y.clone().iuor(this)},U.prototype.iuand=function(Y){var G;if(this.length>Y.length)G=Y;else G=this;for(var F=0;F<G.length;F++)this.words[F]=this.words[F]&Y.words[F];return this.length=G.length,this.strip()},U.prototype.iand=function(Y){return W((this.negative|Y.negative)===0),this.iuand(Y)},U.prototype.and=function(Y){if(this.length>Y.length)return this.clone().iand(Y);return Y.clone().iand(this)},U.prototype.uand=function(Y){if(this.length>Y.length)return this.clone().iuand(Y);return Y.clone().iuand(this)},U.prototype.iuxor=function(Y){var G,F;if(this.length>Y.length)G=this,F=Y;else G=Y,F=this;for(var Z=0;Z<F.length;Z++)this.words[Z]=G.words[Z]^F.words[Z];if(this!==G)for(;Z<G.length;Z++)this.words[Z]=G.words[Z];return this.length=G.length,this.strip()},U.prototype.ixor=function(Y){return W((this.negative|Y.negative)===0),this.iuxor(Y)},U.prototype.xor=function(Y){if(this.length>Y.length)return this.clone().ixor(Y);return Y.clone().ixor(this)},U.prototype.uxor=function(Y){if(this.length>Y.length)return this.clone().iuxor(Y);return Y.clone().iuxor(this)},U.prototype.inotn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Math.ceil(Y/26)|0,F=Y%26;if(this._expand(G),F>0)G--;for(var Z=0;Z<G;Z++)this.words[Z]=~this.words[Z]&67108863;if(F>0)this.words[Z]=~this.words[Z]&67108863>>26-F;return this.strip()},U.prototype.notn=function(Y){return this.clone().inotn(Y)},U.prototype.setn=function(Y,G){W(typeof Y==="number"&&Y>=0);var F=Y/26|0,Z=Y%26;if(this._expand(F+1),G)this.words[F]=this.words[F]|1<<Z;else this.words[F]=this.words[F]&~(1<<Z);return this.strip()},U.prototype.iadd=function(Y){var G;if(this.negative!==0&&Y.negative===0)return this.negative=0,G=this.isub(Y),this.negative^=1,this._normSign();else if(this.negative===0&&Y.negative!==0)return Y.negative=0,G=this.isub(Y),Y.negative=1,G._normSign();var F,Z;if(this.length>Y.length)F=this,Z=Y;else F=Y,Z=this;var K=0;for(var O=0;O<Z.length;O++)G=(F.words[O]|0)+(Z.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;for(;K!==0&&O<F.length;O++)G=(F.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;if(this.length=F.length,K!==0)this.words[this.length]=K,this.length++;else if(F!==this)for(;O<F.length;O++)this.words[O]=F.words[O];return this},U.prototype.add=function(Y){var G;if(Y.negative!==0&&this.negative===0)return Y.negative=0,G=this.sub(Y),Y.negative^=1,G;else if(Y.negative===0&&this.negative!==0)return this.negative=0,G=Y.sub(this),this.negative=1,G;if(this.length>Y.length)return this.clone().iadd(Y);return Y.clone().iadd(this)},U.prototype.isub=function(Y){if(Y.negative!==0){Y.negative=0;var G=this.iadd(Y);return Y.negative=1,G._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Y),this.negative=1,this._normSign();var F=this.cmp(Y);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,K;if(F>0)Z=this,K=Y;else Z=Y,K=this;var O=0;for(var I=0;I<K.length;I++)G=(Z.words[I]|0)-(K.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;for(;O!==0&&I<Z.length;I++)G=(Z.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;if(O===0&&I<Z.length&&Z!==this)for(;I<Z.length;I++)this.words[I]=Z.words[I];if(this.length=Math.max(this.length,I),Z!==this)this.negative=1;return this.strip()},U.prototype.sub=function(Y){return this.clone().isub(Y)};function B(Y,G,F){F.negative=G.negative^Y.negative;var Z=Y.length+G.length|0;F.length=Z,Z=Z-1|0;var K=Y.words[0]|0,O=G.words[0]|0,I=K*O,z=I&67108863,V=I/67108864|0;F.words[0]=z;for(var q=1;q<Z;q++){var R=V>>>26,T=V&67108863,k=Math.min(q,G.length-1);for(var g=Math.max(0,q-Y.length+1);g<=k;g++){var b=q-g|0;K=Y.words[b]|0,O=G.words[g]|0,I=K*O+T,R+=I/67108864|0,T=I&67108863}F.words[q]=T|0,V=R|0}if(V!==0)F.words[q]=V|0;else F.length--;return F.strip()}var j=function(Y,G,F){var Z=Y.words,K=G.words,O=F.words,I=0,z,V,q,R=Z[0]|0,T=R&8191,k=R>>>13,g=Z[1]|0,b=g&8191,t=g>>>13,G0=Z[2]|0,p=G0&8191,_=G0>>>13,d=Z[3]|0,h=d&8191,e=d>>>13,q0=Z[4]|0,c=q0&8191,l=q0>>>13,U0=Z[5]|0,$0=U0&8191,m=U0>>>13,M0=Z[6]|0,o=M0&8191,Y0=M0>>>13,T0=Z[7]|0,V0=T0&8191,W0=T0>>>13,b0=Z[8]|0,a=b0&8191,J0=b0>>>13,y0=Z[9]|0,H0=y0&8191,F0=y0>>>13,h0=K[0]|0,z0=h0&8191,O0=h0>>>13,d0=K[1]|0,I0=d0&8191,D0=d0>>>13,ZQ=K[2]|0,R0=ZQ&8191,E0=ZQ>>>13,t0=K[3]|0,S0=t0&8191,B0=t0>>>13,vQ=K[4]|0,x0=vQ&8191,w0=vQ>>>13,NQ=K[5]|0,k0=NQ&8191,f=NQ>>>13,X0=K[6]|0,Z0=X0&8191,K0=X0>>>13,c0=K[7]|0,P0=c0&8191,A0=c0>>>13,GQ=K[8]|0,v0=GQ&8191,_0=GQ>>>13,wQ=K[9]|0,N0=wQ&8191,j0=wQ>>>13;F.negative=Y.negative^G.negative,F.length=19,z=Math.imul(T,z0),V=Math.imul(T,O0),V=V+Math.imul(k,z0)|0,q=Math.imul(k,O0);var WQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,z=Math.imul(b,z0),V=Math.imul(b,O0),V=V+Math.imul(t,z0)|0,q=Math.imul(t,O0),z=z+Math.imul(T,I0)|0,V=V+Math.imul(T,D0)|0,V=V+Math.imul(k,I0)|0,q=q+Math.imul(k,D0)|0;var m0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(m0>>>26)|0,m0&=67108863,z=Math.imul(p,z0),V=Math.imul(p,O0),V=V+Math.imul(_,z0)|0,q=Math.imul(_,O0),z=z+Math.imul(b,I0)|0,V=V+Math.imul(b,D0)|0,V=V+Math.imul(t,I0)|0,q=q+Math.imul(t,D0)|0,z=z+Math.imul(T,R0)|0,V=V+Math.imul(T,E0)|0,V=V+Math.imul(k,R0)|0,q=q+Math.imul(k,E0)|0;var l0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(l0>>>26)|0,l0&=67108863,z=Math.imul(h,z0),V=Math.imul(h,O0),V=V+Math.imul(e,z0)|0,q=Math.imul(e,O0),z=z+Math.imul(p,I0)|0,V=V+Math.imul(p,D0)|0,V=V+Math.imul(_,I0)|0,q=q+Math.imul(_,D0)|0,z=z+Math.imul(b,R0)|0,V=V+Math.imul(b,E0)|0,V=V+Math.imul(t,R0)|0,q=q+Math.imul(t,E0)|0,z=z+Math.imul(T,S0)|0,V=V+Math.imul(T,B0)|0,V=V+Math.imul(k,S0)|0,q=q+Math.imul(k,B0)|0;var e0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(e0>>>26)|0,e0&=67108863,z=Math.imul(c,z0),V=Math.imul(c,O0),V=V+Math.imul(l,z0)|0,q=Math.imul(l,O0),z=z+Math.imul(h,I0)|0,V=V+Math.imul(h,D0)|0,V=V+Math.imul(e,I0)|0,q=q+Math.imul(e,D0)|0,z=z+Math.imul(p,R0)|0,V=V+Math.imul(p,E0)|0,V=V+Math.imul(_,R0)|0,q=q+Math.imul(_,E0)|0,z=z+Math.imul(b,S0)|0,V=V+Math.imul(b,B0)|0,V=V+Math.imul(t,S0)|0,q=q+Math.imul(t,B0)|0,z=z+Math.imul(T,x0)|0,V=V+Math.imul(T,w0)|0,V=V+Math.imul(k,x0)|0,q=q+Math.imul(k,w0)|0;var i0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(i0>>>26)|0,i0&=67108863,z=Math.imul($0,z0),V=Math.imul($0,O0),V=V+Math.imul(m,z0)|0,q=Math.imul(m,O0),z=z+Math.imul(c,I0)|0,V=V+Math.imul(c,D0)|0,V=V+Math.imul(l,I0)|0,q=q+Math.imul(l,D0)|0,z=z+Math.imul(h,R0)|0,V=V+Math.imul(h,E0)|0,V=V+Math.imul(e,R0)|0,q=q+Math.imul(e,E0)|0,z=z+Math.imul(p,S0)|0,V=V+Math.imul(p,B0)|0,V=V+Math.imul(_,S0)|0,q=q+Math.imul(_,B0)|0,z=z+Math.imul(b,x0)|0,V=V+Math.imul(b,w0)|0,V=V+Math.imul(t,x0)|0,q=q+Math.imul(t,w0)|0,z=z+Math.imul(T,k0)|0,V=V+Math.imul(T,f)|0,V=V+Math.imul(k,k0)|0,q=q+Math.imul(k,f)|0;var FQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,z=Math.imul(o,z0),V=Math.imul(o,O0),V=V+Math.imul(Y0,z0)|0,q=Math.imul(Y0,O0),z=z+Math.imul($0,I0)|0,V=V+Math.imul($0,D0)|0,V=V+Math.imul(m,I0)|0,q=q+Math.imul(m,D0)|0,z=z+Math.imul(c,R0)|0,V=V+Math.imul(c,E0)|0,V=V+Math.imul(l,R0)|0,q=q+Math.imul(l,E0)|0,z=z+Math.imul(h,S0)|0,V=V+Math.imul(h,B0)|0,V=V+Math.imul(e,S0)|0,q=q+Math.imul(e,B0)|0,z=z+Math.imul(p,x0)|0,V=V+Math.imul(p,w0)|0,V=V+Math.imul(_,x0)|0,q=q+Math.imul(_,w0)|0,z=z+Math.imul(b,k0)|0,V=V+Math.imul(b,f)|0,V=V+Math.imul(t,k0)|0,q=q+Math.imul(t,f)|0,z=z+Math.imul(T,Z0)|0,V=V+Math.imul(T,K0)|0,V=V+Math.imul(k,Z0)|0,q=q+Math.imul(k,K0)|0;var qQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(qQ>>>26)|0,qQ&=67108863,z=Math.imul(V0,z0),V=Math.imul(V0,O0),V=V+Math.imul(W0,z0)|0,q=Math.imul(W0,O0),z=z+Math.imul(o,I0)|0,V=V+Math.imul(o,D0)|0,V=V+Math.imul(Y0,I0)|0,q=q+Math.imul(Y0,D0)|0,z=z+Math.imul($0,R0)|0,V=V+Math.imul($0,E0)|0,V=V+Math.imul(m,R0)|0,q=q+Math.imul(m,E0)|0,z=z+Math.imul(c,S0)|0,V=V+Math.imul(c,B0)|0,V=V+Math.imul(l,S0)|0,q=q+Math.imul(l,B0)|0,z=z+Math.imul(h,x0)|0,V=V+Math.imul(h,w0)|0,V=V+Math.imul(e,x0)|0,q=q+Math.imul(e,w0)|0,z=z+Math.imul(p,k0)|0,V=V+Math.imul(p,f)|0,V=V+Math.imul(_,k0)|0,q=q+Math.imul(_,f)|0,z=z+Math.imul(b,Z0)|0,V=V+Math.imul(b,K0)|0,V=V+Math.imul(t,Z0)|0,q=q+Math.imul(t,K0)|0,z=z+Math.imul(T,P0)|0,V=V+Math.imul(T,A0)|0,V=V+Math.imul(k,P0)|0,q=q+Math.imul(k,A0)|0;var zQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,z=Math.imul(a,z0),V=Math.imul(a,O0),V=V+Math.imul(J0,z0)|0,q=Math.imul(J0,O0),z=z+Math.imul(V0,I0)|0,V=V+Math.imul(V0,D0)|0,V=V+Math.imul(W0,I0)|0,q=q+Math.imul(W0,D0)|0,z=z+Math.imul(o,R0)|0,V=V+Math.imul(o,E0)|0,V=V+Math.imul(Y0,R0)|0,q=q+Math.imul(Y0,E0)|0,z=z+Math.imul($0,S0)|0,V=V+Math.imul($0,B0)|0,V=V+Math.imul(m,S0)|0,q=q+Math.imul(m,B0)|0,z=z+Math.imul(c,x0)|0,V=V+Math.imul(c,w0)|0,V=V+Math.imul(l,x0)|0,q=q+Math.imul(l,w0)|0,z=z+Math.imul(h,k0)|0,V=V+Math.imul(h,f)|0,V=V+Math.imul(e,k0)|0,q=q+Math.imul(e,f)|0,z=z+Math.imul(p,Z0)|0,V=V+Math.imul(p,K0)|0,V=V+Math.imul(_,Z0)|0,q=q+Math.imul(_,K0)|0,z=z+Math.imul(b,P0)|0,V=V+Math.imul(b,A0)|0,V=V+Math.imul(t,P0)|0,q=q+Math.imul(t,A0)|0,z=z+Math.imul(T,v0)|0,V=V+Math.imul(T,_0)|0,V=V+Math.imul(k,v0)|0,q=q+Math.imul(k,_0)|0;var OQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(OQ>>>26)|0,OQ&=67108863,z=Math.imul(H0,z0),V=Math.imul(H0,O0),V=V+Math.imul(F0,z0)|0,q=Math.imul(F0,O0),z=z+Math.imul(a,I0)|0,V=V+Math.imul(a,D0)|0,V=V+Math.imul(J0,I0)|0,q=q+Math.imul(J0,D0)|0,z=z+Math.imul(V0,R0)|0,V=V+Math.imul(V0,E0)|0,V=V+Math.imul(W0,R0)|0,q=q+Math.imul(W0,E0)|0,z=z+Math.imul(o,S0)|0,V=V+Math.imul(o,B0)|0,V=V+Math.imul(Y0,S0)|0,q=q+Math.imul(Y0,B0)|0,z=z+Math.imul($0,x0)|0,V=V+Math.imul($0,w0)|0,V=V+Math.imul(m,x0)|0,q=q+Math.imul(m,w0)|0,z=z+Math.imul(c,k0)|0,V=V+Math.imul(c,f)|0,V=V+Math.imul(l,k0)|0,q=q+Math.imul(l,f)|0,z=z+Math.imul(h,Z0)|0,V=V+Math.imul(h,K0)|0,V=V+Math.imul(e,Z0)|0,q=q+Math.imul(e,K0)|0,z=z+Math.imul(p,P0)|0,V=V+Math.imul(p,A0)|0,V=V+Math.imul(_,P0)|0,q=q+Math.imul(_,A0)|0,z=z+Math.imul(b,v0)|0,V=V+Math.imul(b,_0)|0,V=V+Math.imul(t,v0)|0,q=q+Math.imul(t,_0)|0,z=z+Math.imul(T,N0)|0,V=V+Math.imul(T,j0)|0,V=V+Math.imul(k,N0)|0,q=q+Math.imul(k,j0)|0;var CQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,z=Math.imul(H0,I0),V=Math.imul(H0,D0),V=V+Math.imul(F0,I0)|0,q=Math.imul(F0,D0),z=z+Math.imul(a,R0)|0,V=V+Math.imul(a,E0)|0,V=V+Math.imul(J0,R0)|0,q=q+Math.imul(J0,E0)|0,z=z+Math.imul(V0,S0)|0,V=V+Math.imul(V0,B0)|0,V=V+Math.imul(W0,S0)|0,q=q+Math.imul(W0,B0)|0,z=z+Math.imul(o,x0)|0,V=V+Math.imul(o,w0)|0,V=V+Math.imul(Y0,x0)|0,q=q+Math.imul(Y0,w0)|0,z=z+Math.imul($0,k0)|0,V=V+Math.imul($0,f)|0,V=V+Math.imul(m,k0)|0,q=q+Math.imul(m,f)|0,z=z+Math.imul(c,Z0)|0,V=V+Math.imul(c,K0)|0,V=V+Math.imul(l,Z0)|0,q=q+Math.imul(l,K0)|0,z=z+Math.imul(h,P0)|0,V=V+Math.imul(h,A0)|0,V=V+Math.imul(e,P0)|0,q=q+Math.imul(e,A0)|0,z=z+Math.imul(p,v0)|0,V=V+Math.imul(p,_0)|0,V=V+Math.imul(_,v0)|0,q=q+Math.imul(_,_0)|0,z=z+Math.imul(b,N0)|0,V=V+Math.imul(b,j0)|0,V=V+Math.imul(t,N0)|0,q=q+Math.imul(t,j0)|0;var LQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,z=Math.imul(H0,R0),V=Math.imul(H0,E0),V=V+Math.imul(F0,R0)|0,q=Math.imul(F0,E0),z=z+Math.imul(a,S0)|0,V=V+Math.imul(a,B0)|0,V=V+Math.imul(J0,S0)|0,q=q+Math.imul(J0,B0)|0,z=z+Math.imul(V0,x0)|0,V=V+Math.imul(V0,w0)|0,V=V+Math.imul(W0,x0)|0,q=q+Math.imul(W0,w0)|0,z=z+Math.imul(o,k0)|0,V=V+Math.imul(o,f)|0,V=V+Math.imul(Y0,k0)|0,q=q+Math.imul(Y0,f)|0,z=z+Math.imul($0,Z0)|0,V=V+Math.imul($0,K0)|0,V=V+Math.imul(m,Z0)|0,q=q+Math.imul(m,K0)|0,z=z+Math.imul(c,P0)|0,V=V+Math.imul(c,A0)|0,V=V+Math.imul(l,P0)|0,q=q+Math.imul(l,A0)|0,z=z+Math.imul(h,v0)|0,V=V+Math.imul(h,_0)|0,V=V+Math.imul(e,v0)|0,q=q+Math.imul(e,_0)|0,z=z+Math.imul(p,N0)|0,V=V+Math.imul(p,j0)|0,V=V+Math.imul(_,N0)|0,q=q+Math.imul(_,j0)|0;var MQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,z=Math.imul(H0,S0),V=Math.imul(H0,B0),V=V+Math.imul(F0,S0)|0,q=Math.imul(F0,B0),z=z+Math.imul(a,x0)|0,V=V+Math.imul(a,w0)|0,V=V+Math.imul(J0,x0)|0,q=q+Math.imul(J0,w0)|0,z=z+Math.imul(V0,k0)|0,V=V+Math.imul(V0,f)|0,V=V+Math.imul(W0,k0)|0,q=q+Math.imul(W0,f)|0,z=z+Math.imul(o,Z0)|0,V=V+Math.imul(o,K0)|0,V=V+Math.imul(Y0,Z0)|0,q=q+Math.imul(Y0,K0)|0,z=z+Math.imul($0,P0)|0,V=V+Math.imul($0,A0)|0,V=V+Math.imul(m,P0)|0,q=q+Math.imul(m,A0)|0,z=z+Math.imul(c,v0)|0,V=V+Math.imul(c,_0)|0,V=V+Math.imul(l,v0)|0,q=q+Math.imul(l,_0)|0,z=z+Math.imul(h,N0)|0,V=V+Math.imul(h,j0)|0,V=V+Math.imul(e,N0)|0,q=q+Math.imul(e,j0)|0;var IQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(IQ>>>26)|0,IQ&=67108863,z=Math.imul(H0,x0),V=Math.imul(H0,w0),V=V+Math.imul(F0,x0)|0,q=Math.imul(F0,w0),z=z+Math.imul(a,k0)|0,V=V+Math.imul(a,f)|0,V=V+Math.imul(J0,k0)|0,q=q+Math.imul(J0,f)|0,z=z+Math.imul(V0,Z0)|0,V=V+Math.imul(V0,K0)|0,V=V+Math.imul(W0,Z0)|0,q=q+Math.imul(W0,K0)|0,z=z+Math.imul(o,P0)|0,V=V+Math.imul(o,A0)|0,V=V+Math.imul(Y0,P0)|0,q=q+Math.imul(Y0,A0)|0,z=z+Math.imul($0,v0)|0,V=V+Math.imul($0,_0)|0,V=V+Math.imul(m,v0)|0,q=q+Math.imul(m,_0)|0,z=z+Math.imul(c,N0)|0,V=V+Math.imul(c,j0)|0,V=V+Math.imul(l,N0)|0,q=q+Math.imul(l,j0)|0;var DQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,z=Math.imul(H0,k0),V=Math.imul(H0,f),V=V+Math.imul(F0,k0)|0,q=Math.imul(F0,f),z=z+Math.imul(a,Z0)|0,V=V+Math.imul(a,K0)|0,V=V+Math.imul(J0,Z0)|0,q=q+Math.imul(J0,K0)|0,z=z+Math.imul(V0,P0)|0,V=V+Math.imul(V0,A0)|0,V=V+Math.imul(W0,P0)|0,q=q+Math.imul(W0,A0)|0,z=z+Math.imul(o,v0)|0,V=V+Math.imul(o,_0)|0,V=V+Math.imul(Y0,v0)|0,q=q+Math.imul(Y0,_0)|0,z=z+Math.imul($0,N0)|0,V=V+Math.imul($0,j0)|0,V=V+Math.imul(m,N0)|0,q=q+Math.imul(m,j0)|0;var PQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,z=Math.imul(H0,Z0),V=Math.imul(H0,K0),V=V+Math.imul(F0,Z0)|0,q=Math.imul(F0,K0),z=z+Math.imul(a,P0)|0,V=V+Math.imul(a,A0)|0,V=V+Math.imul(J0,P0)|0,q=q+Math.imul(J0,A0)|0,z=z+Math.imul(V0,v0)|0,V=V+Math.imul(V0,_0)|0,V=V+Math.imul(W0,v0)|0,q=q+Math.imul(W0,_0)|0,z=z+Math.imul(o,N0)|0,V=V+Math.imul(o,j0)|0,V=V+Math.imul(Y0,N0)|0,q=q+Math.imul(Y0,j0)|0;var TQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,z=Math.imul(H0,P0),V=Math.imul(H0,A0),V=V+Math.imul(F0,P0)|0,q=Math.imul(F0,A0),z=z+Math.imul(a,v0)|0,V=V+Math.imul(a,_0)|0,V=V+Math.imul(J0,v0)|0,q=q+Math.imul(J0,_0)|0,z=z+Math.imul(V0,N0)|0,V=V+Math.imul(V0,j0)|0,V=V+Math.imul(W0,N0)|0,q=q+Math.imul(W0,j0)|0;var AQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,z=Math.imul(H0,v0),V=Math.imul(H0,_0),V=V+Math.imul(F0,v0)|0,q=Math.imul(F0,_0),z=z+Math.imul(a,N0)|0,V=V+Math.imul(a,j0)|0,V=V+Math.imul(J0,N0)|0,q=q+Math.imul(J0,j0)|0;var RQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,z=Math.imul(H0,N0),V=Math.imul(H0,j0),V=V+Math.imul(F0,N0)|0,q=Math.imul(F0,j0);var EQ=(I+z|0)+((V&8191)<<13)|0;if(I=(q+(V>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,O[0]=WQ,O[1]=m0,O[2]=l0,O[3]=e0,O[4]=i0,O[5]=FQ,O[6]=qQ,O[7]=zQ,O[8]=OQ,O[9]=CQ,O[10]=LQ,O[11]=MQ,O[12]=IQ,O[13]=DQ,O[14]=PQ,O[15]=TQ,O[16]=AQ,O[17]=RQ,O[18]=EQ,I!==0)O[19]=I,F.length++;return F};if(!Math.imul)j=B;function N(Y,G,F){F.negative=G.negative^Y.negative,F.length=Y.length+G.length;var Z=0,K=0;for(var O=0;O<F.length-1;O++){var I=K;K=0;var z=Z&67108863,V=Math.min(O,G.length-1);for(var q=Math.max(0,O-Y.length+1);q<=V;q++){var R=O-q,T=Y.words[R]|0,k=G.words[q]|0,g=T*k,b=g&67108863;I=I+(g/67108864|0)|0,b=b+z|0,z=b&67108863,I=I+(b>>>26)|0,K+=I>>>26,I&=67108863}F.words[O]=z,Z=I,I=K}if(Z!==0)F.words[O]=Z;else F.length--;return F.strip()}function v(Y,G,F){var Z=new x;return Z.mulp(Y,G,F)}U.prototype.mulTo=function(Y,G){var F,Z=this.length+Y.length;if(this.length===10&&Y.length===10)F=j(this,Y,G);else if(Z<63)F=B(this,Y,G);else if(Z<1024)F=N(this,Y,G);else F=v(this,Y,G);return F};function x(Y,G){this.x=Y,this.y=G}x.prototype.makeRBT=function(Y){var G=Array(Y),F=U.prototype._countBits(Y)-1;for(var Z=0;Z<Y;Z++)G[Z]=this.revBin(Z,F,Y);return G},x.prototype.revBin=function(Y,G,F){if(Y===0||Y===F-1)return Y;var Z=0;for(var K=0;K<G;K++)Z|=(Y&1)<<G-K-1,Y>>=1;return Z},x.prototype.permute=function(Y,G,F,Z,K,O){for(var I=0;I<O;I++)Z[I]=G[Y[I]],K[I]=F[Y[I]]},x.prototype.transform=function(Y,G,F,Z,K,O){this.permute(O,Y,G,F,Z,K);for(var I=1;I<K;I<<=1){var z=I<<1,V=Math.cos(2*Math.PI/z),q=Math.sin(2*Math.PI/z);for(var R=0;R<K;R+=z){var T=V,k=q;for(var g=0;g<I;g++){var b=F[R+g],t=Z[R+g],G0=F[R+g+I],p=Z[R+g+I],_=T*G0-k*p;if(p=T*p+k*G0,G0=_,F[R+g]=b+G0,Z[R+g]=t+p,F[R+g+I]=b-G0,Z[R+g+I]=t-p,g!==z)_=V*T-q*k,k=V*k+q*T,T=_}}}},x.prototype.guessLen13b=function(Y,G){var F=Math.max(G,Y)|1,Z=F&1,K=0;for(F=F/2|0;F;F=F>>>1)K++;return 1<<K+1+Z},x.prototype.conjugate=function(Y,G,F){if(F<=1)return;for(var Z=0;Z<F/2;Z++){var K=Y[Z];Y[Z]=Y[F-Z-1],Y[F-Z-1]=K,K=G[Z],G[Z]=-G[F-Z-1],G[F-Z-1]=-K}},x.prototype.normalize13b=function(Y,G){var F=0;for(var Z=0;Z<G/2;Z++){var K=Math.round(Y[2*Z+1]/G)*8192+Math.round(Y[2*Z]/G)+F;if(Y[Z]=K&67108863,K<67108864)F=0;else F=K/67108864|0}return Y},x.prototype.convert13b=function(Y,G,F,Z){var K=0;for(var O=0;O<G;O++)K=K+(Y[O]|0),F[2*O]=K&8191,K=K>>>13,F[2*O+1]=K&8191,K=K>>>13;for(O=2*G;O<Z;++O)F[O]=0;W(K===0),W((K&-8192)===0)},x.prototype.stub=function(Y){var G=Array(Y);for(var F=0;F<Y;F++)G[F]=0;return G},x.prototype.mulp=function(Y,G,F){var Z=2*this.guessLen13b(Y.length,G.length),K=this.makeRBT(Z),O=this.stub(Z),I=Array(Z),z=Array(Z),V=Array(Z),q=Array(Z),R=Array(Z),T=Array(Z),k=F.words;k.length=Z,this.convert13b(Y.words,Y.length,I,Z),this.convert13b(G.words,G.length,q,Z),this.transform(I,O,z,V,Z,K),this.transform(q,O,R,T,Z,K);for(var g=0;g<Z;g++){var b=z[g]*R[g]-V[g]*T[g];V[g]=z[g]*T[g]+V[g]*R[g],z[g]=b}return this.conjugate(z,V,Z),this.transform(z,V,k,O,Z,K),this.conjugate(k,O,Z),this.normalize13b(k,Z),F.negative=Y.negative^G.negative,F.length=Y.length+G.length,F.strip()},U.prototype.mul=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),this.mulTo(Y,G)},U.prototype.mulf=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),v(this,Y,G)},U.prototype.imul=function(Y){return this.clone().mulTo(Y,this)},U.prototype.imuln=function(Y){W(typeof Y==="number"),W(Y<67108864);var G=0;for(var F=0;F<this.length;F++){var Z=(this.words[F]|0)*Y,K=(Z&67108863)+(G&67108863);G>>=26,G+=Z/67108864|0,G+=K>>>26,this.words[F]=K&67108863}if(G!==0)this.words[F]=G,this.length++;return this.length=Y===0?1:this.length,this},U.prototype.muln=function(Y){return this.clone().imuln(Y)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(Y){var G=S(Y);if(G.length===0)return new U(1);var F=this;for(var Z=0;Z<G.length;Z++,F=F.sqr())if(G[Z]!==0)break;if(++Z<G.length)for(var K=F.sqr();Z<G.length;Z++,K=K.sqr()){if(G[Z]===0)continue;F=F.mul(K)}return F},U.prototype.iushln=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=67108863>>>26-G<<26-G,K;if(G!==0){var O=0;for(K=0;K<this.length;K++){var I=this.words[K]&Z,z=(this.words[K]|0)-I<<G;this.words[K]=z|O,O=I>>>26-G}if(O)this.words[K]=O,this.length++}if(F!==0){for(K=this.length-1;K>=0;K--)this.words[K+F]=this.words[K];for(K=0;K<F;K++)this.words[K]=0;this.length+=F}return this.strip()},U.prototype.ishln=function(Y){return W(this.negative===0),this.iushln(Y)},U.prototype.iushrn=function(Y,G,F){W(typeof Y==="number"&&Y>=0);var Z;if(G)Z=(G-G%26)/26;else Z=0;var K=Y%26,O=Math.min((Y-K)/26,this.length),I=67108863^67108863>>>K<<K,z=F;if(Z-=O,Z=Math.max(0,Z),z){for(var V=0;V<O;V++)z.words[V]=this.words[V];z.length=O}if(O===0);else if(this.length>O){this.length-=O;for(V=0;V<this.length;V++)this.words[V]=this.words[V+O]}else this.words[0]=0,this.length=1;var q=0;for(V=this.length-1;V>=0&&(q!==0||V>=Z);V--){var R=this.words[V]|0;this.words[V]=q<<26-K|R>>>K,q=R&I}if(z&&q!==0)z.words[z.length++]=q;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},U.prototype.ishrn=function(Y,G,F){return W(this.negative===0),this.iushrn(Y,G,F)},U.prototype.shln=function(Y){return this.clone().ishln(Y)},U.prototype.ushln=function(Y){return this.clone().iushln(Y)},U.prototype.shrn=function(Y){return this.clone().ishrn(Y)},U.prototype.ushrn=function(Y){return this.clone().iushrn(Y)},U.prototype.testn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return!1;var K=this.words[F];return!!(K&Z)},U.prototype.imaskn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26;if(W(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(G!==0)F++;if(this.length=Math.min(F,this.length),G!==0){var Z=67108863^67108863>>>G<<G;this.words[this.length-1]&=Z}return this.strip()},U.prototype.maskn=function(Y){return this.clone().imaskn(Y)},U.prototype.iaddn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.isubn(-Y);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Y)return this.words[0]=Y-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Y),this.negative=1,this}return this._iaddn(Y)},U.prototype._iaddn=function(Y){this.words[0]+=Y;for(var G=0;G<this.length&&this.words[G]>=67108864;G++)if(this.words[G]-=67108864,G===this.length-1)this.words[G+1]=1;else this.words[G+1]++;return this.length=Math.max(this.length,G+1),this},U.prototype.isubn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.iaddn(-Y);if(this.negative!==0)return this.negative=0,this.iaddn(Y),this.negative=1,this;if(this.words[0]-=Y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var G=0;G<this.length&&this.words[G]<0;G++)this.words[G]+=67108864,this.words[G+1]-=1;return this.strip()},U.prototype.addn=function(Y){return this.clone().iaddn(Y)},U.prototype.subn=function(Y){return this.clone().isubn(Y)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(Y,G,F){var Z=Y.length+F,K;this._expand(Z);var O,I=0;for(K=0;K<Y.length;K++){O=(this.words[K+F]|0)+I;var z=(Y.words[K]|0)*G;O-=z&67108863,I=(O>>26)-(z/67108864|0),this.words[K+F]=O&67108863}for(;K<this.length-F;K++)O=(this.words[K+F]|0)+I,I=O>>26,this.words[K+F]=O&67108863;if(I===0)return this.strip();W(I===-1),I=0;for(K=0;K<this.length;K++)O=-(this.words[K]|0)+I,I=O>>26,this.words[K]=O&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(Y,G){var F=this.length-Y.length,Z=this.clone(),K=Y,O=K.words[K.length-1]|0,I=this._countBits(O);if(F=26-I,F!==0)K=K.ushln(F),Z.iushln(F),O=K.words[K.length-1]|0;var z=Z.length-K.length,V;if(G!=="mod"){V=new U(null),V.length=z+1,V.words=Array(V.length);for(var q=0;q<V.length;q++)V.words[q]=0}var R=Z.clone()._ishlnsubmul(K,1,z);if(R.negative===0){if(Z=R,V)V.words[z]=1}for(var T=z-1;T>=0;T--){var k=(Z.words[K.length+T]|0)*67108864+(Z.words[K.length+T-1]|0);k=Math.min(k/O|0,67108863),Z._ishlnsubmul(K,k,T);while(Z.negative!==0)if(k--,Z.negative=0,Z._ishlnsubmul(K,1,T),!Z.isZero())Z.negative^=1;if(V)V.words[T]=k}if(V)V.strip();if(Z.strip(),G!=="div"&&F!==0)Z.iushrn(F);return{div:V||null,mod:Z}},U.prototype.divmod=function(Y,G,F){if(W(!Y.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var Z,K,O;if(this.negative!==0&&Y.negative===0){if(O=this.neg().divmod(Y,G),G!=="mod")Z=O.div.neg();if(G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.iadd(Y)}return{div:Z,mod:K}}if(this.negative===0&&Y.negative!==0){if(O=this.divmod(Y.neg(),G),G!=="mod")Z=O.div.neg();return{div:Z,mod:O.mod}}if((this.negative&Y.negative)!==0){if(O=this.neg().divmod(Y.neg(),G),G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.isub(Y)}return{div:O.div,mod:K}}if(Y.length>this.length||this.cmp(Y)<0)return{div:new U(0),mod:this};if(Y.length===1){if(G==="div")return{div:this.divn(Y.words[0]),mod:null};if(G==="mod")return{div:null,mod:new U(this.modn(Y.words[0]))};return{div:this.divn(Y.words[0]),mod:new U(this.modn(Y.words[0]))}}return this._wordDiv(Y,G)},U.prototype.div=function(Y){return this.divmod(Y,"div",!1).div},U.prototype.mod=function(Y){return this.divmod(Y,"mod",!1).mod},U.prototype.umod=function(Y){return this.divmod(Y,"mod",!0).mod},U.prototype.divRound=function(Y){var G=this.divmod(Y);if(G.mod.isZero())return G.div;var F=G.div.negative!==0?G.mod.isub(Y):G.mod,Z=Y.ushrn(1),K=Y.andln(1),O=F.cmp(Z);if(O<0||K===1&&O===0)return G.div;return G.div.negative!==0?G.div.isubn(1):G.div.iaddn(1)},U.prototype.modn=function(Y){W(Y<=67108863);var G=67108864%Y,F=0;for(var Z=this.length-1;Z>=0;Z--)F=(G*F+(this.words[Z]|0))%Y;return F},U.prototype.idivn=function(Y){W(Y<=67108863);var G=0;for(var F=this.length-1;F>=0;F--){var Z=(this.words[F]|0)+G*67108864;this.words[F]=Z/Y|0,G=Z%Y}return this.strip()},U.prototype.divn=function(Y){return this.clone().idivn(Y)},U.prototype.egcd=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=new U(0),I=new U(1),z=0;while(G.isEven()&&F.isEven())G.iushrn(1),F.iushrn(1),++z;var V=F.clone(),q=G.clone();while(!G.isZero()){for(var R=0,T=1;(G.words[0]&T)===0&&R<26;++R,T<<=1);if(R>0){G.iushrn(R);while(R-- >0){if(Z.isOdd()||K.isOdd())Z.iadd(V),K.isub(q);Z.iushrn(1),K.iushrn(1)}}for(var k=0,g=1;(F.words[0]&g)===0&&k<26;++k,g<<=1);if(k>0){F.iushrn(k);while(k-- >0){if(O.isOdd()||I.isOdd())O.iadd(V),I.isub(q);O.iushrn(1),I.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(O),K.isub(I);else F.isub(G),O.isub(Z),I.isub(K)}return{a:O,b:I,gcd:F.iushln(z)}},U.prototype._invmp=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=F.clone();while(G.cmpn(1)>0&&F.cmpn(1)>0){for(var I=0,z=1;(G.words[0]&z)===0&&I<26;++I,z<<=1);if(I>0){G.iushrn(I);while(I-- >0){if(Z.isOdd())Z.iadd(O);Z.iushrn(1)}}for(var V=0,q=1;(F.words[0]&q)===0&&V<26;++V,q<<=1);if(V>0){F.iushrn(V);while(V-- >0){if(K.isOdd())K.iadd(O);K.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(K);else F.isub(G),K.isub(Z)}var R;if(G.cmpn(1)===0)R=Z;else R=K;if(R.cmpn(0)<0)R.iadd(Y);return R},U.prototype.gcd=function(Y){if(this.isZero())return Y.abs();if(Y.isZero())return this.abs();var G=this.clone(),F=Y.clone();G.negative=0,F.negative=0;for(var Z=0;G.isEven()&&F.isEven();Z++)G.iushrn(1),F.iushrn(1);do{while(G.isEven())G.iushrn(1);while(F.isEven())F.iushrn(1);var K=G.cmp(F);if(K<0){var O=G;G=F,F=O}else if(K===0||F.cmpn(1)===0)break;G.isub(F)}while(!0);return F.iushln(Z)},U.prototype.invm=function(Y){return this.egcd(Y).a.umod(Y)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(Y){return this.words[0]&Y},U.prototype.bincn=function(Y){W(typeof Y==="number");var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return this._expand(F+1),this.words[F]|=Z,this;var K=Z;for(var O=F;K!==0&&O<this.length;O++){var I=this.words[O]|0;I+=K,K=I>>>26,I&=67108863,this.words[O]=I}if(K!==0)this.words[O]=K,this.length++;return this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(Y){var G=Y<0;if(this.negative!==0&&!G)return-1;if(this.negative===0&&G)return 1;this.strip();var F;if(this.length>1)F=1;else{if(G)Y=-Y;W(Y<=67108863,"Number is too big");var Z=this.words[0]|0;F=Z===Y?0:Z<Y?-1:1}if(this.negative!==0)return-F|0;return F},U.prototype.cmp=function(Y){if(this.negative!==0&&Y.negative===0)return-1;if(this.negative===0&&Y.negative!==0)return 1;var G=this.ucmp(Y);if(this.negative!==0)return-G|0;return G},U.prototype.ucmp=function(Y){if(this.length>Y.length)return 1;if(this.length<Y.length)return-1;var G=0;for(var F=this.length-1;F>=0;F--){var Z=this.words[F]|0,K=Y.words[F]|0;if(Z===K)continue;if(Z<K)G=-1;else if(Z>K)G=1;break}return G},U.prototype.gtn=function(Y){return this.cmpn(Y)===1},U.prototype.gt=function(Y){return this.cmp(Y)===1},U.prototype.gten=function(Y){return this.cmpn(Y)>=0},U.prototype.gte=function(Y){return this.cmp(Y)>=0},U.prototype.ltn=function(Y){return this.cmpn(Y)===-1},U.prototype.lt=function(Y){return this.cmp(Y)===-1},U.prototype.lten=function(Y){return this.cmpn(Y)<=0},U.prototype.lte=function(Y){return this.cmp(Y)<=0},U.prototype.eqn=function(Y){return this.cmpn(Y)===0},U.prototype.eq=function(Y){return this.cmp(Y)===0},U.red=function(Y){return new u(Y)},U.prototype.toRed=function(Y){return W(!this.red,"Already a number in reduction context"),W(this.negative===0,"red works only with positives"),Y.convertTo(this)._forceRed(Y)},U.prototype.fromRed=function(){return W(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(Y){return this.red=Y,this},U.prototype.forceRed=function(Y){return W(!this.red,"Already a number in reduction context"),this._forceRed(Y)},U.prototype.redAdd=function(Y){return W(this.red,"redAdd works only with red numbers"),this.red.add(this,Y)},U.prototype.redIAdd=function(Y){return W(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Y)},U.prototype.redSub=function(Y){return W(this.red,"redSub works only with red numbers"),this.red.sub(this,Y)},U.prototype.redISub=function(Y){return W(this.red,"redISub works only with red numbers"),this.red.isub(this,Y)},U.prototype.redShl=function(Y){return W(this.red,"redShl works only with red numbers"),this.red.shl(this,Y)},U.prototype.redMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.mul(this,Y)},U.prototype.redIMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.imul(this,Y)},U.prototype.redSqr=function(){return W(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return W(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return W(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return W(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return W(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(Y){return W(this.red&&!Y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Y)};var w={k256:null,p224:null,p192:null,p25519:null};function y(Y,G){this.name=Y,this.p=new U(G,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var Y=new U(null);return Y.words=Array(Math.ceil(this.n/13)),Y},y.prototype.ireduce=function(Y){var G=Y,F;do this.split(G,this.tmp),G=this.imulK(G),G=G.iadd(this.tmp),F=G.bitLength();while(F>this.n);var Z=F<this.n?-1:G.ucmp(this.p);if(Z===0)G.words[0]=0,G.length=1;else if(Z>0)G.isub(this.p);else if(G.strip!==void 0)G.strip();else G._strip();return G},y.prototype.split=function(Y,G){Y.iushrn(this.n,0,G)},y.prototype.imulK=function(Y){return Y.imul(this.k)};function n(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}H(n,y),n.prototype.split=function(Y,G){var F=4194303,Z=Math.min(Y.length,9);for(var K=0;K<Z;K++)G.words[K]=Y.words[K];if(G.length=Z,Y.length<=9){Y.words[0]=0,Y.length=1;return}var O=Y.words[9];G.words[G.length++]=O&F;for(K=10;K<Y.length;K++){var I=Y.words[K]|0;Y.words[K-10]=(I&F)<<4|O>>>22,O=I}if(O>>>=22,Y.words[K-10]=O,O===0&&Y.length>10)Y.length-=10;else Y.length-=9},n.prototype.imulK=function(Y){Y.words[Y.length]=0,Y.words[Y.length+1]=0,Y.length+=2;var G=0;for(var F=0;F<Y.length;F++){var Z=Y.words[F]|0;G+=Z*977,Y.words[F]=G&67108863,G=Z*64+(G/67108864|0)}if(Y.words[Y.length-1]===0){if(Y.length--,Y.words[Y.length-1]===0)Y.length--}return Y};function r(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}H(r,y);function s(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}H(s,y);function i(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}H(i,y),i.prototype.imulK=function(Y){var G=0;for(var F=0;F<Y.length;F++){var Z=(Y.words[F]|0)*19+G,K=Z&67108863;Z>>>=26,Y.words[F]=K,G=Z}if(G!==0)Y.words[Y.length++]=G;return Y},U._prime=function(Y){if(w[Y])return w[Y];var G;if(Y==="k256")G=new n;else if(Y==="p224")G=new r;else if(Y==="p192")G=new s;else if(Y==="p25519")G=new i;else throw Error("Unknown prime "+Y);return w[Y]=G,G};function u(Y){if(typeof Y==="string"){var G=U._prime(Y);this.m=G.p,this.prime=G}else W(Y.gtn(1),"modulus must be greater than 1"),this.m=Y,this.prime=null}u.prototype._verify1=function(Y){W(Y.negative===0,"red works only with positives"),W(Y.red,"red works only with red numbers")},u.prototype._verify2=function(Y,G){W((Y.negative|G.negative)===0,"red works only with positives"),W(Y.red&&Y.red===G.red,"red works only with red numbers")},u.prototype.imod=function(Y){if(this.prime)return this.prime.ireduce(Y)._forceRed(this);return Y.umod(this.m)._forceRed(this)},u.prototype.neg=function(Y){if(Y.isZero())return Y.clone();return this.m.sub(Y)._forceRed(this)},u.prototype.add=function(Y,G){this._verify2(Y,G);var F=Y.add(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},u.prototype.iadd=function(Y,G){this._verify2(Y,G);var F=Y.iadd(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F},u.prototype.sub=function(Y,G){this._verify2(Y,G);var F=Y.sub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},u.prototype.isub=function(Y,G){this._verify2(Y,G);var F=Y.isub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F},u.prototype.shl=function(Y,G){return this._verify1(Y),this.imod(Y.ushln(G))},u.prototype.imul=function(Y,G){return this._verify2(Y,G),this.imod(Y.imul(G))},u.prototype.mul=function(Y,G){return this._verify2(Y,G),this.imod(Y.mul(G))},u.prototype.isqr=function(Y){return this.imul(Y,Y.clone())},u.prototype.sqr=function(Y){return this.mul(Y,Y)},u.prototype.sqrt=function(Y){if(Y.isZero())return Y.clone();var G=this.m.andln(3);if(W(G%2===1),G===3){var F=this.m.add(new U(1)).iushrn(2);return this.pow(Y,F)}var Z=this.m.subn(1),K=0;while(!Z.isZero()&&Z.andln(1)===0)K++,Z.iushrn(1);W(!Z.isZero());var O=new U(1).toRed(this),I=O.redNeg(),z=this.m.subn(1).iushrn(1),V=this.m.bitLength();V=new U(2*V*V).toRed(this);while(this.pow(V,z).cmp(I)!==0)V.redIAdd(I);var q=this.pow(V,Z),R=this.pow(Y,Z.addn(1).iushrn(1)),T=this.pow(Y,Z),k=K;while(T.cmp(O)!==0){var g=T;for(var b=0;g.cmp(O)!==0;b++)g=g.redSqr();W(b<k);var t=this.pow(q,new U(1).iushln(k-b-1));R=R.redMul(t),q=t.redSqr(),T=T.redMul(q),k=b}return R},u.prototype.invm=function(Y){var G=Y._invmp(this.m);if(G.negative!==0)return G.negative=0,this.imod(G).redNeg();else return this.imod(G)},u.prototype.pow=function(Y,G){if(G.isZero())return new U(1).toRed(this);if(G.cmpn(1)===0)return Y.clone();var F=4,Z=Array(1<<F);Z[0]=new U(1).toRed(this),Z[1]=Y;for(var K=2;K<Z.length;K++)Z[K]=this.mul(Z[K-1],Y);var O=Z[0],I=0,z=0,V=G.bitLength()%26;if(V===0)V=26;for(K=G.length-1;K>=0;K--){var q=G.words[K];for(var R=V-1;R>=0;R--){var T=q>>R&1;if(O!==Z[0])O=this.sqr(O);if(T===0&&I===0){z=0;continue}if(I<<=1,I|=T,z++,z!==F&&(K!==0||R!==0))continue;O=this.mul(O,Z[I]),z=0,I=0}V=26}return O},u.prototype.convertTo=function(Y){var G=Y.umod(this.m);return G===Y?G.clone():G},u.prototype.convertFrom=function(Y){var G=Y.clone();return G.red=null,G},U.mont=function(Y){return new Q0(Y)};function Q0(Y){if(u.call(this,Y),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new U(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)}H(Q0,u),Q0.prototype.convertTo=function(Y){return this.imod(Y.ushln(this.shift))},Q0.prototype.convertFrom=function(Y){var G=this.imod(Y.mul(this.rinv));return G.red=null,G},Q0.prototype.imul=function(Y,G){if(Y.isZero()||G.isZero())return Y.words[0]=0,Y.length=1,Y;var F=Y.imul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.mul=function(Y,G){if(Y.isZero()||G.isZero())return new U(0)._forceRed(this);var F=Y.mul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.invm=function(Y){var G=this.imod(Y._invmp(this.m).mul(this.r2));return G._forceRed(this)}})(typeof J>"u"||J,Q)}),P2=C0((Q)=>{var J=DX(),X=rQ(),$=Q;$.define=function(H,U){return new W(H,U)};function W(H,U){this.name=H,this.body=U,this.decoders={},this.encoders={}}W.prototype._createNamed=function(H){var U;try{U=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
12
- this._initNamed(entity);
13
- })`)}catch(C){U=function(A){this._initNamed(A)}}return X(U,H),U.prototype._initNamed=function(C){H.call(this,C)},new U(this)},W.prototype._getDecoder=function(H){if(H=H||"der",!this.decoders.hasOwnProperty(H))this.decoders[H]=this._createNamed(J.decoders[H]);return this.decoders[H]},W.prototype.decode=function(H,U,C){return this._getDecoder(U).decode(H,C)},W.prototype._getEncoder=function(H){if(H=H||"der",!this.encoders.hasOwnProperty(H))this.encoders[H]=this._createNamed(J.encoders[H]);return this.encoders[H]},W.prototype.encode=function(H,U,C){return this._getEncoder(U).encode(H,C)}}),T2=C0((Q)=>{var J=rQ();function X(W){this._reporterState={obj:null,path:[],options:W||{},errors:[]}}Q.Reporter=X,X.prototype.isError=function(W){return W instanceof $},X.prototype.save=function(){var W=this._reporterState;return{obj:W.obj,pathLen:W.path.length}},X.prototype.restore=function(W){var H=this._reporterState;H.obj=W.obj,H.path=H.path.slice(0,W.pathLen)},X.prototype.enterKey=function(W){return this._reporterState.path.push(W)},X.prototype.exitKey=function(W){var H=this._reporterState;H.path=H.path.slice(0,W-1)},X.prototype.leaveKey=function(W,H,U){var C=this._reporterState;if(this.exitKey(W),C.obj!==null)C.obj[H]=U},X.prototype.path=function(){return this._reporterState.path.join("/")},X.prototype.enterObject=function(){var W=this._reporterState,H=W.obj;return W.obj={},H},X.prototype.leaveObject=function(W){var H=this._reporterState,U=H.obj;return H.obj=W,U},X.prototype.error=function(W){var H,U=this._reporterState,C=W instanceof $;if(C)H=W;else H=new $(U.path.map(function(A){return"["+JSON.stringify(A)+"]"}).join(""),W.message||W,W.stack);if(!U.options.partial)throw H;if(!C)U.errors.push(H);return H},X.prototype.wrapResult=function(W){var H=this._reporterState;if(!H.options.partial)return W;return{result:this.isError(W)?null:W,errors:H.errors}};function $(W,H){this.path=W,this.rethrow(H)}J($,Error),$.prototype.rethrow=function(W){if(this.message=W+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,$);if(!this.stack)try{throw Error(this.message)}catch(H){this.stack=H.stack}return this}}),OG=C0((Q)=>{var J=rQ(),X=OX().Reporter,$=(HQ(),u0(SQ)).Buffer;function W(U,C){if(X.call(this,C),!$.isBuffer(U)){this.error("Input not Buffer");return}this.base=U,this.offset=0,this.length=U.length}J(W,X),Q.DecoderBuffer=W,W.prototype.save=function(){return{offset:this.offset,reporter:X.prototype.save.call(this)}},W.prototype.restore=function(U){var C=new W(this.base);return C.offset=U.offset,C.length=this.offset,this.offset=U.offset,X.prototype.restore.call(this,U.reporter),C},W.prototype.isEmpty=function(){return this.offset===this.length},W.prototype.readUInt8=function(U){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(U||"DecoderBuffer overrun")},W.prototype.skip=function(U,C){if(!(this.offset+U<=this.length))return this.error(C||"DecoderBuffer overrun");var A=new W(this.base);return A._reporterState=this._reporterState,A.offset=this.offset,A.length=this.offset+U,this.offset+=U,A},W.prototype.raw=function(U){return this.base.slice(U?U.offset:this.offset,this.length)};function H(U,C){if(Array.isArray(U))this.length=0,this.value=U.map(function(A){if(!(A instanceof H))A=new H(A,C);return this.length+=A.length,A},this);else if(typeof U==="number"){if(!(0<=U&&U<=255))return C.error("non-byte EncoderBuffer value");this.value=U,this.length=1}else if(typeof U==="string")this.value=U,this.length=$.byteLength(U);else if($.isBuffer(U))this.value=U,this.length=U.length;else return C.error("Unsupported type: "+typeof U)}Q.EncoderBuffer=H,H.prototype.join=function(U,C){if(!U)U=new $(this.length);if(!C)C=0;if(this.length===0)return U;if(Array.isArray(this.value))this.value.forEach(function(A){A.join(U,C),C+=A.length});else{if(typeof this.value==="number")U[C]=this.value;else if(typeof this.value==="string")U.write(this.value,C);else if($.isBuffer(this.value))this.value.copy(U,C);C+=this.length}return U}}),A2=C0((Q,J)=>{var X=OX().Reporter,$=OX().EncoderBuffer,W=OX().DecoderBuffer,H=yJ(),U=["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"],C=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(U),A=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function M(L,P){var E={};if(this._baseState=E,E.enc=L,E.parent=P||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,!E.parent)E.children=[],this._wrap()}J.exports=M;var D=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];M.prototype.clone=function(){var L=this._baseState,P={};D.forEach(function(S){P[S]=L[S]});var E=new this.constructor(P.parent);return E._baseState=P,E},M.prototype._wrap=function(){var L=this._baseState;C.forEach(function(P){this[P]=function(){var E=new this.constructor(this);return L.children.push(E),E[P].apply(E,arguments)}},this)},M.prototype._init=function(L){var P=this._baseState;H(P.parent===null),L.call(this),P.children=P.children.filter(function(E){return E._baseState.parent===this},this),H.equal(P.children.length,1,"Root node can have only one child")},M.prototype._useArgs=function(L){var P=this._baseState,E=L.filter(function(S){return S instanceof this.constructor},this);if(L=L.filter(function(S){return!(S instanceof this.constructor)},this),E.length!==0)H(P.children===null),P.children=E,E.forEach(function(S){S._baseState.parent=this},this);if(L.length!==0)H(P.args===null),P.args=L,P.reverseArgs=L.map(function(S){if(typeof S!=="object"||S.constructor!==Object)return S;var B={};return Object.keys(S).forEach(function(j){if(j==(j|0))j|=0;var N=S[j];B[N]=j}),B})},A.forEach(function(L){M.prototype[L]=function(){var P=this._baseState;throw Error(L+" not implemented for encoding: "+P.enc)}}),U.forEach(function(L){M.prototype[L]=function(){var P=this._baseState,E=Array.prototype.slice.call(arguments);return H(P.tag===null),P.tag=L,this._useArgs(E),this}}),M.prototype.use=function(L){H(L);var P=this._baseState;return H(P.use===null),P.use=L,this},M.prototype.optional=function(){var L=this._baseState;return L.optional=!0,this},M.prototype.def=function(L){var P=this._baseState;return H(P.default===null),P.default=L,P.optional=!0,this},M.prototype.explicit=function(L){var P=this._baseState;return H(P.explicit===null&&P.implicit===null),P.explicit=L,this},M.prototype.implicit=function(L){var P=this._baseState;return H(P.explicit===null&&P.implicit===null),P.implicit=L,this},M.prototype.obj=function(){var L=this._baseState,P=Array.prototype.slice.call(arguments);if(L.obj=!0,P.length!==0)this._useArgs(P);return this},M.prototype.key=function(L){var P=this._baseState;return H(P.key===null),P.key=L,this},M.prototype.any=function(){var L=this._baseState;return L.any=!0,this},M.prototype.choice=function(L){var P=this._baseState;return H(P.choice===null),P.choice=L,this._useArgs(Object.keys(L).map(function(E){return L[E]})),this},M.prototype.contains=function(L){var P=this._baseState;return H(P.use===null),P.contains=L,this},M.prototype._decode=function(L,P){var E=this._baseState;if(E.parent===null)return L.wrapResult(E.children[0]._decode(L,P));var S=E.default,B=!0,j=null;if(E.key!==null)j=L.enterKey(E.key);if(E.optional){var N=null;if(E.explicit!==null)N=E.explicit;else if(E.implicit!==null)N=E.implicit;else if(E.tag!==null)N=E.tag;if(N===null&&!E.any){var v=L.save();try{if(E.choice===null)this._decodeGeneric(E.tag,L,P);else this._decodeChoice(L,P);B=!0}catch(s){B=!1}L.restore(v)}else if(B=this._peekTag(L,N,E.any),L.isError(B))return B}var x;if(E.obj&&B)x=L.enterObject();if(B){if(E.explicit!==null){var w=this._decodeTag(L,E.explicit);if(L.isError(w))return w;L=w}var y=L.offset;if(E.use===null&&E.choice===null){if(E.any)var v=L.save();var n=this._decodeTag(L,E.implicit!==null?E.implicit:E.tag,E.any);if(L.isError(n))return n;if(E.any)S=L.raw(v);else L=n}if(P&&P.track&&E.tag!==null)P.track(L.path(),y,L.length,"tagged");if(P&&P.track&&E.tag!==null)P.track(L.path(),L.offset,L.length,"content");if(E.any)S=S;else if(E.choice===null)S=this._decodeGeneric(E.tag,L,P);else S=this._decodeChoice(L,P);if(L.isError(S))return S;if(!E.any&&E.choice===null&&E.children!==null)E.children.forEach(function(s){s._decode(L,P)});if(E.contains&&(E.tag==="octstr"||E.tag==="bitstr")){var r=new W(S);S=this._getUse(E.contains,L._reporterState.obj)._decode(r,P)}}if(E.obj&&B)S=L.leaveObject(x);if(E.key!==null&&(S!==null||B===!0))L.leaveKey(j,E.key,S);else if(j!==null)L.exitKey(j);return S},M.prototype._decodeGeneric=function(L,P,E){var S=this._baseState;if(L==="seq"||L==="set")return null;if(L==="seqof"||L==="setof")return this._decodeList(P,L,S.args[0],E);else if(/str$/.test(L))return this._decodeStr(P,L,E);else if(L==="objid"&&S.args)return this._decodeObjid(P,S.args[0],S.args[1],E);else if(L==="objid")return this._decodeObjid(P,null,null,E);else if(L==="gentime"||L==="utctime")return this._decodeTime(P,L,E);else if(L==="null_")return this._decodeNull(P,E);else if(L==="bool")return this._decodeBool(P,E);else if(L==="objDesc")return this._decodeStr(P,L,E);else if(L==="int"||L==="enum")return this._decodeInt(P,S.args&&S.args[0],E);if(S.use!==null)return this._getUse(S.use,P._reporterState.obj)._decode(P,E);else return P.error("unknown tag: "+L)},M.prototype._getUse=function(L,P){var E=this._baseState;if(E.useDecoder=this._use(L,P),H(E.useDecoder._baseState.parent===null),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit)E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit;return E.useDecoder},M.prototype._decodeChoice=function(L,P){var E=this._baseState,S=null,B=!1;if(Object.keys(E.choice).some(function(j){var N=L.save(),v=E.choice[j];try{var x=v._decode(L,P);if(L.isError(x))return!1;S={type:j,value:x},B=!0}catch(w){return L.restore(N),!1}return!0},this),!B)return L.error("Choice not matched");return S},M.prototype._createEncoderBuffer=function(L){return new $(L,this.reporter)},M.prototype._encode=function(L,P,E){var S=this._baseState;if(S.default!==null&&S.default===L)return;var B=this._encodeValue(L,P,E);if(B===void 0)return;if(this._skipDefault(B,P,E))return;return B},M.prototype._encodeValue=function(L,P,E){var S=this._baseState;if(S.parent===null)return S.children[0]._encode(L,P||new X);var v=null;if(this.reporter=P,S.optional&&L===void 0)if(S.default!==null)L=S.default;else return;var B=null,j=!1;if(S.any)v=this._createEncoderBuffer(L);else if(S.choice)v=this._encodeChoice(L,P);else if(S.contains)B=this._getUse(S.contains,E)._encode(L,P),j=!0;else if(S.children)B=S.children.map(function(y){if(y._baseState.tag==="null_")return y._encode(null,P,L);if(y._baseState.key===null)return P.error("Child should have a key");var n=P.enterKey(y._baseState.key);if(typeof L!=="object")return P.error("Child expected, but input is not object");var r=y._encode(L[y._baseState.key],P,L);return P.leaveKey(n),r},this).filter(function(y){return y}),B=this._createEncoderBuffer(B);else if(S.tag==="seqof"||S.tag==="setof"){if(!(S.args&&S.args.length===1))return P.error("Too many args for : "+S.tag);if(!Array.isArray(L))return P.error("seqof/setof, but data is not Array");var N=this.clone();N._baseState.implicit=null,B=this._createEncoderBuffer(L.map(function(y){var n=this._baseState;return this._getUse(n.args[0],L)._encode(y,P)},N))}else if(S.use!==null)v=this._getUse(S.use,E)._encode(L,P);else B=this._encodePrimitive(S.tag,L),j=!0;var v;if(!S.any&&S.choice===null){var x=S.implicit!==null?S.implicit:S.tag,w=S.implicit===null?"universal":"context";if(x===null){if(S.use===null)P.error("Tag could be omitted only for .use()")}else if(S.use===null)v=this._encodeComposite(x,j,w,B)}if(S.explicit!==null)v=this._encodeComposite(S.explicit,!1,"context",v);return v},M.prototype._encodeChoice=function(L,P){var E=this._baseState,S=E.choice[L.type];if(!S)H(!1,L.type+" not found in "+JSON.stringify(Object.keys(E.choice)));return S._encode(L.value,P)},M.prototype._encodePrimitive=function(L,P){var E=this._baseState;if(/str$/.test(L))return this._encodeStr(P,L);else if(L==="objid"&&E.args)return this._encodeObjid(P,E.reverseArgs[0],E.args[1]);else if(L==="objid")return this._encodeObjid(P,null,null);else if(L==="gentime"||L==="utctime")return this._encodeTime(P,L);else if(L==="null_")return this._encodeNull();else if(L==="int"||L==="enum")return this._encodeInt(P,E.args&&E.reverseArgs[0]);else if(L==="bool")return this._encodeBool(P);else if(L==="objDesc")return this._encodeStr(P,L);else throw Error("Unsupported tag: "+L)},M.prototype._isNumstr=function(L){return/^[0-9 ]*$/.test(L)},M.prototype._isPrintstr=function(L){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(L)}}),OX=C0((Q)=>{var J=Q;J.Reporter=T2().Reporter,J.DecoderBuffer=OG().DecoderBuffer,J.EncoderBuffer=OG().EncoderBuffer,J.Node=A2()}),R2=C0((Q)=>{var J=_G();Q.tagClass={0:"universal",1:"application",2:"context",3:"private"},Q.tagClassByName=J._reverse(Q.tagClass),Q.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"},Q.tagByName=J._reverse(Q.tag)}),_G=C0((Q)=>{var J=Q;J._reverse=function(X){var $={};return Object.keys(X).forEach(function(W){if((W|0)==W)W=W|0;var H=X[W];$[H]=W}),$},J.der=R2()}),gG=C0((Q,J)=>{var X=rQ(),$=DX(),W=$.base,H=$.bignum,U=$.constants.der;function C(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new A,this.tree._init(L.body)}J.exports=C,C.prototype.decode=function(L,P){if(!(L instanceof W.DecoderBuffer))L=new W.DecoderBuffer(L,P);return this.tree._decode(L,P)};function A(L){W.Node.call(this,"der",L)}X(A,W.Node),A.prototype._peekTag=function(L,P,E){if(L.isEmpty())return!1;var S=L.save(),B=M(L,'Failed to peek tag: "'+P+'"');if(L.isError(B))return B;return L.restore(S),B.tag===P||B.tagStr===P||B.tagStr+"of"===P||E},A.prototype._decodeTag=function(L,P,E){var S=M(L,'Failed to decode tag of "'+P+'"');if(L.isError(S))return S;var B=D(L,S.primitive,'Failed to get length of "'+P+'"');if(L.isError(B))return B;if(!E&&S.tag!==P&&S.tagStr!==P&&S.tagStr+"of"!==P)return L.error('Failed to match tag: "'+P+'"');if(S.primitive||B!==null)return L.skip(B,'Failed to match body of: "'+P+'"');var j=L.save(),N=this._skipUntilEnd(L,'Failed to skip indefinite length body: "'+this.tag+'"');if(L.isError(N))return N;return B=L.offset-j.offset,L.restore(j),L.skip(B,'Failed to match body of: "'+P+'"')},A.prototype._skipUntilEnd=function(L,P){while(!0){var E=M(L,P);if(L.isError(E))return E;var S=D(L,E.primitive,P);if(L.isError(S))return S;var B;if(E.primitive||S!==null)B=L.skip(S);else B=this._skipUntilEnd(L,P);if(L.isError(B))return B;if(E.tagStr==="end")break}},A.prototype._decodeList=function(L,P,E,S){var B=[];while(!L.isEmpty()){var j=this._peekTag(L,"end");if(L.isError(j))return j;var N=E.decode(L,"der",S);if(L.isError(N)&&j)break;B.push(N)}return B},A.prototype._decodeStr=function(L,P){if(P==="bitstr"){var E=L.readUInt8();if(L.isError(E))return E;return{unused:E,data:L.raw()}}else if(P==="bmpstr"){var S=L.raw();if(S.length%2===1)return L.error("Decoding of string type: bmpstr length mismatch");var B="";for(var j=0;j<S.length/2;j++)B+=String.fromCharCode(S.readUInt16BE(j*2));return B}else if(P==="numstr"){var N=L.raw().toString("ascii");if(!this._isNumstr(N))return L.error("Decoding of string type: numstr unsupported characters");return N}else if(P==="octstr")return L.raw();else if(P==="objDesc")return L.raw();else if(P==="printstr"){var v=L.raw().toString("ascii");if(!this._isPrintstr(v))return L.error("Decoding of string type: printstr unsupported characters");return v}else if(/str$/.test(P))return L.raw().toString();else return L.error("Decoding of string type: "+P+" unsupported")},A.prototype._decodeObjid=function(L,P,E){var S,B=[],j=0;while(!L.isEmpty()){var N=L.readUInt8();if(j<<=7,j|=N&127,(N&128)===0)B.push(j),j=0}if(N&128)B.push(j);var v=B[0]/40|0,x=B[0]%40;if(E)S=B;else S=[v,x].concat(B.slice(1));if(P){var w=P[S.join(" ")];if(w===void 0)w=P[S.join(".")];if(w!==void 0)S=w}return S},A.prototype._decodeTime=function(L,P){var E=L.raw().toString();if(P==="gentime")var S=E.slice(0,4)|0,B=E.slice(4,6)|0,j=E.slice(6,8)|0,N=E.slice(8,10)|0,v=E.slice(10,12)|0,x=E.slice(12,14)|0;else if(P==="utctime"){var S=E.slice(0,2)|0,B=E.slice(2,4)|0,j=E.slice(4,6)|0,N=E.slice(6,8)|0,v=E.slice(8,10)|0,x=E.slice(10,12)|0;if(S<70)S=2000+S;else S=1900+S}else return L.error("Decoding "+P+" time is not supported yet");return Date.UTC(S,B-1,j,N,v,x,0)},A.prototype._decodeNull=function(L){return null},A.prototype._decodeBool=function(L){var P=L.readUInt8();if(L.isError(P))return P;else return P!==0},A.prototype._decodeInt=function(L,P){var E=L.raw(),S=new H(E);if(P)S=P[S.toString(10)]||S;return S},A.prototype._use=function(L,P){if(typeof L==="function")L=L(P);return L._getDecoder("der").tree};function M(L,P){var E=L.readUInt8(P);if(L.isError(E))return E;var S=U.tagClass[E>>6],B=(E&32)===0;if((E&31)===31){var j=E;E=0;while((j&128)===128){if(j=L.readUInt8(P),L.isError(j))return j;E<<=7,E|=j&127}}else E&=31;var N=U.tag[E];return{cls:S,primitive:B,tag:E,tagStr:N}}function D(L,P,E){var S=L.readUInt8(E);if(L.isError(S))return S;if(!P&&S===128)return null;if((S&128)===0)return S;var B=S&127;if(B>4)return L.error("length octect is too long");S=0;for(var j=0;j<B;j++){S<<=8;var N=L.readUInt8(E);if(L.isError(N))return N;S|=N}return S}}),E2=C0((Q,J)=>{var X=rQ(),$=(HQ(),u0(SQ)).Buffer,W=gG();function H(U){W.call(this,U),this.enc="pem"}X(H,W),J.exports=H,H.prototype.decode=function(U,C){var A=U.toString().split(/[\r\n]+/g),M=C.label.toUpperCase(),D=/^-----(BEGIN|END) ([^-]+)-----$/,L=-1,P=-1;for(var E=0;E<A.length;E++){var S=A[E].match(D);if(S===null)continue;if(S[2]!==M)continue;if(L===-1){if(S[1]!=="BEGIN")break;L=E}else{if(S[1]!=="END")break;P=E;break}}if(L===-1||P===-1)throw Error("PEM section not found for: "+M);var B=A.slice(L+1,P).join("");B.replace(/[^a-z0-9\+\/=]+/gi,"");var j=new $(B,"base64");return W.prototype.decode.call(this,j,C)}}),S2=C0((Q)=>{var J=Q;J.der=gG(),J.pem=E2()}),yG=C0((Q,J)=>{var X=rQ(),$=(HQ(),u0(SQ)).Buffer,W=DX(),H=W.base,U=W.constants.der;function C(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new A,this.tree._init(L.body)}J.exports=C,C.prototype.encode=function(L,P){return this.tree._encode(L,P).join()};function A(L){H.Node.call(this,"der",L)}X(A,H.Node),A.prototype._encodeComposite=function(L,P,E,S){var B=D(L,P,E,this.reporter);if(S.length<128){var v=new $(2);return v[0]=B,v[1]=S.length,this._createEncoderBuffer([v,S])}var j=1;for(var N=S.length;N>=256;N>>=8)j++;var v=new $(2+j);v[0]=B,v[1]=128|j;for(var N=1+j,x=S.length;x>0;N--,x>>=8)v[N]=x&255;return this._createEncoderBuffer([v,S])},A.prototype._encodeStr=function(L,P){if(P==="bitstr")return this._createEncoderBuffer([L.unused|0,L.data]);else if(P==="bmpstr"){var E=new $(L.length*2);for(var S=0;S<L.length;S++)E.writeUInt16BE(L.charCodeAt(S),S*2);return this._createEncoderBuffer(E)}else if(P==="numstr"){if(!this._isNumstr(L))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(L)}else if(P==="printstr"){if(!this._isPrintstr(L))return 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");return this._createEncoderBuffer(L)}else if(/str$/.test(P))return this._createEncoderBuffer(L);else if(P==="objDesc")return this._createEncoderBuffer(L);else return this.reporter.error("Encoding of string type: "+P+" unsupported")},A.prototype._encodeObjid=function(L,P,E){if(typeof L==="string"){if(!P)return this.reporter.error("string objid given, but no values map found");if(!P.hasOwnProperty(L))return this.reporter.error("objid not found in values map");L=P[L].split(/[\s\.]+/g);for(var S=0;S<L.length;S++)L[S]|=0}else if(Array.isArray(L)){L=L.slice();for(var S=0;S<L.length;S++)L[S]|=0}if(!Array.isArray(L))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(L));if(!E){if(L[1]>=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,L[0]*40+L[1])}var B=0;for(var S=0;S<L.length;S++){var j=L[S];for(B++;j>=128;j>>=7)B++}var N=new $(B),v=N.length-1;for(var S=L.length-1;S>=0;S--){var j=L[S];N[v--]=j&127;while((j>>=7)>0)N[v--]=128|j&127}return this._createEncoderBuffer(N)};function M(L){if(L<10)return"0"+L;else return L}A.prototype._encodeTime=function(L,P){var E,S=new Date(L);if(P==="gentime")E=[M(S.getFullYear()),M(S.getUTCMonth()+1),M(S.getUTCDate()),M(S.getUTCHours()),M(S.getUTCMinutes()),M(S.getUTCSeconds()),"Z"].join("");else if(P==="utctime")E=[M(S.getFullYear()%100),M(S.getUTCMonth()+1),M(S.getUTCDate()),M(S.getUTCHours()),M(S.getUTCMinutes()),M(S.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+P+" time is not supported yet");return this._encodeStr(E,"octstr")},A.prototype._encodeNull=function(){return this._createEncoderBuffer("")},A.prototype._encodeInt=function(L,P){if(typeof L==="string"){if(!P)return this.reporter.error("String int or enum given, but no values map");if(!P.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=P[L]}if(typeof L!=="number"&&!$.isBuffer(L)){var E=L.toArray();if(!L.sign&&E[0]&128)E.unshift(0);L=new $(E)}if($.isBuffer(L)){var S=L.length;if(L.length===0)S++;var j=new $(S);if(L.copy(j),L.length===0)j[0]=0;return this._createEncoderBuffer(j)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);var S=1;for(var B=L;B>=256;B>>=8)S++;var j=Array(S);for(var B=j.length-1;B>=0;B--)j[B]=L&255,L>>=8;if(j[0]&128)j.unshift(0);return this._createEncoderBuffer(new $(j))},A.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},A.prototype._use=function(L,P){if(typeof L==="function")L=L(P);return L._getEncoder("der").tree},A.prototype._skipDefault=function(L,P,E){var S=this._baseState,B;if(S.default===null)return!1;var j=L.join();if(S.defaultBuffer===void 0)S.defaultBuffer=this._encodeValue(S.default,P,E).join();if(j.length!==S.defaultBuffer.length)return!1;for(B=0;B<j.length;B++)if(j[B]!==S.defaultBuffer[B])return!1;return!0};function D(L,P,E,S){var B;if(L==="seqof")L="seq";else if(L==="setof")L="set";if(U.tagByName.hasOwnProperty(L))B=U.tagByName[L];else if(typeof L==="number"&&(L|0)===L)B=L;else return S.error("Unknown tag: "+L);if(B>=31)return S.error("Multi-octet tag encoding unsupported");if(!P)B|=32;return B|=U.tagClassByName[E||"universal"]<<6,B}}),j2=C0((Q,J)=>{var X=rQ(),$=yG();function W(H){$.call(this,H),this.enc="pem"}X(W,$),J.exports=W,W.prototype.encode=function(H,U){var C=$.prototype.encode.call(this,H),A=C.toString("base64"),M=["-----BEGIN "+U.label+"-----"];for(var D=0;D<A.length;D+=64)M.push(A.slice(D,D+64));return M.push("-----END "+U.label+"-----"),M.join(`
14
- `)}}),B2=C0((Q)=>{var J=Q;J.der=yG(),J.pem=j2()}),DX=C0((Q)=>{var J=Q;J.bignum=D2(),J.define=P2().define,J.base=OX(),J.constants=_G(),J.decoders=S2(),J.encoders=B2()}),k2=C0((Q,J)=>{var X=DX(),$=X.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),W=X.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),H=X.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),U=X.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(H),this.key("subjectPublicKey").bitstr())}),C=X.define("RelativeDistinguishedName",function(){this.setof(W)}),A=X.define("RDNSequence",function(){this.seqof(C)}),M=X.define("Name",function(){this.choice({rdnSequence:this.use(A)})}),D=X.define("Validity",function(){this.seq().obj(this.key("notBefore").use($),this.key("notAfter").use($))}),L=X.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),P=X.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(H),this.key("issuer").use(M),this.key("validity").use(D),this.key("subject").use(M),this.key("subjectPublicKeyInfo").use(U),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(L).optional())}),E=X.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(P),this.key("signatureAlgorithm").use(H),this.key("signatureValue").bitstr())});J.exports=E}),v2=C0((Q)=>{var J=DX();Q.certificate=k2();var X=J.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())});Q.RSAPrivateKey=X;var $=J.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Q.RSAPublicKey=$;var W=J.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),H=J.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(W),this.key("subjectPublicKey").bitstr())});Q.PublicKey=H;var U=J.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(W),this.key("subjectPrivateKey").octstr())});Q.PrivateKey=U;var C=J.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())});Q.EncryptedPrivateKey=C;var A=J.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())});Q.DSAPrivateKey=A,Q.DSAparam=J.define("DSAparam",function(){this.int()});var M=J.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),D=J.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(M),this.key("publicKey").optional().explicit(1).bitstr())});Q.ECPrivateKey=D,Q.signature=J.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),N2=C0((Q,J)=>{J.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"}}),x2=C0((Q,J)=>{var X=hQ().Buffer,$=zX().Transform,W=rQ();function H(M){$.call(this),this._block=X.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}W(H,$),H.prototype._transform=function(M,D,L){var P=null;try{this.update(M,D)}catch(E){P=E}L(P)},H.prototype._flush=function(M){var D=null;try{this.push(this.digest())}catch(L){D=L}M(D)};var U=typeof Uint8Array<"u",C=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(X.prototype instanceof Uint8Array||X.TYPED_ARRAY_SUPPORT);function A(M,D){if(M instanceof X)return M;if(typeof M==="string")return X.from(M,D);if(C&&ArrayBuffer.isView(M)){if(M.byteLength===0)return X.alloc(0);var L=X.from(M.buffer,M.byteOffset,M.byteLength);if(L.byteLength===M.byteLength)return L}if(U&&M instanceof Uint8Array)return X.from(M);if(X.isBuffer(M)&&M.constructor&&typeof M.constructor.isBuffer==="function"&&M.constructor.isBuffer(M))return X.from(M);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}H.prototype.update=function(M,D){if(this._finalized)throw Error("Digest already called");M=A(M,D);var L=this._block,P=0;while(this._blockOffset+M.length-P>=this._blockSize){for(var E=this._blockOffset;E<this._blockSize;)L[E++]=M[P++];this._update(),this._blockOffset=0}while(P<M.length)L[this._blockOffset++]=M[P++];for(var S=0,B=M.length*8;B>0;++S)if(this._length[S]+=B,B=this._length[S]/4294967296|0,B>0)this._length[S]-=4294967296*B;return this},H.prototype._update=function(){throw Error("_update is not implemented")},H.prototype.digest=function(M){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var D=this._digest();if(M!==void 0)D=D.toString(M);this._block.fill(0),this._blockOffset=0;for(var L=0;L<4;++L)this._length[L]=0;return D},H.prototype._digest=function(){throw Error("_digest is not implemented")},J.exports=H}),w2=C0((Q,J)=>{var X=rQ(),$=x2(),W=hQ().Buffer,H=Array(16);function U(){$.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}X(U,$),U.prototype._update=function(){var P=H;for(var E=0;E<16;++E)P[E]=this._block.readInt32LE(E*4);var S=this._a,B=this._b,j=this._c,N=this._d;S=A(S,B,j,N,P[0],3614090360,7),N=A(N,S,B,j,P[1],3905402710,12),j=A(j,N,S,B,P[2],606105819,17),B=A(B,j,N,S,P[3],3250441966,22),S=A(S,B,j,N,P[4],4118548399,7),N=A(N,S,B,j,P[5],1200080426,12),j=A(j,N,S,B,P[6],2821735955,17),B=A(B,j,N,S,P[7],4249261313,22),S=A(S,B,j,N,P[8],1770035416,7),N=A(N,S,B,j,P[9],2336552879,12),j=A(j,N,S,B,P[10],4294925233,17),B=A(B,j,N,S,P[11],2304563134,22),S=A(S,B,j,N,P[12],1804603682,7),N=A(N,S,B,j,P[13],4254626195,12),j=A(j,N,S,B,P[14],2792965006,17),B=A(B,j,N,S,P[15],1236535329,22),S=M(S,B,j,N,P[1],4129170786,5),N=M(N,S,B,j,P[6],3225465664,9),j=M(j,N,S,B,P[11],643717713,14),B=M(B,j,N,S,P[0],3921069994,20),S=M(S,B,j,N,P[5],3593408605,5),N=M(N,S,B,j,P[10],38016083,9),j=M(j,N,S,B,P[15],3634488961,14),B=M(B,j,N,S,P[4],3889429448,20),S=M(S,B,j,N,P[9],568446438,5),N=M(N,S,B,j,P[14],3275163606,9),j=M(j,N,S,B,P[3],4107603335,14),B=M(B,j,N,S,P[8],1163531501,20),S=M(S,B,j,N,P[13],2850285829,5),N=M(N,S,B,j,P[2],4243563512,9),j=M(j,N,S,B,P[7],1735328473,14),B=M(B,j,N,S,P[12],2368359562,20),S=D(S,B,j,N,P[5],4294588738,4),N=D(N,S,B,j,P[8],2272392833,11),j=D(j,N,S,B,P[11],1839030562,16),B=D(B,j,N,S,P[14],4259657740,23),S=D(S,B,j,N,P[1],2763975236,4),N=D(N,S,B,j,P[4],1272893353,11),j=D(j,N,S,B,P[7],4139469664,16),B=D(B,j,N,S,P[10],3200236656,23),S=D(S,B,j,N,P[13],681279174,4),N=D(N,S,B,j,P[0],3936430074,11),j=D(j,N,S,B,P[3],3572445317,16),B=D(B,j,N,S,P[6],76029189,23),S=D(S,B,j,N,P[9],3654602809,4),N=D(N,S,B,j,P[12],3873151461,11),j=D(j,N,S,B,P[15],530742520,16),B=D(B,j,N,S,P[2],3299628645,23),S=L(S,B,j,N,P[0],4096336452,6),N=L(N,S,B,j,P[7],1126891415,10),j=L(j,N,S,B,P[14],2878612391,15),B=L(B,j,N,S,P[5],4237533241,21),S=L(S,B,j,N,P[12],1700485571,6),N=L(N,S,B,j,P[3],2399980690,10),j=L(j,N,S,B,P[10],4293915773,15),B=L(B,j,N,S,P[1],2240044497,21),S=L(S,B,j,N,P[8],1873313359,6),N=L(N,S,B,j,P[15],4264355552,10),j=L(j,N,S,B,P[6],2734768916,15),B=L(B,j,N,S,P[13],1309151649,21),S=L(S,B,j,N,P[4],4149444226,6),N=L(N,S,B,j,P[11],3174756917,10),j=L(j,N,S,B,P[2],718787259,15),B=L(B,j,N,S,P[9],3951481745,21),this._a=this._a+S|0,this._b=this._b+B|0,this._c=this._c+j|0,this._d=this._d+N|0},U.prototype._digest=function(){if(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 P=W.allocUnsafe(16);return P.writeInt32LE(this._a,0),P.writeInt32LE(this._b,4),P.writeInt32LE(this._c,8),P.writeInt32LE(this._d,12),P};function C(P,E){return P<<E|P>>>32-E}function A(P,E,S,B,j,N,v){return C(P+(E&S|~E&B)+j+N|0,v)+E|0}function M(P,E,S,B,j,N,v){return C(P+(E&B|S&~B)+j+N|0,v)+E|0}function D(P,E,S,B,j,N,v){return C(P+(E^S^B)+j+N|0,v)+E|0}function L(P,E,S,B,j,N,v){return C(P+(S^(E|~B))+j+N|0,v)+E|0}J.exports=U}),_2=C0((Q,J)=>{var X=hQ().Buffer,$=w2();function W(H,U,C,A){if(!X.isBuffer(H))H=X.from(H,"binary");if(U){if(!X.isBuffer(U))U=X.from(U,"binary");if(U.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var M=C/8,D=X.alloc(M),L=X.alloc(A||0),P=X.alloc(0);while(M>0||A>0){var E=new $;if(E.update(P),E.update(H),U)E.update(U);P=E.digest();var S=0;if(M>0){var B=D.length-M;S=Math.min(M,P.length),P.copy(D,B,0,S),M-=S}if(S<P.length&&A>0){var j=L.length-A,N=Math.min(A,P.length-S);P.copy(L,j,S,S+N),A-=N}}return P.fill(0),{key:D,iv:L}}J.exports=W}),fG=C0((Q)=>{var J=(XQ(),u0($Q));Q.createCipher=Q.Cipher=J.createCipher,Q.createCipheriv=Q.Cipheriv=J.createCipheriv,Q.createDecipher=Q.Decipher=J.createDecipher,Q.createDecipheriv=Q.Decipheriv=J.createDecipheriv,Q.listCiphers=Q.getCiphers=J.getCiphers}),g2=C0((Q,J)=>{var X=/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,$=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,W=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,H=_2(),U=fG(),C=hQ().Buffer;J.exports=function(A,M){var D=A.toString(),L=D.match(X),P;if(!L){var E=D.match(W);P=C.from(E[2].replace(/[\r\n]/g,""),"base64")}else{var S="aes"+L[1],B=C.from(L[2],"hex"),j=C.from(L[3].replace(/[\r\n]/g,""),"base64"),N=H(M,B.slice(0,8),parseInt(L[1],10)).key,v=[],x=U.createDecipheriv(S,N,B);v.push(x.update(j)),v.push(x.final()),P=C.concat(v)}var w=D.match($)[1];return{tag:w,data:P}}}),cG=C0((Q,J)=>{var X=v2(),$=N2(),W=g2(),H=fG(),U=jG().pbkdf2Sync,C=hQ().Buffer;function A(D,L){var P=D.algorithm.decrypt.kde.kdeparams.salt,E=parseInt(D.algorithm.decrypt.kde.kdeparams.iters.toString(),10),S=$[D.algorithm.decrypt.cipher.algo.join(".")],B=D.algorithm.decrypt.cipher.iv,j=D.subjectPrivateKey,N=parseInt(S.split("-")[1],10)/8,v=U(L,P,E,N,"sha1"),x=H.createDecipheriv(S,v,B),w=[];return w.push(x.update(j)),w.push(x.final()),C.concat(w)}function M(D){var L;if(typeof D==="object"&&!C.isBuffer(D))L=D.passphrase,D=D.key;if(typeof D==="string")D=C.from(D);var P=W(D,L),E=P.tag,S=P.data,B,j;switch(E){case"CERTIFICATE":j=X.certificate.decode(S,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!j)j=X.PublicKey.decode(S,"der");switch(B=j.algorithm.algorithm.join("."),B){case"1.2.840.113549.1.1.1":return X.RSAPublicKey.decode(j.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return j.subjectPrivateKey=j.subjectPublicKey,{type:"ec",data:j};case"1.2.840.10040.4.1":return j.algorithm.params.pub_key=X.DSAparam.decode(j.subjectPublicKey.data,"der"),{type:"dsa",data:j.algorithm.params};default:throw Error("unknown key id "+B)}case"ENCRYPTED PRIVATE KEY":S=X.EncryptedPrivateKey.decode(S,"der"),S=A(S,L);case"PRIVATE KEY":switch(j=X.PrivateKey.decode(S,"der"),B=j.algorithm.algorithm.join("."),B){case"1.2.840.113549.1.1.1":return X.RSAPrivateKey.decode(j.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:j.algorithm.curve,privateKey:X.ECPrivateKey.decode(j.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return j.algorithm.params.priv_key=X.DSAparam.decode(j.subjectPrivateKey,"der"),{type:"dsa",params:j.algorithm.params};default:throw Error("unknown key id "+B)}case"RSA PUBLIC KEY":return X.RSAPublicKey.decode(S,"der");case"RSA PRIVATE KEY":return X.RSAPrivateKey.decode(S,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:X.DSAPrivateKey.decode(S,"der")};case"EC PRIVATE KEY":return S=X.ECPrivateKey.decode(S,"der"),{curve:S.parameters.value,privateKey:S.privateKey};default:throw Error("unknown key type "+E)}}M.signature=X.signature,J.exports=M}),pG=C0((Q,J)=>{var X=LY(),$=hQ().Buffer;J.exports=function(H,U){var C=$.alloc(0),A=0,M;while(C.length<U)M=W(A++),C=$.concat([C,X("sha1").update(H).update(M).digest()]);return C.slice(0,U)};function W(H){var U=$.allocUnsafe(4);return U.writeUInt32BE(H,0),U}}),hG=C0((Q,J)=>{J.exports=function(X,$){var W=X.length,H=-1;while(++H<W)X[H]^=$[H];return X}}),I$=C0((Q,J)=>{(function(X,$){function W(Y,G){if(!Y)throw Error(G||"Assertion failed")}function H(Y,G){Y.super_=G;var F=function(){};F.prototype=G.prototype,Y.prototype=new F,Y.prototype.constructor=Y}function U(Y,G,F){if(U.isBN(Y))return Y;if(this.negative=0,this.words=null,this.length=0,this.red=null,Y!==null){if(G==="le"||G==="be")F=G,G=10;this._init(Y||0,G||10,F||"be")}}if(typeof X==="object")X.exports=U;else $.BN=U;U.BN=U,U.wordSize=26;var C;try{if(typeof window<"u"&&typeof window.Buffer<"u")C=window.Buffer;else C=(HQ(),u0(SQ)).Buffer}catch(Y){}U.isBN=function(Y){if(Y instanceof U)return!0;return Y!==null&&typeof Y==="object"&&Y.constructor.wordSize===U.wordSize&&Array.isArray(Y.words)},U.max=function(Y,G){if(Y.cmp(G)>0)return Y;return G},U.min=function(Y,G){if(Y.cmp(G)<0)return Y;return G},U.prototype._init=function(Y,G,F){if(typeof Y==="number")return this._initNumber(Y,G,F);if(typeof Y==="object")return this._initArray(Y,G,F);if(G==="hex")G=16;W(G===(G|0)&&G>=2&&G<=36),Y=Y.toString().replace(/\s+/g,"");var Z=0;if(Y[0]==="-")Z++,this.negative=1;if(Z<Y.length){if(G===16)this._parseHex(Y,Z,F);else if(this._parseBase(Y,G,Z),F==="le")this._initArray(this.toArray(),G,F)}},U.prototype._initNumber=function(Y,G,F){if(Y<0)this.negative=1,Y=-Y;if(Y<67108864)this.words=[Y&67108863],this.length=1;else if(Y<4503599627370496)this.words=[Y&67108863,Y/67108864&67108863],this.length=2;else W(Y<9007199254740992),this.words=[Y&67108863,Y/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),G,F)},U.prototype._initArray=function(Y,G,F){if(W(typeof Y.length==="number"),Y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Y.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K,O,I=0;if(F==="be"){for(Z=Y.length-1,K=0;Z>=0;Z-=3)if(O=Y[Z]|Y[Z-1]<<8|Y[Z-2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}else if(F==="le"){for(Z=0,K=0;Z<Y.length;Z+=3)if(O=Y[Z]|Y[Z+1]<<8|Y[Z+2]<<16,this.words[K]|=O<<I&67108863,this.words[K+1]=O>>>26-I&67108863,I+=24,I>=26)I-=26,K++}return this.strip()};function A(Y,G){var F=Y.charCodeAt(G);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Y,G,F){var Z=A(Y,F);if(F-1>=G)Z|=A(Y,F-1)<<4;return Z}U.prototype._parseHex=function(Y,G,F){this.length=Math.ceil((Y.length-G)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K=0,O=0,I;if(F==="be")for(Z=Y.length-1;Z>=G;Z-=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8;else{var z=Y.length-G;for(Z=z%2===0?G+1:G;Z<Y.length;Z+=2)if(I=M(Y,G,Z)<<K,this.words[O]|=I&67108863,K>=18)K-=18,O+=1,this.words[O]|=I>>>26;else K+=8}this.strip()};function D(Y,G,F,Z){var K=0,O=Math.min(Y.length,F);for(var I=G;I<O;I++){var z=Y.charCodeAt(I)-48;if(K*=Z,z>=49)K+=z-49+10;else if(z>=17)K+=z-17+10;else K+=z}return K}U.prototype._parseBase=function(Y,G,F){this.words=[0],this.length=1;for(var Z=0,K=1;K<=67108863;K*=G)Z++;Z--,K=K/G|0;var O=Y.length-F,I=O%Z,z=Math.min(O,O-I)+F,V=0;for(var q=F;q<z;q+=Z)if(V=D(Y,q,q+Z,G),this.imuln(K),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V);if(I!==0){var R=1;V=D(Y,q,Y.length,G);for(q=0;q<I;q++)R*=G;if(this.imuln(R),this.words[0]+V<67108864)this.words[0]+=V;else this._iaddn(V)}this.strip()},U.prototype.copy=function(Y){Y.words=Array(this.length);for(var G=0;G<this.length;G++)Y.words[G]=this.words[G];Y.length=this.length,Y.negative=this.negative,Y.red=this.red},U.prototype.clone=function(){var Y=new U(null);return this.copy(Y),Y},U.prototype._expand=function(Y){while(this.length<Y)this.words[this.length++]=0;return this},U.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},U.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","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"],P=[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],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(U.prototype.toString=function(Y,G){Y=Y||10,G=G|0||1;var F;if(Y===16||Y==="hex"){F="";var Z=0,K=0;for(var O=0;O<this.length;O++){var I=this.words[O],z=((I<<Z|K)&16777215).toString(16);if(K=I>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,O--;if(K!==0||O!==this.length-1)F=L[6-z.length]+z+F;else F=z+F}if(K!==0)F=K.toString(16)+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Y===(Y|0)&&Y>=2&&Y<=36){var V=P[Y],q=E[Y];F="";var R=this.clone();R.negative=0;while(!R.isZero()){var T=R.modn(q).toString(Y);if(R=R.idivn(q),!R.isZero())F=L[V-T.length]+T+F;else F=T+F}if(this.isZero())F="0"+F;while(F.length%G!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}W(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var Y=this.words[0];if(this.length===2)Y+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Y+=4503599627370496+this.words[1]*67108864;else if(this.length>2)W(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Y:Y},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(Y,G){return W(typeof C<"u"),this.toArrayLike(C,Y,G)},U.prototype.toArray=function(Y,G){return this.toArrayLike(Array,Y,G)},U.prototype.toArrayLike=function(Y,G,F){var Z=this.byteLength(),K=F||Math.max(1,Z);W(Z<=K,"byte array longer than desired length"),W(K>0,"Requested array length <= 0"),this.strip();var O=G==="le",I=new Y(K),z,V,q=this.clone();if(!O){for(V=0;V<K-Z;V++)I[V]=0;for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[K-V-1]=z}else{for(V=0;!q.isZero();V++)z=q.andln(255),q.iushrn(8),I[V]=z;for(;V<K;V++)I[V]=0}return I},Math.clz32)U.prototype._countBits=function(Y){return 32-Math.clz32(Y)};else U.prototype._countBits=function(Y){var G=Y,F=0;if(G>=4096)F+=13,G>>>=13;if(G>=64)F+=7,G>>>=7;if(G>=8)F+=4,G>>>=4;if(G>=2)F+=2,G>>>=2;return F+G};U.prototype._zeroBits=function(Y){if(Y===0)return 26;var G=Y,F=0;if((G&8191)===0)F+=13,G>>>=13;if((G&127)===0)F+=7,G>>>=7;if((G&15)===0)F+=4,G>>>=4;if((G&3)===0)F+=2,G>>>=2;if((G&1)===0)F++;return F},U.prototype.bitLength=function(){var Y=this.words[this.length-1],G=this._countBits(Y);return(this.length-1)*26+G};function S(Y){var G=Array(Y.bitLength());for(var F=0;F<G.length;F++){var Z=F/26|0,K=F%26;G[F]=(Y.words[Z]&1<<K)>>>K}return G}U.prototype.zeroBits=function(){if(this.isZero())return 0;var Y=0;for(var G=0;G<this.length;G++){var F=this._zeroBits(this.words[G]);if(Y+=F,F!==26)break}return Y},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(Y){if(this.negative!==0)return this.abs().inotn(Y).iaddn(1);return this.clone()},U.prototype.fromTwos=function(Y){if(this.testn(Y-1))return this.notn(Y).iaddn(1).ineg();return this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},U.prototype.iuor=function(Y){while(this.length<Y.length)this.words[this.length++]=0;for(var G=0;G<Y.length;G++)this.words[G]=this.words[G]|Y.words[G];return this.strip()},U.prototype.ior=function(Y){return W((this.negative|Y.negative)===0),this.iuor(Y)},U.prototype.or=function(Y){if(this.length>Y.length)return this.clone().ior(Y);return Y.clone().ior(this)},U.prototype.uor=function(Y){if(this.length>Y.length)return this.clone().iuor(Y);return Y.clone().iuor(this)},U.prototype.iuand=function(Y){var G;if(this.length>Y.length)G=Y;else G=this;for(var F=0;F<G.length;F++)this.words[F]=this.words[F]&Y.words[F];return this.length=G.length,this.strip()},U.prototype.iand=function(Y){return W((this.negative|Y.negative)===0),this.iuand(Y)},U.prototype.and=function(Y){if(this.length>Y.length)return this.clone().iand(Y);return Y.clone().iand(this)},U.prototype.uand=function(Y){if(this.length>Y.length)return this.clone().iuand(Y);return Y.clone().iuand(this)},U.prototype.iuxor=function(Y){var G,F;if(this.length>Y.length)G=this,F=Y;else G=Y,F=this;for(var Z=0;Z<F.length;Z++)this.words[Z]=G.words[Z]^F.words[Z];if(this!==G)for(;Z<G.length;Z++)this.words[Z]=G.words[Z];return this.length=G.length,this.strip()},U.prototype.ixor=function(Y){return W((this.negative|Y.negative)===0),this.iuxor(Y)},U.prototype.xor=function(Y){if(this.length>Y.length)return this.clone().ixor(Y);return Y.clone().ixor(this)},U.prototype.uxor=function(Y){if(this.length>Y.length)return this.clone().iuxor(Y);return Y.clone().iuxor(this)},U.prototype.inotn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Math.ceil(Y/26)|0,F=Y%26;if(this._expand(G),F>0)G--;for(var Z=0;Z<G;Z++)this.words[Z]=~this.words[Z]&67108863;if(F>0)this.words[Z]=~this.words[Z]&67108863>>26-F;return this.strip()},U.prototype.notn=function(Y){return this.clone().inotn(Y)},U.prototype.setn=function(Y,G){W(typeof Y==="number"&&Y>=0);var F=Y/26|0,Z=Y%26;if(this._expand(F+1),G)this.words[F]=this.words[F]|1<<Z;else this.words[F]=this.words[F]&~(1<<Z);return this.strip()},U.prototype.iadd=function(Y){var G;if(this.negative!==0&&Y.negative===0)return this.negative=0,G=this.isub(Y),this.negative^=1,this._normSign();else if(this.negative===0&&Y.negative!==0)return Y.negative=0,G=this.isub(Y),Y.negative=1,G._normSign();var F,Z;if(this.length>Y.length)F=this,Z=Y;else F=Y,Z=this;var K=0;for(var O=0;O<Z.length;O++)G=(F.words[O]|0)+(Z.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;for(;K!==0&&O<F.length;O++)G=(F.words[O]|0)+K,this.words[O]=G&67108863,K=G>>>26;if(this.length=F.length,K!==0)this.words[this.length]=K,this.length++;else if(F!==this)for(;O<F.length;O++)this.words[O]=F.words[O];return this},U.prototype.add=function(Y){var G;if(Y.negative!==0&&this.negative===0)return Y.negative=0,G=this.sub(Y),Y.negative^=1,G;else if(Y.negative===0&&this.negative!==0)return this.negative=0,G=Y.sub(this),this.negative=1,G;if(this.length>Y.length)return this.clone().iadd(Y);return Y.clone().iadd(this)},U.prototype.isub=function(Y){if(Y.negative!==0){Y.negative=0;var G=this.iadd(Y);return Y.negative=1,G._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Y),this.negative=1,this._normSign();var F=this.cmp(Y);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,K;if(F>0)Z=this,K=Y;else Z=Y,K=this;var O=0;for(var I=0;I<K.length;I++)G=(Z.words[I]|0)-(K.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;for(;O!==0&&I<Z.length;I++)G=(Z.words[I]|0)+O,O=G>>26,this.words[I]=G&67108863;if(O===0&&I<Z.length&&Z!==this)for(;I<Z.length;I++)this.words[I]=Z.words[I];if(this.length=Math.max(this.length,I),Z!==this)this.negative=1;return this.strip()},U.prototype.sub=function(Y){return this.clone().isub(Y)};function B(Y,G,F){F.negative=G.negative^Y.negative;var Z=Y.length+G.length|0;F.length=Z,Z=Z-1|0;var K=Y.words[0]|0,O=G.words[0]|0,I=K*O,z=I&67108863,V=I/67108864|0;F.words[0]=z;for(var q=1;q<Z;q++){var R=V>>>26,T=V&67108863,k=Math.min(q,G.length-1);for(var g=Math.max(0,q-Y.length+1);g<=k;g++){var b=q-g|0;K=Y.words[b]|0,O=G.words[g]|0,I=K*O+T,R+=I/67108864|0,T=I&67108863}F.words[q]=T|0,V=R|0}if(V!==0)F.words[q]=V|0;else F.length--;return F.strip()}var j=function(Y,G,F){var Z=Y.words,K=G.words,O=F.words,I=0,z,V,q,R=Z[0]|0,T=R&8191,k=R>>>13,g=Z[1]|0,b=g&8191,t=g>>>13,G0=Z[2]|0,p=G0&8191,_=G0>>>13,d=Z[3]|0,h=d&8191,e=d>>>13,q0=Z[4]|0,c=q0&8191,l=q0>>>13,U0=Z[5]|0,$0=U0&8191,m=U0>>>13,M0=Z[6]|0,o=M0&8191,Y0=M0>>>13,T0=Z[7]|0,V0=T0&8191,W0=T0>>>13,b0=Z[8]|0,a=b0&8191,J0=b0>>>13,y0=Z[9]|0,H0=y0&8191,F0=y0>>>13,h0=K[0]|0,z0=h0&8191,O0=h0>>>13,d0=K[1]|0,I0=d0&8191,D0=d0>>>13,ZQ=K[2]|0,R0=ZQ&8191,E0=ZQ>>>13,t0=K[3]|0,S0=t0&8191,B0=t0>>>13,vQ=K[4]|0,x0=vQ&8191,w0=vQ>>>13,NQ=K[5]|0,k0=NQ&8191,f=NQ>>>13,X0=K[6]|0,Z0=X0&8191,K0=X0>>>13,c0=K[7]|0,P0=c0&8191,A0=c0>>>13,GQ=K[8]|0,v0=GQ&8191,_0=GQ>>>13,wQ=K[9]|0,N0=wQ&8191,j0=wQ>>>13;F.negative=Y.negative^G.negative,F.length=19,z=Math.imul(T,z0),V=Math.imul(T,O0),V=V+Math.imul(k,z0)|0,q=Math.imul(k,O0);var WQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,z=Math.imul(b,z0),V=Math.imul(b,O0),V=V+Math.imul(t,z0)|0,q=Math.imul(t,O0),z=z+Math.imul(T,I0)|0,V=V+Math.imul(T,D0)|0,V=V+Math.imul(k,I0)|0,q=q+Math.imul(k,D0)|0;var m0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(m0>>>26)|0,m0&=67108863,z=Math.imul(p,z0),V=Math.imul(p,O0),V=V+Math.imul(_,z0)|0,q=Math.imul(_,O0),z=z+Math.imul(b,I0)|0,V=V+Math.imul(b,D0)|0,V=V+Math.imul(t,I0)|0,q=q+Math.imul(t,D0)|0,z=z+Math.imul(T,R0)|0,V=V+Math.imul(T,E0)|0,V=V+Math.imul(k,R0)|0,q=q+Math.imul(k,E0)|0;var l0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(l0>>>26)|0,l0&=67108863,z=Math.imul(h,z0),V=Math.imul(h,O0),V=V+Math.imul(e,z0)|0,q=Math.imul(e,O0),z=z+Math.imul(p,I0)|0,V=V+Math.imul(p,D0)|0,V=V+Math.imul(_,I0)|0,q=q+Math.imul(_,D0)|0,z=z+Math.imul(b,R0)|0,V=V+Math.imul(b,E0)|0,V=V+Math.imul(t,R0)|0,q=q+Math.imul(t,E0)|0,z=z+Math.imul(T,S0)|0,V=V+Math.imul(T,B0)|0,V=V+Math.imul(k,S0)|0,q=q+Math.imul(k,B0)|0;var e0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(e0>>>26)|0,e0&=67108863,z=Math.imul(c,z0),V=Math.imul(c,O0),V=V+Math.imul(l,z0)|0,q=Math.imul(l,O0),z=z+Math.imul(h,I0)|0,V=V+Math.imul(h,D0)|0,V=V+Math.imul(e,I0)|0,q=q+Math.imul(e,D0)|0,z=z+Math.imul(p,R0)|0,V=V+Math.imul(p,E0)|0,V=V+Math.imul(_,R0)|0,q=q+Math.imul(_,E0)|0,z=z+Math.imul(b,S0)|0,V=V+Math.imul(b,B0)|0,V=V+Math.imul(t,S0)|0,q=q+Math.imul(t,B0)|0,z=z+Math.imul(T,x0)|0,V=V+Math.imul(T,w0)|0,V=V+Math.imul(k,x0)|0,q=q+Math.imul(k,w0)|0;var i0=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(i0>>>26)|0,i0&=67108863,z=Math.imul($0,z0),V=Math.imul($0,O0),V=V+Math.imul(m,z0)|0,q=Math.imul(m,O0),z=z+Math.imul(c,I0)|0,V=V+Math.imul(c,D0)|0,V=V+Math.imul(l,I0)|0,q=q+Math.imul(l,D0)|0,z=z+Math.imul(h,R0)|0,V=V+Math.imul(h,E0)|0,V=V+Math.imul(e,R0)|0,q=q+Math.imul(e,E0)|0,z=z+Math.imul(p,S0)|0,V=V+Math.imul(p,B0)|0,V=V+Math.imul(_,S0)|0,q=q+Math.imul(_,B0)|0,z=z+Math.imul(b,x0)|0,V=V+Math.imul(b,w0)|0,V=V+Math.imul(t,x0)|0,q=q+Math.imul(t,w0)|0,z=z+Math.imul(T,k0)|0,V=V+Math.imul(T,f)|0,V=V+Math.imul(k,k0)|0,q=q+Math.imul(k,f)|0;var FQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,z=Math.imul(o,z0),V=Math.imul(o,O0),V=V+Math.imul(Y0,z0)|0,q=Math.imul(Y0,O0),z=z+Math.imul($0,I0)|0,V=V+Math.imul($0,D0)|0,V=V+Math.imul(m,I0)|0,q=q+Math.imul(m,D0)|0,z=z+Math.imul(c,R0)|0,V=V+Math.imul(c,E0)|0,V=V+Math.imul(l,R0)|0,q=q+Math.imul(l,E0)|0,z=z+Math.imul(h,S0)|0,V=V+Math.imul(h,B0)|0,V=V+Math.imul(e,S0)|0,q=q+Math.imul(e,B0)|0,z=z+Math.imul(p,x0)|0,V=V+Math.imul(p,w0)|0,V=V+Math.imul(_,x0)|0,q=q+Math.imul(_,w0)|0,z=z+Math.imul(b,k0)|0,V=V+Math.imul(b,f)|0,V=V+Math.imul(t,k0)|0,q=q+Math.imul(t,f)|0,z=z+Math.imul(T,Z0)|0,V=V+Math.imul(T,K0)|0,V=V+Math.imul(k,Z0)|0,q=q+Math.imul(k,K0)|0;var qQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(qQ>>>26)|0,qQ&=67108863,z=Math.imul(V0,z0),V=Math.imul(V0,O0),V=V+Math.imul(W0,z0)|0,q=Math.imul(W0,O0),z=z+Math.imul(o,I0)|0,V=V+Math.imul(o,D0)|0,V=V+Math.imul(Y0,I0)|0,q=q+Math.imul(Y0,D0)|0,z=z+Math.imul($0,R0)|0,V=V+Math.imul($0,E0)|0,V=V+Math.imul(m,R0)|0,q=q+Math.imul(m,E0)|0,z=z+Math.imul(c,S0)|0,V=V+Math.imul(c,B0)|0,V=V+Math.imul(l,S0)|0,q=q+Math.imul(l,B0)|0,z=z+Math.imul(h,x0)|0,V=V+Math.imul(h,w0)|0,V=V+Math.imul(e,x0)|0,q=q+Math.imul(e,w0)|0,z=z+Math.imul(p,k0)|0,V=V+Math.imul(p,f)|0,V=V+Math.imul(_,k0)|0,q=q+Math.imul(_,f)|0,z=z+Math.imul(b,Z0)|0,V=V+Math.imul(b,K0)|0,V=V+Math.imul(t,Z0)|0,q=q+Math.imul(t,K0)|0,z=z+Math.imul(T,P0)|0,V=V+Math.imul(T,A0)|0,V=V+Math.imul(k,P0)|0,q=q+Math.imul(k,A0)|0;var zQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,z=Math.imul(a,z0),V=Math.imul(a,O0),V=V+Math.imul(J0,z0)|0,q=Math.imul(J0,O0),z=z+Math.imul(V0,I0)|0,V=V+Math.imul(V0,D0)|0,V=V+Math.imul(W0,I0)|0,q=q+Math.imul(W0,D0)|0,z=z+Math.imul(o,R0)|0,V=V+Math.imul(o,E0)|0,V=V+Math.imul(Y0,R0)|0,q=q+Math.imul(Y0,E0)|0,z=z+Math.imul($0,S0)|0,V=V+Math.imul($0,B0)|0,V=V+Math.imul(m,S0)|0,q=q+Math.imul(m,B0)|0,z=z+Math.imul(c,x0)|0,V=V+Math.imul(c,w0)|0,V=V+Math.imul(l,x0)|0,q=q+Math.imul(l,w0)|0,z=z+Math.imul(h,k0)|0,V=V+Math.imul(h,f)|0,V=V+Math.imul(e,k0)|0,q=q+Math.imul(e,f)|0,z=z+Math.imul(p,Z0)|0,V=V+Math.imul(p,K0)|0,V=V+Math.imul(_,Z0)|0,q=q+Math.imul(_,K0)|0,z=z+Math.imul(b,P0)|0,V=V+Math.imul(b,A0)|0,V=V+Math.imul(t,P0)|0,q=q+Math.imul(t,A0)|0,z=z+Math.imul(T,v0)|0,V=V+Math.imul(T,_0)|0,V=V+Math.imul(k,v0)|0,q=q+Math.imul(k,_0)|0;var OQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(OQ>>>26)|0,OQ&=67108863,z=Math.imul(H0,z0),V=Math.imul(H0,O0),V=V+Math.imul(F0,z0)|0,q=Math.imul(F0,O0),z=z+Math.imul(a,I0)|0,V=V+Math.imul(a,D0)|0,V=V+Math.imul(J0,I0)|0,q=q+Math.imul(J0,D0)|0,z=z+Math.imul(V0,R0)|0,V=V+Math.imul(V0,E0)|0,V=V+Math.imul(W0,R0)|0,q=q+Math.imul(W0,E0)|0,z=z+Math.imul(o,S0)|0,V=V+Math.imul(o,B0)|0,V=V+Math.imul(Y0,S0)|0,q=q+Math.imul(Y0,B0)|0,z=z+Math.imul($0,x0)|0,V=V+Math.imul($0,w0)|0,V=V+Math.imul(m,x0)|0,q=q+Math.imul(m,w0)|0,z=z+Math.imul(c,k0)|0,V=V+Math.imul(c,f)|0,V=V+Math.imul(l,k0)|0,q=q+Math.imul(l,f)|0,z=z+Math.imul(h,Z0)|0,V=V+Math.imul(h,K0)|0,V=V+Math.imul(e,Z0)|0,q=q+Math.imul(e,K0)|0,z=z+Math.imul(p,P0)|0,V=V+Math.imul(p,A0)|0,V=V+Math.imul(_,P0)|0,q=q+Math.imul(_,A0)|0,z=z+Math.imul(b,v0)|0,V=V+Math.imul(b,_0)|0,V=V+Math.imul(t,v0)|0,q=q+Math.imul(t,_0)|0,z=z+Math.imul(T,N0)|0,V=V+Math.imul(T,j0)|0,V=V+Math.imul(k,N0)|0,q=q+Math.imul(k,j0)|0;var CQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,z=Math.imul(H0,I0),V=Math.imul(H0,D0),V=V+Math.imul(F0,I0)|0,q=Math.imul(F0,D0),z=z+Math.imul(a,R0)|0,V=V+Math.imul(a,E0)|0,V=V+Math.imul(J0,R0)|0,q=q+Math.imul(J0,E0)|0,z=z+Math.imul(V0,S0)|0,V=V+Math.imul(V0,B0)|0,V=V+Math.imul(W0,S0)|0,q=q+Math.imul(W0,B0)|0,z=z+Math.imul(o,x0)|0,V=V+Math.imul(o,w0)|0,V=V+Math.imul(Y0,x0)|0,q=q+Math.imul(Y0,w0)|0,z=z+Math.imul($0,k0)|0,V=V+Math.imul($0,f)|0,V=V+Math.imul(m,k0)|0,q=q+Math.imul(m,f)|0,z=z+Math.imul(c,Z0)|0,V=V+Math.imul(c,K0)|0,V=V+Math.imul(l,Z0)|0,q=q+Math.imul(l,K0)|0,z=z+Math.imul(h,P0)|0,V=V+Math.imul(h,A0)|0,V=V+Math.imul(e,P0)|0,q=q+Math.imul(e,A0)|0,z=z+Math.imul(p,v0)|0,V=V+Math.imul(p,_0)|0,V=V+Math.imul(_,v0)|0,q=q+Math.imul(_,_0)|0,z=z+Math.imul(b,N0)|0,V=V+Math.imul(b,j0)|0,V=V+Math.imul(t,N0)|0,q=q+Math.imul(t,j0)|0;var LQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,z=Math.imul(H0,R0),V=Math.imul(H0,E0),V=V+Math.imul(F0,R0)|0,q=Math.imul(F0,E0),z=z+Math.imul(a,S0)|0,V=V+Math.imul(a,B0)|0,V=V+Math.imul(J0,S0)|0,q=q+Math.imul(J0,B0)|0,z=z+Math.imul(V0,x0)|0,V=V+Math.imul(V0,w0)|0,V=V+Math.imul(W0,x0)|0,q=q+Math.imul(W0,w0)|0,z=z+Math.imul(o,k0)|0,V=V+Math.imul(o,f)|0,V=V+Math.imul(Y0,k0)|0,q=q+Math.imul(Y0,f)|0,z=z+Math.imul($0,Z0)|0,V=V+Math.imul($0,K0)|0,V=V+Math.imul(m,Z0)|0,q=q+Math.imul(m,K0)|0,z=z+Math.imul(c,P0)|0,V=V+Math.imul(c,A0)|0,V=V+Math.imul(l,P0)|0,q=q+Math.imul(l,A0)|0,z=z+Math.imul(h,v0)|0,V=V+Math.imul(h,_0)|0,V=V+Math.imul(e,v0)|0,q=q+Math.imul(e,_0)|0,z=z+Math.imul(p,N0)|0,V=V+Math.imul(p,j0)|0,V=V+Math.imul(_,N0)|0,q=q+Math.imul(_,j0)|0;var MQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,z=Math.imul(H0,S0),V=Math.imul(H0,B0),V=V+Math.imul(F0,S0)|0,q=Math.imul(F0,B0),z=z+Math.imul(a,x0)|0,V=V+Math.imul(a,w0)|0,V=V+Math.imul(J0,x0)|0,q=q+Math.imul(J0,w0)|0,z=z+Math.imul(V0,k0)|0,V=V+Math.imul(V0,f)|0,V=V+Math.imul(W0,k0)|0,q=q+Math.imul(W0,f)|0,z=z+Math.imul(o,Z0)|0,V=V+Math.imul(o,K0)|0,V=V+Math.imul(Y0,Z0)|0,q=q+Math.imul(Y0,K0)|0,z=z+Math.imul($0,P0)|0,V=V+Math.imul($0,A0)|0,V=V+Math.imul(m,P0)|0,q=q+Math.imul(m,A0)|0,z=z+Math.imul(c,v0)|0,V=V+Math.imul(c,_0)|0,V=V+Math.imul(l,v0)|0,q=q+Math.imul(l,_0)|0,z=z+Math.imul(h,N0)|0,V=V+Math.imul(h,j0)|0,V=V+Math.imul(e,N0)|0,q=q+Math.imul(e,j0)|0;var IQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(IQ>>>26)|0,IQ&=67108863,z=Math.imul(H0,x0),V=Math.imul(H0,w0),V=V+Math.imul(F0,x0)|0,q=Math.imul(F0,w0),z=z+Math.imul(a,k0)|0,V=V+Math.imul(a,f)|0,V=V+Math.imul(J0,k0)|0,q=q+Math.imul(J0,f)|0,z=z+Math.imul(V0,Z0)|0,V=V+Math.imul(V0,K0)|0,V=V+Math.imul(W0,Z0)|0,q=q+Math.imul(W0,K0)|0,z=z+Math.imul(o,P0)|0,V=V+Math.imul(o,A0)|0,V=V+Math.imul(Y0,P0)|0,q=q+Math.imul(Y0,A0)|0,z=z+Math.imul($0,v0)|0,V=V+Math.imul($0,_0)|0,V=V+Math.imul(m,v0)|0,q=q+Math.imul(m,_0)|0,z=z+Math.imul(c,N0)|0,V=V+Math.imul(c,j0)|0,V=V+Math.imul(l,N0)|0,q=q+Math.imul(l,j0)|0;var DQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,z=Math.imul(H0,k0),V=Math.imul(H0,f),V=V+Math.imul(F0,k0)|0,q=Math.imul(F0,f),z=z+Math.imul(a,Z0)|0,V=V+Math.imul(a,K0)|0,V=V+Math.imul(J0,Z0)|0,q=q+Math.imul(J0,K0)|0,z=z+Math.imul(V0,P0)|0,V=V+Math.imul(V0,A0)|0,V=V+Math.imul(W0,P0)|0,q=q+Math.imul(W0,A0)|0,z=z+Math.imul(o,v0)|0,V=V+Math.imul(o,_0)|0,V=V+Math.imul(Y0,v0)|0,q=q+Math.imul(Y0,_0)|0,z=z+Math.imul($0,N0)|0,V=V+Math.imul($0,j0)|0,V=V+Math.imul(m,N0)|0,q=q+Math.imul(m,j0)|0;var PQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,z=Math.imul(H0,Z0),V=Math.imul(H0,K0),V=V+Math.imul(F0,Z0)|0,q=Math.imul(F0,K0),z=z+Math.imul(a,P0)|0,V=V+Math.imul(a,A0)|0,V=V+Math.imul(J0,P0)|0,q=q+Math.imul(J0,A0)|0,z=z+Math.imul(V0,v0)|0,V=V+Math.imul(V0,_0)|0,V=V+Math.imul(W0,v0)|0,q=q+Math.imul(W0,_0)|0,z=z+Math.imul(o,N0)|0,V=V+Math.imul(o,j0)|0,V=V+Math.imul(Y0,N0)|0,q=q+Math.imul(Y0,j0)|0;var TQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,z=Math.imul(H0,P0),V=Math.imul(H0,A0),V=V+Math.imul(F0,P0)|0,q=Math.imul(F0,A0),z=z+Math.imul(a,v0)|0,V=V+Math.imul(a,_0)|0,V=V+Math.imul(J0,v0)|0,q=q+Math.imul(J0,_0)|0,z=z+Math.imul(V0,N0)|0,V=V+Math.imul(V0,j0)|0,V=V+Math.imul(W0,N0)|0,q=q+Math.imul(W0,j0)|0;var AQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,z=Math.imul(H0,v0),V=Math.imul(H0,_0),V=V+Math.imul(F0,v0)|0,q=Math.imul(F0,_0),z=z+Math.imul(a,N0)|0,V=V+Math.imul(a,j0)|0,V=V+Math.imul(J0,N0)|0,q=q+Math.imul(J0,j0)|0;var RQ=(I+z|0)+((V&8191)<<13)|0;I=(q+(V>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,z=Math.imul(H0,N0),V=Math.imul(H0,j0),V=V+Math.imul(F0,N0)|0,q=Math.imul(F0,j0);var EQ=(I+z|0)+((V&8191)<<13)|0;if(I=(q+(V>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,O[0]=WQ,O[1]=m0,O[2]=l0,O[3]=e0,O[4]=i0,O[5]=FQ,O[6]=qQ,O[7]=zQ,O[8]=OQ,O[9]=CQ,O[10]=LQ,O[11]=MQ,O[12]=IQ,O[13]=DQ,O[14]=PQ,O[15]=TQ,O[16]=AQ,O[17]=RQ,O[18]=EQ,I!==0)O[19]=I,F.length++;return F};if(!Math.imul)j=B;function N(Y,G,F){F.negative=G.negative^Y.negative,F.length=Y.length+G.length;var Z=0,K=0;for(var O=0;O<F.length-1;O++){var I=K;K=0;var z=Z&67108863,V=Math.min(O,G.length-1);for(var q=Math.max(0,O-Y.length+1);q<=V;q++){var R=O-q,T=Y.words[R]|0,k=G.words[q]|0,g=T*k,b=g&67108863;I=I+(g/67108864|0)|0,b=b+z|0,z=b&67108863,I=I+(b>>>26)|0,K+=I>>>26,I&=67108863}F.words[O]=z,Z=I,I=K}if(Z!==0)F.words[O]=Z;else F.length--;return F.strip()}function v(Y,G,F){var Z=new x;return Z.mulp(Y,G,F)}U.prototype.mulTo=function(Y,G){var F,Z=this.length+Y.length;if(this.length===10&&Y.length===10)F=j(this,Y,G);else if(Z<63)F=B(this,Y,G);else if(Z<1024)F=N(this,Y,G);else F=v(this,Y,G);return F};function x(Y,G){this.x=Y,this.y=G}x.prototype.makeRBT=function(Y){var G=Array(Y),F=U.prototype._countBits(Y)-1;for(var Z=0;Z<Y;Z++)G[Z]=this.revBin(Z,F,Y);return G},x.prototype.revBin=function(Y,G,F){if(Y===0||Y===F-1)return Y;var Z=0;for(var K=0;K<G;K++)Z|=(Y&1)<<G-K-1,Y>>=1;return Z},x.prototype.permute=function(Y,G,F,Z,K,O){for(var I=0;I<O;I++)Z[I]=G[Y[I]],K[I]=F[Y[I]]},x.prototype.transform=function(Y,G,F,Z,K,O){this.permute(O,Y,G,F,Z,K);for(var I=1;I<K;I<<=1){var z=I<<1,V=Math.cos(2*Math.PI/z),q=Math.sin(2*Math.PI/z);for(var R=0;R<K;R+=z){var T=V,k=q;for(var g=0;g<I;g++){var b=F[R+g],t=Z[R+g],G0=F[R+g+I],p=Z[R+g+I],_=T*G0-k*p;if(p=T*p+k*G0,G0=_,F[R+g]=b+G0,Z[R+g]=t+p,F[R+g+I]=b-G0,Z[R+g+I]=t-p,g!==z)_=V*T-q*k,k=V*k+q*T,T=_}}}},x.prototype.guessLen13b=function(Y,G){var F=Math.max(G,Y)|1,Z=F&1,K=0;for(F=F/2|0;F;F=F>>>1)K++;return 1<<K+1+Z},x.prototype.conjugate=function(Y,G,F){if(F<=1)return;for(var Z=0;Z<F/2;Z++){var K=Y[Z];Y[Z]=Y[F-Z-1],Y[F-Z-1]=K,K=G[Z],G[Z]=-G[F-Z-1],G[F-Z-1]=-K}},x.prototype.normalize13b=function(Y,G){var F=0;for(var Z=0;Z<G/2;Z++){var K=Math.round(Y[2*Z+1]/G)*8192+Math.round(Y[2*Z]/G)+F;if(Y[Z]=K&67108863,K<67108864)F=0;else F=K/67108864|0}return Y},x.prototype.convert13b=function(Y,G,F,Z){var K=0;for(var O=0;O<G;O++)K=K+(Y[O]|0),F[2*O]=K&8191,K=K>>>13,F[2*O+1]=K&8191,K=K>>>13;for(O=2*G;O<Z;++O)F[O]=0;W(K===0),W((K&-8192)===0)},x.prototype.stub=function(Y){var G=Array(Y);for(var F=0;F<Y;F++)G[F]=0;return G},x.prototype.mulp=function(Y,G,F){var Z=2*this.guessLen13b(Y.length,G.length),K=this.makeRBT(Z),O=this.stub(Z),I=Array(Z),z=Array(Z),V=Array(Z),q=Array(Z),R=Array(Z),T=Array(Z),k=F.words;k.length=Z,this.convert13b(Y.words,Y.length,I,Z),this.convert13b(G.words,G.length,q,Z),this.transform(I,O,z,V,Z,K),this.transform(q,O,R,T,Z,K);for(var g=0;g<Z;g++){var b=z[g]*R[g]-V[g]*T[g];V[g]=z[g]*T[g]+V[g]*R[g],z[g]=b}return this.conjugate(z,V,Z),this.transform(z,V,k,O,Z,K),this.conjugate(k,O,Z),this.normalize13b(k,Z),F.negative=Y.negative^G.negative,F.length=Y.length+G.length,F.strip()},U.prototype.mul=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),this.mulTo(Y,G)},U.prototype.mulf=function(Y){var G=new U(null);return G.words=Array(this.length+Y.length),v(this,Y,G)},U.prototype.imul=function(Y){return this.clone().mulTo(Y,this)},U.prototype.imuln=function(Y){W(typeof Y==="number"),W(Y<67108864);var G=0;for(var F=0;F<this.length;F++){var Z=(this.words[F]|0)*Y,K=(Z&67108863)+(G&67108863);G>>=26,G+=Z/67108864|0,G+=K>>>26,this.words[F]=K&67108863}if(G!==0)this.words[F]=G,this.length++;return this.length=Y===0?1:this.length,this},U.prototype.muln=function(Y){return this.clone().imuln(Y)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(Y){var G=S(Y);if(G.length===0)return new U(1);var F=this;for(var Z=0;Z<G.length;Z++,F=F.sqr())if(G[Z]!==0)break;if(++Z<G.length)for(var K=F.sqr();Z<G.length;Z++,K=K.sqr()){if(G[Z]===0)continue;F=F.mul(K)}return F},U.prototype.iushln=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=67108863>>>26-G<<26-G,K;if(G!==0){var O=0;for(K=0;K<this.length;K++){var I=this.words[K]&Z,z=(this.words[K]|0)-I<<G;this.words[K]=z|O,O=I>>>26-G}if(O)this.words[K]=O,this.length++}if(F!==0){for(K=this.length-1;K>=0;K--)this.words[K+F]=this.words[K];for(K=0;K<F;K++)this.words[K]=0;this.length+=F}return this.strip()},U.prototype.ishln=function(Y){return W(this.negative===0),this.iushln(Y)},U.prototype.iushrn=function(Y,G,F){W(typeof Y==="number"&&Y>=0);var Z;if(G)Z=(G-G%26)/26;else Z=0;var K=Y%26,O=Math.min((Y-K)/26,this.length),I=67108863^67108863>>>K<<K,z=F;if(Z-=O,Z=Math.max(0,Z),z){for(var V=0;V<O;V++)z.words[V]=this.words[V];z.length=O}if(O===0);else if(this.length>O){this.length-=O;for(V=0;V<this.length;V++)this.words[V]=this.words[V+O]}else this.words[0]=0,this.length=1;var q=0;for(V=this.length-1;V>=0&&(q!==0||V>=Z);V--){var R=this.words[V]|0;this.words[V]=q<<26-K|R>>>K,q=R&I}if(z&&q!==0)z.words[z.length++]=q;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},U.prototype.ishrn=function(Y,G,F){return W(this.negative===0),this.iushrn(Y,G,F)},U.prototype.shln=function(Y){return this.clone().ishln(Y)},U.prototype.ushln=function(Y){return this.clone().iushln(Y)},U.prototype.shrn=function(Y){return this.clone().ishrn(Y)},U.prototype.ushrn=function(Y){return this.clone().iushrn(Y)},U.prototype.testn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return!1;var K=this.words[F];return!!(K&Z)},U.prototype.imaskn=function(Y){W(typeof Y==="number"&&Y>=0);var G=Y%26,F=(Y-G)/26;if(W(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(G!==0)F++;if(this.length=Math.min(F,this.length),G!==0){var Z=67108863^67108863>>>G<<G;this.words[this.length-1]&=Z}return this.strip()},U.prototype.maskn=function(Y){return this.clone().imaskn(Y)},U.prototype.iaddn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.isubn(-Y);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Y)return this.words[0]=Y-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Y),this.negative=1,this}return this._iaddn(Y)},U.prototype._iaddn=function(Y){this.words[0]+=Y;for(var G=0;G<this.length&&this.words[G]>=67108864;G++)if(this.words[G]-=67108864,G===this.length-1)this.words[G+1]=1;else this.words[G+1]++;return this.length=Math.max(this.length,G+1),this},U.prototype.isubn=function(Y){if(W(typeof Y==="number"),W(Y<67108864),Y<0)return this.iaddn(-Y);if(this.negative!==0)return this.negative=0,this.iaddn(Y),this.negative=1,this;if(this.words[0]-=Y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var G=0;G<this.length&&this.words[G]<0;G++)this.words[G]+=67108864,this.words[G+1]-=1;return this.strip()},U.prototype.addn=function(Y){return this.clone().iaddn(Y)},U.prototype.subn=function(Y){return this.clone().isubn(Y)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(Y,G,F){var Z=Y.length+F,K;this._expand(Z);var O,I=0;for(K=0;K<Y.length;K++){O=(this.words[K+F]|0)+I;var z=(Y.words[K]|0)*G;O-=z&67108863,I=(O>>26)-(z/67108864|0),this.words[K+F]=O&67108863}for(;K<this.length-F;K++)O=(this.words[K+F]|0)+I,I=O>>26,this.words[K+F]=O&67108863;if(I===0)return this.strip();W(I===-1),I=0;for(K=0;K<this.length;K++)O=-(this.words[K]|0)+I,I=O>>26,this.words[K]=O&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(Y,G){var F=this.length-Y.length,Z=this.clone(),K=Y,O=K.words[K.length-1]|0,I=this._countBits(O);if(F=26-I,F!==0)K=K.ushln(F),Z.iushln(F),O=K.words[K.length-1]|0;var z=Z.length-K.length,V;if(G!=="mod"){V=new U(null),V.length=z+1,V.words=Array(V.length);for(var q=0;q<V.length;q++)V.words[q]=0}var R=Z.clone()._ishlnsubmul(K,1,z);if(R.negative===0){if(Z=R,V)V.words[z]=1}for(var T=z-1;T>=0;T--){var k=(Z.words[K.length+T]|0)*67108864+(Z.words[K.length+T-1]|0);k=Math.min(k/O|0,67108863),Z._ishlnsubmul(K,k,T);while(Z.negative!==0)if(k--,Z.negative=0,Z._ishlnsubmul(K,1,T),!Z.isZero())Z.negative^=1;if(V)V.words[T]=k}if(V)V.strip();if(Z.strip(),G!=="div"&&F!==0)Z.iushrn(F);return{div:V||null,mod:Z}},U.prototype.divmod=function(Y,G,F){if(W(!Y.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var Z,K,O;if(this.negative!==0&&Y.negative===0){if(O=this.neg().divmod(Y,G),G!=="mod")Z=O.div.neg();if(G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.iadd(Y)}return{div:Z,mod:K}}if(this.negative===0&&Y.negative!==0){if(O=this.divmod(Y.neg(),G),G!=="mod")Z=O.div.neg();return{div:Z,mod:O.mod}}if((this.negative&Y.negative)!==0){if(O=this.neg().divmod(Y.neg(),G),G!=="div"){if(K=O.mod.neg(),F&&K.negative!==0)K.isub(Y)}return{div:O.div,mod:K}}if(Y.length>this.length||this.cmp(Y)<0)return{div:new U(0),mod:this};if(Y.length===1){if(G==="div")return{div:this.divn(Y.words[0]),mod:null};if(G==="mod")return{div:null,mod:new U(this.modn(Y.words[0]))};return{div:this.divn(Y.words[0]),mod:new U(this.modn(Y.words[0]))}}return this._wordDiv(Y,G)},U.prototype.div=function(Y){return this.divmod(Y,"div",!1).div},U.prototype.mod=function(Y){return this.divmod(Y,"mod",!1).mod},U.prototype.umod=function(Y){return this.divmod(Y,"mod",!0).mod},U.prototype.divRound=function(Y){var G=this.divmod(Y);if(G.mod.isZero())return G.div;var F=G.div.negative!==0?G.mod.isub(Y):G.mod,Z=Y.ushrn(1),K=Y.andln(1),O=F.cmp(Z);if(O<0||K===1&&O===0)return G.div;return G.div.negative!==0?G.div.isubn(1):G.div.iaddn(1)},U.prototype.modn=function(Y){W(Y<=67108863);var G=67108864%Y,F=0;for(var Z=this.length-1;Z>=0;Z--)F=(G*F+(this.words[Z]|0))%Y;return F},U.prototype.idivn=function(Y){W(Y<=67108863);var G=0;for(var F=this.length-1;F>=0;F--){var Z=(this.words[F]|0)+G*67108864;this.words[F]=Z/Y|0,G=Z%Y}return this.strip()},U.prototype.divn=function(Y){return this.clone().idivn(Y)},U.prototype.egcd=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=new U(0),I=new U(1),z=0;while(G.isEven()&&F.isEven())G.iushrn(1),F.iushrn(1),++z;var V=F.clone(),q=G.clone();while(!G.isZero()){for(var R=0,T=1;(G.words[0]&T)===0&&R<26;++R,T<<=1);if(R>0){G.iushrn(R);while(R-- >0){if(Z.isOdd()||K.isOdd())Z.iadd(V),K.isub(q);Z.iushrn(1),K.iushrn(1)}}for(var k=0,g=1;(F.words[0]&g)===0&&k<26;++k,g<<=1);if(k>0){F.iushrn(k);while(k-- >0){if(O.isOdd()||I.isOdd())O.iadd(V),I.isub(q);O.iushrn(1),I.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(O),K.isub(I);else F.isub(G),O.isub(Z),I.isub(K)}return{a:O,b:I,gcd:F.iushln(z)}},U.prototype._invmp=function(Y){W(Y.negative===0),W(!Y.isZero());var G=this,F=Y.clone();if(G.negative!==0)G=G.umod(Y);else G=G.clone();var Z=new U(1),K=new U(0),O=F.clone();while(G.cmpn(1)>0&&F.cmpn(1)>0){for(var I=0,z=1;(G.words[0]&z)===0&&I<26;++I,z<<=1);if(I>0){G.iushrn(I);while(I-- >0){if(Z.isOdd())Z.iadd(O);Z.iushrn(1)}}for(var V=0,q=1;(F.words[0]&q)===0&&V<26;++V,q<<=1);if(V>0){F.iushrn(V);while(V-- >0){if(K.isOdd())K.iadd(O);K.iushrn(1)}}if(G.cmp(F)>=0)G.isub(F),Z.isub(K);else F.isub(G),K.isub(Z)}var R;if(G.cmpn(1)===0)R=Z;else R=K;if(R.cmpn(0)<0)R.iadd(Y);return R},U.prototype.gcd=function(Y){if(this.isZero())return Y.abs();if(Y.isZero())return this.abs();var G=this.clone(),F=Y.clone();G.negative=0,F.negative=0;for(var Z=0;G.isEven()&&F.isEven();Z++)G.iushrn(1),F.iushrn(1);do{while(G.isEven())G.iushrn(1);while(F.isEven())F.iushrn(1);var K=G.cmp(F);if(K<0){var O=G;G=F,F=O}else if(K===0||F.cmpn(1)===0)break;G.isub(F)}while(!0);return F.iushln(Z)},U.prototype.invm=function(Y){return this.egcd(Y).a.umod(Y)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(Y){return this.words[0]&Y},U.prototype.bincn=function(Y){W(typeof Y==="number");var G=Y%26,F=(Y-G)/26,Z=1<<G;if(this.length<=F)return this._expand(F+1),this.words[F]|=Z,this;var K=Z;for(var O=F;K!==0&&O<this.length;O++){var I=this.words[O]|0;I+=K,K=I>>>26,I&=67108863,this.words[O]=I}if(K!==0)this.words[O]=K,this.length++;return this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(Y){var G=Y<0;if(this.negative!==0&&!G)return-1;if(this.negative===0&&G)return 1;this.strip();var F;if(this.length>1)F=1;else{if(G)Y=-Y;W(Y<=67108863,"Number is too big");var Z=this.words[0]|0;F=Z===Y?0:Z<Y?-1:1}if(this.negative!==0)return-F|0;return F},U.prototype.cmp=function(Y){if(this.negative!==0&&Y.negative===0)return-1;if(this.negative===0&&Y.negative!==0)return 1;var G=this.ucmp(Y);if(this.negative!==0)return-G|0;return G},U.prototype.ucmp=function(Y){if(this.length>Y.length)return 1;if(this.length<Y.length)return-1;var G=0;for(var F=this.length-1;F>=0;F--){var Z=this.words[F]|0,K=Y.words[F]|0;if(Z===K)continue;if(Z<K)G=-1;else if(Z>K)G=1;break}return G},U.prototype.gtn=function(Y){return this.cmpn(Y)===1},U.prototype.gt=function(Y){return this.cmp(Y)===1},U.prototype.gten=function(Y){return this.cmpn(Y)>=0},U.prototype.gte=function(Y){return this.cmp(Y)>=0},U.prototype.ltn=function(Y){return this.cmpn(Y)===-1},U.prototype.lt=function(Y){return this.cmp(Y)===-1},U.prototype.lten=function(Y){return this.cmpn(Y)<=0},U.prototype.lte=function(Y){return this.cmp(Y)<=0},U.prototype.eqn=function(Y){return this.cmpn(Y)===0},U.prototype.eq=function(Y){return this.cmp(Y)===0},U.red=function(Y){return new u(Y)},U.prototype.toRed=function(Y){return W(!this.red,"Already a number in reduction context"),W(this.negative===0,"red works only with positives"),Y.convertTo(this)._forceRed(Y)},U.prototype.fromRed=function(){return W(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(Y){return this.red=Y,this},U.prototype.forceRed=function(Y){return W(!this.red,"Already a number in reduction context"),this._forceRed(Y)},U.prototype.redAdd=function(Y){return W(this.red,"redAdd works only with red numbers"),this.red.add(this,Y)},U.prototype.redIAdd=function(Y){return W(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Y)},U.prototype.redSub=function(Y){return W(this.red,"redSub works only with red numbers"),this.red.sub(this,Y)},U.prototype.redISub=function(Y){return W(this.red,"redISub works only with red numbers"),this.red.isub(this,Y)},U.prototype.redShl=function(Y){return W(this.red,"redShl works only with red numbers"),this.red.shl(this,Y)},U.prototype.redMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.mul(this,Y)},U.prototype.redIMul=function(Y){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.imul(this,Y)},U.prototype.redSqr=function(){return W(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return W(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return W(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return W(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return W(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(Y){return W(this.red&&!Y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Y)};var w={k256:null,p224:null,p192:null,p25519:null};function y(Y,G){this.name=Y,this.p=new U(G,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var Y=new U(null);return Y.words=Array(Math.ceil(this.n/13)),Y},y.prototype.ireduce=function(Y){var G=Y,F;do this.split(G,this.tmp),G=this.imulK(G),G=G.iadd(this.tmp),F=G.bitLength();while(F>this.n);var Z=F<this.n?-1:G.ucmp(this.p);if(Z===0)G.words[0]=0,G.length=1;else if(Z>0)G.isub(this.p);else if(G.strip!==void 0)G.strip();else G._strip();return G},y.prototype.split=function(Y,G){Y.iushrn(this.n,0,G)},y.prototype.imulK=function(Y){return Y.imul(this.k)};function n(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}H(n,y),n.prototype.split=function(Y,G){var F=4194303,Z=Math.min(Y.length,9);for(var K=0;K<Z;K++)G.words[K]=Y.words[K];if(G.length=Z,Y.length<=9){Y.words[0]=0,Y.length=1;return}var O=Y.words[9];G.words[G.length++]=O&F;for(K=10;K<Y.length;K++){var I=Y.words[K]|0;Y.words[K-10]=(I&F)<<4|O>>>22,O=I}if(O>>>=22,Y.words[K-10]=O,O===0&&Y.length>10)Y.length-=10;else Y.length-=9},n.prototype.imulK=function(Y){Y.words[Y.length]=0,Y.words[Y.length+1]=0,Y.length+=2;var G=0;for(var F=0;F<Y.length;F++){var Z=Y.words[F]|0;G+=Z*977,Y.words[F]=G&67108863,G=Z*64+(G/67108864|0)}if(Y.words[Y.length-1]===0){if(Y.length--,Y.words[Y.length-1]===0)Y.length--}return Y};function r(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}H(r,y);function s(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}H(s,y);function i(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}H(i,y),i.prototype.imulK=function(Y){var G=0;for(var F=0;F<Y.length;F++){var Z=(Y.words[F]|0)*19+G,K=Z&67108863;Z>>>=26,Y.words[F]=K,G=Z}if(G!==0)Y.words[Y.length++]=G;return Y},U._prime=function(Y){if(w[Y])return w[Y];var G;if(Y==="k256")G=new n;else if(Y==="p224")G=new r;else if(Y==="p192")G=new s;else if(Y==="p25519")G=new i;else throw Error("Unknown prime "+Y);return w[Y]=G,G};function u(Y){if(typeof Y==="string"){var G=U._prime(Y);this.m=G.p,this.prime=G}else W(Y.gtn(1),"modulus must be greater than 1"),this.m=Y,this.prime=null}u.prototype._verify1=function(Y){W(Y.negative===0,"red works only with positives"),W(Y.red,"red works only with red numbers")},u.prototype._verify2=function(Y,G){W((Y.negative|G.negative)===0,"red works only with positives"),W(Y.red&&Y.red===G.red,"red works only with red numbers")},u.prototype.imod=function(Y){if(this.prime)return this.prime.ireduce(Y)._forceRed(this);return Y.umod(this.m)._forceRed(this)},u.prototype.neg=function(Y){if(Y.isZero())return Y.clone();return this.m.sub(Y)._forceRed(this)},u.prototype.add=function(Y,G){this._verify2(Y,G);var F=Y.add(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},u.prototype.iadd=function(Y,G){this._verify2(Y,G);var F=Y.iadd(G);if(F.cmp(this.m)>=0)F.isub(this.m);return F},u.prototype.sub=function(Y,G){this._verify2(Y,G);var F=Y.sub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},u.prototype.isub=function(Y,G){this._verify2(Y,G);var F=Y.isub(G);if(F.cmpn(0)<0)F.iadd(this.m);return F},u.prototype.shl=function(Y,G){return this._verify1(Y),this.imod(Y.ushln(G))},u.prototype.imul=function(Y,G){return this._verify2(Y,G),this.imod(Y.imul(G))},u.prototype.mul=function(Y,G){return this._verify2(Y,G),this.imod(Y.mul(G))},u.prototype.isqr=function(Y){return this.imul(Y,Y.clone())},u.prototype.sqr=function(Y){return this.mul(Y,Y)},u.prototype.sqrt=function(Y){if(Y.isZero())return Y.clone();var G=this.m.andln(3);if(W(G%2===1),G===3){var F=this.m.add(new U(1)).iushrn(2);return this.pow(Y,F)}var Z=this.m.subn(1),K=0;while(!Z.isZero()&&Z.andln(1)===0)K++,Z.iushrn(1);W(!Z.isZero());var O=new U(1).toRed(this),I=O.redNeg(),z=this.m.subn(1).iushrn(1),V=this.m.bitLength();V=new U(2*V*V).toRed(this);while(this.pow(V,z).cmp(I)!==0)V.redIAdd(I);var q=this.pow(V,Z),R=this.pow(Y,Z.addn(1).iushrn(1)),T=this.pow(Y,Z),k=K;while(T.cmp(O)!==0){var g=T;for(var b=0;g.cmp(O)!==0;b++)g=g.redSqr();W(b<k);var t=this.pow(q,new U(1).iushln(k-b-1));R=R.redMul(t),q=t.redSqr(),T=T.redMul(q),k=b}return R},u.prototype.invm=function(Y){var G=Y._invmp(this.m);if(G.negative!==0)return G.negative=0,this.imod(G).redNeg();else return this.imod(G)},u.prototype.pow=function(Y,G){if(G.isZero())return new U(1).toRed(this);if(G.cmpn(1)===0)return Y.clone();var F=4,Z=Array(1<<F);Z[0]=new U(1).toRed(this),Z[1]=Y;for(var K=2;K<Z.length;K++)Z[K]=this.mul(Z[K-1],Y);var O=Z[0],I=0,z=0,V=G.bitLength()%26;if(V===0)V=26;for(K=G.length-1;K>=0;K--){var q=G.words[K];for(var R=V-1;R>=0;R--){var T=q>>R&1;if(O!==Z[0])O=this.sqr(O);if(T===0&&I===0){z=0;continue}if(I<<=1,I|=T,z++,z!==F&&(K!==0||R!==0))continue;O=this.mul(O,Z[I]),z=0,I=0}V=26}return O},u.prototype.convertTo=function(Y){var G=Y.umod(this.m);return G===Y?G.clone():G},u.prototype.convertFrom=function(Y){var G=Y.clone();return G.red=null,G},U.mont=function(Y){return new Q0(Y)};function Q0(Y){if(u.call(this,Y),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new U(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)}H(Q0,u),Q0.prototype.convertTo=function(Y){return this.imod(Y.ushln(this.shift))},Q0.prototype.convertFrom=function(Y){var G=this.imod(Y.mul(this.rinv));return G.red=null,G},Q0.prototype.imul=function(Y,G){if(Y.isZero()||G.isZero())return Y.words[0]=0,Y.length=1,Y;var F=Y.imul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.mul=function(Y,G){if(Y.isZero()||G.isZero())return new U(0)._forceRed(this);var F=Y.mul(G),Z=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=F.isub(Z).iushrn(this.shift),O=K;if(K.cmp(this.m)>=0)O=K.isub(this.m);else if(K.cmpn(0)<0)O=K.iadd(this.m);return O._forceRed(this)},Q0.prototype.invm=function(Y){var G=this.imod(Y._invmp(this.m).mul(this.r2));return G._forceRed(this)}})(typeof J>"u"||J,Q)}),bG=C0((Q,J)=>{var X=I$(),$=hQ().Buffer;function W(H,U){return $.from(H.toRed(X.mont(U.modulus)).redPow(new X(U.publicExponent)).fromRed().toArray())}J.exports=W}),y2=C0((Q,J)=>{(function(X,$){function W(Z,K){if(!Z)throw Error(K||"Assertion failed")}function H(Z,K){Z.super_=K;var O=function(){};O.prototype=K.prototype,Z.prototype=new O,Z.prototype.constructor=Z}function U(Z,K,O){if(U.isBN(Z))return Z;if(this.negative=0,this.words=null,this.length=0,this.red=null,Z!==null){if(K==="le"||K==="be")O=K,K=10;this._init(Z||0,K||10,O||"be")}}if(typeof X==="object")X.exports=U;else $.BN=U;U.BN=U,U.wordSize=26;var C;try{if(typeof window<"u"&&typeof window.Buffer<"u")C=window.Buffer;else C=(HQ(),u0(SQ)).Buffer}catch(Z){}U.isBN=function(Z){if(Z instanceof U)return!0;return Z!==null&&typeof Z==="object"&&Z.constructor.wordSize===U.wordSize&&Array.isArray(Z.words)},U.max=function(Z,K){if(Z.cmp(K)>0)return Z;return K},U.min=function(Z,K){if(Z.cmp(K)<0)return Z;return K},U.prototype._init=function(Z,K,O){if(typeof Z==="number")return this._initNumber(Z,K,O);if(typeof Z==="object")return this._initArray(Z,K,O);if(K==="hex")K=16;W(K===(K|0)&&K>=2&&K<=36),Z=Z.toString().replace(/\s+/g,"");var I=0;if(Z[0]==="-")I++,this.negative=1;if(I<Z.length){if(K===16)this._parseHex(Z,I,O);else if(this._parseBase(Z,K,I),O==="le")this._initArray(this.toArray(),K,O)}},U.prototype._initNumber=function(Z,K,O){if(Z<0)this.negative=1,Z=-Z;if(Z<67108864)this.words=[Z&67108863],this.length=1;else if(Z<4503599627370496)this.words=[Z&67108863,Z/67108864&67108863],this.length=2;else W(Z<9007199254740992),this.words=[Z&67108863,Z/67108864&67108863,1],this.length=3;if(O!=="le")return;this._initArray(this.toArray(),K,O)},U.prototype._initArray=function(Z,K,O){if(W(typeof Z.length==="number"),Z.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Z.length/3),this.words=Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var z,V,q=0;if(O==="be"){for(I=Z.length-1,z=0;I>=0;I-=3)if(V=Z[I]|Z[I-1]<<8|Z[I-2]<<16,this.words[z]|=V<<q&67108863,this.words[z+1]=V>>>26-q&67108863,q+=24,q>=26)q-=26,z++}else if(O==="le"){for(I=0,z=0;I<Z.length;I+=3)if(V=Z[I]|Z[I+1]<<8|Z[I+2]<<16,this.words[z]|=V<<q&67108863,this.words[z+1]=V>>>26-q&67108863,q+=24,q>=26)q-=26,z++}return this._strip()};function A(Z,K){var O=Z.charCodeAt(K);if(O>=48&&O<=57)return O-48;else if(O>=65&&O<=70)return O-55;else if(O>=97&&O<=102)return O-87;else W(!1,"Invalid character in "+Z)}function M(Z,K,O){var I=A(Z,O);if(O-1>=K)I|=A(Z,O-1)<<4;return I}U.prototype._parseHex=function(Z,K,O){this.length=Math.ceil((Z.length-K)/6),this.words=Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var z=0,V=0,q;if(O==="be")for(I=Z.length-1;I>=K;I-=2)if(q=M(Z,K,I)<<z,this.words[V]|=q&67108863,z>=18)z-=18,V+=1,this.words[V]|=q>>>26;else z+=8;else{var R=Z.length-K;for(I=R%2===0?K+1:K;I<Z.length;I+=2)if(q=M(Z,K,I)<<z,this.words[V]|=q&67108863,z>=18)z-=18,V+=1,this.words[V]|=q>>>26;else z+=8}this._strip()};function D(Z,K,O,I){var z=0,V=0,q=Math.min(Z.length,O);for(var R=K;R<q;R++){var T=Z.charCodeAt(R)-48;if(z*=I,T>=49)V=T-49+10;else if(T>=17)V=T-17+10;else V=T;W(T>=0&&V<I,"Invalid character"),z+=V}return z}U.prototype._parseBase=function(Z,K,O){this.words=[0],this.length=1;for(var I=0,z=1;z<=67108863;z*=K)I++;I--,z=z/K|0;var V=Z.length-O,q=V%I,R=Math.min(V,V-q)+O,T=0;for(var k=O;k<R;k+=I)if(T=D(Z,k,k+I,K),this.imuln(z),this.words[0]+T<67108864)this.words[0]+=T;else this._iaddn(T);if(q!==0){var g=1;T=D(Z,k,Z.length,K);for(k=0;k<q;k++)g*=K;if(this.imuln(g),this.words[0]+T<67108864)this.words[0]+=T;else this._iaddn(T)}this._strip()},U.prototype.copy=function(Z){Z.words=Array(this.length);for(var K=0;K<this.length;K++)Z.words[K]=this.words[K];Z.length=this.length,Z.negative=this.negative,Z.red=this.red};function L(Z,K){Z.words=K.words,Z.length=K.length,Z.negative=K.negative,Z.red=K.red}if(U.prototype._move=function(Z){L(Z,this)},U.prototype.clone=function(){var Z=new U(null);return this.copy(Z),Z},U.prototype._expand=function(Z){while(this.length<Z)this.words[this.length++]=0;return this},U.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},U.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{U.prototype[Symbol.for("nodejs.util.inspect.custom")]=P}catch(Z){U.prototype.inspect=P}else U.prototype.inspect=P;function P(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[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],B=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];if(U.prototype.toString=function(Z,K){Z=Z||10,K=K|0||1;var O;if(Z===16||Z==="hex"){O="";var I=0,z=0;for(var V=0;V<this.length;V++){var q=this.words[V],R=((q<<I|z)&16777215).toString(16);if(z=q>>>24-I&16777215,I+=2,I>=26)I-=26,V--;if(z!==0||V!==this.length-1)O=E[6-R.length]+R+O;else O=R+O}if(z!==0)O=z.toString(16)+O;while(O.length%K!==0)O="0"+O;if(this.negative!==0)O="-"+O;return O}if(Z===(Z|0)&&Z>=2&&Z<=36){var T=S[Z],k=B[Z];O="";var g=this.clone();g.negative=0;while(!g.isZero()){var b=g.modrn(k).toString(Z);if(g=g.idivn(k),!g.isZero())O=E[T-b.length]+b+O;else O=b+O}if(this.isZero())O="0"+O;while(O.length%K!==0)O="0"+O;if(this.negative!==0)O="-"+O;return O}W(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var Z=this.words[0];if(this.length===2)Z+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Z+=4503599627370496+this.words[1]*67108864;else if(this.length>2)W(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Z:Z},U.prototype.toJSON=function(){return this.toString(16,2)},C)U.prototype.toBuffer=function(Z,K){return this.toArrayLike(C,Z,K)};U.prototype.toArray=function(Z,K){return this.toArrayLike(Array,Z,K)};var j=function(Z,K){if(Z.allocUnsafe)return Z.allocUnsafe(K);return new Z(K)};if(U.prototype.toArrayLike=function(Z,K,O){this._strip();var I=this.byteLength(),z=O||Math.max(1,I);W(I<=z,"byte array longer than desired length"),W(z>0,"Requested array length <= 0");var V=j(Z,z),q=K==="le"?"LE":"BE";return this["_toArrayLike"+q](V,I),V},U.prototype._toArrayLikeLE=function(Z,K){var O=0,I=0;for(var z=0,V=0;z<this.length;z++){var q=this.words[z]<<V|I;if(Z[O++]=q&255,O<Z.length)Z[O++]=q>>8&255;if(O<Z.length)Z[O++]=q>>16&255;if(V===6){if(O<Z.length)Z[O++]=q>>24&255;I=0,V=0}else I=q>>>24,V+=2}if(O<Z.length){Z[O++]=I;while(O<Z.length)Z[O++]=0}},U.prototype._toArrayLikeBE=function(Z,K){var O=Z.length-1,I=0;for(var z=0,V=0;z<this.length;z++){var q=this.words[z]<<V|I;if(Z[O--]=q&255,O>=0)Z[O--]=q>>8&255;if(O>=0)Z[O--]=q>>16&255;if(V===6){if(O>=0)Z[O--]=q>>24&255;I=0,V=0}else I=q>>>24,V+=2}if(O>=0){Z[O--]=I;while(O>=0)Z[O--]=0}},Math.clz32)U.prototype._countBits=function(Z){return 32-Math.clz32(Z)};else U.prototype._countBits=function(Z){var K=Z,O=0;if(K>=4096)O+=13,K>>>=13;if(K>=64)O+=7,K>>>=7;if(K>=8)O+=4,K>>>=4;if(K>=2)O+=2,K>>>=2;return O+K};U.prototype._zeroBits=function(Z){if(Z===0)return 26;var K=Z,O=0;if((K&8191)===0)O+=13,K>>>=13;if((K&127)===0)O+=7,K>>>=7;if((K&15)===0)O+=4,K>>>=4;if((K&3)===0)O+=2,K>>>=2;if((K&1)===0)O++;return O},U.prototype.bitLength=function(){var Z=this.words[this.length-1],K=this._countBits(Z);return(this.length-1)*26+K};function N(Z){var K=Array(Z.bitLength());for(var O=0;O<K.length;O++){var I=O/26|0,z=O%26;K[O]=Z.words[I]>>>z&1}return K}U.prototype.zeroBits=function(){if(this.isZero())return 0;var Z=0;for(var K=0;K<this.length;K++){var O=this._zeroBits(this.words[K]);if(Z+=O,O!==26)break}return Z},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(Z){if(this.negative!==0)return this.abs().inotn(Z).iaddn(1);return this.clone()},U.prototype.fromTwos=function(Z){if(this.testn(Z-1))return this.notn(Z).iaddn(1).ineg();return this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},U.prototype.iuor=function(Z){while(this.length<Z.length)this.words[this.length++]=0;for(var K=0;K<Z.length;K++)this.words[K]=this.words[K]|Z.words[K];return this._strip()},U.prototype.ior=function(Z){return W((this.negative|Z.negative)===0),this.iuor(Z)},U.prototype.or=function(Z){if(this.length>Z.length)return this.clone().ior(Z);return Z.clone().ior(this)},U.prototype.uor=function(Z){if(this.length>Z.length)return this.clone().iuor(Z);return Z.clone().iuor(this)},U.prototype.iuand=function(Z){var K;if(this.length>Z.length)K=Z;else K=this;for(var O=0;O<K.length;O++)this.words[O]=this.words[O]&Z.words[O];return this.length=K.length,this._strip()},U.prototype.iand=function(Z){return W((this.negative|Z.negative)===0),this.iuand(Z)},U.prototype.and=function(Z){if(this.length>Z.length)return this.clone().iand(Z);return Z.clone().iand(this)},U.prototype.uand=function(Z){if(this.length>Z.length)return this.clone().iuand(Z);return Z.clone().iuand(this)},U.prototype.iuxor=function(Z){var K,O;if(this.length>Z.length)K=this,O=Z;else K=Z,O=this;for(var I=0;I<O.length;I++)this.words[I]=K.words[I]^O.words[I];if(this!==K)for(;I<K.length;I++)this.words[I]=K.words[I];return this.length=K.length,this._strip()},U.prototype.ixor=function(Z){return W((this.negative|Z.negative)===0),this.iuxor(Z)},U.prototype.xor=function(Z){if(this.length>Z.length)return this.clone().ixor(Z);return Z.clone().ixor(this)},U.prototype.uxor=function(Z){if(this.length>Z.length)return this.clone().iuxor(Z);return Z.clone().iuxor(this)},U.prototype.inotn=function(Z){W(typeof Z==="number"&&Z>=0);var K=Math.ceil(Z/26)|0,O=Z%26;if(this._expand(K),O>0)K--;for(var I=0;I<K;I++)this.words[I]=~this.words[I]&67108863;if(O>0)this.words[I]=~this.words[I]&67108863>>26-O;return this._strip()},U.prototype.notn=function(Z){return this.clone().inotn(Z)},U.prototype.setn=function(Z,K){W(typeof Z==="number"&&Z>=0);var O=Z/26|0,I=Z%26;if(this._expand(O+1),K)this.words[O]=this.words[O]|1<<I;else this.words[O]=this.words[O]&~(1<<I);return this._strip()},U.prototype.iadd=function(Z){var K;if(this.negative!==0&&Z.negative===0)return this.negative=0,K=this.isub(Z),this.negative^=1,this._normSign();else if(this.negative===0&&Z.negative!==0)return Z.negative=0,K=this.isub(Z),Z.negative=1,K._normSign();var O,I;if(this.length>Z.length)O=this,I=Z;else O=Z,I=this;var z=0;for(var V=0;V<I.length;V++)K=(O.words[V]|0)+(I.words[V]|0)+z,this.words[V]=K&67108863,z=K>>>26;for(;z!==0&&V<O.length;V++)K=(O.words[V]|0)+z,this.words[V]=K&67108863,z=K>>>26;if(this.length=O.length,z!==0)this.words[this.length]=z,this.length++;else if(O!==this)for(;V<O.length;V++)this.words[V]=O.words[V];return this},U.prototype.add=function(Z){var K;if(Z.negative!==0&&this.negative===0)return Z.negative=0,K=this.sub(Z),Z.negative^=1,K;else if(Z.negative===0&&this.negative!==0)return this.negative=0,K=Z.sub(this),this.negative=1,K;if(this.length>Z.length)return this.clone().iadd(Z);return Z.clone().iadd(this)},U.prototype.isub=function(Z){if(Z.negative!==0){Z.negative=0;var K=this.iadd(Z);return Z.negative=1,K._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Z),this.negative=1,this._normSign();var O=this.cmp(Z);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,z;if(O>0)I=this,z=Z;else I=Z,z=this;var V=0;for(var q=0;q<z.length;q++)K=(I.words[q]|0)-(z.words[q]|0)+V,V=K>>26,this.words[q]=K&67108863;for(;V!==0&&q<I.length;q++)K=(I.words[q]|0)+V,V=K>>26,this.words[q]=K&67108863;if(V===0&&q<I.length&&I!==this)for(;q<I.length;q++)this.words[q]=I.words[q];if(this.length=Math.max(this.length,q),I!==this)this.negative=1;return this._strip()},U.prototype.sub=function(Z){return this.clone().isub(Z)};function v(Z,K,O){O.negative=K.negative^Z.negative;var I=Z.length+K.length|0;O.length=I,I=I-1|0;var z=Z.words[0]|0,V=K.words[0]|0,q=z*V,R=q&67108863,T=q/67108864|0;O.words[0]=R;for(var k=1;k<I;k++){var g=T>>>26,b=T&67108863,t=Math.min(k,K.length-1);for(var G0=Math.max(0,k-Z.length+1);G0<=t;G0++){var p=k-G0|0;z=Z.words[p]|0,V=K.words[G0]|0,q=z*V+b,g+=q/67108864|0,b=q&67108863}O.words[k]=b|0,T=g|0}if(T!==0)O.words[k]=T|0;else O.length--;return O._strip()}var x=function(Z,K,O){var I=Z.words,z=K.words,V=O.words,q=0,R,T,k,g=I[0]|0,b=g&8191,t=g>>>13,G0=I[1]|0,p=G0&8191,_=G0>>>13,d=I[2]|0,h=d&8191,e=d>>>13,q0=I[3]|0,c=q0&8191,l=q0>>>13,U0=I[4]|0,$0=U0&8191,m=U0>>>13,M0=I[5]|0,o=M0&8191,Y0=M0>>>13,T0=I[6]|0,V0=T0&8191,W0=T0>>>13,b0=I[7]|0,a=b0&8191,J0=b0>>>13,y0=I[8]|0,H0=y0&8191,F0=y0>>>13,h0=I[9]|0,z0=h0&8191,O0=h0>>>13,d0=z[0]|0,I0=d0&8191,D0=d0>>>13,ZQ=z[1]|0,R0=ZQ&8191,E0=ZQ>>>13,t0=z[2]|0,S0=t0&8191,B0=t0>>>13,vQ=z[3]|0,x0=vQ&8191,w0=vQ>>>13,NQ=z[4]|0,k0=NQ&8191,f=NQ>>>13,X0=z[5]|0,Z0=X0&8191,K0=X0>>>13,c0=z[6]|0,P0=c0&8191,A0=c0>>>13,GQ=z[7]|0,v0=GQ&8191,_0=GQ>>>13,wQ=z[8]|0,N0=wQ&8191,j0=wQ>>>13,WQ=z[9]|0,m0=WQ&8191,l0=WQ>>>13;O.negative=Z.negative^K.negative,O.length=19,R=Math.imul(b,I0),T=Math.imul(b,D0),T=T+Math.imul(t,I0)|0,k=Math.imul(t,D0);var e0=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(e0>>>26)|0,e0&=67108863,R=Math.imul(p,I0),T=Math.imul(p,D0),T=T+Math.imul(_,I0)|0,k=Math.imul(_,D0),R=R+Math.imul(b,R0)|0,T=T+Math.imul(b,E0)|0,T=T+Math.imul(t,R0)|0,k=k+Math.imul(t,E0)|0;var i0=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(i0>>>26)|0,i0&=67108863,R=Math.imul(h,I0),T=Math.imul(h,D0),T=T+Math.imul(e,I0)|0,k=Math.imul(e,D0),R=R+Math.imul(p,R0)|0,T=T+Math.imul(p,E0)|0,T=T+Math.imul(_,R0)|0,k=k+Math.imul(_,E0)|0,R=R+Math.imul(b,S0)|0,T=T+Math.imul(b,B0)|0,T=T+Math.imul(t,S0)|0,k=k+Math.imul(t,B0)|0;var FQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,R=Math.imul(c,I0),T=Math.imul(c,D0),T=T+Math.imul(l,I0)|0,k=Math.imul(l,D0),R=R+Math.imul(h,R0)|0,T=T+Math.imul(h,E0)|0,T=T+Math.imul(e,R0)|0,k=k+Math.imul(e,E0)|0,R=R+Math.imul(p,S0)|0,T=T+Math.imul(p,B0)|0,T=T+Math.imul(_,S0)|0,k=k+Math.imul(_,B0)|0,R=R+Math.imul(b,x0)|0,T=T+Math.imul(b,w0)|0,T=T+Math.imul(t,x0)|0,k=k+Math.imul(t,w0)|0;var qQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(qQ>>>26)|0,qQ&=67108863,R=Math.imul($0,I0),T=Math.imul($0,D0),T=T+Math.imul(m,I0)|0,k=Math.imul(m,D0),R=R+Math.imul(c,R0)|0,T=T+Math.imul(c,E0)|0,T=T+Math.imul(l,R0)|0,k=k+Math.imul(l,E0)|0,R=R+Math.imul(h,S0)|0,T=T+Math.imul(h,B0)|0,T=T+Math.imul(e,S0)|0,k=k+Math.imul(e,B0)|0,R=R+Math.imul(p,x0)|0,T=T+Math.imul(p,w0)|0,T=T+Math.imul(_,x0)|0,k=k+Math.imul(_,w0)|0,R=R+Math.imul(b,k0)|0,T=T+Math.imul(b,f)|0,T=T+Math.imul(t,k0)|0,k=k+Math.imul(t,f)|0;var zQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,R=Math.imul(o,I0),T=Math.imul(o,D0),T=T+Math.imul(Y0,I0)|0,k=Math.imul(Y0,D0),R=R+Math.imul($0,R0)|0,T=T+Math.imul($0,E0)|0,T=T+Math.imul(m,R0)|0,k=k+Math.imul(m,E0)|0,R=R+Math.imul(c,S0)|0,T=T+Math.imul(c,B0)|0,T=T+Math.imul(l,S0)|0,k=k+Math.imul(l,B0)|0,R=R+Math.imul(h,x0)|0,T=T+Math.imul(h,w0)|0,T=T+Math.imul(e,x0)|0,k=k+Math.imul(e,w0)|0,R=R+Math.imul(p,k0)|0,T=T+Math.imul(p,f)|0,T=T+Math.imul(_,k0)|0,k=k+Math.imul(_,f)|0,R=R+Math.imul(b,Z0)|0,T=T+Math.imul(b,K0)|0,T=T+Math.imul(t,Z0)|0,k=k+Math.imul(t,K0)|0;var OQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(OQ>>>26)|0,OQ&=67108863,R=Math.imul(V0,I0),T=Math.imul(V0,D0),T=T+Math.imul(W0,I0)|0,k=Math.imul(W0,D0),R=R+Math.imul(o,R0)|0,T=T+Math.imul(o,E0)|0,T=T+Math.imul(Y0,R0)|0,k=k+Math.imul(Y0,E0)|0,R=R+Math.imul($0,S0)|0,T=T+Math.imul($0,B0)|0,T=T+Math.imul(m,S0)|0,k=k+Math.imul(m,B0)|0,R=R+Math.imul(c,x0)|0,T=T+Math.imul(c,w0)|0,T=T+Math.imul(l,x0)|0,k=k+Math.imul(l,w0)|0,R=R+Math.imul(h,k0)|0,T=T+Math.imul(h,f)|0,T=T+Math.imul(e,k0)|0,k=k+Math.imul(e,f)|0,R=R+Math.imul(p,Z0)|0,T=T+Math.imul(p,K0)|0,T=T+Math.imul(_,Z0)|0,k=k+Math.imul(_,K0)|0,R=R+Math.imul(b,P0)|0,T=T+Math.imul(b,A0)|0,T=T+Math.imul(t,P0)|0,k=k+Math.imul(t,A0)|0;var CQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,R=Math.imul(a,I0),T=Math.imul(a,D0),T=T+Math.imul(J0,I0)|0,k=Math.imul(J0,D0),R=R+Math.imul(V0,R0)|0,T=T+Math.imul(V0,E0)|0,T=T+Math.imul(W0,R0)|0,k=k+Math.imul(W0,E0)|0,R=R+Math.imul(o,S0)|0,T=T+Math.imul(o,B0)|0,T=T+Math.imul(Y0,S0)|0,k=k+Math.imul(Y0,B0)|0,R=R+Math.imul($0,x0)|0,T=T+Math.imul($0,w0)|0,T=T+Math.imul(m,x0)|0,k=k+Math.imul(m,w0)|0,R=R+Math.imul(c,k0)|0,T=T+Math.imul(c,f)|0,T=T+Math.imul(l,k0)|0,k=k+Math.imul(l,f)|0,R=R+Math.imul(h,Z0)|0,T=T+Math.imul(h,K0)|0,T=T+Math.imul(e,Z0)|0,k=k+Math.imul(e,K0)|0,R=R+Math.imul(p,P0)|0,T=T+Math.imul(p,A0)|0,T=T+Math.imul(_,P0)|0,k=k+Math.imul(_,A0)|0,R=R+Math.imul(b,v0)|0,T=T+Math.imul(b,_0)|0,T=T+Math.imul(t,v0)|0,k=k+Math.imul(t,_0)|0;var LQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,R=Math.imul(H0,I0),T=Math.imul(H0,D0),T=T+Math.imul(F0,I0)|0,k=Math.imul(F0,D0),R=R+Math.imul(a,R0)|0,T=T+Math.imul(a,E0)|0,T=T+Math.imul(J0,R0)|0,k=k+Math.imul(J0,E0)|0,R=R+Math.imul(V0,S0)|0,T=T+Math.imul(V0,B0)|0,T=T+Math.imul(W0,S0)|0,k=k+Math.imul(W0,B0)|0,R=R+Math.imul(o,x0)|0,T=T+Math.imul(o,w0)|0,T=T+Math.imul(Y0,x0)|0,k=k+Math.imul(Y0,w0)|0,R=R+Math.imul($0,k0)|0,T=T+Math.imul($0,f)|0,T=T+Math.imul(m,k0)|0,k=k+Math.imul(m,f)|0,R=R+Math.imul(c,Z0)|0,T=T+Math.imul(c,K0)|0,T=T+Math.imul(l,Z0)|0,k=k+Math.imul(l,K0)|0,R=R+Math.imul(h,P0)|0,T=T+Math.imul(h,A0)|0,T=T+Math.imul(e,P0)|0,k=k+Math.imul(e,A0)|0,R=R+Math.imul(p,v0)|0,T=T+Math.imul(p,_0)|0,T=T+Math.imul(_,v0)|0,k=k+Math.imul(_,_0)|0,R=R+Math.imul(b,N0)|0,T=T+Math.imul(b,j0)|0,T=T+Math.imul(t,N0)|0,k=k+Math.imul(t,j0)|0;var MQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,R=Math.imul(z0,I0),T=Math.imul(z0,D0),T=T+Math.imul(O0,I0)|0,k=Math.imul(O0,D0),R=R+Math.imul(H0,R0)|0,T=T+Math.imul(H0,E0)|0,T=T+Math.imul(F0,R0)|0,k=k+Math.imul(F0,E0)|0,R=R+Math.imul(a,S0)|0,T=T+Math.imul(a,B0)|0,T=T+Math.imul(J0,S0)|0,k=k+Math.imul(J0,B0)|0,R=R+Math.imul(V0,x0)|0,T=T+Math.imul(V0,w0)|0,T=T+Math.imul(W0,x0)|0,k=k+Math.imul(W0,w0)|0,R=R+Math.imul(o,k0)|0,T=T+Math.imul(o,f)|0,T=T+Math.imul(Y0,k0)|0,k=k+Math.imul(Y0,f)|0,R=R+Math.imul($0,Z0)|0,T=T+Math.imul($0,K0)|0,T=T+Math.imul(m,Z0)|0,k=k+Math.imul(m,K0)|0,R=R+Math.imul(c,P0)|0,T=T+Math.imul(c,A0)|0,T=T+Math.imul(l,P0)|0,k=k+Math.imul(l,A0)|0,R=R+Math.imul(h,v0)|0,T=T+Math.imul(h,_0)|0,T=T+Math.imul(e,v0)|0,k=k+Math.imul(e,_0)|0,R=R+Math.imul(p,N0)|0,T=T+Math.imul(p,j0)|0,T=T+Math.imul(_,N0)|0,k=k+Math.imul(_,j0)|0,R=R+Math.imul(b,m0)|0,T=T+Math.imul(b,l0)|0,T=T+Math.imul(t,m0)|0,k=k+Math.imul(t,l0)|0;var IQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(IQ>>>26)|0,IQ&=67108863,R=Math.imul(z0,R0),T=Math.imul(z0,E0),T=T+Math.imul(O0,R0)|0,k=Math.imul(O0,E0),R=R+Math.imul(H0,S0)|0,T=T+Math.imul(H0,B0)|0,T=T+Math.imul(F0,S0)|0,k=k+Math.imul(F0,B0)|0,R=R+Math.imul(a,x0)|0,T=T+Math.imul(a,w0)|0,T=T+Math.imul(J0,x0)|0,k=k+Math.imul(J0,w0)|0,R=R+Math.imul(V0,k0)|0,T=T+Math.imul(V0,f)|0,T=T+Math.imul(W0,k0)|0,k=k+Math.imul(W0,f)|0,R=R+Math.imul(o,Z0)|0,T=T+Math.imul(o,K0)|0,T=T+Math.imul(Y0,Z0)|0,k=k+Math.imul(Y0,K0)|0,R=R+Math.imul($0,P0)|0,T=T+Math.imul($0,A0)|0,T=T+Math.imul(m,P0)|0,k=k+Math.imul(m,A0)|0,R=R+Math.imul(c,v0)|0,T=T+Math.imul(c,_0)|0,T=T+Math.imul(l,v0)|0,k=k+Math.imul(l,_0)|0,R=R+Math.imul(h,N0)|0,T=T+Math.imul(h,j0)|0,T=T+Math.imul(e,N0)|0,k=k+Math.imul(e,j0)|0,R=R+Math.imul(p,m0)|0,T=T+Math.imul(p,l0)|0,T=T+Math.imul(_,m0)|0,k=k+Math.imul(_,l0)|0;var DQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,R=Math.imul(z0,S0),T=Math.imul(z0,B0),T=T+Math.imul(O0,S0)|0,k=Math.imul(O0,B0),R=R+Math.imul(H0,x0)|0,T=T+Math.imul(H0,w0)|0,T=T+Math.imul(F0,x0)|0,k=k+Math.imul(F0,w0)|0,R=R+Math.imul(a,k0)|0,T=T+Math.imul(a,f)|0,T=T+Math.imul(J0,k0)|0,k=k+Math.imul(J0,f)|0,R=R+Math.imul(V0,Z0)|0,T=T+Math.imul(V0,K0)|0,T=T+Math.imul(W0,Z0)|0,k=k+Math.imul(W0,K0)|0,R=R+Math.imul(o,P0)|0,T=T+Math.imul(o,A0)|0,T=T+Math.imul(Y0,P0)|0,k=k+Math.imul(Y0,A0)|0,R=R+Math.imul($0,v0)|0,T=T+Math.imul($0,_0)|0,T=T+Math.imul(m,v0)|0,k=k+Math.imul(m,_0)|0,R=R+Math.imul(c,N0)|0,T=T+Math.imul(c,j0)|0,T=T+Math.imul(l,N0)|0,k=k+Math.imul(l,j0)|0,R=R+Math.imul(h,m0)|0,T=T+Math.imul(h,l0)|0,T=T+Math.imul(e,m0)|0,k=k+Math.imul(e,l0)|0;var PQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,R=Math.imul(z0,x0),T=Math.imul(z0,w0),T=T+Math.imul(O0,x0)|0,k=Math.imul(O0,w0),R=R+Math.imul(H0,k0)|0,T=T+Math.imul(H0,f)|0,T=T+Math.imul(F0,k0)|0,k=k+Math.imul(F0,f)|0,R=R+Math.imul(a,Z0)|0,T=T+Math.imul(a,K0)|0,T=T+Math.imul(J0,Z0)|0,k=k+Math.imul(J0,K0)|0,R=R+Math.imul(V0,P0)|0,T=T+Math.imul(V0,A0)|0,T=T+Math.imul(W0,P0)|0,k=k+Math.imul(W0,A0)|0,R=R+Math.imul(o,v0)|0,T=T+Math.imul(o,_0)|0,T=T+Math.imul(Y0,v0)|0,k=k+Math.imul(Y0,_0)|0,R=R+Math.imul($0,N0)|0,T=T+Math.imul($0,j0)|0,T=T+Math.imul(m,N0)|0,k=k+Math.imul(m,j0)|0,R=R+Math.imul(c,m0)|0,T=T+Math.imul(c,l0)|0,T=T+Math.imul(l,m0)|0,k=k+Math.imul(l,l0)|0;var TQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,R=Math.imul(z0,k0),T=Math.imul(z0,f),T=T+Math.imul(O0,k0)|0,k=Math.imul(O0,f),R=R+Math.imul(H0,Z0)|0,T=T+Math.imul(H0,K0)|0,T=T+Math.imul(F0,Z0)|0,k=k+Math.imul(F0,K0)|0,R=R+Math.imul(a,P0)|0,T=T+Math.imul(a,A0)|0,T=T+Math.imul(J0,P0)|0,k=k+Math.imul(J0,A0)|0,R=R+Math.imul(V0,v0)|0,T=T+Math.imul(V0,_0)|0,T=T+Math.imul(W0,v0)|0,k=k+Math.imul(W0,_0)|0,R=R+Math.imul(o,N0)|0,T=T+Math.imul(o,j0)|0,T=T+Math.imul(Y0,N0)|0,k=k+Math.imul(Y0,j0)|0,R=R+Math.imul($0,m0)|0,T=T+Math.imul($0,l0)|0,T=T+Math.imul(m,m0)|0,k=k+Math.imul(m,l0)|0;var AQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,R=Math.imul(z0,Z0),T=Math.imul(z0,K0),T=T+Math.imul(O0,Z0)|0,k=Math.imul(O0,K0),R=R+Math.imul(H0,P0)|0,T=T+Math.imul(H0,A0)|0,T=T+Math.imul(F0,P0)|0,k=k+Math.imul(F0,A0)|0,R=R+Math.imul(a,v0)|0,T=T+Math.imul(a,_0)|0,T=T+Math.imul(J0,v0)|0,k=k+Math.imul(J0,_0)|0,R=R+Math.imul(V0,N0)|0,T=T+Math.imul(V0,j0)|0,T=T+Math.imul(W0,N0)|0,k=k+Math.imul(W0,j0)|0,R=R+Math.imul(o,m0)|0,T=T+Math.imul(o,l0)|0,T=T+Math.imul(Y0,m0)|0,k=k+Math.imul(Y0,l0)|0;var RQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,R=Math.imul(z0,P0),T=Math.imul(z0,A0),T=T+Math.imul(O0,P0)|0,k=Math.imul(O0,A0),R=R+Math.imul(H0,v0)|0,T=T+Math.imul(H0,_0)|0,T=T+Math.imul(F0,v0)|0,k=k+Math.imul(F0,_0)|0,R=R+Math.imul(a,N0)|0,T=T+Math.imul(a,j0)|0,T=T+Math.imul(J0,N0)|0,k=k+Math.imul(J0,j0)|0,R=R+Math.imul(V0,m0)|0,T=T+Math.imul(V0,l0)|0,T=T+Math.imul(W0,m0)|0,k=k+Math.imul(W0,l0)|0;var EQ=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,R=Math.imul(z0,v0),T=Math.imul(z0,_0),T=T+Math.imul(O0,v0)|0,k=Math.imul(O0,_0),R=R+Math.imul(H0,N0)|0,T=T+Math.imul(H0,j0)|0,T=T+Math.imul(F0,N0)|0,k=k+Math.imul(F0,j0)|0,R=R+Math.imul(a,m0)|0,T=T+Math.imul(a,l0)|0,T=T+Math.imul(J0,m0)|0,k=k+Math.imul(J0,l0)|0;var gV=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(gV>>>26)|0,gV&=67108863,R=Math.imul(z0,N0),T=Math.imul(z0,j0),T=T+Math.imul(O0,N0)|0,k=Math.imul(O0,j0),R=R+Math.imul(H0,m0)|0,T=T+Math.imul(H0,l0)|0,T=T+Math.imul(F0,m0)|0,k=k+Math.imul(F0,l0)|0;var yV=(q+R|0)+((T&8191)<<13)|0;q=(k+(T>>>13)|0)+(yV>>>26)|0,yV&=67108863,R=Math.imul(z0,m0),T=Math.imul(z0,l0),T=T+Math.imul(O0,m0)|0,k=Math.imul(O0,l0);var fV=(q+R|0)+((T&8191)<<13)|0;if(q=(k+(T>>>13)|0)+(fV>>>26)|0,fV&=67108863,V[0]=e0,V[1]=i0,V[2]=FQ,V[3]=qQ,V[4]=zQ,V[5]=OQ,V[6]=CQ,V[7]=LQ,V[8]=MQ,V[9]=IQ,V[10]=DQ,V[11]=PQ,V[12]=TQ,V[13]=AQ,V[14]=RQ,V[15]=EQ,V[16]=gV,V[17]=yV,V[18]=fV,q!==0)V[19]=q,O.length++;return O};if(!Math.imul)x=v;function w(Z,K,O){O.negative=K.negative^Z.negative,O.length=Z.length+K.length;var I=0,z=0;for(var V=0;V<O.length-1;V++){var q=z;z=0;var R=I&67108863,T=Math.min(V,K.length-1);for(var k=Math.max(0,V-Z.length+1);k<=T;k++){var g=V-k,b=Z.words[g]|0,t=K.words[k]|0,G0=b*t,p=G0&67108863;q=q+(G0/67108864|0)|0,p=p+R|0,R=p&67108863,q=q+(p>>>26)|0,z+=q>>>26,q&=67108863}O.words[V]=R,I=q,q=z}if(I!==0)O.words[V]=I;else O.length--;return O._strip()}function y(Z,K,O){return w(Z,K,O)}U.prototype.mulTo=function(Z,K){var O,I=this.length+Z.length;if(this.length===10&&Z.length===10)O=x(this,Z,K);else if(I<63)O=v(this,Z,K);else if(I<1024)O=w(this,Z,K);else O=y(this,Z,K);return O};function n(Z,K){this.x=Z,this.y=K}n.prototype.makeRBT=function(Z){var K=Array(Z),O=U.prototype._countBits(Z)-1;for(var I=0;I<Z;I++)K[I]=this.revBin(I,O,Z);return K},n.prototype.revBin=function(Z,K,O){if(Z===0||Z===O-1)return Z;var I=0;for(var z=0;z<K;z++)I|=(Z&1)<<K-z-1,Z>>=1;return I},n.prototype.permute=function(Z,K,O,I,z,V){for(var q=0;q<V;q++)I[q]=K[Z[q]],z[q]=O[Z[q]]},n.prototype.transform=function(Z,K,O,I,z,V){this.permute(V,Z,K,O,I,z);for(var q=1;q<z;q<<=1){var R=q<<1,T=Math.cos(2*Math.PI/R),k=Math.sin(2*Math.PI/R);for(var g=0;g<z;g+=R){var b=T,t=k;for(var G0=0;G0<q;G0++){var p=O[g+G0],_=I[g+G0],d=O[g+G0+q],h=I[g+G0+q],e=b*d-t*h;if(h=b*h+t*d,d=e,O[g+G0]=p+d,I[g+G0]=_+h,O[g+G0+q]=p-d,I[g+G0+q]=_-h,G0!==R)e=T*b-k*t,t=T*t+k*b,b=e}}}},n.prototype.guessLen13b=function(Z,K){var O=Math.max(K,Z)|1,I=O&1,z=0;for(O=O/2|0;O;O=O>>>1)z++;return 1<<z+1+I},n.prototype.conjugate=function(Z,K,O){if(O<=1)return;for(var I=0;I<O/2;I++){var z=Z[I];Z[I]=Z[O-I-1],Z[O-I-1]=z,z=K[I],K[I]=-K[O-I-1],K[O-I-1]=-z}},n.prototype.normalize13b=function(Z,K){var O=0;for(var I=0;I<K/2;I++){var z=Math.round(Z[2*I+1]/K)*8192+Math.round(Z[2*I]/K)+O;if(Z[I]=z&67108863,z<67108864)O=0;else O=z/67108864|0}return Z},n.prototype.convert13b=function(Z,K,O,I){var z=0;for(var V=0;V<K;V++)z=z+(Z[V]|0),O[2*V]=z&8191,z=z>>>13,O[2*V+1]=z&8191,z=z>>>13;for(V=2*K;V<I;++V)O[V]=0;W(z===0),W((z&-8192)===0)},n.prototype.stub=function(Z){var K=Array(Z);for(var O=0;O<Z;O++)K[O]=0;return K},n.prototype.mulp=function(Z,K,O){var I=2*this.guessLen13b(Z.length,K.length),z=this.makeRBT(I),V=this.stub(I),q=Array(I),R=Array(I),T=Array(I),k=Array(I),g=Array(I),b=Array(I),t=O.words;t.length=I,this.convert13b(Z.words,Z.length,q,I),this.convert13b(K.words,K.length,k,I),this.transform(q,V,R,T,I,z),this.transform(k,V,g,b,I,z);for(var G0=0;G0<I;G0++){var p=R[G0]*g[G0]-T[G0]*b[G0];T[G0]=R[G0]*b[G0]+T[G0]*g[G0],R[G0]=p}return this.conjugate(R,T,I),this.transform(R,T,t,V,I,z),this.conjugate(t,V,I),this.normalize13b(t,I),O.negative=Z.negative^K.negative,O.length=Z.length+K.length,O._strip()},U.prototype.mul=function(Z){var K=new U(null);return K.words=Array(this.length+Z.length),this.mulTo(Z,K)},U.prototype.mulf=function(Z){var K=new U(null);return K.words=Array(this.length+Z.length),y(this,Z,K)},U.prototype.imul=function(Z){return this.clone().mulTo(Z,this)},U.prototype.imuln=function(Z){var K=Z<0;if(K)Z=-Z;W(typeof Z==="number"),W(Z<67108864);var O=0;for(var I=0;I<this.length;I++){var z=(this.words[I]|0)*Z,V=(z&67108863)+(O&67108863);O>>=26,O+=z/67108864|0,O+=V>>>26,this.words[I]=V&67108863}if(O!==0)this.words[I]=O,this.length++;return this.length=Z===0?1:this.length,K?this.ineg():this},U.prototype.muln=function(Z){return this.clone().imuln(Z)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(Z){var K=N(Z);if(K.length===0)return new U(1);var O=this;for(var I=0;I<K.length;I++,O=O.sqr())if(K[I]!==0)break;if(++I<K.length)for(var z=O.sqr();I<K.length;I++,z=z.sqr()){if(K[I]===0)continue;O=O.mul(z)}return O},U.prototype.iushln=function(Z){W(typeof Z==="number"&&Z>=0);var K=Z%26,O=(Z-K)/26,I=67108863>>>26-K<<26-K,z;if(K!==0){var V=0;for(z=0;z<this.length;z++){var q=this.words[z]&I,R=(this.words[z]|0)-q<<K;this.words[z]=R|V,V=q>>>26-K}if(V)this.words[z]=V,this.length++}if(O!==0){for(z=this.length-1;z>=0;z--)this.words[z+O]=this.words[z];for(z=0;z<O;z++)this.words[z]=0;this.length+=O}return this._strip()},U.prototype.ishln=function(Z){return W(this.negative===0),this.iushln(Z)},U.prototype.iushrn=function(Z,K,O){W(typeof Z==="number"&&Z>=0);var I;if(K)I=(K-K%26)/26;else I=0;var z=Z%26,V=Math.min((Z-z)/26,this.length),q=67108863^67108863>>>z<<z,R=O;if(I-=V,I=Math.max(0,I),R){for(var T=0;T<V;T++)R.words[T]=this.words[T];R.length=V}if(V===0);else if(this.length>V){this.length-=V;for(T=0;T<this.length;T++)this.words[T]=this.words[T+V]}else this.words[0]=0,this.length=1;var k=0;for(T=this.length-1;T>=0&&(k!==0||T>=I);T--){var g=this.words[T]|0;this.words[T]=k<<26-z|g>>>z,k=g&q}if(R&&k!==0)R.words[R.length++]=k;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},U.prototype.ishrn=function(Z,K,O){return W(this.negative===0),this.iushrn(Z,K,O)},U.prototype.shln=function(Z){return this.clone().ishln(Z)},U.prototype.ushln=function(Z){return this.clone().iushln(Z)},U.prototype.shrn=function(Z){return this.clone().ishrn(Z)},U.prototype.ushrn=function(Z){return this.clone().iushrn(Z)},U.prototype.testn=function(Z){W(typeof Z==="number"&&Z>=0);var K=Z%26,O=(Z-K)/26,I=1<<K;if(this.length<=O)return!1;var z=this.words[O];return!!(z&I)},U.prototype.imaskn=function(Z){W(typeof Z==="number"&&Z>=0);var K=Z%26,O=(Z-K)/26;if(W(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(K!==0)O++;if(this.length=Math.min(O,this.length),K!==0){var I=67108863^67108863>>>K<<K;this.words[this.length-1]&=I}return this._strip()},U.prototype.maskn=function(Z){return this.clone().imaskn(Z)},U.prototype.iaddn=function(Z){if(W(typeof Z==="number"),W(Z<67108864),Z<0)return this.isubn(-Z);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=Z)return this.words[0]=Z-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Z),this.negative=1,this}return this._iaddn(Z)},U.prototype._iaddn=function(Z){this.words[0]+=Z;for(var K=0;K<this.length&&this.words[K]>=67108864;K++)if(this.words[K]-=67108864,K===this.length-1)this.words[K+1]=1;else this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},U.prototype.isubn=function(Z){if(W(typeof Z==="number"),W(Z<67108864),Z<0)return this.iaddn(-Z);if(this.negative!==0)return this.negative=0,this.iaddn(Z),this.negative=1,this;if(this.words[0]-=Z,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K<this.length&&this.words[K]<0;K++)this.words[K]+=67108864,this.words[K+1]-=1;return this._strip()},U.prototype.addn=function(Z){return this.clone().iaddn(Z)},U.prototype.subn=function(Z){return this.clone().isubn(Z)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(Z,K,O){var I=Z.length+O,z;this._expand(I);var V,q=0;for(z=0;z<Z.length;z++){V=(this.words[z+O]|0)+q;var R=(Z.words[z]|0)*K;V-=R&67108863,q=(V>>26)-(R/67108864|0),this.words[z+O]=V&67108863}for(;z<this.length-O;z++)V=(this.words[z+O]|0)+q,q=V>>26,this.words[z+O]=V&67108863;if(q===0)return this._strip();W(q===-1),q=0;for(z=0;z<this.length;z++)V=-(this.words[z]|0)+q,q=V>>26,this.words[z]=V&67108863;return this.negative=1,this._strip()},U.prototype._wordDiv=function(Z,K){var O=this.length-Z.length,I=this.clone(),z=Z,V=z.words[z.length-1]|0,q=this._countBits(V);if(O=26-q,O!==0)z=z.ushln(O),I.iushln(O),V=z.words[z.length-1]|0;var R=I.length-z.length,T;if(K!=="mod"){T=new U(null),T.length=R+1,T.words=Array(T.length);for(var k=0;k<T.length;k++)T.words[k]=0}var g=I.clone()._ishlnsubmul(z,1,R);if(g.negative===0){if(I=g,T)T.words[R]=1}for(var b=R-1;b>=0;b--){var t=(I.words[z.length+b]|0)*67108864+(I.words[z.length+b-1]|0);t=Math.min(t/V|0,67108863),I._ishlnsubmul(z,t,b);while(I.negative!==0)if(t--,I.negative=0,I._ishlnsubmul(z,1,b),!I.isZero())I.negative^=1;if(T)T.words[b]=t}if(T)T._strip();if(I._strip(),K!=="div"&&O!==0)I.iushrn(O);return{div:T||null,mod:I}},U.prototype.divmod=function(Z,K,O){if(W(!Z.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var I,z,V;if(this.negative!==0&&Z.negative===0){if(V=this.neg().divmod(Z,K),K!=="mod")I=V.div.neg();if(K!=="div"){if(z=V.mod.neg(),O&&z.negative!==0)z.iadd(Z)}return{div:I,mod:z}}if(this.negative===0&&Z.negative!==0){if(V=this.divmod(Z.neg(),K),K!=="mod")I=V.div.neg();return{div:I,mod:V.mod}}if((this.negative&Z.negative)!==0){if(V=this.neg().divmod(Z.neg(),K),K!=="div"){if(z=V.mod.neg(),O&&z.negative!==0)z.isub(Z)}return{div:V.div,mod:z}}if(Z.length>this.length||this.cmp(Z)<0)return{div:new U(0),mod:this};if(Z.length===1){if(K==="div")return{div:this.divn(Z.words[0]),mod:null};if(K==="mod")return{div:null,mod:new U(this.modrn(Z.words[0]))};return{div:this.divn(Z.words[0]),mod:new U(this.modrn(Z.words[0]))}}return this._wordDiv(Z,K)},U.prototype.div=function(Z){return this.divmod(Z,"div",!1).div},U.prototype.mod=function(Z){return this.divmod(Z,"mod",!1).mod},U.prototype.umod=function(Z){return this.divmod(Z,"mod",!0).mod},U.prototype.divRound=function(Z){var K=this.divmod(Z);if(K.mod.isZero())return K.div;var O=K.div.negative!==0?K.mod.isub(Z):K.mod,I=Z.ushrn(1),z=Z.andln(1),V=O.cmp(I);if(V<0||z===1&&V===0)return K.div;return K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},U.prototype.modrn=function(Z){var K=Z<0;if(K)Z=-Z;W(Z<=67108863);var O=67108864%Z,I=0;for(var z=this.length-1;z>=0;z--)I=(O*I+(this.words[z]|0))%Z;return K?-I:I},U.prototype.modn=function(Z){return this.modrn(Z)},U.prototype.idivn=function(Z){var K=Z<0;if(K)Z=-Z;W(Z<=67108863);var O=0;for(var I=this.length-1;I>=0;I--){var z=(this.words[I]|0)+O*67108864;this.words[I]=z/Z|0,O=z%Z}return this._strip(),K?this.ineg():this},U.prototype.divn=function(Z){return this.clone().idivn(Z)},U.prototype.egcd=function(Z){W(Z.negative===0),W(!Z.isZero());var K=this,O=Z.clone();if(K.negative!==0)K=K.umod(Z);else K=K.clone();var I=new U(1),z=new U(0),V=new U(0),q=new U(1),R=0;while(K.isEven()&&O.isEven())K.iushrn(1),O.iushrn(1),++R;var T=O.clone(),k=K.clone();while(!K.isZero()){for(var g=0,b=1;(K.words[0]&b)===0&&g<26;++g,b<<=1);if(g>0){K.iushrn(g);while(g-- >0){if(I.isOdd()||z.isOdd())I.iadd(T),z.isub(k);I.iushrn(1),z.iushrn(1)}}for(var t=0,G0=1;(O.words[0]&G0)===0&&t<26;++t,G0<<=1);if(t>0){O.iushrn(t);while(t-- >0){if(V.isOdd()||q.isOdd())V.iadd(T),q.isub(k);V.iushrn(1),q.iushrn(1)}}if(K.cmp(O)>=0)K.isub(O),I.isub(V),z.isub(q);else O.isub(K),V.isub(I),q.isub(z)}return{a:V,b:q,gcd:O.iushln(R)}},U.prototype._invmp=function(Z){W(Z.negative===0),W(!Z.isZero());var K=this,O=Z.clone();if(K.negative!==0)K=K.umod(Z);else K=K.clone();var I=new U(1),z=new U(0),V=O.clone();while(K.cmpn(1)>0&&O.cmpn(1)>0){for(var q=0,R=1;(K.words[0]&R)===0&&q<26;++q,R<<=1);if(q>0){K.iushrn(q);while(q-- >0){if(I.isOdd())I.iadd(V);I.iushrn(1)}}for(var T=0,k=1;(O.words[0]&k)===0&&T<26;++T,k<<=1);if(T>0){O.iushrn(T);while(T-- >0){if(z.isOdd())z.iadd(V);z.iushrn(1)}}if(K.cmp(O)>=0)K.isub(O),I.isub(z);else O.isub(K),z.isub(I)}var g;if(K.cmpn(1)===0)g=I;else g=z;if(g.cmpn(0)<0)g.iadd(Z);return g},U.prototype.gcd=function(Z){if(this.isZero())return Z.abs();if(Z.isZero())return this.abs();var K=this.clone(),O=Z.clone();K.negative=0,O.negative=0;for(var I=0;K.isEven()&&O.isEven();I++)K.iushrn(1),O.iushrn(1);do{while(K.isEven())K.iushrn(1);while(O.isEven())O.iushrn(1);var z=K.cmp(O);if(z<0){var V=K;K=O,O=V}else if(z===0||O.cmpn(1)===0)break;K.isub(O)}while(!0);return O.iushln(I)},U.prototype.invm=function(Z){return this.egcd(Z).a.umod(Z)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(Z){return this.words[0]&Z},U.prototype.bincn=function(Z){W(typeof Z==="number");var K=Z%26,O=(Z-K)/26,I=1<<K;if(this.length<=O)return this._expand(O+1),this.words[O]|=I,this;var z=I;for(var V=O;z!==0&&V<this.length;V++){var q=this.words[V]|0;q+=z,z=q>>>26,q&=67108863,this.words[V]=q}if(z!==0)this.words[V]=z,this.length++;return this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(Z){var K=Z<0;if(this.negative!==0&&!K)return-1;if(this.negative===0&&K)return 1;this._strip();var O;if(this.length>1)O=1;else{if(K)Z=-Z;W(Z<=67108863,"Number is too big");var I=this.words[0]|0;O=I===Z?0:I<Z?-1:1}if(this.negative!==0)return-O|0;return O},U.prototype.cmp=function(Z){if(this.negative!==0&&Z.negative===0)return-1;if(this.negative===0&&Z.negative!==0)return 1;var K=this.ucmp(Z);if(this.negative!==0)return-K|0;return K},U.prototype.ucmp=function(Z){if(this.length>Z.length)return 1;if(this.length<Z.length)return-1;var K=0;for(var O=this.length-1;O>=0;O--){var I=this.words[O]|0,z=Z.words[O]|0;if(I===z)continue;if(I<z)K=-1;else if(I>z)K=1;break}return K},U.prototype.gtn=function(Z){return this.cmpn(Z)===1},U.prototype.gt=function(Z){return this.cmp(Z)===1},U.prototype.gten=function(Z){return this.cmpn(Z)>=0},U.prototype.gte=function(Z){return this.cmp(Z)>=0},U.prototype.ltn=function(Z){return this.cmpn(Z)===-1},U.prototype.lt=function(Z){return this.cmp(Z)===-1},U.prototype.lten=function(Z){return this.cmpn(Z)<=0},U.prototype.lte=function(Z){return this.cmp(Z)<=0},U.prototype.eqn=function(Z){return this.cmpn(Z)===0},U.prototype.eq=function(Z){return this.cmp(Z)===0},U.red=function(Z){return new G(Z)},U.prototype.toRed=function(Z){return W(!this.red,"Already a number in reduction context"),W(this.negative===0,"red works only with positives"),Z.convertTo(this)._forceRed(Z)},U.prototype.fromRed=function(){return W(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(Z){return this.red=Z,this},U.prototype.forceRed=function(Z){return W(!this.red,"Already a number in reduction context"),this._forceRed(Z)},U.prototype.redAdd=function(Z){return W(this.red,"redAdd works only with red numbers"),this.red.add(this,Z)},U.prototype.redIAdd=function(Z){return W(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Z)},U.prototype.redSub=function(Z){return W(this.red,"redSub works only with red numbers"),this.red.sub(this,Z)},U.prototype.redISub=function(Z){return W(this.red,"redISub works only with red numbers"),this.red.isub(this,Z)},U.prototype.redShl=function(Z){return W(this.red,"redShl works only with red numbers"),this.red.shl(this,Z)},U.prototype.redMul=function(Z){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.mul(this,Z)},U.prototype.redIMul=function(Z){return W(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.imul(this,Z)},U.prototype.redSqr=function(){return W(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return W(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return W(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return W(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return W(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(Z){return W(this.red&&!Z.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Z)};var r={k256:null,p224:null,p192:null,p25519:null};function s(Z,K){this.name=Z,this.p=new U(K,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}s.prototype._tmp=function(){var Z=new U(null);return Z.words=Array(Math.ceil(this.n/13)),Z},s.prototype.ireduce=function(Z){var K=Z,O;do this.split(K,this.tmp),K=this.imulK(K),K=K.iadd(this.tmp),O=K.bitLength();while(O>this.n);var I=O<this.n?-1:K.ucmp(this.p);if(I===0)K.words[0]=0,K.length=1;else if(I>0)K.isub(this.p);else if(K.strip!==void 0)K.strip();else K._strip();return K},s.prototype.split=function(Z,K){Z.iushrn(this.n,0,K)},s.prototype.imulK=function(Z){return Z.imul(this.k)};function i(){s.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}H(i,s),i.prototype.split=function(Z,K){var O=4194303,I=Math.min(Z.length,9);for(var z=0;z<I;z++)K.words[z]=Z.words[z];if(K.length=I,Z.length<=9){Z.words[0]=0,Z.length=1;return}var V=Z.words[9];K.words[K.length++]=V&O;for(z=10;z<Z.length;z++){var q=Z.words[z]|0;Z.words[z-10]=(q&O)<<4|V>>>22,V=q}if(V>>>=22,Z.words[z-10]=V,V===0&&Z.length>10)Z.length-=10;else Z.length-=9},i.prototype.imulK=function(Z){Z.words[Z.length]=0,Z.words[Z.length+1]=0,Z.length+=2;var K=0;for(var O=0;O<Z.length;O++){var I=Z.words[O]|0;K+=I*977,Z.words[O]=K&67108863,K=I*64+(K/67108864|0)}if(Z.words[Z.length-1]===0){if(Z.length--,Z.words[Z.length-1]===0)Z.length--}return Z};function u(){s.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}H(u,s);function Q0(){s.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}H(Q0,s);function Y(){s.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}H(Y,s),Y.prototype.imulK=function(Z){var K=0;for(var O=0;O<Z.length;O++){var I=(Z.words[O]|0)*19+K,z=I&67108863;I>>>=26,Z.words[O]=z,K=I}if(K!==0)Z.words[Z.length++]=K;return Z},U._prime=function(Z){if(r[Z])return r[Z];var K;if(Z==="k256")K=new i;else if(Z==="p224")K=new u;else if(Z==="p192")K=new Q0;else if(Z==="p25519")K=new Y;else throw Error("Unknown prime "+Z);return r[Z]=K,K};function G(Z){if(typeof Z==="string"){var K=U._prime(Z);this.m=K.p,this.prime=K}else W(Z.gtn(1),"modulus must be greater than 1"),this.m=Z,this.prime=null}G.prototype._verify1=function(Z){W(Z.negative===0,"red works only with positives"),W(Z.red,"red works only with red numbers")},G.prototype._verify2=function(Z,K){W((Z.negative|K.negative)===0,"red works only with positives"),W(Z.red&&Z.red===K.red,"red works only with red numbers")},G.prototype.imod=function(Z){if(this.prime)return this.prime.ireduce(Z)._forceRed(this);return L(Z,Z.umod(this.m)._forceRed(this)),Z},G.prototype.neg=function(Z){if(Z.isZero())return Z.clone();return this.m.sub(Z)._forceRed(this)},G.prototype.add=function(Z,K){this._verify2(Z,K);var O=Z.add(K);if(O.cmp(this.m)>=0)O.isub(this.m);return O._forceRed(this)},G.prototype.iadd=function(Z,K){this._verify2(Z,K);var O=Z.iadd(K);if(O.cmp(this.m)>=0)O.isub(this.m);return O},G.prototype.sub=function(Z,K){this._verify2(Z,K);var O=Z.sub(K);if(O.cmpn(0)<0)O.iadd(this.m);return O._forceRed(this)},G.prototype.isub=function(Z,K){this._verify2(Z,K);var O=Z.isub(K);if(O.cmpn(0)<0)O.iadd(this.m);return O},G.prototype.shl=function(Z,K){return this._verify1(Z),this.imod(Z.ushln(K))},G.prototype.imul=function(Z,K){return this._verify2(Z,K),this.imod(Z.imul(K))},G.prototype.mul=function(Z,K){return this._verify2(Z,K),this.imod(Z.mul(K))},G.prototype.isqr=function(Z){return this.imul(Z,Z.clone())},G.prototype.sqr=function(Z){return this.mul(Z,Z)},G.prototype.sqrt=function(Z){if(Z.isZero())return Z.clone();var K=this.m.andln(3);if(W(K%2===1),K===3){var O=this.m.add(new U(1)).iushrn(2);return this.pow(Z,O)}var I=this.m.subn(1),z=0;while(!I.isZero()&&I.andln(1)===0)z++,I.iushrn(1);W(!I.isZero());var V=new U(1).toRed(this),q=V.redNeg(),R=this.m.subn(1).iushrn(1),T=this.m.bitLength();T=new U(2*T*T).toRed(this);while(this.pow(T,R).cmp(q)!==0)T.redIAdd(q);var k=this.pow(T,I),g=this.pow(Z,I.addn(1).iushrn(1)),b=this.pow(Z,I),t=z;while(b.cmp(V)!==0){var G0=b;for(var p=0;G0.cmp(V)!==0;p++)G0=G0.redSqr();W(p<t);var _=this.pow(k,new U(1).iushln(t-p-1));g=g.redMul(_),k=_.redSqr(),b=b.redMul(k),t=p}return g},G.prototype.invm=function(Z){var K=Z._invmp(this.m);if(K.negative!==0)return K.negative=0,this.imod(K).redNeg();else return this.imod(K)},G.prototype.pow=function(Z,K){if(K.isZero())return new U(1).toRed(this);if(K.cmpn(1)===0)return Z.clone();var O=4,I=Array(1<<O);I[0]=new U(1).toRed(this),I[1]=Z;for(var z=2;z<I.length;z++)I[z]=this.mul(I[z-1],Z);var V=I[0],q=0,R=0,T=K.bitLength()%26;if(T===0)T=26;for(z=K.length-1;z>=0;z--){var k=K.words[z];for(var g=T-1;g>=0;g--){var b=k>>g&1;if(V!==I[0])V=this.sqr(V);if(b===0&&q===0){R=0;continue}if(q<<=1,q|=b,R++,R!==O&&(z!==0||g!==0))continue;V=this.mul(V,I[q]),R=0,q=0}T=26}return V},G.prototype.convertTo=function(Z){var K=Z.umod(this.m);return K===Z?K.clone():K},G.prototype.convertFrom=function(Z){var K=Z.clone();return K.red=null,K},U.mont=function(Z){return new F(Z)};function F(Z){if(G.call(this,Z),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new U(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)}H(F,G),F.prototype.convertTo=function(Z){return this.imod(Z.ushln(this.shift))},F.prototype.convertFrom=function(Z){var K=this.imod(Z.mul(this.rinv));return K.red=null,K},F.prototype.imul=function(Z,K){if(Z.isZero()||K.isZero())return Z.words[0]=0,Z.length=1,Z;var O=Z.imul(K),I=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),z=O.isub(I).iushrn(this.shift),V=z;if(z.cmp(this.m)>=0)V=z.isub(this.m);else if(z.cmpn(0)<0)V=z.iadd(this.m);return V._forceRed(this)},F.prototype.mul=function(Z,K){if(Z.isZero()||K.isZero())return new U(0)._forceRed(this);var O=Z.mul(K),I=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),z=O.isub(I).iushrn(this.shift),V=z;if(z.cmp(this.m)>=0)V=z.isub(this.m);else if(z.cmpn(0)<0)V=z.iadd(this.m);return V._forceRed(this)},F.prototype.invm=function(Z){var K=this.imod(Z._invmp(this.m).mul(this.r2));return K._forceRed(this)}})(typeof J>"u"||J,Q)}),uG=C0((Q,J)=>{var X=y2(),$=CY(),W=hQ().Buffer;function H(A){var M=A.modulus.byteLength(),D;do D=new X($(M));while(D.cmp(A.modulus)>=0||!D.umod(A.prime1)||!D.umod(A.prime2));return D}function U(A){var M=H(A),D=M.toRed(X.mont(A.modulus)).redPow(new X(A.publicExponent)).fromRed();return{blinder:D,unblinder:M.invm(A.modulus)}}function C(A,M){var D=U(M),L=M.modulus.byteLength(),P=new X(A).mul(D.blinder).umod(M.modulus),E=P.toRed(X.mont(M.prime1)),S=P.toRed(X.mont(M.prime2)),B=M.coefficient,j=M.prime1,N=M.prime2,v=E.redPow(M.exponent1).fromRed(),x=S.redPow(M.exponent2).fromRed(),w=v.isub(x).imul(B).umod(j).imul(N);return x.iadd(w).imul(D.unblinder).umod(M.modulus).toArrayLike(W,"be",L)}C.getr=H,J.exports=C}),f2=C0((Q,J)=>{var X=cG(),$=CY(),W=LY(),H=pG(),U=hG(),C=I$(),A=bG(),M=uG(),D=hQ().Buffer;J.exports=function(S,B,j){var N;if(S.padding)N=S.padding;else if(j)N=1;else N=4;var v=X(S),x;if(N===4)x=L(v,B);else if(N===1)x=P(v,B,j);else if(N===3){if(x=new C(B),x.cmp(v.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(j)return M(x,v);else return A(x,v)};function L(S,B){var j=S.modulus.byteLength(),N=B.length,v=W("sha1").update(D.alloc(0)).digest(),x=v.length,w=2*x;if(N>j-w-2)throw Error("message too long");var y=D.alloc(j-N-w-2),n=j-x-1,r=$(x),s=U(D.concat([v,y,D.alloc(1,1),B],n),H(r,n)),i=U(r,H(s,x));return new C(D.concat([D.alloc(1),i,s],j))}function P(S,B,j){var N=B.length,v=S.modulus.byteLength();if(N>v-11)throw Error("message too long");var x;if(j)x=D.alloc(v-N-3,255);else x=E(v-N-3);return new C(D.concat([D.from([0,j?1:2]),x,D.alloc(1),B],v))}function E(S){var B=D.allocUnsafe(S),j=0,N=$(S*2),v=0,x;while(j<S){if(v===N.length)N=$(S*2),v=0;if(x=N[v++],x)B[j++]=x}return B}}),c2=C0((Q,J)=>{var X=cG(),$=pG(),W=hG(),H=I$(),U=uG(),C=LY(),A=bG(),M=hQ().Buffer;J.exports=function(E,S,B){var j;if(E.padding)j=E.padding;else if(B)j=1;else j=4;var N=X(E),v=N.modulus.byteLength();if(S.length>v||new H(S).cmp(N.modulus)>=0)throw Error("decryption error");var x;if(B)x=A(new H(S),N);else x=U(S,N);var w=M.alloc(v-x.length);if(x=M.concat([w,x],v),j===4)return D(N,x);else if(j===1)return L(N,x,B);else if(j===3)return x;else throw Error("unknown padding")};function D(E,S){var B=E.modulus.byteLength(),j=C("sha1").update(M.alloc(0)).digest(),N=j.length;if(S[0]!==0)throw Error("decryption error");var v=S.slice(1,N+1),x=S.slice(N+1),w=W(v,$(x,N)),y=W(x,$(w,B-N-1));if(P(j,y.slice(0,N)))throw Error("decryption error");var n=N;while(y[n]===0)n++;if(y[n++]!==1)throw Error("decryption error");return y.slice(n)}function L(E,S,B){var j=S.slice(0,2),N=2,v=0;while(S[N++]!==0)if(N>=S.length){v++;break}var x=S.slice(2,N-1);if(j.toString("hex")!=="0002"&&!B||j.toString("hex")!=="0001"&&B)v++;if(x.length<8)v++;if(v)throw Error("decryption error");return S.slice(N)}function P(E,S){E=M.from(E),S=M.from(S);var B=0,j=E.length;if(E.length!==S.length)B++,j=Math.min(E.length,S.length);var N=-1;while(++N<j)B+=E[N]^S[N];return B}}),K$=C0((Q)=>{Q.publicEncrypt=f2(),Q.privateDecrypt=c2(),Q.privateEncrypt=function(J,X){return Q.publicEncrypt(J,X,!0)},Q.publicDecrypt=function(J,X){return Q.privateDecrypt(J,X,!0)}}),p2=C0((Q)=>{var J=(XQ(),u0($Q));if(typeof J.publicEncrypt!=="function")J=K$();if(Q.publicEncrypt=J.publicEncrypt,Q.privateDecrypt=J.privateDecrypt,typeof J.privateEncrypt!=="function")Q.privateEncrypt=K$().privateEncrypt;else Q.privateEncrypt=J.privateEncrypt;if(typeof J.publicDecrypt!=="function")Q.publicDecrypt=K$().publicDecrypt;else Q.publicDecrypt=J.publicDecrypt}),h2=C0((Q)=>{var J=hQ(),X=CY(),$=J.Buffer,W=J.kMaxLength,H=globalThis.crypto||globalThis.msCrypto,U=Math.pow(2,32)-1;function C(P,E){if(typeof P!=="number"||P!==P)throw TypeError("offset must be a number");if(P>U||P<0)throw TypeError("offset must be a uint32");if(P>W||P>E)throw RangeError("offset out of range")}function A(P,E,S){if(typeof P!=="number"||P!==P)throw TypeError("size must be a number");if(P>U||P<0)throw TypeError("size must be a uint32");if(P+E>S||P>W)throw RangeError("buffer too small")}H&&H.getRandomValues,Q.randomFill=M,Q.randomFillSync=L;function M(P,E,S,B){if(!$.isBuffer(P)&&!(P instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof E==="function")B=E,E=0,S=P.length;else if(typeof S==="function")B=S,S=P.length-E;else if(typeof B!=="function")throw TypeError('"cb" argument must be a function');return C(E,P.length),A(S,E,P.length),D(P,E,S,B)}function D(P,E,S,B){if(!1)var j,N;if(B){X(S,function(x,w){if(x)return B(x);w.copy(P,E),B(null,P)});return}var v=X(S);return v.copy(P,E),P}function L(P,E,S){if(typeof E>"u")E=0;if(!$.isBuffer(P)&&!(P instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(C(E,P.length),S===void 0)S=P.length-E;return A(S,E,P.length),D(P,E,S)}}),b2=C0((Q,J)=>{var X=(XQ(),u0($Q));if(typeof X.randomFill==="function"&&typeof X.randomFillSync==="function")Q.randomFill=X.randomFill,Q.randomFillSync=X.randomFillSync;else J.exports=h2()}),u2=C0((Q)=>{Q.randomBytes=Q.rng=Q.pseudoRandomBytes=Q.prng=CY(),Q.createHash=Q.Hash=LY(),Q.createHmac=Q.Hmac=CG();var J=FF(),X=Object.keys(J),$=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(X);Q.getHashes=function(){return $};var W=jG();Q.pbkdf2=W.pbkdf2,Q.pbkdf2Sync=W.pbkdf2Sync;var H=rF();Q.Cipher=H.Cipher,Q.createCipher=H.createCipher,Q.Cipheriv=H.Cipheriv,Q.createCipheriv=H.createCipheriv,Q.Decipher=H.Decipher,Q.createDecipher=H.createDecipher,Q.Decipheriv=H.Decipheriv,Q.createDecipheriv=H.createDecipheriv,Q.getCiphers=H.getCiphers,Q.listCiphers=H.listCiphers;var U=sF();Q.DiffieHellmanGroup=U.DiffieHellmanGroup,Q.createDiffieHellmanGroup=U.createDiffieHellmanGroup,Q.getDiffieHellman=U.getDiffieHellman,Q.createDiffieHellman=U.createDiffieHellman,Q.DiffieHellman=U.DiffieHellman;var C=aF();Q.createSign=C.createSign,Q.Sign=C.Sign,Q.createVerify=C.createVerify,Q.Verify=C.Verify,Q.createECDH=I2();var A=p2();Q.publicEncrypt=A.publicEncrypt,Q.privateEncrypt=A.privateEncrypt,Q.publicDecrypt=A.publicDecrypt,Q.privateDecrypt=A.privateDecrypt;var M=b2();Q.randomFill=M.randomFill,Q.randomFillSync=M.randomFillSync,Q.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
15
- we accept pull requests
16
- https://github.com/browserify/crypto-browserify`)},Q.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}}),o0=HF(u2(),1),d2=o0.prng,l2=o0.pseudoRandomBytes,m2=o0.rng,o2=o0.randomBytes,n2=o0.Hash,DY=o0.createHash,r2=o0.Hmac,s2=o0.createHmac,a2=o0.getHashes,i2=o0.pbkdf2,t2=o0.pbkdf2Sync,e2=o0.Cipher,Q5=o0.createCipher,J5=o0.Cipheriv,X5=o0.createCipheriv,Y5=o0.Decipher,V5=o0.createDecipher,$5=o0.Decipheriv,U5=o0.createDecipheriv,Z5=o0.getCiphers,G5=o0.listCiphers,W5=o0.DiffieHellmanGroup,K5=o0.createDiffieHellmanGroup,H5=o0.getDiffieHellman,F5=o0.createDiffieHellman,q5=o0.DiffieHellman,z5=o0.createSign,O5=o0.Sign,C5=o0.createVerify,L5=o0.Verify,M5=o0.createECDH,I5=o0.publicEncrypt,D5=o0.privateEncrypt,P5=o0.publicDecrypt,T5=o0.privateDecrypt,A5=o0.randomFill,R5=o0.randomFillSync,E5=o0.createCredentials,S5=o0.constants,v5=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];x5=crypto,w5=crypto});var BJ=f0((i5)=>{i5.base64=!0;i5.array=!0;i5.string=!0;i5.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";i5.nodebuffer=typeof Buffer<"u";i5.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")i5.blob=!1;else{PY=new ArrayBuffer(0);try{i5.blob=new Blob([PY],{type:"application/zip"}).size===0}catch(Q){try{P$=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,TY=new P$,TY.append(PY),i5.blob=TY.getBlob("application/zip").size===0}catch(J){i5.blob=!1}}}var PY,P$,TY;try{i5.nodestream=!!zX().Readable}catch(Q){i5.nodestream=!1}});var T$=f0((Uq)=>{var Vq=UQ(),$q=BJ(),OJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Uq.encode=function(Q){var J=[],X,$,W,H,U,C,A,M=0,D=Q.length,L=D,P=Vq.getTypeOf(Q)!=="string";while(M<Q.length){if(L=D-M,!P)X=Q.charCodeAt(M++),$=M<D?Q.charCodeAt(M++):0,W=M<D?Q.charCodeAt(M++):0;else X=Q[M++],$=M<D?Q[M++]:0,W=M<D?Q[M++]:0;H=X>>2,U=(X&3)<<4|$>>4,C=L>1?($&15)<<2|W>>6:64,A=L>2?W&63:64,J.push(OJ.charAt(H)+OJ.charAt(U)+OJ.charAt(C)+OJ.charAt(A))}return J.join("")};Uq.decode=function(Q){var J,X,$,W,H,U,C,A=0,M=0,D="data:";if(Q.substr(0,D.length)===D)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var L=Q.length*3/4;if(Q.charAt(Q.length-1)===OJ.charAt(64))L--;if(Q.charAt(Q.length-2)===OJ.charAt(64))L--;if(L%1!==0)throw Error("Invalid base64 input, bad content length.");var P;if($q.uint8array)P=new Uint8Array(L|0);else P=Array(L|0);while(A<Q.length){if(W=OJ.indexOf(Q.charAt(A++)),H=OJ.indexOf(Q.charAt(A++)),U=OJ.indexOf(Q.charAt(A++)),C=OJ.indexOf(Q.charAt(A++)),J=W<<2|H>>4,X=(H&15)<<4|U>>2,$=(U&3)<<6|C,P[M++]=J,U!==64)P[M++]=X;if(C!==64)P[M++]=$}return P}});var PX=f0((nA,mG)=>{mG.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,J){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,J);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,J)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var J=new Buffer(Q);return J.fill(0),J}},isBuffer:function(Q){return Buffer.isBuffer(Q)},isStream:function(Q){return Q&&typeof Q.on==="function"&&typeof Q.pause==="function"&&typeof Q.resume==="function"}}});var rG=f0((rA,nG)=>{var oG=global.MutationObserver||global.WebKitMutationObserver,TX;if(oG)RY=0,A$=new oG(AY),EY=global.document.createTextNode(""),A$.observe(EY,{characterData:!0}),TX=function(){EY.data=RY=++RY%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")SY=new global.MessageChannel,SY.port1.onmessage=AY,TX=function(){SY.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))TX=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){AY(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else TX=function(){setTimeout(AY,0)};var RY,A$,EY,SY,R$,AX=[];function AY(){R$=!0;var Q,J,X=AX.length;while(X){J=AX,AX=[],Q=-1;while(++Q<X)J[Q]();X=AX.length}R$=!1}nG.exports=Wq;function Wq(Q){if(AX.push(Q)===1&&!R$)TX()}});var Q8=f0((sA,eG)=>{var Kq=rG();function v1(){}var fQ={},sG=["REJECTED"],E$=["FULFILLED"],aG=["PENDING"];eG.exports=cJ;function cJ(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=aG,this.queue=[],this.outcome=void 0,Q!==v1)iG(this,Q)}cJ.prototype.finally=function(Q){if(typeof Q!=="function")return this;var J=this.constructor;return this.then(X,$);function X(W){function H(){return W}return J.resolve(Q()).then(H)}function $(W){function H(){throw W}return J.resolve(Q()).then(H)}};cJ.prototype.catch=function(Q){return this.then(null,Q)};cJ.prototype.then=function(Q,J){if(typeof Q!=="function"&&this.state===E$||typeof J!=="function"&&this.state===sG)return this;var X=new this.constructor(v1);if(this.state!==aG){var $=this.state===E$?Q:J;S$(X,$,this.outcome)}else this.queue.push(new RX(X,Q,J));return X};function RX(Q,J,X){if(this.promise=Q,typeof J==="function")this.onFulfilled=J,this.callFulfilled=this.otherCallFulfilled;if(typeof X==="function")this.onRejected=X,this.callRejected=this.otherCallRejected}RX.prototype.callFulfilled=function(Q){fQ.resolve(this.promise,Q)};RX.prototype.otherCallFulfilled=function(Q){S$(this.promise,this.onFulfilled,Q)};RX.prototype.callRejected=function(Q){fQ.reject(this.promise,Q)};RX.prototype.otherCallRejected=function(Q){S$(this.promise,this.onRejected,Q)};function S$(Q,J,X){Kq(function(){var $;try{$=J(X)}catch(W){return fQ.reject(Q,W)}if($===Q)fQ.reject(Q,TypeError("Cannot resolve promise with itself"));else fQ.resolve(Q,$)})}fQ.resolve=function(Q,J){var X=tG(Hq,J);if(X.status==="error")return fQ.reject(Q,X.value);var $=X.value;if($)iG(Q,$);else{Q.state=E$,Q.outcome=J;var W=-1,H=Q.queue.length;while(++W<H)Q.queue[W].callFulfilled(J)}return Q};fQ.reject=function(Q,J){Q.state=sG,Q.outcome=J;var X=-1,$=Q.queue.length;while(++X<$)Q.queue[X].callRejected(J);return Q};function Hq(Q){var J=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof J==="function")return function(){J.apply(Q,arguments)}}function iG(Q,J){var X=!1;function $(C){if(X)return;X=!0,fQ.reject(Q,C)}function W(C){if(X)return;X=!0,fQ.resolve(Q,C)}function H(){J(W,$)}var U=tG(H);if(U.status==="error")$(U.value)}function tG(Q,J){var X={};try{X.value=Q(J),X.status="success"}catch($){X.status="error",X.value=$}return X}cJ.resolve=Fq;function Fq(Q){if(Q instanceof this)return Q;return fQ.resolve(new this(v1),Q)}cJ.reject=qq;function qq(Q){var J=new this(v1);return fQ.reject(J,Q)}cJ.all=zq;function zq(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var X=Q.length,$=!1;if(!X)return this.resolve([]);var W=Array(X),H=0,U=-1,C=new this(v1);while(++U<X)A(Q[U],U);return C;function A(M,D){J.resolve(M).then(L,function(P){if(!$)$=!0,fQ.reject(C,P)});function L(P){if(W[D]=P,++H===X&&!$)$=!0,fQ.resolve(C,W)}}}cJ.race=Oq;function Oq(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var X=Q.length,$=!1;if(!X)return this.resolve([]);var W=-1,H=new this(v1);while(++W<X)U(Q[W]);return H;function U(C){J.resolve(C).then(function(A){if(!$)$=!0,fQ.resolve(H,A)},function(A){if(!$)$=!0,fQ.reject(H,A)})}}});var N1=f0((aA,J8)=>{var j$=null;if(typeof Promise<"u")j$=Promise;else j$=Q8();J8.exports={Promise:j$}});var Y8=f0((X8)=>{(function(Q,J){if(Q.setImmediate)return;var X=1,$={},W=!1,H=Q.document,U;function C(v){if(typeof v!=="function")v=Function(""+v);var x=Array(arguments.length-1);for(var w=0;w<x.length;w++)x[w]=arguments[w+1];var y={callback:v,args:x};return $[X]=y,U(X),X++}function A(v){delete $[v]}function M(v){var{callback:x,args:w}=v;switch(w.length){case 0:x();break;case 1:x(w[0]);break;case 2:x(w[0],w[1]);break;case 3:x(w[0],w[1],w[2]);break;default:x.apply(J,w);break}}function D(v){if(W)setTimeout(D,0,v);else{var x=$[v];if(x){W=!0;try{M(x)}finally{A(v),W=!1}}}}function L(){U=function(v){process.nextTick(function(){D(v)})}}function P(){if(Q.postMessage&&!Q.importScripts){var v=!0,x=Q.onmessage;return Q.onmessage=function(){v=!1},Q.postMessage("","*"),Q.onmessage=x,v}}function E(){var v="setImmediate$"+Math.random()+"$",x=function(w){if(w.source===Q&&typeof w.data==="string"&&w.data.indexOf(v)===0)D(+w.data.slice(v.length))};if(Q.addEventListener)Q.addEventListener("message",x,!1);else Q.attachEvent("onmessage",x);U=function(w){Q.postMessage(v+w,"*")}}function S(){var v=new MessageChannel;v.port1.onmessage=function(x){var w=x.data;D(w)},U=function(x){v.port2.postMessage(x)}}function B(){var v=H.documentElement;U=function(x){var w=H.createElement("script");w.onreadystatechange=function(){D(x),w.onreadystatechange=null,v.removeChild(w),w=null},v.appendChild(w)}}function j(){U=function(v){setTimeout(D,0,v)}}var N=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(N=N&&N.setTimeout?N:Q,{}.toString.call(Q.process)==="[object process]")L();else if(P())E();else if(Q.MessageChannel)S();else if(H&&"onreadystatechange"in H.createElement("script"))B();else j();N.setImmediate=C,N.clearImmediate=A})(typeof self>"u"?typeof global>"u"?X8:global:self)});var UQ=f0((Mq)=>{var pJ=BJ(),Cq=T$(),x1=PX(),B$=N1();Y8();function Lq(Q){var J=null;if(pJ.uint8array)J=new Uint8Array(Q.length);else J=Array(Q.length);return BY(Q,J)}Mq.newBlob=function(Q,J){Mq.checkSupport("blob");try{return new Blob([Q],{type:J})}catch(W){try{var X=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,$=new X;return $.append(Q),$.getBlob(J)}catch(H){throw Error("Bug : can't construct the Blob.")}}};function EX(Q){return Q}function BY(Q,J){for(var X=0;X<Q.length;++X)J[X]=Q.charCodeAt(X)&255;return J}var jY={stringifyByChunk:function(Q,J,X){var $=[],W=0,H=Q.length;if(H<=X)return String.fromCharCode.apply(null,Q);while(W<H){if(J==="array"||J==="nodebuffer")$.push(String.fromCharCode.apply(null,Q.slice(W,Math.min(W+X,H))));else $.push(String.fromCharCode.apply(null,Q.subarray(W,Math.min(W+X,H))));W+=X}return $.join("")},stringifyByChar:function(Q){var J="";for(var X=0;X<Q.length;X++)J+=String.fromCharCode(Q[X]);return J},applyCanBeUsed:{uint8array:function(){try{return pJ.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return pJ.nodebuffer&&String.fromCharCode.apply(null,x1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function SX(Q){var J=65536,X=Mq.getTypeOf(Q),$=!0;if(X==="uint8array")$=jY.applyCanBeUsed.uint8array;else if(X==="nodebuffer")$=jY.applyCanBeUsed.nodebuffer;if($)while(J>1)try{return jY.stringifyByChunk(Q,X,J)}catch(W){J=Math.floor(J/2)}return jY.stringifyByChar(Q)}Mq.applyFromCharCode=SX;function kY(Q,J){for(var X=0;X<Q.length;X++)J[X]=Q[X];return J}var hJ={};hJ.string={string:EX,array:function(Q){return BY(Q,Array(Q.length))},arraybuffer:function(Q){return hJ.string.uint8array(Q).buffer},uint8array:function(Q){return BY(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return BY(Q,x1.allocBuffer(Q.length))}};hJ.array={string:SX,array:EX,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return x1.newBufferFrom(Q)}};hJ.arraybuffer={string:function(Q){return SX(new Uint8Array(Q))},array:function(Q){return kY(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:EX,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return x1.newBufferFrom(new Uint8Array(Q))}};hJ.uint8array={string:SX,array:function(Q){return kY(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:EX,nodebuffer:function(Q){return x1.newBufferFrom(Q)}};hJ.nodebuffer={string:SX,array:function(Q){return kY(Q,Array(Q.length))},arraybuffer:function(Q){return hJ.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return kY(Q,new Uint8Array(Q.length))},nodebuffer:EX};Mq.transformTo=function(Q,J){if(!J)J="";if(!Q)return J;Mq.checkSupport(Q);var X=Mq.getTypeOf(J),$=hJ[X][Q](J);return $};Mq.resolve=function(Q){var J=Q.split("/"),X=[];for(var $=0;$<J.length;$++){var W=J[$];if(W==="."||W===""&&$!==0&&$!==J.length-1)continue;else if(W==="..")X.pop();else X.push(W)}return X.join("/")};Mq.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(pJ.nodebuffer&&x1.isBuffer(Q))return"nodebuffer";if(pJ.uint8array&&Q instanceof Uint8Array)return"uint8array";if(pJ.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};Mq.checkSupport=function(Q){var J=pJ[Q.toLowerCase()];if(!J)throw Error(Q+" is not supported by this platform")};Mq.MAX_VALUE_16BITS=65535;Mq.MAX_VALUE_32BITS=-1;Mq.pretty=function(Q){var J="",X,$;for($=0;$<(Q||"").length;$++)X=Q.charCodeAt($),J+="\\x"+(X<16?"0":"")+X.toString(16).toUpperCase();return J};Mq.delay=function(Q,J,X){setImmediate(function(){Q.apply(X||null,J||[])})};Mq.inherits=function(Q,J){var X=function(){};X.prototype=J.prototype,Q.prototype=new X};Mq.extend=function(){var Q={},J,X;for(J=0;J<arguments.length;J++)for(X in arguments[J])if(Object.prototype.hasOwnProperty.call(arguments[J],X)&&typeof Q[X]>"u")Q[X]=arguments[J][X];return Q};Mq.prepareContent=function(Q,J,X,$,W){var H=B$.Promise.resolve(J).then(function(U){var C=pJ.blob&&(U instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(U))!==-1);if(C&&typeof FileReader<"u")return new B$.Promise(function(A,M){var D=new FileReader;D.onload=function(L){A(L.target.result)},D.onerror=function(L){M(L.target.error)},D.readAsArrayBuffer(U)});else return U});return H.then(function(U){var C=Mq.getTypeOf(U);if(!C)return B$.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(C==="arraybuffer")U=Mq.transformTo("uint8array",U);else if(C==="string"){if(W)U=Cq.decode(U);else if(X){if($!==!0)U=Lq(U)}}return U})}});var sQ=f0((eA,Z8)=>{function U8(Q){this.name=Q||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}U8.prototype={push:function(Q){this.emit("data",Q)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Q){this.emit("error",Q)}return!0},error:function(Q){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=Q;else{if(this.isFinished=!0,this.emit("error",Q),this.previous)this.previous.error(Q);this.cleanUp()}return!0},on:function(Q,J){return this._listeners[Q].push(J),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,J){if(this._listeners[Q])for(var X=0;X<this._listeners[Q].length;X++)this._listeners[Q][X].call(this,J)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var J=this;return Q.on("data",function(X){J.processChunk(X)}),Q.on("end",function(){J.end()}),Q.on("error",function(X){J.error(X)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var Q=!1;if(this.generatedError)this.error(this.generatedError),Q=!0;if(this.previous)this.previous.resume();return!Q},flush:function(){},processChunk:function(Q){this.push(Q)},withStreamInfo:function(Q,J){return this.extraStreamInfo[Q]=J,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};Z8.exports=U8});var _1=f0((wq)=>{var w1=UQ(),$1=BJ(),kq=PX(),vY=sQ(),jX=Array(256);for(CJ=0;CJ<256;CJ++)jX[CJ]=CJ>=252?6:CJ>=248?5:CJ>=240?4:CJ>=224?3:CJ>=192?2:1;var CJ;jX[254]=jX[254]=1;var vq=function(Q){var J,X,$,W,H,U=Q.length,C=0;for(W=0;W<U;W++){if(X=Q.charCodeAt(W),(X&64512)===55296&&W+1<U){if($=Q.charCodeAt(W+1),($&64512)===56320)X=65536+(X-55296<<10)+($-56320),W++}C+=X<128?1:X<2048?2:X<65536?3:4}if($1.uint8array)J=new Uint8Array(C);else J=Array(C);for(H=0,W=0;H<C;W++){if(X=Q.charCodeAt(W),(X&64512)===55296&&W+1<U){if($=Q.charCodeAt(W+1),($&64512)===56320)X=65536+(X-55296<<10)+($-56320),W++}if(X<128)J[H++]=X;else if(X<2048)J[H++]=192|X>>>6,J[H++]=128|X&63;else if(X<65536)J[H++]=224|X>>>12,J[H++]=128|X>>>6&63,J[H++]=128|X&63;else J[H++]=240|X>>>18,J[H++]=128|X>>>12&63,J[H++]=128|X>>>6&63,J[H++]=128|X&63}return J},Nq=function(Q,J){var X;if(J=J||Q.length,J>Q.length)J=Q.length;X=J-1;while(X>=0&&(Q[X]&192)===128)X--;if(X<0)return J;if(X===0)return J;return X+jX[Q[X]]>J?X:J},xq=function(Q){var J,X,$,W,H=Q.length,U=Array(H*2);for(X=0,J=0;J<H;){if($=Q[J++],$<128){U[X++]=$;continue}if(W=jX[$],W>4){U[X++]=65533,J+=W-1;continue}$&=W===2?31:W===3?15:7;while(W>1&&J<H)$=$<<6|Q[J++]&63,W--;if(W>1){U[X++]=65533;continue}if($<65536)U[X++]=$;else $-=65536,U[X++]=55296|$>>10&1023,U[X++]=56320|$&1023}if(U.length!==X)if(U.subarray)U=U.subarray(0,X);else U.length=X;return w1.applyFromCharCode(U)};wq.utf8encode=function(J){if($1.nodebuffer)return kq.newBufferFrom(J,"utf-8");return vq(J)};wq.utf8decode=function(J){if($1.nodebuffer)return w1.transformTo("nodebuffer",J).toString("utf-8");return J=w1.transformTo($1.uint8array?"uint8array":"array",J),xq(J)};function NY(){vY.call(this,"utf-8 decode"),this.leftOver=null}w1.inherits(NY,vY);NY.prototype.processChunk=function(Q){var J=w1.transformTo($1.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if($1.uint8array){var X=J;J=new Uint8Array(X.length+this.leftOver.length),J.set(this.leftOver,0),J.set(X,this.leftOver.length)}else J=this.leftOver.concat(J);this.leftOver=null}var $=Nq(J),W=J;if($!==J.length)if($1.uint8array)W=J.subarray(0,$),this.leftOver=J.subarray($,J.length);else W=J.slice(0,$),this.leftOver=J.slice($,J.length);this.push({data:wq.utf8decode(W),meta:Q.meta})};NY.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:wq.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};wq.Utf8DecodeWorker=NY;function v$(){vY.call(this,"utf-8 encode")}w1.inherits(v$,vY);v$.prototype.processChunk=function(Q){this.push({data:wq.utf8encode(Q.data),meta:Q.meta})};wq.Utf8EncodeWorker=v$});var F8=f0((JR,H8)=>{var W8=sQ(),K8=UQ();function x$(Q){W8.call(this,"ConvertWorker to "+Q),this.destType=Q}K8.inherits(x$,W8);x$.prototype.processChunk=function(Q){this.push({data:K8.transformTo(this.destType,Q.data),meta:Q.meta})};H8.exports=x$});var O8=f0((XR,z8)=>{var q8=zX().Readable,yq=UQ();yq.inherits(w$,q8);function w$(Q,J,X){q8.call(this,J),this._helper=Q;var $=this;Q.on("data",function(W,H){if(!$.push(W))$._helper.pause();if(X)X(H)}).on("error",function(W){$.emit("error",W)}).on("end",function(){$.push(null)})}w$.prototype._read=function(){this._helper.resume()};z8.exports=w$});var _$=f0((YR,M8)=>{var U1=UQ(),fq=F8(),cq=sQ(),pq=T$(),hq=BJ(),bq=N1(),C8=null;if(hq.nodestream)try{C8=O8()}catch(Q){}function uq(Q,J,X){switch(Q){case"blob":return U1.newBlob(U1.transformTo("arraybuffer",J),X);case"base64":return pq.encode(J);default:return U1.transformTo(Q,J)}}function dq(Q,J){var X,$=0,W=null,H=0;for(X=0;X<J.length;X++)H+=J[X].length;switch(Q){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":W=new Uint8Array(H);for(X=0;X<J.length;X++)W.set(J[X],$),$+=J[X].length;return W;case"nodebuffer":return Buffer.concat(J);default:throw Error("concat : unsupported type '"+Q+"'")}}function lq(Q,J){return new bq.Promise(function(X,$){var W=[],H=Q._internalType,U=Q._outputType,C=Q._mimeType;Q.on("data",function(A,M){if(W.push(A),J)J(M)}).on("error",function(A){W=[],$(A)}).on("end",function(){try{var A=uq(U,dq(H,W),C);X(A)}catch(M){$(M)}W=[]}).resume()})}function L8(Q,J,X){var $=J;switch(J){case"blob":case"arraybuffer":$="uint8array";break;case"base64":$="string";break}try{this._internalType=$,this._outputType=J,this._mimeType=X,U1.checkSupport($),this._worker=Q.pipe(new fq($)),Q.lock()}catch(W){this._worker=new cq("error"),this._worker.error(W)}}L8.prototype={accumulate:function(Q){return lq(this,Q)},on:function(Q,J){var X=this;if(Q==="data")this._worker.on(Q,function($){J.call(X,$.data,$.meta)});else this._worker.on(Q,function(){U1.delay(J,arguments,X)});return this},resume:function(){return U1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(U1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new C8(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};M8.exports=L8});var g$=f0((mq)=>{mq.base64=!1;mq.binary=!1;mq.dir=!1;mq.createFolders=!0;mq.date=null;mq.compression=null;mq.compressionOptions=null;mq.comment=null;mq.unixPermissions=null;mq.dosPermissions=null});var y$=f0(($R,I8)=>{var xY=UQ(),wY=sQ(),X7=16384;function g1(Q){wY.call(this,"DataWorker");var J=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function(X){if(J.dataIsReady=!0,J.data=X,J.max=X&&X.length||0,J.type=xY.getTypeOf(X),!J.isPaused)J._tickAndRepeat()},function(X){J.error(X)})}xY.inherits(g1,wY);g1.prototype.cleanUp=function(){wY.prototype.cleanUp.call(this),this.data=null};g1.prototype.resume=function(){if(!wY.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,xY.delay(this._tickAndRepeat,[],this);return!0};g1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)xY.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};g1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=X7,J=null,X=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":J=this.data.substring(this.index,X);break;case"uint8array":J=this.data.subarray(this.index,X);break;case"array":case"nodebuffer":J=this.data.slice(this.index,X);break}return this.index=X,this.push({data:J,meta:{percent:this.max?this.index/this.max*100:0}})}};I8.exports=g1});var _Y=f0((UR,P8)=>{var Y7=UQ();function V7(){var Q,J=[];for(var X=0;X<256;X++){Q=X;for(var $=0;$<8;$++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[X]=Q}return J}var D8=V7();function $7(Q,J,X,$){var W=D8,H=$+X;Q=Q^-1;for(var U=$;U<H;U++)Q=Q>>>8^W[(Q^J[U])&255];return Q^-1}function U7(Q,J,X,$){var W=D8,H=$+X;Q=Q^-1;for(var U=$;U<H;U++)Q=Q>>>8^W[(Q^J.charCodeAt(U))&255];return Q^-1}P8.exports=function(J,X){if(typeof J>"u"||!J.length)return 0;var $=Y7.getTypeOf(J)!=="string";if($)return $7(X|0,J,J.length,0);else return U7(X|0,J,J.length,0)}});var c$=f0((ZR,A8)=>{var T8=sQ(),Z7=_Y(),G7=UQ();function f$(){T8.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}G7.inherits(f$,T8);f$.prototype.processChunk=function(Q){this.streamInfo.crc32=Z7(Q.data,this.streamInfo.crc32||0),this.push(Q)};A8.exports=f$});var E8=f0((GR,R8)=>{var W7=UQ(),p$=sQ();function h$(Q){p$.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}W7.inherits(h$,p$);h$.prototype.processChunk=function(Q){if(Q){var J=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=J+Q.data.length}p$.prototype.processChunk.call(this,Q)};R8.exports=h$});var gY=f0((WR,B8)=>{var S8=N1(),j8=y$(),K7=c$(),b$=E8();function u$(Q,J,X,$,W){this.compressedSize=Q,this.uncompressedSize=J,this.crc32=X,this.compression=$,this.compressedContent=W}u$.prototype={getContentWorker:function(){var Q=new j8(S8.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b$("data_length")),J=this;return Q.on("end",function(){if(this.streamInfo.data_length!==J.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new j8(S8.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};u$.createWorkerFrom=function(Q,J,X){return Q.pipe(new K7).pipe(new b$("uncompressedSize")).pipe(J.compressWorker(X)).pipe(new b$("compressedSize")).withStreamInfo("compression",J)};B8.exports=u$});var x8=f0((KR,N8)=>{var H7=_$(),F7=y$(),d$=_1(),l$=gY(),k8=sQ(),m$=function(Q,J,X){this.name=Q,this.dir=X.dir,this.date=X.date,this.comment=X.comment,this.unixPermissions=X.unixPermissions,this.dosPermissions=X.dosPermissions,this._data=J,this._dataBinary=X.binary,this.options={compression:X.compression,compressionOptions:X.compressionOptions}};m$.prototype={internalStream:function(Q){var J=null,X="string";try{if(!Q)throw Error("No output type specified.");X=Q.toLowerCase();var $=X==="string"||X==="text";if(X==="binarystring"||X==="text")X="string";J=this._decompressWorker();var W=!this._dataBinary;if(W&&!$)J=J.pipe(new d$.Utf8EncodeWorker);if(!W&&$)J=J.pipe(new d$.Utf8DecodeWorker)}catch(H){J=new k8("error"),J.error(H)}return new H7(J,X,"")},async:function(Q,J){return this.internalStream(Q).accumulate(J)},nodeStream:function(Q,J){return this.internalStream(Q||"nodebuffer").toNodejsStream(J)},_compressWorker:function(Q,J){if(this._data instanceof l$&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var X=this._decompressWorker();if(!this._dataBinary)X=X.pipe(new d$.Utf8EncodeWorker);return l$.createWorkerFrom(X,Q,J)}},_decompressWorker:function(){if(this._data instanceof l$)return this._data.getContentWorker();else if(this._data instanceof k8)return this._data;else return new F7(this._data)}};var v8=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],q7=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(BX=0;BX<v8.length;BX++)m$.prototype[v8[BX]]=q7;var BX;N8.exports=m$});var kJ=f0((o$)=>{var L7=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function M7(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}o$.assign=function(Q){var J=Array.prototype.slice.call(arguments,1);while(J.length){var X=J.shift();if(!X)continue;if(typeof X!=="object")throw TypeError(X+"must be non-object");for(var $ in X)if(M7(X,$))Q[$]=X[$]}return Q};o$.shrinkBuf=function(Q,J){if(Q.length===J)return Q;if(Q.subarray)return Q.subarray(0,J);return Q.length=J,Q};var I7={arraySet:function(Q,J,X,$,W){if(J.subarray&&Q.subarray){Q.set(J.subarray(X,X+$),W);return}for(var H=0;H<$;H++)Q[W+H]=J[X+H]},flattenChunks:function(Q){var J,X,$,W,H,U;$=0;for(J=0,X=Q.length;J<X;J++)$+=Q[J].length;U=new Uint8Array($),W=0;for(J=0,X=Q.length;J<X;J++)H=Q[J],U.set(H,W),W+=H.length;return U}},D7={arraySet:function(Q,J,X,$,W){for(var H=0;H<$;H++)Q[W+H]=J[X+H]},flattenChunks:function(Q){return[].concat.apply([],Q)}};o$.setTyped=function(Q){if(Q)o$.Buf8=Uint8Array,o$.Buf16=Uint16Array,o$.Buf32=Int32Array,o$.assign(o$,I7);else o$.Buf8=Array,o$.Buf16=Array,o$.Buf32=Array,o$.assign(o$,D7)};o$.setTyped(L7)});var XW=f0((d7)=>{var T7=kJ(),A7=4,_8=0,g8=1,R7=2;function f1(Q){var J=Q.length;while(--J>=0)Q[J]=0}var E7=0,b8=1,S7=2,j7=3,B7=258,QU=29,_X=256,vX=_X+1+QU,y1=30,JU=19,u8=2*vX+1,Z1=15,r$=16,k7=7,XU=256,d8=16,l8=17,m8=18,t$=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],yY=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],v7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],o8=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N7=512,vJ=Array((vX+2)*2);f1(vJ);var kX=Array(y1*2);f1(kX);var NX=Array(N7);f1(NX);var xX=Array(B7-j7+1);f1(xX);var YU=Array(QU);f1(YU);var fY=Array(y1);f1(fY);function s$(Q,J,X,$,W){this.static_tree=Q,this.extra_bits=J,this.extra_base=X,this.elems=$,this.max_length=W,this.has_stree=Q&&Q.length}var n8,r8,s8;function a$(Q,J){this.dyn_tree=Q,this.max_code=0,this.stat_desc=J}function a8(Q){return Q<256?NX[Q]:NX[256+(Q>>>7)]}function wX(Q,J){Q.pending_buf[Q.pending++]=J&255,Q.pending_buf[Q.pending++]=J>>>8&255}function nQ(Q,J,X){if(Q.bi_valid>r$-X)Q.bi_buf|=J<<Q.bi_valid&65535,wX(Q,Q.bi_buf),Q.bi_buf=J>>r$-Q.bi_valid,Q.bi_valid+=X-r$;else Q.bi_buf|=J<<Q.bi_valid&65535,Q.bi_valid+=X}function LJ(Q,J,X){nQ(Q,X[J*2],X[J*2+1])}function i8(Q,J){var X=0;do X|=Q&1,Q>>>=1,X<<=1;while(--J>0);return X>>>1}function x7(Q){if(Q.bi_valid===16)wX(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0;else if(Q.bi_valid>=8)Q.pending_buf[Q.pending++]=Q.bi_buf&255,Q.bi_buf>>=8,Q.bi_valid-=8}function w7(Q,J){var{dyn_tree:X,max_code:$}=J,W=J.stat_desc.static_tree,H=J.stat_desc.has_stree,U=J.stat_desc.extra_bits,C=J.stat_desc.extra_base,A=J.stat_desc.max_length,M,D,L,P,E,S,B=0;for(P=0;P<=Z1;P++)Q.bl_count[P]=0;X[Q.heap[Q.heap_max]*2+1]=0;for(M=Q.heap_max+1;M<u8;M++){if(D=Q.heap[M],P=X[X[D*2+1]*2+1]+1,P>A)P=A,B++;if(X[D*2+1]=P,D>$)continue;if(Q.bl_count[P]++,E=0,D>=C)E=U[D-C];if(S=X[D*2],Q.opt_len+=S*(P+E),H)Q.static_len+=S*(W[D*2+1]+E)}if(B===0)return;do{P=A-1;while(Q.bl_count[P]===0)P--;Q.bl_count[P]--,Q.bl_count[P+1]+=2,Q.bl_count[A]--,B-=2}while(B>0);for(P=A;P!==0;P--){D=Q.bl_count[P];while(D!==0){if(L=Q.heap[--M],L>$)continue;if(X[L*2+1]!==P)Q.opt_len+=(P-X[L*2+1])*X[L*2],X[L*2+1]=P;D--}}}function t8(Q,J,X){var $=Array(Z1+1),W=0,H,U;for(H=1;H<=Z1;H++)$[H]=W=W+X[H-1]<<1;for(U=0;U<=J;U++){var C=Q[U*2+1];if(C===0)continue;Q[U*2]=i8($[C]++,C)}}function _7(){var Q,J,X,$,W,H=Array(Z1+1);X=0;for($=0;$<QU-1;$++){YU[$]=X;for(Q=0;Q<1<<t$[$];Q++)xX[X++]=$}xX[X-1]=$,W=0;for($=0;$<16;$++){fY[$]=W;for(Q=0;Q<1<<yY[$];Q++)NX[W++]=$}W>>=7;for(;$<y1;$++){fY[$]=W<<7;for(Q=0;Q<1<<yY[$]-7;Q++)NX[256+W++]=$}for(J=0;J<=Z1;J++)H[J]=0;Q=0;while(Q<=143)vJ[Q*2+1]=8,Q++,H[8]++;while(Q<=255)vJ[Q*2+1]=9,Q++,H[9]++;while(Q<=279)vJ[Q*2+1]=7,Q++,H[7]++;while(Q<=287)vJ[Q*2+1]=8,Q++,H[8]++;t8(vJ,vX+1,H);for(Q=0;Q<y1;Q++)kX[Q*2+1]=5,kX[Q*2]=i8(Q,5);n8=new s$(vJ,t$,_X+1,vX,Z1),r8=new s$(kX,yY,0,y1,Z1),s8=new s$([],v7,0,JU,k7)}function e8(Q){var J;for(J=0;J<vX;J++)Q.dyn_ltree[J*2]=0;for(J=0;J<y1;J++)Q.dyn_dtree[J*2]=0;for(J=0;J<JU;J++)Q.bl_tree[J*2]=0;Q.dyn_ltree[XU*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function QW(Q){if(Q.bi_valid>8)wX(Q,Q.bi_buf);else if(Q.bi_valid>0)Q.pending_buf[Q.pending++]=Q.bi_buf;Q.bi_buf=0,Q.bi_valid=0}function g7(Q,J,X,$){if(QW(Q),$)wX(Q,X),wX(Q,~X);T7.arraySet(Q.pending_buf,Q.window,J,X,Q.pending),Q.pending+=X}function y8(Q,J,X,$){var W=J*2,H=X*2;return Q[W]<Q[H]||Q[W]===Q[H]&&$[J]<=$[X]}function i$(Q,J,X){var $=Q.heap[X],W=X<<1;while(W<=Q.heap_len){if(W<Q.heap_len&&y8(J,Q.heap[W+1],Q.heap[W],Q.depth))W++;if(y8(J,$,Q.heap[W],Q.depth))break;Q.heap[X]=Q.heap[W],X=W,W<<=1}Q.heap[X]=$}function f8(Q,J,X){var $,W,H=0,U,C;if(Q.last_lit!==0)do if($=Q.pending_buf[Q.d_buf+H*2]<<8|Q.pending_buf[Q.d_buf+H*2+1],W=Q.pending_buf[Q.l_buf+H],H++,$===0)LJ(Q,W,J);else{if(U=xX[W],LJ(Q,U+_X+1,J),C=t$[U],C!==0)W-=YU[U],nQ(Q,W,C);if($--,U=a8($),LJ(Q,U,X),C=yY[U],C!==0)$-=fY[U],nQ(Q,$,C)}while(H<Q.last_lit);LJ(Q,XU,J)}function e$(Q,J){var X=J.dyn_tree,$=J.stat_desc.static_tree,W=J.stat_desc.has_stree,H=J.stat_desc.elems,U,C,A=-1,M;Q.heap_len=0,Q.heap_max=u8;for(U=0;U<H;U++)if(X[U*2]!==0)Q.heap[++Q.heap_len]=A=U,Q.depth[U]=0;else X[U*2+1]=0;while(Q.heap_len<2)if(M=Q.heap[++Q.heap_len]=A<2?++A:0,X[M*2]=1,Q.depth[M]=0,Q.opt_len--,W)Q.static_len-=$[M*2+1];J.max_code=A;for(U=Q.heap_len>>1;U>=1;U--)i$(Q,X,U);M=H;do U=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],i$(Q,X,1),C=Q.heap[1],Q.heap[--Q.heap_max]=U,Q.heap[--Q.heap_max]=C,X[M*2]=X[U*2]+X[C*2],Q.depth[M]=(Q.depth[U]>=Q.depth[C]?Q.depth[U]:Q.depth[C])+1,X[U*2+1]=X[C*2+1]=M,Q.heap[1]=M++,i$(Q,X,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],w7(Q,J),t8(X,A,Q.bl_count)}function c8(Q,J,X){var $,W=-1,H,U=J[1],C=0,A=7,M=4;if(U===0)A=138,M=3;J[(X+1)*2+1]=65535;for($=0;$<=X;$++){if(H=U,U=J[($+1)*2+1],++C<A&&H===U)continue;else if(C<M)Q.bl_tree[H*2]+=C;else if(H!==0){if(H!==W)Q.bl_tree[H*2]++;Q.bl_tree[d8*2]++}else if(C<=10)Q.bl_tree[l8*2]++;else Q.bl_tree[m8*2]++;if(C=0,W=H,U===0)A=138,M=3;else if(H===U)A=6,M=3;else A=7,M=4}}function p8(Q,J,X){var $,W=-1,H,U=J[1],C=0,A=7,M=4;if(U===0)A=138,M=3;for($=0;$<=X;$++){if(H=U,U=J[($+1)*2+1],++C<A&&H===U)continue;else if(C<M)do LJ(Q,H,Q.bl_tree);while(--C!==0);else if(H!==0){if(H!==W)LJ(Q,H,Q.bl_tree),C--;LJ(Q,d8,Q.bl_tree),nQ(Q,C-3,2)}else if(C<=10)LJ(Q,l8,Q.bl_tree),nQ(Q,C-3,3);else LJ(Q,m8,Q.bl_tree),nQ(Q,C-11,7);if(C=0,W=H,U===0)A=138,M=3;else if(H===U)A=6,M=3;else A=7,M=4}}function y7(Q){var J;c8(Q,Q.dyn_ltree,Q.l_desc.max_code),c8(Q,Q.dyn_dtree,Q.d_desc.max_code),e$(Q,Q.bl_desc);for(J=JU-1;J>=3;J--)if(Q.bl_tree[o8[J]*2+1]!==0)break;return Q.opt_len+=3*(J+1)+5+5+4,J}function f7(Q,J,X,$){var W;nQ(Q,J-257,5),nQ(Q,X-1,5),nQ(Q,$-4,4);for(W=0;W<$;W++)nQ(Q,Q.bl_tree[o8[W]*2+1],3);p8(Q,Q.dyn_ltree,J-1),p8(Q,Q.dyn_dtree,X-1)}function c7(Q){var J=4093624447,X;for(X=0;X<=31;X++,J>>>=1)if(J&1&&Q.dyn_ltree[X*2]!==0)return _8;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return g8;for(X=32;X<_X;X++)if(Q.dyn_ltree[X*2]!==0)return g8;return _8}var h8=!1;function p7(Q){if(!h8)_7(),h8=!0;Q.l_desc=new a$(Q.dyn_ltree,n8),Q.d_desc=new a$(Q.dyn_dtree,r8),Q.bl_desc=new a$(Q.bl_tree,s8),Q.bi_buf=0,Q.bi_valid=0,e8(Q)}function JW(Q,J,X,$){nQ(Q,(E7<<1)+($?1:0),3),g7(Q,J,X,!0)}function h7(Q){nQ(Q,b8<<1,3),LJ(Q,XU,vJ),x7(Q)}function b7(Q,J,X,$){var W,H,U=0;if(Q.level>0){if(Q.strm.data_type===R7)Q.strm.data_type=c7(Q);if(e$(Q,Q.l_desc),e$(Q,Q.d_desc),U=y7(Q),W=Q.opt_len+3+7>>>3,H=Q.static_len+3+7>>>3,H<=W)W=H}else W=H=X+5;if(X+4<=W&&J!==-1)JW(Q,J,X,$);else if(Q.strategy===A7||H===W)nQ(Q,(b8<<1)+($?1:0),3),f8(Q,vJ,kX);else nQ(Q,(S7<<1)+($?1:0),3),f7(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,U+1),f8(Q,Q.dyn_ltree,Q.dyn_dtree);if(e8(Q),$)QW(Q)}function u7(Q,J,X){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=J>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=J&255,Q.pending_buf[Q.l_buf+Q.last_lit]=X&255,Q.last_lit++,J===0)Q.dyn_ltree[X*2]++;else Q.matches++,J--,Q.dyn_ltree[(xX[X]+_X+1)*2]++,Q.dyn_dtree[a8(J)*2]++;return Q.last_lit===Q.lit_bufsize-1}d7._tr_init=p7;d7._tr_stored_block=JW;d7._tr_flush_block=b7;d7._tr_tally=u7;d7._tr_align=h7});var VU=f0((qR,YW)=>{function s7(Q,J,X,$){var W=Q&65535|0,H=Q>>>16&65535|0,U=0;while(X!==0){U=X>2000?2000:X,X-=U;do W=W+J[$++]|0,H=H+W|0;while(--U);W%=65521,H%=65521}return W|H<<16|0}YW.exports=s7});var $U=f0((zR,VW)=>{function a7(){var Q,J=[];for(var X=0;X<256;X++){Q=X;for(var $=0;$<8;$++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[X]=Q}return J}var i7=a7();function t7(Q,J,X,$){var W=i7,H=$+X;Q^=-1;for(var U=$;U<H;U++)Q=Q>>>8^W[(Q^J[U])&255];return Q^-1}VW.exports=t7});var cY=f0((OR,$W)=>{$W.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var zW=f0((Nz)=>{var bQ=kJ(),QJ=XW(),WW=VU(),bJ=$U(),e7=cY(),H1=0,Qz=1,Jz=3,oJ=4,UW=5,IJ=0,ZW=1,JJ=-2,Xz=-3,UU=-5,Yz=-1,Vz=1,pY=2,$z=3,Uz=4,Zz=0,Gz=2,dY=8,Wz=9,Kz=15,Hz=8,Fz=29,qz=256,GU=qz+1+Fz,zz=30,Oz=19,Cz=2*GU+1,Lz=15,n0=3,lJ=258,ZJ=lJ+n0+1,Mz=32,lY=42,WU=69,hY=73,bY=91,uY=103,G1=113,yX=666,jQ=1,fX=2,W1=3,h1=4,Iz=3;function mJ(Q,J){return Q.msg=e7[J],J}function GW(Q){return(Q<<1)-(Q>4?9:0)}function dJ(Q){var J=Q.length;while(--J>=0)Q[J]=0}function uJ(Q){var J=Q.state,X=J.pending;if(X>Q.avail_out)X=Q.avail_out;if(X===0)return;if(bQ.arraySet(Q.output,J.pending_buf,J.pending_out,X,Q.next_out),Q.next_out+=X,J.pending_out+=X,Q.total_out+=X,Q.avail_out-=X,J.pending-=X,J.pending===0)J.pending_out=0}function _Q(Q,J){QJ._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,J),Q.block_start=Q.strstart,uJ(Q.strm)}function s0(Q,J){Q.pending_buf[Q.pending++]=J}function gX(Q,J){Q.pending_buf[Q.pending++]=J>>>8&255,Q.pending_buf[Q.pending++]=J&255}function Dz(Q,J,X,$){var W=Q.avail_in;if(W>$)W=$;if(W===0)return 0;if(Q.avail_in-=W,bQ.arraySet(J,Q.input,Q.next_in,W,X),Q.state.wrap===1)Q.adler=WW(Q.adler,J,W,X);else if(Q.state.wrap===2)Q.adler=bJ(Q.adler,J,W,X);return Q.next_in+=W,Q.total_in+=W,W}function KW(Q,J){var{max_chain_length:X,strstart:$}=Q,W,H,U=Q.prev_length,C=Q.nice_match,A=Q.strstart>Q.w_size-ZJ?Q.strstart-(Q.w_size-ZJ):0,M=Q.window,D=Q.w_mask,L=Q.prev,P=Q.strstart+lJ,E=M[$+U-1],S=M[$+U];if(Q.prev_length>=Q.good_match)X>>=2;if(C>Q.lookahead)C=Q.lookahead;do{if(W=J,M[W+U]!==S||M[W+U-1]!==E||M[W]!==M[$]||M[++W]!==M[$+1])continue;$+=2,W++;do;while(M[++$]===M[++W]&&M[++$]===M[++W]&&M[++$]===M[++W]&&M[++$]===M[++W]&&M[++$]===M[++W]&&M[++$]===M[++W]&&M[++$]===M[++W]&&M[++$]===M[++W]&&$<P);if(H=lJ-(P-$),$=P-lJ,H>U){if(Q.match_start=J,U=H,H>=C)break;E=M[$+U-1],S=M[$+U]}}while((J=L[J&D])>A&&--X!==0);if(U<=Q.lookahead)return U;return Q.lookahead}function K1(Q){var J=Q.w_size,X,$,W,H,U;do{if(H=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=J+(J-ZJ)){bQ.arraySet(Q.window,Q.window,J,J,0),Q.match_start-=J,Q.strstart-=J,Q.block_start-=J,$=Q.hash_size,X=$;do W=Q.head[--X],Q.head[X]=W>=J?W-J:0;while(--$);$=J,X=$;do W=Q.prev[--X],Q.prev[X]=W>=J?W-J:0;while(--$);H+=J}if(Q.strm.avail_in===0)break;if($=Dz(Q.strm,Q.window,Q.strstart+Q.lookahead,H),Q.lookahead+=$,Q.lookahead+Q.insert>=n0){U=Q.strstart-Q.insert,Q.ins_h=Q.window[U],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[U+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[U+n0-1])&Q.hash_mask,Q.prev[U&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=U,U++,Q.insert--,Q.lookahead+Q.insert<n0)break}}while(Q.lookahead<ZJ&&Q.strm.avail_in!==0)}function Pz(Q,J){var X=65535;if(X>Q.pending_buf_size-5)X=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(K1(Q),Q.lookahead===0&&J===H1)return jQ;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var $=Q.block_start+X;if(Q.strstart===0||Q.strstart>=$){if(Q.lookahead=Q.strstart-$,Q.strstart=$,_Q(Q,!1),Q.strm.avail_out===0)return jQ}if(Q.strstart-Q.block_start>=Q.w_size-ZJ){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}}if(Q.insert=0,J===oJ){if(_Q(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.strstart>Q.block_start){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}return jQ}function ZU(Q,J){var X,$;for(;;){if(Q.lookahead<ZJ){if(K1(Q),Q.lookahead<ZJ&&J===H1)return jQ;if(Q.lookahead===0)break}if(X=0,Q.lookahead>=n0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+n0-1])&Q.hash_mask,X=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(X!==0&&Q.strstart-X<=Q.w_size-ZJ)Q.match_length=KW(Q,X);if(Q.match_length>=n0)if($=QJ._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-n0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=n0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+n0-1])&Q.hash_mask,X=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else $=QJ._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}}if(Q.insert=Q.strstart<n0-1?Q.strstart:n0-1,J===oJ){if(_Q(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}return fX}function c1(Q,J){var X,$,W;for(;;){if(Q.lookahead<ZJ){if(K1(Q),Q.lookahead<ZJ&&J===H1)return jQ;if(Q.lookahead===0)break}if(X=0,Q.lookahead>=n0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+n0-1])&Q.hash_mask,X=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=n0-1,X!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-X<=Q.w_size-ZJ){if(Q.match_length=KW(Q,X),Q.match_length<=5&&(Q.strategy===Vz||Q.match_length===n0&&Q.strstart-Q.match_start>4096))Q.match_length=n0-1}if(Q.prev_length>=n0&&Q.match_length<=Q.prev_length){W=Q.strstart+Q.lookahead-n0,$=QJ._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-n0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=W)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+n0-1])&Q.hash_mask,X=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=n0-1,Q.strstart++,$){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}}else if(Q.match_available){if($=QJ._tr_tally(Q,0,Q.window[Q.strstart-1]),$)_Q(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return jQ}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)$=QJ._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<n0-1?Q.strstart:n0-1,J===oJ){if(_Q(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}return fX}function Tz(Q,J){var X,$,W,H,U=Q.window;for(;;){if(Q.lookahead<=lJ){if(K1(Q),Q.lookahead<=lJ&&J===H1)return jQ;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=n0&&Q.strstart>0){if(W=Q.strstart-1,$=U[W],$===U[++W]&&$===U[++W]&&$===U[++W]){H=Q.strstart+lJ;do;while($===U[++W]&&$===U[++W]&&$===U[++W]&&$===U[++W]&&$===U[++W]&&$===U[++W]&&$===U[++W]&&$===U[++W]&&W<H);if(Q.match_length=lJ-(H-W),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=n0)X=QJ._tr_tally(Q,1,Q.match_length-n0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else X=QJ._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}}if(Q.insert=0,J===oJ){if(_Q(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}return fX}function Az(Q,J){var X;for(;;){if(Q.lookahead===0){if(K1(Q),Q.lookahead===0){if(J===H1)return jQ;break}}if(Q.match_length=0,X=QJ._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,X){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}}if(Q.insert=0,J===oJ){if(_Q(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(_Q(Q,!1),Q.strm.avail_out===0)return jQ}return fX}function MJ(Q,J,X,$,W){this.good_length=Q,this.max_lazy=J,this.nice_length=X,this.max_chain=$,this.func=W}var p1;p1=[new MJ(0,0,0,0,Pz),new MJ(4,4,8,4,ZU),new MJ(4,5,16,8,ZU),new MJ(4,6,32,32,ZU),new MJ(4,4,16,16,c1),new MJ(8,16,32,32,c1),new MJ(8,16,128,128,c1),new MJ(8,32,128,256,c1),new MJ(32,128,258,1024,c1),new MJ(32,258,258,4096,c1)];function Rz(Q){Q.window_size=2*Q.w_size,dJ(Q.head),Q.max_lazy_match=p1[Q.level].max_lazy,Q.good_match=p1[Q.level].good_length,Q.nice_match=p1[Q.level].nice_length,Q.max_chain_length=p1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=n0-1,Q.match_available=0,Q.ins_h=0}function Ez(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=dY,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new bQ.Buf16(Cz*2),this.dyn_dtree=new bQ.Buf16((2*zz+1)*2),this.bl_tree=new bQ.Buf16((2*Oz+1)*2),dJ(this.dyn_ltree),dJ(this.dyn_dtree),dJ(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new bQ.Buf16(Lz+1),this.heap=new bQ.Buf16(2*GU+1),dJ(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new bQ.Buf16(2*GU+1),dJ(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function HW(Q){var J;if(!Q||!Q.state)return mJ(Q,JJ);if(Q.total_in=Q.total_out=0,Q.data_type=Gz,J=Q.state,J.pending=0,J.pending_out=0,J.wrap<0)J.wrap=-J.wrap;return J.status=J.wrap?lY:G1,Q.adler=J.wrap===2?0:1,J.last_flush=H1,QJ._tr_init(J),IJ}function FW(Q){var J=HW(Q);if(J===IJ)Rz(Q.state);return J}function Sz(Q,J){if(!Q||!Q.state)return JJ;if(Q.state.wrap!==2)return JJ;return Q.state.gzhead=J,IJ}function qW(Q,J,X,$,W,H){if(!Q)return JJ;var U=1;if(J===Yz)J=6;if($<0)U=0,$=-$;else if($>15)U=2,$-=16;if(W<1||W>Wz||X!==dY||$<8||$>15||J<0||J>9||H<0||H>Uz)return mJ(Q,JJ);if($===8)$=9;var C=new Ez;return Q.state=C,C.strm=Q,C.wrap=U,C.gzhead=null,C.w_bits=$,C.w_size=1<<C.w_bits,C.w_mask=C.w_size-1,C.hash_bits=W+7,C.hash_size=1<<C.hash_bits,C.hash_mask=C.hash_size-1,C.hash_shift=~~((C.hash_bits+n0-1)/n0),C.window=new bQ.Buf8(C.w_size*2),C.head=new bQ.Buf16(C.hash_size),C.prev=new bQ.Buf16(C.w_size),C.lit_bufsize=1<<W+6,C.pending_buf_size=C.lit_bufsize*4,C.pending_buf=new bQ.Buf8(C.pending_buf_size),C.d_buf=1*C.lit_bufsize,C.l_buf=3*C.lit_bufsize,C.level=J,C.strategy=H,C.method=X,FW(Q)}function jz(Q,J){return qW(Q,J,dY,Kz,Hz,Zz)}function Bz(Q,J){var X,$,W,H;if(!Q||!Q.state||J>UW||J<0)return Q?mJ(Q,JJ):JJ;if($=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||$.status===yX&&J!==oJ)return mJ(Q,Q.avail_out===0?UU:JJ);if($.strm=Q,X=$.last_flush,$.last_flush=J,$.status===lY)if($.wrap===2)if(Q.adler=0,s0($,31),s0($,139),s0($,8),!$.gzhead)s0($,0),s0($,0),s0($,0),s0($,0),s0($,0),s0($,$.level===9?2:$.strategy>=pY||$.level<2?4:0),s0($,Iz),$.status=G1;else{if(s0($,($.gzhead.text?1:0)+($.gzhead.hcrc?2:0)+(!$.gzhead.extra?0:4)+(!$.gzhead.name?0:8)+(!$.gzhead.comment?0:16)),s0($,$.gzhead.time&255),s0($,$.gzhead.time>>8&255),s0($,$.gzhead.time>>16&255),s0($,$.gzhead.time>>24&255),s0($,$.level===9?2:$.strategy>=pY||$.level<2?4:0),s0($,$.gzhead.os&255),$.gzhead.extra&&$.gzhead.extra.length)s0($,$.gzhead.extra.length&255),s0($,$.gzhead.extra.length>>8&255);if($.gzhead.hcrc)Q.adler=bJ(Q.adler,$.pending_buf,$.pending,0);$.gzindex=0,$.status=WU}else{var U=dY+($.w_bits-8<<4)<<8,C=-1;if($.strategy>=pY||$.level<2)C=0;else if($.level<6)C=1;else if($.level===6)C=2;else C=3;if(U|=C<<6,$.strstart!==0)U|=Mz;if(U+=31-U%31,$.status=G1,gX($,U),$.strstart!==0)gX($,Q.adler>>>16),gX($,Q.adler&65535);Q.adler=1}if($.status===WU)if($.gzhead.extra){W=$.pending;while($.gzindex<($.gzhead.extra.length&65535)){if($.pending===$.pending_buf_size){if($.gzhead.hcrc&&$.pending>W)Q.adler=bJ(Q.adler,$.pending_buf,$.pending-W,W);if(uJ(Q),W=$.pending,$.pending===$.pending_buf_size)break}s0($,$.gzhead.extra[$.gzindex]&255),$.gzindex++}if($.gzhead.hcrc&&$.pending>W)Q.adler=bJ(Q.adler,$.pending_buf,$.pending-W,W);if($.gzindex===$.gzhead.extra.length)$.gzindex=0,$.status=hY}else $.status=hY;if($.status===hY)if($.gzhead.name){W=$.pending;do{if($.pending===$.pending_buf_size){if($.gzhead.hcrc&&$.pending>W)Q.adler=bJ(Q.adler,$.pending_buf,$.pending-W,W);if(uJ(Q),W=$.pending,$.pending===$.pending_buf_size){H=1;break}}if($.gzindex<$.gzhead.name.length)H=$.gzhead.name.charCodeAt($.gzindex++)&255;else H=0;s0($,H)}while(H!==0);if($.gzhead.hcrc&&$.pending>W)Q.adler=bJ(Q.adler,$.pending_buf,$.pending-W,W);if(H===0)$.gzindex=0,$.status=bY}else $.status=bY;if($.status===bY)if($.gzhead.comment){W=$.pending;do{if($.pending===$.pending_buf_size){if($.gzhead.hcrc&&$.pending>W)Q.adler=bJ(Q.adler,$.pending_buf,$.pending-W,W);if(uJ(Q),W=$.pending,$.pending===$.pending_buf_size){H=1;break}}if($.gzindex<$.gzhead.comment.length)H=$.gzhead.comment.charCodeAt($.gzindex++)&255;else H=0;s0($,H)}while(H!==0);if($.gzhead.hcrc&&$.pending>W)Q.adler=bJ(Q.adler,$.pending_buf,$.pending-W,W);if(H===0)$.status=uY}else $.status=uY;if($.status===uY)if($.gzhead.hcrc){if($.pending+2>$.pending_buf_size)uJ(Q);if($.pending+2<=$.pending_buf_size)s0($,Q.adler&255),s0($,Q.adler>>8&255),Q.adler=0,$.status=G1}else $.status=G1;if($.pending!==0){if(uJ(Q),Q.avail_out===0)return $.last_flush=-1,IJ}else if(Q.avail_in===0&&GW(J)<=GW(X)&&J!==oJ)return mJ(Q,UU);if($.status===yX&&Q.avail_in!==0)return mJ(Q,UU);if(Q.avail_in!==0||$.lookahead!==0||J!==H1&&$.status!==yX){var A=$.strategy===pY?Az($,J):$.strategy===$z?Tz($,J):p1[$.level].func($,J);if(A===W1||A===h1)$.status=yX;if(A===jQ||A===W1){if(Q.avail_out===0)$.last_flush=-1;return IJ}if(A===fX){if(J===Qz)QJ._tr_align($);else if(J!==UW){if(QJ._tr_stored_block($,0,0,!1),J===Jz){if(dJ($.head),$.lookahead===0)$.strstart=0,$.block_start=0,$.insert=0}}if(uJ(Q),Q.avail_out===0)return $.last_flush=-1,IJ}}if(J!==oJ)return IJ;if($.wrap<=0)return ZW;if($.wrap===2)s0($,Q.adler&255),s0($,Q.adler>>8&255),s0($,Q.adler>>16&255),s0($,Q.adler>>24&255),s0($,Q.total_in&255),s0($,Q.total_in>>8&255),s0($,Q.total_in>>16&255),s0($,Q.total_in>>24&255);else gX($,Q.adler>>>16),gX($,Q.adler&65535);if(uJ(Q),$.wrap>0)$.wrap=-$.wrap;return $.pending!==0?IJ:ZW}function kz(Q){var J;if(!Q||!Q.state)return JJ;if(J=Q.state.status,J!==lY&&J!==WU&&J!==hY&&J!==bY&&J!==uY&&J!==G1&&J!==yX)return mJ(Q,JJ);return Q.state=null,J===G1?mJ(Q,Xz):IJ}function vz(Q,J){var X=J.length,$,W,H,U,C,A,M,D;if(!Q||!Q.state)return JJ;if($=Q.state,U=$.wrap,U===2||U===1&&$.status!==lY||$.lookahead)return JJ;if(U===1)Q.adler=WW(Q.adler,J,X,0);if($.wrap=0,X>=$.w_size){if(U===0)dJ($.head),$.strstart=0,$.block_start=0,$.insert=0;D=new bQ.Buf8($.w_size),bQ.arraySet(D,J,X-$.w_size,$.w_size,0),J=D,X=$.w_size}C=Q.avail_in,A=Q.next_in,M=Q.input,Q.avail_in=X,Q.next_in=0,Q.input=J,K1($);while($.lookahead>=n0){W=$.strstart,H=$.lookahead-(n0-1);do $.ins_h=($.ins_h<<$.hash_shift^$.window[W+n0-1])&$.hash_mask,$.prev[W&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=W,W++;while(--H);$.strstart=W,$.lookahead=n0-1,K1($)}return $.strstart+=$.lookahead,$.block_start=$.strstart,$.insert=$.lookahead,$.lookahead=0,$.match_length=$.prev_length=n0-1,$.match_available=0,Q.next_in=A,Q.input=M,Q.avail_in=C,$.wrap=U,IJ}Nz.deflateInit=jz;Nz.deflateInit2=qW;Nz.deflateReset=FW;Nz.deflateResetKeep=HW;Nz.deflateSetHeader=Sz;Nz.deflate=Bz;Nz.deflateEnd=kz;Nz.deflateSetDictionary=vz;Nz.deflateInfo="pako deflate (from Nodeca project)"});var KU=f0((bz)=>{var mY=kJ(),OW=!0,CW=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){OW=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){CW=!1}var cX=new mY.Buf8(256);for(DJ=0;DJ<256;DJ++)cX[DJ]=DJ>=252?6:DJ>=248?5:DJ>=240?4:DJ>=224?3:DJ>=192?2:1;var DJ;cX[254]=cX[254]=1;bz.string2buf=function(Q){var J,X,$,W,H,U=Q.length,C=0;for(W=0;W<U;W++){if(X=Q.charCodeAt(W),(X&64512)===55296&&W+1<U){if($=Q.charCodeAt(W+1),($&64512)===56320)X=65536+(X-55296<<10)+($-56320),W++}C+=X<128?1:X<2048?2:X<65536?3:4}J=new mY.Buf8(C);for(H=0,W=0;H<C;W++){if(X=Q.charCodeAt(W),(X&64512)===55296&&W+1<U){if($=Q.charCodeAt(W+1),($&64512)===56320)X=65536+(X-55296<<10)+($-56320),W++}if(X<128)J[H++]=X;else if(X<2048)J[H++]=192|X>>>6,J[H++]=128|X&63;else if(X<65536)J[H++]=224|X>>>12,J[H++]=128|X>>>6&63,J[H++]=128|X&63;else J[H++]=240|X>>>18,J[H++]=128|X>>>12&63,J[H++]=128|X>>>6&63,J[H++]=128|X&63}return J};function LW(Q,J){if(J<65534){if(Q.subarray&&CW||!Q.subarray&&OW)return String.fromCharCode.apply(null,mY.shrinkBuf(Q,J))}var X="";for(var $=0;$<J;$++)X+=String.fromCharCode(Q[$]);return X}bz.buf2binstring=function(Q){return LW(Q,Q.length)};bz.binstring2buf=function(Q){var J=new mY.Buf8(Q.length);for(var X=0,$=J.length;X<$;X++)J[X]=Q.charCodeAt(X);return J};bz.buf2string=function(Q,J){var X,$,W,H,U=J||Q.length,C=Array(U*2);for($=0,X=0;X<U;){if(W=Q[X++],W<128){C[$++]=W;continue}if(H=cX[W],H>4){C[$++]=65533,X+=H-1;continue}W&=H===2?31:H===3?15:7;while(H>1&&X<U)W=W<<6|Q[X++]&63,H--;if(H>1){C[$++]=65533;continue}if(W<65536)C[$++]=W;else W-=65536,C[$++]=55296|W>>10&1023,C[$++]=56320|W&1023}return LW(C,$)};bz.utf8border=function(Q,J){var X;if(J=J||Q.length,J>Q.length)J=Q.length;X=J-1;while(X>=0&&(Q[X]&192)===128)X--;if(X<0)return J;if(X===0)return J;return X+cX[Q[X]]>J?X:J}});var HU=f0((MR,MW)=>{function nz(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}MW.exports=nz});var TW=f0((J9)=>{var pX=zW(),hX=kJ(),qU=KU(),zU=cY(),rz=HU(),PW=Object.prototype.toString,sz=0,FU=4,b1=0,IW=1,DW=2,az=-1,iz=0,tz=8;function F1(Q){if(!(this instanceof F1))return new F1(Q);this.options=hX.assign({level:az,method:tz,chunkSize:16384,windowBits:15,memLevel:8,strategy:iz,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>0)J.windowBits=-J.windowBits;else if(J.gzip&&J.windowBits>0&&J.windowBits<16)J.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new rz,this.strm.avail_out=0;var X=pX.deflateInit2(this.strm,J.level,J.method,J.windowBits,J.memLevel,J.strategy);if(X!==b1)throw Error(zU[X]);if(J.header)pX.deflateSetHeader(this.strm,J.header);if(J.dictionary){var $;if(typeof J.dictionary==="string")$=qU.string2buf(J.dictionary);else if(PW.call(J.dictionary)==="[object ArrayBuffer]")$=new Uint8Array(J.dictionary);else $=J.dictionary;if(X=pX.deflateSetDictionary(this.strm,$),X!==b1)throw Error(zU[X]);this._dict_set=!0}}F1.prototype.push=function(Q,J){var X=this.strm,$=this.options.chunkSize,W,H;if(this.ended)return!1;if(H=J===~~J?J:J===!0?FU:sz,typeof Q==="string")X.input=qU.string2buf(Q);else if(PW.call(Q)==="[object ArrayBuffer]")X.input=new Uint8Array(Q);else X.input=Q;X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0)X.output=new hX.Buf8($),X.next_out=0,X.avail_out=$;if(W=pX.deflate(X,H),W!==IW&&W!==b1)return this.onEnd(W),this.ended=!0,!1;if(X.avail_out===0||X.avail_in===0&&(H===FU||H===DW))if(this.options.to==="string")this.onData(qU.buf2binstring(hX.shrinkBuf(X.output,X.next_out)));else this.onData(hX.shrinkBuf(X.output,X.next_out))}while((X.avail_in>0||X.avail_out===0)&&W!==IW);if(H===FU)return W=pX.deflateEnd(this.strm),this.onEnd(W),this.ended=!0,W===b1;if(H===DW)return this.onEnd(b1),X.avail_out=0,!0;return!0};F1.prototype.onData=function(Q){this.chunks.push(Q)};F1.prototype.onEnd=function(Q){if(Q===b1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=hX.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function OU(Q,J){var X=new F1(J);if(X.push(Q,!0),X.err)throw X.msg||zU[X.err];return X.result}function ez(Q,J){return J=J||{},J.raw=!0,OU(Q,J)}function Q9(Q,J){return J=J||{},J.gzip=!0,OU(Q,J)}J9.Deflate=F1;J9.deflate=OU;J9.deflateRaw=ez;J9.gzip=Q9});var RW=f0((DR,AW)=>{var oY=30,U9=12;AW.exports=function(J,X){var $,W,H,U,C,A,M,D,L,P,E,S,B,j,N,v,x,w,y,n,r,s,i,u,Q0;$=J.state,W=J.next_in,u=J.input,H=W+(J.avail_in-5),U=J.next_out,Q0=J.output,C=U-(X-J.avail_out),A=U+(J.avail_out-257),M=$.dmax,D=$.wsize,L=$.whave,P=$.wnext,E=$.window,S=$.hold,B=$.bits,j=$.lencode,N=$.distcode,v=(1<<$.lenbits)-1,x=(1<<$.distbits)-1;Q:do{if(B<15)S+=u[W++]<<B,B+=8,S+=u[W++]<<B,B+=8;w=j[S&v];J:for(;;){if(y=w>>>24,S>>>=y,B-=y,y=w>>>16&255,y===0)Q0[U++]=w&65535;else if(y&16){if(n=w&65535,y&=15,y){if(B<y)S+=u[W++]<<B,B+=8;n+=S&(1<<y)-1,S>>>=y,B-=y}if(B<15)S+=u[W++]<<B,B+=8,S+=u[W++]<<B,B+=8;w=N[S&x];X:for(;;){if(y=w>>>24,S>>>=y,B-=y,y=w>>>16&255,y&16){if(r=w&65535,y&=15,B<y){if(S+=u[W++]<<B,B+=8,B<y)S+=u[W++]<<B,B+=8}if(r+=S&(1<<y)-1,r>M){J.msg="invalid distance too far back",$.mode=oY;break Q}if(S>>>=y,B-=y,y=U-C,r>y){if(y=r-y,y>L){if($.sane){J.msg="invalid distance too far back",$.mode=oY;break Q}}if(s=0,i=E,P===0){if(s+=D-y,y<n){n-=y;do Q0[U++]=E[s++];while(--y);s=U-r,i=Q0}}else if(P<y){if(s+=D+P-y,y-=P,y<n){n-=y;do Q0[U++]=E[s++];while(--y);if(s=0,P<n){y=P,n-=y;do Q0[U++]=E[s++];while(--y);s=U-r,i=Q0}}}else if(s+=P-y,y<n){n-=y;do Q0[U++]=E[s++];while(--y);s=U-r,i=Q0}while(n>2)Q0[U++]=i[s++],Q0[U++]=i[s++],Q0[U++]=i[s++],n-=3;if(n){if(Q0[U++]=i[s++],n>1)Q0[U++]=i[s++]}}else{s=U-r;do Q0[U++]=Q0[s++],Q0[U++]=Q0[s++],Q0[U++]=Q0[s++],n-=3;while(n>2);if(n){if(Q0[U++]=Q0[s++],n>1)Q0[U++]=Q0[s++]}}}else if((y&64)===0){w=N[(w&65535)+(S&(1<<y)-1)];continue X}else{J.msg="invalid distance code",$.mode=oY;break Q}break}}else if((y&64)===0){w=j[(w&65535)+(S&(1<<y)-1)];continue J}else if(y&32){$.mode=U9;break Q}else{J.msg="invalid literal/length code",$.mode=oY;break Q}break}}while(W<H&&U<A);n=B>>3,W-=n,B-=n<<3,S&=(1<<B)-1,J.next_in=W,J.next_out=U,J.avail_in=W<H?5+(H-W):5-(W-H),J.avail_out=U<A?257+(A-U):257-(U-A),$.hold=S,$.bits=B;return}});var NW=f0((PR,vW)=>{var EW=kJ(),u1=15,SW=852,jW=592,BW=0,CU=1,kW=2,Z9=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],G9=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],W9=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],K9=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];vW.exports=function(J,X,$,W,H,U,C,A){var M=A.bits,D=0,L=0,P=0,E=0,S=0,B=0,j=0,N=0,v=0,x=0,w,y,n,r,s,i=null,u=0,Q0,Y=new EW.Buf16(u1+1),G=new EW.Buf16(u1+1),F=null,Z=0,K,O,I;for(D=0;D<=u1;D++)Y[D]=0;for(L=0;L<W;L++)Y[X[$+L]]++;S=M;for(E=u1;E>=1;E--)if(Y[E]!==0)break;if(S>E)S=E;if(E===0)return H[U++]=20971520,H[U++]=20971520,A.bits=1,0;for(P=1;P<E;P++)if(Y[P]!==0)break;if(S<P)S=P;N=1;for(D=1;D<=u1;D++)if(N<<=1,N-=Y[D],N<0)return-1;if(N>0&&(J===BW||E!==1))return-1;G[1]=0;for(D=1;D<u1;D++)G[D+1]=G[D]+Y[D];for(L=0;L<W;L++)if(X[$+L]!==0)C[G[X[$+L]]++]=L;if(J===BW)i=F=C,Q0=19;else if(J===CU)i=Z9,u-=257,F=G9,Z-=257,Q0=256;else i=W9,F=K9,Q0=-1;if(x=0,L=0,D=P,s=U,B=S,j=0,n=-1,v=1<<S,r=v-1,J===CU&&v>SW||J===kW&&v>jW)return 1;for(;;){if(K=D-j,C[L]<Q0)O=0,I=C[L];else if(C[L]>Q0)O=F[Z+C[L]],I=i[u+C[L]];else O=96,I=0;w=1<<D-j,y=1<<B,P=y;do y-=w,H[s+(x>>j)+y]=K<<24|O<<16|I|0;while(y!==0);w=1<<D-1;while(x&w)w>>=1;if(w!==0)x&=w-1,x+=w;else x=0;if(L++,--Y[D]===0){if(D===E)break;D=X[$+C[L]]}if(D>S&&(x&r)!==n){if(j===0)j=S;s+=P,B=D-j,N=1<<B;while(B+j<E){if(N-=Y[B+j],N<=0)break;B++,N<<=1}if(v+=1<<B,J===CU&&v>SW||J===kW&&v>jW)return 1;n=x&r,H[n]=S<<24|B<<16|s-U|0}}if(x!==0)H[s+x]=D-j<<24|4194304|0;return A.bits=S,0}});var FK=f0((k9)=>{var aQ=kJ(),TU=VU(),PJ=$U(),H9=RW(),bX=NW(),F9=0,YK=1,VK=2,xW=4,q9=5,nY=6,q1=0,z9=1,O9=2,XJ=-2,$K=-3,AU=-4,C9=-5,wW=8,UK=1,_W=2,gW=3,yW=4,fW=5,cW=6,pW=7,hW=8,bW=9,uW=10,aY=11,NJ=12,LU=13,dW=14,MU=15,lW=16,mW=17,oW=18,nW=19,rY=20,sY=21,rW=22,sW=23,aW=24,iW=25,tW=26,IU=27,eW=28,QK=29,YQ=30,RU=31,L9=32,M9=852,I9=592,D9=15,P9=D9;function JK(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function T9(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new aQ.Buf16(320),this.work=new aQ.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ZK(Q){var J;if(!Q||!Q.state)return XJ;if(J=Q.state,Q.total_in=Q.total_out=J.total=0,Q.msg="",J.wrap)Q.adler=J.wrap&1;return J.mode=UK,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new aQ.Buf32(M9),J.distcode=J.distdyn=new aQ.Buf32(I9),J.sane=1,J.back=-1,q1}function GK(Q){var J;if(!Q||!Q.state)return XJ;return J=Q.state,J.wsize=0,J.whave=0,J.wnext=0,ZK(Q)}function WK(Q,J){var X,$;if(!Q||!Q.state)return XJ;if($=Q.state,J<0)X=0,J=-J;else if(X=(J>>4)+1,J<48)J&=15;if(J&&(J<8||J>15))return XJ;if($.window!==null&&$.wbits!==J)$.window=null;return $.wrap=X,$.wbits=J,GK(Q)}function KK(Q,J){var X,$;if(!Q)return XJ;if($=new T9,Q.state=$,$.window=null,X=WK(Q,J),X!==q1)Q.state=null;return X}function A9(Q){return KK(Q,P9)}var XK=!0,DU,PU;function R9(Q){if(XK){var J;DU=new aQ.Buf32(512),PU=new aQ.Buf32(32),J=0;while(J<144)Q.lens[J++]=8;while(J<256)Q.lens[J++]=9;while(J<280)Q.lens[J++]=7;while(J<288)Q.lens[J++]=8;bX(YK,Q.lens,0,288,DU,0,Q.work,{bits:9}),J=0;while(J<32)Q.lens[J++]=5;bX(VK,Q.lens,0,32,PU,0,Q.work,{bits:5}),XK=!1}Q.lencode=DU,Q.lenbits=9,Q.distcode=PU,Q.distbits=5}function HK(Q,J,X,$){var W,H=Q.state;if(H.window===null)H.wsize=1<<H.wbits,H.wnext=0,H.whave=0,H.window=new aQ.Buf8(H.wsize);if($>=H.wsize)aQ.arraySet(H.window,J,X-H.wsize,H.wsize,0),H.wnext=0,H.whave=H.wsize;else{if(W=H.wsize-H.wnext,W>$)W=$;if(aQ.arraySet(H.window,J,X-$,W,H.wnext),$-=W,$)aQ.arraySet(H.window,J,X-$,$,0),H.wnext=$,H.whave=H.wsize;else{if(H.wnext+=W,H.wnext===H.wsize)H.wnext=0;if(H.whave<H.wsize)H.whave+=W}}return 0}function E9(Q,J){var X,$,W,H,U,C,A,M,D,L,P,E,S,B,j=0,N,v,x,w,y,n,r,s,i=new aQ.Buf8(4),u,Q0,Y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Q||!Q.state||!Q.output||!Q.input&&Q.avail_in!==0)return XJ;if(X=Q.state,X.mode===NJ)X.mode=LU;U=Q.next_out,W=Q.output,A=Q.avail_out,H=Q.next_in,$=Q.input,C=Q.avail_in,M=X.hold,D=X.bits,L=C,P=A,s=q1;Q:for(;;)switch(X.mode){case UK:if(X.wrap===0){X.mode=LU;break}while(D<16){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(X.wrap&2&&M===35615){X.check=0,i[0]=M&255,i[1]=M>>>8&255,X.check=PJ(X.check,i,2,0),M=0,D=0,X.mode=_W;break}if(X.flags=0,X.head)X.head.done=!1;if(!(X.wrap&1)||(((M&255)<<8)+(M>>8))%31){Q.msg="incorrect header check",X.mode=YQ;break}if((M&15)!==wW){Q.msg="unknown compression method",X.mode=YQ;break}if(M>>>=4,D-=4,r=(M&15)+8,X.wbits===0)X.wbits=r;else if(r>X.wbits){Q.msg="invalid window size",X.mode=YQ;break}X.dmax=1<<r,Q.adler=X.check=1,X.mode=M&512?uW:NJ,M=0,D=0;break;case _W:while(D<16){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(X.flags=M,(X.flags&255)!==wW){Q.msg="unknown compression method",X.mode=YQ;break}if(X.flags&57344){Q.msg="unknown header flags set",X.mode=YQ;break}if(X.head)X.head.text=M>>8&1;if(X.flags&512)i[0]=M&255,i[1]=M>>>8&255,X.check=PJ(X.check,i,2,0);M=0,D=0,X.mode=gW;case gW:while(D<32){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(X.head)X.head.time=M;if(X.flags&512)i[0]=M&255,i[1]=M>>>8&255,i[2]=M>>>16&255,i[3]=M>>>24&255,X.check=PJ(X.check,i,4,0);M=0,D=0,X.mode=yW;case yW:while(D<16){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(X.head)X.head.xflags=M&255,X.head.os=M>>8;if(X.flags&512)i[0]=M&255,i[1]=M>>>8&255,X.check=PJ(X.check,i,2,0);M=0,D=0,X.mode=fW;case fW:if(X.flags&1024){while(D<16){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(X.length=M,X.head)X.head.extra_len=M;if(X.flags&512)i[0]=M&255,i[1]=M>>>8&255,X.check=PJ(X.check,i,2,0);M=0,D=0}else if(X.head)X.head.extra=null;X.mode=cW;case cW:if(X.flags&1024){if(E=X.length,E>C)E=C;if(E){if(X.head){if(r=X.head.extra_len-X.length,!X.head.extra)X.head.extra=Array(X.head.extra_len);aQ.arraySet(X.head.extra,$,H,E,r)}if(X.flags&512)X.check=PJ(X.check,$,E,H);C-=E,H+=E,X.length-=E}if(X.length)break Q}X.length=0,X.mode=pW;case pW:if(X.flags&2048){if(C===0)break Q;E=0;do if(r=$[H+E++],X.head&&r&&X.length<65536)X.head.name+=String.fromCharCode(r);while(r&&E<C);if(X.flags&512)X.check=PJ(X.check,$,E,H);if(C-=E,H+=E,r)break Q}else if(X.head)X.head.name=null;X.length=0,X.mode=hW;case hW:if(X.flags&4096){if(C===0)break Q;E=0;do if(r=$[H+E++],X.head&&r&&X.length<65536)X.head.comment+=String.fromCharCode(r);while(r&&E<C);if(X.flags&512)X.check=PJ(X.check,$,E,H);if(C-=E,H+=E,r)break Q}else if(X.head)X.head.comment=null;X.mode=bW;case bW:if(X.flags&512){while(D<16){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(M!==(X.check&65535)){Q.msg="header crc mismatch",X.mode=YQ;break}M=0,D=0}if(X.head)X.head.hcrc=X.flags>>9&1,X.head.done=!0;Q.adler=X.check=0,X.mode=NJ;break;case uW:while(D<32){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}Q.adler=X.check=JK(M),M=0,D=0,X.mode=aY;case aY:if(X.havedict===0)return Q.next_out=U,Q.avail_out=A,Q.next_in=H,Q.avail_in=C,X.hold=M,X.bits=D,O9;Q.adler=X.check=1,X.mode=NJ;case NJ:if(J===q9||J===nY)break Q;case LU:if(X.last){M>>>=D&7,D-=D&7,X.mode=IU;break}while(D<3){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}switch(X.last=M&1,M>>>=1,D-=1,M&3){case 0:X.mode=dW;break;case 1:if(R9(X),X.mode=rY,J===nY){M>>>=2,D-=2;break Q}break;case 2:X.mode=mW;break;case 3:Q.msg="invalid block type",X.mode=YQ}M>>>=2,D-=2;break;case dW:M>>>=D&7,D-=D&7;while(D<32){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if((M&65535)!==(M>>>16^65535)){Q.msg="invalid stored block lengths",X.mode=YQ;break}if(X.length=M&65535,M=0,D=0,X.mode=MU,J===nY)break Q;case MU:X.mode=lW;case lW:if(E=X.length,E){if(E>C)E=C;if(E>A)E=A;if(E===0)break Q;aQ.arraySet(W,$,H,E,U),C-=E,H+=E,A-=E,U+=E,X.length-=E;break}X.mode=NJ;break;case mW:while(D<14){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(X.nlen=(M&31)+257,M>>>=5,D-=5,X.ndist=(M&31)+1,M>>>=5,D-=5,X.ncode=(M&15)+4,M>>>=4,D-=4,X.nlen>286||X.ndist>30){Q.msg="too many length or distance symbols",X.mode=YQ;break}X.have=0,X.mode=oW;case oW:while(X.have<X.ncode){while(D<3){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}X.lens[Y[X.have++]]=M&7,M>>>=3,D-=3}while(X.have<19)X.lens[Y[X.have++]]=0;if(X.lencode=X.lendyn,X.lenbits=7,u={bits:X.lenbits},s=bX(F9,X.lens,0,19,X.lencode,0,X.work,u),X.lenbits=u.bits,s){Q.msg="invalid code lengths set",X.mode=YQ;break}X.have=0,X.mode=nW;case nW:while(X.have<X.nlen+X.ndist){for(;;){if(j=X.lencode[M&(1<<X.lenbits)-1],N=j>>>24,v=j>>>16&255,x=j&65535,N<=D)break;if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(x<16)M>>>=N,D-=N,X.lens[X.have++]=x;else{if(x===16){Q0=N+2;while(D<Q0){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(M>>>=N,D-=N,X.have===0){Q.msg="invalid bit length repeat",X.mode=YQ;break}r=X.lens[X.have-1],E=3+(M&3),M>>>=2,D-=2}else if(x===17){Q0=N+3;while(D<Q0){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}M>>>=N,D-=N,r=0,E=3+(M&7),M>>>=3,D-=3}else{Q0=N+7;while(D<Q0){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}M>>>=N,D-=N,r=0,E=11+(M&127),M>>>=7,D-=7}if(X.have+E>X.nlen+X.ndist){Q.msg="invalid bit length repeat",X.mode=YQ;break}while(E--)X.lens[X.have++]=r}}if(X.mode===YQ)break;if(X.lens[256]===0){Q.msg="invalid code -- missing end-of-block",X.mode=YQ;break}if(X.lenbits=9,u={bits:X.lenbits},s=bX(YK,X.lens,0,X.nlen,X.lencode,0,X.work,u),X.lenbits=u.bits,s){Q.msg="invalid literal/lengths set",X.mode=YQ;break}if(X.distbits=6,X.distcode=X.distdyn,u={bits:X.distbits},s=bX(VK,X.lens,X.nlen,X.ndist,X.distcode,0,X.work,u),X.distbits=u.bits,s){Q.msg="invalid distances set",X.mode=YQ;break}if(X.mode=rY,J===nY)break Q;case rY:X.mode=sY;case sY:if(C>=6&&A>=258){if(Q.next_out=U,Q.avail_out=A,Q.next_in=H,Q.avail_in=C,X.hold=M,X.bits=D,H9(Q,P),U=Q.next_out,W=Q.output,A=Q.avail_out,H=Q.next_in,$=Q.input,C=Q.avail_in,M=X.hold,D=X.bits,X.mode===NJ)X.back=-1;break}X.back=0;for(;;){if(j=X.lencode[M&(1<<X.lenbits)-1],N=j>>>24,v=j>>>16&255,x=j&65535,N<=D)break;if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(v&&(v&240)===0){w=N,y=v,n=x;for(;;){if(j=X.lencode[n+((M&(1<<w+y)-1)>>w)],N=j>>>24,v=j>>>16&255,x=j&65535,w+N<=D)break;if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}M>>>=w,D-=w,X.back+=w}if(M>>>=N,D-=N,X.back+=N,X.length=x,v===0){X.mode=tW;break}if(v&32){X.back=-1,X.mode=NJ;break}if(v&64){Q.msg="invalid literal/length code",X.mode=YQ;break}X.extra=v&15,X.mode=rW;case rW:if(X.extra){Q0=X.extra;while(D<Q0){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}X.length+=M&(1<<X.extra)-1,M>>>=X.extra,D-=X.extra,X.back+=X.extra}X.was=X.length,X.mode=sW;case sW:for(;;){if(j=X.distcode[M&(1<<X.distbits)-1],N=j>>>24,v=j>>>16&255,x=j&65535,N<=D)break;if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if((v&240)===0){w=N,y=v,n=x;for(;;){if(j=X.distcode[n+((M&(1<<w+y)-1)>>w)],N=j>>>24,v=j>>>16&255,x=j&65535,w+N<=D)break;if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}M>>>=w,D-=w,X.back+=w}if(M>>>=N,D-=N,X.back+=N,v&64){Q.msg="invalid distance code",X.mode=YQ;break}X.offset=x,X.extra=v&15,X.mode=aW;case aW:if(X.extra){Q0=X.extra;while(D<Q0){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}X.offset+=M&(1<<X.extra)-1,M>>>=X.extra,D-=X.extra,X.back+=X.extra}if(X.offset>X.dmax){Q.msg="invalid distance too far back",X.mode=YQ;break}X.mode=iW;case iW:if(A===0)break Q;if(E=P-A,X.offset>E){if(E=X.offset-E,E>X.whave){if(X.sane){Q.msg="invalid distance too far back",X.mode=YQ;break}}if(E>X.wnext)E-=X.wnext,S=X.wsize-E;else S=X.wnext-E;if(E>X.length)E=X.length;B=X.window}else B=W,S=U-X.offset,E=X.length;if(E>A)E=A;A-=E,X.length-=E;do W[U++]=B[S++];while(--E);if(X.length===0)X.mode=sY;break;case tW:if(A===0)break Q;W[U++]=X.length,A--,X.mode=sY;break;case IU:if(X.wrap){while(D<32){if(C===0)break Q;C--,M|=$[H++]<<D,D+=8}if(P-=A,Q.total_out+=P,X.total+=P,P)Q.adler=X.check=X.flags?PJ(X.check,W,P,U-P):TU(X.check,W,P,U-P);if(P=A,(X.flags?M:JK(M))!==X.check){Q.msg="incorrect data check",X.mode=YQ;break}M=0,D=0}X.mode=eW;case eW:if(X.wrap&&X.flags){while(D<32){if(C===0)break Q;C--,M+=$[H++]<<D,D+=8}if(M!==(X.total&4294967295)){Q.msg="incorrect length check",X.mode=YQ;break}M=0,D=0}X.mode=QK;case QK:s=z9;break Q;case YQ:s=$K;break Q;case RU:return AU;case L9:default:return XJ}if(Q.next_out=U,Q.avail_out=A,Q.next_in=H,Q.avail_in=C,X.hold=M,X.bits=D,X.wsize||P!==Q.avail_out&&X.mode<YQ&&(X.mode<IU||J!==xW)){if(HK(Q,Q.output,Q.next_out,P-Q.avail_out))return X.mode=RU,AU}if(L-=Q.avail_in,P-=Q.avail_out,Q.total_in+=L,Q.total_out+=P,X.total+=P,X.wrap&&P)Q.adler=X.check=X.flags?PJ(X.check,W,P,Q.next_out-P):TU(X.check,W,P,Q.next_out-P);if(Q.data_type=X.bits+(X.last?64:0)+(X.mode===NJ?128:0)+(X.mode===rY||X.mode===MU?256:0),(L===0&&P===0||J===xW)&&s===q1)s=C9;return s}function S9(Q){if(!Q||!Q.state)return XJ;var J=Q.state;if(J.window)J.window=null;return Q.state=null,q1}function j9(Q,J){var X;if(!Q||!Q.state)return XJ;if(X=Q.state,(X.wrap&2)===0)return XJ;return X.head=J,J.done=!1,q1}function B9(Q,J){var X=J.length,$,W,H;if(!Q||!Q.state)return XJ;if($=Q.state,$.wrap!==0&&$.mode!==aY)return XJ;if($.mode===aY){if(W=1,W=TU(W,J,X,0),W!==$.check)return $K}if(H=HK(Q,J,X,X),H)return $.mode=RU,AU;return $.havedict=1,q1}k9.inflateReset=GK;k9.inflateReset2=WK;k9.inflateResetKeep=ZK;k9.inflateInit=A9;k9.inflateInit2=KK;k9.inflate=E9;k9.inflateEnd=S9;k9.inflateGetHeader=j9;k9.inflateSetDictionary=B9;k9.inflateInfo="pako inflate (from Nodeca project)"});var EU=f0((AR,qK)=>{qK.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var OK=f0((RR,zK)=>{function h9(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}zK.exports=h9});var LK=f0((l9)=>{var d1=FK(),uX=kJ(),iY=KU(),KQ=EU(),SU=cY(),b9=HU(),u9=OK(),CK=Object.prototype.toString;function z1(Q){if(!(this instanceof z1))return new z1(Q);this.options=uX.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>=0&&J.windowBits<16){if(J.windowBits=-J.windowBits,J.windowBits===0)J.windowBits=-15}if(J.windowBits>=0&&J.windowBits<16&&!(Q&&Q.windowBits))J.windowBits+=32;if(J.windowBits>15&&J.windowBits<48){if((J.windowBits&15)===0)J.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b9,this.strm.avail_out=0;var X=d1.inflateInit2(this.strm,J.windowBits);if(X!==KQ.Z_OK)throw Error(SU[X]);if(this.header=new u9,d1.inflateGetHeader(this.strm,this.header),J.dictionary){if(typeof J.dictionary==="string")J.dictionary=iY.string2buf(J.dictionary);else if(CK.call(J.dictionary)==="[object ArrayBuffer]")J.dictionary=new Uint8Array(J.dictionary);if(J.raw){if(X=d1.inflateSetDictionary(this.strm,J.dictionary),X!==KQ.Z_OK)throw Error(SU[X])}}}z1.prototype.push=function(Q,J){var X=this.strm,$=this.options.chunkSize,W=this.options.dictionary,H,U,C,A,M,D=!1;if(this.ended)return!1;if(U=J===~~J?J:J===!0?KQ.Z_FINISH:KQ.Z_NO_FLUSH,typeof Q==="string")X.input=iY.binstring2buf(Q);else if(CK.call(Q)==="[object ArrayBuffer]")X.input=new Uint8Array(Q);else X.input=Q;X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0)X.output=new uX.Buf8($),X.next_out=0,X.avail_out=$;if(H=d1.inflate(X,KQ.Z_NO_FLUSH),H===KQ.Z_NEED_DICT&&W)H=d1.inflateSetDictionary(this.strm,W);if(H===KQ.Z_BUF_ERROR&&D===!0)H=KQ.Z_OK,D=!1;if(H!==KQ.Z_STREAM_END&&H!==KQ.Z_OK)return this.onEnd(H),this.ended=!0,!1;if(X.next_out){if(X.avail_out===0||H===KQ.Z_STREAM_END||X.avail_in===0&&(U===KQ.Z_FINISH||U===KQ.Z_SYNC_FLUSH))if(this.options.to==="string"){if(C=iY.utf8border(X.output,X.next_out),A=X.next_out-C,M=iY.buf2string(X.output,C),X.next_out=A,X.avail_out=$-A,A)uX.arraySet(X.output,X.output,C,A,0);this.onData(M)}else this.onData(uX.shrinkBuf(X.output,X.next_out))}if(X.avail_in===0&&X.avail_out===0)D=!0}while((X.avail_in>0||X.avail_out===0)&&H!==KQ.Z_STREAM_END);if(H===KQ.Z_STREAM_END)U=KQ.Z_FINISH;if(U===KQ.Z_FINISH)return H=d1.inflateEnd(this.strm),this.onEnd(H),this.ended=!0,H===KQ.Z_OK;if(U===KQ.Z_SYNC_FLUSH)return this.onEnd(KQ.Z_OK),X.avail_out=0,!0;return!0};z1.prototype.onData=function(Q){this.chunks.push(Q)};z1.prototype.onEnd=function(Q){if(Q===KQ.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=uX.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function jU(Q,J){var X=new z1(J);if(X.push(Q,!0),X.err)throw X.msg||SU[X.err];return X.result}function d9(Q,J){return J=J||{},J.raw=!0,jU(Q,J)}l9.Inflate=z1;l9.inflate=jU;l9.inflateRaw=d9;l9.ungzip=jU});var DK=f0((SR,IK)=>{var s9=kJ().assign,a9=TW(),i9=LK(),t9=EU(),MK={};s9(MK,a9,i9,t9);IK.exports=MK});var TK=f0((XO)=>{var e9=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",QO=DK(),PK=UQ(),tY=sQ(),JO=e9?"uint8array":"array";XO.magic="\b\x00";function O1(Q,J){tY.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=J,this.meta={}}PK.inherits(O1,tY);O1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(PK.transformTo(JO,Q.data),!1)};O1.prototype.flush=function(){if(tY.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};O1.prototype.cleanUp=function(){tY.prototype.cleanUp.call(this),this._pako=null};O1.prototype._createPako=function(){this._pako=new QO[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(J){Q.push({data:J,meta:Q.meta})}};XO.compressWorker=function(Q){return new O1("Deflate",Q)};XO.uncompressWorker=function(){return new O1("Inflate",{})}});var BU=f0((UO)=>{var AK=sQ();UO.STORE={magic:"\x00\x00",compressWorker:function(){return new AK("STORE compression")},uncompressWorker:function(){return new AK("STORE decompression")}};UO.DEFLATE=TK()});var kU=f0((WO)=>{WO.LOCAL_FILE_HEADER="PK\x03\x04";WO.CENTRAL_FILE_HEADER="PK\x01\x02";WO.CENTRAL_DIRECTORY_END="PK\x05\x06";WO.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";WO.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";WO.DATA_DESCRIPTOR="PK\x07\b"});var jK=f0((vR,SK)=>{var l1=UQ(),m1=sQ(),vU=_1(),RK=_Y(),eY=kU(),QQ=function(Q,J){var X="",$;for($=0;$<J;$++)X+=String.fromCharCode(Q&255),Q=Q>>>8;return X},CO=function(Q,J){var X=Q;if(!Q)X=J?16893:33204;return(X&65535)<<16},LO=function(Q){return(Q||0)&63},EK=function(Q,J,X,$,W,H){var{file:U,compression:C}=Q,A=H!==vU.utf8encode,M=l1.transformTo("string",H(U.name)),D=l1.transformTo("string",vU.utf8encode(U.name)),L=U.comment,P=l1.transformTo("string",H(L)),E=l1.transformTo("string",vU.utf8encode(L)),S=D.length!==U.name.length,B=E.length!==L.length,j,N,v="",x="",w="",y=U.dir,n=U.date,r={crc32:0,compressedSize:0,uncompressedSize:0};if(!J||X)r.crc32=Q.crc32,r.compressedSize=Q.compressedSize,r.uncompressedSize=Q.uncompressedSize;var s=0;if(J)s|=8;if(!A&&(S||B))s|=2048;var i=0,u=0;if(y)i|=16;if(W==="UNIX")u=798,i|=CO(U.unixPermissions,y);else u=20,i|=LO(U.dosPermissions,y);if(j=n.getUTCHours(),j=j<<6,j=j|n.getUTCMinutes(),j=j<<5,j=j|n.getUTCSeconds()/2,N=n.getUTCFullYear()-1980,N=N<<4,N=N|n.getUTCMonth()+1,N=N<<5,N=N|n.getUTCDate(),S)x=QQ(1,1)+QQ(RK(M),4)+D,v+="up"+QQ(x.length,2)+x;if(B)w=QQ(1,1)+QQ(RK(P),4)+E,v+="uc"+QQ(w.length,2)+w;var Q0="";Q0+=`
17
- \x00`,Q0+=QQ(s,2),Q0+=C.magic,Q0+=QQ(j,2),Q0+=QQ(N,2),Q0+=QQ(r.crc32,4),Q0+=QQ(r.compressedSize,4),Q0+=QQ(r.uncompressedSize,4),Q0+=QQ(M.length,2),Q0+=QQ(v.length,2);var Y=eY.LOCAL_FILE_HEADER+Q0+M+v,G=eY.CENTRAL_FILE_HEADER+QQ(u,2)+Q0+QQ(P.length,2)+"\x00\x00\x00\x00"+QQ(i,4)+QQ($,4)+M+v+P;return{fileRecord:Y,dirRecord:G}},MO=function(Q,J,X,$,W){var H="",U=l1.transformTo("string",W($));return H=eY.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+QQ(Q,2)+QQ(Q,2)+QQ(J,4)+QQ(X,4)+QQ(U.length,2)+U,H},IO=function(Q){var J="";return J=eY.DATA_DESCRIPTOR+QQ(Q.crc32,4)+QQ(Q.compressedSize,4)+QQ(Q.uncompressedSize,4),J};function GJ(Q,J,X,$){m1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=J,this.zipPlatform=X,this.encodeFileName=$,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l1.inherits(GJ,m1);GJ.prototype.push=function(Q){var J=Q.meta.percent||0,X=this.entriesCount,$=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,m1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:X?(J+100*(X-$-1))/X:100}})};GJ.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var J=this.streamFiles&&!Q.file.dir;if(J){var X=EK(Q,J,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:X.fileRecord,meta:{percent:0}})}else this.accumulate=!0};GJ.prototype.closedSource=function(Q){this.accumulate=!1;var J=this.streamFiles&&!Q.file.dir,X=EK(Q,J,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(X.dirRecord),J)this.push({data:IO(Q),meta:{percent:100}});else{this.push({data:X.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};GJ.prototype.flush=function(){var Q=this.bytesWritten;for(var J=0;J<this.dirRecords.length;J++)this.push({data:this.dirRecords[J],meta:{percent:100}});var X=this.bytesWritten-Q,$=MO(this.dirRecords.length,X,Q,this.zipComment,this.encodeFileName);this.push({data:$,meta:{percent:100}})};GJ.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};GJ.prototype.registerPrevious=function(Q){this._sources.push(Q);var J=this;return Q.on("data",function(X){J.processChunk(X)}),Q.on("end",function(){if(J.closedSource(J.previous.streamInfo),J._sources.length)J.prepareNextSource();else J.end()}),Q.on("error",function(X){J.error(X)}),this};GJ.prototype.resume=function(){if(!m1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};GJ.prototype.error=function(Q){var J=this._sources;if(!m1.prototype.error.call(this,Q))return!1;for(var X=0;X<J.length;X++)try{J[X].error(Q)}catch($){}return!0};GJ.prototype.lock=function(){m1.prototype.lock.call(this);var Q=this._sources;for(var J=0;J<Q.length;J++)Q[J].lock()};SK.exports=GJ});var BK=f0((AO)=>{var DO=BU(),PO=jK(),TO=function(Q,J){var X=Q||J,$=DO[X];if(!$)throw Error(X+" is not a valid compression method !");return $};AO.generateWorker=function(Q,J,X){var $=new PO(J.streamFiles,X,J.platform,J.encodeFileName),W=0;try{Q.forEach(function(H,U){W++;var C=TO(U.options.compression,J.compression),A=U.options.compressionOptions||J.compressionOptions||{},M=U.dir,D=U.date;U._compressWorker(C,A).withStreamInfo("file",{name:H,dir:M,date:D,comment:U.comment||"",unixPermissions:U.unixPermissions,dosPermissions:U.dosPermissions}).pipe($)}),$.entriesCount=W}catch(H){$.error(H)}return $}});var vK=f0((xR,kK)=>{var EO=UQ(),QV=sQ();function dX(Q,J){QV.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(J)}EO.inherits(dX,QV);dX.prototype._bindStream=function(Q){var J=this;this._stream=Q,Q.pause(),Q.on("data",function(X){J.push({data:X,meta:{percent:0}})}).on("error",function(X){if(J.isPaused)this.generatedError=X;else J.error(X)}).on("end",function(){if(J.isPaused)J._upstreamEnded=!0;else J.end()})};dX.prototype.pause=function(){if(!QV.prototype.pause.call(this))return!1;return this._stream.pause(),!0};dX.prototype.resume=function(){if(!QV.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};kK.exports=dX});var hK=f0((wR,pK)=>{var SO=_1(),lX=UQ(),_K=sQ(),jO=_$(),gK=g$(),NK=gY(),BO=x8(),kO=BK(),xK=PX(),vO=vK(),yK=function(Q,J,X){var $=lX.getTypeOf(J),W,H=lX.extend(X||{},gK);if(H.date=H.date||new Date,H.compression!==null)H.compression=H.compression.toUpperCase();if(typeof H.unixPermissions==="string")H.unixPermissions=parseInt(H.unixPermissions,8);if(H.unixPermissions&&H.unixPermissions&16384)H.dir=!0;if(H.dosPermissions&&H.dosPermissions&16)H.dir=!0;if(H.dir)Q=fK(Q);if(H.createFolders&&(W=NO(Q)))cK.call(this,W,!0);var U=$==="string"&&H.binary===!1&&H.base64===!1;if(!X||typeof X.binary>"u")H.binary=!U;var C=J instanceof NK&&J.uncompressedSize===0;if(C||H.dir||!J||J.length===0)H.base64=!1,H.binary=!0,J="",H.compression="STORE",$="string";var A=null;if(J instanceof NK||J instanceof _K)A=J;else if(xK.isNode&&xK.isStream(J))A=new vO(Q,J);else A=lX.prepareContent(Q,J,H.binary,H.optimizedBinaryString,H.base64);var M=new BO(Q,A,H);this.files[Q]=M},NO=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var J=Q.lastIndexOf("/");return J>0?Q.substring(0,J):""},fK=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},cK=function(Q,J){if(J=typeof J<"u"?J:gK.createFolders,Q=fK(Q),!this.files[Q])yK.call(this,Q,null,{dir:!0,createFolders:J});return this.files[Q]};function wK(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var xO={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var J,X,$;for(J in this.files)if($=this.files[J],X=J.slice(this.root.length,J.length),X&&J.slice(0,this.root.length)===this.root)Q(X,$)},filter:function(Q){var J=[];return this.forEach(function(X,$){if(Q(X,$))J.push($)}),J},file:function(Q,J,X){if(arguments.length===1)if(wK(Q)){var $=Q;return this.filter(function(H,U){return!U.dir&&$.test(H)})}else{var W=this.files[this.root+Q];if(W&&!W.dir)return W;else return null}else Q=this.root+Q,yK.call(this,Q,J,X);return this},folder:function(Q){if(!Q)return this;if(wK(Q))return this.filter(function(W,H){return H.dir&&Q.test(W)});var J=this.root+Q,X=cK.call(this,J),$=this.clone();return $.root=X.name,$},remove:function(Q){Q=this.root+Q;var J=this.files[Q];if(!J){if(Q.slice(-1)!=="/")Q+="/";J=this.files[Q]}if(J&&!J.dir)delete this.files[Q];else{var X=this.filter(function(W,H){return H.name.slice(0,Q.length)===Q});for(var $=0;$<X.length;$++)delete this.files[X[$].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var J,X={};try{if(X=lX.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:SO.utf8encode}),X.type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring")X.type="string";if(!X.type)throw Error("No output type specified.");if(lX.checkSupport(X.type),X.platform==="darwin"||X.platform==="freebsd"||X.platform==="linux"||X.platform==="sunos")X.platform="UNIX";if(X.platform==="win32")X.platform="DOS";var $=X.comment||this.comment||"";J=kO.generateWorker(this,X,$)}catch(W){J=new _K("error"),J.error(W)}return new jO(J,X.type||"string",X.mimeType)},generateAsync:function(Q,J){return this.generateInternalStream(Q).accumulate(J)},generateNodeStream:function(Q,J){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(J)}};pK.exports=xO});var NU=f0((_R,uK)=>{var wO=UQ();function bK(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}bK.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+Q+"). Corrupted zip ?")},setIndex:function(Q){this.checkIndex(Q),this.index=Q},skip:function(Q){this.setIndex(this.index+Q)},byteAt:function(){},readInt:function(Q){var J=0,X;this.checkOffset(Q);for(X=this.index+Q-1;X>=this.index;X--)J=(J<<8)+this.byteAt(X);return this.index+=Q,J},readString:function(Q){return wO.transformTo("string",this.readData(Q))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var Q=this.readInt(4);return new Date(Date.UTC((Q>>25&127)+1980,(Q>>21&15)-1,Q>>16&31,Q>>11&31,Q>>5&63,(Q&31)<<1))}};uK.exports=bK});var xU=f0((gR,lK)=>{var dK=NU(),_O=UQ();function o1(Q){dK.call(this,Q);for(var J=0;J<this.data.length;J++)Q[J]=Q[J]&255}_O.inherits(o1,dK);o1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};o1.prototype.lastIndexOfSignature=function(Q){var J=Q.charCodeAt(0),X=Q.charCodeAt(1),$=Q.charCodeAt(2),W=Q.charCodeAt(3);for(var H=this.length-4;H>=0;--H)if(this.data[H]===J&&this.data[H+1]===X&&this.data[H+2]===$&&this.data[H+3]===W)return H-this.zero;return-1};o1.prototype.readAndCheckSignature=function(Q){var J=Q.charCodeAt(0),X=Q.charCodeAt(1),$=Q.charCodeAt(2),W=Q.charCodeAt(3),H=this.readData(4);return J===H[0]&&X===H[1]&&$===H[2]&&W===H[3]};o1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};lK.exports=o1});var nK=f0((yR,oK)=>{var mK=NU(),gO=UQ();function n1(Q){mK.call(this,Q)}gO.inherits(n1,mK);n1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};n1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};n1.prototype.readAndCheckSignature=function(Q){var J=this.readData(4);return Q===J};n1.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};oK.exports=n1});var _U=f0((fR,sK)=>{var rK=xU(),yO=UQ();function wU(Q){rK.call(this,Q)}yO.inherits(wU,rK);wU.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var J=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};sK.exports=wU});var tK=f0((cR,iK)=>{var aK=_U(),fO=UQ();function gU(Q){aK.call(this,Q)}fO.inherits(gU,aK);gU.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};iK.exports=gU});var yU=f0((pR,Q6)=>{var JV=UQ(),eK=BJ(),cO=xU(),pO=nK(),hO=tK(),bO=_U();Q6.exports=function(Q){var J=JV.getTypeOf(Q);if(JV.checkSupport(J),J==="string"&&!eK.uint8array)return new pO(Q);if(J==="nodebuffer")return new hO(Q);if(eK.uint8array)return new bO(JV.transformTo("uint8array",Q));return new cO(JV.transformTo("array",Q))}});var V6=f0((hR,Y6)=>{var fU=yU(),nJ=UQ(),uO=gY(),J6=_Y(),XV=_1(),YV=BU(),dO=BJ(),lO=0,mO=3,oO=function(Q){for(var J in YV){if(!Object.prototype.hasOwnProperty.call(YV,J))continue;if(YV[J].magic===Q)return YV[J]}return null};function X6(Q,J){this.options=Q,this.loadOptions=J}X6.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var J,X;if(Q.skip(22),this.fileNameLength=Q.readInt(2),X=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip(X),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(J=oO(this.compressionMethod),J===null)throw Error("Corrupted zip : compression "+nJ.pretty(this.compressionMethod)+" unknown (inner file : "+nJ.transformTo("string",this.fileName)+")");this.decompressed=new uO(this.compressedSize,this.uncompressedSize,this.crc32,J,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var J=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");Q.skip(J),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,Q===lO)this.dosPermissions=this.externalFileAttributes&63;if(Q===mO)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var Q=fU(this.extraFields[1].value);if(this.uncompressedSize===nJ.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===nJ.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===nJ.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===nJ.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var J=Q.index+this.extraFieldsLength,X,$,W;if(!this.extraFields)this.extraFields={};while(Q.index+4<J)X=Q.readInt(2),$=Q.readInt(2),W=Q.readData($),this.extraFields[X]={id:X,length:$,value:W};Q.setIndex(J)},handleUTF8:function(){var Q=dO.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=XV.utf8decode(this.fileName),this.fileCommentStr=XV.utf8decode(this.fileComment);else{var J=this.findExtraFieldUnicodePath();if(J!==null)this.fileNameStr=J;else{var X=nJ.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(X)}var $=this.findExtraFieldUnicodeComment();if($!==null)this.fileCommentStr=$;else{var W=nJ.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(W)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var J=fU(Q.value);if(J.readInt(1)!==1)return null;if(J6(this.fileName)!==J.readInt(4))return null;return XV.utf8decode(J.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var J=fU(Q.value);if(J.readInt(1)!==1)return null;if(J6(this.fileComment)!==J.readInt(4))return null;return XV.utf8decode(J.readData(Q.length-5))}return null}};Y6.exports=X6});var Z6=f0((bR,U6)=>{var nO=yU(),xJ=UQ(),WJ=kU(),rO=V6(),sO=BJ();function $6(Q){this.files=[],this.loadOptions=Q}$6.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var J=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+xJ.pretty(J)+", expected "+xJ.pretty(Q)+")")}},isSignature:function(Q,J){var X=this.reader.index;this.reader.setIndex(Q);var $=this.reader.readString(4),W=$===J;return this.reader.setIndex(X),W},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Q=this.reader.readData(this.zipCommentLength),J=sO.uint8array?"uint8array":"array",X=xJ.transformTo(J,Q);this.zipComment=this.loadOptions.decodeFileName(X)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var Q=this.zip64EndOfCentralSize-44,J=0,X,$,W;while(J<Q)X=this.reader.readInt(2),$=this.reader.readInt(4),W=this.reader.readData($),this.zip64ExtensibleData[X]={id:X,length:$,value:W}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,J;for(Q=0;Q<this.files.length;Q++)J=this.files[Q],this.reader.setIndex(J.localHeaderOffset),this.checkSignature(WJ.LOCAL_FILE_HEADER),J.readLocalPart(this.reader),J.handleUTF8(),J.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(WJ.CENTRAL_FILE_HEADER))Q=new rO({zip64:this.zip64},this.loadOptions),Q.readCentralPart(this.reader),this.files.push(Q);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature(WJ.CENTRAL_DIRECTORY_END);if(Q<0){var J=!this.isSignature(0,WJ.LOCAL_FILE_HEADER);if(J)throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var X=Q;if(this.checkSignature(WJ.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===xJ.MAX_VALUE_16BITS||this.diskWithCentralDirStart===xJ.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===xJ.MAX_VALUE_16BITS||this.centralDirRecords===xJ.MAX_VALUE_16BITS||this.centralDirSize===xJ.MAX_VALUE_32BITS||this.centralDirOffset===xJ.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(WJ.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature(WJ.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,WJ.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(WJ.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(WJ.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var $=this.centralDirOffset+this.centralDirSize;if(this.zip64)$+=20,$+=12+this.zip64EndOfCentralSize;var W=X-$;if(W>0)if(this.isSignature(X,WJ.CENTRAL_FILE_HEADER));else this.reader.zero=W;else if(W<0)throw Error("Corrupted zip: missing "+Math.abs(W)+" bytes.")},prepareReader:function(Q){this.reader=nO(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};U6.exports=$6});var K6=f0((uR,W6)=>{var cU=UQ(),VV=N1(),aO=_1(),iO=Z6(),tO=c$(),G6=PX();function eO(Q){return new VV.Promise(function(J,X){var $=Q.decompressed.getContentWorker().pipe(new tO);$.on("error",function(W){X(W)}).on("end",function(){if($.streamInfo.crc32!==Q.decompressed.crc32)X(Error("Corrupted zip : CRC32 mismatch"));else J()}).resume()})}W6.exports=function(Q,J){var X=this;if(J=cU.extend(J||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:aO.utf8decode}),G6.isNode&&G6.isStream(Q))return VV.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return cU.prepareContent("the loaded zip file",Q,!0,J.optimizedBinaryString,J.base64).then(function($){var W=new iO(J);return W.load($),W}).then(function(W){var H=[VV.Promise.resolve(W)],U=W.files;if(J.checkCRC32)for(var C=0;C<U.length;C++)H.push(eO(U[C]));return VV.Promise.all(H)}).then(function(W){var H=W.shift(),U=H.files;for(var C=0;C<U.length;C++){var A=U[C],M=A.fileNameStr,D=cU.resolve(A.fileNameStr);if(X.file(D,A.decompressed,{binary:!0,optimizedBinaryString:!0,date:A.date,dir:A.dir,comment:A.fileCommentStr.length?A.fileCommentStr:null,unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions,createFolders:J.createFolders}),!A.dir)X.file(D).unsafeOriginalName=M}if(H.zipComment.length)X.comment=H.zipComment;return X})}});var F6=f0((dR,H6)=>{function YJ(){if(!(this instanceof YJ))return new YJ;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Q=new YJ;for(var J in this)if(typeof this[J]!=="function")Q[J]=this[J];return Q}}YJ.prototype=hK();YJ.prototype.loadAsync=K6();YJ.support=BJ();YJ.defaults=g$();YJ.version="3.10.1";YJ.loadAsync=function(Q,J){return new YJ().loadAsync(Q,J)};YJ.external=N1();H6.exports=YJ});var oX={};D1(oX,{X_OK:()=>eI,W_OK:()=>tI,UV_UDP_REUSEADDR:()=>QD,S_IXUSR:()=>_C,S_IXOTH:()=>uC,S_IXGRP:()=>cC,S_IWUSR:()=>wC,S_IWOTH:()=>bC,S_IWGRP:()=>fC,S_IRWXU:()=>NC,S_IRWXO:()=>pC,S_IRWXG:()=>gC,S_IRUSR:()=>xC,S_IROTH:()=>hC,S_IRGRP:()=>yC,S_IFSOCK:()=>DC,S_IFREG:()=>zC,S_IFMT:()=>qC,S_IFLNK:()=>IC,S_IFIFO:()=>MC,S_IFDIR:()=>OC,S_IFCHR:()=>CC,S_IFBLK:()=>LC,SSL_OP_TLS_ROLLBACK_BUG:()=>AI,SSL_OP_TLS_D5_BUG:()=>TI,SSL_OP_TLS_BLOCK_PADDING_BUG:()=>PI,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:()=>DI,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:()=>II,SSL_OP_SINGLE_ECDH_USE:()=>MI,SSL_OP_SINGLE_DH_USE:()=>LI,SSL_OP_PKCS1_CHECK_2:()=>CI,SSL_OP_PKCS1_CHECK_1:()=>OI,SSL_OP_NO_TLSv1_2:()=>zI,SSL_OP_NO_TLSv1_1:()=>qI,SSL_OP_NO_TLSv1:()=>FI,SSL_OP_NO_TICKET:()=>HI,SSL_OP_NO_SSLv3:()=>KI,SSL_OP_NO_SSLv2:()=>WI,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:()=>GI,SSL_OP_NO_QUERY_MTU:()=>ZI,SSL_OP_NO_COMPRESSION:()=>UI,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:()=>$I,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:()=>VI,SSL_OP_NETSCAPE_CHALLENGE_BUG:()=>YI,SSL_OP_NETSCAPE_CA_DN_BUG:()=>XI,SSL_OP_MSIE_SSLV2_RSA_PADDING:()=>JI,SSL_OP_MICROSOFT_SESS_ID_BUG:()=>QI,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:()=>eM,SSL_OP_LEGACY_SERVER_CONNECT:()=>tM,SSL_OP_EPHEMERAL_RSA:()=>iM,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:()=>aM,SSL_OP_CRYPTOPRO_TLSEXT_BUG:()=>sM,SSL_OP_COOKIE_EXCHANGE:()=>rM,SSL_OP_CISCO_ANYCONNECT:()=>nM,SSL_OP_CIPHER_SERVER_PREFERENCE:()=>oM,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:()=>mM,SSL_OP_ALL:()=>lM,SIGXFSZ:()=>cM,SIGXCPU:()=>fM,SIGWINCH:()=>bM,SIGVTALRM:()=>pM,SIGUSR2:()=>SM,SIGUSR1:()=>RM,SIGURG:()=>yM,SIGTTOU:()=>gM,SIGTTIN:()=>_M,SIGTSTP:()=>wM,SIGTRAP:()=>MM,SIGTERM:()=>kM,SIGSYS:()=>dM,SIGSTOP:()=>xM,SIGSEGV:()=>EM,SIGQUIT:()=>CM,SIGPROF:()=>hM,SIGPIPE:()=>jM,SIGKILL:()=>AM,SIGIOT:()=>DM,SIGIO:()=>uM,SIGINT:()=>OM,SIGILL:()=>LM,SIGHUP:()=>zM,SIGFPE:()=>TM,SIGCONT:()=>NM,SIGCHLD:()=>vM,SIGBUS:()=>PM,SIGALRM:()=>BM,SIGABRT:()=>IM,R_OK:()=>iI,RSA_X931_PADDING:()=>mI,RSA_SSLV23_PADDING:()=>uI,RSA_PKCS1_PSS_PADDING:()=>oI,RSA_PKCS1_PADDING:()=>bI,RSA_PKCS1_OAEP_PADDING:()=>lI,RSA_NO_PADDING:()=>dI,POINT_CONVERSION_UNCOMPRESSED:()=>rI,POINT_CONVERSION_HYBRID:()=>sI,POINT_CONVERSION_COMPRESSED:()=>nI,O_WRONLY:()=>HC,O_TRUNC:()=>RC,O_SYNC:()=>BC,O_SYMLINK:()=>kC,O_RDWR:()=>FC,O_RDONLY:()=>KC,O_NONBLOCK:()=>vC,O_NOFOLLOW:()=>jC,O_NOCTTY:()=>AC,O_EXCL:()=>TC,O_DIRECTORY:()=>SC,O_CREAT:()=>PC,O_APPEND:()=>EC,NPN_ENABLED:()=>hI,F_OK:()=>aI,EXDEV:()=>qM,EWOULDBLOCK:()=>FM,ETXTBSY:()=>HM,ETIMEDOUT:()=>KM,ETIME:()=>WM,ESTALE:()=>GM,ESRCH:()=>ZM,ESPIPE:()=>UM,EROFS:()=>$M,ERANGE:()=>VM,EPROTOTYPE:()=>YM,EPROTONOSUPPORT:()=>XM,EPROTO:()=>JM,EPIPE:()=>QM,EPERM:()=>eL,EOVERFLOW:()=>tL,EOPNOTSUPP:()=>iL,ENXIO:()=>aL,ENOTTY:()=>sL,ENOTSUP:()=>rL,ENOTSOCK:()=>nL,ENOTEMPTY:()=>oL,ENOTDIR:()=>mL,ENOTCONN:()=>lL,ENOSYS:()=>dL,ENOSTR:()=>uL,ENOSR:()=>bL,ENOSPC:()=>hL,ENOPROTOOPT:()=>pL,ENOMSG:()=>cL,ENOMEM:()=>fL,ENOLINK:()=>yL,ENOLCK:()=>gL,ENOEXEC:()=>_L,ENOENT:()=>wL,ENODEV:()=>xL,ENODATA:()=>NL,ENOBUFS:()=>vL,ENGINE_METHOD_STORE:()=>NI,ENGINE_METHOD_RAND:()=>SI,ENGINE_METHOD_PKEY_METHS:()=>xI,ENGINE_METHOD_PKEY_ASN1_METHS:()=>wI,ENGINE_METHOD_NONE:()=>gI,ENGINE_METHOD_ECDSA:()=>BI,ENGINE_METHOD_ECDH:()=>jI,ENGINE_METHOD_DSA:()=>RI,ENGINE_METHOD_DIGESTS:()=>vI,ENGINE_METHOD_DH:()=>EI,ENGINE_METHOD_CIPHERS:()=>kI,ENGINE_METHOD_ALL:()=>_I,ENFILE:()=>kL,ENETUNREACH:()=>BL,ENETRESET:()=>jL,ENETDOWN:()=>SL,ENAMETOOLONG:()=>EL,EMULTIHOP:()=>RL,EMSGSIZE:()=>AL,EMLINK:()=>TL,EMFILE:()=>PL,ELOOP:()=>DL,EISDIR:()=>IL,EISCONN:()=>ML,EIO:()=>LL,EINVAL:()=>CL,EINTR:()=>OL,EINPROGRESS:()=>zL,EILSEQ:()=>qL,EIDRM:()=>FL,EHOSTUNREACH:()=>HL,EFBIG:()=>KL,EFAULT:()=>WL,EEXIST:()=>GL,EDQUOT:()=>ZL,EDOM:()=>UL,EDESTADDRREQ:()=>$L,EDEADLK:()=>VL,ECONNRESET:()=>YL,ECONNREFUSED:()=>XL,ECONNABORTED:()=>JL,ECHILD:()=>QL,ECANCELED:()=>eC,EBUSY:()=>tC,EBADMSG:()=>iC,EBADF:()=>aC,EALREADY:()=>sC,EAGAIN:()=>rC,EAFNOSUPPORT:()=>nC,EADDRNOTAVAIL:()=>oC,EADDRINUSE:()=>mC,EACCES:()=>lC,E2BIG:()=>dC,DH_UNABLE_TO_CHECK_GENERATOR:()=>cI,DH_NOT_SUITABLE_GENERATOR:()=>pI,DH_CHECK_P_NOT_SAFE_PRIME:()=>yI,DH_CHECK_P_NOT_PRIME:()=>fI});var KC=0,HC=1,FC=2,qC=61440,zC=32768,OC=16384,CC=8192,LC=24576,MC=4096,IC=40960,DC=49152,PC=512,TC=2048,AC=131072,RC=1024,EC=8,SC=1048576,jC=256,BC=128,kC=2097152,vC=4,NC=448,xC=256,wC=128,_C=64,gC=56,yC=32,fC=16,cC=8,pC=7,hC=4,bC=2,uC=1,dC=7,lC=13,mC=48,oC=49,nC=47,rC=35,sC=37,aC=9,iC=94,tC=16,eC=89,QL=10,JL=53,XL=61,YL=54,VL=11,$L=39,UL=33,ZL=69,GL=17,WL=14,KL=27,HL=65,FL=90,qL=92,zL=36,OL=4,CL=22,LL=5,ML=56,IL=21,DL=62,PL=24,TL=31,AL=40,RL=95,EL=63,SL=50,jL=52,BL=51,kL=23,vL=55,NL=96,xL=19,wL=2,_L=8,gL=77,yL=97,fL=12,cL=91,pL=42,hL=28,bL=98,uL=99,dL=78,lL=57,mL=20,oL=66,nL=38,rL=45,sL=25,aL=6,iL=102,tL=84,eL=1,QM=32,JM=100,XM=43,YM=41,VM=34,$M=30,UM=29,ZM=3,GM=70,WM=101,KM=60,HM=26,FM=35,qM=18,zM=1,OM=2,CM=3,LM=4,MM=5,IM=6,DM=6,PM=10,TM=8,AM=9,RM=30,EM=11,SM=31,jM=13,BM=14,kM=15,vM=20,NM=19,xM=17,wM=18,_M=21,gM=22,yM=16,fM=24,cM=25,pM=26,hM=27,bM=28,uM=23,dM=12,lM=2147486719,mM=262144,oM=4194304,nM=32768,rM=8192,sM=2147483648,aM=2048,iM=0,tM=4,eM=32,QI=1,JI=0,XI=536870912,YI=2,VI=1073741824,$I=8,UI=131072,ZI=4096,GI=65536,WI=16777216,KI=33554432,HI=16384,FI=67108864,qI=268435456,zI=134217728,OI=0,CI=0,LI=1048576,MI=524288,II=128,DI=0,PI=512,TI=256,AI=8388608,RI=2,EI=4,SI=8,jI=16,BI=32,kI=64,vI=128,NI=256,xI=512,wI=1024,_I=65535,gI=0,yI=2,fI=1,cI=4,pI=8,hI=1,bI=1,uI=2,dI=3,lI=4,mI=5,oI=6,nI=2,rI=4,sI=6,aI=0,iI=4,tI=2,eI=1,QD=4;var nX=()=>{};var uQ=f0((JD,r1)=>{var oR=(XQ(),u0($Q));JD.linebrk=function(Q,J){var X="",$=0;while($+J<Q.length)X+=Q.substring($,$+J)+`
18
- `,$+=J;return X+Q.substring($,Q.length)};JD.detectEnvironment=function(){if(typeof window<"u"&&window&&!(process&&process.title==="node"))return"browser";return"node"};JD.get32IntFromBuffer=function(Q,J){J=J||0;var X=0;if((X=Q.length-J)>0)if(X>=4)return Q.readUIntBE(J,X);else{var $=0;for(var W=J+X,H=0;W>J;W--,H+=2)$+=Q[W-1]*Math.pow(16,H);return $}else return NaN};JD._={isObject:function(Q){var J=typeof Q;return!!Q&&(J=="object"||J=="function")},isString:function(Q){return typeof Q=="string"||Q instanceof String},isNumber:function(Q){return typeof Q=="number"||!isNaN(parseFloat(Q))&&isFinite(Q)},omit:function(Q,J){var X={};for(var $ in Q){if(!Q.hasOwnProperty($)||$===J)continue;X[$]=Q[$]}return X}};JD.trimSurroundingText=function(Q,J,X){var $=0,W=Q.length,H=Q.indexOf(J);if(H>=0)$=H+J.length;var U=Q.indexOf(X,H);if(U>=0)W=U;return Q.substring($,W)}});var M1=f0((rR,I6)=>{var ZD=(XQ(),u0($Q)),GD=uQ()._,s1,WD=244837814094590,nR=(WD&16777215)==15715070;function g0(Q,J){if(Q!=null)if(typeof Q=="number")this.fromNumber(Q,J);else if(Buffer.isBuffer(Q))this.fromBuffer(Q);else if(J==null&&typeof Q!="string")this.fromByteArray(Q);else this.fromString(Q,J)}function r0(){return new g0(null)}function KD(Q,J,X,$,W,H){var U=J&16383,C=J>>14;while(--H>=0){var A=this[Q]&16383,M=this[Q++]>>14,D=C*A+M*U;A=U*A+((D&16383)<<14)+X[$]+W,W=(A>>28)+(D>>14)+C*M,X[$++]=A&268435455}return W}g0.prototype.am=KD;s1=28;g0.prototype.DB=s1;g0.prototype.DM=(1<<s1)-1;g0.prototype.DV=1<<s1;var uU=52;g0.prototype.FV=Math.pow(2,uU);g0.prototype.F1=uU-s1;g0.prototype.F2=2*s1-uU;var HD="0123456789abcdefghijklmnopqrstuvwxyz",$V=[],a1,VJ;a1=48;for(VJ=0;VJ<=9;++VJ)$V[a1++]=VJ;a1=97;for(VJ=10;VJ<36;++VJ)$V[a1++]=VJ;a1=65;for(VJ=10;VJ<36;++VJ)$V[a1++]=VJ;function bU(Q){return HD.charAt(Q)}function O6(Q,J){var X=$V[Q.charCodeAt(J)];return X==null?-1:X}function FD(Q){for(var J=this.t-1;J>=0;--J)Q[J]=this[J];Q.t=this.t,Q.s=this.s}function qD(Q){if(this.t=1,this.s=Q<0?-1:0,Q>0)this[0]=Q;else if(Q<-1)this[0]=Q+DV;else this.t=0}function rJ(Q){var J=r0();return J.fromInt(Q),J}function zD(Q,J,X){var $;switch(J){case 2:$=1;break;case 4:$=2;break;case 8:$=3;break;case 16:$=4;break;case 32:$=5;break;case 256:$=8;break;default:this.fromRadix(Q,J);return}this.t=0,this.s=0;var W=Q.length,H=!1,U=0;while(--W>=0){var C=$==8?Q[W]&255:O6(Q,W);if(C<0){if(Q.charAt(W)=="-")H=!0;continue}if(H=!1,U===0)this[this.t++]=C;else if(U+$>this.DB)this[this.t-1]|=(C&(1<<this.DB-U)-1)<<U,this[this.t++]=C>>this.DB-U;else this[this.t-1]|=C<<U;if(U+=$,U>=this.DB)U-=this.DB}if(!X&&$==8&&(Q[0]&128)!=0){if(this.s=-1,U>0)this[this.t-1]|=(1<<this.DB-U)-1<<U}if(this.clamp(),H)g0.ZERO.subTo(this,this)}function OD(Q,J){this.fromString(Q,256,J)}function CD(Q){this.fromString(Q,256,!0)}function LD(){var Q=this.s&this.DM;while(this.t>0&&this[this.t-1]==Q)--this.t}function MD(Q){if(this.s<0)return"-"+this.negate().toString(Q);var J;if(Q==16)J=4;else if(Q==8)J=3;else if(Q==2)J=1;else if(Q==32)J=5;else if(Q==4)J=2;else return this.toRadix(Q);var X=(1<<J)-1,$,W=!1,H="",U=this.t,C=this.DB-U*this.DB%J;if(U-- >0){if(C<this.DB&&($=this[U]>>C)>0)W=!0,H=bU($);while(U>=0){if(C<J)$=(this[U]&(1<<C)-1)<<J-C,$|=this[--U]>>(C+=this.DB-J);else if($=this[U]>>(C-=J)&X,C<=0)C+=this.DB,--U;if($>0)W=!0;if(W)H+=bU($)}}return W?H:"0"}function ID(){var Q=r0();return g0.ZERO.subTo(this,Q),Q}function DD(){return this.s<0?this.negate():this}function PD(Q){var J=this.s-Q.s;if(J!=0)return J;var X=this.t;if(J=X-Q.t,J!=0)return this.s<0?-J:J;while(--X>=0)if((J=this[X]-Q[X])!=0)return J;return 0}function UV(Q){var J=1,X;if((X=Q>>>16)!=0)Q=X,J+=16;if((X=Q>>8)!=0)Q=X,J+=8;if((X=Q>>4)!=0)Q=X,J+=4;if((X=Q>>2)!=0)Q=X,J+=2;if((X=Q>>1)!=0)Q=X,J+=1;return J}function TD(){if(this.t<=0)return 0;return this.DB*(this.t-1)+UV(this[this.t-1]^this.s&this.DM)}function AD(Q,J){var X;for(X=this.t-1;X>=0;--X)J[X+Q]=this[X];for(X=Q-1;X>=0;--X)J[X]=0;J.t=this.t+Q,J.s=this.s}function RD(Q,J){for(var X=Q;X<this.t;++X)J[X-Q]=this[X];J.t=Math.max(this.t-Q,0),J.s=this.s}function ED(Q,J){var X=Q%this.DB,$=this.DB-X,W=(1<<$)-1,H=Math.floor(Q/this.DB),U=this.s<<X&this.DM,C;for(C=this.t-1;C>=0;--C)J[C+H+1]=this[C]>>$|U,U=(this[C]&W)<<X;for(C=H-1;C>=0;--C)J[C]=0;J[H]=U,J.t=this.t+H+1,J.s=this.s,J.clamp()}function SD(Q,J){J.s=this.s;var X=Math.floor(Q/this.DB);if(X>=this.t){J.t=0;return}var $=Q%this.DB,W=this.DB-$,H=(1<<$)-1;J[0]=this[X]>>$;for(var U=X+1;U<this.t;++U)J[U-X-1]|=(this[U]&H)<<W,J[U-X]=this[U]>>$;if($>0)J[this.t-X-1]|=(this.s&H)<<W;J.t=this.t-X,J.clamp()}function jD(Q,J){var X=0,$=0,W=Math.min(Q.t,this.t);while(X<W)$+=this[X]-Q[X],J[X++]=$&this.DM,$>>=this.DB;if(Q.t<this.t){$-=Q.s;while(X<this.t)$+=this[X],J[X++]=$&this.DM,$>>=this.DB;$+=this.s}else{$+=this.s;while(X<Q.t)$-=Q[X],J[X++]=$&this.DM,$>>=this.DB;$-=Q.s}if(J.s=$<0?-1:0,$<-1)J[X++]=this.DV+$;else if($>0)J[X++]=$;J.t=X,J.clamp()}function BD(Q,J){var X=this.abs(),$=Q.abs(),W=X.t;J.t=W+$.t;while(--W>=0)J[W]=0;for(W=0;W<$.t;++W)J[W+X.t]=X.am(0,$[W],J,W,0,X.t);if(J.s=0,J.clamp(),this.s!=Q.s)g0.ZERO.subTo(J,J)}function kD(Q){var J=this.abs(),X=Q.t=2*J.t;while(--X>=0)Q[X]=0;for(X=0;X<J.t-1;++X){var $=J.am(X,J[X],Q,2*X,0,1);if((Q[X+J.t]+=J.am(X+1,2*J[X],Q,2*X+1,$,J.t-X-1))>=J.DV)Q[X+J.t]-=J.DV,Q[X+J.t+1]=1}if(Q.t>0)Q[Q.t-1]+=J.am(X,J[X],Q,2*X,0,1);Q.s=0,Q.clamp()}function vD(Q,J,X){var $=Q.abs();if($.t<=0)return;var W=this.abs();if(W.t<$.t){if(J!=null)J.fromInt(0);if(X!=null)this.copyTo(X);return}if(X==null)X=r0();var H=r0(),U=this.s,C=Q.s,A=this.DB-UV($[$.t-1]);if(A>0)$.lShiftTo(A,H),W.lShiftTo(A,X);else $.copyTo(H),W.copyTo(X);var M=H.t,D=H[M-1];if(D===0)return;var L=D*(1<<this.F1)+(M>1?H[M-2]>>this.F2:0),P=this.FV/L,E=(1<<this.F1)/L,S=1<<this.F2,B=X.t,j=B-M,N=J==null?r0():J;if(H.dlShiftTo(j,N),X.compareTo(N)>=0)X[X.t++]=1,X.subTo(N,X);g0.ONE.dlShiftTo(M,N),N.subTo(H,H);while(H.t<M)H[H.t++]=0;while(--j>=0){var v=X[--B]==D?this.DM:Math.floor(X[B]*P+(X[B-1]+S)*E);if((X[B]+=H.am(0,v,X,j,0,M))<v){H.dlShiftTo(j,N),X.subTo(N,X);while(X[B]<--v)X.subTo(N,X)}}if(J!=null){if(X.drShiftTo(M,J),U!=C)g0.ZERO.subTo(J,J)}if(X.t=M,X.clamp(),A>0)X.rShiftTo(A,X);if(U<0)g0.ZERO.subTo(X,X)}function ND(Q){var J=r0();if(this.abs().divRemTo(Q,null,J),this.s<0&&J.compareTo(g0.ZERO)>0)Q.subTo(J,J);return J}function C1(Q){this.m=Q}function xD(Q){if(Q.s<0||Q.compareTo(this.m)>=0)return Q.mod(this.m);else return Q}function wD(Q){return Q}function _D(Q){Q.divRemTo(this.m,null,Q)}function gD(Q,J,X){Q.multiplyTo(J,X),this.reduce(X)}function yD(Q,J){Q.squareTo(J),this.reduce(J)}C1.prototype.convert=xD;C1.prototype.revert=wD;C1.prototype.reduce=_D;C1.prototype.mulTo=gD;C1.prototype.sqrTo=yD;function fD(){if(this.t<1)return 0;var Q=this[0];if((Q&1)===0)return 0;var J=Q&3;return J=J*(2-(Q&15)*J)&15,J=J*(2-(Q&255)*J)&255,J=J*(2-((Q&65535)*J&65535))&65535,J=J*(2-Q*J%this.DV)%this.DV,J>0?this.DV-J:-J}function L1(Q){this.m=Q,this.mp=Q.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<Q.DB-15)-1,this.mt2=2*Q.t}function cD(Q){var J=r0();if(Q.abs().dlShiftTo(this.m.t,J),J.divRemTo(this.m,null,J),Q.s<0&&J.compareTo(g0.ZERO)>0)this.m.subTo(J,J);return J}function pD(Q){var J=r0();return Q.copyTo(J),this.reduce(J),J}function hD(Q){while(Q.t<=this.mt2)Q[Q.t++]=0;for(var J=0;J<this.m.t;++J){var X=Q[J]&32767,$=X*this.mpl+((X*this.mph+(Q[J]>>15)*this.mpl&this.um)<<15)&Q.DM;X=J+this.m.t,Q[X]+=this.m.am(0,$,Q,J,0,this.m.t);while(Q[X]>=Q.DV)Q[X]-=Q.DV,Q[++X]++}if(Q.clamp(),Q.drShiftTo(this.m.t,Q),Q.compareTo(this.m)>=0)Q.subTo(this.m,Q)}function bD(Q,J){Q.squareTo(J),this.reduce(J)}function uD(Q,J,X){Q.multiplyTo(J,X),this.reduce(X)}L1.prototype.convert=cD;L1.prototype.revert=pD;L1.prototype.reduce=hD;L1.prototype.mulTo=uD;L1.prototype.sqrTo=bD;function dD(){return(this.t>0?this[0]&1:this.s)===0}function lD(Q,J){if(Q>4294967295||Q<1)return g0.ONE;var X=r0(),$=r0(),W=J.convert(this),H=UV(Q)-1;W.copyTo(X);while(--H>=0)if(J.sqrTo(X,$),(Q&1<<H)>0)J.mulTo($,W,X);else{var U=X;X=$,$=U}return J.revert(X)}function mD(Q,J){var X;if(Q<256||J.isEven())X=new C1(J);else X=new L1(J);return this.exp(Q,X)}function oD(){var Q=r0();return this.copyTo(Q),Q}function nD(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t===0)return-1}else if(this.t==1)return this[0];else if(this.t===0)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function rD(){return this.t==0?this.s:this[0]<<24>>24}function sD(){return this.t==0?this.s:this[0]<<16>>16}function aD(Q){return Math.floor(Math.LN2*this.DB/Math.log(Q))}function iD(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function tD(Q){if(Q==null)Q=10;if(this.signum()===0||Q<2||Q>36)return"0";var J=this.chunkSize(Q),X=Math.pow(Q,J),$=rJ(X),W=r0(),H=r0(),U="";this.divRemTo($,W,H);while(W.signum()>0)U=(X+H.intValue()).toString(Q).substr(1)+U,W.divRemTo($,W,H);return H.intValue().toString(Q)+U}function eD(Q,J){if(this.fromInt(0),J==null)J=10;var X=this.chunkSize(J),$=Math.pow(J,X),W=!1,H=0,U=0;for(var C=0;C<Q.length;++C){var A=O6(Q,C);if(A<0){if(Q.charAt(C)=="-"&&this.signum()===0)W=!0;continue}if(U=J*U+A,++H>=X)this.dMultiply($),this.dAddOffset(U,0),H=0,U=0}if(H>0)this.dMultiply(Math.pow(J,H)),this.dAddOffset(U,0);if(W)g0.ZERO.subTo(this,this)}function QP(Q,J){if(typeof J=="number")if(Q<2)this.fromInt(1);else{if(this.fromNumber(Q),!this.testBit(Q-1))this.bitwiseTo(g0.ONE.shiftLeft(Q-1),dU,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(J))if(this.dAddOffset(2,0),this.bitLength()>Q)this.subTo(g0.ONE.shiftLeft(Q-1),this)}else{var X=ZD.randomBytes((Q>>3)+1),$=Q&7;if($>0)X[0]&=(1<<$)-1;else X[0]=0;this.fromByteArray(X)}}function JP(){var Q=this.t,J=[];J[0]=this.s;var X=this.DB-Q*this.DB%8,$,W=0;if(Q-- >0){if(X<this.DB&&($=this[Q]>>X)!=(this.s&this.DM)>>X)J[W++]=$|this.s<<this.DB-X;while(Q>=0){if(X<8)$=(this[Q]&(1<<X)-1)<<8-X,$|=this[--Q]>>(X+=this.DB-8);else if($=this[Q]>>(X-=8)&255,X<=0)X+=this.DB,--Q;if(($&128)!=0)$|=-256;if(W===0&&(this.s&128)!=($&128))++W;if(W>0||$!=this.s)J[W++]=$}}return J}function XP(Q){var J=Buffer.from(this.toByteArray());if(Q===!0&&J[0]===0)J=J.slice(1);else if(GD.isNumber(Q)){if(J.length>Q){for(var X=0;X<J.length-Q;X++)if(J[X]!==0)return null;return J.slice(J.length-Q)}else if(J.length<Q){var $=Buffer.alloc(Q);return $.fill(0,0,Q-J.length),J.copy($,Q-J.length),$}}return J}function YP(Q){return this.compareTo(Q)==0}function VP(Q){return this.compareTo(Q)<0?this:Q}function $P(Q){return this.compareTo(Q)>0?this:Q}function UP(Q,J,X){var $,W,H=Math.min(Q.t,this.t);for($=0;$<H;++$)X[$]=J(this[$],Q[$]);if(Q.t<this.t){W=Q.s&this.DM;for($=H;$<this.t;++$)X[$]=J(this[$],W);X.t=this.t}else{W=this.s&this.DM;for($=H;$<Q.t;++$)X[$]=J(W,Q[$]);X.t=Q.t}X.s=J(this.s,Q.s),X.clamp()}function ZP(Q,J){return Q&J}function GP(Q){var J=r0();return this.bitwiseTo(Q,ZP,J),J}function dU(Q,J){return Q|J}function WP(Q){var J=r0();return this.bitwiseTo(Q,dU,J),J}function C6(Q,J){return Q^J}function KP(Q){var J=r0();return this.bitwiseTo(Q,C6,J),J}function L6(Q,J){return Q&~J}function HP(Q){var J=r0();return this.bitwiseTo(Q,L6,J),J}function FP(){var Q=r0();for(var J=0;J<this.t;++J)Q[J]=this.DM&~this[J];return Q.t=this.t,Q.s=~this.s,Q}function qP(Q){var J=r0();if(Q<0)this.rShiftTo(-Q,J);else this.lShiftTo(Q,J);return J}function zP(Q){var J=r0();if(Q<0)this.lShiftTo(-Q,J);else this.rShiftTo(Q,J);return J}function OP(Q){if(Q===0)return-1;var J=0;if((Q&65535)===0)Q>>=16,J+=16;if((Q&255)===0)Q>>=8,J+=8;if((Q&15)===0)Q>>=4,J+=4;if((Q&3)===0)Q>>=2,J+=2;if((Q&1)===0)++J;return J}function CP(){for(var Q=0;Q<this.t;++Q)if(this[Q]!=0)return Q*this.DB+OP(this[Q]);if(this.s<0)return this.t*this.DB;return-1}function LP(Q){var J=0;while(Q!=0)Q&=Q-1,++J;return J}function MP(){var Q=0,J=this.s&this.DM;for(var X=0;X<this.t;++X)Q+=LP(this[X]^J);return Q}function IP(Q){var J=Math.floor(Q/this.DB);if(J>=this.t)return this.s!=0;return(this[J]&1<<Q%this.DB)!=0}function DP(Q,J){var X=g0.ONE.shiftLeft(Q);return this.bitwiseTo(X,J,X),X}function PP(Q){return this.changeBit(Q,dU)}function TP(Q){return this.changeBit(Q,L6)}function AP(Q){return this.changeBit(Q,C6)}function RP(Q,J){var X=0,$=0,W=Math.min(Q.t,this.t);while(X<W)$+=this[X]+Q[X],J[X++]=$&this.DM,$>>=this.DB;if(Q.t<this.t){$+=Q.s;while(X<this.t)$+=this[X],J[X++]=$&this.DM,$>>=this.DB;$+=this.s}else{$+=this.s;while(X<Q.t)$+=Q[X],J[X++]=$&this.DM,$>>=this.DB;$+=Q.s}if(J.s=$<0?-1:0,$>0)J[X++]=$;else if($<-1)J[X++]=this.DV+$;J.t=X,J.clamp()}function EP(Q){var J=r0();return this.addTo(Q,J),J}function SP(Q){var J=r0();return this.subTo(Q,J),J}function jP(Q){var J=r0();return this.multiplyTo(Q,J),J}function BP(){var Q=r0();return this.squareTo(Q),Q}function kP(Q){var J=r0();return this.divRemTo(Q,J,null),J}function vP(Q){var J=r0();return this.divRemTo(Q,null,J),J}function NP(Q){var J=r0(),X=r0();return this.divRemTo(Q,J,X),[J,X]}function xP(Q){this[this.t]=this.am(0,Q-1,this,0,0,this.t),++this.t,this.clamp()}function wP(Q,J){if(Q===0)return;while(this.t<=J)this[this.t++]=0;this[J]+=Q;while(this[J]>=this.DV){if(this[J]-=this.DV,++J>=this.t)this[this.t++]=0;++this[J]}}function rX(){}function M6(Q){return Q}function _P(Q,J,X){Q.multiplyTo(J,X)}function gP(Q,J){Q.squareTo(J)}rX.prototype.convert=M6;rX.prototype.revert=M6;rX.prototype.mulTo=_P;rX.prototype.sqrTo=gP;function yP(Q){return this.exp(Q,new rX)}function fP(Q,J,X){var $=Math.min(this.t+Q.t,J);X.s=0,X.t=$;while($>0)X[--$]=0;var W;for(W=X.t-this.t;$<W;++$)X[$+this.t]=this.am(0,Q[$],X,$,0,this.t);for(W=Math.min(Q.t,J);$<W;++$)this.am(0,Q[$],X,$,0,J-$);X.clamp()}function cP(Q,J,X){--J;var $=X.t=this.t+Q.t-J;X.s=0;while(--$>=0)X[$]=0;for($=Math.max(J-this.t,0);$<Q.t;++$)X[this.t+$-J]=this.am(J-$,Q[$],X,0,0,this.t+$-J);X.clamp(),X.drShiftTo(1,X)}function i1(Q){this.r2=r0(),this.q3=r0(),g0.ONE.dlShiftTo(2*Q.t,this.r2),this.mu=this.r2.divide(Q),this.m=Q}function pP(Q){if(Q.s<0||Q.t>2*this.m.t)return Q.mod(this.m);else if(Q.compareTo(this.m)<0)return Q;else{var J=r0();return Q.copyTo(J),this.reduce(J),J}}function hP(Q){return Q}function bP(Q){if(Q.drShiftTo(this.m.t-1,this.r2),Q.t>this.m.t+1)Q.t=this.m.t+1,Q.clamp();this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(Q.compareTo(this.r2)<0)Q.dAddOffset(1,this.m.t+1);Q.subTo(this.r2,Q);while(Q.compareTo(this.m)>=0)Q.subTo(this.m,Q)}function uP(Q,J){Q.squareTo(J),this.reduce(J)}function dP(Q,J,X){Q.multiplyTo(J,X),this.reduce(X)}i1.prototype.convert=pP;i1.prototype.revert=hP;i1.prototype.reduce=bP;i1.prototype.mulTo=dP;i1.prototype.sqrTo=uP;function lP(Q,J){var X=Q.bitLength(),$,W=rJ(1),H;if(X<=0)return W;else if(X<18)$=1;else if(X<48)$=3;else if(X<144)$=4;else if(X<768)$=5;else $=6;if(X<8)H=new C1(J);else if(J.isEven())H=new i1(J);else H=new L1(J);var U=[],C=3,A=$-1,M=(1<<$)-1;if(U[1]=H.convert(this),$>1){var D=r0();H.sqrTo(U[1],D);while(C<=M)U[C]=r0(),H.mulTo(D,U[C-2],U[C]),C+=2}var L=Q.t-1,P,E=!0,S=r0(),B;X=UV(Q[L])-1;while(L>=0){if(X>=A)P=Q[L]>>X-A&M;else if(P=(Q[L]&(1<<X+1)-1)<<A-X,L>0)P|=Q[L-1]>>this.DB+X-A;C=$;while((P&1)===0)P>>=1,--C;if((X-=C)<0)X+=this.DB,--L;if(E)U[P].copyTo(W),E=!1;else{while(C>1)H.sqrTo(W,S),H.sqrTo(S,W),C-=2;if(C>0)H.sqrTo(W,S);else B=W,W=S,S=B;H.mulTo(S,U[P],W)}while(L>=0&&(Q[L]&1<<X)===0)if(H.sqrTo(W,S),B=W,W=S,S=B,--X<0)X=this.DB-1,--L}return H.revert(W)}function mP(Q){var J=this.s<0?this.negate():this.clone(),X=Q.s<0?Q.negate():Q.clone();if(J.compareTo(X)<0){var $=J;J=X,X=$}var W=J.getLowestSetBit(),H=X.getLowestSetBit();if(H<0)return J;if(W<H)H=W;if(H>0)J.rShiftTo(H,J),X.rShiftTo(H,X);while(J.signum()>0){if((W=J.getLowestSetBit())>0)J.rShiftTo(W,J);if((W=X.getLowestSetBit())>0)X.rShiftTo(W,X);if(J.compareTo(X)>=0)J.subTo(X,J),J.rShiftTo(1,J);else X.subTo(J,X),X.rShiftTo(1,X)}if(H>0)X.lShiftTo(H,X);return X}function oP(Q){if(Q<=0)return 0;var J=this.DV%Q,X=this.s<0?Q-1:0;if(this.t>0)if(J===0)X=this[0]%Q;else for(var $=this.t-1;$>=0;--$)X=(J*X+this[$])%Q;return X}function nP(Q){var J=Q.isEven();if(this.isEven()&&J||Q.signum()===0)return g0.ZERO;var X=Q.clone(),$=this.clone(),W=rJ(1),H=rJ(0),U=rJ(0),C=rJ(1);while(X.signum()!=0){while(X.isEven()){if(X.rShiftTo(1,X),J){if(!W.isEven()||!H.isEven())W.addTo(this,W),H.subTo(Q,H);W.rShiftTo(1,W)}else if(!H.isEven())H.subTo(Q,H);H.rShiftTo(1,H)}while($.isEven()){if($.rShiftTo(1,$),J){if(!U.isEven()||!C.isEven())U.addTo(this,U),C.subTo(Q,C);U.rShiftTo(1,U)}else if(!C.isEven())C.subTo(Q,C);C.rShiftTo(1,C)}if(X.compareTo($)>=0){if(X.subTo($,X),J)W.subTo(U,W);H.subTo(C,H)}else{if($.subTo(X,$),J)U.subTo(W,U);C.subTo(H,C)}}if($.compareTo(g0.ONE)!=0)return g0.ZERO;if(C.compareTo(Q)>=0)return C.subtract(Q);if(C.signum()<0)C.addTo(Q,C);else return C;if(C.signum()<0)return C.add(Q);else return C}var dQ=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],rP=67108864/dQ[dQ.length-1];function sP(Q){var J,X=this.abs();if(X.t==1&&X[0]<=dQ[dQ.length-1]){for(J=0;J<dQ.length;++J)if(X[0]==dQ[J])return!0;return!1}if(X.isEven())return!1;J=1;while(J<dQ.length){var $=dQ[J],W=J+1;while(W<dQ.length&&$<rP)$*=dQ[W++];$=X.modInt($);while(J<W)if($%dQ[J++]===0)return!1}return X.millerRabin(Q)}function aP(Q){var J=this.subtract(g0.ONE),X=J.getLowestSetBit();if(X<=0)return!1;var $=J.shiftRight(X);if(Q=Q+1>>1,Q>dQ.length)Q=dQ.length;var W=r0();for(var H=0;H<Q;++H){W.fromInt(dQ[Math.floor(Math.random()*dQ.length)]);var U=W.modPow($,this);if(U.compareTo(g0.ONE)!=0&&U.compareTo(J)!=0){var C=1;while(C++<X&&U.compareTo(J)!=0)if(U=U.modPowInt(2,this),U.compareTo(g0.ONE)===0)return!1;if(U.compareTo(J)!=0)return!1}}return!0}g0.prototype.copyTo=FD;g0.prototype.fromInt=qD;g0.prototype.fromString=zD;g0.prototype.fromByteArray=OD;g0.prototype.fromBuffer=CD;g0.prototype.clamp=LD;g0.prototype.dlShiftTo=AD;g0.prototype.drShiftTo=RD;g0.prototype.lShiftTo=ED;g0.prototype.rShiftTo=SD;g0.prototype.subTo=jD;g0.prototype.multiplyTo=BD;g0.prototype.squareTo=kD;g0.prototype.divRemTo=vD;g0.prototype.invDigit=fD;g0.prototype.isEven=dD;g0.prototype.exp=lD;g0.prototype.chunkSize=aD;g0.prototype.toRadix=tD;g0.prototype.fromRadix=eD;g0.prototype.fromNumber=QP;g0.prototype.bitwiseTo=UP;g0.prototype.changeBit=DP;g0.prototype.addTo=RP;g0.prototype.dMultiply=xP;g0.prototype.dAddOffset=wP;g0.prototype.multiplyLowerTo=fP;g0.prototype.multiplyUpperTo=cP;g0.prototype.modInt=oP;g0.prototype.millerRabin=aP;g0.prototype.toString=MD;g0.prototype.negate=ID;g0.prototype.abs=DD;g0.prototype.compareTo=PD;g0.prototype.bitLength=TD;g0.prototype.mod=ND;g0.prototype.modPowInt=mD;g0.prototype.clone=oD;g0.prototype.intValue=nD;g0.prototype.byteValue=rD;g0.prototype.shortValue=sD;g0.prototype.signum=iD;g0.prototype.toByteArray=JP;g0.prototype.toBuffer=XP;g0.prototype.equals=YP;g0.prototype.min=VP;g0.prototype.max=$P;g0.prototype.and=GP;g0.prototype.or=WP;g0.prototype.xor=KP;g0.prototype.andNot=HP;g0.prototype.not=FP;g0.prototype.shiftLeft=qP;g0.prototype.shiftRight=zP;g0.prototype.getLowestSetBit=CP;g0.prototype.bitCount=MP;g0.prototype.testBit=IP;g0.prototype.setBit=PP;g0.prototype.clearBit=TP;g0.prototype.flipBit=AP;g0.prototype.add=EP;g0.prototype.subtract=SP;g0.prototype.multiply=jP;g0.prototype.divide=kP;g0.prototype.remainder=vP;g0.prototype.divideAndRemainder=NP;g0.prototype.modPow=lP;g0.prototype.modInverse=nP;g0.prototype.pow=yP;g0.prototype.gcd=mP;g0.prototype.isProbablePrime=sP;g0.int2char=bU;g0.ZERO=rJ(0);g0.ONE=rJ(1);g0.prototype.square=BP;I6.exports=g0});var A6=f0((sR,lU)=>{var D6=M1(),t1=(XQ(),u0($Q)),ZV=(nX(),u0(oX)),iP={md2:Buffer.from("3020300c06082a864886f70d020205000410","hex"),md5:Buffer.from("3020300c06082a864886f70d020505000410","hex"),sha1:Buffer.from("3021300906052b0e03021a05000414","hex"),sha224:Buffer.from("302d300d06096086480165030402040500041c","hex"),sha256:Buffer.from("3031300d060960864801650304020105000420","hex"),sha384:Buffer.from("3041300d060960864801650304020205000430","hex"),sha512:Buffer.from("3051300d060960864801650304020305000440","hex"),ripemd160:Buffer.from("3021300906052b2403020105000414","hex"),rmd160:Buffer.from("3021300906052b2403020105000414","hex")},P6={ripemd160:"rmd160"},T6="sha256";lU.exports={isEncryption:!0,isSignature:!0};lU.exports.makeScheme=function(Q,J){function X($,W){this.key=$,this.options=W}return X.prototype.maxMessageLength=function(){if(this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ZV.RSA_NO_PADDING)return this.key.encryptedDataLength;return this.key.encryptedDataLength-11},X.prototype.encPad=function($,W){W=W||{};var H;if($.length>this.key.maxMessageLength)throw Error("Message too long for RSA (n="+this.key.encryptedDataLength+", l="+$.length+")");if(this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ZV.RSA_NO_PADDING)return H=Buffer.alloc(this.key.maxMessageLength-$.length),H.fill(0),Buffer.concat([H,$]);if(W.type===1)return H=Buffer.alloc(this.key.encryptedDataLength-$.length-1),H.fill(255,0,H.length-1),H[0]=1,H[H.length-1]=0,Buffer.concat([H,$]);else{H=Buffer.alloc(this.key.encryptedDataLength-$.length),H[0]=0,H[1]=2;var U=t1.randomBytes(H.length-3);for(var C=0;C<U.length;C++){var A=U[C];while(A===0)A=t1.randomBytes(1)[0];H[C+2]=A}return H[H.length-1]=0,Buffer.concat([H,$])}},X.prototype.encUnPad=function($,W){W=W||{};var H=0;if(this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ZV.RSA_NO_PADDING){var U;if(typeof $.lastIndexOf=="function")U=$.slice($.lastIndexOf("\x00")+1,$.length);else U=$.slice(String.prototype.lastIndexOf.call($,"\x00")+1,$.length);return U}if($.length<4)return null;if(W.type===1){if($[0]!==0||$[1]!==1)return null;H=3;while($[H]!==0)if($[H]!=255||++H>=$.length)return null}else{if($[0]!==0||$[1]!==2)return null;H=3;while($[H]!==0)if(++H>=$.length)return null}return $.slice(H+1,$.length)},X.prototype.sign=function($){var W=this.options.signingSchemeOptions.hash||T6;if(this.options.environment==="browser"){W=P6[W]||W;var H=t1.createHash(W);H.update($);var U=this.pkcs1pad(H.digest(),W),C=this.key.$doPrivate(new D6(U)).toBuffer(this.key.encryptedDataLength);return C}else{var A=t1.createSign("RSA-"+W.toUpperCase());return A.update($),A.sign(this.options.rsaUtils.exportKey("private"))}},X.prototype.verify=function($,W,H){if(this.options.encryptionSchemeOptions&&this.options.encryptionSchemeOptions.padding==ZV.RSA_NO_PADDING)return!1;var U=this.options.signingSchemeOptions.hash||T6;if(this.options.environment==="browser"){if(U=P6[U]||U,H)W=Buffer.from(W,H);var C=t1.createHash(U);C.update($);var A=this.pkcs1pad(C.digest(),U),M=this.key.$doPublic(new D6(W));return M.toBuffer().toString("hex")==A.toString("hex")}else{var D=t1.createVerify("RSA-"+U.toUpperCase());return D.update($),D.verify(this.options.rsaUtils.exportKey("public"),W,H)}},X.prototype.pkcs0pad=function($){var W=Buffer.alloc(this.key.maxMessageLength-$.length);return W.fill(0),Buffer.concat([W,$])},X.prototype.pkcs0unpad=function($){var W;if(typeof $.lastIndexOf=="function")W=$.slice($.lastIndexOf("\x00")+1,$.length);else W=$.slice(String.prototype.lastIndexOf.call($,"\x00")+1,$.length);return W},X.prototype.pkcs1pad=function($,W){var H=iP[W];if(!H)throw Error("Unsupported hash algorithm");var U=Buffer.concat([H,$]);if(U.length+10>this.key.encryptedDataLength)throw Error("Key is too short for signing algorithm ("+W+")");var C=Buffer.alloc(this.key.encryptedDataLength-U.length-1);C.fill(255,0,C.length-1),C[0]=1,C[C.length-1]=0;var A=Buffer.concat([C,U]);return A},new X(Q,J)}});var R6=f0((iR,KJ)=>{var aR=M1(),GV=(XQ(),u0($Q));KJ.exports={isEncryption:!0,isSignature:!1};KJ.exports.digestLength={md4:16,md5:16,ripemd160:20,rmd160:20,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64};var WV="sha1";KJ.exports.eme_oaep_mgf1=function(Q,J,X){X=X||WV;var $=KJ.exports.digestLength[X],W=Math.ceil(J/$),H=Buffer.alloc($*W),U=Buffer.alloc(4);for(var C=0;C<W;++C){var A=GV.createHash(X);A.update(Q),U.writeUInt32BE(C,0),A.update(U),A.digest().copy(H,C*$)}return H.slice(0,J)};KJ.exports.makeScheme=function(Q,J){function X($,W){this.key=$,this.options=W}return X.prototype.maxMessageLength=function(){return this.key.encryptedDataLength-2*KJ.exports.digestLength[this.options.encryptionSchemeOptions.hash||WV]-2},X.prototype.encPad=function($){var W=this.options.encryptionSchemeOptions.hash||WV,H=this.options.encryptionSchemeOptions.mgf||KJ.exports.eme_oaep_mgf1,U=this.options.encryptionSchemeOptions.label||Buffer.alloc(0),C=this.key.encryptedDataLength,A=KJ.exports.digestLength[W];if($.length>C-2*A-2)throw Error("Message is too long to encode into an encoded message with a length of "+C+" bytes, increaseemLen to fix this error (minimum value for given parameters and options: "+(C-2*A-2)+")");var M=GV.createHash(W);M.update(U),M=M.digest();var D=Buffer.alloc(C-$.length-2*A-1);D.fill(0),D[D.length-1]=1;var L=Buffer.concat([M,D,$]),P=GV.randomBytes(A),E=H(P,L.length,W);for(var S=0;S<L.length;S++)L[S]^=E[S];E=H(L,A,W);for(S=0;S<P.length;S++)P[S]^=E[S];var B=Buffer.alloc(1+P.length+L.length);return B[0]=0,P.copy(B,1),L.copy(B,1+P.length),B},X.prototype.encUnPad=function($){var W=this.options.encryptionSchemeOptions.hash||WV,H=this.options.encryptionSchemeOptions.mgf||KJ.exports.eme_oaep_mgf1,U=this.options.encryptionSchemeOptions.label||Buffer.alloc(0),C=KJ.exports.digestLength[W];if($.length<2*C+2)throw Error("Error decoding message, the supplied message is not long enough to be a valid OAEP encoded message");var A=$.slice(1,C+1),M=$.slice(1+C),D=H(M,C,W);for(var L=0;L<A.length;L++)A[L]^=D[L];D=H(A,M.length,W);for(L=0;L<M.length;L++)M[L]^=D[L];var P=GV.createHash(W);P.update(U),P=P.digest();var E=M.slice(0,C);if(E.toString("hex")!=P.toString("hex"))throw Error("Error decoding message, the lHash calculated from the label provided and the lHash in the encrypted data do not match.");L=C;while(M[L++]===0&&L<M.length);if(M[L-1]!=1)throw Error("Error decoding message, there is no padding message separator byte");return M.slice(L)},new X(Q,J)}});var j6=f0((tR,mU)=>{var E6=M1(),sX=(XQ(),u0($Q));mU.exports={isEncryption:!1,isSignature:!0};var KV="sha1",S6=20;mU.exports.makeScheme=function(Q,J){var X=I1().pkcs1_oaep;function $(W,H){this.key=W,this.options=H}return $.prototype.sign=function(W){var H=sX.createHash(this.options.signingSchemeOptions.hash||KV);H.update(W);var U=this.emsa_pss_encode(H.digest(),this.key.keySize-1);return this.key.$doPrivate(new E6(U)).toBuffer(this.key.encryptedDataLength)},$.prototype.verify=function(W,H,U){if(U)H=Buffer.from(H,U);H=new E6(H);var C=Math.ceil((this.key.keySize-1)/8),A=this.key.$doPublic(H).toBuffer(C),M=sX.createHash(this.options.signingSchemeOptions.hash||KV);return M.update(W),this.emsa_pss_verify(M.digest(),A,this.key.keySize-1)},$.prototype.emsa_pss_encode=function(W,H){var U=this.options.signingSchemeOptions.hash||KV,C=this.options.signingSchemeOptions.mgf||X.eme_oaep_mgf1,A=this.options.signingSchemeOptions.saltLength||S6,M=X.digestLength[U],D=Math.ceil(H/8);if(D<M+A+2)throw Error("Output length passed to emBits("+H+") is too small for the options specified("+U+", "+A+"). To fix this issue increase the value of emBits. (minimum size: "+(8*M+8*A+9)+")");var L=sX.randomBytes(A),P=Buffer.alloc(8+M+A);P.fill(0,0,8),W.copy(P,8),L.copy(P,8+W.length);var E=sX.createHash(U);E.update(P),E=E.digest();var S=Buffer.alloc(D-L.length-M-2);S.fill(0);var B=Buffer.alloc(S.length+1+L.length);S.copy(B),B[S.length]=1,L.copy(B,S.length+1);var j=C(E,B.length,U),N=Buffer.alloc(B.length);for(var v=0;v<j.length;v++)N[v]=B[v]^j[v];var x=8*D-H,w=255^255>>8-x<<8-x;N[0]=N[0]&w;var y=Buffer.alloc(N.length+E.length+1);return N.copy(y,0),E.copy(y,N.length),y[y.length-1]=188,y},$.prototype.emsa_pss_verify=function(W,H,U){var C=this.options.signingSchemeOptions.hash||KV,A=this.options.signingSchemeOptions.mgf||X.eme_oaep_mgf1,M=this.options.signingSchemeOptions.saltLength||S6,D=X.digestLength[C],L=Math.ceil(U/8);if(L<D+M+2||H[H.length-1]!=188)return!1;var P=Buffer.alloc(L-D-1);H.copy(P,0,0,L-D-1);var E=0;for(var S=0,B=8*L-U;S<B;S++)E|=1<<7-S;if((P[0]&E)!==0)return!1;var j=H.slice(L-D-1,L-1),N=A(j,P.length,C);for(S=0;S<P.length;S++)P[S]^=N[S];B=8*L-U,E=255^255>>8-B<<8-B,P[0]=P[0]&E;for(S=0;P[S]===0&&S<P.length;S++);if(P[S]!=1)return!1;var v=P.slice(P.length-M),x=Buffer.alloc(8+D+M);x.fill(0,0,8),W.copy(x,8),v.copy(x,8+W.length);var w=sX.createHash(C);return w.update(x),w=w.digest(),j.toString("hex")===w.toString("hex")},new $(Q,J)}});var I1=f0((eR,e1)=>{e1.exports={pkcs1:A6(),pkcs1_oaep:R6(),pss:j6(),isEncryption:function(Q){return e1.exports[Q]&&e1.exports[Q].isEncryption},isSignature:function(Q){return e1.exports[Q]&&e1.exports[Q].isSignature}}});var nU=f0((QE,B6)=>{var oU=M1(),tP=I1();B6.exports=function(Q,J){var X=tP.pkcs1.makeScheme(Q,J);return{encrypt:function($,W){var H,U;if(W)H=new oU(X.encPad($,{type:1})),U=Q.$doPrivate(H);else H=new oU(Q.encryptionScheme.encPad($)),U=Q.$doPublic(H);return U.toBuffer(Q.encryptedDataLength)},decrypt:function($,W){var H,U=new oU($);if(W)return H=Q.$doPublic(U),X.encUnPad(H.toBuffer(Q.encryptedDataLength),{type:1});else return H=Q.$doPrivate(U),Q.encryptionScheme.encUnPad(H.toBuffer(Q.encryptedDataLength))}}}});var v6=f0((JE,k6)=>{var HV=(XQ(),u0($Q)),sJ=(nX(),u0(oX)),eP=I1();k6.exports=function(Q,J){var X=eP.pkcs1.makeScheme(Q,J);return{encrypt:function($,W){var H;if(W){if(H=sJ.RSA_PKCS1_PADDING,J.encryptionSchemeOptions&&J.encryptionSchemeOptions.padding)H=J.encryptionSchemeOptions.padding;return HV.privateEncrypt({key:J.rsaUtils.exportKey("private"),padding:H},$)}else{if(H=sJ.RSA_PKCS1_OAEP_PADDING,J.encryptionScheme==="pkcs1")H=sJ.RSA_PKCS1_PADDING;if(J.encryptionSchemeOptions&&J.encryptionSchemeOptions.padding)H=J.encryptionSchemeOptions.padding;var U=$;if(H===sJ.RSA_NO_PADDING)U=X.pkcs0pad($);return HV.publicEncrypt({key:J.rsaUtils.exportKey("public"),padding:H},U)}},decrypt:function($,W){var H;if(W){if(H=sJ.RSA_PKCS1_PADDING,J.encryptionSchemeOptions&&J.encryptionSchemeOptions.padding)H=J.encryptionSchemeOptions.padding;return HV.publicDecrypt({key:J.rsaUtils.exportKey("public"),padding:H},$)}else{if(H=sJ.RSA_PKCS1_OAEP_PADDING,J.encryptionScheme==="pkcs1")H=sJ.RSA_PKCS1_PADDING;if(J.encryptionSchemeOptions&&J.encryptionSchemeOptions.padding)H=J.encryptionSchemeOptions.padding;var U=HV.privateDecrypt({key:J.rsaUtils.exportKey("private"),padding:H},$);if(H===sJ.RSA_NO_PADDING)return X.pkcs0unpad(U);return U}}}}});var w6=f0((XE,x6)=>{var N6=(XQ(),u0($Q)),QX=(nX(),u0(oX)),QT=I1();x6.exports=function(Q,J){var X=nU()(Q,J),$=QT.pkcs1.makeScheme(Q,J);return{encrypt:function(W,H){if(H)return X.encrypt(W,H);var U=QX.RSA_PKCS1_OAEP_PADDING;if(J.encryptionScheme==="pkcs1")U=QX.RSA_PKCS1_PADDING;if(J.encryptionSchemeOptions&&J.encryptionSchemeOptions.padding)U=J.encryptionSchemeOptions.padding;var C=W;if(U===QX.RSA_NO_PADDING)C=$.pkcs0pad(W);return N6.publicEncrypt({key:J.rsaUtils.exportKey("public"),padding:U},C)},decrypt:function(W,H){if(H)return X.decrypt(W,H);var U=QX.RSA_PKCS1_OAEP_PADDING;if(J.encryptionScheme==="pkcs1")U=QX.RSA_PKCS1_PADDING;if(J.encryptionSchemeOptions&&J.encryptionSchemeOptions.padding)U=J.encryptionSchemeOptions.padding;var C=N6.privateDecrypt({key:J.rsaUtils.exportKey("private"),padding:U},W);if(U===QX.RSA_NO_PADDING)return $.pkcs0unpad(C);return C}}}});var g6=f0((YE,_6)=>{var FV=(XQ(),u0($Q));_6.exports={getEngine:function(Q,J){var X=nU();if(J.environment==="node"){if(typeof FV.publicEncrypt==="function"&&typeof FV.privateDecrypt==="function")if(typeof FV.privateEncrypt==="function"&&typeof FV.publicDecrypt==="function")X=v6();else X=w6()}return X(Q,J)}}});var p6=f0((XT,c6)=>{var qV=uQ()._,VE=(XQ(),u0($Q)),BQ=M1(),y6=uQ(),f6=I1(),JT=g6();XT.BigInteger=BQ;XT.Key=function(){function Q(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return Q.prototype.setOptions=function(J){var X=f6[J.signingScheme],$=f6[J.encryptionScheme];if(X===$)this.signingScheme=this.encryptionScheme=$.makeScheme(this,J);else this.encryptionScheme=$.makeScheme(this,J),this.signingScheme=X.makeScheme(this,J);this.encryptEngine=JT.getEngine(this,J)},Q.prototype.generate=function(J,X){var $=J>>1;this.e=parseInt(X,16);var W=new BQ(X,16);while(!0){while(!0)if(this.p=new BQ(J-$,1),this.p.subtract(BQ.ONE).gcd(W).compareTo(BQ.ONE)===0&&this.p.isProbablePrime(10))break;while(!0)if(this.q=new BQ($,1),this.q.subtract(BQ.ONE).gcd(W).compareTo(BQ.ONE)===0&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var H=this.p;this.p=this.q,this.q=H}var U=this.p.subtract(BQ.ONE),C=this.q.subtract(BQ.ONE),A=U.multiply(C);if(A.gcd(W).compareTo(BQ.ONE)===0){if(this.n=this.p.multiply(this.q),this.n.bitLength()<J)continue;this.d=W.modInverse(A),this.dmp1=this.d.mod(U),this.dmq1=this.d.mod(C),this.coeff=this.q.modInverse(this.p);break}}this.$$recalculateCache()},Q.prototype.setPrivate=function(J,X,$,W,H,U,C,A){if(J&&X&&$&&J.length>0&&(qV.isNumber(X)||X.length>0)&&$.length>0){if(this.n=new BQ(J),this.e=qV.isNumber(X)?X:y6.get32IntFromBuffer(X,0),this.d=new BQ($),W&&H&&U&&C&&A)this.p=new BQ(W),this.q=new BQ(H),this.dmp1=new BQ(U),this.dmq1=new BQ(C),this.coeff=new BQ(A);this.$$recalculateCache()}else throw Error("Invalid RSA private key")},Q.prototype.setPublic=function(J,X){if(J&&X&&J.length>0&&(qV.isNumber(X)||X.length>0))this.n=new BQ(J),this.e=qV.isNumber(X)?X:y6.get32IntFromBuffer(X,0),this.$$recalculateCache();else throw Error("Invalid RSA public key")},Q.prototype.$doPrivate=function(J){if(this.p||this.q)return J.modPow(this.d,this.n);var X=J.mod(this.p).modPow(this.dmp1,this.p),$=J.mod(this.q).modPow(this.dmq1,this.q);while(X.compareTo($)<0)X=X.add(this.p);return X.subtract($).multiply(this.coeff).mod(this.p).multiply(this.q).add($)},Q.prototype.$doPublic=function(J){return J.modPowInt(this.e,this.n)},Q.prototype.encrypt=function(J,X){var $=[],W=[],H=J.length,U=Math.ceil(H/this.maxMessageLength)||1,C=Math.ceil(H/U||1);if(U==1)$.push(J);else for(var A=0;A<U;A++)$.push(J.slice(A*C,(A+1)*C));for(var M=0;M<$.length;M++)W.push(this.encryptEngine.encrypt($[M],X));return Buffer.concat(W)},Q.prototype.decrypt=function(J,X){if(J.length%this.encryptedDataLength>0)throw Error("Incorrect data or key");var $=[],W=0,H=0,U=J.length/this.encryptedDataLength;for(var C=0;C<U;C++)W=C*this.encryptedDataLength,H=W+this.encryptedDataLength,$.push(this.encryptEngine.decrypt(J.slice(W,Math.min(H,J.length)),X));return Buffer.concat($)},Q.prototype.sign=function(J){return this.signingScheme.sign.apply(this.signingScheme,arguments)},Q.prototype.verify=function(J,X,$){return this.signingScheme.verify.apply(this.signingScheme,arguments)},Q.prototype.isPrivate=function(){return this.n&&this.e&&this.d&&!0||!1},Q.prototype.isPublic=function(J){return this.n&&this.e&&!(J&&this.d)||!1},Object.defineProperty(Q.prototype,"keySize",{get:function(){return this.cache.keyBitLength}}),Object.defineProperty(Q.prototype,"encryptedDataLength",{get:function(){return this.cache.keyByteLength}}),Object.defineProperty(Q.prototype,"maxMessageLength",{get:function(){return this.encryptionScheme.maxMessageLength()}}),Q.prototype.$$recalculateCache=function(){this.cache=this.cache||{},this.cache.keyBitLength=this.n.bitLength(),this.cache.keyByteLength=this.cache.keyBitLength+6>>3},Q}()});var zV=f0(($E,h6)=>{h6.exports={newInvalidAsn1Error:function(Q){var J=Error();return J.name="InvalidAsn1Error",J.message=Q||"",J}}});var OV=f0((UE,b6)=>{b6.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}});var YZ={};D1(YZ,{throws:()=>IA,strictEqual:()=>MA,strict:()=>LA,rejects:()=>CA,ok:()=>OA,notStrictEqual:()=>zA,notEqual:()=>qA,notDeepStrictEqual:()=>FA,notDeepEqual:()=>HA,match:()=>KA,ifError:()=>WA,fail:()=>GA,equal:()=>ZA,doesNotThrow:()=>UA,doesNotReject:()=>$A,doesNotMatch:()=>VA,default:()=>DA,deepStrictEqual:()=>YA,deepEqual:()=>XA,CallTracker:()=>JA,AssertionError:()=>QA});var $T,UT,u6,ZT,GT,WT=(Q,J,X)=>{X=Q!=null?$T(UT(Q)):{};let $=J||!Q||!Q.__esModule?u6(X,"default",{value:Q,enumerable:!0}):X;for(let W of ZT(Q))if(!GT.call($,W))u6($,W,{get:()=>Q[W],enumerable:!0});return $},p0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),sU,CV,aU,KT,HT,FT,qT,d6,iX,zT,OT,CT,LT,MT,IT,DT,PT,TT,AT,JX,LV,RT,l6,m6,ET,tX,iU,tU,ST,o6,eU,jT,QZ,n6,JZ,XX,BT,kT,vT,NT,xT,wT,_T,gT,yT,r6,s6,fT,cT,MV,a6,pT,hT,bT,uT,dT,aX,i6,lT,t6,mT,e6,oT,nT,QH,XZ,rT,IV,sT,aT,JH,XH,iT,tT,eT,rU,YH,QA,JA,XA,YA,VA,$A,UA,ZA,GA,WA,KA,HA,FA,qA,zA,OA,CA,LA,MA,IA,DA;var VZ=P1(()=>{$T=Object.create,{getPrototypeOf:UT,defineProperty:u6,getOwnPropertyNames:ZT}=Object,GT=Object.prototype.hasOwnProperty,sU=p0((Q,J)=>{J.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var X={},$=Symbol("test"),W=Object($);if(typeof $==="string")return!1;if(Object.prototype.toString.call($)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(W)!=="[object Symbol]")return!1;var H=42;X[$]=H;for(var U in X)return!1;if(typeof Object.keys==="function"&&Object.keys(X).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(X).length!==0)return!1;var C=Object.getOwnPropertySymbols(X);if(C.length!==1||C[0]!==$)return!1;if(!Object.prototype.propertyIsEnumerable.call(X,$))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var A=Object.getOwnPropertyDescriptor(X,$);if(A.value!==H||A.enumerable!==!0)return!1}return!0}}),CV=p0((Q,J)=>{var X=sU();J.exports=function(){return X()&&!!Symbol.toStringTag}}),aU=p0((Q,J)=>{J.exports=Object}),KT=p0((Q,J)=>{J.exports=Error}),HT=p0((Q,J)=>{J.exports=EvalError}),FT=p0((Q,J)=>{J.exports=RangeError}),qT=p0((Q,J)=>{J.exports=ReferenceError}),d6=p0((Q,J)=>{J.exports=SyntaxError}),iX=p0((Q,J)=>{J.exports=TypeError}),zT=p0((Q,J)=>{J.exports=URIError}),OT=p0((Q,J)=>{J.exports=Math.abs}),CT=p0((Q,J)=>{J.exports=Math.floor}),LT=p0((Q,J)=>{J.exports=Math.max}),MT=p0((Q,J)=>{J.exports=Math.min}),IT=p0((Q,J)=>{J.exports=Math.pow}),DT=p0((Q,J)=>{J.exports=Math.round}),PT=p0((Q,J)=>{J.exports=Number.isNaN||function(X){return X!==X}}),TT=p0((Q,J)=>{var X=PT();J.exports=function($){if(X($)||$===0)return $;return $<0?-1:1}}),AT=p0((Q,J)=>{J.exports=Object.getOwnPropertyDescriptor}),JX=p0((Q,J)=>{var X=AT();if(X)try{X([],"length")}catch($){X=null}J.exports=X}),LV=p0((Q,J)=>{var X=Object.defineProperty||!1;if(X)try{X({},"a",{value:1})}catch($){X=!1}J.exports=X}),RT=p0((Q,J)=>{var X=typeof Symbol<"u"&&Symbol,$=sU();J.exports=function(){if(typeof X!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof X("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return $()}}),l6=p0((Q,J)=>{J.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),m6=p0((Q,J)=>{var X=aU();J.exports=X.getPrototypeOf||null}),ET=p0((Q,J)=>{var X="Function.prototype.bind called on incompatible ",$=Object.prototype.toString,W=Math.max,H="[object Function]",U=function(M,D){var L=[];for(var P=0;P<M.length;P+=1)L[P]=M[P];for(var E=0;E<D.length;E+=1)L[E+M.length]=D[E];return L},C=function(M,D){var L=[];for(var P=D||0,E=0;P<M.length;P+=1,E+=1)L[E]=M[P];return L},A=function(M,D){var L="";for(var P=0;P<M.length;P+=1)if(L+=M[P],P+1<M.length)L+=D;return L};J.exports=function(M){var D=this;if(typeof D!=="function"||$.apply(D)!==H)throw TypeError(X+D);var L=C(arguments,1),P,E=function(){if(this instanceof P){var v=D.apply(this,U(L,arguments));if(Object(v)===v)return v;return this}return D.apply(M,U(L,arguments))},S=W(0,D.length-L.length),B=[];for(var j=0;j<S;j++)B[j]="$"+j;if(P=Function("binder","return function ("+A(B,",")+"){ return binder.apply(this,arguments); }")(E),D.prototype){var N=function(){};N.prototype=D.prototype,P.prototype=new N,N.prototype=null}return P}}),tX=p0((Q,J)=>{var X=ET();J.exports=Function.prototype.bind||X}),iU=p0((Q,J)=>{J.exports=Function.prototype.call}),tU=p0((Q,J)=>{J.exports=Function.prototype.apply}),ST=p0((Q,J)=>{J.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),o6=p0((Q,J)=>{var X=tX(),$=tU(),W=iU(),H=ST();J.exports=H||X.call(W,$)}),eU=p0((Q,J)=>{var X=tX(),$=iX(),W=iU(),H=o6();J.exports=function(U){if(U.length<1||typeof U[0]!=="function")throw new $("a function is required");return H(X,W,U)}}),jT=p0((Q,J)=>{var X=eU(),$=JX(),W;try{W=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!=="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var H=!!W&&$&&$(Object.prototype,"__proto__"),U=Object,C=U.getPrototypeOf;J.exports=H&&typeof H.get==="function"?X([H.get]):typeof C==="function"?function(A){return C(A==null?A:U(A))}:!1}),QZ=p0((Q,J)=>{var X=l6(),$=m6(),W=jT();J.exports=X?function(H){return X(H)}:$?function(H){if(!H||typeof H!=="object"&&typeof H!=="function")throw TypeError("getProto: not an object");return $(H)}:W?function(H){return W(H)}:null}),n6=p0((Q,J)=>{var X=Function.prototype.call,$=Object.prototype.hasOwnProperty,W=tX();J.exports=W.call(X,$)}),JZ=p0((Q,J)=>{var X,$=aU(),W=KT(),H=HT(),U=FT(),C=qT(),A=d6(),M=iX(),D=zT(),L=OT(),P=CT(),E=LT(),S=MT(),B=IT(),j=DT(),N=TT(),v=Function,x=function(d){try{return v('"use strict"; return ('+d+").constructor;")()}catch(h){}},w=JX(),y=LV(),n=function(){throw new M},r=w?function(){try{return arguments.callee,n}catch(d){try{return w(arguments,"callee").get}catch(h){return n}}}():n,s=RT()(),i=QZ(),u=m6(),Q0=l6(),Y=tU(),G=iU(),F={},Z=typeof Uint8Array>"u"||!i?X:i(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?X:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?X:ArrayBuffer,"%ArrayIteratorPrototype%":s&&i?i([][Symbol.iterator]()):X,"%AsyncFromSyncIteratorPrototype%":X,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?X:Atomics,"%BigInt%":typeof BigInt>"u"?X:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?X:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?X:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?X:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":W,"%eval%":eval,"%EvalError%":H,"%Float16Array%":typeof Float16Array>"u"?X:Float16Array,"%Float32Array%":typeof Float32Array>"u"?X:Float32Array,"%Float64Array%":typeof Float64Array>"u"?X:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?X:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?X:Int8Array,"%Int16Array%":typeof Int16Array>"u"?X:Int16Array,"%Int32Array%":typeof Int32Array>"u"?X:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s&&i?i(i([][Symbol.iterator]())):X,"%JSON%":typeof JSON==="object"?JSON:X,"%Map%":typeof Map>"u"?X:Map,"%MapIteratorPrototype%":typeof Map>"u"||!s||!i?X:i(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?X:Promise,"%Proxy%":typeof Proxy>"u"?X:Proxy,"%RangeError%":U,"%ReferenceError%":C,"%Reflect%":typeof Reflect>"u"?X:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?X:Set,"%SetIteratorPrototype%":typeof Set>"u"||!s||!i?X:i(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?X:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s&&i?i(""[Symbol.iterator]()):X,"%Symbol%":s?Symbol:X,"%SyntaxError%":A,"%ThrowTypeError%":r,"%TypedArray%":Z,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?X:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?X:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?X:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?X:Uint32Array,"%URIError%":D,"%WeakMap%":typeof WeakMap>"u"?X:WeakMap,"%WeakRef%":typeof WeakRef>"u"?X:WeakRef,"%WeakSet%":typeof WeakSet>"u"?X:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":Y,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":u,"%Math.abs%":L,"%Math.floor%":P,"%Math.max%":E,"%Math.min%":S,"%Math.pow%":B,"%Math.round%":j,"%Math.sign%":N,"%Reflect.getPrototypeOf%":Q0};if(i)try{null.error}catch(d){O=i(i(d)),K["%Error.prototype%"]=O}var O,I=function d(h){var e;if(h==="%AsyncFunction%")e=x("async function () {}");else if(h==="%GeneratorFunction%")e=x("function* () {}");else if(h==="%AsyncGeneratorFunction%")e=x("async function* () {}");else if(h==="%AsyncGenerator%"){var q0=d("%AsyncGeneratorFunction%");if(q0)e=q0.prototype}else if(h==="%AsyncIteratorPrototype%"){var c=d("%AsyncGenerator%");if(c&&i)e=i(c.prototype)}return K[h]=e,e},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},V=tX(),q=n6(),R=V.call(G,Array.prototype.concat),T=V.call(Y,Array.prototype.splice),k=V.call(G,String.prototype.replace),g=V.call(G,String.prototype.slice),b=V.call(G,RegExp.prototype.exec),t=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G0=/\\(\\)?/g,p=function(d){var h=g(d,0,1),e=g(d,-1);if(h==="%"&&e!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");else if(e==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var q0=[];return k(d,t,function(c,l,U0,$0){q0[q0.length]=U0?k($0,G0,"$1"):l||c}),q0},_=function(d,h){var e=d,q0;if(q(z,e))q0=z[e],e="%"+q0[0]+"%";if(q(K,e)){var c=K[e];if(c===F)c=I(e);if(typeof c>"u"&&!h)throw new M("intrinsic "+d+" exists, but is not available. Please file an issue!");return{alias:q0,name:e,value:c}}throw new A("intrinsic "+d+" does not exist!")};J.exports=function(d,h){if(typeof d!=="string"||d.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!=="boolean")throw new M('"allowMissing" argument must be a boolean');if(b(/^%?[^%]*%?$/,d)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=p(d),q0=e.length>0?e[0]:"",c=_("%"+q0+"%",h),l=c.name,U0=c.value,$0=!1,m=c.alias;if(m)q0=m[0],T(e,R([0,1],m));for(var M0=1,o=!0;M0<e.length;M0+=1){var Y0=e[M0],T0=g(Y0,0,1),V0=g(Y0,-1);if((T0==='"'||T0==="'"||T0==="`"||(V0==='"'||V0==="'"||V0==="`"))&&T0!==V0)throw new A("property names with quotes must have matching quotes");if(Y0==="constructor"||!o)$0=!0;if(q0+="."+Y0,l="%"+q0+"%",q(K,l))U0=K[l];else if(U0!=null){if(!(Y0 in U0)){if(!h)throw new M("base intrinsic for "+d+" exists, but the property is not available.");return}if(w&&M0+1>=e.length){var W0=w(U0,Y0);if(o=!!W0,o&&"get"in W0&&!("originalValue"in W0.get))U0=W0.get;else U0=U0[Y0]}else o=q(U0,Y0),U0=U0[Y0];if(o&&!$0)K[l]=U0}}return U0}}),XX=p0((Q,J)=>{var X=JZ(),$=eU(),W=$([X("%String.prototype.indexOf%")]);J.exports=function(H,U){var C=X(H,!!U);if(typeof C==="function"&&W(H,".prototype.")>-1)return $([C]);return C}}),BT=p0((Q,J)=>{var X=CV()(),$=XX(),W=$("Object.prototype.toString"),H=function(A){if(X&&A&&typeof A==="object"&&Symbol.toStringTag in A)return!1;return W(A)==="[object Arguments]"},U=function(A){if(H(A))return!0;return A!==null&&typeof A==="object"&&"length"in A&&typeof A.length==="number"&&A.length>=0&&W(A)!=="[object Array]"&&"callee"in A&&W(A.callee)==="[object Function]"},C=function(){return H(arguments)}();H.isLegacyArguments=U,J.exports=C?H:U}),kT=p0((Q,J)=>{var X=XX(),$=CV()(),W=n6(),H=JX(),U;if($){if(C=X("RegExp.prototype.exec"),A={},M=function(){throw A},D={toString:M,valueOf:M},typeof Symbol.toPrimitive==="symbol")D[Symbol.toPrimitive]=M;U=function(E){if(!E||typeof E!=="object")return!1;var S=H(E,"lastIndex"),B=S&&W(S,"value");if(!B)return!1;try{C(E,D)}catch(j){return j===A}}}else L=X("Object.prototype.toString"),P="[object RegExp]",U=function(E){if(!E||typeof E!=="object"&&typeof E!=="function")return!1;return L(E)===P};var C,A,M,D,L,P;J.exports=U}),vT=p0((Q,J)=>{var X=XX(),$=kT(),W=X("RegExp.prototype.exec"),H=iX();J.exports=function(U){if(!$(U))throw new H("`regex` must be a RegExp");return function(C){return W(U,C)!==null}}}),NT=p0((Q,J)=>{var X=function*(){}.constructor;J.exports=()=>X}),xT=p0((Q,J)=>{var X=XX(),$=vT(),W=$(/^\s*(?:function)?\*/),H=CV()(),U=QZ(),C=X("Object.prototype.toString"),A=X("Function.prototype.toString"),M=NT();J.exports=function(D){if(typeof D!=="function")return!1;if(W(A(D)))return!0;if(!H){var L=C(D);return L==="[object GeneratorFunction]"}if(!U)return!1;var P=M();return P&&U(D)===P.prototype}}),wT=p0((Q,J)=>{var X=Function.prototype.toString,$=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,W,H;if(typeof $==="function"&&typeof Object.defineProperty==="function")try{W=Object.defineProperty({},"length",{get:function(){throw H}}),H={},$(function(){throw 42},null,W)}catch(w){if(w!==H)$=null}else $=null;var U=/^\s*class\b/,C=function(w){try{var y=X.call(w);return U.test(y)}catch(n){return!1}},A=function(w){try{if(C(w))return!1;return X.call(w),!0}catch(y){return!1}},M=Object.prototype.toString,D="[object Object]",L="[object Function]",P="[object GeneratorFunction]",E="[object HTMLAllCollection]",S="[object HTML document.all class]",B="[object HTMLCollection]",j=typeof Symbol==="function"&&!!Symbol.toStringTag,N=!(0 in[,]),v=function(){return!1};if(typeof document==="object"){if(x=document.all,M.call(x)===M.call(document.all))v=function(w){if((N||!w)&&(typeof w>"u"||typeof w==="object"))try{var y=M.call(w);return(y===E||y===S||y===B||y===D)&&w("")==null}catch(n){}return!1}}var x;J.exports=$?function(w){if(v(w))return!0;if(!w)return!1;if(typeof w!=="function"&&typeof w!=="object")return!1;try{$(w,null,W)}catch(y){if(y!==H)return!1}return!C(w)&&A(w)}:function(w){if(v(w))return!0;if(!w)return!1;if(typeof w!=="function"&&typeof w!=="object")return!1;if(j)return A(w);if(C(w))return!1;var y=M.call(w);if(y!==L&&y!==P&&!/^\[object HTML/.test(y))return!1;return A(w)}}),_T=p0((Q,J)=>{var X=wT(),$=Object.prototype.toString,W=Object.prototype.hasOwnProperty,H=function(M,D,L){for(var P=0,E=M.length;P<E;P++)if(W.call(M,P))if(L==null)D(M[P],P,M);else D.call(L,M[P],P,M)},U=function(M,D,L){for(var P=0,E=M.length;P<E;P++)if(L==null)D(M.charAt(P),P,M);else D.call(L,M.charAt(P),P,M)},C=function(M,D,L){for(var P in M)if(W.call(M,P))if(L==null)D(M[P],P,M);else D.call(L,M[P],P,M)};function A(M){return $.call(M)==="[object Array]"}J.exports=function(M,D,L){if(!X(D))throw TypeError("iterator must be a function");var P;if(arguments.length>=3)P=L;if(A(M))H(M,D,P);else if(typeof M==="string")U(M,D,P);else C(M,D,P)}}),gT=p0((Q,J)=>{J.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),yT=p0((Q,J)=>{var X=gT(),$=typeof globalThis>"u"?globalThis:globalThis;J.exports=function(){var W=[];for(var H=0;H<X.length;H++)if(typeof $[X[H]]==="function")W[W.length]=X[H];return W}}),r6=p0((Q,J)=>{var X=LV(),$=d6(),W=iX(),H=JX();J.exports=function(U,C,A){if(!U||typeof U!=="object"&&typeof U!=="function")throw new W("`obj` must be an object or a function`");if(typeof C!=="string"&&typeof C!=="symbol")throw new W("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new W("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new W("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new W("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new W("`loose`, if provided, must be a boolean");var M=arguments.length>3?arguments[3]:null,D=arguments.length>4?arguments[4]:null,L=arguments.length>5?arguments[5]:null,P=arguments.length>6?arguments[6]:!1,E=!!H&&H(U,C);if(X)X(U,C,{configurable:L===null&&E?E.configurable:!L,enumerable:M===null&&E?E.enumerable:!M,value:A,writable:D===null&&E?E.writable:!D});else if(P||!M&&!D&&!L)U[C]=A;else throw new $("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),s6=p0((Q,J)=>{var X=LV(),$=function(){return!!X};$.hasArrayLengthDefineBug=function(){if(!X)return null;try{return X([],"length",{value:1}).length!==1}catch(W){return!0}},J.exports=$}),fT=p0((Q,J)=>{var X=JZ(),$=r6(),W=s6()(),H=JX(),U=iX(),C=X("%Math.floor%");J.exports=function(A,M){if(typeof A!=="function")throw new U("`fn` is not a function");if(typeof M!=="number"||M<0||M>4294967295||C(M)!==M)throw new U("`length` must be a positive 32-bit integer");var D=arguments.length>2&&!!arguments[2],L=!0,P=!0;if("length"in A&&H){var E=H(A,"length");if(E&&!E.configurable)L=!1;if(E&&!E.writable)P=!1}if(L||P||!D)if(W)$(A,"length",M,!0,!0);else $(A,"length",M);return A}}),cT=p0((Q,J)=>{var X=tX(),$=tU(),W=o6();J.exports=function(){return W(X,$,arguments)}}),MV=p0((Q,J)=>{var X=fT(),$=LV(),W=eU(),H=cT();if(J.exports=function(U){var C=W(arguments),A=U.length-(arguments.length-1);return X(C,1+(A>0?A:0),!0)},$)$(J.exports,"apply",{value:H});else J.exports.apply=H}),a6=p0((Q,J)=>{var X=_T(),$=yT(),W=MV(),H=XX(),U=JX(),C=QZ(),A=H("Object.prototype.toString"),M=CV()(),D=typeof globalThis>"u"?globalThis:globalThis,L=$(),P=H("String.prototype.slice"),E=H("Array.prototype.indexOf",!0)||function(N,v){for(var x=0;x<N.length;x+=1)if(N[x]===v)return x;return-1},S={__proto__:null};if(M&&U&&C)X(L,function(N){var v=new D[N];if(Symbol.toStringTag in v&&C){var x=C(v),w=U(x,Symbol.toStringTag);if(!w&&x){var y=C(x);w=U(y,Symbol.toStringTag)}S["$"+N]=W(w.get)}});else X(L,function(N){var v=new D[N],x=v.slice||v.set;if(x)S["$"+N]=W(x)});var B=function(N){var v=!1;return X(S,function(x,w){if(!v)try{if("$"+x(N)===w)v=P(w,1)}catch(y){}}),v},j=function(N){var v=!1;return X(S,function(x,w){if(!v)try{x(N),v=P(w,1)}catch(y){}}),v};J.exports=function(N){if(!N||typeof N!=="object")return!1;if(!M){var v=P(A(N),8,-1);if(E(L,v)>-1)return v;if(v!=="Object")return!1;return j(N)}if(!U)return null;return B(N)}}),pT=p0((Q,J)=>{var X=a6();J.exports=function($){return!!X($)}}),hT=p0((Q)=>{var J=BT(),X=xT(),$=a6(),W=pT();function H(m){return m.call.bind(m)}var U=typeof BigInt<"u",C=typeof Symbol<"u",A=H(Object.prototype.toString),M=H(Number.prototype.valueOf),D=H(String.prototype.valueOf),L=H(Boolean.prototype.valueOf);if(U)P=H(BigInt.prototype.valueOf);var P;if(C)E=H(Symbol.prototype.valueOf);var E;function S(m,M0){if(typeof m!=="object")return!1;try{return M0(m),!0}catch(o){return!1}}Q.isArgumentsObject=J,Q.isGeneratorFunction=X,Q.isTypedArray=W;function B(m){return typeof Promise<"u"&&m instanceof Promise||m!==null&&typeof m==="object"&&typeof m.then==="function"&&typeof m.catch==="function"}Q.isPromise=B;function j(m){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(m);return W(m)||T(m)}Q.isArrayBufferView=j;function N(m){return $(m)==="Uint8Array"}Q.isUint8Array=N;function v(m){return $(m)==="Uint8ClampedArray"}Q.isUint8ClampedArray=v;function x(m){return $(m)==="Uint16Array"}Q.isUint16Array=x;function w(m){return $(m)==="Uint32Array"}Q.isUint32Array=w;function y(m){return $(m)==="Int8Array"}Q.isInt8Array=y;function n(m){return $(m)==="Int16Array"}Q.isInt16Array=n;function r(m){return $(m)==="Int32Array"}Q.isInt32Array=r;function s(m){return $(m)==="Float32Array"}Q.isFloat32Array=s;function i(m){return $(m)==="Float64Array"}Q.isFloat64Array=i;function u(m){return $(m)==="BigInt64Array"}Q.isBigInt64Array=u;function Q0(m){return $(m)==="BigUint64Array"}Q.isBigUint64Array=Q0;function Y(m){return A(m)==="[object Map]"}Y.working=typeof Map<"u"&&Y(new Map);function G(m){if(typeof Map>"u")return!1;return Y.working?Y(m):m instanceof Map}Q.isMap=G;function F(m){return A(m)==="[object Set]"}F.working=typeof Set<"u"&&F(new Set);function Z(m){if(typeof Set>"u")return!1;return F.working?F(m):m instanceof Set}Q.isSet=Z;function K(m){return A(m)==="[object WeakMap]"}K.working=typeof WeakMap<"u"&&K(new WeakMap);function O(m){if(typeof WeakMap>"u")return!1;return K.working?K(m):m instanceof WeakMap}Q.isWeakMap=O;function I(m){return A(m)==="[object WeakSet]"}I.working=typeof WeakSet<"u"&&I(new WeakSet);function z(m){return I(m)}Q.isWeakSet=z;function V(m){return A(m)==="[object ArrayBuffer]"}V.working=typeof ArrayBuffer<"u"&&V(new ArrayBuffer);function q(m){if(typeof ArrayBuffer>"u")return!1;return V.working?V(m):m instanceof ArrayBuffer}Q.isArrayBuffer=q;function R(m){return A(m)==="[object DataView]"}R.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&R(new DataView(new ArrayBuffer(1),0,1));function T(m){if(typeof DataView>"u")return!1;return R.working?R(m):m instanceof DataView}Q.isDataView=T;var k=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function g(m){return A(m)==="[object SharedArrayBuffer]"}function b(m){if(typeof k>"u")return!1;if(typeof g.working>"u")g.working=g(new k);return g.working?g(m):m instanceof k}Q.isSharedArrayBuffer=b;function t(m){return A(m)==="[object AsyncFunction]"}Q.isAsyncFunction=t;function G0(m){return A(m)==="[object Map Iterator]"}Q.isMapIterator=G0;function p(m){return A(m)==="[object Set Iterator]"}Q.isSetIterator=p;function _(m){return A(m)==="[object Generator]"}Q.isGeneratorObject=_;function d(m){return A(m)==="[object WebAssembly.Module]"}Q.isWebAssemblyCompiledModule=d;function h(m){return S(m,M)}Q.isNumberObject=h;function e(m){return S(m,D)}Q.isStringObject=e;function q0(m){return S(m,L)}Q.isBooleanObject=q0;function c(m){return U&&S(m,P)}Q.isBigIntObject=c;function l(m){return C&&S(m,E)}Q.isSymbolObject=l;function U0(m){return h(m)||e(m)||q0(m)||c(m)||l(m)}Q.isBoxedPrimitive=U0;function $0(m){return typeof Uint8Array<"u"&&(q(m)||b(m))}Q.isAnyArrayBuffer=$0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(m){Object.defineProperty(Q,m,{enumerable:!1,value:function(){throw Error(m+" is not supported in userland")}})})}),bT=p0((Q,J)=>{J.exports=function(X){return X instanceof Buffer}}),uT=p0((Q,J)=>{if(typeof Object.create==="function")J.exports=function(X,$){if($)X.super_=$,X.prototype=Object.create($.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}})};else J.exports=function(X,$){if($){X.super_=$;var W=function(){};W.prototype=$.prototype,X.prototype=new W,X.prototype.constructor=X}}}),dT=p0((Q,J)=>{try{if(X=(Y$(),u0(X$)),typeof X.inherits!=="function")throw"";J.exports=X.inherits}catch($){J.exports=uT()}var X}),aX=p0((Q)=>{var J=Object.getOwnPropertyDescriptors||function(q){var R=Object.keys(q),T={};for(var k=0;k<R.length;k++)T[R[k]]=Object.getOwnPropertyDescriptor(q,R[k]);return T},X=/%[sdj%]/g;Q.format=function(q){if(!w(q)){var R=[];for(var T=0;T<arguments.length;T++)R.push(H(arguments[T]));return R.join(" ")}var T=1,k=arguments,g=k.length,b=String(q).replace(X,function(G0){if(G0==="%%")return"%";if(T>=g)return G0;switch(G0){case"%s":return String(k[T++]);case"%d":return Number(k[T++]);case"%j":try{return JSON.stringify(k[T++])}catch(p){return"[Circular]"}default:return G0}});for(var t=k[T];T<g;t=k[++T])if(N(t)||!s(t))b+=" "+t;else b+=" "+H(t);return b},Q.deprecate=function(q,R){if(typeof process<"u"&&process.noDeprecation===!0)return q;if(typeof process>"u")return function(){return Q.deprecate(q,R).apply(this,arguments)};var T=!1;function k(){if(!T){if(process.throwDeprecation)throw Error(R);else if(process.traceDeprecation)console.trace(R);else console.error(R);T=!0}return q.apply(this,arguments)}return k};var $={},W=/^$/;Q.debuglog=function(q){if(q=q.toUpperCase(),!$[q])if(W.test(q)){var R=process.pid;$[q]=function(){var T=Q.format.apply(Q,arguments);console.error("%s %d: %s",q,R,T)}}else $[q]=function(){};return $[q]};function H(q,R){var T={seen:[],stylize:C};if(arguments.length>=3)T.depth=arguments[2];if(arguments.length>=4)T.colors=arguments[3];if(j(R))T.showHidden=R;else if(R)Q._extend(T,R);if(n(T.showHidden))T.showHidden=!1;if(n(T.depth))T.depth=2;if(n(T.colors))T.colors=!1;if(n(T.customInspect))T.customInspect=!0;if(T.colors)T.stylize=U;return M(T,q,T.depth)}Q.inspect=H,H.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},H.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function U(q,R){var T=H.styles[R];if(T)return"\x1B["+H.colors[T][0]+"m"+q+"\x1B["+H.colors[T][1]+"m";else return q}function C(q,R){return q}function A(q){var R={};return q.forEach(function(T,k){R[T]=!0}),R}function M(q,R,T){if(q.customInspect&&R&&Q0(R.inspect)&&R.inspect!==Q.inspect&&!(R.constructor&&R.constructor.prototype===R)){var k=R.inspect(T,q);if(!w(k))k=M(q,k,T);return k}var g=D(q,R);if(g)return g;var b=Object.keys(R),t=A(b);if(q.showHidden)b=Object.getOwnPropertyNames(R);if(u(R)&&(b.indexOf("message")>=0||b.indexOf("description")>=0))return L(R);if(b.length===0){if(Q0(R)){var G0=R.name?": "+R.name:"";return q.stylize("[Function"+G0+"]","special")}if(r(R))return q.stylize(RegExp.prototype.toString.call(R),"regexp");if(i(R))return q.stylize(Date.prototype.toString.call(R),"date");if(u(R))return L(R)}var p="",_=!1,d=["{","}"];if(B(R))_=!0,d=["[","]"];if(Q0(R)){var h=R.name?": "+R.name:"";p=" [Function"+h+"]"}if(r(R))p=" "+RegExp.prototype.toString.call(R);if(i(R))p=" "+Date.prototype.toUTCString.call(R);if(u(R))p=" "+L(R);if(b.length===0&&(!_||R.length==0))return d[0]+p+d[1];if(T<0)if(r(R))return q.stylize(RegExp.prototype.toString.call(R),"regexp");else return q.stylize("[Object]","special");q.seen.push(R);var e;if(_)e=P(q,R,T,t,b);else e=b.map(function(q0){return E(q,R,T,t,q0,_)});return q.seen.pop(),S(e,p,d)}function D(q,R){if(n(R))return q.stylize("undefined","undefined");if(w(R)){var T="'"+JSON.stringify(R).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return q.stylize(T,"string")}if(x(R))return q.stylize(""+R,"number");if(j(R))return q.stylize(""+R,"boolean");if(N(R))return q.stylize("null","null")}function L(q){return"["+Error.prototype.toString.call(q)+"]"}function P(q,R,T,k,g){var b=[];for(var t=0,G0=R.length;t<G0;++t)if(O(R,String(t)))b.push(E(q,R,T,k,String(t),!0));else b.push("");return g.forEach(function(p){if(!p.match(/^\d+$/))b.push(E(q,R,T,k,p,!0))}),b}function E(q,R,T,k,g,b){var t,G0,p;if(p=Object.getOwnPropertyDescriptor(R,g)||{value:R[g]},p.get)if(p.set)G0=q.stylize("[Getter/Setter]","special");else G0=q.stylize("[Getter]","special");else if(p.set)G0=q.stylize("[Setter]","special");if(!O(k,g))t="["+g+"]";if(!G0)if(q.seen.indexOf(p.value)<0){if(N(T))G0=M(q,p.value,null);else G0=M(q,p.value,T-1);if(G0.indexOf(`
19
- `)>-1)if(b)G0=G0.split(`
20
- `).map(function(_){return" "+_}).join(`
21
- `).slice(2);else G0=`
22
- `+G0.split(`
23
- `).map(function(_){return" "+_}).join(`
24
- `)}else G0=q.stylize("[Circular]","special");if(n(t)){if(b&&g.match(/^\d+$/))return G0;if(t=JSON.stringify(""+g),t.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))t=t.slice(1,-1),t=q.stylize(t,"name");else t=t.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),t=q.stylize(t,"string")}return t+": "+G0}function S(q,R,T){var k=0,g=q.reduce(function(b,t){if(k++,t.indexOf(`
25
- `)>=0)k++;return b+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(g>60)return T[0]+(R===""?"":R+`
26
- `)+" "+q.join(`,
27
- `)+" "+T[1];return T[0]+R+" "+q.join(", ")+" "+T[1]}Q.types=hT();function B(q){return Array.isArray(q)}Q.isArray=B;function j(q){return typeof q==="boolean"}Q.isBoolean=j;function N(q){return q===null}Q.isNull=N;function v(q){return q==null}Q.isNullOrUndefined=v;function x(q){return typeof q==="number"}Q.isNumber=x;function w(q){return typeof q==="string"}Q.isString=w;function y(q){return typeof q==="symbol"}Q.isSymbol=y;function n(q){return q===void 0}Q.isUndefined=n;function r(q){return s(q)&&G(q)==="[object RegExp]"}Q.isRegExp=r,Q.types.isRegExp=r;function s(q){return typeof q==="object"&&q!==null}Q.isObject=s;function i(q){return s(q)&&G(q)==="[object Date]"}Q.isDate=i,Q.types.isDate=i;function u(q){return s(q)&&(G(q)==="[object Error]"||q instanceof Error)}Q.isError=u,Q.types.isNativeError=u;function Q0(q){return typeof q==="function"}Q.isFunction=Q0;function Y(q){return q===null||typeof q==="boolean"||typeof q==="number"||typeof q==="string"||typeof q==="symbol"||typeof q>"u"}Q.isPrimitive=Y,Q.isBuffer=bT();function G(q){return Object.prototype.toString.call(q)}function F(q){return q<10?"0"+q.toString(10):q.toString(10)}var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K(){var q=new Date,R=[F(q.getHours()),F(q.getMinutes()),F(q.getSeconds())].join(":");return[q.getDate(),Z[q.getMonth()],R].join(" ")}Q.log=function(){console.log("%s - %s",K(),Q.format.apply(Q,arguments))},Q.inherits=dT(),Q._extend=function(q,R){if(!R||!s(R))return q;var T=Object.keys(R),k=T.length;while(k--)q[T[k]]=R[T[k]];return q};function O(q,R){return Object.prototype.hasOwnProperty.call(q,R)}var I=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!=="function")throw TypeError('The "original" argument must be of type Function');if(I&&q[I]){var R=q[I];if(typeof R!=="function")throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(R,I,{value:R,enumerable:!1,writable:!1,configurable:!0}),R}function R(){var T,k,g=new Promise(function(G0,p){T=G0,k=p}),b=[];for(var t=0;t<arguments.length;t++)b.push(arguments[t]);b.push(function(G0,p){if(G0)k(G0);else T(p)});try{q.apply(this,b)}catch(G0){k(G0)}return g}if(Object.setPrototypeOf(R,Object.getPrototypeOf(q)),I)Object.defineProperty(R,I,{value:R,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(R,J(q))},Q.promisify.custom=I;function z(q,R){if(!q){var T=Error("Promise was rejected with a falsy value");T.reason=q,q=T}return R(q)}function V(q){if(typeof q!=="function")throw TypeError('The "original" argument must be of type Function');function R(){var T=[];for(var k=0;k<arguments.length;k++)T.push(arguments[k]);var g=T.pop();if(typeof g!=="function")throw TypeError("The last argument must be of type Function");var b=this,t=function(){return g.apply(b,arguments)};q.apply(this,T).then(function(G0){process.nextTick(t.bind(null,null,G0))},function(G0){process.nextTick(z.bind(null,G0,t))})}return Object.setPrototypeOf(R,Object.getPrototypeOf(q)),Object.defineProperties(R,J(q)),R}Q.callbackify=V}),i6=p0((Q,J)=>{function X(r){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},X(r)}function $(r,s){for(var i=0;i<s.length;i++){var u=s[i];if(u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u)u.writable=!0;Object.defineProperty(r,H(u.key),u)}}function W(r,s,i){if(s)$(r.prototype,s);if(i)$(r,i);return Object.defineProperty(r,"prototype",{writable:!1}),r}function H(r){var s=U(r,"string");return X(s)==="symbol"?s:String(s)}function U(r,s){if(X(r)!=="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,s||"default");if(X(u)!=="object")return u;throw TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(r)}function C(r,s){if(!(r instanceof s))throw TypeError("Cannot call a class as a function")}function A(r,s){if(typeof s!=="function"&&s!==null)throw TypeError("Super expression must either be null or a function");if(r.prototype=Object.create(s&&s.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),s)M(r,s)}function M(r,s){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,u){return i.__proto__=u,i},M(r,s)}function D(r){var s=E();return function(){var i=S(r),u;if(s){var Q0=S(this).constructor;u=Reflect.construct(i,arguments,Q0)}else u=i.apply(this,arguments);return L(this,u)}}function L(r,s){if(s&&(X(s)==="object"||typeof s==="function"))return s;else if(s!==void 0)throw TypeError("Derived constructors may only return object or undefined");return P(r)}function P(r){if(r===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function E(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function S(r){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},S(r)}var B={},j,N;function v(r,s,i){if(!i)i=Error;function u(Y,G,F){if(typeof s==="string")return s;else return s(Y,G,F)}var Q0=function(Y){A(F,Y);var G=D(F);function F(Z,K,O){var I;return C(this,F),I=G.call(this,u(Z,K,O)),I.code=r,I}return W(F)}(i);B[r]=Q0}function x(r,s){if(Array.isArray(r)){var i=r.length;if(r=r.map(function(u){return String(u)}),i>2)return"one of ".concat(s," ").concat(r.slice(0,i-1).join(", "),", or ")+r[i-1];else if(i===2)return"one of ".concat(s," ").concat(r[0]," or ").concat(r[1]);else return"of ".concat(s," ").concat(r[0])}else return"of ".concat(s," ").concat(String(r))}function w(r,s,i){return r.substr(!i||i<0?0:+i,s.length)===s}function y(r,s,i){if(i===void 0||i>r.length)i=r.length;return r.substring(i-s.length,i)===s}function n(r,s,i){if(typeof i!=="number")i=0;if(i+s.length>r.length)return!1;else return r.indexOf(s,i)!==-1}v("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),v("ERR_INVALID_ARG_TYPE",function(r,s,i){if(j===void 0)j=rU();j(typeof r==="string","'name' must be a string");var u;if(typeof s==="string"&&w(s,"not "))u="must not be",s=s.replace(/^not /,"");else u="must be";var Q0;if(y(r," argument"))Q0="The ".concat(r," ").concat(u," ").concat(x(s,"type"));else{var Y=n(r,".")?"property":"argument";Q0='The "'.concat(r,'" ').concat(Y," ").concat(u," ").concat(x(s,"type"))}return Q0+=". Received type ".concat(X(i)),Q0},TypeError),v("ERR_INVALID_ARG_VALUE",function(r,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";if(N===void 0)N=aX();var u=N.inspect(s);if(u.length>128)u="".concat(u.slice(0,128),"...");return"The argument '".concat(r,"' ").concat(i,". Received ").concat(u)},TypeError,RangeError),v("ERR_INVALID_RETURN_VALUE",function(r,s,i){var u;if(i&&i.constructor&&i.constructor.name)u="instance of ".concat(i.constructor.name);else u="type ".concat(X(i));return"Expected ".concat(r,' to be returned from the "').concat(s,'"')+" function but got ".concat(u,".")},TypeError),v("ERR_MISSING_ARGS",function(){for(var r=arguments.length,s=Array(r),i=0;i<r;i++)s[i]=arguments[i];if(j===void 0)j=rU();j(s.length>0,"At least one arg needs to be specified");var u="The ",Q0=s.length;switch(s=s.map(function(Y){return'"'.concat(Y,'"')}),Q0){case 1:u+="".concat(s[0]," argument");break;case 2:u+="".concat(s[0]," and ").concat(s[1]," arguments");break;default:u+=s.slice(0,Q0-1).join(", "),u+=", and ".concat(s[Q0-1]," arguments");break}return"".concat(u," must be specified")},TypeError),Q.codes=B}),lT=p0((Q,J)=>{function X(q,R){var T=Object.keys(q);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(q);R&&(k=k.filter(function(g){return Object.getOwnPropertyDescriptor(q,g).enumerable})),T.push.apply(T,k)}return T}function $(q){for(var R=1;R<arguments.length;R++){var T=arguments[R]!=null?arguments[R]:{};R%2?X(Object(T),!0).forEach(function(k){W(q,k,T[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(T)):X(Object(T)).forEach(function(k){Object.defineProperty(q,k,Object.getOwnPropertyDescriptor(T,k))})}return q}function W(q,R,T){if(R=A(R),R in q)Object.defineProperty(q,R,{value:T,enumerable:!0,configurable:!0,writable:!0});else q[R]=T;return q}function H(q,R){if(!(q instanceof R))throw TypeError("Cannot call a class as a function")}function U(q,R){for(var T=0;T<R.length;T++){var k=R[T];if(k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k)k.writable=!0;Object.defineProperty(q,A(k.key),k)}}function C(q,R,T){if(R)U(q.prototype,R);if(T)U(q,T);return Object.defineProperty(q,"prototype",{writable:!1}),q}function A(q){var R=M(q,"string");return w(R)==="symbol"?R:String(R)}function M(q,R){if(w(q)!=="object"||q===null)return q;var T=q[Symbol.toPrimitive];if(T!==void 0){var k=T.call(q,R||"default");if(w(k)!=="object")return k;throw TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(q)}function D(q,R){if(typeof R!=="function"&&R!==null)throw TypeError("Super expression must either be null or a function");if(q.prototype=Object.create(R&&R.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),R)v(q,R)}function L(q){var R=j();return function(){var T=x(q),k;if(R){var g=x(this).constructor;k=Reflect.construct(T,arguments,g)}else k=T.apply(this,arguments);return P(this,k)}}function P(q,R){if(R&&(w(R)==="object"||typeof R==="function"))return R;else if(R!==void 0)throw TypeError("Derived constructors may only return object or undefined");return E(q)}function E(q){if(q===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function S(q){var R=typeof Map==="function"?new Map:void 0;return S=function(T){if(T===null||!N(T))return T;if(typeof T!=="function")throw TypeError("Super expression must either be null or a function");if(typeof R<"u"){if(R.has(T))return R.get(T);R.set(T,k)}function k(){return B(T,arguments,x(this).constructor)}return k.prototype=Object.create(T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),v(k,T)},S(q)}function B(q,R,T){if(j())B=Reflect.construct.bind();else B=function(k,g,b){var t=[null];t.push.apply(t,g);var G0=Function.bind.apply(k,t),p=new G0;if(b)v(p,b.prototype);return p};return B.apply(null,arguments)}function j(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(q){return!1}}function N(q){return Function.toString.call(q).indexOf("[native code]")!==-1}function v(q,R){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,k){return T.__proto__=k,T},v(q,R)}function x(q){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},x(q)}function w(q){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},w(q)}var y=aX(),n=y.inspect,r=i6(),s=r.codes.ERR_INVALID_ARG_TYPE;function i(q,R,T){if(T===void 0||T>q.length)T=q.length;return q.substring(T-R.length,T)===R}function u(q,R){if(R=Math.floor(R),q.length==0||R==0)return"";var T=q.length*R;R=Math.floor(Math.log(R)/Math.log(2));while(R)q+=q,R--;return q+=q.substring(0,T-q.length),q}var Q0="",Y="",G="",F="",Z={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},K=10;function O(q){var R=Object.keys(q),T=Object.create(Object.getPrototypeOf(q));return R.forEach(function(k){T[k]=q[k]}),Object.defineProperty(T,"message",{value:q.message}),T}function I(q){return n(q,{compact:!1,customInspect:!1,depth:1000,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function z(q,R,T){var k="",g="",b=0,t="",G0=!1,p=I(q),_=p.split(`
28
- `),d=I(R).split(`
29
- `),h=0,e="";if(T==="strictEqual"&&w(q)==="object"&&w(R)==="object"&&q!==null&&R!==null)T="strictEqualObject";if(_.length===1&&d.length===1&&_[0]!==d[0]){var q0=_[0].length+d[0].length;if(q0<=K){if((w(q)!=="object"||q===null)&&(w(R)!=="object"||R===null)&&(q!==0||R!==0))return"".concat(Z[T],`
30
-
31
- `)+"".concat(_[0]," !== ").concat(d[0],`
32
- `)}else if(T!=="strictEqualObject"){var c=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(q0<c){while(_[0][h]===d[0][h])h++;if(h>2)e=`
33
- `.concat(u(" ",h),"^"),h=0}}}var l=_[_.length-1],U0=d[d.length-1];while(l===U0){if(h++<2)t=`
34
- `.concat(l).concat(t);else k=l;if(_.pop(),d.pop(),_.length===0||d.length===0)break;l=_[_.length-1],U0=d[d.length-1]}var $0=Math.max(_.length,d.length);if($0===0){var m=p.split(`
35
- `);if(m.length>30){m[26]="".concat(Q0,"...").concat(F);while(m.length>27)m.pop()}return"".concat(Z.notIdentical,`
36
-
37
- `).concat(m.join(`
38
- `),`
39
- `)}if(h>3)t=`
40
- `.concat(Q0,"...").concat(F).concat(t),G0=!0;if(k!=="")t=`
41
- `.concat(k).concat(t),k="";var M0=0,o=Z[T]+`
42
- `.concat(Y,"+ actual").concat(F," ").concat(G,"- expected").concat(F),Y0=" ".concat(Q0,"...").concat(F," Lines skipped");for(h=0;h<$0;h++){var T0=h-b;if(_.length<h+1){if(T0>1&&h>2){if(T0>4)g+=`
43
- `.concat(Q0,"...").concat(F),G0=!0;else if(T0>3)g+=`
44
- `.concat(d[h-2]),M0++;g+=`
45
- `.concat(d[h-1]),M0++}b=h,k+=`
46
- `.concat(G,"-").concat(F," ").concat(d[h]),M0++}else if(d.length<h+1){if(T0>1&&h>2){if(T0>4)g+=`
47
- `.concat(Q0,"...").concat(F),G0=!0;else if(T0>3)g+=`
48
- `.concat(_[h-2]),M0++;g+=`
49
- `.concat(_[h-1]),M0++}b=h,g+=`
50
- `.concat(Y,"+").concat(F," ").concat(_[h]),M0++}else{var V0=d[h],W0=_[h],b0=W0!==V0&&(!i(W0,",")||W0.slice(0,-1)!==V0);if(b0&&i(V0,",")&&V0.slice(0,-1)===W0)b0=!1,W0+=",";if(b0){if(T0>1&&h>2){if(T0>4)g+=`
51
- `.concat(Q0,"...").concat(F),G0=!0;else if(T0>3)g+=`
52
- `.concat(_[h-2]),M0++;g+=`
53
- `.concat(_[h-1]),M0++}b=h,g+=`
54
- `.concat(Y,"+").concat(F," ").concat(W0),k+=`
55
- `.concat(G,"-").concat(F," ").concat(V0),M0+=2}else if(g+=k,k="",T0===1||h===0)g+=`
56
- `.concat(W0),M0++}if(M0>20&&h<$0-2)return"".concat(o).concat(Y0,`
57
- `).concat(g,`
58
- `).concat(Q0,"...").concat(F).concat(k,`
59
- `)+"".concat(Q0,"...").concat(F)}return"".concat(o).concat(G0?Y0:"",`
60
- `).concat(g).concat(k).concat(t).concat(e)}var V=function(q,R){D(k,q);var T=L(k);function k(g){var b;if(H(this,k),w(g)!=="object"||g===null)throw new s("options","Object",g);var{message:t,operator:G0,stackStartFn:p,actual:_,expected:d}=g,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,t!=null)b=T.call(this,String(t));else{if(process.stderr&&process.stderr.isTTY)if(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1)Q0="\x1B[34m",Y="\x1B[32m",F="\x1B[39m",G="\x1B[31m";else Q0="",Y="",F="",G="";if(w(_)==="object"&&_!==null&&w(d)==="object"&&d!==null&&"stack"in _&&_ instanceof Error&&"stack"in d&&d instanceof Error)_=O(_),d=O(d);if(G0==="deepStrictEqual"||G0==="strictEqual")b=T.call(this,z(_,d,G0));else if(G0==="notDeepStrictEqual"||G0==="notStrictEqual"){var e=Z[G0],q0=I(_).split(`
61
- `);if(G0==="notStrictEqual"&&w(_)==="object"&&_!==null)e=Z.notStrictEqualObject;if(q0.length>30){q0[26]="".concat(Q0,"...").concat(F);while(q0.length>27)q0.pop()}if(q0.length===1)b=T.call(this,"".concat(e," ").concat(q0[0]));else b=T.call(this,"".concat(e,`
62
-
63
- `).concat(q0.join(`
64
- `),`
65
- `))}else{var c=I(_),l="",U0=Z[G0];if(G0==="notDeepEqual"||G0==="notEqual"){if(c="".concat(Z[G0],`
66
-
67
- `).concat(c),c.length>1024)c="".concat(c.slice(0,1021),"...")}else{if(l="".concat(I(d)),c.length>512)c="".concat(c.slice(0,509),"...");if(l.length>512)l="".concat(l.slice(0,509),"...");if(G0==="deepEqual"||G0==="equal")c="".concat(U0,`
68
-
69
- `).concat(c,`
70
-
71
- should equal
72
-
73
- `);else l=" ".concat(G0," ").concat(l)}b=T.call(this,"".concat(c).concat(l))}}if(Error.stackTraceLimit=h,b.generatedMessage=!t,Object.defineProperty(E(b),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),b.code="ERR_ASSERTION",b.actual=_,b.expected=d,b.operator=G0,Error.captureStackTrace)Error.captureStackTrace(E(b),p);return b.stack,b.name="AssertionError",P(b)}return C(k,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:R,value:function(g,b){return n(this,$($({},b),{},{customInspect:!1,depth:0}))}}]),k}(S(Error),n.custom);J.exports=V}),t6=p0((Q,J)=>{var X=Object.prototype.toString;J.exports=function($){var W=X.call($),H=W==="[object Arguments]";if(!H)H=W!=="[object Array]"&&$!==null&&typeof $==="object"&&typeof $.length==="number"&&$.length>=0&&X.call($.callee)==="[object Function]";return H}}),mT=p0((Q,J)=>{var X;if(!Object.keys)$=Object.prototype.hasOwnProperty,W=Object.prototype.toString,H=t6(),U=Object.prototype.propertyIsEnumerable,C=!U.call({toString:null},"toString"),A=U.call(function(){},"prototype"),M=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],D=function(S){var B=S.constructor;return B&&B.prototype===S},L={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},P=function(){if(typeof window>"u")return!1;for(var S in window)try{if(!L["$"+S]&&$.call(window,S)&&window[S]!==null&&typeof window[S]==="object")try{D(window[S])}catch(B){return!0}}catch(B){return!0}return!1}(),E=function(S){if(typeof window>"u"||!P)return D(S);try{return D(S)}catch(B){return!1}},X=function(S){var B=S!==null&&typeof S==="object",j=W.call(S)==="[object Function]",N=H(S),v=B&&W.call(S)==="[object String]",x=[];if(!B&&!j&&!N)throw TypeError("Object.keys called on a non-object");var w=A&&j;if(v&&S.length>0&&!$.call(S,0))for(var y=0;y<S.length;++y)x.push(String(y));if(N&&S.length>0)for(var n=0;n<S.length;++n)x.push(String(n));else for(var r in S)if(!(w&&r==="prototype")&&$.call(S,r))x.push(String(r));if(C){var s=E(S);for(var i=0;i<M.length;++i)if(!(s&&M[i]==="constructor")&&$.call(S,M[i]))x.push(M[i])}return x};var $,W,H,U,C,A,M,D,L,P,E;J.exports=X}),e6=p0((Q,J)=>{var X=Array.prototype.slice,$=t6(),W=Object.keys,H=W?function(C){return W(C)}:mT(),U=Object.keys;H.shim=function(){if(Object.keys){var C=function(){var A=Object.keys(arguments);return A&&A.length===arguments.length}(1,2);if(!C)Object.keys=function(A){if($(A))return U(X.call(A));return U(A)}}else Object.keys=H;return Object.keys||H},J.exports=H}),oT=p0((Q,J)=>{var X=e6(),$=sU()(),W=XX(),H=aU(),U=W("Array.prototype.push"),C=W("Object.prototype.propertyIsEnumerable"),A=$?H.getOwnPropertySymbols:null;J.exports=function(M,D){if(M==null)throw TypeError("target must be an object");var L=H(M);if(arguments.length===1)return L;for(var P=1;P<arguments.length;++P){var E=H(arguments[P]),S=X(E),B=$&&(H.getOwnPropertySymbols||A);if(B){var j=B(E);for(var N=0;N<j.length;++N){var v=j[N];if(C(E,v))U(S,v)}}for(var x=0;x<S.length;++x){var w=S[x];if(C(E,w)){var y=E[w];L[w]=y}}}return L}}),nT=p0((Q,J)=>{var X=oT(),$=function(){if(!Object.assign)return!1;var H="abcdefghijklmnopqrst",U=H.split(""),C={};for(var A=0;A<U.length;++A)C[U[A]]=U[A];var M=Object.assign({},C),D="";for(var L in M)D+=L;return H!==D},W=function(){if(!Object.assign||!Object.preventExtensions)return!1;var H=Object.preventExtensions({1:2});try{Object.assign(H,"xy")}catch(U){return H[1]==="y"}return!1};J.exports=function(){if(!Object.assign)return X;if($())return X;if(W())return X;return Object.assign}}),QH=p0((Q,J)=>{var X=function($){return $!==$};J.exports=function($,W){if($===0&&W===0)return 1/$===1/W;if($===W)return!0;if(X($)&&X(W))return!0;return!1}}),XZ=p0((Q,J)=>{var X=QH();J.exports=function(){return typeof Object.is==="function"?Object.is:X}}),rT=p0((Q,J)=>{var X=JZ(),$=MV(),W=$(X("String.prototype.indexOf"));J.exports=function(H,U){var C=X(H,!!U);if(typeof C==="function"&&W(H,".prototype.")>-1)return $(C);return C}}),IV=p0((Q,J)=>{var X=e6(),$=typeof Symbol==="function"&&typeof Symbol("foo")==="symbol",W=Object.prototype.toString,H=Array.prototype.concat,U=r6(),C=function(L){return typeof L==="function"&&W.call(L)==="[object Function]"},A=s6()(),M=function(L,P,E,S){if(P in L){if(S===!0){if(L[P]===E)return}else if(!C(S)||!S())return}if(A)U(L,P,E,!0);else U(L,P,E)},D=function(L,P){var E=arguments.length>2?arguments[2]:{},S=X(P);if($)S=H.call(S,Object.getOwnPropertySymbols(P));for(var B=0;B<S.length;B+=1)M(L,S[B],P[S[B]],E[S[B]])};D.supportsDescriptors=!!A,J.exports=D}),sT=p0((Q,J)=>{var X=XZ(),$=IV();J.exports=function(){var W=X();return $(Object,{is:W},{is:function(){return Object.is!==W}}),W}}),aT=p0((Q,J)=>{var X=IV(),$=MV(),W=QH(),H=XZ(),U=sT(),C=$(H(),Object);X(C,{getPolyfill:H,implementation:W,shim:U}),J.exports=C}),JH=p0((Q,J)=>{J.exports=function(X){return X!==X}}),XH=p0((Q,J)=>{var X=JH();J.exports=function(){if(Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a"))return Number.isNaN;return X}}),iT=p0((Q,J)=>{var X=IV(),$=XH();J.exports=function(){var W=$();return X(Number,{isNaN:W},{isNaN:function(){return Number.isNaN!==W}}),W}}),tT=p0((Q,J)=>{var X=MV(),$=IV(),W=JH(),H=XH(),U=iT(),C=X(H(),Number);$(C,{getPolyfill:H,implementation:W,shim:U}),J.exports=C}),eT=p0((Q,J)=>{function X(a,J0){return C(a)||U(a,J0)||W(a,J0)||$()}function $(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
74
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(a,J0){if(!a)return;if(typeof a==="string")return H(a,J0);var y0=Object.prototype.toString.call(a).slice(8,-1);if(y0==="Object"&&a.constructor)y0=a.constructor.name;if(y0==="Map"||y0==="Set")return Array.from(a);if(y0==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y0))return H(a,J0)}function H(a,J0){if(J0==null||J0>a.length)J0=a.length;for(var y0=0,H0=Array(J0);y0<J0;y0++)H0[y0]=a[y0];return H0}function U(a,J0){var y0=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(y0!=null){var H0,F0,h0,z0,O0=[],d0=!0,I0=!1;try{if(h0=(y0=y0.call(a)).next,J0===0){if(Object(y0)!==y0)return;d0=!1}else for(;!(d0=(H0=h0.call(y0)).done)&&(O0.push(H0.value),O0.length!==J0);d0=!0);}catch(D0){I0=!0,F0=D0}finally{try{if(!d0&&y0.return!=null&&(z0=y0.return(),Object(z0)!==z0))return}finally{if(I0)throw F0}}return O0}}function C(a){if(Array.isArray(a))return a}function A(a){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J0){return typeof J0}:function(J0){return J0&&typeof Symbol=="function"&&J0.constructor===Symbol&&J0!==Symbol.prototype?"symbol":typeof J0},A(a)}var M=/a/g.flags!==void 0,D=function(a){var J0=[];return a.forEach(function(y0){return J0.push(y0)}),J0},L=function(a){var J0=[];return a.forEach(function(y0,H0){return J0.push([H0,y0])}),J0},P=Object.is?Object.is:aT(),E=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},S=Number.isNaN?Number.isNaN:tT();function B(a){return a.call.bind(a)}var j=B(Object.prototype.hasOwnProperty),N=B(Object.prototype.propertyIsEnumerable),v=B(Object.prototype.toString),x=aX().types,w=x.isAnyArrayBuffer,y=x.isArrayBufferView,n=x.isDate,r=x.isMap,s=x.isRegExp,i=x.isSet,u=x.isNativeError,Q0=x.isBoxedPrimitive,Y=x.isNumberObject,G=x.isStringObject,F=x.isBooleanObject,Z=x.isBigIntObject,K=x.isSymbolObject,O=x.isFloat32Array,I=x.isFloat64Array;function z(a){if(a.length===0||a.length>10)return!0;for(var J0=0;J0<a.length;J0++){var y0=a.charCodeAt(J0);if(y0<48||y0>57)return!0}return a.length===10&&a>=Math.pow(2,32)}function V(a){return Object.keys(a).filter(z).concat(E(a).filter(Object.prototype.propertyIsEnumerable.bind(a)))}/*!
75
- * The buffer module from node.js, for the browser.
76
- *
77
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
78
- * @license MIT
79
- */function q(a,J0){if(a===J0)return 0;var y0=a.length,H0=J0.length;for(var F0=0,h0=Math.min(y0,H0);F0<h0;++F0)if(a[F0]!==J0[F0]){y0=a[F0],H0=J0[F0];break}if(y0<H0)return-1;if(H0<y0)return 1;return 0}var R=void 0,T=!0,k=!1,g=0,b=1,t=2,G0=3;function p(a,J0){return M?a.source===J0.source&&a.flags===J0.flags:RegExp.prototype.toString.call(a)===RegExp.prototype.toString.call(J0)}function _(a,J0){if(a.byteLength!==J0.byteLength)return!1;for(var y0=0;y0<a.byteLength;y0++)if(a[y0]!==J0[y0])return!1;return!0}function d(a,J0){if(a.byteLength!==J0.byteLength)return!1;return q(new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new Uint8Array(J0.buffer,J0.byteOffset,J0.byteLength))===0}function h(a,J0){return a.byteLength===J0.byteLength&&q(new Uint8Array(a),new Uint8Array(J0))===0}function e(a,J0){if(Y(a))return Y(J0)&&P(Number.prototype.valueOf.call(a),Number.prototype.valueOf.call(J0));if(G(a))return G(J0)&&String.prototype.valueOf.call(a)===String.prototype.valueOf.call(J0);if(F(a))return F(J0)&&Boolean.prototype.valueOf.call(a)===Boolean.prototype.valueOf.call(J0);if(Z(a))return Z(J0)&&BigInt.prototype.valueOf.call(a)===BigInt.prototype.valueOf.call(J0);return K(J0)&&Symbol.prototype.valueOf.call(a)===Symbol.prototype.valueOf.call(J0)}function q0(a,J0,y0,H0){if(a===J0){if(a!==0)return!0;return y0?P(a,J0):!0}if(y0){if(A(a)!=="object")return typeof a==="number"&&S(a)&&S(J0);if(A(J0)!=="object"||a===null||J0===null)return!1;if(Object.getPrototypeOf(a)!==Object.getPrototypeOf(J0))return!1}else{if(a===null||A(a)!=="object"){if(J0===null||A(J0)!=="object")return a==J0;return!1}if(J0===null||A(J0)!=="object")return!1}var F0=v(a),h0=v(J0);if(F0!==h0)return!1;if(Array.isArray(a)){if(a.length!==J0.length)return!1;var z0=V(a,R),O0=V(J0,R);if(z0.length!==O0.length)return!1;return l(a,J0,y0,H0,b,z0)}if(F0==="[object Object]"){if(!r(a)&&r(J0)||!i(a)&&i(J0))return!1}if(n(a)){if(!n(J0)||Date.prototype.getTime.call(a)!==Date.prototype.getTime.call(J0))return!1}else if(s(a)){if(!s(J0)||!p(a,J0))return!1}else if(u(a)||a instanceof Error){if(a.message!==J0.message||a.name!==J0.name)return!1}else if(y(a)){if(!y0&&(O(a)||I(a))){if(!_(a,J0))return!1}else if(!d(a,J0))return!1;var d0=V(a,R),I0=V(J0,R);if(d0.length!==I0.length)return!1;return l(a,J0,y0,H0,g,d0)}else if(i(a)){if(!i(J0)||a.size!==J0.size)return!1;return l(a,J0,y0,H0,t)}else if(r(a)){if(!r(J0)||a.size!==J0.size)return!1;return l(a,J0,y0,H0,G0)}else if(w(a)){if(!h(a,J0))return!1}else if(Q0(a)&&!e(a,J0))return!1;return l(a,J0,y0,H0,g)}function c(a,J0){return J0.filter(function(y0){return N(a,y0)})}function l(a,J0,y0,H0,F0,h0){if(arguments.length===5){h0=Object.keys(a);var z0=Object.keys(J0);if(h0.length!==z0.length)return!1}var O0=0;for(;O0<h0.length;O0++)if(!j(J0,h0[O0]))return!1;if(y0&&arguments.length===5){var d0=E(a);if(d0.length!==0){var I0=0;for(O0=0;O0<d0.length;O0++){var D0=d0[O0];if(N(a,D0)){if(!N(J0,D0))return!1;h0.push(D0),I0++}else if(N(J0,D0))return!1}var ZQ=E(J0);if(d0.length!==ZQ.length&&c(J0,ZQ).length!==I0)return!1}else{var R0=E(J0);if(R0.length!==0&&c(J0,R0).length!==0)return!1}}if(h0.length===0&&(F0===g||F0===b&&a.length===0||a.size===0))return!0;if(H0===void 0)H0={val1:new Map,val2:new Map,position:0};else{var E0=H0.val1.get(a);if(E0!==void 0){var t0=H0.val2.get(J0);if(t0!==void 0)return E0===t0}H0.position++}H0.val1.set(a,H0.position),H0.val2.set(J0,H0.position);var S0=V0(a,J0,y0,h0,H0,F0);return H0.val1.delete(a),H0.val2.delete(J0),S0}function U0(a,J0,y0,H0){var F0=D(a);for(var h0=0;h0<F0.length;h0++){var z0=F0[h0];if(q0(J0,z0,y0,H0))return a.delete(z0),!0}return!1}function $0(a){switch(A(a)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":a=+a;case"number":if(S(a))return!1}return!0}function m(a,J0,y0){var H0=$0(y0);if(H0!=null)return H0;return J0.has(H0)&&!a.has(H0)}function M0(a,J0,y0,H0,F0){var h0=$0(y0);if(h0!=null)return h0;var z0=J0.get(h0);if(z0===void 0&&!J0.has(h0)||!q0(H0,z0,!1,F0))return!1;return!a.has(h0)&&q0(H0,z0,!1,F0)}function o(a,J0,y0,H0){var F0=null,h0=D(a);for(var z0=0;z0<h0.length;z0++){var O0=h0[z0];if(A(O0)==="object"&&O0!==null){if(F0===null)F0=new Set;F0.add(O0)}else if(!J0.has(O0)){if(y0)return!1;if(!m(a,J0,O0))return!1;if(F0===null)F0=new Set;F0.add(O0)}}if(F0!==null){var d0=D(J0);for(var I0=0;I0<d0.length;I0++){var D0=d0[I0];if(A(D0)==="object"&&D0!==null){if(!U0(F0,D0,y0,H0))return!1}else if(!y0&&!a.has(D0)&&!U0(F0,D0,y0,H0))return!1}return F0.size===0}return!0}function Y0(a,J0,y0,H0,F0,h0){var z0=D(a);for(var O0=0;O0<z0.length;O0++){var d0=z0[O0];if(q0(y0,d0,F0,h0)&&q0(H0,J0.get(d0),F0,h0))return a.delete(d0),!0}return!1}function T0(a,J0,y0,H0){var F0=null,h0=L(a);for(var z0=0;z0<h0.length;z0++){var O0=X(h0[z0],2),d0=O0[0],I0=O0[1];if(A(d0)==="object"&&d0!==null){if(F0===null)F0=new Set;F0.add(d0)}else{var D0=J0.get(d0);if(D0===void 0&&!J0.has(d0)||!q0(I0,D0,y0,H0)){if(y0)return!1;if(!M0(a,J0,d0,I0,H0))return!1;if(F0===null)F0=new Set;F0.add(d0)}}}if(F0!==null){var ZQ=L(J0);for(var R0=0;R0<ZQ.length;R0++){var E0=X(ZQ[R0],2),t0=E0[0],S0=E0[1];if(A(t0)==="object"&&t0!==null){if(!Y0(F0,a,t0,S0,y0,H0))return!1}else if(!y0&&(!a.has(t0)||!q0(a.get(t0),S0,!1,H0))&&!Y0(F0,a,t0,S0,!1,H0))return!1}return F0.size===0}return!0}function V0(a,J0,y0,H0,F0,h0){var z0=0;if(h0===t){if(!o(a,J0,y0,F0))return!1}else if(h0===G0){if(!T0(a,J0,y0,F0))return!1}else if(h0===b)for(;z0<a.length;z0++)if(j(a,z0)){if(!j(J0,z0)||!q0(a[z0],J0[z0],y0,F0))return!1}else if(j(J0,z0))return!1;else{var O0=Object.keys(a);for(;z0<O0.length;z0++){var d0=O0[z0];if(!j(J0,d0)||!q0(a[d0],J0[d0],y0,F0))return!1}if(O0.length!==Object.keys(J0).length)return!1;return!0}for(z0=0;z0<H0.length;z0++){var I0=H0[z0];if(!q0(a[I0],J0[I0],y0,F0))return!1}return!0}function W0(a,J0){return q0(a,J0,k)}function b0(a,J0){return q0(a,J0,T)}J.exports={isDeepEqual:W0,isDeepStrictEqual:b0}}),rU=p0((Q,J)=>{function X(p){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},X(p)}function $(p,_){for(var d=0;d<_.length;d++){var h=_[d];if(h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h)h.writable=!0;Object.defineProperty(p,H(h.key),h)}}function W(p,_,d){if(_)$(p.prototype,_);if(d)$(p,d);return Object.defineProperty(p,"prototype",{writable:!1}),p}function H(p){var _=U(p,"string");return X(_)==="symbol"?_:String(_)}function U(p,_){if(X(p)!=="object"||p===null)return p;var d=p[Symbol.toPrimitive];if(d!==void 0){var h=d.call(p,_||"default");if(X(h)!=="object")return h;throw TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(p)}function C(p,_){if(!(p instanceof _))throw TypeError("Cannot call a class as a function")}var A=i6(),M=A.codes,D=M.ERR_AMBIGUOUS_ARGUMENT,L=M.ERR_INVALID_ARG_TYPE,P=M.ERR_INVALID_ARG_VALUE,E=M.ERR_INVALID_RETURN_VALUE,S=M.ERR_MISSING_ARGS,B=lT(),j=aX(),N=j.inspect,v=aX().types,x=v.isPromise,w=v.isRegExp,y=nT()(),n=XZ()(),r=rT()("RegExp.prototype.test"),s,i;function u(){var p=eT();s=p.isDeepEqual,i=p.isDeepStrictEqual}var Q0=!1,Y=J.exports=O,G={};function F(p){if(p.message instanceof Error)throw p.message;throw new B(p)}function Z(p,_,d,h,e){var q0=arguments.length,c;if(q0===0)c="Failed";else if(q0===1)d=p,p=void 0;else{if(Q0===!1){Q0=!0;var l=process.emitWarning?process.emitWarning:console.warn.bind(console);l("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}if(q0===2)h="!="}if(d instanceof Error)throw d;var U0={actual:p,expected:_,operator:h===void 0?"fail":h,stackStartFn:e||Z};if(d!==void 0)U0.message=d;var $0=new B(U0);if(c)$0.message=c,$0.generatedMessage=!0;throw $0}Y.fail=Z,Y.AssertionError=B;function K(p,_,d,h){if(!d){var e=!1;if(_===0)e=!0,h="No value argument passed to `assert.ok()`";else if(h instanceof Error)throw h;var q0=new B({actual:d,expected:!0,message:h,operator:"==",stackStartFn:p});throw q0.generatedMessage=e,q0}}function O(){for(var p=arguments.length,_=Array(p),d=0;d<p;d++)_[d]=arguments[d];K.apply(void 0,[O,_.length].concat(_))}Y.ok=O,Y.equal=function p(_,d,h){if(arguments.length<2)throw new S("actual","expected");if(_!=d)F({actual:_,expected:d,message:h,operator:"==",stackStartFn:p})},Y.notEqual=function p(_,d,h){if(arguments.length<2)throw new S("actual","expected");if(_==d)F({actual:_,expected:d,message:h,operator:"!=",stackStartFn:p})},Y.deepEqual=function p(_,d,h){if(arguments.length<2)throw new S("actual","expected");if(s===void 0)u();if(!s(_,d))F({actual:_,expected:d,message:h,operator:"deepEqual",stackStartFn:p})},Y.notDeepEqual=function p(_,d,h){if(arguments.length<2)throw new S("actual","expected");if(s===void 0)u();if(s(_,d))F({actual:_,expected:d,message:h,operator:"notDeepEqual",stackStartFn:p})},Y.deepStrictEqual=function p(_,d,h){if(arguments.length<2)throw new S("actual","expected");if(s===void 0)u();if(!i(_,d))F({actual:_,expected:d,message:h,operator:"deepStrictEqual",stackStartFn:p})},Y.notDeepStrictEqual=I;function I(p,_,d){if(arguments.length<2)throw new S("actual","expected");if(s===void 0)u();if(i(p,_))F({actual:p,expected:_,message:d,operator:"notDeepStrictEqual",stackStartFn:I})}Y.strictEqual=function p(_,d,h){if(arguments.length<2)throw new S("actual","expected");if(!n(_,d))F({actual:_,expected:d,message:h,operator:"strictEqual",stackStartFn:p})},Y.notStrictEqual=function p(_,d,h){if(arguments.length<2)throw new S("actual","expected");if(n(_,d))F({actual:_,expected:d,message:h,operator:"notStrictEqual",stackStartFn:p})};var z=W(function p(_,d,h){var e=this;C(this,p),d.forEach(function(q0){if(q0 in _)if(h!==void 0&&typeof h[q0]==="string"&&w(_[q0])&&r(_[q0],h[q0]))e[q0]=h[q0];else e[q0]=_[q0]})});function V(p,_,d,h,e,q0){if(!(d in p)||!i(p[d],_[d])){if(!h){var c=new z(p,e),l=new z(_,e,p),U0=new B({actual:c,expected:l,operator:"deepStrictEqual",stackStartFn:q0});throw U0.actual=p,U0.expected=_,U0.operator=q0.name,U0}F({actual:p,expected:_,message:h,operator:q0.name,stackStartFn:q0})}}function q(p,_,d,h){if(typeof _!=="function"){if(w(_))return r(_,p);if(arguments.length===2)throw new L("expected",["Function","RegExp"],_);if(X(p)!=="object"||p===null){var e=new B({actual:p,expected:_,message:d,operator:"deepStrictEqual",stackStartFn:h});throw e.operator=h.name,e}var q0=Object.keys(_);if(_ instanceof Error)q0.push("name","message");else if(q0.length===0)throw new P("error",_,"may not be an empty object");if(s===void 0)u();return q0.forEach(function(c){if(typeof p[c]==="string"&&w(_[c])&&r(_[c],p[c]))return;V(p,_,c,d,q0,h)}),!0}if(_.prototype!==void 0&&p instanceof _)return!0;if(Error.isPrototypeOf(_))return!1;return _.call({},p)===!0}function R(p){if(typeof p!=="function")throw new L("fn","Function",p);try{p()}catch(_){return _}return G}function T(p){return x(p)||p!==null&&X(p)==="object"&&typeof p.then==="function"&&typeof p.catch==="function"}function k(p){return Promise.resolve().then(function(){var _;if(typeof p==="function"){if(_=p(),!T(_))throw new E("instance of Promise","promiseFn",_)}else if(T(p))_=p;else throw new L("promiseFn",["Function","Promise"],p);return Promise.resolve().then(function(){return _}).then(function(){return G}).catch(function(d){return d})})}function g(p,_,d,h){if(typeof d==="string"){if(arguments.length===4)throw new L("error",["Object","Error","Function","RegExp"],d);if(X(_)==="object"&&_!==null){if(_.message===d)throw new D("error/message",'The error message "'.concat(_.message,'" is identical to the message.'))}else if(_===d)throw new D("error/message",'The error "'.concat(_,'" is identical to the message.'));h=d,d=void 0}else if(d!=null&&X(d)!=="object"&&typeof d!=="function")throw new L("error",["Object","Error","Function","RegExp"],d);if(_===G){var e="";if(d&&d.name)e+=" (".concat(d.name,")");e+=h?": ".concat(h):".";var q0=p.name==="rejects"?"rejection":"exception";F({actual:void 0,expected:d,operator:p.name,message:"Missing expected ".concat(q0).concat(e),stackStartFn:p})}if(d&&!q(_,d,h,p))throw _}function b(p,_,d,h){if(_===G)return;if(typeof d==="string")h=d,d=void 0;if(!d||q(_,d)){var e=h?": ".concat(h):".",q0=p.name==="doesNotReject"?"rejection":"exception";F({actual:_,expected:d,operator:p.name,message:"Got unwanted ".concat(q0).concat(e,`
80
- `)+'Actual message: "'.concat(_&&_.message,'"'),stackStartFn:p})}throw _}Y.throws=function p(_){for(var d=arguments.length,h=Array(d>1?d-1:0),e=1;e<d;e++)h[e-1]=arguments[e];g.apply(void 0,[p,R(_)].concat(h))},Y.rejects=function p(_){for(var d=arguments.length,h=Array(d>1?d-1:0),e=1;e<d;e++)h[e-1]=arguments[e];return k(_).then(function(q0){return g.apply(void 0,[p,q0].concat(h))})},Y.doesNotThrow=function p(_){for(var d=arguments.length,h=Array(d>1?d-1:0),e=1;e<d;e++)h[e-1]=arguments[e];b.apply(void 0,[p,R(_)].concat(h))},Y.doesNotReject=function p(_){for(var d=arguments.length,h=Array(d>1?d-1:0),e=1;e<d;e++)h[e-1]=arguments[e];return k(_).then(function(q0){return b.apply(void 0,[p,q0].concat(h))})},Y.ifError=function p(_){if(_!==null&&_!==void 0){var d="ifError got unwanted exception: ";if(X(_)==="object"&&typeof _.message==="string")if(_.message.length===0&&_.constructor)d+=_.constructor.name;else d+=_.message;else d+=N(_);var h=new B({actual:_,expected:null,operator:"ifError",message:d,stackStartFn:p}),e=_.stack;if(typeof e==="string"){var q0=e.split(`
81
- `);q0.shift();var c=h.stack.split(`
82
- `);for(var l=0;l<q0.length;l++){var U0=c.indexOf(q0[l]);if(U0!==-1){c=c.slice(0,U0);break}}h.stack="".concat(c.join(`
83
- `),`
84
- `).concat(q0.join(`
85
- `))}throw h}};function t(p,_,d,h,e){if(!w(_))throw new L("regexp","RegExp",_);var q0=e==="match";if(typeof p!=="string"||r(_,p)!==q0){if(d instanceof Error)throw d;var c=!d;d=d||(typeof p!=="string"?'The "string" argument must be of type string. Received type '+"".concat(X(p)," (").concat(N(p),")"):(q0?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(N(_),`. Input:
86
-
87
- `).concat(N(p),`
88
- `));var l=new B({actual:p,expected:_,message:d,operator:e,stackStartFn:h});throw l.generatedMessage=c,l}}Y.match=function p(_,d,h){t(_,d,h,p,"match")},Y.doesNotMatch=function p(_,d,h){t(_,d,h,p,"doesNotMatch")};function G0(){for(var p=arguments.length,_=Array(p),d=0;d<p;d++)_[d]=arguments[d];K.apply(void 0,[G0,_.length].concat(_))}Y.strict=y(G0,Y,{equal:Y.strictEqual,deepEqual:Y.deepStrictEqual,notEqual:Y.notStrictEqual,notDeepEqual:Y.notDeepStrictEqual}),Y.strict.strict=Y.strict}),YH=WT(rU(),1),{AssertionError:QA,CallTracker:JA,deepEqual:XA,deepStrictEqual:YA,doesNotMatch:VA,doesNotReject:$A,doesNotThrow:UA,equal:ZA,fail:GA,ifError:WA,match:KA,notDeepEqual:HA,notDeepStrictEqual:FA,notEqual:qA,notStrictEqual:zA,ok:OA,rejects:CA,strict:LA,strictEqual:MA,throws:IA}=YH,DA=YH});var $Z=f0((ZE,VH)=>{var PV=(HQ(),u0(SQ)),YX=PV.Buffer,$J={},UJ;for(UJ in PV){if(!PV.hasOwnProperty(UJ))continue;if(UJ==="SlowBuffer"||UJ==="Buffer")continue;$J[UJ]=PV[UJ]}var VX=$J.Buffer={};for(UJ in YX){if(!YX.hasOwnProperty(UJ))continue;if(UJ==="allocUnsafe"||UJ==="allocUnsafeSlow")continue;VX[UJ]=YX[UJ]}$J.Buffer.prototype=YX.prototype;if(!VX.from||VX.from===Uint8Array.from)VX.from=function(Q,J,X){if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type '+typeof Q);if(Q&&typeof Q.length>"u")throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);return YX(Q,J,X)};if(!VX.alloc)VX.alloc=function(Q,J,X){if(typeof Q!=="number")throw TypeError('The "size" argument must be of type number. Received type '+typeof Q);if(Q<0||Q>=2147483648)throw RangeError('The value "'+Q+'" is invalid for option "size"');var $=YX(Q);if(!J||J.length===0)$.fill(0);else if(typeof X==="string")$.fill(J,X);else $.fill(J);return $};if(!$J.kStringMaxLength)try{$J.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(Q){}if(!$J.constants){if($J.constants={MAX_LENGTH:$J.kMaxLength},$J.kStringMaxLength)$J.constants.MAX_STRING_LENGTH=$J.kStringMaxLength}VH.exports=$J});var ZH=f0((GE,UH)=>{var PA=(VZ(),u0(YZ)),$H=$Z().Buffer,eX=OV(),TA=zV(),$X=TA.newInvalidAsn1Error;function lQ(Q){if(!Q||!$H.isBuffer(Q))throw TypeError("data must be a node Buffer");this._buf=Q,this._size=Q.length,this._len=0,this._offset=0}Object.defineProperty(lQ.prototype,"length",{enumerable:!0,get:function(){return this._len}});Object.defineProperty(lQ.prototype,"offset",{enumerable:!0,get:function(){return this._offset}});Object.defineProperty(lQ.prototype,"remain",{get:function(){return this._size-this._offset}});Object.defineProperty(lQ.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}});lQ.prototype.readByte=function(Q){if(this._size-this._offset<1)return null;var J=this._buf[this._offset]&255;if(!Q)this._offset+=1;return J};lQ.prototype.peek=function(){return this.readByte(!0)};lQ.prototype.readLength=function(Q){if(Q===void 0)Q=this._offset;if(Q>=this._size)return null;var J=this._buf[Q++]&255;if(J===null)return null;if((J&128)===128){if(J&=127,J===0)throw $X("Indefinite length not supported");if(J>4)throw $X("encoding too long");if(this._size-Q<J)return null;this._len=0;for(var X=0;X<J;X++)this._len=(this._len<<8)+(this._buf[Q++]&255)}else this._len=J;return Q};lQ.prototype.readSequence=function(Q){var J=this.peek();if(J===null)return null;if(Q!==void 0&&Q!==J)throw $X("Expected 0x"+Q.toString(16)+": got 0x"+J.toString(16));var X=this.readLength(this._offset+1);if(X===null)return null;return this._offset=X,J};lQ.prototype.readInt=function(){return this._readTag(eX.Integer)};lQ.prototype.readBoolean=function(){return this._readTag(eX.Boolean)===0?!1:!0};lQ.prototype.readEnumeration=function(){return this._readTag(eX.Enumeration)};lQ.prototype.readString=function(Q,J){if(!Q)Q=eX.OctetString;var X=this.peek();if(X===null)return null;if(X!==Q)throw $X("Expected 0x"+Q.toString(16)+": got 0x"+X.toString(16));var $=this.readLength(this._offset+1);if($===null)return null;if(this.length>this._size-$)return null;if(this._offset=$,this.length===0)return J?$H.alloc(0):"";var W=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,J?W:W.toString("utf8")};lQ.prototype.readOID=function(Q){if(!Q)Q=eX.OID;var J=this.readString(Q,!0);if(J===null)return null;var X=[],$=0;for(var W=0;W<J.length;W++){var H=J[W]&255;if($<<=7,$+=H&127,(H&128)===0)X.push($),$=0}return $=X.shift(),X.unshift($%40),X.unshift($/40>>0),X.join(".")};lQ.prototype._readTag=function(Q){PA.ok(Q!==void 0);var J=this.peek();if(J===null)return null;if(J!==Q)throw $X("Expected 0x"+Q.toString(16)+": got 0x"+J.toString(16));var X=this.readLength(this._offset+1);if(X===null)return null;if(this.length>4)throw $X("Integer too long: "+this.length);if(this.length>this._size-X)return null;this._offset=X;var $=this._buf[this._offset],W=0;for(var H=0;H<this.length;H++)W<<=8,W|=this._buf[this._offset++]&255;if(($&128)===128&&H!==4)W-=1<<H*8;return W>>0};UH.exports=lQ});var WH=f0((WE,GH)=>{var aJ=(VZ(),u0(YZ)),TV=$Z().Buffer,iJ=OV(),AA=zV(),AV=AA.newInvalidAsn1Error,RA={size:1024,growthFactor:8};function EA(Q,J){aJ.ok(Q),aJ.equal(typeof Q,"object"),aJ.ok(J),aJ.equal(typeof J,"object");var X=Object.getOwnPropertyNames(Q);return X.forEach(function($){if(J[$])return;var W=Object.getOwnPropertyDescriptor(Q,$);Object.defineProperty(J,$,W)}),J}function cQ(Q){Q=EA(RA,Q||{}),this._buf=TV.alloc(Q.size||1024),this._size=this._buf.length,this._offset=0,this._options=Q,this._seq=[]}Object.defineProperty(cQ.prototype,"buffer",{get:function(){if(this._seq.length)throw AV(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}});cQ.prototype.writeByte=function(Q){if(typeof Q!=="number")throw TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=Q};cQ.prototype.writeInt=function(Q,J){if(typeof Q!=="number")throw TypeError("argument must be a Number");if(typeof J!=="number")J=iJ.Integer;var X=4;while(((Q&4286578688)===0||(Q&4286578688)===-8388608)&&X>1)X--,Q<<=8;if(X>4)throw AV("BER ints cannot be > 0xffffffff");this._ensure(2+X),this._buf[this._offset++]=J,this._buf[this._offset++]=X;while(X-- >0)this._buf[this._offset++]=(Q&4278190080)>>>24,Q<<=8};cQ.prototype.writeNull=function(){this.writeByte(iJ.Null),this.writeByte(0)};cQ.prototype.writeEnumeration=function(Q,J){if(typeof Q!=="number")throw TypeError("argument must be a Number");if(typeof J!=="number")J=iJ.Enumeration;return this.writeInt(Q,J)};cQ.prototype.writeBoolean=function(Q,J){if(typeof Q!=="boolean")throw TypeError("argument must be a Boolean");if(typeof J!=="number")J=iJ.Boolean;this._ensure(3),this._buf[this._offset++]=J,this._buf[this._offset++]=1,this._buf[this._offset++]=Q?255:0};cQ.prototype.writeString=function(Q,J){if(typeof Q!=="string")throw TypeError("argument must be a string (was: "+typeof Q+")");if(typeof J!=="number")J=iJ.OctetString;var X=TV.byteLength(Q);if(this.writeByte(J),this.writeLength(X),X)this._ensure(X),this._buf.write(Q,this._offset),this._offset+=X};cQ.prototype.writeBuffer=function(Q,J){if(typeof J!=="number")throw TypeError("tag must be a number");if(!TV.isBuffer(Q))throw TypeError("argument must be a buffer");this.writeByte(J),this.writeLength(Q.length),this._ensure(Q.length),Q.copy(this._buf,this._offset,0,Q.length),this._offset+=Q.length};cQ.prototype.writeStringArray=function(Q){if(!Q instanceof Array)throw TypeError("argument must be an Array[String]");var J=this;Q.forEach(function(X){J.writeString(X)})};cQ.prototype.writeOID=function(Q,J){if(typeof Q!=="string")throw TypeError("argument must be a string");if(typeof J!=="number")J=iJ.OID;if(!/^([0-9]+\.){3,}[0-9]+$/.test(Q))throw Error("argument is not a valid OID string");function X(U,C){if(C<128)U.push(C);else if(C<16384)U.push(C>>>7|128),U.push(C&127);else if(C<2097152)U.push(C>>>14|128),U.push((C>>>7|128)&255),U.push(C&127);else if(C<268435456)U.push(C>>>21|128),U.push((C>>>14|128)&255),U.push((C>>>7|128)&255),U.push(C&127);else U.push((C>>>28|128)&255),U.push((C>>>21|128)&255),U.push((C>>>14|128)&255),U.push((C>>>7|128)&255),U.push(C&127)}var $=Q.split("."),W=[];W.push(parseInt($[0],10)*40+parseInt($[1],10)),$.slice(2).forEach(function(U){X(W,parseInt(U,10))});var H=this;this._ensure(2+W.length),this.writeByte(J),this.writeLength(W.length),W.forEach(function(U){H.writeByte(U)})};cQ.prototype.writeLength=function(Q){if(typeof Q!=="number")throw TypeError("argument must be a Number");if(this._ensure(4),Q<=127)this._buf[this._offset++]=Q;else if(Q<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=Q;else if(Q<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=Q>>8,this._buf[this._offset++]=Q;else if(Q<=16777215)this._buf[this._offset++]=131,this._buf[this._offset++]=Q>>16,this._buf[this._offset++]=Q>>8,this._buf[this._offset++]=Q;else throw AV("Length too long (> 4 bytes)")};cQ.prototype.startSequence=function(Q){if(typeof Q!=="number")Q=iJ.Sequence|iJ.Constructor;this.writeByte(Q),this._seq.push(this._offset),this._ensure(3),this._offset+=3};cQ.prototype.endSequence=function(){var Q=this._seq.pop(),J=Q+3,X=this._offset-J;if(X<=127)this._shift(J,X,-2),this._buf[Q]=X;else if(X<=255)this._shift(J,X,-1),this._buf[Q]=129,this._buf[Q+1]=X;else if(X<=65535)this._buf[Q]=130,this._buf[Q+1]=X>>8,this._buf[Q+2]=X;else if(X<=16777215)this._shift(J,X,1),this._buf[Q]=131,this._buf[Q+1]=X>>16,this._buf[Q+2]=X>>8,this._buf[Q+3]=X;else throw AV("Sequence too long")};cQ.prototype._shift=function(Q,J,X){aJ.ok(Q!==void 0),aJ.ok(J!==void 0),aJ.ok(X),this._buf.copy(this._buf,Q+X,Q,Q+J),this._offset+=X};cQ.prototype._ensure=function(Q){if(aJ.ok(Q),this._size-this._offset<Q){var J=this._size*this._options.growthFactor;if(J-this._offset<Q)J+=Q;var X=TV.alloc(J);this._buf.copy(X,0,0,this._offset),this._buf=X,this._size=J}};GH.exports=cQ});var KH=f0((KE,RV)=>{var UZ=zV(),ZZ=OV(),SA=ZH(),jA=WH();RV.exports={Reader:SA,Writer:jA};for(QY in ZZ)if(ZZ.hasOwnProperty(QY))RV.exports[QY]=ZZ[QY];var QY;for(JY in UZ)if(UZ.hasOwnProperty(JY))RV.exports[JY]=UZ[JY];var JY});var EV=f0((HE,HH)=>{var GZ=KH();HH.exports={Ber:GZ,BerReader:GZ.Reader,BerWriter:GZ.Writer}});var LH=f0((FE,BV)=>{var SV=EV().Ber,FH=uQ()._,jV=uQ(),qH="-----BEGIN RSA PRIVATE KEY-----",zH="-----END RSA PRIVATE KEY-----",OH="-----BEGIN RSA PUBLIC KEY-----",CH="-----END RSA PUBLIC KEY-----";BV.exports={privateExport:function(Q,J){J=J||{};var X=Q.n.toBuffer(),$=Q.d.toBuffer(),W=Q.p.toBuffer(),H=Q.q.toBuffer(),U=Q.dmp1.toBuffer(),C=Q.dmq1.toBuffer(),A=Q.coeff.toBuffer(),M=X.length+$.length+W.length+H.length+U.length+C.length+A.length+512,D=new SV.Writer({size:M});if(D.startSequence(),D.writeInt(0),D.writeBuffer(X,2),D.writeInt(Q.e),D.writeBuffer($,2),D.writeBuffer(W,2),D.writeBuffer(H,2),D.writeBuffer(U,2),D.writeBuffer(C,2),D.writeBuffer(A,2),D.endSequence(),J.type==="der")return D.buffer;else return qH+`
89
- `+jV.linebrk(D.buffer.toString("base64"),64)+`
90
- `+zH},privateImport:function(Q,J,X){X=X||{};var $;if(X.type!=="der"){if(Buffer.isBuffer(J))J=J.toString("utf8");if(FH.isString(J)){var W=jV.trimSurroundingText(J,qH,zH).replace(/\s+|\n\r|\n|\r$/gm,"");$=Buffer.from(W,"base64")}else throw Error("Unsupported key format")}else if(Buffer.isBuffer(J))$=J;else throw Error("Unsupported key format");var H=new SV.Reader($);H.readSequence(),H.readString(2,!0),Q.setPrivate(H.readString(2,!0),H.readString(2,!0),H.readString(2,!0),H.readString(2,!0),H.readString(2,!0),H.readString(2,!0),H.readString(2,!0),H.readString(2,!0))},publicExport:function(Q,J){J=J||{};var X=Q.n.toBuffer(),$=X.length+512,W=new SV.Writer({size:$});if(W.startSequence(),W.writeBuffer(X,2),W.writeInt(Q.e),W.endSequence(),J.type==="der")return W.buffer;else return OH+`
91
- `+jV.linebrk(W.buffer.toString("base64"),64)+`
92
- `+CH},publicImport:function(Q,J,X){X=X||{};var $;if(X.type!=="der"){if(Buffer.isBuffer(J))J=J.toString("utf8");if(FH.isString(J)){var W=jV.trimSurroundingText(J,OH,CH).replace(/\s+|\n\r|\n|\r$/gm,"");$=Buffer.from(W,"base64")}}else if(Buffer.isBuffer(J))$=J;else throw Error("Unsupported key format");var H=new SV.Reader($);H.readSequence(),Q.setPublic(H.readString(2,!0),H.readString(2,!0))},autoImport:function(Q,J){if(/^[\S\s]*-----BEGIN RSA PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PRIVATE KEY-----[\S\s]*$/g.test(J))return BV.exports.privateImport(Q,J),!0;if(/^[\S\s]*-----BEGIN RSA PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PUBLIC KEY-----[\S\s]*$/g.test(J))return BV.exports.publicImport(Q,J),!0;return!1}}});var AH=f0((qE,NV)=>{var AJ=EV().Ber,MH=uQ()._,kV="1.2.840.113549.1.1.1",vV=uQ(),IH="-----BEGIN PRIVATE KEY-----",DH="-----END PRIVATE KEY-----",PH="-----BEGIN PUBLIC KEY-----",TH="-----END PUBLIC KEY-----";NV.exports={privateExport:function(Q,J){J=J||{};var X=Q.n.toBuffer(),$=Q.d.toBuffer(),W=Q.p.toBuffer(),H=Q.q.toBuffer(),U=Q.dmp1.toBuffer(),C=Q.dmq1.toBuffer(),A=Q.coeff.toBuffer(),M=X.length+$.length+W.length+H.length+U.length+C.length+A.length+512,D=new AJ.Writer({size:M});D.startSequence(),D.writeInt(0),D.writeBuffer(X,2),D.writeInt(Q.e),D.writeBuffer($,2),D.writeBuffer(W,2),D.writeBuffer(H,2),D.writeBuffer(U,2),D.writeBuffer(C,2),D.writeBuffer(A,2),D.endSequence();var L=new AJ.Writer({size:M});if(L.startSequence(),L.writeInt(0),L.startSequence(),L.writeOID(kV),L.writeNull(),L.endSequence(),L.writeBuffer(D.buffer,4),L.endSequence(),J.type==="der")return L.buffer;else return IH+`
93
- `+vV.linebrk(L.buffer.toString("base64"),64)+`
94
- `+DH},privateImport:function(Q,J,X){X=X||{};var $;if(X.type!=="der"){if(Buffer.isBuffer(J))J=J.toString("utf8");if(MH.isString(J)){var W=vV.trimSurroundingText(J,IH,DH).replace("-----END PRIVATE KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,"");$=Buffer.from(W,"base64")}else throw Error("Unsupported key format")}else if(Buffer.isBuffer(J))$=J;else throw Error("Unsupported key format");var H=new AJ.Reader($);H.readSequence(),H.readInt(0);var U=new AJ.Reader(H.readString(48,!0));if(U.readOID(6,!0)!==kV)throw Error("Invalid Public key format");var C=new AJ.Reader(H.readString(4,!0));C.readSequence(),C.readString(2,!0),Q.setPrivate(C.readString(2,!0),C.readString(2,!0),C.readString(2,!0),C.readString(2,!0),C.readString(2,!0),C.readString(2,!0),C.readString(2,!0),C.readString(2,!0))},publicExport:function(Q,J){J=J||{};var X=Q.n.toBuffer(),$=X.length+512,W=new AJ.Writer({size:$});W.writeByte(0),W.startSequence(),W.writeBuffer(X,2),W.writeInt(Q.e),W.endSequence();var H=new AJ.Writer({size:$});if(H.startSequence(),H.startSequence(),H.writeOID(kV),H.writeNull(),H.endSequence(),H.writeBuffer(W.buffer,3),H.endSequence(),J.type==="der")return H.buffer;else return PH+`
95
- `+vV.linebrk(H.buffer.toString("base64"),64)+`
96
- `+TH},publicImport:function(Q,J,X){X=X||{};var $;if(X.type!=="der"){if(Buffer.isBuffer(J))J=J.toString("utf8");if(MH.isString(J)){var W=vV.trimSurroundingText(J,PH,TH).replace(/\s+|\n\r|\n|\r$/gm,"");$=Buffer.from(W,"base64")}}else if(Buffer.isBuffer(J))$=J;else throw Error("Unsupported key format");var H=new AJ.Reader($);H.readSequence();var U=new AJ.Reader(H.readString(48,!0));if(U.readOID(6,!0)!==kV)throw Error("Invalid Public key format");var C=new AJ.Reader(H.readString(3,!0));C.readByte(),C.readSequence(),Q.setPublic(C.readString(2,!0),C.readString(2,!0))},autoImport:function(Q,J){if(/^[\S\s]*-----BEGIN PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PRIVATE KEY-----[\S\s]*$/g.test(J))return NV.exports.privateImport(Q,J),!0;if(/^[\S\s]*-----BEGIN PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PUBLIC KEY-----[\S\s]*$/g.test(J))return NV.exports.publicImport(Q,J),!0;return!1}}});var RH=f0((CE,xV)=>{var zE=uQ()._,OE=uQ();xV.exports={privateExport:function(Q,J){return{n:Q.n.toBuffer(),e:Q.e,d:Q.d.toBuffer(),p:Q.p.toBuffer(),q:Q.q.toBuffer(),dmp1:Q.dmp1.toBuffer(),dmq1:Q.dmq1.toBuffer(),coeff:Q.coeff.toBuffer()}},privateImport:function(Q,J,X){if(J.n&&J.e&&J.d&&J.p&&J.q&&J.dmp1&&J.dmq1&&J.coeff)Q.setPrivate(J.n,J.e,J.d,J.p,J.q,J.dmp1,J.dmq1,J.coeff);else throw Error("Invalid key data")},publicExport:function(Q,J){return{n:Q.n.toBuffer(),e:Q.e}},publicImport:function(Q,J,X){if(J.n&&J.e)Q.setPublic(J.n,J.e);else throw Error("Invalid key data")},autoImport:function(Q,J){if(J.n&&J.e)if(J.d&&J.p&&J.q&&J.dmp1&&J.dmq1&&J.coeff)return xV.exports.privateImport(Q,J),!0;else return xV.exports.publicImport(Q,J),!0;return!1}}});var kH=f0((LE,wV)=>{var EH=uQ()._,SH=uQ(),XY=M1(),jH="-----BEGIN OPENSSH PRIVATE KEY-----",BH="-----END OPENSSH PRIVATE KEY-----";wV.exports={privateExport:function(Q,J){let X=Q.n.toBuffer(),$=Buffer.alloc(4);$.writeUInt32BE(Q.e,0);while($[0]===0)$=$.slice(1);let W=Q.d.toBuffer(),H=Q.coeff.toBuffer(),U=Q.p.toBuffer(),C=Q.q.toBuffer(),A;if(typeof Q.sshcomment<"u")A=Buffer.from(Q.sshcomment);else A=Buffer.from([]);let M=15+$.byteLength+4+X.byteLength,D=23+X.byteLength+4+$.byteLength+4+W.byteLength+4+H.byteLength+4+U.byteLength+4+C.byteLength+4+A.byteLength,L=43+M+4+D,P=Math.ceil(D/8)*8-D;L+=P;let E=Buffer.alloc(L),S={buf:E,off:0};E.write("openssh-key-v1","utf8"),E.writeUInt8(0,14),S.off+=15,yQ(S,Buffer.from("none")),yQ(S,Buffer.from("none")),yQ(S,Buffer.from("")),S.off=S.buf.writeUInt32BE(1,S.off),S.off=S.buf.writeUInt32BE(M,S.off),yQ(S,Buffer.from("ssh-rsa")),yQ(S,$),yQ(S,X),S.off=S.buf.writeUInt32BE(L-47-M,S.off),S.off+=8,yQ(S,Buffer.from("ssh-rsa")),yQ(S,X),yQ(S,$),yQ(S,W),yQ(S,H),yQ(S,U),yQ(S,C),yQ(S,A);let B=1;while(S.off<L)S.off=S.buf.writeUInt8(B++,S.off);if(J.type==="der")return S.buf;else return jH+`
97
- `+SH.linebrk(E.toString("base64"),70)+`
98
- `+BH+`
99
- `},privateImport:function(Q,J,X){X=X||{};var $;if(X.type!=="der"){if(Buffer.isBuffer(J))J=J.toString("utf8");if(EH.isString(J)){var W=SH.trimSurroundingText(J,jH,BH).replace(/\s+|\n\r|\n|\r$/gm,"");$=Buffer.from(W,"base64")}else throw Error("Unsupported key format")}else if(Buffer.isBuffer(J))$=J;else throw Error("Unsupported key format");let H={buf:$,off:0};if($.slice(0,14).toString("ascii")!=="openssh-key-v1")throw"Invalid file format.";if(H.off+=15,gQ(H).toString("ascii")!=="none")throw Error("Unsupported key type");if(gQ(H).toString("ascii")!=="none")throw Error("Unsupported key type");if(gQ(H).toString("ascii")!=="")throw Error("Unsupported key type");if(H.off+=4,H.off+=4,gQ(H).toString("ascii")!=="ssh-rsa")throw Error("Unsupported key type");if(gQ(H),gQ(H),H.off+=12,gQ(H).toString("ascii")!=="ssh-rsa")throw Error("Unsupported key type");let U=gQ(H),C=gQ(H),A=gQ(H),M=gQ(H),D=gQ(H),L=gQ(H),P=new XY(A),E=new XY(L),S=new XY(D),B=P.mod(S.subtract(XY.ONE)),j=P.mod(E.subtract(XY.ONE));Q.setPrivate(U,C,A,D,L,B.toBuffer(),j.toBuffer(),M),Q.sshcomment=gQ(H).toString("ascii")},publicExport:function(Q,J){let X=Buffer.alloc(4);X.writeUInt32BE(Q.e,0);while(X[0]===0)X=X.slice(1);let $=Q.n.toBuffer(),W=Buffer.alloc(X.byteLength+4+$.byteLength+4+7+4),H={buf:W,off:0};yQ(H,Buffer.from("ssh-rsa")),yQ(H,X),yQ(H,$);let U=Q.sshcomment||"";if(J.type==="der")return H.buf;else return"ssh-rsa "+W.toString("base64")+" "+U+`
100
- `},publicImport:function(Q,J,X){X=X||{};var $;if(X.type!=="der"){if(Buffer.isBuffer(J))J=J.toString("utf8");if(EH.isString(J)){if(J.substring(0,8)!=="ssh-rsa ")throw Error("Unsupported key format");let A=J.indexOf(" ",8);if(A===-1)A=J.length;else Q.sshcomment=J.substring(A+1).replace(/\s+|\n\r|\n|\r$/gm,"");let M=J.substring(8,A).replace(/\s+|\n\r|\n|\r$/gm,"");$=Buffer.from(M,"base64")}else throw Error("Unsupported key format")}else if(Buffer.isBuffer(J))$=J;else throw Error("Unsupported key format");let W={buf:$,off:0},H=gQ(W).toString("ascii");if(H!=="ssh-rsa")throw Error("Invalid key type: "+H);let U=gQ(W),C=gQ(W);Q.setPublic(C,U)},autoImport:function(Q,J){if(/^[\S\s]*-----BEGIN OPENSSH PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END OPENSSH PRIVATE KEY-----[\S\s]*$/g.test(J))return wV.exports.privateImport(Q,J),!0;if(/^[\S\s]*ssh-rsa \s*(?=(([A-Za-z0-9+/=]+\s*)+))\1[\S\s]*$/g.test(J))return wV.exports.publicImport(Q,J),!0;return!1}};function gQ(Q){let J=Q.buf.readInt32BE(Q.off);Q.off+=4;let X=Q.buf.slice(Q.off,Q.off+J);return Q.off+=J,X}function yQ(Q,J){Q.buf.writeInt32BE(J.byteLength,Q.off),Q.off+=4,Q.off+=J.copy(Q.buf,Q.off)}});var NH=f0((IE,kQ)=>{var ME=uQ()._;function vH(Q){Q=Q.split("-");var J="private",X={type:"default"};for(var $=1;$<Q.length;$++)if(Q[$])switch(Q[$]){case"public":J=Q[$];break;case"private":J=Q[$];break;case"pem":X.type=Q[$];break;case"der":X.type=Q[$];break}return{scheme:Q[0],keyType:J,keyOpt:X}}kQ.exports={pkcs1:LH(),pkcs8:AH(),components:RH(),openssh:kH(),isPrivateExport:function(Q){return kQ.exports[Q]&&typeof kQ.exports[Q].privateExport==="function"},isPrivateImport:function(Q){return kQ.exports[Q]&&typeof kQ.exports[Q].privateImport==="function"},isPublicExport:function(Q){return kQ.exports[Q]&&typeof kQ.exports[Q].publicExport==="function"},isPublicImport:function(Q){return kQ.exports[Q]&&typeof kQ.exports[Q].publicImport==="function"},detectAndImport:function(Q,J,X){if(X===void 0){for(var $ in kQ.exports)if(typeof kQ.exports[$].autoImport==="function"&&kQ.exports[$].autoImport(Q,J))return!0}else if(X){var W=vH(X);if(kQ.exports[W.scheme])if(W.keyType==="private")kQ.exports[W.scheme].privateImport(Q,J,W.keyOpt);else kQ.exports[W.scheme].publicImport(Q,J,W.keyOpt);else throw Error("Unsupported key format")}return!1},detectAndExport:function(Q,J){if(J){var X=vH(J);if(kQ.exports[X.scheme])if(X.keyType==="private"){if(!Q.isPrivate())throw Error("This is not private key");return kQ.exports[X.scheme].privateExport(Q,X.keyOpt)}else{if(!Q.isPublic())throw Error("This is not public key");return kQ.exports[X.scheme].publicExport(Q,X.keyOpt)}else throw Error("Unsupported key format")}}}});var yH=f0((TE,gH)=>{/*!
101
- * RSA library for Node.js
102
- *
103
- * Author: rzcoder
104
- * License MIT
105
- */var xH=(nX(),u0(oX)),BA=p6(),DE=(XQ(),u0($Q)),PE=EV().Ber,iQ=uQ()._,kA=uQ(),wH=I1(),_H=NH();if(typeof xH.RSA_NO_PADDING>"u")xH.RSA_NO_PADDING=3;gH.exports=function(){var Q={node10:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],node:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],iojs:["md4","md5","ripemd160","sha1","sha224","sha256","sha384","sha512"],browser:["md5","ripemd160","sha1","sha256","sha512"]},J="pkcs1_oaep",X="pkcs1",$="private",W={private:"pkcs1-private-pem","private-der":"pkcs1-private-der",public:"pkcs8-public-pem","public-der":"pkcs8-public-der"};function H(U,C,A){if(!(this instanceof H))return new H(U,C,A);if(iQ.isObject(C))A=C,C=void 0;if(this.$options={signingScheme:X,signingSchemeOptions:{hash:"sha256",saltLength:null},encryptionScheme:J,encryptionSchemeOptions:{hash:"sha1",label:null},environment:kA.detectEnvironment(),rsaUtils:this},this.keyPair=new BA.Key,this.$cache={},Buffer.isBuffer(U)||iQ.isString(U))this.importKey(U,C);else if(iQ.isObject(U))this.generateKeyPair(U.b,U.e);this.setOptions(A)}return H.prototype.setOptions=function(U){if(U=U||{},U.environment)this.$options.environment=U.environment;if(U.signingScheme){if(iQ.isString(U.signingScheme)){var C=U.signingScheme.toLowerCase().split("-");if(C.length==1)if(Q.node.indexOf(C[0])>-1)this.$options.signingSchemeOptions={hash:C[0]},this.$options.signingScheme=X;else this.$options.signingScheme=C[0],this.$options.signingSchemeOptions={hash:null};else this.$options.signingSchemeOptions={hash:C[1]},this.$options.signingScheme=C[0]}else if(iQ.isObject(U.signingScheme))this.$options.signingScheme=U.signingScheme.scheme||X,this.$options.signingSchemeOptions=iQ.omit(U.signingScheme,"scheme");if(!wH.isSignature(this.$options.signingScheme))throw Error("Unsupported signing scheme");if(this.$options.signingSchemeOptions.hash&&Q[this.$options.environment].indexOf(this.$options.signingSchemeOptions.hash)===-1)throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}if(U.encryptionScheme){if(iQ.isString(U.encryptionScheme))this.$options.encryptionScheme=U.encryptionScheme.toLowerCase(),this.$options.encryptionSchemeOptions={};else if(iQ.isObject(U.encryptionScheme))this.$options.encryptionScheme=U.encryptionScheme.scheme||J,this.$options.encryptionSchemeOptions=iQ.omit(U.encryptionScheme,"scheme");if(!wH.isEncryption(this.$options.encryptionScheme))throw Error("Unsupported encryption scheme");if(this.$options.encryptionSchemeOptions.hash&&Q[this.$options.environment].indexOf(this.$options.encryptionSchemeOptions.hash)===-1)throw Error("Unsupported hashing algorithm for "+this.$options.environment+" environment")}this.keyPair.setOptions(this.$options)},H.prototype.generateKeyPair=function(U,C){if(U=U||2048,C=C||65537,U%8!==0)throw Error("Key size must be a multiple of 8.");return this.keyPair.generate(U,C.toString(16)),this.$cache={},this},H.prototype.importKey=function(U,C){if(!U)throw Error("Empty key given");if(C)C=W[C]||C;if(!_H.detectAndImport(this.keyPair,U,C)&&C===void 0)throw Error("Key format must be specified");return this.$cache={},this},H.prototype.exportKey=function(U){if(U=U||$,U=W[U]||U,!this.$cache[U])this.$cache[U]=_H.detectAndExport(this.keyPair,U);return this.$cache[U]},H.prototype.isPrivate=function(){return this.keyPair.isPrivate()},H.prototype.isPublic=function(U){return this.keyPair.isPublic(U)},H.prototype.isEmpty=function(U){return!(this.keyPair.n||this.keyPair.e||this.keyPair.d)},H.prototype.encrypt=function(U,C,A){return this.$$encryptKey(!1,U,C,A)},H.prototype.decrypt=function(U,C){return this.$$decryptKey(!1,U,C)},H.prototype.encryptPrivate=function(U,C,A){return this.$$encryptKey(!0,U,C,A)},H.prototype.decryptPublic=function(U,C){return this.$$decryptKey(!0,U,C)},H.prototype.$$encryptKey=function(U,C,A,M){try{var D=this.keyPair.encrypt(this.$getDataForEncrypt(C,M),U);if(A=="buffer"||!A)return D;else return D.toString(A)}catch(L){throw Error("Error during encryption. Original error: "+L)}},H.prototype.$$decryptKey=function(U,C,A){try{C=iQ.isString(C)?Buffer.from(C,"base64"):C;var M=this.keyPair.decrypt(C,U);if(M===null)throw Error("Key decrypt method returns null.");return this.$getDecryptedData(M,A)}catch(D){throw Error("Error during decryption (probably incorrect key). Original error: "+D)}},H.prototype.sign=function(U,C,A){if(!this.isPrivate())throw Error("This is not private key");var M=this.keyPair.sign(this.$getDataForEncrypt(U,A));if(C&&C!="buffer")M=M.toString(C);return M},H.prototype.verify=function(U,C,A,M){if(!this.isPublic())throw Error("This is not public key");return M=!M||M=="buffer"?null:M,this.keyPair.verify(this.$getDataForEncrypt(U,A),C,M)},H.prototype.getKeySize=function(){return this.keyPair.keySize},H.prototype.getMaxMessageSize=function(){return this.keyPair.maxMessageLength},H.prototype.$getDataForEncrypt=function(U,C){if(iQ.isString(U)||iQ.isNumber(U))return Buffer.from(""+U,C||"utf8");else if(Buffer.isBuffer(U))return U;else if(iQ.isObject(U))return Buffer.from(JSON.stringify(U));else throw Error("Unexpected data type")},H.prototype.$getDecryptedData=function(U,C){if(C=C||"buffer",C=="buffer")return U;else if(C=="json")return JSON.parse(U.toString());else return U.toString(C)},H}()});XQ();var dG=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");class B1{constructor(Q=new Uint8Array(16)){this.buf=ArrayBuffer.isView(Q)?Q:new Uint8Array(Q),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(Q,J,X=this.length){while(this.pos<X){let $=this.readVarint(),W=$>>3,H=this.pos;if(this.type=$&7,Q(W,J,this),this.pos===H)this.skip($)}return J}readMessage(Q,J){return this.readFields(Q,J,this.readVarint()+this.pos)}readFixed32(){let Q=this.dataView.getUint32(this.pos,!0);return this.pos+=4,Q}readSFixed32(){let Q=this.dataView.getInt32(this.pos,!0);return this.pos+=4,Q}readFixed64(){let Q=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*4294967296;return this.pos+=8,Q}readSFixed64(){let Q=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*4294967296;return this.pos+=8,Q}readFloat(){let Q=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,Q}readDouble(){let Q=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,Q}readVarint(Q){let J=this.buf,X,$;if($=J[this.pos++],X=$&127,$<128)return X;if($=J[this.pos++],X|=($&127)<<7,$<128)return X;if($=J[this.pos++],X|=($&127)<<14,$<128)return X;if($=J[this.pos++],X|=($&127)<<21,$<128)return X;return $=J[this.pos],X|=($&15)<<28,_5(X,Q,this)}readVarint64(){return this.readVarint(!0)}readSVarint(){let Q=this.readVarint();return Q%2===1?(Q+1)/-2:Q/2}readBoolean(){return Boolean(this.readVarint())}readString(){let Q=this.readVarint()+this.pos,J=this.pos;if(this.pos=Q,Q-J>=12&&dG)return dG.decode(this.buf.subarray(J,Q));return n5(this.buf,J,Q)}readBytes(){let Q=this.readVarint()+this.pos,J=this.buf.subarray(this.pos,Q);return this.pos=Q,J}readPackedVarint(Q=[],J){let X=this.readPackedEnd();while(this.pos<X)Q.push(this.readVarint(J));return Q}readPackedSVarint(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readSVarint());return Q}readPackedBoolean(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readBoolean());return Q}readPackedFloat(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readFloat());return Q}readPackedDouble(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readDouble());return Q}readPackedFixed32(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readFixed32());return Q}readPackedSFixed32(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readSFixed32());return Q}readPackedFixed64(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readFixed64());return Q}readPackedSFixed64(Q=[]){let J=this.readPackedEnd();while(this.pos<J)Q.push(this.readSFixed64());return Q}readPackedEnd(){return this.type===2?this.readVarint()+this.pos:this.pos+1}skip(Q){let J=Q&7;if(J===0)while(this.buf[this.pos++]>127);else if(J===2)this.pos=this.readVarint()+this.pos;else if(J===5)this.pos+=4;else if(J===1)this.pos+=8;else throw Error(`Unimplemented type: ${J}`)}writeTag(Q,J){this.writeVarint(Q<<3|J)}realloc(Q){let J=this.length||16;while(J<this.pos+Q)J*=2;if(J!==this.length){let X=new Uint8Array(J);X.set(this.buf),this.buf=X,this.dataView=new DataView(X.buffer),this.length=J}}finish(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)}writeFixed32(Q){this.realloc(4),this.dataView.setInt32(this.pos,Q,!0),this.pos+=4}writeSFixed32(Q){this.realloc(4),this.dataView.setInt32(this.pos,Q,!0),this.pos+=4}writeFixed64(Q){this.realloc(8),this.dataView.setInt32(this.pos,Q&-1,!0),this.dataView.setInt32(this.pos+4,Math.floor(Q*0.00000000023283064365386963),!0),this.pos+=8}writeSFixed64(Q){this.realloc(8),this.dataView.setInt32(this.pos,Q&-1,!0),this.dataView.setInt32(this.pos+4,Math.floor(Q*0.00000000023283064365386963),!0),this.pos+=8}writeVarint(Q){if(Q=+Q||0,Q>268435455||Q<0){g5(Q,this);return}if(this.realloc(4),this.buf[this.pos++]=Q&127|(Q>127?128:0),Q<=127)return;if(this.buf[this.pos++]=(Q>>>=7)&127|(Q>127?128:0),Q<=127)return;if(this.buf[this.pos++]=(Q>>>=7)&127|(Q>127?128:0),Q<=127)return;this.buf[this.pos++]=Q>>>7&127}writeSVarint(Q){this.writeVarint(Q<0?-Q*2-1:Q*2)}writeBoolean(Q){this.writeVarint(+Q)}writeString(Q){Q=String(Q),this.realloc(Q.length*4),this.pos++;let J=this.pos;this.pos=r5(this.buf,Q,this.pos);let X=this.pos-J;if(X>=128)lG(J,X,this);this.pos=J-1,this.writeVarint(X),this.pos+=X}writeFloat(Q){this.realloc(4),this.dataView.setFloat32(this.pos,Q,!0),this.pos+=4}writeDouble(Q){this.realloc(8),this.dataView.setFloat64(this.pos,Q,!0),this.pos+=8}writeBytes(Q){let J=Q.length;this.writeVarint(J),this.realloc(J);for(let X=0;X<J;X++)this.buf[this.pos++]=Q[X]}writeRawMessage(Q,J){this.pos++;let X=this.pos;Q(J,this);let $=this.pos-X;if($>=128)lG(X,$,this);this.pos=X-1,this.writeVarint($),this.pos+=$}writeMessage(Q,J,X){this.writeTag(Q,2),this.writeRawMessage(J,X)}writePackedVarint(Q,J){if(J.length)this.writeMessage(Q,c5,J)}writePackedSVarint(Q,J){if(J.length)this.writeMessage(Q,p5,J)}writePackedBoolean(Q,J){if(J.length)this.writeMessage(Q,u5,J)}writePackedFloat(Q,J){if(J.length)this.writeMessage(Q,h5,J)}writePackedDouble(Q,J){if(J.length)this.writeMessage(Q,b5,J)}writePackedFixed32(Q,J){if(J.length)this.writeMessage(Q,d5,J)}writePackedSFixed32(Q,J){if(J.length)this.writeMessage(Q,l5,J)}writePackedFixed64(Q,J){if(J.length)this.writeMessage(Q,m5,J)}writePackedSFixed64(Q,J){if(J.length)this.writeMessage(Q,o5,J)}writeBytesField(Q,J){this.writeTag(Q,2),this.writeBytes(J)}writeFixed32Field(Q,J){this.writeTag(Q,5),this.writeFixed32(J)}writeSFixed32Field(Q,J){this.writeTag(Q,5),this.writeSFixed32(J)}writeFixed64Field(Q,J){this.writeTag(Q,1),this.writeFixed64(J)}writeSFixed64Field(Q,J){this.writeTag(Q,1),this.writeSFixed64(J)}writeVarintField(Q,J){this.writeTag(Q,0),this.writeVarint(J)}writeSVarintField(Q,J){this.writeTag(Q,0),this.writeSVarint(J)}writeStringField(Q,J){this.writeTag(Q,2),this.writeString(J)}writeFloatField(Q,J){this.writeTag(Q,5),this.writeFloat(J)}writeDoubleField(Q,J){this.writeTag(Q,1),this.writeDouble(J)}writeBooleanField(Q,J){this.writeVarintField(Q,+J)}}function _5(Q,J,X){let $=X.buf,W,H;if(H=$[X.pos++],W=(H&112)>>4,H<128)return j1(Q,W,J);if(H=$[X.pos++],W|=(H&127)<<3,H<128)return j1(Q,W,J);if(H=$[X.pos++],W|=(H&127)<<10,H<128)return j1(Q,W,J);if(H=$[X.pos++],W|=(H&127)<<17,H<128)return j1(Q,W,J);if(H=$[X.pos++],W|=(H&127)<<24,H<128)return j1(Q,W,J);if(H=$[X.pos++],W|=(H&1)<<31,H<128)return j1(Q,W,J);throw Error("Expected varint not more than 10 bytes")}function j1(Q,J,X){return X?J*4294967296+(Q>>>0):(J>>>0)*4294967296+(Q>>>0)}function g5(Q,J){let X,$;if(Q>=0)X=Q%4294967296|0,$=Q/4294967296|0;else if(X=~(-Q%4294967296),$=~(-Q/4294967296),X^4294967295)X=X+1|0;else X=0,$=$+1|0;if(Q>=18446744073709552000||Q<-18446744073709552000)throw Error("Given varint doesn't fit into 10 bytes");J.realloc(10),y5(X,$,J),f5($,J)}function y5(Q,J,X){X.buf[X.pos++]=Q&127|128,Q>>>=7,X.buf[X.pos++]=Q&127|128,Q>>>=7,X.buf[X.pos++]=Q&127|128,Q>>>=7,X.buf[X.pos++]=Q&127|128,Q>>>=7,X.buf[X.pos]=Q&127}function f5(Q,J){let X=(Q&7)<<4;if(J.buf[J.pos++]|=X|((Q>>>=3)?128:0),!Q)return;if(J.buf[J.pos++]=Q&127|((Q>>>=7)?128:0),!Q)return;if(J.buf[J.pos++]=Q&127|((Q>>>=7)?128:0),!Q)return;if(J.buf[J.pos++]=Q&127|((Q>>>=7)?128:0),!Q)return;if(J.buf[J.pos++]=Q&127|((Q>>>=7)?128:0),!Q)return;J.buf[J.pos++]=Q&127}function lG(Q,J,X){let $=J<=16383?1:J<=2097151?2:J<=268435455?3:Math.floor(Math.log(J)/(Math.LN2*7));X.realloc($);for(let W=X.pos-1;W>=Q;W--)X.buf[W+$]=X.buf[W]}function c5(Q,J){for(let X=0;X<Q.length;X++)J.writeVarint(Q[X])}function p5(Q,J){for(let X=0;X<Q.length;X++)J.writeSVarint(Q[X])}function h5(Q,J){for(let X=0;X<Q.length;X++)J.writeFloat(Q[X])}function b5(Q,J){for(let X=0;X<Q.length;X++)J.writeDouble(Q[X])}function u5(Q,J){for(let X=0;X<Q.length;X++)J.writeBoolean(Q[X])}function d5(Q,J){for(let X=0;X<Q.length;X++)J.writeFixed32(Q[X])}function l5(Q,J){for(let X=0;X<Q.length;X++)J.writeSFixed32(Q[X])}function m5(Q,J){for(let X=0;X<Q.length;X++)J.writeFixed64(Q[X])}function o5(Q,J){for(let X=0;X<Q.length;X++)J.writeSFixed64(Q[X])}function n5(Q,J,X){let $="",W=J;while(W<X){let H=Q[W],U=null,C=H>239?4:H>223?3:H>191?2:1;if(W+C>X)break;let A,M,D;if(C===1){if(H<128)U=H}else if(C===2){if(A=Q[W+1],(A&192)===128){if(U=(H&31)<<6|A&63,U<=127)U=null}}else if(C===3){if(A=Q[W+1],M=Q[W+2],(A&192)===128&&(M&192)===128){if(U=(H&15)<<12|(A&63)<<6|M&63,U<=2047||U>=55296&&U<=57343)U=null}}else if(C===4){if(A=Q[W+1],M=Q[W+2],D=Q[W+3],(A&192)===128&&(M&192)===128&&(D&192)===128){if(U=(H&15)<<18|(A&63)<<12|(M&63)<<6|D&63,U<=65535||U>=1114112)U=null}}if(U===null)U=65533,C=1;else if(U>65535)U-=65536,$+=String.fromCharCode(U>>>10&1023|55296),U=56320|U&1023;$+=String.fromCharCode(U),W+=C}return $}function r5(Q,J,X){for(let $=0,W,H;$<J.length;$++){if(W=J.charCodeAt($),W>55295&&W<57344)if(H)if(W<56320){Q[X++]=239,Q[X++]=191,Q[X++]=189,H=W;continue}else W=H-55296<<10|W-56320|65536,H=null;else{if(W>56319||$+1===J.length)Q[X++]=239,Q[X++]=191,Q[X++]=189;else H=W;continue}else if(H)Q[X++]=239,Q[X++]=191,Q[X++]=189,H=null;if(W<128)Q[X++]=W;else{if(W<2048)Q[X++]=W>>6|192;else{if(W<65536)Q[X++]=W>>12|224;else Q[X++]=W>>18|240,Q[X++]=W>>12&63|128;Q[X++]=W>>6&63|128}Q[X++]=W&63|128}}return X}var V1={};V1.read=function(Q,J){return Q.readFields(V1._readField,{sha256_with_rsa:[],sha256_with_ecdsa:[],signed_header_data:null},J)};V1._readField=function(Q,J,X){if(Q===2)J.sha256_with_rsa.push(fJ.read(X,X.readVarint()+X.pos));else if(Q===3)J.sha256_with_ecdsa.push(fJ.read(X,X.readVarint()+X.pos));else if(Q===1e4)J.signed_header_data=X.readBytes()};V1.write=function(Q,J){if(Q.sha256_with_rsa)for(var X=0;X<Q.sha256_with_rsa.length;X++)J.writeMessage(2,fJ.write,Q.sha256_with_rsa[X]);if(Q.sha256_with_ecdsa)for(X=0;X<Q.sha256_with_ecdsa.length;X++)J.writeMessage(3,fJ.write,Q.sha256_with_ecdsa[X]);if(Q.signed_header_data)J.writeBytesField(1e4,Q.signed_header_data)};var fJ={};fJ.read=function(Q,J){return Q.readFields(fJ._readField,{public_key:null,signature:null},J)};fJ._readField=function(Q,J,X){if(Q===1)J.public_key=X.readBytes();else if(Q===2)J.signature=X.readBytes()};fJ.write=function(Q,J){if(Q.public_key)J.writeBytesField(1,Q.public_key);if(Q.signature)J.writeBytesField(2,Q.signature)};var k1={};k1.read=function(Q,J){return Q.readFields(k1._readField,{crx_id:null},J)};k1._readField=function(Q,J,X){if(Q===1)J.crx_id=X.readBytes()};k1.write=function(Q,J){if(Q.crx_id)J.writeBytesField(1,Q.crx_id)};var fH=zZ(F6(),1);var{default:_V}=(()=>({}));function TJ(Q){if(typeof Q!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Q))}function q6(Q,J){var X="",$=0,W=-1,H=0,U;for(var C=0;C<=Q.length;++C){if(C<Q.length)U=Q.charCodeAt(C);else if(U===47)break;else U=47;if(U===47){if(W===C-1||H===1);else if(W!==C-1&&H===2){if(X.length<2||$!==2||X.charCodeAt(X.length-1)!==46||X.charCodeAt(X.length-2)!==46){if(X.length>2){var A=X.lastIndexOf("/");if(A!==X.length-1){if(A===-1)X="",$=0;else X=X.slice(0,A),$=X.length-1-X.lastIndexOf("/");W=C,H=0;continue}}else if(X.length===2||X.length===1){X="",$=0,W=C,H=0;continue}}if(J){if(X.length>0)X+="/..";else X="..";$=2}}else{if(X.length>0)X+="/"+Q.slice(W+1,C);else X=Q.slice(W+1,C);$=C-W-1}W=C,H=0}else if(U===46&&H!==-1)++H;else H=-1}return X}function QC(Q,J){var X=J.dir||J.root,$=J.base||(J.name||"")+(J.ext||"");if(!X)return $;if(X===J.root)return X+$;return X+Q+$}function mX(){var Q="",J=!1,X;for(var $=arguments.length-1;$>=-1&&!J;$--){var W;if($>=0)W=arguments[$];else{if(X===void 0)X=process.cwd();W=X}if(TJ(W),W.length===0)continue;Q=W+"/"+Q,J=W.charCodeAt(0)===47}if(Q=q6(Q,!J),J)if(Q.length>0)return"/"+Q;else return"/";else if(Q.length>0)return Q;else return"."}function z6(Q){if(TJ(Q),Q.length===0)return".";var J=Q.charCodeAt(0)===47,X=Q.charCodeAt(Q.length-1)===47;if(Q=q6(Q,!J),Q.length===0&&!J)Q=".";if(Q.length>0&&X)Q+="/";if(J)return"/"+Q;return Q}function JC(Q){return TJ(Q),Q.length>0&&Q.charCodeAt(0)===47}function pU(){if(arguments.length===0)return".";var Q;for(var J=0;J<arguments.length;++J){var X=arguments[J];if(TJ(X),X.length>0)if(Q===void 0)Q=X;else Q+="/"+X}if(Q===void 0)return".";return z6(Q)}function hU(Q,J){if(TJ(Q),TJ(J),Q===J)return"";if(Q=mX(Q),J=mX(J),Q===J)return"";var X=1;for(;X<Q.length;++X)if(Q.charCodeAt(X)!==47)break;var $=Q.length,W=$-X,H=1;for(;H<J.length;++H)if(J.charCodeAt(H)!==47)break;var U=J.length,C=U-H,A=W<C?W:C,M=-1,D=0;for(;D<=A;++D){if(D===A){if(C>A){if(J.charCodeAt(H+D)===47)return J.slice(H+D+1);else if(D===0)return J.slice(H+D)}else if(W>A){if(Q.charCodeAt(X+D)===47)M=D;else if(D===0)M=0}break}var L=Q.charCodeAt(X+D),P=J.charCodeAt(H+D);if(L!==P)break;else if(L===47)M=D}var E="";for(D=X+M+1;D<=$;++D)if(D===$||Q.charCodeAt(D)===47)if(E.length===0)E+="..";else E+="/..";if(E.length>0)return E+J.slice(H+M);else{if(H+=M,J.charCodeAt(H)===47)++H;return J.slice(H)}}function XC(Q){return Q}function YC(Q){if(TJ(Q),Q.length===0)return".";var J=Q.charCodeAt(0),X=J===47,$=-1,W=!0;for(var H=Q.length-1;H>=1;--H)if(J=Q.charCodeAt(H),J===47){if(!W){$=H;break}}else W=!1;if($===-1)return X?"/":".";if(X&&$===1)return"//";return Q.slice(0,$)}function VC(Q,J){if(J!==void 0&&typeof J!=="string")throw TypeError('"ext" argument must be a string');TJ(Q);var X=0,$=-1,W=!0,H;if(J!==void 0&&J.length>0&&J.length<=Q.length){if(J.length===Q.length&&J===Q)return"";var U=J.length-1,C=-1;for(H=Q.length-1;H>=0;--H){var A=Q.charCodeAt(H);if(A===47){if(!W){X=H+1;break}}else{if(C===-1)W=!1,C=H+1;if(U>=0)if(A===J.charCodeAt(U)){if(--U===-1)$=H}else U=-1,$=C}}if(X===$)$=C;else if($===-1)$=Q.length;return Q.slice(X,$)}else{for(H=Q.length-1;H>=0;--H)if(Q.charCodeAt(H)===47){if(!W){X=H+1;break}}else if($===-1)W=!1,$=H+1;if($===-1)return"";return Q.slice(X,$)}}function $C(Q){TJ(Q);var J=-1,X=0,$=-1,W=!0,H=0;for(var U=Q.length-1;U>=0;--U){var C=Q.charCodeAt(U);if(C===47){if(!W){X=U+1;break}continue}if($===-1)W=!1,$=U+1;if(C===46){if(J===-1)J=U;else if(H!==1)H=1}else if(J!==-1)H=-1}if(J===-1||$===-1||H===0||H===1&&J===$-1&&J===X+1)return"";return Q.slice(J,$)}function UC(Q){if(Q===null||typeof Q!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof Q);return QC("/",Q)}function ZC(Q){TJ(Q);var J={root:"",dir:"",base:"",ext:"",name:""};if(Q.length===0)return J;var X=Q.charCodeAt(0),$=X===47,W;if($)J.root="/",W=1;else W=0;var H=-1,U=0,C=-1,A=!0,M=Q.length-1,D=0;for(;M>=W;--M){if(X=Q.charCodeAt(M),X===47){if(!A){U=M+1;break}continue}if(C===-1)A=!1,C=M+1;if(X===46){if(H===-1)H=M;else if(D!==1)D=1}else if(H!==-1)D=-1}if(H===-1||C===-1||D===0||D===1&&H===C-1&&H===U+1){if(C!==-1)if(U===0&&$)J.base=J.name=Q.slice(1,C);else J.base=J.name=Q.slice(U,C)}else{if(U===0&&$)J.name=Q.slice(1,H),J.base=Q.slice(1,C);else J.name=Q.slice(U,H),J.base=Q.slice(U,C);J.ext=Q.slice(H,C)}if(U>0)J.dir=Q.slice(0,U-1);else if($)J.dir="/";return J}var GC="/",WC=":",lR=((Q)=>(Q.posix=Q,Q))({resolve:mX,normalize:z6,isAbsolute:JC,join:pU,relative:hU,_makeLong:XC,dirname:YC,basename:VC,extname:$C,format:UC,parse:ZC,sep:GC,delimiter:WC,win32:null,posix:null});HQ();var HJ=zZ(yH(),1),vA=16,KZ=4,YY=Uint8Array.from("Cr24",(Q)=>Q.charCodeAt(0)),WZ=Uint8Array.from([3,0,0,0]),NA=Uint8Array.from("CRX3 SignedData\x00",(Q)=>Q.charCodeAt(0));function xA(Q,J,X,$){$??=new HJ.default(L0.from(Q),"pkcs8-private-der"),$.setOptions({signingScheme:"pkcs1-sha1"});let W=$.sign(X),H=16+J.length+W.length,U=new Uint8Array(H);U.set(YY,0);let C=new DataView(U.buffer);return C.setUint32(4,2,!0),C.setUint32(8,J.length,!0),C.setUint32(12,W.length,!0),U.set(J,16),U.set(W,16+J.length),U.set(X,H),U}function wA(Q,J,X,$){let W=new B1;k1.write({crx_id:_A(J)},W);let H=W.finish(),U=gA(Q,H,X,$);W=new B1,V1.write({sha256_with_rsa:[{public_key:J,signature:U}],signed_header_data:H},W);let C=W.finish(),A=YY.length+WZ.length+KZ+C.length+X.length,M=new Uint8Array(A),D=0;return M.set(YY,D),M.set(WZ,D+=YY.length),new DataView(M.buffer).setUint32(D+=WZ.length,C.length,!0),M.set(C,D+=KZ),M.set(X,D+=C.length),M}function _A(Q){var J=DY("sha256");return J.update(Q),Uint8Array.from(J.digest()).slice(0,vA)}function gA(Q,J,X,$){$??=new HJ.default(L0.from(Q),"pkcs8-private-der"),$.setOptions({signingScheme:"pkcs1-sha256"});let W=new DataView(new ArrayBuffer(KZ));W.setUint32(0,J.length,!0);let H=L0.concat([NA,new Uint8Array(W.buffer),J,X]);return Uint8Array.from($.sign(H))}function yA(Q){return DY("sha256").update(Q).digest().toString("hex").split("").map((J)=>(parseInt(J,16)+10).toString(26)).join("").slice(0,32)}async function fA(Q){let J=new fH.default,X;async function $(W){for(let H of await _V.readdir(W,{withFileTypes:!0})){let U=pU(W,H.name);if(H.isDirectory())await $(U);else{let C=_V.readFile(U).then((M)=>Uint8Array.from(M)),A=hU(Q,U);if(A=="manifest.json")X??=C;J.file(A,C)}}}if(await $(mX(process.cwd(),Q)),X==null)throw Error("Manifest file not found");return{contents:await J.generateAsync({compression:"DEFLATE",type:"uint8array"}),manifest:JSON.parse(new TextDecoder().decode(await X))}}function cA(Q,J,X,$){return`<?xml version='1.0' encoding='UTF-8'?>
1
+ var T={};T.read=function(G,N){return G.readFields(T._readField,{sha256_with_rsa:[],sha256_with_ecdsa:[],signed_header_data:null},N)};T._readField=function(G,N,Q){if(G===2)N.sha256_with_rsa.push(X.read(Q,Q.readVarint()+Q.pos));else if(G===3)N.sha256_with_ecdsa.push(X.read(Q,Q.readVarint()+Q.pos));else if(G===1e4)N.signed_header_data=Q.readBytes()};T.write=function(G,N){if(G.sha256_with_rsa)for(var Q=0;Q<G.sha256_with_rsa.length;Q++)N.writeMessage(2,X.write,G.sha256_with_rsa[Q]);if(G.sha256_with_ecdsa)for(Q=0;Q<G.sha256_with_ecdsa.length;Q++)N.writeMessage(3,X.write,G.sha256_with_ecdsa[Q]);if(G.signed_header_data)N.writeBytesField(1e4,G.signed_header_data)};var X={};X.read=function(G,N){return G.readFields(X._readField,{public_key:null,signature:null},N)};X._readField=function(G,N,Q){if(G===1)N.public_key=Q.readBytes();else if(G===2)N.signature=Q.readBytes()};X.write=function(G,N){if(G.public_key)N.writeBytesField(1,G.public_key);if(G.signature)N.writeBytesField(2,G.signature)};var F={};F.read=function(G,N){return G.readFields(F._readField,{crx_id:null},N)};F._readField=function(G,N,Q){if(G===1)N.crx_id=Q.readBytes()};F.write=function(G,N){if(G.crx_id)N.writeBytesField(1,G.crx_id)};import{createHash as R}from"node:crypto";import V from"pbf";import w from"jszip";import E from"node:fs/promises";import{join as H,relative as I,resolve as P}from"node:path";import{Buffer as Z}from"node:buffer";import O from"node-rsa";var C=16,B=4,z=Uint8Array.from("Cr24",(G)=>G.charCodeAt(0)),L=Uint8Array.from([3,0,0,0]),A=Uint8Array.from("CRX3 SignedData\x00",(G)=>G.charCodeAt(0));function k(G,N,Q,$){$??=new O(Z.from(G),"pkcs8-private-der"),$.setOptions({signingScheme:"pkcs1-sha1"});let W=$.sign(Q),M=16+N.length+W.length,q=new Uint8Array(M);q.set(z,0);let J=new DataView(q.buffer);return J.setUint32(4,2,!0),J.setUint32(8,N.length,!0),J.setUint32(12,W.length,!0),q.set(N,16),q.set(W,16+N.length),q.set(Q,M),q}function S(G,N,Q,$){let W=new V;F.write({crx_id:v(N)},W);let M=W.finish(),q=x(G,M,Q,$);W=new V,T.write({sha256_with_rsa:[{public_key:N,signature:q}],signed_header_data:M},W);let J=W.finish(),Y=z.length+L.length+B+J.length+Q.length,U=new Uint8Array(Y),_=0;return U.set(z,_),U.set(L,_+=z.length),new DataView(U.buffer).setUint32(_+=L.length,J.length,!0),U.set(J,_+=B),U.set(Q,_+=J.length),U}function v(G){var N=R("sha256");return N.update(G),Uint8Array.from(N.digest()).slice(0,C)}function x(G,N,Q,$){$??=new O(Z.from(G),"pkcs8-private-der"),$.setOptions({signingScheme:"pkcs1-sha256"});let W=new DataView(new ArrayBuffer(B));W.setUint32(0,N.length,!0);let M=Z.concat([A,new Uint8Array(W.buffer),N,Q]);return Uint8Array.from($.sign(M))}function K(G){return R("sha256").update(G).digest().toString("hex").split("").map((N)=>(parseInt(N,16)+10).toString(26)).join("").slice(0,32)}async function m(G){let N=new w,Q;async function $(W){for(let M of await E.readdir(W,{withFileTypes:!0})){let q=H(W,M.name);if(M.isDirectory())await $(q);else{let J=E.readFile(q).then((U)=>Uint8Array.from(U)),Y=I(G,q);if(Y=="manifest.json")Q??=J;N.file(Y,J)}}}if(await $(P(process.cwd(),G)),Q==null)throw Error("Manifest file not found");return{contents:await N.generateAsync({compression:"DEFLATE",type:"uint8array"}),manifest:JSON.parse(new TextDecoder().decode(await Q))}}function j(G,N,Q,$){return`<?xml version='1.0' encoding='UTF-8'?>
106
2
  <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
107
- <app appid='${Q}'>
108
- <updatecheck codebase='${J}' version='${X}'${$?` prodversionmin='${$}'`:""} />
3
+ <app appid='${G}'>
4
+ <updatecheck codebase='${N}' version='${Q}'${$?` prodversionmin='${$}'`:""} />
109
5
  </app>
110
- </gupdate>`}function BE(Q=4096){return Uint8Array.from(new HJ.default({b:Q}).exportKey("pkcs8-private-der"))}function kE(Q){return Uint8Array.from(new HJ.default(L0.from(Q),"pkcs8-private-der").exportKey("pkcs8-public-der"))}function vE(Q,J){return new HJ.default(L0.from(Q),`pkcs8-${J}-der`).exportKey(`pkcs8-${J}-pem`)}function NE(Q,J){return Uint8Array.from(new HJ.default(Q,`pkcs8-${J}-pem`).exportKey(`pkcs8-${J}-der`))}function xE(Q){let J=Q.buffer,X=new DataView(J);if(YY.every(($,W)=>X.getUint8(W)==$)){let $=X.getUint32(4,!0);if($==2){let W=X.getUint32(8,!0),H=X.getUint32(12,!0);return{archive:Q.slice(16+W+H),crxVersion:2,key:Q.slice(16,16+W),sign:Q.slice(16+W,16+W+H)}}else if($==3){let W=X.getUint32(8,!0),H=Q.slice(12+W),U=Q.slice(12,12+W),C=new B1(U),A=V1.read(C);return{archive:H,crxVersion:3,header:A}}}throw Error("The file given is not a valid CRX file")}async function pA(Q){if(typeof Q.privateKey=="string")try{let J=Q.privateKey.endsWith(".pem"),X=await _V.readFile(Q.privateKey);if(J)Q.privateKey=Uint8Array.from((Q.rsa??=new HJ.default(X,"pkcs8-private-pem")).exportKey("pkcs8-private-der"));else Q.privateKey=Uint8Array.from(X)}catch(J){if(!`${J}`.includes("ENOENT"))throw J;Q.privateKey=void 0}if(typeof Q.publicKey=="string")try{let J=Q.publicKey.endsWith(".pem"),X=await _V.readFile(Q.publicKey);if(J)Q.publicKey=Uint8Array.from(new HJ.default(X,"pkcs8-public-pem").exportKey("pkcs8-public-der"));else Q.publicKey=Uint8Array.from(X)}catch(J){if(!`${J}`.includes("ENOENT"))throw J;Q.publicKey=void 0}if(Q.updateXML===null){if(Q.crxUrl===void 0)throw Error("crxUrl must be defined to generate updateXML");if(Q.id===void 0)Q.id=null;if(Q.extVersion===void 0)Q.extVersion=null;if(Q.minChromeVersion===void 0)Q.minChromeVersion=null}if(Q.extVersion===null){if(Q.manifest===void 0)Q.manifest=null}if(Q.minChromeVersion===null){if(Q.manifest===void 0)Q.manifest=null}if(Q.crx===null){if(Q.contents===void 0)throw Error("contents must be defined to generate crx");if(Q.privateKey===void 0)Q.privateKey=null;if(Q.publicKey===void 0)Q.publicKey=null}if(Q.id===null){if(Q.publicKey===void 0)Q.publicKey=null}if(Q.publicKey===null){if(Q.privateKey===void 0)Q.privateKey=null}if(Q.privateKey===null)Q.rsa??=new HJ.default({b:Q.keySize||4096}),Q.privateKey=Uint8Array.from(Q.rsa.exportKey("pkcs8-private-der")),Q.publicKey=Uint8Array.from(Q.rsa.exportKey("pkcs8-public-der"));if(Q.publicKey===null)Q.publicKey=Uint8Array.from((Q.rsa??=new HJ.default(L0.from(Q.privateKey),"pkcs8-private-der")).exportKey("pkcs8-public-der"));if(typeof Q.contents=="string")({contents:Q.contents,manifest:Q.manifest}=await fA(Q.contents));if(Q.crx===null){if(Q.crxVersion==3||Q.crxVersion==null)Q.crx=wA(Q.privateKey,Q.publicKey,Q.contents,Q.rsa);else if(Q.crxVersion==2)Q.crx=xA(Q.privateKey,Q.publicKey,Q.contents,Q.rsa)}if(Q.id===null)Q.id=yA(Q.publicKey);if(Q.extVersion===null){if(!Q.manifest)throw Error("manifest must be defined to generate extVersion");Q.extVersion=Q.manifest.version}if(Q.minChromeVersion===null)Q.minChromeVersion=Q.manifest?.minimum_chrome_version||(Q.crxVersion==3||Q.crxVersion==null?"73.0.3683":void 0);if(Q.updateXML===null)Q.updateXML=cA(Q.id,Q.crxUrl,Q.extVersion,Q.minChromeVersion);return Q}var _E=pA;export{xE as unpack,wA as packCrx3,xA as packCrx2,fA as packContents,pA as pack,cA as generateUpdateXML,kE as generatePublicKey,BE as generatePrivateKey,yA as generateCrxId,_E as default,vE as convertToPem,NE as convertFromPem};
6
+ </gupdate>`}function b(G=4096){return Uint8Array.from(new O({b:G}).exportKey("pkcs8-private-der"))}function a(G){return Uint8Array.from(new O(Z.from(G),"pkcs8-private-der").exportKey("pkcs8-public-der"))}function r(G,N){return new O(Z.from(G),`pkcs8-${N}-der`).exportKey(`pkcs8-${N}-pem`)}function p(G,N){return Uint8Array.from(new O(G,`pkcs8-${N}-pem`).exportKey(`pkcs8-${N}-der`))}function s(G){let N=G.buffer,Q=new DataView(N);if(z.every(($,W)=>Q.getUint8(W)==$)){let $=Q.getUint32(4,!0);if($==2){let W=Q.getUint32(8,!0),M=Q.getUint32(12,!0);return{archive:G.slice(16+W+M),crxVersion:2,key:G.slice(16,16+W),sign:G.slice(16+W,16+W+M)}}else if($==3){let W=Q.getUint32(8,!0),M=G.slice(12+W),q=G.slice(12,12+W),J=new V(q),Y=T.read(J);return{archive:M,crxVersion:3,header:Y}}}throw Error("The file given is not a valid CRX file")}async function g(G){if(typeof G.privateKey=="string")try{let N=G.privateKey.endsWith(".pem"),Q=await E.readFile(G.privateKey);if(N)G.privateKey=Uint8Array.from((G.rsa??=new O(Q,"pkcs8-private-pem")).exportKey("pkcs8-private-der"));else G.privateKey=Uint8Array.from(Q)}catch(N){if(!`${N}`.includes("ENOENT"))throw N;G.privateKey=void 0}if(typeof G.publicKey=="string")try{let N=G.publicKey.endsWith(".pem"),Q=await E.readFile(G.publicKey);if(N)G.publicKey=Uint8Array.from(new O(Q,"pkcs8-public-pem").exportKey("pkcs8-public-der"));else G.publicKey=Uint8Array.from(Q)}catch(N){if(!`${N}`.includes("ENOENT"))throw N;G.publicKey=void 0}if(G.updateXML===null){if(G.crxUrl===void 0)throw Error("crxUrl must be defined to generate updateXML");if(G.id===void 0)G.id=null;if(G.extVersion===void 0)G.extVersion=null;if(G.minChromeVersion===void 0)G.minChromeVersion=null}if(G.extVersion===null){if(G.manifest===void 0)G.manifest=null}if(G.minChromeVersion===null){if(G.manifest===void 0)G.manifest=null}if(G.crx===null){if(G.contents===void 0)throw Error("contents must be defined to generate crx");if(G.privateKey===void 0)G.privateKey=null;if(G.publicKey===void 0)G.publicKey=null}if(G.id===null){if(G.publicKey===void 0)G.publicKey=null}if(G.publicKey===null){if(G.privateKey===void 0)G.privateKey=null}if(G.privateKey===null)G.rsa??=new O({b:G.keySize||4096}),G.privateKey=Uint8Array.from(G.rsa.exportKey("pkcs8-private-der")),G.publicKey=Uint8Array.from(G.rsa.exportKey("pkcs8-public-der"));if(G.publicKey===null)G.publicKey=Uint8Array.from((G.rsa??=new O(Z.from(G.privateKey),"pkcs8-private-der")).exportKey("pkcs8-public-der"));if(typeof G.contents=="string")({contents:G.contents,manifest:G.manifest}=await m(G.contents));if(G.crx===null){if(G.crxVersion==3||G.crxVersion==null)G.crx=S(G.privateKey,G.publicKey,G.contents,G.rsa);else if(G.crxVersion==2)G.crx=k(G.privateKey,G.publicKey,G.contents,G.rsa)}if(G.id===null)G.id=K(G.publicKey);if(G.extVersion===null){if(!G.manifest)throw Error("manifest must be defined to generate extVersion");G.extVersion=G.manifest.version}if(G.minChromeVersion===null)G.minChromeVersion=G.manifest?.minimum_chrome_version||(G.crxVersion==3||G.crxVersion==null?"73.0.3683":void 0);if(G.updateXML===null)G.updateXML=j(G.id,G.crxUrl,G.extVersion,G.minChromeVersion);return G}var n=g;export{s as unpack,S as packCrx3,k as packCrx2,m as packContents,g as pack,j as generateUpdateXML,a as generatePublicKey,b as generatePrivateKey,K as generateCrxId,n as default,r as convertToPem,p as convertFromPem};
111
7
 
112
- //# debugId=7112DC26EC64805164756E2164756E21
8
+ //# debugId=EC4D20858A564FDB64756E2164756E21
113
9
  //# sourceMappingURL=index.js.map