edge-currency-accountbased 4.26.0 → 4.26.2
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 +11 -0
- package/android/src/main/assets/edge-currency-accountbased/1565.chunk.js +6 -5
- package/android/src/main/assets/edge-currency-accountbased/3507.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/4580.chunk.js +12 -12
- package/android/src/main/assets/edge-currency-accountbased/4649.chunk.js +111 -0
- package/android/src/main/assets/edge-currency-accountbased/5277.chunk.js +43 -43
- package/android/src/main/assets/edge-currency-accountbased/537.chunk.js +10 -10
- package/android/src/main/assets/edge-currency-accountbased/6729.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/6845.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/7190.chunk.js +6 -7
- package/android/src/main/assets/edge-currency-accountbased/749.chunk.js +2 -3
- package/android/src/main/assets/edge-currency-accountbased/8502.chunk.js +35 -0
- package/android/src/main/assets/edge-currency-accountbased/9649.chunk.js +6 -0
- package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/axelar.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +3 -3
- package/android/src/main/assets/edge-currency-accountbased/cardano.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +8 -3
- package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +7 -7
- package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +9 -9
- package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +5 -5
- package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +3 -3
- package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +6 -6
- package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +3 -3
- package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +3 -3
- package/lib/algorand/AlgorandEngine.js +5 -5
- package/lib/binance/BinanceEngine.js +4 -5
- package/lib/cardano/CardanoEngine.js +52 -13
- package/lib/common/network.js +3 -1
- package/lib/common/promiseUtils.js +168 -0
- package/lib/common/utils.js +4 -135
- package/lib/eos/EosEngine.js +10 -10
- package/lib/eos/EosTools.js +4 -4
- package/lib/ethereum/EthereumNetwork.js +5 -4
- package/lib/ethereum/fees/ethMiningFees.js +2 -5
- package/lib/ethereum/networkAdapters/types.js +3 -8
- package/lib/fio/FioEngine.js +12 -10
- package/lib/fio/FioTools.js +2 -2
- package/lib/piratechain/PiratechainEngine.js +26 -15
- package/lib/polkadot/PolkadotTools.js +1 -1
- package/lib/ripple/RippleTools.js +2 -2
- package/lib/solana/SolanaEngine.js +9 -14
- package/lib/stellar/StellarEngine.js +6 -7
- package/lib/tezos/TezosEngine.js +8 -9
- package/lib/tron/TronEngine.js +2 -2
- package/lib/zcash/ZcashEngine.js +23 -13
- package/package.json +3 -1
- package/android/src/main/assets/edge-currency-accountbased/2424.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/4163.chunk.js +0 -6
- package/android/src/main/assets/edge-currency-accountbased/5870.chunk.js +0 -111
- package/android/src/main/assets/edge-currency-accountbased/6682.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/9325.chunk.js +0 -35
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 4.26.2 (2024-10-29)
|
|
6
|
+
|
|
7
|
+
- fixed: (ADA) Fixed a bug in Blockfrost response handling that caused an error when processing successful non-JSON responses.
|
|
8
|
+
- fixed: (ADA) Re-spending UTXO race condition.
|
|
9
|
+
- fixed: Possible to send polkadot currencies to `0x` addresses
|
|
10
|
+
|
|
11
|
+
## 4.26.1 (2024-10-14)
|
|
12
|
+
|
|
13
|
+
- changed: (Zcash/Piratechain) Await synchronizer initialization in public methods instead of throwing `synchronizer undefined`error
|
|
14
|
+
- fixed: (Zcash/Piratechain) Don't save sensitive initializer object to engine
|
|
15
|
+
|
|
5
16
|
## 4.26.0 (2024-10-03)
|
|
6
17
|
|
|
7
18
|
- changed: Add redundancy to Cardano queries
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[1565],{87568:function(E,b,
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[1565],{87568:function(E,b,i){var l=b;l.bignum=i(39404),l.define=i(47363).define,l.base=i(9673),l.constants=i(22153),l.decoders=i(22853),l.encoders=i(24669)},47363:function(E,b,i){var l=i(87568),v=i(56698),g=b;g.define=function(f,a){return new c(f,a)};function c(u,f){this.name=u,this.body=f,this.decoders={},this.encoders={}}c.prototype._createNamed=function(f){var a;try{a=i(68961).runInThisContext("(function "+this.name+`(entity) {
|
|
2
2
|
this._initNamed(entity);
|
|
3
|
-
})`)}catch{i=function(u){this._initNamed(u)}}return v(i,f),i.prototype._initNamed=function(u){f.call(this,u)},new i(this)},c.prototype._getDecoder=function(f){return f=f||"der",this.decoders.hasOwnProperty(f)||(this.decoders[f]=this._createNamed(l.decoders[f])),this.decoders[f]},c.prototype.decode=function(f,i,a){return this._getDecoder(i).decode(f,a)},c.prototype._getEncoder=function(f){return f=f||"der",this.encoders.hasOwnProperty(f)||(this.encoders[f]=this._createNamed(l.encoders[f])),this.encoders[f]},c.prototype.encode=function(f,i,a){return this._getEncoder(i).encode(f,a)}},47227:function(E,b,d){var l=d(56698),v=d(9673).Reporter,m=d(48287).Buffer;function c(f,i){if(v.call(this,i),!m.isBuffer(f)){this.error("Input not Buffer");return}this.base=f,this.offset=0,this.length=f.length}l(c,v),b.t=c,c.prototype.save=function(){return{offset:this.offset,reporter:v.prototype.save.call(this)}},c.prototype.restore=function(i){var a=new c(this.base);return a.offset=i.offset,a.length=this.offset,this.offset=i.offset,v.prototype.restore.call(this,i.reporter),a},c.prototype.isEmpty=function(){return this.offset===this.length},c.prototype.readUInt8=function(i){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(i||"DecoderBuffer overrun")},c.prototype.skip=function(i,a){if(!(this.offset+i<=this.length))return this.error(a||"DecoderBuffer overrun");var u=new c(this.base);return u._reporterState=this._reporterState,u.offset=this.offset,u.length=this.offset+i,this.offset+=i,u},c.prototype.raw=function(i){return this.base.slice(i?i.offset:this.offset,this.length)};function s(f,i){if(Array.isArray(f))this.length=0,this.value=f.map(function(a){return a instanceof s||(a=new s(a,i)),this.length+=a.length,a},this);else if(typeof f=="number"){if(!(0<=f&&f<=255))return i.error("non-byte EncoderBuffer value");this.value=f,this.length=1}else if(typeof f=="string")this.value=f,this.length=m.byteLength(f);else if(m.isBuffer(f))this.value=f,this.length=f.length;else return i.error("Unsupported type: "+typeof f)}b.d=s,s.prototype.join=function(i,a){return i||(i=new m(this.length)),a||(a=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(u){u.join(i,a),a+=u.length}):(typeof this.value=="number"?i[a]=this.value:typeof this.value=="string"?i.write(this.value,a):m.isBuffer(this.value)&&this.value.copy(i,a),a+=this.length)),i}},9673:function(E,b,d){var l=b;l.Reporter=d(89220).a,l.DecoderBuffer=d(47227).t,l.EncoderBuffer=d(47227).d,l.Node=d(90993)},90993:function(E,b,d){var l=d(9673).Reporter,v=d(9673).EncoderBuffer,m=d(9673).DecoderBuffer,c=d(43349),s=["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"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),i=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function a(o,e){var r={};this._baseState=r,r.enc=o,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())}E.exports=a;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];a.prototype.clone=function(){var e=this._baseState,r={};u.forEach(function(t){r[t]=e[t]});var n=new this.constructor(r.parent);return n._baseState=r,n},a.prototype._wrap=function(){var e=this._baseState;f.forEach(function(r){this[r]=function(){var t=new this.constructor(this);return e.children.push(t),t[r].apply(t,arguments)}},this)},a.prototype._init=function(e){var r=this._baseState;c(r.parent===null),e.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),c.equal(r.children.length,1,"Root node can have only one child")},a.prototype._useArgs=function(e){var r=this._baseState,n=e.filter(function(t){return t instanceof this.constructor},this);e=e.filter(function(t){return!(t instanceof this.constructor)},this),n.length!==0&&(c(r.children===null),r.children=n,n.forEach(function(t){t._baseState.parent=this},this)),e.length!==0&&(c(r.args===null),r.args=e,r.reverseArgs=e.map(function(t){if(typeof t!="object"||t.constructor!==Object)return t;var h={};return Object.keys(t).forEach(function(p){p==(p|0)&&(p|=0);var y=t[p];h[y]=p}),h}))},i.forEach(function(o){a.prototype[o]=function(){var r=this._baseState;throw new Error(o+" not implemented for encoding: "+r.enc)}}),s.forEach(function(o){a.prototype[o]=function(){var r=this._baseState,n=Array.prototype.slice.call(arguments);return c(r.tag===null),r.tag=o,this._useArgs(n),this}}),a.prototype.use=function(e){c(e);var r=this._baseState;return c(r.use===null),r.use=e,this},a.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this},a.prototype.def=function(e){var r=this._baseState;return c(r.default===null),r.default=e,r.optional=!0,this},a.prototype.explicit=function(e){var r=this._baseState;return c(r.explicit===null&&r.implicit===null),r.explicit=e,this},a.prototype.implicit=function(e){var r=this._baseState;return c(r.explicit===null&&r.implicit===null),r.implicit=e,this},a.prototype.obj=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this},a.prototype.key=function(e){var r=this._baseState;return c(r.key===null),r.key=e,this},a.prototype.any=function(){var e=this._baseState;return e.any=!0,this},a.prototype.choice=function(e){var r=this._baseState;return c(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this},a.prototype.contains=function(e){var r=this._baseState;return c(r.use===null),r.contains=e,this},a.prototype._decode=function(e,r){var n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,r));var t=n.default,h=!0,p=null;if(n.key!==null&&(p=e.enterKey(n.key)),n.optional){var y=null;if(n.explicit!==null?y=n.explicit:n.implicit!==null?y=n.implicit:n.tag!==null&&(y=n.tag),y===null&&!n.any){var g=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,r):this._decodeChoice(e,r),h=!0}catch{h=!1}e.restore(g)}else if(h=this._peekTag(e,y,n.any),e.isError(h))return h}var w;if(n.obj&&h&&(w=e.enterObject()),h){if(n.explicit!==null){var S=this._decodeTag(e,n.explicit);if(e.isError(S))return S;e=S}var B=e.offset;if(n.use===null&&n.choice===null){if(n.any)var g=e.save();var C=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(C))return C;n.any?t=e.raw(g):e=C}if(r&&r.track&&n.tag!==null&&r.track(e.path(),B,e.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),n.any?t=t:n.choice===null?t=this._decodeGeneric(n.tag,e,r):t=this._decodeChoice(e,r),e.isError(t))return t;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(k){k._decode(e,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){var D=new m(t);t=this._getUse(n.contains,e._reporterState.obj)._decode(D,r)}}return n.obj&&h&&(t=e.leaveObject(w)),n.key!==null&&(t!==null||h===!0)?e.leaveKey(p,n.key,t):p!==null&&e.exitKey(p),t},a.prototype._decodeGeneric=function(e,r,n){var t=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,t.args[0],n):/str$/.test(e)?this._decodeStr(r,e,n):e==="objid"&&t.args?this._decodeObjid(r,t.args[0],t.args[1],n):e==="objid"?this._decodeObjid(r,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(r,e,n):e==="null_"?this._decodeNull(r,n):e==="bool"?this._decodeBool(r,n):e==="objDesc"?this._decodeStr(r,e,n):e==="int"||e==="enum"?this._decodeInt(r,t.args&&t.args[0],n):t.use!==null?this._getUse(t.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+e)},a.prototype._getUse=function(e,r){var n=this._baseState;return n.useDecoder=this._use(e,r),c(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},a.prototype._decodeChoice=function(e,r){var n=this._baseState,t=null,h=!1;return Object.keys(n.choice).some(function(p){var y=e.save(),g=n.choice[p];try{var w=g._decode(e,r);if(e.isError(w))return!1;t={type:p,value:w},h=!0}catch{return e.restore(y),!1}return!0},this),h?t:e.error("Choice not matched")},a.prototype._createEncoderBuffer=function(e){return new v(e,this.reporter)},a.prototype._encode=function(e,r,n){var t=this._baseState;if(!(t.default!==null&&t.default===e)){var h=this._encodeValue(e,r,n);if(h!==void 0&&!this._skipDefault(h,r,n))return h}},a.prototype._encodeValue=function(e,r,n){var t=this._baseState;if(t.parent===null)return t.children[0]._encode(e,r||new l);var g=null;if(this.reporter=r,t.optional&&e===void 0)if(t.default!==null)e=t.default;else return;var h=null,p=!1;if(t.any)g=this._createEncoderBuffer(e);else if(t.choice)g=this._encodeChoice(e,r);else if(t.contains)h=this._getUse(t.contains,n)._encode(e,r),p=!0;else if(t.children)h=t.children.map(function(B){if(B._baseState.tag==="null_")return B._encode(null,r,e);if(B._baseState.key===null)return r.error("Child should have a key");var C=r.enterKey(B._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");var D=B._encode(e[B._baseState.key],r,e);return r.leaveKey(C),D},this).filter(function(B){return B}),h=this._createEncoderBuffer(h);else if(t.tag==="seqof"||t.tag==="setof"){if(!(t.args&&t.args.length===1))return r.error("Too many args for : "+t.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,h=this._createEncoderBuffer(e.map(function(B){var C=this._baseState;return this._getUse(C.args[0],e)._encode(B,r)},y))}else t.use!==null?g=this._getUse(t.use,n)._encode(e,r):(h=this._encodePrimitive(t.tag,e),p=!0);var g;if(!t.any&&t.choice===null){var w=t.implicit!==null?t.implicit:t.tag,S=t.implicit===null?"universal":"context";w===null?t.use===null&&r.error("Tag could be omitted only for .use()"):t.use===null&&(g=this._encodeComposite(w,p,S,h))}return t.explicit!==null&&(g=this._encodeComposite(t.explicit,!1,"context",g)),g},a.prototype._encodeChoice=function(e,r){var n=this._baseState,t=n.choice[e.type];return t||c(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),t._encode(e.value,r)},a.prototype._encodePrimitive=function(e,r){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.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,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)},a.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},a.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},89220:function(E,b,d){var l=d(56698);function v(c){this._reporterState={obj:null,path:[],options:c||{},errors:[]}}b.a=v,v.prototype.isError=function(s){return s instanceof m},v.prototype.save=function(){var s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},v.prototype.restore=function(s){var f=this._reporterState;f.obj=s.obj,f.path=f.path.slice(0,s.pathLen)},v.prototype.enterKey=function(s){return this._reporterState.path.push(s)},v.prototype.exitKey=function(s){var f=this._reporterState;f.path=f.path.slice(0,s-1)},v.prototype.leaveKey=function(s,f,i){var a=this._reporterState;this.exitKey(s),a.obj!==null&&(a.obj[f]=i)},v.prototype.path=function(){return this._reporterState.path.join("/")},v.prototype.enterObject=function(){var s=this._reporterState,f=s.obj;return s.obj={},f},v.prototype.leaveObject=function(s){var f=this._reporterState,i=f.obj;return f.obj=s,i},v.prototype.error=function(s){var f,i=this._reporterState,a=s instanceof m;if(a?f=s:f=new m(i.path.map(function(u){return"["+JSON.stringify(u)+"]"}).join(""),s.message||s,s.stack),!i.options.partial)throw f;return a||i.errors.push(f),f},v.prototype.wrapResult=function(s){var f=this._reporterState;return f.options.partial?{result:this.isError(s)?null:s,errors:f.errors}:s};function m(c,s){this.path=c,this.rethrow(s)}l(m,Error),m.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,m),!this.stack)try{throw new Error(this.message)}catch(f){this.stack=f.stack}return this}},74598:function(E,b,d){var l=d(22153);b.tagClass={0:"universal",1:"application",2:"context",3:"private"},b.tagClassByName=l._reverse(b.tagClass),b.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"},b.tagByName=l._reverse(b.tag)},22153:function(E,b,d){var l=b;l._reverse=function(m){var c={};return Object.keys(m).forEach(function(s){(s|0)==s&&(s=s|0);var f=m[s];c[f]=s}),c},l.der=d(74598)},62010:function(E,b,d){var l=d(56698),v=d(87568),m=v.base,c=v.bignum,s=v.constants.der;function f(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new i,this.tree._init(o.body)}E.exports=f,f.prototype.decode=function(e,r){return e instanceof m.DecoderBuffer||(e=new m.DecoderBuffer(e,r)),this.tree._decode(e,r)};function i(o){m.Node.call(this,"der",o)}l(i,m.Node),i.prototype._peekTag=function(e,r,n){if(e.isEmpty())return!1;var t=e.save(),h=a(e,'Failed to peek tag: "'+r+'"');return e.isError(h)?h:(e.restore(t),h.tag===r||h.tagStr===r||h.tagStr+"of"===r||n)},i.prototype._decodeTag=function(e,r,n){var t=a(e,'Failed to decode tag of "'+r+'"');if(e.isError(t))return t;var h=u(e,t.primitive,'Failed to get length of "'+r+'"');if(e.isError(h))return h;if(!n&&t.tag!==r&&t.tagStr!==r&&t.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(t.primitive||h!==null)return e.skip(h,'Failed to match body of: "'+r+'"');var p=e.save(),y=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(y)?y:(h=e.offset-p.offset,e.restore(p),e.skip(h,'Failed to match body of: "'+r+'"'))},i.prototype._skipUntilEnd=function(e,r){for(;;){var n=a(e,r);if(e.isError(n))return n;var t=u(e,n.primitive,r);if(e.isError(t))return t;var h;if(n.primitive||t!==null?h=e.skip(t):h=this._skipUntilEnd(e,r),e.isError(h))return h;if(n.tagStr==="end")break}},i.prototype._decodeList=function(e,r,n,t){for(var h=[];!e.isEmpty();){var p=this._peekTag(e,"end");if(e.isError(p))return p;var y=n.decode(e,"der",t);if(e.isError(y)&&p)break;h.push(y)}return h},i.prototype._decodeStr=function(e,r){if(r==="bitstr"){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(r==="bmpstr"){var t=e.raw();if(t.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var h="",p=0;p<t.length/2;p++)h+=String.fromCharCode(t.readUInt16BE(p*2));return h}else if(r==="numstr"){var y=e.raw().toString("ascii");return this._isNumstr(y)?y: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 g=e.raw().toString("ascii");return this._isPrintstr(g)?g: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")}},i.prototype._decodeObjid=function(e,r,n){for(var t,h=[],p=0;!e.isEmpty();){var y=e.readUInt8();p<<=7,p|=y&127,(y&128)===0&&(h.push(p),p=0)}y&128&&h.push(p);var g=h[0]/40|0,w=h[0]%40;if(n?t=h:t=[g,w].concat(h.slice(1)),r){var S=r[t.join(" ")];S===void 0&&(S=r[t.join(".")]),S!==void 0&&(t=S)}return t},i.prototype._decodeTime=function(e,r){var n=e.raw().toString();if(r==="gentime")var t=n.slice(0,4)|0,h=n.slice(4,6)|0,p=n.slice(6,8)|0,y=n.slice(8,10)|0,g=n.slice(10,12)|0,w=n.slice(12,14)|0;else if(r==="utctime"){var t=n.slice(0,2)|0,h=n.slice(2,4)|0,p=n.slice(4,6)|0,y=n.slice(6,8)|0,g=n.slice(8,10)|0,w=n.slice(10,12)|0;t<70?t=2e3+t:t=1900+t}else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(t,h-1,p,y,g,w,0)},i.prototype._decodeNull=function(e){return null},i.prototype._decodeBool=function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0},i.prototype._decodeInt=function(e,r){var n=e.raw(),t=new c(n);return r&&(t=r[t.toString(10)]||t),t},i.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function a(o,e){var r=o.readUInt8(e);if(o.isError(r))return r;var n=s.tagClass[r>>6],t=(r&32)===0;if((r&31)===31){var h=r;for(r=0;(h&128)===128;){if(h=o.readUInt8(e),o.isError(h))return h;r<<=7,r|=h&127}}else r&=31;var p=s.tag[r];return{cls:n,primitive:t,tag:r,tagStr:p}}function u(o,e,r){var n=o.readUInt8(r);if(o.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;var t=n&127;if(t>4)return o.error("length octect is too long");n=0;for(var h=0;h<t;h++){n<<=8;var p=o.readUInt8(r);if(o.isError(p))return p;n|=p}return n}},22853:function(E,b,d){var l=b;l.der=d(62010),l.pem=d(58903)},58903:function(E,b,d){var l=d(56698),v=d(48287).Buffer,m=d(62010);function c(s){m.call(this,s),this.enc="pem"}l(c,m),E.exports=c,c.prototype.decode=function(f,i){for(var a=f.toString().split(/[\r\n]+/g),u=i.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,e=-1,r=-1,n=0;n<a.length;n++){var t=a[n].match(o);if(t!==null&&t[2]===u)if(e===-1){if(t[1]!=="BEGIN")break;e=n}else{if(t[1]!=="END")break;r=n;break}}if(e===-1||r===-1)throw new Error("PEM section not found for: "+u);var h=a.slice(e+1,r).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var p=new v(h,"base64");return m.prototype.decode.call(this,p,i)}},70082:function(E,b,d){var l=d(56698),v=d(48287).Buffer,m=d(87568),c=m.base,s=m.constants.der;function f(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new i,this.tree._init(o.body)}E.exports=f,f.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function i(o){c.Node.call(this,"der",o)}l(i,c.Node),i.prototype._encodeComposite=function(e,r,n,t){var h=u(e,r,n,this.reporter);if(t.length<128){var g=new v(2);return g[0]=h,g[1]=t.length,this._createEncoderBuffer([g,t])}for(var p=1,y=t.length;y>=256;y>>=8)p++;var g=new v(1+1+p);g[0]=h,g[1]=128|p;for(var y=1+p,w=t.length;w>0;y--,w>>=8)g[y]=w&255;return this._createEncoderBuffer([g,t])},i.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){for(var n=new v(e.length*2),t=0;t<e.length;t++)n.writeUInt16BE(e.charCodeAt(t),t*2);return this._createEncoderBuffer(n)}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")},i.prototype._encodeObjid=function(e,r,n){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 t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(var t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var h=0,t=0;t<e.length;t++){var p=e[t];for(h++;p>=128;p>>=7)h++}for(var y=new v(h),g=y.length-1,t=e.length-1;t>=0;t--){var p=e[t];for(y[g--]=p&127;(p>>=7)>0;)y[g--]=128|p&127}return this._createEncoderBuffer(y)};function a(o){return o<10?"0"+o:o}i.prototype._encodeTime=function(e,r){var n,t=new Date(e);return r==="gentime"?n=[a(t.getFullYear()),a(t.getUTCMonth()+1),a(t.getUTCDate()),a(t.getUTCHours()),a(t.getUTCMinutes()),a(t.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[a(t.getFullYear()%100),a(t.getUTCMonth()+1),a(t.getUTCDate()),a(t.getUTCHours()),a(t.getUTCMinutes()),a(t.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.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"&&!v.isBuffer(e)){var n=e.toArray();!e.sign&&n[0]&128&&n.unshift(0),e=new v(n)}if(v.isBuffer(e)){var t=e.length;e.length===0&&t++;var p=new v(t);return e.copy(p),e.length===0&&(p[0]=0),this._createEncoderBuffer(p)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var t=1,h=e;h>=256;h>>=8)t++;for(var p=new Array(t),h=p.length-1;h>=0;h--)p[h]=e&255,e>>=8;return p[0]&128&&p.unshift(0),this._createEncoderBuffer(new v(p))},i.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},i.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree},i.prototype._skipDefault=function(e,r,n){var t=this._baseState,h;if(t.default===null)return!1;var p=e.join();if(t.defaultBuffer===void 0&&(t.defaultBuffer=this._encodeValue(t.default,r,n).join()),p.length!==t.defaultBuffer.length)return!1;for(h=0;h<p.length;h++)if(p[h]!==t.defaultBuffer[h])return!1;return!0};function u(o,e,r,n){var t;if(o==="seqof"?o="seq":o==="setof"&&(o="set"),s.tagByName.hasOwnProperty(o))t=s.tagByName[o];else if(typeof o=="number"&&(o|0)===o)t=o;else return n.error("Unknown tag: "+o);return t>=31?n.error("Multi-octet tag encoding unsupported"):(e||(t|=32),t|=s.tagClassByName[r||"universal"]<<6,t)}},24669:function(E,b,d){var l=b;l.der=d(70082),l.pem=d(90735)},90735:function(E,b,d){var l=d(56698),v=d(70082);function m(c){v.call(this,c),this.enc="pem"}l(m,v),E.exports=m,m.prototype.encode=function(s,f){for(var i=v.prototype.encode.call(this,s),a=i.toString("base64"),u=["-----BEGIN "+f.label+"-----"],o=0;o<a.length;o+=64)u.push(a.slice(o,o+64));return u.push("-----END "+f.label+"-----"),u.join(`
|
|
4
|
-
`)}},50462:function(E,b,d){var l=d(92861).Buffer;function v(a){l.isBuffer(a)||(a=l.from(a));for(var u=a.length/4|0,o=new Array(u),e=0;e<u;e++)o[e]=a.readUInt32BE(e*4);return o}function m(a){for(var u=0;u<a.length;a++)a[u]=0}function c(a,u,o,e,r){for(var n=o[0],t=o[1],h=o[2],p=o[3],y=a[0]^u[0],g=a[1]^u[1],w=a[2]^u[2],S=a[3]^u[3],B,C,D,A,k=4,I=1;I<r;I++)B=n[y>>>24]^t[g>>>16&255]^h[w>>>8&255]^p[S&255]^u[k++],C=n[g>>>24]^t[w>>>16&255]^h[S>>>8&255]^p[y&255]^u[k++],D=n[w>>>24]^t[S>>>16&255]^h[y>>>8&255]^p[g&255]^u[k++],A=n[S>>>24]^t[y>>>16&255]^h[g>>>8&255]^p[w&255]^u[k++],y=B,g=C,w=D,S=A;return B=(e[y>>>24]<<24|e[g>>>16&255]<<16|e[w>>>8&255]<<8|e[S&255])^u[k++],C=(e[g>>>24]<<24|e[w>>>16&255]<<16|e[S>>>8&255]<<8|e[y&255])^u[k++],D=(e[w>>>24]<<24|e[S>>>16&255]<<16|e[y>>>8&255]<<8|e[g&255])^u[k++],A=(e[S>>>24]<<24|e[y>>>16&255]<<16|e[g>>>8&255]<<8|e[w&255])^u[k++],B=B>>>0,C=C>>>0,D=D>>>0,A=A>>>0,[B,C,D,A]}var s=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var a=new Array(256),u=0;u<256;u++)u<128?a[u]=u<<1:a[u]=u<<1^283;for(var o=[],e=[],r=[[],[],[],[]],n=[[],[],[],[]],t=0,h=0,p=0;p<256;++p){var y=h^h<<1^h<<2^h<<3^h<<4;y=y>>>8^y&255^99,o[t]=y,e[y]=t;var g=a[t],w=a[g],S=a[w],B=a[y]*257^y*16843008;r[0][t]=B<<24|B>>>8,r[1][t]=B<<16|B>>>16,r[2][t]=B<<8|B>>>24,r[3][t]=B,B=S*16843009^w*65537^g*257^t*16843008,n[0][y]=B<<24|B>>>8,n[1][y]=B<<16|B>>>16,n[2][y]=B<<8|B>>>24,n[3][y]=B,t===0?t=h=1:(t=g^a[a[a[S^g]]],h^=a[a[h]])}return{SBOX:o,INV_SBOX:e,SUB_MIX:r,INV_SUB_MIX:n}}();function i(a){this._key=v(a),this._reset()}i.blockSize=4*4,i.keySize=256/8,i.prototype.blockSize=i.blockSize,i.prototype.keySize=i.keySize,i.prototype._reset=function(){for(var a=this._key,u=a.length,o=u+6,e=(o+1)*4,r=[],n=0;n<u;n++)r[n]=a[n];for(n=u;n<e;n++){var t=r[n-1];n%u===0?(t=t<<8|t>>>24,t=f.SBOX[t>>>24]<<24|f.SBOX[t>>>16&255]<<16|f.SBOX[t>>>8&255]<<8|f.SBOX[t&255],t^=s[n/u|0]<<24):u>6&&n%u===4&&(t=f.SBOX[t>>>24]<<24|f.SBOX[t>>>16&255]<<16|f.SBOX[t>>>8&255]<<8|f.SBOX[t&255]),r[n]=r[n-u]^t}for(var h=[],p=0;p<e;p++){var y=e-p,g=r[y-(p%4?0:4)];p<4||y<=4?h[p]=g:h[p]=f.INV_SUB_MIX[0][f.SBOX[g>>>24]]^f.INV_SUB_MIX[1][f.SBOX[g>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[g>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[g&255]]}this._nRounds=o,this._keySchedule=r,this._invKeySchedule=h},i.prototype.encryptBlockRaw=function(a){return a=v(a),c(a,this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},i.prototype.encryptBlock=function(a){var u=this.encryptBlockRaw(a),o=l.allocUnsafe(16);return o.writeUInt32BE(u[0],0),o.writeUInt32BE(u[1],4),o.writeUInt32BE(u[2],8),o.writeUInt32BE(u[3],12),o},i.prototype.decryptBlock=function(a){a=v(a);var u=a[1];a[1]=a[3],a[3]=u;var o=c(a,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),e=l.allocUnsafe(16);return e.writeUInt32BE(o[0],0),e.writeUInt32BE(o[3],4),e.writeUInt32BE(o[2],8),e.writeUInt32BE(o[1],12),e},i.prototype.scrub=function(){m(this._keySchedule),m(this._invKeySchedule),m(this._key)},E.exports.AES=i},92356:function(E,b,d){var l=d(50462),v=d(92861).Buffer,m=d(56168),c=d(56698),s=d(25892),f=d(30295),i=d(45122);function a(e,r){var n=0;e.length!==r.length&&n++;for(var t=Math.min(e.length,r.length),h=0;h<t;++h)n+=e[h]^r[h];return n}function u(e,r,n){if(r.length===12)return e._finID=v.concat([r,v.from([0,0,0,1])]),v.concat([r,v.from([0,0,0,2])]);var t=new s(n),h=r.length,p=h%16;t.update(r),p&&(p=16-p,t.update(v.alloc(p,0))),t.update(v.alloc(8,0));var y=h*8,g=v.alloc(8);g.writeUIntBE(y,0,8),t.update(g),e._finID=t.state;var w=v.from(e._finID);return i(w),w}function o(e,r,n,t){m.call(this);var h=v.alloc(4,0);this._cipher=new l.AES(r);var p=this._cipher.encryptBlock(h);this._ghash=new s(p),n=u(this,n,p),this._prev=v.from(n),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=t,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}c(o,m),o.prototype._update=function(e){if(!this._called&&this._alen){var r=16-this._alen%16;r<16&&(r=v.alloc(r,0),this._ghash.update(r))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=f(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&a(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!v.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(r){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=r},o.prototype.setAAD=function(r){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(r),this._alen+=r.length},E.exports=o},1241:function(E,b,d){var l=d(25799),v=d(36171),m=d(3219);function c(){return Object.keys(m)}b.createCipher=b.Cipher=l.createCipher,b.createCipheriv=b.Cipheriv=l.createCipheriv,b.createDecipher=b.Decipher=v.createDecipher,b.createDecipheriv=b.Decipheriv=v.createDecipheriv,b.listCiphers=b.getCiphers=c},36171:function(E,b,d){var l=d(92356),v=d(92861).Buffer,m=d(530),c=d(50650),s=d(56168),f=d(50462),i=d(68078),a=d(56698);function u(t,h,p){s.call(this),this._cache=new o,this._last=void 0,this._cipher=new f.AES(h),this._prev=v.from(p),this._mode=t,this._autopadding=!0}a(u,s),u.prototype._update=function(t){this._cache.add(t);for(var h,p,y=[];h=this._cache.get(this._autopadding);)p=this._mode.decrypt(this,h),y.push(p);return v.concat(y)},u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return e(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function o(){this.cache=v.allocUnsafe(0)}o.prototype.add=function(t){this.cache=v.concat([this.cache,t])},o.prototype.get=function(t){var h;if(t){if(this.cache.length>16)return h=this.cache.slice(0,16),this.cache=this.cache.slice(16),h}else if(this.cache.length>=16)return h=this.cache.slice(0,16),this.cache=this.cache.slice(16),h;return null},o.prototype.flush=function(){if(this.cache.length)return this.cache};function e(t){var h=t[15];if(h<1||h>16)throw new Error("unable to decrypt data");for(var p=-1;++p<h;)if(t[p+(16-h)]!==h)throw new Error("unable to decrypt data");if(h!==16)return t.slice(0,16-h)}function r(t,h,p){var y=m[t.toLowerCase()];if(!y)throw new TypeError("invalid suite type");if(typeof p=="string"&&(p=v.from(p)),y.mode!=="GCM"&&p.length!==y.iv)throw new TypeError("invalid iv length "+p.length);if(typeof h=="string"&&(h=v.from(h)),h.length!==y.key/8)throw new TypeError("invalid key length "+h.length);return y.type==="stream"?new c(y.module,h,p,!0):y.type==="auth"?new l(y.module,h,p,!0):new u(y.module,h,p)}function n(t,h){var p=m[t.toLowerCase()];if(!p)throw new TypeError("invalid suite type");var y=i(h,!1,p.key,p.iv);return r(t,y.key,y.iv)}b.createDecipher=n,b.createDecipheriv=r},25799:function(E,b,d){var l=d(530),v=d(92356),m=d(92861).Buffer,c=d(50650),s=d(56168),f=d(50462),i=d(68078),a=d(56698);function u(t,h,p){s.call(this),this._cache=new e,this._cipher=new f.AES(h),this._prev=m.from(p),this._mode=t,this._autopadding=!0}a(u,s),u.prototype._update=function(t){this._cache.add(t);for(var h,p,y=[];h=this._cache.get();)p=this._mode.encrypt(this,h),y.push(p);return m.concat(y)};var o=m.alloc(16,16);u.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(o))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function e(){this.cache=m.allocUnsafe(0)}e.prototype.add=function(t){this.cache=m.concat([this.cache,t])},e.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},e.prototype.flush=function(){for(var t=16-this.cache.length,h=m.allocUnsafe(t),p=-1;++p<t;)h.writeUInt8(t,p);return m.concat([this.cache,h])};function r(t,h,p){var y=l[t.toLowerCase()];if(!y)throw new TypeError("invalid suite type");if(typeof h=="string"&&(h=m.from(h)),h.length!==y.key/8)throw new TypeError("invalid key length "+h.length);if(typeof p=="string"&&(p=m.from(p)),y.mode!=="GCM"&&p.length!==y.iv)throw new TypeError("invalid iv length "+p.length);return y.type==="stream"?new c(y.module,h,p):y.type==="auth"?new v(y.module,h,p):new u(y.module,h,p)}function n(t,h){var p=l[t.toLowerCase()];if(!p)throw new TypeError("invalid suite type");var y=i(h,!1,p.key,p.iv);return r(t,y.key,y.iv)}b.createCipheriv=r,b.createCipher=n},25892:function(E,b,d){var l=d(92861).Buffer,v=l.alloc(16,0);function m(f){return[f.readUInt32BE(0),f.readUInt32BE(4),f.readUInt32BE(8),f.readUInt32BE(12)]}function c(f){var i=l.allocUnsafe(16);return i.writeUInt32BE(f[0]>>>0,0),i.writeUInt32BE(f[1]>>>0,4),i.writeUInt32BE(f[2]>>>0,8),i.writeUInt32BE(f[3]>>>0,12),i}function s(f){this.h=f,this.state=l.alloc(16,0),this.cache=l.allocUnsafe(0)}s.prototype.ghash=function(f){for(var i=-1;++i<f.length;)this.state[i]^=f[i];this._multiply()},s.prototype._multiply=function(){for(var f=m(this.h),i=[0,0,0,0],a,u,o,e=-1;++e<128;){for(u=(this.state[~~(e/8)]&1<<7-e%8)!==0,u&&(i[0]^=f[0],i[1]^=f[1],i[2]^=f[2],i[3]^=f[3]),o=(f[3]&1)!==0,a=3;a>0;a--)f[a]=f[a]>>>1|(f[a-1]&1)<<31;f[0]=f[0]>>>1,o&&(f[0]=f[0]^225<<24)}this.state=c(i)},s.prototype.update=function(f){this.cache=l.concat([this.cache,f]);for(var i;this.cache.length>=16;)i=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(i)},s.prototype.final=function(f,i){return this.cache.length&&this.ghash(l.concat([this.cache,v],16)),this.ghash(c([0,f,0,i])),this.state},E.exports=s},45122:function(E){function b(d){for(var l=d.length,v;l--;)if(v=d.readUInt8(l),v===255)d.writeUInt8(0,l);else{v++,d.writeUInt8(v,l);break}}E.exports=b},92884:function(E,b,d){var l=d(30295);b.encrypt=function(v,m){var c=l(m,v._prev);return v._prev=v._cipher.encryptBlock(c),v._prev},b.decrypt=function(v,m){var c=v._prev;v._prev=m;var s=v._cipher.decryptBlock(m);return l(s,c)}},46383:function(E,b,d){var l=d(92861).Buffer,v=d(30295);function m(c,s,f){var i=s.length,a=v(s,c._cache);return c._cache=c._cache.slice(i),c._prev=l.concat([c._prev,f?s:a]),a}b.encrypt=function(c,s,f){for(var i=l.allocUnsafe(0),a;s.length;)if(c._cache.length===0&&(c._cache=c._cipher.encryptBlock(c._prev),c._prev=l.allocUnsafe(0)),c._cache.length<=s.length)a=c._cache.length,i=l.concat([i,m(c,s.slice(0,a),f)]),s=s.slice(a);else{i=l.concat([i,m(c,s,f)]);break}return i}},55264:function(E,b,d){var l=d(92861).Buffer;function v(c,s,f){for(var i,a=-1,u=8,o=0,e,r;++a<u;)i=c._cipher.encryptBlock(c._prev),e=s&1<<7-a?128:0,r=i[0]^e,o+=(r&128)>>a%8,c._prev=m(c._prev,f?e:r);return o}function m(c,s){var f=c.length,i=-1,a=l.allocUnsafe(c.length);for(c=l.concat([c,l.from([s])]);++i<f;)a[i]=c[i]<<1|c[i+1]>>7;return a}b.encrypt=function(c,s,f){for(var i=s.length,a=l.allocUnsafe(i),u=-1;++u<i;)a[u]=v(c,s[u],f);return a}},86975:function(E,b,d){var l=d(92861).Buffer;function v(m,c,s){var f=m._cipher.encryptBlock(m._prev),i=f[0]^c;return m._prev=l.concat([m._prev.slice(1),l.from([s?c:i])]),i}b.encrypt=function(m,c,s){for(var f=c.length,i=l.allocUnsafe(f),a=-1;++a<f;)i[a]=v(m,c[a],s);return i}},63053:function(E,b,d){var l=d(30295),v=d(92861).Buffer,m=d(45122);function c(f){var i=f._cipher.encryptBlockRaw(f._prev);return m(f._prev),i}var s=16;b.encrypt=function(f,i){var a=Math.ceil(i.length/s),u=f._cache.length;f._cache=v.concat([f._cache,v.allocUnsafe(a*s)]);for(var o=0;o<a;o++){var e=c(f),r=u+o*s;f._cache.writeUInt32BE(e[0],r+0),f._cache.writeUInt32BE(e[1],r+4),f._cache.writeUInt32BE(e[2],r+8),f._cache.writeUInt32BE(e[3],r+12)}var n=f._cache.slice(0,i.length);return f._cache=f._cache.slice(i.length),l(i,n)}},52632:function(E,b){b.encrypt=function(d,l){return d._cipher.encryptBlock(l)},b.decrypt=function(d,l){return d._cipher.decryptBlock(l)}},530:function(E,b,d){var l={ECB:d(52632),CBC:d(92884),CFB:d(46383),CFB8:d(86975),CFB1:d(55264),OFB:d(46843),CTR:d(63053),GCM:d(63053)},v=d(3219);for(var m in v)v[m].module=l[v[m].mode];E.exports=v},46843:function(E,b,d){var l=d(48287).Buffer,v=d(30295);function m(c){return c._prev=c._cipher.encryptBlock(c._prev),c._prev}b.encrypt=function(c,s){for(;c._cache.length<s.length;)c._cache=l.concat([c._cache,m(c)]);var f=c._cache.slice(0,s.length);return c._cache=c._cache.slice(s.length),v(s,f)}},50650:function(E,b,d){var l=d(50462),v=d(92861).Buffer,m=d(56168),c=d(56698);function s(f,i,a,u){m.call(this),this._cipher=new l.AES(i),this._prev=v.from(a),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=u,this._mode=f}c(s,m),s.prototype._update=function(f){return this._mode.encrypt(this,f,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},E.exports=s},30125:function(E,b,d){var l=d(84050),v=d(1241),m=d(530),c=d(32438),s=d(68078);function f(e,r){e=e.toLowerCase();var n,t;if(m[e])n=m[e].key,t=m[e].iv;else if(c[e])n=c[e].key*8,t=c[e].iv;else throw new TypeError("invalid suite type");var h=s(r,!1,n,t);return a(e,h.key,h.iv)}function i(e,r){e=e.toLowerCase();var n,t;if(m[e])n=m[e].key,t=m[e].iv;else if(c[e])n=c[e].key*8,t=c[e].iv;else throw new TypeError("invalid suite type");var h=s(r,!1,n,t);return u(e,h.key,h.iv)}function a(e,r,n){if(e=e.toLowerCase(),m[e])return v.createCipheriv(e,r,n);if(c[e])return new l({key:r,iv:n,mode:e});throw new TypeError("invalid suite type")}function u(e,r,n){if(e=e.toLowerCase(),m[e])return v.createDecipheriv(e,r,n);if(c[e])return new l({key:r,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function o(){return Object.keys(c).concat(v.getCiphers())}b.createCipher=b.Cipher=f,b.createCipheriv=b.Cipheriv=a,b.createDecipher=b.Decipher=i,b.createDecipheriv=b.Decipheriv=u,b.listCiphers=b.getCiphers=o},84050:function(E,b,d){var l=d(56168),v=d(29560),m=d(56698),c=d(92861).Buffer,s={"des-ede3-cbc":v.CBC.instantiate(v.EDE),"des-ede3":v.EDE,"des-ede-cbc":v.CBC.instantiate(v.EDE),"des-ede":v.EDE,"des-cbc":v.CBC.instantiate(v.DES),"des-ecb":v.DES};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],E.exports=f,m(f,l);function f(i){l.call(this);var a=i.mode.toLowerCase(),u=s[a],o;i.decrypt?o="decrypt":o="encrypt";var e=i.key;c.isBuffer(e)||(e=c.from(e)),(a==="des-ede"||a==="des-ede-cbc")&&(e=c.concat([e,e.slice(0,8)]));var r=i.iv;c.isBuffer(r)||(r=c.from(r)),this._des=u.create({key:e,iv:r,type:o})}f.prototype._update=function(i){return c.from(this._des.update(i))},f.prototype._final=function(){return c.from(this._des.final())}},32438:function(E,b){b["des-ecb"]={key:8,iv:0},b["des-cbc"]=b.des={key:8,iv:8},b["des-ede3-cbc"]=b.des3={key:24,iv:8},b["des-ede3"]={key:24,iv:0},b["des-ede-cbc"]={key:16,iv:8},b["des-ede"]={key:16,iv:0}},67332:function(E,b,d){var l=d(48287).Buffer,v=d(39404),m=d(53209);E.exports=s;function c(i){var a=f(i),u=a.toRed(v.mont(i.modulus)).redPow(new v(i.publicExponent)).fromRed();return{blinder:u,unblinder:a.invm(i.modulus)}}function s(i,a){var u=c(a),o=a.modulus.byteLength(),e=v.mont(a.modulus),r=new v(i).mul(u.blinder).umod(a.modulus),n=r.toRed(v.mont(a.prime1)),t=r.toRed(v.mont(a.prime2)),h=a.coefficient,p=a.prime1,y=a.prime2,g=n.redPow(a.exponent1),w=t.redPow(a.exponent2);g=g.fromRed(),w=w.fromRed();var S=g.isub(w).imul(h).umod(p);return S.imul(y),w.iadd(S),new l(w.imul(u.unblinder).umod(a.modulus).toArray(!1,o))}s.getr=f;function f(i){for(var a=i.modulus.byteLength(),u=new v(m(a));u.cmp(i.modulus)>=0||!u.umod(i.prime1)||!u.umod(i.prime2);)u=new v(m(a));return u}},55715:function(E,b,d){E.exports=d(62951)},20:function(E,b,d){var l=d(48287).Buffer,v=d(47108),m=d(88310),c=d(56698),s=d(35359),f=d(74847),i=d(62951);Object.keys(i).forEach(function(r){i[r].id=new l(i[r].id,"hex"),i[r.toLowerCase()]=i[r]});function a(r){m.Writable.call(this);var n=i[r];if(!n)throw new Error("Unknown message digest");this._hashType=n.hash,this._hash=v(n.hash),this._tag=n.id,this._signType=n.sign}c(a,m.Writable),a.prototype._write=function(n,t,h){this._hash.update(n),h()},a.prototype.update=function(n,t){return typeof n=="string"&&(n=new l(n,t)),this._hash.update(n),this},a.prototype.sign=function(n,t){this.end();var h=this._hash.digest(),p=s(h,n,this._hashType,this._signType,this._tag);return t?p.toString(t):p};function u(r){m.Writable.call(this);var n=i[r];if(!n)throw new Error("Unknown message digest");this._hash=v(n.hash),this._tag=n.id,this._signType=n.sign}c(u,m.Writable),u.prototype._write=function(n,t,h){this._hash.update(n),h()},u.prototype.update=function(n,t){return typeof n=="string"&&(n=new l(n,t)),this._hash.update(n),this},u.prototype.verify=function(n,t,h){typeof t=="string"&&(t=new l(t,h)),this.end();var p=this._hash.digest();return f(t,p,n,this._signType,this._tag)};function o(r){return new a(r)}function e(r){return new u(r)}E.exports={Sign:o,Verify:e,createSign:o,createVerify:e}},35359:function(E,b,d){var l=d(48287).Buffer,v=d(83507),m=d(67332),c=d(86729).ec,s=d(39404),f=d(78170),i=d(64589);function a(y,g,w,S,B){var C=f(g);if(C.curve){if(S!=="ecdsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");return u(y,C)}else if(C.type==="dsa"){if(S!=="dsa")throw new Error("wrong private key type");return o(y,C,w)}else if(S!=="rsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");y=l.concat([B,y]);for(var D=C.modulus.byteLength(),A=[0,1];y.length+A.length+1<D;)A.push(255);A.push(0);for(var k=-1;++k<y.length;)A.push(y[k]);var I=m(A,C);return I}function u(y,g){var w=i[g.curve.join(".")];if(!w)throw new Error("unknown curve "+g.curve.join("."));var S=new c(w),B=S.keyFromPrivate(g.privateKey),C=B.sign(y);return new l(C.toDER())}function o(y,g,w){for(var S=g.params.priv_key,B=g.params.p,C=g.params.q,D=g.params.g,A=new s(0),k,I=n(y,C).mod(C),x=!1,P=r(S,C,y,w);x===!1;)k=h(C,P,w),A=p(D,k,B,C),x=k.invm(C).imul(I.add(S.mul(A))).mod(C),x.cmpn(0)===0&&(x=!1,A=new s(0));return e(A,x)}function e(y,g){y=y.toArray(),g=g.toArray(),y[0]&128&&(y=[0].concat(y)),g[0]&128&&(g=[0].concat(g));var w=y.length+g.length+4,S=[48,w,2,y.length];return S=S.concat(y,[2,g.length],g),new l(S)}function r(y,g,w,S){if(y=new l(y.toArray()),y.length<g.byteLength()){var B=new l(g.byteLength()-y.length);B.fill(0),y=l.concat([B,y])}var C=w.length,D=t(w,g),A=new l(C);A.fill(1);var k=new l(C);return k.fill(0),k=v(S,k).update(A).update(new l([0])).update(y).update(D).digest(),A=v(S,k).update(A).digest(),k=v(S,k).update(A).update(new l([1])).update(y).update(D).digest(),A=v(S,k).update(A).digest(),{k,v:A}}function n(y,g){var w=new s(y),S=(y.length<<3)-g.bitLength();return S>0&&w.ishrn(S),w}function t(y,g){y=n(y,g),y=y.mod(g);var w=new l(y.toArray());if(w.length<g.byteLength()){var S=new l(g.byteLength()-w.length);S.fill(0),w=l.concat([S,w])}return w}function h(y,g,w){var S,B;do{for(S=new l(0);S.length*8<y.bitLength();)g.v=v(w,g.k).update(g.v).digest(),S=l.concat([S,g.v]);B=n(S,y),g.k=v(w,g.k).update(g.v).update(new l([0])).digest(),g.v=v(w,g.k).update(g.v).digest()}while(B.cmp(y)!==-1);return B}function p(y,g,w,S){return y.toRed(s.mont(w)).redPow(g).fromRed().mod(S)}E.exports=a,E.exports.getKey=r,E.exports.makeKey=h},74847:function(E,b,d){var l=d(48287).Buffer,v=d(39404),m=d(86729).ec,c=d(78170),s=d(64589);function f(o,e,r,n,t){var h=c(r);if(h.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return i(o,e,h)}else if(h.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return a(o,e,h)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=l.concat([t,e]);for(var p=h.modulus.byteLength(),y=[1],g=0;e.length+y.length+2<p;)y.push(255),g++;y.push(0);for(var w=-1;++w<e.length;)y.push(e[w]);y=new l(y);var S=v.mont(h.modulus);o=new v(o).toRed(S),o=o.redPow(new v(h.publicExponent)),o=new l(o.fromRed().toArray());var B=g<8?1:0;for(p=Math.min(o.length,y.length),o.length!==y.length&&(B=1),w=-1;++w<p;)B|=o[w]^y[w];return B===0}function i(o,e,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var t=new m(n),h=r.data.subjectPrivateKey.data;return t.verify(e,o,h)}function a(o,e,r){var n=r.data.p,t=r.data.q,h=r.data.g,p=r.data.pub_key,y=c.signature.decode(o,"der"),g=y.s,w=y.r;u(g,t),u(w,t);var S=v.mont(n),B=g.invm(t),C=h.toRed(S).redPow(new v(e).mul(B).mod(t)).fromRed().mul(p.toRed(S).redPow(w.mul(B).mod(t)).fromRed()).mod(n).mod(t);return C.cmp(w)===0}function u(o,e){if(o.cmpn(0)<=0)throw new Error("invalid sig");if(o.cmp(e)>=e)throw new Error("invalid sig")}E.exports=f},30295:function(E,b,d){var l=d(48287).Buffer;E.exports=function(m,c){for(var s=Math.min(m.length,c.length),f=new l(s),i=0;i<s;++i)f[i]=m[i]^c[i];return f}},61324:function(E,b,d){var l=d(48287).Buffer,v=d(86729),m=d(39404);E.exports=function(a){return new s(a)};var c={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};c.p224=c.secp224r1,c.p256=c.secp256r1=c.prime256v1,c.p192=c.secp192r1=c.prime192v1,c.p384=c.secp384r1,c.p521=c.secp521r1;function s(i){this.curveType=c[i],this.curveType||(this.curveType={name:i}),this.curve=new v.ec(this.curveType.name),this.keys=void 0}s.prototype.generateKeys=function(i,a){return this.keys=this.curve.genKeyPair(),this.getPublicKey(i,a)},s.prototype.computeSecret=function(i,a,u){a=a||"utf8",l.isBuffer(i)||(i=new l(i,a));var o=this.curve.keyFromPublic(i).getPublic(),e=o.mul(this.keys.getPrivate()).getX();return f(e,u,this.curveType.byteLength)},s.prototype.getPublicKey=function(i,a){var u=this.keys.getPublic(a==="compressed",!0);return a==="hybrid"&&(u[u.length-1]%2?u[0]=7:u[0]=6),f(u,i)},s.prototype.getPrivateKey=function(i){return f(this.keys.getPrivate(),i)},s.prototype.setPublicKey=function(i,a){return a=a||"utf8",l.isBuffer(i)||(i=new l(i,a)),this.keys._importPublic(i),this},s.prototype.setPrivateKey=function(i,a){a=a||"utf8",l.isBuffer(i)||(i=new l(i,a));var u=new m(i);return u=u.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(u),this};function f(i,a,u){Array.isArray(i)||(i=i.toArray());var o=new l(i);if(u&&o.length<u){var e=new l(u-o.length);e.fill(0),o=l.concat([e,o])}return a?o.toString(a):o}},83507:function(E,b,d){"use strict";var l=d(56698),v=d(41800),m=d(56168),c=d(92861).Buffer,s=d(20320),f=d(66011),i=d(62802),a=c.alloc(128);function u(o,e){m.call(this,"digest"),typeof e=="string"&&(e=c.from(e));var r=o==="sha512"||o==="sha384"?128:64;if(this._alg=o,this._key=e,e.length>r){var n=o==="rmd160"?new f:i(o);e=n.update(e).digest()}else e.length<r&&(e=c.concat([e,a],r));for(var t=this._ipad=c.allocUnsafe(r),h=this._opad=c.allocUnsafe(r),p=0;p<r;p++)t[p]=e[p]^54,h[p]=e[p]^92;this._hash=o==="rmd160"?new f:i(o),this._hash.update(t)}l(u,m),u.prototype._update=function(o){this._hash.update(o)},u.prototype._final=function(){var o=this._hash.digest(),e=this._alg==="rmd160"?new f:i(this._alg);return e.update(this._opad).update(o).digest()},E.exports=function(e,r){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new u("rmd160",r):e==="md5"?new v(s,r):new u(e,r)}},41800:function(E,b,d){"use strict";var l=d(56698),v=d(92861).Buffer,m=d(56168),c=v.alloc(128),s=64;function f(i,a){m.call(this,"digest"),typeof a=="string"&&(a=v.from(a)),this._alg=i,this._key=a,a.length>s?a=i(a):a.length<s&&(a=v.concat([a,c],s));for(var u=this._ipad=v.allocUnsafe(s),o=this._opad=v.allocUnsafe(s),e=0;e<s;e++)u[e]=a[e]^54,o[e]=a[e]^92;this._hash=[u]}l(f,m),f.prototype._update=function(i){this._hash.push(i)},f.prototype._final=function(){var i=this._alg(v.concat(this._hash));return this._alg(v.concat([this._opad,i]))},E.exports=f},91565:function(E,b,d){"use strict";b.randomBytes=b.rng=b.pseudoRandomBytes=b.prng=d(53209),b.createHash=b.Hash=d(47108),b.createHmac=b.Hmac=d(83507);var l=d(55715),v=Object.keys(l),m=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(v);b.getHashes=function(){return m};var c=d(78396);b.pbkdf2=c.pbkdf2,b.pbkdf2Sync=c.pbkdf2Sync;var s=d(30125);b.Cipher=s.Cipher,b.createCipher=s.createCipher,b.Cipheriv=s.Cipheriv,b.createCipheriv=s.createCipheriv,b.Decipher=s.Decipher,b.createDecipher=s.createDecipher,b.Decipheriv=s.Decipheriv,b.createDecipheriv=s.createDecipheriv,b.getCiphers=s.getCiphers,b.listCiphers=s.listCiphers;var f=d(15380);b.DiffieHellmanGroup=f.DiffieHellmanGroup,b.createDiffieHellmanGroup=f.createDiffieHellmanGroup,b.getDiffieHellman=f.getDiffieHellman,b.createDiffieHellman=f.createDiffieHellman,b.DiffieHellman=f.DiffieHellman;var i=d(20);b.createSign=i.createSign,b.Sign=i.Sign,b.createVerify=i.createVerify,b.Verify=i.Verify,b.createECDH=d(61324);var a=d(97168);b.publicEncrypt=a.publicEncrypt,b.privateEncrypt=a.privateEncrypt,b.publicDecrypt=a.publicDecrypt,b.privateDecrypt=a.privateDecrypt;var u=d(76983);b.randomFill=u.randomFill,b.randomFillSync=u.randomFillSync,b.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
5
|
-
`))},b.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}},29560:function(E,b,d){"use strict";b.utils=d(87626),b.Cipher=d(82808),b.DES=d(82211),b.CBC=d(3389),b.EDE=d(65279)},3389:function(E,b,d){"use strict";var l=d(43349),v=d(56698),m={};function c(f){l.equal(f.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i<this.iv.length;i++)this.iv[i]=f[i]}function s(f){function i(e){f.call(this,e),this._cbcInit()}v(i,f);for(var a=Object.keys(m),u=0;u<a.length;u++){var o=a[u];i.prototype[o]=m[o]}return i.create=function(r){return new i(r)},i}b.instantiate=s,m._cbcInit=function(){var i=new c(this.options.iv);this._cbcState=i},m._update=function(i,a,u,o){var e=this._cbcState,r=this.constructor.super_.prototype,n=e.iv;if(this.type==="encrypt"){for(var t=0;t<this.blockSize;t++)n[t]^=i[a+t];r._update.call(this,n,0,u,o);for(var t=0;t<this.blockSize;t++)n[t]=u[o+t]}else{r._update.call(this,i,a,u,o);for(var t=0;t<this.blockSize;t++)u[o+t]^=n[t];for(var t=0;t<this.blockSize;t++)n[t]=i[a+t]}}},82808:function(E,b,d){"use strict";var l=d(43349);function v(m){this.options=m,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}E.exports=v,v.prototype._init=function(){},v.prototype.update=function(c){return c.length===0?[]:this.type==="decrypt"?this._updateDecrypt(c):this._updateEncrypt(c)},v.prototype._buffer=function(c,s){for(var f=Math.min(this.buffer.length-this.bufferOff,c.length-s),i=0;i<f;i++)this.buffer[this.bufferOff+i]=c[s+i];return this.bufferOff+=f,f},v.prototype._flushBuffer=function(c,s){return this._update(this.buffer,0,c,s),this.bufferOff=0,this.blockSize},v.prototype._updateEncrypt=function(c){var s=0,f=0,i=(this.bufferOff+c.length)/this.blockSize|0,a=new Array(i*this.blockSize);this.bufferOff!==0&&(s+=this._buffer(c,s),this.bufferOff===this.buffer.length&&(f+=this._flushBuffer(a,f)));for(var u=c.length-(c.length-s)%this.blockSize;s<u;s+=this.blockSize)this._update(c,s,a,f),f+=this.blockSize;for(;s<c.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=c[s];return a},v.prototype._updateDecrypt=function(c){for(var s=0,f=0,i=Math.ceil((this.bufferOff+c.length)/this.blockSize)-1,a=new Array(i*this.blockSize);i>0;i--)s+=this._buffer(c,s),f+=this._flushBuffer(a,f);return s+=this._buffer(c,s),a},v.prototype.final=function(c){var s;c&&(s=this.update(c));var f;return this.type==="encrypt"?f=this._finalEncrypt():f=this._finalDecrypt(),s?s.concat(f):f},v.prototype._pad=function(c,s){if(s===0)return!1;for(;s<c.length;)c[s++]=0;return!0},v.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var c=new Array(this.blockSize);return this._update(this.buffer,0,c,0),c},v.prototype._unpad=function(c){return c},v.prototype._finalDecrypt=function(){l.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var c=new Array(this.blockSize);return this._flushBuffer(c,0),this._unpad(c)}},82211:function(E,b,d){"use strict";var l=d(43349),v=d(56698),m=d(29560),c=m.utils,s=m.Cipher;function f(){this.tmp=new Array(2),this.keys=null}function i(u){s.call(this,u);var o=new f;this._desState=o,this.deriveKeys(o,u.key)}v(i,s),E.exports=i,i.create=function(o){return new i(o)};var a=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];i.prototype.deriveKeys=function(o,e){o.keys=new Array(16*2),l.equal(e.length,this.blockSize,"Invalid key length");var r=c.readUInt32BE(e,0),n=c.readUInt32BE(e,4);c.pc1(r,n,o.tmp,0),r=o.tmp[0],n=o.tmp[1];for(var t=0;t<o.keys.length;t+=2){var h=a[t>>>1];r=c.r28shl(r,h),n=c.r28shl(n,h),c.pc2(r,n,o.keys,t)}},i.prototype._update=function(o,e,r,n){var t=this._desState,h=c.readUInt32BE(o,e),p=c.readUInt32BE(o,e+4);c.ip(h,p,t.tmp,0),h=t.tmp[0],p=t.tmp[1],this.type==="encrypt"?this._encrypt(t,h,p,t.tmp,0):this._decrypt(t,h,p,t.tmp,0),h=t.tmp[0],p=t.tmp[1],c.writeUInt32BE(r,h,n),c.writeUInt32BE(r,p,n+4)},i.prototype._pad=function(o,e){for(var r=o.length-e,n=e;n<o.length;n++)o[n]=r;return!0},i.prototype._unpad=function(o){for(var e=o[o.length-1],r=o.length-e;r<o.length;r++)l.equal(o[r],e);return o.slice(0,o.length-e)},i.prototype._encrypt=function(o,e,r,n,t){for(var h=e,p=r,y=0;y<o.keys.length;y+=2){var g=o.keys[y],w=o.keys[y+1];c.expand(p,o.tmp,0),g^=o.tmp[0],w^=o.tmp[1];var S=c.substitute(g,w),B=c.permute(S),C=p;p=(h^B)>>>0,h=C}c.rip(p,h,n,t)},i.prototype._decrypt=function(o,e,r,n,t){for(var h=r,p=e,y=o.keys.length-2;y>=0;y-=2){var g=o.keys[y],w=o.keys[y+1];c.expand(h,o.tmp,0),g^=o.tmp[0],w^=o.tmp[1];var S=c.substitute(g,w),B=c.permute(S),C=h;h=(p^B)>>>0,p=C}c.rip(h,p,n,t)}},65279:function(E,b,d){"use strict";var l=d(43349),v=d(56698),m=d(29560),c=m.Cipher,s=m.DES;function f(a,u){l.equal(u.length,24,"Invalid key length");var o=u.slice(0,8),e=u.slice(8,16),r=u.slice(16,24);a==="encrypt"?this.ciphers=[s.create({type:"encrypt",key:o}),s.create({type:"decrypt",key:e}),s.create({type:"encrypt",key:r})]:this.ciphers=[s.create({type:"decrypt",key:r}),s.create({type:"encrypt",key:e}),s.create({type:"decrypt",key:o})]}function i(a){c.call(this,a);var u=new f(this.type,this.options.key);this._edeState=u}v(i,c),E.exports=i,i.create=function(u){return new i(u)},i.prototype._update=function(u,o,e,r){var n=this._edeState;n.ciphers[0]._update(u,o,e,r),n.ciphers[1]._update(e,r,e,r),n.ciphers[2]._update(e,r,e,r)},i.prototype._pad=s.prototype._pad,i.prototype._unpad=s.prototype._unpad},87626:function(E,b){"use strict";b.readUInt32BE=function(c,s){var f=c[0+s]<<24|c[1+s]<<16|c[2+s]<<8|c[3+s];return f>>>0},b.writeUInt32BE=function(c,s,f){c[0+f]=s>>>24,c[1+f]=s>>>16&255,c[2+f]=s>>>8&255,c[3+f]=s&255},b.ip=function(c,s,f,i){for(var a=0,u=0,o=6;o>=0;o-=2){for(var e=0;e<=24;e+=8)a<<=1,a|=s>>>e+o&1;for(var e=0;e<=24;e+=8)a<<=1,a|=c>>>e+o&1}for(var o=6;o>=0;o-=2){for(var e=1;e<=25;e+=8)u<<=1,u|=s>>>e+o&1;for(var e=1;e<=25;e+=8)u<<=1,u|=c>>>e+o&1}f[i+0]=a>>>0,f[i+1]=u>>>0},b.rip=function(c,s,f,i){for(var a=0,u=0,o=0;o<4;o++)for(var e=24;e>=0;e-=8)a<<=1,a|=s>>>e+o&1,a<<=1,a|=c>>>e+o&1;for(var o=4;o<8;o++)for(var e=24;e>=0;e-=8)u<<=1,u|=s>>>e+o&1,u<<=1,u|=c>>>e+o&1;f[i+0]=a>>>0,f[i+1]=u>>>0},b.pc1=function(c,s,f,i){for(var a=0,u=0,o=7;o>=5;o--){for(var e=0;e<=24;e+=8)a<<=1,a|=s>>e+o&1;for(var e=0;e<=24;e+=8)a<<=1,a|=c>>e+o&1}for(var e=0;e<=24;e+=8)a<<=1,a|=s>>e+o&1;for(var o=1;o<=3;o++){for(var e=0;e<=24;e+=8)u<<=1,u|=s>>e+o&1;for(var e=0;e<=24;e+=8)u<<=1,u|=c>>e+o&1}for(var e=0;e<=24;e+=8)u<<=1,u|=c>>e+o&1;f[i+0]=a>>>0,f[i+1]=u>>>0},b.r28shl=function(c,s){return c<<s&268435455|c>>>28-s};var d=[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];b.pc2=function(c,s,f,i){for(var a=0,u=0,o=d.length>>>1,e=0;e<o;e++)a<<=1,a|=c>>>d[e]&1;for(var e=o;e<d.length;e++)u<<=1,u|=s>>>d[e]&1;f[i+0]=a>>>0,f[i+1]=u>>>0},b.expand=function(c,s,f){var i=0,a=0;i=(c&1)<<5|c>>>27;for(var u=23;u>=15;u-=4)i<<=6,i|=c>>>u&63;for(var u=11;u>=3;u-=4)a|=c>>>u&63,a<<=6;a|=(c&31)<<1|c>>>31,s[f+0]=i>>>0,s[f+1]=a>>>0};var l=[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];b.substitute=function(c,s){for(var f=0,i=0;i<4;i++){var a=c>>>18-i*6&63,u=l[i*64+a];f<<=4,f|=u}for(var i=0;i<4;i++){var a=s>>>18-i*6&63,u=l[4*64+i*64+a];f<<=4,f|=u}return f>>>0};var v=[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];b.permute=function(c){for(var s=0,f=0;f<v.length;f++)s<<=1,s|=c>>>v[f]&1;return s>>>0},b.padSplit=function(c,s,f){for(var i=c.toString(2);i.length<s;)i="0"+i;for(var a=[],u=0;u<s;u+=f)a.push(i.slice(u,u+f));return a.join(" ")}},15380:function(E,b,d){var l=d(48287).Buffer,v=d(4934),m=d(23241),c=d(14910);function s(a){var u=new l(m[a].prime,"hex"),o=new l(m[a].gen,"hex");return new c(u,o)}var f={binary:!0,hex:!0,base64:!0};function i(a,u,o,e){return l.isBuffer(u)||f[u]===void 0?i(a,"binary",u,o):(u=u||"binary",e=e||"binary",o=o||new l([2]),l.isBuffer(o)||(o=new l(o,e)),typeof a=="number"?new c(v(a,o),o,!0):(l.isBuffer(a)||(a=new l(a,u)),new c(a,o,!0)))}b.DiffieHellmanGroup=b.createDiffieHellmanGroup=b.getDiffieHellman=s,b.createDiffieHellman=b.DiffieHellman=i},14910:function(E,b,d){var l=d(48287).Buffer,v=d(39404),m=d(52244),c=new m,s=new v(24),f=new v(11),i=new v(10),a=new v(3),u=new v(7),o=d(4934),e=d(53209);E.exports=p;function r(g,w){return w=w||"utf8",l.isBuffer(g)||(g=new l(g,w)),this._pub=new v(g),this}function n(g,w){return w=w||"utf8",l.isBuffer(g)||(g=new l(g,w)),this._priv=new v(g),this}var t={};function h(g,w){var S=w.toString("hex"),B=[S,g.toString(16)].join("_");if(B in t)return t[B];var C=0;if(g.isEven()||!o.simpleSieve||!o.fermatTest(g)||!c.test(g))return C+=1,S==="02"||S==="05"?C+=8:C+=4,t[B]=C,C;c.test(g.shrn(1))||(C+=2);var D;switch(S){case"02":g.mod(s).cmp(f)&&(C+=8);break;case"05":D=g.mod(i),D.cmp(a)&&D.cmp(u)&&(C+=8);break;default:C+=4}return t[B]=C,C}function p(g,w,S){this.setGenerator(w),this.__prime=new v(g),this._prime=v.mont(this.__prime),this._primeLen=g.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,S?(this.setPublicKey=r,this.setPrivateKey=n):this._primeCode=8}Object.defineProperty(p.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=h(this.__prime,this.__gen)),this._primeCode}}),p.prototype.generateKeys=function(){return this._priv||(this._priv=new v(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},p.prototype.computeSecret=function(g){g=new v(g),g=g.toRed(this._prime);var w=g.redPow(this._priv).fromRed(),S=new l(w.toArray()),B=this.getPrime();if(S.length<B.length){var C=new l(B.length-S.length);C.fill(0),S=l.concat([C,S])}return S},p.prototype.getPublicKey=function(w){return y(this._pub,w)},p.prototype.getPrivateKey=function(w){return y(this._priv,w)},p.prototype.getPrime=function(g){return y(this.__prime,g)},p.prototype.getGenerator=function(g){return y(this._gen,g)},p.prototype.setGenerator=function(g,w){return w=w||"utf8",l.isBuffer(g)||(g=new l(g,w)),this.__gen=g,this._gen=new v(g),this};function y(g,w){var S=new l(g.toArray());return w?S.toString(w):S}},4934:function(E,b,d){var l=d(53209);E.exports=B,B.simpleSieve=w,B.fermatTest=S;var v=d(39404),m=new v(24),c=d(52244),s=new c,f=new v(1),i=new v(2),a=new v(5),u=new v(16),o=new v(8),e=new v(10),r=new v(3),n=new v(7),t=new v(11),h=new v(4),p=new v(12),y=null;function g(){if(y!==null)return y;var C=1048576,D=[];D[0]=2;for(var A=1,k=3;k<C;k+=2){for(var I=Math.ceil(Math.sqrt(k)),x=0;x<A&&D[x]<=I&&k%D[x]!==0;x++);A!==x&&D[x]<=I||(D[A++]=k)}return y=D,D}function w(C){for(var D=g(),A=0;A<D.length;A++)if(C.modn(D[A])===0)return C.cmpn(D[A])===0;return!0}function S(C){var D=v.mont(C);return i.toRed(D).redPow(C.subn(1)).fromRed().cmpn(1)===0}function B(C,D){if(C<16)return D===2||D===5?new v([140,123]):new v([140,39]);D=new v(D);for(var A,k;;){for(A=new v(l(Math.ceil(C/8)));A.bitLength()>C;)A.ishrn(1);if(A.isEven()&&A.iadd(f),A.testn(1)||A.iadd(i),D.cmp(i)){if(!D.cmp(a))for(;A.mod(e).cmp(r);)A.iadd(h)}else for(;A.mod(m).cmp(t);)A.iadd(h);if(k=A.shrn(1),w(k)&&w(A)&&S(k)&&S(A)&&s.test(k)&&s.test(A))return A}}},68078:function(E,b,d){var l=d(92861).Buffer,v=d(88276);function m(c,s,f,i){if(l.isBuffer(c)||(c=l.from(c,"binary")),s&&(l.isBuffer(s)||(s=l.from(s,"binary")),s.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=f/8,u=l.alloc(a),o=l.alloc(i||0),e=l.alloc(0);a>0||i>0;){var r=new v;r.update(e),r.update(c),s&&r.update(s),e=r.digest();var n=0;if(a>0){var t=u.length-a;n=Math.min(a,e.length),e.copy(u,t,0,n),a-=n}if(n<e.length&&i>0){var h=o.length-i,p=Math.min(i,e.length-n);e.copy(o,h,n,n+p),i-=p}}return e.fill(0),{key:u,iv:o}}E.exports=m},52244:function(E,b,d){var l=d(39404),v=d(15037);function m(c){this.rand=c||new v.Rand}E.exports=m,m.create=function(s){return new m(s)},m.prototype._randbelow=function(s){var f=s.bitLength(),i=Math.ceil(f/8);do var a=new l(this.rand.generate(i));while(a.cmp(s)>=0);return a},m.prototype._randrange=function(s,f){var i=f.sub(s);return s.add(this._randbelow(i))},m.prototype.test=function(s,f,i){var a=s.bitLength(),u=l.mont(s),o=new l(1).toRed(u);f||(f=Math.max(1,a/48|0));for(var e=s.subn(1),r=0;!e.testn(r);r++);for(var n=s.shrn(r),t=e.toRed(u),h=!0;f>0;f--){var p=this._randrange(new l(2),e);i&&i(p);var y=p.toRed(u).redPow(n);if(!(y.cmp(o)===0||y.cmp(t)===0)){for(var g=1;g<r;g++){if(y=y.redSqr(),y.cmp(o)===0)return!1;if(y.cmp(t)===0)break}if(g===r)return!1}}return h},m.prototype.getDivisor=function(s,f){var i=s.bitLength(),a=l.mont(s),u=new l(1).toRed(a);f||(f=Math.max(1,i/48|0));for(var o=s.subn(1),e=0;!o.testn(e);e++);for(var r=s.shrn(e),n=o.toRed(a);f>0;f--){var t=this._randrange(new l(2),o),h=s.gcd(t);if(h.cmpn(1)!==0)return h;var p=t.toRed(a).redPow(r);if(!(p.cmp(u)===0||p.cmp(n)===0)){for(var y=1;y<e;y++){if(p=p.redSqr(),p.cmp(u)===0)return p.fromRed().subn(1).gcd(s);if(p.cmp(n)===0)break}if(y===e)return p=p.redSqr(),p.fromRed().subn(1).gcd(s)}}return!1}},21137:function(E,b,d){"use strict";var l=d(87568);b.certificate=d(36413);var v=l.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())});b.RSAPrivateKey=v;var m=l.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});b.RSAPublicKey=m;var c=l.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});b.PublicKey=c;var s=l.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())}),f=l.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});b.PrivateKey=f;var i=l.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())});b.EncryptedPrivateKey=i;var a=l.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())});b.DSAPrivateKey=a,b.DSAparam=l.define("DSAparam",function(){this.int()});var u=l.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(o),this.key("publicKey").optional().explicit(1).bitstr())});b.ECPrivateKey=u;var o=l.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});b.signature=l.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},36413:function(E,b,d){"use strict";var l=d(87568),v=l.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),m=l.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),c=l.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=l.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}),f=l.define("RelativeDistinguishedName",function(){this.setof(m)}),i=l.define("RDNSequence",function(){this.seqof(f)}),a=l.define("Name",function(){this.choice({rdnSequence:this.use(i)})}),u=l.define("Validity",function(){this.seq().obj(this.key("notBefore").use(v),this.key("notAfter").use(v))}),o=l.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),e=l.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(c),this.key("issuer").use(a),this.key("validity").use(u),this.key("subject").use(a),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(o).optional())}),r=l.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(e),this.key("signatureAlgorithm").use(c),this.key("signatureValue").bitstr())});E.exports=r},24101:function(E,b,d){var l=/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,v=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,m=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,c=d(68078),s=d(1241),f=d(92861).Buffer;E.exports=function(i,a){var u=i.toString(),o=u.match(l),e;if(o){var n="aes"+o[1],t=f.from(o[2],"hex"),h=f.from(o[3].replace(/[\r\n]/g,""),"base64"),p=c(a,t.slice(0,8),parseInt(o[1],10)).key,y=[],g=s.createDecipheriv(n,p,t);y.push(g.update(h)),y.push(g.final()),e=f.concat(y)}else{var r=u.match(m);e=new f(r[2].replace(/[\r\n]/g,""),"base64")}var w=u.match(v)[1];return{tag:w,data:e}}},78170:function(E,b,d){var l=d(21137),v=d(15579),m=d(24101),c=d(1241),s=d(78396),f=d(92861).Buffer;E.exports=i;function i(u){var o;typeof u=="object"&&!f.isBuffer(u)&&(o=u.passphrase,u=u.key),typeof u=="string"&&(u=f.from(u));var e=m(u,o),r=e.tag,n=e.data,t,h;switch(r){case"CERTIFICATE":h=l.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=l.PublicKey.decode(n,"der")),t=h.algorithm.algorithm.join("."),t){case"1.2.840.113549.1.1.1":return l.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=l.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+t)}throw new Error("unknown key type "+r);case"ENCRYPTED PRIVATE KEY":n=l.EncryptedPrivateKey.decode(n,"der"),n=a(n,o);case"PRIVATE KEY":switch(h=l.PrivateKey.decode(n,"der"),t=h.algorithm.algorithm.join("."),t){case"1.2.840.113549.1.1.1":return l.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:l.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=l.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+t)}throw new Error("unknown key type "+r);case"RSA PUBLIC KEY":return l.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return l.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:l.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=l.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+r)}}i.signature=l.signature;function a(u,o){var e=u.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(u.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=v[u.algorithm.decrypt.cipher.algo.join(".")],t=u.algorithm.decrypt.cipher.iv,h=u.subjectPrivateKey,p=parseInt(n.split("-")[1],10)/8,y=s.pbkdf2Sync(o,e,r,p,"sha1"),g=c.createDecipheriv(n,y,t),w=[];return w.push(g.update(h)),w.push(g.final()),f.concat(w)}},97168:function(E,b,d){b.publicEncrypt=d(28902),b.privateDecrypt=d(77362),b.privateEncrypt=function(v,m){return b.publicEncrypt(v,m,!0)},b.publicDecrypt=function(v,m){return b.privateDecrypt(v,m,!0)}},48206:function(E,b,d){var l=d(47108),v=d(92861).Buffer;E.exports=function(c,s){for(var f=v.alloc(0),i=0,a;f.length<s;)a=m(i++),f=v.concat([f,l("sha1").update(c).update(a).digest()]);return f.slice(0,s)};function m(c){var s=v.allocUnsafe(4);return s.writeUInt32BE(c,0),s}},77362:function(E,b,d){var l=d(78170),v=d(48206),m=d(52061),c=d(39404),s=d(67332),f=d(47108),i=d(99247),a=d(92861).Buffer;E.exports=function(n,t,h){var p;n.padding?p=n.padding:h?p=1:p=4;var y=l(n),g=y.modulus.byteLength();if(t.length>g||new c(t).cmp(y.modulus)>=0)throw new Error("decryption error");var w;h?w=i(new c(t),y):w=s(t,y);var S=a.alloc(g-w.length);if(w=a.concat([S,w],g),p===4)return u(y,w);if(p===1)return o(y,w,h);if(p===3)return w;throw new Error("unknown padding")};function u(r,n){var t=r.modulus.byteLength(),h=f("sha1").update(a.alloc(0)).digest(),p=h.length;if(n[0]!==0)throw new Error("decryption error");var y=n.slice(1,p+1),g=n.slice(p+1),w=m(y,v(g,p)),S=m(g,v(w,t-p-1));if(e(h,S.slice(0,p)))throw new Error("decryption error");for(var B=p;S[B]===0;)B++;if(S[B++]!==1)throw new Error("decryption error");return S.slice(B)}function o(r,n,t){for(var h=n.slice(0,2),p=2,y=0;n[p++]!==0;)if(p>=n.length){y++;break}var g=n.slice(2,p-1);if((h.toString("hex")!=="0002"&&!t||h.toString("hex")!=="0001"&&t)&&y++,g.length<8&&y++,y)throw new Error("decryption error");return n.slice(p)}function e(r,n){r=a.from(r),n=a.from(n);var t=0,h=r.length;r.length!==n.length&&(t++,h=Math.min(r.length,n.length));for(var p=-1;++p<h;)t+=r[p]^n[p];return t}},28902:function(E,b,d){var l=d(78170),v=d(53209),m=d(47108),c=d(48206),s=d(52061),f=d(39404),i=d(99247),a=d(67332),u=d(92861).Buffer;E.exports=function(t,h,p){var y;t.padding?y=t.padding:p?y=1:y=4;var g=l(t),w;if(y===4)w=o(g,h);else if(y===1)w=e(g,h,p);else if(y===3){if(w=new f(h),w.cmp(g.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return p?a(w,g):i(w,g)};function o(n,t){var h=n.modulus.byteLength(),p=t.length,y=m("sha1").update(u.alloc(0)).digest(),g=y.length,w=2*g;if(p>h-w-2)throw new Error("message too long");var S=u.alloc(h-p-w-2),B=h-g-1,C=v(g),D=s(u.concat([y,S,u.alloc(1,1),t],B),c(C,B)),A=s(C,c(D,g));return new f(u.concat([u.alloc(1),A,D],h))}function e(n,t,h){var p=t.length,y=n.modulus.byteLength();if(p>y-11)throw new Error("message too long");var g;return h?g=u.alloc(y-p-3,255):g=r(y-p-3),new f(u.concat([u.from([0,h?1:2]),g,u.alloc(1),t],y))}function r(n){for(var t=u.allocUnsafe(n),h=0,p=v(n*2),y=0,g;h<n;)y===p.length&&(p=v(n*2),y=0),g=p[y++],g&&(t[h++]=g);return t}},99247:function(E,b,d){var l=d(39404),v=d(92861).Buffer;function m(c,s){return v.from(c.toRed(l.mont(s.modulus)).redPow(new l(s.publicExponent)).fromRed().toArray())}E.exports=m},52061:function(E){E.exports=function(d,l){for(var v=d.length,m=-1;++m<v;)d[m]^=l[m];return d}},76983:function(E,b,d){"use strict";var l=d(65606);function v(){throw new Error(`secure random number generation not supported by this browser
|
|
6
|
-
use chrome, FireFox or Internet Explorer 11`)}var m=d(92861),c=d(53209),s=m.Buffer,f=m.kMaxLength,i=d.g.crypto||d.g.msCrypto,a=Math.pow(2,32)-1;function u(t,h){if(typeof t!="number"||t!==t)throw new TypeError("offset must be a number");if(t>a||t<0)throw new TypeError("offset must be a uint32");if(t>f||t>h)throw new RangeError("offset out of range")}function o(t,h,p){if(typeof t!="number"||t!==t)throw new TypeError("size must be a number");if(t>a||t<0)throw new TypeError("size must be a uint32");if(t+h>p||t>f)throw new RangeError("buffer too small")}i&&i.getRandomValues||!l.browser?(b.randomFill=e,b.randomFillSync=n):(b.randomFill=v,b.randomFillSync=v);function e(t,h,p,y){if(!s.isBuffer(t)&&!(t instanceof d.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof h=="function")y=h,h=0,p=t.length;else if(typeof p=="function")y=p,p=t.length-h;else if(typeof y!="function")throw new TypeError('"cb" argument must be a function');return u(h,t.length),o(p,h,t.length),r(t,h,p,y)}function r(t,h,p,y){if(l.browser){var g=t.buffer,w=new Uint8Array(g,h,p);if(i.getRandomValues(w),y){l.nextTick(function(){y(null,t)});return}return t}if(y){c(p,function(B,C){if(B)return y(B);C.copy(t,h),y(null,t)});return}var S=c(p);return S.copy(t,h),t}function n(t,h,p){if(typeof h>"u"&&(h=0),!s.isBuffer(t)&&!(t instanceof d.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return u(h,t.length),p===void 0&&(p=t.length-h),o(p,h,t.length),r(t,h,p)}},68961:function(__unused_webpack_module,exports){var indexOf=function(E,b){if(E.indexOf)return E.indexOf(b);for(var d=0;d<E.length;d++)if(E[d]===b)return d;return-1},Object_keys=function(E){if(Object.keys)return Object.keys(E);var b=[];for(var d in E)b.push(d);return b},forEach=function(E,b){if(E.forEach)return E.forEach(b);for(var d=0;d<E.length;d++)b(E[d],d,E)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(E,b,d){Object.defineProperty(E,b,{writable:!0,enumerable:!1,configurable:!0,value:d})}}catch{return function(b,d,l){b[d]=l}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(b){if(!(this instanceof Script))return new Script(b);this.code=b};Script.prototype.runInContext=function(E){if(!(E instanceof Context))throw new TypeError("needs a 'context' argument.");var b=document.createElement("iframe");b.style||(b.style={}),b.style.display="none",document.body.appendChild(b);var d=b.contentWindow,l=d.eval,v=d.execScript;!l&&v&&(v.call(d,"null"),l=d.eval),forEach(Object_keys(E),function(s){d[s]=E[s]}),forEach(globals,function(s){E[s]&&(d[s]=E[s])});var m=Object_keys(d),c=l.call(d,this.code);return forEach(Object_keys(d),function(s){(s in E||indexOf(m,s)===-1)&&(E[s]=d[s])}),forEach(globals,function(s){s in E||defineProp(E,s,d[s])}),document.body.removeChild(b),c},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(E){var b=Script.createContext(E),d=this.runInContext(b);return E&&forEach(Object_keys(b),function(l){E[l]=b[l]}),d},forEach(Object_keys(Script.prototype),function(E){exports[E]=Script[E]=function(b){var d=Script(b);return d[E].apply(d,[].slice.call(arguments,1))}}),exports.isContext=function(E){return E instanceof Context},exports.createScript=function(E){return exports.Script(E)},exports.createContext=Script.createContext=function(E){var b=new Context;return typeof E=="object"&&forEach(Object_keys(E),function(d){b[d]=E[d]}),b}},3219:function(E){"use strict";E.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"}}')},62951:function(E){"use strict";E.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},64589:function(E){"use strict";E.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},23241:function(E){"use strict";E.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"}}')},15579:function(E){"use strict";E.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"}')}}]);
|
|
3
|
+
})`)}catch{a=function(h){this._initNamed(h)}}return v(a,f),a.prototype._initNamed=function(h){f.call(this,h)},new a(this)},c.prototype._getDecoder=function(f){return f=f||"der",this.decoders.hasOwnProperty(f)||(this.decoders[f]=this._createNamed(l.decoders[f])),this.decoders[f]},c.prototype.decode=function(f,a,o){return this._getDecoder(a).decode(f,o)},c.prototype._getEncoder=function(f){return f=f||"der",this.encoders.hasOwnProperty(f)||(this.encoders[f]=this._createNamed(l.encoders[f])),this.encoders[f]},c.prototype.encode=function(f,a,o){return this._getEncoder(a).encode(f,o)}},47227:function(E,b,i){var l=i(56698),v=i(9673).Reporter,g=i(48287).Buffer;function c(f,a){if(v.call(this,a),!g.isBuffer(f)){this.error("Input not Buffer");return}this.base=f,this.offset=0,this.length=f.length}l(c,v),b.t=c,c.prototype.save=function(){return{offset:this.offset,reporter:v.prototype.save.call(this)}},c.prototype.restore=function(a){var o=new c(this.base);return o.offset=a.offset,o.length=this.offset,this.offset=a.offset,v.prototype.restore.call(this,a.reporter),o},c.prototype.isEmpty=function(){return this.offset===this.length},c.prototype.readUInt8=function(a){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(a||"DecoderBuffer overrun")},c.prototype.skip=function(a,o){if(!(this.offset+a<=this.length))return this.error(o||"DecoderBuffer overrun");var h=new c(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+a,this.offset+=a,h},c.prototype.raw=function(a){return this.base.slice(a?a.offset:this.offset,this.length)};function u(f,a){if(Array.isArray(f))this.length=0,this.value=f.map(function(o){return o instanceof u||(o=new u(o,a)),this.length+=o.length,o},this);else if(typeof f=="number"){if(!(0<=f&&f<=255))return a.error("non-byte EncoderBuffer value");this.value=f,this.length=1}else if(typeof f=="string")this.value=f,this.length=g.byteLength(f);else if(g.isBuffer(f))this.value=f,this.length=f.length;else return a.error("Unsupported type: "+typeof f)}b.d=u,u.prototype.join=function(a,o){return a||(a=new g(this.length)),o||(o=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(a,o),o+=h.length}):(typeof this.value=="number"?a[o]=this.value:typeof this.value=="string"?a.write(this.value,o):g.isBuffer(this.value)&&this.value.copy(a,o),o+=this.length)),a}},9673:function(E,b,i){var l=b;l.Reporter=i(89220).a,l.DecoderBuffer=i(47227).t,l.EncoderBuffer=i(47227).d,l.Node=i(90993)},90993:function(E,b,i){var l=i(9673).Reporter,v=i(9673).EncoderBuffer,g=i(9673).DecoderBuffer,c=i(43349),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u),a=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function o(s,e){var r={};this._baseState=r,r.enc=s,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())}E.exports=o;var h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];o.prototype.clone=function(){var e=this._baseState,r={};h.forEach(function(t){r[t]=e[t]});var n=new this.constructor(r.parent);return n._baseState=r,n},o.prototype._wrap=function(){var e=this._baseState;f.forEach(function(r){this[r]=function(){var t=new this.constructor(this);return e.children.push(t),t[r].apply(t,arguments)}},this)},o.prototype._init=function(e){var r=this._baseState;c(r.parent===null),e.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),c.equal(r.children.length,1,"Root node can have only one child")},o.prototype._useArgs=function(e){var r=this._baseState,n=e.filter(function(t){return t instanceof this.constructor},this);e=e.filter(function(t){return!(t instanceof this.constructor)},this),n.length!==0&&(c(r.children===null),r.children=n,n.forEach(function(t){t._baseState.parent=this},this)),e.length!==0&&(c(r.args===null),r.args=e,r.reverseArgs=e.map(function(t){if(typeof t!="object"||t.constructor!==Object)return t;var d={};return Object.keys(t).forEach(function(p){p==(p|0)&&(p|=0);var y=t[p];d[y]=p}),d}))},a.forEach(function(s){o.prototype[s]=function(){var r=this._baseState;throw new Error(s+" not implemented for encoding: "+r.enc)}}),u.forEach(function(s){o.prototype[s]=function(){var r=this._baseState,n=Array.prototype.slice.call(arguments);return c(r.tag===null),r.tag=s,this._useArgs(n),this}}),o.prototype.use=function(e){c(e);var r=this._baseState;return c(r.use===null),r.use=e,this},o.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this},o.prototype.def=function(e){var r=this._baseState;return c(r.default===null),r.default=e,r.optional=!0,this},o.prototype.explicit=function(e){var r=this._baseState;return c(r.explicit===null&&r.implicit===null),r.explicit=e,this},o.prototype.implicit=function(e){var r=this._baseState;return c(r.explicit===null&&r.implicit===null),r.implicit=e,this},o.prototype.obj=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this},o.prototype.key=function(e){var r=this._baseState;return c(r.key===null),r.key=e,this},o.prototype.any=function(){var e=this._baseState;return e.any=!0,this},o.prototype.choice=function(e){var r=this._baseState;return c(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this},o.prototype.contains=function(e){var r=this._baseState;return c(r.use===null),r.contains=e,this},o.prototype._decode=function(e,r){var n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,r));var t=n.default,d=!0,p=null;if(n.key!==null&&(p=e.enterKey(n.key)),n.optional){var y=null;if(n.explicit!==null?y=n.explicit:n.implicit!==null?y=n.implicit:n.tag!==null&&(y=n.tag),y===null&&!n.any){var m=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,r):this._decodeChoice(e,r),d=!0}catch{d=!1}e.restore(m)}else if(d=this._peekTag(e,y,n.any),e.isError(d))return d}var w;if(n.obj&&d&&(w=e.enterObject()),d){if(n.explicit!==null){var S=this._decodeTag(e,n.explicit);if(e.isError(S))return S;e=S}var B=e.offset;if(n.use===null&&n.choice===null){if(n.any)var m=e.save();var C=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(C))return C;n.any?t=e.raw(m):e=C}if(r&&r.track&&n.tag!==null&&r.track(e.path(),B,e.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),n.any?t=t:n.choice===null?t=this._decodeGeneric(n.tag,e,r):t=this._decodeChoice(e,r),e.isError(t))return t;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(k){k._decode(e,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){var D=new g(t);t=this._getUse(n.contains,e._reporterState.obj)._decode(D,r)}}return n.obj&&d&&(t=e.leaveObject(w)),n.key!==null&&(t!==null||d===!0)?e.leaveKey(p,n.key,t):p!==null&&e.exitKey(p),t},o.prototype._decodeGeneric=function(e,r,n){var t=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,t.args[0],n):/str$/.test(e)?this._decodeStr(r,e,n):e==="objid"&&t.args?this._decodeObjid(r,t.args[0],t.args[1],n):e==="objid"?this._decodeObjid(r,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(r,e,n):e==="null_"?this._decodeNull(r,n):e==="bool"?this._decodeBool(r,n):e==="objDesc"?this._decodeStr(r,e,n):e==="int"||e==="enum"?this._decodeInt(r,t.args&&t.args[0],n):t.use!==null?this._getUse(t.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+e)},o.prototype._getUse=function(e,r){var n=this._baseState;return n.useDecoder=this._use(e,r),c(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},o.prototype._decodeChoice=function(e,r){var n=this._baseState,t=null,d=!1;return Object.keys(n.choice).some(function(p){var y=e.save(),m=n.choice[p];try{var w=m._decode(e,r);if(e.isError(w))return!1;t={type:p,value:w},d=!0}catch{return e.restore(y),!1}return!0},this),d?t:e.error("Choice not matched")},o.prototype._createEncoderBuffer=function(e){return new v(e,this.reporter)},o.prototype._encode=function(e,r,n){var t=this._baseState;if(!(t.default!==null&&t.default===e)){var d=this._encodeValue(e,r,n);if(d!==void 0&&!this._skipDefault(d,r,n))return d}},o.prototype._encodeValue=function(e,r,n){var t=this._baseState;if(t.parent===null)return t.children[0]._encode(e,r||new l);var m=null;if(this.reporter=r,t.optional&&e===void 0)if(t.default!==null)e=t.default;else return;var d=null,p=!1;if(t.any)m=this._createEncoderBuffer(e);else if(t.choice)m=this._encodeChoice(e,r);else if(t.contains)d=this._getUse(t.contains,n)._encode(e,r),p=!0;else if(t.children)d=t.children.map(function(B){if(B._baseState.tag==="null_")return B._encode(null,r,e);if(B._baseState.key===null)return r.error("Child should have a key");var C=r.enterKey(B._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");var D=B._encode(e[B._baseState.key],r,e);return r.leaveKey(C),D},this).filter(function(B){return B}),d=this._createEncoderBuffer(d);else if(t.tag==="seqof"||t.tag==="setof"){if(!(t.args&&t.args.length===1))return r.error("Too many args for : "+t.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,d=this._createEncoderBuffer(e.map(function(B){var C=this._baseState;return this._getUse(C.args[0],e)._encode(B,r)},y))}else t.use!==null?m=this._getUse(t.use,n)._encode(e,r):(d=this._encodePrimitive(t.tag,e),p=!0);var m;if(!t.any&&t.choice===null){var w=t.implicit!==null?t.implicit:t.tag,S=t.implicit===null?"universal":"context";w===null?t.use===null&&r.error("Tag could be omitted only for .use()"):t.use===null&&(m=this._encodeComposite(w,p,S,d))}return t.explicit!==null&&(m=this._encodeComposite(t.explicit,!1,"context",m)),m},o.prototype._encodeChoice=function(e,r){var n=this._baseState,t=n.choice[e.type];return t||c(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),t._encode(e.value,r)},o.prototype._encodePrimitive=function(e,r){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.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,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)},o.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},o.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},89220:function(E,b,i){var l=i(56698);function v(c){this._reporterState={obj:null,path:[],options:c||{},errors:[]}}b.a=v,v.prototype.isError=function(u){return u instanceof g},v.prototype.save=function(){var u=this._reporterState;return{obj:u.obj,pathLen:u.path.length}},v.prototype.restore=function(u){var f=this._reporterState;f.obj=u.obj,f.path=f.path.slice(0,u.pathLen)},v.prototype.enterKey=function(u){return this._reporterState.path.push(u)},v.prototype.exitKey=function(u){var f=this._reporterState;f.path=f.path.slice(0,u-1)},v.prototype.leaveKey=function(u,f,a){var o=this._reporterState;this.exitKey(u),o.obj!==null&&(o.obj[f]=a)},v.prototype.path=function(){return this._reporterState.path.join("/")},v.prototype.enterObject=function(){var u=this._reporterState,f=u.obj;return u.obj={},f},v.prototype.leaveObject=function(u){var f=this._reporterState,a=f.obj;return f.obj=u,a},v.prototype.error=function(u){var f,a=this._reporterState,o=u instanceof g;if(o?f=u:f=new g(a.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),u.message||u,u.stack),!a.options.partial)throw f;return o||a.errors.push(f),f},v.prototype.wrapResult=function(u){var f=this._reporterState;return f.options.partial?{result:this.isError(u)?null:u,errors:f.errors}:u};function g(c,u){this.path=c,this.rethrow(u)}l(g,Error),g.prototype.rethrow=function(u){if(this.message=u+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,g),!this.stack)try{throw new Error(this.message)}catch(f){this.stack=f.stack}return this}},74598:function(E,b,i){var l=i(22153);b.tagClass={0:"universal",1:"application",2:"context",3:"private"},b.tagClassByName=l._reverse(b.tagClass),b.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"},b.tagByName=l._reverse(b.tag)},22153:function(E,b,i){var l=b;l._reverse=function(g){var c={};return Object.keys(g).forEach(function(u){(u|0)==u&&(u=u|0);var f=g[u];c[f]=u}),c},l.der=i(74598)},62010:function(E,b,i){var l=i(56698),v=i(87568),g=v.base,c=v.bignum,u=v.constants.der;function f(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new a,this.tree._init(s.body)}E.exports=f,f.prototype.decode=function(e,r){return e instanceof g.DecoderBuffer||(e=new g.DecoderBuffer(e,r)),this.tree._decode(e,r)};function a(s){g.Node.call(this,"der",s)}l(a,g.Node),a.prototype._peekTag=function(e,r,n){if(e.isEmpty())return!1;var t=e.save(),d=o(e,'Failed to peek tag: "'+r+'"');return e.isError(d)?d:(e.restore(t),d.tag===r||d.tagStr===r||d.tagStr+"of"===r||n)},a.prototype._decodeTag=function(e,r,n){var t=o(e,'Failed to decode tag of "'+r+'"');if(e.isError(t))return t;var d=h(e,t.primitive,'Failed to get length of "'+r+'"');if(e.isError(d))return d;if(!n&&t.tag!==r&&t.tagStr!==r&&t.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(t.primitive||d!==null)return e.skip(d,'Failed to match body of: "'+r+'"');var p=e.save(),y=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(y)?y:(d=e.offset-p.offset,e.restore(p),e.skip(d,'Failed to match body of: "'+r+'"'))},a.prototype._skipUntilEnd=function(e,r){for(;;){var n=o(e,r);if(e.isError(n))return n;var t=h(e,n.primitive,r);if(e.isError(t))return t;var d;if(n.primitive||t!==null?d=e.skip(t):d=this._skipUntilEnd(e,r),e.isError(d))return d;if(n.tagStr==="end")break}},a.prototype._decodeList=function(e,r,n,t){for(var d=[];!e.isEmpty();){var p=this._peekTag(e,"end");if(e.isError(p))return p;var y=n.decode(e,"der",t);if(e.isError(y)&&p)break;d.push(y)}return d},a.prototype._decodeStr=function(e,r){if(r==="bitstr"){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(r==="bmpstr"){var t=e.raw();if(t.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var d="",p=0;p<t.length/2;p++)d+=String.fromCharCode(t.readUInt16BE(p*2));return d}else if(r==="numstr"){var y=e.raw().toString("ascii");return this._isNumstr(y)?y: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 m=e.raw().toString("ascii");return this._isPrintstr(m)?m: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")}},a.prototype._decodeObjid=function(e,r,n){for(var t,d=[],p=0;!e.isEmpty();){var y=e.readUInt8();p<<=7,p|=y&127,(y&128)===0&&(d.push(p),p=0)}y&128&&d.push(p);var m=d[0]/40|0,w=d[0]%40;if(n?t=d:t=[m,w].concat(d.slice(1)),r){var S=r[t.join(" ")];S===void 0&&(S=r[t.join(".")]),S!==void 0&&(t=S)}return t},a.prototype._decodeTime=function(e,r){var n=e.raw().toString();if(r==="gentime")var t=n.slice(0,4)|0,d=n.slice(4,6)|0,p=n.slice(6,8)|0,y=n.slice(8,10)|0,m=n.slice(10,12)|0,w=n.slice(12,14)|0;else if(r==="utctime"){var t=n.slice(0,2)|0,d=n.slice(2,4)|0,p=n.slice(4,6)|0,y=n.slice(6,8)|0,m=n.slice(8,10)|0,w=n.slice(10,12)|0;t<70?t=2e3+t:t=1900+t}else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(t,d-1,p,y,m,w,0)},a.prototype._decodeNull=function(e){return null},a.prototype._decodeBool=function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0},a.prototype._decodeInt=function(e,r){var n=e.raw(),t=new c(n);return r&&(t=r[t.toString(10)]||t),t},a.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function o(s,e){var r=s.readUInt8(e);if(s.isError(r))return r;var n=u.tagClass[r>>6],t=(r&32)===0;if((r&31)===31){var d=r;for(r=0;(d&128)===128;){if(d=s.readUInt8(e),s.isError(d))return d;r<<=7,r|=d&127}}else r&=31;var p=u.tag[r];return{cls:n,primitive:t,tag:r,tagStr:p}}function h(s,e,r){var n=s.readUInt8(r);if(s.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;var t=n&127;if(t>4)return s.error("length octect is too long");n=0;for(var d=0;d<t;d++){n<<=8;var p=s.readUInt8(r);if(s.isError(p))return p;n|=p}return n}},22853:function(E,b,i){var l=b;l.der=i(62010),l.pem=i(58903)},58903:function(E,b,i){var l=i(56698),v=i(48287).Buffer,g=i(62010);function c(u){g.call(this,u),this.enc="pem"}l(c,g),E.exports=c,c.prototype.decode=function(f,a){for(var o=f.toString().split(/[\r\n]+/g),h=a.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,e=-1,r=-1,n=0;n<o.length;n++){var t=o[n].match(s);if(t!==null&&t[2]===h)if(e===-1){if(t[1]!=="BEGIN")break;e=n}else{if(t[1]!=="END")break;r=n;break}}if(e===-1||r===-1)throw new Error("PEM section not found for: "+h);var d=o.slice(e+1,r).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var p=new v(d,"base64");return g.prototype.decode.call(this,p,a)}},70082:function(E,b,i){var l=i(56698),v=i(48287).Buffer,g=i(87568),c=g.base,u=g.constants.der;function f(s){this.enc="der",this.name=s.name,this.entity=s,this.tree=new a,this.tree._init(s.body)}E.exports=f,f.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function a(s){c.Node.call(this,"der",s)}l(a,c.Node),a.prototype._encodeComposite=function(e,r,n,t){var d=h(e,r,n,this.reporter);if(t.length<128){var m=new v(2);return m[0]=d,m[1]=t.length,this._createEncoderBuffer([m,t])}for(var p=1,y=t.length;y>=256;y>>=8)p++;var m=new v(1+1+p);m[0]=d,m[1]=128|p;for(var y=1+p,w=t.length;w>0;y--,w>>=8)m[y]=w&255;return this._createEncoderBuffer([m,t])},a.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){for(var n=new v(e.length*2),t=0;t<e.length;t++)n.writeUInt16BE(e.charCodeAt(t),t*2);return this._createEncoderBuffer(n)}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")},a.prototype._encodeObjid=function(e,r,n){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 t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(var t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var d=0,t=0;t<e.length;t++){var p=e[t];for(d++;p>=128;p>>=7)d++}for(var y=new v(d),m=y.length-1,t=e.length-1;t>=0;t--){var p=e[t];for(y[m--]=p&127;(p>>=7)>0;)y[m--]=128|p&127}return this._createEncoderBuffer(y)};function o(s){return s<10?"0"+s:s}a.prototype._encodeTime=function(e,r){var n,t=new Date(e);return r==="gentime"?n=[o(t.getFullYear()),o(t.getUTCMonth()+1),o(t.getUTCDate()),o(t.getUTCHours()),o(t.getUTCMinutes()),o(t.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[o(t.getFullYear()%100),o(t.getUTCMonth()+1),o(t.getUTCDate()),o(t.getUTCHours()),o(t.getUTCMinutes()),o(t.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")},a.prototype._encodeNull=function(){return this._createEncoderBuffer("")},a.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"&&!v.isBuffer(e)){var n=e.toArray();!e.sign&&n[0]&128&&n.unshift(0),e=new v(n)}if(v.isBuffer(e)){var t=e.length;e.length===0&&t++;var p=new v(t);return e.copy(p),e.length===0&&(p[0]=0),this._createEncoderBuffer(p)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var t=1,d=e;d>=256;d>>=8)t++;for(var p=new Array(t),d=p.length-1;d>=0;d--)p[d]=e&255,e>>=8;return p[0]&128&&p.unshift(0),this._createEncoderBuffer(new v(p))},a.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},a.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree},a.prototype._skipDefault=function(e,r,n){var t=this._baseState,d;if(t.default===null)return!1;var p=e.join();if(t.defaultBuffer===void 0&&(t.defaultBuffer=this._encodeValue(t.default,r,n).join()),p.length!==t.defaultBuffer.length)return!1;for(d=0;d<p.length;d++)if(p[d]!==t.defaultBuffer[d])return!1;return!0};function h(s,e,r,n){var t;if(s==="seqof"?s="seq":s==="setof"&&(s="set"),u.tagByName.hasOwnProperty(s))t=u.tagByName[s];else if(typeof s=="number"&&(s|0)===s)t=s;else return n.error("Unknown tag: "+s);return t>=31?n.error("Multi-octet tag encoding unsupported"):(e||(t|=32),t|=u.tagClassByName[r||"universal"]<<6,t)}},24669:function(E,b,i){var l=b;l.der=i(70082),l.pem=i(90735)},90735:function(E,b,i){var l=i(56698),v=i(70082);function g(c){v.call(this,c),this.enc="pem"}l(g,v),E.exports=g,g.prototype.encode=function(u,f){for(var a=v.prototype.encode.call(this,u),o=a.toString("base64"),h=["-----BEGIN "+f.label+"-----"],s=0;s<o.length;s+=64)h.push(o.slice(s,s+64));return h.push("-----END "+f.label+"-----"),h.join(`
|
|
4
|
+
`)}},50462:function(E,b,i){var l=i(92861).Buffer;function v(o){l.isBuffer(o)||(o=l.from(o));for(var h=o.length/4|0,s=new Array(h),e=0;e<h;e++)s[e]=o.readUInt32BE(e*4);return s}function g(o){for(var h=0;h<o.length;o++)o[h]=0}function c(o,h,s,e,r){for(var n=s[0],t=s[1],d=s[2],p=s[3],y=o[0]^h[0],m=o[1]^h[1],w=o[2]^h[2],S=o[3]^h[3],B,C,D,A,k=4,I=1;I<r;I++)B=n[y>>>24]^t[m>>>16&255]^d[w>>>8&255]^p[S&255]^h[k++],C=n[m>>>24]^t[w>>>16&255]^d[S>>>8&255]^p[y&255]^h[k++],D=n[w>>>24]^t[S>>>16&255]^d[y>>>8&255]^p[m&255]^h[k++],A=n[S>>>24]^t[y>>>16&255]^d[m>>>8&255]^p[w&255]^h[k++],y=B,m=C,w=D,S=A;return B=(e[y>>>24]<<24|e[m>>>16&255]<<16|e[w>>>8&255]<<8|e[S&255])^h[k++],C=(e[m>>>24]<<24|e[w>>>16&255]<<16|e[S>>>8&255]<<8|e[y&255])^h[k++],D=(e[w>>>24]<<24|e[S>>>16&255]<<16|e[y>>>8&255]<<8|e[m&255])^h[k++],A=(e[S>>>24]<<24|e[y>>>16&255]<<16|e[m>>>8&255]<<8|e[w&255])^h[k++],B=B>>>0,C=C>>>0,D=D>>>0,A=A>>>0,[B,C,D,A]}var u=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var o=new Array(256),h=0;h<256;h++)h<128?o[h]=h<<1:o[h]=h<<1^283;for(var s=[],e=[],r=[[],[],[],[]],n=[[],[],[],[]],t=0,d=0,p=0;p<256;++p){var y=d^d<<1^d<<2^d<<3^d<<4;y=y>>>8^y&255^99,s[t]=y,e[y]=t;var m=o[t],w=o[m],S=o[w],B=o[y]*257^y*16843008;r[0][t]=B<<24|B>>>8,r[1][t]=B<<16|B>>>16,r[2][t]=B<<8|B>>>24,r[3][t]=B,B=S*16843009^w*65537^m*257^t*16843008,n[0][y]=B<<24|B>>>8,n[1][y]=B<<16|B>>>16,n[2][y]=B<<8|B>>>24,n[3][y]=B,t===0?t=d=1:(t=m^o[o[o[S^m]]],d^=o[o[d]])}return{SBOX:s,INV_SBOX:e,SUB_MIX:r,INV_SUB_MIX:n}}();function a(o){this._key=v(o),this._reset()}a.blockSize=4*4,a.keySize=256/8,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var o=this._key,h=o.length,s=h+6,e=(s+1)*4,r=[],n=0;n<h;n++)r[n]=o[n];for(n=h;n<e;n++){var t=r[n-1];n%h===0?(t=t<<8|t>>>24,t=f.SBOX[t>>>24]<<24|f.SBOX[t>>>16&255]<<16|f.SBOX[t>>>8&255]<<8|f.SBOX[t&255],t^=u[n/h|0]<<24):h>6&&n%h===4&&(t=f.SBOX[t>>>24]<<24|f.SBOX[t>>>16&255]<<16|f.SBOX[t>>>8&255]<<8|f.SBOX[t&255]),r[n]=r[n-h]^t}for(var d=[],p=0;p<e;p++){var y=e-p,m=r[y-(p%4?0:4)];p<4||y<=4?d[p]=m:d[p]=f.INV_SUB_MIX[0][f.SBOX[m>>>24]]^f.INV_SUB_MIX[1][f.SBOX[m>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[m>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[m&255]]}this._nRounds=s,this._keySchedule=r,this._invKeySchedule=d},a.prototype.encryptBlockRaw=function(o){return o=v(o),c(o,this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},a.prototype.encryptBlock=function(o){var h=this.encryptBlockRaw(o),s=l.allocUnsafe(16);return s.writeUInt32BE(h[0],0),s.writeUInt32BE(h[1],4),s.writeUInt32BE(h[2],8),s.writeUInt32BE(h[3],12),s},a.prototype.decryptBlock=function(o){o=v(o);var h=o[1];o[1]=o[3],o[3]=h;var s=c(o,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),e=l.allocUnsafe(16);return e.writeUInt32BE(s[0],0),e.writeUInt32BE(s[3],4),e.writeUInt32BE(s[2],8),e.writeUInt32BE(s[1],12),e},a.prototype.scrub=function(){g(this._keySchedule),g(this._invKeySchedule),g(this._key)},E.exports.AES=a},92356:function(E,b,i){var l=i(50462),v=i(92861).Buffer,g=i(56168),c=i(56698),u=i(25892),f=i(30295),a=i(45122);function o(e,r){var n=0;e.length!==r.length&&n++;for(var t=Math.min(e.length,r.length),d=0;d<t;++d)n+=e[d]^r[d];return n}function h(e,r,n){if(r.length===12)return e._finID=v.concat([r,v.from([0,0,0,1])]),v.concat([r,v.from([0,0,0,2])]);var t=new u(n),d=r.length,p=d%16;t.update(r),p&&(p=16-p,t.update(v.alloc(p,0))),t.update(v.alloc(8,0));var y=d*8,m=v.alloc(8);m.writeUIntBE(y,0,8),t.update(m),e._finID=t.state;var w=v.from(e._finID);return a(w),w}function s(e,r,n,t){g.call(this);var d=v.alloc(4,0);this._cipher=new l.AES(r);var p=this._cipher.encryptBlock(d);this._ghash=new u(p),n=h(this,n,p),this._prev=v.from(n),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=t,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}c(s,g),s.prototype._update=function(e){if(!this._called&&this._alen){var r=16-this._alen%16;r<16&&(r=v.alloc(r,0),this._ghash.update(r))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},s.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=f(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&o(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},s.prototype.getAuthTag=function(){if(this._decrypt||!v.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},s.prototype.setAuthTag=function(r){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=r},s.prototype.setAAD=function(r){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(r),this._alen+=r.length},E.exports=s},1241:function(E,b,i){var l=i(25799),v=i(36171),g=i(3219);function c(){return Object.keys(g)}b.createCipher=b.Cipher=l.createCipher,b.createCipheriv=b.Cipheriv=l.createCipheriv,b.createDecipher=b.Decipher=v.createDecipher,b.createDecipheriv=b.Decipheriv=v.createDecipheriv,b.listCiphers=b.getCiphers=c},36171:function(E,b,i){var l=i(92356),v=i(92861).Buffer,g=i(530),c=i(50650),u=i(56168),f=i(50462),a=i(68078),o=i(56698);function h(t,d,p){u.call(this),this._cache=new s,this._last=void 0,this._cipher=new f.AES(d),this._prev=v.from(p),this._mode=t,this._autopadding=!0}o(h,u),h.prototype._update=function(t){this._cache.add(t);for(var d,p,y=[];d=this._cache.get(this._autopadding);)p=this._mode.decrypt(this,d),y.push(p);return v.concat(y)},h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return e(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function s(){this.cache=v.allocUnsafe(0)}s.prototype.add=function(t){this.cache=v.concat([this.cache,t])},s.prototype.get=function(t){var d;if(t){if(this.cache.length>16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d}else if(this.cache.length>=16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d;return null},s.prototype.flush=function(){if(this.cache.length)return this.cache};function e(t){var d=t[15];if(d<1||d>16)throw new Error("unable to decrypt data");for(var p=-1;++p<d;)if(t[p+(16-d)]!==d)throw new Error("unable to decrypt data");if(d!==16)return t.slice(0,16-d)}function r(t,d,p){var y=g[t.toLowerCase()];if(!y)throw new TypeError("invalid suite type");if(typeof p=="string"&&(p=v.from(p)),y.mode!=="GCM"&&p.length!==y.iv)throw new TypeError("invalid iv length "+p.length);if(typeof d=="string"&&(d=v.from(d)),d.length!==y.key/8)throw new TypeError("invalid key length "+d.length);return y.type==="stream"?new c(y.module,d,p,!0):y.type==="auth"?new l(y.module,d,p,!0):new h(y.module,d,p)}function n(t,d){var p=g[t.toLowerCase()];if(!p)throw new TypeError("invalid suite type");var y=a(d,!1,p.key,p.iv);return r(t,y.key,y.iv)}b.createDecipher=n,b.createDecipheriv=r},25799:function(E,b,i){var l=i(530),v=i(92356),g=i(92861).Buffer,c=i(50650),u=i(56168),f=i(50462),a=i(68078),o=i(56698);function h(t,d,p){u.call(this),this._cache=new e,this._cipher=new f.AES(d),this._prev=g.from(p),this._mode=t,this._autopadding=!0}o(h,u),h.prototype._update=function(t){this._cache.add(t);for(var d,p,y=[];d=this._cache.get();)p=this._mode.encrypt(this,d),y.push(p);return g.concat(y)};var s=g.alloc(16,16);h.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(s))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function e(){this.cache=g.allocUnsafe(0)}e.prototype.add=function(t){this.cache=g.concat([this.cache,t])},e.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},e.prototype.flush=function(){for(var t=16-this.cache.length,d=g.allocUnsafe(t),p=-1;++p<t;)d.writeUInt8(t,p);return g.concat([this.cache,d])};function r(t,d,p){var y=l[t.toLowerCase()];if(!y)throw new TypeError("invalid suite type");if(typeof d=="string"&&(d=g.from(d)),d.length!==y.key/8)throw new TypeError("invalid key length "+d.length);if(typeof p=="string"&&(p=g.from(p)),y.mode!=="GCM"&&p.length!==y.iv)throw new TypeError("invalid iv length "+p.length);return y.type==="stream"?new c(y.module,d,p):y.type==="auth"?new v(y.module,d,p):new h(y.module,d,p)}function n(t,d){var p=l[t.toLowerCase()];if(!p)throw new TypeError("invalid suite type");var y=a(d,!1,p.key,p.iv);return r(t,y.key,y.iv)}b.createCipheriv=r,b.createCipher=n},25892:function(E,b,i){var l=i(92861).Buffer,v=l.alloc(16,0);function g(f){return[f.readUInt32BE(0),f.readUInt32BE(4),f.readUInt32BE(8),f.readUInt32BE(12)]}function c(f){var a=l.allocUnsafe(16);return a.writeUInt32BE(f[0]>>>0,0),a.writeUInt32BE(f[1]>>>0,4),a.writeUInt32BE(f[2]>>>0,8),a.writeUInt32BE(f[3]>>>0,12),a}function u(f){this.h=f,this.state=l.alloc(16,0),this.cache=l.allocUnsafe(0)}u.prototype.ghash=function(f){for(var a=-1;++a<f.length;)this.state[a]^=f[a];this._multiply()},u.prototype._multiply=function(){for(var f=g(this.h),a=[0,0,0,0],o,h,s,e=-1;++e<128;){for(h=(this.state[~~(e/8)]&1<<7-e%8)!==0,h&&(a[0]^=f[0],a[1]^=f[1],a[2]^=f[2],a[3]^=f[3]),s=(f[3]&1)!==0,o=3;o>0;o--)f[o]=f[o]>>>1|(f[o-1]&1)<<31;f[0]=f[0]>>>1,s&&(f[0]=f[0]^225<<24)}this.state=c(a)},u.prototype.update=function(f){this.cache=l.concat([this.cache,f]);for(var a;this.cache.length>=16;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)},u.prototype.final=function(f,a){return this.cache.length&&this.ghash(l.concat([this.cache,v],16)),this.ghash(c([0,f,0,a])),this.state},E.exports=u},45122:function(E){function b(i){for(var l=i.length,v;l--;)if(v=i.readUInt8(l),v===255)i.writeUInt8(0,l);else{v++,i.writeUInt8(v,l);break}}E.exports=b},92884:function(E,b,i){var l=i(30295);b.encrypt=function(v,g){var c=l(g,v._prev);return v._prev=v._cipher.encryptBlock(c),v._prev},b.decrypt=function(v,g){var c=v._prev;v._prev=g;var u=v._cipher.decryptBlock(g);return l(u,c)}},46383:function(E,b,i){var l=i(92861).Buffer,v=i(30295);function g(c,u,f){var a=u.length,o=v(u,c._cache);return c._cache=c._cache.slice(a),c._prev=l.concat([c._prev,f?u:o]),o}b.encrypt=function(c,u,f){for(var a=l.allocUnsafe(0),o;u.length;)if(c._cache.length===0&&(c._cache=c._cipher.encryptBlock(c._prev),c._prev=l.allocUnsafe(0)),c._cache.length<=u.length)o=c._cache.length,a=l.concat([a,g(c,u.slice(0,o),f)]),u=u.slice(o);else{a=l.concat([a,g(c,u,f)]);break}return a}},55264:function(E,b,i){var l=i(92861).Buffer;function v(c,u,f){for(var a,o=-1,h=8,s=0,e,r;++o<h;)a=c._cipher.encryptBlock(c._prev),e=u&1<<7-o?128:0,r=a[0]^e,s+=(r&128)>>o%8,c._prev=g(c._prev,f?e:r);return s}function g(c,u){var f=c.length,a=-1,o=l.allocUnsafe(c.length);for(c=l.concat([c,l.from([u])]);++a<f;)o[a]=c[a]<<1|c[a+1]>>7;return o}b.encrypt=function(c,u,f){for(var a=u.length,o=l.allocUnsafe(a),h=-1;++h<a;)o[h]=v(c,u[h],f);return o}},86975:function(E,b,i){var l=i(92861).Buffer;function v(g,c,u){var f=g._cipher.encryptBlock(g._prev),a=f[0]^c;return g._prev=l.concat([g._prev.slice(1),l.from([u?c:a])]),a}b.encrypt=function(g,c,u){for(var f=c.length,a=l.allocUnsafe(f),o=-1;++o<f;)a[o]=v(g,c[o],u);return a}},63053:function(E,b,i){var l=i(30295),v=i(92861).Buffer,g=i(45122);function c(f){var a=f._cipher.encryptBlockRaw(f._prev);return g(f._prev),a}var u=16;b.encrypt=function(f,a){var o=Math.ceil(a.length/u),h=f._cache.length;f._cache=v.concat([f._cache,v.allocUnsafe(o*u)]);for(var s=0;s<o;s++){var e=c(f),r=h+s*u;f._cache.writeUInt32BE(e[0],r+0),f._cache.writeUInt32BE(e[1],r+4),f._cache.writeUInt32BE(e[2],r+8),f._cache.writeUInt32BE(e[3],r+12)}var n=f._cache.slice(0,a.length);return f._cache=f._cache.slice(a.length),l(a,n)}},52632:function(E,b){b.encrypt=function(i,l){return i._cipher.encryptBlock(l)},b.decrypt=function(i,l){return i._cipher.decryptBlock(l)}},530:function(E,b,i){var l={ECB:i(52632),CBC:i(92884),CFB:i(46383),CFB8:i(86975),CFB1:i(55264),OFB:i(46843),CTR:i(63053),GCM:i(63053)},v=i(3219);for(var g in v)v[g].module=l[v[g].mode];E.exports=v},46843:function(E,b,i){var l=i(48287).Buffer,v=i(30295);function g(c){return c._prev=c._cipher.encryptBlock(c._prev),c._prev}b.encrypt=function(c,u){for(;c._cache.length<u.length;)c._cache=l.concat([c._cache,g(c)]);var f=c._cache.slice(0,u.length);return c._cache=c._cache.slice(u.length),v(u,f)}},50650:function(E,b,i){var l=i(50462),v=i(92861).Buffer,g=i(56168),c=i(56698);function u(f,a,o,h){g.call(this),this._cipher=new l.AES(a),this._prev=v.from(o),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=h,this._mode=f}c(u,g),u.prototype._update=function(f){return this._mode.encrypt(this,f,this._decrypt)},u.prototype._final=function(){this._cipher.scrub()},E.exports=u},30125:function(E,b,i){var l=i(84050),v=i(1241),g=i(530),c=i(32438),u=i(68078);function f(e,r){e=e.toLowerCase();var n,t;if(g[e])n=g[e].key,t=g[e].iv;else if(c[e])n=c[e].key*8,t=c[e].iv;else throw new TypeError("invalid suite type");var d=u(r,!1,n,t);return o(e,d.key,d.iv)}function a(e,r){e=e.toLowerCase();var n,t;if(g[e])n=g[e].key,t=g[e].iv;else if(c[e])n=c[e].key*8,t=c[e].iv;else throw new TypeError("invalid suite type");var d=u(r,!1,n,t);return h(e,d.key,d.iv)}function o(e,r,n){if(e=e.toLowerCase(),g[e])return v.createCipheriv(e,r,n);if(c[e])return new l({key:r,iv:n,mode:e});throw new TypeError("invalid suite type")}function h(e,r,n){if(e=e.toLowerCase(),g[e])return v.createDecipheriv(e,r,n);if(c[e])return new l({key:r,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function s(){return Object.keys(c).concat(v.getCiphers())}b.createCipher=b.Cipher=f,b.createCipheriv=b.Cipheriv=o,b.createDecipher=b.Decipher=a,b.createDecipheriv=b.Decipheriv=h,b.listCiphers=b.getCiphers=s},84050:function(E,b,i){var l=i(56168),v=i(29560),g=i(56698),c=i(92861).Buffer,u={"des-ede3-cbc":v.CBC.instantiate(v.EDE),"des-ede3":v.EDE,"des-ede-cbc":v.CBC.instantiate(v.EDE),"des-ede":v.EDE,"des-cbc":v.CBC.instantiate(v.DES),"des-ecb":v.DES};u.des=u["des-cbc"],u.des3=u["des-ede3-cbc"],E.exports=f,g(f,l);function f(a){l.call(this);var o=a.mode.toLowerCase(),h=u[o],s;a.decrypt?s="decrypt":s="encrypt";var e=a.key;c.isBuffer(e)||(e=c.from(e)),(o==="des-ede"||o==="des-ede-cbc")&&(e=c.concat([e,e.slice(0,8)]));var r=a.iv;c.isBuffer(r)||(r=c.from(r)),this._des=h.create({key:e,iv:r,type:s})}f.prototype._update=function(a){return c.from(this._des.update(a))},f.prototype._final=function(){return c.from(this._des.final())}},32438:function(E,b){b["des-ecb"]={key:8,iv:0},b["des-cbc"]=b.des={key:8,iv:8},b["des-ede3-cbc"]=b.des3={key:24,iv:8},b["des-ede3"]={key:24,iv:0},b["des-ede-cbc"]={key:16,iv:8},b["des-ede"]={key:16,iv:0}},67332:function(E,b,i){var l=i(48287).Buffer,v=i(39404),g=i(53209);E.exports=u;function c(a){var o=f(a),h=o.toRed(v.mont(a.modulus)).redPow(new v(a.publicExponent)).fromRed();return{blinder:h,unblinder:o.invm(a.modulus)}}function u(a,o){var h=c(o),s=o.modulus.byteLength(),e=v.mont(o.modulus),r=new v(a).mul(h.blinder).umod(o.modulus),n=r.toRed(v.mont(o.prime1)),t=r.toRed(v.mont(o.prime2)),d=o.coefficient,p=o.prime1,y=o.prime2,m=n.redPow(o.exponent1),w=t.redPow(o.exponent2);m=m.fromRed(),w=w.fromRed();var S=m.isub(w).imul(d).umod(p);return S.imul(y),w.iadd(S),new l(w.imul(h.unblinder).umod(o.modulus).toArray(!1,s))}u.getr=f;function f(a){for(var o=a.modulus.byteLength(),h=new v(g(o));h.cmp(a.modulus)>=0||!h.umod(a.prime1)||!h.umod(a.prime2);)h=new v(g(o));return h}},55715:function(E,b,i){E.exports=i(62951)},20:function(E,b,i){var l=i(48287).Buffer,v=i(47108),g=i(88310),c=i(56698),u=i(35359),f=i(74847),a=i(62951);Object.keys(a).forEach(function(r){a[r].id=new l(a[r].id,"hex"),a[r.toLowerCase()]=a[r]});function o(r){g.Writable.call(this);var n=a[r];if(!n)throw new Error("Unknown message digest");this._hashType=n.hash,this._hash=v(n.hash),this._tag=n.id,this._signType=n.sign}c(o,g.Writable),o.prototype._write=function(n,t,d){this._hash.update(n),d()},o.prototype.update=function(n,t){return typeof n=="string"&&(n=new l(n,t)),this._hash.update(n),this},o.prototype.sign=function(n,t){this.end();var d=this._hash.digest(),p=u(d,n,this._hashType,this._signType,this._tag);return t?p.toString(t):p};function h(r){g.Writable.call(this);var n=a[r];if(!n)throw new Error("Unknown message digest");this._hash=v(n.hash),this._tag=n.id,this._signType=n.sign}c(h,g.Writable),h.prototype._write=function(n,t,d){this._hash.update(n),d()},h.prototype.update=function(n,t){return typeof n=="string"&&(n=new l(n,t)),this._hash.update(n),this},h.prototype.verify=function(n,t,d){typeof t=="string"&&(t=new l(t,d)),this.end();var p=this._hash.digest();return f(t,p,n,this._signType,this._tag)};function s(r){return new o(r)}function e(r){return new h(r)}E.exports={Sign:s,Verify:e,createSign:s,createVerify:e}},35359:function(E,b,i){var l=i(48287).Buffer,v=i(83507),g=i(67332),c=i(86729).ec,u=i(39404),f=i(78170),a=i(64589);function o(y,m,w,S,B){var C=f(m);if(C.curve){if(S!=="ecdsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");return h(y,C)}else if(C.type==="dsa"){if(S!=="dsa")throw new Error("wrong private key type");return s(y,C,w)}else if(S!=="rsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");y=l.concat([B,y]);for(var D=C.modulus.byteLength(),A=[0,1];y.length+A.length+1<D;)A.push(255);A.push(0);for(var k=-1;++k<y.length;)A.push(y[k]);var I=g(A,C);return I}function h(y,m){var w=a[m.curve.join(".")];if(!w)throw new Error("unknown curve "+m.curve.join("."));var S=new c(w),B=S.keyFromPrivate(m.privateKey),C=B.sign(y);return new l(C.toDER())}function s(y,m,w){for(var S=m.params.priv_key,B=m.params.p,C=m.params.q,D=m.params.g,A=new u(0),k,I=n(y,C).mod(C),x=!1,P=r(S,C,y,w);x===!1;)k=d(C,P,w),A=p(D,k,B,C),x=k.invm(C).imul(I.add(S.mul(A))).mod(C),x.cmpn(0)===0&&(x=!1,A=new u(0));return e(A,x)}function e(y,m){y=y.toArray(),m=m.toArray(),y[0]&128&&(y=[0].concat(y)),m[0]&128&&(m=[0].concat(m));var w=y.length+m.length+4,S=[48,w,2,y.length];return S=S.concat(y,[2,m.length],m),new l(S)}function r(y,m,w,S){if(y=new l(y.toArray()),y.length<m.byteLength()){var B=new l(m.byteLength()-y.length);B.fill(0),y=l.concat([B,y])}var C=w.length,D=t(w,m),A=new l(C);A.fill(1);var k=new l(C);return k.fill(0),k=v(S,k).update(A).update(new l([0])).update(y).update(D).digest(),A=v(S,k).update(A).digest(),k=v(S,k).update(A).update(new l([1])).update(y).update(D).digest(),A=v(S,k).update(A).digest(),{k,v:A}}function n(y,m){var w=new u(y),S=(y.length<<3)-m.bitLength();return S>0&&w.ishrn(S),w}function t(y,m){y=n(y,m),y=y.mod(m);var w=new l(y.toArray());if(w.length<m.byteLength()){var S=new l(m.byteLength()-w.length);S.fill(0),w=l.concat([S,w])}return w}function d(y,m,w){var S,B;do{for(S=new l(0);S.length*8<y.bitLength();)m.v=v(w,m.k).update(m.v).digest(),S=l.concat([S,m.v]);B=n(S,y),m.k=v(w,m.k).update(m.v).update(new l([0])).digest(),m.v=v(w,m.k).update(m.v).digest()}while(B.cmp(y)!==-1);return B}function p(y,m,w,S){return y.toRed(u.mont(w)).redPow(m).fromRed().mod(S)}E.exports=o,E.exports.getKey=r,E.exports.makeKey=d},74847:function(E,b,i){var l=i(48287).Buffer,v=i(39404),g=i(86729).ec,c=i(78170),u=i(64589);function f(s,e,r,n,t){var d=c(r);if(d.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return a(s,e,d)}else if(d.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return o(s,e,d)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=l.concat([t,e]);for(var p=d.modulus.byteLength(),y=[1],m=0;e.length+y.length+2<p;)y.push(255),m++;y.push(0);for(var w=-1;++w<e.length;)y.push(e[w]);y=new l(y);var S=v.mont(d.modulus);s=new v(s).toRed(S),s=s.redPow(new v(d.publicExponent)),s=new l(s.fromRed().toArray());var B=m<8?1:0;for(p=Math.min(s.length,y.length),s.length!==y.length&&(B=1),w=-1;++w<p;)B|=s[w]^y[w];return B===0}function a(s,e,r){var n=u[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var t=new g(n),d=r.data.subjectPrivateKey.data;return t.verify(e,s,d)}function o(s,e,r){var n=r.data.p,t=r.data.q,d=r.data.g,p=r.data.pub_key,y=c.signature.decode(s,"der"),m=y.s,w=y.r;h(m,t),h(w,t);var S=v.mont(n),B=m.invm(t),C=d.toRed(S).redPow(new v(e).mul(B).mod(t)).fromRed().mul(p.toRed(S).redPow(w.mul(B).mod(t)).fromRed()).mod(n).mod(t);return C.cmp(w)===0}function h(s,e){if(s.cmpn(0)<=0)throw new Error("invalid sig");if(s.cmp(e)>=e)throw new Error("invalid sig")}E.exports=f},30295:function(E,b,i){var l=i(48287).Buffer;E.exports=function(g,c){for(var u=Math.min(g.length,c.length),f=new l(u),a=0;a<u;++a)f[a]=g[a]^c[a];return f}},61324:function(E,b,i){var l=i(48287).Buffer,v=i(86729),g=i(39404);E.exports=function(o){return new u(o)};var c={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};c.p224=c.secp224r1,c.p256=c.secp256r1=c.prime256v1,c.p192=c.secp192r1=c.prime192v1,c.p384=c.secp384r1,c.p521=c.secp521r1;function u(a){this.curveType=c[a],this.curveType||(this.curveType={name:a}),this.curve=new v.ec(this.curveType.name),this.keys=void 0}u.prototype.generateKeys=function(a,o){return this.keys=this.curve.genKeyPair(),this.getPublicKey(a,o)},u.prototype.computeSecret=function(a,o,h){o=o||"utf8",l.isBuffer(a)||(a=new l(a,o));var s=this.curve.keyFromPublic(a).getPublic(),e=s.mul(this.keys.getPrivate()).getX();return f(e,h,this.curveType.byteLength)},u.prototype.getPublicKey=function(a,o){var h=this.keys.getPublic(o==="compressed",!0);return o==="hybrid"&&(h[h.length-1]%2?h[0]=7:h[0]=6),f(h,a)},u.prototype.getPrivateKey=function(a){return f(this.keys.getPrivate(),a)},u.prototype.setPublicKey=function(a,o){return o=o||"utf8",l.isBuffer(a)||(a=new l(a,o)),this.keys._importPublic(a),this},u.prototype.setPrivateKey=function(a,o){o=o||"utf8",l.isBuffer(a)||(a=new l(a,o));var h=new g(a);return h=h.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(h),this};function f(a,o,h){Array.isArray(a)||(a=a.toArray());var s=new l(a);if(h&&s.length<h){var e=new l(h-s.length);e.fill(0),s=l.concat([e,s])}return o?s.toString(o):s}},47108:function(E,b,i){"use strict";var l=i(56698),v=i(88276),g=i(66011),c=i(62802),u=i(56168);function f(a){u.call(this,"digest"),this._hash=a}l(f,u),f.prototype._update=function(a){this._hash.update(a)},f.prototype._final=function(){return this._hash.digest()},E.exports=function(o){return o=o.toLowerCase(),o==="md5"?new v:o==="rmd160"||o==="ripemd160"?new g:new f(c(o))}},91565:function(E,b,i){"use strict";b.randomBytes=b.rng=b.pseudoRandomBytes=b.prng=i(53209),b.createHash=b.Hash=i(47108),b.createHmac=b.Hmac=i(83507);var l=i(55715),v=Object.keys(l),g=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(v);b.getHashes=function(){return g};var c=i(78396);b.pbkdf2=c.pbkdf2,b.pbkdf2Sync=c.pbkdf2Sync;var u=i(30125);b.Cipher=u.Cipher,b.createCipher=u.createCipher,b.Cipheriv=u.Cipheriv,b.createCipheriv=u.createCipheriv,b.Decipher=u.Decipher,b.createDecipher=u.createDecipher,b.Decipheriv=u.Decipheriv,b.createDecipheriv=u.createDecipheriv,b.getCiphers=u.getCiphers,b.listCiphers=u.listCiphers;var f=i(15380);b.DiffieHellmanGroup=f.DiffieHellmanGroup,b.createDiffieHellmanGroup=f.createDiffieHellmanGroup,b.getDiffieHellman=f.getDiffieHellman,b.createDiffieHellman=f.createDiffieHellman,b.DiffieHellman=f.DiffieHellman;var a=i(20);b.createSign=a.createSign,b.Sign=a.Sign,b.createVerify=a.createVerify,b.Verify=a.Verify,b.createECDH=i(61324);var o=i(97168);b.publicEncrypt=o.publicEncrypt,b.privateEncrypt=o.privateEncrypt,b.publicDecrypt=o.publicDecrypt,b.privateDecrypt=o.privateDecrypt;var h=i(76983);b.randomFill=h.randomFill,b.randomFillSync=h.randomFillSync,b.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
5
|
+
`))},b.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}},29560:function(E,b,i){"use strict";b.utils=i(87626),b.Cipher=i(82808),b.DES=i(82211),b.CBC=i(3389),b.EDE=i(65279)},3389:function(E,b,i){"use strict";var l=i(43349),v=i(56698),g={};function c(f){l.equal(f.length,8,"Invalid IV length"),this.iv=new Array(8);for(var a=0;a<this.iv.length;a++)this.iv[a]=f[a]}function u(f){function a(e){f.call(this,e),this._cbcInit()}v(a,f);for(var o=Object.keys(g),h=0;h<o.length;h++){var s=o[h];a.prototype[s]=g[s]}return a.create=function(r){return new a(r)},a}b.instantiate=u,g._cbcInit=function(){var a=new c(this.options.iv);this._cbcState=a},g._update=function(a,o,h,s){var e=this._cbcState,r=this.constructor.super_.prototype,n=e.iv;if(this.type==="encrypt"){for(var t=0;t<this.blockSize;t++)n[t]^=a[o+t];r._update.call(this,n,0,h,s);for(var t=0;t<this.blockSize;t++)n[t]=h[s+t]}else{r._update.call(this,a,o,h,s);for(var t=0;t<this.blockSize;t++)h[s+t]^=n[t];for(var t=0;t<this.blockSize;t++)n[t]=a[o+t]}}},82808:function(E,b,i){"use strict";var l=i(43349);function v(g){this.options=g,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}E.exports=v,v.prototype._init=function(){},v.prototype.update=function(c){return c.length===0?[]:this.type==="decrypt"?this._updateDecrypt(c):this._updateEncrypt(c)},v.prototype._buffer=function(c,u){for(var f=Math.min(this.buffer.length-this.bufferOff,c.length-u),a=0;a<f;a++)this.buffer[this.bufferOff+a]=c[u+a];return this.bufferOff+=f,f},v.prototype._flushBuffer=function(c,u){return this._update(this.buffer,0,c,u),this.bufferOff=0,this.blockSize},v.prototype._updateEncrypt=function(c){var u=0,f=0,a=(this.bufferOff+c.length)/this.blockSize|0,o=new Array(a*this.blockSize);this.bufferOff!==0&&(u+=this._buffer(c,u),this.bufferOff===this.buffer.length&&(f+=this._flushBuffer(o,f)));for(var h=c.length-(c.length-u)%this.blockSize;u<h;u+=this.blockSize)this._update(c,u,o,f),f+=this.blockSize;for(;u<c.length;u++,this.bufferOff++)this.buffer[this.bufferOff]=c[u];return o},v.prototype._updateDecrypt=function(c){for(var u=0,f=0,a=Math.ceil((this.bufferOff+c.length)/this.blockSize)-1,o=new Array(a*this.blockSize);a>0;a--)u+=this._buffer(c,u),f+=this._flushBuffer(o,f);return u+=this._buffer(c,u),o},v.prototype.final=function(c){var u;c&&(u=this.update(c));var f;return this.type==="encrypt"?f=this._finalEncrypt():f=this._finalDecrypt(),u?u.concat(f):f},v.prototype._pad=function(c,u){if(u===0)return!1;for(;u<c.length;)c[u++]=0;return!0},v.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var c=new Array(this.blockSize);return this._update(this.buffer,0,c,0),c},v.prototype._unpad=function(c){return c},v.prototype._finalDecrypt=function(){l.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var c=new Array(this.blockSize);return this._flushBuffer(c,0),this._unpad(c)}},82211:function(E,b,i){"use strict";var l=i(43349),v=i(56698),g=i(29560),c=g.utils,u=g.Cipher;function f(){this.tmp=new Array(2),this.keys=null}function a(h){u.call(this,h);var s=new f;this._desState=s,this.deriveKeys(s,h.key)}v(a,u),E.exports=a,a.create=function(s){return new a(s)};var o=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];a.prototype.deriveKeys=function(s,e){s.keys=new Array(16*2),l.equal(e.length,this.blockSize,"Invalid key length");var r=c.readUInt32BE(e,0),n=c.readUInt32BE(e,4);c.pc1(r,n,s.tmp,0),r=s.tmp[0],n=s.tmp[1];for(var t=0;t<s.keys.length;t+=2){var d=o[t>>>1];r=c.r28shl(r,d),n=c.r28shl(n,d),c.pc2(r,n,s.keys,t)}},a.prototype._update=function(s,e,r,n){var t=this._desState,d=c.readUInt32BE(s,e),p=c.readUInt32BE(s,e+4);c.ip(d,p,t.tmp,0),d=t.tmp[0],p=t.tmp[1],this.type==="encrypt"?this._encrypt(t,d,p,t.tmp,0):this._decrypt(t,d,p,t.tmp,0),d=t.tmp[0],p=t.tmp[1],c.writeUInt32BE(r,d,n),c.writeUInt32BE(r,p,n+4)},a.prototype._pad=function(s,e){for(var r=s.length-e,n=e;n<s.length;n++)s[n]=r;return!0},a.prototype._unpad=function(s){for(var e=s[s.length-1],r=s.length-e;r<s.length;r++)l.equal(s[r],e);return s.slice(0,s.length-e)},a.prototype._encrypt=function(s,e,r,n,t){for(var d=e,p=r,y=0;y<s.keys.length;y+=2){var m=s.keys[y],w=s.keys[y+1];c.expand(p,s.tmp,0),m^=s.tmp[0],w^=s.tmp[1];var S=c.substitute(m,w),B=c.permute(S),C=p;p=(d^B)>>>0,d=C}c.rip(p,d,n,t)},a.prototype._decrypt=function(s,e,r,n,t){for(var d=r,p=e,y=s.keys.length-2;y>=0;y-=2){var m=s.keys[y],w=s.keys[y+1];c.expand(d,s.tmp,0),m^=s.tmp[0],w^=s.tmp[1];var S=c.substitute(m,w),B=c.permute(S),C=d;d=(p^B)>>>0,p=C}c.rip(d,p,n,t)}},65279:function(E,b,i){"use strict";var l=i(43349),v=i(56698),g=i(29560),c=g.Cipher,u=g.DES;function f(o,h){l.equal(h.length,24,"Invalid key length");var s=h.slice(0,8),e=h.slice(8,16),r=h.slice(16,24);o==="encrypt"?this.ciphers=[u.create({type:"encrypt",key:s}),u.create({type:"decrypt",key:e}),u.create({type:"encrypt",key:r})]:this.ciphers=[u.create({type:"decrypt",key:r}),u.create({type:"encrypt",key:e}),u.create({type:"decrypt",key:s})]}function a(o){c.call(this,o);var h=new f(this.type,this.options.key);this._edeState=h}v(a,c),E.exports=a,a.create=function(h){return new a(h)},a.prototype._update=function(h,s,e,r){var n=this._edeState;n.ciphers[0]._update(h,s,e,r),n.ciphers[1]._update(e,r,e,r),n.ciphers[2]._update(e,r,e,r)},a.prototype._pad=u.prototype._pad,a.prototype._unpad=u.prototype._unpad},87626:function(E,b){"use strict";b.readUInt32BE=function(c,u){var f=c[0+u]<<24|c[1+u]<<16|c[2+u]<<8|c[3+u];return f>>>0},b.writeUInt32BE=function(c,u,f){c[0+f]=u>>>24,c[1+f]=u>>>16&255,c[2+f]=u>>>8&255,c[3+f]=u&255},b.ip=function(c,u,f,a){for(var o=0,h=0,s=6;s>=0;s-=2){for(var e=0;e<=24;e+=8)o<<=1,o|=u>>>e+s&1;for(var e=0;e<=24;e+=8)o<<=1,o|=c>>>e+s&1}for(var s=6;s>=0;s-=2){for(var e=1;e<=25;e+=8)h<<=1,h|=u>>>e+s&1;for(var e=1;e<=25;e+=8)h<<=1,h|=c>>>e+s&1}f[a+0]=o>>>0,f[a+1]=h>>>0},b.rip=function(c,u,f,a){for(var o=0,h=0,s=0;s<4;s++)for(var e=24;e>=0;e-=8)o<<=1,o|=u>>>e+s&1,o<<=1,o|=c>>>e+s&1;for(var s=4;s<8;s++)for(var e=24;e>=0;e-=8)h<<=1,h|=u>>>e+s&1,h<<=1,h|=c>>>e+s&1;f[a+0]=o>>>0,f[a+1]=h>>>0},b.pc1=function(c,u,f,a){for(var o=0,h=0,s=7;s>=5;s--){for(var e=0;e<=24;e+=8)o<<=1,o|=u>>e+s&1;for(var e=0;e<=24;e+=8)o<<=1,o|=c>>e+s&1}for(var e=0;e<=24;e+=8)o<<=1,o|=u>>e+s&1;for(var s=1;s<=3;s++){for(var e=0;e<=24;e+=8)h<<=1,h|=u>>e+s&1;for(var e=0;e<=24;e+=8)h<<=1,h|=c>>e+s&1}for(var e=0;e<=24;e+=8)h<<=1,h|=c>>e+s&1;f[a+0]=o>>>0,f[a+1]=h>>>0},b.r28shl=function(c,u){return c<<u&268435455|c>>>28-u};var i=[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];b.pc2=function(c,u,f,a){for(var o=0,h=0,s=i.length>>>1,e=0;e<s;e++)o<<=1,o|=c>>>i[e]&1;for(var e=s;e<i.length;e++)h<<=1,h|=u>>>i[e]&1;f[a+0]=o>>>0,f[a+1]=h>>>0},b.expand=function(c,u,f){var a=0,o=0;a=(c&1)<<5|c>>>27;for(var h=23;h>=15;h-=4)a<<=6,a|=c>>>h&63;for(var h=11;h>=3;h-=4)o|=c>>>h&63,o<<=6;o|=(c&31)<<1|c>>>31,u[f+0]=a>>>0,u[f+1]=o>>>0};var l=[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];b.substitute=function(c,u){for(var f=0,a=0;a<4;a++){var o=c>>>18-a*6&63,h=l[a*64+o];f<<=4,f|=h}for(var a=0;a<4;a++){var o=u>>>18-a*6&63,h=l[4*64+a*64+o];f<<=4,f|=h}return f>>>0};var v=[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];b.permute=function(c){for(var u=0,f=0;f<v.length;f++)u<<=1,u|=c>>>v[f]&1;return u>>>0},b.padSplit=function(c,u,f){for(var a=c.toString(2);a.length<u;)a="0"+a;for(var o=[],h=0;h<u;h+=f)o.push(a.slice(h,h+f));return o.join(" ")}},15380:function(E,b,i){var l=i(48287).Buffer,v=i(4934),g=i(23241),c=i(14910);function u(o){var h=new l(g[o].prime,"hex"),s=new l(g[o].gen,"hex");return new c(h,s)}var f={binary:!0,hex:!0,base64:!0};function a(o,h,s,e){return l.isBuffer(h)||f[h]===void 0?a(o,"binary",h,s):(h=h||"binary",e=e||"binary",s=s||new l([2]),l.isBuffer(s)||(s=new l(s,e)),typeof o=="number"?new c(v(o,s),s,!0):(l.isBuffer(o)||(o=new l(o,h)),new c(o,s,!0)))}b.DiffieHellmanGroup=b.createDiffieHellmanGroup=b.getDiffieHellman=u,b.createDiffieHellman=b.DiffieHellman=a},14910:function(E,b,i){var l=i(48287).Buffer,v=i(39404),g=i(52244),c=new g,u=new v(24),f=new v(11),a=new v(10),o=new v(3),h=new v(7),s=i(4934),e=i(53209);E.exports=p;function r(m,w){return w=w||"utf8",l.isBuffer(m)||(m=new l(m,w)),this._pub=new v(m),this}function n(m,w){return w=w||"utf8",l.isBuffer(m)||(m=new l(m,w)),this._priv=new v(m),this}var t={};function d(m,w){var S=w.toString("hex"),B=[S,m.toString(16)].join("_");if(B in t)return t[B];var C=0;if(m.isEven()||!s.simpleSieve||!s.fermatTest(m)||!c.test(m))return C+=1,S==="02"||S==="05"?C+=8:C+=4,t[B]=C,C;c.test(m.shrn(1))||(C+=2);var D;switch(S){case"02":m.mod(u).cmp(f)&&(C+=8);break;case"05":D=m.mod(a),D.cmp(o)&&D.cmp(h)&&(C+=8);break;default:C+=4}return t[B]=C,C}function p(m,w,S){this.setGenerator(w),this.__prime=new v(m),this._prime=v.mont(this.__prime),this._primeLen=m.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,S?(this.setPublicKey=r,this.setPrivateKey=n):this._primeCode=8}Object.defineProperty(p.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=d(this.__prime,this.__gen)),this._primeCode}}),p.prototype.generateKeys=function(){return this._priv||(this._priv=new v(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},p.prototype.computeSecret=function(m){m=new v(m),m=m.toRed(this._prime);var w=m.redPow(this._priv).fromRed(),S=new l(w.toArray()),B=this.getPrime();if(S.length<B.length){var C=new l(B.length-S.length);C.fill(0),S=l.concat([C,S])}return S},p.prototype.getPublicKey=function(w){return y(this._pub,w)},p.prototype.getPrivateKey=function(w){return y(this._priv,w)},p.prototype.getPrime=function(m){return y(this.__prime,m)},p.prototype.getGenerator=function(m){return y(this._gen,m)},p.prototype.setGenerator=function(m,w){return w=w||"utf8",l.isBuffer(m)||(m=new l(m,w)),this.__gen=m,this._gen=new v(m),this};function y(m,w){var S=new l(m.toArray());return w?S.toString(w):S}},4934:function(E,b,i){var l=i(53209);E.exports=B,B.simpleSieve=w,B.fermatTest=S;var v=i(39404),g=new v(24),c=i(52244),u=new c,f=new v(1),a=new v(2),o=new v(5),h=new v(16),s=new v(8),e=new v(10),r=new v(3),n=new v(7),t=new v(11),d=new v(4),p=new v(12),y=null;function m(){if(y!==null)return y;var C=1048576,D=[];D[0]=2;for(var A=1,k=3;k<C;k+=2){for(var I=Math.ceil(Math.sqrt(k)),x=0;x<A&&D[x]<=I&&k%D[x]!==0;x++);A!==x&&D[x]<=I||(D[A++]=k)}return y=D,D}function w(C){for(var D=m(),A=0;A<D.length;A++)if(C.modn(D[A])===0)return C.cmpn(D[A])===0;return!0}function S(C){var D=v.mont(C);return a.toRed(D).redPow(C.subn(1)).fromRed().cmpn(1)===0}function B(C,D){if(C<16)return D===2||D===5?new v([140,123]):new v([140,39]);D=new v(D);for(var A,k;;){for(A=new v(l(Math.ceil(C/8)));A.bitLength()>C;)A.ishrn(1);if(A.isEven()&&A.iadd(f),A.testn(1)||A.iadd(a),D.cmp(a)){if(!D.cmp(o))for(;A.mod(e).cmp(r);)A.iadd(d)}else for(;A.mod(g).cmp(t);)A.iadd(d);if(k=A.shrn(1),w(k)&&w(A)&&S(k)&&S(A)&&u.test(k)&&u.test(A))return A}}},68078:function(E,b,i){var l=i(92861).Buffer,v=i(88276);function g(c,u,f,a){if(l.isBuffer(c)||(c=l.from(c,"binary")),u&&(l.isBuffer(u)||(u=l.from(u,"binary")),u.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=f/8,h=l.alloc(o),s=l.alloc(a||0),e=l.alloc(0);o>0||a>0;){var r=new v;r.update(e),r.update(c),u&&r.update(u),e=r.digest();var n=0;if(o>0){var t=h.length-o;n=Math.min(o,e.length),e.copy(h,t,0,n),o-=n}if(n<e.length&&a>0){var d=s.length-a,p=Math.min(a,e.length-n);e.copy(s,d,n,n+p),a-=p}}return e.fill(0),{key:h,iv:s}}E.exports=g},52244:function(E,b,i){var l=i(39404),v=i(15037);function g(c){this.rand=c||new v.Rand}E.exports=g,g.create=function(u){return new g(u)},g.prototype._randbelow=function(u){var f=u.bitLength(),a=Math.ceil(f/8);do var o=new l(this.rand.generate(a));while(o.cmp(u)>=0);return o},g.prototype._randrange=function(u,f){var a=f.sub(u);return u.add(this._randbelow(a))},g.prototype.test=function(u,f,a){var o=u.bitLength(),h=l.mont(u),s=new l(1).toRed(h);f||(f=Math.max(1,o/48|0));for(var e=u.subn(1),r=0;!e.testn(r);r++);for(var n=u.shrn(r),t=e.toRed(h),d=!0;f>0;f--){var p=this._randrange(new l(2),e);a&&a(p);var y=p.toRed(h).redPow(n);if(!(y.cmp(s)===0||y.cmp(t)===0)){for(var m=1;m<r;m++){if(y=y.redSqr(),y.cmp(s)===0)return!1;if(y.cmp(t)===0)break}if(m===r)return!1}}return d},g.prototype.getDivisor=function(u,f){var a=u.bitLength(),o=l.mont(u),h=new l(1).toRed(o);f||(f=Math.max(1,a/48|0));for(var s=u.subn(1),e=0;!s.testn(e);e++);for(var r=u.shrn(e),n=s.toRed(o);f>0;f--){var t=this._randrange(new l(2),s),d=u.gcd(t);if(d.cmpn(1)!==0)return d;var p=t.toRed(o).redPow(r);if(!(p.cmp(h)===0||p.cmp(n)===0)){for(var y=1;y<e;y++){if(p=p.redSqr(),p.cmp(h)===0)return p.fromRed().subn(1).gcd(u);if(p.cmp(n)===0)break}if(y===e)return p=p.redSqr(),p.fromRed().subn(1).gcd(u)}}return!1}},21137:function(E,b,i){"use strict";var l=i(87568);b.certificate=i(36413);var v=l.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())});b.RSAPrivateKey=v;var g=l.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});b.RSAPublicKey=g;var c=l.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())});b.PublicKey=c;var u=l.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())}),f=l.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(u),this.key("subjectPrivateKey").octstr())});b.PrivateKey=f;var a=l.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())});b.EncryptedPrivateKey=a;var o=l.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())});b.DSAPrivateKey=o,b.DSAparam=l.define("DSAparam",function(){this.int()});var h=l.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(s),this.key("publicKey").optional().explicit(1).bitstr())});b.ECPrivateKey=h;var s=l.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});b.signature=l.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},36413:function(E,b,i){"use strict";var l=i(87568),v=l.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),g=l.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),c=l.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),u=l.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}),f=l.define("RelativeDistinguishedName",function(){this.setof(g)}),a=l.define("RDNSequence",function(){this.seqof(f)}),o=l.define("Name",function(){this.choice({rdnSequence:this.use(a)})}),h=l.define("Validity",function(){this.seq().obj(this.key("notBefore").use(v),this.key("notAfter").use(v))}),s=l.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),e=l.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(c),this.key("issuer").use(o),this.key("validity").use(h),this.key("subject").use(o),this.key("subjectPublicKeyInfo").use(u),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(s).optional())}),r=l.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(e),this.key("signatureAlgorithm").use(c),this.key("signatureValue").bitstr())});E.exports=r},24101:function(E,b,i){var l=/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,v=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,g=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,c=i(68078),u=i(1241),f=i(92861).Buffer;E.exports=function(a,o){var h=a.toString(),s=h.match(l),e;if(s){var n="aes"+s[1],t=f.from(s[2],"hex"),d=f.from(s[3].replace(/[\r\n]/g,""),"base64"),p=c(o,t.slice(0,8),parseInt(s[1],10)).key,y=[],m=u.createDecipheriv(n,p,t);y.push(m.update(d)),y.push(m.final()),e=f.concat(y)}else{var r=h.match(g);e=new f(r[2].replace(/[\r\n]/g,""),"base64")}var w=h.match(v)[1];return{tag:w,data:e}}},78170:function(E,b,i){var l=i(21137),v=i(15579),g=i(24101),c=i(1241),u=i(78396),f=i(92861).Buffer;E.exports=a;function a(h){var s;typeof h=="object"&&!f.isBuffer(h)&&(s=h.passphrase,h=h.key),typeof h=="string"&&(h=f.from(h));var e=g(h,s),r=e.tag,n=e.data,t,d;switch(r){case"CERTIFICATE":d=l.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=l.PublicKey.decode(n,"der")),t=d.algorithm.algorithm.join("."),t){case"1.2.840.113549.1.1.1":return l.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=l.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+t)}throw new Error("unknown key type "+r);case"ENCRYPTED PRIVATE KEY":n=l.EncryptedPrivateKey.decode(n,"der"),n=o(n,s);case"PRIVATE KEY":switch(d=l.PrivateKey.decode(n,"der"),t=d.algorithm.algorithm.join("."),t){case"1.2.840.113549.1.1.1":return l.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:l.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=l.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+t)}throw new Error("unknown key type "+r);case"RSA PUBLIC KEY":return l.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return l.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:l.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=l.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+r)}}a.signature=l.signature;function o(h,s){var e=h.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=v[h.algorithm.decrypt.cipher.algo.join(".")],t=h.algorithm.decrypt.cipher.iv,d=h.subjectPrivateKey,p=parseInt(n.split("-")[1],10)/8,y=u.pbkdf2Sync(s,e,r,p,"sha1"),m=c.createDecipheriv(n,y,t),w=[];return w.push(m.update(d)),w.push(m.final()),f.concat(w)}},78396:function(E,b,i){b.pbkdf2=i(43832),b.pbkdf2Sync=i(21352)},43832:function(E,b,i){var l=i(92861).Buffer,v=i(64196),g=i(2455),c=i(21352),u=i(93382),f,a=i.g.crypto&&i.g.crypto.subtle,o={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"},h=[];function s(d){if(i.g.process&&!i.g.process.browser||!a||!a.importKey||!a.deriveBits)return Promise.resolve(!1);if(h[d]!==void 0)return h[d];f=f||l.alloc(8);var p=n(f,f,10,128,d).then(function(){return!0}).catch(function(){return!1});return h[d]=p,p}var e;function r(){return e||(i.g.process&&i.g.process.nextTick?e=i.g.process.nextTick:i.g.queueMicrotask?e=i.g.queueMicrotask:i.g.setImmediate?e=i.g.setImmediate:e=i.g.setTimeout,e)}function n(d,p,y,m,w){return a.importKey("raw",d,{name:"PBKDF2"},!1,["deriveBits"]).then(function(S){return a.deriveBits({name:"PBKDF2",salt:p,iterations:y,hash:{name:w}},S,m<<3)}).then(function(S){return l.from(S)})}function t(d,p){d.then(function(y){r()(function(){p(null,y)})},function(y){r()(function(){p(y)})})}E.exports=function(d,p,y,m,w,S){typeof w=="function"&&(S=w,w=void 0),w=w||"sha1";var B=o[w.toLowerCase()];if(!B||typeof i.g.Promise!="function"){r()(function(){var C;try{C=c(d,p,y,m,w)}catch(D){return S(D)}S(null,C)});return}if(v(y,m),d=u(d,g,"Password"),p=u(p,g,"Salt"),typeof S!="function")throw new Error("No callback provided to pbkdf2");t(s(B).then(function(C){return C?n(d,p,y,m,B):c(d,p,y,m,w)}),S)}},2455:function(E,b,i){var l=i(65606),v;if(i.g.process&&i.g.process.browser)v="utf-8";else if(i.g.process&&i.g.process.version){var g=parseInt(l.version.split(".")[0].slice(1),10);v=g>=6?"utf-8":"binary"}else v="utf-8";E.exports=v},64196:function(E){var b=Math.pow(2,30)-1;E.exports=function(i,l){if(typeof i!="number")throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if(typeof l!="number")throw new TypeError("Key length not a number");if(l<0||l>b||l!==l)throw new TypeError("Bad key length")}},21352:function(E,b,i){var l=i(20320),v=i(66011),g=i(62802),c=i(92861).Buffer,u=i(64196),f=i(2455),a=i(93382),o=c.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function s(n,t,d){var p=e(n),y=n==="sha512"||n==="sha384"?128:64;t.length>y?t=p(t):t.length<y&&(t=c.concat([t,o],y));for(var m=c.allocUnsafe(y+h[n]),w=c.allocUnsafe(y+h[n]),S=0;S<y;S++)m[S]=t[S]^54,w[S]=t[S]^92;var B=c.allocUnsafe(y+d+4);m.copy(B,0,0,y),this.ipad1=B,this.ipad2=m,this.opad=w,this.alg=n,this.blocksize=y,this.hash=p,this.size=h[n]}s.prototype.run=function(n,t){n.copy(t,this.blocksize);var d=this.hash(t);return d.copy(this.opad,this.blocksize),this.hash(this.opad)};function e(n){function t(p){return g(n).update(p).digest()}function d(p){return new v().update(p).digest()}return n==="rmd160"||n==="ripemd160"?d:n==="md5"?l:t}function r(n,t,d,p,y){u(d,p),n=a(n,f,"Password"),t=a(t,f,"Salt"),y=y||"sha1";var m=new s(y,n,t.length),w=c.allocUnsafe(p),S=c.allocUnsafe(t.length+4);t.copy(S,0,0,t.length);for(var B=0,C=h[y],D=Math.ceil(p/C),A=1;A<=D;A++){S.writeUInt32BE(A,t.length);for(var k=m.run(S,m.ipad1),I=k,x=1;x<d;x++){I=m.run(I,m.ipad2);for(var P=0;P<C;P++)k[P]^=I[P]}k.copy(w,B),B+=C}return w}E.exports=r},93382:function(E,b,i){var l=i(92861).Buffer;E.exports=function(v,g,c){if(l.isBuffer(v))return v;if(typeof v=="string")return l.from(v,g);if(ArrayBuffer.isView(v))return l.from(v.buffer);throw new TypeError(c+" must be a string, a Buffer, a typed array or a DataView")}},97168:function(E,b,i){b.publicEncrypt=i(28902),b.privateDecrypt=i(77362),b.privateEncrypt=function(v,g){return b.publicEncrypt(v,g,!0)},b.publicDecrypt=function(v,g){return b.privateDecrypt(v,g,!0)}},48206:function(E,b,i){var l=i(47108),v=i(92861).Buffer;E.exports=function(c,u){for(var f=v.alloc(0),a=0,o;f.length<u;)o=g(a++),f=v.concat([f,l("sha1").update(c).update(o).digest()]);return f.slice(0,u)};function g(c){var u=v.allocUnsafe(4);return u.writeUInt32BE(c,0),u}},77362:function(E,b,i){var l=i(78170),v=i(48206),g=i(52061),c=i(39404),u=i(67332),f=i(47108),a=i(99247),o=i(92861).Buffer;E.exports=function(n,t,d){var p;n.padding?p=n.padding:d?p=1:p=4;var y=l(n),m=y.modulus.byteLength();if(t.length>m||new c(t).cmp(y.modulus)>=0)throw new Error("decryption error");var w;d?w=a(new c(t),y):w=u(t,y);var S=o.alloc(m-w.length);if(w=o.concat([S,w],m),p===4)return h(y,w);if(p===1)return s(y,w,d);if(p===3)return w;throw new Error("unknown padding")};function h(r,n){var t=r.modulus.byteLength(),d=f("sha1").update(o.alloc(0)).digest(),p=d.length;if(n[0]!==0)throw new Error("decryption error");var y=n.slice(1,p+1),m=n.slice(p+1),w=g(y,v(m,p)),S=g(m,v(w,t-p-1));if(e(d,S.slice(0,p)))throw new Error("decryption error");for(var B=p;S[B]===0;)B++;if(S[B++]!==1)throw new Error("decryption error");return S.slice(B)}function s(r,n,t){for(var d=n.slice(0,2),p=2,y=0;n[p++]!==0;)if(p>=n.length){y++;break}var m=n.slice(2,p-1);if((d.toString("hex")!=="0002"&&!t||d.toString("hex")!=="0001"&&t)&&y++,m.length<8&&y++,y)throw new Error("decryption error");return n.slice(p)}function e(r,n){r=o.from(r),n=o.from(n);var t=0,d=r.length;r.length!==n.length&&(t++,d=Math.min(r.length,n.length));for(var p=-1;++p<d;)t+=r[p]^n[p];return t}},28902:function(E,b,i){var l=i(78170),v=i(53209),g=i(47108),c=i(48206),u=i(52061),f=i(39404),a=i(99247),o=i(67332),h=i(92861).Buffer;E.exports=function(t,d,p){var y;t.padding?y=t.padding:p?y=1:y=4;var m=l(t),w;if(y===4)w=s(m,d);else if(y===1)w=e(m,d,p);else if(y===3){if(w=new f(d),w.cmp(m.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return p?o(w,m):a(w,m)};function s(n,t){var d=n.modulus.byteLength(),p=t.length,y=g("sha1").update(h.alloc(0)).digest(),m=y.length,w=2*m;if(p>d-w-2)throw new Error("message too long");var S=h.alloc(d-p-w-2),B=d-m-1,C=v(m),D=u(h.concat([y,S,h.alloc(1,1),t],B),c(C,B)),A=u(C,c(D,m));return new f(h.concat([h.alloc(1),A,D],d))}function e(n,t,d){var p=t.length,y=n.modulus.byteLength();if(p>y-11)throw new Error("message too long");var m;return d?m=h.alloc(y-p-3,255):m=r(y-p-3),new f(h.concat([h.from([0,d?1:2]),m,h.alloc(1),t],y))}function r(n){for(var t=h.allocUnsafe(n),d=0,p=v(n*2),y=0,m;d<n;)y===p.length&&(p=v(n*2),y=0),m=p[y++],m&&(t[d++]=m);return t}},99247:function(E,b,i){var l=i(39404),v=i(92861).Buffer;function g(c,u){return v.from(c.toRed(l.mont(u.modulus)).redPow(new l(u.publicExponent)).fromRed().toArray())}E.exports=g},52061:function(E){E.exports=function(i,l){for(var v=i.length,g=-1;++g<v;)i[g]^=l[g];return i}},53209:function(E,b,i){"use strict";var l=i(65606),v=65536,g=4294967295;function c(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
6
|
+
Use Chrome, Firefox or Internet Explorer 11`)}var u=i(92861).Buffer,f=i.g.crypto||i.g.msCrypto;f&&f.getRandomValues?E.exports=a:E.exports=c;function a(o,h){if(o>g)throw new RangeError("requested too many random bytes");var s=u.allocUnsafe(o);if(o>0)if(o>v)for(var e=0;e<o;e+=v)f.getRandomValues(s.slice(e,e+v));else f.getRandomValues(s);return typeof h=="function"?l.nextTick(function(){h(null,s)}):s}},76983:function(E,b,i){"use strict";var l=i(65606);function v(){throw new Error(`secure random number generation not supported by this browser
|
|
7
|
+
use chrome, FireFox or Internet Explorer 11`)}var g=i(92861),c=i(53209),u=g.Buffer,f=g.kMaxLength,a=i.g.crypto||i.g.msCrypto,o=Math.pow(2,32)-1;function h(t,d){if(typeof t!="number"||t!==t)throw new TypeError("offset must be a number");if(t>o||t<0)throw new TypeError("offset must be a uint32");if(t>f||t>d)throw new RangeError("offset out of range")}function s(t,d,p){if(typeof t!="number"||t!==t)throw new TypeError("size must be a number");if(t>o||t<0)throw new TypeError("size must be a uint32");if(t+d>p||t>f)throw new RangeError("buffer too small")}a&&a.getRandomValues||!l.browser?(b.randomFill=e,b.randomFillSync=n):(b.randomFill=v,b.randomFillSync=v);function e(t,d,p,y){if(!u.isBuffer(t)&&!(t instanceof i.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof d=="function")y=d,d=0,p=t.length;else if(typeof p=="function")y=p,p=t.length-d;else if(typeof y!="function")throw new TypeError('"cb" argument must be a function');return h(d,t.length),s(p,d,t.length),r(t,d,p,y)}function r(t,d,p,y){if(l.browser){var m=t.buffer,w=new Uint8Array(m,d,p);if(a.getRandomValues(w),y){l.nextTick(function(){y(null,t)});return}return t}if(y){c(p,function(B,C){if(B)return y(B);C.copy(t,d),y(null,t)});return}var S=c(p);return S.copy(t,d),t}function n(t,d,p){if(typeof d>"u"&&(d=0),!u.isBuffer(t)&&!(t instanceof i.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(d,t.length),p===void 0&&(p=t.length-d),s(p,d,t.length),r(t,d,p)}},68961:function(__unused_webpack_module,exports){var indexOf=function(E,b){if(E.indexOf)return E.indexOf(b);for(var i=0;i<E.length;i++)if(E[i]===b)return i;return-1},Object_keys=function(E){if(Object.keys)return Object.keys(E);var b=[];for(var i in E)b.push(i);return b},forEach=function(E,b){if(E.forEach)return E.forEach(b);for(var i=0;i<E.length;i++)b(E[i],i,E)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(E,b,i){Object.defineProperty(E,b,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch{return function(b,i,l){b[i]=l}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(b){if(!(this instanceof Script))return new Script(b);this.code=b};Script.prototype.runInContext=function(E){if(!(E instanceof Context))throw new TypeError("needs a 'context' argument.");var b=document.createElement("iframe");b.style||(b.style={}),b.style.display="none",document.body.appendChild(b);var i=b.contentWindow,l=i.eval,v=i.execScript;!l&&v&&(v.call(i,"null"),l=i.eval),forEach(Object_keys(E),function(u){i[u]=E[u]}),forEach(globals,function(u){E[u]&&(i[u]=E[u])});var g=Object_keys(i),c=l.call(i,this.code);return forEach(Object_keys(i),function(u){(u in E||indexOf(g,u)===-1)&&(E[u]=i[u])}),forEach(globals,function(u){u in E||defineProp(E,u,i[u])}),document.body.removeChild(b),c},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(E){var b=Script.createContext(E),i=this.runInContext(b);return E&&forEach(Object_keys(b),function(l){E[l]=b[l]}),i},forEach(Object_keys(Script.prototype),function(E){exports[E]=Script[E]=function(b){var i=Script(b);return i[E].apply(i,[].slice.call(arguments,1))}}),exports.isContext=function(E){return E instanceof Context},exports.createScript=function(E){return exports.Script(E)},exports.createContext=Script.createContext=function(E){var b=new Context;return typeof E=="object"&&forEach(Object_keys(E),function(i){b[i]=E[i]}),b}},3219:function(E){"use strict";E.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"}}')},62951:function(E){"use strict";E.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},64589:function(E){"use strict";E.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},23241:function(E){"use strict";E.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"}}')},15579:function(E){"use strict";E.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"}')}}]);
|