tronewb
Version:
JavaScript SDK that encapsulates the TRON HTTP API
2 lines • 923 kB
JavaScript
/*! For license information please see TronWeb.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("TronWeb",[],t):"object"==typeof exports?exports.TronWeb=t():e.TronWeb=t()}(self,(()=>(()=>{var e={7012:function(e,t,r){var n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},o="undefined"!=typeof window&&window===this?this:void 0!==r.g&&null!=r.g?r.g:this;function s(){s=function(){},o.Symbol||(o.Symbol=c)}function i(e,t){this.a=e,n(this,"description",{configurable:!0,writable:!0,value:t})}i.prototype.toString=function(){return this.a};var a,c=(a=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new i("jscomp_symbol_"+(t||"")+"_"+a++,t)});function u(){s();var e=o.Symbol.iterator;e||(e=o.Symbol.iterator=o.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&n(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return u(),(e={next:e})[o.Symbol.iterator]=function(){return this},e}(function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}(this))}}),u=function(){}}!function(e,t){if(t){var r=o;e=e.split(".");for(var s=0;s<e.length-1;s++){var i=e[s];i in r||(r[i]={}),r=r[i]}(t=t(s=r[e=e[e.length-1]]))!=s&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.entries",(function(e){return e||function(){return function(e,t){u(),e instanceof String&&(e+="");var r=0,n={next:function(){if(r<e.length){var o=r++;return{value:t(o,e[o]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n}(this,(function(e,t){return[e,t]}))}}));var l=this||self;function d(e,t,r){e=e.split("."),r=r||l,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function p(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function f(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var h="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),g=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t,void 0)}:function(e,t){for(var r=e.length,n="string"==typeof e?e.split(""):e,o=0;o<r;o++)o in n&&t.call(void 0,n[o],o,e)},y=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var r=e.length,n=Array(r),o="string"==typeof e?e.split(""):e,s=0;s<r;s++)s in o&&(n[s]=t.call(void 0,o[s],s,e));return n};function b(e,t,r){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)}function m(e,t,r,n){var o="Assertion failed";if(r){o+=": "+r;var s=n}else e&&(o+=": "+e,s=t);throw Error(o,s||[])}function T(e,t,r){for(var n=[],o=2;o<arguments.length;++o)n[o-2]=arguments[o];return e||m("",null,t,n),e}function w(e,t){for(var r=[],n=1;n<arguments.length;++n)r[n-1]=arguments[n];throw Error("Failure"+(e?": "+e:""),r)}function P(e,t,r,n){for(var o=[],s=3;s<arguments.length;++s)o[s-3]=arguments[s];e instanceof t||m("Expected instanceof %s but got %s.",[A(t),A(e)],r,o)}function A(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e}function v(e,t){if(this.c=e,this.b=t,this.a={},this.arrClean=!0,0<this.c.length){for(e=0;e<this.c.length;e++){var r=(t=this.c[e])[0];this.a[r.toString()]=new E(r,t[1])}this.arrClean=!0}}function W(e){this.a=0,this.b=e}function B(e,t){return e.b?(t.a||(t.a=new e.b(t.value)),t.a):t.value}function C(e){e=e.a;var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}function E(e,t){this.key=e,this.value=t,this.a=void 0}function I(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,b(e,r,r+8192));return t}d("jspb.Map",v,void 0),v.prototype.g=function(){if(this.arrClean){if(this.b){var e,t=this.a;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].a;r&&r.g()}}}else{for(this.c.length=0,(t=C(this)).sort(),e=0;e<t.length;e++){var n=this.a[t[e]];(r=n.a)&&r.g(),this.c.push([n.key,n.value])}this.arrClean=!0}return this.c},v.prototype.toArray=v.prototype.g,v.prototype.Mc=function(e,t){for(var r=this.g(),n=[],o=0;o<r.length;o++){var s=this.a[r[o][0].toString()];B(this,s);var i=s.a;i?(T(t),n.push([s.key,t(e,i)])):n.push([s.key,s.value])}return n},v.prototype.toObject=v.prototype.Mc,v.fromObject=function(e,t,r){t=new v([],t);for(var n=0;n<e.length;n++){var o=e[n][0],s=r(e[n][1]);t.set(o,s)}return t},W.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(W.prototype[Symbol.iterator]=function(){return this}),v.prototype.Jb=function(){return C(this).length},v.prototype.getLength=v.prototype.Jb,v.prototype.clear=function(){this.a={},this.arrClean=!1},v.prototype.clear=v.prototype.clear,v.prototype.Cb=function(e){e=e.toString();var t=this.a.hasOwnProperty(e);return delete this.a[e],this.arrClean=!1,t},v.prototype.del=v.prototype.Cb,v.prototype.Eb=function(){var e=[],t=C(this);t.sort();for(var r=0;r<t.length;r++){var n=this.a[t[r]];e.push([n.key,n.value])}return e},v.prototype.getEntryList=v.prototype.Eb,v.prototype.entries=function(){var e=[],t=C(this);t.sort();for(var r=0;r<t.length;r++){var n=this.a[t[r]];e.push([n.key,B(this,n)])}return new W(e)},v.prototype.entries=v.prototype.entries,v.prototype.keys=function(){var e=[],t=C(this);t.sort();for(var r=0;r<t.length;r++)e.push(this.a[t[r]].key);return new W(e)},v.prototype.keys=v.prototype.keys,v.prototype.values=function(){var e=[],t=C(this);t.sort();for(var r=0;r<t.length;r++)e.push(B(this,this.a[t[r]]));return new W(e)},v.prototype.values=v.prototype.values,v.prototype.forEach=function(e,t){var r=C(this);r.sort();for(var n=0;n<r.length;n++){var o=this.a[r[n]];e.call(t,B(this,o),o.key,this)}},v.prototype.forEach=v.prototype.forEach,v.prototype.set=function(e,t){var r=new E(e);return this.b?(r.a=t,r.value=t.g()):r.value=t,this.a[e.toString()]=r,this.arrClean=!1,this},v.prototype.set=v.prototype.set,v.prototype.get=function(e){if(e=this.a[e.toString()])return B(this,e)},v.prototype.get=v.prototype.get,v.prototype.has=function(e){return e.toString()in this.a},v.prototype.has=v.prototype.has,v.prototype.Jc=function(e,t,r,n,o){var s=C(this);s.sort();for(var i=0;i<s.length;i++){var a=this.a[s[i]];t.Va(e),r.call(t,1,a.key),this.b?n.call(t,2,B(this,a),o):n.call(t,2,a.value),t.Ya()}},v.prototype.serializeBinary=v.prototype.Jc,v.deserializeBinary=function(e,t,r,n,o,s,i){for(;t.oa()&&!t.bb();){var a=t.c;1==a?s=r.call(t):2==a&&(e.b?(T(o),i||(i=new e.b),n.call(t,i,o)):i=n.call(t))}T(null!=s),T(null!=i),e.set(s,i)};var O={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},M={"'":"\\'"},S={},F=null;function R(e,t){void 0===t&&(t=0),x(),t=S[t];for(var r=[],n=0;n<e.length;n+=3){var o=e[n],s=n+1<e.length,i=s?e[n+1]:0,a=n+2<e.length,c=a?e[n+2]:0,u=o>>2;o=(3&o)<<4|i>>4,i=(15&i)<<2|c>>6,c&=63,a||(c=64,s||(i=64)),r.push(t[u],t[o],t[i]||"",t[c]||"")}return r.join("")}function _(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):-1!="=.".indexOf(e[t-1])&&(r=-1!="=.".indexOf(e[t-2])?r-2:r-1);var n=new Uint8Array(r),o=0;return function(e,t){function r(t){for(;n<e.length;){var r=e.charAt(n++),o=F[r];if(null!=o)return o;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}x();for(var n=0;;){var o=r(-1),s=r(0),i=r(64),a=r(64);if(64===a&&-1===o)break;t(o<<2|s>>4),64!=i&&(t(s<<4&240|i>>2),64!=a&&t(i<<6&192|a))}}(e,(function(e){n[o++]=e})),n.subarray(0,o)}function x(){if(!F){F={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=e.concat(t[r].split(""));S[r]=n;for(var o=0;o<n.length;o++){var s=n[o];void 0===F[s]&&(F[s]=o)}}}}d("jspb.ConstBinaryMessage",(function(){}),void 0),d("jspb.BinaryMessage",(function(){}),void 0),d("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),d("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),d("jspb.BinaryConstants.FieldTypeToWireType",(function(e){switch(e){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),d("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),d("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),d("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),d("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),d("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),d("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),d("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),d("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),d("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),d("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),d("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),d("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),d("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),d("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),d("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var N=0,k=0;function U(e){var t=e>>>0;e=Math.floor((e-t)/4294967296)>>>0,N=t,k=e}function D(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/4294967296),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),N=r,k=e}function L(e){var t=0>e;U(e=2*Math.abs(e)),e=N;var r=k;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),N=e,k=r}function j(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?N=k=0:(k=0,N=2147483648);else if(isNaN(e))k=0,N=2147483647;else if(34028234663852886e22<e)k=0,N=(t<<31|2139095040)>>>0;else if(11754943508222875e-54>e)e=Math.round(e/Math.pow(2,-149)),k=0,N=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),16777216<=(e=Math.round(8388608*e))&&++r,k=0,N=(t<<31|r+127<<23|8388607&e)>>>0}}function z(e){var t=0>e?1:0;if(0===(e=t?-e:e))k=0<1/e?0:2147483648,N=0;else if(isNaN(e))k=2147483647,N=4294967295;else if(17976931348623157e292<e)k=(t<<31|2146435072)>>>0,N=0;else if(22250738585072014e-324>e)e/=Math.pow(2,-1074),k=(t<<31|e/4294967296)>>>0,N=e>>>0;else{var r=e,n=0;if(2<=r)for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;e*=Math.pow(2,-n),k=(t<<31|n+1023<<20|1048576*e&1048575)>>>0,N=4503599627370496*e>>>0}}function $(e){var t=e.charCodeAt(4),r=e.charCodeAt(5),n=e.charCodeAt(6),o=e.charCodeAt(7);N=e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)>>>0,k=t+(r<<8)+(n<<16)+(o<<24)>>>0}function V(e,t){return 4294967296*t+(e>>>0)}function G(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=V(e,t),r?-e:e}function H(e,t,r){var n=t>>31;return r(e<<1^n,(t<<1|e>>>31)^n)}function K(e,t){return Z(e,t,G)}function Z(e,t,r){var n=-(1&e);return r((e>>>1|t<<31)^n,t>>>1^n)}function q(e){var t=2*(e>>31)+1,r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))}function J(e,t){var r=2*(t>>31)+1,n=t>>>20&2047;return e=4294967296*(1048575&t)+e,2047==n?e?NaN:1/0*r:0==n?r*Math.pow(2,-1074)*e:r*Math.pow(2,n-1075)*(e+4503599627370496)}function Y(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)}function X(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+V(e,t);var n=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*n+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,1e7<=e&&(n+=Math.floor(e/1e7),e%=1e7),1e7<=n&&(t+=Math.floor(n/1e7),n%=1e7),r(t,0)+r(n,t)+r(e,1)}function Q(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=X(e,t),r?"-"+e:e}function ee(e,t){$(e),e=N;var r=k;return t?Q(e,r):X(e,r)}function te(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*n[r]+t,n[r]=255&t,t>>>=8}T(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var n=[0,0,0,0,0,0,0,0],o=0;o<e.length;o++)t(10,e.charCodeAt(o)-48);return r&&(function(){for(var e=0;8>e;e++)n[e]=255&~n[e]}(),t(1,1)),I(n)}function re(e){return String.fromCharCode(10>e?48+e:87+e)}function ne(e){return 97<=e?e-97+10:e-48}function oe(e,t,r,n,o){var s=0;if(128>n)for(;t<r&&e[t++]==n;)s++,t+=o;else for(;t<r;){for(var i=n;128<i;){if(e[t++]!=(127&i|128))return s;i>>=7}if(e[t++]!=i)break;s++,t+=o}return s}function se(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?_(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(w("Type not convertible to Uint8Array."),new Uint8Array(0))}function ie(e,t,r){this.b=null,this.a=this.c=this.h=0,this.v=!1,e&&this.H(e,t,r)}d("jspb.utils.getSplit64Low",(function(){return N}),void 0),d("jspb.utils.getSplit64High",(function(){return k}),void 0),d("jspb.utils.splitUint64",U,void 0),d("jspb.utils.splitInt64",D,void 0),d("jspb.utils.splitZigzag64",L,void 0),d("jspb.utils.splitFloat32",j,void 0),d("jspb.utils.splitFloat64",z,void 0),d("jspb.utils.splitHash64",$,void 0),d("jspb.utils.joinUint64",V,void 0),d("jspb.utils.joinInt64",G,void 0),d("jspb.utils.toZigzag64",H,void 0),d("jspb.utils.joinZigzag64",K,void 0),d("jspb.utils.fromZigzag64",Z,void 0),d("jspb.utils.joinFloat32",q,void 0),d("jspb.utils.joinFloat64",J,void 0),d("jspb.utils.joinHash64",Y,void 0),d("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),d("jspb.utils.joinUnsignedDecimalString",X,void 0),d("jspb.utils.joinSignedDecimalString",Q,void 0),d("jspb.utils.hash64ToDecimalString",ee,void 0),d("jspb.utils.hash64ArrayToDecimalStrings",(function(e,t){for(var r=Array(e.length),n=0;n<e.length;n++)r[n]=ee(e[n],t);return r}),void 0),d("jspb.utils.decimalStringToHash64",te,void 0),d("jspb.utils.splitDecimalString",(function(e){$(te(e))}),void 0),d("jspb.utils.hash64ToHexString",(function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var n=e.charCodeAt(7-r);t[2*r+2]=re(n>>4),t[2*r+3]=re(15&n)}return t.join("")}),void 0),d("jspb.utils.hexStringToHash64",(function(e){T(18==(e=e.toLowerCase()).length),T("0"==e[0]),T("x"==e[1]);for(var t="",r=0;8>r;r++)t=String.fromCharCode(16*ne(e.charCodeAt(2*r+2))+ne(e.charCodeAt(2*r+3)))+t;return t}),void 0),d("jspb.utils.hash64ToNumber",(function(e,t){$(e),e=N;var r=k;return t?G(e,r):V(e,r)}),void 0),d("jspb.utils.numberToHash64",(function(e){return D(e),Y(N,k)}),void 0),d("jspb.utils.countVarints",(function(e,t,r){for(var n=0,o=t;o<r;o++)n+=e[o]>>7;return r-t-n}),void 0),d("jspb.utils.countVarintFields",(function(e,t,r,n){var o=0;if(128>(n*=8))for(;t<r&&e[t++]==n;)for(o++;;){var s=e[t++];if(!(128&s))break}else for(;t<r;){for(s=n;128<s;){if(e[t]!=(127&s|128))return o;t++,s>>=7}if(e[t++]!=s)break;for(o++;128&(s=e[t++]););}return o}),void 0),d("jspb.utils.countFixed32Fields",(function(e,t,r,n){return oe(e,t,r,8*n+5,4)}),void 0),d("jspb.utils.countFixed64Fields",(function(e,t,r,n){return oe(e,t,r,8*n+1,8)}),void 0),d("jspb.utils.countDelimitedFields",(function(e,t,r,n){var o=0;for(n=8*n+2;t<r;){for(var s=n;128<s;){if(e[t++]!=(127&s|128))return o;s>>=7}if(e[t++]!=s)break;o++;for(var i=0,a=1;i+=(127&(s=e[t++]))*a,a*=128,128&s;);t+=i}return o}),void 0),d("jspb.utils.debugBytesToTextFormat",(function(e){var t='"';if(e){e=se(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'}),void 0),d("jspb.utils.debugScalarToTextFormat",(function(e){if("string"==typeof e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var n,o=e.charAt(r),s=o.charCodeAt(0),i=r+1;(n=O[o])||(31<s&&127>s||((s=o)in M?o=M[s]:s in O?o=M[s]=O[s]:(31<(n=s.charCodeAt(0))&&127>n?o=s:(256>n?(o="\\x",(16>n||256<n)&&(o+="0")):(o="\\u",4096>n&&(o+="0")),o+=n.toString(16).toUpperCase()),o=M[s]=o)),n=o),t[i]=n}t.push('"'),e=t.join("")}else e=e.toString();return e}),void 0),d("jspb.utils.stringToByteArray",(function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var n=e.charCodeAt(r);if(255<n)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=n}return t}),void 0),d("jspb.utils.byteSourceToUint8Array",se,void 0),d("jspb.BinaryDecoder",ie,void 0);var ae=[];function ce(e,t,r){if(ae.length){var n=ae.pop();return e&&n.H(e,t,r),n}return new ie(e,t,r)}function ue(e,t,r){this.a=ce(e,t,r),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}ie.getInstanceCacheLength=function(){return ae.length},ie.alloc=ce,ie.prototype.Ca=function(){this.clear(),100>ae.length&&ae.push(this)},ie.prototype.free=ie.prototype.Ca,ie.prototype.clone=function(){return ce(this.b,this.h,this.c-this.h)},ie.prototype.clone=ie.prototype.clone,ie.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ie.prototype.clear=ie.prototype.clear,ie.prototype.Y=function(){return this.b},ie.prototype.getBuffer=ie.prototype.Y,ie.prototype.H=function(e,t,r){this.b=se(e),this.h=void 0!==t?t:0,this.c=void 0!==r?this.h+r:this.b.length,this.a=this.h},ie.prototype.setBlock=ie.prototype.H,ie.prototype.Db=function(){return this.c},ie.prototype.getEnd=ie.prototype.Db,ie.prototype.setEnd=function(e){this.c=e},ie.prototype.setEnd=ie.prototype.setEnd,ie.prototype.reset=function(){this.a=this.h},ie.prototype.reset=ie.prototype.reset,ie.prototype.B=function(){return this.a},ie.prototype.getCursor=ie.prototype.B,ie.prototype.Ma=function(e){this.a=e},ie.prototype.setCursor=ie.prototype.Ma,ie.prototype.advance=function(e){this.a+=e,T(this.a<=this.c)},ie.prototype.advance=ie.prototype.advance,ie.prototype.ya=function(){return this.a==this.c},ie.prototype.atEnd=ie.prototype.ya,ie.prototype.Qb=function(){return this.a>this.c},ie.prototype.pastEnd=ie.prototype.Qb,ie.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ie.prototype.getError=ie.prototype.getError,ie.prototype.w=function(e){for(var t=128,r=0,n=0,o=0;4>o&&128<=t;o++)r|=(127&(t=this.b[this.a++]))<<7*o;if(128<=t&&(r|=(127&(t=this.b[this.a++]))<<28,n|=(127&t)>>4),128<=t)for(o=0;5>o&&128<=t;o++)n|=(127&(t=this.b[this.a++]))<<7*o+3;if(128>t)return e(r>>>0,n>>>0);w("Failed to read varint, encoding is invalid."),this.v=!0},ie.prototype.readSplitVarint64=ie.prototype.w,ie.prototype.ea=function(e){return this.w((function(t,r){return Z(t,r,e)}))},ie.prototype.readSplitZigzagVarint64=ie.prototype.ea,ie.prototype.ta=function(e){var t=this.b,r=this.a;this.a+=8;for(var n=0,o=0,s=r+7;s>=r;s--)n=n<<8|t[s],o=o<<8|t[s+4];return e(n,o)},ie.prototype.readSplitFixed64=ie.prototype.ta,ie.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},ie.prototype.skipVarint=ie.prototype.kb,ie.prototype.mb=function(e){for(;128<e;)this.a--,e>>>=7;this.a--},ie.prototype.unskipVarint=ie.prototype.mb,ie.prototype.o=function(){var e=this.b,t=e[this.a],r=127&t;return 128>t?(this.a+=1,T(this.a<=this.c),r):(r|=(127&(t=e[this.a+1]))<<7,128>t?(this.a+=2,T(this.a<=this.c),r):(r|=(127&(t=e[this.a+2]))<<14,128>t?(this.a+=3,T(this.a<=this.c),r):(r|=(127&(t=e[this.a+3]))<<21,128>t?(this.a+=4,T(this.a<=this.c),r):(r|=(15&(t=e[this.a+4]))<<28,128>t?(this.a+=5,T(this.a<=this.c),r>>>0):(this.a+=5,128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&T(!1),T(this.a<=this.c),r)))))},ie.prototype.readUnsignedVarint32=ie.prototype.o,ie.prototype.da=function(){return~~this.o()},ie.prototype.readSignedVarint32=ie.prototype.da,ie.prototype.O=function(){return this.o().toString()},ie.prototype.Ea=function(){return this.da().toString()},ie.prototype.readSignedVarint32String=ie.prototype.Ea,ie.prototype.Ia=function(){var e=this.o();return e>>>1^-(1&e)},ie.prototype.readZigzagVarint32=ie.prototype.Ia,ie.prototype.Ga=function(){return this.w(V)},ie.prototype.readUnsignedVarint64=ie.prototype.Ga,ie.prototype.Ha=function(){return this.w(X)},ie.prototype.readUnsignedVarint64String=ie.prototype.Ha,ie.prototype.sa=function(){return this.w(G)},ie.prototype.readSignedVarint64=ie.prototype.sa,ie.prototype.Fa=function(){return this.w(Q)},ie.prototype.readSignedVarint64String=ie.prototype.Fa,ie.prototype.Ja=function(){return this.w(K)},ie.prototype.readZigzagVarint64=ie.prototype.Ja,ie.prototype.fb=function(){return this.ea(Y)},ie.prototype.readZigzagVarintHash64=ie.prototype.fb,ie.prototype.Ka=function(){return this.ea(Q)},ie.prototype.readZigzagVarint64String=ie.prototype.Ka,ie.prototype.Gc=function(){var e=this.b[this.a];return this.a+=1,T(this.a<=this.c),e},ie.prototype.readUint8=ie.prototype.Gc,ie.prototype.Ec=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,T(this.a<=this.c),e|t<<8},ie.prototype.readUint16=ie.prototype.Ec,ie.prototype.m=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],n=this.b[this.a+3];return this.a+=4,T(this.a<=this.c),(e|t<<8|r<<16|n<<24)>>>0},ie.prototype.readUint32=ie.prototype.m,ie.prototype.ga=function(){return V(this.m(),this.m())},ie.prototype.readUint64=ie.prototype.ga,ie.prototype.ha=function(){return X(this.m(),this.m())},ie.prototype.readUint64String=ie.prototype.ha,ie.prototype.Xb=function(){var e=this.b[this.a];return this.a+=1,T(this.a<=this.c),e<<24>>24},ie.prototype.readInt8=ie.prototype.Xb,ie.prototype.Vb=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,T(this.a<=this.c),(e|t<<8)<<16>>16},ie.prototype.readInt16=ie.prototype.Vb,ie.prototype.P=function(){var e=this.b[this.a],t=this.b[this.a+1],r=this.b[this.a+2],n=this.b[this.a+3];return this.a+=4,T(this.a<=this.c),e|t<<8|r<<16|n<<24},ie.prototype.readInt32=ie.prototype.P,ie.prototype.ba=function(){return G(this.m(),this.m())},ie.prototype.readInt64=ie.prototype.ba,ie.prototype.ca=function(){return Q(this.m(),this.m())},ie.prototype.readInt64String=ie.prototype.ca,ie.prototype.aa=function(){return q(this.m())},ie.prototype.readFloat=ie.prototype.aa,ie.prototype.Z=function(){return J(this.m(),this.m())},ie.prototype.readDouble=ie.prototype.Z,ie.prototype.pa=function(){return!!this.b[this.a++]},ie.prototype.readBool=ie.prototype.pa,ie.prototype.ra=function(){return this.da()},ie.prototype.readEnum=ie.prototype.ra,ie.prototype.fa=function(e){var t=this.b,r=this.a;e=r+e;for(var n=[],o="";r<e;){var s=t[r++];if(128>s)n.push(s);else{if(192>s)continue;if(224>s){var i=t[r++];n.push((31&s)<<6|63&i)}else if(240>s){i=t[r++];var a=t[r++];n.push((15&s)<<12|(63&i)<<6|63&a)}else 248>s&&(s=(7&s)<<18|(63&(i=t[r++]))<<12|(63&(a=t[r++]))<<6|63&t[r++],s-=65536,n.push(55296+(s>>10&1023),56320+(1023&s)))}8192<=n.length&&(o+=String.fromCharCode.apply(null,n),n.length=0)}return o+=I(n),this.a=r,o},ie.prototype.readString=ie.prototype.fa,ie.prototype.Dc=function(){var e=this.o();return this.fa(e)},ie.prototype.readStringWithLength=ie.prototype.Dc,ie.prototype.qa=function(e){if(0>e||this.a+e>this.b.length)return this.v=!0,w("Invalid byte length!"),new Uint8Array(0);var t=this.b.subarray(this.a,this.a+e);return this.a+=e,T(this.a<=this.c),t},ie.prototype.readBytes=ie.prototype.qa,ie.prototype.ia=function(){return this.w(Y)},ie.prototype.readVarintHash64=ie.prototype.ia,ie.prototype.$=function(){var e=this.b,t=this.a,r=e[t],n=e[t+1],o=e[t+2],s=e[t+3],i=e[t+4],a=e[t+5],c=e[t+6];return e=e[t+7],this.a+=8,String.fromCharCode(r,n,o,s,i,a,c,e)},ie.prototype.readFixedHash64=ie.prototype.$,d("jspb.BinaryReader",ue,void 0);var le=[];function de(e,t,r){if(le.length){var n=le.pop();return e&&n.a.H(e,t,r),n}return new ue(e,t,r)}function pe(e,t){T(2==e.b);var r=e.a.o();r=e.a.B()+r;for(var n=[];e.a.B()<r;)n.push(t.call(e.a));return n}function fe(e,t,r,n,o){this.ma=e,this.Ba=t,this.la=r,this.Na=n,this.na=o}function he(e,t,r,n,o,s){this.Za=e,this.za=t,this.Aa=r,this.Wa=n,this.Ab=o,this.Nb=s}function ge(){}ue.clearInstanceCache=function(){le=[]},ue.getInstanceCacheLength=function(){return le.length},ue.alloc=de,ue.prototype.zb=de,ue.prototype.alloc=ue.prototype.zb,ue.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>le.length&&le.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.Fb=function(){return this.O},ue.prototype.getFieldCursor=ue.prototype.Fb,ue.prototype.B=function(){return this.a.B()},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Y=function(){return this.a.Y()},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.Hb=function(){return this.c},ue.prototype.getFieldNumber=ue.prototype.Hb,ue.prototype.Lb=function(){return this.b},ue.prototype.getWireType=ue.prototype.Lb,ue.prototype.Mb=function(){return 2==this.b},ue.prototype.isDelimited=ue.prototype.Mb,ue.prototype.bb=function(){return 4==this.b},ue.prototype.isEndGroup=ue.prototype.bb,ue.prototype.getError=function(){return this.h||this.a.getError()},ue.prototype.getError=ue.prototype.getError,ue.prototype.H=function(e,t,r){this.a.H(e,t,r),this.b=this.c=-1},ue.prototype.setBlock=ue.prototype.H,ue.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ue.prototype.reset=ue.prototype.reset,ue.prototype.advance=function(e){this.a.advance(e)},ue.prototype.advance=ue.prototype.advance,ue.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return w("Decoder hit an error"),!1;this.O=this.a.B();var e=this.a.o(),t=e>>>3;return 0!=(e&=7)&&5!=e&&1!=e&&2!=e&&3!=e&&4!=e?(w("Invalid wire type: %s (at position %s)",e,this.O),this.h=!0,!1):(this.c=t,this.b=e,!0)},ue.prototype.nextField=ue.prototype.oa,ue.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ue.prototype.unskipHeader=ue.prototype.Oa,ue.prototype.Lc=function(){var e=this.c;for(this.Oa();this.oa()&&this.c==e;)this.C();this.a.ya()||this.Oa()},ue.prototype.skipMatchingFields=ue.prototype.Lc,ue.prototype.lb=function(){0!=this.b?(w("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ue.prototype.skipVarintField=ue.prototype.lb,ue.prototype.gb=function(){if(2!=this.b)w("Invalid wire type for skipDelimitedField"),this.C();else{var e=this.a.o();this.a.advance(e)}},ue.prototype.skipDelimitedField=ue.prototype.gb,ue.prototype.hb=function(){5!=this.b?(w("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ue.prototype.skipFixed32Field=ue.prototype.hb,ue.prototype.ib=function(){1!=this.b?(w("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ue.prototype.skipFixed64Field=ue.prototype.ib,ue.prototype.jb=function(){for(var e=this.c;;){if(!this.oa()){w("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=e&&(w("Unmatched end-group tag"),this.h=!0);break}this.C()}},ue.prototype.skipGroup=ue.prototype.jb,ue.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:w("Invalid wire encoding for field.")}},ue.prototype.skipField=ue.prototype.C,ue.prototype.Hc=function(e,t){null===this.v&&(this.v={}),T(!this.v[e]),this.v[e]=t},ue.prototype.registerReadCallback=ue.prototype.Hc,ue.prototype.Ic=function(e){return T(null!==this.v),T(e=this.v[e]),e(this)},ue.prototype.runReadCallback=ue.prototype.Ic,ue.prototype.Yb=function(e,t){T(2==this.b);var r=this.a.c,n=this.a.o();n=this.a.B()+n,this.a.setEnd(n),t(e,this),this.a.Ma(n),this.a.setEnd(r)},ue.prototype.readMessage=ue.prototype.Yb,ue.prototype.Ub=function(e,t,r){T(3==this.b),T(this.c==e),r(t,this),this.h||4==this.b||(w("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ue.prototype.readGroup=ue.prototype.Ub,ue.prototype.Gb=function(){T(2==this.b);var e=this.a.o(),t=this.a.B(),r=t+e;return e=ce(this.a.Y(),t,e),this.a.Ma(r),e},ue.prototype.getFieldDecoder=ue.prototype.Gb,ue.prototype.P=function(){return T(0==this.b),this.a.da()},ue.prototype.readInt32=ue.prototype.P,ue.prototype.Wb=function(){return T(0==this.b),this.a.Ea()},ue.prototype.readInt32String=ue.prototype.Wb,ue.prototype.ba=function(){return T(0==this.b),this.a.sa()},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){return T(0==this.b),this.a.Fa()},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.m=function(){return T(0==this.b),this.a.o()},ue.prototype.readUint32=ue.prototype.m,ue.prototype.Fc=function(){return T(0==this.b),this.a.O()},ue.prototype.readUint32String=ue.prototype.Fc,ue.prototype.ga=function(){return T(0==this.b),this.a.Ga()},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){return T(0==this.b),this.a.Ha()},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.zc=function(){return T(0==this.b),this.a.Ia()},ue.prototype.readSint32=ue.prototype.zc,ue.prototype.Ac=function(){return T(0==this.b),this.a.Ja()},ue.prototype.readSint64=ue.prototype.Ac,ue.prototype.Bc=function(){return T(0==this.b),this.a.Ka()},ue.prototype.readSint64String=ue.prototype.Bc,ue.prototype.Rb=function(){return T(5==this.b),this.a.m()},ue.prototype.readFixed32=ue.prototype.Rb,ue.prototype.Sb=function(){return T(1==this.b),this.a.ga()},ue.prototype.readFixed64=ue.prototype.Sb,ue.prototype.Tb=function(){return T(1==this.b),this.a.ha()},ue.prototype.readFixed64String=ue.prototype.Tb,ue.prototype.vc=function(){return T(5==this.b),this.a.P()},ue.prototype.readSfixed32=ue.prototype.vc,ue.prototype.wc=function(){return T(5==this.b),this.a.P().toString()},ue.prototype.readSfixed32String=ue.prototype.wc,ue.prototype.xc=function(){return T(1==this.b),this.a.ba()},ue.prototype.readSfixed64=ue.prototype.xc,ue.prototype.yc=function(){return T(1==this.b),this.a.ca()},ue.prototype.readSfixed64String=ue.prototype.yc,ue.prototype.aa=function(){return T(5==this.b),this.a.aa()},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){return T(1==this.b),this.a.Z()},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return T(0==this.b),!!this.a.o()},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return T(0==this.b),this.a.sa()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function(){T(2==this.b);var e=this.a.o();return this.a.fa(e)},ue.prototype.readString=ue.prototype.fa,ue.prototype.qa=function(){T(2==this.b);var e=this.a.o();return this.a.qa(e)},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return T(0==this.b),this.a.ia()},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.Cc=function(){return T(0==this.b),this.a.fb()},ue.prototype.readSintHash64=ue.prototype.Cc,ue.prototype.w=function(e){return T(0==this.b),this.a.w(e)},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function(e){return T(0==this.b),this.a.w((function(t,r){return Z(t,r,e)}))},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.$=function(){return T(1==this.b),this.a.$()},ue.prototype.readFixedHash64=ue.prototype.$,ue.prototype.ta=function(e){return T(1==this.b),this.a.ta(e)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.gc=function(){return pe(this,this.a.da)},ue.prototype.readPackedInt32=ue.prototype.gc,ue.prototype.hc=function(){return pe(this,this.a.Ea)},ue.prototype.readPackedInt32String=ue.prototype.hc,ue.prototype.ic=function(){return pe(this,this.a.sa)},ue.prototype.readPackedInt64=ue.prototype.ic,ue.prototype.jc=function(){return pe(this,this.a.Fa)},ue.prototype.readPackedInt64String=ue.prototype.jc,ue.prototype.qc=function(){return pe(this,this.a.o)},ue.prototype.readPackedUint32=ue.prototype.qc,ue.prototype.rc=function(){return pe(this,this.a.O)},ue.prototype.readPackedUint32String=ue.prototype.rc,ue.prototype.sc=function(){return pe(this,this.a.Ga)},ue.prototype.readPackedUint64=ue.prototype.sc,ue.prototype.tc=function(){return pe(this,this.a.Ha)},ue.prototype.readPackedUint64String=ue.prototype.tc,ue.prototype.nc=function(){return pe(this,this.a.Ia)},ue.prototype.readPackedSint32=ue.prototype.nc,ue.prototype.oc=function(){return pe(this,this.a.Ja)},ue.prototype.readPackedSint64=ue.prototype.oc,ue.prototype.pc=function(){return pe(this,this.a.Ka)},ue.prototype.readPackedSint64String=ue.prototype.pc,ue.prototype.bc=function(){return pe(this,this.a.m)},ue.prototype.readPackedFixed32=ue.prototype.bc,ue.prototype.cc=function(){return pe(this,this.a.ga)},ue.prototype.readPackedFixed64=ue.prototype.cc,ue.prototype.dc=function(){return pe(this,this.a.ha)},ue.prototype.readPackedFixed64String=ue.prototype.dc,ue.prototype.kc=function(){return pe(this,this.a.P)},ue.prototype.readPackedSfixed32=ue.prototype.kc,ue.prototype.lc=function(){return pe(this,this.a.ba)},ue.prototype.readPackedSfixed64=ue.prototype.lc,ue.prototype.mc=function(){return pe(this,this.a.ca)},ue.prototype.readPackedSfixed64String=ue.prototype.mc,ue.prototype.fc=function(){return pe(this,this.a.aa)},ue.prototype.readPackedFloat=ue.prototype.fc,ue.prototype.$b=function(){return pe(this,this.a.Z)},ue.prototype.readPackedDouble=ue.prototype.$b,ue.prototype.Zb=function(){return pe(this,this.a.pa)},ue.prototype.readPackedBool=ue.prototype.Zb,ue.prototype.ac=function(){return pe(this,this.a.ra)},ue.prototype.readPackedEnum=ue.prototype.ac,ue.prototype.uc=function(){return pe(this,this.a.ia)},ue.prototype.readPackedVarintHash64=ue.prototype.uc,ue.prototype.ec=function(){return pe(this,this.a.$)},ue.prototype.readPackedFixedHash64=ue.prototype.ec,d("jspb.ExtensionFieldInfo",fe,void 0),d("jspb.ExtensionFieldBinaryInfo",he,void 0),fe.prototype.F=function(){return!!this.la},fe.prototype.isMessageType=fe.prototype.F,d("jspb.Message",ge,void 0),ge.GENERATE_TO_OBJECT=!0,ge.GENERATE_FROM_OBJECT=!0;var ye="function"==typeof Uint8Array;ge.prototype.Ib=function(){return this.b},ge.prototype.getJsPbMessageId=ge.prototype.Ib,ge.initialize=function(e,t,r,n,o,s){if(e.f=null,t||(t=r?[r]:[]),e.b=r?String(r):void 0,e.D=0===r?-1:0,e.u=t,t=-1,!(r=e.u.length)||(t=r-1,null===(r=e.u[t])||"object"!=typeof r||Array.isArray(r)||ye&&r instanceof Uint8Array)?-1<n?(e.G=Math.max(n,t+1-e.D),e.i=null):e.G=Number.MAX_VALUE:(e.G=t-e.D,e.i=r),e.a={},o)for(n=0;n<o.length;n++)(t=o[n])<e.G?(t+=e.D,e.u[t]=e.u[t]||be):(me(e),e.i[t]=e.i[t]||be);if(s&&s.length)for(n=0;n<s.length;n++)Me(e,s[n])};var be=Object.freeze?Object.freeze([]):[];function me(e){var t=e.G+e.D;e.u[t]||(e.i=e.u[t]={})}function Te(e,t,r){for(var n=[],o=0;o<e.length;o++)n[o]=t.call(e[o],r,e[o]);return n}function we(e,t){if(t<e.G){t+=e.D;var r=e.u[t];return r===be?e.u[t]=[]:r}if(e.i)return(r=e.i[t])===be?e.i[t]=[]:r}function Pe(e,t){return null==(e=we(e,t))?e:+e}function Ae(e,t){return null==(e=we(e,t))?e:!!e}function ve(e){return null==e||"string"==typeof e?e:ye&&e instanceof Uint8Array?R(e):(w("Cannot coerce to b64 string: "+p(e)),null)}function We(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?_(e):(w("Cannot coerce to Uint8Array: "+p(e)),null)}function Be(e){if(e&&1<e.length){var t=p(e[0]);g(e,(function(e){p(e)!=t&&w("Inconsistent type in JSPB repeated field array. Got "+p(e)+" expected "+t)}))}}function Ce(e,t,r){return null==(e=we(e,t))?r:e}function Ee(e,t,r){return P(e,ge),t<e.G?e.u[t+e.D]=r:(me(e),e.i[t]=r),e}function Ie(e,t,r,n){return P(e,ge),r!==n?Ee(e,t,r):t<e.G?e.u[t+e.D]=null:(me(e),delete e.i[t]),e}function Oe(e,t,r,n){return P(e,ge),(r=Me(e,r))&&r!==t&&void 0!==n&&(e.f&&r in e.f&&(e.f[r]=void 0),Ee(e,r,void 0)),Ee(e,t,n)}function Me(e,t){for(var r,n,o=0;o<t.length;o++){var s=t[o],i=we(e,s);null!=i&&(r=s,n=i,Ee(e,s,void 0))}return r?(Ee(e,r,n),r):0}function Se(e,t,r){if(e.f||(e.f={}),!e.f[r]){for(var n=we(e,r),o=[],s=0;s<n.length;s++)o[s]=new t(n[s]);e.f[r]=o}}function Fe(e){if(e.f)for(var t in e.f){var r=e.f[t];if(Array.isArray(r))for(var n=0;n<r.length;n++)r[n]&&r[n].g();else r&&r.g()}}function Re(e,t){e=e||{},t=t||{};var r,n={};for(r in e)n[r]=0;for(r in t)n[r]=0;for(r in n)if(!_e(e[r],t[r]))return!1;return!0}function _e(e,t){if(e==t)return!0;if(!f(e)||!f(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(ye&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var n=void 0,o=void 0,s=Math.max(e.length,t.length);for(r=0;r<s;r++){var i=e[r],a=t[r];if(i&&i.constructor==Object&&(T(void 0===n),T(r===e.length-1),n=i,i=void 0),a&&a.constructor==Object&&(T(void 0===o),T(r===t.length-1),o=a,a=void 0),!_e(i,a))return!1}return!n&&!o||Re(n=n||{},o=o||{})}if(e.constructor===Object)return Re(e,t);throw Error("Invalid type in JSPB array")}function xe(e){return new e.constructor(Ne(e.g()))}function Ne(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var n=e[r];null!=n&&(t[r]="object"==typeof n?Ne(T(n)):n)}return t}if(ye&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)null!=(n=e[r])&&(t[r]="object"==typeof n?Ne(T(n)):n);return t}ge.toObjectList=Te,ge.toObjectExtension=function(e,t,r,n,o){for(var s in r){var i=r[s],a=n.call(e,i);if(null!=a){for(var c in i.Ba)if(i.Ba.hasOwnProperty(c))break;t[c]=i.Na?i.na?Te(a,i.Na,o):i.Na(o,a):a}}},ge.serializeBinaryExtensions=function(e,t,r,n){for(var o in r){var s=r[o],i=s.Za;if(!s.Aa)throw Error("Message extension present that was generated without binary serialization support");var a=n.call(e,i);if(null!=a)if(i.F()){if(!s.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");s.Aa.call(t,i.ma,a,s.Wa)}else s.Aa.call(t,i.ma,a)}},ge.readBinaryExtension=function(e,t,r,n,o){var s=r[t.c];if(s){if(r=s.Za,!s.za)throw Error("Deserializing extension whose generated code does not support binary format");if(r.F()){var i=new r.la;s.za.call(t,i,s.Ab)}else i=s.za.call(t);r.na&&!s.Nb?(t=n.call(e,r))?t.push(i):o.call(e,r,[i]):o.call(e,r,i)}else t.C()},ge.getField=we,ge.getRepeatedField=function(e,t){return we(e,t)},ge.getOptionalFloatingPointField=Pe,ge.getBooleanField=Ae,ge.getRepeatedFloatingPointField=function(e,t){var r=we(e,t);if(e.a||(e.a={}),!e.a[t]){for(var n=0;n<r.length;n++)r[n]=+r[n];e.a[t]=!0}return r},ge.getRepeatedBooleanField=function(e,t){var r=we(e,t);if(e.a||(e.a={}),!e.a[t]){for(var n=0;n<r.length;n++)r[n]=!!r[n];e.a[t]=!0}return r},ge.bytesAsB64=ve,ge.bytesAsU8=We,ge.bytesListAsB64=function(e){return Be(e),e.length&&"string"!=typeof e[0]?y(e,ve):e},ge.bytesListAsU8=function(e){return Be(e),!e.length||e[0]instanceof Uint8Array?e:y(e,We)},ge.getFieldWithDefault=Ce,ge.getBooleanFieldWithDefault=function(e,t,r){return null==(e=Ae(e,t))?r:e},ge.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=Pe(e,t))?r:e},ge.getFieldProto3=Ce,ge.getMapField=function(e,t,r,n){if(e.f||(e.f={}),t in e.f)return e.f[t];var o=we(e,t);if(!o){if(r)return;Ee(e,t,o=[])}return e.f[t]=new v(o,n)},ge.setField=Ee,ge.setProto3IntField=function(e,t,r){return Ie(e,t,r,0)},ge.setProto3FloatField=function(e,t,r){return Ie(e,t,r,0)},ge.setProto3BooleanField=function(e,t,r){return Ie(e,t,r,!1)},ge.setProto3StringField=function(e,t,r){return Ie(e,t,r,"")},ge.setProto3BytesField=function(e,t,r){return Ie(e,t,r,"")},ge.setProto3EnumField=function(e,t,r){return Ie(e,t,r,0)},ge.setProto3StringIntField=function(e,t,r){return Ie(e,t,r,"0")},ge.addToRepeatedField=function(e,t,r,n){return P(e,ge),t=we(e,t),null!=n?t.splice(n,0,r):t.push(r),e},ge.setOneofField=Oe,ge.computeOneofCase=Me,ge.getWrapperField=function(e,t,r,n){if(e.f||(e.f={}),!e.f[r]){var o=we(e,r);(n||o)&&(e.f[r]=new t(o))}return e.f[r]},ge.getRepeatedWrapperField=function(e,t,r){return Se(e,t,r),(t=e.f[r])==be&&(t=e.f[r]=[]),t},ge.setWrapperField=function(e,t,r){P(e,ge),e.f||(e.f={});var n=r?r.g():r;return e.f[t]=r,Ee(e,t,n)},ge.setOneofWrapperField=function(e,t,r,n){P(e,ge),e.f||(e.f={});var o=n?n.g():n;return e.f[t]=n,Oe(e,t,r,o)},ge.setRepeatedWrapperField=function(e,t,r){P(e,ge),e.f||(e.f={}),r=r||[];for(var n=[],o=0;o<r.length;o++)n[o]=r[o].g();return e.f[t]=r,Ee(e,t,n)},ge.addToRepeatedWrapperField=function(e,t,r,n,o){Se(e,n,t);var s=e.f[t];return s||(s=e.f[t]=[]),r=r||new n,e=we(e,t),null!=o?(s.splice(o,0,r),e.splice(o,0,r.g())):(s.push(r),e.push(r.g())),r},ge.toMap=function(e,t,r,n){for(var o={},s=0;s<e.length;s++)o[t.call(e[s])]=r?r.call(e[s],n,e[s]):e[s];return o},ge.prototype.g=function(){return Fe(this),this.u},ge.prototype.toArray=ge.prototype.g,ge.prototype.toString=function(){return Fe(this),this.u.toString()},ge.prototype.getExtension=function(e){if(this.i){this.f||(this.f={});var t=e.ma;if(e.na){if(e.F())return this.f[t]||(this.f[t]=y(this.i[t]||[],(function(t){return new e.la(t)}))),this.f[t]}else if(e.F())return!this.f[t]&&this.i[t]&&(this.f[t]=new e.la(this.i[t])),this.f[t];return this.i[t]}},ge.prototype.getExtension=ge.prototype.getExtension,ge.prototype.Kc=function(e,t){this.f||(this.f={}),me(this);var r=e.ma;return e.na?(t=t||[],e.F()?(this.f[r]=t,this.i[r]=y(t,(function(e){return e.g()}))):this.i[r]=t):e.F()?(this.f[r]=t,this.i[r]=t?t.g():t):this.i[r]=t,this},ge.prototype.setExtension=ge.prototype.Kc,ge.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.g();t=t.g();var n=[],o=0,s=r.length>t.length?r.length:t.length;for(e.b&&(n[0]=e.b,o=1);o<s;o++)_e(r[o],t[o])||(n[o]=t[o]);return new e.constructor(n)},ge.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&_e(e.g(),t.g())},ge.compareExtensions=Re,ge.compareFields=_e,ge.prototype.Bb=function(){return xe(this)},ge.prototype.cloneMessage=ge.prototype.Bb,ge.prototype.clone=function(){return xe(this)},ge.prototype.clone=ge.prototype.clone,ge.clone=function(e){return xe(e)},ge.copyInto=function(e,t){P(e,ge),P(t,ge),T(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=xe(e);for(var r=t.g(),n=e.g(),o=r.length=0;o<n.length;o++)r[o]=n[o];t.f=e.f,t.i=e.i},ge.registerMessageType=function(e,t){t.we=e};var ke={dump:function(e){return P(e,ge,"jspb.Message instance expected"),T(e.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),ke.X(e)}};function Ue(){this.a=[]}function De(e,t){this.lo=e,this.hi=t}function Le(e,t){var r=65535&e,n=65535&t,o=t>>>16;for(t=r*n+65536*(r*o&65535)+65536*((e>>>=16)*n&65535),r=e*o+(r*o>>>16)+(e*n>>>16);4294967296<=t;)t-=4294967296,r+=1;return new De(t>>>0,r>>>0)}function je(e){for(var t=new De(0,0),r=new De(0,0),n=0;n<e.length;n++){if("0">e[n]||"9"<e[n])return null;r.lo=parseInt(e[n],10),t=t.eb(10).add(r)}return t}function ze(e,t){this.lo=e,this.hi=t}function $e(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=je(e))?null:(t&&(e=new De(0,0).sub(e)),new ze(e.lo,e.hi))}function Ve(){this.c=[],this.b=0,this.a=new Ue,this.h=[]}function Ge(e,t){var r=e.a.end();e.c.push(r),e.c.push(t),e.b+=r.length+t.length}function He(e,t){return Ze(e,t,2),t=e.a.end(),e.c.push(t),e.b+=t.length,t.push(e.b),t}function Ke(e,t){var r=t.pop();for(T(0<=(r=e.b+e.a.length()-r));127<r;)t.push(127&r|128),r>>>=7,e.b++;t.push(r),e.b++}function Ze(e,t,r){T(1<=t&&t==Math.floor(t)),e.a.j(8*t+r)}function qe(e,t,r){null!=r&&(Ze(e,t,0),e.a.j(r))}function Je(e,t,r){null!=r&&(Ze(e,t,0),e.a.M(r))}d("jspb.debug.dump",ke.dump,void 0),ke.X=function(e){var t=p(e);if("number"==t||"string"==t||"boolean"==t||"null"==t||"undefined"==t||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return e;if("array"==t)return function(e,t,r){for(var n=[],o=2;o<arguments.length;++o)n[o-2]=arguments[o];Array.isArray(e)||m("Expected array but got %s: %s.",[p(e),e],t,n)}(e),y(e,ke.X);if(e instanceof v){for(var r={},n=(e=e.entries()).next();!n.done;n=e.next())r[n.value[0]]=ke.X(n.value[1]);return r}P(e,ge,"Only messages expected: "+e);var o={$name:(t=e.constructor).name||t.displayName};for(a in t.prototype){var s=/^get([A-Z]\w*)/.exec(a);if(s&&"getExtension"!=a&&"getJsPbMessageId"!=a){var i="has"+s[1];e[i]&&!e[i]()||(i=e[a](),o[ke.$a(s[1])]=ke.X(i))}}if(e.extensionObject_)return o.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",o;for(n in t.extensions)if(/^\d+$/.test(n)){i=t.extensions[n];var a=e.getExtension(i);s=void 0,i=i.Ba;var c=[],u=0;for(s in i)c[u++]=s;s=c[0],null!=a&&(r||(r=o.$extensions={}),r[ke.$a(s)]=ke.X(a))}return o},ke.$a=function(e){return e.replace(/^[A-Z]/,(function(e){return e.toLowerCase()}))},d("jspb.BinaryEncoder",Ue,void 0),Ue.prototype.length=function(){return this.a.length},Ue.prototype.length=Ue.prototype.length,Ue.prototype.end=function(){var e=this.a;return this.a=[],e},Ue.prototype.end=Ue.prototype.end,Ue.prototype.l=function(e,t){for(T(e==Math.floor(e)),T(t==Math.floor(t)),T(0<=e&&4294967296>e),T(0<=t&&4294967296>t);0<t||127<e;)this.a.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.a.push(e)},Ue.prototype.writeSplitVarint64=Ue.prototype.l,Ue.prototype.A=function(e,t){T(e==Math.floor(e)),T(t==Math.floor(t)),T(0<=e&&4294967296>e),T(0<=t&&4294967296>t),this.s(e),this.s(t)},Ue.prototype.writeSplitFixed64=Ue.prototype.A,Ue.prototype.j=function(e){for(T(e==Math.floor(e)),T(0<=e&&4294967296>e);127<e;)this.a.push(127&e|128),e>>>=7;this.a.push(e)},Ue.prototype.writeUnsignedVarint32=Ue.prototype.j,Ue.prototype.M=function(e){if(T(e==Math.floor(e)),T(-2147483648<=e&&2147483648>e),0<=e)this.j(e);else{for(var t=0;9>t;t++)this.a.push(127&e|128),e>>=7;this.a.push(1)}},Ue.prototype.writeSignedVarint32=Ue.prototype.M,Ue.prototype.va=function(e){T(e==Math.floor(e)),T(0<=e&&0x10000000000000000>e),D(e),this.l(N,k)},Ue.prototype.writeUnsignedVarint64=Ue.prototype.va,Ue.prototype.ua=function(e){T(e==Math.floor(e)),T(-0x8000000000000000<=e&&0x8000000000000000>e),D(e),this.l(N,k)},Ue.prototype.writeSignedVarint64=Ue.prototype.ua,Ue.prototype.wa=function(e){T(e==Math.floor(e)),T(-2147483648<=e&&2147483648>e),this.j((e<<1^e>>31)>>>0)},Ue.prototype.writeZigzagVarint32=Ue.prototype.wa,Ue.prototype.xa=function(e){T(e==Math.floor(e)),T(-0x8000000000000000<=e&&0x8000000000000000>e),L(e),this.l(N,k)},Ue.prototype.writeZigzagVarint64=Ue.prototype.xa,Ue.prototype.Ta=function(e){this.W(te(e))},Ue.prototype.writeZigzagVarint64String=Ue.prototype.Ta,Ue.prototype.W=function(e){var t=this;$(e),H(N,k,(function(e,r){t.l(e>>>0,r>>>0)}))},Ue.prototype.writeZigzagVarintHash64=Ue.prototype.W,Ue.prototype.be=function(e){T(e==Math.floor(e)),T(0<=e&&256>e),this.a.push(e>>>0&255)},Ue.prototype.writeUint8=Ue.prototype.be,Ue.prototype.ae=function(e){T(e==Math.floor(e)),T(0<=e&&65536>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Ue.prototype.writeUint16=Ue.prototype.ae,Ue.prototype.s=function(e){T(e==Math.floor(e)),T(0<=e&&4294967296>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Ue.prototype.writeUint32=Ue.prototype.s,Ue.prototype.V=function(e){T(e==Math.floor(e)),T(0<=e&&0x10000000000000000>e),U(e),this.s(N),this.s(k)},Ue.prototype.writeUint64=Ue.prototype.V,Ue.prototype.Qc=function(e){T(e==Math.floor(e)),T(-128<=e&&128>e),this.a.push(e>>>0&255)},Ue.prototype.writeInt8=Ue.prototype.Qc,Ue.prototype.Pc=function(e){T(e==Math.floor(e)),T(-32768<=e&&32768>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Ue.prototype.writeInt16=Ue.prototype.Pc,Ue.prototype.S=function(e){T(e==Math.floor(e)),T(-2147483648<=e&&2147483648>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Ue.prototype.writeInt32=Ue.prototype.S,Ue.prototype.T=function(e){T(e==Math.floor(e)),T(-0x8000000000000000<=e&&0x8000000000000000>e),D(e),this.A(N,k)},Ue.prototype.writeInt64=Ue.prototype.T,Ue.prototype.ka=function(e){T(e==Math.floor(e)),T(-0x8000000000000000<=+e&&0x8000000000000000>+e),$(te(e)),this.A(N,k)},Ue.prototype.writeInt64String=Ue.prototype.ka,Ue.prototype.L=function(e){T(1/0===e||-1/0===e||isNaN(e)||-34028234663852886e22<=e&&34028234663852886e22>=e),j(e),this.s(N)},Ue.prototype.writeFloat=Ue.prototype.L,Ue.prototype.J=function(e){T(1/0===e||-1/0===e||isNaN(e)||-17976931348623157e292<=e&&17976931348623157e292>=e),z(e),this.s(N),this.s(k)},Ue.prototype.writeDouble=Ue.prototype.J,Ue.prototype.I=function(e){T("boolean"==typeof e||"number"==typeof e),this.a.push(e?1:0)},Ue.prototype.writeBool=Ue.prototype.I,Ue.prototype.R=function(e){T(e==Math.floor(e)),T(-2147483648<=e&&2147483648>e),this.M(e)},Ue.prototype.writeEnum=Ue.prototype.R,Ue.prototype.ja=function(e){this.a.push.apply(this.a,e)},Ue.prototype.writeBytes=Ue.prototype.ja,Ue.prototype.N=function(e){$(e),this.l(N,k)},Ue.prototype.writeVarintHash64=Ue.prototype.N,Ue.prototype.K=function(e){$(e),this.s(N),this.s(k)},Ue.prototype.writeFixedHash64=Ue.prototype.K,Ue.prototype.U=function(e){var t=this.a.length;!function(e,t,r){for(var n=[],o=2;o<arguments.length;++o)n[o-2]=arguments[o];"string"!=typeof e&&m("Expected string but got %s: %s.",[p(e),e],t,n)}(e);for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(128>n)this.a.push(n);else if(2048>n)this.a.push(n>>6|192),this.a.push(63&n|128);else if(65536>n)if(55296<=n&&56319>=n&&r+1<e.length){var o=e.charCodeAt(r+1);56320<=o&&57343>=o&&(n=1024*(n-55296)+o-56320+65536,this.a.push(n>>18|240),this.a.push(n>>12&63|128),this.a.push(n>>6&63|128),this.a.push(63&n|128),r++)}else this.a.push(n>>12|224),this.a.push(n>>6&63|128),this.a.push(63&n|128)}return this.a.length-t},Ue.prototype.writeString=Ue.prototype.U,d("jspb.arith.UInt64",De,void 0),De.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},