UNPKG

dd-trace

Version:

Datadog APM tracing client for JavaScript

1 lines 94 kB
(()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js"(e){e.exports=asPromise;function asPromise(e,t){for(var r=Array(arguments.length-1),i=0,o=2,s=!0;o<arguments.length;)r[i++]=arguments[o++];return new Promise(function(o,n){r[i]=function(e){if(s)if(s=!1,e)n(e);else{for(var t=Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){s&&(s=!1,n(e))}})}},"./@protobufjs/base64/index.js"(e,t){var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),o=Array(123),s=0;s<64;)o[i[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;r.encode=function(e,t,r){for(var o,s=null,n=[],a=0,f=0;t<r;){var u=e[t++];switch(f){case 0:n[a++]=i[u>>2],o=(3&u)<<4,f=1;break;case 1:n[a++]=i[o|u>>4],o=(15&u)<<2,f=2;break;case 2:n[a++]=i[o|u>>6],n[a++]=i[63&u],f=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),a=0)}return(f&&(n[a++]=i[o],n[a++]=61,1===f&&(n[a++]=61)),s)?(a&&s.push(String.fromCharCode.apply(String,n.slice(0,a))),s.join("")):String.fromCharCode.apply(String,n.slice(0,a))};var n="invalid encoding";r.decode=function(e,t,r){for(var i,s=r,a=0,f=0;f<e.length;){var u=e.charCodeAt(f++);if(61===u&&a>1)break;if(void 0===(u=o[u]))throw Error(n);switch(a){case 0:i=u,a=1;break;case 1:t[r++]=i<<2|(48&u)>>4,i=u,a=2;break;case 2:t[r++]=(15&i)<<4|(60&u)>>2,i=u,a=3;break;case 3:t[r++]=(3&i)<<6|u,a=0}}if(1===a)throw Error(n);return r-s},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},"./@protobufjs/codegen/index.js"(e){function codegen(e,t){"string"==typeof e&&(t=e,e=void 0);var r=[];function Codegen(e){if("string"!=typeof e){var t=toString();if(codegen.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var i=Object.keys(e),o=Array(i.length+1),s=Array(i.length),n=0;n<i.length;)o[n]=i[n],s[n]=e[i[n++]];return o[n]=t,Function.apply(null,o).apply(null,s)}return Function(t)()}for(var a=Array(arguments.length-1),f=0;f<a.length;)a[f]=arguments[++f];if(f=0,e=e.replace(/%([%dfijs])/g,function(e,t){var r=a[f++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),f!==a.length)throw Error("parameter count mismatch");return r.push(e),Codegen}function toString(i){return"function "+(i||t||"")+"("+(e&&e.join(",")||"")+"){\n "+r.join("\n ")+"\n}"}return Codegen.toString=toString,Codegen}e.exports=codegen,codegen.verbose=!1},"./@protobufjs/eventemitter/index.js"(e){function EventEmitter(){this._listeners={}}e.exports=EventEmitter,EventEmitter.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},EventEmitter.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],i=0;i<r.length;)r[i].fn===t?r.splice(i,1):++i;return this},EventEmitter.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],i=1;i<arguments.length;)r.push(arguments[i++]);for(i=0;i<t.length;)t[i].fn.apply(t[i++].ctx,r)}return this}},"./@protobufjs/fetch/index.js"(e,t,r){e.exports=fetch;var i=r("./@protobufjs/aspromise/index.js"),o=r("./@protobufjs/inquire/index.js")("fs");function fetch(e,t,r){return("function"==typeof t?(r=t,t={}):t||(t={}),r)?!t.xhr&&o&&o.readFile?o.readFile(e,function(i,o){return i&&"u">typeof XMLHttpRequest?fetch.xhr(e,t,r):i?r(i):r(null,t.binary?o:o.toString("utf8"))}):fetch.xhr(e,t,r):i(fetch,this,e,t)}fetch.xhr=function(e,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(0!==i.status&&200!==i.status)return r(Error("status "+i.status));if(t.binary){var e=i.response;if(!e){e=[];for(var o=0;o<i.responseText.length;++o)e.push(255&i.responseText.charCodeAt(o))}return r(null,"u">typeof Uint8Array?new Uint8Array(e):e)}return r(null,i.responseText)}},t.binary&&("overrideMimeType"in i&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.responseType="arraybuffer"),i.open("GET",e),i.send()}},"./@protobufjs/float/index.js"(e){function factory(e){return"u">typeof Float32Array?!function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),i=128===r[3];function writeFloat_f32_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3]}function writeFloat_f32_rev(e,i,o){t[0]=e,i[o]=r[3],i[o+1]=r[2],i[o+2]=r[1],i[o+3]=r[0]}function readFloat_f32_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],t[0]}function readFloat_f32_rev(e,i){return r[3]=e[i],r[2]=e[i+1],r[1]=e[i+2],r[0]=e[i+3],t[0]}e.writeFloatLE=i?writeFloat_f32_cpy:writeFloat_f32_rev,e.writeFloatBE=i?writeFloat_f32_rev:writeFloat_f32_cpy,e.readFloatLE=i?readFloat_f32_cpy:readFloat_f32_rev,e.readFloatBE=i?readFloat_f32_rev:readFloat_f32_cpy}():!function(){function writeFloat_ieee754(e,t,r,i){var o=+(t<0);if(o&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((o<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var s=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-s)*8388608);e((o<<31|s+127<<23|n)>>>0,r,i)}}function readFloat_ieee754(e,t,r){var i=e(t,r),o=(i>>31)*2+1,s=i>>>23&255,n=8388607&i;return 255===s?n?NaN:1/0*o:0===s?1401298464324817e-60*o*n:o*Math.pow(2,s-150)*(n+8388608)}e.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),e.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),e.readFloatLE=readFloat_ieee754.bind(null,readUintLE),e.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}(),"u">typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function writeDouble_f64_cpy(e,i,o){t[0]=e,i[o]=r[0],i[o+1]=r[1],i[o+2]=r[2],i[o+3]=r[3],i[o+4]=r[4],i[o+5]=r[5],i[o+6]=r[6],i[o+7]=r[7]}function writeDouble_f64_rev(e,i,o){t[0]=e,i[o]=r[7],i[o+1]=r[6],i[o+2]=r[5],i[o+3]=r[4],i[o+4]=r[3],i[o+5]=r[2],i[o+6]=r[1],i[o+7]=r[0]}function readDouble_f64_cpy(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function readDouble_f64_rev(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?writeDouble_f64_cpy:writeDouble_f64_rev,e.writeDoubleBE=i?writeDouble_f64_rev:writeDouble_f64_cpy,e.readDoubleLE=i?readDouble_f64_cpy:readDouble_f64_rev,e.readDoubleBE=i?readDouble_f64_rev:readDouble_f64_cpy}():!function(){function writeDouble_ieee754(e,t,r,i,o,s){var n,a=+(i<0);if(a&&(i=-i),0===i)e(0,o,s+t),e(1/i>0?0:0x80000000,o,s+r);else if(isNaN(i))e(0,o,s+t),e(0x7ff80000,o,s+r);else if(i>17976931348623157e292)e(0,o,s+t),e((a<<31|0x7ff00000)>>>0,o,s+r);else if(i<22250738585072014e-324)e((n=i/5e-324)>>>0,o,s+t),e((a<<31|n/0x100000000)>>>0,o,s+r);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),e(0x10000000000000*(n=i*Math.pow(2,-f))>>>0,o,s+t),e((a<<31|f+1023<<20|1048576*n&1048575)>>>0,o,s+r)}}function readDouble_ieee754(e,t,r,i,o){var s=e(i,o+t),n=e(i,o+r),a=(n>>31)*2+1,f=n>>>20&2047,u=0x100000000*(1048575&n)+s;return 2047===f?u?NaN:1/0*a:0===f?5e-324*a*u:a*Math.pow(2,f-1075)*(u+0x10000000000000)}e.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),e.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),e.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),e.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}(),e}function writeUintLE(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function writeUintBE(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function readUintLE(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function readUintBE(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=factory(factory)},"./@protobufjs/inquire/index.js"(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/path/index.js"(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),o="";r&&(o=t.shift()+"/");for(var s=0;s<t.length;)".."===t[s]?s>0&&".."!==t[s-1]?t.splice(--s,2):r?t.splice(s,1):++s:"."===t[s]?t.splice(s,1):++s;return o+t.join("/")};r.resolve=function(e,t,r){return(r||(t=o(t)),i(t))?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},"./@protobufjs/pool/index.js"(e){e.exports=pool;function pool(e,t,r){var i=r||8192,o=i>>>1,s=null,n=i;return function(r){if(r<1||r>o)return e(r);n+r>i&&(s=e(i),n=0);var a=t.call(s,n,n+=r);return 7&n&&(n=(7|n)+1),a}}},"./@protobufjs/utf8/index.js"(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i<e.length;++i)(r=e.charCodeAt(i))<128?t+=1:r<2048?t+=2:(64512&r)==55296&&(64512&e.charCodeAt(i+1))==56320?(++i,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var i,o=null,s=[],n=0;t<r;)(i=e[t++])<128?s[n++]=i:i>191&&i<224?s[n++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,s[n++]=55296+(i>>10),s[n++]=56320+(1023&i)):s[n++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),n=0);return o?(n&&o.push(String.fromCharCode.apply(String,s.slice(0,n))),o.join("")):String.fromCharCode.apply(String,s.slice(0,n))},r.write=function(e,t,r){for(var i,o,s=r,n=0;n<e.length;++n)(i=e.charCodeAt(n))<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&(64512&(o=e.charCodeAt(n+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++n,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-s}},"./protobufjs/index.js"(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js"(e){e.exports=common;var t,r=/\/|\./;function common(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),common[e]=t}common("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),common("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),common("timestamp",{Timestamp:t}),common("empty",{Empty:{fields:{}}}),common("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),common("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),common("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),common.get=function(e){return common[e]||null}},"./protobufjs/src/converter.js"(e,t,r){var i=t,o=r("./protobufjs/src/enum.js"),s=r("./protobufjs/src/util.js");function genValuePartial_fromObject(e,t,r,i){var s=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",i);for(var n=t.resolvedType.values,a=Object.keys(n),f=0;f<a.length;++f)n[a[f]]!==t.typeDefault||s||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',i,i,i),t.repeated||e("break"),s=!0),e("case%j:",a[f])("case %i:",n[a[f]])("m%s=%j",i,n[a[f]])("break");e("}")}else e('if(typeof d%s!=="object")',i)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",i,r,i);else{var u=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",i,i);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,u)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function genValuePartial_toObject(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var s=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":s=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,s?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=s.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i<t.length;++i){var n=t[i].resolve(),a=s.safeProp(n.name);n.map?(r("if(d%s){",a)('if(typeof d%s!=="object")',a)("throw TypeError(%j)",n.fullName+": object expected")("m%s={}",a)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",a),genValuePartial_fromObject(r,n,i,a+"[ks[i]]")("}")("}")):n.repeated?(r("if(d%s){",a)("if(!Array.isArray(d%s))",a)("throw TypeError(%j)",n.fullName+": array expected")("m%s=[]",a)("for(var i=0;i<d%s.length;++i){",a),genValuePartial_fromObject(r,n,i,a+"[i]")("}")("}")):(n.resolvedType instanceof o||r("if(d%s!=null){",a),genValuePartial_fromObject(r,n,i,a),n.resolvedType instanceof o||r("}"))}return r("return m")},i.toObject=function(e){var t=e.fieldsArray.slice().sort(s.compareFieldsById);if(!t.length)return s.codegen()("return {}");for(var r=s.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),i=[],n=[],a=[],f=0;f<t.length;++f)t[f].partOf||(t[f].resolve().repeated?i:t[f].map?n:a).push(t[f]);if(i.length){for(r("if(o.arrays||o.defaults){"),f=0;f<i.length;++f)r("d%s=[]",s.safeProp(i[f].name));r("}")}if(n.length){for(r("if(o.objects||o.defaults){"),f=0;f<n.length;++f)r("d%s={}",s.safeProp(n[f].name));r("}")}if(a.length){for(r("if(o.defaults){"),f=0;f<a.length;++f){var u=a[f],l=s.safeProp(u.name);if(u.resolvedType instanceof o)r("d%s=o.enums===String?%j:%j",l,u.resolvedType.valuesById[u.typeDefault],u.typeDefault);else if(u.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",u.typeDefault.low,u.typeDefault.high,u.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",l)("}else")("d%s=o.longs===String?%j:%i",l,u.typeDefault.toString(),u.typeDefault.toNumber());else if(u.bytes){var p="["+Array.prototype.slice.call(u.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",l,String.fromCharCode.apply(String,u.typeDefault))("else{")("d%s=%s",l,p)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",l,l)("}")}else r("d%s=%j",l,u.typeDefault)}r("}")}var c=!1;for(f=0;f<t.length;++f){var u=t[f],d=e._fieldsArray.indexOf(u),l=s.safeProp(u.name);u.map?(c||(c=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",l,l)("d%s={}",l)("for(var j=0;j<ks2.length;++j){"),genValuePartial_toObject(r,u,d,l+"[ks2[j]]")("}")):u.repeated?(r("if(m%s&&m%s.length){",l,l)("d%s=[]",l)("for(var j=0;j<m%s.length;++j){",l),genValuePartial_toObject(r,u,d,l+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",l,u.name),genValuePartial_toObject(r,u,d,l),u.partOf&&r("if(o.oneofs)")("d%s=%j",s.safeProp(u.partOf.name),u.name)),r("}")}return r("return d")}},"./protobufjs/src/decoder.js"(e,t,r){e.exports=decoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function missing(e){return"missing required '"+e.name+"'"}function decoder(e){for(var t=s.codegen(["r","l","e"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),r=0;r<e.fieldsArray.length;++r){var n=e._fieldsArray[r].resolve(),a=n.resolvedType instanceof i?"int32":n.type,f="m"+s.safeProp(n.name);t("case %i: {",n.id),n.map?(t("if(%s===util.emptyObject)",f)("%s={}",f)("var c2 = r.uint32()+r.pos"),void 0!==o.defaults[n.keyType]?t("k=%j",o.defaults[n.keyType]):t("k=null"),void 0!==o.defaults[a]?t("value=%j",o.defaults[a]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",n.keyType)("case 2:"),void 0===o.basic[a]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",a),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==o.long[n.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):n.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==o.packed[a]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",f,a)("}else"),void 0===o.basic[a]?t(n.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",f,r):t("%s.push(r.%s())",f,a)):void 0===o.basic[a]?t(n.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",f,r):t("%s=r.%s()",f,a),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var u=e._fieldsArray[r];u.required&&t("if(!m.hasOwnProperty(%j))",u.name)("throw util.ProtocolError(%j,{instance:m})",missing(u))}return t("return m")}},"./protobufjs/src/encoder.js"(e,t,r){e.exports=encoder;var i=r("./protobufjs/src/enum.js"),o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function genTypePartial(e,t,r,i){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,i,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function encoder(e){for(var t,r,n=s.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t<a.length;++t){var f=a[t].resolve(),u=e._fieldsArray.indexOf(f),l=f.resolvedType instanceof i?"int32":f.type,p=o.basic[l];r="m"+s.safeProp(f.name),f.map?(n("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,f.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(f.id<<3|2)>>>0,8|o.mapKey[f.keyType],f.keyType),void 0===p?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",u,r):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,l,r),n("}")("}")):f.repeated?(n("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==o.packed[l]?n("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",l,r)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",r),void 0===p?genTypePartial(n,f,u,r+"[i]"):n("w.uint32(%i).%s(%s[i])",(f.id<<3|p)>>>0,l,r)),n("}")):(f.optional&&n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===p?genTypePartial(n,f,u,r):n("w.uint32(%i).%s(%s)",(f.id<<3|p)>>>0,l,r))}return n("return w")}},"./protobufjs/src/enum.js"(e,t,r){e.exports=Enum;var i=r("./protobufjs/src/object.js");((Enum.prototype=Object.create(i.prototype)).constructor=Enum).className="Enum";var o=r("./protobufjs/src/namespace.js"),s=r("./protobufjs/src/util.js");function Enum(e,t,r,o,s,n){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=s||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),f=0;f<a.length;++f)"number"==typeof t[a[f]]&&(this.valuesById[this.values[a[f]]=t[a[f]]]=a[f])}Enum.prototype._resolveFeatures=function(e){return e=this._edition||e,i.prototype._resolveFeatures.call(this,e),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},Enum.fromJSON=function(e,t){var r=new Enum(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Enum.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},Enum.prototype.add=function(e,t,r,i){if(!s.isString(e))throw TypeError("name must be a string");if(!s.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},Enum.prototype.remove=function(e){if(!s.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},Enum.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},Enum.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js"(e,t,r){e.exports=Field;var i,o=r("./protobufjs/src/object.js");((Field.prototype=Object.create(o.prototype)).constructor=Field).className="Field";var s=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),a=r("./protobufjs/src/util.js"),f=/^required|optional|repeated$/;function Field(e,t,r,i,s,u,l){if(a.isObject(i)?(l=s,u=i,i=s=void 0):a.isObject(s)&&(l=u,u=s,s=void 0),o.call(this,e,u),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!f.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==s&&!a.isString(s))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=s||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}Field.fromJSON=function(e,t){var r=new Field(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(Field.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(Field.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(Field.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(Field.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(Field.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),Field.prototype.setOption=function(e,t,r){return o.prototype.setOption.call(this,e,t,r)},Field.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},Field.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof s&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof s||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),o.prototype.resolve.call(this)},Field.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},Field.prototype._resolveFeatures=function(e){return o.prototype._resolveFeatures.call(this,this._edition||e)},Field.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,s){a.decorateType(o.constructor).add(new Field(s,e,t,r,{default:i}))}},Field._configure=function(e){i=e}},"./protobufjs/src/index-light.js"(e,t,r){var i=e.exports=r("./protobufjs/src/index-minimal.js");function load(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function loadSync(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=load,i.loadSync=loadSync,i.encoder=r("./protobufjs/src/encoder.js"),i.decoder=r("./protobufjs/src/decoder.js"),i.verifier=r("./protobufjs/src/verifier.js"),i.converter=r("./protobufjs/src/converter.js"),i.ReflectionObject=r("./protobufjs/src/object.js"),i.Namespace=r("./protobufjs/src/namespace.js"),i.Root=r("./protobufjs/src/root.js"),i.Enum=r("./protobufjs/src/enum.js"),i.Type=r("./protobufjs/src/type.js"),i.Field=r("./protobufjs/src/field.js"),i.OneOf=r("./protobufjs/src/oneof.js"),i.MapField=r("./protobufjs/src/mapfield.js"),i.Service=r("./protobufjs/src/service.js"),i.Method=r("./protobufjs/src/method.js"),i.Message=r("./protobufjs/src/message.js"),i.wrappers=r("./protobufjs/src/wrappers.js"),i.types=r("./protobufjs/src/types.js"),i.util=r("./protobufjs/src/util.js"),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},"./protobufjs/src/index-minimal.js"(e,t,r){var i=t;function configure(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r("./protobufjs/src/writer.js"),i.BufferWriter=r("./protobufjs/src/writer_buffer.js"),i.Reader=r("./protobufjs/src/reader.js"),i.BufferReader=r("./protobufjs/src/reader_buffer.js"),i.util=r("./protobufjs/src/util/minimal.js"),i.rpc=r("./protobufjs/src/rpc.js"),i.roots=r("./protobufjs/src/roots.js"),i.configure=configure,configure()},"./protobufjs/src/index.js"(e,t,r){var i=e.exports=r("./protobufjs/src/index-light.js");i.build="full",i.tokenize=r("./protobufjs/src/tokenize.js"),i.parse=r("./protobufjs/src/parse.js"),i.common=r("./protobufjs/src/common.js"),i.Root._configure(i.Type,i.parse,i.common)},"./protobufjs/src/mapfield.js"(e,t,r){e.exports=MapField;var i=r("./protobufjs/src/field.js");((MapField.prototype=Object.create(i.prototype)).constructor=MapField).className="MapField";var o=r("./protobufjs/src/types.js"),s=r("./protobufjs/src/util.js");function MapField(e,t,r,o,n,a){if(i.call(this,e,t,o,void 0,void 0,n,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}MapField.fromJSON=function(e,t){return new MapField(e,t.id,t.keyType,t.type,t.options,t.comment)},MapField.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},MapField.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},MapField.d=function(e,t,r){return"function"==typeof r?r=s.decorateType(r).name:r&&"object"==typeof r&&(r=s.decorateEnum(r).name),function(i,o){s.decorateType(i.constructor).add(new MapField(o,e,t,r))}}},"./protobufjs/src/message.js"(e,t,r){e.exports=Message;var i=r("./protobufjs/src/util/minimal.js");function Message(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r){var i=t[r];"__proto__"!==i&&(this[i]=e[i])}}Message.create=function(e){return this.$type.create(e)},Message.encode=function(e,t){return this.$type.encode(e,t)},Message.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},Message.decode=function(e){return this.$type.decode(e)},Message.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},Message.verify=function(e){return this.$type.verify(e)},Message.fromObject=function(e){return this.$type.fromObject(e)},Message.toObject=function(e,t){return this.$type.toObject(e,t)},Message.prototype.toJSON=function(){return this.$type.toObject(this,i.toJSONOptions)}},"./protobufjs/src/method.js"(e,t,r){e.exports=Method;var i=r("./protobufjs/src/object.js");((Method.prototype=Object.create(i.prototype)).constructor=Method).className="Method";var o=r("./protobufjs/src/util.js");function Method(e,t,r,s,n,a,f,u,l){if(o.isObject(n)?(f=n,n=a=void 0):o.isObject(a)&&(f=a,a=void 0),!(void 0===t||o.isString(t)))throw TypeError("type must be a string");if(!o.isString(r))throw TypeError("requestType must be a string");if(!o.isString(s))throw TypeError("responseType must be a string");i.call(this,e,f),this.type=t||"rpc",this.requestType=r,this.requestStream=!!n||void 0,this.responseType=s,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=l}Method.fromJSON=function(e,t){return new Method(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},Method.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},Method.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),i.prototype.resolve.call(this))}},"./protobufjs/src/namespace.js"(e,t,r){e.exports=Namespace;var i,o,s,n=r("./protobufjs/src/object.js");((Namespace.prototype=Object.create(n.prototype)).constructor=Namespace).className="Namespace";var a=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/util.js"),u=r("./protobufjs/src/oneof.js");function arrayToJSON(e,t){if(e&&e.length){for(var r={},i=0;i<e.length;++i)r[e[i].name]=e[i].toJSON(t);return r}}function Namespace(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function clearCache(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}Namespace.fromJSON=function(e,t){return new Namespace(e,t.options).addJSON(t.nested)},Namespace.arrayToJSON=arrayToJSON,Namespace.isReservedId=function(e,t){if(e){for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0}return!1},Namespace.isReservedName=function(e,t){if(e){for(var r=0;r<e.length;++r)if(e[r]===t)return!0}return!1},Object.defineProperty(Namespace.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),Namespace.prototype.toJSON=function(e){return f.toObject(["options",this.options,"nested",arrayToJSON(this.nestedArray,e)])},Namespace.prototype.addJSON=function(e){var t=this;if(e)for(var r,n=Object.keys(e),f=0;f<n.length;++f)r=e[n[f]],t.add((void 0!==r.fields?i.fromJSON:void 0!==r.values?s.fromJSON:void 0!==r.methods?o.fromJSON:void 0!==r.id?a.fromJSON:Namespace.fromJSON)(n[f],r));return this},Namespace.prototype.get=function(e){return this.nested&&this.nested[e]||null},Namespace.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},Namespace.prototype.add=function(e){if(!(e instanceof a&&void 0!==e.extend||e instanceof i||e instanceof u||e instanceof s||e instanceof o||e instanceof Namespace))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t)if(t instanceof Namespace&&e instanceof Namespace&&!(t instanceof i||t instanceof o)){for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}else throw Error("duplicate name '"+e.name+"' in "+this)}else this.nested={};this.nested[e.name]=e,this instanceof i||this instanceof o||this instanceof s||this instanceof a||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var f=this;f=f.parent;)f._needsRecursiveFeatureResolution=!0,f._needsRecursiveResolve=!0;return e.onAdd(this),clearCache(this)},Namespace.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),clearCache(this)},Namespace.prototype.define=function(e,t){if(f.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof Namespace))throw Error("path conflicts with non-namespace objects")}else r.add(r=new Namespace(i))}return t&&r.addJSON(t),r},Namespace.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof Namespace?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},Namespace.prototype._resolveFeaturesRecursive=function(e){return this._needsRecursiveFeatureResolution&&(this._needsRecursiveFeatureResolution=!1,e=this._edition||e,n.prototype._resolveFeaturesRecursive.call(this,e),this.nestedArray.forEach(t=>{t._resolveFeaturesRecursive(e)})),this},Namespace.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),f.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(o&&(!t||t.indexOf(o.constructor)>-1)||(o=this._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var s=this;s.parent;){if((o=s.parent._lookupImpl(e,i))&&(!t||t.indexOf(o.constructor)>-1))return o;s=s.parent}return null},Namespace.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof Namespace&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var o=0;o<this.nestedArray.length;++o)this._nestedArray[o]instanceof Namespace&&(r=this._nestedArray[o]._lookupImpl(e,t))&&(i=r);return this._lookupCache[t]=i,i},Namespace.prototype.lookupType=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such type: "+e);return t},Namespace.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[i,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},Namespace.prototype.lookupService=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},Namespace._configure=function(e,t,r){i=e,o=t,s=r}},"./protobufjs/src/object.js"(e,t,r){e.exports=ReflectionObject,ReflectionObject.className="ReflectionObject";let i=r("./protobufjs/src/oneof.js");var o,s=r("./protobufjs/src/util.js"),n={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},a={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},f={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};function ReflectionObject(e,t){if(!s.isString(e))throw TypeError("name must be a string");if(t&&!s.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(ReflectionObject.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),ReflectionObject.prototype.toJSON=function(){throw Error()},ReflectionObject.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof o&&t._handleAdd(this)},ReflectionObject.prototype.onRemove=function(e){var t=e.root;t instanceof o&&t._handleRemove(this),this.parent=null,this.resolved=!1},ReflectionObject.prototype.resolve=function(){return this.resolved||this.root instanceof o&&(this.resolved=!0),this},ReflectionObject.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},ReflectionObject.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},f);else if("proto3"===e)t=Object.assign({},u);else if("2023"===e)t=Object.assign({},a);else if("2024"===e)t=Object.assign({},n);else throw Error("Unknown edition: "+e);this._features=Object.assign(t,r||{}),this._featuresResolved=!0;return}if(this.partOf instanceof i){var o=Object.assign({},this.partOf._features);this._features=Object.assign(o,r||{})}else if(this.declaringField);else if(this.parent){var s=Object.assign({},this.parent._features);this._features=Object.assign(s,r||{})}else throw Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},ReflectionObject.prototype._inferLegacyProtoFeatures=function(){return{}},ReflectionObject.prototype.getOption=function(e){if(this.options)return this.options[e]},ReflectionObject.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?s.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},ReflectionObject.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(r){var o=i.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(o){var n=o[e];s.setProperty(n,r,t)}else(o={})[e]=s.setProperty({},r,t),i.push(o)}else{var a={};a[e]=t,i.push(a)}return this},ReflectionObject.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),i=0;i<r.length;++i)this.setOption(r[i],e[r[i]],t);return this},ReflectionObject.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},ReflectionObject.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},ReflectionObject._configure=function(e){o=e}},"./protobufjs/src/oneof.js"(e,t,r){e.exports=OneOf;var i=r("./protobufjs/src/object.js");((OneOf.prototype=Object.create(i.prototype)).constructor=OneOf).className="OneOf";var o=r("./protobufjs/src/field.js"),s=r("./protobufjs/src/util.js");function OneOf(e,t,r,o){if(Array.isArray(t)||(r=t,t=void 0),i.call(this,e,r),!(void 0===t||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=o}function addFieldsToParent(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}OneOf.fromJSON=function(e,t){return new OneOf(e,t.oneof,t.options,t.comment)},OneOf.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return s.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},OneOf.prototype.add=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,addFieldsToParent(this),this},OneOf.prototype.remove=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},OneOf.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r<this.oneof.length;++r){var o=e.get(this.oneof[r]);o&&!o.partOf&&(o.partOf=t,t.fieldsArray.push(o))}addFieldsToParent(this)},OneOf.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);i.prototype.onRemove.call(this,e)},Object.defineProperty(OneOf.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),OneOf.d=function(){for(var e=Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){s.decorateType(t.constructor).add(new OneOf(r,e)),Object.defineProperty(t,r,{get:s.oneOfGetter(e),set:s.oneOfSetter(e)})}}},"./protobufjs/src/parse.js"(e,t,r){e.exports=parse,parse.filename=null,parse.defaults={keepCase:!1};var i=r("./protobufjs/src/tokenize.js"),o=r("./protobufjs/src/root.js"),s=r("./protobufjs/src/type.js"),n=r("./protobufjs/src/field.js"),a=r("./protobufjs/src/mapfield.js"),f=r("./protobufjs/src/oneof.js"),u=r("./protobufjs/src/enum.js"),l=r("./protobufjs/src/service.js"),p=r("./protobufjs/src/method.js"),c=r("./protobufjs/src/object.js"),d=r("./protobufjs/src/types.js"),h=r("./protobufjs/src/util.js"),y=/^[1-9][0-9]*$/,m=/^-?[1-9][0-9]*$/,v=/^0[x][0-9a-fA-F]+$/,b=/^-?0[x][0-9a-fA-F]+$/,g=/^0[0-7]+$/,j=/^-?0[0-7]+$/,O=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,_=/^[a-zA-Z_][a-zA-Z_0-9]*$/,w=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function parse(e,t,r){t instanceof o||(r=t,t=new o),r||(r=parse.defaults);var k,E,x,A,S=r.preferTrailingComment||!1,R=i(e,r.alternateCommentMode||!1),T=R.next,N=R.push,F=R.peek,B=R.skip,L=R.cmnt,I=!0,P="proto2",C=t,D=[],V={},M=r.keepCase?function(e){return e}:h.camelCase;function resolveFileFeatures(){D.forEach(e=>{e._edition=P,Object.keys(V).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,V[t],!0)})})}function illegal(e,t,r){var i=parse.filename;return r||(parse.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+R.line+")")}function readString(){var e,t=[];do{if('"'!==(e=T())&&"'"!==e)throw illegal(e);t.push(T()),B(e),e=F()}while('"'===e||"'"===e);return t.join("")}function readValue(e){var t=T();switch(t){case"'":case'"':return N(t),readString();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return parseNumber(t,!0)}catch(r){if(e&&w.test(t))return t;throw illegal(t,"value")}}function readRanges(e,t){do if(t&&('"'===(r=F())||"'"===r)){var r,i,o=readString();if(e.push(o),P>=2023)throw illegal(o,"id")}else try{e.push([i=parseId(T()),B("to",!0)?parseId(T()):i])}catch(i){if(t&&w.test(r)&&P>=2023)e.push(r);else throw i}while(B(",",!0));var s={options:void 0};s.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ifBlock(s,function(e){if("option"===e)parseOption(s,e),B(";");else throw illegal(e)},function(){parseInlineOptions(s)})}function parseNumber(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(v.test(e))return r*parseInt(e,16);if(g.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw illegal(e,"number",t)}function parseId(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw illegal(e,"id");if(m.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(j.test(e))return parseInt(e,8);throw illegal(e,"id")}function parsePackage(){if(void 0!==E)throw illegal("package");if(E=T(),!w.test(E))throw illegal(E,"name");C=C.define(E),B(";")}function parseImport(){var e,t=F();switch(t){case"option":if(P<"2024")throw illegal("option");T(),readString(),B(";");return;case"weak":e=A||(A=[]),T();break;case"public":T();default:e=x||(x=[])}t=readString(),B(";"),e.push(t)}function parseSyntax(){if(B("="),(P=readString())<2023)throw illegal(P,"syntax");B(";")}function parseEdition(){if(B("="),!["2023","2024"].includes(P=readString()))throw illegal(P,"edition");B(";")}function parseCommon(e,t){switch(t){case"option":return parseOption(e,t),B(";"),!0;case"message":return parseType(e,t),!0;case"enum":return parseEnum(e,t),!0;case"export":case"local":if(P<"2024"||"export"===(t=T())||"local"===t||"message"!==t&&"enum"!==t)break;return parseCommon(e,t);case"service":return parseService(e,t),!0;case"extend":return parseExtension(e,t),!0}return!1}function ifBlock(e,t,r){var i,o=R.line;if(e&&("string"!=typeof e.comment&&(e.comment=L()),e.filename=parse.filename),B("{",!0)){for(;"}"!==(i=T());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||S)&&(e.comment=L(o)||e.comment)}function parseType(e,t){if(!_.test(t=T()))throw illegal(t,"type name");var r=new s(t);ifBlock(r,function(e){if(!parseCommon(r,e))switch(e){case"map":parseMapField(r,e);break;case"required":if("proto2"!==P)throw illegal(e);case"repeated":parseField(r,e);break;case"optional":if("proto3"===P)parseField(r,"proto3_optional");else if("proto2"!==P)throw illegal(e);else parseField(r,"optional");break;case"oneof":parseOneOf(r,e);break;case"extensions":readRanges(r.extensions||(r.extensions=[]));break;case"reserved":readRanges(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===P||!w.test(e))throw illegal(e);N(e),parseField(r,"optional")}}),e.add(r),e===C&&D.push(r)}function parseField(e,t,r){var i=T();if("group"===i)return void parseGroup(e,t);for(;i.endsWith(".")||F().startsWith(".");)i+=T();if(!w.test(i))throw ill