GmTszAEXfe3zMZebFR6vaDSpGa9tWJwuaWtKWvTqr76T
fs_store in contract web4.thezunerbuerrghh.testnetProxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(d){var errorProto=getProto$1(getProto$1(d));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function d(b){var _;if(b==="%AsyncFunction%")_=getEvalledConstructor("async function () {}");else if(b==="%GeneratorFunction%")_=getEvalledConstructor("function* () {}");else if(b==="%AsyncGeneratorFunction%")_=getEvalledConstructor("async function* () {}");else if(b==="%AsyncGenerator%"){var $=d("%AsyncGeneratorFunction%");$&&(_=$.prototype)}else if(b==="%AsyncIteratorPrototype%"){var j=d("%AsyncGenerator%");j&&getProto$1&&(_=getProto$1(j.prototype))}return INTRINSICS[b]=_,_},LEGACY_ALIASES={__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"]},bind=functionBind,hasOwn$2=hasown,$concat$1=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace$1=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(b){var _=$strSlice(b,0,1),$=$strSlice(b,-1);if(_==="%"&&$!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if($==="%"&&_!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var j=[];return $replace$1(b,rePropName,function(_e,et,tt,nt){j[j.length]=tt?$replace$1(nt,reEscapeChar,"$1"):et||_e}),j},getBaseIntrinsic=function(b,_){var $=b,j;if(hasOwn$2(LEGACY_ALIASES,$)&&(j=LEGACY_ALIASES[$],$="%"+j[0]+"%"),hasOwn$2(INTRINSICS,$)){var _e=INTRINSICS[$];if(_e===needsEval&&(_e=doEval($)),typeof _e>"u"&&!_)throw new $TypeError$3("intrinsic "+b+" exists, but is not available. Please file an issue!");return{alias:j,name:$,value:_e}}throw new $SyntaxError$1("intrinsic "+b+" does not exist!")},getIntrinsic=function(b,_){if(typeof b!="string"||b.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,b)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=stringToPath(b),j=$.length>0?$[0]:"",_e=getBaseIntrinsic("%"+j+"%",_),et=_e.name,tt=_e.value,nt=!1,it=_e.alias;it&&(j=it[0],$spliceApply($,$concat$1([0,1],it)));for(var rt=1,ot=!0;rt<$.length;rt+=1){var at=$[rt],st=$strSlice(at,0,1),ht=$strSlice(at,-1);if((st==='"'||st==="'"||st==="`"||ht==='"'||ht==="'"||ht==="`")&&st!==ht)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((at==="constructor"||!ot)&&(nt=!0),j+="."+at,et="%"+j+"%",hasOwn$2(INTRINSICS,et))tt=INTRINSICS[et];else if(tt!=null){if(!(at in tt)){if(!_)throw new $TypeError$3("base intrinsic for "+b+" exists, but the property is not available.");return}if($gOPD$1&&rt+1>=$.length){var yt=$gOPD$1(tt,at);ot=!!yt,ot&&"get"in yt&&!("originalValue"in yt.get)?tt=yt.get:tt=tt[at]}else ot=hasOwn$2(tt,at),tt=tt[at];ot&&!nt&&(INTRINSICS[et]=tt)}}return tt},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var d=getIntrinsic,b=d("%Object.defineProperty%",!0)||!1;if(b)try{b({},"a",{value:1})}catch{b=!1}return esDefineProperty=b,esDefineProperty}var GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$2=type,gopd=gopd$1,defineDataProperty=function(b,_,$){if(!b||typeof b!="object"&&typeof b!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof _!="string"&&typeof _!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var j=arguments.length>3?arguments[3]:null,_e=arguments.length>4?arguments[4]:null,et=arguments.length>5?arguments[5]:null,tt=arguments.length>6?arguments[6]:!1,nt=!!gopd&&gopd(b,_);if($defineProperty$1)$defineProperty$1(b,_,{configurable:et===null&&nt?nt.configurable:!et,enumerable:j===null&&nt?nt.enumerable:!j,value:$,writable:_e===null&&nt?nt.writable:!_e});else if(tt||!j&&!_e&&!et)b[_]=$;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$2=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$2=gopd$1,$TypeError$1=type,$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function(b,_){if(typeof b!="function")throw new $TypeError$1("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||$floor$1(_)!==_)throw new $TypeError$1("`length` must be a positive 32-bit integer");var $=arguments.length>2&&!!arguments[2],j=!0,_e=!0;if("length"in b&&gOPD$2){var et=gOPD$2(b,"length");et&&!et.configurable&&(j=!1),et&&!et.writable&&(_e=!1)}return(j||_e||!$)&&(hasDescriptors?define(b,"length",_,!0,!0):define(b,"length",_)),b};(function(d){var b=functionBind,_=getIntrinsic,$=setFunctionLength,j=type,_e=_("%Function.prototype.apply%"),et=_("%Function.prototype.call%"),tt=_("%Reflect.apply%",!0)||b.call(et,_e),nt=requireEsDefineProperty(),it=_("%Math.max%");d.exports=function(at){if(typeof at!="function")throw new j("a function is required");var st=tt(b,et,arguments);return $(st,1+it(0,at.length-(arguments.length-1)),!0)};var rt=function(){return tt(b,_e,arguments)};nt?nt(d.exports,"apply",{value:rt}):d.exports.apply=rt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic$1=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic$1("String.prototype.indexOf")),callBound$3=function(b,_){var $=GetIntrinsic$1(b,!!_);return typeof $=="function"&&$indexOf$1(b,".prototype.")>-1?callBind$1($):$},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(b){return hasToStringTag$3&&b&&typeof b=="object"&&Symbol.toStringTag in b?!1:$toString$1(b)==="[object Arguments]"},isLegacyArguments=function(b){return isStandardArguments(b)?!0:b!==null&&typeof b=="object"&&typeof b.length=="number"&&b.length>=0&&$toString$1(b)!=="[object Array]"&&$toString$1(b.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$4=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(b){if(typeof b!="function")return!1;if(isFnRegex.test(fnToStr$1.call(b)))return!0;if(!hasToStringTag$2){var _=toStr$4.call(b);return _==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var $=getGeneratorFunc();GeneratorFunction=$?getProto($):!1}return getProto(b)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(d){d!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(b){try{var _=fnToStr.call(b);return constructorRegex.test(_)}catch{return!1}},tryFunctionObject=function(b){try{return isES6ClassFn(b)?!1:(fnToStr.call(b),!0)}catch{return!1}},toStr$3=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all$1=document.all;toStr$3.call(all$1)===toStr$3.call(document.all)&&(isDDA=function(b){if((isIE68||!b)&&(typeof b>"u"||typeof b=="object"))try{var _=toStr$3.call(b);return(_===ddaClass||_===ddaClass2||_===ddaClass3||_===objectClass)&&b("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(b){if(isDDA(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{reflectApply(b,null,badArrayLike)}catch(_){if(_!==isCallableMarker)return!1}return!isES6ClassFn(b)&&tryFunctionObject(b)}:function(b){if(isDDA(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(b);if(isES6ClassFn(b))return!1;var _=toStr$3.call(b);return _!==fnClass&&_!==genClass&&!/^\[object HTML/.test(_)?!1:tryFunctionObject(b)},isCallable=isCallable$1,toStr$2=Object.prototype.toString,hasOwnProperty$2=Object.prototype.hasOwnProperty,forEachArray=function(b,_,$){for(var j=0,_e=b.length;j<_e;j++)hasOwnProperty$2.call(b,j)&&($==null?_(b[j],j,b):_.call($,b[j],j,b))},forEachString=function(b,_,$){for(var j=0,_e=b.length;j<_e;j++)$==null?_(b.charAt(j),j,b):_.call($,b.charAt(j),j,b)},forEachObject=function(b,_,$){for(var j in b)hasOwnProperty$2.call(b,j)&&($==null?_(b[j],j,b):_.call($,b[j],j,b))},forEach$1=function(b,_,$){if(!isCallable(_))throw new TypeError("iterator must be a function");var j;arguments.length>=3&&(j=$),toStr$2.call(b)==="[object Array]"?forEachArray(b,_,j):typeof b=="string"?forEachString(b,_,j):forEachObject(b,_,j)},forEach_1=forEach$1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$1=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var b=[],_=0;_<possibleNames.length;_++)typeof g$1[possibleNames[_]]=="function"&&(b[b.length]=possibleNames[_]);return b},forEach=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound$1=callBound$3,gOPD$1=gopd$1,$toString=callBound$1("Object.prototype.toString"),hasToStringTag=shams(),g=typeof globalThis>"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice$1=callBound$1("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(b,_){for(var $=0;$<b.length;$+=1)if(b[$]===_)return $;return-1},cache={__proto__:null};hasToStringTag&&gOPD$1&&getPrototypeOf?forEach(typedArrays,function(d){var b=new g[d];if(Symbol.toStringTag in b){var _=getPrototypeOf(b),$=gOPD$1(_,Symbol.toStringTag);if(!$){var j=getPrototypeOf(_);$=gOPD$1(j,Symbol.toStringTag)}cache["$"+d]=callBind($.get)}}):forEach(typedArrays,function(d){var b=new g[d],_=b.slice||b.set;_&&(cache["$"+d]=callBind(_))});var tryTypedArrays=function(b){var _=!1;return forEach(cache,function($,j){if(!_)try{"$"+$(b)===j&&(_=$slice$1(j,1))}catch{}}),_},trySlices=function(b){var _=!1;return forEach(cache,function($,j){if(!_)try{$(b),_=$slice$1(j,1)}catch{}}),_},whichTypedArray$1=function(b){if(!b||typeof b!="object")return!1;if(!hasToStringTag){var _=$slice$1($toString(b),8,-1);return $indexOf(typedArrays,_)>-1?_:_!=="Object"?!1:trySlices(b)}return gOPD$1?tryTypedArrays(b):null},whichTypedArray=whichTypedArray$1,isTypedArray=function(b){return!!whichTypedArray(b)};(function(d){var b=isArguments,_=isGeneratorFunction,$=whichTypedArray$1,j=isTypedArray;function _e(Yt){return Yt.call.bind(Yt)}var et=typeof BigInt<"u",tt=typeof Symbol<"u",nt=_e(Object.prototype.toString),it=_e(Number.prototype.valueOf),rt=_e(String.prototype.valueOf),ot=_e(Boolean.prototype.valueOf);if(et)var at=_e(BigInt.prototype.valueOf);if(tt)var st=_e(Symbol.prototype.valueOf);function ht(Yt,rr){if(typeof Yt!="object")return!1;try{return rr(Yt),!0}catch{return!1}}d.isArgumentsObject=b,d.isGeneratorFunction=_,d.isTypedArray=j;function yt(Yt){return typeof Promise<"u"&&Yt instanceof Promise||Yt!==null&&typeof Yt=="object"&&typeof Yt.then=="function"&&typeof Yt.catch=="function"}d.isPromise=yt;function It(Yt){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Yt):j(Yt)||Et(Yt)}d.isArrayBufferView=It;function gt(Yt){return $(Yt)==="Uint8Array"}d.isUint8Array=gt;function vt(Yt){return $(Yt)==="Uint8ClampedArray"}d.isUint8ClampedArray=vt;function Rt(Yt){return $(Yt)==="Uint16Array"}d.isUint16Array=Rt;function Tt(Yt){return $(Yt)==="Uint32Array"}d.isUint32Array=Tt;function Nt(Yt){return $(Yt)==="Int8Array"}d.isInt8Array=Nt;function Bt(Yt){return $(Yt)==="Int16Array"}d.isInt16Array=Bt;function Vt(Yt){return $(Yt)==="Int32Array"}d.isInt32Array=Vt;function Ut(Yt){return $(Yt)==="Float32Array"}d.isFloat32Array=Ut;function zt(Yt){return $(Yt)==="Float64Array"}d.isFloat64Array=zt;function Qt(Yt){return $(Yt)==="BigInt64Array"}d.isBigInt64Array=Qt;function jt(Yt){return $(Yt)==="BigUint64Array"}d.isBigUint64Array=jt;function mt(Yt){return nt(Yt)==="[object Map]"}mt.working=typeof Map<"u"&&mt(new Map);function pt(Yt){return typeof Map>"u"?!1:mt.working?mt(Yt):Yt instanceof Map}d.isMap=pt;function ct(Yt){return nt(Yt)==="[object Set]"}ct.working=typeof Set<"u"&&ct(new Set);function dt(Yt){return typeof Set>"u"?!1:ct.working?ct(Yt):Yt instanceof Set}d.isSet=dt;function bt(Yt){return nt(Yt)==="[object WeakMap]"}bt.working=typeof WeakMap<"u"&&bt(new WeakMap);function St(Yt){return typeof WeakMap>"u"?!1:bt.working?bt(Yt):Yt instanceof WeakMap}d.isWeakMap=St;function xt(Yt){return nt(Yt)==="[object WeakSet]"}xt.working=typeof WeakSet<"u"&&xt(new WeakSet);function wt(Yt){return xt(Yt)}d.isWeakSet=wt;function lt(Yt){return nt(Yt)==="[object ArrayBuffer]"}lt.working=typeof ArrayBuffer<"u"&<(new ArrayBuffer);function _t(Yt){return typeof ArrayBuffer>"u"?!1:lt.working?lt(Yt):Yt instanceof ArrayBuffer}d.isArrayBuffer=_t;function $t(Yt){return nt(Yt)==="[object DataView]"}$t.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$t(new DataView(new ArrayBuffer(1),0,1));function Et(Yt){return typeof DataView>"u"?!1:$t.working?$t(Yt):Yt instanceof DataView}d.isDataView=Et;var Dt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function er(Yt){return nt(Yt)==="[object SharedArrayBuffer]"}function qt(Yt){return typeof Dt>"u"?!1:(typeof er.working>"u"&&(er.working=er(new Dt)),er.working?er(Yt):Yt instanceof Dt)}d.isSharedArrayBuffer=qt;function Pt(Yt){return nt(Yt)==="[object AsyncFunction]"}d.isAsyncFunction=Pt;function Lt(Yt){return nt(Yt)==="[object Map Iterator]"}d.isMapIterator=Lt;function Jt(Yt){return nt(Yt)==="[object Set Iterator]"}d.isSetIterator=Jt;function Ot(Yt){return nt(Yt)==="[object Generator]"}d.isGeneratorObject=Ot;function At(Yt){return nt(Yt)==="[object WebAssembly.Module]"}d.isWebAssemblyCompiledModule=At;function kt(Yt){return ht(Yt,it)}d.isNumberObject=kt;function Kt(Yt){return ht(Yt,rt)}d.isStringObject=Kt;function Ht(Yt){return ht(Yt,ot)}d.isBooleanObject=Ht;function Xt(Yt){return et&&ht(Yt,at)}d.isBigIntObject=Xt;function Zt(Yt){return tt&&ht(Yt,st)}d.isSymbolObject=Zt;function Gt(Yt){return kt(Yt)||Kt(Yt)||Ht(Yt)||Xt(Yt)||Zt(Yt)}d.isBoxedPrimitive=Gt;function tr(Yt){return typeof Uint8Array<"u"&&(_t(Yt)||qt(Yt))}d.isAnyArrayBuffer=tr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Yt){Object.defineProperty(d,Yt,{enumerable:!1,value:function(){throw new Error(Yt+" is not supported in userland")}})})})(types$6);var isBufferBrowser=function(b){return b&&typeof b=="object"&&typeof b.copy=="function"&&typeof b.fill=="function"&&typeof b.readUInt8=="function"};(function(d){var b={},_=Object.getOwnPropertyDescriptors||function(Dt){for(var er=Object.keys(Dt),qt={},Pt=0;Pt<er.length;Pt++)qt[er[Pt]]=Object.getOwnPropertyDescriptor(Dt,er[Pt]);return qt},$=/%[sdj%]/g;d.format=function(Et){if(!Bt(Et)){for(var Dt=[],er=0;er<arguments.length;er++)Dt.push(tt(arguments[er]));return Dt.join(" ")}for(var er=1,qt=arguments,Pt=qt.length,Lt=String(Et).replace($,function(Ot){if(Ot==="%%")return"%";if(er>=Pt)return Ot;switch(Ot){case"%s":return String(qt[er++]);case"%d":return Number(qt[er++]);case"%j":try{return JSON.stringify(qt[er++])}catch{return"[Circular]"}default:return Ot}}),Jt=qt[er];er<Pt;Jt=qt[++er])Rt(Jt)||!Qt(Jt)?Lt+=" "+Jt:Lt+=" "+tt(Jt);return Lt},d.deprecate=function(Et,Dt){if(typeof process$1<"u"&&process$1.noDeprecation===!0)return Et;if(typeof process$1>"u")return function(){return d.deprecate(Et,Dt).apply(this,arguments)};var er=!1;function qt(){if(!er){if(process$1.throwDeprecation)throw new Error(Dt);process$1.traceDeprecation?console.trace(Dt):console.error(Dt),er=!0}return Et.apply(this,arguments)}return qt};var j={},_e=/^$/;if(b.NODE_DEBUG){var et=b.NODE_DEBUG;et=et.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),_e=new RegExp("^"+et+"$","i")}d.debuglog=function(Et){if(Et=Et.toUpperCase(),!j[Et])if(_e.test(Et)){var Dt=process$1.pid;j[Et]=function(){var er=d.format.apply(d,arguments);console.error("%s %d: %s",Et,Dt,er)}}else j[Et]=function(){};return j[Et]};function tt(Et,Dt){var er={seen:[],stylize:it};return arguments.length>=3&&(er.depth=arguments[2]),arguments.length>=4&&(er.colors=arguments[3]),vt(Dt)?er.showHidden=Dt:Dt&&d._extend(er,Dt),Ut(er.showHidden)&&(er.showHidden=!1),Ut(er.depth)&&(er.depth=2),Ut(er.colors)&&(er.colors=!1),Ut(er.customInspect)&&(er.customInspect=!0),er.colors&&(er.stylize=nt),ot(er,Et,er.depth)}d.inspect=tt,tt.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]},tt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function nt(Et,Dt){var er=tt.styles[Dt];return er?"\x1B["+tt.colors[er][0]+"m"+Et+"\x1B["+tt.colors[er][1]+"m":Et}function it(Et,Dt){return Et}function rt(Et){var Dt={};return Et.forEach(function(er,qt){Dt[er]=!0}),Dt}function ot(Et,Dt,er){if(Et.customInspect&&Dt&&pt(Dt.inspect)&&Dt.inspect!==d.inspect&&!(Dt.constructor&&Dt.constructor.prototype===Dt)){var qt=Dt.inspect(er,Et);return Bt(qt)||(qt=ot(Et,qt,er)),qt}var Pt=at(Et,Dt);if(Pt)return Pt;var Lt=Object.keys(Dt),Jt=rt(Lt);if(Et.showHidden&&(Lt=Object.getOwnPropertyNames(Dt)),mt(Dt)&&(Lt.indexOf("message")>=0||Lt.indexOf("description")>=0))return st(Dt);if(Lt.length===0){if(pt(Dt)){var Ot=Dt.name?": "+Dt.name:"";return Et.stylize("[Function"+Ot+"]","special")}if(zt(Dt))return Et.stylize(RegExp.prototype.toString.call(Dt),"regexp");if(jt(Dt))return Et.stylize(Date.prototype.toString.call(Dt),"date");if(mt(Dt))return st(Dt)}var At="",kt=!1,Kt=["{","}"];if(gt(Dt)&&(kt=!0,Kt=["[","]"]),pt(Dt)){var Ht=Dt.name?": "+Dt.name:"";At=" [Function"+Ht+"]"}if(zt(Dt)&&(At=" "+RegExp.prototype.toString.call(Dt)),jt(Dt)&&(At=" "+Date.prototype.toUTCString.call(Dt)),mt(Dt)&&(At=" "+st(Dt)),Lt.length===0&&(!kt||Dt.length==0))return Kt[0]+At+Kt[1];if(er<0)return zt(Dt)?Et.stylize(RegExp.prototype.toString.call(Dt),"regexp"):Et.stylize("[Object]","special");Et.seen.push(Dt);var Xt;return kt?Xt=ht(Et,Dt,er,Jt,Lt):Xt=Lt.map(function(Zt){return yt(Et,Dt,er,Jt,Zt,kt)}),Et.seen.pop(),It(Xt,At,Kt)}function at(Et,Dt){if(Ut(Dt))return Et.stylize("undefined","undefined");if(Bt(Dt)){var er="'"+JSON.stringify(Dt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Et.stylize(er,"string")}if(Nt(Dt))return Et.stylize(""+Dt,"number");if(vt(Dt))return Et.stylize(""+Dt,"boolean");if(Rt(Dt))return Et.stylize("null","null")}function st(Et){return"["+Error.prototype.toString.call(Et)+"]"}function ht(Et,Dt,er,qt,Pt){for(var Lt=[],Jt=0,Ot=Dt.length;Jt<Ot;++Jt)wt(Dt,String(Jt))?Lt.push(yt(Et,Dt,er,qt,String(Jt),!0)):Lt.push("");return Pt.forEach(function(At){At.match(/^\d+$/)||Lt.push(yt(Et,Dt,er,qt,At,!0))}),Lt}function yt(Et,Dt,er,qt,Pt,Lt){var Jt,Ot,At;if(At=Object.getOwnPropertyDescriptor(Dt,Pt)||{value:Dt[Pt]},At.get?At.set?Ot=Et.stylize("[Getter/Setter]","special"):Ot=Et.stylize("[Getter]","special"):At.set&&(Ot=Et.stylize("[Setter]","special")),wt(qt,Pt)||(Jt="["+Pt+"]"),Ot||(Et.seen.indexOf(At.value)<0?(Rt(er)?Ot=ot(Et,At.value,null):Ot=ot(Et,At.value,er-1),Ot.indexOf(``)>-1&&(Lt?Ot=Ot.split(``).map(function(kt){return" "+kt}).join(``).slice(2):Ot=``+Ot.split(``).map(function(kt){return" "+kt}).join(``))):Ot=Et.stylize("[Circular]","special")),Ut(Jt)){if(Lt&&Pt.match(/^\d+$/))return Ot;Jt=JSON.stringify(""+Pt),Jt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Jt=Jt.slice(1,-1),Jt=Et.stylize(Jt,"name")):(Jt=Jt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Jt=Et.stylize(Jt,"string"))}return Jt+": "+Ot}function It(Et,Dt,er){var qt=Et.reduce(function(Pt,Lt){return Lt.indexOf(``)>=0,Pt+Lt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return qt>60?er[0]+(Dt===""?"":Dt+``)+" "+Et.join(`,`)+" "+er[1]:er[0]+Dt+" "+Et.join(", ")+" "+er[1]}d.types=types$6;function gt(Et){return Array.isArray(Et)}d.isArray=gt;function vt(Et){return typeof Et=="boolean"}d.isBoolean=vt;function Rt(Et){return Et===null}d.isNull=Rt;function Tt(Et){return Et==null}d.isNullOrUndefined=Tt;function Nt(Et){return typeof Et=="number"}d.isNumber=Nt;function Bt(Et){return typeof Et=="string"}d.isString=Bt;function Vt(Et){return typeof Et=="symbol"}d.isSymbol=Vt;function Ut(Et){return Et===void 0}d.isUndefined=Ut;function zt(Et){return Qt(Et)&&dt(Et)==="[object RegExp]"}d.isRegExp=zt,d.types.isRegExp=zt;function Qt(Et){return typeof Et=="object"&&Et!==null}d.isObject=Qt;function jt(Et){return Qt(Et)&&dt(Et)==="[object Date]"}d.isDate=jt,d.types.isDate=jt;function mt(Et){return Qt(Et)&&(dt(Et)==="[object Error]"||Et instanceof Error)}d.isError=mt,d.types.isNativeError=mt;function pt(Et){return typeof Et=="function"}d.isFunction=pt;function ct(Et){return Et===null||typeof Et=="boolean"||typeof Et=="number"||typeof Et=="string"||typeof Et=="symbol"||typeof Et>"u"}d.isPrimitive=ct,d.isBuffer=isBufferBrowser;function dt(Et){return Object.prototype.toString.call(Et)}function bt(Et){return Et<10?"0"+Et.toString(10):Et.toString(10)}var St=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xt(){var Et=new Date,Dt=[bt(Et.getHours()),bt(Et.getMinutes()),bt(Et.getSeconds())].join(":");return[Et.getDate(),St[Et.getMonth()],Dt].join(" ")}d.log=function(){console.log("%s - %s",xt(),d.format.apply(d,arguments))},d.inherits=inherits_browserExports$1,d._extend=function(Et,Dt){if(!Dt||!Qt(Dt))return Et;for(var er=Object.keys(Dt),qt=er.length;qt--;)Et[er[qt]]=Dt[er[qt]];return Et};function wt(Et,Dt){return Object.prototype.hasOwnProperty.call(Et,Dt)}var lt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;d.promisify=function(Dt){if(typeof Dt!="function")throw new TypeError('The "original" argument must be of type Function');if(lt&&Dt[lt]){var er=Dt[lt];if(typeof er!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(er,lt,{value:er,enumerable:!1,writable:!1,configurable:!0}),er}function er(){for(var qt,Pt,Lt=new Promise(function(At,kt){qt=At,Pt=kt}),Jt=[],Ot=0;Ot<arguments.length;Ot++)Jt.push(arguments[Ot]);Jt.push(function(At,kt){At?Pt(At):qt(kt)});try{Dt.apply(this,Jt)}catch(At){Pt(At)}return Lt}return Object.setPrototypeOf(er,Object.getPrototypeOf(Dt)),lt&&Object.defineProperty(er,lt,{value:er,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(er,_(Dt))},d.promisify.custom=lt;function _t(Et,Dt){if(!Et){var er=new Error("Promise was rejected with a falsy value");er.reason=Et,Et=er}return Dt(Et)}function $t(Et){if(typeof Et!="function")throw new TypeError('The "original" argument must be of type Function');function Dt(){for(var er=[],qt=0;qt<arguments.length;qt++)er.push(arguments[qt]);var Pt=er.pop();if(typeof Pt!="function")throw new TypeError("The last argument must be of type Function");var Lt=this,Jt=function(){return Pt.apply(Lt,arguments)};Et.apply(this,er).then(function(Ot){process$1.nextTick(Jt.bind(null,null,Ot))},function(Ot){process$1.nextTick(_t.bind(null,Ot,Jt))})}return Object.setPrototypeOf(Dt,Object.getPrototypeOf(Et)),Object.defineProperties(Dt,_(Et)),Dt}d.callbackify=$t})(util$4);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function d(ht,yt){var It=Object.keys(ht);if(Object.getOwnPropertySymbols){var gt=Object.getOwnPropertySymbols(ht);yt&&(gt=gt.filter(function(vt){return Object.getOwnPropertyDescriptor(ht,vt).enumerable})),It.push.apply(It,gt)}return It}function b(ht){for(var yt=1;yt<arguments.length;yt++){var It=arguments[yt]!=null?arguments[yt]:{};yt%2?d(Object(It),!0).forEach(function(gt){_(ht,gt,It[gt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ht,Object.getOwnPropertyDescriptors(It)):d(Object(It)).forEach(function(gt){Object.defineProperty(ht,gt,Object.getOwnPropertyDescriptor(It,gt))})}return ht}function _(ht,yt,It){return yt=et(yt),yt in ht?Object.defineProperty(ht,yt,{value:It,enumerable:!0,configurable:!0,writable:!0}):ht[yt]=It,ht}function $(ht,yt){if(!(ht instanceof yt))throw new TypeError("Cannot call a class as a function")}function j(ht,yt){for(var It=0;It<yt.length;It++){var gt=yt[It];gt.enumerable=gt.enumerable||!1,gt.configurable=!0,"value"in gt&&(gt.writable=!0),Object.defineProperty(ht,et(gt.key),gt)}}function _e(ht,yt,It){return yt&&j(ht.prototype,yt),Object.defineProperty(ht,"prototype",{writable:!1}),ht}function et(ht){var yt=tt(ht,"string");return typeof yt=="symbol"?yt:String(yt)}function tt(ht,yt){if(typeof ht!="object"||ht===null)return ht;var It=ht[Symbol.toPrimitive];if(It!==void 0){var gt=It.call(ht,yt||"default");if(typeof gt!="object")return gt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(yt==="string"?String:Number)(ht)}var nt=require$$1$4,it=nt.Buffer,rt=util$4,ot=rt.inspect,at=ot&&ot.custom||"inspect";function st(ht,yt,It){it.prototype.copy.call(ht,yt,It)}return buffer_list=function(){function ht(){$(this,ht),this.head=null,this.tail=null,this.length=0}return _e(ht,[{key:"push",value:function(It){var gt={data:It,next:null};this.length>0?this.tail.next=gt:this.head=gt,this.tail=gt,++this.length}},{key:"unshift",value:function(It){var gt={data:It,next:this.head};this.length===0&&(this.tail=gt),this.head=gt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var It=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,It}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(It){if(this.length===0)return"";for(var gt=this.head,vt=""+gt.data;gt=gt.next;)vt+=It+gt.data;return vt}},{key:"concat",value:function(It){if(this.length===0)return it.alloc(0);for(var gt=it.allocUnsafe(It>>>0),vt=this.head,Rt=0;vt;)st(vt.data,gt,Rt),Rt+=vt.data.length,vt=vt.next;return gt}},{key:"consume",value:function(It,gt){var vt;return It<this.head.data.length?(vt=this.head.data.slice(0,It),this.head.data=this.head.data.slice(It)):It===this.head.data.length?vt=this.shift():vt=gt?this._getString(It):this._getBuffer(It),vt}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(It){var gt=this.head,vt=1,Rt=gt.data;for(It-=Rt.length;gt=gt.next;){var Tt=gt.data,Nt=It>Tt.length?Tt.length:It;if(Nt===Tt.length?Rt+=Tt:Rt+=Tt.slice(0,It),It-=Nt,It===0){Nt===Tt.length?(++vt,gt.next?this.head=gt.next:this.head=this.tail=null):(this.head=gt,gt.data=Tt.slice(Nt));break}++vt}return this.length-=vt,Rt}},{key:"_getBuffer",value:function(It){var gt=it.allocUnsafe(It),vt=this.head,Rt=1;for(vt.data.copy(gt),It-=vt.data.length;vt=vt.next;){var Tt=vt.data,Nt=It>Tt.length?Tt.length:It;if(Tt.copy(gt,gt.length-It,0,Nt),It-=Nt,It===0){Nt===Tt.length?(++Rt,vt.next?this.head=vt.next:this.head=this.tail=null):(this.head=vt,vt.data=Tt.slice(Nt));break}++Rt}return this.length-=Rt,gt}},{key:at,value:function(It,gt){return ot(this,b(b({},gt),{},{depth:0,customInspect:!1}))}}]),ht}(),buffer_list}var destroy_1$1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1$1;hasRequiredDestroy=1;function d(et,tt){var nt=this,it=this._readableState&&this._readableState.destroyed,rt=this._writableState&&this._writableState.destroyed;return it||rt?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(j,this,et)):process$1.nextTick(j,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(ot){!tt&&ot?nt._writableState?nt._writableState.errorEmitted?process$1.nextTick(_,nt):(nt._writableState.errorEmitted=!0,process$1.nextTick(b,nt,ot)):process$1.nextTick(b,nt,ot):tt?(process$1.nextTick(_,nt),tt(ot)):process$1.nextTick(_,nt)}),this)}function b(et,tt){j(et,tt),_(et)}function _(et){et._writableState&&!et._writableState.emitClose||et._readableState&&!et._readableState.emitClose||et.emit("close")}function $(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function j(et,tt){et.emit("error",tt)}function _e(et,tt){var nt=et._readableState,it=et._writableState;nt&&nt.autoDestroy||it&&it.autoDestroy?et.destroy(tt):et.emit("error",tt)}return destroy_1$1={destroy:d,undestroy:$,errorOrDestroy:_e},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function d(tt,nt){tt.prototype=Object.create(nt.prototype),tt.prototype.constructor=tt,tt.__proto__=nt}var b={};function _(tt,nt,it){it||(it=Error);function rt(at,st,ht){return typeof nt=="string"?nt:nt(at,st,ht)}var ot=function(at){d(st,at);function st(ht,yt,It){return at.call(this,rt(ht,yt,It))||this}return st}(it);ot.prototype.name=it.name,ot.prototype.code=tt,b[tt]=ot}function $(tt,nt){if(Array.isArray(tt)){var it=tt.length;return tt=tt.map(function(rt){return String(rt)}),it>2?"one of ".concat(nt," ").concat(tt.slice(0,it-1).join(", "),", or ")+tt[it-1]:it===2?"one of ".concat(nt," ").concat(tt[0]," or ").concat(tt[1]):"of ".concat(nt," ").concat(tt[0])}else return"of ".concat(nt," ").concat(String(tt))}function j(tt,nt,it){return tt.substr(0,nt.length)===nt}function _e(tt,nt,it){return(it===void 0||it>tt.length)&&(it=tt.length),tt.substring(it-nt.length,it)===nt}function et(tt,nt,it){return typeof it!="number"&&(it=0),it+nt.length>tt.length?!1:tt.indexOf(nt,it)!==-1}return _("ERR_INVALID_OPT_VALUE",function(tt,nt){return'The value "'+nt+'" is invalid for option "'+tt+'"'},TypeError),_("ERR_INVALID_ARG_TYPE",function(tt,nt,it){var rt;typeof nt=="string"&&j(nt,"not ")?(rt="must not be",nt=nt.replace(/^not /,"")):rt="must be";var ot;if(_e(tt," argument"))ot="The ".concat(tt," ").concat(rt," ").concat($(nt,"type"));else{var at=et(tt,".")?"property":"argument";ot='The "'.concat(tt,'" ').concat(at," ").concat(rt," ").concat($(nt,"type"))}return ot+=". Received type ".concat(typeof it),ot},TypeError),_("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),_("ERR_METHOD_NOT_IMPLEMENTED",function(tt){return"The "+tt+" method is not implemented"}),_("ERR_STREAM_PREMATURE_CLOSE","Premature close"),_("ERR_STREAM_DESTROYED",function(tt){return"Cannot call "+tt+" after a stream was destroyed"}),_("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),_("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),_("ERR_STREAM_WRITE_AFTER_END","write after end"),_("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),_("ERR_UNKNOWN_ENCODING",function(tt){return"Unknown encoding: "+tt},TypeError),_("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=b,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var d=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function b($,j,_e){return $.highWaterMark!=null?$.highWaterMark:j?$[_e]:null}function _($,j,_e,et){var tt=b(j,et,_e);if(tt!=null){if(!(isFinite(tt)&&Math.floor(tt)===tt)||tt<0){var nt=et?_e:"highWaterMark";throw new d(nt,tt)}return Math.floor(tt)}return $.objectMode?16:16*1024}return state={getHighWaterMark:_},state}var browser$d=deprecate;function deprecate(d,b){if(config("noDeprecation"))return d;var _=!1;function $(){if(!_){if(config("throwDeprecation"))throw new Error(b);config("traceDeprecation")?console.trace(b):console.warn(b),_=!0}return d.apply(this,arguments)}return $}function config(d){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var b=commonjsGlobal.localStorage[d];return b==null?!1:String(b).toLowerCase()==="true"}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=Ut;function d(qt){var Pt=this;this.next=null,this.entry=null,this.finish=function(){er(Pt,qt)}}var b;Ut.WritableState=Bt;var _={deprecate:browser$d},$=requireStreamBrowser(),j=require$$1$4.Buffer,_e=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function et(qt){return j.from(qt)}function tt(qt){return j.isBuffer(qt)||qt instanceof _e}var nt=requireDestroy(),it=requireState(),rt=it.getHighWaterMark,ot=requireErrorsBrowser().codes,at=ot.ERR_INVALID_ARG_TYPE,st=ot.ERR_METHOD_NOT_IMPLEMENTED,ht=ot.ERR_MULTIPLE_CALLBACK,yt=ot.ERR_STREAM_CANNOT_PIPE,It=ot.ERR_STREAM_DESTROYED,gt=ot.ERR_STREAM_NULL_VALUES,vt=ot.ERR_STREAM_WRITE_AFTER_END,Rt=ot.ERR_UNKNOWN_ENCODING,Tt=nt.errorOrDestroy;inherits_browserExports$1(Ut,$);function Nt(){}function Bt(qt,Pt,Lt){b=b||require_stream_duplex$1(),qt=qt||{},typeof Lt!="boolean"&&(Lt=Pt instanceof b),this.objectMode=!!qt.objectMode,Lt&&(this.objectMode=this.objectMode||!!qt.writableObjectMode),this.highWaterMark=rt(this,qt,"writableHighWaterMark",Lt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Jt=qt.decodeStrings===!1;this.decodeStrings=!Jt,this.defaultEncoding=qt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ot){bt(Pt,Ot)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=qt.emitClose!==!1,this.autoDestroy=!!qt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}Bt.prototype.getBuffer=function(){for(var Pt=this.bufferedRequest,Lt=[];Pt;)Lt.push(Pt),Pt=Pt.next;return Lt},function(){try{Object.defineProperty(Bt.prototype,"buffer",{get:_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Vt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Vt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ut,Symbol.hasInstance,{value:function(Pt){return Vt.call(this,Pt)?!0:this!==Ut?!1:Pt&&Pt._writableState instanceof Bt}})):Vt=function(Pt){return Pt instanceof this};function Ut(qt){b=b||require_stream_duplex$1();var Pt=this instanceof b;if(!Pt&&!Vt.call(Ut,this))return new Ut(qt);this._writableState=new Bt(qt,this,Pt),this.writable=!0,qt&&(typeof qt.write=="function"&&(this._write=qt.write),typeof qt.writev=="function"&&(this._writev=qt.writev),typeof qt.destroy=="function"&&(this._destroy=qt.destroy),typeof qt.final=="function"&&(this._final=qt.final)),$.call(this)}Ut.prototype.pipe=function(){Tt(this,new yt)};function zt(qt,Pt){var Lt=new vt;Tt(qt,Lt),process$1.nextTick(Pt,Lt)}function Qt(qt,Pt,Lt,Jt){var Ot;return Lt===null?Ot=new gt:typeof Lt!="string"&&!Pt.objectMode&&(Ot=new at("chunk",["string","Buffer"],Lt)),Ot?(Tt(qt,Ot),process$1.nextTick(Jt,Ot),!1):!0}Ut.prototype.write=function(qt,Pt,Lt){var Jt=this._writableState,Ot=!1,At=!Jt.objectMode&&tt(qt);return At&&!j.isBuffer(qt)&&(qt=et(qt)),typeof Pt=="function"&&(Lt=Pt,Pt=null),At?Pt="buffer":Pt||(Pt=Jt.defaultEncoding),typeof Lt!="function"&&(Lt=Nt),Jt.ending?zt(this,Lt):(At||Qt(this,Jt,qt,Lt))&&(Jt.pendingcb++,Ot=mt(this,Jt,At,qt,Pt,Lt)),Ot},Ut.prototype.cork=function(){this._writableState.corked++},Ut.prototype.uncork=function(){var qt=this._writableState;qt.corked&&(qt.corked--,!qt.writing&&!qt.corked&&!qt.bufferProcessing&&qt.bufferedRequest&&wt(this,qt))},Ut.prototype.setDefaultEncoding=function(Pt){if(typeof Pt=="string"&&(Pt=Pt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Pt+"").toLowerCase())>-1))throw new Rt(Pt);return this._writableState.defaultEncoding=Pt,this},Object.defineProperty(Ut.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function jt(qt,Pt,Lt){return!qt.objectMode&&qt.decodeStrings!==!1&&typeof Pt=="string"&&(Pt=j.from(Pt,Lt)),Pt}Object.defineProperty(Ut.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function mt(qt,Pt,Lt,Jt,Ot,At){if(!Lt){var kt=jt(Pt,Jt,Ot);Jt!==kt&&(Lt=!0,Ot="buffer",Jt=kt)}var Kt=Pt.objectMode?1:Jt.length;Pt.length+=Kt;var Ht=Pt.length<Pt.highWaterMark;if(Ht||(Pt.needDrain=!0),Pt.writing||Pt.corked){var Xt=Pt.lastBufferedRequest;Pt.lastBufferedRequest={chunk:Jt,encoding:Ot,isBuf:Lt,callback:At,next:null},Xt?Xt.next=Pt.lastBufferedRequest:Pt.bufferedRequest=Pt.lastBufferedRequest,Pt.bufferedRequestCount+=1}else pt(qt,Pt,!1,Kt,Jt,Ot,At);return Ht}function pt(qt,Pt,Lt,Jt,Ot,At,kt){Pt.writelen=Jt,Pt.writecb=kt,Pt.writing=!0,Pt.sync=!0,Pt.destroyed?Pt.onwrite(new It("write")):Lt?qt._writev(Ot,Pt.onwrite):qt._write(Ot,At,Pt.onwrite),Pt.sync=!1}function ct(qt,Pt,Lt,Jt,Ot){--Pt.pendingcb,Lt?(process$1.nextTick(Ot,Jt),process$1.nextTick(Et,qt,Pt),qt._writableState.errorEmitted=!0,Tt(qt,Jt)):(Ot(Jt),qt._writableState.errorEmitted=!0,Tt(qt,Jt),Et(qt,Pt))}function dt(qt){qt.writing=!1,qt.writecb=null,qt.length-=qt.writelen,qt.writelen=0}function bt(qt,Pt){var Lt=qt._writableState,Jt=Lt.sync,Ot=Lt.writecb;if(typeof Ot!="function")throw new ht;if(dt(Lt),Pt)ct(qt,Lt,Jt,Pt,Ot);else{var At=lt(Lt)||qt.destroyed;!At&&!Lt.corked&&!Lt.bufferProcessing&&Lt.bufferedRequest&&wt(qt,Lt),Jt?process$1.nextTick(St,qt,Lt,At,Ot):St(qt,Lt,At,Ot)}}function St(qt,Pt,Lt,Jt){Lt||xt(qt,Pt),Pt.pendingcb--,Jt(),Et(qt,Pt)}function xt(qt,Pt){Pt.length===0&&Pt.needDrain&&(Pt.needDrain=!1,qt.emit("drain"))}function wt(qt,Pt){Pt.bufferProcessing=!0;var Lt=Pt.bufferedRequest;if(qt._writev&&Lt&&Lt.next){var Jt=Pt.bufferedRequestCount,Ot=new Array(Jt),At=Pt.corkedRequestsFree;At.entry=Lt;for(var kt=0,Kt=!0;Lt;)Ot[kt]=Lt,Lt.isBuf||(Kt=!1),Lt=Lt.next,kt+=1;Ot.allBuffers=Kt,pt(qt,Pt,!0,Pt.length,Ot,"",At.finish),Pt.pendingcb++,Pt.lastBufferedRequest=null,At.next?(Pt.corkedRequestsFree=At.next,At.next=null):Pt.corkedRequestsFree=new d(Pt),Pt.bufferedRequestCount=0}else{for(;Lt;){var Ht=Lt.chunk,Xt=Lt.encoding,Zt=Lt.callback,Gt=Pt.objectMode?1:Ht.length;if(pt(qt,Pt,!1,Gt,Ht,Xt,Zt),Lt=Lt.next,Pt.bufferedRequestCount--,Pt.writing)break}Lt===null&&(Pt.lastBufferedRequest=null)}Pt.bufferedRequest=Lt,Pt.bufferProcessing=!1}Ut.prototype._write=function(qt,Pt,Lt){Lt(new st("_write()"))},Ut.prototype._writev=null,Ut.prototype.end=function(qt,Pt,Lt){var Jt=this._writableState;return typeof qt=="function"?(Lt=qt,qt=null,Pt=null):typeof Pt=="function"&&(Lt=Pt,Pt=null),qt!=null&&this.write(qt,Pt),Jt.corked&&(Jt.corked=1,this.uncork()),Jt.ending||Dt(this,Jt,Lt),this},Object.defineProperty(Ut.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function lt(qt){return qt.ending&&qt.length===0&&qt.bufferedRequest===null&&!qt.finished&&!qt.writing}function _t(qt,Pt){qt._final(function(Lt){Pt.pendingcb--,Lt&&Tt(qt,Lt),Pt.prefinished=!0,qt.emit("prefinish"),Et(qt,Pt)})}function $t(qt,Pt){!Pt.prefinished&&!Pt.finalCalled&&(typeof qt._final=="function"&&!Pt.destroyed?(Pt.pendingcb++,Pt.finalCalled=!0,process$1.nextTick(_t,qt,Pt)):(Pt.prefinished=!0,qt.emit("prefinish")))}function Et(qt,Pt){var Lt=lt(Pt);if(Lt&&($t(qt,Pt),Pt.pendingcb===0&&(Pt.finished=!0,qt.emit("finish"),Pt.autoDestroy))){var Jt=qt._readableState;(!Jt||Jt.autoDestroy&&Jt.endEmitted)&&qt.destroy()}return Lt}function Dt(qt,Pt,Lt){Pt.ending=!0,Et(qt,Pt),Lt&&(Pt.finished?process$1.nextTick(Lt):qt.once("finish",Lt)),Pt.ended=!0,qt.writable=!1}function er(qt,Pt,Lt){var Jt=qt.entry;for(qt.entry=null;Jt;){var Ot=Jt.callback;Pt.pendingcb--,Ot(Lt),Jt=Jt.next}Pt.corkedRequestsFree.next=qt}return Object.defineProperty(Ut.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Pt){this._writableState&&(this._writableState.destroyed=Pt)}}),Ut.prototype.destroy=nt.destroy,Ut.prototype._undestroy=nt.undestroy,Ut.prototype._destroy=function(qt,Pt){Pt(qt)},_stream_writable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var d=Object.keys||function(it){var rt=[];for(var ot in it)rt.push(ot);return rt};_stream_duplex$1=et;var b=require_stream_readable$1(),_=require_stream_writable$1();inherits_browserExports$1(et,b);for(var $=d(_.prototype),j=0;j<$.length;j++){var _e=$[j];et.prototype[_e]||(et.prototype[_e]=_.prototype[_e])}function et(it){if(!(this instanceof et))return new et(it);b.call(this,it),_.call(this,it),this.allowHalfOpen=!0,it&&(it.readable===!1&&(this.readable=!1),it.writable===!1&&(this.writable=!1),it.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",tt)))}Object.defineProperty(et.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(et.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(et.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function tt(){this._writableState.ended||process$1.nextTick(nt,this)}function nt(it){it.end()}return Object.defineProperty(et.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(rt){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=rt,this._writableState.destroyed=rt)}}),_stream_duplex$1}var string_decoder={},Buffer$A=safeBufferExports$1.Buffer,isEncoding=Buffer$A.isEncoding||function(d){switch(d=""+d,d&&d.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 _normalizeEncoding(d){if(!d)return"utf8";for(var b;;)switch(d){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 d;default:if(b)return;d=(""+d).toLowerCase(),b=!0}}function normalizeEncoding(d){var b=_normalizeEncoding(d);if(typeof b!="string"&&(Buffer$A.isEncoding===isEncoding||!isEncoding(d)))throw new Error("Unknown encoding: "+d);return b||d}string_decoder.StringDecoder=StringDecoder$1;function StringDecoder$1(d){this.encoding=normalizeEncoding(d);var b;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,b=4;break;case"utf8":this.fillLast=utf8FillLast,b=4;break;case"base64":this.text=base64Text,this.end=base64End,b=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer$A.allocUnsafe(b)}StringDecoder$1.prototype.write=function(d){if(d.length===0)return"";var b,_;if(this.lastNeed){if(b=this.fillLast(d),b===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _<d.length?b?b+this.text(d,_):this.text(d,_):b||""};StringDecoder$1.prototype.end=utf8End;StringDecoder$1.prototype.text=utf8Text;StringDecoder$1.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function utf8CheckByte(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function utf8CheckIncomplete(d,b,_){var $=b.length-1;if($<_)return 0;var j=utf8CheckByte(b[$]);return j>=0?(j>0&&(d.lastNeed=j-1),j):--$<_||j===-2?0:(j=utf8CheckByte(b[$]),j>=0?(j>0&&(d.lastNeed=j-2),j):--$<_||j===-2?0:(j=utf8CheckByte(b[$]),j>=0?(j>0&&(j===2?j=0:d.lastNeed=j-3),j):0))}function utf8CheckExtraBytes(d,b,_){if((b[0]&192)!==128)return d.lastNeed=0,"�";if(d.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return d.lastNeed=1,"�";if(d.lastNeed>2&&b.length>2&&(b[2]&192)!==128)return d.lastNeed=2,"�"}}function utf8FillLast(d){var b=this.lastTotal-this.lastNeed,_=utf8CheckExtraBytes(this,d);if(_!==void 0)return _;if(this.lastNeed<=d.length)return d.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,b,0,d.length),this.lastNeed-=d.length}function utf8Text(d,b){var _=utf8CheckIncomplete(this,d,b);if(!this.lastNeed)return d.toString("utf8",b);this.lastTotal=_;var $=d.length-(_-this.lastNeed);return d.copy(this.lastChar,0,$),d.toString("utf8",b,$)}function utf8End(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+"�":b}function utf16Text(d,b){if((d.length-b)%2===0){var _=d.toString("utf16le",b);if(_){var $=_.charCodeAt(_.length-1);if($>=55296&&$<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",b,d.length-1)}function utf16End(d){var b=d&&d.length?this.write(d):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,_)}return b}function base64Text(d,b){var _=(d.length-b)%3;return _===0?d.toString("base64",b):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",b,d.length-_))}function base64End(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function simpleWrite(d){return d.toString(this.encoding)}function simpleEnd(d){return d&&d.length?this.write(d):""}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var d=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function b(_e){var et=!1;return function(){if(!et){et=!0;for(var tt=arguments.length,nt=new Array(tt),it=0;it<tt;it++)nt[it]=arguments[it];_e.apply(this,nt)}}}function _(){}function $(_e){return _e.setHeader&&typeof _e.abort=="function"}function j(_e,et,tt){if(typeof et=="function")return j(_e,null,et);et||(et={}),tt=b(tt||_);var nt=et.readable||et.readable!==!1&&_e.readable,it=et.writable||et.writable!==!1&&_e.writable,rt=function(){_e.writable||at()},ot=_e._writableState&&_e._writableState.finished,at=function(){it=!1,ot=!0,nt||tt.call(_e)},st=_e._readableState&&_e._readableState.endEmitted,ht=function(){nt=!1,st=!0,it||tt.call(_e)},yt=function(Rt){tt.call(_e,Rt)},It=function(){var Rt;if(nt&&!st)return(!_e._readableState||!_e._readableState.ended)&&(Rt=new d),tt.call(_e,Rt);if(it&&!ot)return(!_e._writableState||!_e._writableState.ended)&&(Rt=new d),tt.call(_e,Rt)},gt=function(){_e.req.on("finish",at)};return $(_e)?(_e.on("complete",at),_e.on("abort",It),_e.req?gt():_e.on("request",gt)):it&&!_e._writableState&&(_e.on("end",rt),_e.on("close",rt)),_e.on("end",ht),_e.on("finish",at),et.error!==!1&&_e.on("error",yt),_e.on("close",It),function(){_e.removeListener("complete",at),_e.removeListener("abort",It),_e.removeListener("request",gt),_e.req&&_e.req.removeListener("finish",at),_e.removeListener("end",rt),_e.removeListener("close",rt),_e.removeListener("finish",at),_e.removeListener("end",ht),_e.removeListener("error",yt),_e.removeListener("close",It)}}return endOfStream=j,endOfStream}var async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var d;function b(Rt,Tt,Nt){return Tt=_(Tt),Tt in Rt?Object.defineProperty(Rt,Tt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Rt[Tt]=Nt,Rt}function _(Rt){var Tt=$(Rt,"string");return typeof Tt=="symbol"?Tt:String(Tt)}function $(Rt,Tt){if(typeof Rt!="object"||Rt===null)return Rt;var Nt=Rt[Symbol.toPrimitive];if(Nt!==void 0){var Bt=Nt.call(Rt,Tt||"default");if(typeof Bt!="object")return Bt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Tt==="string"?String:Number)(Rt)}var j=requireEndOfStream(),_e=Symbol("lastResolve"),et=Symbol("lastReject"),tt=Symbol("error"),nt=Symbol("ended"),it=Symbol("lastPromise"),rt=Symbol("handlePromise"),ot=Symbol("stream");function at(Rt,Tt){return{value:Rt,done:Tt}}function st(Rt){var Tt=Rt[_e];if(Tt!==null){var Nt=Rt[ot].read();Nt!==null&&(Rt[it]=null,Rt[_e]=null,Rt[et]=null,Tt(at(Nt,!1)))}}function ht(Rt){process$1.nextTick(st,Rt)}function yt(Rt,Tt){return function(Nt,Bt){Rt.then(function(){if(Tt[nt]){Nt(at(void 0,!0));return}Tt[rt](Nt,Bt)},Bt)}}var It=Object.getPrototypeOf(function(){}),gt=Object.setPrototypeOf((d={get stream(){return this[ot]},next:function(){var Tt=this,Nt=this[tt];if(Nt!==null)return Promise.reject(Nt);if(this[nt])return Promise.resolve(at(void 0,!0));if(this[ot].destroyed)return new Promise(function(zt,Qt){process$1.nextTick(function(){Tt[tt]?Qt(Tt[tt]):zt(at(void 0,!0))})});var Bt=this[it],Vt;if(Bt)Vt=new Promise(yt(Bt,this));else{var Ut=this[ot].read();if(Ut!==null)return Promise.resolve(at(Ut,!1));Vt=new Promise(this[rt])}return this[it]=Vt,Vt}},b(d,Symbol.asyncIterator,function(){return this}),b(d,"return",function(){var Tt=this;return new Promise(function(Nt,Bt){Tt[ot].destroy(null,function(Vt){if(Vt){Bt(Vt);return}Nt(at(void 0,!0))})})}),d),It),vt=function(Tt){var Nt,Bt=Object.create(gt,(Nt={},b(Nt,ot,{value:Tt,writable:!0}),b(Nt,_e,{value:null,writable:!0}),b(Nt,et,{value:null,writable:!0}),b(Nt,tt,{value:null,writable:!0}),b(Nt,nt,{value:Tt._readableState.endEmitted,writable:!0}),b(Nt,rt,{value:function(Ut,zt){var Qt=Bt[ot].read();Qt?(Bt[it]=null,Bt[_e]=null,Bt[et]=null,Ut(at(Qt,!1))):(Bt[_e]=Ut,Bt[et]=zt)},writable:!0}),Nt));return Bt[it]=null,j(Tt,function(Vt){if(Vt&&Vt.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ut=Bt[et];Ut!==null&&(Bt[it]=null,Bt[_e]=null,Bt[et]=null,Ut(Vt)),Bt[tt]=Vt;return}var zt=Bt[_e];zt!==null&&(Bt[it]=null,Bt[_e]=null,Bt[et]=null,zt(at(void 0,!0))),Bt[nt]=!0}),Tt.on("readable",ht.bind(null,Bt)),Bt};return async_iterator=vt,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1,_stream_readable$1=zt;var d;zt.ReadableState=Ut,eventsExports.EventEmitter;var b=function(kt,Kt){return kt.listeners(Kt).length},_=requireStreamBrowser(),$=require$$1$4.Buffer,j=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _e(At){return $.from(At)}function et(At){return $.isBuffer(At)||At instanceof j}var tt=util$4,nt;tt&&tt.debuglog?nt=tt.debuglog("stream"):nt=function(){};var it=requireBuffer_list(),rt=requireDestroy(),ot=requireState(),at=ot.getHighWaterMark,st=requireErrorsBrowser().codes,ht=st.ERR_INVALID_ARG_TYPE,yt=st.ERR_STREAM_PUSH_AFTER_EOF,It=st.ERR_METHOD_NOT_IMPLEMENTED,gt=st.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,vt,Rt,Tt;inherits_browserExports$1(zt,_);var Nt=rt.errorOrDestroy,Bt=["error","close","destroy","pause","resume"];function Vt(At,kt,Kt){if(typeof At.prependListener=="function")return At.prependListener(kt,Kt);!At._events||!At._events[kt]?At.on(kt,Kt):Array.isArray(At._events[kt])?At._events[kt].unshift(Kt):At._events[kt]=[Kt,At._events[kt]]}function Ut(At,kt,Kt){d=d||require_stream_duplex$1(),At=At||{},typeof Kt!="boolean"&&(Kt=kt instanceof d),this.objectMode=!!At.objectMode,Kt&&(this.objectMode=this.objectMode||!!At.readableObjectMode),this.highWaterMark=at(this,At,"readableHighWaterMark",Kt),this.buffer=new it,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=At.emitClose!==!1,this.autoDestroy=!!At.autoDestroy,this.destroyed=!1,this.defaultEncoding=At.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,At.encoding&&(vt||(vt=string_decoder.StringDecoder),this.decoder=new vt(At.encoding),this.encoding=At.encoding)}function zt(At){if(d=d||require_stream_duplex$1(),!(this instanceof zt))return new zt(At);var kt=this instanceof d;this._readableState=new Ut(At,this,kt),this.readable=!0,At&&(typeof At.read=="function"&&(this._read=At.read),typeof At.destroy=="function"&&(this._destroy=At.destroy)),_.call(this)}Object.defineProperty(zt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(kt){this._readableState&&(this._readableState.destroyed=kt)}}),zt.prototype.destroy=rt.destroy,zt.prototype._undestroy=rt.undestroy,zt.prototype._destroy=function(At,kt){kt(At)},zt.prototype.push=function(At,kt){var Kt=this._readableState,Ht;return Kt.objectMode?Ht=!0:typeof At=="string"&&(kt=kt||Kt.defaultEncoding,kt!==Kt.encoding&&(At=$.from(At,kt),kt=""),Ht=!0),Qt(this,At,kt,!1,Ht)},zt.prototype.unshift=function(At){return Qt(this,At,null,!0,!1)};function Qt(At,kt,Kt,Ht,Xt){nt("readableAddChunk",kt);var Zt=At._readableState;if(kt===null)Zt.reading=!1,bt(At,Zt);else{var Gt;if(Xt||(Gt=mt(Zt,kt)),Gt)Nt(At,Gt);else if(Zt.objectMode||kt&&kt.length>0)if(typeof kt!="string"&&!Zt.objectMode&&Object.getPrototypeOf(kt)!==$.prototype&&(kt=_e(kt)),Ht)Zt.endEmitted?Nt(At,new gt):jt(At,Zt,kt,!0);else if(Zt.ended)Nt(At,new yt);else{if(Zt.destroyed)return!1;Zt.reading=!1,Zt.decoder&&!Kt?(kt=Zt.decoder.write(kt),Zt.objectMode||kt.length!==0?jt(At,Zt,kt,!1):wt(At,Zt)):jt(At,Zt,kt,!1)}else Ht||(Zt.reading=!1,wt(At,Zt))}return!Zt.ended&&(Zt.length<Zt.highWaterMark||Zt.length===0)}function jt(At,kt,Kt,Ht){kt.flowing&&kt.length===0&&!kt.sync?(kt.awaitDrain=0,At.emit("data",Kt)):(kt.length+=kt.objectMode?1:Kt.length,Ht?kt.buffer.unshift(Kt):kt.buffer.push(Kt),kt.needReadable&&St(At)),wt(At,kt)}function mt(At,kt){var Kt;return!et(kt)&&typeof kt!="string"&&kt!==void 0&&!At.objectMode&&(Kt=new ht("chunk",["string","Buffer","Uint8Array"],kt)),Kt}zt.prototype.isPaused=function(){return this._readableState.flowing===!1},zt.prototype.setEncoding=function(At){vt||(vt=string_decoder.StringDecoder);var kt=new vt(At);this._readableState.decoder=kt,this._readableState.encoding=this._readableState.decoder.encoding;for(var Kt=this._readableState.buffer.head,Ht="";Kt!==null;)Ht+=kt.write(Kt.data),Kt=Kt.next;return this._readableState.buffer.clear(),Ht!==""&&this._readableState.buffer.push(Ht),this._readableState.length=Ht.length,this};var pt=1073741824;function ct(At){return At>=pt?At=pt:(At--,At|=At>>>1,At|=At>>>2,At|=At>>>4,At|=At>>>8,At|=At>>>16,At++),At}function dt(At,kt){return At<=0||kt.length===0&&kt.ended?0:kt.objectMode?1:At!==At?kt.flowing&&kt.length?kt.buffer.head.data.length:kt.length:(At>kt.highWaterMark&&(kt.highWaterMark=ct(At)),At<=kt.length?At:kt.ended?kt.length:(kt.needReadable=!0,0))}zt.prototype.read=function(At){nt("read",At),At=parseInt(At,10);var kt=this._readableState,Kt=At;if(At!==0&&(kt.emittedReadable=!1),At===0&&kt.needReadable&&((kt.highWaterMark!==0?kt.length>=kt.highWaterMark:kt.length>0)||kt.ended))return nt("read: emitReadable",kt.length,kt.ended),kt.length===0&&kt.ended?Lt(this):St(this),null;if(At=dt(At,kt),At===0&&kt.ended)return kt.length===0&&Lt(this),null;var Ht=kt.needReadable;nt("need readable",Ht),(kt.length===0||kt.length-At<kt.highWaterMark)&&(Ht=!0,nt("length less than watermark",Ht)),kt.ended||kt.reading?(Ht=!1,nt("reading or ended",Ht)):Ht&&(nt("do read"),kt.reading=!0,kt.sync=!0,kt.length===0&&(kt.needReadable=!0),this._read(kt.highWaterMark),kt.sync=!1,kt.reading||(At=dt(Kt,kt)));var Xt;return At>0?Xt=Pt(At,kt):Xt=null,Xt===null?(kt.needReadable=kt.length<=kt.highWaterMark,At=0):(kt.length-=At,kt.awaitDrain=0),kt.length===0&&(kt.ended||(kt.needReadable=!0),Kt!==At&&kt.ended&&Lt(this)),Xt!==null&&this.emit("data",Xt),Xt};function bt(At,kt){if(nt("onEofChunk"),!kt.ended){if(kt.decoder){var Kt=kt.decoder.end();Kt&&Kt.length&&(kt.buffer.push(Kt),kt.length+=kt.objectMode?1:Kt.length)}kt.ended=!0,kt.sync?St(At):(kt.needReadable=!1,kt.emittedReadable||(kt.emittedReadable=!0,xt(At)))}}function St(At){var kt=At._readableState;nt("emitReadable",kt.needReadable,kt.emittedReadable),kt.needReadable=!1,kt.emittedReadable||(nt("emitReadable",kt.flowing),kt.emittedReadable=!0,process$1.nextTick(xt,At))}function xt(At){var kt=At._readableState;nt("emitReadable_",kt.destroyed,kt.length,kt.ended),!kt.destroyed&&(kt.length||kt.ended)&&(At.emit("readable"),kt.emittedReadable=!1),kt.needReadable=!kt.flowing&&!kt.ended&&kt.length<=kt.highWaterMark,qt(At)}function wt(At,kt){kt.readingMore||(kt.readingMore=!0,process$1.nextTick(lt,At,kt))}function lt(At,kt){for(;!kt.reading&&!kt.ended&&(kt.length<kt.highWaterMark||kt.flowing&&kt.length===0);){var Kt=kt.length;if(nt("maybeReadMore read 0"),At.read(0),Kt===kt.length)break}kt.readingMore=!1}zt.prototype._read=function(At){Nt(this,new It("_read()"))},zt.prototype.pipe=function(At,kt){var Kt=this,Ht=this._readableState;switch(Ht.pipesCount){case 0:Ht.pipes=At;break;case 1:Ht.pipes=[Ht.pipes,At];break;default:Ht.pipes.push(At);break}Ht.pipesCount+=1,nt("pipe count=%d opts=%j",Ht.pipesCount,kt);var Xt=(!kt||kt.end!==!1)&&At!==process$1.stdout&&At!==process$1.stderr,Zt=Xt?tr:ar;Ht.endEmitted?process$1.nextTick(Zt):Kt.once("end",Zt),At.on("unpipe",Gt);function Gt(lr,dr){nt("onunpipe"),lr===Kt&&dr&&dr.hasUnpiped===!1&&(dr.hasUnpiped=!0,ir())}function tr(){nt("onend"),At.end()}var Yt=_t(Kt);At.on("drain",Yt);var rr=!1;function ir(){nt("cleanup"),At.removeListener("close",yr),At.removeListener("finish",br),At.removeListener("drain",Yt),At.removeListener("error",pr),At.removeListener("unpipe",Gt),Kt.removeListener("end",tr),Kt.removeListener("end",ar),Kt.removeListener("data",fr),rr=!0,Ht.awaitDrain&&(!At._writableState||At._writableState.needDrain)&&Yt()}Kt.on("data",fr);function fr(lr){nt("ondata");var dr=At.write(lr);nt("dest.write",dr),dr===!1&&((Ht.pipesCount===1&&Ht.pipes===At||Ht.pipesCount>1&&Ot(Ht.pipes,At)!==-1)&&!rr&&(nt("false write response, pause",Ht.awaitDrain),Ht.awaitDrain++),Kt.pause())}function pr(lr){nt("onerror",lr),ar(),At.removeListener("error",pr),b(At,"error")===0&&Nt(At,lr)}Vt(At,"error",pr);function yr(){At.removeListener("finish",br),ar()}At.once("close",yr);function br(){nt("onfinish"),At.removeListener("close",yr),ar()}At.once("finish",br);function ar(){nt("unpipe"),Kt.unpipe(At)}return At.emit("pipe",Kt),Ht.flowing||(nt("pipe resume"),Kt.resume()),At};function _t(At){return function(){var Kt=At._readableState;nt("pipeOnDrain",Kt.awaitDrain),Kt.awaitDrain&&Kt.awaitDrain--,Kt.awaitDrain===0&&b(At,"data")&&(Kt.flowing=!0,qt(At))}}zt.prototype.unpipe=function(At){var kt=this._readableState,Kt={hasUnpiped:!1};if(kt.pipesCount===0)return this;if(kt.pipesCount===1)return At&&At!==kt.pipes?this:(At||(At=kt.pipes),kt.pipes=null,kt.pipesCount=0,kt.flowing=!1,At&&At.emit("unpipe",this,Kt),this);if(!At){var Ht=kt.pipes,Xt=kt.pipesCount;kt.pipes=null,kt.pipesCount=0,kt.flowing=!1;for(var Zt=0;Zt<Xt;Zt++)Ht[Zt].emit("unpipe",this,{hasUnpiped:!1});return this}var Gt=Ot(kt.pipes,At);return Gt===-1?this:(kt.pipes.splice(Gt,1),kt.pipesCount-=1,kt.pipesCount===1&&(kt.pipes=kt.pipes[0]),At.emit("unpipe",this,Kt),this)},zt.prototype.on=function(At,kt){var Kt=_.prototype.on.call(this,At,kt),Ht=this._readableState;return At==="data"?(Ht.readableListening=this.listenerCount("readable")>0,Ht.flowing!==!1&&this.resume()):At==="readable"&&!Ht.endEmitted&&!Ht.readableListening&&(Ht.readableListening=Ht.needReadable=!0,Ht.flowing=!1,Ht.emittedReadable=!1,nt("on readable",Ht.length,Ht.reading),Ht.length?St(this):Ht.reading||process$1.nextTick(Et,this)),Kt},zt.prototype.addListener=zt.prototype.on,zt.prototype.removeListener=function(At,kt){var Kt=_.prototype.removeListener.call(this,At,kt);return At==="readable"&&process$1.nextTick($t,this),Kt},zt.prototype.removeAllListeners=function(At){var kt=_.prototype.removeAllListeners.apply(this,arguments);return(At==="readable"||At===void 0)&&process$1.nextTick($t,this),kt};function $t(At){var kt=At._readableState;kt.readableListening=At.listenerCount("readable")>0,kt.resumeScheduled&&!kt.paused?kt.flowing=!0:At.listenerCount("data")>0&&At.resume()}function Et(At){nt("readable nexttick read 0"),At.read(0)}zt.prototype.resume=function(){var At=this._readableState;return At.flowing||(nt("resume"),At.flowing=!At.readableListening,Dt(this,At)),At.paused=!1,this};function Dt(At,kt){kt.resumeScheduled||(kt.resumeScheduled=!0,process$1.nextTick(er,At,kt))}function er(At,kt){nt("resume",kt.reading),kt.reading||At.read(0),kt.resumeScheduled=!1,At.emit("resume"),qt(At),kt.flowing&&!kt.reading&&At.read(0)}zt.prototype.pause=function(){return nt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function qt(At){var kt=At._readableState;for(nt("flow",kt.flowing);kt.flowing&&At.read()!==null;);}zt.prototype.wrap=function(At){var kt=this,Kt=this._readableState,Ht=!1;At.on("end",function(){if(nt("wrapped end"),Kt.decoder&&!Kt.ended){var Gt=Kt.decoder.end();Gt&&Gt.length&&kt.push(Gt)}kt.push(null)}),At.on("data",function(Gt){if(nt("wrapped data"),Kt.decoder&&(Gt=Kt.decoder.write(Gt)),!(Kt.objectMode&&Gt==null)&&!(!Kt.objectMode&&(!Gt||!Gt.length))){var tr=kt.push(Gt);tr||(Ht=!0,At.pause())}});for(var Xt in At)this[Xt]===void 0&&typeof At[Xt]=="function"&&(this[Xt]=function(tr){return function(){return At[tr].apply(At,arguments)}}(Xt));for(var Zt=0;Zt<Bt.length;Zt++)At.on(Bt[Zt],this.emit.bind(this,Bt[Zt]));return this._read=function(Gt){nt("wrapped _read",Gt),Ht&&(Ht=!1,At.resume())},this},typeof Symbol=="function"&&(zt.prototype[Symbol.asyncIterator]=function(){return Rt===void 0&&(Rt=requireAsync_iterator()),Rt(this)}),Object.defineProperty(zt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(zt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(zt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(kt){this._readableState&&(this._readableState.flowing=kt)}}),zt._fromList=Pt,Object.defineProperty(zt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Pt(At,kt){if(kt.length===0)return null;var Kt;return kt.objectMode?Kt=kt.buffer.shift():!At||At>=kt.length?(kt.decoder?Kt=kt.buffer.join(""):kt.buffer.length===1?Kt=kt.buffer.first():Kt=kt.buffer.concat(kt.length),kt.buffer.clear()):Kt=kt.buffer.consume(At,kt.decoder),Kt}function Lt(At){var kt=At._readableState;nt("endReadable",kt.endEmitted),kt.endEmitted||(kt.ended=!0,process$1.nextTick(Jt,kt,At))}function Jt(At,kt){if(nt("endReadableNT",At.endEmitted,At.length),!At.endEmitted&&At.length===0&&(At.endEmitted=!0,kt.readable=!1,kt.emit("end"),At.autoDestroy)){var Kt=kt._writableState;(!Kt||Kt.autoDestroy&&Kt.finished)&&kt.destroy()}}typeof Symbol=="function"&&(zt.from=function(At,kt){return Tt===void 0&&(Tt=requireFromBrowser()),Tt(zt,At,kt)});function Ot(At,kt){for(var Kt=0,Ht=At.length;Kt<Ht;Kt++)if(At[Kt]===kt)return Kt;return-1}return _stream_readable$1}var _stream_transform$1,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform$1;hasRequired_stream_transform=1,_stream_transform$1=tt;var d=requireErrorsBrowser().codes,b=d.ERR_METHOD_NOT_IMPLEMENTED,_=d.ERR_MULTIPLE_CALLBACK,$=d.ERR_TRANSFORM_ALREADY_TRANSFORMING,j=d.ERR_TRANSFORM_WITH_LENGTH_0,_e=require_stream_duplex$1();inherits_browserExports$1(tt,_e);function et(rt,ot){var at=this._transformState;at.transforming=!1;var st=at.writecb;if(st===null)return this.emit("error",new _);at.writechunk=null,at.writecb=null,ot!=null&&this.push(ot),st(rt);var ht=this._readableState;ht.reading=!1,(ht.needReadable||ht.length<ht.highWaterMark)&&this._read(ht.highWaterMark)}function tt(rt){if(!(this instanceof tt))return new tt(rt);_e.call(this,rt),this._transformState={afterTransform:et.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,rt&&(typeof rt.transform=="function"&&(this._transform=rt.transform),typeof rt.flush=="function"&&(this._flush=rt.flush)),this.on("prefinish",nt)}function nt(){var rt=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ot,at){it(rt,ot,at)}):it(this,null,null)}tt.prototype.push=function(rt,ot){return this._transformState.needTransform=!1,_e.prototype.push.call(this,rt,ot)},tt.prototype._transform=function(rt,ot,at){at(new b("_transform()"))},tt.prototype._write=function(rt,ot,at){var st=this._transformState;if(st.writecb=at,st.writechunk=rt,st.writeencoding=ot,!st.transforming){var ht=this._readableState;(st.needTransform||ht.needReadable||ht.length<ht.highWaterMark)&&this._read(ht.highWaterMark)}},tt.prototype._read=function(rt){var ot=this._transformState;ot.writechunk!==null&&!ot.transforming?(ot.transforming=!0,this._transform(ot.writechunk,ot.writeencoding,ot.afterTransform)):ot.needTransform=!0},tt.prototype._destroy=function(rt,ot){_e.prototype._destroy.call(this,rt,function(at){ot(at)})};function it(rt,ot,at){if(ot)return rt.emit("error",ot);if(at!=null&&rt.push(at),rt._writableState.length)throw new j;if(rt._transformState.transforming)throw new $;return rt.push(null)}return _stream_transform$1}var _stream_passthrough$1,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough$1;hasRequired_stream_passthrough=1,_stream_passthrough$1=b;var d=require_stream_transform();inherits_browserExports$1(b,d);function b(_){if(!(this instanceof b))return new b(_);d.call(this,_)}return b.prototype._transform=function(_,$,j){j(null,_)},_stream_passthrough$1}var pipeline_1,hasRequiredPipeline;function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;hasRequiredPipeline=1;var d;function b(at){var st=!1;return function(){st||(st=!0,at.apply(void 0,arguments))}}var _=requireErrorsBrowser().codes,$=_.ERR_MISSING_ARGS,j=_.ERR_STREAM_DESTROYED;function _e(at){if(at)throw at}function et(at){return at.setHeader&&typeof at.abort=="function"}function tt(at,st,ht,yt){yt=b(yt);var It=!1;at.on("close",function(){It=!0}),d===void 0&&(d=requireEndOfStream()),d(at,{readable:st,writable:ht},function(vt){if(vt)return yt(vt);It=!0,yt()});var gt=!1;return function(vt){if(!It&&!gt){if(gt=!0,et(at))return at.abort();if(typeof at.destroy=="function")return at.destroy();yt(vt||new j("pipe"))}}}function nt(at){at()}function it(at,st){return at.pipe(st)}function rt(at){return!at.length||typeof at[at.length-1]!="function"?_e:at.pop()}function ot(){for(var at=arguments.length,st=new Array(at),ht=0;ht<at;ht++)st[ht]=arguments[ht];var yt=rt(st);if(Array.isArray(st[0])&&(st=st[0]),st.length<2)throw new $("streams");var It,gt=st.map(function(vt,Rt){var Tt=Rt<st.length-1,Nt=Rt>0;return tt(vt,Tt,Nt,function(Bt){It||(It=Bt),Bt&>.forEach(nt),!Tt&&(gt.forEach(nt),yt(It))})});return st.reduce(it)}return pipeline_1=ot,pipeline_1}var hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(d,b){b=d.exports=require_stream_readable$1(),b.Stream=b,b.Readable=b,b.Writable=require_stream_writable$1(),b.Duplex=require_stream_duplex$1(),b.Transform=require_stream_transform(),b.PassThrough=require_stream_passthrough(),b.finished=requireEndOfStream(),b.pipeline=requirePipeline()}(readableBrowser$1,readableBrowser$1.exports)),readableBrowser$1.exports}var Buffer$z=safeBufferExports$1.Buffer,Transform$7=requireReadableBrowser().Transform,inherits$q=inherits_browserExports$1;function throwIfNotStringOrBuffer(d,b){if(!Buffer$z.isBuffer(d)&&typeof d!="string")throw new TypeError(b+" must be a string or a buffer")}function HashBase$2(d){Transform$7.call(this),this._block=Buffer$z.allocUnsafe(d),this._blockSize=d,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$q(HashBase$2,Transform$7);HashBase$2.prototype._transform=function(d,b,_){var $=null;try{this.update(d,b)}catch(j){$=j}_($)};HashBase$2.prototype._flush=function(d){var b=null;try{this.push(this.digest())}catch(_){b=_}d(b)};HashBase$2.prototype.update=function(d,b){if(throwIfNotStringOrBuffer(d,"Data"),this._finalized)throw new Error("Digest already called");Buffer$z.isBuffer(d)||(d=Buffer$z.from(d,b));for(var _=this._block,$=0;this._blockOffset+d.length-$>=this._blockSize;){for(var j=this._blockOffset;j<this._blockSize;)_[j++]=d[$++];this._update(),this._blockOffset=0}for(;$<d.length;)_[this._blockOffset++]=d[$++];for(var _e=0,et=d.length*8;et>0;++_e)this._length[_e]+=et,et=this._length[_e]/4294967296|0,et>0&&(this._length[_e]-=4294967296*et);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(d){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var b=this._digest();d!==void 0&&(b=b.toString(d)),this._block.fill(0),this._blockOffset=0;for(var _=0;_<4;++_)this._length[_]=0;return b};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$p=inherits_browserExports$1,HashBase$1=hashBase,Buffer$y=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$p(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var d=ARRAY16$1,b=0;b<16;++b)d[b]=this._block.readInt32LE(b*4);var _=this._a,$=this._b,j=this._c,_e=this._d;_=fnF(_,$,j,_e,d[0],3614090360,7),_e=fnF(_e,_,$,j,d[1],3905402710,12),j=fnF(j,_e,_,$,d[2],606105819,17),$=fnF($,j,_e,_,d[3],3250441966,22),_=fnF(_,$,j,_e,d[4],4118548399,7),_e=fnF(_e,_,$,j,d[5],1200080426,12),j=fnF(j,_e,_,$,d[6],2821735955,17),$=fnF($,j,_e,_,d[7],4249261313,22),_=fnF(_,$,j,_e,d[8],1770035416,7),_e=fnF(_e,_,$,j,d[9],2336552879,12),j=fnF(j,_e,_,$,d[10],4294925233,17),$=fnF($,j,_e,_,d[11],2304563134,22),_=fnF(_,$,j,_e,d[12],1804603682,7),_e=fnF(_e,_,$,j,d[13],4254626195,12),j=fnF(j,_e,_,$,d[14],2792965006,17),$=fnF($,j,_e,_,d[15],1236535329,22),_=fnG(_,$,j,_e,d[1],4129170786,5),_e=fnG(_e,_,$,j,d[6],3225465664,9),j=fnG(j,_e,_,$,d[11],643717713,14),$=fnG($,j,_e,_,d[0],3921069994,20),_=fnG(_,$,j,_e,d[5],3593408605,5),_e=fnG(_e,_,$,j,d[10],38016083,9),j=fnG(j,_e,_,$,d[15],3634488961,14),$=fnG($,j,_e,_,d[4],3889429448,20),_=fnG(_,$,j,_e,d[9],568446438,5),_e=fnG(_e,_,$,j,d[14],3275163606,9),j=fnG(j,_e,_,$,d[3],4107603335,14),$=fnG($,j,_e,_,d[8],1163531501,20),_=fnG(_,$,j,_e,d[13],2850285829,5),_e=fnG(_e,_,$,j,d[2],4243563512,9),j=fnG(j,_e,_,$,d[7],1735328473,14),$=fnG($,j,_e,_,d[12],2368359562,20),_=fnH(_,$,j,_e,d[5],4294588738,4),_e=fnH(_e,_,$,j,d[8],2272392833,11),j=fnH(j,_e,_,$,d[11],1839030562,16),$=fnH($,j,_e,_,d[14],4259657740,23),_=fnH(_,$,j,_e,d[1],2763975236,4),_e=fnH(_e,_,$,j,d[4],1272893353,11),j=fnH(j,_e,_,$,d[7],4139469664,16),$=fnH($,j,_e,_,d[10],3200236656,23),_=fnH(_,$,j,_e,d[13],681279174,4),_e=fnH(_e,_,$,j,d[0],3936430074,11),j=fnH(j,_e,_,$,d[3],3572445317,16),$=fnH($,j,_e,_,d[6],76029189,23),_=fnH(_,$,j,_e,d[9],3654602809,4),_e=fnH(_e,_,$,j,d[12],3873151461,11),j=fnH(j,_e,_,$,d[15],530742520,16),$=fnH($,j,_e,_,d[2],3299628645,23),_=fnI(_,$,j,_e,d[0],4096336452,6),_e=fnI(_e,_,$,j,d[7],1126891415,10),j=fnI(j,_e,_,$,d[14],2878612391,15),$=fnI($,j,_e,_,d[5],4237533241,21),_=fnI(_,$,j,_e,d[12],1700485571,6),_e=fnI(_e,_,$,j,d[3],2399980690,10),j=fnI(j,_e,_,$,d[10],4293915773,15),$=fnI($,j,_e,_,d[1],2240044497,21),_=fnI(_,$,j,_e,d[8],1873313359,6),_e=fnI(_e,_,$,j,d[15],4264355552,10),j=fnI(j,_e,_,$,d[6],2734768916,15),$=fnI($,j,_e,_,d[13],1309151649,21),_=fnI(_,$,j,_e,d[4],4149444226,6),_e=fnI(_e,_,$,j,d[11],3174756917,10),j=fnI(j,_e,_,$,d[2],718787259,15),$=fnI($,j,_e,_,d[9],3951481745,21),this._a=this._a+_|0,this._b=this._b+$|0,this._c=this._c+j|0,this._d=this._d+_e|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var d=Buffer$y.allocUnsafe(16);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d};function rotl$1(d,b){return d<<b|d>>>32-b}function fnF(d,b,_,$,j,_e,et){return rotl$1(d+(b&_|~b&$)+j+_e|0,et)+b|0}function fnG(d,b,_,$,j,_e,et){return rotl$1(d+(b&$|_&~$)+j+_e|0,et)+b|0}function fnH(d,b,_,$,j,_e,et){return rotl$1(d+(b^_^$)+j+_e|0,et)+b|0}function fnI(d,b,_,$,j,_e,et){return rotl$1(d+(_^(b|~$))+j+_e|0,et)+b|0}var md5_js=MD5$3,Buffer$x=require$$1$4.Buffer,inherits$o=inherits_browserExports$1,HashBase=hashBase,ARRAY16=new Array(16),zl=[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],zr=[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],sl=[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],sr=[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],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$4(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$o(RIPEMD160$4,HashBase);RIPEMD160$4.prototype._update=function(){for(var d=ARRAY16,b=0;b<16;++b)d[b]=this._block.readInt32LE(b*4);for(var _=this._a|0,$=this._b|0,j=this._c|0,_e=this._d|0,et=this._e|0,tt=this._a|0,nt=this._b|0,it=this._c|0,rt=this._d|0,ot=this._e|0,at=0;at<80;at+=1){var st,ht;at<16?(st=fn1(_,$,j,_e,et,d[zl[at]],hl[0],sl[at]),ht=fn5(tt,nt,it,rt,ot,d[zr[at]],hr[0],sr[at])):at<32?(st=fn2(_,$,j,_e,et,d[zl[at]],hl[1],sl[at]),ht=fn4(tt,nt,it,rt,ot,d[zr[at]],hr[1],sr[at])):at<48?(st=fn3(_,$,j,_e,et,d[zl[at]],hl[2],sl[at]),ht=fn3(tt,nt,it,rt,ot,d[zr[at]],hr[2],sr[at])):at<64?(st=fn4(_,$,j,_e,et,d[zl[at]],hl[3],sl[at]),ht=fn2(tt,nt,it,rt,ot,d[zr[at]],hr[3],sr[at])):(st=fn5(_,$,j,_e,et,d[zl[at]],hl[4],sl[at]),ht=fn1(tt,nt,it,rt,ot,d[zr[at]],hr[4],sr[at])),_=et,et=_e,_e=rotl(j,10),j=$,$=st,tt=ot,ot=rt,rt=rotl(it,10),it=nt,nt=ht}var yt=this._b+j+rt|0;this._b=this._c+_e+ot|0,this._c=this._d+et+tt|0,this._d=this._e+_+nt|0,this._e=this._a+$+it|0,this._a=yt};RIPEMD160$4.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var d=Buffer$x.alloc?Buffer$x.alloc(20):new Buffer$x(20);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d.writeInt32LE(this._e,16),d};function rotl(d,b){return d<<b|d>>>32-b}function fn1(d,b,_,$,j,_e,et,tt){return rotl(d+(b^_^$)+_e+et|0,tt)+j|0}function fn2(d,b,_,$,j,_e,et,tt){return rotl(d+(b&_|~b&$)+_e+et|0,tt)+j|0}function fn3(d,b,_,$,j,_e,et,tt){return rotl(d+((b|~_)^$)+_e+et|0,tt)+j|0}function fn4(d,b,_,$,j,_e,et,tt){return rotl(d+(b&$|_&~$)+_e+et|0,tt)+j|0}function fn5(d,b,_,$,j,_e,et,tt){return rotl(d+(b^(_|~$))+_e+et|0,tt)+j|0}var ripemd160=RIPEMD160$4,sha_js={exports:{}},Buffer$w=safeBufferExports$1.Buffer;function Hash$7(d,b){this._block=Buffer$w.alloc(d),this._finalSize=b,this._blockSize=d,this._len=0}Hash$7.prototype.update=function(d,b){typeof d=="string"&&(b=b||"utf8",d=Buffer$w.from(d,b));for(var _=this._block,$=this._blockSize,j=d.length,_e=this._len,et=0;et<j;){for(var tt=_e%$,nt=Math.min(j-et,$-tt),it=0;it<nt;it++)_[tt+it]=d[et+it];_e+=nt,et+=nt,_e%$===0&&this._update(_)}return this._len+=j,this};Hash$7.prototype.digest=function(d){var b=this._len%this._blockSize;this._block[b]=128,this._block.fill(0,b+1),b>=this._finalSize&&(this._update(this._block),this._block.fill(0));var _=this._len*8;if(_<=4294967295)this._block.writeUInt32BE(_,this._blockSize-4);else{var $=(_&4294967295)>>>0,j=(_-$)/4294967296;this._block.writeUInt32BE(j,this._blockSize-8),this._block.writeUInt32BE($,this._blockSize-4)}this._update(this._block);var _e=this._hash();return d?_e.toString(d):_e};Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$4=Hash$7,inherits$n=inherits_browserExports$1,Hash$6=hash$4,Buffer$v=safeBufferExports$1.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$6.call(this,64,56)}inherits$n(Sha,Hash$6);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(d){return d<<5|d>>>27}function rotl30$1(d){return d<<30|d>>>2}function ft$1(d,b,_,$){return d===0?b&_|~b&$:d===2?b&_|b&$|_&$:b^_^$}Sha.prototype._update=function(d){for(var b=this._w,_=this._a|0,$=this._b|0,j=this._c|0,_e=this._d|0,et=this._e|0,tt=0;tt<16;++tt)b[tt]=d.readInt32BE(tt*4);for(;tt<80;++tt)b[tt]=b[tt-3]^b[tt-8]^b[tt-14]^b[tt-16];for(var nt=0;nt<80;++nt){var it=~~(nt/20),rt=rotl5$1(_)+ft$1(it,$,j,_e)+et+b[nt]+K$4[it]|0;et=_e,_e=j,j=rotl30$1($),$=_,_=rt}this._a=_+this._a|0,this._b=$+this._b|0,this._c=j+this._c|0,this._d=_e+this._d|0,this._e=et+this._e|0};Sha.prototype._hash=function(){var d=Buffer$v.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d};var sha$4=Sha,inherits$m=inherits_browserExports$1,Hash$5=hash$4,Buffer$u=safeBufferExports$1.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$5.call(this,64,56)}inherits$m(Sha1,Hash$5);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(d){return d<<1|d>>>31}function rotl5(d){return d<<5|d>>>27}function rotl30(d){return d<<30|d>>>2}function ft(d,b,_,$){return d===0?b&_|~b&$:d===2?b&_|b&$|_&$:b^_^$}Sha1.prototype._update=function(d){for(var b=this._w,_=this._a|0,$=this._b|0,j=this._c|0,_e=this._d|0,et=this._e|0,tt=0;tt<16;++tt)b[tt]=d.readInt32BE(tt*4);for(;tt<80;++tt)b[tt]=rotl1(b[tt-3]^b[tt-8]^b[tt-14]^b[tt-16]);for(var nt=0;nt<80;++nt){var it=~~(nt/20),rt=rotl5(_)+ft(it,$,j,_e)+et+b[nt]+K$3[it]|0;et=_e,_e=j,j=rotl30($),$=_,_=rt}this._a=_+this._a|0,this._b=$+this._b|0,this._c=j+this._c|0,this._d=_e+this._d|0,this._e=et+this._e|0};Sha1.prototype._hash=function(){var d=Buffer$u.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d};var sha1=Sha1,inherits$l=inherits_browserExports$1,Hash$4=hash$4,Buffer$t=safeBufferExports$1.Buffer,K$2=[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],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$4.call(this,64,56)}inherits$l(Sha256$1,Hash$4);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(d,b,_){return _^d&(b^_)}function maj$1(d,b,_){return d&b|_&(d|b)}function sigma0$1(d){return(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10)}function sigma1$1(d){return(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7)}function gamma0(d){return(d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3}function gamma1(d){return(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10}Sha256$1.prototype._update=function(d){for(var b=this._w,_=this._a|0,$=this._b|0,j=this._c|0,_e=this._d|0,et=this._e|0,tt=this._f|0,nt=this._g|0,it=this._h|0,rt=0;rt<16;++rt)b[rt]=d.readInt32BE(rt*4);for(;rt<64;++rt)b[rt]=gamma1(b[rt-2])+b[rt-7]+gamma0(b[rt-15])+b[rt-16]|0;for(var ot=0;ot<64;++ot){var at=it+sigma1$1(et)+ch(et,tt,nt)+K$2[ot]+b[ot]|0,st=sigma0$1(_)+maj$1(_,$,j)|0;it=nt,nt=tt,tt=et,et=_e+at|0,_e=j,j=$,$=_,_=at+st|0}this._a=_+this._a|0,this._b=$+this._b|0,this._c=j+this._c|0,this._d=_e+this._d|0,this._e=et+this._e|0,this._f=tt+this._f|0,this._g=nt+this._g|0,this._h=it+this._h|0};Sha256$1.prototype._hash=function(){var d=Buffer$t.allocUnsafe(32);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d.writeInt32BE(this._h,28),d};var sha256$2=Sha256$1,inherits$k=inherits_browserExports$1,Sha256=sha256$2,Hash$3=hash$4,Buffer$s=safeBufferExports$1.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$3.call(this,64,56)}inherits$k(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var d=Buffer$s.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d};var sha224$1=Sha224,inherits$j=inherits_browserExports$1,Hash$2=hash$4,Buffer$r=safeBufferExports$1.Buffer,K$1=[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],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$2.call(this,128,112)}inherits$j(Sha512,Hash$2);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(d,b,_){return _^d&(b^_)}function maj(d,b,_){return d&b|_&(d|b)}function sigma0(d,b){return(d>>>28|b<<4)^(b>>>2|d<<30)^(b>>>7|d<<25)}function sigma1(d,b){return(d>>>14|b<<18)^(d>>>18|b<<14)^(b>>>9|d<<23)}function Gamma0(d,b){return(d>>>1|b<<31)^(d>>>8|b<<24)^d>>>7}function Gamma0l(d,b){return(d>>>1|b<<31)^(d>>>8|b<<24)^(d>>>7|b<<25)}function Gamma1(d,b){return(d>>>19|b<<13)^(b>>>29|d<<3)^d>>>6}function Gamma1l(d,b){return(d>>>19|b<<13)^(b>>>29|d<<3)^(d>>>6|b<<26)}function getCarry(d,b){return d>>>0<b>>>0?1:0}Sha512.prototype._update=function(d){for(var b=this._w,_=this._ah|0,$=this._bh|0,j=this._ch|0,_e=this._dh|0,et=this._eh|0,tt=this._fh|0,nt=this._gh|0,it=this._hh|0,rt=this._al|0,ot=this._bl|0,at=this._cl|0,st=this._dl|0,ht=this._el|0,yt=this._fl|0,It=this._gl|0,gt=this._hl|0,vt=0;vt<32;vt+=2)b[vt]=d.readInt32BE(vt*4),b[vt+1]=d.readInt32BE(vt*4+4);for(;vt<160;vt+=2){var Rt=b[vt-30],Tt=b[vt-15*2+1],Nt=Gamma0(Rt,Tt),Bt=Gamma0l(Tt,Rt);Rt=b[vt-2*2],Tt=b[vt-2*2+1];var Vt=Gamma1(Rt,Tt),Ut=Gamma1l(Tt,Rt),zt=b[vt-7*2],Qt=b[vt-7*2+1],jt=b[vt-16*2],mt=b[vt-16*2+1],pt=Bt+Qt|0,ct=Nt+zt+getCarry(pt,Bt)|0;pt=pt+Ut|0,ct=ct+Vt+getCarry(pt,Ut)|0,pt=pt+mt|0,ct=ct+jt+getCarry(pt,mt)|0,b[vt]=ct,b[vt+1]=pt}for(var dt=0;dt<160;dt+=2){ct=b[dt],pt=b[dt+1];var bt=maj(_,$,j),St=maj(rt,ot,at),xt=sigma0(_,rt),wt=sigma0(rt,_),lt=sigma1(et,ht),_t=sigma1(ht,et),$t=K$1[dt],Et=K$1[dt+1],Dt=Ch(et,tt,nt),er=Ch(ht,yt,It),qt=gt+_t|0,Pt=it+lt+getCarry(qt,gt)|0;qt=qt+er|0,Pt=Pt+Dt+getCarry(qt,er)|0,qt=qt+Et|0,Pt=Pt+$t+getCarry(qt,Et)|0,qt=qt+pt|0,Pt=Pt+ct+getCarry(qt,pt)|0;var Lt=wt+St|0,Jt=xt+bt+getCarry(Lt,wt)|0;it=nt,gt=It,nt=tt,It=yt,tt=et,yt=ht,ht=st+qt|0,et=_e+Pt+getCarry(ht,st)|0,_e=j,st=at,j=$,at=ot,$=_,ot=rt,rt=qt+Lt|0,_=Pt+Jt+getCarry(rt,qt)|0}this._al=this._al+rt|0,this._bl=this._bl+ot|0,this._cl=this._cl+at|0,this._dl=this._dl+st|0,this._el=this._el+ht|0,this._fl=this._fl+yt|0,this._gl=this._gl+It|0,this._hl=this._hl+gt|0,this._ah=this._ah+_+getCarry(this._al,rt)|0,this._bh=this._bh+$+getCarry(this._bl,ot)|0,this._ch=this._ch+j+getCarry(this._cl,at)|0,this._dh=this._dh+_e+getCarry(this._dl,st)|0,this._eh=this._eh+et+getCarry(this._el,ht)|0,this._fh=this._fh+tt+getCarry(this._fl,yt)|0,this._gh=this._gh+nt+getCarry(this._gl,It)|0,this._hh=this._hh+it+getCarry(this._hl,gt)|0};Sha512.prototype._hash=function(){var d=Buffer$r.allocUnsafe(64);function b(_,$,j){d.writeInt32BE(_,j),d.writeInt32BE($,j+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),b(this._gh,this._gl,48),b(this._hh,this._hl,56),d};var sha512$1=Sha512,inherits$i=inherits_browserExports$1,SHA512$2=sha512$1,Hash$1=hash$4,Buffer$q=safeBufferExports$1.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$1.call(this,128,112)}inherits$i(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var d=Buffer$q.allocUnsafe(48);function b(_,$,j){d.writeInt32BE(_,j),d.writeInt32BE($,j+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),d};var sha384$1=Sha384,exports=sha_js.exports=function(b){b=b.toLowerCase();var _=exports[b];if(!_)throw new Error(b+" is not supported (we accept pull requests)");return new _};exports.sha=sha$4;exports.sha1=sha1;exports.sha224=sha224$1;exports.sha256=sha256$2;exports.sha384=sha384$1;exports.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$h=inherits_browserExports$1;inherits$h(Stream,EE);Stream.Readable=require_stream_readable$1();Stream.Writable=require_stream_writable$1();Stream.Duplex=require_stream_duplex$1();Stream.Transform=require_stream_transform();Stream.PassThrough=require_stream_passthrough();Stream.finished=requireEndOfStream();Stream.pipeline=requirePipeline();Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(d,b){var _=this;function $(rt){d.writable&&d.write(rt)===!1&&_.pause&&_.pause()}_.on("data",$);function j(){_.readable&&_.resume&&_.resume()}d.on("drain",j),!d._isStdio&&(!b||b.end!==!1)&&(_.on("end",et),_.on("close",tt));var _e=!1;function et(){_e||(_e=!0,d.end())}function tt(){_e||(_e=!0,typeof d.destroy=="function"&&d.destroy())}function nt(rt){if(it(),EE.listenerCount(this,"error")===0)throw rt}_.on("error",nt),d.on("error",nt);function it(){_.removeListener("data",$),d.removeListener("drain",j),_.removeListener("end",et),_.removeListener("close",tt),_.removeListener("error",nt),d.removeListener("error",nt),_.removeListener("end",it),_.removeListener("close",it),d.removeListener("close",it)}return _.on("end",it),_.on("close",it),d.on("close",it),d.emit("pipe",_),d};var Buffer$p=safeBufferExports$1.Buffer,Transform$6=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$g=inherits_browserExports$1;function CipherBase$1(d){Transform$6.call(this),this.hashMode=typeof d=="string",this.hashMode?this[d]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$g(CipherBase$1,Transform$6);CipherBase$1.prototype.update=function(d,b,_){typeof d=="string"&&(d=Buffer$p.from(d,b));var $=this._update(d);return this.hashMode?this:(_&&($=this._toString($,_)),$)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(d,b,_){var $;try{this.hashMode?this._update(d):this.push(this._update(d))}catch(j){$=j}finally{_($)}};CipherBase$1.prototype._flush=function(d){var b;try{this.push(this.__final())}catch(_){b=_}d(b)};CipherBase$1.prototype._finalOrDigest=function(d){var b=this.__final()||Buffer$p.alloc(0);return d&&(b=this._toString(b,d,!0)),b};CipherBase$1.prototype._toString=function(d,b,_){if(this._decoder||(this._decoder=new StringDecoder(b),this._encoding=b),this._encoding!==b)throw new Error("can't switch encodings");var $=this._decoder.write(d);return _&&($+=this._decoder.end()),$};var cipherBase=CipherBase$1,inherits$f=inherits_browserExports$1,MD5$2=md5_js,RIPEMD160$3=ripemd160,sha$3=sha_jsExports,Base$5=cipherBase;function Hash(d){Base$5.call(this,"digest"),this._hash=d}inherits$f(Hash,Base$5);Hash.prototype._update=function(d){this._hash.update(d)};Hash.prototype._final=function(){return this._hash.digest()};var browser$c=function(b){return b=b.toLowerCase(),b==="md5"?new MD5$2:b==="rmd160"||b==="ripemd160"?new RIPEMD160$3:new Hash(sha$3(b))},inherits$e=inherits_browserExports$1,Buffer$o=safeBufferExports$1.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$o.alloc(128),blocksize=64;function Hmac$3(d,b){Base$4.call(this,"digest"),typeof b=="string"&&(b=Buffer$o.from(b)),this._alg=d,this._key=b,b.length>blocksize?b=d(b):b.length<blocksize&&(b=Buffer$o.concat([b,ZEROS$2],blocksize));for(var _=this._ipad=Buffer$o.allocUnsafe(blocksize),$=this._opad=Buffer$o.allocUnsafe(blocksize),j=0;j<blocksize;j++)_[j]=b[j]^54,$[j]=b[j]^92;this._hash=[_]}inherits$e(Hmac$3,Base$4);Hmac$3.prototype._update=function(d){this._hash.push(d)};Hmac$3.prototype._final=function(){var d=this._alg(Buffer$o.concat(this._hash));return this._alg(Buffer$o.concat([this._opad,d]))};var legacy=Hmac$3,MD5$1=md5_js,md5$2=function(d){return new MD5$1().update(d).digest()},inherits$d=inherits_browserExports$1,Legacy=legacy,Base$3=cipherBase,Buffer$n=safeBufferExports$1.Buffer,md5$1=md5$2,RIPEMD160$2=ripemd160,sha$2=sha_jsExports,ZEROS$1=Buffer$n.alloc(128);function Hmac$2(d,b){Base$3.call(this,"digest"),typeof b=="string"&&(b=Buffer$n.from(b));var _=d==="sha512"||d==="sha384"?128:64;if(this._alg=d,this._key=b,b.length>_){var $=d==="rmd160"?new RIPEMD160$2:sha$2(d);b=$.update(b).digest()}else b.length<_&&(b=Buffer$n.concat([b,ZEROS$1],_));for(var j=this._ipad=Buffer$n.allocUnsafe(_),_e=this._opad=Buffer$n.allocUnsafe(_),et=0;et<_;et++)j[et]=b[et]^54,_e[et]=b[et]^92;this._hash=d==="rmd160"?new RIPEMD160$2:sha$2(d),this._hash.update(j)}inherits$d(Hmac$2,Base$3);Hmac$2.prototype._update=function(d){this._hash.update(d)};Hmac$2.prototype._final=function(){var d=this._hash.digest(),b=this._alg==="rmd160"?new RIPEMD160$2:sha$2(this._alg);return b.update(this._opad).update(d).digest()};var browser$b=function(b,_){return b=b.toLowerCase(),b==="rmd160"||b==="ripemd160"?new Hmac$2("rmd160",_):b==="md5"?new Legacy(md5$1,_):new Hmac$2(b,_)};const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256$1={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"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:sha256$1,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"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,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos=require$$6,browser$a={},MAX_ALLOC=Math.pow(2,30)-1,precondition=function(d,b){if(typeof d!="number")throw new TypeError("Iterations not a number");if(d<0)throw new TypeError("Bad iterations");if(typeof b!="number")throw new TypeError("Key length not a number");if(b<0||b>MAX_ALLOC||b!==b)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process$1.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$m=safeBufferExports$1.Buffer,toBuffer$2=function(d,b,_){if(Buffer$m.isBuffer(d))return d;if(typeof d=="string")return Buffer$m.from(d,b);if(ArrayBuffer.isView(d))return Buffer$m.from(d.buffer);throw new TypeError(_+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$l=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer$2,ZEROS=Buffer$l.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(d,b,_){var $=getDigest(d),j=d==="sha512"||d==="sha384"?128:64;b.length>j?b=$(b):b.length<j&&(b=Buffer$l.concat([b,ZEROS],j));for(var _e=Buffer$l.allocUnsafe(j+sizes[d]),et=Buffer$l.allocUnsafe(j+sizes[d]),tt=0;tt<j;tt++)_e[tt]=b[tt]^54,et[tt]=b[tt]^92;var nt=Buffer$l.allocUnsafe(j+_+4);_e.copy(nt,0,0,j),this.ipad1=nt,this.ipad2=_e,this.opad=et,this.alg=d,this.blocksize=j,this.hash=$,this.size=sizes[d]}Hmac$1.prototype.run=function(d,b){d.copy(b,this.blocksize);var _=this.hash(b);return _.copy(this.opad,this.blocksize),this.hash(this.opad)};function getDigest(d){function b($){return sha$1(d).update($).digest()}function _($){return new RIPEMD160$1().update($).digest()}return d==="rmd160"||d==="ripemd160"?_:d==="md5"?md5:b}function pbkdf2(d,b,_,$,j){checkParameters$1(_,$),d=toBuffer$1(d,defaultEncoding$1,"Password"),b=toBuffer$1(b,defaultEncoding$1,"Salt"),j=j||"sha1";var _e=new Hmac$1(j,d,b.length),et=Buffer$l.allocUnsafe($),tt=Buffer$l.allocUnsafe(b.length+4);b.copy(tt,0,0,b.length);for(var nt=0,it=sizes[j],rt=Math.ceil($/it),ot=1;ot<=rt;ot++){tt.writeUInt32BE(ot,b.length);for(var at=_e.run(tt,_e.ipad1),st=at,ht=1;ht<_;ht++){st=_e.run(st,_e.ipad2);for(var yt=0;yt<it;yt++)at[yt]^=st[yt]}at.copy(et,nt),nt+=it}return et}var syncBrowser=pbkdf2,Buffer$k=safeBufferExports$1.Buffer,checkParameters=precondition,defaultEncoding=defaultEncoding_1,sync=syncBrowser,toBuffer=toBuffer$2,ZERO_BUF,subtle=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,toBrowser={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"},checks$1=[];function checkNative(d){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!subtle||!subtle.importKey||!subtle.deriveBits)return Promise.resolve(!1);if(checks$1[d]!==void 0)return checks$1[d];ZERO_BUF=ZERO_BUF||Buffer$k.alloc(8);var b=browserPbkdf2(ZERO_BUF,ZERO_BUF,10,128,d).then(function(){return!0}).catch(function(){return!1});return checks$1[d]=b,b}var nextTick$1;function getNextTick(){return nextTick$1||(commonjsGlobal.process&&commonjsGlobal.process.nextTick?nextTick$1=commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?nextTick$1=commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?nextTick$1=commonjsGlobal.setImmediate:nextTick$1=commonjsGlobal.setTimeout,nextTick$1)}function browserPbkdf2(d,b,_,$,j){return subtle.importKey("raw",d,{name:"PBKDF2"},!1,["deriveBits"]).then(function(_e){return subtle.deriveBits({name:"PBKDF2",salt:b,iterations:_,hash:{name:j}},_e,$<<3)}).then(function(_e){return Buffer$k.from(_e)})}function resolvePromise(d,b){d.then(function(_){getNextTick()(function(){b(null,_)})},function(_){getNextTick()(function(){b(_)})})}var async=function(d,b,_,$,j,_e){typeof j=="function"&&(_e=j,j=void 0),j=j||"sha1";var et=toBrowser[j.toLowerCase()];if(!et||typeof commonjsGlobal.Promise!="function"){getNextTick()(function(){var tt;try{tt=sync(d,b,_,$,j)}catch(nt){return _e(nt)}_e(null,tt)});return}if(checkParameters(_,$),d=toBuffer(d,defaultEncoding,"Password"),b=toBuffer(b,defaultEncoding,"Salt"),typeof _e!="function")throw new Error("No callback provided to pbkdf2");resolvePromise(checkNative(et).then(function(tt){return tt?browserPbkdf2(d,b,_,$,et):sync(d,b,_,$,j)}),_e)};browser$a.pbkdf2=async;browser$a.pbkdf2Sync=syncBrowser;var browser$9={},des$2={},utils$v={};utils$v.readUInt32BE=function(b,_){var $=b[0+_]<<24|b[1+_]<<16|b[2+_]<<8|b[3+_];return $>>>0};utils$v.writeUInt32BE=function(b,_,$){b[0+$]=_>>>24,b[1+$]=_>>>16&255,b[2+$]=_>>>8&255,b[3+$]=_&255};utils$v.ip=function(b,_,$,j){for(var _e=0,et=0,tt=6;tt>=0;tt-=2){for(var nt=0;nt<=24;nt+=8)_e<<=1,_e|=_>>>nt+tt&1;for(var nt=0;nt<=24;nt+=8)_e<<=1,_e|=b>>>nt+tt&1}for(var tt=6;tt>=0;tt-=2){for(var nt=1;nt<=25;nt+=8)et<<=1,et|=_>>>nt+tt&1;for(var nt=1;nt<=25;nt+=8)et<<=1,et|=b>>>nt+tt&1}$[j+0]=_e>>>0,$[j+1]=et>>>0};utils$v.rip=function(b,_,$,j){for(var _e=0,et=0,tt=0;tt<4;tt++)for(var nt=24;nt>=0;nt-=8)_e<<=1,_e|=_>>>nt+tt&1,_e<<=1,_e|=b>>>nt+tt&1;for(var tt=4;tt<8;tt++)for(var nt=24;nt>=0;nt-=8)et<<=1,et|=_>>>nt+tt&1,et<<=1,et|=b>>>nt+tt&1;$[j+0]=_e>>>0,$[j+1]=et>>>0};utils$v.pc1=function(b,_,$,j){for(var _e=0,et=0,tt=7;tt>=5;tt--){for(var nt=0;nt<=24;nt+=8)_e<<=1,_e|=_>>nt+tt&1;for(var nt=0;nt<=24;nt+=8)_e<<=1,_e|=b>>nt+tt&1}for(var nt=0;nt<=24;nt+=8)_e<<=1,_e|=_>>nt+tt&1;for(var tt=1;tt<=3;tt++){for(var nt=0;nt<=24;nt+=8)et<<=1,et|=_>>nt+tt&1;for(var nt=0;nt<=24;nt+=8)et<<=1,et|=b>>nt+tt&1}for(var nt=0;nt<=24;nt+=8)et<<=1,et|=b>>nt+tt&1;$[j+0]=_e>>>0,$[j+1]=et>>>0};utils$v.r28shl=function(b,_){return b<<_&268435455|b>>>28-_};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$v.pc2=function(b,_,$,j){for(var _e=0,et=0,tt=pc2table.length>>>1,nt=0;nt<tt;nt++)_e<<=1,_e|=b>>>pc2table[nt]&1;for(var nt=tt;nt<pc2table.length;nt++)et<<=1,et|=_>>>pc2table[nt]&1;$[j+0]=_e>>>0,$[j+1]=et>>>0};utils$v.expand=function(b,_,$){var j=0,_e=0;j=(b&1)<<5|b>>>27;for(var et=23;et>=15;et-=4)j<<=6,j|=b>>>et&63;for(var et=11;et>=3;et-=4)_e|=b>>>et&63,_e<<=6;_e|=(b&31)<<1|b>>>31,_[$+0]=j>>>0,_[$+1]=_e>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$v.substitute=function(b,_){for(var $=0,j=0;j<4;j++){var _e=b>>>18-j*6&63,et=sTable[j*64+_e];$<<=4,$|=et}for(var j=0;j<4;j++){var _e=_>>>18-j*6&63,et=sTable[4*64+j*64+_e];$<<=4,$|=et}return $>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$v.permute=function(b){for(var _=0,$=0;$<permuteTable.length;$++)_<<=1,_|=b>>>permuteTable[$]&1;return _>>>0};utils$v.padSplit=function(b,_,$){for(var j=b.toString(2);j.length<_;)j="0"+j;for(var _e=[],et=0;et<_;et+=$)_e.push(j.slice(et,et+$));return _e.join(" ")};var assert$i=minimalisticAssert;function Cipher$3(d){this.options=d,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=d.padding!==!1}var cipher=Cipher$3;Cipher$3.prototype._init=function(){};Cipher$3.prototype.update=function(b){return b.length===0?[]:this.type==="decrypt"?this._updateDecrypt(b):this._updateEncrypt(b)};Cipher$3.prototype._buffer=function(b,_){for(var $=Math.min(this.buffer.length-this.bufferOff,b.length-_),j=0;j<$;j++)this.buffer[this.bufferOff+j]=b[_+j];return this.bufferOff+=$,$};Cipher$3.prototype._flushBuffer=function(b,_){return this._update(this.buffer,0,b,_),this.bufferOff=0,this.blockSize};Cipher$3.prototype._updateEncrypt=function(b){var _=0,$=0,j=(this.bufferOff+b.length)/this.blockSize|0,_e=new Array(j*this.blockSize);this.bufferOff!==0&&(_+=this._buffer(b,_),this.bufferOff===this.buffer.length&&($+=this._flushBuffer(_e,$)));for(var et=b.length-(b.length-_)%this.blockSize;_<et;_+=this.blockSize)this._update(b,_,_e,$),$+=this.blockSize;for(;_<b.length;_++,this.bufferOff++)this.buffer[this.bufferOff]=b[_];return _e};Cipher$3.prototype._updateDecrypt=function(b){for(var _=0,$=0,j=Math.ceil((this.bufferOff+b.length)/this.blockSize)-1,_e=new Array(j*this.blockSize);j>0;j--)_+=this._buffer(b,_),$+=this._flushBuffer(_e,$);return _+=this._buffer(b,_),_e};Cipher$3.prototype.final=function(b){var _;b&&(_=this.update(b));var $;return this.type==="encrypt"?$=this._finalEncrypt():$=this._finalDecrypt(),_?_.concat($):$};Cipher$3.prototype._pad=function(b,_){if(_===0)return!1;for(;_<b.length;)b[_++]=0;return!0};Cipher$3.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var b=new Array(this.blockSize);return this._update(this.buffer,0,b,0),b};Cipher$3.prototype._unpad=function(b){return b};Cipher$3.prototype._finalDecrypt=function(){assert$i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var b=new Array(this.blockSize);return this._flushBuffer(b,0),this._unpad(b)};var assert$h=minimalisticAssert,inherits$c=inherits_browserExports$1,utils$u=utils$v,Cipher$2=cipher;function DESState(){this.tmp=new Array(2),this.keys=null}function DES$3(d){Cipher$2.call(this,d);var b=new DESState;this._desState=b,this.deriveKeys(b,d.key)}inherits$c(DES$3,Cipher$2);var des$1=DES$3;DES$3.create=function(b){return new DES$3(b)};var shiftTable=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];DES$3.prototype.deriveKeys=function(b,_){b.keys=new Array(16*2),assert$h.equal(_.length,this.blockSize,"Invalid key length");var $=utils$u.readUInt32BE(_,0),j=utils$u.readUInt32BE(_,4);utils$u.pc1($,j,b.tmp,0),$=b.tmp[0],j=b.tmp[1];for(var _e=0;_e<b.keys.length;_e+=2){var et=shiftTable[_e>>>1];$=utils$u.r28shl($,et),j=utils$u.r28shl(j,et),utils$u.pc2($,j,b.keys,_e)}};DES$3.prototype._update=function(b,_,$,j){var _e=this._desState,et=utils$u.readUInt32BE(b,_),tt=utils$u.readUInt32BE(b,_+4);utils$u.ip(et,tt,_e.tmp,0),et=_e.tmp[0],tt=_e.tmp[1],this.type==="encrypt"?this._encrypt(_e,et,tt,_e.tmp,0):this._decrypt(_e,et,tt,_e.tmp,0),et=_e.tmp[0],tt=_e.tmp[1],utils$u.writeUInt32BE($,et,j),utils$u.writeUInt32BE($,tt,j+4)};DES$3.prototype._pad=function(b,_){if(this.padding===!1)return!1;for(var $=b.length-_,j=_;j<b.length;j++)b[j]=$;return!0};DES$3.prototype._unpad=function(b){if(this.padding===!1)return b;for(var _=b[b.length-1],$=b.length-_;$<b.length;$++)assert$h.equal(b[$],_);return b.slice(0,b.length-_)};DES$3.prototype._encrypt=function(b,_,$,j,_e){for(var et=_,tt=$,nt=0;nt<b.keys.length;nt+=2){var it=b.keys[nt],rt=b.keys[nt+1];utils$u.expand(tt,b.tmp,0),it^=b.tmp[0],rt^=b.tmp[1];var ot=utils$u.substitute(it,rt),at=utils$u.permute(ot),st=tt;tt=(et^at)>>>0,et=st}utils$u.rip(tt,et,j,_e)};DES$3.prototype._decrypt=function(b,_,$,j,_e){for(var et=$,tt=_,nt=b.keys.length-2;nt>=0;nt-=2){var it=b.keys[nt],rt=b.keys[nt+1];utils$u.expand(et,b.tmp,0),it^=b.tmp[0],rt^=b.tmp[1];var ot=utils$u.substitute(it,rt),at=utils$u.permute(ot),st=et;et=(tt^at)>>>0,tt=st}utils$u.rip(et,tt,j,_e)};var cbc$1={},assert$g=minimalisticAssert,inherits$b=inherits_browserExports$1,proto={};function CBCState(d){assert$g.equal(d.length,8,"Invalid IV length"),this.iv=new Array(8);for(var b=0;b<this.iv.length;b++)this.iv[b]=d[b]}function instantiate(d){function b(_e){d.call(this,_e),this._cbcInit()}inherits$b(b,d);for(var _=Object.keys(proto),$=0;$<_.length;$++){var j=_[$];b.prototype[j]=proto[j]}return b.create=function(et){return new b(et)},b}cbc$1.instantiate=instantiate;proto._cbcInit=function(){var b=new CBCState(this.options.iv);this._cbcState=b};proto._update=function(b,_,$,j){var _e=this._cbcState,et=this.constructor.super_.prototype,tt=_e.iv;if(this.type==="encrypt"){for(var nt=0;nt<this.blockSize;nt++)tt[nt]^=b[_+nt];et._update.call(this,tt,0,$,j);for(var nt=0;nt<this.blockSize;nt++)tt[nt]=$[j+nt]}else{et._update.call(this,b,_,$,j);for(var nt=0;nt<this.blockSize;nt++)$[j+nt]^=tt[nt];for(var nt=0;nt<this.blockSize;nt++)tt[nt]=b[_+nt]}};var assert$f=minimalisticAssert,inherits$a=inherits_browserExports$1,Cipher$1=cipher,DES$2=des$1;function EDEState(d,b){assert$f.equal(b.length,24,"Invalid key length");var _=b.slice(0,8),$=b.slice(8,16),j=b.slice(16,24);d==="encrypt"?this.ciphers=[DES$2.create({type:"encrypt",key:_}),DES$2.create({type:"decrypt",key:$}),DES$2.create({type:"encrypt",key:j})]:this.ciphers=[DES$2.create({type:"decrypt",key:j}),DES$2.create({type:"encrypt",key:$}),DES$2.create({type:"decrypt",key:_})]}function EDE(d){Cipher$1.call(this,d);var b=new EDEState(this.type,this.options.key);this._edeState=b}inherits$a(EDE,Cipher$1);var ede=EDE;EDE.create=function(b){return new EDE(b)};EDE.prototype._update=function(b,_,$,j){var _e=this._edeState;_e.ciphers[0]._update(b,_,$,j),_e.ciphers[1]._update($,j,$,j),_e.ciphers[2]._update($,j,$,j)};EDE.prototype._pad=DES$2.prototype._pad;EDE.prototype._unpad=DES$2.prototype._unpad;des$2.utils=utils$v;des$2.Cipher=cipher;des$2.DES=des$1;des$2.CBC=cbc$1;des$2.EDE=ede;var CipherBase=cipherBase,des=des$2,inherits$9=inherits_browserExports$1,Buffer$j=safeBufferExports$1.Buffer,modes$3={"des-ede3-cbc":des.CBC.instantiate(des.EDE),"des-ede3":des.EDE,"des-ede-cbc":des.CBC.instantiate(des.EDE),"des-ede":des.EDE,"des-cbc":des.CBC.instantiate(des.DES),"des-ecb":des.DES};modes$3.des=modes$3["des-cbc"];modes$3.des3=modes$3["des-ede3-cbc"];var browserifyDes=DES$1;inherits$9(DES$1,CipherBase);function DES$1(d){CipherBase.call(this);var b=d.mode.toLowerCase(),_=modes$3[b],$;d.decrypt?$="decrypt":$="encrypt";var j=d.key;Buffer$j.isBuffer(j)||(j=Buffer$j.from(j)),(b==="des-ede"||b==="des-ede-cbc")&&(j=Buffer$j.concat([j,j.slice(0,8)]));var _e=d.iv;Buffer$j.isBuffer(_e)||(_e=Buffer$j.from(_e)),this._des=_.create({key:j,iv:_e,type:$})}DES$1.prototype._update=function(d){return Buffer$j.from(this._des.update(d))};DES$1.prototype._final=function(){return Buffer$j.from(this._des.final())};var browser$8={},encrypter={},ecb={};ecb.encrypt=function(d,b){return d._cipher.encryptBlock(b)};ecb.decrypt=function(d,b){return d._cipher.decryptBlock(b)};var cbc={},bufferXor=function(b,_){for(var $=Math.min(b.length,_.length),j=new Buffer$D($),_e=0;_e<$;++_e)j[_e]=b[_e]^_[_e];return j},xor$7=bufferXor;cbc.encrypt=function(d,b){var _=xor$7(b,d._prev);return d._prev=d._cipher.encryptBlock(_),d._prev};cbc.decrypt=function(d,b){var _=d._prev;d._prev=b;var $=d._cipher.decryptBlock(b);return xor$7($,_)};var cfb={},Buffer$i=safeBufferExports$1.Buffer,xor$6=bufferXor;function encryptStart(d,b,_){var $=b.length,j=xor$6(b,d._cache);return d._cache=d._cache.slice($),d._prev=Buffer$i.concat([d._prev,_?b:j]),j}cfb.encrypt=function(d,b,_){for(var $=Buffer$i.allocUnsafe(0),j;b.length;)if(d._cache.length===0&&(d._cache=d._cipher.encryptBlock(d._prev),d._prev=Buffer$i.allocUnsafe(0)),d._cache.length<=b.length)j=d._cache.length,$=Buffer$i.concat([$,encryptStart(d,b.slice(0,j),_)]),b=b.slice(j);else{$=Buffer$i.concat([$,encryptStart(d,b,_)]);break}return $};var cfb8={},Buffer$h=safeBufferExports$1.Buffer;function encryptByte$1(d,b,_){var $=d._cipher.encryptBlock(d._prev),j=$[0]^b;return d._prev=Buffer$h.concat([d._prev.slice(1),Buffer$h.from([_?b:j])]),j}cfb8.encrypt=function(d,b,_){for(var $=b.length,j=Buffer$h.allocUnsafe($),_e=-1;++_e<$;)j[_e]=encryptByte$1(d,b[_e],_);return j};var cfb1={},Buffer$g=safeBufferExports$1.Buffer;function encryptByte(d,b,_){for(var $,j=-1,_e=8,et=0,tt,nt;++j<_e;)$=d._cipher.encryptBlock(d._prev),tt=b&1<<7-j?128:0,nt=$[0]^tt,et+=(nt&128)>>j%8,d._prev=shiftIn(d._prev,_?tt:nt);return et}function shiftIn(d,b){var _=d.length,$=-1,j=Buffer$g.allocUnsafe(d.length);for(d=Buffer$g.concat([d,Buffer$g.from([b])]);++$<_;)j[$]=d[$]<<1|d[$+1]>>7;return j}cfb1.encrypt=function(d,b,_){for(var $=b.length,j=Buffer$g.allocUnsafe($),_e=-1;++_e<$;)j[_e]=encryptByte(d,b[_e],_);return j};var ofb={},xor$5=bufferXor;function getBlock$1(d){return d._prev=d._cipher.encryptBlock(d._prev),d._prev}ofb.encrypt=function(d,b){for(;d._cache.length<b.length;)d._cache=Buffer$D.concat([d._cache,getBlock$1(d)]);var _=d._cache.slice(0,b.length);return d._cache=d._cache.slice(b.length),xor$5(b,_)};var ctr={};function incr32$2(d){for(var b=d.length,_;b--;)if(_=d.readUInt8(b),_===255)d.writeUInt8(0,b);else{_++,d.writeUInt8(_,b);break}}var incr32_1=incr32$2,xor$4=bufferXor,Buffer$f=safeBufferExports$1.Buffer,incr32$1=incr32_1;function getBlock(d){var b=d._cipher.encryptBlockRaw(d._prev);return incr32$1(d._prev),b}var blockSize=16;ctr.encrypt=function(d,b){var _=Math.ceil(b.length/blockSize),$=d._cache.length;d._cache=Buffer$f.concat([d._cache,Buffer$f.allocUnsafe(_*blockSize)]);for(var j=0;j<_;j++){var _e=getBlock(d),et=$+j*blockSize;d._cache.writeUInt32BE(_e[0],et+0),d._cache.writeUInt32BE(_e[1],et+4),d._cache.writeUInt32BE(_e[2],et+8),d._cache.writeUInt32BE(_e[3],et+12)}var tt=d._cache.slice(0,b.length);return d._cache=d._cache.slice(b.length),xor$4(b,tt)};const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modeModules={ECB:ecb,CBC:cbc,CFB:cfb,CFB8:cfb8,CFB1:cfb1,OFB:ofb,CTR:ctr,GCM:ctr},modes$2=require$$2;for(var key$2 in modes$2)modes$2[key$2].module=modeModules[modes$2[key$2].mode];var modes_1=modes$2,aes$5={},Buffer$e=safeBufferExports$1.Buffer;function asUInt32Array(d){Buffer$e.isBuffer(d)||(d=Buffer$e.from(d));for(var b=d.length/4|0,_=new Array(b),$=0;$<b;$++)_[$]=d.readUInt32BE($*4);return _}function scrubVec(d){for(var b=0;b<d.length;d++)d[b]=0}function cryptBlock(d,b,_,$,j){for(var _e=_[0],et=_[1],tt=_[2],nt=_[3],it=d[0]^b[0],rt=d[1]^b[1],ot=d[2]^b[2],at=d[3]^b[3],st,ht,yt,It,gt=4,vt=1;vt<j;vt++)st=_e[it>>>24]^et[rt>>>16&255]^tt[ot>>>8&255]^nt[at&255]^b[gt++],ht=_e[rt>>>24]^et[ot>>>16&255]^tt[at>>>8&255]^nt[it&255]^b[gt++],yt=_e[ot>>>24]^et[at>>>16&255]^tt[it>>>8&255]^nt[rt&255]^b[gt++],It=_e[at>>>24]^et[it>>>16&255]^tt[rt>>>8&255]^nt[ot&255]^b[gt++],it=st,rt=ht,ot=yt,at=It;return st=($[it>>>24]<<24|$[rt>>>16&255]<<16|$[ot>>>8&255]<<8|$[at&255])^b[gt++],ht=($[rt>>>24]<<24|$[ot>>>16&255]<<16|$[at>>>8&255]<<8|$[it&255])^b[gt++],yt=($[ot>>>24]<<24|$[at>>>16&255]<<16|$[it>>>8&255]<<8|$[rt&255])^b[gt++],It=($[at>>>24]<<24|$[it>>>16&255]<<16|$[rt>>>8&255]<<8|$[ot&255])^b[gt++],st=st>>>0,ht=ht>>>0,yt=yt>>>0,It=It>>>0,[st,ht,yt,It]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var d=new Array(256),b=0;b<256;b++)b<128?d[b]=b<<1:d[b]=b<<1^283;for(var _=[],$=[],j=[[],[],[],[]],_e=[[],[],[],[]],et=0,tt=0,nt=0;nt<256;++nt){var it=tt^tt<<1^tt<<2^tt<<3^tt<<4;it=it>>>8^it&255^99,_[et]=it,$[it]=et;var rt=d[et],ot=d[rt],at=d[ot],st=d[it]*257^it*16843008;j[0][et]=st<<24|st>>>8,j[1][et]=st<<16|st>>>16,j[2][et]=st<<8|st>>>24,j[3][et]=st,st=at*16843009^ot*65537^rt*257^et*16843008,_e[0][it]=st<<24|st>>>8,_e[1][it]=st<<16|st>>>16,_e[2][it]=st<<8|st>>>24,_e[3][it]=st,et===0?et=tt=1:(et=rt^d[d[d[at^rt]]],tt^=d[d[tt]])}return{SBOX:_,INV_SBOX:$,SUB_MIX:j,INV_SUB_MIX:_e}}();function AES(d){this._key=asUInt32Array(d),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var d=this._key,b=d.length,_=b+6,$=(_+1)*4,j=[],_e=0;_e<b;_e++)j[_e]=d[_e];for(_e=b;_e<$;_e++){var et=j[_e-1];_e%b===0?(et=et<<8|et>>>24,et=G.SBOX[et>>>24]<<24|G.SBOX[et>>>16&255]<<16|G.SBOX[et>>>8&255]<<8|G.SBOX[et&255],et^=RCON[_e/b|0]<<24):b>6&&_e%b===4&&(et=G.SBOX[et>>>24]<<24|G.SBOX[et>>>16&255]<<16|G.SBOX[et>>>8&255]<<8|G.SBOX[et&255]),j[_e]=j[_e-b]^et}for(var tt=[],nt=0;nt<$;nt++){var it=$-nt,rt=j[it-(nt%4?0:4)];nt<4||it<=4?tt[nt]=rt:tt[nt]=G.INV_SUB_MIX[0][G.SBOX[rt>>>24]]^G.INV_SUB_MIX[1][G.SBOX[rt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[rt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[rt&255]]}this._nRounds=_,this._keySchedule=j,this._invKeySchedule=tt};AES.prototype.encryptBlockRaw=function(d){return d=asUInt32Array(d),cryptBlock(d,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(d){var b=this.encryptBlockRaw(d),_=Buffer$e.allocUnsafe(16);return _.writeUInt32BE(b[0],0),_.writeUInt32BE(b[1],4),_.writeUInt32BE(b[2],8),_.writeUInt32BE(b[3],12),_};AES.prototype.decryptBlock=function(d){d=asUInt32Array(d);var b=d[1];d[1]=d[3],d[3]=b;var _=cryptBlock(d,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),$=Buffer$e.allocUnsafe(16);return $.writeUInt32BE(_[0],0),$.writeUInt32BE(_[3],4),$.writeUInt32BE(_[2],8),$.writeUInt32BE(_[1],12),$};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$d=safeBufferExports$1.Buffer,ZEROES=Buffer$d.alloc(16,0);function toArray$1(d){return[d.readUInt32BE(0),d.readUInt32BE(4),d.readUInt32BE(8),d.readUInt32BE(12)]}function fromArray(d){var b=Buffer$d.allocUnsafe(16);return b.writeUInt32BE(d[0]>>>0,0),b.writeUInt32BE(d[1]>>>0,4),b.writeUInt32BE(d[2]>>>0,8),b.writeUInt32BE(d[3]>>>0,12),b}function GHASH$1(d){this.h=d,this.state=Buffer$d.alloc(16,0),this.cache=Buffer$d.allocUnsafe(0)}GHASH$1.prototype.ghash=function(d){for(var b=-1;++b<d.length;)this.state[b]^=d[b];this._multiply()};GHASH$1.prototype._multiply=function(){for(var d=toArray$1(this.h),b=[0,0,0,0],_,$,j,_e=-1;++_e<128;){for($=(this.state[~~(_e/8)]&1<<7-_e%8)!==0,$&&(b[0]^=d[0],b[1]^=d[1],b[2]^=d[2],b[3]^=d[3]),j=(d[3]&1)!==0,_=3;_>0;_--)d[_]=d[_]>>>1|(d[_-1]&1)<<31;d[0]=d[0]>>>1,j&&(d[0]=d[0]^225<<24)}this.state=fromArray(b)};GHASH$1.prototype.update=function(d){this.cache=Buffer$d.concat([this.cache,d]);for(var b;this.cache.length>=16;)b=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(b)};GHASH$1.prototype.final=function(d,b){return this.cache.length&&this.ghash(Buffer$d.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,d,0,b])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$c=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$8=inherits_browserExports$1,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(d,b){var _=0;d.length!==b.length&&_++;for(var $=Math.min(d.length,b.length),j=0;j<$;++j)_+=d[j]^b[j];return _}function calcIv(d,b,_){if(b.length===12)return d._finID=Buffer$c.concat([b,Buffer$c.from([0,0,0,1])]),Buffer$c.concat([b,Buffer$c.from([0,0,0,2])]);var $=new GHASH(_),j=b.length,_e=j%16;$.update(b),_e&&(_e=16-_e,$.update(Buffer$c.alloc(_e,0))),$.update(Buffer$c.alloc(8,0));var et=j*8,tt=Buffer$c.alloc(8);tt.writeUIntBE(et,0,8),$.update(tt),d._finID=$.state;var nt=Buffer$c.from(d._finID);return incr32(nt),nt}function StreamCipher$3(d,b,_,$){Transform$5.call(this);var j=Buffer$c.alloc(4,0);this._cipher=new aes$4.AES(b);var _e=this._cipher.encryptBlock(j);this._ghash=new GHASH(_e),_=calcIv(this,_,_e),this._prev=Buffer$c.from(_),this._cache=Buffer$c.allocUnsafe(0),this._secCache=Buffer$c.allocUnsafe(0),this._decrypt=$,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}inherits$8(StreamCipher$3,Transform$5);StreamCipher$3.prototype._update=function(d){if(!this._called&&this._alen){var b=16-this._alen%16;b<16&&(b=Buffer$c.alloc(b,0),this._ghash.update(b))}this._called=!0;var _=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(_),this._len+=d.length,_};StreamCipher$3.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=xor$3(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&xorTest(d,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=d,this._cipher.scrub()};StreamCipher$3.prototype.getAuthTag=function(){if(this._decrypt||!Buffer$c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};StreamCipher$3.prototype.setAuthTag=function(b){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=b};StreamCipher$3.prototype.setAAD=function(b){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(b),this._alen+=b.length};var authCipher=StreamCipher$3,aes$3=aes$5,Buffer$b=safeBufferExports$1.Buffer,Transform$4=cipherBase,inherits$7=inherits_browserExports$1;function StreamCipher$2(d,b,_,$){Transform$4.call(this),this._cipher=new aes$3.AES(b),this._prev=Buffer$b.from(_),this._cache=Buffer$b.allocUnsafe(0),this._secCache=Buffer$b.allocUnsafe(0),this._decrypt=$,this._mode=d}inherits$7(StreamCipher$2,Transform$4);StreamCipher$2.prototype._update=function(d){return this._mode.encrypt(this,d,this._decrypt)};StreamCipher$2.prototype._final=function(){this._cipher.scrub()};var streamCipher=StreamCipher$2,Buffer$a=safeBufferExports$1.Buffer,MD5=md5_js;function EVP_BytesToKey(d,b,_,$){if(Buffer$a.isBuffer(d)||(d=Buffer$a.from(d,"binary")),b&&(Buffer$a.isBuffer(b)||(b=Buffer$a.from(b,"binary")),b.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var j=_/8,_e=Buffer$a.alloc(j),et=Buffer$a.alloc($||0),tt=Buffer$a.alloc(0);j>0||$>0;){var nt=new MD5;nt.update(tt),nt.update(d),b&&nt.update(b),tt=nt.digest();var it=0;if(j>0){var rt=_e.length-j;it=Math.min(j,tt.length),tt.copy(_e,rt,0,it),j-=it}if(it<tt.length&&$>0){var ot=et.length-$,at=Math.min($,tt.length-it);tt.copy(et,ot,it,it+at),$-=at}}return tt.fill(0),{key:_e,iv:et}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$9=safeBufferExports$1.Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$6=inherits_browserExports$1;function Cipher(d,b,_){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(b),this._prev=Buffer$9.from(_),this._mode=d,this._autopadding=!0}inherits$6(Cipher,Transform$3);Cipher.prototype._update=function(d){this._cache.add(d);for(var b,_,$=[];b=this._cache.get();)_=this._mode.encrypt(this,b),$.push(_);return Buffer$9.concat($)};var PADDING=Buffer$9.alloc(16,16);Cipher.prototype._final=function(){var d=this._cache.flush();if(this._autopadding)return d=this._mode.encrypt(this,d),this._cipher.scrub(),d;if(!d.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(d){return this._autopadding=!!d,this};function Splitter$1(){this.cache=Buffer$9.allocUnsafe(0)}Splitter$1.prototype.add=function(d){this.cache=Buffer$9.concat([this.cache,d])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var d=this.cache.slice(0,16);return this.cache=this.cache.slice(16),d}return null};Splitter$1.prototype.flush=function(){for(var d=16-this.cache.length,b=Buffer$9.allocUnsafe(d),_=-1;++_<d;)b.writeUInt8(d,_);return Buffer$9.concat([this.cache,b])};function createCipheriv$1(d,b,_){var $=MODES$1[d.toLowerCase()];if(!$)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=Buffer$9.from(b)),b.length!==$.key/8)throw new TypeError("invalid key length "+b.length);if(typeof _=="string"&&(_=Buffer$9.from(_)),$.mode!=="GCM"&&_.length!==$.iv)throw new TypeError("invalid iv length "+_.length);return $.type==="stream"?new StreamCipher$1($.module,b,_):$.type==="auth"?new AuthCipher$1($.module,b,_):new Cipher($.module,b,_)}function createCipher$1(d,b){var _=MODES$1[d.toLowerCase()];if(!_)throw new TypeError("invalid suite type");var $=ebtk$2(b,!1,_.key,_.iv);return createCipheriv$1(d,$.key,$.iv)}encrypter.createCipheriv=createCipheriv$1;encrypter.createCipher=createCipher$1;var decrypter={},AuthCipher=authCipher,Buffer$8=safeBufferExports$1.Buffer,MODES=modes_1,StreamCipher=streamCipher,Transform$2=cipherBase,aes$1=aes$5,ebtk$1=evp_bytestokey,inherits$5=inherits_browserExports$1;function Decipher(d,b,_){Transform$2.call(this),this._cache=new Splitter,this._last=void 0,this._cipher=new aes$1.AES(b),this._prev=Buffer$8.from(_),this._mode=d,this._autopadding=!0}inherits$5(Decipher,Transform$2);Decipher.prototype._update=function(d){this._cache.add(d);for(var b,_,$=[];b=this._cache.get(this._autopadding);)_=this._mode.decrypt(this,b),$.push(_);return Buffer$8.concat($)};Decipher.prototype._final=function(){var d=this._cache.flush();if(this._autopadding)return unpad(this._mode.decrypt(this,d));if(d)throw new Error("data not multiple of block length")};Decipher.prototype.setAutoPadding=function(d){return this._autopadding=!!d,this};function Splitter(){this.cache=Buffer$8.allocUnsafe(0)}Splitter.prototype.add=function(d){this.cache=Buffer$8.concat([this.cache,d])};Splitter.prototype.get=function(d){var b;if(d){if(this.cache.length>16)return b=this.cache.slice(0,16),this.cache=this.cache.slice(16),b}else if(this.cache.length>=16)return b=this.cache.slice(0,16),this.cache=this.cache.slice(16),b;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(d){var b=d[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var _=-1;++_<b;)if(d[_+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return d.slice(0,16-b)}function createDecipheriv$1(d,b,_){var $=MODES[d.toLowerCase()];if(!$)throw new TypeError("invalid suite type");if(typeof _=="string"&&(_=Buffer$8.from(_)),$.mode!=="GCM"&&_.length!==$.iv)throw new TypeError("invalid iv length "+_.length);if(typeof b=="string"&&(b=Buffer$8.from(b)),b.length!==$.key/8)throw new TypeError("invalid key length "+b.length);return $.type==="stream"?new StreamCipher($.module,b,_,!0):$.type==="auth"?new AuthCipher($.module,b,_,!0):new Decipher($.module,b,_)}function createDecipher$1(d,b){var _=MODES[d.toLowerCase()];if(!_)throw new TypeError("invalid suite type");var $=ebtk$1(b,!1,_.key,_.iv);return createDecipheriv$1(d,$.key,$.iv)}decrypter.createDecipher=createDecipher$1;decrypter.createDecipheriv=createDecipheriv$1;var ciphers$2=encrypter,deciphers=decrypter,modes$1=require$$2;function getCiphers$1(){return Object.keys(modes$1)}browser$8.createCipher=browser$8.Cipher=ciphers$2.createCipher;browser$8.createCipheriv=browser$8.Cipheriv=ciphers$2.createCipheriv;browser$8.createDecipher=browser$8.Decipher=deciphers.createDecipher;browser$8.createDecipheriv=browser$8.Decipheriv=deciphers.createDecipheriv;browser$8.listCiphers=browser$8.getCiphers=getCiphers$1;var modes={};(function(d){d["des-ecb"]={key:8,iv:0},d["des-cbc"]=d.des={key:8,iv:8},d["des-ede3-cbc"]=d.des3={key:24,iv:8},d["des-ede3"]={key:24,iv:0},d["des-ede-cbc"]={key:16,iv:8},d["des-ede"]={key:16,iv:0}})(modes);var DES=browserifyDes,aes=browser$8,aesModes=modes_1,desModes=modes,ebtk=evp_bytestokey;function createCipher(d,b){d=d.toLowerCase();var _,$;if(aesModes[d])_=aesModes[d].key,$=aesModes[d].iv;else if(desModes[d])_=desModes[d].key*8,$=desModes[d].iv;else throw new TypeError("invalid suite type");var j=ebtk(b,!1,_,$);return createCipheriv(d,j.key,j.iv)}function createDecipher(d,b){d=d.toLowerCase();var _,$;if(aesModes[d])_=aesModes[d].key,$=aesModes[d].iv;else if(desModes[d])_=desModes[d].key*8,$=desModes[d].iv;else throw new TypeError("invalid suite type");var j=ebtk(b,!1,_,$);return createDecipheriv(d,j.key,j.iv)}function createCipheriv(d,b,_){if(d=d.toLowerCase(),aesModes[d])return aes.createCipheriv(d,b,_);if(desModes[d])return new DES({key:b,iv:_,mode:d});throw new TypeError("invalid suite type")}function createDecipheriv(d,b,_){if(d=d.toLowerCase(),aesModes[d])return aes.createDecipheriv(d,b,_);if(desModes[d])return new DES({key:b,iv:_,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}function getCiphers(){return Object.keys(desModes).concat(aes.getCiphers())}browser$9.createCipher=browser$9.Cipher=createCipher;browser$9.createCipheriv=browser$9.Cipheriv=createCipheriv;browser$9.createDecipher=browser$9.Decipher=createDecipher;browser$9.createDecipheriv=browser$9.Decipheriv=createDecipheriv;browser$9.listCiphers=browser$9.getCiphers=getCiphers;var browser$7={},mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var d=bnExports$1,b=requireBrorand();function _($){this.rand=$||new b.Rand}return mr=_,_.create=function(j){return new _(j)},_.prototype._randbelow=function(j){var _e=j.bitLength(),et=Math.ceil(_e/8);do var tt=new d(this.rand.generate(et));while(tt.cmp(j)>=0);return tt},_.prototype._randrange=function(j,_e){var et=_e.sub(j);return j.add(this._randbelow(et))},_.prototype.test=function(j,_e,et){var tt=j.bitLength(),nt=d.mont(j),it=new d(1).toRed(nt);_e||(_e=Math.max(1,tt/48|0));for(var rt=j.subn(1),ot=0;!rt.testn(ot);ot++);for(var at=j.shrn(ot),st=rt.toRed(nt),ht=!0;_e>0;_e--){var yt=this._randrange(new d(2),rt);et&&et(yt);var It=yt.toRed(nt).redPow(at);if(!(It.cmp(it)===0||It.cmp(st)===0)){for(var gt=1;gt<ot;gt++){if(It=It.redSqr(),It.cmp(it)===0)return!1;if(It.cmp(st)===0)break}if(gt===ot)return!1}}return ht},_.prototype.getDivisor=function(j,_e){var et=j.bitLength(),tt=d.mont(j),nt=new d(1).toRed(tt);_e||(_e=Math.max(1,et/48|0));for(var it=j.subn(1),rt=0;!it.testn(rt);rt++);for(var ot=j.shrn(rt),at=it.toRed(tt);_e>0;_e--){var st=this._randrange(new d(2),it),ht=j.gcd(st);if(ht.cmpn(1)!==0)return ht;var yt=st.toRed(tt).redPow(ot);if(!(yt.cmp(nt)===0||yt.cmp(at)===0)){for(var It=1;It<rt;It++){if(yt=yt.redSqr(),yt.cmp(nt)===0)return yt.fromRed().subn(1).gcd(j);if(yt.cmp(at)===0)break}if(It===rt)return yt=yt.redSqr(),yt.fromRed().subn(1).gcd(j)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var d=browserExports;generatePrime=It,It.simpleSieve=ht,It.fermatTest=yt;var b=bnExports$1,_=new b(24),$=requireMr(),j=new $,_e=new b(1),et=new b(2),tt=new b(5);new b(16),new b(8);var nt=new b(10),it=new b(3);new b(7);var rt=new b(11),ot=new b(4);new b(12);var at=null;function st(){if(at!==null)return at;var gt=1048576,vt=[];vt[0]=2;for(var Rt=1,Tt=3;Tt<gt;Tt+=2){for(var Nt=Math.ceil(Math.sqrt(Tt)),Bt=0;Bt<Rt&&vt[Bt]<=Nt&&Tt%vt[Bt]!==0;Bt++);Rt!==Bt&&vt[Bt]<=Nt||(vt[Rt++]=Tt)}return at=vt,vt}function ht(gt){for(var vt=st(),Rt=0;Rt<vt.length;Rt++)if(gt.modn(vt[Rt])===0)return gt.cmpn(vt[Rt])===0;return!0}function yt(gt){var vt=b.mont(gt);return et.toRed(vt).redPow(gt.subn(1)).fromRed().cmpn(1)===0}function It(gt,vt){if(gt<16)return vt===2||vt===5?new b([140,123]):new b([140,39]);vt=new b(vt);for(var Rt,Tt;;){for(Rt=new b(d(Math.ceil(gt/8)));Rt.bitLength()>gt;)Rt.ishrn(1);if(Rt.isEven()&&Rt.iadd(_e),Rt.testn(1)||Rt.iadd(et),vt.cmp(et)){if(!vt.cmp(tt))for(;Rt.mod(nt).cmp(it);)Rt.iadd(ot)}else for(;Rt.mod(_).cmp(rt);)Rt.iadd(ot);if(Tt=Rt.shrn(1),ht(Tt)&&ht(Rt)&&yt(Tt)&&yt(Rt)&&j.test(Tt)&&j.test(Rt))return Rt}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$3={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var d=bnExports$1,b=requireMr(),_=new b,$=new d(24),j=new d(11),_e=new d(10),et=new d(3),tt=new d(7),nt=requireGeneratePrime(),it=browserExports;dh=ht;function rt(It,gt){return gt=gt||"utf8",Buffer$D.isBuffer(It)||(It=new Buffer$D(It,gt)),this._pub=new d(It),this}function ot(It,gt){return gt=gt||"utf8",Buffer$D.isBuffer(It)||(It=new Buffer$D(It,gt)),this._priv=new d(It),this}var at={};function st(It,gt){var vt=gt.toString("hex"),Rt=[vt,It.toString(16)].join("_");if(Rt in at)return at[Rt];var Tt=0;if(It.isEven()||!nt.simpleSieve||!nt.fermatTest(It)||!_.test(It))return Tt+=1,vt==="02"||vt==="05"?Tt+=8:Tt+=4,at[Rt]=Tt,Tt;_.test(It.shrn(1))||(Tt+=2);var Nt;switch(vt){case"02":It.mod($).cmp(j)&&(Tt+=8);break;case"05":Nt=It.mod(_e),Nt.cmp(et)&&Nt.cmp(tt)&&(Tt+=8);break;default:Tt+=4}return at[Rt]=Tt,Tt}function ht(It,gt,vt){this.setGenerator(gt),this.__prime=new d(It),this._prime=d.mont(this.__prime),this._primeLen=It.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,vt?(this.setPublicKey=rt,this.setPrivateKey=ot):this._primeCode=8}Object.defineProperty(ht.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=st(this.__prime,this.__gen)),this._primeCode}}),ht.prototype.generateKeys=function(){return this._priv||(this._priv=new d(it(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},ht.prototype.computeSecret=function(It){It=new d(It),It=It.toRed(this._prime);var gt=It.redPow(this._priv).fromRed(),vt=new Buffer$D(gt.toArray()),Rt=this.getPrime();if(vt.length<Rt.length){var Tt=new Buffer$D(Rt.length-vt.length);Tt.fill(0),vt=Buffer$D.concat([Tt,vt])}return vt},ht.prototype.getPublicKey=function(gt){return yt(this._pub,gt)},ht.prototype.getPrivateKey=function(gt){return yt(this._priv,gt)},ht.prototype.getPrime=function(It){return yt(this.__prime,It)},ht.prototype.getGenerator=function(It){return yt(this._gen,It)},ht.prototype.setGenerator=function(It,gt){return gt=gt||"utf8",Buffer$D.isBuffer(It)||(It=new Buffer$D(It,gt)),this.__gen=It,this._gen=new d(It),this};function yt(It,gt){var vt=new Buffer$D(It.toArray());return gt?vt.toString(gt):vt}return dh}var hasRequiredBrowser$4;function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$7;hasRequiredBrowser$4=1;var d=requireGeneratePrime(),b=require$$1$3,_=requireDh();function $(et){var tt=new Buffer$D(b[et].prime,"hex"),nt=new Buffer$D(b[et].gen,"hex");return new _(tt,nt)}var j={binary:!0,hex:!0,base64:!0};function _e(et,tt,nt,it){return Buffer$D.isBuffer(tt)||j[tt]===void 0?_e(et,"binary",tt,nt):(tt=tt||"binary",it=it||"binary",nt=nt||new Buffer$D([2]),Buffer$D.isBuffer(nt)||(nt=new Buffer$D(nt,it)),typeof et=="number"?new _(d(et,nt),nt,!0):(Buffer$D.isBuffer(et)||(et=new Buffer$D(et,tt)),new _(et,nt,!0)))}return browser$7.DiffieHellmanGroup=browser$7.createDiffieHellmanGroup=browser$7.getDiffieHellman=$,browser$7.createDiffieHellman=browser$7.DiffieHellman=_e,browser$7}var readableBrowser={exports:{}},processNextickArgs={exports:{}};typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick}:processNextickArgs.exports=process$1;function nextTick(d,b,_,$){if(typeof d!="function")throw new TypeError('"callback" argument must be a function');var j=arguments.length,_e,et;switch(j){case 0:case 1:return process$1.nextTick(d);case 2:return process$1.nextTick(function(){d.call(null,b)});case 3:return process$1.nextTick(function(){d.call(null,b,_)});case 4:return process$1.nextTick(function(){d.call(null,b,_,$)});default:for(_e=new Array(j-1),et=0;et<_e.length;)_e[et++]=arguments[et];return process$1.nextTick(function(){d.apply(null,_e)})}}var processNextickArgsExports=processNextickArgs.exports,toString$2={}.toString,isarray=Array.isArray||function(d){return toString$2.call(d)=="[object Array]"},streamBrowser=eventsExports.EventEmitter,safeBuffer$1={exports:{}};(function(d,b){var _=require$$1$4,$=_.Buffer;function j(et,tt){for(var nt in et)tt[nt]=et[nt]}$.from&&$.alloc&&$.allocUnsafe&&$.allocUnsafeSlow?d.exports=_:(j(_,b),b.Buffer=_e);function _e(et,tt,nt){return $(et,tt,nt)}j($,_e),_e.from=function(et,tt,nt){if(typeof et=="number")throw new TypeError("Argument must not be a number");return $(et,tt,nt)},_e.alloc=function(et,tt,nt){if(typeof et!="number")throw new TypeError("Argument must be a number");var it=$(et);return tt!==void 0?typeof nt=="string"?it.fill(tt,nt):it.fill(tt):it.fill(0),it},_e.allocUnsafe=function(et){if(typeof et!="number")throw new TypeError("Argument must be a number");return $(et)},_e.allocUnsafeSlow=function(et){if(typeof et!="number")throw new TypeError("Argument must be a number");return _.SlowBuffer(et)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,util$3={};function isArray$5(d){return Array.isArray?Array.isArray(d):objectToString$1(d)==="[object Array]"}util$3.isArray=isArray$5;function isBoolean$1(d){return typeof d=="boolean"}util$3.isBoolean=isBoolean$1;function isNull(d){return d===null}util$3.isNull=isNull;function isNullOrUndefined(d){return d==null}util$3.isNullOrUndefined=isNullOrUndefined;function isNumber$1(d){return typeof d=="number"}util$3.isNumber=isNumber$1;function isString$2(d){return typeof d=="string"}util$3.isString=isString$2;function isSymbol$1(d){return typeof d=="symbol"}util$3.isSymbol=isSymbol$1;function isUndefined(d){return d===void 0}util$3.isUndefined=isUndefined;function isRegExp$2(d){return objectToString$1(d)==="[object RegExp]"}util$3.isRegExp=isRegExp$2;function isObject$5(d){return typeof d=="object"&&d!==null}util$3.isObject=isObject$5;function isDate$2(d){return objectToString$1(d)==="[object Date]"}util$3.isDate=isDate$2;function isError$1(d){return objectToString$1(d)==="[object Error]"||d instanceof Error}util$3.isError=isError$1;function isFunction(d){return typeof d=="function"}util$3.isFunction=isFunction;function isPrimitive(d){return d===null||typeof d=="boolean"||typeof d=="number"||typeof d=="string"||typeof d=="symbol"||typeof d>"u"}util$3.isPrimitive=isPrimitive;util$3.isBuffer=require$$1$4.Buffer.isBuffer;function objectToString$1(d){return Object.prototype.toString.call(d)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(d){function b(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}var _=safeBufferExports.Buffer,$=util$4;function j(_e,et,tt){_e.copy(et,tt)}d.exports=function(){function _e(){b(this,_e),this.head=null,this.tail=null,this.length=0}return _e.prototype.push=function(tt){var nt={data:tt,next:null};this.length>0?this.tail.next=nt:this.head=nt,this.tail=nt,++this.length},_e.prototype.unshift=function(tt){var nt={data:tt,next:this.head};this.length===0&&(this.tail=nt),this.head=nt,++this.length},_e.prototype.shift=function(){if(this.length!==0){var tt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,tt}},_e.prototype.clear=function(){this.head=this.tail=null,this.length=0},_e.prototype.join=function(tt){if(this.length===0)return"";for(var nt=this.head,it=""+nt.data;nt=nt.next;)it+=tt+nt.data;return it},_e.prototype.concat=function(tt){if(this.length===0)return _.alloc(0);for(var nt=_.allocUnsafe(tt>>>0),it=this.head,rt=0;it;)j(it.data,nt,rt),rt+=it.data.length,it=it.next;return nt},_e}(),$&&$.inspect&&$.inspect.custom&&(d.exports.prototype[$.inspect.custom]=function(){var _e=$.inspect({length:this.length});return this.constructor.name+" "+_e})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(d,b){var _=this,$=this._readableState&&this._readableState.destroyed,j=this._writableState&&this._writableState.destroyed;return $||j?(b?b(d):d&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,d)):pna.nextTick(emitErrorNT,this,d)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(_e){!b&&_e?_._writableState?_._writableState.errorEmitted||(_._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,_,_e)):pna.nextTick(emitErrorNT,_,_e):b&&b(_e)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(d,b){d.emit("error",b)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var d=processNextickArgsExports;_stream_writable=yt;function b(St){var xt=this;this.next=null,this.entry=null,this.finish=function(){bt(xt,St)}}var _=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:d.nextTick,$;yt.WritableState=st;var j=Object.create(util$3);j.inherits=inherits_browserExports$1;var _e={deprecate:browser$d},et=streamBrowser,tt=safeBufferExports.Buffer,nt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function it(St){return tt.from(St)}function rt(St){return tt.isBuffer(St)||St instanceof nt}var ot=destroy_1;j.inherits(yt,et);function at(){}function st(St,xt){$=$||require_stream_duplex(),St=St||{};var wt=xt instanceof $;this.objectMode=!!St.objectMode,wt&&(this.objectMode=this.objectMode||!!St.writableObjectMode);var lt=St.highWaterMark,_t=St.writableHighWaterMark,$t=this.objectMode?16:16*1024;lt||lt===0?this.highWaterMark=lt:wt&&(_t||_t===0)?this.highWaterMark=_t:this.highWaterMark=$t,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Et=St.decodeStrings===!1;this.decodeStrings=!Et,this.defaultEncoding=St.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Dt){Vt(xt,Dt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new b(this)}st.prototype.getBuffer=function(){for(var xt=this.bufferedRequest,wt=[];xt;)wt.push(xt),xt=xt.next;return wt},function(){try{Object.defineProperty(st.prototype,"buffer",{get:_e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ht;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ht=Function.prototype[Symbol.hasInstance],Object.defineProperty(yt,Symbol.hasInstance,{value:function(St){return ht.call(this,St)?!0:this!==yt?!1:St&&St._writableState instanceof st}})):ht=function(St){return St instanceof this};function yt(St){if($=$||require_stream_duplex(),!ht.call(yt,this)&&!(this instanceof $))return new yt(St);this._writableState=new st(St,this),this.writable=!0,St&&(typeof St.write=="function"&&(this._write=St.write),typeof St.writev=="function"&&(this._writev=St.writev),typeof St.destroy=="function"&&(this._destroy=St.destroy),typeof St.final=="function"&&(this._final=St.final)),et.call(this)}yt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function It(St,xt){var wt=new Error("write after end");St.emit("error",wt),d.nextTick(xt,wt)}function gt(St,xt,wt,lt){var _t=!0,$t=!1;return wt===null?$t=new TypeError("May not write null values to stream"):typeof wt!="string"&&wt!==void 0&&!xt.objectMode&&($t=new TypeError("Invalid non-string/buffer chunk")),$t&&(St.emit("error",$t),d.nextTick(lt,$t),_t=!1),_t}yt.prototype.write=function(St,xt,wt){var lt=this._writableState,_t=!1,$t=!lt.objectMode&&rt(St);return $t&&!tt.isBuffer(St)&&(St=it(St)),typeof xt=="function"&&(wt=xt,xt=null),$t?xt="buffer":xt||(xt=lt.defaultEncoding),typeof wt!="function"&&(wt=at),lt.ended?It(this,wt):($t||gt(this,lt,St,wt))&&(lt.pendingcb++,_t=Rt(this,lt,$t,St,xt,wt)),_t},yt.prototype.cork=function(){var St=this._writableState;St.corked++},yt.prototype.uncork=function(){var St=this._writableState;St.corked&&(St.corked--,!St.writing&&!St.corked&&!St.bufferProcessing&&St.bufferedRequest&&Qt(this,St))},yt.prototype.setDefaultEncoding=function(xt){if(typeof xt=="string"&&(xt=xt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((xt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+xt);return this._writableState.defaultEncoding=xt,this};function vt(St,xt,wt){return!St.objectMode&&St.decodeStrings!==!1&&typeof xt=="string"&&(xt=tt.from(xt,wt)),xt}Object.defineProperty(yt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Rt(St,xt,wt,lt,_t,$t){if(!wt){var Et=vt(xt,lt,_t);lt!==Et&&(wt=!0,_t="buffer",lt=Et)}var Dt=xt.objectMode?1:lt.length;xt.length+=Dt;var er=xt.length<xt.highWaterMark;if(er||(xt.needDrain=!0),xt.writing||xt.corked){var qt=xt.lastBufferedRequest;xt.lastBufferedRequest={chunk:lt,encoding:_t,isBuf:wt,callback:$t,next:null},qt?qt.next=xt.lastBufferedRequest:xt.bufferedRequest=xt.lastBufferedRequest,xt.bufferedRequestCount+=1}else Tt(St,xt,!1,Dt,lt,_t,$t);return er}function Tt(St,xt,wt,lt,_t,$t,Et){xt.writelen=lt,xt.writecb=Et,xt.writing=!0,xt.sync=!0,wt?St._writev(_t,xt.onwrite):St._write(_t,$t,xt.onwrite),xt.sync=!1}function Nt(St,xt,wt,lt,_t){--xt.pendingcb,wt?(d.nextTick(_t,lt),d.nextTick(ct,St,xt),St._writableState.errorEmitted=!0,St.emit("error",lt)):(_t(lt),St._writableState.errorEmitted=!0,St.emit("error",lt),ct(St,xt))}function Bt(St){St.writing=!1,St.writecb=null,St.length-=St.writelen,St.writelen=0}function Vt(St,xt){var wt=St._writableState,lt=wt.sync,_t=wt.writecb;if(Bt(wt),xt)Nt(St,wt,lt,xt,_t);else{var $t=jt(wt);!$t&&!wt.corked&&!wt.bufferProcessing&&wt.bufferedRequest&&Qt(St,wt),lt?_(Ut,St,wt,$t,_t):Ut(St,wt,$t,_t)}}function Ut(St,xt,wt,lt){wt||zt(St,xt),xt.pendingcb--,lt(),ct(St,xt)}function zt(St,xt){xt.length===0&&xt.needDrain&&(xt.needDrain=!1,St.emit("drain"))}function Qt(St,xt){xt.bufferProcessing=!0;var wt=xt.bufferedRequest;if(St._writev&&wt&&wt.next){var lt=xt.bufferedRequestCount,_t=new Array(lt),$t=xt.corkedRequestsFree;$t.entry=wt;for(var Et=0,Dt=!0;wt;)_t[Et]=wt,wt.isBuf||(Dt=!1),wt=wt.next,Et+=1;_t.allBuffers=Dt,Tt(St,xt,!0,xt.length,_t,"",$t.finish),xt.pendingcb++,xt.lastBufferedRequest=null,$t.next?(xt.corkedRequestsFree=$t.next,$t.next=null):xt.corkedRequestsFree=new b(xt),xt.bufferedRequestCount=0}else{for(;wt;){var er=wt.chunk,qt=wt.encoding,Pt=wt.callback,Lt=xt.objectMode?1:er.length;if(Tt(St,xt,!1,Lt,er,qt,Pt),wt=wt.next,xt.bufferedRequestCount--,xt.writing)break}wt===null&&(xt.lastBufferedRequest=null)}xt.bufferedRequest=wt,xt.bufferProcessing=!1}yt.prototype._write=function(St,xt,wt){wt(new Error("_write() is not implemented"))},yt.prototype._writev=null,yt.prototype.end=function(St,xt,wt){var lt=this._writableState;typeof St=="function"?(wt=St,St=null,xt=null):typeof xt=="function"&&(wt=xt,xt=null),St!=null&&this.write(St,xt),lt.corked&&(lt.corked=1,this.uncork()),lt.ending||dt(this,lt,wt)};function jt(St){return St.ending&&St.length===0&&St.bufferedRequest===null&&!St.finished&&!St.writing}function mt(St,xt){St._final(function(wt){xt.pendingcb--,wt&&St.emit("error",wt),xt.prefinished=!0,St.emit("prefinish"),ct(St,xt)})}function pt(St,xt){!xt.prefinished&&!xt.finalCalled&&(typeof St._final=="function"?(xt.pendingcb++,xt.finalCalled=!0,d.nextTick(mt,St,xt)):(xt.prefinished=!0,St.emit("prefinish")))}function ct(St,xt){var wt=jt(xt);return wt&&(pt(St,xt),xt.pendingcb===0&&(xt.finished=!0,St.emit("finish"))),wt}function dt(St,xt,wt){xt.ending=!0,ct(St,xt),wt&&(xt.finished?d.nextTick(wt):St.once("finish",wt)),xt.ended=!0,St.writable=!1}function bt(St,xt,wt){var lt=St.entry;for(St.entry=null;lt;){var _t=lt.callback;xt.pendingcb--,_t(wt),lt=lt.next}xt.corkedRequestsFree.next=St}return Object.defineProperty(yt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(St){this._writableState&&(this._writableState.destroyed=St)}}),yt.prototype.destroy=ot.destroy,yt.prototype._undestroy=ot.undestroy,yt.prototype._destroy=function(St,xt){this.end(),xt(St)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var d=processNextickArgsExports,b=Object.keys||function(ot){var at=[];for(var st in ot)at.push(st);return at};_stream_duplex=nt;var _=Object.create(util$3);_.inherits=inherits_browserExports$1;var $=require_stream_readable(),j=require_stream_writable();_.inherits(nt,$);for(var _e=b(j.prototype),et=0;et<_e.length;et++){var tt=_e[et];nt.prototype[tt]||(nt.prototype[tt]=j.prototype[tt])}function nt(ot){if(!(this instanceof nt))return new nt(ot);$.call(this,ot),j.call(this,ot),ot&&ot.readable===!1&&(this.readable=!1),ot&&ot.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ot&&ot.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",it)}Object.defineProperty(nt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function it(){this.allowHalfOpen||this._writableState.ended||d.nextTick(rt,this)}function rt(ot){ot.end()}return Object.defineProperty(nt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ot){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ot,this._writableState.destroyed=ot)}}),nt.prototype._destroy=function(ot,at){this.push(null),this.end(),d.nextTick(at,ot)},_stream_duplex}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var d=processNextickArgsExports;_stream_readable=vt;var b=isarray,_;vt.ReadableState=gt,eventsExports.EventEmitter;var $=function(Pt,Lt){return Pt.listeners(Lt).length},j=streamBrowser,_e=safeBufferExports.Buffer,et=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function tt(Pt){return _e.from(Pt)}function nt(Pt){return _e.isBuffer(Pt)||Pt instanceof et}var it=Object.create(util$3);it.inherits=inherits_browserExports$1;var rt=util$4,ot=void 0;rt&&rt.debuglog?ot=rt.debuglog("stream"):ot=function(){};var at=requireBufferList(),st=destroy_1,ht;it.inherits(vt,j);var yt=["error","close","destroy","pause","resume"];function It(Pt,Lt,Jt){if(typeof Pt.prependListener=="function")return Pt.prependListener(Lt,Jt);!Pt._events||!Pt._events[Lt]?Pt.on(Lt,Jt):b(Pt._events[Lt])?Pt._events[Lt].unshift(Jt):Pt._events[Lt]=[Jt,Pt._events[Lt]]}function gt(Pt,Lt){_=_||require_stream_duplex(),Pt=Pt||{};var Jt=Lt instanceof _;this.objectMode=!!Pt.objectMode,Jt&&(this.objectMode=this.objectMode||!!Pt.readableObjectMode);var Ot=Pt.highWaterMark,At=Pt.readableHighWaterMark,kt=this.objectMode?16:16*1024;Ot||Ot===0?this.highWaterMark=Ot:Jt&&(At||At===0)?this.highWaterMark=At:this.highWaterMark=kt,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new at,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Pt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Pt.encoding&&(ht||(ht=string_decoder.StringDecoder),this.decoder=new ht(Pt.encoding),this.encoding=Pt.encoding)}function vt(Pt){if(_=_||require_stream_duplex(),!(this instanceof vt))return new vt(Pt);this._readableState=new gt(Pt,this),this.readable=!0,Pt&&(typeof Pt.read=="function"&&(this._read=Pt.read),typeof Pt.destroy=="function"&&(this._destroy=Pt.destroy)),j.call(this)}Object.defineProperty(vt.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Pt){this._readableState&&(this._readableState.destroyed=Pt)}}),vt.prototype.destroy=st.destroy,vt.prototype._undestroy=st.undestroy,vt.prototype._destroy=function(Pt,Lt){this.push(null),Lt(Pt)},vt.prototype.push=function(Pt,Lt){var Jt=this._readableState,Ot;return Jt.objectMode?Ot=!0:typeof Pt=="string"&&(Lt=Lt||Jt.defaultEncoding,Lt!==Jt.encoding&&(Pt=_e.from(Pt,Lt),Lt=""),Ot=!0),Rt(this,Pt,Lt,!1,Ot)},vt.prototype.unshift=function(Pt){return Rt(this,Pt,null,!0,!1)};function Rt(Pt,Lt,Jt,Ot,At){var kt=Pt._readableState;if(Lt===null)kt.reading=!1,Qt(Pt,kt);else{var Kt;At||(Kt=Nt(kt,Lt)),Kt?Pt.emit("error",Kt):kt.objectMode||Lt&&Lt.length>0?(typeof Lt!="string"&&!kt.objectMode&&Object.getPrototypeOf(Lt)!==_e.prototype&&(Lt=tt(Lt)),Ot?kt.endEmitted?Pt.emit("error",new Error("stream.unshift() after end event")):Tt(Pt,kt,Lt,!0):kt.ended?Pt.emit("error",new Error("stream.push() after EOF")):(kt.reading=!1,kt.decoder&&!Jt?(Lt=kt.decoder.write(Lt),kt.objectMode||Lt.length!==0?Tt(Pt,kt,Lt,!1):pt(Pt,kt)):Tt(Pt,kt,Lt,!1))):Ot||(kt.reading=!1)}return Bt(kt)}function Tt(Pt,Lt,Jt,Ot){Lt.flowing&&Lt.length===0&&!Lt.sync?(Pt.emit("data",Jt),Pt.read(0)):(Lt.length+=Lt.objectMode?1:Jt.length,Ot?Lt.buffer.unshift(Jt):Lt.buffer.push(Jt),Lt.needReadable&&jt(Pt)),pt(Pt,Lt)}function Nt(Pt,Lt){var Jt;return!nt(Lt)&&typeof Lt!="string"&&Lt!==void 0&&!Pt.objectMode&&(Jt=new TypeError("Invalid non-string/buffer chunk")),Jt}function Bt(Pt){return!Pt.ended&&(Pt.needReadable||Pt.length<Pt.highWaterMark||Pt.length===0)}vt.prototype.isPaused=function(){return this._readableState.flowing===!1},vt.prototype.setEncoding=function(Pt){return ht||(ht=string_decoder.StringDecoder),this._readableState.decoder=new ht(Pt),this._readableState.encoding=Pt,this};var Vt=8388608;function Ut(Pt){return Pt>=Vt?Pt=Vt:(Pt--,Pt|=Pt>>>1,Pt|=Pt>>>2,Pt|=Pt>>>4,Pt|=Pt>>>8,Pt|=Pt>>>16,Pt++),Pt}function zt(Pt,Lt){return Pt<=0||Lt.length===0&&Lt.ended?0:Lt.objectMode?1:Pt!==Pt?Lt.flowing&&Lt.length?Lt.buffer.head.data.length:Lt.length:(Pt>Lt.highWaterMark&&(Lt.highWaterMark=Ut(Pt)),Pt<=Lt.length?Pt:Lt.ended?Lt.length:(Lt.needReadable=!0,0))}vt.prototype.read=function(Pt){ot("read",Pt),Pt=parseInt(Pt,10);var Lt=this._readableState,Jt=Pt;if(Pt!==0&&(Lt.emittedReadable=!1),Pt===0&&Lt.needReadable&&(Lt.length>=Lt.highWaterMark||Lt.ended))return ot("read: emitReadable",Lt.length,Lt.ended),Lt.length===0&&Lt.ended?Dt(this):jt(this),null;if(Pt=zt(Pt,Lt),Pt===0&&Lt.ended)return Lt.length===0&&Dt(this),null;var Ot=Lt.needReadable;ot("need readable",Ot),(Lt.length===0||Lt.length-Pt<Lt.highWaterMark)&&(Ot=!0,ot("length less than watermark",Ot)),Lt.ended||Lt.reading?(Ot=!1,ot("reading or ended",Ot)):Ot&&(ot("do read"),Lt.reading=!0,Lt.sync=!0,Lt.length===0&&(Lt.needReadable=!0),this._read(Lt.highWaterMark),Lt.sync=!1,Lt.reading||(Pt=zt(Jt,Lt)));var At;return Pt>0?At=lt(Pt,Lt):At=null,At===null?(Lt.needReadable=!0,Pt=0):Lt.length-=Pt,Lt.length===0&&(Lt.ended||(Lt.needReadable=!0),Jt!==Pt&&Lt.ended&&Dt(this)),At!==null&&this.emit("data",At),At};function Qt(Pt,Lt){if(!Lt.ended){if(Lt.decoder){var Jt=Lt.decoder.end();Jt&&Jt.length&&(Lt.buffer.push(Jt),Lt.length+=Lt.objectMode?1:Jt.length)}Lt.ended=!0,jt(Pt)}}function jt(Pt){var Lt=Pt._readableState;Lt.needReadable=!1,Lt.emittedReadable||(ot("emitReadable",Lt.flowing),Lt.emittedReadable=!0,Lt.sync?d.nextTick(mt,Pt):mt(Pt))}function mt(Pt){ot("emit readable"),Pt.emit("readable"),wt(Pt)}function pt(Pt,Lt){Lt.readingMore||(Lt.readingMore=!0,d.nextTick(ct,Pt,Lt))}function ct(Pt,Lt){for(var Jt=Lt.length;!Lt.reading&&!Lt.flowing&&!Lt.ended&&Lt.length<Lt.highWaterMark&&(ot("maybeReadMore read 0"),Pt.read(0),Jt!==Lt.length);)Jt=Lt.length;Lt.readingMore=!1}vt.prototype._read=function(Pt){this.emit("error",new Error("_read() is not implemented"))},vt.prototype.pipe=function(Pt,Lt){var Jt=this,Ot=this._readableState;switch(Ot.pipesCount){case 0:Ot.pipes=Pt;break;case 1:Ot.pipes=[Ot.pipes,Pt];break;default:Ot.pipes.push(Pt);break}Ot.pipesCount+=1,ot("pipe count=%d opts=%j",Ot.pipesCount,Lt);var At=(!Lt||Lt.end!==!1)&&Pt!==process$1.stdout&&Pt!==process$1.stderr,kt=At?Ht:pr;Ot.endEmitted?d.nextTick(kt):Jt.once("end",kt),Pt.on("unpipe",Kt);function Kt(yr,br){ot("onunpipe"),yr===Jt&&br&&br.hasUnpiped===!1&&(br.hasUnpiped=!0,Gt())}function Ht(){ot("onend"),Pt.end()}var Xt=dt(Jt);Pt.on("drain",Xt);var Zt=!1;function Gt(){ot("cleanup"),Pt.removeListener("close",ir),Pt.removeListener("finish",fr),Pt.removeListener("drain",Xt),Pt.removeListener("error",rr),Pt.removeListener("unpipe",Kt),Jt.removeListener("end",Ht),Jt.removeListener("end",pr),Jt.removeListener("data",Yt),Zt=!0,Ot.awaitDrain&&(!Pt._writableState||Pt._writableState.needDrain)&&Xt()}var tr=!1;Jt.on("data",Yt);function Yt(yr){ot("ondata"),tr=!1;var br=Pt.write(yr);br===!1&&!tr&&((Ot.pipesCount===1&&Ot.pipes===Pt||Ot.pipesCount>1&&qt(Ot.pipes,Pt)!==-1)&&!Zt&&(ot("false write response, pause",Ot.awaitDrain),Ot.awaitDrain++,tr=!0),Jt.pause())}function rr(yr){ot("onerror",yr),pr(),Pt.removeListener("error",rr),$(Pt,"error")===0&&Pt.emit("error",yr)}It(Pt,"error",rr);function ir(){Pt.removeListener("finish",fr),pr()}Pt.once("close",ir);function fr(){ot("onfinish"),Pt.removeListener("close",ir),pr()}Pt.once("finish",fr);function pr(){ot("unpipe"),Jt.unpipe(Pt)}return Pt.emit("pipe",Jt),Ot.flowing||(ot("pipe resume"),Jt.resume()),Pt};function dt(Pt){return function(){var Lt=Pt._readableState;ot("pipeOnDrain",Lt.awaitDrain),Lt.awaitDrain&&Lt.awaitDrain--,Lt.awaitDrain===0&&$(Pt,"data")&&(Lt.flowing=!0,wt(Pt))}}vt.prototype.unpipe=function(Pt){var Lt=this._readableState,Jt={hasUnpiped:!1};if(Lt.pipesCount===0)return this;if(Lt.pipesCount===1)return Pt&&Pt!==Lt.pipes?this:(Pt||(Pt=Lt.pipes),Lt.pipes=null,Lt.pipesCount=0,Lt.flowing=!1,Pt&&Pt.emit("unpipe",this,Jt),this);if(!Pt){var Ot=Lt.pipes,At=Lt.pipesCount;Lt.pipes=null,Lt.pipesCount=0,Lt.flowing=!1;for(var kt=0;kt<At;kt++)Ot[kt].emit("unpipe",this,{hasUnpiped:!1});return this}var Kt=qt(Lt.pipes,Pt);return Kt===-1?this:(Lt.pipes.splice(Kt,1),Lt.pipesCount-=1,Lt.pipesCount===1&&(Lt.pipes=Lt.pipes[0]),Pt.emit("unpipe",this,Jt),this)},vt.prototype.on=function(Pt,Lt){var Jt=j.prototype.on.call(this,Pt,Lt);if(Pt==="data")this._readableState.flowing!==!1&&this.resume();else if(Pt==="readable"){var Ot=this._readableState;!Ot.endEmitted&&!Ot.readableListening&&(Ot.readableListening=Ot.needReadable=!0,Ot.emittedReadable=!1,Ot.reading?Ot.length&&jt(this):d.nextTick(bt,this))}return Jt},vt.prototype.addListener=vt.prototype.on;function bt(Pt){ot("readable nexttick read 0"),Pt.read(0)}vt.prototype.resume=function(){var Pt=this._readableState;return Pt.flowing||(ot("resume"),Pt.flowing=!0,St(this,Pt)),this};function St(Pt,Lt){Lt.resumeScheduled||(Lt.resumeScheduled=!0,d.nextTick(xt,Pt,Lt))}function xt(Pt,Lt){Lt.reading||(ot("resume read 0"),Pt.read(0)),Lt.resumeScheduled=!1,Lt.awaitDrain=0,Pt.emit("resume"),wt(Pt),Lt.flowing&&!Lt.reading&&Pt.read(0)}vt.prototype.pause=function(){return ot("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ot("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function wt(Pt){var Lt=Pt._readableState;for(ot("flow",Lt.flowing);Lt.flowing&&Pt.read()!==null;);}vt.prototype.wrap=function(Pt){var Lt=this,Jt=this._readableState,Ot=!1;Pt.on("end",function(){if(ot("wrapped end"),Jt.decoder&&!Jt.ended){var Kt=Jt.decoder.end();Kt&&Kt.length&&Lt.push(Kt)}Lt.push(null)}),Pt.on("data",function(Kt){if(ot("wrapped data"),Jt.decoder&&(Kt=Jt.decoder.write(Kt)),!(Jt.objectMode&&Kt==null)&&!(!Jt.objectMode&&(!Kt||!Kt.length))){var Ht=Lt.push(Kt);Ht||(Ot=!0,Pt.pause())}});for(var At in Pt)this[At]===void 0&&typeof Pt[At]=="function"&&(this[At]=function(Kt){return function(){return Pt[Kt].apply(Pt,arguments)}}(At));for(var kt=0;kt<yt.length;kt++)Pt.on(yt[kt],this.emit.bind(this,yt[kt]));return this._read=function(Kt){ot("wrapped _read",Kt),Ot&&(Ot=!1,Pt.resume())},this},Object.defineProperty(vt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),vt._fromList=lt;function lt(Pt,Lt){if(Lt.length===0)return null;var Jt;return Lt.objectMode?Jt=Lt.buffer.shift():!Pt||Pt>=Lt.length?(Lt.decoder?Jt=Lt.buffer.join(""):Lt.buffer.length===1?Jt=Lt.buffer.head.data:Jt=Lt.buffer.concat(Lt.length),Lt.buffer.clear()):Jt=_t(Pt,Lt.buffer,Lt.decoder),Jt}function _t(Pt,Lt,Jt){var Ot;return Pt<Lt.head.data.length?(Ot=Lt.head.data.slice(0,Pt),Lt.head.data=Lt.head.data.slice(Pt)):Pt===Lt.head.data.length?Ot=Lt.shift():Ot=Jt?$t(Pt,Lt):Et(Pt,Lt),Ot}function $t(Pt,Lt){var Jt=Lt.head,Ot=1,At=Jt.data;for(Pt-=At.length;Jt=Jt.next;){var kt=Jt.data,Kt=Pt>kt.length?kt.length:Pt;if(Kt===kt.length?At+=kt:At+=kt.slice(0,Pt),Pt-=Kt,Pt===0){Kt===kt.length?(++Ot,Jt.next?Lt.head=Jt.next:Lt.head=Lt.tail=null):(Lt.head=Jt,Jt.data=kt.slice(Kt));break}++Ot}return Lt.length-=Ot,At}function Et(Pt,Lt){var Jt=_e.allocUnsafe(Pt),Ot=Lt.head,At=1;for(Ot.data.copy(Jt),Pt-=Ot.data.length;Ot=Ot.next;){var kt=Ot.data,Kt=Pt>kt.length?kt.length:Pt;if(kt.copy(Jt,Jt.length-Pt,0,Kt),Pt-=Kt,Pt===0){Kt===kt.length?(++At,Ot.next?Lt.head=Ot.next:Lt.head=Lt.tail=null):(Lt.head=Ot,Ot.data=kt.slice(Kt));break}++At}return Lt.length-=At,Jt}function Dt(Pt){var Lt=Pt._readableState;if(Lt.length>0)throw new Error('"endReadable()" called on non-empty stream');Lt.endEmitted||(Lt.ended=!0,d.nextTick(er,Lt,Pt))}function er(Pt,Lt){!Pt.endEmitted&&Pt.length===0&&(Pt.endEmitted=!0,Lt.readable=!1,Lt.emit("end"))}function qt(Pt,Lt){for(var Jt=0,Ot=Pt.length;Jt<Ot;Jt++)if(Pt[Jt]===Lt)return Jt;return-1}return _stream_readable}var _stream_transform=Transform$1,Duplex=require_stream_duplex(),util$2=Object.create(util$3);util$2.inherits=inherits_browserExports$1;util$2.inherits(Transform$1,Duplex);function afterTransform(d,b){var _=this._transformState;_.transforming=!1;var $=_.writecb;if(!$)return this.emit("error",new Error("write callback called multiple times"));_.writechunk=null,_.writecb=null,b!=null&&this.push(b),$(d);var j=this._readableState;j.reading=!1,(j.needReadable||j.length<j.highWaterMark)&&this._read(j.highWaterMark)}function Transform$1(d){if(!(this instanceof Transform$1))return new Transform$1(d);Duplex.call(this,d),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",prefinish)}function prefinish(){var d=this;typeof this._flush=="function"?this._flush(function(b,_){done(d,b,_)}):done(this,null,null)}Transform$1.prototype.push=function(d,b){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,d,b)};Transform$1.prototype._transform=function(d,b,_){throw new Error("_transform() is not implemented")};Transform$1.prototype._write=function(d,b,_){var $=this._transformState;if($.writecb=_,$.writechunk=d,$.writeencoding=b,!$.transforming){var j=this._readableState;($.needTransform||j.needReadable||j.length<j.highWaterMark)&&this._read(j.highWaterMark)}};Transform$1.prototype._read=function(d){var b=this._transformState;b.writechunk!==null&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0};Transform$1.prototype._destroy=function(d,b){var _=this;Duplex.prototype._destroy.call(this,d,function($){b($),_.emit("close")})};function done(d,b,_){if(b)return d.emit("error",b);if(_!=null&&d.push(_),d._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(d._transformState.transforming)throw new Error("Calling transform done when still transforming");return d.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform,util$1=Object.create(util$3);util$1.inherits=inherits_browserExports$1;util$1.inherits(PassThrough,Transform);function PassThrough(d){if(!(this instanceof PassThrough))return new PassThrough(d);Transform.call(this,d)}PassThrough.prototype._transform=function(d,b,_){_(null,d)};(function(d,b){b=d.exports=require_stream_readable(),b.Stream=b,b.Readable=b,b.Writable=require_stream_writable(),b.Duplex=require_stream_duplex(),b.Transform=_stream_transform,b.PassThrough=_stream_passthrough})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,sign$1={exports:{}},bn={exports:{}};bn.exports;(function(d){(function(b,_){function $(pt,ct){if(!pt)throw new Error(ct||"Assertion failed")}function j(pt,ct){pt.super_=ct;var dt=function(){};dt.prototype=ct.prototype,pt.prototype=new dt,pt.prototype.constructor=pt}function _e(pt,ct,dt){if(_e.isBN(pt))return pt;this.negative=0,this.words=null,this.length=0,this.red=null,pt!==null&&((ct==="le"||ct==="be")&&(dt=ct,ct=10),this._init(pt||0,ct||10,dt||"be"))}typeof b=="object"?b.exports=_e:_.BN=_e,_e.BN=_e,_e.wordSize=26;var et;try{typeof window<"u"&&typeof window.Buffer<"u"?et=window.Buffer:et=require$$1$4.Buffer}catch{}_e.isBN=function(ct){return ct instanceof _e?!0:ct!==null&&typeof ct=="object"&&ct.constructor.wordSize===_e.wordSize&&Array.isArray(ct.words)},_e.max=function(ct,dt){return ct.cmp(dt)>0?ct:dt},_e.min=function(ct,dt){return ct.cmp(dt)<0?ct:dt},_e.prototype._init=function(ct,dt,bt){if(typeof ct=="number")return this._initNumber(ct,dt,bt);if(typeof ct=="object")return this._initArray(ct,dt,bt);dt==="hex"&&(dt=16),$(dt===(dt|0)&&dt>=2&&dt<=36),ct=ct.toString().replace(/\s+/g,"");var St=0;ct[0]==="-"&&(St++,this.negative=1),St<ct.length&&(dt===16?this._parseHex(ct,St,bt):(this._parseBase(ct,dt,St),bt==="le"&&this._initArray(this.toArray(),dt,bt)))},_e.prototype._initNumber=function(ct,dt,bt){ct<0&&(this.negative=1,ct=-ct),ct<67108864?(this.words=[ct&67108863],this.length=1):ct<4503599627370496?(this.words=[ct&67108863,ct/67108864&67108863],this.length=2):($(ct<9007199254740992),this.words=[ct&67108863,ct/67108864&67108863,1],this.length=3),bt==="le"&&this._initArray(this.toArray(),dt,bt)},_e.prototype._initArray=function(ct,dt,bt){if($(typeof ct.length=="number"),ct.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(ct.length/3),this.words=new Array(this.length);for(var St=0;St<this.length;St++)this.words[St]=0;var xt,wt,lt=0;if(bt==="be")for(St=ct.length-1,xt=0;St>=0;St-=3)wt=ct[St]|ct[St-1]<<8|ct[St-2]<<16,this.words[xt]|=wt<<lt&67108863,this.words[xt+1]=wt>>>26-lt&67108863,lt+=24,lt>=26&&(lt-=26,xt++);else if(bt==="le")for(St=0,xt=0;St<ct.length;St+=3)wt=ct[St]|ct[St+1]<<8|ct[St+2]<<16,this.words[xt]|=wt<<lt&67108863,this.words[xt+1]=wt>>>26-lt&67108863,lt+=24,lt>=26&&(lt-=26,xt++);return this._strip()};function tt(pt,ct){var dt=pt.charCodeAt(ct);if(dt>=48&&dt<=57)return dt-48;if(dt>=65&&dt<=70)return dt-55;if(dt>=97&&dt<=102)return dt-87;$(!1,"Invalid character in "+pt)}function nt(pt,ct,dt){var bt=tt(pt,dt);return dt-1>=ct&&(bt|=tt(pt,dt-1)<<4),bt}_e.prototype._parseHex=function(ct,dt,bt){this.length=Math.ceil((ct.length-dt)/6),this.words=new Array(this.length);for(var St=0;St<this.length;St++)this.words[St]=0;var xt=0,wt=0,lt;if(bt==="be")for(St=ct.length-1;St>=dt;St-=2)lt=nt(ct,dt,St)<<xt,this.words[wt]|=lt&67108863,xt>=18?(xt-=18,wt+=1,this.words[wt]|=lt>>>26):xt+=8;else{var _t=ct.length-dt;for(St=_t%2===0?dt+1:dt;St<ct.length;St+=2)lt=nt(ct,dt,St)<<xt,this.words[wt]|=lt&67108863,xt>=18?(xt-=18,wt+=1,this.words[wt]|=lt>>>26):xt+=8}this._strip()};function it(pt,ct,dt,bt){for(var St=0,xt=0,wt=Math.min(pt.length,dt),lt=ct;lt<wt;lt++){var _t=pt.charCodeAt(lt)-48;St*=bt,_t>=49?xt=_t-49+10:_t>=17?xt=_t-17+10:xt=_t,$(_t>=0&&xt<bt,"Invalid character"),St+=xt}return St}_e.prototype._parseBase=function(ct,dt,bt){this.words=[0],this.length=1;for(var St=0,xt=1;xt<=67108863;xt*=dt)St++;St--,xt=xt/dt|0;for(var wt=ct.length-bt,lt=wt%St,_t=Math.min(wt,wt-lt)+bt,$t=0,Et=bt;Et<_t;Et+=St)$t=it(ct,Et,Et+St,dt),this.imuln(xt),this.words[0]+$t<67108864?this.words[0]+=$t:this._iaddn($t);if(lt!==0){var Dt=1;for($t=it(ct,Et,ct.length,dt),Et=0;Et<lt;Et++)Dt*=dt;this.imuln(Dt),this.words[0]+$t<67108864?this.words[0]+=$t:this._iaddn($t)}this._strip()},_e.prototype.copy=function(ct){ct.words=new Array(this.length);for(var dt=0;dt<this.length;dt++)ct.words[dt]=this.words[dt];ct.length=this.length,ct.negative=this.negative,ct.red=this.red};function rt(pt,ct){pt.words=ct.words,pt.length=ct.length,pt.negative=ct.negative,pt.red=ct.red}if(_e.prototype._move=function(ct){rt(ct,this)},_e.prototype.clone=function(){var ct=new _e(null);return this.copy(ct),ct},_e.prototype._expand=function(ct){for(;this.length<ct;)this.words[this.length++]=0;return this},_e.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},_e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{_e.prototype[Symbol.for("nodejs.util.inspect.custom")]=ot}catch{_e.prototype.inspect=ot}else _e.prototype.inspect=ot;function ot(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var at=["","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"],st=[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],ht=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];_e.prototype.toString=function(ct,dt){ct=ct||10,dt=dt|0||1;var bt;if(ct===16||ct==="hex"){bt="";for(var St=0,xt=0,wt=0;wt<this.length;wt++){var lt=this.words[wt],_t=((lt<<St|xt)&16777215).toString(16);xt=lt>>>24-St&16777215,St+=2,St>=26&&(St-=26,wt--),xt!==0||wt!==this.length-1?bt=at[6-_t.length]+_t+bt:bt=_t+bt}for(xt!==0&&(bt=xt.toString(16)+bt);bt.length%dt!==0;)bt="0"+bt;return this.negative!==0&&(bt="-"+bt),bt}if(ct===(ct|0)&&ct>=2&&ct<=36){var $t=st[ct],Et=ht[ct];bt="";var Dt=this.clone();for(Dt.negative=0;!Dt.isZero();){var er=Dt.modrn(Et).toString(ct);Dt=Dt.idivn(Et),Dt.isZero()?bt=er+bt:bt=at[$t-er.length]+er+bt}for(this.isZero()&&(bt="0"+bt);bt.length%dt!==0;)bt="0"+bt;return this.negative!==0&&(bt="-"+bt),bt}$(!1,"Base should be between 2 and 36")},_e.prototype.toNumber=function(){var ct=this.words[0];return this.length===2?ct+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ct+=4503599627370496+this.words[1]*67108864:this.length>2&&$(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ct:ct},_e.prototype.toJSON=function(){return this.toString(16,2)},et&&(_e.prototype.toBuffer=function(ct,dt){return this.toArrayLike(et,ct,dt)}),_e.prototype.toArray=function(ct,dt){return this.toArrayLike(Array,ct,dt)};var yt=function(ct,dt){return ct.allocUnsafe?ct.allocUnsafe(dt):new ct(dt)};_e.prototype.toArrayLike=function(ct,dt,bt){this._strip();var St=this.byteLength(),xt=bt||Math.max(1,St);$(St<=xt,"byte array longer than desired length"),$(xt>0,"Requested array length <= 0");var wt=yt(ct,xt),lt=dt==="le"?"LE":"BE";return this["_toArrayLike"+lt](wt,St),wt},_e.prototype._toArrayLikeLE=function(ct,dt){for(var bt=0,St=0,xt=0,wt=0;xt<this.length;xt++){var lt=this.words[xt]<<wt|St;ct[bt++]=lt&255,bt<ct.length&&(ct[bt++]=lt>>8&255),bt<ct.length&&(ct[bt++]=lt>>16&255),wt===6?(bt<ct.length&&(ct[bt++]=lt>>24&255),St=0,wt=0):(St=lt>>>24,wt+=2)}if(bt<ct.length)for(ct[bt++]=St;bt<ct.length;)ct[bt++]=0},_e.prototype._toArrayLikeBE=function(ct,dt){for(var bt=ct.length-1,St=0,xt=0,wt=0;xt<this.length;xt++){var lt=this.words[xt]<<wt|St;ct[bt--]=lt&255,bt>=0&&(ct[bt--]=lt>>8&255),bt>=0&&(ct[bt--]=lt>>16&255),wt===6?(bt>=0&&(ct[bt--]=lt>>24&255),St=0,wt=0):(St=lt>>>24,wt+=2)}if(bt>=0)for(ct[bt--]=St;bt>=0;)ct[bt--]=0},Math.clz32?_e.prototype._countBits=function(ct){return 32-Math.clz32(ct)}:_e.prototype._countBits=function(ct){var dt=ct,bt=0;return dt>=4096&&(bt+=13,dt>>>=13),dt>=64&&(bt+=7,dt>>>=7),dt>=8&&(bt+=4,dt>>>=4),dt>=2&&(bt+=2,dt>>>=2),bt+dt},_e.prototype._zeroBits=function(ct){if(ct===0)return 26;var dt=ct,bt=0;return dt&8191||(bt+=13,dt>>>=13),dt&127||(bt+=7,dt>>>=7),dt&15||(bt+=4,dt>>>=4),dt&3||(bt+=2,dt>>>=2),dt&1||bt++,bt},_e.prototype.bitLength=function(){var ct=this.words[this.length-1],dt=this._countBits(ct);return(this.length-1)*26+dt};function It(pt){for(var ct=new Array(pt.bitLength()),dt=0;dt<ct.length;dt++){var bt=dt/26|0,St=dt%26;ct[dt]=pt.words[bt]>>>St&1}return ct}_e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ct=0,dt=0;dt<this.length;dt++){var bt=this._zeroBits(this.words[dt]);if(ct+=bt,bt!==26)break}return ct},_e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},_e.prototype.toTwos=function(ct){return this.negative!==0?this.abs().inotn(ct).iaddn(1):this.clone()},_e.prototype.fromTwos=function(ct){return this.testn(ct-1)?this.notn(ct).iaddn(1).ineg():this.clone()},_e.prototype.isNeg=function(){return this.negative!==0},_e.prototype.neg=function(){return this.clone().ineg()},_e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},_e.prototype.iuor=function(ct){for(;this.length<ct.length;)this.words[this.length++]=0;for(var dt=0;dt<ct.length;dt++)this.words[dt]=this.words[dt]|ct.words[dt];return this._strip()},_e.prototype.ior=function(ct){return $((this.negative|ct.negative)===0),this.iuor(ct)},_e.prototype.or=function(ct){return this.length>ct.length?this.clone().ior(ct):ct.clone().ior(this)},_e.prototype.uor=function(ct){return this.length>ct.length?this.clone().iuor(ct):ct.clone().iuor(this)},_e.prototype.iuand=function(ct){var dt;this.length>ct.length?dt=ct:dt=this;for(var bt=0;bt<dt.length;bt++)this.words[bt]=this.words[bt]&ct.words[bt];return this.length=dt.length,this._strip()},_e.prototype.iand=function(ct){return $((this.negative|ct.negative)===0),this.iuand(ct)},_e.prototype.and=function(ct){return this.length>ct.length?this.clone().iand(ct):ct.clone().iand(this)},_e.prototype.uand=function(ct){return this.length>ct.length?this.clone().iuand(ct):ct.clone().iuand(this)},_e.prototype.iuxor=function(ct){var dt,bt;this.length>ct.length?(dt=this,bt=ct):(dt=ct,bt=this);for(var St=0;St<bt.length;St++)this.words[St]=dt.words[St]^bt.words[St];if(this!==dt)for(;St<dt.length;St++)this.words[St]=dt.words[St];return this.length=dt.length,this._strip()},_e.prototype.ixor=function(ct){return $((this.negative|ct.negative)===0),this.iuxor(ct)},_e.prototype.xor=function(ct){return this.length>ct.length?this.clone().ixor(ct):ct.clone().ixor(this)},_e.prototype.uxor=function(ct){return this.length>ct.length?this.clone().iuxor(ct):ct.clone().iuxor(this)},_e.prototype.inotn=function(ct){$(typeof ct=="number"&&ct>=0);var dt=Math.ceil(ct/26)|0,bt=ct%26;this._expand(dt),bt>0&&dt--;for(var St=0;St<dt;St++)this.words[St]=~this.words[St]&67108863;return bt>0&&(this.words[St]=~this.words[St]&67108863>>26-bt),this._strip()},_e.prototype.notn=function(ct){return this.clone().inotn(ct)},_e.prototype.setn=function(ct,dt){$(typeof ct=="number"&&ct>=0);var bt=ct/26|0,St=ct%26;return this._expand(bt+1),dt?this.words[bt]=this.words[bt]|1<<St:this.words[bt]=this.words[bt]&~(1<<St),this._strip()},_e.prototype.iadd=function(ct){var dt;if(this.negative!==0&&ct.negative===0)return this.negative=0,dt=this.isub(ct),this.negative^=1,this._normSign();if(this.negative===0&&ct.negative!==0)return ct.negative=0,dt=this.isub(ct),ct.negative=1,dt._normSign();var bt,St;this.length>ct.length?(bt=this,St=ct):(bt=ct,St=this);for(var xt=0,wt=0;wt<St.length;wt++)dt=(bt.words[wt]|0)+(St.words[wt]|0)+xt,this.words[wt]=dt&67108863,xt=dt>>>26;for(;xt!==0&&wt<bt.length;wt++)dt=(bt.words[wt]|0)+xt,this.words[wt]=dt&67108863,xt=dt>>>26;if(this.length=bt.length,xt!==0)this.words[this.length]=xt,this.length++;else if(bt!==this)for(;wt<bt.length;wt++)this.words[wt]=bt.words[wt];return this},_e.prototype.add=function(ct){var dt;return ct.negative!==0&&this.negative===0?(ct.negative=0,dt=this.sub(ct),ct.negative^=1,dt):ct.negative===0&&this.negative!==0?(this.negative=0,dt=ct.sub(this),this.negative=1,dt):this.length>ct.length?this.clone().iadd(ct):ct.clone().iadd(this)},_e.prototype.isub=function(ct){if(ct.negative!==0){ct.negative=0;var dt=this.iadd(ct);return ct.negative=1,dt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ct),this.negative=1,this._normSign();var bt=this.cmp(ct);if(bt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var St,xt;bt>0?(St=this,xt=ct):(St=ct,xt=this);for(var wt=0,lt=0;lt<xt.length;lt++)dt=(St.words[lt]|0)-(xt.words[lt]|0)+wt,wt=dt>>26,this.words[lt]=dt&67108863;for(;wt!==0&<<St.length;lt++)dt=(St.words[lt]|0)+wt,wt=dt>>26,this.words[lt]=dt&67108863;if(wt===0&<<St.length&&St!==this)for(;lt<St.length;lt++)this.words[lt]=St.words[lt];return this.length=Math.max(this.length,lt),St!==this&&(this.negative=1),this._strip()},_e.prototype.sub=function(ct){return this.clone().isub(ct)};function gt(pt,ct,dt){dt.negative=ct.negative^pt.negative;var bt=pt.length+ct.length|0;dt.length=bt,bt=bt-1|0;var St=pt.words[0]|0,xt=ct.words[0]|0,wt=St*xt,lt=wt&67108863,_t=wt/67108864|0;dt.words[0]=lt;for(var $t=1;$t<bt;$t++){for(var Et=_t>>>26,Dt=_t&67108863,er=Math.min($t,ct.length-1),qt=Math.max(0,$t-pt.length+1);qt<=er;qt++){var Pt=$t-qt|0;St=pt.words[Pt]|0,xt=ct.words[qt]|0,wt=St*xt+Dt,Et+=wt/67108864|0,Dt=wt&67108863}dt.words[$t]=Dt|0,_t=Et|0}return _t!==0?dt.words[$t]=_t|0:dt.length--,dt._strip()}var vt=function(ct,dt,bt){var St=ct.words,xt=dt.words,wt=bt.words,lt=0,_t,$t,Et,Dt=St[0]|0,er=Dt&8191,qt=Dt>>>13,Pt=St[1]|0,Lt=Pt&8191,Jt=Pt>>>13,Ot=St[2]|0,At=Ot&8191,kt=Ot>>>13,Kt=St[3]|0,Ht=Kt&8191,Xt=Kt>>>13,Zt=St[4]|0,Gt=Zt&8191,tr=Zt>>>13,Yt=St[5]|0,rr=Yt&8191,ir=Yt>>>13,fr=St[6]|0,pr=fr&8191,yr=fr>>>13,br=St[7]|0,ar=br&8191,lr=br>>>13,dr=St[8]|0,gr=dr&8191,Ft=dr>>>13,Ct=St[9]|0,Mt=Ct&8191,Wt=Ct>>>13,nr=xt[0]|0,ur=nr&8191,cr=nr>>>13,vr=xt[1]|0,xr=vr&8191,wr=vr>>>13,Sr=xt[2]|0,Er=Sr&8191,Ar=Sr>>>13,Dr=xt[3]|0,Lr=Dr&8191,kr=Dr>>>13,Fr=xt[4]|0,Ur=Fr&8191,Rr=Fr>>>13,Kr=xt[5]|0,qr=Kr&8191,Ir=Kr>>>13,Hr=xt[6]|0,Gr=Hr&8191,Cr=Hr>>>13,Vr=xt[7]|0,Wr=Vr&8191,Pr=Vr>>>13,Yr=xt[8]|0,Jr=Yr&8191,Mr=Yr>>>13,Xr=xt[9]|0,jr=Xr&8191,Nr=Xr>>>13;bt.negative=ct.negative^dt.negative,bt.length=19,_t=Math.imul(er,ur),$t=Math.imul(er,cr),$t=$t+Math.imul(qt,ur)|0,Et=Math.imul(qt,cr);var kn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(kn>>>26)|0,kn&=67108863,_t=Math.imul(Lt,ur),$t=Math.imul(Lt,cr),$t=$t+Math.imul(Jt,ur)|0,Et=Math.imul(Jt,cr),_t=_t+Math.imul(er,xr)|0,$t=$t+Math.imul(er,wr)|0,$t=$t+Math.imul(qt,xr)|0,Et=Et+Math.imul(qt,wr)|0;var Rn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,_t=Math.imul(At,ur),$t=Math.imul(At,cr),$t=$t+Math.imul(kt,ur)|0,Et=Math.imul(kt,cr),_t=_t+Math.imul(Lt,xr)|0,$t=$t+Math.imul(Lt,wr)|0,$t=$t+Math.imul(Jt,xr)|0,Et=Et+Math.imul(Jt,wr)|0,_t=_t+Math.imul(er,Er)|0,$t=$t+Math.imul(er,Ar)|0,$t=$t+Math.imul(qt,Er)|0,Et=Et+Math.imul(qt,Ar)|0;var In=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(In>>>26)|0,In&=67108863,_t=Math.imul(Ht,ur),$t=Math.imul(Ht,cr),$t=$t+Math.imul(Xt,ur)|0,Et=Math.imul(Xt,cr),_t=_t+Math.imul(At,xr)|0,$t=$t+Math.imul(At,wr)|0,$t=$t+Math.imul(kt,xr)|0,Et=Et+Math.imul(kt,wr)|0,_t=_t+Math.imul(Lt,Er)|0,$t=$t+Math.imul(Lt,Ar)|0,$t=$t+Math.imul(Jt,Er)|0,Et=Et+Math.imul(Jt,Ar)|0,_t=_t+Math.imul(er,Lr)|0,$t=$t+Math.imul(er,kr)|0,$t=$t+Math.imul(qt,Lr)|0,Et=Et+Math.imul(qt,kr)|0;var Cn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,_t=Math.imul(Gt,ur),$t=Math.imul(Gt,cr),$t=$t+Math.imul(tr,ur)|0,Et=Math.imul(tr,cr),_t=_t+Math.imul(Ht,xr)|0,$t=$t+Math.imul(Ht,wr)|0,$t=$t+Math.imul(Xt,xr)|0,Et=Et+Math.imul(Xt,wr)|0,_t=_t+Math.imul(At,Er)|0,$t=$t+Math.imul(At,Ar)|0,$t=$t+Math.imul(kt,Er)|0,Et=Et+Math.imul(kt,Ar)|0,_t=_t+Math.imul(Lt,Lr)|0,$t=$t+Math.imul(Lt,kr)|0,$t=$t+Math.imul(Jt,Lr)|0,Et=Et+Math.imul(Jt,kr)|0,_t=_t+Math.imul(er,Ur)|0,$t=$t+Math.imul(er,Rr)|0,$t=$t+Math.imul(qt,Ur)|0,Et=Et+Math.imul(qt,Rr)|0;var Pn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,_t=Math.imul(rr,ur),$t=Math.imul(rr,cr),$t=$t+Math.imul(ir,ur)|0,Et=Math.imul(ir,cr),_t=_t+Math.imul(Gt,xr)|0,$t=$t+Math.imul(Gt,wr)|0,$t=$t+Math.imul(tr,xr)|0,Et=Et+Math.imul(tr,wr)|0,_t=_t+Math.imul(Ht,Er)|0,$t=$t+Math.imul(Ht,Ar)|0,$t=$t+Math.imul(Xt,Er)|0,Et=Et+Math.imul(Xt,Ar)|0,_t=_t+Math.imul(At,Lr)|0,$t=$t+Math.imul(At,kr)|0,$t=$t+Math.imul(kt,Lr)|0,Et=Et+Math.imul(kt,kr)|0,_t=_t+Math.imul(Lt,Ur)|0,$t=$t+Math.imul(Lt,Rr)|0,$t=$t+Math.imul(Jt,Ur)|0,Et=Et+Math.imul(Jt,Rr)|0,_t=_t+Math.imul(er,qr)|0,$t=$t+Math.imul(er,Ir)|0,$t=$t+Math.imul(qt,qr)|0,Et=Et+Math.imul(qt,Ir)|0;var Mn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,_t=Math.imul(pr,ur),$t=Math.imul(pr,cr),$t=$t+Math.imul(yr,ur)|0,Et=Math.imul(yr,cr),_t=_t+Math.imul(rr,xr)|0,$t=$t+Math.imul(rr,wr)|0,$t=$t+Math.imul(ir,xr)|0,Et=Et+Math.imul(ir,wr)|0,_t=_t+Math.imul(Gt,Er)|0,$t=$t+Math.imul(Gt,Ar)|0,$t=$t+Math.imul(tr,Er)|0,Et=Et+Math.imul(tr,Ar)|0,_t=_t+Math.imul(Ht,Lr)|0,$t=$t+Math.imul(Ht,kr)|0,$t=$t+Math.imul(Xt,Lr)|0,Et=Et+Math.imul(Xt,kr)|0,_t=_t+Math.imul(At,Ur)|0,$t=$t+Math.imul(At,Rr)|0,$t=$t+Math.imul(kt,Ur)|0,Et=Et+Math.imul(kt,Rr)|0,_t=_t+Math.imul(Lt,qr)|0,$t=$t+Math.imul(Lt,Ir)|0,$t=$t+Math.imul(Jt,qr)|0,Et=Et+Math.imul(Jt,Ir)|0,_t=_t+Math.imul(er,Gr)|0,$t=$t+Math.imul(er,Cr)|0,$t=$t+Math.imul(qt,Gr)|0,Et=Et+Math.imul(qt,Cr)|0;var Tn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,_t=Math.imul(ar,ur),$t=Math.imul(ar,cr),$t=$t+Math.imul(lr,ur)|0,Et=Math.imul(lr,cr),_t=_t+Math.imul(pr,xr)|0,$t=$t+Math.imul(pr,wr)|0,$t=$t+Math.imul(yr,xr)|0,Et=Et+Math.imul(yr,wr)|0,_t=_t+Math.imul(rr,Er)|0,$t=$t+Math.imul(rr,Ar)|0,$t=$t+Math.imul(ir,Er)|0,Et=Et+Math.imul(ir,Ar)|0,_t=_t+Math.imul(Gt,Lr)|0,$t=$t+Math.imul(Gt,kr)|0,$t=$t+Math.imul(tr,Lr)|0,Et=Et+Math.imul(tr,kr)|0,_t=_t+Math.imul(Ht,Ur)|0,$t=$t+Math.imul(Ht,Rr)|0,$t=$t+Math.imul(Xt,Ur)|0,Et=Et+Math.imul(Xt,Rr)|0,_t=_t+Math.imul(At,qr)|0,$t=$t+Math.imul(At,Ir)|0,$t=$t+Math.imul(kt,qr)|0,Et=Et+Math.imul(kt,Ir)|0,_t=_t+Math.imul(Lt,Gr)|0,$t=$t+Math.imul(Lt,Cr)|0,$t=$t+Math.imul(Jt,Gr)|0,Et=Et+Math.imul(Jt,Cr)|0,_t=_t+Math.imul(er,Wr)|0,$t=$t+Math.imul(er,Pr)|0,$t=$t+Math.imul(qt,Wr)|0,Et=Et+Math.imul(qt,Pr)|0;var On=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(On>>>26)|0,On&=67108863,_t=Math.imul(gr,ur),$t=Math.imul(gr,cr),$t=$t+Math.imul(Ft,ur)|0,Et=Math.imul(Ft,cr),_t=_t+Math.imul(ar,xr)|0,$t=$t+Math.imul(ar,wr)|0,$t=$t+Math.imul(lr,xr)|0,Et=Et+Math.imul(lr,wr)|0,_t=_t+Math.imul(pr,Er)|0,$t=$t+Math.imul(pr,Ar)|0,$t=$t+Math.imul(yr,Er)|0,Et=Et+Math.imul(yr,Ar)|0,_t=_t+Math.imul(rr,Lr)|0,$t=$t+Math.imul(rr,kr)|0,$t=$t+Math.imul(ir,Lr)|0,Et=Et+Math.imul(ir,kr)|0,_t=_t+Math.imul(Gt,Ur)|0,$t=$t+Math.imul(Gt,Rr)|0,$t=$t+Math.imul(tr,Ur)|0,Et=Et+Math.imul(tr,Rr)|0,_t=_t+Math.imul(Ht,qr)|0,$t=$t+Math.imul(Ht,Ir)|0,$t=$t+Math.imul(Xt,qr)|0,Et=Et+Math.imul(Xt,Ir)|0,_t=_t+Math.imul(At,Gr)|0,$t=$t+Math.imul(At,Cr)|0,$t=$t+Math.imul(kt,Gr)|0,Et=Et+Math.imul(kt,Cr)|0,_t=_t+Math.imul(Lt,Wr)|0,$t=$t+Math.imul(Lt,Pr)|0,$t=$t+Math.imul(Jt,Wr)|0,Et=Et+Math.imul(Jt,Pr)|0,_t=_t+Math.imul(er,Jr)|0,$t=$t+Math.imul(er,Mr)|0,$t=$t+Math.imul(qt,Jr)|0,Et=Et+Math.imul(qt,Mr)|0;var Bn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,_t=Math.imul(Mt,ur),$t=Math.imul(Mt,cr),$t=$t+Math.imul(Wt,ur)|0,Et=Math.imul(Wt,cr),_t=_t+Math.imul(gr,xr)|0,$t=$t+Math.imul(gr,wr)|0,$t=$t+Math.imul(Ft,xr)|0,Et=Et+Math.imul(Ft,wr)|0,_t=_t+Math.imul(ar,Er)|0,$t=$t+Math.imul(ar,Ar)|0,$t=$t+Math.imul(lr,Er)|0,Et=Et+Math.imul(lr,Ar)|0,_t=_t+Math.imul(pr,Lr)|0,$t=$t+Math.imul(pr,kr)|0,$t=$t+Math.imul(yr,Lr)|0,Et=Et+Math.imul(yr,kr)|0,_t=_t+Math.imul(rr,Ur)|0,$t=$t+Math.imul(rr,Rr)|0,$t=$t+Math.imul(ir,Ur)|0,Et=Et+Math.imul(ir,Rr)|0,_t=_t+Math.imul(Gt,qr)|0,$t=$t+Math.imul(Gt,Ir)|0,$t=$t+Math.imul(tr,qr)|0,Et=Et+Math.imul(tr,Ir)|0,_t=_t+Math.imul(Ht,Gr)|0,$t=$t+Math.imul(Ht,Cr)|0,$t=$t+Math.imul(Xt,Gr)|0,Et=Et+Math.imul(Xt,Cr)|0,_t=_t+Math.imul(At,Wr)|0,$t=$t+Math.imul(At,Pr)|0,$t=$t+Math.imul(kt,Wr)|0,Et=Et+Math.imul(kt,Pr)|0,_t=_t+Math.imul(Lt,Jr)|0,$t=$t+Math.imul(Lt,Mr)|0,$t=$t+Math.imul(Jt,Jr)|0,Et=Et+Math.imul(Jt,Mr)|0,_t=_t+Math.imul(er,jr)|0,$t=$t+Math.imul(er,Nr)|0,$t=$t+Math.imul(qt,jr)|0,Et=Et+Math.imul(qt,Nr)|0;var jn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(jn>>>26)|0,jn&=67108863,_t=Math.imul(Mt,xr),$t=Math.imul(Mt,wr),$t=$t+Math.imul(Wt,xr)|0,Et=Math.imul(Wt,wr),_t=_t+Math.imul(gr,Er)|0,$t=$t+Math.imul(gr,Ar)|0,$t=$t+Math.imul(Ft,Er)|0,Et=Et+Math.imul(Ft,Ar)|0,_t=_t+Math.imul(ar,Lr)|0,$t=$t+Math.imul(ar,kr)|0,$t=$t+Math.imul(lr,Lr)|0,Et=Et+Math.imul(lr,kr)|0,_t=_t+Math.imul(pr,Ur)|0,$t=$t+Math.imul(pr,Rr)|0,$t=$t+Math.imul(yr,Ur)|0,Et=Et+Math.imul(yr,Rr)|0,_t=_t+Math.imul(rr,qr)|0,$t=$t+Math.imul(rr,Ir)|0,$t=$t+Math.imul(ir,qr)|0,Et=Et+Math.imul(ir,Ir)|0,_t=_t+Math.imul(Gt,Gr)|0,$t=$t+Math.imul(Gt,Cr)|0,$t=$t+Math.imul(tr,Gr)|0,Et=Et+Math.imul(tr,Cr)|0,_t=_t+Math.imul(Ht,Wr)|0,$t=$t+Math.imul(Ht,Pr)|0,$t=$t+Math.imul(Xt,Wr)|0,Et=Et+Math.imul(Xt,Pr)|0,_t=_t+Math.imul(At,Jr)|0,$t=$t+Math.imul(At,Mr)|0,$t=$t+Math.imul(kt,Jr)|0,Et=Et+Math.imul(kt,Mr)|0,_t=_t+Math.imul(Lt,jr)|0,$t=$t+Math.imul(Lt,Nr)|0,$t=$t+Math.imul(Jt,jr)|0,Et=Et+Math.imul(Jt,Nr)|0;var Nn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,_t=Math.imul(Mt,Er),$t=Math.imul(Mt,Ar),$t=$t+Math.imul(Wt,Er)|0,Et=Math.imul(Wt,Ar),_t=_t+Math.imul(gr,Lr)|0,$t=$t+Math.imul(gr,kr)|0,$t=$t+Math.imul(Ft,Lr)|0,Et=Et+Math.imul(Ft,kr)|0,_t=_t+Math.imul(ar,Ur)|0,$t=$t+Math.imul(ar,Rr)|0,$t=$t+Math.imul(lr,Ur)|0,Et=Et+Math.imul(lr,Rr)|0,_t=_t+Math.imul(pr,qr)|0,$t=$t+Math.imul(pr,Ir)|0,$t=$t+Math.imul(yr,qr)|0,Et=Et+Math.imul(yr,Ir)|0,_t=_t+Math.imul(rr,Gr)|0,$t=$t+Math.imul(rr,Cr)|0,$t=$t+Math.imul(ir,Gr)|0,Et=Et+Math.imul(ir,Cr)|0,_t=_t+Math.imul(Gt,Wr)|0,$t=$t+Math.imul(Gt,Pr)|0,$t=$t+Math.imul(tr,Wr)|0,Et=Et+Math.imul(tr,Pr)|0,_t=_t+Math.imul(Ht,Jr)|0,$t=$t+Math.imul(Ht,Mr)|0,$t=$t+Math.imul(Xt,Jr)|0,Et=Et+Math.imul(Xt,Mr)|0,_t=_t+Math.imul(At,jr)|0,$t=$t+Math.imul(At,Nr)|0,$t=$t+Math.imul(kt,jr)|0,Et=Et+Math.imul(kt,Nr)|0;var Dn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,_t=Math.imul(Mt,Lr),$t=Math.imul(Mt,kr),$t=$t+Math.imul(Wt,Lr)|0,Et=Math.imul(Wt,kr),_t=_t+Math.imul(gr,Ur)|0,$t=$t+Math.imul(gr,Rr)|0,$t=$t+Math.imul(Ft,Ur)|0,Et=Et+Math.imul(Ft,Rr)|0,_t=_t+Math.imul(ar,qr)|0,$t=$t+Math.imul(ar,Ir)|0,$t=$t+Math.imul(lr,qr)|0,Et=Et+Math.imul(lr,Ir)|0,_t=_t+Math.imul(pr,Gr)|0,$t=$t+Math.imul(pr,Cr)|0,$t=$t+Math.imul(yr,Gr)|0,Et=Et+Math.imul(yr,Cr)|0,_t=_t+Math.imul(rr,Wr)|0,$t=$t+Math.imul(rr,Pr)|0,$t=$t+Math.imul(ir,Wr)|0,Et=Et+Math.imul(ir,Pr)|0,_t=_t+Math.imul(Gt,Jr)|0,$t=$t+Math.imul(Gt,Mr)|0,$t=$t+Math.imul(tr,Jr)|0,Et=Et+Math.imul(tr,Mr)|0,_t=_t+Math.imul(Ht,jr)|0,$t=$t+Math.imul(Ht,Nr)|0,$t=$t+Math.imul(Xt,jr)|0,Et=Et+Math.imul(Xt,Nr)|0;var Ln=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Ln>>>26)|0,Ln&=67108863,_t=Math.imul(Mt,Ur),$t=Math.imul(Mt,Rr),$t=$t+Math.imul(Wt,Ur)|0,Et=Math.imul(Wt,Rr),_t=_t+Math.imul(gr,qr)|0,$t=$t+Math.imul(gr,Ir)|0,$t=$t+Math.imul(Ft,qr)|0,Et=Et+Math.imul(Ft,Ir)|0,_t=_t+Math.imul(ar,Gr)|0,$t=$t+Math.imul(ar,Cr)|0,$t=$t+Math.imul(lr,Gr)|0,Et=Et+Math.imul(lr,Cr)|0,_t=_t+Math.imul(pr,Wr)|0,$t=$t+Math.imul(pr,Pr)|0,$t=$t+Math.imul(yr,Wr)|0,Et=Et+Math.imul(yr,Pr)|0,_t=_t+Math.imul(rr,Jr)|0,$t=$t+Math.imul(rr,Mr)|0,$t=$t+Math.imul(ir,Jr)|0,Et=Et+Math.imul(ir,Mr)|0,_t=_t+Math.imul(Gt,jr)|0,$t=$t+Math.imul(Gt,Nr)|0,$t=$t+Math.imul(tr,jr)|0,Et=Et+Math.imul(tr,Nr)|0;var Fn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,_t=Math.imul(Mt,qr),$t=Math.imul(Mt,Ir),$t=$t+Math.imul(Wt,qr)|0,Et=Math.imul(Wt,Ir),_t=_t+Math.imul(gr,Gr)|0,$t=$t+Math.imul(gr,Cr)|0,$t=$t+Math.imul(Ft,Gr)|0,Et=Et+Math.imul(Ft,Cr)|0,_t=_t+Math.imul(ar,Wr)|0,$t=$t+Math.imul(ar,Pr)|0,$t=$t+Math.imul(lr,Wr)|0,Et=Et+Math.imul(lr,Pr)|0,_t=_t+Math.imul(pr,Jr)|0,$t=$t+Math.imul(pr,Mr)|0,$t=$t+Math.imul(yr,Jr)|0,Et=Et+Math.imul(yr,Mr)|0,_t=_t+Math.imul(rr,jr)|0,$t=$t+Math.imul(rr,Nr)|0,$t=$t+Math.imul(ir,jr)|0,Et=Et+Math.imul(ir,Nr)|0;var Un=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Un>>>26)|0,Un&=67108863,_t=Math.imul(Mt,Gr),$t=Math.imul(Mt,Cr),$t=$t+Math.imul(Wt,Gr)|0,Et=Math.imul(Wt,Cr),_t=_t+Math.imul(gr,Wr)|0,$t=$t+Math.imul(gr,Pr)|0,$t=$t+Math.imul(Ft,Wr)|0,Et=Et+Math.imul(Ft,Pr)|0,_t=_t+Math.imul(ar,Jr)|0,$t=$t+Math.imul(ar,Mr)|0,$t=$t+Math.imul(lr,Jr)|0,Et=Et+Math.imul(lr,Mr)|0,_t=_t+Math.imul(pr,jr)|0,$t=$t+Math.imul(pr,Nr)|0,$t=$t+Math.imul(yr,jr)|0,Et=Et+Math.imul(yr,Nr)|0;var zn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(zn>>>26)|0,zn&=67108863,_t=Math.imul(Mt,Wr),$t=Math.imul(Mt,Pr),$t=$t+Math.imul(Wt,Wr)|0,Et=Math.imul(Wt,Pr),_t=_t+Math.imul(gr,Jr)|0,$t=$t+Math.imul(gr,Mr)|0,$t=$t+Math.imul(Ft,Jr)|0,Et=Et+Math.imul(Ft,Mr)|0,_t=_t+Math.imul(ar,jr)|0,$t=$t+Math.imul(ar,Nr)|0,$t=$t+Math.imul(lr,jr)|0,Et=Et+Math.imul(lr,Nr)|0;var Kn=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,_t=Math.imul(Mt,Jr),$t=Math.imul(Mt,Mr),$t=$t+Math.imul(Wt,Jr)|0,Et=Math.imul(Wt,Mr),_t=_t+Math.imul(gr,jr)|0,$t=$t+Math.imul(gr,Nr)|0,$t=$t+Math.imul(Ft,jr)|0,Et=Et+Math.imul(Ft,Nr)|0;var vo=(lt+_t|0)+(($t&8191)<<13)|0;lt=(Et+($t>>>13)|0)+(vo>>>26)|0,vo&=67108863,_t=Math.imul(Mt,jr),$t=Math.imul(Mt,Nr),$t=$t+Math.imul(Wt,jr)|0,Et=Math.imul(Wt,Nr);var bo=(lt+_t|0)+(($t&8191)<<13)|0;return lt=(Et+($t>>>13)|0)+(bo>>>26)|0,bo&=67108863,wt[0]=kn,wt[1]=Rn,wt[2]=In,wt[3]=Cn,wt[4]=Pn,wt[5]=Mn,wt[6]=Tn,wt[7]=On,wt[8]=Bn,wt[9]=jn,wt[10]=Nn,wt[11]=Dn,wt[12]=Ln,wt[13]=Fn,wt[14]=Un,wt[15]=zn,wt[16]=Kn,wt[17]=vo,wt[18]=bo,lt!==0&&(wt[19]=lt,bt.length++),bt};Math.imul||(vt=gt);function Rt(pt,ct,dt){dt.negative=ct.negative^pt.negative,dt.length=pt.length+ct.length;for(var bt=0,St=0,xt=0;xt<dt.length-1;xt++){var wt=St;St=0;for(var lt=bt&67108863,_t=Math.min(xt,ct.length-1),$t=Math.max(0,xt-pt.length+1);$t<=_t;$t++){var Et=xt-$t,Dt=pt.words[Et]|0,er=ct.words[$t]|0,qt=Dt*er,Pt=qt&67108863;wt=wt+(qt/67108864|0)|0,Pt=Pt+lt|0,lt=Pt&67108863,wt=wt+(Pt>>>26)|0,St+=wt>>>26,wt&=67108863}dt.words[xt]=lt,bt=wt,wt=St}return bt!==0?dt.words[xt]=bt:dt.length--,dt._strip()}function Tt(pt,ct,dt){return Rt(pt,ct,dt)}_e.prototype.mulTo=function(ct,dt){var bt,St=this.length+ct.length;return this.length===10&&ct.length===10?bt=vt(this,ct,dt):St<63?bt=gt(this,ct,dt):St<1024?bt=Rt(this,ct,dt):bt=Tt(this,ct,dt),bt},_e.prototype.mul=function(ct){var dt=new _e(null);return dt.words=new Array(this.length+ct.length),this.mulTo(ct,dt)},_e.prototype.mulf=function(ct){var dt=new _e(null);return dt.words=new Array(this.length+ct.length),Tt(this,ct,dt)},_e.prototype.imul=function(ct){return this.clone().mulTo(ct,this)},_e.prototype.imuln=function(ct){var dt=ct<0;dt&&(ct=-ct),$(typeof ct=="number"),$(ct<67108864);for(var bt=0,St=0;St<this.length;St++){var xt=(this.words[St]|0)*ct,wt=(xt&67108863)+(bt&67108863);bt>>=26,bt+=xt/67108864|0,bt+=wt>>>26,this.words[St]=wt&67108863}return bt!==0&&(this.words[St]=bt,this.length++),dt?this.ineg():this},_e.prototype.muln=function(ct){return this.clone().imuln(ct)},_e.prototype.sqr=function(){return this.mul(this)},_e.prototype.isqr=function(){return this.imul(this.clone())},_e.prototype.pow=function(ct){var dt=It(ct);if(dt.length===0)return new _e(1);for(var bt=this,St=0;St<dt.length&&dt[St]===0;St++,bt=bt.sqr());if(++St<dt.length)for(var xt=bt.sqr();St<dt.length;St++,xt=xt.sqr())dt[St]!==0&&(bt=bt.mul(xt));return bt},_e.prototype.iushln=function(ct){$(typeof ct=="number"&&ct>=0);var dt=ct%26,bt=(ct-dt)/26,St=67108863>>>26-dt<<26-dt,xt;if(dt!==0){var wt=0;for(xt=0;xt<this.length;xt++){var lt=this.words[xt]&St,_t=(this.words[xt]|0)-lt<<dt;this.words[xt]=_t|wt,wt=lt>>>26-dt}wt&&(this.words[xt]=wt,this.length++)}if(bt!==0){for(xt=this.length-1;xt>=0;xt--)this.words[xt+bt]=this.words[xt];for(xt=0;xt<bt;xt++)this.words[xt]=0;this.length+=bt}return this._strip()},_e.prototype.ishln=function(ct){return $(this.negative===0),this.iushln(ct)},_e.prototype.iushrn=function(ct,dt,bt){$(typeof ct=="number"&&ct>=0);var St;dt?St=(dt-dt%26)/26:St=0;var xt=ct%26,wt=Math.min((ct-xt)/26,this.length),lt=67108863^67108863>>>xt<<xt,_t=bt;if(St-=wt,St=Math.max(0,St),_t){for(var $t=0;$t<wt;$t++)_t.words[$t]=this.words[$t];_t.length=wt}if(wt!==0)if(this.length>wt)for(this.length-=wt,$t=0;$t<this.length;$t++)this.words[$t]=this.words[$t+wt];else this.words[0]=0,this.length=1;var Et=0;for($t=this.length-1;$t>=0&&(Et!==0||$t>=St);$t--){var Dt=this.words[$t]|0;this.words[$t]=Et<<26-xt|Dt>>>xt,Et=Dt<}return _t&&Et!==0&&(_t.words[_t.length++]=Et),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},_e.prototype.ishrn=function(ct,dt,bt){return $(this.negative===0),this.iushrn(ct,dt,bt)},_e.prototype.shln=function(ct){return this.clone().ishln(ct)},_e.prototype.ushln=function(ct){return this.clone().iushln(ct)},_e.prototype.shrn=function(ct){return this.clone().ishrn(ct)},_e.prototype.ushrn=function(ct){return this.clone().iushrn(ct)},_e.prototype.testn=function(ct){$(typeof ct=="number"&&ct>=0);var dt=ct%26,bt=(ct-dt)/26,St=1<<dt;if(this.length<=bt)return!1;var xt=this.words[bt];return!!(xt&St)},_e.prototype.imaskn=function(ct){$(typeof ct=="number"&&ct>=0);var dt=ct%26,bt=(ct-dt)/26;if($(this.negative===0,"imaskn works only with positive numbers"),this.length<=bt)return this;if(dt!==0&&bt++,this.length=Math.min(bt,this.length),dt!==0){var St=67108863^67108863>>>dt<<dt;this.words[this.length-1]&=St}return this._strip()},_e.prototype.maskn=function(ct){return this.clone().imaskn(ct)},_e.prototype.iaddn=function(ct){return $(typeof ct=="number"),$(ct<67108864),ct<0?this.isubn(-ct):this.negative!==0?this.length===1&&(this.words[0]|0)<=ct?(this.words[0]=ct-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(ct),this.negative=1,this):this._iaddn(ct)},_e.prototype._iaddn=function(ct){this.words[0]+=ct;for(var dt=0;dt<this.length&&this.words[dt]>=67108864;dt++)this.words[dt]-=67108864,dt===this.length-1?this.words[dt+1]=1:this.words[dt+1]++;return this.length=Math.max(this.length,dt+1),this},_e.prototype.isubn=function(ct){if($(typeof ct=="number"),$(ct<67108864),ct<0)return this.iaddn(-ct);if(this.negative!==0)return this.negative=0,this.iaddn(ct),this.negative=1,this;if(this.words[0]-=ct,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var dt=0;dt<this.length&&this.words[dt]<0;dt++)this.words[dt]+=67108864,this.words[dt+1]-=1;return this._strip()},_e.prototype.addn=function(ct){return this.clone().iaddn(ct)},_e.prototype.subn=function(ct){return this.clone().isubn(ct)},_e.prototype.iabs=function(){return this.negative=0,this},_e.prototype.abs=function(){return this.clone().iabs()},_e.prototype._ishlnsubmul=function(ct,dt,bt){var St=ct.length+bt,xt;this._expand(St);var wt,lt=0;for(xt=0;xt<ct.length;xt++){wt=(this.words[xt+bt]|0)+lt;var _t=(ct.words[xt]|0)*dt;wt-=_t&67108863,lt=(wt>>26)-(_t/67108864|0),this.words[xt+bt]=wt&67108863}for(;xt<this.length-bt;xt++)wt=(this.words[xt+bt]|0)+lt,lt=wt>>26,this.words[xt+bt]=wt&67108863;if(lt===0)return this._strip();for($(lt===-1),lt=0,xt=0;xt<this.length;xt++)wt=-(this.words[xt]|0)+lt,lt=wt>>26,this.words[xt]=wt&67108863;return this.negative=1,this._strip()},_e.prototype._wordDiv=function(ct,dt){var bt=this.length-ct.length,St=this.clone(),xt=ct,wt=xt.words[xt.length-1]|0,lt=this._countBits(wt);bt=26-lt,bt!==0&&(xt=xt.ushln(bt),St.iushln(bt),wt=xt.words[xt.length-1]|0);var _t=St.length-xt.length,$t;if(dt!=="mod"){$t=new _e(null),$t.length=_t+1,$t.words=new Array($t.length);for(var Et=0;Et<$t.length;Et++)$t.words[Et]=0}var Dt=St.clone()._ishlnsubmul(xt,1,_t);Dt.negative===0&&(St=Dt,$t&&($t.words[_t]=1));for(var er=_t-1;er>=0;er--){var qt=(St.words[xt.length+er]|0)*67108864+(St.words[xt.length+er-1]|0);for(qt=Math.min(qt/wt|0,67108863),St._ishlnsubmul(xt,qt,er);St.negative!==0;)qt--,St.negative=0,St._ishlnsubmul(xt,1,er),St.isZero()||(St.negative^=1);$t&&($t.words[er]=qt)}return $t&&$t._strip(),St._strip(),dt!=="div"&&bt!==0&&St.iushrn(bt),{div:$t||null,mod:St}},_e.prototype.divmod=function(ct,dt,bt){if($(!ct.isZero()),this.isZero())return{div:new _e(0),mod:new _e(0)};var St,xt,wt;return this.negative!==0&&ct.negative===0?(wt=this.neg().divmod(ct,dt),dt!=="mod"&&(St=wt.div.neg()),dt!=="div"&&(xt=wt.mod.neg(),bt&&xt.negative!==0&&xt.iadd(ct)),{div:St,mod:xt}):this.negative===0&&ct.negative!==0?(wt=this.divmod(ct.neg(),dt),dt!=="mod"&&(St=wt.div.neg()),{div:St,mod:wt.mod}):this.negative&ct.negative?(wt=this.neg().divmod(ct.neg(),dt),dt!=="div"&&(xt=wt.mod.neg(),bt&&xt.negative!==0&&xt.isub(ct)),{div:wt.div,mod:xt}):ct.length>this.length||this.cmp(ct)<0?{div:new _e(0),mod:this}:ct.length===1?dt==="div"?{div:this.divn(ct.words[0]),mod:null}:dt==="mod"?{div:null,mod:new _e(this.modrn(ct.words[0]))}:{div:this.divn(ct.words[0]),mod:new _e(this.modrn(ct.words[0]))}:this._wordDiv(ct,dt)},_e.prototype.div=function(ct){return this.divmod(ct,"div",!1).div},_e.prototype.mod=function(ct){return this.divmod(ct,"mod",!1).mod},_e.prototype.umod=function(ct){return this.divmod(ct,"mod",!0).mod},_e.prototype.divRound=function(ct){var dt=this.divmod(ct);if(dt.mod.isZero())return dt.div;var bt=dt.div.negative!==0?dt.mod.isub(ct):dt.mod,St=ct.ushrn(1),xt=ct.andln(1),wt=bt.cmp(St);return wt<0||xt===1&&wt===0?dt.div:dt.div.negative!==0?dt.div.isubn(1):dt.div.iaddn(1)},_e.prototype.modrn=function(ct){var dt=ct<0;dt&&(ct=-ct),$(ct<=67108863);for(var bt=(1<<26)%ct,St=0,xt=this.length-1;xt>=0;xt--)St=(bt*St+(this.words[xt]|0))%ct;return dt?-St:St},_e.prototype.modn=function(ct){return this.modrn(ct)},_e.prototype.idivn=function(ct){var dt=ct<0;dt&&(ct=-ct),$(ct<=67108863);for(var bt=0,St=this.length-1;St>=0;St--){var xt=(this.words[St]|0)+bt*67108864;this.words[St]=xt/ct|0,bt=xt%ct}return this._strip(),dt?this.ineg():this},_e.prototype.divn=function(ct){return this.clone().idivn(ct)},_e.prototype.egcd=function(ct){$(ct.negative===0),$(!ct.isZero());var dt=this,bt=ct.clone();dt.negative!==0?dt=dt.umod(ct):dt=dt.clone();for(var St=new _e(1),xt=new _e(0),wt=new _e(0),lt=new _e(1),_t=0;dt.isEven()&&bt.isEven();)dt.iushrn(1),bt.iushrn(1),++_t;for(var $t=bt.clone(),Et=dt.clone();!dt.isZero();){for(var Dt=0,er=1;!(dt.words[0]&er)&&Dt<26;++Dt,er<<=1);if(Dt>0)for(dt.iushrn(Dt);Dt-- >0;)(St.isOdd()||xt.isOdd())&&(St.iadd($t),xt.isub(Et)),St.iushrn(1),xt.iushrn(1);for(var qt=0,Pt=1;!(bt.words[0]&Pt)&&qt<26;++qt,Pt<<=1);if(qt>0)for(bt.iushrn(qt);qt-- >0;)(wt.isOdd()||lt.isOdd())&&(wt.iadd($t),lt.isub(Et)),wt.iushrn(1),lt.iushrn(1);dt.cmp(bt)>=0?(dt.isub(bt),St.isub(wt),xt.isub(lt)):(bt.isub(dt),wt.isub(St),lt.isub(xt))}return{a:wt,b:lt,gcd:bt.iushln(_t)}},_e.prototype._invmp=function(ct){$(ct.negative===0),$(!ct.isZero());var dt=this,bt=ct.clone();dt.negative!==0?dt=dt.umod(ct):dt=dt.clone();for(var St=new _e(1),xt=new _e(0),wt=bt.clone();dt.cmpn(1)>0&&bt.cmpn(1)>0;){for(var lt=0,_t=1;!(dt.words[0]&_t)&<<26;++lt,_t<<=1);if(lt>0)for(dt.iushrn(lt);lt-- >0;)St.isOdd()&&St.iadd(wt),St.iushrn(1);for(var $t=0,Et=1;!(bt.words[0]&Et)&&$t<26;++$t,Et<<=1);if($t>0)for(bt.iushrn($t);$t-- >0;)xt.isOdd()&&xt.iadd(wt),xt.iushrn(1);dt.cmp(bt)>=0?(dt.isub(bt),St.isub(xt)):(bt.isub(dt),xt.isub(St))}var Dt;return dt.cmpn(1)===0?Dt=St:Dt=xt,Dt.cmpn(0)<0&&Dt.iadd(ct),Dt},_e.prototype.gcd=function(ct){if(this.isZero())return ct.abs();if(ct.isZero())return this.abs();var dt=this.clone(),bt=ct.clone();dt.negative=0,bt.negative=0;for(var St=0;dt.isEven()&&bt.isEven();St++)dt.iushrn(1),bt.iushrn(1);do{for(;dt.isEven();)dt.iushrn(1);for(;bt.isEven();)bt.iushrn(1);var xt=dt.cmp(bt);if(xt<0){var wt=dt;dt=bt,bt=wt}else if(xt===0||bt.cmpn(1)===0)break;dt.isub(bt)}while(!0);return bt.iushln(St)},_e.prototype.invm=function(ct){return this.egcd(ct).a.umod(ct)},_e.prototype.isEven=function(){return(this.words[0]&1)===0},_e.prototype.isOdd=function(){return(this.words[0]&1)===1},_e.prototype.andln=function(ct){return this.words[0]&ct},_e.prototype.bincn=function(ct){$(typeof ct=="number");var dt=ct%26,bt=(ct-dt)/26,St=1<<dt;if(this.length<=bt)return this._expand(bt+1),this.words[bt]|=St,this;for(var xt=St,wt=bt;xt!==0&&wt<this.length;wt++){var lt=this.words[wt]|0;lt+=xt,xt=lt>>>26,lt&=67108863,this.words[wt]=lt}return xt!==0&&(this.words[wt]=xt,this.length++),this},_e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},_e.prototype.cmpn=function(ct){var dt=ct<0;if(this.negative!==0&&!dt)return-1;if(this.negative===0&&dt)return 1;this._strip();var bt;if(this.length>1)bt=1;else{dt&&(ct=-ct),$(ct<=67108863,"Number is too big");var St=this.words[0]|0;bt=St===ct?0:St<ct?-1:1}return this.negative!==0?-bt|0:bt},_e.prototype.cmp=function(ct){if(this.negative!==0&&ct.negative===0)return-1;if(this.negative===0&&ct.negative!==0)return 1;var dt=this.ucmp(ct);return this.negative!==0?-dt|0:dt},_e.prototype.ucmp=function(ct){if(this.length>ct.length)return 1;if(this.length<ct.length)return-1;for(var dt=0,bt=this.length-1;bt>=0;bt--){var St=this.words[bt]|0,xt=ct.words[bt]|0;if(St!==xt){St<xt?dt=-1:St>xt&&(dt=1);break}}return dt},_e.prototype.gtn=function(ct){return this.cmpn(ct)===1},_e.prototype.gt=function(ct){return this.cmp(ct)===1},_e.prototype.gten=function(ct){return this.cmpn(ct)>=0},_e.prototype.gte=function(ct){return this.cmp(ct)>=0},_e.prototype.ltn=function(ct){return this.cmpn(ct)===-1},_e.prototype.lt=function(ct){return this.cmp(ct)===-1},_e.prototype.lten=function(ct){return this.cmpn(ct)<=0},_e.prototype.lte=function(ct){return this.cmp(ct)<=0},_e.prototype.eqn=function(ct){return this.cmpn(ct)===0},_e.prototype.eq=function(ct){return this.cmp(ct)===0},_e.red=function(ct){return new jt(ct)},_e.prototype.toRed=function(ct){return $(!this.red,"Already a number in reduction context"),$(this.negative===0,"red works only with positives"),ct.convertTo(this)._forceRed(ct)},_e.prototype.fromRed=function(){return $(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},_e.prototype._forceRed=function(ct){return this.red=ct,this},_e.prototype.forceRed=function(ct){return $(!this.red,"Already a number in reduction context"),this._forceRed(ct)},_e.prototype.redAdd=function(ct){return $(this.red,"redAdd works only with red numbers"),this.red.add(this,ct)},_e.prototype.redIAdd=function(ct){return $(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ct)},_e.prototype.redSub=function(ct){return $(this.red,"redSub works only with red numbers"),this.red.sub(this,ct)},_e.prototype.redISub=function(ct){return $(this.red,"redISub works only with red numbers"),this.red.isub(this,ct)},_e.prototype.redShl=function(ct){return $(this.red,"redShl works only with red numbers"),this.red.shl(this,ct)},_e.prototype.redMul=function(ct){return $(this.red,"redMul works only with red numbers"),this.red._verify2(this,ct),this.red.mul(this,ct)},_e.prototype.redIMul=function(ct){return $(this.red,"redMul works only with red numbers"),this.red._verify2(this,ct),this.red.imul(this,ct)},_e.prototype.redSqr=function(){return $(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},_e.prototype.redISqr=function(){return $(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},_e.prototype.redSqrt=function(){return $(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},_e.prototype.redInvm=function(){return $(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},_e.prototype.redNeg=function(){return $(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},_e.prototype.redPow=function(ct){return $(this.red&&!ct.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ct)};var Nt={k256:null,p224:null,p192:null,p25519:null};function Bt(pt,ct){this.name=pt,this.p=new _e(ct,16),this.n=this.p.bitLength(),this.k=new _e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Bt.prototype._tmp=function(){var ct=new _e(null);return ct.words=new Array(Math.ceil(this.n/13)),ct},Bt.prototype.ireduce=function(ct){var dt=ct,bt;do this.split(dt,this.tmp),dt=this.imulK(dt),dt=dt.iadd(this.tmp),bt=dt.bitLength();while(bt>this.n);var St=bt<this.n?-1:dt.ucmp(this.p);return St===0?(dt.words[0]=0,dt.length=1):St>0?dt.isub(this.p):dt.strip!==void 0?dt.strip():dt._strip(),dt},Bt.prototype.split=function(ct,dt){ct.iushrn(this.n,0,dt)},Bt.prototype.imulK=function(ct){return ct.imul(this.k)};function Vt(){Bt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}j(Vt,Bt),Vt.prototype.split=function(ct,dt){for(var bt=4194303,St=Math.min(ct.length,9),xt=0;xt<St;xt++)dt.words[xt]=ct.words[xt];if(dt.length=St,ct.length<=9){ct.words[0]=0,ct.length=1;return}var wt=ct.words[9];for(dt.words[dt.length++]=wt&bt,xt=10;xt<ct.length;xt++){var lt=ct.words[xt]|0;ct.words[xt-10]=(lt&bt)<<4|wt>>>22,wt=lt}wt>>>=22,ct.words[xt-10]=wt,wt===0&&ct.length>10?ct.length-=10:ct.length-=9},Vt.prototype.imulK=function(ct){ct.words[ct.length]=0,ct.words[ct.length+1]=0,ct.length+=2;for(var dt=0,bt=0;bt<ct.length;bt++){var St=ct.words[bt]|0;dt+=St*977,ct.words[bt]=dt&67108863,dt=St*64+(dt/67108864|0)}return ct.words[ct.length-1]===0&&(ct.length--,ct.words[ct.length-1]===0&&ct.length--),ct};function Ut(){Bt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}j(Ut,Bt);function zt(){Bt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}j(zt,Bt);function Qt(){Bt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}j(Qt,Bt),Qt.prototype.imulK=function(ct){for(var dt=0,bt=0;bt<ct.length;bt++){var St=(ct.words[bt]|0)*19+dt,xt=St&67108863;St>>>=26,ct.words[bt]=xt,dt=St}return dt!==0&&(ct.words[ct.length++]=dt),ct},_e._prime=function(ct){if(Nt[ct])return Nt[ct];var dt;if(ct==="k256")dt=new Vt;else if(ct==="p224")dt=new Ut;else if(ct==="p192")dt=new zt;else if(ct==="p25519")dt=new Qt;else throw new Error("Unknown prime "+ct);return Nt[ct]=dt,dt};function jt(pt){if(typeof pt=="string"){var ct=_e._prime(pt);this.m=ct.p,this.prime=ct}else $(pt.gtn(1),"modulus must be greater than 1"),this.m=pt,this.prime=null}jt.prototype._verify1=function(ct){$(ct.negative===0,"red works only with positives"),$(ct.red,"red works only with red numbers")},jt.prototype._verify2=function(ct,dt){$((ct.negative|dt.negative)===0,"red works only with positives"),$(ct.red&&ct.red===dt.red,"red works only with red numbers")},jt.prototype.imod=function(ct){return this.prime?this.prime.ireduce(ct)._forceRed(this):(rt(ct,ct.umod(this.m)._forceRed(this)),ct)},jt.prototype.neg=function(ct){return ct.isZero()?ct.clone():this.m.sub(ct)._forceRed(this)},jt.prototype.add=function(ct,dt){this._verify2(ct,dt);var bt=ct.add(dt);return bt.cmp(this.m)>=0&&bt.isub(this.m),bt._forceRed(this)},jt.prototype.iadd=function(ct,dt){this._verify2(ct,dt);var bt=ct.iadd(dt);return bt.cmp(this.m)>=0&&bt.isub(this.m),bt},jt.prototype.sub=function(ct,dt){this._verify2(ct,dt);var bt=ct.sub(dt);return bt.cmpn(0)<0&&bt.iadd(this.m),bt._forceRed(this)},jt.prototype.isub=function(ct,dt){this._verify2(ct,dt);var bt=ct.isub(dt);return bt.cmpn(0)<0&&bt.iadd(this.m),bt},jt.prototype.shl=function(ct,dt){return this._verify1(ct),this.imod(ct.ushln(dt))},jt.prototype.imul=function(ct,dt){return this._verify2(ct,dt),this.imod(ct.imul(dt))},jt.prototype.mul=function(ct,dt){return this._verify2(ct,dt),this.imod(ct.mul(dt))},jt.prototype.isqr=function(ct){return this.imul(ct,ct.clone())},jt.prototype.sqr=function(ct){return this.mul(ct,ct)},jt.prototype.sqrt=function(ct){if(ct.isZero())return ct.clone();var dt=this.m.andln(3);if($(dt%2===1),dt===3){var bt=this.m.add(new _e(1)).iushrn(2);return this.pow(ct,bt)}for(var St=this.m.subn(1),xt=0;!St.isZero()&&St.andln(1)===0;)xt++,St.iushrn(1);$(!St.isZero());var wt=new _e(1).toRed(this),lt=wt.redNeg(),_t=this.m.subn(1).iushrn(1),$t=this.m.bitLength();for($t=new _e(2*$t*$t).toRed(this);this.pow($t,_t).cmp(lt)!==0;)$t.redIAdd(lt);for(var Et=this.pow($t,St),Dt=this.pow(ct,St.addn(1).iushrn(1)),er=this.pow(ct,St),qt=xt;er.cmp(wt)!==0;){for(var Pt=er,Lt=0;Pt.cmp(wt)!==0;Lt++)Pt=Pt.redSqr();$(Lt<qt);var Jt=this.pow(Et,new _e(1).iushln(qt-Lt-1));Dt=Dt.redMul(Jt),Et=Jt.redSqr(),er=er.redMul(Et),qt=Lt}return Dt},jt.prototype.invm=function(ct){var dt=ct._invmp(this.m);return dt.negative!==0?(dt.negative=0,this.imod(dt).redNeg()):this.imod(dt)},jt.prototype.pow=function(ct,dt){if(dt.isZero())return new _e(1).toRed(this);if(dt.cmpn(1)===0)return ct.clone();var bt=4,St=new Array(1<<bt);St[0]=new _e(1).toRed(this),St[1]=ct;for(var xt=2;xt<St.length;xt++)St[xt]=this.mul(St[xt-1],ct);var wt=St[0],lt=0,_t=0,$t=dt.bitLength()%26;for($t===0&&($t=26),xt=dt.length-1;xt>=0;xt--){for(var Et=dt.words[xt],Dt=$t-1;Dt>=0;Dt--){var er=Et>>Dt&1;if(wt!==St[0]&&(wt=this.sqr(wt)),er===0&<===0){_t=0;continue}lt<<=1,lt|=er,_t++,!(_t!==bt&&(xt!==0||Dt!==0))&&(wt=this.mul(wt,St[lt]),_t=0,lt=0)}$t=26}return wt},jt.prototype.convertTo=function(ct){var dt=ct.umod(this.m);return dt===ct?dt.clone():dt},jt.prototype.convertFrom=function(ct){var dt=ct.clone();return dt.red=null,dt},_e.mont=function(ct){return new mt(ct)};function mt(pt){jt.call(this,pt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new _e(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)}j(mt,jt),mt.prototype.convertTo=function(ct){return this.imod(ct.ushln(this.shift))},mt.prototype.convertFrom=function(ct){var dt=this.imod(ct.mul(this.rinv));return dt.red=null,dt},mt.prototype.imul=function(ct,dt){if(ct.isZero()||dt.isZero())return ct.words[0]=0,ct.length=1,ct;var bt=ct.imul(dt),St=bt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),xt=bt.isub(St).iushrn(this.shift),wt=xt;return xt.cmp(this.m)>=0?wt=xt.isub(this.m):xt.cmpn(0)<0&&(wt=xt.iadd(this.m)),wt._forceRed(this)},mt.prototype.mul=function(ct,dt){if(ct.isZero()||dt.isZero())return new _e(0)._forceRed(this);var bt=ct.mul(dt),St=bt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),xt=bt.isub(St).iushrn(this.shift),wt=xt;return xt.cmp(this.m)>=0?wt=xt.isub(this.m):xt.cmpn(0)<0&&(wt=xt.iadd(this.m)),wt._forceRed(this)},mt.prototype.invm=function(ct){var dt=this.imod(ct._invmp(this.m).mul(this.r2));return dt._forceRed(this)}})(d,commonjsGlobal)})(bn);var bnExports=bn.exports,BN$b=bnExports,randomBytes$1=browserExports,Buffer$7=safeBufferExports$1.Buffer;function getr(d){var b=d.modulus.byteLength(),_;do _=new BN$b(randomBytes$1(b));while(_.cmp(d.modulus)>=0||!_.umod(d.prime1)||!_.umod(d.prime2));return _}function blind(d){var b=getr(d),_=b.toRed(BN$b.mont(d.modulus)).redPow(new BN$b(d.publicExponent)).fromRed();return{blinder:_,unblinder:b.invm(d.modulus)}}function crt$2(d,b){var _=blind(b),$=b.modulus.byteLength(),j=new BN$b(d).mul(_.blinder).umod(b.modulus),_e=j.toRed(BN$b.mont(b.prime1)),et=j.toRed(BN$b.mont(b.prime2)),tt=b.coefficient,nt=b.prime1,it=b.prime2,rt=_e.redPow(b.exponent1).fromRed(),ot=et.redPow(b.exponent2).fromRed(),at=rt.isub(ot).imul(tt).umod(nt).imul(it);return ot.iadd(at).imul(_.unblinder).umod(b.modulus).toArrayLike(Buffer$7,"be",$)}crt$2.getr=getr;var browserifyRsa=crt$2,asn1$3={},asn1$2={},api$1={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(d,b){if(d.indexOf)return d.indexOf(b);for(var _=0;_<d.length;_++)if(d[_]===b)return _;return-1},Object_keys=function(d){if(Object.keys)return Object.keys(d);var b=[];for(var _ in d)b.push(_);return b},forEach=function(d,b){if(d.forEach)return d.forEach(b);for(var _=0;_<d.length;_++)b(d[_],_,d)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(d,b,_){Object.defineProperty(d,b,{writable:!0,enumerable:!1,configurable:!0,value:_})}}catch{return function(b,_,$){b[_]=$}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(b){if(!(this instanceof Script))return new Script(b);this.code=b};Script.prototype.runInContext=function(d){if(!(d instanceof Context))throw new TypeError("needs a 'context' argument.");var b=document.createElement("iframe");b.style||(b.style={}),b.style.display="none",document.body.appendChild(b);var _=b.contentWindow,$=_.eval,j=_.execScript;!$&&j&&(j.call(_,"null"),$=_.eval),forEach(Object_keys(d),function(tt){_[tt]=d[tt]}),forEach(globals,function(tt){d[tt]&&(_[tt]=d[tt])});var _e=Object_keys(_),et=$.call(_,this.code);return forEach(Object_keys(_),function(tt){(tt in d||indexOf(_e,tt)===-1)&&(d[tt]=_[tt])}),forEach(globals,function(tt){tt in d||defineProp(d,tt,_[tt])}),document.body.removeChild(b),et},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(d){var b=Script.createContext(d),_=this.runInContext(b);return d&&forEach(Object_keys(b),function($){d[$]=b[$]}),_},forEach(Object_keys(Script.prototype),function(d){exports[d]=Script[d]=function(b){var _=Script(b);return _[d].apply(_,[].slice.call(arguments,1))}}),exports.isContext=function(d){return d instanceof Context},exports.createScript=function(d){return exports.Script(d)},exports.createContext=Script.createContext=function(d){var b=new Context;return typeof d=="object"&&forEach(Object_keys(d),function(_){b[_]=d[_]}),b}}(vmBrowserify)),vmBrowserify}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,function(d){var b=requireAsn1(),_=inherits_browserExports$1,$=d;$.define=function(et,tt){return new j(et,tt)};function j(_e,et){this.name=_e,this.body=et,this.decoders={},this.encoders={}}j.prototype._createNamed=function(et){var tt;try{tt=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {this._initNamed(entity);})`)}catch{tt=function(it){this._initNamed(it)}}return _(tt,et),tt.prototype._initNamed=function(it){et.call(this,it)},new tt(this)},j.prototype._getDecoder=function(et){return et=et||"der",this.decoders.hasOwnProperty(et)||(this.decoders[et]=this._createNamed(b.decoders[et])),this.decoders[et]},j.prototype.decode=function(et,tt,nt){return this._getDecoder(tt).decode(et,nt)},j.prototype._getEncoder=function(et){return et=et||"der",this.encoders.hasOwnProperty(et)||(this.encoders[et]=this._createNamed(b.encoders[et])),this.encoders[et]},j.prototype.encode=function(et,tt,nt){return this._getEncoder(tt).encode(et,nt)}}(api$1)),api$1}var base$1={},reporter={},inherits$4=inherits_browserExports$1;function Reporter(d){this._reporterState={obj:null,path:[],options:d||{},errors:[]}}reporter.Reporter=Reporter;Reporter.prototype.isError=function d(b){return b instanceof ReporterError};Reporter.prototype.save=function d(){var b=this._reporterState;return{obj:b.obj,pathLen:b.path.length}};Reporter.prototype.restore=function d(b){var _=this._reporterState;_.obj=b.obj,_.path=_.path.slice(0,b.pathLen)};Reporter.prototype.enterKey=function d(b){return this._reporterState.path.push(b)};Reporter.prototype.exitKey=function d(b){var _=this._reporterState;_.path=_.path.slice(0,b-1)};Reporter.prototype.leaveKey=function d(b,_,$){var j=this._reporterState;this.exitKey(b),j.obj!==null&&(j.obj[_]=$)};Reporter.prototype.path=function d(){return this._reporterState.path.join("/")};Reporter.prototype.enterObject=function d(){var b=this._reporterState,_=b.obj;return b.obj={},_};Reporter.prototype.leaveObject=function d(b){var _=this._reporterState,$=_.obj;return _.obj=b,$};Reporter.prototype.error=function d(b){var _,$=this._reporterState,j=b instanceof ReporterError;if(j?_=b:_=new ReporterError($.path.map(function(_e){return"["+JSON.stringify(_e)+"]"}).join(""),b.message||b,b.stack),!$.options.partial)throw _;return j||$.errors.push(_),_};Reporter.prototype.wrapResult=function d(b){var _=this._reporterState;return _.options.partial?{result:this.isError(b)?null:b,errors:_.errors}:b};function ReporterError(d,b){this.path=d,this.rethrow(b)}inherits$4(ReporterError,Error);ReporterError.prototype.rethrow=function d(b){if(this.message=b+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(_){this.stack=_.stack}return this};var buffer$1={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer$1;hasRequiredBuffer=1;var d=inherits_browserExports$1,b=requireBase().Reporter,_=require$$1$4.Buffer;function $(_e,et){if(b.call(this,et),!_.isBuffer(_e)){this.error("Input not Buffer");return}this.base=_e,this.offset=0,this.length=_e.length}d($,b),buffer$1.DecoderBuffer=$,$.prototype.save=function(){return{offset:this.offset,reporter:b.prototype.save.call(this)}},$.prototype.restore=function(et){var tt=new $(this.base);return tt.offset=et.offset,tt.length=this.offset,this.offset=et.offset,b.prototype.restore.call(this,et.reporter),tt},$.prototype.isEmpty=function(){return this.offset===this.length},$.prototype.readUInt8=function(et){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(et||"DecoderBuffer overrun")},$.prototype.skip=function(et,tt){if(!(this.offset+et<=this.length))return this.error(tt||"DecoderBuffer overrun");var nt=new $(this.base);return nt._reporterState=this._reporterState,nt.offset=this.offset,nt.length=this.offset+et,this.offset+=et,nt},$.prototype.raw=function(et){return this.base.slice(et?et.offset:this.offset,this.length)};function j(_e,et){if(Array.isArray(_e))this.length=0,this.value=_e.map(function(tt){return tt instanceof j||(tt=new j(tt,et)),this.length+=tt.length,tt},this);else if(typeof _e=="number"){if(!(0<=_e&&_e<=255))return et.error("non-byte EncoderBuffer value");this.value=_e,this.length=1}else if(typeof _e=="string")this.value=_e,this.length=_.byteLength(_e);else if(_.isBuffer(_e))this.value=_e,this.length=_e.length;else return et.error("Unsupported type: "+typeof _e)}return buffer$1.EncoderBuffer=j,j.prototype.join=function(et,tt){return et||(et=new _(this.length)),tt||(tt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(nt){nt.join(et,tt),tt+=nt.length}):(typeof this.value=="number"?et[tt]=this.value:typeof this.value=="string"?et.write(this.value,tt):_.isBuffer(this.value)&&this.value.copy(et,tt),tt+=this.length)),et},buffer$1}var node$1,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node$1;hasRequiredNode=1;var d=requireBase().Reporter,b=requireBase().EncoderBuffer,_=requireBase().DecoderBuffer,$=minimalisticAssert,j=["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"],_e=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(j),et=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function tt(it,rt){var ot={};this._baseState=ot,ot.enc=it,ot.parent=rt||null,ot.children=null,ot.tag=null,ot.args=null,ot.reverseArgs=null,ot.choice=null,ot.optional=!1,ot.any=!1,ot.obj=!1,ot.use=null,ot.useDecoder=null,ot.key=null,ot.default=null,ot.explicit=null,ot.implicit=null,ot.contains=null,ot.parent||(ot.children=[],this._wrap())}node$1=tt;var nt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return tt.prototype.clone=function(){var rt=this._baseState,ot={};nt.forEach(function(st){ot[st]=rt[st]});var at=new this.constructor(ot.parent);return at._baseState=ot,at},tt.prototype._wrap=function(){var rt=this._baseState;_e.forEach(function(ot){this[ot]=function(){var st=new this.constructor(this);return rt.children.push(st),st[ot].apply(st,arguments)}},this)},tt.prototype._init=function(rt){var ot=this._baseState;$(ot.parent===null),rt.call(this),ot.children=ot.children.filter(function(at){return at._baseState.parent===this},this),$.equal(ot.children.length,1,"Root node can have only one child")},tt.prototype._useArgs=function(rt){var ot=this._baseState,at=rt.filter(function(st){return st instanceof this.constructor},this);rt=rt.filter(function(st){return!(st instanceof this.constructor)},this),at.length!==0&&($(ot.children===null),ot.children=at,at.forEach(function(st){st._baseState.parent=this},this)),rt.length!==0&&($(ot.args===null),ot.args=rt,ot.reverseArgs=rt.map(function(st){if(typeof st!="object"||st.constructor!==Object)return st;var ht={};return Object.keys(st).forEach(function(yt){yt==(yt|0)&&(yt|=0);var It=st[yt];ht[It]=yt}),ht}))},et.forEach(function(it){tt.prototype[it]=function(){var ot=this._baseState;throw new Error(it+" not implemented for encoding: "+ot.enc)}}),j.forEach(function(it){tt.prototype[it]=function(){var ot=this._baseState,at=Array.prototype.slice.call(arguments);return $(ot.tag===null),ot.tag=it,this._useArgs(at),this}}),tt.prototype.use=function(rt){$(rt);var ot=this._baseState;return $(ot.use===null),ot.use=rt,this},tt.prototype.optional=function(){var rt=this._baseState;return rt.optional=!0,this},tt.prototype.def=function(rt){var ot=this._baseState;return $(ot.default===null),ot.default=rt,ot.optional=!0,this},tt.prototype.explicit=function(rt){var ot=this._baseState;return $(ot.explicit===null&&ot.implicit===null),ot.explicit=rt,this},tt.prototype.implicit=function(rt){var ot=this._baseState;return $(ot.explicit===null&&ot.implicit===null),ot.implicit=rt,this},tt.prototype.obj=function(){var rt=this._baseState,ot=Array.prototype.slice.call(arguments);return rt.obj=!0,ot.length!==0&&this._useArgs(ot),this},tt.prototype.key=function(rt){var ot=this._baseState;return $(ot.key===null),ot.key=rt,this},tt.prototype.any=function(){var rt=this._baseState;return rt.any=!0,this},tt.prototype.choice=function(rt){var ot=this._baseState;return $(ot.choice===null),ot.choice=rt,this._useArgs(Object.keys(rt).map(function(at){return rt[at]})),this},tt.prototype.contains=function(rt){var ot=this._baseState;return $(ot.use===null),ot.contains=rt,this},tt.prototype._decode=function(rt,ot){var at=this._baseState;if(at.parent===null)return rt.wrapResult(at.children[0]._decode(rt,ot));var st=at.default,ht=!0,yt=null;if(at.key!==null&&(yt=rt.enterKey(at.key)),at.optional){var It=null;if(at.explicit!==null?It=at.explicit:at.implicit!==null?It=at.implicit:at.tag!==null&&(It=at.tag),It===null&&!at.any){var gt=rt.save();try{at.choice===null?this._decodeGeneric(at.tag,rt,ot):this._decodeChoice(rt,ot),ht=!0}catch{ht=!1}rt.restore(gt)}else if(ht=this._peekTag(rt,It,at.any),rt.isError(ht))return ht}var vt;if(at.obj&&ht&&(vt=rt.enterObject()),ht){if(at.explicit!==null){var Rt=this._decodeTag(rt,at.explicit);if(rt.isError(Rt))return Rt;rt=Rt}var Tt=rt.offset;if(at.use===null&&at.choice===null){if(at.any)var gt=rt.save();var Nt=this._decodeTag(rt,at.implicit!==null?at.implicit:at.tag,at.any);if(rt.isError(Nt))return Nt;at.any?st=rt.raw(gt):rt=Nt}if(ot&&ot.track&&at.tag!==null&&ot.track(rt.path(),Tt,rt.length,"tagged"),ot&&ot.track&&at.tag!==null&&ot.track(rt.path(),rt.offset,rt.length,"content"),at.any?st=st:at.choice===null?st=this._decodeGeneric(at.tag,rt,ot):st=this._decodeChoice(rt,ot),rt.isError(st))return st;if(!at.any&&at.choice===null&&at.children!==null&&at.children.forEach(function(Ut){Ut._decode(rt,ot)}),at.contains&&(at.tag==="octstr"||at.tag==="bitstr")){var Bt=new _(st);st=this._getUse(at.contains,rt._reporterState.obj)._decode(Bt,ot)}}return at.obj&&ht&&(st=rt.leaveObject(vt)),at.key!==null&&(st!==null||ht===!0)?rt.leaveKey(yt,at.key,st):yt!==null&&rt.exitKey(yt),st},tt.prototype._decodeGeneric=function(rt,ot,at){var st=this._baseState;return rt==="seq"||rt==="set"?null:rt==="seqof"||rt==="setof"?this._decodeList(ot,rt,st.args[0],at):/str$/.test(rt)?this._decodeStr(ot,rt,at):rt==="objid"&&st.args?this._decodeObjid(ot,st.args[0],st.args[1],at):rt==="objid"?this._decodeObjid(ot,null,null,at):rt==="gentime"||rt==="utctime"?this._decodeTime(ot,rt,at):rt==="null_"?this._decodeNull(ot,at):rt==="bool"?this._decodeBool(ot,at):rt==="objDesc"?this._decodeStr(ot,rt,at):rt==="int"||rt==="enum"?this._decodeInt(ot,st.args&&st.args[0],at):st.use!==null?this._getUse(st.use,ot._reporterState.obj)._decode(ot,at):ot.error("unknown tag: "+rt)},tt.prototype._getUse=function(rt,ot){var at=this._baseState;return at.useDecoder=this._use(rt,ot),$(at.useDecoder._baseState.parent===null),at.useDecoder=at.useDecoder._baseState.children[0],at.implicit!==at.useDecoder._baseState.implicit&&(at.useDecoder=at.useDecoder.clone(),at.useDecoder._baseState.implicit=at.implicit),at.useDecoder},tt.prototype._decodeChoice=function(rt,ot){var at=this._baseState,st=null,ht=!1;return Object.keys(at.choice).some(function(yt){var It=rt.save(),gt=at.choice[yt];try{var vt=gt._decode(rt,ot);if(rt.isError(vt))return!1;st={type:yt,value:vt},ht=!0}catch{return rt.restore(It),!1}return!0},this),ht?st:rt.error("Choice not matched")},tt.prototype._createEncoderBuffer=function(rt){return new b(rt,this.reporter)},tt.prototype._encode=function(rt,ot,at){var st=this._baseState;if(!(st.default!==null&&st.default===rt)){var ht=this._encodeValue(rt,ot,at);if(ht!==void 0&&!this._skipDefault(ht,ot,at))return ht}},tt.prototype._encodeValue=function(rt,ot,at){var st=this._baseState;if(st.parent===null)return st.children[0]._encode(rt,ot||new d);var gt=null;if(this.reporter=ot,st.optional&&rt===void 0)if(st.default!==null)rt=st.default;else return;var ht=null,yt=!1;if(st.any)gt=this._createEncoderBuffer(rt);else if(st.choice)gt=this._encodeChoice(rt,ot);else if(st.contains)ht=this._getUse(st.contains,at)._encode(rt,ot),yt=!0;else if(st.children)ht=st.children.map(function(Tt){if(Tt._baseState.tag==="null_")return Tt._encode(null,ot,rt);if(Tt._baseState.key===null)return ot.error("Child should have a key");var Nt=ot.enterKey(Tt._baseState.key);if(typeof rt!="object")return ot.error("Child expected, but input is not object");var Bt=Tt._encode(rt[Tt._baseState.key],ot,rt);return ot.leaveKey(Nt),Bt},this).filter(function(Tt){return Tt}),ht=this._createEncoderBuffer(ht);else if(st.tag==="seqof"||st.tag==="setof"){if(!(st.args&&st.args.length===1))return ot.error("Too many args for : "+st.tag);if(!Array.isArray(rt))return ot.error("seqof/setof, but data is not Array");var It=this.clone();It._baseState.implicit=null,ht=this._createEncoderBuffer(rt.map(function(Tt){var Nt=this._baseState;return this._getUse(Nt.args[0],rt)._encode(Tt,ot)},It))}else st.use!==null?gt=this._getUse(st.use,at)._encode(rt,ot):(ht=this._encodePrimitive(st.tag,rt),yt=!0);var gt;if(!st.any&&st.choice===null){var vt=st.implicit!==null?st.implicit:st.tag,Rt=st.implicit===null?"universal":"context";vt===null?st.use===null&&ot.error("Tag could be omitted only for .use()"):st.use===null&&(gt=this._encodeComposite(vt,yt,Rt,ht))}return st.explicit!==null&&(gt=this._encodeComposite(st.explicit,!1,"context",gt)),gt},tt.prototype._encodeChoice=function(rt,ot){var at=this._baseState,st=at.choice[rt.type];return st||$(!1,rt.type+" not found in "+JSON.stringify(Object.keys(at.choice))),st._encode(rt.value,ot)},tt.prototype._encodePrimitive=function(rt,ot){var at=this._baseState;if(/str$/.test(rt))return this._encodeStr(ot,rt);if(rt==="objid"&&at.args)return this._encodeObjid(ot,at.reverseArgs[0],at.args[1]);if(rt==="objid")return this._encodeObjid(ot,null,null);if(rt==="gentime"||rt==="utctime")return this._encodeTime(ot,rt);if(rt==="null_")return this._encodeNull();if(rt==="int"||rt==="enum")return this._encodeInt(ot,at.args&&at.reverseArgs[0]);if(rt==="bool")return this._encodeBool(ot);if(rt==="objDesc")return this._encodeStr(ot,rt);throw new Error("Unsupported tag: "+rt)},tt.prototype._isNumstr=function(rt){return/^[0-9 ]*$/.test(rt)},tt.prototype._isPrintstr=function(rt){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(rt)},node$1}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(d){var b=d;b.Reporter=reporter.Reporter,b.DecoderBuffer=requireBuffer().DecoderBuffer,b.EncoderBuffer=requireBuffer().EncoderBuffer,b.Node=requireNode()}(base$1)),base$1}var constants$3={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(d){var b=requireConstants();d.tagClass={0:"universal",1:"application",2:"context",3:"private"},d.tagClassByName=b._reverse(d.tagClass),d.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"},d.tagByName=b._reverse(d.tag)}(der)),der}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(d){var b=d;b._reverse=function($){var j={};return Object.keys($).forEach(function(_e){(_e|0)==_e&&(_e=_e|0);var et=$[_e];j[et]=_e}),j},b.der=requireDer$2()}(constants$3)),constants$3}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var d=inherits_browserExports$1,b=requireAsn1(),_=b.base,$=b.bignum,j=b.constants.der;function _e(it){this.enc="der",this.name=it.name,this.entity=it,this.tree=new et,this.tree._init(it.body)}der_1$1=_e,_e.prototype.decode=function(rt,ot){return rt instanceof _.DecoderBuffer||(rt=new _.DecoderBuffer(rt,ot)),this.tree._decode(rt,ot)};function et(it){_.Node.call(this,"der",it)}d(et,_.Node),et.prototype._peekTag=function(rt,ot,at){if(rt.isEmpty())return!1;var st=rt.save(),ht=tt(rt,'Failed to peek tag: "'+ot+'"');return rt.isError(ht)?ht:(rt.restore(st),ht.tag===ot||ht.tagStr===ot||ht.tagStr+"of"===ot||at)},et.prototype._decodeTag=function(rt,ot,at){var st=tt(rt,'Failed to decode tag of "'+ot+'"');if(rt.isError(st))return st;var ht=nt(rt,st.primitive,'Failed to get length of "'+ot+'"');if(rt.isError(ht))return ht;if(!at&&st.tag!==ot&&st.tagStr!==ot&&st.tagStr+"of"!==ot)return rt.error('Failed to match tag: "'+ot+'"');if(st.primitive||ht!==null)return rt.skip(ht,'Failed to match body of: "'+ot+'"');var yt=rt.save(),It=this._skipUntilEnd(rt,'Failed to skip indefinite length body: "'+this.tag+'"');return rt.isError(It)?It:(ht=rt.offset-yt.offset,rt.restore(yt),rt.skip(ht,'Failed to match body of: "'+ot+'"'))},et.prototype._skipUntilEnd=function(rt,ot){for(;;){var at=tt(rt,ot);if(rt.isError(at))return at;var st=nt(rt,at.primitive,ot);if(rt.isError(st))return st;var ht;if(at.primitive||st!==null?ht=rt.skip(st):ht=this._skipUntilEnd(rt,ot),rt.isError(ht))return ht;if(at.tagStr==="end")break}},et.prototype._decodeList=function(rt,ot,at,st){for(var ht=[];!rt.isEmpty();){var yt=this._peekTag(rt,"end");if(rt.isError(yt))return yt;var It=at.decode(rt,"der",st);if(rt.isError(It)&&yt)break;ht.push(It)}return ht},et.prototype._decodeStr=function(rt,ot){if(ot==="bitstr"){var at=rt.readUInt8();return rt.isError(at)?at:{unused:at,data:rt.raw()}}else if(ot==="bmpstr"){var st=rt.raw();if(st.length%2===1)return rt.error("Decoding of string type: bmpstr length mismatch");for(var ht="",yt=0;yt<st.length/2;yt++)ht+=String.fromCharCode(st.readUInt16BE(yt*2));return ht}else if(ot==="numstr"){var It=rt.raw().toString("ascii");return this._isNumstr(It)?It:rt.error("Decoding of string type: numstr unsupported characters")}else{if(ot==="octstr")return rt.raw();if(ot==="objDesc")return rt.raw();if(ot==="printstr"){var gt=rt.raw().toString("ascii");return this._isPrintstr(gt)?gt:rt.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(ot)?rt.raw().toString():rt.error("Decoding of string type: "+ot+" unsupported")}},et.prototype._decodeObjid=function(rt,ot,at){for(var st,ht=[],yt=0;!rt.isEmpty();){var It=rt.readUInt8();yt<<=7,yt|=It&127,It&128||(ht.push(yt),yt=0)}It&128&&ht.push(yt);var gt=ht[0]/40|0,vt=ht[0]%40;if(at?st=ht:st=[gt,vt].concat(ht.slice(1)),ot){var Rt=ot[st.join(" ")];Rt===void 0&&(Rt=ot[st.join(".")]),Rt!==void 0&&(st=Rt)}return st},et.prototype._decodeTime=function(rt,ot){var at=rt.raw().toString();if(ot==="gentime")var st=at.slice(0,4)|0,ht=at.slice(4,6)|0,yt=at.slice(6,8)|0,It=at.slice(8,10)|0,gt=at.slice(10,12)|0,vt=at.slice(12,14)|0;else if(ot==="utctime"){var st=at.slice(0,2)|0,ht=at.slice(2,4)|0,yt=at.slice(4,6)|0,It=at.slice(6,8)|0,gt=at.slice(8,10)|0,vt=at.slice(10,12)|0;st<70?st=2e3+st:st=1900+st}else return rt.error("Decoding "+ot+" time is not supported yet");return Date.UTC(st,ht-1,yt,It,gt,vt,0)},et.prototype._decodeNull=function(rt){return null},et.prototype._decodeBool=function(rt){var ot=rt.readUInt8();return rt.isError(ot)?ot:ot!==0},et.prototype._decodeInt=function(rt,ot){var at=rt.raw(),st=new $(at);return ot&&(st=ot[st.toString(10)]||st),st},et.prototype._use=function(rt,ot){return typeof rt=="function"&&(rt=rt(ot)),rt._getDecoder("der").tree};function tt(it,rt){var ot=it.readUInt8(rt);if(it.isError(ot))return ot;var at=j.tagClass[ot>>6],st=(ot&32)===0;if((ot&31)===31){var ht=ot;for(ot=0;(ht&128)===128;){if(ht=it.readUInt8(rt),it.isError(ht))return ht;ot<<=7,ot|=ht&127}}else ot&=31;var yt=j.tag[ot];return{cls:at,primitive:st,tag:ot,tagStr:yt}}function nt(it,rt,ot){var at=it.readUInt8(ot);if(it.isError(at))return at;if(!rt&&at===128)return null;if(!(at&128))return at;var st=at&127;if(st>4)return it.error("length octect is too long");at=0;for(var ht=0;ht<st;ht++){at<<=8;var yt=it.readUInt8(ot);if(it.isError(yt))return yt;at|=yt}return at}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var d=inherits_browserExports$1,b=require$$1$4.Buffer,_=requireDer$1();function $(j){_.call(this,j),this.enc="pem"}return d($,_),pem$1=$,$.prototype.decode=function(_e,et){for(var tt=_e.toString().split(/[\r\n]+/g),nt=et.label.toUpperCase(),it=/^-----(BEGIN|END) ([^-]+)-----$/,rt=-1,ot=-1,at=0;at<tt.length;at++){var st=tt[at].match(it);if(st!==null&&st[2]===nt)if(rt===-1){if(st[1]!=="BEGIN")break;rt=at}else{if(st[1]!=="END")break;ot=at;break}}if(rt===-1||ot===-1)throw new Error("PEM section not found for: "+nt);var ht=tt.slice(rt+1,ot).join("");ht.replace(/[^a-z0-9\+\/=]+/gi,"");var yt=new b(ht,"base64");return _.prototype.decode.call(this,yt,et)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(d){var b=d;b.der=requireDer$1(),b.pem=requirePem$1()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var d=inherits_browserExports$1,b=require$$1$4.Buffer,_=requireAsn1(),$=_.base,j=_.constants.der;function _e(it){this.enc="der",this.name=it.name,this.entity=it,this.tree=new et,this.tree._init(it.body)}der_1=_e,_e.prototype.encode=function(rt,ot){return this.tree._encode(rt,ot).join()};function et(it){$.Node.call(this,"der",it)}d(et,$.Node),et.prototype._encodeComposite=function(rt,ot,at,st){var ht=nt(rt,ot,at,this.reporter);if(st.length<128){var gt=new b(2);return gt[0]=ht,gt[1]=st.length,this._createEncoderBuffer([gt,st])}for(var yt=1,It=st.length;It>=256;It>>=8)yt++;var gt=new b(2+yt);gt[0]=ht,gt[1]=128|yt;for(var It=1+yt,vt=st.length;vt>0;It--,vt>>=8)gt[It]=vt&255;return this._createEncoderBuffer([gt,st])},et.prototype._encodeStr=function(rt,ot){if(ot==="bitstr")return this._createEncoderBuffer([rt.unused|0,rt.data]);if(ot==="bmpstr"){for(var at=new b(rt.length*2),st=0;st<rt.length;st++)at.writeUInt16BE(rt.charCodeAt(st),st*2);return this._createEncoderBuffer(at)}else return ot==="numstr"?this._isNumstr(rt)?this._createEncoderBuffer(rt):this.reporter.error("Encoding of string type: numstr supports only digits and space"):ot==="printstr"?this._isPrintstr(rt)?this._createEncoderBuffer(rt):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(ot)?this._createEncoderBuffer(rt):ot==="objDesc"?this._createEncoderBuffer(rt):this.reporter.error("Encoding of string type: "+ot+" unsupported")},et.prototype._encodeObjid=function(rt,ot,at){if(typeof rt=="string"){if(!ot)return this.reporter.error("string objid given, but no values map found");if(!ot.hasOwnProperty(rt))return this.reporter.error("objid not found in values map");rt=ot[rt].split(/[\s\.]+/g);for(var st=0;st<rt.length;st++)rt[st]|=0}else if(Array.isArray(rt)){rt=rt.slice();for(var st=0;st<rt.length;st++)rt[st]|=0}if(!Array.isArray(rt))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(rt));if(!at){if(rt[1]>=40)return this.reporter.error("Second objid identifier OOB");rt.splice(0,2,rt[0]*40+rt[1])}for(var ht=0,st=0;st<rt.length;st++){var yt=rt[st];for(ht++;yt>=128;yt>>=7)ht++}for(var It=new b(ht),gt=It.length-1,st=rt.length-1;st>=0;st--){var yt=rt[st];for(It[gt--]=yt&127;(yt>>=7)>0;)It[gt--]=128|yt&127}return this._createEncoderBuffer(It)};function tt(it){return it<10?"0"+it:it}et.prototype._encodeTime=function(rt,ot){var at,st=new Date(rt);return ot==="gentime"?at=[tt(st.getFullYear()),tt(st.getUTCMonth()+1),tt(st.getUTCDate()),tt(st.getUTCHours()),tt(st.getUTCMinutes()),tt(st.getUTCSeconds()),"Z"].join(""):ot==="utctime"?at=[tt(st.getFullYear()%100),tt(st.getUTCMonth()+1),tt(st.getUTCDate()),tt(st.getUTCHours()),tt(st.getUTCMinutes()),tt(st.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+ot+" time is not supported yet"),this._encodeStr(at,"octstr")},et.prototype._encodeNull=function(){return this._createEncoderBuffer("")},et.prototype._encodeInt=function(rt,ot){if(typeof rt=="string"){if(!ot)return this.reporter.error("String int or enum given, but no values map");if(!ot.hasOwnProperty(rt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(rt));rt=ot[rt]}if(typeof rt!="number"&&!b.isBuffer(rt)){var at=rt.toArray();!rt.sign&&at[0]&128&&at.unshift(0),rt=new b(at)}if(b.isBuffer(rt)){var st=rt.length;rt.length===0&&st++;var yt=new b(st);return rt.copy(yt),rt.length===0&&(yt[0]=0),this._createEncoderBuffer(yt)}if(rt<128)return this._createEncoderBuffer(rt);if(rt<256)return this._createEncoderBuffer([0,rt]);for(var st=1,ht=rt;ht>=256;ht>>=8)st++;for(var yt=new Array(st),ht=yt.length-1;ht>=0;ht--)yt[ht]=rt&255,rt>>=8;return yt[0]&128&&yt.unshift(0),this._createEncoderBuffer(new b(yt))},et.prototype._encodeBool=function(rt){return this._createEncoderBuffer(rt?255:0)},et.prototype._use=function(rt,ot){return typeof rt=="function"&&(rt=rt(ot)),rt._getEncoder("der").tree},et.prototype._skipDefault=function(rt,ot,at){var st=this._baseState,ht;if(st.default===null)return!1;var yt=rt.join();if(st.defaultBuffer===void 0&&(st.defaultBuffer=this._encodeValue(st.default,ot,at).join()),yt.length!==st.defaultBuffer.length)return!1;for(ht=0;ht<yt.length;ht++)if(yt[ht]!==st.defaultBuffer[ht])return!1;return!0};function nt(it,rt,ot,at){var st;if(it==="seqof"?it="seq":it==="setof"&&(it="set"),j.tagByName.hasOwnProperty(it))st=j.tagByName[it];else if(typeof it=="number"&&(it|0)===it)st=it;else return at.error("Unknown tag: "+it);return st>=31?at.error("Multi-octet tag encoding unsupported"):(rt||(st|=32),st|=j.tagClassByName[ot||"universal"]<<6,st)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var d=inherits_browserExports$1,b=requireDer();function _($){b.call(this,$),this.enc="pem"}return d(_,b),pem=_,_.prototype.encode=function(j,_e){for(var et=b.prototype.encode.call(this,j),tt=et.toString("base64"),nt=["-----BEGIN "+_e.label+"-----"],it=0;it<tt.length;it+=64)nt.push(tt.slice(it,it+64));return nt.push("-----END "+_e.label+"-----"),nt.join(``)},pem}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,function(d){var b=d;b.der=requireDer(),b.pem=requirePem()}(encoders)),encoders}var hasRequiredAsn1;function requireAsn1(){return hasRequiredAsn1||(hasRequiredAsn1=1,function(d){var b=d;b.bignum=bnExports$1,b.define=requireApi().define,b.base=requireBase(),b.constants=requireConstants(),b.decoders=requireDecoders(),b.encoders=requireEncoders()}(asn1$2)),asn1$2}var asn=requireAsn1(),Time=asn.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),AttributeTypeValue=asn.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),AlgorithmIdentifier$1=asn.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),SubjectPublicKeyInfo=asn.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier$1),this.key("subjectPublicKey").bitstr())}),RelativeDistinguishedName=asn.define("RelativeDistinguishedName",function(){this.setof(AttributeTypeValue)}),RDNSequence=asn.define("RDNSequence",function(){this.seqof(RelativeDistinguishedName)}),Name=asn.define("Name",function(){this.choice({rdnSequence:this.use(RDNSequence)})}),Validity=asn.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Time),this.key("notAfter").use(Time))}),Extension=asn.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),TBSCertificate=asn.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(AlgorithmIdentifier$1),this.key("issuer").use(Name),this.key("validity").use(Validity),this.key("subject").use(Name),this.key("subjectPublicKeyInfo").use(SubjectPublicKeyInfo),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Extension).optional())}),X509Certificate=asn.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(TBSCertificate),this.key("signatureAlgorithm").use(AlgorithmIdentifier$1),this.key("signatureValue").bitstr())}),certificate=X509Certificate,asn1$1=requireAsn1();asn1$3.certificate=certificate;var RSAPrivateKey=asn1$1.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())});asn1$3.RSAPrivateKey=RSAPrivateKey;var RSAPublicKey=asn1$1.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$3.RSAPublicKey=RSAPublicKey;var AlgorithmIdentifier=asn1$1.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())}),PublicKey$1=asn1$1.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPublicKey").bitstr())});asn1$3.PublicKey=PublicKey$1;var PrivateKeyInfo=asn1$1.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPrivateKey").octstr())});asn1$3.PrivateKey=PrivateKeyInfo;var EncryptedPrivateKeyInfo=asn1$1.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())});asn1$3.EncryptedPrivateKey=EncryptedPrivateKeyInfo;var DSAPrivateKey=asn1$1.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())});asn1$3.DSAPrivateKey=DSAPrivateKey;asn1$3.DSAparam=asn1$1.define("DSAparam",function(){this.int()});var ECParameters=asn1$1.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),ECPrivateKey=asn1$1.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(ECParameters),this.key("publicKey").optional().explicit(1).bitstr())});asn1$3.ECPrivateKey=ECPrivateKey;asn1$3.signature=asn1$1.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const require$$1$2={"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"
No Logs
EEzZrWcGFmwC7o5pXV4RW545DfmGXmk1ZfsaaA6H13HB
Empty Result
No Logs