PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/tronweb/dist

Просмотр файла: TronWeb.js

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("TronWeb",[],e):"object"==typeof exports?exports.TronWeb=e():t.TronWeb=e()}(window,(function(){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=10)}([function(t,e,r){"use strict";var o={};r.r(o),r.d(o,"bin2String",(function(){return b})),r.d(o,"arrayEquals",(function(){return v})),r.d(o,"stringToBytes",(function(){return A})),r.d(o,"byte2hexStr",(function(){return h.byte2hexStr})),r.d(o,"bytesToString",(function(){return h.bytesToString})),r.d(o,"hextoString",(function(){return h.hextoString})),r.d(o,"byteArray2hexStr",(function(){return h.byteArray2hexStr})),r.d(o,"base64DecodeFromString",(function(){return h.base64DecodeFromString})),r.d(o,"base64EncodeToString",(function(){return h.base64EncodeToString})),r.d(o,"hexChar2byte",(function(){return w})),r.d(o,"isHexChar",(function(){return M})),r.d(o,"hexStr2byteArray",(function(){return B})),r.d(o,"strToDate",(function(){return C})),r.d(o,"isNumber",(function(){return E})),r.d(o,"getStringType",(function(){return S}));var n={};r.r(n),r.d(n,"encode58",(function(){return _})),r.d(n,"decode58",(function(){return x}));var i={};r.r(i),r.d(i,"getBase58CheckAddress",(function(){return ct})),r.d(i,"decodeBase58Address",(function(){return ut})),r.d(i,"signTransaction",(function(){return lt})),r.d(i,"arrayToBase64String",(function(){return dt})),r.d(i,"signBytes",(function(){return pt})),r.d(i,"_signTypedData",(function(){return ft})),r.d(i,"getRowBytesFromTransactionBase64",(function(){return ht})),r.d(i,"genPriKey",(function(){return gt})),r.d(i,"computeAddress",(function(){return yt})),r.d(i,"getAddressFromPriKey",(function(){return mt})),r.d(i,"decode58Check",(function(){return bt})),r.d(i,"isAddressValid",(function(){return vt})),r.d(i,"getBase58CheckAddressFromPriKeyBase64String",(function(){return At})),r.d(i,"getHexStrAddressFromPriKeyBase64String",(function(){return wt})),r.d(i,"getAddressFromPriKeyBase64String",(function(){return Mt})),r.d(i,"getPubKeyFromPriKey",(function(){return Bt})),r.d(i,"ECKeySign",(function(){return Ct})),r.d(i,"SHA256",(function(){return Et})),r.d(i,"passwordToAddress",(function(){return St})),r.d(i,"pkToAddress",(function(){return It}));var a={};r.r(a),r.d(a,"generateAccount",(function(){return Ot})),r.d(a,"generateRandom",(function(){return Tt})),r.d(a,"generateAccountWithMnemonic",(function(){return _t}));var s={};r.r(s),r.d(s,"TRON_MESSAGE_PREFIX",(function(){return Ft})),r.d(s,"hashMessage",(function(){return Pt})),r.d(s,"signMessage",(function(){return kt})),r.d(s,"verifyMessage",(function(){return Rt}));var c=r(14),u=r.n(c),l=r(6),d=r.n(l),p=r(2),f=r.n(p),h=r(15),g=r(30),y=r.n(g),m=r(11);function b(t){return Object(h.bytesToString)(t)}function v(t,e,r){if(t.length!=e.length)return!1;var o;for(o=0;o<t.length;o++)if(r){if(t[o]!=e[o])return!1}else if(JSON.stringify(t[o])!=JSON.stringify(e[o]))return!1;return!0}function A(t){if("string"!=typeof t)throw new Error("The passed string is not a string");var e,r,o=new Array;e=t.length;for(var n=0;n<e;n++)(r=t.charCodeAt(n))>=65536&&r<=1114111?(o.push(r>>18&7|240),o.push(r>>12&63|128),o.push(r>>6&63|128),o.push(63&r|128)):r>=2048&&r<=65535?(o.push(r>>12&15|224),o.push(r>>6&63|128),o.push(63&r|128)):r>=128&&r<=2047?(o.push(r>>6&31|192),o.push(63&r|128)):o.push(255&r);return o}function w(t){var e;if(t>="A"&&t<="F"?e=t.charCodeAt(0)-"A".charCodeAt(0)+10:t>="a"&&t<="f"?e=t.charCodeAt(0)-"a".charCodeAt(0)+10:t>="0"&&t<="9"&&(e=t.charCodeAt(0)-"0".charCodeAt(0)),"number"==typeof e)return e;throw new Error("The passed hex char is not a valid hex char")}function M(t){return t>="A"&&t<="F"||t>="a"&&t<="f"||t>="0"&&t<="9"?1:0}function B(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof t)throw new Error("The passed string is not a string");var r=t.length;e&&r%2&&(t="0".concat(t),r++);for(var o=Array(),n=0,i=0,a=0,s=0;s<r;s++){var c=t.charAt(s);if(!M(c))throw new Error("The passed hex char is not a valid hex string");n<<=4,n+=w(c),0==++i%2&&(o[a++]=n,n=0)}return o}function C(t){if(!/^\d{4}-\d{2}-\d{2}( \d{2}-\d{2}-\d{2}|)/.test(t))throw new Error("The passed date string is not valid");var e=t.split(" "),r=e[0].split("-"),o=parseInt(r[0],10),n=parseInt(r[1],10)-1,i=parseInt(r[2],10);if(e.length>1){var a=e[1].split("-"),s=parseInt(a[0],10),c=parseInt(a[1],10),u=parseInt(a[2],10);return new Date(o,n,i,s,c,u)}return new Date(o,n,i)}function E(t){return t>="0"&&t<="9"?1:0}function S(t){if(null==t)return-1;if("string"!=typeof t)return-1;if(0==t.length||""==t)return-1;var e=0;if(40==t.length)for(;e<40;e++){if(!M(t.charAt(e)))break}if(40==e)return 1;for(e=0;e<t.length;e++){if(!E(t.charAt(e)))break}if(e==t.length)return 2;for(e=0;e<t.length;e++){if(t.charAt(e)>" ")return 3}return-1}for(var I="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",O={},T=0;T<I.length;T++)O[I.charAt(T)]=T;function _(t){if(0===t.length)return"";var e,r,o=[0];for(e=0;e<t.length;e++){for(r=0;r<o.length;r++)o[r]<<=8;o[0]+=t[e];var n=0;for(r=0;r<o.length;++r)o[r]+=n,n=o[r]/58|0,o[r]%=58;for(;n;)o.push(n%58),n=n/58|0}for(e=0;0===t[e]&&e<t.length-1;e++)o.push(0);return o.reverse().map((function(t){return I[t]})).join("")}function x(t){if(0===t.length)return[];var e,r,o=[0];for(e=0;e<t.length;e++){var n=t[e];if(!(n in O))throw new Error("Non-base58 character");for(r=0;r<o.length;r++)o[r]*=58;o[0]+=O[n];var i=0;for(r=0;r<o.length;++r)o[r]+=i,i=o[r]>>8,o[r]&=255;for(;i;)o.push(255&i),i>>=8}for(e=0;"1"===t[e]&&e<t.length-1;e++)o.push(0);return o.reverse()}var F=r(51),P=r(9),k=r(12),R=r.n(k),N=r(13),D=r.n(N),j=r(28),W=r(1),U=r(7),z=r(4),L=r(31),V=r(3),G=r(10),H=new V.a("tronweb/hash/5.4.0");function K(t){return G.default.address.toHex(t)}function q(t){return Object(U.a)(Object(L.f)(t))}var $=new Uint8Array(32);$.fill(0);var Z=j.a.from(-1),J=j.a.from(0),Y=j.a.from(1),Q=j.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var X=Object(W.h)(Y.toHexString(),32),tt=Object(W.h)(J.toHexString(),32),et={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},rt=["name","version","chainId","verifyingContract","salt"];function ot(t){return function(e){return"string"!=typeof e&&H.throwArgumentError("invalid domain value for ".concat(JSON.stringify(t)),"domain.".concat(t),e),e}}var nt={name:ot("name"),version:ot("version"),chainId:function(t){try{return j.a.from(t).toString()}catch(t){}return H.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return K(t).toLowerCase()}catch(t){}return H.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{var e=Object(W.a)(t);if(32!==e.length)throw new Error("bad length");return Object(W.i)(e)}catch(t){}return H.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function it(t){var e=t.match(/^(u?)int(\d*)$/);if(e){var r=""===e[1],o=parseInt(e[2]||"256");(o%8!=0||o>256||e[2]&&e[2]!==String(o))&&H.throwArgumentError("invalid numeric width","type",t);var n=Q.mask(r?o-1:o),i=r?n.add(Y).mul(Z):J;return function(e){var r=j.a.from(e);return(r.lt(i)||r.gt(n))&&H.throwArgumentError("value out-of-bounds for ".concat(t),"value",e),Object(W.h)(r.toTwos(256).toHexString(),32)}}var a=t.match(/^bytes(\d+)$/);if(a){var s=parseInt(a[1]);return(0===s||s>32||a[1]!==String(s))&&H.throwArgumentError("invalid bytes width","type",t),function(e){return Object(W.a)(e).length!==s&&H.throwArgumentError("invalid length for ".concat(t),"value",e),function(t){var e=Object(W.a)(t),r=e.length%32;return r?Object(W.c)([e,$.slice(r)]):Object(W.i)(e)}(e)}}switch(t){case"trcToken":return it("uint256");case"address":return function(t){return Object(W.h)((e=t,G.default.address.toHex(e).replace(m.c,"0x")),32);var e};case"bool":return function(t){return t?X:tt};case"bytes":return function(t){return Object(U.a)(t)};case"string":return function(t){return q(t)}}return null}function at(t,e){return"".concat(t,"(").concat(e.map((function(t){var e=t.name;return t.type+" "+e})).join(","),")")}var st=function(){function t(e){R()(this,t),Object(z.d)(this,"types",Object.freeze(Object(z.c)(e))),Object(z.d)(this,"_encoderCache",{}),Object(z.d)(this,"_types",{});var r={},o={},n={};Object.keys(e).forEach((function(t){r[t]={},o[t]=[],n[t]={}}));var i=function(t){var n={};e[t].forEach((function(i){n[i.name]&&H.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(t)),"types",e),n[i.name]=!0;var a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===t&&H.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",e),it(a)||(o[a]||H.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",e),o[a].push(t),r[t][a]=!0)}))};for(var a in e)i(a);var s=Object.keys(o).filter((function(t){return 0===o[t].length}));for(var c in 0===s.length?H.throwArgumentError("missing primary type","types",e):s.length>1&&H.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(t){return JSON.stringify(t)})).join(", ")),"types",e),Object(z.d)(this,"primaryType",s[0]),function t(i,a){a[i]&&H.throwArgumentError("circular type reference to ".concat(JSON.stringify(i)),"types",e),a[i]=!0,Object.keys(r[i]).forEach((function(e){o[e]&&(t(e,a),Object.keys(a).forEach((function(t){n[t][e]=!0})))})),delete a[i]}(this.primaryType,{}),n){var u=Object.keys(n[c]);u.sort(),this._types[c]=at(c,e[c])+u.map((function(t){return at(t,e[t])})).join("")}}return D()(t,[{key:"getEncoder",value:function(t){var e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}},{key:"_getEncoder",value:function(t){var e=this,r=it(t);if(r)return r;var o=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(o){var n=o[1],i=this.getEncoder(n),a=parseInt(o[3]);return function(t){a>=0&&t.length!==a&&H.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);var r=t.map(i);return e._types[n]&&(r=r.map(U.a)),Object(U.a)(Object(W.c)(r))}}var s=this.types[t];if(s){var c=q(this._types[t]);return function(t){var r=s.map((function(r){var o=r.name,n=r.type,i=e.getEncoder(n)(t[o]);return e._types[n]?Object(U.a)(i):i}));return r.unshift(c),Object(W.c)(r)}}return H.throwArgumentError("unknown type: ".concat(t),"type",t)}},{key:"encodeType",value:function(t){var e=this._types[t];return e||H.throwArgumentError("unknown type: ".concat(JSON.stringify(t)),"name",t),e}},{key:"encodeData",value:function(t,e){return this.getEncoder(t)(e)}},{key:"hashStruct",value:function(t,e){return Object(U.a)(this.encodeData(t,e))}},{key:"encode",value:function(t){return this.encodeData(this.primaryType,t)}},{key:"hash",value:function(t){return this.hashStruct(this.primaryType,t)}},{key:"_visit",value:function(t,e,r){var o=this;if(it(t))return r(t,e);var n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var i=n[1],a=parseInt(n[3]);return a>=0&&e.length!==a&&H.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((function(t){return o._visit(i,t,r)}))}var s=this.types[t];return s?s.reduce((function(t,n){var i=n.name,a=n.type;return t[i]=o._visit(a,e[i],r),t}),{}):H.throwArgumentError("unknown type: ".concat(t),"type",t)}},{key:"visit",value:function(t,e){return this._visit(this.primaryType,t,e)}}],[{key:"from",value:function(e){return new t(e)}},{key:"getPrimaryType",value:function(e){return t.from(e).primaryType}},{key:"hashStruct",value:function(e,r,o){return t.from(r).hashStruct(e,o)}},{key:"hashDomain",value:function(e){var r=[];for(var o in e){var n=et[o];n||H.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(o)),"domain",e),r.push({name:o,type:n})}return r.sort((function(t,e){return rt.indexOf(t.name)-rt.indexOf(e.name)})),t.hashStruct("EIP712Domain",{EIP712Domain:r},e)}},{key:"encode",value:function(e,r,o){return Object(W.c)(["0x1901",t.hashDomain(e),t.from(r).hash(o)])}},{key:"hash",value:function(e,r,o){return Object(U.a)(t.encode(e,r,o))}},{key:"getPayload",value:function(e,r,o){t.hashDomain(e);var n={},i=[];rt.forEach((function(t){var r=e[t];null!=r&&(n[t]=nt[t](r),i.push({name:t,type:et[t]}))}));var a=t.from(r),s=Object(z.g)(r);return s.EIP712Domain?H.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=i,a.encode(o),{types:s,domain:n,primaryType:a.primaryType,message:a.visit(o,(function(t,e){if(t.match(/^bytes(\d*)/))return Object(W.i)(Object(W.a)(e));if(t.match(/^u?int/))return j.a.from(e).toString();switch(t){case"trcToken":return j.a.from(e).toString();case"address":return K(e).toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&H.throwArgumentError("invalid string","value",e),e}return H.throwArgumentError("unsupported type","type",t)}))}}}]),t}();function ct(t){var e=Et(t),r=Et(e).slice(0,4);return _(r=t.concat(r))}function ut(t){if("string"!=typeof t)return!1;if(t.length<=4)return!1;var e=x(t);if(t.length<=4)return!1;var r=e.length-4,o=e.slice(r),n=Et(e=e.slice(0,r)),i=Et(n).slice(0,4);if(o[0]==i[0]&&o[1]==i[1]&&o[2]==i[2]&&o[3]==i[3])return e;throw new Error("Invalid address provided")}function lt(t,e){"string"==typeof t&&(t=B(t));var r=Ct(B(e.txID),t);return Array.isArray(e.signature)?e.signature.includes(r)||e.signature.push(r):e.signature=[r],e}function dt(t){return btoa(String.fromCharCode.apply(String,y()(t)))}function pt(t,e){return"string"==typeof t&&(t=B(t)),Ct(Et(e),t)}function ft(t,e,r,o){var n={toHexString:function(){return"0x"+o},value:o},i=new P.SigningKey(n),a=st.hash(t,e,r),s=i.signDigest(a);return["0x",s.r.substring(2),s.s.substring(2),Number(s.v).toString(16)].join("")}function ht(t){var e=Object(h.base64DecodeFromString)(t);return proto.protocol.Transaction.deserializeBinary(e).getRawData().serializeBinary()}function gt(){for(var t=new F.ec("secp256k1").genKeyPair().getPrivate().toString("hex");t.length<64;)t="0".concat(t);return B(t)}function yt(t){65===t.length&&(t=t.slice(1));var e=Object(P.keccak256)(t).toString().substring(2);return B(m.a+e.substring(24))}function mt(t){return yt(Bt(t))}function bt(t){var e=x(t);if(e.length<=4)return!1;var r=e.slice(0,e.length-4),o=Et(r),n=Et(o);return n[0]===e[r.length]&&n[1]===e[r.length+1]&&n[2]===e[r.length+2]&&n[3]===e[r.length+3]&&r}function vt(t){if("string"!=typeof t)return!1;if(t.length!==m.d)return!1;var e=x(t);if(25!==e.length)return!1;if(e[0]!==m.b)return!1;var r=e.slice(21),o=Et(e=e.slice(0,21)),n=Et(o).slice(0,4);return r[0]==n[0]&&r[1]==n[1]&&r[2]==n[2]&&r[3]==n[3]}function At(t){return ct(yt(Bt(Object(h.base64DecodeFromString)(t))))}function wt(t){var e=yt(Bt(Object(h.base64DecodeFromString)(t)));return Object(h.byteArray2hexStr)(e)}function Mt(t){var e=yt(Bt(Object(h.base64DecodeFromString)(t)));return Object(h.base64EncodeToString)(e)}function Bt(t){for(var e=new F.ec("secp256k1").keyFromPrivate(t,"bytes").getPublic(),r=e.x,o=e.y,n=r.toString("hex");n.length<64;)n="0".concat(n);for(var i=o.toString("hex");i.length<64;)i="0".concat(i);return B("04".concat(n).concat(i))}function Ct(t,e){for(var r=new F.ec("secp256k1").keyFromPrivate(e,"bytes").sign(t),o=r.r,n=r.s,i=r.recoveryParam,a=o.toString("hex");a.length<64;)a="0".concat(a);for(var s=n.toString("hex");s.length<64;)s="0".concat(s);return a+s+Object(h.byte2hexStr)(i)}function Et(t){var e=Object(h.byteArray2hexStr)(t);return B(Object(P.sha256)("0x"+e).replace(/^0x/,""))}function St(t){return ct(mt(Object(h.base64DecodeFromString)(t)))}function It(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=B(t,e),o=mt(r);return ct(o)}function Ot(){var t=gt(),e=Bt(t),r=mt(t);return{privateKey:Object(h.byteArray2hexStr)(t),publicKey:Object(h.byteArray2hexStr)(e),address:{base58:ct(r),hex:Object(h.byteArray2hexStr)(r)}}}function Tt(t){if(Gt.isObject(t)||(t={}),t.path||(t.path=m.e),!String(t.path).match(/^m\/44\'\/195\'/))throw new Error("Invalid tron path provided");var e=P.ethersWallet.createRandom(t);return{mnemonic:e.mnemonic,privateKey:e.privateKey,publicKey:e.publicKey,address:It(e.privateKey.replace(/^0x/,""))}}function _t(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";if(e||(e=m.e),!String(e).match(/^m\/44\'\/195\'/))throw new Error("Invalid tron path provided");var o=P.ethersWallet.fromMnemonic(t,e,r),n={mnemonic:o.mnemonic,privateKey:o.privateKey,publicKey:o.publicKey,address:It(o.privateKey.replace(/^0x/,""))};return n}var xt=r(33),Ft="TRON Signed Message:\n";function Pt(t){return"string"==typeof t&&(t=Object(P.toUtf8Bytes)(t)),Object(P.keccak256)(Object(P.concat)([Object(P.toUtf8Bytes)(Ft),Object(P.toUtf8Bytes)(String(t.length)),t]))}function kt(t,e){e.match(/^0x/)||(e="0x"+e);var r=new P.SigningKey(e),o=Pt(t),n=r.signDigest(o);return Object(P.joinSignature)(n)}function Rt(t,e){return e.match(/^0x/)||(e="0x"+e),ct(B(Object(P.recoverAddress)(Pt(t),e).replace(/^0x/,m.a)))}var Nt=r(34),Dt=r(112),jt=r.n(Dt),Wt=r(38),Ut=r.n(Wt);function zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function Lt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(r),!0).forEach((function(e){u()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Vt={isValidURL:function(t){return"string"==typeof t&&jt.a.isURL(t.toString(),{protocols:["http","https"],require_tld:!1})},isObject:function(t){return t===Object(t)&&"[object Array]"!==Object.prototype.toString.call(t)},isArray:function(t){return Array.isArray(t)},isJson:function(t){try{return!!JSON.parse(t)}catch(t){return!1}},isBoolean:function(t){return"boolean"==typeof t},isBigNumber:function(t){return t&&(t instanceof Ut.a||t.constructor&&"BigNumber"===t.constructor.name)},isString:function(t){return"string"==typeof t||t&&t.constructor&&"String"===t.constructor.name},isFunction:function(t){return"function"==typeof t},isHex:function(t){return"string"==typeof t&&!isNaN(parseInt(t,16))&&/^(0x|)[a-fA-F0-9]+$/.test(t)},isInteger:function(t){return null!==t&&Number.isInteger(Number(t))},hasProperty:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},hasProperties:function(t){for(var e=this,r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return o.length&&!o.map((function(r){return e.hasProperty(t,r)})).includes(!1)},mapEvent:function(t){var e={block:t.block_number,timestamp:t.block_timestamp,contract:t.contract_address,name:t.event_name,transaction:t.transaction_id,result:t.result,resourceNode:t.resource_Node||(t._unconfirmed?"fullNode":"solidityNode")};return t._unconfirmed&&(e.unconfirmed=t._unconfirmed),t._fingerprint&&(e.fingerprint=t._fingerprint),e},parseEvent:function(t,e){var r=e.inputs;if(!t.result)return t;if(this.isObject(t.result))for(var o=0;o<r.length;o++){var n=r[o];"address"==n.type&&n.name in t.result&&(t.result[n.name]=m.a+t.result[n.name].substr(2).toLowerCase())}else this.isArray(t.result)&&(t.result=t.result.reduce((function(t,e,o){var n=r[o],i=n.name;return"address"==n.type&&(e=m.a+e.substr(2).toLowerCase()),t[i]=e,t}),{}));return t},padLeft:function(t,e,r){for(var o=t.toString();o.length<r;)o=e+o;return o},isNotNullOrUndefined:function(t){return null!=t},sleep:function(){var t=arguments;return d()(f.a.mark((function e(){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:1e3,e.abrupt("return",new Promise((function(t){return setTimeout(t,r)})));case 2:case"end":return e.stop()}}),e)})))()}},Gt=e.a=Lt(Lt({},Vt),{},{code:o,accounts:a,base58:n,bytes:h,crypto:i,abi:xt,message:s,_TypedDataEncoder:st,transaction:Nt,ethersUtils:P})},function(t,e,r){"use strict";r.d(e,"k",(function(){return a})),r.d(e,"j",(function(){return c})),r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return l})),r.d(e,"o",(function(){return d})),r.d(e,"p",(function(){return p})),r.d(e,"l",(function(){return f})),r.d(e,"i",(function(){return h})),r.d(e,"d",(function(){return g})),r.d(e,"e",(function(){return y})),r.d(e,"c",(function(){return m})),r.d(e,"g",(function(){return b})),r.d(e,"f",(function(){return v})),r.d(e,"h",(function(){return A})),r.d(e,"n",(function(){return w})),r.d(e,"m",(function(){return M}));const o=new(r(3).a)("bytes/5.7.0");function n(t){return!!t.toHexString}function i(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function a(t){return f(t)&&!(t.length%2)||c(t)}function s(t){return"number"==typeof t&&t==t&&t%1==0}function c(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!s(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(!s(r)||r<0||r>=256)return!1}return!0}function u(t,e){if(e||(e={}),"number"==typeof t){o.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),i(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),n(t)&&(t=t.toHexString()),f(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":o.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return i(new Uint8Array(n))}return c(t)?i(new Uint8Array(t)):o.throwArgumentError("invalid arrayify value","value",t)}function l(t){const e=t.map(t=>u(t)),r=e.reduce((t,e)=>t+e.length,0),o=new Uint8Array(r);return e.reduce((t,e)=>(o.set(e,t),t+e.length),0),i(o)}function d(t){let e=u(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function p(t,e){(t=u(t)).length>e&&o.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),i(r)}function f(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}function h(t,e){if(e||(e={}),"number"==typeof t){o.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e="0123456789abcdef"[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),n(t))return t.toHexString();if(f(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":o.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(c(t)){let e="0x";for(let r=0;r<t.length;r++){let o=t[r];e+="0123456789abcdef"[(240&o)>>4]+"0123456789abcdef"[15&o]}return e}return o.throwArgumentError("invalid hexlify value","value",t)}function g(t){if("string"!=typeof t)t=h(t);else if(!f(t)||t.length%2)return null;return(t.length-2)/2}function y(t,e,r){return"string"!=typeof t?t=h(t):(!f(t)||t.length%2)&&o.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function m(t){let e="0x";return t.forEach(t=>{e+=h(t).substring(2)}),e}function b(t){const e=v(h(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function v(t){"string"!=typeof t&&(t=h(t)),f(t)||o.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e<t.length&&"0"===t[e];)e++;return"0x"+t.substring(e)}function A(t,e){for("string"!=typeof t?t=h(t):f(t)||o.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&o.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function w(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(a(t)){let r=u(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=h(r.slice(0,32)),e.s=h(r.slice(32,64))):65===r.length?(e.r=h(r.slice(0,32)),e.s=h(r.slice(32,64)),e.v=r[64]):o.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:o.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=h(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const r=p(u(e._vs),32);e._vs=h(r);const n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&o.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;const i=h(r);null==e.s?e.s=i:e.s!==i&&o.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?o.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&o.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&f(e.r)?e.r=A(e.r,32):o.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&f(e.s)?e.s=A(e.s,32):o.throwArgumentError("signature missing or invalid s","signature",t);const r=u(e.s);r[0]>=128&&o.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=h(r);e._vs&&(f(e._vs)||o.throwArgumentError("signature invalid _vs","signature",t),e._vs=A(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&o.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function M(t){return h(l([(t=w(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},function(t,e,r){var o=r(123)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return p}));let o=!1,n=!1;const i={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=i.default,s=null;const c=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var u,l;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(u||(u={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(l||(l={}));const d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==i[r]&&this.throwArgumentError("invalid log level name","logLevel",t),a>i[r]||console.log.apply(console,e)}debug(...t){this._log(p.levels.DEBUG,t)}info(...t){this._log(p.levels.INFO,t)}warn(...t){this._log(p.levels.WARNING,t)}makeError(t,e,r){if(n)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});const o=[];Object.keys(r).forEach(t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4],r+=d[15&e[t]];o.push(t+"=Uint8Array(0x"+r+")")}else o.push(t+"="+JSON.stringify(e))}catch(e){o.push(t+"="+JSON.stringify(r[t].toString()))}}),o.push("code="+e),o.push("version="+this.version);const i=t;let a="";switch(e){case l.NUMERIC_FAULT:{a="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":a+="-"+e;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case l.CALL_EXCEPTION:case l.INSUFFICIENT_FUNDS:case l.MISSING_NEW:case l.NONCE_EXPIRED:case l.REPLACEMENT_UNDERPRICED:case l.TRANSACTION_REPLACED:case l.UNPREDICTABLE_GAS_LIMIT:a=e}a&&(t+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),o.length&&(t+=" ("+o.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(r).forEach((function(t){s[t]=r[t]})),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,p.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,o){t||this.throwError(e,r,o)}assertArgument(t,e,r,o){t||this.throwArgumentError(e,r,o)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,p.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",p.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",p.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",p.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return s||(s=new p("logger/5.7.0")),s}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}n=!!t,o=!!e}static setLogLevel(t){const e=i[t.toLowerCase()];null!=e?a=e:p.globalLogger().warn("invalid log level - "+t)}static from(t){return new p(t)}}p.errors=l,p.levels=u},function(t,e,r){"use strict";r.d(e,"d",(function(){return a})),r.d(e,"e",(function(){return s})),r.d(e,"f",(function(){return c})),r.d(e,"b",(function(){return u})),r.d(e,"g",(function(){return l})),r.d(e,"c",(function(){return f})),r.d(e,"a",(function(){return h}));var o=r(3);var n=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};const i=new o.a("properties/5.7.0");function a(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function s(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function c(t){return n(this,void 0,void 0,(function*(){const e=Object.keys(t).map(e=>{const r=t[e];return Promise.resolve(r).then(t=>({key:e,value:t}))});return(yield Promise.all(e)).reduce((t,e)=>(t[e.key]=e.value,t),{})}))}function u(t,e){t&&"object"==typeof t||i.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||i.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function l(t){const e={};for(const r in t)e[r]=t[r];return e}const d={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function p(t){if(function t(e){if(null==e||d[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const r=Object.keys(e);for(let o=0;o<r.length;o++){let n=null;try{n=e[r[o]]}catch(t){continue}if(!t(n))return!1}return!0}return i.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}(t))return t;if(Array.isArray(t))return Object.freeze(t.map(t=>f(t)));if("object"==typeof t){const e={};for(const r in t){const o=t[r];void 0!==o&&a(e,r,f(o))}return e}return i.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function f(t){return p(t)}class h{constructor(t){for(const e in t)this[e]=f(t[e])}}},function(t,e,r){"use strict";function o(t){return(o="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!("string"==typeof t||t instanceof String)){var e=o(t);throw null===t?e="null":"object"===e&&(e=t.constructor.name),new TypeError("Expected a string but received a ".concat(e))}},t.exports=e.default,t.exports.default=e.default},function(t,e){function r(t,e,r,o,n,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(o,n)}t.exports=function(t){return function(){var e=this,o=arguments;return new Promise((function(n,i){var a=t.apply(e,o);function s(t){r(a,n,i,s,c,"next",t)}function c(t){r(a,n,i,s,c,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var o=r(109),n=r.n(o),i=r(1);function a(t){return"0x"+n.a.keccak_256(Object(i.a)(t))}},function(t,e,r){(function(t){!function(t,e){"use strict";function o(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(166).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void o(!1,"Invalid character in "+t)}function c(t,e,r){var o=s(t,r);return r-1>=e&&(o|=s(t,r-1)<<4),o}function u(t,e,r,n){for(var i=0,a=0,s=Math.min(t.length,r),c=e;c<s;c++){var u=t.charCodeAt(c)-48;i*=n,a=u>=49?u-49+10:u>=17?u-17+10:u,o(u>=0&&a<n,"Invalid character"),i+=a}return i}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),o(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,r):(this._parseBase(t,e,n),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(o(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(o("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a,s=0;if("be"===r)for(n=t.length-1,i=0;n>=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(n=0,i=0;n<t.length;n+=3)a=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var n,i=0,a=0;if("be"===r)for(o=t.length-1;o>=e;o-=2)n=c(t,e,o)<<i,this.words[a]|=67108863&n,i>=18?(i-=18,a+=1,this.words[a]|=n>>>26):i+=8;else for(o=(t.length-e)%2==0?e+1:e;o<t.length;o+=2)n=c(t,e,o)<<i,this.words[a]|=67108863&n,i>=18?(i-=18,a+=1,this.words[a]|=n>>>26):i+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=e)o++;o--,n=n/e|0;for(var i=t.length-r,a=i%o,s=Math.min(i,i-a)+r,c=0,l=r;l<s;l+=o)c=u(t,l,l+o,e),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)d*=e;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){l(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(t){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,i=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<n|i)).toString(16);i=s>>>24-n&16777215,(n+=2)>=26&&(n-=26,a--),r=0!==i||a!==this.length-1?p[6-c.length]+c+r:c+r}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=f[t],l=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(t);r=(d=d.idivn(l)).isZero()?g+r:p[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}o(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function g(t,e,r){r.negative=e.negative^t.negative;var o=t.length+e.length|0;r.length=o,o=o-1|0;var n=0|t.words[0],i=0|e.words[0],a=n*i,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u<o;u++){for(var l=c>>>26,d=67108863&c,p=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=p;f++){var h=u-f|0;l+=(a=(n=0|t.words[h])*(i=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);o(n<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,i);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,n),a},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,o=0,n=0,i=0;n<this.length;n++){var a=this.words[n]<<i|o;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===i?(r<t.length&&(t[r++]=a>>24&255),o=0,i=0):(o=a>>>24,i+=2)}if(r<t.length)for(t[r++]=o;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,o=0,n=0,i=0;n<this.length;n++){var a=this.words[n]<<i|o;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===i?(r>=0&&(t[r--]=a>>24&255),o=0,i=0):(o=a>>>24,i+=2)}if(r>=0)for(t[r--]=o;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return o(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return o(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var o=0;o<r.length;o++)this.words[o]=e.words[o]^r.words[o];if(this!==e)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return o(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){o("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){o("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this._strip()},i.prototype.iadd=function(t){var e,r,o;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,o=t):(r=t,o=this);for(var n=0,i=0;i<o.length;i++)e=(0|r.words[i])+(0|o.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<r.length;i++)e=(0|r.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,o,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,o=t):(r=t,o=this);for(var i=0,a=0;a<o.length;a++)i=(e=(0|r.words[a])-(0|o.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var y=function(t,e,r){var o,n,i,a=t.words,s=e.words,c=r.words,u=0,l=0|a[0],d=8191&l,p=l>>>13,f=0|a[1],h=8191&f,g=f>>>13,y=0|a[2],m=8191&y,b=y>>>13,v=0|a[3],A=8191&v,w=v>>>13,M=0|a[4],B=8191&M,C=M>>>13,E=0|a[5],S=8191&E,I=E>>>13,O=0|a[6],T=8191&O,_=O>>>13,x=0|a[7],F=8191&x,P=x>>>13,k=0|a[8],R=8191&k,N=k>>>13,D=0|a[9],j=8191&D,W=D>>>13,U=0|s[0],z=8191&U,L=U>>>13,V=0|s[1],G=8191&V,H=V>>>13,K=0|s[2],q=8191&K,$=K>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],X=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,ot=et>>>13,nt=0|s[6],it=8191&nt,at=nt>>>13,st=0|s[7],ct=8191&st,ut=st>>>13,lt=0|s[8],dt=8191&lt,pt=lt>>>13,ft=0|s[9],ht=8191&ft,gt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(u+(o=Math.imul(d,z))|0)+((8191&(n=(n=Math.imul(d,L))+Math.imul(p,z)|0))<<13)|0;u=((i=Math.imul(p,L))+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,o=Math.imul(h,z),n=(n=Math.imul(h,L))+Math.imul(g,z)|0,i=Math.imul(g,L);var mt=(u+(o=o+Math.imul(d,G)|0)|0)+((8191&(n=(n=n+Math.imul(d,H)|0)+Math.imul(p,G)|0))<<13)|0;u=((i=i+Math.imul(p,H)|0)+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,o=Math.imul(m,z),n=(n=Math.imul(m,L))+Math.imul(b,z)|0,i=Math.imul(b,L),o=o+Math.imul(h,G)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,G)|0,i=i+Math.imul(g,H)|0;var bt=(u+(o=o+Math.imul(d,q)|0)|0)+((8191&(n=(n=n+Math.imul(d,$)|0)+Math.imul(p,q)|0))<<13)|0;u=((i=i+Math.imul(p,$)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,o=Math.imul(A,z),n=(n=Math.imul(A,L))+Math.imul(w,z)|0,i=Math.imul(w,L),o=o+Math.imul(m,G)|0,n=(n=n+Math.imul(m,H)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(h,q)|0,n=(n=n+Math.imul(h,$)|0)+Math.imul(g,q)|0,i=i+Math.imul(g,$)|0;var vt=(u+(o=o+Math.imul(d,J)|0)|0)+((8191&(n=(n=n+Math.imul(d,Y)|0)+Math.imul(p,J)|0))<<13)|0;u=((i=i+Math.imul(p,Y)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,o=Math.imul(B,z),n=(n=Math.imul(B,L))+Math.imul(C,z)|0,i=Math.imul(C,L),o=o+Math.imul(A,G)|0,n=(n=n+Math.imul(A,H)|0)+Math.imul(w,G)|0,i=i+Math.imul(w,H)|0,o=o+Math.imul(m,q)|0,n=(n=n+Math.imul(m,$)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,$)|0,o=o+Math.imul(h,J)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,J)|0,i=i+Math.imul(g,Y)|0;var At=(u+(o=o+Math.imul(d,X)|0)|0)+((8191&(n=(n=n+Math.imul(d,tt)|0)+Math.imul(p,X)|0))<<13)|0;u=((i=i+Math.imul(p,tt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,o=Math.imul(S,z),n=(n=Math.imul(S,L))+Math.imul(I,z)|0,i=Math.imul(I,L),o=o+Math.imul(B,G)|0,n=(n=n+Math.imul(B,H)|0)+Math.imul(C,G)|0,i=i+Math.imul(C,H)|0,o=o+Math.imul(A,q)|0,n=(n=n+Math.imul(A,$)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,$)|0,o=o+Math.imul(m,J)|0,n=(n=n+Math.imul(m,Y)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,tt)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,tt)|0;var wt=(u+(o=o+Math.imul(d,rt)|0)|0)+((8191&(n=(n=n+Math.imul(d,ot)|0)+Math.imul(p,rt)|0))<<13)|0;u=((i=i+Math.imul(p,ot)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,o=Math.imul(T,z),n=(n=Math.imul(T,L))+Math.imul(_,z)|0,i=Math.imul(_,L),o=o+Math.imul(S,G)|0,n=(n=n+Math.imul(S,H)|0)+Math.imul(I,G)|0,i=i+Math.imul(I,H)|0,o=o+Math.imul(B,q)|0,n=(n=n+Math.imul(B,$)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(A,J)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,Y)|0,o=o+Math.imul(m,X)|0,n=(n=n+Math.imul(m,tt)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,tt)|0,o=o+Math.imul(h,rt)|0,n=(n=n+Math.imul(h,ot)|0)+Math.imul(g,rt)|0,i=i+Math.imul(g,ot)|0;var Mt=(u+(o=o+Math.imul(d,it)|0)|0)+((8191&(n=(n=n+Math.imul(d,at)|0)+Math.imul(p,it)|0))<<13)|0;u=((i=i+Math.imul(p,at)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,L))+Math.imul(P,z)|0,i=Math.imul(P,L),o=o+Math.imul(T,G)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,H)|0,o=o+Math.imul(S,q)|0,n=(n=n+Math.imul(S,$)|0)+Math.imul(I,q)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(B,J)|0,n=(n=n+Math.imul(B,Y)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,Y)|0,o=o+Math.imul(A,X)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,tt)|0,o=o+Math.imul(m,rt)|0,n=(n=n+Math.imul(m,ot)|0)+Math.imul(b,rt)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(h,it)|0,n=(n=n+Math.imul(h,at)|0)+Math.imul(g,it)|0,i=i+Math.imul(g,at)|0;var Bt=(u+(o=o+Math.imul(d,ct)|0)|0)+((8191&(n=(n=n+Math.imul(d,ut)|0)+Math.imul(p,ct)|0))<<13)|0;u=((i=i+Math.imul(p,ut)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,o=Math.imul(R,z),n=(n=Math.imul(R,L))+Math.imul(N,z)|0,i=Math.imul(N,L),o=o+Math.imul(F,G)|0,n=(n=n+Math.imul(F,H)|0)+Math.imul(P,G)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(T,q)|0,n=(n=n+Math.imul(T,$)|0)+Math.imul(_,q)|0,i=i+Math.imul(_,$)|0,o=o+Math.imul(S,J)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,Y)|0,o=o+Math.imul(B,X)|0,n=(n=n+Math.imul(B,tt)|0)+Math.imul(C,X)|0,i=i+Math.imul(C,tt)|0,o=o+Math.imul(A,rt)|0,n=(n=n+Math.imul(A,ot)|0)+Math.imul(w,rt)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(m,it)|0,n=(n=n+Math.imul(m,at)|0)+Math.imul(b,it)|0,i=i+Math.imul(b,at)|0,o=o+Math.imul(h,ct)|0,n=(n=n+Math.imul(h,ut)|0)+Math.imul(g,ct)|0,i=i+Math.imul(g,ut)|0;var Ct=(u+(o=o+Math.imul(d,dt)|0)|0)+((8191&(n=(n=n+Math.imul(d,pt)|0)+Math.imul(p,dt)|0))<<13)|0;u=((i=i+Math.imul(p,pt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,o=Math.imul(j,z),n=(n=Math.imul(j,L))+Math.imul(W,z)|0,i=Math.imul(W,L),o=o+Math.imul(R,G)|0,n=(n=n+Math.imul(R,H)|0)+Math.imul(N,G)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(F,q)|0,n=(n=n+Math.imul(F,$)|0)+Math.imul(P,q)|0,i=i+Math.imul(P,$)|0,o=o+Math.imul(T,J)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,Y)|0,o=o+Math.imul(S,X)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,o=o+Math.imul(B,rt)|0,n=(n=n+Math.imul(B,ot)|0)+Math.imul(C,rt)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(A,it)|0,n=(n=n+Math.imul(A,at)|0)+Math.imul(w,it)|0,i=i+Math.imul(w,at)|0,o=o+Math.imul(m,ct)|0,n=(n=n+Math.imul(m,ut)|0)+Math.imul(b,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(h,dt)|0,n=(n=n+Math.imul(h,pt)|0)+Math.imul(g,dt)|0,i=i+Math.imul(g,pt)|0;var Et=(u+(o=o+Math.imul(d,ht)|0)|0)+((8191&(n=(n=n+Math.imul(d,gt)|0)+Math.imul(p,ht)|0))<<13)|0;u=((i=i+Math.imul(p,gt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,o=Math.imul(j,G),n=(n=Math.imul(j,H))+Math.imul(W,G)|0,i=Math.imul(W,H),o=o+Math.imul(R,q)|0,n=(n=n+Math.imul(R,$)|0)+Math.imul(N,q)|0,i=i+Math.imul(N,$)|0,o=o+Math.imul(F,J)|0,n=(n=n+Math.imul(F,Y)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,o=o+Math.imul(S,rt)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(I,rt)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(B,it)|0,n=(n=n+Math.imul(B,at)|0)+Math.imul(C,it)|0,i=i+Math.imul(C,at)|0,o=o+Math.imul(A,ct)|0,n=(n=n+Math.imul(A,ut)|0)+Math.imul(w,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(m,dt)|0,n=(n=n+Math.imul(m,pt)|0)+Math.imul(b,dt)|0,i=i+Math.imul(b,pt)|0;var St=(u+(o=o+Math.imul(h,ht)|0)|0)+((8191&(n=(n=n+Math.imul(h,gt)|0)+Math.imul(g,ht)|0))<<13)|0;u=((i=i+Math.imul(g,gt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,o=Math.imul(j,q),n=(n=Math.imul(j,$))+Math.imul(W,q)|0,i=Math.imul(W,$),o=o+Math.imul(R,J)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(N,J)|0,i=i+Math.imul(N,Y)|0,o=o+Math.imul(F,X)|0,n=(n=n+Math.imul(F,tt)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,o=o+Math.imul(T,rt)|0,n=(n=n+Math.imul(T,ot)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(S,it)|0,n=(n=n+Math.imul(S,at)|0)+Math.imul(I,it)|0,i=i+Math.imul(I,at)|0,o=o+Math.imul(B,ct)|0,n=(n=n+Math.imul(B,ut)|0)+Math.imul(C,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(A,dt)|0,n=(n=n+Math.imul(A,pt)|0)+Math.imul(w,dt)|0,i=i+Math.imul(w,pt)|0;var It=(u+(o=o+Math.imul(m,ht)|0)|0)+((8191&(n=(n=n+Math.imul(m,gt)|0)+Math.imul(b,ht)|0))<<13)|0;u=((i=i+Math.imul(b,gt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,o=Math.imul(j,J),n=(n=Math.imul(j,Y))+Math.imul(W,J)|0,i=Math.imul(W,Y),o=o+Math.imul(R,X)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(N,X)|0,i=i+Math.imul(N,tt)|0,o=o+Math.imul(F,rt)|0,n=(n=n+Math.imul(F,ot)|0)+Math.imul(P,rt)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(T,it)|0,n=(n=n+Math.imul(T,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,o=o+Math.imul(S,ct)|0,n=(n=n+Math.imul(S,ut)|0)+Math.imul(I,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(B,dt)|0,n=(n=n+Math.imul(B,pt)|0)+Math.imul(C,dt)|0,i=i+Math.imul(C,pt)|0;var Ot=(u+(o=o+Math.imul(A,ht)|0)|0)+((8191&(n=(n=n+Math.imul(A,gt)|0)+Math.imul(w,ht)|0))<<13)|0;u=((i=i+Math.imul(w,gt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,o=Math.imul(j,X),n=(n=Math.imul(j,tt))+Math.imul(W,X)|0,i=Math.imul(W,tt),o=o+Math.imul(R,rt)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(N,rt)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(F,it)|0,n=(n=n+Math.imul(F,at)|0)+Math.imul(P,it)|0,i=i+Math.imul(P,at)|0,o=o+Math.imul(T,ct)|0,n=(n=n+Math.imul(T,ut)|0)+Math.imul(_,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(S,dt)|0,n=(n=n+Math.imul(S,pt)|0)+Math.imul(I,dt)|0,i=i+Math.imul(I,pt)|0;var Tt=(u+(o=o+Math.imul(B,ht)|0)|0)+((8191&(n=(n=n+Math.imul(B,gt)|0)+Math.imul(C,ht)|0))<<13)|0;u=((i=i+Math.imul(C,gt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,o=Math.imul(j,rt),n=(n=Math.imul(j,ot))+Math.imul(W,rt)|0,i=Math.imul(W,ot),o=o+Math.imul(R,it)|0,n=(n=n+Math.imul(R,at)|0)+Math.imul(N,it)|0,i=i+Math.imul(N,at)|0,o=o+Math.imul(F,ct)|0,n=(n=n+Math.imul(F,ut)|0)+Math.imul(P,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(T,dt)|0,n=(n=n+Math.imul(T,pt)|0)+Math.imul(_,dt)|0,i=i+Math.imul(_,pt)|0;var _t=(u+(o=o+Math.imul(S,ht)|0)|0)+((8191&(n=(n=n+Math.imul(S,gt)|0)+Math.imul(I,ht)|0))<<13)|0;u=((i=i+Math.imul(I,gt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,o=Math.imul(j,it),n=(n=Math.imul(j,at))+Math.imul(W,it)|0,i=Math.imul(W,at),o=o+Math.imul(R,ct)|0,n=(n=n+Math.imul(R,ut)|0)+Math.imul(N,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(F,dt)|0,n=(n=n+Math.imul(F,pt)|0)+Math.imul(P,dt)|0,i=i+Math.imul(P,pt)|0;var xt=(u+(o=o+Math.imul(T,ht)|0)|0)+((8191&(n=(n=n+Math.imul(T,gt)|0)+Math.imul(_,ht)|0))<<13)|0;u=((i=i+Math.imul(_,gt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,o=Math.imul(j,ct),n=(n=Math.imul(j,ut))+Math.imul(W,ct)|0,i=Math.imul(W,ut),o=o+Math.imul(R,dt)|0,n=(n=n+Math.imul(R,pt)|0)+Math.imul(N,dt)|0,i=i+Math.imul(N,pt)|0;var Ft=(u+(o=o+Math.imul(F,ht)|0)|0)+((8191&(n=(n=n+Math.imul(F,gt)|0)+Math.imul(P,ht)|0))<<13)|0;u=((i=i+Math.imul(P,gt)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,o=Math.imul(j,dt),n=(n=Math.imul(j,pt))+Math.imul(W,dt)|0,i=Math.imul(W,pt);var Pt=(u+(o=o+Math.imul(R,ht)|0)|0)+((8191&(n=(n=n+Math.imul(R,gt)|0)+Math.imul(N,ht)|0))<<13)|0;u=((i=i+Math.imul(N,gt)|0)+(n>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var kt=(u+(o=Math.imul(j,ht))|0)+((8191&(n=(n=Math.imul(j,gt))+Math.imul(W,ht)|0))<<13)|0;return u=((i=Math.imul(W,gt))+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,c[0]=yt,c[1]=mt,c[2]=bt,c[3]=vt,c[4]=At,c[5]=wt,c[6]=Mt,c[7]=Bt,c[8]=Ct,c[9]=Et,c[10]=St,c[11]=It,c[12]=Ot,c[13]=Tt,c[14]=_t,c[15]=xt,c[16]=Ft,c[17]=Pt,c[18]=kt,0!==u&&(c[19]=u,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var o=0,n=0,i=0;i<r.length-1;i++){var a=n;n=0;for(var s=67108863&o,c=Math.min(i,e.length-1),u=Math.max(0,i-t.length+1);u<=c;u++){var l=i-u,d=(0|t.words[l])*(0|e.words[u]),p=67108863&d;s=67108863&(p=p+s|0),n+=(a=(a=a+(d/67108864|0)|0)+(p>>>26)|0)>>>26,a&=67108863}r.words[i]=s,o=a,a=n}return 0!==o?r.words[i]=o:r.length--,r._strip()}function b(t,e,r){return m(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(y=g),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):r<63?g(this,t,e):r<1024?m(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,o=0;o<t;o++)e[o]=this.revBin(o,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var o=0,n=0;n<e;n++)o|=(1&t)<<e-n-1,t>>=1;return o},v.prototype.permute=function(t,e,r,o,n,i){for(var a=0;a<i;a++)o[a]=e[t[a]],n[a]=r[t[a]]},v.prototype.transform=function(t,e,r,o,n,i){this.permute(i,t,e,r,o,n);for(var a=1;a<n;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<n;l+=s)for(var d=c,p=u,f=0;f<a;f++){var h=r[l+f],g=o[l+f],y=r[l+f+a],m=o[l+f+a],b=d*y-p*m;m=d*m+p*y,y=b,r[l+f]=h+y,o[l+f]=g+m,r[l+f+a]=h-y,o[l+f+a]=g-m,f!==s&&(b=c*d-u*p,p=c*p+u*d,d=b)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),o=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+o},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var o=0;o<r/2;o++){var n=t[o];t[o]=t[r-o-1],t[r-o-1]=n,n=e[o],e[o]=-e[r-o-1],e[r-o-1]=-n}},v.prototype.normalize13b=function(t,e){for(var r=0,o=0;o<e/2;o++){var n=8192*Math.round(t[2*o+1]/e)+Math.round(t[2*o]/e)+r;t[o]=67108863&n,r=n<67108864?0:n/67108864|0}return t},v.prototype.convert13b=function(t,e,r,n){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<n;++a)r[a]=0;o(0===i),o(0==(-8192&i))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var o=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(o),i=this.stub(o),a=new Array(o),s=new Array(o),c=new Array(o),u=new Array(o),l=new Array(o),d=new Array(o),p=r.words;p.length=o,this.convert13b(t.words,t.length,a,o),this.convert13b(e.words,e.length,u,o),this.transform(a,i,s,c,o,n),this.transform(u,i,l,d,o,n);for(var f=0;f<o;f++){var h=s[f]*l[f]-c[f]*d[f];c[f]=s[f]*d[f]+c[f]*l[f],s[f]=h}return this.conjugate(s,c,o),this.transform(s,c,p,i,o,n),this.conjugate(p,i,o),this.normalize13b(p,o),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),b(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),o("number"==typeof t),o(t<67108864);for(var r=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,a=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=a>>>26,this.words[n]=67108863&a}return 0!==r&&(this.words[n]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var o=r/26|0,n=r%26;e[r]=t.words[o]>>>n&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,o=0;o<e.length&&0===e[o];o++,r=r.sqr());if(++o<e.length)for(var n=r.sqr();o<e.length;o++,n=n.sqr())0!==e[o]&&(r=r.mul(n));return r},i.prototype.iushln=function(t){o("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,c=(0|this.words[e])-s<<r;this.words[e]=c|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this._strip()},i.prototype.ishln=function(t){return o(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var n;o("number"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,c=r;if(n-=a,n=Math.max(0,n),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=n);u--){var d=0|this.words[u];this.words[u]=l<<26-i|d>>>i,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return o(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){o("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},i.prototype.imaskn=function(t){o("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return o("number"==typeof t),o(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(o("number"==typeof t),o(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var n,i,a=t.length+r;this._expand(a);var s=0;for(n=0;n<t.length;n++){i=(0|this.words[n+r])+s;var c=(0|t.words[n])*e;s=((i-=67108863&c)>>26)-(c/67108864|0),this.words[n+r]=67108863&i}for(;n<this.length-r;n++)s=(i=(0|this.words[n+r])+s)>>26,this.words[n+r]=67108863&i;if(0===s)return this._strip();for(o(-1===s),s=0,n=0;n<this.length;n++)s=(i=-(0|this.words[n])+s)>>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),o=this.clone(),n=t,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),o.iushln(r),a=0|n.words[n.length-1]);var s,c=o.length-n.length;if("mod"!==e){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=o.clone()._ishlnsubmul(n,1,c);0===l.negative&&(o=l,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var p=67108864*(0|o.words[n.length+d])+(0|o.words[n.length+d-1]);for(p=Math.min(p/a|0,67108863),o._ishlnsubmul(n,p,d);0!==o.negative;)p--,o.negative=0,o._ishlnsubmul(n,1,d),o.isZero()||(o.negative^=1);s&&(s.words[d]=p)}return s&&s._strip(),o._strip(),"div"!==e&&0!==r&&o.iushrn(r),{div:s||null,mod:o}},i.prototype.divmod=function(t,e,r){return o(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:n,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var n,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,o=t.ushrn(1),n=t.andln(1),i=r.cmp(o);return i<0||1===n&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),o(t<=67108863);for(var r=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%t;return e?-n:n},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),o(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/t|0,r=i%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){o(0===t.negative),o(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=e.clone();!e.isZero();){for(var p=0,f=1;0==(e.words[0]&f)&&p<26;++p,f<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(l),a.isub(d)),n.iushrn(1),a.iushrn(1);for(var h=0,g=1;0==(r.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),a.isub(c)):(r.isub(e),s.isub(n),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(t){o(0===t.negative),o(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,a=new i(1),s=new i(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,p=1;0==(r.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(n=0===e.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(t),n},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var o=0;e.isEven()&&r.isEven();o++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var i=e;e=r,r=i}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(o)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){o("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var i=n,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),o(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var o=0|this.words[r],n=0|t.words[r];if(o!==n){o<n?e=-1:o>n&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new S(t)},i.prototype.toRed=function(t){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return o(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return o(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else o(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var o=e<this.n?-1:r.ucmp(this.p);return 0===o?(r.words[0]=0,r.length=1):o>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(M,w),M.prototype.split=function(t,e){for(var r=Math.min(t.length,9),o=0;o<r;o++)e.words[o]=t.words[o];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var n=t.words[9];for(e.words[e.length++]=4194303&n,o=10;o<t.length;o++){var i=0|t.words[o];t.words[o-10]=(4194303&i)<<4|n>>>22,n=i}n>>>=22,t.words[o-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var o=0|t.words[r];e+=977*o,t.words[r]=67108863&e,e=64*o+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(B,w),n(C,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var o=19*(0|t.words[r])+e,n=67108863&o;o>>>=26,t.words[r]=n,e=o}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(A[t])return A[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new B;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return A[t]=e,e},S.prototype._verify1=function(t){o(0===t.negative,"red works only with positives"),o(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){o(0==(t.negative|e.negative),"red works only with positives"),o(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(o(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);o(!n.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,n),p=this.pow(t,n.addn(1).iushrn(1)),f=this.pow(t,n),h=a;0!==f.cmp(s);){for(var g=f,y=0;0!==g.cmp(s);y++)g=g.redSqr();o(y<h);var m=this.pow(d,new i(1).iushln(h-y-1));p=p.redMul(m),d=m.redSqr(),f=f.redMul(d),h=y}return p},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var o=2;o<r.length;o++)r[o]=this.mul(r[o-1],t);var n=r[0],a=0,s=0,c=e.bitLength()%26;for(0===c&&(c=26),o=e.length-1;o>=0;o--){for(var u=e.words[o],l=c-1;l>=0;l--){var d=u>>l&1;n!==r[0]&&(n=this.sqr(n)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===o&&0===l)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}c=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new I(t)},n(I,S),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),o=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(o).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},I.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),o=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(o).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){"use strict";r.r(e),r.d(e,"keccak256",(function(){return fn})),r.d(e,"sha256",(function(){return hn})),r.d(e,"toUtf8Bytes",(function(){return gn})),r.d(e,"toUtf8String",(function(){return yn})),r.d(e,"recoverAddress",(function(){return mn})),r.d(e,"SigningKey",(function(){return bn})),r.d(e,"AbiCoder",(function(){return vn})),r.d(e,"Interface",(function(){return An})),r.d(e,"FormatTypes",(function(){return wn})),r.d(e,"splitSignature",(function(){return Bn})),r.d(e,"joinSignature",(function(){return Cn})),r.d(e,"arrayify",(function(){return Mn})),r.d(e,"ethersWallet",(function(){return tn})),r.d(e,"concat",(function(){return En})),r.d(e,"id",(function(){return Sn})),r.d(e,"isValidMnemonic",(function(){return In}));var o={};r.r(o),r.d(o,"encode",(function(){return v})),r.d(o,"decode",(function(){return M}));var n={};r.r(n),r.d(n,"decode",(function(){return Nt})),r.d(n,"encode",(function(){return Dt}));var i={};r.r(i),r.d(i,"AbiCoder",(function(){return Et})),r.d(i,"defaultAbiCoder",(function(){return St})),r.d(i,"Fragment",(function(){return ut})),r.d(i,"ConstructorFragment",(function(){return ht})),r.d(i,"ErrorFragment",(function(){return mt})),r.d(i,"EventFragment",(function(){return lt})),r.d(i,"FunctionFragment",(function(){return gt})),r.d(i,"ParamType",(function(){return st})),r.d(i,"FormatTypes",(function(){return it})),r.d(i,"checkResultErrors",(function(){return d})),r.d(i,"Logger",(function(){return c.a})),r.d(i,"RLP",(function(){return o})),r.d(i,"_fetchData",(function(){return ln})),r.d(i,"fetchJson",(function(){return dn})),r.d(i,"poll",(function(){return pn})),r.d(i,"checkProperties",(function(){return s.b})),r.d(i,"deepCopy",(function(){return s.c})),r.d(i,"defineReadOnly",(function(){return s.d})),r.d(i,"getStatic",(function(){return s.e})),r.d(i,"resolveProperties",(function(){return s.f})),r.d(i,"shallowCopy",(function(){return s.g})),r.d(i,"arrayify",(function(){return a.a})),r.d(i,"concat",(function(){return a.b})),r.d(i,"stripZeros",(function(){return a.o})),r.d(i,"zeroPad",(function(){return a.p})),r.d(i,"isBytes",(function(){return a.j})),r.d(i,"isBytesLike",(function(){return a.k})),r.d(i,"defaultPath",(function(){return Mr})),r.d(i,"HDNode",(function(){return Br})),r.d(i,"SigningKey",(function(){return Le})),r.d(i,"Interface",(function(){return Rt})),r.d(i,"LogDescription",(function(){return Tt})),r.d(i,"TransactionDescription",(function(){return _t})),r.d(i,"base58",(function(){return Wt})),r.d(i,"base64",(function(){return n})),r.d(i,"hexlify",(function(){return a.i})),r.d(i,"isHexString",(function(){return a.l})),r.d(i,"hexConcat",(function(){return a.c})),r.d(i,"hexStripZeros",(function(){return a.f})),r.d(i,"hexValue",(function(){return a.g})),r.d(i,"hexZeroPad",(function(){return a.h})),r.d(i,"hexDataLength",(function(){return a.d})),r.d(i,"hexDataSlice",(function(){return a.e})),r.d(i,"nameprep",(function(){return Yr})),r.d(i,"_toEscapedUtf8String",(function(){return J.d})),r.d(i,"toUtf8Bytes",(function(){return J.f})),r.d(i,"toUtf8CodePoints",(function(){return J.g})),r.d(i,"toUtf8String",(function(){return J.h})),r.d(i,"Utf8ErrorFuncs",(function(){return J.b})),r.d(i,"formatBytes32String",(function(){return Qr})),r.d(i,"parseBytes32String",(function(){return Xr})),r.d(i,"dnsEncode",(function(){return de})),r.d(i,"hashMessage",(function(){return pe})),r.d(i,"namehash",(function(){return le})),r.d(i,"isValidName",(function(){return ue})),r.d(i,"id",(function(){return It})),r.d(i,"_TypedDataEncoder",(function(){return Oe})),r.d(i,"getAddress",(function(){return T})),r.d(i,"getIcapAddress",(function(){return x})),r.d(i,"getContractAddress",(function(){return F})),r.d(i,"getCreate2Address",(function(){return P})),r.d(i,"isAddress",(function(){return _})),r.d(i,"formatEther",(function(){return Ao})),r.d(i,"parseEther",(function(){return wo})),r.d(i,"formatUnits",(function(){return bo})),r.d(i,"parseUnits",(function(){return vo})),r.d(i,"commify",(function(){return mo})),r.d(i,"computeHmac",(function(){return Ne})),r.d(i,"keccak256",(function(){return g.a})),r.d(i,"ripemd160",(function(){return Pe})),r.d(i,"sha256",(function(){return ke})),r.d(i,"sha512",(function(){return Re})),r.d(i,"randomBytes",(function(){return Wr.a})),r.d(i,"shuffled",(function(){return Ur})),r.d(i,"solidityPack",(function(){return Nr})),r.d(i,"solidityKeccak256",(function(){return Dr})),r.d(i,"soliditySha256",(function(){return jr})),r.d(i,"splitSignature",(function(){return a.n})),r.d(i,"joinSignature",(function(){return a.m})),r.d(i,"accessListify",(function(){return er})),r.d(i,"parseTransaction",(function(){return sr})),r.d(i,"serializeTransaction",(function(){return ir})),r.d(i,"TransactionTypes",(function(){return Ke})),r.d(i,"getJsonWalletAddress",(function(){return xr})),r.d(i,"computeAddress",(function(){return Ye})),r.d(i,"recoverAddress",(function(){return Qe})),r.d(i,"computePublicKey",(function(){return Ge})),r.d(i,"recoverPublicKey",(function(){return Ve})),r.d(i,"verifyMessage",(function(){return en})),r.d(i,"verifyTypedData",(function(){return rn})),r.d(i,"getAccountPath",(function(){return Or})),r.d(i,"mnemonicToEntropy",(function(){return Er})),r.d(i,"entropyToMnemonic",(function(){return Sr})),r.d(i,"isValidMnemonic",(function(){return Ir})),r.d(i,"mnemonicToSeed",(function(){return Cr})),r.d(i,"SupportedAlgorithm",(function(){return Te})),r.d(i,"UnicodeNormalizationForm",(function(){return J.a})),r.d(i,"Utf8ErrorReason",(function(){return J.c})),r.d(i,"Indexed",(function(){return Ft}));var a=r(1),s=r(4),c=r(3);var u=r(28);const l=new c.a("abi/5.7.0");function d(t){const e=[],r=function(t,o){if(Array.isArray(o))for(let n in o){const i=t.slice();i.push(n);try{r(i,o[n])}catch(t){e.push({path:i,error:t})}}};return r([],t),e}class p{constructor(t,e,r,o){this.name=t,this.type=e,this.localName=r,this.dynamic=o}_throwError(t,e){l.throwArgumentError(t,this.localName,e)}}class f{constructor(t){Object(s.d)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return Object(a.c)(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(Object(a.b)(t._data))}writeBytes(t){let e=Object(a.a)(t);const r=e.length%this.wordSize;return r&&(e=Object(a.b)([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=Object(a.a)(u.a.from(t));return e.length>this.wordSize&&l.throwError("value out-of-bounds",c.a.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=Object(a.b)([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class h{constructor(t,e,r,o){Object(s.d)(this,"_data",Object(a.a)(t)),Object(s.d)(this,"wordSize",e||32),Object(s.d)(this,"_coerceFunc",r),Object(s.d)(this,"allowLoose",o),this._offset=0}get data(){return Object(a.i)(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):h.coerce(t,e)}_peekBytes(t,e,r){let o=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+o>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?o=e:l.throwError("data out-of-bounds",c.a.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+o})),this._data.slice(this._offset,this._offset+o)}subReader(t){return new h(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return u.a.from(this.readBytes(this.wordSize))}}var g=r(7);const y=new c.a("rlp/5.7.0");function m(t){const e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function b(t,e,r){let o=0;for(let n=0;n<r;n++)o=256*o+t[e+n];return o}function v(t){return Object(a.i)(function t(e){if(Array.isArray(e)){let r=[];if(e.forEach((function(e){r=r.concat(t(e))})),r.length<=55)return r.unshift(192+r.length),r;const o=m(r.length);return o.unshift(247+o.length),o.concat(r)}Object(a.k)(e)||y.throwArgumentError("RLP object must be BytesLike","object",e);const r=Array.prototype.slice.call(Object(a.a)(e));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;const o=m(r.length);return o.unshift(183+o.length),o.concat(r)}(t))}function A(t,e,r,o){const n=[];for(;r<e+1+o;){const i=w(t,r);n.push(i.result),(r+=i.consumed)>e+1+o&&y.throwError("child data too short",c.a.errors.BUFFER_OVERRUN,{})}return{consumed:1+o,result:n}}function w(t,e){if(0===t.length&&y.throwError("data too short",c.a.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&y.throwError("data short segment too short",c.a.errors.BUFFER_OVERRUN,{});const o=b(t,e+1,r);return e+1+r+o>t.length&&y.throwError("data long segment too short",c.a.errors.BUFFER_OVERRUN,{}),A(t,e,e+1+r,r+o)}if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&y.throwError("data array too short",c.a.errors.BUFFER_OVERRUN,{}),A(t,e,e+1,r)}if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&y.throwError("data array too short",c.a.errors.BUFFER_OVERRUN,{});const o=b(t,e+1,r);e+1+r+o>t.length&&y.throwError("data array too short",c.a.errors.BUFFER_OVERRUN,{});return{consumed:1+r+o,result:Object(a.i)(t.slice(e+1+r,e+1+r+o))}}if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&y.throwError("data too short",c.a.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:Object(a.i)(t.slice(e+1,e+1+r))}}return{consumed:1,result:Object(a.i)(t[e])}}function M(t){const e=Object(a.a)(t),r=w(e,0);return r.consumed!==e.length&&y.throwArgumentError("invalid rlp data","data",t),r.result}const B=new c.a("address/5.7.0");function C(t){Object(a.l)(t,20)||B.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const o=Object(a.a)(Object(g.a)(r));for(let t=0;t<40;t+=2)o[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&o[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const E={};for(let t=0;t<10;t++)E[String(t)]=String(t);for(let t=0;t<26;t++)E[String.fromCharCode(65+t)]=String(10+t);const S=Math.floor((I=9007199254740991,Math.log10?Math.log10(I):Math.log(I)/Math.LN10));var I;function O(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>E[t]).join("");for(;e.length>=S;){let t=e.substring(0,S);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function T(t){let e=null;if("string"!=typeof t&&B.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=C(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&B.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==O(t)&&B.throwArgumentError("bad icap checksum","address",t),e=Object(u.c)(t.substring(4));e.length<40;)e="0"+e;e=C("0x"+e)}else B.throwArgumentError("invalid address","address",t);return e}function _(t){try{return T(t),!0}catch(t){}return!1}function x(t){let e=Object(u.b)(T(t).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+O("XE00"+e)+e}function F(t){let e=null;try{e=T(t.from)}catch(e){B.throwArgumentError("missing from address","transaction",t)}const r=Object(a.o)(Object(a.a)(u.a.from(t.nonce).toHexString()));return T(Object(a.e)(Object(g.a)(v([e,r])),12))}function P(t,e,r){return 32!==Object(a.d)(e)&&B.throwArgumentError("salt must be 32 bytes","salt",e),32!==Object(a.d)(r)&&B.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),T(Object(a.e)(Object(g.a)(Object(a.b)(["0xff",T(t),e,r])),12))}class k extends p{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=T(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return T(Object(a.h)(t.readValue().toHexString(),20))}}class R extends p{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const N=new c.a("abi/5.7.0");function D(t,e,r){let o=null;if(Array.isArray(r))o=r;else if(r&&"object"==typeof r){let t={};o=e.map(e=>{const o=e.localName;return o||N.throwError("cannot encode object for signature with missing names",c.a.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[o]&&N.throwError("cannot encode object for signature with duplicate names",c.a.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[o]=!0,r[o]})}else N.throwArgumentError("invalid tuple value","tuple",r);e.length!==o.length&&N.throwArgumentError("types/value length mismatch","tuple",r);let n=new f(t.wordSize),i=new f(t.wordSize),a=[];e.forEach((t,e)=>{let r=o[e];if(t.dynamic){let e=i.length;t.encode(i,r);let o=n.writeUpdatableValue();a.push(t=>{o(t+e)})}else t.encode(n,r)}),a.forEach(t=>{t(n.length)});let s=t.appendWriter(n);return s+=t.appendWriter(i),s}function j(t,e){let r=[],o=t.subReader(0);e.forEach(e=>{let n=null;if(e.dynamic){let r=t.readValue(),i=o.subReader(r.toNumber());try{n=e.decode(i)}catch(t){if(t.code===c.a.errors.BUFFER_OVERRUN)throw t;n=t,n.baseType=e.name,n.name=e.localName,n.type=e.type}}else try{n=e.decode(t)}catch(t){if(t.code===c.a.errors.BUFFER_OVERRUN)throw t;n=t,n.baseType=e.name,n.name=e.localName,n.type=e.type}null!=n&&r.push(n)});const n=e.reduce((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});e.forEach((t,e)=>{let o=t.localName;if(!o||1!==n[o])return;if("length"===o&&(o="_length"),null!=r[o])return;const i=r[e];i instanceof Error?Object.defineProperty(r,o,{enumerable:!0,get:()=>{throw i}}):r[o]=i});for(let t=0;t<r.length;t++){const e=r[t];e instanceof Error&&Object.defineProperty(r,t,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class W extends p{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;r<this.length;r++)e.push(t);return e}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),N.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let t=0;t<e.length;t++)o.push(this.coder);return D(t,o,e)}decode(t){let e=this.length;-1===e&&(e=t.readValue().toNumber(),32*e>t._data.length&&N.throwError("insufficient data length",c.a.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let t=0;t<e;t++)r.push(new R(this.coder));return t.coerce(this.name,j(t,r))}}class U extends p{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){return t.writeValue(e?1:0)}decode(t){return t.coerce(this.type,!t.readValue().isZero())}}class z extends p{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=Object(a.a)(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readValue().toNumber(),!0)}}class L extends z{constructor(t){super("bytes",t)}decode(t){return t.coerce(this.name,Object(a.i)(super.decode(t)))}}class V extends p{constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),this.size=t}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=Object(a.a)(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return t.coerce(this.name,Object(a.i)(t.readBytes(this.size)))}}class G extends p{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}decode(t){return t.readBytes(0),t.coerce(this.name,null)}}const H=u.a.from(-1),K=u.a.from(0),q=u.a.from(1),$=u.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class Z extends p{constructor(t,e,r){const o=(e?"int":"uint")+8*t;super(o,o,r,!1),this.size=t,this.signed=e}defaultValue(){return 0}encode(t,e){let r=u.a.from(e),o=$.mask(8*t.wordSize);if(this.signed){let t=o.mask(8*this.size-1);(r.gt(t)||r.lt(t.add(q).mul(H)))&&this._throwError("value out-of-bounds",e)}else(r.lt(K)||r.gt(o.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}decode(t){let e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}var J=r(31);class Y extends z{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,Object(J.f)(e))}decode(t){return Object(J.h)(super.decode(t))}}class Q extends p{constructor(t,e){let r=!1;const o=[];t.forEach(t=>{t.dynamic&&(r=!0),o.push(t.type)});super("tuple","tuple("+o.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach(e=>{t.push(e.defaultValue())});const e=this.coders.reduce((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});return this.coders.forEach((r,o)=>{let n=r.localName;n&&1===e[n]&&("length"===n&&(n="_length"),null==t[n]&&(t[n]=t[o]))}),Object.freeze(t)}encode(t,e){return D(t,this.coders,e)}decode(t){return t.coerce(this.name,j(t,this.coders))}}const X=new c.a("abi/5.7.0"),tt={};let et={calldata:!0,memory:!0,storage:!0},rt={calldata:!0,memory:!0};function ot(t,e){if("bytes"===t||"string"===t){if(et[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&rt[e])return!0;return(et[e]||"payable"===e)&&X.throwArgumentError("invalid modifier","name",e),!1}function nt(t,e){for(let r in e)Object(s.d)(t,r,e[r])}const it=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),at=new RegExp(/^(.*)\[([0-9]*)\]$/);class st{constructor(t,e){t!==tt&&X.throwError("use fromString",c.a.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),nt(this,e);let r=this.type.match(at);nt(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:st.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=it.sighash),it[t]||X.throwArgumentError("invalid format type","format",t),t===it.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map(e=>JSON.parse(e.format(t)))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==it.sighash&&(e+=this.type),e+="("+this.components.map(e=>e.format(t)).join(t===it.full?", ":",")+")"):e+=this.type,t!==it.sighash&&(!0===this.indexed&&(e+=" indexed"),t===it.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?st.fromString(t,e):st.fromObject(t)}static fromObject(t){return st.isParamType(t)?t:new st(tt,{name:t.name||null,type:bt(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(st.fromObject):null})}static fromString(t,e){return function(t){return st.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(t,e){let r=t;function o(e){X.throwArgumentError("unexpected character at position "+e,"param",t)}function n(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let i={type:"",name:"",state:{allowType:!0}},a=i;for(let r=0;r<t.length;r++){let i=t[r];switch(i){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||o(r),a.state.allowType=!1,a.type=bt(a.type),a.components=[n(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(e||o(r),a.indexed=!0,a.name=""),ot(a.type,a.name)&&(a.name=""),a.type=bt(a.type);let t=a;a=a.parent,a||o(r),delete t.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(e||o(r),a.indexed=!0,a.name=""),ot(a.type,a.name)&&(a.name=""),a.type=bt(a.type);let s=n(a.parent);a.parent.components.push(s),delete a.parent,a=s;break;case" ":a.state.allowType&&""!==a.type&&(a.type=bt(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(e||o(r),a.indexed&&o(r),a.indexed=!0,a.name=""):ot(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||o(r),a.type+=i,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||o(r),a.type+=i,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=i,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=i,delete a.state.allowArray):a.state.readArray?a.type+=i:o(r)}}return a.parent&&X.throwArgumentError("unexpected eof","param",t),delete i.state,"indexed"===a.name?(e||o(r.length-7),a.indexed&&o(r.length-7),a.indexed=!0,a.name=""):ot(a.type,a.name)&&(a.name=""),i.type=bt(i.type),i}(t,!!e))}static isParamType(t){return!(null==t||!t._isParamType)}}function ct(t,e){return function(t){t=t.trim();let e=[],r="",o=0;for(let n=0;n<t.length;n++){let i=t[n];","===i&&0===o?(e.push(r),r=""):(r+=i,"("===i?o++:")"===i&&(o--,-1===o&&X.throwArgumentError("unbalanced parenthesis","value",t)))}r&&e.push(r);return e}(t).map(t=>st.fromString(t,e))}class ut{constructor(t,e){t!==tt&&X.throwError("use a static from method",c.a.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),nt(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return ut.isFragment(t)?t:"string"==typeof t?ut.fromString(t):ut.fromObject(t)}static fromObject(t){if(ut.isFragment(t))return t;switch(t.type){case"function":return gt.fromObject(t);case"event":return lt.fromObject(t);case"constructor":return ht.fromObject(t);case"error":return mt.fromObject(t);case"fallback":case"receive":return null}return X.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?lt.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?gt.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?ht.fromString(t.trim()):"error"===t.split(" ")[0]?mt.fromString(t.substring(5).trim()):X.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!(!t||!t._isFragment)}}class lt extends ut{format(t){if(t||(t=it.sighash),it[t]||X.throwArgumentError("invalid format type","format",t),t===it.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==it.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===it.full?", ":",")+") ",t!==it.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?lt.fromString(t):lt.fromObject(t)}static fromObject(t){if(lt.isEventFragment(t))return t;"event"!==t.type&&X.throwArgumentError("invalid event object","value",t);const e={name:At(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(st.fromObject):[],type:"event"};return new lt(tt,e)}static fromString(t){let e=t.match(wt);e||X.throwArgumentError("invalid event string","value",t);let r=!1;return e[3].split(" ").forEach(t=>{switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:X.warn("unknown modifier: "+t)}}),lt.fromObject({name:e[1].trim(),anonymous:r,inputs:ct(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function dt(t,e){e.gas=null;let r=t.split("@");return 1!==r.length?(r.length>2&&X.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||X.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=u.a.from(r[1]),r[0]):t}function pt(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function ft(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&X.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&X.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||X.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&X.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&X.throwArgumentError("unable to determine stateMutability","value",t),e}class ht extends ut{format(t){if(t||(t=it.sighash),it[t]||X.throwArgumentError("invalid format type","format",t),t===it.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});t===it.sighash&&X.throwError("cannot format a constructor for sighash",c.a.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map(e=>e.format(t)).join(t===it.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?ht.fromString(t):ht.fromObject(t)}static fromObject(t){if(ht.isConstructorFragment(t))return t;"constructor"!==t.type&&X.throwArgumentError("invalid constructor object","value",t);let e=ft(t);e.constant&&X.throwArgumentError("constructor cannot be constant","value",t);const r={name:null,type:t.type,inputs:t.inputs?t.inputs.map(st.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?u.a.from(t.gas):null};return new ht(tt,r)}static fromString(t){let e={type:"constructor"},r=(t=dt(t,e)).match(wt);return r&&"constructor"===r[1].trim()||X.throwArgumentError("invalid constructor string","value",t),e.inputs=ct(r[2].trim(),!1),pt(r[3].trim(),e),ht.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class gt extends ht{format(t){if(t||(t=it.sighash),it[t]||X.throwArgumentError("invalid format type","format",t),t===it.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t))),outputs:this.outputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==it.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===it.full?", ":",")+") ",t!==it.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map(e=>e.format(t)).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?gt.fromString(t):gt.fromObject(t)}static fromObject(t){if(gt.isFunctionFragment(t))return t;"function"!==t.type&&X.throwArgumentError("invalid function object","value",t);let e=ft(t);const r={type:t.type,name:At(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(st.fromObject):[],outputs:t.outputs?t.outputs.map(st.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?u.a.from(t.gas):null};return new gt(tt,r)}static fromString(t){let e={type:"function"},r=(t=dt(t,e)).split(" returns ");r.length>2&&X.throwArgumentError("invalid function string","value",t);let o=r[0].match(wt);if(o||X.throwArgumentError("invalid function signature","value",t),e.name=o[1].trim(),e.name&&At(e.name),e.inputs=ct(o[2],!1),pt(o[3].trim(),e),r.length>1){let o=r[1].match(wt);""==o[1].trim()&&""==o[3].trim()||X.throwArgumentError("unexpected tokens","value",t),e.outputs=ct(o[2],!1)}else e.outputs=[];return gt.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function yt(t){const e=t.format();return"Error(string)"!==e&&"Panic(uint256)"!==e||X.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class mt extends ut{format(t){if(t||(t=it.sighash),it[t]||X.throwArgumentError("invalid format type","format",t),t===it.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==it.sighash&&(e+="error "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===it.full?", ":",")+") ",e.trim()}static from(t){return"string"==typeof t?mt.fromString(t):mt.fromObject(t)}static fromObject(t){if(mt.isErrorFragment(t))return t;"error"!==t.type&&X.throwArgumentError("invalid error object","value",t);const e={type:t.type,name:At(t.name),inputs:t.inputs?t.inputs.map(st.fromObject):[]};return yt(new mt(tt,e))}static fromString(t){let e={type:"error"},r=t.match(wt);return r||X.throwArgumentError("invalid error signature","value",t),e.name=r[1].trim(),e.name&&At(e.name),e.inputs=ct(r[2],!1),yt(mt.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function bt(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const vt=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function At(t){return t&&t.match(vt)||X.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const wt=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Mt=new c.a("abi/5.7.0"),Bt=new RegExp(/^bytes([0-9]*)$/),Ct=new RegExp(/^(u?int)([0-9]*)$/);class Et{constructor(t){Object(s.d)(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new k(t.name);case"bool":return new U(t.name);case"string":return new Y(t.name);case"bytes":return new L(t.name);case"array":return new W(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Q((t.components||[]).map(t=>this._getCoder(t)),t.name);case"":return new G(t.name)}let e=t.type.match(Ct);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&Mt.throwArgumentError("invalid "+e[1]+" bit length","param",t),new Z(r/8,"int"===e[1],t.name)}if(e=t.type.match(Bt),e){let r=parseInt(e[1]);return(0===r||r>32)&&Mt.throwArgumentError("invalid bytes length","param",t),new V(r,t.name)}return Mt.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new h(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new f(this._getWordSize())}getDefaultValue(t){const e=t.map(t=>this._getCoder(st.from(t)));return new Q(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Mt.throwError("types/values length mismatch",c.a.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map(t=>this._getCoder(st.from(t))),o=new Q(r,"_"),n=this._getWriter();return o.encode(n,e),n.data}decode(t,e,r){const o=t.map(t=>this._getCoder(st.from(t)));return new Q(o,"_").decode(this._getReader(Object(a.a)(e),r))}}const St=new Et;function It(t){return Object(g.a)(Object(J.f)(t))}const Ot=new c.a("abi/5.7.0");class Tt extends s.a{}class _t extends s.a{}class xt extends s.a{}class Ft extends s.a{static isIndexed(t){return!(!t||!t._isIndexed)}}const Pt={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function kt(t,e){const r=new Error("deferred error during ABI decoding triggered accessing "+t);return r.error=e,r}class Rt{constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,Object(s.d)(this,"fragments",e.map(t=>ut.from(t)).filter(t=>null!=t)),Object(s.d)(this,"_abiCoder",Object(s.e)(new.target,"getAbiCoder")()),Object(s.d)(this,"functions",{}),Object(s.d)(this,"errors",{}),Object(s.d)(this,"events",{}),Object(s.d)(this,"structs",{}),this.fragments.forEach(t=>{let e=null;switch(t.type){case"constructor":return this.deploy?void Ot.warn("duplicate definition - constructor"):void Object(s.d)(this,"deploy",t);case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let r=t.format();e[r]?Ot.warn("duplicate definition - "+r):e[r]=t}),this.deploy||Object(s.d)(this,"deploy",ht.from({payable:!1,type:"constructor"})),Object(s.d)(this,"_isInterface",!0)}format(t){t||(t=it.full),t===it.sighash&&Ot.throwArgumentError("interface does not support formatting sighash","format",t);const e=this.fragments.map(e=>e.format(t));return t===it.json?JSON.stringify(e.map(t=>JSON.parse(t))):e}static getAbiCoder(){return St}static getAddress(t){return T(t)}static getSighash(t){return Object(a.e)(It(t.format()),0,4)}static getEventTopic(t){return It(t.format())}getFunction(t){if(Object(a.l)(t)){for(const e in this.functions)if(t===this.getSighash(e))return this.functions[e];Ot.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.functions).filter(t=>t.split("(")[0]===e);return 0===r.length?Ot.throwArgumentError("no matching function","name",e):r.length>1&&Ot.throwArgumentError("multiple matching functions","name",e),this.functions[r[0]]}const e=this.functions[gt.fromString(t).format()];return e||Ot.throwArgumentError("no matching function","signature",t),e}getEvent(t){if(Object(a.l)(t)){const e=t.toLowerCase();for(const t in this.events)if(e===this.getEventTopic(t))return this.events[t];Ot.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.events).filter(t=>t.split("(")[0]===e);return 0===r.length?Ot.throwArgumentError("no matching event","name",e):r.length>1&&Ot.throwArgumentError("multiple matching events","name",e),this.events[r[0]]}const e=this.events[lt.fromString(t).format()];return e||Ot.throwArgumentError("no matching event","signature",t),e}getError(t){if(Object(a.l)(t)){const e=Object(s.e)(this.constructor,"getSighash");for(const r in this.errors){if(t===e(this.errors[r]))return this.errors[r]}Ot.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.errors).filter(t=>t.split("(")[0]===e);return 0===r.length?Ot.throwArgumentError("no matching error","name",e):r.length>1&&Ot.throwArgumentError("multiple matching errors","name",e),this.errors[r[0]]}const e=this.errors[gt.fromString(t).format()];return e||Ot.throwArgumentError("no matching error","signature",t),e}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(t){throw e}}return Object(s.e)(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),Object(s.e)(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));const r=Object(a.a)(e);return Object(a.i)(r.slice(0,4))!==this.getSighash(t)&&Ot.throwArgumentError(`data signature does not match error ${t.name}.`,"data",Object(a.i)(r)),this._decodeParams(t.inputs,r.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),Object(a.i)(Object(a.b)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));const r=Object(a.a)(e);return Object(a.i)(r.slice(0,4))!==this.getSighash(t)&&Ot.throwArgumentError(`data signature does not match function ${t.name}.`,"data",Object(a.i)(r)),this._decodeParams(t.inputs,r.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Object(a.i)(Object(a.b)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=Object(a.a)(e),o=null,n="",i=null,s=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(t){}break;case 4:{const t=Object(a.i)(r.slice(0,4)),e=Pt[t];if(e)i=this._abiCoder.decode(e.inputs,r.slice(4)),s=e.name,u=e.signature,e.reason&&(o=i[0]),"Error"===s?n="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(i[0]):"Panic"===s&&(n="; VM Exception while processing transaction: reverted with panic code "+i[0]);else try{const e=this.getError(t);i=this._abiCoder.decode(e.inputs,r.slice(4)),s=e.name,u=e.format()}catch(t){}break}}return Ot.throwError("call revert exception"+n,c.a.errors.CALL_EXCEPTION,{method:t.format(),data:Object(a.i)(e),errorArgs:i,errorName:s,errorSignature:u,reason:o})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Object(a.i)(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&Ot.throwError("too many arguments for "+t.format(),c.a.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let r=[];t.anonymous||r.push(this.getEventTopic(t));const o=(t,e)=>"string"===t.type?It(e):"bytes"===t.type?Object(g.a)(Object(a.i)(e)):("bool"===t.type&&"boolean"==typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=u.a.from(e).toHexString()),"address"===t.type&&this._abiCoder.encode(["address"],[e]),Object(a.h)(Object(a.i)(e),32));for(e.forEach((e,n)=>{let i=t.inputs[n];i.indexed?null==e?r.push(null):"array"===i.baseType||"tuple"===i.baseType?Ot.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,e):Array.isArray(e)?r.push(e.map(t=>o(i,t))):r.push(o(i,e)):null!=e&&Ot.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,e)});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));const r=[],o=[],n=[];return t.anonymous||r.push(this.getEventTopic(t)),e.length!==t.inputs.length&&Ot.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((t,i)=>{const a=e[i];if(t.indexed)if("string"===t.type)r.push(It(a));else if("bytes"===t.type)r.push(Object(g.a)(a));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([t.type],[a]))}else o.push(t),n.push(a)}),{data:this._abiCoder.encode(o,n),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){let e=this.getEventTopic(t);Object(a.l)(r[0],32)&&r[0].toLowerCase()===e||Ot.throwError("fragment/topic mismatch",c.a.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:r[0]}),r=r.slice(1)}let o=[],n=[],i=[];t.inputs.forEach((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(o.push(st.fromObject({type:"bytes32",name:t.name})),i.push(!0)):(o.push(t),i.push(!1)):(n.push(t),i.push(!1))});let s=null!=r?this._abiCoder.decode(o,Object(a.b)(r)):null,u=this._abiCoder.decode(n,e,!0),l=[],d=0,p=0;t.inputs.forEach((t,e)=>{if(t.indexed)if(null==s)l[e]=new Ft({_isIndexed:!0,hash:null});else if(i[e])l[e]=new Ft({_isIndexed:!0,hash:s[p++]});else try{l[e]=s[p++]}catch(t){l[e]=t}else try{l[e]=u[d++]}catch(t){l[e]=t}if(t.name&&null==l[t.name]){const r=l[e];r instanceof Error?Object.defineProperty(l,t.name,{enumerable:!0,get:()=>{throw kt("property "+JSON.stringify(t.name),r)}}):l[t.name]=r}});for(let t=0;t<l.length;t++){const e=l[t];e instanceof Error&&Object.defineProperty(l,t,{enumerable:!0,get:()=>{throw kt("index "+t,e)}})}return Object.freeze(l)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new _t({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:u.a.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new Tt({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){const e=Object(a.i)(t);let r=this.getError(e.substring(0,10).toLowerCase());return r?new xt({args:this._abiCoder.decode(r.inputs,"0x"+e.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(t){return!(!t||!t._isInterface)}}function Nt(t){t=atob(t);const e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return Object(a.a)(e)}function Dt(t){t=Object(a.a)(t);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}class jt{constructor(t){Object(s.d)(this,"alphabet",t),Object(s.d)(this,"base",t.length),Object(s.d)(this,"_alphabetMap",{}),Object(s.d)(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=Object(a.a)(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let o=e[t];for(let t=0;t<r.length;++t)o+=r[t]<<8,r[t]=o%this.base,o=o/this.base|0;for(;o>0;)r.push(o%this.base),o=o/this.base|0}let o="";for(let t=0;0===e[t]&&t<e.length-1;++t)o+=this._leader;for(let t=r.length-1;t>=0;--t)o+=this.alphabet[r[t]];return o}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let o=this._alphabetMap[t[r]];if(void 0===o)throw new Error("Non-base"+this.base+" character");let n=o;for(let t=0;t<e.length;++t)n+=e[t]*this.base,e[t]=255&n,n>>=8;for(;n>0;)e.push(255&n),n>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return Object(a.a)(new Uint8Array(e.reverse()))}}new jt("abcdefghijklmnopqrstuvwxyz234567");const Wt=new jt("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function Ut(t,e){null==e&&(e=1);const r=[],o=r.forEach,n=function(t,e){o.call(t,(function(t){e>0&&Array.isArray(t)?n(t,e-1):r.push(t)}))};return n(t,e),r}function zt(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let o=r(),n=1,i=[0,1];for(let t=1;t<o;t++)i.push(n+=r());let a=r(),s=e;e+=a;let c=0,u=0;function l(){return 0==c&&(u=u<<8|t[e++],c=8),u>>--c&1}const d=Math.pow(2,31),p=d>>>1,f=p>>1,h=d-1;let g=0;for(let t=0;t<31;t++)g=g<<1|l();let y=[],m=0,b=d;for(;;){let t=Math.floor(((g-m+1)*n-1)/b),e=0,r=o;for(;r-e>1;){let o=e+r>>>1;t<i[o]?r=o:e=o}if(0==e)break;y.push(e);let a=m+Math.floor(b*i[e]/n),s=m+Math.floor(b*i[e+1]/n)-1;for(;0==((a^s)&p);)g=g<<1&h|l(),a=a<<1&h,s=s<<1&h|1;for(;a&~s&f;)g=g&p|g<<1&h>>>1|l(),a=a<<1^p,s=(s^p)<<1|p|1;m=a,b=1+s-a}let v=o-4;return y.map(e=>{switch(e-v){case 3:return v+65792+(t[s++]<<16|t[s++]<<8|t[s++]);case 2:return v+256+(t[s++]<<8|t[s++]);case 1:return v+t[s++];default:return e-1}})}(t))}function Lt(t){return 1&t?~t>>1:t>>1}function Vt(t,e){let r=Array(t);for(let o=0,n=-1;o<t;o++)r[o]=n+=1+e();return r}function Gt(t,e){let r=Array(t);for(let o=0,n=0;o<t;o++)r[o]=n+=Lt(e());return r}function Ht(t,e){let r=Vt(t(),t),o=t(),n=Vt(o,t),i=function(t,e){let r=Array(t);for(let o=0;o<t;o++)r[o]=1+e();return r}(o,t);for(let t=0;t<o;t++)for(let e=0;e<i[t];e++)r.push(n[t]+e);return e?r.map(t=>e[t]):r}function Kt(t,e,r){let o=Array(t).fill(void 0).map(()=>[]);for(let n=0;n<e;n++)Gt(t,r).forEach((t,e)=>o[e].push(t));return o}function qt(t,e){let r=1+e(),o=e(),n=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return Ut(Kt(n.length,1+t,e).map((t,e)=>{const i=t[0],a=t.slice(1);return Array(n[e]).fill(void 0).map((t,e)=>{let n=e*o;return[i+e*r,a.map(t=>t+n)]})}))}function $t(t,e){return Kt(1+e(),1+t,e).map(t=>[t[0],t.slice(1)])}const Zt=zt(Nt("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),Jt=new Set(Ht(Zt)),Yt=new Set(Ht(Zt)),Qt=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(qt(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push($t(r,t))}return function(t){const e={};for(let r=0;r<t.length;r++){const o=t[r];e[o[0]]=o[1]}return e}(Ut(e))}(Zt),Xt=function(t){let e=Ht(t).sort((t,e)=>t-e);return function r(){let o=[];for(;;){let n=Ht(t,e);if(0==n.length)break;o.push({set:new Set(n),node:r()})}o.sort((t,e)=>e.set.size-t.set.size);let n=t(),i=n%3;n=n/3|0;let a=!!(1&n);return n>>=1,{branches:o,valid:i,fe0f:a,save:1==n,check:2==n}}()}(Zt);function te(t){return Object(J.g)(t)}function ee(t){return t.filter(t=>65039!=t)}function re(t){for(let e of t.split(".")){let t=te(e);try{for(let e=t.lastIndexOf(95)-1;e>=0;e--)if(95!==t[e])throw new Error("underscore only allowed at start");if(t.length>=4&&t.every(t=>t<128)&&45===t[2]&&45===t[3])throw new Error("invalid label extension")}catch(t){throw new Error(`Invalid label "${e}": ${t.message}`)}}return t}function oe(t){return re(function(t,e){let r=te(t).reverse(),o=[];for(;r.length;){let t=ne(r);if(t){o.push(...e(t));continue}let n=r.pop();if(Jt.has(n)){o.push(n);continue}if(Yt.has(n))continue;let i=Qt[n];if(!i)throw new Error("Disallowed codepoint: 0x"+n.toString(16).toUpperCase());o.push(...i)}return re((n=String.fromCodePoint(...o),n.normalize("NFC")));var n}(t,ee))}function ne(t,e){var r;let o,n,i=Xt,a=[],s=t.length;for(e&&(e.length=0);s;){let c=t[--s];if(i=null===(r=i.branches.find(t=>t.set.has(c)))||void 0===r?void 0:r.node,!i)break;if(i.save)n=c;else if(i.check&&c===n)break;a.push(c),i.fe0f&&(a.push(65039),s>0&&65039==t[s-1]&&s--),i.valid&&(o=a.slice(),2==i.valid&&o.splice(1,1),e&&e.push(...t.slice(s).reverse()),t.length=s)}return o}const ie=new c.a("hash/5.7.0"),ae=new Uint8Array(32);function se(t){if(0===t.length)throw new Error("invalid ENS name; empty component");return t}function ce(t){const e=Object(J.f)(oe(t)),r=[];if(0===t.length)return r;let o=0;for(let t=0;t<e.length;t++){46===e[t]&&(r.push(se(e.slice(o,t))),o=t+1)}if(o>=e.length)throw new Error("invalid ENS name; empty component");return r.push(se(e.slice(o))),r}function ue(t){try{return 0!==ce(t).length}catch(t){}return!1}function le(t){"string"!=typeof t&&ie.throwArgumentError("invalid ENS name; not a string","name",t);let e=ae;const r=ce(t);for(;r.length;)e=Object(g.a)(Object(a.b)([e,Object(g.a)(r.pop())]));return Object(a.i)(e)}function de(t){return Object(a.i)(Object(a.b)(ce(t).map(t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e})))+"00"}ae.fill(0);function pe(t){return"string"==typeof t&&(t=Object(J.f)(t)),Object(g.a)(Object(a.b)([Object(J.f)("Ethereum Signed Message:\n"),Object(J.f)(String(t.length)),t]))}var fe=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};const he=new c.a("hash/5.7.0"),ge=new Uint8Array(32);ge.fill(0);const ye=u.a.from(-1),me=u.a.from(0),be=u.a.from(1),ve=u.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const Ae=Object(a.h)(be.toHexString(),32),we=Object(a.h)(me.toHexString(),32),Me={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Be=["name","version","chainId","verifyingContract","salt"];function Ce(t){return function(e){return"string"!=typeof e&&he.throwArgumentError("invalid domain value for "+JSON.stringify(t),"domain."+t,e),e}}const Ee={name:Ce("name"),version:Ce("version"),chainId:function(t){try{return u.a.from(t).toString()}catch(t){}return he.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return T(t).toLowerCase()}catch(t){}return he.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=Object(a.a)(t);if(32!==e.length)throw new Error("bad length");return Object(a.i)(e)}catch(t){}return he.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function Se(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=""===e[1],o=parseInt(e[2]||"256");(o%8!=0||o>256||e[2]&&e[2]!==String(o))&&he.throwArgumentError("invalid numeric width","type",t);const n=ve.mask(r?o-1:o),i=r?n.add(be).mul(ye):me;return function(e){const r=u.a.from(e);return(r.lt(i)||r.gt(n))&&he.throwArgumentError("value out-of-bounds for "+t,"value",e),Object(a.h)(r.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&he.throwArgumentError("invalid bytes width","type",t),function(e){return Object(a.a)(e).length!==r&&he.throwArgumentError("invalid length for "+t,"value",e),function(t){const e=Object(a.a)(t),r=e.length%32;return r?Object(a.c)([e,ge.slice(r)]):Object(a.i)(e)}(e)}}}switch(t){case"address":return function(t){return Object(a.h)(T(t),32)};case"bool":return function(t){return t?Ae:we};case"bytes":return function(t){return Object(g.a)(t)};case"string":return function(t){return It(t)}}return null}function Ie(t,e){return`${t}(${e.map(({name:t,type:e})=>e+" "+t).join(",")})`}class Oe{constructor(t){Object(s.d)(this,"types",Object.freeze(Object(s.c)(t))),Object(s.d)(this,"_encoderCache",{}),Object(s.d)(this,"_types",{});const e={},r={},o={};Object.keys(t).forEach(t=>{e[t]={},r[t]=[],o[t]={}});for(const o in t){const n={};t[o].forEach(i=>{n[i.name]&&he.throwArgumentError(`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(o)}`,"types",t),n[i.name]=!0;const a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===o&&he.throwArgumentError("circular type reference to "+JSON.stringify(a),"types",t);Se(a)||(r[a]||he.throwArgumentError("unknown type "+JSON.stringify(a),"types",t),r[a].push(o),e[o][a]=!0)})}const n=Object.keys(r).filter(t=>0===r[t].length);0===n.length?he.throwArgumentError("missing primary type","types",t):n.length>1&&he.throwArgumentError("ambiguous primary types or unused types: "+n.map(t=>JSON.stringify(t)).join(", "),"types",t),Object(s.d)(this,"primaryType",n[0]),function n(i,a){a[i]&&he.throwArgumentError("circular type reference to "+JSON.stringify(i),"types",t),a[i]=!0,Object.keys(e[i]).forEach(t=>{r[t]&&(n(t,a),Object.keys(a).forEach(e=>{o[e][t]=!0}))}),delete a[i]}(this.primaryType,{});for(const e in o){const r=Object.keys(o[e]);r.sort(),this._types[e]=Ie(e,t[e])+r.map(e=>Ie(e,t[e])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const e=Se(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],r=this.getEncoder(t),o=parseInt(e[3]);return e=>{o>=0&&e.length!==o&&he.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let n=e.map(r);return this._types[t]&&(n=n.map(g.a)),Object(g.a)(Object(a.c)(n))}}const r=this.types[t];if(r){const e=It(this._types[t]);return t=>{const o=r.map(({name:e,type:r})=>{const o=this.getEncoder(r)(t[e]);return this._types[r]?Object(g.a)(o):o});return o.unshift(e),Object(a.c)(o)}}return he.throwArgumentError("unknown type: "+t,"type",t)}encodeType(t){const e=this._types[t];return e||he.throwArgumentError("unknown type: "+JSON.stringify(t),"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Object(g.a)(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(Se(t))return r(t,e);const o=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(o){const t=o[1],n=parseInt(o[3]);return n>=0&&e.length!==n&&he.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(e=>this._visit(t,e,r))}const n=this.types[t];return n?n.reduce((t,{name:o,type:n})=>(t[o]=this._visit(n,e[o],r),t),{}):he.throwArgumentError("unknown type: "+t,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new Oe(t)}static getPrimaryType(t){return Oe.from(t).primaryType}static hashStruct(t,e,r){return Oe.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){const o=Me[r];o||he.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(r),"domain",t),e.push({name:r,type:o})}return e.sort((t,e)=>Be.indexOf(t.name)-Be.indexOf(e.name)),Oe.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return Object(a.c)(["0x1901",Oe.hashDomain(t),Oe.from(e).hash(r)])}static hash(t,e,r){return Object(g.a)(Oe.encode(t,e,r))}static resolveNames(t,e,r,o){return fe(this,void 0,void 0,(function*(){t=Object(s.g)(t);const n={};t.verifyingContract&&!Object(a.l)(t.verifyingContract,20)&&(n[t.verifyingContract]="0x");const i=Oe.from(e);i.visit(r,(t,e)=>("address"!==t||Object(a.l)(e,20)||(n[e]="0x"),e));for(const t in n)n[t]=yield o(t);return t.verifyingContract&&n[t.verifyingContract]&&(t.verifyingContract=n[t.verifyingContract]),r=i.visit(r,(t,e)=>"address"===t&&n[e]?n[e]:e),{domain:t,value:r}}))}static getPayload(t,e,r){Oe.hashDomain(t);const o={},n=[];Be.forEach(e=>{const r=t[e];null!=r&&(o[e]=Ee[e](r),n.push({name:e,type:Me[e]}))});const i=Oe.from(e),c=Object(s.g)(e);return c.EIP712Domain?he.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):c.EIP712Domain=n,i.encode(r),{types:c,domain:o,primaryType:i.primaryType,message:i.visit(r,(t,e)=>{if(t.match(/^bytes(\d*)/))return Object(a.i)(Object(a.a)(e));if(t.match(/^u?int/))return u.a.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&he.throwArgumentError("invalid string","value",e),e}return he.throwArgumentError("unsupported type","type",t)})}}}var Te,_e=r(16),xe=r.n(_e);!function(t){t.sha256="sha256",t.sha512="sha512"}(Te||(Te={}));const Fe=new c.a("sha2/5.7.0");function Pe(t){return"0x"+xe.a.ripemd160().update(Object(a.a)(t)).digest("hex")}function ke(t){return"0x"+xe.a.sha256().update(Object(a.a)(t)).digest("hex")}function Re(t){return"0x"+xe.a.sha512().update(Object(a.a)(t)).digest("hex")}function Ne(t,e,r){return Te[t]||Fe.throwError("unsupported algorithm "+t,c.a.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+xe.a.hmac(xe.a[t],Object(a.a)(e)).update(Object(a.a)(r)).digest("hex")}function De(t,e,r,o,n){let i;t=Object(a.a)(t),e=Object(a.a)(e);let s=1;const c=new Uint8Array(o),u=new Uint8Array(e.length+4);let l,d;u.set(e);for(let p=1;p<=s;p++){u[e.length]=p>>24&255,u[e.length+1]=p>>16&255,u[e.length+2]=p>>8&255,u[e.length+3]=255&p;let f=Object(a.a)(Ne(n,t,u));i||(i=f.length,d=new Uint8Array(i),s=Math.ceil(o/i),l=o-(s-1)*i),d.set(f);for(let e=1;e<r;e++){f=Object(a.a)(Ne(n,t,f));for(let t=0;t<i;t++)d[t]^=f[t]}const h=(p-1)*i,g=p===s?l:i;c.set(Object(a.a)(d).slice(0,g),h)}return Object(a.i)(c)}var je=r(110);const We=new c.a("signing-key/5.7.0");let Ue=null;function ze(){return Ue||(Ue=new je.a("secp256k1")),Ue}class Le{constructor(t){Object(s.d)(this,"curve","secp256k1"),Object(s.d)(this,"privateKey",Object(a.i)(t)),32!==Object(a.d)(this.privateKey)&&We.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=ze().keyFromPrivate(Object(a.a)(this.privateKey));Object(s.d)(this,"publicKey","0x"+e.getPublic(!1,"hex")),Object(s.d)(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),Object(s.d)(this,"_isSigningKey",!0)}_addPoint(t){const e=ze().keyFromPublic(Object(a.a)(this.publicKey)),r=ze().keyFromPublic(Object(a.a)(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){const e=ze().keyFromPrivate(Object(a.a)(this.privateKey)),r=Object(a.a)(t);32!==r.length&&We.throwArgumentError("bad digest length","digest",t);const o=e.sign(r,{canonical:!0});return Object(a.n)({recoveryParam:o.recoveryParam,r:Object(a.h)("0x"+o.r.toString(16),32),s:Object(a.h)("0x"+o.s.toString(16),32)})}computeSharedSecret(t){const e=ze().keyFromPrivate(Object(a.a)(this.privateKey)),r=ze().keyFromPublic(Object(a.a)(Ge(t)));return Object(a.h)("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function Ve(t,e){const r=Object(a.n)(e),o={r:Object(a.a)(r.r),s:Object(a.a)(r.s)};return"0x"+ze().recoverPubKey(Object(a.a)(t),o,r.recoveryParam).encode("hex",!1)}function Ge(t,e){const r=Object(a.a)(t);if(32===r.length){const t=new Le(r);return e?"0x"+ze().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?Object(a.i)(r):"0x"+ze().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+ze().keyFromPublic(r).getPublic(!0,"hex"):Object(a.i)(r):We.throwArgumentError("invalid public or private key","key","[REDACTED]")}const He=new c.a("transactions/5.7.0");var Ke;function qe(t){return"0x"===t?null:T(t)}function $e(t){return"0x"===t?K:u.a.from(t)}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(Ke||(Ke={}));const Ze=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],Je={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Ye(t){const e=Ge(t);return T(Object(a.e)(Object(g.a)(Object(a.e)(e,1)),12))}function Qe(t,e){return Ye(Ve(Object(a.a)(t),e))}function Xe(t,e){const r=Object(a.o)(u.a.from(t).toHexString());return r.length>32&&He.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function tr(t,e){return{address:T(t),storageKeys:(e||[]).map((e,r)=>(32!==Object(a.d)(e)&&He.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase()))}}function er(t){if(Array.isArray(t))return t.map((t,e)=>Array.isArray(t)?(t.length>2&&He.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),tr(t[0],t[1])):tr(t.address,t.storageKeys));const e=Object.keys(t).map(e=>{const r=t[e].reduce((t,e)=>(t[e]=!0,t),{});return tr(e,Object.keys(r).sort())});return e.sort((t,e)=>t.address.localeCompare(e.address)),e}function rr(t){return er(t).map(t=>[t.address,t.storageKeys])}function or(t,e){if(null!=t.gasPrice){const e=u.a.from(t.gasPrice),r=u.a.from(t.maxFeePerGas||0);e.eq(r)||He.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:r})}const r=[Xe(t.chainId||0,"chainId"),Xe(t.nonce||0,"nonce"),Xe(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Xe(t.maxFeePerGas||0,"maxFeePerGas"),Xe(t.gasLimit||0,"gasLimit"),null!=t.to?T(t.to):"0x",Xe(t.value||0,"value"),t.data||"0x",rr(t.accessList||[])];if(e){const t=Object(a.n)(e);r.push(Xe(t.recoveryParam,"recoveryParam")),r.push(Object(a.o)(t.r)),r.push(Object(a.o)(t.s))}return Object(a.c)(["0x02",v(r)])}function nr(t,e){const r=[Xe(t.chainId||0,"chainId"),Xe(t.nonce||0,"nonce"),Xe(t.gasPrice||0,"gasPrice"),Xe(t.gasLimit||0,"gasLimit"),null!=t.to?T(t.to):"0x",Xe(t.value||0,"value"),t.data||"0x",rr(t.accessList||[])];if(e){const t=Object(a.n)(e);r.push(Xe(t.recoveryParam,"recoveryParam")),r.push(Object(a.o)(t.r)),r.push(Object(a.o)(t.s))}return Object(a.c)(["0x01",v(r)])}function ir(t,e){if(null==t.type||0===t.type)return null!=t.accessList&&He.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),function(t,e){Object(s.b)(t,Je);const r=[];Ze.forEach((function(e){let o=t[e.name]||[];const n={};e.numeric&&(n.hexPad="left"),o=Object(a.a)(Object(a.i)(o,n)),e.length&&o.length!==e.length&&o.length>0&&He.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,o),e.maxLength&&(o=Object(a.o)(o),o.length>e.maxLength&&He.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,o)),r.push(Object(a.i)(o))}));let o=0;if(null!=t.chainId?(o=t.chainId,"number"!=typeof o&&He.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!Object(a.k)(e)&&e.v>28&&(o=Math.floor((e.v-35)/2)),0!==o&&(r.push(Object(a.i)(o)),r.push("0x"),r.push("0x")),!e)return v(r);const n=Object(a.n)(e);let i=27+n.recoveryParam;return 0!==o?(r.pop(),r.pop(),r.pop(),i+=2*o+8,n.v>28&&n.v!==i&&He.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):n.v!==i&&He.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(Object(a.i)(i)),r.push(Object(a.o)(Object(a.a)(n.r))),r.push(Object(a.o)(Object(a.a)(n.s))),v(r)}(t,e);switch(t.type){case 1:return nr(t,e);case 2:return or(t,e)}return He.throwError("unsupported transaction type: "+t.type,c.a.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function ar(t,e,r){try{const r=$e(e[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");t.v=r}catch(t){He.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Object(a.h)(e[1],32),t.s=Object(a.h)(e[2],32);try{const e=Object(g.a)(r(t));t.from=Qe(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){}}function sr(t){const e=Object(a.a)(t);if(e[0]>127)return function(t){const e=M(t);9!==e.length&&6!==e.length&&He.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:$e(e[0]).toNumber(),gasPrice:$e(e[1]),gasLimit:$e(e[2]),to:qe(e[3]),value:$e(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=u.a.from(e[6]).toNumber()}catch(t){return r}if(r.r=Object(a.h)(e[7],32),r.s=Object(a.h)(e[8],32),u.a.from(r.r).isZero()&&u.a.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let o=r.v-27;const n=e.slice(0,6);0!==r.chainId&&(n.push(Object(a.i)(r.chainId)),n.push("0x"),n.push("0x"),o-=2*r.chainId+8);const i=Object(g.a)(v(n));try{r.from=Qe(i,{r:Object(a.i)(r.r),s:Object(a.i)(r.s),recoveryParam:o})}catch(t){}r.hash=Object(g.a)(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){const e=M(t.slice(1));8!==e.length&&11!==e.length&&He.throwArgumentError("invalid component count for transaction type: 1","payload",Object(a.i)(t));const r={type:1,chainId:$e(e[0]).toNumber(),nonce:$e(e[1]).toNumber(),gasPrice:$e(e[2]),gasLimit:$e(e[3]),to:qe(e[4]),value:$e(e[5]),data:e[6],accessList:er(e[7])};return 8===e.length||(r.hash=Object(g.a)(t),ar(r,e.slice(8),nr)),r}(e);case 2:return function(t){const e=M(t.slice(1));9!==e.length&&12!==e.length&&He.throwArgumentError("invalid component count for transaction type: 2","payload",Object(a.i)(t));const r=$e(e[2]),o=$e(e[3]),n={type:2,chainId:$e(e[0]).toNumber(),nonce:$e(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:o,gasPrice:null,gasLimit:$e(e[4]),to:qe(e[5]),value:$e(e[6]),data:e[7],accessList:er(e[8])};return 9===e.length||(n.hash=Object(g.a)(t),ar(n,e.slice(9),or)),n}(e)}return He.throwError("unsupported transaction type: "+e[0],c.a.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const cr=new c.a("wordlists/5.7.0");class ur{constructor(t){cr.checkAbstract(new.target,ur),Object(s.d)(this,"locale",t)}split(t){return t.toLowerCase().split(/ +/g)}join(t){return t.join(" ")}static check(t){const e=[];for(let r=0;r<2048;r++){const o=t.getWord(r);if(r!==t.getWordIndex(o))return"0x";e.push(o)}return It(e.join("\n")+"\n")}static register(t,e){e||(e=t.locale)}}let lr=null;function dr(t){if(null==lr&&(lr="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==ur.check(t)))throw lr=null,new Error("BIP39 Wordlist for en (English) FAILED")}const pr=new class extends ur{constructor(){super("en")}getWord(t){return dr(this),lr[t]}getWordIndex(t){return dr(this),lr.indexOf(t)}};ur.register(pr);const fr={en:pr},hr=new c.a("hdnode/5.7.0"),gr=u.a.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),yr=Object(J.f)("Bitcoin seed");function mr(t){return(1<<t)-1<<8-t}function br(t){return Object(a.h)(Object(a.i)(t),32)}function vr(t){return Wt.encode(Object(a.b)([t,Object(a.e)(ke(ke(t)),0,4)]))}function Ar(t){if(null==t)return fr.en;if("string"==typeof t){const e=fr[t];return null==e&&hr.throwArgumentError("unknown locale","wordlist",t),e}return t}const wr={},Mr="m/44'/60'/0'/0/0";class Br{constructor(t,e,r,o,n,i,c,u){if(t!==wr)throw new Error("HDNode constructor cannot be called directly");if(e){const t=new Le(e);Object(s.d)(this,"privateKey",t.privateKey),Object(s.d)(this,"publicKey",t.compressedPublicKey)}else Object(s.d)(this,"privateKey",null),Object(s.d)(this,"publicKey",Object(a.i)(r));Object(s.d)(this,"parentFingerprint",o),Object(s.d)(this,"fingerprint",Object(a.e)(Pe(ke(this.publicKey)),0,4)),Object(s.d)(this,"address",Ye(this.publicKey)),Object(s.d)(this,"chainCode",n),Object(s.d)(this,"index",i),Object(s.d)(this,"depth",c),null==u?(Object(s.d)(this,"mnemonic",null),Object(s.d)(this,"path",null)):"string"==typeof u?(Object(s.d)(this,"mnemonic",null),Object(s.d)(this,"path",u)):(Object(s.d)(this,"mnemonic",u),Object(s.d)(this,"path",u.path))}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return vr(Object(a.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(a.i)(this.depth),this.parentFingerprint,Object(a.h)(Object(a.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(a.b)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new Br(wr,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let e=this.path;e&&(e+="/"+(2147483647&t));const r=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(Object(a.a)(this.privateKey),1),e&&(e+="'")}else r.set(Object(a.a)(this.publicKey));for(let e=24;e>=0;e-=8)r[33+(e>>3)]=t>>24-e&255;const o=Object(a.a)(Ne(Te.sha512,this.chainCode,r)),n=o.slice(0,32),i=o.slice(32);let s=null,c=null;if(this.privateKey)s=br(u.a.from(n).add(this.privateKey).mod(gr));else{c=new Le(Object(a.i)(n))._addPoint(this.publicKey)}let l=e;const d=this.mnemonic;return d&&(l=Object.freeze({phrase:d.phrase,path:e,locale:d.locale||"en"})),new Br(wr,s,c,this.fingerprint,br(i),t,this.depth+1,l)}derivePath(t){const e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw new Error("invalid path - "+t);"m"===e[0]&&e.shift();let r=this;for(let t=0;t<e.length;t++){const o=e[t];if(o.match(/^[0-9]+'$/)){const t=parseInt(o.substring(0,o.length-1));if(t>=2147483648)throw new Error("invalid path index - "+o);r=r._derive(2147483648+t)}else{if(!o.match(/^[0-9]+$/))throw new Error("invalid path component - "+o);{const t=parseInt(o);if(t>=2147483648)throw new Error("invalid path index - "+o);r=r._derive(t)}}}return r}static _fromSeed(t,e){const r=Object(a.a)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");const o=Object(a.a)(Ne(Te.sha512,yr,r));return new Br(wr,br(o.slice(0,32)),null,"0x00000000",br(o.slice(32)),0,0,e)}static fromMnemonic(t,e,r){return t=Sr(Er(t,r=Ar(r)),r),Br._fromSeed(Cr(t,e),{phrase:t,path:"m",locale:r.locale})}static fromSeed(t){return Br._fromSeed(t,null)}static fromExtendedKey(t){const e=Wt.decode(t);82===e.length&&vr(e.slice(0,78))===t||hr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=e[4],o=Object(a.i)(e.slice(5,9)),n=parseInt(Object(a.i)(e.slice(9,13)).substring(2),16),i=Object(a.i)(e.slice(13,45)),s=e.slice(45,78);switch(Object(a.i)(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new Br(wr,null,Object(a.i)(s),o,i,n,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break;return new Br(wr,Object(a.i)(s.slice(1)),null,o,i,n,r,null)}return hr.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Cr(t,e){e||(e="");const r=Object(J.f)("mnemonic"+e,J.a.NFKD);return De(Object(J.f)(t,J.a.NFKD),r,2048,64,"sha512")}function Er(t,e){e=Ar(e),hr.checkNormalize();const r=e.split(t);if(r.length%3!=0)throw new Error("invalid mnemonic");const o=Object(a.a)(new Uint8Array(Math.ceil(11*r.length/8)));let n=0;for(let t=0;t<r.length;t++){let i=e.getWordIndex(r[t].normalize("NFKD"));if(-1===i)throw new Error("invalid mnemonic");for(let t=0;t<11;t++)i&1<<10-t&&(o[n>>3]|=1<<7-n%8),n++}const i=32*r.length/3,s=mr(r.length/3);if((Object(a.a)(ke(o.slice(0,i/8)))[0]&s)!==(o[o.length-1]&s))throw new Error("invalid checksum");return Object(a.i)(o.slice(0,i/8))}function Sr(t,e){if(e=Ar(e),(t=Object(a.a)(t)).length%4!=0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let o=11;for(let e=0;e<t.length;e++)o>8?(r[r.length-1]<<=8,r[r.length-1]|=t[e],o-=8):(r[r.length-1]<<=o,r[r.length-1]|=t[e]>>8-o,r.push(t[e]&(1<<8-o)-1),o+=3);const n=t.length/4,i=Object(a.a)(ke(t))[0]&mr(n);return r[r.length-1]<<=n,r[r.length-1]|=i>>8-n,e.join(r.map(t=>e.getWord(t)))}function Ir(t,e){try{return Er(t,e),!0}catch(t){}return!1}function Or(t){return("number"!=typeof t||t<0||t>=2147483648||t%1)&&hr.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}function Tr(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return e.encseed&&e.ethaddr}function _r(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return!(!e.version||parseInt(e.version)!==e.version||3!==parseInt(e.version))}function xr(t){if(Tr(t))try{return T(JSON.parse(t).ethaddr)}catch(t){return null}if(_r(t))try{return T(JSON.parse(t).address)}catch(t){return null}return null}const Fr=new RegExp("^bytes([0-9]+)$"),Pr=new RegExp("^(u?int)([0-9]*)$"),kr=new RegExp("^(.*)\\[([0-9]*)\\]$"),Rr=new c.a("solidity/5.7.0");function Nr(t,e){t.length!=e.length&&Rr.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach((function(t,o){r.push(function t(e,r,o){switch(e){case"address":return o?Object(a.p)(r,32):Object(a.a)(r);case"string":return Object(J.f)(r);case"bytes":return Object(a.a)(r);case"bool":return r=r?"0x01":"0x00",o?Object(a.p)(r,32):Object(a.a)(r)}let n=e.match(Pr);if(n){let t=parseInt(n[2]||"256");return(n[2]&&String(t)!==n[2]||t%8!=0||0===t||t>256)&&Rr.throwArgumentError("invalid number type","type",e),o&&(t=256),r=u.a.from(r).toTwos(t),Object(a.p)(r,t/8)}if(n=e.match(Fr),n){const t=parseInt(n[1]);return(String(t)!==n[1]||0===t||t>32)&&Rr.throwArgumentError("invalid bytes type","type",e),Object(a.a)(r).byteLength!==t&&Rr.throwArgumentError("invalid value for "+e,"value",r),o?Object(a.a)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if(n=e.match(kr),n&&Array.isArray(r)){const o=n[1];parseInt(n[2]||String(r.length))!=r.length&&Rr.throwArgumentError("invalid array length for "+e,"value",r);const i=[];return r.forEach((function(e){i.push(t(o,e,!0))})),Object(a.b)(i)}return Rr.throwArgumentError("invalid type","type",e)}(t,e[o]))})),Object(a.i)(Object(a.b)(r))}function Dr(t,e){return Object(g.a)(Nr(t,e))}function jr(t,e){return ke(Nr(t,e))}var Wr=r(264);function Ur(t){for(let e=(t=t.slice()).length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),o=t[e];t[e]=t[r],t[r]=o}return t}function zr(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,o={};return t.split(",").forEach(t=>{let n=t.split(":");r+=parseInt(n[0],16),o[r]=e(n[1])}),o}function Lr(t){let e=0;return t.split(",").map(t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let o=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:o,h:e}})}function Vr(t,e){let r=0;for(let o=0;o<e.length;o++){let n=e[o];if(r+=n.l,t>=r&&t<=r+n.h&&(t-r)%(n.d||1)==0){if(n.e&&-1!==n.e.indexOf(t-r))continue;return n}}return null}const Gr=Lr("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Hr="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),Kr=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],qr=zr("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),$r=zr("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Zr=zr("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e})),Jr=Lr("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function Yr(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=Object(J.g)(t);var r;r=e.map(t=>{if(Hr.indexOf(t)>=0)return[];if(t>=65024&&t<=65039)return[];let e=function(t){let e=Vr(t,Kr);if(e)return[t+e.s];let r=qr[t];if(r)return r;let o=$r[t];if(o)return[t+o[0]];let n=Zr[t];return n||null}(t);return e||[t]}),e=r.reduce((t,e)=>(e.forEach(e=>{t.push(e)}),t),[]),e=Object(J.g)(Object(J.e)(e),J.a.NFKC),e.forEach(t=>{if(Vr(t,Jr))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(t=>{if(Vr(t,Gr))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let o=Object(J.e)(e);if("-"===o.substring(0,1)||"--"===o.substring(2,4)||"-"===o.substring(o.length-1))throw new Error("invalid hyphen");return o}function Qr(t){const e=Object(J.f)(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Object(a.i)(Object(a.b)([e,"0x0000000000000000000000000000000000000000000000000000000000000000"]).slice(0,32))}function Xr(t){const e=Object(a.a)(t);if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===e[r-1];)r--;return Object(J.h)(e.slice(0,r))}var to=r(49);const eo=new c.a(to.a),ro={},oo=u.a.from(0),no=u.a.from(-1);function io(t,e,r,o){const n={fault:e,operation:r};return void 0!==o&&(n.value=o),eo.throwError(t,c.a.errors.NUMERIC_FAULT,n)}let ao="0";for(;ao.length<256;)ao+=ao;function so(t){if("number"!=typeof t)try{t=u.a.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+ao.substring(0,t):eo.throwArgumentError("invalid decimal size","decimals",t)}function co(t,e){null==e&&(e=0);const r=so(e),o=(t=u.a.from(t)).lt(oo);o&&(t=t.mul(no));let n=t.mod(r).toString();for(;n.length<r.length-1;)n="0"+n;n=n.match(/^([0-9]*[1-9]|0)(0*)/)[1];const i=t.div(r).toString();return t=1===r.length?i:i+"."+n,o&&(t="-"+t),t}function uo(t,e){null==e&&(e=0);const r=so(e);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||eo.throwArgumentError("invalid decimal value","value",t);const o="-"===t.substring(0,1);o&&(t=t.substring(1)),"."===t&&eo.throwArgumentError("missing value","value",t);const n=t.split(".");n.length>2&&eo.throwArgumentError("too many decimal points","value",t);let i=n[0],a=n[1];for(i||(i="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&io("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<r.length-1;)a+="0";const s=u.a.from(i),c=u.a.from(a);let l=s.mul(r).add(c);return o&&(l=l.mul(no)),l}class lo{constructor(t,e,r,o){t!==ro&&eo.throwError("cannot use FixedFormat constructor; use FixedFormat.from",c.a.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=r,this.decimals=o,this.name=(e?"":"u")+"fixed"+String(r)+"x"+String(o),this._multiplier=so(o),Object.freeze(this)}static from(t){if(t instanceof lo)return t;"number"==typeof t&&(t="fixed128x"+t);let e=!0,r=128,o=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)e=!1;else{const n=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);n||eo.throwArgumentError("invalid fixed format","format",t),e="u"!==n[1],r=parseInt(n[2]),o=parseInt(n[3])}else if(t){const n=(e,r,o)=>null==t[e]?o:(typeof t[e]!==r&&eo.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=n("signed","boolean",e),r=n("width","number",r),o=n("decimals","number",o)}return r%8&&eo.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),o>80&&eo.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",o),new lo(ro,e,r,o)}}class po{constructor(t,e,r,o){t!==ro&&eo.throwError("cannot use FixedNumber constructor; use FixedNumber.from",c.a.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=o,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&eo.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=uo(this._value,this.format.decimals),r=uo(t._value,t.format.decimals);return po.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=uo(this._value,this.format.decimals),r=uo(t._value,t.format.decimals);return po.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=uo(this._value,this.format.decimals),r=uo(t._value,t.format.decimals);return po.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=uo(this._value,this.format.decimals),r=uo(t._value,t.format.decimals);return po.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=po.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(fo.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=po.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(fo.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&eo.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=po.from("1"+ao.substring(0,t),this.format),o=ho.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(o).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&eo.throwArgumentError("invalid byte width","width",t);const e=u.a.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return Object(a.h)(e,t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return po.fromString(this._value,t)}static fromValue(t,e,r){return null!=r||null==e||Object(u.d)(e)||(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),po.fromString(co(t,e),lo.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=lo.from(e),o=uo(t,r.decimals);!r.signed&&o.lt(oo)&&io("unsigned value cannot be negative","overflow","value",t);let n=null;r.signed?n=o.toTwos(r.width).toHexString():(n=o.toHexString(),n=Object(a.h)(n,r.width/8));const i=co(o,r.decimals);return new po(ro,n,i,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=lo.from(e);if(Object(a.a)(t).length>r.width/8)throw new Error("overflow");let o=u.a.from(t);r.signed&&(o=o.fromTwos(r.width));const n=o.toTwos((r.signed?0:1)+r.width).toHexString(),i=co(o,r.decimals);return new po(ro,n,i,r)}static from(t,e){if("string"==typeof t)return po.fromString(t,e);if(Object(a.j)(t))return po.fromBytes(t,e);try{return po.fromValue(t,0,e)}catch(t){if(t.code!==c.a.errors.INVALID_ARGUMENT)throw t}return eo.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const fo=po.from(1),ho=po.from("0.5"),go=new c.a("units/5.7.0"),yo=["wei","kwei","mwei","gwei","szabo","finney","ether"];function mo(t){const e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||"."===t||"-."===t)&&go.throwArgumentError("invalid value","value",t);let r=e[0],o="";for("-"===r.substring(0,1)&&(o="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let n="";for(2===e.length&&(n="."+(e[1]||"0"));n.length>2&&"0"===n[n.length-1];)n=n.substring(0,n.length-1);const i=[];for(;r.length;){if(r.length<=3){i.unshift(r);break}{const t=r.length-3;i.unshift(r.substring(t)),r=r.substring(0,t)}}return o+i.join(",")+n}function bo(t,e){if("string"==typeof e){const t=yo.indexOf(e);-1!==t&&(e=3*t)}return co(t,null!=e?e:18)}function vo(t,e){if("string"!=typeof t&&go.throwArgumentError("value must be a string","value",t),"string"==typeof e){const t=yo.indexOf(e);-1!==t&&(e=3*t)}return uo(t,null!=e?e:18)}function Ao(t){return bo(t,18)}function wo(t){return vo(t,18)}var Mo=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};const Bo=new c.a("abstract-provider/5.7.0");s.a;class Co{constructor(){Bo.checkAbstract(new.target,Co),Object(s.d)(this,"_isProvider",!0)}getFeeData(){return Mo(this,void 0,void 0,(function*(){const{block:t,gasPrice:e}=yield Object(s.f)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(t=>null)});let r=null,o=null,n=null;return t&&t.baseFeePerGas&&(r=t.baseFeePerGas,n=u.a.from("1500000000"),o=t.baseFeePerGas.mul(2).add(n)),{lastBaseFeePerGas:r,maxFeePerGas:o,maxPriorityFeePerGas:n,gasPrice:e}}))}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}var Eo=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};const So=new c.a("abstract-signer/5.7.0"),Io=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Oo=[c.a.errors.INSUFFICIENT_FUNDS,c.a.errors.NONCE_EXPIRED,c.a.errors.REPLACEMENT_UNDERPRICED];class To{constructor(){So.checkAbstract(new.target,To),Object(s.d)(this,"_isSigner",!0)}getBalance(t){return Eo(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)}))}getTransactionCount(t){return Eo(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)}))}estimateGas(t){return Eo(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const e=yield Object(s.f)(this.checkTransaction(t));return yield this.provider.estimateGas(e)}))}call(t,e){return Eo(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield Object(s.f)(this.checkTransaction(t));return yield this.provider.call(r,e)}))}sendTransaction(t){return Eo(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)}))}getChainId(){return Eo(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return Eo(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return Eo(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(t){return Eo(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)}))}checkTransaction(t){for(const e in t)-1===Io.indexOf(e)&&So.throwArgumentError("invalid transaction key: "+e,"transaction",t);const e=Object(s.g)(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then(e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&So.throwArgumentError("from address mismatch","transaction",t),e[0])),e}populateTransaction(t){return Eo(this,void 0,void 0,(function*(){const e=yield Object(s.f)(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(t=>Eo(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.resolveName(t);return null==e&&So.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))),e.to.catch(t=>{}));const r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!r?0!==e.type&&1!==e.type||!r||So.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):So.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const t=yield this.getFeeData();if(null==e.type)if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas);else null!=t.gasPrice?(r&&So.throwError("network does not support EIP-1559",c.a.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):So.throwError("failed to get consistent fee data",c.a.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(t=>{if(Oo.indexOf(t.code)>=0)throw t;return So.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",c.a.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})})),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(e=>(0!==e[1]&&e[0]!==e[1]&&So.throwArgumentError("chainId address mismatch","transaction",t),e[0])),yield Object(s.f)(e)}))}_checkProvider(t){this.provider||So.throwError("missing provider",c.a.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}var _o=r(25),xo=r.n(_o),Fo=r(52),Po=r.n(Fo);function ko(t){return"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Object(a.a)(t)}function Ro(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function No(t){return"string"==typeof t?Object(J.f)(t,J.a.NFKC):Object(a.a)(t)}function Do(t,e){let r=t;const o=e.toLowerCase().split("/");for(let t=0;t<o.length;t++){let e=null;for(const n in r)if(n.toLowerCase()===o[t]){e=r[n];break}if(null===e)return null;r=e}return r}function jo(t){const e=Object(a.a)(t);e[6]=15&e[6]|64,e[8]=63&e[8]|128;const r=Object(a.i)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}var Wo=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};const Uo=new c.a("json-wallets/5.7.0");function zo(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase}class Lo extends s.a{isKeystoreAccount(t){return!(!t||!t._isKeystoreAccount)}}function Vo(t,e){const r=ko(Do(t,"crypto/ciphertext"));if(Object(a.i)(Object(g.a)(Object(a.b)([e.slice(16,32),r]))).substring(2)!==Do(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const o=function(t,e,r){if("aes-128-ctr"===Do(t,"crypto/cipher")){const o=ko(Do(t,"crypto/cipherparams/iv")),n=new xo.a.Counter(o),i=new xo.a.ModeOfOperation.ctr(e,n);return Object(a.a)(i.decrypt(r))}return null}(t,e.slice(0,16),r);o||Uo.throwError("unsupported cipher",c.a.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const n=e.slice(32,64),i=Ye(o);if(t.address){let e=t.address.toLowerCase();if("0x"!==e.substring(0,2)&&(e="0x"+e),T(e)!==i)throw new Error("address mismatch")}const s={_isKeystoreAccount:!0,address:i,privateKey:Object(a.i)(o)};if("0.1"===Do(t,"x-ethers/version")){const e=ko(Do(t,"x-ethers/mnemonicCiphertext")),r=ko(Do(t,"x-ethers/mnemonicCounter")),o=new xo.a.Counter(r),i=new xo.a.ModeOfOperation.ctr(n,o),u=Do(t,"x-ethers/path")||Mr,l=Do(t,"x-ethers/locale")||"en",d=Object(a.a)(i.decrypt(e));try{const t=Sr(d,l),e=Br.fromMnemonic(t,null,l).derivePath(u);if(e.privateKey!=s.privateKey)throw new Error("mnemonic mismatch");s.mnemonic=e.mnemonic}catch(t){if(t.code!==c.a.errors.INVALID_ARGUMENT||"wordlist"!==t.argument)throw t}}return new Lo(s)}function Go(t,e,r,o,n){return Object(a.a)(De(t,e,r,o,n))}function Ho(t,e,r,o,n){return Promise.resolve(Go(t,e,r,o,n))}function Ko(t,e,r,o,n){const i=No(e),a=Do(t,"crypto/kdf");if(a&&"string"==typeof a){const e=function(t,e){return Uo.throwArgumentError("invalid key-derivation function parameters",t,e)};if("scrypt"===a.toLowerCase()){const r=ko(Do(t,"crypto/kdfparams/salt")),s=parseInt(Do(t,"crypto/kdfparams/n")),c=parseInt(Do(t,"crypto/kdfparams/r")),u=parseInt(Do(t,"crypto/kdfparams/p"));s&&c&&u||e("kdf",a),0!=(s&s-1)&&e("N",s);const l=parseInt(Do(t,"crypto/kdfparams/dklen"));return 32!==l&&e("dklen",l),o(i,r,s,c,u,64,n)}if("pbkdf2"===a.toLowerCase()){const o=ko(Do(t,"crypto/kdfparams/salt"));let n=null;const a=Do(t,"crypto/kdfparams/prf");"hmac-sha256"===a?n="sha256":"hmac-sha512"===a?n="sha512":e("prf",a);const s=parseInt(Do(t,"crypto/kdfparams/c")),c=parseInt(Do(t,"crypto/kdfparams/dklen"));return 32!==c&&e("dklen",c),r(i,o,s,c,n)}}return Uo.throwArgumentError("unsupported key-derivation function","kdf",a)}const qo=new c.a("json-wallets/5.7.0");class $o extends s.a{isCrowdsaleAccount(t){return!(!t||!t._isCrowdsaleAccount)}}function Zo(t,e){const r=JSON.parse(t);e=No(e);const o=T(Do(r,"ethaddr")),n=ko(Do(r,"encseed"));n&&n.length%16==0||qo.throwArgumentError("invalid encseed","json",t);const i=Object(a.a)(De(e,e,2e3,32,"sha256")).slice(0,16),s=n.slice(0,16),c=n.slice(16),u=new xo.a.ModeOfOperation.cbc(i,s),l=xo.a.padding.pkcs7.strip(Object(a.a)(u.decrypt(c)));let d="";for(let t=0;t<l.length;t++)d+=String.fromCharCode(l[t]);const p=Object(J.f)(d),f=Object(g.a)(p);return new $o({_isCrowdsaleAccount:!0,address:o,privateKey:f})}function Jo(t,e,r){if(Tr(t)){r&&r(0);const o=Zo(t,e);return r&&r(1),Promise.resolve(o)}return _r(t)?function(t,e,r){return Wo(this,void 0,void 0,(function*(){const o=JSON.parse(t);return Vo(o,yield Ko(o,e,Ho,Po.a.scrypt,r))}))}(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function Yo(t,e){if(Tr(t))return Zo(t,e);if(_r(t))return function(t,e){const r=JSON.parse(t);return Vo(r,Ko(r,e,Go,Po.a.syncScrypt))}(t,e);throw new Error("invalid JSON wallet")}var Qo=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};const Xo=new c.a("wallet/5.7.0");class tn extends To{constructor(t,e){if(super(),null!=(r=t)&&Object(a.l)(r.privateKey,32)&&null!=r.address){const e=new Le(t.privateKey);if(Object(s.d)(this,"_signingKey",()=>e),Object(s.d)(this,"address",Ye(this.publicKey)),this.address!==T(t.address)&&Xo.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(t){const e=t.mnemonic;return e&&e.phrase}(t)){const e=t.mnemonic;Object(s.d)(this,"_mnemonic",()=>({phrase:e.phrase,path:e.path||Mr,locale:e.locale||"en"}));const r=this.mnemonic;Ye(Br.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path).privateKey)!==this.address&&Xo.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Object(s.d)(this,"_mnemonic",()=>null)}else{if(Le.isSigningKey(t))"secp256k1"!==t.curve&&Xo.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(s.d)(this,"_signingKey",()=>t);else{"string"==typeof t&&t.match(/^[0-9a-f]*$/i)&&64===t.length&&(t="0x"+t);const e=new Le(t);Object(s.d)(this,"_signingKey",()=>e)}Object(s.d)(this,"_mnemonic",()=>null),Object(s.d)(this,"address",Ye(this.publicKey))}var r;e&&!Co.isProvider(e)&&Xo.throwArgumentError("invalid provider","provider",e),Object(s.d)(this,"provider",e||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new tn(this,t)}signTransaction(t){return Object(s.f)(t).then(e=>{null!=e.from&&(T(e.from)!==this.address&&Xo.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete e.from);const r=this._signingKey().signDigest(Object(g.a)(ir(e)));return ir(e,r)})}signMessage(t){return Qo(this,void 0,void 0,(function*(){return Object(a.m)(this._signingKey().signDigest(pe(t)))}))}_signTypedData(t,e,r){return Qo(this,void 0,void 0,(function*(){const o=yield Oe.resolveNames(t,e,r,t=>(null==this.provider&&Xo.throwError("cannot resolve ENS names without a provider",c.a.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:t}),this.provider.resolveName(t)));return Object(a.m)(this._signingKey().signDigest(Oe.hash(o.domain,e,o.value)))}))}encrypt(t,e,r){if("function"!=typeof e||r||(r=e,e={}),r&&"function"!=typeof r)throw new Error("invalid callback");return e||(e={}),function(t,e,r,o){try{if(T(t.address)!==Ye(t.privateKey))throw new Error("address/privateKey mismatch");if(zo(t)){const e=t.mnemonic;if(Br.fromMnemonic(e.phrase,null,e.locale).derivePath(e.path||Mr).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(t){return Promise.reject(t)}"function"!=typeof r||o||(o=r,r={}),r||(r={});const n=Object(a.a)(t.privateKey),i=No(e);let s=null,c=null,u=null;if(zo(t)){const e=t.mnemonic;s=Object(a.a)(Er(e.phrase,e.locale||"en")),c=e.path||Mr,u=e.locale||"en"}let l=r.client;l||(l="ethers.js");let d=null;d=r.salt?Object(a.a)(r.salt):Object(Wr.a)(32);let p=null;if(r.iv){if(p=Object(a.a)(r.iv),16!==p.length)throw new Error("invalid iv")}else p=Object(Wr.a)(16);let f=null;if(r.uuid){if(f=Object(a.a)(r.uuid),16!==f.length)throw new Error("invalid uuid")}else f=Object(Wr.a)(16);let h=1<<17,y=8,m=1;return r.scrypt&&(r.scrypt.N&&(h=r.scrypt.N),r.scrypt.r&&(y=r.scrypt.r),r.scrypt.p&&(m=r.scrypt.p)),Po.a.scrypt(i,d,h,y,m,64,o).then(e=>{const r=(e=Object(a.a)(e)).slice(0,16),o=e.slice(16,32),i=e.slice(32,64),b=new xo.a.Counter(p),v=new xo.a.ModeOfOperation.ctr(r,b),A=Object(a.a)(v.encrypt(n)),w=Object(g.a)(Object(a.b)([o,A])),M={address:t.address.substring(2).toLowerCase(),id:jo(f),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(a.i)(p).substring(2)},ciphertext:Object(a.i)(A).substring(2),kdf:"scrypt",kdfparams:{salt:Object(a.i)(d).substring(2),n:h,dklen:32,p:m,r:y},mac:w.substring(2)}};if(s){const t=Object(Wr.a)(16),e=new xo.a.Counter(t),r=new xo.a.ModeOfOperation.ctr(i,e),o=Object(a.a)(r.encrypt(s)),n=new Date,d=n.getUTCFullYear()+"-"+Ro(n.getUTCMonth()+1,2)+"-"+Ro(n.getUTCDate(),2)+"T"+Ro(n.getUTCHours(),2)+"-"+Ro(n.getUTCMinutes(),2)+"-"+Ro(n.getUTCSeconds(),2)+".0Z";M["x-ethers"]={client:l,gethFilename:"UTC--"+d+"--"+M.address,mnemonicCounter:Object(a.i)(t).substring(2),mnemonicCiphertext:Object(a.i)(o).substring(2),path:c,locale:u,version:"0.1"}}return JSON.stringify(M)})}(this,t,e,r)}static createRandom(t){let e=Object(Wr.a)(16);t||(t={}),t.extraEntropy&&(e=Object(a.a)(Object(a.e)(Object(g.a)(Object(a.b)([e,t.extraEntropy])),0,16)));const r=Sr(e,t.locale);return tn.fromMnemonic(r,t.path,t.locale)}static fromEncryptedJson(t,e,r){return Jo(t,e,r).then(t=>new tn(t))}static fromEncryptedJsonSync(t,e){return new tn(Yo(t,e))}static fromMnemonic(t,e,r){return e||(e=Mr),new tn(Br.fromMnemonic(t,null,r).derivePath(e))}}function en(t,e){return Qe(pe(t),e)}function rn(t,e,r,o){return Qe(Oe.hash(t,e,r),o)}var on=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};function nn(t,e){return on(this,void 0,void 0,(function*(){null==e&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(!0!==e.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=e.fetchOptions){const t=e.fetchOptions;t.mode&&(r.mode=t.mode),t.cache&&(r.cache=t.cache),t.credentials&&(r.credentials=t.credentials),t.redirect&&(r.redirect=t.redirect),t.referrer&&(r.referrer=t.referrer)}const o=yield fetch(t,r),n=yield o.arrayBuffer(),i={};return o.headers.forEach?o.headers.forEach((t,e)=>{i[e.toLowerCase()]=t}):o.headers.keys().forEach(t=>{i[t.toLowerCase()]=o.headers.get(t)}),{headers:i,statusCode:o.status,statusMessage:o.statusText,body:Object(a.a)(new Uint8Array(n))}}))}var an=function(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))};const sn=new c.a("web/5.7.1");function cn(t){return new Promise(e=>{setTimeout(e,t)})}function un(t,e){if(null==t)return null;if("string"==typeof t)return t;if(Object(a.k)(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return Object(J.h)(t)}catch(t){}return Object(a.i)(t)}return t}function ln(t,e,r){const o="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;sn.assertArgument(o>0&&o%1==0,"invalid connection throttle limit","connection.throttleLimit",o);const n="object"==typeof t?t.throttleCallback:null,i="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;sn.assertArgument(i>0&&i%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);const a="object"==typeof t&&!!t.errorPassThrough,u={};let l=null;const d={method:"GET"};let p=!1,f=12e4;if("string"==typeof t)l=t;else if("object"==typeof t){if(null!=t&&null!=t.url||sn.throwArgumentError("missing URL","connection.url",t),l=t.url,"number"==typeof t.timeout&&t.timeout>0&&(f=t.timeout),t.headers)for(const e in t.headers)u[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(p=!0);if(d.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==l.substring(0,6)&&!0!==t.allowInsecureAuthentication&&sn.throwError("basic authentication requires a secure https url",c.a.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const e=t.user+":"+t.password;u.authorization={key:"Authorization",value:"Basic "+Dt(Object(J.f)(e))}}null!=t.skipFetchSetup&&(d.skipFetchSetup=!!t.skipFetchSetup),null!=t.fetchOptions&&(d.fetchOptions=Object(s.g)(t.fetchOptions))}const h=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),g=l?l.match(h):null;if(g)try{const t={statusCode:200,statusMessage:"OK",headers:{"content-type":g[1]||"text/plain"},body:g[2]?Nt(g[3]):(y=g[3],Object(J.f)(y.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16)))))};let e=t.body;return r&&(e=r(t.body,t)),Promise.resolve(e)}catch(t){sn.throwError("processing response error",c.a.errors.SERVER_ERROR,{body:un(g[1],g[2]),error:t,requestBody:null,requestMethod:"GET",url:l})}var y;e&&(d.method="POST",d.body=e,null==u["content-type"]&&(u["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==u["content-length"]&&(u["content-length"]={key:"Content-Length",value:String(e.length)}));const m={};Object.keys(u).forEach(t=>{const e=u[t];m[e.key]=e.value}),d.headers=m;const b=function(){let t=null;return{promise:new Promise((function(e,r){f&&(t=setTimeout(()=>{null!=t&&(t=null,r(sn.makeError("timeout",c.a.errors.TIMEOUT,{requestBody:un(d.body,m["content-type"]),requestMethod:d.method,timeout:f,url:l})))},f))})),cancel:function(){null!=t&&(clearTimeout(t),t=null)}}}(),v=function(){return an(this,void 0,void 0,(function*(){for(let t=0;t<o;t++){let e=null;try{if(e=yield nn(l,d),t<o)if(301===e.statusCode||302===e.statusCode){const t=e.headers.location||"";if("GET"===d.method&&t.match(/^https:/)){l=e.headers.location;continue}}else if(429===e.statusCode){let r=!0;if(n&&(r=yield n(t,l)),r){let r=0;const o=e.headers["retry-after"];r="string"==typeof o&&o.match(/^[1-9][0-9]*$/)?1e3*parseInt(o):i*parseInt(String(Math.random()*Math.pow(2,t))),yield cn(r);continue}}}catch(t){e=t.response,null==e&&(b.cancel(),sn.throwError("missing response",c.a.errors.SERVER_ERROR,{requestBody:un(d.body,m["content-type"]),requestMethod:d.method,serverError:t,url:l}))}let s=e.body;if(p&&304===e.statusCode?s=null:!a&&(e.statusCode<200||e.statusCode>=300)&&(b.cancel(),sn.throwError("bad response",c.a.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:un(s,e.headers?e.headers["content-type"]:null),requestBody:un(d.body,m["content-type"]),requestMethod:d.method,url:l})),r)try{const t=yield r(s,e);return b.cancel(),t}catch(r){if(r.throttleRetry&&t<o){let e=!0;if(n&&(e=yield n(t,l)),e){const e=i*parseInt(String(Math.random()*Math.pow(2,t)));yield cn(e);continue}}b.cancel(),sn.throwError("processing response error",c.a.errors.SERVER_ERROR,{body:un(s,e.headers?e.headers["content-type"]:null),error:r,requestBody:un(d.body,m["content-type"]),requestMethod:d.method,url:l})}return b.cancel(),s}return sn.throwError("failed response",c.a.errors.SERVER_ERROR,{requestBody:un(d.body,m["content-type"]),requestMethod:d.method,url:l})}))}();return Promise.race([b.promise,v])}function dn(t,e,r){let o=null;if(null!=e){o=Object(J.f)(e);const r="string"==typeof t?{url:t}:Object(s.g)(t);if(r.headers){0!==Object.keys(r.headers).filter(t=>"content-type"===t.toLowerCase()).length||(r.headers=Object(s.g)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};t=r}return ln(t,o,(t,e)=>{let o=null;if(null!=t)try{o=JSON.parse(Object(J.h)(t))}catch(e){sn.throwError("invalid JSON",c.a.errors.SERVER_ERROR,{body:t,error:e})}return r&&(o=r(o,e)),o})}function pn(t,e){return e||(e={}),null==(e=Object(s.g)(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise((function(r,o){let n=null,i=!1;const a=()=>!i&&(i=!0,n&&clearTimeout(n),!0);e.timeout&&(n=setTimeout(()=>{a()&&o(new Error("timeout"))},e.timeout));const s=e.retryLimit;let c=0;!function n(){return t().then((function(t){if(void 0!==t)a()&&r(t);else if(e.oncePoll)e.oncePoll.once("poll",n);else if(e.onceBlock)e.onceBlock.once("block",n);else if(!i){if(c++,c>s)return void(a()&&o(new Error("retry limit reached")));let t=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));t<e.floor&&(t=e.floor),t>e.ceiling&&(t=e.ceiling),setTimeout(n,t)}return null}),(function(t){a()&&o(t)}))}()}))}new c.a("ethers/5.7.2");var fn=i.keccak256,hn=i.sha256,gn=i.toUtf8Bytes,yn=i.toUtf8String,mn=i.recoverAddress,bn=i.SigningKey,vn=i.AbiCoder,An=i.Interface,wn=i.FormatTypes,Mn=i.arrayify,Bn=i.splitSignature,Cn=i.joinSignature,En=i.concat,Sn=i.id,In=i.isValidMnemonic},function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"default",(function(){return V}));var o=r(6),n=r.n(o),i=r(22),a=r.n(i),s=r(12),c=r.n(s),u=r(13),l=r.n(u),d=r(35),p=r.n(d),f=r(105),h=r.n(f),g=r(106),y=r.n(g),m=r(62),b=r.n(m),v=r(14),A=r.n(v),w=r(2),M=r.n(w),B=r(17),C=r(0),E=r(38),S=r.n(E),I=r(113),O=r.n(I),T=r(114),_=r(50),x=r.n(_),F=r(19),P=r.n(F),k=r(63),R=r(64),N=r(67),D=r(65),j=r(66),W=r(116),U=r(9),z=r(11);function L(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=b()(t);if(e){var n=b()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return y()(this,r)}}var V=function(e){h()(u,e);var r,o,i,s=L(u);function u(){var t,e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];c()(this,u),t=s.call(this);var d=!1,f=!1;return"object"===a()(r)&&(r.fullNode||r.fullHost)?(e=r.fullNode||r.fullHost,i=o,o=r.solidityNode||r.fullHost,n=r.eventServer||r.fullHost,d=r.headers||!1,f=r.eventHeaders||d,l=r.privateKey):e=r,C.a.isString(e)&&(e=new B.a.HttpProvider(e)),C.a.isString(o)&&(o=new B.a.HttpProvider(o)),C.a.isString(n)&&(n=new B.a.HttpProvider(n)),t.event=new j.a(p()(t)),t.transactionBuilder=new k.a(p()(t)),t.trx=new R.a(p()(t)),t.plugin=new D.a(p()(t),r),t.utils=C.a,t.setFullNode(e),t.setSolidityNode(o),t.setEventServer(n),t.providers=B.a,t.BigNumber=S.a,t.defaultBlock=!1,t.defaultPrivateKey=!1,t.defaultAddress={hex:!1,base58:!1},["sha3","toHex","toUtf8","fromUtf8","toAscii","fromAscii","toDecimal","fromDecimal","toSun","fromSun","toBigNumber","isAddress","createAccount","address","version","createRandom","fromMnemonic"].forEach((function(e){t[e]=u[e]})),"object"===a()(i)&&(i.fullNode||i.fullHost)?t.sidechain=new W.a(i,u,p()(t),l):l=l||i,l&&t.setPrivateKey(l),t.fullnodeVersion="3.5.0",t.feeLimit=15e7,t.injectPromise=P()(p()(t)),d&&t.setFullNodeHeader(d),f&&t.setEventHeader(f),t}return l()(u,[{key:"getFullnodeVersion",value:(i=n()(M.a.mark((function t(){var e;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.trx.getNodeInfo();case 3:e=t.sent,this.fullnodeVersion=e.configNodeInfo.codeVersion,2===this.fullnodeVersion.split(".").length&&(this.fullnodeVersion+=".0"),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),this.fullnodeVersion="3.5.0";case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(){return i.apply(this,arguments)})},{key:"setDefaultBlock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if([!1,"latest","earliest",0].includes(t))return this.defaultBlock=t;if(!C.a.isInteger(t)||!t)throw new Error("Invalid block ID provided");this.defaultBlock=Math.abs(t)}},{key:"setPrivateKey",value:function(t){try{this.setAddress(this.address.fromPrivateKey(t))}catch(t){throw new Error("Invalid private key provided")}this.defaultPrivateKey=t,this.emit("privateKeyChanged",t)}},{key:"setAddress",value:function(t){if(!this.isAddress(t))throw new Error("Invalid address provided");var e=this.address.toHex(t),r=this.address.fromHex(t);this.defaultPrivateKey&&this.address.fromPrivateKey(this.defaultPrivateKey)!==r&&(this.defaultPrivateKey=!1),this.defaultAddress={hex:e,base58:r},this.emit("addressChanged",{hex:e,base58:r})}},{key:"fullnodeSatisfies",value:function(t){return x.a.satisfies(this.fullnodeVersion,t)}},{key:"isValidProvider",value:function(t){return Object.values(B.a).some((function(e){return t instanceof e}))}},{key:"setFullNode",value:function(t){if(C.a.isString(t)&&(t=new B.a.HttpProvider(t)),!this.isValidProvider(t))throw new Error("Invalid full node provided");this.fullNode=t,this.fullNode.setStatusPage("wallet/getnowblock"),this.getFullnodeVersion()}},{key:"setSolidityNode",value:function(t){if(C.a.isString(t)&&(t=new B.a.HttpProvider(t)),!this.isValidProvider(t))throw new Error("Invalid solidity node provided");this.solidityNode=t,this.solidityNode.setStatusPage("walletsolidity/getnowblock")}},{key:"setEventServer",value:function(){var t;(t=this.event).setServer.apply(t,arguments)}},{key:"setHeader",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new B.a.HttpProvider(this.fullNode.host,3e4,!1,!1,t),r=new B.a.HttpProvider(this.solidityNode.host,3e4,!1,!1,t),o=new B.a.HttpProvider(this.eventServer.host,3e4,!1,!1,t);this.setFullNode(e),this.setSolidityNode(r),this.setEventServer(o)}},{key:"setFullNodeHeader",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new B.a.HttpProvider(this.fullNode.host,3e4,!1,!1,t),r=new B.a.HttpProvider(this.solidityNode.host,3e4,!1,!1,t);this.setFullNode(e),this.setSolidityNode(r)}},{key:"setEventHeader",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new B.a.HttpProvider(this.eventServer.host,3e4,!1,!1,t);this.setEventServer(e)}},{key:"currentProviders",value:function(){return{fullNode:this.fullNode,solidityNode:this.solidityNode,eventServer:this.eventServer}}},{key:"currentProvider",value:function(){return this.currentProviders()}},{key:"getEventResult",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return"object"!==a()(r[1])&&(r[1]={sinceTimestamp:r[1]||0,eventName:r[2]||!1,blockNumber:r[3]||!1,size:r[4]||20,page:r[5]||1},r.splice(2,4),C.a.isFunction(r[2])||(C.a.isFunction(r[1].page)?(r[2]=r[1].page,r[1].page=1):C.a.isFunction(r[1].size)&&(r[2]=r[1].size,r[1].size=20,r[1].page=1))),(t=this.event).getEventsByContractAddress.apply(t,r)}},{key:"getEventByTransactionID",value:function(){var t;return(t=this.event).getEventsByTransactionID.apply(t,arguments)}},{key:"contract",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new N.a(this,t,e)}},{key:"isConnected",value:(o=n()(M.a.mark((function t(){var e,r=arguments;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=r.length>0&&void 0!==r[0]&&r[0]){t.next=3;break}return t.abrupt("return",this.injectPromise(this.isConnected));case 3:return t.t0=e,t.next=6,this.fullNode.isConnected();case 6:return t.t1=t.sent,t.next=9,this.solidityNode.isConnected();case 9:if(t.t2=t.sent,t.t3=this.eventServer,!t.t3){t.next=15;break}return t.next=14,this.eventServer.isConnected();case 14:t.t3=t.sent;case 15:return t.t4=t.t3,t.t5={fullNode:t.t1,solidityNode:t.t2,eventServer:t.t4},t.abrupt("return",(0,t.t0)(null,t.t5));case 18:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})}],[{key:"address",get:function(){return{fromHex:function(t){return C.a.isHex(t)?C.a.crypto.getBase58CheckAddress(C.a.code.hexStr2byteArray(t.replace(/^0x/,z.a))):t},toHex:function(t){return C.a.isHex(t)?t.toLowerCase().replace(/^0x/,z.a):C.a.code.byteArray2hexStr(C.a.crypto.decodeBase58Address(t)).toLowerCase()},fromPrivateKey:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{return C.a.crypto.pkToAddress(t,e)}catch(t){return!1}}}}},{key:"sha3",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(r?"0x":"")+Object(U.keccak256)(t.from(e,"utf-8")).toString().substring(2)}},{key:"toHex",value:function(t){if(C.a.isBoolean(t))return u.fromDecimal(+t);if(C.a.isBigNumber(t))return u.fromDecimal(t);if("object"===a()(t))return u.fromUtf8(JSON.stringify(t));if(C.a.isString(t)){if(/^(-|)0x/.test(t))return t;if(!isFinite(t)||/^\s*$/.test(t))return u.fromUtf8(t)}var e=u.fromDecimal(t);if("0xNaN"===e)throw new Error("The passed value is not convertible to a hex string");return e}},{key:"toUtf8",value:function(e){if(C.a.isHex(e))return e=e.replace(/^0x/,""),t.from(e,"hex").toString("utf8");throw new Error("The passed value is not a valid hex string")}},{key:"fromUtf8",value:function(e){if(!C.a.isString(e))throw new Error("The passed value is not a valid utf-8 string");return"0x"+t.from(e,"utf8").toString("hex")}},{key:"toAscii",value:function(t){if(C.a.isHex(t)){var e="",r=0,o=t.length;for("0x"===t.substring(0,2)&&(r=2);r<o;r+=2){var n=parseInt(t.substr(r,2),16);e+=String.fromCharCode(n)}return e}throw new Error("The passed value is not a valid hex string")}},{key:"fromAscii",value:function(e,r){if(!C.a.isString(e))throw new Error("The passed value is not a valid utf-8 string");return"0x"+t.from(e,"ascii").toString("hex").padEnd(r,"0")}},{key:"toDecimal",value:function(t){return u.toBigNumber(t).toNumber()}},{key:"fromDecimal",value:function(t){var e=u.toBigNumber(t),r=e.toString(16);return e.isLessThan(0)?"-0x"+r.substr(1):"0x"+r}},{key:"fromSun",value:function(t){var e=u.toBigNumber(t).div(1e6);return C.a.isBigNumber(t)?e:e.toString(10)}},{key:"toSun",value:function(t){var e=u.toBigNumber(t).times(1e6);return C.a.isBigNumber(t)?e:e.toString(10)}},{key:"toBigNumber",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return C.a.isBigNumber(t)?t:C.a.isString(t)&&/^(-|)0x/.test(t)?new S.a(t.replace("0x",""),16):new S.a(t.toString(10),10)}},{key:"isAddress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!C.a.isString(t))return!1;if(42===t.length)try{return u.isAddress(C.a.crypto.getBase58CheckAddress(C.a.code.hexStr2byteArray(t)))}catch(t){return!1}try{return C.a.crypto.isAddressValid(t)}catch(t){return!1}}},{key:"createAccount",value:(r=n()(M.a.mark((function t(){var e;return M.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=C.a.accounts.generateAccount(),t.abrupt("return",e);case 2:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"createRandom",value:function(t){return C.a.accounts.generateRandom(t)}},{key:"fromMnemonic",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",o=C.a.accounts.generateAccountWithMnemonic(t,e,r);return o}}]),u}(O.a);A()(V,"providers",B.a),A()(V,"BigNumber",S.a),A()(V,"TransactionBuilder",k.a),A()(V,"Trx",R.a),A()(V,"Contract",N.a),A()(V,"Plugin",D.a),A()(V,"Event",j.a),A()(V,"version",T.a),A()(V,"utils",C.a)}.call(this,r(70).Buffer)},function(t,e,r){"use strict";r.d(e,"d",(function(){return o})),r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"e",(function(){return s}));var o=34,n="41",i=65,a=/^(41)/,s="m/44'/195'/0'/0/0"},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var o=r(71);function n(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,o(n.key),n)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var o=r(71);t.exports=function(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";function o(){var t=this;this._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.encode=function(e){for(var r,o,n,i,a,s,c,u="",l=0;l<e.length;)i=(r=e.charCodeAt(l++))>>2,a=(3&r)<<4|(o=e.charCodeAt(l++))>>4,s=(15&o)<<2|(n=e.charCodeAt(l++))>>6,c=63&n,isNaN(o)?s=c=64:isNaN(n)&&(c=64),u=u+t._keyStr.charAt(i)+t._keyStr.charAt(a)+t._keyStr.charAt(s)+t._keyStr.charAt(c);return u},this.encodeIgnoreUtf8=function(e){for(var r,o,n,i,a,s,c,u="",l=0;l<e.length;)i=(r=e[l++])>>2,a=(3&r)<<4|(o=e[l++])>>4,s=(15&o)<<2|(n=e[l++])>>6,c=63&n,isNaN(o)?s=c=64:isNaN(n)&&(c=64),u=u+t._keyStr.charAt(i)+t._keyStr.charAt(a)+t._keyStr.charAt(s)+t._keyStr.charAt(c);return u},this.decode=function(e){var r,o,n,i,a,s,c="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)r=t._keyStr.indexOf(e.charAt(u++))<<2|(i=t._keyStr.indexOf(e.charAt(u++)))>>4,o=(15&i)<<4|(a=t._keyStr.indexOf(e.charAt(u++)))>>2,n=(3&a)<<6|(s=t._keyStr.indexOf(e.charAt(u++))),c+=String.fromCharCode(r),64!=a&&(c+=String.fromCharCode(o)),64!=s&&(c+=String.fromCharCode(n));return t._utf8_decode(c)},this.decodeToByteArray=function(e){var r,o,n,i,a,s,c="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)r=t._keyStr.indexOf(e.charAt(u++))<<2|(i=t._keyStr.indexOf(e.charAt(u++)))>>4,o=(15&i)<<4|(a=t._keyStr.indexOf(e.charAt(u++)))>>2,n=(3&a)<<6|(s=t._keyStr.indexOf(e.charAt(u++))),c+=String.fromCharCode(r),64!=a&&(c+=String.fromCharCode(o)),64!=s&&(c+=String.fromCharCode(n));return t._out2ByteArray(c)},this._out2ByteArray=function(t){for(var e=new Array(t.length),r=0,o=0;r<t.length;)o=t.charCodeAt(r),e[r]=o,r++;return e},this._utf8_encode=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",r=0;r<t.length;r++){var o=t.charCodeAt(r);o<128?e+=String.fromCharCode(o):o>127&&o<2048?(e+=String.fromCharCode(o>>6|192),e+=String.fromCharCode(63&o|128)):(e+=String.fromCharCode(o>>12|224),e+=String.fromCharCode(o>>6&63|128),e+=String.fromCharCode(63&o|128))}return e},this._utf8_decode=function(t){for(var e="",r=0,o=0,n=0,i=0;r<t.length;)(o=t.charCodeAt(r))<128?(e+=String.fromCharCode(o),r++):o>191&&o<224?(n=t.charCodeAt(r+1),e+=String.fromCharCode((31&o)<<6|63&n),r+=2):(n=t.charCodeAt(r+1),i=t.charCodeAt(r+2),e+=String.fromCharCode((15&o)<<12|(63&n)<<6|63&i),r+=3);return e}}function n(t){if("number"!=typeof t)throw new Error("Input must be a number");if(t<0||t>255)throw new Error("Input must be a byte");var e="";return e+="0123456789ABCDEF".charAt(t>>4),e+="0123456789ABCDEF".charAt(15&t)}function i(t){if("string"==typeof t)return t;for(var e="",r=0;r<t.length;r++){var o=t[r].toString(2),n=o.match(/^1+?(?=0)/);if(n&&8===o.length){for(var i=n[0].length,a=t[r].toString(2).slice(7-i),s=1;s<i;s++)a+=t[s+r].toString(2).slice(2);e+=String.fromCharCode(parseInt(a,2)),r+=i-1}else e+=String.fromCharCode(t[r])}return e}function a(t){for(var e=t.replace(/^0x/,"").split(""),r="",o=0;o<e.length/2;o++){var n="0x".concat(e[2*o]).concat(e[2*o+1]);r+=String.fromCharCode(n)}return r}function s(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r]);return e}function c(t){return(new o).decodeToByteArray(t)}function u(t){return(new o).encodeIgnoreUtf8(t)}r.r(e),r.d(e,"byte2hexStr",(function(){return n})),r.d(e,"bytesToString",(function(){return i})),r.d(e,"hextoString",(function(){return a})),r.d(e,"byteArray2hexStr",(function(){return s})),r.d(e,"base64DecodeFromString",(function(){return c})),r.d(e,"base64EncodeToString",(function(){return u}))},function(t,e,r){var o=e;o.utils=r(27),o.common=r(40),o.sha=r(150),o.ripemd=r(154),o.hmac=r(155),o.sha1=o.sha.sha1,o.sha256=o.sha.sha256,o.sha224=o.sha.sha224,o.sha384=o.sha.sha384,o.sha512=o.sha.sha512,o.ripemd160=o.ripemd.ripemd160},function(t,e,r){"use strict";var o=r(6),n=r.n(o),i=r(12),a=r.n(i),s=r(13),c=r.n(s),u=r(2),l=r.n(u),d=r(107),p=r.n(d),f=r(0),h=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"/";if(a()(this,t),!f.a.isValidURL(e))throw new Error("Invalid URL provided to HttpProvider");if(isNaN(r)||r<0)throw new Error("Invalid timeout duration provided");if(!f.a.isObject(i))throw new Error("Invalid headers object provided");e=e.replace(/\/+$/,""),this.host=e,this.timeout=r,this.user=o,this.password=n,this.headers=i,this.statusPage=s,this.instance=p.a.create({baseURL:e,timeout:r,headers:i,auth:o&&{user:o,password:n}})}var e;return c()(t,[{key:"setStatusPage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";this.statusPage=t}},{key:"isConnected",value:(e=n()(l.a.mark((function t(){var e,r=arguments;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:this.statusPage,t.abrupt("return",this.request(e).then((function(t){return f.a.hasProperties(t,"blockID","block_header")})).catch((function(){return!1})));case 2:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"request",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get";return r=r.toLowerCase(),this.instance.request({data:"post"==r&&Object.keys(e).length?e:null,params:"get"==r&&e,url:t,method:r}).then((function(t){return t.data}))}}]),t}();e.a={HttpProvider:h}},function(t,e,r){"use strict";var o=r(72),n=Object.prototype.toString;function i(t){return Array.isArray(t)}function a(t){return void 0===t}function s(t){return"[object ArrayBuffer]"===n.call(t)}function c(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===n.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}t.exports={isArray:i,isArrayBuffer:s,isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===n.call(t)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&s(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===n.call(t)},isFile:function(t){return"[object File]"===n.call(t)},isBlob:function(t){return"[object Blob]"===n.call(t)},isFunction:l,isStream:function(t){return c(t)&&l(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===n.call(t)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function t(){var e={};function r(r,o){u(e[o])&&u(r)?e[o]=t(e[o],r):u(r)?e[o]=t({},r):i(r)?e[o]=r.slice():e[o]=r}for(var o=0,n=arguments.length;o<n;o++)d(arguments[o],r);return e},extend:function(t,e,r){return d(e,(function(e,n){t[n]=r&&"function"==typeof e?o(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e){t.exports=function(t){return(e,...r)=>function(t,...e){return new Promise((r,o)=>{t(...e,(t,e)=>{t?o(t):r(e)})})}(e.bind(t),...r)}},,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;for(var r in e)void 0===t[r]&&(t[r]=e[r]);return t},t.exports=e.default,t.exports.default=e.default},function(t,e){function r(e){return t.exports=r="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},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},,function(t,e,r){"use strict";var o=e,n=r(29),i=r(37),a=r(83);o.assert=i,o.toArray=a.toArray,o.zero2=a.zero2,o.toHex=a.toHex,o.encode=a.encode,o.getNAF=function(t,e,r){var o=new Array(Math.max(t.bitLength(),r)+1);o.fill(0);for(var n=1<<e+1,i=t.clone(),a=0;a<o.length;a++){var s,c=i.andln(n-1);i.isOdd()?(s=c>(n>>1)-1?(n>>1)-c:c,i.isubn(s)):s=0,o[a]=s,i.iushrn(1)}return o},o.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var o,n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var a,s,c=t.andln(3)+n&3,u=e.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!==(o=t.andln(7)+n&7)&&5!==o||2!==u?c:-c,r[0].push(a),s=0==(1&u)?0:3!==(o=e.andln(7)+i&7)&&5!==o||2!==c?u:-u,r[1].push(s),2*n===a+1&&(n=1-n),2*i===s+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},o.cachedProperty=function(t,e,r){var o="_"+e;t.prototype[e]=function(){return void 0!==this[o]?this[o]:this[o]=r.call(this)}},o.parseBytes=function(t){return"string"==typeof t?o.toArray(t,"hex"):t},o.intFromLE=function(t){return new n(t,"hex","le")}},function(t,e,r){"use strict";!function(e){function r(t){return parseInt(t)===t}function o(t){if(!r(t.length))return!1;for(var e=0;e<t.length;e++)if(!r(t[e])||t[e]<0||t[e]>255)return!1;return!0}function n(t,e){if(t.buffer&&ArrayBuffer.isView(t)&&"Uint8Array"===t.name)return e&&(t=t.slice?t.slice():Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!o(t))throw new Error("Array contains invalid value: "+t);return new Uint8Array(t)}if(r(t.length)&&o(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function i(t){return new Uint8Array(t)}function a(t,e,r,o,n){null==o&&null==n||(t=t.slice?t.slice(o,n):Array.prototype.slice.call(t,o,n)),e.set(t,r)}var s,c={toBytes:function(t){var e=[],r=0;for(t=encodeURI(t);r<t.length;){var o=t.charCodeAt(r++);37===o?(e.push(parseInt(t.substr(r,2),16)),r+=2):e.push(o)}return n(e)},fromBytes:function(t){for(var e=[],r=0;r<t.length;){var o=t[r];o<128?(e.push(String.fromCharCode(o)),r++):o>191&&o<224?(e.push(String.fromCharCode((31&o)<<6|63&t[r+1])),r+=2):(e.push(String.fromCharCode((15&o)<<12|(63&t[r+1])<<6|63&t[r+2])),r+=3)}return e.join("")}},u=(s="0123456789abcdef",{toBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},fromBytes:function(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];e.push(s[(240&o)>>4]+s[15&o])}return e.join("")}}),l={16:10,24:12,32:14},d=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],p=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],g=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],A=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],M=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],B=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],C=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(t){for(var e=[],r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return e}var I=function(t){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:n(t,!0)}),this._prepare()};I.prototype._prepare=function(){var t=l[this.key.length];if(null==t)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var e=0;e<=t;e++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,o=4*(t+1),n=this.key.length/4,i=S(this.key);for(e=0;e<n;e++)r=e>>2,this._Ke[r][e%4]=i[e],this._Kd[t-r][e%4]=i[e];for(var a,s=0,c=n;c<o;){if(a=i[n-1],i[0]^=p[a>>16&255]<<24^p[a>>8&255]<<16^p[255&a]<<8^p[a>>24&255]^d[s]<<24,s+=1,8!=n)for(e=1;e<n;e++)i[e]^=i[e-1];else{for(e=1;e<n/2;e++)i[e]^=i[e-1];a=i[n/2-1],i[n/2]^=p[255&a]^p[a>>8&255]<<8^p[a>>16&255]<<16^p[a>>24&255]<<24;for(e=n/2+1;e<n;e++)i[e]^=i[e-1]}for(e=0;e<n&&c<o;)u=c>>2,f=c%4,this._Ke[u][f]=i[e],this._Kd[t-u][f]=i[e++],c++}for(var u=1;u<t;u++)for(var f=0;f<4;f++)a=this._Kd[u][f],this._Kd[u][f]=M[a>>24&255]^B[a>>16&255]^C[a>>8&255]^E[255&a]},I.prototype.encrypt=function(t){if(16!=t.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var e=this._Ke.length-1,r=[0,0,0,0],o=S(t),n=0;n<4;n++)o[n]^=this._Ke[0][n];for(var a=1;a<e;a++){for(n=0;n<4;n++)r[n]=h[o[n]>>24&255]^g[o[(n+1)%4]>>16&255]^y[o[(n+2)%4]>>8&255]^m[255&o[(n+3)%4]]^this._Ke[a][n];o=r.slice()}var s,c=i(16);for(n=0;n<4;n++)s=this._Ke[e][n],c[4*n]=255&(p[o[n]>>24&255]^s>>24),c[4*n+1]=255&(p[o[(n+1)%4]>>16&255]^s>>16),c[4*n+2]=255&(p[o[(n+2)%4]>>8&255]^s>>8),c[4*n+3]=255&(p[255&o[(n+3)%4]]^s);return c},I.prototype.decrypt=function(t){if(16!=t.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var e=this._Kd.length-1,r=[0,0,0,0],o=S(t),n=0;n<4;n++)o[n]^=this._Kd[0][n];for(var a=1;a<e;a++){for(n=0;n<4;n++)r[n]=b[o[n]>>24&255]^v[o[(n+3)%4]>>16&255]^A[o[(n+2)%4]>>8&255]^w[255&o[(n+1)%4]]^this._Kd[a][n];o=r.slice()}var s,c=i(16);for(n=0;n<4;n++)s=this._Kd[e][n],c[4*n]=255&(f[o[n]>>24&255]^s>>24),c[4*n+1]=255&(f[o[(n+3)%4]>>16&255]^s>>16),c[4*n+2]=255&(f[o[(n+2)%4]>>8&255]^s>>8),c[4*n+3]=255&(f[255&o[(n+1)%4]]^s);return c};var O=function(t){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new I(t)};O.prototype.encrypt=function(t){if((t=n(t)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=i(t.length),r=i(16),o=0;o<t.length;o+=16)a(t,r,0,o,o+16),a(r=this._aes.encrypt(r),e,o);return e},O.prototype.decrypt=function(t){if((t=n(t)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=i(t.length),r=i(16),o=0;o<t.length;o+=16)a(t,r,0,o,o+16),a(r=this._aes.decrypt(r),e,o);return e};var T=function(t,e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else e=i(16);this._lastCipherblock=n(e,!0),this._aes=new I(t)};T.prototype.encrypt=function(t){if((t=n(t)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=i(t.length),r=i(16),o=0;o<t.length;o+=16){a(t,r,0,o,o+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),a(this._lastCipherblock,e,o)}return e},T.prototype.decrypt=function(t){if((t=n(t)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=i(t.length),r=i(16),o=0;o<t.length;o+=16){a(t,r,0,o,o+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)e[o+s]=r[s]^this._lastCipherblock[s];a(t,this._lastCipherblock,0,o,o+16)}return e};var _=function(t,e,r){if(!(this instanceof _))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 size)")}else e=i(16);r||(r=1),this.segmentSize=r,this._shiftRegister=n(e,!0),this._aes=new I(t)};_.prototype.encrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var e,r=n(t,!0),o=0;o<r.length;o+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[o+i]^=e[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(r,this._shiftRegister,16-this.segmentSize,o,o+this.segmentSize)}return r},_.prototype.decrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var e,r=n(t,!0),o=0;o<r.length;o+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[o+i]^=e[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(t,this._shiftRegister,16-this.segmentSize,o,o+this.segmentSize)}return r};var x=function(t,e){if(!(this instanceof x))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else e=i(16);this._lastPrecipher=n(e,!0),this._lastPrecipherIndex=16,this._aes=new I(t)};x.prototype.encrypt=function(t){for(var e=n(t,!0),r=0;r<e.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),e[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return e},x.prototype.decrypt=x.prototype.encrypt;var F=function(t){if(!(this instanceof F))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=i(16),this.setValue(t)):this.setBytes(t)};F.prototype.setValue=function(t){if("number"!=typeof t||parseInt(t)!=t)throw new Error("invalid counter value (must be an integer)");for(var e=15;e>=0;--e)this._counter[e]=t%256,t>>=8},F.prototype.setBytes=function(t){if(16!=(t=n(t,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},F.prototype.increment=function(){for(var t=15;t>=0;t--){if(255!==this._counter[t]){this._counter[t]++;break}this._counter[t]=0}};var P=function(t,e){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",e instanceof F||(e=new F(e)),this._counter=e,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new I(t)};P.prototype.encrypt=function(t){for(var e=n(t,!0),r=0;r<e.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),e[r]^=this._remainingCounter[this._remainingCounterIndex++];return e},P.prototype.decrypt=P.prototype.encrypt;var k={AES:I,Counter:F,ModeOfOperation:{ecb:O,cbc:T,cfb:_,ofb:x,ctr:P},utils:{hex:u,utf8:c},padding:{pkcs7:{pad:function(t){var e=16-(t=n(t,!0)).length%16,r=i(t.length+e);a(t,r);for(var o=t.length;o<r.length;o++)r[o]=e;return r},strip:function(t){if((t=n(t,!0)).length<16)throw new Error("PKCS#7 invalid length");var e=t[t.length-1];if(e>16)throw new Error("PKCS#7 padding byte out of range");for(var r=t.length-e,o=0;o<e;o++)if(t[r+o]!==e)throw new Error("PKCS#7 invalid padding byte");var s=i(r);return a(t,s,0,0,r),s}}},_arrayTest:{coerceArray:n,createArray:i,copyArray:a}};t.exports=k}()},function(t,e,r){(function(t){var r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){t!=Array.prototype&&t!=Object.prototype&&(t[e]=r.value)},o="undefined"!=typeof window&&window===this?this:void 0!==t&&null!=t?t:this;function n(){n=function(){},o.Symbol||(o.Symbol=s)}function i(t,e){this.a=t,r(this,"description",{configurable:!0,writable:!0,value:e})}i.prototype.toString=function(){return this.a};var a,s=(a=0,function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new i("jscomp_symbol_"+(e||"")+"_"+a++,e)});function c(){n();var t=o.Symbol.iterator;t||(t=o.Symbol.iterator=o.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&r(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return function(t){return c(),(t={next:t})[o.Symbol.iterator]=function(){return this},t}(function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}(this))}}),c=function(){}}!function(t,e){if(e){var n=o;t=t.split(".");for(var i=0;i<t.length-1;i++){var a=t[i];a in n||(n[a]={}),n=n[a]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&r(n,t,{configurable:!0,writable:!0,value:e})}}("Array.prototype.entries",(function(t){return t||function(){return function(t,e){c(),t instanceof String&&(t+="");var r=0,o={next:function(){if(r<t.length){var n=r++;return{value:e(n,t[n]),done:!1}}return o.next=function(){return{done:!0,value:void 0}},o.next()}};return o[Symbol.iterator]=function(){return o},o}(this,(function(t,e){return[t,e]}))}}));var u=this||self;function l(t,e,r){t=t.split("."),r=r||u,t[0]in r||void 0===r.execScript||r.execScript("var "+t[0]);for(var o;t.length&&(o=t.shift());)t.length||void 0===e?r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}:r[o]=e}function d(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var r=Object.prototype.toString.call(t);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function p(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var f="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var h=Array.prototype.forEach?function(t,e){Array.prototype.forEach.call(t,e,void 0)}:function(t,e){for(var r=t.length,o="string"==typeof t?t.split(""):t,n=0;n<r;n++)n in o&&e.call(void 0,o[n],n,t)},g=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var r=t.length,o=Array(r),n="string"==typeof t?t.split(""):t,i=0;i<r;i++)i in n&&(o[i]=e.call(void 0,n[i],i,t));return o};function y(t,e,r){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,r)}function m(t,e,r,o){var n="Assertion failed";if(r){n+=": "+r;var i=o}else t&&(n+=": "+t,i=e);throw Error(n,i||[])}function b(t,e,r){for(var o=[],n=2;n<arguments.length;++n)o[n-2]=arguments[n];return t||m("",null,e,o),t}function v(t,e){for(var r=[],o=1;o<arguments.length;++o)r[o-1]=arguments[o];throw Error("Failure"+(t?": "+t:""),r)}function A(t,e,r,o){for(var n=[],i=3;i<arguments.length;++i)n[i-3]=arguments[i];t instanceof e||m("Expected instanceof %s but got %s.",[w(e),w(t)],r,n)}function w(t){return t instanceof Function?t.displayName||t.name||"unknown type name":t instanceof Object?t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t):null===t?"null":typeof t}function M(t,e){if(this.c=t,this.b=e,this.a={},this.arrClean=!0,0<this.c.length){for(t=0;t<this.c.length;t++){var r=(e=this.c[t])[0];this.a[r.toString()]=new S(r,e[1])}this.arrClean=!0}}function B(t){this.a=0,this.b=t}function C(t,e){return t.b?(e.a||(e.a=new t.b(e.value)),e.a):e.value}function E(t){t=t.a;var e,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}function S(t,e){this.key=t,this.value=e,this.a=void 0}function I(t){if(8192>=t.length)return String.fromCharCode.apply(null,t);for(var e="",r=0;r<t.length;r+=8192)e+=String.fromCharCode.apply(null,y(t,r,r+8192));return e}l("jspb.Map",M,void 0),M.prototype.g=function(){if(this.arrClean){if(this.b){var t,e=this.a;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=e[t].a;r&&r.g()}}}else{for(this.c.length=0,(e=E(this)).sort(),t=0;t<e.length;t++){var o=this.a[e[t]];(r=o.a)&&r.g(),this.c.push([o.key,o.value])}this.arrClean=!0}return this.c},M.prototype.toArray=M.prototype.g,M.prototype.Mc=function(t,e){for(var r=this.g(),o=[],n=0;n<r.length;n++){var i=this.a[r[n][0].toString()];C(this,i);var a=i.a;a?(b(e),o.push([i.key,e(t,a)])):o.push([i.key,i.value])}return o},M.prototype.toObject=M.prototype.Mc,M.fromObject=function(t,e,r){e=new M([],e);for(var o=0;o<t.length;o++){var n=t[o][0],i=r(t[o][1]);e.set(n,i)}return e},B.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(B.prototype[Symbol.iterator]=function(){return this}),M.prototype.Jb=function(){return E(this).length},M.prototype.getLength=M.prototype.Jb,M.prototype.clear=function(){this.a={},this.arrClean=!1},M.prototype.clear=M.prototype.clear,M.prototype.Cb=function(t){t=t.toString();var e=this.a.hasOwnProperty(t);return delete this.a[t],this.arrClean=!1,e},M.prototype.del=M.prototype.Cb,M.prototype.Eb=function(){var t=[],e=E(this);e.sort();for(var r=0;r<e.length;r++){var o=this.a[e[r]];t.push([o.key,o.value])}return t},M.prototype.getEntryList=M.prototype.Eb,M.prototype.entries=function(){var t=[],e=E(this);e.sort();for(var r=0;r<e.length;r++){var o=this.a[e[r]];t.push([o.key,C(this,o)])}return new B(t)},M.prototype.entries=M.prototype.entries,M.prototype.keys=function(){var t=[],e=E(this);e.sort();for(var r=0;r<e.length;r++)t.push(this.a[e[r]].key);return new B(t)},M.prototype.keys=M.prototype.keys,M.prototype.values=function(){var t=[],e=E(this);e.sort();for(var r=0;r<e.length;r++)t.push(C(this,this.a[e[r]]));return new B(t)},M.prototype.values=M.prototype.values,M.prototype.forEach=function(t,e){var r=E(this);r.sort();for(var o=0;o<r.length;o++){var n=this.a[r[o]];t.call(e,C(this,n),n.key,this)}},M.prototype.forEach=M.prototype.forEach,M.prototype.set=function(t,e){var r=new S(t);return this.b?(r.a=e,r.value=e.g()):r.value=e,this.a[t.toString()]=r,this.arrClean=!1,this},M.prototype.set=M.prototype.set,M.prototype.get=function(t){if(t=this.a[t.toString()])return C(this,t)},M.prototype.get=M.prototype.get,M.prototype.has=function(t){return t.toString()in this.a},M.prototype.has=M.prototype.has,M.prototype.Jc=function(t,e,r,o,n){var i=E(this);i.sort();for(var a=0;a<i.length;a++){var s=this.a[i[a]];e.Va(t),r.call(e,1,s.key),this.b?o.call(e,2,C(this,s),n):o.call(e,2,s.value),e.Ya()}},M.prototype.serializeBinary=M.prototype.Jc,M.deserializeBinary=function(t,e,r,o,n,i,a){for(;e.oa()&&!e.bb();){var s=e.c;1==s?i=r.call(e):2==s&&(t.b?(b(n),a||(a=new t.b),o.call(e,a,n)):a=o.call(e))}b(null!=i),b(null!=a),t.set(i,a)};var O={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},T={"'":"\\'"},_={},x=null;function F(t,e){void 0===e&&(e=0),k(),e=_[e];for(var r=[],o=0;o<t.length;o+=3){var n=t[o],i=o+1<t.length,a=i?t[o+1]:0,s=o+2<t.length,c=s?t[o+2]:0,u=n>>2;n=(3&n)<<4|a>>4,a=(15&a)<<2|c>>6,c&=63,s||(c=64,i||(a=64)),r.push(e[u],e[n],e[a]||"",e[c]||"")}return r.join("")}function P(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):-1!="=.".indexOf(t[e-1])&&(r=-1!="=.".indexOf(t[e-2])?r-2:r-1);var o=new Uint8Array(r),n=0;return function(t,e){function r(e){for(;o<t.length;){var r=t.charAt(o++),n=x[r];if(null!=n)return n;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return e}k();for(var o=0;;){var n=r(-1),i=r(0),a=r(64),s=r(64);if(64===s&&-1===n)break;e(n<<2|i>>4),64!=a&&(e(i<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,(function(t){o[n++]=t})),o.subarray(0,n)}function k(){if(!x){x={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=t.concat(e[r].split(""));_[r]=o;for(var n=0;n<o.length;n++){var i=o[n];void 0===x[i]&&(x[i]=n)}}}}l("jspb.ConstBinaryMessage",(function(){}),void 0),l("jspb.BinaryMessage",(function(){}),void 0),l("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),l("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),l("jspb.BinaryConstants.FieldTypeToWireType",(function(t){switch(t){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}}),void 0),l("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),l("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),l("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),l("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),l("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),l("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),l("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),l("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),l("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),l("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),l("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),l("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),l("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),l("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),l("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var R=0,N=0;function D(t){var e=t>>>0;t=Math.floor((t-e)/4294967296)>>>0,R=e,N=t}function j(t){var e=0>t,r=(t=Math.abs(t))>>>0;t=Math.floor((t-r)/4294967296),t>>>=0,e&&(t=~t>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++t&&(t=0))),R=r,N=t}function W(t){var e=0>t;D(t=2*Math.abs(t)),t=R;var r=N;e&&(0==t?0==r?r=t=4294967295:(r--,t=4294967295):t--),R=t,N=r}function U(t){var e=0>t?1:0;if(0===(t=e?-t:t))0<1/t?R=N=0:(N=0,R=2147483648);else if(isNaN(t))N=0,R=2147483647;else if(34028234663852886e22<t)N=0,R=(e<<31|2139095040)>>>0;else if(11754943508222875e-54>t)t=Math.round(t/Math.pow(2,-149)),N=0,R=(e<<31|t)>>>0;else{var r=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-r),16777216<=(t=Math.round(8388608*t))&&++r,N=0,R=(e<<31|r+127<<23|8388607&t)>>>0}}function z(t){var e=0>t?1:0;if(0===(t=e?-t:t))N=0<1/t?0:2147483648,R=0;else if(isNaN(t))N=2147483647,R=4294967295;else if(17976931348623157e292<t)N=(e<<31|2146435072)>>>0,R=0;else if(22250738585072014e-324>t)t/=Math.pow(2,-1074),N=(e<<31|t/4294967296)>>>0,R=t>>>0;else{var r=t,o=0;if(2<=r)for(;2<=r&&1023>o;)o++,r/=2;else for(;1>r&&-1022<o;)r*=2,o--;t*=Math.pow(2,-o),N=(e<<31|o+1023<<20|1048576*t&1048575)>>>0,R=4503599627370496*t>>>0}}function L(t){var e=t.charCodeAt(4),r=t.charCodeAt(5),o=t.charCodeAt(6),n=t.charCodeAt(7);R=t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)>>>0,N=e+(r<<8)+(o<<16)+(n<<24)>>>0}function V(t,e){return 4294967296*e+(t>>>0)}function G(t,e){var r=2147483648&e;return r&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=V(t,e),r?-t:t}function H(t,e,r){var o=e>>31;return r(t<<1^o,(e<<1|t>>>31)^o)}function K(t,e){return q(t,e,G)}function q(t,e,r){var o=-(1&t);return r((t>>>1|e<<31)^o,e>>>1^o)}function $(t){var e=2*(t>>31)+1,r=t>>>23&255;return t&=8388607,255==r?t?NaN:1/0*e:0==r?e*Math.pow(2,-149)*t:e*Math.pow(2,r-150)*(t+Math.pow(2,23))}function Z(t,e){var r=2*(e>>31)+1,o=e>>>20&2047;return t=4294967296*(1048575&e)+t,2047==o?t?NaN:1/0*r:0==o?r*Math.pow(2,-1074)*t:r*Math.pow(2,o-1075)*(t+4503599627370496)}function J(t,e){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)}function Y(t,e){function r(t,e){return t=t?String(t):"",e?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+V(t,e);var o=(t>>>24|e<<8)>>>0&16777215;return t=(16777215&t)+6777216*o+6710656*(e=e>>16&65535),o+=8147497*e,e*=2,1e7<=t&&(o+=Math.floor(t/1e7),t%=1e7),1e7<=o&&(e+=Math.floor(o/1e7),o%=1e7),r(e,0)+r(o,e)+r(t,1)}function Q(t,e){var r=2147483648&e;return r&&(e=~e+(0==(t=1+~t>>>0)?1:0)>>>0),t=Y(t,e),r?"-"+t:t}function X(t,e){L(t),t=R;var r=N;return e?Q(t,r):Y(t,r)}function tt(t){function e(t,e){for(var r=0;8>r&&(1!==t||0<e);r++)e=t*o[r]+e,o[r]=255&e,e>>>=8}b(0<t.length);var r=!1;"-"===t[0]&&(r=!0,t=t.slice(1));for(var o=[0,0,0,0,0,0,0,0],n=0;n<t.length;n++)e(10,t.charCodeAt(n)-48);return r&&(function(){for(var t=0;8>t;t++)o[t]=255&~o[t]}(),e(1,1)),I(o)}function et(t){return String.fromCharCode(10>t?48+t:87+t)}function rt(t){return 97<=t?t-97+10:t-48}function ot(t,e,r,o,n){var i=0;if(128>o)for(;e<r&&t[e++]==o;)i++,e+=n;else for(;e<r;){for(var a=o;128<a;){if(t[e++]!=(127&a|128))return i;a>>=7}if(t[e++]!=a)break;i++,e+=n}return i}function nt(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?P(t):t instanceof Uint8Array?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):(v("Type not convertible to Uint8Array."),new Uint8Array(0))}function it(t,e,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,t&&this.H(t,e,r)}l("jspb.utils.getSplit64Low",(function(){return R}),void 0),l("jspb.utils.getSplit64High",(function(){return N}),void 0),l("jspb.utils.splitUint64",D,void 0),l("jspb.utils.splitInt64",j,void 0),l("jspb.utils.splitZigzag64",W,void 0),l("jspb.utils.splitFloat32",U,void 0),l("jspb.utils.splitFloat64",z,void 0),l("jspb.utils.splitHash64",L,void 0),l("jspb.utils.joinUint64",V,void 0),l("jspb.utils.joinInt64",G,void 0),l("jspb.utils.toZigzag64",H,void 0),l("jspb.utils.joinZigzag64",K,void 0),l("jspb.utils.fromZigzag64",q,void 0),l("jspb.utils.joinFloat32",$,void 0),l("jspb.utils.joinFloat64",Z,void 0),l("jspb.utils.joinHash64",J,void 0),l("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),l("jspb.utils.joinUnsignedDecimalString",Y,void 0),l("jspb.utils.joinSignedDecimalString",Q,void 0),l("jspb.utils.hash64ToDecimalString",X,void 0),l("jspb.utils.hash64ArrayToDecimalStrings",(function(t,e){for(var r=Array(t.length),o=0;o<t.length;o++)r[o]=X(t[o],e);return r}),void 0),l("jspb.utils.decimalStringToHash64",tt,void 0),l("jspb.utils.splitDecimalString",(function(t){L(tt(t))}),void 0),l("jspb.utils.hash64ToHexString",(function(t){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var o=t.charCodeAt(7-r);e[2*r+2]=et(o>>4),e[2*r+3]=et(15&o)}return e.join("")}),void 0),l("jspb.utils.hexStringToHash64",(function(t){b(18==(t=t.toLowerCase()).length),b("0"==t[0]),b("x"==t[1]);for(var e="",r=0;8>r;r++)e=String.fromCharCode(16*rt(t.charCodeAt(2*r+2))+rt(t.charCodeAt(2*r+3)))+e;return e}),void 0),l("jspb.utils.hash64ToNumber",(function(t,e){L(t),t=R;var r=N;return e?G(t,r):V(t,r)}),void 0),l("jspb.utils.numberToHash64",(function(t){return j(t),J(R,N)}),void 0),l("jspb.utils.countVarints",(function(t,e,r){for(var o=0,n=e;n<r;n++)o+=t[n]>>7;return r-e-o}),void 0),l("jspb.utils.countVarintFields",(function(t,e,r,o){var n=0;if(128>(o*=8))for(;e<r&&t[e++]==o;)for(n++;;){var i=t[e++];if(0==(128&i))break}else for(;e<r;){for(i=o;128<i;){if(t[e]!=(127&i|128))return n;e++,i>>=7}if(t[e++]!=i)break;for(n++;0!=(128&(i=t[e++])););}return n}),void 0),l("jspb.utils.countFixed32Fields",(function(t,e,r,o){return ot(t,e,r,8*o+5,4)}),void 0),l("jspb.utils.countFixed64Fields",(function(t,e,r,o){return ot(t,e,r,8*o+1,8)}),void 0),l("jspb.utils.countDelimitedFields",(function(t,e,r,o){var n=0;for(o=8*o+2;e<r;){for(var i=o;128<i;){if(t[e++]!=(127&i|128))return n;i>>=7}if(t[e++]!=i)break;n++;for(var a=0,s=1;a+=(127&(i=t[e++]))*s,s*=128,0!=(128&i););e+=a}return n}),void 0),l("jspb.utils.debugBytesToTextFormat",(function(t){var e='"';if(t){t=nt(t);for(var r=0;r<t.length;r++)e+="\\x",16>t[r]&&(e+="0"),e+=t[r].toString(16)}return e+'"'}),void 0),l("jspb.utils.debugScalarToTextFormat",(function(t){if("string"==typeof t){t=String(t);for(var e=['"'],r=0;r<t.length;r++){var o,n=t.charAt(r),i=n.charCodeAt(0),a=r+1;(o=O[n])||(31<i&&127>i||((i=n)in T?n=T[i]:i in O?n=T[i]=O[i]:(31<(o=i.charCodeAt(0))&&127>o?n=i:(256>o?(n="\\x",(16>o||256<o)&&(n+="0")):(n="\\u",4096>o&&(n+="0")),n+=o.toString(16).toUpperCase()),n=T[i]=n)),o=n),e[a]=o}e.push('"'),t=e.join("")}else t=t.toString();return t}),void 0),l("jspb.utils.stringToByteArray",(function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var o=t.charCodeAt(r);if(255<o)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=o}return e}),void 0),l("jspb.utils.byteSourceToUint8Array",nt,void 0),l("jspb.BinaryDecoder",it,void 0);var at=[];function st(t,e,r){if(at.length){var o=at.pop();return t&&o.H(t,e,r),o}return new it(t,e,r)}function ct(t,e,r){this.a=st(t,e,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}it.getInstanceCacheLength=function(){return at.length},it.alloc=st,it.prototype.Ca=function(){this.clear(),100>at.length&&at.push(this)},it.prototype.free=it.prototype.Ca,it.prototype.clone=function(){return st(this.b,this.h,this.c-this.h)},it.prototype.clone=it.prototype.clone,it.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},it.prototype.clear=it.prototype.clear,it.prototype.Y=function(){return this.b},it.prototype.getBuffer=it.prototype.Y,it.prototype.H=function(t,e,r){this.b=nt(t),this.h=void 0!==e?e:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},it.prototype.setBlock=it.prototype.H,it.prototype.Db=function(){return this.c},it.prototype.getEnd=it.prototype.Db,it.prototype.setEnd=function(t){this.c=t},it.prototype.setEnd=it.prototype.setEnd,it.prototype.reset=function(){this.a=this.h},it.prototype.reset=it.prototype.reset,it.prototype.B=function(){return this.a},it.prototype.getCursor=it.prototype.B,it.prototype.Ma=function(t){this.a=t},it.prototype.setCursor=it.prototype.Ma,it.prototype.advance=function(t){this.a+=t,b(this.a<=this.c)},it.prototype.advance=it.prototype.advance,it.prototype.ya=function(){return this.a==this.c},it.prototype.atEnd=it.prototype.ya,it.prototype.Qb=function(){return this.a>this.c},it.prototype.pastEnd=it.prototype.Qb,it.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},it.prototype.getError=it.prototype.getError,it.prototype.w=function(t){for(var e=128,r=0,o=0,n=0;4>n&&128<=e;n++)r|=(127&(e=this.b[this.a++]))<<7*n;if(128<=e&&(r|=(127&(e=this.b[this.a++]))<<28,o|=(127&e)>>4),128<=e)for(n=0;5>n&&128<=e;n++)o|=(127&(e=this.b[this.a++]))<<7*n+3;if(128>e)return t(r>>>0,o>>>0);v("Failed to read varint, encoding is invalid."),this.v=!0},it.prototype.readSplitVarint64=it.prototype.w,it.prototype.ea=function(t){return this.w((function(e,r){return q(e,r,t)}))},it.prototype.readSplitZigzagVarint64=it.prototype.ea,it.prototype.ta=function(t){var e=this.b,r=this.a;this.a+=8;for(var o=0,n=0,i=r+7;i>=r;i--)o=o<<8|e[i],n=n<<8|e[i+4];return t(o,n)},it.prototype.readSplitFixed64=it.prototype.ta,it.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},it.prototype.skipVarint=it.prototype.kb,it.prototype.mb=function(t){for(;128<t;)this.a--,t>>>=7;this.a--},it.prototype.unskipVarint=it.prototype.mb,it.prototype.o=function(){var t=this.b,e=t[this.a],r=127&e;return 128>e?(this.a+=1,b(this.a<=this.c),r):(r|=(127&(e=t[this.a+1]))<<7,128>e?(this.a+=2,b(this.a<=this.c),r):(r|=(127&(e=t[this.a+2]))<<14,128>e?(this.a+=3,b(this.a<=this.c),r):(r|=(127&(e=t[this.a+3]))<<21,128>e?(this.a+=4,b(this.a<=this.c),r):(r|=(15&(e=t[this.a+4]))<<28,128>e?(this.a+=5,b(this.a<=this.c),r>>>0):(this.a+=5,128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&b(!1),b(this.a<=this.c),r)))))},it.prototype.readUnsignedVarint32=it.prototype.o,it.prototype.da=function(){return~~this.o()},it.prototype.readSignedVarint32=it.prototype.da,it.prototype.O=function(){return this.o().toString()},it.prototype.Ea=function(){return this.da().toString()},it.prototype.readSignedVarint32String=it.prototype.Ea,it.prototype.Ia=function(){var t=this.o();return t>>>1^-(1&t)},it.prototype.readZigzagVarint32=it.prototype.Ia,it.prototype.Ga=function(){return this.w(V)},it.prototype.readUnsignedVarint64=it.prototype.Ga,it.prototype.Ha=function(){return this.w(Y)},it.prototype.readUnsignedVarint64String=it.prototype.Ha,it.prototype.sa=function(){return this.w(G)},it.prototype.readSignedVarint64=it.prototype.sa,it.prototype.Fa=function(){return this.w(Q)},it.prototype.readSignedVarint64String=it.prototype.Fa,it.prototype.Ja=function(){return this.w(K)},it.prototype.readZigzagVarint64=it.prototype.Ja,it.prototype.fb=function(){return this.ea(J)},it.prototype.readZigzagVarintHash64=it.prototype.fb,it.prototype.Ka=function(){return this.ea(Q)},it.prototype.readZigzagVarint64String=it.prototype.Ka,it.prototype.Gc=function(){var t=this.b[this.a];return this.a+=1,b(this.a<=this.c),t},it.prototype.readUint8=it.prototype.Gc,it.prototype.Ec=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),t<<0|e<<8},it.prototype.readUint16=it.prototype.Ec,it.prototype.m=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],o=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),(t<<0|e<<8|r<<16|o<<24)>>>0},it.prototype.readUint32=it.prototype.m,it.prototype.ga=function(){return V(this.m(),this.m())},it.prototype.readUint64=it.prototype.ga,it.prototype.ha=function(){return Y(this.m(),this.m())},it.prototype.readUint64String=it.prototype.ha,it.prototype.Xb=function(){var t=this.b[this.a];return this.a+=1,b(this.a<=this.c),t<<24>>24},it.prototype.readInt8=it.prototype.Xb,it.prototype.Vb=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,b(this.a<=this.c),(t<<0|e<<8)<<16>>16},it.prototype.readInt16=it.prototype.Vb,it.prototype.P=function(){var t=this.b[this.a],e=this.b[this.a+1],r=this.b[this.a+2],o=this.b[this.a+3];return this.a+=4,b(this.a<=this.c),t<<0|e<<8|r<<16|o<<24},it.prototype.readInt32=it.prototype.P,it.prototype.ba=function(){return G(this.m(),this.m())},it.prototype.readInt64=it.prototype.ba,it.prototype.ca=function(){return Q(this.m(),this.m())},it.prototype.readInt64String=it.prototype.ca,it.prototype.aa=function(){return $(this.m())},it.prototype.readFloat=it.prototype.aa,it.prototype.Z=function(){return Z(this.m(),this.m())},it.prototype.readDouble=it.prototype.Z,it.prototype.pa=function(){return!!this.b[this.a++]},it.prototype.readBool=it.prototype.pa,it.prototype.ra=function(){return this.da()},it.prototype.readEnum=it.prototype.ra,it.prototype.fa=function(t){var e=this.b,r=this.a;t=r+t;for(var o=[],n="";r<t;){var i=e[r++];if(128>i)o.push(i);else{if(192>i)continue;if(224>i){var a=e[r++];o.push((31&i)<<6|63&a)}else if(240>i){a=e[r++];var s=e[r++];o.push((15&i)<<12|(63&a)<<6|63&s)}else if(248>i){i=(7&i)<<18|(63&(a=e[r++]))<<12|(63&(s=e[r++]))<<6|63&e[r++],i-=65536,o.push(55296+(i>>10&1023),56320+(1023&i))}}8192<=o.length&&(n+=String.fromCharCode.apply(null,o),o.length=0)}return n+=I(o),this.a=r,n},it.prototype.readString=it.prototype.fa,it.prototype.Dc=function(){var t=this.o();return this.fa(t)},it.prototype.readStringWithLength=it.prototype.Dc,it.prototype.qa=function(t){if(0>t||this.a+t>this.b.length)return this.v=!0,v("Invalid byte length!"),new Uint8Array(0);var e=this.b.subarray(this.a,this.a+t);return this.a+=t,b(this.a<=this.c),e},it.prototype.readBytes=it.prototype.qa,it.prototype.ia=function(){return this.w(J)},it.prototype.readVarintHash64=it.prototype.ia,it.prototype.$=function(){var t=this.b,e=this.a,r=t[e],o=t[e+1],n=t[e+2],i=t[e+3],a=t[e+4],s=t[e+5],c=t[e+6];return t=t[e+7],this.a+=8,String.fromCharCode(r,o,n,i,a,s,c,t)},it.prototype.readFixedHash64=it.prototype.$,l("jspb.BinaryReader",ct,void 0);var ut=[];function lt(t,e,r){if(ut.length){var o=ut.pop();return t&&o.a.H(t,e,r),o}return new ct(t,e,r)}function dt(t,e){b(2==t.b);var r=t.a.o();r=t.a.B()+r;for(var o=[];t.a.B()<r;)o.push(e.call(t.a));return o}function pt(t,e,r,o,n){this.ma=t,this.Ba=e,this.la=r,this.Na=o,this.na=n}function ft(t,e,r,o,n,i){this.Za=t,this.za=e,this.Aa=r,this.Wa=o,this.Ab=n,this.Nb=i}function ht(){}ct.clearInstanceCache=function(){ut=[]},ct.getInstanceCacheLength=function(){return ut.length},ct.alloc=lt,ct.prototype.zb=lt,ct.prototype.alloc=ct.prototype.zb,ct.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ut.length&&ut.push(this)},ct.prototype.free=ct.prototype.Ca,ct.prototype.Fb=function(){return this.O},ct.prototype.getFieldCursor=ct.prototype.Fb,ct.prototype.B=function(){return this.a.B()},ct.prototype.getCursor=ct.prototype.B,ct.prototype.Y=function(){return this.a.Y()},ct.prototype.getBuffer=ct.prototype.Y,ct.prototype.Hb=function(){return this.c},ct.prototype.getFieldNumber=ct.prototype.Hb,ct.prototype.Lb=function(){return this.b},ct.prototype.getWireType=ct.prototype.Lb,ct.prototype.Mb=function(){return 2==this.b},ct.prototype.isDelimited=ct.prototype.Mb,ct.prototype.bb=function(){return 4==this.b},ct.prototype.isEndGroup=ct.prototype.bb,ct.prototype.getError=function(){return this.h||this.a.getError()},ct.prototype.getError=ct.prototype.getError,ct.prototype.H=function(t,e,r){this.a.H(t,e,r),this.b=this.c=-1},ct.prototype.setBlock=ct.prototype.H,ct.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ct.prototype.reset=ct.prototype.reset,ct.prototype.advance=function(t){this.a.advance(t)},ct.prototype.advance=ct.prototype.advance,ct.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return v("Decoder hit an error"),!1;this.O=this.a.B();var t=this.a.o(),e=t>>>3;return 0!=(t&=7)&&5!=t&&1!=t&&2!=t&&3!=t&&4!=t?(v("Invalid wire type: %s (at position %s)",t,this.O),this.h=!0,!1):(this.c=e,this.b=t,!0)},ct.prototype.nextField=ct.prototype.oa,ct.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ct.prototype.unskipHeader=ct.prototype.Oa,ct.prototype.Lc=function(){var t=this.c;for(this.Oa();this.oa()&&this.c==t;)this.C();this.a.ya()||this.Oa()},ct.prototype.skipMatchingFields=ct.prototype.Lc,ct.prototype.lb=function(){0!=this.b?(v("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ct.prototype.skipVarintField=ct.prototype.lb,ct.prototype.gb=function(){if(2!=this.b)v("Invalid wire type for skipDelimitedField"),this.C();else{var t=this.a.o();this.a.advance(t)}},ct.prototype.skipDelimitedField=ct.prototype.gb,ct.prototype.hb=function(){5!=this.b?(v("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ct.prototype.skipFixed32Field=ct.prototype.hb,ct.prototype.ib=function(){1!=this.b?(v("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ct.prototype.skipFixed64Field=ct.prototype.ib,ct.prototype.jb=function(){for(var t=this.c;;){if(!this.oa()){v("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=t&&(v("Unmatched end-group tag"),this.h=!0);break}this.C()}},ct.prototype.skipGroup=ct.prototype.jb,ct.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:v("Invalid wire encoding for field.")}},ct.prototype.skipField=ct.prototype.C,ct.prototype.Hc=function(t,e){null===this.v&&(this.v={}),b(!this.v[t]),this.v[t]=e},ct.prototype.registerReadCallback=ct.prototype.Hc,ct.prototype.Ic=function(t){return b(null!==this.v),b(t=this.v[t]),t(this)},ct.prototype.runReadCallback=ct.prototype.Ic,ct.prototype.Yb=function(t,e){b(2==this.b);var r=this.a.c,o=this.a.o();o=this.a.B()+o,this.a.setEnd(o),e(t,this),this.a.Ma(o),this.a.setEnd(r)},ct.prototype.readMessage=ct.prototype.Yb,ct.prototype.Ub=function(t,e,r){b(3==this.b),b(this.c==t),r(e,this),this.h||4==this.b||(v("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ct.prototype.readGroup=ct.prototype.Ub,ct.prototype.Gb=function(){b(2==this.b);var t=this.a.o(),e=this.a.B(),r=e+t;return t=st(this.a.Y(),e,t),this.a.Ma(r),t},ct.prototype.getFieldDecoder=ct.prototype.Gb,ct.prototype.P=function(){return b(0==this.b),this.a.da()},ct.prototype.readInt32=ct.prototype.P,ct.prototype.Wb=function(){return b(0==this.b),this.a.Ea()},ct.prototype.readInt32String=ct.prototype.Wb,ct.prototype.ba=function(){return b(0==this.b),this.a.sa()},ct.prototype.readInt64=ct.prototype.ba,ct.prototype.ca=function(){return b(0==this.b),this.a.Fa()},ct.prototype.readInt64String=ct.prototype.ca,ct.prototype.m=function(){return b(0==this.b),this.a.o()},ct.prototype.readUint32=ct.prototype.m,ct.prototype.Fc=function(){return b(0==this.b),this.a.O()},ct.prototype.readUint32String=ct.prototype.Fc,ct.prototype.ga=function(){return b(0==this.b),this.a.Ga()},ct.prototype.readUint64=ct.prototype.ga,ct.prototype.ha=function(){return b(0==this.b),this.a.Ha()},ct.prototype.readUint64String=ct.prototype.ha,ct.prototype.zc=function(){return b(0==this.b),this.a.Ia()},ct.prototype.readSint32=ct.prototype.zc,ct.prototype.Ac=function(){return b(0==this.b),this.a.Ja()},ct.prototype.readSint64=ct.prototype.Ac,ct.prototype.Bc=function(){return b(0==this.b),this.a.Ka()},ct.prototype.readSint64String=ct.prototype.Bc,ct.prototype.Rb=function(){return b(5==this.b),this.a.m()},ct.prototype.readFixed32=ct.prototype.Rb,ct.prototype.Sb=function(){return b(1==this.b),this.a.ga()},ct.prototype.readFixed64=ct.prototype.Sb,ct.prototype.Tb=function(){return b(1==this.b),this.a.ha()},ct.prototype.readFixed64String=ct.prototype.Tb,ct.prototype.vc=function(){return b(5==this.b),this.a.P()},ct.prototype.readSfixed32=ct.prototype.vc,ct.prototype.wc=function(){return b(5==this.b),this.a.P().toString()},ct.prototype.readSfixed32String=ct.prototype.wc,ct.prototype.xc=function(){return b(1==this.b),this.a.ba()},ct.prototype.readSfixed64=ct.prototype.xc,ct.prototype.yc=function(){return b(1==this.b),this.a.ca()},ct.prototype.readSfixed64String=ct.prototype.yc,ct.prototype.aa=function(){return b(5==this.b),this.a.aa()},ct.prototype.readFloat=ct.prototype.aa,ct.prototype.Z=function(){return b(1==this.b),this.a.Z()},ct.prototype.readDouble=ct.prototype.Z,ct.prototype.pa=function(){return b(0==this.b),!!this.a.o()},ct.prototype.readBool=ct.prototype.pa,ct.prototype.ra=function(){return b(0==this.b),this.a.sa()},ct.prototype.readEnum=ct.prototype.ra,ct.prototype.fa=function(){b(2==this.b);var t=this.a.o();return this.a.fa(t)},ct.prototype.readString=ct.prototype.fa,ct.prototype.qa=function(){b(2==this.b);var t=this.a.o();return this.a.qa(t)},ct.prototype.readBytes=ct.prototype.qa,ct.prototype.ia=function(){return b(0==this.b),this.a.ia()},ct.prototype.readVarintHash64=ct.prototype.ia,ct.prototype.Cc=function(){return b(0==this.b),this.a.fb()},ct.prototype.readSintHash64=ct.prototype.Cc,ct.prototype.w=function(t){return b(0==this.b),this.a.w(t)},ct.prototype.readSplitVarint64=ct.prototype.w,ct.prototype.ea=function(t){return b(0==this.b),this.a.w((function(e,r){return q(e,r,t)}))},ct.prototype.readSplitZigzagVarint64=ct.prototype.ea,ct.prototype.$=function(){return b(1==this.b),this.a.$()},ct.prototype.readFixedHash64=ct.prototype.$,ct.prototype.ta=function(t){return b(1==this.b),this.a.ta(t)},ct.prototype.readSplitFixed64=ct.prototype.ta,ct.prototype.gc=function(){return dt(this,this.a.da)},ct.prototype.readPackedInt32=ct.prototype.gc,ct.prototype.hc=function(){return dt(this,this.a.Ea)},ct.prototype.readPackedInt32String=ct.prototype.hc,ct.prototype.ic=function(){return dt(this,this.a.sa)},ct.prototype.readPackedInt64=ct.prototype.ic,ct.prototype.jc=function(){return dt(this,this.a.Fa)},ct.prototype.readPackedInt64String=ct.prototype.jc,ct.prototype.qc=function(){return dt(this,this.a.o)},ct.prototype.readPackedUint32=ct.prototype.qc,ct.prototype.rc=function(){return dt(this,this.a.O)},ct.prototype.readPackedUint32String=ct.prototype.rc,ct.prototype.sc=function(){return dt(this,this.a.Ga)},ct.prototype.readPackedUint64=ct.prototype.sc,ct.prototype.tc=function(){return dt(this,this.a.Ha)},ct.prototype.readPackedUint64String=ct.prototype.tc,ct.prototype.nc=function(){return dt(this,this.a.Ia)},ct.prototype.readPackedSint32=ct.prototype.nc,ct.prototype.oc=function(){return dt(this,this.a.Ja)},ct.prototype.readPackedSint64=ct.prototype.oc,ct.prototype.pc=function(){return dt(this,this.a.Ka)},ct.prototype.readPackedSint64String=ct.prototype.pc,ct.prototype.bc=function(){return dt(this,this.a.m)},ct.prototype.readPackedFixed32=ct.prototype.bc,ct.prototype.cc=function(){return dt(this,this.a.ga)},ct.prototype.readPackedFixed64=ct.prototype.cc,ct.prototype.dc=function(){return dt(this,this.a.ha)},ct.prototype.readPackedFixed64String=ct.prototype.dc,ct.prototype.kc=function(){return dt(this,this.a.P)},ct.prototype.readPackedSfixed32=ct.prototype.kc,ct.prototype.lc=function(){return dt(this,this.a.ba)},ct.prototype.readPackedSfixed64=ct.prototype.lc,ct.prototype.mc=function(){return dt(this,this.a.ca)},ct.prototype.readPackedSfixed64String=ct.prototype.mc,ct.prototype.fc=function(){return dt(this,this.a.aa)},ct.prototype.readPackedFloat=ct.prototype.fc,ct.prototype.$b=function(){return dt(this,this.a.Z)},ct.prototype.readPackedDouble=ct.prototype.$b,ct.prototype.Zb=function(){return dt(this,this.a.pa)},ct.prototype.readPackedBool=ct.prototype.Zb,ct.prototype.ac=function(){return dt(this,this.a.ra)},ct.prototype.readPackedEnum=ct.prototype.ac,ct.prototype.uc=function(){return dt(this,this.a.ia)},ct.prototype.readPackedVarintHash64=ct.prototype.uc,ct.prototype.ec=function(){return dt(this,this.a.$)},ct.prototype.readPackedFixedHash64=ct.prototype.ec,l("jspb.ExtensionFieldInfo",pt,void 0),l("jspb.ExtensionFieldBinaryInfo",ft,void 0),pt.prototype.F=function(){return!!this.la},pt.prototype.isMessageType=pt.prototype.F,l("jspb.Message",ht,void 0),ht.GENERATE_TO_OBJECT=!0,ht.GENERATE_FROM_OBJECT=!0;var gt="function"==typeof Uint8Array;ht.prototype.Ib=function(){return this.b},ht.prototype.getJsPbMessageId=ht.prototype.Ib,ht.initialize=function(t,e,r,o,n,i){if(t.f=null,e||(e=r?[r]:[]),t.b=r?String(r):void 0,t.D=0===r?-1:0,t.u=e,e=-1,!(r=t.u.length)||(e=r-1,null===(r=t.u[e])||"object"!=typeof r||Array.isArray(r)||gt&&r instanceof Uint8Array)?-1<o?(t.G=Math.max(o,e+1-t.D),t.i=null):t.G=Number.MAX_VALUE:(t.G=e-t.D,t.i=r),t.a={},n)for(o=0;o<n.length;o++)(e=n[o])<t.G?(e+=t.D,t.u[e]=t.u[e]||yt):(mt(t),t.i[e]=t.i[e]||yt);if(i&&i.length)for(o=0;o<i.length;o++)Tt(t,i[o])};var yt=Object.freeze?Object.freeze([]):[];function mt(t){var e=t.G+t.D;t.u[e]||(t.i=t.u[e]={})}function bt(t,e,r){for(var o=[],n=0;n<t.length;n++)o[n]=e.call(t[n],r,t[n]);return o}function vt(t,e){if(e<t.G){e+=t.D;var r=t.u[e];return r===yt?t.u[e]=[]:r}if(t.i)return(r=t.i[e])===yt?t.i[e]=[]:r}function At(t,e){return null==(t=vt(t,e))?t:+t}function wt(t,e){return null==(t=vt(t,e))?t:!!t}function Mt(t){return null==t||"string"==typeof t?t:gt&&t instanceof Uint8Array?F(t):(v("Cannot coerce to b64 string: "+d(t)),null)}function Bt(t){return null==t||t instanceof Uint8Array?t:"string"==typeof t?P(t):(v("Cannot coerce to Uint8Array: "+d(t)),null)}function Ct(t){if(t&&1<t.length){var e=d(t[0]);h(t,(function(t){d(t)!=e&&v("Inconsistent type in JSPB repeated field array. Got "+d(t)+" expected "+e)}))}}function Et(t,e,r){return null==(t=vt(t,e))?r:t}function St(t,e,r){return A(t,ht),e<t.G?t.u[e+t.D]=r:(mt(t),t.i[e]=r),t}function It(t,e,r,o){return A(t,ht),r!==o?St(t,e,r):e<t.G?t.u[e+t.D]=null:(mt(t),delete t.i[e]),t}function Ot(t,e,r,o){return A(t,ht),(r=Tt(t,r))&&r!==e&&void 0!==o&&(t.f&&r in t.f&&(t.f[r]=void 0),St(t,r,void 0)),St(t,e,o)}function Tt(t,e){for(var r,o,n=0;n<e.length;n++){var i=e[n],a=vt(t,i);null!=a&&(r=i,o=a,St(t,i,void 0))}return r?(St(t,r,o),r):0}function _t(t,e,r){if(t.f||(t.f={}),!t.f[r]){for(var o=vt(t,r),n=[],i=0;i<o.length;i++)n[i]=new e(o[i]);t.f[r]=n}}function xt(t){if(t.f)for(var e in t.f){var r=t.f[e];if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]&&r[o].g();else r&&r.g()}}function Ft(t,e){t=t||{},e=e||{};var r,o={};for(r in t)o[r]=0;for(r in e)o[r]=0;for(r in o)if(!Pt(t[r],e[r]))return!1;return!0}function Pt(t,e){if(t==e)return!0;if(!p(t)||!p(e))return!!("number"==typeof t&&isNaN(t)||"number"==typeof e&&isNaN(e))&&String(t)==String(e);if(t.constructor!=e.constructor)return!1;if(gt&&t.constructor===Uint8Array){if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}if(t.constructor===Array){var o=void 0,n=void 0,i=Math.max(t.length,e.length);for(r=0;r<i;r++){var a=t[r],s=e[r];if(a&&a.constructor==Object&&(b(void 0===o),b(r===t.length-1),o=a,a=void 0),s&&s.constructor==Object&&(b(void 0===n),b(r===e.length-1),n=s,s=void 0),!Pt(a,s))return!1}return!o&&!n||Ft(o=o||{},n=n||{})}if(t.constructor===Object)return Ft(t,e);throw Error("Invalid type in JSPB array")}function kt(t){return new t.constructor(function t(e){if(Array.isArray(e)){for(var r=Array(e.length),o=0;o<e.length;o++){var n=e[o];null!=n&&(r[o]="object"==typeof n?t(b(n)):n)}return r}if(gt&&e instanceof Uint8Array)return new Uint8Array(e);for(o in r={},e)null!=(n=e[o])&&(r[o]="object"==typeof n?t(b(n)):n);return r}(t.g()))}ht.toObjectList=bt,ht.toObjectExtension=function(t,e,r,o,n){for(var i in r){var a=r[i],s=o.call(t,a);if(null!=s){for(var c in a.Ba)if(a.Ba.hasOwnProperty(c))break;e[c]=a.Na?a.na?bt(s,a.Na,n):a.Na(n,s):s}}},ht.serializeBinaryExtensions=function(t,e,r,o){for(var n in r){var i=r[n],a=i.Za;if(!i.Aa)throw Error("Message extension present that was generated without binary serialization support");var s=o.call(t,a);if(null!=s)if(a.F()){if(!i.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");i.Aa.call(e,a.ma,s,i.Wa)}else i.Aa.call(e,a.ma,s)}},ht.readBinaryExtension=function(t,e,r,o,n){var i=r[e.c];if(i){if(r=i.Za,!i.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var a=new r.la;i.za.call(e,a,i.Ab)}else a=i.za.call(e);r.na&&!i.Nb?(e=o.call(t,r))?e.push(a):n.call(t,r,[a]):n.call(t,r,a)}else e.C()},ht.getField=vt,ht.getRepeatedField=function(t,e){return vt(t,e)},ht.getOptionalFloatingPointField=At,ht.getBooleanField=wt,ht.getRepeatedFloatingPointField=function(t,e){var r=vt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var o=0;o<r.length;o++)r[o]=+r[o];t.a[e]=!0}return r},ht.getRepeatedBooleanField=function(t,e){var r=vt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var o=0;o<r.length;o++)r[o]=!!r[o];t.a[e]=!0}return r},ht.bytesAsB64=Mt,ht.bytesAsU8=Bt,ht.bytesListAsB64=function(t){return Ct(t),t.length&&"string"!=typeof t[0]?g(t,Mt):t},ht.bytesListAsU8=function(t){return Ct(t),!t.length||t[0]instanceof Uint8Array?t:g(t,Bt)},ht.getFieldWithDefault=Et,ht.getBooleanFieldWithDefault=function(t,e,r){return null==(t=wt(t,e))?r:t},ht.getFloatingPointFieldWithDefault=function(t,e,r){return null==(t=At(t,e))?r:t},ht.getFieldProto3=Et,ht.getMapField=function(t,e,r,o){if(t.f||(t.f={}),e in t.f)return t.f[e];var n=vt(t,e);if(!n){if(r)return;St(t,e,n=[])}return t.f[e]=new M(n,o)},ht.setField=St,ht.setProto3IntField=function(t,e,r){return It(t,e,r,0)},ht.setProto3FloatField=function(t,e,r){return It(t,e,r,0)},ht.setProto3BooleanField=function(t,e,r){return It(t,e,r,!1)},ht.setProto3StringField=function(t,e,r){return It(t,e,r,"")},ht.setProto3BytesField=function(t,e,r){return It(t,e,r,"")},ht.setProto3EnumField=function(t,e,r){return It(t,e,r,0)},ht.setProto3StringIntField=function(t,e,r){return It(t,e,r,"0")},ht.addToRepeatedField=function(t,e,r,o){return A(t,ht),e=vt(t,e),null!=o?e.splice(o,0,r):e.push(r),t},ht.setOneofField=Ot,ht.computeOneofCase=Tt,ht.getWrapperField=function(t,e,r,o){if(t.f||(t.f={}),!t.f[r]){var n=vt(t,r);(o||n)&&(t.f[r]=new e(n))}return t.f[r]},ht.getRepeatedWrapperField=function(t,e,r){return _t(t,e,r),(e=t.f[r])==yt&&(e=t.f[r]=[]),e},ht.setWrapperField=function(t,e,r){A(t,ht),t.f||(t.f={});var o=r?r.g():r;return t.f[e]=r,St(t,e,o)},ht.setOneofWrapperField=function(t,e,r,o){A(t,ht),t.f||(t.f={});var n=o?o.g():o;return t.f[e]=o,Ot(t,e,r,n)},ht.setRepeatedWrapperField=function(t,e,r){A(t,ht),t.f||(t.f={}),r=r||[];for(var o=[],n=0;n<r.length;n++)o[n]=r[n].g();return t.f[e]=r,St(t,e,o)},ht.addToRepeatedWrapperField=function(t,e,r,o,n){_t(t,o,e);var i=t.f[e];return i||(i=t.f[e]=[]),r=r||new o,t=vt(t,e),null!=n?(i.splice(n,0,r),t.splice(n,0,r.g())):(i.push(r),t.push(r.g())),r},ht.toMap=function(t,e,r,o){for(var n={},i=0;i<t.length;i++)n[e.call(t[i])]=r?r.call(t[i],o,t[i]):t[i];return n},ht.prototype.g=function(){return xt(this),this.u},ht.prototype.toArray=ht.prototype.g,ht.prototype.toString=function(){return xt(this),this.u.toString()},ht.prototype.getExtension=function(t){if(this.i){this.f||(this.f={});var e=t.ma;if(t.na){if(t.F())return this.f[e]||(this.f[e]=g(this.i[e]||[],(function(e){return new t.la(e)}))),this.f[e]}else if(t.F())return!this.f[e]&&this.i[e]&&(this.f[e]=new t.la(this.i[e])),this.f[e];return this.i[e]}},ht.prototype.getExtension=ht.prototype.getExtension,ht.prototype.Kc=function(t,e){this.f||(this.f={}),mt(this);var r=t.ma;return t.na?(e=e||[],t.F()?(this.f[r]=e,this.i[r]=g(e,(function(t){return t.g()}))):this.i[r]=e):t.F()?(this.f[r]=e,this.i[r]=e?e.g():e):this.i[r]=e,this},ht.prototype.setExtension=ht.prototype.Kc,ht.difference=function(t,e){if(!(t instanceof e.constructor))throw Error("Messages have different types.");var r=t.g();e=e.g();var o=[],n=0,i=r.length>e.length?r.length:e.length;for(t.b&&(o[0]=t.b,n=1);n<i;n++)Pt(r[n],e[n])||(o[n]=e[n]);return new t.constructor(o)},ht.equals=function(t,e){return t==e||!(!t||!e)&&t instanceof e.constructor&&Pt(t.g(),e.g())},ht.compareExtensions=Ft,ht.compareFields=Pt,ht.prototype.Bb=function(){return kt(this)},ht.prototype.cloneMessage=ht.prototype.Bb,ht.prototype.clone=function(){return kt(this)},ht.prototype.clone=ht.prototype.clone,ht.clone=function(t){return kt(t)},ht.copyInto=function(t,e){A(t,ht),A(e,ht),b(t.constructor==e.constructor,"Copy source and target message should have the same type."),t=kt(t);for(var r=e.g(),o=t.g(),n=r.length=0;n<o.length;n++)r[n]=o[n];e.f=t.f,e.i=t.i},ht.registerMessageType=function(t,e){e.we=t};var Rt={dump:function(t){return A(t,ht,"jspb.Message instance expected"),b(t.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Rt.X(t)}};function Nt(){this.a=[]}function Dt(t,e){this.lo=t,this.hi=e}function jt(t,e){var r=65535&t,o=65535&e,n=e>>>16;for(e=r*o+65536*(r*n&65535)+65536*((t>>>=16)*o&65535),r=t*n+(r*n>>>16)+(t*o>>>16);4294967296<=e;)e-=4294967296,r+=1;return new Dt(e>>>0,r>>>0)}function Wt(t){for(var e=new Dt(0,0),r=new Dt(0,0),o=0;o<t.length;o++){if("0">t[o]||"9"<t[o])return null;r.lo=parseInt(t[o],10),e=e.eb(10).add(r)}return e}function Ut(t,e){this.lo=t,this.hi=e}function zt(t){var e=0<t.length&&"-"==t[0];return e&&(t=t.substring(1)),null===(t=Wt(t))?null:(e&&(t=new Dt(0,0).sub(t)),new Ut(t.lo,t.hi))}function Lt(){this.c=[],this.b=0,this.a=new Nt,this.h=[]}function Vt(t,e){var r=t.a.end();t.c.push(r),t.c.push(e),t.b+=r.length+e.length}function Gt(t,e){return Kt(t,e,2),e=t.a.end(),t.c.push(e),t.b+=e.length,e.push(t.b),e}function Ht(t,e){var r=e.pop();for(b(0<=(r=t.b+t.a.length()-r));127<r;)e.push(127&r|128),r>>>=7,t.b++;e.push(r),t.b++}function Kt(t,e,r){b(1<=e&&e==Math.floor(e)),t.a.j(8*e+r)}function qt(t,e,r){null!=r&&(Kt(t,e,0),t.a.j(r))}function $t(t,e,r){null!=r&&(Kt(t,e,0),t.a.M(r))}l("jspb.debug.dump",Rt.dump,void 0),Rt.X=function(t){var e=d(t);if("number"==e||"string"==e||"boolean"==e||"null"==e||"undefined"==e||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array)return t;if("array"==e)return function(t,e,r){for(var o=[],n=2;n<arguments.length;++n)o[n-2]=arguments[n];Array.isArray(t)||m("Expected array but got %s: %s.",[d(t),t],e,o)}(t),g(t,Rt.X);if(t instanceof M){for(var r={},o=(t=t.entries()).next();!o.done;o=t.next())r[o.value[0]]=Rt.X(o.value[1]);return r}A(t,ht,"Only messages expected: "+t);var n={$name:(e=t.constructor).name||e.displayName};for(s in e.prototype){var i=/^get([A-Z]\w*)/.exec(s);if(i&&"getExtension"!=s&&"getJsPbMessageId"!=s){var a="has"+i[1];t[a]&&!t[a]()||(a=t[s](),n[Rt.$a(i[1])]=Rt.X(a))}}if(t.extensionObject_)return n.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",n;for(o in e.extensions)if(/^\d+$/.test(o)){a=e.extensions[o];var s=t.getExtension(a);i=void 0,a=a.Ba;var c=[],u=0;for(i in a)c[u++]=i;i=c[0],null!=s&&(r||(r=n.$extensions={}),r[Rt.$a(i)]=Rt.X(s))}return n},Rt.$a=function(t){return t.replace(/^[A-Z]/,(function(t){return t.toLowerCase()}))},l("jspb.BinaryEncoder",Nt,void 0),Nt.prototype.length=function(){return this.a.length},Nt.prototype.length=Nt.prototype.length,Nt.prototype.end=function(){var t=this.a;return this.a=[],t},Nt.prototype.end=Nt.prototype.end,Nt.prototype.l=function(t,e){for(b(t==Math.floor(t)),b(e==Math.floor(e)),b(0<=t&&4294967296>t),b(0<=e&&4294967296>e);0<e||127<t;)this.a.push(127&t|128),t=(t>>>7|e<<25)>>>0,e>>>=7;this.a.push(t)},Nt.prototype.writeSplitVarint64=Nt.prototype.l,Nt.prototype.A=function(t,e){b(t==Math.floor(t)),b(e==Math.floor(e)),b(0<=t&&4294967296>t),b(0<=e&&4294967296>e),this.s(t),this.s(e)},Nt.prototype.writeSplitFixed64=Nt.prototype.A,Nt.prototype.j=function(t){for(b(t==Math.floor(t)),b(0<=t&&4294967296>t);127<t;)this.a.push(127&t|128),t>>>=7;this.a.push(t)},Nt.prototype.writeUnsignedVarint32=Nt.prototype.j,Nt.prototype.M=function(t){if(b(t==Math.floor(t)),b(-2147483648<=t&&2147483648>t),0<=t)this.j(t);else{for(var e=0;9>e;e++)this.a.push(127&t|128),t>>=7;this.a.push(1)}},Nt.prototype.writeSignedVarint32=Nt.prototype.M,Nt.prototype.va=function(t){b(t==Math.floor(t)),b(0<=t&&0x10000000000000000>t),j(t),this.l(R,N)},Nt.prototype.writeUnsignedVarint64=Nt.prototype.va,Nt.prototype.ua=function(t){b(t==Math.floor(t)),b(-0x8000000000000000<=t&&0x8000000000000000>t),j(t),this.l(R,N)},Nt.prototype.writeSignedVarint64=Nt.prototype.ua,Nt.prototype.wa=function(t){b(t==Math.floor(t)),b(-2147483648<=t&&2147483648>t),this.j((t<<1^t>>31)>>>0)},Nt.prototype.writeZigzagVarint32=Nt.prototype.wa,Nt.prototype.xa=function(t){b(t==Math.floor(t)),b(-0x8000000000000000<=t&&0x8000000000000000>t),W(t),this.l(R,N)},Nt.prototype.writeZigzagVarint64=Nt.prototype.xa,Nt.prototype.Ta=function(t){this.W(tt(t))},Nt.prototype.writeZigzagVarint64String=Nt.prototype.Ta,Nt.prototype.W=function(t){var e=this;L(t),H(R,N,(function(t,r){e.l(t>>>0,r>>>0)}))},Nt.prototype.writeZigzagVarintHash64=Nt.prototype.W,Nt.prototype.be=function(t){b(t==Math.floor(t)),b(0<=t&&256>t),this.a.push(t>>>0&255)},Nt.prototype.writeUint8=Nt.prototype.be,Nt.prototype.ae=function(t){b(t==Math.floor(t)),b(0<=t&&65536>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},Nt.prototype.writeUint16=Nt.prototype.ae,Nt.prototype.s=function(t){b(t==Math.floor(t)),b(0<=t&&4294967296>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},Nt.prototype.writeUint32=Nt.prototype.s,Nt.prototype.V=function(t){b(t==Math.floor(t)),b(0<=t&&0x10000000000000000>t),D(t),this.s(R),this.s(N)},Nt.prototype.writeUint64=Nt.prototype.V,Nt.prototype.Qc=function(t){b(t==Math.floor(t)),b(-128<=t&&128>t),this.a.push(t>>>0&255)},Nt.prototype.writeInt8=Nt.prototype.Qc,Nt.prototype.Pc=function(t){b(t==Math.floor(t)),b(-32768<=t&&32768>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},Nt.prototype.writeInt16=Nt.prototype.Pc,Nt.prototype.S=function(t){b(t==Math.floor(t)),b(-2147483648<=t&&2147483648>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},Nt.prototype.writeInt32=Nt.prototype.S,Nt.prototype.T=function(t){b(t==Math.floor(t)),b(-0x8000000000000000<=t&&0x8000000000000000>t),j(t),this.A(R,N)},Nt.prototype.writeInt64=Nt.prototype.T,Nt.prototype.ka=function(t){b(t==Math.floor(t)),b(-0x8000000000000000<=+t&&0x8000000000000000>+t),L(tt(t)),this.A(R,N)},Nt.prototype.writeInt64String=Nt.prototype.ka,Nt.prototype.L=function(t){b(1/0===t||-1/0===t||isNaN(t)||-34028234663852886e22<=t&&34028234663852886e22>=t),U(t),this.s(R)},Nt.prototype.writeFloat=Nt.prototype.L,Nt.prototype.J=function(t){b(1/0===t||-1/0===t||isNaN(t)||-17976931348623157e292<=t&&17976931348623157e292>=t),z(t),this.s(R),this.s(N)},Nt.prototype.writeDouble=Nt.prototype.J,Nt.prototype.I=function(t){b("boolean"==typeof t||"number"==typeof t),this.a.push(t?1:0)},Nt.prototype.writeBool=Nt.prototype.I,Nt.prototype.R=function(t){b(t==Math.floor(t)),b(-2147483648<=t&&2147483648>t),this.M(t)},Nt.prototype.writeEnum=Nt.prototype.R,Nt.prototype.ja=function(t){this.a.push.apply(this.a,t)},Nt.prototype.writeBytes=Nt.prototype.ja,Nt.prototype.N=function(t){L(t),this.l(R,N)},Nt.prototype.writeVarintHash64=Nt.prototype.N,Nt.prototype.K=function(t){L(t),this.s(R),this.s(N)},Nt.prototype.writeFixedHash64=Nt.prototype.K,Nt.prototype.U=function(t){var e=this.a.length;!function(t,e,r){for(var o=[],n=2;n<arguments.length;++n)o[n-2]=arguments[n];"string"!=typeof t&&m("Expected string but got %s: %s.",[d(t),t],e,o)}(t);for(var r=0;r<t.length;r++){var o=t.charCodeAt(r);if(128>o)this.a.push(o);else if(2048>o)this.a.push(o>>6|192),this.a.push(63&o|128);else if(65536>o)if(55296<=o&&56319>=o&&r+1<t.length){var n=t.charCodeAt(r+1);56320<=n&&57343>=n&&(o=1024*(o-55296)+n-56320+65536,this.a.push(o>>18|240),this.a.push(o>>12&63|128),this.a.push(o>>6&63|128),this.a.push(63&o|128),r++)}else this.a.push(o>>12|224),this.a.push(o>>6&63|128),this.a.push(63&o|128)}return this.a.length-e},Nt.prototype.writeString=Nt.prototype.U,l("jspb.arith.UInt64",Dt,void 0),Dt.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:this.hi==t.hi&&this.lo==t.lo?0:1},Dt.prototype.cmp=Dt.prototype.cmp,Dt.prototype.La=function(){return new Dt((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},Dt.prototype.rightShift=Dt.prototype.La,Dt.prototype.Da=function(){return new Dt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Dt.prototype.leftShift=Dt.prototype.Da,Dt.prototype.cb=function(){return!!(2147483648&this.hi)},Dt.prototype.msb=Dt.prototype.cb,Dt.prototype.Ob=function(){return!!(1&this.lo)},Dt.prototype.lsb=Dt.prototype.Ob,Dt.prototype.Ua=function(){return 0==this.lo&&0==this.hi},Dt.prototype.zero=Dt.prototype.Ua,Dt.prototype.add=function(t){return new Dt((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},Dt.prototype.add=Dt.prototype.add,Dt.prototype.sub=function(t){return new Dt((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},Dt.prototype.sub=Dt.prototype.sub,Dt.mul32x32=jt,Dt.prototype.eb=function(t){var e=jt(this.lo,t);return(t=jt(this.hi,t)).hi=t.lo,t.lo=0,e.add(t)},Dt.prototype.mul=Dt.prototype.eb,Dt.prototype.Xa=function(t){if(0==t)return[];var e=new Dt(0,0),r=new Dt(this.lo,this.hi);t=new Dt(t,0);for(var o=new Dt(1,0);!t.cb();)t=t.Da(),o=o.Da();for(;!o.Ua();)0>=t.cmp(r)&&(e=e.add(o),r=r.sub(t)),t=t.La(),o=o.La();return[e,r]},Dt.prototype.div=Dt.prototype.Xa,Dt.prototype.toString=function(){for(var t="",e=this;!e.Ua();){var r=(e=e.Xa(10))[0];t=e[1].lo+t,e=r}return""==t&&(t="0"),t},Dt.prototype.toString=Dt.prototype.toString,Dt.fromString=Wt,Dt.prototype.clone=function(){return new Dt(this.lo,this.hi)},Dt.prototype.clone=Dt.prototype.clone,l("jspb.arith.Int64",Ut,void 0),Ut.prototype.add=function(t){return new Ut((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},Ut.prototype.add=Ut.prototype.add,Ut.prototype.sub=function(t){return new Ut((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},Ut.prototype.sub=Ut.prototype.sub,Ut.prototype.clone=function(){return new Ut(this.lo,this.hi)},Ut.prototype.clone=Ut.prototype.clone,Ut.prototype.toString=function(){var t=0!=(2147483648&this.hi),e=new Dt(this.lo,this.hi);return t&&(e=new Dt(0,0).sub(e)),(t?"-":"")+e.toString()},Ut.prototype.toString=Ut.prototype.toString,Ut.fromString=zt,l("jspb.BinaryWriter",Lt,void 0),Lt.prototype.pb=function(t,e,r){Vt(this,t.subarray(e,r))},Lt.prototype.writeSerializedMessage=Lt.prototype.pb,Lt.prototype.Pb=function(t,e,r){null!=t&&null!=e&&null!=r&&this.pb(t,e,r)},Lt.prototype.maybeWriteSerializedMessage=Lt.prototype.Pb,Lt.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Lt.prototype.reset=Lt.prototype.reset,Lt.prototype.ab=function(){b(0==this.h.length);for(var t=new Uint8Array(this.b+this.a.length()),e=this.c,r=e.length,o=0,n=0;n<r;n++){var i=e[n];t.set(i,o),o+=i.length}return e=this.a.end(),t.set(e,o),b((o+=e.length)==t.length),this.c=[t],t},Lt.prototype.getResultBuffer=Lt.prototype.ab,Lt.prototype.Kb=function(t){return F(this.ab(),t)},Lt.prototype.getResultBase64String=Lt.prototype.Kb,Lt.prototype.Va=function(t){this.h.push(Gt(this,t))},Lt.prototype.beginSubMessage=Lt.prototype.Va,Lt.prototype.Ya=function(){b(0<=this.h.length),Ht(this,this.h.pop())},Lt.prototype.endSubMessage=Lt.prototype.Ya,Lt.prototype.Nc=function(t,e,r){switch(t){case 1:this.J(e,r);break;case 2:this.L(e,r);break;case 3:this.T(e,r);break;case 4:this.V(e,r);break;case 5:this.S(e,r);break;case 6:this.Qa(e,r);break;case 7:this.Pa(e,r);break;case 8:this.I(e,r);break;case 9:this.U(e,r);break;case 10:v("Group field type not supported in writeAny()");break;case 11:v("Message field type not supported in writeAny()");break;case 12:this.ja(e,r);break;case 13:this.s(e,r);break;case 14:this.R(e,r);break;case 15:this.Ra(e,r);break;case 16:this.Sa(e,r);break;case 17:this.rb(e,r);break;case 18:this.sb(e,r);break;case 30:this.K(e,r);break;case 31:this.N(e,r);break;default:v("Invalid field type in writeAny()")}},Lt.prototype.writeAny=Lt.prototype.Nc,Lt.prototype.S=function(t,e){null!=e&&(b(-2147483648<=e&&2147483648>e),$t(this,t,e))},Lt.prototype.writeInt32=Lt.prototype.S,Lt.prototype.ob=function(t,e){null!=e&&(b(-2147483648<=(e=parseInt(e,10))&&2147483648>e),$t(this,t,e))},Lt.prototype.writeInt32String=Lt.prototype.ob,Lt.prototype.T=function(t,e){null!=e&&(b(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(Kt(this,t,0),this.a.ua(e)))},Lt.prototype.writeInt64=Lt.prototype.T,Lt.prototype.ka=function(t,e){null!=e&&(e=zt(e),Kt(this,t,0),this.a.l(e.lo,e.hi))},Lt.prototype.writeInt64String=Lt.prototype.ka,Lt.prototype.s=function(t,e){null!=e&&(b(0<=e&&4294967296>e),qt(this,t,e))},Lt.prototype.writeUint32=Lt.prototype.s,Lt.prototype.ub=function(t,e){null!=e&&(b(0<=(e=parseInt(e,10))&&4294967296>e),qt(this,t,e))},Lt.prototype.writeUint32String=Lt.prototype.ub,Lt.prototype.V=function(t,e){null!=e&&(b(0<=e&&0x10000000000000000>e),null!=e&&(Kt(this,t,0),this.a.va(e)))},Lt.prototype.writeUint64=Lt.prototype.V,Lt.prototype.vb=function(t,e){null!=e&&(e=Wt(e),Kt(this,t,0),this.a.l(e.lo,e.hi))},Lt.prototype.writeUint64String=Lt.prototype.vb,Lt.prototype.rb=function(t,e){null!=e&&(b(-2147483648<=e&&2147483648>e),null!=e&&(Kt(this,t,0),this.a.wa(e)))},Lt.prototype.writeSint32=Lt.prototype.rb,Lt.prototype.sb=function(t,e){null!=e&&(b(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(Kt(this,t,0),this.a.xa(e)))},Lt.prototype.writeSint64=Lt.prototype.sb,Lt.prototype.$d=function(t,e){null!=e&&null!=e&&(Kt(this,t,0),this.a.W(e))},Lt.prototype.writeSintHash64=Lt.prototype.$d,Lt.prototype.Zd=function(t,e){null!=e&&null!=e&&(Kt(this,t,0),this.a.Ta(e))},Lt.prototype.writeSint64String=Lt.prototype.Zd,Lt.prototype.Pa=function(t,e){null!=e&&(b(0<=e&&4294967296>e),Kt(this,t,5),this.a.s(e))},Lt.prototype.writeFixed32=Lt.prototype.Pa,Lt.prototype.Qa=function(t,e){null!=e&&(b(0<=e&&0x10000000000000000>e),Kt(this,t,1),this.a.V(e))},Lt.prototype.writeFixed64=Lt.prototype.Qa,Lt.prototype.nb=function(t,e){null!=e&&(e=Wt(e),Kt(this,t,1),this.a.A(e.lo,e.hi))},Lt.prototype.writeFixed64String=Lt.prototype.nb,Lt.prototype.Ra=function(t,e){null!=e&&(b(-2147483648<=e&&2147483648>e),Kt(this,t,5),this.a.S(e))},Lt.prototype.writeSfixed32=Lt.prototype.Ra,Lt.prototype.Sa=function(t,e){null!=e&&(b(-0x8000000000000000<=e&&0x8000000000000000>e),Kt(this,t,1),this.a.T(e))},Lt.prototype.writeSfixed64=Lt.prototype.Sa,Lt.prototype.qb=function(t,e){null!=e&&(e=zt(e),Kt(this,t,1),this.a.A(e.lo,e.hi))},Lt.prototype.writeSfixed64String=Lt.prototype.qb,Lt.prototype.L=function(t,e){null!=e&&(Kt(this,t,5),this.a.L(e))},Lt.prototype.writeFloat=Lt.prototype.L,Lt.prototype.J=function(t,e){null!=e&&(Kt(this,t,1),this.a.J(e))},Lt.prototype.writeDouble=Lt.prototype.J,Lt.prototype.I=function(t,e){null!=e&&(b("boolean"==typeof e||"number"==typeof e),Kt(this,t,0),this.a.I(e))},Lt.prototype.writeBool=Lt.prototype.I,Lt.prototype.R=function(t,e){null!=e&&(b(-2147483648<=e&&2147483648>e),Kt(this,t,0),this.a.M(e))},Lt.prototype.writeEnum=Lt.prototype.R,Lt.prototype.U=function(t,e){null!=e&&(t=Gt(this,t),this.a.U(e),Ht(this,t))},Lt.prototype.writeString=Lt.prototype.U,Lt.prototype.ja=function(t,e){null!=e&&(e=nt(e),Kt(this,t,2),this.a.j(e.length),Vt(this,e))},Lt.prototype.writeBytes=Lt.prototype.ja,Lt.prototype.Rc=function(t,e,r){null!=e&&(t=Gt(this,t),r(e,this),Ht(this,t))},Lt.prototype.writeMessage=Lt.prototype.Rc,Lt.prototype.Sc=function(t,e,r){null!=e&&(Kt(this,1,3),Kt(this,2,0),this.a.M(t),t=Gt(this,3),r(e,this),Ht(this,t),Kt(this,1,4))},Lt.prototype.writeMessageSet=Lt.prototype.Sc,Lt.prototype.Oc=function(t,e,r){null!=e&&(Kt(this,t,3),r(e,this),Kt(this,t,4))},Lt.prototype.writeGroup=Lt.prototype.Oc,Lt.prototype.K=function(t,e){null!=e&&(b(8==e.length),Kt(this,t,1),this.a.K(e))},Lt.prototype.writeFixedHash64=Lt.prototype.K,Lt.prototype.N=function(t,e){null!=e&&(b(8==e.length),Kt(this,t,0),this.a.N(e))},Lt.prototype.writeVarintHash64=Lt.prototype.N,Lt.prototype.A=function(t,e,r){Kt(this,t,1),this.a.A(e,r)},Lt.prototype.writeSplitFixed64=Lt.prototype.A,Lt.prototype.l=function(t,e,r){Kt(this,t,0),this.a.l(e,r)},Lt.prototype.writeSplitVarint64=Lt.prototype.l,Lt.prototype.tb=function(t,e,r){Kt(this,t,0);var o=this.a;H(e,r,(function(t,e){o.l(t>>>0,e>>>0)}))},Lt.prototype.writeSplitZigzagVarint64=Lt.prototype.tb,Lt.prototype.Ed=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)$t(this,t,e[r])},Lt.prototype.writeRepeatedInt32=Lt.prototype.Ed,Lt.prototype.Fd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ob(t,e[r])},Lt.prototype.writeRepeatedInt32String=Lt.prototype.Fd,Lt.prototype.Gd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Kt(this,t,0),this.a.ua(o))}},Lt.prototype.writeRepeatedInt64=Lt.prototype.Gd,Lt.prototype.Qd=function(t,e,r,o){if(null!=e)for(var n=0;n<e.length;n++)this.A(t,r(e[n]),o(e[n]))},Lt.prototype.writeRepeatedSplitFixed64=Lt.prototype.Qd,Lt.prototype.Rd=function(t,e,r,o){if(null!=e)for(var n=0;n<e.length;n++)this.l(t,r(e[n]),o(e[n]))},Lt.prototype.writeRepeatedSplitVarint64=Lt.prototype.Rd,Lt.prototype.Sd=function(t,e,r,o){if(null!=e)for(var n=0;n<e.length;n++)this.tb(t,r(e[n]),o(e[n]))},Lt.prototype.writeRepeatedSplitZigzagVarint64=Lt.prototype.Sd,Lt.prototype.Hd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ka(t,e[r])},Lt.prototype.writeRepeatedInt64String=Lt.prototype.Hd,Lt.prototype.Ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)qt(this,t,e[r])},Lt.prototype.writeRepeatedUint32=Lt.prototype.Ud,Lt.prototype.Vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ub(t,e[r])},Lt.prototype.writeRepeatedUint32String=Lt.prototype.Vd,Lt.prototype.Wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Kt(this,t,0),this.a.va(o))}},Lt.prototype.writeRepeatedUint64=Lt.prototype.Wd,Lt.prototype.Xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.vb(t,e[r])},Lt.prototype.writeRepeatedUint64String=Lt.prototype.Xd,Lt.prototype.Md=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Kt(this,t,0),this.a.wa(o))}},Lt.prototype.writeRepeatedSint32=Lt.prototype.Md,Lt.prototype.Nd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Kt(this,t,0),this.a.xa(o))}},Lt.prototype.writeRepeatedSint64=Lt.prototype.Nd,Lt.prototype.Od=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Kt(this,t,0),this.a.Ta(o))}},Lt.prototype.writeRepeatedSint64String=Lt.prototype.Od,Lt.prototype.Pd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++){var o=e[r];null!=o&&(Kt(this,t,0),this.a.W(o))}},Lt.prototype.writeRepeatedSintHash64=Lt.prototype.Pd,Lt.prototype.yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Pa(t,e[r])},Lt.prototype.writeRepeatedFixed32=Lt.prototype.yd,Lt.prototype.zd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Qa(t,e[r])},Lt.prototype.writeRepeatedFixed64=Lt.prototype.zd,Lt.prototype.Ad=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.nb(t,e[r])},Lt.prototype.writeRepeatedFixed64String=Lt.prototype.Ad,Lt.prototype.Jd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Ra(t,e[r])},Lt.prototype.writeRepeatedSfixed32=Lt.prototype.Jd,Lt.prototype.Kd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.Sa(t,e[r])},Lt.prototype.writeRepeatedSfixed64=Lt.prototype.Kd,Lt.prototype.Ld=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.qb(t,e[r])},Lt.prototype.writeRepeatedSfixed64String=Lt.prototype.Ld,Lt.prototype.Cd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.L(t,e[r])},Lt.prototype.writeRepeatedFloat=Lt.prototype.Cd,Lt.prototype.wd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.J(t,e[r])},Lt.prototype.writeRepeatedDouble=Lt.prototype.wd,Lt.prototype.ud=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.I(t,e[r])},Lt.prototype.writeRepeatedBool=Lt.prototype.ud,Lt.prototype.xd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.R(t,e[r])},Lt.prototype.writeRepeatedEnum=Lt.prototype.xd,Lt.prototype.Td=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.U(t,e[r])},Lt.prototype.writeRepeatedString=Lt.prototype.Td,Lt.prototype.vd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.ja(t,e[r])},Lt.prototype.writeRepeatedBytes=Lt.prototype.vd,Lt.prototype.Id=function(t,e,r){if(null!=e)for(var o=0;o<e.length;o++){var n=Gt(this,t);r(e[o],this),Ht(this,n)}},Lt.prototype.writeRepeatedMessage=Lt.prototype.Id,Lt.prototype.Dd=function(t,e,r){if(null!=e)for(var o=0;o<e.length;o++)Kt(this,t,3),r(e[o],this),Kt(this,t,4)},Lt.prototype.writeRepeatedGroup=Lt.prototype.Dd,Lt.prototype.Bd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.K(t,e[r])},Lt.prototype.writeRepeatedFixedHash64=Lt.prototype.Bd,Lt.prototype.Yd=function(t,e){if(null!=e)for(var r=0;r<e.length;r++)this.N(t,e[r])},Lt.prototype.writeRepeatedVarintHash64=Lt.prototype.Yd,Lt.prototype.ad=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.M(e[r]);Ht(this,t)}},Lt.prototype.writePackedInt32=Lt.prototype.ad,Lt.prototype.bd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.M(parseInt(e[r],10));Ht(this,t)}},Lt.prototype.writePackedInt32String=Lt.prototype.bd,Lt.prototype.cd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.ua(e[r]);Ht(this,t)}},Lt.prototype.writePackedInt64=Lt.prototype.cd,Lt.prototype.md=function(t,e,r,o){if(null!=e){t=Gt(this,t);for(var n=0;n<e.length;n++)this.a.A(r(e[n]),o(e[n]));Ht(this,t)}},Lt.prototype.writePackedSplitFixed64=Lt.prototype.md,Lt.prototype.nd=function(t,e,r,o){if(null!=e){t=Gt(this,t);for(var n=0;n<e.length;n++)this.a.l(r(e[n]),o(e[n]));Ht(this,t)}},Lt.prototype.writePackedSplitVarint64=Lt.prototype.nd,Lt.prototype.od=function(t,e,r,o){if(null!=e){t=Gt(this,t);for(var n=this.a,i=0;i<e.length;i++)H(r(e[i]),o(e[i]),(function(t,e){n.l(t>>>0,e>>>0)}));Ht(this,t)}},Lt.prototype.writePackedSplitZigzagVarint64=Lt.prototype.od,Lt.prototype.dd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++){var o=zt(e[r]);this.a.l(o.lo,o.hi)}Ht(this,t)}},Lt.prototype.writePackedInt64String=Lt.prototype.dd,Lt.prototype.pd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.j(e[r]);Ht(this,t)}},Lt.prototype.writePackedUint32=Lt.prototype.pd,Lt.prototype.qd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.j(parseInt(e[r],10));Ht(this,t)}},Lt.prototype.writePackedUint32String=Lt.prototype.qd,Lt.prototype.rd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.va(e[r]);Ht(this,t)}},Lt.prototype.writePackedUint64=Lt.prototype.rd,Lt.prototype.sd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++){var o=Wt(e[r]);this.a.l(o.lo,o.hi)}Ht(this,t)}},Lt.prototype.writePackedUint64String=Lt.prototype.sd,Lt.prototype.hd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.wa(e[r]);Ht(this,t)}},Lt.prototype.writePackedSint32=Lt.prototype.hd,Lt.prototype.jd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.xa(e[r]);Ht(this,t)}},Lt.prototype.writePackedSint64=Lt.prototype.jd,Lt.prototype.kd=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.W(tt(e[r]));Ht(this,t)}},Lt.prototype.writePackedSint64String=Lt.prototype.kd,Lt.prototype.ld=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.W(e[r]);Ht(this,t)}},Lt.prototype.writePackedSintHash64=Lt.prototype.ld,Lt.prototype.Wc=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.s(e[t])},Lt.prototype.writePackedFixed32=Lt.prototype.Wc,Lt.prototype.Xc=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.V(e[t])},Lt.prototype.writePackedFixed64=Lt.prototype.Xc,Lt.prototype.Yc=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++){var r=Wt(e[t]);this.a.A(r.lo,r.hi)}},Lt.prototype.writePackedFixed64String=Lt.prototype.Yc,Lt.prototype.ed=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.S(e[t])},Lt.prototype.writePackedSfixed32=Lt.prototype.ed,Lt.prototype.fd=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.T(e[t])},Lt.prototype.writePackedSfixed64=Lt.prototype.fd,Lt.prototype.gd=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.ka(e[t])},Lt.prototype.writePackedSfixed64String=Lt.prototype.gd,Lt.prototype.$c=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.L(e[t])},Lt.prototype.writePackedFloat=Lt.prototype.$c,Lt.prototype.Uc=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.J(e[t])},Lt.prototype.writePackedDouble=Lt.prototype.Uc,Lt.prototype.Tc=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(e.length),t=0;t<e.length;t++)this.a.I(e[t])},Lt.prototype.writePackedBool=Lt.prototype.Tc,Lt.prototype.Vc=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.R(e[r]);Ht(this,t)}},Lt.prototype.writePackedEnum=Lt.prototype.Vc,Lt.prototype.Zc=function(t,e){if(null!=e&&e.length)for(Kt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.K(e[t])},Lt.prototype.writePackedFixedHash64=Lt.prototype.Zc,Lt.prototype.td=function(t,e){if(null!=e&&e.length){t=Gt(this,t);for(var r=0;r<e.length;r++)this.a.N(e[r]);Ht(this,t)}},Lt.prototype.writePackedVarintHash64=Lt.prototype.td,e.debug=Rt,e.Map=M,e.Message=ht,e.BinaryReader=ct,e.BinaryWriter=Lt,e.ExtensionFieldInfo=pt,e.ExtensionFieldBinaryInfo=ft,e.exportSymbol=function(t,e,r){l(t,e,r)},e.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},e.object={extend:function(t,e){for(var r,o,n=1;n<arguments.length;n++){for(r in o=arguments[n])t[r]=o[r];for(var i=0;i<f.length;i++)r=f[i],Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}}},e.typeOf=d}).call(this,r(36))},function(t,e,r){"use strict";var o=r(37),n=r(47);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=n,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var o=0,n=0;n<t.length;n++){var a=t.charCodeAt(n);a<128?r[o++]=a:a<2048?(r[o++]=a>>6|192,r[o++]=63&a|128):i(t,n)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++n)),r[o++]=a>>18|240,r[o++]=a>>12&63|128,r[o++]=a>>6&63|128,r[o++]=63&a|128):(r[o++]=a>>12|224,r[o++]=a>>6&63|128,r[o++]=63&a|128)}else for(n=0;n<t.length;n++)r[n]=0|t[n];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=s(t[r].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var r="",o=0;o<t.length;o++){var n=t[o];"little"===e&&(n=a(n)),r+=c(n.toString(16))}return r},e.zero2=s,e.zero8=c,e.join32=function(t,e,r,n){var i=r-e;o(i%4==0);for(var a=new Array(i/4),s=0,c=e;s<a.length;s++,c+=4){var u;u="big"===n?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],a[s]=u>>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),o=0,n=0;o<t.length;o++,n+=4){var i=t[o];"big"===e?(r[n]=i>>>24,r[n+1]=i>>>16&255,r[n+2]=i>>>8&255,r[n+3]=255&i):(r[n+3]=i>>>24,r[n+2]=i>>>16&255,r[n+1]=i>>>8&255,r[n]=255&i)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,o){return t+e+r+o>>>0},e.sum32_5=function(t,e,r,o,n){return t+e+r+o+n>>>0},e.sum64=function(t,e,r,o){var n=t[e],i=o+t[e+1]>>>0,a=(i<o?1:0)+r+n;t[e]=a>>>0,t[e+1]=i},e.sum64_hi=function(t,e,r,o){return(e+o>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,o){return e+o>>>0},e.sum64_4_hi=function(t,e,r,o,n,i,a,s){var c=0,u=e;return c+=(u=u+o>>>0)<e?1:0,c+=(u=u+i>>>0)<i?1:0,t+r+n+a+(c+=(u=u+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,r,o,n,i,a,s){return e+o+i+s>>>0},e.sum64_5_hi=function(t,e,r,o,n,i,a,s,c,u){var l=0,d=e;return l+=(d=d+o>>>0)<e?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+s>>>0)<s?1:0,t+r+n+a+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},e.sum64_5_lo=function(t,e,r,o,n,i,a,s,c,u){return e+o+i+s+u>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},function(t,e,r){"use strict";r.d(e,"d",(function(){return d})),r.d(e,"a",(function(){return f})),r.d(e,"c",(function(){return b})),r.d(e,"b",(function(){return v}));var o=r(108),n=r.n(o),i=r(1),a=r(3),s=r(49),c=n.a.BN;const u=new a.a(s.a),l={};function d(t){return null!=t&&(f.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||Object(i.l)(t)||"bigint"==typeof t||Object(i.j)(t))}let p=!1;class f{constructor(t,e){t!==l&&u.throwError("cannot call constructor directly; use BigNumber.from",a.a.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return g(y(this).fromTwos(t))}toTwos(t){return g(y(this).toTwos(t))}abs(){return"-"===this._hex[0]?f.from(this._hex.substring(1)):this}add(t){return g(y(this).add(y(t)))}sub(t){return g(y(this).sub(y(t)))}div(t){return f.from(t).isZero()&&m("division-by-zero","div"),g(y(this).div(y(t)))}mul(t){return g(y(this).mul(y(t)))}mod(t){const e=y(t);return e.isNeg()&&m("division-by-zero","mod"),g(y(this).umod(e))}pow(t){const e=y(t);return e.isNeg()&&m("negative-power","pow"),g(y(this).pow(e))}and(t){const e=y(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","and"),g(y(this).and(e))}or(t){const e=y(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","or"),g(y(this).or(e))}xor(t){const e=y(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","xor"),g(y(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&m("negative-width","mask"),g(y(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&m("negative-width","shl"),g(y(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&m("negative-width","shr"),g(y(this).shrn(t))}eq(t){return y(this).eq(y(t))}lt(t){return y(this).lt(y(t))}lte(t){return y(this).lte(y(t))}gt(t){return y(this).gt(y(t))}gte(t){return y(this).gte(y(t))}isNegative(){return"-"===this._hex[0]}isZero(){return y(this).isZero()}toNumber(){try{return y(this).toNumber()}catch(t){m("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return u.throwError("this platform does not support BigInt",a.a.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?p||(p=!0,u.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.a.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",a.a.errors.UNEXPECTED_ARGUMENT,{})),y(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof f)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new f(l,h(t)):t.match(/^-?[0-9]+$/)?new f(l,h(new c(t))):u.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&m("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&m("overflow","BigNumber.from",t),f.from(String(t));const e=t;if("bigint"==typeof e)return f.from(e.toString());if(Object(i.j)(e))return f.from(Object(i.i)(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return f.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(Object(i.l)(t)||"-"===t[0]&&Object(i.l)(t.substring(1))))return f.from(t)}return u.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function h(t){if("string"!=typeof t)return h(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&u.throwArgumentError("invalid hex","value",t),"0x00"===(t=h(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function g(t){return f.from(h(t))}function y(t){const e=f.from(t).toHexString();return"-"===e[0]?new c("-"+e.substring(3),16):new c(e.substring(2),16)}function m(t,e,r){const o={fault:t,operation:e};return null!=r&&(o.value=r),u.throwError(t,a.a.errors.NUMERIC_FAULT,o)}function b(t){return new c(t,36).toString(16)}function v(t){return new c(t,16).toString(36)}},function(t,e,r){(function(t){!function(t,e){"use strict";function o(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(145).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(t,e,r){var o=s(t,r);return r-1>=e&&(o|=s(t,r-1)<<4),o}function u(t,e,r,o){for(var n=0,i=Math.min(t.length,r),a=e;a<i;a++){var s=t.charCodeAt(a)-48;n*=o,n+=s>=49?s-49+10:s>=17?s-17+10:s}return n}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),o(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,r):(this._parseBase(t,e,n),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(o(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(o("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a,s=0;if("be"===r)for(n=t.length-1,i=0;n>=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(n=0,i=0;n<t.length;n+=3)a=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var n,i=0,a=0;if("be"===r)for(o=t.length-1;o>=e;o-=2)n=c(t,e,o)<<i,this.words[a]|=67108863&n,i>=18?(i-=18,a+=1,this.words[a]|=n>>>26):i+=8;else for(o=(t.length-e)%2==0?e+1:e;o<t.length;o+=2)n=c(t,e,o)<<i,this.words[a]|=67108863&n,i>=18?(i-=18,a+=1,this.words[a]|=n>>>26):i+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=e)o++;o--,n=n/e|0;for(var i=t.length-r,a=i%o,s=Math.min(i,i-a)+r,c=0,l=r;l<s;l+=o)c=u(t,l,l+o,e),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)d*=e;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,e,r){r.negative=e.negative^t.negative;var o=t.length+e.length|0;r.length=o,o=o-1|0;var n=0|t.words[0],i=0|e.words[0],a=n*i,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u<o;u++){for(var l=c>>>26,d=67108863&c,p=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=p;f++){var h=u-f|0;l+=(a=(n=0|t.words[h])*(i=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,i=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<n|i)).toString(16);r=0!==(i=s>>>24-n&16777215)||a!==this.length-1?l[6-c.length]+c+r:c+r,(n+=2)>=26&&(n-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],f=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(f).toString(t);r=(h=h.idivn(f)).isZero()?g+r:l[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}o(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return o(void 0!==a),this.toArrayLike(a,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),i=r||Math.max(1,n);o(n<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===e,u=new t(i),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s<i;s++)u[s]=0}else{for(s=0;s<i-n;s++)u[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[i-s-1]=a}return u},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return o(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return o(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var o=0;o<r.length;o++)this.words[o]=e.words[o]^r.words[o];if(this!==e)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return o(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){o("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){o("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},i.prototype.iadd=function(t){var e,r,o;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,o=t):(r=t,o=this);for(var n=0,i=0;i<o.length;i++)e=(0|r.words[i])+(0|o.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<r.length;i++)e=(0|r.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,o,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,o=t):(r=t,o=this);for(var i=0,a=0;a<o.length;a++)i=(e=(0|r.words[a])-(0|o.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,r){var o,n,i,a=t.words,s=e.words,c=r.words,u=0,l=0|a[0],d=8191&l,p=l>>>13,f=0|a[1],h=8191&f,g=f>>>13,y=0|a[2],m=8191&y,b=y>>>13,v=0|a[3],A=8191&v,w=v>>>13,M=0|a[4],B=8191&M,C=M>>>13,E=0|a[5],S=8191&E,I=E>>>13,O=0|a[6],T=8191&O,_=O>>>13,x=0|a[7],F=8191&x,P=x>>>13,k=0|a[8],R=8191&k,N=k>>>13,D=0|a[9],j=8191&D,W=D>>>13,U=0|s[0],z=8191&U,L=U>>>13,V=0|s[1],G=8191&V,H=V>>>13,K=0|s[2],q=8191&K,$=K>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],X=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,ot=et>>>13,nt=0|s[6],it=8191&nt,at=nt>>>13,st=0|s[7],ct=8191&st,ut=st>>>13,lt=0|s[8],dt=8191&lt,pt=lt>>>13,ft=0|s[9],ht=8191&ft,gt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(u+(o=Math.imul(d,z))|0)+((8191&(n=(n=Math.imul(d,L))+Math.imul(p,z)|0))<<13)|0;u=((i=Math.imul(p,L))+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,o=Math.imul(h,z),n=(n=Math.imul(h,L))+Math.imul(g,z)|0,i=Math.imul(g,L);var mt=(u+(o=o+Math.imul(d,G)|0)|0)+((8191&(n=(n=n+Math.imul(d,H)|0)+Math.imul(p,G)|0))<<13)|0;u=((i=i+Math.imul(p,H)|0)+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,o=Math.imul(m,z),n=(n=Math.imul(m,L))+Math.imul(b,z)|0,i=Math.imul(b,L),o=o+Math.imul(h,G)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,G)|0,i=i+Math.imul(g,H)|0;var bt=(u+(o=o+Math.imul(d,q)|0)|0)+((8191&(n=(n=n+Math.imul(d,$)|0)+Math.imul(p,q)|0))<<13)|0;u=((i=i+Math.imul(p,$)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,o=Math.imul(A,z),n=(n=Math.imul(A,L))+Math.imul(w,z)|0,i=Math.imul(w,L),o=o+Math.imul(m,G)|0,n=(n=n+Math.imul(m,H)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(h,q)|0,n=(n=n+Math.imul(h,$)|0)+Math.imul(g,q)|0,i=i+Math.imul(g,$)|0;var vt=(u+(o=o+Math.imul(d,J)|0)|0)+((8191&(n=(n=n+Math.imul(d,Y)|0)+Math.imul(p,J)|0))<<13)|0;u=((i=i+Math.imul(p,Y)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,o=Math.imul(B,z),n=(n=Math.imul(B,L))+Math.imul(C,z)|0,i=Math.imul(C,L),o=o+Math.imul(A,G)|0,n=(n=n+Math.imul(A,H)|0)+Math.imul(w,G)|0,i=i+Math.imul(w,H)|0,o=o+Math.imul(m,q)|0,n=(n=n+Math.imul(m,$)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,$)|0,o=o+Math.imul(h,J)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,J)|0,i=i+Math.imul(g,Y)|0;var At=(u+(o=o+Math.imul(d,X)|0)|0)+((8191&(n=(n=n+Math.imul(d,tt)|0)+Math.imul(p,X)|0))<<13)|0;u=((i=i+Math.imul(p,tt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,o=Math.imul(S,z),n=(n=Math.imul(S,L))+Math.imul(I,z)|0,i=Math.imul(I,L),o=o+Math.imul(B,G)|0,n=(n=n+Math.imul(B,H)|0)+Math.imul(C,G)|0,i=i+Math.imul(C,H)|0,o=o+Math.imul(A,q)|0,n=(n=n+Math.imul(A,$)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,$)|0,o=o+Math.imul(m,J)|0,n=(n=n+Math.imul(m,Y)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,tt)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,tt)|0;var wt=(u+(o=o+Math.imul(d,rt)|0)|0)+((8191&(n=(n=n+Math.imul(d,ot)|0)+Math.imul(p,rt)|0))<<13)|0;u=((i=i+Math.imul(p,ot)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,o=Math.imul(T,z),n=(n=Math.imul(T,L))+Math.imul(_,z)|0,i=Math.imul(_,L),o=o+Math.imul(S,G)|0,n=(n=n+Math.imul(S,H)|0)+Math.imul(I,G)|0,i=i+Math.imul(I,H)|0,o=o+Math.imul(B,q)|0,n=(n=n+Math.imul(B,$)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(A,J)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,Y)|0,o=o+Math.imul(m,X)|0,n=(n=n+Math.imul(m,tt)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,tt)|0,o=o+Math.imul(h,rt)|0,n=(n=n+Math.imul(h,ot)|0)+Math.imul(g,rt)|0,i=i+Math.imul(g,ot)|0;var Mt=(u+(o=o+Math.imul(d,it)|0)|0)+((8191&(n=(n=n+Math.imul(d,at)|0)+Math.imul(p,it)|0))<<13)|0;u=((i=i+Math.imul(p,at)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,L))+Math.imul(P,z)|0,i=Math.imul(P,L),o=o+Math.imul(T,G)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,H)|0,o=o+Math.imul(S,q)|0,n=(n=n+Math.imul(S,$)|0)+Math.imul(I,q)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(B,J)|0,n=(n=n+Math.imul(B,Y)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,Y)|0,o=o+Math.imul(A,X)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,tt)|0,o=o+Math.imul(m,rt)|0,n=(n=n+Math.imul(m,ot)|0)+Math.imul(b,rt)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(h,it)|0,n=(n=n+Math.imul(h,at)|0)+Math.imul(g,it)|0,i=i+Math.imul(g,at)|0;var Bt=(u+(o=o+Math.imul(d,ct)|0)|0)+((8191&(n=(n=n+Math.imul(d,ut)|0)+Math.imul(p,ct)|0))<<13)|0;u=((i=i+Math.imul(p,ut)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,o=Math.imul(R,z),n=(n=Math.imul(R,L))+Math.imul(N,z)|0,i=Math.imul(N,L),o=o+Math.imul(F,G)|0,n=(n=n+Math.imul(F,H)|0)+Math.imul(P,G)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(T,q)|0,n=(n=n+Math.imul(T,$)|0)+Math.imul(_,q)|0,i=i+Math.imul(_,$)|0,o=o+Math.imul(S,J)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,Y)|0,o=o+Math.imul(B,X)|0,n=(n=n+Math.imul(B,tt)|0)+Math.imul(C,X)|0,i=i+Math.imul(C,tt)|0,o=o+Math.imul(A,rt)|0,n=(n=n+Math.imul(A,ot)|0)+Math.imul(w,rt)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(m,it)|0,n=(n=n+Math.imul(m,at)|0)+Math.imul(b,it)|0,i=i+Math.imul(b,at)|0,o=o+Math.imul(h,ct)|0,n=(n=n+Math.imul(h,ut)|0)+Math.imul(g,ct)|0,i=i+Math.imul(g,ut)|0;var Ct=(u+(o=o+Math.imul(d,dt)|0)|0)+((8191&(n=(n=n+Math.imul(d,pt)|0)+Math.imul(p,dt)|0))<<13)|0;u=((i=i+Math.imul(p,pt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,o=Math.imul(j,z),n=(n=Math.imul(j,L))+Math.imul(W,z)|0,i=Math.imul(W,L),o=o+Math.imul(R,G)|0,n=(n=n+Math.imul(R,H)|0)+Math.imul(N,G)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(F,q)|0,n=(n=n+Math.imul(F,$)|0)+Math.imul(P,q)|0,i=i+Math.imul(P,$)|0,o=o+Math.imul(T,J)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,Y)|0,o=o+Math.imul(S,X)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,o=o+Math.imul(B,rt)|0,n=(n=n+Math.imul(B,ot)|0)+Math.imul(C,rt)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(A,it)|0,n=(n=n+Math.imul(A,at)|0)+Math.imul(w,it)|0,i=i+Math.imul(w,at)|0,o=o+Math.imul(m,ct)|0,n=(n=n+Math.imul(m,ut)|0)+Math.imul(b,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(h,dt)|0,n=(n=n+Math.imul(h,pt)|0)+Math.imul(g,dt)|0,i=i+Math.imul(g,pt)|0;var Et=(u+(o=o+Math.imul(d,ht)|0)|0)+((8191&(n=(n=n+Math.imul(d,gt)|0)+Math.imul(p,ht)|0))<<13)|0;u=((i=i+Math.imul(p,gt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,o=Math.imul(j,G),n=(n=Math.imul(j,H))+Math.imul(W,G)|0,i=Math.imul(W,H),o=o+Math.imul(R,q)|0,n=(n=n+Math.imul(R,$)|0)+Math.imul(N,q)|0,i=i+Math.imul(N,$)|0,o=o+Math.imul(F,J)|0,n=(n=n+Math.imul(F,Y)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,o=o+Math.imul(S,rt)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(I,rt)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(B,it)|0,n=(n=n+Math.imul(B,at)|0)+Math.imul(C,it)|0,i=i+Math.imul(C,at)|0,o=o+Math.imul(A,ct)|0,n=(n=n+Math.imul(A,ut)|0)+Math.imul(w,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(m,dt)|0,n=(n=n+Math.imul(m,pt)|0)+Math.imul(b,dt)|0,i=i+Math.imul(b,pt)|0;var St=(u+(o=o+Math.imul(h,ht)|0)|0)+((8191&(n=(n=n+Math.imul(h,gt)|0)+Math.imul(g,ht)|0))<<13)|0;u=((i=i+Math.imul(g,gt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,o=Math.imul(j,q),n=(n=Math.imul(j,$))+Math.imul(W,q)|0,i=Math.imul(W,$),o=o+Math.imul(R,J)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(N,J)|0,i=i+Math.imul(N,Y)|0,o=o+Math.imul(F,X)|0,n=(n=n+Math.imul(F,tt)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,o=o+Math.imul(T,rt)|0,n=(n=n+Math.imul(T,ot)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(S,it)|0,n=(n=n+Math.imul(S,at)|0)+Math.imul(I,it)|0,i=i+Math.imul(I,at)|0,o=o+Math.imul(B,ct)|0,n=(n=n+Math.imul(B,ut)|0)+Math.imul(C,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(A,dt)|0,n=(n=n+Math.imul(A,pt)|0)+Math.imul(w,dt)|0,i=i+Math.imul(w,pt)|0;var It=(u+(o=o+Math.imul(m,ht)|0)|0)+((8191&(n=(n=n+Math.imul(m,gt)|0)+Math.imul(b,ht)|0))<<13)|0;u=((i=i+Math.imul(b,gt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,o=Math.imul(j,J),n=(n=Math.imul(j,Y))+Math.imul(W,J)|0,i=Math.imul(W,Y),o=o+Math.imul(R,X)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(N,X)|0,i=i+Math.imul(N,tt)|0,o=o+Math.imul(F,rt)|0,n=(n=n+Math.imul(F,ot)|0)+Math.imul(P,rt)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(T,it)|0,n=(n=n+Math.imul(T,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,o=o+Math.imul(S,ct)|0,n=(n=n+Math.imul(S,ut)|0)+Math.imul(I,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(B,dt)|0,n=(n=n+Math.imul(B,pt)|0)+Math.imul(C,dt)|0,i=i+Math.imul(C,pt)|0;var Ot=(u+(o=o+Math.imul(A,ht)|0)|0)+((8191&(n=(n=n+Math.imul(A,gt)|0)+Math.imul(w,ht)|0))<<13)|0;u=((i=i+Math.imul(w,gt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,o=Math.imul(j,X),n=(n=Math.imul(j,tt))+Math.imul(W,X)|0,i=Math.imul(W,tt),o=o+Math.imul(R,rt)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(N,rt)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(F,it)|0,n=(n=n+Math.imul(F,at)|0)+Math.imul(P,it)|0,i=i+Math.imul(P,at)|0,o=o+Math.imul(T,ct)|0,n=(n=n+Math.imul(T,ut)|0)+Math.imul(_,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(S,dt)|0,n=(n=n+Math.imul(S,pt)|0)+Math.imul(I,dt)|0,i=i+Math.imul(I,pt)|0;var Tt=(u+(o=o+Math.imul(B,ht)|0)|0)+((8191&(n=(n=n+Math.imul(B,gt)|0)+Math.imul(C,ht)|0))<<13)|0;u=((i=i+Math.imul(C,gt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,o=Math.imul(j,rt),n=(n=Math.imul(j,ot))+Math.imul(W,rt)|0,i=Math.imul(W,ot),o=o+Math.imul(R,it)|0,n=(n=n+Math.imul(R,at)|0)+Math.imul(N,it)|0,i=i+Math.imul(N,at)|0,o=o+Math.imul(F,ct)|0,n=(n=n+Math.imul(F,ut)|0)+Math.imul(P,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(T,dt)|0,n=(n=n+Math.imul(T,pt)|0)+Math.imul(_,dt)|0,i=i+Math.imul(_,pt)|0;var _t=(u+(o=o+Math.imul(S,ht)|0)|0)+((8191&(n=(n=n+Math.imul(S,gt)|0)+Math.imul(I,ht)|0))<<13)|0;u=((i=i+Math.imul(I,gt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,o=Math.imul(j,it),n=(n=Math.imul(j,at))+Math.imul(W,it)|0,i=Math.imul(W,at),o=o+Math.imul(R,ct)|0,n=(n=n+Math.imul(R,ut)|0)+Math.imul(N,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(F,dt)|0,n=(n=n+Math.imul(F,pt)|0)+Math.imul(P,dt)|0,i=i+Math.imul(P,pt)|0;var xt=(u+(o=o+Math.imul(T,ht)|0)|0)+((8191&(n=(n=n+Math.imul(T,gt)|0)+Math.imul(_,ht)|0))<<13)|0;u=((i=i+Math.imul(_,gt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,o=Math.imul(j,ct),n=(n=Math.imul(j,ut))+Math.imul(W,ct)|0,i=Math.imul(W,ut),o=o+Math.imul(R,dt)|0,n=(n=n+Math.imul(R,pt)|0)+Math.imul(N,dt)|0,i=i+Math.imul(N,pt)|0;var Ft=(u+(o=o+Math.imul(F,ht)|0)|0)+((8191&(n=(n=n+Math.imul(F,gt)|0)+Math.imul(P,ht)|0))<<13)|0;u=((i=i+Math.imul(P,gt)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,o=Math.imul(j,dt),n=(n=Math.imul(j,pt))+Math.imul(W,dt)|0,i=Math.imul(W,pt);var Pt=(u+(o=o+Math.imul(R,ht)|0)|0)+((8191&(n=(n=n+Math.imul(R,gt)|0)+Math.imul(N,ht)|0))<<13)|0;u=((i=i+Math.imul(N,gt)|0)+(n>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var kt=(u+(o=Math.imul(j,ht))|0)+((8191&(n=(n=Math.imul(j,gt))+Math.imul(W,ht)|0))<<13)|0;return u=((i=Math.imul(W,gt))+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,c[0]=yt,c[1]=mt,c[2]=bt,c[3]=vt,c[4]=At,c[5]=wt,c[6]=Mt,c[7]=Bt,c[8]=Ct,c[9]=Et,c[10]=St,c[11]=It,c[12]=Ot,c[13]=Tt,c[14]=_t,c[15]=xt,c[16]=Ft,c[17]=Pt,c[18]=kt,0!==u&&(c[19]=u,r.length++),r};function g(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(h=f),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):r<63?f(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var o=0,n=0,i=0;i<r.length-1;i++){var a=n;n=0;for(var s=67108863&o,c=Math.min(i,e.length-1),u=Math.max(0,i-t.length+1);u<=c;u++){var l=i-u,d=(0|t.words[l])*(0|e.words[u]),p=67108863&d;s=67108863&(p=p+s|0),n+=(a=(a=a+(d/67108864|0)|0)+(p>>>26)|0)>>>26,a&=67108863}r.words[i]=s,o=a,a=n}return 0!==o?r.words[i]=o:r.length--,r.strip()}(this,t,e):g(this,t,e)},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,o=0;o<t;o++)e[o]=this.revBin(o,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var o=0,n=0;n<e;n++)o|=(1&t)<<e-n-1,t>>=1;return o},y.prototype.permute=function(t,e,r,o,n,i){for(var a=0;a<i;a++)o[a]=e[t[a]],n[a]=r[t[a]]},y.prototype.transform=function(t,e,r,o,n,i){this.permute(i,t,e,r,o,n);for(var a=1;a<n;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<n;l+=s)for(var d=c,p=u,f=0;f<a;f++){var h=r[l+f],g=o[l+f],y=r[l+f+a],m=o[l+f+a],b=d*y-p*m;m=d*m+p*y,y=b,r[l+f]=h+y,o[l+f]=g+m,r[l+f+a]=h-y,o[l+f+a]=g-m,f!==s&&(b=c*d-u*p,p=c*p+u*d,d=b)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),o=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+o},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var o=0;o<r/2;o++){var n=t[o];t[o]=t[r-o-1],t[r-o-1]=n,n=e[o],e[o]=-e[r-o-1],e[r-o-1]=-n}},y.prototype.normalize13b=function(t,e){for(var r=0,o=0;o<e/2;o++){var n=8192*Math.round(t[2*o+1]/e)+Math.round(t[2*o]/e)+r;t[o]=67108863&n,r=n<67108864?0:n/67108864|0}return t},y.prototype.convert13b=function(t,e,r,n){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<n;++a)r[a]=0;o(0===i),o(0==(-8192&i))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var o=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(o),i=this.stub(o),a=new Array(o),s=new Array(o),c=new Array(o),u=new Array(o),l=new Array(o),d=new Array(o),p=r.words;p.length=o,this.convert13b(t.words,t.length,a,o),this.convert13b(e.words,e.length,u,o),this.transform(a,i,s,c,o,n),this.transform(u,i,l,d,o,n);for(var f=0;f<o;f++){var h=s[f]*l[f]-c[f]*d[f];c[f]=s[f]*d[f]+c[f]*l[f],s[f]=h}return this.conjugate(s,c,o),this.transform(s,c,p,i,o,n),this.conjugate(p,i,o),this.normalize13b(p,o),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){o("number"==typeof t),o(t<67108864);for(var e=0,r=0;r<this.length;r++){var n=(0|this.words[r])*t,i=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var o=r/26|0,n=r%26;e[r]=(t.words[o]&1<<n)>>>n}return e}(t);if(0===e.length)return new i(1);for(var r=this,o=0;o<e.length&&0===e[o];o++,r=r.sqr());if(++o<e.length)for(var n=r.sqr();o<e.length;o++,n=n.sqr())0!==e[o]&&(r=r.mul(n));return r},i.prototype.iushln=function(t){o("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,c=(0|this.words[e])-s<<r;this.words[e]=c|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(t){return o(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var n;o("number"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,c=r;if(n-=a,n=Math.max(0,n),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=n);u--){var d=0|this.words[u];this.words[u]=l<<26-i|d>>>i,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return o(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){o("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},i.prototype.imaskn=function(t){o("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return o("number"==typeof t),o(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(o("number"==typeof t),o(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var n,i,a=t.length+r;this._expand(a);var s=0;for(n=0;n<t.length;n++){i=(0|this.words[n+r])+s;var c=(0|t.words[n])*e;s=((i-=67108863&c)>>26)-(c/67108864|0),this.words[n+r]=67108863&i}for(;n<this.length-r;n++)s=(i=(0|this.words[n+r])+s)>>26,this.words[n+r]=67108863&i;if(0===s)return this.strip();for(o(-1===s),s=0,n=0;n<this.length;n++)s=(i=-(0|this.words[n])+s)>>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),o=this.clone(),n=t,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),o.iushln(r),a=0|n.words[n.length-1]);var s,c=o.length-n.length;if("mod"!==e){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=o.clone()._ishlnsubmul(n,1,c);0===l.negative&&(o=l,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var p=67108864*(0|o.words[n.length+d])+(0|o.words[n.length+d-1]);for(p=Math.min(p/a|0,67108863),o._ishlnsubmul(n,p,d);0!==o.negative;)p--,o.negative=0,o._ishlnsubmul(n,1,d),o.isZero()||(o.negative^=1);s&&(s.words[d]=p)}return s&&s.strip(),o.strip(),"div"!==e&&0!==r&&o.iushrn(r),{div:s||null,mod:o}},i.prototype.divmod=function(t,e,r){return o(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:n,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,o=t.ushrn(1),n=t.andln(1),i=r.cmp(o);return i<0||1===n&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){o(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(e*r+(0|this.words[n]))%t;return r},i.prototype.idivn=function(t){o(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){o(0===t.negative),o(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=e.clone();!e.isZero();){for(var p=0,f=1;0==(e.words[0]&f)&&p<26;++p,f<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(l),a.isub(d)),n.iushrn(1),a.iushrn(1);for(var h=0,g=1;0==(r.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),a.isub(c)):(r.isub(e),s.isub(n),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(t){o(0===t.negative),o(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,a=new i(1),s=new i(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,p=1;0==(r.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(n=0===e.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(t),n},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var o=0;e.isEven()&&r.isEven();o++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var i=e;e=r,r=i}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(o)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){o("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var i=n,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),o(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var o=0|this.words[r],n=0|t.words[r];if(o!==n){o<n?e=-1:o>n&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new B(t)},i.prototype.toRed=function(t){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return o(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return o(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else o(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){B.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var o=e<this.n?-1:r.ucmp(this.p);return 0===o?(r.words[0]=0,r.length=1):o>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},n(v,b),v.prototype.split=function(t,e){for(var r=Math.min(t.length,9),o=0;o<r;o++)e.words[o]=t.words[o];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var n=t.words[9];for(e.words[e.length++]=4194303&n,o=10;o<t.length;o++){var i=0|t.words[o];t.words[o-10]=(4194303&i)<<4|n>>>22,n=i}n>>>=22,t.words[o-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var o=0|t.words[r];e+=977*o,t.words[r]=67108863&e,e=64*o+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(A,b),n(w,b),n(M,b),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var o=19*(0|t.words[r])+e,n=67108863&o;o>>>=26,t.words[r]=n,e=o}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(m[t])return m[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return m[t]=e,e},B.prototype._verify1=function(t){o(0===t.negative,"red works only with positives"),o(t.red,"red works only with red numbers")},B.prototype._verify2=function(t,e){o(0==(t.negative|e.negative),"red works only with positives"),o(t.red&&t.red===e.red,"red works only with red numbers")},B.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},B.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},B.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},B.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},B.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},B.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},B.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},B.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},B.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},B.prototype.isqr=function(t){return this.imul(t,t.clone())},B.prototype.sqr=function(t){return this.mul(t,t)},B.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(o(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);o(!n.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,n),p=this.pow(t,n.addn(1).iushrn(1)),f=this.pow(t,n),h=a;0!==f.cmp(s);){for(var g=f,y=0;0!==g.cmp(s);y++)g=g.redSqr();o(y<h);var m=this.pow(d,new i(1).iushln(h-y-1));p=p.redMul(m),d=m.redSqr(),f=f.redMul(d),h=y}return p},B.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},B.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var o=2;o<r.length;o++)r[o]=this.mul(r[o-1],t);var n=r[0],a=0,s=0,c=e.bitLength()%26;for(0===c&&(c=26),o=e.length-1;o>=0;o--){for(var u=e.words[o],l=c-1;l>=0;l--){var d=u>>l&1;n!==r[0]&&(n=this.sqr(n)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===o&&0===l)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}c=26}return n},B.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},B.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new C(t)},n(C,B),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),o=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(o).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),o=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(o).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){var o=r(141),n=r(142),i=r(82),a=r(143);t.exports=function(t){return o(t)||n(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return c})),r.d(e,"f",(function(){return l})),r.d(e,"d",(function(){return p})),r.d(e,"e",(function(){return f})),r.d(e,"h",(function(){return h})),r.d(e,"g",(function(){return g}));var o=r(1);const n=new(r(3).a)("strings/5.7.0");var i,a;function s(t,e,r,o,n){if(t===a.BAD_PREFIX||t===a.UNEXPECTED_CONTINUE){let t=0;for(let o=e+1;o<r.length&&r[o]>>6==2;o++)t++;return t}return t===a.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(i||(i={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(a||(a={}));const c=Object.freeze({error:function(t,e,r,o,i){return n.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:s,replace:function(t,e,r,o,n){return t===a.OVERLONG?(o.push(n),0):(o.push(65533),s(t,e,r))}});function u(t,e){null==e&&(e=c.error),t=Object(o.a)(t);const r=[];let n=0;for(;n<t.length;){const o=t[n++];if(o>>7==0){r.push(o);continue}let i=null,s=null;if(192==(224&o))i=1,s=127;else if(224==(240&o))i=2,s=2047;else{if(240!=(248&o)){n+=e(128==(192&o)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,n-1,t,r);continue}i=3,s=65535}if(n-1+i>=t.length){n+=e(a.OVERRUN,n-1,t,r);continue}let c=o&(1<<8-i-1)-1;for(let o=0;o<i;o++){let o=t[n];if(128!=(192&o)){n+=e(a.MISSING_CONTINUE,n,t,r),c=null;break}c=c<<6|63&o,n++}null!==c&&(c>1114111?n+=e(a.OUT_OF_RANGE,n-1-i,t,r,c):c>=55296&&c<=57343?n+=e(a.UTF16_SURROGATE,n-1-i,t,r,c):c<=s?n+=e(a.OVERLONG,n-1-i,t,r,c):r.push(c))}return r}function l(t,e=i.current){e!=i.current&&(n.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){const o=t.charCodeAt(e);if(o<128)r.push(o);else if(o<2048)r.push(o>>6|192),r.push(63&o|128);else if(55296==(64512&o)){e++;const n=t.charCodeAt(e);if(e>=t.length||56320!=(64512&n))throw new Error("invalid utf-8 string");const i=65536+((1023&o)<<10)+(1023&n);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(o>>12|224),r.push(o>>6&63|128),r.push(63&o|128)}return Object(o.a)(r)}function d(t){const e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function p(t,e){return'"'+u(t,e).map(t=>{if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?d(t):d(55296+((t-=65536)>>10&1023))+d(56320+(1023&t))}).join("")+'"'}function f(t){return t.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))).join("")}function h(t,e){return f(u(t,e))}function g(t,e=i.current){return u(l(t,e))}},function(t,e,r){var o=r(257),n=r(258),i=r(82),a=r(259);t.exports=function(t,e){return o(t)||n(t,e)||i(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.r(e),r.d(e,"decodeParams",(function(){return u})),r.d(e,"encodeParams",(function(){return l})),r.d(e,"encodeParamsV2ByABI",(function(){return f})),r.d(e,"decodeParamsV2ByABI",(function(){return h}));var o=r(9),n=r(10),i=r(11),a=new o.AbiCoder;function s(t){return n.default.address.toHex(t).replace(i.c,"0x")}function c(t){if("[object Object]"!==Object.prototype.toString.call(t)&&"[object Array]"!==Object.prototype.toString.call(t))return t;var e,r=(e=t,Array.isArray(e)?[]:{});return Object.keys(t).forEach((function(e){return r[e]=t[e]instanceof Object&&!t[e]._isBigNumber?c(t[e]):t[e]})),r}function u(t,e,r,o){if(r&&"boolean"!=typeof r||(o=r,r=e,e=t,t=[]),o&&r.replace(/^0x/,"").length%64==8&&(r="0x"+r.replace(/^0x/,"").substring(8)),r.replace(/^0x/,"").length%64)throw new Error("The encoded string is not valid. Its length must be a multiple of 64.");return e=e.map((function(t){return/trcToken/.test(t)&&(t=t.replace(/trcToken/,"uint256")),t})),a.decode(e,r).reduce((function(r,o,n){return"address"==e[n]&&(o=i.a+o.substr(2).toLowerCase()),t.length?r[t[n]]=o:r.push(o),r}),t.length?{}:[])}function l(t,e){for(var r=0;r<t.length;r++)"address"===t[r]&&(e[r]=n.default.address.toHex(e[r]).replace(i.c,"0x"));return a.encode(t,e)}function d(t){var e=t.match(/([a-zA-Z0-9])(\[.*\])/);return e?e[2]:""}function p(t){return(d(t).match(/\]\[/g)||[]).length+1}function f(t,e){var r=[],o=function t(e){if(e&&0===e.type.indexOf("tuple")&&e.components){var r=e.components.map((function(e){return t(e)}));return"tuple(".concat(r.join(","),")").concat(d(e.type))}return/trcToken/.test(e.type)?e.type.replace(/trcToken/,"uint256"):e.type},n=function t(e){return Array.isArray(e)?(e.forEach((function(r,o){e[o]=t(r)})),e):s(e)},i=function t(e,r,o){o>1?r.length&&r.forEach((function(r){t(e,r,o-1)})):r.length&&o&&r.forEach((function(t){c(e,t)}))},c=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;e.length&&e.forEach((function(e,o){var a=e.type;if(r[o])if("address"===a)r[o]=s(r[o]);else if("address["===a.match(/^([^\x5b]*)(\x5b|$)/)[0])n(r[o]);else if(0===a.indexOf("tuple"))if(d(a)){var c=p(a);i(e.components,r[o],c)}else t(e.components,r[o])}))};if(t.inputs&&t.inputs.length)for(var u=0;u<t.inputs.length;u++){var l=t.inputs[u].type;"bool"===l&&"false"===e[u]&&(e[u]=!1),r.push(0===l.indexOf("tuple")?o(t.inputs[u]):l),e.length<r.length&&e.push("")}return c(t.inputs,e),function(t){for(var e=0;e<t.length;e++){var r=t[e];/trcToken/.test(r)&&(t[e]=r.replace(/trcToken/,"uint256"))}}(r),a.encode(r,e)}function h(t,e){var r=function t(e){return Array.isArray(e)?(e.forEach((function(r,o){e[o]=t(r)})),e):n.default.address.toHex(e)},o=function t(e,r,o){o>1?r.length&&r.forEach((function(r){t(e,r,o-1)})):r.length&&o&&r.forEach((function(t){s(e,t)}))},i=function t(e){var r=e.name?" ".concat(e.name):"";if(e&&0===e.type.indexOf("tuple")&&e.components){var o=e.components.map((function(e){return t(e)}));return"tuple(".concat(o.join(","),")").concat(d(e.type)).concat(r)}return/trcToken/.test(e.type)?e.type.replace(/trcToken/,"uint256")+r:e.type+r},s=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;e.length&&e.forEach((function(e,a){var s=e.type,c=e.name;if(i[a])if("address"===s)i[a]=n.default.address.toHex(i[a]),c&&(i[c]=n.default.address.toHex(i[c]));else if("address["===s.match(/^([^\x5b]*)(\x5b|$)/)[0])r(i[a]),c&&r(i[c]);else if(0===s.indexOf("tuple")){if(d(s)){var u=p(s);o(e.components,i[a],u)}else t(e.components,i[a]);c&&(i[c]=i[a])}}))};if(t.outputs&&t.outputs.length>0){for(var u=[],l=0;l<t.outputs.length;l++){var f=t.outputs[l].type,h=t.outputs[l].name?" ".concat(t.outputs[l].name):"";u.push(0===f.indexOf("tuple")?i(t.outputs[l]):f+h)}!function(t){for(var e=0;e<t.length;e++){var r=t[e];/^trcToken/.test(r)&&(t[e]=r.replace(/^trcToken/,"uint256"))}}(u),e&&e.length||(e=new Uint8Array(32*t.outputs.length));var g=c(a.decode(u,e));return s(t.outputs,g),g}return[]}},function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"txJsonToPb",(function(){return st})),r.d(e,"txPbToTxID",(function(){return pt})),r.d(e,"txJsonToPbWithArgs",(function(){return ct})),r.d(e,"txCheckWithArgs",(function(){return dt})),r.d(e,"txCheck",(function(){return lt}));var o=r(14),n=r.n(o),i=r(15),a=r(9),s=r(10);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){n()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l=r(89),d=r(90),p=d.Transaction,f=d.Permission,h=d.Key,g=r(169),y=g.TransferContract,m=g.FreezeBalanceContract,b=g.UnfreezeBalanceContract,v=g.WithdrawBalanceContract,A=g.FreezeBalanceV2Contract,w=g.UnfreezeBalanceV2Contract,M=g.WithdrawExpireUnfreezeContract,B=g.DelegateResourceContract,C=g.UnDelegateResourceContract,E=r(170),S=E.TransferAssetContract,I=E.ParticipateAssetIssueContract,O=E.AssetIssueContract,T=E.UpdateAssetContract,_=r(171),x=_.TriggerSmartContract,F=_.ClearABIContract,P=_.UpdateEnergyLimitContract,k=_.UpdateSettingContract,R=_.CreateSmartContract,N=_.SmartContract,D=r(91).ResourceCode,j=r(172),W=j.WitnessCreateContract,U=j.VoteWitnessContract,z=r(173).UpdateBrokerageContract,L=r(174),V=L.AccountCreateContract,G=L.AccountUpdateContract,H=L.SetAccountIdContract,K=L.AccountPermissionUpdateContract,q=r(175),$=q.ProposalCreateContract,Z=q.ProposalDeleteContract,J=q.ProposalApproveContract,Y=r(176),Q=Y.ExchangeCreateContract,X=Y.ExchangeInjectContract,tt=Y.ExchangeWithdrawContract,et=Y.ExchangeTransactionContract,rt=function(t){return t&&0!==t.length?new Uint8Array(s.default.address.toHex(t).match(/.{1,2}/g).map((function(t){return parseInt(t,16)}))):new Uint8Array([])},ot=function(t,e,r,o){var n=new l.Any;n.pack(t.serializeBinary(),"protocol."+r);var i=new p.Contract;i.setType(e),i.setParameter(n),o&&i.setPermissionId(o);var a=new p.raw;a.addContract(i);var s=new p;return s.setRawData(a),s},nt=function(e,r){var o=new x,n=e.owner_address,i=e.contract_address,s=e.parameter,c=void 0===s?"":s,u=e.function_selector,l=e.call_value,d=e.call_token_value,f=e.token_id,h=e.data;if(o.setOwnerAddress(rt(n)),o.setContractAddress(rt(i)),o.setCallValue(l),h)o.setData(rt(h));else if(u){var g=function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(r?"0x":"")+Object(a.keccak256)(t.from(e,"utf-8")).toString().substring(2)}(u).substring(2,10)+c;o.setData(rt(g))}return f&&o.setTokenId(f),d&&o.setCallTokenValue(d),ot(o,p.Contract.ContractType.TRIGGERSMARTCONTRACT,"TriggerSmartContract",r.Permission_id)},it=function(t,e){var r=new K,o=t.owner_address,n=t.owner,i=t.witness,a=t.actives;r.setOwnerAddress(rt(o));var s=function(t){var e=new f,r=t.type,o=t.id,n=t.permission_name,i=t.threshold,a=t.parentId,s=t.operations,c=t.keys;return e.setType(function(t){return isNaN(t)?"Active"===t?2:"Witness"===t?1:0:t}(r)),e.setId(o),e.setPermissionName(n),e.setThreshold(i),a&&e.setParentId(a),s&&e.setOperations(rt(s)),c&&e.setKeysList(c.map((function(t){var e=new h;return e.setAddress(rt(t.address)),e.setWeight(t.weight),e}))),e};return n&&r.setOwner(s(n)),i&&r.setWitness(s(i)),a&&(Array.isArray(a)?r.setActivesList(a.map((function(t){return s(t)}))):r.setActivesList([s(a)])),ot(r,p.Contract.ContractType.ACCOUNTPERMISSIONUPDATECONTRACT,"AccountPermissionUpdateContract",e.Permission_id)},at=function(t,e,r){switch(t.type){case"TransferContract":return function(t,e){var r=t.to_address,o=t.owner_address,n=t.amount,i=new y;return i.setToAddress(rt(r)),i.setOwnerAddress(rt(o)),i.setAmount(n),ot(i,p.Contract.ContractType.TRANSFERCONTRACT,"TransferContract",e.Permission_id)}(e,r);case"TransferAssetContract":return function(t,e){var r=t.to_address,o=t.owner_address,n=t.amount,i=t.asset_name,a=new S;return a.setToAddress(rt(r)),a.setOwnerAddress(rt(o)),a.setAssetName(rt(i.replace(/^0x/,""))),a.setAmount(n),ot(a,p.Contract.ContractType.TRANSFERASSETCONTRACT,"TransferAssetContract",e.Permission_id)}(e,r);case"ParticipateAssetIssueContract":return function(t,e){var r=new I;return r.setToAddress(rt(t.to_address)),r.setOwnerAddress(rt(t.owner_address)),r.setAssetName(rt(t.asset_name.replace(/^0x/,""))),r.setAmount(t.amount),ot(r,p.Contract.ContractType.PARTICIPATEASSETISSUECONTRACT,"ParticipateAssetIssueContract",e.Permission_id)}(e,r);case"TriggerSmartContract":return nt(e,r);case"FreezeBalanceContract":return function(t,e){var r=new m,o=t.owner_address,n=t.frozen_balance,i=t.frozen_duration,a=t.resource,s=t.receiver_address;return r.setOwnerAddress(rt(o)),r.setFrozenBalance(n),r.setFrozenDuration(i),a&&r.setResource(D[a]),s&&r.setReceiverAddress(rt(s)),ot(r,p.Contract.ContractType.FREEZEBALANCECONTRACT,"FreezeBalanceContract",e.Permission_id)}(e,r);case"UnfreezeBalanceContract":return function(t,e){var r=new b,o=t.owner_address,n=t.resource,i=t.receiver_address;return r.setOwnerAddress(rt(o)),n&&r.setResource(D[n]),i&&r.setReceiverAddress(rt(i)),ot(r,p.Contract.ContractType.UNFREEZEBALANCECONTRACT,"UnfreezeBalanceContract",e.Permission_id)}(e,r);case"WithdrawBalanceContract":return function(t,e){var r=new v,o=t.owner_address;return r.setOwnerAddress(rt(o)),ot(r,p.Contract.ContractType.WITHDRAWBALANCECONTRACT,"WithdrawBalanceContract",e.Permission_id)}(e,r);case"FreezeBalanceV2Contract":return function(t,e){var r=new A,o=t.owner_address,n=t.frozen_balance,i=t.resource;return r.setOwnerAddress(rt(o)),r.setFrozenBalance(n),r.setResource(D[i]),ot(r,p.Contract.ContractType.FREEZEBALANCEV2CONTRACT,"FreezeBalanceV2Contract",e.Permission_id)}(e,r);case"UnfreezeBalanceV2Contract":return function(t,e){var r=new w,o=t.owner_address,n=t.unfreeze_balance,i=t.resource;return r.setOwnerAddress(rt(o)),r.setUnfreezeBalance(n),r.setResource(D[i]),ot(r,p.Contract.ContractType.UNFREEZEBALANCEV2CONTRACT,"UnfreezeBalanceV2Contract",e.Permission_id)}(e,r);case"DelegateResourceContract":return function(t,e){var r=new B,o=t.owner_address,n=t.receiver_address,i=t.balance,a=t.resource,s=t.lock,c=void 0!==s&&s;return r.setOwnerAddress(rt(o)),r.setBalance(i),r.setResource(D[a]),r.setLock(c),r.setReceiverAddress(rt(n)),ot(r,p.Contract.ContractType.DELEGATERESOURCECONTRACT,"DelegateResourceContract",e.Permission_id)}(e,r);case"UnDelegateResourceContract":return function(t,e){var r=new C,o=t.owner_address,n=t.receiver_address,i=t.balance,a=t.resource;return r.setOwnerAddress(rt(o)),r.setBalance(i),r.setResource(D[a]),r.setReceiverAddress(rt(n)),ot(r,p.Contract.ContractType.UNDELEGATERESOURCECONTRACT,"UnDelegateResourceContract",e.Permission_id)}(e,r);case"WithdrawExpireUnfreezeContract":return function(t,e){var r=new M,o=t.owner_address;return r.setOwnerAddress(rt(o)),ot(r,p.Contract.ContractType.WITHDRAWEXPIREUNFREEZECONTRACT,"WithdrawExpireUnfreezeContract",e.Permission_id)}(e,r);case"WitnessCreateContract":return function(t,e){var r=new W,o=t.owner_address,n=t.url;return r.setOwnerAddress(rt(o)),r.setUrl(rt(n.replace(/^0x/,""))),ot(r,p.Contract.ContractType.WITNESSCREATECONTRACT,"WitnessCreateContract",e.Permission_id)}(e,r);case"VoteWitnessContract":return function(t,e){var r=new U,o=t.owner_address,n=t.votes;return r.setOwnerAddress(rt(o)),n.forEach((function(t){var e=new U.Vote,o=t.vote_address,n=t.vote_count;e.setVoteAddress(rt(o));var i=parseInt(n);e.setVoteCount(i),r.addVotes(e)})),ot(r,p.Contract.ContractType.VOTEWITNESSCONTRACT,"VoteWitnessContract",e.Permission_id)}(e,r);case"CreateSmartContract":return function(t,e){var r=null!=t&&t.new_contract?u(u({},{owner_address:t.owner_address,call_token_value:t.call_token_value,token_id:t.token_id}),t.new_contract):t,o=r.owner_address,n=r.consume_user_resource_percent,i=r.origin_energy_limit,a=r.abi,s=r.bytecode,c=void 0===s?"":s,l=r.name,d=r.parameter,f=void 0===d?"":d,h=r.call_value,g=r.call_token_value,y=r.token_id,m=r.origin_address,b=new R;b.setOwnerAddress(rt(o)),y&&b.setTokenId(y),g&&b.setCallTokenValue(g);var v=new N;if(a){var A;A="string"==typeof a?JSON.parse(a):(null==a?void 0:a.entrys)||[];var w=new N.ABI,M=function(t){var e=new N.ABI.Entry.Param,r=t.indexed,o=t.name,n=t.type;return!0===r&&e.setIndexed(!0),e.setName(o),e.setType(n),e},B=A.map((function(t){var e=t.anonymous,r=t.constant,o=t.name,n=t.inputs,i=t.outputs,a=t.type,s=t.payable,c=t.stateMutability,u=new N.ABI.Entry;return u.setAnonymous(e),u.setConstant(r),u.setName(o),n&&u.setInputsList(n.map((function(t){return M(t)}))),i&&u.setOutputsList(i.map((function(t){return M(t)}))),a&&u.setType(N.ABI.Entry.EntryType[a.toUpperCase()]),u.setPayable(s),c&&u.setStatemutability(N.ABI.Entry.StateMutabilityType[c.toUpperCase()]),u}));w.setEntrysList(B),v.setAbi(w)}if(h&&v.setCallValue(h),v.setConsumeUserResourcePercent(n),v.setOriginEnergyLimit(i),m||(m=o),v.setOriginAddress(rt(m)),c){var C=c.replace(/^0x/,"")+f.replace(/^0x/,"");v.setBytecode(rt(C))}return v.setName(l),b.setNewContract(v),ot(b,p.Contract.ContractType.CREATESMARTCONTRACT,"CreateSmartContract",e.Permission_id)}(e,r);case"ClearABIContract":return function(t,e){var r=t.contract_address,o=t.owner_address,n=new F;return n.setOwnerAddress(rt(o)),n.setContractAddress(rt(r)),ot(n,p.Contract.ContractType.CLEARABICONTRACT,"ClearABIContract")}(e);case"UpdateBrokerageContract":return function(t,e){var r=t.brokerage,o=t.owner_address,n=new z;return n.setOwnerAddress(rt(o)),n.setBrokerage(r),ot(n,p.Contract.ContractType.UPDATEBROKERAGECONTRACT,"UpdateBrokerageContract")}(e);case"AssetIssueContract":return function(t,e){var r=t.owner_address,o=t.name,n=t.abbr,i=t.description,a=t.url,s=t.total_supply,c=t.trx_num,u=t.num,l=t.start_time,d=t.end_time,f=t.precision,h=t.free_asset_net_limit,g=t.public_free_asset_net_limit,y=t.public_free_asset_net_usage,m=void 0===y?0:y,b=t.public_latest_free_net_time,v=void 0===b?0:b,A=t.vote_score,w=void 0===A?0:A,M=t.frozen_supply,B=new O;if(B.setOwnerAddress(rt(r)),o&&B.setName(rt(o.replace(/^0x/,""))),n&&B.setAbbr(rt(n.replace(/^0x/,""))),B.setTotalSupply(s),B.setNum(u),B.setEndTime(d),B.setStartTime(l),B.setTrxNum(c),B.setVoteScore(w),f&&B.setPrecision(f),v&&B.setPublicLatestFreeNetTime(v),i&&B.setDescription(rt(i.replace(/^0x/,""))),a&&B.setUrl(rt(a.replace(/^0x/,""))),B.setPublicFreeAssetNetUsage(m),B.setFreeAssetNetLimit(h),B.setPublicFreeAssetNetLimit(g),M){var C=new O.FrozenSupply;C.setFrozenAmount(M.length?M[0].frozen_amount:M.frozen_amount),C.setFrozenDays(M.length?M[0].frozen_days:M.frozen_days),B.addFrozenSupply(C)}return ot(B,p.Contract.ContractType.ASSETISSUECONTRACT,"AssetIssueContract",e.Permission_id)}(e,r);case"AccountCreateContract":return function(t,e){var r=new V,o=t.account_address,n=t.owner_address;return r.setOwnerAddress(rt(n)),r.setAccountAddress(rt(o.replace(/^0x/,""))),ot(r,p.Contract.ContractType.ACCOUNTCREATECONTRACT,"AccountCreateContract",e.Permission_id)}(e,r);case"AccountUpdateContract":return function(t,e){var r=new G,o=t.account_name,n=t.owner_address;return r.setOwnerAddress(rt(n)),r.setAccountName(rt(o.replace(/^0x/,""))),ot(r,p.Contract.ContractType.ACCOUNTUPDATECONTRACT,"AccountUpdateContract",e.Permission_id)}(e,r);case"SetAccountIdContract":return function(t,e){var r=new H,o=t.account_id,n=t.owner_address;return r.setOwnerAddress(rt(n)),r.setAccountId(rt(o.replace(/^0x/,""))),ot(r,p.Contract.ContractType.SETACCOUNTIDCONTRACT,"SetAccountIdContract",e.Permission_id)}(e,r);case"ProposalCreateContract":return function(t,e){var r=new $,o=t.owner_address,n=t.parameters;return r.setOwnerAddress(rt(o)),n.forEach((function(t){r.getParametersMap().set(t.key,t.value)})),ot(r,p.Contract.ContractType.PROPOSALCREATECONTRACT,"ProposalCreateContract",e.Permission_id)}(e,r);case"ProposalDeleteContract":return function(t,e){var r=new Z,o=t.owner_address,n=t.proposal_id;return r.setOwnerAddress(rt(o)),r.setProposalId(n),ot(r,p.Contract.ContractType.PROPOSALDELETECONTRACT,"ProposalDeleteContract",e.Permission_id)}(e,r);case"ProposalApproveContract":return function(t,e){var r=new J,o=t.owner_address,n=t.proposal_id,i=t.is_add_approval;return r.setOwnerAddress(rt(o)),r.setProposalId(n),r.setIsAddApproval(i),ot(r,p.Contract.ContractType.PROPOSALAPPROVECONTRACT,"ProposalApproveContract",e.Permission_id)}(e,r);case"ExchangeCreateContract":return function(t,e){var r=new Q,o=t.owner_address,n=t.first_token_id,i=t.first_token_balance,a=t.second_token_id,s=t.second_token_balance;return r.setOwnerAddress(rt(o)),r.setFirstTokenId(rt(n.replace(/^0x/,""))),r.setFirstTokenBalance(i),r.setSecondTokenId(rt(a.replace(/^0x/,""))),r.setSecondTokenBalance(s),ot(r,p.Contract.ContractType.EXCHANGECREATECONTRACT,"ExchangeCreateContract",e.Permission_id)}(e,r);case"ExchangeInjectContract":return function(t,e){var r=new X,o=t.owner_address,n=t.exchange_id,i=t.token_id,a=t.quant;return r.setOwnerAddress(rt(o)),r.setExchangeId(n),r.setTokenId(rt(i.replace(/^0x/,""))),r.setQuant(a),ot(r,p.Contract.ContractType.EXCHANGEINJECTCONTRACT,"ExchangeInjectContract",e.Permission_id)}(e,r);case"ExchangeWithdrawContract":return function(t,e){var r=new tt,o=t.owner_address,n=t.exchange_id,i=t.token_id,a=t.quant;return r.setOwnerAddress(rt(o)),r.setExchangeId(n),r.setTokenId(rt(i.replace(/^0x/,""))),r.setQuant(a),ot(r,p.Contract.ContractType.EXCHANGEWITHDRAWCONTRACT,"ExchangeWithdrawContract",e.Permission_id)}(e,r);case"ExchangeTransactionContract":return function(t,e){var r=new et,o=t.owner_address,n=t.exchange_id,i=t.token_id,a=t.quant,s=t.expected;return r.setOwnerAddress(rt(o)),r.setExchangeId(n),r.setTokenId(rt(i.replace(/^0x/,""))),r.setQuant(a),r.setExpected(s),ot(r,p.Contract.ContractType.EXCHANGETRANSACTIONCONTRACT,"ExchangeTransactionContract",e.Permission_id)}(e,r);case"UpdateSettingContract":return function(t,e){var r=new k,o=t.owner_address,n=t.contract_address,i=t.consume_user_resource_percent;return r.setOwnerAddress(rt(o)),r.setContractAddress(rt(n)),r.setConsumeUserResourcePercent(i),ot(r,p.Contract.ContractType.UPDATESETTINGCONTRACT,"UpdateSettingContract",e.Permission_id)}(e,r);case"UpdateEnergyLimitContract":return function(t,e){var r=new P,o=t.owner_address,n=t.contract_address,i=t.origin_energy_limit;return r.setOwnerAddress(rt(o)),r.setContractAddress(rt(n)),r.setOriginEnergyLimit(i),ot(r,p.Contract.ContractType.UPDATEENERGYLIMITCONTRACT,"UpdateEnergyLimitContract",e.Permission_id)}(e,r);case"AccountPermissionUpdateContract":return it(e,r);case"UpdateAssetContract":return function(t,e){var r=new T,o=t.owner_address,n=t.description,i=t.url,a=t.new_limit,s=t.new_public_limit;return r.setOwnerAddress(rt(o)),n&&r.setDescription(rt(n.replace(/^0x/,""))),i&&r.setUrl(rt(i.replace(/^0x/,""))),a&&r.setNewLimit(a),s&&r.setNewPublicLimit(s),ot(r,p.Contract.ContractType.UPDATEASSETCONTRACT,"UpdateAssetContract",e.Permission_id)}(e,r)}},st=function(t){var e=t.raw_data,r=e.contract[0],o=r.parameter.value,n={Permission_id:r.Permission_id},i=at(r,o,n),a=i.getRawData();return a.setRefBlockBytes(rt(e.ref_block_bytes)),a.setRefBlockHash(rt(e.ref_block_hash)),e.data&&a.setData(rt(e.data)),e.fee_limit&&a.setFeeLimit(e.fee_limit),e.expiration&&a.setExpiration(e.expiration),e.timestamp&&a.setTimestamp(e.timestamp),i.setRawData(a),i},ct=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.raw_data,n=o.contract[0],i=at(n,e,{Permission_id:null==e?void 0:e.Permission_id}),a=i.getRawData();return a.setRefBlockBytes(rt(o.ref_block_bytes)),a.setRefBlockHash(rt(o.ref_block_hash)),r.data&&a.setData(rt(r.data.replace(/^0x/,""))),(r.fee_limit||e.fee_limit)&&a.setFeeLimit(r.fee_limit||e.fee_limit),o.expiration&&a.setExpiration(o.expiration),o.timestamp&&a.setTimestamp(o.timestamp),i.setRawData(a),i},ut=function(t,e){var r=e.getRawData().serializeBinary(),o=Object(i.byteArray2hexStr)(r),n=Object(a.sha256)(r);return o.toLowerCase()===t.raw_data_hex.toLowerCase()&&n.replace(/^0x/,"").toLowerCase()===t.txID.replace(/^0x/,"").toLowerCase()},lt=function(t){var e=st(t);return ut(t,e)},dt=function(t,e,r){var o=ct(t,e,r);return ut(t,o)},pt=function(t){var e=t.getRawData().serializeBinary();return Object(a.sha256)(e)}}.call(this,r(70).Buffer)},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e,r){var o;!function(n){"use strict";var i,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,u="[BigNumber Error] ",l=u+"Number primitive has more than 15 significant digits: ",d=1e14,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e9;function h(t){var e=0|t;return t>0||t===e?e:e-1}function g(t){for(var e,r,o=1,n=t.length,i=t[0]+"";o<n;){for(r=14-(e=t[o++]+"").length;r--;e="0"+e);i+=e}for(n=i.length;48===i.charCodeAt(--n););return i.slice(0,n+1||1)}function y(t,e){var r,o,n=t.c,i=e.c,a=t.s,s=e.s,c=t.e,u=e.e;if(!a||!s)return null;if(r=n&&!n[0],o=i&&!i[0],r||o)return r?o?0:-s:a;if(a!=s)return a;if(r=a<0,o=c==u,!n||!i)return o?0:!n^r?1:-1;if(!o)return c>u^r?1:-1;for(s=(c=n.length)<(u=i.length)?c:u,a=0;a<s;a++)if(n[a]!=i[a])return n[a]>i[a]^r?1:-1;return c==u?0:c>u^r?1:-1}function m(t,e,r,o){if(t<e||t>r||t!==c(t))throw Error(u+(o||"Argument")+("number"==typeof t?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function b(t){var e=t.c.length-1;return h(t.e/14)==e&&t.c[e]%2!=0}function v(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function A(t,e,r){var o,n;if(e<0){for(n=r+".";++e;n+=r);t=n+t}else if(++e>(o=t.length)){for(n=r,e-=o;--e;n+=r);t+=n}else e<o&&(t=t.slice(0,e)+"."+t.slice(e));return t}(i=function t(e){var r,o,n,i,w,M,B,C,E,S=U.prototype={constructor:U,toString:null,valueOf:null},I=new U(1),O=20,T=4,_=-7,x=21,F=-1e7,P=1e7,k=!1,R=1,N=0,D={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",W=!0;function U(t,e){var r,i,s,u,d,p,f,h,g=this;if(!(g instanceof U))return new U(t,e);if(null==e){if(t&&!0===t._isBigNumber)return g.s=t.s,void(!t.c||t.e>P?g.c=g.e=null:t.e<F?g.c=[g.e=0]:(g.e=t.e,g.c=t.c.slice()));if((p="number"==typeof t)&&0*t==0){if(g.s=1/t<0?(t=-t,-1):1,t===~~t){for(u=0,d=t;d>=10;d/=10,u++);return void(u>P?g.c=g.e=null:(g.e=u,g.c=[t]))}h=String(t)}else{if(!a.test(h=String(t)))return n(g,h,p);g.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(u=h.indexOf("."))>-1&&(h=h.replace(".","")),(d=h.search(/e/i))>0?(u<0&&(u=d),u+=+h.slice(d+1),h=h.substring(0,d)):u<0&&(u=h.length)}else{if(m(e,2,j.length,"Base"),10==e&&W)return G(g=new U(t),O+g.e+1,T);if(h=String(t),p="number"==typeof t){if(0*t!=0)return n(g,h,p,e);if(g.s=1/t<0?(h=h.slice(1),-1):1,U.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(l+t)}else g.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=j.slice(0,e),u=d=0,f=h.length;d<f;d++)if(r.indexOf(i=h.charAt(d))<0){if("."==i){if(d>u){u=f;continue}}else if(!s&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){s=!0,d=-1,u=0;continue}return n(g,String(t),p,e)}p=!1,(u=(h=o(h,e,10,g.s)).indexOf("."))>-1?h=h.replace(".",""):u=h.length}for(d=0;48===h.charCodeAt(d);d++);for(f=h.length;48===h.charCodeAt(--f););if(h=h.slice(d,++f)){if(f-=d,p&&U.DEBUG&&f>15&&(t>9007199254740991||t!==c(t)))throw Error(l+g.s*t);if((u=u-d-1)>P)g.c=g.e=null;else if(u<F)g.c=[g.e=0];else{if(g.e=u,g.c=[],d=(u+1)%14,u<0&&(d+=14),d<f){for(d&&g.c.push(+h.slice(0,d)),f-=14;d<f;)g.c.push(+h.slice(d,d+=14));d=14-(h=h.slice(d)).length}else d-=f;for(;d--;h+="0");g.c.push(+h)}}else g.c=[g.e=0]}function z(t,e,r,o){var n,i,a,s,c;if(null==r?r=T:m(r,0,8),!t.c)return t.toString();if(n=t.c[0],a=t.e,null==e)c=g(t.c),c=1==o||2==o&&(a<=_||a>=x)?v(c,a):A(c,a,"0");else if(i=(t=G(new U(t),e,r)).e,s=(c=g(t.c)).length,1==o||2==o&&(e<=i||i<=_)){for(;s<e;c+="0",s++);c=v(c,i)}else if(e-=a,c=A(c,i,"0"),i+1>s){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=i-s)>0)for(i+1==s&&(c+=".");e--;c+="0");return t.s<0&&n?"-"+c:c}function L(t,e){for(var r,o=1,n=new U(t[0]);o<t.length;o++){if(!(r=new U(t[o])).s){n=r;break}e.call(n,r)&&(n=r)}return n}function V(t,e,r){for(var o=1,n=e.length;!e[--n];e.pop());for(n=e[0];n>=10;n/=10,o++);return(r=o+14*r-1)>P?t.c=t.e=null:r<F?t.c=[t.e=0]:(t.e=r,t.c=e),t}function G(t,e,r,o){var n,i,a,u,l,f,h,g=t.c,y=p;if(g){t:{for(n=1,u=g[0];u>=10;u/=10,n++);if((i=e-n)<0)i+=14,a=e,h=(l=g[f=0])/y[n-a-1]%10|0;else if((f=s((i+1)/14))>=g.length){if(!o)break t;for(;g.length<=f;g.push(0));l=h=0,n=1,a=(i%=14)-14+1}else{for(l=u=g[f],n=1;u>=10;u/=10,n++);h=(a=(i%=14)-14+n)<0?0:l/y[n-a-1]%10|0}if(o=o||e<0||null!=g[f+1]||(a<0?l:l%y[n-a-1]),o=r<4?(h||o)&&(0==r||r==(t.s<0?3:2)):h>5||5==h&&(4==r||o||6==r&&(i>0?a>0?l/y[n-a]:0:g[f-1])%10&1||r==(t.s<0?8:7)),e<1||!g[0])return g.length=0,o?(e-=t.e+1,g[0]=y[(14-e%14)%14],t.e=-e||0):g[0]=t.e=0,t;if(0==i?(g.length=f,u=1,f--):(g.length=f+1,u=y[14-i],g[f]=a>0?c(l/y[n-a]%y[a])*u:0),o)for(;;){if(0==f){for(i=1,a=g[0];a>=10;a/=10,i++);for(a=g[0]+=u,u=1;a>=10;a/=10,u++);i!=u&&(t.e++,g[0]==d&&(g[0]=1));break}if(g[f]+=u,g[f]!=d)break;g[f--]=0,u=1}for(i=g.length;0===g[--i];g.pop());}t.e>P?t.c=t.e=null:t.e<F&&(t.c=[t.e=0])}return t}function H(t){var e,r=t.e;return null===r?t.toString():(e=g(t.c),e=r<=_||r>=x?v(e,r):A(e,r,"0"),t.s<0?"-"+e:e)}return U.clone=t,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(u+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(m(r=t[e],0,f,e),O=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(m(r=t[e],0,8,e),T=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(m(r[0],-f,0,e),m(r[1],0,f,e),_=r[0],x=r[1]):(m(r,-f,f,e),_=-(x=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)m(r[0],-f,-1,e),m(r[1],1,f,e),F=r[0],P=r[1];else{if(m(r,-f,f,e),!r)throw Error(u+e+" cannot be zero: "+r);F=-(P=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(u+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw k=!r,Error(u+"crypto unavailable");k=r}else k=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(m(r=t[e],0,9,e),R=r),t.hasOwnProperty(e="POW_PRECISION")&&(m(r=t[e],0,f,e),N=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(u+e+" not an object: "+r);D=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+e+" invalid: "+r);W="0123456789"==r.slice(0,10),j=r}}return{DECIMAL_PLACES:O,ROUNDING_MODE:T,EXPONENTIAL_AT:[_,x],RANGE:[F,P],CRYPTO:k,MODULO_MODE:R,POW_PRECISION:N,FORMAT:D,ALPHABET:j}},U.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!U.DEBUG)return!0;var e,r,o=t.c,n=t.e,i=t.s;t:if("[object Array]"=={}.toString.call(o)){if((1===i||-1===i)&&n>=-f&&n<=f&&n===c(n)){if(0===o[0]){if(0===n&&1===o.length)return!0;break t}if((e=(n+1)%14)<1&&(e+=14),String(o[0]).length==e){for(e=0;e<o.length;e++)if((r=o[e])<0||r>=d||r!==c(r))break t;if(0!==r)return!0}}}else if(null===o&&null===n&&(null===i||1===i||-1===i))return!0;throw Error(u+"Invalid BigNumber: "+t)},U.maximum=U.max=function(){return L(arguments,S.lt)},U.minimum=U.min=function(){return L(arguments,S.gt)},U.random=(i=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,o,n,a,l=0,d=[],h=new U(I);if(null==t?t=O:m(t,0,f),n=s(t/14),k)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(n*=2));l<n;)(a=131072*e[l]+(e[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[l]=r[0],e[l+1]=r[1]):(d.push(a%1e14),l+=2);l=n/2}else{if(!crypto.randomBytes)throw k=!1,Error(u+"crypto unavailable");for(e=crypto.randomBytes(n*=7);l<n;)(a=281474976710656*(31&e[l])+1099511627776*e[l+1]+4294967296*e[l+2]+16777216*e[l+3]+(e[l+4]<<16)+(e[l+5]<<8)+e[l+6])>=9e15?crypto.randomBytes(7).copy(e,l):(d.push(a%1e14),l+=7);l=n/7}if(!k)for(;l<n;)(a=i())<9e15&&(d[l++]=a%1e14);for(t%=14,(n=d[--l])&&t&&(a=p[14-t],d[l]=c(n/a)*a);0===d[l];d.pop(),l--);if(l<0)d=[o=0];else{for(o=-1;0===d[0];d.splice(0,1),o-=14);for(l=1,a=d[0];a>=10;a/=10,l++);l<14&&(o-=14-l)}return h.e=o,h.c=d,h}),U.sum=function(){for(var t=1,e=arguments,r=new U(e[0]);t<e.length;)r=r.plus(e[t++]);return r},o=function(){function t(t,e,r,o){for(var n,i,a=[0],s=0,c=t.length;s<c;){for(i=a.length;i--;a[i]*=e);for(a[0]+=o.indexOf(t.charAt(s++)),n=0;n<a.length;n++)a[n]>r-1&&(null==a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}return function(e,o,n,i,a){var s,c,u,l,d,p,f,h,y=e.indexOf("."),m=O,b=T;for(y>=0&&(l=N,N=0,e=e.replace(".",""),p=(h=new U(o)).pow(e.length-y),N=l,h.c=t(A(g(p.c),p.e,"0"),10,n,"0123456789"),h.e=h.c.length),u=l=(f=t(e,o,n,a?(s=j,"0123456789"):(s="0123456789",j))).length;0==f[--l];f.pop());if(!f[0])return s.charAt(0);if(y<0?--u:(p.c=f,p.e=u,p.s=i,f=(p=r(p,h,m,b,n)).c,d=p.r,u=p.e),y=f[c=u+m+1],l=n/2,d=d||c<0||null!=f[c+1],d=b<4?(null!=y||d)&&(0==b||b==(p.s<0?3:2)):y>l||y==l&&(4==b||d||6==b&&1&f[c-1]||b==(p.s<0?8:7)),c<1||!f[0])e=d?A(s.charAt(1),-m,s.charAt(0)):s.charAt(0);else{if(f.length=c,d)for(--n;++f[--c]>n;)f[c]=0,c||(++u,f=[1].concat(f));for(l=f.length;!f[--l];);for(y=0,e="";y<=l;e+=s.charAt(f[y++]));e=A(e,u,s.charAt(0))}return e}}(),r=function(){function t(t,e,r){var o,n,i,a,s=0,c=t.length,u=e%1e7,l=e/1e7|0;for(t=t.slice();c--;)s=((n=u*(i=t[c]%1e7)+(o=l*i+(a=t[c]/1e7|0)*u)%1e7*1e7+s)/r|0)+(o/1e7|0)+l*a,t[c]=n%r;return s&&(t=[s].concat(t)),t}function e(t,e,r,o){var n,i;if(r!=o)i=r>o?1:-1;else for(n=i=0;n<r;n++)if(t[n]!=e[n]){i=t[n]>e[n]?1:-1;break}return i}function r(t,e,r,o){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*o+t[r]-e[r];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(o,n,i,a,s){var u,l,p,f,g,y,m,b,v,A,w,M,B,C,E,S,I,O=o.s==n.s?1:-1,T=o.c,_=n.c;if(!(T&&T[0]&&_&&_[0]))return new U(o.s&&n.s&&(T?!_||T[0]!=_[0]:_)?T&&0==T[0]||!_?0*O:O/0:NaN);for(v=(b=new U(O)).c=[],O=i+(l=o.e-n.e)+1,s||(s=d,l=h(o.e/14)-h(n.e/14),O=O/14|0),p=0;_[p]==(T[p]||0);p++);if(_[p]>(T[p]||0)&&l--,O<0)v.push(1),f=!0;else{for(C=T.length,S=_.length,p=0,O+=2,(g=c(s/(_[0]+1)))>1&&(_=t(_,g,s),T=t(T,g,s),S=_.length,C=T.length),B=S,w=(A=T.slice(0,S)).length;w<S;A[w++]=0);I=_.slice(),I=[0].concat(I),E=_[0],_[1]>=s/2&&E++;do{if(g=0,(u=e(_,A,S,w))<0){if(M=A[0],S!=w&&(M=M*s+(A[1]||0)),(g=c(M/E))>1)for(g>=s&&(g=s-1),m=(y=t(_,g,s)).length,w=A.length;1==e(y,A,m,w);)g--,r(y,S<m?I:_,m,s),m=y.length,u=1;else 0==g&&(u=g=1),m=(y=_.slice()).length;if(m<w&&(y=[0].concat(y)),r(A,y,w,s),w=A.length,-1==u)for(;e(_,A,S,w)<1;)g++,r(A,S<w?I:_,w,s),w=A.length}else 0===u&&(g++,A=[0]);v[p++]=g,A[0]?A[w++]=T[B]||0:(A=[T[B]],w=1)}while((B++<C||null!=A[0])&&O--);f=null!=A[0],v[0]||v.splice(0,1)}if(s==d){for(p=1,O=v[0];O>=10;O/=10,p++);G(b,i+(b.e=p+14*l-1)+1,a,f)}else b.e=l,b.r=+f;return b}}(),w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,M=/^([^.]+)\.$/,B=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,E=/^\s*\+(?=[\w.])|^\s+|\s+$/g,n=function(t,e,r,o){var n,i=r?e:e.replace(E,"");if(C.test(i))t.s=isNaN(i)?null:i<0?-1:1;else{if(!r&&(i=i.replace(w,(function(t,e,r){return n="x"==(r=r.toLowerCase())?16:"b"==r?2:8,o&&o!=n?t:e})),o&&(n=o,i=i.replace(M,"$1").replace(B,"0.$1")),e!=i))return new U(i,n);if(U.DEBUG)throw Error(u+"Not a"+(o?" base "+o:"")+" number: "+e);t.s=null}t.c=t.e=null},S.absoluteValue=S.abs=function(){var t=new U(this);return t.s<0&&(t.s=1),t},S.comparedTo=function(t,e){return y(this,new U(t,e))},S.decimalPlaces=S.dp=function(t,e){var r,o,n,i=this;if(null!=t)return m(t,0,f),null==e?e=T:m(e,0,8),G(new U(i),t+i.e+1,e);if(!(r=i.c))return null;if(o=14*((n=r.length-1)-h(this.e/14)),n=r[n])for(;n%10==0;n/=10,o--);return o<0&&(o=0),o},S.dividedBy=S.div=function(t,e){return r(this,new U(t,e),O,T)},S.dividedToIntegerBy=S.idiv=function(t,e){return r(this,new U(t,e),0,1)},S.exponentiatedBy=S.pow=function(t,e){var r,o,n,i,a,l,d,p,f=this;if((t=new U(t)).c&&!t.isInteger())throw Error(u+"Exponent not an integer: "+H(t));if(null!=e&&(e=new U(e)),a=t.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!t.c||!t.c[0])return p=new U(Math.pow(+H(f),a?t.s*(2-b(t)):+H(t))),e?p.mod(e):p;if(l=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new U(NaN);(o=!l&&f.isInteger()&&e.isInteger())&&(f=f.mod(e))}else{if(t.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||a&&f.c[1]>=24e7:f.c[0]<8e13||a&&f.c[0]<=9999975e7)))return i=f.s<0&&b(t)?-0:0,f.e>-1&&(i=1/i),new U(l?1/i:i);N&&(i=s(N/14+2))}for(a?(r=new U(.5),l&&(t.s=1),d=b(t)):d=(n=Math.abs(+H(t)))%2,p=new U(I);;){if(d){if(!(p=p.times(f)).c)break;i?p.c.length>i&&(p.c.length=i):o&&(p=p.mod(e))}if(n){if(0===(n=c(n/2)))break;d=n%2}else if(G(t=t.times(r),t.e+1,1),t.e>14)d=b(t);else{if(0===(n=+H(t)))break;d=n%2}f=f.times(f),i?f.c&&f.c.length>i&&(f.c.length=i):o&&(f=f.mod(e))}return o?p:(l&&(p=I.div(p)),e?p.mod(e):i?G(p,N,T,void 0):p)},S.integerValue=function(t){var e=new U(this);return null==t?t=T:m(t,0,8),G(e,e.e+1,t)},S.isEqualTo=S.eq=function(t,e){return 0===y(this,new U(t,e))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(t,e){return y(this,new U(t,e))>0},S.isGreaterThanOrEqualTo=S.gte=function(t,e){return 1===(e=y(this,new U(t,e)))||0===e},S.isInteger=function(){return!!this.c&&h(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(t,e){return y(this,new U(t,e))<0},S.isLessThanOrEqualTo=S.lte=function(t,e){return-1===(e=y(this,new U(t,e)))||0===e},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(t,e){var r,o,n,i,a=this,s=a.s;if(e=(t=new U(t,e)).s,!s||!e)return new U(NaN);if(s!=e)return t.s=-e,a.plus(t);var c=a.e/14,u=t.e/14,l=a.c,p=t.c;if(!c||!u){if(!l||!p)return l?(t.s=-e,t):new U(p?a:NaN);if(!l[0]||!p[0])return p[0]?(t.s=-e,t):new U(l[0]?a:3==T?-0:0)}if(c=h(c),u=h(u),l=l.slice(),s=c-u){for((i=s<0)?(s=-s,n=l):(u=c,n=p),n.reverse(),e=s;e--;n.push(0));n.reverse()}else for(o=(i=(s=l.length)<(e=p.length))?s:e,s=e=0;e<o;e++)if(l[e]!=p[e]){i=l[e]<p[e];break}if(i&&(n=l,l=p,p=n,t.s=-t.s),(e=(o=p.length)-(r=l.length))>0)for(;e--;l[r++]=0);for(e=d-1;o>s;){if(l[--o]<p[o]){for(r=o;r&&!l[--r];l[r]=e);--l[r],l[o]+=d}l[o]-=p[o]}for(;0==l[0];l.splice(0,1),--u);return l[0]?V(t,l,u):(t.s=3==T?-1:1,t.c=[t.e=0],t)},S.modulo=S.mod=function(t,e){var o,n,i=this;return t=new U(t,e),!i.c||!t.s||t.c&&!t.c[0]?new U(NaN):!t.c||i.c&&!i.c[0]?new U(i):(9==R?(n=t.s,t.s=1,o=r(i,t,0,3),t.s=n,o.s*=n):o=r(i,t,0,R),(t=i.minus(o.times(t))).c[0]||1!=R||(t.s=i.s),t)},S.multipliedBy=S.times=function(t,e){var r,o,n,i,a,s,c,u,l,p,f,g,y,m,b=this,v=b.c,A=(t=new U(t,e)).c;if(!(v&&A&&v[0]&&A[0]))return!b.s||!t.s||v&&!v[0]&&!A||A&&!A[0]&&!v?t.c=t.e=t.s=null:(t.s*=b.s,v&&A?(t.c=[0],t.e=0):t.c=t.e=null),t;for(o=h(b.e/14)+h(t.e/14),t.s*=b.s,(c=v.length)<(p=A.length)&&(y=v,v=A,A=y,n=c,c=p,p=n),n=c+p,y=[];n--;y.push(0));for(m=d,1e7,n=p;--n>=0;){for(r=0,f=A[n]%1e7,g=A[n]/1e7|0,i=n+(a=c);i>n;)r=((u=f*(u=v[--a]%1e7)+(s=g*u+(l=v[a]/1e7|0)*f)%1e7*1e7+y[i]+r)/m|0)+(s/1e7|0)+g*l,y[i--]=u%m;y[i]=r}return r?++o:y.splice(0,1),V(t,y,o)},S.negated=function(){var t=new U(this);return t.s=-t.s||null,t},S.plus=function(t,e){var r,o=this,n=o.s;if(e=(t=new U(t,e)).s,!n||!e)return new U(NaN);if(n!=e)return t.s=-e,o.minus(t);var i=o.e/14,a=t.e/14,s=o.c,c=t.c;if(!i||!a){if(!s||!c)return new U(n/0);if(!s[0]||!c[0])return c[0]?t:new U(s[0]?o:0*n)}if(i=h(i),a=h(a),s=s.slice(),n=i-a){for(n>0?(a=i,r=c):(n=-n,r=s),r.reverse();n--;r.push(0));r.reverse()}for((n=s.length)-(e=c.length)<0&&(r=c,c=s,s=r,e=n),n=0;e;)n=(s[--e]=s[e]+c[e]+n)/d|0,s[e]=d===s[e]?0:s[e]%d;return n&&(s=[n].concat(s),++a),V(t,s,a)},S.precision=S.sd=function(t,e){var r,o,n,i=this;if(null!=t&&t!==!!t)return m(t,1,f),null==e?e=T:m(e,0,8),G(new U(i),t,e);if(!(r=i.c))return null;if(o=14*(n=r.length-1)+1,n=r[n]){for(;n%10==0;n/=10,o--);for(n=r[0];n>=10;n/=10,o++);}return t&&i.e+1>o&&(o=i.e+1),o},S.shiftedBy=function(t){return m(t,-9007199254740991,9007199254740991),this.times("1e"+t)},S.squareRoot=S.sqrt=function(){var t,e,o,n,i,a=this,s=a.c,c=a.s,u=a.e,l=O+4,d=new U("0.5");if(1!==c||!s||!s[0])return new U(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+H(a)))||c==1/0?(((e=g(s)).length+u)%2==0&&(e+="0"),c=Math.sqrt(+e),u=h((u+1)/2)-(u<0||u%2),o=new U(e=c==1/0?"5e"+u:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+u)):o=new U(c+""),o.c[0])for((c=(u=o.e)+l)<3&&(c=0);;)if(i=o,o=d.times(i.plus(r(a,i,l,1))),g(i.c).slice(0,c)===(e=g(o.c)).slice(0,c)){if(o.e<u&&--c,"9999"!=(e=e.slice(c-3,c+1))&&(n||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(G(o,o.e+O+2,1),t=!o.times(o).eq(a));break}if(!n&&(G(i,i.e+O+2,0),i.times(i).eq(a))){o=i;break}l+=4,c+=4,n=1}return G(o,o.e+O+1,T,t)},S.toExponential=function(t,e){return null!=t&&(m(t,0,f),t++),z(this,t,e,1)},S.toFixed=function(t,e){return null!=t&&(m(t,0,f),t=t+this.e+1),z(this,t,e)},S.toFormat=function(t,e,r){var o,n=this;if(null==r)null!=t&&e&&"object"==typeof e?(r=e,e=null):t&&"object"==typeof t?(r=t,t=e=null):r=D;else if("object"!=typeof r)throw Error(u+"Argument not an object: "+r);if(o=n.toFixed(t,e),n.c){var i,a=o.split("."),s=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",d=a[0],p=a[1],f=n.s<0,h=f?d.slice(1):d,g=h.length;if(c&&(i=s,s=c,c=i,g-=i),s>0&&g>0){for(i=g%s||s,d=h.substr(0,i);i<g;i+=s)d+=l+h.substr(i,s);c>0&&(d+=l+h.slice(i)),f&&(d="-"+d)}o=p?d+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?p.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):p):d}return(r.prefix||"")+o+(r.suffix||"")},S.toFraction=function(t){var e,o,n,i,a,s,c,l,d,f,h,y,m=this,b=m.c;if(null!=t&&(!(c=new U(t)).isInteger()&&(c.c||1!==c.s)||c.lt(I)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+H(c));if(!b)return new U(m);for(e=new U(I),d=o=new U(I),n=l=new U(I),y=g(b),a=e.e=y.length-m.e-1,e.c[0]=p[(s=a%14)<0?14+s:s],t=!t||c.comparedTo(e)>0?a>0?e:d:c,s=P,P=1/0,c=new U(y),l.c[0]=0;f=r(c,e,0,1),1!=(i=o.plus(f.times(n))).comparedTo(t);)o=n,n=i,d=l.plus(f.times(i=d)),l=i,e=c.minus(f.times(i=e)),c=i;return i=r(t.minus(o),n,0,1),l=l.plus(i.times(d)),o=o.plus(i.times(n)),l.s=d.s=m.s,h=r(d,n,a*=2,T).minus(m).abs().comparedTo(r(l,o,a,T).minus(m).abs())<1?[d,n]:[l,o],P=s,h},S.toNumber=function(){return+H(this)},S.toPrecision=function(t,e){return null!=t&&m(t,1,f),z(this,t,e,2)},S.toString=function(t){var e,r=this,n=r.s,i=r.e;return null===i?n?(e="Infinity",n<0&&(e="-"+e)):e="NaN":(null==t?e=i<=_||i>=x?v(g(r.c),i):A(g(r.c),i,"0"):10===t&&W?e=A(g((r=G(new U(r),O+i+1,T)).c),r.e,"0"):(m(t,2,j.length,"Base"),e=o(A(g(r.c),i,"0"),10,t,n,!0)),n<0&&r.c[0]&&(e="-"+e)),e},S.valueOf=S.toJSON=function(){return H(this)},S._isBigNumber=!0,null!=e&&U.set(e),U}()).default=i.BigNumber=i,void 0===(o=function(){return i}.call(e,r,e,t))||(t.exports=o)}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var o=r(12),n=r.n(o),i=r(13),a=r.n(i),s=r(10),c=r(0);function u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n()(this,t),!e||!e instanceof s.default)throw new Error("Expected instance of TronWeb");this.tronWeb=e}return a()(t,[{key:"invalid",value:function(t){return t.msg||"Invalid ".concat(t.name).concat("address"===t.type?" address":""," provided")}},{key:"notPositive",value:function(t){return"".concat(t.name," must be a positive integer")}},{key:"notEqual",value:function(t){return t.msg||"".concat(t.names[0]," can not be equal to ").concat(t.names[1])}},{key:"notValid",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Function,o={},n=!1,i=u(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=a.name,l=a.names,d=a.value,p=a.type,f=a.gt,h=a.lt,g=a.gte,y=a.lte,m=(a.se,a.optional);if(!m||c.a.isNotNullOrUndefined(d)&&("boolean"===p||!1!==d)){switch(o[a.name]=a.value,p){case"address":this.tronWeb.isAddress(d)?o[s]=this.tronWeb.address.toHex(d):n=!0;break;case"integer":(!c.a.isInteger(d)||"number"==typeof f&&d<=a.gt||"number"==typeof h&&d>=a.lt||"number"==typeof g&&d<a.gte||"number"==typeof y&&d>a.lte)&&(n=!0);break;case"positive-integer":if(!c.a.isInteger(d)||d<=0)return void r(this.notPositive(a));break;case"tokenId":c.a.isString(d)&&d.length||(n=!0);break;case"notEmptyObject":c.a.isObject(d)&&Object.keys(d).length||(n=!0);break;case"notEqual":if(o[l[0]]===o[l[1]])return r(this.notEqual(a)),!0;break;case"resource":["BANDWIDTH","ENERGY"].includes(d)||(n=!0);break;case"url":c.a.isValidURL(d)||(n=!0);break;case"hex":c.a.isHex(d)||(n=!0);break;case"array":Array.isArray(d)||(n=!0);break;case"not-empty-string":c.a.isString(d)&&d.length||(n=!0);break;case"boolean":c.a.isBoolean(d)||(n=!0);break;case"string":(!c.a.isString(d)||"number"==typeof f&&d.length<=a.gt||"number"==typeof h&&d.length>=a.lt||"number"==typeof g&&d.length<a.gte||"number"==typeof y&&d.length>a.lte)&&(n=!0)}if(n)return r(this.invalid(a)),!0}}}catch(t){i.e(t)}finally{i.f()}return!1}}]),t}()},function(t,e,r){"use strict";var o=r(27),n=r(37);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=o.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=o.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),n(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,o=new Array(r+this.padLength);o[0]=128;for(var n=1;n<r;n++)o[n]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)o[n++]=0;o[n++]=0,o[n++]=0,o[n++]=0,o[n++]=0,o[n++]=t>>>24&255,o[n++]=t>>>16&255,o[n++]=t>>>8&255,o[n++]=255&t}else for(o[n++]=255&t,o[n++]=t>>>8&255,o[n++]=t>>>16&255,o[n++]=t>>>24&255,o[n++]=0,o[n++]=0,o[n++]=0,o[n++]=0,i=8;i<this.padLength;i++)o[n++]=0;return o}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commaDecimal=e.dotDecimal=e.farsiLocales=e.arabicLocales=e.englishLocales=e.decimal=e.alphanumeric=e.alpha=void 0;var o={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};e.alpha=o;var n={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};e.alphanumeric=n;var i={"en-US":".",ar:"٫"};e.decimal=i;var a=["AU","GB","HK","IN","NZ","ZA","ZM"];e.englishLocales=a;for(var s,c=0;c<a.length;c++)o[s="en-".concat(a[c])]=o["en-US"],n[s]=n["en-US"],i[s]=i["en-US"];var u=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];e.arabicLocales=u;for(var l,d=0;d<u.length;d++)o[l="ar-".concat(u[d])]=o.ar,n[l]=n.ar,i[l]=i.ar;var p=["IR","AF"];e.farsiLocales=p;for(var f,h=0;h<p.length;h++)n[f="fa-".concat(p[h])]=n.fa,i[f]=i.ar;var g=["ar-EG","ar-LB","ar-LY"];e.dotDecimal=g;var y=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];e.commaDecimal=y;for(var m=0;m<g.length;m++)i[g[m]]=i["en-US"];for(var b=0;b<y.length;b++)i[y[b]]=",";o["fr-CA"]=o["fr-FR"],n["fr-CA"]=n["fr-FR"],o["pt-BR"]=o["pt-PT"],n["pt-BR"]=n["pt-PT"],i["pt-BR"]=i["pt-PT"],o["pl-Pl"]=o["pl-PL"],n["pl-Pl"]=n["pl-PL"],i["pl-Pl"]=i["pl-PL"],o["fa-AF"]=o.fa},,,function(t,e){var r,o,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var c,u=[],l=!1,d=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!l){var t=s(p);l=!0;for(var e=u.length;e;){for(c=u,u=[];++d<e;)c&&c[d].run();d=-1,e=u.length}c=null,l=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function g(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new h(t,e)),1!==u.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e,r){"use strict";function o(t){this.message=t}o.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},o.prototype.__CANCEL__=!0,t.exports=o},function(t,e,r){"use strict";var o=r(29),n=r(24),i=n.getNAF,a=n.getJSF,s=n.assert;function c(t,e){this.type=t,this.p=new o(e.p,16),this.red=e.prime?o.red(e.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=e.n&&new o(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(t,e){s(t.precomputed);var r=t._getDoubles(),o=i(e,1,this._bitLength),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;var a,c,u=[];for(a=0;a<o.length;a+=r.step){c=0;for(var l=a+r.step-1;l>=a;l--)c=(c<<1)+o[l];u.push(c)}for(var d=this.jpoint(null,null,null),p=this.jpoint(null,null,null),f=n;f>0;f--){for(a=0;a<u.length;a++)(c=u[a])===f?p=p.mixedAdd(r.points[a]):c===-f&&(p=p.mixedAdd(r.points[a].neg()));d=d.add(p)}return d.toP()},c.prototype._wnafMul=function(t,e){var r=4,o=t._getNAFPoints(r);r=o.wnd;for(var n=o.points,a=i(e,r,this._bitLength),c=this.jpoint(null,null,null),u=a.length-1;u>=0;u--){for(var l=0;u>=0&&0===a[u];u--)l++;if(u>=0&&l++,c=c.dblp(l),u<0)break;var d=a[u];s(0!==d),c="affine"===t.type?d>0?c.mixedAdd(n[d-1>>1]):c.mixedAdd(n[-d-1>>1].neg()):d>0?c.add(n[d-1>>1]):c.add(n[-d-1>>1].neg())}return"affine"===t.type?c.toP():c},c.prototype._wnafMulAdd=function(t,e,r,o,n){var s,c,u,l=this._wnafT1,d=this._wnafT2,p=this._wnafT3,f=0;for(s=0;s<o;s++){var h=(u=e[s])._getNAFPoints(t);l[s]=h.wnd,d[s]=h.points}for(s=o-1;s>=1;s-=2){var g=s-1,y=s;if(1===l[g]&&1===l[y]){var m=[e[g],null,null,e[y]];0===e[g].y.cmp(e[y].y)?(m[1]=e[g].add(e[y]),m[2]=e[g].toJ().mixedAdd(e[y].neg())):0===e[g].y.cmp(e[y].y.redNeg())?(m[1]=e[g].toJ().mixedAdd(e[y]),m[2]=e[g].add(e[y].neg())):(m[1]=e[g].toJ().mixedAdd(e[y]),m[2]=e[g].toJ().mixedAdd(e[y].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[g],r[y]);for(f=Math.max(v[0].length,f),p[g]=new Array(f),p[y]=new Array(f),c=0;c<f;c++){var A=0|v[0][c],w=0|v[1][c];p[g][c]=b[3*(A+1)+(w+1)],p[y][c]=0,d[g]=m}}else p[g]=i(r[g],l[g],this._bitLength),p[y]=i(r[y],l[y],this._bitLength),f=Math.max(p[g].length,f),f=Math.max(p[y].length,f)}var M=this.jpoint(null,null,null),B=this._wnafT4;for(s=f;s>=0;s--){for(var C=0;s>=0;){var E=!0;for(c=0;c<o;c++)B[c]=0|p[c][s],0!==B[c]&&(E=!1);if(!E)break;C++,s--}if(s>=0&&C++,M=M.dblp(C),s<0)break;for(c=0;c<o;c++){var S=B[c];0!==S&&(S>0?u=d[c][S-1>>1]:S<0&&(u=d[c][-S-1>>1].neg()),M="affine"===u.type?M.mixedAdd(u):M.add(u))}}for(s=0;s<o;s++)d[s]=null;return n?M:M.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(t,e){t=n.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?s(t[t.length-1]%2==0):7===t[0]&&s(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(t){return this.encode(t,!0)},u.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},u.prototype.encode=function(t,e){return n.encode(this._encode(e),t)},u.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},u.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},u.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],o=this,n=0;n<e;n+=t){for(var i=0;i<t;i++)o=o.dbl();r.push(o)}return{step:t,points:r}},u.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,o=1===r?null:this.dbl(),n=1;n<r;n++)e[n]=e[n-1].add(o);return{wnd:t,points:e}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,n.default)(e),!(r=String(r)))return t(e,4)||t(e,6);if("4"===r){if(!s.test(e))return!1;var o=e.split(".").sort((function(t,e){return t-e}));return o[3]<=255}if("6"===r)return!!u.test(e);return!1};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));const o="bignumber/5.7.0"},function(t,e,r){(function(r){var o;e=t.exports=q,o="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var n=Number.MAX_SAFE_INTEGER||9007199254740991,i=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var d=s++;a[d]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var p=s++;a[p]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=s++;a[h]="(?:"+a[u]+"|"+a[l]+")";var g=s++;a[g]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var y=s++;a[y]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[m]+"(?:\\."+a[m]+")*))";var v=s++,A="v?"+a[d]+a[g]+"?"+a[b]+"?";a[v]="^"+A+"$";var w="[v=\\s]*"+a[p]+a[y]+"?"+a[b]+"?",M=s++;a[M]="^"+w+"$";var B=s++;a[B]="((?:<|>)?=?)";var C=s++;a[C]=a[u]+"|x|X|\\*";var E=s++;a[E]=a[c]+"|x|X|\\*";var S=s++;a[S]="[v=\\s]*("+a[E]+")(?:\\.("+a[E]+")(?:\\.("+a[E]+")(?:"+a[g]+")?"+a[b]+"?)?)?";var I=s++;a[I]="[v=\\s]*("+a[C]+")(?:\\.("+a[C]+")(?:\\.("+a[C]+")(?:"+a[y]+")?"+a[b]+"?)?)?";var O=s++;a[O]="^"+a[B]+"\\s*"+a[S]+"$";var T=s++;a[T]="^"+a[B]+"\\s*"+a[I]+"$";var _=s++;a[_]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var x=s++;a[x]="(?:~>?)";var F=s++;a[F]="(\\s*)"+a[x]+"\\s+",i[F]=new RegExp(a[F],"g");var P=s++;a[P]="^"+a[x]+a[S]+"$";var k=s++;a[k]="^"+a[x]+a[I]+"$";var R=s++;a[R]="(?:\\^)";var N=s++;a[N]="(\\s*)"+a[R]+"\\s+",i[N]=new RegExp(a[N],"g");var D=s++;a[D]="^"+a[R]+a[S]+"$";var j=s++;a[j]="^"+a[R]+a[I]+"$";var W=s++;a[W]="^"+a[B]+"\\s*("+w+")$|^$";var U=s++;a[U]="^"+a[B]+"\\s*("+A+")$|^$";var z=s++;a[z]="(\\s*)"+a[B]+"\\s*("+w+"|"+a[S]+")",i[z]=new RegExp(a[z],"g");var L=s++;a[L]="^\\s*("+a[S]+")\\s+-\\s+("+a[S]+")\\s*$";var V=s++;a[V]="^\\s*("+a[I]+")\\s+-\\s+("+a[I]+")\\s*$";var G=s++;a[G]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)o(H,a[H]),i[H]||(i[H]=new RegExp(a[H]));function K(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof q)return t;if("string"!=typeof t)return null;if(t.length>256)return null;if(!(e.loose?i[M]:i[v]).test(t))return null;try{return new q(t,e)}catch(t){return null}}function q(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof q){if(t.loose===e.loose)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof q))return new q(t,e);o("SemVer",t,e),this.options=e,this.loose=!!e.loose;var r=t.trim().match(e.loose?i[M]:i[v]);if(!r)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e<n)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}e.parse=K,e.valid=function(t,e){var r=K(t,e);return r?r.version:null},e.clean=function(t,e){var r=K(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},e.SemVer=q,q.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},q.prototype.toString=function(){return this.version},q.prototype.compare=function(t){return o("SemVer.compare",this.version,this.options,t),t instanceof q||(t=new q(t,this.options)),this.compareMain(t)||this.comparePre(t)},q.prototype.compareMain=function(t){return t instanceof q||(t=new q(t,this.options)),Z(this.major,t.major)||Z(this.minor,t.minor)||Z(this.patch,t.patch)},q.prototype.comparePre=function(t){if(t instanceof q||(t=new q(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var e=0;do{var r=this.prerelease[e],n=t.prerelease[e];if(o("prerelease compare",e,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return Z(r,n)}while(++e)},q.prototype.inc=function(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+t)}return this.format(),this.raw=this.version,this},e.inc=function(t,e,r,o){"string"==typeof r&&(o=r,r=void 0);try{return new q(t,r).inc(e,o).version}catch(t){return null}},e.diff=function(t,e){if(X(t,e))return null;var r=K(t),o=K(e),n="";if(r.prerelease.length||o.prerelease.length){n="pre";var i="prerelease"}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==o[a])return n+a;return i},e.compareIdentifiers=Z;var $=/^[0-9]+$/;function Z(t,e){var r=$.test(t),o=$.test(e);return r&&o&&(t=+t,e=+e),t===e?0:r&&!o?-1:o&&!r?1:t<e?-1:1}function J(t,e,r){return new q(t,r).compare(new q(e,r))}function Y(t,e,r){return J(t,e,r)>0}function Q(t,e,r){return J(t,e,r)<0}function X(t,e,r){return 0===J(t,e,r)}function tt(t,e,r){return 0!==J(t,e,r)}function et(t,e,r){return J(t,e,r)>=0}function rt(t,e,r){return J(t,e,r)<=0}function ot(t,e,r,o){switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return X(t,r,o);case"!=":return tt(t,r,o);case">":return Y(t,r,o);case">=":return et(t,r,o);case"<":return Q(t,r,o);case"<=":return rt(t,r,o);default:throw new TypeError("Invalid operator: "+e)}}function nt(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof nt){if(t.loose===!!e.loose)return t;t=t.value}if(!(this instanceof nt))return new nt(t,e);o("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===it?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}e.rcompareIdentifiers=function(t,e){return Z(e,t)},e.major=function(t,e){return new q(t,e).major},e.minor=function(t,e){return new q(t,e).minor},e.patch=function(t,e){return new q(t,e).patch},e.compare=J,e.compareLoose=function(t,e){return J(t,e,!0)},e.rcompare=function(t,e,r){return J(e,t,r)},e.sort=function(t,r){return t.sort((function(t,o){return e.compare(t,o,r)}))},e.rsort=function(t,r){return t.sort((function(t,o){return e.rcompare(t,o,r)}))},e.gt=Y,e.lt=Q,e.eq=X,e.neq=tt,e.gte=et,e.lte=rt,e.cmp=ot,e.Comparator=nt;var it={};function at(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof at)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new at(t.raw,e);if(t instanceof nt)return new at(t.value,e);if(!(this instanceof at))return new at(t,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(t){return this.parseRange(t.trim())}),this).filter((function(t){return t.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);this.format()}function st(t){return!t||"x"===t.toLowerCase()||"*"===t}function ct(t,e,r,o,n,i,a,s,c,u,l,d,p){return((e=st(r)?"":st(o)?">="+r+".0.0":st(n)?">="+r+"."+o+".0":">="+e)+" "+(s=st(c)?"":st(u)?"<"+(+c+1)+".0.0":st(l)?"<"+c+"."+(+u+1)+".0":d?"<="+c+"."+u+"."+l+"-"+d:"<="+s)).trim()}function ut(t,e,r){for(var n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(n=0;n<t.length;n++)if(o(t[n].semver),t[n].semver!==it&&t[n].semver.prerelease.length>0){var i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}function lt(t,e,r){try{e=new at(e,r)}catch(t){return!1}return e.test(t)}function dt(t,e,r,o){var n,i,a,s,c;switch(t=new q(t,o),e=new at(e,o),r){case">":n=Y,i=rt,a=Q,s=">",c=">=";break;case"<":n=Q,i=et,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lt(t,e,o))return!1;for(var u=0;u<e.set.length;++u){var l=e.set[u],d=null,p=null;if(l.forEach((function(t){t.semver===it&&(t=new nt(">=0.0.0")),d=d||t,p=p||t,n(t.semver,d.semver,o)?d=t:a(t.semver,p.semver,o)&&(p=t)})),d.operator===s||d.operator===c)return!1;if((!p.operator||p.operator===s)&&i(t,p.semver))return!1;if(p.operator===c&&a(t,p.semver))return!1}return!0}nt.prototype.parse=function(t){var e=this.options.loose?i[W]:i[U],r=t.match(e);if(!r)throw new TypeError("Invalid comparator: "+t);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new q(r[2],this.options.loose):this.semver=it},nt.prototype.toString=function(){return this.value},nt.prototype.test=function(t){return o("Comparator.test",t,this.options.loose),this.semver===it||("string"==typeof t&&(t=new q(t,this.options)),ot(t,this.operator,this.semver,this.options))},nt.prototype.intersects=function(t,e){if(!(t instanceof nt))throw new TypeError("a Comparator is required");var r;if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return r=new at(t.value,e),lt(this.value,r,e);if(""===t.operator)return r=new at(this.value,e),lt(t.semver,r,e);var o=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),i=this.semver.version===t.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),s=ot(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=ot(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return o||n||i&&a||s||c},e.Range=at,at.prototype.format=function(){return this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim(),this.range},at.prototype.toString=function(){return this.range},at.prototype.parseRange=function(t){var e=this.options.loose;t=t.trim();var r=e?i[V]:i[L];t=t.replace(r,ct),o("hyphen replace",t),t=t.replace(i[z],"$1$2$3"),o("comparator trim",t,i[z]),t=(t=(t=t.replace(i[F],"$1~")).replace(i[N],"$1^")).split(/\s+/).join(" ");var n=e?i[W]:i[U],a=t.split(" ").map((function(t){return function(t,e){return o("comp",t,e),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){o("caret",t,e);var r=e.loose?i[j]:i[D];return t.replace(r,(function(e,r,n,i,a){var s;return o("caret",t,e,r,n,i,a),st(r)?s="":st(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":st(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":a?(o("replaceCaret pr",a),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+a+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+a+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(o("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),o("caret return",s),s}))}(t,e)})).join(" ")}(t,e),o("caret",t),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){var r=e.loose?i[k]:i[P];return t.replace(r,(function(e,r,n,i,a){var s;return o("tilde",t,e,r,n,i,a),st(r)?s="":st(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":st(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":a?(o("replaceTilde pr",a),s=">="+r+"."+n+"."+i+"-"+a+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",o("tilde return",s),s}))}(t,e)})).join(" ")}(t,e),o("tildes",t),t=function(t,e){return o("replaceXRanges",t,e),t.split(/\s+/).map((function(t){return function(t,e){t=t.trim();var r=e.loose?i[T]:i[O];return t.replace(r,(function(e,r,n,i,a,s){o("xRange",t,e,r,n,i,a,s);var c=st(n),u=c||st(i),l=u||st(a);return"="===r&&l&&(r=""),c?e=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(i=0),a=0,">"===r?(r=">=",u?(n=+n+1,i=0,a=0):(i=+i+1,a=0)):"<="===r&&(r="<",u?n=+n+1:i=+i+1),e=r+n+"."+i+"."+a):u?e=">="+n+".0.0 <"+(+n+1)+".0.0":l&&(e=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"),o("xRange return",e),e}))}(t,e)})).join(" ")}(t,e),o("xrange",t),t=function(t,e){return o("replaceStars",t,e),t.trim().replace(i[G],"")}(t,e),o("stars",t),t}(t,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(t){return!!t.match(n)}))),a=a.map((function(t){return new nt(t,this.options)}),this)},at.prototype.intersects=function(t,e){if(!(t instanceof at))throw new TypeError("a Range is required");return this.set.some((function(r){return r.every((function(r){return t.set.some((function(t){return t.every((function(t){return r.intersects(t,e)}))}))}))}))},e.toComparators=function(t,e){return new at(t,e).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))},at.prototype.test=function(t){if(!t)return!1;"string"==typeof t&&(t=new q(t,this.options));for(var e=0;e<this.set.length;e++)if(ut(this.set[e],t,this.options))return!0;return!1},e.satisfies=lt,e.maxSatisfying=function(t,e,r){var o=null,n=null;try{var i=new at(e,r)}catch(t){return null}return t.forEach((function(t){i.test(t)&&(o&&-1!==n.compare(t)||(n=new q(o=t,r)))})),o},e.minSatisfying=function(t,e,r){var o=null,n=null;try{var i=new at(e,r)}catch(t){return null}return t.forEach((function(t){i.test(t)&&(o&&1!==n.compare(t)||(n=new q(o=t,r)))})),o},e.minVersion=function(t,e){t=new at(t,e);var r=new q("0.0.0");if(t.test(r))return r;if(r=new q("0.0.0-0"),t.test(r))return r;r=null;for(var o=0;o<t.set.length;++o){t.set[o].forEach((function(t){var e=new q(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":r&&!Y(r,e)||(r=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}}))}if(r&&t.test(r))return r;return null},e.validRange=function(t,e){try{return new at(t,e).range||"*"}catch(t){return null}},e.ltr=function(t,e,r){return dt(t,e,"<",r)},e.gtr=function(t,e,r){return dt(t,e,">",r)},e.outside=dt,e.prerelease=function(t,e){var r=K(t,e);return r&&r.prerelease.length?r.prerelease:null},e.intersects=function(t,e,r){return t=new at(t,r),e=new at(e,r),t.intersects(e)},e.coerce=function(t){if(t instanceof q)return t;if("string"!=typeof t)return null;var e=t.match(i[_]);if(null==e)return null;return K(e[1]+"."+(e[2]||"0")+"."+(e[3]||"0"))}}).call(this,r(44))},function(t,e,r){"use strict";var o=e;o.version=r(144).version,o.utils=r(24),o.rand=r(84),o.curve=r(85),o.curves=r(58),o.ec=r(157),o.eddsa=r(161)},function(t,e,r){"use strict";(function(e){!function(r){function o(t){const e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let r=1779033703,o=3144134277,n=1013904242,i=2773480762,a=1359893119,s=2600822924,c=528734635,u=1541459225;const l=new Uint32Array(64);function d(t){let d=0,p=t.length;for(;p>=64;){let f,h,g,y,m,b=r,v=o,A=n,w=i,M=a,B=s,C=c,E=u;for(h=0;h<16;h++)g=d+4*h,l[h]=(255&t[g])<<24|(255&t[g+1])<<16|(255&t[g+2])<<8|255&t[g+3];for(h=16;h<64;h++)f=l[h-2],y=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,f=l[h-15],m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,l[h]=(y+l[h-7]|0)+(m+l[h-16]|0)|0;for(h=0;h<64;h++)y=(((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&B^~M&C)|0)+(E+(e[h]+l[h]|0)|0)|0,m=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&v^b&A^v&A)|0,E=C,C=B,B=M,M=w+y|0,w=A,A=v,v=b,b=y+m|0;r=r+b|0,o=o+v|0,n=n+A|0,i=i+w|0,a=a+M|0,s=s+B|0,c=c+C|0,u=u+E|0,d+=64,p-=64}}d(t);let p,f=t.length%64,h=t.length/536870912|0,g=t.length<<3,y=f<56?56:120,m=t.slice(t.length-f,t.length);for(m.push(128),p=f+1;p<y;p++)m.push(0);return m.push(h>>>24&255),m.push(h>>>16&255),m.push(h>>>8&255),m.push(h>>>0&255),m.push(g>>>24&255),m.push(g>>>16&255),m.push(g>>>8&255),m.push(g>>>0&255),d(m),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function n(t,e,r){t=t.length<=64?t:o(t);const n=64+e.length+4,i=new Array(n),a=new Array(64);let s,c=[];for(s=0;s<64;s++)i[s]=54;for(s=0;s<t.length;s++)i[s]^=t[s];for(s=0;s<e.length;s++)i[64+s]=e[s];for(s=n-4;s<n;s++)i[s]=0;for(s=0;s<64;s++)a[s]=92;for(s=0;s<t.length;s++)a[s]^=t[s];function u(){for(let t=n-1;t>=n-4;t--){if(i[t]++,i[t]<=255)return;i[t]=0}}for(;r>=32;)u(),c=c.concat(o(a.concat(o(i)))),r-=32;return r>0&&(u(),c=c.concat(o(a.concat(o(i))).slice(0,r))),c}function i(t,e,r,o,n){let i;for(u(t,16*(2*r-1),n,0,16),i=0;i<2*r;i++)c(t,16*i,n,16),s(n,o),u(n,0,t,e+16*i,16);for(i=0;i<r;i++)u(t,e+2*i*16,t,16*i,16);for(i=0;i<r;i++)u(t,e+16*(2*i+1),t,16*(i+r),16)}function a(t,e){return t<<e|t>>>32-e}function s(t,e){u(t,0,e,0,16);for(let t=8;t>0;t-=2)e[4]^=a(e[0]+e[12],7),e[8]^=a(e[4]+e[0],9),e[12]^=a(e[8]+e[4],13),e[0]^=a(e[12]+e[8],18),e[9]^=a(e[5]+e[1],7),e[13]^=a(e[9]+e[5],9),e[1]^=a(e[13]+e[9],13),e[5]^=a(e[1]+e[13],18),e[14]^=a(e[10]+e[6],7),e[2]^=a(e[14]+e[10],9),e[6]^=a(e[2]+e[14],13),e[10]^=a(e[6]+e[2],18),e[3]^=a(e[15]+e[11],7),e[7]^=a(e[3]+e[15],9),e[11]^=a(e[7]+e[3],13),e[15]^=a(e[11]+e[7],18),e[1]^=a(e[0]+e[3],7),e[2]^=a(e[1]+e[0],9),e[3]^=a(e[2]+e[1],13),e[0]^=a(e[3]+e[2],18),e[6]^=a(e[5]+e[4],7),e[7]^=a(e[6]+e[5],9),e[4]^=a(e[7]+e[6],13),e[5]^=a(e[4]+e[7],18),e[11]^=a(e[10]+e[9],7),e[8]^=a(e[11]+e[10],9),e[9]^=a(e[8]+e[11],13),e[10]^=a(e[9]+e[8],18),e[12]^=a(e[15]+e[14],7),e[13]^=a(e[12]+e[15],9),e[14]^=a(e[13]+e[12],13),e[15]^=a(e[14]+e[13],18);for(let r=0;r<16;++r)t[r]+=e[r]}function c(t,e,r,o){for(let n=0;n<o;n++)r[n]^=t[e+n]}function u(t,e,r,o,n){for(;n--;)r[o++]=t[e++]}function l(t){if(!t||"number"!=typeof t.length)return!1;for(let e=0;e<t.length;e++){const r=t[e];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function d(t,e){if("number"!=typeof t||t%1)throw new Error("invalid "+e);return t}function p(t,r,o,a,s,p,f){if(o=d(o,"N"),a=d(a,"r"),s=d(s,"p"),p=d(p,"dkLen"),0===o||0!=(o&o-1))throw new Error("N must be power of 2");if(o>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/s)throw new Error("r too large");if(!l(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!l(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);let h=n(t,r,128*s*a);const g=new Uint32Array(32*s*a);for(let t=0;t<g.length;t++){const e=4*t;g[t]=(255&h[e+3])<<24|(255&h[e+2])<<16|(255&h[e+1])<<8|(255&h[e+0])<<0}const y=new Uint32Array(64*a),m=new Uint32Array(32*a*o),b=32*a,v=new Uint32Array(16),A=new Uint32Array(16),w=s*o*2;let M,B,C=0,E=null,S=!1,I=0,O=0;const T=f?parseInt(1e3/a):4294967295,_=void 0!==e?e:setTimeout,x=function(){if(S)return f(new Error("cancelled"),C/w);let e;switch(I){case 0:B=32*O*a,u(g,B,y,0,b),I=1,M=0;case 1:e=o-M,e>T&&(e=T);for(let t=0;t<e;t++)u(y,0,m,(M+t)*b,b),i(y,b,a,v,A);if(M+=e,C+=e,f){const t=parseInt(1e3*C/w);if(t!==E){if(S=f(null,C/w),S)break;E=t}}if(M<o)break;M=0,I=2;case 2:e=o-M,e>T&&(e=T);for(let t=0;t<e;t++){const t=y[16*(2*a-1)]&o-1;c(m,t*b,y,b),i(y,b,a,v,A)}if(M+=e,C+=e,f){const t=parseInt(1e3*C/w);if(t!==E){if(S=f(null,C/w),S)break;E=t}}if(M<o)break;if(u(y,0,g,B,b),O++,O<s){I=0;break}h=[];for(let t=0;t<g.length;t++)h.push(g[t]>>0&255),h.push(g[t]>>8&255),h.push(g[t]>>16&255),h.push(g[t]>>24&255);const r=n(t,h,p);return f&&f(null,1,r),r}f&&_(x)};if(!f)for(;;){const t=x();if(null!=t)return t}x()}const f={scrypt:function(t,e,r,o,n,i,a){return new Promise((function(s,c){let u=0;a&&a(0),p(t,e,r,o,n,i,(function(t,e,r){if(t)c(t);else if(r)a&&1!==u&&a(1),s(new Uint8Array(r));else if(a&&e!==u)return u=e,a(e)}))}))},syncScrypt:function(t,e,r,o,n,i){return new Uint8Array(p(t,e,r,o,n,i))}};t.exports=f}()}).call(this,r(167).setImmediate)},,,,function(t,e,r){"use strict";(function(e){var o=r(18),n=r(129),i=r(74),a=r(75),s={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,l={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(u=r(76)),u),transformRequest:[function(t,e){return n(e,"Accept"),n(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,r){if(o.isString(t))try{return(e||JSON.parse)(t),o.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||l.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||n&&o.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){l.headers[t]=o.merge(s)})),t.exports=l}).call(this,r(44))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";var o,n=e,i=r(16),a=r(85),s=r(24).assert;function c(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new c(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{o=r(156)}catch(t){o=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),t=Date.parse(t),isNaN(t)?null:new Date(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(t),(e=(0,n.default)(e,a)).allow_trailing_dot&&"."===t[t.length-1]&&(t=t.substring(0,t.length-1));!0===e.allow_wildcard&&0===t.indexOf("*.")&&(t=t.substring(2));var r=t.split("."),i=r[r.length-1];if(e.require_tld){if(r.length<2)return!1;if(!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!e.allow_numeric_tld&&/^\d+$/.test(i))return!1;return r.every((function(t){return!(t.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(t)&&(!/[\uff01-\uff5e]/.test(t)&&(!/^-|-$/.test(t)&&!(!e.allow_underscores&&/_/.test(t)))))}))};var o=i(r(5)),n=i(r(21));function i(t){return t&&t.__esModule?t:{default:t}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t);var r=(e=e||{}).hasOwnProperty("allow_leading_zeroes")&&!e.allow_leading_zeroes?i:a,o=!e.hasOwnProperty("min")||t>=e.min,s=!e.hasOwnProperty("max")||t<=e.max,c=!e.hasOwnProperty("lt")||t<e.lt,u=!e.hasOwnProperty("gt")||t>e.gt;return r.test(t)&&o&&s&&c&&u};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;t.exports=e.default,t.exports.default=e.default},function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"a",(function(){return R}));var o,n=r(14),i=r.n(n),a=r(6),s=r.n(a),c=r(22),u=r.n(c),l=r(32),d=r.n(l),p=r(12),f=r.n(p),h=r(13),g=r.n(h),y=r(2),m=r.n(y),b=r(10),v=r(0),A=r(9),w=r(39),M=r(11),B=r(19),C=r.n(B),E=r(33),S=r(34);function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){i()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function T(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function x(t){return b.default.address.toHex(t)}function F(t){return o.tronWeb.fromUtf8(t)}function P(t,e,r,n){return"function"==typeof r&&(n=r),"function"==typeof e&&(n=e,e=null),t.Error?n(t.Error):t.result&&t.result.message?n(o.tronWeb.toUtf8(t.result.message)):Object(S.txCheckWithArgs)(t,e,r)?n(null,t):n("Invalid transaction")}function k(t,e,r,n){return t.Error?n(t.Error):t.result&&t.result.message?n(o.tronWeb.toUtf8(t.result.message)):r._isConstant||r.estimateEnergy||Object(S.txCheckWithArgs)(t.transaction,e,r)?n(null,t):n("Invalid transaction")}var R=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f()(this,t),!e||!e instanceof b.default)throw new Error("Expected instance of TronWeb");o=this,this.tronWeb=e,this.injectPromise=C()(this),this.validator=new w.a(e)}var e,r,n,i;return g()(t,[{key:"sendTrx",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tronWeb.defaultAddress.hex,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=this.tronWeb.defaultAddress.hex):v.a.isObject(r)&&(o=r,r=this.tronWeb.defaultAddress.hex),!n)return this.injectPromise(this.sendTrx,t,e,r,o);if(e=parseInt(e),!this.validator.notValid([{name:"recipient",type:"address",value:t},{name:"origin",type:"address",value:r},{names:["recipient","origin"],type:"notEqual",msg:"Cannot transfer TRX to the same account"},{name:"amount",type:"integer",gt:0,value:e}],n)){var i={to_address:x(t),owner_address:x(r),amount:e};o&&o.permissionId&&(i.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/createtransaction",i,"post").then((function(t){return P(t,i,n)})).catch((function(t){return n(t)}))}}},{key:"sendToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(v.a.isFunction(n)&&(i=n,n={}),v.a.isFunction(o)?(i=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(n=o,o=this.tronWeb.defaultAddress.hex),!i)return this.injectPromise(this.sendToken,t,e,r,o,n);if(e=parseInt(e),!this.validator.notValid([{name:"recipient",type:"address",value:t},{name:"origin",type:"address",value:o},{names:["recipient","origin"],type:"notEqual",msg:"Cannot transfer tokens to the same account"},{name:"amount",type:"integer",gt:0,value:e},{name:"token ID",type:"tokenId",value:r}],i)){var a={to_address:x(t),owner_address:x(o),asset_name:F(r),amount:parseInt(e)};n&&n.permissionId&&(a.Permission_id=n.permissionId),this.tronWeb.fullNode.request("wallet/transferasset",a,"post").then((function(t){return P(t,a,n,i)})).catch((function(t){return i(t)}))}}},{key:"purchaseToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(v.a.isFunction(n)&&(i=n,n={}),v.a.isFunction(o)?(i=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(n=o,o=this.tronWeb.defaultAddress.hex),!i)return this.injectPromise(this.purchaseToken,t,e,r,o,n);if(!this.validator.notValid([{name:"buyer",type:"address",value:o},{name:"issuer",type:"address",value:t},{names:["buyer","issuer"],type:"notEqual",msg:"Cannot purchase tokens from same account"},{name:"amount",type:"integer",gt:0,value:r},{name:"token ID",type:"tokenId",value:e}],i)){var a={to_address:x(t),owner_address:x(o),asset_name:F(e),amount:parseInt(r)};n&&n.permissionId&&(a.Permission_id=n.permissionId),this.tronWeb.fullNode.request("wallet/participateassetissue",a,"post").then((function(t){return P(t,a,n,i)})).catch((function(t){return i(t)}))}}},{key:"freezeBalance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"BANDWIDTH",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(v.a.isFunction(i)&&(a=i,i={}),v.a.isFunction(n)?(a=n,n=void 0):v.a.isObject(n)&&(i=n,n=void 0),v.a.isFunction(o)?(a=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(i=o,o=this.tronWeb.defaultAddress.hex),v.a.isFunction(e)&&(a=e,e=3),v.a.isFunction(r)&&(a=r,r="BANDWIDTH"),!a)return this.injectPromise(this.freezeBalance,t,e,r,o,n,i);if(!this.validator.notValid([{name:"origin",type:"address",value:o},{name:"receiver",type:"address",value:n,optional:!0},{name:"amount",type:"integer",gt:0,value:t},{name:"duration",type:"integer",gte:3,value:e},{name:"resource",type:"resource",value:r,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],a)){var s={owner_address:x(o),frozen_balance:parseInt(t),frozen_duration:parseInt(e),resource:r};v.a.isNotNullOrUndefined(n)&&x(n)!==x(o)&&(s.receiver_address=x(n)),i&&i.permissionId&&(s.Permission_id=i.permissionId),this.tronWeb.fullNode.request("wallet/freezebalance",s,"post").then((function(t){return P(t,s,i,a)})).catch((function(t){return a(t)}))}}},{key:"unfreezeBalance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"BANDWIDTH",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=void 0):v.a.isObject(r)&&(o=r,r=void 0),v.a.isFunction(e)?(n=e,e=this.tronWeb.defaultAddress.hex):v.a.isObject(e)&&(o=e,e=this.tronWeb.defaultAddress.hex),v.a.isFunction(t)&&(n=t,t="BANDWIDTH"),!n)return this.injectPromise(this.unfreezeBalance,t,e,r,o);if(!this.validator.notValid([{name:"origin",type:"address",value:e},{name:"receiver",type:"address",value:r,optional:!0},{name:"resource",type:"resource",value:t,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],n)){var i={owner_address:x(e),resource:t};v.a.isNotNullOrUndefined(r)&&x(r)!==x(e)&&(i.receiver_address=x(r)),o&&o.permissionId&&(i.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/unfreezebalance",i,"post").then((function(t){return P(t,i,o,n)})).catch((function(t){return n(t)}))}}},{key:"freezeBalanceV2",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BANDWIDTH",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tronWeb.defaultAddress.hex,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=this.tronWeb.defaultAddress.hex):v.a.isObject(r)&&(o=r,r=this.tronWeb.defaultAddress.hex),v.a.isFunction(e)?(n=e,e="BANDWIDTH"):v.a.isObject(e)&&(o=e,e="BANDWIDTH"),!n)return this.injectPromise(this.freezeBalanceV2,t,e,r,o);if(!this.validator.notValid([{name:"origin",type:"address",value:r},{name:"amount",type:"integer",gt:0,value:t},{name:"resource",type:"resource",value:e,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],n)){var i={owner_address:x(r),frozen_balance:parseInt(t),resource:e};o&&o.permissionId&&(i.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/freezebalancev2",i,"post").then((function(t){return P(t,i,o,n)})).catch((function(t){return n(t)}))}}},{key:"unfreezeBalanceV2",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BANDWIDTH",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tronWeb.defaultAddress.hex,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=this.tronWeb.defaultAddress.hex):v.a.isObject(r)&&(o=r,r=this.tronWeb.defaultAddress.hex),v.a.isFunction(e)?(n=e,e="BANDWIDTH"):v.a.isObject(e)&&(o=e,e="BANDWIDTH"),!n)return this.injectPromise(this.unfreezeBalanceV2,t,e,r,o);if(!this.validator.notValid([{name:"origin",type:"address",value:r},{name:"amount",type:"integer",gt:0,value:t},{name:"resource",type:"resource",value:e,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],n)){var i={owner_address:x(r),unfreeze_balance:parseInt(t),resource:e};o&&o.permissionId&&(i.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/unfreezebalancev2",i,"post").then((function(t){return P(t,i,o,n)})).catch((function(t){return n(t)}))}}},{key:"delegateResource",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"BANDWIDTH",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(v.a.isFunction(i)&&(a=i,i={}),v.a.isFunction(n)?(a=n,n=!1):v.a.isObject(n)&&(i=n,n=!1),v.a.isFunction(o)?(a=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(i=o,o=this.tronWeb.defaultAddress.hex),v.a.isFunction(r)?(a=r,r="BANDWIDTH"):v.a.isObject(r)&&(i=r,r="BANDWIDTH"),!a)return this.injectPromise(this.delegateResource,t,e,r,o,n,i);if(!this.validator.notValid([{name:"amount",type:"integer",gt:0,value:t},{name:"resource",type:"resource",value:r,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'},{name:"receiver",type:"address",value:e},{name:"origin",type:"address",value:o},{name:"lock",type:"boolean",value:n}],a)){if(x(e)===x(o))return a("Receiver address must not be the same as owner address");var s={owner_address:x(o),receiver_address:x(e),balance:parseInt(t),resource:r,lock:n};i&&i.permissionId&&(s.Permission_id=i.permissionId),this.tronWeb.fullNode.request("wallet/delegateresource",s,"post").then((function(t){return P(t,s,i,a)})).catch((function(t){return a(t)}))}}},{key:"undelegateResource",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"BANDWIDTH",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(v.a.isFunction(n)&&(i=n,n={}),v.a.isFunction(o)?(i=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(n=o,o=this.tronWeb.defaultAddress.hex),v.a.isFunction(r)?(i=r,r="BANDWIDTH"):v.a.isObject(r)&&(n=r,r="BANDWIDTH"),!i)return this.injectPromise(this.undelegateResource,t,e,r,o,n);if(!this.validator.notValid([{name:"origin",type:"address",value:o},{name:"receiver",type:"address",value:e},{name:"amount",type:"integer",gt:0,value:t},{name:"resource",type:"resource",value:r,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],i)){if(x(e)===x(o))return i("Receiver address must not be the same as owner address");var a={owner_address:x(o),receiver_address:x(e),balance:parseInt(t),resource:r};n&&n.permissionId&&(a.Permission_id=n.permissionId),this.tronWeb.fullNode.request("wallet/undelegateresource",a,"post").then((function(t){return P(t,a,n,i)})).catch((function(t){return i(t)}))}}},{key:"withdrawExpireUnfreeze",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.a.isFunction(e)&&(r=e,e={}),v.a.isFunction(t)?(r=t,t=this.tronWeb.defaultAddress.hex):v.a.isObject(t)&&(e=t,t=this.tronWeb.defaultAddress.hex),!r)return this.injectPromise(this.withdrawExpireUnfreeze,t,e);if(!this.validator.notValid([{name:"origin",type:"address",value:t}],r)){var o={owner_address:x(t)};e&&e.permissionId&&(o.Permission_id=e.permissionId),this.tronWeb.fullNode.request("wallet/withdrawexpireunfreeze",o,"post").then((function(t){return P(t,o,e,r)})).catch((function(t){return r(t)}))}}},{key:"withdrawBlockRewards",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.a.isFunction(e)&&(r=e,e={}),v.a.isFunction(t)?(r=t,t=this.tronWeb.defaultAddress.hex):v.a.isObject(t)&&(e=t,t=this.tronWeb.defaultAddress.hex),!r)return this.injectPromise(this.withdrawBlockRewards,t,e);if(!this.validator.notValid([{name:"origin",type:"address",value:t}],r)){var o={owner_address:x(t)};e&&e.permissionId&&(o.Permission_id=e.permissionId),this.tronWeb.fullNode.request("wallet/withdrawbalance",o,"post").then((function(t){return P(t,o,e,r)})).catch((function(t){return r(t)}))}}},{key:"applyForSR",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(v.a.isFunction(r)&&(o=r,r={}),v.a.isObject(e)&&v.a.isValidURL(t)&&(r=e,e=t,t=this.tronWeb.defaultAddress.hex),!o)return this.injectPromise(this.applyForSR,t,e,r);if(!this.validator.notValid([{name:"origin",type:"address",value:t},{name:"url",type:"url",value:e,msg:"Invalid url provided"}],o)){var n={owner_address:x(t),url:F(e)};r&&r.permissionId&&(n.Permission_id=r.permissionId),this.tronWeb.fullNode.request("wallet/createwitness",n,"post").then((function(t){return P(t,n,r,o)})).catch((function(t){return o(t)}))}}},{key:"vote",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,o=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=this.tronWeb.defaultAddress.hex):v.a.isObject(r)&&(o=r,r=this.tronWeb.defaultAddress.hex),!n)return this.injectPromise(this.vote,e,r,o);if(!this.validator.notValid([{name:"voter",type:"address",value:r},{name:"votes",type:"notEmptyObject",value:e}],n)){var i=!1;if(e=Object.entries(e).map((function(e){var r=d()(e,2),o=r[0],n=r[1];if(!i)return t.validator.notValid([{name:"SR",type:"address",value:o},{name:"vote count",type:"integer",gt:0,value:n,msg:"Invalid vote count provided for SR: "+o}])?i=!0:{vote_address:x(o),vote_count:parseInt(n)}})),!i){var a={owner_address:x(r),votes:e};o&&o.permissionId&&(a.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/votewitnessaccount",a,"post").then((function(t){return P(t,a,o,n)})).catch((function(t){return n(t)}))}}}},{key:"createSmartContract",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.a.isFunction(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),!r)return this.injectPromise(this.createSmartContract,t,e);var o=t.feeLimit||this.tronWeb.feeLimit,n=t.userFeePercentage;"number"==typeof n||n||(n=100);var i=t.originEnergyLimit||1e7,a=t.callValue||0,s=t.tokenValue,c=t.tokenId||t.token_id,u=t.abi,l=void 0!==u&&u,d=t.bytecode,p=void 0!==d&&d,f=t.parameters,h=void 0===f?[]:f,g=t.name,y=void 0===g?"":g;if(l&&v.a.isString(l))try{l=JSON.parse(l)}catch(t){return r("Invalid options.abi provided")}if(l.entrys&&(l=l.entrys),!v.a.isArray(l))return r("Invalid options.abi provided");var m=l.some((function(t){return"constructor"===t.type&&"payable"===t.stateMutability.toLowerCase()}));if(!this.validator.notValid([{name:"bytecode",type:"hex",value:p},{name:"feeLimit",type:"integer",value:o,gt:0},{name:"callValue",type:"integer",value:a,gte:0},{name:"userFeePercentage",type:"integer",value:n,gte:0,lte:100},{name:"originEnergyLimit",type:"integer",value:i,gte:0,lte:1e7},{name:"parameters",type:"array",value:h},{name:"issuer",type:"address",value:e},{name:"tokenValue",type:"integer",value:s,gte:0,optional:!0},{name:"tokenId",type:"integer",value:c,gte:0,optional:!0}],r)){if(m&&0==a&&0==s)return r("When contract is payable, options.callValue or options.tokenValue must be a positive integer");if(!m&&(a>0||s>0))return r("When contract is not payable, options.callValue and options.tokenValue must be 0");if(t.rawParameter&&v.a.isString(t.rawParameter))h=t.rawParameter.replace(/^(0x)/,"");else if(t.funcABIV2)h=Object(E.encodeParamsV2ByABI)(t.funcABIV2,t.parametersV2).replace(/^(0x)/,"");else{var b=l.find((function(t){return"constructor"===t.type}));if(void 0!==b&&b){var w=new A.AbiCoder,B=[],C=[];if(b=b.inputs,h.length!=b.length)return r("constructor needs ".concat(b.length," but ").concat(h.length," provided"));for(var S=0;S<h.length;S++){var I=b[S].type,O=h[S];if(!I||!v.a.isString(I)||!I.length)return r("Invalid parameter type provided: "+I);"address"===I?O=x(O).replace(M.c,"0x"):"address["===I.match(/^([^\x5b]*)(\x5b|$)/)[0]?O=O.map((function(t){return x(t).replace(M.c,"0x")})):/trcToken/.test(I)&&(I=I.replace(/trcToken/,"uint256")),B.push(I),C.push(O)}try{h=w.encode(B,C).replace(/^(0x)/,"")}catch(t){return r(t)}}else h=""}var T={owner_address:x(e),fee_limit:parseInt(o),call_value:parseInt(a),consume_user_resource_percent:n,origin_energy_limit:i,abi:JSON.stringify(l),bytecode:p,parameter:h,name:y};v.a.isNotNullOrUndefined(s)&&(T.call_token_value=parseInt(s)),v.a.isNotNullOrUndefined(c)&&(T.token_id=parseInt(c)),t&&t.permissionId&&(T.Permission_id=t.permissionId),this.tronWeb.fullNode.request("wallet/deploycontract",T,"post").then((function(e){return P(e,T,t,r)})).catch((function(t){return r(t)}))}}},{key:"triggerSmartContract",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return"object"!==u()(e[2])&&(e[2]={feeLimit:e[2],callValue:e[3]},e.splice(3,1)),this._triggerSmartContract.apply(this,e)}},{key:"triggerConstantContract",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e[2]._isConstant=!0,this.triggerSmartContract.apply(this,e)}},{key:"triggerConfirmedConstantContract",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e[2]._isConstant=!0,e[2].confirmed=!0,this.triggerSmartContract.apply(this,e)}},{key:"estimateEnergy",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e[2].estimateEnergy=!0,this.triggerSmartContract.apply(this,e)}},{key:"_triggerSmartContract",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.tronWeb.defaultAddress.hex,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(v.a.isFunction(n)&&(i=n,n=this.tronWeb.defaultAddress.hex),v.a.isFunction(o)&&(i=o,o=[]),!i)return this.injectPromise(this._triggerSmartContract,t,e,r,o,n);var a=Object.assign({callValue:0,feeLimit:this.tronWeb.feeLimit},r),s=a.tokenValue,c=a.tokenId,u=a.callValue,l=a.feeLimit;if(!this.validator.notValid([{name:"feeLimit",type:"integer",value:l,gt:0},{name:"callValue",type:"integer",value:u,gte:0},{name:"parameters",type:"array",value:o},{name:"contract",type:"address",value:t},{name:"issuer",type:"address",value:n,optional:!0},{name:"tokenValue",type:"integer",value:s,gte:0,optional:!0},{name:"tokenId",type:"integer",value:c,gte:0,optional:!0}],i)){var d={contract_address:x(t),owner_address:x(n)};if(e&&v.a.isString(e)){if(e=e.replace("/s*/g",""),o.length){for(var p=new A.AbiCoder,f=[],h=[],g=0;g<o.length;g++){var y=o[g],m=y.type,b=y.value;if(!m||!v.a.isString(m)||!m.length)return i("Invalid parameter type provided: "+m);"address"===m?b=x(b).replace(M.c,"0x"):"address["===m.match(/^([^\x5b]*)(\x5b|$)/)[0]&&(b=b.map((function(t){return x(t).replace(M.c,"0x")}))),f.push(m),h.push(b)}try{f=f.map((function(t){return/trcToken/.test(t)&&(t=t.replace(/trcToken/,"uint256")),t})),o=p.encode(f,h).replace(/^(0x)/,"")}catch(t){return i(t)}}else o="";r.funcABIV2&&(o=Object(E.encodeParamsV2ByABI)(r.funcABIV2,r.parametersV2).replace(/^(0x)/,"")),r.shieldedParameter&&v.a.isString(r.shieldedParameter)&&(o=r.shieldedParameter.replace(/^(0x)/,"")),r.rawParameter&&v.a.isString(r.rawParameter)&&(o=r.rawParameter.replace(/^(0x)/,"")),d.function_selector=e,d.parameter=o}d.call_value=parseInt(u),v.a.isNotNullOrUndefined(s)&&(d.call_token_value=parseInt(s)),v.a.isNotNullOrUndefined(c)&&(d.token_id=parseInt(c)),r._isConstant||r.estimateEnergy||(d.fee_limit=parseInt(l)),r.permissionId&&(d.Permission_id=r.permissionId);var w="triggersmartcontract";r._isConstant?w="triggerconstantcontract":r.estimateEnergy&&(w="estimateenergy"),w="wallet".concat(r.confirmed?"solidity":"","/").concat(w),this.tronWeb[r.confirmed?"solidityNode":"fullNode"].request(w,d,"post").then((function(t){return k(t,d,r,i)})).catch((function(t){return i(t)}))}}},{key:"clearABI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r)return this.injectPromise(this.clearABI,t,e);if(!this.tronWeb.isAddress(t))return r("Invalid contract address provided");if(!this.tronWeb.isAddress(e))return r("Invalid owner address provided");var o={contract_address:x(t),owner_address:x(e)};this.tronWeb.trx.cache.contracts[t]&&delete this.tronWeb.trx.cache.contracts[t],this.tronWeb.fullNode.request("wallet/clearabi",o,"post").then((function(t){return P(t,o,{},r)})).catch((function(t){return r(t)}))}},{key:"updateBrokerage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r)return this.injectPromise(this.updateBrokerage,t,e);if(!v.a.isNotNullOrUndefined(t))return r("Invalid brokerage provided");if(!v.a.isInteger(t)||t<0||t>100)return r("Brokerage must be an integer between 0 and 100");if(!this.tronWeb.isAddress(e))return r("Invalid owner address provided");var o={brokerage:parseInt(t),owner_address:x(e)},n={};this.tronWeb.fullNode.request("wallet/updateBrokerage",o,"post").then((function(t){return P(t,o,n,r)})).catch((function(t){return r(t)}))}},{key:"createToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.a.isFunction(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),!r)return this.injectPromise(this.createToken,t,e);var o=t.name,n=void 0!==o&&o,i=t.abbreviation,a=void 0!==i&&i,s=t.description,c=void 0!==s&&s,u=t.url,l=void 0!==u&&u,d=t.totalSupply,p=void 0===d?0:d,f=t.trxRatio,h=void 0===f?1:f,g=t.tokenRatio,y=void 0===g?1:g,m=t.saleStart,b=void 0===m?Date.now():m,A=t.saleEnd,w=void 0!==A&&A,M=t.freeBandwidth,B=void 0===M?0:M,C=t.freeBandwidthLimit,E=void 0===C?0:C,S=t.frozenAmount,I=void 0===S?0:S,O=t.frozenDuration,T=void 0===O?0:O,_=t.voteScore,k=t.precision;if(!this.validator.notValid([{name:"Supply amount",type:"positive-integer",value:p},{name:"TRX ratio",type:"positive-integer",value:h},{name:"Token ratio",type:"positive-integer",value:y},{name:"token abbreviation",type:"not-empty-string",value:a},{name:"token name",type:"not-empty-string",value:n},{name:"token description",type:"not-empty-string",value:c},{name:"token url",type:"url",value:l},{name:"issuer",type:"address",value:e},{name:"sale start timestamp",type:"integer",value:b,gte:Date.now()},{name:"sale end timestamp",type:"integer",value:w,gt:b},{name:"Free bandwidth amount",type:"integer",value:B,gte:0},{name:"Free bandwidth limit",type:"integer",value:E,gte:0},{name:"Frozen supply",type:"integer",value:I,gte:0},{name:"Frozen duration",type:"integer",value:T,gte:0}],r)){if(v.a.isNotNullOrUndefined(_)&&(!v.a.isInteger(_)||_<=0))return r("voteScore must be a positive integer greater than 0");if(v.a.isNotNullOrUndefined(k)&&(!v.a.isInteger(k)||k<0||k>6))return r("precision must be a positive integer >= 0 and <= 6");var R={owner_address:x(e),name:F(n),abbr:F(a),description:F(c),url:F(l),total_supply:parseInt(p),trx_num:parseInt(h),num:parseInt(y),start_time:parseInt(b),end_time:parseInt(w),free_asset_net_limit:parseInt(B),public_free_asset_net_limit:parseInt(E),frozen_supply:{frozen_amount:parseInt(I),frozen_days:parseInt(T)}};parseInt(I)>0||delete R.frozen_supply,k&&!isNaN(parseInt(k))&&(R.precision=parseInt(k)),_&&!isNaN(parseInt(_))&&(R.vote_score=parseInt(_)),t&&t.permissionId&&(R.Permission_id=t.permissionId),this.tronWeb.fullNode.request("wallet/createassetissue",R,"post").then((function(t){return P(t,R,r)})).catch((function(t){return r(t)}))}}},{key:"createAccount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(v.a.isFunction(r)&&(o=r,r={}),v.a.isFunction(e)?(o=e,e=this.tronWeb.defaultAddress.hex):v.a.isObject(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),!o)return this.injectPromise(this.createAccount,t,e,r);if(!this.validator.notValid([{name:"account",type:"address",value:t},{name:"origin",type:"address",value:e}],o)){var n={owner_address:x(e),account_address:x(t)};r&&r.permissionId&&(n.Permission_id=r.permissionId),this.tronWeb.fullNode.request("wallet/createaccount",n,"post").then((function(t){return P(t,n,r,o)})).catch((function(t){return o(t)}))}}},{key:"updateAccount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(v.a.isFunction(r)&&(o=r,r={}),v.a.isFunction(e)?(o=e,e=this.tronWeb.defaultAddress.hex):v.a.isObject(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),!o)return this.injectPromise(this.updateAccount,t,e,r);if(!this.validator.notValid([{name:"Name",type:"not-empty-string",value:t},{name:"origin",type:"address",value:e}],o)){var n={account_name:F(t),owner_address:x(e)};r&&r.permissionId&&(n.Permission_id=r.permissionId),this.tronWeb.fullNode.request("wallet/updateaccount",n,"post").then((function(t){return P(t,n,r,o)})).catch((function(t){return o(t)}))}}},{key:"setAccountId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.a.isFunction(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),!r)return this.injectPromise(this.setAccountId,t,e);if(t&&v.a.isString(t)&&t.startsWith("0x")&&(t=t.slice(2)),!this.validator.notValid([{name:"accountId",type:"hex",value:t},{name:"accountId",type:"string",lte:32,gte:8,value:t},{name:"origin",type:"address",value:e}],r)){var o={account_id:t,owner_address:x(e)};this.tronWeb.fullNode.request("wallet/setaccountid",o,"post").then((function(t){return P(t,o,{},r)})).catch((function(t){return r(t)}))}}},{key:"updateToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.a.isFunction(e)?(r=e,e=this.tronWeb.defaultAddress.hex):v.a.isObject(e)&&(t=e,e=this.tronWeb.defaultAddress.hex),!r)return this.injectPromise(this.updateToken,t,e);var o=t,n=o.description,i=void 0!==n&&n,a=o.url,s=void 0!==a&&a,c=o.freeBandwidth,u=void 0===c?0:c,l=o.freeBandwidthLimit,d=void 0===l?0:l;if(!this.validator.notValid([{name:"token description",type:"not-empty-string",value:i},{name:"token url",type:"url",value:s},{name:"issuer",type:"address",value:e},{name:"Free bandwidth amount",type:"positive-integer",value:u},{name:"Free bandwidth limit",type:"positive-integer",value:d}],r)){var p={owner_address:x(e),description:F(i),url:F(s),new_limit:parseInt(u),new_public_limit:parseInt(d)};t&&t.permissionId&&(p.Permission_id=t.permissionId),this.tronWeb.fullNode.request("wallet/updateasset",p,"post").then((function(e){return P(e,p,t,r)})).catch((function(t){return r(t)}))}}},{key:"sendAsset",value:function(){return this.sendToken.apply(this,arguments)}},{key:"purchaseAsset",value:function(){return this.purchaseToken.apply(this,arguments)}},{key:"createAsset",value:function(){return this.createToken.apply(this,arguments)}},{key:"updateAsset",value:function(){return this.updateToken.apply(this,arguments)}},{key:"createProposal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(v.a.isFunction(r)&&(o=r,r={}),v.a.isFunction(e)?(o=e,e=this.tronWeb.defaultAddress.hex):v.a.isObject(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),!o)return this.injectPromise(this.createProposal,t,e,r);if(!this.validator.notValid([{name:"issuer",type:"address",value:e}],o)){var n="Invalid proposal parameters provided";if(!t)return o(n);v.a.isArray(t)||(t=[t]);var i,a=T(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(!v.a.isObject(s))return o(n)}}catch(t){a.e(t)}finally{a.f()}var c={owner_address:x(e),parameters:t};r&&r.permissionId&&(c.Permission_id=r.permissionId),this.tronWeb.fullNode.request("wallet/proposalcreate",c,"post").then((function(t){return P(t,c,r,o)})).catch((function(t){return o(t)}))}}},{key:"deleteProposal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(v.a.isFunction(r)&&(o=r,r={}),v.a.isFunction(e)?(o=e,e=this.tronWeb.defaultAddress.hex):v.a.isObject(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),!o)return this.injectPromise(this.deleteProposal,t,e,r);if(!this.validator.notValid([{name:"issuer",type:"address",value:e},{name:"proposalID",type:"integer",value:t,gte:0}],o)){var n={owner_address:x(e),proposal_id:parseInt(t)};r&&r.permissionId&&(n.Permission_id=r.permissionId),this.tronWeb.fullNode.request("wallet/proposaldelete",n,"post").then((function(t){return P(t,n,r,o)})).catch((function(t){return o(t)}))}}},{key:"voteProposal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tronWeb.defaultAddress.hex,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=this.tronWeb.defaultAddress.hex):v.a.isObject(r)&&(o=r,r=this.tronWeb.defaultAddress.hex),!n)return this.injectPromise(this.voteProposal,t,e,r,o);if(!this.validator.notValid([{name:"voter",type:"address",value:r},{name:"proposalID",type:"integer",value:t,gte:0},{name:"has approval",type:"boolean",value:e}],n)){var i={owner_address:x(r),proposal_id:parseInt(t),is_add_approval:e};o&&o.permissionId&&(i.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/proposalapprove",i,"post").then((function(t){return P(t,i,o,n)})).catch((function(t){return n(t)}))}}},{key:"createTRXExchange",value:function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(v.a.isFunction(n)&&(i=n,n={}),v.a.isFunction(o)?(i=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(n=o,o=this.tronWeb.defaultAddress.hex),!i)return this.injectPromise(this.createTRXExchange,t,e,r,o,n);if(!this.validator.notValid([{name:"owner",type:"address",value:o},{name:"token name",type:"not-empty-string",value:t},{name:"token balance",type:"positive-integer",value:e},{name:"trx balance",type:"positive-integer",value:r}],i)){var a={owner_address:x(o),first_token_id:F(t),first_token_balance:e,second_token_id:"5f",second_token_balance:r};n&&n.permissionId&&(a.Permission_id=n.permissionId),this.tronWeb.fullNode.request("wallet/exchangecreate",a,"post").then((function(t){return P(t,a,n,i)})).catch((function(t){return i(t)}))}}},{key:"createTokenExchange",value:function(t,e,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.tronWeb.defaultAddress.hex,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(v.a.isFunction(i)&&(a=i,i={}),v.a.isFunction(n)?(a=n,n=this.tronWeb.defaultAddress.hex):v.a.isObject(n)&&(i=n,n=this.tronWeb.defaultAddress.hex),!a)return this.injectPromise(this.createTokenExchange,t,e,r,o,n,i);if(!this.validator.notValid([{name:"owner",type:"address",value:n},{name:"first token name",type:"not-empty-string",value:t},{name:"second token name",type:"not-empty-string",value:r},{name:"first token balance",type:"positive-integer",value:e},{name:"second token balance",type:"positive-integer",value:o}],a)){var s={owner_address:x(n),first_token_id:F(t),first_token_balance:e,second_token_id:F(r),second_token_balance:o};i&&i.permissionId&&(s.Permission_id=i.permissionId),this.tronWeb.fullNode.request("wallet/exchangecreate",s,"post").then((function(t){return P(t,s,i,a)})).catch((function(t){return a(t)}))}}},{key:"injectExchangeTokens",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(v.a.isFunction(n)&&(i=n,n={}),v.a.isFunction(o)?(i=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(n=o,o=this.tronWeb.defaultAddress.hex),!i)return this.injectPromise(this.injectExchangeTokens,t,e,r,o,n);if(!this.validator.notValid([{name:"owner",type:"address",value:o},{name:"token name",type:"not-empty-string",value:e},{name:"token amount",type:"integer",value:r,gte:1},{name:"exchangeID",type:"integer",value:t,gte:0}],i)){var a={owner_address:x(o),exchange_id:parseInt(t),token_id:F(e),quant:parseInt(r)};n&&n.permissionId&&(a.Permission_id=n.permissionId),this.tronWeb.fullNode.request("wallet/exchangeinject",a,"post").then((function(t){return P(t,a,n,i)})).catch((function(t){return i(t)}))}}},{key:"withdrawExchangeTokens",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultAddress.hex,n=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(v.a.isFunction(n)&&(i=n,n={}),v.a.isFunction(o)?(i=o,o=this.tronWeb.defaultAddress.hex):v.a.isObject(o)&&(n=o,o=this.tronWeb.defaultAddress.hex),!i)return this.injectPromise(this.withdrawExchangeTokens,t,e,r,o,n);if(!this.validator.notValid([{name:"owner",type:"address",value:o},{name:"token name",type:"not-empty-string",value:e},{name:"token amount",type:"integer",value:r,gte:1},{name:"exchangeID",type:"integer",value:t,gte:0}],i)){var a={owner_address:x(o),exchange_id:parseInt(t),token_id:F(e),quant:parseInt(r)};n&&n.permissionId&&(a.Permission_id=n.permissionId),this.tronWeb.fullNode.request("wallet/exchangewithdraw",a,"post").then((function(t){return P(t,a,n,i)})).catch((function(t){return i(t)}))}}},{key:"tradeExchangeTokens",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.tronWeb.defaultAddress.hex,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(v.a.isFunction(i)&&(a=i,i={}),v.a.isFunction(n)?(a=n,n=this.tronWeb.defaultAddress.hex):v.a.isObject(n)&&(i=n,n=this.tronWeb.defaultAddress.hex),!a)return this.injectPromise(this.tradeExchangeTokens,t,e,r,o,n,i);if(!this.validator.notValid([{name:"owner",type:"address",value:n},{name:"token name",type:"not-empty-string",value:e},{name:"tokenAmountSold",type:"integer",value:r,gte:1},{name:"tokenAmountExpected",type:"integer",value:o,gte:1},{name:"exchangeID",type:"integer",value:t,gte:0}],a)){var s={owner_address:x(n),exchange_id:parseInt(t),token_id:this.tronWeb.fromAscii(e),quant:parseInt(r),expected:parseInt(o)};i&&i.permissionId&&(s.Permission_id=i.permissionId),this.tronWeb.fullNode.request("wallet/exchangetransaction",s,"post").then((function(t){return P(t,s,i,a)})).catch((function(t){return a(t)}))}}},{key:"updateSetting",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tronWeb.defaultAddress.hex,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=this.tronWeb.defaultAddress.hex):v.a.isObject(r)&&(o=r,r=this.tronWeb.defaultAddress.hex),!n)return this.injectPromise(this.updateSetting,t,e,r,o);if(!this.validator.notValid([{name:"owner",type:"address",value:r},{name:"contract",type:"address",value:t},{name:"userFeePercentage",type:"integer",value:e,gte:0,lte:100}],n)){var i={owner_address:x(r),contract_address:x(t),consume_user_resource_percent:e};o&&o.permissionId&&(i.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/updatesetting",i,"post").then((function(t){return P(t,i,o,n)})).catch((function(t){return n(t)}))}}},{key:"updateEnergyLimit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tronWeb.defaultAddress.hex,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o={}),v.a.isFunction(r)?(n=r,r=this.tronWeb.defaultAddress.hex):v.a.isObject(r)&&(o=r,r=this.tronWeb.defaultAddress.hex),!n)return this.injectPromise(this.updateEnergyLimit,t,e,r,o);if(!this.validator.notValid([{name:"owner",type:"address",value:r},{name:"contract",type:"address",value:t},{name:"originEnergyLimit",type:"integer",value:e,gte:0,lte:1e7}],n)){var i={owner_address:x(r),contract_address:x(t),origin_energy_limit:e};o&&o.permissionId&&(i.Permission_id=o.permissionId),this.tronWeb.fullNode.request("wallet/updateenergylimit",i,"post").then((function(t){return P(t,i,o,n)})).catch((function(t){return n(t)}))}}},{key:"checkPermissions",value:function(t,e){if(t){if(t.type!==e||!t.permission_name||!v.a.isString(t.permission_name)||!v.a.isInteger(t.threshold)||t.threshold<1||!t.keys)return!1;var r,o=T(t.keys);try{for(o.s();!(r=o.n()).done;){var n=r.value;if(!this.tronWeb.isAddress(n.address)||!v.a.isInteger(n.weight)||n.weight>t.threshold||n.weight<1||2===e&&!t.operations)return!1}}catch(t){o.e(t)}finally{o.f()}}return!0}},{key:"updateAccountPermissions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(v.a.isFunction(o)&&(n=o,o=!1),v.a.isFunction(r)&&(n=r,r=o=!1),v.a.isFunction(e)&&(n=e,e=r=o=!1),!n)return this.injectPromise(this.updateAccountPermissions,t,e,r,o);if(!this.tronWeb.isAddress(t))return n("Invalid ownerAddress provided");if(!this.checkPermissions(e,0))return n("Invalid ownerPermissions provided");if(!this.checkPermissions(r,1))return n("Invalid witnessPermissions provided");Array.isArray(o)||(o=[o]);var i,a=T(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(!this.checkPermissions(s,2))return n("Invalid activesPermissions provided")}}catch(t){a.e(t)}finally{a.f()}var c={owner_address:t};e&&(c.owner=e),r&&(c.witness=r),o&&(c.actives=1===o.length?o[0]:o),this.tronWeb.fullNode.request("wallet/accountpermissionupdate",c,"post").then((function(t){return P(t,c,{},n)})).catch((function(t){return n(t)}))}},{key:"newTxID",value:(i=s()(m.a.mark((function t(e,r){return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",this.injectPromise(this.newTxID,e));case 2:this.tronWeb.fullNode.request("wallet/getsignweight",e,"post").then((function(t){return"boolean"==typeof e.visible&&(t.transaction.transaction.visible=e.visible),P(t.transaction.transaction,O(O({},e.raw_data.contract[0].parameter.value),{},{Permission_id:e.raw_data.contract[0].Permission_id}),{data:e.raw_data.data,fee_limit:e.raw_data.fee_limit},r)})).catch((function(t){return r("Error generating a new transaction id.")}));case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"alterTransaction",value:(n=s()(m.a.mark((function t(e){var r,o,n=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.length>1&&void 0!==n[1]?n[1]:{},o=n.length>2&&void 0!==n[2]&&n[2]){t.next=4;break}return t.abrupt("return",this.injectPromise(this.alterTransaction,e,r));case 4:if(!e.signature){t.next=6;break}return t.abrupt("return",o("You can not extend the expiration of a signed transaction."));case 6:if(!r.data){t.next=12;break}if("hex"!==r.dataFormat&&(r.data=this.tronWeb.toHex(r.data)),r.data=r.data.replace(/^0x/,""),0!==r.data.length){t.next=11;break}return t.abrupt("return",o("Invalid data provided"));case 11:e.raw_data.data=r.data;case 12:if(!r.extension){t.next=17;break}if(r.extension=parseInt(1e3*r.extension),!(isNaN(r.extension)||e.raw_data.expiration+r.extension<=Date.now()+3e3)){t.next=16;break}return t.abrupt("return",o("Invalid extension provided"));case 16:e.raw_data.expiration+=r.extension;case 17:this.newTxID(e,o);case 18:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"extendExpiration",value:(r=s()(m.a.mark((function t(e,r){var o,n=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.length>2&&void 0!==n[2]&&n[2]){t.next=3;break}return t.abrupt("return",this.injectPromise(this.extendExpiration,e,r));case 3:this.alterTransaction(e,{extension:r},o);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"addUpdateData",value:(e=s()(m.a.mark((function t(e,r){var o,n,i=arguments;return m.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=i.length>2&&void 0!==i[2]?i[2]:"utf8",n=i.length>3&&void 0!==i[3]&&i[3],v.a.isFunction(o)&&(n=o,o="utf8"),n){t.next=5;break}return t.abrupt("return",this.injectPromise(this.addUpdateData,e,r,o));case 5:this.alterTransaction(e,{data:r,dataFormat:o},n);case 6:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})}]),t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return O}));var o=r(30),n=r.n(o),i=r(32),a=r.n(i),s=r(6),c=r.n(s),u=r(14),l=r.n(u),d=r(12),p=r.n(d),f=r(13),h=r.n(f),g=r(2),y=r.n(g),m=r(10),b=r(0),v=r(9),A=r(11),w=r(39),M=r(19),B=r.n(M),C=r(34);function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){l()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function I(t){return m.default.address.toHex(t)}var O=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p()(this,t),!e||!e instanceof m.default)throw new Error("Expected instance of TronWeb");this.tronWeb=e,this.injectPromise=B()(this),this.cache={contracts:{}},this.validator=new w.a(e)}var e,r,o,i,s,u,l,d,f,g,M,E,O,T,_,x,F;return h()(t,[{key:"_parseToken",value:function(t){return S(S({},t),{},{name:this.tronWeb.toUtf8(t.name),abbr:t.abbr&&this.tronWeb.toUtf8(t.abbr),description:t.description&&this.tronWeb.toUtf8(t.description),url:t.url&&this.tronWeb.toUtf8(t.url)})}},{key:"getCurrentBlock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.getCurrentBlock);this.tronWeb.fullNode.request("wallet/getnowblock").then((function(e){t(null,e)})).catch((function(e){return t(e)}))}},{key:"getConfirmedCurrentBlock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.getConfirmedCurrentBlock);this.tronWeb.solidityNode.request("walletsolidity/getnowblock").then((function(e){t(null,e)})).catch((function(e){return t(e)}))}},{key:"getBlock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultBlock,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b.a.isFunction(t)&&(e=t,t=this.tronWeb.defaultBlock),e?!1===t?e("No block identifier provided"):("earliest"==t&&(t=0),"latest"==t?this.getCurrentBlock(e):isNaN(t)&&b.a.isHex(t)?this.getBlockByHash(t,e):void this.getBlockByNumber(t,e)):this.injectPromise(this.getBlock,t)}},{key:"getBlockByHash",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.injectPromise(this.getBlockByHash,t);this.tronWeb.fullNode.request("wallet/getblockbyid",{value:t},"post").then((function(t){if(!Object.keys(t).length)return e("Block not found");e(null,t)})).catch((function(t){return e(t)}))}},{key:"getBlockByNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?!b.a.isInteger(t)||t<0?e("Invalid block number provided"):void this.tronWeb.fullNode.request("wallet/getblockbynum",{num:parseInt(t)},"post").then((function(t){if(!Object.keys(t).length)return e("Block not found");e(null,t)})).catch((function(t){return e(t)})):this.injectPromise(this.getBlockByNumber,t)}},{key:"getBlockTransactionCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultBlock,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b.a.isFunction(t)&&(e=t,t=this.tronWeb.defaultBlock),!e)return this.injectPromise(this.getBlockTransactionCount,t);this.getBlock(t).then((function(t){var r=t.transactions;e(null,(void 0===r?[]:r).length)})).catch((function(t){return e(t)}))}},{key:"getTransactionFromBlock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultBlock,e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(b.a.isFunction(e)&&(r=e,e=0),b.a.isFunction(t)&&(r=t,t=this.tronWeb.defaultBlock),!r)return this.injectPromise(this.getTransactionFromBlock,t,e);this.getBlock(t).then((function(t){var o=t.transactions,n=void 0!==o&&o;n?"number"==typeof e?e>=0&&e<n.length?r(null,n[e]):r("Invalid transaction index provided"):r(null,n):r("Transaction not found in block")})).catch((function(t){return r(t)}))}},{key:"getTransaction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.injectPromise(this.getTransaction,t);this.tronWeb.fullNode.request("wallet/gettransactionbyid",{value:t},"post").then((function(t){if(!Object.keys(t).length)return e("Transaction not found");e(null,t)})).catch((function(t){return e(t)}))}},{key:"getConfirmedTransaction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.injectPromise(this.getConfirmedTransaction,t);this.tronWeb.solidityNode.request("walletsolidity/gettransactionbyid",{value:t},"post").then((function(t){if(!Object.keys(t).length)return e("Transaction not found");e(null,t)})).catch((function(t){return e(t)}))}},{key:"getUnconfirmedTransactionInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransactionInfoById(t,{confirmed:!1},e)}},{key:"getTransactionInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransactionInfoById(t,{confirmed:!0},e)}},{key:"_getTransactionInfoById",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r)return this.injectPromise(this._getTransactionInfoById,t,e);this.tronWeb[e.confirmed?"solidityNode":"fullNode"].request("wallet".concat(e.confirmed?"solidity":"","/gettransactioninfobyid"),{value:t},"post").then((function(t){r(null,t)})).catch((function(t){return r(t)}))}},{key:"getTransactionsToAddress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b.a.isFunction(r)&&(o=r,r=0),b.a.isFunction(e)&&(o=e,e=30),o?(t=this.tronWeb.address.toHex(t),this.getTransactionsRelated(t,"to",e,r,o)):this.injectPromise(this.getTransactionsToAddress,t,e,r)}},{key:"getTransactionsFromAddress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b.a.isFunction(r)&&(o=r,r=0),b.a.isFunction(e)&&(o=e,e=30),o?(t=this.tronWeb.address.toHex(t),this.getTransactionsRelated(t,"from",e,r,o)):this.injectPromise(this.getTransactionsFromAddress,t,e,r)}},{key:"getTransactionsRelated",value:(F=c()(y.a.mark((function t(){var e,r,o,i,s,c,u,l,d,p=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=p.length>0&&void 0!==p[0]?p[0]:this.tronWeb.defaultAddress.hex,r=p.length>1&&void 0!==p[1]?p[1]:"all",o=p.length>2&&void 0!==p[2]?p[2]:30,i=p.length>3&&void 0!==p[3]?p[3]:0,s=p.length>4&&void 0!==p[4]&&p[4],b.a.isFunction(i)&&(s=i,i=0),b.a.isFunction(o)&&(s=o,o=30),b.a.isFunction(r)&&(s=r,r="all"),b.a.isFunction(e)&&(s=e,e=this.tronWeb.defaultAddress.hex),s){t.next=11;break}return t.abrupt("return",this.injectPromise(this.getTransactionsRelated,e,r,o,i));case 11:if(["to","from","all"].includes(r)){t.next=13;break}return t.abrupt("return",s('Invalid direction provided: Expected "to", "from" or "all"'));case 13:if("all"!=r){t.next=27;break}return t.prev=14,t.next=17,Promise.all([this.getTransactionsRelated(e,"from",o,i),this.getTransactionsRelated(e,"to",o,i)]);case 17:return c=t.sent,u=a()(c,2),l=u[0],d=u[1],t.abrupt("return",s(null,[].concat(n()(l.map((function(t){return t.direction="from",t}))),n()(d.map((function(t){return t.direction="to",t})))).sort((function(t,e){return e.raw_data.timestamp-t.raw_data.timestamp}))));case 24:return t.prev=24,t.t0=t.catch(14),t.abrupt("return",s(t.t0));case 27:if(this.tronWeb.isAddress(e)){t.next=29;break}return t.abrupt("return",s("Invalid address provided"));case 29:if(!(!b.a.isInteger(o)||o<0||i&&o<1)){t.next=31;break}return t.abrupt("return",s("Invalid limit provided"));case 31:if(b.a.isInteger(i)&&!(i<0)){t.next=33;break}return t.abrupt("return",s("Invalid offset provided"));case 33:e=this.tronWeb.address.toHex(e),this.tronWeb.solidityNode.request("walletextension/gettransactions".concat(r,"this"),{account:{address:e},offset:i,limit:o},"post").then((function(t){var e=t.transaction;s(null,e)})).catch((function(t){return s(t)}));case 35:case"end":return t.stop()}}),t,this,[[14,24]])}))),function(){return F.apply(this,arguments)})},{key:"getAccount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b.a.isFunction(t)&&(e=t,t=this.tronWeb.defaultAddress.hex),e?this.tronWeb.isAddress(t)?(t=this.tronWeb.address.toHex(t),void this.tronWeb.solidityNode.request("walletsolidity/getaccount",{address:t},"post").then((function(t){e(null,t)})).catch((function(t){return e(t)}))):e("Invalid address provided"):this.injectPromise(this.getAccount,t)}},{key:"getAccountById",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.injectPromise(this.getAccountById,t);this.getAccountInfoById(t,{confirmed:!0},e)}},{key:"getAccountInfoById",value:function(t,e,r){this.validator.notValid([{name:"accountId",type:"hex",value:t},{name:"accountId",type:"string",lte:32,gte:8,value:t}],r)||(t.startsWith("0x")&&(t=t.slice(2)),this.tronWeb[e.confirmed?"solidityNode":"fullNode"].request("wallet".concat(e.confirmed?"solidity":"","/getaccountbyid"),{account_id:t},"post").then((function(t){r(null,t)})).catch((function(t){return r(t)})))}},{key:"getBalance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b.a.isFunction(t)&&(e=t,t=this.tronWeb.defaultAddress.hex),!e)return this.injectPromise(this.getBalance,t);this.getAccount(t).then((function(t){var r=t.balance;e(null,void 0===r?0:r)})).catch((function(t){return e(t)}))}},{key:"getUnconfirmedAccount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b.a.isFunction(t)&&(e=t,t=this.tronWeb.defaultAddress.hex),e?this.tronWeb.isAddress(t)?(t=this.tronWeb.address.toHex(t),void this.tronWeb.fullNode.request("wallet/getaccount",{address:t},"post").then((function(t){e(null,t)})).catch((function(t){return e(t)}))):e("Invalid address provided"):this.injectPromise(this.getUnconfirmedAccount,t)}},{key:"getUnconfirmedAccountById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.injectPromise(this.getUnconfirmedAccountById,t);this.getAccountInfoById(t,{confirmed:!1},e)}},{key:"getUnconfirmedBalance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b.a.isFunction(t)&&(e=t,t=this.tronWeb.defaultAddress.hex),!e)return this.injectPromise(this.getUnconfirmedBalance,t);this.getUnconfirmedAccount(t).then((function(t){var r=t.balance;e(null,void 0===r?0:r)})).catch((function(t){return e(t)}))}},{key:"getBandwidth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b.a.isFunction(t)&&(e=t,t=this.tronWeb.defaultAddress.hex),e?this.tronWeb.isAddress(t)?(t=this.tronWeb.address.toHex(t),void this.tronWeb.fullNode.request("wallet/getaccountnet",{address:t},"post").then((function(t){var r=t.freeNetUsed,o=void 0===r?0:r,n=t.freeNetLimit,i=void 0===n?0:n,a=t.NetUsed,s=void 0===a?0:a,c=t.NetLimit;e(null,i-o+((void 0===c?0:c)-s))})).catch((function(t){return e(t)}))):e("Invalid address provided"):this.injectPromise(this.getBandwidth,t)}},{key:"getTokensIssuedByAddress",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return b.a.isFunction(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),r?this.tronWeb.isAddress(e)?(e=this.tronWeb.address.toHex(e),void this.tronWeb.fullNode.request("wallet/getassetissuebyaccount",{address:e},"post").then((function(e){var o=e.assetIssue,n=void 0!==o&&o;if(!n)return r(null,{});var i=n.map((function(e){return t._parseToken(e)})).reduce((function(t,e){return t[e.name]=e,t}),{});r(null,i)})).catch((function(t){return r(t)}))):r("Invalid address provided"):this.injectPromise(this.getTokensIssuedByAddress,e)}},{key:"getTokenFromID",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r?(b.a.isInteger(e)&&(e=e.toString()),b.a.isString(e)&&e.length?void this.tronWeb.fullNode.request("wallet/getassetissuebyname",{value:this.tronWeb.fromUtf8(e)},"post").then((function(e){if(!e.name)return r("Token does not exist");r(null,t._parseToken(e))})).catch((function(t){return r(t)})):r("Invalid token ID provided")):this.injectPromise(this.getTokenFromID,e)}},{key:"listNodes",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return this.injectPromise(this.listNodes);this.tronWeb.fullNode.request("wallet/listnodes").then((function(r){var o=r.nodes;e(null,(void 0===o?[]:o).map((function(e){var r=e.address,o=r.host,n=r.port;return"".concat(t.tronWeb.toUtf8(o),":").concat(n)})))})).catch((function(t){return e(t)}))}},{key:"getBlockRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return b.a.isFunction(e)&&(r=e,e=30),b.a.isFunction(t)&&(r=t,t=0),r?!b.a.isInteger(t)||t<0?r("Invalid start of range provided"):!b.a.isInteger(e)||e<=t?r("Invalid end of range provided"):void this.tronWeb.fullNode.request("wallet/getblockbylimitnext",{startNum:parseInt(t),endNum:parseInt(e)+1},"post").then((function(t){var e=t.block;r(null,void 0===e?[]:e)})).catch((function(t){return r(t)})):this.injectPromise(this.getBlockRange,t,e)}},{key:"listSuperRepresentatives",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.listSuperRepresentatives);this.tronWeb.fullNode.request("wallet/listwitnesses").then((function(e){var r=e.witnesses;t(null,void 0===r?[]:r)})).catch((function(e){return t(e)}))}},{key:"listTokens",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return b.a.isFunction(r)&&(o=r,r=0),b.a.isFunction(e)&&(o=e,e=0),o?!b.a.isInteger(e)||e<0||r&&e<1?o("Invalid limit provided"):!b.a.isInteger(r)||r<0?o("Invalid offset provided"):e?void this.tronWeb.fullNode.request("wallet/getpaginatedassetissuelist",{offset:parseInt(r),limit:parseInt(e)},"post").then((function(e){var r=e.assetIssue;o(null,(void 0===r?[]:r).map((function(e){return t._parseToken(e)})))})).catch((function(t){return o(t)})):this.tronWeb.fullNode.request("wallet/getassetissuelist").then((function(e){var r=e.assetIssue;o(null,(void 0===r?[]:r).map((function(e){return t._parseToken(e)})))})).catch((function(t){return o(t)})):this.injectPromise(this.listTokens,e,r)}},{key:"timeUntilNextVoteCycle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.timeUntilNextVoteCycle);this.tronWeb.fullNode.request("wallet/getnextmaintenancetime").then((function(e){var r=e.num,o=void 0===r?-1:r;if(-1==o)return t("Failed to get time until next vote cycle");t(null,Math.floor(o/1e3))})).catch((function(e){return t(e)}))}},{key:"getContract",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r?this.tronWeb.isAddress(t)?void(this.cache.contracts[t]?r(null,this.cache.contracts[t]):(t=this.tronWeb.address.toHex(t),this.tronWeb.fullNode.request("wallet/getcontract",{value:t}).then((function(o){if(o.Error)return r("Contract does not exist");e.cache.contracts[t]=o,r(null,o)})).catch((function(t){return r(t)})))):r("Invalid contract address provided"):this.injectPromise(this.getContract,t)}},{key:"verifyMessage",value:(x=c()(y.a.mark((function e(){var r,o,n,i,a,s=arguments;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>0&&void 0!==s[0]&&s[0],o=s.length>1&&void 0!==s[1]&&s[1],n=s.length>2&&void 0!==s[2]?s[2]:this.tronWeb.defaultAddress.base58,i=!(s.length>3&&void 0!==s[3])||s[3],a=s.length>4&&void 0!==s[4]&&s[4],b.a.isFunction(n)&&(a=n,n=this.tronWeb.defaultAddress.base58,i=!0),b.a.isFunction(i)&&(a=i,i=!0),a){e.next=9;break}return e.abrupt("return",this.injectPromise(this.verifyMessage,r,o,n,i));case 9:if(b.a.isHex(r)){e.next=11;break}return e.abrupt("return",a("Expected hex message input"));case 11:if(!t.verifySignature(r,n,o,i)){e.next=13;break}return e.abrupt("return",a(null,!0));case 13:a("Signature does not match");case 14:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"verifyMessageV2",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(b.a.isFunction(o)&&(n=o,o={}),!n)return this.injectPromise(this.verifyMessageV2,e,r,o);try{var i=t.verifyMessageV2(e,r);n(null,i)}catch(t){n(t)}}},{key:"verifyTypedData",value:function(e,r,o,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.tronWeb.defaultAddress.base58,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return b.a.isFunction(i)&&(a=i,i=this.tronWeb.defaultAddress.base58),a?t.verifyTypedData(e,r,o,n,i)?a(null,!0):void a("Signature does not match"):this.injectPromise(this.verifyTypedData,e,r,o,n,i)}},{key:"sign",value:(_=c()(y.a.mark((function e(){var r,o,n,i,a,s,c=arguments;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>0&&void 0!==c[0]&&c[0],o=c.length>1&&void 0!==c[1]?c[1]:this.tronWeb.defaultPrivateKey,n=!(c.length>2&&void 0!==c[2])||c[2],i=c.length>3&&void 0!==c[3]&&c[3],a=c.length>4&&void 0!==c[4]&&c[4],b.a.isFunction(i)&&(a=i,i=!1),b.a.isFunction(n)&&(a=n,n=!0,i=!1),b.a.isFunction(o)&&(a=o,o=this.tronWeb.defaultPrivateKey,n=!0,i=!1),a){e.next=10;break}return e.abrupt("return",this.injectPromise(this.sign,r,o,n,i));case 10:if(!b.a.isString(r)){e.next=21;break}if(b.a.isHex(r)){e.next=13;break}return e.abrupt("return",a("Expected hex message input"));case 13:return e.prev=13,s=t.signString(r,o,n),e.abrupt("return",a(null,s));case 18:e.prev=18,e.t0=e.catch(13),a(e.t0);case 21:if(b.a.isObject(r)){e.next=23;break}return e.abrupt("return",a("Invalid transaction provided"));case 23:if(i||!r.signature){e.next=25;break}return e.abrupt("return",a("Transaction is already signed"));case 25:if(e.prev=25,i){e.next=32;break}if(this.tronWeb.address.toHex(this.tronWeb.address.fromPrivateKey(o)).toLowerCase()===this.tronWeb.address.toHex(r.raw_data.contract[0].parameter.value.owner_address)){e.next=30;break}return e.abrupt("return",a("Private key does not match address in transaction"));case 30:if(Object(C.txCheck)(r)){e.next=32;break}return e.abrupt("return",a("Invalid transaction"));case 32:return e.abrupt("return",a(null,b.a.crypto.signTransaction(o,r)));case 35:e.prev=35,e.t1=e.catch(25),a(e.t1);case 38:case"end":return e.stop()}}),e,this,[[13,18],[25,35]])}))),function(){return _.apply(this,arguments)})},{key:"signMessageV2",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultPrivateKey,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(b.a.isFunction(o)&&(n=o,o={}),b.a.isFunction(r)&&(n=r,r=this.tronWeb.defaultPrivateKey),!n)return this.injectPromise(this.signMessageV2,e,r);try{var i=t.signMessageV2(e,r);return n(null,i)}catch(t){n(t)}}},{key:"_signTypedData",value:function(e,r,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.tronWeb.defaultPrivateKey,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.a.isFunction(n)&&(i=n,n=this.tronWeb.defaultPrivateKey),!i)return this.injectPromise(this._signTypedData,e,r,o,n);try{var a=t._signTypedData(e,r,o,n);return i(null,a)}catch(t){i(t)}}},{key:"multiSign",value:(T=c()(y.a.mark((function t(){var e,r,o,n,i,a,s,c=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]&&c[0],r=c.length>1&&void 0!==c[1]?c[1]:this.tronWeb.defaultPrivateKey,o=c.length>2&&void 0!==c[2]&&c[2],n=c.length>3&&void 0!==c[3]&&c[3],b.a.isFunction(o)&&(n=o,o=0),b.a.isFunction(r)&&(n=r,r=this.tronWeb.defaultPrivateKey,o=0),n){t.next=8;break}return t.abrupt("return",this.injectPromise(this.multiSign,e,r,o));case 8:if(b.a.isObject(e)&&e.raw_data&&e.raw_data.contract){t.next=10;break}return t.abrupt("return",n("Invalid transaction provided"));case 10:if(e.raw_data.contract[0].Permission_id||!(o>0)){t.next=30;break}return e.raw_data.contract[0].Permission_id=o,i=this.tronWeb.address.toHex(this.tronWeb.address.fromPrivateKey(r)).toLowerCase(),t.next=15,this.getSignWeight(e,o);case 15:if("PERMISSION_ERROR"!==(a=t.sent).result.code){t.next=18;break}return t.abrupt("return",n(a.result.message));case 18:if(s=!1,a.permission.keys.map((function(t){t.address===i&&(s=!0)})),s){t.next=22;break}return t.abrupt("return",n(r+" has no permission to sign"));case 22:if(!a.approved_list||-1==a.approved_list.indexOf(i)){t.next=24;break}return t.abrupt("return",n(r+" already sign transaction"));case 24:if(!a.transaction||!a.transaction.transaction){t.next=29;break}e=a.transaction.transaction,o>0&&(e.raw_data.contract[0].Permission_id=o),t.next=30;break;case 29:return t.abrupt("return",n("Invalid transaction provided"));case 30:if(t.prev=30,Object(C.txCheck)(e)){t.next=33;break}return t.abrupt("return",n("Invalid transaction"));case 33:return t.abrupt("return",n(null,b.a.crypto.signTransaction(r,e)));case 36:t.prev=36,t.t0=t.catch(30),n(t.t0);case 39:case"end":return t.stop()}}),t,this,[[30,36]])}))),function(){return T.apply(this,arguments)})},{key:"getApprovedList",value:(O=c()(y.a.mark((function t(e){var r,o=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=o.length>1&&void 0!==o[1]&&o[1]){t.next=3;break}return t.abrupt("return",this.injectPromise(this.getApprovedList,e));case 3:if(b.a.isObject(e)){t.next=5;break}return t.abrupt("return",r("Invalid transaction provided"));case 5:this.tronWeb.fullNode.request("wallet/getapprovedlist",e,"post").then((function(t){r(null,t)})).catch((function(t){return r(t)}));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return O.apply(this,arguments)})},{key:"getSignWeight",value:(E=c()(y.a.mark((function t(e,r){var o,n=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.length>2&&void 0!==n[2]&&n[2],b.a.isFunction(r)&&(o=r,r=void 0),o){t.next=4;break}return t.abrupt("return",this.injectPromise(this.getSignWeight,e,r));case 4:if(b.a.isObject(e)&&e.raw_data&&e.raw_data.contract){t.next=6;break}return t.abrupt("return",o("Invalid transaction provided"));case 6:if(b.a.isInteger(r)?e.raw_data.contract[0].Permission_id=parseInt(r):"number"!=typeof e.raw_data.contract[0].Permission_id&&(e.raw_data.contract[0].Permission_id=0),b.a.isObject(e)){t.next=9;break}return t.abrupt("return",o("Invalid transaction provided"));case 9:this.tronWeb.fullNode.request("wallet/getsignweight",e,"post").then((function(t){o(null,t)})).catch((function(t){return o(t)}));case 10:case"end":return t.stop()}}),t,this)}))),function(t,e){return E.apply(this,arguments)})},{key:"sendRawTransaction",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return b.a.isFunction(e)&&(r=e,e={}),r?b.a.isObject(t)?b.a.isObject(e)?t.signature&&b.a.isArray(t.signature)?void this.tronWeb.fullNode.request("wallet/broadcasttransaction",t,"post").then((function(e){e.result&&(e.transaction=t),r(null,e)})).catch((function(t){return r(t)})):r("Transaction is not signed"):r("Invalid options provided"):r("Invalid transaction provided"):this.injectPromise(this.sendRawTransaction,t,e)}},{key:"sendHexTransaction",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(b.a.isFunction(e)&&(r=e,e={}),!r)return this.injectPromise(this.sendHexTransaction,t,e);if(!b.a.isHex(t))return r("Invalid hex transaction provided");if(!b.a.isObject(e))return r("Invalid options provided");var o={transaction:t};this.tronWeb.fullNode.request("wallet/broadcasthex",o,"post").then((function(e){e.result&&(e.transaction=JSON.parse(e.transaction),e.hexTransaction=t),r(null,e)})).catch((function(t){return r(t)}))}},{key:"sendTransaction",value:(M=c()(y.a.mark((function t(){var e,r,o,n,i,a,s,c,u=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=u.length>0&&void 0!==u[0]&&u[0],r=u.length>1&&void 0!==u[1]&&u[1],o=u.length>2&&void 0!==u[2]?u[2]:{},n=u.length>3&&void 0!==u[3]&&u[3],b.a.isFunction(o)&&(n=o,o={}),"string"==typeof o&&(o={privateKey:o}),n){t.next=8;break}return t.abrupt("return",this.injectPromise(this.sendTransaction,e,r,o));case 8:if(this.tronWeb.isAddress(e)){t.next=10;break}return t.abrupt("return",n("Invalid recipient provided"));case 10:if(b.a.isInteger(r)&&!(r<=0)){t.next=12;break}return t.abrupt("return",n("Invalid amount provided"));case 12:if((o=S({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},o)).privateKey||o.address){t.next=15;break}return t.abrupt("return",n("Function requires either a private key or address to be set"));case 15:return t.prev=15,i=o.privateKey?this.tronWeb.address.fromPrivateKey(o.privateKey):o.address,t.next=19,this.tronWeb.transactionBuilder.sendTrx(e,r,i);case 19:return a=t.sent,t.next=22,this.sign(a,o.privateKey||void 0);case 22:return s=t.sent,t.next=25,this.sendRawTransaction(s);case 25:return c=t.sent,t.abrupt("return",n(null,c));case 29:return t.prev=29,t.t0=t.catch(15),t.abrupt("return",n(t.t0));case 32:case"end":return t.stop()}}),t,this,[[15,29]])}))),function(){return M.apply(this,arguments)})},{key:"sendToken",value:(g=c()(y.a.mark((function t(){var e,r,o,n,i,a,s,c,u,l=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]&&l[0],r=l.length>1&&void 0!==l[1]&&l[1],o=l.length>2&&void 0!==l[2]&&l[2],n=l.length>3&&void 0!==l[3]?l[3]:{},i=l.length>4&&void 0!==l[4]&&l[4],b.a.isFunction(n)&&(i=n,n={}),"string"==typeof n&&(n={privateKey:n}),i){t.next=9;break}return t.abrupt("return",this.injectPromise(this.sendToken,e,r,o,n));case 9:if(this.tronWeb.isAddress(e)){t.next=11;break}return t.abrupt("return",i("Invalid recipient provided"));case 11:if(b.a.isInteger(r)&&!(r<=0)){t.next=13;break}return t.abrupt("return",i("Invalid amount provided"));case 13:if(b.a.isInteger(o)&&(o=o.toString()),b.a.isString(o)){t.next=16;break}return t.abrupt("return",i("Invalid token ID provided"));case 16:if((n=S({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},n)).privateKey||n.address){t.next=19;break}return t.abrupt("return",i("Function requires either a private key or address to be set"));case 19:return t.prev=19,a=n.privateKey?this.tronWeb.address.fromPrivateKey(n.privateKey):n.address,t.next=23,this.tronWeb.transactionBuilder.sendToken(e,r,o,a);case 23:return s=t.sent,t.next=26,this.sign(s,n.privateKey||void 0);case 26:return c=t.sent,t.next=29,this.sendRawTransaction(c);case 29:return u=t.sent,t.abrupt("return",i(null,u));case 33:return t.prev=33,t.t0=t.catch(19),t.abrupt("return",i(t.t0));case 36:case"end":return t.stop()}}),t,this,[[19,33]])}))),function(){return g.apply(this,arguments)})},{key:"freezeBalance",value:(f=c()(y.a.mark((function t(){var e,r,o,n,i,a,s,c,u,l,d=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=d.length>0&&void 0!==d[0]?d[0]:0,r=d.length>1&&void 0!==d[1]?d[1]:3,o=d.length>2&&void 0!==d[2]?d[2]:"BANDWIDTH",n=d.length>3&&void 0!==d[3]?d[3]:{},i=d.length>4&&void 0!==d[4]?d[4]:void 0,a=d.length>5&&void 0!==d[5]&&d[5],b.a.isFunction(i)&&(a=i,i=void 0),b.a.isFunction(r)&&(a=r,r=3),b.a.isFunction(o)&&(a=o,o="BANDWIDTH"),b.a.isFunction(n)&&(a=n,n={}),"string"==typeof n&&(n={privateKey:n}),a){t.next=13;break}return t.abrupt("return",this.injectPromise(this.freezeBalance,e,r,o,n,i));case 13:if(["BANDWIDTH","ENERGY"].includes(o)){t.next=15;break}return t.abrupt("return",a('Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'));case 15:if(b.a.isInteger(e)&&!(e<=0)){t.next=17;break}return t.abrupt("return",a("Invalid amount provided"));case 17:if(b.a.isInteger(r)&&!(r<3)){t.next=19;break}return t.abrupt("return",a("Invalid duration provided, minimum of 3 days"));case 19:if((n=S({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},n)).privateKey||n.address){t.next=22;break}return t.abrupt("return",a("Function requires either a private key or address to be set"));case 22:return t.prev=22,s=n.privateKey?this.tronWeb.address.fromPrivateKey(n.privateKey):n.address,t.next=26,this.tronWeb.transactionBuilder.freezeBalance(e,r,o,s,i);case 26:return c=t.sent,t.next=29,this.sign(c,n.privateKey||void 0);case 29:return u=t.sent,t.next=32,this.sendRawTransaction(u);case 32:return l=t.sent,t.abrupt("return",a(null,l));case 36:return t.prev=36,t.t0=t.catch(22),t.abrupt("return",a(t.t0));case 39:case"end":return t.stop()}}),t,this,[[22,36]])}))),function(){return f.apply(this,arguments)})},{key:"unfreezeBalance",value:(d=c()(y.a.mark((function t(){var e,r,o,n,i,a,s,c,u=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:"BANDWIDTH",r=u.length>1&&void 0!==u[1]?u[1]:{},o=u.length>2&&void 0!==u[2]?u[2]:void 0,n=u.length>3&&void 0!==u[3]&&u[3],b.a.isFunction(o)&&(n=o,o=void 0),b.a.isFunction(e)&&(n=e,e="BANDWIDTH"),b.a.isFunction(r)&&(n=r,r={}),"string"==typeof r&&(r={privateKey:r}),n){t.next=10;break}return t.abrupt("return",this.injectPromise(this.unfreezeBalance,e,r,o));case 10:if(["BANDWIDTH","ENERGY"].includes(e)){t.next=12;break}return t.abrupt("return",n('Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'));case 12:if((r=S({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},r)).privateKey||r.address){t.next=15;break}return t.abrupt("return",n("Function requires either a private key or address to be set"));case 15:return t.prev=15,i=r.privateKey?this.tronWeb.address.fromPrivateKey(r.privateKey):r.address,t.next=19,this.tronWeb.transactionBuilder.unfreezeBalance(e,i,o);case 19:return a=t.sent,t.next=22,this.sign(a,r.privateKey||void 0);case 22:return s=t.sent,t.next=25,this.sendRawTransaction(s);case 25:return c=t.sent,t.abrupt("return",n(null,c));case 29:return t.prev=29,t.t0=t.catch(15),t.abrupt("return",n(t.t0));case 32:case"end":return t.stop()}}),t,this,[[15,29]])}))),function(){return d.apply(this,arguments)})},{key:"updateAccount",value:(l=c()(y.a.mark((function t(){var e,r,o,n,i,a,s,c=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]&&c[0],r=c.length>1&&void 0!==c[1]?c[1]:{},o=c.length>2&&void 0!==c[2]&&c[2],b.a.isFunction(r)&&(o=r,r={}),"string"==typeof r&&(r={privateKey:r}),o){t.next=7;break}return t.abrupt("return",this.injectPromise(this.updateAccount,e,r));case 7:if(b.a.isString(e)&&e.length){t.next=9;break}return t.abrupt("return",o("Name must be a string"));case 9:if((r=S({privateKey:this.tronWeb.defaultPrivateKey,address:this.tronWeb.defaultAddress.hex},r)).privateKey||r.address){t.next=12;break}return t.abrupt("return",o("Function requires either a private key or address to be set"));case 12:return t.prev=12,n=r.privateKey?this.tronWeb.address.fromPrivateKey(r.privateKey):r.address,t.next=16,this.tronWeb.transactionBuilder.updateAccount(e,n);case 16:return i=t.sent,t.next=19,this.sign(i,r.privateKey||void 0);case 19:return a=t.sent,t.next=22,this.sendRawTransaction(a);case 22:return s=t.sent,t.abrupt("return",o(null,s));case 26:return t.prev=26,t.t0=t.catch(12),t.abrupt("return",o(t.t0));case 29:case"end":return t.stop()}}),t,this,[[12,26]])}))),function(){return l.apply(this,arguments)})},{key:"signMessage",value:function(){return this.sign.apply(this,arguments)}},{key:"sendAsset",value:function(){return this.sendToken.apply(this,arguments)}},{key:"send",value:function(){return this.sendTransaction.apply(this,arguments)}},{key:"sendTrx",value:function(){return this.sendTransaction.apply(this,arguments)}},{key:"broadcast",value:function(){return this.sendRawTransaction.apply(this,arguments)}},{key:"broadcastHex",value:function(){return this.sendHexTransaction.apply(this,arguments)}},{key:"signTransaction",value:function(){return this.sign.apply(this,arguments)}},{key:"getProposal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?!b.a.isInteger(t)||t<0?e("Invalid proposalID provided"):void this.tronWeb.fullNode.request("wallet/getproposalbyid",{id:parseInt(t)},"post").then((function(t){e(null,t)})).catch((function(t){return e(t)})):this.injectPromise(this.getProposal,t)}},{key:"listProposals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.listProposals);this.tronWeb.fullNode.request("wallet/listproposals",{},"post").then((function(e){var r=e.proposals;t(null,void 0===r?[]:r)})).catch((function(e){return t(e)}))}},{key:"getChainParameters",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.getChainParameters);this.tronWeb.fullNode.request("wallet/getchainparameters",{},"post").then((function(e){var r=e.chainParameter;t(null,void 0===r?[]:r)})).catch((function(e){return t(e)}))}},{key:"getAccountResources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this.tronWeb.isAddress(t)?void this.tronWeb.fullNode.request("wallet/getaccountresource",{address:this.tronWeb.address.toHex(t)},"post").then((function(t){e(null,t)})).catch((function(t){return e(t)})):e("Invalid address provided"):this.injectPromise(this.getAccountResources,t)}},{key:"getDelegatedResourceV2",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.tronWeb.defaultAddress.hex,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{confirmed:!0},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b.a.isFunction(r)&&(o=r,r={confirmed:!0}),b.a.isFunction(e)&&(o=e,e=this.tronWeb.defaultAddress.hex),b.a.isFunction(t)&&(o=t,t=this.tronWeb.defaultAddress.hex,e=this.tronWeb.defaultAddress.hex),o?this.tronWeb.isAddress(t)&&this.tronWeb.isAddress(e)?void this.tronWeb[r.confirmed?"solidityNode":"fullNode"].request("wallet".concat(r.confirmed?"solidity":"","/getdelegatedresourcev2"),{fromAddress:I(t),toAddress:I(e)},"post").then((function(t){o(null,t)})).catch((function(t){return o(t)})):o("Invalid address provided"):this.injectPromise(this.getDelegatedResourceV2,t,e,r)}},{key:"getDelegatedResourceAccountIndexV2",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{confirmed:!0},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return b.a.isFunction(e)&&(r=e,e={confirmed:!0}),b.a.isFunction(t)&&(r=t,t=this.tronWeb.defaultAddress.hex),r?this.tronWeb.isAddress(t)?void this.tronWeb[e.confirmed?"solidityNode":"fullNode"].request("wallet".concat(e.confirmed?"solidity":"","/getdelegatedresourceaccountindexv2"),{value:I(t)},"post").then((function(t){r(null,t)})).catch((function(t){return r(t)})):r("Invalid address provided"):this.injectPromise(this.getDelegatedResourceAccountIndexV2,t,e)}},{key:"getCanDelegatedMaxSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BANDWIDTH",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{confirmed:!0},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b.a.isFunction(r)&&(o=r,r={confirmed:!0}),b.a.isFunction(e)&&(o=e,e="BANDWIDTH"),b.a.isFunction(t)&&(o=t,t=this.tronWeb.defaultAddress.hex),o?this.tronWeb.isAddress(t)?void(this.validator.notValid([{name:"resource",type:"resource",value:e,msg:'Invalid resource provided: Expected "BANDWIDTH" or "ENERGY"'}],o)||this.tronWeb[r.confirmed?"solidityNode":"fullNode"].request("wallet".concat(r.confirmed?"solidity":"","/getcandelegatedmaxsize"),{owner_address:I(t),type:"ENERGY"===e?1:0},"post").then((function(t){o(null,t)})).catch((function(t){return o(t)}))):o("Invalid address provided"):this.injectPromise(this.getCanDelegatedMaxSize,t,e,r)}},{key:"getAvailableUnfreezeCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{confirmed:!0},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return b.a.isFunction(e)&&(r=e,e={confirmed:!0}),b.a.isFunction(t)&&(r=t,t=this.tronWeb.defaultAddress.hex),r?this.tronWeb.isAddress(t)?void this.tronWeb[e.confirmed?"solidityNode":"fullNode"].request("wallet".concat(e.confirmed?"solidity":"","/getavailableunfreezecount"),{owner_address:I(t)},"post").then((function(t){r(null,t)})).catch((function(t){return r(t)})):r("Invalid address provided"):this.injectPromise(this.getAvailableUnfreezeCount,t,e)}},{key:"getCanWithdrawUnfreezeAmount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tronWeb.defaultAddress.hex,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{confirmed:!0},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b.a.isFunction(r)&&(o=r,r={confirmed:!0}),b.a.isFunction(e)&&(o=e,e=Date.now()),b.a.isFunction(t)&&(o=t,t=this.tronWeb.defaultAddress.hex),o?this.tronWeb.isAddress(t)?!b.a.isInteger(e)||e<0?o("Invalid timestamp provided"):void this.tronWeb[r.confirmed?"solidityNode":"fullNode"].request("wallet".concat(r.confirmed?"solidity":"","/getcanwithdrawunfreezeamount"),{owner_address:I(t),timestamp:e},"post").then((function(t){o(null,t)})).catch((function(t){return o(t)})):o("Invalid address provided"):this.injectPromise(this.getCanWithdrawUnfreezeAmount,t,e,r)}},{key:"getExchangeByID",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?!b.a.isInteger(t)||t<0?e("Invalid exchangeID provided"):void this.tronWeb.fullNode.request("wallet/getexchangebyid",{id:t},"post").then((function(t){e(null,t)})).catch((function(t){return e(t)})):this.injectPromise(this.getExchangeByID,t)}},{key:"listExchanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.listExchanges);this.tronWeb.fullNode.request("wallet/listexchanges",{},"post").then((function(e){var r=e.exchanges;t(null,void 0===r?[]:r)}),"post").catch((function(e){return t(e)}))}},{key:"listExchangesPaginated",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(b.a.isFunction(e)&&(r=e,e=0),b.a.isFunction(t)&&(r=t,t=10),!r)return this.injectPromise(this.listExchangesPaginated,t,e);this.tronWeb.fullNode.request("wallet/getpaginatedexchangelist",{limit:t,offset:e},"post").then((function(t){var e=t.exchanges;r(null,void 0===e?[]:e)})).catch((function(t){return r(t)}))}},{key:"getNodeInfo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return this.injectPromise(this.getNodeInfo);this.tronWeb.fullNode.request("wallet/getnodeinfo",{},"post").then((function(e){t(null,e)}),"post").catch((function(e){return t(e)}))}},{key:"getTokenListByName",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r?(b.a.isInteger(e)&&(e=e.toString()),b.a.isString(e)&&e.length?void this.tronWeb.fullNode.request("wallet/getassetissuelistbyname",{value:this.tronWeb.fromUtf8(e)},"post").then((function(e){if(Array.isArray(e.assetIssue))r(null,e.assetIssue.map((function(e){return t._parseToken(e)})));else if(!e.name)return r("Token does not exist");r(null,t._parseToken(e))})).catch((function(t){return r(t)})):r("Invalid token ID provided")):this.injectPromise(this.getTokenListByName,e)}},{key:"getTokenByID",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r?(b.a.isInteger(e)&&(e=e.toString()),b.a.isString(e)&&e.length?void this.tronWeb.fullNode.request("wallet/getassetissuebyid",{value:e},"post").then((function(e){if(!e.name)return r("Token does not exist");r(null,t._parseToken(e))})).catch((function(t){return r(t)})):r("Invalid token ID provided")):this.injectPromise(this.getTokenByID,e)}},{key:"getReward",value:(u=c()(y.a.mark((function t(e){var r,o,n=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},o=n.length>2&&void 0!==n[2]&&n[2],r.confirmed=!0,t.abrupt("return",this._getReward(e,r,o));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getUnconfirmedReward",value:(s=c()(y.a.mark((function t(e){var r,o,n=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},o=n.length>2&&void 0!==n[2]&&n[2],r.confirmed=!1,t.abrupt("return",this._getReward(e,r,o));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"getBrokerage",value:(i=c()(y.a.mark((function t(e){var r,o,n=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},o=n.length>2&&void 0!==n[2]&&n[2],r.confirmed=!0,t.abrupt("return",this._getBrokerage(e,r,o));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getUnconfirmedBrokerage",value:(o=c()(y.a.mark((function t(e){var r,o,n=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},o=n.length>2&&void 0!==n[2]&&n[2],r.confirmed=!1,t.abrupt("return",this._getBrokerage(e,r,o));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"_getReward",value:(r=c()(y.a.mark((function t(){var e,r,o,n,i=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:this.tronWeb.defaultAddress.hex,r=i.length>1?i[1]:void 0,o=i.length>2&&void 0!==i[2]&&i[2],b.a.isFunction(r)&&(o=r,r={}),b.a.isFunction(e)?(o=e,e=this.tronWeb.defaultAddress.hex):b.a.isObject(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),o){t.next=7;break}return t.abrupt("return",this.injectPromise(this._getReward,e,r));case 7:if(!this.validator.notValid([{name:"origin",type:"address",value:e}],o)){t.next=9;break}return t.abrupt("return");case 9:n={address:I(e)},this.tronWeb[r.confirmed?"solidityNode":"fullNode"].request("wallet".concat(r.confirmed?"solidity":"","/getReward"),n,"post").then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===t.reward)return o("Not found.");o(null,t.reward)})).catch((function(t){return o(t)}));case 11:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"_getBrokerage",value:(e=c()(y.a.mark((function t(){var e,r,o,n,i=arguments;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:this.tronWeb.defaultAddress.hex,r=i.length>1?i[1]:void 0,o=i.length>2&&void 0!==i[2]&&i[2],b.a.isFunction(r)&&(o=r,r={}),b.a.isFunction(e)?(o=e,e=this.tronWeb.defaultAddress.hex):b.a.isObject(e)&&(r=e,e=this.tronWeb.defaultAddress.hex),o){t.next=7;break}return t.abrupt("return",this.injectPromise(this._getBrokerage,e,r));case 7:if(!this.validator.notValid([{name:"origin",type:"address",value:e}],o)){t.next=9;break}return t.abrupt("return");case 9:n={address:I(e)},this.tronWeb[r.confirmed?"solidityNode":"fullNode"].request("wallet".concat(r.confirmed?"solidity":"","/getBrokerage"),n,"post").then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===t.brokerage)return o("Not found.");o(null,t.brokerage)})).catch((function(t){return o(t)}));case 11:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}],[{key:"verifySignature",value:function(t,e,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=t.replace(/^0x/,""),r=r.replace(/^0x/,"");var i=[].concat(n()(Object(v.toUtf8Bytes)(o?"TRON Signed Message:\n32":"Ethereum Signed Message:\n32")),n()(b.a.code.hexStr2byteArray(t))),a=Object(v.keccak256)(i),s=Object(v.recoverAddress)(a,{recoveryParam:"1c"==r.substring(128,130)?1:0,r:"0x"+r.substring(0,64),s:"0x"+r.substring(64,128)}),c=A.a+s.substr(2),u=m.default.address.fromHex(c);return u==m.default.address.fromHex(e)}},{key:"verifyMessageV2",value:function(t,e){return b.a.message.verifyMessage(t,e)}},{key:"verifyTypedData",value:function(t,e,r,o,n){o=o.replace(/^0x/,"");var i=b.a._TypedDataEncoder.hash(t,e,r),a=Object(v.recoverAddress)(i,{recoveryParam:"1c"==o.substring(128,130)?1:0,r:"0x"+o.substring(0,64),s:"0x"+o.substring(64,128)}),s=A.a+a.substr(2);return m.default.address.fromHex(s)==m.default.address.fromHex(n)}},{key:"signString",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=t.replace(/^0x/,"");var o={toHexString:function(){return"0x"+e},value:e},i=new v.SigningKey(o),a=[].concat(n()(Object(v.toUtf8Bytes)(r?"TRON Signed Message:\n32":"Ethereum Signed Message:\n32")),n()(b.a.code.hexStr2byteArray(t))),s=Object(v.keccak256)(a),c=i.signDigest(s),u=["0x",c.r.substring(2),c.s.substring(2),Number(c.v).toString(16)].join("");return u}},{key:"signMessageV2",value:function(t,e){return b.a.message.signMessage(t,e)}},{key:"_signTypedData",value:function(t,e,r,o){return b.a.crypto._signTypedData(t,e,r,o)}}]),t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var o=r(12),n=r.n(o),i=r(13),a=r.n(i),s=r(10),c=r(0),u=r(50),l=r.n(u),d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n()(this,t),!e||!e instanceof s.default)throw new Error("Expected instance of TronWeb");this.tronWeb=e,this.pluginNoOverride=["register"],this.disablePlugins=r.disablePlugins}return a()(t,[{key:"register",value:function(t,e){var r={requires:"0.0.0",components:{}},o={libs:[],plugged:[],skipped:[]};if(this.disablePlugins)return o.error="This instance of TronWeb has plugins disabled.",o;var n=new t(this.tronWeb);if(c.a.isFunction(n.pluginInterface)&&(r=n.pluginInterface(e)),!l.a.satisfies(s.default.version,r.requires))throw new Error("The plugin is not compatible with this version of TronWeb");if(r.fullClass){var i=n.constructor.name,a=i.substring(0,1).toLowerCase()+i.substring(1);i!==a&&(s.default[i]=t,this.tronWeb[a]=n,o.libs.push(i))}else for(var u in r.components)if(this.tronWeb.hasOwnProperty(u)){var d=r.components[u],p=this.tronWeb[u].pluginNoOverride||[];for(var f in d)"constructor"===f||this.tronWeb[u][f]&&(p.includes(f)||/^_/.test(f))?o.skipped.push(f):(this.tronWeb[u][f]=d[f].bind(this.tronWeb[u]),o.plugged.push(f))}return o}}]),t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return y}));var o=r(22),n=r.n(o),i=r(12),a=r.n(i),s=r(13),c=r.n(s),u=r(10),l=r(0),d=r(17),p=r(115),f=r.n(p),h=r(19),g=r.n(h),y=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(a()(this,t),!(e&&e instanceof u.default))throw new Error("Expected instance of TronWeb");this.tronWeb=e,this.injectPromise=g()(this)}return c()(t,[{key:"setServer",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"healthcheck";if(!e)return this.tronWeb.eventServer=!1;if(l.a.isString(e)&&(e=new d.a.HttpProvider(e)),!this.tronWeb.isValidProvider(e))throw new Error("Invalid event server provided");this.tronWeb.eventServer=e,this.tronWeb.eventServer.isConnected=function(){return t.tronWeb.eventServer.request(r).then((function(){return!0})).catch((function(){return!1}))}}},{key:"getEventsByContractAddress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object.assign({sinceTimestamp:0,eventName:!1,blockNumber:!1,size:20,page:1},e),i=o.sinceTimestamp,a=o.since,s=o.fromTimestamp,c=o.eventName,u=o.blockNumber,d=o.size,p=o.page,h=o.onlyConfirmed,g=o.onlyUnconfirmed,y=o.previousLastEventFingerprint,m=o.previousFingerprint,b=o.fingerprint,v=o.rawResponse,A=o.sort,w=o.filters;if(!r)return this.injectPromise(this.getEventsByContractAddress,t,e);if(s=s||i||a,!this.tronWeb.eventServer)return r("No event server configured");var M=[];if(!this.tronWeb.isAddress(t))return r("Invalid contract address provided");if(c&&!t)return r("Usage of event name filtering requires a contract address");if(void 0!==s&&!l.a.isInteger(s))return r("Invalid fromTimestamp provided");if(!l.a.isInteger(d))return r("Invalid size provided");if(d>200&&(console.warn("Defaulting to maximum accepted size: 200"),d=200),!l.a.isInteger(p))return r("Invalid page provided");if(u&&!c)return r("Usage of block number filtering requires an event name");t&&M.push(this.tronWeb.address.fromHex(t)),c&&M.push(c),u&&M.push(u);var B={size:d,page:p};return"object"===n()(w)&&Object.keys(w).length>0&&(B.filters=JSON.stringify(w)),s&&(B.fromTimestamp=B.since=s),h&&(B.only_confirmed=h),g&&!h&&(B.only_unconfirmed=g),A&&(B.sort=A),(b=b||m||y)&&(B.fingerprint=b),this.tronWeb.eventServer.request("event/contract/".concat(M.join("/"),"?").concat(f.a.stringify(B))).then((function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?l.a.isArray(t)?r(null,!0===v?t:t.map((function(t){return l.a.mapEvent(t)}))):r(t):r("Unknown error occurred")})).catch((function(t){return r(t.response&&t.response.data||t)}))}},{key:"getEventsByTransactionID",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return l.a.isFunction(e)&&(r=e,e={}),r?this.tronWeb.eventServer?this.tronWeb.eventServer.request("event/transaction/".concat(t)).then((function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?l.a.isArray(t)?r(null,!0===e.rawResponse?t:t.map((function(t){return l.a.mapEvent(t)}))):r(t):r("Unknown error occurred")})).catch((function(t){return r(t.response&&t.response.data||t)})):r("No event server configured"):this.injectPromise(this.getEventsByTransactionID,t,e)}}]),t}()},function(t,e,r){"use strict";r.d(e,"a",(function(){return C}));var o=r(32),n=r.n(o),i=r(6),a=r.n(i),s=r(12),c=r.n(s),u=r(13),l=r.n(u),d=r(2),p=r.n(d),f=r(10),h=r(0),g=r(14),y=r.n(g),m=(r(11),r(33)),b=r(19),v=r.n(b);function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){y()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var M=function(t,e){return Object(m.decodeParamsV2ByABI)(t,e)},B=function(){function t(e,r){c()(this,t),this.tronWeb=e.tronWeb,this.contract=e,this.abi=r,this.name=r.name||(r.name=r.type),this.inputs=r.inputs||[],this.outputs=r.outputs||[],this.functionSelector=function(t){if(t.stateMutability=t.stateMutability?t.stateMutability.toLowerCase():"nonpayable",t.type=t.type?t.type.toLowerCase():"","fallback"===t.type||"receive"===t.type)return"0x";var e=new h.a.ethersUtils.Interface([t]);return"event"===t.type?e.getEvent(t.name).format(h.a.ethersUtils.FormatTypes.sighash):e.getFunction(t.name).format(h.a.ethersUtils.FormatTypes.sighash)}(r),this.signature=this.tronWeb.sha3(this.functionSelector,!1).slice(0,8),this.injectPromise=v()(this),this.defaultOptions={feeLimit:this.tronWeb.feeLimit,callValue:0,userFeePercentage:100,shouldPollResponse:!1}}var e,r,o;return l()(t,[{key:"decodeInput",value:function(t){return M(this.inputs,"0x"+t)}},{key:"onMethod",value:function(){var t=this,e="";if(this.abi&&!/event/i.test(this.abi.type)){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];e=Object(m.encodeParamsV2ByABI)(this.abi,o)}return{call:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return h.a.isFunction(r)&&(o=r,r={}),r=w(w({},r),{},{rawParameter:e}),t._call([],[],r,o)},send:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.tronWeb.defaultPrivateKey,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return h.a.isFunction(o)&&(n=o,o=t.tronWeb.defaultPrivateKey),h.a.isFunction(r)&&(n=r,r={}),r=w(w({},r),{},{rawParameter:e}),t._send([],[],r,o,n)},watch:function(){return t._watch.apply(t,arguments)}}}},{key:"_call",value:(o=a()(p.a.mark((function t(e,r){var o,n,i,a,s=this,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=c.length>2&&void 0!==c[2]?c[2]:{},n=c.length>3&&void 0!==c[3]&&c[3],h.a.isFunction(o)&&(n=o,o={}),n){t.next=5;break}return t.abrupt("return",this.injectPromise(this._call,e,r,o));case 5:if(e.length===r.length){t.next=7;break}return t.abrupt("return",n("Invalid argument count provided"));case 7:if(this.contract.address){t.next=9;break}return t.abrupt("return",n("Smart contract is missing address"));case 9:if(this.contract.deployed){t.next=11;break}return t.abrupt("return",n("Calling smart contracts requires you to load the contract first"));case 11:if(i=this.abi.stateMutability,["pure","view"].includes(i.toLowerCase())){t.next=14;break}return t.abrupt("return",n('Methods with state mutability "'.concat(i,'" must use send()')));case 14:o=w(w(w({},this.defaultOptions),{},{from:this.tronWeb.defaultAddress.hex},o),{},{_isConstant:!0}),a=r.map((function(t,r){return{type:e[r],value:t}})),this.tronWeb.transactionBuilder.triggerSmartContract(this.contract.address,this.functionSelector,o,a,!!o.from&&this.tronWeb.address.toHex(o.from),(function(t,e){if(t)return n(t);if(!h.a.hasProperty(e,"constant_result"))return n("Failed to execute");try{var r=e.constant_result[0].length;if(0===r||r%64==8){var o="The call has been reverted or has thrown an error.";if(0!==r){o+=" Error message: ";for(var i="",a=e.constant_result[0].substring(8),c=0;c<r-8;c+=64)i+=s.tronWeb.toUtf8(a.substring(c,c+64));o+=i.replace(/(\u0000|\u000b|\f)+/g," ").replace(/ +/g," ").replace(/\s+$/g,"")}return n(o)}var u=M(s.abi,"0x"+e.constant_result[0]);return 1===u.length&&1===Object.keys(u).length&&(u=u[0]),n(null,u)}catch(t){return n(t)}}));case 17:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"_send",value:(r=a()(p.a.mark((function t(e,r){var o,n,i,s,c,u,l,d,f,g,y,m=this,b=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=b.length>2&&void 0!==b[2]?b[2]:{},n=b.length>3&&void 0!==b[3]?b[3]:this.tronWeb.defaultPrivateKey,i=b.length>4&&void 0!==b[4]&&b[4],h.a.isFunction(n)&&(i=n,n=this.tronWeb.defaultPrivateKey),h.a.isFunction(o)&&(i=o,o={}),i){t.next=7;break}return t.abrupt("return",this.injectPromise(this._send,e,r,o,n));case 7:if(e.length===r.length){t.next=9;break}throw new Error("Invalid argument count provided");case 9:if(this.contract.address){t.next=11;break}return t.abrupt("return",i("Smart contract is missing address"));case 11:if(this.contract.deployed){t.next=13;break}return t.abrupt("return",i("Calling smart contracts requires you to load the contract first"));case 13:if(s=this.abi.stateMutability,!["pure","view"].includes(s.toLowerCase())){t.next=16;break}return t.abrupt("return",i('Methods with state mutability "'.concat(s,'" must use call()')));case 16:return["payable"].includes(s.toLowerCase())||(o.callValue=0),o=w(w({},this.defaultOptions),{},{from:this.tronWeb.defaultAddress.hex},o),c=r.map((function(t,r){return{type:e[r],value:t}})),t.prev=19,u=n?this.tronWeb.address.fromPrivateKey(n):this.tronWeb.defaultAddress.base58,t.next=23,this.tronWeb.transactionBuilder.triggerSmartContract(this.contract.address,this.functionSelector,o,c,this.tronWeb.address.toHex(u));case 23:if((l=t.sent).result&&l.result.result){t.next=26;break}return t.abrupt("return",i("Unknown error: "+JSON.stringify(l,null,2)));case 26:return t.next=28,this.tronWeb.trx.sign(l.transaction,n);case 28:if((d=t.sent).signature){t.next=33;break}if(n){t.next=32;break}return t.abrupt("return",i("Transaction was not signed properly"));case 32:return t.abrupt("return",i("Invalid private key provided"));case 33:return t.next=35,this.tronWeb.trx.sendRawTransaction(d);case 35:if(!(f=t.sent).code){t.next=40;break}return g={error:f.code,message:f.code},f.message&&(g.message=this.tronWeb.toUtf8(f.message)),t.abrupt("return",i(g));case 40:if(o.shouldPollResponse){t.next=42;break}return t.abrupt("return",i(null,d.txID));case 42:(y=function(){var t=a()(p.a.mark((function t(){var e,r,n,a=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(20!==(e=a.length>0&&void 0!==a[0]?a[0]:0)){t.next=3;break}return t.abrupt("return",i({error:"Cannot find result in solidity node",transaction:d}));case 3:return t.next=5,m.tronWeb.trx.getTransactionInfo(d.txID);case 5:if(r=t.sent,Object.keys(r).length){t.next=8;break}return t.abrupt("return",setTimeout((function(){y(e+1)}),3e3));case 8:if(!r.result||"FAILED"!==r.result){t.next=10;break}return t.abrupt("return",i({error:m.tronWeb.toUtf8(r.resMessage),transaction:d,output:r}));case 10:if(h.a.hasProperty(r,"contractResult")){t.next=12;break}return t.abrupt("return",i({error:"Failed to execute: "+JSON.stringify(r,null,2),transaction:d,output:r}));case 12:if(!o.rawResponse){t.next=14;break}return t.abrupt("return",i(null,r));case 14:if(1===(n=M(m.abi,"0x"+r.contractResult[0])).length&&1===Object.keys(n).length&&(n=n[0]),!o.keepTxID){t.next=18;break}return t.abrupt("return",i(null,[d.txID,n]));case 18:return t.abrupt("return",i(null,n));case 19:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}())(),t.next=49;break;case 46:return t.prev=46,t.t0=t.catch(19),t.abrupt("return",i(t.t0));case 49:case"end":return t.stop()}}),t,this,[[19,46]])}))),function(t,e){return r.apply(this,arguments)})},{key:"_watch",value:(e=a()(p.a.mark((function t(){var e,r,o,i,s,c,u,l=this,d=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=d.length>0&&void 0!==d[0]?d[0]:{},r=d.length>1&&void 0!==d[1]&&d[1],h.a.isFunction(e)&&(r=e,e={}),h.a.isFunction(r)){t.next=5;break}throw new Error("Expected callback to be provided");case 5:if(this.contract.address){t.next=7;break}return t.abrupt("return",r("Smart contract is missing address"));case 7:if(this.abi.type&&/event/i.test(this.abi.type)){t.next=9;break}return t.abrupt("return",r("Invalid method type for event watching"));case 9:if(this.tronWeb.eventServer){t.next=11;break}return t.abrupt("return",r("No event server configured"));case 11:return o=!1,i=!1,s=Date.now()-1e3,c=function(){var t=a()(p.a.mark((function t(){var r,o,a,c,u,d;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r={since:s,eventName:l.name,sort:"block_timestamp",blockNumber:"latest",filters:e.filters},e.size&&(r.size=e.size),e.resourceNode&&(/full/i.test(e.resourceNode)?r.onlyUnconfirmed=!0:r.onlyConfirmed=!0),t.next=6,l.tronWeb.event.getEventsByContractAddress(l.contract.address,r);case 6:return o=t.sent,a=o.sort((function(t,e){return e.block-t.block})),c=n()(a,1),u=c[0],d=o.filter((function(t,r){return!(e.resourceNode&&t.resourceNode&&e.resourceNode.toLowerCase()!==t.resourceNode.toLowerCase()||o.slice(0,r).some((function(e){return JSON.stringify(e)==JSON.stringify(t)}))||i&&!(t.block>i))})),u&&(i=u.block),t.abrupt("return",d);case 13:return t.prev=13,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}(),u=function(){o&&clearInterval(o),o=setInterval((function(){c().then((function(t){return t.forEach((function(t){r(null,h.a.parseEvent(t,l.abi))}))})).catch((function(t){return r(t)}))}),3e3)},t.next=18,c();case 18:return u(),t.abrupt("return",{start:u,stop:function(){o&&(clearInterval(o),o=!1)}});case 20:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),C=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(c()(this,t),!e||!e instanceof f.default)throw new Error("Expected instance of TronWeb");this.tronWeb=e,this.injectPromise=v()(this),this.address=o,this.abi=r,this.eventListener=!1,this.bytecode=!1,this.deployed=!1,this.lastBlock=!1,this.methods={},this.methodInstances={},this.props=[],this.tronWeb.isAddress(o)?this.deployed=!0:this.address=!1,this.loadAbi(r)}var e,r,o,i;return l()(t,[{key:"_getEvents",value:(i=a()(p.a.mark((function t(){var e,r,o,i,a,s,c=this,u=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:{},t.next=3,this.tronWeb.event.getEventsByContractAddress(this.address,e);case 3:return r=t.sent,o=r.sort((function(t,e){return e.block-t.block})),i=n()(o,1),a=i[0],s=r.filter((function(t,o){return!(e.resourceNode&&t.resourceNode&&e.resourceNode.toLowerCase()!==t.resourceNode.toLowerCase()||r.slice(0,o).some((function(e){return JSON.stringify(e)==JSON.stringify(t)}))||c.lastBlock&&!(t.block>c.lastBlock))})),a&&(this.lastBlock=a.block),t.abrupt("return",s);case 8:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"_startEventListener",value:(o=a()(p.a.mark((function t(){var e,r,o=this,n=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.length>0&&void 0!==n[0]?n[0]:{},r=n.length>1?n[1]:void 0,h.a.isFunction(e)&&(r=e,e={}),this.eventListener&&clearInterval(this.eventListener),this.tronWeb.eventServer){t.next=6;break}throw new Error("Event server is not configured");case 6:if(this.address){t.next=8;break}throw new Error("Contract is not configured with an address");case 8:return this.eventCallback=r,t.next=11,this._getEvents(e);case 11:this.eventListener=setInterval((function(){o._getEvents(e).then((function(t){return t.forEach((function(t){o.eventCallback&&o.eventCallback(t)}))})).catch((function(t){console.error("Failed to get event list",t)}))}),3e3);case 12:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"_stopEventListener",value:function(){this.eventListener&&(clearInterval(this.eventListener),this.eventListener=!1,this.eventCallback=!1)}},{key:"hasProperty",value:function(t){return this.hasOwnProperty(t)||this.__proto__.hasOwnProperty(t)}},{key:"loadAbi",value:function(t){var e=this;this.abi=t,this.methods={},this.props.forEach((function(t){return delete e[t]})),t.forEach((function(t){if(t.type&&!/constructor|error/i.test(t.type)){var r=new B(e,t),o=r.onMethod.bind(r),n=r.name,i=r.functionSelector,a=r.signature;e.methods[n]=o,e.methods[i]=o,e.methods[a]=o,e.methodInstances[n]=r,e.methodInstances[i]=r,e.methodInstances[a]=r,e.hasProperty(n)||(e[n]=o,e.props.push(n)),e.hasProperty(i)||(e[i]=o,e.props.push(i)),e.hasProperty(a)||(e[a]=o,e.props.push(a))}}))}},{key:"decodeInput",value:function(t){var e=t.substring(0,8),r=t.substring(8);if(!this.methodInstances[e])throw new Error("Contract method "+e+" not found");return{name:this.methodInstances[e].name,params:this.methodInstances[e].decodeInput(r)}}},{key:"new",value:(r=a()(p.a.mark((function t(e){var r,o,n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>1&&void 0!==c[1]?c[1]:this.tronWeb.defaultPrivateKey,o=c.length>2&&void 0!==c[2]&&c[2],h.a.isFunction(r)&&(o=r,r=this.tronWeb.defaultPrivateKey),o){t.next=5;break}return t.abrupt("return",this.injectPromise(this.new,e,r));case 5:return t.prev=5,n=this.tronWeb.address.fromPrivateKey(r),t.next=9,this.tronWeb.transactionBuilder.createSmartContract(e,n);case 9:return i=t.sent,t.next=12,this.tronWeb.trx.sign(i,r);case 12:return a=t.sent,t.next=15,this.tronWeb.trx.sendRawTransaction(a);case 15:if(!(s=t.sent).code){t.next=18;break}return t.abrupt("return",o({error:s.code,message:this.tronWeb.toUtf8(s.message)}));case 18:return t.next=20,h.a.sleep(3e3);case 20:return t.abrupt("return",this.at(a.contract_address,o));case 23:return t.prev=23,t.t0=t.catch(5),t.abrupt("return",o(t.t0));case 26:case"end":return t.stop()}}),t,this,[[5,23]])}))),function(t){return r.apply(this,arguments)})},{key:"at",value:(e=a()(p.a.mark((function t(e){var r,o,n=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.length>1&&void 0!==n[1]&&n[1]){t.next=3;break}return t.abrupt("return",this.injectPromise(this.at,e));case 3:return t.prev=3,t.next=6,this.tronWeb.trx.getContract(e);case 6:if((o=t.sent).contract_address){t.next=9;break}return t.abrupt("return",r("Unknown error: "+JSON.stringify(o,null,2)));case 9:return this.address=o.contract_address,this.bytecode=o.bytecode,this.deployed=!0,this.loadAbi(o.abi&&o.abi.entrys?o.abi.entrys:[]),t.abrupt("return",r(null,this));case 16:if(t.prev=16,t.t0=t.catch(3),!t.t0.toString().includes("does not exist")){t.next=20;break}return t.abrupt("return",r("Contract has not been deployed on the network"));case 20:return t.abrupt("return",r(t.t0));case 21:case"end":return t.stop()}}),t,this,[[3,16]])}))),function(t){return e.apply(this,arguments)})},{key:"events",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h.a.isFunction(t)&&(e=t,t={}),!h.a.isFunction(e))throw new Error("Callback function expected");var r=this;return{start:function(){var o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return o?(r._startEventListener(t,e).then((function(){o()})).catch((function(t){o(t)})),this):(r._startEventListener(t,e),this)},stop:function(){r._stopEventListener()}}}}]),t}()},,,function(t,e,r){"use strict";(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var o=r(118),n=r(119),i=r(120);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return u(this,t,e,r)}function u(t,e,r,o){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,o){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(o||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,r):new Uint8Array(e,r,o);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=p(t,e);return t}(t,e,r,o):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var o=0|h(e,r),n=(t=s(t,o)).write(e,r);n!==o&&(t=t.slice(0,n));return t}(t,e,r):function(t,e){if(c.isBuffer(e)){var r=0|f(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(o=e.length)!=o?s(t,0):p(t,e);if("Buffer"===e.type&&i(e.data))return p(t,e.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(l(e),t=s(t,e<0?0:0|f(e)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function p(t,e){var r=e.length<0?0:0|f(e.length);t=s(t,r);for(var o=0;o<r;o+=1)t[o]=255&e[o];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(o)return U(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,r){var o=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,r);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function y(t,e,r){var o=t[e];t[e]=t[r],t[r]=o}function m(t,e,r,o,n){if(0===t.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=c.from(e,o)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,o,n);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,o,n);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,o,n){var i,a=1,s=t.length,c=e.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(n){var l=-1;for(i=r;i<s;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){for(var d=!0,p=0;p<c;p++)if(u(t,i+p)!==u(e,p)){d=!1;break}if(d)return i}return-1}function v(t,e,r,o){r=Number(r)||0;var n=t.length-r;o?(o=Number(o))>n&&(o=n):o=n;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function A(t,e,r,o){return L(U(e,t.length-r),t,r,o)}function w(t,e,r,o){return L(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,o)}function M(t,e,r,o){return w(t,e,r,o)}function B(t,e,r,o){return L(z(e),t,r,o)}function C(t,e,r,o){return L(function(t,e){for(var r,o,n,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),o=r>>8,n=r%256,i.push(n),i.push(o);return i}(e,t.length-r),t,r,o)}function E(t,e,r){return 0===e&&r===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var o=[],n=e;n<r;){var i,a,s,c,u=t[n],l=null,d=u>239?4:u>223?3:u>191?2:1;if(n+d<=r)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(i=t[n+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=t[n+1],a=t[n+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=t[n+1],a=t[n+2],s=t[n+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|1023&l),o.push(l),n+=d}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",o=0;for(;o<e;)r+=String.fromCharCode.apply(String,t.slice(o,o+=4096));return r}(o)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,r){return u(null,t,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,r){return function(t,e,r,o){return l(e),e<=0?s(t,e):void 0!==r?"string"==typeof o?s(t,e).fill(r,o):s(t,e).fill(r):s(t,e)}(null,t,e,r)},c.allocUnsafe=function(t){return d(null,t)},c.allocUnsafeSlow=function(t){return d(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,o=e.length,n=0,i=Math.min(r,o);n<i;++n)if(t[n]!==e[n]){r=t[n],o=e[n];break}return r<o?-1:o<r?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var o=c.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var a=t[r];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,n),n+=a.length}return o},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):g.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,r,o,n){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),e<0||r>t.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&e>=r)return 0;if(o>=n)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(n>>>=0)-(o>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),u=this.slice(o,n),l=t.slice(e,r),d=0;d<s;++d)if(u[d]!==l[d]){i=u[d],a=l[d];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},c.prototype.write=function(t,e,r,o){if(void 0===e)o="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)o=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return A(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return M(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(t,e,r){var o="";r=Math.min(t.length,r);for(var n=e;n<r;++n)o+=String.fromCharCode(127&t[n]);return o}function O(t,e,r){var o="";r=Math.min(t.length,r);for(var n=e;n<r;++n)o+=String.fromCharCode(t[n]);return o}function T(t,e,r){var o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);for(var n="",i=e;i<r;++i)n+=W(t[i]);return n}function _(t,e,r){for(var o=t.slice(e,r),n="",i=0;i<o.length;i+=2)n+=String.fromCharCode(o[i]+256*o[i+1]);return n}function x(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,o,n,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<i)throw new RangeError('"value" argument is out of bounds');if(r+o>t.length)throw new RangeError("Index out of range")}function P(t,e,r,o){e<0&&(e=65535+e+1);for(var n=0,i=Math.min(t.length-r,2);n<i;++n)t[r+n]=(e&255<<8*(o?n:1-n))>>>8*(o?n:1-n)}function k(t,e,r,o){e<0&&(e=4294967295+e+1);for(var n=0,i=Math.min(t.length-r,4);n<i;++n)t[r+n]=e>>>8*(o?n:3-n)&255}function R(t,e,r,o,n,i){if(r+o>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,o,i){return i||R(t,0,r,4),n.write(t,e,r,o,23,4),r+4}function D(t,e,r,o,i){return i||R(t,0,r,8),n.write(t,e,r,o,52,8),r+8}c.prototype.slice=function(t,e){var r,o=this.length;if((t=~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),(e=void 0===e?o:~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=c.prototype;else{var n=e-t;r=new c(n,void 0);for(var i=0;i<n;++i)r[i]=this[i+t]}return r},c.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var o=this[t],n=1,i=0;++i<e&&(n*=256);)o+=this[t+i]*n;return o},c.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var o=this[t+--e],n=1;e>0&&(n*=256);)o+=this[t+--e]*n;return o},c.prototype.readUInt8=function(t,e){return e||x(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||x(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||x(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var o=this[t],n=1,i=0;++i<e&&(n*=256);)o+=this[t+i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var o=e,n=1,i=this[t+--o];o>0&&(n*=256);)i+=this[t+--o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||x(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||x(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||x(t,4,this.length),n.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||x(t,4,this.length),n.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||x(t,8,this.length),n.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||x(t,8,this.length),n.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,o){(t=+t,e|=0,r|=0,o)||F(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,i=0;for(this[e]=255&t;++i<r&&(n*=256);)this[e+i]=t/n&255;return e+r},c.prototype.writeUIntBE=function(t,e,r,o){(t=+t,e|=0,r|=0,o)||F(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,i=1;for(this[e+n]=255&t;--n>=0&&(i*=256);)this[e+n]=t/i&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):k(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,o){if(t=+t,e|=0,!o){var n=Math.pow(2,8*r-1);F(this,t,e,r,n-1,-n)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,o){if(t=+t,e|=0,!o){var n=Math.pow(2,8*r-1);F(this,t,e,r,n-1,-n)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):k(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):k(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,o){if(r||(r=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-r&&(o=t.length-e+r);var n,i=o-r;if(this===t&&r<e&&e<o)for(n=i-1;n>=0;--n)t[n+e]=this[n+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(n=0;n<i;++n)t[n+e]=this[n+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},c.prototype.fill=function(t,e,r,o){if("string"==typeof t){if("string"==typeof e?(o=e,e=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=c.isBuffer(t)?t:U(new c(t,o).toString()),s=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var o=t.length,n=null,i=[],a=0;a<o;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(e-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(t){return o.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function L(t,e,r,o){for(var n=0;n<o&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}}).call(this,r(36))},function(t,e,r){var o=r(22).default,n=r(121);t.exports=function(t){var e=n(t,"string");return"symbol"===o(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return t.apply(e,r)}}},function(t,e,r){"use strict";var o=r(18);function n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,(function(t,e){null!=t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,(function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,r){"use strict";t.exports=function(t,e,r,o,n){return t.config=e,r&&(t.code=r),t.request=o,t.response=n,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},function(t,e,r){"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(t,e,r){"use strict";var o=r(18),n=r(130),i=r(131),a=r(73),s=r(132),c=r(135),u=r(136),l=r(77),d=r(75),p=r(45);t.exports=function(t){return new Promise((function(e,r){var f,h=t.data,g=t.headers,y=t.responseType;function m(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}o.isFormData(h)&&delete g["Content-Type"];var b=new XMLHttpRequest;if(t.auth){var v=t.auth.username||"",A=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(v+":"+A)}var w=s(t.baseURL,t.url);function M(){if(b){var o="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:o,config:t,request:b};n((function(t){e(t),m()}),(function(t){r(t),m()}),i),b=null}}if(b.open(t.method.toUpperCase(),a(w,t.params,t.paramsSerializer),!0),b.timeout=t.timeout,"onloadend"in b?b.onloadend=M:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(M)},b.onabort=function(){b&&(r(l("Request aborted",t,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(l("Network Error",t,null,b)),b=null},b.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",o=t.transitional||d;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,o.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},o.isStandardBrowserEnv()){var B=(t.withCredentials||u(w))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;B&&(g[t.xsrfHeaderName]=B)}"setRequestHeader"in b&&o.forEach(g,(function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete g[e]:b.setRequestHeader(e,t)})),o.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),y&&"json"!==y&&(b.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&b.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(f=function(t){b&&(r(!t||t&&t.type?new p("canceled"):t),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f))),h||(h=null),b.send(h)}))}},function(t,e,r){"use strict";var o=r(74);t.exports=function(t,e,r,n,i){var a=new Error(t);return o(a,e,r,n,i)}},function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";var o=r(18);t.exports=function(t,e){e=e||{};var r={};function n(t,e){return o.isPlainObject(t)&&o.isPlainObject(e)?o.merge(t,e):o.isPlainObject(e)?o.merge({},e):o.isArray(e)?e.slice():e}function i(r){return o.isUndefined(e[r])?o.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function a(t){if(!o.isUndefined(e[t]))return n(void 0,e[t])}function s(r){return o.isUndefined(e[r])?o.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function c(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return o.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,n=e(t);o.isUndefined(n)&&e!==c||(r[t]=n)})),r}},function(t,e){t.exports={version:"0.26.1"}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var o=r(81);t.exports=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";var o=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}o.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var o=0;o<t.length;o++)r[o]=0|t[o];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(o=0;o<t.length;o+=2)r.push(parseInt(t[o]+t[o+1],16))}else for(o=0;o<t.length;o++){var n=t.charCodeAt(o),i=n>>8,a=255&n;i?r.push(i,a):r.push(a)}return r},o.zero2=n,o.toHex=i,o.encode=function(t,e){return"hex"===e?i(t):t}},function(t,e,r){var o;function n(t){this.rand=t}if(t.exports=function(t){return o||(o=new n(null)),o.generate(t)},t.exports.Rand=n,n.prototype.generate=function(t){return this._rand(t)},n.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=r(146);if("function"!=typeof i.randomBytes)throw new Error("Not supported");n.prototype._rand=function(t){return i.randomBytes(t)}}catch(t){}},function(t,e,r){"use strict";var o=e;o.base=r(46),o.short=r(147),o.mont=r(148),o.edwards=r(149)},function(t,e,r){"use strict";var o=r(27).rotr32;function n(t,e,r){return t&e^~t&r}function i(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,o){return 0===t?n(e,r,o):1===t||3===t?a(e,r,o):2===t?i(e,r,o):void 0},e.ch32=n,e.maj32=i,e.p32=a,e.s0_256=function(t){return o(t,2)^o(t,13)^o(t,22)},e.s1_256=function(t){return o(t,6)^o(t,11)^o(t,25)},e.g0_256=function(t){return o(t,7)^o(t,18)^t>>>3},e.g1_256=function(t){return o(t,17)^o(t,19)^t>>>10}},function(t,e,r){"use strict";var o=r(27),n=r(40),i=r(86),a=r(37),s=o.sum32,c=o.sum32_4,u=o.sum32_5,l=i.ch32,d=i.maj32,p=i.s0_256,f=i.s1_256,h=i.g0_256,g=i.g1_256,y=n.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}o.inherits(b,y),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var r=this.W,o=0;o<16;o++)r[o]=t[e+o];for(;o<r.length;o++)r[o]=c(g(r[o-2]),r[o-7],h(r[o-15]),r[o-16]);var n=this.h[0],i=this.h[1],y=this.h[2],m=this.h[3],b=this.h[4],v=this.h[5],A=this.h[6],w=this.h[7];for(a(this.k.length===r.length),o=0;o<r.length;o++){var M=u(w,f(b),l(b,v,A),this.k[o],r[o]),B=s(p(n),d(n,i,y));w=A,A=v,v=b,b=s(m,M),m=y,y=i,i=n,n=s(M,B)}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],A),this.h[7]=s(this.h[7],w)},b.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},function(t,e,r){"use strict";var o=r(27),n=r(40),i=r(37),a=o.rotr64_hi,s=o.rotr64_lo,c=o.shr64_hi,u=o.shr64_lo,l=o.sum64,d=o.sum64_hi,p=o.sum64_lo,f=o.sum64_4_hi,h=o.sum64_4_lo,g=o.sum64_5_hi,y=o.sum64_5_lo,m=n.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function A(t,e,r,o,n){var i=t&r^~t&n;return i<0&&(i+=4294967296),i}function w(t,e,r,o,n,i){var a=e&o^~e&i;return a<0&&(a+=4294967296),a}function M(t,e,r,o,n){var i=t&r^t&n^r&n;return i<0&&(i+=4294967296),i}function B(t,e,r,o,n,i){var a=e&o^e&i^o&i;return a<0&&(a+=4294967296),a}function C(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function E(t,e){var r=s(t,e,28)^s(e,t,2)^s(e,t,7);return r<0&&(r+=4294967296),r}function S(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function I(t,e){var r=s(t,e,14)^s(t,e,18)^s(e,t,9);return r<0&&(r+=4294967296),r}function O(t,e){var r=a(t,e,1)^a(t,e,8)^c(t,e,7);return r<0&&(r+=4294967296),r}function T(t,e){var r=s(t,e,1)^s(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function _(t,e){var r=a(t,e,19)^a(e,t,29)^c(t,e,6);return r<0&&(r+=4294967296),r}function x(t,e){var r=s(t,e,19)^s(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}o.inherits(v,m),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var r=this.W,o=0;o<32;o++)r[o]=t[e+o];for(;o<r.length;o+=2){var n=_(r[o-4],r[o-3]),i=x(r[o-4],r[o-3]),a=r[o-14],s=r[o-13],c=O(r[o-30],r[o-29]),u=T(r[o-30],r[o-29]),l=r[o-32],d=r[o-31];r[o]=f(n,i,a,s,c,u,l,d),r[o+1]=h(n,i,a,s,c,u,l,d)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,o=this.h[0],n=this.h[1],a=this.h[2],s=this.h[3],c=this.h[4],u=this.h[5],f=this.h[6],h=this.h[7],m=this.h[8],b=this.h[9],v=this.h[10],O=this.h[11],T=this.h[12],_=this.h[13],x=this.h[14],F=this.h[15];i(this.k.length===r.length);for(var P=0;P<r.length;P+=2){var k=x,R=F,N=S(m,b),D=I(m,b),j=A(m,b,v,O,T),W=w(m,b,v,O,T,_),U=this.k[P],z=this.k[P+1],L=r[P],V=r[P+1],G=g(k,R,N,D,j,W,U,z,L,V),H=y(k,R,N,D,j,W,U,z,L,V);k=C(o,n),R=E(o,n),N=M(o,n,a,s,c),D=B(o,n,a,s,c,u);var K=d(k,R,N,D),q=p(k,R,N,D);x=T,F=_,T=v,_=O,v=m,O=b,m=d(f,h,G,H),b=p(h,h,G,H),f=c,h=u,c=a,u=s,a=o,s=n,o=d(G,H,K,q),n=p(G,H,K,q)}l(this.h,0,o,n),l(this.h,2,a,s),l(this.h,4,c,u),l(this.h,6,f,h),l(this.h,8,m,b),l(this.h,10,v,O),l(this.h,12,T,_),l(this.h,14,x,F)},v.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},function(t,e,r){var o=r(26),n=o,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")();n.exportSymbol("proto.google.protobuf.Any",null,i),proto.google.protobuf.Any=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.google.protobuf.Any,o.Message),n.DEBUG&&!COMPILED&&(proto.google.protobuf.Any.displayName="proto.google.protobuf.Any"),o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Any.prototype.toObject=function(t){return proto.google.protobuf.Any.toObject(t,this)},proto.google.protobuf.Any.toObject=function(t,e){var r={typeUrl:o.Message.getFieldWithDefault(e,1,""),value:e.getValue_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.google.protobuf.Any.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.google.protobuf.Any;return proto.google.protobuf.Any.deserializeBinaryFromReader(r,e)},proto.google.protobuf.Any.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readString();t.setTypeUrl(r);break;case 2:r=e.readBytes();t.setValue(r);break;default:e.skipField()}}return t},proto.google.protobuf.Any.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.google.protobuf.Any.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.Any.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getTypeUrl()).length>0&&e.writeString(1,r),(r=t.getValue_asU8()).length>0&&e.writeBytes(2,r)},proto.google.protobuf.Any.prototype.getTypeUrl=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.Any.prototype.setTypeUrl=function(t){return o.Message.setProto3StringField(this,1,t)},proto.google.protobuf.Any.prototype.getValue=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.Any.prototype.getValue_asB64=function(){return o.Message.bytesAsB64(this.getValue())},proto.google.protobuf.Any.prototype.getValue_asU8=function(){return o.Message.bytesAsU8(this.getValue())},proto.google.protobuf.Any.prototype.setValue=function(t){return o.Message.setProto3BytesField(this,2,t)},n.object.extend(e,proto.google.protobuf),proto.google.protobuf.Any.prototype.getTypeName=function(){return this.getTypeUrl().split("/").pop()},proto.google.protobuf.Any.prototype.pack=function(t,e,r){r||(r="type.googleapis.com/"),"/"!=r.substr(-1)?this.setTypeUrl(r+"/"+e):this.setTypeUrl(r+e),this.setValue(t)},proto.google.protobuf.Any.prototype.unpack=function(t,e){return this.getTypeName()==e?t(this.getValue_asU8()):null}},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null),a=r(89);n.object.extend(proto,a),n.exportSymbol("proto.protocol.Account",null,i),n.exportSymbol("proto.protocol.Account.AccountResource",null,i),n.exportSymbol("proto.protocol.Account.Frozen",null,i),n.exportSymbol("proto.protocol.AccountId",null,i),n.exportSymbol("proto.protocol.AccountType",null,i),n.exportSymbol("proto.protocol.DelegatedResource",null,i),n.exportSymbol("proto.protocol.Exchange",null,i),n.exportSymbol("proto.protocol.Key",null,i),n.exportSymbol("proto.protocol.MarketOrderDetail",null,i),n.exportSymbol("proto.protocol.Permission",null,i),n.exportSymbol("proto.protocol.Permission.PermissionType",null,i),n.exportSymbol("proto.protocol.Proposal",null,i),n.exportSymbol("proto.protocol.Proposal.State",null,i),n.exportSymbol("proto.protocol.Transaction",null,i),n.exportSymbol("proto.protocol.Transaction.Contract",null,i),n.exportSymbol("proto.protocol.Transaction.Contract.ContractType",null,i),n.exportSymbol("proto.protocol.Transaction.Result",null,i),n.exportSymbol("proto.protocol.Transaction.Result.code",null,i),n.exportSymbol("proto.protocol.Transaction.Result.contractResult",null,i),n.exportSymbol("proto.protocol.Transaction.raw",null,i),n.exportSymbol("proto.protocol.Vote",null,i),n.exportSymbol("proto.protocol.Votes",null,i),n.exportSymbol("proto.protocol.Witness",null,i),n.exportSymbol("proto.protocol.authority",null,i),proto.protocol.AccountId=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AccountId,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountId.displayName="proto.protocol.AccountId"),proto.protocol.Vote=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.Vote,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Vote.displayName="proto.protocol.Vote"),proto.protocol.Proposal=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Proposal.repeatedFields_,null)},n.inherits(proto.protocol.Proposal,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Proposal.displayName="proto.protocol.Proposal"),proto.protocol.Exchange=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.Exchange,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Exchange.displayName="proto.protocol.Exchange"),proto.protocol.Account=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Account.repeatedFields_,null)},n.inherits(proto.protocol.Account,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Account.displayName="proto.protocol.Account"),proto.protocol.Account.Frozen=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.Account.Frozen,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Account.Frozen.displayName="proto.protocol.Account.Frozen"),proto.protocol.Account.AccountResource=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.Account.AccountResource,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Account.AccountResource.displayName="proto.protocol.Account.AccountResource"),proto.protocol.Key=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.Key,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Key.displayName="proto.protocol.Key"),proto.protocol.DelegatedResource=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.DelegatedResource,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.DelegatedResource.displayName="proto.protocol.DelegatedResource"),proto.protocol.authority=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.authority,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.authority.displayName="proto.protocol.authority"),proto.protocol.Permission=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Permission.repeatedFields_,null)},n.inherits(proto.protocol.Permission,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Permission.displayName="proto.protocol.Permission"),proto.protocol.Witness=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.Witness,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Witness.displayName="proto.protocol.Witness"),proto.protocol.Votes=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Votes.repeatedFields_,null)},n.inherits(proto.protocol.Votes,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Votes.displayName="proto.protocol.Votes"),proto.protocol.MarketOrderDetail=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.MarketOrderDetail,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.MarketOrderDetail.displayName="proto.protocol.MarketOrderDetail"),proto.protocol.Transaction=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Transaction.repeatedFields_,null)},n.inherits(proto.protocol.Transaction,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Transaction.displayName="proto.protocol.Transaction"),proto.protocol.Transaction.Contract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.Transaction.Contract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Transaction.Contract.displayName="proto.protocol.Transaction.Contract"),proto.protocol.Transaction.Result=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Transaction.Result.repeatedFields_,null)},n.inherits(proto.protocol.Transaction.Result,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Transaction.Result.displayName="proto.protocol.Transaction.Result"),proto.protocol.Transaction.raw=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.Transaction.raw.repeatedFields_,null)},n.inherits(proto.protocol.Transaction.raw,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.Transaction.raw.displayName="proto.protocol.Transaction.raw"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountId.prototype.toObject=function(t){return proto.protocol.AccountId.toObject(t,this)},proto.protocol.AccountId.toObject=function(t,e){var r={name:e.getName_asB64(),address:e.getAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.AccountId.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountId;return proto.protocol.AccountId.deserializeBinaryFromReader(r,e)},proto.protocol.AccountId.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setName(r);break;case 2:r=e.readBytes();t.setAddress(r);break;default:e.skipField()}}return t},proto.protocol.AccountId.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountId.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountId.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getName_asU8()).length>0&&e.writeBytes(1,r),(r=t.getAddress_asU8()).length>0&&e.writeBytes(2,r)},proto.protocol.AccountId.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountId.prototype.getName_asB64=function(){return o.Message.bytesAsB64(this.getName())},proto.protocol.AccountId.prototype.getName_asU8=function(){return o.Message.bytesAsU8(this.getName())},proto.protocol.AccountId.prototype.setName=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountId.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AccountId.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.AccountId.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.AccountId.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Vote.prototype.toObject=function(t){return proto.protocol.Vote.toObject(t,this)},proto.protocol.Vote.toObject=function(t,e){var r={voteAddress:e.getVoteAddress_asB64(),voteCount:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Vote.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Vote;return proto.protocol.Vote.deserializeBinaryFromReader(r,e)},proto.protocol.Vote.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setVoteAddress(r);break;case 2:r=e.readInt64();t.setVoteCount(r);break;default:e.skipField()}}return t},proto.protocol.Vote.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Vote.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Vote.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getVoteAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getVoteCount())&&e.writeInt64(2,r)},proto.protocol.Vote.prototype.getVoteAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Vote.prototype.getVoteAddress_asB64=function(){return o.Message.bytesAsB64(this.getVoteAddress())},proto.protocol.Vote.prototype.getVoteAddress_asU8=function(){return o.Message.bytesAsU8(this.getVoteAddress())},proto.protocol.Vote.prototype.setVoteAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Vote.prototype.getVoteCount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Vote.prototype.setVoteCount=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.Proposal.repeatedFields_=[6],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Proposal.prototype.toObject=function(t){return proto.protocol.Proposal.toObject(t,this)},proto.protocol.Proposal.toObject=function(t,e){var r,n={proposalId:o.Message.getFieldWithDefault(e,1,0),proposerAddress:e.getProposerAddress_asB64(),parametersMap:(r=e.getParametersMap())?r.toObject(t,void 0):[],expirationTime:o.Message.getFieldWithDefault(e,4,0),createTime:o.Message.getFieldWithDefault(e,5,0),approvalsList:e.getApprovalsList_asB64(),state:o.Message.getFieldWithDefault(e,7,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.Proposal.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Proposal;return proto.protocol.Proposal.deserializeBinaryFromReader(r,e)},proto.protocol.Proposal.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setProposalId(r);break;case 2:r=e.readBytes();t.setProposerAddress(r);break;case 3:r=t.getParametersMap();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readInt64,o.BinaryReader.prototype.readInt64,null,0,0)}));break;case 4:r=e.readInt64();t.setExpirationTime(r);break;case 5:r=e.readInt64();t.setCreateTime(r);break;case 6:r=e.readBytes();t.addApprovals(r);break;case 7:r=e.readEnum();t.setState(r);break;default:e.skipField()}}return t},proto.protocol.Proposal.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Proposal.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Proposal.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getProposalId())&&e.writeInt64(1,r),(r=t.getProposerAddress_asU8()).length>0&&e.writeBytes(2,r),(r=t.getParametersMap(!0))&&r.getLength()>0&&r.serializeBinary(3,e,o.BinaryWriter.prototype.writeInt64,o.BinaryWriter.prototype.writeInt64),0!==(r=t.getExpirationTime())&&e.writeInt64(4,r),0!==(r=t.getCreateTime())&&e.writeInt64(5,r),(r=t.getApprovalsList_asU8()).length>0&&e.writeRepeatedBytes(6,r),0!==(r=t.getState())&&e.writeEnum(7,r)},proto.protocol.Proposal.State={PENDING:0,DISAPPROVED:1,APPROVED:2,CANCELED:3},proto.protocol.Proposal.prototype.getProposalId=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Proposal.prototype.setProposalId=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Proposal.prototype.getProposerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.Proposal.prototype.getProposerAddress_asB64=function(){return o.Message.bytesAsB64(this.getProposerAddress())},proto.protocol.Proposal.prototype.getProposerAddress_asU8=function(){return o.Message.bytesAsU8(this.getProposerAddress())},proto.protocol.Proposal.prototype.setProposerAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.Proposal.prototype.getParametersMap=function(t){return o.Message.getMapField(this,3,t,null)},proto.protocol.Proposal.prototype.clearParametersMap=function(){return this.getParametersMap().clear(),this},proto.protocol.Proposal.prototype.getExpirationTime=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Proposal.prototype.setExpirationTime=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Proposal.prototype.getCreateTime=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Proposal.prototype.setCreateTime=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Proposal.prototype.getApprovalsList=function(){return o.Message.getRepeatedField(this,6)},proto.protocol.Proposal.prototype.getApprovalsList_asB64=function(){return o.Message.bytesListAsB64(this.getApprovalsList())},proto.protocol.Proposal.prototype.getApprovalsList_asU8=function(){return o.Message.bytesListAsU8(this.getApprovalsList())},proto.protocol.Proposal.prototype.setApprovalsList=function(t){return o.Message.setField(this,6,t||[])},proto.protocol.Proposal.prototype.addApprovals=function(t,e){return o.Message.addToRepeatedField(this,6,t,e)},proto.protocol.Proposal.prototype.clearApprovalsList=function(){return this.setApprovalsList([])},proto.protocol.Proposal.prototype.getState=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Proposal.prototype.setState=function(t){return o.Message.setProto3EnumField(this,7,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Exchange.prototype.toObject=function(t){return proto.protocol.Exchange.toObject(t,this)},proto.protocol.Exchange.toObject=function(t,e){var r={exchangeId:o.Message.getFieldWithDefault(e,1,0),creatorAddress:e.getCreatorAddress_asB64(),createTime:o.Message.getFieldWithDefault(e,3,0),firstTokenId:e.getFirstTokenId_asB64(),firstTokenBalance:o.Message.getFieldWithDefault(e,7,0),secondTokenId:e.getSecondTokenId_asB64(),secondTokenBalance:o.Message.getFieldWithDefault(e,9,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Exchange.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Exchange;return proto.protocol.Exchange.deserializeBinaryFromReader(r,e)},proto.protocol.Exchange.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setExchangeId(r);break;case 2:r=e.readBytes();t.setCreatorAddress(r);break;case 3:r=e.readInt64();t.setCreateTime(r);break;case 6:r=e.readBytes();t.setFirstTokenId(r);break;case 7:r=e.readInt64();t.setFirstTokenBalance(r);break;case 8:r=e.readBytes();t.setSecondTokenId(r);break;case 9:r=e.readInt64();t.setSecondTokenBalance(r);break;default:e.skipField()}}return t},proto.protocol.Exchange.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Exchange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Exchange.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getExchangeId())&&e.writeInt64(1,r),(r=t.getCreatorAddress_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getCreateTime())&&e.writeInt64(3,r),(r=t.getFirstTokenId_asU8()).length>0&&e.writeBytes(6,r),0!==(r=t.getFirstTokenBalance())&&e.writeInt64(7,r),(r=t.getSecondTokenId_asU8()).length>0&&e.writeBytes(8,r),0!==(r=t.getSecondTokenBalance())&&e.writeInt64(9,r)},proto.protocol.Exchange.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Exchange.prototype.setExchangeId=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Exchange.prototype.getCreatorAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.Exchange.prototype.getCreatorAddress_asB64=function(){return o.Message.bytesAsB64(this.getCreatorAddress())},proto.protocol.Exchange.prototype.getCreatorAddress_asU8=function(){return o.Message.bytesAsU8(this.getCreatorAddress())},proto.protocol.Exchange.prototype.setCreatorAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.Exchange.prototype.getCreateTime=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Exchange.prototype.setCreateTime=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.Exchange.prototype.getFirstTokenId=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.protocol.Exchange.prototype.getFirstTokenId_asB64=function(){return o.Message.bytesAsB64(this.getFirstTokenId())},proto.protocol.Exchange.prototype.getFirstTokenId_asU8=function(){return o.Message.bytesAsU8(this.getFirstTokenId())},proto.protocol.Exchange.prototype.setFirstTokenId=function(t){return o.Message.setProto3BytesField(this,6,t)},proto.protocol.Exchange.prototype.getFirstTokenBalance=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Exchange.prototype.setFirstTokenBalance=function(t){return o.Message.setProto3IntField(this,7,t)},proto.protocol.Exchange.prototype.getSecondTokenId=function(){return o.Message.getFieldWithDefault(this,8,"")},proto.protocol.Exchange.prototype.getSecondTokenId_asB64=function(){return o.Message.bytesAsB64(this.getSecondTokenId())},proto.protocol.Exchange.prototype.getSecondTokenId_asU8=function(){return o.Message.bytesAsU8(this.getSecondTokenId())},proto.protocol.Exchange.prototype.setSecondTokenId=function(t){return o.Message.setProto3BytesField(this,8,t)},proto.protocol.Exchange.prototype.getSecondTokenBalance=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.protocol.Exchange.prototype.setSecondTokenBalance=function(t){return o.Message.setProto3IntField(this,9,t)},proto.protocol.Account.repeatedFields_=[5,7,16,33],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Account.prototype.toObject=function(t){return proto.protocol.Account.toObject(t,this)},proto.protocol.Account.toObject=function(t,e){var r,n={accountName:e.getAccountName_asB64(),type:o.Message.getFieldWithDefault(e,2,0),address:e.getAddress_asB64(),balance:o.Message.getFieldWithDefault(e,4,0),votesList:o.Message.toObjectList(e.getVotesList(),proto.protocol.Vote.toObject,t),assetMap:(r=e.getAssetMap())?r.toObject(t,void 0):[],assetv2Map:(r=e.getAssetv2Map())?r.toObject(t,void 0):[],frozenList:o.Message.toObjectList(e.getFrozenList(),proto.protocol.Account.Frozen.toObject,t),netUsage:o.Message.getFieldWithDefault(e,8,0),acquiredDelegatedFrozenBalanceForBandwidth:o.Message.getFieldWithDefault(e,41,0),delegatedFrozenBalanceForBandwidth:o.Message.getFieldWithDefault(e,42,0),oldTronPower:o.Message.getFieldWithDefault(e,46,0),tronPower:(r=e.getTronPower())&&proto.protocol.Account.Frozen.toObject(t,r),assetOptimized:o.Message.getBooleanFieldWithDefault(e,60,!1),createTime:o.Message.getFieldWithDefault(e,9,0),latestOprationTime:o.Message.getFieldWithDefault(e,10,0),allowance:o.Message.getFieldWithDefault(e,11,0),latestWithdrawTime:o.Message.getFieldWithDefault(e,12,0),code:e.getCode_asB64(),isWitness:o.Message.getBooleanFieldWithDefault(e,14,!1),isCommittee:o.Message.getBooleanFieldWithDefault(e,15,!1),frozenSupplyList:o.Message.toObjectList(e.getFrozenSupplyList(),proto.protocol.Account.Frozen.toObject,t),assetIssuedName:e.getAssetIssuedName_asB64(),assetIssuedId:e.getAssetIssuedId_asB64(),latestAssetOperationTimeMap:(r=e.getLatestAssetOperationTimeMap())?r.toObject(t,void 0):[],latestAssetOperationTimev2Map:(r=e.getLatestAssetOperationTimev2Map())?r.toObject(t,void 0):[],freeNetUsage:o.Message.getFieldWithDefault(e,19,0),freeAssetNetUsageMap:(r=e.getFreeAssetNetUsageMap())?r.toObject(t,void 0):[],freeAssetNetUsagev2Map:(r=e.getFreeAssetNetUsagev2Map())?r.toObject(t,void 0):[],latestConsumeTime:o.Message.getFieldWithDefault(e,21,0),latestConsumeFreeTime:o.Message.getFieldWithDefault(e,22,0),accountId:e.getAccountId_asB64(),accountResource:(r=e.getAccountResource())&&proto.protocol.Account.AccountResource.toObject(t,r),codehash:e.getCodehash_asB64(),ownerPermission:(r=e.getOwnerPermission())&&proto.protocol.Permission.toObject(t,r),witnessPermission:(r=e.getWitnessPermission())&&proto.protocol.Permission.toObject(t,r),activePermissionList:o.Message.toObjectList(e.getActivePermissionList(),proto.protocol.Permission.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.Account.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Account;return proto.protocol.Account.deserializeBinaryFromReader(r,e)},proto.protocol.Account.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAccountName(r);break;case 2:r=e.readEnum();t.setType(r);break;case 3:r=e.readBytes();t.setAddress(r);break;case 4:r=e.readInt64();t.setBalance(r);break;case 5:r=new proto.protocol.Vote;e.readMessage(r,proto.protocol.Vote.deserializeBinaryFromReader),t.addVotes(r);break;case 6:r=t.getAssetMap();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)}));break;case 56:r=t.getAssetv2Map();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)}));break;case 7:r=new proto.protocol.Account.Frozen;e.readMessage(r,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.addFrozen(r);break;case 8:r=e.readInt64();t.setNetUsage(r);break;case 41:r=e.readInt64();t.setAcquiredDelegatedFrozenBalanceForBandwidth(r);break;case 42:r=e.readInt64();t.setDelegatedFrozenBalanceForBandwidth(r);break;case 46:r=e.readInt64();t.setOldTronPower(r);break;case 47:r=new proto.protocol.Account.Frozen;e.readMessage(r,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.setTronPower(r);break;case 60:r=e.readBool();t.setAssetOptimized(r);break;case 9:r=e.readInt64();t.setCreateTime(r);break;case 10:r=e.readInt64();t.setLatestOprationTime(r);break;case 11:r=e.readInt64();t.setAllowance(r);break;case 12:r=e.readInt64();t.setLatestWithdrawTime(r);break;case 13:r=e.readBytes();t.setCode(r);break;case 14:r=e.readBool();t.setIsWitness(r);break;case 15:r=e.readBool();t.setIsCommittee(r);break;case 16:r=new proto.protocol.Account.Frozen;e.readMessage(r,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.addFrozenSupply(r);break;case 17:r=e.readBytes();t.setAssetIssuedName(r);break;case 57:r=e.readBytes();t.setAssetIssuedId(r);break;case 18:r=t.getLatestAssetOperationTimeMap();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)}));break;case 58:r=t.getLatestAssetOperationTimev2Map();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)}));break;case 19:r=e.readInt64();t.setFreeNetUsage(r);break;case 20:r=t.getFreeAssetNetUsageMap();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)}));break;case 59:r=t.getFreeAssetNetUsagev2Map();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt64,null,"",0)}));break;case 21:r=e.readInt64();t.setLatestConsumeTime(r);break;case 22:r=e.readInt64();t.setLatestConsumeFreeTime(r);break;case 23:r=e.readBytes();t.setAccountId(r);break;case 26:r=new proto.protocol.Account.AccountResource;e.readMessage(r,proto.protocol.Account.AccountResource.deserializeBinaryFromReader),t.setAccountResource(r);break;case 30:r=e.readBytes();t.setCodehash(r);break;case 31:r=new proto.protocol.Permission;e.readMessage(r,proto.protocol.Permission.deserializeBinaryFromReader),t.setOwnerPermission(r);break;case 32:r=new proto.protocol.Permission;e.readMessage(r,proto.protocol.Permission.deserializeBinaryFromReader),t.setWitnessPermission(r);break;case 33:r=new proto.protocol.Permission;e.readMessage(r,proto.protocol.Permission.deserializeBinaryFromReader),t.addActivePermission(r);break;default:e.skipField()}}return t},proto.protocol.Account.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Account.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Account.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAccountName_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getType())&&e.writeEnum(2,r),(r=t.getAddress_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getBalance())&&e.writeInt64(4,r),(r=t.getVotesList()).length>0&&e.writeRepeatedMessage(5,r,proto.protocol.Vote.serializeBinaryToWriter),(r=t.getAssetMap(!0))&&r.getLength()>0&&r.serializeBinary(6,e,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(r=t.getAssetv2Map(!0))&&r.getLength()>0&&r.serializeBinary(56,e,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(r=t.getFrozenList()).length>0&&e.writeRepeatedMessage(7,r,proto.protocol.Account.Frozen.serializeBinaryToWriter),0!==(r=t.getNetUsage())&&e.writeInt64(8,r),0!==(r=t.getAcquiredDelegatedFrozenBalanceForBandwidth())&&e.writeInt64(41,r),0!==(r=t.getDelegatedFrozenBalanceForBandwidth())&&e.writeInt64(42,r),0!==(r=t.getOldTronPower())&&e.writeInt64(46,r),null!=(r=t.getTronPower())&&e.writeMessage(47,r,proto.protocol.Account.Frozen.serializeBinaryToWriter),(r=t.getAssetOptimized())&&e.writeBool(60,r),0!==(r=t.getCreateTime())&&e.writeInt64(9,r),0!==(r=t.getLatestOprationTime())&&e.writeInt64(10,r),0!==(r=t.getAllowance())&&e.writeInt64(11,r),0!==(r=t.getLatestWithdrawTime())&&e.writeInt64(12,r),(r=t.getCode_asU8()).length>0&&e.writeBytes(13,r),(r=t.getIsWitness())&&e.writeBool(14,r),(r=t.getIsCommittee())&&e.writeBool(15,r),(r=t.getFrozenSupplyList()).length>0&&e.writeRepeatedMessage(16,r,proto.protocol.Account.Frozen.serializeBinaryToWriter),(r=t.getAssetIssuedName_asU8()).length>0&&e.writeBytes(17,r),(r=t.getAssetIssuedId_asU8()).length>0&&e.writeBytes(57,r),(r=t.getLatestAssetOperationTimeMap(!0))&&r.getLength()>0&&r.serializeBinary(18,e,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(r=t.getLatestAssetOperationTimev2Map(!0))&&r.getLength()>0&&r.serializeBinary(58,e,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),0!==(r=t.getFreeNetUsage())&&e.writeInt64(19,r),(r=t.getFreeAssetNetUsageMap(!0))&&r.getLength()>0&&r.serializeBinary(20,e,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),(r=t.getFreeAssetNetUsagev2Map(!0))&&r.getLength()>0&&r.serializeBinary(59,e,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt64),0!==(r=t.getLatestConsumeTime())&&e.writeInt64(21,r),0!==(r=t.getLatestConsumeFreeTime())&&e.writeInt64(22,r),(r=t.getAccountId_asU8()).length>0&&e.writeBytes(23,r),null!=(r=t.getAccountResource())&&e.writeMessage(26,r,proto.protocol.Account.AccountResource.serializeBinaryToWriter),(r=t.getCodehash_asU8()).length>0&&e.writeBytes(30,r),null!=(r=t.getOwnerPermission())&&e.writeMessage(31,r,proto.protocol.Permission.serializeBinaryToWriter),null!=(r=t.getWitnessPermission())&&e.writeMessage(32,r,proto.protocol.Permission.serializeBinaryToWriter),(r=t.getActivePermissionList()).length>0&&e.writeRepeatedMessage(33,r,proto.protocol.Permission.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Account.Frozen.prototype.toObject=function(t){return proto.protocol.Account.Frozen.toObject(t,this)},proto.protocol.Account.Frozen.toObject=function(t,e){var r={frozenBalance:o.Message.getFieldWithDefault(e,1,0),expireTime:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Account.Frozen.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Account.Frozen;return proto.protocol.Account.Frozen.deserializeBinaryFromReader(r,e)},proto.protocol.Account.Frozen.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setFrozenBalance(r);break;case 2:r=e.readInt64();t.setExpireTime(r);break;default:e.skipField()}}return t},proto.protocol.Account.Frozen.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Account.Frozen.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Account.Frozen.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getFrozenBalance())&&e.writeInt64(1,r),0!==(r=t.getExpireTime())&&e.writeInt64(2,r)},proto.protocol.Account.Frozen.prototype.getFrozenBalance=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Account.Frozen.prototype.setFrozenBalance=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Account.Frozen.prototype.getExpireTime=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Account.Frozen.prototype.setExpireTime=function(t){return o.Message.setProto3IntField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Account.AccountResource.prototype.toObject=function(t){return proto.protocol.Account.AccountResource.toObject(t,this)},proto.protocol.Account.AccountResource.toObject=function(t,e){var r,n={energyUsage:o.Message.getFieldWithDefault(e,1,0),frozenBalanceForEnergy:(r=e.getFrozenBalanceForEnergy())&&proto.protocol.Account.Frozen.toObject(t,r),latestConsumeTimeForEnergy:o.Message.getFieldWithDefault(e,3,0),acquiredDelegatedFrozenBalanceForEnergy:o.Message.getFieldWithDefault(e,4,0),delegatedFrozenBalanceForEnergy:o.Message.getFieldWithDefault(e,5,0),storageLimit:o.Message.getFieldWithDefault(e,6,0),storageUsage:o.Message.getFieldWithDefault(e,7,0),latestExchangeStorageTime:o.Message.getFieldWithDefault(e,8,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.Account.AccountResource.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Account.AccountResource;return proto.protocol.Account.AccountResource.deserializeBinaryFromReader(r,e)},proto.protocol.Account.AccountResource.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setEnergyUsage(r);break;case 2:r=new proto.protocol.Account.Frozen;e.readMessage(r,proto.protocol.Account.Frozen.deserializeBinaryFromReader),t.setFrozenBalanceForEnergy(r);break;case 3:r=e.readInt64();t.setLatestConsumeTimeForEnergy(r);break;case 4:r=e.readInt64();t.setAcquiredDelegatedFrozenBalanceForEnergy(r);break;case 5:r=e.readInt64();t.setDelegatedFrozenBalanceForEnergy(r);break;case 6:r=e.readInt64();t.setStorageLimit(r);break;case 7:r=e.readInt64();t.setStorageUsage(r);break;case 8:r=e.readInt64();t.setLatestExchangeStorageTime(r);break;default:e.skipField()}}return t},proto.protocol.Account.AccountResource.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Account.AccountResource.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Account.AccountResource.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getEnergyUsage())&&e.writeInt64(1,r),null!=(r=t.getFrozenBalanceForEnergy())&&e.writeMessage(2,r,proto.protocol.Account.Frozen.serializeBinaryToWriter),0!==(r=t.getLatestConsumeTimeForEnergy())&&e.writeInt64(3,r),0!==(r=t.getAcquiredDelegatedFrozenBalanceForEnergy())&&e.writeInt64(4,r),0!==(r=t.getDelegatedFrozenBalanceForEnergy())&&e.writeInt64(5,r),0!==(r=t.getStorageLimit())&&e.writeInt64(6,r),0!==(r=t.getStorageUsage())&&e.writeInt64(7,r),0!==(r=t.getLatestExchangeStorageTime())&&e.writeInt64(8,r)},proto.protocol.Account.AccountResource.prototype.getEnergyUsage=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Account.AccountResource.prototype.setEnergyUsage=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Account.AccountResource.prototype.getFrozenBalanceForEnergy=function(){return o.Message.getWrapperField(this,proto.protocol.Account.Frozen,2)},proto.protocol.Account.AccountResource.prototype.setFrozenBalanceForEnergy=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.Account.AccountResource.prototype.clearFrozenBalanceForEnergy=function(){return this.setFrozenBalanceForEnergy(void 0)},proto.protocol.Account.AccountResource.prototype.hasFrozenBalanceForEnergy=function(){return null!=o.Message.getField(this,2)},proto.protocol.Account.AccountResource.prototype.getLatestConsumeTimeForEnergy=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Account.AccountResource.prototype.setLatestConsumeTimeForEnergy=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.Account.AccountResource.prototype.getAcquiredDelegatedFrozenBalanceForEnergy=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Account.AccountResource.prototype.setAcquiredDelegatedFrozenBalanceForEnergy=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Account.AccountResource.prototype.getDelegatedFrozenBalanceForEnergy=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Account.AccountResource.prototype.setDelegatedFrozenBalanceForEnergy=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Account.AccountResource.prototype.getStorageLimit=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.Account.AccountResource.prototype.setStorageLimit=function(t){return o.Message.setProto3IntField(this,6,t)},proto.protocol.Account.AccountResource.prototype.getStorageUsage=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Account.AccountResource.prototype.setStorageUsage=function(t){return o.Message.setProto3IntField(this,7,t)},proto.protocol.Account.AccountResource.prototype.getLatestExchangeStorageTime=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Account.AccountResource.prototype.setLatestExchangeStorageTime=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Account.prototype.getAccountName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Account.prototype.getAccountName_asB64=function(){return o.Message.bytesAsB64(this.getAccountName())},proto.protocol.Account.prototype.getAccountName_asU8=function(){return o.Message.bytesAsU8(this.getAccountName())},proto.protocol.Account.prototype.setAccountName=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Account.prototype.getType=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Account.prototype.setType=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.Account.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Account.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Account.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Account.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.Account.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Account.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Account.prototype.getVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Vote,5)},proto.protocol.Account.prototype.setVotesList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)},proto.protocol.Account.prototype.addVotes=function(t,e){return o.Message.addToRepeatedWrapperField(this,5,t,proto.protocol.Vote,e)},proto.protocol.Account.prototype.clearVotesList=function(){return this.setVotesList([])},proto.protocol.Account.prototype.getAssetMap=function(t){return o.Message.getMapField(this,6,t,null)},proto.protocol.Account.prototype.clearAssetMap=function(){return this.getAssetMap().clear(),this},proto.protocol.Account.prototype.getAssetv2Map=function(t){return o.Message.getMapField(this,56,t,null)},proto.protocol.Account.prototype.clearAssetv2Map=function(){return this.getAssetv2Map().clear(),this},proto.protocol.Account.prototype.getFrozenList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Account.Frozen,7)},proto.protocol.Account.prototype.setFrozenList=function(t){return o.Message.setRepeatedWrapperField(this,7,t)},proto.protocol.Account.prototype.addFrozen=function(t,e){return o.Message.addToRepeatedWrapperField(this,7,t,proto.protocol.Account.Frozen,e)},proto.protocol.Account.prototype.clearFrozenList=function(){return this.setFrozenList([])},proto.protocol.Account.prototype.getNetUsage=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Account.prototype.setNetUsage=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Account.prototype.getAcquiredDelegatedFrozenBalanceForBandwidth=function(){return o.Message.getFieldWithDefault(this,41,0)},proto.protocol.Account.prototype.setAcquiredDelegatedFrozenBalanceForBandwidth=function(t){return o.Message.setProto3IntField(this,41,t)},proto.protocol.Account.prototype.getDelegatedFrozenBalanceForBandwidth=function(){return o.Message.getFieldWithDefault(this,42,0)},proto.protocol.Account.prototype.setDelegatedFrozenBalanceForBandwidth=function(t){return o.Message.setProto3IntField(this,42,t)},proto.protocol.Account.prototype.getOldTronPower=function(){return o.Message.getFieldWithDefault(this,46,0)},proto.protocol.Account.prototype.setOldTronPower=function(t){return o.Message.setProto3IntField(this,46,t)},proto.protocol.Account.prototype.getTronPower=function(){return o.Message.getWrapperField(this,proto.protocol.Account.Frozen,47)},proto.protocol.Account.prototype.setTronPower=function(t){return o.Message.setWrapperField(this,47,t)},proto.protocol.Account.prototype.clearTronPower=function(){return this.setTronPower(void 0)},proto.protocol.Account.prototype.hasTronPower=function(){return null!=o.Message.getField(this,47)},proto.protocol.Account.prototype.getAssetOptimized=function(){return o.Message.getBooleanFieldWithDefault(this,60,!1)},proto.protocol.Account.prototype.setAssetOptimized=function(t){return o.Message.setProto3BooleanField(this,60,t)},proto.protocol.Account.prototype.getCreateTime=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.protocol.Account.prototype.setCreateTime=function(t){return o.Message.setProto3IntField(this,9,t)},proto.protocol.Account.prototype.getLatestOprationTime=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.Account.prototype.setLatestOprationTime=function(t){return o.Message.setProto3IntField(this,10,t)},proto.protocol.Account.prototype.getAllowance=function(){return o.Message.getFieldWithDefault(this,11,0)},proto.protocol.Account.prototype.setAllowance=function(t){return o.Message.setProto3IntField(this,11,t)},proto.protocol.Account.prototype.getLatestWithdrawTime=function(){return o.Message.getFieldWithDefault(this,12,0)},proto.protocol.Account.prototype.setLatestWithdrawTime=function(t){return o.Message.setProto3IntField(this,12,t)},proto.protocol.Account.prototype.getCode=function(){return o.Message.getFieldWithDefault(this,13,"")},proto.protocol.Account.prototype.getCode_asB64=function(){return o.Message.bytesAsB64(this.getCode())},proto.protocol.Account.prototype.getCode_asU8=function(){return o.Message.bytesAsU8(this.getCode())},proto.protocol.Account.prototype.setCode=function(t){return o.Message.setProto3BytesField(this,13,t)},proto.protocol.Account.prototype.getIsWitness=function(){return o.Message.getBooleanFieldWithDefault(this,14,!1)},proto.protocol.Account.prototype.setIsWitness=function(t){return o.Message.setProto3BooleanField(this,14,t)},proto.protocol.Account.prototype.getIsCommittee=function(){return o.Message.getBooleanFieldWithDefault(this,15,!1)},proto.protocol.Account.prototype.setIsCommittee=function(t){return o.Message.setProto3BooleanField(this,15,t)},proto.protocol.Account.prototype.getFrozenSupplyList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Account.Frozen,16)},proto.protocol.Account.prototype.setFrozenSupplyList=function(t){return o.Message.setRepeatedWrapperField(this,16,t)},proto.protocol.Account.prototype.addFrozenSupply=function(t,e){return o.Message.addToRepeatedWrapperField(this,16,t,proto.protocol.Account.Frozen,e)},proto.protocol.Account.prototype.clearFrozenSupplyList=function(){return this.setFrozenSupplyList([])},proto.protocol.Account.prototype.getAssetIssuedName=function(){return o.Message.getFieldWithDefault(this,17,"")},proto.protocol.Account.prototype.getAssetIssuedName_asB64=function(){return o.Message.bytesAsB64(this.getAssetIssuedName())},proto.protocol.Account.prototype.getAssetIssuedName_asU8=function(){return o.Message.bytesAsU8(this.getAssetIssuedName())},proto.protocol.Account.prototype.setAssetIssuedName=function(t){return o.Message.setProto3BytesField(this,17,t)},proto.protocol.Account.prototype.getAssetIssuedId=function(){return o.Message.getFieldWithDefault(this,57,"")},proto.protocol.Account.prototype.getAssetIssuedId_asB64=function(){return o.Message.bytesAsB64(this.getAssetIssuedId())},proto.protocol.Account.prototype.getAssetIssuedId_asU8=function(){return o.Message.bytesAsU8(this.getAssetIssuedId())},proto.protocol.Account.prototype.setAssetIssuedId=function(t){return o.Message.setProto3BytesField(this,57,t)},proto.protocol.Account.prototype.getLatestAssetOperationTimeMap=function(t){return o.Message.getMapField(this,18,t,null)},proto.protocol.Account.prototype.clearLatestAssetOperationTimeMap=function(){return this.getLatestAssetOperationTimeMap().clear(),this},proto.protocol.Account.prototype.getLatestAssetOperationTimev2Map=function(t){return o.Message.getMapField(this,58,t,null)},proto.protocol.Account.prototype.clearLatestAssetOperationTimev2Map=function(){return this.getLatestAssetOperationTimev2Map().clear(),this},proto.protocol.Account.prototype.getFreeNetUsage=function(){return o.Message.getFieldWithDefault(this,19,0)},proto.protocol.Account.prototype.setFreeNetUsage=function(t){return o.Message.setProto3IntField(this,19,t)},proto.protocol.Account.prototype.getFreeAssetNetUsageMap=function(t){return o.Message.getMapField(this,20,t,null)},proto.protocol.Account.prototype.clearFreeAssetNetUsageMap=function(){return this.getFreeAssetNetUsageMap().clear(),this},proto.protocol.Account.prototype.getFreeAssetNetUsagev2Map=function(t){return o.Message.getMapField(this,59,t,null)},proto.protocol.Account.prototype.clearFreeAssetNetUsagev2Map=function(){return this.getFreeAssetNetUsagev2Map().clear(),this},proto.protocol.Account.prototype.getLatestConsumeTime=function(){return o.Message.getFieldWithDefault(this,21,0)},proto.protocol.Account.prototype.setLatestConsumeTime=function(t){return o.Message.setProto3IntField(this,21,t)},proto.protocol.Account.prototype.getLatestConsumeFreeTime=function(){return o.Message.getFieldWithDefault(this,22,0)},proto.protocol.Account.prototype.setLatestConsumeFreeTime=function(t){return o.Message.setProto3IntField(this,22,t)},proto.protocol.Account.prototype.getAccountId=function(){return o.Message.getFieldWithDefault(this,23,"")},proto.protocol.Account.prototype.getAccountId_asB64=function(){return o.Message.bytesAsB64(this.getAccountId())},proto.protocol.Account.prototype.getAccountId_asU8=function(){return o.Message.bytesAsU8(this.getAccountId())},proto.protocol.Account.prototype.setAccountId=function(t){return o.Message.setProto3BytesField(this,23,t)},proto.protocol.Account.prototype.getAccountResource=function(){return o.Message.getWrapperField(this,proto.protocol.Account.AccountResource,26)},proto.protocol.Account.prototype.setAccountResource=function(t){return o.Message.setWrapperField(this,26,t)},proto.protocol.Account.prototype.clearAccountResource=function(){return this.setAccountResource(void 0)},proto.protocol.Account.prototype.hasAccountResource=function(){return null!=o.Message.getField(this,26)},proto.protocol.Account.prototype.getCodehash=function(){return o.Message.getFieldWithDefault(this,30,"")},proto.protocol.Account.prototype.getCodehash_asB64=function(){return o.Message.bytesAsB64(this.getCodehash())},proto.protocol.Account.prototype.getCodehash_asU8=function(){return o.Message.bytesAsU8(this.getCodehash())},proto.protocol.Account.prototype.setCodehash=function(t){return o.Message.setProto3BytesField(this,30,t)},proto.protocol.Account.prototype.getOwnerPermission=function(){return o.Message.getWrapperField(this,proto.protocol.Permission,31)},proto.protocol.Account.prototype.setOwnerPermission=function(t){return o.Message.setWrapperField(this,31,t)},proto.protocol.Account.prototype.clearOwnerPermission=function(){return this.setOwnerPermission(void 0)},proto.protocol.Account.prototype.hasOwnerPermission=function(){return null!=o.Message.getField(this,31)},proto.protocol.Account.prototype.getWitnessPermission=function(){return o.Message.getWrapperField(this,proto.protocol.Permission,32)},proto.protocol.Account.prototype.setWitnessPermission=function(t){return o.Message.setWrapperField(this,32,t)},proto.protocol.Account.prototype.clearWitnessPermission=function(){return this.setWitnessPermission(void 0)},proto.protocol.Account.prototype.hasWitnessPermission=function(){return null!=o.Message.getField(this,32)},proto.protocol.Account.prototype.getActivePermissionList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Permission,33)},proto.protocol.Account.prototype.setActivePermissionList=function(t){return o.Message.setRepeatedWrapperField(this,33,t)},proto.protocol.Account.prototype.addActivePermission=function(t,e){return o.Message.addToRepeatedWrapperField(this,33,t,proto.protocol.Permission,e)},proto.protocol.Account.prototype.clearActivePermissionList=function(){return this.setActivePermissionList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Key.prototype.toObject=function(t){return proto.protocol.Key.toObject(t,this)},proto.protocol.Key.toObject=function(t,e){var r={address:e.getAddress_asB64(),weight:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Key.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Key;return proto.protocol.Key.deserializeBinaryFromReader(r,e)},proto.protocol.Key.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAddress(r);break;case 2:r=e.readInt64();t.setWeight(r);break;default:e.skipField()}}return t},proto.protocol.Key.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Key.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Key.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getWeight())&&e.writeInt64(2,r)},proto.protocol.Key.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Key.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Key.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Key.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Key.prototype.getWeight=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Key.prototype.setWeight=function(t){return o.Message.setProto3IntField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.DelegatedResource.prototype.toObject=function(t){return proto.protocol.DelegatedResource.toObject(t,this)},proto.protocol.DelegatedResource.toObject=function(t,e){var r={from:e.getFrom_asB64(),to:e.getTo_asB64(),frozenBalanceForBandwidth:o.Message.getFieldWithDefault(e,3,0),frozenBalanceForEnergy:o.Message.getFieldWithDefault(e,4,0),expireTimeForBandwidth:o.Message.getFieldWithDefault(e,5,0),expireTimeForEnergy:o.Message.getFieldWithDefault(e,6,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.DelegatedResource.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.DelegatedResource;return proto.protocol.DelegatedResource.deserializeBinaryFromReader(r,e)},proto.protocol.DelegatedResource.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setFrom(r);break;case 2:r=e.readBytes();t.setTo(r);break;case 3:r=e.readInt64();t.setFrozenBalanceForBandwidth(r);break;case 4:r=e.readInt64();t.setFrozenBalanceForEnergy(r);break;case 5:r=e.readInt64();t.setExpireTimeForBandwidth(r);break;case 6:r=e.readInt64();t.setExpireTimeForEnergy(r);break;default:e.skipField()}}return t},proto.protocol.DelegatedResource.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.DelegatedResource.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.DelegatedResource.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getFrom_asU8()).length>0&&e.writeBytes(1,r),(r=t.getTo_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getFrozenBalanceForBandwidth())&&e.writeInt64(3,r),0!==(r=t.getFrozenBalanceForEnergy())&&e.writeInt64(4,r),0!==(r=t.getExpireTimeForBandwidth())&&e.writeInt64(5,r),0!==(r=t.getExpireTimeForEnergy())&&e.writeInt64(6,r)},proto.protocol.DelegatedResource.prototype.getFrom=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.DelegatedResource.prototype.getFrom_asB64=function(){return o.Message.bytesAsB64(this.getFrom())},proto.protocol.DelegatedResource.prototype.getFrom_asU8=function(){return o.Message.bytesAsU8(this.getFrom())},proto.protocol.DelegatedResource.prototype.setFrom=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.DelegatedResource.prototype.getTo=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.DelegatedResource.prototype.getTo_asB64=function(){return o.Message.bytesAsB64(this.getTo())},proto.protocol.DelegatedResource.prototype.getTo_asU8=function(){return o.Message.bytesAsU8(this.getTo())},proto.protocol.DelegatedResource.prototype.setTo=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.DelegatedResource.prototype.getFrozenBalanceForBandwidth=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.DelegatedResource.prototype.setFrozenBalanceForBandwidth=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.DelegatedResource.prototype.getFrozenBalanceForEnergy=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.DelegatedResource.prototype.setFrozenBalanceForEnergy=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.DelegatedResource.prototype.getExpireTimeForBandwidth=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.DelegatedResource.prototype.setExpireTimeForBandwidth=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.DelegatedResource.prototype.getExpireTimeForEnergy=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.DelegatedResource.prototype.setExpireTimeForEnergy=function(t){return o.Message.setProto3IntField(this,6,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.authority.prototype.toObject=function(t){return proto.protocol.authority.toObject(t,this)},proto.protocol.authority.toObject=function(t,e){var r,o={account:(r=e.getAccount())&&proto.protocol.AccountId.toObject(t,r),permissionName:e.getPermissionName_asB64()};return t&&(o.$jspbMessageInstance=e),o}),proto.protocol.authority.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.authority;return proto.protocol.authority.deserializeBinaryFromReader(r,e)},proto.protocol.authority.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=new proto.protocol.AccountId;e.readMessage(r,proto.protocol.AccountId.deserializeBinaryFromReader),t.setAccount(r);break;case 2:r=e.readBytes();t.setPermissionName(r);break;default:e.skipField()}}return t},proto.protocol.authority.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.authority.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.authority.serializeBinaryToWriter=function(t,e){var r=void 0;null!=(r=t.getAccount())&&e.writeMessage(1,r,proto.protocol.AccountId.serializeBinaryToWriter),(r=t.getPermissionName_asU8()).length>0&&e.writeBytes(2,r)},proto.protocol.authority.prototype.getAccount=function(){return o.Message.getWrapperField(this,proto.protocol.AccountId,1)},proto.protocol.authority.prototype.setAccount=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.authority.prototype.clearAccount=function(){return this.setAccount(void 0)},proto.protocol.authority.prototype.hasAccount=function(){return null!=o.Message.getField(this,1)},proto.protocol.authority.prototype.getPermissionName=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.authority.prototype.getPermissionName_asB64=function(){return o.Message.bytesAsB64(this.getPermissionName())},proto.protocol.authority.prototype.getPermissionName_asU8=function(){return o.Message.bytesAsU8(this.getPermissionName())},proto.protocol.authority.prototype.setPermissionName=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.Permission.repeatedFields_=[7],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Permission.prototype.toObject=function(t){return proto.protocol.Permission.toObject(t,this)},proto.protocol.Permission.toObject=function(t,e){var r={type:o.Message.getFieldWithDefault(e,1,0),id:o.Message.getFieldWithDefault(e,2,0),permissionName:o.Message.getFieldWithDefault(e,3,""),threshold:o.Message.getFieldWithDefault(e,4,0),parentId:o.Message.getFieldWithDefault(e,5,0),operations:e.getOperations_asB64(),keysList:o.Message.toObjectList(e.getKeysList(),proto.protocol.Key.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Permission.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Permission;return proto.protocol.Permission.deserializeBinaryFromReader(r,e)},proto.protocol.Permission.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readEnum();t.setType(r);break;case 2:r=e.readInt32();t.setId(r);break;case 3:r=e.readString();t.setPermissionName(r);break;case 4:r=e.readInt64();t.setThreshold(r);break;case 5:r=e.readInt32();t.setParentId(r);break;case 6:r=e.readBytes();t.setOperations(r);break;case 7:r=new proto.protocol.Key;e.readMessage(r,proto.protocol.Key.deserializeBinaryFromReader),t.addKeys(r);break;default:e.skipField()}}return t},proto.protocol.Permission.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Permission.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Permission.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getType())&&e.writeEnum(1,r),0!==(r=t.getId())&&e.writeInt32(2,r),(r=t.getPermissionName()).length>0&&e.writeString(3,r),0!==(r=t.getThreshold())&&e.writeInt64(4,r),0!==(r=t.getParentId())&&e.writeInt32(5,r),(r=t.getOperations_asU8()).length>0&&e.writeBytes(6,r),(r=t.getKeysList()).length>0&&e.writeRepeatedMessage(7,r,proto.protocol.Key.serializeBinaryToWriter)},proto.protocol.Permission.PermissionType={OWNER:0,WITNESS:1,ACTIVE:2},proto.protocol.Permission.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Permission.prototype.setType=function(t){return o.Message.setProto3EnumField(this,1,t)},proto.protocol.Permission.prototype.getId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Permission.prototype.setId=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.Permission.prototype.getPermissionName=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Permission.prototype.setPermissionName=function(t){return o.Message.setProto3StringField(this,3,t)},proto.protocol.Permission.prototype.getThreshold=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.Permission.prototype.setThreshold=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Permission.prototype.getParentId=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Permission.prototype.setParentId=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Permission.prototype.getOperations=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.protocol.Permission.prototype.getOperations_asB64=function(){return o.Message.bytesAsB64(this.getOperations())},proto.protocol.Permission.prototype.getOperations_asU8=function(){return o.Message.bytesAsU8(this.getOperations())},proto.protocol.Permission.prototype.setOperations=function(t){return o.Message.setProto3BytesField(this,6,t)},proto.protocol.Permission.prototype.getKeysList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Key,7)},proto.protocol.Permission.prototype.setKeysList=function(t){return o.Message.setRepeatedWrapperField(this,7,t)},proto.protocol.Permission.prototype.addKeys=function(t,e){return o.Message.addToRepeatedWrapperField(this,7,t,proto.protocol.Key,e)},proto.protocol.Permission.prototype.clearKeysList=function(){return this.setKeysList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Witness.prototype.toObject=function(t){return proto.protocol.Witness.toObject(t,this)},proto.protocol.Witness.toObject=function(t,e){var r={address:e.getAddress_asB64(),votecount:o.Message.getFieldWithDefault(e,2,0),pubkey:e.getPubkey_asB64(),url:o.Message.getFieldWithDefault(e,4,""),totalproduced:o.Message.getFieldWithDefault(e,5,0),totalmissed:o.Message.getFieldWithDefault(e,6,0),latestblocknum:o.Message.getFieldWithDefault(e,7,0),latestslotnum:o.Message.getFieldWithDefault(e,8,0),isjobs:o.Message.getBooleanFieldWithDefault(e,9,!1)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Witness.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Witness;return proto.protocol.Witness.deserializeBinaryFromReader(r,e)},proto.protocol.Witness.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAddress(r);break;case 2:r=e.readInt64();t.setVotecount(r);break;case 3:r=e.readBytes();t.setPubkey(r);break;case 4:r=e.readString();t.setUrl(r);break;case 5:r=e.readInt64();t.setTotalproduced(r);break;case 6:r=e.readInt64();t.setTotalmissed(r);break;case 7:r=e.readInt64();t.setLatestblocknum(r);break;case 8:r=e.readInt64();t.setLatestslotnum(r);break;case 9:r=e.readBool();t.setIsjobs(r);break;default:e.skipField()}}return t},proto.protocol.Witness.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Witness.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Witness.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getVotecount())&&e.writeInt64(2,r),(r=t.getPubkey_asU8()).length>0&&e.writeBytes(3,r),(r=t.getUrl()).length>0&&e.writeString(4,r),0!==(r=t.getTotalproduced())&&e.writeInt64(5,r),0!==(r=t.getTotalmissed())&&e.writeInt64(6,r),0!==(r=t.getLatestblocknum())&&e.writeInt64(7,r),0!==(r=t.getLatestslotnum())&&e.writeInt64(8,r),(r=t.getIsjobs())&&e.writeBool(9,r)},proto.protocol.Witness.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Witness.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Witness.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Witness.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Witness.prototype.getVotecount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Witness.prototype.setVotecount=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.Witness.prototype.getPubkey=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Witness.prototype.getPubkey_asB64=function(){return o.Message.bytesAsB64(this.getPubkey())},proto.protocol.Witness.prototype.getPubkey_asU8=function(){return o.Message.bytesAsU8(this.getPubkey())},proto.protocol.Witness.prototype.setPubkey=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.Witness.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.Witness.prototype.setUrl=function(t){return o.Message.setProto3StringField(this,4,t)},proto.protocol.Witness.prototype.getTotalproduced=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Witness.prototype.setTotalproduced=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Witness.prototype.getTotalmissed=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.Witness.prototype.setTotalmissed=function(t){return o.Message.setProto3IntField(this,6,t)},proto.protocol.Witness.prototype.getLatestblocknum=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.Witness.prototype.setLatestblocknum=function(t){return o.Message.setProto3IntField(this,7,t)},proto.protocol.Witness.prototype.getLatestslotnum=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Witness.prototype.setLatestslotnum=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Witness.prototype.getIsjobs=function(){return o.Message.getBooleanFieldWithDefault(this,9,!1)},proto.protocol.Witness.prototype.setIsjobs=function(t){return o.Message.setProto3BooleanField(this,9,t)},proto.protocol.Votes.repeatedFields_=[2,3],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Votes.prototype.toObject=function(t){return proto.protocol.Votes.toObject(t,this)},proto.protocol.Votes.toObject=function(t,e){var r={address:e.getAddress_asB64(),oldVotesList:o.Message.toObjectList(e.getOldVotesList(),proto.protocol.Vote.toObject,t),newVotesList:o.Message.toObjectList(e.getNewVotesList(),proto.protocol.Vote.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Votes.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Votes;return proto.protocol.Votes.deserializeBinaryFromReader(r,e)},proto.protocol.Votes.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAddress(r);break;case 2:r=new proto.protocol.Vote;e.readMessage(r,proto.protocol.Vote.deserializeBinaryFromReader),t.addOldVotes(r);break;case 3:r=new proto.protocol.Vote;e.readMessage(r,proto.protocol.Vote.deserializeBinaryFromReader),t.addNewVotes(r);break;default:e.skipField()}}return t},proto.protocol.Votes.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Votes.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Votes.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getOldVotesList()).length>0&&e.writeRepeatedMessage(2,r,proto.protocol.Vote.serializeBinaryToWriter),(r=t.getNewVotesList()).length>0&&e.writeRepeatedMessage(3,r,proto.protocol.Vote.serializeBinaryToWriter)},proto.protocol.Votes.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Votes.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.Votes.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.Votes.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Votes.prototype.getOldVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Vote,2)},proto.protocol.Votes.prototype.setOldVotesList=function(t){return o.Message.setRepeatedWrapperField(this,2,t)},proto.protocol.Votes.prototype.addOldVotes=function(t,e){return o.Message.addToRepeatedWrapperField(this,2,t,proto.protocol.Vote,e)},proto.protocol.Votes.prototype.clearOldVotesList=function(){return this.setOldVotesList([])},proto.protocol.Votes.prototype.getNewVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Vote,3)},proto.protocol.Votes.prototype.setNewVotesList=function(t){return o.Message.setRepeatedWrapperField(this,3,t)},proto.protocol.Votes.prototype.addNewVotes=function(t,e){return o.Message.addToRepeatedWrapperField(this,3,t,proto.protocol.Vote,e)},proto.protocol.Votes.prototype.clearNewVotesList=function(){return this.setNewVotesList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.MarketOrderDetail.prototype.toObject=function(t){return proto.protocol.MarketOrderDetail.toObject(t,this)},proto.protocol.MarketOrderDetail.toObject=function(t,e){var r={makerorderid:e.getMakerorderid_asB64(),takerorderid:e.getTakerorderid_asB64(),fillsellquantity:o.Message.getFieldWithDefault(e,3,0),fillbuyquantity:o.Message.getFieldWithDefault(e,4,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.MarketOrderDetail.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.MarketOrderDetail;return proto.protocol.MarketOrderDetail.deserializeBinaryFromReader(r,e)},proto.protocol.MarketOrderDetail.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setMakerorderid(r);break;case 2:r=e.readBytes();t.setTakerorderid(r);break;case 3:r=e.readInt64();t.setFillsellquantity(r);break;case 4:r=e.readInt64();t.setFillbuyquantity(r);break;default:e.skipField()}}return t},proto.protocol.MarketOrderDetail.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.MarketOrderDetail.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.MarketOrderDetail.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getMakerorderid_asU8()).length>0&&e.writeBytes(1,r),(r=t.getTakerorderid_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getFillsellquantity())&&e.writeInt64(3,r),0!==(r=t.getFillbuyquantity())&&e.writeInt64(4,r)},proto.protocol.MarketOrderDetail.prototype.getMakerorderid=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.MarketOrderDetail.prototype.getMakerorderid_asB64=function(){return o.Message.bytesAsB64(this.getMakerorderid())},proto.protocol.MarketOrderDetail.prototype.getMakerorderid_asU8=function(){return o.Message.bytesAsU8(this.getMakerorderid())},proto.protocol.MarketOrderDetail.prototype.setMakerorderid=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.MarketOrderDetail.prototype.getTakerorderid=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.MarketOrderDetail.prototype.getTakerorderid_asB64=function(){return o.Message.bytesAsB64(this.getTakerorderid())},proto.protocol.MarketOrderDetail.prototype.getTakerorderid_asU8=function(){return o.Message.bytesAsU8(this.getTakerorderid())},proto.protocol.MarketOrderDetail.prototype.setTakerorderid=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.MarketOrderDetail.prototype.getFillsellquantity=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.MarketOrderDetail.prototype.setFillsellquantity=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.MarketOrderDetail.prototype.getFillbuyquantity=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.MarketOrderDetail.prototype.setFillbuyquantity=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.Transaction.repeatedFields_=[2,5],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.prototype.toObject=function(t){return proto.protocol.Transaction.toObject(t,this)},proto.protocol.Transaction.toObject=function(t,e){var r,n={rawData:(r=e.getRawData())&&proto.protocol.Transaction.raw.toObject(t,r),signatureList:e.getSignatureList_asB64(),retList:o.Message.toObjectList(e.getRetList(),proto.protocol.Transaction.Result.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.Transaction.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Transaction;return proto.protocol.Transaction.deserializeBinaryFromReader(r,e)},proto.protocol.Transaction.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=new proto.protocol.Transaction.raw;e.readMessage(r,proto.protocol.Transaction.raw.deserializeBinaryFromReader),t.setRawData(r);break;case 2:r=e.readBytes();t.addSignature(r);break;case 5:r=new proto.protocol.Transaction.Result;e.readMessage(r,proto.protocol.Transaction.Result.deserializeBinaryFromReader),t.addRet(r);break;default:e.skipField()}}return t},proto.protocol.Transaction.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.serializeBinaryToWriter=function(t,e){var r=void 0;null!=(r=t.getRawData())&&e.writeMessage(1,r,proto.protocol.Transaction.raw.serializeBinaryToWriter),(r=t.getSignatureList_asU8()).length>0&&e.writeRepeatedBytes(2,r),(r=t.getRetList()).length>0&&e.writeRepeatedMessage(5,r,proto.protocol.Transaction.Result.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.Contract.prototype.toObject=function(t){return proto.protocol.Transaction.Contract.toObject(t,this)},proto.protocol.Transaction.Contract.toObject=function(t,e){var r,n={type:o.Message.getFieldWithDefault(e,1,0),parameter:(r=e.getParameter())&&a.Any.toObject(t,r),provider:e.getProvider_asB64(),contractname:e.getContractname_asB64(),permissionId:o.Message.getFieldWithDefault(e,5,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.Transaction.Contract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Transaction.Contract;return proto.protocol.Transaction.Contract.deserializeBinaryFromReader(r,e)},proto.protocol.Transaction.Contract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readEnum();t.setType(r);break;case 2:r=new a.Any;e.readMessage(r,a.Any.deserializeBinaryFromReader),t.setParameter(r);break;case 3:r=e.readBytes();t.setProvider(r);break;case 4:r=e.readBytes();t.setContractname(r);break;case 5:r=e.readInt32();t.setPermissionId(r);break;default:e.skipField()}}return t},proto.protocol.Transaction.Contract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.Contract.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getType())&&e.writeEnum(1,r),null!=(r=t.getParameter())&&e.writeMessage(2,r,a.Any.serializeBinaryToWriter),(r=t.getProvider_asU8()).length>0&&e.writeBytes(3,r),(r=t.getContractname_asU8()).length>0&&e.writeBytes(4,r),0!==(r=t.getPermissionId())&&e.writeInt32(5,r)},proto.protocol.Transaction.Contract.ContractType={ACCOUNTCREATECONTRACT:0,TRANSFERCONTRACT:1,TRANSFERASSETCONTRACT:2,VOTEASSETCONTRACT:3,VOTEWITNESSCONTRACT:4,WITNESSCREATECONTRACT:5,ASSETISSUECONTRACT:6,WITNESSUPDATECONTRACT:8,PARTICIPATEASSETISSUECONTRACT:9,ACCOUNTUPDATECONTRACT:10,FREEZEBALANCECONTRACT:11,UNFREEZEBALANCECONTRACT:12,WITHDRAWBALANCECONTRACT:13,UNFREEZEASSETCONTRACT:14,UPDATEASSETCONTRACT:15,PROPOSALCREATECONTRACT:16,PROPOSALAPPROVECONTRACT:17,PROPOSALDELETECONTRACT:18,SETACCOUNTIDCONTRACT:19,CUSTOMCONTRACT:20,CREATESMARTCONTRACT:30,TRIGGERSMARTCONTRACT:31,GETCONTRACT:32,UPDATESETTINGCONTRACT:33,EXCHANGECREATECONTRACT:41,EXCHANGEINJECTCONTRACT:42,EXCHANGEWITHDRAWCONTRACT:43,EXCHANGETRANSACTIONCONTRACT:44,UPDATEENERGYLIMITCONTRACT:45,ACCOUNTPERMISSIONUPDATECONTRACT:46,CLEARABICONTRACT:48,UPDATEBROKERAGECONTRACT:49,SHIELDEDTRANSFERCONTRACT:51,MARKETSELLASSETCONTRACT:52,MARKETCANCELORDERCONTRACT:53,FREEZEBALANCEV2CONTRACT:54,UNFREEZEBALANCEV2CONTRACT:55,WITHDRAWEXPIREUNFREEZECONTRACT:56,DELEGATERESOURCECONTRACT:57,UNDELEGATERESOURCECONTRACT:58},proto.protocol.Transaction.Contract.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Transaction.Contract.prototype.setType=function(t){return o.Message.setProto3EnumField(this,1,t)},proto.protocol.Transaction.Contract.prototype.getParameter=function(){return o.Message.getWrapperField(this,a.Any,2)},proto.protocol.Transaction.Contract.prototype.setParameter=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.Transaction.Contract.prototype.clearParameter=function(){return this.setParameter(void 0)},proto.protocol.Transaction.Contract.prototype.hasParameter=function(){return null!=o.Message.getField(this,2)},proto.protocol.Transaction.Contract.prototype.getProvider=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.Transaction.Contract.prototype.getProvider_asB64=function(){return o.Message.bytesAsB64(this.getProvider())},proto.protocol.Transaction.Contract.prototype.getProvider_asU8=function(){return o.Message.bytesAsU8(this.getProvider())},proto.protocol.Transaction.Contract.prototype.setProvider=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.Transaction.Contract.prototype.getContractname=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.Transaction.Contract.prototype.getContractname_asB64=function(){return o.Message.bytesAsB64(this.getContractname())},proto.protocol.Transaction.Contract.prototype.getContractname_asU8=function(){return o.Message.bytesAsU8(this.getContractname())},proto.protocol.Transaction.Contract.prototype.setContractname=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.Transaction.Contract.prototype.getPermissionId=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.Transaction.Contract.prototype.setPermissionId=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.Transaction.Result.repeatedFields_=[26],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.Result.prototype.toObject=function(t){return proto.protocol.Transaction.Result.toObject(t,this)},proto.protocol.Transaction.Result.toObject=function(t,e){var r={fee:o.Message.getFieldWithDefault(e,1,0),ret:o.Message.getFieldWithDefault(e,2,0),contractret:o.Message.getFieldWithDefault(e,3,0),assetissueid:o.Message.getFieldWithDefault(e,14,""),withdrawAmount:o.Message.getFieldWithDefault(e,15,0),unfreezeAmount:o.Message.getFieldWithDefault(e,16,0),exchangeReceivedAmount:o.Message.getFieldWithDefault(e,18,0),exchangeInjectAnotherAmount:o.Message.getFieldWithDefault(e,19,0),exchangeWithdrawAnotherAmount:o.Message.getFieldWithDefault(e,20,0),exchangeId:o.Message.getFieldWithDefault(e,21,0),shieldedTransactionFee:o.Message.getFieldWithDefault(e,22,0),orderid:e.getOrderid_asB64(),orderdetailsList:o.Message.toObjectList(e.getOrderdetailsList(),proto.protocol.MarketOrderDetail.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Transaction.Result.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Transaction.Result;return proto.protocol.Transaction.Result.deserializeBinaryFromReader(r,e)},proto.protocol.Transaction.Result.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setFee(r);break;case 2:r=e.readEnum();t.setRet(r);break;case 3:r=e.readEnum();t.setContractret(r);break;case 14:r=e.readString();t.setAssetissueid(r);break;case 15:r=e.readInt64();t.setWithdrawAmount(r);break;case 16:r=e.readInt64();t.setUnfreezeAmount(r);break;case 18:r=e.readInt64();t.setExchangeReceivedAmount(r);break;case 19:r=e.readInt64();t.setExchangeInjectAnotherAmount(r);break;case 20:r=e.readInt64();t.setExchangeWithdrawAnotherAmount(r);break;case 21:r=e.readInt64();t.setExchangeId(r);break;case 22:r=e.readInt64();t.setShieldedTransactionFee(r);break;case 25:r=e.readBytes();t.setOrderid(r);break;case 26:r=new proto.protocol.MarketOrderDetail;e.readMessage(r,proto.protocol.MarketOrderDetail.deserializeBinaryFromReader),t.addOrderdetails(r);break;default:e.skipField()}}return t},proto.protocol.Transaction.Result.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.Result.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.Result.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getFee())&&e.writeInt64(1,r),0!==(r=t.getRet())&&e.writeEnum(2,r),0!==(r=t.getContractret())&&e.writeEnum(3,r),(r=t.getAssetissueid()).length>0&&e.writeString(14,r),0!==(r=t.getWithdrawAmount())&&e.writeInt64(15,r),0!==(r=t.getUnfreezeAmount())&&e.writeInt64(16,r),0!==(r=t.getExchangeReceivedAmount())&&e.writeInt64(18,r),0!==(r=t.getExchangeInjectAnotherAmount())&&e.writeInt64(19,r),0!==(r=t.getExchangeWithdrawAnotherAmount())&&e.writeInt64(20,r),0!==(r=t.getExchangeId())&&e.writeInt64(21,r),0!==(r=t.getShieldedTransactionFee())&&e.writeInt64(22,r),(r=t.getOrderid_asU8()).length>0&&e.writeBytes(25,r),(r=t.getOrderdetailsList()).length>0&&e.writeRepeatedMessage(26,r,proto.protocol.MarketOrderDetail.serializeBinaryToWriter)},proto.protocol.Transaction.Result.code={SUCESS:0,FAILED:1},proto.protocol.Transaction.Result.contractResult={DEFAULT:0,SUCCESS:1,REVERT:2,BAD_JUMP_DESTINATION:3,OUT_OF_MEMORY:4,PRECOMPILED_CONTRACT:5,STACK_TOO_SMALL:6,STACK_TOO_LARGE:7,ILLEGAL_OPERATION:8,STACK_OVERFLOW:9,OUT_OF_ENERGY:10,OUT_OF_TIME:11,JVM_STACK_OVER_FLOW:12,UNKNOWN:13,TRANSFER_FAILED:14,INVALID_CODE:15},proto.protocol.Transaction.Result.prototype.getFee=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.Transaction.Result.prototype.setFee=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.Transaction.Result.prototype.getRet=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.Transaction.Result.prototype.setRet=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.Transaction.Result.prototype.getContractret=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Transaction.Result.prototype.setContractret=function(t){return o.Message.setProto3EnumField(this,3,t)},proto.protocol.Transaction.Result.prototype.getAssetissueid=function(){return o.Message.getFieldWithDefault(this,14,"")},proto.protocol.Transaction.Result.prototype.setAssetissueid=function(t){return o.Message.setProto3StringField(this,14,t)},proto.protocol.Transaction.Result.prototype.getWithdrawAmount=function(){return o.Message.getFieldWithDefault(this,15,0)},proto.protocol.Transaction.Result.prototype.setWithdrawAmount=function(t){return o.Message.setProto3IntField(this,15,t)},proto.protocol.Transaction.Result.prototype.getUnfreezeAmount=function(){return o.Message.getFieldWithDefault(this,16,0)},proto.protocol.Transaction.Result.prototype.setUnfreezeAmount=function(t){return o.Message.setProto3IntField(this,16,t)},proto.protocol.Transaction.Result.prototype.getExchangeReceivedAmount=function(){return o.Message.getFieldWithDefault(this,18,0)},proto.protocol.Transaction.Result.prototype.setExchangeReceivedAmount=function(t){return o.Message.setProto3IntField(this,18,t)},proto.protocol.Transaction.Result.prototype.getExchangeInjectAnotherAmount=function(){return o.Message.getFieldWithDefault(this,19,0)},proto.protocol.Transaction.Result.prototype.setExchangeInjectAnotherAmount=function(t){return o.Message.setProto3IntField(this,19,t)},proto.protocol.Transaction.Result.prototype.getExchangeWithdrawAnotherAmount=function(){return o.Message.getFieldWithDefault(this,20,0)},proto.protocol.Transaction.Result.prototype.setExchangeWithdrawAnotherAmount=function(t){return o.Message.setProto3IntField(this,20,t)},proto.protocol.Transaction.Result.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,21,0)},proto.protocol.Transaction.Result.prototype.setExchangeId=function(t){return o.Message.setProto3IntField(this,21,t)},proto.protocol.Transaction.Result.prototype.getShieldedTransactionFee=function(){return o.Message.getFieldWithDefault(this,22,0)},proto.protocol.Transaction.Result.prototype.setShieldedTransactionFee=function(t){return o.Message.setProto3IntField(this,22,t)},proto.protocol.Transaction.Result.prototype.getOrderid=function(){return o.Message.getFieldWithDefault(this,25,"")},proto.protocol.Transaction.Result.prototype.getOrderid_asB64=function(){return o.Message.bytesAsB64(this.getOrderid())},proto.protocol.Transaction.Result.prototype.getOrderid_asU8=function(){return o.Message.bytesAsU8(this.getOrderid())},proto.protocol.Transaction.Result.prototype.setOrderid=function(t){return o.Message.setProto3BytesField(this,25,t)},proto.protocol.Transaction.Result.prototype.getOrderdetailsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.MarketOrderDetail,26)},proto.protocol.Transaction.Result.prototype.setOrderdetailsList=function(t){return o.Message.setRepeatedWrapperField(this,26,t)},proto.protocol.Transaction.Result.prototype.addOrderdetails=function(t,e){return o.Message.addToRepeatedWrapperField(this,26,t,proto.protocol.MarketOrderDetail,e)},proto.protocol.Transaction.Result.prototype.clearOrderdetailsList=function(){return this.setOrderdetailsList([])},proto.protocol.Transaction.raw.repeatedFields_=[9,11],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.Transaction.raw.prototype.toObject=function(t){return proto.protocol.Transaction.raw.toObject(t,this)},proto.protocol.Transaction.raw.toObject=function(t,e){var r={refBlockBytes:e.getRefBlockBytes_asB64(),refBlockNum:o.Message.getFieldWithDefault(e,3,0),refBlockHash:e.getRefBlockHash_asB64(),expiration:o.Message.getFieldWithDefault(e,8,0),authsList:o.Message.toObjectList(e.getAuthsList(),proto.protocol.authority.toObject,t),data:e.getData_asB64(),contractList:o.Message.toObjectList(e.getContractList(),proto.protocol.Transaction.Contract.toObject,t),scripts:e.getScripts_asB64(),timestamp:o.Message.getFieldWithDefault(e,14,0),feeLimit:o.Message.getFieldWithDefault(e,18,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.Transaction.raw.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.Transaction.raw;return proto.protocol.Transaction.raw.deserializeBinaryFromReader(r,e)},proto.protocol.Transaction.raw.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setRefBlockBytes(r);break;case 3:r=e.readInt64();t.setRefBlockNum(r);break;case 4:r=e.readBytes();t.setRefBlockHash(r);break;case 8:r=e.readInt64();t.setExpiration(r);break;case 9:r=new proto.protocol.authority;e.readMessage(r,proto.protocol.authority.deserializeBinaryFromReader),t.addAuths(r);break;case 10:r=e.readBytes();t.setData(r);break;case 11:r=new proto.protocol.Transaction.Contract;e.readMessage(r,proto.protocol.Transaction.Contract.deserializeBinaryFromReader),t.addContract(r);break;case 12:r=e.readBytes();t.setScripts(r);break;case 14:r=e.readInt64();t.setTimestamp(r);break;case 18:r=e.readInt64();t.setFeeLimit(r);break;default:e.skipField()}}return t},proto.protocol.Transaction.raw.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.Transaction.raw.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.Transaction.raw.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getRefBlockBytes_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getRefBlockNum())&&e.writeInt64(3,r),(r=t.getRefBlockHash_asU8()).length>0&&e.writeBytes(4,r),0!==(r=t.getExpiration())&&e.writeInt64(8,r),(r=t.getAuthsList()).length>0&&e.writeRepeatedMessage(9,r,proto.protocol.authority.serializeBinaryToWriter),(r=t.getData_asU8()).length>0&&e.writeBytes(10,r),(r=t.getContractList()).length>0&&e.writeRepeatedMessage(11,r,proto.protocol.Transaction.Contract.serializeBinaryToWriter),(r=t.getScripts_asU8()).length>0&&e.writeBytes(12,r),0!==(r=t.getTimestamp())&&e.writeInt64(14,r),0!==(r=t.getFeeLimit())&&e.writeInt64(18,r)},proto.protocol.Transaction.raw.prototype.getRefBlockBytes=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.Transaction.raw.prototype.getRefBlockBytes_asB64=function(){return o.Message.bytesAsB64(this.getRefBlockBytes())},proto.protocol.Transaction.raw.prototype.getRefBlockBytes_asU8=function(){return o.Message.bytesAsU8(this.getRefBlockBytes())},proto.protocol.Transaction.raw.prototype.setRefBlockBytes=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.Transaction.raw.prototype.getRefBlockNum=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.Transaction.raw.prototype.setRefBlockNum=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.Transaction.raw.prototype.getRefBlockHash=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.Transaction.raw.prototype.getRefBlockHash_asB64=function(){return o.Message.bytesAsB64(this.getRefBlockHash())},proto.protocol.Transaction.raw.prototype.getRefBlockHash_asU8=function(){return o.Message.bytesAsU8(this.getRefBlockHash())},proto.protocol.Transaction.raw.prototype.setRefBlockHash=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.Transaction.raw.prototype.getExpiration=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.Transaction.raw.prototype.setExpiration=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.Transaction.raw.prototype.getAuthsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.authority,9)},proto.protocol.Transaction.raw.prototype.setAuthsList=function(t){return o.Message.setRepeatedWrapperField(this,9,t)},proto.protocol.Transaction.raw.prototype.addAuths=function(t,e){return o.Message.addToRepeatedWrapperField(this,9,t,proto.protocol.authority,e)},proto.protocol.Transaction.raw.prototype.clearAuthsList=function(){return this.setAuthsList([])},proto.protocol.Transaction.raw.prototype.getData=function(){return o.Message.getFieldWithDefault(this,10,"")},proto.protocol.Transaction.raw.prototype.getData_asB64=function(){return o.Message.bytesAsB64(this.getData())},proto.protocol.Transaction.raw.prototype.getData_asU8=function(){return o.Message.bytesAsU8(this.getData())},proto.protocol.Transaction.raw.prototype.setData=function(t){return o.Message.setProto3BytesField(this,10,t)},proto.protocol.Transaction.raw.prototype.getContractList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Transaction.Contract,11)},proto.protocol.Transaction.raw.prototype.setContractList=function(t){return o.Message.setRepeatedWrapperField(this,11,t)},proto.protocol.Transaction.raw.prototype.addContract=function(t,e){return o.Message.addToRepeatedWrapperField(this,11,t,proto.protocol.Transaction.Contract,e)},proto.protocol.Transaction.raw.prototype.clearContractList=function(){return this.setContractList([])},proto.protocol.Transaction.raw.prototype.getScripts=function(){return o.Message.getFieldWithDefault(this,12,"")},proto.protocol.Transaction.raw.prototype.getScripts_asB64=function(){return o.Message.bytesAsB64(this.getScripts())},proto.protocol.Transaction.raw.prototype.getScripts_asU8=function(){return o.Message.bytesAsU8(this.getScripts())},proto.protocol.Transaction.raw.prototype.setScripts=function(t){return o.Message.setProto3BytesField(this,12,t)},proto.protocol.Transaction.raw.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,14,0)},proto.protocol.Transaction.raw.prototype.setTimestamp=function(t){return o.Message.setProto3IntField(this,14,t)},proto.protocol.Transaction.raw.prototype.getFeeLimit=function(){return o.Message.getFieldWithDefault(this,18,0)},proto.protocol.Transaction.raw.prototype.setFeeLimit=function(t){return o.Message.setProto3IntField(this,18,t)},proto.protocol.Transaction.prototype.getRawData=function(){return o.Message.getWrapperField(this,proto.protocol.Transaction.raw,1)},proto.protocol.Transaction.prototype.setRawData=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.Transaction.prototype.clearRawData=function(){return this.setRawData(void 0)},proto.protocol.Transaction.prototype.hasRawData=function(){return null!=o.Message.getField(this,1)},proto.protocol.Transaction.prototype.getSignatureList=function(){return o.Message.getRepeatedField(this,2)},proto.protocol.Transaction.prototype.getSignatureList_asB64=function(){return o.Message.bytesListAsB64(this.getSignatureList())},proto.protocol.Transaction.prototype.getSignatureList_asU8=function(){return o.Message.bytesListAsU8(this.getSignatureList())},proto.protocol.Transaction.prototype.setSignatureList=function(t){return o.Message.setField(this,2,t||[])},proto.protocol.Transaction.prototype.addSignature=function(t,e){return o.Message.addToRepeatedField(this,2,t,e)},proto.protocol.Transaction.prototype.clearSignatureList=function(){return this.setSignatureList([])},proto.protocol.Transaction.prototype.getRetList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.Transaction.Result,5)},proto.protocol.Transaction.prototype.setRetList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)},proto.protocol.Transaction.prototype.addRet=function(t,e){return o.Message.addToRepeatedWrapperField(this,5,t,proto.protocol.Transaction.Result,e)},proto.protocol.Transaction.prototype.clearRetList=function(){return this.setRetList([])},proto.protocol.AccountType={NORMAL:0,ASSETISSUE:1,CONTRACT:2},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=function(){return this||window||n||self||Function("return this")()}.call(null);o.exportSymbol("proto.protocol.ResourceCode",null,n),proto.protocol.ResourceCode={BANDWIDTH:0,ENERGY:1,TRON_POWER:2},o.object.extend(e,proto.protocol)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t)?parseFloat(t):NaN};var o,n=(o=r(93))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t),e=e||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(e.locale?i.decimal[e.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===t||"."===t||"-"===t||"+"===t)return!1;var o=parseFloat(t.replace(",","."));return r.test(t)&&(!e.hasOwnProperty("min")||o>=e.min)&&(!e.hasOwnProperty("max")||o<=e.max)&&(!e.hasOwnProperty("lt")||o<e.lt)&&(!e.hasOwnProperty("gt")||o>e.gt)},e.locales=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o},i=r(41);var a=Object.keys(i.decimal);e.locales=a},function(t,e,r){"use strict";function o(t){return(o="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){"object"===o(t)&&null!==t?t="function"==typeof t.toString?t.toString():"[object Object]":(null==t||isNaN(t)&&!t.length)&&(t="");return String(t)},t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r,o;(0,n.default)(t),"object"===i(e)?(r=e.min||0,o=e.max):(r=arguments[1],o=arguments[2]);var a=encodeURI(t).split(/%..|./).length-1;return a>=r&&(void 0===o||a<=o)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};function i(t){return(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})(t)}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){e="string"==typeof e?(0,n.default)({format:e},s):(0,n.default)(e,s);if("string"==typeof t&&(y=e.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(y))){var r,o=e.delimiters.find((function(t){return-1!==e.format.indexOf(t)})),a=e.strictMode?o:e.delimiters.find((function(e){return-1!==t.indexOf(e)})),c=function(t,e){for(var r=[],o=Math.min(t.length,e.length),n=0;n<o;n++)r.push([t[n],e[n]]);return r}(t.split(a),e.format.toLowerCase().split(o)),u={},l=function(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}(c);try{for(l.s();!(r=l.n()).done;){var d=(h=r.value,g=2,function(t){if(Array.isArray(t))return t}(h)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],o=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);o=!0);}catch(t){n=!0,i=t}finally{try{o||null==s.return||s.return()}finally{if(n)throw i}}return r}(h,g)||i(h,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1];if(p.length!==f.length)return!1;u[f.charAt(0)]=p}}catch(t){l.e(t)}finally{l.f()}return new Date("".concat(u.m,"/").concat(u.d,"/").concat(u.y)).getDate()===+u.d}var h,g;var y;if(!e.strictMode)return"[object Date]"===Object.prototype.toString.call(t)&&isFinite(t);return!1};var o,n=(o=r(21))&&o.__esModule?o:{default:o};function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var s={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)},e.fullWidth=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;e.fullWidth=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)},e.halfWidth=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;e.halfWidth=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(0x|0h)?[0-9A-F]+$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.has(t.toUpperCase())},e.CountryCodes=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var a=i;e.CountryCodes=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(t),e=(0,n.default)(e,c);var r=t.length;if(e.urlSafe)return s.test(t);if(r%4!=0||a.test(t))return!1;var i=t.indexOf("=");return-1===i||i===r-1||i===r-2&&"="===t[r-1]};var o=i(r(5)),n=i(r(21));function i(t){return t&&t.__esModule?t:{default:t}}var a=/[^A-Z0-9+\/=]/i,s=/^[A-Z0-9_\-]*$/i,c={urlSafe:!1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t);var r=e?new RegExp("^[".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return t.replace(r,"")};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),e){var r=new RegExp("[".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return t.replace(r,"")}var o=t.length-1;for(;/\s/.test(t.charAt(o));)o-=1;return t.slice(0,o+1)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(t),t.replace(new RegExp("[".concat(e,"]+"),"g"),"")};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){var o=r(122);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var o=r(22).default,n=r(35);t.exports=function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(124)},function(t,e,r){(function(t){!function(t,e){"use strict";function o(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(164).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void o(!1,"Invalid character in "+t)}function c(t,e,r){var o=s(t,r);return r-1>=e&&(o|=s(t,r-1)<<4),o}function u(t,e,r,n){for(var i=0,a=0,s=Math.min(t.length,r),c=e;c<s;c++){var u=t.charCodeAt(c)-48;i*=n,a=u>=49?u-49+10:u>=17?u-17+10:u,o(u>=0&&a<n,"Invalid character"),i+=a}return i}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),o(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===e?this._parseHex(t,n,r):(this._parseBase(t,e,n),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(o(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(o("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a,s=0;if("be"===r)for(n=t.length-1,i=0;n>=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(n=0,i=0;n<t.length;n+=3)a=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var n,i=0,a=0;if("be"===r)for(o=t.length-1;o>=e;o-=2)n=c(t,e,o)<<i,this.words[a]|=67108863&n,i>=18?(i-=18,a+=1,this.words[a]|=n>>>26):i+=8;else for(o=(t.length-e)%2==0?e+1:e;o<t.length;o+=2)n=c(t,e,o)<<i,this.words[a]|=67108863&n,i>=18?(i-=18,a+=1,this.words[a]|=n>>>26):i+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var o=0,n=1;n<=67108863;n*=e)o++;o--,n=n/e|0;for(var i=t.length-r,a=i%o,s=Math.min(i,i-a)+r,c=0,l=r;l<s;l+=o)c=u(t,l,l+o,e),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=u(t,l,t.length,e),l=0;l<a;l++)d*=e;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){l(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(t){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,i=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<n|i)).toString(16);i=s>>>24-n&16777215,(n+=2)>=26&&(n-=26,a--),r=0!==i||a!==this.length-1?p[6-c.length]+c+r:c+r}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=f[t],l=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(l).toString(t);r=(d=d.idivn(l)).isZero()?g+r:p[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}o(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function g(t,e,r){r.negative=e.negative^t.negative;var o=t.length+e.length|0;r.length=o,o=o-1|0;var n=0|t.words[0],i=0|e.words[0],a=n*i,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u<o;u++){for(var l=c>>>26,d=67108863&c,p=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=p;f++){var h=u-f|0;l+=(a=(n=0|t.words[h])*(i=0|e.words[f])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);o(n<=i,"byte array longer than desired length"),o(i>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,i);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,n),a},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,o=0,n=0,i=0;n<this.length;n++){var a=this.words[n]<<i|o;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===i?(r<t.length&&(t[r++]=a>>24&255),o=0,i=0):(o=a>>>24,i+=2)}if(r<t.length)for(t[r++]=o;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,o=0,n=0,i=0;n<this.length;n++){var a=this.words[n]<<i|o;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===i?(r>=0&&(t[r--]=a>>24&255),o=0,i=0):(o=a>>>24,i+=2)}if(r>=0)for(t[r--]=o;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return o(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return o(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var o=0;o<r.length;o++)this.words[o]=e.words[o]^r.words[o];if(this!==e)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return o(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){o("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n<e;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){o("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<n:this.words[r]&~(1<<n),this._strip()},i.prototype.iadd=function(t){var e,r,o;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,o=t):(r=t,o=this);for(var n=0,i=0;i<o.length;i++)e=(0|r.words[i])+(0|o.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<r.length;i++)e=(0|r.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,o,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(r=this,o=t):(r=t,o=this);for(var i=0,a=0;a<o.length;a++)i=(e=(0|r.words[a])-(0|o.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var y=function(t,e,r){var o,n,i,a=t.words,s=e.words,c=r.words,u=0,l=0|a[0],d=8191&l,p=l>>>13,f=0|a[1],h=8191&f,g=f>>>13,y=0|a[2],m=8191&y,b=y>>>13,v=0|a[3],A=8191&v,w=v>>>13,M=0|a[4],B=8191&M,C=M>>>13,E=0|a[5],S=8191&E,I=E>>>13,O=0|a[6],T=8191&O,_=O>>>13,x=0|a[7],F=8191&x,P=x>>>13,k=0|a[8],R=8191&k,N=k>>>13,D=0|a[9],j=8191&D,W=D>>>13,U=0|s[0],z=8191&U,L=U>>>13,V=0|s[1],G=8191&V,H=V>>>13,K=0|s[2],q=8191&K,$=K>>>13,Z=0|s[3],J=8191&Z,Y=Z>>>13,Q=0|s[4],X=8191&Q,tt=Q>>>13,et=0|s[5],rt=8191&et,ot=et>>>13,nt=0|s[6],it=8191&nt,at=nt>>>13,st=0|s[7],ct=8191&st,ut=st>>>13,lt=0|s[8],dt=8191&lt,pt=lt>>>13,ft=0|s[9],ht=8191&ft,gt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(u+(o=Math.imul(d,z))|0)+((8191&(n=(n=Math.imul(d,L))+Math.imul(p,z)|0))<<13)|0;u=((i=Math.imul(p,L))+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,o=Math.imul(h,z),n=(n=Math.imul(h,L))+Math.imul(g,z)|0,i=Math.imul(g,L);var mt=(u+(o=o+Math.imul(d,G)|0)|0)+((8191&(n=(n=n+Math.imul(d,H)|0)+Math.imul(p,G)|0))<<13)|0;u=((i=i+Math.imul(p,H)|0)+(n>>>13)|0)+(mt>>>26)|0,mt&=67108863,o=Math.imul(m,z),n=(n=Math.imul(m,L))+Math.imul(b,z)|0,i=Math.imul(b,L),o=o+Math.imul(h,G)|0,n=(n=n+Math.imul(h,H)|0)+Math.imul(g,G)|0,i=i+Math.imul(g,H)|0;var bt=(u+(o=o+Math.imul(d,q)|0)|0)+((8191&(n=(n=n+Math.imul(d,$)|0)+Math.imul(p,q)|0))<<13)|0;u=((i=i+Math.imul(p,$)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,o=Math.imul(A,z),n=(n=Math.imul(A,L))+Math.imul(w,z)|0,i=Math.imul(w,L),o=o+Math.imul(m,G)|0,n=(n=n+Math.imul(m,H)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(h,q)|0,n=(n=n+Math.imul(h,$)|0)+Math.imul(g,q)|0,i=i+Math.imul(g,$)|0;var vt=(u+(o=o+Math.imul(d,J)|0)|0)+((8191&(n=(n=n+Math.imul(d,Y)|0)+Math.imul(p,J)|0))<<13)|0;u=((i=i+Math.imul(p,Y)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,o=Math.imul(B,z),n=(n=Math.imul(B,L))+Math.imul(C,z)|0,i=Math.imul(C,L),o=o+Math.imul(A,G)|0,n=(n=n+Math.imul(A,H)|0)+Math.imul(w,G)|0,i=i+Math.imul(w,H)|0,o=o+Math.imul(m,q)|0,n=(n=n+Math.imul(m,$)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,$)|0,o=o+Math.imul(h,J)|0,n=(n=n+Math.imul(h,Y)|0)+Math.imul(g,J)|0,i=i+Math.imul(g,Y)|0;var At=(u+(o=o+Math.imul(d,X)|0)|0)+((8191&(n=(n=n+Math.imul(d,tt)|0)+Math.imul(p,X)|0))<<13)|0;u=((i=i+Math.imul(p,tt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,o=Math.imul(S,z),n=(n=Math.imul(S,L))+Math.imul(I,z)|0,i=Math.imul(I,L),o=o+Math.imul(B,G)|0,n=(n=n+Math.imul(B,H)|0)+Math.imul(C,G)|0,i=i+Math.imul(C,H)|0,o=o+Math.imul(A,q)|0,n=(n=n+Math.imul(A,$)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,$)|0,o=o+Math.imul(m,J)|0,n=(n=n+Math.imul(m,Y)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,Y)|0,o=o+Math.imul(h,X)|0,n=(n=n+Math.imul(h,tt)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,tt)|0;var wt=(u+(o=o+Math.imul(d,rt)|0)|0)+((8191&(n=(n=n+Math.imul(d,ot)|0)+Math.imul(p,rt)|0))<<13)|0;u=((i=i+Math.imul(p,ot)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,o=Math.imul(T,z),n=(n=Math.imul(T,L))+Math.imul(_,z)|0,i=Math.imul(_,L),o=o+Math.imul(S,G)|0,n=(n=n+Math.imul(S,H)|0)+Math.imul(I,G)|0,i=i+Math.imul(I,H)|0,o=o+Math.imul(B,q)|0,n=(n=n+Math.imul(B,$)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,$)|0,o=o+Math.imul(A,J)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,Y)|0,o=o+Math.imul(m,X)|0,n=(n=n+Math.imul(m,tt)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,tt)|0,o=o+Math.imul(h,rt)|0,n=(n=n+Math.imul(h,ot)|0)+Math.imul(g,rt)|0,i=i+Math.imul(g,ot)|0;var Mt=(u+(o=o+Math.imul(d,it)|0)|0)+((8191&(n=(n=n+Math.imul(d,at)|0)+Math.imul(p,it)|0))<<13)|0;u=((i=i+Math.imul(p,at)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,o=Math.imul(F,z),n=(n=Math.imul(F,L))+Math.imul(P,z)|0,i=Math.imul(P,L),o=o+Math.imul(T,G)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(_,G)|0,i=i+Math.imul(_,H)|0,o=o+Math.imul(S,q)|0,n=(n=n+Math.imul(S,$)|0)+Math.imul(I,q)|0,i=i+Math.imul(I,$)|0,o=o+Math.imul(B,J)|0,n=(n=n+Math.imul(B,Y)|0)+Math.imul(C,J)|0,i=i+Math.imul(C,Y)|0,o=o+Math.imul(A,X)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,tt)|0,o=o+Math.imul(m,rt)|0,n=(n=n+Math.imul(m,ot)|0)+Math.imul(b,rt)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(h,it)|0,n=(n=n+Math.imul(h,at)|0)+Math.imul(g,it)|0,i=i+Math.imul(g,at)|0;var Bt=(u+(o=o+Math.imul(d,ct)|0)|0)+((8191&(n=(n=n+Math.imul(d,ut)|0)+Math.imul(p,ct)|0))<<13)|0;u=((i=i+Math.imul(p,ut)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,o=Math.imul(R,z),n=(n=Math.imul(R,L))+Math.imul(N,z)|0,i=Math.imul(N,L),o=o+Math.imul(F,G)|0,n=(n=n+Math.imul(F,H)|0)+Math.imul(P,G)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(T,q)|0,n=(n=n+Math.imul(T,$)|0)+Math.imul(_,q)|0,i=i+Math.imul(_,$)|0,o=o+Math.imul(S,J)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(I,J)|0,i=i+Math.imul(I,Y)|0,o=o+Math.imul(B,X)|0,n=(n=n+Math.imul(B,tt)|0)+Math.imul(C,X)|0,i=i+Math.imul(C,tt)|0,o=o+Math.imul(A,rt)|0,n=(n=n+Math.imul(A,ot)|0)+Math.imul(w,rt)|0,i=i+Math.imul(w,ot)|0,o=o+Math.imul(m,it)|0,n=(n=n+Math.imul(m,at)|0)+Math.imul(b,it)|0,i=i+Math.imul(b,at)|0,o=o+Math.imul(h,ct)|0,n=(n=n+Math.imul(h,ut)|0)+Math.imul(g,ct)|0,i=i+Math.imul(g,ut)|0;var Ct=(u+(o=o+Math.imul(d,dt)|0)|0)+((8191&(n=(n=n+Math.imul(d,pt)|0)+Math.imul(p,dt)|0))<<13)|0;u=((i=i+Math.imul(p,pt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,o=Math.imul(j,z),n=(n=Math.imul(j,L))+Math.imul(W,z)|0,i=Math.imul(W,L),o=o+Math.imul(R,G)|0,n=(n=n+Math.imul(R,H)|0)+Math.imul(N,G)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(F,q)|0,n=(n=n+Math.imul(F,$)|0)+Math.imul(P,q)|0,i=i+Math.imul(P,$)|0,o=o+Math.imul(T,J)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,Y)|0,o=o+Math.imul(S,X)|0,n=(n=n+Math.imul(S,tt)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,o=o+Math.imul(B,rt)|0,n=(n=n+Math.imul(B,ot)|0)+Math.imul(C,rt)|0,i=i+Math.imul(C,ot)|0,o=o+Math.imul(A,it)|0,n=(n=n+Math.imul(A,at)|0)+Math.imul(w,it)|0,i=i+Math.imul(w,at)|0,o=o+Math.imul(m,ct)|0,n=(n=n+Math.imul(m,ut)|0)+Math.imul(b,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(h,dt)|0,n=(n=n+Math.imul(h,pt)|0)+Math.imul(g,dt)|0,i=i+Math.imul(g,pt)|0;var Et=(u+(o=o+Math.imul(d,ht)|0)|0)+((8191&(n=(n=n+Math.imul(d,gt)|0)+Math.imul(p,ht)|0))<<13)|0;u=((i=i+Math.imul(p,gt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,o=Math.imul(j,G),n=(n=Math.imul(j,H))+Math.imul(W,G)|0,i=Math.imul(W,H),o=o+Math.imul(R,q)|0,n=(n=n+Math.imul(R,$)|0)+Math.imul(N,q)|0,i=i+Math.imul(N,$)|0,o=o+Math.imul(F,J)|0,n=(n=n+Math.imul(F,Y)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,Y)|0,o=o+Math.imul(T,X)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,o=o+Math.imul(S,rt)|0,n=(n=n+Math.imul(S,ot)|0)+Math.imul(I,rt)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(B,it)|0,n=(n=n+Math.imul(B,at)|0)+Math.imul(C,it)|0,i=i+Math.imul(C,at)|0,o=o+Math.imul(A,ct)|0,n=(n=n+Math.imul(A,ut)|0)+Math.imul(w,ct)|0,i=i+Math.imul(w,ut)|0,o=o+Math.imul(m,dt)|0,n=(n=n+Math.imul(m,pt)|0)+Math.imul(b,dt)|0,i=i+Math.imul(b,pt)|0;var St=(u+(o=o+Math.imul(h,ht)|0)|0)+((8191&(n=(n=n+Math.imul(h,gt)|0)+Math.imul(g,ht)|0))<<13)|0;u=((i=i+Math.imul(g,gt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,o=Math.imul(j,q),n=(n=Math.imul(j,$))+Math.imul(W,q)|0,i=Math.imul(W,$),o=o+Math.imul(R,J)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(N,J)|0,i=i+Math.imul(N,Y)|0,o=o+Math.imul(F,X)|0,n=(n=n+Math.imul(F,tt)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,tt)|0,o=o+Math.imul(T,rt)|0,n=(n=n+Math.imul(T,ot)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(S,it)|0,n=(n=n+Math.imul(S,at)|0)+Math.imul(I,it)|0,i=i+Math.imul(I,at)|0,o=o+Math.imul(B,ct)|0,n=(n=n+Math.imul(B,ut)|0)+Math.imul(C,ct)|0,i=i+Math.imul(C,ut)|0,o=o+Math.imul(A,dt)|0,n=(n=n+Math.imul(A,pt)|0)+Math.imul(w,dt)|0,i=i+Math.imul(w,pt)|0;var It=(u+(o=o+Math.imul(m,ht)|0)|0)+((8191&(n=(n=n+Math.imul(m,gt)|0)+Math.imul(b,ht)|0))<<13)|0;u=((i=i+Math.imul(b,gt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,o=Math.imul(j,J),n=(n=Math.imul(j,Y))+Math.imul(W,J)|0,i=Math.imul(W,Y),o=o+Math.imul(R,X)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(N,X)|0,i=i+Math.imul(N,tt)|0,o=o+Math.imul(F,rt)|0,n=(n=n+Math.imul(F,ot)|0)+Math.imul(P,rt)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(T,it)|0,n=(n=n+Math.imul(T,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,o=o+Math.imul(S,ct)|0,n=(n=n+Math.imul(S,ut)|0)+Math.imul(I,ct)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(B,dt)|0,n=(n=n+Math.imul(B,pt)|0)+Math.imul(C,dt)|0,i=i+Math.imul(C,pt)|0;var Ot=(u+(o=o+Math.imul(A,ht)|0)|0)+((8191&(n=(n=n+Math.imul(A,gt)|0)+Math.imul(w,ht)|0))<<13)|0;u=((i=i+Math.imul(w,gt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,o=Math.imul(j,X),n=(n=Math.imul(j,tt))+Math.imul(W,X)|0,i=Math.imul(W,tt),o=o+Math.imul(R,rt)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(N,rt)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(F,it)|0,n=(n=n+Math.imul(F,at)|0)+Math.imul(P,it)|0,i=i+Math.imul(P,at)|0,o=o+Math.imul(T,ct)|0,n=(n=n+Math.imul(T,ut)|0)+Math.imul(_,ct)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(S,dt)|0,n=(n=n+Math.imul(S,pt)|0)+Math.imul(I,dt)|0,i=i+Math.imul(I,pt)|0;var Tt=(u+(o=o+Math.imul(B,ht)|0)|0)+((8191&(n=(n=n+Math.imul(B,gt)|0)+Math.imul(C,ht)|0))<<13)|0;u=((i=i+Math.imul(C,gt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,o=Math.imul(j,rt),n=(n=Math.imul(j,ot))+Math.imul(W,rt)|0,i=Math.imul(W,ot),o=o+Math.imul(R,it)|0,n=(n=n+Math.imul(R,at)|0)+Math.imul(N,it)|0,i=i+Math.imul(N,at)|0,o=o+Math.imul(F,ct)|0,n=(n=n+Math.imul(F,ut)|0)+Math.imul(P,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(T,dt)|0,n=(n=n+Math.imul(T,pt)|0)+Math.imul(_,dt)|0,i=i+Math.imul(_,pt)|0;var _t=(u+(o=o+Math.imul(S,ht)|0)|0)+((8191&(n=(n=n+Math.imul(S,gt)|0)+Math.imul(I,ht)|0))<<13)|0;u=((i=i+Math.imul(I,gt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,o=Math.imul(j,it),n=(n=Math.imul(j,at))+Math.imul(W,it)|0,i=Math.imul(W,at),o=o+Math.imul(R,ct)|0,n=(n=n+Math.imul(R,ut)|0)+Math.imul(N,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(F,dt)|0,n=(n=n+Math.imul(F,pt)|0)+Math.imul(P,dt)|0,i=i+Math.imul(P,pt)|0;var xt=(u+(o=o+Math.imul(T,ht)|0)|0)+((8191&(n=(n=n+Math.imul(T,gt)|0)+Math.imul(_,ht)|0))<<13)|0;u=((i=i+Math.imul(_,gt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,o=Math.imul(j,ct),n=(n=Math.imul(j,ut))+Math.imul(W,ct)|0,i=Math.imul(W,ut),o=o+Math.imul(R,dt)|0,n=(n=n+Math.imul(R,pt)|0)+Math.imul(N,dt)|0,i=i+Math.imul(N,pt)|0;var Ft=(u+(o=o+Math.imul(F,ht)|0)|0)+((8191&(n=(n=n+Math.imul(F,gt)|0)+Math.imul(P,ht)|0))<<13)|0;u=((i=i+Math.imul(P,gt)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,o=Math.imul(j,dt),n=(n=Math.imul(j,pt))+Math.imul(W,dt)|0,i=Math.imul(W,pt);var Pt=(u+(o=o+Math.imul(R,ht)|0)|0)+((8191&(n=(n=n+Math.imul(R,gt)|0)+Math.imul(N,ht)|0))<<13)|0;u=((i=i+Math.imul(N,gt)|0)+(n>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var kt=(u+(o=Math.imul(j,ht))|0)+((8191&(n=(n=Math.imul(j,gt))+Math.imul(W,ht)|0))<<13)|0;return u=((i=Math.imul(W,gt))+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,c[0]=yt,c[1]=mt,c[2]=bt,c[3]=vt,c[4]=At,c[5]=wt,c[6]=Mt,c[7]=Bt,c[8]=Ct,c[9]=Et,c[10]=St,c[11]=It,c[12]=Ot,c[13]=Tt,c[14]=_t,c[15]=xt,c[16]=Ft,c[17]=Pt,c[18]=kt,0!==u&&(c[19]=u,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var o=0,n=0,i=0;i<r.length-1;i++){var a=n;n=0;for(var s=67108863&o,c=Math.min(i,e.length-1),u=Math.max(0,i-t.length+1);u<=c;u++){var l=i-u,d=(0|t.words[l])*(0|e.words[u]),p=67108863&d;s=67108863&(p=p+s|0),n+=(a=(a=a+(d/67108864|0)|0)+(p>>>26)|0)>>>26,a&=67108863}r.words[i]=s,o=a,a=n}return 0!==o?r.words[i]=o:r.length--,r._strip()}function b(t,e,r){return m(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(y=g),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):r<63?g(this,t,e):r<1024?m(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,o=0;o<t;o++)e[o]=this.revBin(o,r,t);return e},v.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var o=0,n=0;n<e;n++)o|=(1&t)<<e-n-1,t>>=1;return o},v.prototype.permute=function(t,e,r,o,n,i){for(var a=0;a<i;a++)o[a]=e[t[a]],n[a]=r[t[a]]},v.prototype.transform=function(t,e,r,o,n,i){this.permute(i,t,e,r,o,n);for(var a=1;a<n;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<n;l+=s)for(var d=c,p=u,f=0;f<a;f++){var h=r[l+f],g=o[l+f],y=r[l+f+a],m=o[l+f+a],b=d*y-p*m;m=d*m+p*y,y=b,r[l+f]=h+y,o[l+f]=g+m,r[l+f+a]=h-y,o[l+f+a]=g-m,f!==s&&(b=c*d-u*p,p=c*p+u*d,d=b)}},v.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),o=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+o},v.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var o=0;o<r/2;o++){var n=t[o];t[o]=t[r-o-1],t[r-o-1]=n,n=e[o],e[o]=-e[r-o-1],e[r-o-1]=-n}},v.prototype.normalize13b=function(t,e){for(var r=0,o=0;o<e/2;o++){var n=8192*Math.round(t[2*o+1]/e)+Math.round(t[2*o]/e)+r;t[o]=67108863&n,r=n<67108864?0:n/67108864|0}return t},v.prototype.convert13b=function(t,e,r,n){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<n;++a)r[a]=0;o(0===i),o(0==(-8192&i))},v.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},v.prototype.mulp=function(t,e,r){var o=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(o),i=this.stub(o),a=new Array(o),s=new Array(o),c=new Array(o),u=new Array(o),l=new Array(o),d=new Array(o),p=r.words;p.length=o,this.convert13b(t.words,t.length,a,o),this.convert13b(e.words,e.length,u,o),this.transform(a,i,s,c,o,n),this.transform(u,i,l,d,o,n);for(var f=0;f<o;f++){var h=s[f]*l[f]-c[f]*d[f];c[f]=s[f]*d[f]+c[f]*l[f],s[f]=h}return this.conjugate(s,c,o),this.transform(s,c,p,i,o,n),this.conjugate(p,i,o),this.normalize13b(p,o),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),b(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),o("number"==typeof t),o(t<67108864);for(var r=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,a=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=a>>>26,this.words[n]=67108863&a}return 0!==r&&(this.words[n]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var o=r/26|0,n=r%26;e[r]=t.words[o]>>>n&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,o=0;o<e.length&&0===e[o];o++,r=r.sqr());if(++o<e.length)for(var n=r.sqr();o<e.length;o++,n=n.sqr())0!==e[o]&&(r=r.mul(n));return r},i.prototype.iushln=function(t){o("number"==typeof t&&t>=0);var e,r=t%26,n=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,c=(0|this.words[e])-s<<r;this.words[e]=c|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e<n;e++)this.words[e]=0;this.length+=n}return this._strip()},i.prototype.ishln=function(t){return o(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var n;o("number"==typeof t&&t>=0),n=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,c=r;if(n-=a,n=Math.max(0,n),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=n);u--){var d=0|this.words[u];this.words[u]=l<<26-i|d>>>i,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return o(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){o("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<<e;return!(this.length<=r)&&!!(this.words[r]&n)},i.prototype.imaskn=function(t){o("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(o(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<<e;this.words[this.length-1]&=n}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return o("number"==typeof t),o(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(o("number"==typeof t),o(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var n,i,a=t.length+r;this._expand(a);var s=0;for(n=0;n<t.length;n++){i=(0|this.words[n+r])+s;var c=(0|t.words[n])*e;s=((i-=67108863&c)>>26)-(c/67108864|0),this.words[n+r]=67108863&i}for(;n<this.length-r;n++)s=(i=(0|this.words[n+r])+s)>>26,this.words[n+r]=67108863&i;if(0===s)return this._strip();for(o(-1===s),s=0,n=0;n<this.length;n++)s=(i=-(0|this.words[n])+s)>>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),o=this.clone(),n=t,a=0|n.words[n.length-1];0!==(r=26-this._countBits(a))&&(n=n.ushln(r),o.iushln(r),a=0|n.words[n.length-1]);var s,c=o.length-n.length;if("mod"!==e){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=o.clone()._ishlnsubmul(n,1,c);0===l.negative&&(o=l,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var p=67108864*(0|o.words[n.length+d])+(0|o.words[n.length+d-1]);for(p=Math.min(p/a|0,67108863),o._ishlnsubmul(n,p,d);0!==o.negative;)p--,o.negative=0,o._ishlnsubmul(n,1,d),o.isZero()||(o.negative^=1);s&&(s.words[d]=p)}return s&&s._strip(),o._strip(),"div"!==e&&0!==r&&o.iushrn(r),{div:s||null,mod:o}},i.prototype.divmod=function(t,e,r){return o(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:n,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var n,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,o=t.ushrn(1),n=t.andln(1),i=r.cmp(o);return i<0||1===n&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),o(t<=67108863);for(var r=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%t;return e?-n:n},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),o(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/t|0,r=i%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){o(0===t.negative),o(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new i(1),a=new i(0),s=new i(0),c=new i(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=e.clone();!e.isZero();){for(var p=0,f=1;0==(e.words[0]&f)&&p<26;++p,f<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(l),a.isub(d)),n.iushrn(1),a.iushrn(1);for(var h=0,g=1;0==(r.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(r.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),a.isub(c)):(r.isub(e),s.isub(n),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(t){o(0===t.negative),o(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,a=new i(1),s=new i(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,p=1;0==(r.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(n=0===e.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(t),n},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var o=0;e.isEven()&&r.isEven();o++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=e.cmp(r);if(n<0){var i=e;e=r,r=i}else if(0===n||0===r.cmpn(1))break;e.isub(r)}return r.iushln(o)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){o("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var i=n,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),o(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:n<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var o=0|this.words[r],n=0|t.words[r];if(o!==n){o<n?e=-1:o>n&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new S(t)},i.prototype.toRed=function(t){return o(!this.red,"Already a number in reduction context"),o(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return o(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return o(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else o(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var o=e<this.n?-1:r.ucmp(this.p);return 0===o?(r.words[0]=0,r.length=1):o>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(M,w),M.prototype.split=function(t,e){for(var r=Math.min(t.length,9),o=0;o<r;o++)e.words[o]=t.words[o];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var n=t.words[9];for(e.words[e.length++]=4194303&n,o=10;o<t.length;o++){var i=0|t.words[o];t.words[o-10]=(4194303&i)<<4|n>>>22,n=i}n>>>=22,t.words[o-10]=n,0===n&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var o=0|t.words[r];e+=977*o,t.words[r]=67108863&e,e=64*o+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(B,w),n(C,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var o=19*(0|t.words[r])+e,n=67108863&o;o>>>=26,t.words[r]=n,e=o}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(A[t])return A[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new B;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return A[t]=e,e},S.prototype._verify1=function(t){o(0===t.negative,"red works only with positives"),o(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){o(0==(t.negative|e.negative),"red works only with positives"),o(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(o(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);o(!n.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,n),p=this.pow(t,n.addn(1).iushrn(1)),f=this.pow(t,n),h=a;0!==f.cmp(s);){for(var g=f,y=0;0!==g.cmp(s);y++)g=g.redSqr();o(y<h);var m=this.pow(d,new i(1).iushln(h-y-1));p=p.redMul(m),d=m.redSqr(),f=f.redMul(d),h=y}return p},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var o=2;o<r.length;o++)r[o]=this.mul(r[o-1],t);var n=r[0],a=0,s=0,c=e.bitLength()%26;for(0===c&&(c=26),o=e.length-1;o>=0;o--){for(var u=e.words[o],l=c-1;l>=0;l--){var d=u>>l&1;n!==r[0]&&(n=this.sqr(n)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===o&&0===l)&&(n=this.mul(n,r[a]),s=0,a=0)):s=0}c=26}return n},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new I(t)},n(I,S),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),o=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(o).iushrn(this.shift),i=n;return n.cmp(this.m)>=0?i=n.isub(this.m):n.cmpn(0)<0&&(i=n.iadd(this.m)),i._forceRed(this)},I.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),o=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(o).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(57)(t))},function(t,e,r){(function(o,n){var i;
/**
 * [js-sha3]{@link https://github.com/emn178/js-sha3}
 *
 * @version 0.8.0
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2015-2018
 * @license MIT
 */!function(){"use strict";var a="input is invalid type",s="object"==typeof window,c=s?window:{};c.JS_SHA3_NO_WINDOW&&(s=!1);var u=!s&&"object"==typeof self;!c.JS_SHA3_NO_NODE_JS&&"object"==typeof o&&o.versions&&o.versions.node?c=n:u&&(c=self);var l=!c.JS_SHA3_NO_COMMON_JS&&"object"==typeof t&&t.exports,d=r(165),p=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,f="0123456789abcdef".split(""),h=[4,1024,262144,67108864],g=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],b=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],A={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!p||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var w=function(t,e,r){return function(o){return new N(t,e,t).update(o)[r]()}},M=function(t,e,r){return function(o,n){return new N(t,e,n).update(o)[r]()}},B=function(t,e,r){return function(e,o,n,i){return O["cshake"+t].update(e,o,n,i)[r]()}},C=function(t,e,r){return function(e,o,n,i){return O["kmac"+t].update(e,o,n,i)[r]()}},E=function(t,e,r,o){for(var n=0;n<v.length;++n){var i=v[n];t[i]=e(r,o,i)}return t},S=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new N(t,e,t)},r.update=function(t){return r.create().update(t)},E(r,w,t,e)},I=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:S},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:S},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new N(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},E(r,M,t,e)}},{name:"cshake",padding:h,bits:b,createMethod:function(t,e){var r=A[t],o=B(t,0,"hex");return o.create=function(o,n,i){return n||i?new N(t,e,o).bytepad([n,i],r):O["shake"+t].create(o)},o.update=function(t,e,r,n){return o.create(e,r,n).update(t)},E(o,B,t,e)}},{name:"kmac",padding:h,bits:b,createMethod:function(t,e){var r=A[t],o=C(t,0,"hex");return o.create=function(o,n,i){return new D(t,e,n).bytepad(["KMAC",i],r).bytepad([o],r)},o.update=function(t,e,r,n){return o.create(t,r,n).update(e)},E(o,C,t,e)}}],O={},T=[],_=0;_<I.length;++_)for(var x=I[_],F=x.bits,P=0;P<F.length;++P){var k=x.name+"_"+F[P];if(T.push(k),O[k]=x.createMethod(F[P],x.padding),"sha3"!==x.name){var R=x.name+F[P];T.push(R),O[R]=O[k]}}function N(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var o=0;o<50;++o)this.s[o]=0}function D(t,e,r){N.call(this,t,e,r)}N.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(a);if(null===t)throw new Error(a);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||p&&ArrayBuffer.isView(t)))throw new Error(a);e=!0}for(var o,n,i=this.blocks,s=this.byteCount,c=t.length,u=this.blockCount,l=0,d=this.s;l<c;){if(this.reset)for(this.reset=!1,i[0]=this.block,o=1;o<u+1;++o)i[o]=0;if(e)for(o=this.start;l<c&&o<s;++l)i[o>>2]|=t[l]<<g[3&o++];else for(o=this.start;l<c&&o<s;++l)(n=t.charCodeAt(l))<128?i[o>>2]|=n<<g[3&o++]:n<2048?(i[o>>2]|=(192|n>>6)<<g[3&o++],i[o>>2]|=(128|63&n)<<g[3&o++]):n<55296||n>=57344?(i[o>>2]|=(224|n>>12)<<g[3&o++],i[o>>2]|=(128|n>>6&63)<<g[3&o++],i[o>>2]|=(128|63&n)<<g[3&o++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++l)),i[o>>2]|=(240|n>>18)<<g[3&o++],i[o>>2]|=(128|n>>12&63)<<g[3&o++],i[o>>2]|=(128|n>>6&63)<<g[3&o++],i[o>>2]|=(128|63&n)<<g[3&o++]);if(this.lastByteIndex=o,o>=s){for(this.start=o-s,this.block=i[u],o=0;o<u;++o)d[o]^=i[o];j(d),this.reset=!0}else this.start=o}return this},N.prototype.encode=function(t,e){var r=255&t,o=1,n=[r];for(r=255&(t>>=8);r>0;)n.unshift(r),r=255&(t>>=8),++o;return e?n.push(o):n.unshift(o),this.update(n),n.length},N.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(a);if(null===t)throw new Error(a);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||p&&ArrayBuffer.isView(t)))throw new Error(a);e=!0}var o=0,n=t.length;if(e)o=n;else for(var i=0;i<t.length;++i){var s=t.charCodeAt(i);s<128?o+=1:s<2048?o+=2:s<55296||s>=57344?o+=3:(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),o+=4)}return o+=this.encode(8*o),this.update(t),o},N.prototype.bytepad=function(t,e){for(var r=this.encode(e),o=0;o<t.length;++o)r+=this.encodeString(t[o]);var n=e-r%e,i=[];return i.length=n,this.update(i),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,o=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)o[e]^=t[e];j(o)}},N.prototype.toString=N.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,o=this.outputBlocks,n=this.extraBytes,i=0,a=0,s="";a<o;){for(i=0;i<e&&a<o;++i,++a)t=r[i],s+=f[t>>4&15]+f[15&t]+f[t>>12&15]+f[t>>8&15]+f[t>>20&15]+f[t>>16&15]+f[t>>28&15]+f[t>>24&15];a%e==0&&(j(r),i=0)}return n&&(t=r[i],s+=f[t>>4&15]+f[15&t],n>1&&(s+=f[t>>12&15]+f[t>>8&15]),n>2&&(s+=f[t>>20&15]+f[t>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,o=this.outputBlocks,n=this.extraBytes,i=0,a=0,s=this.outputBits>>3;t=n?new ArrayBuffer(o+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(t);a<o;){for(i=0;i<e&&a<o;++i,++a)c[a]=r[i];a%e==0&&j(r)}return n&&(c[i]=r[i],t=t.slice(0,s)),t},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.digest=N.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,o=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,s=0,c=[];s<n;){for(a=0;a<r&&s<n;++a,++s)t=s<<2,e=o[a],c[t]=255&e,c[t+1]=e>>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;s%r==0&&j(o)}return i&&(t=s<<2,e=o[a],c[t]=255&e,i>1&&(c[t+1]=e>>8&255),i>2&&(c[t+2]=e>>16&255)),c},D.prototype=new N,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var j=function(t){var e,r,o,n,i,a,s,c,u,l,d,p,f,h,g,m,b,v,A,w,M,B,C,E,S,I,O,T,_,x,F,P,k,R,N,D,j,W,U,z,L,V,G,H,K,q,$,Z,J,Y,Q,X,tt,et,rt,ot,nt,it,at,st,ct,ut,lt;for(o=0;o<48;o+=2)n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(p=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(f=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=n^(c<<1|u>>>31),r=i^(u<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(l<<1|d>>>31),r=s^(d<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(p<<1|f>>>31),r=u^(f<<1|p>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(n<<1|i>>>31),r=d^(i<<1|n>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,h=t[0],g=t[1],q=t[11]<<4|t[10]>>>28,$=t[10]<<4|t[11]>>>28,T=t[20]<<3|t[21]>>>29,_=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,V=t[40]<<18|t[41]>>>14,G=t[41]<<18|t[40]>>>14,R=t[2]<<1|t[3]>>>31,N=t[3]<<1|t[2]>>>31,m=t[13]<<12|t[12]>>>20,b=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,x=t[33]<<13|t[32]>>>19,F=t[32]<<13|t[33]>>>19,ut=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,D=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,A=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,P=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,ot=t[17]<<23|t[16]>>>9,nt=t[16]<<23|t[17]>>>9,W=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,I=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,it=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,L=t[39]<<8|t[38]>>>24,B=t[48]<<14|t[49]>>>18,C=t[49]<<14|t[48]>>>18,t[0]=h^~m&v,t[1]=g^~b&A,t[10]=E^~I&T,t[11]=S^~O&_,t[20]=R^~D&W,t[21]=N^~j&U,t[30]=H^~q&Z,t[31]=K^~$&J,t[40]=et^~ot&it,t[41]=rt^~nt&at,t[2]=m^~v&w,t[3]=b^~A&M,t[12]=I^~T&x,t[13]=O^~_&F,t[22]=D^~W&z,t[23]=j^~U&L,t[32]=q^~Z&Y,t[33]=$^~J&Q,t[42]=ot^~it&st,t[43]=nt^~at&ct,t[4]=v^~w&B,t[5]=A^~M&C,t[14]=T^~x&P,t[15]=_^~F&k,t[24]=W^~z&V,t[25]=U^~L&G,t[34]=Z^~Y&X,t[35]=J^~Q&tt,t[44]=it^~st&ut,t[45]=at^~ct&lt,t[6]=w^~B&h,t[7]=M^~C&g,t[16]=x^~P&E,t[17]=F^~k&S,t[26]=z^~V&R,t[27]=L^~G&N,t[36]=Y^~X&H,t[37]=Q^~tt&K,t[46]=st^~ut&et,t[47]=ct^~lt&rt,t[8]=B^~h&m,t[9]=C^~g&b,t[18]=P^~E&I,t[19]=k^~S&O,t[28]=V^~R&D,t[29]=G^~N&j,t[38]=X^~H&q,t[39]=tt^~K&$,t[48]=ut^~et&ot,t[49]=lt^~rt&nt,t[0]^=y[o],t[1]^=y[o+1]};if(l)t.exports=O;else{for(_=0;_<T.length;++_)c[T[_]]=O[T[_]];d&&(void 0===(i=function(){return O}.call(e,r,e,t))||(t.exports=i))}}()}).call(this,r(44),r(36))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return L}));var o=r(8),n=r.n(o),i=r(16),a=r.n(i);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function s(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var c=u;function u(t,e){if(!t)throw new Error(e||"Assertion failed")}u.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var l=s((function(t,e){var r=e;function o(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",r=0;r<t.length;r++)e+=o(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var o=0;o<t.length;o++)r[o]=0|t[o];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(o=0;o<t.length;o+=2)r.push(parseInt(t[o]+t[o+1],16))}else for(o=0;o<t.length;o++){var n=t.charCodeAt(o),i=n>>8,a=255&n;i?r.push(i,a):r.push(a)}return r},r.zero2=o,r.toHex=n,r.encode=function(t,e){return"hex"===e?n(t):t}})),d=s((function(t,e){var r=e;r.assert=c,r.toArray=l.toArray,r.zero2=l.zero2,r.toHex=l.toHex,r.encode=l.encode,r.getNAF=function(t,e,r){var o=new Array(Math.max(t.bitLength(),r)+1);o.fill(0);for(var n=1<<e+1,i=t.clone(),a=0;a<o.length;a++){var s,c=i.andln(n-1);i.isOdd()?(s=c>(n>>1)-1?(n>>1)-c:c,i.isubn(s)):s=0,o[a]=s,i.iushrn(1)}return o},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var o,n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var a,s,c=t.andln(3)+n&3,u=e.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!==(o=t.andln(7)+n&7)&&5!==o||2!==u?c:-c,r[0].push(a),s=0==(1&u)?0:3!==(o=e.andln(7)+i&7)&&5!==o||2!==c?u:-u,r[1].push(s),2*n===a+1&&(n=1-n),2*i===s+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var o="_"+e;t.prototype[e]=function(){return void 0!==this[o]?this[o]:this[o]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new n.a(t,"hex","le")}})),p=d.getNAF,f=d.getJSF,h=d.assert;function g(t,e){this.type=t,this.p=new n.a(e.p,16),this.red=e.prime?n.a.red(e.prime):n.a.mont(this.p),this.zero=new n.a(0).toRed(this.red),this.one=new n.a(1).toRed(this.red),this.two=new n.a(2).toRed(this.red),this.n=e.n&&new n.a(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var y=g;function m(t,e){this.curve=t,this.type=e,this.precomputed=null}g.prototype.point=function(){throw new Error("Not implemented")},g.prototype.validate=function(){throw new Error("Not implemented")},g.prototype._fixedNafMul=function(t,e){h(t.precomputed);var r=t._getDoubles(),o=p(e,1,this._bitLength),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;var i,a,s=[];for(i=0;i<o.length;i+=r.step){a=0;for(var c=i+r.step-1;c>=i;c--)a=(a<<1)+o[c];s.push(a)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=n;d>0;d--){for(i=0;i<s.length;i++)(a=s[i])===d?l=l.mixedAdd(r.points[i]):a===-d&&(l=l.mixedAdd(r.points[i].neg()));u=u.add(l)}return u.toP()},g.prototype._wnafMul=function(t,e){var r=4,o=t._getNAFPoints(r);r=o.wnd;for(var n=o.points,i=p(e,r,this._bitLength),a=this.jpoint(null,null,null),s=i.length-1;s>=0;s--){for(var c=0;s>=0&&0===i[s];s--)c++;if(s>=0&&c++,a=a.dblp(c),s<0)break;var u=i[s];h(0!==u),a="affine"===t.type?u>0?a.mixedAdd(n[u-1>>1]):a.mixedAdd(n[-u-1>>1].neg()):u>0?a.add(n[u-1>>1]):a.add(n[-u-1>>1].neg())}return"affine"===t.type?a.toP():a},g.prototype._wnafMulAdd=function(t,e,r,o,n){var i,a,s,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,d=0;for(i=0;i<o;i++){var h=(s=e[i])._getNAFPoints(t);c[i]=h.wnd,u[i]=h.points}for(i=o-1;i>=1;i-=2){var g=i-1,y=i;if(1===c[g]&&1===c[y]){var m=[e[g],null,null,e[y]];0===e[g].y.cmp(e[y].y)?(m[1]=e[g].add(e[y]),m[2]=e[g].toJ().mixedAdd(e[y].neg())):0===e[g].y.cmp(e[y].y.redNeg())?(m[1]=e[g].toJ().mixedAdd(e[y]),m[2]=e[g].add(e[y].neg())):(m[1]=e[g].toJ().mixedAdd(e[y]),m[2]=e[g].toJ().mixedAdd(e[y].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=f(r[g],r[y]);for(d=Math.max(v[0].length,d),l[g]=new Array(d),l[y]=new Array(d),a=0;a<d;a++){var A=0|v[0][a],w=0|v[1][a];l[g][a]=b[3*(A+1)+(w+1)],l[y][a]=0,u[g]=m}}else l[g]=p(r[g],c[g],this._bitLength),l[y]=p(r[y],c[y],this._bitLength),d=Math.max(l[g].length,d),d=Math.max(l[y].length,d)}var M=this.jpoint(null,null,null),B=this._wnafT4;for(i=d;i>=0;i--){for(var C=0;i>=0;){var E=!0;for(a=0;a<o;a++)B[a]=0|l[a][i],0!==B[a]&&(E=!1);if(!E)break;C++,i--}if(i>=0&&C++,M=M.dblp(C),i<0)break;for(a=0;a<o;a++){var S=B[a];0!==S&&(S>0?s=u[a][S-1>>1]:S<0&&(s=u[a][-S-1>>1].neg()),M="affine"===s.type?M.mixedAdd(s):M.add(s))}}for(i=0;i<o;i++)u[i]=null;return n?M:M.toP()},g.BasePoint=m,m.prototype.eq=function(){throw new Error("Not implemented")},m.prototype.validate=function(){return this.curve.validate(this)},g.prototype.decodePoint=function(t,e){t=d.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?h(t[t.length-1]%2==0):7===t[0]&&h(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},m.prototype.encodeCompressed=function(t){return this.encode(t,!0)},m.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},m.prototype.encode=function(t,e){return d.encode(this._encode(e),t)},m.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},m.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},m.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],o=this,n=0;n<e;n+=t){for(var i=0;i<t;i++)o=o.dbl();r.push(o)}return{step:t,points:r}},m.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,o=1===r?null:this.dbl(),n=1;n<r;n++)e[n]=e[n-1].add(o);return{wnd:t,points:e}},m.prototype._getBeta=function(){return null},m.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var b=s((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),v=d.assert;function A(t){y.call(this,"short",t),this.a=new n.a(t.a,16).toRed(this.red),this.b=new n.a(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}b(A,y);var w=A;function M(t,e,r,o){y.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n.a(e,16),this.y=new n.a(r,16),o&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function B(t,e,r,o){y.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===o?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n.a(0)):(this.x=new n.a(e,16),this.y=new n.a(r,16),this.z=new n.a(o,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}A.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new n.a(t.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);e=(e=o[0].cmp(o[1])<0?o[0]:o[1]).toRed(this.red)}if(t.lambda)r=new n.a(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],v(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new n.a(t.a,16),b:new n.a(t.b,16)}})):this._getEndoBasis(r)}}},A.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:n.a.mont(t),r=new n.a(2).toRed(e).redInvm(),o=r.redNeg(),i=new n.a(3).toRed(e).redNeg().redSqrt().redMul(r);return[o.redAdd(i).fromRed(),o.redSub(i).fromRed()]},A.prototype._getEndoBasis=function(t){for(var e,r,o,i,a,s,c,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=t,f=this.n.clone(),h=new n.a(1),g=new n.a(0),y=new n.a(0),m=new n.a(1),b=0;0!==p.cmpn(0);){var v=f.div(p);u=f.sub(v.mul(p)),l=y.sub(v.mul(h));var A=m.sub(v.mul(g));if(!o&&u.cmp(d)<0)e=c.neg(),r=h,o=u.neg(),i=l;else if(o&&2==++b)break;c=u,f=p,p=u,y=h,h=l,m=g,g=A}a=u.neg(),s=l;var w=o.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=e,s=r),o.negative&&(o=o.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:o,b:i},{a:a,b:s}]},A.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],o=e[1],n=o.b.mul(t).divRound(this.n),i=r.b.neg().mul(t).divRound(this.n),a=n.mul(r.a),s=i.mul(o.a),c=n.mul(r.b),u=i.mul(o.b);return{k1:t.sub(a).sub(s),k2:c.add(u).neg()}},A.prototype.pointFromX=function(t,e){(t=new n.a(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),o=r.redSqrt();if(0!==o.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=o.fromRed().isOdd();return(e&&!i||!e&&i)&&(o=o.redNeg()),this.point(t,o)},A.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,o=this.a.redMul(e),n=e.redSqr().redMul(e).redIAdd(o).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},A.prototype._endoWnafMulAdd=function(t,e,r){for(var o=this._endoWnafT1,n=this._endoWnafT2,i=0;i<t.length;i++){var a=this._endoSplit(e[i]),s=t[i],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),o[2*i]=s,o[2*i+1]=c,n[2*i]=a.k1,n[2*i+1]=a.k2}for(var u=this._wnafMulAdd(1,o,n,2*i,r),l=0;l<2*i;l++)o[l]=null,n[l]=null;return u},b(M,y.BasePoint),A.prototype.point=function(t,e,r){return new M(this,t,e,r)},A.prototype.pointFromJSON=function(t,e){return M.fromJSON(this,t,e)},M.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,o=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(o)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(o)}}}return e}},M.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},M.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var o=t.point(e[0],e[1],r);if(!e[2])return o;function n(e){return t.point(e[0],e[1],r)}var i=e[2];return o.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[o].concat(i.doubles.points.map(n))},naf:i.naf&&{wnd:i.naf.wnd,points:[o].concat(i.naf.points.map(n))}},o},M.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},M.prototype.isInfinity=function(){return this.inf},M.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),o=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,o)},M.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),o=t.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(o),i=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},M.prototype.getX=function(){return this.x.fromRed()},M.prototype.getY=function(){return this.y.fromRed()},M.prototype.mul=function(t){return t=new n.a(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},M.prototype.mulAdd=function(t,e,r){var o=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(o,n):this.curve._wnafMulAdd(1,o,n,2)},M.prototype.jmulAdd=function(t,e,r){var o=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(o,n,!0):this.curve._wnafMulAdd(1,o,n,2,!0)},M.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},M.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,o=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(o)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(o)}}}return e},M.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},b(B,y.BasePoint),A.prototype.jpoint=function(t,e,r){return new B(this,t,e,r)},B.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),o=this.y.redMul(e).redMul(t);return this.curve.point(r,o)},B.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},B.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),o=this.x.redMul(e),n=t.x.redMul(r),i=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=o.redSub(n),c=i.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=o.redMul(u),p=c.redSqr().redIAdd(l).redISub(d).redISub(d),f=c.redMul(d.redISub(p)).redISub(i.redMul(l)),h=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(p,f,h)},B.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,o=t.x.redMul(e),n=this.y,i=t.y.redMul(e).redMul(this.z),a=r.redSub(o),s=n.redSub(i);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),p=s.redMul(l.redISub(d)).redISub(n.redMul(u)),f=this.z.redMul(a);return this.curve.jpoint(d,p,f)},B.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var o=this.curve.a,n=this.curve.tinv,i=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a);for(e=0;e<t;e++){var l=i.redSqr(),d=u.redSqr(),p=d.redSqr(),f=l.redAdd(l).redIAdd(l).redIAdd(o.redMul(c)),h=i.redMul(d),g=f.redSqr().redISub(h.redAdd(h)),y=h.redISub(g),m=f.redMul(y);m=m.redIAdd(m).redISub(p);var b=u.redMul(s);e+1<t&&(c=c.redMul(p)),i=g,s=b,u=m}return this.curve.jpoint(i,u.redMul(n),s)},B.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},B.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var o=this.x.redSqr(),n=this.y.redSqr(),i=n.redSqr(),a=this.x.redAdd(n).redSqr().redISub(o).redISub(i);a=a.redIAdd(a);var s=o.redAdd(o).redIAdd(o),c=s.redSqr().redISub(a).redISub(a),u=i.redIAdd(i);u=(u=u.redIAdd(u)).redIAdd(u),t=c,e=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),d=this.y.redSqr(),p=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(l).redISub(p);f=f.redIAdd(f);var h=l.redAdd(l).redIAdd(l),g=h.redSqr(),y=p.redIAdd(p);y=(y=y.redIAdd(y)).redIAdd(y),t=g.redISub(f).redISub(f),e=h.redMul(f.redISub(t)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},B.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var o=this.x.redSqr(),n=this.y.redSqr(),i=n.redSqr(),a=this.x.redAdd(n).redSqr().redISub(o).redISub(i);a=a.redIAdd(a);var s=o.redAdd(o).redIAdd(o).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);t=c;var u=i.redIAdd(i);u=(u=u.redIAdd(u)).redIAdd(u),e=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),d=this.y.redSqr(),p=this.x.redMul(d),f=this.x.redSub(l).redMul(this.x.redAdd(l));f=f.redAdd(f).redIAdd(f);var h=p.redIAdd(p),g=(h=h.redIAdd(h)).redAdd(h);t=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(l);var y=d.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),e=f.redMul(h.redISub(t)).redISub(y)}return this.curve.jpoint(t,e,r)},B.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,o=this.z,n=o.redSqr().redSqr(),i=e.redSqr(),a=r.redSqr(),s=i.redAdd(i).redIAdd(i).redIAdd(t.redMul(n)),c=e.redAdd(e),u=(c=c.redIAdd(c)).redMul(a),l=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(l),p=a.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=s.redMul(d).redISub(p),h=r.redAdd(r).redMul(o);return this.curve.jpoint(l,f,h)},B.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),o=e.redSqr(),n=t.redAdd(t).redIAdd(t),i=n.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(o),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(i)).redSqr(),c=o.redIAdd(o);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=n.redIAdd(a).redSqr().redISub(i).redISub(s).redISub(c),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.x.redMul(s).redISub(l);d=(d=d.redIAdd(d)).redIAdd(d);var p=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,p,f)},B.prototype.mul=function(t,e){return t=new n.a(t,e),this.curve._wnafMul(this,t)},B.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var o=e.redMul(this.z),n=r.redMul(t.z);return 0===this.y.redMul(n).redISub(t.y.redMul(o)).cmpn(0)},B.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var o=t.clone(),n=this.curve.redN.redMul(e);;){if(o.iadd(this.curve.n),o.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},B.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},B.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var C=s((function(t,e){var r=e;r.base=y,r.short=w,r.mont=null,r.edwards=null})),E=s((function(t,e){var r,o=e,n=d.assert;function i(t){"short"===t.type?this.curve=new C.short(t):"edwards"===t.type?this.curve=new C.edwards(t):this.curve=new C.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var r=new i(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:r}),r}})}o.PresetCurve=i,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function S(t){if(!(this instanceof S))return new S(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=l.toArray(t.entropy,t.entropyEnc||"hex"),r=l.toArray(t.nonce,t.nonceEnc||"hex"),o=l.toArray(t.pers,t.persEnc||"hex");c(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,o)}var I=S;S.prototype._init=function(t,e,r){var o=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(o),this._reseed=1,this.reseedInterval=281474976710656},S.prototype._hmac=function(){return new a.a.hmac(this.hash,this.K)},S.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(t,e,r,o){"string"!=typeof e&&(o=r,r=e,e=null),t=l.toArray(t,e),r=l.toArray(r,o),c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},S.prototype.generate=function(t,e,r,o){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(o=r,r=e,e=null),r&&(r=l.toArray(r,o||"hex"),this._update(r));for(var n=[];n.length<t;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var i=n.slice(0,t);return this._update(r),this._reseed++,l.encode(i,e)};var O=d.assert;function T(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var _=T;T.fromPublic=function(t,e,r){return e instanceof T?e:new T(t,{pub:e,pubEnc:r})},T.fromPrivate=function(t,e,r){return e instanceof T?e:new T(t,{priv:e,privEnc:r})},T.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},T.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},T.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},T.prototype._importPrivate=function(t,e){this.priv=new n.a(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},T.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?O(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||O(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},T.prototype.derive=function(t){return t.validate()||O(t.validate(),"public point not validated"),t.mul(this.priv).getX()},T.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},T.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},T.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var x=d.assert;function F(t,e){if(t instanceof F)return t;this._importDER(t,e)||(x(t.r&&t.s,"Signature without r or s"),this.r=new n.a(t.r,16),this.s=new n.a(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var P=F;function k(){this.place=0}function R(t,e){var r=t[e.place++];if(!(128&r))return r;var o=15&r;if(0===o||o>4)return!1;for(var n=0,i=0,a=e.place;i<o;i++,a++)n<<=8,n|=t[a],n>>>=0;return!(n<=127)&&(e.place=a,n)}function N(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function D(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}F.prototype._importDER=function(t,e){t=d.toArray(t,e);var r=new k;if(48!==t[r.place++])return!1;var o=R(t,r);if(!1===o)return!1;if(o+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=R(t,r);if(!1===i)return!1;var a=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var s=R(t,r);if(!1===s)return!1;if(t.length!==s+r.place)return!1;var c=t.slice(r.place,s+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new n.a(a),this.s=new n.a(c),this.recoveryParam=null,!0},F.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=N(e),r=N(r);!(r[0]||128&r[1]);)r=r.slice(1);var o=[2];D(o,e.length),(o=o.concat(e)).push(2),D(o,r.length);var n=o.concat(r),i=[48];return D(i,n.length),i=i.concat(n),d.encode(i,t)};var j=function(){throw new Error("unsupported")},W=d.assert;function U(t){if(!(this instanceof U))return new U(t);"string"==typeof t&&(W(Object.prototype.hasOwnProperty.call(E,t),"Unknown curve "+t),t=E[t]),t instanceof E.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var z=U;U.prototype.keyPair=function(t){return new _(this,t)},U.prototype.keyFromPrivate=function(t,e){return _.fromPrivate(this,t,e)},U.prototype.keyFromPublic=function(t,e){return _.fromPublic(this,t,e)},U.prototype.genKeyPair=function(t){t||(t={});for(var e=new I({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||j(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n.a(2));;){var i=new n.a(e.generate(r));if(!(i.cmp(o)>0))return i.iaddn(1),this.keyFromPrivate(i)}},U.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},U.prototype.sign=function(t,e,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n.a(t,16));for(var i=this.n.byteLength(),a=e.getPrivate().toArray("be",i),s=t.toArray("be",i),c=new I({hash:this.hash,entropy:a,nonce:s,pers:o.pers,persEnc:o.persEnc||"utf8"}),u=this.n.sub(new n.a(1)),l=0;;l++){var d=o.k?o.k(l):new n.a(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(u)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var f=p.getX(),h=f.umod(this.n);if(0!==h.cmpn(0)){var g=d.invm(this.n).mul(h.mul(e.getPrivate()).iadd(t));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==f.cmp(h)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new P({r:h,s:g,recoveryParam:y})}}}}}},U.prototype.verify=function(t,e,r,o){t=this._truncateToN(new n.a(t,16)),r=this.keyFromPublic(r,o);var i=(e=new P(e,"hex")).r,a=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(t).umod(this.n),l=c.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},U.prototype.recoverPubKey=function(t,e,r,o){W((3&r)===r,"The recovery param is more than two bits"),e=new P(e,o);var i=this.n,a=new n.a(t),s=e.r,c=e.s,u=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var d=e.r.invm(i),p=i.sub(a).mul(d).umod(i),f=c.mul(d).umod(i);return this.g.mulAdd(p,s,f)},U.prototype.getKeyRecoveryParam=function(t,e,r,o){if(null!==(e=new P(e,o)).recoveryParam)return e.recoveryParam;for(var n=0;n<4;n++){var i;try{i=this.recoverPubKey(t,e,n)}catch(t){continue}if(i.eq(r))return n}throw new Error("Unable to find valid recovery factor")};var L=s((function(t,e){var r=e;r.version="6.5.4",r.utils=d,r.rand=function(){throw new Error("unsupported")},r.curve=C,r.curves=E,r.ec=z,r.eddsa=null})).ec}).call(this,r(36))},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));const o="random/5.7.0"},function(t,e,r){"use strict";function o(t){return(o="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Ht(r(59)),i=Ht(r(92)),a=Ht(r(177)),s=Ht(r(178)),c=Ht(r(179)),u=Ht(r(180)),l=Ht(r(181)),d=Ht(r(182)),p=Ht(r(183)),f=Ht(r(184)),h=Ht(r(48)),g=Ht(r(185)),y=Ht(r(60)),m=Ht(r(96)),b=Ht(r(186)),v=Ht(r(187)),A=Gt(r(188)),w=Gt(r(189)),M=Ht(r(190)),B=Ht(r(191)),C=Ht(r(192)),E=Ht(r(193)),S=Ht(r(194)),I=Ht(r(195)),O=Ht(r(196)),T=Ht(r(97)),_=Ht(r(98)),x=Ht(r(197)),F=Ht(r(198)),P=Ht(r(199)),k=Ht(r(201)),R=Ht(r(61)),N=Gt(r(93)),D=Ht(r(202)),j=Ht(r(99)),W=Ht(r(204)),U=Ht(r(205)),z=Ht(r(206)),L=Ht(r(207)),V=Ht(r(208)),G=Ht(r(209)),H=Gt(r(210)),K=Ht(r(211)),q=Ht(r(212)),$=Ht(r(213)),Z=Ht(r(214)),J=Ht(r(215)),Y=Ht(r(216)),Q=Ht(r(217)),X=Ht(r(95)),tt=Ht(r(218)),et=Ht(r(219)),rt=Ht(r(220)),ot=Ht(r(221)),nt=Ht(r(222)),it=Ht(r(223)),at=Ht(r(224)),st=Ht(r(225)),ct=Ht(r(226)),ut=Ht(r(227)),lt=Ht(r(228)),dt=Ht(r(229)),pt=Gt(r(231)),ft=Ht(r(232)),ht=Ht(r(233)),gt=Ht(r(234)),yt=Ht(r(235)),mt=Ht(r(236)),bt=Ht(r(100)),vt=Ht(r(237)),At=Ht(r(238)),wt=Ht(r(239)),Mt=Ht(r(240)),Bt=Ht(r(101)),Ct=Ht(r(241)),Et=Ht(r(242)),St=Ht(r(243)),It=Ht(r(244)),Ot=Gt(r(245)),Tt=Ht(r(102)),_t=Ht(r(103)),xt=Ht(r(246)),Ft=Ht(r(247)),Pt=Ht(r(248)),kt=Ht(r(249)),Rt=Ht(r(250)),Nt=Ht(r(104)),Dt=Ht(r(251)),jt=Ht(r(252)),Wt=Ht(r(253)),Ut=Ht(r(254)),zt=Ht(r(255)),Lt=Ht(r(256));function Vt(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return Vt=function(){return t},t}function Gt(t){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var e=Vt();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=n?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,e&&e.set(t,r),r}function Ht(t){return t&&t.__esModule?t:{default:t}}var Kt={version:"13.7.0",toDate:n.default,toFloat:i.default,toInt:a.default,toBoolean:s.default,equals:c.default,contains:u.default,matches:l.default,isEmail:d.default,isURL:p.default,isMACAddress:f.default,isIP:h.default,isIPRange:g.default,isFQDN:y.default,isBoolean:b.default,isIBAN:H.default,isBIC:K.default,isAlpha:A.default,isAlphaLocales:A.locales,isAlphanumeric:w.default,isAlphanumericLocales:w.locales,isNumeric:M.default,isPassportNumber:B.default,isPort:C.default,isLowercase:E.default,isUppercase:S.default,isAscii:O.default,isFullWidth:T.default,isHalfWidth:_.default,isVariableWidth:x.default,isMultibyte:F.default,isSemVer:P.default,isSurrogatePair:k.default,isInt:R.default,isIMEI:I.default,isFloat:N.default,isFloatLocales:N.locales,isDecimal:D.default,isHexadecimal:j.default,isOctal:W.default,isDivisibleBy:U.default,isHexColor:z.default,isRgbColor:L.default,isHSL:V.default,isISRC:G.default,isMD5:q.default,isHash:$.default,isJWT:Z.default,isJSON:J.default,isEmpty:Y.default,isLength:Q.default,isLocale:v.default,isByteLength:X.default,isUUID:tt.default,isMongoId:et.default,isAfter:rt.default,isBefore:ot.default,isIn:nt.default,isCreditCard:it.default,isIdentityCard:at.default,isEAN:st.default,isISIN:ct.default,isISBN:ut.default,isISSN:lt.default,isMobilePhone:pt.default,isMobilePhoneLocales:pt.locales,isPostalCode:Ot.default,isPostalCodeLocales:Ot.locales,isEthereumAddress:ft.default,isCurrency:ht.default,isBtcAddress:gt.default,isISO8601:yt.default,isRFC3339:mt.default,isISO31661Alpha2:bt.default,isISO31661Alpha3:vt.default,isISO4217:At.default,isBase32:wt.default,isBase58:Mt.default,isBase64:Bt.default,isDataURI:Ct.default,isMagnetURI:Et.default,isMimeType:St.default,isLatLong:It.default,ltrim:Tt.default,rtrim:_t.default,trim:xt.default,escape:Ft.default,unescape:Pt.default,stripLow:kt.default,whitelist:Rt.default,blacklist:Nt.default,isWhitelisted:Dt.default,normalizeEmail:jt.default,toString:toString,isSlug:Wt.default,isStrongPassword:zt.default,isTaxID:dt.default,isDate:m.default,isLicensePlate:Ut.default,isVAT:Lt.default,ibanLocales:H.locales};e.default=Kt,t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";var o=Object.prototype.hasOwnProperty,n="~";function i(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,o,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,o||t,i),c=n?n+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),u.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)o.call(t,e)&&r.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},u.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},u.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,e,r,o,i,a){var s=n?n+t:t;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,o),!0;case 5:return l.fn.call(l.context,e,r,o,i),!0;case 6:return l.fn.call(l.context,e,r,o,i,a),!0}for(u=1,c=new Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,r);break;case 4:l[u].fn.call(l[u].context,e,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(t,e,r){return s(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return s(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return c(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||r&&a.context!==r||c(this,i);else{for(var s=0,u=[],l=a.length;s<l;s++)(a[s].fn!==e||o&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[i]=1===u.length?u[0]:u:c(this,i)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&c(this,e)):(this._events=new i,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,t.exports=u},function(t){t.exports=JSON.parse('{"a":"5.1.0"}')},function(t,e,r){"use strict";e.decode=e.parse=r(260),e.encode=e.stringify=r(261)},function(t,e,r){"use strict";r.d(e,"a",(function(){return b}));var o=r(14),n=r.n(o),i=r(6),a=r.n(i),s=r(12),c=r.n(s),u=r(13),l=r.n(u),d=r(2),p=r.n(d),f=r(19),h=r.n(f),g=r(39);function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){n()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];c()(this,t),this.mainchain=o;var i=e.fullHost,a=e.fullNode,s=e.solidityNode,u=e.eventServer,l=e.mainGatewayAddress,d=e.sideGatewayAddress,p=e.sideChainId;this.sidechain=new r(i||a,i||s,i||u,n),this.isAddress=this.mainchain.isAddress,this.utils=this.mainchain.utils,this.setMainGatewayAddress(l),this.setSideGatewayAddress(d),this.setChainId(p),this.injectPromise=h()(this),this.validator=new g.a(this.sidechain);var f=this;this.sidechain.trx.sign=function(){return f.sign.apply(f,arguments)},this.sidechain.trx.multiSign=function(){return f.multiSign.apply(f,arguments)}}var e,r,o,n,i,s,u,d,f,y,b,v,A,w,M,B,C,E,S,I,O;return l()(t,[{key:"setMainGatewayAddress",value:function(t){if(!this.isAddress(t))throw new Error("Invalid main gateway address provided");this.mainGatewayAddress=t}},{key:"setSideGatewayAddress",value:function(t){if(!this.isAddress(t))throw new Error("Invalid side gateway address provided");this.sideGatewayAddress=t}},{key:"setChainId",value:function(t){if(!this.utils.isString(t)||!t)throw new Error("Invalid side chainId provided");this.chainId=t}},{key:"signTransaction",value:function(t,e){"string"==typeof t&&(t=this.utils.code.hexStr2byteArray(t));var r=this.utils.code.hexStr2byteArray(this.chainId),o=this.utils.code.hexStr2byteArray(e.txID).concat(r),n=this.sidechain.utils.ethersUtils.sha256(o),i=this.utils.crypto.ECKeySign(this.utils.code.hexStr2byteArray(n.replace(/^0x/,"")),t);return Array.isArray(e.signature)?e.signature.includes(i)||e.signature.push(i):e.signature=[i],e}},{key:"multiSign",value:(O=a()(p.a.mark((function t(){var e,r,o,n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]&&c[0],r=c.length>1&&void 0!==c[1]?c[1]:this.sidechain.defaultPrivateKey,o=c.length>2&&void 0!==c[2]&&c[2],n=c.length>3&&void 0!==c[3]&&c[3],this.utils.isFunction(o)&&(n=o,o=0),this.utils.isFunction(r)&&(n=r,r=this.mainchain.defaultPrivateKey,o=0),n){t.next=8;break}return t.abrupt("return",this.injectPromise(this.multiSign,e,r,o));case 8:if(this.utils.isObject(e)&&e.raw_data&&e.raw_data.contract){t.next=10;break}return t.abrupt("return",n("Invalid transaction provided"));case 10:if(e.raw_data.contract[0].Permission_id||!(o>0)){t.next=30;break}return e.raw_data.contract[0].Permission_id=o,i=this.sidechain.address.toHex(this.sidechain.address.fromPrivateKey(r)).toLowerCase(),t.next=15,this.sidechain.trx.getSignWeight(e,o);case 15:if("PERMISSION_ERROR"!==(a=t.sent).result.code){t.next=18;break}return t.abrupt("return",n(a.result.message));case 18:if(s=!1,a.permission.keys.map((function(t){t.address===i&&(s=!0)})),s){t.next=22;break}return t.abrupt("return",n(r+" has no permission to sign"));case 22:if(!a.approved_list||-1==a.approved_list.indexOf(i)){t.next=24;break}return t.abrupt("return",n(r+" already sign transaction"));case 24:if(!a.transaction||!a.transaction.transaction){t.next=29;break}(e=a.transaction.transaction).raw_data.contract[0].Permission_id=o,t.next=30;break;case 29:return t.abrupt("return",n("Invalid transaction provided"));case 30:return t.prev=30,t.abrupt("return",n(null,this.signTransaction(r,e)));case 34:t.prev=34,t.t0=t.catch(30),n(t.t0);case 37:case"end":return t.stop()}}),t,this,[[30,34]])}))),function(){return O.apply(this,arguments)})},{key:"sign",value:(I=a()(p.a.mark((function t(){var e,r,o,n,i,a,s=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]&&s[0],r=s.length>1&&void 0!==s[1]?s[1]:this.sidechain.defaultPrivateKey,o=!(s.length>2&&void 0!==s[2])||s[2],n=s.length>3&&void 0!==s[3]&&s[3],i=s.length>4&&void 0!==s[4]&&s[4],this.utils.isFunction(n)&&(i=n,n=!1),this.utils.isFunction(o)&&(i=o,o=!0,n=!1),this.utils.isFunction(r)&&(i=r,r=this.sidechain.defaultPrivateKey,o=!0,n=!1),i){t.next=10;break}return t.abrupt("return",this.injectPromise(this.sign,e,r,o,n));case 10:if(!this.utils.isString(e)){t.next=21;break}if(this.utils.isHex(e)){t.next=13;break}return t.abrupt("return",i("Expected hex message input"));case 13:return t.prev=13,a=this.sidechain.trx.signString(e,r,o),t.abrupt("return",i(null,a));case 18:t.prev=18,t.t0=t.catch(13),i(t.t0);case 21:if(this.utils.isObject(e)){t.next=23;break}return t.abrupt("return",i("Invalid transaction provided"));case 23:if(n||!e.signature){t.next=25;break}return t.abrupt("return",i("Transaction is already signed"));case 25:if(t.prev=25,n){t.next=30;break}if(this.sidechain.address.toHex(this.sidechain.address.fromPrivateKey(r)).toLowerCase()===this.sidechain.address.toHex(e.raw_data.contract[0].parameter.value.owner_address)){t.next=30;break}return t.abrupt("return",i("Private key does not match address in transaction"));case 30:return t.abrupt("return",i(null,this.signTransaction(r,e)));case 33:t.prev=33,t.t1=t.catch(25),i(t.t1);case 36:case"end":return t.stop()}}),t,this,[[13,18],[25,33]])}))),function(){return I.apply(this,arguments)})},{key:"depositTrx",value:(S=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c,u=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=u.length>3&&void 0!==u[3]?u[3]:{},i=u.length>4&&void 0!==u[4]?u[4]:this.mainchain.defaultPrivateKey,a=u.length>5&&void 0!==u[5]&&u[5],this.utils.isFunction(i)&&(a=i,i=this.mainchain.defaultPrivateKey),this.utils.isFunction(n)&&(a=n,n={}),a){t.next=7;break}return t.abrupt("return",this.injectPromise(this.depositTrx,e,r,o,n,i));case 7:if(!this.validator.notValid([{name:"callValue",type:"integer",value:e,gte:0},{name:"depositFee",type:"integer",value:r,gte:0},{name:"feeLimit",type:"integer",value:o,gte:0}],a)){t.next=9;break}return t.abrupt("return");case 9:return n=m({callValue:Number(e)+Number(r),feeLimit:o},n),t.prev=10,t.next=13,this.mainchain.contract().at(this.mainGatewayAddress);case 13:return s=t.sent,t.next=16,s.depositTRX().send(n,i);case 16:return c=t.sent,t.abrupt("return",a(null,c));case 20:return t.prev=20,t.t0=t.catch(10),t.abrupt("return",a(t.t0));case 23:case"end":return t.stop()}}),t,this,[[10,20]])}))),function(t,e,r){return S.apply(this,arguments)})},{key:"depositTrc10",value:(E=a()(p.a.mark((function t(e,r,o,n){var i,a,s,c,u,l=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=l.length>4&&void 0!==l[4]?l[4]:{},a=l.length>5&&void 0!==l[5]?l[5]:this.mainchain.defaultPrivateKey,s=l.length>6&&void 0!==l[6]&&l[6],this.utils.isFunction(a)&&(s=a,a=this.mainchain.defaultPrivateKey),this.utils.isFunction(i)&&(s=i,i={}),s){t.next=7;break}return t.abrupt("return",this.injectPromise(this.depositTrc10,e,r,o,n,i,a));case 7:if(!this.validator.notValid([{name:"tokenValue",type:"integer",value:r,gte:0},{name:"depositFee",type:"integer",value:o,gte:0},{name:"feeLimit",type:"integer",value:n,gte:0},{name:"tokenId",type:"integer",value:e,gte:0}],s)){t.next=9;break}return t.abrupt("return");case 9:return i=m(m({tokenId:e,tokenValue:r,feeLimit:n},i),{},{callValue:o}),t.prev=10,t.next=13,this.mainchain.contract().at(this.mainGatewayAddress);case 13:return c=t.sent,t.next=16,c.depositTRC10(e,r).send(i,a);case 16:u=t.sent,s(null,u),t.next=23;break;case 20:return t.prev=20,t.t0=t.catch(10),t.abrupt("return",s(t.t0));case 23:case"end":return t.stop()}}),t,this,[[10,20]])}))),function(t,e,r,o){return E.apply(this,arguments)})},{key:"depositTrc",value:(C=a()(p.a.mark((function t(e,r,o,n,i){var a,s,c,u,l,d,f=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=f.length>5&&void 0!==f[5]?f[5]:{},s=f.length>6&&void 0!==f[6]?f[6]:this.mainchain.defaultPrivateKey,c=f.length>7&&void 0!==f[7]&&f[7],this.utils.isFunction(s)&&(c=s,s=this.mainchain.defaultPrivateKey),this.utils.isFunction(a)&&(c=a,a={}),c){t.next=7;break}return t.abrupt("return",this.injectPromise(this.depositTrc,e,r,o,n,i,a,s));case 7:if(!this.validator.notValid([{name:"functionSelector",type:"not-empty-string",value:e},{name:"num",type:"integer",value:r,gte:0},{name:"fee",type:"integer",value:o,gte:0},{name:"feeLimit",type:"integer",value:n,gte:0},{name:"contractAddress",type:"address",value:i}],c)){t.next=9;break}return t.abrupt("return");case 9:if(a=m(m({feeLimit:n},a),{},{callValue:o,tokenId:"",tokenValue:0}),t.prev=10,u=null,"approve"!==e){t.next=21;break}return t.next=15,this.mainchain.contract().at(i);case 15:return l=t.sent,t.next=18,l.approve(this.mainGatewayAddress,r).send(a,s);case 18:u=t.sent,t.next=44;break;case 21:return t.next=23,this.mainchain.contract().at(this.mainGatewayAddress);case 23:d=t.sent,t.t0=e,t.next="depositTRC20"===t.t0?27:"depositTRC721"===t.t0?31:"retryDeposit"===t.t0?35:"retryMapping"===t.t0?39:43;break;case 27:return t.next=29,d.depositTRC20(i,r).send(a,s);case 29:return u=t.sent,t.abrupt("break",44);case 31:return t.next=33,d.depositTRC721(i,r).send(a,s);case 33:return u=t.sent,t.abrupt("break",44);case 35:return t.next=37,d.retryDeposit(r).send(a,s);case 37:return u=t.sent,t.abrupt("break",44);case 39:return t.next=41,d.retryMapping(r).send(a,s);case 41:return u=t.sent,t.abrupt("break",44);case 43:return t.abrupt("break",44);case 44:c(null,u),t.next=50;break;case 47:return t.prev=47,t.t1=t.catch(10),t.abrupt("return",c(t.t1));case 50:case"end":return t.stop()}}),t,this,[[10,47]])}))),function(t,e,r,o,n){return C.apply(this,arguments)})},{key:"approveTrc20",value:(B=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>3&&void 0!==c[3]?c[3]:{},i=c.length>4&&void 0!==c[4]?c[4]:this.mainchain.defaultPrivateKey,a=c.length>5&&void 0!==c[5]&&c[5],s="approve",t.abrupt("return",this.depositTrc(s,e,0,r,o,n,i,a));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return B.apply(this,arguments)})},{key:"approveTrc721",value:(M=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>3&&void 0!==c[3]?c[3]:{},i=c.length>4&&void 0!==c[4]?c[4]:this.mainchain.defaultPrivateKey,a=c.length>5&&void 0!==c[5]&&c[5],s="approve",t.abrupt("return",this.depositTrc(s,e,0,r,o,n,i,a));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return M.apply(this,arguments)})},{key:"depositTrc20",value:(w=a()(p.a.mark((function t(e,r,o,n){var i,a,s,c,u=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=u.length>4&&void 0!==u[4]?u[4]:{},a=u.length>5&&void 0!==u[5]?u[5]:this.mainchain.defaultPrivateKey,s=u.length>6&&void 0!==u[6]&&u[6],c="depositTRC20",t.abrupt("return",this.depositTrc(c,e,r,o,n,i,a,s));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o){return w.apply(this,arguments)})},{key:"depositTrc721",value:(A=a()(p.a.mark((function t(e,r,o,n){var i,a,s,c,u=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=u.length>4&&void 0!==u[4]?u[4]:{},a=u.length>5&&void 0!==u[5]?u[5]:this.mainchain.defaultPrivateKey,s=u.length>6&&void 0!==u[6]&&u[6],c="depositTRC721",t.abrupt("return",this.depositTrc(c,e,r,o,n,i,a,s));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o){return A.apply(this,arguments)})},{key:"mappingTrc",value:(v=a()(p.a.mark((function t(e,r,o,n){var i,a,s,c,u,l=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=l.length>4&&void 0!==l[4]?l[4]:{},a=l.length>5&&void 0!==l[5]?l[5]:this.mainchain.defaultPrivateKey,s=l.length>6?l[6]:void 0,this.utils.isFunction(a)&&(s=a,a=this.mainchain.defaultPrivateKey),this.utils.isFunction(i)&&(s=i,i={}),s){t.next=7;break}return t.abrupt("return",this.injectPromise(this.mappingTrc,e,r,o,n,i,a));case 7:if(!this.validator.notValid([{name:"trxHash",type:"not-empty-string",value:e},{name:"mappingFee",type:"integer",value:r,gte:0},{name:"feeLimit",type:"integer",value:o,gte:0}],s)){t.next=9;break}return t.abrupt("return");case 9:return e=e.startsWith("0x")?e:"0x"+e,i=m(m({feeLimit:o},i),{},{callValue:r}),t.prev=11,t.next=14,this.mainchain.contract().at(this.mainGatewayAddress);case 14:if(c=t.sent,u=null,"mappingTRC20"!==n){t.next=22;break}return t.next=19,c.mappingTRC20(e).send(i,a);case 19:u=t.sent,t.next=29;break;case 22:if("mappingTRC721"!==n){t.next=28;break}return t.next=25,c.mappingTRC721(e).send(i,a);case 25:u=t.sent,t.next=29;break;case 28:s(new Error("type must be trc20 or trc721"));case 29:s(null,u),t.next=35;break;case 32:return t.prev=32,t.t0=t.catch(11),t.abrupt("return",s(t.t0));case 35:case"end":return t.stop()}}),t,this,[[11,32]])}))),function(t,e,r,o){return v.apply(this,arguments)})},{key:"mappingTrc20",value:(b=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>3&&void 0!==c[3]?c[3]:{},i=c.length>4&&void 0!==c[4]?c[4]:this.mainchain.defaultPrivateKey,a=c.length>5&&void 0!==c[5]&&c[5],s="mappingTRC20",t.abrupt("return",this.mappingTrc(e,r,o,s,n,i,a));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return b.apply(this,arguments)})},{key:"mappingTrc721",value:(y=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>3&&void 0!==c[3]?c[3]:{},i=c.length>4&&void 0!==c[4]?c[4]:this.mainchain.defaultPrivateKey,a=c.length>5&&void 0!==c[5]&&c[5],s="mappingTRC721",t.abrupt("return",this.mappingTrc(e,r,o,s,n,i,a));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return y.apply(this,arguments)})},{key:"withdrawTrx",value:(f=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c,u=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=u.length>3&&void 0!==u[3]?u[3]:{},i=u.length>4&&void 0!==u[4]?u[4]:this.mainchain.defaultPrivateKey,a=u.length>5&&void 0!==u[5]&&u[5],this.utils.isFunction(i)&&(a=i,i=this.mainchain.defaultPrivateKey),this.utils.isFunction(n)&&(a=n,n={}),a){t.next=7;break}return t.abrupt("return",this.injectPromise(this.withdrawTrx,e,r,o,n,i));case 7:if(!this.validator.notValid([{name:"callValue",type:"integer",value:e,gte:0},{name:"withdrawFee",type:"integer",value:r,gte:0},{name:"feeLimit",type:"integer",value:o,gte:0}],a)){t.next=9;break}return t.abrupt("return");case 9:return n=m({callValue:Number(e)+Number(r),feeLimit:o},n),t.prev=10,t.next=13,this.sidechain.contract().at(this.sideGatewayAddress);case 13:return s=t.sent,t.next=16,s.withdrawTRX().send(n,i);case 16:return c=t.sent,t.abrupt("return",a(null,c));case 20:return t.prev=20,t.t0=t.catch(10),t.abrupt("return",a(t.t0));case 23:case"end":return t.stop()}}),t,this,[[10,20]])}))),function(t,e,r){return f.apply(this,arguments)})},{key:"withdrawTrc10",value:(d=a()(p.a.mark((function t(e,r,o,n){var i,a,s,c,u,l=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=l.length>4&&void 0!==l[4]?l[4]:{},a=l.length>5&&void 0!==l[5]?l[5]:this.mainchain.defaultPrivateKey,s=l.length>6&&void 0!==l[6]&&l[6],this.utils.isFunction(a)&&(s=a,a=this.mainchain.defaultPrivateKey),this.utils.isFunction(i)&&(s=i,i={}),s){t.next=7;break}return t.abrupt("return",this.injectPromise(this.withdrawTrc10,e,r,o,n,i,a));case 7:if(!this.validator.notValid([{name:"tokenId",type:"integer",value:e,gte:0},{name:"tokenValue",type:"integer",value:r,gte:0},{name:"withdrawFee",type:"integer",value:o,gte:0},{name:"feeLimit",type:"integer",value:n,gte:0}],s)){t.next=9;break}return t.abrupt("return");case 9:return i=m({tokenValue:r,tokenId:e,callValue:o,feeLimit:n},i),t.prev=10,t.next=13,this.sidechain.contract().at(this.sideGatewayAddress);case 13:return c=t.sent,t.next=16,c.withdrawTRC10(e,r).send(i,a);case 16:return u=t.sent,t.abrupt("return",s(null,u));case 20:return t.prev=20,t.t0=t.catch(10),t.abrupt("return",s(t.t0));case 23:case"end":return t.stop()}}),t,this,[[10,20]])}))),function(t,e,r,o){return d.apply(this,arguments)})},{key:"withdrawTrc",value:(u=a()(p.a.mark((function t(e,r,o,n,i){var s,c,u,l,d,f,h,g,y,b,v=this,A=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=A.length>5&&void 0!==A[5]?A[5]:{},c=A.length>6&&void 0!==A[6]?A[6]:this.mainchain.defaultPrivateKey,u=A.length>7&&void 0!==A[7]&&A[7],this.utils.isFunction(c)&&(u=c,c=this.mainchain.defaultPrivateKey),this.utils.isFunction(s)&&(u=s,s={}),u){t.next=7;break}return t.abrupt("return",this.injectPromise(this.withdrawTrc,e,r,o,n,i,s,c));case 7:if(!this.validator.notValid([{name:"functionSelector",type:"not-empty-string",value:e},{name:"numOrId",type:"integer",value:r,gte:0},{name:"withdrawFee",type:"integer",value:o,gte:0},{name:"feeLimit",type:"integer",value:n,gte:0},{name:"contractAddress",type:"address",value:i}],u)){t.next=9;break}return t.abrupt("return");case 9:return s=m(m({feeLimit:n},s),{},{callValue:o}),l=[{type:"uint256",value:r}],t.prev=11,d=c?this.sidechain.address.fromPrivateKey(c):this.sidechain.defaultAddress.base58,t.next=15,this.sidechain.transactionBuilder.triggerSmartContract(i,e,s,l,this.sidechain.address.toHex(d));case 15:if((f=t.sent).result&&f.result.result){t.next=18;break}return t.abrupt("return",u("Unknown error: "+JSON.stringify(f.transaction,null,2)));case 18:return t.next=20,this.sidechain.trx.sign(f.transaction,c);case 20:if((h=t.sent).signature){t.next=25;break}if(c){t.next=24;break}return t.abrupt("return",u("Transaction was not signed properly"));case 24:return t.abrupt("return",u("Invalid private key provided"));case 25:return t.next=27,this.sidechain.trx.sendRawTransaction(h);case 27:if(!(g=t.sent).code){t.next=32;break}return y={error:g.code,message:g.code},g.message&&(y.message=this.sidechain.toUtf8(g.message)),t.abrupt("return",u(y));case 32:if(s.shouldPollResponse){t.next=34;break}return t.abrupt("return",u(null,h.txID));case 34:(b=function(){var t=a()(p.a.mark((function t(){var e,r,o,n=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(20!=(e=n.length>0&&void 0!==n[0]?n[0]:0)){t.next=3;break}return t.abrupt("return",u({error:"Cannot find result in solidity node",transaction:h}));case 3:return t.next=5,v.sidechain.trx.getTransactionInfo(h.txID);case 5:if(r=t.sent,Object.keys(r).length){t.next=8;break}return t.abrupt("return",setTimeout((function(){b(e+1)}),3e3));case 8:if(!r.result||"FAILED"!=r.result){t.next=10;break}return t.abrupt("return",u({error:v.sidechain.toUtf8(r.resMessage),transaction:h,output:r}));case 10:if(v.utils.hasProperty(r,"contractResult")){t.next=12;break}return t.abrupt("return",u({error:"Failed to execute: "+JSON.stringify(r,null,2),transaction:h,output:r}));case 12:if(!s.rawResponse){t.next=14;break}return t.abrupt("return",u(null,r));case 14:return 1===(o=decodeOutput(v.outputs,"0x"+r.contractResult[0])).length&&(o=o[0]),t.abrupt("return",u(null,o));case 17:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}())(),t.next=41;break;case 38:return t.prev=38,t.t0=t.catch(11),t.abrupt("return",u(t.t0));case 41:case"end":return t.stop()}}),t,this,[[11,38]])}))),function(t,e,r,o,n){return u.apply(this,arguments)})},{key:"withdrawTrc20",value:(s=a()(p.a.mark((function t(e,r,o,n,i){var a,s,c,u=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=u.length>5&&void 0!==u[5]?u[5]:this.mainchain.defaultPrivateKey,s=u.length>6&&void 0!==u[6]&&u[6],c="withdrawal(uint256)",t.abrupt("return",this.withdrawTrc(c,e,r,o,n,i,a,s));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o,n){return s.apply(this,arguments)})},{key:"withdrawTrc721",value:(i=a()(p.a.mark((function t(e,r,o,n,i){var a,s,c,u=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=u.length>5&&void 0!==u[5]?u[5]:this.mainchain.defaultPrivateKey,s=u.length>6&&void 0!==u[6]&&u[6],c="withdrawal(uint256)",t.abrupt("return",this.withdrawTrc(c,e,r,o,n,i,a,s));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,o,n){return i.apply(this,arguments)})},{key:"injectFund",value:(n=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c,u,l,d,f=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=f.length>3&&void 0!==f[3]?f[3]:this.mainchain.defaultPrivateKey,i=f.length>4&&void 0!==f[4]&&f[4],this.utils.isFunction(n)&&(i=n,n=this.mainchain.defaultPrivateKey),this.utils.isFunction(o)&&(i=o,o={}),i){t.next=6;break}return t.abrupt("return",this.injectPromise(this.injectFund,e,r,o,n));case 6:if(!this.validator.notValid([{name:"num",type:"integer",value:e,gte:0},{name:"feeLimit",type:"integer",value:r,gte:0}],i)){t.next=8;break}return t.abrupt("return");case 8:return t.prev=8,a=this.sidechain.address.fromPrivateKey(n),s=this.sidechain.address.toHex(a),t.next=13,this.sidechain.fullNode.request("/wallet/fundinject",{owner_address:s,amount:e},"post");case 13:return c=t.sent,t.next=16,this.sidechain.trx.sign(c,n);case 16:if((u=t.sent).signature){t.next=21;break}if(n){t.next=20;break}return t.abrupt("return",i("Transaction was not signed properly"));case 20:return t.abrupt("return",i("Invalid private key provided"));case 21:return t.next=23,this.sidechain.trx.sendRawTransaction(u);case 23:if(!(l=t.sent).code){t.next=28;break}return d={error:l.code,message:l.code},l.message&&(d.message=this.mainchain.toUtf8(l.message)),t.abrupt("return",i(d));case 28:return t.abrupt("return",i(null,u.txID));case 31:return t.prev=31,t.t0=t.catch(8),t.abrupt("return",i(t.t0));case 34:case"end":return t.stop()}}),t,this,[[8,31]])}))),function(t,e,r){return n.apply(this,arguments)})},{key:"retryWithdraw",value:(o=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>3&&void 0!==c[3]?c[3]:{},i=c.length>4&&void 0!==c[4]?c[4]:this.sidechain.defaultPrivateKey,a=c.length>5&&void 0!==c[5]&&c[5],s="retryWithdraw(uint256)",t.abrupt("return",this.withdrawTrc(s,e,r,o,this.sideGatewayAddress,n,i,a));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})},{key:"retryDeposit",value:(r=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>3&&void 0!==c[3]?c[3]:{},i=c.length>4&&void 0!==c[4]?c[4]:this.mainchain.defaultPrivateKey,a=c.length>5&&void 0!==c[5]&&c[5],s="retryDeposit",t.abrupt("return",this.depositTrc(s,e,r,o,this.mainGatewayAddress,n,i,a));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,o){return r.apply(this,arguments)})},{key:"retryMapping",value:(e=a()(p.a.mark((function t(e,r,o){var n,i,a,s,c=arguments;return p.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>3&&void 0!==c[3]?c[3]:{},i=c.length>4&&void 0!==c[4]?c[4]:this.mainchain.defaultPrivateKey,a=c.length>5&&void 0!==c[5]&&c[5],s="retryMapping",t.abrupt("return",this.depositTrc(s,e,r,o,this.mainGatewayAddress,n,i,a));case 5:case"end":return t.stop()}}),t,this)}))),function(t,r,o){return e.apply(this,arguments)})}]),t}()},,function(t,e,r){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],o=e[1];return 3*(r+o)/4-o},e.toByteArray=function(t){var e,r,o=u(t),a=o[0],s=o[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),l=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],a=0,s=r-n;a<s;a+=16383)i.push(l(t,a,a+16383>s?s:a+16383));1===n?(e=t[r-1],i.push(o[e>>2]+o[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],i.push(o[e>>10]+o[e>>4&63]+o[e<<2&63]+"="));return i.join("")};for(var o=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)o[s]=a[s],n[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,r){for(var n,i,a=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(o[(i=n)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,r,o,n){var i,a,s=8*n-o-1,c=(1<<s)-1,u=c>>1,l=-7,d=r?n-1:0,p=r?-1:1,f=t[e+d];for(d+=p,i=f&(1<<-l)-1,f>>=-l,l+=s;l>0;i=256*i+t[e+d],d+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=o;l>0;a=256*a+t[e+d],d+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),i-=u}return(f?-1:1)*a*Math.pow(2,i-o)},e.write=function(t,e,r,o,n,i){var a,s,c,u=8*i-n-1,l=(1<<u)-1,d=l>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:i-1,h=o?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(e*c-1)*Math.pow(2,n),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,n),a=0));n>=8;t[r+f]=255&s,f+=h,s/=256,n-=8);for(a=a<<n|s,u+=n;u>0;t[r+f]=255&a,f+=h,a/=256,u-=8);t[r+f-h]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){var o=r(22).default;t.exports=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e,o){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var o=r(22).default;function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var n=e&&e.prototype instanceof g?e:g,i=Object.create(n.prototype),s=new O(o||[]);return a(i,"_invoke",{value:C(t,r,s)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function g(){}function y(){}function m(){}var b={};d(b,c,(function(){return this}));var v=Object.getPrototypeOf,A=v&&v(v(T([])));A&&A!==r&&i.call(A,c)&&(b=A);var w=m.prototype=g.prototype=Object.create(b);function M(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function B(t,e){var r;a(this,"_invoke",{value:function(n,a){function s(){return new e((function(r,s){!function r(n,a,s,c){var u=f(t[n],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}(n,a,r,s)}))}return r=r?r.then(s,s):s()}})}function C(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return _()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var c=f(t,e,r);if("normal"===c.type){if(o=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o="completed",r.method="throw",r.arg=c.arg)}}}function E(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var n=f(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return y.prototype=m,a(w,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=d(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,d(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},M(B.prototype),d(B.prototype,u,(function(){return this})),e.AsyncIterator=B,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new B(p(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},M(w),d(w,l,"Generator"),d(w,c,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var o in e)r.push(o);return r.reverse(),function t(){for(;r.length;){var o=r.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=void 0),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(s&&c){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=t,a.arg=e,n?(this.method="next",this.next=n.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;I(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";var o=r(18),n=r(72),i=r(125),a=r(79);var s=function t(e){var r=new i(e),s=n(i.prototype.request,r);return o.extend(s,i.prototype,r),o.extend(s,r),s.create=function(r){return t(a(e,r))},s}(r(56));s.Axios=i,s.Cancel=r(45),s.CancelToken=r(138),s.isCancel=r(78),s.VERSION=r(80).version,s.all=function(t){return Promise.all(t)},s.spread=r(139),s.isAxiosError=r(140),t.exports=s,t.exports.default=s},function(t,e,r){"use strict";var o=r(18),n=r(73),i=r(126),a=r(127),s=r(79),c=r(137),u=c.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var o=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)})),!n){var d=[a,void 0];for(Array.prototype.unshift.apply(d,o),d=d.concat(l),i=Promise.resolve(e);d.length;)i=i.then(d.shift(),d.shift());return i}for(var p=e;o.length;){var f=o.shift(),h=o.shift();try{p=f(p)}catch(t){h(t);break}}try{i=a(p)}catch(t){return Promise.reject(t)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},l.prototype.getUri=function(t){return t=s(this.defaults,t),n(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),o.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,r,o){return this.request(s(o||{},{method:t,url:e,data:r}))}})),t.exports=l},function(t,e,r){"use strict";var o=r(18);function n(){this.handlers=[]}n.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){o.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=n},function(t,e,r){"use strict";var o=r(18),n=r(128),i=r(78),a=r(56),s=r(45);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=n.call(t,t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=n.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=n.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,r){"use strict";var o=r(18),n=r(56);t.exports=function(t,e,r){var i=this||n;return o.forEach(r,(function(r){t=r.call(i,t,e)})),t}},function(t,e,r){"use strict";var o=r(18);t.exports=function(t,e){o.forEach(t,(function(r,o){o!==e&&o.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[o])}))}},function(t,e,r){"use strict";var o=r(77);t.exports=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(o("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";var o=r(18);t.exports=o.isStandardBrowserEnv()?{write:function(t,e,r,n,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),o.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),o.isString(n)&&s.push("path="+n),o.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,r){"use strict";var o=r(133),n=r(134);t.exports=function(t,e){return t&&!o(e)?n(t,e):e}},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var o=r(18),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,a={};return t?(o.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=o.trim(t.substr(0,i)).toLowerCase(),r=o.trim(t.substr(i+1)),e){if(a[e]&&n.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},function(t,e,r){"use strict";var o=r(18);t.exports=o.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var o=t;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=o.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(t,e,r){"use strict";var o=r(80).version,n={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){n[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={};n.transitional=function(t,e,r){function n(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,a){if(!1===t)throw new Error(n(o," has been removed"+(e?" in "+e:"")));return e&&!i[o]&&(i[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,a)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var o=Object.keys(t),n=o.length;n-- >0;){var i=o[n],a=e[i];if(a){var s=t[i],c=void 0===s||a(s,i,t);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:n}},function(t,e,r){"use strict";var o=r(45);function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,o=r._listeners.length;for(e=0;e<o;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,o=new Promise((function(t){r.subscribe(t),e=t})).then(t);return o.cancel=function(){r.unsubscribe(e)},o},t((function(t){r.reason||(r.reason=new o(t),e(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},n.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},n.source=function(){var t;return{token:new n((function(e){t=e})),cancel:t}},t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";var o=r(18);t.exports=function(t){return o.isObject(t)&&!0===t.isAxiosError}},function(t,e,r){var o=r(81);t.exports=function(t){if(Array.isArray(t))return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t){t.exports=JSON.parse('{"_args":[["elliptic@6.5.4","/Volumes/CATHY/work/Github/tronweb"]],"_from":"elliptic@6.5.4","_id":"elliptic@6.5.4","_inBundle":false,"_integrity":"sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.4","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.4","saveSpec":null,"fetchSpec":"6.5.4"},"_requiredBy":["/","/@ethersproject/signing-key","/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz","_spec":"6.5.4","_where":"/Volumes/CATHY/work/Github/tronweb","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},"description":"EC cryptography","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.4"}')},function(t,e){},function(t,e){},function(t,e,r){"use strict";var o=r(24),n=r(29),i=r(47),a=r(46),s=o.assert;function c(t){a.call(this,"short",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(t,e,r,o){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(e,16),this.y=new n(r,16),o&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,r,o){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===o?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(e,16),this.y=new n(r,16),this.z=new n(o,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(c,a),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new n(t.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);e=(e=o[0].cmp(o[1])<0?o[0]:o[1]).toRed(this.red)}if(t.lambda)r=new n(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new n(t.a,16),b:new n(t.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:n.mont(t),r=new n(2).toRed(e).redInvm(),o=r.redNeg(),i=new n(3).toRed(e).redNeg().redSqrt().redMul(r);return[o.redAdd(i).fromRed(),o.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,r,o,i,a,s,c,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=t,f=this.n.clone(),h=new n(1),g=new n(0),y=new n(0),m=new n(1),b=0;0!==p.cmpn(0);){var v=f.div(p);u=f.sub(v.mul(p)),l=y.sub(v.mul(h));var A=m.sub(v.mul(g));if(!o&&u.cmp(d)<0)e=c.neg(),r=h,o=u.neg(),i=l;else if(o&&2==++b)break;c=u,f=p,p=u,y=h,h=l,m=g,g=A}a=u.neg(),s=l;var w=o.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=e,s=r),o.negative&&(o=o.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:o,b:i},{a:a,b:s}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],o=e[1],n=o.b.mul(t).divRound(this.n),i=r.b.neg().mul(t).divRound(this.n),a=n.mul(r.a),s=i.mul(o.a),c=n.mul(r.b),u=i.mul(o.b);return{k1:t.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(t,e){(t=new n(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),o=r.redSqrt();if(0!==o.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=o.fromRed().isOdd();return(e&&!i||!e&&i)&&(o=o.redNeg()),this.point(t,o)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,o=this.a.redMul(e),n=e.redSqr().redMul(e).redIAdd(o).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,r){for(var o=this._endoWnafT1,n=this._endoWnafT2,i=0;i<t.length;i++){var a=this._endoSplit(e[i]),s=t[i],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),o[2*i]=s,o[2*i+1]=c,n[2*i]=a.k1,n[2*i+1]=a.k2}for(var u=this._wnafMulAdd(1,o,n,2*i,r),l=0;l<2*i;l++)o[l]=null,n[l]=null;return u},i(u,a.BasePoint),c.prototype.point=function(t,e,r){return new u(this,t,e,r)},c.prototype.pointFromJSON=function(t,e){return u.fromJSON(this,t,e)},u.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,o=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(o)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(o)}}}return e}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var o=t.point(e[0],e[1],r);if(!e[2])return o;function n(e){return t.point(e[0],e[1],r)}var i=e[2];return o.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[o].concat(i.doubles.points.map(n))},naf:i.naf&&{wnd:i.naf.wnd,points:[o].concat(i.naf.points.map(n))}},o},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),o=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,o)},u.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),o=t.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(o),i=n.redSqr().redISub(this.x.redAdd(this.x)),a=n.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(t){return t=new n(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,r){var o=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(o,n):this.curve._wnafMulAdd(1,o,n,2)},u.prototype.jmulAdd=function(t,e,r){var o=[this,e],n=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(o,n,!0):this.curve._wnafMulAdd(1,o,n,2,!0)},u.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},u.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,o=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(o)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(o)}}}return e},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(l,a.BasePoint),c.prototype.jpoint=function(t,e,r){return new l(this,t,e,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),o=this.y.redMul(e).redMul(t);return this.curve.point(r,o)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),o=this.x.redMul(e),n=t.x.redMul(r),i=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=o.redSub(n),c=i.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=o.redMul(u),p=c.redSqr().redIAdd(l).redISub(d).redISub(d),f=c.redMul(d.redISub(p)).redISub(i.redMul(l)),h=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(p,f,h)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,o=t.x.redMul(e),n=this.y,i=t.y.redMul(e).redMul(this.z),a=r.redSub(o),s=n.redSub(i);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),p=s.redMul(l.redISub(d)).redISub(n.redMul(u)),f=this.z.redMul(a);return this.curve.jpoint(d,p,f)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var o=this.curve.a,n=this.curve.tinv,i=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a);for(e=0;e<t;e++){var l=i.redSqr(),d=u.redSqr(),p=d.redSqr(),f=l.redAdd(l).redIAdd(l).redIAdd(o.redMul(c)),h=i.redMul(d),g=f.redSqr().redISub(h.redAdd(h)),y=h.redISub(g),m=f.redMul(y);m=m.redIAdd(m).redISub(p);var b=u.redMul(s);e+1<t&&(c=c.redMul(p)),i=g,s=b,u=m}return this.curve.jpoint(i,u.redMul(n),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var o=this.x.redSqr(),n=this.y.redSqr(),i=n.redSqr(),a=this.x.redAdd(n).redSqr().redISub(o).redISub(i);a=a.redIAdd(a);var s=o.redAdd(o).redIAdd(o),c=s.redSqr().redISub(a).redISub(a),u=i.redIAdd(i);u=(u=u.redIAdd(u)).redIAdd(u),t=c,e=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),d=this.y.redSqr(),p=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(l).redISub(p);f=f.redIAdd(f);var h=l.redAdd(l).redIAdd(l),g=h.redSqr(),y=p.redIAdd(p);y=(y=y.redIAdd(y)).redIAdd(y),t=g.redISub(f).redISub(f),e=h.redMul(f.redISub(t)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},l.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var o=this.x.redSqr(),n=this.y.redSqr(),i=n.redSqr(),a=this.x.redAdd(n).redSqr().redISub(o).redISub(i);a=a.redIAdd(a);var s=o.redAdd(o).redIAdd(o).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);t=c;var u=i.redIAdd(i);u=(u=u.redIAdd(u)).redIAdd(u),e=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),d=this.y.redSqr(),p=this.x.redMul(d),f=this.x.redSub(l).redMul(this.x.redAdd(l));f=f.redAdd(f).redIAdd(f);var h=p.redIAdd(p),g=(h=h.redIAdd(h)).redAdd(h);t=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(l);var y=d.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),e=f.redMul(h.redISub(t)).redISub(y)}return this.curve.jpoint(t,e,r)},l.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,o=this.z,n=o.redSqr().redSqr(),i=e.redSqr(),a=r.redSqr(),s=i.redAdd(i).redIAdd(i).redIAdd(t.redMul(n)),c=e.redAdd(e),u=(c=c.redIAdd(c)).redMul(a),l=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(l),p=a.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=s.redMul(d).redISub(p),h=r.redAdd(r).redMul(o);return this.curve.jpoint(l,f,h)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),o=e.redSqr(),n=t.redAdd(t).redIAdd(t),i=n.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(o),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(i)).redSqr(),c=o.redIAdd(o);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=n.redIAdd(a).redSqr().redISub(i).redISub(s).redISub(c),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.x.redMul(s).redISub(l);d=(d=d.redIAdd(d)).redIAdd(d);var p=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var f=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,p,f)},l.prototype.mul=function(t,e){return t=new n(t,e),this.curve._wnafMul(this,t)},l.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var o=e.redMul(this.z),n=r.redMul(t.z);return 0===this.y.redMul(n).redISub(t.y.redMul(o)).cmpn(0)},l.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var o=t.clone(),n=this.curve.redN.redMul(e);;){if(o.iadd(this.curve.n),o.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var o=r(29),n=r(47),i=r(46),a=r(24);function s(t){i.call(this,"mont",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,r){i.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(e,16),this.z=new o(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(s,i),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),o=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===o.redSqrt().redSqr().cmp(o)},n(c,i.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new c(this,t,e)},s.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),o=t.redMul(e),n=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(o,n)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),o=this.x.redSub(this.z),n=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(r),a=n.redMul(o),s=e.z.redMul(i.redAdd(a).redSqr()),c=e.x.redMul(i.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(t){for(var e=t.clone(),r=this,o=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var i=n.length-1;i>=0;i--)0===n[i]?(r=r.diffAdd(o,this),o=o.dbl()):(o=r.diffAdd(o,this),r=r.dbl());return o},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var o=r(24),n=r(29),i=r(47),a=r(46),s=o.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new n(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function u(t,e,r,o,i){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===o?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(e,16),this.y=new n(r,16),this.z=o?new n(o,16):this.curve.one,this.t=i&&new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(c,a),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,r,o){return this.point(t,e,r,o)},c.prototype.pointFromX=function(t,e){(t=new n(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),o=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=o.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(e&&!c||!e&&c)&&(s=s.redNeg()),this.point(t,s)},c.prototype.pointFromY=function(t,e){(t=new n(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),o=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=o.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),o=e.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===o.cmp(n)},i(u,a.BasePoint),c.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},c.prototype.point=function(t,e,r,o){return new u(this,t,e,r,o)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var o=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),i=o.redAdd(e),a=i.redSub(r),s=o.redSub(e),c=n.redMul(a),u=i.redMul(s),l=n.redMul(s),d=a.redMul(i);return this.curve.point(c,u,d,l)},u.prototype._projDbl=function(){var t,e,r,o,n,i,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(o=this.curve._mulA(s)).redAdd(c);this.zOne?(t=a.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),e=u.redMul(o.redSub(c)),r=u.redSqr().redSub(u).redSub(u)):(n=this.z.redSqr(),i=u.redSub(n).redISub(n),t=a.redSub(s).redISub(c).redMul(i),e=u.redMul(o.redSub(c)),r=u.redMul(i))}else o=s.redAdd(c),n=this.curve._mulC(this.z).redSqr(),i=o.redSub(n).redSub(n),t=this.curve._mulC(a.redISub(o)).redMul(i),e=this.curve._mulC(o).redMul(s.redISub(c)),r=o.redMul(i);return this.curve.point(t,e,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),o=this.t.redMul(this.curve.dd).redMul(t.t),n=this.z.redMul(t.z.redAdd(t.z)),i=r.redSub(e),a=n.redSub(o),s=n.redAdd(o),c=r.redAdd(e),u=i.redMul(a),l=s.redMul(c),d=i.redMul(c),p=a.redMul(s);return this.curve.point(u,l,p,d)},u.prototype._projAdd=function(t){var e,r,o=this.z.redMul(t.z),n=o.redSqr(),i=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(i).redMul(a),c=n.redSub(s),u=n.redAdd(s),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(a),d=o.redMul(c).redMul(l);return this.curve.twisted?(e=o.redMul(u).redMul(a.redSub(this.curve._mulA(i))),r=c.redMul(u)):(e=o.redMul(u).redMul(a.redSub(i)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,e,r)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},u.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),o=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(o),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,r){"use strict";e.sha1=r(151),e.sha224=r(152),e.sha256=r(87),e.sha384=r(153),e.sha512=r(88)},function(t,e,r){"use strict";var o=r(27),n=r(40),i=r(86),a=o.rotl32,s=o.sum32,c=o.sum32_5,u=i.ft_1,l=n.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}o.inherits(p,l),t.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(t,e){for(var r=this.W,o=0;o<16;o++)r[o]=t[e+o];for(;o<r.length;o++)r[o]=a(r[o-3]^r[o-8]^r[o-14]^r[o-16],1);var n=this.h[0],i=this.h[1],l=this.h[2],p=this.h[3],f=this.h[4];for(o=0;o<r.length;o++){var h=~~(o/20),g=c(a(n,5),u(h,i,l,p),f,r[o],d[h]);f=p,p=l,l=a(i,30),i=n,n=g}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],p),this.h[4]=s(this.h[4],f)},p.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},function(t,e,r){"use strict";var o=r(27),n=r(87);function i(){if(!(this instanceof i))return new i;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}o.inherits(i,n),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h.slice(0,7),"big"):o.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var o=r(27),n=r(88);function i(){if(!(this instanceof i))return new i;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}o.inherits(i,n),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h.slice(0,12),"big"):o.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var o=r(27),n=r(40),i=o.rotl32,a=o.sum32,s=o.sum32_3,c=o.sum32_4,u=n.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(t,e,r,o){return t<=15?e^r^o:t<=31?e&r|~e&o:t<=47?(e|~r)^o:t<=63?e&o|r&~o:e^(r|~o)}function p(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}o.inherits(l,u),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.h[0],o=this.h[1],n=this.h[2],u=this.h[3],l=this.h[4],b=r,v=o,A=n,w=u,M=l,B=0;B<80;B++){var C=a(i(c(r,d(B,o,n,u),t[h[B]+e],p(B)),y[B]),l);r=l,l=u,u=i(n,10),n=o,o=C,C=a(i(c(b,d(79-B,v,A,w),t[g[B]+e],f(B)),m[B]),M),b=M,M=w,w=i(A,10),A=v,v=C}C=s(this.h[1],n,w),this.h[1]=s(this.h[2],u,M),this.h[2]=s(this.h[3],l,b),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],o,A),this.h[0]=C},l.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h,"little"):o.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,r){"use strict";var o=r(27),n=r(37);function i(t,e,r){if(!(this instanceof i))return new i(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(o.toArray(e,r))}t.exports=i,i.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},i.prototype.update=function(t,e){return this.inner.update(t,e),this},i.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,r){"use strict";var o=r(29),n=r(158),i=r(24),a=r(58),s=r(84),c=i.assert,u=r(159),l=r(160);function d(t){if(!(this instanceof d))return new d(t);"string"==typeof t&&(c(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=d,d.prototype.keyPair=function(t){return new u(this,t)},d.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},d.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},d.prototype.genKeyPair=function(t){t||(t={});for(var e=new n({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new o(2));;){var a=new o(e.generate(r));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},d.prototype.sign=function(t,e,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new o(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),c=t.toArray("be",a),u=new n({hash:this.hash,entropy:s,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),d=this.n.sub(new o(1)),p=0;;p++){var f=i.k?i.k(p):new o(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var h=this.g.mul(f);if(!h.isInfinity()){var g=h.getX(),y=g.umod(this.n);if(0!==y.cmpn(0)){var m=f.invm(this.n).mul(y.mul(e.getPrivate()).iadd(t));if(0!==(m=m.umod(this.n)).cmpn(0)){var b=(h.getY().isOdd()?1:0)|(0!==g.cmp(y)?2:0);return i.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),b^=1),new l({r:y,s:m,recoveryParam:b})}}}}}},d.prototype.verify=function(t,e,r,n){t=this._truncateToN(new o(t,16)),r=this.keyFromPublic(r,n);var i=(e=new l(e,"hex")).r,a=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(t).umod(this.n),d=c.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),d)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},d.prototype.recoverPubKey=function(t,e,r,n){c((3&r)===r,"The recovery param is more than two bits"),e=new l(e,n);var i=this.n,a=new o(t),s=e.r,u=e.s,d=1&r,p=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw new Error("Unable to find sencond key candinate");s=p?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=e.r.invm(i),h=i.sub(a).mul(f).umod(i),g=u.mul(f).umod(i);return this.g.mulAdd(h,s,g)},d.prototype.getKeyRecoveryParam=function(t,e,r,o){if(null!==(e=new l(e,o)).recoveryParam)return e.recoveryParam;for(var n=0;n<4;n++){var i;try{i=this.recoverPubKey(t,e,n)}catch(t){continue}if(i.eq(r))return n}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var o=r(16),n=r(83),i=r(37);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=n.toArray(t.entropy,t.entropyEnc||"hex"),r=n.toArray(t.nonce,t.nonceEnc||"hex"),o=n.toArray(t.pers,t.persEnc||"hex");i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,o)}t.exports=a,a.prototype._init=function(t,e,r){var o=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(o),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new o.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,r,o){"string"!=typeof e&&(o=r,r=e,e=null),t=n.toArray(t,e),r=n.toArray(r,o),i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,o){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(o=r,r=e,e=null),r&&(r=n.toArray(r,o||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,t);return this._update(r),this._reseed++,n.encode(a,e)}},function(t,e,r){"use strict";var o=r(29),n=r(24).assert;function i(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=i,i.fromPublic=function(t,e,r){return e instanceof i?e:new i(t,{pub:e,pubEnc:r})},i.fromPrivate=function(t,e,r){return e instanceof i?e:new i(t,{priv:e,privEnc:r})},i.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},i.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(t,e){this.priv=new o(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?n(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},i.prototype.derive=function(t){return t.validate()||n(t.validate(),"public point not validated"),t.mul(this.priv).getX()},i.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},i.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";var o=r(29),n=r(24),i=n.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(i(t.r&&t.s,"Signature without r or s"),this.r=new o(t.r,16),this.s=new o(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function c(t,e){var r=t[e.place++];if(!(128&r))return r;var o=15&r;if(0===o||o>4)return!1;for(var n=0,i=0,a=e.place;i<o;i++,a++)n<<=8,n|=t[a],n>>>=0;return!(n<=127)&&(e.place=a,n)}function u(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=n.toArray(t,e);var r=new s;if(48!==t[r.place++])return!1;var i=c(t,r);if(!1===i)return!1;if(i+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=c(t,r);if(!1===a)return!1;var u=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var l=c(t,r);if(!1===l)return!1;if(t.length!==l+r.place)return!1;var d=t.slice(r.place,l+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new o(u),this.s=new o(d),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=u(e),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var o=[2];l(o,e.length),(o=o.concat(e)).push(2),l(o,r.length);var i=o.concat(r),a=[48];return l(a,i.length),a=a.concat(i),n.encode(a,t)}},function(t,e,r){"use strict";var o=r(16),n=r(58),i=r(24),a=i.assert,s=i.parseBytes,c=r(162),u=r(163);function l(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=n[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=o.sha512}t.exports=l,l.prototype.sign=function(t,e){t=s(t);var r=this.keyFromSecret(e),o=this.hashInt(r.messagePrefix(),t),n=this.g.mul(o),i=this.encodePoint(n),a=this.hashInt(i,r.pubBytes(),t).mul(r.priv()),c=o.add(a).umod(this.curve.n);return this.makeSignature({R:n,S:c,Rencoded:i})},l.prototype.verify=function(t,e,r){t=s(t),e=this.makeSignature(e);var o=this.keyFromPublic(r),n=this.hashInt(e.Rencoded(),o.pubBytes(),t),i=this.g.mul(e.S());return e.R().add(o.pub().mul(n)).eq(i)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return i.intFromLE(t.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},l.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},l.prototype.makeSignature=function(t){return t instanceof u?t:new u(this,t)},l.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},l.prototype.decodePoint=function(t){var e=(t=i.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),o=0!=(128&t[e]),n=i.intFromLE(r);return this.curve.pointFromY(n,o)},l.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(t){return i.intFromLE(t)},l.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var o=r(24),n=o.assert,i=o.parseBytes,a=o.cachedProperty;function s(t,e){this.eddsa=t,this._secret=i(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=i(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,o=e.slice(0,t.encodingLength);return o[0]&=248,o[r]&=127,o[r]|=64,o})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return n(this._secret,"KeyPair is public only"),o.encode(this.secret(),t)},s.prototype.getPublic=function(t){return o.encode(this.pubBytes(),t)},t.exports=s},function(t,e,r){"use strict";var o=r(29),n=r(24),i=n.assert,a=n.cachedProperty,s=n.parseBytes;function c(t,e){this.eddsa=t,"object"!=typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),i(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof o&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},function(t,e){},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){},function(t,e,r){(function(t){var o=void 0!==t&&t||"undefined"!=typeof self&&self||window,n=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(n.call(setTimeout,o,arguments),clearTimeout)},e.setInterval=function(){return new i(n.call(setInterval,o,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(168),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(36))},function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var o,n,i,a,s,c=1,u={},l=!1,d=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?o=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},o=function(t){i.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(n=d.documentElement,o=function(t){var e=d.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):o=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),o=function(e){t.postMessage(a+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return u[c]=n,o(c),c++},p.clearImmediate=f}function f(t){delete u[t]}function h(t){if(l)setTimeout(h,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{f(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,r(36),r(44))},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null),a=r(91);n.object.extend(proto,a),n.exportSymbol("proto.protocol.AccountBalanceRequest",null,i),n.exportSymbol("proto.protocol.AccountBalanceResponse",null,i),n.exportSymbol("proto.protocol.AccountIdentifier",null,i),n.exportSymbol("proto.protocol.AccountTrace",null,i),n.exportSymbol("proto.protocol.BlockBalanceTrace",null,i),n.exportSymbol("proto.protocol.BlockBalanceTrace.BlockIdentifier",null,i),n.exportSymbol("proto.protocol.DelegateResourceContract",null,i),n.exportSymbol("proto.protocol.FreezeBalanceContract",null,i),n.exportSymbol("proto.protocol.FreezeBalanceV2Contract",null,i),n.exportSymbol("proto.protocol.TransactionBalanceTrace",null,i),n.exportSymbol("proto.protocol.TransactionBalanceTrace.Operation",null,i),n.exportSymbol("proto.protocol.TransferContract",null,i),n.exportSymbol("proto.protocol.UnDelegateResourceContract",null,i),n.exportSymbol("proto.protocol.UnfreezeBalanceContract",null,i),n.exportSymbol("proto.protocol.UnfreezeBalanceV2Contract",null,i),n.exportSymbol("proto.protocol.WithdrawBalanceContract",null,i),n.exportSymbol("proto.protocol.WithdrawExpireUnfreezeContract",null,i),proto.protocol.FreezeBalanceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.FreezeBalanceContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.FreezeBalanceContract.displayName="proto.protocol.FreezeBalanceContract"),proto.protocol.UnfreezeBalanceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UnfreezeBalanceContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UnfreezeBalanceContract.displayName="proto.protocol.UnfreezeBalanceContract"),proto.protocol.WithdrawBalanceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.WithdrawBalanceContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.WithdrawBalanceContract.displayName="proto.protocol.WithdrawBalanceContract"),proto.protocol.TransferContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.TransferContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.TransferContract.displayName="proto.protocol.TransferContract"),proto.protocol.TransactionBalanceTrace=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.TransactionBalanceTrace.repeatedFields_,null)},n.inherits(proto.protocol.TransactionBalanceTrace,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.TransactionBalanceTrace.displayName="proto.protocol.TransactionBalanceTrace"),proto.protocol.TransactionBalanceTrace.Operation=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.TransactionBalanceTrace.Operation,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.TransactionBalanceTrace.Operation.displayName="proto.protocol.TransactionBalanceTrace.Operation"),proto.protocol.BlockBalanceTrace=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.BlockBalanceTrace.repeatedFields_,null)},n.inherits(proto.protocol.BlockBalanceTrace,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.BlockBalanceTrace.displayName="proto.protocol.BlockBalanceTrace"),proto.protocol.BlockBalanceTrace.BlockIdentifier=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.BlockBalanceTrace.BlockIdentifier,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.BlockBalanceTrace.BlockIdentifier.displayName="proto.protocol.BlockBalanceTrace.BlockIdentifier"),proto.protocol.AccountTrace=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AccountTrace,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountTrace.displayName="proto.protocol.AccountTrace"),proto.protocol.AccountIdentifier=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AccountIdentifier,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountIdentifier.displayName="proto.protocol.AccountIdentifier"),proto.protocol.AccountBalanceRequest=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AccountBalanceRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountBalanceRequest.displayName="proto.protocol.AccountBalanceRequest"),proto.protocol.AccountBalanceResponse=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AccountBalanceResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountBalanceResponse.displayName="proto.protocol.AccountBalanceResponse"),proto.protocol.FreezeBalanceV2Contract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.FreezeBalanceV2Contract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.FreezeBalanceV2Contract.displayName="proto.protocol.FreezeBalanceV2Contract"),proto.protocol.UnfreezeBalanceV2Contract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UnfreezeBalanceV2Contract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UnfreezeBalanceV2Contract.displayName="proto.protocol.UnfreezeBalanceV2Contract"),proto.protocol.WithdrawExpireUnfreezeContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.WithdrawExpireUnfreezeContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.WithdrawExpireUnfreezeContract.displayName="proto.protocol.WithdrawExpireUnfreezeContract"),proto.protocol.DelegateResourceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.DelegateResourceContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.DelegateResourceContract.displayName="proto.protocol.DelegateResourceContract"),proto.protocol.UnDelegateResourceContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UnDelegateResourceContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UnDelegateResourceContract.displayName="proto.protocol.UnDelegateResourceContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.FreezeBalanceContract.prototype.toObject=function(t){return proto.protocol.FreezeBalanceContract.toObject(t,this)},proto.protocol.FreezeBalanceContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),frozenBalance:o.Message.getFieldWithDefault(e,2,0),frozenDuration:o.Message.getFieldWithDefault(e,3,0),resource:o.Message.getFieldWithDefault(e,10,0),receiverAddress:e.getReceiverAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.FreezeBalanceContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.FreezeBalanceContract;return proto.protocol.FreezeBalanceContract.deserializeBinaryFromReader(r,e)},proto.protocol.FreezeBalanceContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setFrozenBalance(r);break;case 3:r=e.readInt64();t.setFrozenDuration(r);break;case 10:r=e.readEnum();t.setResource(r);break;case 15:r=e.readBytes();t.setReceiverAddress(r);break;default:e.skipField()}}return t},proto.protocol.FreezeBalanceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.FreezeBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.FreezeBalanceContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getFrozenBalance())&&e.writeInt64(2,r),0!==(r=t.getFrozenDuration())&&e.writeInt64(3,r),0!==(r=t.getResource())&&e.writeEnum(10,r),(r=t.getReceiverAddress_asU8()).length>0&&e.writeBytes(15,r)},proto.protocol.FreezeBalanceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.FreezeBalanceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.FreezeBalanceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.FreezeBalanceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.FreezeBalanceContract.prototype.getFrozenBalance=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.FreezeBalanceContract.prototype.setFrozenBalance=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.FreezeBalanceContract.prototype.getFrozenDuration=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.FreezeBalanceContract.prototype.setFrozenDuration=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.FreezeBalanceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.FreezeBalanceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,10,t)},proto.protocol.FreezeBalanceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,15,"")},proto.protocol.FreezeBalanceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.FreezeBalanceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.FreezeBalanceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,15,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnfreezeBalanceContract.prototype.toObject=function(t){return proto.protocol.UnfreezeBalanceContract.toObject(t,this)},proto.protocol.UnfreezeBalanceContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),resource:o.Message.getFieldWithDefault(e,10,0),receiverAddress:e.getReceiverAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UnfreezeBalanceContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UnfreezeBalanceContract;return proto.protocol.UnfreezeBalanceContract.deserializeBinaryFromReader(r,e)},proto.protocol.UnfreezeBalanceContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 10:r=e.readEnum();t.setResource(r);break;case 15:r=e.readBytes();t.setReceiverAddress(r);break;default:e.skipField()}}return t},proto.protocol.UnfreezeBalanceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UnfreezeBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UnfreezeBalanceContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getResource())&&e.writeEnum(10,r),(r=t.getReceiverAddress_asU8()).length>0&&e.writeBytes(15,r)},proto.protocol.UnfreezeBalanceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnfreezeBalanceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UnfreezeBalanceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.UnfreezeBalanceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,10,t)},proto.protocol.UnfreezeBalanceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,15,"")},proto.protocol.UnfreezeBalanceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.UnfreezeBalanceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.UnfreezeBalanceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,15,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WithdrawBalanceContract.prototype.toObject=function(t){return proto.protocol.WithdrawBalanceContract.toObject(t,this)},proto.protocol.WithdrawBalanceContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.WithdrawBalanceContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.WithdrawBalanceContract;return proto.protocol.WithdrawBalanceContract.deserializeBinaryFromReader(r,e)},proto.protocol.WithdrawBalanceContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;default:e.skipField()}}return t},proto.protocol.WithdrawBalanceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.WithdrawBalanceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.WithdrawBalanceContract.serializeBinaryToWriter=function(t,e){var r;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r)},proto.protocol.WithdrawBalanceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WithdrawBalanceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WithdrawBalanceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WithdrawBalanceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransferContract.prototype.toObject=function(t){return proto.protocol.TransferContract.toObject(t,this)},proto.protocol.TransferContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),toAddress:e.getToAddress_asB64(),amount:o.Message.getFieldWithDefault(e,3,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.TransferContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.TransferContract;return proto.protocol.TransferContract.deserializeBinaryFromReader(r,e)},proto.protocol.TransferContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setToAddress(r);break;case 3:r=e.readInt64();t.setAmount(r);break;default:e.skipField()}}return t},proto.protocol.TransferContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TransferContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TransferContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getToAddress_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getAmount())&&e.writeInt64(3,r)},proto.protocol.TransferContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TransferContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.TransferContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.TransferContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.TransferContract.prototype.getToAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TransferContract.prototype.getToAddress_asB64=function(){return o.Message.bytesAsB64(this.getToAddress())},proto.protocol.TransferContract.prototype.getToAddress_asU8=function(){return o.Message.bytesAsU8(this.getToAddress())},proto.protocol.TransferContract.prototype.setToAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.TransferContract.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.TransferContract.prototype.setAmount=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.TransactionBalanceTrace.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransactionBalanceTrace.prototype.toObject=function(t){return proto.protocol.TransactionBalanceTrace.toObject(t,this)},proto.protocol.TransactionBalanceTrace.toObject=function(t,e){var r={transactionIdentifier:e.getTransactionIdentifier_asB64(),operationList:o.Message.toObjectList(e.getOperationList(),proto.protocol.TransactionBalanceTrace.Operation.toObject,t),type:o.Message.getFieldWithDefault(e,3,""),status:o.Message.getFieldWithDefault(e,4,"")};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.TransactionBalanceTrace.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.TransactionBalanceTrace;return proto.protocol.TransactionBalanceTrace.deserializeBinaryFromReader(r,e)},proto.protocol.TransactionBalanceTrace.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setTransactionIdentifier(r);break;case 2:r=new proto.protocol.TransactionBalanceTrace.Operation;e.readMessage(r,proto.protocol.TransactionBalanceTrace.Operation.deserializeBinaryFromReader),t.addOperation(r);break;case 3:r=e.readString();t.setType(r);break;case 4:r=e.readString();t.setStatus(r);break;default:e.skipField()}}return t},proto.protocol.TransactionBalanceTrace.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TransactionBalanceTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TransactionBalanceTrace.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getTransactionIdentifier_asU8()).length>0&&e.writeBytes(1,r),(r=t.getOperationList()).length>0&&e.writeRepeatedMessage(2,r,proto.protocol.TransactionBalanceTrace.Operation.serializeBinaryToWriter),(r=t.getType()).length>0&&e.writeString(3,r),(r=t.getStatus()).length>0&&e.writeString(4,r)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransactionBalanceTrace.Operation.prototype.toObject=function(t){return proto.protocol.TransactionBalanceTrace.Operation.toObject(t,this)},proto.protocol.TransactionBalanceTrace.Operation.toObject=function(t,e){var r={operationIdentifier:o.Message.getFieldWithDefault(e,1,0),address:e.getAddress_asB64(),amount:o.Message.getFieldWithDefault(e,3,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.TransactionBalanceTrace.Operation.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.TransactionBalanceTrace.Operation;return proto.protocol.TransactionBalanceTrace.Operation.deserializeBinaryFromReader(r,e)},proto.protocol.TransactionBalanceTrace.Operation.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setOperationIdentifier(r);break;case 2:r=e.readBytes();t.setAddress(r);break;case 3:r=e.readInt64();t.setAmount(r);break;default:e.skipField()}}return t},proto.protocol.TransactionBalanceTrace.Operation.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TransactionBalanceTrace.Operation.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TransactionBalanceTrace.Operation.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getOperationIdentifier())&&e.writeInt64(1,r),(r=t.getAddress_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getAmount())&&e.writeInt64(3,r)},proto.protocol.TransactionBalanceTrace.Operation.prototype.getOperationIdentifier=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.TransactionBalanceTrace.Operation.prototype.setOperationIdentifier=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.TransactionBalanceTrace.Operation.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.TransactionBalanceTrace.Operation.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.TransactionBalanceTrace.Operation.prototype.setAmount=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.TransactionBalanceTrace.prototype.getTransactionIdentifier=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TransactionBalanceTrace.prototype.getTransactionIdentifier_asB64=function(){return o.Message.bytesAsB64(this.getTransactionIdentifier())},proto.protocol.TransactionBalanceTrace.prototype.getTransactionIdentifier_asU8=function(){return o.Message.bytesAsU8(this.getTransactionIdentifier())},proto.protocol.TransactionBalanceTrace.prototype.setTransactionIdentifier=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.TransactionBalanceTrace.prototype.getOperationList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.TransactionBalanceTrace.Operation,2)},proto.protocol.TransactionBalanceTrace.prototype.setOperationList=function(t){return o.Message.setRepeatedWrapperField(this,2,t)},proto.protocol.TransactionBalanceTrace.prototype.addOperation=function(t,e){return o.Message.addToRepeatedWrapperField(this,2,t,proto.protocol.TransactionBalanceTrace.Operation,e)},proto.protocol.TransactionBalanceTrace.prototype.clearOperationList=function(){return this.setOperationList([])},proto.protocol.TransactionBalanceTrace.prototype.getType=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.TransactionBalanceTrace.prototype.setType=function(t){return o.Message.setProto3StringField(this,3,t)},proto.protocol.TransactionBalanceTrace.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.TransactionBalanceTrace.prototype.setStatus=function(t){return o.Message.setProto3StringField(this,4,t)},proto.protocol.BlockBalanceTrace.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BlockBalanceTrace.prototype.toObject=function(t){return proto.protocol.BlockBalanceTrace.toObject(t,this)},proto.protocol.BlockBalanceTrace.toObject=function(t,e){var r,n={blockIdentifier:(r=e.getBlockIdentifier())&&proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,r),timestamp:o.Message.getFieldWithDefault(e,2,0),transactionBalanceTraceList:o.Message.toObjectList(e.getTransactionBalanceTraceList(),proto.protocol.TransactionBalanceTrace.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.BlockBalanceTrace.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.BlockBalanceTrace;return proto.protocol.BlockBalanceTrace.deserializeBinaryFromReader(r,e)},proto.protocol.BlockBalanceTrace.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=new proto.protocol.BlockBalanceTrace.BlockIdentifier;e.readMessage(r,proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(r);break;case 2:r=e.readInt64();t.setTimestamp(r);break;case 3:r=new proto.protocol.TransactionBalanceTrace;e.readMessage(r,proto.protocol.TransactionBalanceTrace.deserializeBinaryFromReader),t.addTransactionBalanceTrace(r);break;default:e.skipField()}}return t},proto.protocol.BlockBalanceTrace.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.BlockBalanceTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.BlockBalanceTrace.serializeBinaryToWriter=function(t,e){var r=void 0;null!=(r=t.getBlockIdentifier())&&e.writeMessage(1,r,proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter),0!==(r=t.getTimestamp())&&e.writeInt64(2,r),(r=t.getTransactionBalanceTraceList()).length>0&&e.writeRepeatedMessage(3,r,proto.protocol.TransactionBalanceTrace.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.toObject=function(t){return proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,this)},proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject=function(t,e){var r={hash:e.getHash_asB64(),number:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.BlockBalanceTrace.BlockIdentifier;return proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader(r,e)},proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setHash(r);break;case 2:r=e.readInt64();t.setNumber(r);break;default:e.skipField()}}return t},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getHash_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getNumber())&&e.writeInt64(2,r)},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getHash=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asB64=function(){return o.Message.bytesAsB64(this.getHash())},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asU8=function(){return o.Message.bytesAsU8(this.getHash())},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.setHash=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.getNumber=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BlockBalanceTrace.BlockIdentifier.prototype.setNumber=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.BlockBalanceTrace.prototype.getBlockIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.BlockBalanceTrace.BlockIdentifier,1)},proto.protocol.BlockBalanceTrace.prototype.setBlockIdentifier=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.BlockBalanceTrace.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},proto.protocol.BlockBalanceTrace.prototype.hasBlockIdentifier=function(){return null!=o.Message.getField(this,1)},proto.protocol.BlockBalanceTrace.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BlockBalanceTrace.prototype.setTimestamp=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.BlockBalanceTrace.prototype.getTransactionBalanceTraceList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.TransactionBalanceTrace,3)},proto.protocol.BlockBalanceTrace.prototype.setTransactionBalanceTraceList=function(t){return o.Message.setRepeatedWrapperField(this,3,t)},proto.protocol.BlockBalanceTrace.prototype.addTransactionBalanceTrace=function(t,e){return o.Message.addToRepeatedWrapperField(this,3,t,proto.protocol.TransactionBalanceTrace,e)},proto.protocol.BlockBalanceTrace.prototype.clearTransactionBalanceTraceList=function(){return this.setTransactionBalanceTraceList([])},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountTrace.prototype.toObject=function(t){return proto.protocol.AccountTrace.toObject(t,this)},proto.protocol.AccountTrace.toObject=function(t,e){var r={balance:o.Message.getFieldWithDefault(e,1,0),placeholder:o.Message.getFieldWithDefault(e,99,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.AccountTrace.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountTrace;return proto.protocol.AccountTrace.deserializeBinaryFromReader(r,e)},proto.protocol.AccountTrace.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setBalance(r);break;case 99:r=e.readInt64();t.setPlaceholder(r);break;default:e.skipField()}}return t},proto.protocol.AccountTrace.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountTrace.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountTrace.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getBalance())&&e.writeInt64(1,r),0!==(r=t.getPlaceholder())&&e.writeInt64(99,r)},proto.protocol.AccountTrace.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.AccountTrace.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.AccountTrace.prototype.getPlaceholder=function(){return o.Message.getFieldWithDefault(this,99,0)},proto.protocol.AccountTrace.prototype.setPlaceholder=function(t){return o.Message.setProto3IntField(this,99,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountIdentifier.prototype.toObject=function(t){return proto.protocol.AccountIdentifier.toObject(t,this)},proto.protocol.AccountIdentifier.toObject=function(t,e){var r={address:e.getAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.AccountIdentifier.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountIdentifier;return proto.protocol.AccountIdentifier.deserializeBinaryFromReader(r,e)},proto.protocol.AccountIdentifier.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAddress(r);break;default:e.skipField()}}return t},proto.protocol.AccountIdentifier.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountIdentifier.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountIdentifier.serializeBinaryToWriter=function(t,e){var r;(r=t.getAddress_asU8()).length>0&&e.writeBytes(1,r)},proto.protocol.AccountIdentifier.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountIdentifier.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.protocol.AccountIdentifier.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.protocol.AccountIdentifier.prototype.setAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountBalanceRequest.prototype.toObject=function(t){return proto.protocol.AccountBalanceRequest.toObject(t,this)},proto.protocol.AccountBalanceRequest.toObject=function(t,e){var r,o={accountIdentifier:(r=e.getAccountIdentifier())&&proto.protocol.AccountIdentifier.toObject(t,r),blockIdentifier:(r=e.getBlockIdentifier())&&proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,r)};return t&&(o.$jspbMessageInstance=e),o}),proto.protocol.AccountBalanceRequest.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountBalanceRequest;return proto.protocol.AccountBalanceRequest.deserializeBinaryFromReader(r,e)},proto.protocol.AccountBalanceRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=new proto.protocol.AccountIdentifier;e.readMessage(r,proto.protocol.AccountIdentifier.deserializeBinaryFromReader),t.setAccountIdentifier(r);break;case 2:r=new proto.protocol.BlockBalanceTrace.BlockIdentifier;e.readMessage(r,proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(r);break;default:e.skipField()}}return t},proto.protocol.AccountBalanceRequest.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountBalanceRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountBalanceRequest.serializeBinaryToWriter=function(t,e){var r=void 0;null!=(r=t.getAccountIdentifier())&&e.writeMessage(1,r,proto.protocol.AccountIdentifier.serializeBinaryToWriter),null!=(r=t.getBlockIdentifier())&&e.writeMessage(2,r,proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter)},proto.protocol.AccountBalanceRequest.prototype.getAccountIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.AccountIdentifier,1)},proto.protocol.AccountBalanceRequest.prototype.setAccountIdentifier=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.AccountBalanceRequest.prototype.clearAccountIdentifier=function(){return this.setAccountIdentifier(void 0)},proto.protocol.AccountBalanceRequest.prototype.hasAccountIdentifier=function(){return null!=o.Message.getField(this,1)},proto.protocol.AccountBalanceRequest.prototype.getBlockIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.BlockBalanceTrace.BlockIdentifier,2)},proto.protocol.AccountBalanceRequest.prototype.setBlockIdentifier=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.AccountBalanceRequest.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},proto.protocol.AccountBalanceRequest.prototype.hasBlockIdentifier=function(){return null!=o.Message.getField(this,2)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountBalanceResponse.prototype.toObject=function(t){return proto.protocol.AccountBalanceResponse.toObject(t,this)},proto.protocol.AccountBalanceResponse.toObject=function(t,e){var r,n={balance:o.Message.getFieldWithDefault(e,1,0),blockIdentifier:(r=e.getBlockIdentifier())&&proto.protocol.BlockBalanceTrace.BlockIdentifier.toObject(t,r)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.AccountBalanceResponse.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountBalanceResponse;return proto.protocol.AccountBalanceResponse.deserializeBinaryFromReader(r,e)},proto.protocol.AccountBalanceResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setBalance(r);break;case 2:r=new proto.protocol.BlockBalanceTrace.BlockIdentifier;e.readMessage(r,proto.protocol.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader),t.setBlockIdentifier(r);break;default:e.skipField()}}return t},proto.protocol.AccountBalanceResponse.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountBalanceResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountBalanceResponse.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getBalance())&&e.writeInt64(1,r),null!=(r=t.getBlockIdentifier())&&e.writeMessage(2,r,proto.protocol.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter)},proto.protocol.AccountBalanceResponse.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.AccountBalanceResponse.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.AccountBalanceResponse.prototype.getBlockIdentifier=function(){return o.Message.getWrapperField(this,proto.protocol.BlockBalanceTrace.BlockIdentifier,2)},proto.protocol.AccountBalanceResponse.prototype.setBlockIdentifier=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.AccountBalanceResponse.prototype.clearBlockIdentifier=function(){return this.setBlockIdentifier(void 0)},proto.protocol.AccountBalanceResponse.prototype.hasBlockIdentifier=function(){return null!=o.Message.getField(this,2)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.FreezeBalanceV2Contract.prototype.toObject=function(t){return proto.protocol.FreezeBalanceV2Contract.toObject(t,this)},proto.protocol.FreezeBalanceV2Contract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),frozenBalance:o.Message.getFieldWithDefault(e,2,0),resource:o.Message.getFieldWithDefault(e,3,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.FreezeBalanceV2Contract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.FreezeBalanceV2Contract;return proto.protocol.FreezeBalanceV2Contract.deserializeBinaryFromReader(r,e)},proto.protocol.FreezeBalanceV2Contract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setFrozenBalance(r);break;case 3:r=e.readEnum();t.setResource(r);break;default:e.skipField()}}return t},proto.protocol.FreezeBalanceV2Contract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.FreezeBalanceV2Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.FreezeBalanceV2Contract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getFrozenBalance())&&e.writeInt64(2,r),0!==(r=t.getResource())&&e.writeEnum(3,r)},proto.protocol.FreezeBalanceV2Contract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.FreezeBalanceV2Contract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.FreezeBalanceV2Contract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.FreezeBalanceV2Contract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.FreezeBalanceV2Contract.prototype.getFrozenBalance=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.FreezeBalanceV2Contract.prototype.setFrozenBalance=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.FreezeBalanceV2Contract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.FreezeBalanceV2Contract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnfreezeBalanceV2Contract.prototype.toObject=function(t){return proto.protocol.UnfreezeBalanceV2Contract.toObject(t,this)},proto.protocol.UnfreezeBalanceV2Contract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),unfreezeBalance:o.Message.getFieldWithDefault(e,2,0),resource:o.Message.getFieldWithDefault(e,3,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UnfreezeBalanceV2Contract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UnfreezeBalanceV2Contract;return proto.protocol.UnfreezeBalanceV2Contract.deserializeBinaryFromReader(r,e)},proto.protocol.UnfreezeBalanceV2Contract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setUnfreezeBalance(r);break;case 3:r=e.readEnum();t.setResource(r);break;default:e.skipField()}}return t},proto.protocol.UnfreezeBalanceV2Contract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UnfreezeBalanceV2Contract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UnfreezeBalanceV2Contract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getUnfreezeBalance())&&e.writeInt64(2,r),0!==(r=t.getResource())&&e.writeEnum(3,r)},proto.protocol.UnfreezeBalanceV2Contract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnfreezeBalanceV2Contract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UnfreezeBalanceV2Contract.prototype.getUnfreezeBalance=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.UnfreezeBalanceV2Contract.prototype.setUnfreezeBalance=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.UnfreezeBalanceV2Contract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UnfreezeBalanceV2Contract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WithdrawExpireUnfreezeContract.prototype.toObject=function(t){return proto.protocol.WithdrawExpireUnfreezeContract.toObject(t,this)},proto.protocol.WithdrawExpireUnfreezeContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.WithdrawExpireUnfreezeContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.WithdrawExpireUnfreezeContract;return proto.protocol.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader(r,e)},proto.protocol.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;default:e.skipField()}}return t},proto.protocol.WithdrawExpireUnfreezeContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.WithdrawExpireUnfreezeContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.WithdrawExpireUnfreezeContract.serializeBinaryToWriter=function(t,e){var r;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r)},proto.protocol.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WithdrawExpireUnfreezeContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.DelegateResourceContract.prototype.toObject=function(t){return proto.protocol.DelegateResourceContract.toObject(t,this)},proto.protocol.DelegateResourceContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),resource:o.Message.getFieldWithDefault(e,2,0),balance:o.Message.getFieldWithDefault(e,3,0),receiverAddress:e.getReceiverAddress_asB64(),lock:o.Message.getBooleanFieldWithDefault(e,5,!1)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.DelegateResourceContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.DelegateResourceContract;return proto.protocol.DelegateResourceContract.deserializeBinaryFromReader(r,e)},proto.protocol.DelegateResourceContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readEnum();t.setResource(r);break;case 3:r=e.readInt64();t.setBalance(r);break;case 4:r=e.readBytes();t.setReceiverAddress(r);break;case 5:r=e.readBool();t.setLock(r);break;default:e.skipField()}}return t},proto.protocol.DelegateResourceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.DelegateResourceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.DelegateResourceContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getResource())&&e.writeEnum(2,r),0!==(r=t.getBalance())&&e.writeInt64(3,r),(r=t.getReceiverAddress_asU8()).length>0&&e.writeBytes(4,r),(r=t.getLock())&&e.writeBool(5,r)},proto.protocol.DelegateResourceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.DelegateResourceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.DelegateResourceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.DelegateResourceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.DelegateResourceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.DelegateResourceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.DelegateResourceContract.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.DelegateResourceContract.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.DelegateResourceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.DelegateResourceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.DelegateResourceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.DelegateResourceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.DelegateResourceContract.prototype.getLock=function(){return o.Message.getBooleanFieldWithDefault(this,5,!1)},proto.protocol.DelegateResourceContract.prototype.setLock=function(t){return o.Message.setProto3BooleanField(this,5,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnDelegateResourceContract.prototype.toObject=function(t){return proto.protocol.UnDelegateResourceContract.toObject(t,this)},proto.protocol.UnDelegateResourceContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),resource:o.Message.getFieldWithDefault(e,2,0),balance:o.Message.getFieldWithDefault(e,3,0),receiverAddress:e.getReceiverAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UnDelegateResourceContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UnDelegateResourceContract;return proto.protocol.UnDelegateResourceContract.deserializeBinaryFromReader(r,e)},proto.protocol.UnDelegateResourceContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readEnum();t.setResource(r);break;case 3:r=e.readInt64();t.setBalance(r);break;case 4:r=e.readBytes();t.setReceiverAddress(r);break;default:e.skipField()}}return t},proto.protocol.UnDelegateResourceContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UnDelegateResourceContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UnDelegateResourceContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getResource())&&e.writeEnum(2,r),0!==(r=t.getBalance())&&e.writeInt64(3,r),(r=t.getReceiverAddress_asU8()).length>0&&e.writeBytes(4,r)},proto.protocol.UnDelegateResourceContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnDelegateResourceContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnDelegateResourceContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnDelegateResourceContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UnDelegateResourceContract.prototype.getResource=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.UnDelegateResourceContract.prototype.setResource=function(t){return o.Message.setProto3EnumField(this,2,t)},proto.protocol.UnDelegateResourceContract.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UnDelegateResourceContract.prototype.setBalance=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.UnDelegateResourceContract.prototype.getReceiverAddress=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.UnDelegateResourceContract.prototype.getReceiverAddress_asB64=function(){return o.Message.bytesAsB64(this.getReceiverAddress())},proto.protocol.UnDelegateResourceContract.prototype.getReceiverAddress_asU8=function(){return o.Message.bytesAsU8(this.getReceiverAddress())},proto.protocol.UnDelegateResourceContract.prototype.setReceiverAddress=function(t){return o.Message.setProto3BytesField(this,4,t)},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null);n.exportSymbol("proto.protocol.AssetIssueContract",null,i),n.exportSymbol("proto.protocol.AssetIssueContract.FrozenSupply",null,i),n.exportSymbol("proto.protocol.ParticipateAssetIssueContract",null,i),n.exportSymbol("proto.protocol.TransferAssetContract",null,i),n.exportSymbol("proto.protocol.UnfreezeAssetContract",null,i),n.exportSymbol("proto.protocol.UpdateAssetContract",null,i),proto.protocol.AssetIssueContract=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.AssetIssueContract.repeatedFields_,null)},n.inherits(proto.protocol.AssetIssueContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AssetIssueContract.displayName="proto.protocol.AssetIssueContract"),proto.protocol.AssetIssueContract.FrozenSupply=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AssetIssueContract.FrozenSupply,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AssetIssueContract.FrozenSupply.displayName="proto.protocol.AssetIssueContract.FrozenSupply"),proto.protocol.TransferAssetContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.TransferAssetContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.TransferAssetContract.displayName="proto.protocol.TransferAssetContract"),proto.protocol.UnfreezeAssetContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UnfreezeAssetContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UnfreezeAssetContract.displayName="proto.protocol.UnfreezeAssetContract"),proto.protocol.UpdateAssetContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UpdateAssetContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UpdateAssetContract.displayName="proto.protocol.UpdateAssetContract"),proto.protocol.ParticipateAssetIssueContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ParticipateAssetIssueContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ParticipateAssetIssueContract.displayName="proto.protocol.ParticipateAssetIssueContract"),proto.protocol.AssetIssueContract.repeatedFields_=[5],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AssetIssueContract.prototype.toObject=function(t){return proto.protocol.AssetIssueContract.toObject(t,this)},proto.protocol.AssetIssueContract.toObject=function(t,e){var r={id:o.Message.getFieldWithDefault(e,41,""),ownerAddress:e.getOwnerAddress_asB64(),name:e.getName_asB64(),abbr:e.getAbbr_asB64(),totalSupply:o.Message.getFieldWithDefault(e,4,0),frozenSupplyList:o.Message.toObjectList(e.getFrozenSupplyList(),proto.protocol.AssetIssueContract.FrozenSupply.toObject,t),trxNum:o.Message.getFieldWithDefault(e,6,0),precision:o.Message.getFieldWithDefault(e,7,0),num:o.Message.getFieldWithDefault(e,8,0),startTime:o.Message.getFieldWithDefault(e,9,0),endTime:o.Message.getFieldWithDefault(e,10,0),order:o.Message.getFieldWithDefault(e,11,0),voteScore:o.Message.getFieldWithDefault(e,16,0),description:e.getDescription_asB64(),url:e.getUrl_asB64(),freeAssetNetLimit:o.Message.getFieldWithDefault(e,22,0),publicFreeAssetNetLimit:o.Message.getFieldWithDefault(e,23,0),publicFreeAssetNetUsage:o.Message.getFieldWithDefault(e,24,0),publicLatestFreeNetTime:o.Message.getFieldWithDefault(e,25,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.AssetIssueContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AssetIssueContract;return proto.protocol.AssetIssueContract.deserializeBinaryFromReader(r,e)},proto.protocol.AssetIssueContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 41:var r=e.readString();t.setId(r);break;case 1:r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setName(r);break;case 3:r=e.readBytes();t.setAbbr(r);break;case 4:r=e.readInt64();t.setTotalSupply(r);break;case 5:r=new proto.protocol.AssetIssueContract.FrozenSupply;e.readMessage(r,proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader),t.addFrozenSupply(r);break;case 6:r=e.readInt32();t.setTrxNum(r);break;case 7:r=e.readInt32();t.setPrecision(r);break;case 8:r=e.readInt32();t.setNum(r);break;case 9:r=e.readInt64();t.setStartTime(r);break;case 10:r=e.readInt64();t.setEndTime(r);break;case 11:r=e.readInt64();t.setOrder(r);break;case 16:r=e.readInt32();t.setVoteScore(r);break;case 20:r=e.readBytes();t.setDescription(r);break;case 21:r=e.readBytes();t.setUrl(r);break;case 22:r=e.readInt64();t.setFreeAssetNetLimit(r);break;case 23:r=e.readInt64();t.setPublicFreeAssetNetLimit(r);break;case 24:r=e.readInt64();t.setPublicFreeAssetNetUsage(r);break;case 25:r=e.readInt64();t.setPublicLatestFreeNetTime(r);break;default:e.skipField()}}return t},proto.protocol.AssetIssueContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AssetIssueContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AssetIssueContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getId()).length>0&&e.writeString(41,r),(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getName_asU8()).length>0&&e.writeBytes(2,r),(r=t.getAbbr_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getTotalSupply())&&e.writeInt64(4,r),(r=t.getFrozenSupplyList()).length>0&&e.writeRepeatedMessage(5,r,proto.protocol.AssetIssueContract.FrozenSupply.serializeBinaryToWriter),0!==(r=t.getTrxNum())&&e.writeInt32(6,r),0!==(r=t.getPrecision())&&e.writeInt32(7,r),0!==(r=t.getNum())&&e.writeInt32(8,r),0!==(r=t.getStartTime())&&e.writeInt64(9,r),0!==(r=t.getEndTime())&&e.writeInt64(10,r),0!==(r=t.getOrder())&&e.writeInt64(11,r),0!==(r=t.getVoteScore())&&e.writeInt32(16,r),(r=t.getDescription_asU8()).length>0&&e.writeBytes(20,r),(r=t.getUrl_asU8()).length>0&&e.writeBytes(21,r),0!==(r=t.getFreeAssetNetLimit())&&e.writeInt64(22,r),0!==(r=t.getPublicFreeAssetNetLimit())&&e.writeInt64(23,r),0!==(r=t.getPublicFreeAssetNetUsage())&&e.writeInt64(24,r),0!==(r=t.getPublicLatestFreeNetTime())&&e.writeInt64(25,r)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AssetIssueContract.FrozenSupply.prototype.toObject=function(t){return proto.protocol.AssetIssueContract.FrozenSupply.toObject(t,this)},proto.protocol.AssetIssueContract.FrozenSupply.toObject=function(t,e){var r={frozenAmount:o.Message.getFieldWithDefault(e,1,0),frozenDays:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AssetIssueContract.FrozenSupply;return proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader(r,e)},proto.protocol.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readInt64();t.setFrozenAmount(r);break;case 2:r=e.readInt64();t.setFrozenDays(r);break;default:e.skipField()}}return t},proto.protocol.AssetIssueContract.FrozenSupply.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AssetIssueContract.FrozenSupply.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AssetIssueContract.FrozenSupply.serializeBinaryToWriter=function(t,e){var r=void 0;0!==(r=t.getFrozenAmount())&&e.writeInt64(1,r),0!==(r=t.getFrozenDays())&&e.writeInt64(2,r)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.getFrozenAmount=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.setFrozenAmount=function(t){return o.Message.setProto3IntField(this,1,t)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.getFrozenDays=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.AssetIssueContract.FrozenSupply.prototype.setFrozenDays=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.AssetIssueContract.prototype.getId=function(){return o.Message.getFieldWithDefault(this,41,"")},proto.protocol.AssetIssueContract.prototype.setId=function(t){return o.Message.setProto3StringField(this,41,t)},proto.protocol.AssetIssueContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AssetIssueContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AssetIssueContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AssetIssueContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AssetIssueContract.prototype.getName=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AssetIssueContract.prototype.getName_asB64=function(){return o.Message.bytesAsB64(this.getName())},proto.protocol.AssetIssueContract.prototype.getName_asU8=function(){return o.Message.bytesAsU8(this.getName())},proto.protocol.AssetIssueContract.prototype.setName=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.AssetIssueContract.prototype.getAbbr=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.AssetIssueContract.prototype.getAbbr_asB64=function(){return o.Message.bytesAsB64(this.getAbbr())},proto.protocol.AssetIssueContract.prototype.getAbbr_asU8=function(){return o.Message.bytesAsU8(this.getAbbr())},proto.protocol.AssetIssueContract.prototype.setAbbr=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.AssetIssueContract.prototype.getTotalSupply=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.AssetIssueContract.prototype.setTotalSupply=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.AssetIssueContract.prototype.getFrozenSupplyList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.AssetIssueContract.FrozenSupply,5)},proto.protocol.AssetIssueContract.prototype.setFrozenSupplyList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)},proto.protocol.AssetIssueContract.prototype.addFrozenSupply=function(t,e){return o.Message.addToRepeatedWrapperField(this,5,t,proto.protocol.AssetIssueContract.FrozenSupply,e)},proto.protocol.AssetIssueContract.prototype.clearFrozenSupplyList=function(){return this.setFrozenSupplyList([])},proto.protocol.AssetIssueContract.prototype.getTrxNum=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.AssetIssueContract.prototype.setTrxNum=function(t){return o.Message.setProto3IntField(this,6,t)},proto.protocol.AssetIssueContract.prototype.getPrecision=function(){return o.Message.getFieldWithDefault(this,7,0)},proto.protocol.AssetIssueContract.prototype.setPrecision=function(t){return o.Message.setProto3IntField(this,7,t)},proto.protocol.AssetIssueContract.prototype.getNum=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.AssetIssueContract.prototype.setNum=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.AssetIssueContract.prototype.getStartTime=function(){return o.Message.getFieldWithDefault(this,9,0)},proto.protocol.AssetIssueContract.prototype.setStartTime=function(t){return o.Message.setProto3IntField(this,9,t)},proto.protocol.AssetIssueContract.prototype.getEndTime=function(){return o.Message.getFieldWithDefault(this,10,0)},proto.protocol.AssetIssueContract.prototype.setEndTime=function(t){return o.Message.setProto3IntField(this,10,t)},proto.protocol.AssetIssueContract.prototype.getOrder=function(){return o.Message.getFieldWithDefault(this,11,0)},proto.protocol.AssetIssueContract.prototype.setOrder=function(t){return o.Message.setProto3IntField(this,11,t)},proto.protocol.AssetIssueContract.prototype.getVoteScore=function(){return o.Message.getFieldWithDefault(this,16,0)},proto.protocol.AssetIssueContract.prototype.setVoteScore=function(t){return o.Message.setProto3IntField(this,16,t)},proto.protocol.AssetIssueContract.prototype.getDescription=function(){return o.Message.getFieldWithDefault(this,20,"")},proto.protocol.AssetIssueContract.prototype.getDescription_asB64=function(){return o.Message.bytesAsB64(this.getDescription())},proto.protocol.AssetIssueContract.prototype.getDescription_asU8=function(){return o.Message.bytesAsU8(this.getDescription())},proto.protocol.AssetIssueContract.prototype.setDescription=function(t){return o.Message.setProto3BytesField(this,20,t)},proto.protocol.AssetIssueContract.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,21,"")},proto.protocol.AssetIssueContract.prototype.getUrl_asB64=function(){return o.Message.bytesAsB64(this.getUrl())},proto.protocol.AssetIssueContract.prototype.getUrl_asU8=function(){return o.Message.bytesAsU8(this.getUrl())},proto.protocol.AssetIssueContract.prototype.setUrl=function(t){return o.Message.setProto3BytesField(this,21,t)},proto.protocol.AssetIssueContract.prototype.getFreeAssetNetLimit=function(){return o.Message.getFieldWithDefault(this,22,0)},proto.protocol.AssetIssueContract.prototype.setFreeAssetNetLimit=function(t){return o.Message.setProto3IntField(this,22,t)},proto.protocol.AssetIssueContract.prototype.getPublicFreeAssetNetLimit=function(){return o.Message.getFieldWithDefault(this,23,0)},proto.protocol.AssetIssueContract.prototype.setPublicFreeAssetNetLimit=function(t){return o.Message.setProto3IntField(this,23,t)},proto.protocol.AssetIssueContract.prototype.getPublicFreeAssetNetUsage=function(){return o.Message.getFieldWithDefault(this,24,0)},proto.protocol.AssetIssueContract.prototype.setPublicFreeAssetNetUsage=function(t){return o.Message.setProto3IntField(this,24,t)},proto.protocol.AssetIssueContract.prototype.getPublicLatestFreeNetTime=function(){return o.Message.getFieldWithDefault(this,25,0)},proto.protocol.AssetIssueContract.prototype.setPublicLatestFreeNetTime=function(t){return o.Message.setProto3IntField(this,25,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TransferAssetContract.prototype.toObject=function(t){return proto.protocol.TransferAssetContract.toObject(t,this)},proto.protocol.TransferAssetContract.toObject=function(t,e){var r={assetName:e.getAssetName_asB64(),ownerAddress:e.getOwnerAddress_asB64(),toAddress:e.getToAddress_asB64(),amount:o.Message.getFieldWithDefault(e,4,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.TransferAssetContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.TransferAssetContract;return proto.protocol.TransferAssetContract.deserializeBinaryFromReader(r,e)},proto.protocol.TransferAssetContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAssetName(r);break;case 2:r=e.readBytes();t.setOwnerAddress(r);break;case 3:r=e.readBytes();t.setToAddress(r);break;case 4:r=e.readInt64();t.setAmount(r);break;default:e.skipField()}}return t},proto.protocol.TransferAssetContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TransferAssetContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TransferAssetContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAssetName_asU8()).length>0&&e.writeBytes(1,r),(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(2,r),(r=t.getToAddress_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getAmount())&&e.writeInt64(4,r)},proto.protocol.TransferAssetContract.prototype.getAssetName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TransferAssetContract.prototype.getAssetName_asB64=function(){return o.Message.bytesAsB64(this.getAssetName())},proto.protocol.TransferAssetContract.prototype.getAssetName_asU8=function(){return o.Message.bytesAsU8(this.getAssetName())},proto.protocol.TransferAssetContract.prototype.setAssetName=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.TransferAssetContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TransferAssetContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.TransferAssetContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.TransferAssetContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.TransferAssetContract.prototype.getToAddress=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.TransferAssetContract.prototype.getToAddress_asB64=function(){return o.Message.bytesAsB64(this.getToAddress())},proto.protocol.TransferAssetContract.prototype.getToAddress_asU8=function(){return o.Message.bytesAsU8(this.getToAddress())},proto.protocol.TransferAssetContract.prototype.setToAddress=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.TransferAssetContract.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.TransferAssetContract.prototype.setAmount=function(t){return o.Message.setProto3IntField(this,4,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UnfreezeAssetContract.prototype.toObject=function(t){return proto.protocol.UnfreezeAssetContract.toObject(t,this)},proto.protocol.UnfreezeAssetContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UnfreezeAssetContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UnfreezeAssetContract;return proto.protocol.UnfreezeAssetContract.deserializeBinaryFromReader(r,e)},proto.protocol.UnfreezeAssetContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;default:e.skipField()}}return t},proto.protocol.UnfreezeAssetContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UnfreezeAssetContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UnfreezeAssetContract.serializeBinaryToWriter=function(t,e){var r;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r)},proto.protocol.UnfreezeAssetContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UnfreezeAssetContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UnfreezeAssetContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UnfreezeAssetContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateAssetContract.prototype.toObject=function(t){return proto.protocol.UpdateAssetContract.toObject(t,this)},proto.protocol.UpdateAssetContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),description:e.getDescription_asB64(),url:e.getUrl_asB64(),newLimit:o.Message.getFieldWithDefault(e,4,0),newPublicLimit:o.Message.getFieldWithDefault(e,5,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UpdateAssetContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UpdateAssetContract;return proto.protocol.UpdateAssetContract.deserializeBinaryFromReader(r,e)},proto.protocol.UpdateAssetContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setDescription(r);break;case 3:r=e.readBytes();t.setUrl(r);break;case 4:r=e.readInt64();t.setNewLimit(r);break;case 5:r=e.readInt64();t.setNewPublicLimit(r);break;default:e.skipField()}}return t},proto.protocol.UpdateAssetContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UpdateAssetContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UpdateAssetContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getDescription_asU8()).length>0&&e.writeBytes(2,r),(r=t.getUrl_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getNewLimit())&&e.writeInt64(4,r),0!==(r=t.getNewPublicLimit())&&e.writeInt64(5,r)},proto.protocol.UpdateAssetContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateAssetContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateAssetContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateAssetContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UpdateAssetContract.prototype.getDescription=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.UpdateAssetContract.prototype.getDescription_asB64=function(){return o.Message.bytesAsB64(this.getDescription())},proto.protocol.UpdateAssetContract.prototype.getDescription_asU8=function(){return o.Message.bytesAsU8(this.getDescription())},proto.protocol.UpdateAssetContract.prototype.setDescription=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.UpdateAssetContract.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.UpdateAssetContract.prototype.getUrl_asB64=function(){return o.Message.bytesAsB64(this.getUrl())},proto.protocol.UpdateAssetContract.prototype.getUrl_asU8=function(){return o.Message.bytesAsU8(this.getUrl())},proto.protocol.UpdateAssetContract.prototype.setUrl=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.UpdateAssetContract.prototype.getNewLimit=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.UpdateAssetContract.prototype.setNewLimit=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.UpdateAssetContract.prototype.getNewPublicLimit=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.UpdateAssetContract.prototype.setNewPublicLimit=function(t){return o.Message.setProto3IntField(this,5,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ParticipateAssetIssueContract.prototype.toObject=function(t){return proto.protocol.ParticipateAssetIssueContract.toObject(t,this)},proto.protocol.ParticipateAssetIssueContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),toAddress:e.getToAddress_asB64(),assetName:e.getAssetName_asB64(),amount:o.Message.getFieldWithDefault(e,4,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ParticipateAssetIssueContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ParticipateAssetIssueContract;return proto.protocol.ParticipateAssetIssueContract.deserializeBinaryFromReader(r,e)},proto.protocol.ParticipateAssetIssueContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setToAddress(r);break;case 3:r=e.readBytes();t.setAssetName(r);break;case 4:r=e.readInt64();t.setAmount(r);break;default:e.skipField()}}return t},proto.protocol.ParticipateAssetIssueContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ParticipateAssetIssueContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ParticipateAssetIssueContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getToAddress_asU8()).length>0&&e.writeBytes(2,r),(r=t.getAssetName_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getAmount())&&e.writeInt64(4,r)},proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress_asB64=function(){return o.Message.bytesAsB64(this.getToAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress_asU8=function(){return o.Message.bytesAsU8(this.getToAddress())},proto.protocol.ParticipateAssetIssueContract.prototype.setToAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName_asB64=function(){return o.Message.bytesAsB64(this.getAssetName())},proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName_asU8=function(){return o.Message.bytesAsU8(this.getAssetName())},proto.protocol.ParticipateAssetIssueContract.prototype.setAssetName=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.ParticipateAssetIssueContract.prototype.getAmount=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ParticipateAssetIssueContract.prototype.setAmount=function(t){return o.Message.setProto3IntField(this,4,t)},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null);n.exportSymbol("proto.protocol.ClearABIContract",null,i),n.exportSymbol("proto.protocol.CreateSmartContract",null,i),n.exportSymbol("proto.protocol.SmartContract",null,i),n.exportSymbol("proto.protocol.SmartContract.ABI",null,i),n.exportSymbol("proto.protocol.SmartContract.ABI.Entry",null,i),n.exportSymbol("proto.protocol.SmartContract.ABI.Entry.EntryType",null,i),n.exportSymbol("proto.protocol.SmartContract.ABI.Entry.Param",null,i),n.exportSymbol("proto.protocol.SmartContract.ABI.Entry.StateMutabilityType",null,i),n.exportSymbol("proto.protocol.SmartContractDataWrapper",null,i),n.exportSymbol("proto.protocol.TriggerSmartContract",null,i),n.exportSymbol("proto.protocol.UpdateEnergyLimitContract",null,i),n.exportSymbol("proto.protocol.UpdateSettingContract",null,i),proto.protocol.SmartContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.SmartContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.displayName="proto.protocol.SmartContract"),proto.protocol.SmartContract.ABI=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.SmartContract.ABI.repeatedFields_,null)},n.inherits(proto.protocol.SmartContract.ABI,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.ABI.displayName="proto.protocol.SmartContract.ABI"),proto.protocol.SmartContract.ABI.Entry=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.SmartContract.ABI.Entry.repeatedFields_,null)},n.inherits(proto.protocol.SmartContract.ABI.Entry,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.ABI.Entry.displayName="proto.protocol.SmartContract.ABI.Entry"),proto.protocol.SmartContract.ABI.Entry.Param=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.SmartContract.ABI.Entry.Param,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.SmartContract.ABI.Entry.Param.displayName="proto.protocol.SmartContract.ABI.Entry.Param"),proto.protocol.CreateSmartContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.CreateSmartContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.CreateSmartContract.displayName="proto.protocol.CreateSmartContract"),proto.protocol.TriggerSmartContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.TriggerSmartContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.TriggerSmartContract.displayName="proto.protocol.TriggerSmartContract"),proto.protocol.ClearABIContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ClearABIContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ClearABIContract.displayName="proto.protocol.ClearABIContract"),proto.protocol.UpdateSettingContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UpdateSettingContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UpdateSettingContract.displayName="proto.protocol.UpdateSettingContract"),proto.protocol.UpdateEnergyLimitContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UpdateEnergyLimitContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UpdateEnergyLimitContract.displayName="proto.protocol.UpdateEnergyLimitContract"),proto.protocol.SmartContractDataWrapper=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.SmartContractDataWrapper,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.SmartContractDataWrapper.displayName="proto.protocol.SmartContractDataWrapper"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.prototype.toObject=function(t){return proto.protocol.SmartContract.toObject(t,this)},proto.protocol.SmartContract.toObject=function(t,e){var r,n={originAddress:e.getOriginAddress_asB64(),contractAddress:e.getContractAddress_asB64(),abi:(r=e.getAbi())&&proto.protocol.SmartContract.ABI.toObject(t,r),bytecode:e.getBytecode_asB64(),callValue:o.Message.getFieldWithDefault(e,5,0),consumeUserResourcePercent:o.Message.getFieldWithDefault(e,6,0),name:o.Message.getFieldWithDefault(e,7,""),originEnergyLimit:o.Message.getFieldWithDefault(e,8,0),codeHash:e.getCodeHash_asB64(),trxHash:e.getTrxHash_asB64()};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.SmartContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.SmartContract;return proto.protocol.SmartContract.deserializeBinaryFromReader(r,e)},proto.protocol.SmartContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOriginAddress(r);break;case 2:r=e.readBytes();t.setContractAddress(r);break;case 3:r=new proto.protocol.SmartContract.ABI;e.readMessage(r,proto.protocol.SmartContract.ABI.deserializeBinaryFromReader),t.setAbi(r);break;case 4:r=e.readBytes();t.setBytecode(r);break;case 5:r=e.readInt64();t.setCallValue(r);break;case 6:r=e.readInt64();t.setConsumeUserResourcePercent(r);break;case 7:r=e.readString();t.setName(r);break;case 8:r=e.readInt64();t.setOriginEnergyLimit(r);break;case 9:r=e.readBytes();t.setCodeHash(r);break;case 10:r=e.readBytes();t.setTrxHash(r);break;default:e.skipField()}}return t},proto.protocol.SmartContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SmartContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SmartContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOriginAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getContractAddress_asU8()).length>0&&e.writeBytes(2,r),null!=(r=t.getAbi())&&e.writeMessage(3,r,proto.protocol.SmartContract.ABI.serializeBinaryToWriter),(r=t.getBytecode_asU8()).length>0&&e.writeBytes(4,r),0!==(r=t.getCallValue())&&e.writeInt64(5,r),0!==(r=t.getConsumeUserResourcePercent())&&e.writeInt64(6,r),(r=t.getName()).length>0&&e.writeString(7,r),0!==(r=t.getOriginEnergyLimit())&&e.writeInt64(8,r),(r=t.getCodeHash_asU8()).length>0&&e.writeBytes(9,r),(r=t.getTrxHash_asU8()).length>0&&e.writeBytes(10,r)},proto.protocol.SmartContract.ABI.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.ABI.prototype.toObject=function(t){return proto.protocol.SmartContract.ABI.toObject(t,this)},proto.protocol.SmartContract.ABI.toObject=function(t,e){var r={entrysList:o.Message.toObjectList(e.getEntrysList(),proto.protocol.SmartContract.ABI.Entry.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.SmartContract.ABI.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.SmartContract.ABI;return proto.protocol.SmartContract.ABI.deserializeBinaryFromReader(r,e)},proto.protocol.SmartContract.ABI.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=new proto.protocol.SmartContract.ABI.Entry;e.readMessage(r,proto.protocol.SmartContract.ABI.Entry.deserializeBinaryFromReader),t.addEntrys(r);break;default:e.skipField()}}return t},proto.protocol.SmartContract.ABI.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SmartContract.ABI.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SmartContract.ABI.serializeBinaryToWriter=function(t,e){var r;(r=t.getEntrysList()).length>0&&e.writeRepeatedMessage(1,r,proto.protocol.SmartContract.ABI.Entry.serializeBinaryToWriter)},proto.protocol.SmartContract.ABI.Entry.repeatedFields_=[4,5],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.ABI.Entry.prototype.toObject=function(t){return proto.protocol.SmartContract.ABI.Entry.toObject(t,this)},proto.protocol.SmartContract.ABI.Entry.toObject=function(t,e){var r={anonymous:o.Message.getBooleanFieldWithDefault(e,1,!1),constant:o.Message.getBooleanFieldWithDefault(e,2,!1),name:o.Message.getFieldWithDefault(e,3,""),inputsList:o.Message.toObjectList(e.getInputsList(),proto.protocol.SmartContract.ABI.Entry.Param.toObject,t),outputsList:o.Message.toObjectList(e.getOutputsList(),proto.protocol.SmartContract.ABI.Entry.Param.toObject,t),type:o.Message.getFieldWithDefault(e,6,0),payable:o.Message.getBooleanFieldWithDefault(e,7,!1),statemutability:o.Message.getFieldWithDefault(e,8,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.SmartContract.ABI.Entry.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.SmartContract.ABI.Entry;return proto.protocol.SmartContract.ABI.Entry.deserializeBinaryFromReader(r,e)},proto.protocol.SmartContract.ABI.Entry.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBool();t.setAnonymous(r);break;case 2:r=e.readBool();t.setConstant(r);break;case 3:r=e.readString();t.setName(r);break;case 4:r=new proto.protocol.SmartContract.ABI.Entry.Param;e.readMessage(r,proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader),t.addInputs(r);break;case 5:r=new proto.protocol.SmartContract.ABI.Entry.Param;e.readMessage(r,proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader),t.addOutputs(r);break;case 6:r=e.readEnum();t.setType(r);break;case 7:r=e.readBool();t.setPayable(r);break;case 8:r=e.readEnum();t.setStatemutability(r);break;default:e.skipField()}}return t},proto.protocol.SmartContract.ABI.Entry.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SmartContract.ABI.Entry.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SmartContract.ABI.Entry.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAnonymous())&&e.writeBool(1,r),(r=t.getConstant())&&e.writeBool(2,r),(r=t.getName()).length>0&&e.writeString(3,r),(r=t.getInputsList()).length>0&&e.writeRepeatedMessage(4,r,proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter),(r=t.getOutputsList()).length>0&&e.writeRepeatedMessage(5,r,proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter),0!==(r=t.getType())&&e.writeEnum(6,r),(r=t.getPayable())&&e.writeBool(7,r),0!==(r=t.getStatemutability())&&e.writeEnum(8,r)},proto.protocol.SmartContract.ABI.Entry.EntryType={UNKNOWNENTRYTYPE:0,CONSTRUCTOR:1,FUNCTION:2,EVENT:3,FALLBACK:4,RECEIVE:5,ERROR:6},proto.protocol.SmartContract.ABI.Entry.StateMutabilityType={UNKNOWNMUTABILITYTYPE:0,PURE:1,VIEW:2,NONPAYABLE:3,PAYABLE:4},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContract.ABI.Entry.Param.prototype.toObject=function(t){return proto.protocol.SmartContract.ABI.Entry.Param.toObject(t,this)},proto.protocol.SmartContract.ABI.Entry.Param.toObject=function(t,e){var r={indexed:o.Message.getBooleanFieldWithDefault(e,1,!1),name:o.Message.getFieldWithDefault(e,2,""),type:o.Message.getFieldWithDefault(e,3,"")};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.SmartContract.ABI.Entry.Param;return proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader(r,e)},proto.protocol.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBool();t.setIndexed(r);break;case 2:r=e.readString();t.setName(r);break;case 3:r=e.readString();t.setType(r);break;default:e.skipField()}}return t},proto.protocol.SmartContract.ABI.Entry.Param.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SmartContract.ABI.Entry.Param.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getIndexed())&&e.writeBool(1,r),(r=t.getName()).length>0&&e.writeString(2,r),(r=t.getType()).length>0&&e.writeString(3,r)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.getIndexed=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.setIndexed=function(t){return o.Message.setProto3BooleanField(this,1,t)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.getName=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SmartContract.ABI.Entry.Param.prototype.setName=function(t){return o.Message.setProto3StringField(this,2,t)},proto.protocol.SmartContract.ABI.Entry.Param.prototype.getType=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.SmartContract.ABI.Entry.Param.prototype.setType=function(t){return o.Message.setProto3StringField(this,3,t)},proto.protocol.SmartContract.ABI.Entry.prototype.getAnonymous=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.protocol.SmartContract.ABI.Entry.prototype.setAnonymous=function(t){return o.Message.setProto3BooleanField(this,1,t)},proto.protocol.SmartContract.ABI.Entry.prototype.getConstant=function(){return o.Message.getBooleanFieldWithDefault(this,2,!1)},proto.protocol.SmartContract.ABI.Entry.prototype.setConstant=function(t){return o.Message.setProto3BooleanField(this,2,t)},proto.protocol.SmartContract.ABI.Entry.prototype.getName=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.SmartContract.ABI.Entry.prototype.setName=function(t){return o.Message.setProto3StringField(this,3,t)},proto.protocol.SmartContract.ABI.Entry.prototype.getInputsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.SmartContract.ABI.Entry.Param,4)},proto.protocol.SmartContract.ABI.Entry.prototype.setInputsList=function(t){return o.Message.setRepeatedWrapperField(this,4,t)},proto.protocol.SmartContract.ABI.Entry.prototype.addInputs=function(t,e){return o.Message.addToRepeatedWrapperField(this,4,t,proto.protocol.SmartContract.ABI.Entry.Param,e)},proto.protocol.SmartContract.ABI.Entry.prototype.clearInputsList=function(){return this.setInputsList([])},proto.protocol.SmartContract.ABI.Entry.prototype.getOutputsList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.SmartContract.ABI.Entry.Param,5)},proto.protocol.SmartContract.ABI.Entry.prototype.setOutputsList=function(t){return o.Message.setRepeatedWrapperField(this,5,t)},proto.protocol.SmartContract.ABI.Entry.prototype.addOutputs=function(t,e){return o.Message.addToRepeatedWrapperField(this,5,t,proto.protocol.SmartContract.ABI.Entry.Param,e)},proto.protocol.SmartContract.ABI.Entry.prototype.clearOutputsList=function(){return this.setOutputsList([])},proto.protocol.SmartContract.ABI.Entry.prototype.getType=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.SmartContract.ABI.Entry.prototype.setType=function(t){return o.Message.setProto3EnumField(this,6,t)},proto.protocol.SmartContract.ABI.Entry.prototype.getPayable=function(){return o.Message.getBooleanFieldWithDefault(this,7,!1)},proto.protocol.SmartContract.ABI.Entry.prototype.setPayable=function(t){return o.Message.setProto3BooleanField(this,7,t)},proto.protocol.SmartContract.ABI.Entry.prototype.getStatemutability=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.SmartContract.ABI.Entry.prototype.setStatemutability=function(t){return o.Message.setProto3EnumField(this,8,t)},proto.protocol.SmartContract.ABI.prototype.getEntrysList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.SmartContract.ABI.Entry,1)},proto.protocol.SmartContract.ABI.prototype.setEntrysList=function(t){return o.Message.setRepeatedWrapperField(this,1,t)},proto.protocol.SmartContract.ABI.prototype.addEntrys=function(t,e){return o.Message.addToRepeatedWrapperField(this,1,t,proto.protocol.SmartContract.ABI.Entry,e)},proto.protocol.SmartContract.ABI.prototype.clearEntrysList=function(){return this.setEntrysList([])},proto.protocol.SmartContract.prototype.getOriginAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.SmartContract.prototype.getOriginAddress_asB64=function(){return o.Message.bytesAsB64(this.getOriginAddress())},proto.protocol.SmartContract.prototype.getOriginAddress_asU8=function(){return o.Message.bytesAsU8(this.getOriginAddress())},proto.protocol.SmartContract.prototype.setOriginAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.SmartContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SmartContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.SmartContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.SmartContract.prototype.setContractAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.SmartContract.prototype.getAbi=function(){return o.Message.getWrapperField(this,proto.protocol.SmartContract.ABI,3)},proto.protocol.SmartContract.prototype.setAbi=function(t){return o.Message.setWrapperField(this,3,t)},proto.protocol.SmartContract.prototype.clearAbi=function(){return this.setAbi(void 0)},proto.protocol.SmartContract.prototype.hasAbi=function(){return null!=o.Message.getField(this,3)},proto.protocol.SmartContract.prototype.getBytecode=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.SmartContract.prototype.getBytecode_asB64=function(){return o.Message.bytesAsB64(this.getBytecode())},proto.protocol.SmartContract.prototype.getBytecode_asU8=function(){return o.Message.bytesAsU8(this.getBytecode())},proto.protocol.SmartContract.prototype.setBytecode=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.SmartContract.prototype.getCallValue=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.SmartContract.prototype.setCallValue=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.SmartContract.prototype.getConsumeUserResourcePercent=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.SmartContract.prototype.setConsumeUserResourcePercent=function(t){return o.Message.setProto3IntField(this,6,t)},proto.protocol.SmartContract.prototype.getName=function(){return o.Message.getFieldWithDefault(this,7,"")},proto.protocol.SmartContract.prototype.setName=function(t){return o.Message.setProto3StringField(this,7,t)},proto.protocol.SmartContract.prototype.getOriginEnergyLimit=function(){return o.Message.getFieldWithDefault(this,8,0)},proto.protocol.SmartContract.prototype.setOriginEnergyLimit=function(t){return o.Message.setProto3IntField(this,8,t)},proto.protocol.SmartContract.prototype.getCodeHash=function(){return o.Message.getFieldWithDefault(this,9,"")},proto.protocol.SmartContract.prototype.getCodeHash_asB64=function(){return o.Message.bytesAsB64(this.getCodeHash())},proto.protocol.SmartContract.prototype.getCodeHash_asU8=function(){return o.Message.bytesAsU8(this.getCodeHash())},proto.protocol.SmartContract.prototype.setCodeHash=function(t){return o.Message.setProto3BytesField(this,9,t)},proto.protocol.SmartContract.prototype.getTrxHash=function(){return o.Message.getFieldWithDefault(this,10,"")},proto.protocol.SmartContract.prototype.getTrxHash_asB64=function(){return o.Message.bytesAsB64(this.getTrxHash())},proto.protocol.SmartContract.prototype.getTrxHash_asU8=function(){return o.Message.bytesAsU8(this.getTrxHash())},proto.protocol.SmartContract.prototype.setTrxHash=function(t){return o.Message.setProto3BytesField(this,10,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.CreateSmartContract.prototype.toObject=function(t){return proto.protocol.CreateSmartContract.toObject(t,this)},proto.protocol.CreateSmartContract.toObject=function(t,e){var r,n={ownerAddress:e.getOwnerAddress_asB64(),newContract:(r=e.getNewContract())&&proto.protocol.SmartContract.toObject(t,r),callTokenValue:o.Message.getFieldWithDefault(e,3,0),tokenId:o.Message.getFieldWithDefault(e,4,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.CreateSmartContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.CreateSmartContract;return proto.protocol.CreateSmartContract.deserializeBinaryFromReader(r,e)},proto.protocol.CreateSmartContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=new proto.protocol.SmartContract;e.readMessage(r,proto.protocol.SmartContract.deserializeBinaryFromReader),t.setNewContract(r);break;case 3:r=e.readInt64();t.setCallTokenValue(r);break;case 4:r=e.readInt64();t.setTokenId(r);break;default:e.skipField()}}return t},proto.protocol.CreateSmartContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.CreateSmartContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.CreateSmartContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),null!=(r=t.getNewContract())&&e.writeMessage(2,r,proto.protocol.SmartContract.serializeBinaryToWriter),0!==(r=t.getCallTokenValue())&&e.writeInt64(3,r),0!==(r=t.getTokenId())&&e.writeInt64(4,r)},proto.protocol.CreateSmartContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.CreateSmartContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.CreateSmartContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.CreateSmartContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.CreateSmartContract.prototype.getNewContract=function(){return o.Message.getWrapperField(this,proto.protocol.SmartContract,2)},proto.protocol.CreateSmartContract.prototype.setNewContract=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.CreateSmartContract.prototype.clearNewContract=function(){return this.setNewContract(void 0)},proto.protocol.CreateSmartContract.prototype.hasNewContract=function(){return null!=o.Message.getField(this,2)},proto.protocol.CreateSmartContract.prototype.getCallTokenValue=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.CreateSmartContract.prototype.setCallTokenValue=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.CreateSmartContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.CreateSmartContract.prototype.setTokenId=function(t){return o.Message.setProto3IntField(this,4,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.TriggerSmartContract.prototype.toObject=function(t){return proto.protocol.TriggerSmartContract.toObject(t,this)},proto.protocol.TriggerSmartContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),contractAddress:e.getContractAddress_asB64(),callValue:o.Message.getFieldWithDefault(e,3,0),data:e.getData_asB64(),callTokenValue:o.Message.getFieldWithDefault(e,5,0),tokenId:o.Message.getFieldWithDefault(e,6,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.TriggerSmartContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.TriggerSmartContract;return proto.protocol.TriggerSmartContract.deserializeBinaryFromReader(r,e)},proto.protocol.TriggerSmartContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setContractAddress(r);break;case 3:r=e.readInt64();t.setCallValue(r);break;case 4:r=e.readBytes();t.setData(r);break;case 5:r=e.readInt64();t.setCallTokenValue(r);break;case 6:r=e.readInt64();t.setTokenId(r);break;default:e.skipField()}}return t},proto.protocol.TriggerSmartContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.TriggerSmartContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.TriggerSmartContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getContractAddress_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getCallValue())&&e.writeInt64(3,r),(r=t.getData_asU8()).length>0&&e.writeBytes(4,r),0!==(r=t.getCallTokenValue())&&e.writeInt64(5,r),0!==(r=t.getTokenId())&&e.writeInt64(6,r)},proto.protocol.TriggerSmartContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.TriggerSmartContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.TriggerSmartContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.TriggerSmartContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.TriggerSmartContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.TriggerSmartContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.TriggerSmartContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.TriggerSmartContract.prototype.setContractAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.TriggerSmartContract.prototype.getCallValue=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.TriggerSmartContract.prototype.setCallValue=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.TriggerSmartContract.prototype.getData=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.TriggerSmartContract.prototype.getData_asB64=function(){return o.Message.bytesAsB64(this.getData())},proto.protocol.TriggerSmartContract.prototype.getData_asU8=function(){return o.Message.bytesAsU8(this.getData())},proto.protocol.TriggerSmartContract.prototype.setData=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.TriggerSmartContract.prototype.getCallTokenValue=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.TriggerSmartContract.prototype.setCallTokenValue=function(t){return o.Message.setProto3IntField(this,5,t)},proto.protocol.TriggerSmartContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.protocol.TriggerSmartContract.prototype.setTokenId=function(t){return o.Message.setProto3IntField(this,6,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ClearABIContract.prototype.toObject=function(t){return proto.protocol.ClearABIContract.toObject(t,this)},proto.protocol.ClearABIContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),contractAddress:e.getContractAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ClearABIContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ClearABIContract;return proto.protocol.ClearABIContract.deserializeBinaryFromReader(r,e)},proto.protocol.ClearABIContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setContractAddress(r);break;default:e.skipField()}}return t},proto.protocol.ClearABIContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ClearABIContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ClearABIContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getContractAddress_asU8()).length>0&&e.writeBytes(2,r)},proto.protocol.ClearABIContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ClearABIContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ClearABIContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ClearABIContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ClearABIContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.ClearABIContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.ClearABIContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.ClearABIContract.prototype.setContractAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateSettingContract.prototype.toObject=function(t){return proto.protocol.UpdateSettingContract.toObject(t,this)},proto.protocol.UpdateSettingContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),contractAddress:e.getContractAddress_asB64(),consumeUserResourcePercent:o.Message.getFieldWithDefault(e,3,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UpdateSettingContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UpdateSettingContract;return proto.protocol.UpdateSettingContract.deserializeBinaryFromReader(r,e)},proto.protocol.UpdateSettingContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setContractAddress(r);break;case 3:r=e.readInt64();t.setConsumeUserResourcePercent(r);break;default:e.skipField()}}return t},proto.protocol.UpdateSettingContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UpdateSettingContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UpdateSettingContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getContractAddress_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getConsumeUserResourcePercent())&&e.writeInt64(3,r)},proto.protocol.UpdateSettingContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateSettingContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateSettingContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateSettingContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UpdateSettingContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.UpdateSettingContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.UpdateSettingContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.UpdateSettingContract.prototype.setContractAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.UpdateSettingContract.prototype.getConsumeUserResourcePercent=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UpdateSettingContract.prototype.setConsumeUserResourcePercent=function(t){return o.Message.setProto3IntField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateEnergyLimitContract.prototype.toObject=function(t){return proto.protocol.UpdateEnergyLimitContract.toObject(t,this)},proto.protocol.UpdateEnergyLimitContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),contractAddress:e.getContractAddress_asB64(),originEnergyLimit:o.Message.getFieldWithDefault(e,3,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UpdateEnergyLimitContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UpdateEnergyLimitContract;return proto.protocol.UpdateEnergyLimitContract.deserializeBinaryFromReader(r,e)},proto.protocol.UpdateEnergyLimitContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setContractAddress(r);break;case 3:r=e.readInt64();t.setOriginEnergyLimit(r);break;default:e.skipField()}}return t},proto.protocol.UpdateEnergyLimitContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UpdateEnergyLimitContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UpdateEnergyLimitContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getContractAddress_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getOriginEnergyLimit())&&e.writeInt64(3,r)},proto.protocol.UpdateEnergyLimitContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateEnergyLimitContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UpdateEnergyLimitContract.prototype.getContractAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.UpdateEnergyLimitContract.prototype.getContractAddress_asB64=function(){return o.Message.bytesAsB64(this.getContractAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.getContractAddress_asU8=function(){return o.Message.bytesAsU8(this.getContractAddress())},proto.protocol.UpdateEnergyLimitContract.prototype.setContractAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.UpdateEnergyLimitContract.prototype.getOriginEnergyLimit=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.UpdateEnergyLimitContract.prototype.setOriginEnergyLimit=function(t){return o.Message.setProto3IntField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SmartContractDataWrapper.prototype.toObject=function(t){return proto.protocol.SmartContractDataWrapper.toObject(t,this)},proto.protocol.SmartContractDataWrapper.toObject=function(t,e){var r,o={smartContract:(r=e.getSmartContract())&&proto.protocol.SmartContract.toObject(t,r),runtimecode:e.getRuntimecode_asB64()};return t&&(o.$jspbMessageInstance=e),o}),proto.protocol.SmartContractDataWrapper.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.SmartContractDataWrapper;return proto.protocol.SmartContractDataWrapper.deserializeBinaryFromReader(r,e)},proto.protocol.SmartContractDataWrapper.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=new proto.protocol.SmartContract;e.readMessage(r,proto.protocol.SmartContract.deserializeBinaryFromReader),t.setSmartContract(r);break;case 2:r=e.readBytes();t.setRuntimecode(r);break;default:e.skipField()}}return t},proto.protocol.SmartContractDataWrapper.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SmartContractDataWrapper.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SmartContractDataWrapper.serializeBinaryToWriter=function(t,e){var r=void 0;null!=(r=t.getSmartContract())&&e.writeMessage(1,r,proto.protocol.SmartContract.serializeBinaryToWriter),(r=t.getRuntimecode_asU8()).length>0&&e.writeBytes(2,r)},proto.protocol.SmartContractDataWrapper.prototype.getSmartContract=function(){return o.Message.getWrapperField(this,proto.protocol.SmartContract,1)},proto.protocol.SmartContractDataWrapper.prototype.setSmartContract=function(t){return o.Message.setWrapperField(this,1,t)},proto.protocol.SmartContractDataWrapper.prototype.clearSmartContract=function(){return this.setSmartContract(void 0)},proto.protocol.SmartContractDataWrapper.prototype.hasSmartContract=function(){return null!=o.Message.getField(this,1)},proto.protocol.SmartContractDataWrapper.prototype.getRuntimecode=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SmartContractDataWrapper.prototype.getRuntimecode_asB64=function(){return o.Message.bytesAsB64(this.getRuntimecode())},proto.protocol.SmartContractDataWrapper.prototype.getRuntimecode_asU8=function(){return o.Message.bytesAsU8(this.getRuntimecode())},proto.protocol.SmartContractDataWrapper.prototype.setRuntimecode=function(t){return o.Message.setProto3BytesField(this,2,t)},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null);n.exportSymbol("proto.protocol.VoteWitnessContract",null,i),n.exportSymbol("proto.protocol.VoteWitnessContract.Vote",null,i),n.exportSymbol("proto.protocol.WitnessCreateContract",null,i),n.exportSymbol("proto.protocol.WitnessUpdateContract",null,i),proto.protocol.WitnessCreateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.WitnessCreateContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.WitnessCreateContract.displayName="proto.protocol.WitnessCreateContract"),proto.protocol.WitnessUpdateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.WitnessUpdateContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.WitnessUpdateContract.displayName="proto.protocol.WitnessUpdateContract"),proto.protocol.VoteWitnessContract=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.VoteWitnessContract.repeatedFields_,null)},n.inherits(proto.protocol.VoteWitnessContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.VoteWitnessContract.displayName="proto.protocol.VoteWitnessContract"),proto.protocol.VoteWitnessContract.Vote=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.VoteWitnessContract.Vote,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.VoteWitnessContract.Vote.displayName="proto.protocol.VoteWitnessContract.Vote"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WitnessCreateContract.prototype.toObject=function(t){return proto.protocol.WitnessCreateContract.toObject(t,this)},proto.protocol.WitnessCreateContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),url:e.getUrl_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.WitnessCreateContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.WitnessCreateContract;return proto.protocol.WitnessCreateContract.deserializeBinaryFromReader(r,e)},proto.protocol.WitnessCreateContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setUrl(r);break;default:e.skipField()}}return t},proto.protocol.WitnessCreateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.WitnessCreateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.WitnessCreateContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getUrl_asU8()).length>0&&e.writeBytes(2,r)},proto.protocol.WitnessCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WitnessCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WitnessCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WitnessCreateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.WitnessCreateContract.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.WitnessCreateContract.prototype.getUrl_asB64=function(){return o.Message.bytesAsB64(this.getUrl())},proto.protocol.WitnessCreateContract.prototype.getUrl_asU8=function(){return o.Message.bytesAsU8(this.getUrl())},proto.protocol.WitnessCreateContract.prototype.setUrl=function(t){return o.Message.setProto3BytesField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.WitnessUpdateContract.prototype.toObject=function(t){return proto.protocol.WitnessUpdateContract.toObject(t,this)},proto.protocol.WitnessUpdateContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),updateUrl:e.getUpdateUrl_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.WitnessUpdateContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.WitnessUpdateContract;return proto.protocol.WitnessUpdateContract.deserializeBinaryFromReader(r,e)},proto.protocol.WitnessUpdateContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 12:r=e.readBytes();t.setUpdateUrl(r);break;default:e.skipField()}}return t},proto.protocol.WitnessUpdateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.WitnessUpdateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.WitnessUpdateContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getUpdateUrl_asU8()).length>0&&e.writeBytes(12,r)},proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.WitnessUpdateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl=function(){return o.Message.getFieldWithDefault(this,12,"")},proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl_asB64=function(){return o.Message.bytesAsB64(this.getUpdateUrl())},proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl_asU8=function(){return o.Message.bytesAsU8(this.getUpdateUrl())},proto.protocol.WitnessUpdateContract.prototype.setUpdateUrl=function(t){return o.Message.setProto3BytesField(this,12,t)},proto.protocol.VoteWitnessContract.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.VoteWitnessContract.prototype.toObject=function(t){return proto.protocol.VoteWitnessContract.toObject(t,this)},proto.protocol.VoteWitnessContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),votesList:o.Message.toObjectList(e.getVotesList(),proto.protocol.VoteWitnessContract.Vote.toObject,t),support:o.Message.getBooleanFieldWithDefault(e,3,!1)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.VoteWitnessContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.VoteWitnessContract;return proto.protocol.VoteWitnessContract.deserializeBinaryFromReader(r,e)},proto.protocol.VoteWitnessContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=new proto.protocol.VoteWitnessContract.Vote;e.readMessage(r,proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader),t.addVotes(r);break;case 3:r=e.readBool();t.setSupport(r);break;default:e.skipField()}}return t},proto.protocol.VoteWitnessContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.VoteWitnessContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.VoteWitnessContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getVotesList()).length>0&&e.writeRepeatedMessage(2,r,proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter),(r=t.getSupport())&&e.writeBool(3,r)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.VoteWitnessContract.Vote.prototype.toObject=function(t){return proto.protocol.VoteWitnessContract.Vote.toObject(t,this)},proto.protocol.VoteWitnessContract.Vote.toObject=function(t,e){var r={voteAddress:e.getVoteAddress_asB64(),voteCount:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.VoteWitnessContract.Vote.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.VoteWitnessContract.Vote;return proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader(r,e)},proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setVoteAddress(r);break;case 2:r=e.readInt64();t.setVoteCount(r);break;default:e.skipField()}}return t},proto.protocol.VoteWitnessContract.Vote.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getVoteAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getVoteCount())&&e.writeInt64(2,r)},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress_asB64=function(){return o.Message.bytesAsB64(this.getVoteAddress())},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress_asU8=function(){return o.Message.bytesAsU8(this.getVoteAddress())},proto.protocol.VoteWitnessContract.Vote.prototype.setVoteAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.VoteWitnessContract.Vote.prototype.getVoteCount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.VoteWitnessContract.Vote.prototype.setVoteCount=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.VoteWitnessContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.VoteWitnessContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.VoteWitnessContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.VoteWitnessContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.VoteWitnessContract.prototype.getVotesList=function(){return o.Message.getRepeatedWrapperField(this,proto.protocol.VoteWitnessContract.Vote,2)},proto.protocol.VoteWitnessContract.prototype.setVotesList=function(t){return o.Message.setRepeatedWrapperField(this,2,t)},proto.protocol.VoteWitnessContract.prototype.addVotes=function(t,e){return o.Message.addToRepeatedWrapperField(this,2,t,proto.protocol.VoteWitnessContract.Vote,e)},proto.protocol.VoteWitnessContract.prototype.clearVotesList=function(){return this.setVotesList([])},proto.protocol.VoteWitnessContract.prototype.getSupport=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.protocol.VoteWitnessContract.prototype.setSupport=function(t){return o.Message.setProto3BooleanField(this,3,t)},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null);n.exportSymbol("proto.protocol.BuyStorageBytesContract",null,i),n.exportSymbol("proto.protocol.BuyStorageContract",null,i),n.exportSymbol("proto.protocol.SellStorageContract",null,i),n.exportSymbol("proto.protocol.UpdateBrokerageContract",null,i),proto.protocol.BuyStorageBytesContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.BuyStorageBytesContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.BuyStorageBytesContract.displayName="proto.protocol.BuyStorageBytesContract"),proto.protocol.BuyStorageContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.BuyStorageContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.BuyStorageContract.displayName="proto.protocol.BuyStorageContract"),proto.protocol.SellStorageContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.SellStorageContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.SellStorageContract.displayName="proto.protocol.SellStorageContract"),proto.protocol.UpdateBrokerageContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.UpdateBrokerageContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.UpdateBrokerageContract.displayName="proto.protocol.UpdateBrokerageContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BuyStorageBytesContract.prototype.toObject=function(t){return proto.protocol.BuyStorageBytesContract.toObject(t,this)},proto.protocol.BuyStorageBytesContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),bytes:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.BuyStorageBytesContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.BuyStorageBytesContract;return proto.protocol.BuyStorageBytesContract.deserializeBinaryFromReader(r,e)},proto.protocol.BuyStorageBytesContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setBytes(r);break;default:e.skipField()}}return t},proto.protocol.BuyStorageBytesContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.BuyStorageBytesContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.BuyStorageBytesContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getBytes())&&e.writeInt64(2,r)},proto.protocol.BuyStorageBytesContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.BuyStorageBytesContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.BuyStorageBytesContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.BuyStorageBytesContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.BuyStorageBytesContract.prototype.getBytes=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BuyStorageBytesContract.prototype.setBytes=function(t){return o.Message.setProto3IntField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.BuyStorageContract.prototype.toObject=function(t){return proto.protocol.BuyStorageContract.toObject(t,this)},proto.protocol.BuyStorageContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),quant:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.BuyStorageContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.BuyStorageContract;return proto.protocol.BuyStorageContract.deserializeBinaryFromReader(r,e)},proto.protocol.BuyStorageContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setQuant(r);break;default:e.skipField()}}return t},proto.protocol.BuyStorageContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.BuyStorageContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.BuyStorageContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getQuant())&&e.writeInt64(2,r)},proto.protocol.BuyStorageContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.BuyStorageContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.BuyStorageContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.BuyStorageContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.BuyStorageContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.BuyStorageContract.prototype.setQuant=function(t){return o.Message.setProto3IntField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SellStorageContract.prototype.toObject=function(t){return proto.protocol.SellStorageContract.toObject(t,this)},proto.protocol.SellStorageContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),storageBytes:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.SellStorageContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.SellStorageContract;return proto.protocol.SellStorageContract.deserializeBinaryFromReader(r,e)},proto.protocol.SellStorageContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setStorageBytes(r);break;default:e.skipField()}}return t},proto.protocol.SellStorageContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SellStorageContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SellStorageContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getStorageBytes())&&e.writeInt64(2,r)},proto.protocol.SellStorageContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.SellStorageContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.SellStorageContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.SellStorageContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.SellStorageContract.prototype.getStorageBytes=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.SellStorageContract.prototype.setStorageBytes=function(t){return o.Message.setProto3IntField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.UpdateBrokerageContract.prototype.toObject=function(t){return proto.protocol.UpdateBrokerageContract.toObject(t,this)},proto.protocol.UpdateBrokerageContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),brokerage:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.UpdateBrokerageContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.UpdateBrokerageContract;return proto.protocol.UpdateBrokerageContract.deserializeBinaryFromReader(r,e)},proto.protocol.UpdateBrokerageContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt32();t.setBrokerage(r);break;default:e.skipField()}}return t},proto.protocol.UpdateBrokerageContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.UpdateBrokerageContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.UpdateBrokerageContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getBrokerage())&&e.writeInt32(2,r)},proto.protocol.UpdateBrokerageContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.UpdateBrokerageContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.UpdateBrokerageContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.UpdateBrokerageContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.UpdateBrokerageContract.prototype.getBrokerage=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.UpdateBrokerageContract.prototype.setBrokerage=function(t){return o.Message.setProto3IntField(this,2,t)},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null),a=r(90);n.object.extend(proto,a),n.exportSymbol("proto.protocol.AccountCreateContract",null,i),n.exportSymbol("proto.protocol.AccountPermissionUpdateContract",null,i),n.exportSymbol("proto.protocol.AccountUpdateContract",null,i),n.exportSymbol("proto.protocol.SetAccountIdContract",null,i),proto.protocol.AccountCreateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AccountCreateContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountCreateContract.displayName="proto.protocol.AccountCreateContract"),proto.protocol.AccountUpdateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.AccountUpdateContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountUpdateContract.displayName="proto.protocol.AccountUpdateContract"),proto.protocol.SetAccountIdContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.SetAccountIdContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.SetAccountIdContract.displayName="proto.protocol.SetAccountIdContract"),proto.protocol.AccountPermissionUpdateContract=function(t){o.Message.initialize(this,t,0,-1,proto.protocol.AccountPermissionUpdateContract.repeatedFields_,null)},n.inherits(proto.protocol.AccountPermissionUpdateContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.AccountPermissionUpdateContract.displayName="proto.protocol.AccountPermissionUpdateContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountCreateContract.prototype.toObject=function(t){return proto.protocol.AccountCreateContract.toObject(t,this)},proto.protocol.AccountCreateContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),accountAddress:e.getAccountAddress_asB64(),type:o.Message.getFieldWithDefault(e,3,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.AccountCreateContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountCreateContract;return proto.protocol.AccountCreateContract.deserializeBinaryFromReader(r,e)},proto.protocol.AccountCreateContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setAccountAddress(r);break;case 3:r=e.readEnum();t.setType(r);break;default:e.skipField()}}return t},proto.protocol.AccountCreateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountCreateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountCreateContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getAccountAddress_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getType())&&e.writeEnum(3,r)},proto.protocol.AccountCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AccountCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AccountCreateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountCreateContract.prototype.getAccountAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AccountCreateContract.prototype.getAccountAddress_asB64=function(){return o.Message.bytesAsB64(this.getAccountAddress())},proto.protocol.AccountCreateContract.prototype.getAccountAddress_asU8=function(){return o.Message.bytesAsU8(this.getAccountAddress())},proto.protocol.AccountCreateContract.prototype.setAccountAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.AccountCreateContract.prototype.getType=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.AccountCreateContract.prototype.setType=function(t){return o.Message.setProto3EnumField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountUpdateContract.prototype.toObject=function(t){return proto.protocol.AccountUpdateContract.toObject(t,this)},proto.protocol.AccountUpdateContract.toObject=function(t,e){var r={accountName:e.getAccountName_asB64(),ownerAddress:e.getOwnerAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.AccountUpdateContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountUpdateContract;return proto.protocol.AccountUpdateContract.deserializeBinaryFromReader(r,e)},proto.protocol.AccountUpdateContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAccountName(r);break;case 2:r=e.readBytes();t.setOwnerAddress(r);break;default:e.skipField()}}return t},proto.protocol.AccountUpdateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountUpdateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountUpdateContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAccountName_asU8()).length>0&&e.writeBytes(1,r),(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(2,r)},proto.protocol.AccountUpdateContract.prototype.getAccountName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountUpdateContract.prototype.getAccountName_asB64=function(){return o.Message.bytesAsB64(this.getAccountName())},proto.protocol.AccountUpdateContract.prototype.getAccountName_asU8=function(){return o.Message.bytesAsU8(this.getAccountName())},proto.protocol.AccountUpdateContract.prototype.setAccountName=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountUpdateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.AccountUpdateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AccountUpdateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AccountUpdateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.SetAccountIdContract.prototype.toObject=function(t){return proto.protocol.SetAccountIdContract.toObject(t,this)},proto.protocol.SetAccountIdContract.toObject=function(t,e){var r={accountId:e.getAccountId_asB64(),ownerAddress:e.getOwnerAddress_asB64()};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.SetAccountIdContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.SetAccountIdContract;return proto.protocol.SetAccountIdContract.deserializeBinaryFromReader(r,e)},proto.protocol.SetAccountIdContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setAccountId(r);break;case 2:r=e.readBytes();t.setOwnerAddress(r);break;default:e.skipField()}}return t},proto.protocol.SetAccountIdContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.SetAccountIdContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.SetAccountIdContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getAccountId_asU8()).length>0&&e.writeBytes(1,r),(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(2,r)},proto.protocol.SetAccountIdContract.prototype.getAccountId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.SetAccountIdContract.prototype.getAccountId_asB64=function(){return o.Message.bytesAsB64(this.getAccountId())},proto.protocol.SetAccountIdContract.prototype.getAccountId_asU8=function(){return o.Message.bytesAsU8(this.getAccountId())},proto.protocol.SetAccountIdContract.prototype.setAccountId=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.SetAccountIdContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.SetAccountIdContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.SetAccountIdContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.SetAccountIdContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.AccountPermissionUpdateContract.repeatedFields_=[4],o.Message.GENERATE_TO_OBJECT&&(proto.protocol.AccountPermissionUpdateContract.prototype.toObject=function(t){return proto.protocol.AccountPermissionUpdateContract.toObject(t,this)},proto.protocol.AccountPermissionUpdateContract.toObject=function(t,e){var r,n={ownerAddress:e.getOwnerAddress_asB64(),owner:(r=e.getOwner())&&a.Permission.toObject(t,r),witness:(r=e.getWitness())&&a.Permission.toObject(t,r),activesList:o.Message.toObjectList(e.getActivesList(),a.Permission.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.protocol.AccountPermissionUpdateContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.AccountPermissionUpdateContract;return proto.protocol.AccountPermissionUpdateContract.deserializeBinaryFromReader(r,e)},proto.protocol.AccountPermissionUpdateContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=new a.Permission;e.readMessage(r,a.Permission.deserializeBinaryFromReader),t.setOwner(r);break;case 3:r=new a.Permission;e.readMessage(r,a.Permission.deserializeBinaryFromReader),t.setWitness(r);break;case 4:r=new a.Permission;e.readMessage(r,a.Permission.deserializeBinaryFromReader),t.addActives(r);break;default:e.skipField()}}return t},proto.protocol.AccountPermissionUpdateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.AccountPermissionUpdateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.AccountPermissionUpdateContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),null!=(r=t.getOwner())&&e.writeMessage(2,r,a.Permission.serializeBinaryToWriter),null!=(r=t.getWitness())&&e.writeMessage(3,r,a.Permission.serializeBinaryToWriter),(r=t.getActivesList()).length>0&&e.writeRepeatedMessage(4,r,a.Permission.serializeBinaryToWriter)},proto.protocol.AccountPermissionUpdateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.AccountPermissionUpdateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.AccountPermissionUpdateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.AccountPermissionUpdateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.AccountPermissionUpdateContract.prototype.getOwner=function(){return o.Message.getWrapperField(this,a.Permission,2)},proto.protocol.AccountPermissionUpdateContract.prototype.setOwner=function(t){return o.Message.setWrapperField(this,2,t)},proto.protocol.AccountPermissionUpdateContract.prototype.clearOwner=function(){return this.setOwner(void 0)},proto.protocol.AccountPermissionUpdateContract.prototype.hasOwner=function(){return null!=o.Message.getField(this,2)},proto.protocol.AccountPermissionUpdateContract.prototype.getWitness=function(){return o.Message.getWrapperField(this,a.Permission,3)},proto.protocol.AccountPermissionUpdateContract.prototype.setWitness=function(t){return o.Message.setWrapperField(this,3,t)},proto.protocol.AccountPermissionUpdateContract.prototype.clearWitness=function(){return this.setWitness(void 0)},proto.protocol.AccountPermissionUpdateContract.prototype.hasWitness=function(){return null!=o.Message.getField(this,3)},proto.protocol.AccountPermissionUpdateContract.prototype.getActivesList=function(){return o.Message.getRepeatedWrapperField(this,a.Permission,4)},proto.protocol.AccountPermissionUpdateContract.prototype.setActivesList=function(t){return o.Message.setRepeatedWrapperField(this,4,t)},proto.protocol.AccountPermissionUpdateContract.prototype.addActives=function(t,e){return o.Message.addToRepeatedWrapperField(this,4,t,proto.protocol.Permission,e)},proto.protocol.AccountPermissionUpdateContract.prototype.clearActivesList=function(){return this.setActivesList([])},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null);n.exportSymbol("proto.protocol.ProposalApproveContract",null,i),n.exportSymbol("proto.protocol.ProposalCreateContract",null,i),n.exportSymbol("proto.protocol.ProposalDeleteContract",null,i),proto.protocol.ProposalApproveContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ProposalApproveContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ProposalApproveContract.displayName="proto.protocol.ProposalApproveContract"),proto.protocol.ProposalCreateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ProposalCreateContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ProposalCreateContract.displayName="proto.protocol.ProposalCreateContract"),proto.protocol.ProposalDeleteContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ProposalDeleteContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ProposalDeleteContract.displayName="proto.protocol.ProposalDeleteContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ProposalApproveContract.prototype.toObject=function(t){return proto.protocol.ProposalApproveContract.toObject(t,this)},proto.protocol.ProposalApproveContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),proposalId:o.Message.getFieldWithDefault(e,2,0),isAddApproval:o.Message.getBooleanFieldWithDefault(e,3,!1)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ProposalApproveContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ProposalApproveContract;return proto.protocol.ProposalApproveContract.deserializeBinaryFromReader(r,e)},proto.protocol.ProposalApproveContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setProposalId(r);break;case 3:r=e.readBool();t.setIsAddApproval(r);break;default:e.skipField()}}return t},proto.protocol.ProposalApproveContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ProposalApproveContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ProposalApproveContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getProposalId())&&e.writeInt64(2,r),(r=t.getIsAddApproval())&&e.writeBool(3,r)},proto.protocol.ProposalApproveContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ProposalApproveContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ProposalApproveContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ProposalApproveContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ProposalApproveContract.prototype.getProposalId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ProposalApproveContract.prototype.setProposalId=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.ProposalApproveContract.prototype.getIsAddApproval=function(){return o.Message.getBooleanFieldWithDefault(this,3,!1)},proto.protocol.ProposalApproveContract.prototype.setIsAddApproval=function(t){return o.Message.setProto3BooleanField(this,3,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ProposalCreateContract.prototype.toObject=function(t){return proto.protocol.ProposalCreateContract.toObject(t,this)},proto.protocol.ProposalCreateContract.toObject=function(t,e){var r,o={ownerAddress:e.getOwnerAddress_asB64(),parametersMap:(r=e.getParametersMap())?r.toObject(t,void 0):[]};return t&&(o.$jspbMessageInstance=e),o}),proto.protocol.ProposalCreateContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ProposalCreateContract;return proto.protocol.ProposalCreateContract.deserializeBinaryFromReader(r,e)},proto.protocol.ProposalCreateContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=t.getParametersMap();e.readMessage(r,(function(t,e){o.Map.deserializeBinary(t,e,o.BinaryReader.prototype.readInt64,o.BinaryReader.prototype.readInt64,null,0,0)}));break;default:e.skipField()}}return t},proto.protocol.ProposalCreateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ProposalCreateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ProposalCreateContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getParametersMap(!0))&&r.getLength()>0&&r.serializeBinary(2,e,o.BinaryWriter.prototype.writeInt64,o.BinaryWriter.prototype.writeInt64)},proto.protocol.ProposalCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ProposalCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ProposalCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ProposalCreateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ProposalCreateContract.prototype.getParametersMap=function(t){return o.Message.getMapField(this,2,t,null)},proto.protocol.ProposalCreateContract.prototype.clearParametersMap=function(){return this.getParametersMap().clear(),this},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ProposalDeleteContract.prototype.toObject=function(t){return proto.protocol.ProposalDeleteContract.toObject(t,this)},proto.protocol.ProposalDeleteContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),proposalId:o.Message.getFieldWithDefault(e,2,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ProposalDeleteContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ProposalDeleteContract;return proto.protocol.ProposalDeleteContract.deserializeBinaryFromReader(r,e)},proto.protocol.ProposalDeleteContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setProposalId(r);break;default:e.skipField()}}return t},proto.protocol.ProposalDeleteContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ProposalDeleteContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ProposalDeleteContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getProposalId())&&e.writeInt64(2,r)},proto.protocol.ProposalDeleteContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ProposalDeleteContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ProposalDeleteContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ProposalDeleteContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ProposalDeleteContract.prototype.getProposalId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ProposalDeleteContract.prototype.setProposalId=function(t){return o.Message.setProto3IntField(this,2,t)},n.object.extend(e,proto.protocol)},function(t,e,r){var o=r(26),n=o,i=function(){return this||window||i||self||Function("return this")()}.call(null);n.exportSymbol("proto.protocol.ExchangeCreateContract",null,i),n.exportSymbol("proto.protocol.ExchangeInjectContract",null,i),n.exportSymbol("proto.protocol.ExchangeTransactionContract",null,i),n.exportSymbol("proto.protocol.ExchangeWithdrawContract",null,i),proto.protocol.ExchangeCreateContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ExchangeCreateContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ExchangeCreateContract.displayName="proto.protocol.ExchangeCreateContract"),proto.protocol.ExchangeInjectContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ExchangeInjectContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ExchangeInjectContract.displayName="proto.protocol.ExchangeInjectContract"),proto.protocol.ExchangeWithdrawContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ExchangeWithdrawContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ExchangeWithdrawContract.displayName="proto.protocol.ExchangeWithdrawContract"),proto.protocol.ExchangeTransactionContract=function(t){o.Message.initialize(this,t,0,-1,null,null)},n.inherits(proto.protocol.ExchangeTransactionContract,o.Message),n.DEBUG&&!COMPILED&&(proto.protocol.ExchangeTransactionContract.displayName="proto.protocol.ExchangeTransactionContract"),o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeCreateContract.prototype.toObject=function(t){return proto.protocol.ExchangeCreateContract.toObject(t,this)},proto.protocol.ExchangeCreateContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),firstTokenId:e.getFirstTokenId_asB64(),firstTokenBalance:o.Message.getFieldWithDefault(e,3,0),secondTokenId:e.getSecondTokenId_asB64(),secondTokenBalance:o.Message.getFieldWithDefault(e,5,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ExchangeCreateContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ExchangeCreateContract;return proto.protocol.ExchangeCreateContract.deserializeBinaryFromReader(r,e)},proto.protocol.ExchangeCreateContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readBytes();t.setFirstTokenId(r);break;case 3:r=e.readInt64();t.setFirstTokenBalance(r);break;case 4:r=e.readBytes();t.setSecondTokenId(r);break;case 5:r=e.readInt64();t.setSecondTokenBalance(r);break;default:e.skipField()}}return t},proto.protocol.ExchangeCreateContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ExchangeCreateContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ExchangeCreateContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),(r=t.getFirstTokenId_asU8()).length>0&&e.writeBytes(2,r),0!==(r=t.getFirstTokenBalance())&&e.writeInt64(3,r),(r=t.getSecondTokenId_asU8()).length>0&&e.writeBytes(4,r),0!==(r=t.getSecondTokenBalance())&&e.writeInt64(5,r)},proto.protocol.ExchangeCreateContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeCreateContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeCreateContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeCreateContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenId=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenId_asB64=function(){return o.Message.bytesAsB64(this.getFirstTokenId())},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenId_asU8=function(){return o.Message.bytesAsU8(this.getFirstTokenId())},proto.protocol.ExchangeCreateContract.prototype.setFirstTokenId=function(t){return o.Message.setProto3BytesField(this,2,t)},proto.protocol.ExchangeCreateContract.prototype.getFirstTokenBalance=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.protocol.ExchangeCreateContract.prototype.setFirstTokenBalance=function(t){return o.Message.setProto3IntField(this,3,t)},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenId=function(){return o.Message.getFieldWithDefault(this,4,"")},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenId_asB64=function(){return o.Message.bytesAsB64(this.getSecondTokenId())},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenId_asU8=function(){return o.Message.bytesAsU8(this.getSecondTokenId())},proto.protocol.ExchangeCreateContract.prototype.setSecondTokenId=function(t){return o.Message.setProto3BytesField(this,4,t)},proto.protocol.ExchangeCreateContract.prototype.getSecondTokenBalance=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.ExchangeCreateContract.prototype.setSecondTokenBalance=function(t){return o.Message.setProto3IntField(this,5,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeInjectContract.prototype.toObject=function(t){return proto.protocol.ExchangeInjectContract.toObject(t,this)},proto.protocol.ExchangeInjectContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),exchangeId:o.Message.getFieldWithDefault(e,2,0),tokenId:e.getTokenId_asB64(),quant:o.Message.getFieldWithDefault(e,4,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ExchangeInjectContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ExchangeInjectContract;return proto.protocol.ExchangeInjectContract.deserializeBinaryFromReader(r,e)},proto.protocol.ExchangeInjectContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setExchangeId(r);break;case 3:r=e.readBytes();t.setTokenId(r);break;case 4:r=e.readInt64();t.setQuant(r);break;default:e.skipField()}}return t},proto.protocol.ExchangeInjectContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ExchangeInjectContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ExchangeInjectContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getExchangeId())&&e.writeInt64(2,r),(r=t.getTokenId_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getQuant())&&e.writeInt64(4,r)},proto.protocol.ExchangeInjectContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeInjectContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeInjectContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeInjectContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ExchangeInjectContract.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ExchangeInjectContract.prototype.setExchangeId=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.ExchangeInjectContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ExchangeInjectContract.prototype.getTokenId_asB64=function(){return o.Message.bytesAsB64(this.getTokenId())},proto.protocol.ExchangeInjectContract.prototype.getTokenId_asU8=function(){return o.Message.bytesAsU8(this.getTokenId())},proto.protocol.ExchangeInjectContract.prototype.setTokenId=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.ExchangeInjectContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ExchangeInjectContract.prototype.setQuant=function(t){return o.Message.setProto3IntField(this,4,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeWithdrawContract.prototype.toObject=function(t){return proto.protocol.ExchangeWithdrawContract.toObject(t,this)},proto.protocol.ExchangeWithdrawContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),exchangeId:o.Message.getFieldWithDefault(e,2,0),tokenId:e.getTokenId_asB64(),quant:o.Message.getFieldWithDefault(e,4,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ExchangeWithdrawContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ExchangeWithdrawContract;return proto.protocol.ExchangeWithdrawContract.deserializeBinaryFromReader(r,e)},proto.protocol.ExchangeWithdrawContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setExchangeId(r);break;case 3:r=e.readBytes();t.setTokenId(r);break;case 4:r=e.readInt64();t.setQuant(r);break;default:e.skipField()}}return t},proto.protocol.ExchangeWithdrawContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ExchangeWithdrawContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ExchangeWithdrawContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getExchangeId())&&e.writeInt64(2,r),(r=t.getTokenId_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getQuant())&&e.writeInt64(4,r)},proto.protocol.ExchangeWithdrawContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeWithdrawContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeWithdrawContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeWithdrawContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ExchangeWithdrawContract.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ExchangeWithdrawContract.prototype.setExchangeId=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.ExchangeWithdrawContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ExchangeWithdrawContract.prototype.getTokenId_asB64=function(){return o.Message.bytesAsB64(this.getTokenId())},proto.protocol.ExchangeWithdrawContract.prototype.getTokenId_asU8=function(){return o.Message.bytesAsU8(this.getTokenId())},proto.protocol.ExchangeWithdrawContract.prototype.setTokenId=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.ExchangeWithdrawContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ExchangeWithdrawContract.prototype.setQuant=function(t){return o.Message.setProto3IntField(this,4,t)},o.Message.GENERATE_TO_OBJECT&&(proto.protocol.ExchangeTransactionContract.prototype.toObject=function(t){return proto.protocol.ExchangeTransactionContract.toObject(t,this)},proto.protocol.ExchangeTransactionContract.toObject=function(t,e){var r={ownerAddress:e.getOwnerAddress_asB64(),exchangeId:o.Message.getFieldWithDefault(e,2,0),tokenId:e.getTokenId_asB64(),quant:o.Message.getFieldWithDefault(e,4,0),expected:o.Message.getFieldWithDefault(e,5,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.protocol.ExchangeTransactionContract.deserializeBinary=function(t){var e=new o.BinaryReader(t),r=new proto.protocol.ExchangeTransactionContract;return proto.protocol.ExchangeTransactionContract.deserializeBinaryFromReader(r,e)},proto.protocol.ExchangeTransactionContract.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();){switch(e.getFieldNumber()){case 1:var r=e.readBytes();t.setOwnerAddress(r);break;case 2:r=e.readInt64();t.setExchangeId(r);break;case 3:r=e.readBytes();t.setTokenId(r);break;case 4:r=e.readInt64();t.setQuant(r);break;case 5:r=e.readInt64();t.setExpected(r);break;default:e.skipField()}}return t},proto.protocol.ExchangeTransactionContract.prototype.serializeBinary=function(){var t=new o.BinaryWriter;return proto.protocol.ExchangeTransactionContract.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.protocol.ExchangeTransactionContract.serializeBinaryToWriter=function(t,e){var r=void 0;(r=t.getOwnerAddress_asU8()).length>0&&e.writeBytes(1,r),0!==(r=t.getExchangeId())&&e.writeInt64(2,r),(r=t.getTokenId_asU8()).length>0&&e.writeBytes(3,r),0!==(r=t.getQuant())&&e.writeInt64(4,r),0!==(r=t.getExpected())&&e.writeInt64(5,r)},proto.protocol.ExchangeTransactionContract.prototype.getOwnerAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.protocol.ExchangeTransactionContract.prototype.getOwnerAddress_asB64=function(){return o.Message.bytesAsB64(this.getOwnerAddress())},proto.protocol.ExchangeTransactionContract.prototype.getOwnerAddress_asU8=function(){return o.Message.bytesAsU8(this.getOwnerAddress())},proto.protocol.ExchangeTransactionContract.prototype.setOwnerAddress=function(t){return o.Message.setProto3BytesField(this,1,t)},proto.protocol.ExchangeTransactionContract.prototype.getExchangeId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.protocol.ExchangeTransactionContract.prototype.setExchangeId=function(t){return o.Message.setProto3IntField(this,2,t)},proto.protocol.ExchangeTransactionContract.prototype.getTokenId=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.protocol.ExchangeTransactionContract.prototype.getTokenId_asB64=function(){return o.Message.bytesAsB64(this.getTokenId())},proto.protocol.ExchangeTransactionContract.prototype.getTokenId_asU8=function(){return o.Message.bytesAsU8(this.getTokenId())},proto.protocol.ExchangeTransactionContract.prototype.setTokenId=function(t){return o.Message.setProto3BytesField(this,3,t)},proto.protocol.ExchangeTransactionContract.prototype.getQuant=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.protocol.ExchangeTransactionContract.prototype.setQuant=function(t){return o.Message.setProto3IntField(this,4,t)},proto.protocol.ExchangeTransactionContract.prototype.getExpected=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.protocol.ExchangeTransactionContract.prototype.setExpected=function(t){return o.Message.setProto3IntField(this,5,t)},n.object.extend(e,proto.protocol)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(t),parseInt(t,e||10)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),e)return"1"===t||/^true$/i.test(t);return"0"!==t&&!/^false$/i.test(t)&&""!==t};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(t),t===e};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){if((0,o.default)(t),(r=(0,i.default)(r,s)).ignoreCase)return t.toLowerCase().split((0,n.default)(e).toLowerCase()).length>r.minOccurrences;return t.split((0,n.default)(e)).length>r.minOccurrences};var o=a(r(5)),n=a(r(94)),i=a(r(21));function a(t){return t&&t.__esModule?t:{default:t}}var s={ignoreCase:!1,minOccurrences:1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){(0,n.default)(t),"[object RegExp]"!==Object.prototype.toString.call(e)&&(e=new RegExp(e,r));return e.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,o.default)(t),(e=(0,n.default)(e,u)).require_display_name||e.allow_display_name){var r=t.match(l);if(r){var c=r[1];if(t=t.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.substr(0,c.length-1)),!function(t){var e=t.replace(/^"(.+)"$/,"$1");if(!e.trim())return!1;if(/[\.";<>]/.test(e)){if(e===t)return!1;if(!(e.split('"').length===e.split('\\"').length))return!1}return!0}(c))return!1}else if(e.require_display_name)return!1}if(!e.ignore_max_length&&t.length>254)return!1;var y=t.split("@"),m=y.pop(),b=m.toLowerCase();if(e.host_blacklist.includes(b))return!1;var v=y.join("@");if(e.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var A=(v=v.toLowerCase()).split("+")[0];if(!(0,i.default)(A.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=A.split("."),M=0;M<w.length;M++)if(!p.test(w[M]))return!1}if(!(!1!==e.ignore_max_length||(0,i.default)(v,{max:64})&&(0,i.default)(m,{max:254})))return!1;if(!(0,a.default)(m,{require_tld:e.require_tld})){if(!e.allow_ip_domain)return!1;if(!(0,s.default)(m)){if(!m.startsWith("[")||!m.endsWith("]"))return!1;var B=m.substr(1,m.length-2);if(0===B.length||!(0,s.default)(B))return!1}}if('"'===v[0])return v=v.slice(1,v.length-1),e.allow_utf8_local_part?g.test(v):f.test(v);for(var C=e.allow_utf8_local_part?h:d,E=v.split("."),S=0;S<E.length;S++)if(!C.test(E[S]))return!1;if(e.blacklisted_chars&&-1!==v.search(new RegExp("[".concat(e.blacklisted_chars,"]+"),"g")))return!1;return!0};var o=c(r(5)),n=c(r(21)),i=c(r(95)),a=c(r(60)),s=c(r(48));function c(t){return t&&t.__esModule?t:{default:t}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,o.default)(t),!t||/[\s<>]/.test(t))return!1;if(0===t.indexOf("mailto:"))return!1;if((e=(0,a.default)(e,u)).validate_length&&t.length>=2083)return!1;if(!e.allow_fragments&&t.includes("#"))return!1;if(!e.allow_query_components&&(t.includes("?")||t.includes("&")))return!1;var r,s,p,f,h,g,y,m;if(y=t.split("#"),t=y.shift(),y=t.split("?"),t=y.shift(),(y=t.split("://")).length>1){if(r=y.shift().toLowerCase(),e.require_valid_protocol&&-1===e.protocols.indexOf(r))return!1}else{if(e.require_protocol)return!1;if("//"===t.substr(0,2)){if(!e.allow_protocol_relative_urls)return!1;y[0]=t.substr(2)}}if(""===(t=y.join("://")))return!1;if(y=t.split("/"),""===(t=y.shift())&&!e.require_host)return!0;if((y=t.split("@")).length>1){if(e.disallow_auth)return!1;if(""===y[0])return!1;if((s=y.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var b=s.split(":"),v=(B=2,function(t){if(Array.isArray(t))return t}(M=b)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],o=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);o=!0);}catch(t){n=!0,i=t}finally{try{o||null==s.return||s.return()}finally{if(n)throw i}}return r}}(M,B)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(M,B)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),A=v[0],w=v[1];if(""===A&&""===w)return!1}var M,B;f=y.join("@"),g=null,m=null;var C=f.match(l);C?(p="",m=C[1],g=C[2]||null):(y=f.split(":"),p=y.shift(),y.length&&(g=y.join(":")));if(null!==g&&g.length>0){if(h=parseInt(g,10),!/^[0-9]+$/.test(g)||h<=0||h>65535)return!1}else if(e.require_port)return!1;if(e.host_whitelist)return d(p,e.host_whitelist);if(!((0,i.default)(p)||(0,n.default)(p,e)||m&&(0,i.default)(m,6)))return!1;if(p=p||m,e.host_blacklist&&d(p,e.host_blacklist))return!1;return!0};var o=s(r(5)),n=s(r(60)),i=s(r(48)),a=s(r(21));function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(t,e){for(var r=0;r<e.length;r++){var o=e[r];if(t===o||(n=o,"[object RegExp]"===Object.prototype.toString.call(n)&&o.test(t)))return!0}var n;return!1}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),e&&(e.no_colons||e.no_separators))return a.test(t);return i.test(t)||s.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,a=/^([0-9a-fA-F]){12}$/,s=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,o.default)(t);var r=t.split("/");if(2!==r.length)return!1;if(!a.test(r[1]))return!1;if(r[1].length>1&&r[1].startsWith("0"))return!1;var i=(0,n.default)(r[0],e);if(!i)return!1;var s=null;switch(String(e)){case"4":s=32;break;case"6":s=128;break;default:s=(0,n.default)(r[0],"6")?128:32}return r[1]<=s&&r[1]>=0};var o=i(r(5)),n=i(r(48));function i(t){return t&&t.__esModule?t:{default:t}}var a=/^\d{1,3}$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,n.default)(t),e.loose)return s.includes(t.toLowerCase());return a.includes(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={loose:!1},a=["true","false","1","0"],s=[].concat(a,["yes","no"]);t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t),"en_US_POSIX"===t||"ca_ES_VALENCIA"===t)return!0;return i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,n.default)(t);var o=t,a=r.ignore;if(a)if(a instanceof RegExp)o=o.replace(a,"");else{if("string"!=typeof a)throw new Error("ignore should be instance of a String or RegExp");o=o.replace(new RegExp("[".concat(a.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(e in i.alpha)return i.alpha[e].test(o);throw new Error("Invalid locale '".concat(e,"'"))},e.locales=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o},i=r(41);var a=Object.keys(i.alpha);e.locales=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,n.default)(t);var o=t,a=r.ignore;if(a)if(a instanceof RegExp)o=o.replace(a,"");else{if("string"!=typeof a)throw new Error("ignore should be instance of a String or RegExp");o=o.replace(new RegExp("[".concat(a.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(e in i.alphanumeric)return i.alphanumeric[e].test(o);throw new Error("Invalid locale '".concat(e,"'"))},e.locales=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o},i=r(41);var a=Object.keys(i.alphanumeric);e.locales=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),e&&e.no_symbols)return a.test(t);return new RegExp("^[+-]?([0-9]*[".concat((e||{}).locale?i.decimal[e.locale]:".","])?[0-9]+$")).test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o},i=r(41);var a=/^[0-9]+$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t);var r=t.replace(/\s/g,"").toUpperCase();return e.toUpperCase()in i&&i[e].test(r)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t,{min:0,max:65535})};var o,n=(o=r(61))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),t===t.toLowerCase()};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),t===t.toUpperCase()};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t);var r=i;(e=e||{}).allow_hyphens&&(r=a);if(!r.test(t))return!1;t=t.replace(/-/g,"");for(var o=0,s=2,c=0;c<14;c++){var u=t.substring(14-c-1,14-c),l=parseInt(u,10)*s;o+=l>=10?l%10+1:l,1===s?s+=1:s-=1}if((10-o%10)%10!==parseInt(t.substring(14,15),10))return!1;return!0};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[0-9]{15}$/,a=/^\d{2}-\d{6}-\d{6}-\d{1}$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[\x00-\x7F]+$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.fullWidth.test(t)&&a.halfWidth.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o},i=r(97),a=r(98);t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/[^\x00-\x7F]/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t),i.test(t)};var o=n(r(5));function n(t){return t&&t.__esModule?t:{default:t}}var i=(0,n(r(200)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r=t.join("");return new RegExp(r,e)},t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),(e=(0,o.default)(e,c)).locale in a.decimal)return!(0,i.default)(u,t.replace(/ /g,""))&&function(t){return new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[t.locale],"[0-9]{").concat(t.decimal_digits,"})").concat(t.force_decimal?"":"?","$"))}(e).test(t);throw new Error("Invalid locale '".concat(e.locale,"'"))};var o=s(r(21)),n=s(r(5)),i=s(r(203)),a=r(41);function s(t){return t&&t.__esModule?t:{default:t}}var c={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){return t.some((function(t){return e===t}))};e.default=o,t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(0o)?[0-7]+$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,o.default)(t),(0,n.default)(t)%parseInt(e,10)==0};var o=i(r(5)),n=i(r(92));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,n.default)(t),!e)return i.test(t)||a.test(t);return i.test(t)||a.test(t)||s.test(t)||c.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,a=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,s=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/,c=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,n.default)(t);var e=t.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==e.indexOf(","))return i.test(e);return a.test(e)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),function(t){var e=t.replace(/[\s\-]+/gi,"").toUpperCase(),r=e.slice(0,2).toUpperCase();return r in i&&i[r].test(e)}(t)&&function(t){var e=t.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(e.slice(4)+e.slice(0,4)).replace(/[A-Z]/g,(function(t){return t.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(t,e){return Number(t+e)%97}),"")}(t)},e.locales=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var a=Object.keys(i);e.locales=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t),!i.CountryCodes.has(t.slice(4,6).toUpperCase()))return!1;return a.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o},i=r(100);var a=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[a-f0-9]{32}$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(t),new RegExp("^[a-fA-F0-9]{".concat(i[e],"}$")).test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,o.default)(t);var e=t.split("."),r=e.length;if(r>3||r<2)return!1;return e.reduce((function(t,e){return t&&(0,n.default)(e,{urlSafe:!0})}),!0)};var o=i(r(5)),n=i(r(101));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(t);try{e=(0,n.default)(e,s);var r=[];e.allow_primitives&&(r=[null,!1,!0]);var i=JSON.parse(t);return r.includes(i)||!!i&&"object"===a(i)}catch(t){}return!1};var o=i(r(5)),n=i(r(21));function i(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="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})(t)}var s={allow_primitives:!1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,o.default)(t),0===((e=(0,n.default)(e,a)).ignore_whitespace?t.trim().length:t.length)};var o=i(r(5)),n=i(r(21));function i(t){return t&&t.__esModule?t:{default:t}}var a={ignore_whitespace:!1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r,o;(0,n.default)(t),"object"===i(e)?(r=e.min||0,o=e.max):(r=arguments[1]||0,o=arguments[2]);var a=t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=t.length-a.length;return s>=r&&(void 0===o||s<=o)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};function i(t){return(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})(t)}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t);var r=i[[void 0,null].includes(e)?"all":e];return!!r&&r.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t),(0,n.default)(t)&&24===t.length};var o=i(r(5)),n=i(r(99));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,o.default)(t);var r=(0,n.default)(e),i=(0,n.default)(t);return!!(i&&r&&i>r)};var o=i(r(5)),n=i(r(59));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,o.default)(t);var r=(0,n.default)(e),i=(0,n.default)(t);return!!(i&&r&&i<r)};var o=i(r(5)),n=i(r(59));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r;if((0,o.default)(t),"[object Array]"===Object.prototype.toString.call(e)){var i=[];for(r in e)({}).hasOwnProperty.call(e,r)&&(i[r]=(0,n.default)(e[r]));return i.indexOf(t)>=0}if("object"===a(e))return e.hasOwnProperty(t);if(e&&"function"==typeof e.indexOf)return e.indexOf(t)>=0;return!1};var o=i(r(5)),n=i(r(94));function i(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="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})(t)}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,n.default)(t);var e=t.replace(/[- ]+/g,"");if(!i.test(e))return!1;for(var r,o,a,s=0,c=e.length-1;c>=0;c--)r=e.substring(c,c+1),o=parseInt(r,10),s+=a&&(o*=2)>=10?o%10+1:o,a=!a;return!(s%10!=0||!e)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,o.default)(t),e in a)return a[e](t);if("any"===e){for(var r in a){if(a.hasOwnProperty(r))if((0,a[r])(t))return!0}return!1}throw new Error("Invalid locale '".concat(e,"'"))};var o=i(r(5)),n=i(r(61));function i(t){return t&&t.__esModule?t:{default:t}}var a={PL:function(t){(0,o.default)(t);var e={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=t&&11===t.length&&(0,n.default)(t,{allow_leading_zeroes:!0})){var r=t.split("").slice(0,-1).reduce((function(t,r,o){return t+Number(r)*e[o+1]}),0)%10,i=Number(t.charAt(t.length-1));if(0===r&&0===i||i===10-r)return!0}return!1},ES:function(t){(0,o.default)(t);var e={X:0,Y:1,Z:2},r=t.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var n=r.slice(0,-1).replace(/[X,Y,Z]/g,(function(t){return e[t]}));return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n%23])},FI:function(t){if((0,o.default)(t),11!==t.length)return!1;if(!t.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(t.slice(0,6),10)+parseInt(t.slice(7,10),10))%31]===t.slice(10,11)},IN:function(t){var e=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],o=t.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(o))return!1;var n=0;return o.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(t,o){n=e[n][r[o%8][t]]})),0===n},IR:function(t){if(!t.match(/^\d{10}$/))return!1;if(t="0000".concat(t).substr(t.length-6),0===parseInt(t.substr(3,6),10))return!1;for(var e=parseInt(t.substr(9,1),10),r=0,o=0;o<9;o++)r+=parseInt(t.substr(o,1),10)*(10-o);return(r%=11)<2&&e===r||r>=2&&e===11-r},IT:function(t){return 9===t.length&&("CA00000AA"!==t&&t.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(t){var e=t.trim();if(isNaN(Number(e)))return!1;if(11!==e.length)return!1;if("00000000000"===e)return!1;var r=e.split("").map(Number),o=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,n=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*o)%11)%11;return o===r[9]&&n===r[10]},TH:function(t){if(!t.match(/^[1-8]\d{12}$/))return!1;for(var e=0,r=0;r<12;r++)e+=parseInt(t[r],10)*(13-r);return t[12]===((11-e%11)%10).toString()},LK:function(t){return!(10!==t.length||!/^[1-9]\d{8}[vx]$/i.test(t))||!(12!==t.length||!/^[1-9]\d{11}$/i.test(t))},"he-IL":function(t){var e=t.trim();if(!/^\d{9}$/.test(e))return!1;for(var r,o=e,n=0,i=0;i<o.length;i++)n+=(r=Number(o[i])*(i%2+1))>9?r-9:r;return n%10==0},"ar-LY":function(t){var e=t.trim();return!!/^(1|2)\d{11}$/.test(e)},"ar-TN":function(t){var e=t.trim();return!!/^\d{8}$/.test(e)},"zh-CN":function(t){var e,r=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],o=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],n=["1","0","X","9","8","7","6","5","4","3","2"],i=function(t){return r.includes(t)},a=function(t){var e=parseInt(t.substring(0,4),10),r=parseInt(t.substring(4,6),10),o=parseInt(t.substring(6),10),n=new Date(e,r-1,o);return!(n>new Date)&&(n.getFullYear()===e&&n.getMonth()===r-1&&n.getDate()===o)},s=function(t){return function(t){for(var e=t.substring(0,17),r=0,i=0;i<17;i++)r+=parseInt(e.charAt(i),10)*parseInt(o[i],10);return n[r%11]}(t)===t.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(e=t)&&(15===e.length?function(t){var e=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(t);if(!e)return!1;var r=t.substring(0,2);if(!(e=i(r)))return!1;var o="19".concat(t.substring(6,12));return!!(e=a(o))}(e):function(t){var e=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(t);if(!e)return!1;var r=t.substring(0,2);if(!(e=i(r)))return!1;var o=t.substring(6,14);return!!(e=a(o))&&s(t)}(e))},"zh-TW":function(t){var e={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},r=t.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(t,r,o){if(0===o){var n=e[r];return n%10*9+Math.floor(n/10)}return 9===o?(10-t%10-Number(r))%10==0:t+Number(r)*(9-o)}),0)}};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,n.default)(t);var e=Number(t.slice(-1));return i.test(t)&&e===(r=t,o=10-r.slice(0,-1).split("").map((function(t,e){return Number(t)*function(t,e){return 8===t||14===t?e%2==0?3:1:e%2==0?1:3}(r.length,e)})).reduce((function(t,e){return t+e}),0)%10,o<10?o:0);var r,o};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(\d{8}|\d{13}|\d{14})$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t),!i.test(t))return!1;for(var e=!0,r=0,o=t.length-2;o>=0;o--)if(t[o]>="A"&&t[o]<="Z")for(var a=t[o].charCodeAt(0)-55,s=a%10,c=Math.trunc(a/10),u=0,l=[s,c];u<l.length;u++){var d=l[u];r+=e?d>=5?1+2*(d-5):2*d:d,e=!e}else{var p=t[o].charCodeAt(0)-"0".charCodeAt(0);r+=e?p>=5?1+2*(p-5):2*p:p,e=!e}var f=10*Math.trunc((r+9)/10)-r;return+t[t.length-1]===f};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,n.default)(e),!(r=String(r)))return t(e,10)||t(e,13);var o,c=e.replace(/[\s-]+/g,""),u=0;if("10"===r){if(!i.test(c))return!1;for(o=0;o<9;o++)u+=(o+1)*c.charAt(o);if("X"===c.charAt(9)?u+=100:u+=10*c.charAt(9),u%11==0)return!!c}else if("13"===r){if(!a.test(c))return!1;for(o=0;o<12;o++)u+=s[o%2]*c.charAt(o);if(c.charAt(12)-(10-u%10)%10==0)return!!c}return!1};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,s=[1,3];t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(t);var r=i;if(r=e.require_hyphen?r.replace("?",""):r,!(r=e.case_sensitive?new RegExp(r):new RegExp(r,"i")).test(t))return!1;for(var o=t.replace("-","").toUpperCase(),a=0,s=0;s<o.length;s++){var c=o[s];a+=("X"===c?10:+c)*(8-s)}return a%11==0};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i="^\\d{4}-?\\d{3}[\\dX]$";t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";function o(t){return(o="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,n.default)(t);var r=t.slice(0);if(e in f)return e in y&&(r=r.replace(y[e],"")),!!f[e].test(r)&&(!(e in h)||h[e](r));throw new Error("Invalid locale '".concat(e,"'"))};var n=c(r(5)),i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=n?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}r.default=t,e&&e.set(t,r);return r}(r(230)),a=c(r(96));function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function c(t){return t&&t.__esModule?t:{default:t}}function u(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var d={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function p(t){for(var e=!1,r=!1,o=0;o<3;o++)if(!e&&/[AEIOU]/.test(t[o]))e=!0;else if(!r&&e&&"X"===t[o])r=!0;else if(o>0){if(e&&!r&&!/[AEIOU]/.test(t[o]))return!1;if(r&&!/X/.test(t[o]))return!1}return!0}var f={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"];var h={"bg-BG":function(t){var e=t.slice(0,2),r=parseInt(t.slice(2,4),10);r>40?(r-=40,e="20".concat(e)):r>20?(r-=20,e="18".concat(e)):e="19".concat(e),r<10&&(r="0".concat(r));var o="".concat(e,"/").concat(r,"/").concat(t.slice(4,6));if(!(0,a.default)(o,"YYYY/MM/DD"))return!1;for(var n=t.split("").map((function(t){return parseInt(t,10)})),i=[2,4,8,5,10,9,7,3,6],s=0,c=0;c<i.length;c++)s+=n[c]*i[c];return(s=s%11==10?0:s%11)===n[9]},"cs-CZ":function(t){t=t.replace(/\W/,"");var e=parseInt(t.slice(0,2),10);if(10===t.length)e=e<54?"20".concat(e):"19".concat(e);else{if("000"===t.slice(6))return!1;if(!(e<54))return!1;e="19".concat(e)}3===e.length&&(e=[e.slice(0,2),"0",e.slice(2)].join(""));var r=parseInt(t.slice(2,4),10);if(r>50&&(r-=50),r>20){if(parseInt(e,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var o="".concat(e,"/").concat(r,"/").concat(t.slice(4,6));if(!(0,a.default)(o,"YYYY/MM/DD"))return!1;if(10===t.length&&parseInt(t,10)%11!=0){var n=parseInt(t.slice(0,9),10)%11;if(!(parseInt(e,10)<1986&&10===n))return!1;if(0!==parseInt(t.slice(9),10))return!1}return!0},"de-AT":function(t){return i.luhnCheck(t)},"de-DE":function(t){for(var e=t.split("").map((function(t){return parseInt(t,10)})),r=[],o=0;o<e.length-1;o++){r.push("");for(var n=0;n<e.length-1;n++)e[o]===e[n]&&(r[o]+=n)}if(2!==(r=r.filter((function(t){return t.length>1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var a=r[0].split("").map((function(t){return parseInt(t,10)})),s=0,c=0;c<a.length-1;c++)a[c]+1===a[c+1]&&(s+=1);if(2===s)return!1}return i.iso7064Check(t)},"dk-DK":function(t){t=t.replace(/\W/,"");var e=parseInt(t.slice(4,6),10);switch(t.slice(6,7)){case"0":case"1":case"2":case"3":e="19".concat(e);break;case"4":case"9":e=e<37?"20".concat(e):"19".concat(e);break;default:if(e<37)e="20".concat(e);else{if(!(e>58))return!1;e="18".concat(e)}}3===e.length&&(e=[e.slice(0,2),"0",e.slice(2)].join(""));var r="".concat(e,"/").concat(t.slice(2,4),"/").concat(t.slice(0,2));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var o=t.split("").map((function(t){return parseInt(t,10)})),n=0,i=4,s=0;s<9;s++)n+=o[s]*i,1===(i-=1)&&(i=7);return 1!==(n%=11)&&(0===n?0===o[9]:o[9]===11-n)},"el-CY":function(t){for(var e=t.slice(0,8).split("").map((function(t){return parseInt(t,10)})),r=0,o=1;o<e.length;o+=2)r+=e[o];for(var n=0;n<e.length;n+=2)e[n]<2?r+=1-e[n]:(r+=2*(e[n]-2)+5,e[n]>4&&(r+=2));return String.fromCharCode(r%26+65)===t.charAt(8)},"el-GR":function(t){for(var e=t.split("").map((function(t){return parseInt(t,10)})),r=0,o=0;o<8;o++)r+=e[o]*Math.pow(2,8-o);return r%11%10===e[8]},"en-IE":function(t){var e=i.reverseMultiplyAndSum(t.split("").slice(0,7).map((function(t){return parseInt(t,10)})),8);return 9===t.length&&"W"!==t[8]&&(e+=9*(t[8].charCodeAt(0)-64)),0===(e%=23)?"W"===t[7].toUpperCase():t[7].toUpperCase()===String.fromCharCode(64+e)},"en-US":function(t){return-1!==function(){var t=[];for(var e in d)d.hasOwnProperty(e)&&t.push.apply(t,u(d[e]));return t}().indexOf(t.substr(0,2))},"es-ES":function(t){var e=t.toUpperCase().split("");if(isNaN(parseInt(e[0],10))&&e.length>1){var r=0;switch(e[0]){case"Y":r=1;break;case"Z":r=2}e.splice(0,1,r)}else for(;e.length<9;)e.unshift(0);e=e.join("");var o=parseInt(e.slice(0,8),10)%23;return e[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][o]},"et-EE":function(t){var e=t.slice(1,3);switch(t.slice(0,1)){case"1":case"2":e="18".concat(e);break;case"3":case"4":e="19".concat(e);break;default:e="20".concat(e)}var r="".concat(e,"/").concat(t.slice(3,5),"/").concat(t.slice(5,7));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var o=t.split("").map((function(t){return parseInt(t,10)})),n=0,i=1,s=0;s<10;s++)n+=o[s]*i,10===(i+=1)&&(i=1);if(n%11==10){n=0,i=3;for(var c=0;c<10;c++)n+=o[c]*i,10===(i+=1)&&(i=1);if(n%11==10)return 0===o[10]}return n%11===o[10]},"fi-FI":function(t){var e=t.slice(4,6);switch(t.slice(6,7)){case"+":e="18".concat(e);break;case"-":e="19".concat(e);break;default:e="20".concat(e)}var r="".concat(e,"/").concat(t.slice(2,4),"/").concat(t.slice(0,2));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;var o=parseInt(t.slice(0,6)+t.slice(7,10),10)%31;return o<10?o===parseInt(t.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][o-=10]===t.slice(10)},"fr-BE":function(t){if("00"!==t.slice(2,4)||"00"!==t.slice(4,6)){var e="".concat(t.slice(0,2),"/").concat(t.slice(2,4),"/").concat(t.slice(4,6));if(!(0,a.default)(e,"YY/MM/DD"))return!1}var r=97-parseInt(t.slice(0,9),10)%97,o=parseInt(t.slice(9,11),10);return r===o||(r=97-parseInt("2".concat(t.slice(0,9)),10)%97)===o},"fr-FR":function(t){return t=t.replace(/\s/g,""),parseInt(t.slice(0,10),10)%511===parseInt(t.slice(10,13),10)},"fr-LU":function(t){var e="".concat(t.slice(0,4),"/").concat(t.slice(4,6),"/").concat(t.slice(6,8));return!!(0,a.default)(e,"YYYY/MM/DD")&&(!!i.luhnCheck(t.slice(0,12))&&i.verhoeffCheck("".concat(t.slice(0,11)).concat(t[12])))},"hr-HR":function(t){return i.iso7064Check(t)},"hu-HU":function(t){for(var e=t.split("").map((function(t){return parseInt(t,10)})),r=8,o=1;o<9;o++)r+=e[o]*(o+1);return r%11===e[9]},"it-IT":function(t){var e=t.toUpperCase().split("");if(!p(e.slice(0,3)))return!1;if(!p(e.slice(3,6)))return!1;for(var r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},o=0,n=[6,7,9,10,12,13,14];o<n.length;o++){var i=n[o];e[i]in r&&e.splice(i,1,r[e[i]])}var s={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[e[8]],c=parseInt(e[9]+e[10],10);c>40&&(c-=40),c<10&&(c="0".concat(c));var u="".concat(e[6]).concat(e[7],"/").concat(s,"/").concat(c);if(!(0,a.default)(u,"YY/MM/DD"))return!1;for(var l=0,d=1;d<e.length-1;d+=2){var f=parseInt(e[d],10);isNaN(f)&&(f=e[d].charCodeAt(0)-65),l+=f}for(var h={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},g=0;g<e.length-1;g+=2){var y=0;if(e[g]in h)y=h[e[g]];else{var m=parseInt(e[g],10);y=2*m+1,m>4&&(y+=2)}l+=y}return String.fromCharCode(65+l%26)===e[15]},"lv-LV":function(t){var e=(t=t.replace(/\W/,"")).slice(0,2);if("32"!==e){if("00"!==t.slice(2,4)){var r=t.slice(4,6);switch(t[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var o="".concat(r,"/").concat(t.slice(2,4),"/").concat(e);if(!(0,a.default)(o,"YYYY/MM/DD"))return!1}for(var n=1101,i=[1,6,3,7,9,10,5,8,4,2],s=0;s<t.length-1;s++)n-=parseInt(t[s],10)*i[s];return parseInt(t[10],10)===n%11}return!0},"mt-MT":function(t){if(9!==t.length){for(var e=t.toUpperCase().split("");e.length<8;)e.unshift(0);switch(t[7]){case"A":case"P":if(0===parseInt(e[6],10))return!1;break;default:var r=parseInt(e.join("").slice(0,5),10);if(r>32e3)return!1;if(r===parseInt(e.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(t){return i.reverseMultiplyAndSum(t.split("").slice(0,8).map((function(t){return parseInt(t,10)})),9)%11===parseInt(t[8],10)},"pl-PL":function(t){if(10===t.length){for(var e=[6,5,7,2,3,4,5,6,7],r=0,o=0;o<e.length;o++)r+=parseInt(t[o],10)*e[o];return 10!==(r%=11)&&r===parseInt(t[9],10)}var n=t.slice(0,2),i=parseInt(t.slice(2,4),10);i>80?(n="18".concat(n),i-=80):i>60?(n="22".concat(n),i-=60):i>40?(n="21".concat(n),i-=40):i>20?(n="20".concat(n),i-=20):n="19".concat(n),i<10&&(i="0".concat(i));var s="".concat(n,"/").concat(i,"/").concat(t.slice(4,6));if(!(0,a.default)(s,"YYYY/MM/DD"))return!1;for(var c=0,u=1,l=0;l<t.length-1;l++)c+=parseInt(t[l],10)*u%10,(u+=2)>10?u=1:5===u&&(u+=2);return(c=10-c%10)===parseInt(t[10],10)},"pt-BR":function(t){if(11===t.length){var e,r;if(e=0,"11111111111"===t||"22222222222"===t||"33333333333"===t||"44444444444"===t||"55555555555"===t||"66666666666"===t||"77777777777"===t||"88888888888"===t||"99999999999"===t||"00000000000"===t)return!1;for(var o=1;o<=9;o++)e+=parseInt(t.substring(o-1,o),10)*(11-o);if(10===(r=10*e%11)&&(r=0),r!==parseInt(t.substring(9,10),10))return!1;e=0;for(var n=1;n<=10;n++)e+=parseInt(t.substring(n-1,n),10)*(12-n);return 10===(r=10*e%11)&&(r=0),r===parseInt(t.substring(10,11),10)}if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return!1;for(var i=t.length-2,a=t.substring(0,i),s=t.substring(i),c=0,u=i-7,l=i;l>=1;l--)c+=a.charAt(i-l)*u,(u-=1)<2&&(u=9);var d=c%11<2?0:11-c%11;if(d!==parseInt(s.charAt(0),10))return!1;i+=1,a=t.substring(0,i),c=0,u=i-7;for(var p=i;p>=1;p--)c+=a.charAt(i-p)*u,(u-=1)<2&&(u=9);return(d=c%11<2?0:11-c%11)===parseInt(s.charAt(1),10)},"pt-PT":function(t){var e=11-i.reverseMultiplyAndSum(t.split("").slice(0,8).map((function(t){return parseInt(t,10)})),9)%11;return e>9?0===parseInt(t[8],10):e===parseInt(t[8],10)},"ro-RO":function(t){if("9000"!==t.slice(0,4)){var e=t.slice(1,3);switch(t[0]){case"1":case"2":e="19".concat(e);break;case"3":case"4":e="18".concat(e);break;case"5":case"6":e="20".concat(e)}var r="".concat(e,"/").concat(t.slice(3,5),"/").concat(t.slice(5,7));if(8===r.length){if(!(0,a.default)(r,"YY/MM/DD"))return!1}else if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var o=t.split("").map((function(t){return parseInt(t,10)})),n=[2,7,9,1,4,6,3,5,8,2,7,9],i=0,s=0;s<n.length;s++)i+=o[s]*n[s];return i%11==10?1===o[12]:o[12]===i%11}return!0},"sk-SK":function(t){if(9===t.length){if("000"===(t=t.replace(/\W/,"")).slice(6))return!1;var e=parseInt(t.slice(0,2),10);if(e>53)return!1;e=e<10?"190".concat(e):"19".concat(e);var r=parseInt(t.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var o="".concat(e,"/").concat(r,"/").concat(t.slice(4,6));if(!(0,a.default)(o,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(t){var e=11-i.reverseMultiplyAndSum(t.split("").slice(0,7).map((function(t){return parseInt(t,10)})),8)%11;return 10===e?0===parseInt(t[7],10):e===parseInt(t[7],10)},"sv-SE":function(t){var e=t.slice(0);t.length>11&&(e=e.slice(2));var r="",o=e.slice(2,4),n=parseInt(e.slice(4,6),10);if(t.length>11)r=t.slice(0,4);else if(r=t.slice(0,2),11===t.length&&n<60){var s=(new Date).getFullYear().toString(),c=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===t[6])r=parseInt("".concat(c).concat(r),10)>s?"".concat(c-1).concat(r):"".concat(c).concat(r);else if(r="".concat(c-1).concat(r),s-parseInt(r,10)<100)return!1}n>60&&(n-=60),n<10&&(n="0".concat(n));var u="".concat(r,"/").concat(o,"/").concat(n);if(8===u.length){if(!(0,a.default)(u,"YY/MM/DD"))return!1}else if(!(0,a.default)(u,"YYYY/MM/DD"))return!1;return i.luhnCheck(t.replace(/\W/,""))}};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"];var g=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,y={"de-AT":g,"de-DE":/[\/\\]/g,"fr-BE":g};y["nl-BE"]=y["fr-BE"],t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iso7064Check=function(t){for(var e=10,r=0;r<t.length-1;r++)e=(parseInt(t[r],10)+e)%10==0?9:(parseInt(t[r],10)+e)%10*2%11;return(e=1===e?0:11-e)===parseInt(t[10],10)},e.luhnCheck=function(t){for(var e=0,r=!1,o=t.length-1;o>=0;o--){if(r){var n=2*parseInt(t[o],10);e+=n>9?n.toString().split("").map((function(t){return parseInt(t,10)})).reduce((function(t,e){return t+e}),0):n}else e+=parseInt(t[o],10);r=!r}return e%10==0},e.reverseMultiplyAndSum=function(t,e){for(var r=0,o=0;o<t.length;o++)r+=t[o]*(e-o);return r},e.verhoeffCheck=function(t){for(var e=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],o=t.split("").reverse().join(""),n=0,i=0;i<o.length;i++)n=e[n][r[i%8][parseInt(o[i],10)]];return 0===n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){if((0,n.default)(t),r&&r.strictMode&&!t.startsWith("+"))return!1;if(Array.isArray(e))return e.some((function(e){if(i.hasOwnProperty(e)&&i[e].test(t))return!0;return!1}));if(e in i)return i[e].test(t);if(!e||"any"===e){for(var o in i){if(i.hasOwnProperty(o))if(i[o].test(t))return!0}return!1}throw new Error("Invalid locale '".concat(e,"'"))},e.locales=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)[569]\d{7}$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(5|79)\d{7}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"ms-MY":/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/};i["en-CA"]=i["en-US"],i["fr-CA"]=i["en-CA"],i["fr-BE"]=i["nl-BE"],i["zh-HK"]=i["en-HK"],i["zh-MO"]=i["en-MO"],i["ga-IE"]=i["en-IE"],i["fr-CH"]=i["de-CH"],i["it-CH"]=i["fr-CH"];var a=Object.keys(i);e.locales=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(0x)[0-9a-f]{40}$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(t),function(t){var e="\\d{".concat(t.digits_after_decimal[0],"}");t.digits_after_decimal.forEach((function(t,r){0!==r&&(e="".concat(e,"|\\d{").concat(t,"}"))}));var r="(".concat(t.symbol.replace(/\W/,(function(t){return"\\".concat(t)})),")").concat(t.require_symbol?"":"?"),o="[1-9]\\d{0,2}(\\".concat(t.thousands_separator,"\\d{3})*"),n="(".concat(["0","[1-9]\\d*",o].join("|"),")?"),i="(\\".concat(t.decimal_separator,"(").concat(e,"))").concat(t.require_decimal?"":"?"),a=n+(t.allow_decimal||t.require_decimal?i:"");t.allow_negatives&&!t.parens_for_negatives&&(t.negative_sign_after_digits?a+="-?":t.negative_sign_before_digits&&(a="-?"+a));t.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):t.allow_space_after_symbol?a=" ?".concat(a):t.allow_space_after_digits&&(a+="( (?!$))?");t.symbol_after_digits?a+=r:a=r+a;t.allow_negatives&&(t.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):t.negative_sign_before_digits||t.negative_sign_after_digits||(a="-?"+a));return new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(e=(0,o.default)(e,a)).test(t)};var o=i(r(21)),n=i(r(5));function i(t){return t&&t.__esModule?t:{default:t}}var a={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t),t.startsWith("bc1"))return i.test(t);return a.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(bc1)[a-z0-9]{25,39}$/,a=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(t);var r=e.strictSeparator?a.test(t):i.test(t);return r&&e.strict?s(t):r};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=function(t){var e=t.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(e){var r=Number(e[1]),o=Number(e[2]);return r%4==0&&r%100!=0||r%400==0?o<=366:o<=365}var n=t.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=n[1],a=n[2],s=n[3],c=a?"0".concat(a).slice(-2):a,u=s?"0".concat(s).slice(-2):s,l=new Date("".concat(i,"-").concat(c||"01","-").concat(u||"01"));return!a||!s||l.getUTCFullYear()===i&&l.getUTCMonth()+1===a&&l.getUTCDate()===s};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),p.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/([01][0-9]|2[0-3])/,a=/[0-5][0-9]/,s=new RegExp("[-+]".concat(i.source,":").concat(a.source)),c=new RegExp("([zZ]|".concat(s.source,")")),u=new RegExp("".concat(i.source,":").concat(a.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),l=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),d=new RegExp("".concat(u.source).concat(c.source)),p=new RegExp("^".concat(l.source,"[ tT]").concat(d.source,"$"));t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.has(t.toUpperCase())};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.has(t.toUpperCase())},e.CurrencyCodes=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var a=i;e.CurrencyCodes=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t),t.length%8==0&&i.test(t))return!0;return!1};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[A-Z2-7]+=*$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t),i.test(t))return!0;return!1};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[A-HJ-NP-Za-km-z1-9]*$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,n.default)(t);var e=t.split(",");if(e.length<2)return!1;var r=e.shift().trim().split(";"),o=r.shift();if("data:"!==o.substr(0,5))return!1;var c=o.substr(5);if(""!==c&&!i.test(c))return!1;for(var u=0;u<r.length;u++)if((u!==r.length-1||"base64"!==r[u].toLowerCase())&&!a.test(r[u]))return!1;for(var l=0;l<e.length;l++)if(!s.test(e[l]))return!1;return!0};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[a-z]+\/[a-z0-9\-\+]+$/i,a=/^[a-z\-]+=[a-z0-9\-]+$/i,s=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t.trim())};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)||a.test(t)||s.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,s=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,o.default)(t),e=(0,n.default)(e,l),!t.includes(","))return!1;var r=t.split(",");if(r[0].startsWith("(")&&!r[1].endsWith(")")||r[1].endsWith(")")&&!r[0].startsWith("("))return!1;if(e.checkDMS)return c.test(r[0])&&u.test(r[1]);return a.test(r[0])&&s.test(r[1])};var o=i(r(5)),n=i(r(21));function i(t){return t&&t.__esModule?t:{default:t}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,c=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,u=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,l={checkDMS:!1};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),e in c)return c[e].test(t);if("any"===e){for(var r in c){if(c.hasOwnProperty(r))if(c[r].test(t))return!0}return!1}throw new Error("Invalid locale '".concat(e,"'"))},e.locales=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^\d{4}$/,a=/^\d{5}$/,s=/^\d{6}$/,c={AD:/^AD\d{3}$/,AT:i,AU:i,AZ:/^AZ\d{4}$/,BE:i,BG:i,BR:/^\d{5}-\d{3}$/,BY:/2[1-4]{1}\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:i,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:a,DK:i,DO:a,DZ:a,EE:a,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:a,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:i,ID:a,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/,IS:/^\d{3}$/,IT:a,JP:/^\d{3}\-\d{4}$/,KE:a,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:i,LV:/^LV\-\d{4}$/,LK:a,MX:a,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:a,NL:/^\d{4}\s?[a-z]{2}$/i,NO:i,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:i,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:s,RU:s,SA:a,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:s,SI:i,SK:/^\d{3}\s?\d{2}$/,TH:a,TN:i,TW:/^\d{3}(\d{2})?$/,UA:a,US:/^\d{5}(-\d{4})?$/,ZA:i,ZM:a},u=Object.keys(c);e.locales=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,o.default)((0,n.default)(t,e),e)};var o=i(r(103)),n=i(r(102));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),t.replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`").replace(/&amp;/g,"&")};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(t);var r=e?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(t,r)};var o=i(r(5)),n=i(r(104));function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,n.default)(t),t.replace(new RegExp("[^".concat(e,"]+"),"g"),"")};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t);for(var r=t.length-1;r>=0;r--)if(-1===e.indexOf(t[r]))return!1;return!0};var o,n=(o=r(5))&&o.__esModule?o:{default:o};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){e=(0,n.default)(e,i);var r=t.split("@"),o=r.pop(),d=[r.join("@"),o];if(d[1]=d[1].toLowerCase(),"gmail.com"===d[1]||"googlemail.com"===d[1]){if(e.gmail_remove_subaddress&&(d[0]=d[0].split("+")[0]),e.gmail_remove_dots&&(d[0]=d[0].replace(/\.+/g,l)),!d[0].length)return!1;(e.all_lowercase||e.gmail_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]=e.gmail_convert_googlemaildotcom?"gmail.com":d[1]}else if(a.indexOf(d[1])>=0){if(e.icloud_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(e.all_lowercase||e.icloud_lowercase)&&(d[0]=d[0].toLowerCase())}else if(s.indexOf(d[1])>=0){if(e.outlookdotcom_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(e.all_lowercase||e.outlookdotcom_lowercase)&&(d[0]=d[0].toLowerCase())}else if(c.indexOf(d[1])>=0){if(e.yahoo_remove_subaddress){var p=d[0].split("-");d[0]=p.length>1?p.slice(0,-1).join("-"):p[0]}if(!d[0].length)return!1;(e.all_lowercase||e.yahoo_lowercase)&&(d[0]=d[0].toLowerCase())}else u.indexOf(d[1])>=0?((e.all_lowercase||e.yandex_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]="yandex.ru"):e.all_lowercase&&(d[0]=d[0].toLowerCase());return d.join("@")};var o,n=(o=r(21))&&o.__esModule?o:{default:o};var i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],c=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],u=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function l(t){return t.length>1?t:""}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,n.default)(t),i.test(t)};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),e in i)return i[e](t);if("any"===e){for(var r in i){if((0,i[r])(t))return!0}return!1}throw new Error("Invalid locale '".concat(e,"'"))};var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={"cs-CZ":function(t){return/^(([ABCDEFHKIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(t)},"de-DE":function(t){return/^((AW|UL|AK|GA|AÖ|LF|AZ|AM|AS|ZE|AN|AB|A|KG|KH|BA|EW|BZ|HY|KM|BT|HP|B|BC|BI|BO|FN|TT|ÜB|BN|AH|BS|FR|HB|ZZ|BB|BK|BÖ|OC|OK|CW|CE|C|CO|LH|CB|KW|LC|LN|DA|DI|DE|DH|SY|NÖ|DO|DD|DU|DN|D|EI|EA|EE|FI|EM|EL|EN|PF|ED|EF|ER|AU|ZP|E|ES|NT|EU|FL|FO|FT|FF|F|FS|FD|FÜ|GE|G|GI|GF|GS|ZR|GG|GP|GR|NY|ZI|GÖ|GZ|GT|HA|HH|HM|HU|WL|HZ|WR|RN|HK|HD|HN|HS|GK|HE|HF|RZ|HI|HG|HO|HX|IK|IL|IN|J|JL|KL|KA|KS|KF|KE|KI|KT|KO|KN|KR|KC|KU|K|LD|LL|LA|L|OP|LM|LI|LB|LU|LÖ|HL|LG|MD|GN|MZ|MA|ML|MR|MY|AT|DM|MC|NZ|RM|RG|MM|ME|MB|MI|FG|DL|HC|MW|RL|MK|MG|MÜ|WS|MH|M|MS|NU|NB|ND|NM|NK|NW|NR|NI|NF|DZ|EB|OZ|TG|TO|N|OA|GM|OB|CA|EH|FW|OF|OL|OE|OG|BH|LR|OS|AA|GD|OH|KY|NP|WK|PB|PA|PE|PI|PS|P|PM|PR|RA|RV|RE|R|H|SB|WN|RS|RD|RT|BM|NE|GV|RP|SU|GL|RO|GÜ|RH|EG|RW|PN|SK|MQ|RU|SZ|RI|SL|SM|SC|HR|FZ|VS|SW|SN|CR|SE|SI|SO|LP|SG|NH|SP|IZ|ST|BF|TE|HV|OD|SR|S|AC|DW|ZW|TF|TS|TR|TÜ|UM|PZ|TP|UE|UN|UH|MN|KK|VB|V|AE|PL|RC|VG|GW|PW|VR|VK|KB|WA|WT|BE|WM|WE|AP|MO|WW|FB|WZ|WI|WB|JE|WF|WO|W|WÜ|BL|Z|GC)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(AIC|FDB|ABG|SLN|SAW|KLZ|BUL|ESB|NAB|SUL|WST|ABI|AZE|BTF|KÖT|DKB|FEU|ROT|ALZ|SMÜ|WER|AUR|NOR|DÜW|BRK|HAB|TÖL|WOR|BAD|BAR|BER|BIW|EBS|KEM|MÜB|PEG|BGL|BGD|REI|WIL|BKS|BIR|WAT|BOR|BOH|BOT|BRB|BLK|HHM|NEB|NMB|WSF|LEO|HDL|WMS|WZL|BÜS|CHA|KÖZ|ROD|WÜM|CLP|NEC|COC|ZEL|COE|CUX|DAH|LDS|DEG|DEL|RSL|DLG|DGF|LAN|HEI|MED|DON|KIB|ROK|JÜL|MON|SLE|EBE|EIC|HIG|WBS|BIT|PRÜ|LIB|EMD|WIT|ERH|HÖS|ERZ|ANA|ASZ|MAB|MEK|STL|SZB|FDS|HCH|HOR|WOL|FRG|GRA|WOS|FRI|FFB|GAP|GER|BRL|CLZ|GTH|NOH|HGW|GRZ|LÖB|NOL|WSW|DUD|HMÜ|OHA|KRU|HAL|HAM|HBS|QLB|HVL|NAU|HAS|EBN|GEO|HOH|HDH|ERK|HER|WAN|HEF|ROF|HBN|ALF|HSK|USI|NAI|REH|SAN|KÜN|ÖHR|HOL|WAR|ARN|BRG|GNT|HOG|WOH|KEH|MAI|PAR|RID|ROL|KLE|GEL|KUS|KYF|ART|SDH|LDK|DIL|MAL|VIB|LER|BNA|GHA|GRM|MTL|WUR|LEV|LIF|STE|WEL|LIP|VAI|LUP|HGN|LBZ|LWL|PCH|STB|DAN|MKK|SLÜ|MSP|TBB|MGH|MTK|BIN|MSH|EIL|HET|SGH|BID|MYK|MSE|MST|MÜR|WRN|MEI|GRH|RIE|MZG|MIL|OBB|BED|FLÖ|MOL|FRW|SEE|SRB|AIB|MOS|BCH|ILL|SOB|NMS|NEA|SEF|UFF|NEW|VOH|NDH|TDO|NWM|GDB|GVM|WIS|NOM|EIN|GAN|LAU|HEB|OHV|OSL|SFB|ERB|LOS|BSK|KEL|BSB|MEL|WTL|OAL|FÜS|MOD|OHZ|OPR|BÜR|PAF|PLÖ|CAS|GLA|REG|VIT|ECK|SIM|GOA|EMS|DIZ|GOH|RÜD|SWA|NES|KÖN|MET|LRO|BÜZ|DBR|ROS|TET|HRO|ROW|BRV|HIP|PAN|GRI|SHK|EIS|SRO|SOK|LBS|SCZ|MER|QFT|SLF|SLS|HOM|SLK|ASL|BBG|SBK|SFT|SHG|MGN|MEG|ZIG|SAD|NEN|OVI|SHA|BLB|SIG|SON|SPN|FOR|GUB|SPB|IGB|WND|STD|STA|SDL|OBG|HST|BOG|SHL|PIR|FTL|SEB|SÖM|SÜW|TIR|SAB|TUT|ANG|SDT|LÜN|LSZ|MHL|VEC|VER|VIE|OVL|ANK|OVP|SBG|UEM|UER|WLG|GMN|NVP|RDG|RÜG|DAU|FKB|WAF|WAK|SLZ|WEN|SOG|APD|WUG|GUN|ESW|WIZ|WES|DIN|BRA|BÜD|WHV|HWI|GHC|WTM|WOB|WUN|MAK|SEL|OCH|HOT|WDA)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(t)},"de-LI":function(t){return/^FL[- ]?\d{1,5}[UZ]?$/.test(t)},"fi-FI":function(t){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(t)},"pt-PT":function(t){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(t)},"sq-AL":function(t){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(t)},"pt-BR":function(t){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(t)}};t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,n.default)(t);var r=d(t);if((e=(0,o.default)(e||{},l)).returnScore)return p(r,e);return r.length>=e.minLength&&r.lowercaseCount>=e.minLowercase&&r.uppercaseCount>=e.minUppercase&&r.numberCount>=e.minNumbers&&r.symbolCount>=e.minSymbols};var o=i(r(21)),n=i(r(5));function i(t){return t&&t.__esModule?t:{default:t}}var a=/^[A-Z]$/,s=/^[a-z]$/,c=/^[0-9]$/,u=/^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,l={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function d(t){var e,r,o=(e=t,r={},Array.from(e).forEach((function(t){r[t]?r[t]+=1:r[t]=1})),r),n={length:t.length,uniqueChars:Object.keys(o).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(o).forEach((function(t){a.test(t)?n.uppercaseCount+=o[t]:s.test(t)?n.lowercaseCount+=o[t]:c.test(t)?n.numberCount+=o[t]:u.test(t)&&(n.symbolCount+=o[t])})),n}function p(t,e){var r=0;return r+=t.uniqueChars*e.pointsPerUnique,r+=(t.length-t.uniqueChars)*e.pointsPerRepeat,t.lowercaseCount>0&&(r+=e.pointsForContainingLower),t.uppercaseCount>0&&(r+=e.pointsForContainingUpper),t.numberCount>0&&(r+=e.pointsForContainingNumber),t.symbolCount>0&&(r+=e.pointsForContainingSymbol),r}t.exports=e.default,t.exports.default=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),(0,n.default)(e),e in i)return i[e].test(t);throw new Error("Invalid country code: '".concat(e,"'"))},e.vatMatchers=void 0;var o,n=(o=r(5))&&o.__esModule?o:{default:o};var i={GB:/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/,IT:/^(IT)?[0-9]{11}$/,NL:/^(NL)?[0-9]{9}B[0-9]{2}$/};e.vatMatchers=i},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o,n,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=i.call(r)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){u=!0,n=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw n}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,i){e=e||"&",r=r||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var d,p,f,h,g=t[l].replace(s,"%20"),y=g.indexOf(r);y>=0?(d=g.substr(0,y),p=g.substr(y+1)):(d=g,p=""),f=decodeURIComponent(d),h=decodeURIComponent(p),o(a,f)?n(a[f])?a[f].push(h):a[f]=[a[f],h]:a[f]=h}return a};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";var o=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?i(a(t),(function(a){var s=encodeURIComponent(o(a))+r;return n(t[a])?i(t[a],(function(t){return s+encodeURIComponent(o(t))})).join(e):s+encodeURIComponent(o(t[a]))})).join(e):s?encodeURIComponent(o(s))+r+encodeURIComponent(o(t)):""};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t,e){if(t.map)return t.map(e);for(var r=[],o=0;o<t.length;o++)r.push(e(t[o],o));return r}var a=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var o=r(1),n=r(3),i=r(111);const a=new n.a(i.a);const s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw new Error("unable to locate global object")}();let c=s.crypto||s.msCrypto;function u(t){(t<=0||t>1024||t%1||t!=t)&&a.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return c.getRandomValues(e),Object(o.a)(e)}c&&c.getRandomValues||(a.warn("WARNING: Missing strong random number source"),c={getRandomValues:function(t){return a.throwError("no secure random source avaialble",n.a.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,r(36))}]).default}));
//# sourceMappingURL=TronWeb.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!