@viamrobotics/sdk 0.0.28 → 0.0.30

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/main.umd.js CHANGED
@@ -151,7 +151,7 @@
151
151
  <span dir=ltr>`+o+"</span>"},goog.i18n.bidi.enforceLtrInText=function(o){return goog.i18n.bidi.Format.LRE+o+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(o){return o.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(o){return o.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(o,e){var r=0,p=0,t=!1;for(o=goog.i18n.bidi.stripHtmlIfNeeded_(o,e).split(goog.i18n.bidi.wordSeparatorRe_),e=0;e<o.length;e++){var n=o[e];goog.i18n.bidi.startsWithRtl(n)?(r++,p++):goog.i18n.bidi.isRequiredLtrRe_.test(n)?t=!0:goog.i18n.bidi.hasAnyLtr(n)?p++:goog.i18n.bidi.hasNumeralsRe_.test(n)&&(t=!0)}return p==0?t?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/p>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(o,e){return goog.i18n.bidi.estimateDirection(o,e)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(o,e){o&&(e=goog.i18n.bidi.toDir(e))&&(o.style.textAlign=e==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,o.dir=e==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(o,e){switch(goog.i18n.bidi.estimateDirection(e)){case goog.i18n.bidi.Dir.LTR:o.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:o.dir="rtl";break;default:o.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(o,e){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=o===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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(o,e){var r=goog.html.TrustedResourceUrl.unwrap(this);r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r);var p=r[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",o)+goog.html.TrustedResourceUrl.stringifyParams_("#",p,e))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(o){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(o){return o instanceof goog.html.TrustedResourceUrl&&o.constructor===goog.html.TrustedResourceUrl&&o.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(o,e){var r=goog.string.Const.unwrap(o);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return o=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(p,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw Error('Found marker, "'+t+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(e));return p=e[t],p instanceof goog.string.Const?goog.string.Const.unwrap(p):encodeURIComponent(String(p))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},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(o,e,r,p){return goog.html.TrustedResourceUrl.format(o,e).cloneWithParams(r,p)},goog.html.TrustedResourceUrl.fromConstant=function(o){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.TrustedResourceUrl.fromConstants=function(o){for(var e="",r=0;r<o.length;r++)e+=goog.string.Const.unwrap(o[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.fromSafeScript=function(o){return o=goog.fs.blob.getBlobWithProperties([goog.html.SafeScript.unwrap(o)],"text/javascript"),o=goog.fs.url.createObjectUrl(o),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(o){return o=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(o):o,new goog.html.TrustedResourceUrl(goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.html.TrustedResourceUrl.stringifyParams_=function(o,e,r){if(r==null)return e;if(typeof r=="string")return r?o+encodeURIComponent(r):"";for(var p in r){var t=r[p];t=Array.isArray(t)?t:[t];for(var n=0;n<t.length;n++){var i=t[n];i!=null&&(e||(e=o),e+=(e.length>o.length?"&":"")+encodeURIComponent(p)+"="+encodeURIComponent(String(i)))}}return e},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.internal={},goog.string.internal.startsWith=function(o,e){return o.lastIndexOf(e,0)==0},goog.string.internal.endsWith=function(o,e){var r=o.length-e.length;return 0<=r&&o.indexOf(e,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(o,e){return goog.string.internal.caseInsensitiveCompare(e,o.substr(0,e.length))==0},goog.string.internal.caseInsensitiveEndsWith=function(o,e){return goog.string.internal.caseInsensitiveCompare(e,o.substr(o.length-e.length,e.length))==0},goog.string.internal.caseInsensitiveEquals=function(o,e){return o.toLowerCase()==e.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(o){return/^[\s\xa0]*$/.test(o)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(o){return o.trim()}:function(o){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(o)[1]},goog.string.internal.caseInsensitiveCompare=function(o,e){return o=String(o).toLowerCase(),e=String(e).toLowerCase(),o<e?-1:o==e?0:1},goog.string.internal.newLineToBr=function(o,e){return o.replace(/(\r\n|\r|\n)/g,e?"<br />":"<br>")},goog.string.internal.htmlEscape=function(o,e){if(e)o=o.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(o))return o;o.indexOf("&")!=-1&&(o=o.replace(goog.string.internal.AMP_RE_,"&amp;")),o.indexOf("<")!=-1&&(o=o.replace(goog.string.internal.LT_RE_,"&lt;")),o.indexOf(">")!=-1&&(o=o.replace(goog.string.internal.GT_RE_,"&gt;")),o.indexOf('"')!=-1&&(o=o.replace(goog.string.internal.QUOT_RE_,"&quot;")),o.indexOf("'")!=-1&&(o=o.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),o.indexOf("\0")!=-1&&(o=o.replace(goog.string.internal.NULL_RE_,"&#0;"))}return o},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(o,e){return goog.string.internal.newLineToBr(o.replace(/ /g," &#160;"),e)},goog.string.internal.contains=function(o,e){return o.indexOf(e)!=-1},goog.string.internal.caseInsensitiveContains=function(o,e){return goog.string.internal.contains(o.toLowerCase(),e.toLowerCase())},goog.string.internal.compareVersions=function(o,e){var r=0;o=goog.string.internal.trim(String(o)).split("."),e=goog.string.internal.trim(String(e)).split(".");for(var p=Math.max(o.length,e.length),t=0;r==0&&t<p;t++){var n=o[t]||"",i=e[t]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],n[0].length==0&&i[0].length==0)break;r=n[1].length==0?0:parseInt(n[1],10);var s=i[1].length==0?0:parseInt(i[1],10);r=goog.string.internal.compareElements_(r,s)||goog.string.internal.compareElements_(n[2].length==0,i[2].length==0)||goog.string.internal.compareElements_(n[2],i[2]),n=n[3],i=i[3]}while(r==0)}return r},goog.string.internal.compareElements_=function(o,e){return o<e?-1:o>e?1:0},goog.html.SafeUrl=function(o,e){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=o===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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(o){return o instanceof goog.html.SafeUrl&&o.constructor===goog.html.SafeUrl&&o.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(o){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(o)},goog.html.SafeUrl.fromBlob=function(o){return o=goog.html.SafeUrl.isSafeMimeType(o.type)?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromMediaSource=function(o){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),o=o instanceof MediaSource?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(o){o=o.replace(/(%0A|%0D)/g,"");var e=o.match(goog.html.DATA_URL_PATTERN_);return e=e&&goog.html.SafeUrl.isSafeMimeType(e[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e?o:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"tel:")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(o){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(o))||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"fb-messenger://share")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromWhatsAppUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"whatsapp://send")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromSmsUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(o){var e=o.indexOf("#");if(0<e&&(o=o.substring(0,e)),e=o.match(/[?&]body=/gi),!e)return!0;if(1<e.length)return!1;if(o=o.match(/[?&]body=([^&]*)/)[1],!o)return!0;try{decodeURIComponent(o)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(o)},goog.html.SafeUrl.fromSshUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"ssh://")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(o,e,r){return(o=o.exec(e))?(o=o[1],(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(p){return goog.string.Const.unwrap(p)})).indexOf(o)==-1&&(e=goog.html.SafeUrl.INNOCUOUS_STRING)):e=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromTrustedResourceUrl=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(o))},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(o){return o instanceof goog.html.SafeUrl?o:(o=typeof o=="object"&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),goog.html.SAFE_URL_PATTERN_.test(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(o,e){return o instanceof goog.html.SafeUrl?o:(o=typeof o=="object"&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),e&&/^data:/i.test(o)&&(e=goog.html.SafeUrl.fromDataUrl(o),e.getTypedStringValue()==o)?e:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(o),"%s does not match the safe URL pattern",o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeUrl(goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},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(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(o,";"),"Last character of style string is not ';': "+o),goog.asserts.assert(goog.string.internal.contains(o,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+o),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o))},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(o){return o instanceof goog.html.SafeStyle&&o.constructor===goog.html.SafeStyle&&o.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=o,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(o){var e="",r;for(r in o){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("Name allows only [-_a-zA-Z0-9], got: "+r);var p=o[r];p!=null&&(p=Array.isArray(p)?goog.array.map(p,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(p),e+=r+":"+p+";")}return e?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(o){if(o instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(o).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(o=o instanceof goog.string.Const?goog.string.Const.unwrap(o):goog.html.SafeStyle.sanitizePropertyValueString_(String(o)),/[{;}]/.test(o))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[o]);return o},goog.html.SafeStyle.sanitizePropertyValueString_=function(o){var e=o.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");if(goog.html.SafeStyle.VALUE_RE_.test(e)){if(goog.html.SafeStyle.COMMENT_RE_.test(o))return goog.asserts.fail("String value disallows comments, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedQuotes_(o))return goog.asserts.fail("String value requires balanced quotes, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedSquareBrackets_(o))return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING}else return goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;return goog.html.SafeStyle.sanitizeUrl_(o)},goog.html.SafeStyle.hasBalancedQuotes_=function(o){for(var e=!0,r=!0,p=0;p<o.length;p++){var t=o.charAt(p);t=="'"&&r?e=!e:t=='"'&&e&&(r=!r)}return e&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(o){for(var e=!0,r=/^[-_a-zA-Z0-9]$/,p=0;p<o.length;p++){var t=o.charAt(p);if(t=="]"){if(e)return!1;e=!0}else if(t=="["){if(!e)return!1;e=!1}else if(!e&&!r.test(t))return!1}return e},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.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" "),goog.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(o){return o.replace(goog.html.SafeStyle.URL_RE_,function(e,r,p,t){var n="";return p=p.replace(/^(['"])(.*)\1$/,function(i,s,g){return n=s,g}),e=goog.html.SafeUrl.sanitize(p).getTypedStringValue(),r+n+e+n+t})},goog.html.SafeStyle.concat=function(o){var e="",r=function(p){Array.isArray(p)?goog.array.forEach(p,r):e+=goog.html.SafeStyle.unwrap(p)};return goog.array.forEach(arguments,r),e?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e):goog.html.SafeStyle.EMPTY},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(o,e){if(goog.string.internal.contains(o,"<"))throw Error("Selector does not allow '<', got: "+o);var r=o.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: "+o);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+o);return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),o=o+"{"+goog.html.SafeStyle.unwrap(e).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(o){for(var e={"(":")","[":"]"},r=[],p=0;p<o.length;p++){var t=o[p];if(e[t])r.push(e[t]);else if(goog.object.contains(e,t)&&r.pop()!=t)return!1}return r.length==0},goog.html.SafeStyleSheet.concat=function(o){var e="",r=function(p){Array.isArray(p)?goog.array.forEach(p,r):e+=goog.html.SafeStyleSheet.unwrap(p)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.fromConstant=function(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(o,"<"),"Forbidden '<' character in style sheet string: "+o),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o))},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(o){return o instanceof goog.html.SafeStyleSheet&&o.constructor===goog.html.SafeStyleSheet&&o.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=o,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var o=goog.labs.userAgent.util.getNavigator_();return o&&(o=o.userAgent)?o:""},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(o){goog.labs.userAgent.util.userAgent_=o||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(o){var e=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(e,o)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(o){var e=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(e,o)},goog.labs.userAgent.util.extractVersionTuples=function(o){for(var e=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,r=[],p;p=e.exec(o);)r.push([p[1],p[2],p[3]||void 0]);return r},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 o(t){return t=goog.array.find(t,p),r[t]||""}var e=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(e);e=goog.labs.userAgent.util.extractVersionTuples(e);var r={};goog.array.forEach(e,function(t){r[t[0]]=t[1]});var p=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?o(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?o(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?o(["Edg"]):goog.labs.userAgent.browser.isChrome()?o(["Chrome","CriOS","HeadlessChrome"]):(e=e[2])&&e[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(o){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),o)},goog.labs.userAgent.browser.getIEVersion_=function(o){var e=/rv: *([\d\.]*)/.exec(o);if(e&&e[1])return e[1];e="";var r=/MSIE +([\d\.]+)/.exec(o);if(r&&r[1])if(o=/Trident\/(\d.\d)/.exec(o),r[1]=="7.0")if(o&&o[1])switch(o[1]){case"4.0":e="8.0";break;case"5.0":e="9.0";break;case"6.0":e="10.0";break;case"7.0":e="11.0"}else e="7.0";else e=r[1];return e},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.ENABLE_ERROR_MESSAGES=goog.DEBUG,goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,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(o){return goog.html.SafeHtml.unwrapTrustedHTML(o).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(o){return o instanceof goog.html.SafeHtml&&o.constructor===goog.html.SafeHtml&&o.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(o){if(o instanceof goog.html.SafeHtml)return o;var e=typeof o=="object",r=null;return e&&o.implementsGoogI18nBidiDirectionalString&&(r=o.getDirection()),o=e&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(o),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(o){return o instanceof goog.html.SafeHtml?o:(o=goog.html.SafeHtml.htmlEscape(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(o)),o.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(o){return o instanceof goog.html.SafeHtml?o:(o=goog.html.SafeHtml.htmlEscape(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(o)),o.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.comment=function(o){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!--"+goog.string.internal.htmlEscape(o)+"-->",null)},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(o,e,r){return goog.html.SafeHtml.verifyTagName(String(o)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(o),e,r)},goog.html.SafeHtml.verifyTagName=function(o){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+o+">.":"");if(o.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+o+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(o,e,r,p){o&&goog.html.TrustedResourceUrl.unwrap(o);var t={};return t.src=o||null,t.srcdoc=e&&goog.html.SafeHtml.unwrap(e),o=goog.html.SafeHtml.combineAttributes(t,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,p)},goog.html.SafeHtml.createSandboxIframe=function(o,e,r,p){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var t={};return t.src=o?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)):null,t.srcdoc=e||null,t.sandbox="",o=goog.html.SafeHtml.combineAttributes(t,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,p)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(o,e){return goog.html.TrustedResourceUrl.unwrap(o),o=goog.html.SafeHtml.combineAttributes({src:o},{},e),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o)},goog.html.SafeHtml.createScript=function(o,e){for(var r in e){var p=r.toLowerCase();if(p=="language"||p=="src"||p=="text"||p=="type")throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+p+'" attribute':"")}for(r="",o=goog.array.concat(o),p=0;p<o.length;p++)r+=goog.html.SafeScript.unwrap(o[p]);return o=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e,o)},goog.html.SafeHtml.createStyle=function(o,e){e=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},e);var r="";o=goog.array.concat(o);for(var p=0;p<o.length;p++)r+=goog.html.SafeStyleSheet.unwrap(o[p]);return o=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",e,o)},goog.html.SafeHtml.createMetaRefresh=function(o,e){return o=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(o,";")&&(o="'"+o.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(e||0)+"; url="+o})},goog.html.SafeHtml.getAttrNameAndValue_=function(o,e,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if(e.toLowerCase()=="style")if(goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)r=goog.html.SafeHtml.getStyleValue_(r);else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");else{if(/^on/i.test(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+e+'" requires goog.string.Const value, "'+r+'" given.':"");if(e.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(typeof r=="string")r=goog.html.SafeUrl.sanitize(r).getTypedStringValue();else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+e+'" on tag "'+o+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.':"")}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(typeof r=="string"||typeof r=="number","String or number value expected, got "+typeof r+" with value: "+r),e+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(o){if(!goog.isObject(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof o+" given: "+o:"");return o instanceof goog.html.SafeStyle||(o=goog.html.SafeStyle.create(o)),goog.html.SafeStyle.unwrap(o)},goog.html.SafeHtml.createWithDir=function(o,e,r,p){return e=goog.html.SafeHtml.create(e,r,p),e.dir_=o,e},goog.html.SafeHtml.join=function(o,e){o=goog.html.SafeHtml.htmlEscape(o);var r=o.getDirection(),p=[],t=function(n){Array.isArray(n)?goog.array.forEach(n,t):(n=goog.html.SafeHtml.htmlEscape(n),p.push(goog.html.SafeHtml.unwrap(n)),n=n.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=n:n!=goog.i18n.bidi.Dir.NEUTRAL&&r!=n&&(r=null))};return goog.array.forEach(e,t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(p.join(goog.html.SafeHtml.unwrap(o)),r)},goog.html.SafeHtml.concat=function(o){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(o,e){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=o,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(o,e){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(o,e)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o,e){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(o):o,this.dir_=e,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(o,e,r){var p=null,t="<"+o+goog.html.SafeHtml.stringifyAttributes(o,e);return r==null?r=[]:Array.isArray(r)||(r=[r]),goog.dom.tags.isVoidTag(o.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+o+"> does not allow content."),t+=">"):(p=goog.html.SafeHtml.concat(r),t+=">"+goog.html.SafeHtml.unwrap(p)+"</"+o+">",p=p.getDirection()),(o=e&&e.dir)&&(p=/^(ltr|rtl|auto)$/i.test(o)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,p)},goog.html.SafeHtml.stringifyAttributes=function(o,e){var r="";if(e)for(var p in e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(p))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+p+'".':"");var t=e[p];t!=null&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(o,p,t))}return r},goog.html.SafeHtml.combineAttributes=function(o,e,r){var p={},t;for(t in o)goog.asserts.assert(t.toLowerCase()==t,"Must be lower case"),p[t]=o[t];for(t in e)goog.asserts.assert(t.toLowerCase()==t,"Must be lower case"),p[t]=e[t];if(r)for(t in r){var n=t.toLowerCase();if(n in o)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+n+'" attribute, got "'+t+'" with value "'+r[t]+'"':"");n in e&&delete p[n],p[t]=r[t]}return p},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(o,e,r){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(e,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(o,e,r){o.insertAdjacentHTML(e,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&&typeof document>"u")return!1;var o=document.createElement("div"),e=document.createElement("div");return e.appendChild(document.createElement("div")),o.appendChild(e),goog.DEBUG&&!o.firstChild?!1:(e=o.firstChild.firstChild,o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!e.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(o,e){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;o.lastChild;)o.removeChild(o.lastChild);o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setInnerHtml=function(o,e){if(goog.asserts.ENABLE_ASSERTS){var r=o.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 "+o.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(o,e)},goog.dom.safe.setOuterHtml=function(o,e){o.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setFormElementAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLFormElement(o).action=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setButtonFormAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLButtonElement(o).formAction=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setInputFormAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLInputElement(o).formAction=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setStyle=function(o,e){o.style.cssText=goog.html.SafeStyle.unwrap(e)},goog.dom.safe.documentWrite=function(o,e){o.write(goog.html.SafeHtml.unwrapTrustedHTML(e))},goog.dom.safe.setAnchorHref=function(o,e){goog.dom.asserts.assertIsHTMLAnchorElement(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.href=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setImageSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLImageElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setAudioSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLAudioElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setVideoSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLVideoElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setEmbedSrc=function(o,e){goog.dom.asserts.assertIsHTMLEmbedElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e)},goog.dom.safe.setFrameSrc=function(o,e){goog.dom.asserts.assertIsHTMLFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(e)},goog.dom.safe.setIframeSrc=function(o,e){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(e)},goog.dom.safe.setIframeSrcdoc=function(o,e){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setLinkHrefAndRel=function(o,e,r){goog.dom.asserts.assertIsHTMLLinkElement(o),o.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(e instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),o.href=goog.html.TrustedResourceUrl.unwrap(e)):o.href=e instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(e):e instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(e):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(e))},goog.dom.safe.setObjectData=function(o,e){goog.dom.asserts.assertIsHTMLObjectElement(o),o.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e)},goog.dom.safe.setScriptSrc=function(o,e){goog.dom.asserts.assertIsHTMLScriptElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e),(e=goog.getScriptNonce())&&o.setAttribute("nonce",e)},goog.dom.safe.setScriptContent=function(o,e){goog.dom.asserts.assertIsHTMLScriptElement(o),o.text=goog.html.SafeScript.unwrapTrustedScript(e),(e=goog.getScriptNonce())&&o.setAttribute("nonce",e)},goog.dom.safe.setLocationHref=function(o,e){goog.dom.asserts.assertIsLocation(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.href=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.assignLocation=function(o,e){goog.dom.asserts.assertIsLocation(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.assign(goog.html.SafeUrl.unwrap(e))},goog.dom.safe.replaceLocation=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.replace(goog.html.SafeUrl.unwrap(e))},goog.dom.safe.openInWindow=function(o,e,r,p,t){return o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),e=e||goog.global,r=r instanceof goog.string.Const?goog.string.Const.unwrap(r):r||"",e.open(goog.html.SafeUrl.unwrap(o),r,p,t)},goog.dom.safe.parseFromStringHtml=function(o,e){return goog.dom.safe.parseFromString(o,e,"text/html")},goog.dom.safe.parseFromString=function(o,e,r){return o.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(e),r)},goog.dom.safe.createImageFromBlob=function(o){if(!/^image\/.*/g.test(o.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var e=goog.global.URL.createObjectURL(o);return o=new goog.global.Image,o.onload=function(){goog.global.URL.revokeObjectURL(e)},goog.dom.safe.setImageSrc(o,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),e)),o},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(o,e){for(var r=o.split("%s"),p="",t=Array.prototype.slice.call(arguments,1);t.length&&1<r.length;)p+=r.shift()+t.shift();return p+r.join("%s")},goog.string.collapseWhitespace=function(o){return o.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(o){return o.length==0},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(o){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(o))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(o){return!/[^\t\n\r ]/.test(o)},goog.string.isAlpha=function(o){return!/[^a-zA-Z]/.test(o)},goog.string.isNumeric=function(o){return!/[^0-9]/.test(o)},goog.string.isAlphaNumeric=function(o){return!/[^a-zA-Z0-9]/.test(o)},goog.string.isSpace=function(o){return o==" "},goog.string.isUnicodeChar=function(o){return o.length==1&&" "<=o&&"~">=o||"€"<=o&&"�">=o},goog.string.stripNewlines=function(o){return o.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(o){return o.replace(/(\r\n|\r|\n)/g,`
152
152
  `)},goog.string.normalizeWhitespace=function(o){return o.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(o){return o.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(o){return o.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(o){return o.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(o){return o.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(o,e,r){if(o==e)return 0;if(!o)return-1;if(!e)return 1;for(var p=o.toLowerCase().match(r),t=e.toLowerCase().match(r),n=Math.min(p.length,t.length),i=0;i<n;i++){r=p[i];var s=t[i];if(r!=s)return o=parseInt(r,10),!isNaN(o)&&(e=parseInt(s,10),!isNaN(e)&&o-e)?o-e:r<s?-1:1}return p.length!=t.length?p.length-t.length:o<e?-1:1},goog.string.intAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\D+/g)},goog.string.floatAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(o){return encodeURIComponent(String(o))},goog.string.urlDecode=function(o){return decodeURIComponent(o.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(o,e){return o=goog.string.internal.htmlEscape(o,e),goog.string.DETECT_DOUBLE_ESCAPING&&(o=o.replace(goog.string.E_RE_,"&#101;")),o},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(o){return goog.string.contains(o,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(o):goog.string.unescapePureXmlEntities_(o):o},goog.string.unescapeEntitiesWithDocument=function(o,e){return goog.string.contains(o,"&")?goog.string.unescapeEntitiesUsingDom_(o,e):o},goog.string.unescapeEntitiesUsingDom_=function(o,e){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},p=e?e.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function(t,n){var i=r[t];return i||(n.charAt(0)=="#"&&(n=Number("0"+n.substr(1)),isNaN(n)||(i=String.fromCharCode(n))),i||(goog.dom.safe.setInnerHtml(p,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),t+" ")),i=p.firstChild.nodeValue.slice(0,-1)),r[t]=i)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(e,r){switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.substr(1)),isNaN(r))?e:String.fromCharCode(r)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,e){return goog.string.newLineToBr(o.replace(/ /g," &#160;"),e)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,e){for(var r=e.length,p=0;p<r;p++){var t=r==1?e:e.charAt(p);if(o.charAt(0)==t&&o.charAt(o.length-1)==t)return o.substring(1,o.length-1)}return o},goog.string.truncate=function(o,e,r){return r&&(o=goog.string.unescapeEntities(o)),o.length>e&&(o=o.substring(0,e-3)+"..."),r&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,e,r,p){if(r&&(o=goog.string.unescapeEntities(o)),p&&o.length>e){p>e&&(p=e);var t=o.length-p;o=o.substring(0,e-p)+"..."+o.substring(t)}else o.length>e&&(p=Math.floor(e/2),t=o.length-p,o=o.substring(0,p+e%2)+"..."+o.substring(t));return r&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var e=['"'],r=0;r<o.length;r++){var p=o.charAt(r),t=p.charCodeAt(0);e[r+1]=goog.string.specialEscapeChars_[p]||(31<t&&127>t?p:goog.string.escapeChar(p))}return e.push('"'),e.join("")},goog.string.escapeString=function(o){for(var e=[],r=0;r<o.length;r++)e[r]=goog.string.escapeChar(o.charAt(r));return e.join("")},goog.string.escapeChar=function(o){if(o in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[o];if(o in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[o]=goog.string.specialEscapeChars_[o];var e=o.charCodeAt(0);if(31<e&&127>e)var r=o;else 256>e?(r="\\x",(16>e||256<e)&&(r+="0")):(r="\\u",4096>e&&(r+="0")),r+=e.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,e){return o&&e?o.split(e).length-1:0},goog.string.removeAt=function(o,e,r){var p=o;return 0<=e&&e<o.length&&0<r&&(p=o.substr(0,e)+o.substr(e+r,o.length-e-r)),p},goog.string.remove=function(o,e){return o.replace(e,"")},goog.string.removeAll=function(o,e){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,"")},goog.string.replaceAll=function(o,e,r){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(o){return String(o).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(o,e){return o.repeat(e)}:function(o,e){return Array(e+1).join(o)},goog.string.padNumber=function(o,e,r){return o=r!==void 0?o.toFixed(r):String(o),r=o.indexOf("."),r==-1&&(r=o.length),goog.string.repeat("0",Math.max(0,e-r))+o},goog.string.makeSafe=function(o){return o==null?"":String(o)},goog.string.buildString=function(o){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(o){for(var e=0,r=0;r<o.length;++r)e=31*e+o.charCodeAt(r)>>>0;return e},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var e=Number(o);return e==0&&goog.string.isEmptyOrWhitespace(o)?NaN:e},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(e,r){return r.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,e){return e=typeof e=="string"?goog.string.regExpEscape(e):"\\s",o.replace(new RegExp("(^"+(e?"|["+e+"]+":"")+")([a-z])","g"),function(r,p,t){return p+t.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),typeof o=="string"?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,e,r){o=o.split(e);for(var p=[];0<r&&o.length;)p.push(o.shift()),r--;return o.length&&p.push(o.join(e)),p},goog.string.lastComponent=function(o,e){if(e)typeof e=="string"&&(e=[e]);else return o;for(var r=-1,p=0;p<e.length;p++)if(e[p]!=""){var t=o.lastIndexOf(e[p]);t>r&&(r=t)}return r==-1?o:o.slice(r+1)},goog.string.editDistance=function(o,e){var r=[],p=[];if(o==e)return 0;if(!o.length||!e.length)return Math.max(o.length,e.length);for(var t=0;t<e.length+1;t++)r[t]=t;for(t=0;t<o.length;t++){p[0]=t+1;for(var n=0;n<e.length;n++)p[n+1]=Math.min(p[n]+1,r[n+1]+1,r[n]+Number(o[t]!=e[n]));for(n=0;n<r.length;n++)r[n]=p[n]}return p[e.length]},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 o=goog.labs.userAgent.util.getUserAgent();if(o){o=goog.labs.userAgent.util.extractVersionTuples(o);var e=goog.labs.userAgent.engine.getEngineTuple_(o);if(e)return e[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(o,"Firefox"):e[1];o=o[0];var r;if(o&&(r=o[2])&&(r=/Trident\/([^\s;]+)/.exec(r)))return r[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(o){if(!goog.labs.userAgent.engine.isEdge())return o[1];for(var e=0;e<o.length;e++){var r=o[e];if(r[0]=="Edge")return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),o)},goog.labs.userAgent.engine.getVersionForKey_=function(o,e){return(o=goog.array.find(o,function(r){return e==r[0]}))&&o[1]||""},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.getVersion=function(){var o=goog.labs.userAgent.util.getUserAgent(),e="";return goog.labs.userAgent.platform.isWindows()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(o=e.exec(o))?o[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(o=e.exec(o))&&o[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(e=/Mac OS X ([0-9_.]+)/,e=(o=e.exec(o))?o[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(e=/(?:KaiOS)\/(\S+)/i,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isAndroid()?(e=/Android\s+([^\);]+)(\)|;)/,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isChromeOS()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(o=e.exec(o))&&o[1]),e||""},goog.labs.userAgent.platform.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),o)},goog.reflect={},goog.reflect.object=function(o,e){return e},goog.reflect.objectProperty=function(o,e){return o},goog.reflect.sinkValue=function(o){return goog.reflect.sinkValue[" "](o),o},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(o,e){try{return goog.reflect.sinkValue(o[e]),!0}catch{}return!1},goog.reflect.cache=function(o,e,r,p){return p=p?p(e):e,Object.prototype.hasOwnProperty.call(o,p)?o[p]:o[p]=r(e)},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 o=goog.userAgent.getNavigatorTyped();return o&&o.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.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 o=goog.userAgent.getNavigatorTyped();return!!o&&goog.string.contains(o.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.determineVersion_=function(){var o="",e=goog.userAgent.getVersionRegexResult_();return e&&(o=e?e[1]:""),goog.userAgent.IE&&(e=goog.userAgent.getDocumentMode_(),e!=null&&e>parseFloat(o))?String(e):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(o);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(o);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(o)},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,e){return goog.string.compareVersions(o,e)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE){var o=goog.userAgent.getDocumentMode_();return o||parseInt(goog.userAgent.VERSION,10)||void 0}}(),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(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},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_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,e){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),e===void 0&&(e=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),e=goog.crypt.base64.byteToCharMaps_[e];for(var r=[],p=0;p<o.length;p+=3){var t=o[p],n=p+1<o.length,i=n?o[p+1]:0,s=p+2<o.length,g=s?o[p+2]:0,l=t>>2;t=(t&3)<<4|i>>4,i=(i&15)<<2|g>>6,g&=63,s||(g=64,n||(i=64)),r.push(e[l],e[t],e[i]||"",e[g]||"")}return r.join("")},goog.crypt.base64.encodeString=function(o,e){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!e?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),e)},goog.crypt.base64.decodeString=function(o,e){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!e)return goog.global.atob(o);var r="";return goog.crypt.base64.decodeStringInternal_(o,function(p){r+=String.fromCharCode(p)}),r},goog.crypt.base64.decodeStringToByteArray=function(o,e){var r=[];return goog.crypt.base64.decodeStringInternal_(o,function(p){r.push(p)}),r},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var e=o.length,r=3*e/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(o[e-1])&&(r=goog.crypt.base64.isPadding_(o[e-2])?r-2:r-1);var p=new Uint8Array(r),t=0;return goog.crypt.base64.decodeStringInternal_(o,function(n){p[t++]=n}),p.subarray(0,t)},goog.crypt.base64.decodeStringInternal_=function(o,e){function r(g){for(;p<o.length;){var l=o.charAt(p++),u=goog.crypt.base64.charToByteMap_[l];if(u!=null)return u;if(!goog.string.isEmptyOrWhitespace(l))throw Error("Unknown base64 encoding at char: "+l)}return g}goog.crypt.base64.init_();for(var p=0;;){var t=r(-1),n=r(0),i=r(64),s=r(64);if(s===64&&t===-1)break;e(t<<2|n>>4),i!=64&&(e(n<<4&240|i>>2),s!=64&&e(i<<6&192|s))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var p=o.concat(e[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=p;for(var t=0;t<p.length;t++){var n=p[t],i=goog.crypt.base64.charToByteMap_[n];i===void 0?goog.crypt.base64.charToByteMap_[n]=t:goog.asserts.assert(i===t)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(o){var e=o>>>0;o=Math.floor((o-e)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=e,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var e=0>o;o=Math.abs(o);var r=o>>>0;o=Math.floor((o-r)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,e&&(o=~o>>>0,r=(~r>>>0)+1,4294967295<r&&(r=0,o++,4294967295<o&&(o=0))),jspb.utils.split64Low=r,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var e=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;e&&(o==0?r==0?r=o=4294967295:(r--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|2139095040)>>>0;else if(o<jspb.BinaryConstants.FLOAT32_MIN)o=Math.round(o/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|o)>>>0;else{var r=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-r),o=Math.round(o*jspb.BinaryConstants.TWO_TO_23),16777216<=o&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|r+127<<23|o&8388607)>>>0}},jspb.utils.splitFloat64=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(e<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o<jspb.BinaryConstants.FLOAT64_MIN){var r=o/Math.pow(2,-1074);o=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(e<<31|o)>>>0,jspb.utils.split64Low=r>>>0}else{r=o;var p=0;if(2<=r)for(;2<=r&&1023>p;)p++,r/=2;else for(;1>r&&-1022<p;)r*=2,p--;r=o*Math.pow(2,-p),o=r*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(e<<31|p+1023<<20|o)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(o){var e=o.charCodeAt(0),r=o.charCodeAt(1),p=o.charCodeAt(2),t=o.charCodeAt(3),n=o.charCodeAt(4),i=o.charCodeAt(5),s=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=e+(r<<8)+(p<<16)+(t<<24)>>>0,jspb.utils.split64High=n+(i<<8)+(s<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,e){return e*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e>>>0,o==0&&(e=e+1>>>0)),o=jspb.utils.joinUint64(o,e),r?-o:o},jspb.utils.toZigzag64=function(o,e,r){var p=e>>31;return r(o<<1^p,(e<<1|o>>>31)^p)},jspb.utils.joinZigzag64=function(o,e){return jspb.utils.fromZigzag64(o,e,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,e,r){var p=-(o&1);return r((o>>>1|e<<31)^p,e>>>1^p)},jspb.utils.joinFloat32=function(o,e){e=2*(o>>31)+1;var r=o>>>23&255;return o&=8388607,r==255?o?NaN:1/0*e:r==0?e*Math.pow(2,-149)*o:e*Math.pow(2,r-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,e){var r=2*(e>>31)+1,p=e>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(e&1048575)+o,p==2047?o?NaN:1/0*r:p==0?r*Math.pow(2,-1074)*o:r*Math.pow(2,p-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,e){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,e){function r(t,n){return t=t?String(t):"",n?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+jspb.utils.joinUint64(o,e);var p=(o>>>24|e<<8)>>>0&16777215;return e=e>>16&65535,o=(o&16777215)+6777216*p+6710656*e,p+=8147497*e,e*=2,1e7<=o&&(p+=Math.floor(o/1e7),o%=1e7),1e7<=p&&(e+=Math.floor(p/1e7),p%=1e7),r(e,0)+r(p,e)+r(o,1)},jspb.utils.joinSignedDecimalString=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e+(o==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,e),r?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinSignedDecimalString(o,r):jspb.utils.joinUnsignedDecimalString(o,r)},jspb.utils.hash64ArrayToDecimalStrings=function(o,e){for(var r=Array(o.length),p=0;p<o.length;p++)r[p]=jspb.utils.hash64ToDecimalString(o[p],e);return r},jspb.utils.decimalStringToHash64=function(o){function e(i,s){for(var g=0;8>g&&(i!==1||0<s);g++)s=i*t[g]+s,t[g]=s&255,s>>>=8}function r(){for(var i=0;8>i;i++)t[i]=~t[i]&255}jspb.asserts.assert(0<o.length);var p=!1;o[0]==="-"&&(p=!0,o=o.slice(1));for(var t=[0,0,0,0,0,0,0,0],n=0;n<o.length;n++)e(10,o.charCodeAt(n)-jspb.utils.ZERO_CHAR_CODE_);return p&&(r(),e(1,1)),goog.crypt.byteArrayToString(t)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var p=o.charCodeAt(7-r);e[2*r+2]=jspb.utils.toHexDigit_(p>>4),e[2*r+3]=jspb.utils.toHexDigit_(p&15)}return e.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),jspb.asserts.assert(o.length==18),jspb.asserts.assert(o[0]=="0"),jspb.asserts.assert(o[1]=="x");for(var e="",r=0;8>r;r++){var p=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+2)),t=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+3));e=String.fromCharCode(16*p+t)+e}return e},jspb.utils.hash64ToNumber=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinInt64(o,r):jspb.utils.joinUint64(o,r)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,e,r){for(var p=0,t=e;t<r;t++)p+=o[t]>>7;return r-e-p},jspb.utils.countVarintFields=function(o,e,r,p){var t=0;if(p=8*p+jspb.BinaryConstants.WireType.VARINT,128>p)for(;e<r&&o[e++]==p;)for(t++;;){var n=o[e++];if(!(n&128))break}else for(;e<r;){for(n=p;128<n;){if(o[e]!=(n&127|128))return t;e++,n>>=7}if(o[e++]!=n)break;for(t++;n=o[e++],(n&128)!=0;);}return t},jspb.utils.countFixedFields_=function(o,e,r,p,t){var n=0;if(128>p)for(;e<r&&o[e++]==p;)n++,e+=t;else for(;e<r;){for(var i=p;128<i;){if(o[e++]!=(i&127|128))return n;i>>=7}if(o[e++]!=i)break;n++,e+=t}return n},jspb.utils.countFixed32Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,e,r,p){var t=0;for(p=8*p+jspb.BinaryConstants.WireType.DELIMITED;e<r;){for(var n=p;128<n;){if(o[e++]!=(n&127|128))return t;n>>=7}if(o[e++]!=n)break;t++;for(var i=0,s=1;n=o[e++],i+=(n&127)*s,s*=128,(n&128)!=0;);e+=i}return t},jspb.utils.debugBytesToTextFormat=function(o){var e='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var r=0;r<o.length;r++)e+="\\x",16>o[r]&&(e+="0"),e+=o[r].toString(16)}return e+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var e=new Uint8Array(o.length),r=0;r<o.length;r++){var p=o.charCodeAt(r);if(255<p)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=p}return e},jspb.utils.byteSourceToUint8Array=function(o){return o.constructor===Uint8Array?o:o.constructor===ArrayBuffer||o.constructor===Array?new Uint8Array(o):o.constructor===String?goog.crypt.base64.decodeStringToUint8Array(o):o instanceof Uint8Array?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):(jspb.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(o,e,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,o&&this.setBlock(o,e,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(o,e,r){if(jspb.BinaryDecoder.instanceCache_.length){var p=jspb.BinaryDecoder.instanceCache_.pop();return o&&p.setBlock(o,e,r),p}return new jspb.BinaryDecoder(o,e,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(o,e,r){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=e!==void 0?e:0,this.end_=r!==void 0?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,jspb.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(o){for(var e=128,r=0,p=0,t=0;4>t&&128<=e;t++)e=this.bytes_[this.cursor_++],r|=(e&127)<<7*t;if(128<=e&&(e=this.bytes_[this.cursor_++],r|=(e&127)<<28,p|=(e&127)>>4),128<=e)for(t=0;5>t&&128<=e;t++)e=this.bytes_[this.cursor_++],p|=(e&127)<<7*t+3;if(128>e)return o(r>>>0,p>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var e=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var p=0,t=0,n=r+7;n>=r;n--)p=p<<8|e[n],t=t<<8|e[n+4];return o(p,t)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128<o;)this.cursor_--,o>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,e=o[this.cursor_+0],r=e&127;return 128>e?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+1],r|=(e&127)<<7,128>e?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+2],r|=(e&127)<<14,128>e?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+3],r|=(e&127)<<21,128>e?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+4],r|=(e&15)<<28,128>e?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.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 o=this.readUnsignedVarint32();return o>>>1^-(o&1)},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 o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8|r<<16|p<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUint64(o,e)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8|r<<16|p<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinInt64(o,e)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinSignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinFloat64(o,e)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var e=this.bytes_,r=this.cursor_;o=r+o;for(var p=[],t="";r<o;){var n=e[r++];if(128>n)p.push(n);else{if(192>n)continue;if(224>n){var i=e[r++];p.push((n&31)<<6|i&63)}else if(240>n){i=e[r++];var s=e[r++];p.push((n&15)<<12|(i&63)<<6|s&63)}else if(248>n){i=e[r++],s=e[r++];var g=e[r++];n=(n&7)<<18|(i&63)<<12|(s&63)<<6|g&63,n-=65536,p.push((n>>10&1023)+55296,(n&1023)+56320)}}8192<=p.length&&(t+=String.fromCharCode.apply(null,p),p.length=0)}return t+=goog.crypt.byteArrayToString(p),this.cursor_=r,t},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var e=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,e=this.cursor_,r=o[e+0],p=o[e+1],t=o[e+2],n=o[e+3],i=o[e+4],s=o[e+5],g=o[e+6];return o=o[e+7],this.cursor_+=8,String.fromCharCode(r,p,t,n,i,s,g,o)},jspb.BinaryReader=function(o,e,r){this.decoder_=jspb.BinaryDecoder.alloc(o,e,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(o,e,r){if(jspb.BinaryReader.instanceCache_.length){var p=jspb.BinaryReader.instanceCache_.pop();return o&&p.decoder_.setBlock(o,e,r),p}return new jspb.BinaryReader(o,e,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_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,e,r){this.decoder_.setBlock(o,e,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(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),e=o>>>3;return o&=7,o!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=e,this.nextWireType_=o,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){var o=this.nextField_;do{if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}while(1)},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:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,e){this.readCallbacks_===null&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=e},jspb.BinaryReader.prototype.runReadCallback=function(o){return jspb.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],jspb.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var e=jspb.BinaryConstants.FieldType;switch(o){case e.DOUBLE:return this.readDouble();case e.FLOAT:return this.readFloat();case e.INT64:return this.readInt64();case e.UINT64:return this.readUint64();case e.INT32:return this.readInt32();case e.FIXED64:return this.readFixed64();case e.FIXED32:return this.readFixed32();case e.BOOL:return this.readBool();case e.STRING:return this.readString();case e.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case e.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case e.BYTES:return this.readBytes();case e.UINT32:return this.readUint32();case e.ENUM:return this.readEnum();case e.SFIXED32:return this.readSfixed32();case e.SFIXED64:return this.readSfixed64();case e.SINT32:return this.readSint32();case e.SINT64:return this.readSint64();case e.FHASH64:return this.readFixedHash64();case e.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,e){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),p=this.decoder_.readUnsignedVarint32();p=this.decoder_.getCursor()+p,this.decoder_.setEnd(p),e(o,this),this.decoder_.setCursor(p),this.decoder_.setEnd(r)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(o,e,r){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==o),r(e,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),e=this.decoder_.getCursor(),r=e+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),e,o),this.decoder_.setCursor(r),o},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();e=this.decoder_.getCursor()+e;for(var r=[];this.decoder_.getCursor()<e;)r.push(o.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt32",jspb.BinaryReader.prototype.readPackedInt32),jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt64",jspb.BinaryReader.prototype.readPackedInt64),jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint32",jspb.BinaryReader.prototype.readPackedUint32),jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint64",jspb.BinaryReader.prototype.readPackedUint64),jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint32",jspb.BinaryReader.prototype.readPackedSint32),jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint64",jspb.BinaryReader.prototype.readPackedSint64),jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed32",jspb.BinaryReader.prototype.readPackedFixed32),jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed64",jspb.BinaryReader.prototype.readPackedFixed64),jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed32",jspb.BinaryReader.prototype.readPackedSfixed32),jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed64",jspb.BinaryReader.prototype.readPackedSfixed64),jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFloat",jspb.BinaryReader.prototype.readPackedFloat),jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedDouble",jspb.BinaryReader.prototype.readPackedDouble),jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedBool",jspb.BinaryReader.prototype.readPackedBool),jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedEnum",jspb.BinaryReader.prototype.readPackedEnum),jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var o=this.buffer_;return this.buffer_=[],o},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(o,e){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);0<e||127<o;)this.buffer_.push(o&127|128),o=(o>>>7|e<<25)>>>0,e>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,e){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(o),this.writeUint32(e)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(o){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32);127<o;)this.buffer_.push(o&127|128),o>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),0<=o)this.writeUnsignedVarint32(o);else{for(var e=0;9>e;e++)this.buffer_.push(o&127|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((o<<1^o>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(o){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(o))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(o){var e=this;jspb.utils.splitHash64(o),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,p){e.writeSplitVarint64(r>>>0,p>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-128<=o&&128>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(+o>=-jspb.BinaryConstants.TWO_TO_63&&+o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){jspb.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(o)},jspb.BinaryEncoder.prototype.writeBytes=function(o){this.buffer_.push.apply(this.buffer_,o)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(o){jspb.utils.splitHash64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(o){jspb.utils.splitHash64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(o){var e=this.buffer_.length;jspb.asserts.assertString(o);for(var r=0;r<o.length;r++){var p=o.charCodeAt(r);if(128>p)this.buffer_.push(p);else if(2048>p)this.buffer_.push(p>>6|192),this.buffer_.push(p&63|128);else if(65536>p)if(55296<=p&&56319>=p&&r+1<o.length){var t=o.charCodeAt(r+1);56320<=t&&57343>=t&&(p=1024*(p-55296)+t-56320+65536,this.buffer_.push(p>>18|240),this.buffer_.push(p>>12&63|128),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128),r++)}else this.buffer_.push(p>>12|224),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128)}return this.buffer_.length-e},jspb.arith={},jspb.arith.UInt64=function(o,e){this.lo=o,this.hi=e},jspb.arith.UInt64.prototype.cmp=function(o){return this.hi<o.hi||this.hi==o.hi&&this.lo<o.lo?-1:this.hi==o.hi&&this.lo==o.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(this.hi&1)<<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!!(this.hi&2147483648)},jspb.arith.UInt64.prototype.lsb=function(){return!!(this.lo&1)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,e){var r=o&65535;o>>>=16;var p=e&65535,t=e>>>16;for(e=r*p+65536*(r*t&65535)+65536*(o*p&65535),r=o*t+(r*t>>>16)+(o*p>>>16);4294967296<=e;)e-=4294967296,r+=1;return new jspb.arith.UInt64(e>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var e=jspb.arith.UInt64.mul32x32(this.lo,o);return o=jspb.arith.UInt64.mul32x32(this.hi,o),o.hi=o.lo,o.lo=0,e.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var p=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),p=p.leftShift();for(;!p.zero();)0>=o.cmp(r)&&(e=e.add(p),r=r.sub(o)),o=o.rightShift(),p=p.rightShift();return[e,r]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",e=this;!e.zero();){e=e.div(10);var r=e[0];o=e[1].lo+o,e=r}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),p=0;p<o.length;p++){if("0">o[p]||"9"<o[p])return null;var t=parseInt(o[p],10);r.lo=t,e=e.mul(10).add(r)}return e},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(o,e){this.lo=o,this.hi=e},jspb.arith.Int64.prototype.add=function(o){return new jspb.arith.Int64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.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 o=(this.hi&2147483648)!=0,e=new jspb.arith.UInt64(this.lo,this.hi);return o&&(e=new jspb.arith.UInt64(0,0).sub(e)),(o?"-":"")+e.toString()},jspb.arith.Int64.fromString=function(o){var e=0<o.length&&o[0]=="-";return e&&(o=o.substring(1)),o=jspb.arith.UInt64.fromString(o),o===null?null:(e&&(o=new jspb.arith.UInt64(0,0).sub(o)),new jspb.arith.Int64(o.lo,o.hi))},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(o){var e=this.encoder_.end();this.blocks_.push(e),this.blocks_.push(o),this.totalLength_+=e.length+o.length},jspb.BinaryWriter.prototype.beginDelimited_=function(o){return this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),o=this.encoder_.end(),this.blocks_.push(o),this.totalLength_+=o.length,o.push(this.totalLength_),o},jspb.BinaryWriter.prototype.endDelimited_=function(o){var e=o.pop();for(e=this.totalLength_+this.encoder_.length()-e,jspb.asserts.assert(0<=e);127<e;)o.push(e&127|128),e>>>=7,this.totalLength_++;o.push(e),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,e,r){this.appendUint8Array_(o.subarray(e,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,e,r){o!=null&&e!=null&&r!=null&&this.writeSerializedMessage(o,e,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),e=this.blocks_,r=e.length,p=0,t=0;t<r;t++){var n=e[t];o.set(n,p),p+=n.length}return e=this.encoder_.end(),o.set(e,p),p+=e.length,jspb.asserts.assert(p==o.length),this.blocks_=[o],o},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(o){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),o)},jspb.BinaryWriter.prototype.beginSubMessage=function(o){this.bookmarks_.push(this.beginDelimited_(o))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(o,e){jspb.asserts.assert(1<=o&&o==Math.floor(o)),this.encoder_.writeUnsignedVarint32(8*o+e)},jspb.BinaryWriter.prototype.writeAny=function(o,e,r){var p=jspb.BinaryConstants.FieldType;switch(o){case p.DOUBLE:this.writeDouble(e,r);break;case p.FLOAT:this.writeFloat(e,r);break;case p.INT64:this.writeInt64(e,r);break;case p.UINT64:this.writeUint64(e,r);break;case p.INT32:this.writeInt32(e,r);break;case p.FIXED64:this.writeFixed64(e,r);break;case p.FIXED32:this.writeFixed32(e,r);break;case p.BOOL:this.writeBool(e,r);break;case p.STRING:this.writeString(e,r);break;case p.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case p.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case p.BYTES:this.writeBytes(e,r);break;case p.UINT32:this.writeUint32(e,r);break;case p.ENUM:this.writeEnum(e,r);break;case p.SFIXED32:this.writeSfixed32(e,r);break;case p.SFIXED64:this.writeSfixed64(e,r);break;case p.SINT32:this.writeSint32(e,r);break;case p.SINT64:this.writeSint64(e,r);break;case p.FHASH64:this.writeFixedHash64(e,r);break;case p.VHASH64:this.writeVarintHash64(e,r);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(e))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(e))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(e))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(e))},jspb.BinaryWriter.prototype.writeInt32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt32",jspb.BinaryWriter.prototype.writeInt32),jspb.BinaryWriter.prototype.writeInt32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeInt64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt64",jspb.BinaryWriter.prototype.writeInt64),jspb.BinaryWriter.prototype.writeInt64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeUint32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint32",jspb.BinaryWriter.prototype.writeUint32),jspb.BinaryWriter.prototype.writeUint32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeUint64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint64",jspb.BinaryWriter.prototype.writeUint64),jspb.BinaryWriter.prototype.writeUint64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSint32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint32",jspb.BinaryWriter.prototype.writeSint32),jspb.BinaryWriter.prototype.writeSint64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint64",jspb.BinaryWriter.prototype.writeSint64),jspb.BinaryWriter.prototype.writeSintHash64=function(o,e){e!=null&&this.writeZigzagVarintHash64_(o,e)},jspb.BinaryWriter.prototype.writeSint64String=function(o,e){e!=null&&this.writeZigzagVarint64String_(o,e)},jspb.BinaryWriter.prototype.writeFixed32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed32",jspb.BinaryWriter.prototype.writeFixed32),jspb.BinaryWriter.prototype.writeFixed64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed64",jspb.BinaryWriter.prototype.writeFixed64),jspb.BinaryWriter.prototype.writeFixed64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed32",jspb.BinaryWriter.prototype.writeSfixed32),jspb.BinaryWriter.prototype.writeSfixed64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed64",jspb.BinaryWriter.prototype.writeSfixed64),jspb.BinaryWriter.prototype.writeSfixed64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeFloat=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFloat",jspb.BinaryWriter.prototype.writeFloat),jspb.BinaryWriter.prototype.writeDouble=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeDouble",jspb.BinaryWriter.prototype.writeDouble),jspb.BinaryWriter.prototype.writeBool=function(o,e){e!=null&&(jspb.asserts.assert(typeof e=="boolean"||typeof e=="number"),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBool",jspb.BinaryWriter.prototype.writeBool),jspb.BinaryWriter.prototype.writeEnum=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeEnum",jspb.BinaryWriter.prototype.writeEnum),jspb.BinaryWriter.prototype.writeString=function(o,e){e!=null&&(o=this.beginDelimited_(o),this.encoder_.writeString(e),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeString",jspb.BinaryWriter.prototype.writeString),jspb.BinaryWriter.prototype.writeBytes=function(o,e){e!=null&&(e=jspb.utils.byteSourceToUint8Array(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),this.appendUint8Array_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBytes",jspb.BinaryWriter.prototype.writeBytes),jspb.BinaryWriter.prototype.writeMessage=function(o,e,r){e!=null&&(o=this.beginDelimited_(o),r(e,this),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeMessage",jspb.BinaryWriter.prototype.writeMessage),jspb.BinaryWriter.prototype.writeMessageSet=function(o,e,r){e!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o),o=this.beginDelimited_(3),r(e,this),this.endDelimited_(o),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(o,e,r){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e,this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeGroup",jspb.BinaryWriter.prototype.writeGroup),jspb.BinaryWriter.prototype.writeFixedHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(e))},jspb.BinaryWriter.prototype.writeVarintHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(e))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT);var p=this.encoder_;jspb.utils.toZigzag64(e,r,function(t,n){p.writeSplitVarint64(t>>>0,n>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt32",jspb.BinaryWriter.prototype.writeRepeatedInt32),jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt64",jspb.BinaryWriter.prototype.writeRepeatedInt64),jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitFixed64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitZigzagVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint32",jspb.BinaryWriter.prototype.writeRepeatedUint32),jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint64",jspb.BinaryWriter.prototype.writeRepeatedUint64),jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint32",jspb.BinaryWriter.prototype.writeRepeatedSint32),jspb.BinaryWriter.prototype.writeRepeatedSint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint64",jspb.BinaryWriter.prototype.writeRepeatedSint64),jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64String_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarintHash64_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed32",jspb.BinaryWriter.prototype.writeRepeatedFixed32),jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64",jspb.BinaryWriter.prototype.writeRepeatedFixed64),jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64String(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64String",jspb.BinaryWriter.prototype.writeRepeatedFixed64String),jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed32",jspb.BinaryWriter.prototype.writeRepeatedSfixed32),jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed64",jspb.BinaryWriter.prototype.writeRepeatedSfixed64),jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFloat(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFloat",jspb.BinaryWriter.prototype.writeRepeatedFloat),jspb.BinaryWriter.prototype.writeRepeatedDouble=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeDouble(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedDouble",jspb.BinaryWriter.prototype.writeRepeatedDouble),jspb.BinaryWriter.prototype.writeRepeatedBool=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBool(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBool",jspb.BinaryWriter.prototype.writeRepeatedBool),jspb.BinaryWriter.prototype.writeRepeatedEnum=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeEnum(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedEnum",jspb.BinaryWriter.prototype.writeRepeatedEnum),jspb.BinaryWriter.prototype.writeRepeatedString=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeString(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedString",jspb.BinaryWriter.prototype.writeRepeatedString),jspb.BinaryWriter.prototype.writeRepeatedBytes=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBytes(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBytes",jspb.BinaryWriter.prototype.writeRepeatedBytes),jspb.BinaryWriter.prototype.writeRepeatedMessage=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++){var t=this.beginDelimited_(o);r(e[p],this),this.endDelimited_(t)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedMessage",jspb.BinaryWriter.prototype.writeRepeatedMessage),jspb.BinaryWriter.prototype.writeRepeatedGroup=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++)this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e[p],this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP)},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedGroup",jspb.BinaryWriter.prototype.writeRepeatedGroup),jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixedHash64(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeVarintHash64(o,e[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt32",jspb.BinaryWriter.prototype.writePackedInt32),jspb.BinaryWriter.prototype.writePackedInt32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt64",jspb.BinaryWriter.prototype.writePackedInt64),jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitFixed64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitVarint64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=this.encoder_,n=0;n<e.length;n++)jspb.utils.toZigzag64(r(e[n]),p(e[n]),function(i,s){t.writeSplitVarint64(i>>>0,s>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.Int64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint32",jspb.BinaryWriter.prototype.writePackedUint32),jspb.BinaryWriter.prototype.writePackedUint32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint64",jspb.BinaryWriter.prototype.writePackedUint64),jspb.BinaryWriter.prototype.writePackedUint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.UInt64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint32",jspb.BinaryWriter.prototype.writePackedSint32),jspb.BinaryWriter.prototype.writePackedSint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint64",jspb.BinaryWriter.prototype.writePackedSint64),jspb.BinaryWriter.prototype.writePackedSint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e[r]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(e[r]);this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeUint32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed32",jspb.BinaryWriter.prototype.writePackedFixed32),jspb.BinaryWriter.prototype.writePackedFixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeUint64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed64",jspb.BinaryWriter.prototype.writePackedFixed64),jspb.BinaryWriter.prototype.writePackedFixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++){var r=jspb.arith.UInt64.fromString(e[o]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeInt32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed32",jspb.BinaryWriter.prototype.writePackedSfixed32),jspb.BinaryWriter.prototype.writePackedSfixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed64",jspb.BinaryWriter.prototype.writePackedSfixed64),jspb.BinaryWriter.prototype.writePackedSfixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64String(e[o])},jspb.BinaryWriter.prototype.writePackedFloat=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeFloat(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFloat",jspb.BinaryWriter.prototype.writePackedFloat),jspb.BinaryWriter.prototype.writePackedDouble=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeDouble(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedDouble",jspb.BinaryWriter.prototype.writePackedDouble),jspb.BinaryWriter.prototype.writePackedBool=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),o=0;o<e.length;o++)this.encoder_.writeBool(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedBool",jspb.BinaryWriter.prototype.writePackedBool),jspb.BinaryWriter.prototype.writePackedEnum=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeEnum(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedEnum",jspb.BinaryWriter.prototype.writePackedEnum),jspb.BinaryWriter.prototype.writePackedFixedHash64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeFixedHash64(e[o])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeVarintHash64(e[r]);this.endDelimited_(o)}},jspb.Map=function(o,e){this.arr_=o,this.valueCtor_=e,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},goog.exportSymbol("jspb.Map",jspb.Map),jspb.Map.prototype.loadFromArray_=function(){for(var o=0;o<this.arr_.length;o++){var e=this.arr_[o],r=e[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,e[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var o=this.map_,e;for(e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var r=o[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,o=this.stringKeys_(),o.sort(),e=0;e<o.length;e++){var p=this.map_[o[e]];(r=p.valueWrapper)&&r.toArray(),this.arr_.push([p.key,p.value])}this.arrClean=!0}return this.arr_},goog.exportProperty(jspb.Map.prototype,"toArray",jspb.Map.prototype.toArray),jspb.Map.prototype.toObject=function(o,e){for(var r=this.toArray(),p=[],t=0;t<r.length;t++){var n=this.map_[r[t][0].toString()];this.wrapEntry_(n);var i=n.valueWrapper;i?(jspb.asserts.assert(e),p.push([n.key,e(o,i)])):p.push([n.key,n.value])}return p},goog.exportProperty(jspb.Map.prototype,"toObject",jspb.Map.prototype.toObject),jspb.Map.fromObject=function(o,e,r){e=new jspb.Map([],e);for(var p=0;p<o.length;p++){var t=o[p][0],n=r(o[p][1]);e.set(t,n)}return e},goog.exportProperty(jspb.Map,"fromObject",jspb.Map.fromObject),jspb.Map.ArrayIteratorIterable_=function(o){this.idx_=0,this.arr_=o},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},goog.exportProperty(jspb.Map.prototype,"getLength",jspb.Map.prototype.getLength),jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},goog.exportProperty(jspb.Map.prototype,"clear",jspb.Map.prototype.clear),jspb.Map.prototype.del=function(o){o=o.toString();var e=this.map_.hasOwnProperty(o);return delete this.map_[o],this.arrClean=!1,e},goog.exportProperty(jspb.Map.prototype,"del",jspb.Map.prototype.del),jspb.Map.prototype.getEntryList=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,p.value])}return o},goog.exportProperty(jspb.Map.prototype,"getEntryList",jspb.Map.prototype.getEntryList),jspb.Map.prototype.entries=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,this.wrapEntry_(p)])}return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"entries",jspb.Map.prototype.entries),jspb.Map.prototype.keys=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.map_[e[r]].key);return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"keys",jspb.Map.prototype.keys),jspb.Map.prototype.values=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.wrapEntry_(this.map_[e[r]]));return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"values",jspb.Map.prototype.values),jspb.Map.prototype.forEach=function(o,e){var r=this.stringKeys_();r.sort();for(var p=0;p<r.length;p++){var t=this.map_[r[p]];o.call(e,this.wrapEntry_(t),t.key,this)}},goog.exportProperty(jspb.Map.prototype,"forEach",jspb.Map.prototype.forEach),jspb.Map.prototype.set=function(o,e){var r=new jspb.Map.Entry_(o);return this.valueCtor_?(r.valueWrapper=e,r.value=e.toArray()):r.value=e,this.map_[o.toString()]=r,this.arrClean=!1,this},goog.exportProperty(jspb.Map.prototype,"set",jspb.Map.prototype.set),jspb.Map.prototype.wrapEntry_=function(o){return this.valueCtor_?(o.valueWrapper||(o.valueWrapper=new this.valueCtor_(o.value)),o.valueWrapper):o.value},jspb.Map.prototype.get=function(o){if(o=this.map_[o.toString()])return this.wrapEntry_(o)},goog.exportProperty(jspb.Map.prototype,"get",jspb.Map.prototype.get),jspb.Map.prototype.has=function(o){return o.toString()in this.map_},goog.exportProperty(jspb.Map.prototype,"has",jspb.Map.prototype.has),jspb.Map.prototype.serializeBinary=function(o,e,r,p,t){var n=this.stringKeys_();n.sort();for(var i=0;i<n.length;i++){var s=this.map_[n[i]];e.beginSubMessage(o),r.call(e,1,s.key),this.valueCtor_?p.call(e,2,this.wrapEntry_(s),t):p.call(e,2,s.value),e.endSubMessage()}},goog.exportProperty(jspb.Map.prototype,"serializeBinary",jspb.Map.prototype.serializeBinary),jspb.Map.deserializeBinary=function(o,e,r,p,t,n,i){for(;e.nextField()&&!e.isEndGroup();){var s=e.getFieldNumber();s==1?n=r.call(e):s==2&&(o.valueCtor_?(jspb.asserts.assert(t),i||(i=new o.valueCtor_),p.call(e,i,t)):i=p.call(e))}jspb.asserts.assert(n!=null),jspb.asserts.assert(i!=null),o.set(n,i)},goog.exportProperty(jspb.Map,"deserializeBinary",jspb.Map.deserializeBinary),jspb.Map.prototype.stringKeys_=function(){var o=this.map_,e=[],r;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.push(r);return e},jspb.Map.Entry_=function(o,e){this.key=o,this.value=e,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(o,e,r,p,t){this.fieldIndex=o,this.fieldName=e,this.ctor=r,this.toObjectFn=p,this.isRepeated=t},goog.exportSymbol("jspb.ExtensionFieldInfo",jspb.ExtensionFieldInfo),jspb.ExtensionFieldBinaryInfo=function(o,e,r,p,t,n){this.fieldInfo=o,this.binaryReaderFn=e,this.binaryWriterFn=r,this.binaryMessageSerializeFn=p,this.binaryMessageDeserializeFn=t,this.isPacked=n},goog.exportSymbol("jspb.ExtensionFieldBinaryInfo",jspb.ExtensionFieldBinaryInfo),jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},goog.exportProperty(jspb.ExtensionFieldInfo.prototype,"isMessageType",jspb.ExtensionFieldInfo.prototype.isMessageType),jspb.Message=function(){},goog.exportSymbol("jspb.Message",jspb.Message),jspb.Message.GENERATE_TO_OBJECT=!0,goog.exportProperty(jspb.Message,"GENERATE_TO_OBJECT",jspb.Message.GENERATE_TO_OBJECT),jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,goog.exportProperty(jspb.Message,"GENERATE_FROM_OBJECT",jspb.Message.GENERATE_FROM_OBJECT),jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function",jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},goog.exportProperty(jspb.Message.prototype,"getJsPbMessageId",jspb.Message.prototype.getJsPbMessageId),jspb.Message.getIndex_=function(o,e){return e+o.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(o,e){return e-o.arrayIndexOffset_},jspb.Message.initialize=function(o,e,r,p,t,n){if(o.wrappers_=null,e||(e=r?[r]:[]),o.messageId_=r?String(r):void 0,o.arrayIndexOffset_=r===0?-1:0,o.array=e,jspb.Message.initPivotAndExtensionObject_(o,p),o.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(o.repeatedFields=t),t)for(e=0;e<t.length;e++)r=t[e],r<o.pivot_?(r=jspb.Message.getIndex_(o,r),o.array[r]=o.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[r]=o.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(n&&n.length)for(e=0;e<n.length;e++)jspb.Message.computeOneofCase(o,n[e])},goog.exportProperty(jspb.Message,"initialize",jspb.Message.initialize),jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(o){return jspb.Message.ASSUME_LOCAL_ARRAYS?o instanceof Array:Array.isArray(o)},jspb.Message.isExtensionObject_=function(o){return o!==null&&typeof o=="object"&&!jspb.Message.isArray_(o)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(o,e){var r=o.array.length,p=-1;if(r&&(p=r-1,r=o.array[p],jspb.Message.isExtensionObject_(r))){o.pivot_=jspb.Message.getFieldNumber_(o,p),o.extensionObject_=r;return}-1<e?(o.pivot_=Math.max(e,jspb.Message.getFieldNumber_(o,p+1)),o.extensionObject_=null):o.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(o){var e=jspb.Message.getIndex_(o,o.pivot_);o.array[e]||(o.extensionObject_=o.array[e]={})},jspb.Message.toObjectList=function(o,e,r){for(var p=[],t=0;t<o.length;t++)p[t]=e.call(o[t],r,o[t]);return p},goog.exportProperty(jspb.Message,"toObjectList",jspb.Message.toObjectList),jspb.Message.toObjectExtension=function(o,e,r,p,t){for(var n in r){var i=r[n],s=p.call(o,i);if(s!=null){for(var g in i.fieldName)if(i.fieldName.hasOwnProperty(g))break;e[g]=i.toObjectFn?i.isRepeated?jspb.Message.toObjectList(s,i.toObjectFn,t):i.toObjectFn(t,s):s}}},goog.exportProperty(jspb.Message,"toObjectExtension",jspb.Message.toObjectExtension),jspb.Message.serializeBinaryExtensions=function(o,e,r,p){for(var t in r){var n=r[t],i=n.fieldInfo;if(!n.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var s=p.call(o,i);if(s!=null)if(i.isMessageType())if(n.binaryMessageSerializeFn)n.binaryWriterFn.call(e,i.fieldIndex,s,n.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else n.binaryWriterFn.call(e,i.fieldIndex,s)}},goog.exportProperty(jspb.Message,"serializeBinaryExtensions",jspb.Message.serializeBinaryExtensions),jspb.Message.readBinaryExtension=function(o,e,r,p,t){var n=r[e.getFieldNumber()];if(n){if(r=n.fieldInfo,!n.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var i=new r.ctor;n.binaryReaderFn.call(e,i,n.binaryMessageDeserializeFn)}else i=n.binaryReaderFn.call(e);r.isRepeated&&!n.isPacked?(e=p.call(o,r))?e.push(i):t.call(o,r,[i]):t.call(o,r,i)}else e.skipField()},goog.exportProperty(jspb.Message,"readBinaryExtension",jspb.Message.readBinaryExtension),jspb.Message.getField=function(o,e){if(e<o.pivot_){e=jspb.Message.getIndex_(o,e);var r=o.array[e];return r===jspb.Message.EMPTY_LIST_SENTINEL_?o.array[e]=[]:r}if(o.extensionObject_)return r=o.extensionObject_[e],r===jspb.Message.EMPTY_LIST_SENTINEL_?o.extensionObject_[e]=[]:r},goog.exportProperty(jspb.Message,"getField",jspb.Message.getField),jspb.Message.getRepeatedField=function(o,e){return jspb.Message.getField(o,e)},goog.exportProperty(jspb.Message,"getRepeatedField",jspb.Message.getRepeatedField),jspb.Message.getOptionalFloatingPointField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:+o},goog.exportProperty(jspb.Message,"getOptionalFloatingPointField",jspb.Message.getOptionalFloatingPointField),jspb.Message.getBooleanField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:!!o},goog.exportProperty(jspb.Message,"getBooleanField",jspb.Message.getBooleanField),jspb.Message.getRepeatedFloatingPointField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=+r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedFloatingPointField",jspb.Message.getRepeatedFloatingPointField),jspb.Message.getRepeatedBooleanField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=!!r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedBooleanField",jspb.Message.getRepeatedBooleanField),jspb.Message.bytesAsB64=function(o){return o==null||typeof o=="string"?o:jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array?goog.crypt.base64.encodeByteArray(o):(jspb.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsB64",jspb.Message.bytesAsB64),jspb.Message.bytesAsU8=function(o){return o==null||o instanceof Uint8Array?o:typeof o=="string"?goog.crypt.base64.decodeStringToUint8Array(o):(jspb.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsU8",jspb.Message.bytesAsU8),jspb.Message.bytesListAsB64=function(o){return jspb.Message.assertConsistentTypes_(o),o.length&&typeof o[0]!="string"?goog.array.map(o,jspb.Message.bytesAsB64):o},goog.exportProperty(jspb.Message,"bytesListAsB64",jspb.Message.bytesListAsB64),jspb.Message.bytesListAsU8=function(o){return jspb.Message.assertConsistentTypes_(o),!o.length||o[0]instanceof Uint8Array?o:goog.array.map(o,jspb.Message.bytesAsU8)},goog.exportProperty(jspb.Message,"bytesListAsU8",jspb.Message.bytesListAsU8),jspb.Message.assertConsistentTypes_=function(o){if(goog.DEBUG&&o&&1<o.length){var e=goog.typeOf(o[0]);goog.array.forEach(o,function(r){goog.typeOf(r)!=e&&jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+e)})}},jspb.Message.getFieldWithDefault=function(o,e,r){return o=jspb.Message.getField(o,e),o??r},goog.exportProperty(jspb.Message,"getFieldWithDefault",jspb.Message.getFieldWithDefault),jspb.Message.getBooleanFieldWithDefault=function(o,e,r){return o=jspb.Message.getBooleanField(o,e),o??r},goog.exportProperty(jspb.Message,"getBooleanFieldWithDefault",jspb.Message.getBooleanFieldWithDefault),jspb.Message.getFloatingPointFieldWithDefault=function(o,e,r){return o=jspb.Message.getOptionalFloatingPointField(o,e),o??r},goog.exportProperty(jspb.Message,"getFloatingPointFieldWithDefault",jspb.Message.getFloatingPointFieldWithDefault),jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,goog.exportProperty(jspb.Message,"getFieldProto3",jspb.Message.getFieldProto3),jspb.Message.getMapField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),e in o.wrappers_)return o.wrappers_[e];var t=jspb.Message.getField(o,e);if(!t){if(r)return;t=[],jspb.Message.setField(o,e,t)}return o.wrappers_[e]=new jspb.Map(t,p)},goog.exportProperty(jspb.Message,"getMapField",jspb.Message.getMapField),jspb.Message.setField=function(o,e,r){return jspb.asserts.assertInstanceof(o,jspb.Message),e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[e]=r),o},goog.exportProperty(jspb.Message,"setField",jspb.Message.setField),jspb.Message.setProto3IntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3IntField",jspb.Message.setProto3IntField),jspb.Message.setProto3FloatField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3FloatField",jspb.Message.setProto3FloatField),jspb.Message.setProto3BooleanField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,!1)},goog.exportProperty(jspb.Message,"setProto3BooleanField",jspb.Message.setProto3BooleanField),jspb.Message.setProto3StringField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3StringField",jspb.Message.setProto3StringField),jspb.Message.setProto3BytesField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3BytesField",jspb.Message.setProto3BytesField),jspb.Message.setProto3EnumField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3EnumField",jspb.Message.setProto3EnumField),jspb.Message.setProto3StringIntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"0")},goog.exportProperty(jspb.Message,"setProto3StringIntField",jspb.Message.setProto3StringIntField),jspb.Message.setFieldIgnoringDefault_=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),r!==p?jspb.Message.setField(o,e,r):e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(o),delete o.extensionObject_[e]),o},jspb.Message.addToRepeatedField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),e=jspb.Message.getRepeatedField(o,e),p!=null?e.splice(p,0,r):e.push(r),o},goog.exportProperty(jspb.Message,"addToRepeatedField",jspb.Message.addToRepeatedField),jspb.Message.setOneofField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),(r=jspb.Message.computeOneofCase(o,r))&&r!==e&&p!==void 0&&(o.wrappers_&&r in o.wrappers_&&(o.wrappers_[r]=void 0),jspb.Message.setField(o,r,void 0)),jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setOneofField",jspb.Message.setOneofField),jspb.Message.computeOneofCase=function(o,e){for(var r,p,t=0;t<e.length;t++){var n=e[t],i=jspb.Message.getField(o,n);i!=null&&(r=n,p=i,jspb.Message.setField(o,n,void 0))}return r?(jspb.Message.setField(o,r,p),r):0},goog.exportProperty(jspb.Message,"computeOneofCase",jspb.Message.computeOneofCase),jspb.Message.getWrapperField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){var t=jspb.Message.getField(o,r);(p||t)&&(o.wrappers_[r]=new e(t))}return o.wrappers_[r]},goog.exportProperty(jspb.Message,"getWrapperField",jspb.Message.getWrapperField),jspb.Message.getRepeatedWrapperField=function(o,e,r){return jspb.Message.wrapRepeatedField_(o,e,r),e=o.wrappers_[r],e==jspb.Message.EMPTY_LIST_SENTINEL_&&(e=o.wrappers_[r]=[]),e},goog.exportProperty(jspb.Message,"getRepeatedWrapperField",jspb.Message.getRepeatedWrapperField),jspb.Message.wrapRepeatedField_=function(o,e,r){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){for(var p=jspb.Message.getRepeatedField(o,r),t=[],n=0;n<p.length;n++)t[n]=new e(p[n]);o.wrappers_[r]=t}},jspb.Message.setWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var p=r&&r.toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setWrapperField",jspb.Message.setWrapperField),jspb.Message.setOneofWrapperField=function(o,e,r,p){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var t=p&&p.toArray();return o.wrappers_[e]=p,jspb.Message.setOneofField(o,e,r,t)},goog.exportProperty(jspb.Message,"setOneofWrapperField",jspb.Message.setOneofWrapperField),jspb.Message.setRepeatedWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={}),r=r||[];for(var p=[],t=0;t<r.length;t++)p[t]=r[t].toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setRepeatedWrapperField",jspb.Message.setRepeatedWrapperField),jspb.Message.addToRepeatedWrapperField=function(o,e,r,p,t){jspb.Message.wrapRepeatedField_(o,p,e);var n=o.wrappers_[e];return n||(n=o.wrappers_[e]=[]),r=r||new p,o=jspb.Message.getRepeatedField(o,e),t!=null?(n.splice(t,0,r),o.splice(t,0,r.toArray())):(n.push(r),o.push(r.toArray())),r},goog.exportProperty(jspb.Message,"addToRepeatedWrapperField",jspb.Message.addToRepeatedWrapperField),jspb.Message.toMap=function(o,e,r,p){for(var t={},n=0;n<o.length;n++)t[e.call(o[n])]=r?r.call(o[n],p,o[n]):o[n];return t},goog.exportProperty(jspb.Message,"toMap",jspb.Message.toMap),jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var o in this.wrappers_){var e=this.wrappers_[o];if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&e[r].toArray();else e&&e.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},goog.exportProperty(jspb.Message.prototype,"toArray",jspb.Message.prototype.toArray),jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(o){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var e=o.fieldIndex;if(o.isRepeated){if(o.isMessageType())return this.wrappers_[e]||(this.wrappers_[e]=goog.array.map(this.extensionObject_[e]||[],function(r){return new o.ctor(r)})),this.wrappers_[e]}else if(o.isMessageType())return!this.wrappers_[e]&&this.extensionObject_[e]&&(this.wrappers_[e]=new o.ctor(this.extensionObject_[e])),this.wrappers_[e];return this.extensionObject_[e]}},goog.exportProperty(jspb.Message.prototype,"getExtension",jspb.Message.prototype.getExtension),jspb.Message.prototype.setExtension=function(o,e){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=o.fieldIndex;return o.isRepeated?(e=e||[],o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=goog.array.map(e,function(p){return p.toArray()})):this.extensionObject_[r]=e):o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=e&&e.toArray()):this.extensionObject_[r]=e,this},goog.exportProperty(jspb.Message.prototype,"setExtension",jspb.Message.prototype.setExtension),jspb.Message.difference=function(o,e){if(!(o instanceof e.constructor))throw Error("Messages have different types.");var r=o.toArray();e=e.toArray();var p=[],t=0,n=r.length>e.length?r.length:e.length;for(o.getJsPbMessageId()&&(p[0]=o.getJsPbMessageId(),t=1);t<n;t++)jspb.Message.compareFields(r[t],e[t])||(p[t]=e[t]);return new o.constructor(p)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(o,e){return o==e||!(!o||!e)&&o instanceof e.constructor&&jspb.Message.compareFields(o.toArray(),e.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(o,e){o=o||{},e=e||{};var r={},p;for(p in o)r[p]=0;for(p in e)r[p]=0;for(p in r)if(!jspb.Message.compareFields(o[p],e[p]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(o,e){if(o==e)return!0;if(!goog.isObject(o)||!goog.isObject(e))return typeof o=="number"&&isNaN(o)||typeof e=="number"&&isNaN(e)?String(o)==String(e):!1;if(o.constructor!=e.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o.constructor===Uint8Array){if(o.length!=e.length)return!1;for(var r=0;r<o.length;r++)if(o[r]!=e[r])return!1;return!0}if(o.constructor===Array){var p=void 0,t=void 0,n=Math.max(o.length,e.length);for(r=0;r<n;r++){var i=o[r],s=e[r];if(i&&i.constructor==Object&&(jspb.asserts.assert(p===void 0),jspb.asserts.assert(r===o.length-1),p=i,i=void 0),s&&s.constructor==Object&&(jspb.asserts.assert(t===void 0),jspb.asserts.assert(r===e.length-1),t=s,s=void 0),!jspb.Message.compareFields(i,s))return!1}return p||t?(p=p||{},t=t||{},jspb.Message.compareExtensions(p,t)):!0}if(o.constructor===Object)return jspb.Message.compareExtensions(o,e);throw Error("Invalid type in JSPB array")},goog.exportProperty(jspb.Message,"compareFields",jspb.Message.compareFields),jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"cloneMessage",jspb.Message.prototype.cloneMessage),jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"clone",jspb.Message.prototype.clone),jspb.Message.clone=function(o){return jspb.Message.cloneMessage(o)},goog.exportProperty(jspb.Message,"clone",jspb.Message.clone),jspb.Message.cloneMessage=function(o){return new o.constructor(jspb.Message.clone_(o.toArray()))},jspb.Message.copyInto=function(o,e){jspb.asserts.assertInstanceof(o,jspb.Message),jspb.asserts.assertInstanceof(e,jspb.Message),jspb.asserts.assert(o.constructor==e.constructor,"Copy source and target message should have the same type."),o=jspb.Message.clone(o);for(var r=e.toArray(),p=o.toArray(),t=r.length=0;t<p.length;t++)r[t]=p[t];e.wrappers_=o.wrappers_,e.extensionObject_=o.extensionObject_},goog.exportProperty(jspb.Message,"copyInto",jspb.Message.copyInto),jspb.Message.clone_=function(o){if(Array.isArray(o)){for(var e=Array(o.length),r=0;r<o.length;r++){var p=o[r];p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p)}return e}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)return new Uint8Array(o);e={};for(r in o)p=o[r],p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p);return e},jspb.Message.registerMessageType=function(o,e){e.messageId=o},goog.exportProperty(jspb.Message,"registerMessageType",jspb.Message.registerMessageType),jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},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})(googleProtobuf$m);var common_pb$j={},descriptor_pb$j={};(function(o){var e=googleProtobuf$m,r=e,p=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof p<"u"&&p||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();r.exportSymbol("proto.google.protobuf.DescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.DescriptorProto.ExtensionRange",null,p),r.exportSymbol("proto.google.protobuf.DescriptorProto.ReservedRange",null,p),r.exportSymbol("proto.google.protobuf.EnumDescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.EnumDescriptorProto.EnumReservedRange",null,p),r.exportSymbol("proto.google.protobuf.EnumOptions",null,p),r.exportSymbol("proto.google.protobuf.EnumValueDescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.EnumValueOptions",null,p),r.exportSymbol("proto.google.protobuf.ExtensionRangeOptions",null,p),r.exportSymbol("proto.google.protobuf.FieldDescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Label",null,p),r.exportSymbol("proto.google.protobuf.FieldDescriptorProto.Type",null,p),r.exportSymbol("proto.google.protobuf.FieldOptions",null,p),r.exportSymbol("proto.google.protobuf.FieldOptions.CType",null,p),r.exportSymbol("proto.google.protobuf.FieldOptions.JSType",null,p),r.exportSymbol("proto.google.protobuf.FileDescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.FileDescriptorSet",null,p),r.exportSymbol("proto.google.protobuf.FileOptions",null,p),r.exportSymbol("proto.google.protobuf.FileOptions.OptimizeMode",null,p),r.exportSymbol("proto.google.protobuf.GeneratedCodeInfo",null,p),r.exportSymbol("proto.google.protobuf.GeneratedCodeInfo.Annotation",null,p),r.exportSymbol("proto.google.protobuf.MessageOptions",null,p),r.exportSymbol("proto.google.protobuf.MethodDescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.MethodOptions",null,p),r.exportSymbol("proto.google.protobuf.MethodOptions.IdempotencyLevel",null,p),r.exportSymbol("proto.google.protobuf.OneofDescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.OneofOptions",null,p),r.exportSymbol("proto.google.protobuf.ServiceDescriptorProto",null,p),r.exportSymbol("proto.google.protobuf.ServiceOptions",null,p),r.exportSymbol("proto.google.protobuf.SourceCodeInfo",null,p),r.exportSymbol("proto.google.protobuf.SourceCodeInfo.Location",null,p),r.exportSymbol("proto.google.protobuf.UninterpretedOption",null,p),r.exportSymbol("proto.google.protobuf.UninterpretedOption.NamePart",null,p),proto.google.protobuf.FileDescriptorSet=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorSet.repeatedFields_,null)},r.inherits(proto.google.protobuf.FileDescriptorSet,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorSet.displayName="proto.google.protobuf.FileDescriptorSet"),proto.google.protobuf.FileDescriptorProto=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.FileDescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.FileDescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FileDescriptorProto.displayName="proto.google.protobuf.FileDescriptorProto"),proto.google.protobuf.DescriptorProto=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.DescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.DescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.displayName="proto.google.protobuf.DescriptorProto"),proto.google.protobuf.DescriptorProto.ExtensionRange=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ExtensionRange.displayName="proto.google.protobuf.DescriptorProto.ExtensionRange"),proto.google.protobuf.DescriptorProto.ReservedRange=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.DescriptorProto.ReservedRange,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.DescriptorProto.ReservedRange.displayName="proto.google.protobuf.DescriptorProto.ReservedRange"),proto.google.protobuf.ExtensionRangeOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.ExtensionRangeOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.ExtensionRangeOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ExtensionRangeOptions.displayName="proto.google.protobuf.ExtensionRangeOptions"),proto.google.protobuf.ExtensionRangeOptions.extensions={},proto.google.protobuf.ExtensionRangeOptions.extensionsBinary={},proto.google.protobuf.FieldDescriptorProto=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.FieldDescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldDescriptorProto.displayName="proto.google.protobuf.FieldDescriptorProto"),proto.google.protobuf.OneofDescriptorProto=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.OneofDescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofDescriptorProto.displayName="proto.google.protobuf.OneofDescriptorProto"),proto.google.protobuf.EnumDescriptorProto=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.EnumDescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.EnumDescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.displayName="proto.google.protobuf.EnumDescriptorProto"),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName="proto.google.protobuf.EnumDescriptorProto.EnumReservedRange"),proto.google.protobuf.EnumValueDescriptorProto=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.EnumValueDescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueDescriptorProto.displayName="proto.google.protobuf.EnumValueDescriptorProto"),proto.google.protobuf.ServiceDescriptorProto=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.ServiceDescriptorProto.repeatedFields_,null)},r.inherits(proto.google.protobuf.ServiceDescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceDescriptorProto.displayName="proto.google.protobuf.ServiceDescriptorProto"),proto.google.protobuf.MethodDescriptorProto=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.MethodDescriptorProto,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodDescriptorProto.displayName="proto.google.protobuf.MethodDescriptorProto"),proto.google.protobuf.FileOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.FileOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.FileOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FileOptions.displayName="proto.google.protobuf.FileOptions"),proto.google.protobuf.FileOptions.extensions={},proto.google.protobuf.FileOptions.extensionsBinary={},proto.google.protobuf.MessageOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.MessageOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.MessageOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.MessageOptions.displayName="proto.google.protobuf.MessageOptions"),proto.google.protobuf.MessageOptions.extensions={},proto.google.protobuf.MessageOptions.extensionsBinary={},proto.google.protobuf.FieldOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.FieldOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.FieldOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.FieldOptions.displayName="proto.google.protobuf.FieldOptions"),proto.google.protobuf.FieldOptions.extensions={},proto.google.protobuf.FieldOptions.extensionsBinary={},proto.google.protobuf.OneofOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.OneofOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.OneofOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.OneofOptions.displayName="proto.google.protobuf.OneofOptions"),proto.google.protobuf.OneofOptions.extensions={},proto.google.protobuf.OneofOptions.extensionsBinary={},proto.google.protobuf.EnumOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.EnumOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.EnumOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumOptions.displayName="proto.google.protobuf.EnumOptions"),proto.google.protobuf.EnumOptions.extensions={},proto.google.protobuf.EnumOptions.extensionsBinary={},proto.google.protobuf.EnumValueOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.EnumValueOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.EnumValueOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.EnumValueOptions.displayName="proto.google.protobuf.EnumValueOptions"),proto.google.protobuf.EnumValueOptions.extensions={},proto.google.protobuf.EnumValueOptions.extensionsBinary={},proto.google.protobuf.ServiceOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.ServiceOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.ServiceOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ServiceOptions.displayName="proto.google.protobuf.ServiceOptions"),proto.google.protobuf.ServiceOptions.extensions={},proto.google.protobuf.ServiceOptions.extensionsBinary={},proto.google.protobuf.MethodOptions=function(t){e.Message.initialize(this,t,0,500,proto.google.protobuf.MethodOptions.repeatedFields_,null)},r.inherits(proto.google.protobuf.MethodOptions,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.MethodOptions.displayName="proto.google.protobuf.MethodOptions"),proto.google.protobuf.MethodOptions.extensions={},proto.google.protobuf.MethodOptions.extensionsBinary={},proto.google.protobuf.UninterpretedOption=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.UninterpretedOption.repeatedFields_,null)},r.inherits(proto.google.protobuf.UninterpretedOption,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.displayName="proto.google.protobuf.UninterpretedOption"),proto.google.protobuf.UninterpretedOption.NamePart=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.UninterpretedOption.NamePart,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.UninterpretedOption.NamePart.displayName="proto.google.protobuf.UninterpretedOption.NamePart"),proto.google.protobuf.SourceCodeInfo=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.repeatedFields_,null)},r.inherits(proto.google.protobuf.SourceCodeInfo,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.displayName="proto.google.protobuf.SourceCodeInfo"),proto.google.protobuf.SourceCodeInfo.Location=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_,null)},r.inherits(proto.google.protobuf.SourceCodeInfo.Location,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.SourceCodeInfo.Location.displayName="proto.google.protobuf.SourceCodeInfo.Location"),proto.google.protobuf.GeneratedCodeInfo=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.repeatedFields_,null)},r.inherits(proto.google.protobuf.GeneratedCodeInfo,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.displayName="proto.google.protobuf.GeneratedCodeInfo"),proto.google.protobuf.GeneratedCodeInfo.Annotation=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_,null)},r.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName="proto.google.protobuf.GeneratedCodeInfo.Annotation"),proto.google.protobuf.FileDescriptorSet.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorSet.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorSet.toObject(t,this)},proto.google.protobuf.FileDescriptorSet.toObject=function(t,n){var i={fileList:e.Message.toObjectList(n.getFileList(),proto.google.protobuf.FileDescriptorProto.toObject,t)};return t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.FileDescriptorSet.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.FileDescriptorSet;return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(i,n)},proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=new proto.google.protobuf.FileDescriptorProto;n.readMessage(s,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader),t.addFile(s);break;default:n.skipField();break}}return t},proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getFileList(),i.length>0&&n.writeRepeatedMessage(1,i,proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter)},proto.google.protobuf.FileDescriptorSet.prototype.getFileList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.FileDescriptorProto,1)},proto.google.protobuf.FileDescriptorSet.prototype.setFileList=function(t){return e.Message.setRepeatedWrapperField(this,1,t)},proto.google.protobuf.FileDescriptorSet.prototype.addFile=function(t,n){return e.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.FileDescriptorProto,n)},proto.google.protobuf.FileDescriptorSet.prototype.clearFileList=function(){return this.setFileList([])},proto.google.protobuf.FileDescriptorProto.repeatedFields_=[3,10,11,4,5,6,7],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FileDescriptorProto.toObject(t,this)},proto.google.protobuf.FileDescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,pb_package:(i=e.Message.getField(n,2))==null?void 0:i,dependencyList:(i=e.Message.getRepeatedField(n,3))==null?void 0:i,publicDependencyList:(i=e.Message.getRepeatedField(n,10))==null?void 0:i,weakDependencyList:(i=e.Message.getRepeatedField(n,11))==null?void 0:i,messageTypeList:e.Message.toObjectList(n.getMessageTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:e.Message.toObjectList(n.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),serviceList:e.Message.toObjectList(n.getServiceList(),proto.google.protobuf.ServiceDescriptorProto.toObject,t),extensionList:e.Message.toObjectList(n.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),options:(i=n.getOptions())&&proto.google.protobuf.FileOptions.toObject(t,i),sourceCodeInfo:(i=n.getSourceCodeInfo())&&proto.google.protobuf.SourceCodeInfo.toObject(t,i),syntax:(i=e.Message.getField(n,12))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.FileDescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.FileDescriptorProto;return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var l=n.readString();t.setName(l);break;case 2:var l=n.readString();t.setPackage(l);break;case 3:var l=n.readString();t.addDependency(l);break;case 10:for(var g=n.isDelimited()?n.readPackedInt32():[n.readInt32()],s=0;s<g.length;s++)t.addPublicDependency(g[s]);break;case 11:for(var g=n.isDelimited()?n.readPackedInt32():[n.readInt32()],s=0;s<g.length;s++)t.addWeakDependency(g[s]);break;case 4:var l=new proto.google.protobuf.DescriptorProto;n.readMessage(l,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addMessageType(l);break;case 5:var l=new proto.google.protobuf.EnumDescriptorProto;n.readMessage(l,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(l);break;case 6:var l=new proto.google.protobuf.ServiceDescriptorProto;n.readMessage(l,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader),t.addService(l);break;case 7:var l=new proto.google.protobuf.FieldDescriptorProto;n.readMessage(l,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(l);break;case 8:var l=new proto.google.protobuf.FileOptions;n.readMessage(l,proto.google.protobuf.FileOptions.deserializeBinaryFromReader),t.setOptions(l);break;case 9:var l=new proto.google.protobuf.SourceCodeInfo;n.readMessage(l,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader),t.setSourceCodeInfo(l);break;case 12:var l=n.readString();t.setSyntax(l);break;default:n.skipField();break}}return t},proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=e.Message.getField(t,2),i!=null&&n.writeString(2,i),i=t.getDependencyList(),i.length>0&&n.writeRepeatedString(3,i),i=t.getPublicDependencyList(),i.length>0&&n.writeRepeatedInt32(10,i),i=t.getWeakDependencyList(),i.length>0&&n.writeRepeatedInt32(11,i),i=t.getMessageTypeList(),i.length>0&&n.writeRepeatedMessage(4,i,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),i=t.getEnumTypeList(),i.length>0&&n.writeRepeatedMessage(5,i,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),i=t.getServiceList(),i.length>0&&n.writeRepeatedMessage(6,i,proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter),i=t.getExtensionList(),i.length>0&&n.writeRepeatedMessage(7,i,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),i=t.getOptions(),i!=null&&n.writeMessage(8,i,proto.google.protobuf.FileOptions.serializeBinaryToWriter),i=t.getSourceCodeInfo(),i!=null&&n.writeMessage(9,i,proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter),i=e.Message.getField(t,12),i!=null&&n.writeString(12,i)},proto.google.protobuf.FileDescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FileDescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.FileDescriptorProto.prototype.getPackage=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.FileDescriptorProto.prototype.setPackage=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearPackage=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasPackage=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList=function(){return e.Message.getRepeatedField(this,3)},proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList=function(t){return e.Message.setField(this,3,t||[])},proto.google.protobuf.FileDescriptorProto.prototype.addDependency=function(t,n){return e.Message.addToRepeatedField(this,3,t,n)},proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList=function(){return this.setDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList=function(){return e.Message.getRepeatedField(this,10)},proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList=function(t){return e.Message.setField(this,10,t||[])},proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency=function(t,n){return e.Message.addToRepeatedField(this,10,t,n)},proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList=function(){return this.setPublicDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList=function(){return e.Message.getRepeatedField(this,11)},proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList=function(t){return e.Message.setField(this,11,t||[])},proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency=function(t,n){return e.Message.addToRepeatedField(this,11,t,n)},proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList=function(){return this.setWeakDependencyList([])},proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,4)},proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList=function(t){return e.Message.setRepeatedWrapperField(this,4,t)},proto.google.protobuf.FileDescriptorProto.prototype.addMessageType=function(t,n){return e.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.DescriptorProto,n)},proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList=function(){return this.setMessageTypeList([])},proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,5)},proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList=function(t){return e.Message.setRepeatedWrapperField(this,5,t)},proto.google.protobuf.FileDescriptorProto.prototype.addEnumType=function(t,n){return e.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.EnumDescriptorProto,n)},proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])},proto.google.protobuf.FileDescriptorProto.prototype.getServiceList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.ServiceDescriptorProto,6)},proto.google.protobuf.FileDescriptorProto.prototype.setServiceList=function(t){return e.Message.setRepeatedWrapperField(this,6,t)},proto.google.protobuf.FileDescriptorProto.prototype.addService=function(t,n){return e.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.ServiceDescriptorProto,n)},proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList=function(){return this.setServiceList([])},proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,7)},proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList=function(t){return e.Message.setRepeatedWrapperField(this,7,t)},proto.google.protobuf.FileDescriptorProto.prototype.addExtension$=function(t,n){return e.Message.addToRepeatedWrapperField(this,7,t,proto.google.protobuf.FieldDescriptorProto,n)},proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])},proto.google.protobuf.FileDescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.FileOptions,8)},proto.google.protobuf.FileDescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,8,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,8)!=null},proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo=function(){return e.Message.getWrapperField(this,proto.google.protobuf.SourceCodeInfo,9)},proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo=function(t){return e.Message.setWrapperField(this,9,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo=function(){return this.setSourceCodeInfo(void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo=function(){return e.Message.getField(this,9)!=null},proto.google.protobuf.FileDescriptorProto.prototype.getSyntax=function(){return e.Message.getFieldWithDefault(this,12,"")},proto.google.protobuf.FileDescriptorProto.prototype.setSyntax=function(t){return e.Message.setField(this,12,t)},proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax=function(){return e.Message.setField(this,12,void 0)},proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax=function(){return e.Message.getField(this,12)!=null},proto.google.protobuf.DescriptorProto.repeatedFields_=[2,6,3,4,5,8,9,10],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.toObject(t,this)},proto.google.protobuf.DescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,fieldList:e.Message.toObjectList(n.getFieldList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),extensionList:e.Message.toObjectList(n.getExtensionList(),proto.google.protobuf.FieldDescriptorProto.toObject,t),nestedTypeList:e.Message.toObjectList(n.getNestedTypeList(),proto.google.protobuf.DescriptorProto.toObject,t),enumTypeList:e.Message.toObjectList(n.getEnumTypeList(),proto.google.protobuf.EnumDescriptorProto.toObject,t),extensionRangeList:e.Message.toObjectList(n.getExtensionRangeList(),proto.google.protobuf.DescriptorProto.ExtensionRange.toObject,t),oneofDeclList:e.Message.toObjectList(n.getOneofDeclList(),proto.google.protobuf.OneofDescriptorProto.toObject,t),options:(i=n.getOptions())&&proto.google.protobuf.MessageOptions.toObject(t,i),reservedRangeList:e.Message.toObjectList(n.getReservedRangeList(),proto.google.protobuf.DescriptorProto.ReservedRange.toObject,t),reservedNameList:(i=e.Message.getRepeatedField(n,10))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.DescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.DescriptorProto;return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;case 2:var s=new proto.google.protobuf.FieldDescriptorProto;n.readMessage(s,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addField(s);break;case 6:var s=new proto.google.protobuf.FieldDescriptorProto;n.readMessage(s,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader),t.addExtension$(s);break;case 3:var s=new proto.google.protobuf.DescriptorProto;n.readMessage(s,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader),t.addNestedType(s);break;case 4:var s=new proto.google.protobuf.EnumDescriptorProto;n.readMessage(s,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader),t.addEnumType(s);break;case 5:var s=new proto.google.protobuf.DescriptorProto.ExtensionRange;n.readMessage(s,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader),t.addExtensionRange(s);break;case 8:var s=new proto.google.protobuf.OneofDescriptorProto;n.readMessage(s,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader),t.addOneofDecl(s);break;case 7:var s=new proto.google.protobuf.MessageOptions;n.readMessage(s,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader),t.setOptions(s);break;case 9:var s=new proto.google.protobuf.DescriptorProto.ReservedRange;n.readMessage(s,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader),t.addReservedRange(s);break;case 10:var s=n.readString();t.addReservedName(s);break;default:n.skipField();break}}return t},proto.google.protobuf.DescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.DescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=t.getFieldList(),i.length>0&&n.writeRepeatedMessage(2,i,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),i=t.getExtensionList(),i.length>0&&n.writeRepeatedMessage(6,i,proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter),i=t.getNestedTypeList(),i.length>0&&n.writeRepeatedMessage(3,i,proto.google.protobuf.DescriptorProto.serializeBinaryToWriter),i=t.getEnumTypeList(),i.length>0&&n.writeRepeatedMessage(4,i,proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter),i=t.getExtensionRangeList(),i.length>0&&n.writeRepeatedMessage(5,i,proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter),i=t.getOneofDeclList(),i.length>0&&n.writeRepeatedMessage(8,i,proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter),i=t.getOptions(),i!=null&&n.writeMessage(7,i,proto.google.protobuf.MessageOptions.serializeBinaryToWriter),i=t.getReservedRangeList(),i.length>0&&n.writeRepeatedMessage(9,i,proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter),i=t.getReservedNameList(),i.length>0&&n.writeRepeatedString(10,i)},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ExtensionRange.toObject=function(t,n){var i,s={start:(i=e.Message.getField(n,1))==null?void 0:i,end:(i=e.Message.getField(n,2))==null?void 0:i,options:(i=n.getOptions())&&proto.google.protobuf.ExtensionRangeOptions.toObject(t,i)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.DescriptorProto.ExtensionRange;return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(i,n)},proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readInt32();t.setStart(s);break;case 2:var s=n.readInt32();t.setEnd(s);break;case 3:var s=new proto.google.protobuf.ExtensionRangeOptions;n.readMessage(s,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader),t.setOptions(s);break;default:n.skipField();break}}return t},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeInt32(1,i),i=e.Message.getField(t,2),i!=null&&n.writeInt32(2,i),i=t.getOptions(),i!=null&&n.writeMessage(3,i,proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd=function(){return e.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.ExtensionRangeOptions,3)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions=function(t){return e.Message.setWrapperField(this,3,t)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions=function(){return e.Message.getField(this,3)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject=function(t){return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(t,this)},proto.google.protobuf.DescriptorProto.ReservedRange.toObject=function(t,n){var i,s={start:(i=e.Message.getField(n,1))==null?void 0:i,end:(i=e.Message.getField(n,2))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.DescriptorProto.ReservedRange;return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(i,n)},proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readInt32();t.setStart(s);break;case 2:var s=n.readInt32();t.setEnd(s);break;default:n.skipField();break}}return t},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeInt32(1,i),i=e.Message.getField(t,2),i!=null&&n.writeInt32(2,i)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd=function(){return e.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.DescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.DescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.DescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.DescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.DescriptorProto.prototype.getFieldList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,2)},proto.google.protobuf.DescriptorProto.prototype.setFieldList=function(t){return e.Message.setRepeatedWrapperField(this,2,t)},proto.google.protobuf.DescriptorProto.prototype.addField=function(t,n){return e.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.FieldDescriptorProto,n)},proto.google.protobuf.DescriptorProto.prototype.clearFieldList=function(){return this.setFieldList([])},proto.google.protobuf.DescriptorProto.prototype.getExtensionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.FieldDescriptorProto,6)},proto.google.protobuf.DescriptorProto.prototype.setExtensionList=function(t){return e.Message.setRepeatedWrapperField(this,6,t)},proto.google.protobuf.DescriptorProto.prototype.addExtension$=function(t,n){return e.Message.addToRepeatedWrapperField(this,6,t,proto.google.protobuf.FieldDescriptorProto,n)},proto.google.protobuf.DescriptorProto.prototype.clearExtensionList=function(){return this.setExtensionList([])},proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto,3)},proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList=function(t){return e.Message.setRepeatedWrapperField(this,3,t)},proto.google.protobuf.DescriptorProto.prototype.addNestedType=function(t,n){return e.Message.addToRepeatedWrapperField(this,3,t,proto.google.protobuf.DescriptorProto,n)},proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList=function(){return this.setNestedTypeList([])},proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto,4)},proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList=function(t){return e.Message.setRepeatedWrapperField(this,4,t)},proto.google.protobuf.DescriptorProto.prototype.addEnumType=function(t,n){return e.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto,n)},proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList=function(){return this.setEnumTypeList([])},proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ExtensionRange,5)},proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList=function(t){return e.Message.setRepeatedWrapperField(this,5,t)},proto.google.protobuf.DescriptorProto.prototype.addExtensionRange=function(t,n){return e.Message.addToRepeatedWrapperField(this,5,t,proto.google.protobuf.DescriptorProto.ExtensionRange,n)},proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList=function(){return this.setExtensionRangeList([])},proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.OneofDescriptorProto,8)},proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList=function(t){return e.Message.setRepeatedWrapperField(this,8,t)},proto.google.protobuf.DescriptorProto.prototype.addOneofDecl=function(t,n){return e.Message.addToRepeatedWrapperField(this,8,t,proto.google.protobuf.OneofDescriptorProto,n)},proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList=function(){return this.setOneofDeclList([])},proto.google.protobuf.DescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.MessageOptions,7)},proto.google.protobuf.DescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,7,t)},proto.google.protobuf.DescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.DescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,7)!=null},proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.DescriptorProto.ReservedRange,9)},proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList=function(t){return e.Message.setRepeatedWrapperField(this,9,t)},proto.google.protobuf.DescriptorProto.prototype.addReservedRange=function(t,n){return e.Message.addToRepeatedWrapperField(this,9,t,proto.google.protobuf.DescriptorProto.ReservedRange,n)},proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])},proto.google.protobuf.DescriptorProto.prototype.getReservedNameList=function(){return e.Message.getRepeatedField(this,10)},proto.google.protobuf.DescriptorProto.prototype.setReservedNameList=function(t){return e.Message.setField(this,10,t||[])},proto.google.protobuf.DescriptorProto.prototype.addReservedName=function(t,n){return e.Message.addToRepeatedField(this,10,t,n)},proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])},proto.google.protobuf.ExtensionRangeOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ExtensionRangeOptions.prototype.toObject=function(t){return proto.google.protobuf.ExtensionRangeOptions.toObject(t,this)},proto.google.protobuf.ExtensionRangeOptions.toObject=function(t,n){var i={uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,i,proto.google.protobuf.ExtensionRangeOptions.extensions,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.ExtensionRangeOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.ExtensionRangeOptions;return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension,proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension);break}}return t},proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.ExtensionRangeOptions.extensionsBinary,proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension)},proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.FieldDescriptorProto.toObject(t,this)},proto.google.protobuf.FieldDescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,number:(i=e.Message.getField(n,3))==null?void 0:i,label:(i=e.Message.getField(n,4))==null?void 0:i,type:(i=e.Message.getField(n,5))==null?void 0:i,typeName:(i=e.Message.getField(n,6))==null?void 0:i,extendee:(i=e.Message.getField(n,2))==null?void 0:i,defaultValue:(i=e.Message.getField(n,7))==null?void 0:i,oneofIndex:(i=e.Message.getField(n,9))==null?void 0:i,jsonName:(i=e.Message.getField(n,10))==null?void 0:i,options:(i=n.getOptions())&&proto.google.protobuf.FieldOptions.toObject(t,i),proto3Optional:(i=e.Message.getBooleanField(n,17))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.FieldDescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.FieldDescriptorProto;return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;case 3:var s=n.readInt32();t.setNumber(s);break;case 4:var s=n.readEnum();t.setLabel(s);break;case 5:var s=n.readEnum();t.setType(s);break;case 6:var s=n.readString();t.setTypeName(s);break;case 2:var s=n.readString();t.setExtendee(s);break;case 7:var s=n.readString();t.setDefaultValue(s);break;case 9:var s=n.readInt32();t.setOneofIndex(s);break;case 10:var s=n.readString();t.setJsonName(s);break;case 8:var s=new proto.google.protobuf.FieldOptions;n.readMessage(s,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader),t.setOptions(s);break;case 17:var s=n.readBool();t.setProto3Optional(s);break;default:n.skipField();break}}return t},proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=e.Message.getField(t,3),i!=null&&n.writeInt32(3,i),i=e.Message.getField(t,4),i!=null&&n.writeEnum(4,i),i=e.Message.getField(t,5),i!=null&&n.writeEnum(5,i),i=e.Message.getField(t,6),i!=null&&n.writeString(6,i),i=e.Message.getField(t,2),i!=null&&n.writeString(2,i),i=e.Message.getField(t,7),i!=null&&n.writeString(7,i),i=e.Message.getField(t,9),i!=null&&n.writeInt32(9,i),i=e.Message.getField(t,10),i!=null&&n.writeString(10,i),i=t.getOptions(),i!=null&&n.writeMessage(8,i,proto.google.protobuf.FieldOptions.serializeBinaryToWriter),i=e.Message.getField(t,17),i!=null&&n.writeBool(17,i)},proto.google.protobuf.FieldDescriptorProto.Type={TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18},proto.google.protobuf.FieldDescriptorProto.Label={LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3},proto.google.protobuf.FieldDescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getNumber=function(){return e.Message.getFieldWithDefault(this,3,0)},proto.google.protobuf.FieldDescriptorProto.prototype.setNumber=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getLabel=function(){return e.Message.getFieldWithDefault(this,4,1)},proto.google.protobuf.FieldDescriptorProto.prototype.setLabel=function(t){return e.Message.setField(this,4,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel=function(){return e.Message.setField(this,4,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getType=function(){return e.Message.getFieldWithDefault(this,5,1)},proto.google.protobuf.FieldDescriptorProto.prototype.setType=function(t){return e.Message.setField(this,5,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearType=function(){return e.Message.setField(this,5,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasType=function(){return e.Message.getField(this,5)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName=function(){return e.Message.getFieldWithDefault(this,6,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName=function(t){return e.Message.setField(this,6,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName=function(){return e.Message.setField(this,6,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName=function(){return e.Message.getField(this,6)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue=function(){return e.Message.getFieldWithDefault(this,7,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue=function(t){return e.Message.setField(this,7,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue=function(){return e.Message.setField(this,7,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue=function(){return e.Message.getField(this,7)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex=function(){return e.Message.getFieldWithDefault(this,9,0)},proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex=function(t){return e.Message.setField(this,9,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex=function(){return e.Message.setField(this,9,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex=function(){return e.Message.getField(this,9)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName=function(){return e.Message.getFieldWithDefault(this,10,"")},proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName=function(t){return e.Message.setField(this,10,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName=function(){return e.Message.setField(this,10,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName=function(){return e.Message.getField(this,10)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.FieldOptions,8)},proto.google.protobuf.FieldDescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,8,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,8)!=null},proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional=function(){return e.Message.getBooleanFieldWithDefault(this,17,!1)},proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional=function(t){return e.Message.setField(this,17,t)},proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional=function(){return e.Message.setField(this,17,void 0)},proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional=function(){return e.Message.getField(this,17)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.OneofDescriptorProto.toObject(t,this)},proto.google.protobuf.OneofDescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,options:(i=n.getOptions())&&proto.google.protobuf.OneofOptions.toObject(t,i)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.OneofDescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.OneofDescriptorProto;return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;case 2:var s=new proto.google.protobuf.OneofOptions;n.readMessage(s,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader),t.setOptions(s);break;default:n.skipField();break}}return t},proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=t.getOptions(),i!=null&&n.writeMessage(2,i,proto.google.protobuf.OneofOptions.serializeBinaryToWriter)},proto.google.protobuf.OneofDescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.OneofDescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.OneofDescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.OneofDescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.OneofDescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.OneofOptions,2)},proto.google.protobuf.OneofDescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,2,t)},proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.EnumDescriptorProto.repeatedFields_=[2,4,5],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,valueList:e.Message.toObjectList(n.getValueList(),proto.google.protobuf.EnumValueDescriptorProto.toObject,t),options:(i=n.getOptions())&&proto.google.protobuf.EnumOptions.toObject(t,i),reservedRangeList:e.Message.toObjectList(n.getReservedRangeList(),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject,t),reservedNameList:(i=e.Message.getRepeatedField(n,5))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.EnumDescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.EnumDescriptorProto;return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;case 2:var s=new proto.google.protobuf.EnumValueDescriptorProto;n.readMessage(s,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader),t.addValue(s);break;case 3:var s=new proto.google.protobuf.EnumOptions;n.readMessage(s,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader),t.setOptions(s);break;case 4:var s=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;n.readMessage(s,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader),t.addReservedRange(s);break;case 5:var s=n.readString();t.addReservedName(s);break;default:n.skipField();break}}return t},proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=t.getValueList(),i.length>0&&n.writeRepeatedMessage(2,i,proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter),i=t.getOptions(),i!=null&&n.writeMessage(3,i,proto.google.protobuf.EnumOptions.serializeBinaryToWriter),i=t.getReservedRangeList(),i.length>0&&n.writeRepeatedMessage(4,i,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter),i=t.getReservedNameList(),i.length>0&&n.writeRepeatedString(5,i)},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject=function(t){return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(t,this)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject=function(t,n){var i,s={start:(i=e.Message.getField(n,1))==null?void 0:i,end:(i=e.Message.getField(n,2))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(i,n)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readInt32();t.setStart(s);break;case 2:var s=n.readInt32();t.setEnd(s);break;default:n.skipField();break}}return t},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeInt32(1,i),i=e.Message.getField(t,2),i!=null&&n.writeInt32(2,i)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd=function(){return e.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.EnumDescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.EnumDescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.EnumDescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.EnumDescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.EnumDescriptorProto.prototype.getValueList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumValueDescriptorProto,2)},proto.google.protobuf.EnumDescriptorProto.prototype.setValueList=function(t){return e.Message.setRepeatedWrapperField(this,2,t)},proto.google.protobuf.EnumDescriptorProto.prototype.addValue=function(t,n){return e.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.EnumValueDescriptorProto,n)},proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList=function(){return this.setValueList([])},proto.google.protobuf.EnumDescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.EnumOptions,3)},proto.google.protobuf.EnumDescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,3,t)},proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,4)},proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList=function(t){return e.Message.setRepeatedWrapperField(this,4,t)},proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange=function(t,n){return e.Message.addToRepeatedWrapperField(this,4,t,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange,n)},proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList=function(){return this.setReservedRangeList([])},proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList=function(){return e.Message.getRepeatedField(this,5)},proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList=function(t){return e.Message.setField(this,5,t||[])},proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName=function(t,n){return e.Message.addToRepeatedField(this,5,t,n)},proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList=function(){return this.setReservedNameList([])},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.EnumValueDescriptorProto.toObject(t,this)},proto.google.protobuf.EnumValueDescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,number:(i=e.Message.getField(n,2))==null?void 0:i,options:(i=n.getOptions())&&proto.google.protobuf.EnumValueOptions.toObject(t,i)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.EnumValueDescriptorProto;return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;case 2:var s=n.readInt32();t.setNumber(s);break;case 3:var s=new proto.google.protobuf.EnumValueOptions;n.readMessage(s,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader),t.setOptions(s);break;default:n.skipField();break}}return t},proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=e.Message.getField(t,2),i!=null&&n.writeInt32(2,i),i=t.getOptions(),i!=null&&n.writeMessage(3,i,proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter)},proto.google.protobuf.EnumValueDescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.EnumValueDescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber=function(){return e.Message.getFieldWithDefault(this,2,0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.EnumValueOptions,3)},proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,3,t)},proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.ServiceDescriptorProto.repeatedFields_=[2],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.ServiceDescriptorProto.toObject(t,this)},proto.google.protobuf.ServiceDescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,methodList:e.Message.toObjectList(n.getMethodList(),proto.google.protobuf.MethodDescriptorProto.toObject,t),options:(i=n.getOptions())&&proto.google.protobuf.ServiceOptions.toObject(t,i)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.ServiceDescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.ServiceDescriptorProto;return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;case 2:var s=new proto.google.protobuf.MethodDescriptorProto;n.readMessage(s,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader),t.addMethod(s);break;case 3:var s=new proto.google.protobuf.ServiceOptions;n.readMessage(s,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader),t.setOptions(s);break;default:n.skipField();break}}return t},proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=t.getMethodList(),i.length>0&&n.writeRepeatedMessage(2,i,proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter),i=t.getOptions(),i!=null&&n.writeMessage(3,i,proto.google.protobuf.ServiceOptions.serializeBinaryToWriter)},proto.google.protobuf.ServiceDescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.ServiceDescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.ServiceDescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.MethodDescriptorProto,2)},proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList=function(t){return e.Message.setRepeatedWrapperField(this,2,t)},proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod=function(t,n){return e.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.MethodDescriptorProto,n)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList=function(){return this.setMethodList([])},proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.ServiceOptions,3)},proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,3,t)},proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,3)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodDescriptorProto.prototype.toObject=function(t){return proto.google.protobuf.MethodDescriptorProto.toObject(t,this)},proto.google.protobuf.MethodDescriptorProto.toObject=function(t,n){var i,s={name:(i=e.Message.getField(n,1))==null?void 0:i,inputType:(i=e.Message.getField(n,2))==null?void 0:i,outputType:(i=e.Message.getField(n,3))==null?void 0:i,options:(i=n.getOptions())&&proto.google.protobuf.MethodOptions.toObject(t,i),clientStreaming:e.Message.getBooleanFieldWithDefault(n,5,!1),serverStreaming:e.Message.getBooleanFieldWithDefault(n,6,!1)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.MethodDescriptorProto.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.MethodDescriptorProto;return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(i,n)},proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;case 2:var s=n.readString();t.setInputType(s);break;case 3:var s=n.readString();t.setOutputType(s);break;case 4:var s=new proto.google.protobuf.MethodOptions;n.readMessage(s,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader),t.setOptions(s);break;case 5:var s=n.readBool();t.setClientStreaming(s);break;case 6:var s=n.readBool();t.setServerStreaming(s);break;default:n.skipField();break}}return t},proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=e.Message.getField(t,2),i!=null&&n.writeString(2,i),i=e.Message.getField(t,3),i!=null&&n.writeString(3,i),i=t.getOptions(),i!=null&&n.writeMessage(4,i,proto.google.protobuf.MethodOptions.serializeBinaryToWriter),i=e.Message.getField(t,5),i!=null&&n.writeBool(5,i),i=e.Message.getField(t,6),i!=null&&n.writeBool(6,i)},proto.google.protobuf.MethodDescriptorProto.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setName=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.MethodDescriptorProto.prototype.clearName=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasName=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.MethodDescriptorProto.prototype.getInputType=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setInputType=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.MethodDescriptorProto.prototype.getOptions=function(){return e.Message.getWrapperField(this,proto.google.protobuf.MethodOptions,4)},proto.google.protobuf.MethodDescriptorProto.prototype.setOptions=function(t){return e.Message.setWrapperField(this,4,t)},proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions=function(){return this.setOptions(void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming=function(){return e.Message.getBooleanFieldWithDefault(this,5,!1)},proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming=function(t){return e.Message.setField(this,5,t)},proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming=function(){return e.Message.setField(this,5,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming=function(){return e.Message.getField(this,5)!=null},proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming=function(){return e.Message.getBooleanFieldWithDefault(this,6,!1)},proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming=function(t){return e.Message.setField(this,6,t)},proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming=function(){return e.Message.setField(this,6,void 0)},proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming=function(){return e.Message.getField(this,6)!=null},proto.google.protobuf.FileOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FileOptions.prototype.toObject=function(t){return proto.google.protobuf.FileOptions.toObject(t,this)},proto.google.protobuf.FileOptions.toObject=function(t,n){var i,s={javaPackage:(i=e.Message.getField(n,1))==null?void 0:i,javaOuterClassname:(i=e.Message.getField(n,8))==null?void 0:i,javaMultipleFiles:e.Message.getBooleanFieldWithDefault(n,10,!1),javaGenerateEqualsAndHash:(i=e.Message.getBooleanField(n,20))==null?void 0:i,javaStringCheckUtf8:e.Message.getBooleanFieldWithDefault(n,27,!1),optimizeFor:e.Message.getFieldWithDefault(n,9,1),goPackage:(i=e.Message.getField(n,11))==null?void 0:i,ccGenericServices:e.Message.getBooleanFieldWithDefault(n,16,!1),javaGenericServices:e.Message.getBooleanFieldWithDefault(n,17,!1),pyGenericServices:e.Message.getBooleanFieldWithDefault(n,18,!1),phpGenericServices:e.Message.getBooleanFieldWithDefault(n,42,!1),deprecated:e.Message.getBooleanFieldWithDefault(n,23,!1),ccEnableArenas:e.Message.getBooleanFieldWithDefault(n,31,!0),objcClassPrefix:(i=e.Message.getField(n,36))==null?void 0:i,csharpNamespace:(i=e.Message.getField(n,37))==null?void 0:i,swiftPrefix:(i=e.Message.getField(n,39))==null?void 0:i,phpClassPrefix:(i=e.Message.getField(n,40))==null?void 0:i,phpNamespace:(i=e.Message.getField(n,41))==null?void 0:i,phpMetadataNamespace:(i=e.Message.getField(n,44))==null?void 0:i,rubyPackage:(i=e.Message.getField(n,45))==null?void 0:i,uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,s,proto.google.protobuf.FileOptions.extensions,proto.google.protobuf.FileOptions.prototype.getExtension,t),t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.FileOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.FileOptions;return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.FileOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setJavaPackage(s);break;case 8:var s=n.readString();t.setJavaOuterClassname(s);break;case 10:var s=n.readBool();t.setJavaMultipleFiles(s);break;case 20:var s=n.readBool();t.setJavaGenerateEqualsAndHash(s);break;case 27:var s=n.readBool();t.setJavaStringCheckUtf8(s);break;case 9:var s=n.readEnum();t.setOptimizeFor(s);break;case 11:var s=n.readString();t.setGoPackage(s);break;case 16:var s=n.readBool();t.setCcGenericServices(s);break;case 17:var s=n.readBool();t.setJavaGenericServices(s);break;case 18:var s=n.readBool();t.setPyGenericServices(s);break;case 42:var s=n.readBool();t.setPhpGenericServices(s);break;case 23:var s=n.readBool();t.setDeprecated(s);break;case 31:var s=n.readBool();t.setCcEnableArenas(s);break;case 36:var s=n.readString();t.setObjcClassPrefix(s);break;case 37:var s=n.readString();t.setCsharpNamespace(s);break;case 39:var s=n.readString();t.setSwiftPrefix(s);break;case 40:var s=n.readString();t.setPhpClassPrefix(s);break;case 41:var s=n.readString();t.setPhpNamespace(s);break;case 44:var s=n.readString();t.setPhpMetadataNamespace(s);break;case 45:var s=n.readString();t.setRubyPackage(s);break;case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension,proto.google.protobuf.FileOptions.prototype.setExtension);break}}return t},proto.google.protobuf.FileOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.FileOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.FileOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=e.Message.getField(t,8),i!=null&&n.writeString(8,i),i=e.Message.getField(t,10),i!=null&&n.writeBool(10,i),i=e.Message.getField(t,20),i!=null&&n.writeBool(20,i),i=e.Message.getField(t,27),i!=null&&n.writeBool(27,i),i=e.Message.getField(t,9),i!=null&&n.writeEnum(9,i),i=e.Message.getField(t,11),i!=null&&n.writeString(11,i),i=e.Message.getField(t,16),i!=null&&n.writeBool(16,i),i=e.Message.getField(t,17),i!=null&&n.writeBool(17,i),i=e.Message.getField(t,18),i!=null&&n.writeBool(18,i),i=e.Message.getField(t,42),i!=null&&n.writeBool(42,i),i=e.Message.getField(t,23),i!=null&&n.writeBool(23,i),i=e.Message.getField(t,31),i!=null&&n.writeBool(31,i),i=e.Message.getField(t,36),i!=null&&n.writeString(36,i),i=e.Message.getField(t,37),i!=null&&n.writeString(37,i),i=e.Message.getField(t,39),i!=null&&n.writeString(39,i),i=e.Message.getField(t,40),i!=null&&n.writeString(40,i),i=e.Message.getField(t,41),i!=null&&n.writeString(41,i),i=e.Message.getField(t,44),i!=null&&n.writeString(44,i),i=e.Message.getField(t,45),i!=null&&n.writeString(45,i),i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.FileOptions.extensionsBinary,proto.google.protobuf.FileOptions.prototype.getExtension)},proto.google.protobuf.FileOptions.OptimizeMode={SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3},proto.google.protobuf.FileOptions.prototype.getJavaPackage=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.FileOptions.prototype.setJavaPackage=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.FileOptions.prototype.clearJavaPackage=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaPackage=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname=function(){return e.Message.getFieldWithDefault(this,8,"")},proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname=function(t){return e.Message.setField(this,8,t)},proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname=function(){return e.Message.setField(this,8,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname=function(){return e.Message.getField(this,8)!=null},proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles=function(){return e.Message.getBooleanFieldWithDefault(this,10,!1)},proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles=function(t){return e.Message.setField(this,10,t)},proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles=function(){return e.Message.setField(this,10,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles=function(){return e.Message.getField(this,10)!=null},proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash=function(){return e.Message.getBooleanFieldWithDefault(this,20,!1)},proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash=function(t){return e.Message.setField(this,20,t)},proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash=function(){return e.Message.setField(this,20,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash=function(){return e.Message.getField(this,20)!=null},proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8=function(){return e.Message.getBooleanFieldWithDefault(this,27,!1)},proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8=function(t){return e.Message.setField(this,27,t)},proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8=function(){return e.Message.setField(this,27,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8=function(){return e.Message.getField(this,27)!=null},proto.google.protobuf.FileOptions.prototype.getOptimizeFor=function(){return e.Message.getFieldWithDefault(this,9,1)},proto.google.protobuf.FileOptions.prototype.setOptimizeFor=function(t){return e.Message.setField(this,9,t)},proto.google.protobuf.FileOptions.prototype.clearOptimizeFor=function(){return e.Message.setField(this,9,void 0)},proto.google.protobuf.FileOptions.prototype.hasOptimizeFor=function(){return e.Message.getField(this,9)!=null},proto.google.protobuf.FileOptions.prototype.getGoPackage=function(){return e.Message.getFieldWithDefault(this,11,"")},proto.google.protobuf.FileOptions.prototype.setGoPackage=function(t){return e.Message.setField(this,11,t)},proto.google.protobuf.FileOptions.prototype.clearGoPackage=function(){return e.Message.setField(this,11,void 0)},proto.google.protobuf.FileOptions.prototype.hasGoPackage=function(){return e.Message.getField(this,11)!=null},proto.google.protobuf.FileOptions.prototype.getCcGenericServices=function(){return e.Message.getBooleanFieldWithDefault(this,16,!1)},proto.google.protobuf.FileOptions.prototype.setCcGenericServices=function(t){return e.Message.setField(this,16,t)},proto.google.protobuf.FileOptions.prototype.clearCcGenericServices=function(){return e.Message.setField(this,16,void 0)},proto.google.protobuf.FileOptions.prototype.hasCcGenericServices=function(){return e.Message.getField(this,16)!=null},proto.google.protobuf.FileOptions.prototype.getJavaGenericServices=function(){return e.Message.getBooleanFieldWithDefault(this,17,!1)},proto.google.protobuf.FileOptions.prototype.setJavaGenericServices=function(t){return e.Message.setField(this,17,t)},proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices=function(){return e.Message.setField(this,17,void 0)},proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices=function(){return e.Message.getField(this,17)!=null},proto.google.protobuf.FileOptions.prototype.getPyGenericServices=function(){return e.Message.getBooleanFieldWithDefault(this,18,!1)},proto.google.protobuf.FileOptions.prototype.setPyGenericServices=function(t){return e.Message.setField(this,18,t)},proto.google.protobuf.FileOptions.prototype.clearPyGenericServices=function(){return e.Message.setField(this,18,void 0)},proto.google.protobuf.FileOptions.prototype.hasPyGenericServices=function(){return e.Message.getField(this,18)!=null},proto.google.protobuf.FileOptions.prototype.getPhpGenericServices=function(){return e.Message.getBooleanFieldWithDefault(this,42,!1)},proto.google.protobuf.FileOptions.prototype.setPhpGenericServices=function(t){return e.Message.setField(this,42,t)},proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices=function(){return e.Message.setField(this,42,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices=function(){return e.Message.getField(this,42)!=null},proto.google.protobuf.FileOptions.prototype.getDeprecated=function(){return e.Message.getBooleanFieldWithDefault(this,23,!1)},proto.google.protobuf.FileOptions.prototype.setDeprecated=function(t){return e.Message.setField(this,23,t)},proto.google.protobuf.FileOptions.prototype.clearDeprecated=function(){return e.Message.setField(this,23,void 0)},proto.google.protobuf.FileOptions.prototype.hasDeprecated=function(){return e.Message.getField(this,23)!=null},proto.google.protobuf.FileOptions.prototype.getCcEnableArenas=function(){return e.Message.getBooleanFieldWithDefault(this,31,!0)},proto.google.protobuf.FileOptions.prototype.setCcEnableArenas=function(t){return e.Message.setField(this,31,t)},proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas=function(){return e.Message.setField(this,31,void 0)},proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas=function(){return e.Message.getField(this,31)!=null},proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix=function(){return e.Message.getFieldWithDefault(this,36,"")},proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix=function(t){return e.Message.setField(this,36,t)},proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix=function(){return e.Message.setField(this,36,void 0)},proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix=function(){return e.Message.getField(this,36)!=null},proto.google.protobuf.FileOptions.prototype.getCsharpNamespace=function(){return e.Message.getFieldWithDefault(this,37,"")},proto.google.protobuf.FileOptions.prototype.setCsharpNamespace=function(t){return e.Message.setField(this,37,t)},proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace=function(){return e.Message.setField(this,37,void 0)},proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace=function(){return e.Message.getField(this,37)!=null},proto.google.protobuf.FileOptions.prototype.getSwiftPrefix=function(){return e.Message.getFieldWithDefault(this,39,"")},proto.google.protobuf.FileOptions.prototype.setSwiftPrefix=function(t){return e.Message.setField(this,39,t)},proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix=function(){return e.Message.setField(this,39,void 0)},proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix=function(){return e.Message.getField(this,39)!=null},proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix=function(){return e.Message.getFieldWithDefault(this,40,"")},proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix=function(t){return e.Message.setField(this,40,t)},proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix=function(){return e.Message.setField(this,40,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix=function(){return e.Message.getField(this,40)!=null},proto.google.protobuf.FileOptions.prototype.getPhpNamespace=function(){return e.Message.getFieldWithDefault(this,41,"")},proto.google.protobuf.FileOptions.prototype.setPhpNamespace=function(t){return e.Message.setField(this,41,t)},proto.google.protobuf.FileOptions.prototype.clearPhpNamespace=function(){return e.Message.setField(this,41,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpNamespace=function(){return e.Message.getField(this,41)!=null},proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace=function(){return e.Message.getFieldWithDefault(this,44,"")},proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace=function(t){return e.Message.setField(this,44,t)},proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace=function(){return e.Message.setField(this,44,void 0)},proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace=function(){return e.Message.getField(this,44)!=null},proto.google.protobuf.FileOptions.prototype.getRubyPackage=function(){return e.Message.getFieldWithDefault(this,45,"")},proto.google.protobuf.FileOptions.prototype.setRubyPackage=function(t){return e.Message.setField(this,45,t)},proto.google.protobuf.FileOptions.prototype.clearRubyPackage=function(){return e.Message.setField(this,45,void 0)},proto.google.protobuf.FileOptions.prototype.hasRubyPackage=function(){return e.Message.getField(this,45)!=null},proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.FileOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.MessageOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MessageOptions.prototype.toObject=function(t){return proto.google.protobuf.MessageOptions.toObject(t,this)},proto.google.protobuf.MessageOptions.toObject=function(t,n){var i,s={messageSetWireFormat:e.Message.getBooleanFieldWithDefault(n,1,!1),noStandardDescriptorAccessor:e.Message.getBooleanFieldWithDefault(n,2,!1),deprecated:e.Message.getBooleanFieldWithDefault(n,3,!1),mapEntry:(i=e.Message.getBooleanField(n,7))==null?void 0:i,uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,s,proto.google.protobuf.MessageOptions.extensions,proto.google.protobuf.MessageOptions.prototype.getExtension,t),t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.MessageOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.MessageOptions;return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.MessageOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readBool();t.setMessageSetWireFormat(s);break;case 2:var s=n.readBool();t.setNoStandardDescriptorAccessor(s);break;case 3:var s=n.readBool();t.setDeprecated(s);break;case 7:var s=n.readBool();t.setMapEntry(s);break;case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension,proto.google.protobuf.MessageOptions.prototype.setExtension);break}}return t},proto.google.protobuf.MessageOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.MessageOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeBool(1,i),i=e.Message.getField(t,2),i!=null&&n.writeBool(2,i),i=e.Message.getField(t,3),i!=null&&n.writeBool(3,i),i=e.Message.getField(t,7),i!=null&&n.writeBool(7,i),i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.MessageOptions.extensionsBinary,proto.google.protobuf.MessageOptions.prototype.getExtension)},proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat=function(){return e.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor=function(){return e.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.MessageOptions.prototype.getDeprecated=function(){return e.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.MessageOptions.prototype.setDeprecated=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.MessageOptions.prototype.clearDeprecated=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.MessageOptions.prototype.hasDeprecated=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.MessageOptions.prototype.getMapEntry=function(){return e.Message.getBooleanFieldWithDefault(this,7,!1)},proto.google.protobuf.MessageOptions.prototype.setMapEntry=function(t){return e.Message.setField(this,7,t)},proto.google.protobuf.MessageOptions.prototype.clearMapEntry=function(){return e.Message.setField(this,7,void 0)},proto.google.protobuf.MessageOptions.prototype.hasMapEntry=function(){return e.Message.getField(this,7)!=null},proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.FieldOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.FieldOptions.prototype.toObject=function(t){return proto.google.protobuf.FieldOptions.toObject(t,this)},proto.google.protobuf.FieldOptions.toObject=function(t,n){var i,s={ctype:e.Message.getFieldWithDefault(n,1,0),packed:(i=e.Message.getBooleanField(n,2))==null?void 0:i,jstype:e.Message.getFieldWithDefault(n,6,0),lazy:e.Message.getBooleanFieldWithDefault(n,5,!1),unverifiedLazy:e.Message.getBooleanFieldWithDefault(n,15,!1),deprecated:e.Message.getBooleanFieldWithDefault(n,3,!1),weak:e.Message.getBooleanFieldWithDefault(n,10,!1),uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,s,proto.google.protobuf.FieldOptions.extensions,proto.google.protobuf.FieldOptions.prototype.getExtension,t),t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.FieldOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.FieldOptions;return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.FieldOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readEnum();t.setCtype(s);break;case 2:var s=n.readBool();t.setPacked(s);break;case 6:var s=n.readEnum();t.setJstype(s);break;case 5:var s=n.readBool();t.setLazy(s);break;case 15:var s=n.readBool();t.setUnverifiedLazy(s);break;case 3:var s=n.readBool();t.setDeprecated(s);break;case 10:var s=n.readBool();t.setWeak(s);break;case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension,proto.google.protobuf.FieldOptions.prototype.setExtension);break}}return t},proto.google.protobuf.FieldOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.FieldOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeEnum(1,i),i=e.Message.getField(t,2),i!=null&&n.writeBool(2,i),i=e.Message.getField(t,6),i!=null&&n.writeEnum(6,i),i=e.Message.getField(t,5),i!=null&&n.writeBool(5,i),i=e.Message.getField(t,15),i!=null&&n.writeBool(15,i),i=e.Message.getField(t,3),i!=null&&n.writeBool(3,i),i=e.Message.getField(t,10),i!=null&&n.writeBool(10,i),i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.FieldOptions.extensionsBinary,proto.google.protobuf.FieldOptions.prototype.getExtension)},proto.google.protobuf.FieldOptions.CType={STRING:0,CORD:1,STRING_PIECE:2},proto.google.protobuf.FieldOptions.JSType={JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2},proto.google.protobuf.FieldOptions.prototype.getCtype=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.FieldOptions.prototype.setCtype=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.FieldOptions.prototype.clearCtype=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.FieldOptions.prototype.hasCtype=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.FieldOptions.prototype.getPacked=function(){return e.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.FieldOptions.prototype.setPacked=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.FieldOptions.prototype.clearPacked=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.FieldOptions.prototype.hasPacked=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.FieldOptions.prototype.getJstype=function(){return e.Message.getFieldWithDefault(this,6,0)},proto.google.protobuf.FieldOptions.prototype.setJstype=function(t){return e.Message.setField(this,6,t)},proto.google.protobuf.FieldOptions.prototype.clearJstype=function(){return e.Message.setField(this,6,void 0)},proto.google.protobuf.FieldOptions.prototype.hasJstype=function(){return e.Message.getField(this,6)!=null},proto.google.protobuf.FieldOptions.prototype.getLazy=function(){return e.Message.getBooleanFieldWithDefault(this,5,!1)},proto.google.protobuf.FieldOptions.prototype.setLazy=function(t){return e.Message.setField(this,5,t)},proto.google.protobuf.FieldOptions.prototype.clearLazy=function(){return e.Message.setField(this,5,void 0)},proto.google.protobuf.FieldOptions.prototype.hasLazy=function(){return e.Message.getField(this,5)!=null},proto.google.protobuf.FieldOptions.prototype.getUnverifiedLazy=function(){return e.Message.getBooleanFieldWithDefault(this,15,!1)},proto.google.protobuf.FieldOptions.prototype.setUnverifiedLazy=function(t){return e.Message.setField(this,15,t)},proto.google.protobuf.FieldOptions.prototype.clearUnverifiedLazy=function(){return e.Message.setField(this,15,void 0)},proto.google.protobuf.FieldOptions.prototype.hasUnverifiedLazy=function(){return e.Message.getField(this,15)!=null},proto.google.protobuf.FieldOptions.prototype.getDeprecated=function(){return e.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.FieldOptions.prototype.setDeprecated=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.FieldOptions.prototype.clearDeprecated=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.FieldOptions.prototype.hasDeprecated=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.FieldOptions.prototype.getWeak=function(){return e.Message.getBooleanFieldWithDefault(this,10,!1)},proto.google.protobuf.FieldOptions.prototype.setWeak=function(t){return e.Message.setField(this,10,t)},proto.google.protobuf.FieldOptions.prototype.clearWeak=function(){return e.Message.setField(this,10,void 0)},proto.google.protobuf.FieldOptions.prototype.hasWeak=function(){return e.Message.getField(this,10)!=null},proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.OneofOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.OneofOptions.prototype.toObject=function(t){return proto.google.protobuf.OneofOptions.toObject(t,this)},proto.google.protobuf.OneofOptions.toObject=function(t,n){var i={uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,i,proto.google.protobuf.OneofOptions.extensions,proto.google.protobuf.OneofOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.OneofOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.OneofOptions;return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.OneofOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension,proto.google.protobuf.OneofOptions.prototype.setExtension);break}}return t},proto.google.protobuf.OneofOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.OneofOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.OneofOptions.extensionsBinary,proto.google.protobuf.OneofOptions.prototype.getExtension)},proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.EnumOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumOptions.toObject(t,this)},proto.google.protobuf.EnumOptions.toObject=function(t,n){var i,s={allowAlias:(i=e.Message.getBooleanField(n,2))==null?void 0:i,deprecated:e.Message.getBooleanFieldWithDefault(n,3,!1),uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,s,proto.google.protobuf.EnumOptions.extensions,proto.google.protobuf.EnumOptions.prototype.getExtension,t),t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.EnumOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.EnumOptions;return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.EnumOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 2:var s=n.readBool();t.setAllowAlias(s);break;case 3:var s=n.readBool();t.setDeprecated(s);break;case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension,proto.google.protobuf.EnumOptions.prototype.setExtension);break}}return t},proto.google.protobuf.EnumOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.EnumOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,2),i!=null&&n.writeBool(2,i),i=e.Message.getField(t,3),i!=null&&n.writeBool(3,i),i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.EnumOptions.extensionsBinary,proto.google.protobuf.EnumOptions.prototype.getExtension)},proto.google.protobuf.EnumOptions.prototype.getAllowAlias=function(){return e.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.EnumOptions.prototype.setAllowAlias=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.EnumOptions.prototype.clearAllowAlias=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.EnumOptions.prototype.hasAllowAlias=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.EnumOptions.prototype.getDeprecated=function(){return e.Message.getBooleanFieldWithDefault(this,3,!1)},proto.google.protobuf.EnumOptions.prototype.setDeprecated=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.EnumOptions.prototype.clearDeprecated=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.EnumOptions.prototype.hasDeprecated=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.EnumValueOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.EnumValueOptions.prototype.toObject=function(t){return proto.google.protobuf.EnumValueOptions.toObject(t,this)},proto.google.protobuf.EnumValueOptions.toObject=function(t,n){var i={deprecated:e.Message.getBooleanFieldWithDefault(n,1,!1),uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,i,proto.google.protobuf.EnumValueOptions.extensions,proto.google.protobuf.EnumValueOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.EnumValueOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.EnumValueOptions;return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readBool();t.setDeprecated(s);break;case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension,proto.google.protobuf.EnumValueOptions.prototype.setExtension);break}}return t},proto.google.protobuf.EnumValueOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeBool(1,i),i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.EnumValueOptions.extensionsBinary,proto.google.protobuf.EnumValueOptions.prototype.getExtension)},proto.google.protobuf.EnumValueOptions.prototype.getDeprecated=function(){return e.Message.getBooleanFieldWithDefault(this,1,!1)},proto.google.protobuf.EnumValueOptions.prototype.setDeprecated=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.ServiceOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ServiceOptions.prototype.toObject=function(t){return proto.google.protobuf.ServiceOptions.toObject(t,this)},proto.google.protobuf.ServiceOptions.toObject=function(t,n){var i={deprecated:e.Message.getBooleanFieldWithDefault(n,33,!1),uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,i,proto.google.protobuf.ServiceOptions.extensions,proto.google.protobuf.ServiceOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.ServiceOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.ServiceOptions;return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 33:var s=n.readBool();t.setDeprecated(s);break;case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension,proto.google.protobuf.ServiceOptions.prototype.setExtension);break}}return t},proto.google.protobuf.ServiceOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.ServiceOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,33),i!=null&&n.writeBool(33,i),i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.ServiceOptions.extensionsBinary,proto.google.protobuf.ServiceOptions.prototype.getExtension)},proto.google.protobuf.ServiceOptions.prototype.getDeprecated=function(){return e.Message.getBooleanFieldWithDefault(this,33,!1)},proto.google.protobuf.ServiceOptions.prototype.setDeprecated=function(t){return e.Message.setField(this,33,t)},proto.google.protobuf.ServiceOptions.prototype.clearDeprecated=function(){return e.Message.setField(this,33,void 0)},proto.google.protobuf.ServiceOptions.prototype.hasDeprecated=function(){return e.Message.getField(this,33)!=null},proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.MethodOptions.repeatedFields_=[999],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.MethodOptions.prototype.toObject=function(t){return proto.google.protobuf.MethodOptions.toObject(t,this)},proto.google.protobuf.MethodOptions.toObject=function(t,n){var i={deprecated:e.Message.getBooleanFieldWithDefault(n,33,!1),idempotencyLevel:e.Message.getFieldWithDefault(n,34,0),uninterpretedOptionList:e.Message.toObjectList(n.getUninterpretedOptionList(),proto.google.protobuf.UninterpretedOption.toObject,t)};return e.Message.toObjectExtension(n,i,proto.google.protobuf.MethodOptions.extensions,proto.google.protobuf.MethodOptions.prototype.getExtension,t),t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.MethodOptions.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.MethodOptions;return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(i,n)},proto.google.protobuf.MethodOptions.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 33:var s=n.readBool();t.setDeprecated(s);break;case 34:var s=n.readEnum();t.setIdempotencyLevel(s);break;case 999:var s=new proto.google.protobuf.UninterpretedOption;n.readMessage(s,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader),t.addUninterpretedOption(s);break;default:e.Message.readBinaryExtension(t,n,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension,proto.google.protobuf.MethodOptions.prototype.setExtension);break}}return t},proto.google.protobuf.MethodOptions.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.MethodOptions.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,33),i!=null&&n.writeBool(33,i),i=e.Message.getField(t,34),i!=null&&n.writeEnum(34,i),i=t.getUninterpretedOptionList(),i.length>0&&n.writeRepeatedMessage(999,i,proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter),e.Message.serializeBinaryExtensions(t,n,proto.google.protobuf.MethodOptions.extensionsBinary,proto.google.protobuf.MethodOptions.prototype.getExtension)},proto.google.protobuf.MethodOptions.IdempotencyLevel={IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2},proto.google.protobuf.MethodOptions.prototype.getDeprecated=function(){return e.Message.getBooleanFieldWithDefault(this,33,!1)},proto.google.protobuf.MethodOptions.prototype.setDeprecated=function(t){return e.Message.setField(this,33,t)},proto.google.protobuf.MethodOptions.prototype.clearDeprecated=function(){return e.Message.setField(this,33,void 0)},proto.google.protobuf.MethodOptions.prototype.hasDeprecated=function(){return e.Message.getField(this,33)!=null},proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel=function(){return e.Message.getFieldWithDefault(this,34,0)},proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel=function(t){return e.Message.setField(this,34,t)},proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel=function(){return e.Message.setField(this,34,void 0)},proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel=function(){return e.Message.getField(this,34)!=null},proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption,999)},proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList=function(t){return e.Message.setRepeatedWrapperField(this,999,t)},proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption=function(t,n){return e.Message.addToRepeatedWrapperField(this,999,t,proto.google.protobuf.UninterpretedOption,n)},proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList=function(){return this.setUninterpretedOptionList([])},proto.google.protobuf.UninterpretedOption.repeatedFields_=[2],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.toObject(t,this)},proto.google.protobuf.UninterpretedOption.toObject=function(t,n){var i,s={nameList:e.Message.toObjectList(n.getNameList(),proto.google.protobuf.UninterpretedOption.NamePart.toObject,t),identifierValue:(i=e.Message.getField(n,3))==null?void 0:i,positiveIntValue:(i=e.Message.getField(n,4))==null?void 0:i,negativeIntValue:(i=e.Message.getField(n,5))==null?void 0:i,doubleValue:(i=e.Message.getOptionalFloatingPointField(n,6))==null?void 0:i,stringValue:n.getStringValue_asB64(),aggregateValue:(i=e.Message.getField(n,8))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.UninterpretedOption.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.UninterpretedOption;return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(i,n)},proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 2:var s=new proto.google.protobuf.UninterpretedOption.NamePart;n.readMessage(s,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader),t.addName(s);break;case 3:var s=n.readString();t.setIdentifierValue(s);break;case 4:var s=n.readUint64();t.setPositiveIntValue(s);break;case 5:var s=n.readInt64();t.setNegativeIntValue(s);break;case 6:var s=n.readDouble();t.setDoubleValue(s);break;case 7:var s=n.readBytes();t.setStringValue(s);break;case 8:var s=n.readString();t.setAggregateValue(s);break;default:n.skipField();break}}return t},proto.google.protobuf.UninterpretedOption.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getNameList(),i.length>0&&n.writeRepeatedMessage(2,i,proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter),i=e.Message.getField(t,3),i!=null&&n.writeString(3,i),i=e.Message.getField(t,4),i!=null&&n.writeUint64(4,i),i=e.Message.getField(t,5),i!=null&&n.writeInt64(5,i),i=e.Message.getField(t,6),i!=null&&n.writeDouble(6,i),i=e.Message.getField(t,7),i!=null&&n.writeBytes(7,i),i=e.Message.getField(t,8),i!=null&&n.writeString(8,i)},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject=function(t){return proto.google.protobuf.UninterpretedOption.NamePart.toObject(t,this)},proto.google.protobuf.UninterpretedOption.NamePart.toObject=function(t,n){var i,s={namePart:(i=e.Message.getField(n,1))==null?void 0:i,isExtension:(i=e.Message.getBooleanField(n,2))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.UninterpretedOption.NamePart;return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(i,n)},proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setNamePart(s);break;case 2:var s=n.readBool();t.setIsExtension(s);break;default:n.skipField();break}}return t},proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeString(1,i),i=e.Message.getField(t,2),i!=null&&n.writeBool(2,i)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart=function(t){return e.Message.setField(this,1,t)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart=function(){return e.Message.setField(this,1,void 0)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension=function(){return e.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.UninterpretedOption.prototype.getNameList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.UninterpretedOption.NamePart,2)},proto.google.protobuf.UninterpretedOption.prototype.setNameList=function(t){return e.Message.setRepeatedWrapperField(this,2,t)},proto.google.protobuf.UninterpretedOption.prototype.addName=function(t,n){return e.Message.addToRepeatedWrapperField(this,2,t,proto.google.protobuf.UninterpretedOption.NamePart,n)},proto.google.protobuf.UninterpretedOption.prototype.clearNameList=function(){return this.setNameList([])},proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue=function(){return e.Message.getFieldWithDefault(this,4,0)},proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue=function(t){return e.Message.setField(this,4,t)},proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue=function(){return e.Message.setField(this,4,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue=function(){return e.Message.getFieldWithDefault(this,5,0)},proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue=function(t){return e.Message.setField(this,5,t)},proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue=function(){return e.Message.setField(this,5,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue=function(){return e.Message.getField(this,5)!=null},proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue=function(){return e.Message.getFloatingPointFieldWithDefault(this,6,0)},proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue=function(t){return e.Message.setField(this,6,t)},proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue=function(){return e.Message.setField(this,6,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue=function(){return e.Message.getField(this,6)!=null},proto.google.protobuf.UninterpretedOption.prototype.getStringValue=function(){return e.Message.getFieldWithDefault(this,7,"")},proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64=function(){return e.Message.bytesAsB64(this.getStringValue())},proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8=function(){return e.Message.bytesAsU8(this.getStringValue())},proto.google.protobuf.UninterpretedOption.prototype.setStringValue=function(t){return e.Message.setField(this,7,t)},proto.google.protobuf.UninterpretedOption.prototype.clearStringValue=function(){return e.Message.setField(this,7,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasStringValue=function(){return e.Message.getField(this,7)!=null},proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue=function(){return e.Message.getFieldWithDefault(this,8,"")},proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue=function(t){return e.Message.setField(this,8,t)},proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue=function(){return e.Message.setField(this,8,void 0)},proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue=function(){return e.Message.getField(this,8)!=null},proto.google.protobuf.SourceCodeInfo.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.toObject=function(t,n){var i={locationList:e.Message.toObjectList(n.getLocationList(),proto.google.protobuf.SourceCodeInfo.Location.toObject,t)};return t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.SourceCodeInfo.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.SourceCodeInfo;return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(i,n)},proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=new proto.google.protobuf.SourceCodeInfo.Location;n.readMessage(s,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader),t.addLocation(s);break;default:n.skipField();break}}return t},proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getLocationList(),i.length>0&&n.writeRepeatedMessage(1,i,proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter)},proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_=[1,2,6],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject=function(t){return proto.google.protobuf.SourceCodeInfo.Location.toObject(t,this)},proto.google.protobuf.SourceCodeInfo.Location.toObject=function(t,n){var i,s={pathList:(i=e.Message.getRepeatedField(n,1))==null?void 0:i,spanList:(i=e.Message.getRepeatedField(n,2))==null?void 0:i,leadingComments:(i=e.Message.getField(n,3))==null?void 0:i,trailingComments:(i=e.Message.getField(n,4))==null?void 0:i,leadingDetachedCommentsList:(i=e.Message.getRepeatedField(n,6))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.SourceCodeInfo.Location;return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(i,n)},proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:for(var g=n.isDelimited()?n.readPackedInt32():[n.readInt32()],s=0;s<g.length;s++)t.addPath(g[s]);break;case 2:for(var g=n.isDelimited()?n.readPackedInt32():[n.readInt32()],s=0;s<g.length;s++)t.addSpan(g[s]);break;case 3:var l=n.readString();t.setLeadingComments(l);break;case 4:var l=n.readString();t.setTrailingComments(l);break;case 6:var l=n.readString();t.addLeadingDetachedComments(l);break;default:n.skipField();break}}return t},proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getPathList(),i.length>0&&n.writePackedInt32(1,i),i=t.getSpanList(),i.length>0&&n.writePackedInt32(2,i),i=e.Message.getField(t,3),i!=null&&n.writeString(3,i),i=e.Message.getField(t,4),i!=null&&n.writeString(4,i),i=t.getLeadingDetachedCommentsList(),i.length>0&&n.writeRepeatedString(6,i)},proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList=function(){return e.Message.getRepeatedField(this,1)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList=function(t){return e.Message.setField(this,1,t||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath=function(t,n){return e.Message.addToRepeatedField(this,1,t,n)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList=function(){return this.setPathList([])},proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList=function(){return e.Message.getRepeatedField(this,2)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList=function(t){return e.Message.setField(this,2,t||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan=function(t,n){return e.Message.addToRepeatedField(this,2,t,n)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList=function(){return this.setSpanList([])},proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments=function(){return e.Message.getFieldWithDefault(this,4,"")},proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments=function(t){return e.Message.setField(this,4,t)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments=function(){return e.Message.setField(this,4,void 0)},proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList=function(){return e.Message.getRepeatedField(this,6)},proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList=function(t){return e.Message.setField(this,6,t||[])},proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments=function(t,n){return e.Message.addToRepeatedField(this,6,t,n)},proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList=function(){return this.setLeadingDetachedCommentsList([])},proto.google.protobuf.SourceCodeInfo.prototype.getLocationList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.SourceCodeInfo.Location,1)},proto.google.protobuf.SourceCodeInfo.prototype.setLocationList=function(t){return e.Message.setRepeatedWrapperField(this,1,t)},proto.google.protobuf.SourceCodeInfo.prototype.addLocation=function(t,n){return e.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.SourceCodeInfo.Location,n)},proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList=function(){return this.setLocationList([])},proto.google.protobuf.GeneratedCodeInfo.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.toObject=function(t,n){var i={annotationList:e.Message.toObjectList(n.getAnnotationList(),proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject,t)};return t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.GeneratedCodeInfo.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.GeneratedCodeInfo;return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(i,n)},proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=new proto.google.protobuf.GeneratedCodeInfo.Annotation;n.readMessage(s,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader),t.addAnnotation(s);break;default:n.skipField();break}}return t},proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getAnnotationList(),i.length>0&&n.writeRepeatedMessage(1,i,proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter)},proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject=function(t){return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(t,this)},proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject=function(t,n){var i,s={pathList:(i=e.Message.getRepeatedField(n,1))==null?void 0:i,sourceFile:(i=e.Message.getField(n,2))==null?void 0:i,begin:(i=e.Message.getField(n,3))==null?void 0:i,end:(i=e.Message.getField(n,4))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.GeneratedCodeInfo.Annotation;return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(i,n)},proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:for(var s=n.isDelimited()?n.readPackedInt32():[n.readInt32()],g=0;g<s.length;g++)t.addPath(s[g]);break;case 2:var l=n.readString();t.setSourceFile(l);break;case 3:var l=n.readInt32();t.setBegin(l);break;case 4:var l=n.readInt32();t.setEnd(l);break;default:n.skipField();break}}return t},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getPathList(),i.length>0&&n.writePackedInt32(1,i),i=e.Message.getField(t,2),i!=null&&n.writeString(2,i),i=e.Message.getField(t,3),i!=null&&n.writeInt32(3,i),i=e.Message.getField(t,4),i!=null&&n.writeInt32(4,i)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList=function(){return e.Message.getRepeatedField(this,1)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList=function(t){return e.Message.setField(this,1,t||[])},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath=function(t,n){return e.Message.addToRepeatedField(this,1,t,n)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList=function(){return this.setPathList([])},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile=function(t){return e.Message.setField(this,2,t)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile=function(){return e.Message.setField(this,2,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin=function(){return e.Message.getFieldWithDefault(this,3,0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin=function(t){return e.Message.setField(this,3,t)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin=function(){return e.Message.setField(this,3,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd=function(){return e.Message.getFieldWithDefault(this,4,0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd=function(t){return e.Message.setField(this,4,t)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd=function(){return e.Message.setField(this,4,void 0)},proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.GeneratedCodeInfo.Annotation,1)},proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList=function(t){return e.Message.setRepeatedWrapperField(this,1,t)},proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation=function(t,n){return e.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.GeneratedCodeInfo.Annotation,n)},proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList=function(){return this.setAnnotationList([])},r.object.extend(o,proto.google.protobuf)})(descriptor_pb$j);var struct_pb$k={};(function(o){var e=googleProtobuf$m,r=e,p=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof p<"u"&&p||typeof self<"u"&&self||function(){return this}.call(null)||Function("return this")();r.exportSymbol("proto.google.protobuf.ListValue",null,p),r.exportSymbol("proto.google.protobuf.NullValue",null,p),r.exportSymbol("proto.google.protobuf.Struct",null,p),r.exportSymbol("proto.google.protobuf.Value",null,p),r.exportSymbol("proto.google.protobuf.Value.KindCase",null,p),proto.google.protobuf.Struct=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.protobuf.Struct,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.Struct.displayName="proto.google.protobuf.Struct"),proto.google.protobuf.Value=function(t){e.Message.initialize(this,t,0,-1,null,proto.google.protobuf.Value.oneofGroups_)},r.inherits(proto.google.protobuf.Value,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.Value.displayName="proto.google.protobuf.Value"),proto.google.protobuf.ListValue=function(t){e.Message.initialize(this,t,0,-1,proto.google.protobuf.ListValue.repeatedFields_,null)},r.inherits(proto.google.protobuf.ListValue,e.Message),r.DEBUG&&!COMPILED&&(proto.google.protobuf.ListValue.displayName="proto.google.protobuf.ListValue"),e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Struct.prototype.toObject=function(t){return proto.google.protobuf.Struct.toObject(t,this)},proto.google.protobuf.Struct.toObject=function(t,n){var i,s={fieldsMap:(i=n.getFieldsMap())?i.toObject(t,proto.google.protobuf.Value.toObject):[]};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.Struct.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.Struct;return proto.google.protobuf.Struct.deserializeBinaryFromReader(i,n)},proto.google.protobuf.Struct.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=t.getFieldsMap();n.readMessage(s,function(g,l){e.Map.deserializeBinary(g,l,e.BinaryReader.prototype.readString,e.BinaryReader.prototype.readMessage,proto.google.protobuf.Value.deserializeBinaryFromReader,"",new proto.google.protobuf.Value)});break;default:n.skipField();break}}return t},proto.google.protobuf.Struct.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.Struct.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.Struct.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getFieldsMap(!0),i&&i.getLength()>0&&i.serializeBinary(1,n,e.BinaryWriter.prototype.writeString,e.BinaryWriter.prototype.writeMessage,proto.google.protobuf.Value.serializeBinaryToWriter)},proto.google.protobuf.Struct.prototype.getFieldsMap=function(t){return e.Message.getMapField(this,1,t,proto.google.protobuf.Value)},proto.google.protobuf.Struct.prototype.clearFieldsMap=function(){return this.getFieldsMap().clear(),this},proto.google.protobuf.Value.oneofGroups_=[[1,2,3,4,5,6]],proto.google.protobuf.Value.KindCase={KIND_NOT_SET:0,NULL_VALUE:1,NUMBER_VALUE:2,STRING_VALUE:3,BOOL_VALUE:4,STRUCT_VALUE:5,LIST_VALUE:6},proto.google.protobuf.Value.prototype.getKindCase=function(){return e.Message.computeOneofCase(this,proto.google.protobuf.Value.oneofGroups_[0])},e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.Value.prototype.toObject=function(t){return proto.google.protobuf.Value.toObject(t,this)},proto.google.protobuf.Value.toObject=function(t,n){var i,s={nullValue:e.Message.getFieldWithDefault(n,1,0),numberValue:e.Message.getFloatingPointFieldWithDefault(n,2,0),stringValue:e.Message.getFieldWithDefault(n,3,""),boolValue:e.Message.getBooleanFieldWithDefault(n,4,!1),structValue:(i=n.getStructValue())&&proto.google.protobuf.Struct.toObject(t,i),listValue:(i=n.getListValue())&&proto.google.protobuf.ListValue.toObject(t,i)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.protobuf.Value.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.Value;return proto.google.protobuf.Value.deserializeBinaryFromReader(i,n)},proto.google.protobuf.Value.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readEnum();t.setNullValue(s);break;case 2:var s=n.readDouble();t.setNumberValue(s);break;case 3:var s=n.readString();t.setStringValue(s);break;case 4:var s=n.readBool();t.setBoolValue(s);break;case 5:var s=new proto.google.protobuf.Struct;n.readMessage(s,proto.google.protobuf.Struct.deserializeBinaryFromReader),t.setStructValue(s);break;case 6:var s=new proto.google.protobuf.ListValue;n.readMessage(s,proto.google.protobuf.ListValue.deserializeBinaryFromReader),t.setListValue(s);break;default:n.skipField();break}}return t},proto.google.protobuf.Value.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.Value.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.Value.serializeBinaryToWriter=function(t,n){var i=void 0;i=e.Message.getField(t,1),i!=null&&n.writeEnum(1,i),i=e.Message.getField(t,2),i!=null&&n.writeDouble(2,i),i=e.Message.getField(t,3),i!=null&&n.writeString(3,i),i=e.Message.getField(t,4),i!=null&&n.writeBool(4,i),i=t.getStructValue(),i!=null&&n.writeMessage(5,i,proto.google.protobuf.Struct.serializeBinaryToWriter),i=t.getListValue(),i!=null&&n.writeMessage(6,i,proto.google.protobuf.ListValue.serializeBinaryToWriter)},proto.google.protobuf.Value.prototype.getNullValue=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.google.protobuf.Value.prototype.setNullValue=function(t){return e.Message.setOneofField(this,1,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearNullValue=function(){return e.Message.setOneofField(this,1,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasNullValue=function(){return e.Message.getField(this,1)!=null},proto.google.protobuf.Value.prototype.getNumberValue=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.google.protobuf.Value.prototype.setNumberValue=function(t){return e.Message.setOneofField(this,2,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearNumberValue=function(){return e.Message.setOneofField(this,2,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasNumberValue=function(){return e.Message.getField(this,2)!=null},proto.google.protobuf.Value.prototype.getStringValue=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.google.protobuf.Value.prototype.setStringValue=function(t){return e.Message.setOneofField(this,3,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearStringValue=function(){return e.Message.setOneofField(this,3,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasStringValue=function(){return e.Message.getField(this,3)!=null},proto.google.protobuf.Value.prototype.getBoolValue=function(){return e.Message.getBooleanFieldWithDefault(this,4,!1)},proto.google.protobuf.Value.prototype.setBoolValue=function(t){return e.Message.setOneofField(this,4,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearBoolValue=function(){return e.Message.setOneofField(this,4,proto.google.protobuf.Value.oneofGroups_[0],void 0)},proto.google.protobuf.Value.prototype.hasBoolValue=function(){return e.Message.getField(this,4)!=null},proto.google.protobuf.Value.prototype.getStructValue=function(){return e.Message.getWrapperField(this,proto.google.protobuf.Struct,5)},proto.google.protobuf.Value.prototype.setStructValue=function(t){return e.Message.setOneofWrapperField(this,5,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearStructValue=function(){return this.setStructValue(void 0)},proto.google.protobuf.Value.prototype.hasStructValue=function(){return e.Message.getField(this,5)!=null},proto.google.protobuf.Value.prototype.getListValue=function(){return e.Message.getWrapperField(this,proto.google.protobuf.ListValue,6)},proto.google.protobuf.Value.prototype.setListValue=function(t){return e.Message.setOneofWrapperField(this,6,proto.google.protobuf.Value.oneofGroups_[0],t)},proto.google.protobuf.Value.prototype.clearListValue=function(){return this.setListValue(void 0)},proto.google.protobuf.Value.prototype.hasListValue=function(){return e.Message.getField(this,6)!=null},proto.google.protobuf.ListValue.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.protobuf.ListValue.prototype.toObject=function(t){return proto.google.protobuf.ListValue.toObject(t,this)},proto.google.protobuf.ListValue.toObject=function(t,n){var i={valuesList:e.Message.toObjectList(n.getValuesList(),proto.google.protobuf.Value.toObject,t)};return t&&(i.$jspbMessageInstance=n),i}),proto.google.protobuf.ListValue.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.protobuf.ListValue;return proto.google.protobuf.ListValue.deserializeBinaryFromReader(i,n)},proto.google.protobuf.ListValue.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=new proto.google.protobuf.Value;n.readMessage(s,proto.google.protobuf.Value.deserializeBinaryFromReader),t.addValues(s);break;default:n.skipField();break}}return t},proto.google.protobuf.ListValue.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.protobuf.ListValue.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.protobuf.ListValue.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getValuesList(),i.length>0&&n.writeRepeatedMessage(1,i,proto.google.protobuf.Value.serializeBinaryToWriter)},proto.google.protobuf.ListValue.prototype.getValuesList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.protobuf.Value,1)},proto.google.protobuf.ListValue.prototype.setValuesList=function(t){return e.Message.setRepeatedWrapperField(this,1,t)},proto.google.protobuf.ListValue.prototype.addValues=function(t,n){return e.Message.addToRepeatedWrapperField(this,1,t,proto.google.protobuf.Value,n)},proto.google.protobuf.ListValue.prototype.clearValuesList=function(){return this.setValuesList([])},proto.google.protobuf.NullValue={NULL_VALUE:0},r.object.extend(o,proto.google.protobuf),proto.google.protobuf.JavaScriptValue,proto.google.protobuf.Value.prototype.toJavaScript=function(){var t=proto.google.protobuf.Value.KindCase;switch(this.getKindCase()){case t.NULL_VALUE:return null;case t.NUMBER_VALUE:return this.getNumberValue();case t.STRING_VALUE:return this.getStringValue();case t.BOOL_VALUE:return this.getBoolValue();case t.STRUCT_VALUE:return this.getStructValue().toJavaScript();case t.LIST_VALUE:return this.getListValue().toJavaScript();default:throw new Error("Unexpected struct type")}},proto.google.protobuf.Value.fromJavaScript=function(t){var n=new proto.google.protobuf.Value;switch(r.typeOf(t)){case"string":n.setStringValue(t);break;case"number":n.setNumberValue(t);break;case"boolean":n.setBoolValue(t);break;case"null":n.setNullValue(proto.google.protobuf.NullValue.NULL_VALUE);break;case"array":n.setListValue(proto.google.protobuf.ListValue.fromJavaScript(t));break;case"object":n.setStructValue(proto.google.protobuf.Struct.fromJavaScript(t));break;default:throw new Error("Unexpected struct type.")}return n},proto.google.protobuf.ListValue.prototype.toJavaScript=function(){for(var t=[],n=this.getValuesList(),i=0;i<n.length;i++)t[i]=n[i].toJavaScript();return t},proto.google.protobuf.ListValue.fromJavaScript=function(t){for(var n=new proto.google.protobuf.ListValue,i=0;i<t.length;i++)n.addValues(proto.google.protobuf.Value.fromJavaScript(t[i]));return n},proto.google.protobuf.Struct.prototype.toJavaScript=function(){var t={};return this.getFieldsMap().forEach(function(n,i){t[i]=n.toJavaScript()}),t},proto.google.protobuf.Struct.fromJavaScript=function(t){var n=new proto.google.protobuf.Struct,i=n.getFieldsMap();for(var s in t){var g=t[s];i.set(s,proto.google.protobuf.Value.fromJavaScript(g))}return n}})(struct_pb$k),function(o){var e=googleProtobuf$m,r=e,p=function(){return this||window||p||self||Function("return this")()}.call(null),t=descriptor_pb$j;r.object.extend(proto,t);var n=struct_pb$k;r.object.extend(proto,n),r.exportSymbol("proto.viam.common.v1.ActuatorStatus",null,p),r.exportSymbol("proto.viam.common.v1.AnalogStatus",null,p),r.exportSymbol("proto.viam.common.v1.BoardStatus",null,p),r.exportSymbol("proto.viam.common.v1.Capsule",null,p),r.exportSymbol("proto.viam.common.v1.DigitalInterruptStatus",null,p),r.exportSymbol("proto.viam.common.v1.DoCommandRequest",null,p),r.exportSymbol("proto.viam.common.v1.DoCommandResponse",null,p),r.exportSymbol("proto.viam.common.v1.GeoPoint",null,p),r.exportSymbol("proto.viam.common.v1.GeometriesInFrame",null,p),r.exportSymbol("proto.viam.common.v1.Geometry",null,p),r.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase",null,p),r.exportSymbol("proto.viam.common.v1.Orientation",null,p),r.exportSymbol("proto.viam.common.v1.PointCloudObject",null,p),r.exportSymbol("proto.viam.common.v1.Pose",null,p),r.exportSymbol("proto.viam.common.v1.PoseInFrame",null,p),r.exportSymbol("proto.viam.common.v1.RectangularPrism",null,p),r.exportSymbol("proto.viam.common.v1.ResourceName",null,p),r.exportSymbol("proto.viam.common.v1.Sphere",null,p),r.exportSymbol("proto.viam.common.v1.Transform",null,p),r.exportSymbol("proto.viam.common.v1.Vector3",null,p),r.exportSymbol("proto.viam.common.v1.WorldState",null,p),r.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored",null,p),proto.viam.common.v1.ResourceName=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.ResourceName,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.ResourceName.displayName="proto.viam.common.v1.ResourceName"),proto.viam.common.v1.BoardStatus=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.BoardStatus,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.BoardStatus.displayName="proto.viam.common.v1.BoardStatus"),proto.viam.common.v1.AnalogStatus=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.AnalogStatus,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.AnalogStatus.displayName="proto.viam.common.v1.AnalogStatus"),proto.viam.common.v1.DigitalInterruptStatus=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.DigitalInterruptStatus,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.DigitalInterruptStatus.displayName="proto.viam.common.v1.DigitalInterruptStatus"),proto.viam.common.v1.Pose=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.Pose,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.Pose.displayName="proto.viam.common.v1.Pose"),proto.viam.common.v1.Orientation=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.Orientation,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.Orientation.displayName="proto.viam.common.v1.Orientation"),proto.viam.common.v1.PoseInFrame=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.PoseInFrame,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.PoseInFrame.displayName="proto.viam.common.v1.PoseInFrame"),proto.viam.common.v1.Vector3=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.Vector3,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.Vector3.displayName="proto.viam.common.v1.Vector3"),proto.viam.common.v1.Sphere=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.Sphere,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.Sphere.displayName="proto.viam.common.v1.Sphere"),proto.viam.common.v1.Capsule=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.Capsule,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.Capsule.displayName="proto.viam.common.v1.Capsule"),proto.viam.common.v1.RectangularPrism=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.RectangularPrism,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.RectangularPrism.displayName="proto.viam.common.v1.RectangularPrism"),proto.viam.common.v1.Geometry=function(i){e.Message.initialize(this,i,0,-1,null,proto.viam.common.v1.Geometry.oneofGroups_)},r.inherits(proto.viam.common.v1.Geometry,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.Geometry.displayName="proto.viam.common.v1.Geometry"),proto.viam.common.v1.GeometriesInFrame=function(i){e.Message.initialize(this,i,0,-1,proto.viam.common.v1.GeometriesInFrame.repeatedFields_,null)},r.inherits(proto.viam.common.v1.GeometriesInFrame,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.GeometriesInFrame.displayName="proto.viam.common.v1.GeometriesInFrame"),proto.viam.common.v1.PointCloudObject=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.PointCloudObject,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.PointCloudObject.displayName="proto.viam.common.v1.PointCloudObject"),proto.viam.common.v1.GeoPoint=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.GeoPoint,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.GeoPoint.displayName="proto.viam.common.v1.GeoPoint"),proto.viam.common.v1.Transform=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.Transform,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.Transform.displayName="proto.viam.common.v1.Transform"),proto.viam.common.v1.WorldState=function(i){e.Message.initialize(this,i,0,-1,proto.viam.common.v1.WorldState.repeatedFields_,null)},r.inherits(proto.viam.common.v1.WorldState,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.WorldState.displayName="proto.viam.common.v1.WorldState"),proto.viam.common.v1.ActuatorStatus=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.ActuatorStatus,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.ActuatorStatus.displayName="proto.viam.common.v1.ActuatorStatus"),proto.viam.common.v1.DoCommandRequest=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.DoCommandRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.DoCommandRequest.displayName="proto.viam.common.v1.DoCommandRequest"),proto.viam.common.v1.DoCommandResponse=function(i){e.Message.initialize(this,i,0,-1,null,null)},r.inherits(proto.viam.common.v1.DoCommandResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.common.v1.DoCommandResponse.displayName="proto.viam.common.v1.DoCommandResponse"),e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.ResourceName.prototype.toObject=function(i){return proto.viam.common.v1.ResourceName.toObject(i,this)},proto.viam.common.v1.ResourceName.toObject=function(i,s){var g={namespace:e.Message.getFieldWithDefault(s,1,""),type:e.Message.getFieldWithDefault(s,2,""),subtype:e.Message.getFieldWithDefault(s,3,""),name:e.Message.getFieldWithDefault(s,4,"")};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.ResourceName.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.ResourceName;return proto.viam.common.v1.ResourceName.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.ResourceName.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readString();i.setNamespace(l);break;case 2:var l=s.readString();i.setType(l);break;case 3:var l=s.readString();i.setSubtype(l);break;case 4:var l=s.readString();i.setName(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.ResourceName.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.ResourceName.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.ResourceName.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getNamespace(),g.length>0&&s.writeString(1,g),g=i.getType(),g.length>0&&s.writeString(2,g),g=i.getSubtype(),g.length>0&&s.writeString(3,g),g=i.getName(),g.length>0&&s.writeString(4,g)},proto.viam.common.v1.ResourceName.prototype.getNamespace=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.common.v1.ResourceName.prototype.setNamespace=function(i){return e.Message.setProto3StringField(this,1,i)},proto.viam.common.v1.ResourceName.prototype.getType=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.common.v1.ResourceName.prototype.setType=function(i){return e.Message.setProto3StringField(this,2,i)},proto.viam.common.v1.ResourceName.prototype.getSubtype=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.viam.common.v1.ResourceName.prototype.setSubtype=function(i){return e.Message.setProto3StringField(this,3,i)},proto.viam.common.v1.ResourceName.prototype.getName=function(){return e.Message.getFieldWithDefault(this,4,"")},proto.viam.common.v1.ResourceName.prototype.setName=function(i){return e.Message.setProto3StringField(this,4,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.BoardStatus.prototype.toObject=function(i){return proto.viam.common.v1.BoardStatus.toObject(i,this)},proto.viam.common.v1.BoardStatus.toObject=function(i,s){var g,l={analogsMap:(g=s.getAnalogsMap())?g.toObject(i,proto.viam.common.v1.AnalogStatus.toObject):[],digitalInterruptsMap:(g=s.getDigitalInterruptsMap())?g.toObject(i,proto.viam.common.v1.DigitalInterruptStatus.toObject):[]};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.BoardStatus.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.BoardStatus;return proto.viam.common.v1.BoardStatus.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.BoardStatus.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=i.getAnalogsMap();s.readMessage(l,function(u,c){e.Map.deserializeBinary(u,c,e.BinaryReader.prototype.readString,e.BinaryReader.prototype.readMessage,proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader,"",new proto.viam.common.v1.AnalogStatus)});break;case 2:var l=i.getDigitalInterruptsMap();s.readMessage(l,function(u,c){e.Map.deserializeBinary(u,c,e.BinaryReader.prototype.readString,e.BinaryReader.prototype.readMessage,proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader,"",new proto.viam.common.v1.DigitalInterruptStatus)});break;default:s.skipField();break}}return i},proto.viam.common.v1.BoardStatus.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.BoardStatus.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.BoardStatus.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getAnalogsMap(!0),g&&g.getLength()>0&&g.serializeBinary(1,s,e.BinaryWriter.prototype.writeString,e.BinaryWriter.prototype.writeMessage,proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter),g=i.getDigitalInterruptsMap(!0),g&&g.getLength()>0&&g.serializeBinary(2,s,e.BinaryWriter.prototype.writeString,e.BinaryWriter.prototype.writeMessage,proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter)},proto.viam.common.v1.BoardStatus.prototype.getAnalogsMap=function(i){return e.Message.getMapField(this,1,i,proto.viam.common.v1.AnalogStatus)},proto.viam.common.v1.BoardStatus.prototype.clearAnalogsMap=function(){return this.getAnalogsMap().clear(),this},proto.viam.common.v1.BoardStatus.prototype.getDigitalInterruptsMap=function(i){return e.Message.getMapField(this,2,i,proto.viam.common.v1.DigitalInterruptStatus)},proto.viam.common.v1.BoardStatus.prototype.clearDigitalInterruptsMap=function(){return this.getDigitalInterruptsMap().clear(),this},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.AnalogStatus.prototype.toObject=function(i){return proto.viam.common.v1.AnalogStatus.toObject(i,this)},proto.viam.common.v1.AnalogStatus.toObject=function(i,s){var g={value:e.Message.getFieldWithDefault(s,1,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.AnalogStatus.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.AnalogStatus;return proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.AnalogStatus.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readInt32();i.setValue(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.AnalogStatus.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.AnalogStatus.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getValue(),g!==0&&s.writeInt32(1,g)},proto.viam.common.v1.AnalogStatus.prototype.getValue=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.viam.common.v1.AnalogStatus.prototype.setValue=function(i){return e.Message.setProto3IntField(this,1,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.DigitalInterruptStatus.prototype.toObject=function(i){return proto.viam.common.v1.DigitalInterruptStatus.toObject(i,this)},proto.viam.common.v1.DigitalInterruptStatus.toObject=function(i,s){var g={value:e.Message.getFieldWithDefault(s,1,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.DigitalInterruptStatus.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.DigitalInterruptStatus;return proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.DigitalInterruptStatus.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readInt64();i.setValue(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.DigitalInterruptStatus.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.DigitalInterruptStatus.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getValue(),g!==0&&s.writeInt64(1,g)},proto.viam.common.v1.DigitalInterruptStatus.prototype.getValue=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.viam.common.v1.DigitalInterruptStatus.prototype.setValue=function(i){return e.Message.setProto3IntField(this,1,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.Pose.prototype.toObject=function(i){return proto.viam.common.v1.Pose.toObject(i,this)},proto.viam.common.v1.Pose.toObject=function(i,s){var g={x:e.Message.getFloatingPointFieldWithDefault(s,1,0),y:e.Message.getFloatingPointFieldWithDefault(s,2,0),z:e.Message.getFloatingPointFieldWithDefault(s,3,0),oX:e.Message.getFloatingPointFieldWithDefault(s,4,0),oY:e.Message.getFloatingPointFieldWithDefault(s,5,0),oZ:e.Message.getFloatingPointFieldWithDefault(s,6,0),theta:e.Message.getFloatingPointFieldWithDefault(s,7,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.Pose.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.Pose;return proto.viam.common.v1.Pose.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.Pose.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readDouble();i.setX(l);break;case 2:var l=s.readDouble();i.setY(l);break;case 3:var l=s.readDouble();i.setZ(l);break;case 4:var l=s.readDouble();i.setOX(l);break;case 5:var l=s.readDouble();i.setOY(l);break;case 6:var l=s.readDouble();i.setOZ(l);break;case 7:var l=s.readDouble();i.setTheta(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.Pose.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.Pose.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.Pose.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getX(),g!==0&&s.writeDouble(1,g),g=i.getY(),g!==0&&s.writeDouble(2,g),g=i.getZ(),g!==0&&s.writeDouble(3,g),g=i.getOX(),g!==0&&s.writeDouble(4,g),g=i.getOY(),g!==0&&s.writeDouble(5,g),g=i.getOZ(),g!==0&&s.writeDouble(6,g),g=i.getTheta(),g!==0&&s.writeDouble(7,g)},proto.viam.common.v1.Pose.prototype.getX=function(){return e.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.viam.common.v1.Pose.prototype.setX=function(i){return e.Message.setProto3FloatField(this,1,i)},proto.viam.common.v1.Pose.prototype.getY=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.viam.common.v1.Pose.prototype.setY=function(i){return e.Message.setProto3FloatField(this,2,i)},proto.viam.common.v1.Pose.prototype.getZ=function(){return e.Message.getFloatingPointFieldWithDefault(this,3,0)},proto.viam.common.v1.Pose.prototype.setZ=function(i){return e.Message.setProto3FloatField(this,3,i)},proto.viam.common.v1.Pose.prototype.getOX=function(){return e.Message.getFloatingPointFieldWithDefault(this,4,0)},proto.viam.common.v1.Pose.prototype.setOX=function(i){return e.Message.setProto3FloatField(this,4,i)},proto.viam.common.v1.Pose.prototype.getOY=function(){return e.Message.getFloatingPointFieldWithDefault(this,5,0)},proto.viam.common.v1.Pose.prototype.setOY=function(i){return e.Message.setProto3FloatField(this,5,i)},proto.viam.common.v1.Pose.prototype.getOZ=function(){return e.Message.getFloatingPointFieldWithDefault(this,6,0)},proto.viam.common.v1.Pose.prototype.setOZ=function(i){return e.Message.setProto3FloatField(this,6,i)},proto.viam.common.v1.Pose.prototype.getTheta=function(){return e.Message.getFloatingPointFieldWithDefault(this,7,0)},proto.viam.common.v1.Pose.prototype.setTheta=function(i){return e.Message.setProto3FloatField(this,7,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.Orientation.prototype.toObject=function(i){return proto.viam.common.v1.Orientation.toObject(i,this)},proto.viam.common.v1.Orientation.toObject=function(i,s){var g={oX:e.Message.getFloatingPointFieldWithDefault(s,1,0),oY:e.Message.getFloatingPointFieldWithDefault(s,2,0),oZ:e.Message.getFloatingPointFieldWithDefault(s,3,0),theta:e.Message.getFloatingPointFieldWithDefault(s,4,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.Orientation.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.Orientation;return proto.viam.common.v1.Orientation.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.Orientation.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readDouble();i.setOX(l);break;case 2:var l=s.readDouble();i.setOY(l);break;case 3:var l=s.readDouble();i.setOZ(l);break;case 4:var l=s.readDouble();i.setTheta(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.Orientation.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.Orientation.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.Orientation.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getOX(),g!==0&&s.writeDouble(1,g),g=i.getOY(),g!==0&&s.writeDouble(2,g),g=i.getOZ(),g!==0&&s.writeDouble(3,g),g=i.getTheta(),g!==0&&s.writeDouble(4,g)},proto.viam.common.v1.Orientation.prototype.getOX=function(){return e.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.viam.common.v1.Orientation.prototype.setOX=function(i){return e.Message.setProto3FloatField(this,1,i)},proto.viam.common.v1.Orientation.prototype.getOY=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.viam.common.v1.Orientation.prototype.setOY=function(i){return e.Message.setProto3FloatField(this,2,i)},proto.viam.common.v1.Orientation.prototype.getOZ=function(){return e.Message.getFloatingPointFieldWithDefault(this,3,0)},proto.viam.common.v1.Orientation.prototype.setOZ=function(i){return e.Message.setProto3FloatField(this,3,i)},proto.viam.common.v1.Orientation.prototype.getTheta=function(){return e.Message.getFloatingPointFieldWithDefault(this,4,0)},proto.viam.common.v1.Orientation.prototype.setTheta=function(i){return e.Message.setProto3FloatField(this,4,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.PoseInFrame.prototype.toObject=function(i){return proto.viam.common.v1.PoseInFrame.toObject(i,this)},proto.viam.common.v1.PoseInFrame.toObject=function(i,s){var g,l={referenceFrame:e.Message.getFieldWithDefault(s,1,""),pose:(g=s.getPose())&&proto.viam.common.v1.Pose.toObject(i,g)};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.PoseInFrame.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.PoseInFrame;return proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readString();i.setReferenceFrame(l);break;case 2:var l=new proto.viam.common.v1.Pose;s.readMessage(l,proto.viam.common.v1.Pose.deserializeBinaryFromReader),i.setPose(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.PoseInFrame.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getReferenceFrame(),g.length>0&&s.writeString(1,g),g=i.getPose(),g!=null&&s.writeMessage(2,g,proto.viam.common.v1.Pose.serializeBinaryToWriter)},proto.viam.common.v1.PoseInFrame.prototype.getReferenceFrame=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.common.v1.PoseInFrame.prototype.setReferenceFrame=function(i){return e.Message.setProto3StringField(this,1,i)},proto.viam.common.v1.PoseInFrame.prototype.getPose=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.Pose,2)},proto.viam.common.v1.PoseInFrame.prototype.setPose=function(i){return e.Message.setWrapperField(this,2,i)},proto.viam.common.v1.PoseInFrame.prototype.clearPose=function(){return this.setPose(void 0)},proto.viam.common.v1.PoseInFrame.prototype.hasPose=function(){return e.Message.getField(this,2)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.Vector3.prototype.toObject=function(i){return proto.viam.common.v1.Vector3.toObject(i,this)},proto.viam.common.v1.Vector3.toObject=function(i,s){var g={x:e.Message.getFloatingPointFieldWithDefault(s,1,0),y:e.Message.getFloatingPointFieldWithDefault(s,2,0),z:e.Message.getFloatingPointFieldWithDefault(s,3,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.Vector3.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.Vector3;return proto.viam.common.v1.Vector3.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.Vector3.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readDouble();i.setX(l);break;case 2:var l=s.readDouble();i.setY(l);break;case 3:var l=s.readDouble();i.setZ(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.Vector3.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.Vector3.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.Vector3.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getX(),g!==0&&s.writeDouble(1,g),g=i.getY(),g!==0&&s.writeDouble(2,g),g=i.getZ(),g!==0&&s.writeDouble(3,g)},proto.viam.common.v1.Vector3.prototype.getX=function(){return e.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.viam.common.v1.Vector3.prototype.setX=function(i){return e.Message.setProto3FloatField(this,1,i)},proto.viam.common.v1.Vector3.prototype.getY=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.viam.common.v1.Vector3.prototype.setY=function(i){return e.Message.setProto3FloatField(this,2,i)},proto.viam.common.v1.Vector3.prototype.getZ=function(){return e.Message.getFloatingPointFieldWithDefault(this,3,0)},proto.viam.common.v1.Vector3.prototype.setZ=function(i){return e.Message.setProto3FloatField(this,3,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.Sphere.prototype.toObject=function(i){return proto.viam.common.v1.Sphere.toObject(i,this)},proto.viam.common.v1.Sphere.toObject=function(i,s){var g={radiusMm:e.Message.getFloatingPointFieldWithDefault(s,1,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.Sphere.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.Sphere;return proto.viam.common.v1.Sphere.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.Sphere.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readDouble();i.setRadiusMm(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.Sphere.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.Sphere.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.Sphere.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getRadiusMm(),g!==0&&s.writeDouble(1,g)},proto.viam.common.v1.Sphere.prototype.getRadiusMm=function(){return e.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.viam.common.v1.Sphere.prototype.setRadiusMm=function(i){return e.Message.setProto3FloatField(this,1,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.Capsule.prototype.toObject=function(i){return proto.viam.common.v1.Capsule.toObject(i,this)},proto.viam.common.v1.Capsule.toObject=function(i,s){var g={radiusMm:e.Message.getFloatingPointFieldWithDefault(s,1,0),lengthMm:e.Message.getFloatingPointFieldWithDefault(s,2,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.Capsule.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.Capsule;return proto.viam.common.v1.Capsule.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.Capsule.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readDouble();i.setRadiusMm(l);break;case 2:var l=s.readDouble();i.setLengthMm(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.Capsule.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.Capsule.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.Capsule.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getRadiusMm(),g!==0&&s.writeDouble(1,g),g=i.getLengthMm(),g!==0&&s.writeDouble(2,g)},proto.viam.common.v1.Capsule.prototype.getRadiusMm=function(){return e.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.viam.common.v1.Capsule.prototype.setRadiusMm=function(i){return e.Message.setProto3FloatField(this,1,i)},proto.viam.common.v1.Capsule.prototype.getLengthMm=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.viam.common.v1.Capsule.prototype.setLengthMm=function(i){return e.Message.setProto3FloatField(this,2,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.RectangularPrism.prototype.toObject=function(i){return proto.viam.common.v1.RectangularPrism.toObject(i,this)},proto.viam.common.v1.RectangularPrism.toObject=function(i,s){var g,l={dimsMm:(g=s.getDimsMm())&&proto.viam.common.v1.Vector3.toObject(i,g)};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.RectangularPrism.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.RectangularPrism;return proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=new proto.viam.common.v1.Vector3;s.readMessage(l,proto.viam.common.v1.Vector3.deserializeBinaryFromReader),i.setDimsMm(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.RectangularPrism.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getDimsMm(),g!=null&&s.writeMessage(1,g,proto.viam.common.v1.Vector3.serializeBinaryToWriter)},proto.viam.common.v1.RectangularPrism.prototype.getDimsMm=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.Vector3,1)},proto.viam.common.v1.RectangularPrism.prototype.setDimsMm=function(i){return e.Message.setWrapperField(this,1,i)},proto.viam.common.v1.RectangularPrism.prototype.clearDimsMm=function(){return this.setDimsMm(void 0)},proto.viam.common.v1.RectangularPrism.prototype.hasDimsMm=function(){return e.Message.getField(this,1)!=null},proto.viam.common.v1.Geometry.oneofGroups_=[[2,3,5]],proto.viam.common.v1.Geometry.GeometryTypeCase={GEOMETRY_TYPE_NOT_SET:0,SPHERE:2,BOX:3,CAPSULE:5},proto.viam.common.v1.Geometry.prototype.getGeometryTypeCase=function(){return e.Message.computeOneofCase(this,proto.viam.common.v1.Geometry.oneofGroups_[0])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.Geometry.prototype.toObject=function(i){return proto.viam.common.v1.Geometry.toObject(i,this)},proto.viam.common.v1.Geometry.toObject=function(i,s){var g,l={center:(g=s.getCenter())&&proto.viam.common.v1.Pose.toObject(i,g),sphere:(g=s.getSphere())&&proto.viam.common.v1.Sphere.toObject(i,g),box:(g=s.getBox())&&proto.viam.common.v1.RectangularPrism.toObject(i,g),capsule:(g=s.getCapsule())&&proto.viam.common.v1.Capsule.toObject(i,g),label:e.Message.getFieldWithDefault(s,4,"")};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.Geometry.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.Geometry;return proto.viam.common.v1.Geometry.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.Geometry.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=new proto.viam.common.v1.Pose;s.readMessage(l,proto.viam.common.v1.Pose.deserializeBinaryFromReader),i.setCenter(l);break;case 2:var l=new proto.viam.common.v1.Sphere;s.readMessage(l,proto.viam.common.v1.Sphere.deserializeBinaryFromReader),i.setSphere(l);break;case 3:var l=new proto.viam.common.v1.RectangularPrism;s.readMessage(l,proto.viam.common.v1.RectangularPrism.deserializeBinaryFromReader),i.setBox(l);break;case 5:var l=new proto.viam.common.v1.Capsule;s.readMessage(l,proto.viam.common.v1.Capsule.deserializeBinaryFromReader),i.setCapsule(l);break;case 4:var l=s.readString();i.setLabel(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.Geometry.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.Geometry.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.Geometry.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getCenter(),g!=null&&s.writeMessage(1,g,proto.viam.common.v1.Pose.serializeBinaryToWriter),g=i.getSphere(),g!=null&&s.writeMessage(2,g,proto.viam.common.v1.Sphere.serializeBinaryToWriter),g=i.getBox(),g!=null&&s.writeMessage(3,g,proto.viam.common.v1.RectangularPrism.serializeBinaryToWriter),g=i.getCapsule(),g!=null&&s.writeMessage(5,g,proto.viam.common.v1.Capsule.serializeBinaryToWriter),g=i.getLabel(),g.length>0&&s.writeString(4,g)},proto.viam.common.v1.Geometry.prototype.getCenter=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.Pose,1)},proto.viam.common.v1.Geometry.prototype.setCenter=function(i){return e.Message.setWrapperField(this,1,i)},proto.viam.common.v1.Geometry.prototype.clearCenter=function(){return this.setCenter(void 0)},proto.viam.common.v1.Geometry.prototype.hasCenter=function(){return e.Message.getField(this,1)!=null},proto.viam.common.v1.Geometry.prototype.getSphere=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.Sphere,2)},proto.viam.common.v1.Geometry.prototype.setSphere=function(i){return e.Message.setOneofWrapperField(this,2,proto.viam.common.v1.Geometry.oneofGroups_[0],i)},proto.viam.common.v1.Geometry.prototype.clearSphere=function(){return this.setSphere(void 0)},proto.viam.common.v1.Geometry.prototype.hasSphere=function(){return e.Message.getField(this,2)!=null},proto.viam.common.v1.Geometry.prototype.getBox=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.RectangularPrism,3)},proto.viam.common.v1.Geometry.prototype.setBox=function(i){return e.Message.setOneofWrapperField(this,3,proto.viam.common.v1.Geometry.oneofGroups_[0],i)},proto.viam.common.v1.Geometry.prototype.clearBox=function(){return this.setBox(void 0)},proto.viam.common.v1.Geometry.prototype.hasBox=function(){return e.Message.getField(this,3)!=null},proto.viam.common.v1.Geometry.prototype.getCapsule=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.Capsule,5)},proto.viam.common.v1.Geometry.prototype.setCapsule=function(i){return e.Message.setOneofWrapperField(this,5,proto.viam.common.v1.Geometry.oneofGroups_[0],i)},proto.viam.common.v1.Geometry.prototype.clearCapsule=function(){return this.setCapsule(void 0)},proto.viam.common.v1.Geometry.prototype.hasCapsule=function(){return e.Message.getField(this,5)!=null},proto.viam.common.v1.Geometry.prototype.getLabel=function(){return e.Message.getFieldWithDefault(this,4,"")},proto.viam.common.v1.Geometry.prototype.setLabel=function(i){return e.Message.setProto3StringField(this,4,i)},proto.viam.common.v1.GeometriesInFrame.repeatedFields_=[2],e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.GeometriesInFrame.prototype.toObject=function(i){return proto.viam.common.v1.GeometriesInFrame.toObject(i,this)},proto.viam.common.v1.GeometriesInFrame.toObject=function(i,s){var g={referenceFrame:e.Message.getFieldWithDefault(s,1,""),geometriesList:e.Message.toObjectList(s.getGeometriesList(),proto.viam.common.v1.Geometry.toObject,i)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.GeometriesInFrame.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.GeometriesInFrame;return proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readString();i.setReferenceFrame(l);break;case 2:var l=new proto.viam.common.v1.Geometry;s.readMessage(l,proto.viam.common.v1.Geometry.deserializeBinaryFromReader),i.addGeometries(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.GeometriesInFrame.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getReferenceFrame(),g.length>0&&s.writeString(1,g),g=i.getGeometriesList(),g.length>0&&s.writeRepeatedMessage(2,g,proto.viam.common.v1.Geometry.serializeBinaryToWriter)},proto.viam.common.v1.GeometriesInFrame.prototype.getReferenceFrame=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.common.v1.GeometriesInFrame.prototype.setReferenceFrame=function(i){return e.Message.setProto3StringField(this,1,i)},proto.viam.common.v1.GeometriesInFrame.prototype.getGeometriesList=function(){return e.Message.getRepeatedWrapperField(this,proto.viam.common.v1.Geometry,2)},proto.viam.common.v1.GeometriesInFrame.prototype.setGeometriesList=function(i){return e.Message.setRepeatedWrapperField(this,2,i)},proto.viam.common.v1.GeometriesInFrame.prototype.addGeometries=function(i,s){return e.Message.addToRepeatedWrapperField(this,2,i,proto.viam.common.v1.Geometry,s)},proto.viam.common.v1.GeometriesInFrame.prototype.clearGeometriesList=function(){return this.setGeometriesList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.PointCloudObject.prototype.toObject=function(i){return proto.viam.common.v1.PointCloudObject.toObject(i,this)},proto.viam.common.v1.PointCloudObject.toObject=function(i,s){var g,l={pointCloud:s.getPointCloud_asB64(),geometries:(g=s.getGeometries())&&proto.viam.common.v1.GeometriesInFrame.toObject(i,g)};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.PointCloudObject.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.PointCloudObject;return proto.viam.common.v1.PointCloudObject.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.PointCloudObject.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readBytes();i.setPointCloud(l);break;case 2:var l=new proto.viam.common.v1.GeometriesInFrame;s.readMessage(l,proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader),i.setGeometries(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.PointCloudObject.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.PointCloudObject.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.PointCloudObject.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getPointCloud_asU8(),g.length>0&&s.writeBytes(1,g),g=i.getGeometries(),g!=null&&s.writeMessage(2,g,proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter)},proto.viam.common.v1.PointCloudObject.prototype.getPointCloud=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.common.v1.PointCloudObject.prototype.getPointCloud_asB64=function(){return e.Message.bytesAsB64(this.getPointCloud())},proto.viam.common.v1.PointCloudObject.prototype.getPointCloud_asU8=function(){return e.Message.bytesAsU8(this.getPointCloud())},proto.viam.common.v1.PointCloudObject.prototype.setPointCloud=function(i){return e.Message.setProto3BytesField(this,1,i)},proto.viam.common.v1.PointCloudObject.prototype.getGeometries=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.GeometriesInFrame,2)},proto.viam.common.v1.PointCloudObject.prototype.setGeometries=function(i){return e.Message.setWrapperField(this,2,i)},proto.viam.common.v1.PointCloudObject.prototype.clearGeometries=function(){return this.setGeometries(void 0)},proto.viam.common.v1.PointCloudObject.prototype.hasGeometries=function(){return e.Message.getField(this,2)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.GeoPoint.prototype.toObject=function(i){return proto.viam.common.v1.GeoPoint.toObject(i,this)},proto.viam.common.v1.GeoPoint.toObject=function(i,s){var g={latitude:e.Message.getFloatingPointFieldWithDefault(s,1,0),longitude:e.Message.getFloatingPointFieldWithDefault(s,2,0)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.GeoPoint.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.GeoPoint;return proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readDouble();i.setLatitude(l);break;case 2:var l=s.readDouble();i.setLongitude(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.GeoPoint.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.GeoPoint.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.GeoPoint.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getLatitude(),g!==0&&s.writeDouble(1,g),g=i.getLongitude(),g!==0&&s.writeDouble(2,g)},proto.viam.common.v1.GeoPoint.prototype.getLatitude=function(){return e.Message.getFloatingPointFieldWithDefault(this,1,0)},proto.viam.common.v1.GeoPoint.prototype.setLatitude=function(i){return e.Message.setProto3FloatField(this,1,i)},proto.viam.common.v1.GeoPoint.prototype.getLongitude=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.viam.common.v1.GeoPoint.prototype.setLongitude=function(i){return e.Message.setProto3FloatField(this,2,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.Transform.prototype.toObject=function(i){return proto.viam.common.v1.Transform.toObject(i,this)},proto.viam.common.v1.Transform.toObject=function(i,s){var g,l={referenceFrame:e.Message.getFieldWithDefault(s,1,""),poseInObserverFrame:(g=s.getPoseInObserverFrame())&&proto.viam.common.v1.PoseInFrame.toObject(i,g),physicalObject:(g=s.getPhysicalObject())&&proto.viam.common.v1.Geometry.toObject(i,g)};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.Transform.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.Transform;return proto.viam.common.v1.Transform.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.Transform.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readString();i.setReferenceFrame(l);break;case 2:var l=new proto.viam.common.v1.PoseInFrame;s.readMessage(l,proto.viam.common.v1.PoseInFrame.deserializeBinaryFromReader),i.setPoseInObserverFrame(l);break;case 3:var l=new proto.viam.common.v1.Geometry;s.readMessage(l,proto.viam.common.v1.Geometry.deserializeBinaryFromReader),i.setPhysicalObject(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.Transform.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.Transform.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.Transform.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getReferenceFrame(),g.length>0&&s.writeString(1,g),g=i.getPoseInObserverFrame(),g!=null&&s.writeMessage(2,g,proto.viam.common.v1.PoseInFrame.serializeBinaryToWriter),g=i.getPhysicalObject(),g!=null&&s.writeMessage(3,g,proto.viam.common.v1.Geometry.serializeBinaryToWriter)},proto.viam.common.v1.Transform.prototype.getReferenceFrame=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.common.v1.Transform.prototype.setReferenceFrame=function(i){return e.Message.setProto3StringField(this,1,i)},proto.viam.common.v1.Transform.prototype.getPoseInObserverFrame=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.PoseInFrame,2)},proto.viam.common.v1.Transform.prototype.setPoseInObserverFrame=function(i){return e.Message.setWrapperField(this,2,i)},proto.viam.common.v1.Transform.prototype.clearPoseInObserverFrame=function(){return this.setPoseInObserverFrame(void 0)},proto.viam.common.v1.Transform.prototype.hasPoseInObserverFrame=function(){return e.Message.getField(this,2)!=null},proto.viam.common.v1.Transform.prototype.getPhysicalObject=function(){return e.Message.getWrapperField(this,proto.viam.common.v1.Geometry,3)},proto.viam.common.v1.Transform.prototype.setPhysicalObject=function(i){return e.Message.setWrapperField(this,3,i)},proto.viam.common.v1.Transform.prototype.clearPhysicalObject=function(){return this.setPhysicalObject(void 0)},proto.viam.common.v1.Transform.prototype.hasPhysicalObject=function(){return e.Message.getField(this,3)!=null},proto.viam.common.v1.WorldState.repeatedFields_=[1,3],e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.WorldState.prototype.toObject=function(i){return proto.viam.common.v1.WorldState.toObject(i,this)},proto.viam.common.v1.WorldState.toObject=function(i,s){var g={obstaclesList:e.Message.toObjectList(s.getObstaclesList(),proto.viam.common.v1.GeometriesInFrame.toObject,i),transformsList:e.Message.toObjectList(s.getTransformsList(),proto.viam.common.v1.Transform.toObject,i)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.WorldState.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.WorldState;return proto.viam.common.v1.WorldState.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.WorldState.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=new proto.viam.common.v1.GeometriesInFrame;s.readMessage(l,proto.viam.common.v1.GeometriesInFrame.deserializeBinaryFromReader),i.addObstacles(l);break;case 3:var l=new proto.viam.common.v1.Transform;s.readMessage(l,proto.viam.common.v1.Transform.deserializeBinaryFromReader),i.addTransforms(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.WorldState.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.WorldState.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.WorldState.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getObstaclesList(),g.length>0&&s.writeRepeatedMessage(1,g,proto.viam.common.v1.GeometriesInFrame.serializeBinaryToWriter),g=i.getTransformsList(),g.length>0&&s.writeRepeatedMessage(3,g,proto.viam.common.v1.Transform.serializeBinaryToWriter)},proto.viam.common.v1.WorldState.prototype.getObstaclesList=function(){return e.Message.getRepeatedWrapperField(this,proto.viam.common.v1.GeometriesInFrame,1)},proto.viam.common.v1.WorldState.prototype.setObstaclesList=function(i){return e.Message.setRepeatedWrapperField(this,1,i)},proto.viam.common.v1.WorldState.prototype.addObstacles=function(i,s){return e.Message.addToRepeatedWrapperField(this,1,i,proto.viam.common.v1.GeometriesInFrame,s)},proto.viam.common.v1.WorldState.prototype.clearObstaclesList=function(){return this.setObstaclesList([])},proto.viam.common.v1.WorldState.prototype.getTransformsList=function(){return e.Message.getRepeatedWrapperField(this,proto.viam.common.v1.Transform,3)},proto.viam.common.v1.WorldState.prototype.setTransformsList=function(i){return e.Message.setRepeatedWrapperField(this,3,i)},proto.viam.common.v1.WorldState.prototype.addTransforms=function(i,s){return e.Message.addToRepeatedWrapperField(this,3,i,proto.viam.common.v1.Transform,s)},proto.viam.common.v1.WorldState.prototype.clearTransformsList=function(){return this.setTransformsList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.ActuatorStatus.prototype.toObject=function(i){return proto.viam.common.v1.ActuatorStatus.toObject(i,this)},proto.viam.common.v1.ActuatorStatus.toObject=function(i,s){var g={isMoving:e.Message.getBooleanFieldWithDefault(s,1,!1)};return i&&(g.$jspbMessageInstance=s),g}),proto.viam.common.v1.ActuatorStatus.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.ActuatorStatus;return proto.viam.common.v1.ActuatorStatus.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.ActuatorStatus.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readBool();i.setIsMoving(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.ActuatorStatus.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.ActuatorStatus.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.ActuatorStatus.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getIsMoving(),g&&s.writeBool(1,g)},proto.viam.common.v1.ActuatorStatus.prototype.getIsMoving=function(){return e.Message.getBooleanFieldWithDefault(this,1,!1)},proto.viam.common.v1.ActuatorStatus.prototype.setIsMoving=function(i){return e.Message.setProto3BooleanField(this,1,i)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.DoCommandRequest.prototype.toObject=function(i){return proto.viam.common.v1.DoCommandRequest.toObject(i,this)},proto.viam.common.v1.DoCommandRequest.toObject=function(i,s){var g,l={name:e.Message.getFieldWithDefault(s,1,""),command:(g=s.getCommand())&&n.Struct.toObject(i,g)};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.DoCommandRequest.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.DoCommandRequest;return proto.viam.common.v1.DoCommandRequest.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.DoCommandRequest.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=s.readString();i.setName(l);break;case 2:var l=new n.Struct;s.readMessage(l,n.Struct.deserializeBinaryFromReader),i.setCommand(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.DoCommandRequest.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.DoCommandRequest.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.DoCommandRequest.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getName(),g.length>0&&s.writeString(1,g),g=i.getCommand(),g!=null&&s.writeMessage(2,g,n.Struct.serializeBinaryToWriter)},proto.viam.common.v1.DoCommandRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.common.v1.DoCommandRequest.prototype.setName=function(i){return e.Message.setProto3StringField(this,1,i)},proto.viam.common.v1.DoCommandRequest.prototype.getCommand=function(){return e.Message.getWrapperField(this,n.Struct,2)},proto.viam.common.v1.DoCommandRequest.prototype.setCommand=function(i){return e.Message.setWrapperField(this,2,i)},proto.viam.common.v1.DoCommandRequest.prototype.clearCommand=function(){return this.setCommand(void 0)},proto.viam.common.v1.DoCommandRequest.prototype.hasCommand=function(){return e.Message.getField(this,2)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.common.v1.DoCommandResponse.prototype.toObject=function(i){return proto.viam.common.v1.DoCommandResponse.toObject(i,this)},proto.viam.common.v1.DoCommandResponse.toObject=function(i,s){var g,l={result:(g=s.getResult())&&n.Struct.toObject(i,g)};return i&&(l.$jspbMessageInstance=s),l}),proto.viam.common.v1.DoCommandResponse.deserializeBinary=function(i){var s=new e.BinaryReader(i),g=new proto.viam.common.v1.DoCommandResponse;return proto.viam.common.v1.DoCommandResponse.deserializeBinaryFromReader(g,s)},proto.viam.common.v1.DoCommandResponse.deserializeBinaryFromReader=function(i,s){for(;s.nextField()&&!s.isEndGroup();){var g=s.getFieldNumber();switch(g){case 1:var l=new n.Struct;s.readMessage(l,n.Struct.deserializeBinaryFromReader),i.setResult(l);break;default:s.skipField();break}}return i},proto.viam.common.v1.DoCommandResponse.prototype.serializeBinary=function(){var i=new e.BinaryWriter;return proto.viam.common.v1.DoCommandResponse.serializeBinaryToWriter(this,i),i.getResultBuffer()},proto.viam.common.v1.DoCommandResponse.serializeBinaryToWriter=function(i,s){var g=void 0;g=i.getResult(),g!=null&&s.writeMessage(1,g,n.Struct.serializeBinaryToWriter)},proto.viam.common.v1.DoCommandResponse.prototype.getResult=function(){return e.Message.getWrapperField(this,n.Struct,1)},proto.viam.common.v1.DoCommandResponse.prototype.setResult=function(i){return e.Message.setWrapperField(this,1,i)},proto.viam.common.v1.DoCommandResponse.prototype.clearResult=function(){return this.setResult(void 0)},proto.viam.common.v1.DoCommandResponse.prototype.hasResult=function(){return e.Message.getField(this,1)!=null},proto.viam.common.v1.safetyHeartbeatMonitored=new e.ExtensionFieldInfo(84260,{safetyHeartbeatMonitored:0},null,null,0),t.MethodOptions.extensionsBinary[84260]=new e.ExtensionFieldBinaryInfo(proto.viam.common.v1.safetyHeartbeatMonitored,e.BinaryReader.prototype.readBool,e.BinaryWriter.prototype.writeBool,void 0,void 0,!1),t.MethodOptions.extensions[84260]=proto.viam.common.v1.safetyHeartbeatMonitored,r.object.extend(o,proto.viam.common.v1)}(common_pb$j);var annotations_pb$j={},http_pb$j={};(function(o){var e=googleProtobuf$m,r=e,p=function(){return this||window||p||self||Function("return this")()}.call(null);r.exportSymbol("proto.google.api.CustomHttpPattern",null,p),r.exportSymbol("proto.google.api.Http",null,p),r.exportSymbol("proto.google.api.HttpRule",null,p),r.exportSymbol("proto.google.api.HttpRule.PatternCase",null,p),proto.google.api.Http=function(t){e.Message.initialize(this,t,0,-1,proto.google.api.Http.repeatedFields_,null)},r.inherits(proto.google.api.Http,e.Message),r.DEBUG&&!COMPILED&&(proto.google.api.Http.displayName="proto.google.api.Http"),proto.google.api.HttpRule=function(t){e.Message.initialize(this,t,0,-1,proto.google.api.HttpRule.repeatedFields_,proto.google.api.HttpRule.oneofGroups_)},r.inherits(proto.google.api.HttpRule,e.Message),r.DEBUG&&!COMPILED&&(proto.google.api.HttpRule.displayName="proto.google.api.HttpRule"),proto.google.api.CustomHttpPattern=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.google.api.CustomHttpPattern,e.Message),r.DEBUG&&!COMPILED&&(proto.google.api.CustomHttpPattern.displayName="proto.google.api.CustomHttpPattern"),proto.google.api.Http.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.google.api.Http.prototype.toObject=function(t){return proto.google.api.Http.toObject(t,this)},proto.google.api.Http.toObject=function(t,n){var i={rulesList:e.Message.toObjectList(n.getRulesList(),proto.google.api.HttpRule.toObject,t),fullyDecodeReservedExpansion:e.Message.getBooleanFieldWithDefault(n,2,!1)};return t&&(i.$jspbMessageInstance=n),i}),proto.google.api.Http.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.api.Http;return proto.google.api.Http.deserializeBinaryFromReader(i,n)},proto.google.api.Http.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=new proto.google.api.HttpRule;n.readMessage(s,proto.google.api.HttpRule.deserializeBinaryFromReader),t.addRules(s);break;case 2:var s=n.readBool();t.setFullyDecodeReservedExpansion(s);break;default:n.skipField();break}}return t},proto.google.api.Http.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.api.Http.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.api.Http.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getRulesList(),i.length>0&&n.writeRepeatedMessage(1,i,proto.google.api.HttpRule.serializeBinaryToWriter),i=t.getFullyDecodeReservedExpansion(),i&&n.writeBool(2,i)},proto.google.api.Http.prototype.getRulesList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.api.HttpRule,1)},proto.google.api.Http.prototype.setRulesList=function(t){return e.Message.setRepeatedWrapperField(this,1,t)},proto.google.api.Http.prototype.addRules=function(t,n){return e.Message.addToRepeatedWrapperField(this,1,t,proto.google.api.HttpRule,n)},proto.google.api.Http.prototype.clearRulesList=function(){return this.setRulesList([])},proto.google.api.Http.prototype.getFullyDecodeReservedExpansion=function(){return e.Message.getBooleanFieldWithDefault(this,2,!1)},proto.google.api.Http.prototype.setFullyDecodeReservedExpansion=function(t){return e.Message.setProto3BooleanField(this,2,t)},proto.google.api.HttpRule.repeatedFields_=[11],proto.google.api.HttpRule.oneofGroups_=[[2,3,4,5,6,8]],proto.google.api.HttpRule.PatternCase={PATTERN_NOT_SET:0,GET:2,PUT:3,POST:4,DELETE:5,PATCH:6,CUSTOM:8},proto.google.api.HttpRule.prototype.getPatternCase=function(){return e.Message.computeOneofCase(this,proto.google.api.HttpRule.oneofGroups_[0])},e.Message.GENERATE_TO_OBJECT&&(proto.google.api.HttpRule.prototype.toObject=function(t){return proto.google.api.HttpRule.toObject(t,this)},proto.google.api.HttpRule.toObject=function(t,n){var i,s={selector:e.Message.getFieldWithDefault(n,1,""),get:e.Message.getFieldWithDefault(n,2,""),put:e.Message.getFieldWithDefault(n,3,""),post:e.Message.getFieldWithDefault(n,4,""),pb_delete:e.Message.getFieldWithDefault(n,5,""),patch:e.Message.getFieldWithDefault(n,6,""),custom:(i=n.getCustom())&&proto.google.api.CustomHttpPattern.toObject(t,i),body:e.Message.getFieldWithDefault(n,7,""),responseBody:e.Message.getFieldWithDefault(n,12,""),additionalBindingsList:e.Message.toObjectList(n.getAdditionalBindingsList(),proto.google.api.HttpRule.toObject,t)};return t&&(s.$jspbMessageInstance=n),s}),proto.google.api.HttpRule.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.api.HttpRule;return proto.google.api.HttpRule.deserializeBinaryFromReader(i,n)},proto.google.api.HttpRule.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setSelector(s);break;case 2:var s=n.readString();t.setGet(s);break;case 3:var s=n.readString();t.setPut(s);break;case 4:var s=n.readString();t.setPost(s);break;case 5:var s=n.readString();t.setDelete(s);break;case 6:var s=n.readString();t.setPatch(s);break;case 8:var s=new proto.google.api.CustomHttpPattern;n.readMessage(s,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader),t.setCustom(s);break;case 7:var s=n.readString();t.setBody(s);break;case 12:var s=n.readString();t.setResponseBody(s);break;case 11:var s=new proto.google.api.HttpRule;n.readMessage(s,proto.google.api.HttpRule.deserializeBinaryFromReader),t.addAdditionalBindings(s);break;default:n.skipField();break}}return t},proto.google.api.HttpRule.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.api.HttpRule.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.api.HttpRule.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getSelector(),i.length>0&&n.writeString(1,i),i=e.Message.getField(t,2),i!=null&&n.writeString(2,i),i=e.Message.getField(t,3),i!=null&&n.writeString(3,i),i=e.Message.getField(t,4),i!=null&&n.writeString(4,i),i=e.Message.getField(t,5),i!=null&&n.writeString(5,i),i=e.Message.getField(t,6),i!=null&&n.writeString(6,i),i=t.getCustom(),i!=null&&n.writeMessage(8,i,proto.google.api.CustomHttpPattern.serializeBinaryToWriter),i=t.getBody(),i.length>0&&n.writeString(7,i),i=t.getResponseBody(),i.length>0&&n.writeString(12,i),i=t.getAdditionalBindingsList(),i.length>0&&n.writeRepeatedMessage(11,i,proto.google.api.HttpRule.serializeBinaryToWriter)},proto.google.api.HttpRule.prototype.getSelector=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.api.HttpRule.prototype.setSelector=function(t){return e.Message.setProto3StringField(this,1,t)},proto.google.api.HttpRule.prototype.getGet=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.google.api.HttpRule.prototype.setGet=function(t){return e.Message.setOneofField(this,2,proto.google.api.HttpRule.oneofGroups_[0],t)},proto.google.api.HttpRule.prototype.clearGet=function(){return e.Message.setOneofField(this,2,proto.google.api.HttpRule.oneofGroups_[0],void 0)},proto.google.api.HttpRule.prototype.hasGet=function(){return e.Message.getField(this,2)!=null},proto.google.api.HttpRule.prototype.getPut=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.google.api.HttpRule.prototype.setPut=function(t){return e.Message.setOneofField(this,3,proto.google.api.HttpRule.oneofGroups_[0],t)},proto.google.api.HttpRule.prototype.clearPut=function(){return e.Message.setOneofField(this,3,proto.google.api.HttpRule.oneofGroups_[0],void 0)},proto.google.api.HttpRule.prototype.hasPut=function(){return e.Message.getField(this,3)!=null},proto.google.api.HttpRule.prototype.getPost=function(){return e.Message.getFieldWithDefault(this,4,"")},proto.google.api.HttpRule.prototype.setPost=function(t){return e.Message.setOneofField(this,4,proto.google.api.HttpRule.oneofGroups_[0],t)},proto.google.api.HttpRule.prototype.clearPost=function(){return e.Message.setOneofField(this,4,proto.google.api.HttpRule.oneofGroups_[0],void 0)},proto.google.api.HttpRule.prototype.hasPost=function(){return e.Message.getField(this,4)!=null},proto.google.api.HttpRule.prototype.getDelete=function(){return e.Message.getFieldWithDefault(this,5,"")},proto.google.api.HttpRule.prototype.setDelete=function(t){return e.Message.setOneofField(this,5,proto.google.api.HttpRule.oneofGroups_[0],t)},proto.google.api.HttpRule.prototype.clearDelete=function(){return e.Message.setOneofField(this,5,proto.google.api.HttpRule.oneofGroups_[0],void 0)},proto.google.api.HttpRule.prototype.hasDelete=function(){return e.Message.getField(this,5)!=null},proto.google.api.HttpRule.prototype.getPatch=function(){return e.Message.getFieldWithDefault(this,6,"")},proto.google.api.HttpRule.prototype.setPatch=function(t){return e.Message.setOneofField(this,6,proto.google.api.HttpRule.oneofGroups_[0],t)},proto.google.api.HttpRule.prototype.clearPatch=function(){return e.Message.setOneofField(this,6,proto.google.api.HttpRule.oneofGroups_[0],void 0)},proto.google.api.HttpRule.prototype.hasPatch=function(){return e.Message.getField(this,6)!=null},proto.google.api.HttpRule.prototype.getCustom=function(){return e.Message.getWrapperField(this,proto.google.api.CustomHttpPattern,8)},proto.google.api.HttpRule.prototype.setCustom=function(t){return e.Message.setOneofWrapperField(this,8,proto.google.api.HttpRule.oneofGroups_[0],t)},proto.google.api.HttpRule.prototype.clearCustom=function(){return this.setCustom(void 0)},proto.google.api.HttpRule.prototype.hasCustom=function(){return e.Message.getField(this,8)!=null},proto.google.api.HttpRule.prototype.getBody=function(){return e.Message.getFieldWithDefault(this,7,"")},proto.google.api.HttpRule.prototype.setBody=function(t){return e.Message.setProto3StringField(this,7,t)},proto.google.api.HttpRule.prototype.getResponseBody=function(){return e.Message.getFieldWithDefault(this,12,"")},proto.google.api.HttpRule.prototype.setResponseBody=function(t){return e.Message.setProto3StringField(this,12,t)},proto.google.api.HttpRule.prototype.getAdditionalBindingsList=function(){return e.Message.getRepeatedWrapperField(this,proto.google.api.HttpRule,11)},proto.google.api.HttpRule.prototype.setAdditionalBindingsList=function(t){return e.Message.setRepeatedWrapperField(this,11,t)},proto.google.api.HttpRule.prototype.addAdditionalBindings=function(t,n){return e.Message.addToRepeatedWrapperField(this,11,t,proto.google.api.HttpRule,n)},proto.google.api.HttpRule.prototype.clearAdditionalBindingsList=function(){return this.setAdditionalBindingsList([])},e.Message.GENERATE_TO_OBJECT&&(proto.google.api.CustomHttpPattern.prototype.toObject=function(t){return proto.google.api.CustomHttpPattern.toObject(t,this)},proto.google.api.CustomHttpPattern.toObject=function(t,n){var i={kind:e.Message.getFieldWithDefault(n,1,""),path:e.Message.getFieldWithDefault(n,2,"")};return t&&(i.$jspbMessageInstance=n),i}),proto.google.api.CustomHttpPattern.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.google.api.CustomHttpPattern;return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(i,n)},proto.google.api.CustomHttpPattern.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setKind(s);break;case 2:var s=n.readString();t.setPath(s);break;default:n.skipField();break}}return t},proto.google.api.CustomHttpPattern.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.google.api.CustomHttpPattern.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getKind(),i.length>0&&n.writeString(1,i),i=t.getPath(),i.length>0&&n.writeString(2,i)},proto.google.api.CustomHttpPattern.prototype.getKind=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.google.api.CustomHttpPattern.prototype.setKind=function(t){return e.Message.setProto3StringField(this,1,t)},proto.google.api.CustomHttpPattern.prototype.getPath=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.google.api.CustomHttpPattern.prototype.setPath=function(t){return e.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.google.api)})(http_pb$j),function(o){var e=googleProtobuf$m,r=e,p=function(){return this||window||p||self||Function("return this")()}.call(null),t=http_pb$j;r.object.extend(proto,t);var n=descriptor_pb$j;r.object.extend(proto,n),r.exportSymbol("proto.google.api.http",null,p),proto.google.api.http=new e.ExtensionFieldInfo(72295728,{http:0},t.HttpRule,t.HttpRule.toObject,0),n.MethodOptions.extensionsBinary[72295728]=new e.ExtensionFieldBinaryInfo(proto.google.api.http,e.BinaryReader.prototype.readMessage,e.BinaryWriter.prototype.writeMessage,t.HttpRule.serializeBinaryToWriter,t.HttpRule.deserializeBinaryFromReader,!1),n.MethodOptions.extensions[72295728]=proto.google.api.http,r.object.extend(o,proto.google.api)}(annotations_pb$j),function(o){var e=googleProtobuf$m,r=e,p=function(){return this||window||p||self||Function("return this")()}.call(null),t=common_pb$j;r.object.extend(proto,t);var n=annotations_pb$j;r.object.extend(proto,n);var i=struct_pb$k;r.object.extend(proto,i),r.exportSymbol("proto.viam.service.vision.v1.AddClassifierRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.AddClassifierResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.AddDetectorRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.AddDetectorResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.AddSegmenterRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.AddSegmenterResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.Classification",null,p),r.exportSymbol("proto.viam.service.vision.v1.Detection",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetClassificationsFromCameraRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetClassificationsFromCameraResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetClassificationsRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetClassificationsResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetClassifierNamesRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetClassifierNamesResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetDetectionsFromCameraRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetDetectionsFromCameraResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetDetectionsRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetDetectionsResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetDetectorNamesRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetDetectorNamesResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetModelParameterSchemaRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetModelParameterSchemaResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetObjectPointCloudsRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetObjectPointCloudsResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetSegmenterNamesRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.GetSegmenterNamesResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.RemoveClassifierRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.RemoveClassifierResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.RemoveDetectorRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.RemoveDetectorResponse",null,p),r.exportSymbol("proto.viam.service.vision.v1.RemoveSegmenterRequest",null,p),r.exportSymbol("proto.viam.service.vision.v1.RemoveSegmenterResponse",null,p),proto.viam.service.vision.v1.GetModelParameterSchemaRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetModelParameterSchemaRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetModelParameterSchemaRequest.displayName="proto.viam.service.vision.v1.GetModelParameterSchemaRequest"),proto.viam.service.vision.v1.GetModelParameterSchemaResponse=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetModelParameterSchemaResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetModelParameterSchemaResponse.displayName="proto.viam.service.vision.v1.GetModelParameterSchemaResponse"),proto.viam.service.vision.v1.GetDetectorNamesRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetDetectorNamesRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetDetectorNamesRequest.displayName="proto.viam.service.vision.v1.GetDetectorNamesRequest"),proto.viam.service.vision.v1.GetDetectorNamesResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetDetectorNamesResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetDetectorNamesResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetDetectorNamesResponse.displayName="proto.viam.service.vision.v1.GetDetectorNamesResponse"),proto.viam.service.vision.v1.AddDetectorRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.AddDetectorRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.AddDetectorRequest.displayName="proto.viam.service.vision.v1.AddDetectorRequest"),proto.viam.service.vision.v1.AddDetectorResponse=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.AddDetectorResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.AddDetectorResponse.displayName="proto.viam.service.vision.v1.AddDetectorResponse"),proto.viam.service.vision.v1.RemoveDetectorRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.RemoveDetectorRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.RemoveDetectorRequest.displayName="proto.viam.service.vision.v1.RemoveDetectorRequest"),proto.viam.service.vision.v1.RemoveDetectorResponse=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.RemoveDetectorResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.RemoveDetectorResponse.displayName="proto.viam.service.vision.v1.RemoveDetectorResponse"),proto.viam.service.vision.v1.GetDetectionsRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetDetectionsRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetDetectionsRequest.displayName="proto.viam.service.vision.v1.GetDetectionsRequest"),proto.viam.service.vision.v1.GetDetectionsResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetDetectionsResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetDetectionsResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetDetectionsResponse.displayName="proto.viam.service.vision.v1.GetDetectionsResponse"),proto.viam.service.vision.v1.GetDetectionsFromCameraRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetDetectionsFromCameraRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.displayName="proto.viam.service.vision.v1.GetDetectionsFromCameraRequest"),proto.viam.service.vision.v1.GetDetectionsFromCameraResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetDetectionsFromCameraResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.displayName="proto.viam.service.vision.v1.GetDetectionsFromCameraResponse"),proto.viam.service.vision.v1.Detection=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.Detection,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.Detection.displayName="proto.viam.service.vision.v1.Detection"),proto.viam.service.vision.v1.GetClassifierNamesRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetClassifierNamesRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetClassifierNamesRequest.displayName="proto.viam.service.vision.v1.GetClassifierNamesRequest"),proto.viam.service.vision.v1.GetClassifierNamesResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetClassifierNamesResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetClassifierNamesResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetClassifierNamesResponse.displayName="proto.viam.service.vision.v1.GetClassifierNamesResponse"),proto.viam.service.vision.v1.AddClassifierRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.AddClassifierRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.AddClassifierRequest.displayName="proto.viam.service.vision.v1.AddClassifierRequest"),proto.viam.service.vision.v1.AddClassifierResponse=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.AddClassifierResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.AddClassifierResponse.displayName="proto.viam.service.vision.v1.AddClassifierResponse"),proto.viam.service.vision.v1.RemoveClassifierRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.RemoveClassifierRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.RemoveClassifierRequest.displayName="proto.viam.service.vision.v1.RemoveClassifierRequest"),proto.viam.service.vision.v1.RemoveClassifierResponse=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.RemoveClassifierResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.RemoveClassifierResponse.displayName="proto.viam.service.vision.v1.RemoveClassifierResponse"),proto.viam.service.vision.v1.GetClassificationsRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetClassificationsRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetClassificationsRequest.displayName="proto.viam.service.vision.v1.GetClassificationsRequest"),proto.viam.service.vision.v1.GetClassificationsResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetClassificationsResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetClassificationsResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetClassificationsResponse.displayName="proto.viam.service.vision.v1.GetClassificationsResponse"),proto.viam.service.vision.v1.GetClassificationsFromCameraRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetClassificationsFromCameraRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.displayName="proto.viam.service.vision.v1.GetClassificationsFromCameraRequest"),proto.viam.service.vision.v1.GetClassificationsFromCameraResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetClassificationsFromCameraResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.displayName="proto.viam.service.vision.v1.GetClassificationsFromCameraResponse"),proto.viam.service.vision.v1.Classification=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.Classification,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.Classification.displayName="proto.viam.service.vision.v1.Classification"),proto.viam.service.vision.v1.GetSegmenterNamesRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetSegmenterNamesRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetSegmenterNamesRequest.displayName="proto.viam.service.vision.v1.GetSegmenterNamesRequest"),proto.viam.service.vision.v1.GetSegmenterNamesResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetSegmenterNamesResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetSegmenterNamesResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetSegmenterNamesResponse.displayName="proto.viam.service.vision.v1.GetSegmenterNamesResponse"),proto.viam.service.vision.v1.AddSegmenterRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.AddSegmenterRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.AddSegmenterRequest.displayName="proto.viam.service.vision.v1.AddSegmenterRequest"),proto.viam.service.vision.v1.AddSegmenterResponse=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.AddSegmenterResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.AddSegmenterResponse.displayName="proto.viam.service.vision.v1.AddSegmenterResponse"),proto.viam.service.vision.v1.RemoveSegmenterRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.RemoveSegmenterRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.RemoveSegmenterRequest.displayName="proto.viam.service.vision.v1.RemoveSegmenterRequest"),proto.viam.service.vision.v1.RemoveSegmenterResponse=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.RemoveSegmenterResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.RemoveSegmenterResponse.displayName="proto.viam.service.vision.v1.RemoveSegmenterResponse"),proto.viam.service.vision.v1.GetObjectPointCloudsRequest=function(s){e.Message.initialize(this,s,0,-1,null,null)},r.inherits(proto.viam.service.vision.v1.GetObjectPointCloudsRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetObjectPointCloudsRequest.displayName="proto.viam.service.vision.v1.GetObjectPointCloudsRequest"),proto.viam.service.vision.v1.GetObjectPointCloudsResponse=function(s){e.Message.initialize(this,s,0,-1,proto.viam.service.vision.v1.GetObjectPointCloudsResponse.repeatedFields_,null)},r.inherits(proto.viam.service.vision.v1.GetObjectPointCloudsResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.viam.service.vision.v1.GetObjectPointCloudsResponse.displayName="proto.viam.service.vision.v1.GetObjectPointCloudsResponse"),e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetModelParameterSchemaRequest.toObject(s,this)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),modelType:e.Message.getFieldWithDefault(g,2,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetModelParameterSchemaRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetModelParameterSchemaRequest;return proto.viam.service.vision.v1.GetModelParameterSchemaRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setModelType(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetModelParameterSchemaRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getModelType(),l.length>0&&g.writeString(2,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.getModelType=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.setModelType=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetModelParameterSchemaRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetModelParameterSchemaResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetModelParameterSchemaResponse.toObject(s,this)},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.toObject=function(s,g){var l={modelParameterSchema:g.getModelParameterSchema_asB64()};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.GetModelParameterSchemaResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetModelParameterSchemaResponse;return proto.viam.service.vision.v1.GetModelParameterSchemaResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readBytes();s.setModelParameterSchema(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetModelParameterSchemaResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getModelParameterSchema_asU8(),l.length>0&&g.writeBytes(1,l)},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.prototype.getModelParameterSchema=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.prototype.getModelParameterSchema_asB64=function(){return e.Message.bytesAsB64(this.getModelParameterSchema())},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.prototype.getModelParameterSchema_asU8=function(){return e.Message.bytesAsU8(this.getModelParameterSchema())},proto.viam.service.vision.v1.GetModelParameterSchemaResponse.prototype.setModelParameterSchema=function(s){return e.Message.setProto3BytesField(this,1,s)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetDetectorNamesRequest.toObject(s,this)},proto.viam.service.vision.v1.GetDetectorNamesRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetDetectorNamesRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetDetectorNamesRequest;return proto.viam.service.vision.v1.GetDetectorNamesRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetDetectorNamesRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetDetectorNamesRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetDetectorNamesRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetDetectorNamesRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetDetectorNamesResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetDetectorNamesResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetDetectorNamesResponse.toObject(s,this)},proto.viam.service.vision.v1.GetDetectorNamesResponse.toObject=function(s,g){var l,u={detectorNamesList:(l=e.Message.getRepeatedField(g,1))==null?void 0:l};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetDetectorNamesResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetDetectorNamesResponse;return proto.viam.service.vision.v1.GetDetectorNamesResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetDetectorNamesResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.addDetectorNames(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetDetectorNamesResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetDetectorNamesResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetDetectorNamesResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getDetectorNamesList(),l.length>0&&g.writeRepeatedString(1,l)},proto.viam.service.vision.v1.GetDetectorNamesResponse.prototype.getDetectorNamesList=function(){return e.Message.getRepeatedField(this,1)},proto.viam.service.vision.v1.GetDetectorNamesResponse.prototype.setDetectorNamesList=function(s){return e.Message.setField(this,1,s||[])},proto.viam.service.vision.v1.GetDetectorNamesResponse.prototype.addDetectorNames=function(s,g){return e.Message.addToRepeatedField(this,1,s,g)},proto.viam.service.vision.v1.GetDetectorNamesResponse.prototype.clearDetectorNamesList=function(){return this.setDetectorNamesList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.AddDetectorRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.AddDetectorRequest.toObject(s,this)},proto.viam.service.vision.v1.AddDetectorRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),detectorName:e.Message.getFieldWithDefault(g,2,""),detectorModelType:e.Message.getFieldWithDefault(g,3,""),detectorParameters:(l=g.getDetectorParameters())&&i.Struct.toObject(s,l),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.AddDetectorRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.AddDetectorRequest;return proto.viam.service.vision.v1.AddDetectorRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.AddDetectorRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setDetectorName(u);break;case 3:var u=g.readString();s.setDetectorModelType(u);break;case 4:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setDetectorParameters(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.AddDetectorRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.AddDetectorRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.AddDetectorRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getDetectorName(),l.length>0&&g.writeString(2,l),l=s.getDetectorModelType(),l.length>0&&g.writeString(3,l),l=s.getDetectorParameters(),l!=null&&g.writeMessage(4,l,i.Struct.serializeBinaryToWriter),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.AddDetectorRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.getDetectorName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.AddDetectorRequest.prototype.setDetectorName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.getDetectorModelType=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.viam.service.vision.v1.AddDetectorRequest.prototype.setDetectorModelType=function(s){return e.Message.setProto3StringField(this,3,s)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.getDetectorParameters=function(){return e.Message.getWrapperField(this,i.Struct,4)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.setDetectorParameters=function(s){return e.Message.setWrapperField(this,4,s)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.clearDetectorParameters=function(){return this.setDetectorParameters(void 0)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.hasDetectorParameters=function(){return e.Message.getField(this,4)!=null},proto.viam.service.vision.v1.AddDetectorRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.AddDetectorRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.AddDetectorResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.AddDetectorResponse.toObject(s,this)},proto.viam.service.vision.v1.AddDetectorResponse.toObject=function(s,g){var l={};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.AddDetectorResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.AddDetectorResponse;return proto.viam.service.vision.v1.AddDetectorResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.AddDetectorResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){default:g.skipField();break}}return s},proto.viam.service.vision.v1.AddDetectorResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.AddDetectorResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.AddDetectorResponse.serializeBinaryToWriter=function(s,g){},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.RemoveDetectorRequest.toObject(s,this)},proto.viam.service.vision.v1.RemoveDetectorRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),detectorName:e.Message.getFieldWithDefault(g,2,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.RemoveDetectorRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.RemoveDetectorRequest;return proto.viam.service.vision.v1.RemoveDetectorRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.RemoveDetectorRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setDetectorName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.RemoveDetectorRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.RemoveDetectorRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getDetectorName(),l.length>0&&g.writeString(2,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.getDetectorName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.setDetectorName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.RemoveDetectorRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.RemoveDetectorResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.RemoveDetectorResponse.toObject(s,this)},proto.viam.service.vision.v1.RemoveDetectorResponse.toObject=function(s,g){var l={};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.RemoveDetectorResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.RemoveDetectorResponse;return proto.viam.service.vision.v1.RemoveDetectorResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.RemoveDetectorResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){default:g.skipField();break}}return s},proto.viam.service.vision.v1.RemoveDetectorResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.RemoveDetectorResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.RemoveDetectorResponse.serializeBinaryToWriter=function(s,g){},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetDetectionsRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetDetectionsRequest.toObject(s,this)},proto.viam.service.vision.v1.GetDetectionsRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),image:g.getImage_asB64(),width:e.Message.getFieldWithDefault(g,3,0),height:e.Message.getFieldWithDefault(g,4,0),mimeType:e.Message.getFieldWithDefault(g,5,""),detectorName:e.Message.getFieldWithDefault(g,6,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetDetectionsRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetDetectionsRequest;return proto.viam.service.vision.v1.GetDetectionsRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetDetectionsRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readBytes();s.setImage(u);break;case 3:var u=g.readInt64();s.setWidth(u);break;case 4:var u=g.readInt64();s.setHeight(u);break;case 5:var u=g.readString();s.setMimeType(u);break;case 6:var u=g.readString();s.setDetectorName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetDetectionsRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetDetectionsRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getImage_asU8(),l.length>0&&g.writeBytes(2,l),l=s.getWidth(),l!==0&&g.writeInt64(3,l),l=s.getHeight(),l!==0&&g.writeInt64(4,l),l=s.getMimeType(),l.length>0&&g.writeString(5,l),l=s.getDetectorName(),l.length>0&&g.writeString(6,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getImage=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getImage_asB64=function(){return e.Message.bytesAsB64(this.getImage())},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getImage_asU8=function(){return e.Message.bytesAsU8(this.getImage())},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.setImage=function(s){return e.Message.setProto3BytesField(this,2,s)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getWidth=function(){return e.Message.getFieldWithDefault(this,3,0)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.setWidth=function(s){return e.Message.setProto3IntField(this,3,s)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getHeight=function(){return e.Message.getFieldWithDefault(this,4,0)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.setHeight=function(s){return e.Message.setProto3IntField(this,4,s)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getMimeType=function(){return e.Message.getFieldWithDefault(this,5,"")},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.setMimeType=function(s){return e.Message.setProto3StringField(this,5,s)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getDetectorName=function(){return e.Message.getFieldWithDefault(this,6,"")},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.setDetectorName=function(s){return e.Message.setProto3StringField(this,6,s)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetDetectionsRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetDetectionsResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetDetectionsResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetDetectionsResponse.toObject(s,this)},proto.viam.service.vision.v1.GetDetectionsResponse.toObject=function(s,g){var l={detectionsList:e.Message.toObjectList(g.getDetectionsList(),proto.viam.service.vision.v1.Detection.toObject,s)};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.GetDetectionsResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetDetectionsResponse;return proto.viam.service.vision.v1.GetDetectionsResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetDetectionsResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=new proto.viam.service.vision.v1.Detection;g.readMessage(u,proto.viam.service.vision.v1.Detection.deserializeBinaryFromReader),s.addDetections(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetDetectionsResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetDetectionsResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetDetectionsResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getDetectionsList(),l.length>0&&g.writeRepeatedMessage(1,l,proto.viam.service.vision.v1.Detection.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetDetectionsResponse.prototype.getDetectionsList=function(){return e.Message.getRepeatedWrapperField(this,proto.viam.service.vision.v1.Detection,1)},proto.viam.service.vision.v1.GetDetectionsResponse.prototype.setDetectionsList=function(s){return e.Message.setRepeatedWrapperField(this,1,s)},proto.viam.service.vision.v1.GetDetectionsResponse.prototype.addDetections=function(s,g){return e.Message.addToRepeatedWrapperField(this,1,s,proto.viam.service.vision.v1.Detection,g)},proto.viam.service.vision.v1.GetDetectionsResponse.prototype.clearDetectionsList=function(){return this.setDetectionsList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.toObject(s,this)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),cameraName:e.Message.getFieldWithDefault(g,2,""),detectorName:e.Message.getFieldWithDefault(g,3,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetDetectionsFromCameraRequest;return proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setCameraName(u);break;case 3:var u=g.readString();s.setDetectorName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getCameraName(),l.length>0&&g.writeString(2,l),l=s.getDetectorName(),l.length>0&&g.writeString(3,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.getCameraName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.setCameraName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.getDetectorName=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.setDetectorName=function(s){return e.Message.setProto3StringField(this,3,s)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetDetectionsFromCameraRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.toObject(s,this)},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.toObject=function(s,g){var l={detectionsList:e.Message.toObjectList(g.getDetectionsList(),proto.viam.service.vision.v1.Detection.toObject,s)};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetDetectionsFromCameraResponse;return proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=new proto.viam.service.vision.v1.Detection;g.readMessage(u,proto.viam.service.vision.v1.Detection.deserializeBinaryFromReader),s.addDetections(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getDetectionsList(),l.length>0&&g.writeRepeatedMessage(1,l,proto.viam.service.vision.v1.Detection.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.prototype.getDetectionsList=function(){return e.Message.getRepeatedWrapperField(this,proto.viam.service.vision.v1.Detection,1)},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.prototype.setDetectionsList=function(s){return e.Message.setRepeatedWrapperField(this,1,s)},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.prototype.addDetections=function(s,g){return e.Message.addToRepeatedWrapperField(this,1,s,proto.viam.service.vision.v1.Detection,g)},proto.viam.service.vision.v1.GetDetectionsFromCameraResponse.prototype.clearDetectionsList=function(){return this.setDetectionsList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.Detection.prototype.toObject=function(s){return proto.viam.service.vision.v1.Detection.toObject(s,this)},proto.viam.service.vision.v1.Detection.toObject=function(s,g){var l={xMin:e.Message.getFieldWithDefault(g,1,0),yMin:e.Message.getFieldWithDefault(g,2,0),xMax:e.Message.getFieldWithDefault(g,3,0),yMax:e.Message.getFieldWithDefault(g,4,0),confidence:e.Message.getFloatingPointFieldWithDefault(g,5,0),className:e.Message.getFieldWithDefault(g,6,"")};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.Detection.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.Detection;return proto.viam.service.vision.v1.Detection.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.Detection.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readInt64();s.setXMin(u);break;case 2:var u=g.readInt64();s.setYMin(u);break;case 3:var u=g.readInt64();s.setXMax(u);break;case 4:var u=g.readInt64();s.setYMax(u);break;case 5:var u=g.readDouble();s.setConfidence(u);break;case 6:var u=g.readString();s.setClassName(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.Detection.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.Detection.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.Detection.serializeBinaryToWriter=function(s,g){var l=void 0;l=e.Message.getField(s,1),l!=null&&g.writeInt64(1,l),l=e.Message.getField(s,2),l!=null&&g.writeInt64(2,l),l=e.Message.getField(s,3),l!=null&&g.writeInt64(3,l),l=e.Message.getField(s,4),l!=null&&g.writeInt64(4,l),l=s.getConfidence(),l!==0&&g.writeDouble(5,l),l=s.getClassName(),l.length>0&&g.writeString(6,l)},proto.viam.service.vision.v1.Detection.prototype.getXMin=function(){return e.Message.getFieldWithDefault(this,1,0)},proto.viam.service.vision.v1.Detection.prototype.setXMin=function(s){return e.Message.setField(this,1,s)},proto.viam.service.vision.v1.Detection.prototype.clearXMin=function(){return e.Message.setField(this,1,void 0)},proto.viam.service.vision.v1.Detection.prototype.hasXMin=function(){return e.Message.getField(this,1)!=null},proto.viam.service.vision.v1.Detection.prototype.getYMin=function(){return e.Message.getFieldWithDefault(this,2,0)},proto.viam.service.vision.v1.Detection.prototype.setYMin=function(s){return e.Message.setField(this,2,s)},proto.viam.service.vision.v1.Detection.prototype.clearYMin=function(){return e.Message.setField(this,2,void 0)},proto.viam.service.vision.v1.Detection.prototype.hasYMin=function(){return e.Message.getField(this,2)!=null},proto.viam.service.vision.v1.Detection.prototype.getXMax=function(){return e.Message.getFieldWithDefault(this,3,0)},proto.viam.service.vision.v1.Detection.prototype.setXMax=function(s){return e.Message.setField(this,3,s)},proto.viam.service.vision.v1.Detection.prototype.clearXMax=function(){return e.Message.setField(this,3,void 0)},proto.viam.service.vision.v1.Detection.prototype.hasXMax=function(){return e.Message.getField(this,3)!=null},proto.viam.service.vision.v1.Detection.prototype.getYMax=function(){return e.Message.getFieldWithDefault(this,4,0)},proto.viam.service.vision.v1.Detection.prototype.setYMax=function(s){return e.Message.setField(this,4,s)},proto.viam.service.vision.v1.Detection.prototype.clearYMax=function(){return e.Message.setField(this,4,void 0)},proto.viam.service.vision.v1.Detection.prototype.hasYMax=function(){return e.Message.getField(this,4)!=null},proto.viam.service.vision.v1.Detection.prototype.getConfidence=function(){return e.Message.getFloatingPointFieldWithDefault(this,5,0)},proto.viam.service.vision.v1.Detection.prototype.setConfidence=function(s){return e.Message.setProto3FloatField(this,5,s)},proto.viam.service.vision.v1.Detection.prototype.getClassName=function(){return e.Message.getFieldWithDefault(this,6,"")},proto.viam.service.vision.v1.Detection.prototype.setClassName=function(s){return e.Message.setProto3StringField(this,6,s)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetClassifierNamesRequest.toObject(s,this)},proto.viam.service.vision.v1.GetClassifierNamesRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetClassifierNamesRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetClassifierNamesRequest;return proto.viam.service.vision.v1.GetClassifierNamesRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetClassifierNamesRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetClassifierNamesRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetClassifierNamesRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetClassifierNamesRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetClassifierNamesResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetClassifierNamesResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetClassifierNamesResponse.toObject(s,this)},proto.viam.service.vision.v1.GetClassifierNamesResponse.toObject=function(s,g){var l,u={classifierNamesList:(l=e.Message.getRepeatedField(g,1))==null?void 0:l};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetClassifierNamesResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetClassifierNamesResponse;return proto.viam.service.vision.v1.GetClassifierNamesResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetClassifierNamesResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.addClassifierNames(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetClassifierNamesResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetClassifierNamesResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetClassifierNamesResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getClassifierNamesList(),l.length>0&&g.writeRepeatedString(1,l)},proto.viam.service.vision.v1.GetClassifierNamesResponse.prototype.getClassifierNamesList=function(){return e.Message.getRepeatedField(this,1)},proto.viam.service.vision.v1.GetClassifierNamesResponse.prototype.setClassifierNamesList=function(s){return e.Message.setField(this,1,s||[])},proto.viam.service.vision.v1.GetClassifierNamesResponse.prototype.addClassifierNames=function(s,g){return e.Message.addToRepeatedField(this,1,s,g)},proto.viam.service.vision.v1.GetClassifierNamesResponse.prototype.clearClassifierNamesList=function(){return this.setClassifierNamesList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.AddClassifierRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.AddClassifierRequest.toObject(s,this)},proto.viam.service.vision.v1.AddClassifierRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),classifierName:e.Message.getFieldWithDefault(g,2,""),classifierModelType:e.Message.getFieldWithDefault(g,3,""),classifierParameters:(l=g.getClassifierParameters())&&i.Struct.toObject(s,l),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.AddClassifierRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.AddClassifierRequest;return proto.viam.service.vision.v1.AddClassifierRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.AddClassifierRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setClassifierName(u);break;case 3:var u=g.readString();s.setClassifierModelType(u);break;case 4:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setClassifierParameters(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.AddClassifierRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.AddClassifierRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.AddClassifierRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getClassifierName(),l.length>0&&g.writeString(2,l),l=s.getClassifierModelType(),l.length>0&&g.writeString(3,l),l=s.getClassifierParameters(),l!=null&&g.writeMessage(4,l,i.Struct.serializeBinaryToWriter),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.AddClassifierRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.getClassifierName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.AddClassifierRequest.prototype.setClassifierName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.getClassifierModelType=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.viam.service.vision.v1.AddClassifierRequest.prototype.setClassifierModelType=function(s){return e.Message.setProto3StringField(this,3,s)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.getClassifierParameters=function(){return e.Message.getWrapperField(this,i.Struct,4)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.setClassifierParameters=function(s){return e.Message.setWrapperField(this,4,s)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.clearClassifierParameters=function(){return this.setClassifierParameters(void 0)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.hasClassifierParameters=function(){return e.Message.getField(this,4)!=null},proto.viam.service.vision.v1.AddClassifierRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.AddClassifierRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.AddClassifierResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.AddClassifierResponse.toObject(s,this)},proto.viam.service.vision.v1.AddClassifierResponse.toObject=function(s,g){var l={};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.AddClassifierResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.AddClassifierResponse;return proto.viam.service.vision.v1.AddClassifierResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.AddClassifierResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){default:g.skipField();break}}return s},proto.viam.service.vision.v1.AddClassifierResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.AddClassifierResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.AddClassifierResponse.serializeBinaryToWriter=function(s,g){},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.RemoveClassifierRequest.toObject(s,this)},proto.viam.service.vision.v1.RemoveClassifierRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),classifierName:e.Message.getFieldWithDefault(g,2,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.RemoveClassifierRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.RemoveClassifierRequest;return proto.viam.service.vision.v1.RemoveClassifierRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.RemoveClassifierRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setClassifierName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.RemoveClassifierRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.RemoveClassifierRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getClassifierName(),l.length>0&&g.writeString(2,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.getClassifierName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.setClassifierName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.RemoveClassifierRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.RemoveClassifierResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.RemoveClassifierResponse.toObject(s,this)},proto.viam.service.vision.v1.RemoveClassifierResponse.toObject=function(s,g){var l={};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.RemoveClassifierResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.RemoveClassifierResponse;return proto.viam.service.vision.v1.RemoveClassifierResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.RemoveClassifierResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){default:g.skipField();break}}return s},proto.viam.service.vision.v1.RemoveClassifierResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.RemoveClassifierResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.RemoveClassifierResponse.serializeBinaryToWriter=function(s,g){},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetClassificationsRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetClassificationsRequest.toObject(s,this)},proto.viam.service.vision.v1.GetClassificationsRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),image:g.getImage_asB64(),width:e.Message.getFieldWithDefault(g,3,0),height:e.Message.getFieldWithDefault(g,4,0),mimeType:e.Message.getFieldWithDefault(g,5,""),classifierName:e.Message.getFieldWithDefault(g,6,""),n:e.Message.getFieldWithDefault(g,7,0),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetClassificationsRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetClassificationsRequest;return proto.viam.service.vision.v1.GetClassificationsRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetClassificationsRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readBytes();s.setImage(u);break;case 3:var u=g.readInt32();s.setWidth(u);break;case 4:var u=g.readInt32();s.setHeight(u);break;case 5:var u=g.readString();s.setMimeType(u);break;case 6:var u=g.readString();s.setClassifierName(u);break;case 7:var u=g.readInt32();s.setN(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetClassificationsRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetClassificationsRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getImage_asU8(),l.length>0&&g.writeBytes(2,l),l=s.getWidth(),l!==0&&g.writeInt32(3,l),l=s.getHeight(),l!==0&&g.writeInt32(4,l),l=s.getMimeType(),l.length>0&&g.writeString(5,l),l=s.getClassifierName(),l.length>0&&g.writeString(6,l),l=s.getN(),l!==0&&g.writeInt32(7,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getImage=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getImage_asB64=function(){return e.Message.bytesAsB64(this.getImage())},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getImage_asU8=function(){return e.Message.bytesAsU8(this.getImage())},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setImage=function(s){return e.Message.setProto3BytesField(this,2,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getWidth=function(){return e.Message.getFieldWithDefault(this,3,0)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setWidth=function(s){return e.Message.setProto3IntField(this,3,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getHeight=function(){return e.Message.getFieldWithDefault(this,4,0)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setHeight=function(s){return e.Message.setProto3IntField(this,4,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getMimeType=function(){return e.Message.getFieldWithDefault(this,5,"")},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setMimeType=function(s){return e.Message.setProto3StringField(this,5,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getClassifierName=function(){return e.Message.getFieldWithDefault(this,6,"")},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setClassifierName=function(s){return e.Message.setProto3StringField(this,6,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getN=function(){return e.Message.getFieldWithDefault(this,7,0)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setN=function(s){return e.Message.setProto3IntField(this,7,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetClassificationsRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetClassificationsResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetClassificationsResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetClassificationsResponse.toObject(s,this)},proto.viam.service.vision.v1.GetClassificationsResponse.toObject=function(s,g){var l={classificationsList:e.Message.toObjectList(g.getClassificationsList(),proto.viam.service.vision.v1.Classification.toObject,s)};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.GetClassificationsResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetClassificationsResponse;return proto.viam.service.vision.v1.GetClassificationsResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetClassificationsResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=new proto.viam.service.vision.v1.Classification;g.readMessage(u,proto.viam.service.vision.v1.Classification.deserializeBinaryFromReader),s.addClassifications(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetClassificationsResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetClassificationsResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetClassificationsResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getClassificationsList(),l.length>0&&g.writeRepeatedMessage(1,l,proto.viam.service.vision.v1.Classification.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetClassificationsResponse.prototype.getClassificationsList=function(){return e.Message.getRepeatedWrapperField(this,proto.viam.service.vision.v1.Classification,1)},proto.viam.service.vision.v1.GetClassificationsResponse.prototype.setClassificationsList=function(s){return e.Message.setRepeatedWrapperField(this,1,s)},proto.viam.service.vision.v1.GetClassificationsResponse.prototype.addClassifications=function(s,g){return e.Message.addToRepeatedWrapperField(this,1,s,proto.viam.service.vision.v1.Classification,g)},proto.viam.service.vision.v1.GetClassificationsResponse.prototype.clearClassificationsList=function(){return this.setClassificationsList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.toObject(s,this)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),cameraName:e.Message.getFieldWithDefault(g,2,""),classifierName:e.Message.getFieldWithDefault(g,3,""),n:e.Message.getFieldWithDefault(g,4,0),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetClassificationsFromCameraRequest;return proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setCameraName(u);break;case 3:var u=g.readString();s.setClassifierName(u);break;case 4:var u=g.readInt32();s.setN(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getCameraName(),l.length>0&&g.writeString(2,l),l=s.getClassifierName(),l.length>0&&g.writeString(3,l),l=s.getN(),l!==0&&g.writeInt32(4,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.getCameraName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.setCameraName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.getClassifierName=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.setClassifierName=function(s){return e.Message.setProto3StringField(this,3,s)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.getN=function(){return e.Message.getFieldWithDefault(this,4,0)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.setN=function(s){return e.Message.setProto3IntField(this,4,s)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetClassificationsFromCameraRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.toObject(s,this)},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.toObject=function(s,g){var l={classificationsList:e.Message.toObjectList(g.getClassificationsList(),proto.viam.service.vision.v1.Classification.toObject,s)};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetClassificationsFromCameraResponse;return proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=new proto.viam.service.vision.v1.Classification;g.readMessage(u,proto.viam.service.vision.v1.Classification.deserializeBinaryFromReader),s.addClassifications(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getClassificationsList(),l.length>0&&g.writeRepeatedMessage(1,l,proto.viam.service.vision.v1.Classification.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.prototype.getClassificationsList=function(){return e.Message.getRepeatedWrapperField(this,proto.viam.service.vision.v1.Classification,1)},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.prototype.setClassificationsList=function(s){return e.Message.setRepeatedWrapperField(this,1,s)},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.prototype.addClassifications=function(s,g){return e.Message.addToRepeatedWrapperField(this,1,s,proto.viam.service.vision.v1.Classification,g)},proto.viam.service.vision.v1.GetClassificationsFromCameraResponse.prototype.clearClassificationsList=function(){return this.setClassificationsList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.Classification.prototype.toObject=function(s){return proto.viam.service.vision.v1.Classification.toObject(s,this)},proto.viam.service.vision.v1.Classification.toObject=function(s,g){var l={className:e.Message.getFieldWithDefault(g,1,""),confidence:e.Message.getFloatingPointFieldWithDefault(g,2,0)};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.Classification.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.Classification;return proto.viam.service.vision.v1.Classification.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.Classification.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setClassName(u);break;case 2:var u=g.readDouble();s.setConfidence(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.Classification.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.Classification.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.Classification.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getClassName(),l.length>0&&g.writeString(1,l),l=s.getConfidence(),l!==0&&g.writeDouble(2,l)},proto.viam.service.vision.v1.Classification.prototype.getClassName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.Classification.prototype.setClassName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.Classification.prototype.getConfidence=function(){return e.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.viam.service.vision.v1.Classification.prototype.setConfidence=function(s){return e.Message.setProto3FloatField(this,2,s)},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetSegmenterNamesRequest.toObject(s,this)},proto.viam.service.vision.v1.GetSegmenterNamesRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetSegmenterNamesRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetSegmenterNamesRequest;return proto.viam.service.vision.v1.GetSegmenterNamesRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetSegmenterNamesRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetSegmenterNamesRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetSegmenterNamesRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetSegmenterNamesRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetSegmenterNamesResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetSegmenterNamesResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetSegmenterNamesResponse.toObject(s,this)},proto.viam.service.vision.v1.GetSegmenterNamesResponse.toObject=function(s,g){var l,u={segmenterNamesList:(l=e.Message.getRepeatedField(g,1))==null?void 0:l};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetSegmenterNamesResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetSegmenterNamesResponse;return proto.viam.service.vision.v1.GetSegmenterNamesResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetSegmenterNamesResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.addSegmenterNames(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetSegmenterNamesResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetSegmenterNamesResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetSegmenterNamesResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getSegmenterNamesList(),l.length>0&&g.writeRepeatedString(1,l)},proto.viam.service.vision.v1.GetSegmenterNamesResponse.prototype.getSegmenterNamesList=function(){return e.Message.getRepeatedField(this,1)},proto.viam.service.vision.v1.GetSegmenterNamesResponse.prototype.setSegmenterNamesList=function(s){return e.Message.setField(this,1,s||[])},proto.viam.service.vision.v1.GetSegmenterNamesResponse.prototype.addSegmenterNames=function(s,g){return e.Message.addToRepeatedField(this,1,s,g)},proto.viam.service.vision.v1.GetSegmenterNamesResponse.prototype.clearSegmenterNamesList=function(){return this.setSegmenterNamesList([])},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.AddSegmenterRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.AddSegmenterRequest.toObject(s,this)},proto.viam.service.vision.v1.AddSegmenterRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),segmenterName:e.Message.getFieldWithDefault(g,2,""),segmenterModelType:e.Message.getFieldWithDefault(g,3,""),segmenterParameters:(l=g.getSegmenterParameters())&&i.Struct.toObject(s,l),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.AddSegmenterRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.AddSegmenterRequest;return proto.viam.service.vision.v1.AddSegmenterRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.AddSegmenterRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setSegmenterName(u);break;case 3:var u=g.readString();s.setSegmenterModelType(u);break;case 4:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setSegmenterParameters(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.AddSegmenterRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.AddSegmenterRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getSegmenterName(),l.length>0&&g.writeString(2,l),l=s.getSegmenterModelType(),l.length>0&&g.writeString(3,l),l=s.getSegmenterParameters(),l!=null&&g.writeMessage(4,l,i.Struct.serializeBinaryToWriter),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.getSegmenterName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.setSegmenterName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.getSegmenterModelType=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.setSegmenterModelType=function(s){return e.Message.setProto3StringField(this,3,s)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.getSegmenterParameters=function(){return e.Message.getWrapperField(this,i.Struct,4)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.setSegmenterParameters=function(s){return e.Message.setWrapperField(this,4,s)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.clearSegmenterParameters=function(){return this.setSegmenterParameters(void 0)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.hasSegmenterParameters=function(){return e.Message.getField(this,4)!=null},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.AddSegmenterRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.AddSegmenterResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.AddSegmenterResponse.toObject(s,this)},proto.viam.service.vision.v1.AddSegmenterResponse.toObject=function(s,g){var l={};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.AddSegmenterResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.AddSegmenterResponse;return proto.viam.service.vision.v1.AddSegmenterResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.AddSegmenterResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){default:g.skipField();break}}return s},proto.viam.service.vision.v1.AddSegmenterResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.AddSegmenterResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.AddSegmenterResponse.serializeBinaryToWriter=function(s,g){},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.RemoveSegmenterRequest.toObject(s,this)},proto.viam.service.vision.v1.RemoveSegmenterRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),segmenterName:e.Message.getFieldWithDefault(g,2,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.RemoveSegmenterRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.RemoveSegmenterRequest;return proto.viam.service.vision.v1.RemoveSegmenterRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.RemoveSegmenterRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setSegmenterName(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.RemoveSegmenterRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.RemoveSegmenterRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getSegmenterName(),l.length>0&&g.writeString(2,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.getSegmenterName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.setSegmenterName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.RemoveSegmenterRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.RemoveSegmenterResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.RemoveSegmenterResponse.toObject(s,this)},proto.viam.service.vision.v1.RemoveSegmenterResponse.toObject=function(s,g){var l={};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.RemoveSegmenterResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.RemoveSegmenterResponse;return proto.viam.service.vision.v1.RemoveSegmenterResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.RemoveSegmenterResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){default:g.skipField();break}}return s},proto.viam.service.vision.v1.RemoveSegmenterResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.RemoveSegmenterResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.RemoveSegmenterResponse.serializeBinaryToWriter=function(s,g){},e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetObjectPointCloudsRequest.toObject(s,this)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.toObject=function(s,g){var l,u={name:e.Message.getFieldWithDefault(g,1,""),cameraName:e.Message.getFieldWithDefault(g,2,""),segmenterName:e.Message.getFieldWithDefault(g,3,""),mimeType:e.Message.getFieldWithDefault(g,4,""),extra:(l=g.getExtra())&&i.Struct.toObject(s,l)};return s&&(u.$jspbMessageInstance=g),u}),proto.viam.service.vision.v1.GetObjectPointCloudsRequest.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetObjectPointCloudsRequest;return proto.viam.service.vision.v1.GetObjectPointCloudsRequest.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setName(u);break;case 2:var u=g.readString();s.setCameraName(u);break;case 3:var u=g.readString();s.setSegmenterName(u);break;case 4:var u=g.readString();s.setMimeType(u);break;case 99:var u=new i.Struct;g.readMessage(u,i.Struct.deserializeBinaryFromReader),s.setExtra(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetObjectPointCloudsRequest.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getName(),l.length>0&&g.writeString(1,l),l=s.getCameraName(),l.length>0&&g.writeString(2,l),l=s.getSegmenterName(),l.length>0&&g.writeString(3,l),l=s.getMimeType(),l.length>0&&g.writeString(4,l),l=s.getExtra(),l!=null&&g.writeMessage(99,l,i.Struct.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.setName=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.getCameraName=function(){return e.Message.getFieldWithDefault(this,2,"")},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.setCameraName=function(s){return e.Message.setProto3StringField(this,2,s)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.getSegmenterName=function(){return e.Message.getFieldWithDefault(this,3,"")},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.setSegmenterName=function(s){return e.Message.setProto3StringField(this,3,s)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.getMimeType=function(){return e.Message.getFieldWithDefault(this,4,"")},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.setMimeType=function(s){return e.Message.setProto3StringField(this,4,s)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.getExtra=function(){return e.Message.getWrapperField(this,i.Struct,99)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.setExtra=function(s){return e.Message.setWrapperField(this,99,s)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.clearExtra=function(){return this.setExtra(void 0)},proto.viam.service.vision.v1.GetObjectPointCloudsRequest.prototype.hasExtra=function(){return e.Message.getField(this,99)!=null},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.repeatedFields_=[2],e.Message.GENERATE_TO_OBJECT&&(proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.toObject=function(s){return proto.viam.service.vision.v1.GetObjectPointCloudsResponse.toObject(s,this)},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.toObject=function(s,g){var l={mimeType:e.Message.getFieldWithDefault(g,1,""),objectsList:e.Message.toObjectList(g.getObjectsList(),t.PointCloudObject.toObject,s)};return s&&(l.$jspbMessageInstance=g),l}),proto.viam.service.vision.v1.GetObjectPointCloudsResponse.deserializeBinary=function(s){var g=new e.BinaryReader(s),l=new proto.viam.service.vision.v1.GetObjectPointCloudsResponse;return proto.viam.service.vision.v1.GetObjectPointCloudsResponse.deserializeBinaryFromReader(l,g)},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.deserializeBinaryFromReader=function(s,g){for(;g.nextField()&&!g.isEndGroup();){var l=g.getFieldNumber();switch(l){case 1:var u=g.readString();s.setMimeType(u);break;case 2:var u=new t.PointCloudObject;g.readMessage(u,t.PointCloudObject.deserializeBinaryFromReader),s.addObjects(u);break;default:g.skipField();break}}return s},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.serializeBinary=function(){var s=new e.BinaryWriter;return proto.viam.service.vision.v1.GetObjectPointCloudsResponse.serializeBinaryToWriter(this,s),s.getResultBuffer()},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.serializeBinaryToWriter=function(s,g){var l=void 0;l=s.getMimeType(),l.length>0&&g.writeString(1,l),l=s.getObjectsList(),l.length>0&&g.writeRepeatedMessage(2,l,t.PointCloudObject.serializeBinaryToWriter)},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.getMimeType=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.setMimeType=function(s){return e.Message.setProto3StringField(this,1,s)},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.getObjectsList=function(){return e.Message.getRepeatedWrapperField(this,t.PointCloudObject,2)},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.setObjectsList=function(s){return e.Message.setRepeatedWrapperField(this,2,s)},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.addObjects=function(s,g){return e.Message.addToRepeatedWrapperField(this,2,s,proto.viam.common.v1.PointCloudObject,g)},proto.viam.service.vision.v1.GetObjectPointCloudsResponse.prototype.clearObjectsList=function(){return this.setObjectsList([])},r.object.extend(o,proto.viam.service.vision.v1)}(vision_pb$1);var grpcWebClient$3={};(function(o){(function(e,r){for(var p in r)e[p]=r[p];r.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})})(o,function(){var e={418:function(p,t){(function(n,i){for(var s in i)n[s]=i[s]})(t,function(n){var i={};function s(g){if(i[g])return i[g].exports;var l=i[g]={i:g,l:!1,exports:{}};return n[g].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=n,s.c=i,s.i=function(g){return g},s.d=function(g,l,u){s.o(g,l)||Object.defineProperty(g,l,{configurable:!1,enumerable:!0,get:u})},s.n=function(g){var l=g&&g.__esModule?function(){return g.default}:function(){return g};return s.d(l,"a",l),l},s.o=function(g,l){return Object.prototype.hasOwnProperty.call(g,l)},s.p="",s(s.s=1)}([function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var g=s(3),l=function(){function u(c,m){c===void 0&&(c={}),m===void 0&&(m={splitValues:!1});var h,y=this;this.headersMap={},c&&(typeof Headers<"u"&&c instanceof Headers?g.getHeaderKeys(c).forEach(function(f){g.getHeaderValues(c,f).forEach(function(d){m.splitValues?y.append(f,g.splitHeaderValue(d)):y.append(f,d)})}):typeof(h=c)=="object"&&typeof h.headersMap=="object"&&typeof h.forEach=="function"?c.forEach(function(f,d){y.append(f,d)}):typeof Map<"u"&&c instanceof Map?c.forEach(function(f,d){y.append(d,f)}):typeof c=="string"?this.appendFromString(c):typeof c=="object"&&Object.getOwnPropertyNames(c).forEach(function(f){var d=c[f];Array.isArray(d)?d.forEach(function(b){y.append(f,b)}):y.append(f,d)}))}return u.prototype.appendFromString=function(c){for(var m=c.split(`\r
153
153
  `),h=0;h<m.length;h++){var y=m[h],f=y.indexOf(":");if(f>0){var d=y.substring(0,f).trim(),b=y.substring(f+1).trim();this.append(d,b)}}},u.prototype.delete=function(c,m){var h=g.normalizeName(c);if(m===void 0)delete this.headersMap[h];else{var y=this.headersMap[h];if(y){var f=y.indexOf(m);f>=0&&y.splice(f,1),y.length===0&&delete this.headersMap[h]}}},u.prototype.append=function(c,m){var h=this,y=g.normalizeName(c);Array.isArray(this.headersMap[y])||(this.headersMap[y]=[]),Array.isArray(m)?m.forEach(function(f){h.headersMap[y].push(g.normalizeValue(f))}):this.headersMap[y].push(g.normalizeValue(m))},u.prototype.set=function(c,m){var h=g.normalizeName(c);if(Array.isArray(m)){var y=[];m.forEach(function(f){y.push(g.normalizeValue(f))}),this.headersMap[h]=y}else this.headersMap[h]=[g.normalizeValue(m)]},u.prototype.has=function(c,m){var h=this.headersMap[g.normalizeName(c)];if(!Array.isArray(h))return!1;if(m!==void 0){var y=g.normalizeValue(m);return h.indexOf(y)>=0}return!0},u.prototype.get=function(c){var m=this.headersMap[g.normalizeName(c)];return m!==void 0?m.concat():[]},u.prototype.forEach=function(c){var m=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(h){c(h,m.headersMap[h])},this)},u.prototype.toHeaders=function(){if(typeof Headers<"u"){var c=new Headers;return this.forEach(function(m,h){h.forEach(function(y){c.append(m,y)})}),c}throw new Error("Headers class is not defined")},u}();i.BrowserHeaders=l},function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var g=s(0);i.BrowserHeaders=g.BrowserHeaders},function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.iterateHeaders=function(g,l){for(var u=g[Symbol.iterator](),c=u.next();!c.done;)l(c.value[0]),c=u.next()},i.iterateHeadersKeys=function(g,l){for(var u=g.keys(),c=u.next();!c.done;)l(c.value),c=u.next()}},function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var g=s(2);i.normalizeName=function(l){if(typeof l!="string"&&(l=String(l)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(l))throw new TypeError("Invalid character in header field name");return l.toLowerCase()},i.normalizeValue=function(l){return typeof l!="string"&&(l=String(l)),l},i.getHeaderValues=function(l,u){var c=l;if(c instanceof Headers&&c.getAll)return c.getAll(u);var m=c.get(u);return m&&typeof m=="string"?[m]:m},i.getHeaderKeys=function(l){var u=l,c={},m=[];return u.keys?g.iterateHeadersKeys(u,function(h){c[h]||(c[h]=!0,m.push(h))}):u.forEach?u.forEach(function(h,y){c[y]||(c[y]=!0,m.push(y))}):g.iterateHeaders(u,function(h){var y=h[0];c[y]||(c[y]=!0,m.push(y))}),m},i.splitHeaderValue=function(l){var u=[];return l.split(", ").forEach(function(c){c.split(",").forEach(function(m){u.push(m)})}),u}}]))},617:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var i,s=n(65);function g(f){return(d=f)===9||d===10||d===13||f>=32&&f<=126;var d}function l(f){for(var d=0;d!==f.length;++d)if(!g(f[d]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(f))}function u(f){return(128&f.getUint8(0))==128}function c(f){return f.getUint32(1,!1)}function m(f,d,b){return f.byteLength-d>=b}function h(f,d,b){if(f.slice)return f.slice(d,b);var v=f.length;b!==void 0&&(v=b);for(var S=new Uint8Array(v-d),E=0,_=d;_<v;_++)S[E++]=f[_];return S}t.decodeASCII=l,t.encodeASCII=function(f){for(var d=new Uint8Array(f.length),b=0;b!==f.length;++b){var v=f.charCodeAt(b);if(!g(v))throw new Error("Metadata contains invalid ASCII");d[b]=v}return d},function(f){f[f.MESSAGE=1]="MESSAGE",f[f.TRAILERS=2]="TRAILERS"}(i=t.ChunkType||(t.ChunkType={}));var y=function(){function f(){this.buffer=null,this.position=0}return f.prototype.parse=function(d,b){if(d.length===0&&b)return[];var v,S=[];if(this.buffer==null)this.buffer=d,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=d,this.position=0;else{var E=this.buffer.byteLength-this.position,_=new Uint8Array(E+d.byteLength),D=h(this.buffer,this.position);_.set(D,0);var I=new Uint8Array(d);_.set(I,E),this.buffer=_,this.position=0}for(;;){if(!m(this.buffer,this.position,5))return S;var j=h(this.buffer,this.position,this.position+5),A=new DataView(j.buffer,j.byteOffset,j.byteLength),T=c(A);if(!m(this.buffer,this.position,5+T))return S;var P=h(this.buffer,this.position+5,this.position+5+T);if(this.position+=5+T,u(A))return S.push({chunkType:i.TRAILERS,trailers:(v=P,new s.Metadata(l(v)))}),S;S.push({chunkType:i.MESSAGE,data:P})}},f}();t.ChunkParser=y},8:function(p,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.httpStatusToCode=t.Code=void 0,function(i){i[i.OK=0]="OK",i[i.Canceled=1]="Canceled",i[i.Unknown=2]="Unknown",i[i.InvalidArgument=3]="InvalidArgument",i[i.DeadlineExceeded=4]="DeadlineExceeded",i[i.NotFound=5]="NotFound",i[i.AlreadyExists=6]="AlreadyExists",i[i.PermissionDenied=7]="PermissionDenied",i[i.ResourceExhausted=8]="ResourceExhausted",i[i.FailedPrecondition=9]="FailedPrecondition",i[i.Aborted=10]="Aborted",i[i.OutOfRange=11]="OutOfRange",i[i.Unimplemented=12]="Unimplemented",i[i.Internal=13]="Internal",i[i.Unavailable=14]="Unavailable",i[i.DataLoss=15]="DataLoss",i[i.Unauthenticated=16]="Unauthenticated"}(n=t.Code||(t.Code={})),t.httpStatusToCode=function(i){switch(i){case 0:return n.Internal;case 200:return n.OK;case 400:return n.InvalidArgument;case 401:return n.Unauthenticated;case 403:return n.PermissionDenied;case 404:return n.NotFound;case 409:return n.Aborted;case 412:return n.FailedPrecondition;case 429:return n.ResourceExhausted;case 499:return n.Canceled;case 500:return n.Unknown;case 501:return n.Unimplemented;case 503:return n.Unavailable;case 504:return n.DeadlineExceeded;default:return n.Unknown}}},934:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.client=void 0;var i=n(65),s=n(617),g=n(8),l=n(346),u=n(57),c=n(882);t.client=function(y,f){return new m(y,f)};var m=function(){function y(f,d){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new s.ChunkParser,this.methodDefinition=f,this.props=d,this.createTransport()}return y.prototype.createTransport=function(){var f=this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,d={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:f,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.props.transport?this.transport=this.props.transport(d):this.transport=u.makeDefaultTransport(d)},y.prototype.onTransportHeaders=function(f,d){if(this.props.debug&&l.debug("onHeaders",f,d),this.closed)this.props.debug&&l.debug("grpc.onHeaders received after request was closed - ignoring");else if(d!==0){this.responseHeaders=f,this.props.debug&&l.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var b=h(f);this.props.debug&&l.debug("onHeaders.gRPCStatus",b);var v=b&&b>=0?b:g.httpStatusToCode(d);this.props.debug&&l.debug("onHeaders.code",v);var S=f.get("grpc-message")||[];if(this.props.debug&&l.debug("onHeaders.gRPCMessage",S),this.rawOnHeaders(f),v!==g.Code.OK){var E=this.decodeGRPCStatus(S[0]);this.rawOnError(v,E,f)}}},y.prototype.onTransportChunk=function(f){var d=this;if(this.closed)this.props.debug&&l.debug("grpc.onChunk received after request was closed - ignoring");else{var b=[];try{b=this.parser.parse(f)}catch(v){return this.props.debug&&l.debug("onChunk.parsing error",v,v.message),void this.rawOnError(g.Code.Internal,"parsing error: "+v.message)}b.forEach(function(v){if(v.chunkType===s.ChunkType.MESSAGE){var S=d.methodDefinition.responseType.deserializeBinary(v.data);d.rawOnMessage(S)}else v.chunkType===s.ChunkType.TRAILERS&&(d.responseHeaders?(d.responseTrailers=new i.Metadata(v.trailers),d.props.debug&&l.debug("onChunk.trailers",d.responseTrailers)):(d.responseHeaders=new i.Metadata(v.trailers),d.rawOnHeaders(d.responseHeaders)))})}},y.prototype.onTransportEnd=function(){if(this.props.debug&&l.debug("grpc.onEnd"),this.closed)this.props.debug&&l.debug("grpc.onEnd received after request was closed - ignoring");else if(this.responseTrailers!==void 0){var f=h(this.responseTrailers);if(f!==null){var d=this.responseTrailers.get("grpc-message"),b=this.decodeGRPCStatus(d[0]);this.rawOnEnd(f,b,this.responseTrailers)}else this.rawOnError(g.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(this.responseHeaders===void 0)return void this.rawOnError(g.Code.Unknown,"Response closed without headers");var v=h(this.responseHeaders),S=this.responseHeaders.get("grpc-message");if(this.props.debug&&l.debug("grpc.headers only response ",v,S),v===null)return void this.rawOnEnd(g.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var E=this.decodeGRPCStatus(S[0]);this.rawOnEnd(v,E,this.responseHeaders)}},y.prototype.decodeGRPCStatus=function(f){if(!f)return"";try{return decodeURIComponent(f)}catch{return f}},y.prototype.rawOnEnd=function(f,d,b){var v=this;this.props.debug&&l.debug("rawOnEnd",f,d,b),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(S){if(!v.closed)try{S(f,d,b)}catch(E){setTimeout(function(){throw E},0)}}))},y.prototype.rawOnHeaders=function(f){this.props.debug&&l.debug("rawOnHeaders",f),this.completed||this.onHeadersCallbacks.forEach(function(d){try{d(f)}catch(b){setTimeout(function(){throw b},0)}})},y.prototype.rawOnError=function(f,d,b){var v=this;b===void 0&&(b=new i.Metadata),this.props.debug&&l.debug("rawOnError",f,d),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(S){if(!v.closed)try{S(f,d,b)}catch(E){setTimeout(function(){throw E},0)}}))},y.prototype.rawOnMessage=function(f){var d=this;this.props.debug&&l.debug("rawOnMessage",f.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(b){if(!d.closed)try{b(f)}catch(v){setTimeout(function(){throw v},0)}})},y.prototype.onHeaders=function(f){this.onHeadersCallbacks.push(f)},y.prototype.onMessage=function(f){this.onMessageCallbacks.push(f)},y.prototype.onEnd=function(f){this.onEndCallbacks.push(f)},y.prototype.start=function(f){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var d=new i.Metadata(f||{});d.set("content-type","application/grpc-web+proto"),d.set("x-grpc-web","1"),this.transport.start(d)},y.prototype.send=function(f){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 d=c.frameRequest(f);this.transport.sendMessage(d)},y.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()},y.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&&l.debug("request.abort aborting request"),this.transport.cancel()},y}();function h(y){var f=y.get("grpc-status")||[];if(f.length>0)try{var d=f[0];return parseInt(d,10)}catch{return null}return null}},346:function(p,t){Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];console.debug?console.debug.apply(null,n):console.log.apply(null,n)}},607:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.grpc=void 0;var i,s=n(418),g=n(57),l=n(229),u=n(540),c=n(210),m=n(859),h=n(8),y=n(938),f=n(35),d=n(934);(i=t.grpc||(t.grpc={})).setDefaultTransport=g.setDefaultTransportFactory,i.CrossBrowserHttpTransport=m.CrossBrowserHttpTransport,i.FetchReadableStreamTransport=l.FetchReadableStreamTransport,i.XhrTransport=c.XhrTransport,i.WebsocketTransport=u.WebsocketTransport,i.Code=h.Code,i.Metadata=s.BrowserHeaders,i.client=function(b,v){return d.client(b,v)},i.invoke=y.invoke,i.unary=f.unary},938:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.invoke=void 0;var i=n(934);t.invoke=function(s,g){if(s.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var l=i.client(s,{host:g.host,transport:g.transport,debug:g.debug});return g.onHeaders&&l.onHeaders(g.onHeaders),g.onMessage&&l.onMessage(g.onMessage),g.onEnd&&l.onEnd(g.onEnd),l.start(g.metadata),l.send(g.request),l.finishSend(),{close:function(){l.close()}}}},65:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var i=n(418);Object.defineProperty(t,"Metadata",{enumerable:!0,get:function(){return i.BrowserHeaders}})},57:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.makeDefaultTransport=t.setDefaultTransportFactory=void 0;var i=n(859),s=function(g){return i.CrossBrowserHttpTransport({withCredentials:!1})(g)};t.setDefaultTransportFactory=function(g){s=g},t.makeDefaultTransport=function(g){return s(g)}},229:function(p,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(u){for(var c,m=1,h=arguments.length;m<h;m++)for(var y in c=arguments[m])Object.prototype.hasOwnProperty.call(c,y)&&(u[y]=c[y]);return u}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.detectFetchSupport=t.FetchReadableStreamTransport=void 0;var s=n(65),g=n(346);t.FetchReadableStreamTransport=function(u){return function(c){return function(m,h){return m.debug&&g.debug("fetchRequest",m),new l(m,h)}(c,u)}};var l=function(){function u(c,m){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=c,this.init=m}return u.prototype.pump=function(c,m){var h=this;if(this.reader=c,this.cancelled)return this.options.debug&&g.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel().catch(function(y){h.options.debug&&g.debug("Fetch.pump.reader.cancel exception",y)});this.reader.read().then(function(y){if(y.done)return h.options.onEnd(),m;h.options.onChunk(y.value),h.pump(h.reader,m)}).catch(function(y){h.cancelled?h.options.debug&&g.debug("Fetch.catch - request cancelled"):(h.cancelled=!0,h.options.debug&&g.debug("Fetch.catch",y.message),h.options.onEnd(y))})},u.prototype.send=function(c){var m=this;fetch(this.options.url,i(i({},this.init),{headers:this.metadata.toHeaders(),method:"POST",body:c,signal:this.controller&&this.controller.signal})).then(function(h){if(m.options.debug&&g.debug("Fetch.response",h),m.options.onHeaders(new s.Metadata(h.headers),h.status),!h.body)return h;m.pump(h.body.getReader(),h)}).catch(function(h){m.cancelled?m.options.debug&&g.debug("Fetch.catch - request cancelled"):(m.cancelled=!0,m.options.debug&&g.debug("Fetch.catch",h.message),m.options.onEnd(h))})},u.prototype.sendMessage=function(c){this.send(c)},u.prototype.finishSend=function(){},u.prototype.start=function(c){this.metadata=c},u.prototype.cancel=function(){var c=this;this.cancelled?this.options.debug&&g.debug("Fetch.cancel already cancelled"):(this.cancelled=!0,this.controller?(this.options.debug&&g.debug("Fetch.cancel.controller.abort"),this.controller.abort()):this.options.debug&&g.debug("Fetch.cancel.missing abort controller"),this.reader?(this.options.debug&&g.debug("Fetch.cancel.reader.cancel"),this.reader.cancel().catch(function(m){c.options.debug&&g.debug("Fetch.cancel.reader.cancel exception",m)})):this.options.debug&&g.debug("Fetch.cancel before reader"))},u}();t.detectFetchSupport=function(){return typeof Response<"u"&&Response.prototype.hasOwnProperty("body")&&typeof Headers=="function"}},859:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CrossBrowserHttpTransport=void 0;var i=n(229),s=n(210);t.CrossBrowserHttpTransport=function(g){if(i.detectFetchSupport()){var l={credentials:g.withCredentials?"include":"same-origin"};return i.FetchReadableStreamTransport(l)}return s.XhrTransport({withCredentials:g.withCredentials})}},210:function(p,t,n){var i,s=this&&this.__extends||(i=function(f,d){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(b[S]=v[S])})(f,d)},function(f,d){function b(){this.constructor=f}i(f,d),f.prototype=d===null?Object.create(d):(b.prototype=d.prototype,new b)});Object.defineProperty(t,"__esModule",{value:!0}),t.stringToArrayBuffer=t.MozChunkedArrayBufferXHR=t.XHR=t.XhrTransport=void 0;var g=n(65),l=n(346),u=n(849);t.XhrTransport=function(f){return function(d){if(u.detectMozXHRSupport())return new m(d,f);if(u.detectXHROverrideMimeTypeSupport())return new c(d,f);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var c=function(){function f(d,b){this.options=d,this.init=b}return f.prototype.onProgressEvent=function(){this.options.debug&&l.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var d=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var b=y(d);this.options.onChunk(b)},f.prototype.onLoadEvent=function(){this.options.debug&&l.debug("XHR.onLoadEvent"),this.options.onEnd()},f.prototype.onStateChange=function(){this.options.debug&&l.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&this.options.onHeaders(new g.Metadata(this.xhr.getAllResponseHeaders()),this.xhr.status)},f.prototype.sendMessage=function(d){this.xhr.send(d)},f.prototype.finishSend=function(){},f.prototype.start=function(d){var b=this;this.metadata=d;var v=new XMLHttpRequest;this.xhr=v,v.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach(function(S,E){v.setRequestHeader(S,E.join(", "))}),v.withCredentials=Boolean(this.init.withCredentials),v.addEventListener("readystatechange",this.onStateChange.bind(this)),v.addEventListener("progress",this.onProgressEvent.bind(this)),v.addEventListener("loadend",this.onLoadEvent.bind(this)),v.addEventListener("error",function(S){b.options.debug&&l.debug("XHR.error",S),b.options.onEnd(S.error)})},f.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},f.prototype.cancel=function(){this.options.debug&&l.debug("XHR.abort"),this.xhr.abort()},f}();t.XHR=c;var m=function(f){function d(){return f!==null&&f.apply(this,arguments)||this}return s(d,f),d.prototype.configureXhr=function(){this.options.debug&&l.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},d.prototype.onProgressEvent=function(){var b=this.xhr.response;this.options.debug&&l.debug("MozXHR.onProgressEvent: ",new Uint8Array(b)),this.options.onChunk(new Uint8Array(b))},d}(c);function h(f,d){var b=f.charCodeAt(d);if(b>=55296&&b<=56319){var v=f.charCodeAt(d+1);v>=56320&&v<=57343&&(b=65536+(b-55296<<10)+(v-56320))}return b}function y(f){for(var d=new Uint8Array(f.length),b=0,v=0;v<f.length;v++){var S=String.prototype.codePointAt?f.codePointAt(v):h(f,v);d[b++]=255&S}return d}t.MozChunkedArrayBufferXHR=m,t.stringToArrayBuffer=y},849:function(p,t){var n;function i(){if(n!==void 0)return n;if(XMLHttpRequest){n=new XMLHttpRequest;try{n.open("GET","https://localhost")}catch{}}return n}function s(g){var l=i();if(!l)return!1;try{return l.responseType=g,l.responseType===g}catch{}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.detectXHROverrideMimeTypeSupport=t.detectMozXHRSupport=t.xhrSupportsResponseType=void 0,t.xhrSupportsResponseType=s,t.detectMozXHRSupport=function(){return typeof XMLHttpRequest<"u"&&s("moz-chunked-arraybuffer")},t.detectXHROverrideMimeTypeSupport=function(){return typeof XMLHttpRequest<"u"&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},540:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketTransport=void 0;var i,s=n(346),g=n(617);(function(u){u[u.FINISH_SEND=1]="FINISH_SEND"})(i||(i={}));var l=new Uint8Array([1]);t.WebsocketTransport=function(){return function(u){return function(c){c.debug&&s.debug("websocketRequest",c);var m,h=function(d){if(d.substr(0,8)==="https://")return"wss://"+d.substr(8);if(d.substr(0,7)==="http://")return"ws://"+d.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(c.url),y=[];function f(d){if(d===i.FINISH_SEND)m.send(l);else{var b=d,v=new Int8Array(b.byteLength+1);v.set(new Uint8Array([0])),v.set(b,1),m.send(v)}}return{sendMessage:function(d){m&&m.readyState!==m.CONNECTING?f(d):y.push(d)},finishSend:function(){m&&m.readyState!==m.CONNECTING?f(i.FINISH_SEND):y.push(i.FINISH_SEND)},start:function(d){(m=new WebSocket(h,["grpc-websockets"])).binaryType="arraybuffer",m.onopen=function(){var b;c.debug&&s.debug("websocketRequest.onopen"),m.send((b="",d.forEach(function(v,S){b+=v+": "+S.join(", ")+`\r
154
- `}),g.encodeASCII(b))),y.forEach(function(v){f(v)})},m.onclose=function(b){c.debug&&s.debug("websocketRequest.onclose",b),c.onEnd()},m.onerror=function(b){c.debug&&s.debug("websocketRequest.onerror",b)},m.onmessage=function(b){c.onChunk(new Uint8Array(b.data))}},cancel:function(){c.debug&&s.debug("websocket.abort"),m.close()}}}(u)}}},35:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.unary=void 0;var i=n(65),s=n(934);t.unary=function(g,l){if(g.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(g.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var u=null,c=null,m=s.client(g,{host:l.host,transport:l.transport,debug:l.debug});return m.onHeaders(function(h){u=h}),m.onMessage(function(h){c=h}),m.onEnd(function(h,y,f){l.onEnd({status:h,statusMessage:y,headers:u||new i.Metadata,message:c,trailers:f})}),m.start(l.metadata),m.send(l.request),m.finishSend(),{close:function(){m.close()}}}},882:function(p,t){Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=void 0,t.frameRequest=function(n){var i=n.serializeBinary(),s=new ArrayBuffer(i.byteLength+5);return new DataView(s,1,4).setUint32(0,i.length,!1),new Uint8Array(s,5).set(i),new Uint8Array(s)}}},r={};return function p(t){if(r[t])return r[t].exports;var n=r[t]={exports:{}};return e[t].call(n.exports,n,n.exports,p),n.exports}(607)}())})(grpcWebClient$3);var service_vision_v1_vision_pb=vision_pb$1,common_v1_common_pb$3=common_pb$j,grpc$3=grpcWebClient$3.grpc,VisionService=function(){function o(){}return o.serviceName="viam.service.vision.v1.VisionService",o}();VisionService.GetModelParameterSchema={methodName:"GetModelParameterSchema",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetModelParameterSchemaRequest,responseType:service_vision_v1_vision_pb.GetModelParameterSchemaResponse},VisionService.GetDetectorNames={methodName:"GetDetectorNames",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetDetectorNamesRequest,responseType:service_vision_v1_vision_pb.GetDetectorNamesResponse},VisionService.AddDetector={methodName:"AddDetector",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.AddDetectorRequest,responseType:service_vision_v1_vision_pb.AddDetectorResponse},VisionService.RemoveDetector={methodName:"RemoveDetector",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.RemoveDetectorRequest,responseType:service_vision_v1_vision_pb.RemoveDetectorResponse},VisionService.GetDetectionsFromCamera={methodName:"GetDetectionsFromCamera",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetDetectionsFromCameraRequest,responseType:service_vision_v1_vision_pb.GetDetectionsFromCameraResponse},VisionService.GetDetections={methodName:"GetDetections",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetDetectionsRequest,responseType:service_vision_v1_vision_pb.GetDetectionsResponse},VisionService.GetClassifierNames={methodName:"GetClassifierNames",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetClassifierNamesRequest,responseType:service_vision_v1_vision_pb.GetClassifierNamesResponse},VisionService.AddClassifier={methodName:"AddClassifier",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.AddClassifierRequest,responseType:service_vision_v1_vision_pb.AddClassifierResponse},VisionService.RemoveClassifier={methodName:"RemoveClassifier",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.RemoveClassifierRequest,responseType:service_vision_v1_vision_pb.RemoveClassifierResponse},VisionService.GetClassificationsFromCamera={methodName:"GetClassificationsFromCamera",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetClassificationsFromCameraRequest,responseType:service_vision_v1_vision_pb.GetClassificationsFromCameraResponse},VisionService.GetClassifications={methodName:"GetClassifications",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetClassificationsRequest,responseType:service_vision_v1_vision_pb.GetClassificationsResponse},VisionService.GetSegmenterNames={methodName:"GetSegmenterNames",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetSegmenterNamesRequest,responseType:service_vision_v1_vision_pb.GetSegmenterNamesResponse},VisionService.AddSegmenter={methodName:"AddSegmenter",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.AddSegmenterRequest,responseType:service_vision_v1_vision_pb.AddSegmenterResponse},VisionService.RemoveSegmenter={methodName:"RemoveSegmenter",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.RemoveSegmenterRequest,responseType:service_vision_v1_vision_pb.RemoveSegmenterResponse},VisionService.GetObjectPointClouds={methodName:"GetObjectPointClouds",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetObjectPointCloudsRequest,responseType:service_vision_v1_vision_pb.GetObjectPointCloudsResponse},VisionService.DoCommand={methodName:"DoCommand",service:VisionService,requestStream:!1,responseStream:!1,requestType:common_v1_common_pb$3.DoCommandRequest,responseType:common_v1_common_pb$3.DoCommandResponse};function VisionServiceClient(o,e){this.serviceHost=o,this.options=e||{}}VisionServiceClient.prototype.getModelParameterSchema=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetModelParameterSchema,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getDetectorNames=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetDetectorNames,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.addDetector=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.AddDetector,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.removeDetector=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.RemoveDetector,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getDetectionsFromCamera=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetDetectionsFromCamera,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getDetections=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetDetections,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getClassifierNames=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetClassifierNames,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.addClassifier=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.AddClassifier,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.removeClassifier=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.RemoveClassifier,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getClassificationsFromCamera=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetClassificationsFromCamera,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getClassifications=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetClassifications,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getSegmenterNames=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetSegmenterNames,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.addSegmenter=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.AddSegmenter,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.removeSegmenter=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.RemoveSegmenter,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getObjectPointClouds=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetObjectPointClouds,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.doCommand=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.DoCommand,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}};var VisionServiceClient_1=VisionServiceClient;class EventDispatcher{listeners={};on(e,r){const{listeners:p}=this;p[e]??=new Set,p[e]?.add(r)}once(e,r){const p=t=>{r(t),this.off(e,r)};this.on(e,p)}has(e,r){return this.listeners[e]?.has(r)}off(e,r){this.listeners[e]?.delete(r)}emit(e,r){for(const p of this.listeners[e]??[])p(r)}}const events=new EventDispatcher;class RobotClient{serviceHost;webrtcOptions;sessionOptions;sessionManager;peerConn;transportFactory;connecting;connectResolve;savedAuthEntity;savedCreds;robotServiceClient;armServiceClient;baseServiceClient;boardServiceClient;gantryServiceClient;genericServiceClient;gripperServiceClient;movementSensorServiceClient;inputControllerServiceClient;motorServiceClient;navigationServiceClient;motionServiceClient;visionServiceClient;sensorsServiceClient;servoServiceClient;slamServiceClient;constructor(e,r,p){this.serviceHost=e,this.webrtcOptions=r,this.sessionOptions=p,this.sessionManager=new SessionManager(e,t=>{if(!this.transportFactory)throw new Error(RobotClient.notConnectedYetStr);return this.transportFactory(t)})}get sessionId(){return this.sessionManager.sessionID}static notConnectedYetStr="not connected yet";get robotService(){if(!this.robotServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.robotServiceClient}get armService(){if(!this.armServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.armServiceClient}get baseService(){if(!this.baseServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.baseServiceClient}get boardService(){if(!this.boardServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.boardServiceClient}get gantryService(){if(!this.gantryServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.gantryServiceClient}get genericService(){if(!this.genericServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.genericServiceClient}get gripperService(){if(!this.gripperServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.gripperServiceClient}get movementSensorService(){if(!this.movementSensorServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.movementSensorServiceClient}get inputControllerService(){if(!this.inputControllerServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.inputControllerServiceClient}get motorService(){if(!this.motorServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.motorServiceClient}get navigationService(){if(!this.navigationServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.navigationServiceClient}get motionService(){if(!this.motionServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.motionServiceClient}get visionService(){if(!this.visionServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.visionServiceClient}get sensorsService(){if(!this.sensorsServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.sensorsServiceClient}get servoService(){if(!this.servoServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.servoServiceClient}get slamService(){if(!this.slamServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.slamServiceClient}createServiceClient(e){const r=this.sessionOptions?.disabled?this.transportFactory:this.sessionManager.transportFactory;if(!r)throw new Error(RobotClient.notConnectedYetStr);const p={transport:r};return new e(this.serviceHost,p)}async disconnect(){for(;this.connecting;)await this.connecting;this.peerConn&&(this.peerConn.close(),this.peerConn=void 0),this.sessionManager.reset()}async connect(e=this.savedAuthEntity,r=this.savedCreds){if(this.connecting){for(;this.connecting;)await this.connecting;return}this.connecting=new Promise(p=>{this.connectResolve=p}),this.peerConn&&(this.peerConn.close(),this.peerConn=void 0),this.sessionManager.reset();try{const p={authEntity:e,credentials:r,webrtcOptions:{disableTrickleICE:!1,rtcConfig:this.webrtcOptions?.rtcConfig}};if(this.savedAuthEntity=e,this.savedCreds=r,this.webrtcOptions?.enabled){p.webrtcOptions&&(p.webrtcOptions.signalingAuthEntity=p.authEntity,p.webrtcOptions.signalingCredentials=p.credentials);const i=await __webpack_exports__dialWebRTC(this.webrtcOptions.signalingAddress||this.serviceHost,this.webrtcOptions.host,p);this.peerConn=i.peerConnection,this.transportFactory=i.transportFactory,i.peerConnection.ontrack=s=>{events.emit("track",s);const{kind:g}=s.track,l=s.streams[0];if(!l)throw new Error("expected event stream to exist");const u=l.id,c=document.querySelectorAll(`[data-stream="${u}"]`);for(const h of c){const y=document.createElement(g);y.srcObject=l,y.autoplay=!0,y instanceof HTMLVideoElement?(y.playsInline=!0,y.controls=!1):y.controls=!0,h.querySelector(g)?.remove(),h.append(y)}const m=document.querySelectorAll(`[data-stream-preview="${u}"]`);for(const h of m){const y=document.createElement(g);y.srcObject=l,y.autoplay=!0,y instanceof HTMLVideoElement?(y.playsInline=!0,y.controls=!1):y.controls=!0,h.querySelector(g)?.remove(),h.append(y)}}}else this.transportFactory=await __webpack_exports__dialDirect(this.serviceHost,p);const n={transport:this.sessionOptions?.disabled?this.transportFactory:this.sessionManager.transportFactory};this.robotServiceClient=new RobotServiceClient_1(this.serviceHost,n),this.armServiceClient=new ArmServiceClient_1(this.serviceHost,n),this.baseServiceClient=new BaseServiceClient_1(this.serviceHost,n),this.boardServiceClient=new BoardServiceClient_1(this.serviceHost,n),this.gantryServiceClient=new GantryServiceClient_1(this.serviceHost,n),this.genericServiceClient=new GenericServiceClient_1(this.serviceHost,n),this.gripperServiceClient=new GripperServiceClient_1(this.serviceHost,n),this.movementSensorServiceClient=new MovementSensorServiceClient_1(this.serviceHost,n),this.inputControllerServiceClient=new InputControllerServiceClient_1(this.serviceHost,n),this.motorServiceClient=new MotorServiceClient_1(this.serviceHost,n),this.navigationServiceClient=new NavigationServiceClient_1(this.serviceHost,n),this.motionServiceClient=new MotionServiceClient_1(this.serviceHost,n),this.visionServiceClient=new VisionServiceClient_1(this.serviceHost,n),this.sensorsServiceClient=new SensorsServiceClient_1(this.serviceHost,n),this.servoServiceClient=new ServoServiceClient_1(this.serviceHost,n),this.slamServiceClient=new SLAMServiceClient_1(this.serviceHost,n)}finally{this.connectResolve?.(),this.connectResolve=void 0,this.connecting=void 0}}async getOperations(){const e=this.robotService,r=new robot_pb$1.GetOperationsRequest;return(await promisify(e.getOperations.bind(e),r)).getOperationsList()}async cancelOperation(e){const r=this.robotService,p=new robot_pb$1.CancelOperationRequest;p.setId(e),await promisify(r.cancelOperation.bind(r),p)}async blockForOperation(e){const r=this.robotService,p=new robot_pb$1.BlockForOperationRequest;p.setId(e),await promisify(r.blockForOperation.bind(r),p)}async stopAll(){const e=this.robotService,r=new robot_pb$1.StopAllRequest;await promisify(e.stopAll.bind(e),r)}async frameSystemConfig(e){const r=this.robotService,p=new robot_pb$1.FrameSystemConfigRequest;return p.setSupplementalTransformsList(e),(await promisify(r.frameSystemConfig.bind(r),p)).getFrameSystemConfigsList()}async transformPose(e,r,p){const t=this.robotService,n=new robot_pb$1.TransformPoseRequest;n.setSource(e),n.setDestination(r),n.setSupplementalTransformsList(p);const s=(await promisify(t.transformPose.bind(t),n)).getPose();if(!s)throw new Error("no pose");return s}async transformPCD(e,r,p){const t=this.robotService,n=new robot_pb$1.TransformPCDRequest;return n.setPointCloudPcd(e),n.setSource(r),n.setDestination(p),(await promisify(t.transformPCD.bind(t),n)).getPointCloudPcd_asU8()}async discoverComponents(e){const r=this.robotService,p=new robot_pb$1.DiscoverComponentsRequest;return p.setQueriesList(e),(await promisify(r.discoverComponents.bind(r),p)).getDiscoveryList()}async resourceNames(){const e=this.robotService,r=new robot_pb$1.ResourceNamesRequest;return(await promisify(e.resourceNames.bind(e),r)).getResourcesList().map(t=>t.toObject())}async resourceRPCSubtypes(){const e=this.robotService,r=new robot_pb$1.ResourceRPCSubtypesRequest;return(await promisify(e.resourceRPCSubtypes.bind(e),r)).getResourceRpcSubtypesList()}async getStatus(e){const r=this.robotService,p=new robot_pb$1.GetStatusRequest;return p.setResourceNamesList(e),(await promisify(r.getStatus.bind(r),p)).getStatusList()}async streamStatus(e,r){const p=this.robotService,t=new robot_pb$1.StreamStatusRequest;return t.setResourceNamesList(e),t.setEvery(r),(await promisify(p.streamStatus.bind(p),t)).getStatusList()}}const isLocalConnection=o=>o.includes(".local"),dialDirect=async o=>{if(console.debug("dialing via gRPC..."),!isLocalConnection(o.host))throw new Error(`cannot dial "${o.host}" directly, please use a local url instead.`);const e=new RobotClient(o.host);let r;return o.credential&&(r=o.credential),await e.connect(o.authEntity,r),console.debug("connected via gRPC"),e},dialWebRTC=async o=>{console.debug("dialing via WebRTC...");const e=o.host,r=o.signalingAddress,t={iceServers:o.iceServers??[]},n={enabled:!0,host:o.host,signalingAddress:r,rtcConfig:t},i=new RobotClient(e,n);let s;return o.credential&&(s=o.credential),await i.connect(e,s),console.debug("connected via WebRTC"),i},isDialWebRTCConf=o=>{const e=o;return typeof e.signalingAddress!="string"?!1:!e.iceServers||e.iceServers instanceof Array},createRobotClient=async o=>{let e;if(isDialWebRTCConf(o))try{e=await dialWebRTC(o)}catch{console.debug("failed to connect via WebRTC...")}if(!e)try{e=await dialDirect(o)}catch{console.debug("failed to connect via gRPC...")}if(!e)throw new Error("failed to connect to robot");return e};var commonjsGlobal$k=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},arm_pb={},googleProtobuf$l={};(function(exports){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,e,r){o instanceof String&&(o=String(o));for(var p=o.length,t=0;t<p;t++){var n=o[t];if(e.call(r,n,t,o))return{i:t,v:n}}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||typeof Object.defineProperties=="function"?Object.defineProperty:function(o,e,r){o!=Array.prototype&&o!=Object.prototype&&(o[e]=r.value)},$jscomp.getGlobal=function(o){return typeof window<"u"&&window===o?o:typeof commonjsGlobal$k<"u"&&commonjsGlobal$k!=null?commonjsGlobal$k:o},$jscomp.global=$jscomp.getGlobal(commonjsGlobal$k),$jscomp.polyfill=function(o,e,r,p){if(e){for(r=$jscomp.global,o=o.split("."),p=0;p<o.length-1;p++){var t=o[p];t in r||(r[t]={}),r=r[t]}o=o[o.length-1],p=r[o],e=e(p),e!=p&&e!=null&&$jscomp.defineProperty(r,o,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.findIndex",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).i}},"es6","es3"),$jscomp.checkStringArgs=function(o,e,r){if(o==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return o+""},$jscomp.polyfill("String.prototype.endsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"endsWith");e+="",r===void 0&&(r=p.length),r=Math.max(0,Math.min(r|0,p.length));for(var t=e.length;0<t&&0<r;)if(p[--r]!=e[--t])return!1;return 0>=t}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var t=p.length,n=e.length;r=Math.max(0,Math.min(r|0,p.length));for(var i=0;i<n&&r<t;)if(p[r++]!=e[i++])return!1;return i>=n}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(e){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var p="";e;)e&1&&(p+=r),(e>>>=1)&&(r+=r);return p}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=commonjsGlobal$k||self,goog.exportPath_=function(o,e,r){o=o.split("."),r=r||goog.global,o[0]in r||typeof r.execScript>"u"||r.execScript("var "+o[0]);for(var p;o.length&&(p=o.shift());)o.length||e===void 0?r=r[p]&&r[p]!==Object.prototype[p]?r[p]:r[p]={}:r[p]=e},goog.define=function(o,e){return e},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(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,e){goog.exportPath_(o,e)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(typeof o!="string"||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" 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=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){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 o=goog.global.$jscomp;return o?typeof o.getCurrentModulePath!="function"?!1:!!o.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var e=goog.global.$jscomp;if(!e||typeof e.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');e=e.require(e.getCurrentModulePath()),goog.loadedModules_[o]={exports:e,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,e){o=o.split("."),e=e||goog.global;for(var r=0;r<o.length;r++)if(e=e[o[r]],e==null)return null;return e},goog.globalize=function(o,e){e=e||goog.global;for(var r in o)e[r]=o[r]},goog.addDependency=function(o,e,r,p){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(o){goog.global.console&&goog.global.console.error(o)},goog.require=function(o){},goog.requireType=function(o){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(o){o.instance_=void 0,o.getInstance=function(){return o.instance_?o.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=o),o.instance_=new o)}},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(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(o){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(o){return"(function(){"+o+`
154
+ `}),g.encodeASCII(b))),y.forEach(function(v){f(v)})},m.onclose=function(b){c.debug&&s.debug("websocketRequest.onclose",b),c.onEnd()},m.onerror=function(b){c.debug&&s.debug("websocketRequest.onerror",b)},m.onmessage=function(b){c.onChunk(new Uint8Array(b.data))}},cancel:function(){c.debug&&s.debug("websocket.abort"),m.close()}}}(u)}}},35:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.unary=void 0;var i=n(65),s=n(934);t.unary=function(g,l){if(g.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(g.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var u=null,c=null,m=s.client(g,{host:l.host,transport:l.transport,debug:l.debug});return m.onHeaders(function(h){u=h}),m.onMessage(function(h){c=h}),m.onEnd(function(h,y,f){l.onEnd({status:h,statusMessage:y,headers:u||new i.Metadata,message:c,trailers:f})}),m.start(l.metadata),m.send(l.request),m.finishSend(),{close:function(){m.close()}}}},882:function(p,t){Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=void 0,t.frameRequest=function(n){var i=n.serializeBinary(),s=new ArrayBuffer(i.byteLength+5);return new DataView(s,1,4).setUint32(0,i.length,!1),new Uint8Array(s,5).set(i),new Uint8Array(s)}}},r={};return function p(t){if(r[t])return r[t].exports;var n=r[t]={exports:{}};return e[t].call(n.exports,n,n.exports,p),n.exports}(607)}())})(grpcWebClient$3);var service_vision_v1_vision_pb=vision_pb$1,common_v1_common_pb$3=common_pb$j,grpc$3=grpcWebClient$3.grpc,VisionService=function(){function o(){}return o.serviceName="viam.service.vision.v1.VisionService",o}();VisionService.GetModelParameterSchema={methodName:"GetModelParameterSchema",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetModelParameterSchemaRequest,responseType:service_vision_v1_vision_pb.GetModelParameterSchemaResponse},VisionService.GetDetectorNames={methodName:"GetDetectorNames",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetDetectorNamesRequest,responseType:service_vision_v1_vision_pb.GetDetectorNamesResponse},VisionService.AddDetector={methodName:"AddDetector",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.AddDetectorRequest,responseType:service_vision_v1_vision_pb.AddDetectorResponse},VisionService.RemoveDetector={methodName:"RemoveDetector",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.RemoveDetectorRequest,responseType:service_vision_v1_vision_pb.RemoveDetectorResponse},VisionService.GetDetectionsFromCamera={methodName:"GetDetectionsFromCamera",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetDetectionsFromCameraRequest,responseType:service_vision_v1_vision_pb.GetDetectionsFromCameraResponse},VisionService.GetDetections={methodName:"GetDetections",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetDetectionsRequest,responseType:service_vision_v1_vision_pb.GetDetectionsResponse},VisionService.GetClassifierNames={methodName:"GetClassifierNames",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetClassifierNamesRequest,responseType:service_vision_v1_vision_pb.GetClassifierNamesResponse},VisionService.AddClassifier={methodName:"AddClassifier",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.AddClassifierRequest,responseType:service_vision_v1_vision_pb.AddClassifierResponse},VisionService.RemoveClassifier={methodName:"RemoveClassifier",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.RemoveClassifierRequest,responseType:service_vision_v1_vision_pb.RemoveClassifierResponse},VisionService.GetClassificationsFromCamera={methodName:"GetClassificationsFromCamera",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetClassificationsFromCameraRequest,responseType:service_vision_v1_vision_pb.GetClassificationsFromCameraResponse},VisionService.GetClassifications={methodName:"GetClassifications",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetClassificationsRequest,responseType:service_vision_v1_vision_pb.GetClassificationsResponse},VisionService.GetSegmenterNames={methodName:"GetSegmenterNames",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetSegmenterNamesRequest,responseType:service_vision_v1_vision_pb.GetSegmenterNamesResponse},VisionService.AddSegmenter={methodName:"AddSegmenter",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.AddSegmenterRequest,responseType:service_vision_v1_vision_pb.AddSegmenterResponse},VisionService.RemoveSegmenter={methodName:"RemoveSegmenter",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.RemoveSegmenterRequest,responseType:service_vision_v1_vision_pb.RemoveSegmenterResponse},VisionService.GetObjectPointClouds={methodName:"GetObjectPointClouds",service:VisionService,requestStream:!1,responseStream:!1,requestType:service_vision_v1_vision_pb.GetObjectPointCloudsRequest,responseType:service_vision_v1_vision_pb.GetObjectPointCloudsResponse},VisionService.DoCommand={methodName:"DoCommand",service:VisionService,requestStream:!1,responseStream:!1,requestType:common_v1_common_pb$3.DoCommandRequest,responseType:common_v1_common_pb$3.DoCommandResponse};function VisionServiceClient(o,e){this.serviceHost=o,this.options=e||{}}VisionServiceClient.prototype.getModelParameterSchema=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetModelParameterSchema,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getDetectorNames=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetDetectorNames,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.addDetector=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.AddDetector,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.removeDetector=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.RemoveDetector,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getDetectionsFromCamera=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetDetectionsFromCamera,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getDetections=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetDetections,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getClassifierNames=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetClassifierNames,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.addClassifier=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.AddClassifier,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.removeClassifier=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.RemoveClassifier,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getClassificationsFromCamera=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetClassificationsFromCamera,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getClassifications=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetClassifications,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getSegmenterNames=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetSegmenterNames,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.addSegmenter=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.AddSegmenter,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.removeSegmenter=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.RemoveSegmenter,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.getObjectPointClouds=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.GetObjectPointClouds,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},VisionServiceClient.prototype.doCommand=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc$3.unary(VisionService.DoCommand,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc$3.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}};var VisionServiceClient_1=VisionServiceClient;class EventDispatcher{listeners={};on(e,r){const{listeners:p}=this;p[e]??=new Set,p[e]?.add(r)}once(e,r){const p=t=>{r(t),this.off(e,r)};this.on(e,p)}has(e,r){return this.listeners[e]?.has(r)}off(e,r){this.listeners[e]?.delete(r)}emit(e,r){for(const p of this.listeners[e]??[])p(r)}}const events=new EventDispatcher;class RobotClient{serviceHost;webrtcOptions;sessionOptions;sessionManager;peerConn;transportFactory;connecting;connectResolve;savedAuthEntity;savedCreds;robotServiceClient;armServiceClient;baseServiceClient;boardServiceClient;gantryServiceClient;genericServiceClient;gripperServiceClient;movementSensorServiceClient;inputControllerServiceClient;motorServiceClient;navigationServiceClient;motionServiceClient;visionServiceClient;sensorsServiceClient;servoServiceClient;slamServiceClient;constructor(e,r,p){this.serviceHost=e,this.webrtcOptions=r,this.sessionOptions=p,this.sessionManager=new SessionManager(e,t=>{if(!this.transportFactory)throw new Error(RobotClient.notConnectedYetStr);return this.transportFactory(t)})}get sessionId(){return this.sessionManager.sessionID}static notConnectedYetStr="not connected yet";get robotService(){if(!this.robotServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.robotServiceClient}get armService(){if(!this.armServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.armServiceClient}get baseService(){if(!this.baseServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.baseServiceClient}get boardService(){if(!this.boardServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.boardServiceClient}get gantryService(){if(!this.gantryServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.gantryServiceClient}get genericService(){if(!this.genericServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.genericServiceClient}get gripperService(){if(!this.gripperServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.gripperServiceClient}get movementSensorService(){if(!this.movementSensorServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.movementSensorServiceClient}get inputControllerService(){if(!this.inputControllerServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.inputControllerServiceClient}get motorService(){if(!this.motorServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.motorServiceClient}get navigationService(){if(!this.navigationServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.navigationServiceClient}get motionService(){if(!this.motionServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.motionServiceClient}get visionService(){if(!this.visionServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.visionServiceClient}get sensorsService(){if(!this.sensorsServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.sensorsServiceClient}get servoService(){if(!this.servoServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.servoServiceClient}get slamService(){if(!this.slamServiceClient)throw new Error(RobotClient.notConnectedYetStr);return this.slamServiceClient}createServiceClient(e){const r=this.sessionOptions?.disabled?this.transportFactory:this.sessionManager.transportFactory;if(!r)throw new Error(RobotClient.notConnectedYetStr);const p={transport:r};return new e(this.serviceHost,p)}async disconnect(){for(;this.connecting;)await this.connecting;this.peerConn&&(this.peerConn.close(),this.peerConn=void 0),this.sessionManager.reset()}async connect(e=this.savedAuthEntity,r=this.savedCreds){if(this.connecting){for(;this.connecting;)await this.connecting;return}this.connecting=new Promise(p=>{this.connectResolve=p}),this.peerConn&&(this.peerConn.close(),this.peerConn=void 0),this.sessionManager.reset();try{const p={authEntity:e,credentials:r,webrtcOptions:{disableTrickleICE:!1,rtcConfig:this.webrtcOptions?.rtcConfig}};if(this.savedAuthEntity=e,this.savedCreds=r,this.webrtcOptions?.enabled){p.webrtcOptions&&(p.webrtcOptions.signalingAuthEntity=p.authEntity,p.webrtcOptions.signalingCredentials=p.credentials);const i=await __webpack_exports__dialWebRTC(this.webrtcOptions.signalingAddress||this.serviceHost,this.webrtcOptions.host,p);this.peerConn=i.peerConnection,this.transportFactory=i.transportFactory,i.peerConnection.ontrack=s=>{const{kind:g}=s.track,l=s.streams[0];if(!l)throw events.emit("track",s),new Error("expected event stream to exist");const u=l.id.replaceAll("+",":");Object.defineProperty(l,"id",{value:u}),events.emit("track",s);const c=l.id,m=document.querySelectorAll(`[data-stream="${c}"]`);for(const y of m){const f=document.createElement(g);f.srcObject=l,f.autoplay=!0,f instanceof HTMLVideoElement?(f.playsInline=!0,f.controls=!1):f.controls=!0,y.querySelector(g)?.remove(),y.append(f)}const h=document.querySelectorAll(`[data-stream-preview="${c}"]`);for(const y of h){const f=document.createElement(g);f.srcObject=l,f.autoplay=!0,f instanceof HTMLVideoElement?(f.playsInline=!0,f.controls=!1):f.controls=!0,y.querySelector(g)?.remove(),y.append(f)}}}else this.transportFactory=await __webpack_exports__dialDirect(this.serviceHost,p);const n={transport:this.sessionOptions?.disabled?this.transportFactory:this.sessionManager.transportFactory};this.robotServiceClient=new RobotServiceClient_1(this.serviceHost,n),this.armServiceClient=new ArmServiceClient_1(this.serviceHost,n),this.baseServiceClient=new BaseServiceClient_1(this.serviceHost,n),this.boardServiceClient=new BoardServiceClient_1(this.serviceHost,n),this.gantryServiceClient=new GantryServiceClient_1(this.serviceHost,n),this.genericServiceClient=new GenericServiceClient_1(this.serviceHost,n),this.gripperServiceClient=new GripperServiceClient_1(this.serviceHost,n),this.movementSensorServiceClient=new MovementSensorServiceClient_1(this.serviceHost,n),this.inputControllerServiceClient=new InputControllerServiceClient_1(this.serviceHost,n),this.motorServiceClient=new MotorServiceClient_1(this.serviceHost,n),this.navigationServiceClient=new NavigationServiceClient_1(this.serviceHost,n),this.motionServiceClient=new MotionServiceClient_1(this.serviceHost,n),this.visionServiceClient=new VisionServiceClient_1(this.serviceHost,n),this.sensorsServiceClient=new SensorsServiceClient_1(this.serviceHost,n),this.servoServiceClient=new ServoServiceClient_1(this.serviceHost,n),this.slamServiceClient=new SLAMServiceClient_1(this.serviceHost,n)}finally{this.connectResolve?.(),this.connectResolve=void 0,this.connecting=void 0}}async getOperations(){const e=this.robotService,r=new robot_pb$1.GetOperationsRequest;return(await promisify(e.getOperations.bind(e),r)).getOperationsList()}async cancelOperation(e){const r=this.robotService,p=new robot_pb$1.CancelOperationRequest;p.setId(e),await promisify(r.cancelOperation.bind(r),p)}async blockForOperation(e){const r=this.robotService,p=new robot_pb$1.BlockForOperationRequest;p.setId(e),await promisify(r.blockForOperation.bind(r),p)}async stopAll(){const e=this.robotService,r=new robot_pb$1.StopAllRequest;await promisify(e.stopAll.bind(e),r)}async frameSystemConfig(e){const r=this.robotService,p=new robot_pb$1.FrameSystemConfigRequest;return p.setSupplementalTransformsList(e),(await promisify(r.frameSystemConfig.bind(r),p)).getFrameSystemConfigsList()}async transformPose(e,r,p){const t=this.robotService,n=new robot_pb$1.TransformPoseRequest;n.setSource(e),n.setDestination(r),n.setSupplementalTransformsList(p);const s=(await promisify(t.transformPose.bind(t),n)).getPose();if(!s)throw new Error("no pose");return s}async transformPCD(e,r,p){const t=this.robotService,n=new robot_pb$1.TransformPCDRequest;return n.setPointCloudPcd(e),n.setSource(r),n.setDestination(p),(await promisify(t.transformPCD.bind(t),n)).getPointCloudPcd_asU8()}async discoverComponents(e){const r=this.robotService,p=new robot_pb$1.DiscoverComponentsRequest;return p.setQueriesList(e),(await promisify(r.discoverComponents.bind(r),p)).getDiscoveryList()}async resourceNames(){const e=this.robotService,r=new robot_pb$1.ResourceNamesRequest;return(await promisify(e.resourceNames.bind(e),r)).getResourcesList().map(t=>t.toObject())}async resourceRPCSubtypes(){const e=this.robotService,r=new robot_pb$1.ResourceRPCSubtypesRequest;return(await promisify(e.resourceRPCSubtypes.bind(e),r)).getResourceRpcSubtypesList()}async getStatus(e){const r=this.robotService,p=new robot_pb$1.GetStatusRequest;return p.setResourceNamesList(e),(await promisify(r.getStatus.bind(r),p)).getStatusList()}async streamStatus(e,r){const p=this.robotService,t=new robot_pb$1.StreamStatusRequest;return t.setResourceNamesList(e),t.setEvery(r),(await promisify(p.streamStatus.bind(p),t)).getStatusList()}}const isLocalConnection=o=>o.includes(".local"),dialDirect=async o=>{if(console.debug("dialing via gRPC..."),!isLocalConnection(o.host))throw new Error(`cannot dial "${o.host}" directly, please use a local url instead.`);const e=new RobotClient(o.host);let r;return o.credential&&(r=o.credential),await e.connect(o.authEntity,r),console.debug("connected via gRPC"),e},dialWebRTC=async o=>{console.debug("dialing via WebRTC...");const e=o.host,r=o.signalingAddress,t={iceServers:o.iceServers??[]},n={enabled:!0,host:o.host,signalingAddress:r,rtcConfig:t},i=new RobotClient(e,n);let s;return o.credential&&(s=o.credential),await i.connect(e,s),console.debug("connected via WebRTC"),i},isDialWebRTCConf=o=>{const e=o;return typeof e.signalingAddress!="string"?!1:!e.iceServers||e.iceServers instanceof Array},createRobotClient=async o=>{let e;if(isDialWebRTCConf(o))try{e=await dialWebRTC(o)}catch{console.debug("failed to connect via WebRTC...")}if(!e)try{e=await dialDirect(o)}catch{console.debug("failed to connect via gRPC...")}if(!e)throw new Error("failed to connect to robot");return e};var commonjsGlobal$k=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},arm_pb={},googleProtobuf$l={};(function(exports){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(o,e,r){o instanceof String&&(o=String(o));for(var p=o.length,t=0;t<p;t++){var n=o[t];if(e.call(r,n,t,o))return{i:t,v:n}}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||typeof Object.defineProperties=="function"?Object.defineProperty:function(o,e,r){o!=Array.prototype&&o!=Object.prototype&&(o[e]=r.value)},$jscomp.getGlobal=function(o){return typeof window<"u"&&window===o?o:typeof commonjsGlobal$k<"u"&&commonjsGlobal$k!=null?commonjsGlobal$k:o},$jscomp.global=$jscomp.getGlobal(commonjsGlobal$k),$jscomp.polyfill=function(o,e,r,p){if(e){for(r=$jscomp.global,o=o.split("."),p=0;p<o.length-1;p++){var t=o[p];t in r||(r[t]={}),r=r[t]}o=o[o.length-1],p=r[o],e=e(p),e!=p&&e!=null&&$jscomp.defineProperty(r,o,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.findIndex",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).i}},"es6","es3"),$jscomp.checkStringArgs=function(o,e,r){if(o==null)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return o+""},$jscomp.polyfill("String.prototype.endsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"endsWith");e+="",r===void 0&&(r=p.length),r=Math.max(0,Math.min(r|0,p.length));for(var t=e.length;0<t&&0<r;)if(p[--r]!=e[--t])return!1;return 0>=t}},"es6","es3"),$jscomp.polyfill("Array.prototype.find",function(o){return o||function(e,r){return $jscomp.findInternal(this,e,r).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(o){return o||function(e,r){var p=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var t=p.length,n=e.length;r=Math.max(0,Math.min(r|0,p.length));for(var i=0;i<n&&r<t;)if(p[r++]!=e[i++])return!1;return i>=n}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(o){return o||function(e){var r=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var p="";e;)e&1&&(p+=r),(e>>>=1)&&(r+=r);return p}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=commonjsGlobal$k||self,goog.exportPath_=function(o,e,r){o=o.split("."),r=r||goog.global,o[0]in r||typeof r.execScript>"u"||r.execScript("var "+o[0]);for(var p;o.length&&(p=o.shift());)o.length||e===void 0?r=r[p]&&r[p]!==Object.prototype[p]?r[p]:r[p]={}:r[p]=e},goog.define=function(o,e){return e},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(o){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(o)},goog.constructNamespace_=function(o,e){goog.exportPath_(o,e)},goog.getScriptNonce=function(o){return o&&o!=goog.global?goog.getScriptNonce_(o.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(o){return(o=o.querySelector&&o.querySelector("script[nonce]"))&&(o=o.nonce||o.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(o)?o:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(o){if(typeof o!="string"||!o||o.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+o+" 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=o},goog.module.get=function(o){return goog.module.getInternal_(o)},goog.module.getInternal_=function(o){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 o=goog.global.$jscomp;return o?typeof o.getCurrentModulePath!="function"?!1:!!o.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(o){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=o;else{var e=goog.global.$jscomp;if(!e||typeof e.getCurrentModulePath!="function")throw Error('Module with namespace "'+o+'" has been loaded incorrectly.');e=e.require(e.getCurrentModulePath()),goog.loadedModules_[o]={exports:e,type:goog.ModuleType.ES6,moduleId:o}}},goog.setTestOnly=function(o){if(goog.DISALLOW_TEST_ONLY_CODE)throw o=o||"",Error("Importing test-only code into non-debug environment"+(o?": "+o:"."))},goog.forwardDeclare=function(o){},goog.getObjectByName=function(o,e){o=o.split("."),e=e||goog.global;for(var r=0;r<o.length;r++)if(e=e[o[r]],e==null)return null;return e},goog.globalize=function(o,e){e=e||goog.global;for(var r in o)e[r]=o[r]},goog.addDependency=function(o,e,r,p){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(o){goog.global.console&&goog.global.console.error(o)},goog.require=function(o){},goog.requireType=function(o){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(o){o.instance_=void 0,o.getInstance=function(){return o.instance_?o.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=o),o.instance_=new o)}},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(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(o){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(o){return"(function(){"+o+`
155
155
  ;})();
156
156
  `},goog.loadModule=function(o){var e=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(o))var r=o.call(void 0,{});else if(typeof o=="string")goog.useSafari10Workaround()&&(o=goog.workaroundSafari10EvalBug(o)),r=goog.loadModuleFromSource_.call(void 0,o);else throw Error("Invalid module definition");var p=goog.moduleLoaderState_.moduleName;if(typeof p=="string"&&p)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(p,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof r=="object"&&r!=null&&Object.seal(r),goog.loadedModules_[p]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+p+'"')}finally{goog.moduleLoaderState_=e}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(o){o=o.split("/");for(var e=0;e<o.length;)o[e]=="."?o.splice(e,1):e&&o[e]==".."&&o[e-1]&&o[e-1]!=".."?o.splice(--e,2):e++;return o.join("/")},goog.loadFileSync_=function(o){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(o);try{var e=new goog.global.XMLHttpRequest;return e.open("get",o,!1),e.send(),e.status==0||e.status==200?e.responseText:null}catch{return null}},goog.transpile_=function(o,e,r){var p=goog.global.$jscomp;p||(goog.global.$jscomp=p={});var t=p.transpile;if(!t){var n=goog.basePath+goog.TRANSPILER,i=goog.loadFileSync_(n);if(i){if(function(){(0,eval)(i+`
157
157
  //# sourceURL=`+n)}.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,p=goog.global.$jscomp,t=p.transpile}}return t||(t=p.transpile=function(s,g){return goog.logToConsole_(g+" requires transpilation but no transpiler was found."),s}),t(o,e,r)},goog.typeOf=function(o){var e=typeof o;if(e=="object")if(o){if(o instanceof Array)return"array";if(o instanceof Object)return e;var r=Object.prototype.toString.call(o);if(r=="[object Window]")return"object";if(r=="[object Array]"||typeof o.length=="number"&&typeof o.splice<"u"&&typeof o.propertyIsEnumerable<"u"&&!o.propertyIsEnumerable("splice"))return"array";if(r=="[object Function]"||typeof o.call<"u"&&typeof o.propertyIsEnumerable<"u"&&!o.propertyIsEnumerable("call"))return"function"}else return"null";else if(e=="function"&&typeof o.call>"u")return"object";return e},goog.isArray=function(o){return goog.typeOf(o)=="array"},goog.isArrayLike=function(o){var e=goog.typeOf(o);return e=="array"||e=="object"&&typeof o.length=="number"},goog.isDateLike=function(o){return goog.isObject(o)&&typeof o.getFullYear=="function"},goog.isFunction=function(o){return goog.typeOf(o)=="function"},goog.isObject=function(o){var e=typeof o;return e=="object"&&o!=null||e=="function"},goog.getUid=function(o){return Object.prototype.hasOwnProperty.call(o,goog.UID_PROPERTY_)&&o[goog.UID_PROPERTY_]||(o[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(o){return!!o[goog.UID_PROPERTY_]},goog.removeUid=function(o){o!==null&&"removeAttribute"in o&&o.removeAttribute(goog.UID_PROPERTY_);try{delete o[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(o){var e=goog.typeOf(o);if(e=="object"||e=="array"){if(typeof o.clone=="function")return o.clone();e=e=="array"?[]:{};for(var r in o)e[r]=goog.cloneObject(o[r]);return e}return o},goog.bindNative_=function(o,e,r){return o.call.apply(o.bind,arguments)},goog.bindJs_=function(o,e,r){if(!o)throw Error();if(2<arguments.length){var p=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,p),o.apply(e,t)}}return function(){return o.apply(e,arguments)}},goog.bind=function(o,e,r){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(o,e){var r=Array.prototype.slice.call(arguments,1);return function(){var p=r.slice();return p.push.apply(p,arguments),o.apply(this,p)}},goog.mixin=function(o,e){for(var r in e)o[r]=e[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(o){if(goog.global.execScript)goog.global.execScript(o,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null){try{goog.global.eval("var _evalTest_ = 1;")}catch{}if(typeof goog.global._evalTest_<"u"){try{delete goog.global._evalTest_}catch{}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(o);else{var e=goog.global.document,r=e.createElement("script");r.type="text/javascript",r.defer=!1,r.appendChild(e.createTextNode(o)),e.head.appendChild(r),e.head.removeChild(r)}}else throw Error("goog.globalEval not available")},goog.evalWorksForGlobals_=null,goog.getCssName=function(o,e){if(String(o).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+o);var r=function(t){return goog.cssNameMapping_[t]||t},p=function(t){t=t.split("-");for(var n=[],i=0;i<t.length;i++)n.push(r(t[i]));return n.join("-")};return p=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?r:p:function(t){return t},o=e?o+"-"+p(e):p(o),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(o):o},goog.setCssNameMapping=function(o,e){goog.cssNameMapping_=o,goog.cssNameMappingStyle_=e},goog.getMsg=function(o,e,r){return r&&r.html&&(o=o.replace(/</g,"&lt;")),e&&(o=o.replace(/\{\$([^}]+)}/g,function(p,t){return e!=null&&t in e?e[t]:p})),o},goog.getMsgWithFallback=function(o,e){return o},goog.exportSymbol=function(o,e,r){goog.exportPath_(o,e,r)},goog.exportProperty=function(o,e,r){o[e]=r},goog.inherits=function(o,e){function r(){}r.prototype=e.prototype,o.superClass_=e.prototype,o.prototype=new r,o.prototype.constructor=o,o.base=function(p,t,n){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return e.prototype[t].apply(p,i)}},goog.scope=function(o){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");o.call(goog.global)},goog.defineClass=function(o,e){var r=e.constructor,p=e.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,o),o&&goog.inherits(r,o),delete e.constructor,delete e.statics,goog.defineClass.applyProperties_(r.prototype,e),p!=null&&(p instanceof Function?p(r):goog.defineClass.applyProperties_(r,p)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(o,e){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return o;var r=!goog.defineClass.isUnsealable_(e),p=function(){var t=o.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===p&&r&&Object.seal instanceof Function&&Object.seal(t),t};return p},goog.defineClass.isUnsealable_=function(o){return o&&o.prototype&&o.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(o,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);for(var p=0;p<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;p++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[p],Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r])},goog.tagUnsealableClass=function(o){},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(o){return o},goog.createTrustedTypesPolicy=function(o){var e=null,r=goog.global.trustedTypes||goog.global.TrustedTypes;if(!r||!r.createPolicy)return e;try{e=r.createPolicy(o,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(p){goog.logToConsole_(p.message)}return e},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.object={},goog.object.is=function(o,e){return o===e?o!==0||1/o===1/e:o!==o&&e!==e},goog.object.forEach=function(o,e,r){for(var p in o)e.call(r,o[p],p,o)},goog.object.filter=function(o,e,r){var p={},t;for(t in o)e.call(r,o[t],t,o)&&(p[t]=o[t]);return p},goog.object.map=function(o,e,r){var p={},t;for(t in o)p[t]=e.call(r,o[t],t,o);return p},goog.object.some=function(o,e,r){for(var p in o)if(e.call(r,o[p],p,o))return!0;return!1},goog.object.every=function(o,e,r){for(var p in o)if(!e.call(r,o[p],p,o))return!1;return!0},goog.object.getCount=function(o){var e=0,r;for(r in o)e++;return e},goog.object.getAnyKey=function(o){for(var e in o)return e},goog.object.getAnyValue=function(o){for(var e in o)return o[e]},goog.object.contains=function(o,e){return goog.object.containsValue(o,e)},goog.object.getValues=function(o){var e=[],r=0,p;for(p in o)e[r++]=o[p];return e},goog.object.getKeys=function(o){var e=[],r=0,p;for(p in o)e[r++]=p;return e},goog.object.getValueByKeys=function(o,e){var r=goog.isArrayLike(e),p=r?e:arguments;for(r=r?0:1;r<p.length;r++){if(o==null)return;o=o[p[r]]}return o},goog.object.containsKey=function(o,e){return o!==null&&e in o},goog.object.containsValue=function(o,e){for(var r in o)if(o[r]==e)return!0;return!1},goog.object.findKey=function(o,e,r){for(var p in o)if(e.call(r,o[p],p,o))return p},goog.object.findValue=function(o,e,r){return(e=goog.object.findKey(o,e,r))&&o[e]},goog.object.isEmpty=function(o){for(var e in o)return!1;return!0},goog.object.clear=function(o){for(var e in o)delete o[e]},goog.object.remove=function(o,e){var r;return(r=e in o)&&delete o[e],r},goog.object.add=function(o,e,r){if(o!==null&&e in o)throw Error('The object already contains the key "'+e+'"');goog.object.set(o,e,r)},goog.object.get=function(o,e,r){return o!==null&&e in o?o[e]:r},goog.object.set=function(o,e,r){o[e]=r},goog.object.setIfUndefined=function(o,e,r){return e in o?o[e]:o[e]=r},goog.object.setWithReturnValueIfNotSet=function(o,e,r){return e in o?o[e]:(r=r(),o[e]=r)},goog.object.equals=function(o,e){for(var r in o)if(!(r in e)||o[r]!==e[r])return!1;for(var p in e)if(!(p in o))return!1;return!0},goog.object.clone=function(o){var e={},r;for(r in o)e[r]=o[r];return e},goog.object.unsafeClone=function(o){var e=goog.typeOf(o);if(e=="object"||e=="array"){if(goog.isFunction(o.clone))return o.clone();e=e=="array"?[]:{};for(var r in o)e[r]=goog.object.unsafeClone(o[r]);return e}return o},goog.object.transpose=function(o){var e={},r;for(r in o)e[o[r]]=r;return e},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(o,e){for(var r,p,t=1;t<arguments.length;t++){p=arguments[t];for(r in p)o[r]=p[r];for(var n=0;n<goog.object.PROTOTYPE_FIELDS_.length;n++)r=goog.object.PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(p,r)&&(o[r]=p[r])}},goog.object.create=function(o){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(e%2)throw Error("Uneven number of arguments");for(var r={},p=0;p<e;p+=2)r[arguments[p]]=arguments[p+1];return r},goog.object.createSet=function(o){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},p=0;p<e;p++)r[arguments[p]]=!0;return r},goog.object.createImmutableView=function(o){var e=o;return Object.isFrozen&&!Object.isFrozen(o)&&(e=Object.create(o),Object.freeze(e)),e},goog.object.isImmutableView=function(o){return!!Object.isFrozen&&Object.isFrozen(o)},goog.object.getAllPropertyNames=function(o,e,r){if(!o)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(o);for(var p={};o&&(o!==Object.prototype||e)&&(o!==Function.prototype||r);){for(var t=Object.getOwnPropertyNames(o),n=0;n<t.length;n++)p[t[n]]=!0;o=Object.getPrototypeOf(o)}return goog.object.getKeys(p)},goog.object.getSuperClass=function(o){return(o=Object.getPrototypeOf(o.prototype))&&o.constructor};var jspb={asserts:{}};jspb.asserts.doAssertFailure=function(o,e,r,p){var t="Assertion failed";if(r){t+=": "+r;var n=p}else o&&(t+=": "+o,n=e);throw Error(""+t,n||[])},jspb.asserts.assert=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return o||jspb.asserts.doAssertFailure("",null,e,p),o},jspb.asserts.assertString=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return typeof o!="string"&&jspb.asserts.doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(o),o],e,p),o},jspb.asserts.assertArray=function(o,e,r){for(var p=[],t=2;t<arguments.length;++t)p[t-2]=arguments[t];return Array.isArray(o)||jspb.asserts.doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(o),o],e,p),o},jspb.asserts.fail=function(o,e){for(var r=[],p=1;p<arguments.length;++p)r[p-1]=arguments[p];throw Error("Failure"+(o?": "+o:""),r)},jspb.asserts.assertInstanceof=function(o,e,r,p){for(var t=[],n=3;n<arguments.length;++n)t[n-3]=arguments[n];return o instanceof e||jspb.asserts.doAssertFailure("Expected instanceof %s but got %s.",[jspb.asserts.getType(e),jspb.asserts.getType(o)],r,t),o},jspb.asserts.getType=function(o){return o instanceof Function?o.displayName||o.name||"unknown type name":o instanceof Object?o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o):o===null?"null":typeof o},jspb.BinaryConstants={},jspb.ConstBinaryMessage=function(){},jspb.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(o){var e=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(o){case e.INT32:case e.INT64:case e.UINT32:case e.UINT64:case e.SINT32:case e.SINT64:case e.BOOL:case e.ENUM:case e.VHASH64:return r.VARINT;case e.DOUBLE:case e.FIXED64:case e.SFIXED64:case e.FHASH64:return r.FIXED64;case e.STRING:case e.MESSAGE:case e.BYTES:return r.DELIMITED;case e.FLOAT:case e.FIXED32:case e.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=9223372036854776e3,jspb.BinaryConstants.TWO_TO_64=18446744073709552e3,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.debug={},goog.debug.Error=function(o){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var e=Error().stack;e&&(this.stack=e)}o&&(this.message=String(o)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",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.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(o,e){goog.debug.Error.call(this,goog.asserts.subs_(o,e)),this.messagePattern=o},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(o){throw o},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(o,e){o=o.split("%s");for(var r="",p=o.length-1,t=0;t<p;t++)r+=o[t]+(t<e.length?e[t]:"%s");return r+o[p]},goog.asserts.doAssertFailure_=function(o,e,r,p){var t="Assertion failed";if(r){t+=": "+r;var n=p}else o&&(t+=": "+o,n=e);o=new goog.asserts.AssertionError(""+t,n||[]),goog.asserts.errorHandler_(o)},goog.asserts.setErrorHandler=function(o){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=o)},goog.asserts.assert=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!o&&goog.asserts.doAssertFailure_("",null,e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertExists=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&o==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.fail=function(o,e){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(o?": "+o:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="number"&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertString=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="string"&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertFunction=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(o)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertObject=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(o)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertArray=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(o)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertBoolean=function(o,e,r){return goog.asserts.ENABLE_ASSERTS&&typeof o!="boolean"&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertElement=function(o,e,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(o)&&o.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(o),o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertInstanceof=function(o,e,r,p){return!goog.asserts.ENABLE_ASSERTS||o instanceof e||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(e),goog.asserts.getType_(o)],r,Array.prototype.slice.call(arguments,3)),o},goog.asserts.assertFinite=function(o,e,r){return!goog.asserts.ENABLE_ASSERTS||typeof o=="number"&&isFinite(o)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[o],e,Array.prototype.slice.call(arguments,2)),o},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var o in Object.prototype)goog.asserts.fail(o+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(o){return o instanceof Function?o.displayName||o.name||"unknown type name":o instanceof Object?o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o):o===null?"null":typeof o},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(o){return o[o.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.indexOf.call(o,e,r)}:function(o,e,r){if(r=r==null?0:0>r?Math.max(0,o.length+r):r,typeof o=="string")return typeof e!="string"||e.length!=1?-1:o.indexOf(e,r);for(;r<o.length;r++)if(r in o&&o[r]===e)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.lastIndexOf.call(o,e,r??o.length-1)}:function(o,e,r){if(r=r??o.length-1,0>r&&(r=Math.max(0,o.length+r)),typeof o=="string")return typeof e!="string"||e.length!=1?-1:o.lastIndexOf(e,r);for(;0<=r;r--)if(r in o&&o[r]===e)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(o,e,r){goog.asserts.assert(o.length!=null),Array.prototype.forEach.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)n in t&&e.call(r,t[n],n,o)},goog.array.forEachRight=function(o,e,r){var p=o.length,t=typeof o=="string"?o.split(""):o;for(--p;0<=p;--p)p in t&&e.call(r,t[p],p,o)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.filter.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=[],n=0,i=typeof o=="string"?o.split(""):o,s=0;s<p;s++)if(s in i){var g=i[s];e.call(r,g,s,o)&&(t[n++]=g)}return t},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.map.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=Array(p),n=typeof o=="string"?o.split(""):o,i=0;i<p;i++)i in n&&(t[i]=e.call(r,n[i],i,o));return t},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(o,e,r,p){return goog.asserts.assert(o.length!=null),p&&(e=goog.bind(e,p)),Array.prototype.reduce.call(o,e,r)}:function(o,e,r,p){var t=r;return goog.array.forEach(o,function(n,i){t=e.call(p,t,n,i,o)}),t},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(o,e,r,p){return goog.asserts.assert(o.length!=null),goog.asserts.assert(e!=null),p&&(e=goog.bind(e,p)),Array.prototype.reduceRight.call(o,e,r)}:function(o,e,r,p){var t=r;return goog.array.forEachRight(o,function(n,i){t=e.call(p,t,n,i,o)}),t},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.some.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&e.call(r,t[n],n,o))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(o,e,r){return goog.asserts.assert(o.length!=null),Array.prototype.every.call(o,e,r)}:function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&!e.call(r,t[n],n,o))return!1;return!0},goog.array.count=function(o,e,r){var p=0;return goog.array.forEach(o,function(t,n,i){e.call(r,t,n,i)&&++p},r),p},goog.array.find=function(o,e,r){return e=goog.array.findIndex(o,e,r),0>e?null:typeof o=="string"?o.charAt(e):o[e]},goog.array.findIndex=function(o,e,r){for(var p=o.length,t=typeof o=="string"?o.split(""):o,n=0;n<p;n++)if(n in t&&e.call(r,t[n],n,o))return n;return-1},goog.array.findRight=function(o,e,r){return e=goog.array.findIndexRight(o,e,r),0>e?null:typeof o=="string"?o.charAt(e):o[e]},goog.array.findIndexRight=function(o,e,r){var p=o.length,t=typeof o=="string"?o.split(""):o;for(--p;0<=p;p--)if(p in t&&e.call(r,t[p],p,o))return p;return-1},goog.array.contains=function(o,e){return 0<=goog.array.indexOf(o,e)},goog.array.isEmpty=function(o){return o.length==0},goog.array.clear=function(o){if(!Array.isArray(o))for(var e=o.length-1;0<=e;e--)delete o[e];o.length=0},goog.array.insert=function(o,e){goog.array.contains(o,e)||o.push(e)},goog.array.insertAt=function(o,e,r){goog.array.splice(o,r,0,e)},goog.array.insertArrayAt=function(o,e,r){goog.partial(goog.array.splice,o,r,0).apply(null,e)},goog.array.insertBefore=function(o,e,r){var p;arguments.length==2||0>(p=goog.array.indexOf(o,r))?o.push(e):goog.array.insertAt(o,e,p)},goog.array.remove=function(o,e){e=goog.array.indexOf(o,e);var r;return(r=0<=e)&&goog.array.removeAt(o,e),r},goog.array.removeLast=function(o,e){return e=goog.array.lastIndexOf(o,e),0<=e?(goog.array.removeAt(o,e),!0):!1},goog.array.removeAt=function(o,e){return goog.asserts.assert(o.length!=null),Array.prototype.splice.call(o,e,1).length==1},goog.array.removeIf=function(o,e,r){return e=goog.array.findIndex(o,e,r),0<=e?(goog.array.removeAt(o,e),!0):!1},goog.array.removeAllIf=function(o,e,r){var p=0;return goog.array.forEachRight(o,function(t,n){e.call(r,t,n,o)&&goog.array.removeAt(o,n)&&p++}),p},goog.array.concat=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(o){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(o){var e=o.length;if(0<e){for(var r=Array(e),p=0;p<e;p++)r[p]=o[p];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(o,e){for(var r=1;r<arguments.length;r++){var p=arguments[r];if(goog.isArrayLike(p)){var t=o.length||0,n=p.length||0;o.length=t+n;for(var i=0;i<n;i++)o[t+i]=p[i]}else o.push(p)}},goog.array.splice=function(o,e,r,p){return goog.asserts.assert(o.length!=null),Array.prototype.splice.apply(o,goog.array.slice(arguments,1))},goog.array.slice=function(o,e,r){return goog.asserts.assert(o.length!=null),2>=arguments.length?Array.prototype.slice.call(o,e):Array.prototype.slice.call(o,e,r)},goog.array.removeDuplicates=function(o,e,r){e=e||o;var p=function(g){return goog.isObject(g)?"o"+goog.getUid(g):(typeof g).charAt(0)+g};r=r||p,p={};for(var t=0,n=0;n<o.length;){var i=o[n++],s=r(i);Object.prototype.hasOwnProperty.call(p,s)||(p[s]=!0,e[t++]=i)}e.length=t},goog.array.binarySearch=function(o,e,r){return goog.array.binarySearch_(o,r||goog.array.defaultCompare,!1,e)},goog.array.binarySelect=function(o,e,r){return goog.array.binarySearch_(o,e,!0,void 0,r)},goog.array.binarySearch_=function(o,e,r,p,t){for(var n=0,i=o.length,s;n<i;){var g=n+(i-n>>>1),l=r?e.call(t,o[g],g,o):e(p,o[g]);0<l?n=g+1:(i=g,s=!l)}return s?n:-n-1},goog.array.sort=function(o,e){o.sort(e||goog.array.defaultCompare)},goog.array.stableSort=function(o,e){for(var r=Array(o.length),p=0;p<o.length;p++)r[p]={index:p,value:o[p]};var t=e||goog.array.defaultCompare;for(goog.array.sort(r,function(n,i){return t(n.value,i.value)||n.index-i.index}),p=0;p<o.length;p++)o[p]=r[p].value},goog.array.sortByKey=function(o,e,r){var p=r||goog.array.defaultCompare;goog.array.sort(o,function(t,n){return p(e(t),e(n))})},goog.array.sortObjectsByKey=function(o,e,r){goog.array.sortByKey(o,function(p){return p[e]},r)},goog.array.isSorted=function(o,e,r){e=e||goog.array.defaultCompare;for(var p=1;p<o.length;p++){var t=e(o[p-1],o[p]);if(0<t||t==0&&r)return!1}return!0},goog.array.equals=function(o,e,r){if(!goog.isArrayLike(o)||!goog.isArrayLike(e)||o.length!=e.length)return!1;var p=o.length;r=r||goog.array.defaultCompareEquality;for(var t=0;t<p;t++)if(!r(o[t],e[t]))return!1;return!0},goog.array.compare3=function(o,e,r){r=r||goog.array.defaultCompare;for(var p=Math.min(o.length,e.length),t=0;t<p;t++){var n=r(o[t],e[t]);if(n!=0)return n}return goog.array.defaultCompare(o.length,e.length)},goog.array.defaultCompare=function(o,e){return o>e?1:o<e?-1:0},goog.array.inverseDefaultCompare=function(o,e){return-goog.array.defaultCompare(o,e)},goog.array.defaultCompareEquality=function(o,e){return o===e},goog.array.binaryInsert=function(o,e,r){return r=goog.array.binarySearch(o,e,r),0>r?(goog.array.insertAt(o,e,-(r+1)),!0):!1},goog.array.binaryRemove=function(o,e,r){return e=goog.array.binarySearch(o,e,r),0<=e?goog.array.removeAt(o,e):!1},goog.array.bucket=function(o,e,r){for(var p={},t=0;t<o.length;t++){var n=o[t],i=e.call(r,n,t,o);i!==void 0&&(p[i]||(p[i]=[])).push(n)}return p},goog.array.toObject=function(o,e,r){var p={};return goog.array.forEach(o,function(t,n){p[e.call(r,t,n,o)]=t}),p},goog.array.range=function(o,e,r){var p=[],t=0,n=o;if(r=r||1,e!==void 0&&(t=o,n=e),0>r*(n-t))return[];if(0<r)for(o=t;o<n;o+=r)p.push(o);else for(o=t;o>n;o+=r)p.push(o);return p},goog.array.repeat=function(o,e){for(var r=[],p=0;p<e;p++)r[p]=o;return r},goog.array.flatten=function(o){for(var e=[],r=0;r<arguments.length;r++){var p=arguments[r];if(Array.isArray(p))for(var t=0;t<p.length;t+=8192){var n=goog.array.slice(p,t,t+8192);n=goog.array.flatten.apply(null,n);for(var i=0;i<n.length;i++)e.push(n[i])}else e.push(p)}return e},goog.array.rotate=function(o,e){return goog.asserts.assert(o.length!=null),o.length&&(e%=o.length,0<e?Array.prototype.unshift.apply(o,o.splice(-e,e)):0>e&&Array.prototype.push.apply(o,o.splice(0,-e))),o},goog.array.moveItem=function(o,e,r){goog.asserts.assert(0<=e&&e<o.length),goog.asserts.assert(0<=r&&r<o.length),e=Array.prototype.splice.call(o,e,1),Array.prototype.splice.call(o,r,0,e[0])},goog.array.zip=function(o){if(!arguments.length)return[];for(var e=[],r=arguments[0].length,p=1;p<arguments.length;p++)arguments[p].length<r&&(r=arguments[p].length);for(p=0;p<r;p++){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n][p]);e.push(t)}return e},goog.array.shuffle=function(o,e){e=e||Math.random;for(var r=o.length-1;0<r;r--){var p=Math.floor(e()*(r+1)),t=o[r];o[r]=o[p],o[p]=t}},goog.array.copyByIndex=function(o,e){var r=[];return goog.array.forEach(e,function(p){r.push(o[p])}),r},goog.array.concatMap=function(o,e,r){return goog.array.concat.apply([],goog.array.map(o,e,r))},goog.crypt={},goog.crypt.stringToByteArray=function(o){for(var e=[],r=0,p=0;p<o.length;p++){var t=o.charCodeAt(p);255<t&&(e[r++]=t&255,t>>=8),e[r++]=t}return e},goog.crypt.byteArrayToString=function(o){if(8192>=o.length)return String.fromCharCode.apply(null,o);for(var e="",r=0;r<o.length;r+=8192){var p=goog.array.slice(o,r,r+8192);e+=String.fromCharCode.apply(null,p)}return e},goog.crypt.byteArrayToHex=function(o,e){return goog.array.map(o,function(r){return r=r.toString(16),1<r.length?r:"0"+r}).join(e||"")},goog.crypt.hexToByteArray=function(o){goog.asserts.assert(o.length%2==0,"Key string length must be multiple of 2");for(var e=[],r=0;r<o.length;r+=2)e.push(parseInt(o.substring(r,r+2),16));return e},goog.crypt.stringToUtf8ByteArray=function(o){for(var e=[],r=0,p=0;p<o.length;p++){var t=o.charCodeAt(p);128>t?e[r++]=t:(2048>t?e[r++]=t>>6|192:((t&64512)==55296&&p+1<o.length&&(o.charCodeAt(p+1)&64512)==56320?(t=65536+((t&1023)<<10)+(o.charCodeAt(++p)&1023),e[r++]=t>>18|240,e[r++]=t>>12&63|128):e[r++]=t>>12|224,e[r++]=t>>6&63|128),e[r++]=t&63|128)}return e},goog.crypt.utf8ByteArrayToString=function(o){for(var e=[],r=0,p=0;r<o.length;){var t=o[r++];if(128>t)e[p++]=String.fromCharCode(t);else if(191<t&&224>t){var n=o[r++];e[p++]=String.fromCharCode((t&31)<<6|n&63)}else if(239<t&&365>t){n=o[r++];var i=o[r++],s=o[r++];t=((t&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536,e[p++]=String.fromCharCode(55296+(t>>10)),e[p++]=String.fromCharCode(56320+(t&1023))}else n=o[r++],i=o[r++],e[p++]=String.fromCharCode((t&15)<<12|(n&63)<<6|i&63)}return e.join("")},goog.crypt.xorByteArray=function(o,e){goog.asserts.assert(o.length==e.length,"XOR array lengths must match");for(var r=[],p=0;p<o.length;p++)r.push(o[p]^e[p]);return r},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(o){if(goog.asserts.ENABLE_ASSERTS){var e=goog.dom.asserts.getWindow_(o);e&&(!o||!(o instanceof e.Location)&&o instanceof e.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(o))}return o},goog.dom.asserts.assertIsElementType_=function(o,e){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(o);r&&typeof r[e]<"u"&&(o&&(o instanceof r[e]||!(o instanceof r.Location||o instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,goog.dom.asserts.debugStringForType_(o)))}return o},goog.dom.asserts.assertIsHTMLAnchorElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(o){return goog.dom.asserts.assertIsElementType_(o,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(o){if(goog.isObject(o))try{return o.constructor.displayName||o.constructor.name||Object.prototype.toString.call(o)}catch{return"<object could not be stringified>"}else return o===void 0?"undefined":o===null?"null":typeof o},goog.dom.asserts.getWindow_=function(o){try{var e=o&&o.ownerDocument,r=e&&(e.defaultView||e.parentWindow);if(r=r||goog.global,r.Element&&r.Location)return r}catch{}return null},goog.functions={},goog.functions.constant=function(o){return function(){return o}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(o,e){return o},goog.functions.error=function(o){return function(){throw Error(o)}},goog.functions.fail=function(o){return function(){throw o}},goog.functions.lock=function(o,e){return e=e||0,function(){return o.apply(this,Array.prototype.slice.call(arguments,0,e))}},goog.functions.nth=function(o){return function(){return arguments[o]}},goog.functions.partialRight=function(o,e){var r=Array.prototype.slice.call(arguments,1);return function(){var p=Array.prototype.slice.call(arguments);return p.push.apply(p,r),o.apply(this,p)}},goog.functions.withReturnValue=function(o,e){return goog.functions.sequence(o,goog.functions.constant(e))},goog.functions.equalTo=function(o,e){return function(r){return e?o==r:o===r}},goog.functions.compose=function(o,e){var r=arguments,p=r.length;return function(){var t;p&&(t=r[p-1].apply(this,arguments));for(var n=p-2;0<=n;n--)t=r[n].call(this,t);return t}},goog.functions.sequence=function(o){var e=arguments,r=e.length;return function(){for(var p,t=0;t<r;t++)p=e[t].apply(this,arguments);return p}},goog.functions.and=function(o){var e=arguments,r=e.length;return function(){for(var p=0;p<r;p++)if(!e[p].apply(this,arguments))return!1;return!0}},goog.functions.or=function(o){var e=arguments,r=e.length;return function(){for(var p=0;p<r;p++)if(e[p].apply(this,arguments))return!0;return!1}},goog.functions.not=function(o){return function(){return!o.apply(this,arguments)}},goog.functions.create=function(o,e){var r=function(){};return r.prototype=o.prototype,r=new r,o.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(o){var e=!1,r;return function(){return goog.functions.CACHE_RETURN_VALUE?(e||(r=o(),e=!0),r):o()}},goog.functions.once=function(o){var e=o;return function(){if(e){var r=e;e=null,r()}}},goog.functions.debounce=function(o,e,r){var p=0;return function(t){goog.global.clearTimeout(p);var n=arguments;p=goog.global.setTimeout(function(){o.apply(r,n)},e)}},goog.functions.throttle=function(o,e,r){var p=0,t=!1,n=[],i=function(){p=0,t&&(t=!1,s())},s=function(){p=goog.global.setTimeout(i,e),o.apply(r,n)};return function(g){n=arguments,p?t=!0:s()}},goog.functions.rateLimit=function(o,e,r){var p=0,t=function(){p=0};return function(n){p||(p=goog.global.setTimeout(t,e),o.apply(r,arguments))}},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(o){this.tagName_=o},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.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(o){return goog.dom.tags.VOID_TAGS_[o]===!0},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.string={},goog.string.TypedString=function(){},goog.string.Const=function(o,e){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=o===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(o){return o instanceof goog.string.Const&&o.constructor===goog.string.Const&&o.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?o.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+o+"'"),"type_error:Const")},goog.string.Const.from=function(o){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),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(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeScript.fromConstantAndArgs=function(o,e){for(var r=[],p=1;p<arguments.length;p++)r.push(goog.html.SafeScript.stringify_(arguments[p]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(o)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(o){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(o))},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(o){return goog.html.SafeScript.unwrapTrustedScript(o).toString()},goog.html.SafeScript.unwrapTrustedScript=function(o){return o instanceof goog.html.SafeScript&&o.constructor===goog.html.SafeScript&&o.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(o){return JSON.stringify(o).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(o):o,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(o){return goog.fs.url.getUrlObject_().createObjectURL(o)},goog.fs.url.revokeObjectUrl=function(o){goog.fs.url.getUrlObject_().revokeObjectURL(o)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(o){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(o){},goog.fs.url.getUrlObject_=function(){var o=goog.fs.url.findUrlObject_();if(o!=null)return o;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.global.URL!==void 0&&goog.global.URL.createObjectURL!==void 0?goog.global.URL:goog.global.webkitURL!==void 0&&goog.global.webkitURL.createObjectURL!==void 0?goog.global.webkitURL:goog.global.createObjectURL!==void 0?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.fs.blob={},goog.fs.blob.getBlob=function(o){var e=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(e!==void 0){e=new e;for(var r=0;r<arguments.length;r++)e.append(arguments[r]);return e.getBlob()}return goog.fs.blob.getBlobWithProperties(goog.array.toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(o,e,r){var p=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(p!==void 0){p=new p;for(var t=0;t<o.length;t++)p.append(o[t],r);return p.getBlob(e)}if(goog.global.Blob!==void 0)return p={},e&&(p.type=e),r&&(p.endings=r),new Blob(o,p);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="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.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="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")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="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.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(o,e){return typeof o=="number"?0<o?goog.i18n.bidi.Dir.LTR:0>o?goog.i18n.bidi.Dir.RTL:e?null:goog.i18n.bidi.Dir.NEUTRAL:o==null?null:o?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(o,e){return e?o.replace(goog.i18n.bidi.htmlSkipReg_,""):o},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(o,e){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(o,e){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},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(o){return goog.i18n.bidi.rtlRe_.test(o)},goog.i18n.bidi.isLtrChar=function(o){return goog.i18n.bidi.ltrRe_.test(o)},goog.i18n.bidi.isNeutralChar=function(o){return!goog.i18n.bidi.isLtrChar(o)&&!goog.i18n.bidi.isRtlChar(o)},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(o,e){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(o,e){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(o,e){return o=goog.i18n.bidi.stripHtmlIfNeeded_(o,e),goog.i18n.bidi.isRequiredLtrRe_.test(o)||!goog.i18n.bidi.hasAnyLtr(o)&&!goog.i18n.bidi.hasAnyRtl(o)},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(o,e){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(o,e){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(o,e))},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(o){return goog.i18n.bidi.rtlLocalesRe_.test(o)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(o,e){return e=(e===void 0?goog.i18n.bidi.hasAnyRtl(o):e)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,o.replace(goog.i18n.bidi.bracketGuardTextRe_,e+"$&"+e)},goog.i18n.bidi.enforceRtlInHtml=function(o){return o.charAt(0)=="<"?o.replace(/<\w+/,"$& dir=rtl"):`
@@ -289,4 +289,4 @@
289
289
  <span dir=ltr>`+o+"</span>"},goog.i18n.bidi.enforceLtrInText=function(o){return goog.i18n.bidi.Format.LRE+o+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(o){return o.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(o){return o.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(o,e){var r=0,p=0,t=!1;for(o=goog.i18n.bidi.stripHtmlIfNeeded_(o,e).split(goog.i18n.bidi.wordSeparatorRe_),e=0;e<o.length;e++){var n=o[e];goog.i18n.bidi.startsWithRtl(n)?(r++,p++):goog.i18n.bidi.isRequiredLtrRe_.test(n)?t=!0:goog.i18n.bidi.hasAnyLtr(n)?p++:goog.i18n.bidi.hasNumeralsRe_.test(n)&&(t=!0)}return p==0?t?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/p>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(o,e){return goog.i18n.bidi.estimateDirection(o,e)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(o,e){o&&(e=goog.i18n.bidi.toDir(e))&&(o.style.textAlign=e==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,o.dir=e==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(o,e){switch(goog.i18n.bidi.estimateDirection(e)){case goog.i18n.bidi.Dir.LTR:o.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:o.dir="rtl";break;default:o.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(o,e){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=o===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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(o,e){var r=goog.html.TrustedResourceUrl.unwrap(this);r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r);var p=r[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",o)+goog.html.TrustedResourceUrl.stringifyParams_("#",p,e))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(o){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(o).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(o){return o instanceof goog.html.TrustedResourceUrl&&o.constructor===goog.html.TrustedResourceUrl&&o.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(o,e){var r=goog.string.Const.unwrap(o);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return o=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(p,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw Error('Found marker, "'+t+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(e));return p=e[t],p instanceof goog.string.Const?goog.string.Const.unwrap(p):encodeURIComponent(String(p))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},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(o,e,r,p){return goog.html.TrustedResourceUrl.format(o,e).cloneWithParams(r,p)},goog.html.TrustedResourceUrl.fromConstant=function(o){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.TrustedResourceUrl.fromConstants=function(o){for(var e="",r=0;r<o.length;r++)e+=goog.string.Const.unwrap(o[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.fromSafeScript=function(o){return o=goog.fs.blob.getBlobWithProperties([goog.html.SafeScript.unwrap(o)],"text/javascript"),o=goog.fs.url.createObjectUrl(o),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(o){return o=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(o):o,new goog.html.TrustedResourceUrl(goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.html.TrustedResourceUrl.stringifyParams_=function(o,e,r){if(r==null)return e;if(typeof r=="string")return r?o+encodeURIComponent(r):"";for(var p in r){var t=r[p];t=Array.isArray(t)?t:[t];for(var n=0;n<t.length;n++){var i=t[n];i!=null&&(e||(e=o),e+=(e.length>o.length?"&":"")+encodeURIComponent(p)+"="+encodeURIComponent(String(i)))}}return e},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.internal={},goog.string.internal.startsWith=function(o,e){return o.lastIndexOf(e,0)==0},goog.string.internal.endsWith=function(o,e){var r=o.length-e.length;return 0<=r&&o.indexOf(e,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(o,e){return goog.string.internal.caseInsensitiveCompare(e,o.substr(0,e.length))==0},goog.string.internal.caseInsensitiveEndsWith=function(o,e){return goog.string.internal.caseInsensitiveCompare(e,o.substr(o.length-e.length,e.length))==0},goog.string.internal.caseInsensitiveEquals=function(o,e){return o.toLowerCase()==e.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(o){return/^[\s\xa0]*$/.test(o)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(o){return o.trim()}:function(o){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(o)[1]},goog.string.internal.caseInsensitiveCompare=function(o,e){return o=String(o).toLowerCase(),e=String(e).toLowerCase(),o<e?-1:o==e?0:1},goog.string.internal.newLineToBr=function(o,e){return o.replace(/(\r\n|\r|\n)/g,e?"<br />":"<br>")},goog.string.internal.htmlEscape=function(o,e){if(e)o=o.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(o))return o;o.indexOf("&")!=-1&&(o=o.replace(goog.string.internal.AMP_RE_,"&amp;")),o.indexOf("<")!=-1&&(o=o.replace(goog.string.internal.LT_RE_,"&lt;")),o.indexOf(">")!=-1&&(o=o.replace(goog.string.internal.GT_RE_,"&gt;")),o.indexOf('"')!=-1&&(o=o.replace(goog.string.internal.QUOT_RE_,"&quot;")),o.indexOf("'")!=-1&&(o=o.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),o.indexOf("\0")!=-1&&(o=o.replace(goog.string.internal.NULL_RE_,"&#0;"))}return o},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(o,e){return goog.string.internal.newLineToBr(o.replace(/ /g," &#160;"),e)},goog.string.internal.contains=function(o,e){return o.indexOf(e)!=-1},goog.string.internal.caseInsensitiveContains=function(o,e){return goog.string.internal.contains(o.toLowerCase(),e.toLowerCase())},goog.string.internal.compareVersions=function(o,e){var r=0;o=goog.string.internal.trim(String(o)).split("."),e=goog.string.internal.trim(String(e)).split(".");for(var p=Math.max(o.length,e.length),t=0;r==0&&t<p;t++){var n=o[t]||"",i=e[t]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],n[0].length==0&&i[0].length==0)break;r=n[1].length==0?0:parseInt(n[1],10);var s=i[1].length==0?0:parseInt(i[1],10);r=goog.string.internal.compareElements_(r,s)||goog.string.internal.compareElements_(n[2].length==0,i[2].length==0)||goog.string.internal.compareElements_(n[2],i[2]),n=n[3],i=i[3]}while(r==0)}return r},goog.string.internal.compareElements_=function(o,e){return o<e?-1:o>e?1:0},goog.html.SafeUrl=function(o,e){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=o===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_&&e||"",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(o){return o instanceof goog.html.SafeUrl&&o.constructor===goog.html.SafeUrl&&o.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(o))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(o){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(o)},goog.html.SafeUrl.fromBlob=function(o){return o=goog.html.SafeUrl.isSafeMimeType(o.type)?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromMediaSource=function(o){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),o=o instanceof MediaSource?goog.fs.url.createObjectUrl(o):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(o){o=o.replace(/(%0A|%0D)/g,"");var e=o.match(goog.html.DATA_URL_PATTERN_);return e=e&&goog.html.SafeUrl.isSafeMimeType(e[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e?o:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"tel:")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(o){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(o))||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"fb-messenger://share")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromWhatsAppUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"whatsapp://send")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.fromSmsUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(o){var e=o.indexOf("#");if(0<e&&(o=o.substring(0,e)),e=o.match(/[?&]body=/gi),!e)return!0;if(1<e.length)return!1;if(o=o.match(/[?&]body=([^&]*)/)[1],!o)return!0;try{decodeURIComponent(o)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(o)},goog.html.SafeUrl.fromSshUrl=function(o){return goog.string.internal.caseInsensitiveStartsWith(o,"ssh://")||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(o,e){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,o,e)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(o,e,r){return(o=o.exec(e))?(o=o[1],(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map(function(p){return goog.string.Const.unwrap(p)})).indexOf(o)==-1&&(e=goog.html.SafeUrl.INNOCUOUS_STRING)):e=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromTrustedResourceUrl=function(o){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(o))},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(o){return o instanceof goog.html.SafeUrl?o:(o=typeof o=="object"&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),goog.html.SAFE_URL_PATTERN_.test(o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(o,e){return o instanceof goog.html.SafeUrl?o:(o=typeof o=="object"&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),e&&/^data:/i.test(o)&&(e=goog.html.SafeUrl.fromDataUrl(o),e.getTypedStringValue()==o)?e:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(o),"%s does not match the safe URL pattern",o)||(o=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(o)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeUrl(goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_,o)},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},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(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(o,";"),"Last character of style string is not ';': "+o),goog.asserts.assert(goog.string.internal.contains(o,":"),`Style string must contain at least one ':', to specify a "name: value" pair: `+o),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(o))},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(o){return o instanceof goog.html.SafeStyle&&o.constructor===goog.html.SafeStyle&&o.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=o,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(o){var e="",r;for(r in o){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("Name allows only [-_a-zA-Z0-9], got: "+r);var p=o[r];p!=null&&(p=Array.isArray(p)?goog.array.map(p,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(p),e+=r+":"+p+";")}return e?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(o){if(o instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(o).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(o=o instanceof goog.string.Const?goog.string.Const.unwrap(o):goog.html.SafeStyle.sanitizePropertyValueString_(String(o)),/[{;}]/.test(o))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[o]);return o},goog.html.SafeStyle.sanitizePropertyValueString_=function(o){var e=o.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");if(goog.html.SafeStyle.VALUE_RE_.test(e)){if(goog.html.SafeStyle.COMMENT_RE_.test(o))return goog.asserts.fail("String value disallows comments, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedQuotes_(o))return goog.asserts.fail("String value requires balanced quotes, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;if(!goog.html.SafeStyle.hasBalancedSquareBrackets_(o))return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING}else return goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+o),goog.html.SafeStyle.INNOCUOUS_STRING;return goog.html.SafeStyle.sanitizeUrl_(o)},goog.html.SafeStyle.hasBalancedQuotes_=function(o){for(var e=!0,r=!0,p=0;p<o.length;p++){var t=o.charAt(p);t=="'"&&r?e=!e:t=='"'&&e&&(r=!r)}return e&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(o){for(var e=!0,r=/^[-_a-zA-Z0-9]$/,p=0;p<o.length;p++){var t=o.charAt(p);if(t=="]"){if(e)return!1;e=!0}else if(t=="["){if(!e)return!1;e=!1}else if(!e&&!r.test(t))return!1}return e},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.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" "),goog.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(o){return o.replace(goog.html.SafeStyle.URL_RE_,function(e,r,p,t){var n="";return p=p.replace(/^(['"])(.*)\1$/,function(i,s,g){return n=s,g}),e=goog.html.SafeUrl.sanitize(p).getTypedStringValue(),r+n+e+n+t})},goog.html.SafeStyle.concat=function(o){var e="",r=function(p){Array.isArray(p)?goog.array.forEach(p,r):e+=goog.html.SafeStyle.unwrap(p)};return goog.array.forEach(arguments,r),e?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e):goog.html.SafeStyle.EMPTY},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(o,e){if(goog.string.internal.contains(o,"<"))throw Error("Selector does not allow '<', got: "+o);var r=o.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: "+o);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+o);return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),o=o+"{"+goog.html.SafeStyle.unwrap(e).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(o){for(var e={"(":")","[":"]"},r=[],p=0;p<o.length;p++){var t=o[p];if(e[t])r.push(e[t]);else if(goog.object.contains(e,t)&&r.pop()!=t)return!1}return r.length==0},goog.html.SafeStyleSheet.concat=function(o){var e="",r=function(p){Array.isArray(p)?goog.array.forEach(p,r):e+=goog.html.SafeStyleSheet.unwrap(p)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.fromConstant=function(o){return o=goog.string.Const.unwrap(o),o.length===0?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(o,"<"),"Forbidden '<' character in style sheet string: "+o),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(o))},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(o){return o instanceof goog.html.SafeStyleSheet&&o.constructor===goog.html.SafeStyleSheet&&o.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(o){return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(o)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=o,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var o=goog.labs.userAgent.util.getNavigator_();return o&&(o=o.userAgent)?o:""},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(o){goog.labs.userAgent.util.userAgent_=o||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(o){var e=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(e,o)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(o){var e=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(e,o)},goog.labs.userAgent.util.extractVersionTuples=function(o){for(var e=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,r=[],p;p=e.exec(o);)r.push([p[1],p[2],p[3]||void 0]);return r},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 o(t){return t=goog.array.find(t,p),r[t]||""}var e=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(e);e=goog.labs.userAgent.util.extractVersionTuples(e);var r={};goog.array.forEach(e,function(t){r[t[0]]=t[1]});var p=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?o(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?o(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?o(["Edg"]):goog.labs.userAgent.browser.isChrome()?o(["Chrome","CriOS","HeadlessChrome"]):(e=e[2])&&e[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(o){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),o)},goog.labs.userAgent.browser.getIEVersion_=function(o){var e=/rv: *([\d\.]*)/.exec(o);if(e&&e[1])return e[1];e="";var r=/MSIE +([\d\.]+)/.exec(o);if(r&&r[1])if(o=/Trident\/(\d.\d)/.exec(o),r[1]=="7.0")if(o&&o[1])switch(o[1]){case"4.0":e="8.0";break;case"5.0":e="9.0";break;case"6.0":e="10.0";break;case"7.0":e="11.0"}else e="7.0";else e=r[1];return e},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.ENABLE_ERROR_MESSAGES=goog.DEBUG,goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,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(o){return goog.html.SafeHtml.unwrapTrustedHTML(o).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(o){return o instanceof goog.html.SafeHtml&&o.constructor===goog.html.SafeHtml&&o.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?o.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+o+"' of type "+goog.typeOf(o)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(o){if(o instanceof goog.html.SafeHtml)return o;var e=typeof o=="object",r=null;return e&&o.implementsGoogI18nBidiDirectionalString&&(r=o.getDirection()),o=e&&o.implementsGoogStringTypedString?o.getTypedStringValue():String(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(o),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(o){return o instanceof goog.html.SafeHtml?o:(o=goog.html.SafeHtml.htmlEscape(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(o)),o.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(o){return o instanceof goog.html.SafeHtml?o:(o=goog.html.SafeHtml.htmlEscape(o),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(o)),o.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.comment=function(o){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!--"+goog.string.internal.htmlEscape(o)+"-->",null)},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(o,e,r){return goog.html.SafeHtml.verifyTagName(String(o)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(o),e,r)},goog.html.SafeHtml.verifyTagName=function(o){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+o+">.":"");if(o.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+o+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(o,e,r,p){o&&goog.html.TrustedResourceUrl.unwrap(o);var t={};return t.src=o||null,t.srcdoc=e&&goog.html.SafeHtml.unwrap(e),o=goog.html.SafeHtml.combineAttributes(t,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,p)},goog.html.SafeHtml.createSandboxIframe=function(o,e,r,p){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var t={};return t.src=o?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)):null,t.srcdoc=e||null,t.sandbox="",o=goog.html.SafeHtml.combineAttributes(t,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",o,p)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(o,e){return goog.html.TrustedResourceUrl.unwrap(o),o=goog.html.SafeHtml.combineAttributes({src:o},{},e),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",o)},goog.html.SafeHtml.createScript=function(o,e){for(var r in e){var p=r.toLowerCase();if(p=="language"||p=="src"||p=="text"||p=="type")throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+p+'" attribute':"")}for(r="",o=goog.array.concat(o),p=0;p<o.length;p++)r+=goog.html.SafeScript.unwrap(o[p]);return o=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e,o)},goog.html.SafeHtml.createStyle=function(o,e){e=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},e);var r="";o=goog.array.concat(o);for(var p=0;p<o.length;p++)r+=goog.html.SafeStyleSheet.unwrap(o[p]);return o=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",e,o)},goog.html.SafeHtml.createMetaRefresh=function(o,e){return o=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(o)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(o,";")&&(o="'"+o.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(e||0)+"; url="+o})},goog.html.SafeHtml.getAttrNameAndValue_=function(o,e,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if(e.toLowerCase()=="style")if(goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)r=goog.html.SafeHtml.getStyleValue_(r);else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");else{if(/^on/i.test(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+e+'" requires goog.string.Const value, "'+r+'" given.':"");if(e.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(typeof r=="string")r=goog.html.SafeUrl.sanitize(r).getTypedStringValue();else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+e+'" on tag "'+o+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.':"")}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(typeof r=="string"||typeof r=="number","String or number value expected, got "+typeof r+" with value: "+r),e+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(o){if(!goog.isObject(o))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof o+" given: "+o:"");return o instanceof goog.html.SafeStyle||(o=goog.html.SafeStyle.create(o)),goog.html.SafeStyle.unwrap(o)},goog.html.SafeHtml.createWithDir=function(o,e,r,p){return e=goog.html.SafeHtml.create(e,r,p),e.dir_=o,e},goog.html.SafeHtml.join=function(o,e){o=goog.html.SafeHtml.htmlEscape(o);var r=o.getDirection(),p=[],t=function(n){Array.isArray(n)?goog.array.forEach(n,t):(n=goog.html.SafeHtml.htmlEscape(n),p.push(goog.html.SafeHtml.unwrap(n)),n=n.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=n:n!=goog.i18n.bidi.Dir.NEUTRAL&&r!=n&&(r=null))};return goog.array.forEach(e,t),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(p.join(goog.html.SafeHtml.unwrap(o)),r)},goog.html.SafeHtml.concat=function(o){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(o,e){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=o,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(o,e){return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(o,e)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(o,e){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(o):o,this.dir_=e,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(o,e,r){var p=null,t="<"+o+goog.html.SafeHtml.stringifyAttributes(o,e);return r==null?r=[]:Array.isArray(r)||(r=[r]),goog.dom.tags.isVoidTag(o.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+o+"> does not allow content."),t+=">"):(p=goog.html.SafeHtml.concat(r),t+=">"+goog.html.SafeHtml.unwrap(p)+"</"+o+">",p=p.getDirection()),(o=e&&e.dir)&&(p=/^(ltr|rtl|auto)$/i.test(o)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,p)},goog.html.SafeHtml.stringifyAttributes=function(o,e){var r="";if(e)for(var p in e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(p))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+p+'".':"");var t=e[p];t!=null&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(o,p,t))}return r},goog.html.SafeHtml.combineAttributes=function(o,e,r){var p={},t;for(t in o)goog.asserts.assert(t.toLowerCase()==t,"Must be lower case"),p[t]=o[t];for(t in e)goog.asserts.assert(t.toLowerCase()==t,"Must be lower case"),p[t]=e[t];if(r)for(t in r){var n=t.toLowerCase();if(n in o)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+n+'" attribute, got "'+t+'" with value "'+r[t]+'"':"");n in e&&delete p[n],p[t]=r[t]}return p},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(o,e,r){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(e,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(o,e){return goog.asserts.assertString(goog.string.Const.unwrap(o),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(o)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(o,e,r){o.insertAdjacentHTML(e,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&&typeof document>"u")return!1;var o=document.createElement("div"),e=document.createElement("div");return e.appendChild(document.createElement("div")),o.appendChild(e),goog.DEBUG&&!o.firstChild?!1:(e=o.firstChild.firstChild,o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!e.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(o,e){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;o.lastChild;)o.removeChild(o.lastChild);o.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setInnerHtml=function(o,e){if(goog.asserts.ENABLE_ASSERTS){var r=o.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 "+o.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(o,e)},goog.dom.safe.setOuterHtml=function(o,e){o.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setFormElementAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLFormElement(o).action=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setButtonFormAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLButtonElement(o).formAction=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setInputFormAction=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),goog.dom.asserts.assertIsHTMLInputElement(o).formAction=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setStyle=function(o,e){o.style.cssText=goog.html.SafeStyle.unwrap(e)},goog.dom.safe.documentWrite=function(o,e){o.write(goog.html.SafeHtml.unwrapTrustedHTML(e))},goog.dom.safe.setAnchorHref=function(o,e){goog.dom.asserts.assertIsHTMLAnchorElement(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.href=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setImageSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLImageElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setAudioSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLAudioElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setVideoSrc=function(o,e){if(goog.dom.asserts.assertIsHTMLVideoElement(o),!(e instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(e);e=goog.html.SafeUrl.sanitizeAssertUnchanged(e,r)}o.src=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.setEmbedSrc=function(o,e){goog.dom.asserts.assertIsHTMLEmbedElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e)},goog.dom.safe.setFrameSrc=function(o,e){goog.dom.asserts.assertIsHTMLFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(e)},goog.dom.safe.setIframeSrc=function(o,e){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.src=goog.html.TrustedResourceUrl.unwrap(e)},goog.dom.safe.setIframeSrcdoc=function(o,e){goog.dom.asserts.assertIsHTMLIFrameElement(o),o.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(e)},goog.dom.safe.setLinkHrefAndRel=function(o,e,r){goog.dom.asserts.assertIsHTMLLinkElement(o),o.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(e instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),o.href=goog.html.TrustedResourceUrl.unwrap(e)):o.href=e instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(e):e instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(e):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(e))},goog.dom.safe.setObjectData=function(o,e){goog.dom.asserts.assertIsHTMLObjectElement(o),o.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e)},goog.dom.safe.setScriptSrc=function(o,e){goog.dom.asserts.assertIsHTMLScriptElement(o),o.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e),(e=goog.getScriptNonce())&&o.setAttribute("nonce",e)},goog.dom.safe.setScriptContent=function(o,e){goog.dom.asserts.assertIsHTMLScriptElement(o),o.text=goog.html.SafeScript.unwrapTrustedScript(e),(e=goog.getScriptNonce())&&o.setAttribute("nonce",e)},goog.dom.safe.setLocationHref=function(o,e){goog.dom.asserts.assertIsLocation(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.href=goog.html.SafeUrl.unwrap(e)},goog.dom.safe.assignLocation=function(o,e){goog.dom.asserts.assertIsLocation(o),e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.assign(goog.html.SafeUrl.unwrap(e))},goog.dom.safe.replaceLocation=function(o,e){e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),o.replace(goog.html.SafeUrl.unwrap(e))},goog.dom.safe.openInWindow=function(o,e,r,p,t){return o=o instanceof goog.html.SafeUrl?o:goog.html.SafeUrl.sanitizeAssertUnchanged(o),e=e||goog.global,r=r instanceof goog.string.Const?goog.string.Const.unwrap(r):r||"",e.open(goog.html.SafeUrl.unwrap(o),r,p,t)},goog.dom.safe.parseFromStringHtml=function(o,e){return goog.dom.safe.parseFromString(o,e,"text/html")},goog.dom.safe.parseFromString=function(o,e,r){return o.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(e),r)},goog.dom.safe.createImageFromBlob=function(o){if(!/^image\/.*/g.test(o.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var e=goog.global.URL.createObjectURL(o);return o=new goog.global.Image,o.onload=function(){goog.global.URL.revokeObjectURL(e)},goog.dom.safe.setImageSrc(o,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),e)),o},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(o,e){for(var r=o.split("%s"),p="",t=Array.prototype.slice.call(arguments,1);t.length&&1<r.length;)p+=r.shift()+t.shift();return p+r.join("%s")},goog.string.collapseWhitespace=function(o){return o.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(o){return o.length==0},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(o){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(o))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(o){return!/[^\t\n\r ]/.test(o)},goog.string.isAlpha=function(o){return!/[^a-zA-Z]/.test(o)},goog.string.isNumeric=function(o){return!/[^0-9]/.test(o)},goog.string.isAlphaNumeric=function(o){return!/[^a-zA-Z0-9]/.test(o)},goog.string.isSpace=function(o){return o==" "},goog.string.isUnicodeChar=function(o){return o.length==1&&" "<=o&&"~">=o||"€"<=o&&"�">=o},goog.string.stripNewlines=function(o){return o.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(o){return o.replace(/(\r\n|\r|\n)/g,`
290
290
  `)},goog.string.normalizeWhitespace=function(o){return o.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(o){return o.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(o){return o.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(o){return o.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(o){return o.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(o,e,r){if(o==e)return 0;if(!o)return-1;if(!e)return 1;for(var p=o.toLowerCase().match(r),t=e.toLowerCase().match(r),n=Math.min(p.length,t.length),i=0;i<n;i++){r=p[i];var s=t[i];if(r!=s)return o=parseInt(r,10),!isNaN(o)&&(e=parseInt(s,10),!isNaN(e)&&o-e)?o-e:r<s?-1:1}return p.length!=t.length?p.length-t.length:o<e?-1:1},goog.string.intAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\D+/g)},goog.string.floatAwareCompare=function(o,e){return goog.string.numberAwareCompare_(o,e,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(o){return encodeURIComponent(String(o))},goog.string.urlDecode=function(o){return decodeURIComponent(o.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(o,e){return o=goog.string.internal.htmlEscape(o,e),goog.string.DETECT_DOUBLE_ESCAPING&&(o=o.replace(goog.string.E_RE_,"&#101;")),o},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(o){return goog.string.contains(o,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(o):goog.string.unescapePureXmlEntities_(o):o},goog.string.unescapeEntitiesWithDocument=function(o,e){return goog.string.contains(o,"&")?goog.string.unescapeEntitiesUsingDom_(o,e):o},goog.string.unescapeEntitiesUsingDom_=function(o,e){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},p=e?e.createElement("div"):goog.global.document.createElement("div");return o.replace(goog.string.HTML_ENTITY_PATTERN_,function(t,n){var i=r[t];return i||(n.charAt(0)=="#"&&(n=Number("0"+n.substr(1)),isNaN(n)||(i=String.fromCharCode(n))),i||(goog.dom.safe.setInnerHtml(p,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),t+" ")),i=p.firstChild.nodeValue.slice(0,-1)),r[t]=i)})},goog.string.unescapePureXmlEntities_=function(o){return o.replace(/&([^;]+);/g,function(e,r){switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return r.charAt(0)!="#"||(r=Number("0"+r.substr(1)),isNaN(r))?e:String.fromCharCode(r)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(o,e){return goog.string.newLineToBr(o.replace(/ /g," &#160;"),e)},goog.string.preserveSpaces=function(o){return o.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(o,e){for(var r=e.length,p=0;p<r;p++){var t=r==1?e:e.charAt(p);if(o.charAt(0)==t&&o.charAt(o.length-1)==t)return o.substring(1,o.length-1)}return o},goog.string.truncate=function(o,e,r){return r&&(o=goog.string.unescapeEntities(o)),o.length>e&&(o=o.substring(0,e-3)+"..."),r&&(o=goog.string.htmlEscape(o)),o},goog.string.truncateMiddle=function(o,e,r,p){if(r&&(o=goog.string.unescapeEntities(o)),p&&o.length>e){p>e&&(p=e);var t=o.length-p;o=o.substring(0,e-p)+"..."+o.substring(t)}else o.length>e&&(p=Math.floor(e/2),t=o.length-p,o=o.substring(0,p+e%2)+"..."+o.substring(t));return r&&(o=goog.string.htmlEscape(o)),o},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(o){o=String(o);for(var e=['"'],r=0;r<o.length;r++){var p=o.charAt(r),t=p.charCodeAt(0);e[r+1]=goog.string.specialEscapeChars_[p]||(31<t&&127>t?p:goog.string.escapeChar(p))}return e.push('"'),e.join("")},goog.string.escapeString=function(o){for(var e=[],r=0;r<o.length;r++)e[r]=goog.string.escapeChar(o.charAt(r));return e.join("")},goog.string.escapeChar=function(o){if(o in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[o];if(o in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[o]=goog.string.specialEscapeChars_[o];var e=o.charCodeAt(0);if(31<e&&127>e)var r=o;else 256>e?(r="\\x",(16>e||256<e)&&(r+="0")):(r="\\u",4096>e&&(r+="0")),r+=e.toString(16).toUpperCase();return goog.string.jsEscapeCache_[o]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(o,e){return o&&e?o.split(e).length-1:0},goog.string.removeAt=function(o,e,r){var p=o;return 0<=e&&e<o.length&&0<r&&(p=o.substr(0,e)+o.substr(e+r,o.length-e-r)),p},goog.string.remove=function(o,e){return o.replace(e,"")},goog.string.removeAll=function(o,e){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,"")},goog.string.replaceAll=function(o,e,r){return e=new RegExp(goog.string.regExpEscape(e),"g"),o.replace(e,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(o){return String(o).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(o,e){return o.repeat(e)}:function(o,e){return Array(e+1).join(o)},goog.string.padNumber=function(o,e,r){return o=r!==void 0?o.toFixed(r):String(o),r=o.indexOf("."),r==-1&&(r=o.length),goog.string.repeat("0",Math.max(0,e-r))+o},goog.string.makeSafe=function(o){return o==null?"":String(o)},goog.string.buildString=function(o){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(o){for(var e=0,r=0;r<o.length;++r)e=31*e+o.charCodeAt(r)>>>0;return e},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(o){var e=Number(o);return e==0&&goog.string.isEmptyOrWhitespace(o)?NaN:e},goog.string.isLowerCamelCase=function(o){return/^[a-z]+([A-Z][a-z]*)*$/.test(o)},goog.string.isUpperCamelCase=function(o){return/^([A-Z][a-z]*)+$/.test(o)},goog.string.toCamelCase=function(o){return String(o).replace(/\-([a-z])/g,function(e,r){return r.toUpperCase()})},goog.string.toSelectorCase=function(o){return String(o).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(o,e){return e=typeof e=="string"?goog.string.regExpEscape(e):"\\s",o.replace(new RegExp("(^"+(e?"|["+e+"]+":"")+")([a-z])","g"),function(r,p,t){return p+t.toUpperCase()})},goog.string.capitalize=function(o){return String(o.charAt(0)).toUpperCase()+String(o.substr(1)).toLowerCase()},goog.string.parseInt=function(o){return isFinite(o)&&(o=String(o)),typeof o=="string"?/^\s*-?0x/i.test(o)?parseInt(o,16):parseInt(o,10):NaN},goog.string.splitLimit=function(o,e,r){o=o.split(e);for(var p=[];0<r&&o.length;)p.push(o.shift()),r--;return o.length&&p.push(o.join(e)),p},goog.string.lastComponent=function(o,e){if(e)typeof e=="string"&&(e=[e]);else return o;for(var r=-1,p=0;p<e.length;p++)if(e[p]!=""){var t=o.lastIndexOf(e[p]);t>r&&(r=t)}return r==-1?o:o.slice(r+1)},goog.string.editDistance=function(o,e){var r=[],p=[];if(o==e)return 0;if(!o.length||!e.length)return Math.max(o.length,e.length);for(var t=0;t<e.length+1;t++)r[t]=t;for(t=0;t<o.length;t++){p[0]=t+1;for(var n=0;n<e.length;n++)p[n+1]=Math.min(p[n]+1,r[n+1]+1,r[n]+Number(o[t]!=e[n]));for(n=0;n<r.length;n++)r[n]=p[n]}return p[e.length]},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 o=goog.labs.userAgent.util.getUserAgent();if(o){o=goog.labs.userAgent.util.extractVersionTuples(o);var e=goog.labs.userAgent.engine.getEngineTuple_(o);if(e)return e[0]=="Gecko"?goog.labs.userAgent.engine.getVersionForKey_(o,"Firefox"):e[1];o=o[0];var r;if(o&&(r=o[2])&&(r=/Trident\/([^\s;]+)/.exec(r)))return r[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(o){if(!goog.labs.userAgent.engine.isEdge())return o[1];for(var e=0;e<o.length;e++){var r=o[e];if(r[0]=="Edge")return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),o)},goog.labs.userAgent.engine.getVersionForKey_=function(o,e){return(o=goog.array.find(o,function(r){return e==r[0]}))&&o[1]||""},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.getVersion=function(){var o=goog.labs.userAgent.util.getUserAgent(),e="";return goog.labs.userAgent.platform.isWindows()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(o=e.exec(o))?o[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(o=e.exec(o))&&o[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(e=/Mac OS X ([0-9_.]+)/,e=(o=e.exec(o))?o[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isKaiOS()?(e=/(?:KaiOS)\/(\S+)/i,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isAndroid()?(e=/Android\s+([^\);]+)(\)|;)/,e=(o=e.exec(o))&&o[1]):goog.labs.userAgent.platform.isChromeOS()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(o=e.exec(o))&&o[1]),e||""},goog.labs.userAgent.platform.isVersionOrHigher=function(o){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),o)},goog.reflect={},goog.reflect.object=function(o,e){return e},goog.reflect.objectProperty=function(o,e){return o},goog.reflect.sinkValue=function(o){return goog.reflect.sinkValue[" "](o),o},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(o,e){try{return goog.reflect.sinkValue(o[e]),!0}catch{}return!1},goog.reflect.cache=function(o,e,r,p){return p=p?p(e):e,Object.prototype.hasOwnProperty.call(o,p)?o[p]:o[p]=r(e)},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 o=goog.userAgent.getNavigatorTyped();return o&&o.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.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 o=goog.userAgent.getNavigatorTyped();return!!o&&goog.string.contains(o.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.determineVersion_=function(){var o="",e=goog.userAgent.getVersionRegexResult_();return e&&(o=e?e[1]:""),goog.userAgent.IE&&(e=goog.userAgent.getDocumentMode_(),e!=null&&e>parseFloat(o))?String(e):o},goog.userAgent.getVersionRegexResult_=function(){var o=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(o);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(o);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(o);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(o)},goog.userAgent.getDocumentMode_=function(){var o=goog.global.document;return o?o.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(o,e){return goog.string.compareVersions(o,e)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(o){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,o,function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,o)})},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(o){return Number(goog.userAgent.DOCUMENT_MODE)>=o},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE){var o=goog.userAgent.getDocumentMode_();return o||parseInt(goog.userAgent.VERSION,10)||void 0}}(),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(o){return goog.string.contains(goog.crypt.base64.paddingChars_,o)},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_||typeof goog.global.btoa=="function",goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&typeof goog.global.atob=="function",goog.crypt.base64.encodeByteArray=function(o,e){goog.asserts.assert(goog.isArrayLike(o),"encodeByteArray takes an array as a parameter"),e===void 0&&(e=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),e=goog.crypt.base64.byteToCharMaps_[e];for(var r=[],p=0;p<o.length;p+=3){var t=o[p],n=p+1<o.length,i=n?o[p+1]:0,s=p+2<o.length,g=s?o[p+2]:0,l=t>>2;t=(t&3)<<4|i>>4,i=(i&15)<<2|g>>6,g&=63,s||(g=64,n||(i=64)),r.push(e[l],e[t],e[i]||"",e[g]||"")}return r.join("")},goog.crypt.base64.encodeString=function(o,e){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!e?goog.global.btoa(o):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(o),e)},goog.crypt.base64.decodeString=function(o,e){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!e)return goog.global.atob(o);var r="";return goog.crypt.base64.decodeStringInternal_(o,function(p){r+=String.fromCharCode(p)}),r},goog.crypt.base64.decodeStringToByteArray=function(o,e){var r=[];return goog.crypt.base64.decodeStringInternal_(o,function(p){r.push(p)}),r},goog.crypt.base64.decodeStringToUint8Array=function(o){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var e=o.length,r=3*e/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(o[e-1])&&(r=goog.crypt.base64.isPadding_(o[e-2])?r-2:r-1);var p=new Uint8Array(r),t=0;return goog.crypt.base64.decodeStringInternal_(o,function(n){p[t++]=n}),p.subarray(0,t)},goog.crypt.base64.decodeStringInternal_=function(o,e){function r(g){for(;p<o.length;){var l=o.charAt(p++),u=goog.crypt.base64.charToByteMap_[l];if(u!=null)return u;if(!goog.string.isEmptyOrWhitespace(l))throw Error("Unknown base64 encoding at char: "+l)}return g}goog.crypt.base64.init_();for(var p=0;;){var t=r(-1),n=r(0),i=r(64),s=r(64);if(s===64&&t===-1)break;e(t<<2|n>>4),i!=64&&(e(n<<4&240|i>>2),s!=64&&e(i<<6&192|s))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var o=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var p=o.concat(e[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=p;for(var t=0;t<p.length;t++){var n=p[t],i=goog.crypt.base64.charToByteMap_[n];i===void 0?goog.crypt.base64.charToByteMap_[n]=t:goog.asserts.assert(i===t)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(o){var e=o>>>0;o=Math.floor((o-e)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=e,jspb.utils.split64High=o},jspb.utils.splitInt64=function(o){var e=0>o;o=Math.abs(o);var r=o>>>0;o=Math.floor((o-r)/jspb.BinaryConstants.TWO_TO_32),o>>>=0,e&&(o=~o>>>0,r=(~r>>>0)+1,4294967295<r&&(r=0,o++,4294967295<o&&(o=0))),jspb.utils.split64Low=r,jspb.utils.split64High=o},jspb.utils.splitZigzag64=function(o){var e=0>o;o=2*Math.abs(o),jspb.utils.splitUint64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;e&&(o==0?r==0?r=o=4294967295:(r--,o=4294967295):o--),jspb.utils.split64Low=o,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)0<1/o?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(o))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(o>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|2139095040)>>>0;else if(o<jspb.BinaryConstants.FLOAT32_MIN)o=Math.round(o/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|o)>>>0;else{var r=Math.floor(Math.log(o)/Math.LN2);o*=Math.pow(2,-r),o=Math.round(o*jspb.BinaryConstants.TWO_TO_23),16777216<=o&&++r,jspb.utils.split64High=0,jspb.utils.split64Low=(e<<31|r+127<<23|o&8388607)>>>0}},jspb.utils.splitFloat64=function(o){var e=0>o?1:0;if(o=e?-o:o,o===0)jspb.utils.split64High=0<1/o?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(o))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(o>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(e<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(o<jspb.BinaryConstants.FLOAT64_MIN){var r=o/Math.pow(2,-1074);o=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(e<<31|o)>>>0,jspb.utils.split64Low=r>>>0}else{r=o;var p=0;if(2<=r)for(;2<=r&&1023>p;)p++,r/=2;else for(;1>r&&-1022<p;)r*=2,p--;r=o*Math.pow(2,-p),o=r*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(e<<31|p+1023<<20|o)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(o){var e=o.charCodeAt(0),r=o.charCodeAt(1),p=o.charCodeAt(2),t=o.charCodeAt(3),n=o.charCodeAt(4),i=o.charCodeAt(5),s=o.charCodeAt(6);o=o.charCodeAt(7),jspb.utils.split64Low=e+(r<<8)+(p<<16)+(t<<24)>>>0,jspb.utils.split64High=n+(i<<8)+(s<<16)+(o<<24)>>>0},jspb.utils.joinUint64=function(o,e){return e*jspb.BinaryConstants.TWO_TO_32+(o>>>0)},jspb.utils.joinInt64=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e>>>0,o==0&&(e=e+1>>>0)),o=jspb.utils.joinUint64(o,e),r?-o:o},jspb.utils.toZigzag64=function(o,e,r){var p=e>>31;return r(o<<1^p,(e<<1|o>>>31)^p)},jspb.utils.joinZigzag64=function(o,e){return jspb.utils.fromZigzag64(o,e,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(o,e,r){var p=-(o&1);return r((o>>>1|e<<31)^p,e>>>1^p)},jspb.utils.joinFloat32=function(o,e){e=2*(o>>31)+1;var r=o>>>23&255;return o&=8388607,r==255?o?NaN:1/0*e:r==0?e*Math.pow(2,-149)*o:e*Math.pow(2,r-150)*(o+Math.pow(2,23))},jspb.utils.joinFloat64=function(o,e){var r=2*(e>>31)+1,p=e>>>20&2047;return o=jspb.BinaryConstants.TWO_TO_32*(e&1048575)+o,p==2047?o?NaN:1/0*r:p==0?r*Math.pow(2,-1074)*o:r*Math.pow(2,p-1075)*(o+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(o,e){return String.fromCharCode(o>>>0&255,o>>>8&255,o>>>16&255,o>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(o,e){function r(t,n){return t=t?String(t):"",n?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+jspb.utils.joinUint64(o,e);var p=(o>>>24|e<<8)>>>0&16777215;return e=e>>16&65535,o=(o&16777215)+6777216*p+6710656*e,p+=8147497*e,e*=2,1e7<=o&&(p+=Math.floor(o/1e7),o%=1e7),1e7<=p&&(e+=Math.floor(p/1e7),p%=1e7),r(e,0)+r(p,e)+r(o,1)},jspb.utils.joinSignedDecimalString=function(o,e){var r=e&2147483648;return r&&(o=~o+1>>>0,e=~e+(o==0?1:0)>>>0),o=jspb.utils.joinUnsignedDecimalString(o,e),r?"-"+o:o},jspb.utils.hash64ToDecimalString=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinSignedDecimalString(o,r):jspb.utils.joinUnsignedDecimalString(o,r)},jspb.utils.hash64ArrayToDecimalStrings=function(o,e){for(var r=Array(o.length),p=0;p<o.length;p++)r[p]=jspb.utils.hash64ToDecimalString(o[p],e);return r},jspb.utils.decimalStringToHash64=function(o){function e(i,s){for(var g=0;8>g&&(i!==1||0<s);g++)s=i*t[g]+s,t[g]=s&255,s>>>=8}function r(){for(var i=0;8>i;i++)t[i]=~t[i]&255}jspb.asserts.assert(0<o.length);var p=!1;o[0]==="-"&&(p=!0,o=o.slice(1));for(var t=[0,0,0,0,0,0,0,0],n=0;n<o.length;n++)e(10,o.charCodeAt(n)-jspb.utils.ZERO_CHAR_CODE_);return p&&(r(),e(1,1)),goog.crypt.byteArrayToString(t)},jspb.utils.splitDecimalString=function(o){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o))},jspb.utils.toHexDigit_=function(o){return String.fromCharCode(10>o?jspb.utils.ZERO_CHAR_CODE_+o:jspb.utils.A_CHAR_CODE_-10+o)},jspb.utils.fromHexCharCode_=function(o){return o>=jspb.utils.A_CHAR_CODE_?o-jspb.utils.A_CHAR_CODE_+10:o-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(o){var e=Array(18);e[0]="0",e[1]="x";for(var r=0;8>r;r++){var p=o.charCodeAt(7-r);e[2*r+2]=jspb.utils.toHexDigit_(p>>4),e[2*r+3]=jspb.utils.toHexDigit_(p&15)}return e.join("")},jspb.utils.hexStringToHash64=function(o){o=o.toLowerCase(),jspb.asserts.assert(o.length==18),jspb.asserts.assert(o[0]=="0"),jspb.asserts.assert(o[1]=="x");for(var e="",r=0;8>r;r++){var p=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+2)),t=jspb.utils.fromHexCharCode_(o.charCodeAt(2*r+3));e=String.fromCharCode(16*p+t)+e}return e},jspb.utils.hash64ToNumber=function(o,e){jspb.utils.splitHash64(o),o=jspb.utils.split64Low;var r=jspb.utils.split64High;return e?jspb.utils.joinInt64(o,r):jspb.utils.joinUint64(o,r)},jspb.utils.numberToHash64=function(o){return jspb.utils.splitInt64(o),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(o,e,r){for(var p=0,t=e;t<r;t++)p+=o[t]>>7;return r-e-p},jspb.utils.countVarintFields=function(o,e,r,p){var t=0;if(p=8*p+jspb.BinaryConstants.WireType.VARINT,128>p)for(;e<r&&o[e++]==p;)for(t++;;){var n=o[e++];if(!(n&128))break}else for(;e<r;){for(n=p;128<n;){if(o[e]!=(n&127|128))return t;e++,n>>=7}if(o[e++]!=n)break;for(t++;n=o[e++],(n&128)!=0;);}return t},jspb.utils.countFixedFields_=function(o,e,r,p,t){var n=0;if(128>p)for(;e<r&&o[e++]==p;)n++,e+=t;else for(;e<r;){for(var i=p;128<i;){if(o[e++]!=(i&127|128))return n;i>>=7}if(o[e++]!=i)break;n++,e+=t}return n},jspb.utils.countFixed32Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(o,e,r,p){return jspb.utils.countFixedFields_(o,e,r,8*p+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(o,e,r,p){var t=0;for(p=8*p+jspb.BinaryConstants.WireType.DELIMITED;e<r;){for(var n=p;128<n;){if(o[e++]!=(n&127|128))return t;n>>=7}if(o[e++]!=n)break;t++;for(var i=0,s=1;n=o[e++],i+=(n&127)*s,s*=128,(n&128)!=0;);e+=i}return t},jspb.utils.debugBytesToTextFormat=function(o){var e='"';if(o){o=jspb.utils.byteSourceToUint8Array(o);for(var r=0;r<o.length;r++)e+="\\x",16>o[r]&&(e+="0"),e+=o[r].toString(16)}return e+'"'},jspb.utils.debugScalarToTextFormat=function(o){return typeof o=="string"?goog.string.quote(o):o.toString()},jspb.utils.stringToByteArray=function(o){for(var e=new Uint8Array(o.length),r=0;r<o.length;r++){var p=o.charCodeAt(r);if(255<p)throw Error("Conversion error: string contains codepoint outside of byte range");e[r]=p}return e},jspb.utils.byteSourceToUint8Array=function(o){return o.constructor===Uint8Array?o:o.constructor===ArrayBuffer||o.constructor===Array?new Uint8Array(o):o.constructor===String?goog.crypt.base64.decodeStringToUint8Array(o):o instanceof Uint8Array?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):(jspb.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(o,e,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,o&&this.setBlock(o,e,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(o,e,r){if(jspb.BinaryDecoder.instanceCache_.length){var p=jspb.BinaryDecoder.instanceCache_.pop();return o&&p.setBlock(o,e,r),p}return new jspb.BinaryDecoder(o,e,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(o,e,r){this.bytes_=jspb.utils.byteSourceToUint8Array(o),this.start_=e!==void 0?e:0,this.end_=r!==void 0?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(o){this.end_=o},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(o){this.cursor_=o},jspb.BinaryDecoder.prototype.advance=function(o){this.cursor_+=o,jspb.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(o){for(var e=128,r=0,p=0,t=0;4>t&&128<=e;t++)e=this.bytes_[this.cursor_++],r|=(e&127)<<7*t;if(128<=e&&(e=this.bytes_[this.cursor_++],r|=(e&127)<<28,p|=(e&127)>>4),128<=e)for(t=0;5>t&&128<=e;t++)e=this.bytes_[this.cursor_++],p|=(e&127)<<7*t+3;if(128>e)return o(r>>>0,p>>>0);jspb.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(o){return this.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryDecoder.prototype.readSplitFixed64=function(o){var e=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var p=0,t=0,n=r+7;n>=r;n--)p=p<<8|e[n],t=t<<8|e[n+4];return o(p,t)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;this.bytes_[this.cursor_]&128;)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(o){for(;128<o;)this.cursor_--,o>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var o=this.bytes_,e=o[this.cursor_+0],r=e&127;return 128>e?(this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+1],r|=(e&127)<<7,128>e?(this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+2],r|=(e&127)<<14,128>e?(this.cursor_+=3,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+3],r|=(e&127)<<21,128>e?(this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),r):(e=o[this.cursor_+4],r|=(e&15)<<28,128>e?(this.cursor_+=5,jspb.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&128<=o[this.cursor_++]&&jspb.asserts.assert(!1),jspb.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=function(){return~~this.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 o=this.readUnsignedVarint32();return o>>>1^-(o&1)},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 o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o},jspb.BinaryDecoder.prototype.readUint16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8|r<<16|p<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUint64(o,e)},jspb.BinaryDecoder.prototype.readUint64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinUnsignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readInt8=function(){var o=this.bytes_[this.cursor_+0];return this.cursor_+=1,jspb.asserts.assert(this.cursor_<=this.end_),o<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1];return this.cursor_+=2,jspb.asserts.assert(this.cursor_<=this.end_),(o<<0|e<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var o=this.bytes_[this.cursor_+0],e=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],p=this.bytes_[this.cursor_+3];return this.cursor_+=4,jspb.asserts.assert(this.cursor_<=this.end_),o<<0|e<<8|r<<16|p<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinInt64(o,e)},jspb.BinaryDecoder.prototype.readInt64String=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinSignedDecimalString(o,e)},jspb.BinaryDecoder.prototype.readFloat=function(){var o=this.readUint32();return jspb.utils.joinFloat32(o,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var o=this.readUint32(),e=this.readUint32();return jspb.utils.joinFloat64(o,e)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(o){var e=this.bytes_,r=this.cursor_;o=r+o;for(var p=[],t="";r<o;){var n=e[r++];if(128>n)p.push(n);else{if(192>n)continue;if(224>n){var i=e[r++];p.push((n&31)<<6|i&63)}else if(240>n){i=e[r++];var s=e[r++];p.push((n&15)<<12|(i&63)<<6|s&63)}else if(248>n){i=e[r++],s=e[r++];var g=e[r++];n=(n&7)<<18|(i&63)<<12|(s&63)<<6|g&63,n-=65536,p.push((n>>10&1023)+55296,(n&1023)+56320)}}8192<=p.length&&(t+=String.fromCharCode.apply(null,p),p.length=0)}return t+=goog.crypt.byteArrayToString(p),this.cursor_=r,t},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var o=this.readUnsignedVarint32();return this.readString(o)},jspb.BinaryDecoder.prototype.readBytes=function(o){if(0>o||this.cursor_+o>this.bytes_.length)return this.error_=!0,jspb.asserts.fail("Invalid byte length!"),new Uint8Array(0);var e=this.bytes_.subarray(this.cursor_,this.cursor_+o);return this.cursor_+=o,jspb.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var o=this.bytes_,e=this.cursor_,r=o[e+0],p=o[e+1],t=o[e+2],n=o[e+3],i=o[e+4],s=o[e+5],g=o[e+6];return o=o[e+7],this.cursor_+=8,String.fromCharCode(r,p,t,n,i,s,g,o)},jspb.BinaryReader=function(o,e,r){this.decoder_=jspb.BinaryDecoder.alloc(o,e,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(o,e,r){if(jspb.BinaryReader.instanceCache_.length){var p=jspb.BinaryReader.instanceCache_.pop();return o&&p.decoder_.setBlock(o,e,r),p}return new jspb.BinaryReader(o,e,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_},goog.exportProperty(jspb.BinaryReader.prototype,"getFieldNumber",jspb.BinaryReader.prototype.getFieldNumber),jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},goog.exportProperty(jspb.BinaryReader.prototype,"isDelimited",jspb.BinaryReader.prototype.isDelimited),jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},goog.exportProperty(jspb.BinaryReader.prototype,"isEndGroup",jspb.BinaryReader.prototype.isEndGroup),jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(o,e,r){this.decoder_.setBlock(o,e,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(o){this.decoder_.advance(o)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return jspb.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var o=this.decoder_.readUnsignedVarint32(),e=o>>>3;return o&=7,o!=jspb.BinaryConstants.WireType.VARINT&&o!=jspb.BinaryConstants.WireType.FIXED32&&o!=jspb.BinaryConstants.WireType.FIXED64&&o!=jspb.BinaryConstants.WireType.DELIMITED&&o!=jspb.BinaryConstants.WireType.START_GROUP&&o!=jspb.BinaryConstants.WireType.END_GROUP?(jspb.asserts.fail("Invalid wire type: %s (at position %s)",o,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=e,this.nextWireType_=o,!0)},goog.exportProperty(jspb.BinaryReader.prototype,"nextField",jspb.BinaryReader.prototype.nextField),jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var o=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==o;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(jspb.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)jspb.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var o=this.decoder_.readUnsignedVarint32();this.decoder_.advance(o)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(jspb.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(jspb.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){var o=this.nextField_;do{if(!this.nextField()){jspb.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=o&&(jspb.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}while(1)},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:jspb.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(o,e){this.readCallbacks_===null&&(this.readCallbacks_={}),jspb.asserts.assert(!this.readCallbacks_[o]),this.readCallbacks_[o]=e},jspb.BinaryReader.prototype.runReadCallback=function(o){return jspb.asserts.assert(this.readCallbacks_!==null),o=this.readCallbacks_[o],jspb.asserts.assert(o),o(this)},jspb.BinaryReader.prototype.readAny=function(o){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(o);var e=jspb.BinaryConstants.FieldType;switch(o){case e.DOUBLE:return this.readDouble();case e.FLOAT:return this.readFloat();case e.INT64:return this.readInt64();case e.UINT64:return this.readUint64();case e.INT32:return this.readInt32();case e.FIXED64:return this.readFixed64();case e.FIXED32:return this.readFixed32();case e.BOOL:return this.readBool();case e.STRING:return this.readString();case e.GROUP:jspb.asserts.fail("Group field type not supported in readAny()");case e.MESSAGE:jspb.asserts.fail("Message field type not supported in readAny()");case e.BYTES:return this.readBytes();case e.UINT32:return this.readUint32();case e.ENUM:return this.readEnum();case e.SFIXED32:return this.readSfixed32();case e.SFIXED64:return this.readSfixed64();case e.SINT32:return this.readSint32();case e.SINT64:return this.readSint64();case e.FHASH64:return this.readFixedHash64();case e.VHASH64:return this.readVarintHash64();default:jspb.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(o,e){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),p=this.decoder_.readUnsignedVarint32();p=this.decoder_.getCursor()+p,this.decoder_.setEnd(p),e(o,this),this.decoder_.setCursor(p),this.decoder_.setEnd(r)},goog.exportProperty(jspb.BinaryReader.prototype,"readMessage",jspb.BinaryReader.prototype.readMessage),jspb.BinaryReader.prototype.readGroup=function(o,e,r){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),jspb.asserts.assert(this.nextField_==o),r(e,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},goog.exportProperty(jspb.BinaryReader.prototype,"readGroup",jspb.BinaryReader.prototype.readGroup),jspb.BinaryReader.prototype.getFieldDecoder=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32(),e=this.decoder_.getCursor(),r=e+o;return o=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),e,o),this.decoder_.setCursor(r),o},jspb.BinaryReader.prototype.readInt32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt32",jspb.BinaryReader.prototype.readInt32),jspb.BinaryReader.prototype.readInt32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readInt64",jspb.BinaryReader.prototype.readInt64),jspb.BinaryReader.prototype.readInt64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint32",jspb.BinaryReader.prototype.readUint32),jspb.BinaryReader.prototype.readUint32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readUint64",jspb.BinaryReader.prototype.readUint64),jspb.BinaryReader.prototype.readUint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint32",jspb.BinaryReader.prototype.readSint32),jspb.BinaryReader.prototype.readSint64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSint64",jspb.BinaryReader.prototype.readSint64),jspb.BinaryReader.prototype.readSint64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed32",jspb.BinaryReader.prototype.readFixed32),jspb.BinaryReader.prototype.readFixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readFixed64",jspb.BinaryReader.prototype.readFixed64),jspb.BinaryReader.prototype.readFixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed32",jspb.BinaryReader.prototype.readSfixed32),jspb.BinaryReader.prototype.readSfixed32String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},goog.exportProperty(jspb.BinaryReader.prototype,"readSfixed64",jspb.BinaryReader.prototype.readSfixed64),jspb.BinaryReader.prototype.readSfixed64String=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},goog.exportProperty(jspb.BinaryReader.prototype,"readFloat",jspb.BinaryReader.prototype.readFloat),jspb.BinaryReader.prototype.readDouble=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},goog.exportProperty(jspb.BinaryReader.prototype,"readDouble",jspb.BinaryReader.prototype.readDouble),jspb.BinaryReader.prototype.readBool=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},goog.exportProperty(jspb.BinaryReader.prototype,"readBool",jspb.BinaryReader.prototype.readBool),jspb.BinaryReader.prototype.readEnum=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},goog.exportProperty(jspb.BinaryReader.prototype,"readEnum",jspb.BinaryReader.prototype.readEnum),jspb.BinaryReader.prototype.readString=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readString",jspb.BinaryReader.prototype.readString),jspb.BinaryReader.prototype.readBytes=function(){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var o=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(o)},goog.exportProperty(jspb.BinaryReader.prototype,"readBytes",jspb.BinaryReader.prototype.readBytes),jspb.BinaryReader.prototype.readVarintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(o)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(e,r){return jspb.utils.fromZigzag64(e,r,o)})},jspb.BinaryReader.prototype.readFixedHash64=function(){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(o){return jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(o)},jspb.BinaryReader.prototype.readPackedField_=function(o){jspb.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();e=this.decoder_.getCursor()+e;for(var r=[];this.decoder_.getCursor()<e;)r.push(o.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt32",jspb.BinaryReader.prototype.readPackedInt32),jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedInt64",jspb.BinaryReader.prototype.readPackedInt64),jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint32",jspb.BinaryReader.prototype.readPackedUint32),jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedUint64",jspb.BinaryReader.prototype.readPackedUint64),jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint32",jspb.BinaryReader.prototype.readPackedSint32),jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSint64",jspb.BinaryReader.prototype.readPackedSint64),jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed32",jspb.BinaryReader.prototype.readPackedFixed32),jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFixed64",jspb.BinaryReader.prototype.readPackedFixed64),jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed32",jspb.BinaryReader.prototype.readPackedSfixed32),jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedSfixed64",jspb.BinaryReader.prototype.readPackedSfixed64),jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedFloat",jspb.BinaryReader.prototype.readPackedFloat),jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedDouble",jspb.BinaryReader.prototype.readPackedDouble),jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedBool",jspb.BinaryReader.prototype.readPackedBool),jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},goog.exportProperty(jspb.BinaryReader.prototype,"readPackedEnum",jspb.BinaryReader.prototype.readPackedEnum),jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var o=this.buffer_;return this.buffer_=[],o},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(o,e){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);0<e||127<o;)this.buffer_.push(o&127|128),o=(o>>>7|e<<25)>>>0,e>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(o,e){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(e==Math.floor(e)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(o),this.writeUint32(e)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(o){for(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32);127<o;)this.buffer_.push(o&127|128),o>>>=7;this.buffer_.push(o)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(o){if(jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),0<=o)this.writeUnsignedVarint32(o);else{for(var e=0;9>e;e++)this.buffer_.push(o&127|128),o>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((o<<1^o>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(o){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(o))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(o){var e=this;jspb.utils.splitHash64(o),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,function(r,p){e.writeSplitVarint64(r>>>0,p>>>0)})},jspb.BinaryEncoder.prototype.writeUint8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&256>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&65536>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(0<=o&&o<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-128<=o&&128>o),this.buffer_.push(o>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(-32768<=o&&32768>o),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(o>>>0&255),this.buffer_.push(o>>>8&255),this.buffer_.push(o>>>16&255),this.buffer_.push(o>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_63&&o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(o),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(+o>=-jspb.BinaryConstants.TWO_TO_63&&+o<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(o)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT32_MAX&&o<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(o),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(o){jspb.asserts.assert(o===1/0||o===-1/0||isNaN(o)||o>=-jspb.BinaryConstants.FLOAT64_MAX&&o<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(o){jspb.asserts.assert(typeof o=="boolean"||typeof o=="number"),this.buffer_.push(o?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(o){jspb.asserts.assert(o==Math.floor(o)),jspb.asserts.assert(o>=-jspb.BinaryConstants.TWO_TO_31&&o<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(o)},jspb.BinaryEncoder.prototype.writeBytes=function(o){this.buffer_.push.apply(this.buffer_,o)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(o){jspb.utils.splitHash64(o),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(o){jspb.utils.splitHash64(o),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(o){var e=this.buffer_.length;jspb.asserts.assertString(o);for(var r=0;r<o.length;r++){var p=o.charCodeAt(r);if(128>p)this.buffer_.push(p);else if(2048>p)this.buffer_.push(p>>6|192),this.buffer_.push(p&63|128);else if(65536>p)if(55296<=p&&56319>=p&&r+1<o.length){var t=o.charCodeAt(r+1);56320<=t&&57343>=t&&(p=1024*(p-55296)+t-56320+65536,this.buffer_.push(p>>18|240),this.buffer_.push(p>>12&63|128),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128),r++)}else this.buffer_.push(p>>12|224),this.buffer_.push(p>>6&63|128),this.buffer_.push(p&63|128)}return this.buffer_.length-e},jspb.arith={},jspb.arith.UInt64=function(o,e){this.lo=o,this.hi=e},jspb.arith.UInt64.prototype.cmp=function(o){return this.hi<o.hi||this.hi==o.hi&&this.lo<o.lo?-1:this.hi==o.hi&&this.lo==o.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(this.hi&1)<<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!!(this.hi&2147483648)},jspb.arith.UInt64.prototype.lsb=function(){return!!(this.lo&1)},jspb.arith.UInt64.prototype.zero=function(){return this.lo==0&&this.hi==0},jspb.arith.UInt64.prototype.add=function(o){return new jspb.arith.UInt64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(o){return new jspb.arith.UInt64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(o,e){var r=o&65535;o>>>=16;var p=e&65535,t=e>>>16;for(e=r*p+65536*(r*t&65535)+65536*(o*p&65535),r=o*t+(r*t>>>16)+(o*p>>>16);4294967296<=e;)e-=4294967296,r+=1;return new jspb.arith.UInt64(e>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(o){var e=jspb.arith.UInt64.mul32x32(this.lo,o);return o=jspb.arith.UInt64.mul32x32(this.hi,o),o.hi=o.lo,o.lo=0,e.add(o)},jspb.arith.UInt64.prototype.div=function(o){if(o==0)return[];var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);o=new jspb.arith.UInt64(o,0);for(var p=new jspb.arith.UInt64(1,0);!o.msb();)o=o.leftShift(),p=p.leftShift();for(;!p.zero();)0>=o.cmp(r)&&(e=e.add(p),r=r.sub(o)),o=o.rightShift(),p=p.rightShift();return[e,r]},jspb.arith.UInt64.prototype.toString=function(){for(var o="",e=this;!e.zero();){e=e.div(10);var r=e[0];o=e[1].lo+o,e=r}return o==""&&(o="0"),o},jspb.arith.UInt64.fromString=function(o){for(var e=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),p=0;p<o.length;p++){if("0">o[p]||"9"<o[p])return null;var t=parseInt(o[p],10);r.lo=t,e=e.mul(10).add(r)}return e},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(o,e){this.lo=o,this.hi=e},jspb.arith.Int64.prototype.add=function(o){return new jspb.arith.Int64((this.lo+o.lo&4294967295)>>>0>>>0,((this.hi+o.hi&4294967295)>>>0)+(4294967296<=this.lo+o.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(o){return new jspb.arith.Int64((this.lo-o.lo&4294967295)>>>0>>>0,((this.hi-o.hi&4294967295)>>>0)-(0>this.lo-o.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 o=(this.hi&2147483648)!=0,e=new jspb.arith.UInt64(this.lo,this.hi);return o&&(e=new jspb.arith.UInt64(0,0).sub(e)),(o?"-":"")+e.toString()},jspb.arith.Int64.fromString=function(o){var e=0<o.length&&o[0]=="-";return e&&(o=o.substring(1)),o=jspb.arith.UInt64.fromString(o),o===null?null:(e&&(o=new jspb.arith.UInt64(0,0).sub(o)),new jspb.arith.Int64(o.lo,o.hi))},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(o){var e=this.encoder_.end();this.blocks_.push(e),this.blocks_.push(o),this.totalLength_+=e.length+o.length},jspb.BinaryWriter.prototype.beginDelimited_=function(o){return this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),o=this.encoder_.end(),this.blocks_.push(o),this.totalLength_+=o.length,o.push(this.totalLength_),o},jspb.BinaryWriter.prototype.endDelimited_=function(o){var e=o.pop();for(e=this.totalLength_+this.encoder_.length()-e,jspb.asserts.assert(0<=e);127<e;)o.push(e&127|128),e>>>=7,this.totalLength_++;o.push(e),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(o,e,r){this.appendUint8Array_(o.subarray(e,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(o,e,r){o!=null&&e!=null&&r!=null&&this.writeSerializedMessage(o,e,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){jspb.asserts.assert(this.bookmarks_.length==0);for(var o=new Uint8Array(this.totalLength_+this.encoder_.length()),e=this.blocks_,r=e.length,p=0,t=0;t<r;t++){var n=e[t];o.set(n,p),p+=n.length}return e=this.encoder_.end(),o.set(e,p),p+=e.length,jspb.asserts.assert(p==o.length),this.blocks_=[o],o},goog.exportProperty(jspb.BinaryWriter.prototype,"getResultBuffer",jspb.BinaryWriter.prototype.getResultBuffer),jspb.BinaryWriter.prototype.getResultBase64String=function(o){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),o)},jspb.BinaryWriter.prototype.beginSubMessage=function(o){this.bookmarks_.push(this.beginDelimited_(o))},jspb.BinaryWriter.prototype.endSubMessage=function(){jspb.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(o,e){jspb.asserts.assert(1<=o&&o==Math.floor(o)),this.encoder_.writeUnsignedVarint32(8*o+e)},jspb.BinaryWriter.prototype.writeAny=function(o,e,r){var p=jspb.BinaryConstants.FieldType;switch(o){case p.DOUBLE:this.writeDouble(e,r);break;case p.FLOAT:this.writeFloat(e,r);break;case p.INT64:this.writeInt64(e,r);break;case p.UINT64:this.writeUint64(e,r);break;case p.INT32:this.writeInt32(e,r);break;case p.FIXED64:this.writeFixed64(e,r);break;case p.FIXED32:this.writeFixed32(e,r);break;case p.BOOL:this.writeBool(e,r);break;case p.STRING:this.writeString(e,r);break;case p.GROUP:jspb.asserts.fail("Group field type not supported in writeAny()");break;case p.MESSAGE:jspb.asserts.fail("Message field type not supported in writeAny()");break;case p.BYTES:this.writeBytes(e,r);break;case p.UINT32:this.writeUint32(e,r);break;case p.ENUM:this.writeEnum(e,r);break;case p.SFIXED32:this.writeSfixed32(e,r);break;case p.SFIXED64:this.writeSfixed64(e,r);break;case p.SINT32:this.writeSint32(e,r);break;case p.SINT64:this.writeSint64(e,r);break;case p.FHASH64:this.writeFixedHash64(e,r);break;case p.VHASH64:this.writeVarintHash64(e,r);break;default:jspb.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(e))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(e))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(e))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(e))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(e))},jspb.BinaryWriter.prototype.writeInt32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt32",jspb.BinaryWriter.prototype.writeInt32),jspb.BinaryWriter.prototype.writeInt32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeInt64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeInt64",jspb.BinaryWriter.prototype.writeInt64),jspb.BinaryWriter.prototype.writeInt64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeUint32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint32",jspb.BinaryWriter.prototype.writeUint32),jspb.BinaryWriter.prototype.writeUint32String=function(o,e){e!=null&&(e=parseInt(e,10),jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(o,e))},jspb.BinaryWriter.prototype.writeUint64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeUint64",jspb.BinaryWriter.prototype.writeUint64),jspb.BinaryWriter.prototype.writeUint64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSint32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint32",jspb.BinaryWriter.prototype.writeSint32),jspb.BinaryWriter.prototype.writeSint64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(o,e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSint64",jspb.BinaryWriter.prototype.writeSint64),jspb.BinaryWriter.prototype.writeSintHash64=function(o,e){e!=null&&this.writeZigzagVarintHash64_(o,e)},jspb.BinaryWriter.prototype.writeSint64String=function(o,e){e!=null&&this.writeZigzagVarint64String_(o,e)},jspb.BinaryWriter.prototype.writeFixed32=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed32",jspb.BinaryWriter.prototype.writeFixed32),jspb.BinaryWriter.prototype.writeFixed64=function(o,e){e!=null&&(jspb.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFixed64",jspb.BinaryWriter.prototype.writeFixed64),jspb.BinaryWriter.prototype.writeFixed64String=function(o,e){e!=null&&(e=jspb.arith.UInt64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed32",jspb.BinaryWriter.prototype.writeSfixed32),jspb.BinaryWriter.prototype.writeSfixed64=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeSfixed64",jspb.BinaryWriter.prototype.writeSfixed64),jspb.BinaryWriter.prototype.writeSfixed64String=function(o,e){e!=null&&(e=jspb.arith.Int64.fromString(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e.lo,e.hi))},jspb.BinaryWriter.prototype.writeFloat=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeFloat",jspb.BinaryWriter.prototype.writeFloat),jspb.BinaryWriter.prototype.writeDouble=function(o,e){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeDouble",jspb.BinaryWriter.prototype.writeDouble),jspb.BinaryWriter.prototype.writeBool=function(o,e){e!=null&&(jspb.asserts.assert(typeof e=="boolean"||typeof e=="number"),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBool",jspb.BinaryWriter.prototype.writeBool),jspb.BinaryWriter.prototype.writeEnum=function(o,e){e!=null&&(jspb.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeEnum",jspb.BinaryWriter.prototype.writeEnum),jspb.BinaryWriter.prototype.writeString=function(o,e){e!=null&&(o=this.beginDelimited_(o),this.encoder_.writeString(e),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeString",jspb.BinaryWriter.prototype.writeString),jspb.BinaryWriter.prototype.writeBytes=function(o,e){e!=null&&(e=jspb.utils.byteSourceToUint8Array(e),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),this.appendUint8Array_(e))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeBytes",jspb.BinaryWriter.prototype.writeBytes),jspb.BinaryWriter.prototype.writeMessage=function(o,e,r){e!=null&&(o=this.beginDelimited_(o),r(e,this),this.endDelimited_(o))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeMessage",jspb.BinaryWriter.prototype.writeMessage),jspb.BinaryWriter.prototype.writeMessageSet=function(o,e,r){e!=null&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(o),o=this.beginDelimited_(3),r(e,this),this.endDelimited_(o),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(o,e,r){e!=null&&(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e,this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP))},goog.exportProperty(jspb.BinaryWriter.prototype,"writeGroup",jspb.BinaryWriter.prototype.writeGroup),jspb.BinaryWriter.prototype.writeFixedHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(e))},jspb.BinaryWriter.prototype.writeVarintHash64=function(o,e){e!=null&&(jspb.asserts.assert(e.length==8),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(e))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(e,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(e,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(o,e,r){this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.VARINT);var p=this.encoder_;jspb.utils.toZigzag64(e,r,function(t,n){p.writeSplitVarint64(t>>>0,n>>>0)})},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt32",jspb.BinaryWriter.prototype.writeRepeatedInt32),jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedInt64",jspb.BinaryWriter.prototype.writeRepeatedInt64),jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitFixed64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(o,e,r,p){if(e!=null)for(var t=0;t<e.length;t++)this.writeSplitZigzagVarint64(o,r(e[t]),p(e[t]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeInt64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint32",jspb.BinaryWriter.prototype.writeRepeatedUint32),jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint32String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUnsignedVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedUint64",jspb.BinaryWriter.prototype.writeRepeatedUint64),jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeUint64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint32_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint32",jspb.BinaryWriter.prototype.writeRepeatedSint32),jspb.BinaryWriter.prototype.writeRepeatedSint64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64_(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSint64",jspb.BinaryWriter.prototype.writeRepeatedSint64),jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarint64String_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeZigzagVarintHash64_(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed32",jspb.BinaryWriter.prototype.writeRepeatedFixed32),jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64",jspb.BinaryWriter.prototype.writeRepeatedFixed64),jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixed64String(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFixed64String",jspb.BinaryWriter.prototype.writeRepeatedFixed64String),jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed32(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed32",jspb.BinaryWriter.prototype.writeRepeatedSfixed32),jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedSfixed64",jspb.BinaryWriter.prototype.writeRepeatedSfixed64),jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeSfixed64String(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFloat(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedFloat",jspb.BinaryWriter.prototype.writeRepeatedFloat),jspb.BinaryWriter.prototype.writeRepeatedDouble=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeDouble(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedDouble",jspb.BinaryWriter.prototype.writeRepeatedDouble),jspb.BinaryWriter.prototype.writeRepeatedBool=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBool(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBool",jspb.BinaryWriter.prototype.writeRepeatedBool),jspb.BinaryWriter.prototype.writeRepeatedEnum=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeEnum(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedEnum",jspb.BinaryWriter.prototype.writeRepeatedEnum),jspb.BinaryWriter.prototype.writeRepeatedString=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeString(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedString",jspb.BinaryWriter.prototype.writeRepeatedString),jspb.BinaryWriter.prototype.writeRepeatedBytes=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeBytes(o,e[r])},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedBytes",jspb.BinaryWriter.prototype.writeRepeatedBytes),jspb.BinaryWriter.prototype.writeRepeatedMessage=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++){var t=this.beginDelimited_(o);r(e[p],this),this.endDelimited_(t)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedMessage",jspb.BinaryWriter.prototype.writeRepeatedMessage),jspb.BinaryWriter.prototype.writeRepeatedGroup=function(o,e,r){if(e!=null)for(var p=0;p<e.length;p++)this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.START_GROUP),r(e[p],this),this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.END_GROUP)},goog.exportProperty(jspb.BinaryWriter.prototype,"writeRepeatedGroup",jspb.BinaryWriter.prototype.writeRepeatedGroup),jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeFixedHash64(o,e[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(o,e){if(e!=null)for(var r=0;r<e.length;r++)this.writeVarintHash64(o,e[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt32",jspb.BinaryWriter.prototype.writePackedInt32),jspb.BinaryWriter.prototype.writePackedInt32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeSignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedInt64",jspb.BinaryWriter.prototype.writePackedInt64),jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitFixed64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=0;t<e.length;t++)this.encoder_.writeSplitVarint64(r(e[t]),p(e[t]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(o,e,r,p){if(e!=null){o=this.beginDelimited_(o);for(var t=this.encoder_,n=0;n<e.length;n++)jspb.utils.toZigzag64(r(e[n]),p(e[n]),function(i,s){t.writeSplitVarint64(i>>>0,s>>>0)});this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.Int64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint32",jspb.BinaryWriter.prototype.writePackedUint32),jspb.BinaryWriter.prototype.writePackedUint32String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(e[r],10));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedUint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeUnsignedVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedUint64",jspb.BinaryWriter.prototype.writePackedUint64),jspb.BinaryWriter.prototype.writePackedUint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++){var p=jspb.arith.UInt64.fromString(e[r]);this.encoder_.writeSplitVarint64(p.lo,p.hi)}this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSint32=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint32(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint32",jspb.BinaryWriter.prototype.writePackedSint32),jspb.BinaryWriter.prototype.writePackedSint64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarint64(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSint64",jspb.BinaryWriter.prototype.writePackedSint64),jspb.BinaryWriter.prototype.writePackedSint64String=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e[r]));this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeZigzagVarintHash64(e[r]);this.endDelimited_(o)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeUint32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed32",jspb.BinaryWriter.prototype.writePackedFixed32),jspb.BinaryWriter.prototype.writePackedFixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeUint64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFixed64",jspb.BinaryWriter.prototype.writePackedFixed64),jspb.BinaryWriter.prototype.writePackedFixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++){var r=jspb.arith.UInt64.fromString(e[o]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeInt32(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed32",jspb.BinaryWriter.prototype.writePackedSfixed32),jspb.BinaryWriter.prototype.writePackedSfixed64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedSfixed64",jspb.BinaryWriter.prototype.writePackedSfixed64),jspb.BinaryWriter.prototype.writePackedSfixed64String=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeInt64String(e[o])},jspb.BinaryWriter.prototype.writePackedFloat=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*e.length),o=0;o<e.length;o++)this.encoder_.writeFloat(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedFloat",jspb.BinaryWriter.prototype.writePackedFloat),jspb.BinaryWriter.prototype.writePackedDouble=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeDouble(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedDouble",jspb.BinaryWriter.prototype.writePackedDouble),jspb.BinaryWriter.prototype.writePackedBool=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(e.length),o=0;o<e.length;o++)this.encoder_.writeBool(e[o])},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedBool",jspb.BinaryWriter.prototype.writePackedBool),jspb.BinaryWriter.prototype.writePackedEnum=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeEnum(e[r]);this.endDelimited_(o)}},goog.exportProperty(jspb.BinaryWriter.prototype,"writePackedEnum",jspb.BinaryWriter.prototype.writePackedEnum),jspb.BinaryWriter.prototype.writePackedFixedHash64=function(o,e){if(e!=null&&e.length)for(this.writeFieldHeader_(o,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*e.length),o=0;o<e.length;o++)this.encoder_.writeFixedHash64(e[o])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(o,e){if(e!=null&&e.length){o=this.beginDelimited_(o);for(var r=0;r<e.length;r++)this.encoder_.writeVarintHash64(e[r]);this.endDelimited_(o)}},jspb.Map=function(o,e){this.arr_=o,this.valueCtor_=e,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},goog.exportSymbol("jspb.Map",jspb.Map),jspb.Map.prototype.loadFromArray_=function(){for(var o=0;o<this.arr_.length;o++){var e=this.arr_[o],r=e[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,e[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var o=this.map_,e;for(e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var r=o[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,o=this.stringKeys_(),o.sort(),e=0;e<o.length;e++){var p=this.map_[o[e]];(r=p.valueWrapper)&&r.toArray(),this.arr_.push([p.key,p.value])}this.arrClean=!0}return this.arr_},goog.exportProperty(jspb.Map.prototype,"toArray",jspb.Map.prototype.toArray),jspb.Map.prototype.toObject=function(o,e){for(var r=this.toArray(),p=[],t=0;t<r.length;t++){var n=this.map_[r[t][0].toString()];this.wrapEntry_(n);var i=n.valueWrapper;i?(jspb.asserts.assert(e),p.push([n.key,e(o,i)])):p.push([n.key,n.value])}return p},goog.exportProperty(jspb.Map.prototype,"toObject",jspb.Map.prototype.toObject),jspb.Map.fromObject=function(o,e,r){e=new jspb.Map([],e);for(var p=0;p<o.length;p++){var t=o[p][0],n=r(o[p][1]);e.set(t,n)}return e},goog.exportProperty(jspb.Map,"fromObject",jspb.Map.fromObject),jspb.Map.ArrayIteratorIterable_=function(o){this.idx_=0,this.arr_=o},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},goog.exportProperty(jspb.Map.prototype,"getLength",jspb.Map.prototype.getLength),jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},goog.exportProperty(jspb.Map.prototype,"clear",jspb.Map.prototype.clear),jspb.Map.prototype.del=function(o){o=o.toString();var e=this.map_.hasOwnProperty(o);return delete this.map_[o],this.arrClean=!1,e},goog.exportProperty(jspb.Map.prototype,"del",jspb.Map.prototype.del),jspb.Map.prototype.getEntryList=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,p.value])}return o},goog.exportProperty(jspb.Map.prototype,"getEntryList",jspb.Map.prototype.getEntryList),jspb.Map.prototype.entries=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++){var p=this.map_[e[r]];o.push([p.key,this.wrapEntry_(p)])}return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"entries",jspb.Map.prototype.entries),jspb.Map.prototype.keys=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.map_[e[r]].key);return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"keys",jspb.Map.prototype.keys),jspb.Map.prototype.values=function(){var o=[],e=this.stringKeys_();e.sort();for(var r=0;r<e.length;r++)o.push(this.wrapEntry_(this.map_[e[r]]));return new jspb.Map.ArrayIteratorIterable_(o)},goog.exportProperty(jspb.Map.prototype,"values",jspb.Map.prototype.values),jspb.Map.prototype.forEach=function(o,e){var r=this.stringKeys_();r.sort();for(var p=0;p<r.length;p++){var t=this.map_[r[p]];o.call(e,this.wrapEntry_(t),t.key,this)}},goog.exportProperty(jspb.Map.prototype,"forEach",jspb.Map.prototype.forEach),jspb.Map.prototype.set=function(o,e){var r=new jspb.Map.Entry_(o);return this.valueCtor_?(r.valueWrapper=e,r.value=e.toArray()):r.value=e,this.map_[o.toString()]=r,this.arrClean=!1,this},goog.exportProperty(jspb.Map.prototype,"set",jspb.Map.prototype.set),jspb.Map.prototype.wrapEntry_=function(o){return this.valueCtor_?(o.valueWrapper||(o.valueWrapper=new this.valueCtor_(o.value)),o.valueWrapper):o.value},jspb.Map.prototype.get=function(o){if(o=this.map_[o.toString()])return this.wrapEntry_(o)},goog.exportProperty(jspb.Map.prototype,"get",jspb.Map.prototype.get),jspb.Map.prototype.has=function(o){return o.toString()in this.map_},goog.exportProperty(jspb.Map.prototype,"has",jspb.Map.prototype.has),jspb.Map.prototype.serializeBinary=function(o,e,r,p,t){var n=this.stringKeys_();n.sort();for(var i=0;i<n.length;i++){var s=this.map_[n[i]];e.beginSubMessage(o),r.call(e,1,s.key),this.valueCtor_?p.call(e,2,this.wrapEntry_(s),t):p.call(e,2,s.value),e.endSubMessage()}},goog.exportProperty(jspb.Map.prototype,"serializeBinary",jspb.Map.prototype.serializeBinary),jspb.Map.deserializeBinary=function(o,e,r,p,t,n,i){for(;e.nextField()&&!e.isEndGroup();){var s=e.getFieldNumber();s==1?n=r.call(e):s==2&&(o.valueCtor_?(jspb.asserts.assert(t),i||(i=new o.valueCtor_),p.call(e,i,t)):i=p.call(e))}jspb.asserts.assert(n!=null),jspb.asserts.assert(i!=null),o.set(n,i)},goog.exportProperty(jspb.Map,"deserializeBinary",jspb.Map.deserializeBinary),jspb.Map.prototype.stringKeys_=function(){var o=this.map_,e=[],r;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.push(r);return e},jspb.Map.Entry_=function(o,e){this.key=o,this.value=e,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(o,e,r,p,t){this.fieldIndex=o,this.fieldName=e,this.ctor=r,this.toObjectFn=p,this.isRepeated=t},goog.exportSymbol("jspb.ExtensionFieldInfo",jspb.ExtensionFieldInfo),jspb.ExtensionFieldBinaryInfo=function(o,e,r,p,t,n){this.fieldInfo=o,this.binaryReaderFn=e,this.binaryWriterFn=r,this.binaryMessageSerializeFn=p,this.binaryMessageDeserializeFn=t,this.isPacked=n},goog.exportSymbol("jspb.ExtensionFieldBinaryInfo",jspb.ExtensionFieldBinaryInfo),jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},goog.exportProperty(jspb.ExtensionFieldInfo.prototype,"isMessageType",jspb.ExtensionFieldInfo.prototype.isMessageType),jspb.Message=function(){},goog.exportSymbol("jspb.Message",jspb.Message),jspb.Message.GENERATE_TO_OBJECT=!0,goog.exportProperty(jspb.Message,"GENERATE_TO_OBJECT",jspb.Message.GENERATE_TO_OBJECT),jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,goog.exportProperty(jspb.Message,"GENERATE_FROM_OBJECT",jspb.Message.GENERATE_FROM_OBJECT),jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_=typeof Uint8Array=="function",jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},goog.exportProperty(jspb.Message.prototype,"getJsPbMessageId",jspb.Message.prototype.getJsPbMessageId),jspb.Message.getIndex_=function(o,e){return e+o.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(o,e){return e-o.arrayIndexOffset_},jspb.Message.initialize=function(o,e,r,p,t,n){if(o.wrappers_=null,e||(e=r?[r]:[]),o.messageId_=r?String(r):void 0,o.arrayIndexOffset_=r===0?-1:0,o.array=e,jspb.Message.initPivotAndExtensionObject_(o,p),o.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(o.repeatedFields=t),t)for(e=0;e<t.length;e++)r=t[e],r<o.pivot_?(r=jspb.Message.getIndex_(o,r),o.array[r]=o.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[r]=o.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(n&&n.length)for(e=0;e<n.length;e++)jspb.Message.computeOneofCase(o,n[e])},goog.exportProperty(jspb.Message,"initialize",jspb.Message.initialize),jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(o){return jspb.Message.ASSUME_LOCAL_ARRAYS?o instanceof Array:Array.isArray(o)},jspb.Message.isExtensionObject_=function(o){return o!==null&&typeof o=="object"&&!jspb.Message.isArray_(o)&&!(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(o,e){var r=o.array.length,p=-1;if(r&&(p=r-1,r=o.array[p],jspb.Message.isExtensionObject_(r))){o.pivot_=jspb.Message.getFieldNumber_(o,p),o.extensionObject_=r;return}-1<e?(o.pivot_=Math.max(e,jspb.Message.getFieldNumber_(o,p+1)),o.extensionObject_=null):o.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(o){var e=jspb.Message.getIndex_(o,o.pivot_);o.array[e]||(o.extensionObject_=o.array[e]={})},jspb.Message.toObjectList=function(o,e,r){for(var p=[],t=0;t<o.length;t++)p[t]=e.call(o[t],r,o[t]);return p},goog.exportProperty(jspb.Message,"toObjectList",jspb.Message.toObjectList),jspb.Message.toObjectExtension=function(o,e,r,p,t){for(var n in r){var i=r[n],s=p.call(o,i);if(s!=null){for(var g in i.fieldName)if(i.fieldName.hasOwnProperty(g))break;e[g]=i.toObjectFn?i.isRepeated?jspb.Message.toObjectList(s,i.toObjectFn,t):i.toObjectFn(t,s):s}}},goog.exportProperty(jspb.Message,"toObjectExtension",jspb.Message.toObjectExtension),jspb.Message.serializeBinaryExtensions=function(o,e,r,p){for(var t in r){var n=r[t],i=n.fieldInfo;if(!n.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var s=p.call(o,i);if(s!=null)if(i.isMessageType())if(n.binaryMessageSerializeFn)n.binaryWriterFn.call(e,i.fieldIndex,s,n.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else n.binaryWriterFn.call(e,i.fieldIndex,s)}},goog.exportProperty(jspb.Message,"serializeBinaryExtensions",jspb.Message.serializeBinaryExtensions),jspb.Message.readBinaryExtension=function(o,e,r,p,t){var n=r[e.getFieldNumber()];if(n){if(r=n.fieldInfo,!n.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var i=new r.ctor;n.binaryReaderFn.call(e,i,n.binaryMessageDeserializeFn)}else i=n.binaryReaderFn.call(e);r.isRepeated&&!n.isPacked?(e=p.call(o,r))?e.push(i):t.call(o,r,[i]):t.call(o,r,i)}else e.skipField()},goog.exportProperty(jspb.Message,"readBinaryExtension",jspb.Message.readBinaryExtension),jspb.Message.getField=function(o,e){if(e<o.pivot_){e=jspb.Message.getIndex_(o,e);var r=o.array[e];return r===jspb.Message.EMPTY_LIST_SENTINEL_?o.array[e]=[]:r}if(o.extensionObject_)return r=o.extensionObject_[e],r===jspb.Message.EMPTY_LIST_SENTINEL_?o.extensionObject_[e]=[]:r},goog.exportProperty(jspb.Message,"getField",jspb.Message.getField),jspb.Message.getRepeatedField=function(o,e){return jspb.Message.getField(o,e)},goog.exportProperty(jspb.Message,"getRepeatedField",jspb.Message.getRepeatedField),jspb.Message.getOptionalFloatingPointField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:+o},goog.exportProperty(jspb.Message,"getOptionalFloatingPointField",jspb.Message.getOptionalFloatingPointField),jspb.Message.getBooleanField=function(o,e){return o=jspb.Message.getField(o,e),o==null?o:!!o},goog.exportProperty(jspb.Message,"getBooleanField",jspb.Message.getBooleanField),jspb.Message.getRepeatedFloatingPointField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=+r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedFloatingPointField",jspb.Message.getRepeatedFloatingPointField),jspb.Message.getRepeatedBooleanField=function(o,e){var r=jspb.Message.getRepeatedField(o,e);if(o.convertedPrimitiveFields_||(o.convertedPrimitiveFields_={}),!o.convertedPrimitiveFields_[e]){for(var p=0;p<r.length;p++)r[p]=!!r[p];o.convertedPrimitiveFields_[e]=!0}return r},goog.exportProperty(jspb.Message,"getRepeatedBooleanField",jspb.Message.getRepeatedBooleanField),jspb.Message.bytesAsB64=function(o){return o==null||typeof o=="string"?o:jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array?goog.crypt.base64.encodeByteArray(o):(jspb.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsB64",jspb.Message.bytesAsB64),jspb.Message.bytesAsU8=function(o){return o==null||o instanceof Uint8Array?o:typeof o=="string"?goog.crypt.base64.decodeStringToUint8Array(o):(jspb.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(o)),null)},goog.exportProperty(jspb.Message,"bytesAsU8",jspb.Message.bytesAsU8),jspb.Message.bytesListAsB64=function(o){return jspb.Message.assertConsistentTypes_(o),o.length&&typeof o[0]!="string"?goog.array.map(o,jspb.Message.bytesAsB64):o},goog.exportProperty(jspb.Message,"bytesListAsB64",jspb.Message.bytesListAsB64),jspb.Message.bytesListAsU8=function(o){return jspb.Message.assertConsistentTypes_(o),!o.length||o[0]instanceof Uint8Array?o:goog.array.map(o,jspb.Message.bytesAsU8)},goog.exportProperty(jspb.Message,"bytesListAsU8",jspb.Message.bytesListAsU8),jspb.Message.assertConsistentTypes_=function(o){if(goog.DEBUG&&o&&1<o.length){var e=goog.typeOf(o[0]);goog.array.forEach(o,function(r){goog.typeOf(r)!=e&&jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(r)+" expected "+e)})}},jspb.Message.getFieldWithDefault=function(o,e,r){return o=jspb.Message.getField(o,e),o??r},goog.exportProperty(jspb.Message,"getFieldWithDefault",jspb.Message.getFieldWithDefault),jspb.Message.getBooleanFieldWithDefault=function(o,e,r){return o=jspb.Message.getBooleanField(o,e),o??r},goog.exportProperty(jspb.Message,"getBooleanFieldWithDefault",jspb.Message.getBooleanFieldWithDefault),jspb.Message.getFloatingPointFieldWithDefault=function(o,e,r){return o=jspb.Message.getOptionalFloatingPointField(o,e),o??r},goog.exportProperty(jspb.Message,"getFloatingPointFieldWithDefault",jspb.Message.getFloatingPointFieldWithDefault),jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,goog.exportProperty(jspb.Message,"getFieldProto3",jspb.Message.getFieldProto3),jspb.Message.getMapField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),e in o.wrappers_)return o.wrappers_[e];var t=jspb.Message.getField(o,e);if(!t){if(r)return;t=[],jspb.Message.setField(o,e,t)}return o.wrappers_[e]=new jspb.Map(t,p)},goog.exportProperty(jspb.Message,"getMapField",jspb.Message.getMapField),jspb.Message.setField=function(o,e,r){return jspb.asserts.assertInstanceof(o,jspb.Message),e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(o),o.extensionObject_[e]=r),o},goog.exportProperty(jspb.Message,"setField",jspb.Message.setField),jspb.Message.setProto3IntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3IntField",jspb.Message.setProto3IntField),jspb.Message.setProto3FloatField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3FloatField",jspb.Message.setProto3FloatField),jspb.Message.setProto3BooleanField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,!1)},goog.exportProperty(jspb.Message,"setProto3BooleanField",jspb.Message.setProto3BooleanField),jspb.Message.setProto3StringField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3StringField",jspb.Message.setProto3StringField),jspb.Message.setProto3BytesField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"")},goog.exportProperty(jspb.Message,"setProto3BytesField",jspb.Message.setProto3BytesField),jspb.Message.setProto3EnumField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,0)},goog.exportProperty(jspb.Message,"setProto3EnumField",jspb.Message.setProto3EnumField),jspb.Message.setProto3StringIntField=function(o,e,r){return jspb.Message.setFieldIgnoringDefault_(o,e,r,"0")},goog.exportProperty(jspb.Message,"setProto3StringIntField",jspb.Message.setProto3StringIntField),jspb.Message.setFieldIgnoringDefault_=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),r!==p?jspb.Message.setField(o,e,r):e<o.pivot_?o.array[jspb.Message.getIndex_(o,e)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(o),delete o.extensionObject_[e]),o},jspb.Message.addToRepeatedField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),e=jspb.Message.getRepeatedField(o,e),p!=null?e.splice(p,0,r):e.push(r),o},goog.exportProperty(jspb.Message,"addToRepeatedField",jspb.Message.addToRepeatedField),jspb.Message.setOneofField=function(o,e,r,p){return jspb.asserts.assertInstanceof(o,jspb.Message),(r=jspb.Message.computeOneofCase(o,r))&&r!==e&&p!==void 0&&(o.wrappers_&&r in o.wrappers_&&(o.wrappers_[r]=void 0),jspb.Message.setField(o,r,void 0)),jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setOneofField",jspb.Message.setOneofField),jspb.Message.computeOneofCase=function(o,e){for(var r,p,t=0;t<e.length;t++){var n=e[t],i=jspb.Message.getField(o,n);i!=null&&(r=n,p=i,jspb.Message.setField(o,n,void 0))}return r?(jspb.Message.setField(o,r,p),r):0},goog.exportProperty(jspb.Message,"computeOneofCase",jspb.Message.computeOneofCase),jspb.Message.getWrapperField=function(o,e,r,p){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){var t=jspb.Message.getField(o,r);(p||t)&&(o.wrappers_[r]=new e(t))}return o.wrappers_[r]},goog.exportProperty(jspb.Message,"getWrapperField",jspb.Message.getWrapperField),jspb.Message.getRepeatedWrapperField=function(o,e,r){return jspb.Message.wrapRepeatedField_(o,e,r),e=o.wrappers_[r],e==jspb.Message.EMPTY_LIST_SENTINEL_&&(e=o.wrappers_[r]=[]),e},goog.exportProperty(jspb.Message,"getRepeatedWrapperField",jspb.Message.getRepeatedWrapperField),jspb.Message.wrapRepeatedField_=function(o,e,r){if(o.wrappers_||(o.wrappers_={}),!o.wrappers_[r]){for(var p=jspb.Message.getRepeatedField(o,r),t=[],n=0;n<p.length;n++)t[n]=new e(p[n]);o.wrappers_[r]=t}},jspb.Message.setWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var p=r&&r.toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setWrapperField",jspb.Message.setWrapperField),jspb.Message.setOneofWrapperField=function(o,e,r,p){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={});var t=p&&p.toArray();return o.wrappers_[e]=p,jspb.Message.setOneofField(o,e,r,t)},goog.exportProperty(jspb.Message,"setOneofWrapperField",jspb.Message.setOneofWrapperField),jspb.Message.setRepeatedWrapperField=function(o,e,r){jspb.asserts.assertInstanceof(o,jspb.Message),o.wrappers_||(o.wrappers_={}),r=r||[];for(var p=[],t=0;t<r.length;t++)p[t]=r[t].toArray();return o.wrappers_[e]=r,jspb.Message.setField(o,e,p)},goog.exportProperty(jspb.Message,"setRepeatedWrapperField",jspb.Message.setRepeatedWrapperField),jspb.Message.addToRepeatedWrapperField=function(o,e,r,p,t){jspb.Message.wrapRepeatedField_(o,p,e);var n=o.wrappers_[e];return n||(n=o.wrappers_[e]=[]),r=r||new p,o=jspb.Message.getRepeatedField(o,e),t!=null?(n.splice(t,0,r),o.splice(t,0,r.toArray())):(n.push(r),o.push(r.toArray())),r},goog.exportProperty(jspb.Message,"addToRepeatedWrapperField",jspb.Message.addToRepeatedWrapperField),jspb.Message.toMap=function(o,e,r,p){for(var t={},n=0;n<o.length;n++)t[e.call(o[n])]=r?r.call(o[n],p,o[n]):o[n];return t},goog.exportProperty(jspb.Message,"toMap",jspb.Message.toMap),jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var o in this.wrappers_){var e=this.wrappers_[o];if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&e[r].toArray();else e&&e.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},goog.exportProperty(jspb.Message.prototype,"toArray",jspb.Message.prototype.toArray),jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(o){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var e=o.fieldIndex;if(o.isRepeated){if(o.isMessageType())return this.wrappers_[e]||(this.wrappers_[e]=goog.array.map(this.extensionObject_[e]||[],function(r){return new o.ctor(r)})),this.wrappers_[e]}else if(o.isMessageType())return!this.wrappers_[e]&&this.extensionObject_[e]&&(this.wrappers_[e]=new o.ctor(this.extensionObject_[e])),this.wrappers_[e];return this.extensionObject_[e]}},goog.exportProperty(jspb.Message.prototype,"getExtension",jspb.Message.prototype.getExtension),jspb.Message.prototype.setExtension=function(o,e){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=o.fieldIndex;return o.isRepeated?(e=e||[],o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=goog.array.map(e,function(p){return p.toArray()})):this.extensionObject_[r]=e):o.isMessageType()?(this.wrappers_[r]=e,this.extensionObject_[r]=e&&e.toArray()):this.extensionObject_[r]=e,this},goog.exportProperty(jspb.Message.prototype,"setExtension",jspb.Message.prototype.setExtension),jspb.Message.difference=function(o,e){if(!(o instanceof e.constructor))throw Error("Messages have different types.");var r=o.toArray();e=e.toArray();var p=[],t=0,n=r.length>e.length?r.length:e.length;for(o.getJsPbMessageId()&&(p[0]=o.getJsPbMessageId(),t=1);t<n;t++)jspb.Message.compareFields(r[t],e[t])||(p[t]=e[t]);return new o.constructor(p)},goog.exportProperty(jspb.Message,"difference",jspb.Message.difference),jspb.Message.equals=function(o,e){return o==e||!(!o||!e)&&o instanceof e.constructor&&jspb.Message.compareFields(o.toArray(),e.toArray())},goog.exportProperty(jspb.Message,"equals",jspb.Message.equals),jspb.Message.compareExtensions=function(o,e){o=o||{},e=e||{};var r={},p;for(p in o)r[p]=0;for(p in e)r[p]=0;for(p in r)if(!jspb.Message.compareFields(o[p],e[p]))return!1;return!0},goog.exportProperty(jspb.Message,"compareExtensions",jspb.Message.compareExtensions),jspb.Message.compareFields=function(o,e){if(o==e)return!0;if(!goog.isObject(o)||!goog.isObject(e))return typeof o=="number"&&isNaN(o)||typeof e=="number"&&isNaN(e)?String(o)==String(e):!1;if(o.constructor!=e.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o.constructor===Uint8Array){if(o.length!=e.length)return!1;for(var r=0;r<o.length;r++)if(o[r]!=e[r])return!1;return!0}if(o.constructor===Array){var p=void 0,t=void 0,n=Math.max(o.length,e.length);for(r=0;r<n;r++){var i=o[r],s=e[r];if(i&&i.constructor==Object&&(jspb.asserts.assert(p===void 0),jspb.asserts.assert(r===o.length-1),p=i,i=void 0),s&&s.constructor==Object&&(jspb.asserts.assert(t===void 0),jspb.asserts.assert(r===e.length-1),t=s,s=void 0),!jspb.Message.compareFields(i,s))return!1}return p||t?(p=p||{},t=t||{},jspb.Message.compareExtensions(p,t)):!0}if(o.constructor===Object)return jspb.Message.compareExtensions(o,e);throw Error("Invalid type in JSPB array")},goog.exportProperty(jspb.Message,"compareFields",jspb.Message.compareFields),jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"cloneMessage",jspb.Message.prototype.cloneMessage),jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},goog.exportProperty(jspb.Message.prototype,"clone",jspb.Message.prototype.clone),jspb.Message.clone=function(o){return jspb.Message.cloneMessage(o)},goog.exportProperty(jspb.Message,"clone",jspb.Message.clone),jspb.Message.cloneMessage=function(o){return new o.constructor(jspb.Message.clone_(o.toArray()))},jspb.Message.copyInto=function(o,e){jspb.asserts.assertInstanceof(o,jspb.Message),jspb.asserts.assertInstanceof(e,jspb.Message),jspb.asserts.assert(o.constructor==e.constructor,"Copy source and target message should have the same type."),o=jspb.Message.clone(o);for(var r=e.toArray(),p=o.toArray(),t=r.length=0;t<p.length;t++)r[t]=p[t];e.wrappers_=o.wrappers_,e.extensionObject_=o.extensionObject_},goog.exportProperty(jspb.Message,"copyInto",jspb.Message.copyInto),jspb.Message.clone_=function(o){if(Array.isArray(o)){for(var e=Array(o.length),r=0;r<o.length;r++){var p=o[r];p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p)}return e}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&o instanceof Uint8Array)return new Uint8Array(o);e={};for(r in o)p=o[r],p!=null&&(e[r]=typeof p=="object"?jspb.Message.clone_(jspb.asserts.assert(p)):p);return e},jspb.Message.registerMessageType=function(o,e){e.messageId=o},goog.exportProperty(jspb.Message,"registerMessageType",jspb.Message.registerMessageType),jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},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})(googleProtobuf),function(o){var e=googleProtobuf,r=e,p=function(){return this||window||p||self||Function("return this")()}.call(null);r.exportSymbol("proto.proto.stream.v1.AddStreamRequest",null,p),r.exportSymbol("proto.proto.stream.v1.AddStreamResponse",null,p),r.exportSymbol("proto.proto.stream.v1.ListStreamsRequest",null,p),r.exportSymbol("proto.proto.stream.v1.ListStreamsResponse",null,p),r.exportSymbol("proto.proto.stream.v1.RemoveStreamRequest",null,p),r.exportSymbol("proto.proto.stream.v1.RemoveStreamResponse",null,p),proto.proto.stream.v1.ListStreamsRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.proto.stream.v1.ListStreamsRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.proto.stream.v1.ListStreamsRequest.displayName="proto.proto.stream.v1.ListStreamsRequest"),proto.proto.stream.v1.ListStreamsResponse=function(t){e.Message.initialize(this,t,0,-1,proto.proto.stream.v1.ListStreamsResponse.repeatedFields_,null)},r.inherits(proto.proto.stream.v1.ListStreamsResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.proto.stream.v1.ListStreamsResponse.displayName="proto.proto.stream.v1.ListStreamsResponse"),proto.proto.stream.v1.AddStreamRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.proto.stream.v1.AddStreamRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.proto.stream.v1.AddStreamRequest.displayName="proto.proto.stream.v1.AddStreamRequest"),proto.proto.stream.v1.AddStreamResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.proto.stream.v1.AddStreamResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.proto.stream.v1.AddStreamResponse.displayName="proto.proto.stream.v1.AddStreamResponse"),proto.proto.stream.v1.RemoveStreamRequest=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.proto.stream.v1.RemoveStreamRequest,e.Message),r.DEBUG&&!COMPILED&&(proto.proto.stream.v1.RemoveStreamRequest.displayName="proto.proto.stream.v1.RemoveStreamRequest"),proto.proto.stream.v1.RemoveStreamResponse=function(t){e.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.proto.stream.v1.RemoveStreamResponse,e.Message),r.DEBUG&&!COMPILED&&(proto.proto.stream.v1.RemoveStreamResponse.displayName="proto.proto.stream.v1.RemoveStreamResponse"),e.Message.GENERATE_TO_OBJECT&&(proto.proto.stream.v1.ListStreamsRequest.prototype.toObject=function(t){return proto.proto.stream.v1.ListStreamsRequest.toObject(t,this)},proto.proto.stream.v1.ListStreamsRequest.toObject=function(t,n){var i={};return t&&(i.$jspbMessageInstance=n),i}),proto.proto.stream.v1.ListStreamsRequest.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.proto.stream.v1.ListStreamsRequest;return proto.proto.stream.v1.ListStreamsRequest.deserializeBinaryFromReader(i,n)},proto.proto.stream.v1.ListStreamsRequest.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){default:n.skipField();break}}return t},proto.proto.stream.v1.ListStreamsRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.proto.stream.v1.ListStreamsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.proto.stream.v1.ListStreamsRequest.serializeBinaryToWriter=function(t,n){},proto.proto.stream.v1.ListStreamsResponse.repeatedFields_=[1],e.Message.GENERATE_TO_OBJECT&&(proto.proto.stream.v1.ListStreamsResponse.prototype.toObject=function(t){return proto.proto.stream.v1.ListStreamsResponse.toObject(t,this)},proto.proto.stream.v1.ListStreamsResponse.toObject=function(t,n){var i,s={namesList:(i=e.Message.getRepeatedField(n,1))==null?void 0:i};return t&&(s.$jspbMessageInstance=n),s}),proto.proto.stream.v1.ListStreamsResponse.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.proto.stream.v1.ListStreamsResponse;return proto.proto.stream.v1.ListStreamsResponse.deserializeBinaryFromReader(i,n)},proto.proto.stream.v1.ListStreamsResponse.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.addNames(s);break;default:n.skipField();break}}return t},proto.proto.stream.v1.ListStreamsResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.proto.stream.v1.ListStreamsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.proto.stream.v1.ListStreamsResponse.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getNamesList(),i.length>0&&n.writeRepeatedString(1,i)},proto.proto.stream.v1.ListStreamsResponse.prototype.getNamesList=function(){return e.Message.getRepeatedField(this,1)},proto.proto.stream.v1.ListStreamsResponse.prototype.setNamesList=function(t){return e.Message.setField(this,1,t||[])},proto.proto.stream.v1.ListStreamsResponse.prototype.addNames=function(t,n){return e.Message.addToRepeatedField(this,1,t,n)},proto.proto.stream.v1.ListStreamsResponse.prototype.clearNamesList=function(){return this.setNamesList([])},e.Message.GENERATE_TO_OBJECT&&(proto.proto.stream.v1.AddStreamRequest.prototype.toObject=function(t){return proto.proto.stream.v1.AddStreamRequest.toObject(t,this)},proto.proto.stream.v1.AddStreamRequest.toObject=function(t,n){var i={name:e.Message.getFieldWithDefault(n,1,"")};return t&&(i.$jspbMessageInstance=n),i}),proto.proto.stream.v1.AddStreamRequest.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.proto.stream.v1.AddStreamRequest;return proto.proto.stream.v1.AddStreamRequest.deserializeBinaryFromReader(i,n)},proto.proto.stream.v1.AddStreamRequest.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;default:n.skipField();break}}return t},proto.proto.stream.v1.AddStreamRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.proto.stream.v1.AddStreamRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.proto.stream.v1.AddStreamRequest.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getName(),i.length>0&&n.writeString(1,i)},proto.proto.stream.v1.AddStreamRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.proto.stream.v1.AddStreamRequest.prototype.setName=function(t){return e.Message.setProto3StringField(this,1,t)},e.Message.GENERATE_TO_OBJECT&&(proto.proto.stream.v1.AddStreamResponse.prototype.toObject=function(t){return proto.proto.stream.v1.AddStreamResponse.toObject(t,this)},proto.proto.stream.v1.AddStreamResponse.toObject=function(t,n){var i={};return t&&(i.$jspbMessageInstance=n),i}),proto.proto.stream.v1.AddStreamResponse.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.proto.stream.v1.AddStreamResponse;return proto.proto.stream.v1.AddStreamResponse.deserializeBinaryFromReader(i,n)},proto.proto.stream.v1.AddStreamResponse.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){default:n.skipField();break}}return t},proto.proto.stream.v1.AddStreamResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.proto.stream.v1.AddStreamResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.proto.stream.v1.AddStreamResponse.serializeBinaryToWriter=function(t,n){},e.Message.GENERATE_TO_OBJECT&&(proto.proto.stream.v1.RemoveStreamRequest.prototype.toObject=function(t){return proto.proto.stream.v1.RemoveStreamRequest.toObject(t,this)},proto.proto.stream.v1.RemoveStreamRequest.toObject=function(t,n){var i={name:e.Message.getFieldWithDefault(n,1,"")};return t&&(i.$jspbMessageInstance=n),i}),proto.proto.stream.v1.RemoveStreamRequest.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.proto.stream.v1.RemoveStreamRequest;return proto.proto.stream.v1.RemoveStreamRequest.deserializeBinaryFromReader(i,n)},proto.proto.stream.v1.RemoveStreamRequest.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){case 1:var s=n.readString();t.setName(s);break;default:n.skipField();break}}return t},proto.proto.stream.v1.RemoveStreamRequest.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.proto.stream.v1.RemoveStreamRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.proto.stream.v1.RemoveStreamRequest.serializeBinaryToWriter=function(t,n){var i=void 0;i=t.getName(),i.length>0&&n.writeString(1,i)},proto.proto.stream.v1.RemoveStreamRequest.prototype.getName=function(){return e.Message.getFieldWithDefault(this,1,"")},proto.proto.stream.v1.RemoveStreamRequest.prototype.setName=function(t){return e.Message.setProto3StringField(this,1,t)},e.Message.GENERATE_TO_OBJECT&&(proto.proto.stream.v1.RemoveStreamResponse.prototype.toObject=function(t){return proto.proto.stream.v1.RemoveStreamResponse.toObject(t,this)},proto.proto.stream.v1.RemoveStreamResponse.toObject=function(t,n){var i={};return t&&(i.$jspbMessageInstance=n),i}),proto.proto.stream.v1.RemoveStreamResponse.deserializeBinary=function(t){var n=new e.BinaryReader(t),i=new proto.proto.stream.v1.RemoveStreamResponse;return proto.proto.stream.v1.RemoveStreamResponse.deserializeBinaryFromReader(i,n)},proto.proto.stream.v1.RemoveStreamResponse.deserializeBinaryFromReader=function(t,n){for(;n.nextField()&&!n.isEndGroup();){var i=n.getFieldNumber();switch(i){default:n.skipField();break}}return t},proto.proto.stream.v1.RemoveStreamResponse.prototype.serializeBinary=function(){var t=new e.BinaryWriter;return proto.proto.stream.v1.RemoveStreamResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.proto.stream.v1.RemoveStreamResponse.serializeBinaryToWriter=function(t,n){},r.object.extend(o,proto.proto.stream.v1)}(stream_pb);var grpcWebClient={};(function(o){(function(e,r){for(var p in r)e[p]=r[p];r.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})})(o,function(){var e={418:function(p,t){(function(n,i){for(var s in i)n[s]=i[s]})(t,function(n){var i={};function s(g){if(i[g])return i[g].exports;var l=i[g]={i:g,l:!1,exports:{}};return n[g].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=n,s.c=i,s.i=function(g){return g},s.d=function(g,l,u){s.o(g,l)||Object.defineProperty(g,l,{configurable:!1,enumerable:!0,get:u})},s.n=function(g){var l=g&&g.__esModule?function(){return g.default}:function(){return g};return s.d(l,"a",l),l},s.o=function(g,l){return Object.prototype.hasOwnProperty.call(g,l)},s.p="",s(s.s=1)}([function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var g=s(3),l=function(){function u(c,m){c===void 0&&(c={}),m===void 0&&(m={splitValues:!1});var h,y=this;this.headersMap={},c&&(typeof Headers<"u"&&c instanceof Headers?g.getHeaderKeys(c).forEach(function(f){g.getHeaderValues(c,f).forEach(function(d){m.splitValues?y.append(f,g.splitHeaderValue(d)):y.append(f,d)})}):typeof(h=c)=="object"&&typeof h.headersMap=="object"&&typeof h.forEach=="function"?c.forEach(function(f,d){y.append(f,d)}):typeof Map<"u"&&c instanceof Map?c.forEach(function(f,d){y.append(d,f)}):typeof c=="string"?this.appendFromString(c):typeof c=="object"&&Object.getOwnPropertyNames(c).forEach(function(f){var d=c[f];Array.isArray(d)?d.forEach(function(b){y.append(f,b)}):y.append(f,d)}))}return u.prototype.appendFromString=function(c){for(var m=c.split(`\r
291
291
  `),h=0;h<m.length;h++){var y=m[h],f=y.indexOf(":");if(f>0){var d=y.substring(0,f).trim(),b=y.substring(f+1).trim();this.append(d,b)}}},u.prototype.delete=function(c,m){var h=g.normalizeName(c);if(m===void 0)delete this.headersMap[h];else{var y=this.headersMap[h];if(y){var f=y.indexOf(m);f>=0&&y.splice(f,1),y.length===0&&delete this.headersMap[h]}}},u.prototype.append=function(c,m){var h=this,y=g.normalizeName(c);Array.isArray(this.headersMap[y])||(this.headersMap[y]=[]),Array.isArray(m)?m.forEach(function(f){h.headersMap[y].push(g.normalizeValue(f))}):this.headersMap[y].push(g.normalizeValue(m))},u.prototype.set=function(c,m){var h=g.normalizeName(c);if(Array.isArray(m)){var y=[];m.forEach(function(f){y.push(g.normalizeValue(f))}),this.headersMap[h]=y}else this.headersMap[h]=[g.normalizeValue(m)]},u.prototype.has=function(c,m){var h=this.headersMap[g.normalizeName(c)];if(!Array.isArray(h))return!1;if(m!==void 0){var y=g.normalizeValue(m);return h.indexOf(y)>=0}return!0},u.prototype.get=function(c){var m=this.headersMap[g.normalizeName(c)];return m!==void 0?m.concat():[]},u.prototype.forEach=function(c){var m=this;Object.getOwnPropertyNames(this.headersMap).forEach(function(h){c(h,m.headersMap[h])},this)},u.prototype.toHeaders=function(){if(typeof Headers<"u"){var c=new Headers;return this.forEach(function(m,h){h.forEach(function(y){c.append(m,y)})}),c}throw new Error("Headers class is not defined")},u}();i.BrowserHeaders=l},function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var g=s(0);i.BrowserHeaders=g.BrowserHeaders},function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.iterateHeaders=function(g,l){for(var u=g[Symbol.iterator](),c=u.next();!c.done;)l(c.value[0]),c=u.next()},i.iterateHeadersKeys=function(g,l){for(var u=g.keys(),c=u.next();!c.done;)l(c.value),c=u.next()}},function(n,i,s){Object.defineProperty(i,"__esModule",{value:!0});var g=s(2);i.normalizeName=function(l){if(typeof l!="string"&&(l=String(l)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(l))throw new TypeError("Invalid character in header field name");return l.toLowerCase()},i.normalizeValue=function(l){return typeof l!="string"&&(l=String(l)),l},i.getHeaderValues=function(l,u){var c=l;if(c instanceof Headers&&c.getAll)return c.getAll(u);var m=c.get(u);return m&&typeof m=="string"?[m]:m},i.getHeaderKeys=function(l){var u=l,c={},m=[];return u.keys?g.iterateHeadersKeys(u,function(h){c[h]||(c[h]=!0,m.push(h))}):u.forEach?u.forEach(function(h,y){c[y]||(c[y]=!0,m.push(y))}):g.iterateHeaders(u,function(h){var y=h[0];c[y]||(c[y]=!0,m.push(y))}),m},i.splitHeaderValue=function(l){var u=[];return l.split(", ").forEach(function(c){c.split(",").forEach(function(m){u.push(m)})}),u}}]))},617:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var i,s=n(65);function g(f){return(d=f)===9||d===10||d===13||f>=32&&f<=126;var d}function l(f){for(var d=0;d!==f.length;++d)if(!g(f[d]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(f))}function u(f){return(128&f.getUint8(0))==128}function c(f){return f.getUint32(1,!1)}function m(f,d,b){return f.byteLength-d>=b}function h(f,d,b){if(f.slice)return f.slice(d,b);var v=f.length;b!==void 0&&(v=b);for(var S=new Uint8Array(v-d),E=0,_=d;_<v;_++)S[E++]=f[_];return S}t.decodeASCII=l,t.encodeASCII=function(f){for(var d=new Uint8Array(f.length),b=0;b!==f.length;++b){var v=f.charCodeAt(b);if(!g(v))throw new Error("Metadata contains invalid ASCII");d[b]=v}return d},function(f){f[f.MESSAGE=1]="MESSAGE",f[f.TRAILERS=2]="TRAILERS"}(i=t.ChunkType||(t.ChunkType={}));var y=function(){function f(){this.buffer=null,this.position=0}return f.prototype.parse=function(d,b){if(d.length===0&&b)return[];var v,S=[];if(this.buffer==null)this.buffer=d,this.position=0;else if(this.position===this.buffer.byteLength)this.buffer=d,this.position=0;else{var E=this.buffer.byteLength-this.position,_=new Uint8Array(E+d.byteLength),D=h(this.buffer,this.position);_.set(D,0);var I=new Uint8Array(d);_.set(I,E),this.buffer=_,this.position=0}for(;;){if(!m(this.buffer,this.position,5))return S;var j=h(this.buffer,this.position,this.position+5),A=new DataView(j.buffer,j.byteOffset,j.byteLength),T=c(A);if(!m(this.buffer,this.position,5+T))return S;var P=h(this.buffer,this.position+5,this.position+5+T);if(this.position+=5+T,u(A))return S.push({chunkType:i.TRAILERS,trailers:(v=P,new s.Metadata(l(v)))}),S;S.push({chunkType:i.MESSAGE,data:P})}},f}();t.ChunkParser=y},8:function(p,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.httpStatusToCode=t.Code=void 0,function(i){i[i.OK=0]="OK",i[i.Canceled=1]="Canceled",i[i.Unknown=2]="Unknown",i[i.InvalidArgument=3]="InvalidArgument",i[i.DeadlineExceeded=4]="DeadlineExceeded",i[i.NotFound=5]="NotFound",i[i.AlreadyExists=6]="AlreadyExists",i[i.PermissionDenied=7]="PermissionDenied",i[i.ResourceExhausted=8]="ResourceExhausted",i[i.FailedPrecondition=9]="FailedPrecondition",i[i.Aborted=10]="Aborted",i[i.OutOfRange=11]="OutOfRange",i[i.Unimplemented=12]="Unimplemented",i[i.Internal=13]="Internal",i[i.Unavailable=14]="Unavailable",i[i.DataLoss=15]="DataLoss",i[i.Unauthenticated=16]="Unauthenticated"}(n=t.Code||(t.Code={})),t.httpStatusToCode=function(i){switch(i){case 0:return n.Internal;case 200:return n.OK;case 400:return n.InvalidArgument;case 401:return n.Unauthenticated;case 403:return n.PermissionDenied;case 404:return n.NotFound;case 409:return n.Aborted;case 412:return n.FailedPrecondition;case 429:return n.ResourceExhausted;case 499:return n.Canceled;case 500:return n.Unknown;case 501:return n.Unimplemented;case 503:return n.Unavailable;case 504:return n.DeadlineExceeded;default:return n.Unknown}}},934:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.client=void 0;var i=n(65),s=n(617),g=n(8),l=n(346),u=n(57),c=n(882);t.client=function(y,f){return new m(y,f)};var m=function(){function y(f,d){this.started=!1,this.sentFirstMessage=!1,this.completed=!1,this.closed=!1,this.finishedSending=!1,this.onHeadersCallbacks=[],this.onMessageCallbacks=[],this.onEndCallbacks=[],this.parser=new s.ChunkParser,this.methodDefinition=f,this.props=d,this.createTransport()}return y.prototype.createTransport=function(){var f=this.props.host+"/"+this.methodDefinition.service.serviceName+"/"+this.methodDefinition.methodName,d={methodDefinition:this.methodDefinition,debug:this.props.debug||!1,url:f,onHeaders:this.onTransportHeaders.bind(this),onChunk:this.onTransportChunk.bind(this),onEnd:this.onTransportEnd.bind(this)};this.props.transport?this.transport=this.props.transport(d):this.transport=u.makeDefaultTransport(d)},y.prototype.onTransportHeaders=function(f,d){if(this.props.debug&&l.debug("onHeaders",f,d),this.closed)this.props.debug&&l.debug("grpc.onHeaders received after request was closed - ignoring");else if(d!==0){this.responseHeaders=f,this.props.debug&&l.debug("onHeaders.responseHeaders",JSON.stringify(this.responseHeaders,null,2));var b=h(f);this.props.debug&&l.debug("onHeaders.gRPCStatus",b);var v=b&&b>=0?b:g.httpStatusToCode(d);this.props.debug&&l.debug("onHeaders.code",v);var S=f.get("grpc-message")||[];if(this.props.debug&&l.debug("onHeaders.gRPCMessage",S),this.rawOnHeaders(f),v!==g.Code.OK){var E=this.decodeGRPCStatus(S[0]);this.rawOnError(v,E,f)}}},y.prototype.onTransportChunk=function(f){var d=this;if(this.closed)this.props.debug&&l.debug("grpc.onChunk received after request was closed - ignoring");else{var b=[];try{b=this.parser.parse(f)}catch(v){return this.props.debug&&l.debug("onChunk.parsing error",v,v.message),void this.rawOnError(g.Code.Internal,"parsing error: "+v.message)}b.forEach(function(v){if(v.chunkType===s.ChunkType.MESSAGE){var S=d.methodDefinition.responseType.deserializeBinary(v.data);d.rawOnMessage(S)}else v.chunkType===s.ChunkType.TRAILERS&&(d.responseHeaders?(d.responseTrailers=new i.Metadata(v.trailers),d.props.debug&&l.debug("onChunk.trailers",d.responseTrailers)):(d.responseHeaders=new i.Metadata(v.trailers),d.rawOnHeaders(d.responseHeaders)))})}},y.prototype.onTransportEnd=function(){if(this.props.debug&&l.debug("grpc.onEnd"),this.closed)this.props.debug&&l.debug("grpc.onEnd received after request was closed - ignoring");else if(this.responseTrailers!==void 0){var f=h(this.responseTrailers);if(f!==null){var d=this.responseTrailers.get("grpc-message"),b=this.decodeGRPCStatus(d[0]);this.rawOnEnd(f,b,this.responseTrailers)}else this.rawOnError(g.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(this.responseHeaders===void 0)return void this.rawOnError(g.Code.Unknown,"Response closed without headers");var v=h(this.responseHeaders),S=this.responseHeaders.get("grpc-message");if(this.props.debug&&l.debug("grpc.headers only response ",v,S),v===null)return void this.rawOnEnd(g.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var E=this.decodeGRPCStatus(S[0]);this.rawOnEnd(v,E,this.responseHeaders)}},y.prototype.decodeGRPCStatus=function(f){if(!f)return"";try{return decodeURIComponent(f)}catch{return f}},y.prototype.rawOnEnd=function(f,d,b){var v=this;this.props.debug&&l.debug("rawOnEnd",f,d,b),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(S){if(!v.closed)try{S(f,d,b)}catch(E){setTimeout(function(){throw E},0)}}))},y.prototype.rawOnHeaders=function(f){this.props.debug&&l.debug("rawOnHeaders",f),this.completed||this.onHeadersCallbacks.forEach(function(d){try{d(f)}catch(b){setTimeout(function(){throw b},0)}})},y.prototype.rawOnError=function(f,d,b){var v=this;b===void 0&&(b=new i.Metadata),this.props.debug&&l.debug("rawOnError",f,d),this.completed||(this.completed=!0,this.onEndCallbacks.forEach(function(S){if(!v.closed)try{S(f,d,b)}catch(E){setTimeout(function(){throw E},0)}}))},y.prototype.rawOnMessage=function(f){var d=this;this.props.debug&&l.debug("rawOnMessage",f.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach(function(b){if(!d.closed)try{b(f)}catch(v){setTimeout(function(){throw v},0)}})},y.prototype.onHeaders=function(f){this.onHeadersCallbacks.push(f)},y.prototype.onMessage=function(f){this.onMessageCallbacks.push(f)},y.prototype.onEnd=function(f){this.onEndCallbacks.push(f)},y.prototype.start=function(f){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var d=new i.Metadata(f||{});d.set("content-type","application/grpc-web+proto"),d.set("x-grpc-web","1"),this.transport.start(d)},y.prototype.send=function(f){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 d=c.frameRequest(f);this.transport.sendMessage(d)},y.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()},y.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&&l.debug("request.abort aborting request"),this.transport.cancel()},y}();function h(y){var f=y.get("grpc-status")||[];if(f.length>0)try{var d=f[0];return parseInt(d,10)}catch{return null}return null}},346:function(p,t){Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];console.debug?console.debug.apply(null,n):console.log.apply(null,n)}},607:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.grpc=void 0;var i,s=n(418),g=n(57),l=n(229),u=n(540),c=n(210),m=n(859),h=n(8),y=n(938),f=n(35),d=n(934);(i=t.grpc||(t.grpc={})).setDefaultTransport=g.setDefaultTransportFactory,i.CrossBrowserHttpTransport=m.CrossBrowserHttpTransport,i.FetchReadableStreamTransport=l.FetchReadableStreamTransport,i.XhrTransport=c.XhrTransport,i.WebsocketTransport=u.WebsocketTransport,i.Code=h.Code,i.Metadata=s.BrowserHeaders,i.client=function(b,v){return d.client(b,v)},i.invoke=y.invoke,i.unary=f.unary},938:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.invoke=void 0;var i=n(934);t.invoke=function(s,g){if(s.requestStream)throw new Error(".invoke cannot be used with client-streaming methods. Use .client instead.");var l=i.client(s,{host:g.host,transport:g.transport,debug:g.debug});return g.onHeaders&&l.onHeaders(g.onHeaders),g.onMessage&&l.onMessage(g.onMessage),g.onEnd&&l.onEnd(g.onEnd),l.start(g.metadata),l.send(g.request),l.finishSend(),{close:function(){l.close()}}}},65:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var i=n(418);Object.defineProperty(t,"Metadata",{enumerable:!0,get:function(){return i.BrowserHeaders}})},57:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.makeDefaultTransport=t.setDefaultTransportFactory=void 0;var i=n(859),s=function(g){return i.CrossBrowserHttpTransport({withCredentials:!1})(g)};t.setDefaultTransportFactory=function(g){s=g},t.makeDefaultTransport=function(g){return s(g)}},229:function(p,t,n){var i=this&&this.__assign||function(){return(i=Object.assign||function(u){for(var c,m=1,h=arguments.length;m<h;m++)for(var y in c=arguments[m])Object.prototype.hasOwnProperty.call(c,y)&&(u[y]=c[y]);return u}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.detectFetchSupport=t.FetchReadableStreamTransport=void 0;var s=n(65),g=n(346);t.FetchReadableStreamTransport=function(u){return function(c){return function(m,h){return m.debug&&g.debug("fetchRequest",m),new l(m,h)}(c,u)}};var l=function(){function u(c,m){this.cancelled=!1,this.controller=self.AbortController&&new AbortController,this.options=c,this.init=m}return u.prototype.pump=function(c,m){var h=this;if(this.reader=c,this.cancelled)return this.options.debug&&g.debug("Fetch.pump.cancel at first pump"),void this.reader.cancel().catch(function(y){h.options.debug&&g.debug("Fetch.pump.reader.cancel exception",y)});this.reader.read().then(function(y){if(y.done)return h.options.onEnd(),m;h.options.onChunk(y.value),h.pump(h.reader,m)}).catch(function(y){h.cancelled?h.options.debug&&g.debug("Fetch.catch - request cancelled"):(h.cancelled=!0,h.options.debug&&g.debug("Fetch.catch",y.message),h.options.onEnd(y))})},u.prototype.send=function(c){var m=this;fetch(this.options.url,i(i({},this.init),{headers:this.metadata.toHeaders(),method:"POST",body:c,signal:this.controller&&this.controller.signal})).then(function(h){if(m.options.debug&&g.debug("Fetch.response",h),m.options.onHeaders(new s.Metadata(h.headers),h.status),!h.body)return h;m.pump(h.body.getReader(),h)}).catch(function(h){m.cancelled?m.options.debug&&g.debug("Fetch.catch - request cancelled"):(m.cancelled=!0,m.options.debug&&g.debug("Fetch.catch",h.message),m.options.onEnd(h))})},u.prototype.sendMessage=function(c){this.send(c)},u.prototype.finishSend=function(){},u.prototype.start=function(c){this.metadata=c},u.prototype.cancel=function(){var c=this;this.cancelled?this.options.debug&&g.debug("Fetch.cancel already cancelled"):(this.cancelled=!0,this.controller?(this.options.debug&&g.debug("Fetch.cancel.controller.abort"),this.controller.abort()):this.options.debug&&g.debug("Fetch.cancel.missing abort controller"),this.reader?(this.options.debug&&g.debug("Fetch.cancel.reader.cancel"),this.reader.cancel().catch(function(m){c.options.debug&&g.debug("Fetch.cancel.reader.cancel exception",m)})):this.options.debug&&g.debug("Fetch.cancel before reader"))},u}();t.detectFetchSupport=function(){return typeof Response<"u"&&Response.prototype.hasOwnProperty("body")&&typeof Headers=="function"}},859:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CrossBrowserHttpTransport=void 0;var i=n(229),s=n(210);t.CrossBrowserHttpTransport=function(g){if(i.detectFetchSupport()){var l={credentials:g.withCredentials?"include":"same-origin"};return i.FetchReadableStreamTransport(l)}return s.XhrTransport({withCredentials:g.withCredentials})}},210:function(p,t,n){var i,s=this&&this.__extends||(i=function(f,d){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(b[S]=v[S])})(f,d)},function(f,d){function b(){this.constructor=f}i(f,d),f.prototype=d===null?Object.create(d):(b.prototype=d.prototype,new b)});Object.defineProperty(t,"__esModule",{value:!0}),t.stringToArrayBuffer=t.MozChunkedArrayBufferXHR=t.XHR=t.XhrTransport=void 0;var g=n(65),l=n(346),u=n(849);t.XhrTransport=function(f){return function(d){if(u.detectMozXHRSupport())return new m(d,f);if(u.detectXHROverrideMimeTypeSupport())return new c(d,f);throw new Error("This environment's XHR implementation cannot support binary transfer.")}};var c=function(){function f(d,b){this.options=d,this.init=b}return f.prototype.onProgressEvent=function(){this.options.debug&&l.debug("XHR.onProgressEvent.length: ",this.xhr.response.length);var d=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var b=y(d);this.options.onChunk(b)},f.prototype.onLoadEvent=function(){this.options.debug&&l.debug("XHR.onLoadEvent"),this.options.onEnd()},f.prototype.onStateChange=function(){this.options.debug&&l.debug("XHR.onStateChange",this.xhr.readyState),this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED&&this.options.onHeaders(new g.Metadata(this.xhr.getAllResponseHeaders()),this.xhr.status)},f.prototype.sendMessage=function(d){this.xhr.send(d)},f.prototype.finishSend=function(){},f.prototype.start=function(d){var b=this;this.metadata=d;var v=new XMLHttpRequest;this.xhr=v,v.open("POST",this.options.url),this.configureXhr(),this.metadata.forEach(function(S,E){v.setRequestHeader(S,E.join(", "))}),v.withCredentials=Boolean(this.init.withCredentials),v.addEventListener("readystatechange",this.onStateChange.bind(this)),v.addEventListener("progress",this.onProgressEvent.bind(this)),v.addEventListener("loadend",this.onLoadEvent.bind(this)),v.addEventListener("error",function(S){b.options.debug&&l.debug("XHR.error",S),b.options.onEnd(S.error)})},f.prototype.configureXhr=function(){this.xhr.responseType="text",this.xhr.overrideMimeType("text/plain; charset=x-user-defined")},f.prototype.cancel=function(){this.options.debug&&l.debug("XHR.abort"),this.xhr.abort()},f}();t.XHR=c;var m=function(f){function d(){return f!==null&&f.apply(this,arguments)||this}return s(d,f),d.prototype.configureXhr=function(){this.options.debug&&l.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"),this.xhr.responseType="moz-chunked-arraybuffer"},d.prototype.onProgressEvent=function(){var b=this.xhr.response;this.options.debug&&l.debug("MozXHR.onProgressEvent: ",new Uint8Array(b)),this.options.onChunk(new Uint8Array(b))},d}(c);function h(f,d){var b=f.charCodeAt(d);if(b>=55296&&b<=56319){var v=f.charCodeAt(d+1);v>=56320&&v<=57343&&(b=65536+(b-55296<<10)+(v-56320))}return b}function y(f){for(var d=new Uint8Array(f.length),b=0,v=0;v<f.length;v++){var S=String.prototype.codePointAt?f.codePointAt(v):h(f,v);d[b++]=255&S}return d}t.MozChunkedArrayBufferXHR=m,t.stringToArrayBuffer=y},849:function(p,t){var n;function i(){if(n!==void 0)return n;if(XMLHttpRequest){n=new XMLHttpRequest;try{n.open("GET","https://localhost")}catch{}}return n}function s(g){var l=i();if(!l)return!1;try{return l.responseType=g,l.responseType===g}catch{}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.detectXHROverrideMimeTypeSupport=t.detectMozXHRSupport=t.xhrSupportsResponseType=void 0,t.xhrSupportsResponseType=s,t.detectMozXHRSupport=function(){return typeof XMLHttpRequest<"u"&&s("moz-chunked-arraybuffer")},t.detectXHROverrideMimeTypeSupport=function(){return typeof XMLHttpRequest<"u"&&XMLHttpRequest.prototype.hasOwnProperty("overrideMimeType")}},540:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebsocketTransport=void 0;var i,s=n(346),g=n(617);(function(u){u[u.FINISH_SEND=1]="FINISH_SEND"})(i||(i={}));var l=new Uint8Array([1]);t.WebsocketTransport=function(){return function(u){return function(c){c.debug&&s.debug("websocketRequest",c);var m,h=function(d){if(d.substr(0,8)==="https://")return"wss://"+d.substr(8);if(d.substr(0,7)==="http://")return"ws://"+d.substr(7);throw new Error("Websocket transport constructed with non-https:// or http:// host.")}(c.url),y=[];function f(d){if(d===i.FINISH_SEND)m.send(l);else{var b=d,v=new Int8Array(b.byteLength+1);v.set(new Uint8Array([0])),v.set(b,1),m.send(v)}}return{sendMessage:function(d){m&&m.readyState!==m.CONNECTING?f(d):y.push(d)},finishSend:function(){m&&m.readyState!==m.CONNECTING?f(i.FINISH_SEND):y.push(i.FINISH_SEND)},start:function(d){(m=new WebSocket(h,["grpc-websockets"])).binaryType="arraybuffer",m.onopen=function(){var b;c.debug&&s.debug("websocketRequest.onopen"),m.send((b="",d.forEach(function(v,S){b+=v+": "+S.join(", ")+`\r
292
- `}),g.encodeASCII(b))),y.forEach(function(v){f(v)})},m.onclose=function(b){c.debug&&s.debug("websocketRequest.onclose",b),c.onEnd()},m.onerror=function(b){c.debug&&s.debug("websocketRequest.onerror",b)},m.onmessage=function(b){c.onChunk(new Uint8Array(b.data))}},cancel:function(){c.debug&&s.debug("websocket.abort"),m.close()}}}(u)}}},35:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.unary=void 0;var i=n(65),s=n(934);t.unary=function(g,l){if(g.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(g.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var u=null,c=null,m=s.client(g,{host:l.host,transport:l.transport,debug:l.debug});return m.onHeaders(function(h){u=h}),m.onMessage(function(h){c=h}),m.onEnd(function(h,y,f){l.onEnd({status:h,statusMessage:y,headers:u||new i.Metadata,message:c,trailers:f})}),m.start(l.metadata),m.send(l.request),m.finishSend(),{close:function(){m.close()}}}},882:function(p,t){Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=void 0,t.frameRequest=function(n){var i=n.serializeBinary(),s=new ArrayBuffer(i.byteLength+5);return new DataView(s,1,4).setUint32(0,i.length,!1),new Uint8Array(s,5).set(i),new Uint8Array(s)}}},r={};return function p(t){if(r[t])return r[t].exports;var n=r[t]={exports:{}};return e[t].call(n.exports,n,n.exports,p),n.exports}(607)}())})(grpcWebClient);var proto_stream_v1_stream_pb=stream_pb,grpc=grpcWebClient.grpc,StreamService=function(){function o(){}return o.serviceName="proto.stream.v1.StreamService",o}();StreamService.ListStreams={methodName:"ListStreams",service:StreamService,requestStream:!1,responseStream:!1,requestType:proto_stream_v1_stream_pb.ListStreamsRequest,responseType:proto_stream_v1_stream_pb.ListStreamsResponse},StreamService.AddStream={methodName:"AddStream",service:StreamService,requestStream:!1,responseStream:!1,requestType:proto_stream_v1_stream_pb.AddStreamRequest,responseType:proto_stream_v1_stream_pb.AddStreamResponse},StreamService.RemoveStream={methodName:"RemoveStream",service:StreamService,requestStream:!1,responseStream:!1,requestType:proto_stream_v1_stream_pb.RemoveStreamRequest,responseType:proto_stream_v1_stream_pb.RemoveStreamResponse};function StreamServiceClient(o,e){this.serviceHost=o,this.options=e||{}}StreamServiceClient.prototype.listStreams=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc.unary(StreamService.ListStreams,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},StreamServiceClient.prototype.addStream=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc.unary(StreamService.AddStream,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},StreamServiceClient.prototype.removeStream=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc.unary(StreamService.RemoveStream,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}};var StreamServiceClient_1=StreamServiceClient;class StreamClient extends EventDispatcher{client;options;constructor(e,r={}){super(),this.client=e.createServiceClient(StreamServiceClient_1),this.options=r,events.on("track",p=>this.emit("track",p))}get streamService(){return this.client}async add(e){const r=this.streamService,p=new stream_pb$1.AddStreamRequest;p.setName(e),this.options.requestLogger?.(p),await promisify(r.addStream.bind(r),p)}async remove(e){const r=this.streamService,p=new stream_pb$1.RemoveStreamRequest;p.setName(e),this.options.requestLogger?.(p),await promisify(r.removeStream.bind(r),p)}}exports.ArmClient=ArmClient,exports.BaseClient=BaseClient,exports.BoardClient=BoardClient,exports.CameraClient=CameraClient,exports.Client=RobotClient,exports.MotorClient=MotorClient,exports.MovementSensorClient=MovementSensorClient,exports.RobotClient=RobotClient,exports.SensorClient=SensorClient,exports.StreamClient=StreamClient,exports.armApi=arm_pb,exports.baseApi=base_pb,exports.boardApi=board_pb,exports.cameraApi=camera_pb$1,exports.commonApi=common_pb$z,exports.createRobotClient=createRobotClient,exports.gantryApi=gantry_pb,exports.genericApi=generic_pb,exports.gripperApi=gripper_pb,exports.inputControllerApi=input_controller_pb,exports.motionApi=motion_pb,exports.motorApi=motor_pb,exports.movementSensorApi=movementsensor_pb,exports.navigationApi=navigation_pb,exports.robotApi=robot_pb$1,exports.sensorApi=sensor_pb$1,exports.sensorsApi=sensors_pb,exports.servoApi=servo_pb,exports.slamApi=slam_pb,exports.streamApi=stream_pb$1,exports.visionApi=vision_pb,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
292
+ `}),g.encodeASCII(b))),y.forEach(function(v){f(v)})},m.onclose=function(b){c.debug&&s.debug("websocketRequest.onclose",b),c.onEnd()},m.onerror=function(b){c.debug&&s.debug("websocketRequest.onerror",b)},m.onmessage=function(b){c.onChunk(new Uint8Array(b.data))}},cancel:function(){c.debug&&s.debug("websocket.abort"),m.close()}}}(u)}}},35:function(p,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.unary=void 0;var i=n(65),s=n(934);t.unary=function(g,l){if(g.responseStream)throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");if(g.requestStream)throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");var u=null,c=null,m=s.client(g,{host:l.host,transport:l.transport,debug:l.debug});return m.onHeaders(function(h){u=h}),m.onMessage(function(h){c=h}),m.onEnd(function(h,y,f){l.onEnd({status:h,statusMessage:y,headers:u||new i.Metadata,message:c,trailers:f})}),m.start(l.metadata),m.send(l.request),m.finishSend(),{close:function(){m.close()}}}},882:function(p,t){Object.defineProperty(t,"__esModule",{value:!0}),t.frameRequest=void 0,t.frameRequest=function(n){var i=n.serializeBinary(),s=new ArrayBuffer(i.byteLength+5);return new DataView(s,1,4).setUint32(0,i.length,!1),new Uint8Array(s,5).set(i),new Uint8Array(s)}}},r={};return function p(t){if(r[t])return r[t].exports;var n=r[t]={exports:{}};return e[t].call(n.exports,n,n.exports,p),n.exports}(607)}())})(grpcWebClient);var proto_stream_v1_stream_pb=stream_pb,grpc=grpcWebClient.grpc,StreamService=function(){function o(){}return o.serviceName="proto.stream.v1.StreamService",o}();StreamService.ListStreams={methodName:"ListStreams",service:StreamService,requestStream:!1,responseStream:!1,requestType:proto_stream_v1_stream_pb.ListStreamsRequest,responseType:proto_stream_v1_stream_pb.ListStreamsResponse},StreamService.AddStream={methodName:"AddStream",service:StreamService,requestStream:!1,responseStream:!1,requestType:proto_stream_v1_stream_pb.AddStreamRequest,responseType:proto_stream_v1_stream_pb.AddStreamResponse},StreamService.RemoveStream={methodName:"RemoveStream",service:StreamService,requestStream:!1,responseStream:!1,requestType:proto_stream_v1_stream_pb.RemoveStreamRequest,responseType:proto_stream_v1_stream_pb.RemoveStreamResponse};function StreamServiceClient(o,e){this.serviceHost=o,this.options=e||{}}StreamServiceClient.prototype.listStreams=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc.unary(StreamService.ListStreams,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},StreamServiceClient.prototype.addStream=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc.unary(StreamService.AddStream,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}},StreamServiceClient.prototype.removeStream=function o(e,r,p){arguments.length===2&&(p=arguments[1]);var t=grpc.unary(StreamService.RemoveStream,{request:e,host:this.serviceHost,metadata:r,transport:this.options.transport,debug:this.options.debug,onEnd:function(n){if(p)if(n.status!==grpc.Code.OK){var i=new Error(n.statusMessage);i.code=n.status,i.metadata=n.trailers,p(i,null)}else p(null,n.message)}});return{cancel:function(){p=null,t.close()}}};var StreamServiceClient_1=StreamServiceClient;const getValidSDPTrackName=function(o){return o.replaceAll(":","+")};class StreamClient extends EventDispatcher{client;options;constructor(e,r={}){super(),this.client=e.createServiceClient(StreamServiceClient_1),this.options=r,events.on("track",p=>this.emit("track",p))}get streamService(){return this.client}async add(e){const r=this.streamService,p=new stream_pb$1.AddStreamRequest,t=getValidSDPTrackName(e);p.setName(t),this.options.requestLogger?.(p);try{await promisify(r.addStream.bind(r),p)}catch{p.setName(e),this.options.requestLogger?.(p),await promisify(r.addStream.bind(r),p)}}async remove(e){const r=this.streamService,p=new stream_pb$1.RemoveStreamRequest,t=getValidSDPTrackName(e);p.setName(t),this.options.requestLogger?.(p);try{await promisify(r.removeStream.bind(r),p)}catch{p.setName(e),this.options.requestLogger?.(p),await promisify(r.removeStream.bind(r),p)}}}exports.ArmClient=ArmClient,exports.BaseClient=BaseClient,exports.BoardClient=BoardClient,exports.CameraClient=CameraClient,exports.Client=RobotClient,exports.MotorClient=MotorClient,exports.MovementSensorClient=MovementSensorClient,exports.RobotClient=RobotClient,exports.SensorClient=SensorClient,exports.StreamClient=StreamClient,exports.armApi=arm_pb,exports.baseApi=base_pb,exports.boardApi=board_pb,exports.cameraApi=camera_pb$1,exports.commonApi=common_pb$z,exports.createRobotClient=createRobotClient,exports.gantryApi=gantry_pb,exports.genericApi=generic_pb,exports.gripperApi=gripper_pb,exports.inputControllerApi=input_controller_pb,exports.motionApi=motion_pb,exports.motorApi=motor_pb,exports.movementSensorApi=movementsensor_pb,exports.navigationApi=navigation_pb,exports.robotApi=robot_pb$1,exports.sensorApi=sensor_pb$1,exports.sensorsApi=sensors_pb,exports.servoApi=servo_pb,exports.slamApi=slam_pb,exports.streamApi=stream_pb$1,exports.visionApi=vision_pb,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});