@magic-ext/flow 2.0.0 → 3.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/extension.js DELETED
@@ -1 +0,0 @@
1
- var MagicFlowExtension=function(commons,http,https,url){function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var http__default=_interopDefaultLegacy(http),https__default=_interopDefaultLegacy(https),url__default=_interopDefaultLegacy(url);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}let promise;var queueMicrotask_1="function"==typeof queueMicrotask?queueMicrotask:e=>(promise||(promise=Promise.resolve())).then(e).catch(e=>setTimeout(()=>{throw e},0)),g$2='{\n "tag":1,\n "assigns":{},\n "status":2,\n "reason":null,\n "accounts":{},\n "params":{},\n "arguments":{},\n "message": {\n "cadence":null,\n "refBlock":null,\n "computLimit":null,\n "proposer":null,\n "payer":null,\n "authorizations":[],\n "params":[],\n "arguments":[]\n },\n "proposer":null,\n "authorizations":[],\n "payer":null,\n "events": {\n "eventType":null,\n "start":null,\n "end":null\n },\n "latestBlock": {\n "isSealed":null\n },\n "accountAddr":null,\n "transactionId":null\n}',v$3=new Set(Object.keys(JSON.parse(g$2))),d$1=function(){return JSON.parse(g$2)},y$2=function(e){return Array.isArray(e)},h$2=function(e){return null==e},b$1=function(e){if("object"!=typeof e||h$2(e)||function(e){return"number"===e}(e))return!1;var t=v$3,r=Array.isArray(t),o=0;for(t=r?t:t[Symbol.iterator]();;){var n;if(r){if(o>=t.length)break;n=t[o++]}else{if((o=t.next()).done)break;n=o.value}if(!e.hasOwnProperty(n))return!1}return!0},A$2=function(e){return e.status=2,e},w$1=function(e,t){return e.status=1,e.reason=t,e},x$4=function(e){return function(t){return t.tag=e,A$2(t)}},E$3=x$4(8),C$1=x$4(16),D$1=function(e){return function(t){return Boolean(t.tag&e)}},H$2=D$1(2),K$2=D$1(4),Y$1=function(e){return Boolean(1&e.status)},rn=function e(t,r){void 0===r&&(r=[]);try{return Promise.resolve(t).then(function(o){if(t=function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];if(!v$3.has(o))throw new Error('"'+o+'" is an invalid root level Interaction property.')}return e}(o),Y$1(t)||!r.length)return t;var n=r[0],s=r.slice(1);return Promise.resolve(n).then(function(r){if("function"==typeof r)return e(r(t),s);if(h$2(r)||!r)return e(t,s);if(b$1(r))return e(r,s);throw new Error("Invalid Interaction Composition")})})}catch(e){return Promise.reject(e)}},en=function e(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var n=r[0],s=r[1];return y$2(n)&&null==s?function(t){return e(t,n)}:rn(n,s)},un=function(e,t,r){return null==e.assigns[t]?r:e.assigns[t]},v$2='{\n "tag":1,\n "assigns":{},\n "status":2,\n "reason":null,\n "accounts":{},\n "params":{},\n "message": {\n "cadence":null,\n "refBlock":null,\n "computLimit":null,\n "proposer":null,\n "payer":null,\n "authorizations":[],\n "params":[]\n },\n "proposer":null,\n "authorizations":[],\n "payer":null,\n "events": {\n "eventType":null,\n "start":null,\n "end":null\n },\n "latestBlock": {\n "isSealed":null\n },\n "accountAddr":null,\n "transactionId":null\n}';new Set(Object.keys(JSON.parse(v$2)));var T$1=function(e){return function(t){return Boolean(t.tag&e)}},G$1=T$1(2),H$1=T$1(4),K$1=T$1(8),Q=T$1(16),R$1=T$1(32),U$1=T$1(64),V=T$1(128),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e){var t={exports:{}};return e(t,t.exports),t.exports}var dist=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=20)}([function(module,exports){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var o=e.length,n=0;n<o;n++){var s=e[n];if(t.call(r,s,n,e))return{i:n,v:s}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==commonjsGlobal&&null!=commonjsGlobal?commonjsGlobal:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,r,o){if(t){for(r=$jscomp.global,e=e.split("."),o=0;o<e.length-1;o++){var n=e[o];n in r||(r[n]={}),r=r[n]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.findIndex",function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).i}},"es6","es3"),$jscomp.checkStringArgs=function(e,t,r){if(null==e)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"endsWith");e+="",void 0===t&&(t=r.length),t=Math.max(0,Math.min(0|t,r.length));for(var o=e.length;0<o&&0<t;)if(r[--t]!=e[--o])return!1;return 0>=o}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"startsWith"),o=r.length,n=(e+="").length;t=Math.max(0,Math.min(0|t,r.length));for(var s=0;s<n&&t<o;)if(r[t++]!=e[s++])return!1;return s>=n}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var r="";e;)1&e&&(r+=t),(e>>>=1)&&(t+=t);return r}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(e){return void 0!==e},goog.isString=function(e){return"string"==typeof e},goog.isBoolean=function(e){return"boolean"==typeof e},goog.isNumber=function(e){return"number"==typeof e},goog.exportPath_=function(e,t,r){(e=e.split("."))[0]in(r=r||goog.global)||void 0===r.execScript||r.execScript("var "+e[0]);for(var o;e.length&&(o=e.shift());)!e.length&&goog.isDef(t)?r[o]=t:r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=e},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&"function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r<e.length;r++)if(!goog.isDefAndNotNull(t=t[e[r]]))return null;return t},goog.globalize=function(e,t){for(var r in t=t||goog.global,e)t[r]=e[r]},goog.addDependency=function(e,t,r,o){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+"\n;})();\n"},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(e))var r=e.call(void 0,{});else{if(!goog.isString(e))throw Error("Invalid module definition");goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),r=goog.loadModuleFromSource_.call(void 0,e)}var o=goog.moduleLoaderState_.moduleName;if(!goog.isString(o)||!o)throw Error('Invalid module name "'+o+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(o,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof r&&null!=r&&Object.seal(r),goog.loadedModules_[o]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)"."==e[t]?e.splice(t,1):t&&".."==e[t]&&e[t-1]&&".."!=e[t-1]?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),0==t.status||200==t.status?t.responseText:null}catch(e){return null}},goog.transpile_=function(e,t,r){var o=goog.global.$jscomp;o||(goog.global.$jscomp=o={});var n=o.transpile;if(!n){var s=goog.basePath+goog.TRANSPILER,i=goog.loadFileSync_(s);if(i){if(function(){(0,eval)(i+"\n//# sourceURL="+s)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,n=(o=goog.global.$jscomp).transpile}}return n||(n=o.transpile=function(e,t){return goog.logToConsole_(t+" requires transpilation but no transpiler was found."),e}),n(e,t,r)},goog.typeOf=function(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},goog.isNull=function(e){return null===e},goog.isDefAndNotNull=function(e){return null!=e},goog.isArray=function(e){return"array"==goog.typeOf(e)},goog.isArrayLike=function(e){var t=goog.typeOf(e);return"array"==t||"object"==t&&"number"==typeof e.length},goog.isDateLike=function(e){return goog.isObject(e)&&"function"==typeof e.getFullYear},goog.isFunction=function(e){return"function"==goog.typeOf(e)},goog.isObject=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},goog.getUid=function(e){return e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){null!==e&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch(e){}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,o),e.apply(t,r)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,r){return goog.bind=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bindNative_:goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}},goog.mixin=function(e,t){for(var r in t)e[r]=t[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(e){if(goog.global.execScript)goog.global.execScript(e,"JavaScript");else{if(!goog.global.eval)throw Error("goog.globalEval not available");if(null==goog.evalWorksForGlobals_){try{goog.global.eval("var _evalTest_ = 1;")}catch(e){}if(void 0!==goog.global._evalTest_){try{delete goog.global._evalTest_}catch(e){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(e);else{var t=goog.global.document,r=t.createElement("SCRIPT");r.type="text/javascript",r.defer=!1,r.appendChild(t.createTextNode(e)),t.head.appendChild(r),t.head.removeChild(r)}}},goog.evalWorksForGlobals_=null,goog.getCssName=function(e,t){if("."==String(e).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var r=function(e){return goog.cssNameMapping_[e]||e},o=function(e){e=e.split("-");for(var t=[],o=0;o<e.length;o++)t.push(r(e[o]));return t.join("-")};return o=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?r:o:function(e){return e},e=t?e+"-"+o(t):o(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},goog.getMsg=function(e,t,r){return r&&r.html&&(e=e.replace(/</g,"&lt;")),t&&(e=e.replace(/\{\$([^}]+)}/g,function(e,r){return null!=t&&r in t?t[r]:e})),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,o){for(var n=Array(arguments.length-2),s=2;s<arguments.length;s++)n[s-2]=arguments[s];return t.prototype[r].apply(e,n)}},goog.base=function(e,t,r){var o=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!o)throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(void 0!==o.superClass_){for(var n=Array(arguments.length-1),s=1;s<arguments.length;s++)n[s-1]=arguments[s];return o.superClass_.constructor.apply(e,n)}if("string"!=typeof t&&"symbol"!=typeof t)throw Error("method names provided to goog.base must be a string or a symbol");for(n=Array(arguments.length-2),s=2;s<arguments.length;s++)n[s-2]=arguments[s];s=!1;for(var i=e.constructor.prototype;i;i=Object.getPrototypeOf(i))if(i[t]===o)s=!0;else if(s)return i[t].apply(e,n);if(e[t]===o)return e.constructor.prototype[t].apply(e,n);throw Error("goog.base called from a method of one name to a method of a different name")},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},goog.defineClass=function(e,t){var r=t.constructor,o=t.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,e),e&&goog.inherits(r,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(r.prototype,t),null!=o&&(o instanceof Function?o(r):goog.defineClass.applyProperties_(r,o)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return e;var r=!goog.defineClass.isUnsealable_(t),o=function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===o&&r&&Object.seal instanceof Function&&Object.seal(t),t};return o},goog.defineClass.isUnsealable_=function(e){return e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);for(var o=0;o<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;o++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[o],Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},goog.tagUnsealableClass=function(e){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null;if("undefined"==typeof TrustedTypes||!TrustedTypes.createPolicy)return t;try{t=TrustedTypes.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(e){goog.logToConsole_(e.message)}return t},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null;var jspb={BinaryConstants:{},ConstBinaryMessage:function(){},BinaryMessage:function(){}};jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31},jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5},jspb.BinaryConstants.FieldTypeToWireType=function(e){var t=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(e){case t.INT32:case t.INT64:case t.UINT32:case t.UINT64:case t.SINT32:case t.SINT64:case t.BOOL:case t.ENUM:case t.VHASH64:return r.VARINT;case t.DOUBLE:case t.FIXED64:case t.SFIXED64:case t.FHASH64:return r.FIXED64;case t.STRING:case t.MESSAGE:case t.BYTES:return r.DELIMITED;case t.FLOAT:case t.FIXED32:case t.SFIXED32:return r.FIXED32;default:return r.INVALID}},jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1,jspb.BinaryConstants.FLOAT32_EPS=1401298464324817e-60,jspb.BinaryConstants.FLOAT32_MIN=11754943508222875e-54,jspb.BinaryConstants.FLOAT32_MAX=34028234663852886e22,jspb.BinaryConstants.FLOAT64_EPS=5e-324,jspb.BinaryConstants.FLOAT64_MIN=22250738585072014e-324,jspb.BinaryConstants.FLOAT64_MAX=17976931348623157e292,jspb.BinaryConstants.TWO_TO_20=1048576,jspb.BinaryConstants.TWO_TO_23=8388608,jspb.BinaryConstants.TWO_TO_31=2147483648,jspb.BinaryConstants.TWO_TO_32=4294967296,jspb.BinaryConstants.TWO_TO_52=4503599627370496,jspb.BinaryConstants.TWO_TO_63=0x8000000000000000,jspb.BinaryConstants.TWO_TO_64=0x10000000000000000,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.debug={},goog.debug.Error=function(e){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(e,t){goog.debug.Error.call(this,goog.asserts.subs_(e,t)),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(e,t){for(var r="",o=(e=e.split("%s")).length-1,n=0;n<o;n++)r+=e[n]+(n<t.length?t[n]:"%s");return r+e[o]},goog.asserts.doAssertFailure_=function(e,t,r,o){var n="Assertion failed";if(r){n+=": "+r;var s=o}else e&&(n+=": "+e,s=t);e=new goog.asserts.AssertionError(""+n,s||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&null==e&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(e)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(e)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(e)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(e)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,r,o){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],r,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||"number"==typeof e&&isFinite(e)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(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},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(e){return e[e.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.indexOf.call(e,t,r)}:function(e,t,r){if(r=null==r?0:0>r?Math.max(0,e.length+r):r,goog.isString(e))return goog.isString(t)&&1==t.length?e.indexOf(t,r):-1;for(;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.lastIndexOf.call(e,t,null==r?e.length-1:r)}:function(e,t,r){if(0>(r=null==r?e.length-1:r)&&(r=Math.max(0,e.length+r)),goog.isString(e))return goog.isString(t)&&1==t.length?e.lastIndexOf(t,r):-1;for(;0<=r;r--)if(r in e&&e[r]===t)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,r){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,s=0;s<o;s++)s in n&&t.call(r,n[s],s,e)},goog.array.forEachRight=function(e,t,r){var o=e.length,n=goog.isString(e)?e.split(""):e;for(--o;0<=o;--o)o in n&&t.call(r,n[o],o,e)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.filter.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=[],s=0,i=goog.isString(e)?e.split(""):e,a=0;a<o;a++)if(a in i){var g=i[a];t.call(r,g,a,e)&&(n[s++]=g)}return n},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.map.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=Array(o),s=goog.isString(e)?e.split(""):e,i=0;i<o;i++)i in s&&(n[i]=t.call(r,s[i],i,e));return n},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),o&&(t=goog.bind(t,o)),Array.prototype.reduce.call(e,t,r)}:function(e,t,r,o){var n=r;return goog.array.forEach(e,function(r,s){n=t.call(o,n,r,s,e)}),n},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),goog.asserts.assert(null!=t),o&&(t=goog.bind(t,o)),Array.prototype.reduceRight.call(e,t,r)}:function(e,t,r,o){var n=r;return goog.array.forEachRight(e,function(r,s){n=t.call(o,n,r,s,e)}),n},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.some.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,s=0;s<o;s++)if(s in n&&t.call(r,n[s],s,e))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.every.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,s=0;s<o;s++)if(s in n&&!t.call(r,n[s],s,e))return!1;return!0},goog.array.count=function(e,t,r){var o=0;return goog.array.forEach(e,function(e,n,s){t.call(r,e,n,s)&&++o},r),o},goog.array.find=function(e,t,r){return 0>(t=goog.array.findIndex(e,t,r))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndex=function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,s=0;s<o;s++)if(s in n&&t.call(r,n[s],s,e))return s;return-1},goog.array.findRight=function(e,t,r){return 0>(t=goog.array.findIndexRight(e,t,r))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndexRight=function(e,t,r){var o=e.length,n=goog.isString(e)?e.split(""):e;for(--o;0<=o;o--)if(o in n&&t.call(r,n[o],o,e))return o;return-1},goog.array.contains=function(e,t){return 0<=goog.array.indexOf(e,t)},goog.array.isEmpty=function(e){return 0==e.length},goog.array.clear=function(e){if(!goog.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){goog.array.contains(e,t)||e.push(t)},goog.array.insertAt=function(e,t,r){goog.array.splice(e,r,0,t)},goog.array.insertArrayAt=function(e,t,r){goog.partial(goog.array.splice,e,r,0).apply(null,t)},goog.array.insertBefore=function(e,t,r){var o;2==arguments.length||0>(o=goog.array.indexOf(e,r))?e.push(t):goog.array.insertAt(e,t,o)},goog.array.remove=function(e,t){var r;return(r=0<=(t=goog.array.indexOf(e,t)))&&goog.array.removeAt(e,t),r},goog.array.removeLast=function(e,t){return 0<=(t=goog.array.lastIndexOf(e,t))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAt=function(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length},goog.array.removeIf=function(e,t,r){return 0<=(t=goog.array.findIndex(e,t,r))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,r){var o=0;return goog.array.forEachRight(e,function(n,s){t.call(r,n,s,e)&&goog.array.removeAt(e,s)&&o++}),o},goog.array.concat=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(e){var t=e.length;if(0<t){for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(e,t){for(var r=1;r<arguments.length;r++){var o=arguments[r];if(goog.isArrayLike(o)){var n=e.length||0,s=o.length||0;e.length=n+s;for(var i=0;i<s;i++)e[n+i]=o[i]}else e.push(o)}},goog.array.splice=function(e,t,r,o){return goog.asserts.assert(null!=e.length),Array.prototype.splice.apply(e,goog.array.slice(arguments,1))},goog.array.slice=function(e,t,r){return goog.asserts.assert(null!=e.length),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)},goog.array.removeDuplicates=function(e,t,r){t=t||e;var o=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};r=r||o,o={};for(var n=0,s=0;s<e.length;){var i=e[s++],a=r(i);Object.prototype.hasOwnProperty.call(o,a)||(o[a]=!0,t[n++]=i)}t.length=n},goog.array.binarySearch=function(e,t,r){return goog.array.binarySearch_(e,r||goog.array.defaultCompare,!1,t)},goog.array.binarySelect=function(e,t,r){return goog.array.binarySearch_(e,t,!0,void 0,r)},goog.array.binarySearch_=function(e,t,r,o,n){for(var s,i=0,a=e.length;i<a;){var g=i+a>>1,c=r?t.call(n,e[g],g,e):t(o,e[g]);0<c?i=g+1:(a=g,s=!c)}return s?i:~i},goog.array.sort=function(e,t){e.sort(t||goog.array.defaultCompare)},goog.array.stableSort=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]={index:o,value:e[o]};var n=t||goog.array.defaultCompare;for(goog.array.sort(r,function(e,t){return n(e.value,t.value)||e.index-t.index}),o=0;o<e.length;o++)e[o]=r[o].value},goog.array.sortByKey=function(e,t,r){var o=r||goog.array.defaultCompare;goog.array.sort(e,function(e,r){return o(t(e),t(r))})},goog.array.sortObjectsByKey=function(e,t,r){goog.array.sortByKey(e,function(e){return e[t]},r)},goog.array.isSorted=function(e,t,r){t=t||goog.array.defaultCompare;for(var o=1;o<e.length;o++){var n=t(e[o-1],e[o]);if(0<n||0==n&&r)return!1}return!0},goog.array.equals=function(e,t,r){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var o=e.length;r=r||goog.array.defaultCompareEquality;for(var n=0;n<o;n++)if(!r(e[n],t[n]))return!1;return!0},goog.array.compare3=function(e,t,r){r=r||goog.array.defaultCompare;for(var o=Math.min(e.length,t.length),n=0;n<o;n++){var s=r(e[n],t[n]);if(0!=s)return s}return goog.array.defaultCompare(e.length,t.length)},goog.array.defaultCompare=function(e,t){return e>t?1:e<t?-1:0},goog.array.inverseDefaultCompare=function(e,t){return-goog.array.defaultCompare(e,t)},goog.array.defaultCompareEquality=function(e,t){return e===t},goog.array.binaryInsert=function(e,t,r){return 0>(r=goog.array.binarySearch(e,t,r))&&(goog.array.insertAt(e,t,-(r+1)),!0)},goog.array.binaryRemove=function(e,t,r){return 0<=(t=goog.array.binarySearch(e,t,r))&&goog.array.removeAt(e,t)},goog.array.bucket=function(e,t,r){for(var o={},n=0;n<e.length;n++){var s=e[n],i=t.call(r,s,n,e);goog.isDef(i)&&(o[i]||(o[i]=[])).push(s)}return o},goog.array.toObject=function(e,t,r){var o={};return goog.array.forEach(e,function(n,s){o[t.call(r,n,s,e)]=n}),o},goog.array.range=function(e,t,r){var o=[],n=0,s=e;if(void 0!==t&&(n=e,s=t),0>(r=r||1)*(s-n))return[];if(0<r)for(e=n;e<s;e+=r)o.push(e);else for(e=n;e>s;e+=r)o.push(e);return o},goog.array.repeat=function(e,t){for(var r=[],o=0;o<t;o++)r[o]=e;return r},goog.array.flatten=function(e){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(goog.isArray(o))for(var n=0;n<o.length;n+=8192){var s=goog.array.slice(o,n,n+8192);s=goog.array.flatten.apply(null,s);for(var i=0;i<s.length;i++)t.push(s[i])}else t.push(o)}return t},goog.array.rotate=function(e,t){return goog.asserts.assert(null!=e.length),e.length&&(0<(t%=e.length)?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,r){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=r&&r<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,r,0,t[0])},goog.array.zip=function(e){if(!arguments.length)return[];for(var t=[],r=arguments[0].length,o=1;o<arguments.length;o++)arguments[o].length<r&&(r=arguments[o].length);for(o=0;o<r;o++){for(var n=[],s=0;s<arguments.length;s++)n.push(arguments[s][o]);t.push(n)}return t},goog.array.shuffle=function(e,t){t=t||Math.random;for(var r=e.length-1;0<r;r--){var o=Math.floor(t()*(r+1)),n=e[r];e[r]=e[o],e[o]=n}},goog.array.copyByIndex=function(e,t){var r=[];return goog.array.forEach(t,function(t){r.push(e[t])}),r},goog.array.concatMap=function(e,t,r){return goog.array.concat.apply([],goog.array.map(e,t,r))},goog.crypt={},goog.crypt.stringToByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var n=e.charCodeAt(o);255<n&&(t[r++]=255&n,n>>=8),t[r++]=n}return t},goog.crypt.byteArrayToString=function(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192){var o=goog.array.slice(e,r,r+8192);t+=String.fromCharCode.apply(null,o)}return t},goog.crypt.byteArrayToHex=function(e,t){return goog.array.map(e,function(e){return 1<(e=e.toString(16)).length?e:"0"+e}).join(t||"")},goog.crypt.hexToByteArray=function(e){goog.asserts.assert(0==e.length%2,"Key string length must be multiple of 2");for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substring(r,r+2),16));return t},goog.crypt.stringToUtf8ByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var n=e.charCodeAt(o);128>n?t[r++]=n:(2048>n?t[r++]=n>>6|192:(55296==(64512&n)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++o)),t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return t},goog.crypt.utf8ByteArrayToString=function(e){for(var t=[],r=0,o=0;r<e.length;){var n=e[r++];if(128>n)t[o++]=String.fromCharCode(n);else if(191<n&&224>n){var s=e[r++];t[o++]=String.fromCharCode((31&n)<<6|63&s)}else if(239<n&&365>n){s=e[r++];var i=e[r++];n=((7&n)<<18|(63&s)<<12|(63&i)<<6|63&e[r++])-65536,t[o++]=String.fromCharCode(55296+(n>>10)),t[o++]=String.fromCharCode(56320+(1023&n))}else s=e[r++],i=e[r++],t[o++]=String.fromCharCode((15&n)<<12|(63&s)<<6|63&i)}return t.join("")},goog.crypt.xorByteArray=function(e,t){goog.asserts.assert(e.length==t.length,"XOR array lengths must match");for(var r=[],o=0;o<e.length;o++)r.push(e[o]^t[o]);return r},goog.string={},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&amp;").replace(goog.string.internal.LT_RE_,"&lt;").replace(goog.string.internal.GT_RE_,"&gt;").replace(goog.string.internal.QUOT_RE_,"&quot;").replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.internal.NULL_RE_,"&#0;");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"&#0;"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/ /g," &#160;"),t)},goog.string.internal.contains=function(e,t){return-1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var r=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var o=Math.max(e.length,t.length),n=0;0==r&&n<o;n++){var s=e[n]||"",i=t[n]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],0==s[0].length&&0==i[0].length)break;r=0==s[1].length?0:parseInt(s[1],10);var a=0==i[1].length?0:parseInt(i[1],10);r=goog.string.internal.compareElements_(r,a)||goog.string.internal.compareElements_(0==s[2].length,0==i[2].length)||goog.string.internal.compareElements_(s[2],i[2]),s=s[3],i=i[3]}while(0==r)}return r},goog.string.internal.compareElements_=function(e,t){return e<t?-1:e>t?1:0},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"},goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(null!=e)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))||7<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))&&("adlm"==goog.LOCALE.substring(3,7).toLowerCase()||"arab"==goog.LOCALE.substring(3,7).toLowerCase()||"hebr"==goog.LOCALE.substring(3,7).toLowerCase()||"nkoo"==goog.LOCALE.substring(3,7).toLowerCase()||"rohg"==goog.LOCALE.substring(3,7).toLowerCase()||"thaa"==goog.LOCALE.substring(3,7).toLowerCase())||8<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))&&("adlm"==goog.LOCALE.substring(4,8).toLowerCase()||"arab"==goog.LOCALE.substring(4,8).toLowerCase()||"hebr"==goog.LOCALE.substring(4,8).toLowerCase()||"nkoo"==goog.LOCALE.substring(4,8).toLowerCase()||"rohg"==goog.LOCALE.substring(4,8).toLowerCase()||"thaa"==goog.LOCALE.substring(4,8).toLowerCase()),goog.i18n.bidi.Format={LRE:"‪",RLE:"‫",PDF:"‬",LRM:"‎",RLM:"‏"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(e,t){return"number"==typeof e?0<e?goog.i18n.bidi.Dir.LTR:0>e?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==e?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(void 0===t?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+e+"</span>"},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+e+"</span>"},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var r=0,o=0,n=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;t<e.length;t++){var s=e[t];goog.i18n.bidi.startsWithRtl(s)?(r++,o++):goog.i18n.bidi.isRequiredLtrRe_.test(s)?n=!0:goog.i18n.bidi.hasAnyLtr(s)?o++:goog.i18n.bidi.hasNumeralsRe_.test(s)&&(n=!0)}return 0==o?n?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/o>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:e.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:e.dir="rtl";break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var r=goog.html.TrustedResourceUrl.unwrap(this),o=(r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",o,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl&&e.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.unwrapTrustedURL=function(e){return e.trustedURL_?e.trustedURL_:goog.html.TrustedResourceUrl.unwrap(e)},goog.html.TrustedResourceUrl.format=function(e,t){var r=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return e=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(e,o){if(!Object.prototype.hasOwnProperty.call(t,o))throw Error('Found marker, "'+o+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[o])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,r,o){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(r,o)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",r=0;r<e.length;r++)t+=goog.string.Const.unwrap(e[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.TrustedResourceUrl;return t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(e):e,goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY&&(t.trustedURL_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e)),t},goog.html.TrustedResourceUrl.stringifyParams_=function(e,t,r){if(null==r)return t;if(goog.isString(r))return r?e+encodeURIComponent(r):"";for(var o in r){var n=r[o];n=goog.isArray(n)?n:[n];for(var s=0;s<n.length;s++){var i=n[s];null!=i&&(t||(t=e),t+=(t.length>e.length?"&":"")+encodeURIComponent(o)+"="+encodeURIComponent(String(i)))}}return t},goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return goog.html.SafeUrl.unwrapTrustedURL(e).toString()},goog.html.SafeUrl.unwrapTrustedURL=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl&&e.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SAFE_MIME_TYPE_PATTERN_.test(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(e){var t=(e=e.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t=t&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(t[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t?e:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0<t&&(e=e.substring(0,t)),!(t=e.match(/[?&]body=/gi)))return!0;if(1<t.length)return!1;if(!(e=e.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(e)}catch(e){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(e)},goog.html.SafeUrl.fromSshUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"ssh://")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(e,t,r){return(e=e.exec(t))?(e=e[1],-1==(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(e){return goog.string.Const.unwrap(e)})).indexOf(e)&&(t=goog.html.SafeUrl.INNOCUOUS_STRING)):t=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeUrl.fromTrustedResourceUrl=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(e))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.sanitize=function(e){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SAFE_URL_PATTERN_.test(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(e,t){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),t&&/^data:/i.test(e)&&(t=goog.html.SafeUrl.fromDataUrl(e)).getTypedStringValue()==e?t:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(e),"%s does not match the safe URL pattern",e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.SafeUrl;return t.privateDoNotAccessOrElseSafeUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e):e,t},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(e,";"),"Last character of style string is not ';': "+e),goog.asserts.assert(goog.string.internal.contains(e,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+e),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(e){return e instanceof goog.html.SafeStyle&&e.constructor===goog.html.SafeStyle&&e.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=e,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(e){var t,r="";for(t in e){if(!/^[-_a-zA-Z0-9]+$/.test(t))throw Error("Name allows only [-_a-zA-Z0-9], got: "+t);var o=e[t];null!=o&&(r+=t+":"+(o=goog.isArray(o)?goog.array.map(o,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(o))+";")}return r?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(r):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(e){if(e instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(e).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(e=e instanceof goog.string.Const?goog.string.Const.unwrap(e):goog.html.SafeStyle.sanitizePropertyValueString_(String(e)),/[{;}]/.test(e))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[e]);return e},goog.html.SafeStyle.sanitizePropertyValueString_=function(e){var t=e.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");return goog.html.SafeStyle.VALUE_RE_.test(t)?goog.html.SafeStyle.COMMENT_RE_.test(e)?(goog.asserts.fail("String value disallows comments, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):goog.html.SafeStyle.hasBalancedQuotes_(e)?goog.html.SafeStyle.hasBalancedSquareBrackets_(e)?goog.html.SafeStyle.sanitizeUrl_(e):(goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value requires balanced quotes, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING)},goog.html.SafeStyle.hasBalancedQuotes_=function(e){for(var t=!0,r=!0,o=0;o<e.length;o++){var n=e.charAt(o);"'"==n&&r?t=!t:'"'==n&&t&&(r=!r)}return t&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(e){for(var t=!0,r=/^[-_a-zA-Z0-9]$/,o=0;o<e.length;o++){var n=e.charAt(o);if("]"==n){if(t)return!1;t=!0}else if("["==n){if(!t)return!1;t=!1}else if(!t&&!r.test(n))return!1}return t},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9\\[\\]]",goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(e){return e.replace(goog.html.SafeStyle.URL_RE_,function(e,t,r,o){var n="";return r=r.replace(/^(['"])(.*)\1$/,function(e,t,r){return n=t,r}),e=goog.html.SafeUrl.sanitize(r).getTypedStringValue(),t+n+e+n+o})},goog.html.SafeStyle.concat=function(e){var t="",r=function(e){goog.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyle.unwrap(e)};return goog.array.forEach(arguments,r),t?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):goog.html.SafeStyle.EMPTY},goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeScript.fromConstantAndArgs=function(e,t){for(var r=[],o=1;o<arguments.length;o++)r.push(goog.html.SafeScript.stringify_(arguments[o]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(e)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(e){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(e))},goog.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),goog.html.SafeScript.unwrap=function(e){return goog.html.SafeScript.unwrapTrustedScript(e).toString()},goog.html.SafeScript.unwrapTrustedScript=function(e){return e instanceof goog.html.SafeScript&&e.constructor===goog.html.SafeScript&&e.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeScript).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(e):e,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.object={},goog.object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},goog.object.forEach=function(e,t,r){for(var o in e)t.call(r,e[o],o,e)},goog.object.filter=function(e,t,r){var o,n={};for(o in e)t.call(r,e[o],o,e)&&(n[o]=e[o]);return n},goog.object.map=function(e,t,r){var o,n={};for(o in e)n[o]=t.call(r,e[o],o,e);return n},goog.object.some=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return!0;return!1},goog.object.every=function(e,t,r){for(var o in e)if(!t.call(r,e[o],o,e))return!1;return!0},goog.object.getCount=function(e){var t,r=0;for(t in e)r++;return r},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t,r=[],o=0;for(t in e)r[o++]=e[t];return r},goog.object.getKeys=function(e){var t,r=[],o=0;for(t in e)r[o++]=t;return r},goog.object.getValueByKeys=function(e,t){var r=goog.isArrayLike(t),o=r?t:arguments;for(r=r?0:1;r<o.length;r++){if(null==e)return;e=e[o[r]]}return e},goog.object.containsKey=function(e,t){return null!==e&&t in e},goog.object.containsValue=function(e,t){for(var r in e)if(e[r]==t)return!0;return!1},goog.object.findKey=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return o},goog.object.findValue=function(e,t,r){return(t=goog.object.findKey(e,t,r))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var r;return(r=t in e)&&delete e[t],r},goog.object.add=function(e,t,r){if(null!==e&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,r)},goog.object.get=function(e,t,r){return null!==e&&t in e?e[t]:r},goog.object.set=function(e,t,r){e[t]=r},goog.object.setIfUndefined=function(e,t,r){return t in e?e[t]:e[t]=r},goog.object.setWithReturnValueIfNotSet=function(e,t,r){return t in e?e[t]:(r=r(),e[t]=r)},goog.object.equals=function(e,t){for(var r in e)if(!(r in t)||e[r]!==t[r])return!1;for(var o in t)if(!(o in e))return!1;return!0},goog.object.clone=function(e){var t,r={};for(t in e)r[t]=e[t];return r},goog.object.unsafeClone=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if(goog.isFunction(e.clone))return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.object.unsafeClone(e[r]);return t}return e},goog.object.transpose=function(e){var t,r={};for(t in e)r[e[t]]=t;return r},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var r,o,n=1;n<arguments.length;n++){for(r in o=arguments[n])e[r]=o[r];for(var s=0;s<goog.object.PROTOTYPE_FIELDS_.length;s++)r=goog.object.PROTOTYPE_FIELDS_[s],Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}},goog.object.create=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var r={},o=0;o<t;o+=2)r[arguments[o]]=arguments[o+1];return r},goog.object.createSet=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},o=0;o<t;o++)r[arguments[o]]=!0;return r},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,r){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var o={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||r);){for(var n=Object.getOwnPropertyNames(e),s=0;s<n.length;s++)o[n[s]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(o)},goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.createRule=function(e,t){if(goog.string.internal.contains(e,"<"))throw Error("Selector does not allow '<', got: "+e);var r=e.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(e){for(var t={"(":")","[":"]"},r=[],o=0;o<e.length;o++){var n=e[o];if(t[n])r.push(t[n]);else if(goog.object.contains(t,n)&&r.pop()!=n)return!1}return 0==r.length},goog.html.SafeStyleSheet.concat=function(e){var t="",r=function(e){goog.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyleSheet.unwrap(e)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeStyleSheet.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(e,"<"),"Forbidden '<' character in style sheet string: "+e),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(e){return e instanceof goog.html.SafeStyleSheet&&e.constructor===goog.html.SafeStyleSheet&&e.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=e,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return!0===goog.dom.tags.VOID_TAGS_[e]},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(e){this.tagName_=e},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var e=goog.labs.userAgent.util.getNavigator_();return e&&(e=e.userAgent)?e:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(e){goog.labs.userAgent.util.userAgent_=e||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(t,e)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(t,e)},goog.labs.userAgent.util.extractVersionTuples=function(e){for(var t,r=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,o=[];t=r.exec(e);)o.push([t[1],t[2],t[3]||void 0]);return o},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&!goog.labs.userAgent.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function e(e){return e=goog.array.find(e,o),r[e]||""}var t=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(t);t=goog.labs.userAgent.util.extractVersionTuples(t);var r={};goog.array.forEach(t,function(e){r[e[0]]=e[1]});var o=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?e(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?e(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?e(["Edg"]):goog.labs.userAgent.browser.isChrome()?e(["Chrome","CriOS"]):(t=t[2])&&t[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),e)},goog.labs.userAgent.browser.getIEVersion_=function(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var r=/MSIE +([\d\.]+)/.exec(e);if(r&&r[1])if(e=/Trident\/(\d.\d)/.exec(e),"7.0"==r[1])if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=r[1];return t},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(e){return goog.html.SafeHtml.unwrapTrustedHTML(e).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(e){return e instanceof goog.html.SafeHtml&&e.constructor===goog.html.SafeHtml&&e.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(e){if(e instanceof goog.html.SafeHtml)return e;var t="object"==typeof e,r=null;return t&&e.implementsGoogI18nBidiDirectionalString&&(r=e.getDirection()),e=t&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(e),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(e,t,r){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,r)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error("Invalid tag name <"+e+">.");if(e.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+e+"> is not allowed for SafeHtml.")},goog.html.SafeHtml.createIframe=function(e,t,r,o){e&&goog.html.TrustedResourceUrl.unwrap(e);var n={};return n.src=e||null,n.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(n,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.createSandboxIframe=function(e,t,r,o){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var n={};return n.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,n.srcdoc=t||null,n.sandbox="",e=goog.html.SafeHtml.combineAttributes(n,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var r in t){var o=r.toLowerCase();if("language"==o||"src"==o||"text"==o||"type"==o)throw Error('Cannot set "'+o+'" attribute')}for(r="",e=goog.array.concat(e),o=0;o<e.length;o++)r+=goog.html.SafeScript.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t,e)},goog.html.SafeHtml.createStyle=function(e,t){t=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},t);var r="";e=goog.array.concat(e);for(var o=0;o<e.length;o++)r+=goog.html.SafeStyleSheet.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",t,e)},goog.html.SafeHtml.createMetaRefresh=function(e,t){return e=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(t||0)+"; url="+e})},goog.html.SafeHtml.getAttrNameAndValue_=function(e,t,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if("style"==t.toLowerCase())r=goog.html.SafeHtml.getStyleValue_(r);else{if(/^on/i.test(t))throw Error('Attribute "'+t+'" requires goog.string.Const value, "'+r+'" given.');if(t.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(r instanceof goog.html.TrustedResourceUrl)r=goog.html.TrustedResourceUrl.unwrap(r);else if(r instanceof goog.html.SafeUrl)r=goog.html.SafeUrl.unwrap(r);else{if(!goog.isString(r))throw Error('Attribute "'+t+'" on tag "'+e+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.');r=goog.html.SafeUrl.sanitize(r).getTypedStringValue()}}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(goog.isString(r)||goog.isNumber(r),"String or number value expected, got "+typeof r+" with value: "+r),t+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(e){if(!goog.isObject(e))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof e+" given: "+e);return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),goog.html.SafeStyle.unwrap(e)},goog.html.SafeHtml.createWithDir=function(e,t,r,o){return(t=goog.html.SafeHtml.create(t,r,o)).dir_=e,t},goog.html.SafeHtml.join=function(e,t){var r=(e=goog.html.SafeHtml.htmlEscape(e)).getDirection(),o=[],n=function(e){goog.isArray(e)?goog.array.forEach(e,n):(e=goog.html.SafeHtml.htmlEscape(e),o.push(goog.html.SafeHtml.unwrap(e)),e=e.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=e:e!=goog.i18n.bidi.Dir.NEUTRAL&&r!=e&&(r=null))};return goog.array.forEach(t,n),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o.join(goog.html.SafeHtml.unwrap(e)),r)},goog.html.SafeHtml.concat=function(e){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(e,t){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=e,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(e,t){return(new goog.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(e,t)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e,t){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(e):e,this.dir_=t,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(e,t,r){var o=null,n="<"+e+goog.html.SafeHtml.stringifyAttributes(e,t);return goog.isDefAndNotNull(r)?goog.isArray(r)||(r=[r]):r=[],goog.dom.tags.isVoidTag(e.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+e+"> does not allow content."),n+=">"):(o=goog.html.SafeHtml.concat(r),n+=">"+goog.html.SafeHtml.unwrap(o)+"</"+e+">",o=o.getDirection()),(e=t&&t.dir)&&(o=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n,o)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var r="";if(t)for(var o in t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error('Invalid attribute name "'+o+'".');var n=t[o];goog.isDefAndNotNull(n)&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,o,n))}return r},goog.html.SafeHtml.combineAttributes=function(e,t,r){var o,n={};for(o in e)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),n[o]=e[o];for(o in t)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),n[o]=t[o];for(o in r){var s=o.toLowerCase();if(s in e)throw Error('Cannot override "'+s+'" attribute, got "'+o+'" with value "'+r[o]+'"');s in t&&delete n[s],n[o]=r[o]}return n},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,r){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(e);r&&void 0!==r[t]&&(e&&(e instanceof r[t]||!(e instanceof r.Location||e instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(!goog.isObject(e))return void 0===e?"undefined":null===e?"null":typeof e;try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,r=t&&(t.defaultView||t.parentWindow);if((r=r||goog.global).Element&&r.Location)return r}catch(e){}return null},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=Array.prototype.slice.call(arguments);return t.push.apply(t,r),e.apply(this,t)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(r){return t?e==r:e===r}},goog.functions.compose=function(e,t){var r=arguments,o=r.length;return function(){var e;o&&(e=r[o-1].apply(this,arguments));for(var t=o-2;0<=t;t--)e=r[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,r=t.length;return function(){for(var e,o=0;o<r;o++)e=t[o].apply(this,arguments);return e}},goog.functions.and=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(!t[e].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(t[e].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var r=function(){};return r.prototype=e.prototype,r=new r,e.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t,r=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(r||(t=e(),r=!0),t):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var e=t;t=null,e()}}},goog.functions.debounce=function(e,t,r){var o=0;return function(n){goog.global.clearTimeout(o);var s=arguments;o=goog.global.setTimeout(function(){e.apply(r,s)},t)}},goog.functions.throttle=function(e,t,r){var o=0,n=!1,s=[],i=function(){o=0,n&&(n=!1,a())},a=function(){o=goog.global.setTimeout(i,t),e.apply(r,s)};return function(e){s=arguments,o?n=!0:a()}},goog.functions.rateLimit=function(e,t,r){var o=0,n=function(){o=0};return function(s){o||(o=goog.global.setTimeout(n,t),e.apply(r,arguments))}},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,r){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(r))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&"undefined"==typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!(goog.DEBUG&&!e.firstChild||(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),t.parentElement))}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,r){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrapTrustedURL(t):goog.html.SafeUrl.unwrapTrustedURL(t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.text=goog.html.SafeScript.unwrapTrustedScript(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.replaceLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.openInWindow=function(e,t,r,o,n){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),(t||goog.global).open(goog.html.SafeUrl.unwrapTrustedURL(e),r?goog.string.Const.unwrap(r):"",o,n)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,r){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),r)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var r=e.split("%s"),o="",n=Array.prototype.slice.call(arguments,1);n.length&&1<r.length;)o+=r.shift()+n.shift();return o+r.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(e){return 0==e.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return" "==e},goog.string.isUnicodeChar=function(e){return 1==e.length&&" "<=e&&"~">=e||"€"<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var o=e.toLowerCase().match(r),n=t.toLowerCase().match(r),s=Math.min(o.length,n.length),i=0;i<s;i++){var a=n[i];if((r=o[i])!=a)return e=parseInt(r,10),!isNaN(e)&&(t=parseInt(a,10),!isNaN(t)&&e-t)?e-t:r<a?-1:1}return o.length!=n.length?o.length-n.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"&#101;")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},o=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,function(e,t){var n=r[e];return n||("#"==t.charAt(0)&&(t=Number("0"+t.substr(1)),isNaN(t)||(n=String.fromCharCode(t))),n||(goog.dom.safe.setInnerHtml(o,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),n=o.firstChild.nodeValue.slice(0,-1)),r[e]=n)})},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||(t=Number("0"+t.substr(1)),isNaN(t))?e:String.fromCharCode(t)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g," &#160;"),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,o=0;o<r;o++){var n=1==r?t:t.charAt(o);if(e.charAt(0)==n&&e.charAt(e.length-1)==n)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,r){return r&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,o){if(r&&(e=goog.string.unescapeEntities(e)),o&&e.length>t){o>t&&(o=t);var n=e.length-o;e=e.substring(0,t-o)+"..."+e.substring(n)}else e.length>t&&(o=Math.floor(t/2),n=e.length-o,e=e.substring(0,o+t%2)+"..."+e.substring(n));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var o=e.charAt(r),n=o.charCodeAt(0);t[r+1]=goog.string.specialEscapeChars_[o]||(31<n&&127>n?o:goog.string.escapeChar(o))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=goog.string.escapeChar(e.charAt(r));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var r=e;else 256>t?(r="\\x",(16>t||256<t)&&(r+="0")):(r="\\u",4096>t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var o=e;return 0<=t&&t<e.length&&0<r&&(o=e.substr(0,t)+e.substr(t+r,e.length-t-r)),o},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,r){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,r){return-1==(r=(e=goog.isDef(r)?e.toFixed(r):String(e)).indexOf("."))&&(r=e.length),goog.string.repeat("0",Math.max(0,t-r))+e},goog.string.makeSafe=function(e){return null==e?"":String(e)},goog.string.buildString=function(e){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,r=0;r<e.length;++r)t=31*t+e.charCodeAt(r)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t=goog.isString(t)?goog.string.regExpEscape(t):"\\s",e.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(e,t,r){return t+r.toUpperCase()})},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),goog.isString(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var o=[];0<r&&e.length;)o.push(e.shift()),r--;return e.length&&o.push(e.join(t)),o},goog.string.lastComponent=function(e,t){if(!t)return e;"string"==typeof t&&(t=[t]);for(var r=-1,o=0;o<t.length;o++)if(""!=t[o]){var n=e.lastIndexOf(t[o]);n>r&&(r=n)}return-1==r?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],o=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var n=0;n<t.length+1;n++)r[n]=n;for(n=0;n<e.length;n++){o[0]=n+1;for(var s=0;s<t.length;s++)o[s+1]=Math.min(o[s]+1,r[s+1]+1,r[s]+Number(e[n]!=t[s]));for(s=0;s<r.length;s++)r[s]=o[s]}return o[t.length]},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")},goog.labs.userAgent.platform.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent(),t="";return goog.labs.userAgent.platform.isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":goog.labs.userAgent.platform.isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):goog.labs.userAgent.platform.isMacintosh()?t=(e=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":goog.labs.userAgent.platform.isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:goog.labs.userAgent.platform.isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:goog.labs.userAgent.platform.isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""},goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),e)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch(e){}return!1},goog.reflect.cache=function(e,t,r,o){return o=o?o(t):t,Object.prototype.hasOwnProperty.call(e,o)?e[o]:e[o]=r(t)},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent();if(e){e=goog.labs.userAgent.util.extractVersionTuples(e);var t,r=goog.labs.userAgent.engine.getEngineTuple_(e);if(r)return"Gecko"==r[0]?goog.labs.userAgent.engine.getVersionForKey_(e,"Firefox"):r[1];if((e=e[0])&&(t=e[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(e){if(!goog.labs.userAgent.engine.isEdge())return e[1];for(var t=0;t<e.length;t++){var r=e[t];if("Edge"==r[0])return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),e)},goog.labs.userAgent.engine.getVersionForKey_=function(e,t){return(e=goog.array.find(e,function(e){return t==e[0]}))&&e[1]||""},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko();goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.ASSUME_GO2PHONE=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&null!=(t=goog.userAgent.getDocumentMode_())&&t>parseFloat(e)?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,e)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||"function"==typeof goog.global.btoa,goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&"function"==typeof goog.global.atob,goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),void 0===t&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var r=[],o=0;o<e.length;o+=3){var n=e[o],s=o+1<e.length,i=s?e[o+1]:0,a=o+2<e.length,g=a?e[o+2]:0,c=n>>2;n=(3&n)<<4|i>>4,i=(15&i)<<2|g>>6,g&=63,a||(g=64,s||(i=64)),r.push(t[c],t[n],t[i]||"",t[g]||"")}return r.join("")},goog.crypt.base64.encodeString=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e),t)},goog.crypt.base64.decodeString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var r="";return goog.crypt.base64.decodeStringInternal_(e,function(e){r+=String.fromCharCode(e)}),r},goog.crypt.base64.decodeStringToByteArray=function(e,t){var r=[];return goog.crypt.base64.decodeStringInternal_(e,function(e){r.push(e)}),r},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,r=3*t/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(e[t-1])&&(r=goog.crypt.base64.isPadding_(e[t-2])?r-2:r-1);var o=new Uint8Array(r),n=0;return goog.crypt.base64.decodeStringInternal_(e,function(e){o[n++]=e}),o.subarray(0,n)},goog.crypt.base64.decodeStringInternal_=function(e,t){function r(t){for(;o<e.length;){var r=e.charAt(o++),n=goog.crypt.base64.charToByteMap_[r];if(null!=n)return n;if(!goog.string.isEmptyOrWhitespace(r))throw Error("Unknown base64 encoding at char: "+r)}return t}goog.crypt.base64.init_();for(var o=0;;){var n=r(-1),s=r(0),i=r(64),a=r(64);if(64===a&&-1===n)break;t(n<<2|s>>4),64!=i&&(t(s<<4&240|i>>2),64!=a&&t(i<<6&192|a))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=e.concat(t[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=o;for(var n=0;n<o.length;n++){var s=o[n],i=goog.crypt.base64.charToByteMap_[s];void 0===i?goog.crypt.base64.charToByteMap_[s]=n:goog.asserts.assert(i===n)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(e){var t=e>>>0;e=Math.floor((e-t)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=t,jspb.utils.split64High=e},jspb.utils.splitInt64=function(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/jspb.BinaryConstants.TWO_TO_32),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),jspb.utils.split64Low=r,jspb.utils.split64High=e},jspb.utils.splitZigzag64=function(e){var t=0>e;e=2*Math.abs(e),jspb.utils.splitUint64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),jspb.utils.split64Low=e,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(e))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(e>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|2139095040)>>>0;else if(e<jspb.BinaryConstants.FLOAT32_MIN)e=Math.round(e/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),e=8388607&Math.round(e*jspb.BinaryConstants.TWO_TO_23),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|r+127<<23|e)>>>0}},jspb.utils.splitFloat64=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))jspb.utils.split64High=0<1/e?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(e))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(e>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(t<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(e<jspb.BinaryConstants.FLOAT64_MIN){var r=e/Math.pow(2,-1074);jspb.utils.split64High=(t<<31|(e=r/jspb.BinaryConstants.TWO_TO_32))>>>0,jspb.utils.split64Low=r>>>0}else{var o=0;if(2<=(r=e))for(;2<=r&&1023>o;)o++,r/=2;else for(;1>r&&-1022<o;)r*=2,o--;e=(r=e*Math.pow(2,-o))*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(t<<31|o+1023<<20|e)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2),n=e.charCodeAt(3),s=e.charCodeAt(4),i=e.charCodeAt(5),a=e.charCodeAt(6);e=e.charCodeAt(7),jspb.utils.split64Low=t+(r<<8)+(o<<16)+(n<<24)>>>0,jspb.utils.split64High=s+(i<<8)+(a<<16)+(e<<24)>>>0},jspb.utils.joinUint64=function(e,t){return t*jspb.BinaryConstants.TWO_TO_32+(e>>>0)},jspb.utils.joinInt64=function(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=jspb.utils.joinUint64(e,t),r?-e:e},jspb.utils.toZigzag64=function(e,t,r){var o=t>>31;return r(e<<1^o,(t<<1|e>>>31)^o)},jspb.utils.joinZigzag64=function(e,t){return jspb.utils.fromZigzag64(e,t,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(e,t,r){var o=-(1&e);return r((e>>>1|t<<31)^o,t>>>1^o)},jspb.utils.joinFloat32=function(e,t){t=2*(e>>31)+1;var 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))},jspb.utils.joinFloat64=function(e,t){var r=2*(t>>31)+1,o=t>>>20&2047;return e=jspb.BinaryConstants.TWO_TO_32*(1048575&t)+e,2047==o?e?NaN:1/0*r:0==o?r*Math.pow(2,-1074)*e:r*Math.pow(2,o-1075)*(e+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(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)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+(jspb.BinaryConstants.TWO_TO_32*t+e);var o=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*o+6710656*(t=t>>16&65535),o+=8147497*t,t*=2,1e7<=e&&(o+=Math.floor(e/1e7),e%=1e7),1e7<=o&&(t+=Math.floor(o/1e7),o%=1e7),r(t,0)+r(o,t)+r(e,1)},jspb.utils.joinSignedDecimalString=function(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=jspb.utils.joinUnsignedDecimalString(e,t),r?"-"+e:e},jspb.utils.hash64ToDecimalString=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinSignedDecimalString(e,r):jspb.utils.joinUnsignedDecimalString(e,r)},jspb.utils.hash64ArrayToDecimalStrings=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]=jspb.utils.hash64ToDecimalString(e[o],t);return r},jspb.utils.decimalStringToHash64=function(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)o[r]=255&(t=e*o[r]+t),t>>>=8}goog.asserts.assert(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var o=[0,0,0,0,0,0,0,0],n=0;n<e.length;n++)t(10,e.charCodeAt(n)-jspb.utils.ZERO_CHAR_CODE_);return r&&(function(){for(var e=0;8>e;e++)o[e]=255&~o[e]}(),t(1,1)),goog.crypt.byteArrayToString(o)},jspb.utils.splitDecimalString=function(e){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e))},jspb.utils.toHexDigit_=function(e){return String.fromCharCode(10>e?jspb.utils.ZERO_CHAR_CODE_+e:jspb.utils.A_CHAR_CODE_-10+e)},jspb.utils.fromHexCharCode_=function(e){return e>=jspb.utils.A_CHAR_CODE_?e-jspb.utils.A_CHAR_CODE_+10:e-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var o=e.charCodeAt(7-r);t[2*r+2]=jspb.utils.toHexDigit_(o>>4),t[2*r+3]=jspb.utils.toHexDigit_(15&o)}return t.join("")},jspb.utils.hexStringToHash64=function(e){e=e.toLowerCase(),goog.asserts.assert(18==e.length),goog.asserts.assert("0"==e[0]),goog.asserts.assert("x"==e[1]);for(var t="",r=0;8>r;r++){var o=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+2)),n=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+3));t=String.fromCharCode(16*o+n)+t}return t},jspb.utils.hash64ToNumber=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinInt64(e,r):jspb.utils.joinUint64(e,r)},jspb.utils.numberToHash64=function(e){return jspb.utils.splitInt64(e),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(e,t,r){for(var o=0,n=t;n<r;n++)o+=e[n]>>7;return r-t-o},jspb.utils.countVarintFields=function(e,t,r,o){var n=0;if(128>(o=8*o+jspb.BinaryConstants.WireType.VARINT))for(;t<r&&e[t++]==o;)for(n++;;){var s=e[t++];if(0==(128&s))break}else for(;t<r;){for(s=o;128<s;){if(e[t]!=(127&s|128))return n;t++,s>>=7}if(e[t++]!=s)break;for(n++;0!=(128&(s=e[t++])););}return n},jspb.utils.countFixedFields_=function(e,t,r,o,n){var s=0;if(128>o)for(;t<r&&e[t++]==o;)s++,t+=n;else for(;t<r;){for(var i=o;128<i;){if(e[t++]!=(127&i|128))return s;i>>=7}if(e[t++]!=i)break;s++,t+=n}return s},jspb.utils.countFixed32Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(e,t,r,o){var n=0;for(o=8*o+jspb.BinaryConstants.WireType.DELIMITED;t<r;){for(var s=o;128<s;){if(e[t++]!=(127&s|128))return n;s>>=7}if(e[t++]!=s)break;n++;for(var i=0,a=1;i+=(127&(s=e[t++]))*a,a*=128,0!=(128&s););t+=i}return n},jspb.utils.debugBytesToTextFormat=function(e){var t='"';if(e){e=jspb.utils.byteSourceToUint8Array(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},jspb.utils.debugScalarToTextFormat=function(e){return"string"==typeof e?goog.string.quote(e):e.toString()},jspb.utils.stringToByteArray=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var o=e.charCodeAt(r);if(255<o)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=o}return t},jspb.utils.byteSourceToUint8Array=function(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||"undefined"!=typeof Buffer&&e.constructor===Buffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(e,t,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,e&&this.setBlock(e,t,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(e,t,r){if(jspb.BinaryDecoder.instanceCache_.length){var o=jspb.BinaryDecoder.instanceCache_.pop();return e&&o.setBlock(e,t,r),o}return new jspb.BinaryDecoder(e,t,r)},jspb.BinaryDecoder.prototype.free=function(){this.clear(),100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(e,t,r){this.bytes_=jspb.utils.byteSourceToUint8Array(e),this.start_=void 0!==t?t:0,this.end_=void 0!==r?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},jspb.BinaryDecoder.prototype.advance=function(e){this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(e){for(var t=128,r=0,o=0,n=0;4>n&&128<=t;n++)r|=(127&(t=this.bytes_[this.cursor_++]))<<7*n;if(128<=t&&(r|=(127&(t=this.bytes_[this.cursor_++]))<<28,o|=(127&t)>>4),128<=t)for(n=0;5>n&&128<=t;n++)o|=(127&(t=this.bytes_[this.cursor_++]))<<7*n+3;if(128>t)return e(r>>>0,o>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64(function(t,r){return jspb.utils.fromZigzag64(t,r,e)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var o=0,n=0,s=r+7;s>=r;s--)o=o<<8|t[s],n=n<<8|t[s+4];return e(o,n)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(e){for(;128<e;)this.cursor_--,e>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var e=this.bytes_,t=e[this.cursor_+0],r=127&t;return 128>t?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+1]))<<7,128>t?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+2]))<<14,128>t?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+3]))<<21,128>t?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(15&(t=e[this.cursor_+4]))<<28,128>t?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32,jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8|r<<16|o<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUint64(e,t)},jspb.BinaryDecoder.prototype.readUint64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUnsignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8|r<<16|o<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinInt64(e,t)},jspb.BinaryDecoder.prototype.readInt64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinSignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32();return jspb.utils.joinFloat32(e,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinFloat64(e,t)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(e){var t=this.bytes_,r=this.cursor_;e=r+e;for(var o=[],n="";r<e;){var s=t[r++];if(128>s)o.push(s);else{if(192>s)continue;if(224>s){var i=t[r++];o.push((31&s)<<6|63&i)}else if(240>s){i=t[r++];var a=t[r++];o.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++],o.push(55296+((s-=65536)>>10&1023),56320+(1023&s)))}8192<=o.length&&(n+=String.fromCharCode.apply(null,o),o.length=0)}return n+=goog.crypt.byteArrayToString(o),this.cursor_=r,n},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var e=this.readUnsignedVarint32();return this.readString(e)},jspb.BinaryDecoder.prototype.readBytes=function(e){if(0>e||this.cursor_+e>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var t=this.bytes_.subarray(this.cursor_,this.cursor_+e);return this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_),t},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var e=this.bytes_,t=this.cursor_,r=e[t+0],o=e[t+1],n=e[t+2],s=e[t+3],i=e[t+4],a=e[t+5],g=e[t+6];return e=e[t+7],this.cursor_+=8,String.fromCharCode(r,o,n,s,i,a,g,e)},jspb.BinaryReader=function(e,t,r){this.decoder_=jspb.BinaryDecoder.alloc(e,t,r),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(e,t,r){if(jspb.BinaryReader.instanceCache_.length){var o=jspb.BinaryReader.instanceCache_.pop();return e&&o.decoder_.setBlock(e,t,r),o}return new jspb.BinaryReader(e,t,r)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(e,t,r){this.decoder_.setBlock(e,t,r),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(e){this.decoder_.advance(e)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var e=this.decoder_.readUnsignedVarint32(),t=e>>>3;return(e&=7)!=jspb.BinaryConstants.WireType.VARINT&&e!=jspb.BinaryConstants.WireType.FIXED32&&e!=jspb.BinaryConstants.WireType.FIXED64&&e!=jspb.BinaryConstants.WireType.DELIMITED&&e!=jspb.BinaryConstants.WireType.START_GROUP&&e!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",e,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=t,this.nextWireType_=e,!0)},jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var e=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==e;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var e=this.decoder_.readUnsignedVarint32();this.decoder_.advance(e)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=e&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:goog.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(e,t){null===this.readCallbacks_&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[e]),this.readCallbacks_[e]=t},jspb.BinaryReader.prototype.runReadCallback=function(e){return goog.asserts.assert(null!==this.readCallbacks_),goog.asserts.assert(e=this.readCallbacks_[e]),e(this)},jspb.BinaryReader.prototype.readAny=function(e){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(e);var t=jspb.BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();case t.FHASH64:return this.readFixedHash64();case t.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(e,t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),o=this.decoder_.readUnsignedVarint32();o=this.decoder_.getCursor()+o,this.decoder_.setEnd(o),t(e,this),this.decoder_.setCursor(o),this.decoder_.setEnd(r)},jspb.BinaryReader.prototype.readGroup=function(e,t,r){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==e),r(t,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32(),t=this.decoder_.getCursor(),r=t+e;return e=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),t,e),this.decoder_.setCursor(r),e},jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e)},jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(t,r){return jspb.utils.fromZigzag64(t,r,e)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(e)},jspb.BinaryReader.prototype.readPackedField_=function(e){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();t=this.decoder_.getCursor()+t;for(var r=[];this.decoder_.getCursor()<t;)r.push(e.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.Map=function(e,t){this.arr_=e,this.valueCtor_=t,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},jspb.Map.prototype.loadFromArray_=function(){for(var e=0;e<this.arr_.length;e++){var t=this.arr_[e],r=t[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,t[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var e,t=this.map_;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,(t=this.stringKeys_()).sort(),e=0;e<t.length;e++){var o=this.map_[t[e]];(r=o.valueWrapper)&&r.toArray(),this.arr_.push([o.key,o.value])}this.arrClean=!0}return this.arr_},jspb.Map.prototype.toObject=function(e,t){for(var r=this.toArray(),o=[],n=0;n<r.length;n++){var s=this.map_[r[n][0].toString()];this.wrapEntry_(s);var i=s.valueWrapper;i?(goog.asserts.assert(t),o.push([s.key,t(e,i)])):o.push([s.key,s.value])}return o},jspb.Map.fromObject=function(e,t,r){t=new jspb.Map([],t);for(var o=0;o<e.length;o++){var n=e[o][0],s=r(e[o][1]);t.set(n,s)}return t},jspb.Map.ArrayIteratorIterable_=function(e){this.idx_=0,this.arr_=e},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},jspb.Map.prototype.del=function(e){e=e.toString();var t=this.map_.hasOwnProperty(e);return delete this.map_[e],this.arrClean=!1,t},jspb.Map.prototype.getEntryList=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,o.value])}return e},jspb.Map.prototype.entries=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,this.wrapEntry_(o)])}return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.keys=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.map_[t[r]].key);return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.values=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.wrapEntry_(this.map_[t[r]]));return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.forEach=function(e,t){var r=this.stringKeys_();r.sort();for(var o=0;o<r.length;o++){var n=this.map_[r[o]];e.call(t,this.wrapEntry_(n),n.key,this)}},jspb.Map.prototype.set=function(e,t){var r=new jspb.Map.Entry_(e);return this.valueCtor_?(r.valueWrapper=t,r.value=t.toArray()):r.value=t,this.map_[e.toString()]=r,this.arrClean=!1,this},jspb.Map.prototype.wrapEntry_=function(e){return this.valueCtor_?(e.valueWrapper||(e.valueWrapper=new this.valueCtor_(e.value)),e.valueWrapper):e.value},jspb.Map.prototype.get=function(e){if(e=this.map_[e.toString()])return this.wrapEntry_(e)},jspb.Map.prototype.has=function(e){return e.toString()in this.map_},jspb.Map.prototype.serializeBinary=function(e,t,r,o,n){var s=this.stringKeys_();s.sort();for(var i=0;i<s.length;i++){var a=this.map_[s[i]];t.beginSubMessage(e),r.call(t,1,a.key),this.valueCtor_?o.call(t,2,this.wrapEntry_(a),n):o.call(t,2,a.value),t.endSubMessage()}},jspb.Map.deserializeBinary=function(e,t,r,o,n,s,i){for(;t.nextField()&&!t.isEndGroup();){var a=t.getFieldNumber();1==a?s=r.call(t):2==a&&(e.valueCtor_?(goog.asserts.assert(n),i||(i=new e.valueCtor_),o.call(t,i,n)):i=o.call(t))}goog.asserts.assert(null!=s),goog.asserts.assert(null!=i),e.set(s,i)},jspb.Map.prototype.stringKeys_=function(){var e,t=this.map_,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r},jspb.Map.Entry_=function(e,t){this.key=e,this.value=t,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(e,t,r,o,n){this.fieldIndex=e,this.fieldName=t,this.ctor=r,this.toObjectFn=o,this.isRepeated=n},jspb.ExtensionFieldBinaryInfo=function(e,t,r,o,n,s){this.fieldInfo=e,this.binaryReaderFn=t,this.binaryWriterFn=r,this.binaryMessageSerializeFn=o,this.binaryMessageDeserializeFn=n,this.isPacked=s},jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},jspb.Message=function(){},jspb.Message.GENERATE_TO_OBJECT=!0,jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_="function"==typeof Uint8Array,jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},jspb.Message.getIndex_=function(e,t){return t+e.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(e,t){return t-e.arrayIndexOffset_},jspb.Message.initialize=function(e,t,r,o,n,s){if(e.wrappers_=null,t||(t=r?[r]:[]),e.messageId_=r?String(r):void 0,e.arrayIndexOffset_=0===r?-1:0,e.array=t,jspb.Message.initPivotAndExtensionObject_(e,o),e.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(e.repeatedFields=n),n)for(t=0;t<n.length;t++)(r=n[t])<e.pivot_?(r=jspb.Message.getIndex_(e,r),e.array[r]=e.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[r]=e.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(s&&s.length)for(t=0;t<s.length;t++)jspb.Message.computeOneofCase(e,s[t])},jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(e){return jspb.Message.ASSUME_LOCAL_ARRAYS?e instanceof Array:goog.isArray(e)},jspb.Message.isExtensionObject_=function(e){return!(null===e||"object"!=typeof e||jspb.Message.isArray_(e)||jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(e,t){var r=e.array.length,o=-1;if(r&&jspb.Message.isExtensionObject_(r=e.array[o=r-1]))return e.pivot_=jspb.Message.getFieldNumber_(e,o),void(e.extensionObject_=r);-1<t?(e.pivot_=Math.max(t,jspb.Message.getFieldNumber_(e,o+1)),e.extensionObject_=null):e.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(e){var t=jspb.Message.getIndex_(e,e.pivot_);e.array[t]||(e.extensionObject_=e.array[t]={})},jspb.Message.toObjectList=function(e,t,r){for(var o=[],n=0;n<e.length;n++)o[n]=t.call(e[n],r,e[n]);return o},jspb.Message.toObjectExtension=function(e,t,r,o,n){for(var s in r){var i=r[s],a=o.call(e,i);if(null!=a){for(var g in i.fieldName)if(i.fieldName.hasOwnProperty(g))break;t[g]=i.toObjectFn?i.isRepeated?jspb.Message.toObjectList(a,i.toObjectFn,n):i.toObjectFn(n,a):a}}},jspb.Message.serializeBinaryExtensions=function(e,t,r,o){for(var n in r){var s=r[n],i=s.fieldInfo;if(!s.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var a=o.call(e,i);if(null!=a)if(i.isMessageType()){if(!s.binaryMessageSerializeFn)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");s.binaryWriterFn.call(t,i.fieldIndex,a,s.binaryMessageSerializeFn)}else s.binaryWriterFn.call(t,i.fieldIndex,a)}},jspb.Message.readBinaryExtension=function(e,t,r,o,n){var s=r[t.getFieldNumber()];if(s){if(r=s.fieldInfo,!s.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var i=new r.ctor;s.binaryReaderFn.call(t,i,s.binaryMessageDeserializeFn)}else i=s.binaryReaderFn.call(t);r.isRepeated&&!s.isPacked?(t=o.call(e,r))?t.push(i):n.call(e,r,[i]):n.call(e,r,i)}else t.skipField()},jspb.Message.getField=function(e,t){if(t<e.pivot_){t=jspb.Message.getIndex_(e,t);var r=e.array[t];return r===jspb.Message.EMPTY_LIST_SENTINEL_?e.array[t]=[]:r}if(e.extensionObject_)return(r=e.extensionObject_[t])===jspb.Message.EMPTY_LIST_SENTINEL_?e.extensionObject_[t]=[]:r},jspb.Message.getRepeatedField=function(e,t){return jspb.Message.getField(e,t)},jspb.Message.getOptionalFloatingPointField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:+e},jspb.Message.getBooleanField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:!!e},jspb.Message.getRepeatedFloatingPointField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=+r[o];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.getRepeatedBooleanField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=!!r[o];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.bytesAsB64=function(e){return null==e||"string"==typeof e?e:jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array?goog.crypt.base64.encodeByteArray(e):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(e)),null)},jspb.Message.bytesAsU8=function(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)},jspb.Message.bytesListAsB64=function(e){return jspb.Message.assertConsistentTypes_(e),e.length&&"string"!=typeof e[0]?goog.array.map(e,jspb.Message.bytesAsB64):e},jspb.Message.bytesListAsU8=function(e){return jspb.Message.assertConsistentTypes_(e),!e.length||e[0]instanceof Uint8Array?e:goog.array.map(e,jspb.Message.bytesAsU8)},jspb.Message.assertConsistentTypes_=function(e){if(goog.DEBUG&&e&&1<e.length){var t=goog.typeOf(e[0]);goog.array.forEach(e,function(e){goog.typeOf(e)!=t&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(e)+" expected "+t)})}},jspb.Message.getFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getField(e,t))?r:e},jspb.Message.getBooleanFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getBooleanField(e,t))?r:e},jspb.Message.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getOptionalFloatingPointField(e,t))?r:e},jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,jspb.Message.getMapField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),t in e.wrappers_)return e.wrappers_[t];var n=jspb.Message.getField(e,t);if(!n){if(r)return;jspb.Message.setField(e,t,n=[])}return e.wrappers_[t]=new jspb.Map(n,o)},jspb.Message.setField=function(e,t,r){return goog.asserts.assertInstanceof(e,jspb.Message),t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[t]=r),e},jspb.Message.setProto3IntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3FloatField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3BooleanField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,!1)},jspb.Message.setProto3StringField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3BytesField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3EnumField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3StringIntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"0")},jspb.Message.setFieldIgnoringDefault_=function(e,t,r,o){return goog.asserts.assertInstanceof(e,jspb.Message),r!==o?jspb.Message.setField(e,t,r):e.array[jspb.Message.getIndex_(e,t)]=null,e},jspb.Message.addToRepeatedField=function(e,t,r,o){return goog.asserts.assertInstanceof(e,jspb.Message),t=jspb.Message.getRepeatedField(e,t),null!=o?t.splice(o,0,r):t.push(r),e},jspb.Message.setOneofField=function(e,t,r,o){return goog.asserts.assertInstanceof(e,jspb.Message),(r=jspb.Message.computeOneofCase(e,r))&&r!==t&&void 0!==o&&(e.wrappers_&&r in e.wrappers_&&(e.wrappers_[r]=void 0),jspb.Message.setField(e,r,void 0)),jspb.Message.setField(e,t,o)},jspb.Message.computeOneofCase=function(e,t){for(var r,o,n=0;n<t.length;n++){var s=t[n],i=jspb.Message.getField(e,s);null!=i&&(r=s,o=i,jspb.Message.setField(e,s,void 0))}return r?(jspb.Message.setField(e,r,o),r):0},jspb.Message.getWrapperField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){var n=jspb.Message.getField(e,r);(o||n)&&(e.wrappers_[r]=new t(n))}return e.wrappers_[r]},jspb.Message.getRepeatedWrapperField=function(e,t,r){return jspb.Message.wrapRepeatedField_(e,t,r),(t=e.wrappers_[r])==jspb.Message.EMPTY_LIST_SENTINEL_&&(t=e.wrappers_[r]=[]),t},jspb.Message.wrapRepeatedField_=function(e,t,r){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){for(var o=jspb.Message.getRepeatedField(e,r),n=[],s=0;s<o.length;s++)n[s]=new t(o[s]);e.wrappers_[r]=n}},jspb.Message.setWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var o=r?r.toArray():r;return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},jspb.Message.setOneofWrapperField=function(e,t,r,o){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var n=o?o.toArray():o;return e.wrappers_[t]=o,jspb.Message.setOneofField(e,t,r,n)},jspb.Message.setRepeatedWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={}),r=r||[];for(var o=[],n=0;n<r.length;n++)o[n]=r[n].toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},jspb.Message.addToRepeatedWrapperField=function(e,t,r,o,n){jspb.Message.wrapRepeatedField_(e,o,t);var s=e.wrappers_[t];return s||(s=e.wrappers_[t]=[]),r=r||new o,e=jspb.Message.getRepeatedField(e,t),null!=n?(s.splice(n,0,r),e.splice(n,0,r.toArray())):(s.push(r),e.push(r.toArray())),r},jspb.Message.toMap=function(e,t,r,o){for(var n={},s=0;s<e.length;s++)n[t.call(e[s])]=r?r.call(e[s],o,e[s]):e[s];return n},jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var e in this.wrappers_){var t=this.wrappers_[e];if(goog.isArray(t))for(var r=0;r<t.length;r++)t[r]&&t[r].toArray();else t&&t.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(e){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var t=e.fieldIndex;if(e.isRepeated){if(e.isMessageType())return this.wrappers_[t]||(this.wrappers_[t]=goog.array.map(this.extensionObject_[t]||[],function(t){return new e.ctor(t)})),this.wrappers_[t]}else if(e.isMessageType())return!this.wrappers_[t]&&this.extensionObject_[t]&&(this.wrappers_[t]=new e.ctor(this.extensionObject_[t])),this.wrappers_[t];return this.extensionObject_[t]}},jspb.Message.prototype.setExtension=function(e,t){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=e.fieldIndex;return e.isRepeated?(t=t||[],e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=goog.array.map(t,function(e){return e.toArray()})):this.extensionObject_[r]=t):e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=t?t.toArray():t):this.extensionObject_[r]=t,this},jspb.Message.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.toArray();t=t.toArray();var o=[],n=0,s=r.length>t.length?r.length:t.length;for(e.getJsPbMessageId()&&(o[0]=e.getJsPbMessageId(),n=1);n<s;n++)jspb.Message.compareFields(r[n],t[n])||(o[n]=t[n]);return new e.constructor(o)},jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&jspb.Message.compareFields(e.toArray(),t.toArray())},jspb.Message.compareExtensions=function(e,t){e=e||{},t=t||{};var r,o={};for(r in e)o[r]=0;for(r in t)o[r]=0;for(r in o)if(!jspb.Message.compareFields(e[r],t[r]))return!1;return!0},jspb.Message.compareFields=function(e,t){if(e==t)return!0;if(!goog.isObject(e)||!goog.isObject(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&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 o=void 0,n=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&&(goog.asserts.assert(void 0===o),goog.asserts.assert(r===e.length-1),o=i,i=void 0),a&&a.constructor==Object&&(goog.asserts.assert(void 0===n),goog.asserts.assert(r===t.length-1),n=a,a=void 0),!jspb.Message.compareFields(i,a))return!1}return!o&&!n||jspb.Message.compareExtensions(o=o||{},n=n||{})}if(e.constructor===Object)return jspb.Message.compareExtensions(e,t);throw Error("Invalid type in JSPB array")},jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},jspb.Message.clone=function(e){return jspb.Message.cloneMessage(e)},jspb.Message.cloneMessage=function(e){return new e.constructor(jspb.Message.clone_(e.toArray()))},jspb.Message.copyInto=function(e,t){goog.asserts.assertInstanceof(e,jspb.Message),goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assert(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=jspb.Message.clone(e);for(var r=t.toArray(),o=e.toArray(),n=r.length=0;n<o.length;n++)r[n]=o[n];t.wrappers_=e.wrappers_,t.extensionObject_=e.extensionObject_},jspb.Message.clone_=function(e){if(goog.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var o=e[r];null!=o&&(t[r]="object"==typeof o?jspb.Message.clone_(goog.asserts.assert(o)):o)}return t}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)null!=(o=e[r])&&(t[r]="object"==typeof o?jspb.Message.clone_(goog.asserts.assert(o)):o);return t},jspb.Message.registerMessageType=function(e,t){t.messageId=e},jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.arith={},jspb.arith.UInt64=function(e,t){this.lo=e,this.hi=t},jspb.arith.UInt64.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},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return 0==this.lo&&0==this.hi},jspb.arith.UInt64.prototype.add=function(e){return new jspb.arith.UInt64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(e){return new jspb.arith.UInt64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(e,t){var r=65535&e,o=65535&t,n=t>>>16;for(t=r*o+65536*(r*n&65535)+65536*((e>>>=16)*o&65535),r=e*n+(r*n>>>16)+(e*o>>>16);4294967296<=t;)t-=4294967296,r+=1;return new jspb.arith.UInt64(t>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(e){var t=jspb.arith.UInt64.mul32x32(this.lo,e);return(e=jspb.arith.UInt64.mul32x32(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},jspb.arith.UInt64.prototype.div=function(e){if(0==e)return[];var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);e=new jspb.arith.UInt64(e,0);for(var o=new jspb.arith.UInt64(1,0);!e.msb();)e=e.leftShift(),o=o.leftShift();for(;!o.zero();)0>=e.cmp(r)&&(t=t.add(o),r=r.sub(e)),e=e.rightShift(),o=o.rightShift();return[t,r]},jspb.arith.UInt64.prototype.toString=function(){for(var e="",t=this;!t.zero();){var r=(t=t.div(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},jspb.arith.UInt64.fromString=function(e){for(var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),o=0;o<e.length;o++){if("0">e[o]||"9"<e[o])return null;var n=parseInt(e[o],10);r.lo=n,t=t.mul(10).add(r)}return t},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(e,t){this.lo=e,this.hi=t},jspb.arith.Int64.prototype.add=function(e){return new jspb.arith.Int64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(e){return new jspb.arith.Int64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var e=0!=(2147483648&this.hi),t=new jspb.arith.UInt64(this.lo,this.hi);return e&&(t=new jspb.arith.UInt64(0,0).sub(t)),(e?"-":"")+t.toString()},jspb.arith.Int64.fromString=function(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=jspb.arith.UInt64.fromString(e))?null:(t&&(e=new jspb.arith.UInt64(0,0).sub(e)),new jspb.arith.Int64(e.lo,e.hi))},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(e){var t=this;jspb.utils.splitHash64(e),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(e,r){t.writeSplitVarint64(e>>>0,r>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(+e>=-jspb.BinaryConstants.TWO_TO_63&&+e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT32_MAX&&e<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(e),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT64_MAX&&e<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(e){goog.asserts.assert("boolean"==typeof e||"number"==typeof e),this.buffer_.push(e?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},jspb.BinaryEncoder.prototype.writeBytes=function(e){this.buffer_.push.apply(this.buffer_,e)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(e){jspb.utils.splitHash64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(e){jspb.utils.splitHash64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(e){for(var t=this.buffer_.length,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(128>o)this.buffer_.push(o);else if(2048>o)this.buffer_.push(o>>6|192),this.buffer_.push(63&o|128);else if(65536>o)if(55296<=o&&56319>=o&&r+1<e.length){var n=e.charCodeAt(r+1);56320<=n&&57343>=n&&(this.buffer_.push((o=1024*(o-55296)+n-56320+65536)>>18|240),this.buffer_.push(o>>12&63|128),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128),r++)}else this.buffer_.push(o>>12|224),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128)}return this.buffer_.length-t},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(e){var t=this.encoder_.end();this.blocks_.push(t),this.blocks_.push(e),this.totalLength_+=t.length+e.length},jspb.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.blocks_.push(e),this.totalLength_+=e.length,e.push(this.totalLength_),e},jspb.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,goog.asserts.assert(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(e,t,r){this.appendUint8Array_(e.subarray(t,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,r){null!=e&&null!=t&&null!=r&&this.writeSerializedMessage(e,t,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(0==this.bookmarks_.length);for(var e=new Uint8Array(this.totalLength_+this.encoder_.length()),t=this.blocks_,r=t.length,o=0,n=0;n<r;n++){var s=t[n];e.set(s,o),o+=s.length}return t=this.encoder_.end(),e.set(t,o),goog.asserts.assert((o+=t.length)==e.length),this.blocks_=[e],e},jspb.BinaryWriter.prototype.getResultBase64String=function(e){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),e)},jspb.BinaryWriter.prototype.beginSubMessage=function(e){this.bookmarks_.push(this.beginDelimited_(e))},jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(e,t){goog.asserts.assert(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},jspb.BinaryWriter.prototype.writeAny=function(e,t,r){var o=jspb.BinaryConstants.FieldType;switch(e){case o.DOUBLE:this.writeDouble(t,r);break;case o.FLOAT:this.writeFloat(t,r);break;case o.INT64:this.writeInt64(t,r);break;case o.UINT64:this.writeUint64(t,r);break;case o.INT32:this.writeInt32(t,r);break;case o.FIXED64:this.writeFixed64(t,r);break;case o.FIXED32:this.writeFixed32(t,r);break;case o.BOOL:this.writeBool(t,r);break;case o.STRING:this.writeString(t,r);break;case o.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case o.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case o.BYTES:this.writeBytes(t,r);break;case o.UINT32:this.writeUint32(t,r);break;case o.ENUM:this.writeEnum(t,r);break;case o.SFIXED32:this.writeSfixed32(t,r);break;case o.SFIXED64:this.writeSfixed64(t,r);break;case o.SINT32:this.writeSint32(t,r);break;case o.SINT64:this.writeSint64(t,r);break;case o.FHASH64:this.writeFixedHash64(t,r);break;case o.VHASH64:this.writeVarintHash64(t,r);break;default:goog.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(t))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(t))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(t))},jspb.BinaryWriter.prototype.writeInt32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt32String=function(e,t){null!=t&&(t=parseInt(t,10),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeInt64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeUint32=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint32String=function(e,t){null!=t&&(t=parseInt(t,10),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint64=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeUint64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSint32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},jspb.BinaryWriter.prototype.writeSint64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(e,t))},jspb.BinaryWriter.prototype.writeSintHash64=function(e,t){null!=t&&this.writeZigzagVarintHash64_(e,t)},jspb.BinaryWriter.prototype.writeSint64String=function(e,t){null!=t&&this.writeZigzagVarint64String_(e,t)},jspb.BinaryWriter.prototype.writeFixed32=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},jspb.BinaryWriter.prototype.writeFixed64=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(t))},jspb.BinaryWriter.prototype.writeFixed64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},jspb.BinaryWriter.prototype.writeSfixed64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(t))},jspb.BinaryWriter.prototype.writeSfixed64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeFloat=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},jspb.BinaryWriter.prototype.writeDouble=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},jspb.BinaryWriter.prototype.writeBool=function(e,t){null!=t&&(goog.asserts.assert("boolean"==typeof t||"number"==typeof t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},jspb.BinaryWriter.prototype.writeEnum=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeString=function(e,t){null!=t&&(e=this.beginDelimited_(e),this.encoder_.writeString(t),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeBytes=function(e,t){null!=t&&(t=jspb.utils.byteSourceToUint8Array(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t))},jspb.BinaryWriter.prototype.writeMessage=function(e,t,r){null!=t&&(e=this.beginDelimited_(e),r(t,this),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeMessageSet=function(e,t,r){null!=t&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),r(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(e,t,r){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t,this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeFixedHash64=function(e,t){null!=t&&(goog.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(t))},jspb.BinaryWriter.prototype.writeVarintHash64=function(e,t){null!=t&&(goog.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(t))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT);var o=this.encoder_;jspb.utils.toZigzag64(t,r,function(e,t){o.writeSplitVarint64(e>>>0,t>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,r,o){if(null!=t)for(var n=0;n<t.length;n++)this.writeSplitFixed64(e,r(t[n]),o(t[n]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,r,o){if(null!=t)for(var n=0;n<t.length;n++)this.writeSplitVarint64(e,r(t[n]),o(t[n]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,r,o){if(null!=t)for(var n=0;n<t.length;n++)this.writeSplitZigzagVarint64(e,r(t[n]),o(t[n]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64String_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarintHash64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFloat(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeDouble(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBool(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeEnum(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeString(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBytes(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++){var n=this.beginDelimited_(e);r(t[o],this),this.endDelimited_(n)}},jspb.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++)this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t[o],this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP)},jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixedHash64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeVarintHash64(e,t[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++)this.encoder_.writeSplitFixed64(r(t[n]),o(t[n]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++)this.encoder_.writeSplitVarint64(r(t[n]),o(t[n]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var n=this.encoder_,s=0;s<t.length;s++)jspb.utils.toZigzag64(r(t[s]),o(t[s]),function(e,t){n.writeSplitVarint64(e>>>0,t>>>0)});this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.Int64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.UInt64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t[r]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeUint64(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var r=jspb.arith.UInt64.fromString(t[e]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64String(t[e])},jspb.BinaryWriter.prototype.writePackedFloat=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},jspb.BinaryWriter.prototype.writePackedDouble=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},jspb.BinaryWriter.prototype.writePackedBool=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},jspb.BinaryWriter.prototype.writePackedEnum=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeEnum(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixedHash64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeFixedHash64(t[e])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeVarintHash64(t[r]);this.endDelimited_(e)}},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf},function(e,t,r){var o=r(0),n=o,s=Function("return this")();n.exportSymbol("proto.entities.Collection",null,s),n.exportSymbol("proto.entities.CollectionGuarantee",null,s),proto.entities.Collection=function(e){o.Message.initialize(this,e,0,-1,proto.entities.Collection.repeatedFields_,null)},n.inherits(proto.entities.Collection,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.Collection.displayName="proto.entities.Collection"),proto.entities.CollectionGuarantee=function(e){o.Message.initialize(this,e,0,-1,proto.entities.CollectionGuarantee.repeatedFields_,null)},n.inherits(proto.entities.CollectionGuarantee,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.CollectionGuarantee.displayName="proto.entities.CollectionGuarantee"),proto.entities.Collection.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.entities.Collection.prototype.toObject=function(e){return proto.entities.Collection.toObject(e,this)},proto.entities.Collection.toObject=function(e,t){var r={id:t.getId_asB64(),transactionIdsList:t.getTransactionIdsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.Collection.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.Collection;return proto.entities.Collection.deserializeBinaryFromReader(r,t)},proto.entities.Collection.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;case 2:r=t.readBytes(),e.addTransactionIds(r);break;default:t.skipField()}return e},proto.entities.Collection.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.Collection.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.Collection.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getTransactionIdsList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},proto.entities.Collection.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.Collection.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.entities.Collection.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.entities.Collection.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.Collection.prototype.getTransactionIdsList=function(){return o.Message.getRepeatedField(this,2)},proto.entities.Collection.prototype.getTransactionIdsList_asB64=function(){return o.Message.bytesListAsB64(this.getTransactionIdsList())},proto.entities.Collection.prototype.getTransactionIdsList_asU8=function(){return o.Message.bytesListAsU8(this.getTransactionIdsList())},proto.entities.Collection.prototype.setTransactionIdsList=function(e){return o.Message.setField(this,2,e||[])},proto.entities.Collection.prototype.addTransactionIds=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.entities.Collection.prototype.clearTransactionIdsList=function(){return this.setTransactionIdsList([])},proto.entities.CollectionGuarantee.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.entities.CollectionGuarantee.prototype.toObject=function(e){return proto.entities.CollectionGuarantee.toObject(e,this)},proto.entities.CollectionGuarantee.toObject=function(e,t){var r={collectionId:t.getCollectionId_asB64(),signaturesList:t.getSignaturesList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.CollectionGuarantee.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.CollectionGuarantee;return proto.entities.CollectionGuarantee.deserializeBinaryFromReader(r,t)},proto.entities.CollectionGuarantee.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setCollectionId(r);break;case 2:r=t.readBytes(),e.addSignatures(r);break;default:t.skipField()}return e},proto.entities.CollectionGuarantee.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.CollectionGuarantee.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.CollectionGuarantee.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCollectionId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getSignaturesList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},proto.entities.CollectionGuarantee.prototype.getCollectionId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.CollectionGuarantee.prototype.getCollectionId_asB64=function(){return o.Message.bytesAsB64(this.getCollectionId())},proto.entities.CollectionGuarantee.prototype.getCollectionId_asU8=function(){return o.Message.bytesAsU8(this.getCollectionId())},proto.entities.CollectionGuarantee.prototype.setCollectionId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.CollectionGuarantee.prototype.getSignaturesList=function(){return o.Message.getRepeatedField(this,2)},proto.entities.CollectionGuarantee.prototype.getSignaturesList_asB64=function(){return o.Message.bytesListAsB64(this.getSignaturesList())},proto.entities.CollectionGuarantee.prototype.getSignaturesList_asU8=function(){return o.Message.bytesListAsU8(this.getSignaturesList())},proto.entities.CollectionGuarantee.prototype.setSignaturesList=function(e){return o.Message.setField(this,2,e||[])},proto.entities.CollectionGuarantee.prototype.addSignatures=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.entities.CollectionGuarantee.prototype.clearSignaturesList=function(){return this.setSignaturesList([])},n.object.extend(t,proto.entities)},function(e,t,r){var o=r(0),n=o,s=Function("return this")();n.exportSymbol("proto.entities.Account",null,s),n.exportSymbol("proto.entities.AccountKey",null,s),proto.entities.Account=function(e){o.Message.initialize(this,e,0,-1,proto.entities.Account.repeatedFields_,null)},n.inherits(proto.entities.Account,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.Account.displayName="proto.entities.Account"),proto.entities.AccountKey=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.entities.AccountKey,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.AccountKey.displayName="proto.entities.AccountKey"),proto.entities.Account.repeatedFields_=[4],o.Message.GENERATE_TO_OBJECT&&(proto.entities.Account.prototype.toObject=function(e){return proto.entities.Account.toObject(e,this)},proto.entities.Account.toObject=function(e,t){var r={address:t.getAddress_asB64(),balance:o.Message.getFieldWithDefault(t,2,0),code:t.getCode_asB64(),keysList:o.Message.toObjectList(t.getKeysList(),proto.entities.AccountKey.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.Account.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.Account;return proto.entities.Account.deserializeBinaryFromReader(r,t)},proto.entities.Account.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setAddress(r);break;case 2:r=t.readUint64(),e.setBalance(r);break;case 3:r=t.readBytes(),e.setCode(r);break;case 4:r=new proto.entities.AccountKey,t.readMessage(r,proto.entities.AccountKey.deserializeBinaryFromReader),e.addKeys(r);break;default:t.skipField()}return e},proto.entities.Account.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.Account.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.Account.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAddress_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getBalance())&&t.writeUint64(2,r),(r=e.getCode_asU8()).length>0&&t.writeBytes(3,r),(r=e.getKeysList()).length>0&&t.writeRepeatedMessage(4,r,proto.entities.AccountKey.serializeBinaryToWriter)},proto.entities.Account.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.Account.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.entities.Account.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.entities.Account.prototype.setAddress=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.Account.prototype.getBalance=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.entities.Account.prototype.setBalance=function(e){return o.Message.setProto3IntField(this,2,e)},proto.entities.Account.prototype.getCode=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.entities.Account.prototype.getCode_asB64=function(){return o.Message.bytesAsB64(this.getCode())},proto.entities.Account.prototype.getCode_asU8=function(){return o.Message.bytesAsU8(this.getCode())},proto.entities.Account.prototype.setCode=function(e){return o.Message.setProto3BytesField(this,3,e)},proto.entities.Account.prototype.getKeysList=function(){return o.Message.getRepeatedWrapperField(this,proto.entities.AccountKey,4)},proto.entities.Account.prototype.setKeysList=function(e){return o.Message.setRepeatedWrapperField(this,4,e)},proto.entities.Account.prototype.addKeys=function(e,t){return o.Message.addToRepeatedWrapperField(this,4,e,proto.entities.AccountKey,t)},proto.entities.Account.prototype.clearKeysList=function(){return this.setKeysList([])},o.Message.GENERATE_TO_OBJECT&&(proto.entities.AccountKey.prototype.toObject=function(e){return proto.entities.AccountKey.toObject(e,this)},proto.entities.AccountKey.toObject=function(e,t){var r={index:o.Message.getFieldWithDefault(t,1,0),publicKey:t.getPublicKey_asB64(),signAlgo:o.Message.getFieldWithDefault(t,3,0),hashAlgo:o.Message.getFieldWithDefault(t,4,0),weight:o.Message.getFieldWithDefault(t,5,0),sequenceNumber:o.Message.getFieldWithDefault(t,6,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.AccountKey.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.AccountKey;return proto.entities.AccountKey.deserializeBinaryFromReader(r,t)},proto.entities.AccountKey.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setIndex(r);break;case 2:r=t.readBytes(),e.setPublicKey(r);break;case 3:r=t.readUint32(),e.setSignAlgo(r);break;case 4:r=t.readUint32(),e.setHashAlgo(r);break;case 5:r=t.readUint32(),e.setWeight(r);break;case 6:r=t.readUint32(),e.setSequenceNumber(r);break;default:t.skipField()}return e},proto.entities.AccountKey.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.AccountKey.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.AccountKey.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getIndex())&&t.writeUint32(1,r),(r=e.getPublicKey_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getSignAlgo())&&t.writeUint32(3,r),0!==(r=e.getHashAlgo())&&t.writeUint32(4,r),0!==(r=e.getWeight())&&t.writeUint32(5,r),0!==(r=e.getSequenceNumber())&&t.writeUint32(6,r)},proto.entities.AccountKey.prototype.getIndex=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.entities.AccountKey.prototype.setIndex=function(e){return o.Message.setProto3IntField(this,1,e)},proto.entities.AccountKey.prototype.getPublicKey=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.entities.AccountKey.prototype.getPublicKey_asB64=function(){return o.Message.bytesAsB64(this.getPublicKey())},proto.entities.AccountKey.prototype.getPublicKey_asU8=function(){return o.Message.bytesAsU8(this.getPublicKey())},proto.entities.AccountKey.prototype.setPublicKey=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.entities.AccountKey.prototype.getSignAlgo=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.entities.AccountKey.prototype.setSignAlgo=function(e){return o.Message.setProto3IntField(this,3,e)},proto.entities.AccountKey.prototype.getHashAlgo=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.entities.AccountKey.prototype.setHashAlgo=function(e){return o.Message.setProto3IntField(this,4,e)},proto.entities.AccountKey.prototype.getWeight=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.entities.AccountKey.prototype.setWeight=function(e){return o.Message.setProto3IntField(this,5,e)},proto.entities.AccountKey.prototype.getSequenceNumber=function(){return o.Message.getFieldWithDefault(this,6,0)},proto.entities.AccountKey.prototype.setSequenceNumber=function(e){return o.Message.setProto3IntField(this,6,e)},n.object.extend(t,proto.entities)},function(e,t,r){var o=r(0),n=o,s=Function("return this")();n.exportSymbol("proto.entities.Event",null,s),proto.entities.Event=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.entities.Event,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.Event.displayName="proto.entities.Event"),o.Message.GENERATE_TO_OBJECT&&(proto.entities.Event.prototype.toObject=function(e){return proto.entities.Event.toObject(e,this)},proto.entities.Event.toObject=function(e,t){var r={type:o.Message.getFieldWithDefault(t,1,""),transactionId:t.getTransactionId_asB64(),transactionIndex:o.Message.getFieldWithDefault(t,3,0),eventIndex:o.Message.getFieldWithDefault(t,4,0),payload:t.getPayload_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.Event.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.Event;return proto.entities.Event.deserializeBinaryFromReader(r,t)},proto.entities.Event.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setType(r);break;case 2:r=t.readBytes(),e.setTransactionId(r);break;case 3:r=t.readUint32(),e.setTransactionIndex(r);break;case 4:r=t.readUint32(),e.setEventIndex(r);break;case 5:r=t.readBytes(),e.setPayload(r);break;default:t.skipField()}return e},proto.entities.Event.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.Event.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.Event.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getType()).length>0&&t.writeString(1,r),(r=e.getTransactionId_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getTransactionIndex())&&t.writeUint32(3,r),0!==(r=e.getEventIndex())&&t.writeUint32(4,r),(r=e.getPayload_asU8()).length>0&&t.writeBytes(5,r)},proto.entities.Event.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.Event.prototype.setType=function(e){return o.Message.setProto3StringField(this,1,e)},proto.entities.Event.prototype.getTransactionId=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.entities.Event.prototype.getTransactionId_asB64=function(){return o.Message.bytesAsB64(this.getTransactionId())},proto.entities.Event.prototype.getTransactionId_asU8=function(){return o.Message.bytesAsU8(this.getTransactionId())},proto.entities.Event.prototype.setTransactionId=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.entities.Event.prototype.getTransactionIndex=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.entities.Event.prototype.setTransactionIndex=function(e){return o.Message.setProto3IntField(this,3,e)},proto.entities.Event.prototype.getEventIndex=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.entities.Event.prototype.setEventIndex=function(e){return o.Message.setProto3IntField(this,4,e)},proto.entities.Event.prototype.getPayload=function(){return o.Message.getFieldWithDefault(this,5,"")},proto.entities.Event.prototype.getPayload_asB64=function(){return o.Message.bytesAsB64(this.getPayload())},proto.entities.Event.prototype.getPayload_asU8=function(){return o.Message.bytesAsU8(this.getPayload())},proto.entities.Event.prototype.setPayload=function(e){return o.Message.setProto3BytesField(this,5,e)},n.object.extend(t,proto.entities)},function(e,t,r){var o=r(0),n=o,s=Function("return this")(),i=r(5);n.object.extend(proto,i);var a=r(6);n.object.extend(proto,a);var g=r(1);n.object.extend(proto,g);var c=r(8);n.object.extend(proto,c);var u=r(2);n.object.extend(proto,u);var l=r(3);n.object.extend(proto,l),n.exportSymbol("proto.access.BlockHeaderResponse",null,s),n.exportSymbol("proto.access.BlockResponse",null,s),n.exportSymbol("proto.access.CollectionResponse",null,s),n.exportSymbol("proto.access.EventsResponse",null,s),n.exportSymbol("proto.access.EventsResponse.Result",null,s),n.exportSymbol("proto.access.ExecuteScriptAtBlockHeightRequest",null,s),n.exportSymbol("proto.access.ExecuteScriptAtBlockIDRequest",null,s),n.exportSymbol("proto.access.ExecuteScriptAtLatestBlockRequest",null,s),n.exportSymbol("proto.access.ExecuteScriptResponse",null,s),n.exportSymbol("proto.access.GetAccountRequest",null,s),n.exportSymbol("proto.access.GetAccountResponse",null,s),n.exportSymbol("proto.access.GetBlockByHeightRequest",null,s),n.exportSymbol("proto.access.GetBlockByIDRequest",null,s),n.exportSymbol("proto.access.GetBlockHeaderByHeightRequest",null,s),n.exportSymbol("proto.access.GetBlockHeaderByIDRequest",null,s),n.exportSymbol("proto.access.GetCollectionByIDRequest",null,s),n.exportSymbol("proto.access.GetEventsForBlockIDsRequest",null,s),n.exportSymbol("proto.access.GetEventsForHeightRangeRequest",null,s),n.exportSymbol("proto.access.GetLatestBlockHeaderRequest",null,s),n.exportSymbol("proto.access.GetLatestBlockRequest",null,s),n.exportSymbol("proto.access.GetTransactionRequest",null,s),n.exportSymbol("proto.access.PingRequest",null,s),n.exportSymbol("proto.access.PingResponse",null,s),n.exportSymbol("proto.access.SendTransactionRequest",null,s),n.exportSymbol("proto.access.SendTransactionResponse",null,s),n.exportSymbol("proto.access.TransactionResponse",null,s),n.exportSymbol("proto.access.TransactionResultResponse",null,s),proto.access.PingRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.PingRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.PingRequest.displayName="proto.access.PingRequest"),proto.access.PingResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.PingResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.PingResponse.displayName="proto.access.PingResponse"),proto.access.GetLatestBlockHeaderRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetLatestBlockHeaderRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetLatestBlockHeaderRequest.displayName="proto.access.GetLatestBlockHeaderRequest"),proto.access.GetBlockHeaderByIDRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetBlockHeaderByIDRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetBlockHeaderByIDRequest.displayName="proto.access.GetBlockHeaderByIDRequest"),proto.access.GetBlockHeaderByHeightRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetBlockHeaderByHeightRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetBlockHeaderByHeightRequest.displayName="proto.access.GetBlockHeaderByHeightRequest"),proto.access.BlockHeaderResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.BlockHeaderResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.BlockHeaderResponse.displayName="proto.access.BlockHeaderResponse"),proto.access.GetLatestBlockRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetLatestBlockRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetLatestBlockRequest.displayName="proto.access.GetLatestBlockRequest"),proto.access.GetBlockByIDRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetBlockByIDRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetBlockByIDRequest.displayName="proto.access.GetBlockByIDRequest"),proto.access.GetBlockByHeightRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetBlockByHeightRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetBlockByHeightRequest.displayName="proto.access.GetBlockByHeightRequest"),proto.access.BlockResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.BlockResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.BlockResponse.displayName="proto.access.BlockResponse"),proto.access.GetCollectionByIDRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetCollectionByIDRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetCollectionByIDRequest.displayName="proto.access.GetCollectionByIDRequest"),proto.access.CollectionResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.CollectionResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.CollectionResponse.displayName="proto.access.CollectionResponse"),proto.access.SendTransactionRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.SendTransactionRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.SendTransactionRequest.displayName="proto.access.SendTransactionRequest"),proto.access.SendTransactionResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.SendTransactionResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.SendTransactionResponse.displayName="proto.access.SendTransactionResponse"),proto.access.GetTransactionRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetTransactionRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetTransactionRequest.displayName="proto.access.GetTransactionRequest"),proto.access.TransactionResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.TransactionResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.TransactionResponse.displayName="proto.access.TransactionResponse"),proto.access.TransactionResultResponse=function(e){o.Message.initialize(this,e,0,-1,proto.access.TransactionResultResponse.repeatedFields_,null)},n.inherits(proto.access.TransactionResultResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.TransactionResultResponse.displayName="proto.access.TransactionResultResponse"),proto.access.GetAccountRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetAccountRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetAccountRequest.displayName="proto.access.GetAccountRequest"),proto.access.GetAccountResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetAccountResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetAccountResponse.displayName="proto.access.GetAccountResponse"),proto.access.ExecuteScriptAtLatestBlockRequest=function(e){o.Message.initialize(this,e,0,-1,proto.access.ExecuteScriptAtLatestBlockRequest.repeatedFields_,null)},n.inherits(proto.access.ExecuteScriptAtLatestBlockRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.ExecuteScriptAtLatestBlockRequest.displayName="proto.access.ExecuteScriptAtLatestBlockRequest"),proto.access.ExecuteScriptAtBlockIDRequest=function(e){o.Message.initialize(this,e,0,-1,proto.access.ExecuteScriptAtBlockIDRequest.repeatedFields_,null)},n.inherits(proto.access.ExecuteScriptAtBlockIDRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.ExecuteScriptAtBlockIDRequest.displayName="proto.access.ExecuteScriptAtBlockIDRequest"),proto.access.ExecuteScriptAtBlockHeightRequest=function(e){o.Message.initialize(this,e,0,-1,proto.access.ExecuteScriptAtBlockHeightRequest.repeatedFields_,null)},n.inherits(proto.access.ExecuteScriptAtBlockHeightRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.ExecuteScriptAtBlockHeightRequest.displayName="proto.access.ExecuteScriptAtBlockHeightRequest"),proto.access.ExecuteScriptResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.ExecuteScriptResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.ExecuteScriptResponse.displayName="proto.access.ExecuteScriptResponse"),proto.access.GetEventsForHeightRangeRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.access.GetEventsForHeightRangeRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetEventsForHeightRangeRequest.displayName="proto.access.GetEventsForHeightRangeRequest"),proto.access.GetEventsForBlockIDsRequest=function(e){o.Message.initialize(this,e,0,-1,proto.access.GetEventsForBlockIDsRequest.repeatedFields_,null)},n.inherits(proto.access.GetEventsForBlockIDsRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.access.GetEventsForBlockIDsRequest.displayName="proto.access.GetEventsForBlockIDsRequest"),proto.access.EventsResponse=function(e){o.Message.initialize(this,e,0,-1,proto.access.EventsResponse.repeatedFields_,null)},n.inherits(proto.access.EventsResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.access.EventsResponse.displayName="proto.access.EventsResponse"),proto.access.EventsResponse.Result=function(e){o.Message.initialize(this,e,0,-1,proto.access.EventsResponse.Result.repeatedFields_,null)},n.inherits(proto.access.EventsResponse.Result,o.Message),n.DEBUG&&!COMPILED&&(proto.access.EventsResponse.Result.displayName="proto.access.EventsResponse.Result"),o.Message.GENERATE_TO_OBJECT&&(proto.access.PingRequest.prototype.toObject=function(e){return proto.access.PingRequest.toObject(e,this)},proto.access.PingRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.access.PingRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.PingRequest;return proto.access.PingRequest.deserializeBinaryFromReader(r,t)},proto.access.PingRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.access.PingRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.PingRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.PingRequest.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.access.PingResponse.prototype.toObject=function(e){return proto.access.PingResponse.toObject(e,this)},proto.access.PingResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.access.PingResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.PingResponse;return proto.access.PingResponse.deserializeBinaryFromReader(r,t)},proto.access.PingResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.access.PingResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.PingResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.PingResponse.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetLatestBlockHeaderRequest.prototype.toObject=function(e){return proto.access.GetLatestBlockHeaderRequest.toObject(e,this)},proto.access.GetLatestBlockHeaderRequest.toObject=function(e,t){var r={isSealed:o.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetLatestBlockHeaderRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetLatestBlockHeaderRequest;return proto.access.GetLatestBlockHeaderRequest.deserializeBinaryFromReader(r,t)},proto.access.GetLatestBlockHeaderRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setIsSealed(r);break;default:t.skipField()}return e},proto.access.GetLatestBlockHeaderRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetLatestBlockHeaderRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetLatestBlockHeaderRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getIsSealed())&&t.writeBool(1,r)},proto.access.GetLatestBlockHeaderRequest.prototype.getIsSealed=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.access.GetLatestBlockHeaderRequest.prototype.setIsSealed=function(e){return o.Message.setProto3BooleanField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetBlockHeaderByIDRequest.prototype.toObject=function(e){return proto.access.GetBlockHeaderByIDRequest.toObject(e,this)},proto.access.GetBlockHeaderByIDRequest.toObject=function(e,t){var r={id:t.getId_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetBlockHeaderByIDRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetBlockHeaderByIDRequest;return proto.access.GetBlockHeaderByIDRequest.deserializeBinaryFromReader(r,t)},proto.access.GetBlockHeaderByIDRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;default:t.skipField()}return e},proto.access.GetBlockHeaderByIDRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetBlockHeaderByIDRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetBlockHeaderByIDRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r)},proto.access.GetBlockHeaderByIDRequest.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.GetBlockHeaderByIDRequest.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.access.GetBlockHeaderByIDRequest.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.access.GetBlockHeaderByIDRequest.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetBlockHeaderByHeightRequest.prototype.toObject=function(e){return proto.access.GetBlockHeaderByHeightRequest.toObject(e,this)},proto.access.GetBlockHeaderByHeightRequest.toObject=function(e,t){var r={height:o.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetBlockHeaderByHeightRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetBlockHeaderByHeightRequest;return proto.access.GetBlockHeaderByHeightRequest.deserializeBinaryFromReader(r,t)},proto.access.GetBlockHeaderByHeightRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setHeight(r);break;default:t.skipField()}return e},proto.access.GetBlockHeaderByHeightRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetBlockHeaderByHeightRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetBlockHeaderByHeightRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getHeight())&&t.writeUint64(1,r)},proto.access.GetBlockHeaderByHeightRequest.prototype.getHeight=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.access.GetBlockHeaderByHeightRequest.prototype.setHeight=function(e){return o.Message.setProto3IntField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.BlockHeaderResponse.prototype.toObject=function(e){return proto.access.BlockHeaderResponse.toObject(e,this)},proto.access.BlockHeaderResponse.toObject=function(e,t){var r,o={block:(r=t.getBlock())&&i.BlockHeader.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.access.BlockHeaderResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.BlockHeaderResponse;return proto.access.BlockHeaderResponse.deserializeBinaryFromReader(r,t)},proto.access.BlockHeaderResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new i.BlockHeader;t.readMessage(r,i.BlockHeader.deserializeBinaryFromReader),e.setBlock(r);break;default:t.skipField()}return e},proto.access.BlockHeaderResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.BlockHeaderResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.BlockHeaderResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getBlock())&&t.writeMessage(1,r,i.BlockHeader.serializeBinaryToWriter)},proto.access.BlockHeaderResponse.prototype.getBlock=function(){return o.Message.getWrapperField(this,i.BlockHeader,1)},proto.access.BlockHeaderResponse.prototype.setBlock=function(e){return o.Message.setWrapperField(this,1,e)},proto.access.BlockHeaderResponse.prototype.clearBlock=function(){return this.setBlock(void 0)},proto.access.BlockHeaderResponse.prototype.hasBlock=function(){return null!=o.Message.getField(this,1)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetLatestBlockRequest.prototype.toObject=function(e){return proto.access.GetLatestBlockRequest.toObject(e,this)},proto.access.GetLatestBlockRequest.toObject=function(e,t){var r={isSealed:o.Message.getBooleanFieldWithDefault(t,1,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetLatestBlockRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetLatestBlockRequest;return proto.access.GetLatestBlockRequest.deserializeBinaryFromReader(r,t)},proto.access.GetLatestBlockRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBool();e.setIsSealed(r);break;default:t.skipField()}return e},proto.access.GetLatestBlockRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetLatestBlockRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetLatestBlockRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getIsSealed())&&t.writeBool(1,r)},proto.access.GetLatestBlockRequest.prototype.getIsSealed=function(){return o.Message.getBooleanFieldWithDefault(this,1,!1)},proto.access.GetLatestBlockRequest.prototype.setIsSealed=function(e){return o.Message.setProto3BooleanField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetBlockByIDRequest.prototype.toObject=function(e){return proto.access.GetBlockByIDRequest.toObject(e,this)},proto.access.GetBlockByIDRequest.toObject=function(e,t){var r={id:t.getId_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetBlockByIDRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetBlockByIDRequest;return proto.access.GetBlockByIDRequest.deserializeBinaryFromReader(r,t)},proto.access.GetBlockByIDRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;default:t.skipField()}return e},proto.access.GetBlockByIDRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetBlockByIDRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetBlockByIDRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r)},proto.access.GetBlockByIDRequest.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.GetBlockByIDRequest.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.access.GetBlockByIDRequest.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.access.GetBlockByIDRequest.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetBlockByHeightRequest.prototype.toObject=function(e){return proto.access.GetBlockByHeightRequest.toObject(e,this)},proto.access.GetBlockByHeightRequest.toObject=function(e,t){var r={height:o.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetBlockByHeightRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetBlockByHeightRequest;return proto.access.GetBlockByHeightRequest.deserializeBinaryFromReader(r,t)},proto.access.GetBlockByHeightRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setHeight(r);break;default:t.skipField()}return e},proto.access.GetBlockByHeightRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetBlockByHeightRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetBlockByHeightRequest.serializeBinaryToWriter=function(e,t){var r;0!==(r=e.getHeight())&&t.writeUint64(1,r)},proto.access.GetBlockByHeightRequest.prototype.getHeight=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.access.GetBlockByHeightRequest.prototype.setHeight=function(e){return o.Message.setProto3IntField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.BlockResponse.prototype.toObject=function(e){return proto.access.BlockResponse.toObject(e,this)},proto.access.BlockResponse.toObject=function(e,t){var r,o={block:(r=t.getBlock())&&a.Block.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.access.BlockResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.BlockResponse;return proto.access.BlockResponse.deserializeBinaryFromReader(r,t)},proto.access.BlockResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new a.Block;t.readMessage(r,a.Block.deserializeBinaryFromReader),e.setBlock(r);break;default:t.skipField()}return e},proto.access.BlockResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.BlockResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.BlockResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getBlock())&&t.writeMessage(1,r,a.Block.serializeBinaryToWriter)},proto.access.BlockResponse.prototype.getBlock=function(){return o.Message.getWrapperField(this,a.Block,1)},proto.access.BlockResponse.prototype.setBlock=function(e){return o.Message.setWrapperField(this,1,e)},proto.access.BlockResponse.prototype.clearBlock=function(){return this.setBlock(void 0)},proto.access.BlockResponse.prototype.hasBlock=function(){return null!=o.Message.getField(this,1)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetCollectionByIDRequest.prototype.toObject=function(e){return proto.access.GetCollectionByIDRequest.toObject(e,this)},proto.access.GetCollectionByIDRequest.toObject=function(e,t){var r={id:t.getId_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetCollectionByIDRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetCollectionByIDRequest;return proto.access.GetCollectionByIDRequest.deserializeBinaryFromReader(r,t)},proto.access.GetCollectionByIDRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;default:t.skipField()}return e},proto.access.GetCollectionByIDRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetCollectionByIDRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetCollectionByIDRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r)},proto.access.GetCollectionByIDRequest.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.GetCollectionByIDRequest.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.access.GetCollectionByIDRequest.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.access.GetCollectionByIDRequest.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.CollectionResponse.prototype.toObject=function(e){return proto.access.CollectionResponse.toObject(e,this)},proto.access.CollectionResponse.toObject=function(e,t){var r,o={collection:(r=t.getCollection())&&g.Collection.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.access.CollectionResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.CollectionResponse;return proto.access.CollectionResponse.deserializeBinaryFromReader(r,t)},proto.access.CollectionResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new g.Collection;t.readMessage(r,g.Collection.deserializeBinaryFromReader),e.setCollection(r);break;default:t.skipField()}return e},proto.access.CollectionResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.CollectionResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.CollectionResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getCollection())&&t.writeMessage(1,r,g.Collection.serializeBinaryToWriter)},proto.access.CollectionResponse.prototype.getCollection=function(){return o.Message.getWrapperField(this,g.Collection,1)},proto.access.CollectionResponse.prototype.setCollection=function(e){return o.Message.setWrapperField(this,1,e)},proto.access.CollectionResponse.prototype.clearCollection=function(){return this.setCollection(void 0)},proto.access.CollectionResponse.prototype.hasCollection=function(){return null!=o.Message.getField(this,1)},o.Message.GENERATE_TO_OBJECT&&(proto.access.SendTransactionRequest.prototype.toObject=function(e){return proto.access.SendTransactionRequest.toObject(e,this)},proto.access.SendTransactionRequest.toObject=function(e,t){var r,o={transaction:(r=t.getTransaction())&&c.Transaction.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.access.SendTransactionRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.SendTransactionRequest;return proto.access.SendTransactionRequest.deserializeBinaryFromReader(r,t)},proto.access.SendTransactionRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new c.Transaction;t.readMessage(r,c.Transaction.deserializeBinaryFromReader),e.setTransaction(r);break;default:t.skipField()}return e},proto.access.SendTransactionRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.SendTransactionRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.SendTransactionRequest.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getTransaction())&&t.writeMessage(1,r,c.Transaction.serializeBinaryToWriter)},proto.access.SendTransactionRequest.prototype.getTransaction=function(){return o.Message.getWrapperField(this,c.Transaction,1)},proto.access.SendTransactionRequest.prototype.setTransaction=function(e){return o.Message.setWrapperField(this,1,e)},proto.access.SendTransactionRequest.prototype.clearTransaction=function(){return this.setTransaction(void 0)},proto.access.SendTransactionRequest.prototype.hasTransaction=function(){return null!=o.Message.getField(this,1)},o.Message.GENERATE_TO_OBJECT&&(proto.access.SendTransactionResponse.prototype.toObject=function(e){return proto.access.SendTransactionResponse.toObject(e,this)},proto.access.SendTransactionResponse.toObject=function(e,t){var r={id:t.getId_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.SendTransactionResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.SendTransactionResponse;return proto.access.SendTransactionResponse.deserializeBinaryFromReader(r,t)},proto.access.SendTransactionResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;default:t.skipField()}return e},proto.access.SendTransactionResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.SendTransactionResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.SendTransactionResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r)},proto.access.SendTransactionResponse.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.SendTransactionResponse.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.access.SendTransactionResponse.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.access.SendTransactionResponse.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetTransactionRequest.prototype.toObject=function(e){return proto.access.GetTransactionRequest.toObject(e,this)},proto.access.GetTransactionRequest.toObject=function(e,t){var r={id:t.getId_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetTransactionRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetTransactionRequest;return proto.access.GetTransactionRequest.deserializeBinaryFromReader(r,t)},proto.access.GetTransactionRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;default:t.skipField()}return e},proto.access.GetTransactionRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetTransactionRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetTransactionRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r)},proto.access.GetTransactionRequest.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.GetTransactionRequest.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.access.GetTransactionRequest.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.access.GetTransactionRequest.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.TransactionResponse.prototype.toObject=function(e){return proto.access.TransactionResponse.toObject(e,this)},proto.access.TransactionResponse.toObject=function(e,t){var r,o={transaction:(r=t.getTransaction())&&c.Transaction.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.access.TransactionResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.TransactionResponse;return proto.access.TransactionResponse.deserializeBinaryFromReader(r,t)},proto.access.TransactionResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new c.Transaction;t.readMessage(r,c.Transaction.deserializeBinaryFromReader),e.setTransaction(r);break;default:t.skipField()}return e},proto.access.TransactionResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.TransactionResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.TransactionResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getTransaction())&&t.writeMessage(1,r,c.Transaction.serializeBinaryToWriter)},proto.access.TransactionResponse.prototype.getTransaction=function(){return o.Message.getWrapperField(this,c.Transaction,1)},proto.access.TransactionResponse.prototype.setTransaction=function(e){return o.Message.setWrapperField(this,1,e)},proto.access.TransactionResponse.prototype.clearTransaction=function(){return this.setTransaction(void 0)},proto.access.TransactionResponse.prototype.hasTransaction=function(){return null!=o.Message.getField(this,1)},proto.access.TransactionResultResponse.repeatedFields_=[4],o.Message.GENERATE_TO_OBJECT&&(proto.access.TransactionResultResponse.prototype.toObject=function(e){return proto.access.TransactionResultResponse.toObject(e,this)},proto.access.TransactionResultResponse.toObject=function(e,t){var r={status:o.Message.getFieldWithDefault(t,1,0),statusCode:o.Message.getFieldWithDefault(t,2,0),errorMessage:o.Message.getFieldWithDefault(t,3,""),eventsList:o.Message.toObjectList(t.getEventsList(),l.Event.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.TransactionResultResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.TransactionResultResponse;return proto.access.TransactionResultResponse.deserializeBinaryFromReader(r,t)},proto.access.TransactionResultResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setStatus(r);break;case 2:r=t.readUint32(),e.setStatusCode(r);break;case 3:r=t.readString(),e.setErrorMessage(r);break;case 4:r=new l.Event,t.readMessage(r,l.Event.deserializeBinaryFromReader),e.addEvents(r);break;default:t.skipField()}return e},proto.access.TransactionResultResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.TransactionResultResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.TransactionResultResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStatus())&&t.writeEnum(1,r),0!==(r=e.getStatusCode())&&t.writeUint32(2,r),(r=e.getErrorMessage()).length>0&&t.writeString(3,r),(r=e.getEventsList()).length>0&&t.writeRepeatedMessage(4,r,l.Event.serializeBinaryToWriter)},proto.access.TransactionResultResponse.prototype.getStatus=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.access.TransactionResultResponse.prototype.setStatus=function(e){return o.Message.setProto3EnumField(this,1,e)},proto.access.TransactionResultResponse.prototype.getStatusCode=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.access.TransactionResultResponse.prototype.setStatusCode=function(e){return o.Message.setProto3IntField(this,2,e)},proto.access.TransactionResultResponse.prototype.getErrorMessage=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.access.TransactionResultResponse.prototype.setErrorMessage=function(e){return o.Message.setProto3StringField(this,3,e)},proto.access.TransactionResultResponse.prototype.getEventsList=function(){return o.Message.getRepeatedWrapperField(this,l.Event,4)},proto.access.TransactionResultResponse.prototype.setEventsList=function(e){return o.Message.setRepeatedWrapperField(this,4,e)},proto.access.TransactionResultResponse.prototype.addEvents=function(e,t){return o.Message.addToRepeatedWrapperField(this,4,e,proto.entities.Event,t)},proto.access.TransactionResultResponse.prototype.clearEventsList=function(){return this.setEventsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetAccountRequest.prototype.toObject=function(e){return proto.access.GetAccountRequest.toObject(e,this)},proto.access.GetAccountRequest.toObject=function(e,t){var r={address:t.getAddress_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetAccountRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetAccountRequest;return proto.access.GetAccountRequest.deserializeBinaryFromReader(r,t)},proto.access.GetAccountRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setAddress(r);break;default:t.skipField()}return e},proto.access.GetAccountRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetAccountRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetAccountRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getAddress_asU8()).length>0&&t.writeBytes(1,r)},proto.access.GetAccountRequest.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.GetAccountRequest.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.access.GetAccountRequest.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.access.GetAccountRequest.prototype.setAddress=function(e){return o.Message.setProto3BytesField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetAccountResponse.prototype.toObject=function(e){return proto.access.GetAccountResponse.toObject(e,this)},proto.access.GetAccountResponse.toObject=function(e,t){var r,o={account:(r=t.getAccount())&&u.Account.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.access.GetAccountResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetAccountResponse;return proto.access.GetAccountResponse.deserializeBinaryFromReader(r,t)},proto.access.GetAccountResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new u.Account;t.readMessage(r,u.Account.deserializeBinaryFromReader),e.setAccount(r);break;default:t.skipField()}return e},proto.access.GetAccountResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetAccountResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetAccountResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getAccount())&&t.writeMessage(1,r,u.Account.serializeBinaryToWriter)},proto.access.GetAccountResponse.prototype.getAccount=function(){return o.Message.getWrapperField(this,u.Account,1)},proto.access.GetAccountResponse.prototype.setAccount=function(e){return o.Message.setWrapperField(this,1,e)},proto.access.GetAccountResponse.prototype.clearAccount=function(){return this.setAccount(void 0)},proto.access.GetAccountResponse.prototype.hasAccount=function(){return null!=o.Message.getField(this,1)},proto.access.ExecuteScriptAtLatestBlockRequest.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.access.ExecuteScriptAtLatestBlockRequest.prototype.toObject=function(e){return proto.access.ExecuteScriptAtLatestBlockRequest.toObject(e,this)},proto.access.ExecuteScriptAtLatestBlockRequest.toObject=function(e,t){var r={script:t.getScript_asB64(),argumentsList:t.getArgumentsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.ExecuteScriptAtLatestBlockRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.ExecuteScriptAtLatestBlockRequest;return proto.access.ExecuteScriptAtLatestBlockRequest.deserializeBinaryFromReader(r,t)},proto.access.ExecuteScriptAtLatestBlockRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setScript(r);break;case 2:r=t.readBytes(),e.addArguments(r);break;default:t.skipField()}return e},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.ExecuteScriptAtLatestBlockRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.ExecuteScriptAtLatestBlockRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getScript_asU8()).length>0&&t.writeBytes(1,r),(r=e.getArgumentsList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.getScript=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.getScript_asB64=function(){return o.Message.bytesAsB64(this.getScript())},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.getScript_asU8=function(){return o.Message.bytesAsU8(this.getScript())},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.setScript=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.getArgumentsList=function(){return o.Message.getRepeatedField(this,2)},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.getArgumentsList_asB64=function(){return o.Message.bytesListAsB64(this.getArgumentsList())},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.getArgumentsList_asU8=function(){return o.Message.bytesListAsU8(this.getArgumentsList())},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.setArgumentsList=function(e){return o.Message.setField(this,2,e||[])},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.addArguments=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.access.ExecuteScriptAtLatestBlockRequest.prototype.clearArgumentsList=function(){return this.setArgumentsList([])},proto.access.ExecuteScriptAtBlockIDRequest.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.access.ExecuteScriptAtBlockIDRequest.prototype.toObject=function(e){return proto.access.ExecuteScriptAtBlockIDRequest.toObject(e,this)},proto.access.ExecuteScriptAtBlockIDRequest.toObject=function(e,t){var r={blockId:t.getBlockId_asB64(),script:t.getScript_asB64(),argumentsList:t.getArgumentsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.ExecuteScriptAtBlockIDRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.ExecuteScriptAtBlockIDRequest;return proto.access.ExecuteScriptAtBlockIDRequest.deserializeBinaryFromReader(r,t)},proto.access.ExecuteScriptAtBlockIDRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockId(r);break;case 2:r=t.readBytes(),e.setScript(r);break;case 3:r=t.readBytes(),e.addArguments(r);break;default:t.skipField()}return e},proto.access.ExecuteScriptAtBlockIDRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.ExecuteScriptAtBlockIDRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.ExecuteScriptAtBlockIDRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getScript_asU8()).length>0&&t.writeBytes(2,r),(r=e.getArgumentsList_asU8()).length>0&&t.writeRepeatedBytes(3,r)},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getBlockId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getBlockId_asB64=function(){return o.Message.bytesAsB64(this.getBlockId())},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getBlockId_asU8=function(){return o.Message.bytesAsU8(this.getBlockId())},proto.access.ExecuteScriptAtBlockIDRequest.prototype.setBlockId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getScript=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getScript_asB64=function(){return o.Message.bytesAsB64(this.getScript())},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getScript_asU8=function(){return o.Message.bytesAsU8(this.getScript())},proto.access.ExecuteScriptAtBlockIDRequest.prototype.setScript=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getArgumentsList=function(){return o.Message.getRepeatedField(this,3)},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getArgumentsList_asB64=function(){return o.Message.bytesListAsB64(this.getArgumentsList())},proto.access.ExecuteScriptAtBlockIDRequest.prototype.getArgumentsList_asU8=function(){return o.Message.bytesListAsU8(this.getArgumentsList())},proto.access.ExecuteScriptAtBlockIDRequest.prototype.setArgumentsList=function(e){return o.Message.setField(this,3,e||[])},proto.access.ExecuteScriptAtBlockIDRequest.prototype.addArguments=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.access.ExecuteScriptAtBlockIDRequest.prototype.clearArgumentsList=function(){return this.setArgumentsList([])},proto.access.ExecuteScriptAtBlockHeightRequest.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.access.ExecuteScriptAtBlockHeightRequest.prototype.toObject=function(e){return proto.access.ExecuteScriptAtBlockHeightRequest.toObject(e,this)},proto.access.ExecuteScriptAtBlockHeightRequest.toObject=function(e,t){var r={blockHeight:o.Message.getFieldWithDefault(t,1,0),script:t.getScript_asB64(),argumentsList:t.getArgumentsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.ExecuteScriptAtBlockHeightRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.ExecuteScriptAtBlockHeightRequest;return proto.access.ExecuteScriptAtBlockHeightRequest.deserializeBinaryFromReader(r,t)},proto.access.ExecuteScriptAtBlockHeightRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setBlockHeight(r);break;case 2:r=t.readBytes(),e.setScript(r);break;case 3:r=t.readBytes(),e.addArguments(r);break;default:t.skipField()}return e},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.ExecuteScriptAtBlockHeightRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.ExecuteScriptAtBlockHeightRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getBlockHeight())&&t.writeUint64(1,r),(r=e.getScript_asU8()).length>0&&t.writeBytes(2,r),(r=e.getArgumentsList_asU8()).length>0&&t.writeRepeatedBytes(3,r)},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.getBlockHeight=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.setBlockHeight=function(e){return o.Message.setProto3IntField(this,1,e)},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.getScript=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.getScript_asB64=function(){return o.Message.bytesAsB64(this.getScript())},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.getScript_asU8=function(){return o.Message.bytesAsU8(this.getScript())},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.setScript=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.getArgumentsList=function(){return o.Message.getRepeatedField(this,3)},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.getArgumentsList_asB64=function(){return o.Message.bytesListAsB64(this.getArgumentsList())},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.getArgumentsList_asU8=function(){return o.Message.bytesListAsU8(this.getArgumentsList())},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.setArgumentsList=function(e){return o.Message.setField(this,3,e||[])},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.addArguments=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.access.ExecuteScriptAtBlockHeightRequest.prototype.clearArgumentsList=function(){return this.setArgumentsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.access.ExecuteScriptResponse.prototype.toObject=function(e){return proto.access.ExecuteScriptResponse.toObject(e,this)},proto.access.ExecuteScriptResponse.toObject=function(e,t){var r={value:t.getValue_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.ExecuteScriptResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.ExecuteScriptResponse;return proto.access.ExecuteScriptResponse.deserializeBinaryFromReader(r,t)},proto.access.ExecuteScriptResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setValue(r);break;default:t.skipField()}return e},proto.access.ExecuteScriptResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.ExecuteScriptResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.ExecuteScriptResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue_asU8()).length>0&&t.writeBytes(1,r)},proto.access.ExecuteScriptResponse.prototype.getValue=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.ExecuteScriptResponse.prototype.getValue_asB64=function(){return o.Message.bytesAsB64(this.getValue())},proto.access.ExecuteScriptResponse.prototype.getValue_asU8=function(){return o.Message.bytesAsU8(this.getValue())},proto.access.ExecuteScriptResponse.prototype.setValue=function(e){return o.Message.setProto3BytesField(this,1,e)},o.Message.GENERATE_TO_OBJECT&&(proto.access.GetEventsForHeightRangeRequest.prototype.toObject=function(e){return proto.access.GetEventsForHeightRangeRequest.toObject(e,this)},proto.access.GetEventsForHeightRangeRequest.toObject=function(e,t){var r={type:o.Message.getFieldWithDefault(t,1,""),startHeight:o.Message.getFieldWithDefault(t,2,0),endHeight:o.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetEventsForHeightRangeRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetEventsForHeightRangeRequest;return proto.access.GetEventsForHeightRangeRequest.deserializeBinaryFromReader(r,t)},proto.access.GetEventsForHeightRangeRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setType(r);break;case 2:r=t.readUint64(),e.setStartHeight(r);break;case 3:r=t.readUint64(),e.setEndHeight(r);break;default:t.skipField()}return e},proto.access.GetEventsForHeightRangeRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetEventsForHeightRangeRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetEventsForHeightRangeRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getType()).length>0&&t.writeString(1,r),0!==(r=e.getStartHeight())&&t.writeUint64(2,r),0!==(r=e.getEndHeight())&&t.writeUint64(3,r)},proto.access.GetEventsForHeightRangeRequest.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.GetEventsForHeightRangeRequest.prototype.setType=function(e){return o.Message.setProto3StringField(this,1,e)},proto.access.GetEventsForHeightRangeRequest.prototype.getStartHeight=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.access.GetEventsForHeightRangeRequest.prototype.setStartHeight=function(e){return o.Message.setProto3IntField(this,2,e)},proto.access.GetEventsForHeightRangeRequest.prototype.getEndHeight=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.access.GetEventsForHeightRangeRequest.prototype.setEndHeight=function(e){return o.Message.setProto3IntField(this,3,e)},proto.access.GetEventsForBlockIDsRequest.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.access.GetEventsForBlockIDsRequest.prototype.toObject=function(e){return proto.access.GetEventsForBlockIDsRequest.toObject(e,this)},proto.access.GetEventsForBlockIDsRequest.toObject=function(e,t){var r={type:o.Message.getFieldWithDefault(t,1,""),blockIdsList:t.getBlockIdsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.access.GetEventsForBlockIDsRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.GetEventsForBlockIDsRequest;return proto.access.GetEventsForBlockIDsRequest.deserializeBinaryFromReader(r,t)},proto.access.GetEventsForBlockIDsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setType(r);break;case 2:r=t.readBytes(),e.addBlockIds(r);break;default:t.skipField()}return e},proto.access.GetEventsForBlockIDsRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.GetEventsForBlockIDsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.GetEventsForBlockIDsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getType()).length>0&&t.writeString(1,r),(r=e.getBlockIdsList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},proto.access.GetEventsForBlockIDsRequest.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.GetEventsForBlockIDsRequest.prototype.setType=function(e){return o.Message.setProto3StringField(this,1,e)},proto.access.GetEventsForBlockIDsRequest.prototype.getBlockIdsList=function(){return o.Message.getRepeatedField(this,2)},proto.access.GetEventsForBlockIDsRequest.prototype.getBlockIdsList_asB64=function(){return o.Message.bytesListAsB64(this.getBlockIdsList())},proto.access.GetEventsForBlockIDsRequest.prototype.getBlockIdsList_asU8=function(){return o.Message.bytesListAsU8(this.getBlockIdsList())},proto.access.GetEventsForBlockIDsRequest.prototype.setBlockIdsList=function(e){return o.Message.setField(this,2,e||[])},proto.access.GetEventsForBlockIDsRequest.prototype.addBlockIds=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.access.GetEventsForBlockIDsRequest.prototype.clearBlockIdsList=function(){return this.setBlockIdsList([])},proto.access.EventsResponse.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.access.EventsResponse.prototype.toObject=function(e){return proto.access.EventsResponse.toObject(e,this)},proto.access.EventsResponse.toObject=function(e,t){var r={resultsList:o.Message.toObjectList(t.getResultsList(),proto.access.EventsResponse.Result.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.EventsResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.EventsResponse;return proto.access.EventsResponse.deserializeBinaryFromReader(r,t)},proto.access.EventsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.access.EventsResponse.Result;t.readMessage(r,proto.access.EventsResponse.Result.deserializeBinaryFromReader),e.addResults(r);break;default:t.skipField()}return e},proto.access.EventsResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.EventsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.EventsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getResultsList()).length>0&&t.writeRepeatedMessage(1,r,proto.access.EventsResponse.Result.serializeBinaryToWriter)},proto.access.EventsResponse.Result.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.access.EventsResponse.Result.prototype.toObject=function(e){return proto.access.EventsResponse.Result.toObject(e,this)},proto.access.EventsResponse.Result.toObject=function(e,t){var r={blockId:t.getBlockId_asB64(),blockHeight:o.Message.getFieldWithDefault(t,2,0),eventsList:o.Message.toObjectList(t.getEventsList(),l.Event.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.access.EventsResponse.Result.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.access.EventsResponse.Result;return proto.access.EventsResponse.Result.deserializeBinaryFromReader(r,t)},proto.access.EventsResponse.Result.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockId(r);break;case 2:r=t.readUint64(),e.setBlockHeight(r);break;case 3:r=new l.Event,t.readMessage(r,l.Event.deserializeBinaryFromReader),e.addEvents(r);break;default:t.skipField()}return e},proto.access.EventsResponse.Result.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.access.EventsResponse.Result.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.access.EventsResponse.Result.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockId_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getBlockHeight())&&t.writeUint64(2,r),(r=e.getEventsList()).length>0&&t.writeRepeatedMessage(3,r,l.Event.serializeBinaryToWriter)},proto.access.EventsResponse.Result.prototype.getBlockId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.access.EventsResponse.Result.prototype.getBlockId_asB64=function(){return o.Message.bytesAsB64(this.getBlockId())},proto.access.EventsResponse.Result.prototype.getBlockId_asU8=function(){return o.Message.bytesAsU8(this.getBlockId())},proto.access.EventsResponse.Result.prototype.setBlockId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.access.EventsResponse.Result.prototype.getBlockHeight=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.access.EventsResponse.Result.prototype.setBlockHeight=function(e){return o.Message.setProto3IntField(this,2,e)},proto.access.EventsResponse.Result.prototype.getEventsList=function(){return o.Message.getRepeatedWrapperField(this,l.Event,3)},proto.access.EventsResponse.Result.prototype.setEventsList=function(e){return o.Message.setRepeatedWrapperField(this,3,e)},proto.access.EventsResponse.Result.prototype.addEvents=function(e,t){return o.Message.addToRepeatedWrapperField(this,3,e,proto.entities.Event,t)},proto.access.EventsResponse.Result.prototype.clearEventsList=function(){return this.setEventsList([])},proto.access.EventsResponse.prototype.getResultsList=function(){return o.Message.getRepeatedWrapperField(this,proto.access.EventsResponse.Result,1)},proto.access.EventsResponse.prototype.setResultsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.access.EventsResponse.prototype.addResults=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.access.EventsResponse.Result,t)},proto.access.EventsResponse.prototype.clearResultsList=function(){return this.setResultsList([])},n.object.extend(t,proto.access)},function(e,t,r){var o=r(0),n=o,s=Function("return this")();n.exportSymbol("proto.entities.BlockHeader",null,s),proto.entities.BlockHeader=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.entities.BlockHeader,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.BlockHeader.displayName="proto.entities.BlockHeader"),o.Message.GENERATE_TO_OBJECT&&(proto.entities.BlockHeader.prototype.toObject=function(e){return proto.entities.BlockHeader.toObject(e,this)},proto.entities.BlockHeader.toObject=function(e,t){var r={id:t.getId_asB64(),parentId:t.getParentId_asB64(),height:o.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.BlockHeader.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.BlockHeader;return proto.entities.BlockHeader.deserializeBinaryFromReader(r,t)},proto.entities.BlockHeader.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;case 2:r=t.readBytes(),e.setParentId(r);break;case 3:r=t.readUint64(),e.setHeight(r);break;default:t.skipField()}return e},proto.entities.BlockHeader.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.BlockHeader.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.BlockHeader.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getParentId_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getHeight())&&t.writeUint64(3,r)},proto.entities.BlockHeader.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.BlockHeader.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.entities.BlockHeader.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.entities.BlockHeader.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.BlockHeader.prototype.getParentId=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.entities.BlockHeader.prototype.getParentId_asB64=function(){return o.Message.bytesAsB64(this.getParentId())},proto.entities.BlockHeader.prototype.getParentId_asU8=function(){return o.Message.bytesAsU8(this.getParentId())},proto.entities.BlockHeader.prototype.setParentId=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.entities.BlockHeader.prototype.getHeight=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.entities.BlockHeader.prototype.setHeight=function(e){return o.Message.setProto3IntField(this,3,e)},n.object.extend(t,proto.entities)},function(e,t,r){var o=r(0),n=o,s=Function("return this")(),i=r(21);n.object.extend(proto,i);var a=r(1);n.object.extend(proto,a);var g=r(7);n.object.extend(proto,g),n.exportSymbol("proto.entities.Block",null,s),proto.entities.Block=function(e){o.Message.initialize(this,e,0,-1,proto.entities.Block.repeatedFields_,null)},n.inherits(proto.entities.Block,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.Block.displayName="proto.entities.Block"),proto.entities.Block.repeatedFields_=[5,6,7],o.Message.GENERATE_TO_OBJECT&&(proto.entities.Block.prototype.toObject=function(e){return proto.entities.Block.toObject(e,this)},proto.entities.Block.toObject=function(e,t){var r,n={id:t.getId_asB64(),parentId:t.getParentId_asB64(),height:o.Message.getFieldWithDefault(t,3,0),timestamp:(r=t.getTimestamp())&&i.Timestamp.toObject(e,r),collectionGuaranteesList:o.Message.toObjectList(t.getCollectionGuaranteesList(),a.CollectionGuarantee.toObject,e),blockSealsList:o.Message.toObjectList(t.getBlockSealsList(),g.BlockSeal.toObject,e),signaturesList:t.getSignaturesList_asB64()};return e&&(n.$jspbMessageInstance=t),n}),proto.entities.Block.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.Block;return proto.entities.Block.deserializeBinaryFromReader(r,t)},proto.entities.Block.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setId(r);break;case 2:r=t.readBytes(),e.setParentId(r);break;case 3:r=t.readUint64(),e.setHeight(r);break;case 4:r=new i.Timestamp,t.readMessage(r,i.Timestamp.deserializeBinaryFromReader),e.setTimestamp(r);break;case 5:r=new a.CollectionGuarantee,t.readMessage(r,a.CollectionGuarantee.deserializeBinaryFromReader),e.addCollectionGuarantees(r);break;case 6:r=new g.BlockSeal,t.readMessage(r,g.BlockSeal.deserializeBinaryFromReader),e.addBlockSeals(r);break;case 7:r=t.readBytes(),e.addSignatures(r);break;default:t.skipField()}return e},proto.entities.Block.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.Block.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.Block.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getParentId_asU8()).length>0&&t.writeBytes(2,r),0!==(r=e.getHeight())&&t.writeUint64(3,r),null!=(r=e.getTimestamp())&&t.writeMessage(4,r,i.Timestamp.serializeBinaryToWriter),(r=e.getCollectionGuaranteesList()).length>0&&t.writeRepeatedMessage(5,r,a.CollectionGuarantee.serializeBinaryToWriter),(r=e.getBlockSealsList()).length>0&&t.writeRepeatedMessage(6,r,g.BlockSeal.serializeBinaryToWriter),(r=e.getSignaturesList_asU8()).length>0&&t.writeRepeatedBytes(7,r)},proto.entities.Block.prototype.getId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.Block.prototype.getId_asB64=function(){return o.Message.bytesAsB64(this.getId())},proto.entities.Block.prototype.getId_asU8=function(){return o.Message.bytesAsU8(this.getId())},proto.entities.Block.prototype.setId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.Block.prototype.getParentId=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.entities.Block.prototype.getParentId_asB64=function(){return o.Message.bytesAsB64(this.getParentId())},proto.entities.Block.prototype.getParentId_asU8=function(){return o.Message.bytesAsU8(this.getParentId())},proto.entities.Block.prototype.setParentId=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.entities.Block.prototype.getHeight=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.entities.Block.prototype.setHeight=function(e){return o.Message.setProto3IntField(this,3,e)},proto.entities.Block.prototype.getTimestamp=function(){return o.Message.getWrapperField(this,i.Timestamp,4)},proto.entities.Block.prototype.setTimestamp=function(e){return o.Message.setWrapperField(this,4,e)},proto.entities.Block.prototype.clearTimestamp=function(){return this.setTimestamp(void 0)},proto.entities.Block.prototype.hasTimestamp=function(){return null!=o.Message.getField(this,4)},proto.entities.Block.prototype.getCollectionGuaranteesList=function(){return o.Message.getRepeatedWrapperField(this,a.CollectionGuarantee,5)},proto.entities.Block.prototype.setCollectionGuaranteesList=function(e){return o.Message.setRepeatedWrapperField(this,5,e)},proto.entities.Block.prototype.addCollectionGuarantees=function(e,t){return o.Message.addToRepeatedWrapperField(this,5,e,proto.entities.CollectionGuarantee,t)},proto.entities.Block.prototype.clearCollectionGuaranteesList=function(){return this.setCollectionGuaranteesList([])},proto.entities.Block.prototype.getBlockSealsList=function(){return o.Message.getRepeatedWrapperField(this,g.BlockSeal,6)},proto.entities.Block.prototype.setBlockSealsList=function(e){return o.Message.setRepeatedWrapperField(this,6,e)},proto.entities.Block.prototype.addBlockSeals=function(e,t){return o.Message.addToRepeatedWrapperField(this,6,e,proto.entities.BlockSeal,t)},proto.entities.Block.prototype.clearBlockSealsList=function(){return this.setBlockSealsList([])},proto.entities.Block.prototype.getSignaturesList=function(){return o.Message.getRepeatedField(this,7)},proto.entities.Block.prototype.getSignaturesList_asB64=function(){return o.Message.bytesListAsB64(this.getSignaturesList())},proto.entities.Block.prototype.getSignaturesList_asU8=function(){return o.Message.bytesListAsU8(this.getSignaturesList())},proto.entities.Block.prototype.setSignaturesList=function(e){return o.Message.setField(this,7,e||[])},proto.entities.Block.prototype.addSignatures=function(e,t){return o.Message.addToRepeatedField(this,7,e,t)},proto.entities.Block.prototype.clearSignaturesList=function(){return this.setSignaturesList([])},n.object.extend(t,proto.entities)},function(e,t,r){var o=r(0),n=o,s=Function("return this")();n.exportSymbol("proto.entities.BlockSeal",null,s),proto.entities.BlockSeal=function(e){o.Message.initialize(this,e,0,-1,proto.entities.BlockSeal.repeatedFields_,null)},n.inherits(proto.entities.BlockSeal,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.BlockSeal.displayName="proto.entities.BlockSeal"),proto.entities.BlockSeal.repeatedFields_=[3,4],o.Message.GENERATE_TO_OBJECT&&(proto.entities.BlockSeal.prototype.toObject=function(e){return proto.entities.BlockSeal.toObject(e,this)},proto.entities.BlockSeal.toObject=function(e,t){var r={blockId:t.getBlockId_asB64(),executionReceiptId:t.getExecutionReceiptId_asB64(),executionReceiptSignaturesList:t.getExecutionReceiptSignaturesList_asB64(),resultApprovalSignaturesList:t.getResultApprovalSignaturesList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.BlockSeal.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.BlockSeal;return proto.entities.BlockSeal.deserializeBinaryFromReader(r,t)},proto.entities.BlockSeal.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockId(r);break;case 2:r=t.readBytes(),e.setExecutionReceiptId(r);break;case 3:r=t.readBytes(),e.addExecutionReceiptSignatures(r);break;case 4:r=t.readBytes(),e.addResultApprovalSignatures(r);break;default:t.skipField()}return e},proto.entities.BlockSeal.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.BlockSeal.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.BlockSeal.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getExecutionReceiptId_asU8()).length>0&&t.writeBytes(2,r),(r=e.getExecutionReceiptSignaturesList_asU8()).length>0&&t.writeRepeatedBytes(3,r),(r=e.getResultApprovalSignaturesList_asU8()).length>0&&t.writeRepeatedBytes(4,r)},proto.entities.BlockSeal.prototype.getBlockId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.BlockSeal.prototype.getBlockId_asB64=function(){return o.Message.bytesAsB64(this.getBlockId())},proto.entities.BlockSeal.prototype.getBlockId_asU8=function(){return o.Message.bytesAsU8(this.getBlockId())},proto.entities.BlockSeal.prototype.setBlockId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.BlockSeal.prototype.getExecutionReceiptId=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.entities.BlockSeal.prototype.getExecutionReceiptId_asB64=function(){return o.Message.bytesAsB64(this.getExecutionReceiptId())},proto.entities.BlockSeal.prototype.getExecutionReceiptId_asU8=function(){return o.Message.bytesAsU8(this.getExecutionReceiptId())},proto.entities.BlockSeal.prototype.setExecutionReceiptId=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.entities.BlockSeal.prototype.getExecutionReceiptSignaturesList=function(){return o.Message.getRepeatedField(this,3)},proto.entities.BlockSeal.prototype.getExecutionReceiptSignaturesList_asB64=function(){return o.Message.bytesListAsB64(this.getExecutionReceiptSignaturesList())},proto.entities.BlockSeal.prototype.getExecutionReceiptSignaturesList_asU8=function(){return o.Message.bytesListAsU8(this.getExecutionReceiptSignaturesList())},proto.entities.BlockSeal.prototype.setExecutionReceiptSignaturesList=function(e){return o.Message.setField(this,3,e||[])},proto.entities.BlockSeal.prototype.addExecutionReceiptSignatures=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.entities.BlockSeal.prototype.clearExecutionReceiptSignaturesList=function(){return this.setExecutionReceiptSignaturesList([])},proto.entities.BlockSeal.prototype.getResultApprovalSignaturesList=function(){return o.Message.getRepeatedField(this,4)},proto.entities.BlockSeal.prototype.getResultApprovalSignaturesList_asB64=function(){return o.Message.bytesListAsB64(this.getResultApprovalSignaturesList())},proto.entities.BlockSeal.prototype.getResultApprovalSignaturesList_asU8=function(){return o.Message.bytesListAsU8(this.getResultApprovalSignaturesList())},proto.entities.BlockSeal.prototype.setResultApprovalSignaturesList=function(e){return o.Message.setField(this,4,e||[])},proto.entities.BlockSeal.prototype.addResultApprovalSignatures=function(e,t){return o.Message.addToRepeatedField(this,4,e,t)},proto.entities.BlockSeal.prototype.clearResultApprovalSignaturesList=function(){return this.setResultApprovalSignaturesList([])},n.object.extend(t,proto.entities)},function(e,t,r){var o=r(0),n=o,s=Function("return this")();n.exportSymbol("proto.entities.Transaction",null,s),n.exportSymbol("proto.entities.Transaction.ProposalKey",null,s),n.exportSymbol("proto.entities.Transaction.Signature",null,s),n.exportSymbol("proto.entities.TransactionStatus",null,s),proto.entities.Transaction=function(e){o.Message.initialize(this,e,0,-1,proto.entities.Transaction.repeatedFields_,null)},n.inherits(proto.entities.Transaction,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.Transaction.displayName="proto.entities.Transaction"),proto.entities.Transaction.ProposalKey=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.entities.Transaction.ProposalKey,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.Transaction.ProposalKey.displayName="proto.entities.Transaction.ProposalKey"),proto.entities.Transaction.Signature=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.entities.Transaction.Signature,o.Message),n.DEBUG&&!COMPILED&&(proto.entities.Transaction.Signature.displayName="proto.entities.Transaction.Signature"),proto.entities.Transaction.repeatedFields_=[2,7,8,9],o.Message.GENERATE_TO_OBJECT&&(proto.entities.Transaction.prototype.toObject=function(e){return proto.entities.Transaction.toObject(e,this)},proto.entities.Transaction.toObject=function(e,t){var r,n={script:t.getScript_asB64(),argumentsList:t.getArgumentsList_asB64(),referenceBlockId:t.getReferenceBlockId_asB64(),gasLimit:o.Message.getFieldWithDefault(t,4,0),proposalKey:(r=t.getProposalKey())&&proto.entities.Transaction.ProposalKey.toObject(e,r),payer:t.getPayer_asB64(),authorizersList:t.getAuthorizersList_asB64(),payloadSignaturesList:o.Message.toObjectList(t.getPayloadSignaturesList(),proto.entities.Transaction.Signature.toObject,e),envelopeSignaturesList:o.Message.toObjectList(t.getEnvelopeSignaturesList(),proto.entities.Transaction.Signature.toObject,e)};return e&&(n.$jspbMessageInstance=t),n}),proto.entities.Transaction.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.Transaction;return proto.entities.Transaction.deserializeBinaryFromReader(r,t)},proto.entities.Transaction.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setScript(r);break;case 2:r=t.readBytes(),e.addArguments(r);break;case 3:r=t.readBytes(),e.setReferenceBlockId(r);break;case 4:r=t.readUint64(),e.setGasLimit(r);break;case 5:r=new proto.entities.Transaction.ProposalKey,t.readMessage(r,proto.entities.Transaction.ProposalKey.deserializeBinaryFromReader),e.setProposalKey(r);break;case 6:r=t.readBytes(),e.setPayer(r);break;case 7:r=t.readBytes(),e.addAuthorizers(r);break;case 8:r=new proto.entities.Transaction.Signature,t.readMessage(r,proto.entities.Transaction.Signature.deserializeBinaryFromReader),e.addPayloadSignatures(r);break;case 9:r=new proto.entities.Transaction.Signature,t.readMessage(r,proto.entities.Transaction.Signature.deserializeBinaryFromReader),e.addEnvelopeSignatures(r);break;default:t.skipField()}return e},proto.entities.Transaction.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.Transaction.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.Transaction.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getScript_asU8()).length>0&&t.writeBytes(1,r),(r=e.getArgumentsList_asU8()).length>0&&t.writeRepeatedBytes(2,r),(r=e.getReferenceBlockId_asU8()).length>0&&t.writeBytes(3,r),0!==(r=e.getGasLimit())&&t.writeUint64(4,r),null!=(r=e.getProposalKey())&&t.writeMessage(5,r,proto.entities.Transaction.ProposalKey.serializeBinaryToWriter),(r=e.getPayer_asU8()).length>0&&t.writeBytes(6,r),(r=e.getAuthorizersList_asU8()).length>0&&t.writeRepeatedBytes(7,r),(r=e.getPayloadSignaturesList()).length>0&&t.writeRepeatedMessage(8,r,proto.entities.Transaction.Signature.serializeBinaryToWriter),(r=e.getEnvelopeSignaturesList()).length>0&&t.writeRepeatedMessage(9,r,proto.entities.Transaction.Signature.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.entities.Transaction.ProposalKey.prototype.toObject=function(e){return proto.entities.Transaction.ProposalKey.toObject(e,this)},proto.entities.Transaction.ProposalKey.toObject=function(e,t){var r={address:t.getAddress_asB64(),keyId:o.Message.getFieldWithDefault(t,2,0),sequenceNumber:o.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.Transaction.ProposalKey.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.Transaction.ProposalKey;return proto.entities.Transaction.ProposalKey.deserializeBinaryFromReader(r,t)},proto.entities.Transaction.ProposalKey.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setAddress(r);break;case 2:r=t.readUint32(),e.setKeyId(r);break;case 3:r=t.readUint64(),e.setSequenceNumber(r);break;default:t.skipField()}return e},proto.entities.Transaction.ProposalKey.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.Transaction.ProposalKey.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.Transaction.ProposalKey.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAddress_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getKeyId())&&t.writeUint32(2,r),0!==(r=e.getSequenceNumber())&&t.writeUint64(3,r)},proto.entities.Transaction.ProposalKey.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.Transaction.ProposalKey.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.entities.Transaction.ProposalKey.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.entities.Transaction.ProposalKey.prototype.setAddress=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.Transaction.ProposalKey.prototype.getKeyId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.entities.Transaction.ProposalKey.prototype.setKeyId=function(e){return o.Message.setProto3IntField(this,2,e)},proto.entities.Transaction.ProposalKey.prototype.getSequenceNumber=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.entities.Transaction.ProposalKey.prototype.setSequenceNumber=function(e){return o.Message.setProto3IntField(this,3,e)},o.Message.GENERATE_TO_OBJECT&&(proto.entities.Transaction.Signature.prototype.toObject=function(e){return proto.entities.Transaction.Signature.toObject(e,this)},proto.entities.Transaction.Signature.toObject=function(e,t){var r={address:t.getAddress_asB64(),keyId:o.Message.getFieldWithDefault(t,2,0),signature:t.getSignature_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.entities.Transaction.Signature.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.entities.Transaction.Signature;return proto.entities.Transaction.Signature.deserializeBinaryFromReader(r,t)},proto.entities.Transaction.Signature.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setAddress(r);break;case 2:r=t.readUint32(),e.setKeyId(r);break;case 3:r=t.readBytes(),e.setSignature(r);break;default:t.skipField()}return e},proto.entities.Transaction.Signature.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.entities.Transaction.Signature.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.entities.Transaction.Signature.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getAddress_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getKeyId())&&t.writeUint32(2,r),(r=e.getSignature_asU8()).length>0&&t.writeBytes(3,r)},proto.entities.Transaction.Signature.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.Transaction.Signature.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.entities.Transaction.Signature.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.entities.Transaction.Signature.prototype.setAddress=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.Transaction.Signature.prototype.getKeyId=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.entities.Transaction.Signature.prototype.setKeyId=function(e){return o.Message.setProto3IntField(this,2,e)},proto.entities.Transaction.Signature.prototype.getSignature=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.entities.Transaction.Signature.prototype.getSignature_asB64=function(){return o.Message.bytesAsB64(this.getSignature())},proto.entities.Transaction.Signature.prototype.getSignature_asU8=function(){return o.Message.bytesAsU8(this.getSignature())},proto.entities.Transaction.Signature.prototype.setSignature=function(e){return o.Message.setProto3BytesField(this,3,e)},proto.entities.Transaction.prototype.getScript=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.entities.Transaction.prototype.getScript_asB64=function(){return o.Message.bytesAsB64(this.getScript())},proto.entities.Transaction.prototype.getScript_asU8=function(){return o.Message.bytesAsU8(this.getScript())},proto.entities.Transaction.prototype.setScript=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.entities.Transaction.prototype.getArgumentsList=function(){return o.Message.getRepeatedField(this,2)},proto.entities.Transaction.prototype.getArgumentsList_asB64=function(){return o.Message.bytesListAsB64(this.getArgumentsList())},proto.entities.Transaction.prototype.getArgumentsList_asU8=function(){return o.Message.bytesListAsU8(this.getArgumentsList())},proto.entities.Transaction.prototype.setArgumentsList=function(e){return o.Message.setField(this,2,e||[])},proto.entities.Transaction.prototype.addArguments=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.entities.Transaction.prototype.clearArgumentsList=function(){return this.setArgumentsList([])},proto.entities.Transaction.prototype.getReferenceBlockId=function(){return o.Message.getFieldWithDefault(this,3,"")},proto.entities.Transaction.prototype.getReferenceBlockId_asB64=function(){return o.Message.bytesAsB64(this.getReferenceBlockId())},proto.entities.Transaction.prototype.getReferenceBlockId_asU8=function(){return o.Message.bytesAsU8(this.getReferenceBlockId())},proto.entities.Transaction.prototype.setReferenceBlockId=function(e){return o.Message.setProto3BytesField(this,3,e)},proto.entities.Transaction.prototype.getGasLimit=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.entities.Transaction.prototype.setGasLimit=function(e){return o.Message.setProto3IntField(this,4,e)},proto.entities.Transaction.prototype.getProposalKey=function(){return o.Message.getWrapperField(this,proto.entities.Transaction.ProposalKey,5)},proto.entities.Transaction.prototype.setProposalKey=function(e){return o.Message.setWrapperField(this,5,e)},proto.entities.Transaction.prototype.clearProposalKey=function(){return this.setProposalKey(void 0)},proto.entities.Transaction.prototype.hasProposalKey=function(){return null!=o.Message.getField(this,5)},proto.entities.Transaction.prototype.getPayer=function(){return o.Message.getFieldWithDefault(this,6,"")},proto.entities.Transaction.prototype.getPayer_asB64=function(){return o.Message.bytesAsB64(this.getPayer())},proto.entities.Transaction.prototype.getPayer_asU8=function(){return o.Message.bytesAsU8(this.getPayer())},proto.entities.Transaction.prototype.setPayer=function(e){return o.Message.setProto3BytesField(this,6,e)},proto.entities.Transaction.prototype.getAuthorizersList=function(){return o.Message.getRepeatedField(this,7)},proto.entities.Transaction.prototype.getAuthorizersList_asB64=function(){return o.Message.bytesListAsB64(this.getAuthorizersList())},proto.entities.Transaction.prototype.getAuthorizersList_asU8=function(){return o.Message.bytesListAsU8(this.getAuthorizersList())},proto.entities.Transaction.prototype.setAuthorizersList=function(e){return o.Message.setField(this,7,e||[])},proto.entities.Transaction.prototype.addAuthorizers=function(e,t){return o.Message.addToRepeatedField(this,7,e,t)},proto.entities.Transaction.prototype.clearAuthorizersList=function(){return this.setAuthorizersList([])},proto.entities.Transaction.prototype.getPayloadSignaturesList=function(){return o.Message.getRepeatedWrapperField(this,proto.entities.Transaction.Signature,8)},proto.entities.Transaction.prototype.setPayloadSignaturesList=function(e){return o.Message.setRepeatedWrapperField(this,8,e)},proto.entities.Transaction.prototype.addPayloadSignatures=function(e,t){return o.Message.addToRepeatedWrapperField(this,8,e,proto.entities.Transaction.Signature,t)},proto.entities.Transaction.prototype.clearPayloadSignaturesList=function(){return this.setPayloadSignaturesList([])},proto.entities.Transaction.prototype.getEnvelopeSignaturesList=function(){return o.Message.getRepeatedWrapperField(this,proto.entities.Transaction.Signature,9)},proto.entities.Transaction.prototype.setEnvelopeSignaturesList=function(e){return o.Message.setRepeatedWrapperField(this,9,e)},proto.entities.Transaction.prototype.addEnvelopeSignatures=function(e,t){return o.Message.addToRepeatedWrapperField(this,9,e,proto.entities.Transaction.Signature,t)},proto.entities.Transaction.prototype.clearEnvelopeSignaturesList=function(){return this.setEnvelopeSignaturesList([])},proto.entities.TransactionStatus={UNKNOWN:0,PENDING:1,FINALIZED:2,EXECUTED:3,SEALED:4},n.object.extend(t,proto.entities)},function(e,t,r){var o=r(0),n=o,s=Function("return this")(),i=r(2);n.object.extend(proto,i);var a=r(3);n.object.extend(proto,a),n.exportSymbol("proto.execution.ExecuteScriptAtBlockIDRequest",null,s),n.exportSymbol("proto.execution.ExecuteScriptAtBlockIDResponse",null,s),n.exportSymbol("proto.execution.GetAccountAtBlockIDRequest",null,s),n.exportSymbol("proto.execution.GetAccountAtBlockIDResponse",null,s),n.exportSymbol("proto.execution.GetEventsForBlockIDsRequest",null,s),n.exportSymbol("proto.execution.GetEventsForBlockIDsResponse",null,s),n.exportSymbol("proto.execution.GetEventsForBlockIDsResponse.Result",null,s),n.exportSymbol("proto.execution.GetTransactionResultRequest",null,s),n.exportSymbol("proto.execution.GetTransactionResultResponse",null,s),n.exportSymbol("proto.execution.PingRequest",null,s),n.exportSymbol("proto.execution.PingResponse",null,s),proto.execution.PingRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.execution.PingRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.PingRequest.displayName="proto.execution.PingRequest"),proto.execution.PingResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.execution.PingResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.PingResponse.displayName="proto.execution.PingResponse"),proto.execution.GetAccountAtBlockIDRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.execution.GetAccountAtBlockIDRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.GetAccountAtBlockIDRequest.displayName="proto.execution.GetAccountAtBlockIDRequest"),proto.execution.GetAccountAtBlockIDResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.execution.GetAccountAtBlockIDResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.GetAccountAtBlockIDResponse.displayName="proto.execution.GetAccountAtBlockIDResponse"),proto.execution.ExecuteScriptAtBlockIDRequest=function(e){o.Message.initialize(this,e,0,-1,proto.execution.ExecuteScriptAtBlockIDRequest.repeatedFields_,null)},n.inherits(proto.execution.ExecuteScriptAtBlockIDRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.ExecuteScriptAtBlockIDRequest.displayName="proto.execution.ExecuteScriptAtBlockIDRequest"),proto.execution.ExecuteScriptAtBlockIDResponse=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.execution.ExecuteScriptAtBlockIDResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.ExecuteScriptAtBlockIDResponse.displayName="proto.execution.ExecuteScriptAtBlockIDResponse"),proto.execution.GetEventsForBlockIDsResponse=function(e){o.Message.initialize(this,e,0,-1,proto.execution.GetEventsForBlockIDsResponse.repeatedFields_,null)},n.inherits(proto.execution.GetEventsForBlockIDsResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.GetEventsForBlockIDsResponse.displayName="proto.execution.GetEventsForBlockIDsResponse"),proto.execution.GetEventsForBlockIDsResponse.Result=function(e){o.Message.initialize(this,e,0,-1,proto.execution.GetEventsForBlockIDsResponse.Result.repeatedFields_,null)},n.inherits(proto.execution.GetEventsForBlockIDsResponse.Result,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.GetEventsForBlockIDsResponse.Result.displayName="proto.execution.GetEventsForBlockIDsResponse.Result"),proto.execution.GetEventsForBlockIDsRequest=function(e){o.Message.initialize(this,e,0,-1,proto.execution.GetEventsForBlockIDsRequest.repeatedFields_,null)},n.inherits(proto.execution.GetEventsForBlockIDsRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.GetEventsForBlockIDsRequest.displayName="proto.execution.GetEventsForBlockIDsRequest"),proto.execution.GetTransactionResultRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.execution.GetTransactionResultRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.GetTransactionResultRequest.displayName="proto.execution.GetTransactionResultRequest"),proto.execution.GetTransactionResultResponse=function(e){o.Message.initialize(this,e,0,-1,proto.execution.GetTransactionResultResponse.repeatedFields_,null)},n.inherits(proto.execution.GetTransactionResultResponse,o.Message),n.DEBUG&&!COMPILED&&(proto.execution.GetTransactionResultResponse.displayName="proto.execution.GetTransactionResultResponse"),o.Message.GENERATE_TO_OBJECT&&(proto.execution.PingRequest.prototype.toObject=function(e){return proto.execution.PingRequest.toObject(e,this)},proto.execution.PingRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.PingRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.PingRequest;return proto.execution.PingRequest.deserializeBinaryFromReader(r,t)},proto.execution.PingRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.execution.PingRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.PingRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.PingRequest.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.execution.PingResponse.prototype.toObject=function(e){return proto.execution.PingResponse.toObject(e,this)},proto.execution.PingResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.PingResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.PingResponse;return proto.execution.PingResponse.deserializeBinaryFromReader(r,t)},proto.execution.PingResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},proto.execution.PingResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.PingResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.PingResponse.serializeBinaryToWriter=function(e,t){},o.Message.GENERATE_TO_OBJECT&&(proto.execution.GetAccountAtBlockIDRequest.prototype.toObject=function(e){return proto.execution.GetAccountAtBlockIDRequest.toObject(e,this)},proto.execution.GetAccountAtBlockIDRequest.toObject=function(e,t){var r={blockId:t.getBlockId_asB64(),address:t.getAddress_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.GetAccountAtBlockIDRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.GetAccountAtBlockIDRequest;return proto.execution.GetAccountAtBlockIDRequest.deserializeBinaryFromReader(r,t)},proto.execution.GetAccountAtBlockIDRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockId(r);break;case 2:r=t.readBytes(),e.setAddress(r);break;default:t.skipField()}return e},proto.execution.GetAccountAtBlockIDRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.GetAccountAtBlockIDRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.GetAccountAtBlockIDRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getAddress_asU8()).length>0&&t.writeBytes(2,r)},proto.execution.GetAccountAtBlockIDRequest.prototype.getBlockId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.execution.GetAccountAtBlockIDRequest.prototype.getBlockId_asB64=function(){return o.Message.bytesAsB64(this.getBlockId())},proto.execution.GetAccountAtBlockIDRequest.prototype.getBlockId_asU8=function(){return o.Message.bytesAsU8(this.getBlockId())},proto.execution.GetAccountAtBlockIDRequest.prototype.setBlockId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.execution.GetAccountAtBlockIDRequest.prototype.getAddress=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.execution.GetAccountAtBlockIDRequest.prototype.getAddress_asB64=function(){return o.Message.bytesAsB64(this.getAddress())},proto.execution.GetAccountAtBlockIDRequest.prototype.getAddress_asU8=function(){return o.Message.bytesAsU8(this.getAddress())},proto.execution.GetAccountAtBlockIDRequest.prototype.setAddress=function(e){return o.Message.setProto3BytesField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.execution.GetAccountAtBlockIDResponse.prototype.toObject=function(e){return proto.execution.GetAccountAtBlockIDResponse.toObject(e,this)},proto.execution.GetAccountAtBlockIDResponse.toObject=function(e,t){var r,o={account:(r=t.getAccount())&&i.Account.toObject(e,r)};return e&&(o.$jspbMessageInstance=t),o}),proto.execution.GetAccountAtBlockIDResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.GetAccountAtBlockIDResponse;return proto.execution.GetAccountAtBlockIDResponse.deserializeBinaryFromReader(r,t)},proto.execution.GetAccountAtBlockIDResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new i.Account;t.readMessage(r,i.Account.deserializeBinaryFromReader),e.setAccount(r);break;default:t.skipField()}return e},proto.execution.GetAccountAtBlockIDResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.GetAccountAtBlockIDResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.GetAccountAtBlockIDResponse.serializeBinaryToWriter=function(e,t){var r;null!=(r=e.getAccount())&&t.writeMessage(1,r,i.Account.serializeBinaryToWriter)},proto.execution.GetAccountAtBlockIDResponse.prototype.getAccount=function(){return o.Message.getWrapperField(this,i.Account,1)},proto.execution.GetAccountAtBlockIDResponse.prototype.setAccount=function(e){return o.Message.setWrapperField(this,1,e)},proto.execution.GetAccountAtBlockIDResponse.prototype.clearAccount=function(){return this.setAccount(void 0)},proto.execution.GetAccountAtBlockIDResponse.prototype.hasAccount=function(){return null!=o.Message.getField(this,1)},proto.execution.ExecuteScriptAtBlockIDRequest.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.execution.ExecuteScriptAtBlockIDRequest.prototype.toObject=function(e){return proto.execution.ExecuteScriptAtBlockIDRequest.toObject(e,this)},proto.execution.ExecuteScriptAtBlockIDRequest.toObject=function(e,t){var r={blockId:t.getBlockId_asB64(),script:t.getScript_asB64(),argumentsList:t.getArgumentsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.ExecuteScriptAtBlockIDRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.ExecuteScriptAtBlockIDRequest;return proto.execution.ExecuteScriptAtBlockIDRequest.deserializeBinaryFromReader(r,t)},proto.execution.ExecuteScriptAtBlockIDRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockId(r);break;case 2:r=t.readBytes(),e.setScript(r);break;case 3:r=t.readBytes(),e.addArguments(r);break;default:t.skipField()}return e},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.ExecuteScriptAtBlockIDRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.ExecuteScriptAtBlockIDRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getScript_asU8()).length>0&&t.writeBytes(2,r),(r=e.getArgumentsList_asU8()).length>0&&t.writeRepeatedBytes(3,r)},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getBlockId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getBlockId_asB64=function(){return o.Message.bytesAsB64(this.getBlockId())},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getBlockId_asU8=function(){return o.Message.bytesAsU8(this.getBlockId())},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.setBlockId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getScript=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getScript_asB64=function(){return o.Message.bytesAsB64(this.getScript())},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getScript_asU8=function(){return o.Message.bytesAsU8(this.getScript())},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.setScript=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getArgumentsList=function(){return o.Message.getRepeatedField(this,3)},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getArgumentsList_asB64=function(){return o.Message.bytesListAsB64(this.getArgumentsList())},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.getArgumentsList_asU8=function(){return o.Message.bytesListAsU8(this.getArgumentsList())},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.setArgumentsList=function(e){return o.Message.setField(this,3,e||[])},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.addArguments=function(e,t){return o.Message.addToRepeatedField(this,3,e,t)},proto.execution.ExecuteScriptAtBlockIDRequest.prototype.clearArgumentsList=function(){return this.setArgumentsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.execution.ExecuteScriptAtBlockIDResponse.prototype.toObject=function(e){return proto.execution.ExecuteScriptAtBlockIDResponse.toObject(e,this)},proto.execution.ExecuteScriptAtBlockIDResponse.toObject=function(e,t){var r={value:t.getValue_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.ExecuteScriptAtBlockIDResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.ExecuteScriptAtBlockIDResponse;return proto.execution.ExecuteScriptAtBlockIDResponse.deserializeBinaryFromReader(r,t)},proto.execution.ExecuteScriptAtBlockIDResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setValue(r);break;default:t.skipField()}return e},proto.execution.ExecuteScriptAtBlockIDResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.ExecuteScriptAtBlockIDResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.ExecuteScriptAtBlockIDResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getValue_asU8()).length>0&&t.writeBytes(1,r)},proto.execution.ExecuteScriptAtBlockIDResponse.prototype.getValue=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.execution.ExecuteScriptAtBlockIDResponse.prototype.getValue_asB64=function(){return o.Message.bytesAsB64(this.getValue())},proto.execution.ExecuteScriptAtBlockIDResponse.prototype.getValue_asU8=function(){return o.Message.bytesAsU8(this.getValue())},proto.execution.ExecuteScriptAtBlockIDResponse.prototype.setValue=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.execution.GetEventsForBlockIDsResponse.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.execution.GetEventsForBlockIDsResponse.prototype.toObject=function(e){return proto.execution.GetEventsForBlockIDsResponse.toObject(e,this)},proto.execution.GetEventsForBlockIDsResponse.toObject=function(e,t){var r={resultsList:o.Message.toObjectList(t.getResultsList(),proto.execution.GetEventsForBlockIDsResponse.Result.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.GetEventsForBlockIDsResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.GetEventsForBlockIDsResponse;return proto.execution.GetEventsForBlockIDsResponse.deserializeBinaryFromReader(r,t)},proto.execution.GetEventsForBlockIDsResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new proto.execution.GetEventsForBlockIDsResponse.Result;t.readMessage(r,proto.execution.GetEventsForBlockIDsResponse.Result.deserializeBinaryFromReader),e.addResults(r);break;default:t.skipField()}return e},proto.execution.GetEventsForBlockIDsResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.GetEventsForBlockIDsResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.GetEventsForBlockIDsResponse.serializeBinaryToWriter=function(e,t){var r;(r=e.getResultsList()).length>0&&t.writeRepeatedMessage(1,r,proto.execution.GetEventsForBlockIDsResponse.Result.serializeBinaryToWriter)},proto.execution.GetEventsForBlockIDsResponse.Result.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.execution.GetEventsForBlockIDsResponse.Result.prototype.toObject=function(e){return proto.execution.GetEventsForBlockIDsResponse.Result.toObject(e,this)},proto.execution.GetEventsForBlockIDsResponse.Result.toObject=function(e,t){var r={blockId:t.getBlockId_asB64(),blockHeight:o.Message.getFieldWithDefault(t,2,0),eventsList:o.Message.toObjectList(t.getEventsList(),a.Event.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.GetEventsForBlockIDsResponse.Result.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.GetEventsForBlockIDsResponse.Result;return proto.execution.GetEventsForBlockIDsResponse.Result.deserializeBinaryFromReader(r,t)},proto.execution.GetEventsForBlockIDsResponse.Result.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockId(r);break;case 2:r=t.readUint64(),e.setBlockHeight(r);break;case 3:r=new a.Event,t.readMessage(r,a.Event.deserializeBinaryFromReader),e.addEvents(r);break;default:t.skipField()}return e},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.GetEventsForBlockIDsResponse.Result.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.GetEventsForBlockIDsResponse.Result.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockId_asU8()).length>0&&t.writeBytes(1,r),0!==(r=e.getBlockHeight())&&t.writeUint64(2,r),(r=e.getEventsList()).length>0&&t.writeRepeatedMessage(3,r,a.Event.serializeBinaryToWriter)},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.getBlockId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.getBlockId_asB64=function(){return o.Message.bytesAsB64(this.getBlockId())},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.getBlockId_asU8=function(){return o.Message.bytesAsU8(this.getBlockId())},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.setBlockId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.getBlockHeight=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.setBlockHeight=function(e){return o.Message.setProto3IntField(this,2,e)},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.getEventsList=function(){return o.Message.getRepeatedWrapperField(this,a.Event,3)},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.setEventsList=function(e){return o.Message.setRepeatedWrapperField(this,3,e)},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.addEvents=function(e,t){return o.Message.addToRepeatedWrapperField(this,3,e,proto.entities.Event,t)},proto.execution.GetEventsForBlockIDsResponse.Result.prototype.clearEventsList=function(){return this.setEventsList([])},proto.execution.GetEventsForBlockIDsResponse.prototype.getResultsList=function(){return o.Message.getRepeatedWrapperField(this,proto.execution.GetEventsForBlockIDsResponse.Result,1)},proto.execution.GetEventsForBlockIDsResponse.prototype.setResultsList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.execution.GetEventsForBlockIDsResponse.prototype.addResults=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.execution.GetEventsForBlockIDsResponse.Result,t)},proto.execution.GetEventsForBlockIDsResponse.prototype.clearResultsList=function(){return this.setResultsList([])},proto.execution.GetEventsForBlockIDsRequest.repeatedFields_=[2],o.Message.GENERATE_TO_OBJECT&&(proto.execution.GetEventsForBlockIDsRequest.prototype.toObject=function(e){return proto.execution.GetEventsForBlockIDsRequest.toObject(e,this)},proto.execution.GetEventsForBlockIDsRequest.toObject=function(e,t){var r={type:o.Message.getFieldWithDefault(t,1,""),blockIdsList:t.getBlockIdsList_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.GetEventsForBlockIDsRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.GetEventsForBlockIDsRequest;return proto.execution.GetEventsForBlockIDsRequest.deserializeBinaryFromReader(r,t)},proto.execution.GetEventsForBlockIDsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setType(r);break;case 2:r=t.readBytes(),e.addBlockIds(r);break;default:t.skipField()}return e},proto.execution.GetEventsForBlockIDsRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.GetEventsForBlockIDsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.GetEventsForBlockIDsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getType()).length>0&&t.writeString(1,r),(r=e.getBlockIdsList_asU8()).length>0&&t.writeRepeatedBytes(2,r)},proto.execution.GetEventsForBlockIDsRequest.prototype.getType=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.execution.GetEventsForBlockIDsRequest.prototype.setType=function(e){return o.Message.setProto3StringField(this,1,e)},proto.execution.GetEventsForBlockIDsRequest.prototype.getBlockIdsList=function(){return o.Message.getRepeatedField(this,2)},proto.execution.GetEventsForBlockIDsRequest.prototype.getBlockIdsList_asB64=function(){return o.Message.bytesListAsB64(this.getBlockIdsList())},proto.execution.GetEventsForBlockIDsRequest.prototype.getBlockIdsList_asU8=function(){return o.Message.bytesListAsU8(this.getBlockIdsList())},proto.execution.GetEventsForBlockIDsRequest.prototype.setBlockIdsList=function(e){return o.Message.setField(this,2,e||[])},proto.execution.GetEventsForBlockIDsRequest.prototype.addBlockIds=function(e,t){return o.Message.addToRepeatedField(this,2,e,t)},proto.execution.GetEventsForBlockIDsRequest.prototype.clearBlockIdsList=function(){return this.setBlockIdsList([])},o.Message.GENERATE_TO_OBJECT&&(proto.execution.GetTransactionResultRequest.prototype.toObject=function(e){return proto.execution.GetTransactionResultRequest.toObject(e,this)},proto.execution.GetTransactionResultRequest.toObject=function(e,t){var r={blockId:t.getBlockId_asB64(),transactionId:t.getTransactionId_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.GetTransactionResultRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.GetTransactionResultRequest;return proto.execution.GetTransactionResultRequest.deserializeBinaryFromReader(r,t)},proto.execution.GetTransactionResultRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setBlockId(r);break;case 2:r=t.readBytes(),e.setTransactionId(r);break;default:t.skipField()}return e},proto.execution.GetTransactionResultRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.GetTransactionResultRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.GetTransactionResultRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getBlockId_asU8()).length>0&&t.writeBytes(1,r),(r=e.getTransactionId_asU8()).length>0&&t.writeBytes(2,r)},proto.execution.GetTransactionResultRequest.prototype.getBlockId=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.execution.GetTransactionResultRequest.prototype.getBlockId_asB64=function(){return o.Message.bytesAsB64(this.getBlockId())},proto.execution.GetTransactionResultRequest.prototype.getBlockId_asU8=function(){return o.Message.bytesAsU8(this.getBlockId())},proto.execution.GetTransactionResultRequest.prototype.setBlockId=function(e){return o.Message.setProto3BytesField(this,1,e)},proto.execution.GetTransactionResultRequest.prototype.getTransactionId=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.execution.GetTransactionResultRequest.prototype.getTransactionId_asB64=function(){return o.Message.bytesAsB64(this.getTransactionId())},proto.execution.GetTransactionResultRequest.prototype.getTransactionId_asU8=function(){return o.Message.bytesAsU8(this.getTransactionId())},proto.execution.GetTransactionResultRequest.prototype.setTransactionId=function(e){return o.Message.setProto3BytesField(this,2,e)},proto.execution.GetTransactionResultResponse.repeatedFields_=[3],o.Message.GENERATE_TO_OBJECT&&(proto.execution.GetTransactionResultResponse.prototype.toObject=function(e){return proto.execution.GetTransactionResultResponse.toObject(e,this)},proto.execution.GetTransactionResultResponse.toObject=function(e,t){var r={statusCode:o.Message.getFieldWithDefault(t,1,0),errorMessage:o.Message.getFieldWithDefault(t,2,""),eventsList:o.Message.toObjectList(t.getEventsList(),a.Event.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.execution.GetTransactionResultResponse.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.execution.GetTransactionResultResponse;return proto.execution.GetTransactionResultResponse.deserializeBinaryFromReader(r,t)},proto.execution.GetTransactionResultResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setStatusCode(r);break;case 2:r=t.readString(),e.setErrorMessage(r);break;case 3:r=new a.Event,t.readMessage(r,a.Event.deserializeBinaryFromReader),e.addEvents(r);break;default:t.skipField()}return e},proto.execution.GetTransactionResultResponse.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.execution.GetTransactionResultResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.execution.GetTransactionResultResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStatusCode())&&t.writeUint32(1,r),(r=e.getErrorMessage()).length>0&&t.writeString(2,r),(r=e.getEventsList()).length>0&&t.writeRepeatedMessage(3,r,a.Event.serializeBinaryToWriter)},proto.execution.GetTransactionResultResponse.prototype.getStatusCode=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.execution.GetTransactionResultResponse.prototype.setStatusCode=function(e){return o.Message.setProto3IntField(this,1,e)},proto.execution.GetTransactionResultResponse.prototype.getErrorMessage=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.execution.GetTransactionResultResponse.prototype.setErrorMessage=function(e){return o.Message.setProto3StringField(this,2,e)},proto.execution.GetTransactionResultResponse.prototype.getEventsList=function(){return o.Message.getRepeatedWrapperField(this,a.Event,3)},proto.execution.GetTransactionResultResponse.prototype.setEventsList=function(e){return o.Message.setRepeatedWrapperField(this,3,e)},proto.execution.GetTransactionResultResponse.prototype.addEvents=function(e,t){return o.Message.addToRepeatedWrapperField(this,3,e,proto.entities.Event,t)},proto.execution.GetTransactionResultResponse.prototype.clearEventsList=function(){return this.setEventsList([])},n.object.extend(t,proto.execution)},function(e,t,r){var o=r(4),n=r(11).grpc,s=function(){function e(){}return e.serviceName="access.AccessAPI",e}();function i(e,t){this.serviceHost=e,this.options=t||{}}s.Ping={methodName:"Ping",service:s,requestStream:!1,responseStream:!1,requestType:o.PingRequest,responseType:o.PingResponse},s.GetLatestBlockHeader={methodName:"GetLatestBlockHeader",service:s,requestStream:!1,responseStream:!1,requestType:o.GetLatestBlockHeaderRequest,responseType:o.BlockHeaderResponse},s.GetBlockHeaderByID={methodName:"GetBlockHeaderByID",service:s,requestStream:!1,responseStream:!1,requestType:o.GetBlockHeaderByIDRequest,responseType:o.BlockHeaderResponse},s.GetBlockHeaderByHeight={methodName:"GetBlockHeaderByHeight",service:s,requestStream:!1,responseStream:!1,requestType:o.GetBlockHeaderByHeightRequest,responseType:o.BlockHeaderResponse},s.GetLatestBlock={methodName:"GetLatestBlock",service:s,requestStream:!1,responseStream:!1,requestType:o.GetLatestBlockRequest,responseType:o.BlockResponse},s.GetBlockByID={methodName:"GetBlockByID",service:s,requestStream:!1,responseStream:!1,requestType:o.GetBlockByIDRequest,responseType:o.BlockResponse},s.GetBlockByHeight={methodName:"GetBlockByHeight",service:s,requestStream:!1,responseStream:!1,requestType:o.GetBlockByHeightRequest,responseType:o.BlockResponse},s.GetCollectionByID={methodName:"GetCollectionByID",service:s,requestStream:!1,responseStream:!1,requestType:o.GetCollectionByIDRequest,responseType:o.CollectionResponse},s.SendTransaction={methodName:"SendTransaction",service:s,requestStream:!1,responseStream:!1,requestType:o.SendTransactionRequest,responseType:o.SendTransactionResponse},s.GetTransaction={methodName:"GetTransaction",service:s,requestStream:!1,responseStream:!1,requestType:o.GetTransactionRequest,responseType:o.TransactionResponse},s.GetTransactionResult={methodName:"GetTransactionResult",service:s,requestStream:!1,responseStream:!1,requestType:o.GetTransactionRequest,responseType:o.TransactionResultResponse},s.GetAccount={methodName:"GetAccount",service:s,requestStream:!1,responseStream:!1,requestType:o.GetAccountRequest,responseType:o.GetAccountResponse},s.ExecuteScriptAtLatestBlock={methodName:"ExecuteScriptAtLatestBlock",service:s,requestStream:!1,responseStream:!1,requestType:o.ExecuteScriptAtLatestBlockRequest,responseType:o.ExecuteScriptResponse},s.ExecuteScriptAtBlockID={methodName:"ExecuteScriptAtBlockID",service:s,requestStream:!1,responseStream:!1,requestType:o.ExecuteScriptAtBlockIDRequest,responseType:o.ExecuteScriptResponse},s.ExecuteScriptAtBlockHeight={methodName:"ExecuteScriptAtBlockHeight",service:s,requestStream:!1,responseStream:!1,requestType:o.ExecuteScriptAtBlockHeightRequest,responseType:o.ExecuteScriptResponse},s.GetEventsForHeightRange={methodName:"GetEventsForHeightRange",service:s,requestStream:!1,responseStream:!1,requestType:o.GetEventsForHeightRangeRequest,responseType:o.EventsResponse},s.GetEventsForBlockIDs={methodName:"GetEventsForBlockIDs",service:s,requestStream:!1,responseStream:!1,requestType:o.GetEventsForBlockIDsRequest,responseType:o.EventsResponse},t.AccessAPI=s,i.prototype.ping=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.Ping,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getLatestBlockHeader=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetLatestBlockHeader,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getBlockHeaderByID=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetBlockHeaderByID,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getBlockHeaderByHeight=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetBlockHeaderByHeight,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getLatestBlock=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetLatestBlock,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getBlockByID=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetBlockByID,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getBlockByHeight=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetBlockByHeight,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getCollectionByID=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetCollectionByID,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.sendTransaction=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.SendTransaction,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getTransaction=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetTransaction,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getTransactionResult=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetTransactionResult,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getAccount=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetAccount,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.executeScriptAtLatestBlock=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.ExecuteScriptAtLatestBlock,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.executeScriptAtBlockID=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.ExecuteScriptAtBlockID,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.executeScriptAtBlockHeight=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.ExecuteScriptAtBlockHeight,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getEventsForHeightRange=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetEventsForHeightRange,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getEventsForBlockIDs=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetEventsForBlockIDs,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.AccessAPIClient=i},function(e,t){!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(4);t.Metadata=o.BrowserHeaders},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.debug?console.debug.apply(null,e):console.log.apply(null,e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=null;t.default=function(e){null===o?(o=[e],setTimeout(function(){!function e(){if(o){var t=o;o=null;for(var r=0;r<t.length;r++)try{t[r]()}catch(s){null===o&&(o=[],setTimeout(function(){e()},0));for(var n=t.length-1;n>r;n--)o.unshift(t[n]);throw s}}}()},0)):o.push(e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),n=r(9),s=r(10),i=r(1),a=r(2),g=r(5),c=r(15);t.client=function(e,t){return new u(e,t)};var u=function(){function e(e,t){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new n.ChunkParser,this.methodDefinition=e,this.props=t,this.createTransport()}return e.prototype.createTransport=function(){var e={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.transport=this.props.transport?this.props.transport(e):g.makeDefaultTransport(e)},e.prototype.onTransportHeaders=function(e,t){if(this.props.debug&&i.debug("onHeaders",e,t),this.closed)this.props.debug&&i.debug("grpc.onHeaders received after request was closed - ignoring");else if(0===t);else{this.responseHeaders=e,this.props.debug&&i.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var r=l(e);this.props.debug&&i.debug("onHeaders.gRPCStatus",r);var o=r&&r>=0?r:s.httpStatusToCode(t);this.props.debug&&i.debug("onHeaders.code",o);var n=e.get("grpc-message")||[];if(this.props.debug&&i.debug("onHeaders.gRPCMessage",n),this.rawOnHeaders(e),o!==s.Code.OK){var a=this.decodeGRPCStatus(n[0]);this.rawOnError(o,a,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&i.debug("grpc.onChunk received after request was closed - ignoring");else{var r=[];try{r=this.parser.parse(e)}catch(e){return this.props.debug&&i.debug("onChunk.parsing error",e,e.message),void this.rawOnError(s.Code.Internal,"parsing error: "+e.message)}r.forEach(function(e){if(e.chunkType===n.ChunkType.MESSAGE){var r=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(r)}else e.chunkType===n.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new o.Metadata(e.trailers),t.props.debug&&i.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new o.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))})}},e.prototype.onTransportEnd=function(){if(this.props.debug&&i.debug("grpc.onEnd"),this.closed)this.props.debug&&i.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=l(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),r=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,r,this.responseTrailers)}else this.rawOnError(s.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(s.Code.Unknown,"Response closed without headers");var o=l(this.responseHeaders),n=this.responseHeaders.get("grpc-message");if(this.props.debug&&i.debug("grpc.headers only response ",o,n),null===o)return void this.rawOnEnd(s.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var a=this.decodeGRPCStatus(n[0]);this.rawOnEnd(o,a,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,r){var o=this;this.props.debug&&i.debug("rawOnEnd",e,t,r),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(n){a.default(function(){o.closed||n(e,t,r)})}))},e.prototype.rawOnHeaders=function(e){this.props.debug&&i.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach(function(t){a.default(function(){t(e)})})},e.prototype.rawOnError=function(e,t,r){var n=this;void 0===r&&(r=new o.Metadata),this.props.debug&&i.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(o){a.default(function(){n.closed||o(e,t,r)})}))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&i.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(r){a.default(function(){t.closed||r(e)})})},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new o.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&i.debug("request.abort aborting request"),this.transport.cancel()},e}();function l(e){var t=e.get("grpc-status")||[];if(t.length>0)try{return parseInt(t[0],10)}catch(e){return null}return null}},function(e,t,r){var o;o=function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(3),n=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var r,n=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?o.getHeaderKeys(e).forEach(function(r){o.getHeaderValues(e,r).forEach(function(e){n.append(r,t.splitValues?o.splitHeaderValue(e):e)})}):"object"==typeof(r=e)&&"object"==typeof r.headersMap&&"function"==typeof r.forEach?e.forEach(function(e,t){n.append(e,t)}):"undefined"!=typeof Map&&e instanceof Map?e.forEach(function(e,t){n.append(t,e)}):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];Array.isArray(r)?r.forEach(function(e){n.append(t,e)}):n.append(t,r)}))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),r=0;r<t.length;r++){var o=t[r],n=o.indexOf(":");if(n>0){var s=o.substring(0,n).trim(),i=o.substring(n+1).trim();this.append(s,i)}}},e.prototype.delete=function(e,t){var r=o.normalizeName(e);if(void 0===t)delete this.headersMap[r];else{var n=this.headersMap[r];if(n){var s=n.indexOf(t);s>=0&&n.splice(s,1),0===n.length&&delete this.headersMap[r]}}},e.prototype.append=function(e,t){var r=this,n=o.normalizeName(e);Array.isArray(this.headersMap[n])||(this.headersMap[n]=[]),Array.isArray(t)?t.forEach(function(e){r.headersMap[n].push(o.normalizeValue(e))}):this.headersMap[n].push(o.normalizeValue(t))},e.prototype.set=function(e,t){var r=o.normalizeName(e);if(Array.isArray(t)){var n=[];t.forEach(function(e){n.push(o.normalizeValue(e))}),this.headersMap[r]=n}else this.headersMap[r]=[o.normalizeValue(t)]},e.prototype.has=function(e,t){var r=this.headersMap[o.normalizeName(e)];if(!Array.isArray(r))return!1;if(void 0!==t){var n=o.normalizeValue(t);return r.indexOf(n)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[o.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(r){e(r,t.headersMap[r])},this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach(function(t,r){r.forEach(function(r){e.append(t,r)})}),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.BrowserHeaders=o.BrowserHeaders},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var r=e[Symbol.iterator](),o=r.next();!o.done;)t(o.value[0]),o=r.next()},t.iterateHeadersKeys=function(e,t){for(var r=e.keys(),o=r.next();!o.done;)t(o.value),o=r.next()}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var r=e;if(r instanceof Headers&&r.getAll)return r.getAll(t);var o=r.get(t);return o&&"string"==typeof o?[o]:o},t.getHeaderKeys=function(e){var t=e,r={},n=[];return t.keys?o.iterateHeadersKeys(t,function(e){r[e]||(r[e]=!0,n.push(e))}):t.forEach?t.forEach(function(e,t){r[t]||(r[t]=!0,n.push(t))}):o.iterateHeaders(t,function(e){var t=e[0];r[t]||(r[t]=!0,n.push(t))}),n},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach(function(e){e.split(",").forEach(function(e){t.push(e)})}),t}}])},e.exports=o()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(6),n=function(e){return o.CrossBrowserHttpTransport({withCredentials:!1})(e)};t.setDefaultTransportFactory=function(e){n=e},t.makeDefaultTransport=function(e){return n(e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(7),n=r(8);t.CrossBrowserHttpTransport=function(e){return o.detectFetchSupport()?o.FetchReadableStreamTransport({credentials:e.withCredentials?"include":"same-origin"}):n.XhrTransport({withCredentials:e.withCredentials})}},function(e,t,r){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),s=r(1),i=r(2);t.FetchReadableStreamTransport=function(e){return function(t){return function(e,t){return e.debug&&s.debug("fetchRequest",e),new a(e,t)}(t,e)}};var a=function(){function e(e,t){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=e,this.init=t}return e.prototype.pump=function(e,t){var r=this;if(this.reader=e,this.cancelled)return this.options.debug&&s.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel();this.reader.read().then(function(e){if(e.done)return i.default(function(){r.options.onEnd()}),t;i.default(function(){r.options.onChunk(e.value)}),r.pump(r.reader,t)}).catch(function(e){r.cancelled?r.options.debug&&s.debug("Fetch.catch - request cancelled"):(r.cancelled=!0,r.options.debug&&s.debug("Fetch.catch",e.message),i.default(function(){r.options.onEnd(e)}))})},e.prototype.send=function(e){var t=this;fetch(this.options.url,o({},this.init,{headers:this.metadata.toHeaders(),method:"POST",body:e,signal:this.controller&&this.controller.signal})).then(function(e){if(t.options.debug&&s.debug("Fetch.response",e),i.default(function(){t.options.onHeaders(new n.Metadata(e.headers),e.status)}),!e.body)return e;t.pump(e.body.getReader(),e)}).catch(function(e){t.cancelled?t.options.debug&&s.debug("Fetch.catch - request cancelled"):(t.cancelled=!0,t.options.debug&&s.debug("Fetch.catch",e.message),i.default(function(){t.options.onEnd(e)}))})},e.prototype.sendMessage=function(e){this.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){this.metadata=e},e.prototype.cancel=function(){this.cancelled?this.options.debug&&s.debug("Fetch.abort.cancel already cancelled"):(this.cancelled=!0,this.reader?(this.options.debug&&s.debug("Fetch.abort.cancel"),this.reader.cancel()):this.options.debug&&s.debug("Fetch.abort.cancel before reader"),this.controller&&this.controller.abort())},e}();t.detectFetchSupport=function(){return"undefined"!=typeof Response&&Response.prototype.hasOwnProperty("body")&&"function"==typeof Headers}},function(e,t,r){var o,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var s=r(0),i=r(1),a=r(2),g=r(12);t.XhrTransport=function(e){return function(t){if(g.detectMozXHRSupport())return new u(t,e);if(g.detectXHROverrideMimeTypeSupport())return new c(t,e);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var c=function(){function e(e,t){this.options=e,this.init=t}return e.prototype.onProgressEvent=function(){var e=this;this.options.debug&&i.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var t=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var r=p(t);a.default(function(){e.options.onChunk(r)})},e.prototype.onLoadEvent=function(){var e=this;this.options.debug&&i.debug("XHR.onLoadEvent"),a.default(function(){e.options.onEnd()})},e.prototype.onStateChange=function(){var e=this;this.options.debug&&i.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&a.default(function(){e.options.onHeaders(new s.Metadata(e.xhr.getAllResponseHeaders()),e.xhr.status)})},e.prototype.sendMessage=function(e){this.xhr.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){var t=this;this.metadata=e;var r=new XMLHttpRequest;this.xhr=r,r.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach(function(e,t){r.setRequestHeader(e,t.join(", "))}),r.withCredentials=Boolean(this.init.withCredentials),r.addEventListener("readystatechange",this.onStateChange.bind(this)),r.addEventListener("progress",this.onProgressEvent.bind(this)),r.addEventListener("loadend",this.onLoadEvent.bind(this)),r.addEventListener("error",function(e){t.options.debug&&i.debug("XHR.error",e),a.default(function(){t.options.onEnd(e.error)})})},e.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},e.prototype.cancel=function(){this.options.debug&&i.debug("XHR.abort"),this.xhr.abort()},e}();t.XHR=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.configureXhr=function(){this.options.debug&&i.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},t.prototype.onProgressEvent=function(){var e=this,t=this.xhr.response;this.options.debug&&i.debug("MozXHR.onProgressEvent: ",new Uint8Array(t)),a.default(function(){e.options.onChunk(new Uint8Array(t))})},t}(c);function l(e,t){var r=e.charCodeAt(t);if(r>=55296&&r<=56319){var o=e.charCodeAt(t+1);o>=56320&&o<=57343&&(r=65536+(r-55296<<10)+(o-56320))}return r}function p(e){for(var t=new Uint8Array(e.length),r=0,o=0;o<e.length;o++){var n=String.prototype.codePointAt?e.codePointAt(o):l(e,o);t[r++]=255&n}return t}t.MozChunkedArrayBufferXHR=u,t.stringToArrayBuffer=p},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o,n=r(0);function s(e){return function(e){return 9===e||10===e||13===e}(e)||e>=32&&e<=126}function i(e){for(var t=0;t!==e.length;++t)if(!s(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function a(e){return 128==(128&e.getUint8(0))}function g(e){return e.getUint32(1,!1)}function c(e,t,r){return e.byteLength-t>=r}function u(e,t,r){if(e.slice)return e.slice(t,r);var o=e.length;void 0!==r&&(o=r);for(var n=new Uint8Array(o-t),s=0,i=t;i<o;i++)n[s++]=e[i];return n}t.decodeASCII=i,t.encodeASCII=function(e){for(var t=new Uint8Array(e.length),r=0;r!==e.length;++r){var o=e.charCodeAt(r);if(!s(o))throw new Error("Metadata contains invalid ASCII");t[r]=o}return t},function(e){e[e.MESSAGE=1]="MESSAGE",e[e.TRAILERS=2]="TRAILERS"}(o=t.ChunkType||(t.ChunkType={}));var l=function(){function e(){this.buffer=null,this.position=0}return e.prototype.parse=function(e,t){if(0===e.length&&t)return[];var r,s=[];if(null==this.buffer)this.buffer=e,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=e,this.position=0;else{var l=this.buffer.byteLength-this.position,p=new Uint8Array(l+e.byteLength),d=u(this.buffer,this.position);p.set(d,0);var f=new Uint8Array(e);p.set(f,l),this.buffer=p,this.position=0}for(;;){if(!c(this.buffer,this.position,5))return s;var h=u(this.buffer,this.position,this.position+5),y=new DataView(h.buffer,h.byteOffset,h.byteLength),m=g(y);if(!c(this.buffer,this.position,5+m))return s;var b=u(this.buffer,this.position+5,this.position+5+m);if(this.position+=5+m,a(y))return s.push({chunkType:o.TRAILERS,trailers:(r=b,new n.Metadata(i(r)))}),s;s.push({chunkType:o.MESSAGE,data:b})}},e}();t.ChunkParser=l},function(e,t,r){var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OK=0]="OK",e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"}(o=t.Code||(t.Code={})),t.httpStatusToCode=function(e){switch(e){case 0:return o.Internal;case 200:return o.OK;case 400:return o.InvalidArgument;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.NotFound;case 409:return o.Aborted;case 412:return o.FailedPrecondition;case 429:return o.ResourceExhausted;case 499:return o.Canceled;case 500:return o.Unknown;case 501:return o.Unimplemented;case 503:return o.Unavailable;case 504:return o.DeadlineExceeded;default:return o.Unknown}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),n=r(5),s=r(7),i=r(13),a=r(8),g=r(6),c=r(10),u=r(14),l=r(16),p=r(3);!function(e){e.setDefaultTransport=n.setDefaultTransportFactory,e.CrossBrowserHttpTransport=g.CrossBrowserHttpTransport,e.FetchReadableStreamTransport=s.FetchReadableStreamTransport,e.XhrTransport=a.XhrTransport,e.WebsocketTransport=i.WebsocketTransport,e.Code=c.Code,e.Metadata=o.BrowserHeaders,e.client=function(e,t){return p.client(e,t)},e.invoke=u.invoke,e.unary=l.unary}(t.grpc||(t.grpc={}))},function(e,t,r){var o;function n(e){var t=function(){if(void 0!==o)return o;if(XMLHttpRequest){o=new XMLHttpRequest;try{o.open("GET","https://localhost")}catch(e){}}return o}();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.xhrSupportsResponseType=n,t.detectMozXHRSupport=function(){return"undefined"!=typeof XMLHttpRequest&&n("moz-chunked-arraybuffer")},t.detectXHROverrideMimeTypeSupport=function(){return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o,n=r(1),s=r(2),i=r(9);!function(e){e[e.FINISH_SEND=1]="FINISH_SEND"}(o||(o={}));var a=new Uint8Array([1]);t.WebsocketTransport=function(){return function(e){return function(e){e.debug&&n.debug("websocketRequest",e);var t,r=function(e){if("https://"===e.substr(0,8))return"wss://"+e.substr(8);if("http://"===e.substr(0,7))return"ws://"+e.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(e.url),g=[];function c(e){if(e===o.FINISH_SEND)t.send(a);else{var r=e,n=new Int8Array(r.byteLength+1);n.set(new Uint8Array([0])),n.set(r,1),t.send(n)}}return{sendMessage:function(e){t&&t.readyState!==t.CONNECTING?c(e):g.push(e)},finishSend:function(){t&&t.readyState!==t.CONNECTING?c(o.FINISH_SEND):g.push(o.FINISH_SEND)},start:function(o){(t=new WebSocket(r,["grpc-websockets"])).binaryType="arraybuffer",t.onopen=function(){var r;e.debug&&n.debug("websocketRequest.onopen"),t.send((r="",o.forEach(function(e,t){r+=e+": "+t.join(", ")+"\r\n"}),i.encodeASCII(r))),g.forEach(function(e){c(e)})},t.onclose=function(t){e.debug&&n.debug("websocketRequest.onclose",t),s.default(function(){e.onEnd()})},t.onerror=function(t){e.debug&&n.debug("websocketRequest.onerror",t)},t.onmessage=function(t){s.default(function(){e.onChunk(new Uint8Array(t.data))})}},cancel:function(){e.debug&&n.debug("websocket.abort"),s.default(function(){t.close()})}}}(e)}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(3);t.invoke=function(e,t){if(e.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var r=o.client(e,{host:t.host,transport:t.transport,debug:t.debug});return t.onHeaders&&r.onHeaders(t.onHeaders),t.onMessage&&r.onMessage(t.onMessage),t.onEnd&&r.onEnd(t.onEnd),r.start(t.metadata),r.send(t.request),r.finishSend(),{close:function(){r.close()}}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=function(e){var t=e.serializeBinary(),r=new ArrayBuffer(t.byteLength+5);return new DataView(r,1,4).setUint32(0,t.length,!1),new Uint8Array(r,5).set(t),new Uint8Array(r)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),n=r(3);t.unary=function(e,t){if(e.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(e.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var r=null,s=null,i=n.client(e,{host:t.host,transport:t.transport,debug:t.debug});return i.onHeaders(function(e){r=e}),i.onMessage(function(e){s=e}),i.onEnd(function(e,n,i){t.onEnd({status:e,statusMessage:n,headers:r||new o.Metadata,message:s,trailers:i})}),i.start(t.metadata),i.send(t.request),i.finishSend(),{close:function(){i.close()}}}}]))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,r){var o=r(9),n=r(11).grpc,s=function(){function e(){}return e.serviceName="execution.ExecutionAPI",e}();function i(e,t){this.serviceHost=e,this.options=t||{}}s.Ping={methodName:"Ping",service:s,requestStream:!1,responseStream:!1,requestType:o.PingRequest,responseType:o.PingResponse},s.GetAccountAtBlockID={methodName:"GetAccountAtBlockID",service:s,requestStream:!1,responseStream:!1,requestType:o.GetAccountAtBlockIDRequest,responseType:o.GetAccountAtBlockIDResponse},s.ExecuteScriptAtBlockID={methodName:"ExecuteScriptAtBlockID",service:s,requestStream:!1,responseStream:!1,requestType:o.ExecuteScriptAtBlockIDRequest,responseType:o.ExecuteScriptAtBlockIDResponse},s.GetEventsForBlockIDs={methodName:"GetEventsForBlockIDs",service:s,requestStream:!1,responseStream:!1,requestType:o.GetEventsForBlockIDsRequest,responseType:o.GetEventsForBlockIDsResponse},s.GetTransactionResult={methodName:"GetTransactionResult",service:s,requestStream:!1,responseStream:!1,requestType:o.GetTransactionResultRequest,responseType:o.GetTransactionResultResponse},t.ExecutionAPI=s,i.prototype.ping=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.Ping,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getAccountAtBlockID=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetAccountAtBlockID,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.executeScriptAtBlockID=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.ExecuteScriptAtBlockID,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getEventsForBlockIDs=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetEventsForBlockIDs,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},i.prototype.getTransactionResult=function(e,t,r){2===arguments.length&&(r=arguments[1]);var o=n.unary(s.GetTransactionResult,{request:e,host:this.serviceHost,metadata:t,transport:this.options.transport,debug:this.options.debug,onEnd:function(e){if(r)if(e.status!==n.Code.OK){var t=new Error(e.statusMessage);t.code=e.status,t.metadata=e.trailers,r(t,null)}else r(null,e.message)}});return{cancel:function(){r=null,o.close()}}},t.ExecutionAPIClient=i},function(e,t,r){r.r(t);var o=r(10);for(var n in o)"default"!==n&&function(e){r.d(t,e,function(){return o[e]})}(n);var s=r(4);for(var n in s)"default"!==n&&function(e){r.d(t,e,function(){return s[e]})}(n);var i=r(12);for(var n in i)"default"!==n&&function(e){r.d(t,e,function(){return i[e]})}(n);var a=r(2);for(var n in a)"default"!==n&&function(e){r.d(t,e,function(){return a[e]})}(n);var g=r(13);for(var n in g)"default"!==n&&function(e){r.d(t,e,function(){return g[e]})}(n);var c=r(5);for(var n in c)"default"!==n&&function(e){r.d(t,e,function(){return c[e]})}(n);var u=r(14);for(var n in u)"default"!==n&&function(e){r.d(t,e,function(){return u[e]})}(n);var l=r(6);for(var n in l)"default"!==n&&function(e){r.d(t,e,function(){return l[e]})}(n);var p=r(15);for(var n in p)"default"!==n&&function(e){r.d(t,e,function(){return p[e]})}(n);var d=r(7);for(var n in d)"default"!==n&&function(e){r.d(t,e,function(){return d[e]})}(n);var f=r(16);for(var n in f)"default"!==n&&function(e){r.d(t,e,function(){return f[e]})}(n);var h=r(1);for(var n in h)"default"!==n&&function(e){r.d(t,e,function(){return h[e]})}(n);var y=r(17);for(var n in y)"default"!==n&&function(e){r.d(t,e,function(){return y[e]})}(n);var m=r(3);for(var n in m)"default"!==n&&function(e){r.d(t,e,function(){return m[e]})}(n);var b=r(18);for(var n in b)"default"!==n&&function(e){r.d(t,e,function(){return b[e]})}(n);var S=r(8);for(var n in S)"default"!==n&&function(e){r.d(t,e,function(){return S[e]})}(n);var E=r(19);for(var n in E)"default"!==n&&function(e){r.d(t,e,function(){return E[e]})}(n);var _=r(9);for(var n in _)"default"!==n&&function(e){r.d(t,e,function(){return _[e]})}(n)},function(e,t,r){var o=r(0),n=o,s=Function("return this")();n.exportSymbol("proto.google.protobuf.Timestamp",null,s),proto.google.protobuf.Timestamp=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.google.protobuf.Timestamp,o.Message),n.DEBUG&&!COMPILED&&(proto.google.protobuf.Timestamp.displayName="proto.google.protobuf.Timestamp"),o.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Timestamp.prototype.toObject=function(e){return proto.google.protobuf.Timestamp.toObject(e,this)},proto.google.protobuf.Timestamp.toObject=function(e,t){var r={seconds:o.Message.getFieldWithDefault(t,1,0),nanos:o.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.google.protobuf.Timestamp.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.google.protobuf.Timestamp;return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(r,t)},proto.google.protobuf.Timestamp.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readInt64();e.setSeconds(r);break;case 2:r=t.readInt32(),e.setNanos(r);break;default:t.skipField()}return e},proto.google.protobuf.Timestamp.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.google.protobuf.Timestamp.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.protobuf.Timestamp.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getSeconds())&&t.writeInt64(1,r),0!==(r=e.getNanos())&&t.writeInt32(2,r)},proto.google.protobuf.Timestamp.prototype.getSeconds=function(){return o.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Timestamp.prototype.setSeconds=function(e){return o.Message.setProto3IntField(this,1,e)},proto.google.protobuf.Timestamp.prototype.getNanos=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.Timestamp.prototype.setNanos=function(e){return o.Message.setProto3IntField(this,2,e)},n.object.extend(t,proto.google.protobuf),proto.google.protobuf.Timestamp.prototype.toDate=function(){var e=this.getSeconds(),t=this.getNanos();return new Date(1e3*e+t/1e6)},proto.google.protobuf.Timestamp.prototype.fromDate=function(e){this.setSeconds(Math.floor(e.getTime()/1e3)),this.setNanos(1e6*e.getMilliseconds())},proto.google.protobuf.Timestamp.fromDate=function(e){var t=new proto.google.protobuf.Timestamp;return t.fromDate(e),t}}]),n$2=function(){return JSON.parse('{"tag": 0, "transaction":null, "transactionId":null, "encodedData":null, "events": null, "account": null}')},grpcWebClient_umd=createCommonjsModule(function(e,t){e.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(4);t.Metadata=o.BrowserHeaders},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.debug?console.debug.apply(null,e):console.log.apply(null,e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=null;t.default=function(e){null===o?(o=[e],setTimeout(function(){!function e(){if(o){var t=o;o=null;for(var r=0;r<t.length;r++)try{t[r]()}catch(s){null===o&&(o=[],setTimeout(function(){e()},0));for(var n=t.length-1;n>r;n--)o.unshift(t[n]);throw s}}}()},0)):o.push(e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),n=r(9),s=r(10),i=r(1),a=r(2),g=r(5),c=r(15);t.client=function(e,t){return new u(e,t)};var u=function(){function e(e,t){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new n.ChunkParser,this.methodDefinition=e,this.props=t,this.createTransport()}return e.prototype.createTransport=function(){var e={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.transport=this.props.transport?this.props.transport(e):g.makeDefaultTransport(e)},e.prototype.onTransportHeaders=function(e,t){if(this.props.debug&&i.debug("onHeaders",e,t),this.closed)this.props.debug&&i.debug("grpc.onHeaders received after request was closed - ignoring");else if(0===t);else{this.responseHeaders=e,this.props.debug&&i.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var r=l(e);this.props.debug&&i.debug("onHeaders.gRPCStatus",r);var o=r&&r>=0?r:s.httpStatusToCode(t);this.props.debug&&i.debug("onHeaders.code",o);var n=e.get("grpc-message")||[];if(this.props.debug&&i.debug("onHeaders.gRPCMessage",n),this.rawOnHeaders(e),o!==s.Code.OK){var a=this.decodeGRPCStatus(n[0]);this.rawOnError(o,a,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&i.debug("grpc.onChunk received after request was closed - ignoring");else{var r=[];try{r=this.parser.parse(e)}catch(e){return this.props.debug&&i.debug("onChunk.parsing error",e,e.message),void this.rawOnError(s.Code.Internal,"parsing error: "+e.message)}r.forEach(function(e){if(e.chunkType===n.ChunkType.MESSAGE){var r=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(r)}else e.chunkType===n.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new o.Metadata(e.trailers),t.props.debug&&i.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new o.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))})}},e.prototype.onTransportEnd=function(){if(this.props.debug&&i.debug("grpc.onEnd"),this.closed)this.props.debug&&i.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=l(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),r=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,r,this.responseTrailers)}else this.rawOnError(s.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(s.Code.Unknown,"Response closed without headers");var o=l(this.responseHeaders),n=this.responseHeaders.get("grpc-message");if(this.props.debug&&i.debug("grpc.headers only response ",o,n),null===o)return void this.rawOnEnd(s.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var a=this.decodeGRPCStatus(n[0]);this.rawOnEnd(o,a,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,r){var o=this;this.props.debug&&i.debug("rawOnEnd",e,t,r),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(n){a.default(function(){o.closed||n(e,t,r)})}))},e.prototype.rawOnHeaders=function(e){this.props.debug&&i.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach(function(t){a.default(function(){t(e)})})},e.prototype.rawOnError=function(e,t,r){var n=this;void 0===r&&(r=new o.Metadata),this.props.debug&&i.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(o){a.default(function(){n.closed||o(e,t,r)})}))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&i.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(r){a.default(function(){t.closed||r(e)})})},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new o.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&i.debug("request.abort aborting request"),this.transport.cancel()},e}();function l(e){var t=e.get("grpc-status")||[];if(t.length>0)try{return parseInt(t[0],10)}catch(e){return null}return null}},function(e,t,r){var o;o=function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(3),n=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var r,n=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?o.getHeaderKeys(e).forEach(function(r){o.getHeaderValues(e,r).forEach(function(e){n.append(r,t.splitValues?o.splitHeaderValue(e):e)})}):"object"==typeof(r=e)&&"object"==typeof r.headersMap&&"function"==typeof r.forEach?e.forEach(function(e,t){n.append(e,t)}):"undefined"!=typeof Map&&e instanceof Map?e.forEach(function(e,t){n.append(t,e)}):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];Array.isArray(r)?r.forEach(function(e){n.append(t,e)}):n.append(t,r)}))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),r=0;r<t.length;r++){var o=t[r],n=o.indexOf(":");if(n>0){var s=o.substring(0,n).trim(),i=o.substring(n+1).trim();this.append(s,i)}}},e.prototype.delete=function(e,t){var r=o.normalizeName(e);if(void 0===t)delete this.headersMap[r];else{var n=this.headersMap[r];if(n){var s=n.indexOf(t);s>=0&&n.splice(s,1),0===n.length&&delete this.headersMap[r]}}},e.prototype.append=function(e,t){var r=this,n=o.normalizeName(e);Array.isArray(this.headersMap[n])||(this.headersMap[n]=[]),Array.isArray(t)?t.forEach(function(e){r.headersMap[n].push(o.normalizeValue(e))}):this.headersMap[n].push(o.normalizeValue(t))},e.prototype.set=function(e,t){var r=o.normalizeName(e);if(Array.isArray(t)){var n=[];t.forEach(function(e){n.push(o.normalizeValue(e))}),this.headersMap[r]=n}else this.headersMap[r]=[o.normalizeValue(t)]},e.prototype.has=function(e,t){var r=this.headersMap[o.normalizeName(e)];if(!Array.isArray(r))return!1;if(void 0!==t){var n=o.normalizeValue(t);return r.indexOf(n)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[o.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(r){e(r,t.headersMap[r])},this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach(function(t,r){r.forEach(function(r){e.append(t,r)})}),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=n},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0);t.BrowserHeaders=o.BrowserHeaders},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var r=e[Symbol.iterator](),o=r.next();!o.done;)t(o.value[0]),o=r.next()},t.iterateHeadersKeys=function(e,t){for(var r=e.keys(),o=r.next();!o.done;)t(o.value),o=r.next()}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var r=e;if(r instanceof Headers&&r.getAll)return r.getAll(t);var o=r.get(t);return o&&"string"==typeof o?[o]:o},t.getHeaderKeys=function(e){var t=e,r={},n=[];return t.keys?o.iterateHeadersKeys(t,function(e){r[e]||(r[e]=!0,n.push(e))}):t.forEach?t.forEach(function(e,t){r[t]||(r[t]=!0,n.push(t))}):o.iterateHeaders(t,function(e){var t=e[0];r[t]||(r[t]=!0,n.push(t))}),n},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach(function(e){e.split(",").forEach(function(e){t.push(e)})}),t}}])},e.exports=o()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(6),n=function(e){return o.CrossBrowserHttpTransport({withCredentials:!1})(e)};t.setDefaultTransportFactory=function(e){n=e},t.makeDefaultTransport=function(e){return n(e)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(7),n=r(8);t.CrossBrowserHttpTransport=function(e){return o.detectFetchSupport()?o.FetchReadableStreamTransport({credentials:e.withCredentials?"include":"same-origin"}):n.XhrTransport({withCredentials:e.withCredentials})}},function(e,t,r){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),s=r(1),i=r(2);t.FetchReadableStreamTransport=function(e){return function(t){return function(e,t){return e.debug&&s.debug("fetchRequest",e),new a(e,t)}(t,e)}};var a=function(){function e(e,t){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=e,this.init=t}return e.prototype.pump=function(e,t){var r=this;if(this.reader=e,this.cancelled)return this.options.debug&&s.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel();this.reader.read().then(function(e){if(e.done)return i.default(function(){r.options.onEnd()}),t;i.default(function(){r.options.onChunk(e.value)}),r.pump(r.reader,t)}).catch(function(e){r.cancelled?r.options.debug&&s.debug("Fetch.catch - request cancelled"):(r.cancelled=!0,r.options.debug&&s.debug("Fetch.catch",e.message),i.default(function(){r.options.onEnd(e)}))})},e.prototype.send=function(e){var t=this;fetch(this.options.url,o({},this.init,{headers:this.metadata.toHeaders(),method:"POST",body:e,signal:this.controller&&this.controller.signal})).then(function(e){if(t.options.debug&&s.debug("Fetch.response",e),i.default(function(){t.options.onHeaders(new n.Metadata(e.headers),e.status)}),!e.body)return e;t.pump(e.body.getReader(),e)}).catch(function(e){t.cancelled?t.options.debug&&s.debug("Fetch.catch - request cancelled"):(t.cancelled=!0,t.options.debug&&s.debug("Fetch.catch",e.message),i.default(function(){t.options.onEnd(e)}))})},e.prototype.sendMessage=function(e){this.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){this.metadata=e},e.prototype.cancel=function(){this.cancelled?this.options.debug&&s.debug("Fetch.abort.cancel already cancelled"):(this.cancelled=!0,this.reader?(this.options.debug&&s.debug("Fetch.abort.cancel"),this.reader.cancel()):this.options.debug&&s.debug("Fetch.abort.cancel before reader"),this.controller&&this.controller.abort())},e}();t.detectFetchSupport=function(){return"undefined"!=typeof Response&&Response.prototype.hasOwnProperty("body")&&"function"==typeof Headers}},function(e,t,r){var o,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var s=r(0),i=r(1),a=r(2),g=r(12);t.XhrTransport=function(e){return function(t){if(g.detectMozXHRSupport())return new u(t,e);if(g.detectXHROverrideMimeTypeSupport())return new c(t,e);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var c=function(){function e(e,t){this.options=e,this.init=t}return e.prototype.onProgressEvent=function(){var e=this;this.options.debug&&i.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var t=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var r=p(t);a.default(function(){e.options.onChunk(r)})},e.prototype.onLoadEvent=function(){var e=this;this.options.debug&&i.debug("XHR.onLoadEvent"),a.default(function(){e.options.onEnd()})},e.prototype.onStateChange=function(){var e=this;this.options.debug&&i.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&a.default(function(){e.options.onHeaders(new s.Metadata(e.xhr.getAllResponseHeaders()),e.xhr.status)})},e.prototype.sendMessage=function(e){this.xhr.send(e)},e.prototype.finishSend=function(){},e.prototype.start=function(e){var t=this;this.metadata=e;var r=new XMLHttpRequest;this.xhr=r,r.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach(function(e,t){r.setRequestHeader(e,t.join(", "))}),r.withCredentials=Boolean(this.init.withCredentials),r.addEventListener("readystatechange",this.onStateChange.bind(this)),r.addEventListener("progress",this.onProgressEvent.bind(this)),r.addEventListener("loadend",this.onLoadEvent.bind(this)),r.addEventListener("error",function(e){t.options.debug&&i.debug("XHR.error",e),a.default(function(){t.options.onEnd(e.error)})})},e.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},e.prototype.cancel=function(){this.options.debug&&i.debug("XHR.abort"),this.xhr.abort()},e}();t.XHR=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.configureXhr=function(){this.options.debug&&i.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},t.prototype.onProgressEvent=function(){var e=this,t=this.xhr.response;this.options.debug&&i.debug("MozXHR.onProgressEvent: ",new Uint8Array(t)),a.default(function(){e.options.onChunk(new Uint8Array(t))})},t}(c);function l(e,t){var r=e.charCodeAt(t);if(r>=55296&&r<=56319){var o=e.charCodeAt(t+1);o>=56320&&o<=57343&&(r=65536+(r-55296<<10)+(o-56320))}return r}function p(e){for(var t=new Uint8Array(e.length),r=0,o=0;o<e.length;o++){var n=String.prototype.codePointAt?e.codePointAt(o):l(e,o);t[r++]=255&n}return t}t.MozChunkedArrayBufferXHR=u,t.stringToArrayBuffer=p},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o,n=r(0);function s(e){return function(e){return 9===e||10===e||13===e}(e)||e>=32&&e<=126}function i(e){for(var t=0;t!==e.length;++t)if(!s(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function a(e){return 128==(128&e.getUint8(0))}function g(e){return e.getUint32(1,!1)}function c(e,t,r){return e.byteLength-t>=r}function u(e,t,r){if(e.slice)return e.slice(t,r);var o=e.length;void 0!==r&&(o=r);for(var n=new Uint8Array(o-t),s=0,i=t;i<o;i++)n[s++]=e[i];return n}t.decodeASCII=i,t.encodeASCII=function(e){for(var t=new Uint8Array(e.length),r=0;r!==e.length;++r){var o=e.charCodeAt(r);if(!s(o))throw new Error("Metadata contains invalid ASCII");t[r]=o}return t},function(e){e[e.MESSAGE=1]="MESSAGE",e[e.TRAILERS=2]="TRAILERS"}(o=t.ChunkType||(t.ChunkType={}));var l=function(){function e(){this.buffer=null,this.position=0}return e.prototype.parse=function(e,t){if(0===e.length&&t)return[];var r,s=[];if(null==this.buffer)this.buffer=e,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=e,this.position=0;else{var l=this.buffer.byteLength-this.position,p=new Uint8Array(l+e.byteLength),d=u(this.buffer,this.position);p.set(d,0);var f=new Uint8Array(e);p.set(f,l),this.buffer=p,this.position=0}for(;;){if(!c(this.buffer,this.position,5))return s;var h=u(this.buffer,this.position,this.position+5),y=new DataView(h.buffer,h.byteOffset,h.byteLength),m=g(y);if(!c(this.buffer,this.position,5+m))return s;var b=u(this.buffer,this.position+5,this.position+5+m);if(this.position+=5+m,a(y))return s.push({chunkType:o.TRAILERS,trailers:(r=b,new n.Metadata(i(r)))}),s;s.push({chunkType:o.MESSAGE,data:b})}},e}();t.ChunkParser=l},function(e,t,r){var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OK=0]="OK",e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"}(o=t.Code||(t.Code={})),t.httpStatusToCode=function(e){switch(e){case 0:return o.Internal;case 200:return o.OK;case 400:return o.InvalidArgument;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.NotFound;case 409:return o.Aborted;case 412:return o.FailedPrecondition;case 429:return o.ResourceExhausted;case 499:return o.Canceled;case 500:return o.Unknown;case 501:return o.Unimplemented;case 503:return o.Unavailable;case 504:return o.DeadlineExceeded;default:return o.Unknown}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),n=r(5),s=r(7),i=r(13),a=r(8),g=r(6),c=r(10),u=r(14),l=r(16),p=r(3);!function(e){e.setDefaultTransport=n.setDefaultTransportFactory,e.CrossBrowserHttpTransport=g.CrossBrowserHttpTransport,e.FetchReadableStreamTransport=s.FetchReadableStreamTransport,e.XhrTransport=a.XhrTransport,e.WebsocketTransport=i.WebsocketTransport,e.Code=c.Code,e.Metadata=o.BrowserHeaders,e.client=function(e,t){return p.client(e,t)},e.invoke=u.invoke,e.unary=l.unary}(t.grpc||(t.grpc={}))},function(e,t,r){var o;function n(e){var t=function(){if(void 0!==o)return o;if(XMLHttpRequest){o=new XMLHttpRequest;try{o.open("GET","https://localhost")}catch(e){}}return o}();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.xhrSupportsResponseType=n,t.detectMozXHRSupport=function(){return"undefined"!=typeof XMLHttpRequest&&n("moz-chunked-arraybuffer")},t.detectXHROverrideMimeTypeSupport=function(){return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o,n=r(1),s=r(2),i=r(9);!function(e){e[e.FINISH_SEND=1]="FINISH_SEND"}(o||(o={}));var a=new Uint8Array([1]);t.WebsocketTransport=function(){return function(e){return function(e){e.debug&&n.debug("websocketRequest",e);var t,r=function(e){if("https://"===e.substr(0,8))return"wss://"+e.substr(8);if("http://"===e.substr(0,7))return"ws://"+e.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(e.url),g=[];function c(e){if(e===o.FINISH_SEND)t.send(a);else{var r=e,n=new Int8Array(r.byteLength+1);n.set(new Uint8Array([0])),n.set(r,1),t.send(n)}}return{sendMessage:function(e){t&&t.readyState!==t.CONNECTING?c(e):g.push(e)},finishSend:function(){t&&t.readyState!==t.CONNECTING?c(o.FINISH_SEND):g.push(o.FINISH_SEND)},start:function(o){(t=new WebSocket(r,["grpc-websockets"])).binaryType="arraybuffer",t.onopen=function(){var r;e.debug&&n.debug("websocketRequest.onopen"),t.send((r="",o.forEach(function(e,t){r+=e+": "+t.join(", ")+"\r\n"}),i.encodeASCII(r))),g.forEach(function(e){c(e)})},t.onclose=function(t){e.debug&&n.debug("websocketRequest.onclose",t),s.default(function(){e.onEnd()})},t.onerror=function(t){e.debug&&n.debug("websocketRequest.onerror",t)},t.onmessage=function(t){s.default(function(){e.onChunk(new Uint8Array(t.data))})}},cancel:function(){e.debug&&n.debug("websocket.abort"),s.default(function(){t.close()})}}}(e)}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(3);t.invoke=function(e,t){if(e.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var r=o.client(e,{host:t.host,transport:t.transport,debug:t.debug});return t.onHeaders&&r.onHeaders(t.onHeaders),t.onMessage&&r.onMessage(t.onMessage),t.onEnd&&r.onEnd(t.onEnd),r.start(t.metadata),r.send(t.request),r.finishSend(),{close:function(){r.close()}}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=function(e){var t=e.serializeBinary(),r=new ArrayBuffer(t.byteLength+5);return new DataView(r,1,4).setUint32(0,t.length,!1),new Uint8Array(r,5).set(t),new Uint8Array(r)}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),n=r(3);t.unary=function(e,t){if(e.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(e.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var r=null,s=null,i=n.client(e,{host:t.host,transport:t.transport,debug:t.debug});return i.onHeaders(function(e){r=e}),i.onMessage(function(e){s=e}),i.onEnd(function(e,n,i){t.onEnd({status:e,statusMessage:n,headers:r||new o.Metadata,message:s,trailers:i})}),i.start(t.metadata),i.send(t.request),i.finishSend(),{close:function(){i.close()}}}}])});function NodeHttpTransport(){return function(e){return new NodeHttp(e)}}var NodeHttpTransport_1=NodeHttpTransport,NodeHttp=function(){function e(e){this.options=e}return e.prototype.sendMessage=function(e){this.options.methodDefinition.requestStream||this.options.methodDefinition.responseStream||this.request.setHeader("Content-Length",e.byteLength),this.request.write(toBuffer(e)),this.request.end()},e.prototype.finishSend=function(){},e.prototype.responseCallback=function(e){var t=this;this.options.debug&&console.log("NodeHttp.response",e.statusCode);var r=filterHeadersForUndefined(e.headers);this.options.onHeaders(new grpcWebClient_umd.grpc.Metadata(r),e.statusCode),e.on("data",function(e){t.options.debug&&console.log("NodeHttp.data",e),t.options.onChunk(toArrayBuffer(e))}),e.on("end",function(){t.options.debug&&console.log("NodeHttp.end"),t.options.onEnd()})},e.prototype.start=function(e){var t=this,r={};e.forEach(function(e,t){r[e]=t.join(", ")});var o=url__default.default.parse(this.options.url),n={host:o.hostname,port:o.port?parseInt(o.port):void 0,path:o.path,headers:r,method:"POST"};this.request="https:"===o.protocol?https__default.default.request(n,this.responseCallback.bind(this)):http__default.default.request(n,this.responseCallback.bind(this)),this.request.on("error",function(e){t.options.debug&&console.log("NodeHttp.error",e),t.options.onEnd(e)})},e.prototype.cancel=function(){this.options.debug&&console.log("NodeHttp.abort"),this.request.abort()},e}();function filterHeadersForUndefined(e){var t={};for(var r in e){var o=e[r];e.hasOwnProperty(r)&&void 0!==o&&(t[r]=o)}return t}function toArrayBuffer(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}function toBuffer(e){for(var t=Buffer.alloc(e.byteLength),r=0;r<t.length;r++)t[r]=e[r];return t}var S$3=function(e,t,r){try{return Promise.resolve(new Promise(function(o,n){grpcWebClient_umd.grpc.unary(t,{request:r,host:e,onEnd:function(e){var t=e.statusMessage;e.status===grpcWebClient_umd.grpc.Code.OK?o(e.message):n(new Error(t))}})}))}catch(e){return Promise.reject(e)}};grpcWebClient_umd.grpc.setDefaultTransport(NodeHttpTransport_1());var I$2=function(e){return Buffer.from(e,"hex")},P$1=function(e){return Buffer.from(e.padStart(16,0),"hex")},B$2=function(e){return Buffer.from(e).toString("hex")},x$3=function(e){return Buffer.from(e).toString("hex")},k$2=function(e,t){void 0===t&&(t={});try{switch(!0){case H$1(e):return Promise.resolve(function(e,t){void 0===t&&(t={});try{var r=new dist.Transaction;r.setScript(Buffer.from(e.message.cadence,"utf8")),r.setGasLimit(e.message.computeLimit),r.setReferenceBlockId(e.message.refBlock?I$2(e.message.refBlock):null),r.setPayer(P$1(e.accounts[e.payer].addr)),e.message.arguments.forEach(function(t){return r.addArguments(function(e){return Buffer.from(JSON.stringify(e),"utf8")}(e.arguments[t].asArgument))}),e.authorizations.forEach(function(t){return r.addAuthorizers(P$1(e.accounts[t].addr))});var o=new dist.Transaction.ProposalKey;o.setAddress(P$1(e.accounts[e.proposer].addr)),o.setKeyId(e.accounts[e.proposer].keyId),o.setSequenceNumber(e.accounts[e.proposer].sequenceNum),r.setProposalKey(o),e.authorizations.forEach(function(t){if(null!==e.accounts[t].signature&&!e.accounts[t].role.payer){var o=new dist.Transaction.Signature;o.setAddress(P$1(e.accounts[t].addr)),o.setKeyId(e.accounts[t].keyId),o.setSignature(I$2(e.accounts[t].signature)),r.addPayloadSignatures(o)}});var n=new dist.Transaction.Signature;n.setAddress(P$1(e.accounts[e.payer].addr)),n.setKeyId(e.accounts[e.payer].keyId),n.setSignature(I$2(e.accounts[e.payer].signature)),r.addEnvelopeSignatures(n);var s=new dist.SendTransactionRequest;return s.setTransaction(r),Promise.resolve(S$3(t.node,dist.AccessAPI.SendTransaction,s)).then(function(t){var r,o=n$2();return o.tag=e.tag,o.transactionId=(r=t.getId_asU8(),Buffer.from(r).toString("hex")),o})}catch(e){return Promise.reject(e)}}(e,t));case K$1(e):return Promise.resolve(function(e,t){void 0===t&&(t={});try{var r=new dist.GetTransactionRequest;return r.setId(Buffer.from(e.transactionId,"hex")),Promise.resolve(S$3(t.node,dist.AccessAPI.GetTransactionResult,r)).then(function(t){var r=t.getEventsList(),o=n$2();return o.tag=e.tag,o.transaction={status:t.getStatus(),statusCode:t.getStatusCode(),errorMessage:t.getErrorMessage(),events:r.map(function(e){return{type:e.getType(),transactionId:(t=e.getTransactionId_asU8(),Buffer.from(t).toString("hex")),transactionIndex:e.getTransactionIndex(),eventIndex:e.getEventIndex(),payload:JSON.parse(Buffer.from(e.getPayload_asU8()).toString("utf8"))};var t})},o})}catch(e){return Promise.reject(e)}}(e,t));case G$1(e):return Promise.resolve(function(e,t){void 0===t&&(t={});try{var r=new dist.ExecuteScriptAtLatestBlockRequest,o=Buffer.from(e.message.cadence,"utf8");return e.message.arguments.forEach(function(t){return r.addArguments(function(e){return Buffer.from(JSON.stringify(e),"utf8")}(e.arguments[t].asArgument))}),r.setScript(o),Promise.resolve(S$3(t.node,dist.AccessAPI.ExecuteScriptAtLatestBlock,r)).then(function(t){var r=n$2();return r.tag=e.tag,r.encodedData=JSON.parse(Buffer.from(t.getValue_asU8()).toString("utf8")),r})}catch(e){return Promise.reject(e)}}(e,t));case Q(e):return Promise.resolve(function(e,t){void 0===t&&(t={});try{var r=new dist.GetAccountRequest;return r.setAddress(Buffer.from(e.accountAddr.padStart(16,0),"hex")),Promise.resolve(S$3(t.node,dist.AccessAPI.GetAccount,r)).then(function(t){var r=n$2();r.tag=e.tag;var o=t.getAccount();return r.account={address:B$2(o.getAddress_asU8()),balance:o.getBalance(),code:o.getCode_asU8(),keys:o.getKeysList().map(function(e){return{index:e.getIndex(),publicKey:B$2(e.getPublicKey_asU8()),signAlgo:e.getSignAlgo(),hashAlgo:e.getHashAlgo(),weight:e.getWeight(),sequenceNumber:e.getSequenceNumber()}})},r})}catch(e){return Promise.reject(e)}}(e,t));case R$1(e):return Promise.resolve(function(e,t){void 0===t&&(t={});try{var r=new dist.GetEventsForHeightRangeRequest;return r.setType(e.events.eventType),r.setStartHeight(Number(e.events.start)),r.setEndHeight(Number(e.events.end)),Promise.resolve(S$3(t.node,dist.AccessAPI.GetEventsForHeightRange,r)).then(function(t){var r=n$2();r.tag=e.tag;var o=t.getResultsList();return r.events=o.reduce(function(e,t){var r=t.getBlockId(),o=t.getBlockHeight();return t.getEventsList().forEach(function(t){var n;e.push({blockId:r,blockHeight:o,type:t.getType(),transactionId:(n=t.getTransactionId_asU8(),Buffer.from(n).toString("hex")),transactionIndex:t.getTransactionIndex(),eventIndex:t.getEventIndex(),payload:JSON.parse(Buffer.from(t.getPayload_asU8()).toString("utf8"))})}),e},[]),r})}catch(e){return Promise.reject(e)}}(e,t));case U$1(e):return Promise.resolve(function(e,t){void 0===t&&(t={});try{var r=new dist.GetLatestBlockRequest;return r.setIsSealed(e.latestBlock.isSealed),Promise.resolve(S$3(t.node,dist.AccessAPI.GetLatestBlock,r)).then(function(t){var r=t.getBlock(),o=r.getCollectionGuaranteesList(),n=r.getBlockSealsList(),s=r.getSignaturesList(),i=n$2();return i.tag=e.tag,i.latestBlock={id:x$3(r.getId_asU8()),parentId:x$3(r.getParentId_asU8()),height:r.getHeight(),timestamp:r.getTimestamp(),collectionGuarantees:o.map(function(e){return{collectionId:x$3(e.getCollectionId_asU8()),signatures:e.getSignaturesList()}}),blockSeals:n.map(function(e){return{blockId:x$3(e.getBlockId_asU8()),executionReceiptId:x$3(e.getExecutionReceiptId_asU8()),executionReceiptSignatures:e.getExecutionReceiptSignaturesList(),resultApprovalSignatures:e.getResultApprovalSignaturesList()}}),signatures:s},i})}catch(e){return Promise.reject(e)}}(e,t));case V(e):return Promise.resolve(function(e,t){void 0===t&&(t={});try{var r=new dist.PingRequest;return Promise.resolve(S$3(t.node,dist.AccessAPI.Ping,r)).then(function(t){var r=n$2();return r.tag=e.tag,r})}catch(e){return Promise.reject(e)}}(e,t));default:return Promise.resolve(e)}}catch(e){return Promise.reject(e)}};function e$2(){return(e$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}var r$1=function(e,t,r){try{try{return Promise.resolve(Number(e))}catch(e){throw new Error("Decode Number Error : "+r.join("."))}}catch(e){return Promise.reject(e)}},t$1=function(e){return Promise.resolve(e)},n$1=function(e,t,r){try{return Promise.resolve(e.fields.reduce(function(e,o){try{return Promise.resolve(e).then(function(n){return e=n,Promise.resolve(i$1(o.value,t,[].concat(r,[o.name]))).then(function(t){return e[o.name]=t,e})})}catch(e){return Promise.reject(e)}},Promise.resolve({}))).then(function(r){var o=e.id&&c$2(t,e.id);return o?Promise.resolve(o(r)):r})}catch(e){return Promise.reject(e)}},o$1={UInt:r$1,Int:r$1,UInt8:r$1,Int8:r$1,UInt16:r$1,Int16:r$1,UInt32:r$1,Int32:r$1,UInt64:r$1,Int64:r$1,UInt128:r$1,Int128:r$1,UInt256:r$1,Int256:r$1,Word8:r$1,Word16:r$1,Word32:r$1,Word64:r$1,UFix64:r$1,Fix64:r$1,String:t$1,Character:t$1,Bool:t$1,Address:t$1,Void:function(){return Promise.resolve(null)},Optional:function(e,t,r){return Promise.resolve(e?i$1(e,t,r):null)},Reference:function(e){try{return Promise.resolve({address:e.address,type:e.type})}catch(e){return Promise.reject(e)}},Array:function(e,t,r){try{return Promise.resolve(Promise.all(e.map(function(e){return new Promise(function(o){try{return Promise.resolve(i$1(e,t,[].concat(r,[e.type]))).then(o)}catch(e){return Promise.reject(e)}})})))}catch(e){return Promise.reject(e)}},Dictionary:function(e,t,r){try{return Promise.resolve(e.reduce(function(e,o){try{return Promise.resolve(e).then(function(n){return e=n,Promise.resolve(i$1(o.key,t,[].concat(r,[o.key]))).then(function(n){return Promise.resolve(i$1(o.value,t,[].concat(r,[o.key]))).then(function(t){return e[n]=t,e})})})}catch(e){return Promise.reject(e)}},Promise.resolve({})))}catch(e){return Promise.reject(e)}},Event:n$1,Resource:n$1,Struct:n$1},c$2=function(e,t){var r=Object.keys(e).find(function(e){return/^\/.*\/$/.test(e)?new RegExp(e.substring(1,e.length-1)).test(t):e===t});return t&&r&&e[r]},i$1=function(e,t,r){try{var o=c$2(t,e.type);if(!o)throw new Error("Undefined Decoder Error: "+e.type+"@"+r.join("."));return Promise.resolve(o(e.value,t,r))}catch(e){return Promise.reject(e)}},s$1=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=[]);var o=e$2({},o$1,{},t);return Promise.resolve(i$1(e,o,r))},a$1=function(e,t){void 0===t&&(t={});try{var r=!1,o=e$2({},o$1,{},t),n=e.encodedData?(r=!0,Promise.resolve(s$1(e.encodedData,o))):e.transaction?(r=!0,Promise.resolve(Promise.all(e.transaction.events.map(function(e){try{var t=e.eventIndex,r=e.transactionIndex,n=e.transactionId,s=e.type;return Promise.resolve(s$1(e.payload,o)).then(function(e){return{type:s,transactionId:n,transactionIndex:r,eventIndex:t,data:e}})}catch(e){return Promise.reject(e)}}))).then(function(t){return e$2({},e.transaction,{events:t})})):e.events?(r=!0,Promise.resolve(Promise.all(e.events.map(function(e){try{var t=e.eventIndex,r=e.transactionIndex,n=e.transactionId,s=e.type;return Promise.resolve(s$1(e.payload,o)).then(function(e){return{type:s,transactionId:n,transactionIndex:r,eventIndex:t,data:e}})}catch(e){return Promise.reject(e)}})))):e.account?(r=!0,e.account):e.latestBlock?(r=!0,e.latestBlock):e.transactionId?(r=!0,e.transactionId):void 0;return Promise.resolve(n&&n.then?n.then(function(e){return r?e:null}):r?n:null)}catch(e){return Promise.reject(e)}},e$1=require("rlp"),n=function(e){return c$1(a(e))},r=function(e){return c$1(i(e))},t=function(e,t){return Buffer.from(e.padStart(2*t,0),"hex")},u=function(e){return t(e,8)},o=function(e){return Buffer.from(JSON.stringify(e),"utf8")},c$1=function(e){return e$1.encode(e).toString("hex")},a=function(e){return d(e),[(n=e.script,Buffer.from(n,"utf8")),e.arguments.map(o),(r=e.refBlock,t(r,32)),e.gasLimit,u(e.proposalKey.address),e.proposalKey.keyId,e.proposalKey.sequenceNum,u(e.payer),e.authorizers.map(u)];var r,n},i=function(e){return p$1(e),[a(e),f(e)]},f=function(e){var t=s(e);return e.payloadSigs.map(function(e){return{signerIndex:t.get(e.address),keyId:e.keyId,sig:e.sig}}).sort(function(e,t){return e.signerIndex>t.signerIndex?1:e.signerIndex<t.signerIndex?-1:e.keyId>t.keyId?1:e.keyId<t.keyId?-1:void 0}).map(function(e){return[e.signerIndex,e.keyId,(t=e.sig,Buffer.from(t,"hex"))];var t})},s=function(e){var t=new Map,r=0,o=function(e){t.has(e)||(t.set(e,r),r++)};return o(e.proposalKey.address),o(e.payer),e.authorizers.forEach(o),t},d=function(e){k$1.forEach(function(t){return v$1(e,t)}),g$1.forEach(function(t){return v$1(e.proposalKey,t,"proposalKey")})},p$1=function(e){I$1.forEach(function(t){return v$1(e,t)}),e.payloadSigs.forEach(function(e,t){x$2.forEach(function(r){return v$1(e,r,"payloadSigs",t)})})},l=function(e){return"number"==typeof e},h$1=function(e){return"string"==typeof e},m$1=function(e){return null!==e&&"object"==typeof e},y$1=function(e){return m$1(e)&&e instanceof Array},k$1=[{name:"script",check:h$1},{name:"arguments",check:y$1},{name:"refBlock",check:h$1,defaultVal:"0"},{name:"gasLimit",check:l},{name:"proposalKey",check:m$1},{name:"payer",check:h$1},{name:"authorizers",check:y$1}],g$1=[{name:"address",check:h$1},{name:"keyId",check:l},{name:"sequenceNum",check:l}],I$1=[{name:"payloadSigs",check:y$1}],x$2=[{name:"address",check:h$1},{name:"keyId",check:l},{name:"sig",check:h$1}],v$1=function(e,t,r,o){var n=t.name,s=t.check,i=t.defaultVal;if(null==e[n]&&null!=i&&(e[n]=i),null==e[n])throw K(n,r,o);if(!s(e[n]))throw S$2(n,r,o)},E$2=function(e,t,r){return t?null==r?t+"."+e:t+"."+r+"."+e:e},K=function(e,t,r){return new Error("Missing field "+E$2(e,t,r))},S$2=function(e,t,r){return new Error("Invalid field "+E$2(e,t,r))};function j$1(e){return void 0===e&&(e=[]),en(d$1(),e)}var S$1=en;function A$1(){return(A$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function x$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function B$1(e){return en([C$1,function(t){return t.accountAddr=e,A$2(t)}])}function E$1(e){return en([E$3,function(t){return t.transactionId=e,A$2(t)}])}const Y=function(){function e(){}return e.prototype.then=function(t,r){const o=new e,n=this.s;if(n){const e=1&n?t:r;if(e){try{Z(o,1,e(this.v))}catch(e){Z(o,2,e)}return o}return this}return this.o=function(e){try{const n=e.v;1&e.s?Z(o,1,t?t(n):n):r?Z(o,1,r(n)):Z(o,2,n)}catch(e){Z(o,2,e)}},o},e}();function Z(e,t,r){if(!e.s){if(r instanceof Y){if(!r.s)return void(r.o=Z.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(Z.bind(null,e,t),Z.bind(null,e,2));e.s=t,e.v=r;const o=e.o;o&&o(e)}}function _$1(e){return e instanceof Y&&1&e.s}const rr="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var er=function(e){return"function"==typeof e},nr=function(e){return"number"==typeof e},tr=function(e){return"string"==typeof e},or=function(e,t){if(!e){var r,o=new Error("INVARIANT "+t);o.stack=o.stack.split("\n").filter(function(e){return!/at invariant/.test(e)}).join("\n");for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i];throw(r=console).error.apply(r,["\n\n---\n\n",o,"\n\n"].concat(s,["\n\n---\n\n"])),o}},ir=function(e){return!(e.role.proposer&&!(tr(e.addr)&&nr(e.keyId)&&nr(e.sequenceNum)&&er(e.signingFunction))||e.role.payer&&!(tr(e.addr)&&nr(e.keyId)&&er(e.signingFunction))||e.role.authorizer&&!(tr(e.addr)&&nr(e.keyId)&&er(e.signingFunction)))},ur=function(e){return void 0===e&&(e=[]),e.filter(Boolean)[0]||null},cr=function(e){return void 0===e&&(e=[]),e.find(function(e){return e.role.proposer})||{}},ar=en([function(e){try{var t=function(){return A$2(e)};if(!K$2(e))return Promise.resolve(A$2(e));var r=function(e,t,r){if("function"==typeof e[rr]){var o,n,s,i=e[rr]();if(function e(r){try{for(;!(o=i.next()).done;)if((r=t(o.value))&&r.then){if(!_$1(r))return void r.then(e,s||(s=Z.bind(null,n=new Y,2)));r=r.v}n?Z(n,1,r):n=r}catch(e){Z(n||(n=new Y),2,e)}}(),i.return){var a=function(e){try{o.done||i.return()}catch(e){}return e};if(n&&n.then)return n.then(a,function(e){throw a(e)});a()}return n}if(!("length"in e))throw new TypeError("Object is not iterable");for(var g=[],c=0;c<e.length;c++)g.push(e[c]);return function(e,t,r){var o,n,s=-1;return function r(i){try{for(;++s<e.length;)if((i=t(s))&&i.then){if(!_$1(i))return void i.then(r,n||(n=Z.bind(null,o=new Y,2)));i=i.v}o?Z(o,1,i):o=i}catch(e){Z(o||(o=new Y),2,e)}}(),o}(g,function(e){return t(g[e])})}(Object.entries(e.accounts),function(t){var r=t[0],o=t[1];function n(){or(ir(e.accounts[r]),"Account unable to fulfill role",e.accounts[r])}var s=function(){if(er(o.resolve))return Promise.resolve(o.resolve(o)).then(function(t){e.accounts[r]=t})}();return s&&s.then?s.then(n):n()});return Promise.resolve(r&&r.then?r.then(t):t())}catch(e){return Promise.reject(e)}},function(e){try{if(!K$2(e))return Promise.resolve(A$2(e));for(var t=function(){var t,n,s,i=o[r],a=i.addr+"|"+i.keyId;e.accounts[a]=null!=e.accounts[a]?(t=e.accounts[a],n=A$1({tempId:a},i),{kind:ur([t.kind,n.kind]),tempId:ur([t.tempId,n.tempId]),addr:ur([t.addr,n.addr]),keyId:(s=[t.keyId,n.keyId],void 0===s&&(s=[]),"number"==typeof s.filter(nr)[0]?s.filter(nr)[0]:null),sequenceNum:"number"==typeof cr([t,n]).sequenceNum?cr([t,n]).sequenceNum:t.sequenceNum,signature:ur([t.signature,n.signature]),signingFunction:ur([t.signingFunction,n.signingFunction]),resolve:ur([t.resolve,n.resolve]),role:{proposer:t.role.proposer||n.role.proposer,authorizer:t.role.authorizer||n.role.authorizer,payer:t.role.payer||n.role.payer,param:t.role.param||n.role.param}}):A$1({tempId:a},i),e.proposer===i.tempId&&(e.proposer=a),e.payer===i.tempId&&(e.payer=a),e.authorizations=e.authorizations.map(function(e){return e===i.tempId?a:e}),delete e.accounts[i.tempId]},r=0,o=Object.values(e.accounts);r<o.length;r++)t();for(var n=0,s=Object.values(e.accounts);n<s.length;n++){var i=s[n];or(ir(i),"Account unable to fulfill roles",i)}return Promise.resolve(A$2(e))}catch(e){return Promise.reject(e)}}]),sr=function(e){try{if(!K$2(e)&&!H$2(e))return Promise.resolve(A$2(e));var t=Object.values(e.arguments);return Promise.resolve(Promise.all(t.map(function(e){try{var t=!1,r=function(){if("function"==typeof e.resolve)return t=!0,Promise.resolve(e.resolve()).then(function(t){return A$1({},t,{tempId:e.tempId})})}();return Promise.resolve(r&&r.then?r.then(function(r){return t?r:e}):t?r:e)}catch(e){return Promise.reject(e)}}))).then(function(t){return t.forEach(function(t){e.arguments[t.tempId]=A$1({},t,{asArgument:t.xform.asArgument(t.value)})}),A$2(e)})}catch(e){return Promise.reject(e)}},fr=function(e){try{var t=function(e){if(r)return e;throw new Error("Invalid Cadence Value")},r=!1;if(!K$2(e)&&!H$2(e))return Promise.resolve(A$2(e));var o=un(e,"ix.cadence");if("string"==typeof o)return e.message.cadence=o,Promise.resolve(A$2(e));var n=function(){if("function"==typeof o){var t=Object.values(e.params);return Promise.resolve(Promise.all(t.map(function(e){try{var t=!1,r=function(){if("function"==typeof e.resolve)return t=!0,Promise.resolve(e.resolve()).then(function(t){return A$1({},t,{tempId:e.tempId})})}();return Promise.resolve(r&&r.then?r.then(function(r){return t?r:e}):t?r:e)}catch(e){return Promise.reject(e)}}))).then(function(t){return t.forEach(function(t){e.params[t.tempId]=t}),t=Object.fromEntries(t.filter(function(e){return null!=e.key}).map(function(e){return[e.key,e.xform.asInjection(e.value)]})),e.message.cadence=o(t),r=!0,A$2(e)})}}();return Promise.resolve(n&&n.then?n.then(t):t(n))}catch(e){return Promise.reject(e)}};function lr(e){return{script:e.message.cadence,refBlock:e.message.refBlock||null,gasLimit:e.message.computeLimit,arguments:e.message.arguments.map(function(t){return e.arguments[t].asArgument}),proposalKey:{address:e.accounts[e.proposer].addr,keyId:e.accounts[e.proposer].keyId,sequenceNum:e.accounts[e.proposer].sequenceNum},payer:e.accounts[e.payer].addr,authorizers:e.authorizations.map(function(t){return e.accounts[t].addr})}}var mr=function(e){try{if(!K$2(e))return Promise.resolve(e);var t=function(e){var t=new Set(e.authorizations);t.add(e.proposer),t.delete(e.payer),t=Array.from(t);var r=new Set([e.payer]);return{insideSigners:t,outsideSigners:r=Array.from(r)}}(e),o=t.outsideSigners;return Promise.resolve(dr(e,t.insideSigners,n(lr(e)))).then(function(t){var n=pr(e,t);return Promise.resolve(dr(e,o,r(A$1({},lr(e),{payloadSigs:n})))).then(function(t){return pr(e,t),e})})}catch(e){return Promise.reject(e)}},dr=function(e,t,r){void 0===t&&(t=[]);try{return Promise.all(t.map(function(t){try{return Promise.resolve(e.accounts[t].signingFunction({message:r,addr:e.accounts[t].addr,keyId:e.accounts[t].keyId,roles:e.accounts[t].role,interaction:e})).then(function(r){if(r.cid=t,e.accounts[t].addr!==r.addr)throw new Error(t+" — mismatching address in composite signature");if(e.accounts[t].keyId!==r.keyId)throw new Error(t+" — mismatching keyId in composite signature");return r.sig=r.signature,r.address=r.addr,r})}catch(e){return Promise.reject(e)}}))}catch(e){return Promise.reject(e)}};function pr(e,t){for(var r,o=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return x$1(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x$1(e,void 0):void 0}}(e))){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}(t);!(r=o()).done;){var n=r.value;e.accounts[n.cid].signature=n.signature}return t}var vr=function(e){try{var t=un(e,"ix.validators",[]);return Promise.resolve(en(e,t.map(function(e){return function(t){return e(t,{Ok:A$2,Bad:w$1})}})))}catch(e){return Promise.reject(e)}},e=function(e,t,r){return{label:e,asArgument:t,asInjection:r}},c=e("Identity",function(e){return e},function(e){return e});const h=function(){function e(){}return e.prototype.then=function(t,r){const o=new e,n=this.s;if(n){const e=1&n?t:r;if(e){try{v(o,1,e(this.v))}catch(e){v(o,2,e)}return o}return this}return this.o=function(e){try{const n=e.v;1&e.s?v(o,1,t?t(n):n):r?v(o,1,r(n)):v(o,2,n)}catch(e){v(o,2,e)}},o},e}();function v(e,t,r){if(!e.s){if(r instanceof h){if(!r.s)return void(r.o=v.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(v.bind(null,e,t),v.bind(null,e,2));e.s=t,e.v=r;const o=e.o;o&&o(e)}}function m(e){return e instanceof h&&1&e.s}function y(e,t,r){for(var o;;){var n=e();if(m(n)&&(n=n.v),!n)return s;if(n.then){o=0;break}var s=r();if(s&&s.then){if(!m(s)){o=1;break}s=s.s}if(t){var i=t();if(i&&i.then&&!m(i)){o=2;break}}}var a=new h,g=v.bind(null,a,2);return(0===o?n.then(u):1===o?s.then(c):i.then(l)).then(void 0,g),a;function c(o){s=o;do{if(t&&(i=t())&&i.then&&!m(i))return void i.then(l).then(void 0,g);if(!(n=e())||m(n)&&!n.v)return void v(a,1,s);if(n.then)return void n.then(u).then(void 0,g);m(s=r())&&(s=s.v)}while(!s||!s.then);s.then(c).then(void 0,g)}function u(e){e?(s=r())&&s.then?s.then(c).then(void 0,g):c(s):v(a,1,s)}function l(){(n=e())?n.then?n.then(u).then(void 0,g):u(n):v(a,1,s)}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var P="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||"object"==typeof window&&window.window===window&&window;P.FCL_REGISTRY=null==P.FCL_REGISTRY?{}:P.FCL_REGISTRY;var b,S=0,R=function(e,t,r,o){return void 0===o&&(o={}),new Promise(function(n,s){var i=o.expectReply||!1,a=null!=o.timeout?o.timeout:5e3;i&&a&&setTimeout(function(){return s(new Error("Timeout: "+a+"ms passed without a response."))},a);var g={to:e,from:o.from,tag:t,data:r,timeout:a,reply:n,reject:s};try{P.FCL_REGISTRY[e].mailbox.deliver(g),i||n(!0)}catch(e){console.error("FCL.Actor -- Could Not Deliver Message",g,e)}})},g=function(e,t){if(void 0===t&&(t=null),null==t&&(t=++S),null!=P.FCL_REGISTRY[t])return t;var r,o;P.FCL_REGISTRY[t]={addr:t,mailbox:(o=[],{deliver:function(e){try{return o.push(e),r&&(r(o.shift()),r=void 0),Promise.resolve()}catch(e){return Promise.reject(e)}},receive:function(){return new Promise(function(e){var t=o.shift();if(t)return e(t);r=e})}}),subs:new Set,kvs:{}};var n,s={self:function(){return t},receive:function(){return P.FCL_REGISTRY[t].mailbox.receive()},send:function(e,r,o,n){return void 0===n&&(n={}),n.from=t,R(e,r,o,n)},broadcast:function(e,r,o){void 0===o&&(o={}),o.from=t;for(var n,s=function(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return E(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,void 0):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}(P.FCL_REGISTRY[t].subs);!(n=s()).done;)R(n.value,e,r,o)},subscribe:function(e){return null!=e&&P.FCL_REGISTRY[t].subs.add(e)},unsubscribe:function(e){return null!=e&&P.FCL_REGISTRY[t].subs.delete(e)},put:function(e,r){null!=e&&(P.FCL_REGISTRY[t].kvs[e]=r)},get:function(e,r){var o=P.FCL_REGISTRY[t].kvs[e];return null==o?r:o},delete:function(e){delete P.FCL_REGISTRY[t].kvs[e]},update:function(e,r){null!=e&&(P.FCL_REGISTRY[t].kvs[e]=r(P.FCL_REGISTRY[t].kvs[e]))},keys:function(){return Object.keys(P.FCL_REGISTRY[t].kvs)},all:function(){return P.FCL_REGISTRY[t].kvs},where:function(e){return Object.keys(P.FCL_REGISTRY[t].kvs).reduce(function(r,o){var n;return e.test(o)?p({},r,((n={})[o]=P.FCL_REGISTRY[t].kvs[o],n)):r},{})},merge:function(e){void 0===e&&(e={}),Object.keys(e).forEach(function(r){return P.FCL_REGISTRY[t].kvs[r]=e[r]})}};return"object"==typeof e&&(void 0===(n=e)&&(n={}),e=function(e){try{var t=function(){var t=y(function(){return 1},void 0,function(){return Promise.resolve(e.receive()).then(function(t){var r=function(r,o){try{var s=function(r,o){try{var s=function(){function r(){return Promise.resolve(n[t.tag](e,t,t.data||{})).then(function(){})}var o=function(){if("EXIT"===t.tag){var r=function(){if("function"==typeof n.TERMINATE)return Promise.resolve(n.TERMINATE(e,t,t.data||{})).then(function(){})}();if(r&&r.then)return r.then(function(){})}}();return o&&o.then?o.then(r):r()}()}catch(e){return o(e)}return s&&s.then?s.then(void 0,o):s}(0,function(r){console.error(e.self()+" Error",t,r)})}catch(e){return}return s&&s.then?s.then(o.bind(null,!1),o.bind(null,!0)):void 0}(0,function(e,t){});if(r&&r.then)return r.then(function(){})})});return t&&t.then?t.then(function(){}):void 0},r=function(){if("function"==typeof n.INIT)return Promise.resolve(n.INIT(e)).then(function(){})}();return Promise.resolve(r&&r.then?r.then(t):t())}catch(e){return Promise.reject(e)}}),queueMicrotask_1(function(){try{return Promise.resolve(e(s)).then(function(){!function(e){delete P.FCL_REGISTRY[e]}(t)})}catch(e){return Promise.reject(e)}}),t},I="config",T="PUT_CONFIG",w="GET_CONFIG",C="CONFIG/UPDATED",k=function(e){return e},j=((b={})[T]=function(e,t,r){var o=r.key,n=r.value;if(null==o)throw new Error("Missing 'key' for config/put.");e.put(o,n),e.broadcast(C,e.all())},b[w]=function(e,t,r){var o=r.key,n=r.fallback;if(null==o)throw new Error("Missing 'key' for config/get");t.reply(e.get(o,n))},b.UPDATE_CONFIG=function(e,t,r){var o=r.key,n=r.fn;if(null==o)throw new Error("Missing 'key' for config/update");e.update(o,n||k),e.broadcast(C,e.all())},b.DELETE_CONFIG=function(e,t,r){var o=r.key;if(null==o)throw new Error("Missing 'key' for config/delete");e.delete(o),e.broadcast(C,e.all())},b.WHERE_CONFIG=function(e,t,r){var o=r.pattern;if(null==o)throw new Error("Missing 'pattern' for config/where");t.reply(e.where(o))},b.SUBSCRIBE=function(e,t){e.subscribe(t.from),e.send(t.from,C,e.all())},b.UNSUBSCRIBE=function(e,t){e.unsubscribe(t.from)},b);function N(e,t){return R(I,T,{key:e,value:t}),F()}function L(e,t){return R(I,w,{key:e,fallback:t},{expectReply:!0,timeout:10})}function _(e,t){return void 0===t&&(t=k),R(I,"UPDATE_CONFIG",{key:e,fn:t}),F()}function U(e){return R(I,"DELETE_CONFIG",{key:e}),F()}function A(e){return R(I,"WHERE_CONFIG",{pattern:e},{expectReply:!0,timeout:10})}function O(e){var t=g(function(t){try{var r=!1;return t.send(I,"SUBSCRIBE"),Promise.resolve(y(function(){return!r&&1},void 0,function(){return Promise.resolve(t.receive()).then(function(o){if("@EXIT"===o.tag)return t.send(I,"UNSUBSCRIBE"),void(r=!0);e(o.data)})}))}catch(e){return Promise.reject(e)}});return function(){return R(t,"@EXIT")}}function F(){return{put:N,get:L,update:_,delete:U,where:A,subscribe:O}}g(j,I),F().put("accessNode.api","http://localhost:8080").put("challenge.handshake","http://localhost:8700/authenticate");var G,B=function(e){try{return Promise.resolve(S$1(e,[fr,sr,ar,mr,vr]))}catch(e){return Promise.reject(e)}},x=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});try{var r=function(r){return t.node=r,Array.isArray(e)&&(e=j$1(e)),Promise.resolve(B(e)).then(function(e){return k$2(e,t)})},o=t.node;return Promise.resolve(o?r(o):Promise.resolve(F().get("accessNode.api")).then(r))}catch(e){return Promise.reject(e)}},D=function(e){try{return Promise.resolve(F().where(/^decoder\./)).then(function(t){var r=Object.fromEntries(Object.entries(t).map(function(e){var t=e[0],r=e[1];return[t="/"+t.replace(/^decoder\./,"")+"$/",r]}));return a$1(e,r)})}catch(e){return Promise.reject(e)}},H=function(e){try{return Promise.resolve(x([E$1(e)])).then(D)}catch(e){return Promise.reject(e)}},M=function(e){return 4===e.status};(G={}).INIT=function(e){try{return Promise.resolve(H(e.self())).then(function(t){M(t)||setTimeout(function(){return R(e.self(),"POLL")},1e3),e.merge(t)})}catch(e){return Promise.reject(e)}},G.SUBSCRIBE=function(e,t){e.subscribe(t.from),e.send(t.from,"TRANSACTION/UPDATED",e.all())},G.UNSUBSCRIBE=function(e,t){e.unsubscribe(t.from)},G.SNAPSHOT=function(e,t){try{return t.replay(e.all()),Promise.resolve()}catch(e){return Promise.reject(e)}},G.POLL=function(e){try{return Promise.resolve(H(e.self())).then(function(t){M(t)||setTimeout(function(){return R(e.self(),"POLL")},1e3),e.merge(t),e.broadcast("TRANSACTION/UPDATED",e.all())})}catch(e){return Promise.reject(e)}};var J,re="CURRENT_USER/UPDATED",oe="SET_CURRENT_USER",ue='{\n "cid":null,\n "loggedIn":null,\n "verified":null,\n "identity":{\n "name":null,\n "addr":null,\n "avatar":null,\n "cover":null,\n "color":null,\n "bio":null\n },\n "scoped":{},\n "provider":{\n "addr":null,\n "pid":null,\n "name":null,\n "icon":null\n },\n "authorizations":[]\n}';(J={}).INIT=function(e){e.merge(JSON.parse(ue))},J.SUBSCRIBE=function(e,t){e.subscribe(t.from),e.send(t.from,re,e.all())},J.UNSUBSCRIBE=function(e,t){e.unsubscribe(t.from)},J.SNAPSHOT=function(e,t){try{return t.reply(e.all()),Promise.resolve()}catch(e){return Promise.reject(e)}},J[oe]=function(e,t,r){try{return e.merge(r),e.broadcast(re,e.all()),Promise.resolve()}catch(e){return Promise.reject(e)}},J.DEL_CURRENT_USER=function(e,t){try{return e.merge(JSON.parse(ue)),e.broadcast(re,e.all()),Promise.resolve()}catch(e){return Promise.reject(e)}},J.GET_AS_PARAM=function(e,t,r){var o=r.key;try{return t.reply({key:o,value:e.get("addr",null),xform:c}),Promise.resolve()}catch(e){return Promise.reject(e)}};var FlowExtension=function(e){function t(t){var r;return(r=e.call(this)||this).flowConfig=void 0,r.name="flow",r.config={},r.authorization=function(e){void 0===e&&(e={});try{return F().put("accessNode.api",r.config.rpcUrl),Promise.resolve(r.request({id:42,jsonrpc:"2.0",method:"flow_getAccount",params:{}})).then(function(t){function o(){return _extends({},e,{addr:t,keyId:s,signingFunction:function(e){try{return Promise.resolve(r.request({id:42,jsonrpc:"2.0",method:"flow_signTransaction",params:{message:e.message}})).then(function(e){return{addr:t,keyId:s,signature:e}})}catch(e){return Promise.reject(e)}},sequenceNum:n})}var n,s=0,i=function(){if(e.role.proposer)return Promise.resolve(x([B$1(t)])).then(function(e){return Promise.resolve(D(e)).then(function(e){n=e.keys[s].sequenceNumber})})}();return i&&i.then?i.then(o):o()})}catch(e){return Promise.reject(e)}},r.flowConfig=t,r.config={rpcUrl:t.rpcUrl,chainType:"FLOW"},r}return _inheritsLoose(t,e),t}(commons.Extension.Internal);return FlowExtension}(Magic,http,https,url);