@smartledger/bsv 6.1.2 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +38 -38
- package/SECURITY.md +39 -12
- package/bsv-anchor.min.js +18 -11
- package/bsv-covenant.min.js +2 -48
- package/bsv-didweb.min.js +18 -11
- package/bsv-ecies.min.js +2 -20
- package/bsv-gdaf.min.js +103 -45
- package/bsv-ltp.min.js +103 -45
- package/bsv-message.min.js +3 -10
- package/bsv-mnemonic.min.js +20 -11
- package/bsv-script-helper.min.js +2 -10
- package/bsv-security.min.js +2 -10
- package/bsv-shamir.min.js +20 -11
- package/bsv-smartcontract.min.js +26 -48
- package/bsv-statuslist.min.js +74 -17
- package/bsv-vcjwt.min.js +18 -11
- package/bsv.bundle.js +103 -45
- package/bsv.min.js +103 -45
- package/build/esbuild/empty.js +2 -0
- package/build/esbuild/globals.js +6 -0
- package/build/esbuild.js +129 -0
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/THREAT_MODEL.md +127 -0
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- package/docs/getting-started/INSTALLATION.md +23 -23
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/package.json +3 -22
- package/test/build/bundle_smoke.js +55 -0
- package/test/build/esbuild_main.js +65 -0
- package/test/security/threat_model_coverage.js +31 -0
- package/build/webpack.anchor.config.js +0 -15
- package/build/webpack.base.js +0 -125
- package/build/webpack.bundle.config.js +0 -15
- package/build/webpack.config.js +0 -17
- package/build/webpack.covenant.config.js +0 -17
- package/build/webpack.didweb.config.js +0 -15
- package/build/webpack.ecies.config.js +0 -15
- package/build/webpack.gdaf.config.js +0 -15
- package/build/webpack.ltp.config.js +0 -15
- package/build/webpack.message.config.js +0 -15
- package/build/webpack.mnemonic.config.js +0 -15
- package/build/webpack.script-helper.config.js +0 -17
- package/build/webpack.security.config.js +0 -15
- package/build/webpack.shamir.config.js +0 -15
- package/build/webpack.smartcontract.config.js +0 -18
- package/build/webpack.statuslist.config.js +0 -15
- package/build/webpack.vcjwt.config.js +0 -15
package/bsv-vcjwt.min.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bsvVcJwt=e():t.bsvVcJwt=e()}(this,()=>(()=>{var __webpack_modules__={6470(t,e,r){"use strict";var i=r(8287).Buffer,n=r(1565),o={ES256:"P-256",ES256K:"secp256k1"},s=["ES256","ES256K"];function a(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function h(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return i.from(t,"base64")}t.exports={issueVcJwt:async function(t){if(!(t.issuerDid&&t.subjectId&&t.credentialSubject&&t.privateJwk))throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var e=t.alg||"ES256";if(!o[e])throw new Error("Unsupported algorithm: "+e);if(t.privateJwk.crv&&t.privateJwk.crv!==o[e])throw new Error("Key curve "+t.privateJwk.crv+" does not match alg "+e);var r=t.kid||t.privateJwk.kid,s=t.types||["VerifiableCredential"],h=t.expSeconds||31536e3,u=Math.floor(Date.now()/1e3),f=(new Date).toISOString(),l={"@context":["https://www.w3.org/2018/credentials/v1"],type:s,issuer:t.issuerDid,issuanceDate:f,credentialSubject:Object.assign({id:t.subjectId},t.credentialSubject)},c={iss:t.issuerDid,sub:t.subjectId,iat:u,exp:u+h,vc:l},d={alg:e,typ:"JWT",kid:r},p=a(i.from(JSON.stringify(d)))+"."+a(i.from(JSON.stringify(c))),y=n.createPrivateKey({key:t.privateJwk,format:"jwk"});return{jwt:p+"."+a(n.sign("sha256",i.from(p),{key:y,dsaEncoding:"ieee-p1363"}))}},verifyVcJwt:async function(t,e){e=e||{};try{if("string"!=typeof t)return{valid:!1,error:"Invalid JWT format"};var r=t.split(".");if(3!==r.length)return{valid:!1,error:"Invalid JWT format"};var a=r[0],u=r[1],f=r[2],l=JSON.parse(h(a).toString()),c=JSON.parse(h(u).toString()),d=h(f),p=e.allowedAlgs||s;if(!l.alg||-1===p.indexOf(l.alg)||!o[l.alg])return{valid:!1,error:"Algorithm not allowed: "+l.alg,header:l,payload:c};var y,m=Math.floor(Date.now()/1e3),g=e.clockToleranceSec||60;if(e.requireExpiration&&!c.exp)return{valid:!1,error:"JWT missing required exp claim",header:l,payload:c};if(c.exp&&c.exp<m-g)return{valid:!1,error:"JWT expired",header:l,payload:c};if(c.nbf&&c.nbf>m+g)return{valid:!1,error:"JWT not yet valid",header:l,payload:c};if(e.expectedIssuerDid&&c.iss!==e.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:l,payload:c};if(!e.didResolver)return{valid:!1,error:"DID resolver required for verification",header:l,payload:c};var b=await e.didResolver(c.iss);if(!b||!b.jwks||!b.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:l,payload:c};var v=b.jwks.keys.find(function(t){return t.kid===l.kid});if(!v)return{valid:!1,error:"Key not found in JWKS",header:l,payload:c};if((y=v).crv&&y.crv!==o[l.alg])return{valid:!1,error:"Key curve does not match algorithm",header:l,payload:c};var w=a+"."+u,_=n.createPublicKey({key:y,format:"jwk"}),M=n.verify("sha256",i.from(w),{key:_,dsaEncoding:"ieee-p1363"},d);if(!M&&e.allowLegacyDER)try{M=n.verify("sha256",i.from(w),{key:_,dsaEncoding:"der"},d)}catch(t){M=!1}return M?{valid:!0,header:l,payload:c}:{valid:!1,error:"Invalid signature",header:l,payload:c}}catch(t){return{valid:!1,error:t.message||"Verification failed"}}},base64UrlEncode:a,base64UrlDecode:h,ALG_TO_CRV:o}},7568(t,e,r){var i=e;i.bignum=r(9404),i.define=r(7363).define,i.base=r(9673),i.constants=r(2153),i.decoders=r(2853),i.encoders=r(4669)},7363(t,e,r){var i=r(7568),n=r(6698);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=r(8961).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return n(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(i.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},7227(t,e,r){var i=r(6698),n=r(9673).Reporter,o=r(8287).Buffer;function s(t,e){n.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof a||(t=new a(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}i(s,n),e.t=s,s.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},s.prototype.restore=function(t){var e=new s(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,n.prototype.restore.call(this,t.reporter),e},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},s.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},s.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.d=a,a.prototype.join=function(t,e){return t||(t=new o(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(t,e),e+=r.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},9673(t,e,r){var i=e;i.Reporter=r(9220).a,i.DecoderBuffer=r(7227).t,i.EncoderBuffer=r(7227).d,i.Node=r(993)},993(t,e,r){var i=r(9673).Reporter,n=r(9673).EncoderBuffer,o=r(9673).DecoderBuffer,s=r(3349),a=["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"],h=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function u(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var t=this._baseState,e={};f.forEach(function(r){e[r]=t[r]});var r=new this.constructor(e.parent);return r._baseState=e,r},u.prototype._wrap=function(){var t=this._baseState;h.forEach(function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}},this)},u.prototype._init=function(t){var e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),s.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){var e=this._baseState,r=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==r.length&&(s(null===e.children),e.children=r,r.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(r){r==(0|r)&&(r|=0);var i=t[r];e[i]=r}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){u.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),a.forEach(function(t){u.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(r),this}}),u.prototype.use=function(t){s(t);var e=this._baseState;return s(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){var e=this._baseState;return s(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){var e=this._baseState;return s(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(t){var e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},u.prototype.contains=function(t){var e=this._baseState;return s(null===e.use),e.contains=t,this},u.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var i,n=r.default,s=!0,a=null;if(null!==r.key&&(a=t.enterKey(r.key)),r.optional){var h=null;if(null!==r.explicit?h=r.explicit:null!==r.implicit?h=r.implicit:null!==r.tag&&(h=r.tag),null!==h||r.any){if(s=this._peekTag(t,h,r.any),t.isError(s))return s}else{var u=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),s=!0}catch(t){s=!1}t.restore(u)}}if(r.obj&&s&&(i=t.enterObject()),s){if(null!==r.explicit){var f=this._decodeTag(t,r.explicit);if(t.isError(f))return f;t=f}var l=t.offset;if(null===r.use&&null===r.choice){if(r.any)u=t.save();var c=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(c))return c;r.any?n=t.raw(u):t=c}if(e&&e.track&&null!==r.tag&&e.track(t.path(),l,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(n=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(n))return n;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(t,e)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var d=new o(n);n=this._getUse(r.contains,t._reporterState.obj)._decode(d,e)}}return r.obj&&s&&(n=t.leaveObject(i)),null===r.key||null===n&&!0!==s?null!==a&&t.exitKey(a):t.leaveKey(a,r.key,n),n},u.prototype._decodeGeneric=function(t,e,r){var i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,i.args&&i.args[0],r):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},u.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(t,e){var r=this._baseState,i=null,n=!1;return Object.keys(r.choice).some(function(o){var s=t.save(),a=r.choice[o];try{var h=a._decode(t,e);if(t.isError(h))return!1;i={type:o,value:h},n=!0}catch(e){return t.restore(s),!1}return!0},this),n?i:t.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new n(t,this.reporter)},u.prototype._encode=function(t,e,r){var i=this._baseState;if(null===i.default||i.default!==t){var n=this._encodeValue(t,e,r);if(void 0!==n&&!this._skipDefault(n,e,r))return n}},u.prototype._encodeValue=function(t,e,r){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(t,e||new i);var o=null;if(this.reporter=e,n.optional&&void 0===t){if(null===n.default)return;t=n.default}var s=null,a=!1;if(n.any)o=this._createEncoderBuffer(t);else if(n.choice)o=this._encodeChoice(t,e);else if(n.contains)s=this._getUse(n.contains,r)._encode(t,e),a=!0;else if(n.children)s=n.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var i=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var n=r._encode(t[r._baseState.key],e,t);return e.leaveKey(i),n},this).filter(function(t){return t}),s=this._createEncoderBuffer(s);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return e.error("Too many args for : "+n.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var h=this.clone();h._baseState.implicit=null,s=this._createEncoderBuffer(t.map(function(r){var i=this._baseState;return this._getUse(i.args[0],t)._encode(r,e)},h))}else null!==n.use?o=this._getUse(n.use,r)._encode(t,e):(s=this._encodePrimitive(n.tag,t),a=!0);if(!n.any&&null===n.choice){var u=null!==n.implicit?n.implicit:n.tag,f=null===n.implicit?"universal":"context";null===u?null===n.use&&e.error("Tag could be omitted only for .use()"):null===n.use&&(o=this._encodeComposite(u,a,f,s))}return null!==n.explicit&&(o=this._encodeComposite(n.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(t,e){var r=this._baseState,i=r.choice[t.type];return i||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(t.value,e)},u.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},9220(t,e,r){var i=r(6698);function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.a=n,n.prototype.isError=function(t){return t instanceof o},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,r){var i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},n.prototype.error=function(t){var e,r=this._reporterState,i=t instanceof o;if(e=i?t:new o(r.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!r.options.partial)throw e;return i||r.errors.push(e),e},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},4598(t,e,r){var i=r(2153);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i._reverse(e.tagClass),e.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"},e.tagByName=i._reverse(e.tag)},2153(t,e,r){var i=e;i._reverse=function(t){var e={};return Object.keys(t).forEach(function(r){(0|r)==r&&(r|=0);var i=t[r];e[i]=r}),e},i.der=r(4598)},2010(t,e,r){var i=r(6698),n=r(7568),o=n.base,s=n.bignum,a=n.constants.der;function h(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.Node.call(this,"der",t)}function f(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var i=a.tagClass[r>>6],n=!(32&r);if(31&~r)r&=31;else{var o=r;for(r=0;!(128&~o);){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=127&o}}return{cls:i,primitive:n,tag:r,tagStr:a.tag[r]}}function l(t,e,r){var i=t.readUInt8(r);if(t.isError(i))return i;if(!e&&128===i)return null;if(!(128&i))return i;var n=127&i;if(n>4)return t.error("length octect is too long");i=0;for(var o=0;o<n;o++){i<<=8;var s=t.readUInt8(r);if(t.isError(s))return s;i|=s}return i}t.exports=h,h.prototype.decode=function(t,e){return t instanceof o.DecoderBuffer||(t=new o.DecoderBuffer(t,e)),this.tree._decode(t,e)},i(u,o.Node),u.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;var i=t.save(),n=f(t,'Failed to peek tag: "'+e+'"');return t.isError(n)?n:(t.restore(i),n.tag===e||n.tagStr===e||n.tagStr+"of"===e||r)},u.prototype._decodeTag=function(t,e,r){var i=f(t,'Failed to decode tag of "'+e+'"');if(t.isError(i))return i;var n=l(t,i.primitive,'Failed to get length of "'+e+'"');if(t.isError(n))return n;if(!r&&i.tag!==e&&i.tagStr!==e&&i.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(i.primitive||null!==n)return t.skip(n,'Failed to match body of: "'+e+'"');var o=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(n=t.offset-o.offset,t.restore(o),t.skip(n,'Failed to match body of: "'+e+'"'))},u.prototype._skipUntilEnd=function(t,e){for(;;){var r=f(t,e);if(t.isError(r))return r;var i,n=l(t,r.primitive,e);if(t.isError(n))return n;if(i=r.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===r.tagStr)break}},u.prototype._decodeList=function(t,e,r,i){for(var n=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var s=r.decode(t,"der",i);if(t.isError(s)&&o)break;n.push(s)}return n},u.prototype._decodeStr=function(t,e){if("bitstr"===e){var r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===e){var i=t.raw();if(i.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var n="",o=0;o<i.length/2;o++)n+=String.fromCharCode(i.readUInt16BE(2*o));return n}if("numstr"===e){var s=t.raw().toString("ascii");return this._isNumstr(s)?s:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var a=t.raw().toString("ascii");return this._isPrintstr(a)?a:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},u.prototype._decodeObjid=function(t,e,r){for(var i,n=[],o=0;!t.isEmpty();){var s=t.readUInt8();o<<=7,o|=127&s,128&s||(n.push(o),o=0)}128&s&&n.push(o);var a=n[0]/40|0,h=n[0]%40;if(i=r?n:[a,h].concat(n.slice(1)),e){var u=e[i.join(" ")];void 0===u&&(u=e[i.join(".")]),void 0!==u&&(i=u)}return i},u.prototype._decodeTime=function(t,e){var r=t.raw().toString();if("gentime"===e)var i=0|r.slice(0,4),n=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),h=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");i=0|r.slice(0,2),n=0|r.slice(2,4),o=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),h=0|r.slice(10,12);i=i<70?2e3+i:1900+i}return Date.UTC(i,n-1,o,s,a,h,0)},u.prototype._decodeNull=function(t){return null},u.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},u.prototype._decodeInt=function(t,e){var r=t.raw(),i=new s(r);return e&&(i=e[i.toString(10)]||i),i},u.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},2853(t,e,r){var i=e;i.der=r(2010),i.pem=r(8903)},8903(t,e,r){var i=r(6698),n=r(8287).Buffer,o=r(2010);function s(t){o.call(this,t),this.enc="pem"}i(s,o),t.exports=s,s.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),i=e.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,h=-1,u=0;u<r.length;u++){var f=r[u].match(s);if(null!==f&&f[2]===i){if(-1!==a){if("END"!==f[1])break;h=u;break}if("BEGIN"!==f[1])break;a=u}}if(-1===a||-1===h)throw new Error("PEM section not found for: "+i);var l=r.slice(a+1,h).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var c=new n(l,"base64");return o.prototype.decode.call(this,c,e)}},82(t,e,r){var i=r(6698),n=r(8287).Buffer,o=r(7568),s=o.base,a=o.constants.der;function h(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){s.Node.call(this,"der",t)}function f(t){return t<10?"0"+t:t}t.exports=h,h.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},i(u,s.Node),u.prototype._encodeComposite=function(t,e,r,i){var o,s=function(t,e,r,i){var n;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);n=t}if(n>=31)return i.error("Multi-octet tag encoding unsupported");e||(n|=32);return n|=a.tagClassByName[r||"universal"]<<6,n}(t,e,r,this.reporter);if(i.length<128)return(o=new n(2))[0]=s,o[1]=i.length,this._createEncoderBuffer([o,i]);for(var h=1,u=i.length;u>=256;u>>=8)h++;(o=new n(2+h))[0]=s,o[1]=128|h;u=1+h;for(var f=i.length;f>0;u--,f>>=8)o[u]=255&f;return this._createEncoderBuffer([o,i])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=new n(2*t.length),i=0;i<t.length;i++)r.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(r)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):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(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},u.prototype._encodeObjid=function(t,e,r){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(i=0;i<t.length;i++)t[i]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(i=0;i<t.length;i++){var s=t[i];for(o++;s>=128;s>>=7)o++}var a=new n(o),h=a.length-1;for(i=t.length-1;i>=0;i--){s=t[i];for(a[h--]=127&s;(s>>=7)>0;)a[h--]=128|127&s}return this._createEncoderBuffer(a)},u.prototype._encodeTime=function(t,e){var r,i=new Date(t);return"gentime"===e?r=[f(i.getFullYear()),f(i.getUTCMonth()+1),f(i.getUTCDate()),f(i.getUTCHours()),f(i.getUTCMinutes()),f(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[f(i.getFullYear()%100),f(i.getUTCMonth()+1),f(i.getUTCDate()),f(i.getUTCHours()),f(i.getUTCMinutes()),f(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!n.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new n(r)}if(n.isBuffer(t)){var i=t.length;0===t.length&&i++;var o=new n(i);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);i=1;for(var s=t;s>=256;s>>=8)i++;for(s=(o=new Array(i)).length-1;s>=0;s--)o[s]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new n(o))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,r){var i,n=this._baseState;if(null===n.default)return!1;var o=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==n.defaultBuffer[i])return!1;return!0}},4669(t,e,r){var i=e;i.der=r(82),i.pem=r(735)},735(t,e,r){var i=r(6698),n=r(82);function o(t){n.call(this,t),this.enc="pem"}i(o,n),t.exports=o,o.prototype.encode=function(t,e){for(var r=n.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+e.label+"-----"],o=0;o<r.length;o+=64)i.push(r.slice(o,o+64));return i.push("-----END "+e.label+"-----"),i.join("\n")}},7526(t,e){"use strict";e.toByteArray=function(t){var e,r,o=a(t),s=o[0],h=o[1],u=new n(function(t,e,r){return 3*(e+r)/4-r}(0,s,h)),f=0,l=h>0?s-4:s;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[f++]=e>>16&255,u[f++]=e>>8&255,u[f++]=255&e;2===h&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[f++]=255&e);1===h&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e);return u},e.fromByteArray=function(t){for(var e,i=t.length,n=i%3,o=[],s=16383,a=0,h=i-n;a<h;a+=s)o.push(u(t,a,a+s>h?h:a+s));1===n?(e=t[i-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function u(t,e,r){for(var i,n=[],o=e;o<r;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),n.push(h(i));return n.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},9404(t,e,r){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(7790).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function h(t,e,r){var i=a(t,r);return r-1>=e&&(i|=a(t,r-1)<<4),i}function u(t,e,r,i){for(var n=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;n*=i,n+=a>=49?a-49+10:a>=17?a-17+10:a}return n}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,r):(this._parseBase(t,e,n),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,s,a=0;if("be"===r)for(n=t.length-1,o=0;n>=0;n-=3)s=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(n=0,o=0;n<t.length;n+=3)s=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o=0,s=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=h(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=h(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=e)i++;i--,n=n/e|0;for(var o=t.length-r,s=o%i,a=Math.min(o,o-s)+r,h=0,f=r;f<a;f+=i)h=u(t,f,f+i,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[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];function d(t,e,r){r.negative=e.negative^t.negative;var i=t.length+e.length|0;r.length=i,i=i-1|0;var n=0|t.words[0],o=0|e.words[0],s=n*o,a=67108863&s,h=s/67108864|0;r.words[0]=a;for(var u=1;u<i;u++){for(var f=h>>>26,l=67108863&h,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;f+=(s=(n=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&s}r.words[u]=0|l,h=0|f}return 0!==h?r.words[u]=0|h:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,s=0;s<this.length;s++){var a=this.words[s],h=(16777215&(a<<n|o)).toString(16);o=a>>>24-n&16777215,(n+=2)>=26&&(n-=26,s--),r=0!==o||s!==this.length-1?f[6-h.length]+h+r:h+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=l[t],d=c[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?y+r:f[u-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return i(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var s,a,h="le"===e,u=new t(o),f=this.clone();if(h){for(a=0;!f.isZero();a++)s=f.andln(255),f.iushrn(8),u[a]=s;for(;a<o;a++)u[a]=0}else{for(a=0;a<o-n;a++)u[a]=0;for(a=0;!f.isZero();a++)s=f.andln(255),f.iushrn(8),u[o-a-1]=s}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=e.words[i]^r.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},o.prototype.iadd=function(t){var e,r,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var n=0,o=0;o<i.length;o++)e=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<r.length;o++)e=(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(e=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var i,n,o,s=t.words,a=e.words,h=r.words,u=0,f=0|s[0],l=8191&f,c=f>>>13,d=0|s[1],p=8191&d,y=d>>>13,m=0|s[2],g=8191&m,b=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,S=M>>>13,k=0|s[5],A=8191&k,B=k>>>13,x=0|s[6],R=8191&x,O=x>>>13,I=0|s[7],T=8191&I,j=I>>>13,C=0|s[8],U=8191&C,P=C>>>13,L=0|s[9],D=8191&L,N=L>>>13,q=0|a[0],F=8191&q,K=q>>>13,W=0|a[1],z=8191&W,H=W>>>13,V=0|a[2],G=8191&V,Z=V>>>13,$=0|a[3],J=8191&$,Y=$>>>13,X=0|a[4],Q=8191&X,tt=X>>>13,et=0|a[5],rt=8191&et,it=et>>>13,nt=0|a[6],ot=8191&nt,st=nt>>>13,at=0|a[7],ht=8191&at,ut=at>>>13,ft=0|a[8],lt=8191&ft,ct=ft>>>13,dt=0|a[9],pt=8191&dt,yt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(u+(i=Math.imul(l,F))|0)+((8191&(n=(n=Math.imul(l,K))+Math.imul(c,F)|0))<<13)|0;u=((o=Math.imul(c,K))+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,i=Math.imul(p,F),n=(n=Math.imul(p,K))+Math.imul(y,F)|0,o=Math.imul(y,K);var gt=(u+(i=i+Math.imul(l,z)|0)|0)+((8191&(n=(n=n+Math.imul(l,H)|0)+Math.imul(c,z)|0))<<13)|0;u=((o=o+Math.imul(c,H)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,F),n=(n=Math.imul(g,K))+Math.imul(b,F)|0,o=Math.imul(b,K),i=i+Math.imul(p,z)|0,n=(n=n+Math.imul(p,H)|0)+Math.imul(y,z)|0,o=o+Math.imul(y,H)|0;var bt=(u+(i=i+Math.imul(l,G)|0)|0)+((8191&(n=(n=n+Math.imul(l,Z)|0)+Math.imul(c,G)|0))<<13)|0;u=((o=o+Math.imul(c,Z)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(w,F),n=(n=Math.imul(w,K))+Math.imul(_,F)|0,o=Math.imul(_,K),i=i+Math.imul(g,z)|0,n=(n=n+Math.imul(g,H)|0)+Math.imul(b,z)|0,o=o+Math.imul(b,H)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,Z)|0;var vt=(u+(i=i+Math.imul(l,J)|0)|0)+((8191&(n=(n=n+Math.imul(l,Y)|0)+Math.imul(c,J)|0))<<13)|0;u=((o=o+Math.imul(c,Y)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(E,F),n=(n=Math.imul(E,K))+Math.imul(S,F)|0,o=Math.imul(S,K),i=i+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(_,z)|0,o=o+Math.imul(_,H)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,Z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Z)|0,i=i+Math.imul(p,J)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Y)|0;var wt=(u+(i=i+Math.imul(l,Q)|0)|0)+((8191&(n=(n=n+Math.imul(l,tt)|0)+Math.imul(c,Q)|0))<<13)|0;u=((o=o+Math.imul(c,tt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(A,F),n=(n=Math.imul(A,K))+Math.imul(B,F)|0,o=Math.imul(B,K),i=i+Math.imul(E,z)|0,n=(n=n+Math.imul(E,H)|0)+Math.imul(S,z)|0,o=o+Math.imul(S,H)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,Z)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Z)|0,i=i+Math.imul(g,J)|0,n=(n=n+Math.imul(g,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0;var _t=(u+(i=i+Math.imul(l,rt)|0)|0)+((8191&(n=(n=n+Math.imul(l,it)|0)+Math.imul(c,rt)|0))<<13)|0;u=((o=o+Math.imul(c,it)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(R,F),n=(n=Math.imul(R,K))+Math.imul(O,F)|0,o=Math.imul(O,K),i=i+Math.imul(A,z)|0,n=(n=n+Math.imul(A,H)|0)+Math.imul(B,z)|0,o=o+Math.imul(B,H)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,Z)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,Z)|0,i=i+Math.imul(w,J)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,i=i+Math.imul(p,rt)|0,n=(n=n+Math.imul(p,it)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,it)|0;var Mt=(u+(i=i+Math.imul(l,ot)|0)|0)+((8191&(n=(n=n+Math.imul(l,st)|0)+Math.imul(c,ot)|0))<<13)|0;u=((o=o+Math.imul(c,st)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(T,F),n=(n=Math.imul(T,K))+Math.imul(j,F)|0,o=Math.imul(j,K),i=i+Math.imul(R,z)|0,n=(n=n+Math.imul(R,H)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,H)|0,i=i+Math.imul(A,G)|0,n=(n=n+Math.imul(A,Z)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Z)|0,i=i+Math.imul(E,J)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Y)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,i=i+Math.imul(g,rt)|0,n=(n=n+Math.imul(g,it)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,it)|0,i=i+Math.imul(p,ot)|0,n=(n=n+Math.imul(p,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0;var Et=(u+(i=i+Math.imul(l,ht)|0)|0)+((8191&(n=(n=n+Math.imul(l,ut)|0)+Math.imul(c,ht)|0))<<13)|0;u=((o=o+Math.imul(c,ut)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(U,F),n=(n=Math.imul(U,K))+Math.imul(P,F)|0,o=Math.imul(P,K),i=i+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(j,z)|0,o=o+Math.imul(j,H)|0,i=i+Math.imul(R,G)|0,n=(n=n+Math.imul(R,Z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Z)|0,i=i+Math.imul(A,J)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Y)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,i=i+Math.imul(w,rt)|0,n=(n=n+Math.imul(w,it)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,it)|0,i=i+Math.imul(g,ot)|0,n=(n=n+Math.imul(g,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,i=i+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,ut)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,ut)|0;var St=(u+(i=i+Math.imul(l,lt)|0)|0)+((8191&(n=(n=n+Math.imul(l,ct)|0)+Math.imul(c,lt)|0))<<13)|0;u=((o=o+Math.imul(c,ct)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(D,F),n=(n=Math.imul(D,K))+Math.imul(N,F)|0,o=Math.imul(N,K),i=i+Math.imul(U,z)|0,n=(n=n+Math.imul(U,H)|0)+Math.imul(P,z)|0,o=o+Math.imul(P,H)|0,i=i+Math.imul(T,G)|0,n=(n=n+Math.imul(T,Z)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Z)|0,i=i+Math.imul(R,J)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Y)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,i=i+Math.imul(E,rt)|0,n=(n=n+Math.imul(E,it)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,it)|0,i=i+Math.imul(w,ot)|0,n=(n=n+Math.imul(w,st)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,i=i+Math.imul(g,ht)|0,n=(n=n+Math.imul(g,ut)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,ut)|0,i=i+Math.imul(p,lt)|0,n=(n=n+Math.imul(p,ct)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ct)|0;var kt=(u+(i=i+Math.imul(l,pt)|0)|0)+((8191&(n=(n=n+Math.imul(l,yt)|0)+Math.imul(c,pt)|0))<<13)|0;u=((o=o+Math.imul(c,yt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(D,z),n=(n=Math.imul(D,H))+Math.imul(N,z)|0,o=Math.imul(N,H),i=i+Math.imul(U,G)|0,n=(n=n+Math.imul(U,Z)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,Z)|0,i=i+Math.imul(T,J)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,i=i+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,i=i+Math.imul(A,rt)|0,n=(n=n+Math.imul(A,it)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,it)|0,i=i+Math.imul(E,ot)|0,n=(n=n+Math.imul(E,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,i=i+Math.imul(w,ht)|0,n=(n=n+Math.imul(w,ut)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,ut)|0,i=i+Math.imul(g,lt)|0,n=(n=n+Math.imul(g,ct)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ct)|0;var At=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;u=((o=o+Math.imul(y,yt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,Z))+Math.imul(N,G)|0,o=Math.imul(N,Z),i=i+Math.imul(U,J)|0,n=(n=n+Math.imul(U,Y)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Y)|0,i=i+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,i=i+Math.imul(R,rt)|0,n=(n=n+Math.imul(R,it)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,it)|0,i=i+Math.imul(A,ot)|0,n=(n=n+Math.imul(A,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,i=i+Math.imul(E,ht)|0,n=(n=n+Math.imul(E,ut)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,ut)|0,i=i+Math.imul(w,lt)|0,n=(n=n+Math.imul(w,ct)|0)+Math.imul(_,lt)|0,o=o+Math.imul(_,ct)|0;var Bt=(u+(i=i+Math.imul(g,pt)|0)|0)+((8191&(n=(n=n+Math.imul(g,yt)|0)+Math.imul(b,pt)|0))<<13)|0;u=((o=o+Math.imul(b,yt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,i=Math.imul(D,J),n=(n=Math.imul(D,Y))+Math.imul(N,J)|0,o=Math.imul(N,Y),i=i+Math.imul(U,Q)|0,n=(n=n+Math.imul(U,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,i=i+Math.imul(T,rt)|0,n=(n=n+Math.imul(T,it)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,it)|0,i=i+Math.imul(R,ot)|0,n=(n=n+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,i=i+Math.imul(A,ht)|0,n=(n=n+Math.imul(A,ut)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,ut)|0,i=i+Math.imul(E,lt)|0,n=(n=n+Math.imul(E,ct)|0)+Math.imul(S,lt)|0,o=o+Math.imul(S,ct)|0;var xt=(u+(i=i+Math.imul(w,pt)|0)|0)+((8191&(n=(n=n+Math.imul(w,yt)|0)+Math.imul(_,pt)|0))<<13)|0;u=((o=o+Math.imul(_,yt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,tt))+Math.imul(N,Q)|0,o=Math.imul(N,tt),i=i+Math.imul(U,rt)|0,n=(n=n+Math.imul(U,it)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,it)|0,i=i+Math.imul(T,ot)|0,n=(n=n+Math.imul(T,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,i=i+Math.imul(R,ht)|0,n=(n=n+Math.imul(R,ut)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,ut)|0,i=i+Math.imul(A,lt)|0,n=(n=n+Math.imul(A,ct)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ct)|0;var Rt=(u+(i=i+Math.imul(E,pt)|0)|0)+((8191&(n=(n=n+Math.imul(E,yt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((o=o+Math.imul(S,yt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(D,rt),n=(n=Math.imul(D,it))+Math.imul(N,rt)|0,o=Math.imul(N,it),i=i+Math.imul(U,ot)|0,n=(n=n+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,i=i+Math.imul(T,ht)|0,n=(n=n+Math.imul(T,ut)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,ut)|0,i=i+Math.imul(R,lt)|0,n=(n=n+Math.imul(R,ct)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ct)|0;var Ot=(u+(i=i+Math.imul(A,pt)|0)|0)+((8191&(n=(n=n+Math.imul(A,yt)|0)+Math.imul(B,pt)|0))<<13)|0;u=((o=o+Math.imul(B,yt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(D,ot),n=(n=Math.imul(D,st))+Math.imul(N,ot)|0,o=Math.imul(N,st),i=i+Math.imul(U,ht)|0,n=(n=n+Math.imul(U,ut)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,ut)|0,i=i+Math.imul(T,lt)|0,n=(n=n+Math.imul(T,ct)|0)+Math.imul(j,lt)|0,o=o+Math.imul(j,ct)|0;var It=(u+(i=i+Math.imul(R,pt)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(O,pt)|0))<<13)|0;u=((o=o+Math.imul(O,yt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(D,ht),n=(n=Math.imul(D,ut))+Math.imul(N,ht)|0,o=Math.imul(N,ut),i=i+Math.imul(U,lt)|0,n=(n=n+Math.imul(U,ct)|0)+Math.imul(P,lt)|0,o=o+Math.imul(P,ct)|0;var Tt=(u+(i=i+Math.imul(T,pt)|0)|0)+((8191&(n=(n=n+Math.imul(T,yt)|0)+Math.imul(j,pt)|0))<<13)|0;u=((o=o+Math.imul(j,yt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(D,lt),n=(n=Math.imul(D,ct))+Math.imul(N,lt)|0,o=Math.imul(N,ct);var jt=(u+(i=i+Math.imul(U,pt)|0)|0)+((8191&(n=(n=n+Math.imul(U,yt)|0)+Math.imul(P,pt)|0))<<13)|0;u=((o=o+Math.imul(P,yt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Ct=(u+(i=Math.imul(D,pt))|0)+((8191&(n=(n=Math.imul(D,yt))+Math.imul(N,pt)|0))<<13)|0;return u=((o=Math.imul(N,yt))+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h[0]=mt,h[1]=gt,h[2]=bt,h[3]=vt,h[4]=wt,h[5]=_t,h[6]=Mt,h[7]=Et,h[8]=St,h[9]=kt,h[10]=At,h[11]=Bt,h[12]=xt,h[13]=Rt,h[14]=Ot,h[15]=It,h[16]=Tt,h[17]=jt,h[18]=Ct,0!==u&&(h[19]=u,r.length++),r};function y(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,i=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):i<63?d(this,t,e):i<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var a=67108863&i,h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f=o-u,l=(0|t.words[f])*(0|e.words[u]),c=67108863&l;a=67108863&(c=c+a|0),n+=(s=(s=s+(l/67108864|0)|0)+(c>>>26)|0)>>>26,s&=67108863}r.words[o]=a,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}(this,t,e):y(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},m.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var i=0,n=0;n<e;n++)i|=(1&t)<<e-n-1,t>>=1;return i},m.prototype.permute=function(t,e,r,i,n,o){for(var s=0;s<o;s++)i[s]=e[t[s]],n[s]=r[t[s]]},m.prototype.transform=function(t,e,r,i,n,o){this.permute(o,t,e,r,i,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,c=u,d=0;d<s;d++){var p=r[f+d],y=i[f+d],m=r[f+d+s],g=i[f+d+s],b=l*m-c*g;g=l*g+c*m,m=b,r[f+d]=p+m,i[f+d]=y+g,r[f+d+s]=p-m,i[f+d+s]=y-g,d!==a&&(b=h*l-u*c,c=h*c+u*l,l=b)}},m.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},m.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},m.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},m.prototype.convert13b=function(t,e,r,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)r[s]=0;i(0===o),i(!(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},m.prototype.mulp=function(t,e,r){var i=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(i),o=this.stub(i),s=new Array(i),a=new Array(i),h=new Array(i),u=new Array(i),f=new Array(i),l=new Array(i),c=r.words;c.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(e.words,e.length,u,i),this.transform(s,o,a,h,i,n),this.transform(u,o,f,l,i,n);for(var d=0;d<i;d++){var p=a[d]*f[d]-h[d]*l[d];h[d]=a[d]*l[d]+h[d]*f[d],a[d]=p}return this.conjugate(a,h,i),this.transform(a,h,c,o,i,n),this.conjugate(c,o,i),this.normalize13b(c,i),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){i("number"==typeof t),i(t<67108864);for(var e=0,r=0;r<this.length;r++){var n=(0|this.words[r])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this.length=0===t?1:this.length,this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var i=r/26|0,n=r%26;e[r]=(t.words[i]&1<<n)>>>n}return e}(t);if(0===e.length)return new o(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var n=r.sqr();i<e.length;i++,n=n.sqr())0!==e[i]&&(r=r.mul(n));return r},o.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,h=(0|this.words[e])-a<<r;this.words[e]=h|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this.strip()},o.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var n;i("number"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=r;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;u>=0&&(0!==f||u>=n);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},o.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return i("number"==typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var n,o,s=t.length+r;this._expand(s);var a=0;for(n=0;n<t.length;n++){o=(0|this.words[n+r])+a;var h=(0|t.words[n])*e;a=((o-=67108863&h)>>26)-(h/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)a=(o=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&o;if(0===a)return this.strip();for(i(-1===a),a=0,n=0;n<this.length;n++)a=(o=-(0|this.words[n])+a)>>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),i=this.clone(),n=t,s=0|n.words[n.length-1];0!==(r=26-this._countBits(s))&&(n=n.ushln(r),i.iushln(r),s=0|n.words[n.length-1]);var a,h=i.length-n.length;if("mod"!==e){(a=new o(null)).length=h+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var f=i.clone()._ishlnsubmul(n,1,h);0===f.negative&&(i=f,a&&(a.words[h]=1));for(var l=h-1;l>=0;l--){var c=67108864*(0|i.words[n.length+l])+(0|i.words[n.length+l-1]);for(c=Math.min(c/s|0,67108863),i._ishlnsubmul(n,c,l);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(n,1,l),i.isZero()||(i.negative^=1);a&&(a.words[l]=c)}return a&&a.strip(),i.strip(),"div"!==e&&0!==r&&i.iushrn(r),{div:a||null,mod:i}},o.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),n=t.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(e*r+(0|this.words[n]))%t;return r},o.prototype.idivn=function(t){i(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var f=r.clone(),l=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,y=1;0===(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(a),s.isub(h)):(r.isub(e),a.isub(n),h.isub(s))}return{a,b:h,gcd:r.iushln(u)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,s=new o(1),a=new o(0),h=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,f=1;0===(e.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(e.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,c=1;0===(r.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(h),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return(n=0===e.cmpn(1)?s:a).cmpn(0)<0&&n.iadd(t),n},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var i=0;e.isEven()&&r.isEven();i++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var o=e;e=r,r=o}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|t.words[r];if(i!==n){i<n?e=-1:i>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},n(v,b),v.prototype.split=function(t,e){for(var r=4194303,i=Math.min(t.length,9),n=0;n<i;n++)e.words[n]=t.words[n];if(e.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,n=10;n<t.length;n++){var s=0|t.words[n];t.words[n-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[n-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var i=0|t.words[r];e+=977*i,t.words[r]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(w,b),n(_,b),n(M,b),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+e,n=67108863&i;i>>>=26,t.words[r]=n,e=i}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var a=new o(1).toRed(this),h=a.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(h);)f.redIAdd(h);for(var l=this.pow(f,n),c=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=s;0!==d.cmp(a);){for(var y=d,m=0;0!==y.cmp(a);m++)y=y.redSqr();i(m<p);var g=this.pow(l,new o(1).iushln(p-m-1));c=c.redMul(g),l=g.redSqr(),d=d.redMul(l),p=m}return c},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var n=r[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],f=h-1;f>=0;f--){var l=u>>f&1;n!==r[0]&&(n=this.sqr(n)),0!==l||0!==s?(s<<=1,s|=l,(4===++a||0===i&&0===f)&&(n=this.mul(n,r[s]),a=0,s=0)):a=0}h=26}return n},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new S(t)},n(S,E),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},5037(t,e,r){var i;function n(t){this.rand=t}if(t.exports=function(t){return i||(i=new n(null)),i.generate(t)},t.exports.Rand=n,n.prototype.generate=function(t){return this._rand(t)},n.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(3776);if("function"!=typeof o.randomBytes)throw new Error("Not supported");n.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},462(t,e,r){var i=r(2861).Buffer;function n(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,r=new Array(e),n=0;n<e;n++)r[n]=t.readUInt32BE(4*n);return r}function o(t){for(;0<t.length;t++)t[0]=0}function s(t,e,r,i,n){for(var o,s,a,h,u=r[0],f=r[1],l=r[2],c=r[3],d=t[0]^e[0],p=t[1]^e[1],y=t[2]^e[2],m=t[3]^e[3],g=4,b=1;b<n;b++)o=u[d>>>24]^f[p>>>16&255]^l[y>>>8&255]^c[255&m]^e[g++],s=u[p>>>24]^f[y>>>16&255]^l[m>>>8&255]^c[255&d]^e[g++],a=u[y>>>24]^f[m>>>16&255]^l[d>>>8&255]^c[255&p]^e[g++],h=u[m>>>24]^f[d>>>16&255]^l[p>>>8&255]^c[255&y]^e[g++],d=o,p=s,y=a,m=h;return o=(i[d>>>24]<<24|i[p>>>16&255]<<16|i[y>>>8&255]<<8|i[255&m])^e[g++],s=(i[p>>>24]<<24|i[y>>>16&255]<<16|i[m>>>8&255]<<8|i[255&d])^e[g++],a=(i[y>>>24]<<24|i[m>>>16&255]<<16|i[d>>>8&255]<<8|i[255&p])^e[g++],h=(i[m>>>24]<<24|i[d>>>16&255]<<16|i[p>>>8&255]<<8|i[255&y])^e[g++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],h=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],i=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4;u=u>>>8^255&u^99,r[s]=u,i[u]=s;var f=t[s],l=t[f],c=t[l],d=257*t[u]^16843008*u;n[0][s]=d<<24|d>>>8,n[1][s]=d<<16|d>>>16,n[2][s]=d<<8|d>>>24,n[3][s]=d,d=16843009*c^65537*l^257*f^16843008*s,o[0][u]=d<<24|d>>>8,o[1][u]=d<<16|d>>>16,o[2][u]=d<<8|d>>>24,o[3][u]=d,0===s?s=a=1:(s=f^t[t[t[c^f]]],a^=t[t[a]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:o}}();function u(t){this._key=n(t),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,i=4*(r+1),n=[],o=0;o<e;o++)n[o]=t[o];for(o=e;o<i;o++){var s=n[o-1];o%e===0?(s=s<<8|s>>>24,s=h.SBOX[s>>>24]<<24|h.SBOX[s>>>16&255]<<16|h.SBOX[s>>>8&255]<<8|h.SBOX[255&s],s^=a[o/e|0]<<24):e>6&&o%e===4&&(s=h.SBOX[s>>>24]<<24|h.SBOX[s>>>16&255]<<16|h.SBOX[s>>>8&255]<<8|h.SBOX[255&s]),n[o]=n[o-e]^s}for(var u=[],f=0;f<i;f++){var l=i-f,c=n[l-(f%4?0:4)];u[f]=f<4||l<=4?c:h.INV_SUB_MIX[0][h.SBOX[c>>>24]]^h.INV_SUB_MIX[1][h.SBOX[c>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[c>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&c]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(t){return s(t=n(t),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},u.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=i.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},u.prototype.decryptBlock=function(t){var e=(t=n(t))[1];t[1]=t[3],t[3]=e;var r=s(t,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds),o=i.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=u},2356(t,e,r){var i=r(462),n=r(2861).Buffer,o=r(6168),s=r(6698),a=r(5892),h=r(295),u=r(5122);function f(t,e,r,s){o.call(this);var h=n.alloc(4,0);this._cipher=new i.AES(e);var f=this._cipher.encryptBlock(h);this._ghash=new a(f),r=function(t,e,r){if(12===e.length)return t._finID=n.concat([e,n.from([0,0,0,1])]),n.concat([e,n.from([0,0,0,2])]);var i=new a(r),o=e.length,s=o%16;i.update(e),s&&(s=16-s,i.update(n.alloc(s,0))),i.update(n.alloc(8,0));var h=8*o,f=n.alloc(8);f.writeUIntBE(h,0,8),i.update(f),t._finID=i.state;var l=n.from(t._finID);return u(l),l}(this,r,f),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}s(f,o),f.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=n.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=h(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var i=Math.min(t.length,e.length),n=0;n<i;++n)r+=t[n]^e[n];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!n.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},f.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=f},1241(t,e,r){var i=r(5799),n=r(6171),o=r(3219);e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=n.createDecipher,e.createDecipheriv=e.Decipheriv=n.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},6171(t,e,r){var i=r(2356),n=r(2861).Buffer,o=r(530),s=r(650),a=r(6168),h=r(462),u=r(8078);function f(t,e,r){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(r),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function c(t,e,r){var a=o[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=n.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new s(a.module,e,r,!0):"auth"===a.type?new i(a.module,e,r,!0):new f(a.module,e,r)}r(6698)(f,a),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),i.push(r);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=n.concat([this.cache,t])},l.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(e,!1,r.key,r.iv);return c(t,i.key,i.iv)},e.createDecipheriv=c},5799(t,e,r){var i=r(530),n=r(2356),o=r(2861).Buffer,s=r(650),a=r(6168),h=r(462),u=r(8078);function f(t,e,r){a.call(this),this._cache=new c,this._cipher=new h.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}r(6698)(f,a),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var i=[];e=this._cache.get();)r=this._mode.encrypt(this,e),i.push(r);return o.concat(i)};var l=o.alloc(16,16);function c(){this.cache=o.allocUnsafe(0)}function d(t,e,r){var a=i[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new s(a.module,e,r):"auth"===a.type?new n(a.module,e,r):new f(a.module,e,r)}f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},c.prototype.add=function(t){this.cache=o.concat([this.cache,t])},c.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},c.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return o.concat([this.cache,e])},e.createCipheriv=d,e.createCipher=function(t,e){var r=i[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(e,!1,r.key,r.iv);return d(t,n.key,n.iv)}},5892(t,e,r){var i=r(2861).Buffer,n=i.alloc(16,0);function o(t){var e=i.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function s(t){this.h=t,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}s.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},s.prototype._multiply=function(){for(var t,e,r,i=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],n=[0,0,0,0],s=-1;++s<128;){for(!!(this.state[~~(s/8)]&1<<7-s%8)&&(n[0]^=i[0],n[1]^=i[1],n[2]^=i[2],n[3]^=i[3]),r=!!(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=o(n)},s.prototype.update=function(t){var e;for(this.cache=i.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},s.prototype.final=function(t,e){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=s},5122(t){t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},2884(t,e,r){var i=r(295);e.encrypt=function(t,e){var r=i(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var n=t._cipher.decryptBlock(e);return i(n,r)}},6383(t,e,r){var i=r(2861).Buffer,n=r(295);function o(t,e,r){var o=e.length,s=n(e,t._cache);return t._cache=t._cache.slice(o),t._prev=i.concat([t._prev,r?e:s]),s}e.encrypt=function(t,e,r){for(var n,s=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){s=i.concat([s,o(t,e,r)]);break}n=t._cache.length,s=i.concat([s,o(t,e.slice(0,n),r)]),e=e.slice(n)}return s}},5264(t,e,r){var i=r(2861).Buffer;function n(t,e,r){for(var i,n,s=-1,a=0;++s<8;)i=e&1<<7-s?128:0,a+=(128&(n=t._cipher.encryptBlock(t._prev)[0]^i))>>s%8,t._prev=o(t._prev,r?i:n);return a}function o(t,e){var r=t.length,n=-1,o=i.allocUnsafe(t.length);for(t=i.concat([t,i.from([e])]);++n<r;)o[n]=t[n]<<1|t[n+1]>>7;return o}e.encrypt=function(t,e,r){for(var o=e.length,s=i.allocUnsafe(o),a=-1;++a<o;)s[a]=n(t,e[a],r);return s}},6975(t,e,r){var i=r(2861).Buffer;function n(t,e,r){var n=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([r?e:n])]),n}e.encrypt=function(t,e,r){for(var o=e.length,s=i.allocUnsafe(o),a=-1;++a<o;)s[a]=n(t,e[a],r);return s}},3053(t,e,r){var i=r(295),n=r(2861).Buffer,o=r(5122);function s(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),o=t._cache.length;t._cache=n.concat([t._cache,n.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var h=s(t),u=o+16*a;t._cache.writeUInt32BE(h[0],u+0),t._cache.writeUInt32BE(h[1],u+4),t._cache.writeUInt32BE(h[2],u+8),t._cache.writeUInt32BE(h[3],u+12)}var f=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,f)}},2632(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},530(t,e,r){var i={ECB:r(2632),CBC:r(2884),CFB:r(6383),CFB8:r(6975),CFB1:r(5264),OFB:r(6843),CTR:r(3053),GCM:r(3053)},n=r(3219);for(var o in n)n[o].module=i[n[o].mode];t.exports=n},6843(t,e,r){var i=r(8287).Buffer,n=r(295);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=i.concat([t._cache,o(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,r)}},650(t,e,r){var i=r(462),n=r(2861).Buffer,o=r(6168);function s(t,e,r,s){o.call(this),this._cipher=new i.AES(e),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._mode=t}r(6698)(s,o),s.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},125(t,e,r){var i=r(4050),n=r(1241),o=r(530),s=r(2438),a=r(8078);function h(t,e,r){if(t=t.toLowerCase(),o[t])return n.createCipheriv(t,e,r);if(s[t])return new i({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function u(t,e,r){if(t=t.toLowerCase(),o[t])return n.createDecipheriv(t,e,r);if(s[t])return new i({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,i;if(t=t.toLowerCase(),o[t])r=o[t].key,i=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");r=8*s[t].key,i=s[t].iv}var n=a(e,!1,r,i);return h(t,n.key,n.iv)},e.createCipheriv=e.Cipheriv=h,e.createDecipher=e.Decipher=function(t,e){var r,i;if(t=t.toLowerCase(),o[t])r=o[t].key,i=o[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");r=8*s[t].key,i=s[t].iv}var n=a(e,!1,r,i);return u(t,n.key,n.iv)},e.createDecipheriv=e.Decipheriv=u,e.listCiphers=e.getCiphers=function(){return Object.keys(s).concat(n.getCiphers())}},4050(t,e,r){var i=r(6168),n=r(9560),o=r(6698),s=r(2861).Buffer,a={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function h(t){i.call(this);var e,r=t.mode.toLowerCase(),n=a[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=s.concat([o,o.slice(0,8)]));var h=t.iv;s.isBuffer(h)||(h=s.from(h)),this._des=n.create({key:o,iv:h,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=h,o(h,i),h.prototype._update=function(t){return s.from(this._des.update(t))},h.prototype._final=function(){return s.from(this._des.final())}},2438(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},7332(t,e,r){"use strict";var i=r(8893),n=r(3209),o=r(2861).Buffer;function s(t){var e,r=t.modulus.byteLength();do{e=new i(n(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,e){var r=function(t){var e=s(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),n=e.modulus.byteLength(),a=new i(t).mul(r.blinder).umod(e.modulus),h=a.toRed(i.mont(e.prime1)),u=a.toRed(i.mont(e.prime2)),f=e.coefficient,l=e.prime1,c=e.prime2,d=h.redPow(e.exponent1).fromRed(),p=u.redPow(e.exponent2).fromRed(),y=d.isub(p).imul(f).umod(l).imul(c);return p.iadd(y).imul(r.unblinder).umod(e.modulus).toArrayLike(o,"be",n)}a.getr=s,t.exports=a},8893(t,e,r){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(8285).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+t)}function h(t,e,r){var i=a(t,r);return r-1>=e&&(i|=a(t,r-1)<<4),i}function u(t,e,r,n){for(var o=0,s=0,a=Math.min(t.length,r),h=e;h<a;h++){var u=t.charCodeAt(h)-48;o*=n,s=u>=49?u-49+10:u>=17?u-17+10:u,i(u>=0&&s<n,"Invalid character"),o+=s}return o}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,r):(this._parseBase(t,e,n),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,s,a=0;if("be"===r)for(n=t.length-1,o=0;n>=0;n-=3)s=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(n=0,o=0;n<t.length;n+=3)s=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o=0,s=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=h(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=h(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=e)i++;i--,n=n/e|0;for(var o=t.length-r,s=o%i,a=Math.min(o,o-s)+r,h=0,f=r;f<a;f+=i)h=u(t,f,f+i,e),this.imuln(n),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var l=1;for(h=u(t,f,t.length,e),f=0;f<s;f++)l*=e;this.imuln(l),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){f(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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"],d=[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],p=[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];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,s=0;s<this.length;s++){var a=this.words[s],h=(16777215&(a<<n|o)).toString(16);o=a>>>24-n&16777215,(n+=2)>=26&&(n-=26,s--),r=0!==o||s!==this.length-1?c[6-h.length]+h+r:h+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],f=p[t];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var y=l.modrn(f).toString(t);r=(l=l.idivn(f)).isZero()?y+r:c[u-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function y(t,e,r){r.negative=e.negative^t.negative;var i=t.length+e.length|0;r.length=i,i=i-1|0;var n=0|t.words[0],o=0|e.words[0],s=n*o,a=67108863&s,h=s/67108864|0;r.words[0]=a;for(var u=1;u<i;u++){for(var f=h>>>26,l=67108863&h,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;f+=(s=(n=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&s}r.words[u]=0|l,h=0|f}return 0!==h?r.words[u]=0|h:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,n),s},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r<t.length)for(t[r++]=i;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r>=0)for(t[r--]=i;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var i=0;i<r.length;i++)this.words[i]=e.words[i]^r.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this._strip()},o.prototype.iadd=function(t){var e,r,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,i=t):(r=t,i=this);for(var n=0,o=0;o<i.length;o++)e=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=67108863&e,n=e>>>26;for(;0!==n&&o<r.length;o++)e=(0|r.words[o])+n,this.words[o]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,i,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,s=0;s<i.length;s++)o=(e=(0|r.words[s])-(0|i.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var i,n,o,s=t.words,a=e.words,h=r.words,u=0,f=0|s[0],l=8191&f,c=f>>>13,d=0|s[1],p=8191&d,y=d>>>13,m=0|s[2],g=8191&m,b=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,S=M>>>13,k=0|s[5],A=8191&k,B=k>>>13,x=0|s[6],R=8191&x,O=x>>>13,I=0|s[7],T=8191&I,j=I>>>13,C=0|s[8],U=8191&C,P=C>>>13,L=0|s[9],D=8191&L,N=L>>>13,q=0|a[0],F=8191&q,K=q>>>13,W=0|a[1],z=8191&W,H=W>>>13,V=0|a[2],G=8191&V,Z=V>>>13,$=0|a[3],J=8191&$,Y=$>>>13,X=0|a[4],Q=8191&X,tt=X>>>13,et=0|a[5],rt=8191&et,it=et>>>13,nt=0|a[6],ot=8191&nt,st=nt>>>13,at=0|a[7],ht=8191&at,ut=at>>>13,ft=0|a[8],lt=8191&ft,ct=ft>>>13,dt=0|a[9],pt=8191&dt,yt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var mt=(u+(i=Math.imul(l,F))|0)+((8191&(n=(n=Math.imul(l,K))+Math.imul(c,F)|0))<<13)|0;u=((o=Math.imul(c,K))+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,i=Math.imul(p,F),n=(n=Math.imul(p,K))+Math.imul(y,F)|0,o=Math.imul(y,K);var gt=(u+(i=i+Math.imul(l,z)|0)|0)+((8191&(n=(n=n+Math.imul(l,H)|0)+Math.imul(c,z)|0))<<13)|0;u=((o=o+Math.imul(c,H)|0)+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,F),n=(n=Math.imul(g,K))+Math.imul(b,F)|0,o=Math.imul(b,K),i=i+Math.imul(p,z)|0,n=(n=n+Math.imul(p,H)|0)+Math.imul(y,z)|0,o=o+Math.imul(y,H)|0;var bt=(u+(i=i+Math.imul(l,G)|0)|0)+((8191&(n=(n=n+Math.imul(l,Z)|0)+Math.imul(c,G)|0))<<13)|0;u=((o=o+Math.imul(c,Z)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(w,F),n=(n=Math.imul(w,K))+Math.imul(_,F)|0,o=Math.imul(_,K),i=i+Math.imul(g,z)|0,n=(n=n+Math.imul(g,H)|0)+Math.imul(b,z)|0,o=o+Math.imul(b,H)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,Z)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,Z)|0;var vt=(u+(i=i+Math.imul(l,J)|0)|0)+((8191&(n=(n=n+Math.imul(l,Y)|0)+Math.imul(c,J)|0))<<13)|0;u=((o=o+Math.imul(c,Y)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(E,F),n=(n=Math.imul(E,K))+Math.imul(S,F)|0,o=Math.imul(S,K),i=i+Math.imul(w,z)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(_,z)|0,o=o+Math.imul(_,H)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,Z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Z)|0,i=i+Math.imul(p,J)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Y)|0;var wt=(u+(i=i+Math.imul(l,Q)|0)|0)+((8191&(n=(n=n+Math.imul(l,tt)|0)+Math.imul(c,Q)|0))<<13)|0;u=((o=o+Math.imul(c,tt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(A,F),n=(n=Math.imul(A,K))+Math.imul(B,F)|0,o=Math.imul(B,K),i=i+Math.imul(E,z)|0,n=(n=n+Math.imul(E,H)|0)+Math.imul(S,z)|0,o=o+Math.imul(S,H)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,Z)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Z)|0,i=i+Math.imul(g,J)|0,n=(n=n+Math.imul(g,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0;var _t=(u+(i=i+Math.imul(l,rt)|0)|0)+((8191&(n=(n=n+Math.imul(l,it)|0)+Math.imul(c,rt)|0))<<13)|0;u=((o=o+Math.imul(c,it)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(R,F),n=(n=Math.imul(R,K))+Math.imul(O,F)|0,o=Math.imul(O,K),i=i+Math.imul(A,z)|0,n=(n=n+Math.imul(A,H)|0)+Math.imul(B,z)|0,o=o+Math.imul(B,H)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,Z)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,Z)|0,i=i+Math.imul(w,J)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,i=i+Math.imul(p,rt)|0,n=(n=n+Math.imul(p,it)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,it)|0;var Mt=(u+(i=i+Math.imul(l,ot)|0)|0)+((8191&(n=(n=n+Math.imul(l,st)|0)+Math.imul(c,ot)|0))<<13)|0;u=((o=o+Math.imul(c,st)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(T,F),n=(n=Math.imul(T,K))+Math.imul(j,F)|0,o=Math.imul(j,K),i=i+Math.imul(R,z)|0,n=(n=n+Math.imul(R,H)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,H)|0,i=i+Math.imul(A,G)|0,n=(n=n+Math.imul(A,Z)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,Z)|0,i=i+Math.imul(E,J)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Y)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,i=i+Math.imul(g,rt)|0,n=(n=n+Math.imul(g,it)|0)+Math.imul(b,rt)|0,o=o+Math.imul(b,it)|0,i=i+Math.imul(p,ot)|0,n=(n=n+Math.imul(p,st)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,st)|0;var Et=(u+(i=i+Math.imul(l,ht)|0)|0)+((8191&(n=(n=n+Math.imul(l,ut)|0)+Math.imul(c,ht)|0))<<13)|0;u=((o=o+Math.imul(c,ut)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(U,F),n=(n=Math.imul(U,K))+Math.imul(P,F)|0,o=Math.imul(P,K),i=i+Math.imul(T,z)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(j,z)|0,o=o+Math.imul(j,H)|0,i=i+Math.imul(R,G)|0,n=(n=n+Math.imul(R,Z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Z)|0,i=i+Math.imul(A,J)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Y)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,i=i+Math.imul(w,rt)|0,n=(n=n+Math.imul(w,it)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,it)|0,i=i+Math.imul(g,ot)|0,n=(n=n+Math.imul(g,st)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,i=i+Math.imul(p,ht)|0,n=(n=n+Math.imul(p,ut)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,ut)|0;var St=(u+(i=i+Math.imul(l,lt)|0)|0)+((8191&(n=(n=n+Math.imul(l,ct)|0)+Math.imul(c,lt)|0))<<13)|0;u=((o=o+Math.imul(c,ct)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(D,F),n=(n=Math.imul(D,K))+Math.imul(N,F)|0,o=Math.imul(N,K),i=i+Math.imul(U,z)|0,n=(n=n+Math.imul(U,H)|0)+Math.imul(P,z)|0,o=o+Math.imul(P,H)|0,i=i+Math.imul(T,G)|0,n=(n=n+Math.imul(T,Z)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Z)|0,i=i+Math.imul(R,J)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Y)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,i=i+Math.imul(E,rt)|0,n=(n=n+Math.imul(E,it)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,it)|0,i=i+Math.imul(w,ot)|0,n=(n=n+Math.imul(w,st)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,i=i+Math.imul(g,ht)|0,n=(n=n+Math.imul(g,ut)|0)+Math.imul(b,ht)|0,o=o+Math.imul(b,ut)|0,i=i+Math.imul(p,lt)|0,n=(n=n+Math.imul(p,ct)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ct)|0;var kt=(u+(i=i+Math.imul(l,pt)|0)|0)+((8191&(n=(n=n+Math.imul(l,yt)|0)+Math.imul(c,pt)|0))<<13)|0;u=((o=o+Math.imul(c,yt)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(D,z),n=(n=Math.imul(D,H))+Math.imul(N,z)|0,o=Math.imul(N,H),i=i+Math.imul(U,G)|0,n=(n=n+Math.imul(U,Z)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,Z)|0,i=i+Math.imul(T,J)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,i=i+Math.imul(R,Q)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,i=i+Math.imul(A,rt)|0,n=(n=n+Math.imul(A,it)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,it)|0,i=i+Math.imul(E,ot)|0,n=(n=n+Math.imul(E,st)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,i=i+Math.imul(w,ht)|0,n=(n=n+Math.imul(w,ut)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,ut)|0,i=i+Math.imul(g,lt)|0,n=(n=n+Math.imul(g,ct)|0)+Math.imul(b,lt)|0,o=o+Math.imul(b,ct)|0;var At=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;u=((o=o+Math.imul(y,yt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,Z))+Math.imul(N,G)|0,o=Math.imul(N,Z),i=i+Math.imul(U,J)|0,n=(n=n+Math.imul(U,Y)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Y)|0,i=i+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,i=i+Math.imul(R,rt)|0,n=(n=n+Math.imul(R,it)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,it)|0,i=i+Math.imul(A,ot)|0,n=(n=n+Math.imul(A,st)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,st)|0,i=i+Math.imul(E,ht)|0,n=(n=n+Math.imul(E,ut)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,ut)|0,i=i+Math.imul(w,lt)|0,n=(n=n+Math.imul(w,ct)|0)+Math.imul(_,lt)|0,o=o+Math.imul(_,ct)|0;var Bt=(u+(i=i+Math.imul(g,pt)|0)|0)+((8191&(n=(n=n+Math.imul(g,yt)|0)+Math.imul(b,pt)|0))<<13)|0;u=((o=o+Math.imul(b,yt)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,i=Math.imul(D,J),n=(n=Math.imul(D,Y))+Math.imul(N,J)|0,o=Math.imul(N,Y),i=i+Math.imul(U,Q)|0,n=(n=n+Math.imul(U,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,i=i+Math.imul(T,rt)|0,n=(n=n+Math.imul(T,it)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,it)|0,i=i+Math.imul(R,ot)|0,n=(n=n+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,i=i+Math.imul(A,ht)|0,n=(n=n+Math.imul(A,ut)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,ut)|0,i=i+Math.imul(E,lt)|0,n=(n=n+Math.imul(E,ct)|0)+Math.imul(S,lt)|0,o=o+Math.imul(S,ct)|0;var xt=(u+(i=i+Math.imul(w,pt)|0)|0)+((8191&(n=(n=n+Math.imul(w,yt)|0)+Math.imul(_,pt)|0))<<13)|0;u=((o=o+Math.imul(_,yt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,tt))+Math.imul(N,Q)|0,o=Math.imul(N,tt),i=i+Math.imul(U,rt)|0,n=(n=n+Math.imul(U,it)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,it)|0,i=i+Math.imul(T,ot)|0,n=(n=n+Math.imul(T,st)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,st)|0,i=i+Math.imul(R,ht)|0,n=(n=n+Math.imul(R,ut)|0)+Math.imul(O,ht)|0,o=o+Math.imul(O,ut)|0,i=i+Math.imul(A,lt)|0,n=(n=n+Math.imul(A,ct)|0)+Math.imul(B,lt)|0,o=o+Math.imul(B,ct)|0;var Rt=(u+(i=i+Math.imul(E,pt)|0)|0)+((8191&(n=(n=n+Math.imul(E,yt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((o=o+Math.imul(S,yt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(D,rt),n=(n=Math.imul(D,it))+Math.imul(N,rt)|0,o=Math.imul(N,it),i=i+Math.imul(U,ot)|0,n=(n=n+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,i=i+Math.imul(T,ht)|0,n=(n=n+Math.imul(T,ut)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,ut)|0,i=i+Math.imul(R,lt)|0,n=(n=n+Math.imul(R,ct)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ct)|0;var Ot=(u+(i=i+Math.imul(A,pt)|0)|0)+((8191&(n=(n=n+Math.imul(A,yt)|0)+Math.imul(B,pt)|0))<<13)|0;u=((o=o+Math.imul(B,yt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(D,ot),n=(n=Math.imul(D,st))+Math.imul(N,ot)|0,o=Math.imul(N,st),i=i+Math.imul(U,ht)|0,n=(n=n+Math.imul(U,ut)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,ut)|0,i=i+Math.imul(T,lt)|0,n=(n=n+Math.imul(T,ct)|0)+Math.imul(j,lt)|0,o=o+Math.imul(j,ct)|0;var It=(u+(i=i+Math.imul(R,pt)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(O,pt)|0))<<13)|0;u=((o=o+Math.imul(O,yt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(D,ht),n=(n=Math.imul(D,ut))+Math.imul(N,ht)|0,o=Math.imul(N,ut),i=i+Math.imul(U,lt)|0,n=(n=n+Math.imul(U,ct)|0)+Math.imul(P,lt)|0,o=o+Math.imul(P,ct)|0;var Tt=(u+(i=i+Math.imul(T,pt)|0)|0)+((8191&(n=(n=n+Math.imul(T,yt)|0)+Math.imul(j,pt)|0))<<13)|0;u=((o=o+Math.imul(j,yt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(D,lt),n=(n=Math.imul(D,ct))+Math.imul(N,lt)|0,o=Math.imul(N,ct);var jt=(u+(i=i+Math.imul(U,pt)|0)|0)+((8191&(n=(n=n+Math.imul(U,yt)|0)+Math.imul(P,pt)|0))<<13)|0;u=((o=o+Math.imul(P,yt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Ct=(u+(i=Math.imul(D,pt))|0)+((8191&(n=(n=Math.imul(D,yt))+Math.imul(N,pt)|0))<<13)|0;return u=((o=Math.imul(N,yt))+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,h[0]=mt,h[1]=gt,h[2]=bt,h[3]=vt,h[4]=wt,h[5]=_t,h[6]=Mt,h[7]=Et,h[8]=St,h[9]=kt,h[10]=At,h[11]=Bt,h[12]=xt,h[13]=Rt,h[14]=Ot,h[15]=It,h[16]=Tt,h[17]=jt,h[18]=Ct,0!==u&&(h[19]=u,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var a=67108863&i,h=Math.min(o,e.length-1),u=Math.max(0,o-t.length+1);u<=h;u++){var f=o-u,l=(0|t.words[f])*(0|e.words[u]),c=67108863&l;a=67108863&(c=c+a|0),n+=(s=(s=s+(l/67108864|0)|0)+(c>>>26)|0)>>>26,s&=67108863}r.words[o]=a,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r._strip()}function b(t,e,r){return g(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(m=y),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?y(this,t,e):r<1024?g(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var i=0,n=0;n<e;n++)i|=(1&t)<<e-n-1,t>>=1;return i},v.prototype.permute=function(t,e,r,i,n,o){for(var s=0;s<o;s++)i[s]=e[t[s]],n[s]=r[t[s]]},v.prototype.transform=function(t,e,r,i,n,o){this.permute(o,t,e,r,i,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,h=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),f=0;f<n;f+=a)for(var l=h,c=u,d=0;d<s;d++){var p=r[f+d],y=i[f+d],m=r[f+d+s],g=i[f+d+s],b=l*m-c*g;g=l*g+c*m,m=b,r[f+d]=p+m,i[f+d]=y+g,r[f+d+s]=p-m,i[f+d+s]=y-g,d!==a&&(b=h*l-u*c,c=h*c+u*l,l=b)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=t[i];t[i]=t[r-i-1],t[r-i-1]=n,n=e[i],e[i]=-e[r-i-1],e[r-i-1]=-n}},v.prototype.normalize13b=function(t,e){for(var r=0,i=0;i<e/2;i++){var n=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+r;t[i]=67108863&n,r=n<67108864?0:n/67108864|0}return t},v.prototype.convert13b=function(t,e,r,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)r[s]=0;i(0===o),i(!(-8192&o))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var i=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(i),o=this.stub(i),s=new Array(i),a=new Array(i),h=new Array(i),u=new Array(i),f=new Array(i),l=new Array(i),c=r.words;c.length=i,this.convert13b(t.words,t.length,s,i),this.convert13b(e.words,e.length,u,i),this.transform(s,o,a,h,i,n),this.transform(u,o,f,l,i,n);for(var d=0;d<i;d++){var p=a[d]*f[d]-h[d]*l[d];h[d]=a[d]*l[d]+h[d]*f[d],a[d]=p}return this.conjugate(a,h,i),this.transform(a,h,c,o,i,n),this.conjugate(c,o,i),this.normalize13b(c,i),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),b(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),i("number"==typeof t),i(t<67108864);for(var r=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[n]=67108863&s}return 0!==r&&(this.words[n]=r,this.length++),this.length=0===t?1:this.length,e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var i=r/26|0,n=r%26;e[r]=t.words[i]>>>n&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,i=0;i<e.length&&0===e[i];i++,r=r.sqr());if(++i<e.length)for(var n=r.sqr();i<e.length;i++,n=n.sqr())0!==e[i]&&(r=r.mul(n));return r},o.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,h=(0|this.words[e])-a<<r;this.words[e]=h|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this._strip()},o.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var n;i("number"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,h=r;if(n-=s,n=Math.max(0,n),h){for(var u=0;u<s;u++)h.words[u]=this.words[u];h.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;u>=0&&(0!==f||u>=n);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&a}return h&&0!==f&&(h.words[h.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},o.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return 0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return i("number"==typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var n,o,s=t.length+r;this._expand(s);var a=0;for(n=0;n<t.length;n++){o=(0|this.words[n+r])+a;var h=(0|t.words[n])*e;a=((o-=67108863&h)>>26)-(h/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)a=(o=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&o;if(0===a)return this._strip();for(i(-1===a),a=0,n=0;n<this.length;n++)a=(o=-(0|this.words[n])+a)>>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),i=this.clone(),n=t,s=0|n.words[n.length-1];0!==(r=26-this._countBits(s))&&(n=n.ushln(r),i.iushln(r),s=0|n.words[n.length-1]);var a,h=i.length-n.length;if("mod"!==e){(a=new o(null)).length=h+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var f=i.clone()._ishlnsubmul(n,1,h);0===f.negative&&(i=f,a&&(a.words[h]=1));for(var l=h-1;l>=0;l--){var c=67108864*(0|i.words[n.length+l])+(0|i.words[n.length+l-1]);for(c=Math.min(c/s|0,67108863),i._ishlnsubmul(n,c,l);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(n,1,l),i.isZero()||(i.negative^=1);a&&(a.words[l]=c)}return a&&a._strip(),i._strip(),"div"!==e&&0!==r&&i.iushrn(r),{div:a||null,mod:i}},o.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(n=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:n,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(n=a.div.neg()),{div:n,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var n,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),n=t.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%t;return e?-n:n},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*r;this.words[n]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),a=new o(0),h=new o(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var f=r.clone(),l=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(f),s.isub(l)),n.iushrn(1),s.iushrn(1);for(var p=0,y=1;0===(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||h.isOdd())&&(a.iadd(f),h.isub(l)),a.iushrn(1),h.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(a),s.isub(h)):(r.isub(e),a.isub(n),h.isub(s))}return{a,b:h,gcd:r.iushln(u)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,s=new o(1),a=new o(0),h=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,f=1;0===(e.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(e.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(h),s.iushrn(1);for(var l=0,c=1;0===(r.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(h),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return(n=0===e.cmpn(1)?s:a).cmpn(0)<0&&n.iadd(t),n},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var i=0;e.isEven()&&r.isEven();i++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var o=e;e=r,r=o}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|t.words[r];if(i!==n){i<n?e=-1:i>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new A(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function B(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},n(M,_),M.prototype.split=function(t,e){for(var r=4194303,i=Math.min(t.length,9),n=0;n<i;n++)e.words[n]=t.words[n];if(e.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,n=10;n<t.length;n++){var s=0|t.words[n];t.words[n-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[n-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var i=0|t.words[r];e+=977*i,t.words[r]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(E,_),n(S,_),n(k,_),k.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var i=19*(0|t.words[r])+e,n=67108863&i;i>>>=26,t.words[r]=n,e=i}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return w[t]=e,e},A.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var a=new o(1).toRed(this),h=a.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(h);)f.redIAdd(h);for(var l=this.pow(f,n),c=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=s;0!==d.cmp(a);){for(var y=d,m=0;0!==y.cmp(a);m++)y=y.redSqr();i(m<p);var g=this.pow(l,new o(1).iushln(p-m-1));c=c.redMul(g),l=g.redSqr(),d=d.redMul(l),p=m}return c},A.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},A.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],t);var n=r[0],s=0,a=0,h=e.bitLength()%26;for(0===h&&(h=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],f=h-1;f>=0;f--){var l=u>>f&1;n!==r[0]&&(n=this.sqr(n)),0!==l||0!==s?(s<<=1,s|=l,(4===++a||0===i&&0===f)&&(n=this.mul(n,r[s]),a=0,s=0)):a=0}h=26}return n},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new B(t)},n(B,A),B.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},B.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},B.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},B.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},B.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},295(t,e,r){var i=r(8287).Buffer;t.exports=function(t,e){for(var r=Math.min(t.length,e.length),n=new i(r),o=0;o<r;++o)n[o]=t[o]^e[o];return n}},8287(t,e,r){"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/const i=r(7526),n=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=h,e.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let i=a(r);const n=i.write(t,e);n!==r&&(i=i.slice(0,n));return i}(t,e);if(ArrayBuffer.isView(t))return function(t){if($(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return c(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if($(t,ArrayBuffer)||t&&$(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&($(t,SharedArrayBuffer)||t&&$(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return h.from(i,e,r);const n=function(t){if(h.isBuffer(t)){const e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||J(t.length)?a(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),a(t<0?0:0|p(t))}function c(t){const e=t.length<0?0:0|p(t.length),r=a(e);for(let i=0;i<e;i+=1)r[i]=255&t[i];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return i=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(i,h.prototype),i}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||$(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return i?-1:V(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,r){const i=t[e];t[e]=t[r],t[r]=i}function b(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=h.from(e,i)),h.isBuffer(e))return 0===e.length?-1:v(t,e,r,i,n);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,i,n){let o,s=1,a=t.length,h=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,h/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){let i=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===i?0:o-i)){if(-1===i&&(i=o),o-i+1===h)return i*s}else-1!==i&&(o-=o-i),i=-1}else for(r+h>a&&(r=a-h),o=r;o>=0;o--){let r=!0;for(let i=0;i<h;i++)if(u(t,o+i)!==u(e,i)){r=!1;break}if(r)return o}return-1}function w(t,e,r,i){r=Number(r)||0;const n=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;const o=e.length;let s;for(i>o/2&&(i=o/2),s=0;s<i;++s){const i=parseInt(e.substr(2*s,2),16);if(J(i))return s;t[r+s]=i}return s}function _(t,e,r,i){return Z(V(e,t.length-r),t,r,i)}function M(t,e,r,i){return Z(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function E(t,e,r,i){return Z(G(e),t,r,i)}function S(t,e,r,i){return Z(function(t,e){let r,i,n;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(e,t.length-r),t,r,i)}function k(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);const i=[];let n=e;for(;n<r;){const e=t[n];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(n+s<=r){let r,i,a,h;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[n+1],128==(192&r)&&(h=(31&e)<<6|63&r,h>127&&(o=h));break;case 3:r=t[n+1],i=t[n+2],128==(192&r)&&128==(192&i)&&(h=(15&e)<<12|(63&r)<<6|63&i,h>2047&&(h<55296||h>57343)&&(o=h));break;case 4:r=t[n+1],i=t[n+2],a=t[n+3],128==(192&r)&&128==(192&i)&&128==(192&a)&&(h=(15&e)<<18|(63&r)<<12|(63&i)<<6|63&a,h>65535&&h<1114112&&(o=h))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),n+=s}return function(t){const e=t.length;if(e<=B)return String.fromCharCode.apply(String,t);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=B));return r}(i)}e.kMaxLength=s,h.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),h.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,e,r){return function(t,e,r){return f(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},h.allocUnsafe=function(t){return l(t)},h.allocUnsafeSlow=function(t){return l(t)},h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if($(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),$(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,i=e.length;for(let n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const i=h.allocUnsafe(e);let n=0;for(r=0;r<t.length;++r){let e=t[r];if($(e,Uint8Array))n+e.length>i.length?(h.isBuffer(e)||(e=h.from(e)),e.copy(i,n)):Uint8Array.prototype.set.call(i,e,n);else{if(!h.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(i,n)}n+=e.length}return i},h.byteLength=y,h.prototype._isBuffer=!0,h.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)g(this,e,e+1);return this},h.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},h.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},h.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):m.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(h.prototype[o]=h.prototype.inspect),h.prototype.compare=function(t,e,r,i,n){if($(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(i,n),f=t.slice(e,r);for(let t=0;t<a;++t)if(u[t]!==f[t]){o=u[t],s=f[t];break}return o<s?-1:s<o?1:0},h.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},h.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},h.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},h.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}const n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return M(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const B=4096;function x(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function R(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function O(t,e,r){const i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=e;i<r;++i)n+=Y[t[i]];return n}function I(t,e,r){const i=t.slice(e,r);let n="";for(let t=0;t<i.length-1;t+=2)n+=String.fromCharCode(i[t]+256*i[t+1]);return n}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,r,i,n,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<o)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function C(t,e,r,i,n){K(e,i,n,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function U(t,e,r,i,n){K(e,i,n,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function P(t,e,r,i,n,o){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,i,o){return e=+e,r>>>=0,o||P(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function D(t,e,r,i,o){return e=+e,r>>>=0,o||P(t,0,r,8),n.write(t,e,r,i,52,8),r+8}h.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const i=this.subarray(t,e);return Object.setPrototypeOf(i,h.prototype),i},h.prototype.readUintLE=h.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let i=this[t],n=1,o=0;for(;++o<e&&(n*=256);)i+=this[t+o]*n;return i},h.prototype.readUintBE=h.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let i=this[t+--e],n=1;for(;e>0&&(n*=256);)i+=this[t+--e]*n;return i},h.prototype.readUint8=h.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readBigUInt64LE=X(function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,n=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(i)+(BigInt(n)<<BigInt(32))}),h.prototype.readBigUInt64BE=X(function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],n=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(i)<<BigInt(32))+BigInt(n)}),h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let i=this[t],n=1,o=0;for(;++o<e&&(n*=256);)i+=this[t+o]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*e)),i},h.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let i=e,n=1,o=this[t+--i];for(;i>0&&(n*=256);)o+=this[t+--i]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readBigInt64LE=X(function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const i=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),h.prototype.readBigInt64BE=X(function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)}),h.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),n.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),n.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),n.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),n.read(this,t,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(t,e,r,i){if(t=+t,e>>>=0,r>>>=0,!i){j(this,t,e,r,Math.pow(2,8*r)-1,0)}let n=1,o=0;for(this[e]=255&t;++o<r&&(n*=256);)this[e+o]=t/n&255;return e+r},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(t,e,r,i){if(t=+t,e>>>=0,r>>>=0,!i){j(this,t,e,r,Math.pow(2,8*r)-1,0)}let n=r-1,o=1;for(this[e+n]=255&t;--n>=0&&(o*=256);)this[e+n]=t/o&255;return e+r},h.prototype.writeUint8=h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigUInt64LE=X(function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=X(function(t,e=0){return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*r-1);j(this,t,e,r,i-1,-i)}let n=0,o=1,s=0;for(this[e]=255&t;++n<r&&(o*=256);)t<0&&0===s&&0!==this[e+n-1]&&(s=1),this[e+n]=(t/o|0)-s&255;return e+r},h.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*r-1);j(this,t,e,r,i-1,-i)}let n=r-1,o=1,s=0;for(this[e+n]=255&t;--n>=0&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o|0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeBigInt64LE=X(function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=X(function(t,e=0){return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,i){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);const n=i-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,i):Uint8Array.prototype.set.call(t,this.subarray(r,i),e),n},h.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!h.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){const e=t.charCodeAt(0);("utf8"===i&&e<128||"latin1"===i)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let n;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(n=e;n<r;++n)this[n]=t;else{const o=h.isBuffer(t)?t:h.from(t,i),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<r-e;++n)this[n+e]=o[n%s]}return this};const N={};function q(t,e,r){N[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function F(t){let e="",r=t.length;const i="-"===t[0]?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function K(t,e,r,i,n,o){if(t>r||t<e){const i="bigint"==typeof e?"n":"";let n;throw n=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new N.ERR_OUT_OF_RANGE("value",n,t)}!function(t,e,r){W(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||z(e,t.length-(r+1))}(i,n,o)}function W(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,r){if(Math.floor(t)!==t)throw W(t,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}q("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),q("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),q("ERR_OUT_OF_RANGE",function(t,e,r){let i=`The value of "${t}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=F(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=F(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function V(t,e){let r;e=e||1/0;const i=t.length;let n=null;const o=[];for(let s=0;s<i;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,r,i){let n;for(n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function $(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const Y=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const i=16*r;for(let n=0;n<16;++n)e[i+n]=t[r]+t[n]}return e}();function X(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},3144(t,e,r){"use strict";var i=r(6743),n=r(1002),o=r(76),s=r(7119);t.exports=s||i.call(o,n)},2205(t,e,r){"use strict";var i=r(6743),n=r(1002),o=r(3144);t.exports=function(){return o(i,n,arguments)}},1002(t){"use strict";t.exports=Function.prototype.apply},76(t){"use strict";t.exports=Function.prototype.call},3126(t,e,r){"use strict";var i=r(6743),n=r(9675),o=r(76),s=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return s(i,o,t)}},7119(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},487(t,e,r){"use strict";var i=r(6897),n=r(655),o=r(3126),s=r(2205);t.exports=function(t){var e=o(arguments),r=1+t.length-(arguments.length-1);return i(e,r>0?r:0,!0)},n?n(t.exports,"apply",{value:s}):t.exports.apply=s},6556(t,e,r){"use strict";var i=r(453),n=r(3126),o=n([i("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=i(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?n([r]):r}},6168(t,e,r){"use strict";var i=r(2861).Buffer,n=r(8310).Transform,o=r(3141).I,s=r(941),a=r(5377);function h(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s(h,n),h.prototype.update=function(t,e,r){var i=a(t,e),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},h.prototype.setAutoPadding=function(){},h.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},h.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},h.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},h.prototype._transform=function(t,e,r){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){i=t}finally{r(i)}},h.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},h.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},h.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can’t switch encodings");var i=this._decoder.write(t);return r&&(i+=this._decoder.end()),i},t.exports=h},941(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},5622(t,e,r){function i(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===i(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===i(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===i(t)},e.isError=function(t){return"[object Error]"===i(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(8287).Buffer.isBuffer},7108(t,e,r){"use strict";var i=r(6698),n=r(8276),o=r(6011),s=r(2802),a=r(6168);function h(t){a.call(this,"digest"),this._hash=t}i(h,a),h.prototype._update=function(t){this._hash.update(t)},h.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new n:"rmd160"===t||"ripemd160"===t?new o:new h(s(t))}},320(t,e,r){var i=r(8276);t.exports=function(t){return(new i).update(t).digest()}},3507(t,e,r){"use strict";var i=r(6698),n=r(1800),o=r(6168),s=r(2861).Buffer,a=r(320),h=r(6011),u=r(2802),f=s.alloc(128);function l(t,e){o.call(this,"digest"),"string"==typeof e&&(e=s.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new h:u(t)).update(e).digest():e.length<r&&(e=s.concat([e,f],r));for(var i=this._ipad=s.allocUnsafe(r),n=this._opad=s.allocUnsafe(r),a=0;a<r;a++)i[a]=54^e[a],n[a]=92^e[a];this._hash="rmd160"===t?new h:u(t),this._hash.update(i)}i(l,o),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new h:u(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new l("rmd160",e):"md5"===t?new n(a,e):new l(t,e)}},1800(t,e,r){"use strict";var i=r(6698),n=r(2861).Buffer,o=r(6168),s=n.alloc(128),a=64;function h(t,e){o.call(this,"digest"),"string"==typeof e&&(e=n.from(e)),this._alg=t,this._key=e,e.length>a?e=t(e):e.length<a&&(e=n.concat([e,s],a));for(var r=this._ipad=n.allocUnsafe(a),i=this._opad=n.allocUnsafe(a),h=0;h<a;h++)r[h]=54^e[h],i[h]=92^e[h];this._hash=[r]}i(h,o),h.prototype._update=function(t){this._hash.push(t)},h.prototype._final=function(){var t=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,t]))},t.exports=h},1565(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(3209),e.createHash=e.Hash=r(7108),e.createHmac=e.Hmac=r(3507);var i=r(8216),n=Object.keys(i),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);e.getHashes=function(){return o};var s=r(8396);e.pbkdf2=s.pbkdf2,e.pbkdf2Sync=s.pbkdf2Sync;var a=r(125);e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var h=r(5380);e.DiffieHellmanGroup=h.DiffieHellmanGroup,e.createDiffieHellmanGroup=h.createDiffieHellmanGroup,e.getDiffieHellman=h.getDiffieHellman,e.createDiffieHellman=h.createDiffieHellman,e.DiffieHellman=h.DiffieHellman;var u=r(4581);e.createSign=u.createSign,e.Sign=u.Sign,e.createVerify=u.createVerify,e.Verify=u.Verify,e.createECDH=r(9004);var f=r(7168);e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var l=r(6983);e.randomFill=l.randomFill,e.randomFillSync=l.randomFillSync,e.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},41(t,e,r){"use strict";var i=r(655),n=r(8068),o=r(9675),s=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!s&&s(t,e);if(i)i(t,e,{configurable:null===u&&l?l.configurable:!u,enumerable:null===a&&l?l.enumerable:!a,value:r,writable:null===h&&l?l.writable:!h});else{if(!f&&(a||h||u))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},9560(t,e,r){"use strict";e.utils=r(7626),e.Cipher=r(2808),e.DES=r(2211),e.CBC=r(3389),e.EDE=r(5279)},3389(t,e,r){"use strict";var i=r(3349),n=r(6698),o={};function s(t){i.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}n(e,t);for(var r=Object.keys(o),i=0;i<r.length;i++){var s=r[i];e.prototype[s]=o[s]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new s(this.options.iv);this._cbcState=t},o._update=function(t,e,r,i){var n=this._cbcState,o=this.constructor.super_.prototype,s=n.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=t[e+a];o._update.call(this,s,0,r,i);for(a=0;a<this.blockSize;a++)s[a]=r[i+a]}else{o._update.call(this,t,e,r,i);for(a=0;a<this.blockSize;a++)r[i+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=t[e+a]}}},2808(t,e,r){"use strict";var i=r(3349);function n(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==t.padding}t.exports=n,n.prototype._init=function(){},n.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},n.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i<r;i++)this.buffer[this.bufferOff+i]=t[e+i];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(t){var e=0,r=0,i=(this.bufferOff+t.length)/this.blockSize|0,n=new Array(i*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,n,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return n},n.prototype._updateDecrypt=function(t){for(var e=0,r=0,i=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,n=new Array(i*this.blockSize);i>0;i--)e+=this._buffer(t,e),r+=this._flushBuffer(n,r);return e+=this._buffer(t,e),n},n.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},n.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},n.prototype._unpad=function(t){return t},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},2211(t,e,r){"use strict";var i=r(3349),n=r(6698),o=r(7626),s=r(2808);function a(){this.tmp=new Array(2),this.keys=null}function h(t){s.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}n(h,s),t.exports=h,h.create=function(t){return new h(t)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];h.prototype.deriveKeys=function(t,e){t.keys=new Array(32),i.equal(e.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(e,0),n=o.readUInt32BE(e,4);o.pc1(r,n,t.tmp,0),r=t.tmp[0],n=t.tmp[1];for(var s=0;s<t.keys.length;s+=2){var a=u[s>>>1];r=o.r28shl(r,a),n=o.r28shl(n,a),o.pc2(r,n,t.keys,s)}},h.prototype._update=function(t,e,r,i){var n=this._desState,s=o.readUInt32BE(t,e),a=o.readUInt32BE(t,e+4);o.ip(s,a,n.tmp,0),s=n.tmp[0],a=n.tmp[1],"encrypt"===this.type?this._encrypt(n,s,a,n.tmp,0):this._decrypt(n,s,a,n.tmp,0),s=n.tmp[0],a=n.tmp[1],o.writeUInt32BE(r,s,i),o.writeUInt32BE(r,a,i+4)},h.prototype._pad=function(t,e){if(!1===this.padding)return!1;for(var r=t.length-e,i=e;i<t.length;i++)t[i]=r;return!0},h.prototype._unpad=function(t){if(!1===this.padding)return t;for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)i.equal(t[r],e);return t.slice(0,t.length-e)},h.prototype._encrypt=function(t,e,r,i,n){for(var s=e,a=r,h=0;h<t.keys.length;h+=2){var u=t.keys[h],f=t.keys[h+1];o.expand(a,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var l=o.substitute(u,f),c=a;a=(s^o.permute(l))>>>0,s=c}o.rip(a,s,i,n)},h.prototype._decrypt=function(t,e,r,i,n){for(var s=r,a=e,h=t.keys.length-2;h>=0;h-=2){var u=t.keys[h],f=t.keys[h+1];o.expand(s,t.tmp,0),u^=t.tmp[0],f^=t.tmp[1];var l=o.substitute(u,f),c=s;s=(a^o.permute(l))>>>0,a=c}o.rip(s,a,i,n)}},5279(t,e,r){"use strict";var i=r(3349),n=r(6698),o=r(2808),s=r(2211);function a(t,e){i.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),n=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:n}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:r})]}function h(t){o.call(this,t);var e=new a(this.type,this.options.key);this._edeState=e}n(h,o),t.exports=h,h.create=function(t){return new h(t)},h.prototype._update=function(t,e,r,i){var n=this._edeState;n.ciphers[0]._update(t,e,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},h.prototype._pad=s.prototype._pad,h.prototype._unpad=s.prototype._unpad},7626(t,e){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,i){for(var n=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)n<<=1,n|=e>>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1}r[i+0]=n>>>0,r[i+1]=o>>>0},e.rip=function(t,e,r,i){for(var n=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)n<<=1,n|=e>>>a+s&1,n<<=1,n|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+s&1;r[i+0]=n>>>0,r[i+1]=o>>>0},e.pc1=function(t,e,r,i){for(var n=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+s&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;r[i+0]=n>>>0,r[i+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[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];e.pc2=function(t,e,i,n){for(var o=0,s=0,a=r.length>>>1,h=0;h<a;h++)o<<=1,o|=t>>>r[h]&1;for(h=a;h<r.length;h++)s<<=1,s|=e>>>r[h]&1;i[n+0]=o>>>0,i[n+1]=s>>>0},e.expand=function(t,e,r){var i=0,n=0;i=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=t>>>o&63;for(o=11;o>=3;o-=4)n|=t>>>o&63,n<<=6;n|=(31&t)<<1|t>>>31,e[r+0]=i>>>0,e[r+1]=n>>>0};var i=[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];e.substitute=function(t,e){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(t>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(e>>>18-6*n&63)]}return r>>>0};var n=[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];e.permute=function(t){for(var e=0,r=0;r<n.length;r++)e<<=1,e|=t>>>n[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var i=t.toString(2);i.length<e;)i="0"+i;for(var n=[],o=0;o<e;o+=r)n.push(i.slice(o,o+r));return n.join(" ")}},5380(t,e,r){var i=r(8287).Buffer,n=r(4934),o=r(3241),s=r(4910);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new i(o[t].prime,"hex"),r=new i(o[t].gen,"hex");return new s(e,r)},e.createDiffieHellman=e.DiffieHellman=function t(e,r,o,h){return i.isBuffer(r)||void 0===a[r]?t(e,"binary",r,o):(r=r||"binary",h=h||"binary",o=o||new i([2]),i.isBuffer(o)||(o=new i(o,h)),"number"==typeof e?new s(n(e,o),o,!0):(i.isBuffer(e)||(e=new i(e,r)),new s(e,o,!0)))}},4910(t,e,r){var i=r(8287).Buffer,n=r(9404),o=new(r(2244)),s=new n(24),a=new n(11),h=new n(10),u=new n(3),f=new n(7),l=r(4934),c=r(3209);function d(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new n(t),this}function p(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new n(t),this}t.exports=m;var y={};function m(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function g(t,e){var r=new i(t.toArray());return e?r.toString(e):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),i=[r,t.toString(16)].join("_");if(i in y)return y[i];var n,c=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return c+=1,c+="02"===r||"05"===r?8:4,y[i]=c,c;switch(o.test(t.shrn(1))||(c+=2),r){case"02":t.mod(s).cmp(a)&&(c+=8);break;case"05":(n=t.mod(h)).cmp(u)&&n.cmp(f)&&(c+=8);break;default:c+=4}return y[i]=c,c}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(c(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var e=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new i(e.toArray()),o=this.getPrime();if(r.length<o.length){var s=new i(o.length-r.length);s.fill(0),r=i.concat([s,r])}return r},m.prototype.getPublicKey=function(t){return g(this._pub,t)},m.prototype.getPrivateKey=function(t){return g(this._priv,t)},m.prototype.getPrime=function(t){return g(this.__prime,t)},m.prototype.getGenerator=function(t){return g(this._gen,t)},m.prototype.setGenerator=function(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this.__gen=t,this._gen=new n(t),this}},4934(t,e,r){var i=r(3209);t.exports=b,b.simpleSieve=m,b.fermatTest=g;var n=r(9404),o=new n(24),s=new(r(2244)),a=new n(1),h=new n(2),u=new n(5),f=(new n(16),new n(8),new n(10)),l=new n(3),c=(new n(7),new n(11)),d=new n(4),p=(new n(12),null);function y(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var i=Math.ceil(Math.sqrt(r)),n=0;n<e&&t[n]<=i&&r%t[n]!==0;n++);e!==n&&t[n]<=i||(t[e++]=r)}return p=t,t}function m(t){for(var e=y(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function g(t){var e=n.mont(t);return 0===h.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function b(t,e){if(t<16)return new n(2===e||5===e?[140,123]:[140,39]);var r,p;for(e=new n(e);;){for(r=new n(i(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(a),r.testn(1)||r.iadd(h),e.cmp(h)){if(!e.cmp(u))for(;r.mod(f).cmp(l);)r.iadd(d)}else for(;r.mod(o).cmp(c);)r.iadd(d);if(m(p=r.shrn(1))&&m(r)&&g(p)&&g(r)&&s.test(p)&&s.test(r))return r}}},7176(t,e,r){"use strict";var i,n=r(3126),o=r(5795);try{i=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!i&&o&&o(Object.prototype,"__proto__"),a=Object,h=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?n([s.get]):"function"==typeof h&&function(t){return h(null==t?t:a(t))}},655(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},1237(t){"use strict";t.exports=EvalError},9383(t){"use strict";t.exports=Error},9290(t){"use strict";t.exports=RangeError},9538(t){"use strict";t.exports=ReferenceError},8068(t){"use strict";t.exports=SyntaxError},9675(t){"use strict";t.exports=TypeError},5345(t){"use strict";t.exports=URIError},9612(t){"use strict";t.exports=Object},7007(t){"use strict";var e,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var n=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(r,i){function n(r){t.removeListener(e,o),i(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",n),r([].slice.call(arguments))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&y(t,"error",e,r)}(t,n,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,r,i){var n,o,s,u;if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(n=h(t))>0&&s.length>n&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=s.length,u=f,console&&console.warn&&console.warn(u)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=f.bind(i);return n.listener=r,i.wrapFn=n,n}function c(t,e,r){var i=t._events;if(void 0===i)return[];var n=i[e];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(n):p(n,n.length)}function d(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}function y(t,e,r,i){if("function"==typeof t.on)i.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function n(o){i.once&&t.removeEventListener(e,n),r(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||n(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||n(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return h(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var h=o[t];if(void 0===h)return!1;if("function"==typeof h)i(h,this,e);else{var u=h.length,f=p(h,u);for(r=0;r<u;++r)i(f[r],this,e)}return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,l(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,l(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,i,n,o,s;if(a(e),void 0===(i=this._events))return this;if(void 0===(r=i[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(n=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,n),1===r.length&&(i[t]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},o.prototype.listeners=function(t){return c(this,t,!0)},o.prototype.rawListeners=function(t){return c(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},8078(t,e,r){var i=r(2861).Buffer,n=r(8276);t.exports=function(t,e,r,o){if(i.isBuffer(t)||(t=i.from(t,"binary")),e&&(i.isBuffer(e)||(e=i.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,a=i.alloc(s),h=i.alloc(o||0),u=i.alloc(0);s>0||o>0;){var f=new n;f.update(u),f.update(t),e&&f.update(e),u=f.digest();var l=0;if(s>0){var c=a.length-s;l=Math.min(s,u.length),u.copy(a,c,0,l),s-=l}if(l<u.length&&o>0){var d=h.length-o,p=Math.min(o,u.length-l);u.copy(h,d,l,l+p),o-=p}}return u.fill(0),{key:a,iv:h}}},2682(t,e,r){"use strict";var i=r(9600),n=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!i(e))throw new TypeError("iterator must be a function");var s,a;arguments.length>=3&&(s=r),a=t,"[object Array]"===n.call(a)?function(t,e,r){for(var i=0,n=t.length;i<n;i++)o.call(t,i)&&(null==r?e(t[i],i,t):e.call(r,t[i],i,t))}(t,e,s):"string"==typeof t?function(t,e,r){for(var i=0,n=t.length;i<n;i++)null==r?e(t.charAt(i),i,t):e.call(r,t.charAt(i),i,t)}(t,e,s):function(t,e,r){for(var i in t)o.call(t,i)&&(null==r?e(t[i],i,t):e.call(r,t[i],i,t))}(t,e,s)}},9353(t){"use strict";var e=Object.prototype.toString,r=Math.max,i=function(t,e){for(var r=[],i=0;i<t.length;i+=1)r[i]=t[i];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,s=function(t,e){for(var r=[],i=e||0,n=0;i<t.length;i+=1,n+=1)r[n]=t[i];return r}(arguments,1),a=r(0,n.length-s.length),h=[],u=0;u<a;u++)h[u]="$"+u;if(o=Function("binder","return function ("+function(t,e){for(var r="",i=0;i<t.length;i+=1)r+=t[i],i+1<t.length&&(r+=e);return r}(h,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=n.apply(this,i(s,arguments));return Object(e)===e?e:this}return n.apply(t,i(s,arguments))}),n.prototype){var f=function(){};f.prototype=n.prototype,o.prototype=new f,f.prototype=null}return o}},6743(t,e,r){"use strict";var i=r(9353);t.exports=Function.prototype.bind||i},453(t,e,r){"use strict";var i,n=r(9612),o=r(9383),s=r(1237),a=r(9290),h=r(9538),u=r(8068),f=r(9675),l=r(5345),c=r(1514),d=r(8968),p=r(6188),y=r(8002),m=r(5880),g=r(414),b=r(3093),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},_=r(5795),M=r(655),E=function(){throw new f},S=_?function(){try{return E}catch(t){try{return _(arguments,"callee").get}catch(t){return E}}}():E,k=r(4039)(),A=r(3628),B=r(1064),x=r(8648),R=r(1002),O=r(76),I={},T="undefined"!=typeof Uint8Array&&A?A(Uint8Array):i,j={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":k&&A?A([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&A?A(A([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&A?A((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":a,"%ReferenceError%":h,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&A?A((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&A?A(""[Symbol.iterator]()):i,"%Symbol%":k?Symbol:i,"%SyntaxError%":u,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":R,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":B,"%Math.abs%":c,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":x};if(A)try{null.error}catch(t){var C=A(A(t));j["%Error.prototype%"]=C}var U=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&A&&(r=A(n.prototype))}return j[e]=r,r},P={__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"]},L=r(6743),D=r(9957),N=L.call(O,Array.prototype.concat),q=L.call(R,Array.prototype.splice),F=L.call(O,String.prototype.replace),K=L.call(O,String.prototype.slice),W=L.call(O,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,V=function(t,e){var r,i=t;if(D(P,i)&&(i="%"+(r=P[i])[0]+"%"),D(j,i)){var n=j[i];if(n===I&&(n=U(i)),void 0===n&&!e)throw new f("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=K(t,0,1),r=K(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var i=[];return F(t,z,function(t,e,r,n){i[i.length]=r?F(n,H,"$1"):e||t}),i}(t),i=r.length>0?r[0]:"",n=V("%"+i+"%",e),o=n.name,s=n.value,a=!1,h=n.alias;h&&(i=h[0],q(r,N([0,1],h)));for(var l=1,c=!0;l<r.length;l+=1){var d=r[l],p=K(d,0,1),y=K(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&c||(a=!0),D(j,o="%"+(i+="."+d)+"%"))s=j[o];else if(null!=s){if(!(d in s)){if(!e)throw new f("base intrinsic for "+t+" exists, but the property is not available.");return}if(_&&l+1>=r.length){var m=_(s,d);s=(c=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[d]}else c=D(s,d),s=s[d];c&&!a&&(j[o]=s)}}return s}},1064(t,e,r){"use strict";var i=r(9612);t.exports=i.getPrototypeOf||null},8648(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628(t,e,r){"use strict";var i=r(8648),n=r(1064),o=r(7176);t.exports=i?function(t){return i(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:o?function(t){return o(t)}:null},6549(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},5795(t,e,r){"use strict";var i=r(6549);if(i)try{i([],"length")}catch(t){i=null}t.exports=i},592(t,e,r){"use strict";var i=r(655),n=function(){return!!i};n.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(t){return!0}},t.exports=n},4039(t,e,r){"use strict";var i="undefined"!=typeof Symbol&&Symbol,n=r(1333);t.exports=function(){return"function"==typeof i&&("function"==typeof Symbol&&("symbol"==typeof i("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},1333(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var i in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9092(t,e,r){"use strict";var i=r(1333);t.exports=function(){return i()&&!!Symbol.toStringTag}},4729(t,e,r){"use strict";var i=r(2861).Buffer,n=r(8310).Transform;function o(t){n.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(9094)(o,n),o.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(t){i=t}r(i)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)};var s="undefined"!=typeof Uint8Array,a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);o.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=function(t,e){if(t instanceof i)return t;if("string"==typeof t)return i.from(t,e);if(a&&ArrayBuffer.isView(t)){if(0===t.byteLength)return i.alloc(0);var r=i.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(s&&t instanceof Uint8Array)return i.from(t);if(i.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return i.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(t,e);for(var r=this._block,n=0;this._blockOffset+t.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[n++];this._update(),this._blockOffset=0}for(;n<t.length;)r[this._blockOffset++]=t[n++];for(var h=0,u=8*t.length;u>0;++h)this._length[h]+=u,(u=this._length[h]/4294967296|0)>0&&(this._length[h]-=4294967296*u);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},9094(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},9957(t,e,r){"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=r(6743);t.exports=o.call(i,n)},251(t,e){
|
|
8
|
-
|
|
9
|
-
e.read=function(t,e,r,i,n){var o,s,a=8*n-i-1,h=(1<<a)-1,u=h>>1,f=-7,l=r?n-1:0,c=r?-1:1,d=t[e+l];for(l+=c,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=256*o+t[e+l],l+=c,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=i;f>0;s=256*s+t[e+l],l+=c,f-=8);if(0===o)o=1-u;else{if(o===h)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,i),o-=u}return(d?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,r,i,n,o){var s,a,h,u=8*o-n-1,f=(1<<u)-1,l=f>>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))<1&&(s--,h*=2),(e+=s+l>=1?c/h:c*Math.pow(2,1-l))*h>=2&&(s++,h/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*h-1)*Math.pow(2,n),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,n),s=0));n>=8;t[r+d]=255&a,d+=p,a/=256,n-=8);for(s=s<<n|a,u+=n;u>0;t[r+d]=255&s,d+=p,s/=256,u-=8);t[r+d-p]|=128*y}},6698(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},9600(t){"use strict";var e,r,i=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,e)}catch(t){t!==r&&(n=null)}else n=null;var o=/^\s*class\b/,s=function(t){try{var e=i.call(t);return o.test(e)}catch(t){return!1}},a=function(t){try{return!s(t)&&(i.call(t),!0)}catch(t){return!1}},h=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var c=document.all;h.call(c)===h.call(document.all)&&(l=function(t){if((f||!t)&&(void 0===t||"object"==typeof t))try{var e=h.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=n?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{n(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=h.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},5680(t,e,r){"use strict";var i=r(5767);t.exports=function(t){return!!i(t)}},1514(t){"use strict";t.exports=Math.abs},8968(t){"use strict";t.exports=Math.floor},4459(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},6188(t){"use strict";t.exports=Math.max},8002(t){"use strict";t.exports=Math.min},5880(t){"use strict";t.exports=Math.pow},414(t){"use strict";t.exports=Math.round},3093(t,e,r){"use strict";var i=r(4459);t.exports=function(t){return i(t)||0===t?t:t<0?-1:1}},8276(t,e,r){"use strict";var i=r(6698),n=r(4729),o=r(2861).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<<e|t>>>32-e}function u(t,e,r,i,n,o,s){return h(t+(e&r|~e&i)+n+o|0,s)+e|0}function f(t,e,r,i,n,o,s){return h(t+(e&i|r&~i)+n+o|0,s)+e|0}function l(t,e,r,i,n,o,s){return h(t+(e^r^i)+n+o|0,s)+e|0}function c(t,e,r,i,n,o,s){return h(t+(r^(e|~i))+n+o|0,s)+e|0}i(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,i=this._b,n=this._c,o=this._d;r=u(r,i,n,o,t[0],3614090360,7),o=u(o,r,i,n,t[1],3905402710,12),n=u(n,o,r,i,t[2],606105819,17),i=u(i,n,o,r,t[3],3250441966,22),r=u(r,i,n,o,t[4],4118548399,7),o=u(o,r,i,n,t[5],1200080426,12),n=u(n,o,r,i,t[6],2821735955,17),i=u(i,n,o,r,t[7],4249261313,22),r=u(r,i,n,o,t[8],1770035416,7),o=u(o,r,i,n,t[9],2336552879,12),n=u(n,o,r,i,t[10],4294925233,17),i=u(i,n,o,r,t[11],2304563134,22),r=u(r,i,n,o,t[12],1804603682,7),o=u(o,r,i,n,t[13],4254626195,12),n=u(n,o,r,i,t[14],2792965006,17),r=f(r,i=u(i,n,o,r,t[15],1236535329,22),n,o,t[1],4129170786,5),o=f(o,r,i,n,t[6],3225465664,9),n=f(n,o,r,i,t[11],643717713,14),i=f(i,n,o,r,t[0],3921069994,20),r=f(r,i,n,o,t[5],3593408605,5),o=f(o,r,i,n,t[10],38016083,9),n=f(n,o,r,i,t[15],3634488961,14),i=f(i,n,o,r,t[4],3889429448,20),r=f(r,i,n,o,t[9],568446438,5),o=f(o,r,i,n,t[14],3275163606,9),n=f(n,o,r,i,t[3],4107603335,14),i=f(i,n,o,r,t[8],1163531501,20),r=f(r,i,n,o,t[13],2850285829,5),o=f(o,r,i,n,t[2],4243563512,9),n=f(n,o,r,i,t[7],1735328473,14),r=l(r,i=f(i,n,o,r,t[12],2368359562,20),n,o,t[5],4294588738,4),o=l(o,r,i,n,t[8],2272392833,11),n=l(n,o,r,i,t[11],1839030562,16),i=l(i,n,o,r,t[14],4259657740,23),r=l(r,i,n,o,t[1],2763975236,4),o=l(o,r,i,n,t[4],1272893353,11),n=l(n,o,r,i,t[7],4139469664,16),i=l(i,n,o,r,t[10],3200236656,23),r=l(r,i,n,o,t[13],681279174,4),o=l(o,r,i,n,t[0],3936430074,11),n=l(n,o,r,i,t[3],3572445317,16),i=l(i,n,o,r,t[6],76029189,23),r=l(r,i,n,o,t[9],3654602809,4),o=l(o,r,i,n,t[12],3873151461,11),n=l(n,o,r,i,t[15],530742520,16),r=c(r,i=l(i,n,o,r,t[2],3299628645,23),n,o,t[0],4096336452,6),o=c(o,r,i,n,t[7],1126891415,10),n=c(n,o,r,i,t[14],2878612391,15),i=c(i,n,o,r,t[5],4237533241,21),r=c(r,i,n,o,t[12],1700485571,6),o=c(o,r,i,n,t[3],2399980690,10),n=c(n,o,r,i,t[10],4293915773,15),i=c(i,n,o,r,t[1],2240044497,21),r=c(r,i,n,o,t[8],1873313359,6),o=c(o,r,i,n,t[15],4264355552,10),n=c(n,o,r,i,t[6],2734768916,15),i=c(i,n,o,r,t[13],1309151649,21),r=c(r,i,n,o,t[4],4149444226,6),o=c(o,r,i,n,t[11],3174756917,10),n=c(n,o,r,i,t[2],718787259,15),i=c(i,n,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+o|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},2244(t,e,r){var i=r(9404),n=r(5037);function o(t){this.rand=t||new n.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(t)>=0);return n},o.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},o.prototype.test=function(t,e,r){var n=t.bitLength(),o=i.mont(t),s=new i(1).toRed(o);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),h=0;!a.testn(h);h++);for(var u=t.shrn(h),f=a.toRed(o);e>0;e--){var l=this._randrange(new i(2),a);r&&r(l);var c=l.toRed(o).redPow(u);if(0!==c.cmp(s)&&0!==c.cmp(f)){for(var d=1;d<h;d++){if(0===(c=c.redSqr()).cmp(s))return!1;if(0===c.cmp(f))break}if(d===h)return!1}}return!0},o.prototype.getDivisor=function(t,e){var r=t.bitLength(),n=i.mont(t),o=new i(1).toRed(n);e||(e=Math.max(1,r/48|0));for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);e>0;e--){var f=this._randrange(new i(2),s),l=t.gcd(f);if(0!==l.cmpn(1))return l;var c=f.toRed(n).redPow(h);if(0!==c.cmp(o)&&0!==c.cmp(u)){for(var d=1;d<a;d++){if(0===(c=c.redSqr()).cmp(o))return c.fromRed().subn(1).gcd(t);if(0===c.cmp(u))break}if(d===a)return(c=c.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},3349(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},1137(t,e,r){"use strict";var i=r(7568);e.certificate=r(6413);var n=i.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())});e.RSAPrivateKey=n;var o=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var s=i.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())}),a=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});e.PublicKey=a;var h=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});e.PrivateKey=h;var u=i.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())});e.EncryptedPrivateKey=u;var f=i.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())});e.DSAPrivateKey=f,e.DSAparam=i.define("DSAparam",function(){this.int()});var l=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),c=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=c,e.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},6413(t,e,r){"use strict";var i=r(7568),n=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),h=i.define("RelativeDistinguishedName",function(){this.setof(o)}),u=i.define("RDNSequence",function(){this.seqof(h)}),f=i.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),l=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))}),c=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(c).optional())}),p=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});t.exports=p},4101(t,e,r){"use strict";var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=r(8078),a=r(1241),h=r(2861).Buffer;t.exports=function(t,e){var r,u=t.toString(),f=u.match(i);if(f){var l="aes"+f[1],c=h.from(f[2],"hex"),d=h.from(f[3].replace(/[\r\n]/g,""),"base64"),p=s(e,c.slice(0,8),parseInt(f[1],10)).key,y=[],m=a.createDecipheriv(l,p,c);y.push(m.update(d)),y.push(m.final()),r=h.concat(y)}else{var g=u.match(o);r=h.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(n)[1],data:r}}},8170(t,e,r){"use strict";var i=r(1137),n=r(5579),o=r(4101),s=r(1241),a=r(8396).pbkdf2Sync,h=r(2861).Buffer;function u(t){var e;"object"!=typeof t||h.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=h.from(t));var r,u,f=o(t,e),l=f.tag,c=f.data;switch(l){case"CERTIFICATE":u=i.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(c,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":c=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[t.algorithm.decrypt.cipher.algo.join(".")],u=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,c=a(e,r,i,l,"sha1"),d=s.createDecipheriv(o,c,u),p=[];return p.push(d.update(f)),p.push(d.final()),h.concat(p)}(c=i.EncryptedPrivateKey.decode(c,"der"),e);case"PRIVATE KEY":switch(r=(u=i.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=i.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw new Error("unknown key type "+l)}}u.signature=i.signature,t.exports=u},8396(t,e,r){"use strict";e.pbkdf2=r(3832),e.pbkdf2Sync=r(1352)},3832(t,e,r){"use strict";var i,n,o=r(2861).Buffer,s=r(4196),a=r(2455),h=r(1352),u=r(3382),f=r.g.crypto&&r.g.crypto.subtle,l={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"},c=[];function d(){return n||(n=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(t,e,r,i,n){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:n}},t,i<<3)}).then(function(t){return o.from(t)})}t.exports=function(t,e,n,y,m,g){if("function"==typeof m&&(g=m,m=void 0),s(n,y),t=u(t,a,"Password"),e=u(e,a,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");var b=l[(m=m||"sha1").toLowerCase()];b&&"function"==typeof r.g.Promise?function(t,e){t.then(function(t){d()(function(){e(null,t)})},function(t){d()(function(){e(t)})})}(function(t){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==c[t])return c[t];var e=p(i=i||o.alloc(8),i,10,128,t).then(function(){return!0},function(){return!1});return c[t]=e,e}(b).then(function(r){return r?p(t,e,n,y,b):h(t,e,n,y,m)}),g):d()(function(){var r;try{r=h(t,e,n,y,m)}catch(t){return void g(t)}g(null,r)})}},2455(t,e,r){"use strict";var i,n=r(5606);if(r.g.process&&r.g.process.browser)i="utf-8";else if(r.g.process&&r.g.process.version){i=parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else i="utf-8";t.exports=i},4196(t){"use strict";var e=isFinite,r=Math.pow(2,30)-1;t.exports=function(t,i){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0||!e(t))throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>r||i!=i)throw new TypeError("Bad key length")}},1352(t,e,r){"use strict";var i=r(320),n=r(6011),o=r(2802),s=r(2861).Buffer,a=r(4196),h=r(2455),u=r(3382),f=s.alloc(128),l={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},c={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function d(t){return(new n).update(t).digest()}function p(t,e,r){var n=function(t){return"rmd160"===t||"ripemd160"===t?d:"md5"===t?i:function(e){return o(t).update(e).digest()}}(t),a="sha512"===t||"sha384"===t?128:64;e.length>a?e=n(e):e.length<a&&(e=s.concat([e,f],a));for(var h=s.allocUnsafe(a+l[t]),u=s.allocUnsafe(a+l[t]),c=0;c<a;c++)h[c]=54^e[c],u[c]=92^e[c];var p=s.allocUnsafe(a+r+4);h.copy(p,0,0,a),this.ipad1=p,this.ipad2=h,this.opad=u,this.alg=t,this.blocksize=a,this.hash=n,this.size=l[t]}p.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,r,i,n){a(r,i),t=u(t,h,"Password"),e=u(e,h,"Salt");var o=(n||"sha1").toLowerCase(),f=c[o]||o,d=l[f];if("number"!=typeof d||!d)throw new TypeError("Digest algorithm not supported: "+n);var y=new p(f,t,e.length),m=s.allocUnsafe(i),g=s.allocUnsafe(e.length+4);e.copy(g,0,0,e.length);for(var b=0,v=d,w=Math.ceil(i/v),_=1;_<=w;_++){g.writeUInt32BE(_,e.length);for(var M=y.run(g,y.ipad1),E=M,S=1;S<r;S++){E=y.run(E,y.ipad2);for(var k=0;k<v;k++)M[k]^=E[k]}M.copy(m,b),b+=v}return m}},3382(t,e,r){"use strict";var i=r(2861).Buffer,n=r(5377),o="undefined"!=typeof Uint8Array,s=o&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e,r){if("string"==typeof t||i.isBuffer(t)||o&&t instanceof Uint8Array||s&&s(t))return n(t,e);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}},6578(t){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},3225(t,e,r){"use strict";var i=r(5606);void 0===i||!i.version||0===i.version.indexOf("v0.")||0===i.version.indexOf("v1.")&&0!==i.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return i.nextTick(t);case 2:return i.nextTick(function(){t.call(null,e)});case 3:return i.nextTick(function(){t.call(null,e,r)});case 4:return i.nextTick(function(){t.call(null,e,r,n)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return i.nextTick(function(){t.apply(null,o)})}}}:t.exports=i},5606(t){var e,r,i=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var a,h=[],u=!1,f=-1;function l(){u&&a&&(u=!1,a.length?h=a.concat(h):f=-1,h.length&&c())}function c(){if(!u){var t=s(l);u=!0;for(var e=h.length;e;){for(a=h,h=[];++f<e;)a&&a[f].run();f=-1,e=h.length}a=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];h.push(new d(t,e)),1!==h.length||u||s(c)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},7168(t,e,r){e.publicEncrypt=r(8902),e.privateDecrypt=r(7362),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},8206(t,e,r){var i=r(7108),n=r(2861).Buffer;function o(t){var e=n.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,s=n.alloc(0),a=0;s.length<e;)r=o(a++),s=n.concat([s,i("sha1").update(t).update(r).digest()]);return s.slice(0,e)}},7362(t,e,r){var i=r(8170),n=r(8206),o=r(2061),s=r(9404),a=r(7332),h=r(7108),u=r(9247),f=r(2861).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var c,d=i(t),p=d.modulus.byteLength();if(e.length>p||new s(e).cmp(d.modulus)>=0)throw new Error("decryption error");c=r?u(new s(e),d):a(e,d);var y=f.alloc(p-c.length);if(c=f.concat([y,c],p),4===l)return function(t,e){var r=t.modulus.byteLength(),i=h("sha1").update(f.alloc(0)).digest(),s=i.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,s+1),u=e.slice(s+1),l=o(a,n(u,s)),c=o(u,n(l,r-s-1));if(function(t,e){t=f.from(t),e=f.from(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));var n=-1;for(;++n<i;)r+=t[n]^e[n];return r}(i,c.slice(0,s)))throw new Error("decryption error");var d=s;for(;0===c[d];)d++;if(1!==c[d++])throw new Error("decryption error");return c.slice(d)}(d,c);if(1===l)return function(t,e,r){var i=e.slice(0,2),n=2,o=0;for(;0!==e[n++];)if(n>=e.length){o++;break}var s=e.slice(2,n-1);("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&o++;s.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(n)}(0,c,r);if(3===l)return c;throw new Error("unknown padding")}},8902(t,e,r){var i=r(8170),n=r(3209),o=r(7108),s=r(8206),a=r(2061),h=r(9404),u=r(9247),f=r(7332),l=r(2861).Buffer;t.exports=function(t,e,r){var c;c=t.padding?t.padding:r?1:4;var d,p=i(t);if(4===c)d=function(t,e){var r=t.modulus.byteLength(),i=e.length,u=o("sha1").update(l.alloc(0)).digest(),f=u.length,c=2*f;if(i>r-c-2)throw new Error("message too long");var d=l.alloc(r-i-c-2),p=r-f-1,y=n(f),m=a(l.concat([u,d,l.alloc(1,1),e],p),s(y,p)),g=a(y,s(m,f));return new h(l.concat([l.alloc(1),g,m],r))}(p,e);else if(1===c)d=function(t,e,r){var i,o=e.length,s=t.modulus.byteLength();if(o>s-11)throw new Error("message too long");i=r?l.alloc(s-o-3,255):function(t){var e,r=l.allocUnsafe(t),i=0,o=n(2*t),s=0;for(;i<t;)s===o.length&&(o=n(2*t),s=0),(e=o[s++])&&(r[i++]=e);return r}(s-o-3);return new h(l.concat([l.from([0,r?1:2]),i,l.alloc(1),e],s))}(p,e,r);else{if(3!==c)throw new Error("unknown padding");if((d=new h(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?f(d,p):u(d,p)}},9247(t,e,r){var i=r(9404),n=r(2861).Buffer;t.exports=function(t,e){return n.from(t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed().toArray())}},2061(t){t.exports=function(t,e){for(var r=t.length,i=-1;++i<r;)t[i]^=e[i];return t}},3209(t,e,r){"use strict";var i=r(5606),n=65536,o=4294967295;var s=r(2861).Buffer,a=r.g.crypto||r.g.msCrypto;a&&a.getRandomValues?t.exports=function(t,e){if(t>o)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(t);if(t>0)if(t>n)for(var h=0;h<t;h+=n)a.getRandomValues(r.slice(h,h+n));else a.getRandomValues(r);if("function"==typeof e)return i.nextTick(function(){e(null,r)});return r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},6983(t,e,r){"use strict";var i=r(5606);function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(2861),s=r(3209),a=o.Buffer,h=o.kMaxLength,u=r.g.crypto||r.g.msCrypto,f=Math.pow(2,32)-1;function l(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>f||t<0)throw new TypeError("offset must be a uint32");if(t>h||t>e)throw new RangeError("offset out of range")}function c(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>f||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>h)throw new RangeError("buffer too small")}function d(t,e,r,n){if(i.browser){var o=t.buffer,a=new Uint8Array(o,e,r);return u.getRandomValues(a),n?void i.nextTick(function(){n(null,t)}):t}if(!n)return s(r).copy(t,e),t;s(r,function(r,i){if(r)return n(r);i.copy(t,e),n(null,t)})}u&&u.getRandomValues||!i.browser?(e.randomFill=function(t,e,i,n){if(!(a.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)n=e,e=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-e;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return l(e,t.length),c(i,e,t.length),d(t,e,i,n)},e.randomFillSync=function(t,e,i){void 0===e&&(e=0);if(!(a.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(e,t.length),void 0===i&&(i=t.length-e);return c(i,e,t.length),d(t,e,i)}):(e.randomFill=n,e.randomFillSync=n)},5382(t,e,r){"use strict";var i=r(3225),n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var o=Object.create(r(5622));o.inherits=r(6698);var s=r(5412),a=r(6708);o.inherits(l,s);for(var h=n(a.prototype),u=0;u<h.length;u++){var f=h[u];l.prototype[f]||(l.prototype[f]=a.prototype[f])}function l(t){if(!(this instanceof l))return new l(t);s.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||i.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),l.prototype._destroy=function(t,e){this.push(null),this.end(),i.nextTick(e,t)}},3600(t,e,r){"use strict";t.exports=o;var i=r(4610),n=Object.create(r(5622));function o(t){if(!(this instanceof o))return new o(t);i.call(this,t)}n.inherits=r(6698),n.inherits(o,i),o.prototype._transform=function(t,e,r){r(null,t)}},5412(t,e,r){"use strict";var i=r(5606),n=r(3225);t.exports=v;var o,s=r(7225);v.ReadableState=b;r(7007).EventEmitter;var a=function(t,e){return t.listeners(e).length},h=r(345),u=r(4106).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(r(5622));l.inherits=r(6698);var c=r(9838),d=void 0;d=c&&c.debuglog?c.debuglog("stream"):function(){};var p,y=r(3222),m=r(5896);l.inherits(v,h);var g=["error","close","destroy","pause","resume"];function b(t,e){t=t||{};var i=e instanceof(o=o||r(5382));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=r(3141).I),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||r(5382),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),h.call(this)}function w(t,e,r,i,n){var o,s=t._readableState;null===e?(s.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,S(t)}(t,s)):(n||(o=function(t,e){var r;i=e,u.isBuffer(i)||i instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var i;return r}(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?_(t,s,e,!1):A(t,s)):_(t,s,e,!1))):i||(s.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(s)}function _(t,e,r,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&S(t)),A(t,e)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=u.from(t,e),e=""),r=!0),w(this,t,e,!1,r)},v.prototype.unshift=function(t){return w(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=r(3141).I),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var M=8388608;function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=M?t=M:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?n.nextTick(k,t):k(t))}function k(t){d("emit readable"),t.emit("readable"),O(t)}function A(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(B,t,e))}function B(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function x(t){d("readable nexttick read 0"),t.read(0)}function R(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),O(t),e.flowing&&!e.reading&&t.read(0)}function O(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function I(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var i;t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,i=1,n=r.data;t-=n.length;for(;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}(t,e):function(t,e){var r=u.allocUnsafe(t),i=e.head,n=1;i.data.copy(r),t-=i.data.length;for(;i=i.next;){var o=i.data,s=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,s),0===(t-=s)){s===o.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(s));break}++n}return e.length-=n,r}(t,e);return i}(t,e.buffer,e.decoder),r);var r}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,n.nextTick(j,e,t))}function j(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function C(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}v.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):S(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&T(this),null;var i,n=e.needReadable;return d("need readable",n),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",n=!0),e.ended||e.reading?d("reading or ended",n=!1):n&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(i=t>0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&T(this)),null!==i&&this.emit("data",i),i},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var h=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?f:v;function u(e,i){d("onunpipe"),e===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),t.removeListener("close",g),t.removeListener("finish",b),t.removeListener("drain",l),t.removeListener("error",m),t.removeListener("unpipe",u),r.removeListener("end",f),r.removeListener("end",v),r.removeListener("data",y),c=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function f(){d("onend"),t.end()}o.endEmitted?n.nextTick(h):r.once("end",h),t.on("unpipe",u);var l=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,O(t))}}(r);t.on("drain",l);var c=!1;var p=!1;function y(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==C(o.pipes,t))&&!c&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),r.pause())}function m(e){d("onerror",e),v(),t.removeListener("error",m),0===a(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",b),v()}function b(){d("onfinish"),t.removeListener("close",g),v()}function v(){d("unpipe"),r.unpipe(t)}return r.on("data",y),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",m),t.once("close",g),t.once("finish",b),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=C(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},v.prototype.on=function(t,e){var r=h.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&S(this):n.nextTick(x,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(R,t,e))}(this,t)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;for(var n in t.on("end",function(){if(d("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(n){(d("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&null==n)||(r.objectMode||n&&n.length)&&(e.push(n)||(i=!0,t.pause()))}),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(var o=0;o<g.length;o++)t.on(g[o],this.emit.bind(this,g[o]));return this._read=function(e){d("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=I},4610(t,e,r){"use strict";t.exports=s;var i=r(5382),n=Object.create(r(5622));function o(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function s(t){if(!(this instanceof s))return new s(t);i.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush(function(e,r){h(t,e,r)}):h(this,null,null)}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}n.inherits=r(6698),n.inherits(s,i),s.prototype.push=function(t,e){return this._transformState.needTransform=!1,i.prototype.push.call(this,t,e)},s.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},s.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},s.prototype._destroy=function(t,e){var r=this;i.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},6708(t,e,r){"use strict";var i=r(5606),n=r(3225);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var i=t.entry;t.entry=null;for(;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=g;var s,a=!i.browser&&["v0.10","v0.9."].indexOf(i.version.slice(0,5))>-1?setImmediate:n.nextTick;g.WritableState=m;var h=Object.create(r(5622));h.inherits=r(6698);var u={deprecate:r(4643)},f=r(345),l=r(4106).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d,p=r(5896);function y(){}function m(t,e){s=s||r(5382),t=t||{};var i=e instanceof s;this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var h=t.highWaterMark,u=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=h||0===h?h:i&&(u||0===u)?u:f,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 l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,i=r.sync,o=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),E(t,e))}(t,r,i,e,o);else{var s=_(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),i?a(v,t,r,s,o):v(t,r,s,o)}}(e,t)},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 o(this)}function g(t){if(s=s||r(5382),!(d.call(g,this)||this instanceof s))return new g(t);this._writableState=new m(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function b(t,e,r,i,n,o,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function v(t,e,r,i){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),E(t,e)}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var a=0,h=!0;r;)n[a]=r,r.isBuf||(h=!1),r=r.next,a+=1;n.allBuffers=h,b(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(b(t,e,!1,e.objectMode?1:u.length,u,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function _(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),E(t,e)})}function E(t,e){var r=_(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,n.nextTick(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}h.inherits(g,f),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===g&&(t&&t._writableState instanceof m)}})):d=function(t){return t instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(t,e,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=t,l.isBuffer(i)||i instanceof c);return a&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=y),o.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),n.nextTick(e,r)}(this,r):(a||function(t,e,r,i){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),n.nextTick(i,s),o=!1),o}(this,o,t,r))&&(o.pendingcb++,s=function(t,e,r,i,n,o){if(!r){var s=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,i,n);i!==s&&(r=!0,n="buffer",i=s)}var a=e.objectMode?1:i.length;e.length+=a;var h=e.length<e.highWaterMark;h||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,a,i,n,o);return h}(this,o,a,t,e,r)),s},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||w(this,t))},g.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(t,e,r){var i=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,E(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),g.prototype.destroy=p.destroy,g.prototype._undestroy=p.undestroy,g.prototype._destroy=function(t,e){this.end(),e(t)}},3222(t,e,r){"use strict";var i=r(4106).Buffer,n=r(5340);function o(t,e,r){t.copy(e,r)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);for(var e=i.allocUnsafe(t>>>0),r=this.head,n=0;r;)o(r.data,e,n),n+=r.data.length,r=r.next;return e},t}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},5896(t,e,r){"use strict";var i=r(3225);function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,t)):i.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,i.nextTick(n,r,t)):i.nextTick(n,r,t):e&&e(t)}),this)},undestroy: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)}}},345(t,e,r){t.exports=r(7007).EventEmitter},7225(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},4106(t,e,r){var i=r(8287),n=i.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=s),o(n,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},8399(t,e,r){(e=t.exports=r(5412)).Stream=e,e.Readable=e,e.Writable=r(6708),e.Duplex=r(5382),e.Transform=r(4610),e.PassThrough=r(3600)},6011(t,e,r){"use strict";var i=r(8287).Buffer,n=r(4744),o=r(1147),s=new Array(16),a=[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],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[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],l=[0,1518500249,1859775393,2400959708,2840853838],c=[1352829926,1548603684,1836072691,2053994217,0];function d(t,e){return t<<e|t>>>32-e}function p(t,e,r,i,n,o,s,a){return d(t+(e^r^i)+o+s|0,a)+n|0}function y(t,e,r,i,n,o,s,a){return d(t+(e&r|~e&i)+o+s|0,a)+n|0}function m(t,e,r,i,n,o,s,a){return d(t+((e|~r)^i)+o+s|0,a)+n|0}function g(t,e,r,i,n,o,s,a){return d(t+(e&i|r&~i)+o+s|0,a)+n|0}function b(t,e,r,i,n,o,s,a){return d(t+(e^(r|~i))+o+s|0,a)+n|0}function v(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}n(v,o),v.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,v=0|this._e,w=0|this._a,_=0|this._b,M=0|this._c,E=0|this._d,S=0|this._e,k=0;k<80;k+=1){var A,B;k<16?(A=p(r,i,n,o,v,t[a[k]],l[0],u[k]),B=b(w,_,M,E,S,t[h[k]],c[0],f[k])):k<32?(A=y(r,i,n,o,v,t[a[k]],l[1],u[k]),B=g(w,_,M,E,S,t[h[k]],c[1],f[k])):k<48?(A=m(r,i,n,o,v,t[a[k]],l[2],u[k]),B=m(w,_,M,E,S,t[h[k]],c[2],f[k])):k<64?(A=g(r,i,n,o,v,t[a[k]],l[3],u[k]),B=y(w,_,M,E,S,t[h[k]],c[3],f[k])):(A=b(r,i,n,o,v,t[a[k]],l[4],u[k]),B=p(w,_,M,E,S,t[h[k]],c[4],f[k])),r=v,v=o,o=d(n,10),n=i,i=A,w=S,S=E,E=d(M,10),M=_,_=B}var x=this._b+n+E|0;this._b=this._c+o+S|0,this._c=this._d+v+w|0,this._d=this._e+r+_|0,this._e=this._a+i+M|0,this._a=x},v.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.alloc?i.alloc(20):new i(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=v},1147(t,e,r){"use strict";var i=r(2861).Buffer,n=r(8537),o=r(8399).Transform;function s(t){o.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(4744)(s,o),s.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(t){i=t}r(i)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},s.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=n(t,e),i=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)i[s]=r[o],s+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)i[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var a=0,h=8*r.length;h>0;++a)this._length[a]+=h,(h=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*h);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},8537(t,e,r){"use strict";var i=r(2861).Buffer,n=r(5377),o="undefined"!=typeof Uint8Array,s=o&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e){if("string"==typeof t||i.isBuffer(t)||o&&t instanceof Uint8Array||s&&s(t))return n(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},4744(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2861(t,e,r){
|
|
10
|
-
|
|
11
|
-
var i=r(8287),n=i.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},6897(t,e,r){"use strict";var i=r(453),n=r(41),o=r(592)(),s=r(5795),a=r(9675),h=i("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||h(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,u=!0;if("length"in t&&s){var f=s(t,"length");f&&!f.configurable&&(i=!1),f&&!f.writable&&(u=!1)}return(i||u||!r)&&(o?n(t,"length",e,!0,!0):n(t,"length",e)),t}},392(t,e,r){"use strict";var i=r(2861).Buffer,n=r(5377);function o(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=n(t,e||"utf8");for(var r=this._block,i=this._blockSize,o=t.length,s=this._len,a=0;a<o;){for(var h=s%i,u=Math.min(o-a,i-h),f=0;f<u;f++)r[h+f]=t[a+f];a+=u,(s+=u)%i===0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},2802(t,e,r){"use strict";t.exports=function(e){var r=e.toLowerCase(),i=t.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i},t.exports.sha=r(7816),t.exports.sha1=r(3737),t.exports.sha224=r(6710),t.exports.sha256=r(4107),t.exports.sha384=r(2827),t.exports.sha512=r(2890)},231(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},7816(t,e,r){"use strict";var i=r(231),n=r(392),o=r(2861).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function h(){this.init(),this._w=a,n.call(this,64,56)}function u(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function l(t,e,r,i){return 0===t?e&r|~e&i:2===t?e&r|e&i|r&i:e^r^i}i(h,n),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(t){for(var e=this._w,r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,a=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=e[h-3]^e[h-8]^e[h-14]^e[h-16];for(var c=0;c<80;++c){var d=~~(c/20),p=u(r)+l(d,i,n,o)+a+e[c]+s[d]|0;a=o,o=n,n=f(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},h.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=h},3737(t,e,r){"use strict";var i=r(231),n=r(392),o=r(2861).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function h(){this.init(),this._w=a,n.call(this,64,56)}function u(t){return t<<1|t>>>31}function f(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function c(t,e,r,i){return 0===t?e&r|~e&i:2===t?e&r|e&i|r&i:e^r^i}i(h,n),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(t){for(var e=this._w,r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,a=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=u(e[h-3]^e[h-8]^e[h-14]^e[h-16]);for(var d=0;d<80;++d){var p=~~(d/20),y=f(r)+c(p,i,n,o)+a+e[d]+s[p]|0;a=o,o=n,n=l(i),i=r,r=y}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},h.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=h},6710(t,e,r){"use strict";var i=r(231),n=r(4107),o=r(392),s=r(2861).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}i(h,n),h.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},h.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=h},4107(t,e,r){"use strict";var i=r(231),n=r(392),o=r(2861).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function h(){this.init(),this._w=a,n.call(this,64,56)}function u(t,e,r){return r^t&(e^r)}function f(t,e,r){return t&e|r&(t|e)}function l(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function c(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}i(h,n),h.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},h.prototype._update=function(t){for(var e=this._w,r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,a=0|this._e,h=0|this._f,y=0|this._g,m=0|this._h,g=0;g<16;++g)e[g]=t.readInt32BE(4*g);for(;g<64;++g)e[g]=p(e[g-2])+e[g-7]+d(e[g-15])+e[g-16]|0;for(var b=0;b<64;++b){var v=m+c(a)+u(a,h,y)+s[b]+e[b]|0,w=l(r)+f(r,i,n)|0;m=y,y=h,h=a,a=o+v|0,o=n,n=i,i=r,r=v+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=h+this._f|0,this._g=y+this._g|0,this._h=m+this._h|0},h.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=h},2827(t,e,r){"use strict";var i=r(231),n=r(2890),o=r(392),s=r(2861).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}i(h,n),h.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},h.prototype._hash=function(){var t=s.allocUnsafe(48);function e(e,r,i){t.writeInt32BE(e,i),t.writeInt32BE(r,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=h},2890(t,e,r){"use strict";var i=r(231),n=r(392),o=r(2861).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function h(){this.init(),this._w=a,n.call(this,128,112)}function u(t,e,r){return r^t&(e^r)}function f(t,e,r){return t&e|r&(t|e)}function l(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function c(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function y(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0<e>>>0?1:0}i(h,n),h.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},h.prototype._update=function(t){for(var e=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,a=0|this._eh,h=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,M=0|this._cl,E=0|this._dl,S=0|this._el,k=0|this._fl,A=0|this._gl,B=0|this._hl,x=0;x<32;x+=2)e[x]=t.readInt32BE(4*x),e[x+1]=t.readInt32BE(4*x+4);for(;x<160;x+=2){var R=e[x-30],O=e[x-30+1],I=d(R,O),T=p(O,R),j=y(R=e[x-4],O=e[x-4+1]),C=m(O,R),U=e[x-14],P=e[x-14+1],L=e[x-32],D=e[x-32+1],N=T+P|0,q=I+U+g(N,T)|0;q=(q=q+j+g(N=N+C|0,C)|0)+L+g(N=N+D|0,D)|0,e[x]=q,e[x+1]=N}for(var F=0;F<160;F+=2){q=e[F],N=e[F+1];var K=f(r,i,n),W=f(w,_,M),z=l(r,w),H=l(w,r),V=c(a,S),G=c(S,a),Z=s[F],$=s[F+1],J=u(a,h,b),Y=u(S,k,A),X=B+G|0,Q=v+V+g(X,B)|0;Q=(Q=(Q=Q+J+g(X=X+Y|0,Y)|0)+Z+g(X=X+$|0,$)|0)+q+g(X=X+N|0,N)|0;var tt=H+W|0,et=z+K+g(tt,H)|0;v=b,B=A,b=h,A=k,h=a,k=S,a=o+Q+g(S=E+X|0,E)|0,o=n,E=M,n=i,M=_,i=r,_=w,r=Q+et+g(w=X+tt|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+M|0,this._dl=this._dl+E|0,this._el=this._el+S|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+B|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+i+g(this._bl,_)|0,this._ch=this._ch+n+g(this._cl,M)|0,this._dh=this._dh+o+g(this._dl,E)|0,this._eh=this._eh+a+g(this._el,S)|0,this._fh=this._fh+h+g(this._fl,k)|0,this._gh=this._gh+b+g(this._gl,A)|0,this._hh=this._hh+v+g(this._hl,B)|0},h.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,r,i){t.writeInt32BE(e,i),t.writeInt32BE(r,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=h},8310(t,e,r){t.exports=n;var i=r(7007).EventEmitter;function n(){i.call(this)}r(1939)(n,i),n.Readable=r(6891),n.Writable=r(1999),n.Duplex=r(8101),n.Transform=r(9083),n.PassThrough=r(3681),n.finished=r(4257),n.pipeline=r(5267),n.Stream=n,n.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",h));var s=!1;function a(){s||(s=!0,t.end())}function h(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(f(),0===i.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",n),t.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",h),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",u),t.on("error",u),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},1939(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2463(t){"use strict";var e={};function r(t,r,i){i||(i=Error);var n=function(t){var e,i;function n(e,i,n){return t.call(this,function(t,e,i){return"string"==typeof r?r:r(t,e,i)}(e,i,n))||this}return i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n}(i);n.prototype.name=i.name,n.prototype.code=t,e[t]=n}function i(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,r){var n,o,s,a;if("string"==typeof e&&(o="not ",e.substr(!s||s<0?0:+s,o.length)===o)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))a="The ".concat(t," ").concat(n," ").concat(i(e,"type"));else{var h=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(h," ").concat(n," ").concat(i(e,"type"))}return a+=". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},8101(t,e,r){"use strict";var i=r(5606),n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var o=r(6891),s=r(1999);r(1939)(f,o);for(var a=n(s.prototype),h=0;h<a.length;h++){var u=a[h];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(t){if(!(this instanceof f))return new f(t);o.call(this,t),s.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||i.nextTick(c,this)}function c(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},3681(t,e,r){"use strict";t.exports=n;var i=r(9083);function n(t){if(!(this instanceof n))return new n(t);i.call(this,t)}r(1939)(n,i),n.prototype._transform=function(t,e,r){r(null,t)}},6891(t,e,r){"use strict";var i,n=r(5606);t.exports=k,k.ReadableState=S;r(7007).EventEmitter;var o=function(t,e){return t.listeners(e).length},s=r(1396),a=r(8287).Buffer,h=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,f=r(7199);u=f&&f.debuglog?f.debuglog("stream"):function(){};var l,c,d,p=r(1766),y=r(4347),m=r(6644).getHighWaterMark,g=r(2463).F,b=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1939)(k,s);var M=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(t,e,n){i=i||r(8101),t=t||{},"boolean"!=typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",n),this.buffer=new p,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=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(3141).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function k(t){if(i=i||r(8101),!(this instanceof k))return new k(t);var e=this instanceof i;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function A(t,e,r,i,n){u("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(u("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}(t,s);else if(n||(o=function(t,e){var r;i=e,a.isBuffer(i)||i instanceof h||"string"==typeof e||void 0===e||t.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],e));var i;return r}(s,e)),o)M(t,o);else if(s.objectMode||e&&e.length>0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),i)s.endEmitted?M(t,new _):B(t,s,e,!0);else if(s.ended)M(t,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?B(t,s,e,!1):T(t,s)):B(t,s,e,!1)}else i||(s.reading=!1,T(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function B(t,e,r,i){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&O(t)),T(t,e)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),k.prototype.destroy=y.destroy,k.prototype._undestroy=y.undestroy,k.prototype._destroy=function(t,e){e(t)},k.prototype.push=function(t,e){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=a.from(t,e),e=""),r=!0),A(this,t,e,!1,r)},k.prototype.unshift=function(t){return A(this,t,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){l||(l=r(3141).I);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,n="";null!==i;)n+=e.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var x=1073741824;function R(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;u("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(u("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(I,t))}function I(t){var e=t._readableState;u("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L(t)}function T(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(u("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function C(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function U(t){u("readable nexttick read 0"),t.read(0)}function P(t,e){u("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L(t),e.flowing&&!e.reading&&t.read(0)}function L(t){var e=t._readableState;for(u("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;u("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(q,e,t))}function q(t,e){if(u("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function F(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}k.prototype.read=function(t){u("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return u("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):O(this),null;if(0===(t=R(t,e))&&e.ended)return 0===e.length&&N(this),null;var i,n=e.needReadable;return u("need readable",n),(0===e.length||e.length-t<e.highWaterMark)&&u("length less than watermark",n=!0),e.ended||e.reading?u("reading or ended",n=!1):n&&(u("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=R(r,e))),null===(i=t>0?D(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==i&&this.emit("data",i),i},k.prototype._read=function(t){M(this,new w("_read()"))},k.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?h:m;function a(e,n){u("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,u("cleanup"),t.removeListener("close",p),t.removeListener("finish",y),t.removeListener("drain",f),t.removeListener("error",d),t.removeListener("unpipe",a),r.removeListener("end",h),r.removeListener("end",m),r.removeListener("data",c),l=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function h(){u("onend"),t.end()}i.endEmitted?n.nextTick(s):r.once("end",s),t.on("unpipe",a);var f=function(t){return function(){var e=t._readableState;u("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,L(t))}}(r);t.on("drain",f);var l=!1;function c(e){u("ondata");var n=t.write(e);u("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==F(i.pipes,t))&&!l&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(e){u("onerror",e),m(),t.removeListener("error",d),0===o(t,"error")&&M(t,e)}function p(){t.removeListener("finish",y),m()}function y(){u("onfinish"),t.removeListener("close",p),m()}function m(){u("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",y),t.emit("pipe",r),i.flowing||(u("pipe resume"),r.resume()),t},k.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=F(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},k.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?O(this):i.reading||n.nextTick(U,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(C,this),r},k.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(C,this),e},k.prototype.resume=function(){var t=this._readableState;return t.flowing||(u("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(P,t,e))}(this,t)),t.paused=!1,this},k.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;for(var n in t.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(n){(u("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&null==n)||(r.objectMode||n&&n.length)&&(e.push(n)||(i=!0,t.pause()))}),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(var o=0;o<E.length;o++)t.on(E[o],this.emit.bind(this,E[o]));return this._read=function(e){u("wrapped _read",e),i&&(i=!1,t.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===c&&(c=r(5034)),c(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),k._fromList=D,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(t,e){return void 0===d&&(d=r(968)),d(k,t,e)})},9083(t,e,r){"use strict";t.exports=f;var i=r(2463).F,n=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,h=r(8101);function u(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);h.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",l)}function l(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?c(this,null,null):this._flush(function(e,r){c(t,e,r)})}function c(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r(1939)(f,h),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,h.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new n("_transform()"))},f.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},f.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},f.prototype._destroy=function(t,e){h.prototype._destroy.call(this,t,function(t){e(t)})}},1999(t,e,r){"use strict";var i,n=r(5606);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var i=t.entry;t.entry=null;for(;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=k,k.WritableState=S;var s={deprecate:r(4643)},a=r(1396),h=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,l=r(4347),c=r(6644).getHighWaterMark,d=r(2463).F,p=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,M=l.errorOrDestroy;function E(){}function S(t,e,s){i=i||r(8101),t=t||{},"boolean"!=typeof s&&(s=e instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=c(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,i,o){--e.pendingcb,r?(n.nextTick(o,i),n.nextTick(I,t,e),t._writableState.errorEmitted=!0,M(t,i)):(o(i),t._writableState.errorEmitted=!0,M(t,i),I(t,e))}(t,r,i,e,o);else{var s=R(r)||t.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||x(t,r),i?n.nextTick(B,t,r,s,o):B(t,r,s,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(t){var e=this instanceof(i=i||r(8101));if(!e&&!f.call(k,this))return new k(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function A(t,e,r,i,n,o,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):r?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function B(t,e,r,i){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),I(t,e)}function x(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var a=0,h=!0;r;)n[a]=r,r.isBuf||(h=!1),r=r.next,a+=1;n.allBuffers=h,A(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(A(t,e,!1,e.objectMode?1:u.length,u,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function R(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final(function(r){e.pendingcb--,r&&M(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)})}function I(t,e){var r=R(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(O,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}r(1939)(k,a),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===k&&(t&&t._writableState instanceof S)}})):f=function(t){return t instanceof this},k.prototype.pipe=function(){M(this,new g)},k.prototype.write=function(t,e,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=t,h.isBuffer(i)||i instanceof u);return a&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=E),o.ending?function(t,e){var r=new w;M(t,r),n.nextTick(e,r)}(this,r):(a||function(t,e,r,i){var o;return null===r?o=new v:"string"==typeof r||e.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(M(t,o),n.nextTick(i,o),!1)}(this,o,t,r))&&(o.pendingcb++,s=function(t,e,r,i,n,o){if(!r){var s=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,r));return e}(e,i,n);i!==s&&(r=!0,n="buffer",i=s)}var a=e.objectMode?1:i.length;e.length+=a;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else A(t,e,!1,a,i,n,o);return u}(this,o,a,t,e,r)),s},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||x(this,t))},k.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(t,e,r){r(new y("_write()"))},k.prototype._writev=null,k.prototype.end=function(t,e,r){var i=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),k.prototype.destroy=l.destroy,k.prototype._undestroy=l.undestroy,k.prototype._destroy=function(t,e){e(t)}},5034(t,e,r){"use strict";var i,n=r(5606);function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(4257),a=Symbol("lastResolve"),h=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function y(t){var e=t[a];if(null!==e){var r=t[d].read();null!==r&&(t[l]=null,t[a]=null,t[h]=null,e(p(r,!1)))}}function m(t){n.nextTick(y,t)}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(i={get stream(){return this[d]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(e,r){n.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var r,i=this[l];if(i)r=new Promise(function(t,e){return function(r,i){t.then(function(){e[f]?r(p(void 0,!0)):e[c](r,i)},i)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[c])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var t=this;return new Promise(function(e,r){t[d].destroy(null,function(t){t?r(t):e(p(void 0,!0))})})}),i),g);t.exports=function(t){var e,r=Object.create(b,(o(e={},d,{value:t,writable:!0}),o(e,a,{value:null,writable:!0}),o(e,h,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,f,{value:t._readableState.endEmitted,writable:!0}),o(e,c,{value:function(t,e){var i=r[d].read();i?(r[l]=null,r[a]=null,r[h]=null,t(p(i,!1))):(r[a]=t,r[h]=e)},writable:!0}),e));return r[l]=null,s(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[h];return null!==e&&(r[l]=null,r[a]=null,r[h]=null,e(t)),void(r[u]=t)}var i=r[a];null!==i&&(r[l]=null,r[a]=null,r[h]=null,i(p(void 0,!0))),r[f]=!0}),t.on("readable",m.bind(null,r)),r}},1766(t,e,r){"use strict";function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function o(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var h=r(8287).Buffer,u=r(3779).inspect,f=u&&u.custom||"inspect";function l(t,e,r){h.prototype.copy.call(t,e,r)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,i;return e=t,(r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return h.alloc(0);for(var e=h.allocUnsafe(t>>>0),r=this.head,i=0;r;)l(r.data,e,i),i+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,i=e.data;for(t-=i.length;e=e.next;){var n=e.data,o=t>n.length?n.length:t;if(o===n.length?i+=n:i+=n.slice(0,t),0===(t-=o)){o===n.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=n.slice(o));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(t){var e=h.allocUnsafe(t),r=this.head,i=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var n=r.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0===(t-=o)){o===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(o));break}++i}return this.length-=i,e}},{key:f,value:function(t,e){return u(this,n(n({},e),{},{depth:0,customInspect:!1}))}}])&&s(e.prototype,r),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4347(t,e,r){"use strict";var i=r(5606);function n(t,e){s(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function s(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return a||h?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(s,this,t)):i.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?r._writableState?r._writableState.errorEmitted?i.nextTick(o,r):(r._writableState.errorEmitted=!0,i.nextTick(n,r,t)):i.nextTick(n,r,t):e?(i.nextTick(o,r),e(t)):i.nextTick(o,r)}),this)},undestroy: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)},errorOrDestroy:function(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}}},4257(t,e,r){"use strict";var i=r(2463).F.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}(o||n);var s=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,h=function(){e.writable||f()},u=e._writableState&&e._writableState.finished,f=function(){a=!1,u=!0,s||o.call(e)},l=e._readableState&&e._readableState.endEmitted,c=function(){s=!1,l=!0,a||o.call(e)},d=function(t){o.call(e,t)},p=function(){var t;return s&&!l?(e._readableState&&e._readableState.ended||(t=new i),o.call(e,t)):a&&!u?(e._writableState&&e._writableState.ended||(t=new i),o.call(e,t)):void 0},y=function(){e.req.on("finish",f)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?a&&!e._writableState&&(e.on("end",h),e.on("close",h)):(e.on("complete",f),e.on("abort",p),e.req?y():e.on("request",y)),e.on("end",c),e.on("finish",f),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",y),e.req&&e.req.removeListener("finish",f),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("end",c),e.removeListener("error",d),e.removeListener("close",p)}}},968(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},5267(t,e,r){"use strict";var i;var n=r(2463).F,o=n.ERR_MISSING_ARGS,s=n.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function h(t){t()}function u(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var f,l=function(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var c=e.map(function(t,n){var o=n<e.length-1;return function(t,e,n,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),void 0===i&&(i=r(4257)),i(t,{readable:e,writable:n},function(t){if(t)return o(t);a=!0,o()});var h=!1;return function(e){if(!a&&!h)return h=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,n>0,function(t){f||(f=t),t&&c.forEach(h),o||(c.forEach(h),l(f))})});return e.reduce(u)}},6644(t,e,r){"use strict";var i=r(2463).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,n){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,n,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new i(n?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},1396(t,e,r){t.exports=r(7007).EventEmitter},3141(t,e,r){"use strict";var i=r(5003).Buffer,n=i.isEncoding||function(t){switch((t=""+t)&&t.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 o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(i.isEncoding===n||!n(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=h,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=c,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function h(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var i=e.length-1;if(i<r)return 0;var n=s(e[i]);if(n>=0)return n>0&&(t.lastNeed=n-1),n;if(--i<r||-2===n)return 0;if(n=s(e[i]),n>=0)return n>0&&(t.lastNeed=n-2),n;if(--i<r||-2===n)return 0;if(n=s(e[i]),n>=0)return n>0&&(2===n?n=0:t.lastNeed=n-3),n;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},5003(t,e,r){var i=r(8287),n=i.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(o(i,e),e.Buffer=s),o(n,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},5377(t,e,r){"use strict";var i=r(2861).Buffer,n=r(2006),o=r(4372),s=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},a="undefined"!=typeof Uint8Array,h="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,u=h&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(i.isBuffer(t))return t.constructor&&!("isBuffer"in t)?i.from(t):t;if("string"==typeof t)return i.from(t,e);if(h&&s(t)){if(0===t.byteLength)return i.alloc(0);if(u){var r=i.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),f=i.from(o);if(f.length===t.byteLength)return f}if(a&&t instanceof Uint8Array)return i.from(t);var l=n(t);if(l)for(var c=0;c<t.length;c+=1){var d=t[c];if("number"!=typeof d||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||i.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return i.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},2006(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},4372(t,e,r){"use strict";var i=r(9675),n=r(6556)("TypedArray.prototype.buffer",!0),o=r(5680);t.exports=n||function(t){if(!o(t))throw new i("Not a Typed Array");return t.buffer}},4643(t,e,r){function i(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},8961(__unused_webpack_module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),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(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(t),function(e){r[e]=t[e]}),forEach(globals,function(e){t[e]&&(r[e]=t[e])});var o=Object_keys(r),s=i.call(r,this.code);return forEach(Object_keys(r),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])}),forEach(globals,function(e){e in t||defineProp(t,e,r[e])}),document.body.removeChild(e),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(r){t[r]=e[r]}),r},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}},5767(t,e,r){"use strict";var i=r(2682),n=r(9209),o=r(487),s=r(6556),a=r(5795),h=r(3628),u=s("Object.prototype.toString"),f=r(9092)(),l="undefined"==typeof globalThis?r.g:globalThis,c=n(),d=s("String.prototype.slice"),p=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};i(c,f&&a&&h?function(t){var e=new l[t];if(Symbol.toStringTag in e&&h){var r=h(e),i=a(r,Symbol.toStringTag);if(!i&&r){var n=h(r);i=a(n,Symbol.toStringTag)}if(i&&i.get){var s=o(i.get);y["$"+t]=s}}}:function(t){var e=new l[t],r=e.slice||e.set;if(r){var i=o(r);y["$"+t]=i}});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!f){var e=d(u(t),8,-1);return p(c,e)>-1?e:"Object"===e&&function(t){var e=!1;return i(y,function(r,i){if(!e)try{r(t),e=d(i,1)}catch(t){}}),e}(t)}return a?function(t){var e=!1;return i(y,function(r,i){if(!e)try{"$"+r(t)===i&&(e=d(i,1))}catch(t){}}),e}(t):null}},6160(t,e,r){t.exports=r(6470)},7790(){},3776(){},8285(){},4581(){},8216(){},9004(){},5340(){},9838(){},3779(){},7199(){},9209(t,e,r){"use strict";var i=r(6578),n="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<i.length;e++)"function"==typeof n[i[e]]&&(t[t.length]=i[e]);return t}},3219(t){"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},3241(t){"use strict";t.exports=JSON.parse('{"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"}}')},5579(t){"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__=__webpack_require__(6160);return __webpack_exports__})());
|
|
1
|
+
var bsvVcJwt=(()=>{var Hg=Object.create;var Mh=Object.defineProperty;var Wg=Object.getOwnPropertyDescriptor;var Kg=Object.getOwnPropertyNames;var Gg=Object.getPrototypeOf,Vg=Object.prototype.hasOwnProperty;var $g=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var B=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var zg=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Kg(e))!Vg.call(t,n)&&n!==r&&Mh(t,n,{get:()=>e[n],enumerable:!(i=Wg(e,n))||i.enumerable});return t};var Eh=(t,e,r)=>(r=t!=null?Hg(Gg(t)):{},zg(e||!t||!t.__esModule?Mh(r,"default",{value:t,enumerable:!0}):r,t));var qh=B((pE,Rh)=>{b();var He=Rh.exports={},kt,It;function df(){throw new Error("setTimeout has not been defined")}function pf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?kt=setTimeout:kt=df}catch{kt=df}try{typeof clearTimeout=="function"?It=clearTimeout:It=pf}catch{It=pf}})();function Sh(t){if(kt===setTimeout)return setTimeout(t,0);if((kt===df||!kt)&&setTimeout)return kt=setTimeout,setTimeout(t,0);try{return kt(t,0)}catch{try{return kt.call(null,t,0)}catch{return kt.call(this,t,0)}}}function Zg(t){if(It===clearTimeout)return clearTimeout(t);if((It===pf||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(t);try{return It(t)}catch{try{return It.call(null,t)}catch{return It.call(this,t)}}}var Ht=[],di=!1,Or,yo=-1;function Jg(){!di||!Or||(di=!1,Or.length?Ht=Or.concat(Ht):yo=-1,Ht.length&&Bh())}function Bh(){if(!di){var t=Sh(Jg);di=!0;for(var e=Ht.length;e;){for(Or=Ht,Ht=[];++yo<e;)Or&&Or[yo].run();yo=-1,e=Ht.length}Or=null,di=!1,Zg(t)}}He.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Ht.push(new Ah(t,e)),Ht.length===1&&!di&&Sh(Bh)};function Ah(t,e){this.fun=t,this.array=e}Ah.prototype.run=function(){this.fun.apply(null,this.array)};He.title="browser";He.browser=!0;He.env={};He.argv=[];He.version="";He.versions={};function Wt(){}He.on=Wt;He.addListener=Wt;He.once=Wt;He.off=Wt;He.removeListener=Wt;He.removeAllListeners=Wt;He.emit=Wt;He.prependListener=Wt;He.prependOnceListener=Wt;He.listeners=function(t){return[]};He.binding=function(t){throw new Error("process.binding is not supported")};He.cwd=function(){return"/"};He.chdir=function(t){throw new Error("process.chdir is not supported")};He.umask=function(){return 0}});var Ih=B(go=>{"use strict";b();go.byteLength=Xg;go.toByteArray=em;go.fromByteArray=im;var Ot=[],ut=[],Yg=typeof Uint8Array<"u"?Uint8Array:Array,vf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Cr=0,Th=vf.length;Cr<Th;++Cr)Ot[Cr]=vf[Cr],ut[vf.charCodeAt(Cr)]=Cr;var Cr,Th;ut[45]=62;ut[95]=63;function kh(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var i=r===e?0:4-r%4;return[r,i]}function Xg(t){var e=kh(t),r=e[0],i=e[1];return(r+i)*3/4-i}function Qg(t,e,r){return(e+r)*3/4-r}function em(t){var e,r=kh(t),i=r[0],n=r[1],a=new Yg(Qg(t,i,n)),f=0,v=n>0?i-4:i,w;for(w=0;w<v;w+=4)e=ut[t.charCodeAt(w)]<<18|ut[t.charCodeAt(w+1)]<<12|ut[t.charCodeAt(w+2)]<<6|ut[t.charCodeAt(w+3)],a[f++]=e>>16&255,a[f++]=e>>8&255,a[f++]=e&255;return n===2&&(e=ut[t.charCodeAt(w)]<<2|ut[t.charCodeAt(w+1)]>>4,a[f++]=e&255),n===1&&(e=ut[t.charCodeAt(w)]<<10|ut[t.charCodeAt(w+1)]<<4|ut[t.charCodeAt(w+2)]>>2,a[f++]=e>>8&255,a[f++]=e&255),a}function tm(t){return Ot[t>>18&63]+Ot[t>>12&63]+Ot[t>>6&63]+Ot[t&63]}function rm(t,e,r){for(var i,n=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),n.push(tm(i));return n.join("")}function im(t){for(var e,r=t.length,i=r%3,n=[],a=16383,f=0,v=r-i;f<v;f+=a)n.push(rm(t,f,f+a>v?v:f+a));return i===1?(e=t[r-1],n.push(Ot[e>>2]+Ot[e<<4&63]+"==")):i===2&&(e=(t[r-2]<<8)+t[r-1],n.push(Ot[e>>10]+Ot[e>>4&63]+Ot[e<<2&63]+"=")),n.join("")}});var Oh=B(yf=>{b();yf.read=function(t,e,r,i,n){var a,f,v=n*8-i-1,w=(1<<v)-1,S=w>>1,A=-7,q=r?n-1:0,T=r?-1:1,O=t[e+q];for(q+=T,a=O&(1<<-A)-1,O>>=-A,A+=v;A>0;a=a*256+t[e+q],q+=T,A-=8);for(f=a&(1<<-A)-1,a>>=-A,A+=i;A>0;f=f*256+t[e+q],q+=T,A-=8);if(a===0)a=1-S;else{if(a===w)return f?NaN:(O?-1:1)*(1/0);f=f+Math.pow(2,i),a=a-S}return(O?-1:1)*f*Math.pow(2,a-i)};yf.write=function(t,e,r,i,n,a){var f,v,w,S=a*8-n-1,A=(1<<S)-1,q=A>>1,T=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=i?0:a-1,P=i?1:-1,H=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(v=isNaN(e)?1:0,f=A):(f=Math.floor(Math.log(e)/Math.LN2),e*(w=Math.pow(2,-f))<1&&(f--,w*=2),f+q>=1?e+=T/w:e+=T*Math.pow(2,1-q),e*w>=2&&(f++,w/=2),f+q>=A?(v=0,f=A):f+q>=1?(v=(e*w-1)*Math.pow(2,n),f=f+q):(v=e*Math.pow(2,q-1)*Math.pow(2,n),f=0));n>=8;t[r+O]=v&255,O+=P,v/=256,n-=8);for(f=f<<n|v,S+=n;S>0;t[r+O]=f&255,O+=P,f/=256,S-=8);t[r+O-P]|=H*128}});var rt=B(gi=>{"use strict";b();var gf=Ih(),vi=Oh(),Ch=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;gi.Buffer=k;gi.SlowBuffer=um;gi.INSPECT_MAX_BYTES=50;var mo=2147483647;gi.kMaxLength=mo;k.TYPED_ARRAY_SUPPORT=nm();!k.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function nm(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(k.prototype,"parent",{enumerable:!0,get:function(){if(k.isBuffer(this))return this.buffer}});Object.defineProperty(k.prototype,"offset",{enumerable:!0,get:function(){if(k.isBuffer(this))return this.byteOffset}});function Kt(t){if(t>mo)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,k.prototype),e}function k(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _f(t)}return Lh(t,e,r)}k.poolSize=8192;function Lh(t,e,r){if(typeof t=="string")return am(t,e);if(ArrayBuffer.isView(t))return fm(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ct(t,ArrayBuffer)||t&&Ct(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ct(t,SharedArrayBuffer)||t&&Ct(t.buffer,SharedArrayBuffer)))return bf(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return k.from(i,e,r);let n=sm(t);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return k.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}k.from=function(t,e,r){return Lh(t,e,r)};Object.setPrototypeOf(k.prototype,Uint8Array.prototype);Object.setPrototypeOf(k,Uint8Array);function Nh(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function om(t,e,r){return Nh(t),t<=0?Kt(t):e!==void 0?typeof r=="string"?Kt(t).fill(e,r):Kt(t).fill(e):Kt(t)}k.alloc=function(t,e,r){return om(t,e,r)};function _f(t){return Nh(t),Kt(t<0?0:xf(t)|0)}k.allocUnsafe=function(t){return _f(t)};k.allocUnsafeSlow=function(t){return _f(t)};function am(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!k.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Fh(t,e)|0,i=Kt(r),n=i.write(t,e);return n!==r&&(i=i.slice(0,n)),i}function mf(t){let e=t.length<0?0:xf(t.length)|0,r=Kt(e);for(let i=0;i<e;i+=1)r[i]=t[i]&255;return r}function fm(t){if(Ct(t,Uint8Array)){let e=new Uint8Array(t);return bf(e.buffer,e.byteOffset,e.byteLength)}return mf(t)}function bf(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,e):i=new Uint8Array(t,e,r),Object.setPrototypeOf(i,k.prototype),i}function sm(t){if(k.isBuffer(t)){let e=xf(t.length)|0,r=Kt(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Ef(t.length)?Kt(0):mf(t);if(t.type==="Buffer"&&Array.isArray(t.data))return mf(t.data)}function xf(t){if(t>=mo)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+mo.toString(16)+" bytes");return t|0}function um(t){return+t!=t&&(t=0),k.alloc(+t)}k.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==k.prototype};k.compare=function(e,r){if(Ct(e,Uint8Array)&&(e=k.from(e,e.offset,e.byteLength)),Ct(r,Uint8Array)&&(r=k.from(r,r.offset,r.byteLength)),!k.isBuffer(e)||!k.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,n=r.length;for(let a=0,f=Math.min(i,n);a<f;++a)if(e[a]!==r[a]){i=e[a],n=r[a];break}return i<n?-1:n<i?1:0};k.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};k.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return k.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let n=k.allocUnsafe(r),a=0;for(i=0;i<e.length;++i){let f=e[i];if(Ct(f,Uint8Array))a+f.length>n.length?(k.isBuffer(f)||(f=k.from(f)),f.copy(n,a)):Uint8Array.prototype.set.call(n,f,a);else if(k.isBuffer(f))f.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=f.length}return n};function Fh(t,e){if(k.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ct(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return wf(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Zh(t).length;default:if(n)return i?-1:wf(t).length;e=(""+e).toLowerCase(),n=!0}}k.byteLength=Fh;function hm(t,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return wm(this,e,r);case"utf8":case"utf-8":return Hh(this,e,r);case"ascii":return mm(this,e,r);case"latin1":case"binary":return bm(this,e,r);case"base64":return ym(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _m(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}k.prototype._isBuffer=!0;function Dr(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}k.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)Dr(this,r,r+1);return this};k.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)Dr(this,r,r+3),Dr(this,r+1,r+2);return this};k.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)Dr(this,r,r+7),Dr(this,r+1,r+6),Dr(this,r+2,r+5),Dr(this,r+3,r+4);return this};k.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Hh(this,0,e):hm.apply(this,arguments)};k.prototype.toLocaleString=k.prototype.toString;k.prototype.equals=function(e){if(!k.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:k.compare(this,e)===0};k.prototype.inspect=function(){let e="",r=gi.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ch&&(k.prototype[Ch]=k.prototype.inspect);k.prototype.compare=function(e,r,i,n,a){if(Ct(e,Uint8Array)&&(e=k.from(e,e.offset,e.byteLength)),!k.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===e)return 0;let f=a-n,v=i-r,w=Math.min(f,v),S=this.slice(n,a),A=e.slice(r,i);for(let q=0;q<w;++q)if(S[q]!==A[q]){f=S[q],v=A[q];break}return f<v?-1:v<f?1:0};function jh(t,e,r,i,n){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ef(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof e=="string"&&(e=k.from(e,i)),k.isBuffer(e))return e.length===0?-1:Dh(t,e,r,i,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Dh(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function Dh(t,e,r,i,n){let a=1,f=t.length,v=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,f/=2,v/=2,r/=2}function w(A,q){return a===1?A[q]:A.readUInt16BE(q*a)}let S;if(n){let A=-1;for(S=r;S<f;S++)if(w(t,S)===w(e,A===-1?0:S-A)){if(A===-1&&(A=S),S-A+1===v)return A*a}else A!==-1&&(S-=S-A),A=-1}else for(r+v>f&&(r=f-v),S=r;S>=0;S--){let A=!0;for(let q=0;q<v;q++)if(w(t,S+q)!==w(e,q)){A=!1;break}if(A)return S}return-1}k.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1};k.prototype.indexOf=function(e,r,i){return jh(this,e,r,i,!0)};k.prototype.lastIndexOf=function(e,r,i){return jh(this,e,r,i,!1)};function lm(t,e,r,i){r=Number(r)||0;let n=t.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let a=e.length;i>a/2&&(i=a/2);let f;for(f=0;f<i;++f){let v=parseInt(e.substr(f*2,2),16);if(Ef(v))return f;t[r+f]=v}return f}function cm(t,e,r,i){return bo(wf(e,t.length-r),t,r,i)}function dm(t,e,r,i){return bo(Sm(e),t,r,i)}function pm(t,e,r,i){return bo(Zh(e),t,r,i)}function vm(t,e,r,i){return bo(Bm(e,t.length-r),t,r,i)}k.prototype.write=function(e,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let f=!1;for(;;)switch(n){case"hex":return lm(this,e,r,i);case"utf8":case"utf-8":return cm(this,e,r,i);case"ascii":case"latin1":case"binary":return dm(this,e,r,i);case"base64":return pm(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vm(this,e,r,i);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}};k.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ym(t,e,r){return e===0&&r===t.length?gf.fromByteArray(t):gf.fromByteArray(t.slice(e,r))}function Hh(t,e,r){r=Math.min(t.length,r);let i=[],n=e;for(;n<r;){let a=t[n],f=null,v=a>239?4:a>223?3:a>191?2:1;if(n+v<=r){let w,S,A,q;switch(v){case 1:a<128&&(f=a);break;case 2:w=t[n+1],(w&192)===128&&(q=(a&31)<<6|w&63,q>127&&(f=q));break;case 3:w=t[n+1],S=t[n+2],(w&192)===128&&(S&192)===128&&(q=(a&15)<<12|(w&63)<<6|S&63,q>2047&&(q<55296||q>57343)&&(f=q));break;case 4:w=t[n+1],S=t[n+2],A=t[n+3],(w&192)===128&&(S&192)===128&&(A&192)===128&&(q=(a&15)<<18|(w&63)<<12|(S&63)<<6|A&63,q>65535&&q<1114112&&(f=q))}}f===null?(f=65533,v=1):f>65535&&(f-=65536,i.push(f>>>10&1023|55296),f=56320|f&1023),i.push(f),n+=v}return gm(i)}var Ph=4096;function gm(t){let e=t.length;if(e<=Ph)return String.fromCharCode.apply(String,t);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=Ph));return r}function mm(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]&127);return i}function bm(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function wm(t,e,r){let i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let n="";for(let a=e;a<r;++a)n+=Am[t[a]];return n}function _m(t,e,r){let i=t.slice(e,r),n="";for(let a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}k.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let n=this.subarray(e,r);return Object.setPrototypeOf(n,k.prototype),n};function $e(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}k.prototype.readUintLE=k.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||$e(e,r,this.length);let n=this[e],a=1,f=0;for(;++f<r&&(a*=256);)n+=this[e+f]*a;return n};k.prototype.readUintBE=k.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||$e(e,r,this.length);let n=this[e+--r],a=1;for(;r>0&&(a*=256);)n+=this[e+--r]*a;return n};k.prototype.readUint8=k.prototype.readUInt8=function(e,r){return e=e>>>0,r||$e(e,1,this.length),this[e]};k.prototype.readUint16LE=k.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||$e(e,2,this.length),this[e]|this[e+1]<<8};k.prototype.readUint16BE=k.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||$e(e,2,this.length),this[e]<<8|this[e+1]};k.prototype.readUint32LE=k.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||$e(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};k.prototype.readUint32BE=k.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||$e(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};k.prototype.readBigUInt64LE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))});k.prototype.readBigUInt64BE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(a)});k.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||$e(e,r,this.length);let n=this[e],a=1,f=0;for(;++f<r&&(a*=256);)n+=this[e+f]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*r)),n};k.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||$e(e,r,this.length);let n=r,a=1,f=this[e+--n];for(;n>0&&(a*=256);)f+=this[e+--n]*a;return a*=128,f>=a&&(f-=Math.pow(2,8*r)),f};k.prototype.readInt8=function(e,r){return e=e>>>0,r||$e(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};k.prototype.readInt16LE=function(e,r){e=e>>>0,r||$e(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};k.prototype.readInt16BE=function(e,r){e=e>>>0,r||$e(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};k.prototype.readInt32LE=function(e,r){return e=e>>>0,r||$e(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};k.prototype.readInt32BE=function(e,r){return e=e>>>0,r||$e(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};k.prototype.readBigInt64LE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});k.prototype.readBigInt64BE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)});k.prototype.readFloatLE=function(e,r){return e=e>>>0,r||$e(e,4,this.length),vi.read(this,e,!0,23,4)};k.prototype.readFloatBE=function(e,r){return e=e>>>0,r||$e(e,4,this.length),vi.read(this,e,!1,23,4)};k.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||$e(e,8,this.length),vi.read(this,e,!0,52,8)};k.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||$e(e,8,this.length),vi.read(this,e,!1,52,8)};function nt(t,e,r,i,n,a){if(!k.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<a)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}k.prototype.writeUintLE=k.prototype.writeUIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let v=Math.pow(2,8*i)-1;nt(this,e,r,i,v,0)}let a=1,f=0;for(this[r]=e&255;++f<i&&(a*=256);)this[r+f]=e/a&255;return r+i};k.prototype.writeUintBE=k.prototype.writeUIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let v=Math.pow(2,8*i)-1;nt(this,e,r,i,v,0)}let a=i-1,f=1;for(this[r+a]=e&255;--a>=0&&(f*=256);)this[r+a]=e/f&255;return r+i};k.prototype.writeUint8=k.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,1,255,0),this[r]=e&255,r+1};k.prototype.writeUint16LE=k.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};k.prototype.writeUint16BE=k.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};k.prototype.writeUint32LE=k.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};k.prototype.writeUint32BE=k.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Wh(t,e,r,i,n){zh(e,i,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a;let f=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=f,f=f>>8,t[r++]=f,f=f>>8,t[r++]=f,f=f>>8,t[r++]=f,r}function Kh(t,e,r,i,n){zh(e,i,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r+7]=a,a=a>>8,t[r+6]=a,a=a>>8,t[r+5]=a,a=a>>8,t[r+4]=a;let f=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=f,f=f>>8,t[r+2]=f,f=f>>8,t[r+1]=f,f=f>>8,t[r]=f,r+8}k.prototype.writeBigUInt64LE=or(function(e,r=0){return Wh(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});k.prototype.writeBigUInt64BE=or(function(e,r=0){return Kh(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});k.prototype.writeIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let w=Math.pow(2,8*i-1);nt(this,e,r,i,w-1,-w)}let a=0,f=1,v=0;for(this[r]=e&255;++a<i&&(f*=256);)e<0&&v===0&&this[r+a-1]!==0&&(v=1),this[r+a]=(e/f>>0)-v&255;return r+i};k.prototype.writeIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let w=Math.pow(2,8*i-1);nt(this,e,r,i,w-1,-w)}let a=i-1,f=1,v=0;for(this[r+a]=e&255;--a>=0&&(f*=256);)e<0&&v===0&&this[r+a+1]!==0&&(v=1),this[r+a]=(e/f>>0)-v&255;return r+i};k.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};k.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};k.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};k.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};k.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};k.prototype.writeBigInt64LE=or(function(e,r=0){return Wh(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});k.prototype.writeBigInt64BE=or(function(e,r=0){return Kh(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Gh(t,e,r,i,n,a){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Vh(t,e,r,i,n){return e=+e,r=r>>>0,n||Gh(t,e,r,4,34028234663852886e22,-34028234663852886e22),vi.write(t,e,r,i,23,4),r+4}k.prototype.writeFloatLE=function(e,r,i){return Vh(this,e,r,!0,i)};k.prototype.writeFloatBE=function(e,r,i){return Vh(this,e,r,!1,i)};function $h(t,e,r,i,n){return e=+e,r=r>>>0,n||Gh(t,e,r,8,17976931348623157e292,-17976931348623157e292),vi.write(t,e,r,i,52,8),r+8}k.prototype.writeDoubleLE=function(e,r,i){return $h(this,e,r,!0,i)};k.prototype.writeDoubleBE=function(e,r,i){return $h(this,e,r,!1,i)};k.prototype.copy=function(e,r,i,n){if(!k.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);let a=n-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),r),a};k.prototype.fill=function(e,r,i,n){if(typeof e=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!k.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){let f=e.charCodeAt(0);(n==="utf8"&&f<128||n==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let a;if(typeof e=="number")for(a=r;a<i;++a)this[a]=e;else{let f=k.isBuffer(e)?e:k.from(e,n),v=f.length;if(v===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-r;++a)this[a+r]=f[a%v]}return this};var pi={};function Mf(t,e,r){pi[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Mf("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Mf("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Mf("ERR_OUT_OF_RANGE",function(t,e,r){let i=`The value of "${t}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=Uh(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=Uh(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);function Uh(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function xm(t,e,r){yi(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&yn(e,t.length-(r+1))}function zh(t,e,r,i,n,a){if(t>r||t<e){let f=typeof e=="bigint"?"n":"",v;throw a>3?e===0||e===BigInt(0)?v=`>= 0${f} and < 2${f} ** ${(a+1)*8}${f}`:v=`>= -(2${f} ** ${(a+1)*8-1}${f}) and < 2 ** ${(a+1)*8-1}${f}`:v=`>= ${e}${f} and <= ${r}${f}`,new pi.ERR_OUT_OF_RANGE("value",v,t)}xm(i,n,a)}function yi(t,e){if(typeof t!="number")throw new pi.ERR_INVALID_ARG_TYPE(e,"number",t)}function yn(t,e,r){throw Math.floor(t)!==t?(yi(t,r),new pi.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new pi.ERR_BUFFER_OUT_OF_BOUNDS:new pi.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var Mm=/[^+/0-9A-Za-z-_]/g;function Em(t){if(t=t.split("=")[0],t=t.trim().replace(Mm,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function wf(t,e){e=e||1/0;let r,i=t.length,n=null,a=[];for(let f=0;f<i;++f){if(r=t.charCodeAt(f),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(f+1===i){(e-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Sm(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Bm(t,e){let r,i,n,a=[];for(let f=0;f<t.length&&!((e-=2)<0);++f)r=t.charCodeAt(f),i=r>>8,n=r%256,a.push(n),a.push(i);return a}function Zh(t){return gf.toByteArray(Em(t))}function bo(t,e,r,i){let n;for(n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Ct(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Ef(t){return t!==t}var Am=(function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)e[i+n]=t[r]+t[n]}return e})();function or(t){return typeof BigInt>"u"?Rm:t}function Rm(){throw new Error("BigInt not supported")}});var M,R,b=$g(()=>{M=Eh(qh()),R=Eh(rt())});var Ee=B((Sf,Yh)=>{b();var wo=rt(),Dt=wo.Buffer;function Jh(t,e){for(var r in t)e[r]=t[r]}Dt.from&&Dt.alloc&&Dt.allocUnsafe&&Dt.allocUnsafeSlow?Yh.exports=wo:(Jh(wo,Sf),Sf.Buffer=Pr);function Pr(t,e,r){return Dt(t,e,r)}Pr.prototype=Object.create(Dt.prototype);Jh(Dt,Pr);Pr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Dt(t,e,r)};Pr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Dt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Pr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Dt(t)};Pr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return wo.SlowBuffer(t)}});var Ur=B((SE,Af)=>{"use strict";b();var Bf=65536,qm=4294967295;function Tm(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
|
+
Use Chrome, Firefox or Internet Explorer 11`)}var km=Ee().Buffer,_o=globalThis.crypto||globalThis.msCrypto;_o&&_o.getRandomValues?Af.exports=Im:Af.exports=Tm;function Im(t,e){if(t>qm)throw new RangeError("requested too many random bytes");var r=km.allocUnsafe(t);if(t>0)if(t>Bf)for(var i=0;i<t;i+=Bf)_o.getRandomValues(r.slice(i,i+Bf));else _o.getRandomValues(r);return typeof e=="function"?M.default.nextTick(function(){e(null,r)}):r}});var De=B((AE,Rf)=>{b();typeof Object.create=="function"?Rf.exports=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Rf.exports=function(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}});var bi=B((qE,qf)=>{"use strict";b();var mi=typeof Reflect=="object"?Reflect:null,Xh=mi&&typeof mi.apply=="function"?mi.apply:function(e,r,i){return Function.prototype.apply.call(e,r,i)},xo;mi&&typeof mi.ownKeys=="function"?xo=mi.ownKeys:Object.getOwnPropertySymbols?xo=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:xo=function(e){return Object.getOwnPropertyNames(e)};function Om(t){console&&console.warn&&console.warn(t)}var el=Number.isNaN||function(e){return e!==e};function Ie(){Ie.init.call(this)}qf.exports=Ie;qf.exports.once=Um;Ie.EventEmitter=Ie;Ie.prototype._events=void 0;Ie.prototype._eventsCount=0;Ie.prototype._maxListeners=void 0;var Qh=10;function Mo(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ie,"defaultMaxListeners",{enumerable:!0,get:function(){return Qh},set:function(t){if(typeof t!="number"||t<0||el(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Qh=t}});Ie.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ie.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||el(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function tl(t){return t._maxListeners===void 0?Ie.defaultMaxListeners:t._maxListeners}Ie.prototype.getMaxListeners=function(){return tl(this)};Ie.prototype.emit=function(e){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=e==="error",a=this._events;if(a!==void 0)n=n&&a.error===void 0;else if(!n)return!1;if(n){var f;if(r.length>0&&(f=r[0]),f instanceof Error)throw f;var v=new Error("Unhandled error."+(f?" ("+f.message+")":""));throw v.context=f,v}var w=a[e];if(w===void 0)return!1;if(typeof w=="function")Xh(w,this,r);else for(var S=w.length,A=al(w,S),i=0;i<S;++i)Xh(A[i],this,r);return!0};function rl(t,e,r,i){var n,a,f;if(Mo(r),a=t._events,a===void 0?(a=t._events=Object.create(null),t._eventsCount=0):(a.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),f=a[e]),f===void 0)f=a[e]=r,++t._eventsCount;else if(typeof f=="function"?f=a[e]=i?[r,f]:[f,r]:i?f.unshift(r):f.push(r),n=tl(t),n>0&&f.length>n&&!f.warned){f.warned=!0;var v=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");v.name="MaxListenersExceededWarning",v.emitter=t,v.type=e,v.count=f.length,Om(v)}return t}Ie.prototype.addListener=function(e,r){return rl(this,e,r,!1)};Ie.prototype.on=Ie.prototype.addListener;Ie.prototype.prependListener=function(e,r){return rl(this,e,r,!0)};function Cm(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function il(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=Cm.bind(i);return n.listener=r,i.wrapFn=n,n}Ie.prototype.once=function(e,r){return Mo(r),this.on(e,il(this,e,r)),this};Ie.prototype.prependOnceListener=function(e,r){return Mo(r),this.prependListener(e,il(this,e,r)),this};Ie.prototype.removeListener=function(e,r){var i,n,a,f,v;if(Mo(r),n=this._events,n===void 0)return this;if(i=n[e],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||r));else if(typeof i!="function"){for(a=-1,f=i.length-1;f>=0;f--)if(i[f]===r||i[f].listener===r){v=i[f].listener,a=f;break}if(a<0)return this;a===0?i.shift():Dm(i,a),i.length===1&&(n[e]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",e,v||r)}return this};Ie.prototype.off=Ie.prototype.removeListener;Ie.prototype.removeAllListeners=function(e){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[e]),this;if(arguments.length===0){var a=Object.keys(i),f;for(n=0;n<a.length;++n)f=a[n],f!=="removeListener"&&this.removeAllListeners(f);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(e,r[n]);return this};function nl(t,e,r){var i=t._events;if(i===void 0)return[];var n=i[e];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?Pm(n):al(n,n.length)}Ie.prototype.listeners=function(e){return nl(this,e,!0)};Ie.prototype.rawListeners=function(e){return nl(this,e,!1)};Ie.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):ol.call(t,e)};Ie.prototype.listenerCount=ol;function ol(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ie.prototype.eventNames=function(){return this._eventsCount>0?xo(this._events):[]};function al(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}function Dm(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Pm(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function Um(t,e){return new Promise(function(r,i){function n(f){t.removeListener(e,a),i(f)}function a(){typeof t.removeListener=="function"&&t.removeListener("error",n),r([].slice.call(arguments))}fl(t,e,a,{once:!0}),e!=="error"&&Lm(t,n,{once:!0})})}function Lm(t,e,r){typeof t.on=="function"&&fl(t,"error",e,r)}function fl(t,e,r,i){if(typeof t.on=="function")i.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function n(a){i.once&&t.removeEventListener(e,n),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var Lr=B((kE,Tf)=>{b();typeof Object.create=="function"?Tf.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Tf.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var kf=B((OE,sl)=>{b();sl.exports=bi().EventEmitter});var If=B((DE,ul)=>{"use strict";b();ul.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var f=Object.getOwnPropertySymbols(e);if(f.length!==1||f[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(e,r);if(v.value!==n||v.enumerable!==!0)return!1}return!0}});var gn=B((UE,hl)=>{"use strict";b();var Nm=If();hl.exports=function(){return Nm()&&!!Symbol.toStringTag}});var Of=B((NE,ll)=>{"use strict";b();ll.exports=Object});var dl=B((jE,cl)=>{"use strict";b();cl.exports=Error});var vl=B((WE,pl)=>{"use strict";b();pl.exports=EvalError});var gl=B((GE,yl)=>{"use strict";b();yl.exports=RangeError});var bl=B(($E,ml)=>{"use strict";b();ml.exports=ReferenceError});var Cf=B((ZE,wl)=>{"use strict";b();wl.exports=SyntaxError});var Nr=B((YE,_l)=>{"use strict";b();_l.exports=TypeError});var Ml=B((QE,xl)=>{"use strict";b();xl.exports=URIError});var Sl=B((tS,El)=>{"use strict";b();El.exports=Math.abs});var Al=B((iS,Bl)=>{"use strict";b();Bl.exports=Math.floor});var ql=B((oS,Rl)=>{"use strict";b();Rl.exports=Math.max});var kl=B((fS,Tl)=>{"use strict";b();Tl.exports=Math.min});var Ol=B((uS,Il)=>{"use strict";b();Il.exports=Math.pow});var Dl=B((lS,Cl)=>{"use strict";b();Cl.exports=Math.round});var Ul=B((dS,Pl)=>{"use strict";b();Pl.exports=Number.isNaN||function(e){return e!==e}});var Nl=B((vS,Ll)=>{"use strict";b();var Fm=Ul();Ll.exports=function(e){return Fm(e)||e===0?e:e<0?-1:1}});var jl=B((gS,Fl)=>{"use strict";b();Fl.exports=Object.getOwnPropertyDescriptor});var Fr=B((bS,Hl)=>{"use strict";b();var Eo=jl();if(Eo)try{Eo([],"length")}catch{Eo=null}Hl.exports=Eo});var mn=B((_S,Wl)=>{"use strict";b();var So=Object.defineProperty||!1;if(So)try{So({},"a",{value:1})}catch{So=!1}Wl.exports=So});var Vl=B((MS,Gl)=>{"use strict";b();var Kl=typeof Symbol<"u"&&Symbol,jm=If();Gl.exports=function(){return typeof Kl!="function"||typeof Symbol!="function"||typeof Kl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jm()}});var Df=B((SS,$l)=>{"use strict";b();$l.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Pf=B((AS,zl)=>{"use strict";b();var Hm=Of();zl.exports=Hm.getPrototypeOf||null});var Yl=B((qS,Jl)=>{"use strict";b();var Wm="Function.prototype.bind called on incompatible ",Km=Object.prototype.toString,Gm=Math.max,Vm="[object Function]",Zl=function(e,r){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var a=0;a<r.length;a+=1)i[a+e.length]=r[a];return i},$m=function(e,r){for(var i=[],n=r||0,a=0;n<e.length;n+=1,a+=1)i[a]=e[n];return i},zm=function(t,e){for(var r="",i=0;i<t.length;i+=1)r+=t[i],i+1<t.length&&(r+=e);return r};Jl.exports=function(e){var r=this;if(typeof r!="function"||Km.apply(r)!==Vm)throw new TypeError(Wm+r);for(var i=$m(arguments,1),n,a=function(){if(this instanceof n){var A=r.apply(this,Zl(i,arguments));return Object(A)===A?A:this}return r.apply(e,Zl(i,arguments))},f=Gm(0,r.length-i.length),v=[],w=0;w<f;w++)v[w]="$"+w;if(n=Function("binder","return function ("+zm(v,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var S=function(){};S.prototype=r.prototype,n.prototype=new S,S.prototype=null}return n}});var wi=B((kS,Xl)=>{"use strict";b();var Zm=Yl();Xl.exports=Function.prototype.bind||Zm});var Bo=B((OS,Ql)=>{"use strict";b();Ql.exports=Function.prototype.call});var Ao=B((DS,e0)=>{"use strict";b();e0.exports=Function.prototype.apply});var r0=B((US,t0)=>{"use strict";b();t0.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Uf=B((NS,i0)=>{"use strict";b();var Jm=wi(),Ym=Ao(),Xm=Bo(),Qm=r0();i0.exports=Qm||Jm.call(Xm,Ym)});var Ro=B((jS,n0)=>{"use strict";b();var eb=wi(),tb=Nr(),rb=Bo(),ib=Uf();n0.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new tb("a function is required");return ib(eb,rb,e)}});var h0=B((WS,u0)=>{"use strict";b();var nb=Ro(),o0=Fr(),f0;try{f0=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Lf=!!f0&&o0&&o0(Object.prototype,"__proto__"),s0=Object,a0=s0.getPrototypeOf;u0.exports=Lf&&typeof Lf.get=="function"?nb([Lf.get]):typeof a0=="function"?function(e){return a0(e==null?e:s0(e))}:!1});var qo=B((GS,p0)=>{"use strict";b();var l0=Df(),c0=Pf(),d0=h0();p0.exports=l0?function(e){return l0(e)}:c0?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return c0(e)}:d0?function(e){return d0(e)}:null});var Nf=B(($S,v0)=>{"use strict";b();var ob=Function.prototype.call,ab=Object.prototype.hasOwnProperty,fb=wi();v0.exports=fb.call(ob,ab)});var Hf=B((ZS,_0)=>{"use strict";b();var Ae,sb=Of(),ub=dl(),hb=vl(),lb=gl(),cb=bl(),Ei=Cf(),Mi=Nr(),db=Ml(),pb=Sl(),vb=Al(),yb=ql(),gb=kl(),mb=Ol(),bb=Dl(),wb=Nl(),b0=Function,Ff=function(t){try{return b0('"use strict"; return ('+t+").constructor;")()}catch{}},bn=Fr(),_b=mn(),jf=function(){throw new Mi},xb=bn?(function(){try{return arguments.callee,jf}catch{try{return bn(arguments,"callee").get}catch{return jf}}})():jf,_i=Vl()(),ze=qo(),Mb=Pf(),Eb=Df(),w0=Ao(),wn=Bo(),xi={},Sb=typeof Uint8Array>"u"||!ze?Ae:ze(Uint8Array),jr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ae:ArrayBuffer,"%ArrayIteratorPrototype%":_i&&ze?ze([][Symbol.iterator]()):Ae,"%AsyncFromSyncIteratorPrototype%":Ae,"%AsyncFunction%":xi,"%AsyncGenerator%":xi,"%AsyncGeneratorFunction%":xi,"%AsyncIteratorPrototype%":xi,"%Atomics%":typeof Atomics>"u"?Ae:Atomics,"%BigInt%":typeof BigInt>"u"?Ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ub,"%eval%":eval,"%EvalError%":hb,"%Float16Array%":typeof Float16Array>"u"?Ae:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ae:FinalizationRegistry,"%Function%":b0,"%GeneratorFunction%":xi,"%Int8Array%":typeof Int8Array>"u"?Ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_i&&ze?ze(ze([][Symbol.iterator]())):Ae,"%JSON%":typeof JSON=="object"?JSON:Ae,"%Map%":typeof Map>"u"?Ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_i||!ze?Ae:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":sb,"%Object.getOwnPropertyDescriptor%":bn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ae:Promise,"%Proxy%":typeof Proxy>"u"?Ae:Proxy,"%RangeError%":lb,"%ReferenceError%":cb,"%Reflect%":typeof Reflect>"u"?Ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_i||!ze?Ae:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_i&&ze?ze(""[Symbol.iterator]()):Ae,"%Symbol%":_i?Symbol:Ae,"%SyntaxError%":Ei,"%ThrowTypeError%":xb,"%TypedArray%":Sb,"%TypeError%":Mi,"%Uint8Array%":typeof Uint8Array>"u"?Ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ae:Uint32Array,"%URIError%":db,"%WeakMap%":typeof WeakMap>"u"?Ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ae:WeakSet,"%Function.prototype.call%":wn,"%Function.prototype.apply%":w0,"%Object.defineProperty%":_b,"%Object.getPrototypeOf%":Mb,"%Math.abs%":pb,"%Math.floor%":vb,"%Math.max%":yb,"%Math.min%":gb,"%Math.pow%":mb,"%Math.round%":bb,"%Math.sign%":wb,"%Reflect.getPrototypeOf%":Eb};if(ze)try{null.error}catch(t){y0=ze(ze(t)),jr["%Error.prototype%"]=y0}var y0,Bb=function t(e){var r;if(e==="%AsyncFunction%")r=Ff("async function () {}");else if(e==="%GeneratorFunction%")r=Ff("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ff("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&ze&&(r=ze(n.prototype))}return jr[e]=r,r},g0={__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"]},_n=wi(),To=Nf(),Ab=_n.call(wn,Array.prototype.concat),Rb=_n.call(w0,Array.prototype.splice),m0=_n.call(wn,String.prototype.replace),ko=_n.call(wn,String.prototype.slice),qb=_n.call(wn,RegExp.prototype.exec),Tb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kb=/\\(\\)?/g,Ib=function(e){var r=ko(e,0,1),i=ko(e,-1);if(r==="%"&&i!=="%")throw new Ei("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Ei("invalid intrinsic syntax, expected opening `%`");var n=[];return m0(e,Tb,function(a,f,v,w){n[n.length]=v?m0(w,kb,"$1"):f||a}),n},Ob=function(e,r){var i=e,n;if(To(g0,i)&&(n=g0[i],i="%"+n[0]+"%"),To(jr,i)){var a=jr[i];if(a===xi&&(a=Bb(i)),typeof a>"u"&&!r)throw new Mi("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Ei("intrinsic "+e+" does not exist!")};_0.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Mi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Mi('"allowMissing" argument must be a boolean');if(qb(/^%?[^%]*%?$/,e)===null)throw new Ei("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Ib(e),n=i.length>0?i[0]:"",a=Ob("%"+n+"%",r),f=a.name,v=a.value,w=!1,S=a.alias;S&&(n=S[0],Rb(i,Ab([0,1],S)));for(var A=1,q=!0;A<i.length;A+=1){var T=i[A],O=ko(T,0,1),P=ko(T,-1);if((O==='"'||O==="'"||O==="`"||P==='"'||P==="'"||P==="`")&&O!==P)throw new Ei("property names with quotes must have matching quotes");if((T==="constructor"||!q)&&(w=!0),n+="."+T,f="%"+n+"%",To(jr,f))v=jr[f];else if(v!=null){if(!(T in v)){if(!r)throw new Mi("base intrinsic for "+e+" exists, but the property is not available.");return}if(bn&&A+1>=i.length){var H=bn(v,T);q=!!H,q&&"get"in H&&!("originalValue"in H.get)?v=H.get:v=v[T]}else q=To(v,T),v=v[T];q&&!w&&(jr[f]=v)}}return v}});var Hr=B((YS,E0)=>{"use strict";b();var x0=Hf(),M0=Ro(),Cb=M0([x0("%String.prototype.indexOf%")]);E0.exports=function(e,r){var i=x0(e,!!r);return typeof i=="function"&&Cb(e,".prototype.")>-1?M0([i]):i}});var A0=B((QS,B0)=>{"use strict";b();var Db=gn()(),Pb=Hr(),Wf=Pb("Object.prototype.toString"),Io=function(e){return Db&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Wf(e)==="[object Arguments]"},S0=function(e){return Io(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Wf(e)!=="[object Array]"&&"callee"in e&&Wf(e.callee)==="[object Function]"},Ub=(function(){return Io(arguments)})();Io.isLegacyArguments=S0;B0.exports=Ub?Io:S0});var O0=B((t5,I0)=>{"use strict";b();var R0=Hr(),Lb=gn()(),Nb=Nf(),Fb=Fr(),Vf;Lb?(q0=R0("RegExp.prototype.exec"),Kf={},Oo=function(){throw Kf},Gf={toString:Oo,valueOf:Oo},typeof Symbol.toPrimitive=="symbol"&&(Gf[Symbol.toPrimitive]=Oo),Vf=function(e){if(!e||typeof e!="object")return!1;var r=Fb(e,"lastIndex"),i=r&&Nb(r,"value");if(!i)return!1;try{q0(e,Gf)}catch(n){return n===Kf}}):(T0=R0("Object.prototype.toString"),k0="[object RegExp]",Vf=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:T0(e)===k0});var q0,Kf,Oo,Gf,T0,k0;I0.exports=Vf});var D0=B((i5,C0)=>{"use strict";b();var jb=Hr(),Hb=O0(),Wb=jb("RegExp.prototype.exec"),Kb=Nr();C0.exports=function(e){if(!Hb(e))throw new Kb("`regex` must be a RegExp");return function(i){return Wb(e,i)!==null}}});var U0=B((o5,P0)=>{"use strict";b();var Gb=function*(){}.constructor;P0.exports=()=>Gb});var j0=B((f5,F0)=>{"use strict";b();var N0=Hr(),Vb=D0(),$b=Vb(/^\s*(?:function)?\*/),zb=gn()(),L0=qo(),Zb=N0("Object.prototype.toString"),Jb=N0("Function.prototype.toString"),Yb=U0();F0.exports=function(e){if(typeof e!="function")return!1;if($b(Jb(e)))return!0;if(!zb){var r=Zb(e);return r==="[object GeneratorFunction]"}if(!L0)return!1;var i=Yb();return i&&L0(e)===i.prototype}});var G0=B((u5,K0)=>{"use strict";b();var W0=Function.prototype.toString,Si=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,zf,Co;if(typeof Si=="function"&&typeof Object.defineProperty=="function")try{zf=Object.defineProperty({},"length",{get:function(){throw Co}}),Co={},Si(function(){throw 42},null,zf)}catch(t){t!==Co&&(Si=null)}else Si=null;var Xb=/^\s*class\b/,Zf=function(e){try{var r=W0.call(e);return Xb.test(r)}catch{return!1}},$f=function(e){try{return Zf(e)?!1:(W0.call(e),!0)}catch{return!1}},Do=Object.prototype.toString,Qb="[object Object]",ew="[object Function]",tw="[object GeneratorFunction]",rw="[object HTMLAllCollection]",iw="[object HTML document.all class]",nw="[object HTMLCollection]",ow=typeof Symbol=="function"&&!!Symbol.toStringTag,aw=!(0 in[,]),Jf=function(){return!1};typeof document=="object"&&(H0=document.all,Do.call(H0)===Do.call(document.all)&&(Jf=function(e){if((aw||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Do.call(e);return(r===rw||r===iw||r===nw||r===Qb)&&e("")==null}catch{}return!1}));var H0;K0.exports=Si?function(e){if(Jf(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Si(e,null,zf)}catch(r){if(r!==Co)return!1}return!Zf(e)&&$f(e)}:function(e){if(Jf(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(ow)return $f(e);if(Zf(e))return!1;var r=Do.call(e);return r!==ew&&r!==tw&&!/^\[object HTML/.test(r)?!1:$f(e)}});var z0=B((l5,$0)=>{"use strict";b();var fw=G0(),sw=Object.prototype.toString,V0=Object.prototype.hasOwnProperty,uw=function(e,r,i){for(var n=0,a=e.length;n<a;n++)V0.call(e,n)&&(i==null?r(e[n],n,e):r.call(i,e[n],n,e))},hw=function(e,r,i){for(var n=0,a=e.length;n<a;n++)i==null?r(e.charAt(n),n,e):r.call(i,e.charAt(n),n,e)},lw=function(e,r,i){for(var n in e)V0.call(e,n)&&(i==null?r(e[n],n,e):r.call(i,e[n],n,e))};function cw(t){return sw.call(t)==="[object Array]"}$0.exports=function(e,r,i){if(!fw(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),cw(e)?uw(e,r,n):typeof e=="string"?hw(e,r,n):lw(e,r,n)}});var J0=B((d5,Z0)=>{"use strict";b();Z0.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var X0=B((v5,Y0)=>{"use strict";b();var Yf=J0(),dw=globalThis;Y0.exports=function(){for(var e=[],r=0;r<Yf.length;r++)typeof dw[Yf[r]]=="function"&&(e[e.length]=Yf[r]);return e}});var rc=B((g5,tc)=>{"use strict";b();var Q0=mn(),pw=Cf(),Bi=Nr(),ec=Fr();tc.exports=function(e,r,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Bi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Bi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Bi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Bi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Bi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Bi("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,w=!!ec&&ec(e,r);if(Q0)Q0(e,r,{configurable:f===null&&w?w.configurable:!f,enumerable:n===null&&w?w.enumerable:!n,value:i,writable:a===null&&w?w.writable:!a});else if(v||!n&&!a&&!f)e[r]=i;else throw new pw("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var oc=B((b5,nc)=>{"use strict";b();var Xf=mn(),ic=function(){return!!Xf};ic.hasArrayLengthDefineBug=function(){if(!Xf)return null;try{return Xf([],"length",{value:1}).length!==1}catch{return!0}};nc.exports=ic});var hc=B((_5,uc)=>{"use strict";b();var vw=Hf(),ac=rc(),yw=oc()(),fc=Fr(),sc=Nr(),gw=vw("%Math.floor%");uc.exports=function(e,r){if(typeof e!="function")throw new sc("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||gw(r)!==r)throw new sc("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in e&&fc){var f=fc(e,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(a=!1)}return(n||a||!i)&&(yw?ac(e,"length",r,!0,!0):ac(e,"length",r)),e}});var cc=B((M5,lc)=>{"use strict";b();var mw=wi(),bw=Ao(),ww=Uf();lc.exports=function(){return ww(mw,bw,arguments)}});var vc=B((S5,Po)=>{"use strict";b();var _w=hc(),dc=mn(),xw=Ro(),pc=cc();Po.exports=function(e){var r=xw(arguments),i=1+e.length-(arguments.length-1);return _w(r,i>0?i:0,!0)};dc?dc(Po.exports,"apply",{value:pc}):Po.exports.apply=pc});var rs=B((A5,bc)=>{"use strict";b();var No=z0(),Mw=X0(),yc=vc(),es=Hr(),Lo=Fr(),Uo=qo(),Ew=es("Object.prototype.toString"),mc=gn()(),gc=globalThis,Qf=Mw(),ts=es("String.prototype.slice"),Sw=es("Array.prototype.indexOf",!0)||function(e,r){for(var i=0;i<e.length;i+=1)if(e[i]===r)return i;return-1},Fo={__proto__:null};mc&&Lo&&Uo?No(Qf,function(t){var e=new gc[t];if(Symbol.toStringTag in e&&Uo){var r=Uo(e),i=Lo(r,Symbol.toStringTag);if(!i&&r){var n=Uo(r);i=Lo(n,Symbol.toStringTag)}if(i&&i.get){var a=yc(i.get);Fo["$"+t]=a}}}):No(Qf,function(t){var e=new gc[t],r=e.slice||e.set;if(r){var i=yc(r);Fo["$"+t]=i}});var Bw=function(e){var r=!1;return No(Fo,function(i,n){if(!r)try{"$"+i(e)===n&&(r=ts(n,1))}catch{}}),r},Aw=function(e){var r=!1;return No(Fo,function(i,n){if(!r)try{i(e),r=ts(n,1)}catch{}}),r};bc.exports=function(e){if(!e||typeof e!="object")return!1;if(!mc){var r=ts(Ew(e),8,-1);return Sw(Qf,r)>-1?r:r!=="Object"?!1:Aw(e)}return Lo?Bw(e):null}});var is=B((q5,wc)=>{"use strict";b();var Rw=rs();wc.exports=function(e){return!!Rw(e)}});var Cc=B(Re=>{"use strict";b();var qw=A0(),Tw=j0(),wt=rs(),_c=is();function Ai(t){return t.call.bind(t)}var xc=typeof BigInt<"u",Mc=typeof Symbol<"u",ht=Ai(Object.prototype.toString),kw=Ai(Number.prototype.valueOf),Iw=Ai(String.prototype.valueOf),Ow=Ai(Boolean.prototype.valueOf);xc&&(Ec=Ai(BigInt.prototype.valueOf));var Ec;Mc&&(Sc=Ai(Symbol.prototype.valueOf));var Sc;function Mn(t,e){if(typeof t!="object")return!1;try{return e(t),!0}catch{return!1}}Re.isArgumentsObject=qw;Re.isGeneratorFunction=Tw;Re.isTypedArray=_c;function Cw(t){return typeof Promise<"u"&&t instanceof Promise||t!==null&&typeof t=="object"&&typeof t.then=="function"&&typeof t.catch=="function"}Re.isPromise=Cw;function Dw(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):_c(t)||Ac(t)}Re.isArrayBufferView=Dw;function Pw(t){return wt(t)==="Uint8Array"}Re.isUint8Array=Pw;function Uw(t){return wt(t)==="Uint8ClampedArray"}Re.isUint8ClampedArray=Uw;function Lw(t){return wt(t)==="Uint16Array"}Re.isUint16Array=Lw;function Nw(t){return wt(t)==="Uint32Array"}Re.isUint32Array=Nw;function Fw(t){return wt(t)==="Int8Array"}Re.isInt8Array=Fw;function jw(t){return wt(t)==="Int16Array"}Re.isInt16Array=jw;function Hw(t){return wt(t)==="Int32Array"}Re.isInt32Array=Hw;function Ww(t){return wt(t)==="Float32Array"}Re.isFloat32Array=Ww;function Kw(t){return wt(t)==="Float64Array"}Re.isFloat64Array=Kw;function Gw(t){return wt(t)==="BigInt64Array"}Re.isBigInt64Array=Gw;function Vw(t){return wt(t)==="BigUint64Array"}Re.isBigUint64Array=Vw;function jo(t){return ht(t)==="[object Map]"}jo.working=typeof Map<"u"&&jo(new Map);function $w(t){return typeof Map>"u"?!1:jo.working?jo(t):t instanceof Map}Re.isMap=$w;function Ho(t){return ht(t)==="[object Set]"}Ho.working=typeof Set<"u"&&Ho(new Set);function zw(t){return typeof Set>"u"?!1:Ho.working?Ho(t):t instanceof Set}Re.isSet=zw;function Wo(t){return ht(t)==="[object WeakMap]"}Wo.working=typeof WeakMap<"u"&&Wo(new WeakMap);function Zw(t){return typeof WeakMap>"u"?!1:Wo.working?Wo(t):t instanceof WeakMap}Re.isWeakMap=Zw;function os(t){return ht(t)==="[object WeakSet]"}os.working=typeof WeakSet<"u"&&os(new WeakSet);function Jw(t){return os(t)}Re.isWeakSet=Jw;function Ko(t){return ht(t)==="[object ArrayBuffer]"}Ko.working=typeof ArrayBuffer<"u"&&Ko(new ArrayBuffer);function Bc(t){return typeof ArrayBuffer>"u"?!1:Ko.working?Ko(t):t instanceof ArrayBuffer}Re.isArrayBuffer=Bc;function Go(t){return ht(t)==="[object DataView]"}Go.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Go(new DataView(new ArrayBuffer(1),0,1));function Ac(t){return typeof DataView>"u"?!1:Go.working?Go(t):t instanceof DataView}Re.isDataView=Ac;var ns=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function xn(t){return ht(t)==="[object SharedArrayBuffer]"}function Rc(t){return typeof ns>"u"?!1:(typeof xn.working>"u"&&(xn.working=xn(new ns)),xn.working?xn(t):t instanceof ns)}Re.isSharedArrayBuffer=Rc;function Yw(t){return ht(t)==="[object AsyncFunction]"}Re.isAsyncFunction=Yw;function Xw(t){return ht(t)==="[object Map Iterator]"}Re.isMapIterator=Xw;function Qw(t){return ht(t)==="[object Set Iterator]"}Re.isSetIterator=Qw;function e2(t){return ht(t)==="[object Generator]"}Re.isGeneratorObject=e2;function t2(t){return ht(t)==="[object WebAssembly.Module]"}Re.isWebAssemblyCompiledModule=t2;function qc(t){return Mn(t,kw)}Re.isNumberObject=qc;function Tc(t){return Mn(t,Iw)}Re.isStringObject=Tc;function kc(t){return Mn(t,Ow)}Re.isBooleanObject=kc;function Ic(t){return xc&&Mn(t,Ec)}Re.isBigIntObject=Ic;function Oc(t){return Mc&&Mn(t,Sc)}Re.isSymbolObject=Oc;function r2(t){return qc(t)||Tc(t)||kc(t)||Ic(t)||Oc(t)}Re.isBoxedPrimitive=r2;function i2(t){return typeof Uint8Array<"u"&&(Bc(t)||Rc(t))}Re.isAnyArrayBuffer=i2;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(Re,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})});var Pc=B((O5,Dc)=>{b();Dc.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var Bn=B(qe=>{b();var Uc=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),i={},n=0;n<r.length;n++)i[r[n]]=Object.getOwnPropertyDescriptor(e,r[n]);return i},n2=/%[sdj%]/g;qe.format=function(t){if(!Xo(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ar(arguments[r]));return e.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(t).replace(n2,function(v){if(v==="%%")return"%";if(r>=n)return v;switch(v){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return v}}),f=i[r];r<n;f=i[++r])Yo(f)||!Ri(f)?a+=" "+f:a+=" "+ar(f);return a};qe.deprecate=function(t,e){if(typeof M.default<"u"&&M.default.noDeprecation===!0)return t;if(typeof M.default>"u")return function(){return qe.deprecate(t,e).apply(this,arguments)};var r=!1;function i(){if(!r){if(M.default.throwDeprecation)throw new Error(e);M.default.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return i};var Vo={},Lc=/^$/;M.default.env.NODE_DEBUG&&($o=M.default.env.NODE_DEBUG,$o=$o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Lc=new RegExp("^"+$o+"$","i"));var $o;qe.debuglog=function(t){if(t=t.toUpperCase(),!Vo[t])if(Lc.test(t)){var e=M.default.pid;Vo[t]=function(){var r=qe.format.apply(qe,arguments);console.error("%s %d: %s",t,e,r)}}else Vo[t]=function(){};return Vo[t]};function ar(t,e){var r={seen:[],stylize:a2};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),us(e)?r.showHidden=e:e&&qe._extend(r,e),Kr(r.showHidden)&&(r.showHidden=!1),Kr(r.depth)&&(r.depth=2),Kr(r.colors)&&(r.colors=!1),Kr(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o2),Zo(r,t,r.depth)}qe.inspect=ar;ar.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]};ar.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function o2(t,e){var r=ar.styles[e];return r?"\x1B["+ar.colors[r][0]+"m"+t+"\x1B["+ar.colors[r][1]+"m":t}function a2(t,e){return t}function f2(t){var e={};return t.forEach(function(r,i){e[r]=!0}),e}function Zo(t,e,r){if(t.customInspect&&e&&zo(e.inspect)&&e.inspect!==qe.inspect&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(r,t);return Xo(i)||(i=Zo(t,i,r)),i}var n=s2(t,e);if(n)return n;var a=Object.keys(e),f=f2(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Sn(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return as(e);if(a.length===0){if(zo(e)){var v=e.name?": "+e.name:"";return t.stylize("[Function"+v+"]","special")}if(En(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Jo(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Sn(e))return as(e)}var w="",S=!1,A=["{","}"];if(Nc(e)&&(S=!0,A=["[","]"]),zo(e)){var q=e.name?": "+e.name:"";w=" [Function"+q+"]"}if(En(e)&&(w=" "+RegExp.prototype.toString.call(e)),Jo(e)&&(w=" "+Date.prototype.toUTCString.call(e)),Sn(e)&&(w=" "+as(e)),a.length===0&&(!S||e.length==0))return A[0]+w+A[1];if(r<0)return En(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var T;return S?T=u2(t,e,r,f,a):T=a.map(function(O){return ss(t,e,r,f,O,S)}),t.seen.pop(),h2(T,w,A)}function s2(t,e){if(Kr(e))return t.stylize("undefined","undefined");if(Xo(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Fc(e))return t.stylize(""+e,"number");if(us(e))return t.stylize(""+e,"boolean");if(Yo(e))return t.stylize("null","null")}function as(t){return"["+Error.prototype.toString.call(t)+"]"}function u2(t,e,r,i,n){for(var a=[],f=0,v=e.length;f<v;++f)jc(e,String(f))?a.push(ss(t,e,r,i,String(f),!0)):a.push("");return n.forEach(function(w){w.match(/^\d+$/)||a.push(ss(t,e,r,i,w,!0))}),a}function ss(t,e,r,i,n,a){var f,v,w;if(w=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]},w.get?w.set?v=t.stylize("[Getter/Setter]","special"):v=t.stylize("[Getter]","special"):w.set&&(v=t.stylize("[Setter]","special")),jc(i,n)||(f="["+n+"]"),v||(t.seen.indexOf(w.value)<0?(Yo(r)?v=Zo(t,w.value,null):v=Zo(t,w.value,r-1),v.indexOf(`
|
|
3
|
+
`)>-1&&(a?v=v.split(`
|
|
4
|
+
`).map(function(S){return" "+S}).join(`
|
|
5
|
+
`).slice(2):v=`
|
|
6
|
+
`+v.split(`
|
|
7
|
+
`).map(function(S){return" "+S}).join(`
|
|
8
|
+
`))):v=t.stylize("[Circular]","special")),Kr(f)){if(a&&n.match(/^\d+$/))return v;f=JSON.stringify(""+n),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.slice(1,-1),f=t.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=t.stylize(f,"string"))}return f+": "+v}function h2(t,e,r){var i=0,n=t.reduce(function(a,f){return i++,f.indexOf(`
|
|
9
|
+
`)>=0&&i++,a+f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(e===""?"":e+`
|
|
10
|
+
`)+" "+t.join(`,
|
|
11
|
+
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}qe.types=Cc();function Nc(t){return Array.isArray(t)}qe.isArray=Nc;function us(t){return typeof t=="boolean"}qe.isBoolean=us;function Yo(t){return t===null}qe.isNull=Yo;function l2(t){return t==null}qe.isNullOrUndefined=l2;function Fc(t){return typeof t=="number"}qe.isNumber=Fc;function Xo(t){return typeof t=="string"}qe.isString=Xo;function c2(t){return typeof t=="symbol"}qe.isSymbol=c2;function Kr(t){return t===void 0}qe.isUndefined=Kr;function En(t){return Ri(t)&&hs(t)==="[object RegExp]"}qe.isRegExp=En;qe.types.isRegExp=En;function Ri(t){return typeof t=="object"&&t!==null}qe.isObject=Ri;function Jo(t){return Ri(t)&&hs(t)==="[object Date]"}qe.isDate=Jo;qe.types.isDate=Jo;function Sn(t){return Ri(t)&&(hs(t)==="[object Error]"||t instanceof Error)}qe.isError=Sn;qe.types.isNativeError=Sn;function zo(t){return typeof t=="function"}qe.isFunction=zo;function d2(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}qe.isPrimitive=d2;qe.isBuffer=Pc();function hs(t){return Object.prototype.toString.call(t)}function fs(t){return t<10?"0"+t.toString(10):t.toString(10)}var p2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function v2(){var t=new Date,e=[fs(t.getHours()),fs(t.getMinutes()),fs(t.getSeconds())].join(":");return[t.getDate(),p2[t.getMonth()],e].join(" ")}qe.log=function(){console.log("%s - %s",v2(),qe.format.apply(qe,arguments))};qe.inherits=De();qe._extend=function(t,e){if(!e||!Ri(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};function jc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Wr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;qe.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(Wr&&e[Wr]){var r=e[Wr];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Wr,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(w,S){i=w,n=S}),f=[],v=0;v<arguments.length;v++)f.push(arguments[v]);f.push(function(w,S){w?n(w):i(S)});try{e.apply(this,f)}catch(w){n(w)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Wr&&Object.defineProperty(r,Wr,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,Uc(e))};qe.promisify.custom=Wr;function y2(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function g2(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var a=this,f=function(){return n.apply(a,arguments)};t.apply(this,r).then(function(v){M.default.nextTick(f.bind(null,null,v))},function(v){M.default.nextTick(y2.bind(null,v,f))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,Uc(t)),e}qe.callbackify=g2});var $c=B((U5,Vc)=>{"use strict";b();function Hc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Wc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Hc(Object(r),!0).forEach(function(i){m2(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function m2(t,e,r){return e=Gc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kc(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Gc(i.key),i)}}function w2(t,e,r){return e&&Kc(t.prototype,e),r&&Kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gc(t){var e=_2(t,"string");return typeof e=="symbol"?e:String(e)}function _2(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var x2=rt(),Qo=x2.Buffer,M2=Bn(),ls=M2.inspect,E2=ls&&ls.custom||"inspect";function S2(t,e,r){Qo.prototype.copy.call(t,e,r)}Vc.exports=(function(){function t(){b2(this,t),this.head=null,this.tail=null,this.length=0}return w2(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Qo.alloc(0);for(var i=Qo.allocUnsafe(r>>>0),n=this.head,a=0;n;)S2(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,a=i.data;for(r-=a.length;i=i.next;){var f=i.data,v=r>f.length?f.length:r;if(v===f.length?a+=f:a+=f.slice(0,r),r-=v,r===0){v===f.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=f.slice(v));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=Qo.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var f=n.data,v=r>f.length?f.length:r;if(f.copy(i,i.length-r,0,v),r-=v,r===0){v===f.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=f.slice(v));break}++a}return this.length-=a,i}},{key:E2,value:function(r,i){return ls(this,Wc(Wc({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var ds=B((N5,Zc)=>{"use strict";b();function B2(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(cs,this,t)):M.default.nextTick(cs,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted?M.default.nextTick(ea,r):(r._writableState.errorEmitted=!0,M.default.nextTick(zc,r,a)):M.default.nextTick(zc,r,a):e?(M.default.nextTick(ea,r),e(a)):M.default.nextTick(ea,r)}),this)}function zc(t,e){cs(t,e),ea(t)}function ea(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function A2(){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 cs(t,e){t.emit("error",e)}function R2(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}Zc.exports={destroy:B2,undestroy:A2,errorOrDestroy:R2}});var Gr=B((j5,Xc)=>{"use strict";b();function q2(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Yc={};function lt(t,e,r){r||(r=Error);function i(a,f,v){return typeof e=="string"?e:e(a,f,v)}var n=(function(a){q2(f,a);function f(v,w,S){return a.call(this,i(v,w,S))||this}return f})(r);n.prototype.name=r.name,n.prototype.code=t,Yc[t]=n}function Jc(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(i){return String(i)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function T2(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function k2(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function I2(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}lt("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);lt("ERR_INVALID_ARG_TYPE",function(t,e,r){var i;typeof e=="string"&&T2(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";var n;if(k2(t," argument"))n="The ".concat(t," ").concat(i," ").concat(Jc(e,"type"));else{var a=I2(t,".")?"property":"argument";n='The "'.concat(t,'" ').concat(a," ").concat(i," ").concat(Jc(e,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);lt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");lt("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});lt("ERR_STREAM_PREMATURE_CLOSE","Premature close");lt("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});lt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");lt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");lt("ERR_STREAM_WRITE_AFTER_END","write after end");lt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);lt("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);lt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Xc.exports.codes=Yc});var ps=B((W5,Qc)=>{"use strict";b();var O2=Gr().codes.ERR_INVALID_OPT_VALUE;function C2(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function D2(t,e,r,i){var n=C2(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new O2(a,n)}return Math.floor(n)}return t.objectMode?16:16*1024}Qc.exports={getHighWaterMark:D2}});var ys=B((G5,ed)=>{b();ed.exports=P2;function P2(t,e){if(vs("noDeprecation"))return t;var r=!1;function i(){if(!r){if(vs("throwDeprecation"))throw new Error(e);vs("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return i}function vs(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var bs=B(($5,ad)=>{"use strict";b();ad.exports=Ne;function rd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){u_(e,t)}}var qi;Ne.WritableState=Rn;var U2={deprecate:ys()},id=kf(),ra=rt().Buffer,L2=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function N2(t){return ra.from(t)}function F2(t){return ra.isBuffer(t)||t instanceof L2}var ms=ds(),j2=ps(),H2=j2.getHighWaterMark,fr=Gr().codes,W2=fr.ERR_INVALID_ARG_TYPE,K2=fr.ERR_METHOD_NOT_IMPLEMENTED,G2=fr.ERR_MULTIPLE_CALLBACK,V2=fr.ERR_STREAM_CANNOT_PIPE,$2=fr.ERR_STREAM_DESTROYED,z2=fr.ERR_STREAM_NULL_VALUES,Z2=fr.ERR_STREAM_WRITE_AFTER_END,J2=fr.ERR_UNKNOWN_ENCODING,Ti=ms.errorOrDestroy;Lr()(Ne,id);function Y2(){}function Rn(t,e,r){qi=qi||Vr(),t=t||{},typeof r!="boolean"&&(r=e instanceof qi),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=H2(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){n_(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new rd(this)}Rn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Rn.prototype,"buffer",{get:U2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ta;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ta=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ne,Symbol.hasInstance,{value:function(e){return ta.call(this,e)?!0:this!==Ne?!1:e&&e._writableState instanceof Rn}})):ta=function(e){return e instanceof this};function Ne(t){qi=qi||Vr();var e=this instanceof qi;if(!e&&!ta.call(Ne,this))return new Ne(t);this._writableState=new Rn(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),id.call(this)}Ne.prototype.pipe=function(){Ti(this,new V2)};function X2(t,e){var r=new Z2;Ti(t,r),M.default.nextTick(e,r)}function Q2(t,e,r,i){var n;return r===null?n=new z2:typeof r!="string"&&!e.objectMode&&(n=new W2("chunk",["string","Buffer"],r)),n?(Ti(t,n),M.default.nextTick(i,n),!1):!0}Ne.prototype.write=function(t,e,r){var i=this._writableState,n=!1,a=!i.objectMode&&F2(t);return a&&!ra.isBuffer(t)&&(t=N2(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=Y2),i.ending?X2(this,r):(a||Q2(this,i,t,r))&&(i.pendingcb++,n=t_(this,i,a,t,e,r)),n};Ne.prototype.cork=function(){this._writableState.corked++};Ne.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&nd(this,t))};Ne.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new J2(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function e_(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ra.from(e,r)),e}Object.defineProperty(Ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t_(t,e,r,i,n,a){if(!r){var f=e_(e,i,n);i!==f&&(r=!0,n="buffer",i=f)}var v=e.objectMode?1:i.length;e.length+=v;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else gs(t,e,!1,v,i,n,a);return w}function gs(t,e,r,i,n,a,f){e.writelen=i,e.writecb=f,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new $2("write")):r?t._writev(n,e.onwrite):t._write(n,a,e.onwrite),e.sync=!1}function r_(t,e,r,i,n){--e.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(An,t,e),t._writableState.errorEmitted=!0,Ti(t,i)):(n(i),t._writableState.errorEmitted=!0,Ti(t,i),An(t,e))}function i_(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function n_(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new G2;if(i_(r),e)r_(t,r,i,e,n);else{var a=od(r)||t.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&nd(t,r),i?M.default.nextTick(td,t,r,a,n):td(t,r,a,n)}}function td(t,e,r,i){r||o_(t,e),e.pendingcb--,i(),An(t,e)}function o_(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function nd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),a=e.corkedRequestsFree;a.entry=r;for(var f=0,v=!0;r;)n[f]=r,r.isBuf||(v=!1),r=r.next,f+=1;n.allBuffers=v,gs(t,e,!0,e.length,n,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new rd(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(gs(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Ne.prototype._write=function(t,e,r){r(new K2("_write()"))};Ne.prototype._writev=null;Ne.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||s_(this,i,r),this};Object.defineProperty(Ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function od(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function a_(t,e){t._final(function(r){e.pendingcb--,r&&Ti(t,r),e.prefinished=!0,t.emit("prefinish"),An(t,e)})}function f_(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,M.default.nextTick(a_,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function An(t,e){var r=od(e);if(r&&(f_(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function s_(t,e,r){e.ending=!0,An(t,e),r&&(e.finished?M.default.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function u_(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ne.prototype.destroy=ms.destroy;Ne.prototype._undestroy=ms.undestroy;Ne.prototype._destroy=function(t,e){e(t)}});var Vr=B((Z5,sd)=>{"use strict";b();var h_=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};sd.exports=Pt;var fd=xs(),_s=bs();Lr()(Pt,fd);for(ws=h_(_s.prototype),ia=0;ia<ws.length;ia++)na=ws[ia],Pt.prototype[na]||(Pt.prototype[na]=_s.prototype[na]);var ws,na,ia;function Pt(t){if(!(this instanceof Pt))return new Pt(t);fd.call(this,t),_s.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l_)))}Object.defineProperty(Pt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l_(){this._writableState.ended||M.default.nextTick(c_,this)}function c_(t){t.end()}Object.defineProperty(Pt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var ld=B((Ms,hd)=>{b();var oa=rt(),Gt=oa.Buffer;function ud(t,e){for(var r in t)e[r]=t[r]}Gt.from&&Gt.alloc&&Gt.allocUnsafe&&Gt.allocUnsafeSlow?hd.exports=oa:(ud(oa,Ms),Ms.Buffer=ki);function ki(t,e,r){return Gt(t,e,r)}ud(Gt,ki);ki.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Gt(t,e,r)};ki.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Gt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};ki.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Gt(t)};ki.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return oa.SlowBuffer(t)}});var Ii=B(dd=>{"use strict";b();var Ss=ld().Buffer,cd=Ss.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d_(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function p_(t){var e=d_(t);if(typeof e!="string"&&(Ss.isEncoding===cd||!cd(t)))throw new Error("Unknown encoding: "+t);return e||t}dd.StringDecoder=qn;function qn(t){this.encoding=p_(t);var e;switch(this.encoding){case"utf16le":this.text=w_,this.end=__,e=4;break;case"utf8":this.fillLast=g_,e=4;break;case"base64":this.text=x_,this.end=M_,e=3;break;default:this.write=E_,this.end=S_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ss.allocUnsafe(e)}qn.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};qn.prototype.end=b_;qn.prototype.text=m_;qn.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Es(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function v_(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Es(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Es(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Es(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function y_(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function g_(t){var e=this.lastTotal-this.lastNeed,r=y_(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function m_(t,e){var r=v_(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function b_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function w_(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function __(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function x_(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function M_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function E_(t){return t.toString(this.encoding)}function S_(t){return t&&t.length?this.write(t):""}});var aa=B((eB,yd)=>{"use strict";b();var pd=Gr().codes.ERR_STREAM_PREMATURE_CLOSE;function B_(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function A_(){}function R_(t){return t.setHeader&&typeof t.abort=="function"}function vd(t,e,r){if(typeof e=="function")return vd(t,null,e);e||(e={}),r=B_(r||A_);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,a=function(){t.writable||v()},f=t._writableState&&t._writableState.finished,v=function(){n=!1,f=!0,i||r.call(t)},w=t._readableState&&t._readableState.endEmitted,S=function(){i=!1,w=!0,n||r.call(t)},A=function(P){r.call(t,P)},q=function(){var P;if(i&&!w)return(!t._readableState||!t._readableState.ended)&&(P=new pd),r.call(t,P);if(n&&!f)return(!t._writableState||!t._writableState.ended)&&(P=new pd),r.call(t,P)},T=function(){t.req.on("finish",v)};return R_(t)?(t.on("complete",v),t.on("abort",q),t.req?T():t.on("request",T)):n&&!t._writableState&&(t.on("end",a),t.on("close",a)),t.on("end",S),t.on("finish",v),e.error!==!1&&t.on("error",A),t.on("close",q),function(){t.removeListener("complete",v),t.removeListener("abort",q),t.removeListener("request",T),t.req&&t.req.removeListener("finish",v),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",v),t.removeListener("end",S),t.removeListener("error",A),t.removeListener("close",q)}}yd.exports=vd});var md=B((rB,gd)=>{"use strict";b();var fa;function sr(t,e,r){return e=q_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function q_(t){var e=T_(t,"string");return typeof e=="symbol"?e:String(e)}function T_(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var k_=aa(),ur=Symbol("lastResolve"),$r=Symbol("lastReject"),Tn=Symbol("error"),sa=Symbol("ended"),zr=Symbol("lastPromise"),Bs=Symbol("handlePromise"),Zr=Symbol("stream");function hr(t,e){return{value:t,done:e}}function I_(t){var e=t[ur];if(e!==null){var r=t[Zr].read();r!==null&&(t[zr]=null,t[ur]=null,t[$r]=null,e(hr(r,!1)))}}function O_(t){M.default.nextTick(I_,t)}function C_(t,e){return function(r,i){t.then(function(){if(e[sa]){r(hr(void 0,!0));return}e[Bs](r,i)},i)}}var D_=Object.getPrototypeOf(function(){}),P_=Object.setPrototypeOf((fa={get stream(){return this[Zr]},next:function(){var e=this,r=this[Tn];if(r!==null)return Promise.reject(r);if(this[sa])return Promise.resolve(hr(void 0,!0));if(this[Zr].destroyed)return new Promise(function(f,v){M.default.nextTick(function(){e[Tn]?v(e[Tn]):f(hr(void 0,!0))})});var i=this[zr],n;if(i)n=new Promise(C_(i,this));else{var a=this[Zr].read();if(a!==null)return Promise.resolve(hr(a,!1));n=new Promise(this[Bs])}return this[zr]=n,n}},sr(fa,Symbol.asyncIterator,function(){return this}),sr(fa,"return",function(){var e=this;return new Promise(function(r,i){e[Zr].destroy(null,function(n){if(n){i(n);return}r(hr(void 0,!0))})})}),fa),D_),U_=function(e){var r,i=Object.create(P_,(r={},sr(r,Zr,{value:e,writable:!0}),sr(r,ur,{value:null,writable:!0}),sr(r,$r,{value:null,writable:!0}),sr(r,Tn,{value:null,writable:!0}),sr(r,sa,{value:e._readableState.endEmitted,writable:!0}),sr(r,Bs,{value:function(a,f){var v=i[Zr].read();v?(i[zr]=null,i[ur]=null,i[$r]=null,a(hr(v,!1))):(i[ur]=a,i[$r]=f)},writable:!0}),r));return i[zr]=null,k_(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[$r];a!==null&&(i[zr]=null,i[ur]=null,i[$r]=null,a(n)),i[Tn]=n;return}var f=i[ur];f!==null&&(i[zr]=null,i[ur]=null,i[$r]=null,f(hr(void 0,!0))),i[sa]=!0}),e.on("readable",O_.bind(null,i)),i};gd.exports=U_});var wd=B((nB,bd)=>{b();bd.exports=function(){throw new Error("Readable.from is not available in the browser")}});var xs=B((fB,Td)=>{"use strict";b();Td.exports=Te;var Oi;Te.ReadableState=Ed;var aB=bi().EventEmitter,Md=function(e,r){return e.listeners(r).length},In=kf(),ua=rt().Buffer,L_=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function N_(t){return ua.from(t)}function F_(t){return ua.isBuffer(t)||t instanceof L_}var As=Bn(),Be;As&&As.debuglog?Be=As.debuglog("stream"):Be=function(){};var j_=$c(),Cs=ds(),H_=ps(),W_=H_.getHighWaterMark,ha=Gr().codes,K_=ha.ERR_INVALID_ARG_TYPE,G_=ha.ERR_STREAM_PUSH_AFTER_EOF,V_=ha.ERR_METHOD_NOT_IMPLEMENTED,$_=ha.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ci,Rs,qs;Lr()(Te,In);var kn=Cs.errorOrDestroy,Ts=["error","close","destroy","pause","resume"];function z_(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Ed(t,e,r){Oi=Oi||Vr(),t=t||{},typeof r!="boolean"&&(r=e instanceof Oi),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=W_(this,t,"readableHighWaterMark",r),this.buffer=new j_,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=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ci||(Ci=Ii().StringDecoder),this.decoder=new Ci(t.encoding),this.encoding=t.encoding)}function Te(t){if(Oi=Oi||Vr(),!(this instanceof Te))return new Te(t);var e=this instanceof Oi;this._readableState=new Ed(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),In.call(this)}Object.defineProperty(Te.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Te.prototype.destroy=Cs.destroy;Te.prototype._undestroy=Cs.undestroy;Te.prototype._destroy=function(t,e){e(t)};Te.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=ua.from(t,e),e=""),i=!0),Sd(this,t,e,!1,i)};Te.prototype.unshift=function(t){return Sd(this,t,null,!0,!1)};function Sd(t,e,r,i,n){Be("readableAddChunk",e);var a=t._readableState;if(e===null)a.reading=!1,Y_(t,a);else{var f;if(n||(f=Z_(a,e)),f)kn(t,f);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==ua.prototype&&(e=N_(e)),i)a.endEmitted?kn(t,new $_):ks(t,a,e,!0);else if(a.ended)kn(t,new G_);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?ks(t,a,e,!1):Os(t,a)):ks(t,a,e,!1)}else i||(a.reading=!1,Os(t,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function ks(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&la(t)),Os(t,e)}function Z_(t,e){var r;return!F_(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new K_("chunk",["string","Buffer","Uint8Array"],e)),r}Te.prototype.isPaused=function(){return this._readableState.flowing===!1};Te.prototype.setEncoding=function(t){Ci||(Ci=Ii().StringDecoder);var e=new Ci(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var _d=1073741824;function J_(t){return t>=_d?t=_d:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function xd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=J_(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Te.prototype.read=function(t){Be("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Be("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Is(this):la(this),null;if(t=xd(t,e),t===0&&e.ended)return e.length===0&&Is(this),null;var i=e.needReadable;Be("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Be("length less than watermark",i)),e.ended||e.reading?(i=!1,Be("reading or ended",i)):i&&(Be("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=xd(r,e)));var n;return t>0?n=Rd(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Is(this)),n!==null&&this.emit("data",n),n};function Y_(t,e){if(Be("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?la(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Bd(t)))}}function la(t){var e=t._readableState;Be("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Be("emitReadable",e.flowing),e.emittedReadable=!0,M.default.nextTick(Bd,t))}function Bd(t){var e=t._readableState;Be("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Ds(t)}function Os(t,e){e.readingMore||(e.readingMore=!0,M.default.nextTick(X_,t,e))}function X_(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(Be("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Te.prototype._read=function(t){kn(this,new V_("_read()"))};Te.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Be("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,a=n?v:H;i.endEmitted?M.default.nextTick(a):r.once("end",a),t.on("unpipe",f);function f(Me,F){Be("onunpipe"),Me===r&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,A())}function v(){Be("onend"),t.end()}var w=Q_(r);t.on("drain",w);var S=!1;function A(){Be("cleanup"),t.removeListener("close",O),t.removeListener("finish",P),t.removeListener("drain",w),t.removeListener("error",T),t.removeListener("unpipe",f),r.removeListener("end",v),r.removeListener("end",H),r.removeListener("data",q),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}r.on("data",q);function q(Me){Be("ondata");var F=t.write(Me);Be("dest.write",F),F===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&qd(i.pipes,t)!==-1)&&!S&&(Be("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function T(Me){Be("onerror",Me),H(),t.removeListener("error",T),Md(t,"error")===0&&kn(t,Me)}z_(t,"error",T);function O(){t.removeListener("finish",P),H()}t.once("close",O);function P(){Be("onfinish"),t.removeListener("close",O),H()}t.once("finish",P);function H(){Be("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Be("pipe resume"),r.resume()),t};function Q_(t){return function(){var r=t._readableState;Be("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Md(t,"data")&&(r.flowing=!0,Ds(t))}}Te.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var f=qd(e.pipes,t);return f===-1?this:(e.pipes.splice(f,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Te.prototype.on=function(t,e){var r=In.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Be("on readable",i.length,i.reading),i.length?la(this):i.reading||M.default.nextTick(e6,this)),r};Te.prototype.addListener=Te.prototype.on;Te.prototype.removeListener=function(t,e){var r=In.prototype.removeListener.call(this,t,e);return t==="readable"&&M.default.nextTick(Ad,this),r};Te.prototype.removeAllListeners=function(t){var e=In.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&M.default.nextTick(Ad,this),e};function Ad(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function e6(t){Be("readable nexttick read 0"),t.read(0)}Te.prototype.resume=function(){var t=this._readableState;return t.flowing||(Be("resume"),t.flowing=!t.readableListening,t6(this,t)),t.paused=!1,this};function t6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,M.default.nextTick(r6,t,e))}function r6(t,e){Be("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Ds(t),e.flowing&&!e.reading&&t.read(0)}Te.prototype.pause=function(){return Be("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Be("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ds(t){var e=t._readableState;for(Be("flow",e.flowing);e.flowing&&t.read()!==null;);}Te.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Be("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();f&&f.length&&e.push(f)}e.push(null)}),t.on("data",function(f){if(Be("wrapped data"),r.decoder&&(f=r.decoder.write(f)),!(r.objectMode&&f==null)&&!(!r.objectMode&&(!f||!f.length))){var v=e.push(f);v||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(v){return function(){return t[v].apply(t,arguments)}})(n));for(var a=0;a<Ts.length;a++)t.on(Ts[a],this.emit.bind(this,Ts[a]));return this._read=function(f){Be("wrapped _read",f),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(Te.prototype[Symbol.asyncIterator]=function(){return Rs===void 0&&(Rs=md()),Rs(this)});Object.defineProperty(Te.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Te.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Te.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});Te._fromList=Rd;Object.defineProperty(Te.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Rd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Is(t){var e=t._readableState;Be("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.default.nextTick(i6,e,t))}function i6(t,e){if(Be("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(Te.from=function(t,e){return qs===void 0&&(qs=wd()),qs(Te,t,e)});function qd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Ps=B((uB,Id)=>{"use strict";b();Id.exports=Vt;var ca=Gr().codes,n6=ca.ERR_METHOD_NOT_IMPLEMENTED,o6=ca.ERR_MULTIPLE_CALLBACK,a6=ca.ERR_TRANSFORM_ALREADY_TRANSFORMING,f6=ca.ERR_TRANSFORM_WITH_LENGTH_0,da=Vr();Lr()(Vt,da);function s6(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new o6);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Vt(t){if(!(this instanceof Vt))return new Vt(t);da.call(this,t),this._transformState={afterTransform:s6.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",u6)}function u6(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){kd(t,e,r)}):kd(this,null,null)}Vt.prototype.push=function(t,e){return this._transformState.needTransform=!1,da.prototype.push.call(this,t,e)};Vt.prototype._transform=function(t,e,r){r(new n6("_transform()"))};Vt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Vt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Vt.prototype._destroy=function(t,e){da.prototype._destroy.call(this,t,function(r){e(r)})};function kd(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new f6;if(t._transformState.transforming)throw new a6;return t.push(null)}});var Dd=B((lB,Cd)=>{"use strict";b();Cd.exports=On;var Od=Ps();Lr()(On,Od);function On(t){if(!(this instanceof On))return new On(t);Od.call(this,t)}On.prototype._transform=function(t,e,r){r(null,t)}});var Fd=B((dB,Nd)=>{"use strict";b();var Us;function h6(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Ld=Gr().codes,l6=Ld.ERR_MISSING_ARGS,c6=Ld.ERR_STREAM_DESTROYED;function Pd(t){if(t)throw t}function d6(t){return t.setHeader&&typeof t.abort=="function"}function p6(t,e,r,i){i=h6(i);var n=!1;t.on("close",function(){n=!0}),Us===void 0&&(Us=aa()),Us(t,{readable:e,writable:r},function(f){if(f)return i(f);n=!0,i()});var a=!1;return function(f){if(!n&&!a){if(a=!0,d6(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(f||new c6("pipe"))}}}function Ud(t){t()}function v6(t,e){return t.pipe(e)}function y6(t){return!t.length||typeof t[t.length-1]!="function"?Pd:t.pop()}function g6(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=y6(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new l6("streams");var n,a=e.map(function(f,v){var w=v<e.length-1,S=v>0;return p6(f,w,S,function(A){n||(n=A),A&&a.forEach(Ud),!w&&(a.forEach(Ud),i(n))})});return e.reduce(v6)}Nd.exports=g6});var Ns=B((vB,jd)=>{b();jd.exports=ct;var Ls=bi().EventEmitter,m6=Lr();m6(ct,Ls);ct.Readable=xs();ct.Writable=bs();ct.Duplex=Vr();ct.Transform=Ps();ct.PassThrough=Dd();ct.finished=aa();ct.pipeline=Fd();ct.Stream=ct;function ct(){Ls.call(this)}ct.prototype.pipe=function(t,e){var r=this;function i(A){t.writable&&t.write(A)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",f),r.on("close",v));var a=!1;function f(){a||(a=!0,t.end())}function v(){a||(a=!0,typeof t.destroy=="function"&&t.destroy())}function w(A){if(S(),Ls.listenerCount(this,"error")===0)throw A}r.on("error",w),t.on("error",w);function S(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",f),r.removeListener("close",v),r.removeListener("error",w),t.removeListener("error",w),r.removeListener("end",S),r.removeListener("close",S),t.removeListener("close",S)}return r.on("end",S),r.on("close",S),t.on("close",S),t.emit("pipe",r),t}});var Hd=B((gB,Fs)=>{b();typeof Object.create=="function"?Fs.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Fs.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Gd=B((bB,Kd)=>{"use strict";b();var Ut=Ee().Buffer,Wd=Ns().Transform,b6=Hd();function lr(t){Wd.call(this),this._block=Ut.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}b6(lr,Wd);lr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};lr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};var w6=typeof Uint8Array<"u",_6=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Ut.prototype instanceof Uint8Array||Ut.TYPED_ARRAY_SUPPORT);function x6(t,e){if(t instanceof Ut)return t;if(typeof t=="string")return Ut.from(t,e);if(_6&&ArrayBuffer.isView(t)){if(t.byteLength===0)return Ut.alloc(0);var r=Ut.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(w6&&t instanceof Uint8Array||Ut.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Ut.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}lr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=x6(t,e);for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,f=t.length*8;f>0;++a)this._length[a]+=f,f=this._length[a]/4294967296|0,f>0&&(this._length[a]-=4294967296*f);return this};lr.prototype._update=function(){throw new Error("_update is not implemented")};lr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};lr.prototype._digest=function(){throw new Error("_digest is not implemented")};Kd.exports=lr});var ya=B((_B,$d)=>{"use strict";b();var M6=De(),Vd=Gd(),E6=Ee().Buffer,S6=new Array(16);function pa(){Vd.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}M6(pa,Vd);pa.prototype._update=function(){for(var t=S6,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,i=this._b,n=this._c,a=this._d;r=Ye(r,i,n,a,t[0],3614090360,7),a=Ye(a,r,i,n,t[1],3905402710,12),n=Ye(n,a,r,i,t[2],606105819,17),i=Ye(i,n,a,r,t[3],3250441966,22),r=Ye(r,i,n,a,t[4],4118548399,7),a=Ye(a,r,i,n,t[5],1200080426,12),n=Ye(n,a,r,i,t[6],2821735955,17),i=Ye(i,n,a,r,t[7],4249261313,22),r=Ye(r,i,n,a,t[8],1770035416,7),a=Ye(a,r,i,n,t[9],2336552879,12),n=Ye(n,a,r,i,t[10],4294925233,17),i=Ye(i,n,a,r,t[11],2304563134,22),r=Ye(r,i,n,a,t[12],1804603682,7),a=Ye(a,r,i,n,t[13],4254626195,12),n=Ye(n,a,r,i,t[14],2792965006,17),i=Ye(i,n,a,r,t[15],1236535329,22),r=Xe(r,i,n,a,t[1],4129170786,5),a=Xe(a,r,i,n,t[6],3225465664,9),n=Xe(n,a,r,i,t[11],643717713,14),i=Xe(i,n,a,r,t[0],3921069994,20),r=Xe(r,i,n,a,t[5],3593408605,5),a=Xe(a,r,i,n,t[10],38016083,9),n=Xe(n,a,r,i,t[15],3634488961,14),i=Xe(i,n,a,r,t[4],3889429448,20),r=Xe(r,i,n,a,t[9],568446438,5),a=Xe(a,r,i,n,t[14],3275163606,9),n=Xe(n,a,r,i,t[3],4107603335,14),i=Xe(i,n,a,r,t[8],1163531501,20),r=Xe(r,i,n,a,t[13],2850285829,5),a=Xe(a,r,i,n,t[2],4243563512,9),n=Xe(n,a,r,i,t[7],1735328473,14),i=Xe(i,n,a,r,t[12],2368359562,20),r=Qe(r,i,n,a,t[5],4294588738,4),a=Qe(a,r,i,n,t[8],2272392833,11),n=Qe(n,a,r,i,t[11],1839030562,16),i=Qe(i,n,a,r,t[14],4259657740,23),r=Qe(r,i,n,a,t[1],2763975236,4),a=Qe(a,r,i,n,t[4],1272893353,11),n=Qe(n,a,r,i,t[7],4139469664,16),i=Qe(i,n,a,r,t[10],3200236656,23),r=Qe(r,i,n,a,t[13],681279174,4),a=Qe(a,r,i,n,t[0],3936430074,11),n=Qe(n,a,r,i,t[3],3572445317,16),i=Qe(i,n,a,r,t[6],76029189,23),r=Qe(r,i,n,a,t[9],3654602809,4),a=Qe(a,r,i,n,t[12],3873151461,11),n=Qe(n,a,r,i,t[15],530742520,16),i=Qe(i,n,a,r,t[2],3299628645,23),r=et(r,i,n,a,t[0],4096336452,6),a=et(a,r,i,n,t[7],1126891415,10),n=et(n,a,r,i,t[14],2878612391,15),i=et(i,n,a,r,t[5],4237533241,21),r=et(r,i,n,a,t[12],1700485571,6),a=et(a,r,i,n,t[3],2399980690,10),n=et(n,a,r,i,t[10],4293915773,15),i=et(i,n,a,r,t[1],2240044497,21),r=et(r,i,n,a,t[8],1873313359,6),a=et(a,r,i,n,t[15],4264355552,10),n=et(n,a,r,i,t[6],2734768916,15),i=et(i,n,a,r,t[13],1309151649,21),r=et(r,i,n,a,t[4],4149444226,6),a=et(a,r,i,n,t[11],3174756917,10),n=et(n,a,r,i,t[2],718787259,15),i=et(i,n,a,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0};pa.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=E6.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function va(t,e){return t<<e|t>>>32-e}function Ye(t,e,r,i,n,a,f){return va(t+(e&r|~e&i)+n+a|0,f)+e|0}function Xe(t,e,r,i,n,a,f){return va(t+(e&i|r&~i)+n+a|0,f)+e|0}function Qe(t,e,r,i,n,a,f){return va(t+(e^r^i)+n+a|0,f)+e|0}function et(t,e,r,i,n,a,f){return va(t+(r^(e|~i))+n+a|0,f)+e|0}$d.exports=pa});var Hs=B((MB,js)=>{b();typeof Object.create=="function"?js.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:js.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Zd=B((SB,zd)=>{b();var B6={}.toString;zd.exports=Array.isArray||function(t){return B6.call(t)=="[object Array]"}});var Yd=B((AB,Jd)=>{"use strict";b();var A6=Nr(),R6=Hr(),q6=R6("TypedArray.prototype.buffer",!0),T6=is();Jd.exports=q6||function(e){if(!T6(e))throw new A6("Not a Typed Array");return e.buffer}});var Cn=B((qB,Qd)=>{"use strict";b();var _t=Ee().Buffer,k6=Zd(),I6=Yd(),O6=ArrayBuffer.isView||function(e){try{return I6(e),!0}catch{return!1}},C6=typeof Uint8Array<"u",Xd=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",D6=Xd&&(_t.prototype instanceof Uint8Array||_t.TYPED_ARRAY_SUPPORT);Qd.exports=function(e,r){if(_t.isBuffer(e))return e.constructor&&!("isBuffer"in e)?_t.from(e):e;if(typeof e=="string")return _t.from(e,r);if(Xd&&O6(e)){if(e.byteLength===0)return _t.alloc(0);if(D6){var i=_t.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var n=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=_t.from(n);if(a.length===e.byteLength)return a}if(C6&&e instanceof Uint8Array)return _t.from(e);var f=k6(e);if(f)for(var v=0;v<e.length;v+=1){var w=e[v];if(typeof w!="number"||w<0||w>255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(f||_t.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return _t.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var ip=B((kB,rp)=>{"use strict";b();var P6=Ee().Buffer,U6=Cn(),tp=typeof Uint8Array<"u",L6=tp&&typeof ArrayBuffer<"u",ep=L6&&ArrayBuffer.isView;rp.exports=function(t,e){if(typeof t=="string"||P6.isBuffer(t)||tp&&t instanceof Uint8Array||ep&&ep(t))return U6(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Dn=B((OB,Ws)=>{"use strict";b();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?Ws.exports={nextTick:N6}:Ws.exports=M.default;function N6(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,f;switch(n){case 0:case 1:return M.default.nextTick(t);case 2:return M.default.nextTick(function(){t.call(null,e)});case 3:return M.default.nextTick(function(){t.call(null,e,r)});case 4:return M.default.nextTick(function(){t.call(null,e,r,i)});default:for(a=new Array(n-1),f=0;f<a.length;)a[f++]=arguments[f];return M.default.nextTick(function(){t.apply(null,a)})}}});var op=B((DB,np)=>{b();var F6={}.toString;np.exports=Array.isArray||function(t){return F6.call(t)=="[object Array]"}});var Ks=B((UB,ap)=>{b();ap.exports=bi().EventEmitter});var ma=B((Gs,sp)=>{b();var ga=rt(),$t=ga.Buffer;function fp(t,e){for(var r in t)e[r]=t[r]}$t.from&&$t.alloc&&$t.allocUnsafe&&$t.allocUnsafeSlow?sp.exports=ga:(fp(ga,Gs),Gs.Buffer=Di);function Di(t,e,r){return $t(t,e,r)}fp($t,Di);Di.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return $t(t,e,r)};Di.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=$t(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Di.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return $t(t)};Di.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ga.SlowBuffer(t)}});var Pi=B(tt=>{b();function j6(t){return Array.isArray?Array.isArray(t):ba(t)==="[object Array]"}tt.isArray=j6;function H6(t){return typeof t=="boolean"}tt.isBoolean=H6;function W6(t){return t===null}tt.isNull=W6;function K6(t){return t==null}tt.isNullOrUndefined=K6;function G6(t){return typeof t=="number"}tt.isNumber=G6;function V6(t){return typeof t=="string"}tt.isString=V6;function $6(t){return typeof t=="symbol"}tt.isSymbol=$6;function z6(t){return t===void 0}tt.isUndefined=z6;function Z6(t){return ba(t)==="[object RegExp]"}tt.isRegExp=Z6;function J6(t){return typeof t=="object"&&t!==null}tt.isObject=J6;function Y6(t){return ba(t)==="[object Date]"}tt.isDate=Y6;function X6(t){return ba(t)==="[object Error]"||t instanceof Error}tt.isError=X6;function Q6(t){return typeof t=="function"}tt.isFunction=Q6;function ex(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}tt.isPrimitive=ex;tt.isBuffer=rt().Buffer.isBuffer;function ba(t){return Object.prototype.toString.call(t)}});var hp=B((HB,Vs)=>{"use strict";b();function tx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var up=ma().Buffer,Pn=Bn();function rx(t,e,r){t.copy(e,r)}Vs.exports=(function(){function t(){tx(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return up.alloc(0);for(var i=up.allocUnsafe(r>>>0),n=this.head,a=0;n;)rx(n.data,i,a),a+=n.data.length,n=n.next;return i},t})();Pn&&Pn.inspect&&Pn.inspect.custom&&(Vs.exports.prototype[Pn.inspect.custom]=function(){var t=Pn.inspect({length:this.length});return this.constructor.name+" "+t})});var $s=B((KB,lp)=>{"use strict";b();var wa=Dn();function ix(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,wa.nextTick(_a,this,t)):wa.nextTick(_a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,wa.nextTick(_a,r,a)):wa.nextTick(_a,r,a):e&&e(a)}),this)}function nx(){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 _a(t,e){t.emit("error",e)}lp.exports={destroy:ix,undestroy:nx}});var Zs=B((VB,bp)=>{"use strict";b();var Jr=Dn();bp.exports=We;function dp(t){var e=this;this.next=null,this.entry=null,this.finish=function(){xx(e,t)}}var ox=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Jr.nextTick,Ui;We.WritableState=Ln;var pp=Object.create(Pi());pp.inherits=De();var ax={deprecate:ys()},vp=Ks(),Ma=ma().Buffer,fx=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function sx(t){return Ma.from(t)}function ux(t){return Ma.isBuffer(t)||t instanceof fx}var yp=$s();pp.inherits(We,vp);function hx(){}function Ln(t,e){Ui=Ui||Yr(),t=t||{};var r=e instanceof Ui;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=t.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(v){gx(e,v)},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 dp(this)}Ln.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ln.prototype,"buffer",{get:ax.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var xa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(xa=Function.prototype[Symbol.hasInstance],Object.defineProperty(We,Symbol.hasInstance,{value:function(t){return xa.call(this,t)?!0:this!==We?!1:t&&t._writableState instanceof Ln}})):xa=function(t){return t instanceof this};function We(t){if(Ui=Ui||Yr(),!xa.call(We,this)&&!(this instanceof Ui))return new We(t);this._writableState=new Ln(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),vp.call(this)}We.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function lx(t,e){var r=new Error("write after end");t.emit("error",r),Jr.nextTick(e,r)}function cx(t,e,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),Jr.nextTick(i,a),n=!1),n}We.prototype.write=function(t,e,r){var i=this._writableState,n=!1,a=!i.objectMode&&ux(t);return a&&!Ma.isBuffer(t)&&(t=sx(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=hx),i.ended?lx(this,r):(a||cx(this,i,t,r))&&(i.pendingcb++,n=px(this,i,a,t,e,r)),n};We.prototype.cork=function(){var t=this._writableState;t.corked++};We.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&gp(this,t))};We.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function dx(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Ma.from(e,r)),e}Object.defineProperty(We.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function px(t,e,r,i,n,a){if(!r){var f=dx(e,i,n);i!==f&&(r=!0,n="buffer",i=f)}var v=e.objectMode?1:i.length;e.length+=v;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else zs(t,e,!1,v,i,n,a);return w}function zs(t,e,r,i,n,a,f){e.writelen=i,e.writecb=f,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,a,e.onwrite),e.sync=!1}function vx(t,e,r,i,n){--e.pendingcb,r?(Jr.nextTick(n,i),Jr.nextTick(Un,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Un(t,e))}function yx(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function gx(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(yx(r),e)vx(t,r,i,e,n);else{var a=mp(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&gp(t,r),i?ox(cp,t,r,a,n):cp(t,r,a,n)}}function cp(t,e,r,i){r||mx(t,e),e.pendingcb--,i(),Un(t,e)}function mx(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function gp(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),a=e.corkedRequestsFree;a.entry=r;for(var f=0,v=!0;r;)n[f]=r,r.isBuf||(v=!1),r=r.next,f+=1;n.allBuffers=v,zs(t,e,!0,e.length,n,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new dp(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(zs(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}We.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};We.prototype._writev=null;We.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||_x(this,i,r)};function mp(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function bx(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Un(t,e)})}function wx(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Jr.nextTick(bx,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Un(t,e){var r=mp(e);return r&&(wx(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function _x(t,e,r){e.ending=!0,Un(t,e),r&&(e.finished?Jr.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function xx(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(We.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});We.prototype.destroy=yp.destroy;We.prototype._undestroy=yp.undestroy;We.prototype._destroy=function(t,e){this.end(),e(t)}});var Yr=B((zB,Mp)=>{"use strict";b();var wp=Dn(),Mx=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Mp.exports=zt;var _p=Object.create(Pi());_p.inherits=De();var xp=Xs(),Ys=Zs();_p.inherits(zt,xp);for(Js=Mx(Ys.prototype),Ea=0;Ea<Js.length;Ea++)Sa=Js[Ea],zt.prototype[Sa]||(zt.prototype[Sa]=Ys.prototype[Sa]);var Js,Sa,Ea;function zt(t){if(!(this instanceof zt))return new zt(t);xp.call(this,t),Ys.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Ex)}Object.defineProperty(zt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ex(){this.allowHalfOpen||this._writableState.ended||wp.nextTick(Sx,this)}function Sx(t){t.end()}Object.defineProperty(zt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});zt.prototype._destroy=function(t,e){this.push(null),this.end(),wp.nextTick(e,t)}});var Xs=B((YB,Dp)=>{"use strict";b();var Ni=Dn();Dp.exports=Pe;var Bx=op(),Nn;Pe.ReadableState=Tp;var JB=bi().EventEmitter,Ap=function(t,e){return t.listeners(e).length},iu=Ks(),Fn=ma().Buffer,Ax=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Rx(t){return Fn.from(t)}function qx(t){return Fn.isBuffer(t)||t instanceof Ax}var Rp=Object.create(Pi());Rp.inherits=De();var Qs=Bn(),ke=void 0;Qs&&Qs.debuglog?ke=Qs.debuglog("stream"):ke=function(){};var Tx=hp(),qp=$s(),Li;Rp.inherits(Pe,iu);var eu=["error","close","destroy","pause","resume"];function kx(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Bx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Tp(t,e){Nn=Nn||Yr(),t=t||{};var r=e instanceof Nn;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Tx,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Li||(Li=Ii().StringDecoder),this.decoder=new Li(t.encoding),this.encoding=t.encoding)}function Pe(t){if(Nn=Nn||Yr(),!(this instanceof Pe))return new Pe(t);this._readableState=new Tp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),iu.call(this)}Object.defineProperty(Pe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Pe.prototype.destroy=qp.destroy;Pe.prototype._undestroy=qp.undestroy;Pe.prototype._destroy=function(t,e){this.push(null),e(t)};Pe.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Fn.from(t,e),e=""),i=!0),kp(this,t,e,!1,i)};Pe.prototype.unshift=function(t){return kp(this,t,null,!0,!1)};function kp(t,e,r,i,n){var a=t._readableState;if(e===null)a.reading=!1,Dx(t,a);else{var f;n||(f=Ix(a,e)),f?t.emit("error",f):a.objectMode||e&&e.length>0?(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Fn.prototype&&(e=Rx(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):tu(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?tu(t,a,e,!1):Ip(t,a)):tu(t,a,e,!1))):i||(a.reading=!1)}return Ox(a)}function tu(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Ba(t)),Ip(t,e)}function Ix(t,e){var r;return!qx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Ox(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Pe.prototype.isPaused=function(){return this._readableState.flowing===!1};Pe.prototype.setEncoding=function(t){return Li||(Li=Ii().StringDecoder),this._readableState.decoder=new Li(t),this._readableState.encoding=t,this};var Ep=8388608;function Cx(t){return t>=Ep?t=Ep:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Sp(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Cx(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Pe.prototype.read=function(t){ke("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return ke("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ru(this):Ba(this),null;if(t=Sp(t,e),t===0&&e.ended)return e.length===0&&ru(this),null;var i=e.needReadable;ke("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,ke("length less than watermark",i)),e.ended||e.reading?(i=!1,ke("reading or ended",i)):i&&(ke("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Sp(r,e)));var n;return t>0?n=Op(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&ru(this)),n!==null&&this.emit("data",n),n};function Dx(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Ba(t)}}function Ba(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(ke("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ni.nextTick(Bp,t):Bp(t))}function Bp(t){ke("emit readable"),t.emit("readable"),nu(t)}function Ip(t,e){e.readingMore||(e.readingMore=!0,Ni.nextTick(Px,t,e))}function Px(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(ke("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Pe.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Pe.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,ke("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,a=n?v:Me;i.endEmitted?Ni.nextTick(a):r.once("end",a),t.on("unpipe",f);function f(F,K){ke("onunpipe"),F===r&&K&&K.hasUnpiped===!1&&(K.hasUnpiped=!0,A())}function v(){ke("onend"),t.end()}var w=Ux(r);t.on("drain",w);var S=!1;function A(){ke("cleanup"),t.removeListener("close",P),t.removeListener("finish",H),t.removeListener("drain",w),t.removeListener("error",O),t.removeListener("unpipe",f),r.removeListener("end",v),r.removeListener("end",Me),r.removeListener("data",T),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}var q=!1;r.on("data",T);function T(F){ke("ondata"),q=!1;var K=t.write(F);K===!1&&!q&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Cp(i.pipes,t)!==-1)&&!S&&(ke("false write response, pause",i.awaitDrain),i.awaitDrain++,q=!0),r.pause())}function O(F){ke("onerror",F),Me(),t.removeListener("error",O),Ap(t,"error")===0&&t.emit("error",F)}kx(t,"error",O);function P(){t.removeListener("finish",H),Me()}t.once("close",P);function H(){ke("onfinish"),t.removeListener("close",P),Me()}t.once("finish",H);function Me(){ke("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(ke("pipe resume"),r.resume()),t};function Ux(t){return function(){var e=t._readableState;ke("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Ap(t,"data")&&(e.flowing=!0,nu(t))}}Pe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var f=Cp(e.pipes,t);return f===-1?this:(e.pipes.splice(f,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Pe.prototype.on=function(t,e){var r=iu.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Ba(this):Ni.nextTick(Lx,this))}return r};Pe.prototype.addListener=Pe.prototype.on;function Lx(t){ke("readable nexttick read 0"),t.read(0)}Pe.prototype.resume=function(){var t=this._readableState;return t.flowing||(ke("resume"),t.flowing=!0,Nx(this,t)),this};function Nx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ni.nextTick(Fx,t,e))}function Fx(t,e){e.reading||(ke("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),nu(t),e.flowing&&!e.reading&&t.read(0)}Pe.prototype.pause=function(){return ke("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ke("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function nu(t){var e=t._readableState;for(ke("flow",e.flowing);e.flowing&&t.read()!==null;);}Pe.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(ke("wrapped end"),r.decoder&&!r.ended){var f=r.decoder.end();f&&f.length&&e.push(f)}e.push(null)}),t.on("data",function(f){if(ke("wrapped data"),r.decoder&&(f=r.decoder.write(f)),!(r.objectMode&&f==null)&&!(!r.objectMode&&(!f||!f.length))){var v=e.push(f);v||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(f){return function(){return t[f].apply(t,arguments)}})(n));for(var a=0;a<eu.length;a++)t.on(eu[a],this.emit.bind(this,eu[a]));return this._read=function(f){ke("wrapped _read",f),i&&(i=!1,t.resume())},this};Object.defineProperty(Pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Pe._fromList=Op;function Op(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=jx(t,e.buffer,e.decoder),r}function jx(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?Hx(t,e):Wx(t,e),i}function Hx(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var a=r.data,f=t>a.length?a.length:t;if(f===a.length?n+=a:n+=a.slice(0,t),t-=f,t===0){f===a.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(f));break}++i}return e.length-=i,n}function Wx(t,e){var r=Fn.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var a=i.data,f=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,f),t-=f,t===0){f===a.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(f));break}++n}return e.length-=n,r}function ru(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ni.nextTick(Kx,e,t))}function Kx(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Cp(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var ou=B((QB,Lp)=>{"use strict";b();Lp.exports=Zt;var Aa=Yr(),Up=Object.create(Pi());Up.inherits=De();Up.inherits(Zt,Aa);function Gx(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Zt(t){if(!(this instanceof Zt))return new Zt(t);Aa.call(this,t),this._transformState={afterTransform:Gx.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Vx)}function Vx(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Pp(t,e,r)}):Pp(this,null,null)}Zt.prototype.push=function(t,e){return this._transformState.needTransform=!1,Aa.prototype.push.call(this,t,e)};Zt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Zt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Zt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Zt.prototype._destroy=function(t,e){var r=this;Aa.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Pp(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Hp=B((tA,jp)=>{"use strict";b();jp.exports=jn;var Np=ou(),Fp=Object.create(Pi());Fp.inherits=De();Fp.inherits(jn,Np);function jn(t){if(!(this instanceof jn))return new jn(t);Np.call(this,t)}jn.prototype._transform=function(t,e,r){r(null,t)}});var Kp=B((Lt,Wp)=>{b();Lt=Wp.exports=Xs();Lt.Stream=Lt;Lt.Readable=Lt;Lt.Writable=Zs();Lt.Duplex=Yr();Lt.Transform=ou();Lt.PassThrough=Hp()});var $p=B((nA,Vp)=>{"use strict";b();var $x=Ee().Buffer,zx=ip(),Gp=Kp().Transform,Zx=Hs();function cr(t){Gp.call(this),this._block=$x.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Zx(cr,Gp);cr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};cr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};cr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=zx(t,e),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[n],a+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var f=0,v=r.length*8;v>0;++f)this._length[f]+=v,v=this._length[f]/4294967296|0,v>0&&(this._length[f]-=4294967296*v);return this};cr.prototype._update=function(){throw new Error("_update is not implemented")};cr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};cr.prototype._digest=function(){throw new Error("_digest is not implemented")};Vp.exports=cr});var qa=B((aA,ev)=>{"use strict";b();var au=rt().Buffer,Jx=Hs(),Qp=$p(),Yx=new Array(16),Hn=[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],Wn=[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],Kn=[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],Gn=[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],Vn=[0,1518500249,1859775393,2400959708,2840853838],$n=[1352829926,1548603684,1836072691,2053994217,0];function Xr(t,e){return t<<e|t>>>32-e}function zp(t,e,r,i,n,a,f,v){return Xr(t+(e^r^i)+a+f|0,v)+n|0}function Zp(t,e,r,i,n,a,f,v){return Xr(t+(e&r|~e&i)+a+f|0,v)+n|0}function Jp(t,e,r,i,n,a,f,v){return Xr(t+((e|~r)^i)+a+f|0,v)+n|0}function Yp(t,e,r,i,n,a,f,v){return Xr(t+(e&i|r&~i)+a+f|0,v)+n|0}function Xp(t,e,r,i,n,a,f,v){return Xr(t+(e^(r|~i))+a+f|0,v)+n|0}function Ra(){Qp.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Jx(Ra,Qp);Ra.prototype._update=function(){for(var t=Yx,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,f=this._e|0,v=this._a|0,w=this._b|0,S=this._c|0,A=this._d|0,q=this._e|0,T=0;T<80;T+=1){var O,P;T<16?(O=zp(r,i,n,a,f,t[Hn[T]],Vn[0],Kn[T]),P=Xp(v,w,S,A,q,t[Wn[T]],$n[0],Gn[T])):T<32?(O=Zp(r,i,n,a,f,t[Hn[T]],Vn[1],Kn[T]),P=Yp(v,w,S,A,q,t[Wn[T]],$n[1],Gn[T])):T<48?(O=Jp(r,i,n,a,f,t[Hn[T]],Vn[2],Kn[T]),P=Jp(v,w,S,A,q,t[Wn[T]],$n[2],Gn[T])):T<64?(O=Yp(r,i,n,a,f,t[Hn[T]],Vn[3],Kn[T]),P=Zp(v,w,S,A,q,t[Wn[T]],$n[3],Gn[T])):(O=Xp(r,i,n,a,f,t[Hn[T]],Vn[4],Kn[T]),P=zp(v,w,S,A,q,t[Wn[T]],$n[4],Gn[T])),r=f,f=a,a=Xr(n,10),n=i,i=O,v=q,q=A,A=Xr(S,10),S=w,w=P}var H=this._b+n+A|0;this._b=this._c+a+q|0,this._c=this._d+f+v|0,this._d=this._e+r+w|0,this._e=this._a+i+S|0,this._a=H};Ra.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=au.alloc?au.alloc(20):new au(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};ev.exports=Ra});var Qr=B((sA,fu)=>{b();typeof Object.create=="function"?fu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:fu.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ei=B((hA,tv)=>{"use strict";b();var Xx=Ee().Buffer,Qx=Cn();function Ta(t,e){this._block=Xx.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}Ta.prototype.update=function(t,e){t=Qx(t,e||"utf8");for(var r=this._block,i=this._blockSize,n=t.length,a=this._len,f=0;f<n;){for(var v=a%i,w=Math.min(n-f,i-v),S=0;S<w;S++)r[v+S]=t[f+S];a+=w,f+=w,a%i===0&&this._update(r)}return this._len+=n,this};Ta.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return t?a.toString(t):a};Ta.prototype._update=function(){throw new Error("_update must be implemented by subclass")};tv.exports=Ta});var nv=B((cA,iv)=>{"use strict";b();var e3=Qr(),rv=ei(),t3=Ee().Buffer,r3=[1518500249,1859775393,-1894007588,-899497514],i3=new Array(80);function zn(){this.init(),this._w=i3,rv.call(this,64,56)}e3(zn,rv);zn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function n3(t){return t<<5|t>>>27}function o3(t){return t<<30|t>>>2}function a3(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}zn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,f=this._e|0,v=0;v<16;++v)e[v]=t.readInt32BE(v*4);for(;v<80;++v)e[v]=e[v-3]^e[v-8]^e[v-14]^e[v-16];for(var w=0;w<80;++w){var S=~~(w/20),A=n3(r)+a3(S,i,n,a)+f+e[w]+r3[S]|0;f=a,a=n,n=o3(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=f+this._e|0};zn.prototype._hash=function(){var t=t3.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};iv.exports=zn});var fv=B((pA,av)=>{"use strict";b();var f3=Qr(),ov=ei(),s3=Ee().Buffer,u3=[1518500249,1859775393,-1894007588,-899497514],h3=new Array(80);function Zn(){this.init(),this._w=h3,ov.call(this,64,56)}f3(Zn,ov);Zn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l3(t){return t<<1|t>>>31}function c3(t){return t<<5|t>>>27}function d3(t){return t<<30|t>>>2}function p3(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}Zn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,f=this._e|0,v=0;v<16;++v)e[v]=t.readInt32BE(v*4);for(;v<80;++v)e[v]=l3(e[v-3]^e[v-8]^e[v-14]^e[v-16]);for(var w=0;w<80;++w){var S=~~(w/20),A=c3(r)+p3(S,i,n,a)+f+e[w]+u3[S]|0;f=a,a=n,n=d3(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=f+this._e|0};Zn.prototype._hash=function(){var t=s3.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};av.exports=Zn});var su=B((yA,uv)=>{"use strict";b();var v3=Qr(),sv=ei(),y3=Ee().Buffer,g3=[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],m3=new Array(64);function Jn(){this.init(),this._w=m3,sv.call(this,64,56)}v3(Jn,sv);Jn.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 b3(t,e,r){return r^t&(e^r)}function w3(t,e,r){return t&e|r&(t|e)}function _3(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function x3(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function M3(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function E3(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}Jn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,f=this._e|0,v=this._f|0,w=this._g|0,S=this._h|0,A=0;A<16;++A)e[A]=t.readInt32BE(A*4);for(;A<64;++A)e[A]=E3(e[A-2])+e[A-7]+M3(e[A-15])+e[A-16]|0;for(var q=0;q<64;++q){var T=S+x3(f)+b3(f,v,w)+g3[q]+e[q]|0,O=_3(r)+w3(r,i,n)|0;S=w,w=v,v=f,f=a+T|0,a=n,n=i,i=r,r=T+O|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=f+this._e|0,this._f=v+this._f|0,this._g=w+this._g|0,this._h=S+this._h|0};Jn.prototype._hash=function(){var t=y3.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};uv.exports=Jn});var lv=B((mA,hv)=>{"use strict";b();var S3=Qr(),B3=su(),A3=ei(),R3=Ee().Buffer,q3=new Array(64);function ka(){this.init(),this._w=q3,A3.call(this,64,56)}S3(ka,B3);ka.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};ka.prototype._hash=function(){var t=R3.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};hv.exports=ka});var uu=B((wA,mv)=>{"use strict";b();var T3=Qr(),gv=ei(),k3=Ee().Buffer,cv=[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],I3=new Array(160);function Yn(){this.init(),this._w=I3,gv.call(this,128,112)}T3(Yn,gv);Yn.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 dv(t,e,r){return r^t&(e^r)}function pv(t,e,r){return t&e|r&(t|e)}function vv(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function yv(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function O3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function C3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function D3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function P3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function Ze(t,e){return t>>>0<e>>>0?1:0}Yn.prototype._update=function(t){for(var e=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,a=this._dh|0,f=this._eh|0,v=this._fh|0,w=this._gh|0,S=this._hh|0,A=this._al|0,q=this._bl|0,T=this._cl|0,O=this._dl|0,P=this._el|0,H=this._fl|0,Me=this._gl|0,F=this._hl|0,K=0;K<32;K+=2)e[K]=t.readInt32BE(K*4),e[K+1]=t.readInt32BE(K*4+4);for(;K<160;K+=2){var Fe=e[K-30],je=e[K-30+1],nr=O3(Fe,je),Ve=C3(je,Fe);Fe=e[K-4],je=e[K-4+1];var Tt=D3(Fe,je),Ce=P3(je,Fe),st=e[K-14],E=e[K-14+1],h=e[K-32],g=e[K-32+1],c=Ve+E|0,o=nr+st+Ze(c,Ve)|0;c=c+Ce|0,o=o+Tt+Ze(c,Ce)|0,c=c+g|0,o=o+h+Ze(c,g)|0,e[K]=o,e[K+1]=c}for(var u=0;u<160;u+=2){o=e[u],c=e[u+1];var d=pv(r,i,n),y=pv(A,q,T),p=vv(r,A),s=vv(A,r),m=yv(f,P),_=yv(P,f),l=cv[u],x=cv[u+1],I=dv(f,v,w),D=dv(P,H,Me),C=F+_|0,L=S+m+Ze(C,F)|0;C=C+D|0,L=L+I+Ze(C,D)|0,C=C+x|0,L=L+l+Ze(C,x)|0,C=C+c|0,L=L+o+Ze(C,c)|0;var U=s+y|0,N=p+d+Ze(U,s)|0;S=w,F=Me,w=v,Me=H,v=f,H=P,P=O+C|0,f=a+L+Ze(P,O)|0,a=n,O=T,n=i,T=q,i=r,q=A,A=C+U|0,r=L+N+Ze(A,C)|0}this._al=this._al+A|0,this._bl=this._bl+q|0,this._cl=this._cl+T|0,this._dl=this._dl+O|0,this._el=this._el+P|0,this._fl=this._fl+H|0,this._gl=this._gl+Me|0,this._hl=this._hl+F|0,this._ah=this._ah+r+Ze(this._al,A)|0,this._bh=this._bh+i+Ze(this._bl,q)|0,this._ch=this._ch+n+Ze(this._cl,T)|0,this._dh=this._dh+a+Ze(this._dl,O)|0,this._eh=this._eh+f+Ze(this._el,P)|0,this._fh=this._fh+v+Ze(this._fl,H)|0,this._gh=this._gh+w+Ze(this._gl,Me)|0,this._hh=this._hh+S+Ze(this._hl,F)|0};Yn.prototype._hash=function(){var t=k3.allocUnsafe(64);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};mv.exports=Yn});var wv=B((xA,bv)=>{"use strict";b();var U3=Qr(),L3=uu(),N3=ei(),F3=Ee().Buffer,j3=new Array(160);function Ia(){this.init(),this._w=j3,N3.call(this,128,112)}U3(Ia,L3);Ia.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};Ia.prototype._hash=function(){var t=F3.allocUnsafe(48);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};bv.exports=Ia});var Oa=B((EA,Jt)=>{"use strict";b();Jt.exports=function(e){var r=e.toLowerCase(),i=Jt.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};Jt.exports.sha=nv();Jt.exports.sha1=fv();Jt.exports.sha224=lv();Jt.exports.sha256=su();Jt.exports.sha384=wv();Jt.exports.sha512=uu()});var _v=B((BA,hu)=>{b();typeof Object.create=="function"?hu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:hu.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Yt=B((RA,Mv)=>{"use strict";b();var H3=Ee().Buffer,xv=Ns().Transform,W3=Ii().StringDecoder,K3=_v(),G3=Cn();function xt(t){xv.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}K3(xt,xv);xt.prototype.update=function(t,e,r){var i=G3(t,e),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};xt.prototype.setAutoPadding=function(){};xt.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};xt.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};xt.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};xt.prototype._transform=function(t,e,r){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(n){i=n}finally{r(i)}};xt.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};xt.prototype._finalOrDigest=function(t){var e=this.__final()||H3.alloc(0);return t&&(e=this._toString(e,t,!0)),e};xt.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new W3(e),this._encoding=e),this._encoding!==e)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(t);return r&&(i+=this._decoder.end()),i};Mv.exports=xt});var Xn=B((TA,Sv)=>{"use strict";b();var V3=De(),$3=ya(),z3=qa(),Z3=Oa(),Ev=Yt();function Ca(t){Ev.call(this,"digest"),this._hash=t}V3(Ca,Ev);Ca.prototype._update=function(t){this._hash.update(t)};Ca.prototype._final=function(){return this._hash.digest()};Sv.exports=function(e){return e=e.toLowerCase(),e==="md5"?new $3:e==="rmd160"||e==="ripemd160"?new z3:new Ca(Z3(e))}});var Rv=B((IA,Av)=>{"use strict";b();var J3=De(),ti=Ee().Buffer,Bv=Yt(),Y3=ti.alloc(128),Fi=64;function Da(t,e){Bv.call(this,"digest"),typeof e=="string"&&(e=ti.from(e)),this._alg=t,this._key=e,e.length>Fi?e=t(e):e.length<Fi&&(e=ti.concat([e,Y3],Fi));for(var r=this._ipad=ti.allocUnsafe(Fi),i=this._opad=ti.allocUnsafe(Fi),n=0;n<Fi;n++)r[n]=e[n]^54,i[n]=e[n]^92;this._hash=[r]}J3(Da,Bv);Da.prototype._update=function(t){this._hash.push(t)};Da.prototype._final=function(){var t=this._alg(ti.concat(this._hash));return this._alg(ti.concat([this._opad,t]))};Av.exports=Da});var lu=B((CA,qv)=>{b();var X3=ya();qv.exports=function(t){return new X3().update(t).digest()}});var Iv=B((PA,kv)=>{"use strict";b();var Q3=De(),e8=Rv(),Tv=Yt(),Qn=Ee().Buffer,t8=lu(),cu=qa(),du=Oa(),r8=Qn.alloc(128);function eo(t,e){Tv.call(this,"digest"),typeof e=="string"&&(e=Qn.from(e));var r=t==="sha512"||t==="sha384"?128:64;if(this._alg=t,this._key=e,e.length>r){var i=t==="rmd160"?new cu:du(t);e=i.update(e).digest()}else e.length<r&&(e=Qn.concat([e,r8],r));for(var n=this._ipad=Qn.allocUnsafe(r),a=this._opad=Qn.allocUnsafe(r),f=0;f<r;f++)n[f]=e[f]^54,a[f]=e[f]^92;this._hash=t==="rmd160"?new cu:du(t),this._hash.update(n)}Q3(eo,Tv);eo.prototype._update=function(t){this._hash.update(t)};eo.prototype._final=function(){var t=this._hash.digest(),e=this._alg==="rmd160"?new cu:du(this._alg);return e.update(this._opad).update(t).digest()};kv.exports=function(e,r){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new eo("rmd160",r):e==="md5"?new e8(t8,r):new eo(e,r)}});var Pa=B((LA,Ov)=>{"use strict";b();Ov.exports={}});var pu=B((FA,Cv)=>{"use strict";b();var i8=isFinite,n8=Math.pow(2,30)-1;Cv.exports=function(t,e){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0||!i8(t))throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>n8||e!==e)throw new TypeError("Bad key length")}});var vu=B((HA,Pv)=>{"use strict";b();var Ua;globalThis.process&&globalThis.process.browser?Ua="utf-8":globalThis.process&&globalThis.process.version?(Dv=parseInt(M.default.version.split(".")[0].slice(1),10),Ua=Dv>=6?"utf-8":"binary"):Ua="utf-8";var Dv;Pv.exports=Ua});var yu=B((KA,Nv)=>{"use strict";b();var o8=Ee().Buffer,a8=Cn(),Lv=typeof Uint8Array<"u",f8=Lv&&typeof ArrayBuffer<"u",Uv=f8&&ArrayBuffer.isView;Nv.exports=function(t,e,r){if(typeof t=="string"||o8.isBuffer(t)||Lv&&t instanceof Uint8Array||Uv&&Uv(t))return a8(t,e);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var gu=B((VA,Wv)=>{"use strict";b();var s8=lu(),u8=qa(),h8=Oa(),ri=Ee().Buffer,l8=pu(),Fv=vu(),jv=yu(),c8=ri.alloc(128),La={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},d8={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function p8(t){return new u8().update(t).digest()}function v8(t){function e(r){return h8(t).update(r).digest()}return t==="rmd160"||t==="ripemd160"?p8:t==="md5"?s8:e}function Hv(t,e,r){var i=v8(t),n=t==="sha512"||t==="sha384"?128:64;e.length>n?e=i(e):e.length<n&&(e=ri.concat([e,c8],n));for(var a=ri.allocUnsafe(n+La[t]),f=ri.allocUnsafe(n+La[t]),v=0;v<n;v++)a[v]=e[v]^54,f[v]=e[v]^92;var w=ri.allocUnsafe(n+r+4);a.copy(w,0,0,n),this.ipad1=w,this.ipad2=a,this.opad=f,this.alg=t,this.blocksize=n,this.hash=i,this.size=La[t]}Hv.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function y8(t,e,r,i,n){l8(r,i),t=jv(t,Fv,"Password"),e=jv(e,Fv,"Salt");var a=(n||"sha1").toLowerCase(),f=d8[a]||a,v=La[f];if(typeof v!="number"||!v)throw new TypeError("Digest algorithm not supported: "+n);var w=new Hv(f,t,e.length),S=ri.allocUnsafe(i),A=ri.allocUnsafe(e.length+4);e.copy(A,0,0,e.length);for(var q=0,T=v,O=Math.ceil(i/T),P=1;P<=O;P++){A.writeUInt32BE(P,e.length);for(var H=w.run(A,w.ipad1),Me=H,F=1;F<r;F++){Me=w.run(Me,w.ipad2);for(var K=0;K<T;K++)H[K]^=Me[K]}H.copy(S,q),q+=T}return S}Wv.exports=y8});var Jv=B((zA,Zv)=>{"use strict";b();var $v=Ee().Buffer,g8=pu(),Kv=vu(),Gv=gu(),Vv=yu(),Na,to=globalThis.crypto&&globalThis.crypto.subtle,m8={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"},mu=[],ii;function bu(){return ii||(globalThis.process&&globalThis.process.nextTick?ii=globalThis.process.nextTick:globalThis.queueMicrotask?ii=globalThis.queueMicrotask:globalThis.setImmediate?ii=globalThis.setImmediate:ii=globalThis.setTimeout,ii)}function zv(t,e,r,i,n){return to.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return to.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:n}},a,i<<3)}).then(function(a){return $v.from(a)})}function b8(t){if(globalThis.process&&!globalThis.process.browser||!to||!to.importKey||!to.deriveBits)return Promise.resolve(!1);if(mu[t]!==void 0)return mu[t];Na=Na||$v.alloc(8);var e=zv(Na,Na,10,128,t).then(function(){return!0},function(){return!1});return mu[t]=e,e}function w8(t,e){t.then(function(r){bu()(function(){e(null,r)})},function(r){bu()(function(){e(r)})})}Zv.exports=function(t,e,r,i,n,a){if(typeof n=="function"&&(a=n,n=void 0),g8(r,i),t=Vv(t,Kv,"Password"),e=Vv(e,Kv,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var f=m8[n.toLowerCase()];if(!f||typeof globalThis.Promise!="function"){bu()(function(){var v;try{v=Gv(t,e,r,i,n)}catch(w){a(w);return}a(null,v)});return}w8(b8(f).then(function(v){return v?zv(t,e,r,i,f):Gv(t,e,r,i,n)}),a)}});var _u=B(wu=>{"use strict";b();wu.pbkdf2=Jv();wu.pbkdf2Sync=gu()});var xu=B(dt=>{"use strict";b();dt.readUInt32BE=function(e,r){var i=e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r];return i>>>0};dt.writeUInt32BE=function(e,r,i){e[0+i]=r>>>24,e[1+i]=r>>>16&255,e[2+i]=r>>>8&255,e[3+i]=r&255};dt.ip=function(e,r,i,n){for(var a=0,f=0,v=6;v>=0;v-=2){for(var w=0;w<=24;w+=8)a<<=1,a|=r>>>w+v&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>>w+v&1}for(var v=6;v>=0;v-=2){for(var w=1;w<=25;w+=8)f<<=1,f|=r>>>w+v&1;for(var w=1;w<=25;w+=8)f<<=1,f|=e>>>w+v&1}i[n+0]=a>>>0,i[n+1]=f>>>0};dt.rip=function(e,r,i,n){for(var a=0,f=0,v=0;v<4;v++)for(var w=24;w>=0;w-=8)a<<=1,a|=r>>>w+v&1,a<<=1,a|=e>>>w+v&1;for(var v=4;v<8;v++)for(var w=24;w>=0;w-=8)f<<=1,f|=r>>>w+v&1,f<<=1,f|=e>>>w+v&1;i[n+0]=a>>>0,i[n+1]=f>>>0};dt.pc1=function(e,r,i,n){for(var a=0,f=0,v=7;v>=5;v--){for(var w=0;w<=24;w+=8)a<<=1,a|=r>>w+v&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>w+v&1}for(var w=0;w<=24;w+=8)a<<=1,a|=r>>w+v&1;for(var v=1;v<=3;v++){for(var w=0;w<=24;w+=8)f<<=1,f|=r>>w+v&1;for(var w=0;w<=24;w+=8)f<<=1,f|=e>>w+v&1}for(var w=0;w<=24;w+=8)f<<=1,f|=e>>w+v&1;i[n+0]=a>>>0,i[n+1]=f>>>0};dt.r28shl=function(e,r){return e<<r&268435455|e>>>28-r};var Fa=[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];dt.pc2=function(e,r,i,n){for(var a=0,f=0,v=Fa.length>>>1,w=0;w<v;w++)a<<=1,a|=e>>>Fa[w]&1;for(var w=v;w<Fa.length;w++)f<<=1,f|=r>>>Fa[w]&1;i[n+0]=a>>>0,i[n+1]=f>>>0};dt.expand=function(e,r,i){var n=0,a=0;n=(e&1)<<5|e>>>27;for(var f=23;f>=15;f-=4)n<<=6,n|=e>>>f&63;for(var f=11;f>=3;f-=4)a|=e>>>f&63,a<<=6;a|=(e&31)<<1|e>>>31,r[i+0]=n>>>0,r[i+1]=a>>>0};var Yv=[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];dt.substitute=function(e,r){for(var i=0,n=0;n<4;n++){var a=e>>>18-n*6&63,f=Yv[n*64+a];i<<=4,i|=f}for(var n=0;n<4;n++){var a=r>>>18-n*6&63,f=Yv[256+n*64+a];i<<=4,i|=f}return i>>>0};var Xv=[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];dt.permute=function(e){for(var r=0,i=0;i<Xv.length;i++)r<<=1,r|=e>>>Xv[i]&1;return r>>>0};dt.padSplit=function(e,r,i){for(var n=e.toString(2);n.length<r;)n="0"+n;for(var a=[],f=0;f<r;f+=i)a.push(n.slice(f,f+i));return a.join(" ")}});var ji=B((e7,ey)=>{b();ey.exports=Qv;function Qv(t,e){if(!t)throw new Error(e||"Assertion failed")}Qv.equal=function(e,r,i){if(e!=r)throw new Error(i||"Assertion failed: "+e+" != "+r)}});var ja=B((r7,ty)=>{"use strict";b();var _8=ji();function pt(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}ty.exports=pt;pt.prototype._init=function(){};pt.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};pt.prototype._buffer=function(e,r){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[r+n];return this.bufferOff+=i,i};pt.prototype._flushBuffer=function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize};pt.prototype._updateEncrypt=function(e){var r=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var f=e.length-(e.length-r)%this.blockSize;r<f;r+=this.blockSize)this._update(e,r,a,i),i+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return a};pt.prototype._updateDecrypt=function(e){for(var r=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(e,r),i+=this._flushBuffer(a,i);return r+=this._buffer(e,r),a};pt.prototype.final=function(e){var r;e&&(r=this.update(e));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};pt.prototype._pad=function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0};pt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};pt.prototype._unpad=function(e){return e};pt.prototype._finalDecrypt=function(){_8.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var Mu=B((n7,ny)=>{"use strict";b();var ry=ji(),x8=De(),Ge=xu(),iy=ja();function M8(){this.tmp=new Array(2),this.keys=null}function Nt(t){iy.call(this,t);var e=new M8;this._desState=e,this.deriveKeys(e,t.key)}x8(Nt,iy);ny.exports=Nt;Nt.create=function(e){return new Nt(e)};var E8=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Nt.prototype.deriveKeys=function(e,r){e.keys=new Array(32),ry.equal(r.length,this.blockSize,"Invalid key length");var i=Ge.readUInt32BE(r,0),n=Ge.readUInt32BE(r,4);Ge.pc1(i,n,e.tmp,0),i=e.tmp[0],n=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var f=E8[a>>>1];i=Ge.r28shl(i,f),n=Ge.r28shl(n,f),Ge.pc2(i,n,e.keys,a)}};Nt.prototype._update=function(e,r,i,n){var a=this._desState,f=Ge.readUInt32BE(e,r),v=Ge.readUInt32BE(e,r+4);Ge.ip(f,v,a.tmp,0),f=a.tmp[0],v=a.tmp[1],this.type==="encrypt"?this._encrypt(a,f,v,a.tmp,0):this._decrypt(a,f,v,a.tmp,0),f=a.tmp[0],v=a.tmp[1],Ge.writeUInt32BE(i,f,n),Ge.writeUInt32BE(i,v,n+4)};Nt.prototype._pad=function(e,r){if(this.padding===!1)return!1;for(var i=e.length-r,n=r;n<e.length;n++)e[n]=i;return!0};Nt.prototype._unpad=function(e){if(this.padding===!1)return e;for(var r=e[e.length-1],i=e.length-r;i<e.length;i++)ry.equal(e[i],r);return e.slice(0,e.length-r)};Nt.prototype._encrypt=function(e,r,i,n,a){for(var f=r,v=i,w=0;w<e.keys.length;w+=2){var S=e.keys[w],A=e.keys[w+1];Ge.expand(v,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=Ge.substitute(S,A),T=Ge.permute(q),O=v;v=(f^T)>>>0,f=O}Ge.rip(v,f,n,a)};Nt.prototype._decrypt=function(e,r,i,n,a){for(var f=i,v=r,w=e.keys.length-2;w>=0;w-=2){var S=e.keys[w],A=e.keys[w+1];Ge.expand(f,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=Ge.substitute(S,A),T=Ge.permute(q),O=f;f=(v^T)>>>0,v=O}Ge.rip(f,v,n,a)}});var ay=B(oy=>{"use strict";b();var S8=ji(),B8=De(),Ha={};function A8(t){S8.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function R8(t){function e(a){t.call(this,a),this._cbcInit()}B8(e,t);for(var r=Object.keys(Ha),i=0;i<r.length;i++){var n=r[i];e.prototype[n]=Ha[n]}return e.create=function(f){return new e(f)},e}oy.instantiate=R8;Ha._cbcInit=function(){var e=new A8(this.options.iv);this._cbcState=e};Ha._update=function(e,r,i,n){var a=this._cbcState,f=this.constructor.super_.prototype,v=a.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)v[w]^=e[r+w];f._update.call(this,v,0,i,n);for(var w=0;w<this.blockSize;w++)v[w]=i[n+w]}else{f._update.call(this,e,r,i,n);for(var w=0;w<this.blockSize;w++)i[n+w]^=v[w];for(var w=0;w<this.blockSize;w++)v[w]=e[r+w]}}});var uy=B((s7,sy)=>{"use strict";b();var q8=ji(),T8=De(),fy=ja(),dr=Mu();function k8(t,e){q8.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),n=e.slice(16,24);t==="encrypt"?this.ciphers=[dr.create({type:"encrypt",key:r}),dr.create({type:"decrypt",key:i}),dr.create({type:"encrypt",key:n})]:this.ciphers=[dr.create({type:"decrypt",key:n}),dr.create({type:"encrypt",key:i}),dr.create({type:"decrypt",key:r})]}function ni(t){fy.call(this,t);var e=new k8(this.type,this.options.key);this._edeState=e}T8(ni,fy);sy.exports=ni;ni.create=function(e){return new ni(e)};ni.prototype._update=function(e,r,i,n){var a=this._edeState;a.ciphers[0]._update(e,r,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)};ni.prototype._pad=dr.prototype._pad;ni.prototype._unpad=dr.prototype._unpad});var hy=B(Hi=>{"use strict";b();Hi.utils=xu();Hi.Cipher=ja();Hi.DES=Mu();Hi.CBC=ay();Hi.EDE=uy()});var dy=B((c7,cy)=>{b();var ly=Yt(),Xt=hy(),I8=De(),oi=Ee().Buffer,ro={"des-ede3-cbc":Xt.CBC.instantiate(Xt.EDE),"des-ede3":Xt.EDE,"des-ede-cbc":Xt.CBC.instantiate(Xt.EDE),"des-ede":Xt.EDE,"des-cbc":Xt.CBC.instantiate(Xt.DES),"des-ecb":Xt.DES};ro.des=ro["des-cbc"];ro.des3=ro["des-ede3-cbc"];cy.exports=Wa;I8(Wa,ly);function Wa(t){ly.call(this);var e=t.mode.toLowerCase(),r=ro[e],i;t.decrypt?i="decrypt":i="encrypt";var n=t.key;oi.isBuffer(n)||(n=oi.from(n)),(e==="des-ede"||e==="des-ede-cbc")&&(n=oi.concat([n,n.slice(0,8)]));var a=t.iv;oi.isBuffer(a)||(a=oi.from(a)),this._des=r.create({key:n,iv:a,type:i})}Wa.prototype._update=function(t){return oi.from(this._des.update(t))};Wa.prototype._final=function(){return oi.from(this._des.final())}});var py=B(Eu=>{b();Eu.encrypt=function(t,e){return t._cipher.encryptBlock(e)};Eu.decrypt=function(t,e){return t._cipher.decryptBlock(e)}});var Wi=B((y7,vy)=>{b();vy.exports=function(e,r){for(var i=Math.min(e.length,r.length),n=new R.Buffer(i),a=0;a<i;++a)n[a]=e[a]^r[a];return n}});var gy=B(Su=>{b();var yy=Wi();Su.encrypt=function(t,e){var r=yy(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev};Su.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return yy(i,r)}});var wy=B(by=>{b();var io=Ee().Buffer,O8=Wi();function my(t,e,r){var i=e.length,n=O8(e,t._cache);return t._cache=t._cache.slice(i),t._prev=io.concat([t._prev,r?e:n]),n}by.encrypt=function(t,e,r){for(var i=io.allocUnsafe(0),n;e.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=io.allocUnsafe(0)),t._cache.length<=e.length)n=t._cache.length,i=io.concat([i,my(t,e.slice(0,n),r)]),e=e.slice(n);else{i=io.concat([i,my(t,e,r)]);break}return i}});var xy=B(_y=>{b();var Bu=Ee().Buffer;function C8(t,e,r){var i=t._cipher.encryptBlock(t._prev),n=i[0]^e;return t._prev=Bu.concat([t._prev.slice(1),Bu.from([r?e:n])]),n}_y.encrypt=function(t,e,r){for(var i=e.length,n=Bu.allocUnsafe(i),a=-1;++a<i;)n[a]=C8(t,e[a],r);return n}});var Ey=B(My=>{b();var Ka=Ee().Buffer;function D8(t,e,r){for(var i,n=-1,a=8,f=0,v,w;++n<a;)i=t._cipher.encryptBlock(t._prev),v=e&1<<7-n?128:0,w=i[0]^v,f+=(w&128)>>n%8,t._prev=P8(t._prev,r?v:w);return f}function P8(t,e){var r=t.length,i=-1,n=Ka.allocUnsafe(t.length);for(t=Ka.concat([t,Ka.from([e])]);++i<r;)n[i]=t[i]<<1|t[i+1]>>7;return n}My.encrypt=function(t,e,r){for(var i=e.length,n=Ka.allocUnsafe(i),a=-1;++a<i;)n[a]=D8(t,e[a],r);return n}});var By=B(Sy=>{b();var U8=Wi();function L8(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}Sy.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=R.Buffer.concat([t._cache,L8(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),U8(e,r)}});var Au=B((R7,Ay)=>{b();function N8(t){for(var e=t.length,r;e--;)if(r=t.readUInt8(e),r===255)t.writeUInt8(0,e);else{r++,t.writeUInt8(r,e);break}}Ay.exports=N8});var qu=B(qy=>{b();var F8=Wi(),Ry=Ee().Buffer,j8=Au();function H8(t){var e=t._cipher.encryptBlockRaw(t._prev);return j8(t._prev),e}var Ru=16;qy.encrypt=function(t,e){var r=Math.ceil(e.length/Ru),i=t._cache.length;t._cache=Ry.concat([t._cache,Ry.allocUnsafe(r*Ru)]);for(var n=0;n<r;n++){var a=H8(t),f=i+n*Ru;t._cache.writeUInt32BE(a[0],f+0),t._cache.writeUInt32BE(a[1],f+4),t._cache.writeUInt32BE(a[2],f+8),t._cache.writeUInt32BE(a[3],f+12)}var v=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),F8(e,v)}});var Tu=B((I7,W8)=>{W8.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Va=B((O7,Ty)=>{b();var K8={ECB:py(),CBC:gy(),CFB:wy(),CFB8:xy(),CFB1:Ey(),OFB:By(),CTR:qu(),GCM:qu()},Ga=Tu();for(ku in Ga)Ga[ku].module=K8[Ga[ku].mode];var ku;Ty.exports=Ga});var no=B((D7,Iy)=>{b();var $a=Ee().Buffer;function Ou(t){$a.isBuffer(t)||(t=$a.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(i*4);return r}function Iu(t){for(var e=0;e<t.length;t++)t[e]=0}function ky(t,e,r,i,n){for(var a=r[0],f=r[1],v=r[2],w=r[3],S=t[0]^e[0],A=t[1]^e[1],q=t[2]^e[2],T=t[3]^e[3],O,P,H,Me,F=4,K=1;K<n;K++)O=a[S>>>24]^f[A>>>16&255]^v[q>>>8&255]^w[T&255]^e[F++],P=a[A>>>24]^f[q>>>16&255]^v[T>>>8&255]^w[S&255]^e[F++],H=a[q>>>24]^f[T>>>16&255]^v[S>>>8&255]^w[A&255]^e[F++],Me=a[T>>>24]^f[S>>>16&255]^v[A>>>8&255]^w[q&255]^e[F++],S=O,A=P,q=H,T=Me;return O=(i[S>>>24]<<24|i[A>>>16&255]<<16|i[q>>>8&255]<<8|i[T&255])^e[F++],P=(i[A>>>24]<<24|i[q>>>16&255]<<16|i[T>>>8&255]<<8|i[S&255])^e[F++],H=(i[q>>>24]<<24|i[T>>>16&255]<<16|i[S>>>8&255]<<8|i[A&255])^e[F++],Me=(i[T>>>24]<<24|i[S>>>16&255]<<16|i[A>>>8&255]<<8|i[q&255])^e[F++],O=O>>>0,P=P>>>0,H=H>>>0,Me=Me>>>0,[O,P,H,Me]}var G8=[0,1,2,4,8,16,32,64,128,27,54],Ke=(function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],f=0,v=0,w=0;w<256;++w){var S=v^v<<1^v<<2^v<<3^v<<4;S=S>>>8^S&255^99,r[f]=S,i[S]=f;var A=t[f],q=t[A],T=t[q],O=t[S]*257^S*16843008;n[0][f]=O<<24|O>>>8,n[1][f]=O<<16|O>>>16,n[2][f]=O<<8|O>>>24,n[3][f]=O,O=T*16843009^q*65537^A*257^f*16843008,a[0][S]=O<<24|O>>>8,a[1][S]=O<<16|O>>>16,a[2][S]=O<<8|O>>>24,a[3][S]=O,f===0?f=v=1:(f=A^t[t[t[T^A]]],v^=t[t[v]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}})();function vt(t){this._key=Ou(t),this._reset()}vt.blockSize=16;vt.keySize=256/8;vt.prototype.blockSize=vt.blockSize;vt.prototype.keySize=vt.keySize;vt.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,i=(r+1)*4,n=[],a=0;a<e;a++)n[a]=t[a];for(a=e;a<i;a++){var f=n[a-1];a%e===0?(f=f<<8|f>>>24,f=Ke.SBOX[f>>>24]<<24|Ke.SBOX[f>>>16&255]<<16|Ke.SBOX[f>>>8&255]<<8|Ke.SBOX[f&255],f^=G8[a/e|0]<<24):e>6&&a%e===4&&(f=Ke.SBOX[f>>>24]<<24|Ke.SBOX[f>>>16&255]<<16|Ke.SBOX[f>>>8&255]<<8|Ke.SBOX[f&255]),n[a]=n[a-e]^f}for(var v=[],w=0;w<i;w++){var S=i-w,A=n[S-(w%4?0:4)];w<4||S<=4?v[w]=A:v[w]=Ke.INV_SUB_MIX[0][Ke.SBOX[A>>>24]]^Ke.INV_SUB_MIX[1][Ke.SBOX[A>>>16&255]]^Ke.INV_SUB_MIX[2][Ke.SBOX[A>>>8&255]]^Ke.INV_SUB_MIX[3][Ke.SBOX[A&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=v};vt.prototype.encryptBlockRaw=function(t){return t=Ou(t),ky(t,this._keySchedule,Ke.SUB_MIX,Ke.SBOX,this._nRounds)};vt.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=$a.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};vt.prototype.decryptBlock=function(t){t=Ou(t);var e=t[1];t[1]=t[3],t[3]=e;var r=ky(t,this._invKeySchedule,Ke.INV_SUB_MIX,Ke.INV_SBOX,this._nRounds),i=$a.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};vt.prototype.scrub=function(){Iu(this._keySchedule),Iu(this._invKeySchedule),Iu(this._key)};Iy.exports.AES=vt});var Dy=B((U7,Cy)=>{b();var Ki=Ee().Buffer,V8=Ki.alloc(16,0);function $8(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function Oy(t){var e=Ki.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function oo(t){this.h=t,this.state=Ki.alloc(16,0),this.cache=Ki.allocUnsafe(0)}oo.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()};oo.prototype._multiply=function(){for(var t=$8(this.h),e=[0,0,0,0],r,i,n,a=-1;++a<128;){for(i=(this.state[~~(a/8)]&1<<7-a%8)!==0,i&&(e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3]),n=(t[3]&1)!==0,r=3;r>0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,n&&(t[0]=t[0]^225<<24)}this.state=Oy(e)};oo.prototype.update=function(t){this.cache=Ki.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};oo.prototype.final=function(t,e){return this.cache.length&&this.ghash(Ki.concat([this.cache,V8],16)),this.ghash(Oy([0,t,0,e])),this.state};Cy.exports=oo});var Cu=B((N7,Ly)=>{b();var z8=no(),ot=Ee().Buffer,Py=Yt(),Z8=De(),Uy=Dy(),J8=Wi(),Y8=Au();function X8(t,e){var r=0;t.length!==e.length&&r++;for(var i=Math.min(t.length,e.length),n=0;n<i;++n)r+=t[n]^e[n];return r}function Q8(t,e,r){if(e.length===12)return t._finID=ot.concat([e,ot.from([0,0,0,1])]),ot.concat([e,ot.from([0,0,0,2])]);var i=new Uy(r),n=e.length,a=n%16;i.update(e),a&&(a=16-a,i.update(ot.alloc(a,0))),i.update(ot.alloc(8,0));var f=n*8,v=ot.alloc(8);v.writeUIntBE(f,0,8),i.update(v),t._finID=i.state;var w=ot.from(t._finID);return Y8(w),w}function ai(t,e,r,i){Py.call(this);var n=ot.alloc(4,0);this._cipher=new z8.AES(e);var a=this._cipher.encryptBlock(n);this._ghash=new Uy(a),r=Q8(this,r,a),this._prev=ot.from(r),this._cache=ot.allocUnsafe(0),this._secCache=ot.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}Z8(ai,Py);ai.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=ot.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r};ai.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=J8(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&X8(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()};ai.prototype.getAuthTag=function(){if(this._decrypt||!ot.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ai.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};ai.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};Ly.exports=ai});var Pu=B((j7,Fy)=>{b();var e4=no(),Du=Ee().Buffer,Ny=Yt(),t4=De();function za(t,e,r,i){Ny.call(this),this._cipher=new e4.AES(e),this._prev=Du.from(r),this._cache=Du.allocUnsafe(0),this._secCache=Du.allocUnsafe(0),this._decrypt=i,this._mode=t}t4(za,Ny);za.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)};za.prototype._final=function(){this._cipher.scrub()};Fy.exports=za});var ao=B((W7,jy)=>{b();var fi=Ee().Buffer,r4=ya();function i4(t,e,r,i){if(fi.isBuffer(t)||(t=fi.from(t,"binary")),e&&(fi.isBuffer(e)||(e=fi.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=fi.alloc(n),f=fi.alloc(i||0),v=fi.alloc(0);n>0||i>0;){var w=new r4;w.update(v),w.update(t),e&&w.update(e),v=w.digest();var S=0;if(n>0){var A=a.length-n;S=Math.min(n,v.length),v.copy(a,A,0,S),n-=S}if(S<v.length&&i>0){var q=f.length-i,T=Math.min(i,v.length-S);v.copy(f,q,S,S+T),i-=T}}return v.fill(0),{key:a,iv:f}}jy.exports=i4});var Gy=B(Uu=>{b();var Hy=Va(),n4=Cu(),Qt=Ee().Buffer,o4=Pu(),Wy=Yt(),a4=no(),f4=ao(),s4=De();function fo(t,e,r){Wy.call(this),this._cache=new Za,this._cipher=new a4.AES(e),this._prev=Qt.from(r),this._mode=t,this._autopadding=!0}s4(fo,Wy);fo.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get();)r=this._mode.encrypt(this,e),i.push(r);return Qt.concat(i)};var u4=Qt.alloc(16,16);fo.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(u4))throw this._cipher.scrub(),new Error("data not multiple of block length")};fo.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Za(){this.cache=Qt.allocUnsafe(0)}Za.prototype.add=function(t){this.cache=Qt.concat([this.cache,t])};Za.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};Za.prototype.flush=function(){for(var t=16-this.cache.length,e=Qt.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return Qt.concat([this.cache,e])};function Ky(t,e,r){var i=Hy[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=Qt.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);if(typeof r=="string"&&(r=Qt.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new o4(i.module,e,r):i.type==="auth"?new n4(i.module,e,r):new fo(i.module,e,r)}function h4(t,e){var r=Hy[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=f4(e,!1,r.key,r.iv);return Ky(t,i.key,i.iv)}Uu.createCipheriv=Ky;Uu.createCipher=h4});var Zy=B(Lu=>{b();var l4=Cu(),Gi=Ee().Buffer,Vy=Va(),c4=Pu(),$y=Yt(),d4=no(),p4=ao(),v4=De();function so(t,e,r){$y.call(this),this._cache=new Ja,this._last=void 0,this._cipher=new d4.AES(e),this._prev=Gi.from(r),this._mode=t,this._autopadding=!0}v4(so,$y);so.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),i.push(r);return Gi.concat(i)};so.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return y4(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")};so.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Ja(){this.cache=Gi.allocUnsafe(0)}Ja.prototype.add=function(t){this.cache=Gi.concat([this.cache,t])};Ja.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};Ja.prototype.flush=function(){if(this.cache.length)return this.cache};function y4(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return t.slice(0,16-e)}function zy(t,e,r){var i=Vy[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=Gi.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof e=="string"&&(e=Gi.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return i.type==="stream"?new c4(i.module,e,r,!0):i.type==="auth"?new l4(i.module,e,r,!0):new so(i.module,e,r)}function g4(t,e){var r=Vy[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=p4(e,!1,r.key,r.iv);return zy(t,i.key,i.iv)}Lu.createDecipher=g4;Lu.createDecipheriv=zy});var Ya=B(Mt=>{b();var Jy=Gy(),Yy=Zy(),m4=Tu();function b4(){return Object.keys(m4)}Mt.createCipher=Mt.Cipher=Jy.createCipher;Mt.createCipheriv=Mt.Cipheriv=Jy.createCipheriv;Mt.createDecipher=Mt.Decipher=Yy.createDecipher;Mt.createDecipheriv=Mt.Decipheriv=Yy.createDecipheriv;Mt.listCiphers=Mt.getCiphers=b4});var Xy=B(er=>{b();er["des-ecb"]={key:8,iv:0};er["des-cbc"]=er.des={key:8,iv:8};er["des-ede3-cbc"]=er.des3={key:24,iv:8};er["des-ede3"]={key:24,iv:0};er["des-ede-cbc"]={key:16,iv:8};er["des-ede"]={key:16,iv:0}});var i1=B(Et=>{b();var Qy=dy(),Nu=Ya(),pr=Va(),tr=Xy(),e1=ao();function w4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=e1(e,!1,r,i);return t1(t,n.key,n.iv)}function _4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=e1(e,!1,r,i);return r1(t,n.key,n.iv)}function t1(t,e,r){if(t=t.toLowerCase(),pr[t])return Nu.createCipheriv(t,e,r);if(tr[t])return new Qy({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function r1(t,e,r){if(t=t.toLowerCase(),pr[t])return Nu.createDecipheriv(t,e,r);if(tr[t])return new Qy({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function x4(){return Object.keys(tr).concat(Nu.getCiphers())}Et.createCipher=Et.Cipher=w4;Et.createCipheriv=Et.Cipheriv=t1;Et.createDecipher=Et.Decipher=_4;Et.createDecipheriv=Et.Decipheriv=r1;Et.listCiphers=Et.getCiphers=x4});var vr=B((n1,Fu)=>{b();(function(t,e){"use strict";function r(E,h){if(!E)throw new Error(h||"Assertion failed")}function i(E,h){E.super_=h;var g=function(){};g.prototype=h.prototype,E.prototype=new g,E.prototype.constructor=E}function n(E,h,g){if(n.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(E||0,h||10,g||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,g){return h.cmp(g)>0?h:g},n.min=function(h,g){return h.cmp(g)<0?h:g},n.prototype._init=function(h,g,c){if(typeof h=="number")return this._initNumber(h,g,c);if(typeof h=="object")return this._initArray(h,g,c);g==="hex"&&(g=16),r(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var o=0;h[0]==="-"&&(o++,this.negative=1),o<h.length&&(g===16?this._parseHex(h,o,c):(this._parseBase(h,g,o),c==="le"&&this._initArray(this.toArray(),g,c)))},n.prototype._initNumber=function(h,g,c){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),g,c)},n.prototype._initArray=function(h,g,c){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u,d,y=0;if(c==="be")for(o=h.length-1,u=0;o>=0;o-=3)d=h[o]|h[o-1]<<8|h[o-2]<<16,this.words[u]|=d<<y&67108863,this.words[u+1]=d>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);else if(c==="le")for(o=0,u=0;o<h.length;o+=3)d=h[o]|h[o+1]<<8|h[o+2]<<16,this.words[u]|=d<<y&67108863,this.words[u+1]=d>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);return this.strip()};function f(E,h){var g=E.charCodeAt(h);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function v(E,h,g){var c=f(E,g);return g-1>=h&&(c|=f(E,g-1)<<4),c}n.prototype._parseHex=function(h,g,c){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u=0,d=0,y;if(c==="be")for(o=h.length-1;o>=g;o-=2)y=v(h,g,o)<<u,this.words[d]|=y&67108863,u>=18?(u-=18,d+=1,this.words[d]|=y>>>26):u+=8;else{var p=h.length-g;for(o=p%2===0?g+1:g;o<h.length;o+=2)y=v(h,g,o)<<u,this.words[d]|=y&67108863,u>=18?(u-=18,d+=1,this.words[d]|=y>>>26):u+=8}this.strip()};function w(E,h,g,c){for(var o=0,u=Math.min(E.length,g),d=h;d<u;d++){var y=E.charCodeAt(d)-48;o*=c,y>=49?o+=y-49+10:y>=17?o+=y-17+10:o+=y}return o}n.prototype._parseBase=function(h,g,c){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=g)o++;o--,u=u/g|0;for(var d=h.length-c,y=d%o,p=Math.min(d,d-y)+c,s=0,m=c;m<p;m+=o)s=w(h,m,m+o,g),this.imuln(u),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(y!==0){var _=1;for(s=w(h,m,h.length,g),m=0;m<y;m++)_*=g;this.imuln(_),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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"],A=[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],q=[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];n.prototype.toString=function(h,g){h=h||10,g=g|0||1;var c;if(h===16||h==="hex"){c="";for(var o=0,u=0,d=0;d<this.length;d++){var y=this.words[d],p=((y<<o|u)&16777215).toString(16);u=y>>>24-o&16777215,o+=2,o>=26&&(o-=26,d--),u!==0||d!==this.length-1?c=S[6-p.length]+p+c:c=p+c}for(u!==0&&(c=u.toString(16)+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(h===(h|0)&&h>=2&&h<=36){var s=A[h],m=q[h];c="";var _=this.clone();for(_.negative=0;!_.isZero();){var l=_.modn(m).toString(h);_=_.idivn(m),_.isZero()?c=l+c:c=S[s-l.length]+l+c}for(this.isZero()&&(c="0"+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,g){return r(typeof a<"u"),this.toArrayLike(a,h,g)},n.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)},n.prototype.toArrayLike=function(h,g,c){var o=this.byteLength(),u=c||Math.max(1,o);r(o<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var d=g==="le",y=new h(u),p,s,m=this.clone();if(d){for(s=0;!m.isZero();s++)p=m.andln(255),m.iushrn(8),y[s]=p;for(;s<u;s++)y[s]=0}else{for(s=0;s<u-o;s++)y[s]=0;for(s=0;!m.isZero();s++)p=m.andln(255),m.iushrn(8),y[u-s-1]=p}return y},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var g=h,c=0;return g>=4096&&(c+=13,g>>>=13),g>=64&&(c+=7,g>>>=7),g>=8&&(c+=4,g>>>=4),g>=2&&(c+=2,g>>>=2),c+g},n.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,c=0;return(g&8191)===0&&(c+=13,g>>>=13),(g&127)===0&&(c+=7,g>>>=7),(g&15)===0&&(c+=4,g>>>=4),(g&3)===0&&(c+=2,g>>>=2),(g&1)===0&&c++,c},n.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return(this.length-1)*26+g};function T(E){for(var h=new Array(E.bitLength()),g=0;g<h.length;g++){var c=g/26|0,o=g%26;h[g]=(E.words[c]&1<<o)>>>o}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var c=this._zeroBits(this.words[g]);if(h+=c,c!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var c=0;c<g.length;c++)this.words[c]=this.words[c]&h.words[c];return this.length=g.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var g,c;this.length>h.length?(g=this,c=h):(g=h,c=this);for(var o=0;o<c.length;o++)this.words[o]=g.words[o]^c.words[o];if(this!==g)for(;o<g.length;o++)this.words[o]=g.words[o];return this.length=g.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,c=h%26;this._expand(g),c>0&&g--;for(var o=0;o<g;o++)this.words[o]=~this.words[o]&67108863;return c>0&&(this.words[o]=~this.words[o]&67108863>>26-c),this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,g){r(typeof h=="number"&&h>=0);var c=h/26|0,o=h%26;return this._expand(c+1),g?this.words[c]=this.words[c]|1<<o:this.words[c]=this.words[c]&~(1<<o),this.strip()},n.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var c,o;this.length>h.length?(c=this,o=h):(c=h,o=this);for(var u=0,d=0;d<o.length;d++)g=(c.words[d]|0)+(o.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;for(;u!==0&&d<c.length;d++)g=(c.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;if(this.length=c.length,u!==0)this.words[this.length]=u,this.length++;else if(c!==this)for(;d<c.length;d++)this.words[d]=c.words[d];return this},n.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var c=this.cmp(h);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var o,u;c>0?(o=this,u=h):(o=h,u=this);for(var d=0,y=0;y<u.length;y++)g=(o.words[y]|0)-(u.words[y]|0)+d,d=g>>26,this.words[y]=g&67108863;for(;d!==0&&y<o.length;y++)g=(o.words[y]|0)+d,d=g>>26,this.words[y]=g&67108863;if(d===0&&y<o.length&&o!==this)for(;y<o.length;y++)this.words[y]=o.words[y];return this.length=Math.max(this.length,y),o!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function O(E,h,g){g.negative=h.negative^E.negative;var c=E.length+h.length|0;g.length=c,c=c-1|0;var o=E.words[0]|0,u=h.words[0]|0,d=o*u,y=d&67108863,p=d/67108864|0;g.words[0]=y;for(var s=1;s<c;s++){for(var m=p>>>26,_=p&67108863,l=Math.min(s,h.length-1),x=Math.max(0,s-E.length+1);x<=l;x++){var I=s-x|0;o=E.words[I]|0,u=h.words[x]|0,d=o*u+_,m+=d/67108864|0,_=d&67108863}g.words[s]=_|0,p=m|0}return p!==0?g.words[s]=p|0:g.length--,g.strip()}var P=function(h,g,c){var o=h.words,u=g.words,d=c.words,y=0,p,s,m,_=o[0]|0,l=_&8191,x=_>>>13,I=o[1]|0,D=I&8191,C=I>>>13,L=o[2]|0,U=L&8191,N=L>>>13,bt=o[3]|0,j=bt&8191,W=bt>>>13,Qi=o[4]|0,G=Qi&8191,V=Qi>>>13,en=o[5]|0,$=en&8191,z=en>>>13,tn=o[6]|0,Z=tn&8191,J=tn>>>13,rn=o[7]|0,Y=rn&8191,X=rn>>>13,nn=o[8]|0,Q=nn&8191,ee=nn>>>13,on=o[9]|0,te=on&8191,re=on>>>13,an=u[0]|0,ie=an&8191,ne=an>>>13,fn=u[1]|0,oe=fn&8191,ae=fn>>>13,sn=u[2]|0,fe=sn&8191,se=sn>>>13,un=u[3]|0,ue=un&8191,he=un>>>13,hn=u[4]|0,le=hn&8191,ce=hn>>>13,ln=u[5]|0,de=ln&8191,pe=ln>>>13,cn=u[6]|0,ve=cn&8191,ye=cn>>>13,dn=u[7]|0,ge=dn&8191,me=dn>>>13,pn=u[8]|0,be=pn&8191,we=pn>>>13,vn=u[9]|0,_e=vn&8191,xe=vn>>>13;c.negative=h.negative^g.negative,c.length=19,p=Math.imul(l,ie),s=Math.imul(l,ne),s=s+Math.imul(x,ie)|0,m=Math.imul(x,ne);var ci=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(ci>>>26)|0,ci&=67108863,p=Math.imul(D,ie),s=Math.imul(D,ne),s=s+Math.imul(C,ie)|0,m=Math.imul(C,ne),p=p+Math.imul(l,oe)|0,s=s+Math.imul(l,ae)|0,s=s+Math.imul(x,oe)|0,m=m+Math.imul(x,ae)|0;var Ue=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,p=Math.imul(U,ie),s=Math.imul(U,ne),s=s+Math.imul(N,ie)|0,m=Math.imul(N,ne),p=p+Math.imul(D,oe)|0,s=s+Math.imul(D,ae)|0,s=s+Math.imul(C,oe)|0,m=m+Math.imul(C,ae)|0,p=p+Math.imul(l,fe)|0,s=s+Math.imul(l,se)|0,s=s+Math.imul(x,fe)|0,m=m+Math.imul(x,se)|0;var Le=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Le>>>26)|0,Le&=67108863,p=Math.imul(j,ie),s=Math.imul(j,ne),s=s+Math.imul(W,ie)|0,m=Math.imul(W,ne),p=p+Math.imul(U,oe)|0,s=s+Math.imul(U,ae)|0,s=s+Math.imul(N,oe)|0,m=m+Math.imul(N,ae)|0,p=p+Math.imul(D,fe)|0,s=s+Math.imul(D,se)|0,s=s+Math.imul(C,fe)|0,m=m+Math.imul(C,se)|0,p=p+Math.imul(l,ue)|0,s=s+Math.imul(l,he)|0,s=s+Math.imul(x,ue)|0,m=m+Math.imul(x,he)|0;var gr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(gr>>>26)|0,gr&=67108863,p=Math.imul(G,ie),s=Math.imul(G,ne),s=s+Math.imul(V,ie)|0,m=Math.imul(V,ne),p=p+Math.imul(j,oe)|0,s=s+Math.imul(j,ae)|0,s=s+Math.imul(W,oe)|0,m=m+Math.imul(W,ae)|0,p=p+Math.imul(U,fe)|0,s=s+Math.imul(U,se)|0,s=s+Math.imul(N,fe)|0,m=m+Math.imul(N,se)|0,p=p+Math.imul(D,ue)|0,s=s+Math.imul(D,he)|0,s=s+Math.imul(C,ue)|0,m=m+Math.imul(C,he)|0,p=p+Math.imul(l,le)|0,s=s+Math.imul(l,ce)|0,s=s+Math.imul(x,le)|0,m=m+Math.imul(x,ce)|0;var mr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(mr>>>26)|0,mr&=67108863,p=Math.imul($,ie),s=Math.imul($,ne),s=s+Math.imul(z,ie)|0,m=Math.imul(z,ne),p=p+Math.imul(G,oe)|0,s=s+Math.imul(G,ae)|0,s=s+Math.imul(V,oe)|0,m=m+Math.imul(V,ae)|0,p=p+Math.imul(j,fe)|0,s=s+Math.imul(j,se)|0,s=s+Math.imul(W,fe)|0,m=m+Math.imul(W,se)|0,p=p+Math.imul(U,ue)|0,s=s+Math.imul(U,he)|0,s=s+Math.imul(N,ue)|0,m=m+Math.imul(N,he)|0,p=p+Math.imul(D,le)|0,s=s+Math.imul(D,ce)|0,s=s+Math.imul(C,le)|0,m=m+Math.imul(C,ce)|0,p=p+Math.imul(l,de)|0,s=s+Math.imul(l,pe)|0,s=s+Math.imul(x,de)|0,m=m+Math.imul(x,pe)|0;var br=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(br>>>26)|0,br&=67108863,p=Math.imul(Z,ie),s=Math.imul(Z,ne),s=s+Math.imul(J,ie)|0,m=Math.imul(J,ne),p=p+Math.imul($,oe)|0,s=s+Math.imul($,ae)|0,s=s+Math.imul(z,oe)|0,m=m+Math.imul(z,ae)|0,p=p+Math.imul(G,fe)|0,s=s+Math.imul(G,se)|0,s=s+Math.imul(V,fe)|0,m=m+Math.imul(V,se)|0,p=p+Math.imul(j,ue)|0,s=s+Math.imul(j,he)|0,s=s+Math.imul(W,ue)|0,m=m+Math.imul(W,he)|0,p=p+Math.imul(U,le)|0,s=s+Math.imul(U,ce)|0,s=s+Math.imul(N,le)|0,m=m+Math.imul(N,ce)|0,p=p+Math.imul(D,de)|0,s=s+Math.imul(D,pe)|0,s=s+Math.imul(C,de)|0,m=m+Math.imul(C,pe)|0,p=p+Math.imul(l,ve)|0,s=s+Math.imul(l,ye)|0,s=s+Math.imul(x,ve)|0,m=m+Math.imul(x,ye)|0;var wr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(wr>>>26)|0,wr&=67108863,p=Math.imul(Y,ie),s=Math.imul(Y,ne),s=s+Math.imul(X,ie)|0,m=Math.imul(X,ne),p=p+Math.imul(Z,oe)|0,s=s+Math.imul(Z,ae)|0,s=s+Math.imul(J,oe)|0,m=m+Math.imul(J,ae)|0,p=p+Math.imul($,fe)|0,s=s+Math.imul($,se)|0,s=s+Math.imul(z,fe)|0,m=m+Math.imul(z,se)|0,p=p+Math.imul(G,ue)|0,s=s+Math.imul(G,he)|0,s=s+Math.imul(V,ue)|0,m=m+Math.imul(V,he)|0,p=p+Math.imul(j,le)|0,s=s+Math.imul(j,ce)|0,s=s+Math.imul(W,le)|0,m=m+Math.imul(W,ce)|0,p=p+Math.imul(U,de)|0,s=s+Math.imul(U,pe)|0,s=s+Math.imul(N,de)|0,m=m+Math.imul(N,pe)|0,p=p+Math.imul(D,ve)|0,s=s+Math.imul(D,ye)|0,s=s+Math.imul(C,ve)|0,m=m+Math.imul(C,ye)|0,p=p+Math.imul(l,ge)|0,s=s+Math.imul(l,me)|0,s=s+Math.imul(x,ge)|0,m=m+Math.imul(x,me)|0;var _r=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(_r>>>26)|0,_r&=67108863,p=Math.imul(Q,ie),s=Math.imul(Q,ne),s=s+Math.imul(ee,ie)|0,m=Math.imul(ee,ne),p=p+Math.imul(Y,oe)|0,s=s+Math.imul(Y,ae)|0,s=s+Math.imul(X,oe)|0,m=m+Math.imul(X,ae)|0,p=p+Math.imul(Z,fe)|0,s=s+Math.imul(Z,se)|0,s=s+Math.imul(J,fe)|0,m=m+Math.imul(J,se)|0,p=p+Math.imul($,ue)|0,s=s+Math.imul($,he)|0,s=s+Math.imul(z,ue)|0,m=m+Math.imul(z,he)|0,p=p+Math.imul(G,le)|0,s=s+Math.imul(G,ce)|0,s=s+Math.imul(V,le)|0,m=m+Math.imul(V,ce)|0,p=p+Math.imul(j,de)|0,s=s+Math.imul(j,pe)|0,s=s+Math.imul(W,de)|0,m=m+Math.imul(W,pe)|0,p=p+Math.imul(U,ve)|0,s=s+Math.imul(U,ye)|0,s=s+Math.imul(N,ve)|0,m=m+Math.imul(N,ye)|0,p=p+Math.imul(D,ge)|0,s=s+Math.imul(D,me)|0,s=s+Math.imul(C,ge)|0,m=m+Math.imul(C,me)|0,p=p+Math.imul(l,be)|0,s=s+Math.imul(l,we)|0,s=s+Math.imul(x,be)|0,m=m+Math.imul(x,we)|0;var xr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(xr>>>26)|0,xr&=67108863,p=Math.imul(te,ie),s=Math.imul(te,ne),s=s+Math.imul(re,ie)|0,m=Math.imul(re,ne),p=p+Math.imul(Q,oe)|0,s=s+Math.imul(Q,ae)|0,s=s+Math.imul(ee,oe)|0,m=m+Math.imul(ee,ae)|0,p=p+Math.imul(Y,fe)|0,s=s+Math.imul(Y,se)|0,s=s+Math.imul(X,fe)|0,m=m+Math.imul(X,se)|0,p=p+Math.imul(Z,ue)|0,s=s+Math.imul(Z,he)|0,s=s+Math.imul(J,ue)|0,m=m+Math.imul(J,he)|0,p=p+Math.imul($,le)|0,s=s+Math.imul($,ce)|0,s=s+Math.imul(z,le)|0,m=m+Math.imul(z,ce)|0,p=p+Math.imul(G,de)|0,s=s+Math.imul(G,pe)|0,s=s+Math.imul(V,de)|0,m=m+Math.imul(V,pe)|0,p=p+Math.imul(j,ve)|0,s=s+Math.imul(j,ye)|0,s=s+Math.imul(W,ve)|0,m=m+Math.imul(W,ye)|0,p=p+Math.imul(U,ge)|0,s=s+Math.imul(U,me)|0,s=s+Math.imul(N,ge)|0,m=m+Math.imul(N,me)|0,p=p+Math.imul(D,be)|0,s=s+Math.imul(D,we)|0,s=s+Math.imul(C,be)|0,m=m+Math.imul(C,we)|0,p=p+Math.imul(l,_e)|0,s=s+Math.imul(l,xe)|0,s=s+Math.imul(x,_e)|0,m=m+Math.imul(x,xe)|0;var Mr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,p=Math.imul(te,oe),s=Math.imul(te,ae),s=s+Math.imul(re,oe)|0,m=Math.imul(re,ae),p=p+Math.imul(Q,fe)|0,s=s+Math.imul(Q,se)|0,s=s+Math.imul(ee,fe)|0,m=m+Math.imul(ee,se)|0,p=p+Math.imul(Y,ue)|0,s=s+Math.imul(Y,he)|0,s=s+Math.imul(X,ue)|0,m=m+Math.imul(X,he)|0,p=p+Math.imul(Z,le)|0,s=s+Math.imul(Z,ce)|0,s=s+Math.imul(J,le)|0,m=m+Math.imul(J,ce)|0,p=p+Math.imul($,de)|0,s=s+Math.imul($,pe)|0,s=s+Math.imul(z,de)|0,m=m+Math.imul(z,pe)|0,p=p+Math.imul(G,ve)|0,s=s+Math.imul(G,ye)|0,s=s+Math.imul(V,ve)|0,m=m+Math.imul(V,ye)|0,p=p+Math.imul(j,ge)|0,s=s+Math.imul(j,me)|0,s=s+Math.imul(W,ge)|0,m=m+Math.imul(W,me)|0,p=p+Math.imul(U,be)|0,s=s+Math.imul(U,we)|0,s=s+Math.imul(N,be)|0,m=m+Math.imul(N,we)|0,p=p+Math.imul(D,_e)|0,s=s+Math.imul(D,xe)|0,s=s+Math.imul(C,_e)|0,m=m+Math.imul(C,xe)|0;var Er=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Er>>>26)|0,Er&=67108863,p=Math.imul(te,fe),s=Math.imul(te,se),s=s+Math.imul(re,fe)|0,m=Math.imul(re,se),p=p+Math.imul(Q,ue)|0,s=s+Math.imul(Q,he)|0,s=s+Math.imul(ee,ue)|0,m=m+Math.imul(ee,he)|0,p=p+Math.imul(Y,le)|0,s=s+Math.imul(Y,ce)|0,s=s+Math.imul(X,le)|0,m=m+Math.imul(X,ce)|0,p=p+Math.imul(Z,de)|0,s=s+Math.imul(Z,pe)|0,s=s+Math.imul(J,de)|0,m=m+Math.imul(J,pe)|0,p=p+Math.imul($,ve)|0,s=s+Math.imul($,ye)|0,s=s+Math.imul(z,ve)|0,m=m+Math.imul(z,ye)|0,p=p+Math.imul(G,ge)|0,s=s+Math.imul(G,me)|0,s=s+Math.imul(V,ge)|0,m=m+Math.imul(V,me)|0,p=p+Math.imul(j,be)|0,s=s+Math.imul(j,we)|0,s=s+Math.imul(W,be)|0,m=m+Math.imul(W,we)|0,p=p+Math.imul(U,_e)|0,s=s+Math.imul(U,xe)|0,s=s+Math.imul(N,_e)|0,m=m+Math.imul(N,xe)|0;var Sr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,p=Math.imul(te,ue),s=Math.imul(te,he),s=s+Math.imul(re,ue)|0,m=Math.imul(re,he),p=p+Math.imul(Q,le)|0,s=s+Math.imul(Q,ce)|0,s=s+Math.imul(ee,le)|0,m=m+Math.imul(ee,ce)|0,p=p+Math.imul(Y,de)|0,s=s+Math.imul(Y,pe)|0,s=s+Math.imul(X,de)|0,m=m+Math.imul(X,pe)|0,p=p+Math.imul(Z,ve)|0,s=s+Math.imul(Z,ye)|0,s=s+Math.imul(J,ve)|0,m=m+Math.imul(J,ye)|0,p=p+Math.imul($,ge)|0,s=s+Math.imul($,me)|0,s=s+Math.imul(z,ge)|0,m=m+Math.imul(z,me)|0,p=p+Math.imul(G,be)|0,s=s+Math.imul(G,we)|0,s=s+Math.imul(V,be)|0,m=m+Math.imul(V,we)|0,p=p+Math.imul(j,_e)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(W,_e)|0,m=m+Math.imul(W,xe)|0;var Br=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Br>>>26)|0,Br&=67108863,p=Math.imul(te,le),s=Math.imul(te,ce),s=s+Math.imul(re,le)|0,m=Math.imul(re,ce),p=p+Math.imul(Q,de)|0,s=s+Math.imul(Q,pe)|0,s=s+Math.imul(ee,de)|0,m=m+Math.imul(ee,pe)|0,p=p+Math.imul(Y,ve)|0,s=s+Math.imul(Y,ye)|0,s=s+Math.imul(X,ve)|0,m=m+Math.imul(X,ye)|0,p=p+Math.imul(Z,ge)|0,s=s+Math.imul(Z,me)|0,s=s+Math.imul(J,ge)|0,m=m+Math.imul(J,me)|0,p=p+Math.imul($,be)|0,s=s+Math.imul($,we)|0,s=s+Math.imul(z,be)|0,m=m+Math.imul(z,we)|0,p=p+Math.imul(G,_e)|0,s=s+Math.imul(G,xe)|0,s=s+Math.imul(V,_e)|0,m=m+Math.imul(V,xe)|0;var Ar=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,p=Math.imul(te,de),s=Math.imul(te,pe),s=s+Math.imul(re,de)|0,m=Math.imul(re,pe),p=p+Math.imul(Q,ve)|0,s=s+Math.imul(Q,ye)|0,s=s+Math.imul(ee,ve)|0,m=m+Math.imul(ee,ye)|0,p=p+Math.imul(Y,ge)|0,s=s+Math.imul(Y,me)|0,s=s+Math.imul(X,ge)|0,m=m+Math.imul(X,me)|0,p=p+Math.imul(Z,be)|0,s=s+Math.imul(Z,we)|0,s=s+Math.imul(J,be)|0,m=m+Math.imul(J,we)|0,p=p+Math.imul($,_e)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(z,_e)|0,m=m+Math.imul(z,xe)|0;var Rr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,p=Math.imul(te,ve),s=Math.imul(te,ye),s=s+Math.imul(re,ve)|0,m=Math.imul(re,ye),p=p+Math.imul(Q,ge)|0,s=s+Math.imul(Q,me)|0,s=s+Math.imul(ee,ge)|0,m=m+Math.imul(ee,me)|0,p=p+Math.imul(Y,be)|0,s=s+Math.imul(Y,we)|0,s=s+Math.imul(X,be)|0,m=m+Math.imul(X,we)|0,p=p+Math.imul(Z,_e)|0,s=s+Math.imul(Z,xe)|0,s=s+Math.imul(J,_e)|0,m=m+Math.imul(J,xe)|0;var qr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(qr>>>26)|0,qr&=67108863,p=Math.imul(te,ge),s=Math.imul(te,me),s=s+Math.imul(re,ge)|0,m=Math.imul(re,me),p=p+Math.imul(Q,be)|0,s=s+Math.imul(Q,we)|0,s=s+Math.imul(ee,be)|0,m=m+Math.imul(ee,we)|0,p=p+Math.imul(Y,_e)|0,s=s+Math.imul(Y,xe)|0,s=s+Math.imul(X,_e)|0,m=m+Math.imul(X,xe)|0;var Tr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,p=Math.imul(te,be),s=Math.imul(te,we),s=s+Math.imul(re,be)|0,m=Math.imul(re,we),p=p+Math.imul(Q,_e)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ee,_e)|0,m=m+Math.imul(ee,xe)|0;var kr=(y+p|0)+((s&8191)<<13)|0;y=(m+(s>>>13)|0)+(kr>>>26)|0,kr&=67108863,p=Math.imul(te,_e),s=Math.imul(te,xe),s=s+Math.imul(re,_e)|0,m=Math.imul(re,xe);var Ir=(y+p|0)+((s&8191)<<13)|0;return y=(m+(s>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,d[0]=ci,d[1]=Ue,d[2]=Le,d[3]=gr,d[4]=mr,d[5]=br,d[6]=wr,d[7]=_r,d[8]=xr,d[9]=Mr,d[10]=Er,d[11]=Sr,d[12]=Br,d[13]=Ar,d[14]=Rr,d[15]=qr,d[16]=Tr,d[17]=kr,d[18]=Ir,y!==0&&(d[19]=y,c.length++),c};Math.imul||(P=O);function H(E,h,g){g.negative=h.negative^E.negative,g.length=E.length+h.length;for(var c=0,o=0,u=0;u<g.length-1;u++){var d=o;o=0;for(var y=c&67108863,p=Math.min(u,h.length-1),s=Math.max(0,u-E.length+1);s<=p;s++){var m=u-s,_=E.words[m]|0,l=h.words[s]|0,x=_*l,I=x&67108863;d=d+(x/67108864|0)|0,I=I+y|0,y=I&67108863,d=d+(I>>>26)|0,o+=d>>>26,d&=67108863}g.words[u]=y,c=d,d=o}return c!==0?g.words[u]=c:g.length--,g.strip()}function Me(E,h,g){var c=new F;return c.mulp(E,h,g)}n.prototype.mulTo=function(h,g){var c,o=this.length+h.length;return this.length===10&&h.length===10?c=P(this,h,g):o<63?c=O(this,h,g):o<1024?c=H(this,h,g):c=Me(this,h,g),c};function F(E,h){this.x=E,this.y=h}F.prototype.makeRBT=function(h){for(var g=new Array(h),c=n.prototype._countBits(h)-1,o=0;o<h;o++)g[o]=this.revBin(o,c,h);return g},F.prototype.revBin=function(h,g,c){if(h===0||h===c-1)return h;for(var o=0,u=0;u<g;u++)o|=(h&1)<<g-u-1,h>>=1;return o},F.prototype.permute=function(h,g,c,o,u,d){for(var y=0;y<d;y++)o[y]=g[h[y]],u[y]=c[h[y]]},F.prototype.transform=function(h,g,c,o,u,d){this.permute(d,h,g,c,o,u);for(var y=1;y<u;y<<=1)for(var p=y<<1,s=Math.cos(2*Math.PI/p),m=Math.sin(2*Math.PI/p),_=0;_<u;_+=p)for(var l=s,x=m,I=0;I<y;I++){var D=c[_+I],C=o[_+I],L=c[_+I+y],U=o[_+I+y],N=l*L-x*U;U=l*U+x*L,L=N,c[_+I]=D+L,o[_+I]=C+U,c[_+I+y]=D-L,o[_+I+y]=C-U,I!==p&&(N=s*l-m*x,x=s*x+m*l,l=N)}},F.prototype.guessLen13b=function(h,g){var c=Math.max(g,h)|1,o=c&1,u=0;for(c=c/2|0;c;c=c>>>1)u++;return 1<<u+1+o},F.prototype.conjugate=function(h,g,c){if(!(c<=1))for(var o=0;o<c/2;o++){var u=h[o];h[o]=h[c-o-1],h[c-o-1]=u,u=g[o],g[o]=-g[c-o-1],g[c-o-1]=-u}},F.prototype.normalize13b=function(h,g){for(var c=0,o=0;o<g/2;o++){var u=Math.round(h[2*o+1]/g)*8192+Math.round(h[2*o]/g)+c;h[o]=u&67108863,u<67108864?c=0:c=u/67108864|0}return h},F.prototype.convert13b=function(h,g,c,o){for(var u=0,d=0;d<g;d++)u=u+(h[d]|0),c[2*d]=u&8191,u=u>>>13,c[2*d+1]=u&8191,u=u>>>13;for(d=2*g;d<o;++d)c[d]=0;r(u===0),r((u&-8192)===0)},F.prototype.stub=function(h){for(var g=new Array(h),c=0;c<h;c++)g[c]=0;return g},F.prototype.mulp=function(h,g,c){var o=2*this.guessLen13b(h.length,g.length),u=this.makeRBT(o),d=this.stub(o),y=new Array(o),p=new Array(o),s=new Array(o),m=new Array(o),_=new Array(o),l=new Array(o),x=c.words;x.length=o,this.convert13b(h.words,h.length,y,o),this.convert13b(g.words,g.length,m,o),this.transform(y,d,p,s,o,u),this.transform(m,d,_,l,o,u);for(var I=0;I<o;I++){var D=p[I]*_[I]-s[I]*l[I];s[I]=p[I]*l[I]+s[I]*_[I],p[I]=D}return this.conjugate(p,s,o),this.transform(p,s,x,d,o,u),this.conjugate(x,d,o),this.normalize13b(x,o),c.negative=h.negative^g.negative,c.length=h.length+g.length,c.strip()},n.prototype.mul=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},n.prototype.mulf=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),Me(this,h,g)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var g=0,c=0;c<this.length;c++){var o=(this.words[c]|0)*h,u=(o&67108863)+(g&67108863);g>>=26,g+=o/67108864|0,g+=u>>>26,this.words[c]=u&67108863}return g!==0&&(this.words[c]=g,this.length++),this.length=h===0?1:this.length,this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var g=T(h);if(g.length===0)return new n(1);for(var c=this,o=0;o<g.length&&g[o]===0;o++,c=c.sqr());if(++o<g.length)for(var u=c.sqr();o<g.length;o++,u=u.sqr())g[o]!==0&&(c=c.mul(u));return c},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,o=67108863>>>26-g<<26-g,u;if(g!==0){var d=0;for(u=0;u<this.length;u++){var y=this.words[u]&o,p=(this.words[u]|0)-y<<g;this.words[u]=p|d,d=y>>>26-g}d&&(this.words[u]=d,this.length++)}if(c!==0){for(u=this.length-1;u>=0;u--)this.words[u+c]=this.words[u];for(u=0;u<c;u++)this.words[u]=0;this.length+=c}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,g,c){r(typeof h=="number"&&h>=0);var o;g?o=(g-g%26)/26:o=0;var u=h%26,d=Math.min((h-u)/26,this.length),y=67108863^67108863>>>u<<u,p=c;if(o-=d,o=Math.max(0,o),p){for(var s=0;s<d;s++)p.words[s]=this.words[s];p.length=d}if(d!==0)if(this.length>d)for(this.length-=d,s=0;s<this.length;s++)this.words[s]=this.words[s+d];else this.words[0]=0,this.length=1;var m=0;for(s=this.length-1;s>=0&&(m!==0||s>=o);s--){var _=this.words[s]|0;this.words[s]=m<<26-u|_>>>u,m=_&y}return p&&m!==0&&(p.words[p.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,g,c){return r(this.negative===0),this.iushrn(h,g,c)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,o=1<<g;if(this.length<=c)return!1;var u=this.words[c];return!!(u&o)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(g!==0&&c++,this.length=Math.min(c,this.length),g!==0){var o=67108863^67108863>>>g<<g;this.words[this.length-1]&=o}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,g,c){var o=h.length+c,u;this._expand(o);var d,y=0;for(u=0;u<h.length;u++){d=(this.words[u+c]|0)+y;var p=(h.words[u]|0)*g;d-=p&67108863,y=(d>>26)-(p/67108864|0),this.words[u+c]=d&67108863}for(;u<this.length-c;u++)d=(this.words[u+c]|0)+y,y=d>>26,this.words[u+c]=d&67108863;if(y===0)return this.strip();for(r(y===-1),y=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+y,y=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,g){var c=this.length-h.length,o=this.clone(),u=h,d=u.words[u.length-1]|0,y=this._countBits(d);c=26-y,c!==0&&(u=u.ushln(c),o.iushln(c),d=u.words[u.length-1]|0);var p=o.length-u.length,s;if(g!=="mod"){s=new n(null),s.length=p+1,s.words=new Array(s.length);for(var m=0;m<s.length;m++)s.words[m]=0}var _=o.clone()._ishlnsubmul(u,1,p);_.negative===0&&(o=_,s&&(s.words[p]=1));for(var l=p-1;l>=0;l--){var x=(o.words[u.length+l]|0)*67108864+(o.words[u.length+l-1]|0);for(x=Math.min(x/d|0,67108863),o._ishlnsubmul(u,x,l);o.negative!==0;)x--,o.negative=0,o._ishlnsubmul(u,1,l),o.isZero()||(o.negative^=1);s&&(s.words[l]=x)}return s&&s.strip(),o.strip(),g!=="div"&&c!==0&&o.iushrn(c),{div:s||null,mod:o}},n.prototype.divmod=function(h,g,c){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var o,u,d;return this.negative!==0&&h.negative===0?(d=this.neg().divmod(h,g),g!=="mod"&&(o=d.div.neg()),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.iadd(h)),{div:o,mod:u}):this.negative===0&&h.negative!==0?(d=this.divmod(h.neg(),g),g!=="mod"&&(o=d.div.neg()),{div:o,mod:d.mod}):(this.negative&h.negative)!==0?(d=this.neg().divmod(h.neg(),g),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.isub(h)),{div:d.div,mod:u}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,g)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var c=g.div.negative!==0?g.mod.isub(h):g.mod,o=h.ushrn(1),u=h.andln(1),d=c.cmp(o);return d<0||u===1&&d===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},n.prototype.modn=function(h){r(h<=67108863);for(var g=(1<<26)%h,c=0,o=this.length-1;o>=0;o--)c=(g*c+(this.words[o]|0))%h;return c},n.prototype.idivn=function(h){r(h<=67108863);for(var g=0,c=this.length-1;c>=0;c--){var o=(this.words[c]|0)+g*67108864;this.words[c]=o/h|0,g=o%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var o=new n(1),u=new n(0),d=new n(0),y=new n(1),p=0;g.isEven()&&c.isEven();)g.iushrn(1),c.iushrn(1),++p;for(var s=c.clone(),m=g.clone();!g.isZero();){for(var _=0,l=1;(g.words[0]&l)===0&&_<26;++_,l<<=1);if(_>0)for(g.iushrn(_);_-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(s),u.isub(m)),o.iushrn(1),u.iushrn(1);for(var x=0,I=1;(c.words[0]&I)===0&&x<26;++x,I<<=1);if(x>0)for(c.iushrn(x);x-- >0;)(d.isOdd()||y.isOdd())&&(d.iadd(s),y.isub(m)),d.iushrn(1),y.iushrn(1);g.cmp(c)>=0?(g.isub(c),o.isub(d),u.isub(y)):(c.isub(g),d.isub(o),y.isub(u))}return{a:d,b:y,gcd:c.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var o=new n(1),u=new n(0),d=c.clone();g.cmpn(1)>0&&c.cmpn(1)>0;){for(var y=0,p=1;(g.words[0]&p)===0&&y<26;++y,p<<=1);if(y>0)for(g.iushrn(y);y-- >0;)o.isOdd()&&o.iadd(d),o.iushrn(1);for(var s=0,m=1;(c.words[0]&m)===0&&s<26;++s,m<<=1);if(s>0)for(c.iushrn(s);s-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);g.cmp(c)>=0?(g.isub(c),o.isub(u)):(c.isub(g),u.isub(o))}var _;return g.cmpn(1)===0?_=o:_=u,_.cmpn(0)<0&&_.iadd(h),_},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),c=h.clone();g.negative=0,c.negative=0;for(var o=0;g.isEven()&&c.isEven();o++)g.iushrn(1),c.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;c.isEven();)c.iushrn(1);var u=g.cmp(c);if(u<0){var d=g;g=c,c=d}else if(u===0||c.cmpn(1)===0)break;g.isub(c)}while(!0);return c.iushln(o)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var g=h%26,c=(h-g)/26,o=1<<g;if(this.length<=c)return this._expand(c+1),this.words[c]|=o,this;for(var u=o,d=c;u!==0&&d<this.length;d++){var y=this.words[d]|0;y+=u,u=y>>>26,y&=67108863,this.words[d]=y}return u!==0&&(this.words[d]=u,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this.strip();var c;if(this.length>1)c=1;else{g&&(h=-h),r(h<=67108863,"Number is too big");var o=this.words[0]|0;c=o===h?0:o<h?-1:1}return this.negative!==0?-c|0:c},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var g=0,c=this.length-1;c>=0;c--){var o=this.words[c]|0,u=h.words[c]|0;if(o!==u){o<u?g=-1:o>u&&(g=1);break}}return g},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new Ce(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var K={k256:null,p224:null,p192:null,p25519:null};function Fe(E,h){this.name=E,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Fe.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},Fe.prototype.ireduce=function(h){var g=h,c;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),c=g.bitLength();while(c>this.n);var o=c<this.n?-1:g.ucmp(this.p);return o===0?(g.words[0]=0,g.length=1):o>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},Fe.prototype.split=function(h,g){h.iushrn(this.n,0,g)},Fe.prototype.imulK=function(h){return h.imul(this.k)};function je(){Fe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(je,Fe),je.prototype.split=function(h,g){for(var c=4194303,o=Math.min(h.length,9),u=0;u<o;u++)g.words[u]=h.words[u];if(g.length=o,h.length<=9){h.words[0]=0,h.length=1;return}var d=h.words[9];for(g.words[g.length++]=d&c,u=10;u<h.length;u++){var y=h.words[u]|0;h.words[u-10]=(y&c)<<4|d>>>22,d=y}d>>>=22,h.words[u-10]=d,d===0&&h.length>10?h.length-=10:h.length-=9},je.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,c=0;c<h.length;c++){var o=h.words[c]|0;g+=o*977,h.words[c]=g&67108863,g=o*64+(g/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function nr(){Fe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(nr,Fe);function Ve(){Fe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(Ve,Fe);function Tt(){Fe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(Tt,Fe),Tt.prototype.imulK=function(h){for(var g=0,c=0;c<h.length;c++){var o=(h.words[c]|0)*19+g,u=o&67108863;o>>>=26,h.words[c]=u,g=o}return g!==0&&(h.words[h.length++]=g),h},n._prime=function(h){if(K[h])return K[h];var g;if(h==="k256")g=new je;else if(h==="p224")g=new nr;else if(h==="p192")g=new Ve;else if(h==="p25519")g=new Tt;else throw new Error("Unknown prime "+h);return K[h]=g,g};function Ce(E){if(typeof E=="string"){var h=n._prime(E);this.m=h.p,this.prime=h}else r(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}Ce.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},Ce.prototype._verify2=function(h,g){r((h.negative|g.negative)===0,"red works only with positives"),r(h.red&&h.red===g.red,"red works only with red numbers")},Ce.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},Ce.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Ce.prototype.add=function(h,g){this._verify2(h,g);var c=h.add(g);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},Ce.prototype.iadd=function(h,g){this._verify2(h,g);var c=h.iadd(g);return c.cmp(this.m)>=0&&c.isub(this.m),c},Ce.prototype.sub=function(h,g){this._verify2(h,g);var c=h.sub(g);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},Ce.prototype.isub=function(h,g){this._verify2(h,g);var c=h.isub(g);return c.cmpn(0)<0&&c.iadd(this.m),c},Ce.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},Ce.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},Ce.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},Ce.prototype.isqr=function(h){return this.imul(h,h.clone())},Ce.prototype.sqr=function(h){return this.mul(h,h)},Ce.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(r(g%2===1),g===3){var c=this.m.add(new n(1)).iushrn(2);return this.pow(h,c)}for(var o=this.m.subn(1),u=0;!o.isZero()&&o.andln(1)===0;)u++,o.iushrn(1);r(!o.isZero());var d=new n(1).toRed(this),y=d.redNeg(),p=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,p).cmp(y)!==0;)s.redIAdd(y);for(var m=this.pow(s,o),_=this.pow(h,o.addn(1).iushrn(1)),l=this.pow(h,o),x=u;l.cmp(d)!==0;){for(var I=l,D=0;I.cmp(d)!==0;D++)I=I.redSqr();r(D<x);var C=this.pow(m,new n(1).iushln(x-D-1));_=_.redMul(C),m=C.redSqr(),l=l.redMul(m),x=D}return _},Ce.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},Ce.prototype.pow=function(h,g){if(g.isZero())return new n(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var c=4,o=new Array(1<<c);o[0]=new n(1).toRed(this),o[1]=h;for(var u=2;u<o.length;u++)o[u]=this.mul(o[u-1],h);var d=o[0],y=0,p=0,s=g.bitLength()%26;for(s===0&&(s=26),u=g.length-1;u>=0;u--){for(var m=g.words[u],_=s-1;_>=0;_--){var l=m>>_&1;if(d!==o[0]&&(d=this.sqr(d)),l===0&&y===0){p=0;continue}y<<=1,y|=l,p++,!(p!==c&&(u!==0||_!==0))&&(d=this.mul(d,o[y]),p=0,y=0)}s=26}return d},Ce.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},Ce.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},n.mont=function(h){return new st(h)};function st(E){Ce.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}i(st,Ce),st.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},st.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},st.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var c=h.imul(g),o=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new n(0)._forceRed(this);var c=h.mul(g),o=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(typeof Fu>"u"||Fu,n1)});var o1=B((r9,Wu)=>{b();var ju;Wu.exports=function(e){return ju||(ju=new yr(null)),ju.generate(e)};function yr(t){this.rand=t}Wu.exports.Rand=yr;yr.prototype.generate=function(e){return this._rand(e)};yr.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(yr.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Hu=Ku(),typeof Hu.randomBytes!="function")throw new Error("Not supported");yr.prototype._rand=function(e){return Hu.randomBytes(e)}}catch{}var Hu});var Gu=B((n9,a1)=>{b();var si=vr(),M4=o1();function ui(t){this.rand=t||new M4.Rand}a1.exports=ui;ui.create=function(e){return new ui(e)};ui.prototype._randbelow=function(e){var r=e.bitLength(),i=Math.ceil(r/8);do var n=new si(this.rand.generate(i));while(n.cmp(e)>=0);return n};ui.prototype._randrange=function(e,r){var i=r.sub(e);return e.add(this._randbelow(i))};ui.prototype.test=function(e,r,i){var n=e.bitLength(),a=si.mont(e),f=new si(1).toRed(a);r||(r=Math.max(1,n/48|0));for(var v=e.subn(1),w=0;!v.testn(w);w++);for(var S=e.shrn(w),A=v.toRed(a),q=!0;r>0;r--){var T=this._randrange(new si(2),v);i&&i(T);var O=T.toRed(a).redPow(S);if(!(O.cmp(f)===0||O.cmp(A)===0)){for(var P=1;P<w;P++){if(O=O.redSqr(),O.cmp(f)===0)return!1;if(O.cmp(A)===0)break}if(P===w)return!1}}return q};ui.prototype.getDivisor=function(e,r){var i=e.bitLength(),n=si.mont(e),a=new si(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var f=e.subn(1),v=0;!f.testn(v);v++);for(var w=e.shrn(v),S=f.toRed(n);r>0;r--){var A=this._randrange(new si(2),f),q=e.gcd(A);if(q.cmpn(1)!==0)return q;var T=A.toRed(n).redPow(w);if(!(T.cmp(a)===0||T.cmp(S)===0)){for(var O=1;O<v;O++){if(T=T.redSqr(),T.cmp(a)===0)return T.fromRed().subn(1).gcd(e);if(T.cmp(S)===0)break}if(O===v)return T=T.redSqr(),T.fromRed().subn(1).gcd(e)}}return!1}});var Yu=B((h9,u1)=>{b();var E4=Ur();u1.exports=Ju;Ju.simpleSieve=zu;Ju.fermatTest=Zu;var Je=vr(),S4=new Je(24),B4=Gu(),f1=new B4,A4=new Je(1),$u=new Je(2),R4=new Je(5),a9=new Je(16),f9=new Je(8),q4=new Je(10),T4=new Je(3),s9=new Je(7),k4=new Je(11),s1=new Je(4),u9=new Je(12),Vu=null;function I4(){if(Vu!==null)return Vu;var t=1048576,e=[];e[0]=2;for(var r=1,i=3;i<t;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&e[a]<=n&&i%e[a]!==0;a++);r!==a&&e[a]<=n||(e[r++]=i)}return Vu=e,e}function zu(t){for(var e=I4(),r=0;r<e.length;r++)if(t.modn(e[r])===0)return t.cmpn(e[r])===0;return!0}function Zu(t){var e=Je.mont(t);return $u.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)===0}function Ju(t,e){if(t<16)return e===2||e===5?new Je([140,123]):new Je([140,39]);e=new Je(e);for(var r,i;;){for(r=new Je(E4(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(A4),r.testn(1)||r.iadd($u),e.cmp($u)){if(!e.cmp(R4))for(;r.mod(q4).cmp(T4);)r.iadd(s1)}else for(;r.mod(S4).cmp(k4);)r.iadd(s1);if(i=r.shrn(1),zu(i)&&zu(r)&&Zu(i)&&Zu(r)&&f1.test(i)&&f1.test(r))return r}}});var h1=B((c9,O4)=>{O4.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var p1=B((d9,d1)=>{b();var yt=vr(),C4=Gu(),l1=new C4,D4=new yt(24),P4=new yt(11),U4=new yt(10),L4=new yt(3),N4=new yt(7),c1=Yu(),F4=Ur();d1.exports=rr;function j4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._pub=new yt(t),this}function H4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._priv=new yt(t),this}var Xa={};function W4(t,e){var r=e.toString("hex"),i=[r,t.toString(16)].join("_");if(i in Xa)return Xa[i];var n=0;if(t.isEven()||!c1.simpleSieve||!c1.fermatTest(t)||!l1.test(t))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Xa[i]=n,n;l1.test(t.shrn(1))||(n+=2);var a;switch(r){case"02":t.mod(D4).cmp(P4)&&(n+=8);break;case"05":a=t.mod(U4),a.cmp(L4)&&a.cmp(N4)&&(n+=8);break;default:n+=4}return Xa[i]=n,n}function rr(t,e,r){this.setGenerator(e),this.__prime=new yt(t),this._prime=yt.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=j4,this.setPrivateKey=H4):this._primeCode=8}Object.defineProperty(rr.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=W4(this.__prime,this.__gen)),this._primeCode}});rr.prototype.generateKeys=function(){return this._priv||(this._priv=new yt(F4(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};rr.prototype.computeSecret=function(t){t=new yt(t),t=t.toRed(this._prime);var e=t.redPow(this._priv).fromRed(),r=new R.Buffer(e.toArray()),i=this.getPrime();if(r.length<i.length){var n=new R.Buffer(i.length-r.length);n.fill(0),r=R.Buffer.concat([n,r])}return r};rr.prototype.getPublicKey=function(e){return Qa(this._pub,e)};rr.prototype.getPrivateKey=function(e){return Qa(this._priv,e)};rr.prototype.getPrime=function(t){return Qa(this.__prime,t)};rr.prototype.getGenerator=function(t){return Qa(this._gen,t)};rr.prototype.setGenerator=function(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this.__gen=t,this._gen=new yt(t),this};function Qa(t,e){var r=new R.Buffer(t.toArray());return e?r.toString(e):r}});var g1=B(Vi=>{b();var K4=Yu(),v1=h1(),Xu=p1();function G4(t){var e=new R.Buffer(v1[t].prime,"hex"),r=new R.Buffer(v1[t].gen,"hex");return new Xu(e,r)}var V4={binary:!0,hex:!0,base64:!0};function y1(t,e,r,i){return R.Buffer.isBuffer(e)||V4[e]===void 0?y1(t,"binary",e,r):(e=e||"binary",i=i||"binary",r=r||new R.Buffer([2]),R.Buffer.isBuffer(r)||(r=new R.Buffer(r,i)),typeof t=="number"?new Xu(K4(t,r),r,!0):(R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),new Xu(t,r,!0)))}Vi.DiffieHellmanGroup=Vi.createDiffieHellmanGroup=Vi.getDiffieHellman=G4;Vi.createDiffieHellman=Vi.DiffieHellman=y1});var m1=B((exports,module)=>{b();var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(e,r,i){e[r]=i}}})(),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(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(t),function(v){r[v]=t[v]}),forEach(globals,function(v){t[v]&&(r[v]=t[v])});var a=Object_keys(r),f=i.call(r,this.code);return forEach(Object_keys(r),function(v){(v in t||indexOf(a,v)===-1)&&(t[v]=r[v])}),forEach(globals,function(v){v in t||defineProp(t,v,r[v])}),document.body.removeChild(e),f};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(i){t[i]=e[i]}),r};forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(t){return t instanceof Context};exports.createScript=function(t){return exports.Script(t)};exports.createContext=Script.createContext=function(t){var e=new Context;return typeof t=="object"&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}});var _1=B(w1=>{b();var b1=zi(),$4=De(),z4=w1;z4.define=function(e,r){return new $i(e,r)};function $i(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}$i.prototype._createNamed=function(e){var r;try{r=m1().runInThisContext("(function "+this.name+`(entity) {
|
|
12
|
+
this._initNamed(entity);
|
|
13
|
+
})`)}catch{r=function(n){this._initNamed(n)}}return $4(r,e),r.prototype._initNamed=function(n){e.call(this,n)},new r(this)};$i.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(b1.decoders[e])),this.decoders[e]};$i.prototype.decode=function(e,r,i){return this._getDecoder(r).decode(e,i)};$i.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(b1.encoders[e])),this.encoders[e]};$i.prototype.encode=function(e,r,i){return this._getEncoder(r).encode(e,i)}});var M1=B(x1=>{b();var Z4=De();function gt(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}x1.Reporter=gt;gt.prototype.isError=function(e){return e instanceof Zi};gt.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};gt.prototype.restore=function(e){var r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};gt.prototype.enterKey=function(e){return this._reporterState.path.push(e)};gt.prototype.exitKey=function(e){var r=this._reporterState;r.path=r.path.slice(0,e-1)};gt.prototype.leaveKey=function(e,r,i){var n=this._reporterState;this.exitKey(e),n.obj!==null&&(n.obj[r]=i)};gt.prototype.path=function(){return this._reporterState.path.join("/")};gt.prototype.enterObject=function(){var e=this._reporterState,r=e.obj;return e.obj={},r};gt.prototype.leaveObject=function(e){var r=this._reporterState,i=r.obj;return r.obj=e,i};gt.prototype.error=function(e){var r,i=this._reporterState,n=e instanceof Zi;if(n?r=e:r=new Zi(i.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};gt.prototype.wrapResult=function(e){var r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function Zi(t,e){this.path=t,this.rethrow(e)}Z4(Zi,Error);Zi.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Zi),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var eh=B(Qu=>{b();var J4=De(),tf=Ji().Reporter,uo=rt().Buffer;function Ft(t,e){if(tf.call(this,e),!uo.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}J4(Ft,tf);Qu.DecoderBuffer=Ft;Ft.prototype.save=function(){return{offset:this.offset,reporter:tf.prototype.save.call(this)}};Ft.prototype.restore=function(e){var r=new Ft(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,tf.prototype.restore.call(this,e.reporter),r};Ft.prototype.isEmpty=function(){return this.offset===this.length};Ft.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Ft.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new Ft(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i};Ft.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function ef(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return r instanceof ef||(r=new ef(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=uo.byteLength(t);else if(uo.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}Qu.EncoderBuffer=ef;ef.prototype.join=function(e,r){return e||(e=new uo(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(e,r),r+=i.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):uo.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}});var B1=B((E9,S1)=>{b();var Y4=Ji().Reporter,X4=Ji().EncoderBuffer,Q4=Ji().DecoderBuffer,it=ji(),E1=["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"],eM=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(E1),tM=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Oe(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}S1.exports=Oe;var rM=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Oe.prototype.clone=function(){var e=this._baseState,r={};rM.forEach(function(n){r[n]=e[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};Oe.prototype._wrap=function(){var e=this._baseState;eM.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return e.children.push(n),n[r].apply(n,arguments)}},this)};Oe.prototype._init=function(e){var r=this._baseState;it(r.parent===null),e.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),it.equal(r.children.length,1,"Root node can have only one child")};Oe.prototype._useArgs=function(e){var r=this._baseState,i=e.filter(function(n){return n instanceof this.constructor},this);e=e.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(it(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),e.length!==0&&(it(r.args===null),r.args=e,r.reverseArgs=e.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var a={};return Object.keys(n).forEach(function(f){f==(f|0)&&(f|=0);var v=n[f];a[v]=f}),a}))};tM.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});E1.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return it(r.tag===null),r.tag=t,this._useArgs(i),this}});Oe.prototype.use=function(e){it(e);var r=this._baseState;return it(r.use===null),r.use=e,this};Oe.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this};Oe.prototype.def=function(e){var r=this._baseState;return it(r.default===null),r.default=e,r.optional=!0,this};Oe.prototype.explicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.explicit=e,this};Oe.prototype.implicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.implicit=e,this};Oe.prototype.obj=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};Oe.prototype.key=function(e){var r=this._baseState;return it(r.key===null),r.key=e,this};Oe.prototype.any=function(){var e=this._baseState;return e.any=!0,this};Oe.prototype.choice=function(e){var r=this._baseState;return it(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(i){return e[i]})),this};Oe.prototype.contains=function(e){var r=this._baseState;return it(r.use===null),r.contains=e,this};Oe.prototype._decode=function(e,r){var i=this._baseState;if(i.parent===null)return e.wrapResult(i.children[0]._decode(e,r));var n=i.default,a=!0,f=null;if(i.key!==null&&(f=e.enterKey(i.key)),i.optional){var v=null;if(i.explicit!==null?v=i.explicit:i.implicit!==null?v=i.implicit:i.tag!==null&&(v=i.tag),v===null&&!i.any){var w=e.save();try{i.choice===null?this._decodeGeneric(i.tag,e,r):this._decodeChoice(e,r),a=!0}catch{a=!1}e.restore(w)}else if(a=this._peekTag(e,v,i.any),e.isError(a))return a}var S;if(i.obj&&a&&(S=e.enterObject()),a){if(i.explicit!==null){var A=this._decodeTag(e,i.explicit);if(e.isError(A))return A;e=A}var q=e.offset;if(i.use===null&&i.choice===null){if(i.any)var w=e.save();var T=this._decodeTag(e,i.implicit!==null?i.implicit:i.tag,i.any);if(e.isError(T))return T;i.any?n=e.raw(w):e=T}if(r&&r.track&&i.tag!==null&&r.track(e.path(),q,e.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,e,r):n=this._decodeChoice(e,r),e.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(H){H._decode(e,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var O=new Q4(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(O,r)}}return i.obj&&a&&(n=e.leaveObject(S)),i.key!==null&&(n!==null||a===!0)?e.leaveKey(f,i.key,n):f!==null&&e.exitKey(f),n};Oe.prototype._decodeGeneric=function(e,r,i){var n=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,n.args[0],i):/str$/.test(e)?this._decodeStr(r,e,i):e==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):e==="objid"?this._decodeObjid(r,null,null,i):e==="gentime"||e==="utctime"?this._decodeTime(r,e,i):e==="null_"?this._decodeNull(r,i):e==="bool"?this._decodeBool(r,i):e==="objDesc"?this._decodeStr(r,e,i):e==="int"||e==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+e)};Oe.prototype._getUse=function(e,r){var i=this._baseState;return i.useDecoder=this._use(e,r),it(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Oe.prototype._decodeChoice=function(e,r){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(f){var v=e.save(),w=i.choice[f];try{var S=w._decode(e,r);if(e.isError(S))return!1;n={type:f,value:S},a=!0}catch{return e.restore(v),!1}return!0},this),a?n:e.error("Choice not matched")};Oe.prototype._createEncoderBuffer=function(e){return new X4(e,this.reporter)};Oe.prototype._encode=function(e,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===e)){var a=this._encodeValue(e,r,i);if(a!==void 0&&!this._skipDefault(a,r,i))return a}};Oe.prototype._encodeValue=function(e,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(e,r||new Y4);var w=null;if(this.reporter=r,n.optional&&e===void 0)if(n.default!==null)e=n.default;else return;var a=null,f=!1;if(n.any)w=this._createEncoderBuffer(e);else if(n.choice)w=this._encodeChoice(e,r);else if(n.contains)a=this._getUse(n.contains,i)._encode(e,r),f=!0;else if(n.children)a=n.children.map(function(q){if(q._baseState.tag==="null_")return q._encode(null,r,e);if(q._baseState.key===null)return r.error("Child should have a key");var T=r.enterKey(q._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");var O=q._encode(e[q._baseState.key],r,e);return r.leaveKey(T),O},this).filter(function(q){return q}),a=this._createEncoderBuffer(a);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");var v=this.clone();v._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(q){var T=this._baseState;return this._getUse(T.args[0],e)._encode(q,r)},v))}else n.use!==null?w=this._getUse(n.use,i)._encode(e,r):(a=this._encodePrimitive(n.tag,e),f=!0);var w;if(!n.any&&n.choice===null){var S=n.implicit!==null?n.implicit:n.tag,A=n.implicit===null?"universal":"context";S===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(w=this._encodeComposite(S,f,A,a))}return n.explicit!==null&&(w=this._encodeComposite(n.explicit,!1,"context",w)),w};Oe.prototype._encodeChoice=function(e,r){var i=this._baseState,n=i.choice[e.type];return n||it(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,r)};Oe.prototype._encodePrimitive=function(e,r){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};Oe.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Oe.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}});var Ji=B(A1=>{b();var rf=A1;rf.Reporter=M1().Reporter;rf.DecoderBuffer=eh().DecoderBuffer;rf.EncoderBuffer=eh().EncoderBuffer;rf.Node=B1()});var q1=B(hi=>{b();var R1=th();hi.tagClass={0:"universal",1:"application",2:"context",3:"private"};hi.tagClassByName=R1._reverse(hi.tagClass);hi.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"};hi.tagByName=R1._reverse(hi.tag)});var th=B(k1=>{b();var T1=k1;T1._reverse=function(e){var r={};return Object.keys(e).forEach(function(i){(i|0)==i&&(i=i|0);var n=e[i];r[n]=i}),r};T1.der=q1()});var nh=B((I9,D1)=>{b();var iM=De(),rh=zi(),nf=rh.base,nM=rh.bignum,I1=rh.constants.der;function O1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new ft,this.tree._init(t.body)}D1.exports=O1;O1.prototype.decode=function(e,r){return e instanceof nf.DecoderBuffer||(e=new nf.DecoderBuffer(e,r)),this.tree._decode(e,r)};function ft(t){nf.Node.call(this,"der",t)}iM(ft,nf.Node);ft.prototype._peekTag=function(e,r,i){if(e.isEmpty())return!1;var n=e.save(),a=ih(e,'Failed to peek tag: "'+r+'"');return e.isError(a)?a:(e.restore(n),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||i)};ft.prototype._decodeTag=function(e,r,i){var n=ih(e,'Failed to decode tag of "'+r+'"');if(e.isError(n))return n;var a=C1(e,n.primitive,'Failed to get length of "'+r+'"');if(e.isError(a))return a;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(n.primitive||a!==null)return e.skip(a,'Failed to match body of: "'+r+'"');var f=e.save(),v=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(v)?v:(a=e.offset-f.offset,e.restore(f),e.skip(a,'Failed to match body of: "'+r+'"'))};ft.prototype._skipUntilEnd=function(e,r){for(;;){var i=ih(e,r);if(e.isError(i))return i;var n=C1(e,i.primitive,r);if(e.isError(n))return n;var a;if(i.primitive||n!==null?a=e.skip(n):a=this._skipUntilEnd(e,r),e.isError(a))return a;if(i.tagStr==="end")break}};ft.prototype._decodeList=function(e,r,i,n){for(var a=[];!e.isEmpty();){var f=this._peekTag(e,"end");if(e.isError(f))return f;var v=i.decode(e,"der",n);if(e.isError(v)&&f)break;a.push(v)}return a};ft.prototype._decodeStr=function(e,r){if(r==="bitstr"){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}else if(r==="bmpstr"){var n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var a="",f=0;f<n.length/2;f++)a+=String.fromCharCode(n.readUInt16BE(f*2));return a}else if(r==="numstr"){var v=e.raw().toString("ascii");return this._isNumstr(v)?v:e.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return e.raw();if(r==="objDesc")return e.raw();if(r==="printstr"){var w=e.raw().toString("ascii");return this._isPrintstr(w)?w:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?e.raw().toString():e.error("Decoding of string type: "+r+" unsupported")}};ft.prototype._decodeObjid=function(e,r,i){for(var n,a=[],f=0;!e.isEmpty();){var v=e.readUInt8();f<<=7,f|=v&127,(v&128)===0&&(a.push(f),f=0)}v&128&&a.push(f);var w=a[0]/40|0,S=a[0]%40;if(i?n=a:n=[w,S].concat(a.slice(1)),r){var A=r[n.join(" ")];A===void 0&&(A=r[n.join(".")]),A!==void 0&&(n=A)}return n};ft.prototype._decodeTime=function(e,r){var i=e.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,a=i.slice(4,6)|0,f=i.slice(6,8)|0,v=i.slice(8,10)|0,w=i.slice(10,12)|0,S=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,a=i.slice(2,4)|0,f=i.slice(4,6)|0,v=i.slice(6,8)|0,w=i.slice(8,10)|0,S=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,a-1,f,v,w,S,0)};ft.prototype._decodeNull=function(e){return null};ft.prototype._decodeBool=function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0};ft.prototype._decodeInt=function(e,r){var i=e.raw(),n=new nM(i);return r&&(n=r[n.toString(10)]||n),n};ft.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function ih(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var i=I1.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var a=r;for(r=0;(a&128)===128;){if(a=t.readUInt8(e),t.isError(a))return a;r<<=7,r|=a&127}}else r&=31;var f=I1.tag[r];return{cls:i,primitive:n,tag:r,tagStr:f}}function C1(t,e,r){var i=t.readUInt8(r);if(t.isError(i))return i;if(!e&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return t.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var f=t.readUInt8(r);if(t.isError(f))return f;i|=f}return i}});var U1=B((C9,P1)=>{b();var oM=De(),aM=rt().Buffer,oh=nh();function ah(t){oh.call(this,t),this.enc="pem"}oM(ah,oh);P1.exports=ah;ah.prototype.decode=function(e,r){for(var i=e.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,f=-1,v=-1,w=0;w<i.length;w++){var S=i[w].match(a);if(S!==null&&S[2]===n)if(f===-1){if(S[1]!=="BEGIN")break;f=w}else{if(S[1]!=="END")break;v=w;break}}if(f===-1||v===-1)throw new Error("PEM section not found for: "+n);var A=i.slice(f+1,v).join("");A.replace(/[^a-z0-9\+\/=]+/gi,"");var q=new aM(A,"base64");return oh.prototype.decode.call(this,q,r)}});var F1=B(N1=>{b();var L1=N1;L1.der=nh();L1.pem=U1()});var sh=B((L9,K1)=>{b();var fM=De(),ir=rt().Buffer,j1=zi(),H1=j1.base,fh=j1.constants.der;function W1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new St,this.tree._init(t.body)}K1.exports=W1;W1.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function St(t){H1.Node.call(this,"der",t)}fM(St,H1.Node);St.prototype._encodeComposite=function(e,r,i,n){var a=sM(e,r,i,this.reporter);if(n.length<128){var w=new ir(2);return w[0]=a,w[1]=n.length,this._createEncoderBuffer([w,n])}for(var f=1,v=n.length;v>=256;v>>=8)f++;var w=new ir(2+f);w[0]=a,w[1]=128|f;for(var v=1+f,S=n.length;S>0;v--,S>>=8)w[v]=S&255;return this._createEncoderBuffer([w,n])};St.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){for(var i=new ir(e.length*2),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):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(r)?this._createEncoderBuffer(e):r==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+r+" unsupported")};St.prototype._encodeObjid=function(e,r,i){if(typeof e=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=r[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var a=0,n=0;n<e.length;n++){var f=e[n];for(a++;f>=128;f>>=7)a++}for(var v=new ir(a),w=v.length-1,n=e.length-1;n>=0;n--){var f=e[n];for(v[w--]=f&127;(f>>=7)>0;)v[w--]=128|f&127}return this._createEncoderBuffer(v)};function mt(t){return t<10?"0"+t:t}St.prototype._encodeTime=function(e,r){var i,n=new Date(e);return r==="gentime"?i=[mt(n.getFullYear()),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[mt(n.getFullYear()%100),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};St.prototype._encodeNull=function(){return this._createEncoderBuffer("")};St.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!ir.isBuffer(e)){var i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=new ir(i)}if(ir.isBuffer(e)){var n=e.length;e.length===0&&n++;var f=new ir(n);return e.copy(f),e.length===0&&(f[0]=0),this._createEncoderBuffer(f)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var f=new Array(n),a=f.length-1;a>=0;a--)f[a]=e&255,e>>=8;return f[0]&128&&f.unshift(0),this._createEncoderBuffer(new ir(f))};St.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};St.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};St.prototype._skipDefault=function(e,r,i){var n=this._baseState,a;if(n.default===null)return!1;var f=e.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),f.length!==n.defaultBuffer.length)return!1;for(a=0;a<f.length;a++)if(f[a]!==n.defaultBuffer[a])return!1;return!0};function sM(t,e,r,i){var n;if(t==="seqof"?t="seq":t==="setof"&&(t="set"),fh.tagByName.hasOwnProperty(t))n=fh.tagByName[t];else if(typeof t=="number"&&(t|0)===t)n=t;else return i.error("Unknown tag: "+t);return n>=31?i.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=fh.tagClassByName[r||"universal"]<<6,n)}});var V1=B((F9,G1)=>{b();var uM=De(),uh=sh();function hh(t){uh.call(this,t),this.enc="pem"}uM(hh,uh);G1.exports=hh;hh.prototype.encode=function(e,r){for(var i=uh.prototype.encode.call(this,e),n=i.toString("base64"),a=["-----BEGIN "+r.label+"-----"],f=0;f<n.length;f+=64)a.push(n.slice(f,f+64));return a.push("-----END "+r.label+"-----"),a.join(`
|
|
14
|
+
`)}});var Z1=B(z1=>{b();var $1=z1;$1.der=sh();$1.pem=V1()});var zi=B(J1=>{b();var Yi=J1;Yi.bignum=vr();Yi.define=_1().define;Yi.base=Ji();Yi.constants=th();Yi.decoders=F1();Yi.encoders=Z1()});var eg=B((V9,Q1)=>{"use strict";b();var Bt=zi(),Y1=Bt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),hM=Bt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),lh=Bt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),lM=Bt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(lh),this.key("subjectPublicKey").bitstr())}),cM=Bt.define("RelativeDistinguishedName",function(){this.setof(hM)}),dM=Bt.define("RDNSequence",function(){this.seqof(cM)}),X1=Bt.define("Name",function(){this.choice({rdnSequence:this.use(dM)})}),pM=Bt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Y1),this.key("notAfter").use(Y1))}),vM=Bt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),yM=Bt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(lh),this.key("issuer").use(X1),this.key("validity").use(pM),this.key("subject").use(X1),this.key("subjectPublicKeyInfo").use(lM),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(vM).optional())}),gM=Bt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(yM),this.key("signatureAlgorithm").use(lh),this.key("signatureValue").bitstr())});Q1.exports=gM});var rg=B(Rt=>{"use strict";b();var At=zi();Rt.certificate=eg();var mM=At.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())});Rt.RSAPrivateKey=mM;var bM=At.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Rt.RSAPublicKey=bM;var tg=At.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())}),wM=At.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(tg),this.key("subjectPublicKey").bitstr())});Rt.PublicKey=wM;var _M=At.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(tg),this.key("subjectPrivateKey").octstr())});Rt.PrivateKey=_M;var xM=At.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())});Rt.EncryptedPrivateKey=xM;var MM=At.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())});Rt.DSAPrivateKey=MM;Rt.DSAparam=At.define("DSAparam",function(){this.int()});var EM=At.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),SM=At.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(EM),this.key("publicKey").optional().explicit(1).bitstr())});Rt.ECPrivateKey=SM;Rt.signature=At.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var ig=B((J9,BM)=>{BM.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var og=B((Y9,ng)=>{"use strict";b();var AM=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,RM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,qM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,TM=ao(),kM=Ya(),of=Ee().Buffer;ng.exports=function(t,e){var r=t.toString(),i=r.match(AM),n;if(i){var f="aes"+i[1],v=of.from(i[2],"hex"),w=of.from(i[3].replace(/[\r\n]/g,""),"base64"),S=TM(e,v.slice(0,8),parseInt(i[1],10)).key,A=[],q=kM.createDecipheriv(f,S,v);A.push(q.update(w)),A.push(q.final()),n=of.concat(A)}else{var a=r.match(qM);n=of.from(a[2].replace(/[\r\n]/g,""),"base64")}var T=r.match(RM)[1];return{tag:T,data:n}}});var dh=B((Q9,fg)=>{"use strict";b();var at=rg(),IM=ig(),OM=og(),CM=Ya(),DM=_u().pbkdf2Sync,ch=Ee().Buffer;function PM(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=IM[t.algorithm.decrypt.cipher.algo.join(".")],a=t.algorithm.decrypt.cipher.iv,f=t.subjectPrivateKey,v=parseInt(n.split("-")[1],10)/8,w=DM(e,r,i,v,"sha1"),S=CM.createDecipheriv(n,w,a),A=[];return A.push(S.update(f)),A.push(S.final()),ch.concat(A)}function ag(t){var e;typeof t=="object"&&!ch.isBuffer(t)&&(e=t.passphrase,t=t.key),typeof t=="string"&&(t=ch.from(t));var r=OM(t,e),i=r.tag,n=r.data,a,f;switch(i){case"CERTIFICATE":f=at.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=at.PublicKey.decode(n,"der")),a=f.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return at.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=at.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":n=at.EncryptedPrivateKey.decode(n,"der"),n=PM(n,e);case"PRIVATE KEY":switch(f=at.PrivateKey.decode(n,"der"),a=f.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return at.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:at.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=at.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return at.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return at.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:at.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=at.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}ag.signature=at.signature;fg.exports=ag});var vh=B((tR,sg)=>{b();var UM=Xn(),ph=Ee().Buffer;sg.exports=function(t,e){for(var r=ph.alloc(0),i=0,n;r.length<e;)n=LM(i++),r=ph.concat([r,UM("sha1").update(t).update(n).digest()]);return r.slice(0,e)};function LM(t){var e=ph.allocUnsafe(4);return e.writeUInt32BE(t,0),e}});var yh=B((iR,ug)=>{b();ug.exports=function(e,r){for(var i=e.length,n=-1;++n<i;)e[n]^=r[n];return e}});var gh=B((oR,lg)=>{b();var hg=vr(),NM=Ee().Buffer;function FM(t,e){return NM.from(t.toRed(hg.mont(e.modulus)).redPow(new hg(e.publicExponent)).fromRed().toArray())}lg.exports=FM});var dg=B((cg,mh)=>{b();(function(t,e){"use strict";function r(c,o){if(!c)throw new Error(o||"Assertion failed")}function i(c,o){c.super_=o;var u=function(){};u.prototype=o.prototype,c.prototype=new u,c.prototype.constructor=c}function n(c,o,u){if(n.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(c||0,o||10,u||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt().Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,u){return o.cmp(u)>0?o:u},n.min=function(o,u){return o.cmp(u)<0?o:u},n.prototype._init=function(o,u,d){if(typeof o=="number")return this._initNumber(o,u,d);if(typeof o=="object")return this._initArray(o,u,d);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var y=0;o[0]==="-"&&(y++,this.negative=1),y<o.length&&(u===16?this._parseHex(o,y,d):(this._parseBase(o,u,y),d==="le"&&this._initArray(this.toArray(),u,d)))},n.prototype._initNumber=function(o,u,d){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),u,d)},n.prototype._initArray=function(o,u,d){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var p,s,m=0;if(d==="be")for(y=o.length-1,p=0;y>=0;y-=3)s=o[y]|o[y-1]<<8|o[y-2]<<16,this.words[p]|=s<<m&67108863,this.words[p+1]=s>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);else if(d==="le")for(y=0,p=0;y<o.length;y+=3)s=o[y]|o[y+1]<<8|o[y+2]<<16,this.words[p]|=s<<m&67108863,this.words[p+1]=s>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);return this._strip()};function f(c,o){var u=c.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;r(!1,"Invalid character in "+c)}function v(c,o,u){var d=f(c,u);return u-1>=o&&(d|=f(c,u-1)<<4),d}n.prototype._parseHex=function(o,u,d){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var p=0,s=0,m;if(d==="be")for(y=o.length-1;y>=u;y-=2)m=v(o,u,y)<<p,this.words[s]|=m&67108863,p>=18?(p-=18,s+=1,this.words[s]|=m>>>26):p+=8;else{var _=o.length-u;for(y=_%2===0?u+1:u;y<o.length;y+=2)m=v(o,u,y)<<p,this.words[s]|=m&67108863,p>=18?(p-=18,s+=1,this.words[s]|=m>>>26):p+=8}this._strip()};function w(c,o,u,d){for(var y=0,p=0,s=Math.min(c.length,u),m=o;m<s;m++){var _=c.charCodeAt(m)-48;y*=d,_>=49?p=_-49+10:_>=17?p=_-17+10:p=_,r(_>=0&&p<d,"Invalid character"),y+=p}return y}n.prototype._parseBase=function(o,u,d){this.words=[0],this.length=1;for(var y=0,p=1;p<=67108863;p*=u)y++;y--,p=p/u|0;for(var s=o.length-d,m=s%y,_=Math.min(s,s-m)+d,l=0,x=d;x<_;x+=y)l=w(o,x,x+y,u),this.imuln(p),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(m!==0){var I=1;for(l=w(o,x,o.length,u),x=0;x<m;x++)I*=u;this.imuln(I),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red};function S(c,o){c.words=o.words,c.length=o.length,c.negative=o.negative,c.red=o.red}if(n.prototype._move=function(o){S(o,this)},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=A}catch{n.prototype.inspect=A}else n.prototype.inspect=A;function A(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var q=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[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];n.prototype.toString=function(o,u){o=o||10,u=u|0||1;var d;if(o===16||o==="hex"){d="";for(var y=0,p=0,s=0;s<this.length;s++){var m=this.words[s],_=((m<<y|p)&16777215).toString(16);p=m>>>24-y&16777215,y+=2,y>=26&&(y-=26,s--),p!==0||s!==this.length-1?d=q[6-_.length]+_+d:d=_+d}for(p!==0&&(d=p.toString(16)+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(o===(o|0)&&o>=2&&o<=36){var l=T[o],x=O[o];d="";var I=this.clone();for(I.negative=0;!I.isZero();){var D=I.modrn(x).toString(o);I=I.idivn(x),I.isZero()?d=D+d:d=q[l-D.length]+D+d}for(this.isZero()&&(d="0"+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(o,u){return this.toArrayLike(a,o,u)}),n.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var P=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};n.prototype.toArrayLike=function(o,u,d){this._strip();var y=this.byteLength(),p=d||Math.max(1,y);r(y<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var s=P(o,p),m=u==="le"?"LE":"BE";return this["_toArrayLike"+m](s,y),s},n.prototype._toArrayLikeLE=function(o,u){for(var d=0,y=0,p=0,s=0;p<this.length;p++){var m=this.words[p]<<s|y;o[d++]=m&255,d<o.length&&(o[d++]=m>>8&255),d<o.length&&(o[d++]=m>>16&255),s===6?(d<o.length&&(o[d++]=m>>24&255),y=0,s=0):(y=m>>>24,s+=2)}if(d<o.length)for(o[d++]=y;d<o.length;)o[d++]=0},n.prototype._toArrayLikeBE=function(o,u){for(var d=o.length-1,y=0,p=0,s=0;p<this.length;p++){var m=this.words[p]<<s|y;o[d--]=m&255,d>=0&&(o[d--]=m>>8&255),d>=0&&(o[d--]=m>>16&255),s===6?(d>=0&&(o[d--]=m>>24&255),y=0,s=0):(y=m>>>24,s+=2)}if(d>=0)for(o[d--]=y;d>=0;)o[d--]=0},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var u=o,d=0;return u>=4096&&(d+=13,u>>>=13),u>=64&&(d+=7,u>>>=7),u>=8&&(d+=4,u>>>=4),u>=2&&(d+=2,u>>>=2),d+u},n.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,d=0;return(u&8191)===0&&(d+=13,u>>>=13),(u&127)===0&&(d+=7,u>>>=7),(u&15)===0&&(d+=4,u>>>=4),(u&3)===0&&(d+=2,u>>>=2),(u&1)===0&&d++,d},n.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function H(c){for(var o=new Array(c.bitLength()),u=0;u<o.length;u++){var d=u/26|0,y=u%26;o[u]=c.words[d]>>>y&1}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var d=this._zeroBits(this.words[u]);if(o+=d,d!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this._strip()},n.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var d=0;d<u.length;d++)this.words[d]=this.words[d]&o.words[d];return this.length=u.length,this._strip()},n.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var u,d;this.length>o.length?(u=this,d=o):(u=o,d=this);for(var y=0;y<d.length;y++)this.words[y]=u.words[y]^d.words[y];if(this!==u)for(;y<u.length;y++)this.words[y]=u.words[y];return this.length=u.length,this._strip()},n.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,d=o%26;this._expand(u),d>0&&u--;for(var y=0;y<u;y++)this.words[y]=~this.words[y]&67108863;return d>0&&(this.words[y]=~this.words[y]&67108863>>26-d),this._strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,u){r(typeof o=="number"&&o>=0);var d=o/26|0,y=o%26;return this._expand(d+1),u?this.words[d]=this.words[d]|1<<y:this.words[d]=this.words[d]&~(1<<y),this._strip()},n.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var d,y;this.length>o.length?(d=this,y=o):(d=o,y=this);for(var p=0,s=0;s<y.length;s++)u=(d.words[s]|0)+(y.words[s]|0)+p,this.words[s]=u&67108863,p=u>>>26;for(;p!==0&&s<d.length;s++)u=(d.words[s]|0)+p,this.words[s]=u&67108863,p=u>>>26;if(this.length=d.length,p!==0)this.words[this.length]=p,this.length++;else if(d!==this)for(;s<d.length;s++)this.words[s]=d.words[s];return this},n.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var d=this.cmp(o);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,p;d>0?(y=this,p=o):(y=o,p=this);for(var s=0,m=0;m<p.length;m++)u=(y.words[m]|0)-(p.words[m]|0)+s,s=u>>26,this.words[m]=u&67108863;for(;s!==0&&m<y.length;m++)u=(y.words[m]|0)+s,s=u>>26,this.words[m]=u&67108863;if(s===0&&m<y.length&&y!==this)for(;m<y.length;m++)this.words[m]=y.words[m];return this.length=Math.max(this.length,m),y!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function Me(c,o,u){u.negative=o.negative^c.negative;var d=c.length+o.length|0;u.length=d,d=d-1|0;var y=c.words[0]|0,p=o.words[0]|0,s=y*p,m=s&67108863,_=s/67108864|0;u.words[0]=m;for(var l=1;l<d;l++){for(var x=_>>>26,I=_&67108863,D=Math.min(l,o.length-1),C=Math.max(0,l-c.length+1);C<=D;C++){var L=l-C|0;y=c.words[L]|0,p=o.words[C]|0,s=y*p+I,x+=s/67108864|0,I=s&67108863}u.words[l]=I|0,_=x|0}return _!==0?u.words[l]=_|0:u.length--,u._strip()}var F=function(o,u,d){var y=o.words,p=u.words,s=d.words,m=0,_,l,x,I=y[0]|0,D=I&8191,C=I>>>13,L=y[1]|0,U=L&8191,N=L>>>13,bt=y[2]|0,j=bt&8191,W=bt>>>13,Qi=y[3]|0,G=Qi&8191,V=Qi>>>13,en=y[4]|0,$=en&8191,z=en>>>13,tn=y[5]|0,Z=tn&8191,J=tn>>>13,rn=y[6]|0,Y=rn&8191,X=rn>>>13,nn=y[7]|0,Q=nn&8191,ee=nn>>>13,on=y[8]|0,te=on&8191,re=on>>>13,an=y[9]|0,ie=an&8191,ne=an>>>13,fn=p[0]|0,oe=fn&8191,ae=fn>>>13,sn=p[1]|0,fe=sn&8191,se=sn>>>13,un=p[2]|0,ue=un&8191,he=un>>>13,hn=p[3]|0,le=hn&8191,ce=hn>>>13,ln=p[4]|0,de=ln&8191,pe=ln>>>13,cn=p[5]|0,ve=cn&8191,ye=cn>>>13,dn=p[6]|0,ge=dn&8191,me=dn>>>13,pn=p[7]|0,be=pn&8191,we=pn>>>13,vn=p[8]|0,_e=vn&8191,xe=vn>>>13,ci=p[9]|0,Ue=ci&8191,Le=ci>>>13;d.negative=o.negative^u.negative,d.length=19,_=Math.imul(D,oe),l=Math.imul(D,ae),l=l+Math.imul(C,oe)|0,x=Math.imul(C,ae);var gr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(gr>>>26)|0,gr&=67108863,_=Math.imul(U,oe),l=Math.imul(U,ae),l=l+Math.imul(N,oe)|0,x=Math.imul(N,ae),_=_+Math.imul(D,fe)|0,l=l+Math.imul(D,se)|0,l=l+Math.imul(C,fe)|0,x=x+Math.imul(C,se)|0;var mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,_=Math.imul(j,oe),l=Math.imul(j,ae),l=l+Math.imul(W,oe)|0,x=Math.imul(W,ae),_=_+Math.imul(U,fe)|0,l=l+Math.imul(U,se)|0,l=l+Math.imul(N,fe)|0,x=x+Math.imul(N,se)|0,_=_+Math.imul(D,ue)|0,l=l+Math.imul(D,he)|0,l=l+Math.imul(C,ue)|0,x=x+Math.imul(C,he)|0;var br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(br>>>26)|0,br&=67108863,_=Math.imul(G,oe),l=Math.imul(G,ae),l=l+Math.imul(V,oe)|0,x=Math.imul(V,ae),_=_+Math.imul(j,fe)|0,l=l+Math.imul(j,se)|0,l=l+Math.imul(W,fe)|0,x=x+Math.imul(W,se)|0,_=_+Math.imul(U,ue)|0,l=l+Math.imul(U,he)|0,l=l+Math.imul(N,ue)|0,x=x+Math.imul(N,he)|0,_=_+Math.imul(D,le)|0,l=l+Math.imul(D,ce)|0,l=l+Math.imul(C,le)|0,x=x+Math.imul(C,ce)|0;var wr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(wr>>>26)|0,wr&=67108863,_=Math.imul($,oe),l=Math.imul($,ae),l=l+Math.imul(z,oe)|0,x=Math.imul(z,ae),_=_+Math.imul(G,fe)|0,l=l+Math.imul(G,se)|0,l=l+Math.imul(V,fe)|0,x=x+Math.imul(V,se)|0,_=_+Math.imul(j,ue)|0,l=l+Math.imul(j,he)|0,l=l+Math.imul(W,ue)|0,x=x+Math.imul(W,he)|0,_=_+Math.imul(U,le)|0,l=l+Math.imul(U,ce)|0,l=l+Math.imul(N,le)|0,x=x+Math.imul(N,ce)|0,_=_+Math.imul(D,de)|0,l=l+Math.imul(D,pe)|0,l=l+Math.imul(C,de)|0,x=x+Math.imul(C,pe)|0;var _r=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(_r>>>26)|0,_r&=67108863,_=Math.imul(Z,oe),l=Math.imul(Z,ae),l=l+Math.imul(J,oe)|0,x=Math.imul(J,ae),_=_+Math.imul($,fe)|0,l=l+Math.imul($,se)|0,l=l+Math.imul(z,fe)|0,x=x+Math.imul(z,se)|0,_=_+Math.imul(G,ue)|0,l=l+Math.imul(G,he)|0,l=l+Math.imul(V,ue)|0,x=x+Math.imul(V,he)|0,_=_+Math.imul(j,le)|0,l=l+Math.imul(j,ce)|0,l=l+Math.imul(W,le)|0,x=x+Math.imul(W,ce)|0,_=_+Math.imul(U,de)|0,l=l+Math.imul(U,pe)|0,l=l+Math.imul(N,de)|0,x=x+Math.imul(N,pe)|0,_=_+Math.imul(D,ve)|0,l=l+Math.imul(D,ye)|0,l=l+Math.imul(C,ve)|0,x=x+Math.imul(C,ye)|0;var xr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,_=Math.imul(Y,oe),l=Math.imul(Y,ae),l=l+Math.imul(X,oe)|0,x=Math.imul(X,ae),_=_+Math.imul(Z,fe)|0,l=l+Math.imul(Z,se)|0,l=l+Math.imul(J,fe)|0,x=x+Math.imul(J,se)|0,_=_+Math.imul($,ue)|0,l=l+Math.imul($,he)|0,l=l+Math.imul(z,ue)|0,x=x+Math.imul(z,he)|0,_=_+Math.imul(G,le)|0,l=l+Math.imul(G,ce)|0,l=l+Math.imul(V,le)|0,x=x+Math.imul(V,ce)|0,_=_+Math.imul(j,de)|0,l=l+Math.imul(j,pe)|0,l=l+Math.imul(W,de)|0,x=x+Math.imul(W,pe)|0,_=_+Math.imul(U,ve)|0,l=l+Math.imul(U,ye)|0,l=l+Math.imul(N,ve)|0,x=x+Math.imul(N,ye)|0,_=_+Math.imul(D,ge)|0,l=l+Math.imul(D,me)|0,l=l+Math.imul(C,ge)|0,x=x+Math.imul(C,me)|0;var Mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,_=Math.imul(Q,oe),l=Math.imul(Q,ae),l=l+Math.imul(ee,oe)|0,x=Math.imul(ee,ae),_=_+Math.imul(Y,fe)|0,l=l+Math.imul(Y,se)|0,l=l+Math.imul(X,fe)|0,x=x+Math.imul(X,se)|0,_=_+Math.imul(Z,ue)|0,l=l+Math.imul(Z,he)|0,l=l+Math.imul(J,ue)|0,x=x+Math.imul(J,he)|0,_=_+Math.imul($,le)|0,l=l+Math.imul($,ce)|0,l=l+Math.imul(z,le)|0,x=x+Math.imul(z,ce)|0,_=_+Math.imul(G,de)|0,l=l+Math.imul(G,pe)|0,l=l+Math.imul(V,de)|0,x=x+Math.imul(V,pe)|0,_=_+Math.imul(j,ve)|0,l=l+Math.imul(j,ye)|0,l=l+Math.imul(W,ve)|0,x=x+Math.imul(W,ye)|0,_=_+Math.imul(U,ge)|0,l=l+Math.imul(U,me)|0,l=l+Math.imul(N,ge)|0,x=x+Math.imul(N,me)|0,_=_+Math.imul(D,be)|0,l=l+Math.imul(D,we)|0,l=l+Math.imul(C,be)|0,x=x+Math.imul(C,we)|0;var Er=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,_=Math.imul(te,oe),l=Math.imul(te,ae),l=l+Math.imul(re,oe)|0,x=Math.imul(re,ae),_=_+Math.imul(Q,fe)|0,l=l+Math.imul(Q,se)|0,l=l+Math.imul(ee,fe)|0,x=x+Math.imul(ee,se)|0,_=_+Math.imul(Y,ue)|0,l=l+Math.imul(Y,he)|0,l=l+Math.imul(X,ue)|0,x=x+Math.imul(X,he)|0,_=_+Math.imul(Z,le)|0,l=l+Math.imul(Z,ce)|0,l=l+Math.imul(J,le)|0,x=x+Math.imul(J,ce)|0,_=_+Math.imul($,de)|0,l=l+Math.imul($,pe)|0,l=l+Math.imul(z,de)|0,x=x+Math.imul(z,pe)|0,_=_+Math.imul(G,ve)|0,l=l+Math.imul(G,ye)|0,l=l+Math.imul(V,ve)|0,x=x+Math.imul(V,ye)|0,_=_+Math.imul(j,ge)|0,l=l+Math.imul(j,me)|0,l=l+Math.imul(W,ge)|0,x=x+Math.imul(W,me)|0,_=_+Math.imul(U,be)|0,l=l+Math.imul(U,we)|0,l=l+Math.imul(N,be)|0,x=x+Math.imul(N,we)|0,_=_+Math.imul(D,_e)|0,l=l+Math.imul(D,xe)|0,l=l+Math.imul(C,_e)|0,x=x+Math.imul(C,xe)|0;var Sr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,_=Math.imul(ie,oe),l=Math.imul(ie,ae),l=l+Math.imul(ne,oe)|0,x=Math.imul(ne,ae),_=_+Math.imul(te,fe)|0,l=l+Math.imul(te,se)|0,l=l+Math.imul(re,fe)|0,x=x+Math.imul(re,se)|0,_=_+Math.imul(Q,ue)|0,l=l+Math.imul(Q,he)|0,l=l+Math.imul(ee,ue)|0,x=x+Math.imul(ee,he)|0,_=_+Math.imul(Y,le)|0,l=l+Math.imul(Y,ce)|0,l=l+Math.imul(X,le)|0,x=x+Math.imul(X,ce)|0,_=_+Math.imul(Z,de)|0,l=l+Math.imul(Z,pe)|0,l=l+Math.imul(J,de)|0,x=x+Math.imul(J,pe)|0,_=_+Math.imul($,ve)|0,l=l+Math.imul($,ye)|0,l=l+Math.imul(z,ve)|0,x=x+Math.imul(z,ye)|0,_=_+Math.imul(G,ge)|0,l=l+Math.imul(G,me)|0,l=l+Math.imul(V,ge)|0,x=x+Math.imul(V,me)|0,_=_+Math.imul(j,be)|0,l=l+Math.imul(j,we)|0,l=l+Math.imul(W,be)|0,x=x+Math.imul(W,we)|0,_=_+Math.imul(U,_e)|0,l=l+Math.imul(U,xe)|0,l=l+Math.imul(N,_e)|0,x=x+Math.imul(N,xe)|0,_=_+Math.imul(D,Ue)|0,l=l+Math.imul(D,Le)|0,l=l+Math.imul(C,Ue)|0,x=x+Math.imul(C,Le)|0;var Br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Br>>>26)|0,Br&=67108863,_=Math.imul(ie,fe),l=Math.imul(ie,se),l=l+Math.imul(ne,fe)|0,x=Math.imul(ne,se),_=_+Math.imul(te,ue)|0,l=l+Math.imul(te,he)|0,l=l+Math.imul(re,ue)|0,x=x+Math.imul(re,he)|0,_=_+Math.imul(Q,le)|0,l=l+Math.imul(Q,ce)|0,l=l+Math.imul(ee,le)|0,x=x+Math.imul(ee,ce)|0,_=_+Math.imul(Y,de)|0,l=l+Math.imul(Y,pe)|0,l=l+Math.imul(X,de)|0,x=x+Math.imul(X,pe)|0,_=_+Math.imul(Z,ve)|0,l=l+Math.imul(Z,ye)|0,l=l+Math.imul(J,ve)|0,x=x+Math.imul(J,ye)|0,_=_+Math.imul($,ge)|0,l=l+Math.imul($,me)|0,l=l+Math.imul(z,ge)|0,x=x+Math.imul(z,me)|0,_=_+Math.imul(G,be)|0,l=l+Math.imul(G,we)|0,l=l+Math.imul(V,be)|0,x=x+Math.imul(V,we)|0,_=_+Math.imul(j,_e)|0,l=l+Math.imul(j,xe)|0,l=l+Math.imul(W,_e)|0,x=x+Math.imul(W,xe)|0,_=_+Math.imul(U,Ue)|0,l=l+Math.imul(U,Le)|0,l=l+Math.imul(N,Ue)|0,x=x+Math.imul(N,Le)|0;var Ar=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,_=Math.imul(ie,ue),l=Math.imul(ie,he),l=l+Math.imul(ne,ue)|0,x=Math.imul(ne,he),_=_+Math.imul(te,le)|0,l=l+Math.imul(te,ce)|0,l=l+Math.imul(re,le)|0,x=x+Math.imul(re,ce)|0,_=_+Math.imul(Q,de)|0,l=l+Math.imul(Q,pe)|0,l=l+Math.imul(ee,de)|0,x=x+Math.imul(ee,pe)|0,_=_+Math.imul(Y,ve)|0,l=l+Math.imul(Y,ye)|0,l=l+Math.imul(X,ve)|0,x=x+Math.imul(X,ye)|0,_=_+Math.imul(Z,ge)|0,l=l+Math.imul(Z,me)|0,l=l+Math.imul(J,ge)|0,x=x+Math.imul(J,me)|0,_=_+Math.imul($,be)|0,l=l+Math.imul($,we)|0,l=l+Math.imul(z,be)|0,x=x+Math.imul(z,we)|0,_=_+Math.imul(G,_e)|0,l=l+Math.imul(G,xe)|0,l=l+Math.imul(V,_e)|0,x=x+Math.imul(V,xe)|0,_=_+Math.imul(j,Ue)|0,l=l+Math.imul(j,Le)|0,l=l+Math.imul(W,Ue)|0,x=x+Math.imul(W,Le)|0;var Rr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,_=Math.imul(ie,le),l=Math.imul(ie,ce),l=l+Math.imul(ne,le)|0,x=Math.imul(ne,ce),_=_+Math.imul(te,de)|0,l=l+Math.imul(te,pe)|0,l=l+Math.imul(re,de)|0,x=x+Math.imul(re,pe)|0,_=_+Math.imul(Q,ve)|0,l=l+Math.imul(Q,ye)|0,l=l+Math.imul(ee,ve)|0,x=x+Math.imul(ee,ye)|0,_=_+Math.imul(Y,ge)|0,l=l+Math.imul(Y,me)|0,l=l+Math.imul(X,ge)|0,x=x+Math.imul(X,me)|0,_=_+Math.imul(Z,be)|0,l=l+Math.imul(Z,we)|0,l=l+Math.imul(J,be)|0,x=x+Math.imul(J,we)|0,_=_+Math.imul($,_e)|0,l=l+Math.imul($,xe)|0,l=l+Math.imul(z,_e)|0,x=x+Math.imul(z,xe)|0,_=_+Math.imul(G,Ue)|0,l=l+Math.imul(G,Le)|0,l=l+Math.imul(V,Ue)|0,x=x+Math.imul(V,Le)|0;var qr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(ie,de),l=Math.imul(ie,pe),l=l+Math.imul(ne,de)|0,x=Math.imul(ne,pe),_=_+Math.imul(te,ve)|0,l=l+Math.imul(te,ye)|0,l=l+Math.imul(re,ve)|0,x=x+Math.imul(re,ye)|0,_=_+Math.imul(Q,ge)|0,l=l+Math.imul(Q,me)|0,l=l+Math.imul(ee,ge)|0,x=x+Math.imul(ee,me)|0,_=_+Math.imul(Y,be)|0,l=l+Math.imul(Y,we)|0,l=l+Math.imul(X,be)|0,x=x+Math.imul(X,we)|0,_=_+Math.imul(Z,_e)|0,l=l+Math.imul(Z,xe)|0,l=l+Math.imul(J,_e)|0,x=x+Math.imul(J,xe)|0,_=_+Math.imul($,Ue)|0,l=l+Math.imul($,Le)|0,l=l+Math.imul(z,Ue)|0,x=x+Math.imul(z,Le)|0;var Tr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,_=Math.imul(ie,ve),l=Math.imul(ie,ye),l=l+Math.imul(ne,ve)|0,x=Math.imul(ne,ye),_=_+Math.imul(te,ge)|0,l=l+Math.imul(te,me)|0,l=l+Math.imul(re,ge)|0,x=x+Math.imul(re,me)|0,_=_+Math.imul(Q,be)|0,l=l+Math.imul(Q,we)|0,l=l+Math.imul(ee,be)|0,x=x+Math.imul(ee,we)|0,_=_+Math.imul(Y,_e)|0,l=l+Math.imul(Y,xe)|0,l=l+Math.imul(X,_e)|0,x=x+Math.imul(X,xe)|0,_=_+Math.imul(Z,Ue)|0,l=l+Math.imul(Z,Le)|0,l=l+Math.imul(J,Ue)|0,x=x+Math.imul(J,Le)|0;var kr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(kr>>>26)|0,kr&=67108863,_=Math.imul(ie,ge),l=Math.imul(ie,me),l=l+Math.imul(ne,ge)|0,x=Math.imul(ne,me),_=_+Math.imul(te,be)|0,l=l+Math.imul(te,we)|0,l=l+Math.imul(re,be)|0,x=x+Math.imul(re,we)|0,_=_+Math.imul(Q,_e)|0,l=l+Math.imul(Q,xe)|0,l=l+Math.imul(ee,_e)|0,x=x+Math.imul(ee,xe)|0,_=_+Math.imul(Y,Ue)|0,l=l+Math.imul(Y,Le)|0,l=l+Math.imul(X,Ue)|0,x=x+Math.imul(X,Le)|0;var Ir=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,_=Math.imul(ie,be),l=Math.imul(ie,we),l=l+Math.imul(ne,be)|0,x=Math.imul(ne,we),_=_+Math.imul(te,_e)|0,l=l+Math.imul(te,xe)|0,l=l+Math.imul(re,_e)|0,x=x+Math.imul(re,xe)|0,_=_+Math.imul(Q,Ue)|0,l=l+Math.imul(Q,Le)|0,l=l+Math.imul(ee,Ue)|0,x=x+Math.imul(ee,Le)|0;var hf=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(hf>>>26)|0,hf&=67108863,_=Math.imul(ie,_e),l=Math.imul(ie,xe),l=l+Math.imul(ne,_e)|0,x=Math.imul(ne,xe),_=_+Math.imul(te,Ue)|0,l=l+Math.imul(te,Le)|0,l=l+Math.imul(re,Ue)|0,x=x+Math.imul(re,Le)|0;var lf=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(lf>>>26)|0,lf&=67108863,_=Math.imul(ie,Ue),l=Math.imul(ie,Le),l=l+Math.imul(ne,Ue)|0,x=Math.imul(ne,Le);var cf=(m+_|0)+((l&8191)<<13)|0;return m=(x+(l>>>13)|0)+(cf>>>26)|0,cf&=67108863,s[0]=gr,s[1]=mr,s[2]=br,s[3]=wr,s[4]=_r,s[5]=xr,s[6]=Mr,s[7]=Er,s[8]=Sr,s[9]=Br,s[10]=Ar,s[11]=Rr,s[12]=qr,s[13]=Tr,s[14]=kr,s[15]=Ir,s[16]=hf,s[17]=lf,s[18]=cf,m!==0&&(s[19]=m,d.length++),d};Math.imul||(F=Me);function K(c,o,u){u.negative=o.negative^c.negative,u.length=c.length+o.length;for(var d=0,y=0,p=0;p<u.length-1;p++){var s=y;y=0;for(var m=d&67108863,_=Math.min(p,o.length-1),l=Math.max(0,p-c.length+1);l<=_;l++){var x=p-l,I=c.words[x]|0,D=o.words[l]|0,C=I*D,L=C&67108863;s=s+(C/67108864|0)|0,L=L+m|0,m=L&67108863,s=s+(L>>>26)|0,y+=s>>>26,s&=67108863}u.words[p]=m,d=s,s=y}return d!==0?u.words[p]=d:u.length--,u._strip()}function Fe(c,o,u){return K(c,o,u)}n.prototype.mulTo=function(o,u){var d,y=this.length+o.length;return this.length===10&&o.length===10?d=F(this,o,u):y<63?d=Me(this,o,u):y<1024?d=K(this,o,u):d=Fe(this,o,u),d};function je(c,o){this.x=c,this.y=o}je.prototype.makeRBT=function(o){for(var u=new Array(o),d=n.prototype._countBits(o)-1,y=0;y<o;y++)u[y]=this.revBin(y,d,o);return u},je.prototype.revBin=function(o,u,d){if(o===0||o===d-1)return o;for(var y=0,p=0;p<u;p++)y|=(o&1)<<u-p-1,o>>=1;return y},je.prototype.permute=function(o,u,d,y,p,s){for(var m=0;m<s;m++)y[m]=u[o[m]],p[m]=d[o[m]]},je.prototype.transform=function(o,u,d,y,p,s){this.permute(s,o,u,d,y,p);for(var m=1;m<p;m<<=1)for(var _=m<<1,l=Math.cos(2*Math.PI/_),x=Math.sin(2*Math.PI/_),I=0;I<p;I+=_)for(var D=l,C=x,L=0;L<m;L++){var U=d[I+L],N=y[I+L],bt=d[I+L+m],j=y[I+L+m],W=D*bt-C*j;j=D*j+C*bt,bt=W,d[I+L]=U+bt,y[I+L]=N+j,d[I+L+m]=U-bt,y[I+L+m]=N-j,L!==_&&(W=l*D-x*C,C=l*C+x*D,D=W)}},je.prototype.guessLen13b=function(o,u){var d=Math.max(u,o)|1,y=d&1,p=0;for(d=d/2|0;d;d=d>>>1)p++;return 1<<p+1+y},je.prototype.conjugate=function(o,u,d){if(!(d<=1))for(var y=0;y<d/2;y++){var p=o[y];o[y]=o[d-y-1],o[d-y-1]=p,p=u[y],u[y]=-u[d-y-1],u[d-y-1]=-p}},je.prototype.normalize13b=function(o,u){for(var d=0,y=0;y<u/2;y++){var p=Math.round(o[2*y+1]/u)*8192+Math.round(o[2*y]/u)+d;o[y]=p&67108863,p<67108864?d=0:d=p/67108864|0}return o},je.prototype.convert13b=function(o,u,d,y){for(var p=0,s=0;s<u;s++)p=p+(o[s]|0),d[2*s]=p&8191,p=p>>>13,d[2*s+1]=p&8191,p=p>>>13;for(s=2*u;s<y;++s)d[s]=0;r(p===0),r((p&-8192)===0)},je.prototype.stub=function(o){for(var u=new Array(o),d=0;d<o;d++)u[d]=0;return u},je.prototype.mulp=function(o,u,d){var y=2*this.guessLen13b(o.length,u.length),p=this.makeRBT(y),s=this.stub(y),m=new Array(y),_=new Array(y),l=new Array(y),x=new Array(y),I=new Array(y),D=new Array(y),C=d.words;C.length=y,this.convert13b(o.words,o.length,m,y),this.convert13b(u.words,u.length,x,y),this.transform(m,s,_,l,y,p),this.transform(x,s,I,D,y,p);for(var L=0;L<y;L++){var U=_[L]*I[L]-l[L]*D[L];l[L]=_[L]*D[L]+l[L]*I[L],_[L]=U}return this.conjugate(_,l,y),this.transform(_,l,C,s,y,p),this.conjugate(C,s,y),this.normalize13b(C,y),d.negative=o.negative^u.negative,d.length=o.length+u.length,d._strip()},n.prototype.mul=function(o){var u=new n(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},n.prototype.mulf=function(o){var u=new n(null);return u.words=new Array(this.length+o.length),Fe(this,o,u)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){var u=o<0;u&&(o=-o),r(typeof o=="number"),r(o<67108864);for(var d=0,y=0;y<this.length;y++){var p=(this.words[y]|0)*o,s=(p&67108863)+(d&67108863);d>>=26,d+=p/67108864|0,d+=s>>>26,this.words[y]=s&67108863}return d!==0&&(this.words[y]=d,this.length++),this.length=o===0?1:this.length,u?this.ineg():this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var u=H(o);if(u.length===0)return new n(1);for(var d=this,y=0;y<u.length&&u[y]===0;y++,d=d.sqr());if(++y<u.length)for(var p=d.sqr();y<u.length;y++,p=p.sqr())u[y]!==0&&(d=d.mul(p));return d},n.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26,y=67108863>>>26-u<<26-u,p;if(u!==0){var s=0;for(p=0;p<this.length;p++){var m=this.words[p]&y,_=(this.words[p]|0)-m<<u;this.words[p]=_|s,s=m>>>26-u}s&&(this.words[p]=s,this.length++)}if(d!==0){for(p=this.length-1;p>=0;p--)this.words[p+d]=this.words[p];for(p=0;p<d;p++)this.words[p]=0;this.length+=d}return this._strip()},n.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,u,d){r(typeof o=="number"&&o>=0);var y;u?y=(u-u%26)/26:y=0;var p=o%26,s=Math.min((o-p)/26,this.length),m=67108863^67108863>>>p<<p,_=d;if(y-=s,y=Math.max(0,y),_){for(var l=0;l<s;l++)_.words[l]=this.words[l];_.length=s}if(s!==0)if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var x=0;for(l=this.length-1;l>=0&&(x!==0||l>=y);l--){var I=this.words[l]|0;this.words[l]=x<<26-p|I>>>p,x=I&m}return _&&x!==0&&(_.words[_.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(o,u,d){return r(this.negative===0),this.iushrn(o,u,d)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26,y=1<<u;if(this.length<=d)return!1;var p=this.words[d];return!!(p&y)},n.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(u!==0&&d++,this.length=Math.min(d,this.length),u!==0){var y=67108863^67108863>>>u<<u;this.words[this.length-1]&=y}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},n.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this._strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,u,d){var y=o.length+d,p;this._expand(y);var s,m=0;for(p=0;p<o.length;p++){s=(this.words[p+d]|0)+m;var _=(o.words[p]|0)*u;s-=_&67108863,m=(s>>26)-(_/67108864|0),this.words[p+d]=s&67108863}for(;p<this.length-d;p++)s=(this.words[p+d]|0)+m,m=s>>26,this.words[p+d]=s&67108863;if(m===0)return this._strip();for(r(m===-1),m=0,p=0;p<this.length;p++)s=-(this.words[p]|0)+m,m=s>>26,this.words[p]=s&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(o,u){var d=this.length-o.length,y=this.clone(),p=o,s=p.words[p.length-1]|0,m=this._countBits(s);d=26-m,d!==0&&(p=p.ushln(d),y.iushln(d),s=p.words[p.length-1]|0);var _=y.length-p.length,l;if(u!=="mod"){l=new n(null),l.length=_+1,l.words=new Array(l.length);for(var x=0;x<l.length;x++)l.words[x]=0}var I=y.clone()._ishlnsubmul(p,1,_);I.negative===0&&(y=I,l&&(l.words[_]=1));for(var D=_-1;D>=0;D--){var C=(y.words[p.length+D]|0)*67108864+(y.words[p.length+D-1]|0);for(C=Math.min(C/s|0,67108863),y._ishlnsubmul(p,C,D);y.negative!==0;)C--,y.negative=0,y._ishlnsubmul(p,1,D),y.isZero()||(y.negative^=1);l&&(l.words[D]=C)}return l&&l._strip(),y._strip(),u!=="div"&&d!==0&&y.iushrn(d),{div:l||null,mod:y}},n.prototype.divmod=function(o,u,d){if(r(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var y,p,s;return this.negative!==0&&o.negative===0?(s=this.neg().divmod(o,u),u!=="mod"&&(y=s.div.neg()),u!=="div"&&(p=s.mod.neg(),d&&p.negative!==0&&p.iadd(o)),{div:y,mod:p}):this.negative===0&&o.negative!==0?(s=this.divmod(o.neg(),u),u!=="mod"&&(y=s.div.neg()),{div:y,mod:s.mod}):(this.negative&o.negative)!==0?(s=this.neg().divmod(o.neg(),u),u!=="div"&&(p=s.mod.neg(),d&&p.negative!==0&&p.isub(o)),{div:s.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new n(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modrn(o.words[0]))}:this._wordDiv(o,u)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var d=u.div.negative!==0?u.mod.isub(o):u.mod,y=o.ushrn(1),p=o.andln(1),s=d.cmp(y);return s<0||p===1&&s===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},n.prototype.modrn=function(o){var u=o<0;u&&(o=-o),r(o<=67108863);for(var d=(1<<26)%o,y=0,p=this.length-1;p>=0;p--)y=(d*y+(this.words[p]|0))%o;return u?-y:y},n.prototype.modn=function(o){return this.modrn(o)},n.prototype.idivn=function(o){var u=o<0;u&&(o=-o),r(o<=67108863);for(var d=0,y=this.length-1;y>=0;y--){var p=(this.words[y]|0)+d*67108864;this.words[y]=p/o|0,d=p%o}return this._strip(),u?this.ineg():this},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var u=this,d=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new n(1),p=new n(0),s=new n(0),m=new n(1),_=0;u.isEven()&&d.isEven();)u.iushrn(1),d.iushrn(1),++_;for(var l=d.clone(),x=u.clone();!u.isZero();){for(var I=0,D=1;(u.words[0]&D)===0&&I<26;++I,D<<=1);if(I>0)for(u.iushrn(I);I-- >0;)(y.isOdd()||p.isOdd())&&(y.iadd(l),p.isub(x)),y.iushrn(1),p.iushrn(1);for(var C=0,L=1;(d.words[0]&L)===0&&C<26;++C,L<<=1);if(C>0)for(d.iushrn(C);C-- >0;)(s.isOdd()||m.isOdd())&&(s.iadd(l),m.isub(x)),s.iushrn(1),m.iushrn(1);u.cmp(d)>=0?(u.isub(d),y.isub(s),p.isub(m)):(d.isub(u),s.isub(y),m.isub(p))}return{a:s,b:m,gcd:d.iushln(_)}},n.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var u=this,d=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var y=new n(1),p=new n(0),s=d.clone();u.cmpn(1)>0&&d.cmpn(1)>0;){for(var m=0,_=1;(u.words[0]&_)===0&&m<26;++m,_<<=1);if(m>0)for(u.iushrn(m);m-- >0;)y.isOdd()&&y.iadd(s),y.iushrn(1);for(var l=0,x=1;(d.words[0]&x)===0&&l<26;++l,x<<=1);if(l>0)for(d.iushrn(l);l-- >0;)p.isOdd()&&p.iadd(s),p.iushrn(1);u.cmp(d)>=0?(u.isub(d),y.isub(p)):(d.isub(u),p.isub(y))}var I;return u.cmpn(1)===0?I=y:I=p,I.cmpn(0)<0&&I.iadd(o),I},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),d=o.clone();u.negative=0,d.negative=0;for(var y=0;u.isEven()&&d.isEven();y++)u.iushrn(1),d.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;d.isEven();)d.iushrn(1);var p=u.cmp(d);if(p<0){var s=u;u=d,d=s}else if(p===0||d.cmpn(1)===0)break;u.isub(d)}while(!0);return d.iushln(y)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){r(typeof o=="number");var u=o%26,d=(o-u)/26,y=1<<u;if(this.length<=d)return this._expand(d+1),this.words[d]|=y,this;for(var p=y,s=d;p!==0&&s<this.length;s++){var m=this.words[s]|0;m+=p,p=m>>>26,m&=67108863,this.words[s]=m}return p!==0&&(this.words[s]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var d;if(this.length>1)d=1;else{u&&(o=-o),r(o<=67108863,"Number is too big");var y=this.words[0]|0;d=y===o?0:y<o?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,d=this.length-1;d>=0;d--){var y=this.words[d]|0,p=o.words[d]|0;if(y!==p){y<p?u=-1:y>p&&(u=1);break}}return u},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new h(o)},n.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var nr={k256:null,p224:null,p192:null,p25519:null};function Ve(c,o){this.name=c,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ve.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},Ve.prototype.ireduce=function(o){var u=o,d;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),d=u.bitLength();while(d>this.n);var y=d<this.n?-1:u.ucmp(this.p);return y===0?(u.words[0]=0,u.length=1):y>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},Ve.prototype.split=function(o,u){o.iushrn(this.n,0,u)},Ve.prototype.imulK=function(o){return o.imul(this.k)};function Tt(){Ve.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(Tt,Ve),Tt.prototype.split=function(o,u){for(var d=4194303,y=Math.min(o.length,9),p=0;p<y;p++)u.words[p]=o.words[p];if(u.length=y,o.length<=9){o.words[0]=0,o.length=1;return}var s=o.words[9];for(u.words[u.length++]=s&d,p=10;p<o.length;p++){var m=o.words[p]|0;o.words[p-10]=(m&d)<<4|s>>>22,s=m}s>>>=22,o.words[p-10]=s,s===0&&o.length>10?o.length-=10:o.length-=9},Tt.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,d=0;d<o.length;d++){var y=o.words[d]|0;u+=y*977,o.words[d]=u&67108863,u=y*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Ce(){Ve.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Ce,Ve);function st(){Ve.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(st,Ve);function E(){Ve.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(E,Ve),E.prototype.imulK=function(o){for(var u=0,d=0;d<o.length;d++){var y=(o.words[d]|0)*19+u,p=y&67108863;y>>>=26,o.words[d]=p,u=y}return u!==0&&(o.words[o.length++]=u),o},n._prime=function(o){if(nr[o])return nr[o];var u;if(o==="k256")u=new Tt;else if(o==="p224")u=new Ce;else if(o==="p192")u=new st;else if(o==="p25519")u=new E;else throw new Error("Unknown prime "+o);return nr[o]=u,u};function h(c){if(typeof c=="string"){var o=n._prime(c);this.m=o.p,this.prime=o}else r(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}h.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},h.prototype._verify2=function(o,u){r((o.negative|u.negative)===0,"red works only with positives"),r(o.red&&o.red===u.red,"red works only with red numbers")},h.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(S(o,o.umod(this.m)._forceRed(this)),o)},h.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},h.prototype.add=function(o,u){this._verify2(o,u);var d=o.add(u);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},h.prototype.iadd=function(o,u){this._verify2(o,u);var d=o.iadd(u);return d.cmp(this.m)>=0&&d.isub(this.m),d},h.prototype.sub=function(o,u){this._verify2(o,u);var d=o.sub(u);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},h.prototype.isub=function(o,u){this._verify2(o,u);var d=o.isub(u);return d.cmpn(0)<0&&d.iadd(this.m),d},h.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},h.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},h.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},h.prototype.isqr=function(o){return this.imul(o,o.clone())},h.prototype.sqr=function(o){return this.mul(o,o)},h.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(o,d)}for(var y=this.m.subn(1),p=0;!y.isZero()&&y.andln(1)===0;)p++,y.iushrn(1);r(!y.isZero());var s=new n(1).toRed(this),m=s.redNeg(),_=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);this.pow(l,_).cmp(m)!==0;)l.redIAdd(m);for(var x=this.pow(l,y),I=this.pow(o,y.addn(1).iushrn(1)),D=this.pow(o,y),C=p;D.cmp(s)!==0;){for(var L=D,U=0;L.cmp(s)!==0;U++)L=L.redSqr();r(U<C);var N=this.pow(x,new n(1).iushln(C-U-1));I=I.redMul(N),x=N.redSqr(),D=D.redMul(x),C=U}return I},h.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},h.prototype.pow=function(o,u){if(u.isZero())return new n(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var d=4,y=new Array(1<<d);y[0]=new n(1).toRed(this),y[1]=o;for(var p=2;p<y.length;p++)y[p]=this.mul(y[p-1],o);var s=y[0],m=0,_=0,l=u.bitLength()%26;for(l===0&&(l=26),p=u.length-1;p>=0;p--){for(var x=u.words[p],I=l-1;I>=0;I--){var D=x>>I&1;if(s!==y[0]&&(s=this.sqr(s)),D===0&&m===0){_=0;continue}m<<=1,m|=D,_++,!(_!==d&&(p!==0||I!==0))&&(s=this.mul(s,y[m]),_=0,m=0)}l=26}return s},h.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},h.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},n.mont=function(o){return new g(o)};function g(c){h.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}i(g,h),g.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},g.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},g.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var d=o.imul(u),y=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(y).iushrn(this.shift),s=p;return p.cmp(this.m)>=0?s=p.isub(this.m):p.cmpn(0)<0&&(s=p.iadd(this.m)),s._forceRed(this)},g.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new n(0)._forceRed(this);var d=o.mul(u),y=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(y).iushrn(this.shift),s=p;return p.cmp(this.m)>=0?s=p.isub(this.m):p.cmpn(0)<0&&(s=p.iadd(this.m)),s._forceRed(this)},g.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof mh>"u"||mh,cg)});var bh=B((sR,yg)=>{"use strict";b();var Xi=dg(),jM=Ur(),HM=Ee().Buffer;function pg(t){var e=t.modulus.byteLength(),r;do r=new Xi(jM(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2));return r}function WM(t){var e=pg(t),r=e.toRed(Xi.mont(t.modulus)).redPow(new Xi(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}function vg(t,e){var r=WM(e),i=e.modulus.byteLength(),n=new Xi(t).mul(r.blinder).umod(e.modulus),a=n.toRed(Xi.mont(e.prime1)),f=n.toRed(Xi.mont(e.prime2)),v=e.coefficient,w=e.prime1,S=e.prime2,A=a.redPow(e.exponent1).fromRed(),q=f.redPow(e.exponent2).fromRed(),T=A.isub(q).imul(v).umod(w).imul(S);return q.iadd(T).imul(r.unblinder).umod(e.modulus).toArrayLike(HM,"be",i)}vg.getr=pg;yg.exports=vg});var wg=B((hR,bg)=>{b();var KM=dh(),wh=Ur(),GM=Xn(),gg=vh(),mg=yh(),_h=vr(),VM=gh(),$M=bh(),qt=Ee().Buffer;bg.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var a=KM(e),f;if(n===4)f=zM(a,r);else if(n===1)f=ZM(a,r,i);else if(n===3){if(f=new _h(r),f.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?$M(f,a):VM(f,a)};function zM(t,e){var r=t.modulus.byteLength(),i=e.length,n=GM("sha1").update(qt.alloc(0)).digest(),a=n.length,f=2*a;if(i>r-f-2)throw new Error("message too long");var v=qt.alloc(r-i-f-2),w=r-a-1,S=wh(a),A=mg(qt.concat([n,v,qt.alloc(1,1),e],w),gg(S,w)),q=mg(S,gg(A,a));return new _h(qt.concat([qt.alloc(1),q,A],r))}function ZM(t,e,r){var i=e.length,n=t.modulus.byteLength();if(i>n-11)throw new Error("message too long");var a;return r?a=qt.alloc(n-i-3,255):a=JM(n-i-3),new _h(qt.concat([qt.from([0,r?1:2]),a,qt.alloc(1),e],n))}function JM(t){for(var e=qt.allocUnsafe(t),r=0,i=wh(t*2),n=0,a;r<t;)n===i.length&&(i=wh(t*2),n=0),a=i[n++],a&&(e[r++]=a);return e}});var Sg=B((cR,Eg)=>{b();var YM=dh(),_g=vh(),xg=yh(),Mg=vr(),XM=bh(),QM=Xn(),eE=gh(),ho=Ee().Buffer;Eg.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var a=YM(e),f=a.modulus.byteLength();if(r.length>f||new Mg(r).cmp(a.modulus)>=0)throw new Error("decryption error");var v;i?v=eE(new Mg(r),a):v=XM(r,a);var w=ho.alloc(f-v.length);if(v=ho.concat([w,v],f),n===4)return tE(a,v);if(n===1)return rE(a,v,i);if(n===3)return v;throw new Error("unknown padding")};function tE(t,e){var r=t.modulus.byteLength(),i=QM("sha1").update(ho.alloc(0)).digest(),n=i.length;if(e[0]!==0)throw new Error("decryption error");var a=e.slice(1,n+1),f=e.slice(n+1),v=xg(a,_g(f,n)),w=xg(f,_g(v,r-n-1));if(iE(i,w.slice(0,n)))throw new Error("decryption error");for(var S=n;w[S]===0;)S++;if(w[S++]!==1)throw new Error("decryption error");return w.slice(S)}function rE(t,e,r){for(var i=e.slice(0,2),n=2,a=0;e[n++]!==0;)if(n>=e.length){a++;break}var f=e.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&a++,f.length<8&&a++,a)throw new Error("decryption error");return e.slice(n)}function iE(t,e){t=ho.from(t),e=ho.from(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));for(var n=-1;++n<i;)r+=t[n]^e[n];return r}});var Bg=B(li=>{b();li.publicEncrypt=wg();li.privateDecrypt=Sg();li.privateEncrypt=function(e,r){return li.publicEncrypt(e,r,!0)};li.publicDecrypt=function(e,r){return li.privateDecrypt(e,r,!0)}});var Pg=B(lo=>{"use strict";b();function Ag(){throw new Error(`secure random number generation not supported by this browser
|
|
15
|
+
use chrome, FireFox or Internet Explorer 11`)}var qg=Ee(),Rg=Ur(),Tg=qg.Buffer,kg=qg.kMaxLength,xh=globalThis.crypto||globalThis.msCrypto,Ig=Math.pow(2,32)-1;function Og(t,e){if(typeof t!="number"||t!==t)throw new TypeError("offset must be a number");if(t>Ig||t<0)throw new TypeError("offset must be a uint32");if(t>kg||t>e)throw new RangeError("offset out of range")}function Cg(t,e,r){if(typeof t!="number"||t!==t)throw new TypeError("size must be a number");if(t>Ig||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>kg)throw new RangeError("buffer too small")}xh&&xh.getRandomValues||!M.default.browser?(lo.randomFill=nE,lo.randomFillSync=oE):(lo.randomFill=Ag,lo.randomFillSync=Ag);function nE(t,e,r,i){if(!Tg.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")i=e,e=0,r=t.length;else if(typeof r=="function")i=r,r=t.length-e;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return Og(e,t.length),Cg(r,e,t.length),Dg(t,e,r,i)}function Dg(t,e,r,i){if(M.default.browser){var n=t.buffer,a=new Uint8Array(n,e,r);if(xh.getRandomValues(a),i){M.default.nextTick(function(){i(null,t)});return}return t}if(i){Rg(r,function(v,w){if(v)return i(v);w.copy(t,e),i(null,t)});return}var f=Rg(r);return f.copy(t,e),t}function oE(t,e,r){if(typeof e>"u"&&(e=0),!Tg.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Og(e,t.length),r===void 0&&(r=t.length-e),Cg(r,e,t.length),Dg(t,e,r)}});var Ku=B(Se=>{"use strict";b();Se.randomBytes=Se.rng=Se.pseudoRandomBytes=Se.prng=Ur();Se.createHash=Se.Hash=Xn();Se.createHmac=Se.Hmac=Iv();var aE=Pa(),fE=Object.keys(aE),sE=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(fE);Se.getHashes=function(){return sE};var Ug=_u();Se.pbkdf2=Ug.pbkdf2;Se.pbkdf2Sync=Ug.pbkdf2Sync;var jt=i1();Se.Cipher=jt.Cipher;Se.createCipher=jt.createCipher;Se.Cipheriv=jt.Cipheriv;Se.createCipheriv=jt.createCipheriv;Se.Decipher=jt.Decipher;Se.createDecipher=jt.createDecipher;Se.Decipheriv=jt.Decipheriv;Se.createDecipheriv=jt.createDecipheriv;Se.getCiphers=jt.getCiphers;Se.listCiphers=jt.listCiphers;var co=g1();Se.DiffieHellmanGroup=co.DiffieHellmanGroup;Se.createDiffieHellmanGroup=co.createDiffieHellmanGroup;Se.getDiffieHellman=co.getDiffieHellman;Se.createDiffieHellman=co.createDiffieHellman;Se.DiffieHellman=co.DiffieHellman;var af=Pa();Se.createSign=af.createSign;Se.Sign=af.Sign;Se.createVerify=af.createVerify;Se.Verify=af.Verify;Se.createECDH=Pa();var ff=Bg();Se.publicEncrypt=ff.publicEncrypt;Se.privateEncrypt=ff.privateEncrypt;Se.publicDecrypt=ff.publicDecrypt;Se.privateDecrypt=ff.privateDecrypt;var Lg=Pg();Se.randomFill=Lg.randomFill;Se.randomFillSync=Lg.randomFillSync;Se.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
|
|
16
|
+
we accept pull requests
|
|
17
|
+
https://github.com/browserify/crypto-browserify`)};Se.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var Fg=B((wR,Ng)=>{"use strict";b();var po=Ku(),vo={ES256:"P-256",ES256K:"secp256k1"},uE=["ES256","ES256K"];function sf(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function uf(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return R.Buffer.from(t,"base64")}async function hE(t){if(!t.issuerDid||!t.subjectId||!t.credentialSubject||!t.privateJwk)throw new Error("issuerDid, subjectId, credentialSubject, and privateJwk are required");var e=t.alg||"ES256";if(!vo[e])throw new Error("Unsupported algorithm: "+e);if(t.privateJwk.crv&&t.privateJwk.crv!==vo[e])throw new Error("Key curve "+t.privateJwk.crv+" does not match alg "+e);var r=t.kid||t.privateJwk.kid,i=t.types||["VerifiableCredential"],n=t.expSeconds||365*24*60*60,a=Math.floor(Date.now()/1e3),f=new Date().toISOString(),v={"@context":["https://www.w3.org/2018/credentials/v1"],type:i,issuer:t.issuerDid,issuanceDate:f,credentialSubject:Object.assign({id:t.subjectId},t.credentialSubject)},w={iss:t.issuerDid,sub:t.subjectId,iat:a,exp:a+n,vc:v},S={alg:e,typ:"JWT",kid:r},A=sf(R.Buffer.from(JSON.stringify(S))),q=sf(R.Buffer.from(JSON.stringify(w))),T=A+"."+q,O=po.createPrivateKey({key:t.privateJwk,format:"jwk"}),P=po.sign("sha256",R.Buffer.from(T),{key:O,dsaEncoding:"ieee-p1363"}),H=sf(P),Me=T+"."+H;return{jwt:Me}}async function lE(t,e){e=e||{};try{if(typeof t!="string")return{valid:!1,error:"Invalid JWT format"};var r=t.split(".");if(r.length!==3)return{valid:!1,error:"Invalid JWT format"};var i=r[0],n=r[1],a=r[2],f=JSON.parse(uf(i).toString()),v=JSON.parse(uf(n).toString()),w=uf(a),S=e.allowedAlgs||uE;if(!f.alg||S.indexOf(f.alg)===-1||!vo[f.alg])return{valid:!1,error:"Algorithm not allowed: "+f.alg,header:f,payload:v};var A=Math.floor(Date.now()/1e3),q=e.clockToleranceSec||60;if(e.requireExpiration&&!v.exp)return{valid:!1,error:"JWT missing required exp claim",header:f,payload:v};if(v.exp&&v.exp<A-q)return{valid:!1,error:"JWT expired",header:f,payload:v};if(v.nbf&&v.nbf>A+q)return{valid:!1,error:"JWT not yet valid",header:f,payload:v};if(e.expectedIssuerDid&&v.iss!==e.expectedIssuerDid)return{valid:!1,error:"Unexpected issuer",header:f,payload:v};var T;if(e.didResolver){var O=await e.didResolver(v.iss);if(!O||!O.jwks||!O.jwks.keys)return{valid:!1,error:"Failed to resolve issuer DID",header:f,payload:v};var P=O.jwks.keys.find(function(K){return K.kid===f.kid});if(!P)return{valid:!1,error:"Key not found in JWKS",header:f,payload:v};T=P}else return{valid:!1,error:"DID resolver required for verification",header:f,payload:v};if(T.crv&&T.crv!==vo[f.alg])return{valid:!1,error:"Key curve does not match algorithm",header:f,payload:v};var H=i+"."+n,Me=po.createPublicKey({key:T,format:"jwk"}),F=po.verify("sha256",R.Buffer.from(H),{key:Me,dsaEncoding:"ieee-p1363"},w);if(!F&&e.allowLegacyDER)try{F=po.verify("sha256",R.Buffer.from(H),{key:Me,dsaEncoding:"der"},w)}catch{F=!1}return F?{valid:!0,header:f,payload:v}:{valid:!1,error:"Invalid signature",header:f,payload:v}}catch(K){return{valid:!1,error:K.message||"Verification failed"}}}Ng.exports={issueVcJwt:hE,verifyVcJwt:lE,base64UrlEncode:sf,base64UrlDecode:uf,ALG_TO_CRV:vo}});var cE=B((xR,jg)=>{b();jg.exports=Fg()});return cE();})();
|
|
18
|
+
if(typeof module!=="undefined"&&module.exports){module.exports=bsvVcJwt}else if(typeof define==="function"&&define.amd){define([],function(){return bsvVcJwt})}
|