@bufbuild/protobuf 0.0.8 → 0.1.0
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/README.md +34 -4
- package/dist/cjs/codegen-info.js +60 -0
- package/dist/cjs/create-descriptor-set.js +952 -0
- package/dist/cjs/create-registry-from-desc.js +270 -0
- package/dist/cjs/create-registry.js +75 -0
- package/dist/cjs/descriptor-set.js +0 -436
- package/dist/cjs/google/protobuf/descriptor_pb.js +2 -2
- package/dist/cjs/google/protobuf/empty_pb.js +0 -1
- package/dist/cjs/google/protobuf/struct_pb.js +1 -1
- package/dist/cjs/google/protobuf/type_pb.js +1 -1
- package/dist/cjs/google/varint.js +85 -37
- package/dist/cjs/index.js +11 -7
- package/dist/cjs/private/enum.js +22 -31
- package/dist/cjs/private/field-wrapper.js +30 -1
- package/dist/cjs/private/field.js +1 -1
- package/dist/cjs/private/json-format-common.js +6 -6
- package/dist/cjs/private/names.js +168 -29
- package/dist/cjs/proto-int64.js +23 -40
- package/dist/cjs/proto2.js +2 -2
- package/dist/cjs/proto3.js +2 -2
- package/dist/cjs/type-registry.js +0 -87
- package/dist/esm/codegen-info.js +57 -0
- package/dist/esm/create-descriptor-set.js +947 -0
- package/dist/esm/create-registry-from-desc.js +266 -0
- package/dist/esm/create-registry.js +71 -0
- package/dist/esm/descriptor-set.js +1 -434
- package/dist/esm/google/protobuf/descriptor_pb.js +2 -2
- package/dist/esm/google/protobuf/empty_pb.js +0 -1
- package/dist/esm/google/protobuf/struct_pb.js +1 -1
- package/dist/esm/google/protobuf/type_pb.js +1 -1
- package/dist/esm/google/varint.js +81 -34
- package/dist/esm/index.js +6 -3
- package/dist/esm/private/enum.js +22 -31
- package/dist/esm/private/field-wrapper.js +28 -0
- package/dist/esm/private/field.js +2 -2
- package/dist/esm/private/json-format-common.js +6 -6
- package/dist/esm/private/names.js +163 -24
- package/dist/esm/proto-int64.js +24 -41
- package/dist/esm/proto2.js +3 -3
- package/dist/esm/proto3.js +3 -3
- package/dist/esm/type-registry.js +1 -85
- package/dist/types/codegen-info.d.ts +19 -0
- package/dist/types/create-descriptor-set.d.ts +16 -0
- package/dist/types/create-registry-from-desc.d.ts +15 -0
- package/dist/types/create-registry.d.ts +8 -0
- package/dist/types/descriptor-set.d.ts +554 -108
- package/dist/types/enum.d.ts +9 -5
- package/dist/types/google/protobuf/descriptor_pb.d.ts +6 -6
- package/dist/types/google/protobuf/empty_pb.d.ts +0 -1
- package/dist/types/google/varint.d.ts +21 -9
- package/dist/types/index.d.ts +6 -3
- package/dist/types/message.d.ts +3 -1
- package/dist/types/private/enum.d.ts +4 -8
- package/dist/types/private/field-wrapper.d.ts +7 -0
- package/dist/types/private/message-type.d.ts +1 -4
- package/dist/types/private/names.d.ts +26 -8
- package/dist/types/private/proto-runtime.d.ts +2 -2
- package/dist/types/private/util.d.ts +1 -6
- package/dist/types/proto-int64.d.ts +14 -13
- package/dist/types/type-registry.d.ts +0 -38
- package/package.json +6 -10
- package/dist/cjs/descriptor-registry.js +0 -460
- package/dist/esm/descriptor-registry.js +0 -456
- package/dist/protobuf.cjs +0 -2
- package/dist/protobuf.cjs.map +0 -1
- package/dist/protobuf.esm.js +0 -2
- package/dist/protobuf.esm.js.map +0 -1
- package/dist/protobuf.modern.js +0 -2
- package/dist/protobuf.modern.js.map +0 -1
- package/dist/types/descriptor-registry.d.ts +0 -43
package/dist/protobuf.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function e(){return e=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},e.apply(this,arguments)}function n(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n)}function r(e,n){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},r(e,n)}function t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}function i(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return o(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,n){if(!e)throw new Error(n)}function s(e){if("number"!=typeof e)throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw new Error("invalid int 32: "+e)}function u(e){if("number"!=typeof e)throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw new Error("invalid uint 32: "+e)}function l(e){if("number"!=typeof e)throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw new Error("invalid float 32: "+e)}var c=Symbol("@bufbuild/protobuf/enum-type");function p(e){var n=e[c];return a(n,"missing enum type on enum object"),n}function f(e,n,r){e[c]=m(n,r)}function m(e,n){for(var r,t=Object.create(null),o=Object.create(null),a=[],s=i(n);!(r=s()).done;){var u=r.value;a.push(u),t[u.name]=u,o[u.no]=u}return{typeName:e,values:a,findName:function(e){return t[e]},findNumber:function(e){return o[e]}}}function d(e,n,r){for(var t,o={},a=i(n);!(t=a()).done;){var s=t.value,u=v(s,null==r?void 0:r.sharedPrefix);o[u]=s.no,o[s.no]=u}return f(o,e,n),o}function v(e,n){return void 0===n?e.name:e.name.startsWith(n)?e.name.substring(n.length):e.name}var y,T=/*#__PURE__*/function(){function e(){}var n=e.prototype;return n.equals=function(e){return this.getType().runtime.util.equals(this.getType(),this,e)},n.clone=function(){return this.getType().runtime.util.clone(this)},n.fromBinary=function(e,n){var r=this.getType().runtime.bin,t=r.makeReadOptions(n);return r.readMessage(this,t.readerFactory(e),e.byteLength,t),this},n.fromJson=function(e,n){var r=this.getType(),t=r.runtime.json,o=t.makeReadOptions(n);return t.readMessage(r,e,o,this),this},n.fromJsonString=function(e,n){return this.fromJson(JSON.parse(e),n)},n.toBinary=function(e){var n=this.getType().runtime.bin,r=n.makeWriteOptions(e),t=r.writerFactory();return n.writeMessage(this,t,r),t.finish()},n.toJson=function(e){var n=this.getType().runtime.json,r=n.makeWriteOptions(e);return n.writeMessage(this,r)},n.toJsonString=function(e){var n,r=this.toJson(e);return JSON.stringify(r,null,null!=(n=null==e?void 0:e.prettySpaces)?n:0)},n.getType=function(){return Object.getPrototypeOf(this).constructor},e}();function g(e,n,r,t){return{syntax:e,json:n,bin:r,util:t,makeMessageType:function(e,n,r){return function(e,n,r,t){var o,i,a=null!=(o=null==t?void 0:t.localName)?o:n.substring(n.lastIndexOf(".")+1),s=(i={},i[a]=function(n){e.util.initFields(this),e.util.initPartial(n,this)},i)[a];return Object.setPrototypeOf(s.prototype,new T),Object.assign(s,{runtime:e,typeName:n,fields:e.util.newFieldList(r),fromBinary:function(e,n){return(new s).fromBinary(e,n)},fromJson:function(e,n){return(new s).fromJson(e,n)},fromJsonString:function(e,n){return(new s).fromJsonString(e,n)},equals:function(n,r){return e.util.equals(s,n,r)}}),s}(this,e,n,r)},makeEnum:d,makeEnumType:m,getEnumType:p}}function h(){for(var e=0,n=0,r=0;r<28;r+=7){var t=this.buf[this.pos++];if(e|=(127&t)<<r,0==(128&t))return this.assertBounds(),[e,n]}var o=this.buf[this.pos++];if(e|=(15&o)<<28,n=(112&o)>>4,0==(128&o))return this.assertBounds(),[e,n];for(var i=3;i<=31;i+=7){var a=this.buf[this.pos++];if(n|=(127&a)<<i,0==(128&a))return this.assertBounds(),[e,n]}throw new Error("invalid varint")}function S(e,n,r){for(var t=0;t<28;t+=7){var o=e>>>t,i=!(o>>>7==0&&0==n);if(r.push(255&(i?128|o:o)),!i)return}var a=e>>>28&15|(7&n)<<4,s=!(n>>3==0);if(r.push(255&(s?128|a:a)),s){for(var u=3;u<31;u+=7){var l=n>>>u,c=!(l>>>7==0);if(r.push(255&(c?128|l:l)),!c)return}r.push(n>>>31&1)}}function w(e){var n="-"==e[0];n&&(e=e.slice(1));var r=1e6,t=0,o=0;function i(n,i){var a=Number(e.slice(n,i));o*=r,(t=t*r+a)>=4294967296&&(o+=t/4294967296|0,t%=4294967296)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[n,t,o]}function N(e,n){if(n<=2097151)return""+(4294967296*n+e);var r=(e>>>24|n<<8)>>>0&16777215,t=n>>16&65535,o=(16777215&e)+6777216*r+6710656*t,i=r+8147497*t,a=2*t,s=1e7;function u(e,n){var r=e?String(e):"";return n?"0000000".slice(r.length)+r:r}return o>=s&&(i+=Math.floor(o/s),o%=s),i>=s&&(a+=Math.floor(i/s),i%=s),u(a,0)+u(i,a)+u(o,1)}function b(e,n){if(e>=0){for(;e>127;)n.push(127&e|128),e>>>=7;n.push(e)}else{for(var r=0;r<9;r++)n.push(127&e|128),e>>=7;n.push(1)}}function E(){var e=this.buf[this.pos++],n=127&e;if(0==(128&e))return this.assertBounds(),n;if(n|=(127&(e=this.buf[this.pos++]))<<7,0==(128&e))return this.assertBounds(),n;if(n|=(127&(e=this.buf[this.pos++]))<<14,0==(128&e))return this.assertBounds(),n;if(n|=(127&(e=this.buf[this.pos++]))<<21,0==(128&e))return this.assertBounds(),n;n|=(15&(e=this.buf[this.pos++]))<<28;for(var r=5;0!=(128&e)&&r<10;r++)e=this.buf[this.pos++];if(0!=(128&e))throw new Error("invalid varint");return this.assertBounds(),n>>>0}exports.ScalarType=void 0,(y=exports.ScalarType||(exports.ScalarType={}))[y.DOUBLE=1]="DOUBLE",y[y.FLOAT=2]="FLOAT",y[y.INT64=3]="INT64",y[y.UINT64=4]="UINT64",y[y.INT32=5]="INT32",y[y.FIXED64=6]="FIXED64",y[y.FIXED32=7]="FIXED32",y[y.BOOL=8]="BOOL",y[y.STRING=9]="STRING",y[y.BYTES=12]="BYTES",y[y.UINT32=13]="UINT32",y[y.SFIXED32=15]="SFIXED32",y[y.SFIXED64=16]="SFIXED64",y[y.SINT32=17]="SINT32",y[y.SINT64=18]="SINT64";var k,x=function(){var e=new DataView(new ArrayBuffer(8));if(void 0!==globalThis.BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64){var n=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),t=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse:function(e){var t="bigint"==typeof e?e:BigInt(e);if(t>r||t<n)throw new Error("int64 invalid: "+e);return t},uParse:function(e){var n="bigint"==typeof e?e:BigInt(e);if(n>o||n<t)throw new Error("uint64 invalid: "+e);return n},enc:function(n){return e.setBigInt64(0,this.parse(n),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc:function(n){return e.setBigInt64(0,this.uParse(n),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec:function(n,r){return e.setInt32(0,n,!0),e.setInt32(4,r,!0),e.getBigInt64(0,!0)},uDec:function(n,r){return e.setInt32(0,n,!0),e.setInt32(4,r,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse:function(e){if(!/^-?[0-9]+$/.test(e))throw new Error("int64 invalid: "+e);return e},uParse:function(e){if(!/^-?[0-9]+$/.test(e))throw new Error("uint64 invalid: "+e);return e},enc:function(e){if("string"==typeof e){if(!/^-?[0-9]+$/.test(e))throw new Error("int64 invalid: "+e)}else e=e.toString(10);var n=w(e);return{lo:n[1],hi:n[2]}},uEnc:function(e){if("string"==typeof e){if(!/^-?[0-9]+$/.test(e))throw new Error("uint64 invalid: "+e)}else e=e.toString(10);var n=w(e),r=n[1],t=n[2];if(n[0])throw new Error("uint64 invalid: "+e);return{lo:r,hi:t}},dec:function(e,n){return 0!=(2147483648&n)?(n=~n,e?e=1+~e:n+=1,"-"+N(e,n)):N(e,n)},uDec:function(e,n){return N(e,n)}}}();exports.WireType=void 0,(k=exports.WireType||(exports.WireType={}))[k.Varint=0]="Varint",k[k.Bit64=1]="Bit64",k[k.LengthDelimited=2]="LengthDelimited",k[k.StartGroup=3]="StartGroup",k[k.EndGroup=4]="EndGroup",k[k.Bit32=5]="Bit32";var I=/*#__PURE__*/function(){function e(e){this.chunks=void 0,this.buf=void 0,this.stack=[],this.textEncoder=void 0,this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}var n=e.prototype;return n.finish=function(){this.chunks.push(new Uint8Array(this.buf));for(var e=0,n=0;n<this.chunks.length;n++)e+=this.chunks[n].length;for(var r=new Uint8Array(e),t=0,o=0;o<this.chunks.length;o++)r.set(this.chunks[o],t),t+=this.chunks[o].length;return this.chunks=[],r},n.fork=function(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this},n.join=function(){var e=this.finish(),n=this.stack.pop();if(!n)throw new Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(e.byteLength),this.raw(e)},n.tag=function(e,n){return this.uint32((e<<3|n)>>>0)},n.raw=function(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this},n.uint32=function(e){for(u(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this},n.int32=function(e){return s(e),b(e,this.buf),this},n.bool=function(e){return this.buf.push(e?1:0),this},n.bytes=function(e){return this.uint32(e.byteLength),this.raw(e)},n.string=function(e){var n=this.textEncoder.encode(e);return this.uint32(n.byteLength),this.raw(n)},n.float=function(e){l(e);var n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,e,!0),this.raw(n)},n.double=function(e){var n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,e,!0),this.raw(n)},n.fixed32=function(e){u(e);var n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,e,!0),this.raw(n)},n.sfixed32=function(e){s(e);var n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,e,!0),this.raw(n)},n.sint32=function(e){return s(e),b(e=(e<<1^e>>31)>>>0,this.buf),this},n.sfixed64=function(e){var n=new Uint8Array(8),r=new DataView(n.buffer),t=x.enc(e);return r.setInt32(0,t.lo,!0),r.setInt32(4,t.hi,!0),this.raw(n)},n.fixed64=function(e){var n=new Uint8Array(8),r=new DataView(n.buffer),t=x.uEnc(e);return r.setInt32(0,t.lo,!0),r.setInt32(4,t.hi,!0),this.raw(n)},n.int64=function(e){var n=x.enc(e);return S(n.lo,n.hi,this.buf),this},n.sint64=function(e){var n=x.enc(e),r=n.hi>>31;return S(n.lo<<1^r,(n.hi<<1|n.lo>>>31)^r,this.buf),this},n.uint64=function(e){var n=x.uEnc(e);return S(n.lo,n.hi,this.buf),this},e}(),_=/*#__PURE__*/function(){function e(e,n){this.pos=void 0,this.len=void 0,this.buf=void 0,this.view=void 0,this.textDecoder=void 0,this.varint64=h,this.uint32=E,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=n?n:new TextDecoder}var n=e.prototype;return n.tag=function(){var e=this.uint32(),n=e>>>3,r=7&e;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]},n.skip=function(e){var n=this.pos;switch(e){case exports.WireType.Varint:for(;128&this.buf[this.pos++];);break;case exports.WireType.Bit64:this.pos+=4;case exports.WireType.Bit32:this.pos+=4;break;case exports.WireType.LengthDelimited:var r=this.uint32();this.pos+=r;break;case exports.WireType.StartGroup:for(var t;(t=this.tag()[1])!==exports.WireType.EndGroup;)this.skip(t);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)},n.assertBounds=function(){if(this.pos>this.len)throw new RangeError("premature EOF")},n.int32=function(){return 0|this.uint32()},n.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},n.int64=function(){return x.dec.apply(x,this.varint64())},n.uint64=function(){return x.uDec.apply(x,this.varint64())},n.sint64=function(){var e=this.varint64(),n=e[0],r=e[1],t=-(1&n);return x.dec(n=(n>>>1|(1&r)<<31)^t,r=r>>>1^t)},n.bool=function(){var e=this.varint64();return 0!==e[0]||0!==e[1]},n.fixed32=function(){return this.view.getUint32((this.pos+=4)-4,!0)},n.sfixed32=function(){return this.view.getInt32((this.pos+=4)-4,!0)},n.fixed64=function(){return x.uDec(this.sfixed32(),this.sfixed32())},n.sfixed64=function(){return x.dec(this.sfixed32(),this.sfixed32())},n.float=function(){return this.view.getFloat32((this.pos+=4)-4,!0)},n.double=function(){return this.view.getFloat64((this.pos+=8)-8,!0)},n.bytes=function(){var e=this.uint32(),n=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(n,n+e)},n.string=function(){return this.textDecoder.decode(this.bytes())},e}();function O(e,n){if(n instanceof e)return n;if(e.fieldWrapper)return e.fieldWrapper.wrapField(n);throw new Error("cannot unwrap field value, "+e.typeName+" does not define a field wrapper")}function F(e,n){return e.fieldWrapper?e.fieldWrapper.unwrapField(n):n}function J(e,n,r){if(n===r)return!0;if(e==exports.ScalarType.BYTES){if(!(n instanceof Uint8Array&&r instanceof Uint8Array))return!1;if(n.length!==r.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==r[t])return!1;return!0}switch(e){case exports.ScalarType.UINT64:case exports.ScalarType.FIXED64:case exports.ScalarType.INT64:case exports.ScalarType.SFIXED64:case exports.ScalarType.SINT64:return n==r}return!1}function P(e){switch(e){case exports.ScalarType.BOOL:return!1;case exports.ScalarType.UINT64:case exports.ScalarType.FIXED64:case exports.ScalarType.INT64:case exports.ScalarType.SFIXED64:case exports.ScalarType.SINT64:return x.zero;case exports.ScalarType.DOUBLE:case exports.ScalarType.FLOAT:return 0;case exports.ScalarType.BYTES:return new Uint8Array(0);case exports.ScalarType.STRING:return"";default:return 0}}function D(e,n){var r=void 0===n,t=exports.WireType.Varint,o=0===n;switch(e){case exports.ScalarType.STRING:o=r||!n.length,t=exports.WireType.LengthDelimited;break;case exports.ScalarType.BOOL:o=!1===n;break;case exports.ScalarType.DOUBLE:t=exports.WireType.Bit64;break;case exports.ScalarType.FLOAT:t=exports.WireType.Bit32;break;case exports.ScalarType.INT64:case exports.ScalarType.UINT64:o=r||0==n;break;case exports.ScalarType.FIXED64:o=r||0==n,t=exports.WireType.Bit64;break;case exports.ScalarType.BYTES:o=r||!n.byteLength,t=exports.WireType.LengthDelimited;break;case exports.ScalarType.FIXED32:case exports.ScalarType.SFIXED32:t=exports.WireType.Bit32;break;case exports.ScalarType.SFIXED64:o=r||0==n,t=exports.WireType.Bit64;break;case exports.ScalarType.SINT64:o=r||0==n}return[t,exports.ScalarType[e].toLowerCase(),r||o]}var B=Symbol("@bufbuild/protobuf/unknown-fields"),L={readUnknownFields:!0,readerFactory:function(e){return new _(e)}},U={writeUnknownFields:!0,writerFactory:function(){return new I}};function A(n){return n?e({},L,n):L}function V(n){return n?e({},U,n):U}function q(){return{makeReadOptions:A,makeWriteOptions:V,listUnknownFields:function(e){var n;return null!=(n=e[B])?n:[]},discardUnknownFields:function(e){delete e[B]},writeUnknownFields:function(e,n){var r=e[B];if(r)for(var t,o=i(r);!(t=o()).done;){var a=t.value;n.tag(a.no,a.wireType).raw(a.data)}},onUnknownField:function(e,n,r,t){var o=e;Array.isArray(o[B])||(o[B]=[]),o[B].push({no:n,wireType:r,data:t})},readMessage:function(e,n,r,t){for(var o=e.getType(),i=void 0===r?n.len:n.pos+r;n.pos<i;){var a=n.tag(),s=a[0],u=a[1],l=o.fields.find(s);if(l){var c=e,p=l.repeated,f=l.localName;switch(l.oneof&&((c=c[l.oneof.localName]).case!=f&&delete c.value,c.case=f,f="value"),l.kind){case"scalar":case"enum":var m="enum"==l.kind?exports.ScalarType.INT32:l.T;if(p){var d=c[f];if(u==exports.WireType.LengthDelimited&&m!=exports.ScalarType.STRING&&m!=exports.ScalarType.BYTES)for(var v=n.uint32()+n.pos;n.pos<v;)d.push(j(n,m));else d.push(j(n,m))}else c[f]=j(n,m);break;case"message":var y=l.T;p?c[f].push(y.fromBinary(n.bytes(),t)):c[f]instanceof y?c[f].fromBinary(n.bytes(),t):c[f]=F(y,y.fromBinary(n.bytes(),t));break;case"map":var T=R(l,n,t);c[f][T[0]]=T[1]}}else{var g=n.skip(u);t.readUnknownFields&&this.onUnknownField(e,s,u,g)}}}}}function R(e,n,r){for(var t,o,i=n.uint32(),a=n.pos+i;n.pos<a;)switch(n.tag()[0]){case 1:t=j(n,e.K);break;case 2:switch(e.V.kind){case"scalar":o=j(n,e.V.T);break;case"enum":o=n.int32();break;case"message":o=e.V.T.fromBinary(n.bytes(),r)}}if(void 0===t){var s=P(e.K);t=e.K==exports.ScalarType.BOOL?s.toString():s}if("string"!=typeof t&&"number"!=typeof t&&(t=t.toString()),void 0===o)switch(e.V.kind){case"scalar":o=P(e.V.T);break;case"enum":o=0;break;case"message":o=new e.V.T}return[t,o]}function j(e,n){return e[D(n)[1]]()}function M(e,n,r,t,o){e.tag(r.no,exports.WireType.LengthDelimited),e.fork();var i=t;switch(r.K){case exports.ScalarType.INT32:case exports.ScalarType.FIXED32:case exports.ScalarType.UINT32:case exports.ScalarType.SFIXED32:case exports.ScalarType.SINT32:i=Number.parseInt(t);break;case exports.ScalarType.BOOL:a("true"==t||"false"==t),i="true"==t}switch(C(e,r.K,1,i,!0),r.V.kind){case"scalar":C(e,r.V.T,2,o,!0);break;case"enum":C(e,exports.ScalarType.INT32,2,o,!0);break;case"message":Y(e,n,r.V.T,2,o)}e.join()}function Y(e,n,r,t,o){if(void 0!==o){var i=O(r,o);e.tag(t,exports.WireType.LengthDelimited).bytes(i.toBinary(n))}}function C(e,n,r,t,o){var i=D(n,t),a=i[1];i[2]&&!o||e.tag(r,i[0])[a](t)}function G(e,n,r,t){if(t.length){e.tag(r,exports.WireType.LengthDelimited).fork();for(var o=D(n)[1],i=0;i<t.length;i++)e[o](t[i]);e.join()}}for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),X=[],K=0;K<W.length;K++)X[W[K].charCodeAt(0)]=K;X["-".charCodeAt(0)]=W.indexOf("+"),X["_".charCodeAt(0)]=W.indexOf("/");var z={dec:function(e){var n=3*e.length/4;"="==e[e.length-2]?n-=2:"="==e[e.length-1]&&(n-=1);for(var r,t=new Uint8Array(n),o=0,i=0,a=0,s=0;s<e.length;s++){if(void 0===(r=X[e.charCodeAt(s)]))switch(e[s]){case"=":i=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=r,i=1;break;case 1:t[o++]=a<<2|(48&r)>>4,a=r,i=2;break;case 2:t[o++]=(15&a)<<4|(60&r)>>2,a=r,i=3;break;case 3:t[o++]=(3&a)<<6|r,i=0}}if(1==i)throw Error("invalid base64 string.");return t.subarray(0,o)},enc:function(e){for(var n,r="",t=0,o=0,i=0;i<e.length;i++)switch(n=e[i],t){case 0:r+=W[n>>2],o=(3&n)<<4,t=1;break;case 1:r+=W[o|n>>4],o=(15&n)<<2,t=2;break;case 2:r+=W[o|n>>6],r+=W[63&n],t=0}return t&&(r+=W[o],r+="=",1==t&&(r+="=")),r}},Z={ignoreUnknownFields:!1},Q={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function $(n){return n?e({},Z,n):Z}function H(n){return n?e({},Q,n):Q}function ee(e){var n=e(oe,ie);return{makeReadOptions:$,makeWriteOptions:H,readMessage:function(e,n,r,t){var o;if(null==n||Array.isArray(n)||"object"!=typeof n)throw new Error("cannot decode message "+e.typeName+" from JSON: "+this.debug(n));t=null!=(o=t)?o:new e;for(var a={},s=0,u=Object.entries(n);s<u.length;s++){var l=u[s],c=l[0],p=l[1],f=e.fields.findJsonName(c);if(f){var m=f.localName,d=t;if(f.oneof){if(null===p&&"scalar"==f.kind)continue;var v=a[f.oneof.localName];if(v)throw new Error("cannot decode message "+e.typeName+' from JSON: multiple keys for oneof "'+f.oneof.name+'" present: "'+v+'", "'+c+'"');a[f.oneof.localName]=c,d=d[f.oneof.localName]={case:m},m="value"}if(f.repeated){if(null===p)continue;if(!Array.isArray(p))throw new Error("cannot decode field "+e.typeName+"."+f.name+' from JSON: "'+this.debug(p)+'"');for(var y,T=d[m],g=i(p);!(y=g()).done;){var h=y.value;if(null===h)throw new Error("cannot decode field "+e.typeName+"."+f.name+' from JSON: "'+this.debug(h)+'"');var S=void 0;switch(f.kind){case"message":S=f.T.fromJson(h,r);break;case"enum":if(void 0===(S=te(f.T,h,r.ignoreUnknownFields)))continue;break;case"scalar":try{S=re(f.T,h)}catch(n){var w="cannot decode field "+e.typeName+"."+f.name+' from JSON: "'+this.debug(h)+'"';throw n instanceof Error&&n.message.length>0&&(w+=": "+n.message),new Error(w)}}T.push(S)}}else if("map"==f.kind){if(null===p)continue;if(Array.isArray(p)||"object"!=typeof p)throw new Error("cannot decode field "+e.typeName+"."+f.name+" from JSON: "+this.debug(p));for(var N=d[m],b=0,E=Object.entries(p);b<E.length;b++){var k=E[b],x=k[0],I=k[1];if(null===I)throw new Error("cannot decode field "+e.typeName+"."+f.name+" from JSON: map value null");var _=void 0;switch(f.V.kind){case"message":_=f.V.T.fromJson(I,r);break;case"enum":if(void 0===(_=te(f.V.T,I,r.ignoreUnknownFields)))continue;break;case"scalar":try{_=re(f.V.T,I)}catch(n){var J="cannot decode map value for field "+e.typeName+"."+f.name+' from JSON: "'+this.debug(p)+'"';throw n instanceof Error&&n.message.length>0&&(J+=": "+n.message),new Error(J)}}try{N[re(f.K,f.K==exports.ScalarType.BOOL?"true"==x||"false"!=x&&x:x).toString()]=_}catch(n){var P="cannot decode map key for field "+e.typeName+"."+f.name+' from JSON: "'+this.debug(p)+'"';throw n instanceof Error&&n.message.length>0&&(P+=": "+n.message),new Error(P)}}}else switch(f.kind){case"message":var D=f.T;if(null===p&&"google.protobuf.Value"!=D.typeName){if(f.oneof)throw new Error("cannot decode field "+e.typeName+"."+f.name+' from JSON: null is invalid for oneof field "'+c+'"');continue}var B=void 0===d[m]?new D:O(D,d[m]);d[m]=F(D,B.fromJson(p,r));break;case"enum":var L=te(f.T,p,r.ignoreUnknownFields);void 0!==L&&(d[m]=L);break;case"scalar":try{d[m]=re(f.T,p)}catch(n){var U="cannot decode field "+e.typeName+"."+f.name+' from JSON: "'+this.debug(p)+'"';throw n instanceof Error&&n.message.length>0&&(U+=": "+n.message),new Error(U)}}}else if(!r.ignoreUnknownFields)throw new Error("cannot decode message "+e.typeName+' from JSON: key "'+c+'" is unknown')}return t},writeMessage:function(e,r){var t,o=e.getType(),a={};try{for(var s,u=i(o.fields.byMember());!(s=u()).done;){var l=s.value,c=void 0;if("oneof"==l.kind){var p=e[l.localName];if(void 0===p.value)continue;if(!(t=l.findField(p.case)))throw"oneof case not found: "+p.case;c=n(t,p.value,r)}else c=n(t=l,e[t.localName],r);void 0!==c&&(a[r.useProtoFieldName?t.name:t.jsonName]=c)}}catch(e){var f=t?"cannot encode field "+o.typeName+"."+t.name+" to JSON":"cannot encode message "+o.typeName+" to JSON",m=e instanceof Error?e.message:String(e);throw new Error(f+(m.length>0?": "+m:""))}return a},readScalar:re,writeScalar:ie,debug:ne}}function ne(e){if(null===e)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":'"'+e.split('"').join('\\"')+'"';default:return e.toString()}}function re(e,n){switch(e){case exports.ScalarType.DOUBLE:case exports.ScalarType.FLOAT:if(null===n)return 0;if("NaN"===n)return Number.NaN;if("Infinity"===n)return Number.POSITIVE_INFINITY;if("-Infinity"===n)return Number.NEGATIVE_INFINITY;if(""===n)break;if("string"==typeof n&&n.trim().length!==n.length)break;if("string"!=typeof n&&"number"!=typeof n)break;var r=Number(n);if(Number.isNaN(r))break;if(!Number.isFinite(r))break;return e==exports.ScalarType.FLOAT&&l(r),r;case exports.ScalarType.INT32:case exports.ScalarType.FIXED32:case exports.ScalarType.SFIXED32:case exports.ScalarType.SINT32:case exports.ScalarType.UINT32:if(null===n)return 0;var t;if("number"==typeof n?t=n:"string"==typeof n&&n.length>0&&n.trim().length===n.length&&(t=Number(n)),void 0===t)break;return e==exports.ScalarType.UINT32?u(t):s(t),t;case exports.ScalarType.INT64:case exports.ScalarType.SFIXED64:case exports.ScalarType.SINT64:if(null===n)return x.zero;if("number"!=typeof n&&"string"!=typeof n)break;return x.parse(n);case exports.ScalarType.FIXED64:case exports.ScalarType.UINT64:if(null===n)return x.zero;if("number"!=typeof n&&"string"!=typeof n)break;return x.uParse(n);case exports.ScalarType.BOOL:if(null===n)return!1;if("boolean"!=typeof n)break;return n;case exports.ScalarType.STRING:if(null===n)return"";if("string"!=typeof n)break;try{encodeURIComponent(n)}catch(e){throw new Error("invalid UTF8")}return n;case exports.ScalarType.BYTES:if(null===n||""===n)return new Uint8Array(0);if("string"!=typeof n)break;return z.dec(n)}throw new Error}function te(e,n,r){if(null===n)return 0;switch(typeof n){case"number":if(Number.isInteger(n))return n;break;case"string":var t=e.findName(n);if(t||r)return null==t?void 0:t.no}throw new Error("cannot decode enum "+e.typeName+" from JSON: "+ne(n))}function oe(e,n,r,t){var o;if(void 0===n)return n;if(0!==n||r){if(t)return n;if("google.protobuf.NullValue"==e.typeName)return null;var i=e.findNumber(n);return null!=(o=null==i?void 0:i.name)?o:n}}function ie(e,n,r){if(void 0!==n)switch(e){case exports.ScalarType.INT32:case exports.ScalarType.SFIXED32:case exports.ScalarType.SINT32:case exports.ScalarType.FIXED32:case exports.ScalarType.UINT32:return a("number"==typeof n),0!=n||r?n:void 0;case exports.ScalarType.FLOAT:case exports.ScalarType.DOUBLE:return a("number"==typeof n),Number.isNaN(n)?"NaN":n===Number.POSITIVE_INFINITY?"Infinity":n===Number.NEGATIVE_INFINITY?"-Infinity":0!==n||r?n:void 0;case exports.ScalarType.STRING:return a("string"==typeof n),n.length>0||r?n:void 0;case exports.ScalarType.BOOL:return a("boolean"==typeof n),n||r?n:void 0;case exports.ScalarType.UINT64:case exports.ScalarType.FIXED64:case exports.ScalarType.INT64:case exports.ScalarType.SFIXED64:case exports.ScalarType.SINT64:return a("bigint"==typeof n||"string"==typeof n||"number"==typeof n),r||0!=n?n.toString(10):void 0;case exports.ScalarType.BYTES:return a(n instanceof Uint8Array),r||n.byteLength>0?z.enc(n):void 0}}function ae(){return{setEnumType:f,initPartial:function(e,n){if(void 0!==e)for(var r,t=i(n.getType().fields.byMember());!(r=t()).done;){var o=r.value,a=o.localName,s=n,u=e;void 0!==u[a]&&function(){switch(o.kind){case"oneof":var e=u[a].case;if(void 0===e)return"continue";var n=o.findField(e),r=u[a].value;!n||"message"!=n.kind||r instanceof n.T||(r=new n.T(r)),s[a]={case:e,value:r};break;case"scalar":case"enum":s[a]=u[a];break;case"map":switch(o.V.kind){case"scalar":case"enum":Object.assign(s[a],u[a]);break;case"message":for(var t=o.V.T,i=0,l=Object.keys(u[a]);i<l.length;i++){var c=l[i],p=u[a][c];t.fieldWrapper||(p=new t(p)),s[a][c]=p}}break;case"message":var f=o.T;if(o.repeated)s[a]=u[a].map(function(e){return e instanceof f?e:new f(e)});else if(void 0!==u[a]){var m=u[a];s[a]=f.fieldWrapper||m instanceof f?m:new f(m)}}}()}},equals:function(e,n,r){return n===r||!(!n||!r)&&e.fields.byMember().every(function(e){var t=n[e.localName],o=r[e.localName];if(e.repeated){if(t.length!==o.length)return!1;switch(e.kind){case"message":return t.every(function(n,r){return e.T.equals(n,o[r])});case"scalar":return t.every(function(n,r){return J(e.T,n,o[r])});case"enum":return t.every(function(e,n){return J(exports.ScalarType.INT32,e,o[n])})}throw new Error("repeated cannot contain "+e.kind)}switch(e.kind){case"message":return e.T.equals(t,o);case"enum":return J(exports.ScalarType.INT32,t,o);case"scalar":return J(e.T,t,o);case"oneof":if(t.case!==o.case)return!1;var i=t.case,a=e.findField(i);if(void 0===a)return!0;switch(a.kind){case"message":return a.T.equals(t[i],o[i]);case"enum":return J(exports.ScalarType.INT32,t,o);case"scalar":return J(a.T,t,o)}throw new Error("oneof cannot contain "+a.kind);case"map":var s=Object.keys(t);if(s.some(function(e){return void 0===o[e]}))return!1;switch(e.V.kind){case"message":var u=e.V.T;return s.every(function(e){return u.equals(t[e],o[e])});case"enum":return s.every(function(e){return J(exports.ScalarType.INT32,t[e],o[e])});case"scalar":var l=e.V.T;return s.every(function(e){return J(l,t[e],o[e])})}}})},clone:function(e){for(var n,r=e.getType(),t=new r,o=t,a=function(){var r=n.value,t=e[r.localName],i=void 0;if(r.repeated)i=t.map(function(e){return se(r,e)});else if("map"==r.kind){i=o[r.localName];for(var a=0,s=Object.entries(t);a<s.length;a++){var u=s[a];i[u[0]]=se(r.V,u[1])}}else if("oneof"==r.kind){var l=r.findField(t.case);i=l?{case:t.case,value:se(l,t.value)}:{case:void 0}}else i=se(r,t);o[r.localName]=i},s=i(r.fields.byMember());!(n=s()).done;)a();return t}}}function se(e,n){if(void 0===n)return n;switch(e.kind){case"enum":return n;case"scalar":if(e.T===exports.ScalarType.BYTES){var r=new Uint8Array(n.byteLength);return r.set(n),r}return n;case"message":return e.T.fieldWrapper?e.T.fieldWrapper.unwrapField(e.T.fieldWrapper.wrapField(n).clone()):n.clone()}}var ue=/*#__PURE__*/function(){function e(e,n){this._fields=void 0,this._normalizer=void 0,this.all=void 0,this.numbersAsc=void 0,this.jsonNames=void 0,this.numbers=void 0,this.members=void 0,this._fields=e,this._normalizer=n}var n=e.prototype;return n.findJsonName=function(e){if(!this.jsonNames){for(var n,r={},t=i(this.list());!(n=t()).done;){var o=n.value;r[o.jsonName]=r[o.name]=o}this.jsonNames=r}return this.jsonNames[e]},n.find=function(e){if(!this.numbers){for(var n,r={},t=i(this.list());!(n=t()).done;){var o=n.value;r[o.no]=o}this.numbers=r}return this.numbers[e]},n.list=function(){return this.all||(this.all=this._normalizer(this._fields)),this.all},n.byNumber=function(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort(function(e,n){return e.no-n.no})),this.numbersAsc},n.byMember=function(){if(!this.members){this.members=[];for(var e,n,r=this.members,t=i(this.list());!(n=t()).done;){var o=n.value;o.oneof?o.oneof!==e&&r.push(e=o.oneof):r.push(o)}}return this.members},e}();function le(e){return pe(e)}function ce(e,n){var r=pe(e);return n?r:me[r]?r+fe:r}function pe(e){for(var n=!1,r=[],t=0;t<e.length;t++){var o=e.charAt(t);switch(o){case"_":n=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(o),n=!1;break;default:n&&(n=!1,o=o.toUpperCase()),r.push(o)}}return r.join("")}var fe="$",me={constructor:!0,toString:!0,toJSON:!0,valueOf:!0,getType:!0,clone:!0,equals:!0,fromBinary:!0,fromJson:!0,fromJsonString:!0,toBinary:!0,toJson:!0,toJsonString:!0,toObject:!0},de=/*#__PURE__*/function(){function e(e){this.kind="oneof",this.name=void 0,this.localName=void 0,this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this._lookup=void 0,this.name=e,this.localName=ce(e,!1)}var n=e.prototype;return n.addField=function(e){a(e.oneof===this,"field "+e.name+" not one of "+this.name),this.fields.push(e)},n.findField=function(e){if(!this._lookup){this._lookup=Object.create(null);for(var n=0;n<this.fields.length;n++)this._lookup[this.fields[n].localName]=this.fields[n]}return this._lookup[e]},e}(),ve=g("proto3",ee(function(e,n){return function(r,t,o){if("map"==r.kind){var i={};switch(r.V.kind){case"scalar":for(var s=0,u=Object.entries(t);s<u.length;s++){var l=u[s],c=l[0],p=n(r.V.T,l[1],!0);a(void 0!==p),i[c.toString()]=p}break;case"message":for(var f=0,m=Object.entries(t);f<m.length;f++){var d=m[f],v=d[1];i[d[0].toString()]=v.toJson(o)}break;case"enum":for(var y=r.V.T,T=0,g=Object.entries(t);T<g.length;T++){var h=g[T],S=h[0],w=h[1];a(void 0===w||"number"==typeof w);var N=e(y,w,!0,o.enumAsInteger);a(void 0!==N),i[S.toString()]=N}}return o.emitDefaultValues||Object.keys(i).length>0?i:void 0}if(r.repeated){var b=[];switch(r.kind){case"scalar":for(var E=0;E<t.length;E++)b.push(n(r.T,t[E],!0));break;case"enum":for(var k=0;k<t.length;k++)b.push(e(r.T,t[k],!0,o.enumAsInteger));break;case"message":for(var x=0;x<t.length;x++)b.push(O(r.T,t[x]).toJson(o))}return o.emitDefaultValues||b.length>0?b:void 0}switch(r.kind){case"scalar":return n(r.T,t,!!r.oneof||r.opt||o.emitDefaultValues);case"enum":return e(r.T,t,!!r.oneof||r.opt||o.emitDefaultValues,o.enumAsInteger);case"message":return void 0!==t?O(r.T,t).toJson(o):void 0}}}),e({},q(),{writeMessage:function(e,n,r){for(var t,o=i(e.getType().fields.byNumber());!(t=o()).done;){var a=t.value,s=void 0,u=a.repeated,l=a.localName;if(a.oneof){var c=e[a.oneof.localName];if(c.case!==l)continue;s=c.value}else s=e[l];switch(a.kind){case"scalar":case"enum":var p="enum"==a.kind?exports.ScalarType.INT32:a.T;if(u)if(a.packed)G(n,p,a.no,s);else for(var f,m=i(s);!(f=m()).done;)C(n,p,a.no,f.value,!0);else void 0!==s&&C(n,p,a.no,s,!!a.oneof||a.opt);break;case"message":if(u)for(var d,v=i(s);!(d=v()).done;)Y(n,r,a.T,a.no,d.value);else Y(n,r,a.T,a.no,s);break;case"map":for(var y=0,T=Object.entries(s);y<T.length;y++){var g=T[y];M(n,r,a,g[0],g[1])}}}return r.writeUnknownFields&&this.writeUnknownFields(e,n),n}}),e({},ae(),{newFieldList:function(e){return new ue(e,ye)},initFields:function(e){for(var n,r=i(e.getType().fields.byMember());!(n=r()).done;){var t=n.value;if(!t.opt){var o=t.localName,a=e;if(t.repeated)a[o]=[];else switch(t.kind){case"oneof":a[o]={case:void 0};break;case"enum":a[o]=0;break;case"map":a[o]={};break;case"scalar":a[o]=P(t.T)}}}}}));function ye(e){for(var n,r,t=[],o=i("function"==typeof e?e():e);!(r=o()).done;){var a,s,u,l=r.value,c=l;if(c.localName=ce(l.name,void 0!==l.oneof),c.jsonName=null!=(a=l.jsonName)?a:le(l.name),c.repeated=null!=(s=l.repeated)&&s,c.packed=null!=(u=l.packed)?u:"enum"==l.kind||"scalar"==l.kind&&l.T!=exports.ScalarType.BYTES&&l.T!=exports.ScalarType.STRING,void 0!==l.oneof){var p="string"==typeof l.oneof?l.oneof:l.oneof.name;n&&n.name==p||(n=new de(p)),c.oneof=n,n.addField(c)}t.push(c)}return t}var Te,ge,he=g("proto2",ee(function(e,n){return function(r,t,o){if("map"==r.kind){var i={};switch(r.V.kind){case"scalar":for(var s=0,u=Object.entries(t);s<u.length;s++){var l=u[s],c=l[0],p=n(r.V.T,l[1],!0);a(void 0!==p),i[c.toString()]=p}break;case"message":for(var f=0,m=Object.entries(t);f<m.length;f++){var d=m[f],v=d[1];i[d[0].toString()]=v.toJson(o)}break;case"enum":for(var y=r.V.T,T=0,g=Object.entries(t);T<g.length;T++){var h=g[T],S=h[0],w=h[1];a(void 0===w||"number"==typeof w);var N=e(y,w,!0,o.enumAsInteger);a(void 0!==N),i[S.toString()]=N}}return o.emitDefaultValues||Object.keys(i).length>0?i:void 0}if(r.repeated){var b=[];switch(r.kind){case"scalar":for(var E=0;E<t.length;E++)b.push(n(r.T,t[E],!0));break;case"enum":for(var k=0;k<t.length;k++)b.push(e(r.T,t[k],!0,o.enumAsInteger));break;case"message":for(var x=0;x<t.length;x++)b.push(t[x].toJson(o))}return o.emitDefaultValues||b.length>0?b:void 0}if(void 0!==t)switch(r.kind){case"scalar":return n(r.T,t,!0);case"enum":return e(r.T,t,!0,o.enumAsInteger);case"message":return O(r.T,t).toJson(o)}else if(!r.oneof&&!r.opt)throw"required field not set"}}),e({},q(),{writeMessage:function(e,n,r){var t,o=e.getType();try{for(var a,s=i(o.fields.byNumber());!(a=s()).done;){var u=void 0,l=(t=a.value).repeated,c=t.localName;if(t.oneof){var p=e[t.oneof.localName];if(p.case!==c)continue;u=p.value}else if(void 0===(u=e[c])&&!t.oneof&&!t.opt)throw new Error("cannot encode field "+o.typeName+"."+t.name+" to JSON: required field not set");switch(t.kind){case"scalar":case"enum":var f="enum"==t.kind?exports.ScalarType.INT32:t.T;if(l)if(t.packed)G(n,f,t.no,u);else for(var m,d=i(u);!(m=d()).done;)C(n,f,t.no,m.value,!0);else void 0!==u&&C(n,f,t.no,u,!0);break;case"message":if(l)for(var v,y=i(u);!(v=y()).done;)Y(n,r,t.T,t.no,v.value);else Y(n,r,t.T,t.no,u);break;case"map":for(var T=0,g=Object.entries(u);T<g.length;T++){var h=g[T];M(n,r,t,h[0],h[1])}}}}catch(e){var S,w=t?"cannot encode field "+o.typeName+"."+(null==(S=t)?void 0:S.name)+" to binary":"cannot encode message "+o.typeName+" to binary",N=e instanceof Error?e.message:String(e);throw new Error(w+(N.length>0?": "+N:""))}return r.writeUnknownFields&&this.writeUnknownFields(e,n),n}}),e({},ae(),{newFieldList:function(e){return new ue(e,Se)},initFields:function(e){for(var n,r=i(e.getType().fields.byMember());!(n=r()).done;){var t=n.value,o=t.localName,a=e;if(t.repeated)a[o]=[];else switch(t.kind){case"oneof":a[o]={case:void 0};break;case"map":a[o]={}}}}}));function Se(e){for(var n,r,t=[],o=i("function"==typeof e?e():e);!(r=o()).done;){var a,s,u,l=r.value,c=l;if(c.localName=ce(l.name,void 0!==l.oneof),c.jsonName=null!=(a=l.jsonName)?a:le(l.name),c.repeated=null!=(s=l.repeated)&&s,c.packed=null!=(u=l.packed)&&u,void 0!==l.oneof){var p="string"==typeof l.oneof?l.oneof:l.oneof.name;n&&n.name==p||(n=new de(p)),c.oneof=n,n.addField(c)}t.push(c)}return t}exports.MethodKind=void 0,(Te=exports.MethodKind||(exports.MethodKind={}))[Te.Unary=0]="Unary",Te[Te.ServerStreaming=1]="ServerStreaming",Te[Te.ClientStreaming=2]="ClientStreaming",Te[Te.BiDiStreaming=3]="BiDiStreaming",exports.MethodIdempotency=void 0,(ge=exports.MethodIdempotency||(exports.MethodIdempotency={}))[ge.NoSideEffects=1]="NoSideEffects",ge[ge.Idempotent=2]="Idempotent";var we=/*#__PURE__*/function(){function e(){this.messages={},this.enums={},this.services={}}var n=e.prototype;return n.findMessage=function(e){return this.messages[e]},n.findEnum=function(e){return this.enums[e]},n.findService=function(e){return this.services[e]},n.add=function(e){"fields"in e?this.messages[e.typeName]=e:"methods"in e?this.services[e.typeName]=e:this.enums[e.typeName]=e},e.fromIterable=function(n){for(var r,t=new e,o=i(n);!(r=o()).done;)t.add(r.value);return t},e.fromTypes=function(){return e.fromIterable([].slice.call(arguments))},e}(),Ne=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).file=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ne.runtime=he,Ne.typeName="google.protobuf.FileDescriptorSet",Ne.fields=he.util.newFieldList(function(){return[{no:1,name:"file",kind:"message",T:be,repeated:!0}]});var be=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.package=void 0,r.dependency=[],r.publicDependency=[],r.weakDependency=[],r.messageType=[],r.enumType=[],r.service=[],r.extension=[],r.options=void 0,r.sourceCodeInfo=void 0,r.syntax=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);be.runtime=he,be.typeName="google.protobuf.FileDescriptorProto",be.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:Ee,repeated:!0},{no:5,name:"enum_type",kind:"message",T:Pe,repeated:!0},{no:6,name:"service",kind:"message",T:Le,repeated:!0},{no:7,name:"extension",kind:"message",T:Fe,repeated:!0},{no:8,name:"options",kind:"message",T:Ve,opt:!0},{no:9,name:"source_code_info",kind:"message",T:Qe,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0}]});var Ee=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.field=[],r.extension=[],r.nestedType=[],r.enumType=[],r.extensionRange=[],r.oneofDecl=[],r.options=void 0,r.reservedRange=[],r.reservedName=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ee.runtime=he,Ee.typeName="google.protobuf.DescriptorProto",Ee.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Fe,repeated:!0},{no:6,name:"extension",kind:"message",T:Fe,repeated:!0},{no:3,name:"nested_type",kind:"message",T:Ee,repeated:!0},{no:4,name:"enum_type",kind:"message",T:Pe,repeated:!0},{no:5,name:"extension_range",kind:"message",T:ke,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:Je,repeated:!0},{no:7,name:"options",kind:"message",T:qe,opt:!0},{no:9,name:"reserved_range",kind:"message",T:xe,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]});var ke=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).start=void 0,r.end=void 0,r.options=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);ke.runtime=he,ke.typeName="google.protobuf.DescriptorProto.ExtensionRange",ke.fields=he.util.newFieldList(function(){return[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:Ie,opt:!0}]});var xe=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).start=void 0,r.end=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);xe.runtime=he,xe.typeName="google.protobuf.DescriptorProto.ReservedRange",xe.fields=he.util.newFieldList(function(){return[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]});var Ie=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ie.runtime=he,Ie.typeName="google.protobuf.ExtensionRangeOptions",Ie.fields=he.util.newFieldList(function(){return[{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]});var _e,Oe,Fe=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.number=void 0,r.label=void 0,r.type=void 0,r.typeName=void 0,r.extendee=void 0,r.defaultValue=void 0,r.oneofIndex=void 0,r.jsonName=void 0,r.options=void 0,r.proto3Optional=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Fe.runtime=he,Fe.typeName="google.protobuf.FieldDescriptorProto",Fe.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:he.getEnumType(exports.FieldDescriptorProto_Label),opt:!0},{no:5,name:"type",kind:"enum",T:he.getEnumType(exports.FieldDescriptorProto_Type),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:Me,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]}),exports.FieldDescriptorProto_Type=void 0,(_e=exports.FieldDescriptorProto_Type||(exports.FieldDescriptorProto_Type={}))[_e.DOUBLE=1]="DOUBLE",_e[_e.FLOAT=2]="FLOAT",_e[_e.INT64=3]="INT64",_e[_e.UINT64=4]="UINT64",_e[_e.INT32=5]="INT32",_e[_e.FIXED64=6]="FIXED64",_e[_e.FIXED32=7]="FIXED32",_e[_e.BOOL=8]="BOOL",_e[_e.STRING=9]="STRING",_e[_e.GROUP=10]="GROUP",_e[_e.MESSAGE=11]="MESSAGE",_e[_e.BYTES=12]="BYTES",_e[_e.UINT32=13]="UINT32",_e[_e.ENUM=14]="ENUM",_e[_e.SFIXED32=15]="SFIXED32",_e[_e.SFIXED64=16]="SFIXED64",_e[_e.SINT32=17]="SINT32",_e[_e.SINT64=18]="SINT64",he.util.setEnumType(exports.FieldDescriptorProto_Type,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]),exports.FieldDescriptorProto_Label=void 0,(Oe=exports.FieldDescriptorProto_Label||(exports.FieldDescriptorProto_Label={}))[Oe.OPTIONAL=1]="OPTIONAL",Oe[Oe.REQUIRED=2]="REQUIRED",Oe[Oe.REPEATED=3]="REPEATED",he.util.setEnumType(exports.FieldDescriptorProto_Label,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:2,name:"LABEL_REQUIRED"},{no:3,name:"LABEL_REPEATED"}]);var Je=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.options=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Je.runtime=he,Je.typeName="google.protobuf.OneofDescriptorProto",Je.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:Ye,opt:!0}]});var Pe=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.value=[],r.options=void 0,r.reservedRange=[],r.reservedName=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Pe.runtime=he,Pe.typeName="google.protobuf.EnumDescriptorProto",Pe.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Be,repeated:!0},{no:3,name:"options",kind:"message",T:Ce,opt:!0},{no:4,name:"reserved_range",kind:"message",T:De,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]});var De=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).start=void 0,r.end=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);De.runtime=he,De.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",De.fields=he.util.newFieldList(function(){return[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]});var Be=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.number=void 0,r.options=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Be.runtime=he,Be.typeName="google.protobuf.EnumValueDescriptorProto",Be.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:Ge,opt:!0}]});var Le=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.method=[],r.options=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Le.runtime=he,Le.typeName="google.protobuf.ServiceDescriptorProto",Le.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:Ue,repeated:!0},{no:3,name:"options",kind:"message",T:We,opt:!0}]});var Ue=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.inputType=void 0,r.outputType=void 0,r.options=void 0,r.clientStreaming=void 0,r.serverStreaming=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ue.runtime=he,Ue.typeName="google.protobuf.MethodDescriptorProto",Ue.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:Ke,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]});var Ae,Ve=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).javaPackage=void 0,r.javaOuterClassname=void 0,r.javaMultipleFiles=void 0,r.javaGenerateEqualsAndHash=void 0,r.javaStringCheckUtf8=void 0,r.optimizeFor=void 0,r.goPackage=void 0,r.ccGenericServices=void 0,r.javaGenericServices=void 0,r.pyGenericServices=void 0,r.phpGenericServices=void 0,r.deprecated=void 0,r.ccEnableArenas=void 0,r.objcClassPrefix=void 0,r.csharpNamespace=void 0,r.swiftPrefix=void 0,r.phpClassPrefix=void 0,r.phpNamespace=void 0,r.phpMetadataNamespace=void 0,r.rubyPackage=void 0,r.uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ve.runtime=he,Ve.typeName="google.protobuf.FileOptions",Ve.fields=he.util.newFieldList(function(){return[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:he.getEnumType(exports.FileOptions_OptimizeMode),opt:!0,default:exports.FileOptions_OptimizeMode.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]}),exports.FileOptions_OptimizeMode=void 0,(Ae=exports.FileOptions_OptimizeMode||(exports.FileOptions_OptimizeMode={}))[Ae.SPEED=1]="SPEED",Ae[Ae.CODE_SIZE=2]="CODE_SIZE",Ae[Ae.LITE_RUNTIME=3]="LITE_RUNTIME",he.util.setEnumType(exports.FileOptions_OptimizeMode,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);var qe=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).messageSetWireFormat=void 0,r.noStandardDescriptorAccessor=void 0,r.deprecated=void 0,r.mapEntry=void 0,r.uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);qe.runtime=he,qe.typeName="google.protobuf.MessageOptions",qe.fields=he.util.newFieldList(function(){return[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]});var Re,je,Me=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).ctype=void 0,r.packed=void 0,r.jstype=void 0,r.lazy=void 0,r.unverifiedLazy=void 0,r.deprecated=void 0,r.weak=void 0,r.uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Me.runtime=he,Me.typeName="google.protobuf.FieldOptions",Me.fields=he.util.newFieldList(function(){return[{no:1,name:"ctype",kind:"enum",T:he.getEnumType(exports.FieldOptions_CType),opt:!0,default:exports.FieldOptions_CType.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:he.getEnumType(exports.FieldOptions_JSType),opt:!0,default:exports.FieldOptions_JSType.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]}),exports.FieldOptions_CType=void 0,(Re=exports.FieldOptions_CType||(exports.FieldOptions_CType={}))[Re.STRING=0]="STRING",Re[Re.CORD=1]="CORD",Re[Re.STRING_PIECE=2]="STRING_PIECE",he.util.setEnumType(exports.FieldOptions_CType,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]),exports.FieldOptions_JSType=void 0,(je=exports.FieldOptions_JSType||(exports.FieldOptions_JSType={}))[je.JS_NORMAL=0]="JS_NORMAL",je[je.JS_STRING=1]="JS_STRING",je[je.JS_NUMBER=2]="JS_NUMBER",he.util.setEnumType(exports.FieldOptions_JSType,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var Ye=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ye.runtime=he,Ye.typeName="google.protobuf.OneofOptions",Ye.fields=he.util.newFieldList(function(){return[{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]});var Ce=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).allowAlias=void 0,r.deprecated=void 0,r.uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ce.runtime=he,Ce.typeName="google.protobuf.EnumOptions",Ce.fields=he.util.newFieldList(function(){return[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]});var Ge=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).deprecated=void 0,r.uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ge.runtime=he,Ge.typeName="google.protobuf.EnumValueOptions",Ge.fields=he.util.newFieldList(function(){return[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]});var We=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).deprecated=void 0,r.uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);We.runtime=he,We.typeName="google.protobuf.ServiceOptions",We.fields=he.util.newFieldList(function(){return[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]});var Xe,Ke=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).deprecated=void 0,r.idempotencyLevel=void 0,r.uninterpretedOption=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ke.runtime=he,Ke.typeName="google.protobuf.MethodOptions",Ke.fields=he.util.newFieldList(function(){return[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:he.getEnumType(exports.MethodOptions_IdempotencyLevel),opt:!0,default:exports.MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN},{no:999,name:"uninterpreted_option",kind:"message",T:ze,repeated:!0}]}),exports.MethodOptions_IdempotencyLevel=void 0,(Xe=exports.MethodOptions_IdempotencyLevel||(exports.MethodOptions_IdempotencyLevel={}))[Xe.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",Xe[Xe.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",Xe[Xe.IDEMPOTENT=2]="IDEMPOTENT",he.util.setEnumType(exports.MethodOptions_IdempotencyLevel,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);var ze=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=[],r.identifierValue=void 0,r.positiveIntValue=void 0,r.negativeIntValue=void 0,r.doubleValue=void 0,r.stringValue=void 0,r.aggregateValue=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);ze.runtime=he,ze.typeName="google.protobuf.UninterpretedOption",ze.fields=he.util.newFieldList(function(){return[{no:2,name:"name",kind:"message",T:Ze,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]});var Ze=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).namePart=void 0,r.isExtension=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Ze.runtime=he,Ze.typeName="google.protobuf.UninterpretedOption.NamePart",Ze.fields=he.util.newFieldList(function(){return[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]});var Qe=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).location=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Qe.runtime=he,Qe.typeName="google.protobuf.SourceCodeInfo",Qe.fields=he.util.newFieldList(function(){return[{no:1,name:"location",kind:"message",T:$e,repeated:!0}]});var $e=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).path=[],r.span=[],r.leadingComments=void 0,r.trailingComments=void 0,r.leadingDetachedComments=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);$e.runtime=he,$e.typeName="google.protobuf.SourceCodeInfo.Location",$e.fields=he.util.newFieldList(function(){return[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]});var He=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).annotation=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);He.runtime=he,He.typeName="google.protobuf.GeneratedCodeInfo",He.fields=he.util.newFieldList(function(){return[{no:1,name:"annotation",kind:"message",T:nn,repeated:!0}]});var en,nn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).path=[],r.sourceFile=void 0,r.begin=void 0,r.end=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);nn.runtime=he,nn.typeName="google.protobuf.GeneratedCodeInfo.Annotation",nn.fields=he.util.newFieldList(function(){return[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0}]});var rn=/*#__PURE__*/function(){function e(){this.enums={},this.messages={},this.services={}}var n=e.prototype;return n.add=function(){for(var e,n=i([].slice.call(arguments));!(e=n()).done;){var r=e.value;an(r,this)}},n.listEnums=function(){return Object.values(this.enums).filter(tn)},n.listMessages=function(){return Object.values(this.messages).filter(tn)},n.listServices=function(){return Object.values(this.services).filter(tn)},e}();function tn(e){return void 0!==e}var on=((en={})[exports.FieldDescriptorProto_Type.DOUBLE]=exports.ScalarType.DOUBLE,en[exports.FieldDescriptorProto_Type.FLOAT]=exports.ScalarType.FLOAT,en[exports.FieldDescriptorProto_Type.INT64]=exports.ScalarType.INT64,en[exports.FieldDescriptorProto_Type.UINT64]=exports.ScalarType.UINT64,en[exports.FieldDescriptorProto_Type.INT32]=exports.ScalarType.INT32,en[exports.FieldDescriptorProto_Type.FIXED64]=exports.ScalarType.FIXED64,en[exports.FieldDescriptorProto_Type.FIXED32]=exports.ScalarType.FIXED32,en[exports.FieldDescriptorProto_Type.BOOL]=exports.ScalarType.BOOL,en[exports.FieldDescriptorProto_Type.STRING]=exports.ScalarType.STRING,en[exports.FieldDescriptorProto_Type.GROUP]=void 0,en[exports.FieldDescriptorProto_Type.MESSAGE]=void 0,en[exports.FieldDescriptorProto_Type.BYTES]=exports.ScalarType.BYTES,en[exports.FieldDescriptorProto_Type.UINT32]=exports.ScalarType.UINT32,en[exports.FieldDescriptorProto_Type.ENUM]=void 0,en[exports.FieldDescriptorProto_Type.SFIXED32]=exports.ScalarType.SFIXED32,en[exports.FieldDescriptorProto_Type.SFIXED64]=exports.ScalarType.SFIXED64,en[exports.FieldDescriptorProto_Type.SINT32]=exports.ScalarType.SINT32,en[exports.FieldDescriptorProto_Type.SINT64]=exports.ScalarType.SINT64,en);function an(e,n){if(a(e.name,"missing file descriptor name"),void 0!==e.syntax&&"proto3"!==e.syntax)throw new Error("invalid descriptor: unsupported syntax: "+e.syntax);for(var r,t={proto:e,syntax:"proto3"===e.syntax?"proto3":"proto2",name:e.name.endsWith(".proto")?e.name.substring(-".proto".length):e.name,toString:function(){return"file "+this.proto.name}},o=i(e.messageType);!(r=o()).done;)ln(r.value,void 0,t,n);for(var s,u=i(e.enumType);!(s=u()).done;)sn(s.value,void 0,t,n);for(var l,c=i(e.extension);!(l=c()).done;)dn(l.value,void 0,t);for(var p,f=i(e.service);!(p=f()).done;)vn(p.value,t,n);return t}function sn(e,n,r,t){var o;a(e.name,"invalid descriptor: missing enum descriptor name");var s=[],u={proto:e,file:r,parent:n,name:e.name,protoTypeName:o=n?n.protoTypeName+"."+e.name:void 0!==r.proto.package?"."+r.proto.package+"."+e.name:"."+e.name,typeName:o.startsWith(".")?o.substring(1):o,values:s,toString:function(){return"enum "+this.typeName}};t.enums[u.protoTypeName]=u;for(var l,c=i(e.value);!(l=c()).done;)s.push(un(l.value,u));return u}function un(e,n){return a(e.name,"invalid descriptor: missing enum value descriptor name"),a(void 0!==e.number,"invalid descriptor: missing enum value descriptor number"),{proto:e,name:e.name,number:e.number,parent:n,toString:function(){return"enum value "+this.parent.typeName+"."+this.proto.name}}}function ln(e,n,r,t){a(e.name,"invalid descriptor: missing name");var o,s=[],u=[],l=[],c=[],p=[],f={proto:e,file:r,parent:n,name:e.name,typeName:(o=n?n.protoTypeName+"."+e.name:void 0!==r.proto.package?"."+r.proto.package+"."+e.name:"."+e.name).startsWith(".")?o.substring(1):o,protoTypeName:o,fields:u,oneofs:l,nestedEnums:c,nestedMessages:s,nestedExtensions:p,toString:function(){return"message "+this.typeName}};t.messages[f.protoTypeName]=f;for(var m,d=i(e.nestedType);!(m=d()).done;)s.push(ln(m.value,f,r,t));for(var v,y=i(e.oneofDecl);!(v=y()).done;)l.push(mn(v.value,f,r));for(var T,g=i(e.field);!(T=g()).done;){var h,S=T.value,w=void 0;void 0!==S.oneofIndex&&a(w=l[S.oneofIndex],"invalid descriptor: oneof declaration index "+S.oneofIndex+" specified by field #"+(null!=(h=S.number)?h:-1)+" not found"),u.push(cn(S,f,w))}for(var N,b=i(e.enumType);!(N=b()).done;)c.push(sn(N.value,f,r,t));for(var E,k=i(e.extension);!(E=k()).done;)p.push(dn(E.value,f,r));return f}function cn(e,n,r){var t;a(e.name,"invalid descriptor: missing name"),a(e.number,"invalid descriptor: missing number"),a(e.type,"invalid descriptor: missing type");var o=!1,i=!0===(null==(t=e.options)?void 0:t.packed);switch(n.file.syntax){case"proto2":o=void 0===r&&e.label===exports.FieldDescriptorProto_Label.OPTIONAL;break;case"proto3":switch(o=!0===e.proto3Optional,e.type){case exports.FieldDescriptorProto_Type.DOUBLE:case exports.FieldDescriptorProto_Type.FLOAT:case exports.FieldDescriptorProto_Type.INT64:case exports.FieldDescriptorProto_Type.UINT64:case exports.FieldDescriptorProto_Type.INT32:case exports.FieldDescriptorProto_Type.FIXED64:case exports.FieldDescriptorProto_Type.FIXED32:case exports.FieldDescriptorProto_Type.UINT32:case exports.FieldDescriptorProto_Type.SFIXED32:case exports.FieldDescriptorProto_Type.SFIXED64:case exports.FieldDescriptorProto_Type.SINT32:case exports.FieldDescriptorProto_Type.SINT64:case exports.FieldDescriptorProto_Type.BOOL:case exports.FieldDescriptorProto_Type.ENUM:i=!0;break;case exports.FieldDescriptorProto_Type.STRING:case exports.FieldDescriptorProto_Type.GROUP:case exports.FieldDescriptorProto_Type.MESSAGE:case exports.FieldDescriptorProto_Type.BYTES:a(!i,"invalid descriptor: "+exports.FieldDescriptorProto_Type[e.type]+" cannot be packed")}}var s={proto:e,name:e.name,number:e.number,type:e.type,parent:n,oneof:!0===e.proto3Optional?void 0:r,optional:o,packed:i,toString:function(){return"field "+n.typeName+"."+e.name},resolve:function(e){return pn(this,e)}};return r&&r.fields.push(s),s}function pn(n,r){var t=n.proto.label===exports.FieldDescriptorProto_Label.REPEATED;switch(n.type){case exports.FieldDescriptorProto_Type.MESSAGE:case exports.FieldDescriptorProto_Type.GROUP:var o;a(n.proto.typeName,"invalid descriptor: "+n.toString()+" has type "+exports.FieldDescriptorProto_Type[n.type]+", but type_name is unset");var i=r.messages[n.proto.typeName];return a(i,'invalid descriptor: cannot find type_name "'+n.proto.typeName+'" specified by '+n.toString()),void 0!==(null==(o=i.proto.options)?void 0:o.mapEntry)?e({},n,{repeated:!1,scalarType:void 0,message:void 0,enum:void 0,map:fn(i,r)}):e({},n,{repeated:t,scalarType:void 0,message:i,enum:void 0,map:void 0});case exports.FieldDescriptorProto_Type.ENUM:a(n.proto.typeName,"invalid descriptor: "+n.toString()+" has type "+exports.FieldDescriptorProto_Type[n.type]+", but type_name is unset");var s=r.enums[n.proto.typeName];return a(s,'invalid descriptor: cannot find type_name "'+n.proto.typeName+'" specified by '+n.toString()),e({},n,{repeated:t,scalarType:void 0,message:void 0,enum:s,map:void 0});default:var u=on[n.type];return a(u,"invalid descriptor: unable to convert google.protobuf.FieldDescriptorProto.Type "+exports.FieldDescriptorProto_Type[n.type]+" to ScalarType"),e({},n,{repeated:t,scalarType:u,message:void 0,enum:void 0,map:void 0})}}function fn(e,n){var r;a(null==(r=e.proto.options)?void 0:r.mapEntry,"invalid descriptor: expected "+e.toString()+" to be a map entry"),a(2===e.fields.length,"invalid descriptor: map entry "+e.toString()+" has "+e.fields.length+" fields");var t=e.fields.find(function(e){return 1===e.proto.number});a(t,"invalid descriptor: map entry "+e.toString()+" is missing key field");var o=pn(t,n);a(void 0!==o.scalarType&&o.scalarType!==exports.ScalarType.BYTES&&o.scalarType!==exports.ScalarType.FLOAT&&o.scalarType!==exports.ScalarType.DOUBLE,"invalid descriptor: map entry "+e.toString()+" has unexpected key type "+exports.FieldDescriptorProto_Type[o.type]);var i=e.fields.find(function(e){return 2===e.proto.number});a(i,"invalid descriptor: map entry "+e.toString()+" is missing value field");var s=pn(i,n);if(void 0!==s.scalarType)return{key:o.scalarType,value:{scalarType:s.scalarType,enum:void 0,message:void 0}};if(void 0!==s.enum)return{key:o.scalarType,value:{scalar:void 0,enum:s.enum,message:void 0}};if(void 0!==s.message)return{key:o.scalarType,value:{scalar:void 0,enum:void 0,message:s.message}};throw new Error("invalid descriptor: map entry "+e.toString()+" has unexpected value type "+exports.FieldDescriptorProto_Type[o.type])}function mn(e,n,r){return a(e.name,"invalid descriptor: missing oneof descriptor name"),{proto:e,parent:n,file:r,fields:[],name:e.name,toString:function(){return"oneof "+n.typeName+"."+e.name}}}function dn(e,n,r,t){return a(e.name,"invalid descriptor: missing field descriptor name"),{proto:e,file:r,parent:n}}function vn(e,n,r){var t;a(e.name,"invalid descriptor: missing service descriptor name");for(var o,s=[],u={proto:e,file:n,typeName:(t=void 0!==n.proto.package?"."+n.proto.package+"."+e.name:"."+e.name).startsWith(".")?t.substring(1):t,protoTypeName:t,methods:s,toString:function(){return"service "+this.typeName}},l=i(e.method);!(o=l()).done;)s.push(yn(o.value,u));return r.services[u.protoTypeName]=u,u}function yn(e,n){var r,t,o;switch(a(e.name,"invalid descriptor: missing method descriptor name"),a(e.inputType,"invalid descriptor: missing method input type"),a(e.outputType,"invalid descriptor: missing method output type"),t=!0===e.clientStreaming&&!0===e.serverStreaming?exports.MethodKind.BiDiStreaming:!0===e.clientStreaming?exports.MethodKind.ClientStreaming:!0===e.serverStreaming?exports.MethodKind.ServerStreaming:exports.MethodKind.Unary,null==(r=e.options)?void 0:r.idempotencyLevel){case exports.MethodOptions_IdempotencyLevel.IDEMPOTENT:o=exports.MethodIdempotency.Idempotent;break;case exports.MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS:o=exports.MethodIdempotency.NoSideEffects;break;case exports.MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN:case void 0:o=void 0}var i=e.inputType.startsWith(".")?e.inputType.substring(1):e.inputType,s=e.outputType.startsWith(".")?e.outputType.substring(1):e.outputType;return{proto:e,parent:n,name:e.name,kind:t,idempotency:o,inputTypeName:i,outputTypeName:s,toString:function(){return"rpc "+this.parent.typeName+"."+e.name}}}var Tn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).seconds=x.zero,r.nanos=0,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.fromJson=function(e,n){if("string"!=typeof e)throw new Error("cannot decode google.protobuf.Timestamp from JSON: "+ve.json.debug(e));var r=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");var t=Date.parse(r[1]+"-"+r[2]+"-"+r[3]+"T"+r[4]+":"+r[5]+":"+r[6]+(r[8]?r[8]:"Z"));if(Number.isNaN(t))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(t<Date.parse("0001-01-01T00:00:00Z")||t>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=x.parse(t/1e3),this.nanos=0,r[7]&&(this.nanos=parseInt("1"+r[7]+"0".repeat(9-r[7].length))-1e9),this},o.toJson=function(e){var n=1e3*Number(this.seconds);if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");var r="Z";if(this.nanos>0){var t=(this.nanos+1e9).toString().substring(1);r="000000"===t.substring(3)?"."+t.substring(0,3)+"Z":"000"===t.substring(6)?"."+t.substring(0,6)+"Z":"."+t+"Z"}return new Date(n).toISOString().replace(".000Z",r)},o.toDate=function(){return new Date(1e3*Number(this.seconds)+Math.ceil(this.nanos/1e6))},r.now=function(){return r.fromDate(new Date)},r.fromDate=function(e){var n=e.getTime();return new r({seconds:x.parse(Math.floor(n/1e3)),nanos:n%1e3*1e6})},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Tn.runtime=ve,Tn.typeName="google.protobuf.Timestamp",Tn.fields=ve.util.newFieldList(function(){return[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]});var gn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).seconds=x.zero,r.nanos=0,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.fromJson=function(e,n){if("string"!=typeof e)throw new Error("cannot decode google.protobuf.Duration from JSON: "+ve.json.debug(e));var r=e.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(null===r)throw new Error("cannot decode google.protobuf.Duration from JSON: "+ve.json.debug(e));var t=Number(r[1]);if(t>315576e6||t<-315576e6)throw new Error("cannot decode google.protobuf.Duration from JSON: "+ve.json.debug(e));if(this.seconds=x.parse(t),"string"==typeof r[2]){var o=r[2]+"0".repeat(9-r[2].length);this.nanos=parseInt(o),t<0n&&(this.nanos=-this.nanos)}return this},o.toJson=function(e){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");var n=this.seconds.toString();if(0!==this.nanos){var r=Math.abs(this.nanos).toString();"000000"===(r="0".repeat(9-r.length)+r).substring(3)?r=r.substring(0,3):"000"===r.substring(6)&&(r=r.substring(0,6)),n+="."+r}return n+"s"},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);gn.runtime=ve,gn.typeName="google.protobuf.Duration",gn.fields=ve.util.newFieldList(function(){return[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]});var hn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).typeUrl="",r.value=new Uint8Array(0),ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){var n;if(""===this.typeUrl)return{};var r=this.typeUrlToName(this.typeUrl),t=null==e||null==(n=e.typeRegistry)?void 0:n.findMessage(r);if(!t)throw new Error('cannot encode message google.protobuf.Any to JSON: "'+this.typeUrl+'" is not in the type registry');var o=t.fromBinary(this.value).toJson(e);return(r.startsWith("google.protobuf.")||null===o||Array.isArray(o)||"object"!=typeof o)&&(o={value:o}),o["@type"]=this.typeUrl,o},o.fromJson=function(e,n){var r;if(null===e||Array.isArray(e)||"object"!=typeof e)throw new Error("cannot decode message google.protobuf.Any from JSON: expected object but got "+(null===e?"null":Array.isArray(e)?"array":typeof e));var t=e["@type"];if("string"!=typeof t||""==t)throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');var o,i=this.typeUrlToName(t),a=null==n||null==(r=n.typeRegistry)?void 0:r.findMessage(i);if(!a)throw new Error("cannot decode message google.protobuf.Any from JSON: "+t+" is not in the type registry");if(i.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(e,"value"))o=a.fromJson(e.value,n);else{var s=Object.assign({},e);delete s["@type"],o=a.fromJson(s,n)}return this.packFrom(o),this},o.packFrom=function(e){this.value=e.toBinary(),this.typeUrl=this.typeNameToUrl(e.getType().typeName)},o.unpackTo=function(e){return!!this.is(e.getType())&&(e.fromBinary(this.value),!0)},o.is=function(e){return this.typeUrl===this.typeNameToUrl(e.typeName)},o.typeNameToUrl=function(e){return"type.googleapis.com/"+e},o.typeUrlToName=function(e){if(!e.length)throw new Error("invalid type url: "+e);var n=e.lastIndexOf("/"),r=n>0?e.substring(n+1):e;if(!r.length)throw new Error("invalid type url: "+e);return r},r.pack=function(e){var n=new r;return n.packFrom(e),n},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);hn.runtime=ve,hn.typeName="google.protobuf.Any",hn.fields=ve.util.newFieldList(function(){return[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]});var Sn=/*#__PURE__*/function(e){function r(n){var r;return r=e.call(this)||this,ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Sn.runtime=ve,Sn.typeName="google.protobuf.Empty",Sn.fields=ve.util.newFieldList(function(){return[]});var wn,Nn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).paths=[],ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return this.paths.map(function(e){if(e.match(/_[0-9]?_/g)||e.match(/[A-Z]/g))throw new Error('cannot decode google.protobuf.FieldMask from JSON: lowerCamelCase of path name "'+e+'" is irreversible');return function(e){for(var n=!1,r=[],t=0;t<e.length;t++){var o=e.charAt(t);switch(o){case"_":n=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(o),n=!1;break;default:n&&(n=!1,o=o.toUpperCase()),r.push(o)}}return r.join("")}(e)}).join(",")},o.fromJson=function(e,n){if("string"!=typeof e)throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+ve.json.debug(e));return""===e||(this.paths=e.split(",").map(function(e){if(e.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");var n=e.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()});return"_"===n[0]?n.substring(1):n})),this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Nn.runtime=ve,Nn.typeName="google.protobuf.FieldMask",Nn.fields=ve.util.newFieldList(function(){return[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]}),exports.NullValue=void 0,(wn=exports.NullValue||(exports.NullValue={}))[wn.NULL_VALUE=0]="NULL_VALUE",ve.util.setEnumType(exports.NullValue,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);var bn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).fields={},ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){for(var n={},r=0,t=Object.entries(this.fields);r<t.length;r++){var o=t[r];n[o[0]]=o[1].toJson(e)}return n},o.fromJson=function(e,n){if("object"!=typeof e||null==e||Array.isArray(e))throw new Error("cannot decode google.protobuf.Struct from JSON "+ve.json.debug(e));for(var r=0,t=Object.entries(e);r<t.length;r++){var o=t[r];this.fields[o[0]]=En.fromJson(o[1])}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);bn.runtime=ve,bn.typeName="google.protobuf.Struct",bn.fields=ve.util.newFieldList(function(){return[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:En}}]});var En=/*#__PURE__*/function(r){function o(e){var n;return(n=r.call(this)||this).kind={case:void 0},ve.util.initPartial(e,t(n)),n}n(o,r);var i=o.prototype;return i.toJson=function(n){switch(this.kind.case){case"nullValue":return null;case"boolValue":case"numberValue":case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(e({},n,{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")},i.fromJson=function(e,n){switch(typeof e){case"number":this.kind={case:"numberValue",value:e};break;case"string":this.kind={case:"stringValue",value:e};break;case"boolean":this.kind={case:"boolValue",value:e};break;case"object":this.kind=null===e?{case:"nullValue",value:exports.NullValue.NULL_VALUE}:Array.isArray(e)?{case:"listValue",value:kn.fromJson(e)}:{case:"structValue",value:bn.fromJson(e)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+ve.json.debug(e))}return this},o.fromBinary=function(e,n){return(new o).fromBinary(e,n)},o.fromJson=function(e,n){return(new o).fromJson(e,n)},o.fromJsonString=function(e,n){return(new o).fromJsonString(e,n)},o.equals=function(e,n){return ve.util.equals(o,e,n)},o}(T);En.runtime=ve,En.typeName="google.protobuf.Value",En.fields=ve.util.newFieldList(function(){return[{no:1,name:"null_value",kind:"enum",T:ve.getEnumType(exports.NullValue),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:bn,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:kn,oneof:"kind"}]});var kn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).values=[],ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return this.values.map(function(e){return e.toJson()})},o.fromJson=function(e,n){if(!Array.isArray(e))throw new Error("cannot decode google.protobuf.ListValue from JSON "+ve.json.debug(e));for(var r,t=i(e);!(r=t()).done;)this.values.push(En.fromJson(r.value));return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);kn.runtime=ve,kn.typeName="google.protobuf.ListValue",kn.fields=ve.util.newFieldList(function(){return[{no:1,name:"values",kind:"message",T:En,repeated:!0}]});var xn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=0,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.DOUBLE,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.DOUBLE,e)}catch(e){var r='cannot decode message google.protobuf.DoubleValue from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);xn.runtime=ve,xn.typeName="google.protobuf.DoubleValue",xn.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:1}]}),xn.fieldWrapper={wrapField:function(e){return e instanceof xn?e:new xn({value:e})},unwrapField:function(e){return e.value}};var In=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=0,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.FLOAT,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.FLOAT,e)}catch(e){var r='cannot decode message google.protobuf.FloatValue from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);In.runtime=ve,In.typeName="google.protobuf.FloatValue",In.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:2}]}),In.fieldWrapper={wrapField:function(e){return e instanceof In?e:new In({value:e})},unwrapField:function(e){return e.value}};var _n=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=x.zero,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.INT64,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.INT64,e)}catch(e){var r='cannot decode message google.protobuf.Int64Value from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);_n.runtime=ve,_n.typeName="google.protobuf.Int64Value",_n.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:3}]}),_n.fieldWrapper={wrapField:function(e){return e instanceof _n?e:new _n({value:e})},unwrapField:function(e){return e.value}};var On=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=x.zero,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.UINT64,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.UINT64,e)}catch(e){var r='cannot decode message google.protobuf.UInt64Value from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);On.runtime=ve,On.typeName="google.protobuf.UInt64Value",On.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:4}]}),On.fieldWrapper={wrapField:function(e){return e instanceof On?e:new On({value:e})},unwrapField:function(e){return e.value}};var Fn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=0,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.INT32,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.INT32,e)}catch(e){var r='cannot decode message google.protobuf.Int32Value from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Fn.runtime=ve,Fn.typeName="google.protobuf.Int32Value",Fn.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:5}]}),Fn.fieldWrapper={wrapField:function(e){return e instanceof Fn?e:new Fn({value:e})},unwrapField:function(e){return e.value}};var Jn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=0,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.UINT32,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.UINT32,e)}catch(e){var r='cannot decode message google.protobuf.UInt32Value from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Jn.runtime=ve,Jn.typeName="google.protobuf.UInt32Value",Jn.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:13}]}),Jn.fieldWrapper={wrapField:function(e){return e instanceof Jn?e:new Jn({value:e})},unwrapField:function(e){return e.value}};var Pn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=!1,ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.BOOL,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.BOOL,e)}catch(e){var r='cannot decode message google.protobuf.BoolValue from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Pn.runtime=ve,Pn.typeName="google.protobuf.BoolValue",Pn.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:8}]}),Pn.fieldWrapper={wrapField:function(e){return e instanceof Pn?e:new Pn({value:e})},unwrapField:function(e){return e.value}};var Dn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value="",ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.STRING,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.STRING,e)}catch(e){var r='cannot decode message google.protobuf.StringValue from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Dn.runtime=ve,Dn.typeName="google.protobuf.StringValue",Dn.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:9}]}),Dn.fieldWrapper={wrapField:function(e){return e instanceof Dn?e:new Dn({value:e})},unwrapField:function(e){return e.value}};var Bn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).value=new Uint8Array(0),ve.util.initPartial(n,t(r)),r}n(r,e);var o=r.prototype;return o.toJson=function(e){return ve.json.writeScalar(exports.ScalarType.BYTES,this.value,!0)},o.fromJson=function(e,n){try{this.value=ve.json.readScalar(exports.ScalarType.BYTES,e)}catch(e){var r='cannot decode message google.protobuf.BytesValue from JSON"';throw e instanceof Error&&e.message.length>0&&(r+=": "+e.message),new Error(r)}return this},r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Bn.runtime=ve,Bn.typeName="google.protobuf.BytesValue",Bn.fields=ve.util.newFieldList(function(){return[{no:1,name:"value",kind:"scalar",T:12}]}),Bn.fieldWrapper={wrapField:function(e){return e instanceof Bn?e:new Bn({value:e})},unwrapField:function(e){return e.value}};var Ln=[hn,gn,Sn,Nn,bn,En,kn,Tn,gn,xn,In,_n,Fn,Jn,On,Pn,Dn,Bn],Un=[p(exports.NullValue)],An=/*#__PURE__*/function(){function e(e,n){if(void 0===n&&(n=!0),this.ds=void 0,this.enums={},this.messages={},this.services={},this.ds=null!=e?e:new rn,n){for(var r,t=i(Ln);!(r=t()).done;){var o=r.value;this.messages["."+o.typeName]=o}for(var a,s=i(Un);!(a=s()).done;){var u=a.value;this.enums["."+u.typeName]=u}}}e.fromFileDescriptorSet=function(n){var r=n instanceof Uint8Array?Ne.fromBinary(n):new Ne(n),t=new e;return t.add.apply(t,r.file),t};var n=e.prototype;return n.add=function(){var e;(e=this.ds).add.apply(e,[].slice.call(arguments))},n.findEnum=function(e){var n="."+e,r=this.enums[n];if(r)return r;var t=this.ds.enums[n];if(t){var o=("proto3"==t.file.syntax?ve:he).makeEnumType(e,t.values.map(function(e){return{no:e.number,name:e.name}}),{});return this.enums[n]=o,o}},n.findMessage=function(e){var n=this,r="."+e,t=this.messages[r];if(t)return t;var o=this.ds.messages[r];if(o){var a=[],s=("proto3"==o.file.syntax?ve:he).makeMessageType(e,function(){return a},{localName:Vn(o)});this.messages[r]=s;for(var u,l=i(o.fields.map(function(e){return e.resolve(n.ds)}));!(u=l()).done;){var c=qn(u.value,this);a.push(c)}return s}},n.findService=function(e){var n="."+e,r=this.services[n];if(r)return r;var t=this.ds.services[n];if(t){for(var o,s,u={},l=i(t.methods);!(o=l()).done;){var c=o.value,p=this.findMessage(c.inputTypeName),f=this.findMessage(c.outputTypeName);a(p,'message "'+c.inputTypeName+'" for '+c.toString()+" not found"),a(f,'output message "'+c.outputTypeName+'" for '+c.toString()+" not found");var m={name:c.name,localName:(s=c.name,0==s.length?s:s[0].toLowerCase()+s.substring(1)),I:p,O:f,kind:c.kind,idempotency:c.idempotency,options:{}};u[m.localName]=m}return this.services[n]={typeName:t.typeName,methods:u}}},e}();function Vn(e){var n,r=e.typeName,t=(null!=(n=e.file.proto.package)?n:"")+".";return r.startsWith(t)?r.substring(t.length).split(".").join("_"):e.name}function qn(n,r){if(void 0!==n.map)return function(n,r){var t={kind:"map",name:n.name,no:n.number,K:n.map.key};if(n.map.value.message){var o=r.findMessage(n.map.value.message.typeName);return a(o,'message "'+n.map.value.message.typeName+'" for '+n.toString()+" not found"),e({},t,{V:{kind:"message",T:o}})}if(n.map.value.enum){var i=r.findEnum(n.map.value.enum.typeName);return a(i,'enum "'+n.map.value.enum.typeName+'" for '+n.toString()+" not found"),e({},t,{V:{kind:"enum",T:i}})}return e({},t,{V:{kind:"scalar",T:n.map.value.scalarType}})}(n,r);if(n.message)return function(n,r){var t=r.findMessage(n.message.typeName);a(t,'message "'+n.message.typeName+'" for '+n.toString()+" not found");var o={no:n.number,name:n.name,kind:"message",T:t};return n.repeated?e({},o,{repeated:!0,packed:n.packed,oneof:void 0}):n.oneof?e({},o,{oneof:n.oneof.name}):n.optional?e({},o,{opt:!0}):o}(n,r);var t=n.enum?function(n,r){var t=r.findEnum(n.enum.typeName);a(t,'message "'+n.enum.typeName+'" for '+n.toString()+" not found");var o={no:n.number,name:n.name,kind:"enum",T:t};return n.repeated?e({},o,{repeated:!0,packed:n.packed,oneof:void 0}):n.oneof?e({},o,{oneof:n.oneof.name}):n.optional?e({},o,{opt:!0}):o}(n,r):function(n){var r={no:n.number,name:n.name,kind:"scalar",T:n.scalarType};return n.repeated?e({},r,{repeated:!0,packed:n.packed,oneof:void 0,T:n.scalarType}):n.oneof?e({},r,{oneof:n.oneof.name}):n.optional?e({},r,{opt:!0}):r}(n);return t.default=function(e){var n=e.proto.defaultValue;if(void 0!==n){if(e.enum){var r=e.enum.values.find(function(e){return e.name===n});return a(r,"cannot parse "+e.toString()+" default value: "+n),r.number}if(e.scalarType)switch(e.scalarType){case exports.ScalarType.STRING:return n;case exports.ScalarType.BYTES:var t=function(e){for(var n=[],r={tail:e,c:"",next:function(){return 0!=this.tail.length&&(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take:function(e){if(this.tail.length>=e){var n=this.tail.substring(0,e);return this.tail=this.tail.substring(e),n}return!1}};r.next();)if("\\"===r.c){if(r.next())switch(r.c){case"\\":n.push(r.c.charCodeAt(0));break;case"b":n.push(8);break;case"f":n.push(12);break;case"n":n.push(10);break;case"r":n.push(13);break;case"t":n.push(9);break;case"v":n.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":var t=r.c,o=r.take(2);if(!1===o)return!1;var i=parseInt(t+o,8);if(isNaN(i))return!1;n.push(i);break;case"x":var a=r.c,s=r.take(2);if(!1===s)return!1;var u=parseInt(a+s,16);if(isNaN(u))return!1;n.push(u);break;case"u":var l=r.c,c=r.take(4);if(!1===c)return!1;var p=parseInt(l+c,16);if(isNaN(p))return!1;var f=new Uint8Array(4);new DataView(f.buffer).setInt32(0,p,!0),n.push(f[0],f[1],f[2],f[3]);break;case"U":var m=r.c,d=r.take(8);if(!1===d)return!1;var v=x.uEnc(m+d),y=new Uint8Array(8),T=new DataView(y.buffer);T.setInt32(0,v.lo,!0),T.setInt32(4,v.hi,!0),n.push(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7])}}else n.push(r.c.charCodeAt(0));return new Uint8Array(n)}(n);if(!1===t)throw new Error("cannot parse "+e.toString()+" default value: "+n);return t;case exports.ScalarType.INT64:case exports.ScalarType.SFIXED64:case exports.ScalarType.SINT64:return x.parse(n);case exports.ScalarType.UINT64:case exports.ScalarType.FIXED64:return x.uParse(n);case exports.ScalarType.DOUBLE:case exports.ScalarType.FLOAT:switch(n){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(n)}case exports.ScalarType.BOOL:return Boolean(n);case exports.ScalarType.INT32:case exports.ScalarType.UINT32:case exports.ScalarType.SINT32:case exports.ScalarType.FIXED32:case exports.ScalarType.SFIXED32:return parseInt(n,10)}}}(n),t}var Rn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).major=void 0,r.minor=void 0,r.patch=void 0,r.suffix=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Rn.runtime=he,Rn.typeName="google.protobuf.compiler.Version",Rn.fields=he.util.newFieldList(function(){return[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]});var jn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).fileToGenerate=[],r.parameter=void 0,r.protoFile=[],r.compilerVersion=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);jn.runtime=he,jn.typeName="google.protobuf.compiler.CodeGeneratorRequest",jn.fields=he.util.newFieldList(function(){return[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:be,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:Rn,opt:!0}]});var Mn,Yn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).error=void 0,r.supportedFeatures=void 0,r.file=[],he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Yn.runtime=he,Yn.typeName="google.protobuf.compiler.CodeGeneratorResponse",Yn.fields=he.util.newFieldList(function(){return[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:Cn,repeated:!0}]}),exports.CodeGeneratorResponse_Feature=void 0,(Mn=exports.CodeGeneratorResponse_Feature||(exports.CodeGeneratorResponse_Feature={}))[Mn.NONE=0]="NONE",Mn[Mn.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",he.util.setEnumType(exports.CodeGeneratorResponse_Feature,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"}]);var Cn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name=void 0,r.insertionPoint=void 0,r.content=void 0,r.generatedCodeInfo=void 0,he.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return he.util.equals(r,e,n)},r}(T);Cn.runtime=he,Cn.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",Cn.fields=he.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:He,opt:!0}]});var Gn,Wn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).fileName="",ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Wn.runtime=ve,Wn.typeName="google.protobuf.SourceContext",Wn.fields=ve.util.newFieldList(function(){return[{no:1,name:"file_name",kind:"scalar",T:9}]}),exports.Syntax=void 0,(Gn=exports.Syntax||(exports.Syntax={}))[Gn.PROTO2=0]="PROTO2",Gn[Gn.PROTO3=1]="PROTO3",ve.util.setEnumType(exports.Syntax,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"}]);var Xn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name="",r.fields=[],r.oneofs=[],r.options=[],r.sourceContext=void 0,r.syntax=exports.Syntax.PROTO2,ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Xn.runtime=ve,Xn.typeName="google.protobuf.Type",Xn.fields=ve.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Zn,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:Hn,repeated:!0},{no:5,name:"source_context",kind:"message",T:Wn},{no:6,name:"syntax",kind:"enum",T:ve.getEnumType(exports.Syntax)}]});var Kn,zn,Zn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).kind=exports.Field_Kind.TYPE_UNKNOWN,r.cardinality=exports.Field_Cardinality.UNKNOWN,r.number=0,r.name="",r.typeUrl="",r.oneofIndex=0,r.packed=!1,r.options=[],r.jsonName="",r.defaultValue="",ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Zn.runtime=ve,Zn.typeName="google.protobuf.Field",Zn.fields=ve.util.newFieldList(function(){return[{no:1,name:"kind",kind:"enum",T:ve.getEnumType(exports.Field_Kind)},{no:2,name:"cardinality",kind:"enum",T:ve.getEnumType(exports.Field_Cardinality)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:Hn,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]}),exports.Field_Kind=void 0,(Kn=exports.Field_Kind||(exports.Field_Kind={}))[Kn.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",Kn[Kn.TYPE_DOUBLE=1]="TYPE_DOUBLE",Kn[Kn.TYPE_FLOAT=2]="TYPE_FLOAT",Kn[Kn.TYPE_INT64=3]="TYPE_INT64",Kn[Kn.TYPE_UINT64=4]="TYPE_UINT64",Kn[Kn.TYPE_INT32=5]="TYPE_INT32",Kn[Kn.TYPE_FIXED64=6]="TYPE_FIXED64",Kn[Kn.TYPE_FIXED32=7]="TYPE_FIXED32",Kn[Kn.TYPE_BOOL=8]="TYPE_BOOL",Kn[Kn.TYPE_STRING=9]="TYPE_STRING",Kn[Kn.TYPE_GROUP=10]="TYPE_GROUP",Kn[Kn.TYPE_MESSAGE=11]="TYPE_MESSAGE",Kn[Kn.TYPE_BYTES=12]="TYPE_BYTES",Kn[Kn.TYPE_UINT32=13]="TYPE_UINT32",Kn[Kn.TYPE_ENUM=14]="TYPE_ENUM",Kn[Kn.TYPE_SFIXED32=15]="TYPE_SFIXED32",Kn[Kn.TYPE_SFIXED64=16]="TYPE_SFIXED64",Kn[Kn.TYPE_SINT32=17]="TYPE_SINT32",Kn[Kn.TYPE_SINT64=18]="TYPE_SINT64",ve.util.setEnumType(exports.Field_Kind,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]),exports.Field_Cardinality=void 0,(zn=exports.Field_Cardinality||(exports.Field_Cardinality={}))[zn.UNKNOWN=0]="UNKNOWN",zn[zn.OPTIONAL=1]="OPTIONAL",zn[zn.REQUIRED=2]="REQUIRED",zn[zn.REPEATED=3]="REPEATED",ve.util.setEnumType(exports.Field_Cardinality,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);var Qn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name="",r.enumvalue=[],r.options=[],r.sourceContext=void 0,r.syntax=exports.Syntax.PROTO2,ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Qn.runtime=ve,Qn.typeName="google.protobuf.Enum",Qn.fields=ve.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:$n,repeated:!0},{no:3,name:"options",kind:"message",T:Hn,repeated:!0},{no:4,name:"source_context",kind:"message",T:Wn},{no:5,name:"syntax",kind:"enum",T:ve.getEnumType(exports.Syntax)}]});var $n=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name="",r.number=0,r.options=[],ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);$n.runtime=ve,$n.typeName="google.protobuf.EnumValue",$n.fields=ve.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:Hn,repeated:!0}]});var Hn=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name="",r.value=void 0,ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);Hn.runtime=ve,Hn.typeName="google.protobuf.Option",Hn.fields=ve.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:hn}]});var er=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name="",r.methods=[],r.options=[],r.version="",r.sourceContext=void 0,r.mixins=[],r.syntax=exports.Syntax.PROTO2,ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);er.runtime=ve,er.typeName="google.protobuf.Api",er.fields=ve.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:nr,repeated:!0},{no:3,name:"options",kind:"message",T:Hn,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:Wn},{no:6,name:"mixins",kind:"message",T:rr,repeated:!0},{no:7,name:"syntax",kind:"enum",T:ve.getEnumType(exports.Syntax)}]});var nr=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name="",r.requestTypeUrl="",r.requestStreaming=!1,r.responseTypeUrl="",r.responseStreaming=!1,r.options=[],r.syntax=exports.Syntax.PROTO2,ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);nr.runtime=ve,nr.typeName="google.protobuf.Method",nr.fields=ve.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:Hn,repeated:!0},{no:7,name:"syntax",kind:"enum",T:ve.getEnumType(exports.Syntax)}]});var rr=/*#__PURE__*/function(e){function r(n){var r;return(r=e.call(this)||this).name="",r.root="",ve.util.initPartial(n,t(r)),r}return n(r,e),r.fromBinary=function(e,n){return(new r).fromBinary(e,n)},r.fromJson=function(e,n){return(new r).fromJson(e,n)},r.fromJsonString=function(e,n){return(new r).fromJsonString(e,n)},r.equals=function(e,n){return ve.util.equals(r,e,n)},r}(T);rr.runtime=ve,rr.typeName="google.protobuf.Mixin",rr.fields=ve.util.newFieldList(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}]}),exports.Any=hn,exports.Api=er,exports.BinaryReader=_,exports.BinaryWriter=I,exports.BoolValue=Pn,exports.BytesValue=Bn,exports.CodeGeneratorRequest=jn,exports.CodeGeneratorResponse=Yn,exports.CodeGeneratorResponse_File=Cn,exports.DescriptorProto=Ee,exports.DescriptorProto_ExtensionRange=ke,exports.DescriptorProto_ReservedRange=xe,exports.DescriptorRegistry=An,exports.DescriptorSet=rn,exports.DoubleValue=xn,exports.Duration=gn,exports.Empty=Sn,exports.Enum=Qn,exports.EnumDescriptorProto=Pe,exports.EnumDescriptorProto_EnumReservedRange=De,exports.EnumOptions=Ce,exports.EnumValue=$n,exports.EnumValueDescriptorProto=Be,exports.EnumValueOptions=Ge,exports.ExtensionRangeOptions=Ie,exports.Field=Zn,exports.FieldDescriptorProto=Fe,exports.FieldMask=Nn,exports.FieldOptions=Me,exports.FileDescriptorProto=be,exports.FileDescriptorSet=Ne,exports.FileOptions=Ve,exports.FloatValue=In,exports.GeneratedCodeInfo=He,exports.GeneratedCodeInfo_Annotation=nn,exports.Int32Value=Fn,exports.Int64Value=_n,exports.ListValue=kn,exports.Message=T,exports.MessageOptions=qe,exports.Method=nr,exports.MethodDescriptorProto=Ue,exports.MethodOptions=Ke,exports.Mixin=rr,exports.OneofDescriptorProto=Je,exports.OneofOptions=Ye,exports.Option=Hn,exports.ServiceDescriptorProto=Le,exports.ServiceOptions=We,exports.SourceCodeInfo=Qe,exports.SourceCodeInfo_Location=$e,exports.SourceContext=Wn,exports.StringValue=Dn,exports.Struct=bn,exports.Timestamp=Tn,exports.Type=Xn,exports.TypeRegistry=we,exports.UInt32Value=Jn,exports.UInt64Value=On,exports.UninterpretedOption=ze,exports.UninterpretedOption_NamePart=Ze,exports.Value=En,exports.Version=Rn,exports.proto2=he,exports.proto3=ve,exports.protoBase64=z,exports.protoInt64=x;
|
|
2
|
-
//# sourceMappingURL=protobuf.cjs.map
|