viz-js-lib 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/viz.min.js CHANGED
@@ -31,4 +31,4 @@
31
31
  * Released under the Apache License, Version 2.0
32
32
  * see: https://github.com/dcodeIO/long.js for details
33
33
  */
34
- !function(a,s){r(231).amd?(i=[],void 0===(o="function"==typeof(n=s)?n.apply(e,i):n)||(t.exports=o)):"object"==typeof t&&t&&t.exports?t.exports=s():(a.dcodeIO=a.dcodeIO||{}).Long=s()}(this,function(){"use strict";function t(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function e(t){return!0===(t&&t.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var r={},n={};function i(t,e){var i,o,s;return e?(s=0<=(t>>>=0)&&t<256)&&(o=n[t])?o:(i=a(t,(0|t)<0?-1:0,!0),s&&(n[t]=i),i):(s=-128<=(t|=0)&&t<128)&&(o=r[t])?o:(i=a(t,t<0?-1:0,!1),s&&(r[t]=i),i)}function o(t,e){if(isNaN(t)||!isFinite(t))return e?_:d;if(e){if(t<0)return _;if(t>=l)return b}else{if(t<=-h)return w;if(t+1>=h)return m}return t<0?o(-t,e).neg():a(t%c|0,t/c|0,e)}function a(e,r,n){return new t(e,r,n)}t.fromInt=i,t.fromNumber=o,t.fromBits=a;var s=Math.pow;function u(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return d;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return u(t.substring(1),e,r).neg();for(var i=o(s(r,8)),a=d,f=0;f<t.length;f+=8){var c=Math.min(8,t.length-f),l=parseInt(t.substring(f,f+c),r);if(c<8){var h=o(s(r,c));a=a.mul(h).add(o(l))}else a=(a=a.mul(i)).add(o(l))}return a.unsigned=e,a}function f(e){return e instanceof t?e:"number"==typeof e?o(e):"string"==typeof e?u(e):a(e.low,e.high,e.unsigned)}t.fromString=u,t.fromValue=f;var c=4294967296,l=c*c,h=l/2,p=i(1<<24),d=i(0);t.ZERO=d;var _=i(0,!0);t.UZERO=_;var v=i(1);t.ONE=v;var y=i(1,!0);t.UONE=y;var g=i(-1);t.NEG_ONE=g;var m=a(-1,2147483647,!1);t.MAX_VALUE=m;var b=a(-1,-1,!0);t.MAX_UNSIGNED_VALUE=b;var w=a(0,-2147483648,!1);t.MIN_VALUE=w;var E=t.prototype;return E.toInt=function(){return this.unsigned?this.low>>>0:this.low},E.toNumber=function(){return this.unsigned?(this.high>>>0)*c+(this.low>>>0):this.high*c+(this.low>>>0)},E.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(w)){var e=o(t),r=this.div(e),n=r.mul(e).sub(this);return r.toString(t)+n.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var i=o(s(t,6),this.unsigned),a=this,u="";;){var f=a.div(i),c=(a.sub(f.mul(i)).toInt()>>>0).toString(t);if((a=f).isZero())return c+u;for(;c.length<6;)c="0"+c;u=""+c+u}},E.getHighBits=function(){return this.high},E.getHighBitsUnsigned=function(){return this.high>>>0},E.getLowBits=function(){return this.low},E.getLowBitsUnsigned=function(){return this.low>>>0},E.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<<e);e--);return 0!=this.high?e+33:e+1},E.isZero=function(){return 0===this.high&&0===this.low},E.isNegative=function(){return!this.unsigned&&this.high<0},E.isPositive=function(){return this.unsigned||this.high>=0},E.isOdd=function(){return 1==(1&this.low)},E.isEven=function(){return 0==(1&this.low)},E.equals=function(t){return e(t)||(t=f(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},E.eq=E.equals,E.notEquals=function(t){return!this.eq(t)},E.neq=E.notEquals,E.lessThan=function(t){return this.comp(t)<0},E.lt=E.lessThan,E.lessThanOrEqual=function(t){return this.comp(t)<=0},E.lte=E.lessThanOrEqual,E.greaterThan=function(t){return this.comp(t)>0},E.gt=E.greaterThan,E.greaterThanOrEqual=function(t){return this.comp(t)>=0},E.gte=E.greaterThanOrEqual,E.compare=function(t){if(e(t)||(t=f(t)),this.eq(t))return 0;var r=this.isNegative(),n=t.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},E.comp=E.compare,E.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(v)},E.neg=E.negate,E.add=function(t){e(t)||(t=f(t));var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,s=t.high>>>16,u=65535&t.high,c=t.low>>>16,l=0,h=0,p=0,d=0;return p+=(d+=o+(65535&t.low))>>>16,h+=(p+=i+c)>>>16,l+=(h+=n+u)>>>16,l+=r+s,a((p&=65535)<<16|(d&=65535),(l&=65535)<<16|(h&=65535),this.unsigned)},E.subtract=function(t){return e(t)||(t=f(t)),this.add(t.neg())},E.sub=E.subtract,E.multiply=function(t){if(this.isZero())return d;if(e(t)||(t=f(t)),t.isZero())return d;if(this.eq(w))return t.isOdd()?w:d;if(t.eq(w))return this.isOdd()?w:d;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(p)&&t.lt(p))return o(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,u=t.high>>>16,c=65535&t.high,l=t.low>>>16,h=65535&t.low,_=0,v=0,y=0,g=0;return y+=(g+=s*h)>>>16,v+=(y+=i*h)>>>16,y&=65535,v+=(y+=s*l)>>>16,_+=(v+=n*h)>>>16,v&=65535,_+=(v+=i*l)>>>16,v&=65535,_+=(v+=s*c)>>>16,_+=r*h+n*l+i*c+s*u,a((y&=65535)<<16|(g&=65535),(_&=65535)<<16|(v&=65535),this.unsigned)},E.mul=E.multiply,E.divide=function(t){if(e(t)||(t=f(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?_:d;var r,n,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return _;if(t.gt(this.shru(1)))return y;i=_}else{if(this.eq(w))return t.eq(v)||t.eq(g)?w:t.eq(w)?v:(r=this.shr(1).div(t).shl(1)).eq(d)?t.isNegative()?v:g:(n=this.sub(t.mul(r)),i=r.add(n.div(t)));else if(t.eq(w))return this.unsigned?_:d;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=d}for(n=this;n.gte(t);){r=Math.max(1,Math.floor(n.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),u=a<=48?1:s(2,a-48),c=o(r),l=c.mul(t);l.isNegative()||l.gt(n);)l=(c=o(r-=u,this.unsigned)).mul(t);c.isZero()&&(c=v),i=i.add(c),n=n.sub(l)}return i},E.div=E.divide,E.modulo=function(t){return e(t)||(t=f(t)),this.sub(this.div(t).mul(t))},E.mod=E.modulo,E.not=function(){return a(~this.low,~this.high,this.unsigned)},E.and=function(t){return e(t)||(t=f(t)),a(this.low&t.low,this.high&t.high,this.unsigned)},E.or=function(t){return e(t)||(t=f(t)),a(this.low|t.low,this.high|t.high,this.unsigned)},E.xor=function(t){return e(t)||(t=f(t)),a(this.low^t.low,this.high^t.high,this.unsigned)},E.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):a(0,this.low<<t-32,this.unsigned)},E.shl=E.shiftLeft,E.shiftRight=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):a(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},E.shr=E.shiftRight,E.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0===(t&=63))return this;var r=this.high;return t<32?a(this.low>>>t|r<<32-t,r>>>t,this.unsigned):a(32===t?r:r>>>t-32,0,this.unsigned)},E.shru=E.shiftRightUnsigned,E.toSigned=function(){return this.unsigned?a(this.low,this.high,!1):this},E.toUnsigned=function(){return this.unsigned?this:a(this.low,this.high,!0)},E.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},E.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},E.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t})}).call(e,r(102)(t))},function(t,e,r){var n=r(234);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv;var i=r(249);e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv;var o=r(236);e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},function(t,e,r){(function(t){var n=r(235),i=r(222),o=r(187),a=r(236),s=r(237),u=r(238),f=r(239);function c(e,r,o){if(!(this instanceof c))return new c(e,r,o);i.call(this),this._cache=new l,this._cipher=new n.AES(r),this._prev=new t(o.length),o.copy(this._prev),this._mode=e,this._autopadding=!0}function l(){if(!(this instanceof l))return new l;this.cache=new t("")}o(c,i),c.prototype._update=function(e){var r,n;this._cache.add(e);for(var i=[];r=this._cache.get();)n=this._mode.encrypt(this,r),i.push(n);return t.concat(i)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if("10101010101010101010101010101010"!==t.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(e){this.cache=t.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,r=new t(e),n=-1;++n<e;)r.writeUInt8(e,n);return t.concat([this.cache,r])};var h={ECB:r(242),CBC:r(243),CFB:r(244),CFB8:r(245),CFB1:r(246),OFB:r(247),CTR:r(248),GCM:r(248)};function p(e,r,n){var i=a[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=new t(n)),"string"==typeof r&&(r=new t(r)),r.length!==i.key/8)throw new TypeError("invalid key length "+r.length);if(n.length!==i.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===i.type?new u(h[i.mode],r,n):"auth"===i.type?new f(h[i.mode],r,n):new c(h[i.mode],r,n)}e.createCipheriv=p,e.createCipher=function(t,e){var r=a[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=s(e,!1,r.key,r.iv);return p(t,n.key,n.iv)}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var r=Math.pow(2,32);function n(t){var e;return t>r||t<0?(e=Math.abs(t)%r,t<0?r-e:e):t}function i(t){for(;0<t.length;t++)t[0]=0;return!1}function o(){this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=[[],[],[],[]],this.INV_SUB_MIX=[[],[],[],[]],this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}o.prototype.init=function(){var t,e,r,n,i,o,a,s,u,f;for(t=function(){var t,r;for(r=[],e=t=0;t<256;e=++t)e<128?r.push(e<<1):r.push(e<<1^283);return r}(),i=0,u=0,e=f=0;f<256;e=++f)r=(r=u^u<<1^u<<2^u<<3^u<<4)>>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,s=t[a=t[o=t[i]]],n=257*t[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*s^65537*a^257*o^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=u=1:(i=o^t[t[t[s^o]]],u^=t[t[u]]);return!0};var a=new o;function s(t){for(var e=t.length/4,r=new Array(e),n=-1;++n<e;)r[n]=t.readUInt32BE(4*n);return r}function u(t){this._key=s(t),this._doReset()}u.blockSize=16,u.prototype.blockSize=u.blockSize,u.keySize=32,u.prototype.keySize=u.keySize,u.prototype._doReset=function(){var t,e,r,n,i,o;for(e=(r=this._key).length,this._nRounds=e+6,i=4*(this._nRounds+1),this._keySchedule=[],n=0;n<i;n++)this._keySchedule[n]=n<e?r[n]:(o=this._keySchedule[n-1],n%e==0?(o=o<<8|o>>>24,o=a.SBOX[o>>>24]<<24|a.SBOX[o>>>16&255]<<16|a.SBOX[o>>>8&255]<<8|a.SBOX[255&o],o^=a.RCON[n/e|0]<<24):e>6&&n%e==4&&(o=a.SBOX[o>>>24]<<24|a.SBOX[o>>>16&255]<<16|a.SBOX[o>>>8&255]<<8|a.SBOX[255&o]),this._keySchedule[n-e]^o);for(this._invKeySchedule=[],t=0;t<i;t++)n=i-t,o=this._keySchedule[n-(t%4?0:4)],this._invKeySchedule[t]=t<4||n<=4?o:a.INV_SUB_MIX[0][a.SBOX[o>>>24]]^a.INV_SUB_MIX[1][a.SBOX[o>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[o>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[255&o]];return!0},u.prototype.encryptBlock=function(e){e=s(new t(e));var r=this._doCryptBlock(e,this._keySchedule,a.SUB_MIX,a.SBOX),n=new t(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[1],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[3],12),n},u.prototype.decryptBlock=function(e){var r=[(e=s(new t(e)))[3],e[1]];e[1]=r[0],e[3]=r[1];var n=this._doCryptBlock(e,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX),i=new t(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},u.prototype._doCryptBlock=function(t,e,r,i){var o,a,s,u,f,c,l,h,p;a=t[0]^e[0],s=t[1]^e[1],u=t[2]^e[2],f=t[3]^e[3],o=4;for(var d=1;d<this._nRounds;d++)c=r[0][a>>>24]^r[1][s>>>16&255]^r[2][u>>>8&255]^r[3][255&f]^e[o++],l=r[0][s>>>24]^r[1][u>>>16&255]^r[2][f>>>8&255]^r[3][255&a]^e[o++],h=r[0][u>>>24]^r[1][f>>>16&255]^r[2][a>>>8&255]^r[3][255&s]^e[o++],p=r[0][f>>>24]^r[1][a>>>16&255]^r[2][s>>>8&255]^r[3][255&u]^e[o++],a=c,s=l,u=h,f=p;return c=(i[a>>>24]<<24|i[s>>>16&255]<<16|i[u>>>8&255]<<8|i[255&f])^e[o++],l=(i[s>>>24]<<24|i[u>>>16&255]<<16|i[f>>>8&255]<<8|i[255&a])^e[o++],h=(i[u>>>24]<<24|i[f>>>16&255]<<16|i[a>>>8&255]<<8|i[255&s])^e[o++],p=(i[f>>>24]<<24|i[a>>>16&255]<<16|i[s>>>8&255]<<8|i[255&u])^e[o++],[n(c),n(l),n(h),n(p)]},e.AES=u}).call(e,r(177).Buffer)},function(t,e){e["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},e["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},e["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},e["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},e["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},e["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},e.aes128=e["aes-128-cbc"],e.aes192=e["aes-192-cbc"],e.aes256=e["aes-256-cbc"],e["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},e["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},e["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},e["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},e["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},e["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},e["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},e["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},e["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},e["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},e["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},e["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},e["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},e["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},e["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},e["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},e["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},e["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},function(t,e,r){(function(e){var n=r(188);t.exports=function(t,r,i,o){e.isBuffer(t)||(t=new e(t,"binary"));r&&!e.isBuffer(r)&&(r=new e(r,"binary"));o=o||0;var a,s,u=0,f=0,c=new e(i/=8),l=new e(o),h=0,p=[];for(;;){if(h++>0&&p.push(a),p.push(t),r&&p.push(r),a=n(e.concat(p)),p=[],s=0,i>0)for(;0!==i&&s!==a.length;)c[u++]=a[s],i--,s++;if(o>0&&s!==a.length)for(;0!==o&&s!==a.length;)l[f++]=a[s],o--,s++;if(0===i&&0===o)break}for(s=0;s<a.length;s++)a[s]=0;return{key:c,iv:l}}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){var n=r(235),i=r(222);function o(t,r,a,s){if(!(this instanceof o))return new o(t,r,a);i.call(this),this._cipher=new n.AES(r),this._prev=new e(a.length),this._cache=new e(""),this._secCache=new e(""),this._decrypt=s,a.copy(this._prev),this._mode=t}r(187)(o,i),t.exports=o,o.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){var n=r(235),i=r(222),o=r(187),a=r(240),s=r(241);function u(t,r,o,s){if(!(this instanceof u))return new u(t,r,o);i.call(this),this._finID=e.concat([o,new e([0,0,0,1])]),o=e.concat([o,new e([0,0,0,2])]),this._cipher=new n.AES(r),this._prev=new e(o.length),this._cache=new e(""),this._secCache=new e(""),this._decrypt=s,this._alen=0,this._len=0,o.copy(this._prev),this._mode=t;var f=new e(4);f.fill(0),this._ghash=new a(this._cipher.encryptBlock(f)),this._authTag=null,this._called=!1}o(u,i),t.exports=u,u.prototype._update=function(t){if(!this._called&&this._alen){var r=16-this._alen%16;r<16&&((r=new e(r)).fill(0),this._ghash.update(r))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt){if(function(t,e){var r=0;t.length!==e.length&&r++;var n=Math.min(t.length,e.length),i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data")}else this._authTag=t;this._cipher.scrub()},u.prototype.getAuthTag=function(){if(!this._decrypt&&e.isBuffer(this._authTag))return this._authTag;throw new Error("Attempting to get auth tag in unsupported state")},u.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},u.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){var r=new e(16);function n(t){this.h=t,this.state=new e(16),this.state.fill(0),this.cache=new e("")}function i(t){t=t.map(a);var r=new e(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r}r.fill(0),t.exports=n,n.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},n.prototype._multiply=function(){for(var t,e,r=function(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}(this.h),n=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(n=s(n,r)),e=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,e&&(r[0]=r[0]^225<<24)}this.state=i(n)},n.prototype.update=function(t){var r;for(this.cache=e.concat([this.cache,t]);this.cache.length>=16;)r=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(r)},n.prototype.final=function(t,n){return this.cache.length&&this.ghash(e.concat([this.cache,r],16)),this.ghash(i([0,t,0,n])),this.state};var o=Math.pow(2,32);function a(t){var e;return t>o||t<0?(e=Math.abs(t)%o,t<0?o-e:e):t}function s(t,e){return[t[0]^e[0],t[1]^e[1],t[2]^e[2],t[3]^e[3]]}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}}).call(e,r(177).Buffer)},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,r){var n=r(241);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},function(t,e,r){(function(t){var n=r(241);function i(e,r,i){var o=r.length,a=n(r,e._cache);return e._cache=e._cache.slice(o),e._prev=t.concat([e._prev,i?r:a]),a}e.encrypt=function(e,r,n){for(var o,a=new t("");r.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=new t("")),!(e._cache.length<=r.length)){a=t.concat([a,i(e,r,n)]);break}o=e._cache.length,a=t.concat([a,i(e,r.slice(0,o),n)]),r=r.slice(o)}return a}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){function r(e,r,n){var i=e._cipher.encryptBlock(e._prev)[0]^r;return e._prev=t.concat([e._prev.slice(1),new t([n?r:i])]),i}e.encrypt=function(e,n,i){for(var o=n.length,a=new t(o),s=-1;++s<o;)a[s]=r(e,n[s],i);return a}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){function r(t,e,r){for(var i,o,a=-1,s=0;++a<8;)i=e&1<<7-a?128:0,s+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^i))>>a%8,t._prev=n(t._prev,r?i:o);return s}function n(e,r){var n=e.length,i=-1,o=new t(e.length);for(e=t.concat([e,new t([r])]);++i<n;)o[i]=e[i]<<1|e[i+1]>>7;return o}e.encrypt=function(e,n,i){for(var o=n.length,a=new t(o),s=-1;++s<o;)a[s]=r(e,n[s],i);return a}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var n=r(241);function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var n=r(241);function i(t){var e=t._cipher.encryptBlock(t._prev);return function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}(t._prev),e}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var n=r(235),i=r(222),o=r(187),a=r(236),s=r(238),u=r(239),f=r(237);function c(e,r,o){if(!(this instanceof c))return new c(e,r,o);i.call(this),this._cache=new l,this._last=void 0,this._cipher=new n.AES(r),this._prev=new t(o.length),o.copy(this._prev),this._mode=e,this._autopadding=!0}function l(){if(!(this instanceof l))return new l;this.cache=new t("")}o(c,i),c.prototype._update=function(e){var r,n;this._cache.add(e);for(var i=[];r=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,r),i.push(n);return t.concat(i)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15],r=-1;for(;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(e){this.cache=t.concat([this.cache,e])},l.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache};var h={ECB:r(242),CBC:r(243),CFB:r(244),CFB8:r(245),CFB1:r(246),OFB:r(247),CTR:r(248),GCM:r(248)};function p(e,r,n){var i=a[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=new t(n)),"string"==typeof r&&(r=new t(r)),r.length!==i.key/8)throw new TypeError("invalid key length "+r.length);if(n.length!==i.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===i.type?new s(h[i.mode],r,n,!0):"auth"===i.type?new u(h[i.mode],r,n,!0):new c(h[i.mode],r,n)}e.createDecipher=function(t,e){var r=a[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(e,!1,r.key,r.iv);return p(t,n.key,n.iv)},e.createDecipheriv=p}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(251),o=r(255),a=o.getCurveByName("secp256k1");i=r(251);var s=r(225),u=r(185),f=r(171),c=r(181),l=a.G,h=a.n,p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.Q=e}return n(t,[{key:"toBuffer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Q?this.Q.compressed:null;return null===this.Q?e.from("000000000000000000000000000000000000000000000000000000000000000000","hex"):this.Q.getEncoded(t)}},{key:"toUncompressed",value:function(){var e=this.Q.getEncoded(!1),r=o.Point.decodeFrom(a,e);return t.fromPoint(r)}},{key:"toBlockchainAddress",value:function(){var t=this.toBuffer(),e=u.sha512(t);return u.ripemd160(e)}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.get("address_prefix");return this.toPublicKeyString(t)}},{key:"toPublicKeyString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.get("address_prefix");if(this.pubdata)return t+this.pubdata;var r=this.toBuffer(),n=u.ripemd160(r),i=e.concat([r,n.slice(0,4)]);return this.pubdata=s.encode(i),t+this.pubdata}},{key:"toAddressString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.get("address_prefix"),r=this.toBuffer(),n=u.sha512(r),i=u.ripemd160(n),o=u.ripemd160(i);return i=e.concat([i,o.slice(0,4)]),t+s.encode(i)}},{key:"toPtsAddy",value:function(){var t=this.toBuffer(),r=u.sha256(t),n=u.ripemd160(r);n=e.concat([new e([56]),n]);var i=u.sha256(n);return i=u.sha256(i),n=e.concat([n,i.slice(0,4)]),s.encode(n)}},{key:"child",value:function(r){c(e.isBuffer(r),"Buffer required: offset"),c.equal(r.length,32,"offset length"),r=e.concat([this.toBuffer(),r]),r=u.sha256(r);var n=i.fromBuffer(r);if(n.compareTo(h)>=0)throw new Error("Child offset went out of bounds, try again");var o=l.multiply(n),s=this.Q.add(o);if(a.isInfinity(s))throw new Error("Child offset derived to an invalid key, try again");return t.fromPoint(s)}},{key:"toHex",value:function(){return this.toBuffer().toString("hex")}}],[{key:"fromBinary",value:function(r){return t.fromBuffer(new e(r,"binary"))}},{key:"fromBuffer",value:function(e){return"000000000000000000000000000000000000000000000000000000000000000000"===e.toString("hex")?new t(null):new t(o.Point.decodeFrom(a,e))}},{key:"fromPoint",value:function(e){return new t(e)}},{key:"fromString",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.get("address_prefix");try{return t.fromStringOrThrow(e,r)}catch(t){return null}}},{key:"fromStringOrThrow",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.get("address_prefix"),i=r.slice(0,n.length);c.equal(n,i,"Expecting key to begin with "+n+", instead got "+i),r=r.slice(n.length);var o=(r=new e(s.decode(r),"binary")).slice(-4);r=r.slice(0,-4);var a=u.ripemd160(r);return a=a.slice(0,4),c.deepEqual(o,a,"Checksum did not match"),t.fromBuffer(r)}},{key:"fromHex",value:function(r){return t.fromBuffer(new e(r,"hex"))}},{key:"fromStringHex",value:function(r){return t.fromString(new e(r,"hex"))}}]),t}();t.exports=p}).call(e,r(177).Buffer)},function(t,e,r){var n=r(252);r(254),t.exports=n},function(t,e,r){function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}var i=n.prototype;i.__bigi=r(253).version,n.isBigInteger=function(t,e){return t&&t.__bigi&&(!e||t.__bigi===i.__bigi)},n.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var a=e*this[t++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},n.prototype.DB=26,n.prototype.DM=67108863;var o=n.prototype.DV=1<<26;n.prototype.FV=Math.pow(2,52),n.prototype.F1=26,n.prototype.F2=0;var a,s,u="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array;for(a="0".charCodeAt(0),s=0;s<=9;++s)f[a++]=s;for(a="a".charCodeAt(0),s=10;s<36;++s)f[a++]=s;for(a="A".charCodeAt(0),s=10;s<36;++s)f[a++]=s;function c(t){return u.charAt(t)}function l(t,e){var r=f[t.charCodeAt(e)];return null==r?-1:r}function h(t){var e=new n;return e.fromInt(t),e}function p(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function d(t){this.m=t}function _(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function v(t,e){return t&e}function y(t,e){return t|e}function g(t,e){return t^e}function m(t,e){return t&~e}function b(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function w(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function E(){}function k(t){return t}function x(t){this.r2=new n,this.q3=new n,n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}d.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},d.prototype.revert=function(t){return t},d.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},d.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},_.prototype.convert=function(t){var e=new n;return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},_.prototype.revert=function(t){var e=new n;return t.copyTo(e),this.reduce(e),e},_.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},_.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},_.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},i.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},i.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+o:this.t=0},i.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&t[i]:l(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},i.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},i.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},i.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},i.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,a=Math.floor(t/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+a+1]=this[r]>>i|s,s=(this[r]&o)<<n;for(r=a-1;r>=0;--r)e[r]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},i.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)e[a-r-1]|=(this[a]&o)<<i,e[a-r]=this[a]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},i.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},i.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),o=r.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+r.t]=r.am(0,i[o],e,o,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},i.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},i.divRemTo=function(t,e,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=new n);var a=new n,s=this.s,u=t.s,f=this.DB-p(i[i.t-1]);f>0?(i.lShiftTo(f,a),o.lShiftTo(f,r)):(i.copyTo(a),o.copyTo(r));var c=a.t,l=a[c-1];if(0!=l){var h=l*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),d=this.FV/h,_=(1<<this.F1)/h,v=1<<this.F2,y=r.t,g=y-c,m=null==e?new n:e;for(a.dlShiftTo(g,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),n.ONE.dlShiftTo(c,m),m.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--g>=0;){var b=r[--y]==l?this.DM:Math.floor(r[y]*d+(r[y-1]+v)*_);if((r[y]+=a.am(0,b,r,g,0,c))<b)for(a.dlShiftTo(g,m),r.subTo(m,r);r[y]<--b;)r.subTo(m,r)}null!=e&&(r.drShiftTo(c,e),s!=u&&n.ZERO.subTo(e,e)),r.t=c,r.clamp(),f>0&&r.rShiftTo(f,r),s<0&&n.ZERO.subTo(r,r)}}},i.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},i.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},i.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=new n,i=new n,o=e.convert(this),a=p(t)-1;for(o.copyTo(r);--a>=0;)if(e.sqrTo(r,i),(t&1<<a)>0)e.mulTo(i,o,r);else{var s=r;r=i,i=s}return e.revert(r)},i.toString=function(t){var e;if(this.s<0)return"-"+this.negate().toString(t);if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<<e)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(r=this[a]>>s)>0&&(i=!0,o=c(r));a>=0;)s<e?(r=(this[a]&(1<<s)-1)<<e-s,r|=this[--a]>>(s+=this.DB-e)):(r=this[a]>>(s-=e)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=c(r));return i?o:"0"},i.negate=function(){var t=new n;return n.ZERO.subTo(this,t),t},i.abs=function(){return this.s<0?this.negate():this},i.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},i.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+p(this[this.t-1]^this.s&this.DM)},i.byteLength=function(){return this.bitLength()>>3},i.mod=function(t){var e=new n;return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},i.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new d(e):new _(e),this.exp(t,r)},E.prototype.convert=k,E.prototype.revert=k,E.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},E.prototype.sqrTo=function(t,e){t.squareTo(e)},x.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=new n;return t.copyTo(e),this.reduce(e),e},x.prototype.revert=function(t){return t},x.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},x.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},x.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var T=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],B=(1<<26)/T[T.length-1];i.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},i.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=h(r),o=new n,a=new n,s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(t).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(t)+s},i.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),o=!1,a=0,s=0,u=0;u<t.length;++u){var f=l(t,u);f<0?"-"==t.charAt(u)&&0==this.signum()&&(o=!0):(s=e*s+f,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},i.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),y,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},i.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},i.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},i.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},i.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},i.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},i.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},i.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},i.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},i.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);(t=t+1>>1)>T.length&&(t=T.length);for(var o=new n(null),a=[],s=0;s<t;++s){for(;f=T[Math.floor(Math.random()*T.length)],-1!=a.indexOf(f););a.push(f),o.fromInt(f);var u=o.modPow(i,this);if(0!=u.compareTo(n.ONE)&&0!=u.compareTo(e)){for(var f=1;f++<r&&0!=u.compareTo(e);)if(0==(u=u.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=u.compareTo(e))return!1}}return!0},i.clone=function(){var t=new n;return this.copyTo(t),t},i.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},i.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},i.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},i.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&r)&&(r|=-256),0===i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},i.equals=function(t){return 0==this.compareTo(t)},i.min=function(t){return this.compareTo(t)<0?this:t},i.max=function(t){return this.compareTo(t)>0?this:t},i.and=function(t){var e=new n;return this.bitwiseTo(t,v,e),e},i.or=function(t){var e=new n;return this.bitwiseTo(t,y,e),e},i.xor=function(t){var e=new n;return this.bitwiseTo(t,g,e),e},i.andNot=function(t){var e=new n;return this.bitwiseTo(t,m,e),e},i.not=function(){for(var t=new n,e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},i.shiftLeft=function(t){var e=new n;return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},i.shiftRight=function(t){var e=new n;return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},i.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+b(this[t]);return this.s<0?this.t*this.DB:-1},i.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=w(this[r]^e);return t},i.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},i.setBit=function(t){return this.changeBit(t,y)},i.clearBit=function(t){return this.changeBit(t,m)},i.flipBit=function(t){return this.changeBit(t,g)},i.add=function(t){var e=new n;return this.addTo(t,e),e},i.subtract=function(t){var e=new n;return this.subTo(t,e),e},i.multiply=function(t){var e=new n;return this.multiplyTo(t,e),e},i.divide=function(t){var e=new n;return this.divRemTo(t,e,null),e},i.remainder=function(t){var e=new n;return this.divRemTo(t,null,e),e},i.divideAndRemainder=function(t){var e=new n,r=new n;return this.divRemTo(t,e,r),new Array(e,r)},i.modPow=function(t,e){var r,i,o=t.bitLength(),a=h(1);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new d(e):e.isEven()?new x(e):new _(e);var s=new Array,u=3,f=r-1,c=(1<<r)-1;if(s[1]=i.convert(this),r>1){var l=new n;for(i.sqrTo(s[1],l);u<=c;)s[u]=new n,i.mulTo(l,s[u-2],s[u]),u+=2}var v,y,g=t.t-1,m=!0,b=new n;for(o=p(t[g])-1;g>=0;){for(o>=f?v=t[g]>>o-f&c:(v=(t[g]&(1<<o+1)-1)<<f-o,g>0&&(v|=t[g-1]>>this.DB+o-f)),u=r;0==(1&v);)v>>=1,--u;if((o-=u)<0&&(o+=this.DB,--g),m)s[v].copyTo(a),m=!1;else{for(;u>1;)i.sqrTo(a,b),i.sqrTo(b,a),u-=2;u>0?i.sqrTo(a,b):(y=a,a=b,b=y),i.mulTo(b,s[v],a)}for(;g>=0&&0==(t[g]&1<<o);)i.sqrTo(a,b),y=a,a=b,b=y,--o<0&&(o=this.DB-1,--g)}return i.revert(a)},i.modInverse=function(t){var e=t.isEven();if(0===this.signum())throw new Error("division by zero");if(this.isEven()&&e||0==t.signum())return n.ZERO;for(var r=t.clone(),i=this.clone(),o=h(1),a=h(0),s=h(0),u=h(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(t,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),e&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(r,i),e&&s.subTo(o,s),u.subTo(a,u))}if(0!=i.compareTo(n.ONE))return n.ZERO;for(;u.compareTo(t)>=0;)u.subTo(t,u);for(;u.signum()<0;)u.addTo(t,u);return u},i.pow=function(t){return this.exp(t,new E)},i.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},i.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=T[T.length-1]){for(e=0;e<T.length;++e)if(r[0]==T[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<T.length;){for(var n=T[e],i=e+1;i<T.length&&n<B;)n*=T[i++];for(n=r.modInt(n);e<i;)if(n%T[e++]==0)return!1}return r.millerRabin(t)},i.square=function(){var t=new n;return this.squareTo(t),t},n.ZERO=h(0),n.ONE=h(1),n.valueOf=h,t.exports=n},function(t,e){t.exports={name:"bigi",version:"1.4.2",description:"Big integers.",keywords:["cryptography","math","bitcoin","arbitrary","precision","arithmetic","big","integer","int","number","biginteger","bigint","bignumber","decimal","float"],devDependencies:{coveralls:"^2.11.2",istanbul:"^0.3.5",jshint:"^2.5.1",mocha:"^2.1.0",mochify:"^2.1.0"},repository:{url:"https://github.com/cryptocoinjs/bigi",type:"git"},main:"./lib/index.js",scripts:{"browser-test":"./node_modules/.bin/mochify --wd -R spec",test:"./node_modules/.bin/_mocha -- test/*.js",jshint:"./node_modules/.bin/jshint --config jshint.json lib/*.js ; true",unit:"./node_modules/.bin/mocha",coverage:"./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",coveralls:"npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info"},dependencies:{},testling:{files:"test/*.js",harness:"mocha",browsers:["ie/9..latest","firefox/latest","chrome/latest","safari/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]}}},function(t,e,r){(function(t){var e=r(181),n=r(252);n.fromByteArrayUnsigned=function(t){return 128&t[0]?new n([0].concat(t)):new n(t)},n.prototype.toByteArrayUnsigned=function(){var t=this.toByteArray();return 0===t[0]?t.slice(1):t},n.fromDERInteger=function(t){return new n(t)},n.prototype.toDERInteger=n.prototype.toByteArray,n.fromBuffer=function(t){if(128&t[0]){var e=Array.prototype.slice.call(t);return new n([0].concat(e))}return new n(t)},n.fromHex=function(t){return""===t?n.ZERO:(e.equal(t,t.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),e.equal(t.length%2,0,"Incomplete hex"),new n(t,16))},n.prototype.toBuffer=function(e){for(var r=this.toByteArrayUnsigned(),n=[],i=e-r.length;n.length<i;)n.push(0);return new t(n.concat(r))},n.prototype.toHex=function(t){return this.toBuffer(t).toString("hex")}}).call(e,r(177).Buffer)},function(t,e,r){var n=r(256),i=r(257),o=r(258);t.exports={Curve:i,Point:n,getCurveByName:o}},function(t,e,r){(function(e){var n=r(181),i=r(251),o=i.valueOf(3);function a(t,e,r,i){n.notStrictEqual(i,void 0,"Missing Z coordinate"),this.curve=t,this.x=e,this.y=r,this.z=i,this._zInv=null,this.compressed=!0}Object.defineProperty(a.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(a.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(a.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),a.fromAffine=function(t,e,r){return new a(t,e,r,i.ONE)},a.prototype.equals=function(t){return t===this||(this.curve.isInfinity(this)?this.curve.isInfinity(t):this.curve.isInfinity(t)?this.curve.isInfinity(this):0===t.y.multiply(this.z).subtract(this.y.multiply(t.z)).mod(this.curve.p).signum()&&0===t.x.multiply(this.z).subtract(this.x.multiply(t.z)).mod(this.curve.p).signum())},a.prototype.negate=function(){var t=this.curve.p.subtract(this.y);return new a(this.curve,this.x,t,this.z)},a.prototype.add=function(t){if(this.curve.isInfinity(this))return t;if(this.curve.isInfinity(t))return this;var e=this.x,r=this.y,n=t.x,i=t.y.multiply(this.z).subtract(r.multiply(t.z)).mod(this.curve.p),s=n.multiply(this.z).subtract(e.multiply(t.z)).mod(this.curve.p);if(0===s.signum())return 0===i.signum()?this.twice():this.curve.infinity;var u=s.square(),f=u.multiply(s),c=e.multiply(u),l=i.square().multiply(this.z),h=l.subtract(c.shiftLeft(1)).multiply(t.z).subtract(f).multiply(s).mod(this.curve.p),p=c.multiply(o).multiply(i).subtract(r.multiply(f)).subtract(l.multiply(i)).multiply(t.z).add(i.multiply(f)).mod(this.curve.p),d=f.multiply(this.z).multiply(t.z).mod(this.curve.p);return new a(this.curve,h,p,d)},a.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var t=this.x,e=this.y,r=e.multiply(this.z).mod(this.curve.p),n=r.multiply(e).mod(this.curve.p),i=this.curve.a,s=t.square().multiply(o);0!==i.signum()&&(s=s.add(this.z.square().multiply(i)));var u=(s=s.mod(this.curve.p)).square().subtract(t.shiftLeft(3).multiply(n)).shiftLeft(1).multiply(r).mod(this.curve.p),f=s.multiply(o).multiply(t).subtract(n.shiftLeft(1)).shiftLeft(2).multiply(n).subtract(s.pow(3)).mod(this.curve.p),c=r.pow(3).shiftLeft(3).mod(this.curve.p);return new a(this.curve,u,f,c)},a.prototype.multiply=function(t){if(this.curve.isInfinity(this))return this;if(0===t.signum())return this.curve.infinity;for(var e=t,r=e.multiply(o),n=this.negate(),i=this,a=r.bitLength()-2;a>0;--a){var s=r.testBit(a),u=e.testBit(a);i=i.twice(),s!==u&&(i=i.add(s?this:n))}return i},a.prototype.multiplyTwo=function(t,e,r){for(var n=Math.max(t.bitLength(),r.bitLength())-1,i=this.curve.infinity,o=this.add(e);n>=0;){var a=t.testBit(n),s=r.testBit(n);i=i.twice(),a?i=s?i.add(o):i.add(this):s&&(i=i.add(e)),--n}return i},a.prototype.getEncoded=function(t){if(null==t&&(t=this.compressed),this.curve.isInfinity(this))return new e("00","hex");var r,n=this.affineX,i=this.affineY,o=this.curve.pLength;return t?(r=new e(1+o)).writeUInt8(i.isEven()?2:3,0):((r=new e(1+o+o)).writeUInt8(4,0),i.toBuffer(o).copy(r,1+o)),n.toBuffer(o).copy(r,1),r},a.decodeFrom=function(t,e){var r,o=e.readUInt8(0),s=4!==o,u=Math.floor((t.p.bitLength()+7)/8),f=i.fromBuffer(e.slice(1,1+u));if(s){n.equal(e.length,u+1,"Invalid sequence length"),n(2===o||3===o,"Invalid sequence tag");var c=3===o;r=t.pointFromX(c,f)}else{n.equal(e.length,1+u+u,"Invalid sequence length");var l=i.fromBuffer(e.slice(1+u));r=a.fromAffine(t,f,l)}return r.compressed=s,r},a.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},t.exports=a}).call(e,r(177).Buffer)},function(t,e,r){var n=r(181),i=r(251),o=r(256);function a(t,e,r,n,a,s,u){this.p=t,this.a=e,this.b=r,this.G=o.fromAffine(this,n,a),this.n=s,this.h=u,this.infinity=new o(this,null,null,i.ZERO),this.pOverFour=t.add(i.ONE).shiftRight(2),this.pLength=Math.floor((this.p.bitLength()+7)/8)}a.prototype.pointFromX=function(t,e){var r=e.pow(3).add(this.a.multiply(e)).add(this.b).mod(this.p).modPow(this.pOverFour,this.p),n=r;return r.isEven()^!t&&(n=this.p.subtract(n)),o.fromAffine(this,e,n)},a.prototype.isInfinity=function(t){return t===this.infinity||0===t.z.signum()&&0!==t.y.signum()},a.prototype.isOnCurve=function(t){if(this.isInfinity(t))return!0;var e=t.affineX,r=t.affineY,n=this.a,i=this.b,o=this.p;if(e.signum()<0||e.compareTo(o)>=0)return!1;if(r.signum()<0||r.compareTo(o)>=0)return!1;var a=r.square().mod(o),s=e.pow(3).add(n.multiply(e)).add(i).mod(o);return a.equals(s)},a.prototype.validate=function(t){n(!this.isInfinity(t),"Point is at infinity"),n(this.isOnCurve(t),"Point is not on the curve");var e=t.multiply(this.n);return n(this.isInfinity(e),"Point is not a scalar multiple of G"),!0},t.exports=a},function(t,e,r){var n=r(251),i=r(259),o=r(257);t.exports=function(t){var e=i[t];if(!e)return null;var r=new n(e.p,16),a=new n(e.a,16),s=new n(e.b,16),u=new n(e.n,16),f=new n(e.h,16),c=new n(e.Gx,16),l=new n(e.Gy,16);return new o(r,a,s,c,l,u,f)}},function(t,e){t.exports={secp128r1:{p:"fffffffdffffffffffffffffffffffff",a:"fffffffdfffffffffffffffffffffffc",b:"e87579c11079f43dd824993c2cee5ed3",n:"fffffffe0000000075a30d1b9038a115",h:"01",Gx:"161ff7528b899b2d0c28607ca52c5b86",Gy:"cf5ac8395bafeb13c02da292dded7a83"},secp160k1:{p:"fffffffffffffffffffffffffffffffeffffac73",a:"00",b:"07",n:"0100000000000000000001b8fa16dfab9aca16b6b3",h:"01",Gx:"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb",Gy:"938cf935318fdced6bc28286531733c3f03c4fee"},secp160r1:{p:"ffffffffffffffffffffffffffffffff7fffffff",a:"ffffffffffffffffffffffffffffffff7ffffffc",b:"1c97befc54bd7a8b65acf89f81d4d4adc565fa45",n:"0100000000000000000001f4c8f927aed3ca752257",h:"01",Gx:"4a96b5688ef573284664698968c38bb913cbfc82",Gy:"23a628553168947d59dcc912042351377ac5fb32"},secp192k1:{p:"fffffffffffffffffffffffffffffffffffffffeffffee37",a:"00",b:"03",n:"fffffffffffffffffffffffe26f2fc170f69466a74defd8d",h:"01",Gx:"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d",Gy:"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},secp192r1:{p:"fffffffffffffffffffffffffffffffeffffffffffffffff",a:"fffffffffffffffffffffffffffffffefffffffffffffffc",b:"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1",n:"ffffffffffffffffffffffff99def836146bc9b1b4d22831",h:"01",Gx:"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012",Gy:"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},secp256k1:{p:"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",a:"00",b:"07",n:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",h:"01",Gx:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",Gy:"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},secp256r1:{p:"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff",a:"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc",b:"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b",n:"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551",h:"01",Gx:"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296",Gy:"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(255),o=i.Point,a=i.getCurveByName("secp256k1"),s=r(251),u=r(225),f=r(181),c=r(185),l=r(250),h=(a.G,a.n),p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.d=e}return n(t,[{key:"toWif",value:function(){var t=this.toBuffer();t=e.concat([new e([128]),t]);var r=c.sha256(t);r=(r=c.sha256(r)).slice(0,4);var n=e.concat([t,r]);return u.encode(n)}},{key:"toString",value:function(){return this.toWif()}},{key:"toPublicKeyPoint",value:function(){return a.G.multiply(this.d)}},{key:"toPublic",value:function(){return this.public_key?this.public_key:this.public_key=l.fromPoint(this.toPublicKeyPoint())}},{key:"toBuffer",value:function(){return this.d.toBuffer(32)}},{key:"get_shared_secret",value:function(t){var e=(t=d(t)).toUncompressed().toBuffer(),r=o.fromAffine(a,s.fromBuffer(e.slice(1,33)),s.fromBuffer(e.slice(33,65))),n=this.toBuffer(),i=r.multiply(s.fromBuffer(n)).affineX.toBuffer({size:32});return c.sha512(i)}},{key:"child",value:function(r){r=e.concat([this.toPublicKey().toBuffer(),r]),r=c.sha256(r);var n=s.fromBuffer(r);if(n.compareTo(h)>=0)throw new Error("Child offset went out of bounds, try again");var i=this.d.add(n);if(0===i.signum())throw new Error("Child offset derived to an invalid key, try again");return new t(i)}},{key:"toHex",value:function(){return this.toBuffer().toString("hex")}},{key:"toPublicKey",value:function(){return this.toPublic()}}],[{key:"fromBuffer",value:function(r){if(!e.isBuffer(r))throw new Error("Expecting paramter to be a Buffer type");if(32!==r.length&&console.log("WARN: Expecting 32 bytes, instead got "+r.length+", stack trace:",(new Error).stack),0===r.length)throw new Error("Empty buffer");return new t(s.fromBuffer(r))}},{key:"fromSeed",value:function(e){if("string"!=typeof e)throw new Error("seed must be of type string");return t.fromBuffer(c.sha256(e))}},{key:"isWif",value:function(t){try{return this.fromWif(t),!0}catch(t){return!1}}},{key:"fromWif",value:function(r){var n=new e(u.decode(r)),i=n.readUInt8(0);f.equal(128,i,"Expected version 128, instead got "+i);var o=n.slice(0,-4),a=n.slice(-4),s=c.sha256(o);if(s=(s=c.sha256(s)).slice(0,4),a.toString()!==s.toString())throw new Error("Invalid WIF key (checksum miss-match)");return o=o.slice(1),t.fromBuffer(o)}},{key:"fromHex",value:function(r){return t.fromBuffer(new e(r,"hex"))}}]),t}();t.exports=p;var d=function(t){return null==t?t:t.Q?t:l.fromStringOrThrow(t)}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(262),o=r(185),a=r(255).getCurveByName("secp256k1"),s=r(181),u=r(251),f=r(250),c=r(260),l=function(){function t(e,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=e,this.s=r,this.i=n,s.equal(null!=this.r,!0,"Missing parameter"),s.equal(null!=this.s,!0,"Missing parameter"),s.equal(null!=this.i,!0,"Missing parameter")}return n(t,[{key:"toBuffer",value:function(){var t;return(t=new e(65)).writeUInt8(this.i,0),this.r.toBuffer(32).copy(t,1),this.s.toBuffer(32).copy(t,33),t}},{key:"recoverPublicKeyFromBuffer",value:function(t){return this.recoverPublicKey(o.sha256(t))}},{key:"recoverPublicKey",value:function(t){var e,r,n=void 0;return r=u.fromBuffer(t),n=this.i,n-=27,n&=3,e=i.recoverPubKey(a,r,this,n),f.fromPoint(e)}},{key:"verifyBuffer",value:function(t,e){var r=o.sha256(t);return this.verifyHash(r,e)}},{key:"verifyHash",value:function(t,e){return s.equal(t.length,32,"A SHA 256 should be 32 bytes long, instead got "+t.length),i.verify(a,t,{r:this.r,s:this.s},e.Q)}},{key:"toHex",value:function(){return this.toBuffer().toString("hex")}},{key:"verifyHex",value:function(t,r){var n;return n=new e(t,"hex"),this.verifyBuffer(n,r)}}],[{key:"fromBuffer",value:function(e){var r;return s.equal(e.length,65,"Invalid signature length"),r=e.readUInt8(0),s.equal(r-27,r-27&7,"Invalid signature parameter"),new t(u.fromBuffer(e.slice(1,33)),u.fromBuffer(e.slice(33)),r)}},{key:"signBuffer",value:function(e,r){var n=o.sha256(e);return t.signBufferSha256(n,r)}},{key:"signBufferSha256",value:function(r,n){if(32!==r.length||!e.isBuffer(r))throw new Error("buf_sha256: 32 byte buffer requred");var o,f,c,l,p,d,_;for(n=h(n),s(n,"private_key required"),l=null,_=0,f=u.fromBuffer(r);;){if(d=(o=(c=i.sign(a,r,n.d,_++)).toDER())[5+(p=o[3])],32===p&&32===d){l=i.calcPubKeyRecoveryParam(a,f,c,n.toPublicKey().Q),l+=4,l+=27;break}_%10==0&&console.log("WARN: "+_+" attempts to find canonical signature")}return new t(c.r,c.s,l)}},{key:"sign",value:function(r,n){return t.signBuffer(new e(r),n)}},{key:"fromHex",value:function(r){return t.fromBuffer(new e(r,"hex"))}},{key:"signHex",value:function(r,n){var i;return i=new e(r,"hex"),t.signBuffer(i,n)}},{key:"verifyData",value:function(t,r,n){var u=new e(t),c=new e(u,"hex"),l=o.sha256(c);s.equal(l.length,32,"A SHA 256 should be 32 bytes long, instead got "+l.length);var h=f.fromString(n);return i.verify(a,l,r,h.Q)}}]),t}(),h=function(t){return t?t.d?t:c.fromWif(t):t};t.exports=l}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=r(181),i=r(185),o=r(263),a=r(251),s=r(264);function u(t,r,s,u,f){o("Buffer",r),o(a,s),f&&(r=i.sha256(e.concat([r,new e(f)]))),n.equal(r.length,32,"Hash must be 256 bit");var c=s.toBuffer(32),l=new e(32),h=new e(32);h.fill(1),l.fill(0),l=i.HmacSHA256(e.concat([h,new e([0]),c,r]),l),h=i.HmacSHA256(h,l),l=i.HmacSHA256(e.concat([h,new e([1]),c,r]),l),h=i.HmacSHA256(h,l),h=i.HmacSHA256(h,l);for(var p=a.fromBuffer(h);p.signum()<=0||p.compareTo(t.n)>=0||!u(p);)l=i.HmacSHA256(e.concat([h,new e([0])]),l),h=i.HmacSHA256(h,l),h=i.HmacSHA256(h,l),p=a.fromBuffer(h);return p}function f(t,e,r,n){var i=t.n,o=t.G,a=r.r,s=r.s;if(a.signum()<=0||a.compareTo(i)>=0)return!1;if(s.signum()<=0||s.compareTo(i)>=0)return!1;var u=s.modInverse(i),f=e.multiply(u).mod(i),c=a.multiply(u).mod(i),l=o.multiplyTwo(f,n,c);return!t.isInfinity(l)&&l.affineX.mod(i).equals(a)}function c(t,e,r,i){n.strictEqual(3&i,i,"Recovery param is more than two bits");var o=t.n,a=t.G,s=r.r,u=r.s;n(s.signum()>0&&s.compareTo(o)<0,"Invalid r value"),n(u.signum()>0&&u.compareTo(o)<0,"Invalid s value");var f=1&i,c=i>>1?s.add(o):s,l=t.pointFromX(f,c),h=l.multiply(o);n(t.isInfinity(h),"nR is not a valid curve point");var p=e.negate().mod(o),d=s.modInverse(o),_=l.multiplyTwo(u,a,p).multiply(d);return t.validate(_),_}t.exports={calcPubKeyRecoveryParam:function(t,e,r,n){for(var i=0;i<4;i++)if(c(t,e,r,i).equals(n))return i;throw new Error("Unable to find valid recovery factor")},deterministicGenerateK:u,recoverPubKey:c,sign:function(t,e,r,n){var i,o,f=a.fromBuffer(e),c=t.n,l=t.G,h=(u(t,e,r,function(e){var n=l.multiply(e);return!t.isInfinity(n)&&0!==(i=n.affineX.mod(c)).signum()&&0!==(o=e.modInverse(c).multiply(f.add(r.multiply(i))).mod(c)).signum()},n),c.shiftRight(1));return o.compareTo(h)>0&&(o=c.subtract(o)),new s(i,o)},verify:function(t,e,r,n){return f(t,a.fromBuffer(e),r,n)},verifyRaw:f}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";function r(t){var e=t.toString().match(/function (.*?)\(/);return e?e[1]:null}t.exports=function(t,n){switch(t){case"Array":if(Array.isArray(n))return;break;case"Boolean":if("boolean"==typeof n)return;break;case"Buffer":if(e.isBuffer(n))return;break;case"Number":if("number"==typeof n)return;break;case"String":if("string"==typeof n)return;break;default:if(r(n.constructor)===r(t))return}throw new TypeError("Expected "+(r(t)||t)+", got "+n)}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=r(181),i=r(263),o=r(251);function a(t,e){i(o,t),i(o,e),this.r=t,this.s=e}a.parseCompact=function(t){n.equal(t.length,65,"Invalid signature length");var e=t.readUInt8(0)-27;return n.equal(e,7&e,"Invalid signature parameter"),{compressed:!!(4&e),i:e&=3,signature:new a(o.fromBuffer(t.slice(1,33)),o.fromBuffer(t.slice(33)))}},a.fromDER=function(t){n.equal(t.readUInt8(0),48,"Not a DER sequence"),n.equal(t.readUInt8(1),t.length-2,"Invalid sequence length"),n.equal(t.readUInt8(2),2,"Expected a DER integer");var e=t.readUInt8(3);n(e>0,"R length is zero");var r=4+e;n.equal(t.readUInt8(r),2,"Expected a DER integer (2)");var i=t.readUInt8(r+1);n(i>0,"S length is zero");var s=t.slice(4,r),u=t.slice(r+2);r+=2+i,e>1&&0===s.readUInt8(0)&&n(128&s.readUInt8(1),"R value excessively padded"),i>1&&0===u.readUInt8(0)&&n(128&u.readUInt8(1),"S value excessively padded"),n.equal(r,t.length,"Invalid DER encoding");var f=o.fromDERInteger(s),c=o.fromDERInteger(u);return n(f.signum()>=0,"R value is negative"),n(c.signum()>=0,"S value is negative"),new a(f,c)},a.parseScriptSignature=function(t){var e=t.readUInt8(t.length-1),r=-129&e;return n(r>0&&r<4,"Invalid hashType"),{signature:a.fromDER(t.slice(0,-1)),hashType:e}},a.prototype.toCompact=function(t,r){r&&(t+=4),t+=27;var n=new e(65);return n.writeUInt8(t,0),this.r.toBuffer(32).copy(n,1),this.s.toBuffer(32).copy(n,33),n},a.prototype.toDER=function(){var t=this.r.toDERInteger(),r=this.s.toDERInteger(),n=[];return n.push(2,t.length),(n=n.concat(t)).push(2,r.length),(n=n.concat(r)).unshift(48,n.length),new e(n)},a.prototype.toScriptSignature=function(t){var r=new e(1);return r.writeUInt8(t,0),e.concat([this.toDER(),r])},t.exports=a}).call(e,r(177).Buffer)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalize=function(t){if("string"!=typeof t)throw new Error("string required for brain_key");return(t=t.trim()).split(/[\t\n\v\f\r ]+/).join(" ")}},function(t,e,r){(function(e){"use strict";var n=r(260),i=r(185),o=r(228),a=0,s=0,u=o.randomBuffer(101);t.exports={addEntropy:function(){s++;for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=!0,i=!1,o=void 0;try{for(var f,c=e[Symbol.iterator]();!(n=(f=c.next()).done);n=!0){var l=f.value,h=a++%101;(u[h]+=l)>9007199254740991&&(u[h]=0)}}catch(t){i=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(i)throw o}}},random32ByteBuffer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.browserEntropy();if("string"!=typeof t)throw new Error("string required for entropy");if(t.length<32)throw new Error("expecting at least 32 bytes of entropy");for(var r=Date.now();Date.now()-r<250;)t=i.sha256(t);var n=[];return n.push(t),n.push(o.randomBuffer(32)),i.sha256(e.concat(n))},get_random_key:function(t){return n.fromBuffer(this.random32ByteBuffer(t))},browserEntropy:function(){var t=Array(u).join();try{t+=(new Date).toString()+" "+window.screen.height+" "+window.screen.width+" "+window.screen.colorDepth+" "+window.screen.availHeight+" "+window.screen.availWidth+" "+window.screen.pixelDepth+navigator.language+" "+window.location+" "+window.history.length;for(var r,n=0;n<navigator.mimeTypes.length;n++)t+=(r=navigator.mimeTypes[n]).description+" "+r.type+" "+r.suffixes+" ";console.log("INFO\tbrowserEntropy gathered",s,"events")}catch(e){t+=i.sha256((new Date).toString())}return t+=new e(t).toString("binary")+" "+(new Date).toString()}}}).call(e,r(177).Buffer)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(268)),i=o(r(271));function o(t){return t&&t.__esModule?t:{default:t}}e.default={http:n.default,ws:i.default}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.jsonRpc=d;var i=u(r(269)),o=u(r(168)),a=u(r(270)),s=u(r(171));function u(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=(0,o.default)("steem:http"),p=function(t){function e(t){f(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.message));return r.name="RPCError",r.code=t.code,r.data=t.data,r}return l(e,Error),e}();function d(t,e){var r=e.method,n=e.id,o=e.params,a={id:n,jsonrpc:"2.0",method:r,params:o};return(0,i.default)(t,{body:JSON.stringify(a),method:"post",mode:"cors",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"}}).then(function(t){if(!t.ok)throw new Error("HTTP "+t.status+": "+t.statusText);return t.json()}).then(function(t){if(t.id!==n)throw new Error("Invalid response id: "+t.id);if(t.error)throw new p(t.error);return t.result})}var _=function(t){function e(){return f(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,a.default),n(e,[{key:"send",value:function(t,e,r){h("Steem::send",t,e);var n=e.id||this.id++,i=[t,e.method,e.params];d(s.default.get("websocket"),{method:"call",id:n,params:i}).then(function(t){r(null,t)},function(t){r(t)})}}]),e}();e.default=_},function(t,e){(function(r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==r&&r||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function l(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function h(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function p(t){var e=new FileReader,r=h(e);return e.readAsArrayBuffer(t),r}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&function(t){return t&&DataView.prototype.isPrototypeOf(t)}(t)?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=l(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=h(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:"utf-8";return e.readAsText(t,i),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=s(t),e=u(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},c.prototype.delete=function(t){delete this.map[s(t)]},c.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},c.prototype.set=function(t,e){this.map[s(t)]=u(e)},c.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},c.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),f(t)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),f(t)},c.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),f(t)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var v=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(t,e){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=function(t){var e=t.toUpperCase();return v.indexOf(e)>-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function g(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function m(t,e){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},_.call(y.prototype),_.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var b=[301,302,303,307,308];m.redirect=function(t,e){if(-1===b.indexOf(e))throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function w(t,r){return new Promise(function(o,a){var f=new y(t,r);if(f.signal&&f.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function h(){l.abort()}if(l.onload=function(){var t={statusText:l.statusText,headers:function(t){var e=new c;return t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{e.append(n,i)}catch(t){console.warn("Response "+t.message)}}}),e}(l.getAllResponseHeaders()||"")};0===f.url.indexOf("file://")&&(l.status<200||l.status>599)?t.status=200:t.status=l.status,t.url="responseURL"in l?l.responseURL:t.headers.get("X-Request-URL");var e="response"in l?l.response:l.responseText;setTimeout(function(){o(new m(e,t))},0)},l.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},l.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},l.open(f.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(f.url),!0),"include"===f.credentials?l.withCredentials=!0:"omit"===f.credentials&&(l.withCredentials=!1),"responseType"in l&&(i.blob?l.responseType="blob":i.arrayBuffer&&(l.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof c||n.Headers&&r.headers instanceof n.Headers)){var p=[];Object.getOwnPropertyNames(r.headers).forEach(function(t){p.push(s(t)),l.setRequestHeader(t,u(r.headers[t]))}),f.headers.forEach(function(t,e){-1===p.indexOf(e)&&l.setRequestHeader(e,t)})}else f.headers.forEach(function(t,e){l.setRequestHeader(e,t)});f.signal&&(f.signal.addEventListener("abort",h),l.onreadystatechange=function(){4===l.readyState&&f.signal.removeEventListener("abort",h)}),l.send(void 0===f._bodyInit?null:f._bodyInit)})}w.polyfill=!0,n.fetch||(n.fetch=w,n.Headers=c,n.Request=y,n.Response=m),e.Headers=c,e.Request=y,e.Response=m,e.fetch=w,Object.defineProperty(e,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}).call(e,function(){return this}())},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=a(r(3)),o=a(r(2));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.options=t,r.id=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),n(e,[{key:"setOptions",value:function(t){Object.assign(this.options,t),this.stop()}},{key:"listenTo",value:function(t,e,r){return t.addEventListener?t.addEventListener(e,r):t.on(e,r),function(){t.removeEventListener?t.removeEventListener(e,r):t.removeListener(e,r)}}},{key:"send",value:function(){}},{key:"start",value:function(){}},{key:"stop",value:function(){}}]),e}();e.default=s,i.default.promisifyAll(s.prototype)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=f(r(3)),o=f(r(167)),a=f(r(168)),s=f(r(171)),u=f(r(270));function f(t){return t&&t.__esModule?t:{default:t}}var c=void 0;if(o.default)c=r(272);else{if("undefined"==typeof window)throw new Error("Couldn't decide on a `WebSocket` class");c=window.WebSocket}var l=(0,a.default)("steem:ws"),h=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Object.assign({id:0},t)));return r._requests=new Map,r.inFlight=0,r.isOpen=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.default),n(e,[{key:"start",value:function(){var t=this;return this.startPromise?this.startPromise:(this.startPromise=new i.default(function(e,r){t.ws=new c(s.default.get("websocket")),t.ws.onerror=function(e){t.startPromise=null,r(e)},t.ws.onopen=function(){t.isOpen=!0,t.ws.onerror=t.onError.bind(t),t.ws.onmessage=t.onMessage.bind(t),t.ws.onclose=t.onClose.bind(t),e()}}),this.startPromise)}},{key:"stop",value:function(){l("Stopping..."),this.startPromise=null,this.isOpen=!1,this._requests.clear(),this.ws&&(this.ws.onerror=this.ws.onmessage=this.ws.onclose=null,this.ws.close(),this.ws=null)}},{key:"send",value:function(t,e,r){var n=this;return l("Steem::send",t,e),this.start().then(function(){var o={};new i.default(function(t,e){o.resolve=function(e){t(e),r(null,e)},o.reject=function(t){e(t),r(t)}});var a={deferral:o,startedAt:Date.now(),message:{id:e.id||n.id++,method:"call",jsonrpc:"2.0",params:[t,e.method,e.params]}};return n.inFlight++,n._requests.set(a.message.id,a),n.ws.send(JSON.stringify(a.message)),o})}},{key:"onError",value:function(t){var e=!0,r=!1,n=void 0;try{for(var i,o=this._requests[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.deferral.reject(t)}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}this.stop()}},{key:"onClose",value:function(){var t=new Error("Connection was closed"),e=!0,r=!1,n=void 0;try{for(var i,o=this._requests[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.deferral.reject(t)}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}this._requests.clear()}},{key:"onMessage",value:function(t){var e=JSON.parse(t.data);if(l("-- Steem.onMessage --\x3e",e.id),!this._requests.has(e.id))throw new Error("Panic: no request in queue for message id "+e.id);var r=this._requests.get(e.id);this._requests.delete(e.id);var n=e.error;if(n){var i=new Error((n.message||"Failed to complete operation")+" (see err.payload for the full error payload)");i.payload=e,r.deferral.reject(i)}else this.emit("track-performance",r.message.method,Date.now()-r.startedAt),r.deferral.resolve(e.result)}}]),e}();e.default=h},200,function(t,e,r){(function(e){"use strict";var n=r(251),i=r(225),o=r(255),a=o.Point,s=o.getCurveByName("secp256k1"),u=r(171),f=r(274),c=r(261),l=r(260),h=r(250),p=r(185),d={},_=f.transaction,v=f.signed_transaction;d.signature=c,d.verify=function(t,e,r){var n=!1,i=[];for(var o in r)i.push(o);var a=this.generateKeys(t,e,i);return i.forEach(function(t){r[t][0][0]===a[t]&&(n=!0)}),n},d.generateKeys=function(t,r,o){var f={};return o.forEach(function(o){var c=(t+o+r).trim().split(/[\t\n\v\f\r ]+/).join(" "),l=p.sha256(c),h=n.fromBuffer(l),d=s.G.multiply(h),_=new a(d.curve,d.x,d.y,d.z).getEncoded(d.compressed),v=p.ripemd160(_),y=e.concat([_,v.slice(0,4)]);f[o]=u.get("address_prefix")+i.encode(y)}),f},d.getPrivateKeys=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["master","active","regular","memo"],n={};return r.forEach(function(r){n[r]=this.toWif(t,e,r),n[r+"Pubkey"]=this.wifToPublic(n[r])}.bind(this)),n},d.isWif=function(t){var r=!1;try{var n=new e(i.decode(t)),o=n.slice(0,-4),a=n.slice(-4),s=p.sha256(o);s=(s=p.sha256(s)).slice(0,4),a.toString()==s.toString()&&(r=!0)}catch(t){}return r},d.toWif=function(t,r,n){var o=(t+n+r).trim().split(/[\t\n\v\f\r ]+/).join(" "),a=p.sha256(o),s=e.concat([new e([128]),a]),u=p.sha256(s);u=(u=p.sha256(u)).slice(0,4);var f=e.concat([s,u]);return i.encode(f)},d.wifIsValid=function(t,e){return this.wifToPublic(t)==e},d.wifToPublic=function(t){var e=l.fromWif(t);return e=e.toPublic().toString()},d.isPubkey=function(t,e){return null!=h.fromString(t,e)},d.signTransaction=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[];t.signatures&&(i=[].concat(t.signatures));var o=new e(u.get("chain_id"),"hex"),a=_.toBuffer(t);for(var s in n&&(console.log("transaction",_.fromBuffer(a)),console.log("raw transaction",a.toString("hex"))),r){var f=c.signBuffer(e.concat([o,a]),r[s]);i.push(f.toBuffer()),n&&console.log("signature",f.toBuffer().toString("hex"))}return v.toObject(Object.assign(t,{signatures:i}))},t.exports=d}).call(e,r(177).Buffer)},function(t,e,r){"use strict";var n=o(r(275)),i=o(r(281));function o(t){return t&&t.__esModule?t:{default:t}}var a=n.default.int8,s=n.default.int16,u=n.default.int64,f=n.default.uint8,c=n.default.uint16,l=n.default.uint32,h=n.default.uint64,p=n.default.string,d=n.default.string_binary,_=n.default.bytes,v=n.default.bool,y=n.default.array,g=n.default.static_variant,m=n.default.map,b=n.default.set,w=n.default.public_key,E=n.default.time_point_sec,k=n.default.optional,x=n.default.asset,T=(n.default.asset_16,n.default.void),B=n.default.void,S=n.default.void,A=g();t.exports.operation=A;var j=function(e,r){var n=new i.default(e,r);return t.exports[e]=n},I=new j("beneficiaries",{account:p,weight:c}),O=new j(0,{beneficiaries:b(I)}),C=(new j("transaction",{ref_block_num:c,ref_block_prefix:l,expiration:E,operations:y(A),extensions:b(T)}),new j("encrypted_memo",{from:w,to:w,nonce:h,check:l,encrypted:d}),new j("signed_transaction",{ref_block_num:c,ref_block_prefix:l,expiration:E,operations:y(A),extensions:b(T),signatures:y(_(65))})),R=(new j("signed_block",{previous:_(20),timestamp:E,validator:p,transaction_merkle_root:_(20),extensions:b(g([T,S,B])),validator_signature:_(65),transactions:y(C)}),new j("block_header",{previous:_(20),timestamp:E,validator:p,transaction_merkle_root:_(20),extensions:b(g([T,S,B]))}),new j("signed_block_header",{previous:_(20),timestamp:E,validator:p,transaction_merkle_root:_(20),extensions:b(g([T,S,B])),validator_signature:_(65)}),new j("vote",{voter:p,author:p,permlink:p,weight:s})),U=new j("content",{parent_author:p,parent_permlink:p,author:p,permlink:p,title:p,body:p,curation_percent:s,json_metadata:p,extensions:b(g([O]))}),P=new j("transfer",{from:p,to:p,amount:x,memo:p}),L=new j("transfer_to_vesting",{from:p,to:p,amount:x}),F=new j("withdraw_vesting",{account:p,vesting_shares:x}),D=new j("authority",{weight_threshold:l,account_auths:m(p,c),key_auths:m(w,c)}),M=new j("account_update",{account:p,master:k(D),active:k(D),regular:k(D),memo_key:w,json_metadata:p}),N=new j("chain_properties_init",{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s}),q=new j("validator_update",{owner:p,url:p,block_signing_key:w}),z=new j("chain_properties_update",{owner:p,props:N}),V=new j("account_validator_vote",{account:p,validator:p,approve:v}),H=new j("account_validator_proxy",{account:p,proxy:p}),W=new j("delete_content",{author:p,permlink:p}),Y=new j("custom",{required_active_auths:b(p),required_regular_auths:b(p),id:p,json:p}),G=new j("set_withdraw_vesting_route",{from_account:p,to_account:p,percent:c,auto_vest:v}),X=new j("request_account_recovery",{recovery_account:p,account_to_recover:p,new_master_authority:D,extensions:b(T)}),Z=new j("recover_account",{account_to_recover:p,new_master_authority:D,recent_master_authority:D,extensions:b(T)}),$=new j("change_recovery_account",{account_to_recover:p,new_recovery_account:p,extensions:b(T)}),Q=new j("escrow_transfer",{from:p,to:p,token_amount:x,escrow_id:l,agent:p,fee:x,json_metadata:p,ratification_deadline:E,escrow_expiration:E}),K=new j("escrow_dispute",{from:p,to:p,agent:p,who:p,escrow_id:l}),J=new j("escrow_release",{from:p,to:p,agent:p,who:p,receiver:p,escrow_id:l,token_amount:x}),tt=new j("escrow_approve",{from:p,to:p,agent:p,who:p,escrow_id:l,approve:v}),et=new j("delegate_vesting_shares",{delegator:p,delegatee:p,vesting_shares:x}),rt=new j("account_create",{fee:x,delegation:x,creator:p,new_account_name:p,master:D,active:D,regular:D,memo_key:w,json_metadata:p,referrer:p,extensions:b(T)}),nt=new j("account_metadata",{account:p,json_metadata:p}),it=new j("proposal_create",{author:p,title:p,memo:p,expiration_time:E,proposed_operations:y(new j("operation_wrapper",{op:A})),review_period_time:k(E),extensions:b(T)}),ot=new j("proposal_update",{author:p,title:p,active_approvals_to_add:b(p),active_approvals_to_remove:b(p),master_approvals_to_add:b(p),master_approvals_to_remove:b(p),regular_approvals_to_add:b(p),regular_approvals_to_remove:b(p),key_approvals_to_add:b(w),key_approvals_to_remove:b(w),extensions:b(T)}),at=new j("proposal_delete",{author:p,title:p,requester:p,extensions:b(T)}),st=new j("author_reward",{author:p,permlink:p,payout:x,vesting_payout:x}),ut=new j("curation_reward",{curator:p,reward:x,content_author:p,content_permlink:p}),ft=new j("content_reward",{author:p,permlink:p,payout:x}),ct=new j("fill_vesting_withdraw",{from_account:p,to_account:p,withdrawn:x,deposited:x}),lt=new j("shutdown_validator",{owner:p}),ht=new j("hardfork",{hardfork_id:l}),pt=new j("content_payout_update",{author:p,permlink:p}),dt=new j("content_benefactor_reward",{benefactor:p,author:p,permlink:p,reward:x}),_t=new j("return_vesting_delegation",{account:p,vesting_shares:x}),vt=new j("committee_worker_create_request",{creator:p,url:p,worker:p,required_amount_min:x,required_amount_max:x,duration:l}),yt=new j("committee_worker_cancel_request",{creator:p,request_id:l}),gt=new j("committee_vote_request",{voter:p,request_id:l,vote_percent:s}),mt=new j("committee_cancel_request",{request_id:l}),bt=new j("committee_approve_request",{request_id:l}),wt=new j("committee_pay_request",{worker:p,request_id:l,tokens:x}),Et=new j("committee_payout_request",{request_id:l}),kt=new j("validator_reward",{validator:p,shares:x}),xt=new j("create_invite",{creator:p,balance:x,invite_key:w}),Tt=new j("claim_invite_balance",{initiator:p,receiver:p,invite_secret:p}),Bt=new j("invite_registration",{initiator:p,new_account_name:p,invite_secret:p,new_account_key:w}),St=new j("award",{initiator:p,receiver:p,energy:c,custom_sequence:h,memo:p,beneficiaries:b(I)}),At=new j("fixed_award",{initiator:p,receiver:p,reward_amount:x,max_energy:c,custom_sequence:h,memo:p,beneficiaries:b(I)}),jt=new j("versioned_chain_properties_update",{owner:p,props:g([N,new j(1,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l}),new j(2,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l}),new j(3,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l,create_invite_min_balance:x,committee_create_request_fee:x,create_paid_subscription_fee:x,account_on_sale_fee:x,subaccount_on_sale_fee:x,validator_declaration_fee:x,withdraw_intervals:c}),new j(4,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l,create_invite_min_balance:x,committee_create_request_fee:x,create_paid_subscription_fee:x,account_on_sale_fee:x,subaccount_on_sale_fee:x,validator_declaration_fee:x,withdraw_intervals:c,distribution_epoch_length:l}),new j(5,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l,create_invite_min_balance:x,committee_create_request_fee:x,create_paid_subscription_fee:x,account_on_sale_fee:x,subaccount_on_sale_fee:x,validator_declaration_fee:x,withdraw_intervals:c,distribution_epoch_length:l,pm_oracle_registration_fee:x,pm_min_oracle_insurance:x,pm_market_creation_fee:x,pm_min_liquidity:x,pm_max_outcomes:c,pm_max_market_duration:l,pm_max_oracle_fee_percent:c,pm_listing_min_coverage_percent:c,pm_betting_min_coverage_percent:c,pm_default_time_penalty_percent:c,pm_max_time_penalty:l,pm_dispute_fee:x,pm_dispute_grace_sec:l,pm_oracle_dispute_response_sec:l,pm_dispute_auto_close_sec:l,pm_dispute_vote_period_sec:l,pm_dispute_approve_min_percent:c,pm_oracle_penalty_percent:c,pm_no_contest_penalty_percent:c,pm_dispute_reward_multiplier:l,pm_batch_epoch_blocks:l,pm_reveal_window_blocks:l,pm_commit_no_reveal_penalty_percent:c,pm_min_batch_bet:x,pm_commit_reveal_enabled:v,pm_processing_cap_per_block:l,pm_lazy_pool_enabled:v,pm_lazy_alloc_percent:c,pm_lazy_max_total_alloc_percent:c,pm_lazy_lock_sec:l,pm_lazy_recall_step_percent:c,pm_lazy_emergency_penalty_percent:c,pm_leverage_enabled:v,pm_leverage_fund_percent:c,pm_leverage_max_per_position_bp:c,pm_leverage_pool_profit_percent:c,pm_leverage_safety_margin_percent:c,pm_leverage_max_slippage_percent:c,pm_leverage_min_market_liquidity:x,pm_leverage_max_position_ratio_percent:c,pm_leverage_expiration_buffer_sec:l,pm_leverage_m_factor_percent:c,pm_conversion_profit_cost_percent:c})])}),It=new j("receive_award",{receiver:p,custom_sequence:h,memo:p,shares:x}),Ot=new j("benefactor_award",{benefactor:p,receiver:p,custom_sequence:h,memo:p,shares:x}),Ct=new j("set_paid_subscription",{account:p,url:p,levels:c,amount:x,period:c}),Rt=new j("paid_subscribe",{subscriber:p,account:p,level:c,amount:x,period:c,auto_renewal:v}),Ut=new j("paid_subscription_action",{subscriber:p,account:p,level:c,amount:x,period:c,summary_duration_sec:h,summary_amount:x}),Pt=new j("cancel_paid_subscription",{subscriber:p,account:p}),Lt=new j("set_account_price",{account:p,account_seller:p,account_offer_price:x,account_on_sale:v}),Ft=new j("target_account_sale",{account:p,account_seller:p,target_buyer:p,account_offer_price:x,account_on_sale:v}),Dt=new j("set_subaccount_price",{account:p,subaccount_seller:p,subaccount_offer_price:x,subaccount_on_sale:v}),Mt=new j("buy_account",{buyer:p,account:p,account_offer_price:x,account_authorities_key:w,tokens_to_shares:x}),Nt=new j("account_sale",{account:p,price:x,buyer:p,seller:p}),qt=new j("use_invite_balance",{initiator:p,receiver:p,invite_secret:p}),zt=new j("expire_escrow_ratification",{from:p,to:p,agent:p,escrow_id:l,token_amount:x,fee:x,ratification_deadline:E}),Vt=new j("bid",{account:p,bidder:p,bid:x}),Ht=new j("outbid",{account:p,bidder:p,bid:x}),Wt=new j("set_reward_sharing",{owner:p,sharing_rate:c}),Yt=new j("stakeholder_reward",{validator:p,stakeholder:p,shares:x}),Gt=new j("pm_oracle_register",{owner:p,insurance:x,fee_percent:c,fixed_fee:x,rules_url:p,auto_accept_creator:p,auto_accept_resolver:p,auto_accept:v,extensions:b(T)}),Xt=new j("pm_oracle_update",{owner:p,insurance_delta:k(x),fee_percent:k(c),fixed_fee:k(x),rules_url:k(p),auto_accept_creator:k(p),auto_accept_resolver:k(p),auto_accept:k(v),extensions:b(T)}),Zt=new j("pm_create_market",{creator:p,oracle:p,market_type:f,outcomes:y(p),url:p,oracle_fee_percent:c,oracle_fixed_fee:x,creator_fee_percent:c,liquidity_fee_percent:c,liquidity:x,lmsr_b:u,betting_expiration:E,result_expiration:E,time_penalty_type:f,time_penalty_value:l,penalty_curve_type:f,allow_early_resolution:v,allow_cancellation:v,allow_batch:v,allow_instant_bet:v,endogeneity_tier:f,dispute_mode:f,dispute_resolver:p,dispute_penalty_percent:s,metadata:p,extensions:b(T)}),$t=new j("pm_oracle_accept_market",{oracle:p,market_id:u,accept:v,oracle_fee_percent:c,oracle_fixed_fee:x,extensions:b(T)}),Qt=new j("pm_place_bet",{account:p,market_id:u,side:a,outcome_index:s,amount:x,min_tokens:u,mode:f,extensions:b(T)}),Kt=new j("pm_commit_bet",{account:p,market_id:u,commitment:_(32),escrow_amount:x,no_reveal_fee_percent:c,extensions:b(T)}),Jt=new j("pm_reveal_bet",{account:p,commit_id:u,side:a,outcome_index:s,amount:x,salt:p,min_tokens:u,extensions:b(T)}),te=new j("pm_cancel_bet",{account:p,bet_id:u,min_return:u,extensions:b(T)}),ee=new j("pm_add_liquidity",{provider:p,market_id:u,amount:x,extensions:b(T)}),re=new j("pm_withdraw_liquidity",{provider:p,liquidity_id:u,amount:x,extensions:b(T)}),ne=new j("pm_resolve_market",{oracle:p,market_id:u,winning_outcome:s,decision_url:p,decision_reason:p,extensions:b(T)}),ie=new j("pm_no_contest",{oracle:p,market_id:u,reason:p,extensions:b(T)}),oe=new j("pm_dispute_create",{disputer:p,market_id:u,proposed_outcome:s,reason:p,extensions:b(T)}),ae=new j("pm_dispute_vote",{voter:p,market_id:u,vote_outcome:s,vote_percent:s,extensions:b(T)}),se=new j("pm_dispute_resolve",{resolver:p,market_id:u,correct_outcome:s,penalty_amount:x,ban_oracle:v,ban_oracle_until:E,ban_creator:v,ban_creator_until:E,extensions:b(T)}),ue=new j("pm_transfer_position",{from:p,bet_id:u,to:p,amount:u,memo:p,extensions:b(T)}),fe=new j("pm_lazy_deposit",{account:p,amount:x,extensions:b(T)}),ce=new j("pm_lazy_withdraw",{account:p,shares:u,emergency:v,extensions:b(T)}),le=new j("pm_batch_settle",{market_id:u,epoch:l,settled_bets:l}),he=new j("pm_commit_forfeit",{account:p,commit_id:u,market_id:u,penalty:x,refund:x}),pe=new j("pm_auto_payout",{account:p,market_id:u,bet_id:u,payout:x}),de=new j("pm_dispute_finalize",{market_id:u,winning_outcome:s,oracle_penalty:x}),_e=new j("pm_dispute_auto_close",{market_id:u,oracle_penalty:x}),ve=new j("pm_oracle_missed_penalty",{oracle:p,market_id:u,slashed:x}),ye=new j("pm_lazy_recall",{market_id:u,recalled:x}),ge=new j("pm_leverage_open",{account:p,market_id:u,outcome_index:s,collateral:x,loan:x,min_tokens:u,max_slippage_percent:c,extensions:b(T)}),me=new j("pm_leverage_close",{account:p,position_id:u,min_return:u,extensions:b(T)}),be=new j("pm_leverage_convert",{account:p,position_id:u,conversion_profit_cost:c,extensions:b(T)}),we=new j("pm_leverage_liquidate",{account:p,position_id:u,market_id:u,cancel_value:x,pool_received:x,bettor_received:x,reason:f}),Ee=new j("pm_leverage_resolve",{account:p,position_id:u,market_id:u,won:v,pool_received:x,bettor_received:x,outcome_index:s,leverage:c}),ke=new j("pm_market_accepted",{oracle:p,creator:p,market_id:u,oracle_fee_percent:c,oracle_fixed_fee:x,self_oracle:v}),xe=new j("pm_payout",{account:p,market_id:u,bet_id:u,side:a,outcome_index:s,amount:x,payout:x}),Te=new j("pm_dispute_oracle_respond",{oracle:p,market_id:u,response:p,extensions:b(T)}),Be=new j("pm_unban",{resolver:p,target:p,unban_oracle:v,unban_creator:v,extensions:b(T)}),Se=new j("pm_ban_expired",{account:p,oracle:v,creator:v});A.st_operations=[R,U,P,L,F,M,q,V,H,W,Y,G,X,Z,$,Q,K,J,tt,et,rt,nt,it,ot,at,z,st,ut,ft,ct,lt,ht,pt,dt,_t,vt,yt,gt,mt,bt,wt,Et,kt,xt,Tt,Bt,jt,St,It,Ot,Ct,Rt,Ut,Pt,Lt,Dt,Mt,Nt,qt,zt,At,Ft,Vt,Ht,Wt,Yt,Gt,Xt,Zt,$t,Qt,Kt,Jt,te,ee,re,ne,ie,oe,ae,se,ue,fe,ce,le,he,pe,de,_e,ve,ye,ge,me,be,we,Ee,ke,xe,Te,Be,Se],t.exports.witness_update=q,t.exports.account_witness_vote=V,t.exports.account_witness_proxy=H,t.exports.shutdown_witness=lt,t.exports.witness_reward=kt},function(t,e,r){(function(e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=r(175),s=r(276),u=r(277),f=r(279),c=r(280),l=r(278),h={};t.exports=h;var p=e.env.npm_config__graphene_serializer_hex_dump;e.env.NODE_ENV;h.asset={fromByteBuffer:function(t){var e=t.readInt64(),r=t.readUint8(),i=t.copy(t.offset,t.offset+7),o=new n(i.toBinary(),"binary").toString().replace(/\x00/g,"");return t.skip(7),(0,s.fromImpliedDecimal)(e,r)+" "+o},appendByteBuffer:function(t,e){if(e=e.trim(),!/^[0-9]+\.?[0-9]* [A-Za-z0-9]+$/.test(e))throw new Error("Expecting amount like '99.000 SYMBOL', instead got '"+e+"'");var r=e.split(" "),n=o(r,2),i=n[0],a=n[1];if(a.length>6)throw new Error("Symbols are not longer than 6 characters "+a+"-"+a.length);t.writeInt64(u.to_long(i.replace(".","")));var s=i.indexOf("."),f=-1===s?0:i.length-s-1;t.writeUint8(f),t.append(a.toUpperCase(),"binary");for(var c=0;c<7-a.length;c++)t.writeUint8(0)},fromObject:function(t){return t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0.000 VIZ":t}},h.uint8={fromByteBuffer:function(t){return t.readUint8()},appendByteBuffer:function(t,e){u.require_range(0,255,e,"uint8 "+e),t.writeUint8(e)},fromObject:function(t){return u.require_range(0,255,t,"uint8 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(0,255,t,"uint8 "+t),parseInt(t))}},h.int8={fromByteBuffer:function(t){return t.readInt8()},appendByteBuffer:function(t,e){u.require_range(-128,127,e,"int8 "+e),t.writeInt8(e)},fromObject:function(t){return u.require_range(-128,127,t,"int8 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(-128,127,t,"int8 "+t),parseInt(t))}},h.uint16={fromByteBuffer:function(t){return t.readUint16()},appendByteBuffer:function(t,e){u.require_range(0,65535,e,"uint16 "+e),t.writeUint16(e)},fromObject:function(t){return u.require_range(0,65535,t,"uint16 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(0,65535,t,"uint16 "+t),parseInt(t))}},h.uint32={fromByteBuffer:function(t){return t.readUint32()},appendByteBuffer:function(t,e){u.require_range(0,4294967295,e,"uint32 "+e),t.writeUint32(e)},fromObject:function(t){return u.require_range(0,4294967295,t,"uint32 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(0,4294967295,t,"uint32 "+t),parseInt(t))}};var d=-1*Math.pow(2,31),_=Math.pow(2,31)-1;h.varint32={fromByteBuffer:function(t){return t.readVarint32()},appendByteBuffer:function(t,e){u.require_range(d,_,e,"uint32 "+e),t.writeVarint32(e)},fromObject:function(t){return u.require_range(d,_,t,"uint32 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(d,_,t,"uint32 "+t),parseInt(t))}},h.int16={fromByteBuffer:function(t){return t.readInt16()},appendByteBuffer:function(t,e){t.writeInt16(e)},fromObject:function(t){return t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:parseInt(t)}},h.int64={fromByteBuffer:function(t){return t.readInt64()},appendByteBuffer:function(t,e){u.required(e),t.writeInt64(u.to_long(e))},fromObject:function(t){return u.required(t),u.to_long(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0":(u.required(t),u.to_long(t).toString())}},h.uint64={fromByteBuffer:function(t){return t.readUint64()},appendByteBuffer:function(t,e){t.writeUint64(u.to_long(u.unsigned(e)))},fromObject:function(t){return u.to_long(u.unsigned(t))},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0":u.to_long(t).toString()}},h.string={fromByteBuffer:function(t){return new n(t.readVString(),"utf8")},appendByteBuffer:function(t,e){u.required(e),t.writeVString(e.toString())},fromObject:function(t){return u.required(t),new n(t,"utf8")},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"":t.toString("utf8")}},h.string_binary={fromByteBuffer:function(t){var e=void 0,r=t.readVarint32();return e=t.copy(t.offset,t.offset+r),t.skip(r),new n(e.toBinary(),"binary")},appendByteBuffer:function(t,e){t.writeVarint32(e.length),t.append(e.toString("binary"),"binary")},fromObject:function(t){return u.required(t),new n(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"":t.toString()}},h.bytes=function(t){return{fromByteBuffer:function(e){if(void 0===t){var r,i=e.readVarint32();return r=e.copy(e.offset,e.offset+i),e.skip(i),new n(r.toBinary(),"binary")}return r=e.copy(e.offset,e.offset+t),e.skip(t),new n(r.toBinary(),"binary")},appendByteBuffer:function(e,r){u.required(r),"string"==typeof r&&(r=new n(r,"hex")),void 0===t&&e.writeVarint32(r.length),e.append(r.toString("binary"),"binary")},fromObject:function(t){return u.required(t),n.isBuffer(t)?t:new n(t,"hex")},toObject:function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e){return function(t){return new Array(t).join("00")}(t)}return u.required(e),e.toString("hex")}}},h.bool={fromByteBuffer:function(t){return 1===t.readUint8()},appendByteBuffer:function(t,e){t.writeUint8(JSON.parse(e)?1:0)},fromObject:function(t){return!!JSON.parse(t)},toObject:function(t){return(!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default||void 0!==t)&&!!JSON.parse(t)}},h.void={fromByteBuffer:function(t){throw new Error("(void) undefined type")},appendByteBuffer:function(t,e){throw new Error("(void) undefined type")},fromObject:function(t){throw new Error("(void) undefined type")},toObject:function(t){if(!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default||void 0!==t)throw new Error("(void) undefined type")}},h.array=function(t){return{fromByteBuffer:function(e){var r=e.readVarint32();p&&console.log("varint32 size = "+r.toString(16));for(var n=[],i=0;0<r?i<r:i>r;i++)n.push(t.fromByteBuffer(e));return g(n,t)},appendByteBuffer:function(e,r){u.required(r),r=g(r,t),e.writeVarint32(r.length);for(var n,i=0;i<r.length;i++)n=r[i],t.appendByteBuffer(e,n)},fromObject:function(e){u.required(e),e=g(e,t);for(var r,n=[],i=0;i<e.length;i++)r=e[i],n.push(t.fromObject(r));return n},toObject:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.use_default&&void 0===e)return[t.toObject(e,r)];u.required(e),e=g(e,t);for(var n,i=[],o=0;o<e.length;o++)n=e[o],i.push(t.toObject(n,r));return i}}},h.time_point_sec={fromByteBuffer:function(t){return t.readUint32()},appendByteBuffer:function(t,e){"number"!=typeof e&&(e=h.time_point_sec.fromObject(e)),t.writeUint32(e)},fromObject:function(t){if(u.required(t),"number"==typeof t)return t;if(t.getTime)return Math.floor(t.getTime()/1e3);if("string"!=typeof t)throw new Error("Unknown date type: "+t);return"string"!=typeof t||/Z$/.test(t)||(t+="Z"),Math.floor(new Date(t).getTime()/1e3)},toObject:function(t){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t)return new Date(0).toISOString().split(".")[0];if(u.required(t),"string"==typeof t)return t;if(t.getTime)return t.toISOString().split(".")[0];var e=parseInt(t);return u.require_range(0,4294967295,e,"uint32 "+t),new Date(1e3*e).toISOString().split(".")[0]}},h.set=function(t){return{validate:function(e){for(var r,n={},o=0;o<e.length;o++){var a;if(a=void 0===(r=e[o])?"undefined":i(r),["string","number"].indexOf(a)>=0){if(void 0!==n[r])throw new Error("duplicate (set)");n[r]=!0}}return g(e,t)},fromByteBuffer:function(e){var r=e.readVarint32();return p&&console.log("varint32 size = "+r.toString(16)),this.validate(function(){for(var n=[],i=0;0<r?i<r:i>r;i++)n.push(t.fromByteBuffer(e));return n}())},appendByteBuffer:function(e,r){r||(r=[]),e.writeVarint32(r.length);for(var n,i=this.validate(r),o=0;o<i.length;o++)n=i[o],t.appendByteBuffer(e,n)},fromObject:function(e){return e||(e=[]),this.validate(function(){for(var r,n=[],i=0;i<e.length;i++)r=e[i],n.push(t.fromObject(r));return n}())},toObject:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.use_default&&void 0===e?[t.toObject(e,r)]:(e||(e=[]),this.validate(function(){for(var n,i=[],o=0;o<e.length;o++)n=e[o],i.push(t.toObject(n,r));return i}()))}}},h.fixed_array=function(t,e){return{fromByteBuffer:function(r){var n,i=void 0,o=void 0;for(o=[],i=0,n=t;i<n;i+=1)o.push(e.fromByteBuffer(r));return g(o,e)},appendByteBuffer:function(r,n){var i,o=void 0,a=void 0;for(0!==t&&(u.required(n),n=g(n,e)),o=a=0,i=t;a<i;o=a+=1)e.appendByteBuffer(r,n[o])},fromObject:function(r){var n,i=void 0,o=void 0,a=void 0;for(0!==t&&u.required(r),a=[],i=o=0,n=t;o<n;i=o+=1)a.push(e.fromObject(r[i]));return a},toObject:function(r,n){var i,o=void 0,a=void 0,s=void 0,f=void 0,c=void 0,l=void 0;if(null==n&&(n={}),n.use_default&&void 0===r){for(c=[],o=a=0,f=t;a<f;o=a+=1)c.push(e.toObject(void 0,n));return c}for(0!==t&&u.required(r),l=[],o=s=0,i=t;s<i;o=s+=1)l.push(e.toObject(r[o],n));return l}}};h.protocol_id_type=function(t){return u.required(t,"name"),function(t,e){return u.required(t,"reserved_spaces"),u.required(e,"object_type"),{fromByteBuffer:function(t){return t.readVarint32()},appendByteBuffer:function(r,n){u.required(n),void 0!==n.resolve&&(n=n.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(n)&&(n=u.get_instance(t,e,n)),r.writeVarint32(u.to_number(n))},fromObject:function(r){return u.required(r),void 0!==r.resolve&&(r=r.resolve),u.is_digits(r)?u.to_number(r):u.get_instance(t,e,r)},toObject:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=l.object_type[e];return n.use_default&&void 0===r?t+"."+i+".0":(u.required(r),void 0!==r.resolve&&(r=r.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(r)&&(r=u.get_instance(t,e,r)),t+"."+i+"."+r)}}}(l.reserved_spaces.protocol_ids,t)},h.object_id_type={fromByteBuffer:function(t){return f.fromByteBuffer(t)},appendByteBuffer:function(t,e){u.required(e),void 0!==e.resolve&&(e=e.resolve),(e=f.fromString(e)).appendByteBuffer(t)},fromObject:function(t){return u.required(t),void 0!==t.resolve&&(t=t.resolve),f.fromString(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0.0.0":(u.required(t),void 0!==t.resolve&&(t=t.resolve),(t=f.fromString(t)).toString())}},h.vote_id={TYPE:255,ID:4294967040,fromByteBuffer:function(t){var e=t.readUint32();return{type:e&this.TYPE,id:e&this.ID}},appendByteBuffer:function(t,e){u.required(e),"string"===e&&(e=h.vote_id.fromObject(e));var r=e.id<<8|e.type;t.writeUint32(r)},fromObject:function(t){if(u.required(t,"(type vote_id)"),"object"===(void 0===t?"undefined":i(t)))return u.required(t.type,"type"),u.required(t.id,"id"),t;u.require_test(/^[0-9]+:[0-9]+$/,t,"vote_id format "+t);var e=t.split(":"),r=o(e,2),n=r[0],a=r[1];return u.require_range(0,255,n,"vote type "+t),u.require_range(0,16777215,a,"vote id "+t),{type:n,id:a}},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0:0":(u.required(t),"string"==typeof t&&(t=h.vote_id.fromObject(t)),t.type+":"+t.id)},compare:function(t,e){return"object"!==(void 0===t?"undefined":i(t))&&(t=h.vote_id.fromObject(t)),"object"!==(void 0===e?"undefined":i(e))&&(e=h.vote_id.fromObject(e)),parseInt(t.id)-parseInt(e.id)}},h.optional=function(t){return u.required(t,"st_operation"),{fromByteBuffer:function(e){if(1===e.readUint8())return t.fromByteBuffer(e)},appendByteBuffer:function(e,r){null!=r?(e.writeUint8(1),t.appendByteBuffer(e,r)):e.writeUint8(0)},fromObject:function(e){if(void 0!==e)return t.fromObject(e)},toObject:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.use_default||void 0!==e?t.toObject(e,r):void 0;return r.annotate&&("object"===(void 0===n?"undefined":i(n))?n.__optional="parent is optional":n={__optional:n}),n}}},h.static_variant=function(t){var e={witness_update:"validator_update",account_witness_vote:"account_validator_vote",account_witness_proxy:"account_validator_proxy",shutdown_witness:"shutdown_validator",witness_reward:"validator_reward"};return{nosort:!0,st_operations:t,opTypeId:function(t){var r=0,n=void 0;if("number"==typeof t)n=t;else{var i=!0,o=!1,a=void 0;try{for(var s,u=this.st_operations[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){if(s.value.operation_name===t){n=r;break}r++}}catch(t){o=!0,a=t}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}if(void 0===n&&e[t]){r=0;var f=!0,c=!1,l=void 0;try{for(var h,p=this.st_operations[Symbol.iterator]();!(f=(h=p.next()).done);f=!0){if(h.value.operation_name===e[t]){n=r;break}r++}}catch(t){c=!0,l=t}finally{try{!f&&p.return&&p.return()}finally{if(c)throw l}}}}return n},fromByteBuffer:function(t){var e=t.readVarint32(),r=this.st_operations[e];return p&&console.error("static_variant id 0x"+e.toString(16)+" ("+e+")"),u.required(r,"operation "+e),[e,r.fromByteBuffer(t)]},appendByteBuffer:function(t,e){u.required(e);var r=this.opTypeId(e[0]),n=this.st_operations[r];u.required(n,"operation "+r),t.writeVarint32(r),n.appendByteBuffer(t,e[1])},fromObject:function(t){u.required(t);var e=this.opTypeId(t[0]),r=this.st_operations[e];return u.required(r,"operation "+e),[e,r.fromObject(t[1])]},toObject:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.use_default&&void 0===t)return[this.st_operations[0].operation_name,this.st_operations[0].toObject(void 0,e)];u.required(t);var r=this.opTypeId(t[0]),n=this.st_operations[r];return u.required(n,"operation "+r),[n.operation_name,n.toObject(t[1],e)]},compare:function(t,e){return v(this.opTypeId(t[0]),this.opTypeId(e[0]))}}},h.map=function(t,e){return{validate:function(e){if(!Array.isArray(e))throw new Error("expecting array");for(var r,n={},o=0;o<e.length;o++){var a;if(2!==(r=e[o]).length)throw new Error("expecting two elements");if(a=i(r[0]),["number","string"].indexOf(a)>=0){if(void 0!==n[r[0]])throw new Error("duplicate (map)");n[r[0]]=!0}}return g(e,t)},fromByteBuffer:function(r){for(var n=[],i=r.readVarint32(),o=0;0<i?o<i:o>i;o++)n.push([t.fromByteBuffer(r),e.fromByteBuffer(r)]);return this.validate(n)},appendByteBuffer:function(r,n){this.validate(n),r.writeVarint32(n.length);for(var i,o=0;o<n.length;o++)i=n[o],t.appendByteBuffer(r,i[0]),e.appendByteBuffer(r,i[1])},fromObject:function(r){u.required(r);for(var n,i=[],o=0;o<r.length;o++)n=r[o],i.push([t.fromObject(n[0]),e.fromObject(n[1])]);return this.validate(i)},toObject:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.use_default&&void 0===r)return[[t.toObject(void 0,n),e.toObject(void 0,n)]];u.required(r),r=this.validate(r);for(var i,o=[],a=0;a<r.length;a++)i=r[a],o.push([t.toObject(i[0],n),e.toObject(i[1],n)]);return o}}},h.public_key={toPublic:function(t){return void 0!==t.resolve&&(t=t.resolve),null==t?t:t.Q?t:a.PublicKey.fromStringOrThrow(t)},fromByteBuffer:function(t){return c.public_key(t)},appendByteBuffer:function(t,e){u.required(e),c.public_key(t,h.public_key.toPublic(e))},fromObject:function(t){return u.required(t),t.Q?t:h.public_key.toPublic(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?a.ecc_config.get("address_prefix")+"859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM":(u.required(t),t.toString())},compare:function(t,e){return 1*v(t.toString(),e.toString())}},h.address={_to_address:function(t){return u.required(t),t.addy?t:a.Address.fromString(t)},fromByteBuffer:function(t){return new a.Address(c.ripemd160(t))},appendByteBuffer:function(t,e){c.ripemd160(t,h.address._to_address(e).toBuffer())},fromObject:function(t){return h.address._to_address(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?a.ecc_config.get("address_prefix")+"664KmHxSuQyDsfwo4WEJvWpzg1QKdg67S":h.address._to_address(t).toString()},compare:function(t,e){return-1*v(t.toString(),e.toString())}};var v=function(t,e){return t>e?1:t<e?-1:0},y=function(t){return Array.isArray(t)?t[0]:t},g=function(t,e){return e.nosort?t:e.compare?t.sort(function(t,r){return e.compare(y(t),y(r))}):t.sort(function(t,e){return"number"==typeof y(t)&&"number"==typeof y(e)?y(t)-y(e):n.isBuffer(y(t))&&n.isBuffer(y(e))?v(y(t).toString("hex"),y(e).toString("hex")):v(y(t).toString(),y(e).toString())})}}).call(e,r(5),r(177).Buffer)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.toImpliedDecimal=function(t,e){"number"==typeof t?((0,o.default)(t<=9007199254740991,"overflow"),t=""+t):t.toString&&(t=t.toString());(0,o.default)("string"==typeof t,"number should be an actual number or string: "+(void 0===t?"undefined":i(t))),t=t.trim(),(0,o.default)(/^[0-9]*\.?[0-9]*$/.test(t),"Invalid decimal number "+t);var r=t.split("."),a=n(r,2),s=a[0],u=void 0===s?"":s,f=a[1],c=void 0===f?"":f,l=e-c.length;(0,o.default)(l>=0,"Too many decimal digits in "+t+" to create an implied decimal of "+e);for(var h=0;h<l;h++)c+="0";for(;"0"===u.charAt(0);)u=u.substring(1);return u+c},e.fromImpliedDecimal=function(t,e){"number"==typeof t?((0,o.default)(t<=9007199254740991,"overflow"),t=""+t):t.toString&&(t=t.toString());for(;t.length<e+1;)t="0"+t;var r=t.substring(t.length-e);return t.substring(0,t.length-e)+(r?"."+r:"")};var o=function(t){return t&&t.__esModule?t:{default:t}}(r(181))},function(t,e,r){"use strict";var n,i,o,a,s,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=r(230).Long,c=r(278);t.exports=n={is_empty:i=function(t){return null==t},required:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))throw new Error("value required "+e+" "+t);return t},require_long:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!f.isLong(t))throw new Error("Long value required "+e+" "+t);return t},string:function(t){if(i(t))return t;if("string"!=typeof t)throw new Error("string required: "+t);return t},number:function(t){if(i(t))return t;if("number"!=typeof t)throw new Error("number required: "+t);return t},whole_number:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))return t;if(/\./.test(t))throw new Error("whole number required "+e+" "+t);return t},unsigned:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))return t;if(/-/.test(t))throw new Error("unsigned required "+e+" "+t);return t},is_digits:function(t){return"numeric"==typeof t||/^[0-9]+$/.test(t)},to_number:o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return i(t)?t:(n.no_overflow53(t,e),"number"==typeof t?t:parseInt(t))},to_long:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return i(t)?t:f.isLong(t)?t:(n.no_overflow64(t,e),"number"==typeof t&&(t=""+t),f.fromString(t))},to_string:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))return t;if("string"==typeof t)return t;if("number"==typeof t)return n.no_overflow53(t,e),""+t;if(f.isLong(t))return t.toString();throw"unsupported type "+e+": ("+(void 0===t?"undefined":u(t))+") "+t},require_test:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(i(e))return e;if(!t.test(e))throw new Error("unmatched "+t+" "+r+" "+e);return e},require_match:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(i(e))return e;var n=e.match(t);if(null===n)throw new Error("unmatched "+t+" "+r+" "+e);return n},require_range:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(i(r))return r;o(r);if(r<t||r>e)throw new Error("out of range "+r+" "+n+" "+r);return r},require_object_type:a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments[1],r=arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(i(r))return r;var o=c.object_type[e];if(!o)throw new Error("Unknown object type: "+e+", "+n+", "+r);if(!new RegExp(t+"."+o+".[0-9]+$").test(r))throw new Error("Expecting "+e+" in format "+t+"."+o+".[0-9]+ instead of "+r+" "+n+" "+r);return r},get_instance:function(t,e,r,n){return i(r)?r:(a(t,e,r,n),o(r.split(".")[2]))},require_relative_type:function(t,e,r){return a(0,t,e,r),e},get_relative_instance:function(t,e,r){return i(e)?e:(a(0,t,e,r),o(e.split(".")[2]))},require_protocol_type:function(t,e,r){return a(1,t,e,r),e},get_protocol_instance:function(t,e,r){return i(e)?e:(a(1,t,e,r),o(e.split(".")[2]))},get_protocol_type:s=function(t,e){if(i(t))return t;(void 0)(t,e);var r=t.split(".");return o(r[1])},get_protocol_type_name:function(t,e){if(i(t))return t;var r=s(t,e);return Object.keys(c.object_type)[r]},require_implementation_type:function(t,e,r){return a(2,t,e,r),e},get_implementation_instance:function(t,e,r){return i(e)?e:(a(2,t,e,r),o(e.split(".")[2]))},no_overflow53:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("number"!=typeof t)if("string"!=typeof t){if(!f.isLong(t))throw"unsupported type "+e+": ("+(void 0===t?"undefined":u(t))+") "+t;n.no_overflow53(t.toInt(),e)}else{parseInt(t);if(t>9007199254740991||t<-9007199254740991)throw new Error("overflow "+e+" "+t)}else if(t>9007199254740991||t<-9007199254740991)throw new Error("overflow "+e+" "+t)},no_overflow64:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!f.isLong(t))if(void 0===t.t||void 0===t.s)if("string"!=typeof t){if("number"!=typeof t)throw"unsupported type "+e+": ("+(void 0===t?"undefined":u(t))+") "+t;if(t>9007199254740991||t<-9007199254740991)throw new Error("overflow "+e+" "+t)}else{for(t=t.replace(/^0+/,"");/0$/.test(t);)t=t.substring(0,t.length-1);if(/\.$/.test(t)&&(t=t.substring(0,t.length-1)),""===t&&(t="0"),f.fromString(t).toString()!==t.trim())throw new Error("overflow "+e+" "+t)}else n.no_overflow64(t.toString(),e)}}},function(t,e){"use strict";var r=void 0;t.exports=r={},r.reserved_spaces={relative_protocol_ids:0,protocol_ids:1,implementation_ids:2},r.operations={vote:0,content:1,transfer:2,transfer_to_vesting:3,withdraw_vesting:4,account_update:5,validator_update:6,account_validator_vote:7,account_validator_proxy:8,delete_content:9,custom:10,set_withdraw_vesting_route:11,request_account_recovery:12,recover_account:13,change_recovery_account:14,escrow_transfer:15,escrow_dispute:16,escrow_release:17,escrow_approve:18,delegate_vesting_shares:19,account_create:20,account_metadata:21,proposal_create:22,proposal_update:23,proposal_delete:24,chain_properties_update:25,author_reward:26,curation_reward:27,content_reward:28,fill_vesting_withdraw:29,shutdown_validator:30,hardfork:31,content_payout_update:32,content_benefactor_reward:33,return_vesting_delegation:34,committee_worker_create_request:35,committee_worker_cancel_request:36,committee_vote_request:37,committee_cancel_request:38,committee_approve_request:39,committee_payout_request:40,committee_pay_request:41,validator_reward:42,create_invite:43,claim_invite_balance:44,invite_registration:45,versioned_chain_properties_update:46,award:47,receive_award:48,benefactor_award:49,set_paid_subscription:50,paid_subscribe:51,paid_subscription_action:52,cancel_paid_subscription:53,set_account_price:54,set_subaccount_price:55,buy_account:56,account_sale:57,use_invite_balance:58,expire_escrow_ratification:59,fixed_award:60,target_account_sale:61,bid:62,outbid:63,set_reward_sharing:64,stakeholder_reward:65,pm_oracle_register:66,pm_oracle_update:67,pm_create_market:68,pm_oracle_accept_market:69,pm_place_bet:70,pm_commit_bet:71,pm_reveal_bet:72,pm_cancel_bet:73,pm_add_liquidity:74,pm_withdraw_liquidity:75,pm_resolve_market:76,pm_no_contest:77,pm_dispute_create:78,pm_dispute_vote:79,pm_dispute_resolve:80,pm_transfer_position:81,pm_lazy_deposit:82,pm_lazy_withdraw:83,pm_batch_settle:84,pm_commit_forfeit:85,pm_auto_payout:86,pm_dispute_finalize:87,pm_dispute_auto_close:88,pm_oracle_missed_penalty:89,pm_lazy_recall:90,pm_leverage_open:91,pm_leverage_close:92,pm_leverage_convert:93,pm_leverage_liquidate:94,pm_leverage_resolve:95,pm_market_accepted:96,pm_payout:97,pm_dispute_oracle_respond:98,pm_unban:99,pm_ban_expired:100,witness_update:6,account_witness_vote:7,account_witness_proxy:8,shutdown_witness:30,witness_reward:42},r.object_type={null:0,base:1}},function(t,e,r){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(230).Long,o=r(277),a=i.fromNumber(Math.pow(2,48)-1),s=function(){function t(e,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.space=e,this.type=r,this.instance=n;var i=this.instance.toString(),a=this.space+"."+this.type+"."+i;if(!o.is_digits(i))throw new("Invalid object id "+a)}return n(t,[{key:"toLong",value:function(){return i.fromNumber(this.space).shiftLeft(56).or(i.fromNumber(this.type).shiftLeft(48).or(this.instance))}},{key:"appendByteBuffer",value:function(t){return t.writeUint64(this.toLong())}},{key:"toString",value:function(){return this.space+"."+this.type+"."+this.instance.toString()}}],[{key:"fromString",value:function(e){if(void 0!==e.space&&void 0!==e.type&&void 0!==e.instance)return e;var r=o.require_match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/,o.required(e,"object_id"),"object_id");return new t(parseInt(r[1]),parseInt(r[2]),i.fromString(r[3]))}},{key:"fromLong",value:function(e){return new t(e.shiftRight(56).toInt(),255&e.shiftRight(48).toInt(),e.and(a))}},{key:"fromByteBuffer",value:function(e){return t.fromLong(e.readUint64())}}]),t}();t.exports=s},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(175);var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,null,[{key:"fixed_data",value:function(t,r,n){if(t){if(!n){var i=t.copy(t.offset,t.offset+r);return t.skip(r),new e(i.toBinary(),"binary")}var o=n.slice(0,r).toString("binary");for(t.append(o,"binary");r-- >o.length;)t.writeUint8(0)}}},{key:"public_key",value:function(e,r){if(e){if(!r)return n=t.fixed_data(e,33),i.PublicKey.fromBuffer(n);var n=r.toBuffer();e.append(n.toString("binary"),"binary")}}},{key:"ripemd160",value:function(e,r){if(e)return r?void t.fixed_data(e,20,r):t.fixed_data(e,20)}},{key:"time_point_sec",value:function(t,e){return e?(e=Math.ceil(e/1e3),void t.writeInt32(e)):(e=t.readInt32(),new Date(1e3*e))}}]),t}();t.exports=o}).call(e,r(177).Buffer)},function(t,e,r){(function(e,n){"use strict";var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var o=r(230),a=r(282),s=e.env.npm_config__graphene_serializer_hex_dump,u=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.operation_name=e,this.types=r,this.types&&(this.keys=Object.keys(this.types)),t.printDebug=!0}return i(t,[{key:"fromByteBuffer",value:function(e){var r={},n=null;try{for(var i=this.keys,o=0;o<i.length;o++){n=i[o];var u=this.types[n];try{if(s)if(u.operation_name)console.error(u.operation_name);else{var f=e.offset;u.fromByteBuffer(e);var c=e.offset;e.offset=f;var l=e.copy(f,c);console.error(this.operation_name+"."+n+"\t",l.toHex())}r[n]=u.fromByteBuffer(e)}catch(r){throw t.printDebug&&(console.error("Error reading "+this.operation_name+"."+n+" in data:"),e.printDebug()),r}}}catch(t){a.throw(this.operation_name+"."+n,t)}return r}},{key:"appendByteBuffer",value:function(e,r){var n=null;try{for(var i=this.keys,o=0;o<i.length;o++){n=i[o];var s=this.types[n],u=r[n];void 0===u&&void 0!==t.field_aliases[n]&&(u=r[t.field_aliases[n]]),s.appendByteBuffer(e,u)}}catch(t){try{a.throw(this.operation_name+"."+n+" = "+JSON.stringify(r[n]),t)}catch(e){a.throw(this.operation_name+"."+n+" = "+r[n],t)}}}},{key:"fromObject",value:function(e){var r={},n=null;try{for(var i=this.keys,o=0;o<i.length;o++){n=i[o];var s=this.types[n],u=e[n];void 0===u&&void 0!==t.field_aliases[n]&&(u=e[t.field_aliases[n]]);var f=s.fromObject(u);r[n]=f}}catch(t){a.throw(this.operation_name+"."+n,t)}return r}},{key:"toObject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{use_default:!1,annotate:!1},r={},n=null;try{if(!this.types)return r;for(var i=this.keys,u=0;u<i.length;u++){n=i[u];var f=this.types[n],c=f.toObject(null!=t?t[n]:void 0,e);if(r[n]=c,s){var l=new o(o.DEFAULT_CAPACITY,o.LITTLE_ENDIAN);if(null!=t){var h=t[n];h&&f.appendByteBuffer(l,h)}l=l.copy(0,l.offset),console.error(this.operation_name+"."+n,l.toHex())}}}catch(t){a.throw(this.operation_name+"."+n,t)}return r}},{key:"compare",value:function(t,e){var r=this.keys[0],i=this.types[r],o=t[r],a=e[r];if(i.compare)return i.compare(o,a);if("number"==typeof o&&"number"==typeof a)return o-a;var s=void 0;n.isBuffer(o)&&n.isBuffer(a)&&(s="hex");var u=o.toString(s),f=a.toString(s);return u>f?1:u<f?-1:0}},{key:"fromHex",value:function(t){var e=o.fromHex(t,o.LITTLE_ENDIAN);return this.fromByteBuffer(e)}},{key:"fromBuffer",value:function(t){var e=o.fromBinary(t.toString("binary"),o.LITTLE_ENDIAN);return this.fromByteBuffer(e)}},{key:"toHex",value:function(t){return this.toByteBuffer(t).toHex()}},{key:"toByteBuffer",value:function(t){var e=new o(o.DEFAULT_CAPACITY,o.LITTLE_ENDIAN);return this.appendByteBuffer(e,t),e.copy(0,e.offset)}},{key:"toBuffer",value:function(t){return new n(this.toByteBuffer(t).toBinary(),"binary")}}]),t}();u.field_aliases={validator:"witness",validator_signature:"witness_signature",inflation_validator_percent:"inflation_witness_percent",validator_miss_penalty_percent:"witness_miss_penalty_percent",validator_miss_penalty_duration:"witness_miss_penalty_duration",validator_declaration_fee:"witness_declaration_fee"},t.exports=u}).call(e,r(5),r(177).Buffer)},function(t,e){"use strict";var r=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var n=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.message=e,(null!=r?r.message:void 0)&&(this.message="cause\t"+r.message+"\t"+this.message);var n="";(null!=r?r.stack:void 0)&&(n="caused by\n\t"+r.stack+"\t"+n),this.stack=this.message+"\n"+n}return r(t,null,[{key:"throw",value:function(t,e){var r=t;throw(null!=e?e.message:void 0)&&(r+="\t cause: "+e.message+" "),(null!=e?e.stack:void 0)&&(r+="\n stack: "+e.stack+" "),new Error(r)}}]),t}();t.exports=n},function(t,e,r){(function(n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=_(r(3)),a=_(r(168)),s=_(r(284)),u=_(r(285)),f=_(r(286)),c=_(r(299)),l=_(r(1)),h=_(r(273)),p=r(174),d=_(r(171));function _(t){return t&&t.__esModule?t:{default:t}}var v=(0,a.default)("viz:broadcast"),y=(0,f.default)(l.default),g={send:function(t,e,r){g._prepareTransaction(t).then(function(t){return v("Signing transaction (transaction, transaction.operations)",t,t.operations),o.default.join(t,h.default.signTransaction(t,e))}).spread(function(t,e){return v("Broadcasting transaction (transaction, transaction.operations)",t,t.operations),d.default.get("broadcast_transaction_with_callback")?l.default.broadcastTransactionWithCallbackAsync(function(){},e).then(function(){return e}):l.default.broadcastTransactionAsync(e).then(function(){return e})}).nodeify(r||s.default)},_prepareTransaction:function(t){return l.default.getDynamicGlobalPropertiesAsync().then(function(e){var r=new Date(e.time+"Z"),i=d.default.get("tx_expiration_seconds")||60,o=new Date(r.getTime()+1e3*i);if(d.default.get("reference_irreversible_block")&&void 0!==e.last_irreversible_block_ref_num&&0!==e.last_irreversible_block_ref_num)return Object.assign({ref_block_num:e.last_irreversible_block_ref_num,ref_block_prefix:e.last_irreversible_block_ref_prefix,expiration:o},t);var a=65535&e.head_block_number;if(e.head_block_id){var s=new n(e.head_block_id,"hex").readUInt32LE(4);return Object.assign({ref_block_num:a,ref_block_prefix:s,expiration:o},t)}var u=e.head_block_number-3&65535;return l.default.getBlockAsync(e.head_block_number-2).then(function(e){var r=e.previous;return Object.assign({ref_block_num:u,ref_block_prefix:new n(r,"hex").readUInt32LE(4),expiration:o},t)})})}};c.default.forEach(function(t){var e=(0,p.camelCase)(t.operation),r=t.params||[],n=-1!==r.indexOf("parent_permlink")&&-1!==r.indexOf("parent_permlink");g[e+"With"]=function(r,i,o){v('Sending operation "'+e+'" with',{options:i,callback:o});var a={};return t.roles&&t.roles.length&&(a[t.roles[0]]=r),g.send({extensions:[],operations:[[t.operation,Object.assign({},i,null!=i.json_metadata?{json_metadata:m(i.json_metadata)}:{},n&&null==i.permlink?{permlink:y.contentPermlink(i.parent_author,i.parent_permlink)}:{})]]},a,o)},g[e]=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];v('Parsing operation "'+e+'" with',{args:i});var a=r.reduce(function(t,e,r){return t[e]=i[r],t},{}),s=i[r.length];return g[e+"With"](t,a,s)}});var m=function(t){return"object"===(void 0===t?"undefined":i(t))?JSON.stringify(t):t};(0,u.default)(g),o.default.promisifyAll(g),e=t.exports=g}).call(e,r(177).Buffer)},function(t,e){t.exports=function(){}},function(t,e,r){"use strict";var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(r(1));t.exports=function(t){t.addAccountAuth=function(e,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"regular",s=arguments[4];i.default.getAccountsAsync([r]).then(function(r){var i=n(r,1)[0],u=i[a];if(-1!==u.account_auths.map(function(t){return t[0]}).indexOf(o))return s(null,null);u.account_auths.push([o,1]);var f="master"===a?u:void 0,c="active"===a?u:void 0,l="regular"===a?u:void 0;t.accountUpdate(e,i.name,f,c,l,i.memo_key,i.json_metadata,s)})},t.removeAccountAuth=function(e,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"regular",s=arguments[4];i.default.getAccountsAsync([r]).then(function(r){for(var i=n(r,1)[0],u=i[a],f=u.account_auths.length,c=0;c<f;c++){if(u.account_auths[c][0]===o){u.account_auths.splice(c,1);break}}if(f===u.account_auths.length)return s(null,null);var l="master"===a?u:void 0,h="active"===a?u:void 0,p="regular"===a?u:void 0;t.accountUpdate(e,i.name,l,h,p,i.memo_key,i.json_metadata,s)})}}},function(t,e,r){(function(e){"use strict";o(r(287));var n=r(175),i=o(r(185));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){function r(t){return"string"==typeof t&&-1!==t.indexOf(" ")?BigInt(Math.round(1e3*parseFloat(t.trim().split(" ")[0]))):BigInt(t)}function o(t,e){var r=parseFloat(t.vesting_shares.split(" ")[0]),n=parseFloat(e.total_vesting_shares.split(" ")[0]);return parseFloat(e.total_vesting_fund.split(" ")[0])*(r/n)}return{sharesToVIZ:function(t,e,r){return parseFloat(r)*(parseFloat(t)/parseFloat(e))},contentPermlink:function(t,e){var r=(new Date).toISOString().replace(/[^a-zA-Z0-9]+/g,"").toLowerCase();return"re-"+t+"-"+(e=e.replace(/(-\d{8}t\d{9}z)/g,""))+"-"+r},amount:function(t,e){return t.toFixed(3)+" "+e},predictionMarketCommitment:function(t,n,o,a,s,u,f){var c=e.alloc(59);c.writeBigInt64LE(BigInt(t),0),e.from(String(n),"ascii").copy(c,8,0,32),c.writeInt8(o,40),c.writeInt16LE(a,41),c.writeBigInt64LE(r(s),43),c.writeBigInt64LE(BigInt(u),51);var l=e.concat([c,e.from(f,"utf8")]);return i.default.sha256(l,"hex")},toMilliVIZ:r,numberWithCommas:function(t){return t.replace(/\B(?=(\d{3})+(?!\d))/g,",")},vestingVIZ:o,estimateAccountValue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.gprops,i=r.vesting_viz,a=[];return e.name,i||(n?i=o(e,n):a.push(t.getStateAsync("/@{username}").then(function(t){n=t.props,i=o(e,n)}))),Promise.all(a).then(function(){var t=parseFloat(e.balance.split(" ")[0]);return(i+t).toFixed(3)})},createSuggestedPassword:function(){return n.key_utils.get_random_key().toWif().substring(3,35)}}}}).call(e,r(177).Buffer)},function(t,e,r){var n=r(288);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},function(t,e,r){var n=r(289),i=r(298);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},function(t,e,r){var n=r(100),i=r(290),o=r(292),a=r(295);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,r){var n=r(100),i=r(291),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,r){var n=r(62),i=r(99),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&n(t)==o}},function(t,e,r){var n=r(293),i=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=n(function(t){var e=[];return i.test(t)&&e.push(""),t.replace(o,function(t,r,n,i){e.push(n?i.replace(a,"$1"):r||t)}),e});t.exports=s},function(t,e,r){var n=r(294),i=500;t.exports=function(t){var e=n(t,function(t){return r.size===i&&r.clear(),t}),r=e.cache;return e}},function(t,e,r){var n=r(73),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},function(t,e,r){var n=r(296);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(63),i=r(297),o=r(100),a=r(291),s=1/0,u=n?n.prototype:void 0,f=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return f?f.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},function(t,e,r){var n=r(291),i=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},function(t,e){"use strict";t.exports=[{roles:["regular"],operation:"vote",params:["voter","author","permlink","weight"]},{roles:["regular"],operation:"content",params:["parent_author","parent_permlink","author","permlink","title","body","curation_percent","json_metadata","extensions"]},{roles:["active","master"],operation:"transfer",params:["from","to","amount","memo"]},{roles:["active"],operation:"transfer_to_vesting",params:["from","to","amount"]},{roles:["active"],operation:"withdraw_vesting",params:["account","vesting_shares"]},{roles:["master","active"],operation:"account_update",params:["account","master","active","regular","memo_key","json_metadata"]},{roles:["active"],operation:"validator_update",params:["owner","url","block_signing_key"]},{roles:["active"],operation:"witness_update",params:["owner","url","block_signing_key"]},{roles:["active"],operation:"chain_properties_update",params:["owner","props"]},{roles:["regular"],operation:"account_validator_vote",params:["account","validator","approve"]},{roles:["regular"],operation:"account_witness_vote",params:["account","witness","approve"]},{roles:["regular"],operation:"account_validator_proxy",params:["account","proxy"]},{roles:["regular"],operation:"account_witness_proxy",params:["account","proxy"]},{roles:["regular"],operation:"delete_content",params:["author","permlink"]},{roles:["regular","active"],operation:"custom",params:["required_active_auths","required_regular_auths","id","json"]},{roles:["active"],operation:"set_withdraw_vesting_route",params:["from_account","to_account","percent","auto_vest"]},{roles:["active"],operation:"request_account_recovery",params:["recovery_account","account_to_recover","new_master_authority","extensions"]},{roles:["master"],operation:"recover_account",params:["account_to_recover","new_master_authority","recent_master_authority","extensions"]},{roles:["master"],operation:"change_recovery_account",params:["account_to_recover","new_recovery_account","extensions"]},{roles:["active"],operation:"escrow_transfer",params:["from","to","token_amount","escrow_id","agent","fee","json_metadata","ratification_deadline","escrow_expiration"]},{roles:["active"],operation:"escrow_dispute",params:["from","to","agent","who","escrow_id"]},{roles:["active"],operation:"escrow_release",params:["from","to","agent","who","receiver","escrow_id","token_amount"]},{roles:["active"],operation:"escrow_approve",params:["from","to","agent","who","escrow_id","approve"]},{roles:["regular"],operation:"claim_reward_balance",params:["account","reward","reward_vests"]},{roles:["regular"],operation:"content_reward",params:["author","permlink","payout"]},{roles:["active"],operation:"fill_vesting_withdraw",params:["from_account","to_account","withdrawn","deposited"]},{roles:["active","master"],operation:"delegate_vesting_shares",params:["delegator","delegatee","vesting_shares"]},{roles:["active","master"],operation:"account_create",params:["fee","delegation","creator","new_account_name","master","active","regular","memo_key","json_metadata","referrer","extensions"]},{roles:["regular"],operation:"account_metadata",params:["account","json_metadata"]},{roles:["active","master"],operation:"proposal_create",params:["author","title","memo","expiration_time","proposed_operations","review_period_time","extensions"]},{roles:["regular","active","master"],operation:"proposal_update",params:["author","title","active_approvals_to_add","active_approvals_to_remove","master_approvals_to_add","master_approvals_to_remove","regular_approvals_to_add","regular_approvals_to_remove","key_approvals_to_add","key_approvals_to_remove","extensions"]},{roles:["active","master"],operation:"proposal_delete",params:["author","title","requester","extensions"]},{roles:["regular"],operation:"committee_worker_create_request",params:["creator","url","worker","required_amount_min","required_amount_max","duration"]},{roles:["regular"],operation:"committee_worker_cancel_request",params:["creator","request_id"]},{roles:["regular"],operation:"committee_vote_request",params:["voter","request_id","vote_percent"]},{roles:["active"],operation:"create_invite",params:["creator","balance","invite_key"]},{roles:["active"],operation:"claim_invite_balance",params:["initiator","receiver","invite_secret"]},{roles:["active"],operation:"invite_registration",params:["initiator","new_account_name","invite_secret","new_account_key"]},{roles:["active"],operation:"versioned_chain_properties_update",params:["owner","props"]},{roles:["regular"],operation:"award",params:["initiator","receiver","energy","custom_sequence","memo","beneficiaries"]},{roles:["regular"],operation:"fixed_award",params:["initiator","receiver","reward_amount","max_energy","custom_sequence","memo","beneficiaries"]},{roles:["active"],operation:"set_paid_subscription",params:["account","url","levels","amount","period"]},{roles:["active"],operation:"paid_subscribe",params:["subscriber","account","level","amount","period","auto_renewal"]},{roles:["master"],operation:"set_account_price",params:["account","account_seller","account_offer_price","account_on_sale"]},{roles:["master"],operation:"target_account_sale",params:["account","account_seller","target_buyer","account_offer_price","account_on_sale"]},{roles:["master"],operation:"set_subaccount_price",params:["account","subaccount_seller","subaccount_offer_price","subaccount_on_sale"]},{roles:["active"],operation:"buy_account",params:["buyer","account","account_offer_price","account_authorities_key","tokens_to_shares"]},{roles:["active"],operation:"use_invite_balance",params:["initiator","receiver","invite_secret"]},{roles:["active"],operation:"set_reward_sharing",params:["owner","sharing_rate"]},{roles:["active"],operation:"pm_oracle_register",params:["owner","insurance","fee_percent","fixed_fee","rules_url","auto_accept_creator","auto_accept_resolver","auto_accept","extensions"]},{roles:["active"],operation:"pm_oracle_update",params:["owner","insurance_delta","fee_percent","fixed_fee","rules_url","auto_accept_creator","auto_accept_resolver","auto_accept","extensions"]},{roles:["active"],operation:"pm_create_market",params:["creator","oracle","market_type","outcomes","url","oracle_fee_percent","oracle_fixed_fee","creator_fee_percent","liquidity_fee_percent","liquidity","lmsr_b","betting_expiration","result_expiration","time_penalty_type","time_penalty_value","penalty_curve_type","allow_early_resolution","allow_cancellation","allow_batch","allow_instant_bet","endogeneity_tier","dispute_mode","dispute_resolver","dispute_penalty_percent","metadata","extensions"]},{roles:["active"],operation:"pm_oracle_accept_market",params:["oracle","market_id","accept","oracle_fee_percent","oracle_fixed_fee","extensions"]},{roles:["active"],operation:"pm_place_bet",params:["account","market_id","side","outcome_index","amount","min_tokens","mode","extensions"]},{roles:["active"],operation:"pm_commit_bet",params:["account","market_id","commitment","escrow_amount","no_reveal_fee_percent","extensions"]},{roles:["active"],operation:"pm_reveal_bet",params:["account","commit_id","side","outcome_index","amount","salt","min_tokens","extensions"]},{roles:["active"],operation:"pm_cancel_bet",params:["account","bet_id","min_return","extensions"]},{roles:["active"],operation:"pm_add_liquidity",params:["provider","market_id","amount","extensions"]},{roles:["active"],operation:"pm_withdraw_liquidity",params:["provider","liquidity_id","amount","extensions"]},{roles:["active"],operation:"pm_resolve_market",params:["oracle","market_id","winning_outcome","decision_url","decision_reason","extensions"]},{roles:["active"],operation:"pm_no_contest",params:["oracle","market_id","reason","extensions"]},{roles:["active"],operation:"pm_dispute_create",params:["disputer","market_id","proposed_outcome","reason","extensions"]},{roles:["regular"],operation:"pm_dispute_vote",params:["voter","market_id","vote_outcome","vote_percent","extensions"]},{roles:["active"],operation:"pm_dispute_resolve",params:["resolver","market_id","correct_outcome","penalty_amount","ban_oracle","ban_oracle_until","ban_creator","ban_creator_until","extensions"]},{roles:["active"],operation:"pm_transfer_position",params:["from","bet_id","to","amount","memo","extensions"]},{roles:["active"],operation:"pm_lazy_deposit",params:["account","amount","extensions"]},{roles:["active"],operation:"pm_lazy_withdraw",params:["account","shares","emergency","extensions"]},{roles:["active"],operation:"pm_leverage_open",params:["account","market_id","outcome_index","collateral","loan","min_tokens","max_slippage_percent","extensions"]},{roles:["active"],operation:"pm_leverage_close",params:["account","position_id","min_return","extensions"]},{roles:["active"],operation:"pm_leverage_convert",params:["account","position_id","conversion_profit_cost","extensions"]},{roles:["active"],operation:"pm_dispute_oracle_respond",params:["oracle","market_id","response","extensions"]},{roles:["active"],operation:"pm_unban",params:["resolver","target","unban_oracle","unban_creator","extensions"]}]},function(t,e,r){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.decode=c,e.encode=l;var i=u(r(230)),o=u(r(181)),a=u(r(225)),s=r(175);function u(t){return t&&t.__esModule?t:{default:t}}var f=r(301).ops.encrypted_memo;function c(e,r){if((0,o.default)(r,"memo is required"),o.default.equal(void 0===r?"undefined":n(r),"string","memo"),!/^#/.test(r))return r;r=r.substring(1),(0,o.default)(e,"private_key is required"),p(),e=d(e),r=a.default.decode(r);var u=r=f.fromBuffer(new t(r,"binary")),c=u.from,l=u.to,h=u.nonce,_=u.check,v=u.encrypted,y=e.toPublicKey().toString()===c.toString()?l.toString():c.toString();r=s.Aes.decrypt(e,y,h,v,_);var g=i.default.fromBinary(r.toString("binary"),i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);try{return g.mark(),"#"+g.readVString()}catch(e){return g.reset(),"#"+(r=new t(g.toString("binary"),"binary").toString("utf-8"))}}function l(e,r,u,c){if((0,o.default)(u,"memo is required"),o.default.equal(void 0===u?"undefined":n(u),"string","memo"),!/^#/.test(u))return u;u=u.substring(1),(0,o.default)(e,"private_key is required"),(0,o.default)(r,"public_key is required"),p(),e=d(e),r=_(r);var l=new i.default(i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);l.writeVString(u),u=new t(l.copy(0,l.offset).toBinary(),"binary");var h=s.Aes.encrypt(e,r,u,c),v=h.nonce,y=h.message,g=h.checksum;return u=f.fromObject({from:e.toPublicKey(),to:r,nonce:v,check:g,encrypted:y}),u=f.toBuffer(u),"#"+a.default.encode(new t(u,"binary"))}var h=void 0;function p(){if(void 0===h){var t=void 0;h=!0;try{var e="5JdeC9P7Pbd1uGdFVEsJ41EkEnADbbHGq6p1BwFxm6txNBsQnsw";t=c(e,l(e,"VIZ8m5UgaFAAYQRuaNejYdS8FVLVp9Ss3K1qAVk5de6F8s3HnVbvA","#memo爱"))}catch(t){console.error(t)}finally{h="#memo爱"===t}}if(!1===h)throw new Error("This environment does not support encryption.")}var d=function(t){return t?t.d?t:s.PrivateKey.fromWif(t):t},_=function(t){return t?t.Q?t:s.PublicKey.fromString(t):t}}).call(e,r(177).Buffer)},function(t,e,r){"use strict";t.exports={Serializer:r(281),fp:r(280),types:r(275),ops:r(274),template:r(302),number_utils:r(276)}},function(t,e){"use strict";t.exports=function(t){var e=t.toObject(void 0,{use_default:!0,annotate:!0});console.error(JSON.stringify(e,null,4)),e=t.toObject(void 0,{use_default:!0,annotate:!1}),console.error(JSON.stringify(e))}}]));
34
+ !function(a,s){r(231).amd?(i=[],void 0===(o="function"==typeof(n=s)?n.apply(e,i):n)||(t.exports=o)):"object"==typeof t&&t&&t.exports?t.exports=s():(a.dcodeIO=a.dcodeIO||{}).Long=s()}(this,function(){"use strict";function t(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function e(t){return!0===(t&&t.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var r={},n={};function i(t,e){var i,o,s;return e?(s=0<=(t>>>=0)&&t<256)&&(o=n[t])?o:(i=a(t,(0|t)<0?-1:0,!0),s&&(n[t]=i),i):(s=-128<=(t|=0)&&t<128)&&(o=r[t])?o:(i=a(t,t<0?-1:0,!1),s&&(r[t]=i),i)}function o(t,e){if(isNaN(t)||!isFinite(t))return e?_:d;if(e){if(t<0)return _;if(t>=l)return b}else{if(t<=-h)return w;if(t+1>=h)return m}return t<0?o(-t,e).neg():a(t%c|0,t/c|0,e)}function a(e,r,n){return new t(e,r,n)}t.fromInt=i,t.fromNumber=o,t.fromBits=a;var s=Math.pow;function u(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return d;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return u(t.substring(1),e,r).neg();for(var i=o(s(r,8)),a=d,f=0;f<t.length;f+=8){var c=Math.min(8,t.length-f),l=parseInt(t.substring(f,f+c),r);if(c<8){var h=o(s(r,c));a=a.mul(h).add(o(l))}else a=(a=a.mul(i)).add(o(l))}return a.unsigned=e,a}function f(e){return e instanceof t?e:"number"==typeof e?o(e):"string"==typeof e?u(e):a(e.low,e.high,e.unsigned)}t.fromString=u,t.fromValue=f;var c=4294967296,l=c*c,h=l/2,p=i(1<<24),d=i(0);t.ZERO=d;var _=i(0,!0);t.UZERO=_;var v=i(1);t.ONE=v;var y=i(1,!0);t.UONE=y;var g=i(-1);t.NEG_ONE=g;var m=a(-1,2147483647,!1);t.MAX_VALUE=m;var b=a(-1,-1,!0);t.MAX_UNSIGNED_VALUE=b;var w=a(0,-2147483648,!1);t.MIN_VALUE=w;var E=t.prototype;return E.toInt=function(){return this.unsigned?this.low>>>0:this.low},E.toNumber=function(){return this.unsigned?(this.high>>>0)*c+(this.low>>>0):this.high*c+(this.low>>>0)},E.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(w)){var e=o(t),r=this.div(e),n=r.mul(e).sub(this);return r.toString(t)+n.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var i=o(s(t,6),this.unsigned),a=this,u="";;){var f=a.div(i),c=(a.sub(f.mul(i)).toInt()>>>0).toString(t);if((a=f).isZero())return c+u;for(;c.length<6;)c="0"+c;u=""+c+u}},E.getHighBits=function(){return this.high},E.getHighBitsUnsigned=function(){return this.high>>>0},E.getLowBits=function(){return this.low},E.getLowBitsUnsigned=function(){return this.low>>>0},E.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<<e);e--);return 0!=this.high?e+33:e+1},E.isZero=function(){return 0===this.high&&0===this.low},E.isNegative=function(){return!this.unsigned&&this.high<0},E.isPositive=function(){return this.unsigned||this.high>=0},E.isOdd=function(){return 1==(1&this.low)},E.isEven=function(){return 0==(1&this.low)},E.equals=function(t){return e(t)||(t=f(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},E.eq=E.equals,E.notEquals=function(t){return!this.eq(t)},E.neq=E.notEquals,E.lessThan=function(t){return this.comp(t)<0},E.lt=E.lessThan,E.lessThanOrEqual=function(t){return this.comp(t)<=0},E.lte=E.lessThanOrEqual,E.greaterThan=function(t){return this.comp(t)>0},E.gt=E.greaterThan,E.greaterThanOrEqual=function(t){return this.comp(t)>=0},E.gte=E.greaterThanOrEqual,E.compare=function(t){if(e(t)||(t=f(t)),this.eq(t))return 0;var r=this.isNegative(),n=t.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},E.comp=E.compare,E.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(v)},E.neg=E.negate,E.add=function(t){e(t)||(t=f(t));var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,s=t.high>>>16,u=65535&t.high,c=t.low>>>16,l=0,h=0,p=0,d=0;return p+=(d+=o+(65535&t.low))>>>16,h+=(p+=i+c)>>>16,l+=(h+=n+u)>>>16,l+=r+s,a((p&=65535)<<16|(d&=65535),(l&=65535)<<16|(h&=65535),this.unsigned)},E.subtract=function(t){return e(t)||(t=f(t)),this.add(t.neg())},E.sub=E.subtract,E.multiply=function(t){if(this.isZero())return d;if(e(t)||(t=f(t)),t.isZero())return d;if(this.eq(w))return t.isOdd()?w:d;if(t.eq(w))return this.isOdd()?w:d;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(p)&&t.lt(p))return o(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,u=t.high>>>16,c=65535&t.high,l=t.low>>>16,h=65535&t.low,_=0,v=0,y=0,g=0;return y+=(g+=s*h)>>>16,v+=(y+=i*h)>>>16,y&=65535,v+=(y+=s*l)>>>16,_+=(v+=n*h)>>>16,v&=65535,_+=(v+=i*l)>>>16,v&=65535,_+=(v+=s*c)>>>16,_+=r*h+n*l+i*c+s*u,a((y&=65535)<<16|(g&=65535),(_&=65535)<<16|(v&=65535),this.unsigned)},E.mul=E.multiply,E.divide=function(t){if(e(t)||(t=f(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?_:d;var r,n,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return _;if(t.gt(this.shru(1)))return y;i=_}else{if(this.eq(w))return t.eq(v)||t.eq(g)?w:t.eq(w)?v:(r=this.shr(1).div(t).shl(1)).eq(d)?t.isNegative()?v:g:(n=this.sub(t.mul(r)),i=r.add(n.div(t)));else if(t.eq(w))return this.unsigned?_:d;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=d}for(n=this;n.gte(t);){r=Math.max(1,Math.floor(n.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),u=a<=48?1:s(2,a-48),c=o(r),l=c.mul(t);l.isNegative()||l.gt(n);)l=(c=o(r-=u,this.unsigned)).mul(t);c.isZero()&&(c=v),i=i.add(c),n=n.sub(l)}return i},E.div=E.divide,E.modulo=function(t){return e(t)||(t=f(t)),this.sub(this.div(t).mul(t))},E.mod=E.modulo,E.not=function(){return a(~this.low,~this.high,this.unsigned)},E.and=function(t){return e(t)||(t=f(t)),a(this.low&t.low,this.high&t.high,this.unsigned)},E.or=function(t){return e(t)||(t=f(t)),a(this.low|t.low,this.high|t.high,this.unsigned)},E.xor=function(t){return e(t)||(t=f(t)),a(this.low^t.low,this.high^t.high,this.unsigned)},E.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):a(0,this.low<<t-32,this.unsigned)},E.shl=E.shiftLeft,E.shiftRight=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):a(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},E.shr=E.shiftRight,E.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0===(t&=63))return this;var r=this.high;return t<32?a(this.low>>>t|r<<32-t,r>>>t,this.unsigned):a(32===t?r:r>>>t-32,0,this.unsigned)},E.shru=E.shiftRightUnsigned,E.toSigned=function(){return this.unsigned?a(this.low,this.high,!1):this},E.toUnsigned=function(){return this.unsigned?this:a(this.low,this.high,!0)},E.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},E.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},E.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t})}).call(e,r(102)(t))},function(t,e,r){var n=r(234);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv;var i=r(249);e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv;var o=r(236);e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},function(t,e,r){(function(t){var n=r(235),i=r(222),o=r(187),a=r(236),s=r(237),u=r(238),f=r(239);function c(e,r,o){if(!(this instanceof c))return new c(e,r,o);i.call(this),this._cache=new l,this._cipher=new n.AES(r),this._prev=new t(o.length),o.copy(this._prev),this._mode=e,this._autopadding=!0}function l(){if(!(this instanceof l))return new l;this.cache=new t("")}o(c,i),c.prototype._update=function(e){var r,n;this._cache.add(e);for(var i=[];r=this._cache.get();)n=this._mode.encrypt(this,r),i.push(n);return t.concat(i)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if("10101010101010101010101010101010"!==t.toString("hex"))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(e){this.cache=t.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,r=new t(e),n=-1;++n<e;)r.writeUInt8(e,n);return t.concat([this.cache,r])};var h={ECB:r(242),CBC:r(243),CFB:r(244),CFB8:r(245),CFB1:r(246),OFB:r(247),CTR:r(248),GCM:r(248)};function p(e,r,n){var i=a[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=new t(n)),"string"==typeof r&&(r=new t(r)),r.length!==i.key/8)throw new TypeError("invalid key length "+r.length);if(n.length!==i.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===i.type?new u(h[i.mode],r,n):"auth"===i.type?new f(h[i.mode],r,n):new c(h[i.mode],r,n)}e.createCipheriv=p,e.createCipher=function(t,e){var r=a[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=s(e,!1,r.key,r.iv);return p(t,n.key,n.iv)}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var r=Math.pow(2,32);function n(t){var e;return t>r||t<0?(e=Math.abs(t)%r,t<0?r-e:e):t}function i(t){for(;0<t.length;t++)t[0]=0;return!1}function o(){this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=[[],[],[],[]],this.INV_SUB_MIX=[[],[],[],[]],this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}o.prototype.init=function(){var t,e,r,n,i,o,a,s,u,f;for(t=function(){var t,r;for(r=[],e=t=0;t<256;e=++t)e<128?r.push(e<<1):r.push(e<<1^283);return r}(),i=0,u=0,e=f=0;f<256;e=++f)r=(r=u^u<<1^u<<2^u<<3^u<<4)>>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,s=t[a=t[o=t[i]]],n=257*t[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*s^65537*a^257*o^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=u=1:(i=o^t[t[t[s^o]]],u^=t[t[u]]);return!0};var a=new o;function s(t){for(var e=t.length/4,r=new Array(e),n=-1;++n<e;)r[n]=t.readUInt32BE(4*n);return r}function u(t){this._key=s(t),this._doReset()}u.blockSize=16,u.prototype.blockSize=u.blockSize,u.keySize=32,u.prototype.keySize=u.keySize,u.prototype._doReset=function(){var t,e,r,n,i,o;for(e=(r=this._key).length,this._nRounds=e+6,i=4*(this._nRounds+1),this._keySchedule=[],n=0;n<i;n++)this._keySchedule[n]=n<e?r[n]:(o=this._keySchedule[n-1],n%e==0?(o=o<<8|o>>>24,o=a.SBOX[o>>>24]<<24|a.SBOX[o>>>16&255]<<16|a.SBOX[o>>>8&255]<<8|a.SBOX[255&o],o^=a.RCON[n/e|0]<<24):e>6&&n%e==4&&(o=a.SBOX[o>>>24]<<24|a.SBOX[o>>>16&255]<<16|a.SBOX[o>>>8&255]<<8|a.SBOX[255&o]),this._keySchedule[n-e]^o);for(this._invKeySchedule=[],t=0;t<i;t++)n=i-t,o=this._keySchedule[n-(t%4?0:4)],this._invKeySchedule[t]=t<4||n<=4?o:a.INV_SUB_MIX[0][a.SBOX[o>>>24]]^a.INV_SUB_MIX[1][a.SBOX[o>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[o>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[255&o]];return!0},u.prototype.encryptBlock=function(e){e=s(new t(e));var r=this._doCryptBlock(e,this._keySchedule,a.SUB_MIX,a.SBOX),n=new t(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[1],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[3],12),n},u.prototype.decryptBlock=function(e){var r=[(e=s(new t(e)))[3],e[1]];e[1]=r[0],e[3]=r[1];var n=this._doCryptBlock(e,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX),i=new t(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},u.prototype._doCryptBlock=function(t,e,r,i){var o,a,s,u,f,c,l,h,p;a=t[0]^e[0],s=t[1]^e[1],u=t[2]^e[2],f=t[3]^e[3],o=4;for(var d=1;d<this._nRounds;d++)c=r[0][a>>>24]^r[1][s>>>16&255]^r[2][u>>>8&255]^r[3][255&f]^e[o++],l=r[0][s>>>24]^r[1][u>>>16&255]^r[2][f>>>8&255]^r[3][255&a]^e[o++],h=r[0][u>>>24]^r[1][f>>>16&255]^r[2][a>>>8&255]^r[3][255&s]^e[o++],p=r[0][f>>>24]^r[1][a>>>16&255]^r[2][s>>>8&255]^r[3][255&u]^e[o++],a=c,s=l,u=h,f=p;return c=(i[a>>>24]<<24|i[s>>>16&255]<<16|i[u>>>8&255]<<8|i[255&f])^e[o++],l=(i[s>>>24]<<24|i[u>>>16&255]<<16|i[f>>>8&255]<<8|i[255&a])^e[o++],h=(i[u>>>24]<<24|i[f>>>16&255]<<16|i[a>>>8&255]<<8|i[255&s])^e[o++],p=(i[f>>>24]<<24|i[a>>>16&255]<<16|i[s>>>8&255]<<8|i[255&u])^e[o++],[n(c),n(l),n(h),n(p)]},e.AES=u}).call(e,r(177).Buffer)},function(t,e){e["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},e["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},e["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},e["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},e["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},e["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},e.aes128=e["aes-128-cbc"],e.aes192=e["aes-192-cbc"],e.aes256=e["aes-256-cbc"],e["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},e["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},e["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},e["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},e["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},e["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},e["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},e["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},e["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},e["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},e["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},e["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},e["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},e["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},e["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},e["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},e["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},e["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},function(t,e,r){(function(e){var n=r(188);t.exports=function(t,r,i,o){e.isBuffer(t)||(t=new e(t,"binary"));r&&!e.isBuffer(r)&&(r=new e(r,"binary"));o=o||0;var a,s,u=0,f=0,c=new e(i/=8),l=new e(o),h=0,p=[];for(;;){if(h++>0&&p.push(a),p.push(t),r&&p.push(r),a=n(e.concat(p)),p=[],s=0,i>0)for(;0!==i&&s!==a.length;)c[u++]=a[s],i--,s++;if(o>0&&s!==a.length)for(;0!==o&&s!==a.length;)l[f++]=a[s],o--,s++;if(0===i&&0===o)break}for(s=0;s<a.length;s++)a[s]=0;return{key:c,iv:l}}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){var n=r(235),i=r(222);function o(t,r,a,s){if(!(this instanceof o))return new o(t,r,a);i.call(this),this._cipher=new n.AES(r),this._prev=new e(a.length),this._cache=new e(""),this._secCache=new e(""),this._decrypt=s,a.copy(this._prev),this._mode=t}r(187)(o,i),t.exports=o,o.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){var n=r(235),i=r(222),o=r(187),a=r(240),s=r(241);function u(t,r,o,s){if(!(this instanceof u))return new u(t,r,o);i.call(this),this._finID=e.concat([o,new e([0,0,0,1])]),o=e.concat([o,new e([0,0,0,2])]),this._cipher=new n.AES(r),this._prev=new e(o.length),this._cache=new e(""),this._secCache=new e(""),this._decrypt=s,this._alen=0,this._len=0,o.copy(this._prev),this._mode=t;var f=new e(4);f.fill(0),this._ghash=new a(this._cipher.encryptBlock(f)),this._authTag=null,this._called=!1}o(u,i),t.exports=u,u.prototype._update=function(t){if(!this._called&&this._alen){var r=16-this._alen%16;r<16&&((r=new e(r)).fill(0),this._ghash.update(r))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt){if(function(t,e){var r=0;t.length!==e.length&&r++;var n=Math.min(t.length,e.length),i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data")}else this._authTag=t;this._cipher.scrub()},u.prototype.getAuthTag=function(){if(!this._decrypt&&e.isBuffer(this._authTag))return this._authTag;throw new Error("Attempting to get auth tag in unsupported state")},u.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},u.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){var r=new e(16);function n(t){this.h=t,this.state=new e(16),this.state.fill(0),this.cache=new e("")}function i(t){t=t.map(a);var r=new e(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r}r.fill(0),t.exports=n,n.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},n.prototype._multiply=function(){for(var t,e,r=function(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}(this.h),n=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(n=s(n,r)),e=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,e&&(r[0]=r[0]^225<<24)}this.state=i(n)},n.prototype.update=function(t){var r;for(this.cache=e.concat([this.cache,t]);this.cache.length>=16;)r=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(r)},n.prototype.final=function(t,n){return this.cache.length&&this.ghash(e.concat([this.cache,r],16)),this.ghash(i([0,t,0,n])),this.state};var o=Math.pow(2,32);function a(t){var e;return t>o||t<0?(e=Math.abs(t)%o,t<0?o-e:e):t}function s(t,e){return[t[0]^e[0],t[1]^e[1],t[2]^e[2],t[3]^e[3]]}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}}).call(e,r(177).Buffer)},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,r){var n=r(241);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},function(t,e,r){(function(t){var n=r(241);function i(e,r,i){var o=r.length,a=n(r,e._cache);return e._cache=e._cache.slice(o),e._prev=t.concat([e._prev,i?r:a]),a}e.encrypt=function(e,r,n){for(var o,a=new t("");r.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=new t("")),!(e._cache.length<=r.length)){a=t.concat([a,i(e,r,n)]);break}o=e._cache.length,a=t.concat([a,i(e,r.slice(0,o),n)]),r=r.slice(o)}return a}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){function r(e,r,n){var i=e._cipher.encryptBlock(e._prev)[0]^r;return e._prev=t.concat([e._prev.slice(1),new t([n?r:i])]),i}e.encrypt=function(e,n,i){for(var o=n.length,a=new t(o),s=-1;++s<o;)a[s]=r(e,n[s],i);return a}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){function r(t,e,r){for(var i,o,a=-1,s=0;++a<8;)i=e&1<<7-a?128:0,s+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^i))>>a%8,t._prev=n(t._prev,r?i:o);return s}function n(e,r){var n=e.length,i=-1,o=new t(e.length);for(e=t.concat([e,new t([r])]);++i<n;)o[i]=e[i]<<1|e[i+1]>>7;return o}e.encrypt=function(e,n,i){for(var o=n.length,a=new t(o),s=-1;++s<o;)a[s]=r(e,n[s],i);return a}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var n=r(241);function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var n=r(241);function i(t){var e=t._cipher.encryptBlock(t._prev);return function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}(t._prev),e}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(e,r(177).Buffer)},function(t,e,r){(function(t){var n=r(235),i=r(222),o=r(187),a=r(236),s=r(238),u=r(239),f=r(237);function c(e,r,o){if(!(this instanceof c))return new c(e,r,o);i.call(this),this._cache=new l,this._last=void 0,this._cipher=new n.AES(r),this._prev=new t(o.length),o.copy(this._prev),this._mode=e,this._autopadding=!0}function l(){if(!(this instanceof l))return new l;this.cache=new t("")}o(c,i),c.prototype._update=function(e){var r,n;this._cache.add(e);for(var i=[];r=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,r),i.push(n);return t.concat(i)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15],r=-1;for(;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(e){this.cache=t.concat([this.cache,e])},l.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache};var h={ECB:r(242),CBC:r(243),CFB:r(244),CFB8:r(245),CFB1:r(246),OFB:r(247),CTR:r(248),GCM:r(248)};function p(e,r,n){var i=a[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=new t(n)),"string"==typeof r&&(r=new t(r)),r.length!==i.key/8)throw new TypeError("invalid key length "+r.length);if(n.length!==i.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===i.type?new s(h[i.mode],r,n,!0):"auth"===i.type?new u(h[i.mode],r,n,!0):new c(h[i.mode],r,n)}e.createDecipher=function(t,e){var r=a[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(e,!1,r.key,r.iv);return p(t,n.key,n.iv)},e.createDecipheriv=p}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(251),o=r(255),a=o.getCurveByName("secp256k1");i=r(251);var s=r(225),u=r(185),f=r(171),c=r(181),l=a.G,h=a.n,p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.Q=e}return n(t,[{key:"toBuffer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.Q?this.Q.compressed:null;return null===this.Q?e.from("000000000000000000000000000000000000000000000000000000000000000000","hex"):this.Q.getEncoded(t)}},{key:"toUncompressed",value:function(){var e=this.Q.getEncoded(!1),r=o.Point.decodeFrom(a,e);return t.fromPoint(r)}},{key:"toBlockchainAddress",value:function(){var t=this.toBuffer(),e=u.sha512(t);return u.ripemd160(e)}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.get("address_prefix");return this.toPublicKeyString(t)}},{key:"toPublicKeyString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.get("address_prefix");if(this.pubdata)return t+this.pubdata;var r=this.toBuffer(),n=u.ripemd160(r),i=e.concat([r,n.slice(0,4)]);return this.pubdata=s.encode(i),t+this.pubdata}},{key:"toAddressString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.get("address_prefix"),r=this.toBuffer(),n=u.sha512(r),i=u.ripemd160(n),o=u.ripemd160(i);return i=e.concat([i,o.slice(0,4)]),t+s.encode(i)}},{key:"toPtsAddy",value:function(){var t=this.toBuffer(),r=u.sha256(t),n=u.ripemd160(r);n=e.concat([new e([56]),n]);var i=u.sha256(n);return i=u.sha256(i),n=e.concat([n,i.slice(0,4)]),s.encode(n)}},{key:"child",value:function(r){c(e.isBuffer(r),"Buffer required: offset"),c.equal(r.length,32,"offset length"),r=e.concat([this.toBuffer(),r]),r=u.sha256(r);var n=i.fromBuffer(r);if(n.compareTo(h)>=0)throw new Error("Child offset went out of bounds, try again");var o=l.multiply(n),s=this.Q.add(o);if(a.isInfinity(s))throw new Error("Child offset derived to an invalid key, try again");return t.fromPoint(s)}},{key:"toHex",value:function(){return this.toBuffer().toString("hex")}}],[{key:"fromBinary",value:function(r){return t.fromBuffer(new e(r,"binary"))}},{key:"fromBuffer",value:function(e){return"000000000000000000000000000000000000000000000000000000000000000000"===e.toString("hex")?new t(null):new t(o.Point.decodeFrom(a,e))}},{key:"fromPoint",value:function(e){return new t(e)}},{key:"fromString",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.get("address_prefix");try{return t.fromStringOrThrow(e,r)}catch(t){return null}}},{key:"fromStringOrThrow",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.get("address_prefix"),i=r.slice(0,n.length);c.equal(n,i,"Expecting key to begin with "+n+", instead got "+i),r=r.slice(n.length);var o=(r=new e(s.decode(r),"binary")).slice(-4);r=r.slice(0,-4);var a=u.ripemd160(r);return a=a.slice(0,4),c.deepEqual(o,a,"Checksum did not match"),t.fromBuffer(r)}},{key:"fromHex",value:function(r){return t.fromBuffer(new e(r,"hex"))}},{key:"fromStringHex",value:function(r){return t.fromString(new e(r,"hex"))}}]),t}();t.exports=p}).call(e,r(177).Buffer)},function(t,e,r){var n=r(252);r(254),t.exports=n},function(t,e,r){function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}var i=n.prototype;i.__bigi=r(253).version,n.isBigInteger=function(t,e){return t&&t.__bigi&&(!e||t.__bigi===i.__bigi)},n.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var a=e*this[t++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},n.prototype.DB=26,n.prototype.DM=67108863;var o=n.prototype.DV=1<<26;n.prototype.FV=Math.pow(2,52),n.prototype.F1=26,n.prototype.F2=0;var a,s,u="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array;for(a="0".charCodeAt(0),s=0;s<=9;++s)f[a++]=s;for(a="a".charCodeAt(0),s=10;s<36;++s)f[a++]=s;for(a="A".charCodeAt(0),s=10;s<36;++s)f[a++]=s;function c(t){return u.charAt(t)}function l(t,e){var r=f[t.charCodeAt(e)];return null==r?-1:r}function h(t){var e=new n;return e.fromInt(t),e}function p(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function d(t){this.m=t}function _(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function v(t,e){return t&e}function y(t,e){return t|e}function g(t,e){return t^e}function m(t,e){return t&~e}function b(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function w(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function E(){}function k(t){return t}function x(t){this.r2=new n,this.q3=new n,n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}d.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},d.prototype.revert=function(t){return t},d.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},d.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},_.prototype.convert=function(t){var e=new n;return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},_.prototype.revert=function(t){var e=new n;return t.copyTo(e),this.reduce(e),e},_.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},_.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},_.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},i.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},i.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+o:this.t=0},i.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&t[i]:l(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},i.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},i.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},i.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},i.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,a=Math.floor(t/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+a+1]=this[r]>>i|s,s=(this[r]&o)<<n;for(r=a-1;r>=0;--r)e[r]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},i.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)e[a-r-1]|=(this[a]&o)<<i,e[a-r]=this[a]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},i.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},i.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),o=r.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+r.t]=r.am(0,i[o],e,o,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},i.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},i.divRemTo=function(t,e,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=new n);var a=new n,s=this.s,u=t.s,f=this.DB-p(i[i.t-1]);f>0?(i.lShiftTo(f,a),o.lShiftTo(f,r)):(i.copyTo(a),o.copyTo(r));var c=a.t,l=a[c-1];if(0!=l){var h=l*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),d=this.FV/h,_=(1<<this.F1)/h,v=1<<this.F2,y=r.t,g=y-c,m=null==e?new n:e;for(a.dlShiftTo(g,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),n.ONE.dlShiftTo(c,m),m.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--g>=0;){var b=r[--y]==l?this.DM:Math.floor(r[y]*d+(r[y-1]+v)*_);if((r[y]+=a.am(0,b,r,g,0,c))<b)for(a.dlShiftTo(g,m),r.subTo(m,r);r[y]<--b;)r.subTo(m,r)}null!=e&&(r.drShiftTo(c,e),s!=u&&n.ZERO.subTo(e,e)),r.t=c,r.clamp(),f>0&&r.rShiftTo(f,r),s<0&&n.ZERO.subTo(r,r)}}},i.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},i.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},i.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=new n,i=new n,o=e.convert(this),a=p(t)-1;for(o.copyTo(r);--a>=0;)if(e.sqrTo(r,i),(t&1<<a)>0)e.mulTo(i,o,r);else{var s=r;r=i,i=s}return e.revert(r)},i.toString=function(t){var e;if(this.s<0)return"-"+this.negate().toString(t);if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<<e)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(r=this[a]>>s)>0&&(i=!0,o=c(r));a>=0;)s<e?(r=(this[a]&(1<<s)-1)<<e-s,r|=this[--a]>>(s+=this.DB-e)):(r=this[a]>>(s-=e)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=c(r));return i?o:"0"},i.negate=function(){var t=new n;return n.ZERO.subTo(this,t),t},i.abs=function(){return this.s<0?this.negate():this},i.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},i.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+p(this[this.t-1]^this.s&this.DM)},i.byteLength=function(){return this.bitLength()>>3},i.mod=function(t){var e=new n;return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},i.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new d(e):new _(e),this.exp(t,r)},E.prototype.convert=k,E.prototype.revert=k,E.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},E.prototype.sqrTo=function(t,e){t.squareTo(e)},x.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=new n;return t.copyTo(e),this.reduce(e),e},x.prototype.revert=function(t){return t},x.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},x.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},x.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var T=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],B=(1<<26)/T[T.length-1];i.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},i.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=h(r),o=new n,a=new n,s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(t).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(t)+s},i.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),o=!1,a=0,s=0,u=0;u<t.length;++u){var f=l(t,u);f<0?"-"==t.charAt(u)&&0==this.signum()&&(o=!0):(s=e*s+f,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},i.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),y,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},i.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},i.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},i.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},i.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},i.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},i.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},i.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},i.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},i.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);(t=t+1>>1)>T.length&&(t=T.length);for(var o=new n(null),a=[],s=0;s<t;++s){for(;f=T[Math.floor(Math.random()*T.length)],-1!=a.indexOf(f););a.push(f),o.fromInt(f);var u=o.modPow(i,this);if(0!=u.compareTo(n.ONE)&&0!=u.compareTo(e)){for(var f=1;f++<r&&0!=u.compareTo(e);)if(0==(u=u.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=u.compareTo(e))return!1}}return!0},i.clone=function(){var t=new n;return this.copyTo(t),t},i.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},i.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},i.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},i.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&r)&&(r|=-256),0===i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},i.equals=function(t){return 0==this.compareTo(t)},i.min=function(t){return this.compareTo(t)<0?this:t},i.max=function(t){return this.compareTo(t)>0?this:t},i.and=function(t){var e=new n;return this.bitwiseTo(t,v,e),e},i.or=function(t){var e=new n;return this.bitwiseTo(t,y,e),e},i.xor=function(t){var e=new n;return this.bitwiseTo(t,g,e),e},i.andNot=function(t){var e=new n;return this.bitwiseTo(t,m,e),e},i.not=function(){for(var t=new n,e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},i.shiftLeft=function(t){var e=new n;return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},i.shiftRight=function(t){var e=new n;return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},i.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+b(this[t]);return this.s<0?this.t*this.DB:-1},i.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=w(this[r]^e);return t},i.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},i.setBit=function(t){return this.changeBit(t,y)},i.clearBit=function(t){return this.changeBit(t,m)},i.flipBit=function(t){return this.changeBit(t,g)},i.add=function(t){var e=new n;return this.addTo(t,e),e},i.subtract=function(t){var e=new n;return this.subTo(t,e),e},i.multiply=function(t){var e=new n;return this.multiplyTo(t,e),e},i.divide=function(t){var e=new n;return this.divRemTo(t,e,null),e},i.remainder=function(t){var e=new n;return this.divRemTo(t,null,e),e},i.divideAndRemainder=function(t){var e=new n,r=new n;return this.divRemTo(t,e,r),new Array(e,r)},i.modPow=function(t,e){var r,i,o=t.bitLength(),a=h(1);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new d(e):e.isEven()?new x(e):new _(e);var s=new Array,u=3,f=r-1,c=(1<<r)-1;if(s[1]=i.convert(this),r>1){var l=new n;for(i.sqrTo(s[1],l);u<=c;)s[u]=new n,i.mulTo(l,s[u-2],s[u]),u+=2}var v,y,g=t.t-1,m=!0,b=new n;for(o=p(t[g])-1;g>=0;){for(o>=f?v=t[g]>>o-f&c:(v=(t[g]&(1<<o+1)-1)<<f-o,g>0&&(v|=t[g-1]>>this.DB+o-f)),u=r;0==(1&v);)v>>=1,--u;if((o-=u)<0&&(o+=this.DB,--g),m)s[v].copyTo(a),m=!1;else{for(;u>1;)i.sqrTo(a,b),i.sqrTo(b,a),u-=2;u>0?i.sqrTo(a,b):(y=a,a=b,b=y),i.mulTo(b,s[v],a)}for(;g>=0&&0==(t[g]&1<<o);)i.sqrTo(a,b),y=a,a=b,b=y,--o<0&&(o=this.DB-1,--g)}return i.revert(a)},i.modInverse=function(t){var e=t.isEven();if(0===this.signum())throw new Error("division by zero");if(this.isEven()&&e||0==t.signum())return n.ZERO;for(var r=t.clone(),i=this.clone(),o=h(1),a=h(0),s=h(0),u=h(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(t,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),e&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(r,i),e&&s.subTo(o,s),u.subTo(a,u))}if(0!=i.compareTo(n.ONE))return n.ZERO;for(;u.compareTo(t)>=0;)u.subTo(t,u);for(;u.signum()<0;)u.addTo(t,u);return u},i.pow=function(t){return this.exp(t,new E)},i.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},i.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=T[T.length-1]){for(e=0;e<T.length;++e)if(r[0]==T[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<T.length;){for(var n=T[e],i=e+1;i<T.length&&n<B;)n*=T[i++];for(n=r.modInt(n);e<i;)if(n%T[e++]==0)return!1}return r.millerRabin(t)},i.square=function(){var t=new n;return this.squareTo(t),t},n.ZERO=h(0),n.ONE=h(1),n.valueOf=h,t.exports=n},function(t,e){t.exports={name:"bigi",version:"1.4.2",description:"Big integers.",keywords:["cryptography","math","bitcoin","arbitrary","precision","arithmetic","big","integer","int","number","biginteger","bigint","bignumber","decimal","float"],devDependencies:{coveralls:"^2.11.2",istanbul:"^0.3.5",jshint:"^2.5.1",mocha:"^2.1.0",mochify:"^2.1.0"},repository:{url:"https://github.com/cryptocoinjs/bigi",type:"git"},main:"./lib/index.js",scripts:{"browser-test":"./node_modules/.bin/mochify --wd -R spec",test:"./node_modules/.bin/_mocha -- test/*.js",jshint:"./node_modules/.bin/jshint --config jshint.json lib/*.js ; true",unit:"./node_modules/.bin/mocha",coverage:"./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",coveralls:"npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info"},dependencies:{},testling:{files:"test/*.js",harness:"mocha",browsers:["ie/9..latest","firefox/latest","chrome/latest","safari/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]}}},function(t,e,r){(function(t){var e=r(181),n=r(252);n.fromByteArrayUnsigned=function(t){return 128&t[0]?new n([0].concat(t)):new n(t)},n.prototype.toByteArrayUnsigned=function(){var t=this.toByteArray();return 0===t[0]?t.slice(1):t},n.fromDERInteger=function(t){return new n(t)},n.prototype.toDERInteger=n.prototype.toByteArray,n.fromBuffer=function(t){if(128&t[0]){var e=Array.prototype.slice.call(t);return new n([0].concat(e))}return new n(t)},n.fromHex=function(t){return""===t?n.ZERO:(e.equal(t,t.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),e.equal(t.length%2,0,"Incomplete hex"),new n(t,16))},n.prototype.toBuffer=function(e){for(var r=this.toByteArrayUnsigned(),n=[],i=e-r.length;n.length<i;)n.push(0);return new t(n.concat(r))},n.prototype.toHex=function(t){return this.toBuffer(t).toString("hex")}}).call(e,r(177).Buffer)},function(t,e,r){var n=r(256),i=r(257),o=r(258);t.exports={Curve:i,Point:n,getCurveByName:o}},function(t,e,r){(function(e){var n=r(181),i=r(251),o=i.valueOf(3);function a(t,e,r,i){n.notStrictEqual(i,void 0,"Missing Z coordinate"),this.curve=t,this.x=e,this.y=r,this.z=i,this._zInv=null,this.compressed=!0}Object.defineProperty(a.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(a.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(a.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),a.fromAffine=function(t,e,r){return new a(t,e,r,i.ONE)},a.prototype.equals=function(t){return t===this||(this.curve.isInfinity(this)?this.curve.isInfinity(t):this.curve.isInfinity(t)?this.curve.isInfinity(this):0===t.y.multiply(this.z).subtract(this.y.multiply(t.z)).mod(this.curve.p).signum()&&0===t.x.multiply(this.z).subtract(this.x.multiply(t.z)).mod(this.curve.p).signum())},a.prototype.negate=function(){var t=this.curve.p.subtract(this.y);return new a(this.curve,this.x,t,this.z)},a.prototype.add=function(t){if(this.curve.isInfinity(this))return t;if(this.curve.isInfinity(t))return this;var e=this.x,r=this.y,n=t.x,i=t.y.multiply(this.z).subtract(r.multiply(t.z)).mod(this.curve.p),s=n.multiply(this.z).subtract(e.multiply(t.z)).mod(this.curve.p);if(0===s.signum())return 0===i.signum()?this.twice():this.curve.infinity;var u=s.square(),f=u.multiply(s),c=e.multiply(u),l=i.square().multiply(this.z),h=l.subtract(c.shiftLeft(1)).multiply(t.z).subtract(f).multiply(s).mod(this.curve.p),p=c.multiply(o).multiply(i).subtract(r.multiply(f)).subtract(l.multiply(i)).multiply(t.z).add(i.multiply(f)).mod(this.curve.p),d=f.multiply(this.z).multiply(t.z).mod(this.curve.p);return new a(this.curve,h,p,d)},a.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var t=this.x,e=this.y,r=e.multiply(this.z).mod(this.curve.p),n=r.multiply(e).mod(this.curve.p),i=this.curve.a,s=t.square().multiply(o);0!==i.signum()&&(s=s.add(this.z.square().multiply(i)));var u=(s=s.mod(this.curve.p)).square().subtract(t.shiftLeft(3).multiply(n)).shiftLeft(1).multiply(r).mod(this.curve.p),f=s.multiply(o).multiply(t).subtract(n.shiftLeft(1)).shiftLeft(2).multiply(n).subtract(s.pow(3)).mod(this.curve.p),c=r.pow(3).shiftLeft(3).mod(this.curve.p);return new a(this.curve,u,f,c)},a.prototype.multiply=function(t){if(this.curve.isInfinity(this))return this;if(0===t.signum())return this.curve.infinity;for(var e=t,r=e.multiply(o),n=this.negate(),i=this,a=r.bitLength()-2;a>0;--a){var s=r.testBit(a),u=e.testBit(a);i=i.twice(),s!==u&&(i=i.add(s?this:n))}return i},a.prototype.multiplyTwo=function(t,e,r){for(var n=Math.max(t.bitLength(),r.bitLength())-1,i=this.curve.infinity,o=this.add(e);n>=0;){var a=t.testBit(n),s=r.testBit(n);i=i.twice(),a?i=s?i.add(o):i.add(this):s&&(i=i.add(e)),--n}return i},a.prototype.getEncoded=function(t){if(null==t&&(t=this.compressed),this.curve.isInfinity(this))return new e("00","hex");var r,n=this.affineX,i=this.affineY,o=this.curve.pLength;return t?(r=new e(1+o)).writeUInt8(i.isEven()?2:3,0):((r=new e(1+o+o)).writeUInt8(4,0),i.toBuffer(o).copy(r,1+o)),n.toBuffer(o).copy(r,1),r},a.decodeFrom=function(t,e){var r,o=e.readUInt8(0),s=4!==o,u=Math.floor((t.p.bitLength()+7)/8),f=i.fromBuffer(e.slice(1,1+u));if(s){n.equal(e.length,u+1,"Invalid sequence length"),n(2===o||3===o,"Invalid sequence tag");var c=3===o;r=t.pointFromX(c,f)}else{n.equal(e.length,1+u+u,"Invalid sequence length");var l=i.fromBuffer(e.slice(1+u));r=a.fromAffine(t,f,l)}return r.compressed=s,r},a.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},t.exports=a}).call(e,r(177).Buffer)},function(t,e,r){var n=r(181),i=r(251),o=r(256);function a(t,e,r,n,a,s,u){this.p=t,this.a=e,this.b=r,this.G=o.fromAffine(this,n,a),this.n=s,this.h=u,this.infinity=new o(this,null,null,i.ZERO),this.pOverFour=t.add(i.ONE).shiftRight(2),this.pLength=Math.floor((this.p.bitLength()+7)/8)}a.prototype.pointFromX=function(t,e){var r=e.pow(3).add(this.a.multiply(e)).add(this.b).mod(this.p).modPow(this.pOverFour,this.p),n=r;return r.isEven()^!t&&(n=this.p.subtract(n)),o.fromAffine(this,e,n)},a.prototype.isInfinity=function(t){return t===this.infinity||0===t.z.signum()&&0!==t.y.signum()},a.prototype.isOnCurve=function(t){if(this.isInfinity(t))return!0;var e=t.affineX,r=t.affineY,n=this.a,i=this.b,o=this.p;if(e.signum()<0||e.compareTo(o)>=0)return!1;if(r.signum()<0||r.compareTo(o)>=0)return!1;var a=r.square().mod(o),s=e.pow(3).add(n.multiply(e)).add(i).mod(o);return a.equals(s)},a.prototype.validate=function(t){n(!this.isInfinity(t),"Point is at infinity"),n(this.isOnCurve(t),"Point is not on the curve");var e=t.multiply(this.n);return n(this.isInfinity(e),"Point is not a scalar multiple of G"),!0},t.exports=a},function(t,e,r){var n=r(251),i=r(259),o=r(257);t.exports=function(t){var e=i[t];if(!e)return null;var r=new n(e.p,16),a=new n(e.a,16),s=new n(e.b,16),u=new n(e.n,16),f=new n(e.h,16),c=new n(e.Gx,16),l=new n(e.Gy,16);return new o(r,a,s,c,l,u,f)}},function(t,e){t.exports={secp128r1:{p:"fffffffdffffffffffffffffffffffff",a:"fffffffdfffffffffffffffffffffffc",b:"e87579c11079f43dd824993c2cee5ed3",n:"fffffffe0000000075a30d1b9038a115",h:"01",Gx:"161ff7528b899b2d0c28607ca52c5b86",Gy:"cf5ac8395bafeb13c02da292dded7a83"},secp160k1:{p:"fffffffffffffffffffffffffffffffeffffac73",a:"00",b:"07",n:"0100000000000000000001b8fa16dfab9aca16b6b3",h:"01",Gx:"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb",Gy:"938cf935318fdced6bc28286531733c3f03c4fee"},secp160r1:{p:"ffffffffffffffffffffffffffffffff7fffffff",a:"ffffffffffffffffffffffffffffffff7ffffffc",b:"1c97befc54bd7a8b65acf89f81d4d4adc565fa45",n:"0100000000000000000001f4c8f927aed3ca752257",h:"01",Gx:"4a96b5688ef573284664698968c38bb913cbfc82",Gy:"23a628553168947d59dcc912042351377ac5fb32"},secp192k1:{p:"fffffffffffffffffffffffffffffffffffffffeffffee37",a:"00",b:"03",n:"fffffffffffffffffffffffe26f2fc170f69466a74defd8d",h:"01",Gx:"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d",Gy:"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},secp192r1:{p:"fffffffffffffffffffffffffffffffeffffffffffffffff",a:"fffffffffffffffffffffffffffffffefffffffffffffffc",b:"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1",n:"ffffffffffffffffffffffff99def836146bc9b1b4d22831",h:"01",Gx:"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012",Gy:"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},secp256k1:{p:"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",a:"00",b:"07",n:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",h:"01",Gx:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",Gy:"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},secp256r1:{p:"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff",a:"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc",b:"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b",n:"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551",h:"01",Gx:"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296",Gy:"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(255),o=i.Point,a=i.getCurveByName("secp256k1"),s=r(251),u=r(225),f=r(181),c=r(185),l=r(250),h=(a.G,a.n),p=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.d=e}return n(t,[{key:"toWif",value:function(){var t=this.toBuffer();t=e.concat([new e([128]),t]);var r=c.sha256(t);r=(r=c.sha256(r)).slice(0,4);var n=e.concat([t,r]);return u.encode(n)}},{key:"toString",value:function(){return this.toWif()}},{key:"toPublicKeyPoint",value:function(){return a.G.multiply(this.d)}},{key:"toPublic",value:function(){return this.public_key?this.public_key:this.public_key=l.fromPoint(this.toPublicKeyPoint())}},{key:"toBuffer",value:function(){return this.d.toBuffer(32)}},{key:"get_shared_secret",value:function(t){var e=(t=d(t)).toUncompressed().toBuffer(),r=o.fromAffine(a,s.fromBuffer(e.slice(1,33)),s.fromBuffer(e.slice(33,65))),n=this.toBuffer(),i=r.multiply(s.fromBuffer(n)).affineX.toBuffer({size:32});return c.sha512(i)}},{key:"child",value:function(r){r=e.concat([this.toPublicKey().toBuffer(),r]),r=c.sha256(r);var n=s.fromBuffer(r);if(n.compareTo(h)>=0)throw new Error("Child offset went out of bounds, try again");var i=this.d.add(n);if(0===i.signum())throw new Error("Child offset derived to an invalid key, try again");return new t(i)}},{key:"toHex",value:function(){return this.toBuffer().toString("hex")}},{key:"toPublicKey",value:function(){return this.toPublic()}}],[{key:"fromBuffer",value:function(r){if(!e.isBuffer(r))throw new Error("Expecting paramter to be a Buffer type");if(32!==r.length&&console.log("WARN: Expecting 32 bytes, instead got "+r.length+", stack trace:",(new Error).stack),0===r.length)throw new Error("Empty buffer");return new t(s.fromBuffer(r))}},{key:"fromSeed",value:function(e){if("string"!=typeof e)throw new Error("seed must be of type string");return t.fromBuffer(c.sha256(e))}},{key:"isWif",value:function(t){try{return this.fromWif(t),!0}catch(t){return!1}}},{key:"fromWif",value:function(r){var n=new e(u.decode(r)),i=n.readUInt8(0);f.equal(128,i,"Expected version 128, instead got "+i);var o=n.slice(0,-4),a=n.slice(-4),s=c.sha256(o);if(s=(s=c.sha256(s)).slice(0,4),a.toString()!==s.toString())throw new Error("Invalid WIF key (checksum miss-match)");return o=o.slice(1),t.fromBuffer(o)}},{key:"fromHex",value:function(r){return t.fromBuffer(new e(r,"hex"))}}]),t}();t.exports=p;var d=function(t){return null==t?t:t.Q?t:l.fromStringOrThrow(t)}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(262),o=r(185),a=r(255).getCurveByName("secp256k1"),s=r(181),u=r(251),f=r(250),c=r(260),l=function(){function t(e,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=e,this.s=r,this.i=n,s.equal(null!=this.r,!0,"Missing parameter"),s.equal(null!=this.s,!0,"Missing parameter"),s.equal(null!=this.i,!0,"Missing parameter")}return n(t,[{key:"toBuffer",value:function(){var t;return(t=new e(65)).writeUInt8(this.i,0),this.r.toBuffer(32).copy(t,1),this.s.toBuffer(32).copy(t,33),t}},{key:"recoverPublicKeyFromBuffer",value:function(t){return this.recoverPublicKey(o.sha256(t))}},{key:"recoverPublicKey",value:function(t){var e,r,n=void 0;return r=u.fromBuffer(t),n=this.i,n-=27,n&=3,e=i.recoverPubKey(a,r,this,n),f.fromPoint(e)}},{key:"verifyBuffer",value:function(t,e){var r=o.sha256(t);return this.verifyHash(r,e)}},{key:"verifyHash",value:function(t,e){return s.equal(t.length,32,"A SHA 256 should be 32 bytes long, instead got "+t.length),i.verify(a,t,{r:this.r,s:this.s},e.Q)}},{key:"toHex",value:function(){return this.toBuffer().toString("hex")}},{key:"verifyHex",value:function(t,r){var n;return n=new e(t,"hex"),this.verifyBuffer(n,r)}}],[{key:"fromBuffer",value:function(e){var r;return s.equal(e.length,65,"Invalid signature length"),r=e.readUInt8(0),s.equal(r-27,r-27&7,"Invalid signature parameter"),new t(u.fromBuffer(e.slice(1,33)),u.fromBuffer(e.slice(33)),r)}},{key:"signBuffer",value:function(e,r){var n=o.sha256(e);return t.signBufferSha256(n,r)}},{key:"signBufferSha256",value:function(r,n){if(32!==r.length||!e.isBuffer(r))throw new Error("buf_sha256: 32 byte buffer requred");var o,f,c,l,p,d,_;for(n=h(n),s(n,"private_key required"),l=null,_=0,f=u.fromBuffer(r);;){if(d=(o=(c=i.sign(a,r,n.d,_++)).toDER())[5+(p=o[3])],32===p&&32===d){l=i.calcPubKeyRecoveryParam(a,f,c,n.toPublicKey().Q),l+=4,l+=27;break}_%10==0&&console.log("WARN: "+_+" attempts to find canonical signature")}return new t(c.r,c.s,l)}},{key:"sign",value:function(r,n){return t.signBuffer(new e(r),n)}},{key:"fromHex",value:function(r){return t.fromBuffer(new e(r,"hex"))}},{key:"signHex",value:function(r,n){var i;return i=new e(r,"hex"),t.signBuffer(i,n)}},{key:"verifyData",value:function(t,r,n){var u=new e(t),c=new e(u,"hex"),l=o.sha256(c);s.equal(l.length,32,"A SHA 256 should be 32 bytes long, instead got "+l.length);var h=f.fromString(n);return i.verify(a,l,r,h.Q)}}]),t}(),h=function(t){return t?t.d?t:c.fromWif(t):t};t.exports=l}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=r(181),i=r(185),o=r(263),a=r(251),s=r(264);function u(t,r,s,u,f){o("Buffer",r),o(a,s),f&&(r=i.sha256(e.concat([r,new e(f)]))),n.equal(r.length,32,"Hash must be 256 bit");var c=s.toBuffer(32),l=new e(32),h=new e(32);h.fill(1),l.fill(0),l=i.HmacSHA256(e.concat([h,new e([0]),c,r]),l),h=i.HmacSHA256(h,l),l=i.HmacSHA256(e.concat([h,new e([1]),c,r]),l),h=i.HmacSHA256(h,l),h=i.HmacSHA256(h,l);for(var p=a.fromBuffer(h);p.signum()<=0||p.compareTo(t.n)>=0||!u(p);)l=i.HmacSHA256(e.concat([h,new e([0])]),l),h=i.HmacSHA256(h,l),h=i.HmacSHA256(h,l),p=a.fromBuffer(h);return p}function f(t,e,r,n){var i=t.n,o=t.G,a=r.r,s=r.s;if(a.signum()<=0||a.compareTo(i)>=0)return!1;if(s.signum()<=0||s.compareTo(i)>=0)return!1;var u=s.modInverse(i),f=e.multiply(u).mod(i),c=a.multiply(u).mod(i),l=o.multiplyTwo(f,n,c);return!t.isInfinity(l)&&l.affineX.mod(i).equals(a)}function c(t,e,r,i){n.strictEqual(3&i,i,"Recovery param is more than two bits");var o=t.n,a=t.G,s=r.r,u=r.s;n(s.signum()>0&&s.compareTo(o)<0,"Invalid r value"),n(u.signum()>0&&u.compareTo(o)<0,"Invalid s value");var f=1&i,c=i>>1?s.add(o):s,l=t.pointFromX(f,c),h=l.multiply(o);n(t.isInfinity(h),"nR is not a valid curve point");var p=e.negate().mod(o),d=s.modInverse(o),_=l.multiplyTwo(u,a,p).multiply(d);return t.validate(_),_}t.exports={calcPubKeyRecoveryParam:function(t,e,r,n){for(var i=0;i<4;i++)if(c(t,e,r,i).equals(n))return i;throw new Error("Unable to find valid recovery factor")},deterministicGenerateK:u,recoverPubKey:c,sign:function(t,e,r,n){var i,o,f=a.fromBuffer(e),c=t.n,l=t.G,h=(u(t,e,r,function(e){var n=l.multiply(e);return!t.isInfinity(n)&&0!==(i=n.affineX.mod(c)).signum()&&0!==(o=e.modInverse(c).multiply(f.add(r.multiply(i))).mod(c)).signum()},n),c.shiftRight(1));return o.compareTo(h)>0&&(o=c.subtract(o)),new s(i,o)},verify:function(t,e,r,n){return f(t,a.fromBuffer(e),r,n)},verifyRaw:f}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";function r(t){var e=t.toString().match(/function (.*?)\(/);return e?e[1]:null}t.exports=function(t,n){switch(t){case"Array":if(Array.isArray(n))return;break;case"Boolean":if("boolean"==typeof n)return;break;case"Buffer":if(e.isBuffer(n))return;break;case"Number":if("number"==typeof n)return;break;case"String":if("string"==typeof n)return;break;default:if(r(n.constructor)===r(t))return}throw new TypeError("Expected "+(r(t)||t)+", got "+n)}}).call(e,r(177).Buffer)},function(t,e,r){(function(e){"use strict";var n=r(181),i=r(263),o=r(251);function a(t,e){i(o,t),i(o,e),this.r=t,this.s=e}a.parseCompact=function(t){n.equal(t.length,65,"Invalid signature length");var e=t.readUInt8(0)-27;return n.equal(e,7&e,"Invalid signature parameter"),{compressed:!!(4&e),i:e&=3,signature:new a(o.fromBuffer(t.slice(1,33)),o.fromBuffer(t.slice(33)))}},a.fromDER=function(t){n.equal(t.readUInt8(0),48,"Not a DER sequence"),n.equal(t.readUInt8(1),t.length-2,"Invalid sequence length"),n.equal(t.readUInt8(2),2,"Expected a DER integer");var e=t.readUInt8(3);n(e>0,"R length is zero");var r=4+e;n.equal(t.readUInt8(r),2,"Expected a DER integer (2)");var i=t.readUInt8(r+1);n(i>0,"S length is zero");var s=t.slice(4,r),u=t.slice(r+2);r+=2+i,e>1&&0===s.readUInt8(0)&&n(128&s.readUInt8(1),"R value excessively padded"),i>1&&0===u.readUInt8(0)&&n(128&u.readUInt8(1),"S value excessively padded"),n.equal(r,t.length,"Invalid DER encoding");var f=o.fromDERInteger(s),c=o.fromDERInteger(u);return n(f.signum()>=0,"R value is negative"),n(c.signum()>=0,"S value is negative"),new a(f,c)},a.parseScriptSignature=function(t){var e=t.readUInt8(t.length-1),r=-129&e;return n(r>0&&r<4,"Invalid hashType"),{signature:a.fromDER(t.slice(0,-1)),hashType:e}},a.prototype.toCompact=function(t,r){r&&(t+=4),t+=27;var n=new e(65);return n.writeUInt8(t,0),this.r.toBuffer(32).copy(n,1),this.s.toBuffer(32).copy(n,33),n},a.prototype.toDER=function(){var t=this.r.toDERInteger(),r=this.s.toDERInteger(),n=[];return n.push(2,t.length),(n=n.concat(t)).push(2,r.length),(n=n.concat(r)).unshift(48,n.length),new e(n)},a.prototype.toScriptSignature=function(t){var r=new e(1);return r.writeUInt8(t,0),e.concat([this.toDER(),r])},t.exports=a}).call(e,r(177).Buffer)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalize=function(t){if("string"!=typeof t)throw new Error("string required for brain_key");return(t=t.trim()).split(/[\t\n\v\f\r ]+/).join(" ")}},function(t,e,r){(function(e){"use strict";var n=r(260),i=r(185),o=r(228),a=0,s=0,u=o.randomBuffer(101);t.exports={addEntropy:function(){s++;for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=!0,i=!1,o=void 0;try{for(var f,c=e[Symbol.iterator]();!(n=(f=c.next()).done);n=!0){var l=f.value,h=a++%101;(u[h]+=l)>9007199254740991&&(u[h]=0)}}catch(t){i=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(i)throw o}}},random32ByteBuffer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.browserEntropy();if("string"!=typeof t)throw new Error("string required for entropy");if(t.length<32)throw new Error("expecting at least 32 bytes of entropy");for(var r=Date.now();Date.now()-r<250;)t=i.sha256(t);var n=[];return n.push(t),n.push(o.randomBuffer(32)),i.sha256(e.concat(n))},get_random_key:function(t){return n.fromBuffer(this.random32ByteBuffer(t))},browserEntropy:function(){var t=Array(u).join();try{t+=(new Date).toString()+" "+window.screen.height+" "+window.screen.width+" "+window.screen.colorDepth+" "+window.screen.availHeight+" "+window.screen.availWidth+" "+window.screen.pixelDepth+navigator.language+" "+window.location+" "+window.history.length;for(var r,n=0;n<navigator.mimeTypes.length;n++)t+=(r=navigator.mimeTypes[n]).description+" "+r.type+" "+r.suffixes+" ";console.log("INFO\tbrowserEntropy gathered",s,"events")}catch(e){t+=i.sha256((new Date).toString())}return t+=new e(t).toString("binary")+" "+(new Date).toString()}}}).call(e,r(177).Buffer)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(268)),i=o(r(271));function o(t){return t&&t.__esModule?t:{default:t}}e.default={http:n.default,ws:i.default}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.jsonRpc=d;var i=u(r(269)),o=u(r(168)),a=u(r(270)),s=u(r(171));function u(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=(0,o.default)("steem:http"),p=function(t){function e(t){f(this,e);var r=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.message));return r.name="RPCError",r.code=t.code,r.data=t.data,r}return l(e,Error),e}();function d(t,e){var r=e.method,n=e.id,o=e.params,a={id:n,jsonrpc:"2.0",method:r,params:o};return(0,i.default)(t,{body:JSON.stringify(a),method:"post",mode:"cors",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"}}).then(function(t){if(!t.ok)throw new Error("HTTP "+t.status+": "+t.statusText);return t.json()}).then(function(t){if(t.id!==n)throw new Error("Invalid response id: "+t.id);if(t.error)throw new p(t.error);return t.result})}var _=function(t){function e(){return f(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,a.default),n(e,[{key:"send",value:function(t,e,r){h("Steem::send",t,e);var n=e.id||this.id++,i=[t,e.method,e.params];d(s.default.get("websocket"),{method:"call",id:n,params:i}).then(function(t){r(null,t)},function(t){r(t)})}}]),e}();e.default=_},function(t,e){(function(r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==r&&r||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function l(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function h(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function p(t){var e=new FileReader,r=h(e);return e.readAsArrayBuffer(t),r}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&function(t){return t&&DataView.prototype.isPrototypeOf(t)}(t)?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=l(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=h(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:"utf-8";return e.readAsText(t,i),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=s(t),e=u(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},c.prototype.delete=function(t){delete this.map[s(t)]},c.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},c.prototype.set=function(t,e){this.map[s(t)]=u(e)},c.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},c.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),f(t)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),f(t)},c.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),f(t)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var v=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(t,e){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=function(t){var e=t.toUpperCase();return v.indexOf(e)>-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function g(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function m(t,e){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},_.call(y.prototype),_.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var b=[301,302,303,307,308];m.redirect=function(t,e){if(-1===b.indexOf(e))throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function w(t,r){return new Promise(function(o,a){var f=new y(t,r);if(f.signal&&f.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function h(){l.abort()}if(l.onload=function(){var t={statusText:l.statusText,headers:function(t){var e=new c;return t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{e.append(n,i)}catch(t){console.warn("Response "+t.message)}}}),e}(l.getAllResponseHeaders()||"")};0===f.url.indexOf("file://")&&(l.status<200||l.status>599)?t.status=200:t.status=l.status,t.url="responseURL"in l?l.responseURL:t.headers.get("X-Request-URL");var e="response"in l?l.response:l.responseText;setTimeout(function(){o(new m(e,t))},0)},l.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},l.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},l.open(f.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(f.url),!0),"include"===f.credentials?l.withCredentials=!0:"omit"===f.credentials&&(l.withCredentials=!1),"responseType"in l&&(i.blob?l.responseType="blob":i.arrayBuffer&&(l.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof c||n.Headers&&r.headers instanceof n.Headers)){var p=[];Object.getOwnPropertyNames(r.headers).forEach(function(t){p.push(s(t)),l.setRequestHeader(t,u(r.headers[t]))}),f.headers.forEach(function(t,e){-1===p.indexOf(e)&&l.setRequestHeader(e,t)})}else f.headers.forEach(function(t,e){l.setRequestHeader(e,t)});f.signal&&(f.signal.addEventListener("abort",h),l.onreadystatechange=function(){4===l.readyState&&f.signal.removeEventListener("abort",h)}),l.send(void 0===f._bodyInit?null:f._bodyInit)})}w.polyfill=!0,n.fetch||(n.fetch=w,n.Headers=c,n.Request=y,n.Response=m),e.Headers=c,e.Request=y,e.Response=m,e.fetch=w,Object.defineProperty(e,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}).call(e,function(){return this}())},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=a(r(3)),o=a(r(2));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.options=t,r.id=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),n(e,[{key:"setOptions",value:function(t){Object.assign(this.options,t),this.stop()}},{key:"listenTo",value:function(t,e,r){return t.addEventListener?t.addEventListener(e,r):t.on(e,r),function(){t.removeEventListener?t.removeEventListener(e,r):t.removeListener(e,r)}}},{key:"send",value:function(){}},{key:"start",value:function(){}},{key:"stop",value:function(){}}]),e}();e.default=s,i.default.promisifyAll(s.prototype)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=f(r(3)),o=f(r(167)),a=f(r(168)),s=f(r(171)),u=f(r(270));function f(t){return t&&t.__esModule?t:{default:t}}var c=void 0;if(o.default)c=r(272);else{if("undefined"==typeof window)throw new Error("Couldn't decide on a `WebSocket` class");c=window.WebSocket}var l=(0,a.default)("steem:ws"),h=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Object.assign({id:0},t)));return r._requests=new Map,r.inFlight=0,r.isOpen=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.default),n(e,[{key:"start",value:function(){var t=this;return this.startPromise?this.startPromise:(this.startPromise=new i.default(function(e,r){t.ws=new c(s.default.get("websocket")),t.ws.onerror=function(e){t.startPromise=null,r(e)},t.ws.onopen=function(){t.isOpen=!0,t.ws.onerror=t.onError.bind(t),t.ws.onmessage=t.onMessage.bind(t),t.ws.onclose=t.onClose.bind(t),e()}}),this.startPromise)}},{key:"stop",value:function(){l("Stopping..."),this.startPromise=null,this.isOpen=!1,this._requests.clear(),this.ws&&(this.ws.onerror=this.ws.onmessage=this.ws.onclose=null,this.ws.close(),this.ws=null)}},{key:"send",value:function(t,e,r){var n=this;return l("Steem::send",t,e),this.start().then(function(){var o={};new i.default(function(t,e){o.resolve=function(e){t(e),r(null,e)},o.reject=function(t){e(t),r(t)}});var a={deferral:o,startedAt:Date.now(),message:{id:e.id||n.id++,method:"call",jsonrpc:"2.0",params:[t,e.method,e.params]}};return n.inFlight++,n._requests.set(a.message.id,a),n.ws.send(JSON.stringify(a.message)),o})}},{key:"onError",value:function(t){var e=!0,r=!1,n=void 0;try{for(var i,o=this._requests[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.deferral.reject(t)}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}this.stop()}},{key:"onClose",value:function(){var t=new Error("Connection was closed"),e=!0,r=!1,n=void 0;try{for(var i,o=this._requests[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.deferral.reject(t)}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}this._requests.clear()}},{key:"onMessage",value:function(t){var e=JSON.parse(t.data);if(l("-- Steem.onMessage --\x3e",e.id),!this._requests.has(e.id))throw new Error("Panic: no request in queue for message id "+e.id);var r=this._requests.get(e.id);this._requests.delete(e.id);var n=e.error;if(n){var i=new Error((n.message||"Failed to complete operation")+" (see err.payload for the full error payload)");i.payload=e,r.deferral.reject(i)}else this.emit("track-performance",r.message.method,Date.now()-r.startedAt),r.deferral.resolve(e.result)}}]),e}();e.default=h},200,function(t,e,r){(function(e){"use strict";var n=r(251),i=r(225),o=r(255),a=o.Point,s=o.getCurveByName("secp256k1"),u=r(171),f=r(274),c=r(261),l=r(260),h=r(250),p=r(185),d={},_=f.transaction,v=f.signed_transaction;d.signature=c,d.verify=function(t,e,r){var n=!1,i=[];for(var o in r)i.push(o);var a=this.generateKeys(t,e,i);return i.forEach(function(t){r[t][0][0]===a[t]&&(n=!0)}),n},d.generateKeys=function(t,r,o){var f={};return o.forEach(function(o){var c=(t+o+r).trim().split(/[\t\n\v\f\r ]+/).join(" "),l=p.sha256(c),h=n.fromBuffer(l),d=s.G.multiply(h),_=new a(d.curve,d.x,d.y,d.z).getEncoded(d.compressed),v=p.ripemd160(_),y=e.concat([_,v.slice(0,4)]);f[o]=u.get("address_prefix")+i.encode(y)}),f},d.getPrivateKeys=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["master","active","regular","memo"],n={};return r.forEach(function(r){n[r]=this.toWif(t,e,r),n[r+"Pubkey"]=this.wifToPublic(n[r])}.bind(this)),n},d.isWif=function(t){var r=!1;try{var n=new e(i.decode(t)),o=n.slice(0,-4),a=n.slice(-4),s=p.sha256(o);s=(s=p.sha256(s)).slice(0,4),a.toString()==s.toString()&&(r=!0)}catch(t){}return r},d.toWif=function(t,r,n){var o=(t+n+r).trim().split(/[\t\n\v\f\r ]+/).join(" "),a=p.sha256(o),s=e.concat([new e([128]),a]),u=p.sha256(s);u=(u=p.sha256(u)).slice(0,4);var f=e.concat([s,u]);return i.encode(f)},d.wifIsValid=function(t,e){return this.wifToPublic(t)==e},d.wifToPublic=function(t){var e=l.fromWif(t);return e=e.toPublic().toString()},d.isPubkey=function(t,e){return null!=h.fromString(t,e)},d.signTransaction=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[];t.signatures&&(i=[].concat(t.signatures));var o=new e(u.get("chain_id"),"hex"),a=_.toBuffer(t);for(var s in n&&(console.log("transaction",_.fromBuffer(a)),console.log("raw transaction",a.toString("hex"))),r){var f=c.signBuffer(e.concat([o,a]),r[s]);i.push(f.toBuffer()),n&&console.log("signature",f.toBuffer().toString("hex"))}return v.toObject(Object.assign(t,{signatures:i}))},t.exports=d}).call(e,r(177).Buffer)},function(t,e,r){"use strict";var n=o(r(275)),i=o(r(281));function o(t){return t&&t.__esModule?t:{default:t}}var a=n.default.int8,s=n.default.int16,u=n.default.int64,f=n.default.uint8,c=n.default.uint16,l=n.default.uint32,h=n.default.uint64,p=n.default.string,d=n.default.string_binary,_=n.default.bytes,v=n.default.bool,y=n.default.array,g=n.default.static_variant,m=n.default.map,b=n.default.set,w=n.default.public_key,E=n.default.time_point_sec,k=n.default.optional,x=n.default.asset,T=(n.default.asset_16,n.default.void),B=n.default.void,S=n.default.void,A=g();t.exports.operation=A;var j=function(e,r){var n=new i.default(e,r);return t.exports[e]=n},I=new j("beneficiaries",{account:p,weight:c}),O=new j(0,{beneficiaries:b(I)}),C=(new j("transaction",{ref_block_num:c,ref_block_prefix:l,expiration:E,operations:y(A),extensions:b(T)}),new j("encrypted_memo",{from:w,to:w,nonce:h,check:l,encrypted:d}),new j("signed_transaction",{ref_block_num:c,ref_block_prefix:l,expiration:E,operations:y(A),extensions:b(T),signatures:y(_(65))})),R=(new j("signed_block",{previous:_(20),timestamp:E,validator:p,transaction_merkle_root:_(20),extensions:b(g([T,S,B])),validator_signature:_(65),transactions:y(C)}),new j("block_header",{previous:_(20),timestamp:E,validator:p,transaction_merkle_root:_(20),extensions:b(g([T,S,B]))}),new j("signed_block_header",{previous:_(20),timestamp:E,validator:p,transaction_merkle_root:_(20),extensions:b(g([T,S,B])),validator_signature:_(65)}),new j("vote",{voter:p,author:p,permlink:p,weight:s})),U=new j("content",{parent_author:p,parent_permlink:p,author:p,permlink:p,title:p,body:p,curation_percent:s,json_metadata:p,extensions:b(g([O]))}),P=new j("transfer",{from:p,to:p,amount:x,memo:p}),L=new j("transfer_to_vesting",{from:p,to:p,amount:x}),F=new j("withdraw_vesting",{account:p,vesting_shares:x}),D=new j("authority",{weight_threshold:l,account_auths:m(p,c),key_auths:m(w,c)}),M=new j("account_update",{account:p,master:k(D),active:k(D),regular:k(D),memo_key:w,json_metadata:p}),N=new j("chain_properties_init",{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s}),q=new j("validator_update",{owner:p,url:p,block_signing_key:w}),z=new j("chain_properties_update",{owner:p,props:N}),V=new j("account_validator_vote",{account:p,validator:p,approve:v}),H=new j("account_validator_proxy",{account:p,proxy:p}),W=new j("delete_content",{author:p,permlink:p}),Y=new j("custom",{required_active_auths:b(p),required_regular_auths:b(p),id:p,json:p}),G=new j("set_withdraw_vesting_route",{from_account:p,to_account:p,percent:c,auto_vest:v}),X=new j("request_account_recovery",{recovery_account:p,account_to_recover:p,new_master_authority:D,extensions:b(T)}),Z=new j("recover_account",{account_to_recover:p,new_master_authority:D,recent_master_authority:D,extensions:b(T)}),$=new j("change_recovery_account",{account_to_recover:p,new_recovery_account:p,extensions:b(T)}),Q=new j("escrow_transfer",{from:p,to:p,token_amount:x,escrow_id:l,agent:p,fee:x,json_metadata:p,ratification_deadline:E,escrow_expiration:E}),K=new j("escrow_dispute",{from:p,to:p,agent:p,who:p,escrow_id:l}),J=new j("escrow_release",{from:p,to:p,agent:p,who:p,receiver:p,escrow_id:l,token_amount:x}),tt=new j("escrow_approve",{from:p,to:p,agent:p,who:p,escrow_id:l,approve:v}),et=new j("delegate_vesting_shares",{delegator:p,delegatee:p,vesting_shares:x}),rt=new j("account_create",{fee:x,delegation:x,creator:p,new_account_name:p,master:D,active:D,regular:D,memo_key:w,json_metadata:p,referrer:p,extensions:b(T)}),nt=new j("account_metadata",{account:p,json_metadata:p}),it=new j("proposal_create",{author:p,title:p,memo:p,expiration_time:E,proposed_operations:y(new j("operation_wrapper",{op:A})),review_period_time:k(E),extensions:b(T)}),ot=new j("proposal_update",{author:p,title:p,active_approvals_to_add:b(p),active_approvals_to_remove:b(p),master_approvals_to_add:b(p),master_approvals_to_remove:b(p),regular_approvals_to_add:b(p),regular_approvals_to_remove:b(p),key_approvals_to_add:b(w),key_approvals_to_remove:b(w),extensions:b(T)}),at=new j("proposal_delete",{author:p,title:p,requester:p,extensions:b(T)}),st=new j("author_reward",{author:p,permlink:p,payout:x,vesting_payout:x}),ut=new j("curation_reward",{curator:p,reward:x,content_author:p,content_permlink:p}),ft=new j("content_reward",{author:p,permlink:p,payout:x}),ct=new j("fill_vesting_withdraw",{from_account:p,to_account:p,withdrawn:x,deposited:x}),lt=new j("shutdown_validator",{owner:p}),ht=new j("hardfork",{hardfork_id:l}),pt=new j("content_payout_update",{author:p,permlink:p}),dt=new j("content_benefactor_reward",{benefactor:p,author:p,permlink:p,reward:x}),_t=new j("return_vesting_delegation",{account:p,vesting_shares:x}),vt=new j("committee_worker_create_request",{creator:p,url:p,worker:p,required_amount_min:x,required_amount_max:x,duration:l}),yt=new j("committee_worker_cancel_request",{creator:p,request_id:l}),gt=new j("committee_vote_request",{voter:p,request_id:l,vote_percent:s}),mt=new j("committee_cancel_request",{request_id:l}),bt=new j("committee_approve_request",{request_id:l}),wt=new j("committee_pay_request",{worker:p,request_id:l,tokens:x}),Et=new j("committee_payout_request",{request_id:l}),kt=new j("validator_reward",{validator:p,shares:x}),xt=new j("create_invite",{creator:p,balance:x,invite_key:w}),Tt=new j("claim_invite_balance",{initiator:p,receiver:p,invite_secret:p}),Bt=new j("invite_registration",{initiator:p,new_account_name:p,invite_secret:p,new_account_key:w}),St=new j("award",{initiator:p,receiver:p,energy:c,custom_sequence:h,memo:p,beneficiaries:b(I)}),At=new j("fixed_award",{initiator:p,receiver:p,reward_amount:x,max_energy:c,custom_sequence:h,memo:p,beneficiaries:b(I)}),jt=new j("versioned_chain_properties_update",{owner:p,props:g([N,new j(1,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l}),new j(2,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l}),new j(3,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l,create_invite_min_balance:x,committee_create_request_fee:x,create_paid_subscription_fee:x,account_on_sale_fee:x,subaccount_on_sale_fee:x,validator_declaration_fee:x,withdraw_intervals:c}),new j(4,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l,create_invite_min_balance:x,committee_create_request_fee:x,create_paid_subscription_fee:x,account_on_sale_fee:x,subaccount_on_sale_fee:x,validator_declaration_fee:x,withdraw_intervals:c,distribution_epoch_length:l}),new j(5,{account_creation_fee:x,maximum_block_size:l,create_account_delegation_ratio:l,create_account_delegation_time:l,min_delegation:x,min_curation_percent:s,max_curation_percent:s,bandwidth_reserve_percent:s,bandwidth_reserve_below:x,flag_energy_additional_cost:s,vote_accounting_min_rshares:l,committee_request_approve_min_percent:s,inflation_validator_percent:s,inflation_ratio_committee_vs_reward_fund:s,inflation_recalc_period:l,data_operations_cost_additional_bandwidth:l,validator_miss_penalty_percent:s,validator_miss_penalty_duration:l,create_invite_min_balance:x,committee_create_request_fee:x,create_paid_subscription_fee:x,account_on_sale_fee:x,subaccount_on_sale_fee:x,validator_declaration_fee:x,withdraw_intervals:c,distribution_epoch_length:l,pm_oracle_registration_fee:x,pm_min_oracle_insurance:x,pm_market_creation_fee:x,pm_min_liquidity:x,pm_max_outcomes:c,pm_max_market_duration:l,pm_max_oracle_fee_percent:c,pm_listing_min_coverage_percent:c,pm_betting_min_coverage_percent:c,pm_default_time_penalty_percent:c,pm_max_time_penalty:l,pm_dispute_fee:x,pm_dispute_grace_sec:l,pm_oracle_dispute_response_sec:l,pm_dispute_auto_close_sec:l,pm_dispute_vote_period_sec:l,pm_dispute_approve_min_percent:c,pm_oracle_penalty_percent:c,pm_no_contest_penalty_percent:c,pm_dispute_reward_multiplier:l,pm_batch_epoch_blocks:l,pm_reveal_window_blocks:l,pm_commit_no_reveal_penalty_percent:c,pm_min_batch_bet:x,pm_commit_reveal_enabled:v,pm_processing_cap_per_block:l,pm_lazy_pool_enabled:v,pm_lazy_alloc_percent:c,pm_lazy_max_total_alloc_percent:c,pm_lazy_lock_sec:l,pm_lazy_recall_step_percent:c,pm_lazy_emergency_penalty_percent:c,pm_leverage_enabled:v,pm_leverage_fund_percent:c,pm_leverage_max_per_position_bp:c,pm_leverage_pool_profit_percent:c,pm_leverage_safety_margin_percent:c,pm_leverage_max_slippage_percent:c,pm_leverage_min_market_liquidity:x,pm_leverage_max_position_ratio_percent:c,pm_leverage_expiration_buffer_sec:l,pm_leverage_m_factor_percent:c,pm_conversion_profit_cost_percent:c})])}),It=new j("receive_award",{receiver:p,custom_sequence:h,memo:p,shares:x}),Ot=new j("benefactor_award",{benefactor:p,receiver:p,custom_sequence:h,memo:p,shares:x}),Ct=new j("set_paid_subscription",{account:p,url:p,levels:c,amount:x,period:c}),Rt=new j("paid_subscribe",{subscriber:p,account:p,level:c,amount:x,period:c,auto_renewal:v}),Ut=new j("paid_subscription_action",{subscriber:p,account:p,level:c,amount:x,period:c,summary_duration_sec:h,summary_amount:x}),Pt=new j("cancel_paid_subscription",{subscriber:p,account:p}),Lt=new j("set_account_price",{account:p,account_seller:p,account_offer_price:x,account_on_sale:v}),Ft=new j("target_account_sale",{account:p,account_seller:p,target_buyer:p,account_offer_price:x,account_on_sale:v}),Dt=new j("set_subaccount_price",{account:p,subaccount_seller:p,subaccount_offer_price:x,subaccount_on_sale:v}),Mt=new j("buy_account",{buyer:p,account:p,account_offer_price:x,account_authorities_key:w,tokens_to_shares:x}),Nt=new j("account_sale",{account:p,price:x,buyer:p,seller:p}),qt=new j("use_invite_balance",{initiator:p,receiver:p,invite_secret:p}),zt=new j("expire_escrow_ratification",{from:p,to:p,agent:p,escrow_id:l,token_amount:x,fee:x,ratification_deadline:E}),Vt=new j("bid",{account:p,bidder:p,bid:x}),Ht=new j("outbid",{account:p,bidder:p,bid:x}),Wt=new j("set_reward_sharing",{owner:p,sharing_rate:c}),Yt=new j("stakeholder_reward",{validator:p,stakeholder:p,shares:x}),Gt=new j("pm_oracle_register",{owner:p,insurance:x,fee_percent:c,fixed_fee:x,rules_url:p,auto_accept_creator:p,auto_accept_resolver:p,auto_accept:v,extensions:b(T)}),Xt=new j("pm_oracle_update",{owner:p,insurance_delta:k(x),fee_percent:k(c),fixed_fee:k(x),rules_url:k(p),auto_accept_creator:k(p),auto_accept_resolver:k(p),auto_accept:k(v),extensions:b(T)}),Zt=new j("pm_create_market",{creator:p,oracle:p,market_type:f,outcomes:y(p),url:p,oracle_fee_percent:c,oracle_fixed_fee:x,creator_fee_percent:c,liquidity_fee_percent:c,liquidity:x,lmsr_b:u,betting_expiration:E,result_expiration:E,time_penalty_type:f,time_penalty_value:l,penalty_curve_type:f,allow_early_resolution:v,allow_cancellation:v,allow_batch:v,allow_instant_bet:v,endogeneity_tier:f,dispute_mode:f,dispute_resolver:p,dispute_penalty_percent:s,metadata:p,extensions:b(T)}),$t=new j("pm_oracle_accept_market",{oracle:p,market_id:u,accept:v,oracle_fee_percent:c,oracle_fixed_fee:x,extensions:b(T)}),Qt=new j("pm_place_bet",{account:p,market_id:u,side:a,outcome_index:s,amount:x,min_tokens:u,mode:f,extensions:b(T)}),Kt=new j("pm_commit_bet",{account:p,market_id:u,commitment:_(32),escrow_amount:x,no_reveal_fee_percent:c,extensions:b(T)}),Jt=new j("pm_reveal_bet",{account:p,commit_id:u,side:a,outcome_index:s,amount:x,salt:p,min_tokens:u,extensions:b(T)}),te=new j("pm_cancel_bet",{account:p,bet_id:u,min_return:u,extensions:b(T)}),ee=new j("pm_add_liquidity",{provider:p,market_id:u,amount:x,extensions:b(T)}),re=new j("pm_withdraw_liquidity",{provider:p,liquidity_id:u,amount:x,extensions:b(T)}),ne=new j("pm_resolve_market",{oracle:p,market_id:u,winning_outcome:s,decision_url:p,decision_reason:p,extensions:b(T)}),ie=new j("pm_no_contest",{oracle:p,market_id:u,reason:p,extensions:b(T)}),oe=new j("pm_dispute_create",{disputer:p,market_id:u,proposed_outcome:s,reason:p,extensions:b(T)}),ae=new j("pm_dispute_vote",{voter:p,market_id:u,vote_outcome:s,vote_percent:s,extensions:b(T)}),se=new j("pm_dispute_resolve",{resolver:p,market_id:u,correct_outcome:s,penalty_amount:x,ban_oracle:v,ban_oracle_until:E,ban_creator:v,ban_creator_until:E,extensions:b(T)}),ue=new j("pm_transfer_position",{from:p,bet_id:u,to:p,amount:u,memo:p,extensions:b(T)}),fe=new j("pm_lazy_deposit",{account:p,amount:x,extensions:b(T)}),ce=new j("pm_lazy_withdraw",{account:p,shares:u,emergency:v,extensions:b(T)}),le=new j("pm_batch_settle",{market_id:u,epoch:l,settled_bets:l}),he=new j("pm_commit_forfeit",{account:p,commit_id:u,market_id:u,penalty:x,refund:x}),pe=new j("pm_auto_payout",{account:p,market_id:u,bet_id:u,payout:x}),de=new j("pm_dispute_finalize",{market_id:u,winning_outcome:s,oracle_penalty:x}),_e=new j("pm_dispute_auto_close",{market_id:u,oracle_penalty:x}),ve=new j("pm_oracle_missed_penalty",{oracle:p,market_id:u,slashed:x}),ye=new j("pm_lazy_recall",{market_id:u,recalled:x}),ge=new j("pm_leverage_open",{account:p,market_id:u,outcome_index:s,collateral:x,loan:x,min_tokens:u,max_slippage_percent:c,extensions:b(T)}),me=new j("pm_leverage_close",{account:p,position_id:u,min_return:u,extensions:b(T)}),be=new j("pm_leverage_convert",{account:p,position_id:u,conversion_profit_cost:c,extensions:b(T)}),we=new j("pm_leverage_liquidate",{account:p,position_id:u,market_id:u,cancel_value:x,pool_received:x,bettor_received:x,reason:f}),Ee=new j("pm_leverage_resolve",{account:p,position_id:u,market_id:u,won:v,pool_received:x,bettor_received:x,outcome_index:s,leverage:c}),ke=new j("pm_market_accepted",{oracle:p,creator:p,market_id:u,oracle_fee_percent:c,oracle_fixed_fee:x,self_oracle:v}),xe=new j("pm_payout",{account:p,market_id:u,bet_id:u,side:a,outcome_index:s,amount:x,payout:x}),Te=new j("pm_dispute_oracle_respond",{oracle:p,market_id:u,response:p,extensions:b(T)}),Be=new j("pm_unban",{resolver:p,target:p,unban_oracle:v,unban_creator:v,extensions:b(T)}),Se=new j("pm_ban_expired",{account:p,oracle:v,creator:v}),Ae=new j("pm_market_expired",{oracle:p,creator:p,market_id:u,refunded_liquidity:x});A.st_operations=[R,U,P,L,F,M,q,V,H,W,Y,G,X,Z,$,Q,K,J,tt,et,rt,nt,it,ot,at,z,st,ut,ft,ct,lt,ht,pt,dt,_t,vt,yt,gt,mt,bt,wt,Et,kt,xt,Tt,Bt,jt,St,It,Ot,Ct,Rt,Ut,Pt,Lt,Dt,Mt,Nt,qt,zt,At,Ft,Vt,Ht,Wt,Yt,Gt,Xt,Zt,$t,Qt,Kt,Jt,te,ee,re,ne,ie,oe,ae,se,ue,fe,ce,le,he,pe,de,_e,ve,ye,ge,me,be,we,Ee,ke,xe,Te,Be,Se,Ae],t.exports.witness_update=q,t.exports.account_witness_vote=V,t.exports.account_witness_proxy=H,t.exports.shutdown_witness=lt,t.exports.witness_reward=kt},function(t,e,r){(function(e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=r(175),s=r(276),u=r(277),f=r(279),c=r(280),l=r(278),h={};t.exports=h;var p=e.env.npm_config__graphene_serializer_hex_dump;e.env.NODE_ENV;h.asset={fromByteBuffer:function(t){var e=t.readInt64(),r=t.readUint8(),i=t.copy(t.offset,t.offset+7),o=new n(i.toBinary(),"binary").toString().replace(/\x00/g,"");return t.skip(7),(0,s.fromImpliedDecimal)(e,r)+" "+o},appendByteBuffer:function(t,e){if(e=e.trim(),!/^[0-9]+\.?[0-9]* [A-Za-z0-9]+$/.test(e))throw new Error("Expecting amount like '99.000 SYMBOL', instead got '"+e+"'");var r=e.split(" "),n=o(r,2),i=n[0],a=n[1];if(a.length>6)throw new Error("Symbols are not longer than 6 characters "+a+"-"+a.length);t.writeInt64(u.to_long(i.replace(".","")));var s=i.indexOf("."),f=-1===s?0:i.length-s-1;t.writeUint8(f),t.append(a.toUpperCase(),"binary");for(var c=0;c<7-a.length;c++)t.writeUint8(0)},fromObject:function(t){return t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0.000 VIZ":t}},h.uint8={fromByteBuffer:function(t){return t.readUint8()},appendByteBuffer:function(t,e){u.require_range(0,255,e,"uint8 "+e),t.writeUint8(e)},fromObject:function(t){return u.require_range(0,255,t,"uint8 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(0,255,t,"uint8 "+t),parseInt(t))}},h.int8={fromByteBuffer:function(t){return t.readInt8()},appendByteBuffer:function(t,e){u.require_range(-128,127,e,"int8 "+e),t.writeInt8(e)},fromObject:function(t){return u.require_range(-128,127,t,"int8 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(-128,127,t,"int8 "+t),parseInt(t))}},h.uint16={fromByteBuffer:function(t){return t.readUint16()},appendByteBuffer:function(t,e){u.require_range(0,65535,e,"uint16 "+e),t.writeUint16(e)},fromObject:function(t){return u.require_range(0,65535,t,"uint16 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(0,65535,t,"uint16 "+t),parseInt(t))}},h.uint32={fromByteBuffer:function(t){return t.readUint32()},appendByteBuffer:function(t,e){u.require_range(0,4294967295,e,"uint32 "+e),t.writeUint32(e)},fromObject:function(t){return u.require_range(0,4294967295,t,"uint32 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(0,4294967295,t,"uint32 "+t),parseInt(t))}};var d=-1*Math.pow(2,31),_=Math.pow(2,31)-1;h.varint32={fromByteBuffer:function(t){return t.readVarint32()},appendByteBuffer:function(t,e){u.require_range(d,_,e,"uint32 "+e),t.writeVarint32(e)},fromObject:function(t){return u.require_range(d,_,t,"uint32 "+t),t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:(u.require_range(d,_,t,"uint32 "+t),parseInt(t))}},h.int16={fromByteBuffer:function(t){return t.readInt16()},appendByteBuffer:function(t,e){t.writeInt16(e)},fromObject:function(t){return t},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?0:parseInt(t)}},h.int64={fromByteBuffer:function(t){return t.readInt64()},appendByteBuffer:function(t,e){u.required(e),t.writeInt64(u.to_long(e))},fromObject:function(t){return u.required(t),u.to_long(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0":(u.required(t),u.to_long(t).toString())}},h.uint64={fromByteBuffer:function(t){return t.readUint64()},appendByteBuffer:function(t,e){t.writeUint64(u.to_long(u.unsigned(e)))},fromObject:function(t){return u.to_long(u.unsigned(t))},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0":u.to_long(t).toString()}},h.string={fromByteBuffer:function(t){return new n(t.readVString(),"utf8")},appendByteBuffer:function(t,e){u.required(e),t.writeVString(e.toString())},fromObject:function(t){return u.required(t),new n(t,"utf8")},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"":t.toString("utf8")}},h.string_binary={fromByteBuffer:function(t){var e=void 0,r=t.readVarint32();return e=t.copy(t.offset,t.offset+r),t.skip(r),new n(e.toBinary(),"binary")},appendByteBuffer:function(t,e){t.writeVarint32(e.length),t.append(e.toString("binary"),"binary")},fromObject:function(t){return u.required(t),new n(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"":t.toString()}},h.bytes=function(t){return{fromByteBuffer:function(e){if(void 0===t){var r,i=e.readVarint32();return r=e.copy(e.offset,e.offset+i),e.skip(i),new n(r.toBinary(),"binary")}return r=e.copy(e.offset,e.offset+t),e.skip(t),new n(r.toBinary(),"binary")},appendByteBuffer:function(e,r){u.required(r),"string"==typeof r&&(r=new n(r,"hex")),void 0===t&&e.writeVarint32(r.length),e.append(r.toString("binary"),"binary")},fromObject:function(t){return u.required(t),n.isBuffer(t)?t:new n(t,"hex")},toObject:function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e){return function(t){return new Array(t).join("00")}(t)}return u.required(e),e.toString("hex")}}},h.bool={fromByteBuffer:function(t){return 1===t.readUint8()},appendByteBuffer:function(t,e){t.writeUint8(JSON.parse(e)?1:0)},fromObject:function(t){return!!JSON.parse(t)},toObject:function(t){return(!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default||void 0!==t)&&!!JSON.parse(t)}},h.void={fromByteBuffer:function(t){throw new Error("(void) undefined type")},appendByteBuffer:function(t,e){throw new Error("(void) undefined type")},fromObject:function(t){throw new Error("(void) undefined type")},toObject:function(t){if(!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default||void 0!==t)throw new Error("(void) undefined type")}},h.array=function(t){return{fromByteBuffer:function(e){var r=e.readVarint32();p&&console.log("varint32 size = "+r.toString(16));for(var n=[],i=0;0<r?i<r:i>r;i++)n.push(t.fromByteBuffer(e));return g(n,t)},appendByteBuffer:function(e,r){u.required(r),r=g(r,t),e.writeVarint32(r.length);for(var n,i=0;i<r.length;i++)n=r[i],t.appendByteBuffer(e,n)},fromObject:function(e){u.required(e),e=g(e,t);for(var r,n=[],i=0;i<e.length;i++)r=e[i],n.push(t.fromObject(r));return n},toObject:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.use_default&&void 0===e)return[t.toObject(e,r)];u.required(e),e=g(e,t);for(var n,i=[],o=0;o<e.length;o++)n=e[o],i.push(t.toObject(n,r));return i}}},h.time_point_sec={fromByteBuffer:function(t){return t.readUint32()},appendByteBuffer:function(t,e){"number"!=typeof e&&(e=h.time_point_sec.fromObject(e)),t.writeUint32(e)},fromObject:function(t){if(u.required(t),"number"==typeof t)return t;if(t.getTime)return Math.floor(t.getTime()/1e3);if("string"!=typeof t)throw new Error("Unknown date type: "+t);return"string"!=typeof t||/Z$/.test(t)||(t+="Z"),Math.floor(new Date(t).getTime()/1e3)},toObject:function(t){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t)return new Date(0).toISOString().split(".")[0];if(u.required(t),"string"==typeof t)return t;if(t.getTime)return t.toISOString().split(".")[0];var e=parseInt(t);return u.require_range(0,4294967295,e,"uint32 "+t),new Date(1e3*e).toISOString().split(".")[0]}},h.set=function(t){return{validate:function(e){for(var r,n={},o=0;o<e.length;o++){var a;if(a=void 0===(r=e[o])?"undefined":i(r),["string","number"].indexOf(a)>=0){if(void 0!==n[r])throw new Error("duplicate (set)");n[r]=!0}}return g(e,t)},fromByteBuffer:function(e){var r=e.readVarint32();return p&&console.log("varint32 size = "+r.toString(16)),this.validate(function(){for(var n=[],i=0;0<r?i<r:i>r;i++)n.push(t.fromByteBuffer(e));return n}())},appendByteBuffer:function(e,r){r||(r=[]),e.writeVarint32(r.length);for(var n,i=this.validate(r),o=0;o<i.length;o++)n=i[o],t.appendByteBuffer(e,n)},fromObject:function(e){return e||(e=[]),this.validate(function(){for(var r,n=[],i=0;i<e.length;i++)r=e[i],n.push(t.fromObject(r));return n}())},toObject:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.use_default&&void 0===e?[t.toObject(e,r)]:(e||(e=[]),this.validate(function(){for(var n,i=[],o=0;o<e.length;o++)n=e[o],i.push(t.toObject(n,r));return i}()))}}},h.fixed_array=function(t,e){return{fromByteBuffer:function(r){var n,i=void 0,o=void 0;for(o=[],i=0,n=t;i<n;i+=1)o.push(e.fromByteBuffer(r));return g(o,e)},appendByteBuffer:function(r,n){var i,o=void 0,a=void 0;for(0!==t&&(u.required(n),n=g(n,e)),o=a=0,i=t;a<i;o=a+=1)e.appendByteBuffer(r,n[o])},fromObject:function(r){var n,i=void 0,o=void 0,a=void 0;for(0!==t&&u.required(r),a=[],i=o=0,n=t;o<n;i=o+=1)a.push(e.fromObject(r[i]));return a},toObject:function(r,n){var i,o=void 0,a=void 0,s=void 0,f=void 0,c=void 0,l=void 0;if(null==n&&(n={}),n.use_default&&void 0===r){for(c=[],o=a=0,f=t;a<f;o=a+=1)c.push(e.toObject(void 0,n));return c}for(0!==t&&u.required(r),l=[],o=s=0,i=t;s<i;o=s+=1)l.push(e.toObject(r[o],n));return l}}};h.protocol_id_type=function(t){return u.required(t,"name"),function(t,e){return u.required(t,"reserved_spaces"),u.required(e,"object_type"),{fromByteBuffer:function(t){return t.readVarint32()},appendByteBuffer:function(r,n){u.required(n),void 0!==n.resolve&&(n=n.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(n)&&(n=u.get_instance(t,e,n)),r.writeVarint32(u.to_number(n))},fromObject:function(r){return u.required(r),void 0!==r.resolve&&(r=r.resolve),u.is_digits(r)?u.to_number(r):u.get_instance(t,e,r)},toObject:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=l.object_type[e];return n.use_default&&void 0===r?t+"."+i+".0":(u.required(r),void 0!==r.resolve&&(r=r.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(r)&&(r=u.get_instance(t,e,r)),t+"."+i+"."+r)}}}(l.reserved_spaces.protocol_ids,t)},h.object_id_type={fromByteBuffer:function(t){return f.fromByteBuffer(t)},appendByteBuffer:function(t,e){u.required(e),void 0!==e.resolve&&(e=e.resolve),(e=f.fromString(e)).appendByteBuffer(t)},fromObject:function(t){return u.required(t),void 0!==t.resolve&&(t=t.resolve),f.fromString(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0.0.0":(u.required(t),void 0!==t.resolve&&(t=t.resolve),(t=f.fromString(t)).toString())}},h.vote_id={TYPE:255,ID:4294967040,fromByteBuffer:function(t){var e=t.readUint32();return{type:e&this.TYPE,id:e&this.ID}},appendByteBuffer:function(t,e){u.required(e),"string"===e&&(e=h.vote_id.fromObject(e));var r=e.id<<8|e.type;t.writeUint32(r)},fromObject:function(t){if(u.required(t,"(type vote_id)"),"object"===(void 0===t?"undefined":i(t)))return u.required(t.type,"type"),u.required(t.id,"id"),t;u.require_test(/^[0-9]+:[0-9]+$/,t,"vote_id format "+t);var e=t.split(":"),r=o(e,2),n=r[0],a=r[1];return u.require_range(0,255,n,"vote type "+t),u.require_range(0,16777215,a,"vote id "+t),{type:n,id:a}},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?"0:0":(u.required(t),"string"==typeof t&&(t=h.vote_id.fromObject(t)),t.type+":"+t.id)},compare:function(t,e){return"object"!==(void 0===t?"undefined":i(t))&&(t=h.vote_id.fromObject(t)),"object"!==(void 0===e?"undefined":i(e))&&(e=h.vote_id.fromObject(e)),parseInt(t.id)-parseInt(e.id)}},h.optional=function(t){return u.required(t,"st_operation"),{fromByteBuffer:function(e){if(1===e.readUint8())return t.fromByteBuffer(e)},appendByteBuffer:function(e,r){null!=r?(e.writeUint8(1),t.appendByteBuffer(e,r)):e.writeUint8(0)},fromObject:function(e){if(void 0!==e)return t.fromObject(e)},toObject:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.use_default||void 0!==e?t.toObject(e,r):void 0;return r.annotate&&("object"===(void 0===n?"undefined":i(n))?n.__optional="parent is optional":n={__optional:n}),n}}},h.static_variant=function(t){var e={witness_update:"validator_update",account_witness_vote:"account_validator_vote",account_witness_proxy:"account_validator_proxy",shutdown_witness:"shutdown_validator",witness_reward:"validator_reward"};return{nosort:!0,st_operations:t,opTypeId:function(t){var r=0,n=void 0;if("number"==typeof t)n=t;else{var i=!0,o=!1,a=void 0;try{for(var s,u=this.st_operations[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){if(s.value.operation_name===t){n=r;break}r++}}catch(t){o=!0,a=t}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}if(void 0===n&&e[t]){r=0;var f=!0,c=!1,l=void 0;try{for(var h,p=this.st_operations[Symbol.iterator]();!(f=(h=p.next()).done);f=!0){if(h.value.operation_name===e[t]){n=r;break}r++}}catch(t){c=!0,l=t}finally{try{!f&&p.return&&p.return()}finally{if(c)throw l}}}}return n},fromByteBuffer:function(t){var e=t.readVarint32(),r=this.st_operations[e];return p&&console.error("static_variant id 0x"+e.toString(16)+" ("+e+")"),u.required(r,"operation "+e),[e,r.fromByteBuffer(t)]},appendByteBuffer:function(t,e){u.required(e);var r=this.opTypeId(e[0]),n=this.st_operations[r];u.required(n,"operation "+r),t.writeVarint32(r),n.appendByteBuffer(t,e[1])},fromObject:function(t){u.required(t);var e=this.opTypeId(t[0]),r=this.st_operations[e];return u.required(r,"operation "+e),[e,r.fromObject(t[1])]},toObject:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.use_default&&void 0===t)return[this.st_operations[0].operation_name,this.st_operations[0].toObject(void 0,e)];u.required(t);var r=this.opTypeId(t[0]),n=this.st_operations[r];return u.required(n,"operation "+r),[n.operation_name,n.toObject(t[1],e)]},compare:function(t,e){return v(this.opTypeId(t[0]),this.opTypeId(e[0]))}}},h.map=function(t,e){return{validate:function(e){if(!Array.isArray(e))throw new Error("expecting array");for(var r,n={},o=0;o<e.length;o++){var a;if(2!==(r=e[o]).length)throw new Error("expecting two elements");if(a=i(r[0]),["number","string"].indexOf(a)>=0){if(void 0!==n[r[0]])throw new Error("duplicate (map)");n[r[0]]=!0}}return g(e,t)},fromByteBuffer:function(r){for(var n=[],i=r.readVarint32(),o=0;0<i?o<i:o>i;o++)n.push([t.fromByteBuffer(r),e.fromByteBuffer(r)]);return this.validate(n)},appendByteBuffer:function(r,n){this.validate(n),r.writeVarint32(n.length);for(var i,o=0;o<n.length;o++)i=n[o],t.appendByteBuffer(r,i[0]),e.appendByteBuffer(r,i[1])},fromObject:function(r){u.required(r);for(var n,i=[],o=0;o<r.length;o++)n=r[o],i.push([t.fromObject(n[0]),e.fromObject(n[1])]);return this.validate(i)},toObject:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.use_default&&void 0===r)return[[t.toObject(void 0,n),e.toObject(void 0,n)]];u.required(r),r=this.validate(r);for(var i,o=[],a=0;a<r.length;a++)i=r[a],o.push([t.toObject(i[0],n),e.toObject(i[1],n)]);return o}}},h.public_key={toPublic:function(t){return void 0!==t.resolve&&(t=t.resolve),null==t?t:t.Q?t:a.PublicKey.fromStringOrThrow(t)},fromByteBuffer:function(t){return c.public_key(t)},appendByteBuffer:function(t,e){u.required(e),c.public_key(t,h.public_key.toPublic(e))},fromObject:function(t){return u.required(t),t.Q?t:h.public_key.toPublic(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?a.ecc_config.get("address_prefix")+"859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM":(u.required(t),t.toString())},compare:function(t,e){return 1*v(t.toString(),e.toString())}},h.address={_to_address:function(t){return u.required(t),t.addy?t:a.Address.fromString(t)},fromByteBuffer:function(t){return new a.Address(c.ripemd160(t))},appendByteBuffer:function(t,e){c.ripemd160(t,h.address._to_address(e).toBuffer())},fromObject:function(t){return h.address._to_address(t)},toObject:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===t?a.ecc_config.get("address_prefix")+"664KmHxSuQyDsfwo4WEJvWpzg1QKdg67S":h.address._to_address(t).toString()},compare:function(t,e){return-1*v(t.toString(),e.toString())}};var v=function(t,e){return t>e?1:t<e?-1:0},y=function(t){return Array.isArray(t)?t[0]:t},g=function(t,e){return e.nosort?t:e.compare?t.sort(function(t,r){return e.compare(y(t),y(r))}):t.sort(function(t,e){return"number"==typeof y(t)&&"number"==typeof y(e)?y(t)-y(e):n.isBuffer(y(t))&&n.isBuffer(y(e))?v(y(t).toString("hex"),y(e).toString("hex")):v(y(t).toString(),y(e).toString())})}}).call(e,r(5),r(177).Buffer)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.toImpliedDecimal=function(t,e){"number"==typeof t?((0,o.default)(t<=9007199254740991,"overflow"),t=""+t):t.toString&&(t=t.toString());(0,o.default)("string"==typeof t,"number should be an actual number or string: "+(void 0===t?"undefined":i(t))),t=t.trim(),(0,o.default)(/^[0-9]*\.?[0-9]*$/.test(t),"Invalid decimal number "+t);var r=t.split("."),a=n(r,2),s=a[0],u=void 0===s?"":s,f=a[1],c=void 0===f?"":f,l=e-c.length;(0,o.default)(l>=0,"Too many decimal digits in "+t+" to create an implied decimal of "+e);for(var h=0;h<l;h++)c+="0";for(;"0"===u.charAt(0);)u=u.substring(1);return u+c},e.fromImpliedDecimal=function(t,e){"number"==typeof t?((0,o.default)(t<=9007199254740991,"overflow"),t=""+t):t.toString&&(t=t.toString());for(;t.length<e+1;)t="0"+t;var r=t.substring(t.length-e);return t.substring(0,t.length-e)+(r?"."+r:"")};var o=function(t){return t&&t.__esModule?t:{default:t}}(r(181))},function(t,e,r){"use strict";var n,i,o,a,s,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=r(230).Long,c=r(278);t.exports=n={is_empty:i=function(t){return null==t},required:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))throw new Error("value required "+e+" "+t);return t},require_long:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!f.isLong(t))throw new Error("Long value required "+e+" "+t);return t},string:function(t){if(i(t))return t;if("string"!=typeof t)throw new Error("string required: "+t);return t},number:function(t){if(i(t))return t;if("number"!=typeof t)throw new Error("number required: "+t);return t},whole_number:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))return t;if(/\./.test(t))throw new Error("whole number required "+e+" "+t);return t},unsigned:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))return t;if(/-/.test(t))throw new Error("unsigned required "+e+" "+t);return t},is_digits:function(t){return"numeric"==typeof t||/^[0-9]+$/.test(t)},to_number:o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return i(t)?t:(n.no_overflow53(t,e),"number"==typeof t?t:parseInt(t))},to_long:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return i(t)?t:f.isLong(t)?t:(n.no_overflow64(t,e),"number"==typeof t&&(t=""+t),f.fromString(t))},to_string:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(i(t))return t;if("string"==typeof t)return t;if("number"==typeof t)return n.no_overflow53(t,e),""+t;if(f.isLong(t))return t.toString();throw"unsupported type "+e+": ("+(void 0===t?"undefined":u(t))+") "+t},require_test:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(i(e))return e;if(!t.test(e))throw new Error("unmatched "+t+" "+r+" "+e);return e},require_match:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(i(e))return e;var n=e.match(t);if(null===n)throw new Error("unmatched "+t+" "+r+" "+e);return n},require_range:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(i(r))return r;o(r);if(r<t||r>e)throw new Error("out of range "+r+" "+n+" "+r);return r},require_object_type:a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments[1],r=arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(i(r))return r;var o=c.object_type[e];if(!o)throw new Error("Unknown object type: "+e+", "+n+", "+r);if(!new RegExp(t+"."+o+".[0-9]+$").test(r))throw new Error("Expecting "+e+" in format "+t+"."+o+".[0-9]+ instead of "+r+" "+n+" "+r);return r},get_instance:function(t,e,r,n){return i(r)?r:(a(t,e,r,n),o(r.split(".")[2]))},require_relative_type:function(t,e,r){return a(0,t,e,r),e},get_relative_instance:function(t,e,r){return i(e)?e:(a(0,t,e,r),o(e.split(".")[2]))},require_protocol_type:function(t,e,r){return a(1,t,e,r),e},get_protocol_instance:function(t,e,r){return i(e)?e:(a(1,t,e,r),o(e.split(".")[2]))},get_protocol_type:s=function(t,e){if(i(t))return t;(void 0)(t,e);var r=t.split(".");return o(r[1])},get_protocol_type_name:function(t,e){if(i(t))return t;var r=s(t,e);return Object.keys(c.object_type)[r]},require_implementation_type:function(t,e,r){return a(2,t,e,r),e},get_implementation_instance:function(t,e,r){return i(e)?e:(a(2,t,e,r),o(e.split(".")[2]))},no_overflow53:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("number"!=typeof t)if("string"!=typeof t){if(!f.isLong(t))throw"unsupported type "+e+": ("+(void 0===t?"undefined":u(t))+") "+t;n.no_overflow53(t.toInt(),e)}else{parseInt(t);if(t>9007199254740991||t<-9007199254740991)throw new Error("overflow "+e+" "+t)}else if(t>9007199254740991||t<-9007199254740991)throw new Error("overflow "+e+" "+t)},no_overflow64:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!f.isLong(t))if(void 0===t.t||void 0===t.s)if("string"!=typeof t){if("number"!=typeof t)throw"unsupported type "+e+": ("+(void 0===t?"undefined":u(t))+") "+t;if(t>9007199254740991||t<-9007199254740991)throw new Error("overflow "+e+" "+t)}else{for(t=t.replace(/^0+/,"");/0$/.test(t);)t=t.substring(0,t.length-1);if(/\.$/.test(t)&&(t=t.substring(0,t.length-1)),""===t&&(t="0"),f.fromString(t).toString()!==t.trim())throw new Error("overflow "+e+" "+t)}else n.no_overflow64(t.toString(),e)}}},function(t,e){"use strict";var r=void 0;t.exports=r={},r.reserved_spaces={relative_protocol_ids:0,protocol_ids:1,implementation_ids:2},r.operations={vote:0,content:1,transfer:2,transfer_to_vesting:3,withdraw_vesting:4,account_update:5,validator_update:6,account_validator_vote:7,account_validator_proxy:8,delete_content:9,custom:10,set_withdraw_vesting_route:11,request_account_recovery:12,recover_account:13,change_recovery_account:14,escrow_transfer:15,escrow_dispute:16,escrow_release:17,escrow_approve:18,delegate_vesting_shares:19,account_create:20,account_metadata:21,proposal_create:22,proposal_update:23,proposal_delete:24,chain_properties_update:25,author_reward:26,curation_reward:27,content_reward:28,fill_vesting_withdraw:29,shutdown_validator:30,hardfork:31,content_payout_update:32,content_benefactor_reward:33,return_vesting_delegation:34,committee_worker_create_request:35,committee_worker_cancel_request:36,committee_vote_request:37,committee_cancel_request:38,committee_approve_request:39,committee_payout_request:40,committee_pay_request:41,validator_reward:42,create_invite:43,claim_invite_balance:44,invite_registration:45,versioned_chain_properties_update:46,award:47,receive_award:48,benefactor_award:49,set_paid_subscription:50,paid_subscribe:51,paid_subscription_action:52,cancel_paid_subscription:53,set_account_price:54,set_subaccount_price:55,buy_account:56,account_sale:57,use_invite_balance:58,expire_escrow_ratification:59,fixed_award:60,target_account_sale:61,bid:62,outbid:63,set_reward_sharing:64,stakeholder_reward:65,pm_oracle_register:66,pm_oracle_update:67,pm_create_market:68,pm_oracle_accept_market:69,pm_place_bet:70,pm_commit_bet:71,pm_reveal_bet:72,pm_cancel_bet:73,pm_add_liquidity:74,pm_withdraw_liquidity:75,pm_resolve_market:76,pm_no_contest:77,pm_dispute_create:78,pm_dispute_vote:79,pm_dispute_resolve:80,pm_transfer_position:81,pm_lazy_deposit:82,pm_lazy_withdraw:83,pm_batch_settle:84,pm_commit_forfeit:85,pm_auto_payout:86,pm_dispute_finalize:87,pm_dispute_auto_close:88,pm_oracle_missed_penalty:89,pm_lazy_recall:90,pm_leverage_open:91,pm_leverage_close:92,pm_leverage_convert:93,pm_leverage_liquidate:94,pm_leverage_resolve:95,pm_market_accepted:96,pm_payout:97,pm_dispute_oracle_respond:98,pm_unban:99,pm_ban_expired:100,pm_market_expired:101,witness_update:6,account_witness_vote:7,account_witness_proxy:8,shutdown_witness:30,witness_reward:42},r.object_type={null:0,base:1}},function(t,e,r){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var i=r(230).Long,o=r(277),a=i.fromNumber(Math.pow(2,48)-1),s=function(){function t(e,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.space=e,this.type=r,this.instance=n;var i=this.instance.toString(),a=this.space+"."+this.type+"."+i;if(!o.is_digits(i))throw new("Invalid object id "+a)}return n(t,[{key:"toLong",value:function(){return i.fromNumber(this.space).shiftLeft(56).or(i.fromNumber(this.type).shiftLeft(48).or(this.instance))}},{key:"appendByteBuffer",value:function(t){return t.writeUint64(this.toLong())}},{key:"toString",value:function(){return this.space+"."+this.type+"."+this.instance.toString()}}],[{key:"fromString",value:function(e){if(void 0!==e.space&&void 0!==e.type&&void 0!==e.instance)return e;var r=o.require_match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/,o.required(e,"object_id"),"object_id");return new t(parseInt(r[1]),parseInt(r[2]),i.fromString(r[3]))}},{key:"fromLong",value:function(e){return new t(e.shiftRight(56).toInt(),255&e.shiftRight(48).toInt(),e.and(a))}},{key:"fromByteBuffer",value:function(e){return t.fromLong(e.readUint64())}}]),t}();t.exports=s},function(t,e,r){(function(e){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(175);var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,null,[{key:"fixed_data",value:function(t,r,n){if(t){if(!n){var i=t.copy(t.offset,t.offset+r);return t.skip(r),new e(i.toBinary(),"binary")}var o=n.slice(0,r).toString("binary");for(t.append(o,"binary");r-- >o.length;)t.writeUint8(0)}}},{key:"public_key",value:function(e,r){if(e){if(!r)return n=t.fixed_data(e,33),i.PublicKey.fromBuffer(n);var n=r.toBuffer();e.append(n.toString("binary"),"binary")}}},{key:"ripemd160",value:function(e,r){if(e)return r?void t.fixed_data(e,20,r):t.fixed_data(e,20)}},{key:"time_point_sec",value:function(t,e){return e?(e=Math.ceil(e/1e3),void t.writeInt32(e)):(e=t.readInt32(),new Date(1e3*e))}}]),t}();t.exports=o}).call(e,r(177).Buffer)},function(t,e,r){(function(e,n){"use strict";var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var o=r(230),a=r(282),s=e.env.npm_config__graphene_serializer_hex_dump,u=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.operation_name=e,this.types=r,this.types&&(this.keys=Object.keys(this.types)),t.printDebug=!0}return i(t,[{key:"fromByteBuffer",value:function(e){var r={},n=null;try{for(var i=this.keys,o=0;o<i.length;o++){n=i[o];var u=this.types[n];try{if(s)if(u.operation_name)console.error(u.operation_name);else{var f=e.offset;u.fromByteBuffer(e);var c=e.offset;e.offset=f;var l=e.copy(f,c);console.error(this.operation_name+"."+n+"\t",l.toHex())}r[n]=u.fromByteBuffer(e)}catch(r){throw t.printDebug&&(console.error("Error reading "+this.operation_name+"."+n+" in data:"),e.printDebug()),r}}}catch(t){a.throw(this.operation_name+"."+n,t)}return r}},{key:"appendByteBuffer",value:function(e,r){var n=null;try{for(var i=this.keys,o=0;o<i.length;o++){n=i[o];var s=this.types[n],u=r[n];void 0===u&&void 0!==t.field_aliases[n]&&(u=r[t.field_aliases[n]]),s.appendByteBuffer(e,u)}}catch(t){try{a.throw(this.operation_name+"."+n+" = "+JSON.stringify(r[n]),t)}catch(e){a.throw(this.operation_name+"."+n+" = "+r[n],t)}}}},{key:"fromObject",value:function(e){var r={},n=null;try{for(var i=this.keys,o=0;o<i.length;o++){n=i[o];var s=this.types[n],u=e[n];void 0===u&&void 0!==t.field_aliases[n]&&(u=e[t.field_aliases[n]]);var f=s.fromObject(u);r[n]=f}}catch(t){a.throw(this.operation_name+"."+n,t)}return r}},{key:"toObject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{use_default:!1,annotate:!1},r={},n=null;try{if(!this.types)return r;for(var i=this.keys,u=0;u<i.length;u++){n=i[u];var f=this.types[n],c=f.toObject(null!=t?t[n]:void 0,e);if(r[n]=c,s){var l=new o(o.DEFAULT_CAPACITY,o.LITTLE_ENDIAN);if(null!=t){var h=t[n];h&&f.appendByteBuffer(l,h)}l=l.copy(0,l.offset),console.error(this.operation_name+"."+n,l.toHex())}}}catch(t){a.throw(this.operation_name+"."+n,t)}return r}},{key:"compare",value:function(t,e){var r=this.keys[0],i=this.types[r],o=t[r],a=e[r];if(i.compare)return i.compare(o,a);if("number"==typeof o&&"number"==typeof a)return o-a;var s=void 0;n.isBuffer(o)&&n.isBuffer(a)&&(s="hex");var u=o.toString(s),f=a.toString(s);return u>f?1:u<f?-1:0}},{key:"fromHex",value:function(t){var e=o.fromHex(t,o.LITTLE_ENDIAN);return this.fromByteBuffer(e)}},{key:"fromBuffer",value:function(t){var e=o.fromBinary(t.toString("binary"),o.LITTLE_ENDIAN);return this.fromByteBuffer(e)}},{key:"toHex",value:function(t){return this.toByteBuffer(t).toHex()}},{key:"toByteBuffer",value:function(t){var e=new o(o.DEFAULT_CAPACITY,o.LITTLE_ENDIAN);return this.appendByteBuffer(e,t),e.copy(0,e.offset)}},{key:"toBuffer",value:function(t){return new n(this.toByteBuffer(t).toBinary(),"binary")}}]),t}();u.field_aliases={validator:"witness",validator_signature:"witness_signature",inflation_validator_percent:"inflation_witness_percent",validator_miss_penalty_percent:"witness_miss_penalty_percent",validator_miss_penalty_duration:"witness_miss_penalty_duration",validator_declaration_fee:"witness_declaration_fee"},t.exports=u}).call(e,r(5),r(177).Buffer)},function(t,e){"use strict";var r=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();var n=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.message=e,(null!=r?r.message:void 0)&&(this.message="cause\t"+r.message+"\t"+this.message);var n="";(null!=r?r.stack:void 0)&&(n="caused by\n\t"+r.stack+"\t"+n),this.stack=this.message+"\n"+n}return r(t,null,[{key:"throw",value:function(t,e){var r=t;throw(null!=e?e.message:void 0)&&(r+="\t cause: "+e.message+" "),(null!=e?e.stack:void 0)&&(r+="\n stack: "+e.stack+" "),new Error(r)}}]),t}();t.exports=n},function(t,e,r){(function(n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=_(r(3)),a=_(r(168)),s=_(r(284)),u=_(r(285)),f=_(r(286)),c=_(r(299)),l=_(r(1)),h=_(r(273)),p=r(174),d=_(r(171));function _(t){return t&&t.__esModule?t:{default:t}}var v=(0,a.default)("viz:broadcast"),y=(0,f.default)(l.default),g={send:function(t,e,r){g._prepareTransaction(t).then(function(t){return v("Signing transaction (transaction, transaction.operations)",t,t.operations),o.default.join(t,h.default.signTransaction(t,e))}).spread(function(t,e){return v("Broadcasting transaction (transaction, transaction.operations)",t,t.operations),d.default.get("broadcast_transaction_with_callback")?l.default.broadcastTransactionWithCallbackAsync(function(){},e).then(function(){return e}):l.default.broadcastTransactionAsync(e).then(function(){return e})}).nodeify(r||s.default)},_prepareTransaction:function(t){return l.default.getDynamicGlobalPropertiesAsync().then(function(e){var r=new Date(e.time+"Z"),i=d.default.get("tx_expiration_seconds")||60,o=new Date(r.getTime()+1e3*i);if(d.default.get("reference_irreversible_block")&&void 0!==e.last_irreversible_block_ref_num&&0!==e.last_irreversible_block_ref_num)return Object.assign({ref_block_num:e.last_irreversible_block_ref_num,ref_block_prefix:e.last_irreversible_block_ref_prefix,expiration:o},t);var a=65535&e.head_block_number;if(e.head_block_id){var s=new n(e.head_block_id,"hex").readUInt32LE(4);return Object.assign({ref_block_num:a,ref_block_prefix:s,expiration:o},t)}var u=e.head_block_number-3&65535;return l.default.getBlockAsync(e.head_block_number-2).then(function(e){var r=e.previous;return Object.assign({ref_block_num:u,ref_block_prefix:new n(r,"hex").readUInt32LE(4),expiration:o},t)})})}};c.default.forEach(function(t){var e=(0,p.camelCase)(t.operation),r=t.params||[],n=-1!==r.indexOf("parent_permlink")&&-1!==r.indexOf("parent_permlink");g[e+"With"]=function(r,i,o){v('Sending operation "'+e+'" with',{options:i,callback:o});var a={};return t.roles&&t.roles.length&&(a[t.roles[0]]=r),g.send({extensions:[],operations:[[t.operation,Object.assign({},i,null!=i.json_metadata?{json_metadata:m(i.json_metadata)}:{},n&&null==i.permlink?{permlink:y.contentPermlink(i.parent_author,i.parent_permlink)}:{})]]},a,o)},g[e]=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];v('Parsing operation "'+e+'" with',{args:i});var a=r.reduce(function(t,e,r){return t[e]=i[r],t},{}),s=i[r.length];return g[e+"With"](t,a,s)}});var m=function(t){return"object"===(void 0===t?"undefined":i(t))?JSON.stringify(t):t};(0,u.default)(g),o.default.promisifyAll(g),e=t.exports=g}).call(e,r(177).Buffer)},function(t,e){t.exports=function(){}},function(t,e,r){"use strict";var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(t){return t&&t.__esModule?t:{default:t}}(r(1));t.exports=function(t){t.addAccountAuth=function(e,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"regular",s=arguments[4];i.default.getAccountsAsync([r]).then(function(r){var i=n(r,1)[0],u=i[a];if(-1!==u.account_auths.map(function(t){return t[0]}).indexOf(o))return s(null,null);u.account_auths.push([o,1]);var f="master"===a?u:void 0,c="active"===a?u:void 0,l="regular"===a?u:void 0;t.accountUpdate(e,i.name,f,c,l,i.memo_key,i.json_metadata,s)})},t.removeAccountAuth=function(e,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"regular",s=arguments[4];i.default.getAccountsAsync([r]).then(function(r){for(var i=n(r,1)[0],u=i[a],f=u.account_auths.length,c=0;c<f;c++){if(u.account_auths[c][0]===o){u.account_auths.splice(c,1);break}}if(f===u.account_auths.length)return s(null,null);var l="master"===a?u:void 0,h="active"===a?u:void 0,p="regular"===a?u:void 0;t.accountUpdate(e,i.name,l,h,p,i.memo_key,i.json_metadata,s)})}}},function(t,e,r){(function(e){"use strict";o(r(287));var n=r(175),i=o(r(185));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){function r(t){return"string"==typeof t&&-1!==t.indexOf(" ")?BigInt(Math.round(1e3*parseFloat(t.trim().split(" ")[0]))):BigInt(t)}function o(t,e){var r=parseFloat(t.vesting_shares.split(" ")[0]),n=parseFloat(e.total_vesting_shares.split(" ")[0]);return parseFloat(e.total_vesting_fund.split(" ")[0])*(r/n)}return{sharesToVIZ:function(t,e,r){return parseFloat(r)*(parseFloat(t)/parseFloat(e))},contentPermlink:function(t,e){var r=(new Date).toISOString().replace(/[^a-zA-Z0-9]+/g,"").toLowerCase();return"re-"+t+"-"+(e=e.replace(/(-\d{8}t\d{9}z)/g,""))+"-"+r},amount:function(t,e){return t.toFixed(3)+" "+e},predictionMarketCommitment:function(t,n,o,a,s,u,f){var c=e.alloc(59);c.writeBigInt64LE(BigInt(t),0),e.from(String(n),"ascii").copy(c,8,0,32),c.writeInt8(o,40),c.writeInt16LE(a,41),c.writeBigInt64LE(r(s),43),c.writeBigInt64LE(BigInt(u),51);var l=e.concat([c,e.from(f,"utf8")]);return i.default.sha256(l,"hex")},toMilliVIZ:r,numberWithCommas:function(t){return t.replace(/\B(?=(\d{3})+(?!\d))/g,",")},vestingVIZ:o,estimateAccountValue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.gprops,i=r.vesting_viz,a=[];return e.name,i||(n?i=o(e,n):a.push(t.getStateAsync("/@{username}").then(function(t){n=t.props,i=o(e,n)}))),Promise.all(a).then(function(){var t=parseFloat(e.balance.split(" ")[0]);return(i+t).toFixed(3)})},createSuggestedPassword:function(){return n.key_utils.get_random_key().toWif().substring(3,35)}}}}).call(e,r(177).Buffer)},function(t,e,r){var n=r(288);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},function(t,e,r){var n=r(289),i=r(298);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},function(t,e,r){var n=r(100),i=r(290),o=r(292),a=r(295);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,r){var n=r(100),i=r(291),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,r){var n=r(62),i=r(99),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&n(t)==o}},function(t,e,r){var n=r(293),i=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=n(function(t){var e=[];return i.test(t)&&e.push(""),t.replace(o,function(t,r,n,i){e.push(n?i.replace(a,"$1"):r||t)}),e});t.exports=s},function(t,e,r){var n=r(294),i=500;t.exports=function(t){var e=n(t,function(t){return r.size===i&&r.clear(),t}),r=e.cache;return e}},function(t,e,r){var n=r(73),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},function(t,e,r){var n=r(296);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(63),i=r(297),o=r(100),a=r(291),s=1/0,u=n?n.prototype:void 0,f=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return f?f.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},function(t,e,r){var n=r(291),i=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},function(t,e){"use strict";t.exports=[{roles:["regular"],operation:"vote",params:["voter","author","permlink","weight"]},{roles:["regular"],operation:"content",params:["parent_author","parent_permlink","author","permlink","title","body","curation_percent","json_metadata","extensions"]},{roles:["active","master"],operation:"transfer",params:["from","to","amount","memo"]},{roles:["active"],operation:"transfer_to_vesting",params:["from","to","amount"]},{roles:["active"],operation:"withdraw_vesting",params:["account","vesting_shares"]},{roles:["master","active"],operation:"account_update",params:["account","master","active","regular","memo_key","json_metadata"]},{roles:["active"],operation:"validator_update",params:["owner","url","block_signing_key"]},{roles:["active"],operation:"witness_update",params:["owner","url","block_signing_key"]},{roles:["active"],operation:"chain_properties_update",params:["owner","props"]},{roles:["regular"],operation:"account_validator_vote",params:["account","validator","approve"]},{roles:["regular"],operation:"account_witness_vote",params:["account","witness","approve"]},{roles:["regular"],operation:"account_validator_proxy",params:["account","proxy"]},{roles:["regular"],operation:"account_witness_proxy",params:["account","proxy"]},{roles:["regular"],operation:"delete_content",params:["author","permlink"]},{roles:["regular","active"],operation:"custom",params:["required_active_auths","required_regular_auths","id","json"]},{roles:["active"],operation:"set_withdraw_vesting_route",params:["from_account","to_account","percent","auto_vest"]},{roles:["active"],operation:"request_account_recovery",params:["recovery_account","account_to_recover","new_master_authority","extensions"]},{roles:["master"],operation:"recover_account",params:["account_to_recover","new_master_authority","recent_master_authority","extensions"]},{roles:["master"],operation:"change_recovery_account",params:["account_to_recover","new_recovery_account","extensions"]},{roles:["active"],operation:"escrow_transfer",params:["from","to","token_amount","escrow_id","agent","fee","json_metadata","ratification_deadline","escrow_expiration"]},{roles:["active"],operation:"escrow_dispute",params:["from","to","agent","who","escrow_id"]},{roles:["active"],operation:"escrow_release",params:["from","to","agent","who","receiver","escrow_id","token_amount"]},{roles:["active"],operation:"escrow_approve",params:["from","to","agent","who","escrow_id","approve"]},{roles:["regular"],operation:"claim_reward_balance",params:["account","reward","reward_vests"]},{roles:["regular"],operation:"content_reward",params:["author","permlink","payout"]},{roles:["active"],operation:"fill_vesting_withdraw",params:["from_account","to_account","withdrawn","deposited"]},{roles:["active","master"],operation:"delegate_vesting_shares",params:["delegator","delegatee","vesting_shares"]},{roles:["active","master"],operation:"account_create",params:["fee","delegation","creator","new_account_name","master","active","regular","memo_key","json_metadata","referrer","extensions"]},{roles:["regular"],operation:"account_metadata",params:["account","json_metadata"]},{roles:["active","master"],operation:"proposal_create",params:["author","title","memo","expiration_time","proposed_operations","review_period_time","extensions"]},{roles:["regular","active","master"],operation:"proposal_update",params:["author","title","active_approvals_to_add","active_approvals_to_remove","master_approvals_to_add","master_approvals_to_remove","regular_approvals_to_add","regular_approvals_to_remove","key_approvals_to_add","key_approvals_to_remove","extensions"]},{roles:["active","master"],operation:"proposal_delete",params:["author","title","requester","extensions"]},{roles:["regular"],operation:"committee_worker_create_request",params:["creator","url","worker","required_amount_min","required_amount_max","duration"]},{roles:["regular"],operation:"committee_worker_cancel_request",params:["creator","request_id"]},{roles:["regular"],operation:"committee_vote_request",params:["voter","request_id","vote_percent"]},{roles:["active"],operation:"create_invite",params:["creator","balance","invite_key"]},{roles:["active"],operation:"claim_invite_balance",params:["initiator","receiver","invite_secret"]},{roles:["active"],operation:"invite_registration",params:["initiator","new_account_name","invite_secret","new_account_key"]},{roles:["active"],operation:"versioned_chain_properties_update",params:["owner","props"]},{roles:["regular"],operation:"award",params:["initiator","receiver","energy","custom_sequence","memo","beneficiaries"]},{roles:["regular"],operation:"fixed_award",params:["initiator","receiver","reward_amount","max_energy","custom_sequence","memo","beneficiaries"]},{roles:["active"],operation:"set_paid_subscription",params:["account","url","levels","amount","period"]},{roles:["active"],operation:"paid_subscribe",params:["subscriber","account","level","amount","period","auto_renewal"]},{roles:["master"],operation:"set_account_price",params:["account","account_seller","account_offer_price","account_on_sale"]},{roles:["master"],operation:"target_account_sale",params:["account","account_seller","target_buyer","account_offer_price","account_on_sale"]},{roles:["master"],operation:"set_subaccount_price",params:["account","subaccount_seller","subaccount_offer_price","subaccount_on_sale"]},{roles:["active"],operation:"buy_account",params:["buyer","account","account_offer_price","account_authorities_key","tokens_to_shares"]},{roles:["active"],operation:"use_invite_balance",params:["initiator","receiver","invite_secret"]},{roles:["active"],operation:"set_reward_sharing",params:["owner","sharing_rate"]},{roles:["active"],operation:"pm_oracle_register",params:["owner","insurance","fee_percent","fixed_fee","rules_url","auto_accept_creator","auto_accept_resolver","auto_accept","extensions"]},{roles:["active"],operation:"pm_oracle_update",params:["owner","insurance_delta","fee_percent","fixed_fee","rules_url","auto_accept_creator","auto_accept_resolver","auto_accept","extensions"]},{roles:["active"],operation:"pm_create_market",params:["creator","oracle","market_type","outcomes","url","oracle_fee_percent","oracle_fixed_fee","creator_fee_percent","liquidity_fee_percent","liquidity","lmsr_b","betting_expiration","result_expiration","time_penalty_type","time_penalty_value","penalty_curve_type","allow_early_resolution","allow_cancellation","allow_batch","allow_instant_bet","endogeneity_tier","dispute_mode","dispute_resolver","dispute_penalty_percent","metadata","extensions"]},{roles:["active"],operation:"pm_oracle_accept_market",params:["oracle","market_id","accept","oracle_fee_percent","oracle_fixed_fee","extensions"]},{roles:["active"],operation:"pm_place_bet",params:["account","market_id","side","outcome_index","amount","min_tokens","mode","extensions"]},{roles:["active"],operation:"pm_commit_bet",params:["account","market_id","commitment","escrow_amount","no_reveal_fee_percent","extensions"]},{roles:["active"],operation:"pm_reveal_bet",params:["account","commit_id","side","outcome_index","amount","salt","min_tokens","extensions"]},{roles:["active"],operation:"pm_cancel_bet",params:["account","bet_id","min_return","extensions"]},{roles:["active"],operation:"pm_add_liquidity",params:["provider","market_id","amount","extensions"]},{roles:["active"],operation:"pm_withdraw_liquidity",params:["provider","liquidity_id","amount","extensions"]},{roles:["active"],operation:"pm_resolve_market",params:["oracle","market_id","winning_outcome","decision_url","decision_reason","extensions"]},{roles:["active"],operation:"pm_no_contest",params:["oracle","market_id","reason","extensions"]},{roles:["active"],operation:"pm_dispute_create",params:["disputer","market_id","proposed_outcome","reason","extensions"]},{roles:["regular"],operation:"pm_dispute_vote",params:["voter","market_id","vote_outcome","vote_percent","extensions"]},{roles:["active"],operation:"pm_dispute_resolve",params:["resolver","market_id","correct_outcome","penalty_amount","ban_oracle","ban_oracle_until","ban_creator","ban_creator_until","extensions"]},{roles:["active"],operation:"pm_transfer_position",params:["from","bet_id","to","amount","memo","extensions"]},{roles:["active"],operation:"pm_lazy_deposit",params:["account","amount","extensions"]},{roles:["active"],operation:"pm_lazy_withdraw",params:["account","shares","emergency","extensions"]},{roles:["active"],operation:"pm_leverage_open",params:["account","market_id","outcome_index","collateral","loan","min_tokens","max_slippage_percent","extensions"]},{roles:["active"],operation:"pm_leverage_close",params:["account","position_id","min_return","extensions"]},{roles:["active"],operation:"pm_leverage_convert",params:["account","position_id","conversion_profit_cost","extensions"]},{roles:["active"],operation:"pm_dispute_oracle_respond",params:["oracle","market_id","response","extensions"]},{roles:["active"],operation:"pm_unban",params:["resolver","target","unban_oracle","unban_creator","extensions"]}]},function(t,e,r){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.decode=c,e.encode=l;var i=u(r(230)),o=u(r(181)),a=u(r(225)),s=r(175);function u(t){return t&&t.__esModule?t:{default:t}}var f=r(301).ops.encrypted_memo;function c(e,r){if((0,o.default)(r,"memo is required"),o.default.equal(void 0===r?"undefined":n(r),"string","memo"),!/^#/.test(r))return r;r=r.substring(1),(0,o.default)(e,"private_key is required"),p(),e=d(e),r=a.default.decode(r);var u=r=f.fromBuffer(new t(r,"binary")),c=u.from,l=u.to,h=u.nonce,_=u.check,v=u.encrypted,y=e.toPublicKey().toString()===c.toString()?l.toString():c.toString();r=s.Aes.decrypt(e,y,h,v,_);var g=i.default.fromBinary(r.toString("binary"),i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);try{return g.mark(),"#"+g.readVString()}catch(e){return g.reset(),"#"+(r=new t(g.toString("binary"),"binary").toString("utf-8"))}}function l(e,r,u,c){if((0,o.default)(u,"memo is required"),o.default.equal(void 0===u?"undefined":n(u),"string","memo"),!/^#/.test(u))return u;u=u.substring(1),(0,o.default)(e,"private_key is required"),(0,o.default)(r,"public_key is required"),p(),e=d(e),r=_(r);var l=new i.default(i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);l.writeVString(u),u=new t(l.copy(0,l.offset).toBinary(),"binary");var h=s.Aes.encrypt(e,r,u,c),v=h.nonce,y=h.message,g=h.checksum;return u=f.fromObject({from:e.toPublicKey(),to:r,nonce:v,check:g,encrypted:y}),u=f.toBuffer(u),"#"+a.default.encode(new t(u,"binary"))}var h=void 0;function p(){if(void 0===h){var t=void 0;h=!0;try{var e="5JdeC9P7Pbd1uGdFVEsJ41EkEnADbbHGq6p1BwFxm6txNBsQnsw";t=c(e,l(e,"VIZ8m5UgaFAAYQRuaNejYdS8FVLVp9Ss3K1qAVk5de6F8s3HnVbvA","#memo爱"))}catch(t){console.error(t)}finally{h="#memo爱"===t}}if(!1===h)throw new Error("This environment does not support encryption.")}var d=function(t){return t?t.d?t:s.PrivateKey.fromWif(t):t},_=function(t){return t?t.Q?t:s.PublicKey.fromString(t):t}}).call(e,r(177).Buffer)},function(t,e,r){"use strict";t.exports={Serializer:r(281),fp:r(280),types:r(275),ops:r(274),template:r(302),number_utils:r(276)}},function(t,e){"use strict";t.exports=function(t){var e=t.toObject(void 0,{use_default:!0,annotate:!0});console.error(JSON.stringify(e,null,4)),e=t.toObject(void 0,{use_default:!0,annotate:!1}),console.error(JSON.stringify(e))}}]));