edge-currency-accountbased 2.2.3 → 2.2.5
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 +14 -0
- package/android/src/main/assets/edge-currency-accountbased/1944.chunk.js +4 -0
- package/android/src/main/assets/edge-currency-accountbased/2153.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/2821.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/2896.chunk.js +35 -0
- package/android/src/main/assets/edge-currency-accountbased/2945.chunk.js +25 -0
- package/android/src/main/assets/edge-currency-accountbased/3491.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{620.chunk.js → 3620.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{666.chunk.js → 3666.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/3720.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{978.chunk.js → 3978.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/4251.chunk.js +4 -0
- package/android/src/main/assets/edge-currency-accountbased/4431.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/4618.chunk.js +20 -0
- package/android/src/main/assets/edge-currency-accountbased/{627.chunk.js → 4627.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/4650.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{826.chunk.js → 5179.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{835.chunk.js → 5835.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/5836.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/6266.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/6291.chunk.js +58 -0
- package/android/src/main/assets/edge-currency-accountbased/6341.chunk.js +44 -0
- package/android/src/main/assets/edge-currency-accountbased/7221.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/7428.chunk.js +6 -0
- package/android/src/main/assets/edge-currency-accountbased/{481.chunk.js → 7481.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/7542.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/7786.chunk.js +2 -0
- package/android/src/main/assets/edge-currency-accountbased/8190.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{689.chunk.js → 8689.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/{726.chunk.js → 8726.chunk.js} +1 -1
- package/android/src/main/assets/edge-currency-accountbased/9068.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/{223.chunk.js → 9223.chunk.js} +2 -2
- package/android/src/main/assets/edge-currency-accountbased/9539.chunk.js +10 -0
- package/android/src/main/assets/edge-currency-accountbased/{645.chunk.js → 9645.chunk.js} +6 -6
- package/android/src/main/assets/edge-currency-accountbased/9669.chunk.js +7 -0
- package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +2 -18
- package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +5 -5
- package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +2 -2
- 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 +2 -2
- package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
- package/lib/ethereum/info/avalancheInfo.js +8 -0
- package/lib/ethereum/info/ethereumInfo.js +8 -0
- package/lib/filecoin/FilecoinEngine.js +112 -79
- package/lib/filecoin/Filfox.js +68 -1
- package/lib/filecoin/filecoinInfo.js +8 -3
- package/lib/filecoin/filecoinTypes.js +1 -6
- package/lib/zcash/ZcashEngine.js +11 -9
- package/package.json +1 -1
- package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
- package/android/src/main/assets/edge-currency-accountbased/17.chunk.js +0 -58
- package/android/src/main/assets/edge-currency-accountbased/190.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/221.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/298.chunk.js +0 -44
- package/android/src/main/assets/edge-currency-accountbased/431.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/491.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/539.chunk.js +0 -10
- package/android/src/main/assets/edge-currency-accountbased/542.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/618.chunk.js +0 -20
- package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/68.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/720.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/786.chunk.js +0 -2
- package/android/src/main/assets/edge-currency-accountbased/836.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +0 -1
- package/android/src/main/assets/edge-currency-accountbased/944.chunk.js +0 -4
- package/android/src/main/assets/edge-currency-accountbased/945.chunk.js +0 -25
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[2821],{71027:function(A,T,f){var b=f(89509).Buffer,_=f(42830).Transform,C=f(32553).s,v=f(35717);function g(h){_.call(this),this.hashMode=typeof h=="string",this.hashMode?this[h]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}v(g,_),g.prototype.update=function(h,c,d){typeof h=="string"&&(h=b.from(h,c));var m=this._update(h);return this.hashMode?this:(d&&(m=this._toString(m,d)),m)},g.prototype.setAutoPadding=function(){},g.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},g.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},g.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},g.prototype._transform=function(h,c,d){var m;try{this.hashMode?this._update(h):this.push(this._update(h))}catch(S){m=S}finally{d(m)}},g.prototype._flush=function(h){var c;try{this.push(this.__final())}catch(d){c=d}h(c)},g.prototype._finalOrDigest=function(h){var c=this.__final()||b.alloc(0);return h&&(c=this._toString(c,h,!0)),c},g.prototype._toString=function(h,c,d){if(this._decoder||(this._decoder=new C(c),this._encoding=c),this._encoding!==c)throw new Error("can't switch encodings");var m=this._decoder.write(h);return d&&(m+=this._decoder.end()),m},A.exports=g},16497:function(A,T,f){function b(n){return Array.isArray?Array.isArray(n):l(n)==="[object Array]"}T.isArray=b;function _(n){return typeof n=="boolean"}T.isBoolean=_;function C(n){return n===null}T.isNull=C;function v(n){return n==null}T.isNullOrUndefined=v;function g(n){return typeof n=="number"}T.isNumber=g;function h(n){return typeof n=="string"}T.isString=h;function c(n){return typeof n=="symbol"}T.isSymbol=c;function d(n){return n===void 0}T.isUndefined=d;function m(n){return l(n)==="[object RegExp]"}T.isRegExp=m;function S(n){return typeof n=="object"&&n!==null}T.isObject=S;function u(n){return l(n)==="[object Date]"}T.isDate=u;function B(n){return l(n)==="[object Error]"||n instanceof Error}T.isError=B;function a(n){return typeof n=="function"}T.isFunction=a;function s(n){return n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||typeof n=="symbol"||typeof n>"u"}T.isPrimitive=s,T.isBuffer=f(48764).Buffer.isBuffer;function l(n){return Object.prototype.toString.call(n)}},23482:function(A,T,f){"use strict";var b=f(35717),_=f(62318),C=f(79785),v=f(89072),g=f(71027);function h(c){g.call(this,"digest"),this._hash=c}b(h,g),h.prototype._update=function(c){this._hash.update(c)},h.prototype._final=function(){return this._hash.digest()},A.exports=function(d){return d=d.toLowerCase(),d==="md5"?new _:d==="rmd160"||d==="ripemd160"?new C:new h(v(d))}},78028:function(A,T,f){var b=f(62318);A.exports=function(_){return new b().update(_).digest()}},17187:function(A){"use strict";var T=typeof Reflect=="object"?Reflect:null,f=T&&typeof T.apply=="function"?T.apply:function(o,p,y){return Function.prototype.apply.call(o,p,y)},b;T&&typeof T.ownKeys=="function"?b=T.ownKeys:Object.getOwnPropertySymbols?b=function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:b=function(o){return Object.getOwnPropertyNames(o)};function _(r){console&&console.warn&&console.warn(r)}var C=Number.isNaN||function(o){return o!==o};function v(){v.init.call(this)}A.exports=v,A.exports.once=n,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var g=10;function h(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(v,"defaultMaxListeners",{enumerable:!0,get:function(){return g},set:function(r){if(typeof r!="number"||r<0||C(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");g=r}}),v.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},v.prototype.setMaxListeners=function(o){if(typeof o!="number"||o<0||C(o))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+o+".");return this._maxListeners=o,this};function c(r){return r._maxListeners===void 0?v.defaultMaxListeners:r._maxListeners}v.prototype.getMaxListeners=function(){return c(this)},v.prototype.emit=function(o){for(var p=[],y=1;y<arguments.length;y++)p.push(arguments[y]);var L=o==="error",D=this._events;if(D!==void 0)L=L&&D.error===void 0;else if(!L)return!1;if(L){var O;if(p.length>0&&(O=p[0]),O instanceof Error)throw O;var j=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw j.context=O,j}var z=D[o];if(z===void 0)return!1;if(typeof z=="function")f(z,this,p);else for(var K=z.length,V=a(z,K),y=0;y<K;++y)f(V[y],this,p);return!0};function d(r,o,p,y){var L,D,O;if(h(p),D=r._events,D===void 0?(D=r._events=Object.create(null),r._eventsCount=0):(D.newListener!==void 0&&(r.emit("newListener",o,p.listener?p.listener:p),D=r._events),O=D[o]),O===void 0)O=D[o]=p,++r._eventsCount;else if(typeof O=="function"?O=D[o]=y?[p,O]:[O,p]:y?O.unshift(p):O.push(p),L=c(r),L>0&&O.length>L&&!O.warned){O.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(o)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=r,j.type=o,j.count=O.length,_(j)}return r}v.prototype.addListener=function(o,p){return d(this,o,p,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(o,p){return d(this,o,p,!0)};function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(r,o,p){var y={fired:!1,wrapFn:void 0,target:r,type:o,listener:p},L=m.bind(y);return L.listener=p,y.wrapFn=L,L}v.prototype.once=function(o,p){return h(p),this.on(o,S(this,o,p)),this},v.prototype.prependOnceListener=function(o,p){return h(p),this.prependListener(o,S(this,o,p)),this},v.prototype.removeListener=function(o,p){var y,L,D,O,j;if(h(p),L=this._events,L===void 0)return this;if(y=L[o],y===void 0)return this;if(y===p||y.listener===p)--this._eventsCount===0?this._events=Object.create(null):(delete L[o],L.removeListener&&this.emit("removeListener",o,y.listener||p));else if(typeof y!="function"){for(D=-1,O=y.length-1;O>=0;O--)if(y[O]===p||y[O].listener===p){j=y[O].listener,D=O;break}if(D<0)return this;D===0?y.shift():s(y,D),y.length===1&&(L[o]=y[0]),L.removeListener!==void 0&&this.emit("removeListener",o,j||p)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(o){var p,y,L;if(y=this._events,y===void 0)return this;if(y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):y[o]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete y[o]),this;if(arguments.length===0){var D=Object.keys(y),O;for(L=0;L<D.length;++L)O=D[L],O!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(p=y[o],typeof p=="function")this.removeListener(o,p);else if(p!==void 0)for(L=p.length-1;L>=0;L--)this.removeListener(o,p[L]);return this};function u(r,o,p){var y=r._events;if(y===void 0)return[];var L=y[o];return L===void 0?[]:typeof L=="function"?p?[L.listener||L]:[L]:p?l(L):a(L,L.length)}v.prototype.listeners=function(o){return u(this,o,!0)},v.prototype.rawListeners=function(o){return u(this,o,!1)},v.listenerCount=function(r,o){return typeof r.listenerCount=="function"?r.listenerCount(o):B.call(r,o)},v.prototype.listenerCount=B;function B(r){var o=this._events;if(o!==void 0){var p=o[r];if(typeof p=="function")return 1;if(p!==void 0)return p.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?b(this._events):[]};function a(r,o){for(var p=new Array(o),y=0;y<o;++y)p[y]=r[y];return p}function s(r,o){for(;o+1<r.length;o++)r[o]=r[o+1];r.pop()}function l(r){for(var o=new Array(r.length),p=0;p<o.length;++p)o[p]=r[p].listener||r[p];return o}function n(r,o){return new Promise(function(p,y){function L(O){r.removeListener(o,D),y(O)}function D(){typeof r.removeListener=="function"&&r.removeListener("error",L),p([].slice.call(arguments))}e(r,o,D,{once:!0}),o!=="error"&&E(r,L,{once:!0})})}function E(r,o,p){typeof r.on=="function"&&e(r,"error",o,p)}function e(r,o,p,y){if(typeof r.on=="function")y.once?r.once(o,p):r.on(o,p);else if(typeof r.addEventListener=="function")r.addEventListener(o,function L(D){y.once&&r.removeEventListener(o,L),p(D)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}},3349:function(A,T,f){"use strict";var b=f(89509).Buffer,_=f(42830).Transform,C=f(35717);function v(h,c){if(!b.isBuffer(h)&&typeof h!="string")throw new TypeError(c+" must be a string or a buffer")}function g(h){_.call(this),this._block=b.allocUnsafe(h),this._blockSize=h,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}C(g,_),g.prototype._transform=function(h,c,d){var m=null;try{this.update(h,c)}catch(S){m=S}d(m)},g.prototype._flush=function(h){var c=null;try{this.push(this.digest())}catch(d){c=d}h(c)},g.prototype.update=function(h,c){if(v(h,"Data"),this._finalized)throw new Error("Digest already called");b.isBuffer(h)||(h=b.from(h,c));for(var d=this._block,m=0;this._blockOffset+h.length-m>=this._blockSize;){for(var S=this._blockOffset;S<this._blockSize;)d[S++]=h[m++];this._update(),this._blockOffset=0}for(;m<h.length;)d[this._blockOffset++]=h[m++];for(var u=0,B=h.length*8;B>0;++u)this._length[u]+=B,B=this._length[u]/4294967296|0,B>0&&(this._length[u]-=4294967296*B);return this},g.prototype._update=function(){throw new Error("_update is not implemented")},g.prototype.digest=function(h){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var c=this._digest();h!==void 0&&(c=c.toString(h)),this._block.fill(0),this._blockOffset=0;for(var d=0;d<4;++d)this._length[d]=0;return c},g.prototype._digest=function(){throw new Error("_digest is not implemented")},A.exports=g},35717:function(A){typeof Object.create=="function"?A.exports=function(f,b){b&&(f.super_=b,f.prototype=Object.create(b.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:A.exports=function(f,b){if(b){f.super_=b;var _=function(){};_.prototype=b.prototype,f.prototype=new _,f.prototype.constructor=f}}},5826:function(A){var T={}.toString;A.exports=Array.isArray||function(f){return T.call(f)=="[object Array]"}},62318:function(A,T,f){"use strict";var b=f(48764).Buffer,_=f(35717),C=f(3349),v=new Array(16);function g(){C.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}_(g,C),g.prototype._update=function(){for(var u=v,B=0;B<16;++B)u[B]=this._block.readInt32LE(B*4);var a=this._a,s=this._b,l=this._c,n=this._d;a=c(a,s,l,n,u[0],3614090360,7),n=c(n,a,s,l,u[1],3905402710,12),l=c(l,n,a,s,u[2],606105819,17),s=c(s,l,n,a,u[3],3250441966,22),a=c(a,s,l,n,u[4],4118548399,7),n=c(n,a,s,l,u[5],1200080426,12),l=c(l,n,a,s,u[6],2821735955,17),s=c(s,l,n,a,u[7],4249261313,22),a=c(a,s,l,n,u[8],1770035416,7),n=c(n,a,s,l,u[9],2336552879,12),l=c(l,n,a,s,u[10],4294925233,17),s=c(s,l,n,a,u[11],2304563134,22),a=c(a,s,l,n,u[12],1804603682,7),n=c(n,a,s,l,u[13],4254626195,12),l=c(l,n,a,s,u[14],2792965006,17),s=c(s,l,n,a,u[15],1236535329,22),a=d(a,s,l,n,u[1],4129170786,5),n=d(n,a,s,l,u[6],3225465664,9),l=d(l,n,a,s,u[11],643717713,14),s=d(s,l,n,a,u[0],3921069994,20),a=d(a,s,l,n,u[5],3593408605,5),n=d(n,a,s,l,u[10],38016083,9),l=d(l,n,a,s,u[15],3634488961,14),s=d(s,l,n,a,u[4],3889429448,20),a=d(a,s,l,n,u[9],568446438,5),n=d(n,a,s,l,u[14],3275163606,9),l=d(l,n,a,s,u[3],4107603335,14),s=d(s,l,n,a,u[8],1163531501,20),a=d(a,s,l,n,u[13],2850285829,5),n=d(n,a,s,l,u[2],4243563512,9),l=d(l,n,a,s,u[7],1735328473,14),s=d(s,l,n,a,u[12],2368359562,20),a=m(a,s,l,n,u[5],4294588738,4),n=m(n,a,s,l,u[8],2272392833,11),l=m(l,n,a,s,u[11],1839030562,16),s=m(s,l,n,a,u[14],4259657740,23),a=m(a,s,l,n,u[1],2763975236,4),n=m(n,a,s,l,u[4],1272893353,11),l=m(l,n,a,s,u[7],4139469664,16),s=m(s,l,n,a,u[10],3200236656,23),a=m(a,s,l,n,u[13],681279174,4),n=m(n,a,s,l,u[0],3936430074,11),l=m(l,n,a,s,u[3],3572445317,16),s=m(s,l,n,a,u[6],76029189,23),a=m(a,s,l,n,u[9],3654602809,4),n=m(n,a,s,l,u[12],3873151461,11),l=m(l,n,a,s,u[15],530742520,16),s=m(s,l,n,a,u[2],3299628645,23),a=S(a,s,l,n,u[0],4096336452,6),n=S(n,a,s,l,u[7],1126891415,10),l=S(l,n,a,s,u[14],2878612391,15),s=S(s,l,n,a,u[5],4237533241,21),a=S(a,s,l,n,u[12],1700485571,6),n=S(n,a,s,l,u[3],2399980690,10),l=S(l,n,a,s,u[10],4293915773,15),s=S(s,l,n,a,u[1],2240044497,21),a=S(a,s,l,n,u[8],1873313359,6),n=S(n,a,s,l,u[15],4264355552,10),l=S(l,n,a,s,u[6],2734768916,15),s=S(s,l,n,a,u[13],1309151649,21),a=S(a,s,l,n,u[4],4149444226,6),n=S(n,a,s,l,u[11],3174756917,10),l=S(l,n,a,s,u[2],718787259,15),s=S(s,l,n,a,u[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+s|0,this._c=this._c+l|0,this._d=this._d+n|0},g.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var u=new b(16);return u.writeInt32LE(this._a,0),u.writeInt32LE(this._b,4),u.writeInt32LE(this._c,8),u.writeInt32LE(this._d,12),u};function h(u,B){return u<<B|u>>>32-B}function c(u,B,a,s,l,n,E){return h(u+(B&a|~B&s)+l+n|0,E)+B|0}function d(u,B,a,s,l,n,E){return h(u+(B&s|a&~s)+l+n|0,E)+B|0}function m(u,B,a,s,l,n,E){return h(u+(B^a^s)+l+n|0,E)+B|0}function S(u,B,a,s,l,n,E){return h(u+(a^(B|~s))+l+n|0,E)+B|0}A.exports=g},25632:function(A,T,f){T.pbkdf2=f(88638),T.pbkdf2Sync=f(91257)},88638:function(A,T,f){var b=f(89509).Buffer,_=f(77357),C=f(12368),v=f(91257),g=f(57777),h,c=f.g.crypto&&f.g.crypto.subtle,d={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"},m=[];function S(l){if(f.g.process&&!f.g.process.browser||!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(m[l]!==void 0)return m[l];h=h||b.alloc(8);var n=a(h,h,10,128,l).then(function(){return!0}).catch(function(){return!1});return m[l]=n,n}var u;function B(){return u||(f.g.process&&f.g.process.nextTick?u=f.g.process.nextTick:f.g.queueMicrotask?u=f.g.queueMicrotask:f.g.setImmediate?u=f.g.setImmediate:u=f.g.setTimeout,u)}function a(l,n,E,e,r){return c.importKey("raw",l,{name:"PBKDF2"},!1,["deriveBits"]).then(function(o){return c.deriveBits({name:"PBKDF2",salt:n,iterations:E,hash:{name:r}},o,e<<3)}).then(function(o){return b.from(o)})}function s(l,n){l.then(function(E){B()(function(){n(null,E)})},function(E){B()(function(){n(E)})})}A.exports=function(l,n,E,e,r,o){typeof r=="function"&&(o=r,r=void 0),r=r||"sha1";var p=d[r.toLowerCase()];if(!p||typeof f.g.Promise!="function"){B()(function(){var y;try{y=v(l,n,E,e,r)}catch(L){return o(L)}o(null,y)});return}if(_(E,e),l=g(l,C,"Password"),n=g(n,C,"Salt"),typeof o!="function")throw new Error("No callback provided to pbkdf2");s(S(p).then(function(y){return y?a(l,n,E,e,p):v(l,n,E,e,r)}),o)}},12368:function(A,T,f){var b=f(34155),_;if(f.g.process&&f.g.process.browser)_="utf-8";else if(f.g.process&&f.g.process.version){var C=parseInt(b.version.split(".")[0].slice(1),10);_=C>=6?"utf-8":"binary"}else _="utf-8";A.exports=_},77357:function(A){var T=Math.pow(2,30)-1;A.exports=function(f,b){if(typeof f!="number")throw new TypeError("Iterations not a number");if(f<0)throw new TypeError("Bad iterations");if(typeof b!="number")throw new TypeError("Key length not a number");if(b<0||b>T||b!==b)throw new TypeError("Bad key length")}},91257:function(A,T,f){var b=f(78028),_=f(79785),C=f(89072),v=f(89509).Buffer,g=f(77357),h=f(12368),c=f(57777),d=v.alloc(128),m={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function S(a,s,l){var n=u(a),E=a==="sha512"||a==="sha384"?128:64;s.length>E?s=n(s):s.length<E&&(s=v.concat([s,d],E));for(var e=v.allocUnsafe(E+m[a]),r=v.allocUnsafe(E+m[a]),o=0;o<E;o++)e[o]=s[o]^54,r[o]=s[o]^92;var p=v.allocUnsafe(E+l+4);e.copy(p,0,0,E),this.ipad1=p,this.ipad2=e,this.opad=r,this.alg=a,this.blocksize=E,this.hash=n,this.size=m[a]}S.prototype.run=function(a,s){a.copy(s,this.blocksize);var l=this.hash(s);return l.copy(this.opad,this.blocksize),this.hash(this.opad)};function u(a){function s(n){return C(a).update(n).digest()}function l(n){return new _().update(n).digest()}return a==="rmd160"||a==="ripemd160"?l:a==="md5"?b:s}function B(a,s,l,n,E){g(l,n),a=c(a,h,"Password"),s=c(s,h,"Salt"),E=E||"sha1";var e=new S(E,a,s.length),r=v.allocUnsafe(n),o=v.allocUnsafe(s.length+4);s.copy(o,0,0,s.length);for(var p=0,y=m[E],L=Math.ceil(n/y),D=1;D<=L;D++){o.writeUInt32BE(D,s.length);for(var O=e.run(o,e.ipad1),j=O,z=1;z<l;z++){j=e.run(j,e.ipad2);for(var K=0;K<y;K++)O[K]^=j[K]}O.copy(r,p),p+=y}return r}A.exports=B},57777:function(A,T,f){var b=f(89509).Buffer;A.exports=function(_,C,v){if(b.isBuffer(_))return _;if(typeof _=="string")return b.from(_,C);if(ArrayBuffer.isView(_))return b.from(_.buffer);throw new TypeError(v+" must be a string, a Buffer, a typed array or a DataView")}},88212:function(A,T,f){"use strict";var b=f(34155);typeof b>"u"||!b.version||b.version.indexOf("v0.")===0||b.version.indexOf("v1.")===0&&b.version.indexOf("v1.8.")!==0?A.exports={nextTick:_}:A.exports=b;function _(C,v,g,h){if(typeof C!="function")throw new TypeError('"callback" argument must be a function');var c=arguments.length,d,m;switch(c){case 0:case 1:return b.nextTick(C);case 2:return b.nextTick(function(){C.call(null,v)});case 3:return b.nextTick(function(){C.call(null,v,g)});case 4:return b.nextTick(function(){C.call(null,v,g,h)});default:for(d=new Array(c-1),m=0;m<d.length;)d[m++]=arguments[m];return b.nextTick(function(){C.apply(null,d)})}}},34155:function(A){var T=A.exports={},f,b;function _(){throw new Error("setTimeout has not been defined")}function C(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?f=setTimeout:f=_}catch{f=_}try{typeof clearTimeout=="function"?b=clearTimeout:b=C}catch{b=C}})();function v(s){if(f===setTimeout)return setTimeout(s,0);if((f===_||!f)&&setTimeout)return f=setTimeout,setTimeout(s,0);try{return f(s,0)}catch{try{return f.call(null,s,0)}catch{return f.call(this,s,0)}}}function g(s){if(b===clearTimeout)return clearTimeout(s);if((b===C||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(s);try{return b(s)}catch{try{return b.call(null,s)}catch{return b.call(this,s)}}}var h=[],c=!1,d,m=-1;function S(){!c||!d||(c=!1,d.length?h=d.concat(h):m=-1,h.length&&u())}function u(){if(!c){var s=v(S);c=!0;for(var l=h.length;l;){for(d=h,h=[];++m<l;)d&&d[m].run();m=-1,l=h.length}d=null,c=!1,g(s)}}T.nextTick=function(s){var l=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)l[n-1]=arguments[n];h.push(new B(s,l)),h.length===1&&!c&&v(u)};function B(s,l){this.fun=s,this.array=l}B.prototype.run=function(){this.fun.apply(null,this.array)},T.title="browser",T.browser=!0,T.env={},T.argv=[],T.version="",T.versions={};function a(){}T.on=a,T.addListener=a,T.once=a,T.off=a,T.removeListener=a,T.removeAllListeners=a,T.emit=a,T.prependListener=a,T.prependOnceListener=a,T.listeners=function(s){return[]},T.binding=function(s){throw new Error("process.binding is not supported")},T.cwd=function(){return"/"},T.chdir=function(s){throw new Error("process.chdir is not supported")},T.umask=function(){return 0}},61798:function(A,T,f){"use strict";var b=f(34155),_=65536,C=4294967295;function v(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
|
+
Use Chrome, Firefox or Internet Explorer 11`)}var g=f(89509).Buffer,h=f.g.crypto||f.g.msCrypto;h&&h.getRandomValues?A.exports=c:A.exports=v;function c(d,m){if(d>C)throw new RangeError("requested too many random bytes");var S=g.allocUnsafe(d);if(d>0)if(d>_)for(var u=0;u<d;u+=_)h.getRandomValues(S.slice(u,u+_));else h.getRandomValues(S);return typeof m=="function"?b.nextTick(function(){m(null,S)}):S}},20074:function(A,T,f){A.exports=f(56753)},56753:function(A,T,f){"use strict";var b=f(88212),_=Object.keys||function(B){var a=[];for(var s in B)a.push(s);return a};A.exports=m;var C=Object.create(f(16497));C.inherits=f(35717);var v=f(79481),g=f(64229);C.inherits(m,v);for(var h=_(g.prototype),c=0;c<h.length;c++){var d=h[c];m.prototype[d]||(m.prototype[d]=g.prototype[d])}function m(B){if(!(this instanceof m))return new m(B);v.call(this,B),g.call(this,B),B&&B.readable===!1&&(this.readable=!1),B&&B.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,B&&B.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",S)}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(){this.allowHalfOpen||this._writableState.ended||b.nextTick(u,this)}function u(B){B.end()}Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(B){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=B,this._writableState.destroyed=B)}}),m.prototype._destroy=function(B,a){this.push(null),this.end(),b.nextTick(a,B)}},82725:function(A,T,f){"use strict";A.exports=C;var b=f(74605),_=Object.create(f(16497));_.inherits=f(35717),_.inherits(C,b);function C(v){if(!(this instanceof C))return new C(v);b.call(this,v)}C.prototype._transform=function(v,g,h){h(null,v)}},79481:function(A,T,f){"use strict";var b=f(34155),_=f(88212);A.exports=p;var C=f(5826),v;p.ReadableState=o;var g=f(17187).EventEmitter,h=function(t,i){return t.listeners(i).length},c=f(22503),d=f(89509).Buffer,m=f.g.Uint8Array||function(){};function S(t){return d.from(t)}function u(t){return d.isBuffer(t)||t instanceof m}var B=Object.create(f(16497));B.inherits=f(35717);var a=f(94616),s=void 0;a&&a.debuglog?s=a.debuglog("stream"):s=function(){};var l=f(25057),n=f(61195),E;B.inherits(p,c);var e=["error","close","destroy","pause","resume"];function r(t,i,M){if(typeof t.prependListener=="function")return t.prependListener(i,M);!t._events||!t._events[i]?t.on(i,M):C(t._events[i])?t._events[i].unshift(M):t._events[i]=[M,t._events[i]]}function o(t,i){v=v||f(56753),t=t||{};var M=i instanceof v;this.objectMode=!!t.objectMode,M&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var N=t.highWaterMark,H=t.readableHighWaterMark,F=this.objectMode?16:16*1024;N||N===0?this.highWaterMark=N:M&&(H||H===0)?this.highWaterMark=H:this.highWaterMark=F,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(E||(E=f(94626).s),this.decoder=new E(t.encoding),this.encoding=t.encoding)}function p(t){if(v=v||f(56753),!(this instanceof p))return new p(t);this._readableState=new o(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),c.call(this)}Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}}),p.prototype.destroy=n.destroy,p.prototype._undestroy=n.undestroy,p.prototype._destroy=function(t,i){this.push(null),i(t)},p.prototype.push=function(t,i){var M=this._readableState,N;return M.objectMode?N=!0:typeof t=="string"&&(i=i||M.defaultEncoding,i!==M.encoding&&(t=d.from(t,i),i=""),N=!0),y(this,t,i,!1,N)},p.prototype.unshift=function(t){return y(this,t,null,!0,!1)};function y(t,i,M,N,H){var F=t._readableState;if(i===null)F.reading=!1,V(t,F);else{var U;H||(U=D(F,i)),U?t.emit("error",U):F.objectMode||i&&i.length>0?(typeof i!="string"&&!F.objectMode&&Object.getPrototypeOf(i)!==d.prototype&&(i=S(i)),N?F.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):L(t,F,i,!0):F.ended?t.emit("error",new Error("stream.push() after EOF")):(F.reading=!1,F.decoder&&!M?(i=F.decoder.write(i),F.objectMode||i.length!==0?L(t,F,i,!1):Q(t,F)):L(t,F,i,!1))):N||(F.reading=!1)}return O(F)}function L(t,i,M,N){i.flowing&&i.length===0&&!i.sync?(t.emit("data",M),t.read(0)):(i.length+=i.objectMode?1:M.length,N?i.buffer.unshift(M):i.buffer.push(M),i.needReadable&&k(t)),Q(t,i)}function D(t,i){var M;return!u(i)&&typeof i!="string"&&i!==void 0&&!t.objectMode&&(M=new TypeError("Invalid non-string/buffer chunk")),M}function O(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}p.prototype.isPaused=function(){return this._readableState.flowing===!1},p.prototype.setEncoding=function(t){return E||(E=f(94626).s),this._readableState.decoder=new E(t),this._readableState.encoding=t,this};var j=8388608;function z(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function K(t,i){return t<=0||i.length===0&&i.ended?0:i.objectMode?1:t!==t?i.flowing&&i.length?i.buffer.head.data.length:i.length:(t>i.highWaterMark&&(i.highWaterMark=z(t)),t<=i.length?t:i.ended?i.length:(i.needReadable=!0,0))}p.prototype.read=function(t){s("read",t),t=parseInt(t,10);var i=this._readableState,M=t;if(t!==0&&(i.emittedReadable=!1),t===0&&i.needReadable&&(i.length>=i.highWaterMark||i.ended))return s("read: emitReadable",i.length,i.ended),i.length===0&&i.ended?q(this):k(this),null;if(t=K(t,i),t===0&&i.ended)return i.length===0&&q(this),null;var N=i.needReadable;s("need readable",N),(i.length===0||i.length-t<i.highWaterMark)&&(N=!0,s("length less than watermark",N)),i.ended||i.reading?(N=!1,s("reading or ended",N)):N&&(s("do read"),i.reading=!0,i.sync=!0,i.length===0&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(t=K(M,i)));var H;return t>0?H=I(t,i):H=null,H===null?(i.needReadable=!0,t=0):i.length-=t,i.length===0&&(i.ended||(i.needReadable=!0),M!==t&&i.ended&&q(this)),H!==null&&this.emit("data",H),H};function V(t,i){if(!i.ended){if(i.decoder){var M=i.decoder.end();M&&M.length&&(i.buffer.push(M),i.length+=i.objectMode?1:M.length)}i.ended=!0,k(t)}}function k(t){var i=t._readableState;i.needReadable=!1,i.emittedReadable||(s("emitReadable",i.flowing),i.emittedReadable=!0,i.sync?_.nextTick(Y,t):Y(t))}function Y(t){s("emit readable"),t.emit("readable"),R(t)}function Q(t,i){i.readingMore||(i.readingMore=!0,_.nextTick(J,t,i))}function J(t,i){for(var M=i.length;!i.reading&&!i.flowing&&!i.ended&&i.length<i.highWaterMark&&(s("maybeReadMore read 0"),t.read(0),M!==i.length);)M=i.length;i.readingMore=!1}p.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},p.prototype.pipe=function(t,i){var M=this,N=this._readableState;switch(N.pipesCount){case 0:N.pipes=t;break;case 1:N.pipes=[N.pipes,t];break;default:N.pipes.push(t);break}N.pipesCount+=1,s("pipe count=%d opts=%j",N.pipesCount,i);var H=(!i||i.end!==!1)&&t!==b.stdout&&t!==b.stderr,F=H?ne:ue;N.endEmitted?_.nextTick(F):M.once("end",F),t.on("unpipe",U);function U(ae,le){s("onunpipe"),ae===M&&le&&le.hasUnpiped===!1&&(le.hasUnpiped=!0,ce())}function ne(){s("onend"),t.end()}var fe=G(M);t.on("drain",fe);var oe=!1;function ce(){s("cleanup"),t.removeListener("close",se),t.removeListener("finish",he),t.removeListener("drain",fe),t.removeListener("error",ee),t.removeListener("unpipe",U),M.removeListener("end",ne),M.removeListener("end",ue),M.removeListener("data",Z),oe=!0,N.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&fe()}var ie=!1;M.on("data",Z);function Z(ae){s("ondata"),ie=!1;var le=t.write(ae);le===!1&&!ie&&((N.pipesCount===1&&N.pipes===t||N.pipesCount>1&&X(N.pipes,t)!==-1)&&!oe&&(s("false write response, pause",M._readableState.awaitDrain),M._readableState.awaitDrain++,ie=!0),M.pause())}function ee(ae){s("onerror",ae),ue(),t.removeListener("error",ee),h(t,"error")===0&&t.emit("error",ae)}r(t,"error",ee);function se(){t.removeListener("finish",he),ue()}t.once("close",se);function he(){s("onfinish"),t.removeListener("close",se),ue()}t.once("finish",he);function ue(){s("unpipe"),M.unpipe(t)}return t.emit("pipe",M),N.flowing||(s("pipe resume"),M.resume()),t};function G(t){return function(){var i=t._readableState;s("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&h(t,"data")&&(i.flowing=!0,R(t))}}p.prototype.unpipe=function(t){var i=this._readableState,M={hasUnpiped:!1};if(i.pipesCount===0)return this;if(i.pipesCount===1)return t&&t!==i.pipes?this:(t||(t=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,t&&t.emit("unpipe",this,M),this);if(!t){var N=i.pipes,H=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var F=0;F<H;F++)N[F].emit("unpipe",this,M);return this}var U=X(i.pipes,t);return U===-1?this:(i.pipes.splice(U,1),i.pipesCount-=1,i.pipesCount===1&&(i.pipes=i.pipes[0]),t.emit("unpipe",this,M),this)},p.prototype.on=function(t,i){var M=c.prototype.on.call(this,t,i);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var N=this._readableState;!N.endEmitted&&!N.readableListening&&(N.readableListening=N.needReadable=!0,N.emittedReadable=!1,N.reading?N.length&&k(this):_.nextTick(re,this))}return M},p.prototype.addListener=p.prototype.on;function re(t){s("readable nexttick read 0"),t.read(0)}p.prototype.resume=function(){var t=this._readableState;return t.flowing||(s("resume"),t.flowing=!0,x(this,t)),this};function x(t,i){i.resumeScheduled||(i.resumeScheduled=!0,_.nextTick(w,t,i))}function w(t,i){i.reading||(s("resume read 0"),t.read(0)),i.resumeScheduled=!1,i.awaitDrain=0,t.emit("resume"),R(t),i.flowing&&!i.reading&&t.read(0)}p.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function R(t){var i=t._readableState;for(s("flow",i.flowing);i.flowing&&t.read()!==null;);}p.prototype.wrap=function(t){var i=this,M=this._readableState,N=!1;t.on("end",function(){if(s("wrapped end"),M.decoder&&!M.ended){var U=M.decoder.end();U&&U.length&&i.push(U)}i.push(null)}),t.on("data",function(U){if(s("wrapped data"),M.decoder&&(U=M.decoder.write(U)),!(M.objectMode&&U==null)&&!(!M.objectMode&&(!U||!U.length))){var ne=i.push(U);ne||(N=!0,t.pause())}});for(var H in t)this[H]===void 0&&typeof t[H]=="function"&&(this[H]=function(U){return function(){return t[U].apply(t,arguments)}}(H));for(var F=0;F<e.length;F++)t.on(e[F],this.emit.bind(this,e[F]));return this._read=function(U){s("wrapped _read",U),N&&(N=!1,t.resume())},this},Object.defineProperty(p.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),p._fromList=I;function I(t,i){if(i.length===0)return null;var M;return i.objectMode?M=i.buffer.shift():!t||t>=i.length?(i.decoder?M=i.buffer.join(""):i.buffer.length===1?M=i.buffer.head.data:M=i.buffer.concat(i.length),i.buffer.clear()):M=P(t,i.buffer,i.decoder),M}function P(t,i,M){var N;return t<i.head.data.length?(N=i.head.data.slice(0,t),i.head.data=i.head.data.slice(t)):t===i.head.data.length?N=i.shift():N=M?W(t,i):$(t,i),N}function W(t,i){var M=i.head,N=1,H=M.data;for(t-=H.length;M=M.next;){var F=M.data,U=t>F.length?F.length:t;if(U===F.length?H+=F:H+=F.slice(0,t),t-=U,t===0){U===F.length?(++N,M.next?i.head=M.next:i.head=i.tail=null):(i.head=M,M.data=F.slice(U));break}++N}return i.length-=N,H}function $(t,i){var M=d.allocUnsafe(t),N=i.head,H=1;for(N.data.copy(M),t-=N.data.length;N=N.next;){var F=N.data,U=t>F.length?F.length:t;if(F.copy(M,M.length-t,0,U),t-=U,t===0){U===F.length?(++H,N.next?i.head=N.next:i.head=i.tail=null):(i.head=N,N.data=F.slice(U));break}++H}return i.length-=H,M}function q(t){var i=t._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');i.endEmitted||(i.ended=!0,_.nextTick(te,i,t))}function te(t,i){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,i.readable=!1,i.emit("end"))}function X(t,i){for(var M=0,N=t.length;M<N;M++)if(t[M]===i)return M;return-1}},74605:function(A,T,f){"use strict";A.exports=v;var b=f(56753),_=Object.create(f(16497));_.inherits=f(35717),_.inherits(v,b);function C(c,d){var m=this._transformState;m.transforming=!1;var S=m.writecb;if(!S)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,d!=null&&this.push(d),S(c);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function v(c){if(!(this instanceof v))return new v(c);b.call(this,c),this._transformState={afterTransform:C.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",g)}function g(){var c=this;typeof this._flush=="function"?this._flush(function(d,m){h(c,d,m)}):h(this,null,null)}v.prototype.push=function(c,d){return this._transformState.needTransform=!1,b.prototype.push.call(this,c,d)},v.prototype._transform=function(c,d,m){throw new Error("_transform() is not implemented")},v.prototype._write=function(c,d,m){var S=this._transformState;if(S.writecb=m,S.writechunk=c,S.writeencoding=d,!S.transforming){var u=this._readableState;(S.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}},v.prototype._read=function(c){var d=this._transformState;d.writechunk!==null&&d.writecb&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},v.prototype._destroy=function(c,d){var m=this;b.prototype._destroy.call(this,c,function(S){d(S),m.emit("close")})};function h(c,d,m){if(d)return c.emit("error",d);if(m!=null&&c.push(m),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}},64229:function(A,T,f){"use strict";var b=f(34155),_=f(88212);A.exports=e;function C(x,w,R){this.chunk=x,this.encoding=w,this.callback=R,this.next=null}function v(x){var w=this;this.next=null,this.entry=null,this.finish=function(){re(w,x)}}var g=!b.browser&&["v0.10","v0.9."].indexOf(b.version.slice(0,5))>-1?setImmediate:_.nextTick,h;e.WritableState=n;var c=Object.create(f(16497));c.inherits=f(35717);var d={deprecate:f(94927)},m=f(22503),S=f(89509).Buffer,u=f.g.Uint8Array||function(){};function B(x){return S.from(x)}function a(x){return S.isBuffer(x)||x instanceof u}var s=f(61195);c.inherits(e,m);function l(){}function n(x,w){h=h||f(56753),x=x||{};var R=w instanceof h;this.objectMode=!!x.objectMode,R&&(this.objectMode=this.objectMode||!!x.writableObjectMode);var I=x.highWaterMark,P=x.writableHighWaterMark,W=this.objectMode?16:16*1024;I||I===0?this.highWaterMark=I:R&&(P||P===0)?this.highWaterMark=P:this.highWaterMark=W,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $=x.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=x.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){j(w,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new v(this)}n.prototype.getBuffer=function(){for(var w=this.bufferedRequest,R=[];w;)R.push(w),w=w.next;return R},function(){try{Object.defineProperty(n.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(e,Symbol.hasInstance,{value:function(x){return E.call(this,x)?!0:this!==e?!1:x&&x._writableState instanceof n}})):E=function(x){return x instanceof this};function e(x){if(h=h||f(56753),!E.call(e,this)&&!(this instanceof h))return new e(x);this._writableState=new n(x,this),this.writable=!0,x&&(typeof x.write=="function"&&(this._write=x.write),typeof x.writev=="function"&&(this._writev=x.writev),typeof x.destroy=="function"&&(this._destroy=x.destroy),typeof x.final=="function"&&(this._final=x.final)),m.call(this)}e.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function r(x,w){var R=new Error("write after end");x.emit("error",R),_.nextTick(w,R)}function o(x,w,R,I){var P=!0,W=!1;return R===null?W=new TypeError("May not write null values to stream"):typeof R!="string"&&R!==void 0&&!w.objectMode&&(W=new TypeError("Invalid non-string/buffer chunk")),W&&(x.emit("error",W),_.nextTick(I,W),P=!1),P}e.prototype.write=function(x,w,R){var I=this._writableState,P=!1,W=!I.objectMode&&a(x);return W&&!S.isBuffer(x)&&(x=B(x)),typeof w=="function"&&(R=w,w=null),W?w="buffer":w||(w=I.defaultEncoding),typeof R!="function"&&(R=l),I.ended?r(this,R):(W||o(this,I,x,R))&&(I.pendingcb++,P=y(this,I,W,x,w,R)),P},e.prototype.cork=function(){var x=this._writableState;x.corked++},e.prototype.uncork=function(){var x=this._writableState;x.corked&&(x.corked--,!x.writing&&!x.corked&&!x.finished&&!x.bufferProcessing&&x.bufferedRequest&&V(this,x))},e.prototype.setDefaultEncoding=function(w){if(typeof w=="string"&&(w=w.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((w+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+w);return this._writableState.defaultEncoding=w,this};function p(x,w,R){return!x.objectMode&&x.decodeStrings!==!1&&typeof w=="string"&&(w=S.from(w,R)),w}Object.defineProperty(e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function y(x,w,R,I,P,W){if(!R){var $=p(w,I,P);I!==$&&(R=!0,P="buffer",I=$)}var q=w.objectMode?1:I.length;w.length+=q;var te=w.length<w.highWaterMark;if(te||(w.needDrain=!0),w.writing||w.corked){var X=w.lastBufferedRequest;w.lastBufferedRequest={chunk:I,encoding:P,isBuf:R,callback:W,next:null},X?X.next=w.lastBufferedRequest:w.bufferedRequest=w.lastBufferedRequest,w.bufferedRequestCount+=1}else L(x,w,!1,q,I,P,W);return te}function L(x,w,R,I,P,W,$){w.writelen=I,w.writecb=$,w.writing=!0,w.sync=!0,R?x._writev(P,w.onwrite):x._write(P,W,w.onwrite),w.sync=!1}function D(x,w,R,I,P){--w.pendingcb,R?(_.nextTick(P,I),_.nextTick(J,x,w),x._writableState.errorEmitted=!0,x.emit("error",I)):(P(I),x._writableState.errorEmitted=!0,x.emit("error",I),J(x,w))}function O(x){x.writing=!1,x.writecb=null,x.length-=x.writelen,x.writelen=0}function j(x,w){var R=x._writableState,I=R.sync,P=R.writecb;if(O(R),w)D(x,R,I,w,P);else{var W=k(R);!W&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest&&V(x,R),I?g(z,x,R,W,P):z(x,R,W,P)}}function z(x,w,R,I){R||K(x,w),w.pendingcb--,I(),J(x,w)}function K(x,w){w.length===0&&w.needDrain&&(w.needDrain=!1,x.emit("drain"))}function V(x,w){w.bufferProcessing=!0;var R=w.bufferedRequest;if(x._writev&&R&&R.next){var I=w.bufferedRequestCount,P=new Array(I),W=w.corkedRequestsFree;W.entry=R;for(var $=0,q=!0;R;)P[$]=R,R.isBuf||(q=!1),R=R.next,$+=1;P.allBuffers=q,L(x,w,!0,w.length,P,"",W.finish),w.pendingcb++,w.lastBufferedRequest=null,W.next?(w.corkedRequestsFree=W.next,W.next=null):w.corkedRequestsFree=new v(w),w.bufferedRequestCount=0}else{for(;R;){var te=R.chunk,X=R.encoding,t=R.callback,i=w.objectMode?1:te.length;if(L(x,w,!1,i,te,X,t),R=R.next,w.bufferedRequestCount--,w.writing)break}R===null&&(w.lastBufferedRequest=null)}w.bufferedRequest=R,w.bufferProcessing=!1}e.prototype._write=function(x,w,R){R(new Error("_write() is not implemented"))},e.prototype._writev=null,e.prototype.end=function(x,w,R){var I=this._writableState;typeof x=="function"?(R=x,x=null,w=null):typeof w=="function"&&(R=w,w=null),x!=null&&this.write(x,w),I.corked&&(I.corked=1,this.uncork()),!I.ending&&!I.finished&&G(this,I,R)};function k(x){return x.ending&&x.length===0&&x.bufferedRequest===null&&!x.finished&&!x.writing}function Y(x,w){x._final(function(R){w.pendingcb--,R&&x.emit("error",R),w.prefinished=!0,x.emit("prefinish"),J(x,w)})}function Q(x,w){!w.prefinished&&!w.finalCalled&&(typeof x._final=="function"?(w.pendingcb++,w.finalCalled=!0,_.nextTick(Y,x,w)):(w.prefinished=!0,x.emit("prefinish")))}function J(x,w){var R=k(w);return R&&(Q(x,w),w.pendingcb===0&&(w.finished=!0,x.emit("finish"))),R}function G(x,w,R){w.ending=!0,J(x,w),R&&(w.finished?_.nextTick(R):x.once("finish",R)),w.ended=!0,x.writable=!1}function re(x,w,R){var I=x.entry;for(x.entry=null;I;){var P=I.callback;w.pendingcb--,P(R),I=I.next}w.corkedRequestsFree?w.corkedRequestsFree.next=x:w.corkedRequestsFree=x}Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(x){!this._writableState||(this._writableState.destroyed=x)}}),e.prototype.destroy=s.destroy,e.prototype._undestroy=s.undestroy,e.prototype._destroy=function(x,w){this.end(),w(x)}},25057:function(A,T,f){"use strict";function b(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")}var _=f(89509).Buffer,C=f(52361);function v(g,h,c){g.copy(h,c)}A.exports=function(){function g(){b(this,g),this.head=null,this.tail=null,this.length=0}return g.prototype.push=function(c){var d={data:c,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},g.prototype.unshift=function(c){var d={data:c,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},g.prototype.shift=function(){if(this.length!==0){var c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(c){if(this.length===0)return"";for(var d=this.head,m=""+d.data;d=d.next;)m+=c+d.data;return m},g.prototype.concat=function(c){if(this.length===0)return _.alloc(0);if(this.length===1)return this.head.data;for(var d=_.allocUnsafe(c>>>0),m=this.head,S=0;m;)v(m.data,d,S),S+=m.data.length,m=m.next;return d},g}(),C&&C.inspect&&C.inspect.custom&&(A.exports.prototype[C.inspect.custom]=function(){var g=C.inspect({length:this.length});return this.constructor.name+" "+g})},61195:function(A,T,f){"use strict";var b=f(88212);function _(g,h){var c=this,d=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return d||m?(h?h(g):g&&(!this._writableState||!this._writableState.errorEmitted)&&b.nextTick(v,this,g),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(S){!h&&S?(b.nextTick(v,c,S),c._writableState&&(c._writableState.errorEmitted=!0)):h&&h(S)}),this)}function C(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(g,h){g.emit("error",h)}A.exports={destroy:_,undestroy:C}},22503:function(A,T,f){A.exports=f(17187).EventEmitter},94626:function(A,T,f){"use strict";var b=f(89509).Buffer,_=b.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function C(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function v(e){var r=C(e);if(typeof r!="string"&&(b.isEncoding===_||!_(e)))throw new Error("Unknown encoding: "+e);return r||e}T.s=g;function g(e){this.encoding=v(e);var r;switch(this.encoding){case"utf16le":this.text=B,this.end=a,r=4;break;case"utf8":this.fillLast=m,r=4;break;case"base64":this.text=s,this.end=l,r=3;break;default:this.write=n,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(r)}g.prototype.write=function(e){if(e.length===0)return"";var r,o;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o<e.length?r?r+this.text(e,o):this.text(e,o):r||""},g.prototype.end=u,g.prototype.text=S,g.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function h(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,r,o){var p=r.length-1;if(p<o)return 0;var y=h(r[p]);return y>=0?(y>0&&(e.lastNeed=y-1),y):--p<o||y===-2?0:(y=h(r[p]),y>=0?(y>0&&(e.lastNeed=y-2),y):--p<o||y===-2?0:(y=h(r[p]),y>=0?(y>0&&(y===2?y=0:e.lastNeed=y-3),y):0))}function d(e,r,o){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function m(e){var r=this.lastTotal-this.lastNeed,o=d(this,e,r);if(o!==void 0)return o;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function S(e,r){var o=c(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=o;var p=e.length-(o-this.lastNeed);return e.copy(this.lastChar,0,p),e.toString("utf8",r,p)}function u(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function B(e,r){if((e.length-r)%2===0){var o=e.toString("utf16le",r);if(o){var p=o.charCodeAt(o.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function a(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,o)}return r}function s(e,r){var o=(e.length-r)%3;return o===0?e.toString("base64",r):(this.lastNeed=3-o,this.lastTotal=3,o===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-o))}function l(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function n(e){return e.toString(this.encoding)}function E(e){return e&&e.length?this.write(e):""}},95799:function(A,T,f){A.exports=f(88473).PassThrough},88473:function(A,T,f){T=A.exports=f(79481),T.Stream=T,T.Readable=T,T.Writable=f(64229),T.Duplex=f(56753),T.Transform=f(74605),T.PassThrough=f(82725)},14219:function(A,T,f){A.exports=f(88473).Transform},84796:function(A,T,f){A.exports=f(64229)},79785:function(A,T,f){"use strict";var b=f(48764).Buffer,_=f(35717),C=f(3349),v=new Array(16),g=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],m=[0,1518500249,1859775393,2400959708,2840853838],S=[1352829926,1548603684,1836072691,2053994217,0];function u(){C.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}_(u,C),u.prototype._update=function(){for(var e=v,r=0;r<16;++r)e[r]=this._block.readInt32LE(r*4);for(var o=this._a|0,p=this._b|0,y=this._c|0,L=this._d|0,D=this._e|0,O=this._a|0,j=this._b|0,z=this._c|0,K=this._d|0,V=this._e|0,k=0;k<80;k+=1){var Y,Q;k<16?(Y=a(o,p,y,L,D,e[g[k]],m[0],c[k]),Q=E(O,j,z,K,V,e[h[k]],S[0],d[k])):k<32?(Y=s(o,p,y,L,D,e[g[k]],m[1],c[k]),Q=n(O,j,z,K,V,e[h[k]],S[1],d[k])):k<48?(Y=l(o,p,y,L,D,e[g[k]],m[2],c[k]),Q=l(O,j,z,K,V,e[h[k]],S[2],d[k])):k<64?(Y=n(o,p,y,L,D,e[g[k]],m[3],c[k]),Q=s(O,j,z,K,V,e[h[k]],S[3],d[k])):(Y=E(o,p,y,L,D,e[g[k]],m[4],c[k]),Q=a(O,j,z,K,V,e[h[k]],S[4],d[k])),o=D,D=L,L=B(y,10),y=p,p=Y,O=V,V=K,K=B(z,10),z=j,j=Q}var J=this._b+y+K|0;this._b=this._c+L+V|0,this._c=this._d+D+O|0,this._d=this._e+o+j|0,this._e=this._a+p+z|0,this._a=J},u.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=b.alloc?b.alloc(20):new b(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};function B(e,r){return e<<r|e>>>32-r}function a(e,r,o,p,y,L,D,O){return B(e+(r^o^p)+L+D|0,O)+y|0}function s(e,r,o,p,y,L,D,O){return B(e+(r&o|~r&p)+L+D|0,O)+y|0}function l(e,r,o,p,y,L,D,O){return B(e+((r|~o)^p)+L+D|0,O)+y|0}function n(e,r,o,p,y,L,D,O){return B(e+(r&p|o&~p)+L+D|0,O)+y|0}function E(e,r,o,p,y,L,D,O){return B(e+(r^(o|~p))+L+D|0,O)+y|0}A.exports=u},89509:function(A,T,f){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var b=f(48764),_=b.Buffer;function C(g,h){for(var c in g)h[c]=g[c]}_.from&&_.alloc&&_.allocUnsafe&&_.allocUnsafeSlow?A.exports=b:(C(b,T),T.Buffer=v);function v(g,h,c){return _(g,h,c)}v.prototype=Object.create(_.prototype),C(_,v),v.from=function(g,h,c){if(typeof g=="number")throw new TypeError("Argument must not be a number");return _(g,h,c)},v.alloc=function(g,h,c){if(typeof g!="number")throw new TypeError("Argument must be a number");var d=_(g);return h!==void 0?typeof c=="string"?d.fill(h,c):d.fill(h):d.fill(0),d},v.allocUnsafe=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return _(g)},v.allocUnsafeSlow=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return b.SlowBuffer(g)}},24189:function(A,T,f){var b=f(89509).Buffer;function _(C,v){this._block=b.alloc(C),this._finalSize=v,this._blockSize=C,this._len=0}_.prototype.update=function(C,v){typeof C=="string"&&(v=v||"utf8",C=b.from(C,v));for(var g=this._block,h=this._blockSize,c=C.length,d=this._len,m=0;m<c;){for(var S=d%h,u=Math.min(c-m,h-S),B=0;B<u;B++)g[S+B]=C[m+B];d+=u,m+=u,d%h===0&&this._update(g)}return this._len+=c,this},_.prototype.digest=function(C){var v=this._len%this._blockSize;this._block[v]=128,this._block.fill(0,v+1),v>=this._finalSize&&(this._update(this._block),this._block.fill(0));var g=this._len*8;if(g<=4294967295)this._block.writeUInt32BE(g,this._blockSize-4);else{var h=(g&4294967295)>>>0,c=(g-h)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(h,this._blockSize-4)}this._update(this._block);var d=this._hash();return C?d.toString(C):d},_.prototype._update=function(){throw new Error("_update must be implemented by subclass")},A.exports=_},89072:function(A,T,f){var b=A.exports=function(C){C=C.toLowerCase();var v=b[C];if(!v)throw new Error(C+" is not supported (we accept pull requests)");return new v};b.sha=f(74448),b.sha1=f(18336),b.sha224=f(48432),b.sha256=f(67499),b.sha384=f(51686),b.sha512=f(87816)},74448:function(A,T,f){var b=f(35717),_=f(24189),C=f(89509).Buffer,v=[1518500249,1859775393,-1894007588,-899497514],g=new Array(80);function h(){this.init(),this._w=g,_.call(this,64,56)}b(h,_),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function c(S){return S<<5|S>>>27}function d(S){return S<<30|S>>>2}function m(S,u,B,a){return S===0?u&B|~u&a:S===2?u&B|u&a|B&a:u^B^a}h.prototype._update=function(S){for(var u=this._w,B=this._a|0,a=this._b|0,s=this._c|0,l=this._d|0,n=this._e|0,E=0;E<16;++E)u[E]=S.readInt32BE(E*4);for(;E<80;++E)u[E]=u[E-3]^u[E-8]^u[E-14]^u[E-16];for(var e=0;e<80;++e){var r=~~(e/20),o=c(B)+m(r,a,s,l)+n+u[e]+v[r]|0;n=l,l=s,s=d(a),a=B,B=o}this._a=B+this._a|0,this._b=a+this._b|0,this._c=s+this._c|0,this._d=l+this._d|0,this._e=n+this._e|0},h.prototype._hash=function(){var S=C.allocUnsafe(20);return S.writeInt32BE(this._a|0,0),S.writeInt32BE(this._b|0,4),S.writeInt32BE(this._c|0,8),S.writeInt32BE(this._d|0,12),S.writeInt32BE(this._e|0,16),S},A.exports=h},18336:function(A,T,f){var b=f(35717),_=f(24189),C=f(89509).Buffer,v=[1518500249,1859775393,-1894007588,-899497514],g=new Array(80);function h(){this.init(),this._w=g,_.call(this,64,56)}b(h,_),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function c(u){return u<<1|u>>>31}function d(u){return u<<5|u>>>27}function m(u){return u<<30|u>>>2}function S(u,B,a,s){return u===0?B&a|~B&s:u===2?B&a|B&s|a&s:B^a^s}h.prototype._update=function(u){for(var B=this._w,a=this._a|0,s=this._b|0,l=this._c|0,n=this._d|0,E=this._e|0,e=0;e<16;++e)B[e]=u.readInt32BE(e*4);for(;e<80;++e)B[e]=c(B[e-3]^B[e-8]^B[e-14]^B[e-16]);for(var r=0;r<80;++r){var o=~~(r/20),p=d(a)+S(o,s,l,n)+E+B[r]+v[o]|0;E=n,n=l,l=m(s),s=a,a=p}this._a=a+this._a|0,this._b=s+this._b|0,this._c=l+this._c|0,this._d=n+this._d|0,this._e=E+this._e|0},h.prototype._hash=function(){var u=C.allocUnsafe(20);return u.writeInt32BE(this._a|0,0),u.writeInt32BE(this._b|0,4),u.writeInt32BE(this._c|0,8),u.writeInt32BE(this._d|0,12),u.writeInt32BE(this._e|0,16),u},A.exports=h},48432:function(A,T,f){var b=f(35717),_=f(67499),C=f(24189),v=f(89509).Buffer,g=new Array(64);function h(){this.init(),this._w=g,C.call(this,64,56)}b(h,_),h.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},h.prototype._hash=function(){var c=v.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},A.exports=h},67499:function(A,T,f){var b=f(35717),_=f(24189),C=f(89509).Buffer,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],g=new Array(64);function h(){this.init(),this._w=g,_.call(this,64,56)}b(h,_),h.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function c(a,s,l){return l^a&(s^l)}function d(a,s,l){return a&s|l&(a|s)}function m(a){return(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10)}function S(a){return(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7)}function u(a){return(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3}function B(a){return(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10}h.prototype._update=function(a){for(var s=this._w,l=this._a|0,n=this._b|0,E=this._c|0,e=this._d|0,r=this._e|0,o=this._f|0,p=this._g|0,y=this._h|0,L=0;L<16;++L)s[L]=a.readInt32BE(L*4);for(;L<64;++L)s[L]=B(s[L-2])+s[L-7]+u(s[L-15])+s[L-16]|0;for(var D=0;D<64;++D){var O=y+S(r)+c(r,o,p)+v[D]+s[D]|0,j=m(l)+d(l,n,E)|0;y=p,p=o,o=r,r=e+O|0,e=E,E=n,n=l,l=O+j|0}this._a=l+this._a|0,this._b=n+this._b|0,this._c=E+this._c|0,this._d=e+this._d|0,this._e=r+this._e|0,this._f=o+this._f|0,this._g=p+this._g|0,this._h=y+this._h|0},h.prototype._hash=function(){var a=C.allocUnsafe(32);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a.writeInt32BE(this._h,28),a},A.exports=h},51686:function(A,T,f){var b=f(35717),_=f(87816),C=f(24189),v=f(89509).Buffer,g=new Array(160);function h(){this.init(),this._w=g,C.call(this,128,112)}b(h,_),h.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},h.prototype._hash=function(){var c=v.allocUnsafe(48);function d(m,S,u){c.writeInt32BE(m,u),c.writeInt32BE(S,u+4)}return d(this._ah,this._al,0),d(this._bh,this._bl,8),d(this._ch,this._cl,16),d(this._dh,this._dl,24),d(this._eh,this._el,32),d(this._fh,this._fl,40),c},A.exports=h},87816:function(A,T,f){var b=f(35717),_=f(24189),C=f(89509).Buffer,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],g=new Array(160);function h(){this.init(),this._w=g,_.call(this,128,112)}b(h,_),h.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function c(n,E,e){return e^n&(E^e)}function d(n,E,e){return n&E|e&(n|E)}function m(n,E){return(n>>>28|E<<4)^(E>>>2|n<<30)^(E>>>7|n<<25)}function S(n,E){return(n>>>14|E<<18)^(n>>>18|E<<14)^(E>>>9|n<<23)}function u(n,E){return(n>>>1|E<<31)^(n>>>8|E<<24)^n>>>7}function B(n,E){return(n>>>1|E<<31)^(n>>>8|E<<24)^(n>>>7|E<<25)}function a(n,E){return(n>>>19|E<<13)^(E>>>29|n<<3)^n>>>6}function s(n,E){return(n>>>19|E<<13)^(E>>>29|n<<3)^(n>>>6|E<<26)}function l(n,E){return n>>>0<E>>>0?1:0}h.prototype._update=function(n){for(var E=this._w,e=this._ah|0,r=this._bh|0,o=this._ch|0,p=this._dh|0,y=this._eh|0,L=this._fh|0,D=this._gh|0,O=this._hh|0,j=this._al|0,z=this._bl|0,K=this._cl|0,V=this._dl|0,k=this._el|0,Y=this._fl|0,Q=this._gl|0,J=this._hl|0,G=0;G<32;G+=2)E[G]=n.readInt32BE(G*4),E[G+1]=n.readInt32BE(G*4+4);for(;G<160;G+=2){var re=E[G-30],x=E[G-15*2+1],w=u(re,x),R=B(x,re);re=E[G-2*2],x=E[G-2*2+1];var I=a(re,x),P=s(x,re),W=E[G-7*2],$=E[G-7*2+1],q=E[G-16*2],te=E[G-16*2+1],X=R+$|0,t=w+W+l(X,R)|0;X=X+P|0,t=t+I+l(X,P)|0,X=X+te|0,t=t+q+l(X,te)|0,E[G]=t,E[G+1]=X}for(var i=0;i<160;i+=2){t=E[i],X=E[i+1];var M=d(e,r,o),N=d(j,z,K),H=m(e,j),F=m(j,e),U=S(y,k),ne=S(k,y),fe=v[i],oe=v[i+1],ce=c(y,L,D),ie=c(k,Y,Q),Z=J+ne|0,ee=O+U+l(Z,J)|0;Z=Z+ie|0,ee=ee+ce+l(Z,ie)|0,Z=Z+oe|0,ee=ee+fe+l(Z,oe)|0,Z=Z+X|0,ee=ee+t+l(Z,X)|0;var se=F+N|0,he=H+M+l(se,F)|0;O=D,J=Q,D=L,Q=Y,L=y,Y=k,k=V+Z|0,y=p+ee+l(k,V)|0,p=o,V=K,o=r,K=z,r=e,z=j,j=Z+se|0,e=ee+he+l(j,Z)|0}this._al=this._al+j|0,this._bl=this._bl+z|0,this._cl=this._cl+K|0,this._dl=this._dl+V|0,this._el=this._el+k|0,this._fl=this._fl+Y|0,this._gl=this._gl+Q|0,this._hl=this._hl+J|0,this._ah=this._ah+e+l(this._al,j)|0,this._bh=this._bh+r+l(this._bl,z)|0,this._ch=this._ch+o+l(this._cl,K)|0,this._dh=this._dh+p+l(this._dl,V)|0,this._eh=this._eh+y+l(this._el,k)|0,this._fh=this._fh+L+l(this._fl,Y)|0,this._gh=this._gh+D+l(this._gl,Q)|0,this._hh=this._hh+O+l(this._hl,J)|0},h.prototype._hash=function(){var n=C.allocUnsafe(64);function E(e,r,o){n.writeInt32BE(e,o),n.writeInt32BE(r,o+4)}return E(this._ah,this._al,0),E(this._bh,this._bl,8),E(this._ch,this._cl,16),E(this._dh,this._dl,24),E(this._eh,this._el,32),E(this._fh,this._fl,40),E(this._gh,this._gl,48),E(this._hh,this._hl,56),n},A.exports=h},42830:function(A,T,f){A.exports=C;var b=f(17187).EventEmitter,_=f(35717);_(C,b),C.Readable=f(88473),C.Writable=f(84796),C.Duplex=f(20074),C.Transform=f(14219),C.PassThrough=f(95799),C.Stream=C;function C(){b.call(this)}C.prototype.pipe=function(v,g){var h=this;function c(s){v.writable&&v.write(s)===!1&&h.pause&&h.pause()}h.on("data",c);function d(){h.readable&&h.resume&&h.resume()}v.on("drain",d),!v._isStdio&&(!g||g.end!==!1)&&(h.on("end",S),h.on("close",u));var m=!1;function S(){m||(m=!0,v.end())}function u(){m||(m=!0,typeof v.destroy=="function"&&v.destroy())}function B(s){if(a(),b.listenerCount(this,"error")===0)throw s}h.on("error",B),v.on("error",B);function a(){h.removeListener("data",c),v.removeListener("drain",d),h.removeListener("end",S),h.removeListener("close",u),h.removeListener("error",B),v.removeListener("error",B),h.removeListener("end",a),h.removeListener("close",a),v.removeListener("close",a)}return h.on("end",a),h.on("close",a),v.on("close",a),v.emit("pipe",h),v}},32553:function(A,T,f){"use strict";var b=f(89509).Buffer,_=b.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function C(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function v(e){var r=C(e);if(typeof r!="string"&&(b.isEncoding===_||!_(e)))throw new Error("Unknown encoding: "+e);return r||e}T.s=g;function g(e){this.encoding=v(e);var r;switch(this.encoding){case"utf16le":this.text=B,this.end=a,r=4;break;case"utf8":this.fillLast=m,r=4;break;case"base64":this.text=s,this.end=l,r=3;break;default:this.write=n,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(r)}g.prototype.write=function(e){if(e.length===0)return"";var r,o;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o<e.length?r?r+this.text(e,o):this.text(e,o):r||""},g.prototype.end=u,g.prototype.text=S,g.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function h(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,r,o){var p=r.length-1;if(p<o)return 0;var y=h(r[p]);return y>=0?(y>0&&(e.lastNeed=y-1),y):--p<o||y===-2?0:(y=h(r[p]),y>=0?(y>0&&(e.lastNeed=y-2),y):--p<o||y===-2?0:(y=h(r[p]),y>=0?(y>0&&(y===2?y=0:e.lastNeed=y-3),y):0))}function d(e,r,o){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function m(e){var r=this.lastTotal-this.lastNeed,o=d(this,e,r);if(o!==void 0)return o;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function S(e,r){var o=c(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=o;var p=e.length-(o-this.lastNeed);return e.copy(this.lastChar,0,p),e.toString("utf8",r,p)}function u(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function B(e,r){if((e.length-r)%2===0){var o=e.toString("utf16le",r);if(o){var p=o.charCodeAt(o.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function a(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,o)}return r}function s(e,r){var o=(e.length-r)%3;return o===0?e.toString("base64",r):(this.lastNeed=3-o,this.lastTotal=3,o===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-o))}function l(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function n(e){return e.toString(this.encoding)}function E(e){return e&&e.length?this.write(e):""}},94927:function(A,T,f){A.exports=b;function b(C,v){if(_("noDeprecation"))return C;var g=!1;function h(){if(!g){if(_("throwDeprecation"))throw new Error(v);_("traceDeprecation")?console.trace(v):console.warn(v),g=!0}return C.apply(this,arguments)}return h}function _(C){try{if(!f.g.localStorage)return!1}catch{return!1}var v=f.g.localStorage[C];return v==null?!1:String(v).toLowerCase()==="true"}}}]);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[2896],{51124:function(N,z,d){"use strict";d.d(z,{_B:function(){return k}});var a=d(15179),S=d(13550),j=d.n(S),E=function(r,t){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},E(r,t)};function Q(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");E(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var D=function(){return D=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},D.apply(this,arguments)};function H(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(e[n[o]]=r[n[o]]);return e}function l(r,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,n);else for(var u=r.length-1;u>=0;u--)(s=r[u])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}function J(r,t){return function(e,n){t(e,n,r)}}function L(r,t,e,n,o,i){function s(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var u=n.kind,p=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&r?n.static?r:r.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),y,_=!1,m=e.length-1;m>=0;m--){var v={};for(var g in n)v[g]=g==="access"?{}:n[g];for(var g in n.access)v.access[g]=n.access[g];v.addInitializer=function(x){if(_)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(x||null))};var U=(0,e[m])(u==="accessor"?{get:f.get,set:f.set}:f[p],v);if(u==="accessor"){if(U===void 0)continue;if(U===null||typeof U!="object")throw new TypeError("Object expected");(y=s(U.get))&&(f.get=y),(y=s(U.set))&&(f.set=y),(y=s(U.init))&&o.push(y)}else(y=s(U))&&(u==="field"?o.push(y):f[p]=y)}c&&Object.defineProperty(c,n.name,f),_=!0}function W(r,t,e){for(var n=arguments.length>2,o=0;o<t.length;o++)e=n?t[o].call(r,e):t[o].call(r);return n?e:void 0}function Y(r){return typeof r=="symbol"?r:"".concat(r)}function Z(r,t,e){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(r,"name",{configurable:!0,value:e?"".concat(e," ",t):t})}function $(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}function tt(r,t,e,n){function o(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=Promise))(function(i,s){function u(f){try{c(n.next(f))}catch(y){s(y)}}function p(f){try{c(n.throw(f))}catch(y){s(y)}}function c(f){f.done?i(f.value):o(f.value).then(u,p)}c((n=n.apply(r,t||[])).next())})}function et(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return p([c,f])}}function p(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(e=0)),e;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,o=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1],i=c;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(c);break}i[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(r,e)}catch(f){c=[6,f],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var C=Object.create?function(r,t,e,n){n===void 0&&(n=e);var o=Object.getOwnPropertyDescriptor(t,e);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(r,n,o)}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]};function rt(r,t){for(var e in r)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&C(t,r,e)}function I(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(s)throw s.error}}return i}function nt(){for(var r=[],t=0;t<arguments.length;t++)r=r.concat(G(arguments[t]));return r}function it(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var n=Array(r),o=0,t=0;t<e;t++)for(var i=arguments[t],s=0,u=i.length;s<u;s++,o++)n[o]=i[s];return n}function ot(r,t,e){if(e||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return r.concat(i||Array.prototype.slice.call(t))}function M(r){return this instanceof M?(this.v=r,this):new M(r)}function at(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(_){n[_]&&(o[_]=function(m){return new Promise(function(v,g){i.push([_,m,v,g])>1||u(_,m)})})}function u(_,m){try{p(n[_](m))}catch(v){y(i[0][3],v)}}function p(_){_.value instanceof M?Promise.resolve(_.value.v).then(c,f):y(i[0][2],_)}function c(_){u("next",_)}function f(_){u("throw",_)}function y(_,m){_(m),i.shift(),i.length&&u(i[0][0],i[0][1])}}function st(r){var t,e;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=r[o]?function(s){return(e=!e)?{value:M(r[o](s)),done:!1}:i?i(s):s}:i}}function ct(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof I=="function"?I(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=r[i]&&function(s){return new Promise(function(u,p){s=r[i](s),o(u,p,s.done,s.value)})}}function o(i,s,u,p){Promise.resolve(p).then(function(c){i({value:c,done:u})},s)}}function ut(r,t){return Object.defineProperty?Object.defineProperty(r,"raw",{value:t}):r.raw=t,r}var X=Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t};function lt(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&C(t,r,e);return X(t,r),t}function pt(r){return r&&r.__esModule?r:{default:r}}function ft(r,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!n:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(r):n?n.value:t.get(r)}function _t(r,t,e,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?r!==t||!o:!t.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,e):o?o.value=e:t.set(r,e),e}function ht(r,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r=="function"?t===r:r.has(t)}/**
|
|
2
|
+
* @greymass/eosio-resources v0.7.0
|
|
3
|
+
* https://github.com/greymass/eosio-resources
|
|
4
|
+
*
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright (c) 2021 Greymass Inc. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
9
|
+
* are permitted provided that the following conditions are met:
|
|
10
|
+
*
|
|
11
|
+
* 1. Redistribution of source code must retain the above copyright notice, this
|
|
12
|
+
* list of conditions and the following disclaimer.
|
|
13
|
+
*
|
|
14
|
+
* 2. Redistribution in binary form must reproduce the above copyright notice,
|
|
15
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
16
|
+
* and/or other materials provided with the distribution.
|
|
17
|
+
*
|
|
18
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
19
|
+
* may be used to endorse or promote products derived from this software without
|
|
20
|
+
* specific prior written permission.
|
|
21
|
+
*
|
|
22
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
23
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
24
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
25
|
+
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
26
|
+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
27
|
+
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
28
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
29
|
+
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
30
|
+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
31
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32
|
+
*
|
|
33
|
+
* YOU ACKNOWLEDGE THAT THIS SOFTWARE IS NOT DESIGNED, LICENSED OR INTENDED FOR USE
|
|
34
|
+
* IN THE DESIGN, CONSTRUCTION, OPERATION OR MAINTENANCE OF ANY MILITARY FACILITY.
|
|
35
|
+
*/class h extends a.AU{constructor(){super(...arguments),this.default_block_cpu_limit=a.zM.from(2e5),this.default_block_net_limit=a.zM.from(1048576e3)}get allocated(){return 1-Number(this.weight_ratio)/Number(this.target_weight_ratio)/100}get reserved(){return Number(this.utilization)/Number(this.weight)}get symbol(){return this.min_price.symbol}cast(){return{adjusted_utilization:Number(this.adjusted_utilization),decay_secs:Number(this.decay_secs.value),exponent:Number(this.exponent),utilization:Number(this.utilization),utilization_timestamp:Number(this.utilization_timestamp.value),weight:Number(this.weight),weight_ratio:Number(this.weight_ratio)}}utilization_increase(t,e){const{weight:n}=this,o=a.pB.from(e),i=new(j())(n.value.mul(new(j())(o.value)))/Math.pow(10,15);return Math.ceil(i)}price_function(t){const{exponent:e,weight:n}=this.cast(),o=this.max_price.value,i=this.min_price.value;let s=i;const u=e-1;return u<=0?o:(s+=(o-i)*Math.pow(t/n,u),s)}price_integral_delta(t,e){const{exponent:n,weight:o}=this.cast(),i=this.max_price.value,s=this.min_price.value,u=(i-s)/n,p=t/o,c=e/o;return s*c-s*p+u*Math.pow(c,n)-u*Math.pow(p,n)}fee(t,e){const{utilization:n,weight:o}=this.cast();let i=n;const s=i+t;let u=0;return i<e&&(u+=this.price_function(e)*Math.min(t,e-i)/o,i=e),i<s&&(u+=this.price_integral_delta(i,s)),u}determine_adjusted_utilization(t){const{decay_secs:e,utilization:n,utilization_timestamp:o}=this.cast();let{adjusted_utilization:i}=this.cast();if(n<i){const s=t&&t.timestamp?t.timestamp:new Date,u=a.AQ.from(s).toMilliseconds()/1e3,p=i-n;let c=p*Math.exp(-(u-o)/e);c=Math.min(Math.max(c,0),p),i=n+c}return i}}l([a.AU.field("uint8")],h.prototype,"version",void 0),l([a.AU.field("int64")],h.prototype,"weight",void 0),l([a.AU.field("int64")],h.prototype,"weight_ratio",void 0),l([a.AU.field("int64")],h.prototype,"assumed_stake_weight",void 0),l([a.AU.field("int64")],h.prototype,"initial_weight_ratio",void 0),l([a.AU.field("int64")],h.prototype,"target_weight_ratio",void 0),l([a.AU.field("time_point_sec")],h.prototype,"initial_timestamp",void 0),l([a.AU.field("time_point_sec")],h.prototype,"target_timestamp",void 0),l([a.AU.field("float64")],h.prototype,"exponent",void 0),l([a.AU.field("uint32")],h.prototype,"decay_secs",void 0),l([a.AU.field("asset")],h.prototype,"min_price",void 0),l([a.AU.field("asset")],h.prototype,"max_price",void 0),l([a.AU.field("int64")],h.prototype,"utilization",void 0),l([a.AU.field("int64")],h.prototype,"adjusted_utilization",void 0),l([a.AU.field("time_point_sec")],h.prototype,"utilization_timestamp",void 0);let R=class extends h{constructor(){super(...arguments),this.per_day=t=>this.us_per_day(t),this.frac=(t,e)=>this.frac_by_us(t,e),this.frac_by_ms=(t,e)=>this.frac_by_us(t,e*1e3),this.price_per=(t,e=1e3,n)=>this.price_per_us(t,e,n),this.price_per_ms=(t,e=1,n)=>this.price_per_us(t,e*1e3,n)}ms_per_day(t){return this.us_per_day(t)/1e3}us_per_day(t){const e=t&&t.virtual_block_cpu_limit?t.virtual_block_cpu_limit:this.default_block_cpu_limit;return Number(e)*2*60*60*24}weight_to_us(t,e){return Math.ceil(e*Number(t)/A)}us_to_weight(t,e){return Math.floor(e/Number(t)*A)}frac_by_us(t,e){const{weight:n}=this.cast(),o=this.us_to_weight(t.cpu,e)/n;return Math.floor(o*Math.pow(10,15))}price_per_us(t,e=1e3,n){const o=a.pB.from(this.frac(t,e)),i=this.utilization_increase(t.cpu,o),s=this.determine_adjusted_utilization(n),u=this.fee(i,s),p=Math.pow(10,4);return Math.ceil(u*p)/p}};R=l([a.AU.type("powerupstateresourcecpu")],R);let T=class extends h{constructor(){super(...arguments),this.per_day=t=>this.bytes_per_day(t),this.frac=(t,e)=>this.frac_by_bytes(t,e),this.frac_by_kb=(t,e)=>this.frac_by_bytes(t,e*1e3),this.price_per=(t,e=1e3,n)=>this.price_per_byte(t,e,n),this.price_per_kb=(t,e=1,n)=>this.price_per_byte(t,e*1e3,n)}kb_per_day(t){return this.bytes_per_day(t)/1e3}bytes_per_day(t){const e=t&&t.virtual_block_net_limit?t.virtual_block_net_limit:this.default_block_net_limit;return Number(e)*2*60*60*24}weight_to_bytes(t,e){return Math.ceil(e*Number(t)/A)}bytes_to_weight(t,e){return Math.floor(e/Number(t)*A)}frac_by_bytes(t,e){const{weight:n}=this.cast(),o=this.bytes_to_weight(t.net,e)/n;return Math.floor(o*Math.pow(10,15))}price_per_byte(t,e=1e3,n){const o=a.pB.from(this.frac(t,e)),i=this.utilization_increase(t.net,o),s=this.determine_adjusted_utilization(n),u=this.fee(i,s),p=Math.pow(10,4);return Math.ceil(u*p)/p}};T=l([a.AU.type("powerupstateresourcenet")],T);let w=class extends a.AU{};l([a.AU.field("uint8")],w.prototype,"version",void 0),l([a.AU.field(T)],w.prototype,"net",void 0),l([a.AU.field(R)],w.prototype,"cpu",void 0),l([a.AU.field("uint32")],w.prototype,"powerup_days",void 0),l([a.AU.field("asset")],w.prototype,"min_powerup_fee",void 0),w=l([a.AU.type("powerupstate")],w);class V{constructor(t){this.parent=t}async get_state(){return(await this.parent.api.v1.chain.get_table_rows({code:"eosio",scope:"",table:"powup.state",type:w})).rows[0]}}let O=class extends a.AU{};l([a.AU.field("asset")],O.prototype,"balance",void 0),l([a.AU.field("float64")],O.prototype,"weight",void 0),O=l([a.AU.type("connector")],O);let P=class extends a.AU{};l([a.AU.field("asset")],P.prototype,"supply",void 0),l([a.AU.field(O)],P.prototype,"base",void 0),l([a.AU.field(O)],P.prototype,"quote",void 0),P=l([a.AU.type("exchange_state")],P);let B=class extends P{price_per(t){const e=this.base.balance.units.toNumber(),n=this.quote.balance.value;return this.get_input(e,n,t)}price_per_kb(t){return this.price_per(t*1e3)}get_input(t,e,n){const o=e*n/(t-n);return o<0?0:o}};B=l([a.AU.type("ramstate")],B);class q{constructor(t){this.parent=t}async get_state(){return(await this.parent.api.v1.chain.get_table_rows({code:"eosio",scope:"eosio",table:"rammarket",type:B})).rows[0]}}let b=class extends a.AU{get reserved(){return Number(this.total_lent.units)/Number(this.total_lendable.units)}get symbol(){return this.total_lent.symbol}get precision(){return this.total_lent.symbol.precision}get value(){const t=10**this.total_unlent.symbol.precision;return Number(this.total_lent.units.adding(this.total_unlent.units).dividing(this.total_rex.units.dividing(t)))/t}price_per(t,e=1e3){const n=a.xR.fromUnits(1e4,this.symbol),i=Number(n.units)/(this.total_rent.value/this.total_unlent.value)*(Number(t.cpu)/A);return Number(n.units)/i*e/Math.pow(10,this.precision)}};l([a.AU.field("uint8")],b.prototype,"version",void 0),l([a.AU.field("asset")],b.prototype,"total_lent",void 0),l([a.AU.field("asset")],b.prototype,"total_unlent",void 0),l([a.AU.field("asset")],b.prototype,"total_rent",void 0),l([a.AU.field("asset")],b.prototype,"total_lendable",void 0),l([a.AU.field("asset")],b.prototype,"total_rex",void 0),l([a.AU.field("asset")],b.prototype,"namebid_proceeds",void 0),l([a.AU.field("uint64")],b.prototype,"loan_num",void 0),b=l([a.AU.type("rexstate")],b);class K{constructor(t){this.parent=t}async get_state(){return(await this.parent.api.v1.chain.get_table_rows({code:"eosio",scope:"eosio",table:"rexpool",type:b})).rows[0]}}const A=new(j())(1e3*1e3);class k{constructor(t){if(this.sampleAccount="b1",this.symbol="4,EOS",this.v1={powerup:new V(this),ram:new q(this),rex:new K(this)},t.sampleAccount&&(this.sampleAccount=t.sampleAccount),t.symbol&&(this.symbol=t.symbol),t.api)this.api=t.api;else if(t.url)this.api=new a.lP({provider:new a.c6(t.url,t)});else throw new Error("Missing url or api client")}async getSampledUsage(){const t=await this.api.v1.chain.get_account(this.sampleAccount),e=a.pB.from(t.cpu_limit.max.value.mul(A)),n=a.pB.from(t.net_limit.max.value.mul(A)),o=a.pB.from(t.cpu_weight.value),i=a.pB.from(t.net_weight.value);return{account:t,cpu:F(e.value,o.value),net:F(n.value,i.value)}}}k.__className="Resources";function F(r,t){let e=r.div(t);const n=new(j())(0),o=new(j())(1);return r.mod(t).gt(n)&&(e=e.sub(o)),a.pB.from(e)}},35717:function(N){typeof Object.create=="function"?N.exports=function(d,a){a&&(d.super_=a,d.prototype=Object.create(a.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:N.exports=function(d,a){if(a){d.super_=a;var S=function(){};S.prototype=a.prototype,d.prototype=new S,d.prototype.constructor=d}}}}]);
|